| llama_memory_can_shift | R Documentation |
Check if the KV cache supports shifting
llama_memory_can_shift(ctx)
ctx |
Context handle returned by [llama_new_context] |
A logical scalar: TRUE if the memory supports position shifting.
## Not run:
if (llama_memory_can_shift(ctx)) {
message("Context shifting is supported")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.