Skip to content

[GLM 5.3 Perf] Align draft model kv cache dtype align with target, 50% GPU Memory saved for each draft model - #65198

Merged
mgoin merged 1 commit into
mainfrom
wentao-remove-glm5.3-spec-draft-model-auto
Nov 4, 2026
Merged

mgoin merged 1 commit into
mainfrom
wentao-remove-glm5.3-spec-draft-model-auto

Conversation

@yewentao256

Copy link
Copy Markdown
Member

Overview

Align draft model kv cache dtype align with target

Currently only eagle、eagle3、draft_model methods left, ngram、suffix doesn't require a dtype.

We don't have eagle for GLM 5.3 draft, for draft_model, really depends on the user case and we can't test all on that. Case like Qwen will certainly work for fp8 kv cache

Signed-off-by: yewentao256 <zhyanwentao@126.com>
@yewentao256 yewentao256 added the ready ONLY add when PR is ready to merge/full CI is needed label Nov 2, 2026

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@yewentao256 yewentao256 changed the title [GLM 5.3 Perf] Align draft model kv cache dtype align with target [GLM 5.3 Perf] Align draft model kv cache dtype align with target, 50% GPU Memory saved for each draft model Nov 2, 2026
@mergify mergify Bot added the glm label Nov 2, 2026
@yewentao256

Copy link
Copy Markdown
Member Author

/ci run

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

✅ Triggered Buildkite CI #99264 for commit 79d2e870ac75.

@mgoin

mgoin commented Nov 3, 2026

Copy link
Copy Markdown
Member

Sorry what use case is this for? Running GLM 5.3 with a small Qwen as draft model doesn't seem realistic

A valuable improvement in this code would be expanding the hardware support for default fp8 kv cache for this model beyond sm10x imo

@yewentao256 yewentao256 left a comment •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mgoin This PR should be more considered as a cleaning up for the code that won't be achieved and make it easier to read. Basically I don't think people will specifically change the default to eagle or draft_model for GLM 5.3 (no good choice from my understanding now)

A valuable improvement in this code would be expanding the hardware support for default fp8 kv cache for this model beyond sm10x imo

Nice suggestion, I tried on Hopper but seems performance loss, so hold it temporally

@mgoin
mgoin merged commit 31f84f6 into main Nov 4, 2026
117 of 121 checks passed
@mgoin
mgoin deleted the wentao-remove-glm5.3-spec-draft-model-auto branch November 4, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

glm ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants