Skip to content

[spmd_types] dsv3 enablement - #3673

Merged
pianpwk merged 106 commits into
mainfrom
gh/pianpwk/42/head
Jun 26, 2026
Merged

pianpwk merged 106 commits into
mainfrom
gh/pianpwk/42/head

Conversation

@pianpwk

@pianpwk pianpwk commented Jun 15, 2026 •

Copy link
Copy Markdown
Contributor

pianpwk added 2 commits June 15, 2026 00:01
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added 2 commits June 15, 2026 10:18
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jun 15, 2026
ghstack-source-id: c7a3732
Pull Request resolved: #3673
pianpwk added 2 commits June 15, 2026 13:12
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jun 15, 2026
ghstack-source-id: 74dcd4d
Pull Request resolved: #3673
pianpwk added 2 commits June 15, 2026 22:51
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jun 16, 2026
ghstack-source-id: 31421be
Pull Request resolved: #3673
pianpwk added 2 commits June 15, 2026 23:54
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jun 16, 2026
ghstack-source-id: 6ebf3c6
Pull Request resolved: #3673
pianpwk added 2 commits June 16, 2026 10:14
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jun 16, 2026
ghstack-source-id: 00cb6ab
Pull Request resolved: #3673
[ghstack-poisoned]
pianpwk added 15 commits June 25, 2026 13:12
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added 2 commits June 25, 2026 18:38
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jun 26, 2026
`set_current_spmd_mesh(sparse_mesh)` transitions for MoE region, spmd.all_to_all switch, plus
mesh reinterprets, assert_type, mutate_type

Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.12.0)
(oldest at bottom):
* #3740
* #3690
* #3673
* #3655
* #3741
* #3664
* __->__ #3654
pianpwk added a commit that referenced this pull request Jun 26, 2026
Fix spmd_types SP-padding support, by requiring evenly sharded seq-dim
for MoE input activations, calculating post-combine output size based on
local tensor shapes.

Raises in trainer for MoE + uneven seq-dim sharding.

Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.12.0)
(oldest at bottom):
* #3740
* #3690
* #3673
* #3655
* #3741
* __->__ #3664
pianpwk added a commit that referenced this pull request Jun 26, 2026
Wrap Helion RoPE and fused SwiGLU with explicit spmd.local_map calls

Test Plan:

- NGPU=8 LOG_RANK=0 MODULE=qwen3 CONFIG=qwen3_debugmodel_fused_qkv
./run_train.sh --parallelism.spmd_backend spmd_types
--debug.spmd_typechecking --parallelism.data_parallel_shard_degree 2
--parallelism.context_parallel_degree 2
--parallelism.tensor_parallel_degree 2 --training.steps 1
--override.imports torchtitan.overrides.helion_rope
activation-checkpoint:none

- NGPU=8 LOG_RANK=0 MODULE=deepseek_v3 CONFIG=deepseek_v3_debugmodel
./run_train.sh --parallelism.spmd_backend spmd_types
--debug.spmd_typechecking --parallelism.data_parallel_shard_degree 2
--parallelism.context_parallel_degree 2
--parallelism.tensor_parallel_degree 2
--parallelism.expert_parallel_degree 2 --training.steps 1
--override.imports torchtitan.overrides.fused_swiglu
activation-checkpoint:none

Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.12.0)
(oldest at bottom):
* #3740
* #3690
* #3673
* #3655
* __->__ #3741
pianpwk added 2 commits June 25, 2026 20:17
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added 2 commits June 25, 2026 22:17
[ghstack-poisoned]
[ghstack-poisoned]
@pianpwk
pianpwk changed the base branch from gh/pianpwk/42/base to main June 26, 2026 07:15
@pianpwk
pianpwk merged commit 622c1ac into main Jun 26, 2026
7 of 11 checks passed
submartingales pushed a commit to botcanlearn/torchtitan-upstream that referenced this pull request Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/8gpu CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants