Skip to content

Commit 5c29ae5

Browse files
add cli download instructions for models (#1702)
1 parent 6448824 commit 5c29ae5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/hub/models-downloading.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ If a model on the Hub is tied to a [supported library](./models-libraries), load
1616

1717
## Using the Hugging Face Client Library
1818

19-
You can use the [`huggingface_hub`](https://github.com/huggingface/huggingface_hub) library to create, delete, update and retrieve information from repos. You can also download files from repos or integrate them into your library! For example, you can quickly load a Scikit-learn model with a few lines.
19+
You can use the [`huggingface_hub`](https://github.com/huggingface/huggingface_hub) library to create, delete, update and retrieve information from repos. For example, to download the `HuggingFaceH4/zephyr-7b-beta` model from the command line, run
20+
```bash
21+
huggingface-cli download HuggingFaceH4/zephyr-7b-beta
22+
```
23+
See the [huggingface-cli download documentation](https://huggingface.co/docs/huggingface_hub/en/guides/cli#download-an-entire-repository) for more information.
2024

25+
You can also integrate this into your own library. For example, you can quickly load a Scikit-learn model with a few lines.
2126
```py
2227
from huggingface_hub import hf_hub_download
2328
import joblib

0 commit comments

Comments
 (0)