Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/185289
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: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
Mostly, LGTM but new CPython build should add at most 20 min, so please increase to say 280 from 240 |
Thanks! I updated the timeout to 280. If this is the case, should we also reduce the timeout for ROCM/aarch64 builds as well? |
|
Error with triton requirement: Should update the requirement for triton to include 3.15 |
Triton's upstream metadata specifies `python_requires='>=3.10,<3.15'`, which causes pip to reject it on Python 3.15. This patches the upper bound to `<3.16` during the wheel build until triton updates upstream. Test Plan: CI wheel build on Python 3.15. Authored by Claude.
Python 3.15 added an inspectable signature to struct.pack with parameter names (format, /, *values). Update the polyfill to match.
|
Got past the triton requirement error, new error in https://github.com/pytorch/pytorch/actions/runs/26498662614/job/78176502742 From Claude: Fix: Updated the struct.pack polyfill parameter names to match 3.15's signature (format, *values). On pre-3.15 Python the check is skipped since struct.pack has no inspectable signature. |
Summary: Adds a deprecation warning for creation of tensors with dtype `quint8`, `qint8`, `qint32`. Since this is in c++, this covers both Python and c++ callsites. The warning links to #184982, so we can update the messaging without pushing code. Test Plan: ```bash (pt) dev@gpu-dev-ec86df55:~/pytorch (main)$ python Python 3.13.13 | packaged by Anaconda, Inc. | (main, Apr 14 2026, 06:19:41) [GCC 14.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import torch >>> x = torch.quantize_per_tensor(torch.randn(4), 0.1, 10, torch.quint8) <python-input-1>:1: UserWarning: torch.quantize_per_tensor, torch.quantize_per_channel and other quantized tensor creation functions that produce tensors with dtype torch.quint8, torch.qint8, and torch.qint32 are deprecated and will be removed in a future PyTorch release. Please see #184982 for more information. (Triggered internally at /home/dev/pytorch/aten/src/ATen/quantized/Quantizer.cpp:111.) >>> x tensor([ 0.6000, 0.5000, -1.0000, -0.7000], size=(4,), dtype=torch.quint8, quantization_scheme=torch.per_tensor_affine, scale=0.1, zero_point=10) ``` Pull Request resolved: #184984 Approved by: https://github.com/malfet, https://github.com/albanD
The `_T` TypeVar was declared with `bound=_KernelType`, where `_KernelType` is a `CompiledKernel | StaticallyLaunchedCudaKernel | StaticallyLaunchedXpuKernel` union. A union bound doesn't give a TypeVar any real constraining power; the spec-correct form for "exactly one of these three" is a constrained TypeVar (positional arguments). Switch to that, keep `_KernelType` as an explicit `TypeAlias` for the few sites that genuinely want the union (return types, local annotations), and pin the two definitions together with an import-time assert so they can't silently drift. The three aggregate `CompileResult[_KernelType]` sites become `CompileResult[Any]` since a constrained TypeVar can't be parameterized with the union itself. Fixes #184159 Authored by Claude Pull Request resolved: #184412 Approved by: https://github.com/jansel, https://github.com/Skylion007
acc_type() in mm_common.py used a naive string replacement (f"tl.{dtype}".replace("torch.", "")) to convert torch dtypes to triton type names. This produced invalid triton names for fp8 dtypes (e.g.,
tl.float8_e4m3fn instead of tl.float8e4nv), causing AttributeError during AOT Inductor autotuning on ROCm.
Fix this by using the existing triton_type() utility which has the correct mappings, and promote fp8 dtypes to float32 for accumulation — accumulating matmul partial products in fp8 precision is numerically unsound.
Pull Request resolved: #184591
Approved by: https://github.com/jananisriram, https://github.com/malfet
The write() system call on a linux system can at most write 2GB of data into the disk per call. This PR replaces the raw data stream with buffered data stream to automatically handle the data with size greater than 2GB. There is a similar limit on windows so using a buffered data stream is safer for both platforms. fixes #185098 Pull Request resolved: #185205 Approved by: https://github.com/albanD
## Summary
`mem_leak_check` is not pulling its weight on CI (10h timeout jobs, mostly flaky/noisy results). This PR removes both ways it gets scheduled:
- `mem_leak_check` in `SUPPORTED_PERIODICAL_MODES` (the `29 8 * * *` schedule).
- The `enable-mem-leak-check` PR label path in `perform_misc_tasks`.
Also cleans up the now-dead `matrix.mem_leak_check` guards in `_{linux,mac,win,rocm,xpu}-test.yml` and the orphaned `is_cuda_or_rocm_job` helper / `MEM_LEAK_LABEL` constant.
`PYTORCH_TEST_CUDA_MEM_LEAK_CHECK` plumbing in `torch/testing/_internal/common_utils.py`, `tools/testing/...`, and the slow-gradcheck branch in `.ci/pytorch/test.sh` are intentionally untouched so local runs still work.
## Test plan
- [x] `python -m pytest .github/scripts/test_filter_test_configs.py -x -q` — all 11 pass.
- [ ] Next `29 8 * * *` `periodic` run no longer schedules mem-leak-check shards.
Authored by Claude.
Pull Request resolved: #185265
Approved by: https://github.com/malfet
As of turning ck_sdpa on by default, builds for early architectures that do not support ck_sdpa have been broken. This is due to the link step only caring about USE_ROCM_CK_SDPA which is now on, but the ck_sdpa target depends on USE_FLASH_ATTENTION and USE_MEM_EFF_ATTENTION, both of which are off in the failing builds. This change makes the link step depend on whether the ck_sdpa target was ever created. fixes ROCm/TheRock#5178 Pull Request resolved: #185250 Approved by: https://github.com/jeffdaily
Attention! native_functions.yaml was changedIf you are adding a new function or defaulted argument to native_functions.yaml, you cannot use it from pre-existing Python frontend code until our FC window passes (two weeks). Split your PR into two PRs, one which adds the new C++ functionality, and one that makes use of it from Python, and land them two weeks apart. See https://github.com/pytorch/pytorch/wiki/PyTorch's-Python-Frontend-Backward-and-Forward-Compatibility-Policy#forwards-compatibility-fc for more info. |
|
Closing, need to open a new and clean PR. |
Nightly x86 CUDA wheel builds have been timing out after 4 hrs (240 mins) since 5/22 after addition of py3.15 support https://github.com/pytorch/pytorch/actions/runs/26277452493 Root cause is from the addition of python 3.15 increasing the build time. The existing aarch64, s390x, and ROCm builds are having 420 mins as timeout, increasing x86 builds to 280 mins per advice from @malfet. Triton wheel needs patching in setup.py for py3.15, so adding a skip for Triton wheel pull to unblock CI and nightly build workflow. Redo of #185289 Linking issue #184352 Pull Request resolved: #185560 Approved by: https://github.com/malfet
Nightly x86 CUDA wheel builds have been timing out after 4 hrs (240 mins) since 5/22 after addition of py3.15 support https://github.com/pytorch/pytorch/actions/runs/26277452493 Root cause is from the addition of python 3.15 increasing the build time. The existing aarch64, s390x, and ROCm builds are having 420 mins as timeout, increasing x86 builds to 280 mins per advice from @malfet. Triton wheel needs patching in setup.py for py3.15, so adding a skip for Triton wheel pull to unblock CI and nightly build workflow. Redo of pytorch#185289 Linking issue pytorch#184352 Pull Request resolved: pytorch#185560 Approved by: https://github.com/malfet
Nightly x86 CUDA wheel builds have been timing out after 4 hrs (240 mins) since 5/22 after addition of py3.15 support https://github.com/pytorch/pytorch/actions/runs/26277452493 Root cause is from the addition of python 3.15 increasing the build time. The existing aarch64, s390x, and ROCm builds are having 420 mins as timeout, increasing x86 builds to 280 mins per advice from @malfet. Triton wheel needs patching in setup.py for py3.15, so adding a skip for Triton wheel pull to unblock CI and nightly build workflow. Redo of pytorch#185289 Linking issue pytorch#184352 Pull Request resolved: pytorch#185560 Approved by: https://github.com/malfet
Nightly x86 CUDA wheel builds have been timing out after 4 hrs (240 mins) since 5/22 after addition of py3.15 support https://github.com/pytorch/pytorch/actions/runs/26277452493 Root cause is from the addition of python 3.15 increasing the build time. The existing aarch64, s390x, and ROCm builds are having 420 mins as timeout, increasing x86 builds to 280 mins per advice from @malfet. Triton wheel needs patching in setup.py for py3.15, so adding a skip for Triton wheel pull to unblock CI and nightly build workflow. Redo of pytorch#185289 Linking issue pytorch#184352 Pull Request resolved: pytorch#185560 Approved by: https://github.com/malfet
Nightly x86 CUDA wheel builds have been timing out after 4 hrs (240 mins) since 5/22 after addition of py3.15 support https://github.com/pytorch/pytorch/actions/runs/26277452493 Root cause is from the addition of python 3.15 increasing the build time. The existing aarch64, s390x, and ROCm builds are having 420 mins as timeout, increasing x86 builds to 280 mins per advice from @malfet. Triton wheel needs patching in setup.py for py3.15, so adding a skip for Triton wheel pull to unblock CI and nightly build workflow. Redo of pytorch#185289 Linking issue pytorch#184352 Pull Request resolved: pytorch#185560 Approved by: https://github.com/malfet
See #185560 for the updated PR.