---
description: Explore detailed guides on Ultralytics callbacks, including pretrain, model save, train start/end, and more. Enhance your ML training workflows with ease.
keywords: Ultralytics, callbacks, pretrain, model save, train start, train end, validation, predict, export, training, machine learning
---

# Reference for `ultralytics/utils/callbacks/hub.py`

!!! success "Improvements"

    This page is sourced from [https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/hub.py](https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/callbacks/hub.py). Have an improvement or example to add? Open a [Pull Request](https://docs.ultralytics.com/help/contributing/) — thank you! 🙏

<br>

## ::: ultralytics.utils.callbacks.hub.on_pretrain_routine_start

<br><br><hr><br>

## ::: ultralytics.utils.callbacks.hub.on_pretrain_routine_end

<br><br><hr><br>

## ::: ultralytics.utils.callbacks.hub.on_fit_epoch_end

<br><br><hr><br>

## ::: ultralytics.utils.callbacks.hub.on_model_save

<br><br><hr><br>

## ::: ultralytics.utils.callbacks.hub.on_train_end

<br><br><hr><br>

## ::: ultralytics.utils.callbacks.hub.on_train_start

<br><br><hr><br>

## ::: ultralytics.utils.callbacks.hub.on_val_start

<br><br><hr><br>

## ::: ultralytics.utils.callbacks.hub.on_predict_start

<br><br><hr><br>

## ::: ultralytics.utils.callbacks.hub.on_export_start

<br><br>
