MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / llama_sampler_chain_accept

Function llama_sampler_chain_accept

smallthinker/src/llama-sampling.cpp:418–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418static void llama_sampler_chain_accept(struct llama_sampler * smpl, llama_token token) {
419 auto * chain = (llama_sampler_chain *) smpl->ctx;
420
421 time_meas tm(chain->t_sample_us, chain->params.no_perf);
422
423 for (auto * smpl : chain->samplers) {
424 llama_sampler_accept(smpl, token);
425 }
426
427 chain->n_sample++;
428}
429
430static void llama_sampler_chain_apply(struct llama_sampler * smpl, llama_token_data_array * cur_p) {
431 auto * chain = (llama_sampler_chain *) smpl->ctx;

Callers

nothing calls this directly

Calls 1

llama_sampler_acceptFunction · 0.85

Tested by

no test coverage detected