token that you can just copy.
Directly push your model to the hub
Once you have an API token (either stored in the cache or copied and pasted in your notebook), you can directly push a
finetuned model you saved in save_directory by calling:
python
finetuned_model.push_to_hub("my-awesome-model")
If you have your API token not stored in the cache, you will need to pass it with use_auth_token=your_token.
This is also be the case for all the examples below, so we won't mention it again.
This will create a repository in your namespace name my-awesome-model, so anyone can now run:
```python
from transformers import AutoModel
model = AutoModel.from_pretrained("your_username/my-awesome-model")
```
Even better, you can combine this push to the hub with the call to save_pretrained:
python
finetuned_model.save_pretrained(save_directory, push_to_hub=True, repo_name="my-awesome-model")
