url
stringlengths
58
61
number
int64
1
8.23k
title
stringlengths
1
290
body
stringlengths
0
228k
state
stringclasses
2 values
created_at
timestamp[s]date
2020-04-14 10:18:02
2026-05-30 09:38:59
comments_url
stringlengths
67
70
pull_request
dict
is_pull_request
bool
2 classes
text
stringlengths
2
228k
comments
listlengths
0
30
https://api.github.com/repos/huggingface/datasets/issues/7694
7,694
Dataset.to_json consumes excessive memory, appears to not be a streaming operation
### Describe the bug When exporting a Dataset object to a JSON Lines file using the .to_json(lines=True) method, the process consumes a very large amount of memory. The memory usage is proportional to the size of the entire Dataset object being saved, rather than being a low, constant memory operation. This behavior ...
open
2025-07-21T07:51:25
https://api.github.com/repos/huggingface/datasets/issues/7694/comments
null
false
Dataset.to_json consumes excessive memory, appears to not be a streaming operation ### Describe the bug When exporting a Dataset object to a JSON Lines file using the .to_json(lines=True) method, the process consumes a very large amount of memory. The memory usage is proportional to the size of the entire Dataset obje...
[ "Hi ! to_json is memory efficient and writes the data by batch:\n\nhttps://github.com/huggingface/datasets/blob/d9861d86be222884dabbd534a2db770c70c9b558/src/datasets/io/json.py#L153-L159\n\nWhat memory are you mesuring ? If you are mesuring RSS, it is likely that it counts the memory mapped data of the dataset. Mem...
https://api.github.com/repos/huggingface/datasets/issues/7693
7,693
Dataset scripts are no longer supported, but found superb.py
### Describe the bug Hello, I'm trying to follow the [Hugging Face Pipelines tutorial](https://huggingface.co/docs/transformers/main_classes/pipelines) but the tutorial seems to work only on old datasets versions. I then get the error : ``` -------------------------------------------------------------------------- ...
open
2025-07-20T13:48:06
https://api.github.com/repos/huggingface/datasets/issues/7693/comments
null
false
Dataset scripts are no longer supported, but found superb.py ### Describe the bug Hello, I'm trying to follow the [Hugging Face Pipelines tutorial](https://huggingface.co/docs/transformers/main_classes/pipelines) but the tutorial seems to work only on old datasets versions. I then get the error : ``` --------------...
[ "I got a pretty similar issue when I try to load bigbio/neurotrial_ner dataset. \n`Dataset scripts are no longer supported, but found neurotrial_ner.py`", "Same here. I was running this tutorial and got a similar error: https://github.com/openai/whisper/discussions/654 (I'm a first-time transformers library user)...
https://api.github.com/repos/huggingface/datasets/issues/7692
7,692
xopen: invalid start byte for streaming dataset with trust_remote_code=True
### Describe the bug I am trying to load YODAS2 dataset with datasets==3.6.0 ``` from datasets import load_dataset next(iter(load_dataset('espnet/yodas2', name='ru000', split='train', streaming=True, trust_remote_code=True))) ``` And get `UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 1: invalid ...
open
2025-07-20T11:08:20
https://api.github.com/repos/huggingface/datasets/issues/7692/comments
null
false
xopen: invalid start byte for streaming dataset with trust_remote_code=True ### Describe the bug I am trying to load YODAS2 dataset with datasets==3.6.0 ``` from datasets import load_dataset next(iter(load_dataset('espnet/yodas2', name='ru000', split='train', streaming=True, trust_remote_code=True))) ``` And get `Unic...
[ "Hi ! it would be cool to convert this dataset to Parquet. This will make it work for `datasets>=4.0`, enable the Dataset Viewer and make it more reliable to load/stream (currently it uses a loading script in python and those are known for having issues sometimes)\n\nusing `datasets==3.6.0`, here is the command to ...
https://api.github.com/repos/huggingface/datasets/issues/7691
7,691
Large WebDataset: pyarrow.lib.ArrowCapacityError on load() even with streaming
### Describe the bug I am creating a large WebDataset-format dataset for sign language processing research, and a number of the videos are over 2GB. The instant I hit one of the shards with one of those videos, I get a ArrowCapacityError, even with streaming. I made a config for the dataset that specifically inclu...
open
2025-07-19T18:40:27
https://api.github.com/repos/huggingface/datasets/issues/7691/comments
null
false
Large WebDataset: pyarrow.lib.ArrowCapacityError on load() even with streaming ### Describe the bug I am creating a large WebDataset-format dataset for sign language processing research, and a number of the videos are over 2GB. The instant I hit one of the shards with one of those videos, I get a ArrowCapacityError, e...
[ "It seems the error occurs right here, as it tries to infer the Features: https://github.com/huggingface/datasets/blob/main/src/datasets/packaged_modules/webdataset/webdataset.py#L78-L90", "It seems to me that if we have something that is so large that it cannot fit in pa.table, the fallback method should be to j...
https://api.github.com/repos/huggingface/datasets/issues/7690
7,690
HDF5 support
This PR adds support for tabular HDF5 file(s) by converting each row to an Arrow table. It supports columns with the usual dtypes including up to 5-dimensional arrays as well as support for complex/compound types by using `Features(dict)`. All datasets within the HDF5 file should have rows on the first dimension (group...
closed
2025-07-18T21:09:41
https://api.github.com/repos/huggingface/datasets/issues/7690/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7690", "html_url": "https://github.com/huggingface/datasets/pull/7690", "diff_url": "https://github.com/huggingface/datasets/pull/7690.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7690.patch", "merged_at": "2025-08-19T13:28...
true
HDF5 support This PR adds support for tabular HDF5 file(s) by converting each row to an Arrow table. It supports columns with the usual dtypes including up to 5-dimensional arrays as well as support for complex/compound types by using `Features(dict)`. All datasets within the HDF5 file should have rows on the first dim...
[ "A few to-dos which I think can be left for future PRs (which I am happy to do/help with -- just this one is already huge 😄 ):\r\n- [Enum types](https://docs.h5py.org/en/stable/special.html#enumerated-types)\r\n- HDF5 [io](https://github.com/huggingface/datasets/tree/main/src/datasets/io)\r\n- [dataset-viewer](htt...
https://api.github.com/repos/huggingface/datasets/issues/7689
7,689
BadRequestError for loading dataset?
### Describe the bug Up until a couple days ago I was having no issues loading `Helsinki-NLP/europarl` and `Helsinki-NLP/un_pc`, but now suddenly I get the following error: ``` huggingface_hub.errors.BadRequestError: (Request ID: ...) Bad request: * Invalid input: expected array, received string * at paths * Invalid...
closed
2025-07-18T09:30:04
https://api.github.com/repos/huggingface/datasets/issues/7689/comments
null
false
BadRequestError for loading dataset? ### Describe the bug Up until a couple days ago I was having no issues loading `Helsinki-NLP/europarl` and `Helsinki-NLP/un_pc`, but now suddenly I get the following error: ``` huggingface_hub.errors.BadRequestError: (Request ID: ...) Bad request: * Invalid input: expected array,...
[ "Same here, for `HuggingFaceFW/fineweb`. Code that worked with no issues for the last 2 months suddenly fails today. Tried updating `datasets`, `huggingface_hub`, `fsspec` to newest versions, but the same error occurs.", "I'm also hitting this issue, with `mandarjoshi/trivia_qa`; My dataset loading was working su...
https://api.github.com/repos/huggingface/datasets/issues/7688
7,688
No module named "distributed"
### Describe the bug hello, when I run the command "from datasets.distributed import split_dataset_by_node", I always met the bug "No module named 'datasets.distributed" in different version like 4.0.0, 2.21.0 and so on. How can I solve this? ### Steps to reproduce the bug 1. pip install datasets 2. from datasets.di...
open
2025-07-17T09:32:35
https://api.github.com/repos/huggingface/datasets/issues/7688/comments
null
false
No module named "distributed" ### Describe the bug hello, when I run the command "from datasets.distributed import split_dataset_by_node", I always met the bug "No module named 'datasets.distributed" in different version like 4.0.0, 2.21.0 and so on. How can I solve this? ### Steps to reproduce the bug 1. pip instal...
[ "The error ModuleNotFoundError: No module named 'datasets.distributed' means your installed datasets library is too old or incompatible with the version of Library you are using(in my case it was BEIR). The datasets.distributed module was removed in recent versions of the datasets library.\n\nDowngrade datasets to ...
https://api.github.com/repos/huggingface/datasets/issues/7687
7,687
Datasets keeps rebuilding the dataset every time i call the python script
### Describe the bug Every time it runs, somehow, samples increase. This can cause a 12mb dataset to have other built versions of 400 mbs+ <img width="363" height="481" alt="Image" src="https://github.com/user-attachments/assets/766ce958-bd2b-41bc-b950-86710259bfdc" /> ### Steps to reproduce the bug `from datasets...
open
2025-07-17T09:03:38
https://api.github.com/repos/huggingface/datasets/issues/7687/comments
null
false
Datasets keeps rebuilding the dataset every time i call the python script ### Describe the bug Every time it runs, somehow, samples increase. This can cause a 12mb dataset to have other built versions of 400 mbs+ <img width="363" height="481" alt="Image" src="https://github.com/user-attachments/assets/766ce958-bd2b-4...
[ "here is the code to load the dataset form the cache:\n\n```python\ns = load_dataset('databricks/databricks-dolly-15k')['train']\n```\n\nif you pass the location of a local directory it will create a new cache based on that directory content" ]
https://api.github.com/repos/huggingface/datasets/issues/7686
7,686
load_dataset does not check .no_exist files in the hub cache
### Describe the bug I'm not entirely sure if this should be submitted as a bug in the `datasets` library or the `huggingface_hub` library, given it could be fixed at different levels of the stack. The fundamental issue is that the `load_datasets` api doesn't use the `.no_exist` files in the hub cache unlike other wr...
open
2025-07-16T20:04:00
https://api.github.com/repos/huggingface/datasets/issues/7686/comments
null
false
load_dataset does not check .no_exist files in the hub cache ### Describe the bug I'm not entirely sure if this should be submitted as a bug in the `datasets` library or the `huggingface_hub` library, given it could be fixed at different levels of the stack. The fundamental issue is that the `load_datasets` api doesn...
[ "It turns out the `.no_exist` entries *are* being written (they have been since huggingface_hub 0.25 — `.no_exist` is a dot-directory so plain `ls` hides it); only the read side was missing in `datasets`. Fix in PR: `cached_path` now checks `try_to_load_from_cache` before hitting the Hub for commit-hash-pinned file...
https://api.github.com/repos/huggingface/datasets/issues/7685
7,685
Inconsistent range request behavior for parquet REST api
### Describe the bug First off, I do apologize if this is not the correct repo for submitting this issue. Please direct me to another one if it's more appropriate elsewhere. The datasets rest api is inconsistently giving `416 Range Not Satisfiable` when using a range request to get portions of the parquet files. Mor...
open
2025-07-16T18:39:44
https://api.github.com/repos/huggingface/datasets/issues/7685/comments
null
false
Inconsistent range request behavior for parquet REST api ### Describe the bug First off, I do apologize if this is not the correct repo for submitting this issue. Please direct me to another one if it's more appropriate elsewhere. The datasets rest api is inconsistently giving `416 Range Not Satisfiable` when using ...
[ "This is a weird bug, is it a range that is supposed to be satisfiable ? I mean, is it on the boundraries ?\n\nLet me know if you'r e still having the issue, in case it was just a transient bug", "@lhoestq yes the ranges are supposed to be satisfiable, and _sometimes_ they are. \n\nThe head requests show that it ...
https://api.github.com/repos/huggingface/datasets/issues/7684
7,684
fix audio cast storage from array + sampling_rate
fix https://github.com/huggingface/datasets/issues/7682
closed
2025-07-15T10:13:42
https://api.github.com/repos/huggingface/datasets/issues/7684/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7684", "html_url": "https://github.com/huggingface/datasets/pull/7684", "diff_url": "https://github.com/huggingface/datasets/pull/7684.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7684.patch", "merged_at": "2025-07-15T10:24...
true
fix audio cast storage from array + sampling_rate fix https://github.com/huggingface/datasets/issues/7682
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7684). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7683
7,683
Convert to string when needed + faster .zstd
for https://huggingface.co/datasets/allenai/olmo-mix-1124
closed
2025-07-15T09:37:44
https://api.github.com/repos/huggingface/datasets/issues/7683/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7683", "html_url": "https://github.com/huggingface/datasets/pull/7683", "diff_url": "https://github.com/huggingface/datasets/pull/7683.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7683.patch", "merged_at": "2025-07-15T10:13...
true
Convert to string when needed + faster .zstd for https://huggingface.co/datasets/allenai/olmo-mix-1124
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7683). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7682
7,682
Fail to cast Audio feature for numpy arrays in datasets 4.0.0
### Describe the bug Casting features with Audio for numpy arrays - done here with `ds.map(gen_sine, features=features)` fails in version 4.0.0 but not in version 3.6.0 ### Steps to reproduce the bug The following `uv script` should be able to reproduce the bug in version 4.0.0 and pass in version 3.6.0 on a macOS ...
closed
2025-07-14T18:41:02
https://api.github.com/repos/huggingface/datasets/issues/7682/comments
null
false
Fail to cast Audio feature for numpy arrays in datasets 4.0.0 ### Describe the bug Casting features with Audio for numpy arrays - done here with `ds.map(gen_sine, features=features)` fails in version 4.0.0 but not in version 3.6.0 ### Steps to reproduce the bug The following `uv script` should be able to reproduce ...
[ "thanks for reporting, I opened a PR and I'll make a patch release soon ", "> thanks for reporting, I opened a PR and I'll make a patch release soon\n\nThank you very much @lhoestq!" ]
https://api.github.com/repos/huggingface/datasets/issues/7681
7,681
Probabilistic High Memory Usage and Freeze on Python 3.10
### Describe the bug A probabilistic issue encountered when processing datasets containing PIL.Image columns using the huggingface/datasets library on Python 3.10. The process occasionally experiences a sudden and significant memory spike, reaching 100% utilization, leading to a complete freeze. During this freeze, th...
open
2025-07-14T01:57:16
https://api.github.com/repos/huggingface/datasets/issues/7681/comments
null
false
Probabilistic High Memory Usage and Freeze on Python 3.10 ### Describe the bug A probabilistic issue encountered when processing datasets containing PIL.Image columns using the huggingface/datasets library on Python 3.10. The process occasionally experiences a sudden and significant memory spike, reaching 100% utiliza...
[]
https://api.github.com/repos/huggingface/datasets/issues/7680
7,680
Question about iterable dataset and streaming
In the doc, I found the following example: https://github.com/huggingface/datasets/blob/611f5a592359ebac6f858f515c776aa7d99838b2/docs/source/stream.mdx?plain=1#L65-L78 I am confused, 1. If we have already loaded the dataset, why doing `to_iterable_dataset`? Does it go through the dataset faster than map-style datase...
open
2025-07-12T04:48:30
https://api.github.com/repos/huggingface/datasets/issues/7680/comments
null
false
Question about iterable dataset and streaming In the doc, I found the following example: https://github.com/huggingface/datasets/blob/611f5a592359ebac6f858f515c776aa7d99838b2/docs/source/stream.mdx?plain=1#L65-L78 I am confused, 1. If we have already loaded the dataset, why doing `to_iterable_dataset`? Does it go th...
[ "> If we have already loaded the dataset, why doing to_iterable_dataset? Does it go through the dataset faster than map-style dataset?\n\nyes, it makes a faster DataLoader for example (otherwise DataLoader uses `__getitem__` which is slower than iterating)\n\n> load_dataset(streaming=True) is useful for huge datase...
https://api.github.com/repos/huggingface/datasets/issues/7679
7,679
metric glue breaks with 4.0.0
### Describe the bug worked fine with 3.6.0, and with 4.0.0 `eval_metric = metric.compute()` in HF Accelerate breaks. The code that fails is: https://huggingface.co/spaces/evaluate-metric/glue/blob/v0.4.0/glue.py#L84 ``` def simple_accuracy(preds, labels): print(preds, labels) print(f"{preds==labels}") r...
closed
2025-07-10T21:39:50
https://api.github.com/repos/huggingface/datasets/issues/7679/comments
null
false
metric glue breaks with 4.0.0 ### Describe the bug worked fine with 3.6.0, and with 4.0.0 `eval_metric = metric.compute()` in HF Accelerate breaks. The code that fails is: https://huggingface.co/spaces/evaluate-metric/glue/blob/v0.4.0/glue.py#L84 ``` def simple_accuracy(preds, labels): print(preds, labels) p...
[ "I released `evaluate` 0.4.5 yesterday to fix the issue - sorry for the inconvenience:\n\n```\npip install -U evaluate\n```", "Thanks so much, @lhoestq!" ]
https://api.github.com/repos/huggingface/datasets/issues/7678
7,678
To support decoding audio data, please install 'torchcodec'.
In the latest version of datasets==4.0.0, i cannot print the audio data on the Colab notebook. But it works on the 3.6.0 version. !pip install -q -U datasets huggingface_hub fsspec from datasets import load_dataset downloaded_dataset = load_dataset("ymoslem/MediaSpeech", "tr", split="train") print(downloaded_datase...
closed
2025-07-10T09:43:13
https://api.github.com/repos/huggingface/datasets/issues/7678/comments
null
false
To support decoding audio data, please install 'torchcodec'. In the latest version of datasets==4.0.0, i cannot print the audio data on the Colab notebook. But it works on the 3.6.0 version. !pip install -q -U datasets huggingface_hub fsspec from datasets import load_dataset downloaded_dataset = load_dataset("ymosl...
[ "Hi ! yes you should `!pip install -U datasets[audio]` to have the required dependencies.\n\n`datasets` 4.0 now relies on `torchcodec` for audio decoding. The `torchcodec` AudioDecoder enables streaming from HF and also allows to decode ranges of audio", "Same issues on Colab.\n\n> !pip install -U datasets[audio]...
https://api.github.com/repos/huggingface/datasets/issues/7677
7,677
Toxicity fails with datasets 4.0.0
### Describe the bug With the latest 4.0.0 release, huggingface toxicity evaluation module fails with error: `ValueError: text input must be of type `str` (single example), `List[str]` (batch or single pretokenized example) or `List[List[str]]` (batch of pretokenized examples).` ### Steps to reproduce the bug Repro:...
closed
2025-07-10T06:15:22
https://api.github.com/repos/huggingface/datasets/issues/7677/comments
null
false
Toxicity fails with datasets 4.0.0 ### Describe the bug With the latest 4.0.0 release, huggingface toxicity evaluation module fails with error: `ValueError: text input must be of type `str` (single example), `List[str]` (batch or single pretokenized example) or `List[List[str]]` (batch of pretokenized examples).` ###...
[ "Hi ! You can fix this by upgrading `evaluate`:\n\n```\npip install -U evaluate\n```", "Thanks, verified evaluate 0.4.5 works!" ]
https://api.github.com/repos/huggingface/datasets/issues/7676
7,676
Many things broken since the new 4.0.0 release
### Describe the bug The new changes in 4.0.0 are breaking many datasets, including those from lm-evaluation-harness. I am trying to revert back to older versions, like 3.6.0 to make the eval work but I keep getting: ``` Python File /venv/main/lib/python3.12/site-packages/datasets/features/features.py:1474, in genera...
open
2025-07-09T18:59:50
https://api.github.com/repos/huggingface/datasets/issues/7676/comments
null
false
Many things broken since the new 4.0.0 release ### Describe the bug The new changes in 4.0.0 are breaking many datasets, including those from lm-evaluation-harness. I am trying to revert back to older versions, like 3.6.0 to make the eval work but I keep getting: ``` Python File /venv/main/lib/python3.12/site-package...
[ "Happy to take a look, do you have a list of impacted datasets ?", "Thanks @lhoestq , related to lm-eval, at least `winogrande`, `mmlu` and `hellaswag`, based on my tests yesterday. But many others like <a href=\"https://huggingface.co/datasets/lukaemon/bbh\">bbh</a>, most probably others too. ", "Hi @mobicham ...
https://api.github.com/repos/huggingface/datasets/issues/7675
7,675
common_voice_11_0.py failure in dataset library
### Describe the bug I tried to download dataset but have got this error: from datasets import load_dataset load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", streaming=True) --------------------------------------------------------------------------- RuntimeError Tr...
open
2025-07-09T17:47:59
https://api.github.com/repos/huggingface/datasets/issues/7675/comments
null
false
common_voice_11_0.py failure in dataset library ### Describe the bug I tried to download dataset but have got this error: from datasets import load_dataset load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", streaming=True) ------------------------------------------------------------------------...
[ "Hi ! This dataset is not in a supported format and `datasets` 4 doesn't support datasets that based on python scripts which are often source of errors. Feel free to ask the dataset authors to convert the dataset to a supported format at https://huggingface.co/datasets/mozilla-foundation/common_voice_11_0/discussio...
https://api.github.com/repos/huggingface/datasets/issues/7674
7,674
set dev version
null
closed
2025-07-09T15:01:25
https://api.github.com/repos/huggingface/datasets/issues/7674/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7674", "html_url": "https://github.com/huggingface/datasets/pull/7674", "diff_url": "https://github.com/huggingface/datasets/pull/7674.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7674.patch", "merged_at": "2025-07-09T15:01...
true
set dev version
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7674). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7673
7,673
Release: 4.0.0
null
closed
2025-07-09T14:03:16
https://api.github.com/repos/huggingface/datasets/issues/7673/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7673", "html_url": "https://github.com/huggingface/datasets/pull/7673", "diff_url": "https://github.com/huggingface/datasets/pull/7673.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7673.patch", "merged_at": "2025-07-09T14:36...
true
Release: 4.0.0
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7673). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7672
7,672
Fix double sequence
```python >>> Features({"a": Sequence(Sequence({"c": Value("int64")}))}) {'a': List({'c': List(Value('int64'))})} ``` instead of `{'a': {'c': List(List(Value('int64')))}}`
closed
2025-07-09T09:53:39
https://api.github.com/repos/huggingface/datasets/issues/7672/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7672", "html_url": "https://github.com/huggingface/datasets/pull/7672", "diff_url": "https://github.com/huggingface/datasets/pull/7672.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7672.patch", "merged_at": "2025-07-09T09:56...
true
Fix double sequence ```python >>> Features({"a": Sequence(Sequence({"c": Value("int64")}))}) {'a': List({'c': List(Value('int64'))})} ``` instead of `{'a': {'c': List(List(Value('int64')))}}`
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7672). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7671
7,671
Mapping function not working if the first example is returned as None
### Describe the bug https://github.com/huggingface/datasets/blob/8a19de052e3d79f79cea26821454bbcf0e9dcd68/src/datasets/arrow_dataset.py#L3652C29-L3652C37 Here we can see the writer is initialized on `i==0`. However, there can be cases where in the user mapping function, the first example is filtered out (length cons...
open
2025-07-08T17:07:47
https://api.github.com/repos/huggingface/datasets/issues/7671/comments
null
false
Mapping function not working if the first example is returned as None ### Describe the bug https://github.com/huggingface/datasets/blob/8a19de052e3d79f79cea26821454bbcf0e9dcd68/src/datasets/arrow_dataset.py#L3652C29-L3652C37 Here we can see the writer is initialized on `i==0`. However, there can be cases where in the...
[ "Hi, map() always expect an output.\n\nIf you wish to filter examples, you should use filter(), in your case it could be something like this:\n\n```python\nds = ds.map(my_processing_function).filter(ignore_long_prompts)\n```", "Realized this! Thanks a lot, I will close this issue then.", "@dnaihao, thanks for r...
https://api.github.com/repos/huggingface/datasets/issues/7670
7,670
Fix audio bytes
null
closed
2025-07-07T13:05:15
https://api.github.com/repos/huggingface/datasets/issues/7670/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7670", "html_url": "https://github.com/huggingface/datasets/pull/7670", "diff_url": "https://github.com/huggingface/datasets/pull/7670.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7670.patch", "merged_at": "2025-07-07T13:05...
true
Fix audio bytes
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7670). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7669
7,669
How can I add my custom data to huggingface datasets
I want to add my custom dataset in huggingface dataset. Please guide me how to achieve that.
open
2025-07-04T19:19:54
https://api.github.com/repos/huggingface/datasets/issues/7669/comments
null
false
How can I add my custom data to huggingface datasets I want to add my custom dataset in huggingface dataset. Please guide me how to achieve that.
[ "Hey @xiagod \n\nThe easiest way to add your custom data to Hugging Face Datasets is to use the built-in load_dataset function with your local files. Some examples include:\n\nCSV files:\nfrom datasets import load_dataset\ndataset = load_dataset(\"csv\", data_files=\"my_file.csv\")\n\nJSON or JSONL files:\nfrom dat...
https://api.github.com/repos/huggingface/datasets/issues/7668
7,668
Broken EXIF crash the whole program
### Describe the bug When parsing this image in the ImageNet1K dataset, the `datasets` crashs whole training process just because unable to parse an invalid EXIF tag. ![Image](https://github.com/user-attachments/assets/3c840203-ac8c-41a0-9cf7-45f64488037d) ### Steps to reproduce the bug Use the `datasets.Image.decod...
open
2025-07-03T11:24:15
https://api.github.com/repos/huggingface/datasets/issues/7668/comments
null
false
Broken EXIF crash the whole program ### Describe the bug When parsing this image in the ImageNet1K dataset, the `datasets` crashs whole training process just because unable to parse an invalid EXIF tag. ![Image](https://github.com/user-attachments/assets/3c840203-ac8c-41a0-9cf7-45f64488037d) ### Steps to reproduce th...
[ "There are other discussions about error handling for images decoding here : https://github.com/huggingface/datasets/issues/7632 https://github.com/huggingface/datasets/issues/7612\n\nand a PR here: https://github.com/huggingface/datasets/pull/7638 (would love your input on the proposed solution !)" ]
https://api.github.com/repos/huggingface/datasets/issues/7667
7,667
Fix infer list of images
cc @kashif
closed
2025-07-02T15:07:58
https://api.github.com/repos/huggingface/datasets/issues/7667/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7667", "html_url": "https://github.com/huggingface/datasets/pull/7667", "diff_url": "https://github.com/huggingface/datasets/pull/7667.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7667.patch", "merged_at": "2025-07-02T15:08...
true
Fix infer list of images cc @kashif
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7667). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7666
7,666
Backward compat list feature
cc @kashif
closed
2025-07-02T14:58:00
https://api.github.com/repos/huggingface/datasets/issues/7666/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7666", "html_url": "https://github.com/huggingface/datasets/pull/7666", "diff_url": "https://github.com/huggingface/datasets/pull/7666.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7666.patch", "merged_at": "2025-07-02T14:59...
true
Backward compat list feature cc @kashif
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7666). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7665
7,665
Function load_dataset() misinterprets string field content as part of dataset schema when dealing with `.jsonl` files
### Describe the bug When loading a `.jsonl` file using `load_dataset("json", data_files="data.jsonl", split="train")`, the function misinterprets the content of a string field as if it were part of the dataset schema. In my case there is a field `body:` with a string value ``` "### Describe the bug (...) ,action:...
closed
2025-07-01T17:14:53
https://api.github.com/repos/huggingface/datasets/issues/7665/comments
null
false
Function load_dataset() misinterprets string field content as part of dataset schema when dealing with `.jsonl` files ### Describe the bug When loading a `.jsonl` file using `load_dataset("json", data_files="data.jsonl", split="train")`, the function misinterprets the content of a string field as if it were part of t...
[ "Somehow I created the issue twice🙈 This one is an exact duplicate of #7664." ]
https://api.github.com/repos/huggingface/datasets/issues/7664
7,664
Function load_dataset() misinterprets string field content as part of dataset schema when dealing with `.jsonl` files
### Describe the bug When loading a `.jsonl` file using `load_dataset("json", data_files="data.jsonl", split="train")`, the function misinterprets the content of a string field as if it were part of the dataset schema. In my case there is a field `body:` with a string value ``` "### Describe the bug (...) ,action:...
open
2025-07-01T17:14:32
https://api.github.com/repos/huggingface/datasets/issues/7664/comments
null
false
Function load_dataset() misinterprets string field content as part of dataset schema when dealing with `.jsonl` files ### Describe the bug When loading a `.jsonl` file using `load_dataset("json", data_files="data.jsonl", split="train")`, the function misinterprets the content of a string field as if it were part of t...
[ "Hey @zdzichukowalski, I was not able to reproduce this on python 3.11.9 and datasets 3.6.0. The contents of \"body\" are correctly parsed as a string and no other fields like timestamps are created. Could you try reproducing this in a fresh environment, or posting the complete code where you encountered that stack...
https://api.github.com/repos/huggingface/datasets/issues/7663
7,663
Custom metadata filenames
example: https://huggingface.co/datasets/lhoestq/overlapping-subsets-imagefolder/tree/main To make multiple subsets for an imagefolder (one metadata file per subset), e.g. ```yaml configs: - config_name: default metadata_filenames: - metadata.csv - config_name: other metadata_filenames: ...
closed
2025-07-01T13:50:36
https://api.github.com/repos/huggingface/datasets/issues/7663/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7663", "html_url": "https://github.com/huggingface/datasets/pull/7663", "diff_url": "https://github.com/huggingface/datasets/pull/7663.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7663.patch", "merged_at": "2025-07-01T13:58...
true
Custom metadata filenames example: https://huggingface.co/datasets/lhoestq/overlapping-subsets-imagefolder/tree/main To make multiple subsets for an imagefolder (one metadata file per subset), e.g. ```yaml configs: - config_name: default metadata_filenames: - metadata.csv - config_name: other ...
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7663). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7662
7,662
Applying map after transform with multiprocessing will cause OOM
### Describe the bug I have a 30TB dataset. When I perform add_column and cast_column operations on it and then execute a multiprocessing map, it results in an OOM (Out of Memory) error. However, if I skip the add_column and cast_column steps and directly run the map, there is no OOM. After debugging step by step, I f...
open
2025-07-01T05:45:57
https://api.github.com/repos/huggingface/datasets/issues/7662/comments
null
false
Applying map after transform with multiprocessing will cause OOM ### Describe the bug I have a 30TB dataset. When I perform add_column and cast_column operations on it and then execute a multiprocessing map, it results in an OOM (Out of Memory) error. However, if I skip the add_column and cast_column steps and directl...
[ "Hi ! `add_column` loads the full column data in memory:\n\nhttps://github.com/huggingface/datasets/blob/bfa497b1666f4c58bd231c440d8b92f9859f3a58/src/datasets/arrow_dataset.py#L6021-L6021\n\na workaround to add the new column is to include the new data in the map() function instead, which only loads one batch at a ...
https://api.github.com/repos/huggingface/datasets/issues/7661
7,661
fix del tqdm lock error
fixes https://github.com/huggingface/datasets/issues/7660
open
2025-07-01T02:04:02
https://api.github.com/repos/huggingface/datasets/issues/7661/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7661", "html_url": "https://github.com/huggingface/datasets/pull/7661", "diff_url": "https://github.com/huggingface/datasets/pull/7661.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7661.patch", "merged_at": null }
true
fix del tqdm lock error fixes https://github.com/huggingface/datasets/issues/7660
[ "let's see which solution is found at https://github.com/huggingface/huggingface_hub/pull/3286 and do the same maybe ?" ]
https://api.github.com/repos/huggingface/datasets/issues/7660
7,660
AttributeError: type object 'tqdm' has no attribute '_lock'
### Describe the bug `AttributeError: type object 'tqdm' has no attribute '_lock'` It occurs when I'm trying to load datasets in thread pool. Issue https://github.com/huggingface/datasets/issues/6066 and PR https://github.com/huggingface/datasets/pull/6067 https://github.com/huggingface/datasets/pull/6068 tried to f...
open
2025-06-30T15:57:16
https://api.github.com/repos/huggingface/datasets/issues/7660/comments
null
false
AttributeError: type object 'tqdm' has no attribute '_lock' ### Describe the bug `AttributeError: type object 'tqdm' has no attribute '_lock'` It occurs when I'm trying to load datasets in thread pool. Issue https://github.com/huggingface/datasets/issues/6066 and PR https://github.com/huggingface/datasets/pull/6067 ...
[ "Deleting a class (**not instance**) attribute might be invalid in this case, which is `tqdm` doing in `ensure_lock`.\n\n```python\nfrom tqdm import tqdm as old_tqdm\n\nclass tqdm1(old_tqdm):\n def __delattr__(self, attr):\n try:\n super().__delattr__(attr)\n except AttributeError:\n ...
https://api.github.com/repos/huggingface/datasets/issues/7659
7,659
Update the beans dataset link in Preprocess
In the Preprocess tutorial, the to "the beans dataset" is incorrect. Fixed.
closed
2025-06-30T09:58:44
https://api.github.com/repos/huggingface/datasets/issues/7659/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7659", "html_url": "https://github.com/huggingface/datasets/pull/7659", "diff_url": "https://github.com/huggingface/datasets/pull/7659.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7659.patch", "merged_at": "2025-07-01T14:01...
true
Update the beans dataset link in Preprocess In the Preprocess tutorial, the to "the beans dataset" is incorrect. Fixed.
[]
https://api.github.com/repos/huggingface/datasets/issues/7658
7,658
Fix: Prevent loss of info.features and column_names in IterableDatasetDict.map when features is None
This PR fixes a bug where calling `IterableDatasetDict.map()` or `IterableDataset.map()` with the default `features=None` argument would overwrite the existing `info.features` attribute with `None`. This, in turn, caused the resulting dataset to lose its schema, breaking downstream usage of attributes like `column_name...
closed
2025-06-30T09:31:12
https://api.github.com/repos/huggingface/datasets/issues/7658/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7658", "html_url": "https://github.com/huggingface/datasets/pull/7658", "diff_url": "https://github.com/huggingface/datasets/pull/7658.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7658.patch", "merged_at": null }
true
Fix: Prevent loss of info.features and column_names in IterableDatasetDict.map when features is None This PR fixes a bug where calling `IterableDatasetDict.map()` or `IterableDataset.map()` with the default `features=None` argument would overwrite the existing `info.features` attribute with `None`. This, in turn, cause...
[ "Hi!\r\nI haven’t included a test for this change, as the fix is quite small and targeted.\r\nPlease let me know if you’d like a test for this case or if you’d prefer to handle it during review.\r\nThanks!", "we can't know in advance the `features` after map() (it transforms the data !), so you can reuse the `fea...
https://api.github.com/repos/huggingface/datasets/issues/7657
7,657
feat: add subset_name as alias for name in load_dataset
fixes #7637 This PR introduces subset_name as a user-facing alias for the name (previously `config_name`) argument in load_dataset. It aligns terminology with the Hugging Face Hub UI (which shows “Subset”), reducing confusion for new users. Supports `subset_name` in `load_dataset()` Adds `.subset_name` propert...
open
2025-06-29T10:39:00
https://api.github.com/repos/huggingface/datasets/issues/7657/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7657", "html_url": "https://github.com/huggingface/datasets/pull/7657", "diff_url": "https://github.com/huggingface/datasets/pull/7657.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7657.patch", "merged_at": null }
true
feat: add subset_name as alias for name in load_dataset fixes #7637 This PR introduces subset_name as a user-facing alias for the name (previously `config_name`) argument in load_dataset. It aligns terminology with the Hugging Face Hub UI (which shows “Subset”), reducing confusion for new users. Supports `subset_...
[]
https://api.github.com/repos/huggingface/datasets/issues/7656
7,656
fix(iterable): ensure MappedExamplesIterable supports state_dict for resume
Fixes #7630 ### Problem When calling `.map()` on an `IterableDataset`, resuming from a checkpoint skips a large number of samples. This is because `MappedExamplesIterable` did not implement `state_dict()` or `load_state_dict()`, so checkpointing was not properly delegated to the underlying iterable. ### What Thi...
open
2025-06-29T07:50:13
https://api.github.com/repos/huggingface/datasets/issues/7656/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7656", "html_url": "https://github.com/huggingface/datasets/pull/7656", "diff_url": "https://github.com/huggingface/datasets/pull/7656.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7656.patch", "merged_at": null }
true
fix(iterable): ensure MappedExamplesIterable supports state_dict for resume Fixes #7630 ### Problem When calling `.map()` on an `IterableDataset`, resuming from a checkpoint skips a large number of samples. This is because `MappedExamplesIterable` did not implement `state_dict()` or `load_state_dict()`, so checkpoi...
[]
https://api.github.com/repos/huggingface/datasets/issues/7655
7,655
Added specific use cases in Improve Performace
Fixes #2494
open
2025-06-28T19:00:32
https://api.github.com/repos/huggingface/datasets/issues/7655/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7655", "html_url": "https://github.com/huggingface/datasets/pull/7655", "diff_url": "https://github.com/huggingface/datasets/pull/7655.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7655.patch", "merged_at": null }
true
Added specific use cases in Improve Performace Fixes #2494
[]
https://api.github.com/repos/huggingface/datasets/issues/7654
7,654
fix(load): strip deprecated use_auth_token from config_kwargs
Fixes #7504 This PR resolves a compatibility error when loading datasets via `load_dataset()` using outdated arguments like `use_auth_token`. **What was happening:** Users passing `use_auth_token` in `load_dataset(..., use_auth_token=...)` encountered a `ValueError`: BuilderConfig ParquetConfig(...) doesn't have...
open
2025-06-28T09:20:21
https://api.github.com/repos/huggingface/datasets/issues/7654/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7654", "html_url": "https://github.com/huggingface/datasets/pull/7654", "diff_url": "https://github.com/huggingface/datasets/pull/7654.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7654.patch", "merged_at": null }
true
fix(load): strip deprecated use_auth_token from config_kwargs Fixes #7504 This PR resolves a compatibility error when loading datasets via `load_dataset()` using outdated arguments like `use_auth_token`. **What was happening:** Users passing `use_auth_token` in `load_dataset(..., use_auth_token=...)` encountered...
[]
https://api.github.com/repos/huggingface/datasets/issues/7653
7,653
feat(load): fallback to `load_from_disk()` when loading a saved dataset directory
### Related Issue Fixes #7503 Partially addresses #5044 by allowing `load_dataset()` to auto-detect and gracefully delegate to `load_from_disk()` for locally saved datasets. --- ### What does this PR do? This PR introduces a minimal fallback mechanism in `load_dataset()` that detects when the provided `p...
open
2025-06-28T08:47:36
https://api.github.com/repos/huggingface/datasets/issues/7653/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7653", "html_url": "https://github.com/huggingface/datasets/pull/7653", "diff_url": "https://github.com/huggingface/datasets/pull/7653.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7653.patch", "merged_at": null }
true
feat(load): fallback to `load_from_disk()` when loading a saved dataset directory ### Related Issue Fixes #7503 Partially addresses #5044 by allowing `load_dataset()` to auto-detect and gracefully delegate to `load_from_disk()` for locally saved datasets. --- ### What does this PR do? This PR introduces ...
[]
https://api.github.com/repos/huggingface/datasets/issues/7652
7,652
Add columns support to JSON loader for selective key filtering
Fixes #7594 This PR adds support for filtering specific columns when loading datasets from .json or .jsonl files — similar to how the columns=... argument works for Parquet. As suggested, support for the `columns=...` argument (previously available for Parquet) has now been extended to **JSON and JSONL** loading v...
closed
2025-06-27T16:18:42
https://api.github.com/repos/huggingface/datasets/issues/7652/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7652", "html_url": "https://github.com/huggingface/datasets/pull/7652", "diff_url": "https://github.com/huggingface/datasets/pull/7652.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7652.patch", "merged_at": null }
true
Add columns support to JSON loader for selective key filtering Fixes #7594 This PR adds support for filtering specific columns when loading datasets from .json or .jsonl files — similar to how the columns=... argument works for Parquet. As suggested, support for the `columns=...` argument (previously available for...
[ "I need this feature right now. It would be great if it could automatically fill in None for non-existent keys instead of reporting an error.", "> I need this feature right now. It would be great if it could automatically fill in None for non-existent keys instead of reporting an error.\r\n\r\nHi @aihao2000, Just...
https://api.github.com/repos/huggingface/datasets/issues/7651
7,651
fix: Extended metadata file names for folder_based_builder
Fixes #7650. The metadata files generated by the `DatasetDict.save_to_file` function are not included in the folder_based_builder's metadata list, causing issues when only 1 actual data file is present, as described in issue #7650. This PR adds these filenames to the builder, allowing correct loading.
open
2025-06-27T13:12:11
https://api.github.com/repos/huggingface/datasets/issues/7651/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7651", "html_url": "https://github.com/huggingface/datasets/pull/7651", "diff_url": "https://github.com/huggingface/datasets/pull/7651.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7651.patch", "merged_at": null }
true
fix: Extended metadata file names for folder_based_builder Fixes #7650. The metadata files generated by the `DatasetDict.save_to_file` function are not included in the folder_based_builder's metadata list, causing issues when only 1 actual data file is present, as described in issue #7650. This PR adds these file...
[]
https://api.github.com/repos/huggingface/datasets/issues/7650
7,650
`load_dataset` defaults to json file format for datasets with 1 shard
### Describe the bug I currently have multiple datasets (train+validation) saved as 50MB shards. For one dataset the validation pair is small enough to fit into a single shard and this apparently causes problems when loading the dataset. I created the datasets using a DatasetDict, saved them as 50MB arrow files for st...
open
2025-06-27T12:54:25
https://api.github.com/repos/huggingface/datasets/issues/7650/comments
null
false
`load_dataset` defaults to json file format for datasets with 1 shard ### Describe the bug I currently have multiple datasets (train+validation) saved as 50MB shards. For one dataset the validation pair is small enough to fit into a single shard and this apparently causes problems when loading the dataset. I created t...
[]
https://api.github.com/repos/huggingface/datasets/issues/7649
7,649
Enable parallel shard upload in push_to_hub() using num_proc
Fixes #7591 ### Add num_proc support to `push_to_hub()` for parallel shard upload This PR adds support for parallel upload of dataset shards via the `num_proc` argument in `Dataset.push_to_hub()`. 📌 While the `num_proc` parameter was already present in the `push_to_hub()` signature and correctly passed to `_p...
closed
2025-06-27T05:59:03
https://api.github.com/repos/huggingface/datasets/issues/7649/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7649", "html_url": "https://github.com/huggingface/datasets/pull/7649", "diff_url": "https://github.com/huggingface/datasets/pull/7649.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7649.patch", "merged_at": null }
true
Enable parallel shard upload in push_to_hub() using num_proc Fixes #7591 ### Add num_proc support to `push_to_hub()` for parallel shard upload This PR adds support for parallel upload of dataset shards via the `num_proc` argument in `Dataset.push_to_hub()`. 📌 While the `num_proc` parameter was already present...
[ "it was already added in https://github.com/huggingface/datasets/pull/7606 actually ^^'", "Oh sure sure, Closing this one as redundant." ]
https://api.github.com/repos/huggingface/datasets/issues/7648
7,648
Fix misleading add_column() usage example in docstring
Fixes #7611 This PR fixes the usage example in the Dataset.add_column() docstring, which previously implied that add_column() modifies the dataset in-place. Why: The method returns a new dataset with the additional column, and users must assign the result to a variable to preserve the change. This should make...
closed
2025-06-27T05:27:04
https://api.github.com/repos/huggingface/datasets/issues/7648/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7648", "html_url": "https://github.com/huggingface/datasets/pull/7648", "diff_url": "https://github.com/huggingface/datasets/pull/7648.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7648.patch", "merged_at": "2025-07-17T13:14...
true
Fix misleading add_column() usage example in docstring Fixes #7611 This PR fixes the usage example in the Dataset.add_column() docstring, which previously implied that add_column() modifies the dataset in-place. Why: The method returns a new dataset with the additional column, and users must assign the result to...
[ "I believe there are other occurences of cases like this, like select_columns, select, filter, shard and flatten, could you also fix the docstring for them as well before we merge ?", "Done! @lhoestq! I've updated the docstring examples for the following methods to clarify that they return new datasets instead of...
https://api.github.com/repos/huggingface/datasets/issues/7647
7,647
loading mozilla-foundation--common_voice_11_0 fails
### Describe the bug Hello everyone, i am trying to load `mozilla-foundation--common_voice_11_0` and it fails. Reproducer ``` import datasets datasets.load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", streaming=True, trust_remote_code=True) ``` and it fails with ``` File ~/opt/envs/.../lib/py...
open
2025-06-26T12:23:48
https://api.github.com/repos/huggingface/datasets/issues/7647/comments
null
false
loading mozilla-foundation--common_voice_11_0 fails ### Describe the bug Hello everyone, i am trying to load `mozilla-foundation--common_voice_11_0` and it fails. Reproducer ``` import datasets datasets.load_dataset("mozilla-foundation/common_voice_11_0", "en", split="test", streaming=True, trust_remote_code=True) ...
[ "@claude Could you please address this issue", "kinda related: https://github.com/huggingface/datasets/issues/7675" ]
https://api.github.com/repos/huggingface/datasets/issues/7646
7,646
Introduces automatic subset-level grouping for folder-based dataset builders #7066
Fixes #7066 This PR introduces automatic **subset-level grouping** for folder-based dataset builders by: 1. Adding a utility function `group_files_by_subset()` that clusters files by root name (ignoring digits and shard suffixes). 2. Integrating this logic into `FolderBasedBuilder._split_generators()` to yield one...
open
2025-06-26T07:01:37
https://api.github.com/repos/huggingface/datasets/issues/7646/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7646", "html_url": "https://github.com/huggingface/datasets/pull/7646", "diff_url": "https://github.com/huggingface/datasets/pull/7646.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7646.patch", "merged_at": null }
true
Introduces automatic subset-level grouping for folder-based dataset builders #7066 Fixes #7066 This PR introduces automatic **subset-level grouping** for folder-based dataset builders by: 1. Adding a utility function `group_files_by_subset()` that clusters files by root name (ignoring digits and shard suffixes). 2...
[ "It adds automatic grouping of files into subsets based on their root name (e.g., `train0.jsonl`, `train1.jsonl` → `\"train\"`), as discussed above. The logic is integrated into `FolderBasedBuilder` and is fully tested + documented.\r\n\r\nLet me know if any changes are needed — happy to iterate!", "Hi ! I believ...
https://api.github.com/repos/huggingface/datasets/issues/7645
7,645
`ClassLabel` docs: Correct value for unknown labels
This small change fixes the documentation to to be compliant with what happens in `encode_example`. https://github.com/huggingface/datasets/blob/e71b0b19d79c7531f9b9bea7c09916b5f6157f42/src/datasets/features/features.py#L1126-L1129
closed
2025-06-25T20:01:35
https://api.github.com/repos/huggingface/datasets/issues/7645/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7645", "html_url": "https://github.com/huggingface/datasets/pull/7645", "diff_url": "https://github.com/huggingface/datasets/pull/7645.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7645.patch", "merged_at": "2026-05-11T10:47...
true
`ClassLabel` docs: Correct value for unknown labels This small change fixes the documentation to to be compliant with what happens in `encode_example`. https://github.com/huggingface/datasets/blob/e71b0b19d79c7531f9b9bea7c09916b5f6157f42/src/datasets/features/features.py#L1126-L1129
[ "@lhoestq Can you take a look at this PR? It seems to me that docs is incorrect at that point." ]
https://api.github.com/repos/huggingface/datasets/issues/7644
7,644
fix sequence ci
fix error from https://github.com/huggingface/datasets/pull/7643
closed
2025-06-25T17:07:55
https://api.github.com/repos/huggingface/datasets/issues/7644/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7644", "html_url": "https://github.com/huggingface/datasets/pull/7644", "diff_url": "https://github.com/huggingface/datasets/pull/7644.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7644.patch", "merged_at": "2025-06-25T17:08...
true
fix sequence ci fix error from https://github.com/huggingface/datasets/pull/7643
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7644). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7643
7,643
Backward compat sequence instance
useful to still get `isinstance(Sequence(Value("int64")), Sequence)`for downstream libs like evaluate
closed
2025-06-25T17:05:09
https://api.github.com/repos/huggingface/datasets/issues/7643/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7643", "html_url": "https://github.com/huggingface/datasets/pull/7643", "diff_url": "https://github.com/huggingface/datasets/pull/7643.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7643.patch", "merged_at": "2025-06-25T17:05...
true
Backward compat sequence instance useful to still get `isinstance(Sequence(Value("int64")), Sequence)`for downstream libs like evaluate
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7643). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7642
7,642
fix length for ci
null
closed
2025-06-25T15:10:38
https://api.github.com/repos/huggingface/datasets/issues/7642/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7642", "html_url": "https://github.com/huggingface/datasets/pull/7642", "diff_url": "https://github.com/huggingface/datasets/pull/7642.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7642.patch", "merged_at": "2025-06-25T15:11...
true
fix length for ci
[]
https://api.github.com/repos/huggingface/datasets/issues/7641
7,641
update docs and docstrings
null
closed
2025-06-25T14:48:58
https://api.github.com/repos/huggingface/datasets/issues/7641/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7641", "html_url": "https://github.com/huggingface/datasets/pull/7641", "diff_url": "https://github.com/huggingface/datasets/pull/7641.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7641.patch", "merged_at": "2025-06-25T14:49...
true
update docs and docstrings
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7641). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7640
7,640
better features repr
following the addition of List in #7634 before: ```python In [3]: ds.features Out[3]: {'json': {'id': Value(dtype='string', id=None), 'metadata:transcript': [{'end': Value(dtype='float64', id=None), 'start': Value(dtype='float64', id=None), 'transcript': Value(dtype='string', id=None), 'wor...
closed
2025-06-25T14:37:32
https://api.github.com/repos/huggingface/datasets/issues/7640/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7640", "html_url": "https://github.com/huggingface/datasets/pull/7640", "diff_url": "https://github.com/huggingface/datasets/pull/7640.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7640.patch", "merged_at": "2025-06-25T14:46...
true
better features repr following the addition of List in #7634 before: ```python In [3]: ds.features Out[3]: {'json': {'id': Value(dtype='string', id=None), 'metadata:transcript': [{'end': Value(dtype='float64', id=None), 'start': Value(dtype='float64', id=None), 'transcript': Value(dtype='string'...
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7640). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7639
7,639
fix save_infos
null
closed
2025-06-25T13:16:26
https://api.github.com/repos/huggingface/datasets/issues/7639/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7639", "html_url": "https://github.com/huggingface/datasets/pull/7639", "diff_url": "https://github.com/huggingface/datasets/pull/7639.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7639.patch", "merged_at": "2025-06-25T13:16...
true
fix save_infos
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7639). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7638
7,638
Add ignore_decode_errors option to Image feature for robust decoding #7612
This PR implements support for robust image decoding in the `Image` feature, as discussed in issue #7612. ## 🔧 What was added - A new boolean field: `ignore_decode_errors` (default: `False`) - If set to `True`, any exceptions during decoding will be caught, and `None` will be returned instead of raising an error ...
open
2025-06-24T16:47:51
https://api.github.com/repos/huggingface/datasets/issues/7638/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7638", "html_url": "https://github.com/huggingface/datasets/pull/7638", "diff_url": "https://github.com/huggingface/datasets/pull/7638.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7638.patch", "merged_at": null }
true
Add ignore_decode_errors option to Image feature for robust decoding #7612 This PR implements support for robust image decoding in the `Image` feature, as discussed in issue #7612. ## 🔧 What was added - A new boolean field: `ignore_decode_errors` (default: `False`) - If set to `True`, any exceptions during decodi...
[ "cc @lhoestq", "I think splitting the error handling for the main image decoding process and the metadata decoding process is possibly a bit nicer, as some images do render correctly, but their metadata might be invalid and cause the pipeline to fail, which I've encountered recently as in #7668.\r\n\r\nThe [`deco...
https://api.github.com/repos/huggingface/datasets/issues/7637
7,637
Introduce subset_name as an alias of config_name
### Feature request Add support for `subset_name` as an alias for `config_name` in the datasets library and related tools (such as loading scripts, documentation, and metadata). ### Motivation The Hugging Face Hub dataset viewer displays a column named **"Subset"**, which refers to what is currently technically call...
open
2025-06-24T12:49:01
https://api.github.com/repos/huggingface/datasets/issues/7637/comments
null
false
Introduce subset_name as an alias of config_name ### Feature request Add support for `subset_name` as an alias for `config_name` in the datasets library and related tools (such as loading scripts, documentation, and metadata). ### Motivation The Hugging Face Hub dataset viewer displays a column named **"Subset"**, w...
[ "I second this! When you come from the Hub, the intuitive question is \"how do I set the subset name\", and it's not easily answered from the docs: `subset_name` would answer this directly.", "I've submitted PR [#7657](https://github.com/huggingface/datasets/pull/7657) to introduce subset_name as a user-facing al...
https://api.github.com/repos/huggingface/datasets/issues/7636
7,636
"open" in globals()["__builtins__"], an error occurs: "TypeError: argument of type 'module' is not iterable"
When I run the following code, an error occurs: "TypeError: argument of type 'module' is not iterable" ```python print("open" in globals()["__builtins__"]) ``` Traceback (most recent call last): File "./main.py", line 2, in <module> print("open" in globals()["__builtins__"]) ^^^^^^^^^^^^^^^^^^^^^^ TypeE...
open
2025-06-24T08:09:39
https://api.github.com/repos/huggingface/datasets/issues/7636/comments
null
false
"open" in globals()["__builtins__"], an error occurs: "TypeError: argument of type 'module' is not iterable" When I run the following code, an error occurs: "TypeError: argument of type 'module' is not iterable" ```python print("open" in globals()["__builtins__"]) ``` Traceback (most recent call last): File "./main.p...
[ "@kuanyan9527 Your query is indeed valid. Following could be its reasoning:\n\nQuoting from https://stackoverflow.com/a/11181607:\n\"By default, when in the `__main__` module,` __builtins__` is the built-in module `__builtin__` (note: no 's'); when in any other module, `__builtins__` is an alias for the dictionary ...
https://api.github.com/repos/huggingface/datasets/issues/7635
7,635
Fix: Preserve float columns in JSON loader when values are integer-like (e.g. 0.0, 1.0)
This PR fixes a bug in the JSON loader where columns containing float values like `[0.0, 1.0, 2.0]` were being implicitly coerced to `int`, due to pandas or Arrow type inference. This caused issues downstream in statistics computation (e.g., dataset-viewer) where such columns were incorrectly labeled as `"int"` inst...
open
2025-06-24T06:16:48
https://api.github.com/repos/huggingface/datasets/issues/7635/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7635", "html_url": "https://github.com/huggingface/datasets/pull/7635", "diff_url": "https://github.com/huggingface/datasets/pull/7635.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7635.patch", "merged_at": null }
true
Fix: Preserve float columns in JSON loader when values are integer-like (e.g. 0.0, 1.0) This PR fixes a bug in the JSON loader where columns containing float values like `[0.0, 1.0, 2.0]` were being implicitly coerced to `int`, due to pandas or Arrow type inference. This caused issues downstream in statistics comput...
[]
https://api.github.com/repos/huggingface/datasets/issues/7634
7,634
Replace Sequence by List
Sequence is just a utility that we need to keep for backward compatibility. And `[ ]` was used instead but doesn't allow passing the length of the list. This PR removes most mentions of Sequence and usage of `[ ]` and defines a proper List type instead. before: `Sequence(Value("int64"))` or `[Value("int64")]` no...
closed
2025-06-23T20:35:48
https://api.github.com/repos/huggingface/datasets/issues/7634/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7634", "html_url": "https://github.com/huggingface/datasets/pull/7634", "diff_url": "https://github.com/huggingface/datasets/pull/7634.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7634.patch", "merged_at": "2025-06-25T13:59...
true
Replace Sequence by List Sequence is just a utility that we need to keep for backward compatibility. And `[ ]` was used instead but doesn't allow passing the length of the list. This PR removes most mentions of Sequence and usage of `[ ]` and defines a proper List type instead. before: `Sequence(Value("int64"))` ...
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7634). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7633
7,633
Proposal: Small Tamil Discourse Coherence Dataset.
I’m a beginner from NIT Srinagar proposing a dataset of 50 Tamil text pairs for discourse coherence (coherent/incoherent labels) to support NLP research in low-resource languages. - Size: 50 samples - Format: CSV with columns (text1, text2, label) - Use case: Training NLP models for coherence I’ll use GitHub’s web edit...
open
2025-06-23T14:24:40
https://api.github.com/repos/huggingface/datasets/issues/7633/comments
null
false
Proposal: Small Tamil Discourse Coherence Dataset. I’m a beginner from NIT Srinagar proposing a dataset of 50 Tamil text pairs for discourse coherence (coherent/incoherent labels) to support NLP research in low-resource languages. - Size: 50 samples - Format: CSV with columns (text1, text2, label) - Use case: Training ...
[]
https://api.github.com/repos/huggingface/datasets/issues/7632
7,632
Graceful Error Handling for cast_column("image", Image(decode=True)) in Hugging Face Datasets
### Feature request Currently, when using dataset.cast_column("image", Image(decode=True)), the pipeline throws an error and halts if any image in the dataset is invalid or corrupted (e.g., truncated files, incorrect formats, unreachable URLs). This behavior disrupts large-scale processing where a few faulty samples a...
open
2025-06-23T13:49:24
https://api.github.com/repos/huggingface/datasets/issues/7632/comments
null
false
Graceful Error Handling for cast_column("image", Image(decode=True)) in Hugging Face Datasets ### Feature request Currently, when using dataset.cast_column("image", Image(decode=True)), the pipeline throws an error and halts if any image in the dataset is invalid or corrupted (e.g., truncated files, incorrect formats,...
[ "Hi! This is now handled in PR #7638", "Thank you for implementing the suggestion it would be great help in our use case. " ]
https://api.github.com/repos/huggingface/datasets/issues/7631
7,631
Pass user-agent from DownloadConfig into fsspec storage_options
Fixes part of issue #6046 ### Problem The `user-agent` defined in `DownloadConfig` was not passed down to fsspec-based filesystems like `HfFileSystem`, which prevents proper identification/tracking of client requests. ### Solution Added support for injecting the `user-agent` into `storage_options["headers"]` wi...
open
2025-06-21T14:22:25
https://api.github.com/repos/huggingface/datasets/issues/7631/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7631", "html_url": "https://github.com/huggingface/datasets/pull/7631", "diff_url": "https://github.com/huggingface/datasets/pull/7631.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7631.patch", "merged_at": null }
true
Pass user-agent from DownloadConfig into fsspec storage_options Fixes part of issue #6046 ### Problem The `user-agent` defined in `DownloadConfig` was not passed down to fsspec-based filesystems like `HfFileSystem`, which prevents proper identification/tracking of client requests. ### Solution Added support for...
[ "- This PR assumes that `HfFileSystem` in `huggingface_hub` supports receiving `headers` in `storage_options`. If not, a follow-up PR can be opened to add this support to `HfFileSystem.__init__`.\r\n- No test was added for this since it’s a config passthrough. If needed, I’d be happy to add one." ]
https://api.github.com/repos/huggingface/datasets/issues/7630
7,630
[bug] resume from ckpt skips samples if .map is applied
### Describe the bug resume from ckpt skips samples if .map is applied Maybe related: https://github.com/huggingface/datasets/issues/7538 ### Steps to reproduce the bug ```python from datasets import Dataset from datasets.distributed import split_dataset_by_node # Create dataset with map transformation def create...
open
2025-06-21T01:50:03
https://api.github.com/repos/huggingface/datasets/issues/7630/comments
null
false
[bug] resume from ckpt skips samples if .map is applied ### Describe the bug resume from ckpt skips samples if .map is applied Maybe related: https://github.com/huggingface/datasets/issues/7538 ### Steps to reproduce the bug ```python from datasets import Dataset from datasets.distributed import split_dataset_by_no...
[ "Thanks for reporting this — it looks like a separate but related bug to #7538, which involved sample loss when resuming an `IterableDataset` wrapped in `FormattedExamplesIterable`. That was resolved in #7553 by re-batching the iterable to track offset correctly.\n\nIn this case, the issue seems to arise specifical...
https://api.github.com/repos/huggingface/datasets/issues/7629
7,629
Add test for `as_iterable_dataset()` method in DatasetBuilder
This PR adds a test for the new `as_iterable_dataset()` method introduced in PR #7628. The test: - Loads a builder using `load_dataset_builder("c4", "en")` - Runs `download_and_prepare()` - Streams examples using `builder.as_iterable_dataset(split="train[:100]")` - Verifies streamed examples contain the "text" f...
open
2025-06-19T19:23:55
https://api.github.com/repos/huggingface/datasets/issues/7629/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7629", "html_url": "https://github.com/huggingface/datasets/pull/7629", "diff_url": "https://github.com/huggingface/datasets/pull/7629.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7629.patch", "merged_at": null }
true
Add test for `as_iterable_dataset()` method in DatasetBuilder This PR adds a test for the new `as_iterable_dataset()` method introduced in PR #7628. The test: - Loads a builder using `load_dataset_builder("c4", "en")` - Runs `download_and_prepare()` - Streams examples using `builder.as_iterable_dataset(split="tra...
[]
https://api.github.com/repos/huggingface/datasets/issues/7628
7,628
Add `as_iterable_dataset()` method to DatasetBuilder for streaming from cached Arrow files
This PR implements `builder.as_iterable_dataset(split=...)` as discussed in #5481. It allows users to load an `IterableDataset` directly from cached Arrow files (using ArrowReader and ArrowExamplesIterable), without loading the full dataset into memory. This is useful for large-scale training scenarios where memo...
open
2025-06-19T19:15:41
https://api.github.com/repos/huggingface/datasets/issues/7628/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7628", "html_url": "https://github.com/huggingface/datasets/pull/7628", "diff_url": "https://github.com/huggingface/datasets/pull/7628.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7628.patch", "merged_at": null }
true
Add `as_iterable_dataset()` method to DatasetBuilder for streaming from cached Arrow files This PR implements `builder.as_iterable_dataset(split=...)` as discussed in #5481. It allows users to load an `IterableDataset` directly from cached Arrow files (using ArrowReader and ArrowExamplesIterable), without loading th...
[]
https://api.github.com/repos/huggingface/datasets/issues/7627
7,627
Creating a HF Dataset from lakeFS with S3 storage takes too much time!
Hi, I’m new to HF dataset and I tried to create datasets based on data versioned in **lakeFS** _(**MinIO** S3 bucket as storage backend)_ Here I’m using ±30000 PIL image from MNIST data however it is taking around 12min to execute, which is a lot! From what I understand, it is loading the images into cache then buil...
closed
2025-06-19T14:28:41
https://api.github.com/repos/huggingface/datasets/issues/7627/comments
null
false
Creating a HF Dataset from lakeFS with S3 storage takes too much time! Hi, I’m new to HF dataset and I tried to create datasets based on data versioned in **lakeFS** _(**MinIO** S3 bucket as storage backend)_ Here I’m using ±30000 PIL image from MNIST data however it is taking around 12min to execute, which is a lot!...
[ "### > Update\n\nThe bottleneck, from what I understand, was making one network request per file\n\nFor 30k images, this meant 30k separate GET requests to the MinIO server through the S3 API, and that was killing the performance\n\nUsing webDataset to transform the large number of files to few .tar files and passi...
https://api.github.com/repos/huggingface/datasets/issues/7626
7,626
feat(map): reuse unchanged columns when input_columns specified to reduce disk usage (#6013)
## Summary This PR addresses [#6013](https://github.com/huggingface/datasets/issues/6013) by reusing unchanged columns from the original dataset in the `map()` method when `input_columns` is specified. ## What’s Implemented - Injected logic at the end of `Dataset.map()` to: - Identify untouched columns not ...
closed
2025-06-19T07:41:45
https://api.github.com/repos/huggingface/datasets/issues/7626/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7626", "html_url": "https://github.com/huggingface/datasets/pull/7626", "diff_url": "https://github.com/huggingface/datasets/pull/7626.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7626.patch", "merged_at": null }
true
feat(map): reuse unchanged columns when input_columns specified to reduce disk usage (#6013) ## Summary This PR addresses [#6013](https://github.com/huggingface/datasets/issues/6013) by reusing unchanged columns from the original dataset in the `map()` method when `input_columns` is specified. ## What’s Implement...
[]
https://api.github.com/repos/huggingface/datasets/issues/7625
7,625
feat: Add h5folder dataset loader for HDF5 support
### Related Issue Closes #3113 ### What does this PR do? This PR introduces a new dataset loader module called **`h5folder`** to support loading datasets stored in **HDF5 (.h5)** format. It allows users to do: ```python from datasets import load_dataset dataset = load_dataset("h5folder", data_dir="path/t...
open
2025-06-19T05:39:10
https://api.github.com/repos/huggingface/datasets/issues/7625/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7625", "html_url": "https://github.com/huggingface/datasets/pull/7625", "diff_url": "https://github.com/huggingface/datasets/pull/7625.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7625.patch", "merged_at": null }
true
feat: Add h5folder dataset loader for HDF5 support ### Related Issue Closes #3113 ### What does this PR do? This PR introduces a new dataset loader module called **`h5folder`** to support loading datasets stored in **HDF5 (.h5)** format. It allows users to do: ```python from datasets import load_dataset ...
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7625). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "I guess test failed cause import os, import h5py, and import datasets lines are not alp...
https://api.github.com/repos/huggingface/datasets/issues/7624
7,624
#Dataset Make "image" column appear first in dataset preview UI
Hi! #Dataset I’m currently uploading a dataset that includes an `"image"` column (PNG files), along with some metadata columns. The dataset is loaded from a .jsonl file. My goal is to have the "image" column appear as the first column in the dataset card preview UI on the :hugs: Hub. However, at the moment, the `"im...
closed
2025-06-18T09:25:19
https://api.github.com/repos/huggingface/datasets/issues/7624/comments
null
false
#Dataset Make "image" column appear first in dataset preview UI Hi! #Dataset I’m currently uploading a dataset that includes an `"image"` column (PNG files), along with some metadata columns. The dataset is loaded from a .jsonl file. My goal is to have the "image" column appear as the first column in the dataset card...
[ "Hi ! It should follow the same order as the order of the keys in the metadata file", "Hi! Thank you for your answer. \n\nAs you said it, I I forced every key in every JSON to have an order using `collections. OrderedDict` in Python. Now, it works!\n\nTY" ]
https://api.github.com/repos/huggingface/datasets/issues/7623
7,623
fix: raise error in FolderBasedBuilder when data_dir and data_files are missing
### Related Issues/PRs Fixes #6152 --- ### What changes are proposed in this pull request? This PR adds a dedicated validation check in the `_info()` method of the `FolderBasedBuilder` class to ensure that users provide either `data_dir` or `data_files` when loading folder-based datasets (such as `audiofold...
closed
2025-06-17T19:16:34
https://api.github.com/repos/huggingface/datasets/issues/7623/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7623", "html_url": "https://github.com/huggingface/datasets/pull/7623", "diff_url": "https://github.com/huggingface/datasets/pull/7623.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7623.patch", "merged_at": "2025-06-18T14:18...
true
fix: raise error in FolderBasedBuilder when data_dir and data_files are missing ### Related Issues/PRs Fixes #6152 --- ### What changes are proposed in this pull request? This PR adds a dedicated validation check in the `_info()` method of the `FolderBasedBuilder` class to ensure that users provide either `...
[ "@lhoestq Moved the logic to FolderBasedBuilder._info() as discussed in previous PR (#7618). Let me know if anything else is needed — happy to update!", "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7623). All of your documentation changes will be reflected on that endpoin...
https://api.github.com/repos/huggingface/datasets/issues/7622
7,622
Guard against duplicate builder_kwargs/config_kwargs in load_dataset_…
…builder (#4910 ) ### What does this PR do? Fixes edge case in `load_dataset_builder` by raising a `TypeError` if the same key exists in both `builder_kwargs` and `config_kwargs`. ### Implementation details - Added a guard clause in `load_dataset_builder` to detect duplicate keys between `builder_kwargs` an...
closed
2025-06-17T18:28:35
https://api.github.com/repos/huggingface/datasets/issues/7622/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7622", "html_url": "https://github.com/huggingface/datasets/pull/7622", "diff_url": "https://github.com/huggingface/datasets/pull/7622.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7622.patch", "merged_at": null }
true
Guard against duplicate builder_kwargs/config_kwargs in load_dataset_… …builder (#4910 ) ### What does this PR do? Fixes edge case in `load_dataset_builder` by raising a `TypeError` if the same key exists in both `builder_kwargs` and `config_kwargs`. ### Implementation details - Added a guard clause in `loa...
[ "This PR fixes the duplicate-kwargs edge case and includes a unit test. Would appreciate a review when you have a moment.\r\n\r\n@zach-huggingface\r\n@SunMarc " ]
https://api.github.com/repos/huggingface/datasets/issues/7621
7,621
minor docs data aug
null
closed
2025-06-17T14:46:57
https://api.github.com/repos/huggingface/datasets/issues/7621/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7621", "html_url": "https://github.com/huggingface/datasets/pull/7621", "diff_url": "https://github.com/huggingface/datasets/pull/7621.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7621.patch", "merged_at": "2025-06-17T14:47...
true
minor docs data aug
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7621). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7620
7,620
Fixes in docs
before release 4.0 (I also did minor improvements to `features` to not show their `id=None` in their `__repr__()`)
closed
2025-06-17T13:41:54
https://api.github.com/repos/huggingface/datasets/issues/7620/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7620", "html_url": "https://github.com/huggingface/datasets/pull/7620", "diff_url": "https://github.com/huggingface/datasets/pull/7620.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7620.patch", "merged_at": "2025-06-17T13:58...
true
Fixes in docs before release 4.0 (I also did minor improvements to `features` to not show their `id=None` in their `__repr__()`)
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7620). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7619
7,619
`from_list` fails while `from_generator` works for large datasets
### Describe the bug I am constructing a large time series dataset and observed that first constructing a list of entries and then using `Dataset.from_list` led to a crash as the number of items became large. However, this is not a problem when using `Dataset.from_generator`. ### Steps to reproduce the bug #### Snip...
open
2025-06-17T10:58:55
https://api.github.com/repos/huggingface/datasets/issues/7619/comments
null
false
`from_list` fails while `from_generator` works for large datasets ### Describe the bug I am constructing a large time series dataset and observed that first constructing a list of entries and then using `Dataset.from_list` led to a crash as the number of items became large. However, this is not a problem when using `D...
[ "@lhoestq any thoughts on this? ", "Thanks for the report! This behavior is expected due to how `from_list()` and `from_generator()` differ internally.\n\n- `from_list()` builds the entire dataset in memory at once, which can easily exceed limits (especially with variable-length arrays or millions of rows). The A...
https://api.github.com/repos/huggingface/datasets/issues/7618
7,618
fix: raise error when folder-based datasets are loaded without data_dir or data_files
### Related Issues/PRs <!-- Uncomment 'Resolve' if this PR can close the linked items. --> <!-- Resolve --> #6152 --- ### What changes are proposed in this pull request? This PR adds an early validation step for folder-based datasets (like `audiofolder`) to prevent silent fallback behavior. **Before t...
open
2025-06-16T07:43:59
https://api.github.com/repos/huggingface/datasets/issues/7618/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7618", "html_url": "https://github.com/huggingface/datasets/pull/7618", "diff_url": "https://github.com/huggingface/datasets/pull/7618.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7618.patch", "merged_at": null }
true
fix: raise error when folder-based datasets are loaded without data_dir or data_files ### Related Issues/PRs <!-- Uncomment 'Resolve' if this PR can close the linked items. --> <!-- Resolve --> #6152 --- ### What changes are proposed in this pull request? This PR adds an early validation step for folder-...
[ "Great ! Since this logic is specific to one builder class maybe this check can be in the class definition ? I think you can put it in FolderBasedBuilder's `_info()` method." ]
https://api.github.com/repos/huggingface/datasets/issues/7617
7,617
Unwanted column padding in nested lists of dicts
```python from datasets import Dataset dataset = Dataset.from_dict({ "messages": [ [ {"a": "...",}, {"b": "...",}, ], ] }) print(dataset[0]) ``` What I get: ``` {'messages': [{'a': '...', 'b': None}, {'a': None, 'b': '...'}]} ``` What I want: ``` {'messages': [{'a': '...
closed
2025-06-15T22:06:17
https://api.github.com/repos/huggingface/datasets/issues/7617/comments
null
false
Unwanted column padding in nested lists of dicts ```python from datasets import Dataset dataset = Dataset.from_dict({ "messages": [ [ {"a": "...",}, {"b": "...",}, ], ] }) print(dataset[0]) ``` What I get: ``` {'messages': [{'a': '...', 'b': None}, {'a': None, 'b': '......
[ "Answer from @lhoestq:\n\n> No\n> This is because Arrow and Parquet a columnar format: they require a fixed type for each column. So if you have nested dicts, each item should have the same subfields\n\nThe way around I found is the handle it after sampling with this function:\n\n```python\ndef remove_padding(examp...
https://api.github.com/repos/huggingface/datasets/issues/7616
7,616
Torchcodec decoding
Closes #7607 ## New signatures ### Audio ```python Audio(sampling_rate: Optional[int] = None, mono: bool = True, decode: bool = True, stream_index: Optional[int] = None) Audio.encode_example(self, value: Union[str, bytes, bytearray, dict, "AudioDecoder"]) -> dict Audio.decode_example(self, value: dict, token_...
closed
2025-06-13T19:06:07
https://api.github.com/repos/huggingface/datasets/issues/7616/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7616", "html_url": "https://github.com/huggingface/datasets/pull/7616", "diff_url": "https://github.com/huggingface/datasets/pull/7616.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7616.patch", "merged_at": "2025-06-19T18:25...
true
Torchcodec decoding Closes #7607 ## New signatures ### Audio ```python Audio(sampling_rate: Optional[int] = None, mono: bool = True, decode: bool = True, stream_index: Optional[int] = None) Audio.encode_example(self, value: Union[str, bytes, bytearray, dict, "AudioDecoder"]) -> dict Audio.decode_example(self,...
[ "@lhoestq any updates on when this will be merged? Let me know if theres anything you need from my end.", "Btw I plan to release `datasets` 4.0 after your PR, this will be a major milestone :)", "@lhoestq just pushed the new changes.", "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs...
https://api.github.com/repos/huggingface/datasets/issues/7615
7,615
remove unused code
null
closed
2025-06-13T12:37:30
https://api.github.com/repos/huggingface/datasets/issues/7615/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7615", "html_url": "https://github.com/huggingface/datasets/pull/7615", "diff_url": "https://github.com/huggingface/datasets/pull/7615.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7615.patch", "merged_at": "2025-06-13T12:37...
true
remove unused code
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7615). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7614
7,614
Lazy column
Same as https://github.com/huggingface/datasets/pull/7564 but for `Dataset`, cc @TopCoder2K FYI e.g. `ds[col]` now returns a lazy Column instead of a list This way calling `ds[col][idx]` only loads the required data in memory (bonus: also supports subfields access with `ds[col][subcol][idx]`) the breaking c...
closed
2025-06-13T12:12:57
https://api.github.com/repos/huggingface/datasets/issues/7614/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7614", "html_url": "https://github.com/huggingface/datasets/pull/7614", "diff_url": "https://github.com/huggingface/datasets/pull/7614.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7614.patch", "merged_at": "2025-06-17T13:08...
true
Lazy column Same as https://github.com/huggingface/datasets/pull/7564 but for `Dataset`, cc @TopCoder2K FYI e.g. `ds[col]` now returns a lazy Column instead of a list This way calling `ds[col][idx]` only loads the required data in memory (bonus: also supports subfields access with `ds[col][subcol][idx]`) th...
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7614). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7613
7,613
fix parallel push_to_hub in dataset_dict
null
closed
2025-06-13T09:02:24
https://api.github.com/repos/huggingface/datasets/issues/7613/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7613", "html_url": "https://github.com/huggingface/datasets/pull/7613", "diff_url": "https://github.com/huggingface/datasets/pull/7613.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7613.patch", "merged_at": "2025-06-13T12:30...
true
fix parallel push_to_hub in dataset_dict
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7613). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7612
7,612
Provide an option of robust dataset iterator with error handling
### Feature request Adding an option to skip corrupted data samples. Currently the datasets behavior is throwing errors if the data sample if corrupted and let user aware and handle the data corruption. When I tried to try-catch the error at user level, the iterator will raise StopIteration when I called next() again....
open
2025-06-13T00:40:48
https://api.github.com/repos/huggingface/datasets/issues/7612/comments
null
false
Provide an option of robust dataset iterator with error handling ### Feature request Adding an option to skip corrupted data samples. Currently the datasets behavior is throwing errors if the data sample if corrupted and let user aware and handle the data corruption. When I tried to try-catch the error at user level, ...
[ "Hi ! Maybe we can add a parameter to the Image() type to make it to return `None` instead of raising an error in case of corruption ? Would that help ?", "Hi! 👋🏼 I just opened PR [#7638](https://github.com/huggingface/datasets/pull/7638) to address this issue.\n\n### 🔧 What it does:\nIt adds an `ignore_decode...
https://api.github.com/repos/huggingface/datasets/issues/7611
7,611
Code example for dataset.add_column() does not reflect correct way to use function
https://github.com/huggingface/datasets/blame/38d4d0e11e22fdbc4acf373d2421d25abeb43439/src/datasets/arrow_dataset.py#L5925C10-L5925C10 The example seems to suggest that dataset.add_column() can add column inplace, however, this is wrong -- it cannot. It returns a new dataset with the column added to it.
closed
2025-06-12T19:42:29
https://api.github.com/repos/huggingface/datasets/issues/7611/comments
null
false
Code example for dataset.add_column() does not reflect correct way to use function https://github.com/huggingface/datasets/blame/38d4d0e11e22fdbc4acf373d2421d25abeb43439/src/datasets/arrow_dataset.py#L5925C10-L5925C10 The example seems to suggest that dataset.add_column() can add column inplace, however, this is wrong...
[ "Hi @shaily99 \n\nThanks for pointing this out — you're absolutely right!\n\nThe current example in the docstring for add_column() implies in-place modification, which is misleading since add_column() actually returns a new dataset.", "#self-assign\n" ]
https://api.github.com/repos/huggingface/datasets/issues/7610
7,610
i cant confirm email
### Describe the bug This is dificult, I cant confirm email because I'm not get any email! I cant post forum because I cant confirm email! I can send help desk because... no exist on web page. paragraph 44 ### Steps to reproduce the bug rthjrtrt ### Expected behavior ewtgfwetgf ### Environment info sdgfswdegfwe
open
2025-06-12T18:58:49
https://api.github.com/repos/huggingface/datasets/issues/7610/comments
null
false
i cant confirm email ### Describe the bug This is dificult, I cant confirm email because I'm not get any email! I cant post forum because I cant confirm email! I can send help desk because... no exist on web page. paragraph 44 ### Steps to reproduce the bug rthjrtrt ### Expected behavior ewtgfwetgf ### Environme...
[ "Will you please clarify the issue by some screenshots or more in-depth explanation?", "![Image](https://github.com/user-attachments/assets/ebe58239-72ef-43f6-a849-35736878fbf3)\nThis is clarify answer. I have not received a letter.\n\n**The graphic at the top shows how I don't get any letter. Can you show in a c...
https://api.github.com/repos/huggingface/datasets/issues/7609
7,609
Update `_dill.py` to use `co_linetable` for Python 3.10+ in place of `co_lnotab`
Not 100% about this one, but it seems to be recommended. ``` /fsx/qgallouedec/miniconda3/envs/trl/lib/python3.12/site-packages/datasets/utils/_dill.py:385: DeprecationWarning: co_lnotab is deprecated, use co_lines instead. ``` Tests pass locally. And the warning is gone with this change. https://peps.python.or...
closed
2025-06-12T13:47:01
https://api.github.com/repos/huggingface/datasets/issues/7609/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7609", "html_url": "https://github.com/huggingface/datasets/pull/7609", "diff_url": "https://github.com/huggingface/datasets/pull/7609.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7609.patch", "merged_at": "2025-06-16T12:14...
true
Update `_dill.py` to use `co_linetable` for Python 3.10+ in place of `co_lnotab` Not 100% about this one, but it seems to be recommended. ``` /fsx/qgallouedec/miniconda3/envs/trl/lib/python3.12/site-packages/datasets/utils/_dill.py:385: DeprecationWarning: co_lnotab is deprecated, use co_lines instead. ``` Tests ...
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7609). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "not 100% sure either, I tried removing unnecessary checks - let me know if they sound g...
https://api.github.com/repos/huggingface/datasets/issues/7608
7,608
Tests typing and fixes for push_to_hub
todo: - [x] fix TestPushToHub.test_push_dataset_dict_to_hub_iterable_num_proc
closed
2025-06-11T17:13:52
https://api.github.com/repos/huggingface/datasets/issues/7608/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7608", "html_url": "https://github.com/huggingface/datasets/pull/7608", "diff_url": "https://github.com/huggingface/datasets/pull/7608.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7608.patch", "merged_at": "2025-06-12T21:15...
true
Tests typing and fixes for push_to_hub todo: - [x] fix TestPushToHub.test_push_dataset_dict_to_hub_iterable_num_proc
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7608). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7607
7,607
Video and audio decoding with torchcodec
### Feature request Pytorch is migrating video processing to torchcodec and it's pretty cool. It would be nice to migrate both the audio and video features to use torchcodec instead of torchaudio/video. ### Motivation My use case is I'm working on a multimodal AV model, and what's nice about torchcodec is I can extr...
closed
2025-06-11T07:02:30
https://api.github.com/repos/huggingface/datasets/issues/7607/comments
null
false
Video and audio decoding with torchcodec ### Feature request Pytorch is migrating video processing to torchcodec and it's pretty cool. It would be nice to migrate both the audio and video features to use torchcodec instead of torchaudio/video. ### Motivation My use case is I'm working on a multimodal AV model, and w...
[ "Good idea ! let me know if you have any question or if I can help", "@lhoestq Almost finished, but I'm having trouble understanding this test case.\nThis is how it looks originally. The `map` function is called, and then `with_format` is called. According to the test case example[\"video\"] is supposed to be a V...
https://api.github.com/repos/huggingface/datasets/issues/7606
7,606
Add `num_proc=` to `.push_to_hub()` (Dataset and IterableDataset)
null
closed
2025-06-10T14:35:10
https://api.github.com/repos/huggingface/datasets/issues/7606/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7606", "html_url": "https://github.com/huggingface/datasets/pull/7606", "diff_url": "https://github.com/huggingface/datasets/pull/7606.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7606.patch", "merged_at": "2025-06-11T16:47...
true
Add `num_proc=` to `.push_to_hub()` (Dataset and IterableDataset)
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7606). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7605
7,605
Make `push_to_hub` atomic (#7600)
null
closed
2025-06-09T22:29:38
https://api.github.com/repos/huggingface/datasets/issues/7605/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7605", "html_url": "https://github.com/huggingface/datasets/pull/7605", "diff_url": "https://github.com/huggingface/datasets/pull/7605.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7605.patch", "merged_at": null }
true
Make `push_to_hub` atomic (#7600)
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7605). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.", "Hi ! unfortunately we can't allow atomic commits for commits with hundreds of files add...
https://api.github.com/repos/huggingface/datasets/issues/7604
7,604
Docs and more methods for IterableDataset: push_to_hub, to_parquet...
to_csv, to_json, to_sql, to_pandas, to_polars, to_dict, to_list
closed
2025-06-09T16:44:40
https://api.github.com/repos/huggingface/datasets/issues/7604/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7604", "html_url": "https://github.com/huggingface/datasets/pull/7604", "diff_url": "https://github.com/huggingface/datasets/pull/7604.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7604.patch", "merged_at": "2025-06-10T13:15...
true
Docs and more methods for IterableDataset: push_to_hub, to_parquet... to_csv, to_json, to_sql, to_pandas, to_polars, to_dict, to_list
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7604). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7603
7,603
No TF in win tests
null
closed
2025-06-09T13:56:34
https://api.github.com/repos/huggingface/datasets/issues/7603/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7603", "html_url": "https://github.com/huggingface/datasets/pull/7603", "diff_url": "https://github.com/huggingface/datasets/pull/7603.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7603.patch", "merged_at": "2025-06-09T15:33...
true
No TF in win tests
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7603). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7602
7,602
Enhance error handling and input validation across multiple modules
This PR improves the robustness and user experience by: 1. **Audio Module**: - Added clear error messages when required fields ('path' or 'bytes') are missing in audio encoding 2. **DatasetDict**: - Enhanced key access error messages to show available splits when an invalid key is accessed 3. **NonMuta...
open
2025-06-08T23:01:06
https://api.github.com/repos/huggingface/datasets/issues/7602/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7602", "html_url": "https://github.com/huggingface/datasets/pull/7602", "diff_url": "https://github.com/huggingface/datasets/pull/7602.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7602.patch", "merged_at": null }
true
Enhance error handling and input validation across multiple modules This PR improves the robustness and user experience by: 1. **Audio Module**: - Added clear error messages when required fields ('path' or 'bytes') are missing in audio encoding 2. **DatasetDict**: - Enhanced key access error messages to s...
[]
https://api.github.com/repos/huggingface/datasets/issues/7600
7,600
`push_to_hub` is not concurrency safe (dataset schema corruption)
### Describe the bug Concurrent processes modifying and pushing a dataset can overwrite each others' dataset card, leaving the dataset unusable. Consider this scenario: - we have an Arrow dataset - there are `N` configs of the dataset - there are `N` independent processes operating on each of the individual configs (...
closed
2025-06-07T17:28:56
https://api.github.com/repos/huggingface/datasets/issues/7600/comments
null
false
`push_to_hub` is not concurrency safe (dataset schema corruption) ### Describe the bug Concurrent processes modifying and pushing a dataset can overwrite each others' dataset card, leaving the dataset unusable. Consider this scenario: - we have an Arrow dataset - there are `N` configs of the dataset - there are `N` i...
[ "@lhoestq can you please take a look? I've submitted a PR that fixes this issue. Thanks.", "Thanks for the ping ! As I said in https://github.com/huggingface/datasets/pull/7605 there is maybe a more general approach using retries :)", "Dropping this due to inactivity; we've implemented push_to_hub outside of HF...
https://api.github.com/repos/huggingface/datasets/issues/7599
7,599
My already working dataset (when uploaded few months ago) now is ignoring metadata.jsonl
### Describe the bug Hi everyone, I uploaded my dataset https://huggingface.co/datasets/PRAIG/SMB a few months ago while I was waiting for a conference acceptance response. Without modifying anything in the dataset repository now the Dataset viewer is not rendering the metadata.jsonl annotations, neither it is being d...
closed
2025-06-06T18:59:00
https://api.github.com/repos/huggingface/datasets/issues/7599/comments
null
false
My already working dataset (when uploaded few months ago) now is ignoring metadata.jsonl ### Describe the bug Hi everyone, I uploaded my dataset https://huggingface.co/datasets/PRAIG/SMB a few months ago while I was waiting for a conference acceptance response. Without modifying anything in the dataset repository now ...
[ "Maybe its been a recent update, but i can manage to load the metadata.jsonl separately from the images with:\n\n```\nmetadata = load_dataset(\"PRAIG/SMB\", split=\"train\", data_files=[\"*.jsonl\"])\nimages = load_dataset(\"PRAIG/SMB\", split=\"train\")\n```\nDo you know it this is an expected behaviour? This make...
https://api.github.com/repos/huggingface/datasets/issues/7598
7,598
fix string_to_dict usage for windows
null
closed
2025-06-06T15:54:29
https://api.github.com/repos/huggingface/datasets/issues/7598/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7598", "html_url": "https://github.com/huggingface/datasets/pull/7598", "diff_url": "https://github.com/huggingface/datasets/pull/7598.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7598.patch", "merged_at": "2025-06-06T16:12...
true
fix string_to_dict usage for windows
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7598). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7597
7,597
Download datasets from a private hub in 2025
### Feature request In the context of a private hub deployment, customers would like to use load_dataset() to load datasets from their hub, not from the public hub. This doesn't seem to be configurable at the moment and it would be nice to add this feature. The obvious workaround is to clone the repo first and then l...
closed
2025-06-06T07:55:19
https://api.github.com/repos/huggingface/datasets/issues/7597/comments
null
false
Download datasets from a private hub in 2025 ### Feature request In the context of a private hub deployment, customers would like to use load_dataset() to load datasets from their hub, not from the public hub. This doesn't seem to be configurable at the moment and it would be nice to add this feature. The obvious wor...
[ "Hi ! First, and in the general case, Hugging Face does offer to host private datasets, and with a subscription you can even choose the region in which the repositories are hosted (US, EU)\n\nThen if you happen to have a private deployment, you can set the HF_ENDPOINT environment variable (same as in https://github...
https://api.github.com/repos/huggingface/datasets/issues/7596
7,596
Add albumentations to use dataset
1. Fixed broken link to the list of transforms in torchvison. 2. Extended section about video image augmentations with an example from Albumentations.
closed
2025-06-05T20:39:46
https://api.github.com/repos/huggingface/datasets/issues/7596/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7596", "html_url": "https://github.com/huggingface/datasets/pull/7596", "diff_url": "https://github.com/huggingface/datasets/pull/7596.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7596.patch", "merged_at": "2025-06-17T14:44...
true
Add albumentations to use dataset 1. Fixed broken link to the list of transforms in torchvison. 2. Extended section about video image augmentations with an example from Albumentations.
[ "@lhoestq ping", "@lhoestq ping", "@lhoestq Thanks. Cleaned up torchvision." ]
https://api.github.com/repos/huggingface/datasets/issues/7595
7,595
Add `IterableDataset.push_to_hub()`
Basic implementation, which writes one shard per input dataset shard. This is to be improved later. Close https://github.com/huggingface/datasets/issues/5665 PS: for image/audio datasets structured as actual image/audio files (not parquet), you can sometimes speed it up with `ds.decode(num_threads=...).push_to_h...
closed
2025-06-05T15:29:32
https://api.github.com/repos/huggingface/datasets/issues/7595/comments
{ "url": "https://api.github.com/repos/huggingface/datasets/pulls/7595", "html_url": "https://github.com/huggingface/datasets/pull/7595", "diff_url": "https://github.com/huggingface/datasets/pull/7595.diff", "patch_url": "https://github.com/huggingface/datasets/pull/7595.patch", "merged_at": "2025-06-06T16:12...
true
Add `IterableDataset.push_to_hub()` Basic implementation, which writes one shard per input dataset shard. This is to be improved later. Close https://github.com/huggingface/datasets/issues/5665 PS: for image/audio datasets structured as actual image/audio files (not parquet), you can sometimes speed it up with `...
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7595). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update." ]
https://api.github.com/repos/huggingface/datasets/issues/7594
7,594
Add option to ignore keys/columns when loading a dataset from jsonl(or any other data format)
### Feature request Hi, I would like the option to ignore keys/columns when loading a dataset from files (e.g. jsonl). ### Motivation I am working on a dataset which is built on jsonl. It seems the dataset is unclean and a column has different types in each row. I can't clean this or remove the column (It is not my ...
open
2025-06-05T11:12:45
https://api.github.com/repos/huggingface/datasets/issues/7594/comments
null
false
Add option to ignore keys/columns when loading a dataset from jsonl(or any other data format) ### Feature request Hi, I would like the option to ignore keys/columns when loading a dataset from files (e.g. jsonl). ### Motivation I am working on a dataset which is built on jsonl. It seems the dataset is unclean and a ...
[ "Good point, I'd be in favor of having the `columns` argument in `JsonConfig` (and the others) to align with `ParquetConfig` to let users choose which columns to load and ignore the rest", "Is it possible to ignore columns when using parquet? ", "Yes, you can pass `columns=...` to load_dataset to select which c...