Hugging Face Hub is an online repository and collaboration platform for sharing machine-learning models, datasets, and applications. In practice, it provides downloadable model weights and access-controlled model pages for local experimentation. section 10.1.1
A typical local workflow includes:
- Create an account and request access when a model has license restrictions. section 10.1.1
Loading Llama 2 locally
A Python workflow loads meta-llama/Llama-2-7b-chat-hf with LlamaTokenizer and LlamaForCausalLM, then generates an answer from tokenized prompt input.




