Skip to content

Commit

Permalink
Add a note about needing to pass the returned tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
zh217 committed Feb 27, 2024
1 parent c6179bf commit 1a37ca0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llama-cpp-2/src/context/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ impl LlamaContext<'_> {
}
/// Load a session file into the current context.
///
/// 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.
///
/// # Parameters
///
/// * `path_session` - The file to load from. It must be a session file from a compatible context, otherwise the function will error.
Expand Down

0 comments on commit 1a37ca0

Please sign in to comment.