ultralytics/docs/en/reference/utils/autobatch.md
Glenn Jocher 3637f509dd
ultralytics 8.3.231 New Zensical docs refresh (#22761)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
2025-11-23 19:53:50 +01:00

20 lines
856 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>