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

Function llama_kv_self_seq_keep

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

Source from the content-addressed store, hash-verified

2491}
2492
2493void llama_kv_self_seq_keep(llama_context * ctx, llama_seq_id seq_id) {
2494 auto * kv = ctx->get_kv_self();
2495 if (!kv) {
2496 return;
2497 }
2498
2499 kv->seq_keep(seq_id);
2500}
2501
2502void llama_kv_self_seq_add(
2503 llama_context * ctx,

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 2

get_kv_selfMethod · 0.80
seq_keepMethod · 0.45

Tested by 1

mainFunction · 0.68