mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-06 09:46:50 +00:00
docs: remove llama_sampler_accept reference in sampling sample usage (#16920)
commit 5fb5e24811 (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.
This commit is contained in:
@@ -1111,8 +1111,6 @@ extern "C" {
|
|||||||
// // sample from the logits of the last token in the batch
|
// // sample from the logits of the last token in the batch
|
||||||
// const llama_token id = llama_sampler_sample(smpl, ctx, -1);
|
// 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);
|
|
||||||
// ...
|
// ...
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user