trainer.push_to_hub()
``
</pt>
<tf>
Share a model to the Hub with [PushToHubCallback]. In the [PushToHubCallback`] function, add:

An output directory for your model.
A tokenizer.
The hub_model_id, which is your Hub username and model name.

from transformers import PushToHubCallback
push_to_hub_callback = PushToHubCallback(
     output_dir="./your_model_save_path", tokenizer=tokenizer, hub_model_id="your-username/my-awesome-model"
 )