Repository navigation
[spmd_types] Muse Glimmer enablement - #4161
Merged
Merged
Conversation
tianyu-l
approved these changes
Aug 15, 2026
| "--module muse_glimmer" in arg for variant in t.override_args for arg in variant | ||
| ): | ||
| return t | ||
| """Use ``backend`` for every variant.""" |
jinsooihm
marked this pull request as ready for review
August 15, 2026 05:41
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.
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.
Enables spmd_types on Muse Glimmer and remove support for other backends.
Test
muse_glimmer_debugmodel_mmwith FSDP 2 + TP 2 with--debug.seed 42for 10 steps differs with the previous commit (624c312) default backend with average loss difference 4.4e-4.F.grid_sampledoes 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,
hwould 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