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

Function llama_get_logits_ith

llama.cpp:10687–10689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
10689}
10690
10691float * llama_get_embeddings(struct llama_context * ctx) {
10692 return ctx->embedding.data();

Callers 3

llama_sampling_sampleFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected