Skip to content

Re-enable TBE backward none and SGD writeback tests on ROCm - #6451

Closed
avbokovoy wants to merge 1 commit into
pytorch:mainfrom
ROCm:abokovoi/fix-backward-tests-reference
Closed

avbokovoy wants to merge 1 commit into
pytorch:mainfrom
ROCm:abokovoi/fix-backward-tests-reference

Conversation

@avbokovoy

Copy link
Copy Markdown
Contributor

The skips on test_backward_none, test_backward_none_v1, test_backward_sgd_writeback, test_backward_sgd_writeback_first_feature_only and test_backward_sgd_writeback_nobag were meant to apply only to GitHub ROCm runners, but the condition used running_on_github, which is a tuple and therefore always true, so the tests were skipped on every ROCm run.

With the skips removed, four of these tests failed on ROCm because the reference gradients call sparse coalesce on the GPU, which returned garbage for dense sizes above 256 on ROCm. That PyTorch bug is fixed by pytorch/pytorch#199484 and the fix is in PyTorch nightlies from 2026-10-03 onward. FBGEMM kernels were not affected.

This removes the five skip decorators and the now unused running_on_github imports.

@pytorch-bot

pytorch-bot Bot commented Oct 13, 2026

Copy link
Copy Markdown

Unknown label ciflow/rocm.
Currently recognized labels are

  • ciflow/binaries

@meta-codesync

meta-codesync Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

@q10 has imported this pull request. If you are a Meta employee, you can view this in D125069873.

q10 pushed a commit to q10/FBGEMM that referenced this pull request Oct 19, 2026
…6472)

Summary:
Pull Request resolved: pytorch#6472

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

The skips on test_backward_none, test_backward_none_v1, test_backward_sgd_writeback, test_backward_sgd_writeback_first_feature_only and test_backward_sgd_writeback_nobag were meant to apply only to GitHub ROCm runners, but the condition used running_on_github, which is a tuple and therefore always true, so the tests were skipped on every ROCm run.

With the skips removed, four of these tests failed on ROCm because the reference gradients call sparse coalesce on the GPU, which returned garbage for dense sizes above 256 on ROCm. That PyTorch bug is fixed by pytorch/pytorch#199484 and the fix is in PyTorch nightlies from 2026-10-03 onward. FBGEMM kernels were not affected.

This removes the five skip decorators and the now unused running_on_github imports.

Pull Request resolved: pytorch#6451

Reviewed By: spcyppt

Differential Revision: D125069873

Pulled By: q10
q10 pushed a commit to q10/FBGEMM that referenced this pull request Oct 19, 2026
…6472)

Summary:
Pull Request resolved: pytorch#6472

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

The skips on test_backward_none, test_backward_none_v1, test_backward_sgd_writeback, test_backward_sgd_writeback_first_feature_only and test_backward_sgd_writeback_nobag were meant to apply only to GitHub ROCm runners, but the condition used running_on_github, which is a tuple and therefore always true, so the tests were skipped on every ROCm run.

With the skips removed, four of these tests failed on ROCm because the reference gradients call sparse coalesce on the GPU, which returned garbage for dense sizes above 256 on ROCm. That PyTorch bug is fixed by pytorch/pytorch#199484 and the fix is in PyTorch nightlies from 2026-10-03 onward. FBGEMM kernels were not affected.

This removes the five skip decorators and the now unused running_on_github imports.

Pull Request resolved: pytorch#6451

Reviewed By: spcyppt

Differential Revision: D125069873

Pulled By: q10
@meta-codesync meta-codesync Bot closed this in 8a2cf5c Oct 20, 2026
@meta-codesync meta-codesync Bot added the Merged label Oct 20, 2026
@meta-codesync

meta-codesync Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

@q10 merged this pull request in 8a2cf5c.

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