Skip to content

Commit 1a37ca0

Browse files
committed
Add a note about needing to pass the returned tokens
1 parent c6179bf commit 1a37ca0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llama-cpp-2/src/context/session.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ impl LlamaContext<'_> {
5858
}
5959
/// Load a session file into the current context.
6060
///
61+
/// You still need to pass the returned tokens to the context for inference to work. What this function buys you is that the KV caches are already filled with the relevant data.
62+
///
6163
/// # Parameters
6264
///
6365
/// * `path_session` - The file to load from. It must be a session file from a compatible context, otherwise the function will error.

0 commit comments

Comments
 (0)