| llama_memory_seq_div | R Documentation |
Divides all token positions in the range [p0, p1) for the given
sequence by d. Use p0 = -1 and p1 = -1 for the full range.
Useful for implementing sliding-window context compression.
llama_memory_seq_div(ctx, seq_id, p0, p1, d)
ctx |
Context handle returned by [llama_new_context] |
seq_id |
Sequence ID |
p0 |
Start position (inclusive). Use -1 for beginning. |
p1 |
End position (exclusive). Use -1 for end. |
d |
Divisor (positive integer) |
No return value, called for side effects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.