Skip to content

llama : allocate GLM_DSA indexer cache only in "full" indexer layers - #26474

Merged
fairydreaming merged 2 commits into
ggml-org:masterfrom
fairydreaming:glm-lid-cache-filter
Aug 3, 2026
Merged

fairydreaming merged 2 commits into
ggml-org:masterfrom
fairydreaming:glm-lid-cache-filter

Conversation

@fairydreaming

Copy link
Copy Markdown
Contributor

Overview

This PR adds separate DSA lightning indexer cache filter argument in llama_kv_cache_dsa() and uses it to prevent allocation of indexer cache in GLM 5.2 model layers that do not contain "full" indexer. It shall considerably reduce overall indexer cache size (approx by ~75%).

Requirements

@fairydreaming
fairydreaming marked this pull request as ready for review August 3, 2026 07:52
@fairydreaming
fairydreaming merged commit 563dec8 into ggml-org:master Aug 3, 2026
22 of 26 checks passed
satindergrewal pushed a commit to satindergrewal/llama.cpp that referenced this pull request Aug 12, 2026
…g#26474)

Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
cubetitled-ui pushed a commit to cubetitled-ui/llama.cpp that referenced this pull request Aug 14, 2026
…g#26474)

Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
brittlewis12 pushed a commit to brittlewis12/llama.cpp that referenced this pull request Aug 17, 2026
…g#26474)

Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
thecodacus pushed a commit to thecodacus/llama.cpp that referenced this pull request Sep 7, 2026
…g#26474)

Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
zbrad pushed a commit to zbrad/llama.cpp that referenced this pull request Sep 10, 2026
…g#26474)

Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
pl752 pushed a commit to pl752/llama.cpp that referenced this pull request Sep 15, 2026
…g#26474)

Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
frostyautumnleaf pushed a commit to frostyautumnleaf/llama.cpp that referenced this pull request Oct 5, 2026
…g#26474)

Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
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.

4 participants