The Wire · Showcase
SHAPESSPEC UNLOCKS VARIADIC ARGS ACROSS DYNAMO AND QUANTIZED TENSORS GET DEPRECATION WARNING
By RepoJournal · Filed · About PyTorch
PyTorch's shape specification system now handles *args and **kwargs at the spec level, unblocking dynamic tensor shape tracking across the entire compilation pipeline.
The ShapesSpec API redesign [1] lands a critical feature for Dynamo and shape inference: ParamsSpec now accepts a single dict with reserved sentinel keys for variadic slots, letting specs describe functions that take arbitrary numbers of arguments. This removes a long-standing gap in the compiler's ability to trace flexible function signatures. In parallel, quantized tensor creation now carries a deprecation warning [3] across both Python and C++ callsites, signaling the path forward for quantization APIs without breaking existing code. The warning links to a GitHub issue, allowing messaging updates without new releases. On the infrastructure side, CUDA kernel cleanup [2] removes dead code and unused variables through mechanical clang-tidy passes, while ROCm test gates [4] drop stale version-specific skips now that newer hardware is stable. The CI dashboard work continues with new Grafana panels [5] tracking OSDC runner throughput and startup rates, giving visibility into cluster scaling behavior. Expect measurable improvements in both compiler flexibility and observability across the fleet.
Action items
- → Review ShapesSpec migration if you're working on Dynamo tracing or shape inference pytorch/pytorch [plan]
- → Audit quantized tensor creation callsites for deprecation warnings pytorch/pytorch [plan]
- → Monitor new OSDC Grafana panels for cluster health anomalies pytorch/ci-infra [monitor]
References
- [1] [ShapesSpec] Support args, *args, **kwargs at the spec / dynamo source level (#184129) pytorch/pytorch
- [2] Clean up unused variables, redundant casts and namespaces in CUDA kernels (#185040) pytorch/pytorch
- [3] add a deprecation warning for quantized tensor creation (#184984) pytorch/pytorch
- [4] [ROCm] Remove stale skips in test_native_multihead_self_attention (#184802) pytorch/pytorch
- [5] Add two contextual panels to OSDC dashboard ↗ pytorch/ci-infra
FAQ
- What changed in PyTorch on May 27, 2026?
- PyTorch's shape specification system now handles *args and **kwargs at the spec level, unblocking dynamic tensor shape tracking across the entire compilation pipeline.
- What should PyTorch teams do about it?
- Review ShapesSpec migration if you're working on Dynamo tracing or shape inference • Audit quantized tensor creation callsites for deprecation warnings • Monitor new OSDC Grafana panels for cluster health anomalies
- Which PyTorch repositories shipped on May 27, 2026?
- pytorch/pytorch, pytorch/ci-infra