8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a4f2d2 commit f39e33bCopy full SHA for f39e33b
crates/llama_cpp/src/session/mod.rs
@@ -377,6 +377,9 @@ impl LlamaSession {
377
/// Removes all tokens within the given range without performing any prompt
378
/// processing. If you remove tokens in the middle of context, it is recommended that you keep
379
/// the first ~4 tokens of context when you do this, per <https://arxiv.org/abs/2309.17453>.
380
+ ///
381
+ /// Note that calling this is not equivalent to calling [`LlamaSession::set_context`] with the
382
+ /// same list of tokens that this method produces.
383
pub fn remove_tokens_in_range(&mut self, range: impl RangeBounds<usize>) {
384
let start_bound = match range.start_bound() {
385
Bound::Included(i) => *i as i32,
0 commit comments