Skip to content

[spmd_types] GPT-OSS enablement - #3690

Merged
pianpwk merged 95 commits into
mainfrom
gh/pianpwk/43/head
Jun 26, 2026
Merged

[spmd_types] GPT-OSS enablement#3690
pianpwk merged 95 commits into
mainfrom
gh/pianpwk/43/head

Conversation

@pianpwk

@pianpwk pianpwk commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

pianpwk added 2 commits June 16, 2026 14:48
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added 2 commits June 16, 2026 16:22
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jun 16, 2026
ghstack-source-id: cc74dcc
Pull Request resolved: #3690
pianpwk added 2 commits June 16, 2026 16:31
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jun 16, 2026
ghstack-source-id: 3c1f7ab
Pull Request resolved: #3690
pianpwk added 2 commits June 16, 2026 17:08
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jun 17, 2026
ghstack-source-id: 30d8436
Pull Request resolved: #3690
pianpwk added 2 commits June 16, 2026 20:37
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jun 17, 2026
ghstack-source-id: 0f6f491
Pull Request resolved: #3690
pianpwk added a commit that referenced this pull request Jun 17, 2026
SAC + Flex, or SAC + typecheck + non-flex, or typecheck + Flex + full/no AC is fine, but this is not (likely SAC + regional inductor issue). Raise error asking user to use one of the other cominbations

Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.12.0)
(oldest at bottom):
* #3690
* #3673
* #3655
* #3664
* #3654
* #3278
* #3694
* #3472
* #3632
* #3653
* __->__ #3672
pianpwk added 2 commits June 16, 2026 20:45
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added 10 commits June 25, 2026 14:55
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
submartingales pushed a commit to botcanlearn/torchtitan-upstream that referenced this pull request Jun 25, 2026
pianpwk added 2 commits June 25, 2026 16:43
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Jun 26, 2026
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 a commit that referenced this pull request Jun 26, 2026
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
pianpwk added 2 commits June 26, 2026 00:22
[ghstack-poisoned]
[ghstack-poisoned]
@pianpwk
pianpwk changed the base branch from gh/pianpwk/43/base to main June 26, 2026 07:23
@pianpwk
pianpwk merged commit 7144431 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/rl 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