Skip to content

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

Draft
lhoestq wants to merge 10 commits intomainfrom
buckets
Draft

Read (and write) from HF Storage Buckets: load raw data, process and save to Dataset Repos#8064
lhoestq wants to merge 10 commits intomainfrom
buckets

Conversation

@lhoestq
Copy link
Member

@lhoestq lhoestq commented Mar 12, 2026

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

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
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