MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / common_sampler_free

Function common_sampler_free

subprojects/llama.cpp/common/sampling.cpp:350–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350void common_sampler_free(struct common_sampler * gsmpl) {
351 if (!gsmpl) {
352 return;
353 }
354
355 llama_sampler_free(gsmpl->grmr);
356 llama_sampler_free(gsmpl->chain);
357
358 delete gsmpl;
359}
360
361void common_sampler_accept(struct common_sampler * gsmpl, llama_token token, bool accept_grammar) {
362 if (!gsmpl) {

Callers 3

~mtmd_cli_contextMethod · 0.85
operator()Method · 0.85

Calls 1

llama_sampler_freeFunction · 0.85

Tested by 1