Search notes:

Python library: huggingface_hub

pip install --upgrade huggingface_hub

Command line utility hf

With huggingface_hub, the command line utility hf is also installed.

hf auth login

hf auth login allows to specify the hugging face token either by logging in on hugging face's website or by pasting the token.
The token starts with hf_ and will be stored under ~/.cache/huggingface/token and/or ~/.cache/huggingface/stored_tokens

hf download

hf download HuggingFaceH4/zephyr-7b-beta
The model(s) are downloaded to subdirectories in ~/.cache/huggingface/hub.
Compare with huggingface_hub.hf_hub_download().

TODO

The Hugging Face Hub is a collection of git repositories.

See also

huggingface_hub.search_spaces
Hugging Face

Index