MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / common_sampler_print

Function common_sampler_print

subprojects/llama.cpp/common/sampling.cpp:597–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597std::string common_sampler_print(const struct common_sampler * gsmpl) {
598 std::string result = "logits ";
599
600 for (int i = 0; i < llama_sampler_chain_n(gsmpl->chain); i++) {
601 const auto * smpl = llama_sampler_chain_get(gsmpl->chain, i);
602 result += std::string("-> ");
603 result += std::string(llama_sampler_name(smpl)) + " ";
604 }
605
606 return result;
607}
608
609std::string common_sampler_prev_str(common_sampler * gsmpl, llama_context * ctx_main, int n) {
610 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