Skip to content

Commit 4373d4c

Browse files
committed
docs: remove llama_sampler_accept reference in sampling sample usage
commit 5fb5e24 (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.
1 parent e4a7159 commit 4373d4c

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)