---
name: Datasets
slug: datasets
type: github
source_url: https://github.com/huggingface/datasets
organization: Hugging Face
organization_slug: hugging-face
total_releases: 105
latest_version: 5.2.0
latest_date: 2026-11-09
last_updated: 2026-11-16
tracking_since: 2021-04-30
canonical: https://releases.sh/hugging-face/datasets
organization_url: https://releases.sh/hugging-face
---

<Summary type="rolling" window-days="90" release-count="9">
The library shifted toward flexible data handling and cloud-native workflows. It added support for Hugging Face Storage Buckets, letting developers load raw data directly from cloud storage, process it, and publish results—fixing multiprocessed operations on macOS in the process. Concurrently, the `Json()` type shipped to handle mixed-type fields that Arrow normally rejects, essential for datasets with arbitrary JSON structures like tool-calling examples. Support for Lance format and rich media types (Image, Video, Audio) expanded the ecosystem for specialized data formats, with `push_to_hub()` graduating to handle videos alongside structured data.
</Summary>

<Summary type="monthly" period="March 2026" release-count="6">
Expanded data loading flexibility and fixed regressions across the 4.7–4.8 line. The major addition was HF Storage Bucket support, letting developers load raw data directly from cloud storage, process it with map/filter operations, and push the result to dataset repos—while also fixing a macOS segfault in multiprocessed push_to_hub. The `Json()` type arrived to handle mixed-type fields in datasets like tool calling use cases, complemented by quick fixes to JSON parsing, distributed node splitting, and Arrow iteration behavior.
</Summary>

<Release version="5.2.0" date="November 9, 2026" published="2026-11-09T21:40:43.000Z" url="https://github.com/huggingface/datasets/releases/tag/5.2.0">
## Dataset Features
* Fast streaming decode for image/audio/video/etc. folders datasets by @lhoestq in https://github.com/huggingface/datasets/pull/8791
* feat(mesh): accept .gltf in the 3D Mesh feature and the meshfolder builder by @li-lizhe in https://github.com/huggingface/datasets/pull/8958

