abetlen / abetlen/llama-cpp-python

Regression in unified KV cache appears after `llama.cpp` release b5912 in b5913

オープン
#2,045 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
10.6k
フォーク
1.4k
PR マージ指標
PR 指標を取得中

説明

This issue concerns the llama-cpp-python community but was filed on the llama.cpp tracker first: https://github.com/ggml-org/llama.cpp/issues/14847.

I just wanted to bring it to your attention. I can relocate the issue if it is more relevant here. For your convenience, the issue description is reproduced here:

Running `llama-cpp-python` against `llama.cpp` compiled after b5912, in b5913, results in:

```
llama.cpp/src/llama-kv-cache-unified.cpp:222: GGML_ASSERT(seq_id >= 0 && (size_t) seq_id < seq_to_stream.size()) failed
```

It appears to be a regression in **sequence ID handling** or **unified KV cache logic** affecting external bindings. This is consistent with the heavy work done on the kv-cache to prepare K/V buffers for separation in b5913.

**NOTE**: llama-cli runs successfully, but running `llama-cpp-python` against `llama.cpp` with the same model fails.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。