| 2537 | } |
| 2538 | |
| 2539 | llama_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 |
| 2549 | void llama_kv_self_defrag(llama_context * ctx) { |
no test coverage detected