id
int64
2.74B
3.05B
title
stringlengths
1
255
user
stringlengths
2
26
state
stringclasses
2 values
labels
listlengths
0
24
comments
int64
0
206
author_association
stringclasses
4 values
body
stringlengths
7
62.5k
is_title
bool
1 class
3,031,972,782
Use swap_tensors path in nn.Module.to for all subclasses that override __torch_dispatch__
mikaylagawarecki
open
[ "Merged", "Reverted", "ciflow/trunk", "release notes: nn", "ci-no-td" ]
9
CONTRIBUTOR
Fixes https://github.com/pytorch/pytorch/issues/148977 Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #152539
true
3,031,972,618
Disable SLEEF implementation of vec::maximum in vec128_float_neon.h | Accelerate aten::hardtanh_ by 21x
Rohanjames1997
closed
[ "module: cpu", "triaged", "open source", "Merged", "ciflow/trunk", "topic: not user facing" ]
4
CONTRIBUTOR
The `has_inf_nan` implementation in `vec::maximum` is scalar, and it slows down certain activations like `tanh` by almost 20 times. Additionally, the `vec::minimum` function simply uses NEON intrinsics and not SLEEF. This PR makes the two fns similar in implementation. Besides, the SLEEF function `Sleef_fmaxf4` ulti...
true
3,031,970,557
[CI] Use cmake from pip instead of conda in CI docker images
clee2000
open
[ "Merged", "Reverted", "ciflow/trunk", "topic: not user facing", "ciflow/inductor", "ci-no-td" ]
13
CONTRIBUTOR
As in title idk how the install_cmake script is used because I see it being called with 3.18 but when I look at the build jobs some say 3.18 and others 3.31 Just make everything install cmake via the requirements-ci.txt. I don't know if the comment at https://github.com/pytorch/pytorch/blob/5d36485b4aa5823bb9ee5...
true
3,031,883,217
[PT2] Port replace_lce_with_matmul / replace_first_lce_with_fused_matmul_lce to PT2 pre_grad passes (#152450)
kqfu
closed
[ "fb-exported", "Merged", "ciflow/trunk", "topic: not user facing", "module: inductor", "ciflow/inductor" ]
7
CONTRIBUTOR
Summary: Same with D71358949, but removing newly added log to avoid test failures. Port over replace_lce_with_matmul and replace_first_lce_with_fused_matmul_lce to PT2 pre_grad pass. Original dper pass diffs: D67884534, D68123479, D68384238 Test Plan: Test 1. Covers replace_lce_with_matmul and case 1 of replace_firs...
true
3,031,815,308
optree package status in PyTorch
zou3519
open
[ "high priority", "triaged", "module: pytree", "dependency issue" ]
5
CONTRIBUTOR
## Motivation "optree >= 0.13.0" is an optional dependency for PyTorch. There's not a good way to specify this in the package metadata, so we have code checks doing this. We ran into some issues with the PyTorch 2.7 release where the "optional dependency checking" code broken and we ended up (1) crashing on optree < 0...
true
3,031,617,655
AsyncCollectiveTensor doesn't trigger wait upon dtype cast
lw
closed
[ "oncall: distributed", "triaged" ]
9
CONTRIBUTOR
### 🐛 Describe the bug This repro fails: ```py import tempfile import torch import torch.distributed as dist import torch.distributed._functional_collectives as funcol from torch.distributed.device_mesh import DeviceMesh from torch.distributed.tensor.experimental import local_map from torch.distributed.tensor import...
true
3,031,611,336
Do not check out nccl when not building it
mgorny
closed
[ "triaged", "open source", "Merged", "ciflow/trunk", "topic: not user facing" ]
7
CONTRIBUTOR
Add additional conditions to `build_pytorch_libs.py` to avoid fetching NCCL when `USE_CUDA` or `USE_NCCL` are disabled. While at it, adjust the existing condition for `USE_SYSTEM_NCCL` to use the utility function.
true
3,031,471,033
The 2.7.0 release tarball is missing `.ci/docker/ci_commit_pins/nccl-cu12.txt` required for building
mgorny
open
[ "oncall: package/deploy" ]
1
CONTRIBUTOR
### 🐛 Describe the bug When trying to build PyTorch 2.7.0 from the `.tar.gz` attached to [the release](https://github.com/pytorch/pytorch/releases/tag/v2.7.0), I'm seeing the following error: ```pytb Traceback (most recent call last): File "/var/tmp/conda-bld/work/setup.py", line 1503, in <module> main() Fil...
true
3,031,031,190
[inductor][triton] Inductor is not compatible with the latest upstream Triton
xuzhao9
closed
[ "oncall: pt2", "upstream triton" ]
1
CONTRIBUTOR
### 🐛 Describe the bug Upstream https://github.com/triton-lang/triton/commit/850525276426fb9814399a8e0ee8fdf744229b02 removes `launch_enter_hook` from triton.compiler.CompiledKernel and https://github.com/triton-lang/triton/commit/efa87747342dc50b3c87a357f13288168d6e6e1c renames it to `triton.knobs.runtime.launch_en...
true
3,030,865,350
NotImplementedError: Operator aten.view.dtype does not have a sharding strategy registered.
neverix
closed
[]
1
CONTRIBUTOR
### 🐛 Describe the bug As stated in the title, the dtype transmute operator doesn't work for DTensor. This code fails: ``` import torch import torch.distributed as dist import torch.distributed.tensor as dtensor from torch.distributed.tensor.device_mesh import init_device_mesh import os rank = int(os.environ.get("L...
true
3,030,850,004
Add methods for checking Triton availability to the device interface
galexite
closed
[ "triaged", "open source", "Merged", "ciflow/trunk", "topic: not user facing", "module: dynamo" ]
7
CONTRIBUTOR
Adds the `is_triton_capable` and `raise_if_triton_unavailable` class methods to the device interface, to allow device types to run their own checks for Triton _capability_ (which means a device can actually support Triton in the first place) and _availability_ (if the correct backend of Triton is installed and is funct...
true
3,030,777,501
flex attention does not leverage masking, memory error
Bastien-mva
closed
[ "triaged", "module: flex attention" ]
1
NONE
### 🐛 Describe the bug I use the `flex_attention` for very large time series, and want to compute a sliding window attention. I create a `block_mask` to avoid computing the not needed outer products of classical attention. However, it seems that `flex_attention` computes this outer product between query and key. Thi...
true
3,030,729,300
can't reconstruct the communication group using PyTorch.
nannaer
open
[ "oncall: distributed", "triaged", "module: c10d" ]
2
NONE
### 🐛 Describe the bug I attempted to use PyTorch to establish communication groups, but I encountered an error. The code flow is as follows: First, use two processes, 0 and 1, as the first communication group to perform an all-reduce operation, and use three processes, 2, 3, and 4, as the second communication group ...
true
3,030,571,422
Use std::apply for CPU code
cyyever
open
[ "module: cpu", "triaged", "open source", "topic: not user facing" ]
3
COLLABORATOR
The supported compilers are recent enough to enable std::apply in C++17. cc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @jerryzh168
true
3,030,567,310
elastic: do not shutdown rendezvous on leaving workers
georgkaleido
open
[ "oncall: distributed", "triaged", "open source", "release notes: distributed (torchelastic)" ]
1
NONE
In #117066, shutdown of the rendezvous was added if a worker shuts down. This is incorrect, because the rendezvous is actually shutdown in [this file](https://github.com/pytorch/pytorch/blob/fa6f9eb2be07f6289d2ab4e781077f7fc75dbe55/torch/distributed/launcher/api.py#L290) but should not be shutdown if a signal is receiv...
true
3,030,410,049
Release torch with CUDA12.1 for 2.6 and even latest version
zh794390558
closed
[ "oncall: releng" ]
1
NONE
### 🚀 The feature, motivation and pitch Release torch with CUDA12.1 for 2.6 and even latest version ### Alternatives _No response_ ### Additional context _No response_
true
3,030,367,093
[compile async] [cache] testing
ChuanqiXu9
open
[ "open source", "topic: not user facing", "module: inductor" ]
7
CONTRIBUTOR
The comment (https://github.com/pytorch/pytorch/blob/5a52e050248c71dd6e84f51d25cbd17a88555800/torch/_inductor/compile_fx_subproc.py#L70-L87) say it is problematic to not clean the cache for subprocess compile. But I have some problems to test this locally. I followed the suggestion here https://dev-discuss.pytorch.o...
true
3,030,312,358
Remove the unnecessary cuda/Tensor.cpp
FFFrog
closed
[ "open source", "Merged", "ciflow/trunk", "topic: not user facing", "skip-pr-sanity-checks" ]
4
COLLABORATOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #152522 * #152521 * #152513 * #152512 As the title stated. **Question:** I have carefully looked through all the .h files in Tensor.cpp and from my perspective this file does not make sense. Does anyone know what the background is f...
true
3,030,312,126
Make torch/csrc/utils.h to be device-agnostic
FFFrog
closed
[ "open source", "Merged", "ciflow/trunk", "topic: not user facing", "ciflow/rocm" ]
6
COLLABORATOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #152522 * __->__ #152521 * #152513 * #152512 `torch/csrc/utils.h` should be device-independent. Currently, it contains CUDA-related implementations, which indirectly causes the [failure of ROCm testing](https://github.com/pytorch/pytorch/pul...
true
3,030,309,032
DISABLED test_comprehensive_lu_cuda_float32 (__main__.TestInductorOpInfoCUDA)
pytorch-bot[bot]
open
[ "high priority", "triaged", "module: flaky-tests", "skipped", "oncall: pt2", "module: inductor" ]
4
NONE
Platforms: inductor This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_comprehensive_lu_cuda_float32&suite=TestInductorOpInfoCUDA&limit=100) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/41392207876). Over the past ...
true
3,030,274,206
update README
TheHiddenLayer
closed
[ "open source", "topic: not user facing" ]
2
NONE
Fixes #ISSUE_NUMBER
true
3,030,243,769
Remove redundant line in partitioner
fmassa
closed
[ "fb-exported", "Merged", "ciflow/trunk", "topic: not user facing", "ciflow/inductor" ]
5
MEMBER
Summary: This is a cleanup from https://github.com/pytorch/pytorch/pull/152264, which contained a line which was a vestige from a previous implementation. Test Plan: Let CI run Differential Revision: D73904636
true
3,030,230,515
second test to fix after added logging
wdvr
closed
[ "topic: not user facing", "module: dynamo", "ciflow/inductor" ]
1
CONTRIBUTOR
Fixes #ISSUE_NUMBER cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames
true
3,030,210,866
[MPS] Migrate mul to TensorIterator
malfet
closed
[ "Merged", "topic: not user facing", "release notes: mps", "ciflow/mps" ]
4
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #152743 * #152737 * __->__ #152515 What initially supposed to be a very straightforward change resulted in small refactor of binary op tensor generators when invoked for mixed dtype, which surfaced via `test_output_grad_match_sinc_mps_...
true
3,030,177,025
[MPS][BE] Migrate `lerp.Scalar.out` to tensor iterator
malfet
closed
[ "Merged", "release notes: mps", "ciflow/mps" ]
4
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #152515 * __->__ #152514
true
3,030,145,839
Remove unnecessary __STDC_FORMAT_MACROS macro
FFFrog
closed
[ "open source", "Merged", "ciflow/trunk", "topic: not user facing" ]
5
COLLABORATOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #152522 * #152521 * __->__ #152513 * #152512 As the title stated.
true
3,030,136,915
Remove unnecessary condition compilation macro
FFFrog
closed
[ "open source", "Merged", "ciflow/trunk", "topic: not user facing" ]
4
COLLABORATOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #152522 * #152521 * #152513 * __->__ #152512 As the title stated.
true
3,030,129,039
DISABLED test_inductor_debug (__main__.LoggingTests)
malfet
closed
[ "high priority", "triage review", "module: flaky-tests", "skipped" ]
2
CONTRIBUTOR
This test was disabled because it is failing on main branch ([recent examples](https://torch-ci.com/failure?failureCaptures=%5B%22dynamo%2Ftest_logging.py%3A%3ALoggingTests%3A%3Atest_inductor_debug%22%5D)). cc @ezyang @gchanan @zou3519 @kadeng @msaroufim @clee2000
true
3,030,027,552
[BE] Migrate all add/sub ops to Metal kernels
malfet
closed
[ "Merged", "ciflow/trunk", "topic: not user facing", "release notes: mps", "ciflow/mps" ]
5
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #152510 As typecasting harness shoudl take care of all permutations Fix bug in `exec_binary_kernel` where it was not properly downcasting CPU double/complexDouble scalars to floats Fixes https://github.com/pytorch/pytorch/issue...
true
3,029,974,976
[2/N] Deprecate c10::string_view and at::string
cyyever
open
[ "open source", "ciflow/trunk", "topic: not user facing" ]
3
COLLABORATOR
Fixes #ISSUE_NUMBER
true
3,029,962,779
[quantizer] Fix quantizer tests after dq conv is enabled
mcr229
closed
[ "fb-exported", "ciflow/trunk", "release notes: quantization", "release notes: AO frontend" ]
2
CONTRIBUTOR
Summary: X-link: https://github.com/pytorch/executorch/pull/10569 Fixing some broken tests after we enabled dq convs Test Plan: CI Differential Revision: D73898719
true
3,029,932,451
[inductor] [compile async] Don't compile in eager
ChuanqiXu9
open
[ "triaged", "open source", "topic: not user facing", "module: inductor" ]
7
CONTRIBUTOR
Previously we will compile in eager mode. This looks not intentional according to the test. There is a check to check the number of compilations (in current process) to be 0. But maybe due to an oversight, the number it checks is always a zero. In _InProcessFxCompile and _SerializedFxCompile, we increment the num...
true
3,029,906,972
[Hierarchical Compile] Take into account mutation deps in cycle detection
mlazos
open
[ "module: dynamo", "ciflow/inductor", "release notes: dynamo" ]
3
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #152589 * #152572 * #152570 * __->__ #152506 * #152410 * #152505 * #152389 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames
true
3,029,906,894
[Hierarchical Compilation] Use universal flatten APIs
mlazos
open
[ "module: dynamo", "ciflow/inductor", "release notes: dynamo" ]
3
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #152589 * #152572 * #152570 * #152506 * #152410 * __->__ #152505 * #152389 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames
true
3,029,900,600
[Metal] Extend typecasted op support to complex dtypes
malfet
closed
[ "Merged", "topic: not user facing", "release notes: mps", "ciflow/mps" ]
3
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #152514 * #152510 * #152485 * __->__ #152504 First of all, by extending `c10::metal::cast_to` to work correctly with complex dtypes, by introducing two more specializations: one that casts complex to scalar, and another that casts scalar to...
true
3,029,884,179
Return ConstantVariable(None) from WithExitFunctionVariable.exit to prevent NoneType crash inside autocast exception path
jansel
closed
[ "Merged", "ciflow/trunk", "module: dynamo", "ciflow/inductor", "release notes: dynamo" ]
3
CONTRIBUTOR
Copy of #152013 with PR time benchmarks updated (regressions seem unrelated) cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames
true
3,029,879,537
Refactor nested benchmark functions in AlgorithmSelectorCache
masnesral
closed
[ "topic: not user facing", "module: inductor", "module: dynamo", "ciflow/inductor" ]
1
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #152502 * #152147 Summary: The motivation is make AlgorithmSelectorCache.benchmark_in_current_process() a toplevel method so that I can leverage it for remote auto-tune. Currently, it's nested inside make_benchmark_fn(). Just for cons...
true
3,029,872,798
[Metal] Extend typecasted op support to complex dtypes
malfet
closed
[ "topic: bug fixes", "release notes: mps", "ciflow/mps" ]
2
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * (to be filled)
true
3,029,852,966
DISABLED test_comprehensive_repeat_cuda_float64 (__main__.TestInductorOpInfoCUDA)
pytorch-bot[bot]
open
[ "high priority", "triaged", "module: flaky-tests", "skipped", "oncall: pt2", "module: inductor" ]
2
NONE
Platforms: inductor This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_comprehensive_repeat_cuda_float64&suite=TestInductorOpInfoCUDA&limit=100) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/41381960290). Over the p...
true
3,029,846,567
[ez][export] suggest torch._checks only for booleans
pianpwk
closed
[ "Merged", "ciflow/trunk", "fx", "ciflow/inductor", "release notes: export" ]
3
CONTRIBUTOR
We were doing this when the error was coming from int/float casts, suggesting fixes like `torch._check(zuf0), torch._check(~zuf0)` cc @ezyang @SherlockNoMad @EikanWang @jgong5 @wenzhe-nrv
true
3,029,816,723
[cutlass backend] Add addmm dynamic support
henrylhtsang
closed
[ "fb-exported", "Merged", "ciflow/trunk", "topic: not user facing", "module: inductor", "ciflow/inductor" ]
4
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #152498 Differential Revision: [D73893133](https://our.internmc.facebook.com/intern/diff/D73893133/) cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chen...
true
3,029,814,717
[export] support SymInt minlength for torch.bincount()
pianpwk
closed
[ "Merged", "ciflow/trunk", "release notes: export" ]
4
CONTRIBUTOR
null
true
3,029,803,932
Expose NCCL communicator from ProcessGroupNCCL via an unsafe API
GD06
closed
[ "oncall: distributed", "fb-exported", "Merged", "ciflow/trunk", "release notes: distributed (c10d)", "ciflow/autoformat" ]
14
CONTRIBUTOR
Differential Revision: D73892691 cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k
true
3,029,790,604
[export] Refactor pt2 save/load
angelayi
open
[ "ciflow/trunk", "module: inductor", "ciflow/inductor", "release notes: export" ]
3
CONTRIBUTOR
Refactor the pt2 archive saving to consolidate the format of torch.export.save and torch._inductor.package.package_aoti. This PR adds the following functions, which torch.export.save and AOTI packaging calls into: ```python package_pt2( f: FileLike, *, exported_programs: Optional[Union[ExportedProgr...
true
3,029,758,654
[inductor][invoke_subgraph] Free the buffers before the subgraph call
anijain2305
closed
[ "Merged", "Reverted", "ciflow/trunk", "topic: not user facing", "module: inductor", "ciflow/inductor", "ci-no-td", "ciflow/pull" ]
19
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #152675 * __->__ #152494 Before ![image](https://github.com/user-attachments/assets/62b24c14-69e6-40fb-94e3-223930132ef6) After ![image](https://github.com/user-attachments/assets/9f340d4e-80a9-45aa-9400-626fff5b5ecd) tlparse - ht...
true
3,029,756,050
fix tests broken after #152450
wdvr
open
[ "Merged", "Reverted", "ciflow/trunk", "topic: not user facing", "module: dynamo", "ciflow/inductor", "ci-no-td" ]
14
CONTRIBUTOR
Updating test expected value after #152450 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames
true
3,029,750,573
[ROCm] add almalinux images
jeffdaily
closed
[ "module: rocm", "open source", "Merged", "topic: not user facing", "ciflow/rocm" ]
3
COLLABORATOR
Fixes #ISSUE_NUMBER cc @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @naromero77amd
true
3,029,734,938
[CUDA][SDPA] Bump python `fused_attention_vs_math_ref_grads` `fudge_factor` for `sm120`
eqy
closed
[ "module: cuda", "open source", "Merged", "ciflow/trunk", "topic: not user facing", "module: sdpa" ]
3
COLLABORATOR
🍦 cc @ptrblck @msaroufim @jerryzh168
true
3,029,727,452
[invoke_subgraph] Simplify output code for subgraph output node
anijain2305
closed
[ "Merged", "Reverted", "ciflow/trunk", "topic: not user facing", "module: inductor", "ciflow/inductor", "ci-no-td" ]
8
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #152675 * #152494 * __->__ #152490 * #152383 Before - [manifold.edge.x2p.facebook.net/v0/read/tree/logs/.tmppQg3F8/index.html?bucketName=tlparse_reports&apiKey=tlparse_reports-key&withPayload=1&timeoutMsec=10000](https://manifold.edge.x2p.f...
true
3,029,727,054
UNSTABLE Lint / Lint URLs / linux-job
huydhn
open
[ "module: ci", "triaged", "unstable" ]
1
CONTRIBUTOR
This is added recently, mark it as unstable for now cc @seemethere @malfet @pytorch/pytorch-dev-infra
true
3,029,707,668
[ROCm] Use almalinux docker files for building Magma
jeffdaily
closed
[ "module: rocm", "open source", "Merged", "topic: not user facing", "ciflow/rocm" ]
3
COLLABORATOR
Fixes #151707 for ROCm Magma builds. See also #152358. Depends on #152492. cc @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @naromero77amd
true
3,029,706,699
[inductor][BE] Add more debug logs for why fx graph cache doesn't happen
henrylhtsang
closed
[ "Merged", "Reverted", "ciflow/trunk", "topic: not user facing", "module: inductor", "module: dynamo", "ciflow/inductor", "ci-no-td" ]
10
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #152487 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov
true
3,029,694,822
Change unsafe_marked_cacheable_functions to a dictionary, so that you can specify a static cache key
jamesjwu
open
[ "ciflow/trunk", "topic: not user facing", "module: inductor", "module: dynamo", "ciflow/inductor", "merging" ]
11
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #152486 Fixes https://github.com/pytorch/pytorch/issues/152434 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjame...
true
3,029,684,105
[MPS][BE] Remove `exec_binary_alpha_kernel`
malfet
closed
[ "Merged", "topic: not user facing", "release notes: mps", "ciflow/mps" ]
3
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #152515 * #152514 * #152510 * __->__ #152485 Which was almost a complete copy-n-paste from exec_binary_kernel anyway Just add `Scalar` as an optional argument and figure out kernel name during the invocation rather than in executor
true
3,029,681,192
Fix flaky test in test_custom_ops
angelayi
open
[ "Merged", "Reverted", "ciflow/trunk", "topic: not user facing", "merging", "ci-no-td", "ciflow/pull" ]
17
CONTRIBUTOR
Hopefully fixes https://github.com/pytorch/pytorch/issues/151301, https://github.com/pytorch/pytorch/issues/151281 by making the ops have different names
true
3,029,661,503
[inductor][BE] cleanup and improve precompilation loggings
henrylhtsang
closed
[ "Merged", "ciflow/trunk", "topic: not user facing", "module: inductor", "ciflow/inductor" ]
3
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #152483 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov
true
3,029,655,481
Update CODEOWNERS (torch/utils/data/)
divyanshk
closed
[ "Merged", "ciflow/trunk", "topic: not user facing" ]
4
CONTRIBUTOR
Updating codeowners for dataloading
true
3,029,654,460
[nativert] port enumerate from folly to c10::utill
dolpm
closed
[ "fb-exported", "Merged", "ciflow/trunk", "topic: not user facing" ]
17
CONTRIBUTOR
Summary: nativert RFC: https://github.com/zhxchen17/rfcs/blob/master/RFC-0043-torch-native-runtime.md To land the runtime into PyTorch core, we will gradually land logical parts of the code into the Github issue and get each piece properly reviewed. This diff ports an enumeration util from folly into c10. Test Plan:...
true
3,029,650,141
[dynamo] Try tracing into einops
StrongerXi
open
[ "triaged", "oncall: pt2", "module: dynamo" ]
0
CONTRIBUTOR
### 🐛 Describe the bug This will allow us to 1. get rid of https://github.com/pytorch/pytorch/blob/accffef504b9162718c535201c263070565f28fa/torch/_dynamo/decorators.py#L704-L735 2. handle `einops` in a better way for AOTDispatcher cache: #152369. ### Error logs _No response_ ### Versions main cc @chauhang @pengu...
true
3,029,650,004
[MPS] Fix lerp for complex numbers
malfet
closed
[ "Merged", "topic: bug fixes", "release notes: mps", "ciflow/mps" ]
3
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #152510 * #152485 * #152504 * __->__ #152479 * #152466 As well as `.add`/`.sub` with complex alpha Before this change `python3 -c "import torch;print(torch.rand(10, device='mps', dtype=torch.complex64).add(torch.rand(10, device='mps', dtype...
true
3,029,637,430
[ONNX] Suggest users setting dynamo=True when exporting
titaiwangms
closed
[ "open source", "Merged", "ciflow/trunk", "release notes: onnx" ]
7
COLLABORATOR
Fixes #152025
true
3,029,633,929
[DO NOT REVIEW] Attempt a mixed precision fused adam
janeyx99
open
[ "ciflow/trunk", "release notes: foreach_frontend" ]
2
CONTRIBUTOR
Non ghstack version of stack at #147653 for easy import
true
3,029,627,570
[inductor][BE] cleanup and improve precompilation loggings
henrylhtsang
closed
[ "topic: not user facing", "module: inductor", "ciflow/inductor" ]
2
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #152476 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov
true
3,029,613,684
[nativert] Move TensorMeta to pytorch core
yiming0416
closed
[ "fb-exported", "Merged", "ciflow/trunk", "topic: not user facing" ]
20
CONTRIBUTOR
Summary: Torch Native Runtime RFC: https://github.com/pytorch/rfcs/pull/72 This diff moves `TensorMeta.cpp` and `TensorMeta.h` to PyTorch core under `torch/nativert/graph/` Existing `torch::_export::TensorMeta` in `torch/csrc/utils/generated_serialization_types.h` is auto-generated from the export serde schema a...
true
3,029,604,114
[CUDA] Fix `test_multi_device_context_manager` on CUDA
eqy
closed
[ "module: multi-gpu", "module: cuda", "open source", "Merged", "ciflow/trunk", "topic: not user facing" ]
3
COLLABORATOR
Seems there was a typo where `set_device` was called when the intent was to use `current_device` As-is the test will fail on multigpu systems with `TypeError: set_device() missing 1 required positional argument: 'device'` cc @ptrblck @msaroufim @jerryzh168
true
3,029,602,292
[dynamo] Dynamo fails to run torch.cat() with FakeTensors because it can't confirm 's0 + s1*u0' is nonzero
Adam27X
open
[ "triaged", "oncall: pt2", "module: fakeTensor", "module: dynamic shapes", "module: dynamo" ]
1
NONE
### 🐛 Describe the bug Here's a fully reproducible test case. I found this issue using PyTorch 2.5.0 but was able to reproduce it with PyTorch 2.7.0: ``` import torch from typing import List from torch._dynamo.backends.common import aot_autograd from functorch.compile import make_boxed_func print(torch.__version__)...
true
3,029,602,252
[CUDAGraph Trees] support memory allocation on side stream
BoyuanFeng
closed
[ "Merged", "Reverted", "module: cuda graphs", "ciflow/trunk", "topic: not user facing", "module: inductor", "module: dynamo", "ciflow/inductor", "ci-no-td" ]
13
CONTRIBUTOR
I tried `beginAllocateToPool` instead of `_cuda_beginAllocateCurrentStreamToPool` and the error in #151199 does not happen any more. However, this approach is unsafe for multithreading. When multiple run_eager happens concurrently, we expect memory allocation to different mem_pool. Since beginAllocateToPool does not...
true
3,029,600,038
add device generalisation support for distributed tests
harikodali
open
[ "oncall: distributed", "triaged", "open source", "release notes: distributed (c10d)", "ciflow/xpu" ]
1
NONE
Modified following files for device generalization test/distributed/optim/test_zero_redundancy_optimizer.py test/distributed/test_c10d_logger.py test/distributed/test_compute_comm_reordering.py torch/testing/_internal/common_distributed.py device info is retrieved and used for tests, via get_devtype() from torch...
true
3,029,599,825
DISABLED test_comprehensive_polygamma_polygamma_n_1_cuda_float16 (__main__.TestInductorOpInfoCUDA)
pytorch-bot[bot]
open
[ "high priority", "triaged", "module: flaky-tests", "skipped", "oncall: pt2", "module: inductor" ]
5
NONE
Platforms: inductor This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_comprehensive_polygamma_polygamma_n_1_cuda_float16&suite=TestInductorOpInfoCUDA&limit=100) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/41372514...
true
3,029,599,820
DISABLED test_comprehensive_polygamma_polygamma_n_0_cuda_float16 (__main__.TestInductorOpInfoCUDA)
pytorch-bot[bot]
open
[ "high priority", "triaged", "module: flaky-tests", "skipped", "oncall: pt2", "module: inductor" ]
6
NONE
Platforms: inductor This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_comprehensive_polygamma_polygamma_n_0_cuda_float16&suite=TestInductorOpInfoCUDA&limit=100) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/41372364...
true
3,029,593,172
[CUDA][TF32] Account for TF32 in `compile_kernel_advanced`
eqy
closed
[ "module: cuda", "open source", "Merged", "module: tf32", "ciflow/trunk", "topic: not user facing" ]
3
COLLABORATOR
Also cleanup some uses of `assert_close` in favor of `self.assertEqual` cc @ptrblck @msaroufim @jerryzh168 @zasdfgbnm
true
3,029,591,389
`torch.export` fails on `InstanceNorm1d`
ar0ck
closed
[ "oncall: pt2", "oncall: export" ]
2
CONTRIBUTOR
### 🐛 Describe the bug ```python import torch mod = torch.nn.InstanceNorm1d(1) args = torch.randn(1, 2), torch.export.export(mod, args) ``` ### Error logs ```python Traceback (most recent call last): File "bug.py", line 5, in <module> torch.export.export(mod, args) File ".../lib/python3.12/site-packages/to...
true
3,029,584,793
[MPS][BE] Introduce `c10::metal::mul`
malfet
closed
[ "Merged", "topic: not user facing", "release notes: mps", "ciflow/mps" ]
6
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #152510 * #152485 * #152504 * #152479 * __->__ #152466 Which multiplies two arguments for either scalar or complex data types This allows one to get rid of bunch of complex specialization in BinaryOps
true
3,029,536,955
torch.export with dynamic shapes on Static Cache HF LLama model fails
peri044
open
[ "oncall: pt2", "oncall: export" ]
1
CONTRIBUTOR
### 🐛 Describe the bug I'm trying to export HF Llama model with Static Cache. StaticCache export is supported but only can be used with static input shapes (https://github.com/huggingface/transformers/blob/f39f4960f30e3eadd6d948e4dcb2da32eda253b5/tests/utils/test_cache_utils.py#L247-L271 and https://github.com/hugg...
true
3,029,534,053
Run link checks on modified files on push too
shoumikhin
closed
[ "Merged", "topic: not user facing" ]
3
CONTRIBUTOR
https://github.com/pytorch/pytorch/issues/152439
true
3,029,517,587
consolidate guard_or_x and definitely_x
laithsakka
closed
[ "Merged", "ciflow/trunk", "release notes: fx", "fx", "module: inductor", "ciflow/inductor", "suppress-bc-linter" ]
12
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #152463 definitely_true is almost same as guard_or_false, the potential differences are not meaningful to a degree that justify the existence of both. same for definitely_false, it can be expressed with guard_or_true and guard_or...
true
3,029,492,771
[standalone_compile] fix dynamic shapes with config_patches
zou3519
closed
[ "Merged", "ciflow/trunk", "module: inductor", "ciflow/inductor", "release notes: inductor" ]
3
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #152462 compile_fx with config_patches goes down another path where we need to propagate the kwarg... Test Plan: - updated test cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-...
true
3,029,454,563
Remove dead binary_ios_build, test, upload scripts
clee2000
closed
[ "Merged", "topic: not user facing" ]
3
CONTRIBUTOR
Can't find any mentions of them in the codebase, presumably no longer used?
true
3,029,427,049
[pytorch][triton] flex attention fwd kernel with TMA loads (#151923)
mandroid6
open
[ "fb-exported", "ciflow/trunk", "topic: not user facing", "module: inductor", "ciflow/inductor" ]
6
CONTRIBUTOR
Summary: Device side TMA for flex_attention fwd kernel, Q K V tensors Test Plan: Unit test: ``` buck test 'fbcode//mode/opt' fbcode//caffe2/test/inductor:flex_attention -- test_tma_with_customer_kernel_options ``` https://www.internalfb.com/intern/testinfra/testrun/14355223891618726 Differential Revision: D71082691 ...
true
3,029,420,061
[IR] Input Adapter refactor prototype
felixsu2006
open
[ "fb-exported", "release notes: export" ]
3
CONTRIBUTOR
Summary: 1. Adding `input` field to `_adapt_flat_args` function 2. In `process_forward_inputs`, `reorder_kwargs` will now do nothing if no kwargs are provided (previously would error) 3. Pass `args` as input to `_adapt_flat_args` These changes are made to update the InputAdapter see more context in D72341439 Test P...
true
3,029,407,184
fix: Update padding_mode to use Literal for type checking
sujeet4010
open
[ "triaged", "open source", "topic: not user facing" ]
2
NONE
Fixes #152280
true
3,029,388,614
[inductor] Fix usage of launch_enter_hook/launch_exit_hook
danzimm
closed
[ "Merged", "ciflow/trunk", "topic: not user facing", "module: inductor", "ciflow/inductor", "release notes: inductor" ]
5
CONTRIBUTOR
In https://github.com/triton-lang/triton/pull/6467 I moved where `launch_enter_hook`/`launch_exit_hook` are specified (from the kernel class to a config). This PR updates the usages to use the config module if it exists to support tip of main triton. In https://github.com/triton-lang/triton/pull/6641 I renamed `trit...
true
3,029,280,080
Fix XLA issue.
laithsakka
closed
[ "release notes: jit", "ciflow/inductor" ]
2
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #152456 * #152455
true
3,029,279,968
[export] add runtime assert messages to python torch checks (#150719)
laithsakka
open
[ "release notes: fx", "fx", "ciflow/inductor" ]
1
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #152456 * __->__ #152455 Summary: ~fixes https://github.com/pytorch/pytorch/issues/150063 (for python at least) Before: ``` Runtime assertion failed for expression Eq(Mod(s16*s35, s35 - 1), 0) on node 'eq' ``` Now: ``` RuntimeError: Runtim...
true
3,029,254,320
Decorate `test_host_memory_stats` with `@serialTest`
eqy
closed
[ "open source", "Merged", "ciflow/trunk", "topic: not user facing" ]
3
COLLABORATOR
Seems to need it as it is expecting only its allocation behavior to be visible, to address #152422
true
3,029,244,351
Add epoch to fake tensor cache key
tugsbayasgalan
open
[ "fb-exported", "ciflow/trunk", "topic: not user facing", "ciflow/inductor" ]
20
CONTRIBUTOR
Summary: This is especially necessary when the output of an op is unbacked symbol. In those cases,we need to regenerate new unbacked val and bind it to the old unbacked symbol via rebind_unbacked_symbol in downstream use. Test Plan: CI Differential Revision: D73869239
true
3,029,244,113
Implement async manifold cache write
oulgen
closed
[ "fb-exported", "Merged", "ciflow/trunk", "topic: not user facing", "module: inductor", "ciflow/inductor" ]
4
CONTRIBUTOR
Summary: This diff implements an AsyncManifoldCache class that performs cache write and update ttl operations in an async manner. Essentially we are ok with the fire and forget approach where we dont guarantee that we can observe our writes, this gives us better runtime latency. Test Plan: added new unit test Reviewe...
true
3,029,234,271
[dynamo] `torch.compile` prevents fsdp warning from getting generated
StrongerXi
open
[ "oncall: distributed", "triaged", "oncall: pt2" ]
0
CONTRIBUTOR
### 🐛 Describe the bug Repro: ``` PYTORCH_TEST_WITH_DYNAMO=1 python test/distributed/fsdp/test_wrap.py TestAutoWrap.test_frozen_params ``` ### Error logs ``` Traceback (most recent call last): File "/home/ryanguo99/repos/pytorch/torch/testing/_internal/common_utils.py", line 3154, in wrapper method(*args, **k...
true
3,029,230,610
[PT2] Port replace_lce_with_matmul / replace_first_lce_with_fused_matmul_lce to PT2 pre_grad passes
kqfu
open
[ "fb-exported", "Merged", "Reverted", "ciflow/trunk", "topic: not user facing", "module: inductor", "ciflow/inductor", "ci-no-td" ]
12
CONTRIBUTOR
Summary: Port over replace_lce_with_matmul and replace_first_lce_with_fused_matmul_lce to PT2 pre_grad pass. Original dper pass diffs: D67884534, D68123479, D68384238 Test Plan: Test 1. Covers replace_lce_with_matmul and case 1 of replace_first_lce_with_fused_matmul_lce ``` CUDA_VISIBLE_DEVICES=6 TORCH_LOGS=+inductor,...
true
3,029,230,160
Add new profiling events to `DebugAutotuner`
exclamaforte
open
[ "module: inductor", "ciflow/inductor" ]
2
CONTRIBUTOR
This PR adds support for more granular profiling events in DebugAutotuner. These profiling events are already present in CachingAutotuner, and their lack in DebugAutotuner breaks #149697 when `config.profile_bandwidth` is set. Also fixes an outstanding bug, where attempting to use the profiler to benchmark in DebugA...
true
3,029,225,969
add device generalisation support for distributed tests
harikodali
closed
[ "oncall: distributed", "open source", "topic: not user facing" ]
1
NONE
test/distributed/optim/test_zero_redundancy_optimizer.py test/distributed/test_c10d_logger.py test/distributed/test_compute_comm_reordering.py are modified for device generic support device info is retrieved and used for tests, via get_devtype() from torch.testing._internal.common_fsdp DistributedTestBase is use...
true
3,029,220,449
[dynamo] guard code generation triggers attribute error on DeviceMesh object
StrongerXi
open
[ "triaged", "oncall: pt2", "module: dynamo" ]
2
CONTRIBUTOR
### 🐛 Describe the bug Repro: ``` PYTORCH_TEST_WITH_INDUCTOR=1 python test/distributed/tensor/debug/test_comm_mode.py TestCommMode.test_comm_mode_with_dtensor ``` ### Error logs ``` Traceback (most recent call last): File "/home/ryanguo99/repos/pytorch/torch/testing/_internal/common_utils.py", line 3154, in wrapp...
true
3,029,200,397
[TorchDynamo] Fix failure to realize LazyVariableTracker on stack
Lucaskabela
closed
[ "module: dynamo", "ciflow/inductor" ]
3
CONTRIBUTOR
Fixes a bug with install and inline for dynamo where lazy variable tracker was not realized before creating the `FakeRootModule` on [L1129](https://github.com/pytorch/pytorch/blob/a3123dd3ab936a59dc3219dd77785b71c9147019/torch/_dynamo/output_graph.py#L1129) in output_graph.py As a result, when we try to access the g...
true
3,029,188,296
Use Literal for padding_mode in Conv2d for better type checking
sudiptap
closed
[ "oncall: distributed", "module: cpu", "open source", "release notes: quantization", "topic: not user facing", "module: inductor", "module: dynamo", "release notes: distributed (checkpoint)", "release notes: inductor (aoti)" ]
6
NONE
Fixes #152280 — use Literal for padding_mode to improve type checking. cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @jerryzh168 @voznesenskym @penguinwu @EikanWang @Guobing-Chen @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy...
true
3,029,183,923
Log aot and idx waitcounters.
jovianjaison
closed
[ "fb-exported", "Merged", "Reverted", "ciflow/trunk", "module: inductor", "module: dynamo", "ciflow/inductor", "release notes: AO frontend", "ci-no-td" ]
33
CONTRIBUTOR
Summary: Added for create_aot_dispatcher_function and compile_fx_inner. Note: Log wait counters flag is already set for: 1. async_compile.precompile 2. remote_fx_graph_cache_get 3. remote_fx_graph_cache_put Test Plan: contbuild Differential Revision: D73866124 cc @voznesenskym @penguinwu @EikanW...
true
3,029,167,566
[MPS][BE] Delete unused lerp functors
malfet
closed
[ "Merged", "Reverted", "ciflow/trunk", "topic: not user facing", "release notes: mps", "ciflow/mps", "ci-no-td" ]
10
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #152504 * #152485 * #152479 * #152466 * __->__ #152443 For `lerp.Scalar_out` weight (aka alpha) is not an optional argument, so no point in having those specializations. But move `alpha=1.0` ahead of dispatching to Metal shaders, as plain ...
true
3,029,160,787
`torch.compile` causes assertion error in distributed checkpoint wrapper test
StrongerXi
open
[ "oncall: distributed", "triaged", "oncall: pt2" ]
1
CONTRIBUTOR
### 🐛 Describe the bug Repro: ``` PYTORCH_TEST_WITH_INDUCTOR=1 python test/distributed/fsdp/test_checkpoint_wrapper.py CheckpointWrapperTest.test_checkpoint_wrapper_args_kwargs ``` ### Error logs ``` Traceback (most recent call last): File "/home/ryanguo99/.conda/envs/comfyui/lib/python3.11/unittest/case.py", lin...
true
3,029,140,184
Inductor pattern matching on mutable ops
yf225
open
[ "triaged", "module: functionalization", "oncall: pt2", "module: inductor", "module: pt2-dispatcher" ]
0
CONTRIBUTOR
### 🚀 The feature, motivation and pitch Pattern matching on mutable ops (e.g. to replace it with custom kernels) is a common usage that shows up in libraries such as vLLM. We'd like to improve Inductor pattern matcher's support for it. This is one use case where both `x` and `out` are non-view tensors: ```python imp...
true
3,029,077,321
Add two missing JIT tests to CMake
swolchok
closed
[ "oncall: jit", "Merged", "ciflow/trunk", "topic: not user facing" ]
3
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #152440 Looks like I forgot to add these. cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel
true
3,029,071,561
Newly added lint-urls jobs are very flaky
malfet
open
[ "module: ci", "triaged", "module: flaky-tests", "module: regression" ]
10
CONTRIBUTOR
### 🐛 Describe the bug May be it's just me, but newly added lint jobs keeps intermittently failing on PRs/trunk, for example https://github.com/pytorch/pytorch/actions/runs/14737078933/job/41365789268 ### Versions CI cc @seemethere @pytorch/pytorch-dev-infra @clee2000
true