Skip to content

Commit 76af40a

Browse files
authored
docs: remove llama_sampler_accept reference in sampling sample usage (ggml-org#16920)
commit 5fb5e24 (llama : minor sampling refactor (2) (ggml-org#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.
1 parent 7db35a7 commit 76af40a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/llama.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,8 +1111,6 @@ extern "C" {
11111111
// // sample from the logits of the last token in the batch
11121112
// const llama_token id = llama_sampler_sample(smpl, ctx, -1);
11131113
//
1114-
// // accepting the token updates the internal state of certain samplers (e.g. grammar, repetition, etc.)
1115-
// llama_sampler_accept(smpl, id);
11161114
// ...
11171115
// }
11181116
//

0 commit comments

Comments
 (0)