🚀 The feature, motivation and pitch An example where this was a little annoying was in debugging the problem as described in issuecomment-1795715999 Being able to see both graph breaks and recompiles will give us a clearer picture. Today, the problem is that changing PT2 to…
good first issuefiled by a maintainer
Demandweight 25% × value 0.47 = 11.7 pts2 reactions, 4 commentsMaintainer engagementweight 25% × value 0.69 = 17.2 pts12 PRs merged in the project in 30 days; filed by a maintainerFeasibilityweight 30% × value 1.00 = 30.0 ptslabelled as a starter issueFreshnessweight 20% × value 0.85 = 17.1 ptsupdated 10 days ago
Demand: 2 reactions, 4 comments · Maintainer engagement: 12 PRs merged in the project in 30 days; filed by a maintainer · Feasibility: labelled as a starter issue · Freshness: updated 10 days ago
🚀 The feature, motivation and pitch I'm trying to implement graceful exit on SLURM pre-emption. SLURM gives 10 minutes upon pre-emption (i.e., SIGTERM; sleep 600; SIGKILL), but it seems that torchrun will send a SIGKILL from the launcher to all the child processes after 30…
good first issue
Demandweight 25% × value 0.66 = 16.4 pts4 reactions, 9 commentsMaintainer engagementweight 25% × value 0.39 = 9.7 pts12 PRs merged in the project in 30 daysFeasibilityweight 30% × value 1.00 = 30.0 ptslabelled as a starter issueFreshnessweight 20% × value 0.97 = 19.5 ptsupdated 1 days ago
Demand: 4 reactions, 9 comments · Maintainer engagement: 12 PRs merged in the project in 30 days · Feasibility: labelled as a starter issue · Freshness: updated 1 days ago
Today, we add a ViewAndMutationMeta object to the TracingContext here, that backends can use to ask for certain information about the graph, including information about how many / which inputs were mutated. This technically exposes the ViewAndMutationMeta object to out-of-tree…
good first issuefiled by a maintainer
Demandweight 25% × value 0.47 = 11.7 pts1 reactions, 6 commentsMaintainer engagementweight 25% × value 0.69 = 17.2 pts12 PRs merged in the project in 30 days; filed by a maintainerFeasibilityweight 30% × value 1.00 = 30.0 ptslabelled as a starter issueFreshnessweight 20% × value 0.81 = 16.3 ptsupdated 13 days ago
Demand: 1 reactions, 6 comments · Maintainer engagement: 12 PRs merged in the project in 30 days; filed by a maintainer · Feasibility: labelled as a starter issue · Freshness: updated 13 days ago
📚 The doc issue Torch distributed offers two ways of doing distributed operations: - torch.distributed. - torch.distributed.nn. The second one wraps distributed ops, e.g. all reduce , with a function to propagate through gradients. This can very easily result in a very subtle…
good first issue
Demandweight 25% × value 0.55 = 13.6 pts2 reactions, 7 commentsMaintainer engagementweight 25% × value 0.39 = 9.7 pts12 PRs merged in the project in 30 daysFeasibilityweight 30% × value 1.00 = 30.0 ptslabelled as a starter issueFreshnessweight 20% × value 0.89 = 17.7 ptsupdated 7 days ago
Demand: 2 reactions, 7 comments · Maintainer engagement: 12 PRs merged in the project in 30 days · Feasibility: labelled as a starter issue · Freshness: updated 7 days ago
🚀 The feature, motivation and pitch A recurring question we get is how to handle uneven or dynamic sized collectives. For example, users want to: - Scatter tensors of different sizes. - Dynamically determine broadcast tensor sizes on the source rank. There are plenty of forum…
good first issue
Demandweight 25% × value 0.57 = 14.2 pts2 reactions, 8 commentsMaintainer engagementweight 25% × value 0.39 = 9.7 pts12 PRs merged in the project in 30 daysFeasibilityweight 30% × value 1.00 = 30.0 ptslabelled as a starter issueFreshnessweight 20% × value 0.83 = 16.6 ptsupdated 11 days ago
Demand: 2 reactions, 8 comments · Maintainer engagement: 12 PRs merged in the project in 30 days · Feasibility: labelled as a starter issue · Freshness: updated 11 days ago
🐛 Describe the bug This issue is to have a centralized place to list and track work on adding support to new ops for the MPS backend. **Most requested ops** (extracted from comments to this issue and 77764) **PyTorch MPS Ops Project** : Project to track all the ops for MPS…
🚀 The feature, motivation and pitch Background Currently, PyTorch eager-mode leverages oneDNN for x86 64 & aarch64 CPUs via ideep, which is essentially a set of headers to make oneDNN integration with PyTorch more convenient. ideep is a git submodule of PyTorch, and in turn,…
Code example The second-order gradients are completely bogus: py def f(x): Just to make sure there isn't a limit or something y = x x x x x 1 1 1. 1. 1. print("graph break") gx, = torch.autograd.grad(y, x, create graph=True) ggx, = torch.autograd.grad(gx, x) return gx, ggx x =…
🚀 The feature, motivation and pitch The RFC is to improve float16 performance as well as Op coverage on PyTorch CPU backend on eager mode. Float16 and BFloat16 are both commonly used reduced floating point types for performance improvement in neural network inference/training.…
A cluster-agnostic triage tool that collects PyTorch Flight Recorder dumps from all ranks and correlates them with per-host GPU health (DCGM/XID) and collective timings could name the suspect rank or host automatically. It would be adopted because Flight Recorder is built into PyTorch but leaves cross-rank analysis and hardware correlation to the user.
A framework-agnostic harness that compares a small model's forward/backward outputs and converted weights across parallelism layouts and formats against a single-GPU reference would catch silent bugs early. Recent fuzzing found such bugs in Megatron Core, and converters remain a recurring request.
I've been experimenting with scan codegen for the Inductor CPU backend. It shows promising results when the scan is fused with pointwise operations, but doesn't improve performance for standalone…
🚀 The feature, motivation and pitch Author's motivation, quoted from the design request: My goal is to redesign the whole thing from first principles. The design needs to be lightweight, functional…
Author Motivation (Wording Edited With AI Assistance) With non-V-shaped schedules such as Interleaved1F1B, earlier pipeline ranks generally retain more in-flight activations than later ranks, often…
Author Motivation When scaling a model to larger PP degree we observe an imbalance in activation memory for the non-V shaped schedules. The V shaped schedules solve the activation memory imbalance…
PyTorch PP's di-dw split currently calls the autograd graph twice which causes several compoisability issues with compile, remat, graph trainer and custom-ops. We want to introduce a new way of doing…
Context This is the discussion issue invited by @janeyx99 on the closed PR 205345 ("[optim] Introduce Echelon optimizer to PyTorch"): PyTorch Core has some pretty strict rules when it comes to adding…
Parent: #201137 Related: #194355 Summary At compile time, several places save, restore or validate global state: RNG state, autocast state, hardware identity. They all enumerate only cpu and cuda .…
Parent: #201137 Related: #194355 Summary Generic code often decides whether a device can take part in a feature by checking a hardcoded list of device names ( device.type in ("cpu", "xpu") ), or by…
Authors: @mriganks-amd Summary On CPU, torch. grouped mm has no kernel of its own (unlike CUDA and MPS), so CPU calls run grouped mm fallback : one at::mm per expert. This RFC adds a CPU backend that…
Proposal Move the ONNX operator implementations currently supplied by ONNX Script's torch lib into PyTorch, and construct ONNX graphs directly with onnx ir . Keep ONNX Script available for…
🚀 The feature, motivation and pitch Different ways of installing PyTorch can lead to different install layouts, that is, mostly the location of Python source files, autogenerated files, and built…
Inductor can already generate PDL for its Triton kernels, but the option is off by default today because it regresses some workloads. This RFC proposes: 1. Gate the early launch to small grids : a…
🚀 The feature, motivation and pitch Noncontiguous and broadcast elementwise operations on CUDA (e.g. add / mul with a broadcast bias, transposed views, dtype-casting copies) fall back to the generic…
The feature, motivation and pitch I'm post-training Muse 30B with LoRA (SFT, DPO, GRPO). The model softcaps its logits, cap tanh(logits / cap) , and has a 202k vocab. With conversations up to 18k…
Summary When a pipeline stage is wrapped with FSDP2, PipelineStage turns off FSDP's resharding and gradient synchronization before every microbatch backward, and turns them back on only at the…
Allow third party/xpu.txt to contain a full SHA on main or release/X.Y on release branch Motivation (AI-assisted proposal) Since PyTorch 2.8, torch-xpu-ops has followed the PyTorch release process,…
🚀 The feature, motivation and pitch Some pointwise operations have strict numerics enabled while others do not. This will help increase the stability of kernels generated by torch compile. Issue…
- Author(s) : Fujun Han (@Peter9606) - Status : Draft - Related Issues / PRs : #190875, #201039 - AI Assistance : Drafted with Cursor. Reviewed and edited before posting. --- Summary #190875 added…
Prototype implementation: 201621 Feedback is welcome on the opt-in API, the bounded-ZIP serialization helper, fallback boundaries, and the whole-file mapping trade-off. Summary Add a keyword-only…