Glenn Jocher 96349afb2a
Update URLs to follow 301 redirects to final destinations (#24462)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
2026-05-12 01:47:17 +08:00

21 lines
855 B
Markdown

---
description: Discover how to automatically estimate the best YOLO batch size for optimal CUDA memory usage in PyTorch using Ultralytics' autobatch utility.
keywords: YOLO batch size, CUDA memory, PyTorch autobatch, Ultralytics, machine learning, optimal batch size, training batch size, YOLO model
---
# Reference for `ultralytics/utils/autobatch.py`
!!! success "Improvements"
This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/autobatch.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/autobatch.py). Have an improvement or example to add? Open a [Pull Request](https://docs.ultralytics.com/help/contributing) — thank you! 🙏
<br>
## ::: ultralytics.utils.autobatch.check_train_batch_size
<br><br><hr><br>
## ::: ultralytics.utils.autobatch.autobatch
<br><br>