Repository navigation
feat: support GLM-5.2 #4737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
feat: support GLM-5.2 #4737
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
3b5f03b
feat: support glm 5.2
CUHKSZzxy 1d95a18
feat: support glm-5.2 dsa indexing
CUHKSZzxy cb8bb28
fix: parse glm tool calls from reasoning
CUHKSZzxy 5252430
fix: cache dsa topk indices
CUHKSZzxy 34790b5
refactor: simplify dsa topk buffer
CUHKSZzxy 38e3be8
fix: support mla dp attention layout
CUHKSZzxy d922595
fix: install xgrammar for jetson docker
CUHKSZzxy c6ffcea
Merge branch 'main' into feat/glm-5-2-support
CUHKSZzxy 95ec45a
perf: use radix topk for sparse indexing
CUHKSZzxy a1e5770
feat: support GLM-5.2 expert and indexer replay
CUHKSZzxy 07e6bea
perf: fuse interleaved indexer rotary embedding
CUHKSZzxy b77a172
feat: support GLM-5.2 MoE-only FP8
CUHKSZzxy 1fae036
Merge branch 'main' into feat/glm-5-2-support
CUHKSZzxy 97832a8
perf: fuse dsa indexer preparation
CUHKSZzxy 138b676
refactor: simplify deepseek v3.2 environment check
CUHKSZzxy 4aa3a08
perf: compact dsa indexer replay
CUHKSZzxy 9f30072
Merge branch 'main' into feat/glm-5-2-support
CUHKSZzxy 6c1ec35
feat: support GLM-5.2 MTP
CUHKSZzxy 64fc81c
fix: align GLM-5.2 MTP sharing semantics
CUHKSZzxy 3c45c11
feat: support bf16 sparse FlashMLA cache
CUHKSZzxy d8d6886
test: fix GLM-5.2 CI compatibility
CUHKSZzxy 0f61dea
test: skip DSA FP8 cache test on SM80
CUHKSZzxy ae9cf07
fix: preserve DSA query width for MTP
CUHKSZzxy a1f0b28
Merge branch 'main' into feat/glm-5-2-support
CUHKSZzxy 8ce59f2
fix: guard optional GLM runtime paths
CUHKSZzxy cf79dc4
fix: grow indexer history on demand
CUHKSZzxy d91ca81
refactor: rename DSA indexer preprocessing module
CUHKSZzxy f4ffe8d
perf: upgrade FlashMLA sparse decode
CUHKSZzxy 7196130
refactor: clean up DSA configuration and kernels
CUHKSZzxy d2d5735
refactor: remove DSA indexer replay
CUHKSZzxy d5f844b
chore: clean up indexer replay leftovers
CUHKSZzxy 1edfc35
Merge remote-tracking branch 'upstream/main' into feat/glm-5-2-support
CUHKSZzxy 471daeb
test: clean up merge resolutions
CUHKSZzxy 1879da7
perf: use zero-copy BF16 cache for sparse MLA
CUHKSZzxy fd89769
perf: bypass dsa scoring for dense decode
CUHKSZzxy f13d852
perf: compact blocked-fp8 moe scheduling
CUHKSZzxy a39a367
perf: simplify single-token decode metadata
CUHKSZzxy a7761c9
style: format dense indexer docstring
CUHKSZzxy 9a85c6d
style: use fp8 naming for fused moe kernels
CUHKSZzxy 5bd7834
Merge remote-tracking branch 'upstream/main' into feat/glm-5-2-support
CUHKSZzxy fcf3a46
revert: restore decode metadata construction
CUHKSZzxy 2e53bec
revert: restore routed expert output handling
CUHKSZzxy df6ad66
refactor: delegate model-specific cuda graph keys
CUHKSZzxy bdd3a9a
perf: resolve sparse index topk at initialization
CUHKSZzxy cbaef6c
perf: prepare dsa causal lengths once per forward
CUHKSZzxy 4baf26d
perf: avoid specializing dsa block table stride
CUHKSZzxy ffaec01
refactor: isolate GLM-5.2 modeling
CUHKSZzxy afd7a69
refactor: remove unused dsa indexer preprocessing
CUHKSZzxy cf0a68a
refactor: remove irrelevant use_mla branches
CUHKSZzxy 2a1da80
Merge remote-tracking branch 'upstream/main' into feat/glm-5-2-support
CUHKSZzxy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this dependency require a specific CUDA version? Can cuda 13+ work?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, haven't tested with cu13. cu128 should work
I have already found one way to eliminate this dependency and have made it the default option for GLM5.2. But since DeepSeekV3.2, GLM5.2, DeepSeekV4 may still use it, so adding it here for convenience.