Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/196075
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 6ba0ca3 with merge base ad644bd ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@claude review this PR |
|
Claude finished @Skylion007's task in 24m 11s —— View job Reviewed — the refactor is a real readability win, but it drops zero-size-group coverage (which answers @Skylion007's "we dropped a bunch of combinations here?"), and I can't find the MPS Full reviewPR Review: #196075SummaryConsolidates four Testing1. Zero-size group coverage is gone. The removed 2. The fixture no longer self-validates, and Worse, the assertion could no longer hold: for 3. The CUDA skip is broader than the constraint it works around. At unaligned = any(size % (16 // dtype.itemsize) for size in sizes)
if self.device_type == "cuda" and dtype != torch.float32 and unaligned:On CUDA, bf16 only reaches a hardware grouped kernel when Two smaller points on the same lines: 4. 5. Code Quality6. The index-selection block in 7. 8. 9. Comment at Infrastructure10. I cannot find the MPS code that three tests claim to exercise. So, as this branch stands, all three comments describe behavior that doesn't exist here:
If these depend on an unlanded MPS 11. RecommendationNeeds Discussion The consolidation is good and I'd take it. Two things should be resolved first: the dropped zero-size-group subtests are a straight coverage regression on a case the ROCm path has explicit handling for, and the three MPS-motivated tests need either the MPS kernel they target (stacked underneath) or corrected comments. The CUDA skip breadth and the |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…h cuBLAS 13.1.1.3 used by CD (#196869) ## Summary CI docker images for CUDA 13.0 (`.ci/docker/build.sh`, `install_cuda.sh`) are still pinned to CUDA toolkit **13.0.2**, but the CD binary build matrix ([`generate_binary_build_matrix.py`](https://github.com/pytorch/pytorch/blob/d1ae7eed74b9ed5e31ac786b6434d2510169135b/.github/scripts/generate_binary_build_matrix.py#L34)) already builds cu130 wheels against **cuBLAS 13.1.1.3**, which ships with CUDA toolkit **13.0.3**, not 13.0.2. This CI/CD toolkit skew means CI tests run the CD-built wheel's cuBLAS 13.1.1.3 against an older 13.0.2 driver/runtime stack than what it was built/validated for. This is the root cause of the illegal-memory-access failures in `TestGroupedMMCUDA.test_grouped_mm_u64_indexing_cuda_float16` on the periodic CUDA 13.0 B200 smoke lane (e.g. https://github.com/pytorch/pytorch/actions/runs/34476417747/job/102891503623), which only started showing up after [3c71ead](#196075) added coverage exercising this path, and which #196775 worked around by skipping the test rather than fixing the underlying version mismatch. - Bump `CUDA_VERSION` 13.0.2 -> 13.0.3 in `.ci/docker/build.sh`, `.ci/docker/common/install_cuda.sh` (installer bumped to `cuda_13.0.3_580.126.20_linux`, verified to exist at https://developer.download.nvidia.com/compute/cuda/13.0.3/local_installers/), and `.ci/docker/common/install_inductor_benchmark_deps.sh` (comment only). - Same bump for the FA3 wheel build matrix in `.github/workflows/_binary-build-flash-attention-wheel-linux.yml` (x86_64 + aarch64 legs, including the aarch64 `cuda_installer_name`). - `RELEASE.md` supported-architectures table version bump. - Revert #196775 (`[CUDA] Skip grouped_mm u64 indexing on SM100 CUDA 13.0`) now that the underlying toolkit/cuBLAS mismatch causing the false failure is fixed. ## Test plan - [ ] CI docker images rebuild successfully with CUDA 13.0.3. - [ ] `TestGroupedMMCUDA.test_grouped_mm_u64_indexing_cuda_float16` passes on the periodic CUDA 13.0 B200 smoke lane without the skip from #196775. - [ ] FA3 wheel build workflow (`_binary-build-flash-attention-wheel-linux.yml`) succeeds for both x86_64 and aarch64 cu130 legs with the new installer. Debugged by @nWEIdia _manually_ but 🤖 Generated with [Claude Code](https://claude.com/claude-code) p.s. the timing is a bit awkward that we are sunsetting cuda 13.0 CI, so... I think it is a good fyi anyways. Pull Request resolved: #196869 Approved by: https://github.com/Skylion007 Co-authored-by: Claude Sonnet 5 <[email protected]>
The 2026-11-08 full run after the 3d_3d skip failed on six more cases of the same upstream test (pytorch#196075): strided, column-major a, bf16, the 2d_2d/2d_3d/3d_2d regular shapes. Same cause: sm_89 runs _grouped_mm_fallback, whose gradients differ from the per-group torch.mm reference by one bf16 ulp; against float64 grouped_mm is the more accurate (0.058-0.062 vs 0.075-0.089). All 14 failures were 3 of 3 runs of every CUDA test_grouped_gemm case; the other 196 pass. Listed by full name; checked that the expression deselects exactly those 14. Assisted-by: Claude
First rtx40 release. Limitations checked against the packaged wheel on one RTX 4090 under WSL2 (driver 621.14): no CPU LAPACK (inv/cholesky/svd on CPU raise), CPU float32 matmul via Eigen, no MPI, no cuDNN, single GPU. Tests section names the 15 rtx40-only skips (addmm split-K, upstream pytorch#191706; 14 grouped_gemm bf16 cases, upstream pytorch#196075) and the pytest<9.2 pin. Assisted-by: Claude
Add more grouped_mm tests on MPS and other devices and some cleanups. The additional cases and why they are needed:
2d_2d_ragged: Uses non-equal K groups of sizes 17, 13, 8 and 10.2d_3d_ragged: Uses 4 experts with 17, 13, 8 and 10 tokens, leaving partially filled kernel tiles.2d_2d_unequal_backing_k: This test uses different K dimensions for A and B, leaving some unused values after the last group.wide_tiles: This one uses large weights to test MPS kernels that process 128 or 256 columns per tile.large_stride_fallback: This one uses a stride above the int32 limit on a dimension of size one to test the MPS fallback.u64_indexing: and finally, uses memory offsets above the int32 limit while each stride fits in int32.