ai ml10 min read

MPS in PyTorch 2.15

  • PyTorch
  • Metal
  • MPS
  • Hugging Face Hub
  • ComfyUI
  • Wan2.2
  • Qwen-Image-2.1

AI Summary

PyTorch 2.15 introduces major performance upgrades for Apple Silicon Macs using the MPS backend, including native FP8 support, significantly faster LLM and Mixture-of-Experts (MoE) decoding paths via dedicated Metal kernels, and vastly reduced memory footprints for video generation workloads.

Key Takeaways

  • FP8 tensor support (torch.float8_e4m3fn) halves storage space compared to BF16 and enables scaled matrix multiplication on the GPU.
  • Mixture-of-Experts (MoE) models decode 5 to 6.5 times faster using native grouped matmul and specialized Metal decoding paths.
  • Video VAE decoding memory usage drops dramatically from 270 GiB down to 8 GiB due to optimized Metal padding operations.

Why it matters

For machine learning engineers running inference and training locally on Apple hardware, PyTorch 2.15 removes critical performance bottlenecks, memory growth issues, and numerical bugs, enabling dramatically faster token throughput and memory-efficient video generation.

Conversation0

What would you add from your experience?

Checking your session…

Every good conversation starts with one perspective.