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

Function llama_kv_self_seq_pos_max

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

Source from the content-addressed store, hash-verified

2537}
2538
2539llama_pos llama_kv_self_seq_pos_max(llama_context * ctx, llama_seq_id seq_id) {
2540 const auto * kv = ctx->get_kv_self();
2541 if (!kv) {
2542 return -1;
2543 }
2544
2545 return kv->seq_pos_max(seq_id);
2546}
2547
2548// deprecated
2549void llama_kv_self_defrag(llama_context * ctx) {

Callers 4

tokenize_promptFunction · 0.85
check_context_sizeFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

get_kv_selfMethod · 0.80
seq_pos_maxMethod · 0.45

Tested by

no test coverage detected