Skip to content

kv-cache : drop the "unified" prefix - #15467

Merged
ggerganov merged 2 commits into
masterfrom
gg/kv-cache-drop-unified
Aug 21, 2025
Merged

ggerganov merged 2 commits into
masterfrom
gg/kv-cache-drop-unified

Conversation

@ggerganov

Copy link
Copy Markdown
Member

With the introduction of split KV cache buffers (#14363), it no longer makes sense to use the "unified" prefix.

@ggerganov
ggerganov merged commit 715a6db into master Aug 21, 2025
@ggerganov
ggerganov deleted the gg/kv-cache-drop-unified branch August 21, 2025 14:00
qnixsynapse pushed a commit to janhq/llama.cpp that referenced this pull request Aug 22, 2025
* kv-cache : drop the "unified" prefix

ggml-ci

* cont : fix comment [no ci]
Nexesenex added a commit to Nexesenex/croco.cpp that referenced this pull request Oct 6, 2025
blime4 referenced this pull request in blime4/llama.cpp Feb 5, 2026
* kv-cache : drop the "unified" prefix

ggml-ci

* cont : fix comment [no ci]
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
* kv-cache : drop the "unified" prefix

ggml-ci

* cont : fix comment [no ci]
Ooooze pushed a commit to AtomicBot-ai/atomic-engine that referenced this pull request May 12, 2026
…g cache reuse

The kv_base->get_size() == kv_swa->get_size() condition in get_can_shift()
was introduced in PR ggml-org#15467 before Gemma 4 existed. Gemma 4 has 10 global
layers vs 50 SWA layers by design, so this check always returns false,
permanently blocking cache reuse for all Gemma 4 users.

The individual get_can_shift() calls on each sub-cache already guard shift
safety independently. Removing the size equality check is safe for all
existing models.

Fix also submitted to llama.cpp mainline:
ggml-org#21831 (comment)
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
* kv-cache : drop the "unified" prefix

ggml-ci

* cont : fix comment [no ci]
jimbothigpen pushed a commit to jimbothigpen/af-engn that referenced this pull request May 21, 2026
…g cache reuse

The kv_base->get_size() == kv_swa->get_size() condition in get_can_shift()
was introduced in PR ggml-org#15467 before Gemma 4 existed. Gemma 4 has 10 global
layers vs 50 SWA layers by design, so this check always returns false,
permanently blocking cache reuse for all Gemma 4 users.

The individual get_can_shift() calls on each sub-cache already guard shift
safety independently. Removing the size equality check is safe for all
existing models.

Fix also submitted to llama.cpp mainline:
ggml-org#21831 (comment)
jimbothigpen pushed a commit to jimbothigpen/af-engn that referenced this pull request May 25, 2026
…g cache reuse

The kv_base->get_size() == kv_swa->get_size() condition in get_can_shift()
was introduced in PR ggml-org#15467 before Gemma 4 existed. Gemma 4 has 10 global
layers vs 50 SWA layers by design, so this check always returns false,
permanently blocking cache reuse for all Gemma 4 users.

The individual get_can_shift() calls on each sub-cache already guard shift
safety independently. Removing the size equality check is safe for all
existing models.

Fix also submitted to llama.cpp mainline:
ggml-org#21831 (comment)
fukuro-kun pushed a commit to fukuro-kun/fukuro-llama-cpp-turboquant that referenced this pull request Jul 5, 2026
* kv-cache : drop the "unified" prefix

ggml-ci

* cont : fix comment [no ci]
fukuro-kun pushed a commit to fukuro-kun/fukuro-llama-cpp-turboquant that referenced this pull request Jul 5, 2026
…g cache reuse

The kv_base->get_size() == kv_swa->get_size() condition in get_can_shift()
was introduced in PR ggml-org#15467 before Gemma 4 existed. Gemma 4 has 10 global
layers vs 50 SWA layers by design, so this check always returns false,
permanently blocking cache reuse for all Gemma 4 users.

The individual get_can_shift() calls on each sub-cache already guard shift
safety independently. Removing the size equality check is safe for all
existing models.

Fix also submitted to llama.cpp mainline:
ggml-org#21831 (comment)
MrLordCat referenced this pull request in MrLordCat/llama.cpp-rdna-lab Jul 16, 2026
* kv-cache : drop the "unified" prefix

ggml-ci

* cont : fix comment [no ci]
zommiommy pushed a commit to zommiommy/llama.cpp that referenced this pull request Aug 18, 2026
* kv-cache : drop the "unified" prefix

ggml-ci

* cont : fix comment [no ci]
frostyautumnleaf pushed a commit to frostyautumnleaf/llama.cpp that referenced this pull request Oct 5, 2026
* kv-cache : drop the "unified" prefix

ggml-ci

* cont : fix comment [no ci]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants