MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / common_sampler_free

Function common_sampler_free

common/sampling.cpp:407–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void common_sampler_free(struct common_sampler * gsmpl) {
408 if (!gsmpl) {
409 return;
410 }
411
412 llama_sampler_free(gsmpl->grmr);
413 llama_sampler_free(gsmpl->rbudget);
414 llama_sampler_free(gsmpl->chain);
415
416 delete gsmpl;
417}
418
419static bool grammar_should_apply(struct common_sampler * gsmpl) {
420 if (!gsmpl->grmr) {

Callers 8

~mtmd_cli_contextMethod · 0.85
operator()Method · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
~clientMethod · 0.85

Calls 1

llama_sampler_freeFunction · 0.85

Tested by 2

mainFunction · 0.68