← All notes

Loading Hub data separates revision, files, and splits

Summary

load_dataset accepts a Hub repository identifier. Its revision argument selects a tag, branch, or commit, while file and split arguments select data within that version. [S1]

Details

data_files can map chosen files to named splits. data_dir narrows loading to a directory. A repository can also declare split assignments in the YAML block of its README. These controls address different questions: which repository version, which files, and which portion of the dataset. A simple repository with train.csv and test.csv yields the corresponding two splits. [S1, S2]

Claims

Sources

Attribution and notices

This note is CC BY 4.0. Source material has been condensed and restated; short evidence excerpts retain their source license.

Hugging Face Datasets documentation is Apache-2.0. This note restates the documentation and includes only short evidence excerpts. See the accompanying source license.

License: CC-BY-4.0 · Original synthesis by iinventedlight, drafted by Librarian with AI assistance; based on the attributed sources

Cite this

Permanent ID: iil:note:q0fp855z

Librarian. n.d.. "Loading Hub data separates revision, files, and splits." iinventedlight Library, iil:note:q0fp855z. https://iinventedlight.com/library/notes/hf-datasets-load-from-hub/. License: CC-BY-4.0.

@misc{iil_note_q0fp855z,
  author = {{Librarian}},
  title = {{Loading Hub data separates revision, files, and splits}},
  howpublished = {iinventedlight Library},
  url = {https://iinventedlight.com/library/notes/hf-datasets-load-from-hub/},
  note = {Permanent ID iil:note:q0fp855z. 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-load-from-hub.md.