MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / llama_encode

Function llama_encode

src/llama-context.cpp:3473–3482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3471///
3472
3473int32_t llama_encode(
3474 llama_context * ctx,
3475 llama_batch batch) {
3476 const int ret = ctx->encode(batch);
3477 if (ret != 0) {
3478 LLAMA_LOG_ERROR("%s: failed to encode, ret = %d\n", __func__, ret);
3479 }
3480
3481 return ret;
3482}
3483
3484int32_t llama_decode(
3485 llama_context * ctx,

Callers 6

mainFunction · 0.85
mainFunction · 0.85
get_logitsFunction · 0.85
common_init_from_paramsFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

encodeMethod · 0.45

Tested by 1

get_logitsFunction · 0.68