Repository navigation
rdsp: Ray-based pipeline parallelism for DeepSpeed - #1026
Merged
tohtana merged 2 commits intoNov 25, 2026
Merged
Conversation
rdsp runs DeepSpeed pipeline-parallel training with each stage as a group of Ray actors, so every stage gets its own GPU count and its own layout (DP, ZeRO, AutoTP, Ulysses SP, AutoEP). It trains Hugging Face models, including Qwen3.5 vision-language models with the vision encoder on its own stage, picks stage boundaries from measured stage times, and can keep FP32 master weights as BF16 weights plus a 16-bit remainder. Includes the package (src/), training scripts (train.py, train_vl.py), tests (CPU suite: 630 passed, 48 skipped), the benchmark scripts and logs behind the PyTorch blog post's Qwen3.5 9B/27B/35B-A3B comparisons with Megatron-Bridge, Megatron-MIMO and TorchTitan, and a reproduction guide (docs/REPRODUCE.md). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Naveenraj Kamalakannan <therealnaveenkamal@gmail.com>
The scripts still write them; docs/REPRODUCE.md names the file each run writes. Tests that recompute the published numbers from the logs skip where the logs are absent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Naveenraj Kamalakannan <therealnaveenkamal@gmail.com>
tohtana
approved these changes
Nov 25, 2026
tohtana
left a comment
Contributor
There was a problem hiding this comment.
Thank you, @therealnaveenkamal!
This was referenced Nov 25, 2026
Merged
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.
rdsp: Ray-based Pipeline Parallelism in DeepSpeed
Each pipeline stage runs as its own group of Ray actors, so every stage can have its own GPU count and layout (DP/ZeRO, AutoTP, Ulysses SP, AutoEP). It trains Hugging Face models, including Qwen3.5 vision-language models with the vision encoder on a separate stage.
What's in it
src/ray_deepspeed_pipeline/: the packagetrain.py,train_vl.py: text and vision-language training scriptstests/: unit and CPU integration testsbench/: scripts and logs for the blog's comparisons with Megatron-Bridge, Megatron-MIMO and TorchTitandocs/REPRODUCE.md: how to rerun each numberResults (H100, Qwen3.5 on CORD-v2, median step time)
On Megatron-MIMO's own layouts, rdsp is at 0.99–1.09× MIMO's throughput.
Testing
pyteston CPU: 630 passed, 48 skipped (the skipped tests need GPUs)ruff checkandruff format --check: clean