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

Function llama_sampler_infill_clone

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

Source from the content-addressed store, hash-verified

2484}
2485
2486static struct llama_sampler * llama_sampler_infill_clone(const struct llama_sampler * smpl) {
2487 const auto * ctx = (const llama_sampler_infill *) smpl->ctx;
2488 return llama_sampler_init_infill(ctx->vocab);
2489}
2490
2491static void llama_sampler_infill_free(struct llama_sampler * smpl) {
2492 delete (llama_sampler_infill *) smpl->ctx;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected