llama : fix need_reserve when unsetting a sampler

This commit is contained in:
Georgi Gerganov 2026-01-14 12:39:08 +02:00
parent be9e6ef2c0
commit 3084bfe633
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735
1 changed files with 2 additions and 0 deletions

View File

@ -1057,6 +1057,8 @@ bool llama_context::set_sampler(llama_seq_id seq_id, llama_sampler * sampler) {
sampling.samplers.erase(seq_id);
sched_need_reserve = true;
return true;
}