🚀 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…
🚀 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…
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…
📚 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…
🐛 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.