Skip to content

Fix backward determinism tests#5786

Closed
spcyppt wants to merge 1 commit into
pytorch:mainfrom
spcyppt:export-D106442327
Closed

Fix backward determinism tests#5786
spcyppt wants to merge 1 commit into
pytorch:mainfrom
spcyppt:export-D106442327

Conversation

@spcyppt
Copy link
Copy Markdown
Contributor

@spcyppt spcyppt commented May 27, 2026

Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/2716

Fix BackwardDeterminismTest failures:

  • Add HealthCheck.differing_executors to suppress_health_check since optests.generate_opcheck_tests wraps hypothesis tests in multiple executors
  • Only test for stochastic_rounding=False since stochastic rounding is inherently non-deterministic
  • Add xfail entries in failures_dict_fast.json for dense_embedding_codegen_lookup_function (no Meta tensor / autograd registration, matching existing BackwardDenseTest xfails). The faketensor and autograd opcheck tests will be added in the next diff.
  • Pass additional_decorators to skip known test_pt2_compliant_tag failures
  • Suppress noisy TBE constructor debug/info logs (override with FBGEMM_TEST_VERBOSE=1)

Differential Revision: D106442327

Summary:
X-link: facebookresearch/FBGEMM#2716

Fix `BackwardDeterminismTest` failures:
- Add `HealthCheck.differing_executors` to `suppress_health_check` since `optests.generate_opcheck_tests` wraps hypothesis tests in multiple executors
- Only test for `stochastic_rounding=False` since stochastic rounding is inherently non-deterministic
- Add xfail entries in `failures_dict_fast.json` for `dense_embedding_codegen_lookup_function` (no Meta tensor / autograd registration, matching existing `BackwardDenseTest` xfails). The faketensor and autograd opcheck tests will be added in the next diff.
- Pass `additional_decorators` to skip known `test_pt2_compliant_tag` failures
- Suppress noisy TBE constructor debug/info logs (override with `FBGEMM_TEST_VERBOSE=1`)

Differential Revision: D106442327
@meta-cla meta-cla Bot added the cla signed label May 27, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented May 27, 2026

@spcyppt has exported this pull request. If you are a Meta employee, you can view the originating Diff in D106442327.

@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented May 27, 2026

This pull request has been merged in 0fcdfc0.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant