| llama_state_load | R Documentation |
Restores a previously saved context state (including KV cache).
llama_state_load(ctx, path)
ctx |
Context handle returned by [llama_new_context] |
path |
File path to load state from |
A logical scalar: TRUE on success (errors on failure).
## Not run:
llama_state_load(ctx, "state.bin")
# Continue generation from saved state
result <- llama_generate(ctx, "")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.