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

Function llama_sampling_free

common/sampling.cpp:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void llama_sampling_free(struct llama_sampling_context * ctx) {
32 if (ctx->grammar != NULL) {
33 llama_grammar_free(ctx->grammar);
34 }
35
36 delete ctx;
37}
38
39void llama_sampling_reset(llama_sampling_context * ctx) {
40 if (ctx->grammar != NULL) {

Callers 5

mainFunction · 0.85
mainFunction · 0.85
launch_slot_with_dataMethod · 0.85
mainFunction · 0.85
~clientMethod · 0.85

Calls 1

llama_grammar_freeFunction · 0.85

Tested by 1

mainFunction · 0.68