llama_memory_can_shift: Check if the KV cache supports shifting

View source: R/llama.R

llama_memory_can_shiftR Documentation

Check if the KV cache supports shifting

Description

Check if the KV cache supports shifting

Usage

llama_memory_can_shift(ctx)

Arguments

ctx

Context handle returned by [llama_new_context]

Value

A logical scalar: TRUE if the memory supports position shifting.

Examples

## Not run: 
if (llama_memory_can_shift(ctx)) {
  message("Context shifting is supported")
}

## End(Not run)

llamaR documentation built on May 28, 2026, 1:06 a.m.