Skip to content

Fix fsdp prob diff computation when tis is disabled - #82

Merged
fzyzcjy merged 1 commit into
mainfrom
feat/fix_prob_diff
Oct 24, 2025
Merged

Fix fsdp prob diff computation when tis is disabled#82
fzyzcjy merged 1 commit into
mainfrom
feat/fix_prob_diff

Conversation

@fzyzcjy

@fzyzcjy fzyzcjy commented Oct 24, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@fzyzcjy
fzyzcjy merged commit 5f6e74e into main Oct 24, 2025
1 check passed
fzyzcjy added a commit that referenced this pull request Mar 19, 2026
JD-ETH pushed a commit to JensenFire/miles that referenced this pull request Apr 11, 2026
GuanxingLu pushed a commit to GuanxingLu/miles that referenced this pull request Apr 21, 2026
yushengsu-thu added a commit that referenced this pull request Aug 13, 2026
…per-slot grad norm"

This reverts commit 1eb5036.

The sqrt(TP) grad-norm inflation it patched is now fixed at the root by
Megatron-LM #82 (the backend's ci-megatron-pr directive; exercised by
tests/fast-gpu/test_layerwise_expert_dependencies.py): LayerWise shards
expert optimizer parameters over expt_dp and filters allreduce=False
parameters with the expert TP group, so each logical expert-adapter
parameter is owned by exactly one rank and counted once in the
world-reduced per-slot norm — with tensor_model_parallel=True intact.

Keeping the pre-wrap flag-clearing hook on top of that would be wrong
twice over: the dedup was topology-specific (correct at TP2/ETP1/DP1,
under-counting DP2/EP2 ownership), and clearing the flag now contradicts
the dependency contract the new image-level test pins (grouped-expert
adapter weights keep tensor_model_parallel=True; ownership, not attribute
filtering, provides the dedup). The backend PR history dropped the hook
for the same reason; this removes it from the frontend stack so the final
tree never carries it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant