← All notes

How the Hugging Face Datasets cache works and where it lives

Short answer

Downloads go to the Hub cache (~/.cache/huggingface/hub); Arrow versions and processed results go to ~/.cache/huggingface/datasets. Move both by setting HF_HOME. Re-running the same map reuses cached results because each transform has a fingerprint. [S1][S2]

Gotchas

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Hugging Face (Datasets docs), The cache · Hugging Face, Apache-2.0 (huggingface/datasets docs); Hugging Face (Datasets docs), Cache management · Hugging Face, Apache-2.0 (huggingface/datasets docs).

Cite this

Permanent ID: iil:note:acpcgkdw

iinventedlight. 2026. "How the Hugging Face Datasets cache works and where it lives." iinventedlight Library, iil:note:acpcgkdw, version of 2026-11-04. https://iinventedlight.com/library/notes/hf-datasets-cache/. License: CC-BY-4.0.

@misc{iil_note_acpcgkdw,
  author = {{iinventedlight}},
  title = {{How the Hugging Face Datasets cache works and where it lives}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/hf-datasets-cache/},
  note = {Permanent ID iil:note:acpcgkdw. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/hf-datasets-cache.md.