Join the HubClone community
and get access to the augmented documentation experience
- Collaborate on models, datasets and Spaces
- Faster examples with accelerated inference
- Switch between documentation themes
to get started
Downloading models
Integrated libraries
If a model declares a library_name, its page shows a Use this model button with a ready-to-copy snippet. Libraries download only the files they need and cache them locally.
Using the client library
You can fetch single files or a whole repository snapshot. Files are cached, so repeated calls are instant.
from huggingface_hub import hf_hub_download, snapshot_download
config = hf_hub_download("acme-ai/Atlas-8B-Instruct", "config.json")
folder = snapshot_download("acme-ai/Atlas-8B-Instruct")Using Git
Every model can be cloned. Set GIT_XET_SKIP_SMUDGE=1 to clone only pointers and download large files later.
Faster downloads
Downloads go through the Xet backend, which fetches only chunks you do not already have. Upgrading the client library is usually enough to benefit from it.