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
2,803,050,923
[inductor][triton] refactor ASTSource.make_ir integration
davidberard98
open
[ "triaged", "oncall: pt2", "module: inductor", "upstream triton", "module: user triton" ]
2
CONTRIBUTOR
### 🚀 The feature, motivation and pitch User-defined Triton kernel support in Inductor relies on being able to get the TTIR for a given kernel, so that Inductor do mutability analysis on the TTIR. (in triton_kernel_wrap.py) As the Triton implementation changes, the implementation is getting more and more unwieldy as...
true
2,803,047,072
[inductor] let inplace-padding support cpp-wrapper
shunting314
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): * #145410 * __->__ #145325 * #140249 Some context: Inplace padding is an optimization to do padding in place. E.g., if a tensor has size [2048, 2047] and stride [2048, 1]. When we need pad one extra element to the end of each row (e.g. during...
true
2,803,037,398
Add stft option to align window for center = false
jackzhxng
closed
[ "release notes: onnx" ]
7
CONTRIBUTOR
Adds a flag for aligning the start of the window to the start of the signal when center = false (aka window-based padding). The same flag was proposed [a while ago](https://github.com/librosa/librosa/issues/596) for Librosa as well. For internal reasons, we need to add this behavior to the op and this flag allows us...
true
2,803,036,276
fix a small typo in comments
haifeng-jin
closed
[ "open source", "Merged", "ciflow/trunk", "topic: not user facing", "ciflow/inductor" ]
10
COLLABORATOR
A minor typo fix. The description was confusing with the typo.
true
2,803,025,609
[S481486] Move MTIA dynamic library loading from __init__.py to a separate module
chaos5958
closed
[ "fb-exported", "Merged", "ciflow/trunk", "topic: not user facing" ]
7
CONTRIBUTOR
Summary: As titled Test Plan: - Passed CI tests buck2 test 'fbcode//mode/opt' fbcode//ai_infra/distributed_ai/pyper_local_run/tests/integration_tests:test_icvr_e2e_gpu -- --exact 'ai_infra/distributed_ai/pyper_local_run/tests/integration_tests:test_icvr_e2e_gpu - test_icvr_e2e_gpu (ai_infra.distributed_ai.pyper_...
true
2,803,020,858
inductor: Explicitly test that torch.compile(option=...) does something
c00w
closed
[ "Merged", "ciflow/trunk", "topic: not user facing", "module: inductor", "ciflow/inductor" ]
6
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145321 This would have prevented https://github.com/pytorch/pytorch/pull/139833 from dropping the triggers. cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipis...
true
2,803,018,380
[BE] Bump TIMM pin
desertfire
closed
[ "Merged", "ciflow/trunk", "topic: not user facing", "module: dynamo", "ciflow/inductor" ]
6
CONTRIBUTOR
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames
true
2,803,007,264
Windows builds with VS2022
Camyll
closed
[ "Merged", "ciflow/trunk", "topic: not user facing", "ciflow/binaries_wheel", "test-config/default" ]
7
CONTRIBUTOR
[Fixes #ISSUE_NUMBER ](https://github.com/pytorch/pytorch/issues/128835)
true
2,803,003,734
[CI][CUDA][MultiGPU][Regression] Skip a failure due to https://github.com/pytorch/pytorch/issues/139520
nWEIdia
closed
[ "triaged", "open source", "Merged", "ciflow/trunk", "topic: not user facing", "module: inductor", "ciflow/inductor" ]
8
COLLABORATOR
Related: https://github.com/pytorch/pytorch/issues/139520 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang @aakhundov @atalman @malfet @ptrblck @eqy @tingl...
true
2,803,003,385
[testing] Consult test/dynamo_expected_failures and test/dynamo_skips when PYTORCH_TEST_WITH_INDUCTOR=1
masnesral
closed
[ "topic: not user facing", "ciflow/inductor" ]
1
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145317
true
2,803,002,365
[do not land] test base commit
FindHao
closed
[ "ciflow/trunk", "topic: not user facing", "not4land", "ciflow/inductor", "keep-going" ]
1
MEMBER
check ci errors for base commit
true
2,802,986,249
[BE][export] Change custom_op registeration style
yiming0416
closed
[ "fb-exported", "Merged", "ciflow/trunk", "topic: not user facing" ]
6
CONTRIBUTOR
Summary: `test_unbacked_bindings_for_divisible_u_symint` has been flaky for a while due to ``` Tried to register an operator (mylib::foo(Tensor a, Tensor b) -> Tensor) with the same name and overload name multiple times. ``` It is likely due to when all variants of this test are being run (non-strict, retrace, serdes...
true
2,802,977,897
Fix ExecuTorch, XLA, Triton hash updates
huydhn
closed
[ "Merged", "topic: not user facing", "test-config/default" ]
3
CONTRIBUTOR
Fix some stale hash updates https://github.com/pytorch/pytorch/pulls/pytorchupdatebot reported by @izaitsevfb * XLA and ExecuTorch now wait for all jobs in pull instead of hardcoding the job names which are not correct anymore and the bot waits forever there * Trion commit hash hasn't been updated automatically si...
true
2,802,976,353
[test] editable install pytorch sphinx
clee2000
closed
[ "topic: not user facing" ]
1
CONTRIBUTOR
Fixes #ISSUE_NUMBER
true
2,802,917,625
[MPS][BE] Move vectypes from Quantized to utils
malfet
closed
[ "better-engineering", "Merged", "topic: not user facing", "release notes: mps", "ciflow/mps" ]
3
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145312 That allows one to get appropriate vectorized types for templates using `c10::metal::vec2type_t<>` or `c10::metal::vec4type_t<>`
true
2,802,883,829
[BE] Type annotation for `_inductor/dependencies.py`
BoyuanFeng
closed
[ "Merged", "ciflow/trunk", "topic: not user facing", "module: inductor", "ciflow/inductor" ]
3
CONTRIBUTOR
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang @aakhundov
true
2,802,875,025
[Utilization] post-test-process workflow
yangw-dev
closed
[ "Merged", "ciflow/trunk", "topic: not user facing" ]
18
CONTRIBUTOR
# Overview Add reusable workflow to trigger the post-test right after each test job is complete. Cousion with pr to setup the runner permissions: Add m fleet instances: https://github.com/pytorch-labs/pytorch-gha-infra/pull/595/files add to lix fleet:https://github.com/pytorch/ci-infra/pull/322/files Currently...
true
2,802,859,208
[MPS][BE] Prepare Gamma funcs to be moved ot headers
malfet
closed
[ "Merged", "ciflow/trunk", "topic: not user facing", "release notes: mps", "ciflow/mps" ]
6
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #145341 * __->__ #145309 ---- - Use `float y = 1.0 + metal::frac(x)` instead of complex ```metal float y = x; int n = 0; bool less_than_one = (y < 1.0); // Add or subtract integers as necessary to bring y into (1,2) if (less_than_on...
true
2,802,855,518
[BE] Remove test_ops_gradients from FIXME_inductor_dont_reset_dynamo
masnesral
closed
[ "Merged", "ciflow/trunk", "topic: not user facing", "ciflow/inductor", "keep-going" ]
7
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145308
true
2,802,853,026
[BE] Remove test_ops from FIXME_inductor_dont_reset_dynamo
masnesral
closed
[ "Merged", "ciflow/trunk", "topic: not user facing", "ciflow/inductor", "keep-going" ]
3
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145307
true
2,802,849,762
[BE] Remove test_modules from FIXME_inductor_dont_reset_dynamo
masnesral
closed
[ "Merged", "ciflow/trunk", "topic: not user facing", "ciflow/inductor", "keep-going" ]
3
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #145308 * __->__ #145306
true
2,802,849,407
[dynamo] Use ConstDictVariable tracker for obj.__dict__
anijain2305
closed
[ "ciflow/trunk", "topic: not user facing", "module: dynamo", "ciflow/inductor" ]
2
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145305 * #145246 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames
true
2,802,842,580
Fix for failure in D68425364
aorenste
closed
[ "fb-exported", "Merged", "ciflow/trunk", "release notes: fx", "fx", "keep-going" ]
10
CONTRIBUTOR
Summary: Back out change from #145166 which causes an internal model to fail. Differential Revision: D68459095 cc @ezyang @SherlockNoMad @EikanWang @jgong5 @wenzhe-nrv
true
2,802,831,897
Add unique identifer to bmm thread_mm functions
dmpots
closed
[ "fb-exported", "Merged", "ciflow/trunk", "topic: not user facing", "module: inductor", "ciflow/inductor" ]
13
CONTRIBUTOR
Summary: The bmm template generates code like this ``` template<bool accum> void cpp_fused_bmm_66_micro_gemm(...) { ... } void single_thread_mm() { ... cpp_fused_bmm_66_micro_gemm(...) ... } void threaded_mm() { ... cpp_fused_bmm_66_micro_gemm(...) ... } void cpp_fus...
true
2,802,827,591
[dynamo] Re-enable `test_fs` family for dynamo
StrongerXi
closed
[ "Merged", "ciflow/trunk", "topic: not user facing" ]
8
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145302 Fixes #91467.
true
2,802,814,342
Add fused rms_norm implementation for MPS backend
manuelcandales
closed
[ "Merged", "topic: improvements", "release notes: mps", "ciflow/mps" ]
5
CONTRIBUTOR
Adding a fused rms_norm implementation for MPS backend. This eliminates most of the current CPU overhead, making this computation GPU bound and improving latency of rms_norm by **15x** on MPS backend The metal shader was adapted from MLX: https://github.com/ml-explore/mlx/blob/e6a7ab967530866eb89c013f833f7c525bec10ca/...
true
2,802,805,896
[ONNX] derivative not implemented error when using torch.cond
ionymikler
closed
[ "module: onnx", "oncall: pt2", "export-triaged", "oncall: export" ]
15
NONE
### 🐛 Describe the bug I am trying to export to ONNX format a model who's traversed computation graph depends on certain calculations done on the data. The model is a variation of the Visual Transformer (VIT); In essence, additionally to the traditional attention blocks (teal blue in the diagram down under), some in...
true
2,802,769,451
[dynamo] Re-enable a AOT-Dispatch test with Dynamo
StrongerXi
closed
[ "Merged", "ciflow/trunk", "topic: not user facing" ]
3
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145299 Fixes #124590.
true
2,802,754,650
[hop][be] add utils for more comprehensive input alias and mutation
ydwu4
closed
[ "Merged", "ciflow/trunk", "topic: not user facing" ]
3
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145298 This PR implements the idea of checking input mutations through tensor version and check aliasing via storage from @zou3519. Previously, we rely on whether there's a in place op that takes placeholder input, which doesn't t...
true
2,802,741,277
Added new lines of code to force cuda aware MPI usage and also to support fp16 and reduce_scatter communication operation
Shoaib-git20
closed
[ "oncall: distributed", "open source", "release notes: distributed (c10d)" ]
2
NONE
cc @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o
true
2,802,715,566
[torchbench] Fix mobilenetv2 inductor freezing fail_accuracy
IvanKobzarev
closed
[ "Merged", "ciflow/trunk", "topic: not user facing", "module: dynamo", "ciflow/inductor" ]
6
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145296 Issue: https://github.com/pytorch/pytorch/issues/144891 inductor freezing effectively enables inductor conv-batchnorm fusion. This fusion increases the accuracy error. More context about this: https://github.com/pytorch...
true
2,802,695,587
[BE][MPS] Mark gamma inputs as const
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): * #145312 * #145309 * __->__ #145295 * #145289 Doubt it will change the perf, but it's good to correctly mark const inputs as const
true
2,802,680,792
[ROCm] miopen benchmark behavior now better aligns with cudnn
jeffdaily
closed
[ "module: rocm", "triaged", "open source", "Merged", "release notes: rocm", "release notes: nn", "ciflow/rocm" ]
6
COLLABORATOR
The default benchmark setting is now false. The new miopen behavior means when benchmarking is disabled, for any shape that doesn't have a find hit, then it will do a quick search (same behavior as the prior default), and use that result. Now when benchmark is enabled, it will perform an exhaustive search and update an...
true
2,802,656,542
[dynamo] Fix numpy test accuracy error induced by randomness divergence
StrongerXi
closed
[ "Merged", "ciflow/trunk", "topic: not user facing" ]
8
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145293 Previously `TestGradient.test_second_order_accurate` was failing because of a small tolerance error (0.03... which is above the 0.03 tolerance). Upon investigating, `np.random.random` caused some divergence between eager and ...
true
2,802,619,995
[BE][export] Remove disabled floordiv test in export
yiming0416
closed
[ "fb-exported", "Merged", "ciflow/trunk", "topic: not user facing" ]
5
CONTRIBUTOR
Summary: Removing `test_slice_with_floordiv` as it doesn't raise the Runtime Error as expected and it has been disabled since the time it was added https://github.com/pytorch/pytorch/issues/131101 For the case that we expect to fail, it actually returns an empty tensor. This is consistent with the following snippet wh...
true
2,802,613,413
[BE] Add type annotations to cudagraph_utils.py and test_cases.py
BoyuanFeng
closed
[ "Merged", "ciflow/trunk", "topic: not user facing", "module: inductor", "ciflow/inductor" ]
3
CONTRIBUTOR
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang @aakhundov
true
2,802,591,247
XPU builds validations
atalman
closed
[ "triaged", "module: xpu" ]
4
CONTRIBUTOR
### 🐛 Describe the bug We would like to validate XPU binary builds on Linux and Windows platforms. Running following scenarios: 1. Install XPU binary on machine without Intel GPU and no Intel Driver installed. Run smoke test: ```/pytorch/.ci/pytorch/smoke_test# python smoke_test.py --package torchonly``` Post full l...
true
2,802,586,847
[BE][MPS] Move Gamma kernels to its own file
malfet
closed
[ "Merged", "topic: not user facing", "release notes: mps", "ciflow/mps" ]
1
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #145312 * #145309 * #145295 * __->__ #145289
true
2,802,558,739
Add multi env variable support to configs
oulgen
closed
[ "Merged", "Reverted", "ciflow/trunk", "topic: not user facing", "ci-no-td" ]
11
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145288
true
2,802,552,939
[export][be] Clean up local imports from export [1/n]
zhxchen17
closed
[ "fb-exported", "Merged", "ciflow/trunk", "release notes: export" ]
5
CONTRIBUTOR
Summary: as title Test Plan: CI Differential Revision: D68449844
true
2,802,541,880
update get start xpu
pytorchbot
closed
[ "open source" ]
3
COLLABORATOR
- Support new Intel client GPU on Windows [Intel® Arc™ B-Series graphics](https://www.intel.com/content/www/us/en/products/docs/discrete-gpus/arc/desktop/b-series/overview.html) and [Intel® Core™ Ultra Series 2 with Intel® Arc™ Graphics](https://www.intel.com/content/www/us/en/products/details/processors/core-ultra.htm...
true
2,802,535,990
Updates NCCL user buffer registration test for NCCL 2.24.3
syed-ahmed
closed
[ "oncall: distributed", "open source", "Merged", "ciflow/trunk", "topic: not user facing" ]
7
COLLABORATOR
NCCL 2.24.3 changed the content of the debug output for NVLS registration. We use this debug output in our test suite to check if NVLS was successfully registered or not. Hence we need to specialize for the NCCL version in the test. Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->_...
true
2,802,518,264
[dynamo] `torch.compile` ICE on using a sourceless unspecialized NN module as branching condition
StrongerXi
closed
[ "triaged", "oncall: pt2", "module: dynamo", "dynamo-triage-jan2025" ]
3
CONTRIBUTOR
### 🐛 Describe the bug This was exposed by #144906; minimal repro: ```python import torch class Cache(torch.nn.Module): def __init__(self): super().__init__() self.key_cache = [] def __len__(self): return len(self.key_cache) @torch.compile(backend="eager") def f(x): cache = Cac...
true
2,802,505,066
[BE][export] add "+export" logging to de/serialization
pianpwk
closed
[ "Merged", "ciflow/trunk", "ciflow/inductor", "release notes: export" ]
7
CONTRIBUTOR
adds de/serialization debug logging to `TORCH_LOGS="+dynamic"`
true
2,802,478,724
Dtype available for `torch.optim.Adam` and `torch.optim.AdamW` when `fused=True` is different from described
ILCSFNO
closed
[ "module: optimizer", "triaged" ]
2
CONTRIBUTOR
### 📚 The doc issue The docs of [`torch.optim.AdamW()`](https://pytorch.org/docs/stable/generated/torch.optim.AdamW.html#torch.optim.AdamW) and [`torch.optim.Adam()`](https://pytorch.org/docs/stable/generated/torch.optim.Adam.html#torch.optim.Adam) shows their shared parameters as shown below: > fused (bool, optiona...
true
2,802,402,833
When calling a custom function of a LlamaForCausalLM using FSDP causes RuntimeError
fingertap
closed
[ "oncall: distributed" ]
4
NONE
### 🐛 Describe the bug Error message: ``` [rank0]: Traceback (most recent call last): ... [rank0]: logits = self.forward(input_ids, attention_mask=attention_mask).logits [rank0]: File "/data/miniconda3/envs/verl/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 1163, in forward [ra...
true
2,802,335,734
Use TORCH_CHECK instead of std::runtime_error in stack.h and ivalue.h
janeyx99
closed
[ "better-engineering", "Merged", "ciflow/trunk", "topic: not user facing" ]
3
CONTRIBUTOR
TORCH_CHECK will preserve the stacktrace for when TORCH_CPP_SHOW_STACKTRACES=1, whereas std::runtime_error will not. Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145280
true
2,802,241,293
[SkipFiles] New modules added to torch.* are inlined by default
zou3519
closed
[ "Merged", "ciflow/trunk", "topic: not user facing", "module: dynamo", "ciflow/inductor" ]
4
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145279 This PR: - makes it so that new modules added to torch are inlined by default - adds a list of the previously "skipped by default" modules to avoid regressing anything. This is a new MOD_SKIPLIST list that is consulted in ...
true
2,802,218,993
[DO NOT MERGE] Testing mi300 on periodic
ethanwee1
closed
[ "open source", "ciflow/trunk", "release notes: rocm", "topic: not user facing" ]
5
CONTRIBUTOR
Testing mi300 runner on periodic workflow as we only see 261 distributed tests being run for mi300's on the trunk workflow while the periodic workflow runs over 3000.
true
2,802,206,602
Torch Compile edge case with != versus is not
CoffeeVampir3
closed
[ "high priority", "triaged", "bug", "oncall: pt2", "module: dynamo" ]
2
NONE
### 🐛 Describe the bug Here's some reproduction code on latest torch. There's a failure to compile when there's a `!= None` but it's fine with `is not None` given the exact torch compile settings I've shown in particular. It's a strange edge case and only happens on some compile settings. Thanks for your time. Here'...
true
2,802,119,061
F.scaled_dot_product_attention get query @ key
JustinKai0527
closed
[ "triaged", "module: sdpa" ]
1
NONE
Hello, everyone, I want to know how to get the query @ key in F.scaled_dot_product_attention, I use the below code but still got OOM, I can use the F.scaled_dot_product attention and don't get the OOM, plz help... ``` def chunk_dot_product(query, key, num_chunks=2000): # query, key shape: [batch_size, num_heads, se...
true
2,802,087,224
[HOTFIX] Remove third_party/kleidai
ezyang
closed
[ "topic: not user facing" ]
1
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145275 Signed-off-by: Edward Z. Yang <ezyang@meta.com>
true
2,801,980,430
AttributeError: '_OpNamespace' 'aten' object has no attribute 'momentum'
VascoSch92
open
[ "needs reproduction", "triaged", "module: custom-operators", "module: library", "oncall: pt2", "module: pt2-dispatcher", "module: core aten" ]
4
NONE
### 🐛 Describe the bug I have a problem with the following piece of code ```python import torch from torch import nn class GatedLinearUnit(nn.Module): def __init__(self, in_features: int) -> None: super().__init__() self.linear_1 = nn.Linear(in_features=in_features, out_features=in_features) ...
true
2,801,883,856
cloning third_party/kleidiai fails
AmdSampsa
closed
[ "triage review", "module: build", "module: ci" ]
22
COLLABORATOR
### 🐛 Describe the bug When trying to compile pytorch from scratch, starting with: ```bash git submodule update --init --recursive ``` I hit ``` Cloning into '/root/pytorch-main/third_party/kleidiai'... remote: GitLab is not responding fatal: unable to access 'https://git.gitlab.arm.com/kleidi/kleidiai.git/': The req...
true
2,801,883,039
Remove unnecessary HPUHooksInterface method
moksiuc
closed
[ "triaged", "open source", "Merged", "ciflow/trunk", "topic: not user facing" ]
10
CONTRIBUTOR
getDefaultHPUGenerator is no longer necessary
true
2,801,851,934
[Test][Inductor] Fix test_tma_graph_breaks
Aidyn-A
closed
[ "open source", "Merged", "ciflow/trunk", "topic: not user facing", "module: inductor", "ciflow/inductor" ]
6
COLLABORATOR
Per title. Before these changes, below tests: ``` test_triton_kernels.py::KernelTests::test_tma_graph_breaks_after_data_ptr_False_after_create_desc_False test_triton_kernels.py::KernelTests::test_tma_graph_breaks_after_data_ptr_False_after_create_desc_True test_triton_kernels.py::KernelTests::test_tma_graph_breaks_...
true
2,801,803,076
[NVIDIA] RTX50 Blackwell Support codegen
johnnynunez
closed
[ "open source", "Merged", "ciflow/trunk", "release notes: cuda", "topic: new features" ]
6
CONTRIBUTOR
cc @ptrblck @msaroufim @eqy
true
2,801,785,959
Improve the caching allocator test for raw alloc
1274085042
closed
[ "open source", "Merged", "ciflow/trunk", "topic: not user facing" ]
31
CONTRIBUTOR
1 Prevent block allocated by torch._C._cuda_cudaCachingAllocator_raw_alloc from affecting torch.cuda.empty_cache() in other unit tests 2 Additionally, tested the changes to raw_delete in https://github.com/pytorch/pytorch/pull/131114 @jeffdaily @albanD @houseroad @eqy @aaronenyeshi
true
2,801,780,958
`torch.compile` may produce wrong result with `torch.nn.functional.interpolate`.
Zoeeeeey
closed
[ "oncall: pt2" ]
1
NONE
### 🐛 Describe the bug Hi! I found that the following model gives different results after compile. And this inconsistency appears in torch 2.7.0, while the process is normal in version 2.5.1. ```python import torch inp_args = [ torch.nn.Parameter(torch.randn([23, 1, 1, 1, 1], dtype=torch.float32), requires_grad...
true
2,801,663,496
`torch.ops.aten.embedding_dense_backward` Crashes with Out-of-Bounds Indices On CPU
WLFJ
open
[ "module: crash", "module: error checking", "triaged", "module: embedding", "topic: fuzzer" ]
1
NONE
### 🐛 Describe the bug An error occurs in the `torch.ops.aten.embedding_dense_backward` function because the indices tensor contains values that exceed the num_weights parameter. In the provided code, num_weights is set to 0, causing all index accesses to be out of bounds. This results in a crash due to out-of-bounds...
true
2,801,648,413
Calculation Results Become NaN After Using `torch.compile` with `Matmul+Concat4+Mul+Linear+Tan`.
Zoeeeeey
closed
[ "oncall: pt2" ]
1
NONE
### 🐛 Describe the bug Hi! I found that the following model gives Nan results after compile. ```python import torch inp_args = [ torch.nn.Parameter(torch.randn(size, dtype=torch.float32), requires_grad=True) for size in [[1], [33, 1, 1, 1, 1], [33, 1, 1, 1, 1]] ] def fn(): v10_0 = torch.nn.Parameter(t...
true
2,801,555,566
Fix SEGFAULT when None arg was passed in GraphContext.op(..)
Tytskiy
closed
[ "oncall: distributed", "module: onnx", "module: cpu", "triaged", "open source", "module: amp (automated mixed precision)", "onnx-triaged", "release notes: onnx", "release notes: quantization", "topic: bug fixes", "module: inductor", "module: dynamo" ]
7
NONE
Fixes #145261 cc @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @mcarilli @ptrblck @leslie-fang-intel @voznesenskym @penguinwu @EikanWang @Guobing-Chen @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @che...
true
2,801,551,056
`torch.compile` may produce wrong result with `BicubicInterp+Neg+Linear+Tan`.
Zoeeeeey
closed
[ "oncall: pt2" ]
1
NONE
### 🐛 Describe the bug Hi! I found that the following model gives different results after compile. ```python import torch inp = torch.nn.Parameter(torch.randn([8, 1, 4, 1], dtype=torch.float32), requires_grad=True) def fn(): v5_0 = torch.nn.functional.interpolate(inp, size=[36, 1], scale_factor=None, mode='b...
true
2,801,486,683
[Pipelining] Problem using `torch.distributed.pipelining` on `Gemma2ForCausalLM`
sadra-barikbin
open
[ "oncall: distributed", "triaged" ]
3
CONTRIBUTOR
Hi there! I have problem testing torch pipelining against gemma2 model. Here is the code snippet: ```python config = AutoConfig.from_pretrained("google/gemma-2-2b-it") model = Gemma2ForCausalLM(config) pipeline(model, mb_args=(torch.LongTensor([[1,2,3],[4,5,6]]),), split_spec={"model.layers.13": SplitPoint.BEGINNING}...
true
2,801,483,220
Missing create_graph arguments in torch.func apis
Luciennnnnnn
open
[ "triaged", "module: functorch" ]
3
NONE
### 🐛 Describe the bug Hi, I want replace `torch.autograd.functional.jvp`/`torch.autograd.functional.vjp` with `torch.func.jvp`/`torch.func.vjp`. Since `torch.func.jvp` is more efficient compared to autograd ops. However, I notice these apis are not equivalent, since I calculate jvp to create a loss, thus second-ord...
true
2,801,477,785
Custom symbolic functions for ONNX export with None args causes SEGFAULT
Tytskiy
open
[ "module: crash", "module: onnx", "triaged" ]
0
NONE
### 🐛 Describe the bug `torch.onn.export` with custom symbolic function produces SEGFAULT. It happens when I set some aguments optional with `None`. OnnxRuntime opset allows it https://github.com/microsoft/onnxruntime/blob/3e4c5e64877c6d9814e4ebce5dcbb1fe71588ec5/docs/ContribOperators.md#commicrosoftpackedmultiheada...
true
2,801,465,890
[ARM] Add test_ops and test_memory_profiler to aarch64 tests
robert-hardwick
open
[ "triaged", "open source", "module: arm", "topic: not user facing" ]
13
COLLABORATOR
Fixes #142371 cc @malfet @snadampal @milpuz01 @aditew01 @nikhil-arm @fadara01
true
2,801,238,281
No Range Check for `storage_offset` in `as_strided` Function
WLFJ
open
[ "module: crash", "module: error checking", "triaged", "topic: fuzzer" ]
2
NONE
### 🐛 Describe the bug An issue has been identified in the `as_strided` function of PyTorch related to the `storage_offset` parameter (referred to as sym_3 in the provided example). The function does not perform a range check on storage_offset, which leads to memory access errors when the value is out of bounds. In t...
true
2,801,183,921
Missing Length Check for `reflection_pad3d` `padding` Argument
WLFJ
open
[ "module: crash", "module: cpp", "module: error checking", "triaged", "topic: fuzzer" ]
0
NONE
### 🐛 Describe the bug An issue was identified with the `reflection_pad3d` function in PyTorch regarding the handling of its `padding` argument. The function expects padding to be an array of length 6, but currently, there is no validation check for this length. This oversight can cause undefined behavior when paddin...
true
2,801,132,393
nn.Embedding backwards pass for nested tensors
kkj15dk
closed
[ "triaged", "module: nestedtensor" ]
4
NONE
### 🚀 The feature, motivation and pitch It seems there is no backwards pass for nn.Embedding implemented for nested tensors, while the forward pass works. Could be a very useful feature ``` import torch import torch.nn as nn def packed_tensor_from_jagged(tensor): offsets = tensor.offsets() return torch.cat(...
true
2,801,054,155
loss.backward() breaking somewhere when modulating a nested tensor using scale and shift (RuntimeError: Function AddBackward0 returned an invalid gradient at index 0 - got [1, 4, 64] but expected shape compatible with [4, 1, 64])
kkj15dk
closed
[ "module: autograd", "triaged", "module: nestedtensor" ]
2
NONE
### 🐛 Describe the bug When using a label to modulate a nested tensor, the backwards pass breaks. I am not entirely sure on the nature of the bug, but it happens because of the line "x = x * (1 + scale)", as the bug disappears when this is commented out. ``` import torch import torch.nn as nn def packed_tensor_from...
true
2,801,011,568
[CD] Disable Kineto for XPU Windows CD
chuanqi129
closed
[ "open source", "Merged", "ciflow/trunk", "topic: not user facing", "ciflow/binaries_wheel" ]
13
COLLABORATOR
Due to issue #145155, disable Kineto for XPU Windows CD temporally.
true
2,800,976,931
[TEST] tmp storage with CONSTANTHANDLE
muchulee8
closed
[ "Stale", "ciflow/trunk", "module: inductor", "ciflow/inductor" ]
4
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145254 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @ColinPeppler @amjames @desertfire @chauhang @aakhundov Differential ...
true
2,800,890,099
PyObject preservation does not prevent weakrefs being cleared by Python garbage collector
soulitzer
open
[ "triaged", "module: python frontend" ]
8
CONTRIBUTOR
### 🐛 Describe the bug If a dead cycle holds the last reference to a resurrectable Tensor, gc will clear its weakrefs. One implication of this interaction is that entries can spuriously vanish from WeakTensorKeyDictionary, which is used in various places across the code base. Repro: ```python import gc; gc.disable()...
true
2,800,828,393
change the test wheel to release wheel when release wheel available
ZhaoqiongZ
closed
[ "triaged", "open source", "Merged", "ciflow/trunk", "topic: docs", "release notes: xpu" ]
13
CONTRIBUTOR
change the test wheel to release wheel when release wheel available
true
2,800,812,703
Fix IdentationError of code example
ZhaoqiongZ
closed
[ "triaged", "open source", "Merged", "ciflow/trunk", "topic: not user facing" ]
6
CONTRIBUTOR
I found there is IndentationError when try to copy paste the example of inference with torch.compile fix the format in this pr
true
2,800,804,995
[Inductor][CPU] Add a lowering pass for _weight_int4pack_mm_for_cpu
Xia-Weiwen
closed
[ "module: cpu", "open source", "Merged", "ciflow/trunk", "release notes: quantization", "topic: not user facing", "intel", "module: inductor", "ciflow/inductor" ]
3
COLLABORATOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #146756 * __->__ #145250 * #145245 **Summary** It's part of the task to enable max-autotune with GEMM template for WoQ INT4 GEMM on CPU. This PR adds a lowering pass for `torch.ops.aten_weight_int4pack_mm_for_cpu`. This op is used f...
true
2,800,798,784
fake PR for validating oneDNN upgrade to v3.7 on windows
LifengWang
closed
[ "module: mkldnn", "open source", "release notes: releng", "ciflow/binaries_wheel", "module: inductor" ]
1
CONTRIBUTOR
cc @gujinghui @PenghuiCheng @XiaobingSuper @jianyuh @jgong5 @mingfeima @sanchitintel @ashokei @jingxu10 @min-jean-cho @yanbing-j @Guobing-Chen @Xia-Weiwen @snadampal @voznesenskym @penguinwu @EikanWang @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @deser...
true
2,800,794,015
[Break XPU][Inductor UT] Set input tensors to corresponding device for test case in test_aot_indutor.py
etaf
closed
[ "open source", "Merged", "ciflow/trunk", "topic: not user facing", "module: inductor", "ciflow/inductor" ]
5
COLLABORATOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #146763 * #146880 * __->__ #145248 * #146762 Fix #145247 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @...
true
2,800,786,116
[Break XPU] device type in test_aot_inductor.py is not passed correctly to cpp_builder.
etaf
closed
[ "triaged", "module: xpu" ]
2
COLLABORATOR
### 🐛 Describe the bug #### Description Currently XPU Ci is broken by the newly added test case `AOTInductorTestABICompatibleGpu.test_assert_tensor_meta_xpu` The CI log: https://github.com/pytorch/pytorch/actions/runs/12869396818/job/35880652376 Error msg: ``` =================================== FAILURES ============...
true
2,800,737,013
[dynamo] Support types.MappingProxyType
anijain2305
closed
[ "ciflow/trunk", "topic: not user facing", "module: dynamo", "ciflow/inductor" ]
2
CONTRIBUTOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145246 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames
true
2,800,716,149
[Quant][CPU] add a wrapper op for _weight_int4pack_mm_for_cpu with tensor args
Xia-Weiwen
closed
[ "module: cpu", "open source", "Merged", "ciflow/trunk", "release notes: quantization", "release notes: linalg_frontend", "intel", "module: inductor", "ciflow/inductor" ]
7
COLLABORATOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #146756 * #145250 * __->__ #145245 **Summary** It's part of the task to enable max-autotune with GEMM template for WoQ INT4 GEMM on CPU. This PR adds a wrapper op in `quantized` namespace for `torch.ops.aten_weight_int4pack_mm_for_c...
true
2,800,697,414
Improve typing by using bool and int
cyyever
closed
[ "triaged", "open source", "Stale", "topic: not user facing" ]
6
COLLABORATOR
Fixes #ISSUE_NUMBER
true
2,800,686,989
[inductor] Make serialized inductor patterns path configurable instead of using …
kareemshaik80
open
[ "triaged", "open source", "module: inductor", "release notes: inductor" ]
9
CONTRIBUTOR
…fixed path in the inductor module Fixes [145242](https://github.com/pytorch/pytorch/issues/145242) cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang @aak...
true
2,800,686,289
Expose configurable path instead of using fixed path in the inductor module for serialized pattern generation
kareemshaik80
open
[ "triaged", "oncall: pt2", "module: inductor" ]
0
CONTRIBUTOR
### 🚀 The feature, motivation and pitch Expose configurable path instead of using fixed path in the inductor module for serialized pattern generation ### Alternatives _No response_ ### Additional context _No response_ cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzhen...
true
2,800,677,357
add grad_output shape check for adaptive_avg_pool2d_backward
jiayisunx
closed
[ "open source", "Merged", "ciflow/trunk", "topic: not user facing" ]
6
COLLABORATOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145241 Fix https://github.com/pytorch/pytorch/issues/145070.
true
2,800,610,784
Teach dynamo to handle GenericAlias without a graph break
aorenste
closed
[ "Merged", "ciflow/trunk", "topic: not user facing", "module: dynamo", "ciflow/inductor" ]
3
CONTRIBUTOR
Dynamo wasn't handling the new PEP585 type annotations: ``` x = list[Foo] ``` Although this worked in py3.9 this was causing an `unimplemented` (Unexpected type in sourceless builder) in py3.12. This fixes it to treat them as a BuiltinVariable. Fixes #145226 Stack from [ghstack](https://github.com/ezyang/g...
true
2,800,593,844
Turn Stream into protocol and improve typing in torch/_C/__init__.pyi.in
cyyever
open
[ "oncall: jit", "triaged", "open source", "Stale", "topic: not user facing" ]
7
COLLABORATOR
Fixes #ISSUE_NUMBER cc @EikanWang @jgong5 @wenzhe-nrv @sanchitintel
true
2,800,582,103
Improve typing in torch/__init__.py
cyyever
closed
[ "triaged", "open source", "ciflow/trunk", "topic: not user facing" ]
5
COLLABORATOR
Fixes #ISSUE_NUMBER
true
2,800,573,890
Improve typing in torch/types.py
cyyever
closed
[ "open source", "Merged", "ciflow/trunk", "topic: not user facing", "ciflow/inductor" ]
18
COLLABORATOR
Fixes #ISSUE_NUMBER
true
2,800,560,375
[Don't Review] test CI
guangyey
closed
[ "topic: not user facing" ]
1
COLLABORATOR
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * __->__ #145236
true
2,800,524,531
Fix broken gpt_fast micro benchmark after #144315
huydhn
closed
[ "Merged", "release notes: releng", "ciflow/inductor-micro-benchmark", "ciflow/inductor-micro-benchmark-cpu-x86" ]
5
CONTRIBUTOR
The benchmark is failing with the following error ``` File "/var/lib/jenkins/workspace/benchmarks/gpt_fast/benchmark.py", line 333, in <module> main(output_file=args.output, only_model=args.only) File "/var/lib/jenkins/workspace/benchmarks/gpt_fast/benchmark.py", line 308, in main lst = func(device) ...
true
2,800,479,096
Binaries Python 3.13t failing linux-aarch64-binary-manywheel and linux-binary-manywheel
atalman
closed
[ "module: binaries", "oncall: releng" ]
1
CONTRIBUTOR
### 🐛 Describe the bug Binaries Python 3.13t failing linux-aarch64-binary-manywheel and linux-binary-manywheel since 01.17.2025 Linux manywheel-py3_13t-cpu-build : https://github.com/pytorch/pytorch/actions/runs/12863127095/job/35859167010 ``` pip install -qr requirements.txt error: subprocess-exited-with-error ...
true
2,800,470,058
Not using set_num_threads results in very slow .all()
arogozhnikov
open
[ "module: performance", "module: cpu", "triaged" ]
5
NONE
### 🐛 Describe the bug ```python import torch import time # print(f'{torch.get_num_threads()}') # default is 256, it isn't important how many we set, but the fact that we set num_threads is critical # torch.set_num_threads(32) x = torch.zeros(13456, 4) # starts at some size of first dim z_out = torch.zeros(1024, 4, ...
true
2,800,463,213
[inductor] Simplify mode options, only apply CompilerBisector changes once
jansel
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): * __->__ #145232 cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang @aakhundov
true
2,800,460,550
Flaky Dynamo test: TestAutograd.test_gradcheck_nondeterministic
yanboliang
open
[ "module: autograd", "triaged", "module: testing", "oncall: pt2" ]
0
CONTRIBUTOR
### 🐛 Describe the bug Reproduce command: ``` PYTORCH_TEST_WITH_DYNAMO=1 python test/test_autograd.py TestAutograd.test_gradcheck_nondeterministic ``` This issue was discovered while I was working on #142830. The core problem is that this unit test produces different results on CI compared to running it locally. The ...
true
2,800,441,148
[BE] [mps] Refactor UnaryConstants to be its own kernel.
dcci
closed
[ "Merged", "topic: not user facing", "ciflow/mps", "module: inductor" ]
7
MEMBER
In preparation for using this file for inductor (for erfinv). cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang @aakhundov
true
2,800,397,882
CPU-only PyTorch on M1 MacBook always gets "RuntimeError: Placeholder storage has not been allocated on MPS device!"
gregchapman-dev
closed
[ "needs reproduction", "triaged", "module: macos" ]
1
NONE
### 🐛 Describe the bug I'm trying to run CPU-only on an M1 MacBook. I installed the CPU-only build: pip install torch --extra-index-url https://download.pytorch.org/whl/cpu I always get "RuntimeError: Placeholder storage has not been allocated on MPS device!", but of course that's true, I'm running CPU only. (Note...
true
2,800,383,395
Expose the rendezvous keepalive arguments
carmocca
closed
[ "oncall: distributed", "triaged", "open source", "Merged", "ciflow/trunk", "release notes: distributed (torchelastic)" ]
3
CONTRIBUTOR
Enables support for this: ```python from torch.distributed.launcher.api import LaunchConfig config = LaunchConfig( ..., rdzv_configs={"keep_alive_interval": 1122, "heartbeat_timeout": 321, "keep_alive_max_attempt" 5}, ) ``` These arguments are currently hard-coded inside torchrun. The default valu...
true
2,800,375,916
[ROCm] fix test_cublas_workspace_explicit_allocation for gfx12
dnikolaev-amd
closed
[ "module: rocm", "open source", "Merged", "ciflow/trunk", "topic: not user facing", "rocm", "ciflow/rocm" ]
10
CONTRIBUTOR
gfx12 passes the condition `torch.cuda.get_device_capability() >= (9, 4)` and uses `default_workspace_size=128MB`, but it required only for MI300 Fix condition to use `("gfx94" in gcn_arch)` instead of `torch.cuda.get_device_properties()` to detect MI300. Now `default_workspace_size=32MB` is used for gfx12 and the t...
true