- Python 67.8%
- Shell 27%
- Gherkin 4%
- TypeScript 1.2%
|
|
||
|---|---|---|
| .opencode | ||
| .specify | ||
| docs/tutorials | ||
| project-management | ||
| specs | ||
| src/local_datasets | ||
| tests | ||
| .gitignore | ||
| AGENTS.md | ||
| beacon.md | ||
| CHANGELOG.md | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
local-datasets
What is this?
A self-hostable dataset repository service for ML engineers who need local mirrors and private dataset development while keeping familiar Hugging Face client workflows.
The service mirrors pinned public dataset revisions, refreshes those mirrors to
explicit upstream commits, and loads them through the official datasets
client. Private dataset repositories can be created and updated from local
files, then loaded with repository-scoped tokens, without requiring public-Hub
connectivity. An operator can also publish a selected pinned private revision
to a new public Hub dataset with an explicit local CLI command.
Install
uv sync --all-groups
uv run local-datasets --help
To mirror a public dataset and start the local endpoint:
uv run local-datasets mirror lhoestq/demo1 --revision 87ecf163bedca9d80598b528940a9c4f99e14c11
uv run local-datasets serve --data-dir ./.local-datasets --host 127.0.0.1 --port 8765
Quickstart
Quickstarts:
- Mirror and load — pinned public import and offline client check.
- Private dataset — local creation and authorized client loading.
- Private revisions — local updates and pinned historical reads.
- Mirror refresh — explicit upstream refreshes and retained public revisions.
- Private release — publish a selected private revision to a verified public destination.
For an end-to-end walk-through from local CSV files to a Git remote and a Python
datasets workflow, see the
local-dataset-to-Git tutorial.
Point the official client at http://127.0.0.1:8765 with HF_ENDPOINT and
disable the optional public download-count ping with HF_UPDATE_DOWNLOAD_COUNTS=0.
Project notes
- Hugging Face Datasets and Hub research
- Project roadmap
- Compatibility is intentionally bounded; see ADR-001.