Getting started with our git and git-lfs interface

If you need to create a model repo from the command line (skip if you created a repo from the website)

$pip install huggingface_hub
						#Or use transformers-cli if you have transformers
						$huggingface-cli login
						#Log in using the same credentials as huggingface.co/join
						#Create a model repo from the CLI if needed
						$huggingface-cli repo create model_name

Clone your model locally

#Make sure you have git-lfs installed
					$git lfs install
					$git clone https://huggingface.co/username/model_name

Then add, commit and push weights, tokenizer and config

#save files via `.save_pretrained()` or move them here
						$git add .
						$git commit -m "commit from $USER"
						$git push

Your model will then be accessible through its identifier: username/model_name

Anyone can load it from code:

tokenizer = AutoTokenizer.from_pretrained("username/model_name")
					model = AutoModel.from_pretrained("username/model_name")