Skip to content

[spmd_types] Muse Glimmer enablement - #4161

Merged
jinsooihm merged 4 commits into
pytorch:mainfrom
jinsooihm:enable-spmd-muse
Aug 18, 2026
Merged

jinsooihm merged 4 commits into
pytorch:mainfrom
jinsooihm:enable-spmd-muse

Conversation

@jinsooihm

@jinsooihm jinsooihm commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Enables spmd_types on Muse Glimmer and remove support for other backends.

Test

muse_glimmer_debugmodel_mm with FSDP 2 + TP 2 with --debug.seed 42 for 10 steps differs with the previous commit (624c312) default backend with average loss difference 4.4e-4. F.grid_sample does not have deterministic CUDA backward.

Remark:

https://github.com/pytorch/torchtitan/pull/4161/changes#diff-a81dbe21c16413d28e4c1ffd926f82350e774942f669d9ce4fcb844d3d39fdaeR530-R539
is not truly correct as typing if PP + TP + SP were to be used, since in the later stages, h would be an activation that is sharded on TP. However, spmd typechecking is not available for PP and the asserted type does not get used.

Same issues exist in Qwen 3 5 and Kimi 2.7

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 14, 2026
Comment thread tests/integration_tests/models.py Outdated
"--module muse_glimmer" in arg for variant in t.override_args for arg in variant
):
return t
"""Use ``backend`` for every variant."""

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.

remove

@jinsooihm
jinsooihm marked this pull request as ready for review August 15, 2026 05:41
@jinsooihm
jinsooihm merged commit f0c5aad into pytorch:main Aug 18, 2026
23 checks passed
JavaZeroo added a commit to JavaZeroo/torchtitan that referenced this pull request Aug 18, 2026
…eference-model

Upstream pytorch#4161 removed the model-name exclusion branch in
_enable_spmd_backend. Kimi K3 does not support the spmd_types backend
yet, so opt out through a general OverrideDefinitions flag instead of
matching on --module.
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