## Other improvements and bug fixes
* Bump doc-builder workflow pin by @paulinebm in https://github.com/huggingface/datasets/pull/8753
* Make Features.__setitem__/__delitem__ update only the touched column by @novain-shibu in https://github.com/huggingface/datasets/pull/8777
* fix(json): defensively recover invalid Arrow tables in JSON loader (#5531) by @FinalSunFlower in https://github.com/huggingface/datasets/pull/8521
* Close the xopen handle in xpandas_read_csv by @chrikrah in https://github.com/huggingface/datasets/pull/8786
* bump fsspec and remove aiohttp dep by @lhoestq in https://github.com/huggingface/datasets/pull/8825
* Fix indices buffer loading in Dataset.from_buffer by @jinchuntan in https://github.com/huggingface/datasets/pull/8840
* Fix push_to_hub dropping rows when num_proc exceeds num_shards by @behroozazarkhalili in https://github.com/huggingface/datasets/pull/8795
* Preserve active iterators when reconfiguring threaded decoding by @Linxiushen in https://github.com/huggingface/datasets/pull/8855
* Reject duplicate WebDataset fields instead of silently overwriting data by @pavanmudumba in https://github.com/huggingface/datasets/pull/8856
* Fix concatenate_datasets giving every rank all the data after split_dataset_by_node by @hzmsh in https://github.com/huggingface/datasets/pull/8800
* Unescape doubled quotes in GenBank qualifier values by @chrikrah in https://github.com/huggingface/datasets/pull/8869
* Fix concatenation cache fingerprints for different axes by @gorkadabo1 in https://github.com/huggingface/datasets/pull/8865
* Bump doc-builder to get the docs machine-translated by @mishig25 in https://github.com/huggingface/datasets/pull/8905
* Fix batch(by_column=) default accumulation causing full downloads by @lhoestq in https://github.com/huggingface/datasets/pull/8960
* Fix batched map on a dataset with an index when the function returns a table by @ViderStar in https://github.com/huggingface/datasets/pull/8896
* more distributed docs (hsdp) by @lhoestq in https://github.com/huggingface/datasets/pull/8957
* docs: clarify download modes and transform caching by @original4422 in https://github.com/huggingface/datasets/pull/8804
* Fix Dataset.take raising IndexError when taking more elements than available by @vidigoat in https://github.com/huggingface/datasets/pull/8312
* Remove loading of pickled pandas daraframes (CVE-2026-57845) by @SaiTeja-Erukude in https://github.com/huggingface/datasets/pull/8879
* Fix save_to_disk failing when a batch holds more than 2GB of image or audio files by @hzmsh in https://github.com/huggingface/datasets/pull/8828
* Fix mixed-type JSON fields with slashes in their names by @its-amann in https://github.com/huggingface/datasets/pull/8976
* Cast large_string and string_view storage in ClassLabel by @bhaskargurram-ai in https://github.com/huggingface/datasets/pull/8688
* Preserve headers and document structure when exporting empty datasets by @salma2vec in https://github.com/huggingface/datasets/pull/8811

## New Contributors
* @novain-shibu made their first contribution in https://github.com/huggingface/datasets/pull/8777
* @FinalSunFlower made their first contribution in https://github.com/huggingface/datasets/pull/8521
* @chrikrah made their first contribution in https://github.com/huggingface/datasets/pull/8786
* @jinchuntan made their first contribution in https://github.com/huggingface/datasets/pull/8840
* @pavanmudumba made their first contribution in https://github.com/huggingface/datasets/pull/8856
* @hzmsh made their first contribution in https://github.com/huggingface/datasets/pull/8800
* @gorkadabo1 made their first contribution in https://github.com/huggingface/datasets/pull/8865
* @li-lizhe made their first contribution in https://github.com/huggingface/datasets/pull/8958
* @ViderStar made their first contribution in https://github.com/huggingface/datasets/pull/8896
* @original4422 made their first contribution in https://github.com/huggingface/datasets/pull/8804
* @vidigoat made their first contribution in https://github.com/huggingface/datasets/pull/8312
* @SaiTeja-Erukude made their first contribution in https://github.com/huggingface/datasets/pull/8879
* @its-amann made their first contribution in https://github.com/huggingface/datasets/pull/8976
* @bhaskargurram-ai made their first contribution in https://github.com/huggingface/datasets/pull/8688
* @salma2vec made their first contribution in https://github.com/huggingface/datasets/pull/8811

**Full Changelog**: https://github.com/huggingface/datasets/compare/5.1.0...5.2.0
</Release>

<Release version="5.1.0" date="October 5, 2026" published="2026-10-05T15:39:37.000Z" url="https://github.com/huggingface/datasets/releases/tag/5.1.0">
## New Formats
* **Harbor** ⚓: RL environments:
  * Add harbor benchmarks by @lhoestq in https://github.com/huggingface/datasets/pull/8729
* **Vortex** 🌀: High performance columnar data
  * Add support for datasets backed by vortex file format by @robert3005 in https://github.com/huggingface/datasets/pull/8502
* **Bio formats** 🧬: store biological data like DNA sequences, protein chains, and 3D molecular structures
  * feat(fasta): add lightweight FASTA file format support by @behroozazarkhalili in https://github.com/huggingface/datasets/pull/7923
  * Decode BioSequence and BioStructure records with universal newlines by @behroozazarkhalili in https://github.com/huggingface/datasets/pull/8600
  * Add lightweight FASTQ file format support by @behroozazarkhalili in https://github.com/huggingface/datasets/pull/7924
  * feat: Add GenBank file format support for biological sequence data by @behroozazarkhalili in https://github.com/huggingface/datasets/pull/7951
  * Add lightweight PDB (Protein Data Bank) file support by @behroozazarkhalili in https://github.com/huggingface/datasets/pull/7926
  * feat: Add mmCIF file support for macromolecular structures by @behroozazarkhalili in https://github.com/huggingface/datasets/pull/7925
  * feat(features): add BioSequence and BioStructure decodable features by @behroozazarkhalili in https://github.com/huggingface/datasets/pull/8542

## Dataset Features
* Add a strategy argument to split_dataset_by_node for iterable datasets by @behroozazarkhalili in https://github.com/huggingface/datasets/pull/8565
* Allow IterableDataset.push_to_hub num_shards above dataset.num_shards by @behroozazarkhalili in https://github.com/huggingface/datasets/pull/8716

## Other improvements and bug fixes
* Fix fixed size binary by @Alex-PLACET in https://github.com/huggingface/datasets/pull/8281
* Fix offline simulation with huggingface_hub 1.27 by @hanouticelina in https://github.com/huggingface/datasets/pull/8414
* Fix info from data_dir/data_files or malformed yaml by @lhoestq in https://github.com/huggingface/datasets/pull/8462
* Forward iter_arrow, is_typed and features from RepeatExamplesIterable by @ebarkhordar in https://github.com/huggingface/datasets/pull/8395
* Fix archive path check allowing sibling-directory escapes by @icn5381 in https://github.com/huggingface/datasets/pull/8490
* disallow hdf5 external links by @lhoestq in https://github.com/huggingface/datasets/pull/8523
* Fix `deepcopy` bottleneck in state_dict() by @yuxin00j in https://github.com/huggingface/datasets/pull/8387
* Optimize PyArrow block shuffling with dynamic rebatched chunk interleaving by @yuxin00j in https://github.com/huggingface/datasets/pull/8407
* Fix Pdf.decode_example raising TypeError on remote non-Hub paths by @behroozazarkhalili in https://github.com/huggingface/datasets/pull/8566
* Fix dead PDF processing link in README by @aarushkandukoori in https://github.com/huggingface/datasets/pull/8512
* Forward max_buffer_input_shards from IterableDatasetDict.shuffle by @vineethsaivs in https://github.com/huggingface/datasets/pull/8594
* Preserve storage options across URL hops by @tandede in https://github.com/huggingface/datasets/pull/8496
* Better error when a column written as null gets values in a later batch by @ebarkhordar in https://github.com/huggingface/datasets/pull/8591
* Advance the user-supplied generator in Dataset.shuffle even on cache hits by @BenYang12 in https://github.com/huggingface/datasets/pull/8589
* Bump fsspec upper bound to 2026.7.0 by @roshanjrajan in https://github.com/huggingface/datasets/pull/8561
* Shard the sources when skipping a distributed IterableDataset by @ebarkhordar in https://github.com/huggingface/datasets/pull/8569
* Fix infinite repetition of empty iterable datasets by @Jokasa7 in https://github.com/huggingface/datasets/pull/8577
* Reject a non-callable generator in GeneratorConfig by @LeSingh1 in https://github.com/huggingface/datasets/pull/8585
* Fix async map checkpoint accounting across repeated resumes by @SBrouck in https://github.com/huggingface/datasets/pull/8575
* [httpx migration] Import httpx from huggingface_hub, require huggingface_hub>=1.31.0 by @Wauplin in https://github.com/huggingface/datasets/pull/8598
* chore: enable Dependabot weekly GitHub Actions bumps by @hf-dependantbot-rollout[bot] in https://github.com/huggingface/datasets/pull/8221
* [docs] Fix legacy hf CLI references (datasets) by @Wauplin in https://github.com/huggingface/datasets/pull/8657
* Scope GITHUB_TOKEN permissions per job by @hf-security-analysis[bot] in https://github.com/huggingface/datasets/pull/8672
* Pin GitHub Actions to commit SHAs by @hf-security-analysis[bot] in https://github.com/huggingface/datasets/pull/8673
* Fix push_to_hub for IterableDataset with unknown features by @davanstrien in https://github.com/huggingface/datasets/pull/8658
* Vectorize interleave_datasets index generation (probabilities + first/all_exhausted) by @saforem2 in https://github.com/huggingface/datasets/pull/8318
* Fix torchcodec docs links by @pratikgx in https://github.com/huggingface/datasets/pull/8700
* [docs] Fix HF_HOME example in cache guide by @ZainnQureshii in https://github.com/huggingface/datasets/pull/8694
* Fix broken internal anchor link in share.mdx by @aarushkandukoori in https://github.com/huggingface/datasets/pull/8666
* Keep Json fields inside a struct from being double-encoded when some struct rows are null by @breken-ai in https://github.com/huggingface/datasets/pull/8712
* Don't import aiohttp when importing datasets by @kuldeeepy in https://github.com/huggingface/datasets/pull/8680
* Fix inverted span for minus-strand multi-exon GenBank locations by @Linxiushen in https://github.com/huggingface/datasets/pull/8677
* Key parquet column options by leaf path so nested columns get compressed by @jayzuccarelli in https://github.com/huggingface/datasets/pull/8674
* Implement __arrow_array__ on PandasArrayExtensionArray so ArrayXD columns can go back from pandas to Arrow by @JoeyTan21 in https://github.com/huggingface/datasets/pull/8701
* Batch in arrow when the source is arrow-backed, and let `_consolidate` type numpy scalars by @Yonghui-Lee in https://github.com/huggingface/datasets/pull/8665
* Fix Json.cast_storage double-encoding large_string and string_view columns by @SulimanAbdulrazzaq in https://github.com/huggingface/datasets/pull/8682
* Fix audio array handling in preprocess_function by @causius0 in https://github.com/huggingface/datasets/pull/8731
* Decode remote NIfTI files through the bytes path by @KennyMcSimpson in https://github.com/huggingface/datasets/pull/8737
* Keep take/skip counts when there are more DataLoader workers than shards by @yupengtang in https://github.com/huggingface/datasets/pull/8695
* Fix epoch iteration after skipping or taking a streaming subset by @galleonli in https://github.com/huggingface/datasets/pull/8707
* Fix IterableDataset.filter with arrow, pandas and polars formats by @felipebridge in https://github.com/huggingface/datasets/pull/8725
* Bump huggingface_hub upper bound to <3.0 (datasets) by @Wauplin in https://github.com/huggingface/datasets/pull/8678
* Preserve source shards when shuffling iterable datasets by @yuchenwang3 in https://github.com/huggingface/datasets/pull/8670
* Speed up JSON export of indexed datasets by @aprylewu in https://github.com/huggingface/datasets/pull/8662
* Fix repeated Arrow rebatch checkpoint restoration by @tryu-ai in https://github.com/huggingface/datasets/pull/8727
* fix default iterable dataset dict and polars exports by @cwklurks in https://github.com/huggingface/datasets/pull/8632
* harbor: fix paths on windows by @lhoestq in https://github.com/huggingface/datasets/pull/8739

## New Contributors
* @Alex-PLACET made their first contribution in https://github.com/huggingface/datasets/pull/8281
* @robert3005 made their first contribution in https://github.com/huggingface/datasets/pull/8502
* @icn5381 made their first contribution in https://github.com/huggingface/datasets/pull/8490
* @yuxin00j made their first contribution in https://github.com/huggingface/datasets/pull/8387
* @behroozazarkhalili made their first contribution in https://github.com/huggingface/datasets/pull/8565
* @aarushkandukoori made their first contribution in https://github.com/huggingface/datasets/pull/8512
* @tandede made their first contribution in https://github.com/huggingface/datasets/pull/8496
* @BenYang12 made their first contribution in https://github.com/huggingface/datasets/pull/8589
* @roshanjrajan made their first contribution in https://github.com/huggingface/datasets/pull/8561
* @Jokasa7 made their first contribution in https://github.com/huggingface/datasets/pull/8577
* @LeSingh1 made their first contribution in https://github.com/huggingface/datasets/pull/8585
* @SBrouck made their first contribution in https://github.com/huggingface/datasets/pull/8575
* @hf-dependantbot-rollout[bot] made their first contribution in https://github.com/huggingface/datasets/pull/8221
* @saforem2 made their first contribution in https://github.com/huggingface/datasets/pull/8318
* @pratikgx made their first contribution in https://github.com/huggingface/datasets/pull/8700
* @ZainnQureshii made their first contribution in https://github.com/huggingface/datasets/pull/8694
* @breken-ai made their first contribution in https://github.com/huggingface/datasets/pull/8712
* @kuldeeepy made their first contribution in https://github.com/huggingface/datasets/pull/8680
* @Linxiushen made their first contribution in https://github.com/huggingface/datasets/pull/8677
* @JoeyTan21 made their first contribution in https://github.com/huggingface/datasets/pull/8701
* @Yonghui-Lee made their first contribution in https://github.com/huggingface/datasets/pull/8665
* @SulimanAbdulrazzaq made their first contribution in https://github.com/huggingface/datasets/pull/8682
* @causius0 made their first contribution in https://github.com/huggingface/datasets/pull/8731
* @KennyMcSimpson made their first contribution in https://github.com/huggingface/datasets/pull/8737
* @yupengtang made their first contribution in https://github.com/huggingface/datasets/pull/8695
* @galleonli made their first contribution in https://github.com/huggingface/datasets/pull/8707
* @felipebridge made their first contribution in https://github.com/huggingface/datasets/pull/8725
* @yuchenwang3 made their first contribution in https://github.com/huggingface/datasets/pull/8670
* @aprylewu made their first contribution in https://github.com/huggingface/datasets/pull/8662
* @tryu-ai made their first contribution in https://github.com/huggingface/datasets/pull/8727
* @cwklurks made their first contribution in https://github.com/huggingface/datasets/pull/8632

**Full Changelog**: https://github.com/huggingface/datasets/compare/5.0.1...5.1.0
</Release>

<Release version="5.0.1" date="July 28, 2026" published="2026-07-28T11:11:35.000Z" url="https://github.com/huggingface/datasets/releases/tag/5.0.1">
## Bug fixes
* Fix version string in __init__.py by @qgallouedec in https://github.com/huggingface/datasets/pull/8244
* fix conda build by @lhoestq in https://github.com/huggingface/datasets/pull/8250
* Fix JSON loader schema inference for files starting with a UTF-8 BOM (#8241) by @archievi in https://github.com/huggingface/datasets/pull/8243
* Support hermes traces by @lhoestq in https://github.com/huggingface/datasets/pull/8255
* Fix batch(by_column=...) crashing after shard/shuffle/split by @pkooij in https://github.com/huggingface/datasets/pull/8259
* fix traces streaming by @lhoestq in https://github.com/huggingface/datasets/pull/8277
* support droid agent traces by @cfahlgren1 in https://github.com/huggingface/datasets/pull/8263
* Fix CI: commit operation equality (hfh 1.20.0) and pytest parametrize collection error by @Wauplin in https://github.com/huggingface/datasets/pull/8283
* Fix lance auth by @lhoestq in https://github.com/huggingface/datasets/pull/8301
* Fix symlink-following arbitrary file write in archive extraction by @AAtomical in https://github.com/huggingface/datasets/pull/8303
* Bug Fix: Resuming Twice Resets the Dataloader by @francesco-bertolotti in https://github.com/huggingface/datasets/pull/8295
* Bump fsspec and simpler wds compr by @lhoestq in https://github.com/huggingface/datasets/pull/8337
* fix: validate Arrow IPC record batches by @XciD in https://github.com/huggingface/datasets/pull/8350
* Make the dataset fingerprint independent of Arrow chunking by @SuryanshSS1011 in https://github.com/huggingface/datasets/pull/8339
* Fix casting a nullable LargeList to a different inner type by @vineethsaivs in https://github.com/huggingface/datasets/pull/8346
* docs: replace AutoFeatureExtractor with AutoImageProcessor in image preprocessing docs by @gautamkishore in https://github.com/huggingface/datasets/pull/8326
* Fix column drop in Arrow path of axis=1 concatenation by @ebarkhordar in https://github.com/huggingface/datasets/pull/8342
* Raise on length mismatch in batched IterableDataset.map by @sohumt123 in https://github.com/huggingface/datasets/pull/8332
* Fix require_storage_embed recursing into require_storage_cast by @vineethsaivs in https://github.com/huggingface/datasets/pull/8349
* Fix path traversal via metadata file_name in folder-based builders by @Kaif10 in https://github.com/huggingface/datasets/pull/8325
* Support batched=True in Dataset.to_dict by @vineethsaivs in https://github.com/huggingface/datasets/pull/8333
* Fix hdf5 external files by @lhoestq in https://github.com/huggingface/datasets/pull/8355
* remove bad require_storage test by @lhoestq in https://github.com/huggingface/datasets/pull/8357
* ensure fiels are in repo by @lhoestq in https://github.com/huggingface/datasets/pull/8356
* Keep flat numeric columns with nulls numeric in numpy format by @ebarkhordar in https://github.com/huggingface/datasets/pull/8352
* Fix bucket dataset card handling and push metadata accounting by @pjh4993 in https://github.com/huggingface/datasets/pull/8354
* Fix CSV loader dropping on_bad_lines/encoding_errors on pandas 2.0-2.2 by @ebarkhordar in https://github.com/huggingface/datasets/pull/8358
* Keep integers on the python read path for fixed-shape ArrayXD columns with nulls by @ebarkhordar in https://github.com/huggingface/datasets/pull/8363
* Rebatch arrow source before formatting in IterableDataset.filter to fix resume data loss by @ebarkhordar in https://github.com/huggingface/datasets/pull/8360
* Decode Json() columns in Dataset.to_pandas() by @ebarkhordar in https://github.com/huggingface/datasets/pull/8344
* fix buckets on windows by @lhoestq in https://github.com/huggingface/datasets/pull/8369
* Fix DatasetDict.push_to_hub leaving removed splits in the dataset card by @pjh4993 in https://github.com/huggingface/datasets/pull/8367
* Preserve nullable integer columns in to_json/to_csv/to_sql by @ebarkhordar in https://github.com/huggingface/datasets/pull/8366

## Docs
* docs: fix duplicate "to" in IterableDataset push-to-hub example by @DaoyuanLi2816 in https://github.com/huggingface/datasets/pull/8252
* Clarify dataset creation vs loading workflows in create_dataset tutorial by @zanvari in https://github.com/huggingface/datasets/pull/8235

## New Contributors
* @DaoyuanLi2816 made their first contribution in https://github.com/huggingface/datasets/pull/8252
* @zanvari made their first contribution in https://github.com/huggingface/datasets/pull/8235
* @archievi made their first contribution in https://github.com/huggingface/datasets/pull/8243
* @pkooij made their first contribution in https://github.com/huggingface/datasets/pull/8259
* @AAtomical made their first contribution in https://github.com/huggingface/datasets/pull/8303
* @francesco-bertolotti made their first contribution in https://github.com/huggingface/datasets/pull/8295
* @XciD made their first contribution in https://github.com/huggingface/datasets/pull/8350
* @SuryanshSS1011 made their first contribution in https://github.com/huggingface/datasets/pull/8339
* @vineethsaivs made their first contribution in https://github.com/huggingface/datasets/pull/8346
* @gautamkishore made their first contribution in https://github.com/huggingface/datasets/pull/8326
* @ebarkhordar made their first contribution in https://github.com/huggingface/datasets/pull/8342
* @sohumt123 made their first contribution in https://github.com/huggingface/datasets/pull/8332
* @Kaif10 made their first contribution in https://github.com/huggingface/datasets/pull/8325
* @pjh4993 made their first contribution in https://github.com/huggingface/datasets/pull/8354

**Full Changelog**: https://github.com/huggingface/datasets/compare/5.0.0...5.0.1
</Release>

<Release version="5.0.0" date="June 5, 2026" published="2026-06-05T13:29:36.000Z" url="https://github.com/huggingface/datasets/releases/tag/5.0.0">
## Datasets Features

### Agent traces

* Parse Agent traces messages for SFT using `teich` by @lhoestq in https://github.com/huggingface/datasets/pull/8232
  * Agent traces from claude_code/pi/codex and others can now be loaded with load_dataset
  * Using the `teich` library (new optional dependency), traces are parsed to `messages` to enable training on traces using e.g. `trl`
  * Load the data:

  ```python
  >>> from datasets import load_dataset
  >>> ds = load_dataset("lhoestq/agent-traces-example", split="train")
  >>> ds[0]["messages"]
  [{'role': 'user', 'content': 'Download a random dataset from Hugging Face, use DuckDB to inspect it, and come back with a short report about it. Be concise and include: dataset name, what files/format you found, row count or rough size if you can determine it,...'
   ...]
  ```
  * Train on agent traces:

  ```bash
  trl sft --dataset-name lhoestq/agent-traces-example ...
  ```
  * find all the Agent traces datasets on HF here: https://huggingface.co/datasets?format=format:agent-traces&sort=trending

### Next-level shuffling in streaming mode

* Use multiple input shards for shuffle buffer by @lhoestq in https://github.com/huggingface/datasets/pull/8194

    ```python
    ds = load_dataset(..., streaming=True)
    ds = ds.shuffle(seed=42)
    # or configure local buffer shuffling manually, default is:
    ds = ds.shuffle(seed=42, buffer_size=1000, max_buffer_input_shards=10)
    ```

    before👎:
    <img width="1061" height="529" alt="image" src="https://github.com/user-attachments/assets/dd85a11b-72fc-474c-8faa-33eda779a4fb" />

    after✨:
    <img width="1057" height="523" alt="image" src="https://github.com/user-attachments/assets/77acc8d3-61d4-4e57-bc87-43fcd3c2e8f3" />

    toy example comparison

    ```python
    from datasets import IterableDataset

    ds = IterableDataset.from_dict({"i": range(123_456_789)}, num_shards=1024)
    ds = ds.shuffle(seed=42)

    print("Cold start ids:")
    print(list(ds.take(10)["i"]))
    print("Nominal regime ids:")
    print(list(ds.skip(10_000).take(10)["i"]))
    ```

    before👎:

    ```
    Cold start ids:
    [6148853, 6149537, 6149418, 6149202, 6149197, 6149622, 6148849, 6149461, 6148965, 6148858]
    Nominal regime ids:
    [6149537, 6149418, 6149202, 6149197, 6149622, 6148849, 6149461, 6148965, 6148858, 6149290]
    ```

    after✨:

    ```
    Cold start ids:
    [7836668, 9283505, 95847927, 482299, 9283471, 482341, 112003312, 59920157, 43764666, 95847871]
    Nominal regime ids:
    [9283505, 95847927, 482299, 9283471, 482341, 112003312, 59920157, 43764666, 95847871, 16758448]
    ```

    Note: `ds.state_dict()` and `ds.load_state_dict()` are still supported for this improved shuffling :) enabling dataset checkpointing

    Note 2: it uses threads to fetch the first examples in parallel from the input shards

    Note 3: This is a BREAKING CHANGE: the default shuffling mechanism now uses multiple input shards. You can get the old mechanism by passing `max_buffer_input_shards=1` to `IterableDataset.shuffle()`

### New batching features for robotics datasets

* Add batch(by_column=...) by @lhoestq in https://github.com/huggingface/datasets/pull/8172

    ```python
    from datasets import Dataset

    ds = Dataset.from_dict({"episode": [0] * 10 + [1] * 10, "frame": list(range(10)) * 2})
    # ds = ds.to_iterable_dataset()
    ds = ds.batch(by_column="episode")
    for x in ds:
        print(x)
    # {'episode': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'frame': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
    # {'episode': [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], 'frame': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
    ```

### New supported formats

* Add Apache Iceberg format support by @frankliee in https://github.com/huggingface/datasets/pull/8148
* feat: add TsFile (Apache IoTDB) packaged builder with per-device wide format by @JackieTien97 in https://github.com/huggingface/datasets/pull/8160
* feat: add 3D mesh support and MeshFolder builder by @Vinay-Umrethe in https://github.com/huggingface/datasets/pull/8055
* Add `.conll` / `.conllu` dataset format loader (CoNLL-2003 / 2000 / U) by @CrypticCortex in https://github.com/huggingface/datasets/pull/8219

## Other improvements and bug fixes

* Pass library_name/version to HfApi in dataset push and delete paths by @davanstrien in https://github.com/huggingface/datasets/pull/8161
* Fix storage_options lookup for streaming Lance datasets by @ericjaebeom in https://github.com/huggingface/datasets/pull/8166
* add agent trace prompt, sent_at, count fields by @cfahlgren1 in https://github.com/huggingface/datasets/pull/8163
* fix: add `num_proc` argument to `Dataset.to_sql` by @EricSaikali in https://github.com/huggingface/datasets/pull/7791
* Support fsspec 2026.4.0 by @lhoestq in https://github.com/huggingface/datasets/pull/8175
* Fix Parquet streaming hangs at the end of script by @lhoestq in https://github.com/huggingface/datasets/pull/8176
* `ClassLabel` docs: Correct value for unknown labels by @l-uuz in https://github.com/huggingface/datasets/pull/7645
* fix parquet reshard by @lhoestq in https://github.com/huggingface/datasets/pull/8193
* Fix parquet columns arg by @lhoestq in https://github.com/huggingface/datasets/pull/8210
* update readme by @lhoestq in https://github.com/huggingface/datasets/pull/8208
* update single seg repos in ci by @lhoestq in https://github.com/huggingface/datasets/pull/8213
* Fix single lance file form pylance 7.0 by @lhoestq in https://github.com/huggingface/datasets/pull/8225
* fix(map): fix progress bar exceeding total when load_from_cache_file=False by @Nitin-Rajasekar in https://github.com/huggingface/datasets/pull/8170
* fix: embed_external_files=True for mesh support by @Vinay-Umrethe in https://github.com/huggingface/datasets/pull/8224
* Fix iterable skip over full Arrow blocks by @my17th2 in https://github.com/huggingface/datasets/pull/8236
* Keep None as a real null in Json() columns instead of the string "null" by @adityasingh2400 in https://github.com/huggingface/datasets/pull/8231
* Support composed splits in streaming datasets by @lanarkite99 in https://github.com/huggingface/datasets/pull/8220

## New Contributors
* @ericjaebeom made their first contribution in https://github.com/huggingface/datasets/pull/8166
* @EricSaikali made their first contribution in https://github.com/huggingface/datasets/pull/7791
* @l-uuz made their first contribution in https://github.com/huggingface/datasets/pull/7645
* @CrypticCortex made their first contribution in https://github.com/huggingface/datasets/pull/8219
* @frankliee made their first contribution in https://github.com/huggingface/datasets/pull/8148
* @Vinay-Umrethe made their first contribution in https://github.com/huggingface/datasets/pull/8055
* @Nitin-Rajasekar made their first contribution in https://github.com/huggingface/datasets/pull/8170
* @JackieTien97 made their first contribution in https://github.com/huggingface/datasets/pull/8160
* @my17th2 made their first contribution in https://github.com/huggingface/datasets/pull/8236
* @adityasingh2400 made their first contribution in https://github.com/huggingface/datasets/pull/8231
* @lanarkite99 made their first contribution in https://github.com/huggingface/datasets/pull/8220

**Full Changelog**: https://github.com/huggingface/datasets/compare/4.8.5...5.0.0
</Release>

<Release version="4.8.5" date="April 27, 2026" published="2026-04-27T15:46:14.000Z" url="https://github.com/huggingface/datasets/releases/tag/4.8.5">
## Main bug fixes
* fix: decode Json() values before calling DataFrame.to_json() (#8116) by @Brianzhengca in https://github.com/huggingface/datasets/pull/8122
* Fix: decode JSON type before to_list or to_dict is called by @ItsTania in https://github.com/huggingface/datasets/pull/8137
* Fix batching for table-formatted datasets by @bluehyena in https://github.com/huggingface/datasets/pull/8126
* Fix iterable map resume state by @Brianzhengca in https://github.com/huggingface/datasets/pull/8147
* don't embed remote files in download_and_prepare to parquet by @lhoestq in https://github.com/huggingface/datasets/pull/8150

## Other improvements and bug fixes
* Parse agent traces by @lhoestq in https://github.com/huggingface/datasets/pull/8113
* 🔒 Pin GitHub Actions to commit SHAs by @paulinebm in https://github.com/huggingface/datasets/pull/8114
* chore: bump doc-builder SHA for PR upload workflow by @rtrompier in https://github.com/huggingface/datasets/pull/8134
* Remove print statement in JSON processing by @lhoestq in https://github.com/huggingface/datasets/pull/8136
* Don't include files list DatasetInfo (and remove old stuff) by @lhoestq in https://github.com/huggingface/datasets/pull/8128
* update ci uer by @lhoestq in https://github.com/huggingface/datasets/pull/8139
* fix warning in ci by @lhoestq in https://github.com/huggingface/datasets/pull/8140
* fix mask in embed_storage for remote files by @lhoestq in https://github.com/huggingface/datasets/pull/8151
* fix original_files missing in ci json test by @lhoestq in https://github.com/huggingface/datasets/pull/8152
* Fix null in embed storage by @lhoestq in https://github.com/huggingface/datasets/pull/8154
* Fix base_path in integration tests by @lhoestq in https://github.com/huggingface/datasets/pull/8155

## New Contributors
* @paulinebm made their first contribution in https://github.com/huggingface/datasets/pull/8114
* @Brianzhengca made their first contribution in https://github.com/huggingface/datasets/pull/8122
* @bluehyena made their first contribution in https://github.com/huggingface/datasets/pull/8126
* @rtrompier made their first contribution in https://github.com/huggingface/datasets/pull/8134
* @ItsTania made their first contribution in https://github.com/huggingface/datasets/pull/8137

**Full Changelog**: https://github.com/huggingface/datasets/compare/4.8.4...4.8.5
</Release>

<Release version="4.8.4" date="March 23, 2026" published="2026-03-23T14:21:52.000Z" url="https://github.com/huggingface/datasets/releases/tag/4.8.4">
## What's Changed
* Support latest torchvision by @lhoestq in https://github.com/huggingface/datasets/pull/8087
* fix regression when loading JSON with one file = one object by @lhoestq in https://github.com/huggingface/datasets/pull/8086


**Full Changelog**: https://github.com/huggingface/datasets/compare/4.8.3...4.8.4
</Release>

<Release version="4.8.3" date="March 19, 2026" published="2026-03-19T17:44:39.000Z" url="https://github.com/huggingface/datasets/releases/tag/4.8.3">
## What's Changed
* Fix split_dataset_by_node step by @lhoestq in https://github.com/huggingface/datasets/pull/8081
* Fix docstring of Json.cast_storage by @albertvillanova in https://github.com/huggingface/datasets/pull/8080


**Full Changelog**: https://github.com/huggingface/datasets/compare/4.8.2...4.8.3
</Release>

<Release version="4.8.2" date="March 17, 2026" published="2026-03-17T01:10:32.000Z" url="https://github.com/huggingface/datasets/releases/tag/4.8.2">
## What's Changed
* Json type for empty struct by @lhoestq in https://github.com/huggingface/datasets/pull/8074


**Full Changelog**: https://github.com/huggingface/datasets/compare/4.8.1...4.8.2
</Release>

<Release version="4.8.1" date="March 17, 2026" published="2026-03-17T00:13:34.000Z" url="https://github.com/huggingface/datasets/releases/tag/4.8.1">
## What's Changed
* Fix formatted iter arrow double yield by @HaukurPall in https://github.com/huggingface/datasets/pull/8063


**Full Changelog**: https://github.com/huggingface/datasets/compare/4.8.0...4.8.1
</Release>

<Release version="4.8.0" date="March 16, 2026" published="2026-03-16T23:52:47.000Z" url="https://github.com/huggingface/datasets/releases/tag/4.8.0">
## Dataset Features
* Read (and write) from [HF Storage Buckets](https://huggingface.co/storage): load raw data, process and save to Dataset Repos by @lhoestq in https://github.com/huggingface/datasets/pull/8064

  ```python
  from datasets import load_dataset
  # load raw data from a Storage Bucket on HF
  ds = load_dataset("buckets/username/data-bucket", data_files=["*.jsonl"])
  # or manually, using hf:// paths
  ds = load_dataset("json", data_files=["hf://buckets/username/data-bucket/*.jsonl"])
  # process, filter
  ds = ds.map(...).filter(...)
  # publish the AI-ready dataset
  ds.push_to_hub("username/my-dataset-ready-for-training")
  ```

  This also fixes multiprocessed push_to_hub on macos that was causing segfault (now it uses spawn instead of fork).
  And it bumps `dill` and `multiprocess` versions to support python 3.14
* Datasets streaming iterable packaged improvements and fixes by @Michael-RDev in https://github.com/huggingface/datasets/pull/8068
  * added `max_shard_size` to IterableDataset.push_to_hub (but requires iterating twice to know the full dataset twice - improvements are welcome)
  * more arrow-native iterable operations for IterableDataset
  * better support of glob patterns in archives, e.g. `zip://*.jsonl::hf://datasets/username/dataset-name/data.zip`
  * fixes for to_pandas, videofolder, load_dataset_builder kwargs

## What's Changed
* fix reshard_data_sources by @lhoestq in https://github.com/huggingface/datasets/pull/8061
* Improve error message for invalid data_files pattern format by @kushalkkb in https://github.com/huggingface/datasets/pull/8060
* fix null filling in missing jsonl columns by @lhoestq in https://github.com/huggingface/datasets/pull/8069

## New Contributors
* @kushalkkb made their first contribution in https://github.com/huggingface/datasets/pull/8060
* @Michael-RDev made their first contribution in https://github.com/huggingface/datasets/pull/8068

**Full Changelog**: https://github.com/huggingface/datasets/compare/4.7.0...4.8.0
</Release>

<Release version="4.7.0" date="March 9, 2026" published="2026-03-09T19:09:25.000Z" url="https://github.com/huggingface/datasets/releases/tag/4.7.0">
## Datasets Features
* Add `Json()` type by @lhoestq in https://github.com/huggingface/datasets/pull/8027
  * JSON Lines files that contain arbitrary JSON objects like tool calling datasets are now supported. When there is a field or subfield containing mixed types (e.g. mix of str/int/float/dict/list or dictionaries with arbitrary keys), the `Json()`type is used to store such data that would normally not be supported in Arrow/Parquet
  * Use the `Json()` type in `Features()` for any dataset, it is supported in any functions that accepts `features=`like `load_dataset()`, `.map()`, `.cast()`, `.from_dict()`, `.from_list()`
  * Use `on_mixed_types="use_json"` to automatically set the `Json()` type on mixed types in `.from_dict()`, `.from_list()` and `.map()`

Examples:

You can use `on_mixed_types="use_json"` or specify `features=` with a [`Json`] type:

```python
>>> ds = Dataset.from_dict({"a": [0, "foo", {"subfield": "bar"}]})
Traceback (most recent call last):
  ...
  File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Could not convert 'foo' with type str: tried to convert to int64

>>> features = Features({"a": Json()})
>>> ds = Dataset.from_dict({"a": [0, "foo", {"subfield": "bar"}]}, features=features)
>>> ds.features
{'a': Json()}
>>> list(ds["a"])
[0, "foo", {"subfield": "bar"}]
```

This is also useful for lists of dictionaries with arbitrary keys and values, to avoid filling missing fields with None:

```python
>>> ds = Dataset.from_dict({"a": [[{"b": 0}, {"c": 0}]]})
>>> ds.features
{'a': List({'b': Value('int64'), 'c': Value('int64')})}
>>> list(ds["a"])
[[{'b': 0, 'c': None}, {'b': None, 'c': 0}]]  # missing fields are filled with None

>>> features = Features({"a": List(Json())})
>>> ds = Dataset.from_dict({"a": [[{"b": 0}, {"c": 0}]]}, features=features)
>>> ds.features
{'a': List(Json())}
>>> list(ds["a"])
[[{'b': 0}, {'c': 0}]]  # OK
```

Another example with tool calling data and the `on_mixed_types="use_json"` argument (useful to not have to specify `features=` manually):

```python
>>> messages = [
...     {"role": "user", "content": "Turn on the living room lights and play my electronic music playlist."},
...     {"role": "assistant", "tool_calls": [
...         {"type": "function", "function": {
...             "name": "control_light",
...             "arguments": {"room": "living room", "state": "on"}
...         }},
...         {"type": "function", "function": {
...             "name": "play_music",
...             "arguments": {"playlist": "electronic"}  # mixed-type here since keys ["playlist"] and ["room", "state"] are different
...         }}]
...     },
...     {"role": "tool", "name": "control_light", "content": "The lights in the living room are now on."},
...     {"role": "tool", "name": "play_music", "content": "The music is now playing."},
...     {"role": "assistant", "content": "Done!"}
... ]
>>> ds = Dataset.from_dict({"messages": [messages]}, on_mixed_types="use_json")
>>> ds.features
{'messages': List({'role': Value('string'), 'content': Value('string'), 'tool_calls': List(Json()), 'name': Value('string')})}
>>> ds[0][1]["tool_calls"][0]["function"]["arguments"]
{"room": "living room", "state": "on"}
```


## What's Changed
* Fix typos in iterable_dataset.py by @omkar-334 in https://github.com/huggingface/datasets/pull/8049
* Fix non-deterministic by sorting metadata extensions (#8034) by @Nexround in https://github.com/huggingface/datasets/pull/8039
* Use num_examples instead of len(self) for iterable_dataset's SplitInfo by @HaukurPall in https://github.com/huggingface/datasets/pull/8041
* Fix silent data loss in push_to_hub when num_proc > num_shards by @HaukurPall in https://github.com/huggingface/datasets/pull/8044
* Don't extract bad files by @lhoestq in https://github.com/huggingface/datasets/pull/8056
* fix(iterable_dataset): preserve features when chaining filter() on typed IterableDataset by @s-zx in https://github.com/huggingface/datasets/pull/8053
* fix: handle nested null types in feature alignment for multi-proc map by @ain-soph in https://github.com/huggingface/datasets/pull/8047
* Fix unstable tokenizer fingerprinting (enables map cache reuse) by @KOKOSde in https://github.com/huggingface/datasets/pull/7982
* Limit dataset listing to first 20 entries in readme by @lhoestq in https://github.com/huggingface/datasets/pull/8057

## New Contributors
* @omkar-334 made their first contribution in https://github.com/huggingface/datasets/pull/8049
* @Nexround made their first contribution in https://github.com/huggingface/datasets/pull/8039
* @HaukurPall made their first contribution in https://github.com/huggingface/datasets/pull/8041
* @s-zx made their first contribution in https://github.com/huggingface/datasets/pull/8053
* @ain-soph made their first contribution in https://github.com/huggingface/datasets/pull/8047
* @KOKOSde made their first contribution in https://github.com/huggingface/datasets/pull/7982

**Full Changelog**: https://github.com/huggingface/datasets/compare/4.6.1...4.7.0
</Release>

<Release version="4.6.1" date="February 27, 2026" published="2026-02-27T23:27:26.000Z" url="https://github.com/huggingface/datasets/releases/tag/4.6.1">
## Bug fix
* Remove tmp file in push to hub by @lhoestq in https://github.com/huggingface/datasets/pull/8030


**Full Changelog**: https://github.com/huggingface/datasets/compare/4.6.0...4.6.1
</Release>

<Release version="4.6.0" date="February 25, 2026" published="2026-02-25T12:15:45.000Z" url="https://github.com/huggingface/datasets/releases/tag/4.6.0">
## Dataset Features
* Support Image, Video and Audio types in Lance datasets
  * Infer types from lance blobs by @lhoestq in https://github.com/huggingface/datasets/pull/7966
 
  ```python
  >>> from datasets import load_dataset
  >>> ds = load_dataset("lance-format/Openvid-1M", streaming=True, split="train")
  >>> ds.features
  {'video_blob': Video(),
   'video_path': Value('string'),
   'caption': Value('string'),
   'aesthetic_score': Value('float64'),
   'motion_score': Value('float64'),
   'temporal_consistency_score': Value('float64'),
   'camera_motion': Value('string'),
   'frame': Value('int64'),
   'fps': Value('float64'),
   'seconds': Value('float64'),
   'embedding': List(Value('float32'), length=1024)}
  ```
* Push to hub now supports Video types
  * push_to_hub() for videos by @lhoestq in https://github.com/huggingface/datasets/pull/7971
  
  ```python
   >>> from datasets import Dataset, Video
  >>> ds = Dataset.from_dict({"video": ["path/to/video.mp4"]})
  >>> ds = ds.cast_column("video", Video())
  >>> ds.push_to_hub("username/my-video-dataset")
  ```
* Write image/audio/video blobs as is in parquet (PLAIN) in `push_to_hub()` by @lhoestq in https://github.com/huggingface/datasets/pull/7976
  * this enables cross-format Xet deduplication for image/audio/video, e.g. deduplicate videos between Lance, WebDataset, Parquet files and plain video files and make downloads and uploads faster to Hugging Face
  * E.g. if you convert a Lance video dataset to a Parquet video dataset on Hugging Face, the upload will be much faster since videos don't need to be reuploaded. Under the hood, the Xet storage reuses the binary chunks from the videos in Lance format for the videos in Parquet format
  * See more info here: https://huggingface.co/docs/hub/en/xet/deduplication
  
<p align="center">
<a href="https://huggingface.co/docs/hub/en/xet/deduplication">
<img height="200" alt="image" src="https://github.com/user-attachments/assets/dd0de6a2-24a1-4945-8d25-44b763c1151e" />
</a>
</p>

* Add `IterableDataset.reshard()` by @lhoestq in https://github.com/huggingface/datasets/pull/7992

  Reshard the dataset if possible, i.e. split the current shards further into more shards.
  This increases the number of shards and the resulting dataset has num_shards >= previous_num_shards.
  Equality may happen if no shard can be split further.

  The resharding mechanism depends on the dataset file format:

    * Parquet: shard per row group instead of per file
    * Other: not implemented yet (contributions are welcome !)

  ```python
  >>> from datasets import load_dataset
  >>> ds = load_dataset("fancyzhx/amazon_polarity", split="train", streaming=True)
  >>> ds
  IterableDataset({
      features: ['label', 'title', 'content'],
      num_shards: 4
  })
  >>> ds.reshard()
  IterableDataset({
      features: ['label', 'title', 'content'],
      num_shards: 3600
  })
  ```

## What's Changed
* Fix load_from_disk progress bar with redirected stdout by @omarfarhoud in https://github.com/huggingface/datasets/pull/7919
* Revert "feat: avoid some copies in torch formatter (#7787)" by @lhoestq in https://github.com/huggingface/datasets/pull/7961
* docs: fix grammar and add type hints in splits.py by @Edge-Explorer in https://github.com/huggingface/datasets/pull/7960
* Fix interleave_datasets with all_exhausted_without_replacement strategy by @prathamk-tw in https://github.com/huggingface/datasets/pull/7955
* Add examples for Lance datasets by @prrao87 in https://github.com/huggingface/datasets/pull/7950
* Support null in json string cols by @lhoestq in https://github.com/huggingface/datasets/pull/7963
* handle blob lance by @lhoestq in https://github.com/huggingface/datasets/pull/7964
* Count examples in lance by @lhoestq in https://github.com/huggingface/datasets/pull/7969
* Use temp files in push_to_hub to save memory by @lhoestq in https://github.com/huggingface/datasets/pull/7979
* Drop python 3.9 by @lhoestq in https://github.com/huggingface/datasets/pull/7980
* Support pandas 3 by @lhoestq in https://github.com/huggingface/datasets/pull/7981
* Remove unused data files optims by @lhoestq in https://github.com/huggingface/datasets/pull/7985
* Remove pre-release workaround in CI for `transformers v5` and `huggingface_hub v1` by @hanouticelina in https://github.com/huggingface/datasets/pull/7989
* very basic support for more hf urls by @lhoestq in https://github.com/huggingface/datasets/pull/8003
* Bump fsspec upper bound to 2026.2.0 (fixes #7994) by @jayzuccarelli in https://github.com/huggingface/datasets/pull/7995
* Fix: make environment variable naming consistent (issue #7998) by @AnkitAhlawat7742 in https://github.com/huggingface/datasets/pull/8000
* More IterableDataset.from_x methods and docs and polars.Lazyframe support by @lhoestq in https://github.com/huggingface/datasets/pull/8009
* Support empty shard in from_generator by @lhoestq in https://github.com/huggingface/datasets/pull/8023
* Allow import polars in map() by @lhoestq in https://github.com/huggingface/datasets/pull/8024

## New Contributors
* @omarfarhoud made their first contribution in https://github.com/huggingface/datasets/pull/7919
* @Edge-Explorer made their first contribution in https://github.com/huggingface/datasets/pull/7960
* @prathamk-tw made their first contribution in https://github.com/huggingface/datasets/pull/7955
* @prrao87 made their first contribution in https://github.com/huggingface/datasets/pull/7950
* @hanouticelina made their first contribution in https://github.com/huggingface/datasets/pull/7989
* @jayzuccarelli made their first contribution in https://github.com/huggingface/datasets/pull/7995
* @AnkitAhlawat7742 made their first contribution in https://github.com/huggingface/datasets/pull/8000

**Full Changelog**: https://github.com/huggingface/datasets/compare/4.5.0...4.6.0
</Release>

<Release version="4.5.0" date="January 14, 2026" published="2026-01-14T18:33:15.000Z" url="https://github.com/huggingface/datasets/releases/tag/4.5.0">
## Dataset Features
* Add lance format support by @eddyxu in https://github.com/huggingface/datasets/pull/7913
  * Support for both Lance dataset (including metadata / manifests) and standalone .lance files
  * e.g. with [lance-format/fineweb-edu](https://huggingface.co/datasets/lance-format/fineweb-edu)

  ```python
  from datasets import load_dataset

  ds = load_dataset("lance-format/fineweb-edu", streaming=True)
  for example in ds["train"]:
      ...
  ```

## What's Changed

* Raise early for invalid `revision` in `load_dataset` by @Scott-Simmons in https://github.com/huggingface/datasets/pull/7929
* fix low but large example indexerror by @CloseChoice in https://github.com/huggingface/datasets/pull/7912
* Fix method to retrieve attributes from file object by @lhoestq in https://github.com/huggingface/datasets/pull/7938
* add _OverridableIOWrapper by @lhoestq in https://github.com/huggingface/datasets/pull/7942
* Add _generate_shards by @lhoestq in https://github.com/huggingface/datasets/pull/7943

## New Contributors
* @eddyxu made their first contribution in https://github.com/huggingface/datasets/pull/7913
* @Scott-Simmons made their first contribution in https://github.com/huggingface/datasets/pull/7929

**Full Changelog**: https://github.com/huggingface/datasets/compare/4.4.2...4.5.0
</Release>

<Release version="4.4.2" date="December 19, 2025" published="2025-12-19T15:05:34.000Z" url="https://github.com/huggingface/datasets/releases/tag/4.4.2">
## Bug fixes
* Fix embed storage nifti by @CloseChoice in https://github.com/huggingface/datasets/pull/7853
* ArXiv -> HF Papers by @qgallouedec in https://github.com/huggingface/datasets/pull/7855
* fix some broken links by @julien-c in https://github.com/huggingface/datasets/pull/7859
* Nifti visualization support by @CloseChoice in https://github.com/huggingface/datasets/pull/7874
* Replace papaya with niivue by @CloseChoice in https://github.com/huggingface/datasets/pull/7878
* Fix 7846: add_column and add_item erroneously(?) require new_fingerprint parameter  by @sajmaru in https://github.com/huggingface/datasets/pull/7884
* fix(fingerprint): treat TMPDIR as strict API and fail (Issue #7877) by @ada-ggf25 in https://github.com/huggingface/datasets/pull/7891
* encode nifti correctly when uploading lazily by @CloseChoice in https://github.com/huggingface/datasets/pull/7892
* fix(nifti): enable lazy loading for Nifti1ImageWrapper by @The-Obstacle-Is-The-Way in https://github.com/huggingface/datasets/pull/7887

## Minor additions
* Add type overloads to load_dataset for better static type inference by @Aditya2755 in https://github.com/huggingface/datasets/pull/7888
* Add inspect_ai eval logs support by @lhoestq in https://github.com/huggingface/datasets/pull/7899
* Save input shard lengths by @lhoestq in https://github.com/huggingface/datasets/pull/7897
* Don't save original_shard_lengths by default for backward compat by @lhoestq in https://github.com/huggingface/datasets/pull/7906

## New Contributors
* @sajmaru made their first contribution in https://github.com/huggingface/datasets/pull/7884
* @Aditya2755 made their first contribution in https://github.com/huggingface/datasets/pull/7888
* @ada-ggf25 made their first contribution in https://github.com/huggingface/datasets/pull/7891
* @The-Obstacle-Is-The-Way made their first contribution in https://github.com/huggingface/datasets/pull/7887

**Full Changelog**: https://github.com/huggingface/datasets/compare/4.4.1...4.4.2
</Release>

<Release version="4.4.1" date="November 5, 2025" published="2025-11-05T16:01:38.000Z" url="https://github.com/huggingface/datasets/releases/tag/4.4.1">
## Bug fixes and improvements
* Better streaming retries (504 and 429) by @lhoestq in https://github.com/huggingface/datasets/pull/7847
* DOC: remove mode parameter in docstring of pdf and video feature by @CloseChoice in https://github.com/huggingface/datasets/pull/7848


**Full Changelog**: https://github.com/huggingface/datasets/compare/4.4.0...4.4.1
</Release>

<Release version="4.4.0" date="November 4, 2025" published="2025-11-04T10:42:47.000Z" url="https://github.com/huggingface/datasets/releases/tag/4.4.0">
## Dataset Features
* Add nifti support by @CloseChoice in https://github.com/huggingface/datasets/pull/7815
  * Load medical imaging datasets from Hugging Face:

  ```python
  ds = load_dataset("username/my_nifti_dataset")
  ds["train"][0]  # {"nifti": <nibabel.nifti1.Nifti1Image>}
  ```
  * Load medical imaging datasets from your disk:

  ```python
  files = ["/path/to/scan_001.nii.gz", "/path/to/scan_002.nii.gz"]
  ds = Dataset.from_dict({"nifti": files}).cast_column("nifti", Nifti())
  ds["train"][0]  # {"nifti": <nibabel.nifti1.Nifti1Image>}
  ```

  * Documentation: https://huggingface.co/docs/datasets/nifti_dataset
* Add num channels to audio by @CloseChoice in https://github.com/huggingface/datasets/pull/7840

```python
# samples have shape (num_channels, num_samples)
ds = ds.cast_column("audio", Audio())  # default, use all channels
ds = ds.cast_column("audio", Audio(num_channels=2))  # use stereo
ds = ds.cast_column("audio", Audio(num_channels=1))  # use mono
```

* Python 3.14 support by @lhoestq in https://github.com/huggingface/datasets/pull/7836

## What's Changed
* Fix random seed on shuffle and interleave_datasets by @CloseChoice in https://github.com/huggingface/datasets/pull/7823
* fix ci compressionfs by @lhoestq in https://github.com/huggingface/datasets/pull/7830
* fix: better args passthrough for `_batch_setitems()` by @sghng in https://github.com/huggingface/datasets/pull/7817
* Fix: Properly render [!TIP] block in stream.shuffle documentation by @art-test-stack in https://github.com/huggingface/datasets/pull/7833
* resolves the ValueError: Unable to avoid copy while creating an array by @ArjunJagdale in https://github.com/huggingface/datasets/pull/7831
* fix column with transform by @lhoestq in https://github.com/huggingface/datasets/pull/7843
* support fsspec 2025.10.0 by @lhoestq in https://github.com/huggingface/datasets/pull/7844

## New Contributors
* @sghng made their first contribution in https://github.com/huggingface/datasets/pull/7817
* @art-test-stack made their first contribution in https://github.com/huggingface/datasets/pull/7833

**Full Changelog**: https://github.com/huggingface/datasets/compare/4.3.0...4.4.0
</Release>

<Release version="4.3.0" date="October 23, 2025" published="2025-10-23T16:33:59.000Z" url="https://github.com/huggingface/datasets/releases/tag/4.3.0">
## Dataset Features

Enable large scale distributed dataset streaming:

* Keep hffs cache in workers when streaming by @lhoestq in https://github.com/huggingface/datasets/pull/7820
* Retry open hf file by @lhoestq in https://github.com/huggingface/datasets/pull/7822

These improvements require `huggingface_hub>=1.1.0` to take full effect

## What's Changed
* fix conda deps by @lhoestq in https://github.com/huggingface/datasets/pull/7810
* Add pyarrow's binary view to features by @delta003 in https://github.com/huggingface/datasets/pull/7795
* Fix polars cast column image by @CloseChoice in https://github.com/huggingface/datasets/pull/7800
* Allow streaming hdf5 files by @lhoestq in https://github.com/huggingface/datasets/pull/7814
* Fix batch_size default description in to_polars docstrings by @albertvillanova in https://github.com/huggingface/datasets/pull/7824
* docs: document_dataset PDFs & OCR by @ethanknights in https://github.com/huggingface/datasets/pull/7812
* Add custom fingerprint support to `from_generator` by @simonreise in https://github.com/huggingface/datasets/pull/7533
* picklable batch_fn by @lhoestq in https://github.com/huggingface/datasets/pull/7826

## New Contributors
* @delta003 made their first contribution in https://github.com/huggingface/datasets/pull/7795
* @CloseChoice made their first contribution in https://github.com/huggingface/datasets/pull/7800
* @ethanknights made their first contribution in https://github.com/huggingface/datasets/pull/7812
* @simonreise made their first contribution in https://github.com/huggingface/datasets/pull/7533

**Full Changelog**: https://github.com/huggingface/datasets/compare/4.2.0...4.3.0
</Release>

<Release version="4.2.0" date="October 9, 2025" published="2025-10-09T16:18:22.000Z" url="https://github.com/huggingface/datasets/releases/tag/4.2.0">
## Dataset Features
* Sample without replacement option when interleaving datasets by @radulescupetru in https://github.com/huggingface/datasets/pull/7786

  ```python
  ds = interleave_datasets(datasets, stopping_strategy="all_exhausted_without_replacement")
  ```

* Parquet: add `on_bad_files` argument to error/warn/skip bad files by @lhoestq in https://github.com/huggingface/datasets/pull/7806

  ```python
  ds = load_dataset(parquet_dataset_id, on_bad_files="warn")
  ```

* Add parquet scan options and docs by @lhoestq in https://github.com/huggingface/datasets/pull/7801

  * docs to select columns and filter data efficiently

  ```python
  ds = load_dataset(parquet_dataset_id, columns=["col_0", "col_1"])
  ds = load_dataset(parquet_dataset_id, filters=[("col_0", "==", 0)])
  ```
  * new argument to control buffering and caching when streaming

  ```python
  fragment_scan_options = pyarrow.dataset.ParquetFragmentScanOptions(cache_options=pyarrow.CacheOptions(prefetch_limit=1, range_size_limit=128 << 20))
  ds = load_dataset(parquet_dataset_id, streaming=True, fragment_scan_options=fragment_scan_options)
  ```

## What's Changed
* Document HDF5 support by @klamike in https://github.com/huggingface/datasets/pull/7740
* update tips in docs by @lhoestq in https://github.com/huggingface/datasets/pull/7790
* feat: avoid some copies in torch formatter by @drbh in https://github.com/huggingface/datasets/pull/7787
* Support huggingface_hub v0.x and v1.x by @Wauplin in https://github.com/huggingface/datasets/pull/7783
* Define CI future by @lhoestq in https://github.com/huggingface/datasets/pull/7799
* More Parquet streaming docs by @lhoestq in https://github.com/huggingface/datasets/pull/7803
* Less api calls when resolving data_files by @lhoestq in https://github.com/huggingface/datasets/pull/7805
* typo by @lhoestq in https://github.com/huggingface/datasets/pull/7807

## New Contributors
* @drbh made their first contribution in https://github.com/huggingface/datasets/pull/7787

**Full Changelog**: https://github.com/huggingface/datasets/compare/4.1.1...4.2.0
</Release>

<Release version="4.1.1" date="September 18, 2025" published="2025-09-18T13:15:08.000Z" url="https://github.com/huggingface/datasets/releases/tag/4.1.1">
## What's Changed
* fix iterate nested field by @lhoestq in https://github.com/huggingface/datasets/pull/7775
* Add support for arrow iterable when concatenating or interleaving by @radulescupetru in https://github.com/huggingface/datasets/pull/7771
* fix empty dataset to_parquet by @lhoestq in https://github.com/huggingface/datasets/pull/7779

## New Contributors
* @radulescupetru made their first contribution in https://github.com/huggingface/datasets/pull/7771

**Full Changelog**: https://github.com/huggingface/datasets/compare/4.1.0...4.1.1
</Release>

<Pagination cursor="2025-09-18T13:15:08.000Z|2026-04-07T17:27:52.092Z|rel_73cXMXtnUYvt-KVpXjyP0" next="https://releases.sh/hugging-face/datasets.md?cursor=2025-09-18T13%3A15%3A08.000Z%7C2026-04-07T17%3A27%3A52.092Z%7Crel_73cXMXtnUYvt-KVpXjyP0&limit=20" />
