| llama_n_ctx | R Documentation |
Get context window size
llama_n_ctx(ctx)
ctx |
Context handle returned by [llama_new_context] |
An integer scalar: the context window size (number of tokens).
## Not run:
model <- llama_load_model("model.gguf")
ctx <- llama_new_context(model, n_ctx = 4096L)
llama_n_ctx(ctx) # 4096
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.