MPS in PyTorch 2.15
Related stories
Accelerating PyTorch distributed fine-tuning with Intel technologies
Profiling in PyTorch (Part 3): Attention is all you profile
OpenAI standardizes on PyTorch
We are standardizing OpenAI’s deep learning framework on PyTorch.
How 🤗 Accelerate runs very large models thanks to PyTorch
Profiling in PyTorch (Part 1): A Beginner's Guide to torch.profiler
Safetensors is Joining the PyTorch Foundation
Policy Gradient with PyTorch
AI Agents Beat PyTorch: Writing Faster CUDA Kernels
AI agents have been shown to write CUDA kernels that outperform PyTorch, but validating these speedups is challenging. The author tested the agents on an NVIDIA DGX Spark and discovered that benchmark design is as crucial as the code itself. The article highlights the need for careful evaluation when comparing AI-generated performance claims.
Visualize and understand GPU memory in PyTorch
Silent Failures at the $2^{32}$ Boundary: A Technical Report on Large-Tensor Matrix Multiplication in PyTorch's Apple MPS Backend
arXiv:2609.22991v1 Announce Type: cross Abstract: Apple Silicon machines with 192GB or more of unified memory make it routine to place tensors with more than $2^{32}$ elements on a desktop GPU. We sh...
Silent Failures Beyond the 32-Bit Index Range: A Differential Characterization of Large-Tensor Matrix Multiplication in PyTorch's MPS Backend
Apple Silicon machines with large unified memory allow large tensors on a desktop GPU, but PyTorch’s Metal Performance Shaders (MPS) backend silently returns incorrect results for batched matrix multiplication when the output exceeds $2^{32}$ elements. The authors swept over dtypes, memory layouts, shapes, and batch sizes around $2^{31}$ and $2^{32}$ elements, finding that errors arise when operands are transposed views or when contiguous inputs exceed $2^{32}$ elements, with the backward pass also affected. They reproduced the issue on multiple machines and macOS versions, confirmed correct behavior on an NVIDIA A100, and demonstrated real‑world impact in a sentiment classifier, releasing a harness and guard to prevent such silent failures.