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

llama : allocate GLM_DSA indexer cache only in "full" indexer layers#26474
fairydreaming merged 2 commits into
ggml-org:masterfrom
fairydreaming:glm-lid-cache-filter

Conversation

@fairydreaming

Copy link
Copy Markdown
Collaborator

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
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