From: Adrian Lundberg Date: Sun, 2 Nov 2025 09:28:37 +0000 (+0100) Subject: docs: remove llama_sampler_accept reference in sampling sample usage (#16920) X-Git-Tag: upstream/0.0.7011~88 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=76af40aaaad78c42faecd8016a88362c788b84b0;p=pkg%2Fggml%2Fsources%2Fllama.cpp docs: remove llama_sampler_accept reference in sampling sample usage (#16920) commit 5fb5e24811cb01d48b482c15a974bfbd9f433e1d (llama : minor sampling refactor (2) (#9386)) moved the llama_sampler_accept call into llama_sampler_sample, but the sampling sample usage in llama.h was forgotten to be updated accordingly. --- diff --git a/include/llama.h b/include/llama.h index 08e2ffa3..05baa43d 100644 --- a/include/llama.h +++ b/include/llama.h @@ -1111,8 +1111,6 @@ extern "C" { // // sample from the logits of the last token in the batch // const llama_token id = llama_sampler_sample(smpl, ctx, -1); // - // // accepting the token updates the internal state of certain samplers (e.g. grammar, repetition, etc.) - // llama_sampler_accept(smpl, id); // ... // } //