MPS backend out of memory on a Mac: what the numbers mean and how to set the watermark
When a PyTorch job runs out of memory on a Mac, the error ends with a piece of advice: RuntimeError: MPS backend out of memory (MPS allocated: 18.50 GiB, other allocations: 448.00 KiB, max allowed: 18.72 GiB). Tried to allocate 512.00 MiB on shared pool. Use PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0 to…
Read the full story at DEV Community — Machine Learning ↗
Timeline · 1 report
- 2026-10-14 00:01 · DEV Community — Machine Learning
MPS backend out of memory on a Mac: what the numbers mean and how to set the watermark