Skip to content

Read (and write) from HF Storage Buckets: load raw data, process and save to Dataset Repos - #8064

Merged
lhoestq merged 14 commits into
mainfrom
buckets
Mar 16, 2026
Merged

Read (and write) from HF Storage Buckets: load raw data, process and save to Dataset Repos#8064
lhoestq merged 14 commits into
mainfrom
buckets

Conversation

@lhoestq

@lhoestq lhoestq commented Mar 12, 2026

Copy link
Copy Markdown
Member

TODO:

  • load_dataset("csv", data_files=["hf://buckets/..."])
  • load_dataset("buckets/...")
  • Dataset.to_csv("hf://buckets/..."), to_json, to_parquet, etc.
  • DatasetDict.push_to_hub("buckets/...")
  • Dataset.push_to_hub("buckets/...")
  • DatasetDict.push_to_hub("buckets/...")
  • IterableDataset.push_to_hub("buckets/...")
  • IterableDatasetDict.push_to_hub("buckets/...")
  • tests
  • docs

e.g.

raw data in bucket to dataset repo

from datasets import load_dataset

ds = load_dataset("json", data_files=["hf://buckets/..."])
ds = ds.map(...).filter(...)
ds.push_to_hub("username/dataset_name")

(also taking the opportunity to factorize the code a bit)

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@lhoestq lhoestq changed the title Read and write to HF Storage Buckets with load_dataset() and push_to_hub() Read (and write) from HF Storage Buckets, allowing raw data processing and saving to Dataset Repos Mar 13, 2026
@lhoestq lhoestq changed the title Read (and write) from HF Storage Buckets, allowing raw data processing and saving to Dataset Repos Read (and write) from HF Storage Buckets: load raw data, processing and save to Dataset Repos Mar 13, 2026
@lhoestq lhoestq changed the title Read (and write) from HF Storage Buckets: load raw data, processing and save to Dataset Repos Read (and write) from HF Storage Buckets: load raw data, process and save to Dataset Repos Mar 13, 2026
@lhoestq
lhoestq marked this pull request as ready for review March 16, 2026 14:07
@lhoestq
lhoestq merged commit 82ca4d3 into main Mar 16, 2026
14 of 15 checks passed
@lhoestq
lhoestq deleted the buckets branch March 16, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants