Skip to content

Fix PRODUCT skip threshold in test_c10d_torchcomms#2378

Open
pkourdis wants to merge 1 commit intometa-pytorch:mainfrom
pkourdis:fix/c10d-torchcomms-product-threshold
Open

Fix PRODUCT skip threshold in test_c10d_torchcomms#2378
pkourdis wants to merge 1 commit intometa-pytorch:mainfrom
pkourdis:fix/c10d-torchcomms-product-threshold

Conversation

@pkourdis
Copy link
Copy Markdown
Contributor

@pkourdis pkourdis commented May 5, 2026

The previous threshold (world_size > 34) targeted float32 overflow, but PRODUCT fails the exactness check well before that: world_size! is only exactly representable in float32 up to 12!. From 13! onward the expected Python int result and the float32 reduction differ causing assertEqual to spuriously fail. Lower the threshold to 12 and update the skip message.

The previous threshold (world_size > 34) targeted float32 overflow, but
PRODUCT fails the exactness check well before that: world_size! is only
exactly representable in float32 up to 12!. From 13! onward the expected
Python int result and the float32 reduction differ causing assertEqual
to spuriously fail. Lower the threshold to 12 and update the skip message.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label May 5, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented May 5, 2026

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this in D103798974. (Because this pull request was imported automatically, there will not be any future comments.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

1 participant