PyTorch: Distributed Training Takes Control of Its Own Timing
A cluster of PRs from FSDP2, pipelining, and DDP teams hand callers explicit control over when gradient reduction finalizes, replacing implicit autograd-callback timing with opt-in APIs. Separately, a twenty-part ghstack from bobrenjc93 hardens AOT compile's pickling of nested functions, closing correctness gaps one behavior at a time.
Duration: PT2M59S
Episode overview
This episode is a short developer briefing from PyTorch.
It explains recent repository work in plain language.
- Show: PyTorch
- Published: 2026-09-11T13:00:04Z
- Audio duration: PT2M59S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Good morning. It's September 11th, 2026.
The dominant theme in the codebase this cycle: distributed training is moving away from implicit, autograd-timed synchronization toward explicit, caller-controlled finalization.
Start with DDP. PR 196651 from spmex adds "finalize_backward" and a manual mode flag, letting callers decide exactly when gradient all-reduces are awaited instead of relying on an autograd engine callback. That unlocks overlap patterns like running sparse work while communication is still in flight.
FSDP2 is solving the same problem from a different angle. Fegin's stack, PRs 196640, 196724, 196641, 196725, 196726, and 196727, adds a public finalization API, an asynchronous handle for that finalization, and pipeline integration that defers FSDP's gradient-reduction waits until just before they're needed. The…
And pipelining itself is being restructured for correctness at scale. Sanketpurandare's stack, PRs 196666, 196706, and 196709, derives point-to-point communication groups directly from schedule topology rather than assuming two generic direction communicators — necessary because looped pipeline schedules can route…
Second theme: AOT compile hardening. Bobrenjc93…
Nearby episodes from PyTorch
- Guard Serialization Gets a Precision Pass
- Inductor's Reduction Fusion Overhaul
- Hardware Independence Takes Center Stage
- Hardware-Agnostic Cleanup and MPS Correctness Push
- Weekly Recap - Multi-Rank Compilation and Backend Correctness
- One Rank to Compile Them All
- Dynamo Closes Its Torch Function Gaps
- Precompile Gets a Real Foundation