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

Function llama_decode

llama.cpp:10672–10681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10670}
10671
10672int llama_decode(
10673 struct llama_context * ctx,
10674 struct llama_batch batch) {
10675 const int ret = llama_decode_internal(*ctx, batch);
10676 if (ret < 0) {
10677 LLAMA_LOG_ERROR("%s: failed to decode, ret = %d\n", __func__, ret);
10678 }
10679
10680 return ret;
10681}
10682
10683float * llama_get_logits(struct llama_context * ctx) {
10684 return ctx->logits.data();

Callers 15

loopMethod · 0.70
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
eval_tokensFunction · 0.50
llava_eval_image_embedFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
test_promptFunction · 0.50
test_genFunction · 0.50

Calls 1

llama_decode_internalFunction · 0.85

Tested by 3

mainFunction · 0.40
test_promptFunction · 0.40
test_genFunction · 0.40