Repository navigation
Conversation
## What Backport the DeepStack residual fix to the retained SGLang v0.5.17 patch. ## Why The deferred MoE reduction in SGLang v0.5.17 can silently drop the Qwen3-VL MoE DeepStack addend. Both the fused normalization call and its explicit-reduction fallback omit `post_residual_addition`. ## How - Require an empty `post_residual_addition` before choosing fused all-reduce and RMSNorm. - Run the existing MoE all-reduce fallback and forward the addend to the input layernorm. This follows the equivalent guard in [SGLang #41552](sgl-project/sglang#41552). ## Testing - Applied the v0.5.17 patch to the pinned SGLang source with `git apply --3way`. The resulting communicator matched the GPU-tested file byte for byte and passed Python compilation. - Validated the patched runtime with 10 DeepEyes optimizer steps on 16 H20 GPUs. FlashInfer all-reduce fusion was active on all eight TP2 rollout engines, and the rollout probability and log-probability gaps returned to baseline levels. - The GPU validation covered the v0.5.17 runtime patch. The full distributed test suite and a fresh Docker image build were outside the validation run. - [x] `pre-commit run --all-files` passes - [ ] Tests pass (`pytest tests/`) - [ ] New tests added (if applicable) - [ ] Documentation updated (if applicable) ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Refactoring (no functional changes) - [ ] Performance improvement - [ ] CI/CD or build changes ## Screenshots / Logs The targeted validation compared the patched runtime with the original training run and a fusion-disabled reference.
2 of 11 tasks
Contributor
Author
|
Thanks for contributing to Relax, @rai-studio-bot! 感谢你为 Relax 做出贡献! 📚 Contribution guide / 贡献指南Describe the problem, your changes, and how you validated them. Keep each PR focused and run 请说明问题、改动和验证方式,保持 PR 聚焦,并在提交前运行 🛠️ CI commands / CI 指令
Put one command on the first line of a new PR comment. Rerun/cancel require PR authorship or repository write access. 在新 PR 评论的首行写一条指令。PR 作者或有仓库写权限的贡献者可以重跑、取消 CI。 🔎 Merge requirements / 合入条件GitHub:⏳ 合入条件未满足
|
SigureMo
approved these changes
Nov 25, 2026
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.
What
Backport the DeepStack residual fix to the retained SGLang v0.5.17 patch.
Why
The deferred MoE reduction in SGLang v0.5.17 can silently drop the Qwen3-VL MoE DeepStack addend. Both the fused normalization call and its explicit-reduction fallback omit
post_residual_addition.How
post_residual_additionbefore choosing fused all-reduce and RMSNorm.Testing
Applied the v0.5.17 patch to the pinned SGLang source with
git apply --3way. The resulting communicator matched the GPU-tested file byte for byte and passed Python compilation.Validated the patched runtime with 10 DeepEyes optimizer steps on 16 H20 GPUs. FlashInfer all-reduce fusion was active on all eight TP2 rollout engines, and the rollout probability and log-probability gaps returned to baseline levels.
The GPU validation covered the v0.5.17 runtime patch. The full distributed test suite and a fresh Docker image build were outside the validation run.
pre-commit run --all-filespassesTests pass (
pytest tests/)New tests added (if applicable)
Documentation updated (if applicable)
Type of Change
Screenshots / Logs
The targeted validation compared the patched runtime with the original training run and a fusion-disabled reference.
Cherry-pick of #788 (authored by @xiaoliang0601) to
release/0.2.0.