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

Function llama_get_logits

smallthinker/src/llama-context.cpp:2345–2349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2343}
2344
2345float * llama_get_logits(llama_context * ctx) {
2346 ctx->synchronize();
2347
2348 return ctx->get_logits();
2349}
2350
2351float * llama_get_logits_ith(llama_context * ctx, int32_t i) {
2352 ctx->synchronize();

Callers 5

perplexity_v2Function · 0.50
perplexityFunction · 0.50
decode_helperFunction · 0.50
kl_divergenceFunction · 0.50
compute_imatrixFunction · 0.50

Calls 2

synchronizeMethod · 0.80
get_logitsMethod · 0.45

Tested by

no test coverage detected