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

Function common_sampler_free

smallthinker/common/sampling.cpp:290–298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290void common_sampler_free(struct common_sampler * gsmpl) {
291 if (gsmpl) {
292 llama_sampler_free(gsmpl->grmr);
293
294 llama_sampler_free(gsmpl->chain);
295
296 delete gsmpl;
297 }
298}
299
300void common_sampler_accept(struct common_sampler * gsmpl, llama_token token, bool accept_grammar) {
301 if (accept_grammar) {

Callers 10

~mtmd_cli_contextMethod · 0.85
mainFunction · 0.85
~server_contextMethod · 0.85
launch_slot_with_taskMethod · 0.85
common_speculative_freeFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
~clientMethod · 0.85

Calls 1

llama_sampler_freeFunction · 0.85

Tested by 3

common_speculative_freeFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68