Skip to content

[ROCm][CI] Update ROCm version to 10.1 & Python 3.11 in build workflow - #5032

Open
akashveramd wants to merge 3 commits into
mainfrom
av_update_rocm10.1
Open

akashveramd wants to merge 3 commits into
mainfrom
av_update_rocm10.1

Conversation

@akashveramd

@akashveramd akashveramd commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The PR is currently blocked by the PRs, #5036 and #4941.

Made with Cursor

@pytorch-bot

pytorch-bot Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/5032

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit 73b8d1a with merge base 9e9dca9 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 28, 2026
rocm10.1 torch wheels are not published for cp310.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vkuzo

vkuzo commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

@claude review

@claude

claude Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Claude finished @vkuzo's task in 56s —— View job


PR Review: [ROCm][CI] Update ROCm version to 10.1

  • Read diff
  • Check CI failure
  • Post review

Diff: The changes look good. In both regression_test_rocm.yml and regression_test_pt2e_gpu.yml (both test and test-rocm jobs), all three ROCm version strings move from 10.0 to 10.1 together: torch-spec index URL, gpu-arch-version, and docker-image. No other workflow pins rocm10.0, so nothing is left behind.

Python 3.10 → 3.11 bump (commit f09b01f): This is a reasonable change, but the PR description doesn't mention it. Please add one line explaining why, e.g. whether the rocm10.1 nightly wheels are no longer published for cp310. That way someone reading the history later knows the 3.11 pin is required, not optional.

CI failure: Run Regression Tests on ROCm / test-nightly

Results: 4 failed, 1867 passed. Setup worked: the docker image, wheel index and Python 3.11 env all installed fine. The 4 failures are Triton compile errors, and all have the same cause:

triton.compiler.errors.CompilationError: too many indices for tensor of rank 0
Test Kernel location
test/prototype/blockwise_fp8_training/test_blockwise_kernels.py::test_triton_quantize_fp8_weight_quant_transposed_rhs[128,256] torchao/prototype/blockwise_fp8_training/kernels.py:915-916 (scale_k[:, None], scale_m[None, :])
test/prototype/moe_training/test_kernels.py::test_fp8_rowwise_3d_transpose_rhs_atomic[True,False] torchao/prototype/moe_training/kernels/float8_rowwise.py:196 and :256 (expert_idx[:, None])

In these kernels, scale_k/scale_m (= pid_n/pid_m) and expert_idx are scalars from tl.program_id, and the code indexes them with [:, None]. The nightly installed triton-rocm==3.9.0+gitb7ddcf86, and this Triton version rejects that indexing. Older versions accepted it. So the failures most likely come from the Triton that ships with the new nightly wheel, not from anything ROCm 10.1 specific in this PR. The same kernels will probably break on CUDA once the CUDA nightlies pick up this Triton.

Suggested fix (separate PR or on top of this one): remove the [:, None] / [None, :] on the scalar terms, since broadcasting a scalar against the block offsets already gives the right shape. For example:

scale_offs = scale_k * s_stride_dim_0 + scale_m * s_stride_dim_1

If the store or mask must be 2D, broadcast against a real block, e.g. expert_idx * stride_scales_dim0 + k_offs[None, :] * stride_scales_dim1.

Fix this →

Verdict

The workflow change itself is fine. Before merging, decide how to handle the 4 kernel failures: fix the kernels, or land this with the failures tracked in a follow-up issue. The failures are real bugs exposed by the newer Triton, not CI flakiness.

@vkuzo

vkuzo commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

could you look into the CI failures, are they real?

@vkuzo

vkuzo commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

just as a heads up, i'm going to do the python 3.10 -> 3.11 upgrade in this PR: #5033

@akashveramd

akashveramd commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator Author

could you look into the CI failures, are they real?

@vkuzo: @jagadish-amd is currently looking into the CI failure.

@jagadish-amd

Copy link
Copy Markdown
Contributor

The failures are fixed in this PR #5036
cc @vkuzo

rocm10.1 nightly torch has no cp310 wheels, so the py3.10 ROCm wheel
job fails at Install torch dependency. Align with 3.11+.

Co-authored-by: Cursor <cursoragent@cursor.com>
@akashveramd akashveramd changed the title [ROCm][CI] Update ROCm version to 10.1 [ROCm][CI] Update ROCm version to 10.1 & Python 3.11 in build workflow Nov 4, 2026

This branch has not been deployed

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

Labels

ciflow/rocm CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: rocm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants