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

Function llama_get_logits

llama.cpp:10683–10685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10681}
10682
10683float * llama_get_logits(struct llama_context * ctx) {
10684 return ctx->logits.data();
10685}
10686
10687float * llama_get_logits_ith(struct llama_context * ctx, int32_t i) {
10688 return ctx->logits.data() + i*ctx->model.hparams.n_vocab;

Callers 7

llama_logit_infoMethod · 0.70
sample_idFunction · 0.50
mainFunction · 0.50
perplexity_v2Function · 0.50
perplexityFunction · 0.50

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected