MPS Memory error

recently i was training a yolo model on mps but i got below error. im new to mac can some one help me please


RuntimeError: MPS backend out of memory (MPS allocated: 11.39 GB, other allocations: 6.69 GB, max allowed: 18.13 GB). Tried to allocate 300.00 MB on private pool. Use PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0 to disable upper limit for memory allocations (may cause system failure).

MacBook Pro 14″, macOS 14.0

Posted on Oct 20, 2023 3:10 AM

Reply
1 reply

Oct 21, 2023 8:23 AM in response to abhiram171

abhiram171 wrote:

recently i was training a yolo model on mps but i got below error. im new to mac can some one help me please

RuntimeError: MPS backend out of memory (MPS allocated: 11.39 GB, other allocations: 6.69 GB, max allowed: 18.13 GB). Tried to allocate 300.00 MB on private pool. Use PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0 to disable upper limit for memory allocations (may cause system failure).


MPS....

YOLO

https://github.com/ultralytics/ultralytics/issues/1090


https://pytorch.org/docs/stable/notes/mps.html


Accelerated PyTorch training on Mac - Metal


https://github.com/openai/whisper/pull/382



for your third party—if in doubt search the developers website or contact their: Support/Help/FAQ/Known issues/compatibility/updates/uninstaller


Contact a third-party vendor - Apple Support

Contact a third-party vendor - Apple Support



no insight—

To be proactive you can file a bug report /submit your Apple Feedback here: Product Feedback - Apple



ref: Developer Forums - Apple Community


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

MPS Memory error

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.