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

Function llama_sampler_accept

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

Source from the content-addressed store, hash-verified

333}
334
335void llama_sampler_accept(struct llama_sampler * smpl, llama_token token) {
336 if (smpl->iface->accept) {
337 smpl->iface->accept(smpl, token);
338 }
339}
340
341void llama_sampler_apply(struct llama_sampler * smpl, struct llama_token_data_array * cur_p) {
342 GGML_ASSERT(smpl->iface->apply);

Callers 7

llama_sampler_sampleFunction · 0.85
test_penaltiesFunction · 0.85
test_dryFunction · 0.85
match_stringFunction · 0.85
test_sampler_chainFunction · 0.85
common_sampler_acceptFunction · 0.85

Calls 1

acceptMethod · 0.80

Tested by 4

test_penaltiesFunction · 0.68
test_dryFunction · 0.68
match_stringFunction · 0.68
test_sampler_chainFunction · 0.68