Skip to content

Revert "Add deterministic topk for MoE routing" - #3647

Merged
sanketpurandare merged 1 commit into
mainfrom
revert-3600-sanketpurandare/stack/20
Jun 12, 2026
Merged

sanketpurandare merged 1 commit into
mainfrom
revert-3600-sanketpurandare/stack/20

Conversation

@sanketpurandare

Copy link
Copy Markdown
Contributor

Reverts #3600

Upstream PyTorch PR: pytorch/pytorch#186653 was reverted due to failing internal tests. They have been using topk under the deterministic algorithms context incorrectly. So this change altered their numerics which was expected, but I will need to convince them that it is the right step forward. So reverting this for now, will reland when upstream op is landed.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 12, 2026

@wwwjn wwwjn left a comment

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.

Thank you!

@sanketpurandare
sanketpurandare merged commit 1c02a5c into main Jun 12, 2026
36 of 40 checks passed
saforem2 pushed a commit to saforem2/torchtitan that referenced this pull request Jun 12, 2026
Reverts pytorch#3600

Upstream PyTorch PR: pytorch/pytorch#186653 was
reverted due to failing internal tests. They have been using `topk`
under the deterministic algorithms context incorrectly. So this change
altered their numerics which was expected, but I will need to convince
them that it is the right step forward. So reverting this for now, will
reland when upstream op is landed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td 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