Skip to content

rdsp: Ray-based pipeline parallelism for DeepSpeed - #1026

Merged
tohtana merged 2 commits into
deepspeedai:masterfrom
therealnaveenkamal:feature/rdsp-upstream
Nov 25, 2026
Merged

tohtana merged 2 commits into
deepspeedai:masterfrom
therealnaveenkamal:feature/rdsp-upstream

Conversation

@therealnaveenkamal

Copy link
Copy Markdown
Contributor

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 package
  • train.py, train_vl.py: text and vision-language training scripts
  • tests/: unit and CPU integration tests
  • bench/: scripts and logs for the blog's comparisons with Megatron-Bridge, Megatron-MIMO and TorchTitan
  • docs/REPRODUCE.md: how to rerun each number

Results (H100, Qwen3.5 on CORD-v2, median step time)

Model GPUs rdsp Megatron-Bridge TorchTitan
35B-A3B (MoE) 16 6.38 s 8.67 s 9.11 s
27B (dense) 8 10.66 s 15.13 s 13.16 s

On Megatron-MIMO's own layouts, rdsp is at 0.99–1.09× MIMO's throughput.

Testing

  • pytest on CPU: 630 passed, 48 skipped (the skipped tests need GPUs)
  • ruff check and ruff format --check: clean

therealnaveenkamal and others added 2 commits November 24, 2026 18:56
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 tohtana left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you, @therealnaveenkamal!

@tohtana
tohtana merged commit 9edf289 into deepspeedai:master Nov 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants