Repository navigation
Fix Triton 3.9 compile errors in FP8 scale indexing - #5036
jagadish-amd wants to merge 2 commits into
Conversation
- Triton 3.9 rejects `[:, None]` and `[None, :]` on a rank-0 `tl.program_id()`, which broke the ROCm nightly FP8 kernel tests and fails on CUDA wheels that depend on the same Triton. - Store blockwise reciprocal scales with scalar program ids, and broadcast the MoE expert id against the real `k_offs` block. - Scalar broadcasting is the same pattern these kernels already use, so Triton 3.7 and 3.8 keep compiling them. pytest -v -s test/prototype/blockwise_fp8_training/test_blockwise_kernels.py::test_triton_quantize_fp8_weight_quant_transposed_rhs test/prototype/moe_training/test_kernels.py::test_fp8_rowwise_3d_transpose_rhs_atomic Prepared with AI assistance in Cursor. Signed-off-by: Jagadish Krishnamoorthy <[email protected]>
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/5036
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 2 New Failures, 1 Unclassified FailureAs of commit 8bbcf6a with merge base 1884ad0 ( NEW FAILURES - The following jobs have failed:
UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@vkuzo can you plz review and add ci labels. |
|
@claude review |
|
Claude finished @vkuzo's task in 47s —— View job Review: Fix Triton 3.9 compile errors in FP8 scale indexing
LGTM. This is a small, correct fix, and I found nothing that blocks merging.
|
|
Warning: Unknown label
Please add the new label to .github/pytorch-probot.yml |
Signed-off-by: Jagadish Krishnamoorthy <[email protected]>
|
|
|
@vkuzo I have fixed ruff failures. |
|
Run Regression Tests on ROCm / test-nightly (ROCM Nightly, linux.rocm.gpu.ecosystem.mi350.1, --pre torchvision torch --index-url... / linux-job (gh) |
|
@vkuzo The failure on PT2E GPU tests is because that workflow cannot run successfully on fork PRs. We will file a separate PR to fix that problem, but it shouldn't block this PR's merge, which is needed to unblock #5032. |
|
combining this PR into #4941 to avoid circular failures, and hence retiring the current PR. |
[:, None]and[None, :]on a rank-0tl.program_id(), which broke the ROCm nightly FP8 kernel tests and fails on CUDA wheels that depend on the same Triton.k_offsblock.pytest -v -s test/prototype/blockwise_fp8_training/test_blockwise_kernels.py::test_triton_quantize_fp8_weight_quant_transposed_rhs test/prototype/moe_training/test_kernels.py::test_fp8_rowwise_3d_transpose_rhs_atomic
Prepared with AI assistance in Cursor.