PyTorch: Dynamic Shape Fixes and Backend Speedups

A cluster of compiler fixes targets dynamic shapes and long-context attention failures, alongside M P S and C P U performance wins. Hardware reliability work spans Rock M memory, distributed all-reduce, and X P U coverage.

Duration: PT2M22S

Episode overview

This episode is a short developer briefing from PyTorch.

It explains recent repository work in plain language.

  • Show: PyTorch
  • Published: 2026-11-30T14:00:26Z
  • Audio duration: PT2M22S

Source and disclosure

PyTorch is an unofficial, AI-generated summary of public activity in pytorch/pytorch on GitHub.

Podlog isn't affiliated with or endorsed by the project or its maintainers. Episodes aren't reviewed by a person before they go out, so check the source repository for the full story.

Transcript excerpt

This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.

The compiler kept tripping on real models with dynamic shapes, and November thirtieth brought a cluster of fixes for exactly that. The pattern is long context and symbolic sizes breaking code generation in subtle ways. If you run dynamic shapes in production, this batch matters to you.

One fix corrects flex attention offsets that stayed thirty-two bit while large tensors moved to sixty-four bit, which crashed or corrupted gradients past about forty-six thousand tokens in PR twenty seventy-one fifteen. Another fixes an invalid not-a-number comparison when dividing two dynamic sizes with truncation,…

Also, backends got faster without changing results. On M P S a new block path for wide contiguous softmax rows reads once and reuses registers, about one point nine times faster on a four thousand by four thousand half precision case. On C P U, uint eight image resize in area mode now preserves channels last layout,…

Separately, reliability work spread across accelerators. On Rock M, creating the convolution handle now retries after emptying the caching allocator, which helps long pipelines that hit the first convolution late and falsely report out of memory. Distributed gains an out of…

Fo…

Nearby episodes from PyTorch

  1. Autocast Correctness and Backend Hooks
  2. Compiler Fallbacks and Eager Parity
  3. Weekly Recap - Locality, Accelerators and Compile Correctness
  4. Silent Correctness Fixes and MPS Speedups
  5. Compiler Reliability, Optimizer Fixes, and Backend Speed
  6. XPU Parity Push and Compiler Correctness Fixes
  7. Metal Speed Comeback and Accelerator Correctness Fixes
  8. Memory Pool Rules Tighten, OneDNN Port Advances