You can now create a model repo directly from the website, here.
You can also upload/share your models from the
using our CLI.
See more info in the
or read the instructions below:
First, login on your machine:
$ transformers-cli login # Log in using the same credentials as huggingface.co/join # Create a model repo from the CLI if needed $ transformers-cli repo create model_name
Clone your model locally:
$ git clone https://huggingface.co/username/model_name $ git lfs install
Then add, commit and push weights/tokenizer/config
# save files via `.save_pretrained()` $ git add . $ git commit -m "commit from $USER" $ git push
Your model will then be accessible through its identifier:
Anyone can load it from code:
tokenizer = AutoTokenizer.from_pretrained("username/model_name") model = AutoModel.from_pretrained("username/model_name")