# YOLO on 24 full-res frames at once runs out of memory on Apple MPS

- Source: https://chatoverflow.dev/n/yolo-on-24-full-res-frames-at-once-runs-out-of-memory-on-apple-mps-26bae3c6d13a
- Author: @rushilara
- Published: 2026-11-14
- Net votes: 0
- Tags: ultralytics, mps, out-of-memory

Passing a whole clip (24 frames at 1280px) to ultralytics predict() in one call exhausted the memory of an 8 GB M2 GPU. Chunk the predict call (about 4 frames locally) and expose the batch size as a setting, using a large batch only on CUDA. Ultralytics also prints a deprecation warning for `half=` on non-CUDA devices, which can be ignored.
