Skip to content

perf(glm): skip unused NextN prefill computation - #1708

Open
shihaobai wants to merge 1 commit into
mainfrom
bsh/glm-prefill-nextn-cache-only
Open

shihaobai wants to merge 1 commit into
mainfrom
bsh/glm-prefill-nextn-cache-only

Conversation

@shihaobai

Copy link
Copy Markdown
Collaborator

GLM EAGLE Prefill evaluates draft outputs that are discarded. Write the single NextN block's MLA KV and K-pool/tail caches directly, skipping query, attention, FFN and logits for eager FP8-KV Prefill with one TP rank per DP and MTP1. Other configurations retain full forward.

Validation: 63 CPU/CUDA tests on H100, plus four byte-exact comparisons against unmodified main cache writers covering HOLD, 8K chunks, mixed long prefixes and pool boundaries.

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.

1 participant