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

Function common_sampler_print

common/sampling.cpp:686–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684}
685
686std::string common_sampler_print(const struct common_sampler * gsmpl) {
687 std::string result = "logits ";
688
689 for (int i = 0; i < llama_sampler_chain_n(gsmpl->chain); i++) {
690 const auto * smpl = llama_sampler_chain_get(gsmpl->chain, i);
691 result += std::string("-> ");
692 result += std::string(llama_sampler_name(smpl)) + " ";
693 }
694
695 return result;
696}
697
698std::string common_sampler_prev_str(common_sampler * gsmpl, llama_context * ctx_main, int n) {
699 n = std::min(n, (int) gsmpl->prev.size());

Callers 3

mainFunction · 0.85
mainFunction · 0.85
launch_slot_with_taskMethod · 0.85

Calls 4

llama_sampler_chain_nFunction · 0.85
llama_sampler_chain_getFunction · 0.85
stringClass · 0.85
llama_sampler_nameFunction · 0.85

Tested by

no test coverage detected