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

Function llama_sampler_typical_clone

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

Source from the content-addressed store, hash-verified

929}
930
931static struct llama_sampler * llama_sampler_typical_clone(const struct llama_sampler * smpl) {
932 const auto * ctx = (const llama_sampler_typical *) smpl->ctx;
933 return llama_sampler_init_typical(ctx->p, ctx->min_keep);
934}
935
936static void llama_sampler_typical_free(struct llama_sampler * smpl) {
937 delete (llama_sampler_typical *) smpl->ctx;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected