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

Function common_sampler_clone

common/sampling.cpp:463–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

461}
462
463struct common_sampler * common_sampler_clone(common_sampler * gsmpl) {
464 return new common_sampler {
465 /* .params = */ gsmpl->params,
466 /* .grmr = */ llama_sampler_clone(gsmpl->grmr),
467 /* .rbudget = */ llama_sampler_clone(gsmpl->rbudget),
468 /* .chain = */ llama_sampler_clone(gsmpl->chain),
469 /* .prev = */ gsmpl->prev,
470 /* .cur = */ gsmpl->cur,
471 /* .cur_p = */ gsmpl->cur_p,
472 };
473}
474
475void common_perf_print(const struct llama_context * ctx, const struct common_sampler * gsmpl) {
476 // TODO: measure grammar performance

Callers 3

update_slotsMethod · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

llama_sampler_cloneFunction · 0.85

Tested by 2

mainFunction · 0.68
mainFunction · 0.68