Add GLM4-MOE Mode w/Disaggregated Prefill and Decode Support#988
Open
vbaddi wants to merge 8 commits into
Open
Add GLM4-MOE Mode w/Disaggregated Prefill and Decode Support#988vbaddi wants to merge 8 commits into
vbaddi wants to merge 8 commits into
Conversation
6e91468 to
77e65e9
Compare
Enable GLM4-MOE chunked prefill MoE, KV-blocked attention, and disaggregated serving export with subfunctions. - GLM4-MOE decode path - Chunked prefill MoE path with packed expert dispatch - KV-blocked attention path - Disaggregated prefill/decode serving example - ONNX subfunction export for decode and prefill Signed-off-by: vbaddi <vbaddi@qti.qualcomm.com>
Use the headpar_offline KV-blocking path by default for GQA-compatible KV blocking, with fallback to the previous online implementation for unsupported masking/bias cases. Revert to previous commit if fails. WIP Signed-off-by: vbaddi <vbaddi@qti.qualcomm.com>
Route KV-containing combined blocking modes through the headpar_offline path when supported, and pass user-tiled compile flags explicitly in the GLM4 MoE disagg example. Signed-off-by: vbaddi <vbaddi@qti.qualcomm.com>
Signed-off-by: vbaddi <vbaddi@qti.qualcomm.com>
…on export and update example Signed-off-by: vbaddi <vbaddi@qti.qualcomm.com>
Trace chunked prefill exports with the requested prefill_seq_len so packed MoE dispatch unrolls all packed chunks, restore torch.full_likeindex init, and add ONNX coverage for the second packed chunk slice. Signed-off-by: vbaddi <vbaddi@qti.qualcomm.com>
…ss/qwen3/pr935 Signed-off-by: vbaddi <vbaddi@qti.qualcomm.com>
Signed-off-by: vbaddi <vbaddi@qti.qualcomm.com>
8452e31 to
5c632b7
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds GLM4-MOE support for disaggregated serving with chunked prefill.
Supported
Tested
prefill_seq_len=512, packed chunk size256