| llama_memory_seq_rm | R Documentation |
Removes cached tokens for the given sequence in the position range [p0, p1). Use p0 = -1 and p1 = -1 to remove all tokens for the sequence.
llama_memory_seq_rm(ctx, seq_id, p0 = -1L, p1 = -1L)
ctx |
Context handle returned by [llama_new_context] |
seq_id |
Sequence ID (integer) |
p0 |
Start position (inclusive, -1 for beginning) |
p1 |
End position (exclusive, -1 for end) |
A logical scalar: TRUE if tokens were successfully removed.
## Not run:
# Remove all tokens from sequence 0
llama_memory_seq_rm(ctx, seq_id = 0L, p0 = -1L, p1 = -1L)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.