Skip to content

Commit 4be92a9

Browse files
Add cli instructions to download datasets (#1738)
* add cli instructions to download datasets * Update docs/hub/datasets-downloading.md * Sorry about that! --------- Co-authored-by: Lucain <[email protected]> Co-authored-by: Lucain <[email protected]>
1 parent 010edb4 commit 4be92a9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/hub/datasets-downloading.md

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

1717
## Using the Hugging Face Client Library
1818

19-
You can use the [`huggingface_hub`](/docs/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 CSV dataset with a few lines using Pandas.
19+
You can use the [`huggingface_hub`](/docs/huggingface_hub) library to create, delete, update and retrieve information from repos. For example, to download the `HuggingFaceH4/ultrachat_200k` dataset from the command line, run
2020

21+
```bash
22+
huggingface-cli download HuggingFaceH4/ultrachat_200k --repo-type dataset
23+
```
24+
25+
See the [huggingface-cli download documentation](https://huggingface.co/docs/huggingface_hub/en/guides/cli#download-a-dataset-or-a-space) for more information.
26+
27+
You can also integrate this into your own library! For example, you can quickly load a CSV dataset with a few lines using Pandas.
2128
```py
2229
from huggingface_hub import hf_hub_download
2330
import pandas as pd

0 commit comments

Comments
 (0)