Skip to content

Commit 74b0dd3

Browse files
authored
Fix the environment variable for huggingface cache (#7200)
* Replace the environment variable for huggingface cache * Replace the environment variable for huggingface cache * Fix the environment variable
1 parent d72e9a4 commit 74b0dd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/cache.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ This guide focuses on the 🤗 Datasets cache and will show you how to:
1717

1818
## Cache directory
1919

20-
The default 🤗 Datasets cache directory is `~/.cache/huggingface/datasets`. Change the cache location by setting the shell environment variable, `HF_DATASETS_CACHE` to another directory:
20+
The default 🤗 Datasets cache directory is `~/.cache/huggingface/datasets`. Change the cache location by setting the shell environment variable, `HF_HOME` to another directory:
2121

2222
```
23-
$ export HF_DATASETS_CACHE="/path/to/another/directory/datasets"
23+
$ export HF_HOME="/path/to/another/directory/datasets"
2424
```
2525

2626
When you load a dataset, you also have the option to change where the data is cached. Change the `cache_dir` parameter to the path you want:

0 commit comments

Comments
 (0)