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

Function common_perf_print

smallthinker/common/sampling.cpp:327–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327void common_perf_print(const struct llama_context * ctx, const struct common_sampler * gsmpl) {
328 // TODO: measure grammar performance
329
330 if (gsmpl) {
331 llama_perf_sampler_print(gsmpl->chain);
332 }
333 if (ctx) {
334 llama_perf_context_print(ctx);
335 }
336}
337
338llama_token common_sampler_sample(struct common_sampler * gsmpl, struct llama_context * ctx, int idx, bool grammar_first) {
339 gsmpl->set_logits(ctx, idx);

Callers 7

sigint_handlerFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

llama_perf_sampler_printFunction · 0.85
llama_perf_context_printFunction · 0.85

Tested by 2

mainFunction · 0.68
mainFunction · 0.68