]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
docs: remove llama_sampler_accept reference in sampling sample usage (#16920)
authorAdrian Lundberg <redacted>
Sun, 2 Nov 2025 09:28:37 +0000 (10:28 +0100)
committerGitHub <redacted>
Sun, 2 Nov 2025 09:28:37 +0000 (11:28 +0200)
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.

include/llama.h

index 08e2ffa34c9f68ae8f210c0cc190561ba810f1b0..05baa43da08d53a45c18cc00962e3f38b45eb2c3 100644 (file)
@@ -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);
     //        ...
     //    }
     //