File size: 411 Bytes
5fa1a76
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
As a result, you can load a specific model version with the revision parameter:

model = AutoModel.from_pretrained(
     "julien-c/EsperBERTo-small", revision="v2.0.1"  # tag name, or branch name, or commit hash
 )

Files are also easily edited in a repository, and you can view the commit history as well as the difference:

Setup
Before sharing a model to the Hub, you will need your Hugging Face credentials.