| llama_state_save | R Documentation |
Saves the full context state (including KV cache) to a binary file. This allows resuming generation later from the exact same state.
llama_state_save(ctx, path)
ctx |
Context handle returned by [llama_new_context] |
path |
File path to save state to |
A logical scalar: TRUE on success (errors on failure).
## Not run:
llama_state_save(ctx, "state.bin")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.