Skip to content

expand model integration tests to full_dtensor, spmd_types backends - #3740

Merged
pianpwk merged 59 commits into
mainfrom
gh/pianpwk/49/head
Jun 26, 2026
Merged

pianpwk merged 59 commits into
mainfrom
gh/pianpwk/49/head

Conversation

@pianpwk

@pianpwk pianpwk commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

pianpwk added 2 commits June 22, 2026 12:29
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added 2 commits June 22, 2026 16:07
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jun 22, 2026
ghstack-source-id: bedef3d
Pull Request resolved: #3740
@pianpwk pianpwk changed the title Expand model integration tests across SPMD backends expand model integration tests to full_dtensor, spmd_types backends Jun 22, 2026
@pianpwk
pianpwk marked this pull request as ready for review June 22, 2026 23:11
pianpwk added 6 commits June 22, 2026 18:01
[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
ghstack-source-id: b9d529a
Pull Request resolved: #3740
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
ghstack-source-id: b9d529a
Pull Request resolved: #3740
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
ghstack-source-id: b9d529a
Pull Request resolved: #3740
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 a commit that referenced this pull request Jun 26, 2026
ghstack-source-id: b9d529a
Pull Request resolved: #3740
pianpwk added a commit that referenced this pull request Jun 26, 2026
ghstack-source-id: b9d529a
Pull Request resolved: #3740
pianpwk added a commit that referenced this pull request Jun 26, 2026
ghstack-source-id: b9d529a
Pull Request resolved: #3740
pianpwk added 2 commits June 25, 2026 20:17
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jun 26, 2026
ghstack-source-id: 02580fa
Pull Request resolved: #3740
pianpwk added 2 commits June 25, 2026 22:17
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jun 26, 2026
ghstack-source-id: 9a77047
Pull Request resolved: #3740
pianpwk added 2 commits June 26, 2026 00:22
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jun 26, 2026
ghstack-source-id: 0a0b442
Pull Request resolved: #3740
pianpwk added a commit that referenced this pull request Jun 26, 2026
ghstack-source-id: 0a0b442
Pull Request resolved: #3740
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jun 26, 2026
ghstack-source-id: 65b736f
Pull Request resolved: #3740
@pianpwk
pianpwk changed the base branch from gh/pianpwk/49/base to main June 26, 2026 23:33
@pianpwk
pianpwk merged commit c8abb17 into main Jun 26, 2026
7 of 11 checks passed
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