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

Function llama_decode

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

Source from the content-addressed store, hash-verified

2685}
2686
2687int32_t llama_decode(
2688 llama_context * ctx,
2689 llama_batch batch) {
2690 const int ret = ctx->decode(batch);
2691 if (ret != 0 && ret != 1) {
2692 LLAMA_LOG_ERROR("%s: failed to decode, ret = %d\n", __func__, ret);
2693 }
2694
2695 return ret;
2696}
2697
2698//
2699// perf

Callers 15

get_hidden_layersFunction · 0.50
mainFunction · 0.50
generate_responseFunction · 0.50
mainFunction · 0.50
test_promptFunction · 0.50
test_genFunction · 0.50
mainFunction · 0.50
perplexity_v2Function · 0.50
perplexityFunction · 0.50
decode_helperFunction · 0.50

Calls 1

decodeMethod · 0.45

Tested by 5

test_promptFunction · 0.40
test_genFunction · 0.40
mainFunction · 0.40
mainFunction · 0.40