Repository navigation
[RL] Test RL integration with spmd_types - #4112
Merged
Merged
Conversation
[ghstack-poisoned]
acisseJZhong
requested review from
fegin,
tianyu-l and
wconstab
as code owners
August 11, 2026 16:41
acisseJZhong
added a commit
that referenced
this pull request
Aug 12, 2026
Configure both the trainer and generator to use the spmd_types backend in every RL integration test invocation. This exercises dense and MoE configurations, checkpoint resharding, compilation, and batch-invariant training through the SPMD types path. Test Plan: - python3 -m py_compile torchtitan/experiments/rl/tests/integration_tests.py - 8-GPU RL integration tests will run in CI ghstack-source-id: 0355edc Pull-Request: #4112
tianyu-l
approved these changes
Aug 12, 2026
| "--module alphabet_sort", | ||
| "--config rl_grpo_qwen3_0_6b_varlen", | ||
| "--trainer.parallelism.spmd_backend spmd_types", | ||
| "--generator.parallelism.spmd_backend spmd_types", |
Contributor
There was a problem hiding this comment.
The trainer side don't need extra type checking because the pretraining tests should cover.
The generator side may still benefit from global spmd_types checking, for those modules that are different from trainer, e.g. attention. But we didn't have a mode to turn type checking on.
I think this is not urgent, but good to have in mind. @pianpwk
Contributor
|
rl test didn't run |
Contributor
Author
it's weird; I removed the ciflow/rl tag and added it again, still didn't trigger RL tests. |
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.
Stack from ghstack (oldest at bottom):
Configure both the trainer and generator to use the spmd_types backend in every RL integration test invocation. This exercises dense and MoE configurations, checkpoint resharding, compilation, and batch-invariant training through the SPMD types path.
Test Plan: