id int64 600M 4.6B | node_id stringlengths 18 24 | number int64 2 8.24k | title stringlengths 1 290 | state stringclasses 2
values | state_reason stringclasses 5
values | created_at timestamp[s]date 2020-04-14 18:18:51 2026-06-05 18:08:17 | updated_at timestamp[s]date 2020-04-29 09:23:05 2026-06-05 21:18:34 | closed_at stringlengths 0 20 | html_url stringlengths 48 51 | user stringlengths 3 26 | labels listlengths 0 4 | assignees listlengths 0 4 | milestone stringclasses 7
values | comments listlengths 0 70 | author_association stringclasses 4
values | body stringlengths 0 228k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3,548,584,085 | I_kwDODunzps7TgxiV | 7,829 | Memory leak / Large memory usage with num_workers = 0 and numerous dataset within DatasetDict | open | 2025-10-24T09:51:38 | 2026-01-31T17:48:50 | https://github.com/huggingface/datasets/issues/7829 | raphaelsty | [] | [] | [
"Thanks for the report, this is possibly related #7722 and #7694.\n\nCould you pls provide steps to reproduce this?",
"To overcome this issue right now I did simply reduce the size of the dataset and ended up running a for loop (my training has now a constant learning rate schedule). From what I understood, and I... | NONE | ### Describe the bug
Hi team, first off, I love the datasets library! 🥰
I'm encountering a potential memory leak / increasing memory usage when training a model on a very large DatasetDict.
Setup: I have a DatasetDict containing 362 distinct datasets, which sum up to ~2.8 billion rows.
Training Task: I'm performin... | |||
3,520,913,195 | I_kwDODunzps7R3N8r | 7,821 | Building a dataset with large variable size arrays results in error ArrowInvalid: Value X too large to fit in C integer type | open | 2025-10-16T08:45:17 | 2025-10-20T13:42:05 | https://github.com/huggingface/datasets/issues/7821 | kkoutini | [] | [] | [
"Thanks for reporting ! You can fix this by specifying the output type explicitly and use `LargeList` which uses int64 for offsets:\n\n```python\nfeatures = Features({\"audio\": LargeList(Value(\"uint16\"))})\nds = ds.map(..., features=features)\n```\n\nIt would be cool to improve `list_of_pa_arrays_to_pyarrow_list... | CONTRIBUTOR | ### Describe the bug
I used map to store raw audio waveforms of variable lengths in a column of a dataset the `map` call fails with ArrowInvalid: Value X too large to fit in C integer type.
```
Traceback (most recent call last):
Traceback (most recent call last):
File "...lib/python3.12/site-packages/multiprocess/p... | |||
3,517,086,110 | I_kwDODunzps7Ronme | 7,819 | Cannot download opus dataset | open | 2025-10-15T09:06:19 | 2025-10-20T13:45:16 | https://github.com/huggingface/datasets/issues/7819 | liamsun2019 | [] | [] | [
"Hi ! it seems \"en-zh\" doesn't exist for this dataset\n\nYou can see the list of subsets here: https://huggingface.co/datasets/Helsinki-NLP/opus_books"
] | NONE | When I tried to download opus_books using:
from datasets import load_dataset
dataset = load_dataset("Helsinki-NLP/opus_books")
I got the following errors:
FileNotFoundError: Couldn't find any data file at /workspace/Helsinki-NLP/opus_books. Couldn't find 'Helsinki-NLP/opus_books' on the Hugging Face Hub either: Local... | |||
3,515,887,618 | I_kwDODunzps7RkDAC | 7,818 | train_test_split and stratify breaks with Numpy 2.0 | closed | completed | 2025-10-15T00:01:19 | 2025-10-28T16:10:44 | 2025-10-28T16:10:44Z | https://github.com/huggingface/datasets/issues/7818 | davebulaval | [] | [] | [
"I can't reproduce this. Could you pls provide an example with a public dataset/artificial dataset and show how you loaded that?\n\nThis works for me:\n\n```python\nimport numpy as np\nfrom datasets import Dataset, Features, ClassLabel, Value\n\ndata = {\"text\": [f\"sample_{i}\" for i in range(100)], \"label\": [i... | NONE | ### Describe the bug
As stated in the title, since Numpy changed in version >2.0 with copy, the stratify parameters break.
e.g. `all_dataset.train_test_split(test_size=0.2,stratify_by_column="label")` returns a Numpy error.
It works if you downgrade Numpy to a version lower than 2.0.
### Steps to reproduce the bug
... | |
3,512,210,206 | I_kwDODunzps7RWBMe | 7,816 | disable_progress_bar() not working as expected | closed | completed | 2025-10-14T03:25:39 | 2025-10-14T23:49:26 | 2025-10-14T23:49:26Z | https://github.com/huggingface/datasets/issues/7816 | windmaple | [] | [] | [
"@xianbaoqian ",
"Closing this one since it's a Xet issue."
] | NONE | ### Describe the bug
Hi,
I'm trying to load a dataset on Kaggle TPU image. There is some known compat issue with progress bar on Kaggle, so I'm trying to disable the progress bar globally. This does not work as you can see in [here](https://www.kaggle.com/code/windmaple/hf-datasets-issue).
In contract, disabling pro... | |
3,503,446,288 | I_kwDODunzps7Q0lkQ | 7,813 | Caching does not work when using python3.14 | closed | completed | 2025-10-10T15:36:46 | 2025-10-27T17:08:26 | 2025-10-27T17:08:26Z | https://github.com/huggingface/datasets/issues/7813 | intexcor | [] | [] | [
"https://github.com/uqfoundation/dill/issues/725",
"@intexcor does #7817 fix your problem?"
] | NONE | ### Describe the bug
Traceback (most recent call last):
File "/workspace/ctn.py", line 8, in <module>
ds = load_dataset(f"naver-clova-ix/synthdog-{lang}") # или "synthdog-zh" для китайского
File "/workspace/.venv/lib/python3.14/site-packages/datasets/load.py", line 1397, in load_dataset
builder_instance =... | |
3,500,741,658 | I_kwDODunzps7QqRQa | 7,811 | SIGSEGV when Python exits due to near null deref | open | 2025-10-09T22:00:11 | 2025-10-10T22:09:24 | https://github.com/huggingface/datasets/issues/7811 | iankronquist | [] | [] | [
"The issue seems to come from `dill` which is a `datasets` dependency, e.g. this segfaults:\n\n```python\nimport dill\nfrom tqdm import tqdm\nprogress_bar = tqdm(total=(1000), unit='cols', desc='cols ')\nprogress_bar.update(1)\n```\n\n`tqdm` seems to segfault when `dill` is imported. I only found this about segfaul... | NONE | ### Describe the bug
When I run the following python script using datasets I get a segfault.
```python
from datasets import load_dataset
from tqdm import tqdm
progress_bar = tqdm(total=(1000), unit='cols', desc='cols ')
progress_bar.update(1)
```
```
% lldb -- python3 crashmin.py
(lldb) target create "python3"
Cur... | |||
3,498,534,596 | I_kwDODunzps7Qh2bE | 7,804 | Support scientific data formats | open | 2025-10-09T10:18:24 | 2025-11-26T16:09:43 | https://github.com/huggingface/datasets/issues/7804 | lhoestq | [] | [] | [
"Please add the support for `Zarr`! That's what we use in the Bioimaging community. It is crucial, because raw upload of a *single* bio image can take _terrabytes in memory_!\n\nThe python library would be `bioio` or `zarr`:\n- [ ] Zarr: `bioio` or `zarr`\n\nSee a [Zarr example](https://ome.github.io/ome-ngff-valid... | MEMBER | List of formats and libraries we can use to load the data in `datasets`:
- [ ] DICOMs: pydicom
- [x] NIfTIs: nibabel
- [ ] WFDB: wfdb
cc @zaRizk7 for viz
Feel free to comment / suggest other formats and libs you'd like to see or to share your interest in one of the mentioned format | |||
3,497,454,119 | I_kwDODunzps7Qduon | 7,802 | [Docs] Missing documentation for `Dataset.from_dict` | open | 2025-10-09T02:54:41 | 2025-10-19T16:09:33 | https://github.com/huggingface/datasets/issues/7802 | aaronshenhao | [] | [] | [
"I'd like to work on this documentation issue.",
"Hi I'd like to work on this. I can see the docstring is already in the code. \nCould you confirm:\n1. Is this still available?\n2. Should I add this to the main_classes.md file, or is there a specific \n documentation file I should update?\n3. Are there any form... | NONE | Documentation link: https://huggingface.co/docs/datasets/en/package_reference/main_classes
Link to method (docstring present): https://github.com/huggingface/datasets/blob/6f2502c5a026caa89839713f6f7c8b958e5e83eb/src/datasets/arrow_dataset.py#L1029
The docstring is present for the function, but seems missing from the... | |||
3,484,470,782 | I_kwDODunzps7PsM3- | 7,798 | Audio dataset is not decoding on 4.1.1 | open | 2025-10-05T06:37:50 | 2025-10-06T14:07:55 | https://github.com/huggingface/datasets/issues/7798 | thewh1teagle | [] | [] | [
"Previously (datasets<=3.6.0), audio columns were decoded automatically when accessing a row. Now, for performance reasons, audio decoding is lazy by default: you just see the file path unless you explicitly cast the column to Audio.\n\nHere’s the fix (following the current [datasets audio docs](https://huggingface... | NONE | ### Describe the bug
The audio column remain as non-decoded objects even when accessing them.
```python
dataset = load_dataset("MrDragonFox/Elise", split = "train")
dataset[0] # see that it doesn't show 'array' etc...
```
Works fine with `datasets==3.6.0`
Followed the docs in
- https://huggingface.co/docs/dataset... | |||
3,459,496,971 | I_kwDODunzps7OM7wL | 7,793 | Cannot load dataset, fails with nested data conversions not implemented for chunked array outputs | open | 2025-09-27T01:03:12 | 2025-09-27T21:35:31 | https://github.com/huggingface/datasets/issues/7793 | neevparikh | [] | [] | [
"Hey @neevparikh,\nThanks for reporting this! I can reproduce the issue and have identified the root cause.\nProblem: The metr-evals/malt-public dataset contains deeply nested conversation data that exceeds PyArrow's 16MB chunk limit. When PyArrow tries to read it in chunks, it hits a fundamental limitation: \"Nest... | NONE | ### Describe the bug
Hi! When I load this dataset, it fails with a pyarrow error. I'm using datasets 4.1.1, though I also see this with datasets 4.1.2
To reproduce:
```
import datasets
ds = datasets.load_dataset(path="metr-evals/malt-public", name="irrelevant_detail")
```
Error:
```
Traceback (most recent call las... | |||
3,456,802,210 | I_kwDODunzps7OCp2i | 7,792 | Concatenate IterableDataset instances and distribute underlying shards in a RoundRobin manner | closed | completed | 2025-09-26T10:05:19 | 2025-10-15T18:05:23 | 2025-10-15T18:05:23Z | https://github.com/huggingface/datasets/issues/7792 | LTMeyer | [
"enhancement"
] | [] | [
"# With `datasets.Dataset`\n\nHere is an small script that shows the distribution differences of samples between `interleave_datasets`, `concatenate_datasets` and `concatenate_datasets` + shuffling.\n\n```python\nimport datasets as hf_datasets\n\ndef gen(dataset: int, n_samples: int):\n for i in range(n_samples)... | NONE | ### Feature request
I would like to be able to concatenate multiple `IterableDataset` with possibly different features. I would like to then be able to stream the results in parallel (both using DDP and multiple workers in the pytorch DataLoader). I want the merge of datasets to be well balanced between the different ... | |
3,450,913,796 | I_kwDODunzps7NsMQE | 7,788 | `Dataset.to_sql` doesn't utilize `num_proc` | open | 2025-09-24T20:34:47 | 2025-09-24T20:35:01 | https://github.com/huggingface/datasets/issues/7788 | tcsmaster | [] | [] | [] | NONE | The underlying `SqlDatasetWriter` has `num_proc` as an available argument [here](https://github.com/huggingface/datasets/blob/5dc1a179783dff868b0547c8486268cfaea1ea1f/src/datasets/io/sql.py#L63) , but `Dataset.to_sql()` does not accept it, therefore it is always using one process for the SQL conversion. | |||
3,429,267,259 | I_kwDODunzps7MZnc7 | 7,780 | BIGPATENT dataset inaccessible (deprecated script loader) | closed | completed | 2025-09-18T08:25:34 | 2025-09-25T14:36:13 | 2025-09-25T14:36:13Z | https://github.com/huggingface/datasets/issues/7780 | ishmaifan | [] | [] | [
"Hi ! I opened https://huggingface.co/datasets/NortheasternUniversity/big_patent/discussions/7 to update the dataset, hopefully it's merged soon !",
"The dataset now works with `datasets` v4 ! closing this issue"
] | NONE | dataset: https://huggingface.co/datasets/NortheasternUniversity/big_patent
When I try to load it with the datasets library, it fails with:
RuntimeError: Dataset scripts are no longer supported, but found big_patent.py
Could you please publish a Parquet/Arrow export of BIGPATENT on the Hugging Face so that it can be... | |
3,424,462,082 | I_kwDODunzps7MHSUC | 7,777 | push_to_hub not overwriting but stuck in a loop when there are existing commits | closed | completed | 2025-09-17T03:15:35 | 2025-09-17T19:31:14 | 2025-09-17T19:31:14Z | https://github.com/huggingface/datasets/issues/7777 | Darejkal | [] | [] | [
"HTTP 412 means a commit happened in the meantime, so `get_deletions_and_dataset_card` has to retry to get the latest version of the dataset card and what files to delete based on the latest version of the dataset repository\n\nAre you running other operations in the dataset repo for your push_to_hub ?",
"There w... | NONE | ### Describe the bug
`get_deletions_and_dataset_card` stuck at error a commit has happened error since push to hub for http error 412 for tag 4.1.0. The error does not exists in 4.0.0.
### Steps to reproduce the bug
Create code to use push_to_hub, ran twice each time with different content for datasets.Dataset.
The... | |
3,417,353,751 | I_kwDODunzps7LsK4X | 7,772 | Error processing scalar columns using tensorflow. | open | 2025-09-15T10:36:31 | 2025-09-27T08:22:44 | https://github.com/huggingface/datasets/issues/7772 | khteh | [] | [] | [
"Using tf.convert_to_tensor works fine:\n\n```\nimport tensorflow as tf\n\nstart_pos = tf.convert_to_tensor(train_ds['start_positions'], dtype=tf.int64)\nstart_pos = tf.reshape(start_pos, [-1, 1])\n```\n\n\nAlternatively, using the built-in to_tf_dataset also avoids the issue:\n\n```\ntrain_tf = train_ds.to_tf_data... | NONE | `datasets==4.0.0`
```
columns_to_return = ['input_ids','attention_mask', 'start_positions', 'end_positions']
train_ds.set_format(type='tf', columns=columns_to_return)
```
`train_ds`:
```
train_ds type: <class 'datasets.arrow_dataset.Dataset'>, shape: (1000, 9)
columns: ['question', 'sentences', 'answer', 'str_idx', 'en... | |||
3,411,654,444 | I_kwDODunzps7LWbcs | 7,767 | Custom `dl_manager` in `load_dataset` | open | 2025-09-12T19:06:23 | 2026-03-05T20:28:06 | https://github.com/huggingface/datasets/issues/7767 | ain-soph | [
"enhancement"
] | [] | [
"Any feedback from maintainers on this?"
] | CONTRIBUTOR | ### Feature request
https://github.com/huggingface/datasets/blob/4.0.0/src/datasets/load.py#L1411-L1418
```
def load_dataset(
...
dl_manager: Optional[DownloadManager] = None, # add this new argument
**config_kwargs,
) -> Union[DatasetDict, Dataset, IterableDatasetDict, IterableDataset]:
...
# ... | |||
3,411,611,165 | I_kwDODunzps7LWQ4d | 7,766 | cast columns to Image/Audio/Video with `storage_options` | open | 2025-09-12T18:51:01 | 2026-02-08T10:27:39 | https://github.com/huggingface/datasets/issues/7766 | ain-soph | [
"enhancement"
] | [] | [
"A",
"1",
"1",
"Ok",
"> ### Feature request\n> Allow `storage_options` to be passed in\n> \n> 1. `cast` related operations (e.g., `cast_columns, cast`)\n> 2. `info` related reading (e.g., `from_dict, from_pandas, from_polars`) together with `info.features`\n> \n> import datasets\n> \n> image_path = \"s3://b... | CONTRIBUTOR | ### Feature request
Allow `storage_options` to be passed in
1. `cast` related operations (e.g., `cast_columns, cast`)
2. `info` related reading (e.g., `from_dict, from_pandas, from_polars`) together with `info.features`
```python3
import datasets
image_path = "s3://bucket/sample.png"
dataset = datasets.Dataset.from_d... | |||
3,411,556,378 | I_kwDODunzps7LWDga | 7,765 | polars dataset cannot cast column to Image/Audio/Video | closed | completed | 2025-09-12T18:32:49 | 2025-10-13T14:39:48 | 2025-10-13T14:39:48Z | https://github.com/huggingface/datasets/issues/7765 | ain-soph | [] | [] | [
"I fixed this with a combination of `to_dict` and `from_dict`:\n\n```py\ndatasets.Dataset.from_dict(df.to_dict(as_series=False))\n```",
"@samuelstevens Yeah, I'm using similar workaround as well. But it would be ideal if we can avoid the copy."
] | CONTRIBUTOR | ### Describe the bug
`from_polars` dataset cannot cast column to Image/Audio/Video, while it works on `from_pandas` and `from_dict`
### Steps to reproduce the bug
```python3
import datasets
import pandas as pd
import polars as pl
image_path = "./sample.png"
# polars
df = pl.DataFrame({"image_path": [image_path]})
... | |
3,401,799,485 | I_kwDODunzps7Kw1c9 | 7,760 | Hugging Face Hub Dataset Upload CAS Error | open | 2025-09-10T10:01:19 | 2025-09-16T20:01:36 | https://github.com/huggingface/datasets/issues/7760 | n-bkoe | [] | [] | [
"cc @jsulz maybe ?",
"Curious! I took a look at this and was unable to see why this would be occurring on our side. Tagging in @jgodlew and @bpronan since they might have insights. \n\n@n-bkoe just a few questions if you wouldn't mind: \n1. What kind of data are you uploading and what is the difference in file si... | NONE | ### Describe the bug
Experiencing persistent 401 Unauthorized errors when attempting to upload datasets to Hugging Face Hub using the `datasets` library. The error occurs specifically with the CAS (Content Addressable Storage) service during the upload process. Tried using HF_HUB_DISABLE_XET=1. It seems to work for sm... | |||
3,398,099,513 | I_kwDODunzps7KiuI5 | 7,759 | Comment/feature request: Huggingface 502s from GHA | open | 2025-09-09T11:59:20 | 2025-09-09T13:02:28 | https://github.com/huggingface/datasets/issues/7759 | Scott-Simmons | [] | [] | [] | CONTRIBUTOR | This is no longer a pressing issue, but for completeness I am reporting that in August 26th, GET requests to `https://datasets-server.huggingface.co/info\?dataset\=livebench/math` were returning 502s when invoked from [github actions](https://github.com/UKGovernmentBEIS/inspect_evals/actions/runs/17241892475/job/489211... | |||
3,395,590,783 | I_kwDODunzps7KZJp_ | 7,758 | Option for Anonymous Dataset link | open | 2025-09-08T20:20:10 | 2025-09-08T20:20:10 | https://github.com/huggingface/datasets/issues/7758 | egrace479 | [
"enhancement"
] | [] | [] | NONE | ### Feature request
Allow for anonymized viewing of datasets. For instance, something similar to [Anonymous GitHub](https://anonymous.4open.science/).
### Motivation
We generally publish our data through Hugging Face. This has worked out very well as it's both our repository and archive (thanks to the DOI feature!).... | |||
3,389,535,011 | I_kwDODunzps7KCDMj | 7,757 | Add support for `.conll` file format in datasets | closed | completed | 2025-09-06T07:25:39 | 2026-05-27T14:09:27 | 2026-05-27T14:09:27Z | https://github.com/huggingface/datasets/issues/7757 | namesarnav | [
"enhancement"
] | [] | [
"That would be cool ! feel free to ping me if I can help reviewing a PR",
"hey @namesarnav , are you still planning to PR this? happy to coordinate or take it on otherwise. looks like a clean\n packaged_modules/conll/ builder following the csv/json/text pattern.\n\n @lhoestq , thanks for the pre-review offer. i... | NONE | ### Feature request
I’d like to request native support in the Hugging Face datasets library for reading .conll files (CoNLL format). This format is widely used in NLP tasks, especially for Named Entity Recognition (NER), POS tagging, and other token classification problems.
Right now `.conll` datasets need to be manu... | |
3,387,076,693 | I_kwDODunzps7J4rBV | 7,756 | datasets.map(f, num_proc=N) hangs with N>1 when run on import | open | 2025-09-05T10:32:01 | 2026-01-27T12:58:35 | https://github.com/huggingface/datasets/issues/7756 | arjunguha | [] | [] | [
"Hii !! Frosh from India taking issue #7756. \n\nPlan - Add try/except multiprocessing. Start Method, Context + Fallback to num_proc = 1. \n\nForked, coding now... PR in a few "
] | NONE | ### Describe the bug
If you `import` a module that runs `datasets.map(f, num_proc=N)` at the top-level, Python hangs.
### Steps to reproduce the bug
1. Create a file that runs datasets.map at the top-level:
```bash
cat <<EOF > import_me.py
import datasets
the_dataset = datasets.load_dataset("openai/openai_humanev... | |||
3,381,831,487 | I_kwDODunzps7Jkqc_ | 7,753 | datasets massively slows data reads, even in memory | open | 2025-09-04T01:45:24 | 2025-09-18T22:08:51 | https://github.com/huggingface/datasets/issues/7753 | lrast | [] | [] | [
"Hi ! you should try\n\n```python\nfrom datasets import Array3D, Dataset, Features, Value\n\nfeatures = Features({\"image\": Array3D(shape=(3, 224, 224), dtype=\"uint8\"), \"label\": Value(\"uint8\")})\nhf_dataset = Dataset.from_dict({'image': images, 'label':labels}, features=features)\n```\n\notherwise the type o... | NONE | ### Describe the bug
Loading image data in a huggingface dataset results in very slow read speeds, approximately 1000 times longer than reading the same data from a pytorch dataset. This applies even when the dataset is loaded into RAM using a `keep_in_memory=True` flag.
The following script reproduces the result wit... | |||
3,358,369,976 | I_kwDODunzps7ILKi4 | 7,751 | Dill version update | open | 2025-08-27T07:38:30 | 2025-09-10T14:24:02 | https://github.com/huggingface/datasets/issues/7751 | Navanit-git | [] | [] | [
"#7752 ",
"related: #7510 "
] | NONE | ### Describe the bug
Why the datasets is not updating the dill ?
Just want to know if I update the dill version in dill what will be the repucssion.
For now in multiplaces I have to update the library like process requirequire dill 0.4.0 so why not datasets.
Adding a pr too.
### Steps to reproduce the bug
.
###... | |||
3,345,391,211 | I_kwDODunzps7HZp5r | 7,746 | Fix: Canonical 'multi_news' dataset is broken and should be updated to a Parquet version | open | 2025-08-22T12:52:03 | 2025-08-27T20:23:35 | https://github.com/huggingface/datasets/issues/7746 | Awesome075 | [] | [] | [
"@sayakpaul @a-r-r-o-w could you verify this issue then i can contribute to solve this issue!😊"
] | NONE | Hi,
The canonical `multi_news` dataset is currently broken and fails to load. This is because it points to the [alexfabri/multi_news](https://huggingface.co/datasets/alexfabbri/multi_news) repository, which contains a legacy loading script (`multi_news.py`) that requires the now-removed `trust_remote_code` parameter.... | |||
3,345,286,773 | I_kwDODunzps7HZQZ1 | 7,745 | Audio mono argument no longer supported, despite class documentation | open | 2025-08-22T12:15:41 | 2026-05-10T11:51:16 | https://github.com/huggingface/datasets/issues/7745 | jheitz | [] | [] | [
"I want to solve this problem can you please assign it to me\nand also can you please guide whether the mono parameter is required to be re-added or the documentation needs an update?",
"Hi! Triaging older issues — I think the docstring half of this is already resolved.\n\nOn current `main` (`datasets==4.8.6.dev0... | NONE | ### Describe the bug
Either update the documentation, or re-introduce the flag (and corresponding logic to convert the audio to mono)
### Steps to reproduce the bug
Audio(sampling_rate=16000, mono=True) raises the error
TypeError: Audio.__init__() got an unexpected keyword argument 'mono'
However, in the class doc... | |||
3,343,510,686 | I_kwDODunzps7HSeye | 7,744 | dtype: ClassLabel is not parsed correctly in `features.py` | closed | completed | 2025-08-21T23:28:50 | 2025-09-10T15:23:41 | 2025-09-10T15:23:41Z | https://github.com/huggingface/datasets/issues/7744 | cmatKhan | [] | [] | [
"I think it's \"class_label\"",
"> I think it's \"class_label\"\n\nI see -- thank you. This works\n\n```yaml\nlicense: mit\nlanguage:\n- en\ntags:\n- genomics\n- yeast\n- transcription\n- perturbation\n- response\n- overexpression\npretty_name: Hackett, 2020 Overexpression\nsize_categories:\n- 1M<n<10M\ndataset_i... | NONE | `dtype: ClassLabel` in the README.md yaml metadata is parsed incorrectly and causes the data viewer to fail.
This yaml in my metadata ([source](https://huggingface.co/datasets/BrentLab/yeast_genome_resources/blob/main/README.md), though i changed `ClassLabel` to `string` to using different dtype in order to avoid the ... | |
3,336,704,928 | I_kwDODunzps7G4hOg | 7,742 | module 'pyarrow' has no attribute 'PyExtensionType' | open | 2025-08-20T06:14:33 | 2025-09-09T02:51:46 | https://github.com/huggingface/datasets/issues/7742 | mnedelko | [] | [] | [
"Just checked out the files and thishad already been addressed",
"For others who find this issue: \n\n`pip install --upgrade \"datasets>=2.20.0\"` \n\nfrom https://github.com/explodinggradients/ragas/issues/2170#issuecomment-3204393672 can fix it."
] | NONE | ### Describe the bug
When importing certain libraries, users will encounter the following error which can be traced back to the datasets library.
module 'pyarrow' has no attribute 'PyExtensionType'.
Example issue: https://github.com/explodinggradients/ragas/issues/2170
The issue occurs due to the following. I will ... | |||
3,334,848,656 | I_kwDODunzps7GxcCQ | 7,741 | Preserve tree structure when loading HDF5 | closed | completed | 2025-08-19T15:42:05 | 2025-08-26T15:28:06 | 2025-08-26T15:28:06Z | https://github.com/huggingface/datasets/issues/7741 | klamike | [
"enhancement"
] | [] | [] | CONTRIBUTOR | ### Feature request
https://github.com/huggingface/datasets/pull/7740#discussion_r2285605374
### Motivation
`datasets` has the `Features` class for representing nested features. HDF5 files have groups of datasets which are nested, though in #7690 the keys are flattened. We should preserve that structure for the user... | |
3,331,537,762 | I_kwDODunzps7Gkzti | 7,739 | Replacement of "Sequence" feature with "List" breaks backward compatibility | open | 2025-08-18T17:28:38 | 2025-09-10T14:17:50 | https://github.com/huggingface/datasets/issues/7739 | evmaki | [] | [] | [
"Backward compatibility here means 4.0.0 can load datasets saved with older versions.\n\nYou will need 4.0.0 to load datasets saved with 4.0.0"
] | NONE | PR #7634 replaced the Sequence feature with List in 4.0.0, so datasets saved with version 4.0.0 with that feature cannot be loaded by earlier versions. There is no clear option in 4.0.0 to use the legacy feature type to preserve backward compatibility.
Why is this a problem? I have a complex preprocessing and training... | |||
3,328,948,690 | I_kwDODunzps7Ga7nS | 7,738 | Allow saving multi-dimensional ndarray with dynamic shapes | open | 2025-08-18T02:23:51 | 2026-02-27T23:01:28 | https://github.com/huggingface/datasets/issues/7738 | ryan-minato | [
"enhancement"
] | [] | [
"I agree this would be super valuable.\n\nIt looks like this was discussed a few years ago in https://github.com/huggingface/datasets/issues/5272#issuecomment-1550200824 but there were some issues. Those PRs are merged now and it looks like Arrow [officially supports](https://arrow.apache.org/docs/format/CanonicalE... | NONE | ### Feature request
I propose adding a dedicated feature to the datasets library that allows for the efficient storage and retrieval of multi-dimensional ndarray with dynamic shapes. Similar to how Image columns handle variable-sized images, this feature would provide a structured way to store array data where the dim... | |||
3,304,979,299 | I_kwDODunzps7E_ftj | 7,733 | Dataset Repo Paths to Locally Stored Images Not Being Appended to Image Path | closed | completed | 2025-08-08T19:10:58 | 2025-10-07T04:47:36 | 2025-10-07T04:32:48Z | https://github.com/huggingface/datasets/issues/7733 | dennys246 | [] | [] | [
"This is the download issues I come into, about ever other time it fails...\n<img width=\"1719\" height=\"1226\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/2e5b4b3e-7c13-4bad-a77c-34b47a932831\" />",
"I’m guessing this is just a feature so I’m going to close this thread. I also altered my load... | NONE | ### Describe the bug
I’m not sure if this is a bug or a feature and I just don’t fully understand how dataset loading is to work, but it appears there may be a bug with how locally stored Image() are being accessed. I’ve uploaded a new dataset to hugging face (rmdig/rocky_mountain_snowpack) but I’ve come into a ton of... | |
3,304,673,383 | I_kwDODunzps7E-VBn | 7,732 | webdataset: key errors when `field_name` has upper case characters | open | 2025-08-08T16:56:42 | 2025-08-08T16:56:42 | https://github.com/huggingface/datasets/issues/7732 | YassineYousfi | [] | [] | [] | CONTRIBUTOR | ### Describe the bug
When using a webdataset each sample can be a collection of different "fields"
like this:
```
images17/image194.left.jpg
images17/image194.right.jpg
images17/image194.json
images17/image12.left.jpg
images17/image12.right.jpg
images17/image12.json
```
if the field_name contains upper case characte... | |||
3,303,637,075 | I_kwDODunzps7E6YBT | 7,731 | Add the possibility of a backend for audio decoding | open | 2025-08-08T11:08:56 | 2025-08-20T16:29:33 | https://github.com/huggingface/datasets/issues/7731 | intexcor | [
"enhancement"
] | [] | [
"is there a work around im stuck",
"never mind just downgraded"
] | NONE | ### Feature request
Add the possibility of a backend for audio decoding. Before version 4.0.0, soundfile was used, and now torchcodec is used, but the problem is that torchcodec requires ffmpeg, which is problematic to install on the same colab. Therefore, I suggest adding a decoder selection when loading the dataset.... | |||
3,300,672,954 | I_kwDODunzps7EvEW6 | 7,729 | OSError: libcudart.so.11.0: cannot open shared object file: No such file or directory | open | 2025-08-07T14:07:23 | 2025-09-24T02:17:15 | https://github.com/huggingface/datasets/issues/7729 | SaleemMalikAI | [] | [] | [
"Is this related to the \"datasets\" library? @SaleemMalikAI "
] | NONE | > Hi is there any solution for that eror i try to install this one
pip install torch==1.12.1+cpu torchaudio==0.12.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
this is working fine but tell me how to install pytorch version that is fit for gpu | |||
3,298,854,904 | I_kwDODunzps7EoIf4 | 7,728 | NonMatchingSplitsSizesError and ExpectedMoreSplitsError | open | 2025-08-07T04:04:50 | 2025-10-06T21:08:39 | https://github.com/huggingface/datasets/issues/7728 | efsotr | [] | [] | [
"To load just one shard without errors, you should use data_files directly with split set to \"train\", but don’t specify \"allenai/c4\", since that points to the full dataset with all shards.\n\nInstead, do this:\n```\nfrom datasets import load_dataset\nfrom datasets import load_dataset\n\n# Load only one shard of... | NONE | ### Describe the bug
When loading dataset, the info specified by `data_files` did not overwrite the original info.
### Steps to reproduce the bug
```python
from datasets import load_dataset
traindata = load_dataset(
"allenai/c4",
"en",
data_files={"train": "en/c4-train.00000-of-... | |||
3,295,718,578 | I_kwDODunzps7EcKyy | 7,727 | config paths that start with ./ are not valid as hf:// accessed repos, but are valid when accessed locally | open | 2025-08-06T08:21:37 | 2025-08-06T08:21:37 | https://github.com/huggingface/datasets/issues/7727 | doctorpangloss | [] | [] | [] | NONE | ### Describe the bug
```
- config_name: some_config
data_files:
- split: train
path:
- images/xyz/*.jpg
```
will correctly download but
```
- config_name: some_config
data_files:
- split: train
path:
- ./images/xyz/*.jpg
```
will error with `FileNotFoundError` due to improper url joining. `loa... | |||
3,292,315,241 | I_kwDODunzps7EPL5p | 7,724 | Can not stepinto load_dataset.py? | open | 2025-08-05T09:28:51 | 2025-08-05T09:28:51 | https://github.com/huggingface/datasets/issues/7724 | micklexqg | [] | [] | [] | NONE | I set a breakpoint in "load_dataset.py" and try to debug my data load codes, but it does not stop at any breakpoints, so "load_dataset.py" can not be stepped into ?
<!-- Failed to upload "截图 2025-08-05 17-25-18.png" --> | |||
3,289,943,261 | I_kwDODunzps7EGIzd | 7,723 | Don't remove `trust_remote_code` arg!!! | open | 2025-08-04T15:42:07 | 2025-08-04T15:42:07 | https://github.com/huggingface/datasets/issues/7723 | autosquid | [
"enhancement"
] | [] | [] | NONE | ### Feature request
defaulting it to False is nice balance. we need manully setting it to True in certain scenarios!
Add `trust_remote_code` arg back please!
### Motivation
defaulting it to False is nice balance. we need manully setting it to True in certain scenarios!
### Your contribution
defaulting it to Fals... | |||
3,289,741,064 | I_kwDODunzps7EFXcI | 7,722 | Out of memory even though using load_dataset(..., streaming=True) | open | 2025-08-04T14:41:55 | 2025-08-04T14:41:55 | https://github.com/huggingface/datasets/issues/7722 | padmalcom | [] | [] | [] | NONE | ### Describe the bug
I am iterating over a large dataset that I load using streaming=True to avoid running out of memory. Unfortunately, I am observing that memory usage increases over time and I'm finally running in an oom.
### Steps to reproduce the bug
```
ds = load_dataset("openslr/librispeech_asr", split="tra... | |||
3,289,426,104 | I_kwDODunzps7EEKi4 | 7,721 | Bad split error message when using percentages | open | 2025-08-04T13:20:25 | 2025-08-14T14:42:24 | https://github.com/huggingface/datasets/issues/7721 | padmalcom | [] | [] | [
"I'd like to work on this: add clearer validation/messages for percent-based splits + tests",
"The most basic example is this code:\n`load_dataset(\"openslr/librispeech_asr\", split=\"train[10%:20%]\")`\n\nThis results in this ValueError:\n```\n raise ValueError(f'Unknown split \"{split}\". Should be one of {l... | NONE | ### Describe the bug
Hi, I'm trying to download a dataset. To not load the entire dataset in memory, I split it as described [here](https://huggingface.co/docs/datasets/v4.0.0/loading#slice-splits) in 10% steps.
When doing so, the library returns this error:
raise ValueError(f"Bad split: {split}. Available splits... | |||
3,287,150,513 | I_kwDODunzps7D7e-x | 7,720 | Datasets 4.0 map function causing column not found | open | 2025-08-03T12:52:34 | 2025-08-07T19:23:34 | https://github.com/huggingface/datasets/issues/7720 | Darejkal | [] | [] | [
"Hi, I tried to reproduce this issue on the latest `main` branch but it seems to be working correctly now. My test script (which creates a dummy dataset and applies the `.map()` function) successfully creates and accesses the new column without a `KeyError`.\n\nIt's possible this was fixed by a recent commit. The m... | NONE | ### Describe the bug
Column returned after mapping is not found in new instance of the dataset.
### Steps to reproduce the bug
Code for reproduction. After running get_total_audio_length, it is errored out due to `data` not having `duration`
```
def compute_duration(x):
return {"duration": len(x["audio"]["array"... | |||
3,285,928,491 | I_kwDODunzps7D20or | 7,719 | Specify dataset columns types in typehint | open | 2025-08-02T13:22:31 | 2025-08-02T13:22:31 | https://github.com/huggingface/datasets/issues/7719 | Samoed | [
"enhancement"
] | [] | [] | NONE | ### Feature request
Make dataset optionaly generic to datasets usage with type annotations like it was done in `torch.Dataloader` https://github.com/pytorch/pytorch/blob/134179474539648ba7dee1317959529fbd0e7f89/torch/utils/data/dataloader.py#L131
### Motivation
In MTEB we're using a lot of datasets objects, but they... | |||
3,282,855,127 | I_kwDODunzps7DrGTX | 7,717 | Cached dataset is not used when explicitly passing the cache_dir parameter | open | 2025-08-01T07:12:41 | 2025-08-05T19:19:36 | https://github.com/huggingface/datasets/issues/7717 | padmalcom | [] | [] | [
"Hi, I've investigated this issue and can confirm the bug. Here are my findings:\n\n**1. Reproduction:**\nI was able to reproduce the issue on the latest `main` branch. Using the provided code snippet, `snapshot_download` correctly populates the custom `cache_dir`, but `load_dataset` with the same `cache_dir` trigg... | NONE | ### Describe the bug
Hi, we are pre-downloading a dataset using snapshot_download(). When loading this exact dataset with load_dataset() the cached snapshot is not used. In both calls, I provide the cache_dir parameter.
### Steps to reproduce the bug
```
from datasets import load_dataset, concatenate_datasets
from h... | |||
3,276,677,990 | I_kwDODunzps7DTiNm | 7,709 | Release 4.0.0 breaks usage patterns of with_format | closed | completed | 2025-07-30T11:34:53 | 2025-08-07T08:27:18 | 2025-08-07T08:27:18Z | https://github.com/huggingface/datasets/issues/7709 | wittenator | [] | [] | [
"This is a breaking change with 4.0 which introduced `Column` objects. To get the numpy array from a `Column` you can `col[i]`, `col[i:j]` or even `col[:]` if you want the full column as a numpy array:\n\n```python\nfrom datasets import load_dataset\ndataset = load_dataset(...)\ndataset = dataset.with_format(\"nump... | NONE | ### Describe the bug
Previously it was possible to access a whole column that was e.g. in numpy format via `with_format` by indexing the column. Now this possibility seems to be gone with the new Column() class. As far as I see, this makes working on a whole column (in-memory) more complex, i.e. normalizing an in-memo... | |
3,271,867,998 | I_kwDODunzps7DBL5e | 7,707 | load_dataset() in 4.0.0 failed when decoding audio | closed | completed | 2025-07-29T03:25:03 | 2025-10-05T06:41:38 | 2025-08-01T05:15:45Z | https://github.com/huggingface/datasets/issues/7707 | jiqing-feng | [] | [] | [
"Hi @lhoestq . Would you please have a look at it? I use the official NV Docker ([NV official docker image](https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch): `nvcr.io/nvidia/pytorch:25.06-py3`) on A100 and encountered this issue, but I don't know how to fix it.",
"Use !pip install -U datasets[audio]... | NONE | ### Describe the bug
Cannot decode audio data.
### Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("hf-internal-testing/librispeech_asr_demo", "clean", split="validation")
print(dataset[0]["audio"]["array"])
```
1st round run, got
```
File "/usr/local/lib/python3.1... | |
3,269,070,499 | I_kwDODunzps7C2g6j | 7,705 | Can Not read installed dataset in dataset.load(.) | open | 2025-07-28T09:43:54 | 2025-08-05T01:24:32 | https://github.com/huggingface/datasets/issues/7705 | HuangChiEn | [] | [] | [
"You can download the dataset locally using [huggingface_hub.snapshot_download](https://huggingface.co/docs/huggingface_hub/v0.34.3/en/package_reference/file_download#huggingface_hub.snapshot_download) and then do\n\n```python\ndataset = load_dataset(local_directory_path)\n```",
"> You can download the dataset lo... | NONE | Hi, folks, I'm newbie in huggingface dataset api.
As title, i'm facing the issue that the dataset.load api can not connect to the installed dataset.
code snippet :
<img width="572" height="253" alt="Image" src="https://github.com/user-attachments/assets/10f48aaf-d6ca-4239-b1cf-145d74f125d1" />
data path :
"/xxx/jose... | |||
3,265,648,942 | I_kwDODunzps7Cpdku | 7,703 | [Docs] map() example uses undefined `tokenizer` — causes NameError | open | 2025-07-26T13:35:11 | 2025-07-27T09:44:35 | https://github.com/huggingface/datasets/issues/7703 | Sanjaykumar030 | [] | [] | [
"I've submitted PR #7704 which adds documentation to clarify the behavior of `map()` when returning `None`."
] | NONE | ## Description
The current documentation example for `datasets.Dataset.map()` demonstrates batched processing but uses a `tokenizer` object without defining or importing it. This causes an error every time it's copied.
Here is the problematic line:
```python
# process a batch of examples
>>> ds = ds.map(lambda examp... | |||
3,263,922,255 | I_kwDODunzps7Ci4BP | 7,700 | [doc] map.num_proc needs clarification | open | 2025-07-25T17:35:09 | 2025-07-25T17:39:36 | https://github.com/huggingface/datasets/issues/7700 | sfc-gh-sbekman | [] | [] | [] | NONE | https://huggingface.co/docs/datasets/v4.0.0/en/package_reference/main_classes#datasets.Dataset.map.num_proc
```
num_proc (int, optional, defaults to None) — Max number of processes when generating cache. Already cached
shards are loaded sequentially.
```
for batch:
```
num_proc (int, optional, defaults to None): The n... | |||
3,261,053,171 | I_kwDODunzps7CX7jz | 7,699 | Broken link in documentation for "Create a video dataset" | open | 2025-07-24T19:46:28 | 2026-03-26T18:28:43 | https://github.com/huggingface/datasets/issues/7699 | cleong110 | [] | [] | [
"The URL is ok but it seems the webdataset website is down. There seems to be a related issue here: https://github.com/webdataset/webdataset/issues/155\n\nFeel free to ask the authors there for an update. Otherwise happy to witch the link to the mirror shared in that issue",
"I fixed this doc problem.\nPR link: h... | NONE | The link to "the [WebDataset documentation](https://webdataset.github.io/webdataset)." is broken.
https://huggingface.co/docs/datasets/main/en/video_dataset#webdataset
<img width="2048" height="264" alt="Image" src="https://github.com/user-attachments/assets/975dd10c-aad8-42fc-9fbc-de0e2747a326" /> | |||
3,255,350,916 | I_kwDODunzps7CCLaE | 7,698 | NotImplementedError when using streaming=True in Google Colab environment | open | 2025-07-23T08:04:53 | 2025-07-23T15:06:23 | https://github.com/huggingface/datasets/issues/7698 | Aniket17200 | [] | [] | [
"Hi, @Aniket17200, try upgrading datasets using '!pip install -U datasets'. I hope this will resolve your issue.",
"Thank you @tanuj-rai, it's working great "
] | NONE | ### Describe the bug
When attempting to load a large dataset (like tiiuae/falcon-refinedweb or allenai/c4) using streaming=True in a standard Google Colab notebook, the process fails with a NotImplementedError: Loading a streaming dataset cached in a LocalFileSystem is not supported yet. This issue persists even after... | |||
3,254,526,399 | I_kwDODunzps7B_CG_ | 7,697 | - | closed | completed | 2025-07-23T01:30:32 | 2025-07-25T15:21:39 | 2025-07-25T15:21:39Z | https://github.com/huggingface/datasets/issues/7697 | ghost | [] | [] | [] | NONE | - | |
3,253,433,350 | I_kwDODunzps7B63QG | 7,696 | load_dataset() in 4.0.0 returns different audio samples compared to earlier versions breaking reproducibility | closed | completed | 2025-07-22T17:02:17 | 2025-07-30T14:22:21 | 2025-07-30T14:22:21Z | https://github.com/huggingface/datasets/issues/7696 | Manalelaidouni | [] | [] | [
"Hi ! This is because `datasets` now uses the FFmpeg-based library `torchcodec` instead of the libsndfile-based library `soundfile` to decode audio data. Those two have different decoding implementations",
"I’m all for torchcodec, good luck with the migration!"
] | NONE | ### Describe the bug
In datasets 4.0.0 release, `load_dataset()` returns different audio samples compared to earlier versions, this breaks integration tests that depend on consistent sample data across different environments (first and second envs specified below).
### Steps to reproduce the bug
```python
from dat... | |
3,247,600,408 | I_kwDODunzps7BknMY | 7,694 | Dataset.to_json consumes excessive memory, appears to not be a streaming operation | open | 2025-07-21T07:51:25 | 2025-07-25T14:42:21 | https://github.com/huggingface/datasets/issues/7694 | ycq0125 | [] | [] | [
"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... | NONE | ### 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 ... | |||
3,246,369,678 | I_kwDODunzps7Bf6uO | 7,693 | Dataset scripts are no longer supported, but found superb.py | open | 2025-07-20T13:48:06 | 2026-04-14T14:09:54 | https://github.com/huggingface/datasets/issues/7693 | edwinzajac | [] | [] | [
"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)... | NONE | ### 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 :
```
--------------------------------------------------------------------------
... | |||
3,246,268,635 | I_kwDODunzps7BfiDb | 7,692 | xopen: invalid start byte for streaming dataset with trust_remote_code=True | open | 2025-07-20T11:08:20 | 2025-07-25T14:38:54 | https://github.com/huggingface/datasets/issues/7692 | sedol1339 | [] | [] | [
"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 ... | NONE | ### 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 ... | |||
3,245,547,170 | I_kwDODunzps7Bcx6i | 7,691 | Large WebDataset: pyarrow.lib.ArrowCapacityError on load() even with streaming | open | 2025-07-19T18:40:27 | 2025-07-25T08:51:10 | https://github.com/huggingface/datasets/issues/7691 | cleong110 | [] | [] | [
"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... | NONE | ### 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... | |||
3,242,580,301 | I_kwDODunzps7BRdlN | 7,689 | BadRequestError for loading dataset? | closed | completed | 2025-07-18T09:30:04 | 2025-07-18T11:59:51 | 2025-07-18T11:52:29Z | https://github.com/huggingface/datasets/issues/7689 | WPoelman | [] | [] | [
"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... | NONE | ### 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... | |
3,238,851,443 | I_kwDODunzps7BDPNz | 7,688 | No module named "distributed" | open | 2025-07-17T09:32:35 | 2025-07-25T15:14:19 | https://github.com/huggingface/datasets/issues/7688 | yingtongxiong | [] | [] | [
"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 ... | NONE | ### 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... | |||
3,238,760,301 | I_kwDODunzps7BC49t | 7,687 | Datasets keeps rebuilding the dataset every time i call the python script | open | 2025-07-17T09:03:38 | 2025-07-25T15:21:31 | https://github.com/huggingface/datasets/issues/7687 | CALEB789 | [] | [] | [
"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"
] | NONE | ### 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... | |||
3,237,201,090 | I_kwDODunzps7A88TC | 7,686 | load_dataset does not check .no_exist files in the hub cache | open | 2025-07-16T20:04:00 | 2025-07-16T20:04:00 | https://github.com/huggingface/datasets/issues/7686 | jmaccarl | [] | [] | [] | NONE | ### 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... | |||
3,236,979,340 | I_kwDODunzps7A8GKM | 7,685 | Inconsistent range request behavior for parquet REST api | open | 2025-07-16T18:39:44 | 2025-08-11T08:16:54 | https://github.com/huggingface/datasets/issues/7685 | universalmind303 | [] | [] | [
"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 ... | NONE | ### 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... | |||
3,229,687,253 | I_kwDODunzps7AgR3V | 7,682 | Fail to cast Audio feature for numpy arrays in datasets 4.0.0 | closed | completed | 2025-07-14T18:41:02 | 2025-07-15T12:10:39 | 2025-07-15T10:24:08Z | https://github.com/huggingface/datasets/issues/7682 | luatil-cloud | [] | [] | [
"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!"
] | NONE | ### 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 ... | |
3,227,112,736 | I_kwDODunzps7AWdUg | 7,681 | Probabilistic High Memory Usage and Freeze on Python 3.10 | open | 2025-07-14T01:57:16 | 2025-07-14T01:57:16 | https://github.com/huggingface/datasets/issues/7681 | ryan-minato | [] | [] | [] | NONE | ### 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... | |||
3,224,824,151 | I_kwDODunzps7ANulX | 7,680 | Question about iterable dataset and streaming | open | 2025-07-12T04:48:30 | 2025-08-01T13:01:48 | https://github.com/huggingface/datasets/issues/7680 | Tavish9 | [] | [] | [
"> 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... | NONE | 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... | |||
3,220,787,371 | I_kwDODunzps6_-VCr | 7,679 | metric glue breaks with 4.0.0 | closed | completed | 2025-07-10T21:39:50 | 2025-07-11T17:42:01 | 2025-07-11T17:42:01Z | https://github.com/huggingface/datasets/issues/7679 | stas00 | [] | [] | [
"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!"
] | CONTRIBUTOR | ### 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... | |
3,218,625,544 | I_kwDODunzps6_2FQI | 7,678 | To support decoding audio data, please install 'torchcodec'. | closed | completed | 2025-07-10T09:43:13 | 2026-03-05T00:58:32 | 2025-07-11T05:05:42Z | https://github.com/huggingface/datasets/issues/7678 | alpcansoydas | [] | [] | [
"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]... | NONE |
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... | |
3,218,044,656 | I_kwDODunzps6_z3bw | 7,677 | Toxicity fails with datasets 4.0.0 | closed | completed | 2025-07-10T06:15:22 | 2025-07-11T04:40:59 | 2025-07-11T04:40:59Z | https://github.com/huggingface/datasets/issues/7677 | serena-ruan | [] | [] | [
"Hi ! You can fix this by upgrading `evaluate`:\n\n```\npip install -U evaluate\n```",
"Thanks, verified evaluate 0.4.5 works!"
] | NONE | ### 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:... | |
3,216,857,559 | I_kwDODunzps6_vVnX | 7,676 | Many things broken since the new 4.0.0 release | open | 2025-07-09T18:59:50 | 2026-02-17T17:18:19 | https://github.com/huggingface/datasets/issues/7676 | mobicham | [] | [] | [
"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 ... | NONE | ### 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... | |||
3,216,699,094 | I_kwDODunzps6_uu7W | 7,675 | common_voice_11_0.py failure in dataset library | open | 2025-07-09T17:47:59 | 2025-07-22T09:35:42 | https://github.com/huggingface/datasets/issues/7675 | egegurel | [] | [] | [
"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... | NONE | ### 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... | |||
3,213,223,886 | I_kwDODunzps6_hefO | 7,671 | Mapping function not working if the first example is returned as None | open | reopened | 2025-07-08T17:07:47 | 2026-01-20T13:59:31 | https://github.com/huggingface/datasets/issues/7671 | dnaihao | [] | [] | [
"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... | 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... | ||
3,203,541,091 | I_kwDODunzps6-8ihj | 7,669 | How can I add my custom data to huggingface datasets | open | 2025-07-04T19:19:54 | 2025-07-05T18:19:37 | https://github.com/huggingface/datasets/issues/7669 | xiagod | [] | [] | [
"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... | NONE | I want to add my custom dataset in huggingface dataset. Please guide me how to achieve that. | |||
3,199,039,322 | I_kwDODunzps6-rXda | 7,668 | Broken EXIF crash the whole program | open | 2025-07-03T11:24:15 | 2025-07-03T12:27:16 | https://github.com/huggingface/datasets/issues/7668 | Seas0 | [] | [] | [
"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 !)"
] | NONE | ### 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.

### Steps to reproduce the bug
Use the `datasets.Image.decod... | |||
3,193,239,955 | I_kwDODunzps6-VPmT | 7,665 | Function load_dataset() misinterprets string field content as part of dataset schema when dealing with `.jsonl` files | closed | duplicate | 2025-07-01T17:14:53 | 2025-07-01T17:17:48 | 2025-07-01T17:17:48Z | https://github.com/huggingface/datasets/issues/7665 | zdzichukowalski | [] | [] | [
"Somehow I created the issue twice🙈 This one is an exact duplicate of #7664."
] | NONE | ### 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:... | |
3,193,239,035 | I_kwDODunzps6-VPX7 | 7,664 | Function load_dataset() misinterprets string field content as part of dataset schema when dealing with `.jsonl` files | open | 2025-07-01T17:14:32 | 2025-07-09T13:14:11 | https://github.com/huggingface/datasets/issues/7664 | zdzichukowalski | [] | [] | [
"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... | NONE | ### 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:... | |||
3,190,805,531 | I_kwDODunzps6-L9Qb | 7,662 | Applying map after transform with multiprocessing will cause OOM | open | 2025-07-01T05:45:57 | 2025-07-10T06:17:40 | https://github.com/huggingface/datasets/issues/7662 | JunjieLl | [] | [] | [
"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 ... | NONE | ### 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... | |||
3,189,028,251 | I_kwDODunzps6-FLWb | 7,660 | AttributeError: type object 'tqdm' has no attribute '_lock' | open | 2025-06-30T15:57:16 | 2025-07-03T15:14:27 | https://github.com/huggingface/datasets/issues/7660 | Hypothesis-Z | [] | [] | [
"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 ... | NONE | ### 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... | |||
3,182,745,315 | I_kwDODunzps69tNbj | 7,650 | `load_dataset` defaults to json file format for datasets with 1 shard | open | 2025-06-27T12:54:25 | 2025-06-27T12:54:25 | https://github.com/huggingface/datasets/issues/7650 | iPieter | [] | [] | [] | NONE | ### 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... | |||
3,178,952,517 | I_kwDODunzps69evdF | 7,647 | loading mozilla-foundation--common_voice_11_0 fails | open | 2025-06-26T12:23:48 | 2025-07-10T14:49:30 | https://github.com/huggingface/datasets/issues/7647 | pavel-esir | [] | [] | [
"@claude Could you please address this issue",
"kinda related: https://github.com/huggingface/datasets/issues/7675"
] | NONE | ### 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... | |||
3,171,883,522 | I_kwDODunzps69DxoC | 7,637 | Introduce subset_name as an alias of config_name | open | 2025-06-24T12:49:01 | 2025-07-01T16:08:33 | https://github.com/huggingface/datasets/issues/7637 | albertvillanova | [
"enhancement"
] | [] | [
"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... | MEMBER | ### 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... | |||
3,170,878,167 | I_kwDODunzps68_8LX | 7,636 | "open" in globals()["__builtins__"], an error occurs: "TypeError: argument of type 'module' is not iterable" | open | reopened | 2025-06-24T08:09:39 | 2025-07-10T04:13:16 | https://github.com/huggingface/datasets/issues/7636 | kuanyan9527 | [] | [] | [
"@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 ... | NONE | 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... | ||
3,168,399,637 | I_kwDODunzps682fEV | 7,633 | Proposal: Small Tamil Discourse Coherence Dataset. | open | 2025-06-23T14:24:40 | 2025-06-23T14:24:40 | https://github.com/huggingface/datasets/issues/7633 | bikkiNitSrinagar | [] | [] | [] | NONE | 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... | |||
3,168,283,589 | I_kwDODunzps682CvF | 7,632 | Graceful Error Handling for cast_column("image", Image(decode=True)) in Hugging Face Datasets | open | 2025-06-23T13:49:24 | 2025-07-08T06:52:53 | https://github.com/huggingface/datasets/issues/7632 | ganiket19 | [
"enhancement"
] | [] | [
"Hi! This is now handled in PR #7638",
"Thank you for implementing the suggestion it would be great help in our use case. "
] | NONE | ### 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... | |||
3,164,650,900 | I_kwDODunzps68oL2U | 7,630 | [bug] resume from ckpt skips samples if .map is applied | open | 2025-06-21T01:50:03 | 2026-02-06T07:06:02 | https://github.com/huggingface/datasets/issues/7630 | felipemello1 | [] | [] | [
"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... | NONE | ### 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... | |||
3,160,544,390 | I_kwDODunzps68YhSG | 7,627 | Creating a HF Dataset from lakeFS with S3 storage takes too much time! | closed | completed | 2025-06-19T14:28:41 | 2025-06-23T12:39:10 | 2025-06-23T12:39:10Z | https://github.com/huggingface/datasets/issues/7627 | Thunderhead-exe | [] | [] | [
"### > 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... | NONE | 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... | |
3,156,136,624 | I_kwDODunzps68HtKw | 7,624 | #Dataset Make "image" column appear first in dataset preview UI | closed | completed | 2025-06-18T09:25:19 | 2025-06-20T07:46:43 | 2025-06-20T07:46:43Z | https://github.com/huggingface/datasets/issues/7624 | jcerveto | [] | [] | [
"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"
] | NONE | 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... | |
3,153,058,517 | I_kwDODunzps6779rV | 7,619 | `from_list` fails while `from_generator` works for large datasets | open | 2025-06-17T10:58:55 | 2025-06-29T16:34:44 | https://github.com/huggingface/datasets/issues/7619 | abdulfatir | [] | [] | [
"@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... | NONE | ### 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... | |||
3,148,102,085 | I_kwDODunzps67pDnF | 7,617 | Unwanted column padding in nested lists of dicts | closed | completed | 2025-06-15T22:06:17 | 2026-03-17T16:00:50 | 2025-06-16T13:43:31Z | https://github.com/huggingface/datasets/issues/7617 | qgallouedec | [] | [] | [
"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... | MEMBER | ```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': '... | |
3,141,905,049 | I_kwDODunzps67RaqZ | 7,612 | Provide an option of robust dataset iterator with error handling | open | 2025-06-13T00:40:48 | 2025-06-24T16:52:30 | https://github.com/huggingface/datasets/issues/7612 | wwwjn | [
"enhancement"
] | [] | [
"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... | NONE | ### 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.... | |||
3,141,383,940 | I_kwDODunzps67PbcE | 7,611 | Code example for dataset.add_column() does not reflect correct way to use function | closed | completed | 2025-06-12T19:42:29 | 2025-07-17T13:14:18 | 2025-07-17T13:14:18Z | https://github.com/huggingface/datasets/issues/7611 | shaily99 | [] | [] | [
"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"
] | NONE | 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. | |
3,141,281,560 | I_kwDODunzps67PCcY | 7,610 | i cant confirm email | open | 2025-06-12T18:58:49 | 2025-06-27T14:36:47 | https://github.com/huggingface/datasets/issues/7610 | lykamspam | [] | [] | [
"Will you please clarify the issue by some screenshots or more in-depth explanation?",
"\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... | NONE | ### 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 | |||
3,135,722,560 | I_kwDODunzps6651RA | 7,607 | Video and audio decoding with torchcodec | closed | completed | 2025-06-11T07:02:30 | 2025-06-19T18:25:49 | 2025-06-19T18:25:49Z | https://github.com/huggingface/datasets/issues/7607 | TyTodd | [
"enhancement"
] | [] | [
"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... | CONTRIBUTOR | ### 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... | |
3,127,296,182 | I_kwDODunzps66ZsC2 | 7,600 | `push_to_hub` is not concurrency safe (dataset schema corruption) | closed | completed | 2025-06-07T17:28:56 | 2025-07-31T10:00:50 | 2025-07-31T10:00:50Z | https://github.com/huggingface/datasets/issues/7600 | sharvil | [] | [] | [
"@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... | NONE | ### 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 (... | |
3,125,620,119 | I_kwDODunzps66TS2X | 7,599 | My already working dataset (when uploaded few months ago) now is ignoring metadata.jsonl | closed | completed | 2025-06-06T18:59:00 | 2025-06-16T15:18:00 | 2025-06-16T15:18:00Z | https://github.com/huggingface/datasets/issues/7599 | JuanCarlosMartinezSevilla | [] | [] | [
"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... | NONE | ### 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... | |
3,123,962,709 | I_kwDODunzps66M-NV | 7,597 | Download datasets from a private hub in 2025 | closed | completed | 2025-06-06T07:55:19 | 2025-06-13T13:46:00 | 2025-06-13T13:46:00Z | https://github.com/huggingface/datasets/issues/7597 | DanielSchuhmacher | [
"enhancement"
] | [] | [
"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... | NONE | ### 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... | |
3,120,799,626 | I_kwDODunzps66A5-K | 7,594 | Add option to ignore keys/columns when loading a dataset from jsonl(or any other data format) | open | 2025-06-05T11:12:45 | 2025-10-23T14:54:47 | https://github.com/huggingface/datasets/issues/7594 | avishaiElmakies | [
"enhancement"
] | [] | [
"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... | NONE | ### 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 ... | |||
3,117,816,388 | I_kwDODunzps651hpE | 7,591 | Add num_proc parameter to push_to_hub | closed | completed | 2025-06-04T13:19:15 | 2025-09-04T10:43:33 | 2025-09-04T10:43:33Z | https://github.com/huggingface/datasets/issues/7591 | SwayStar123 | [
"enhancement"
] | [] | [
"Hi @SwayStar123 \n\nI'd be interested in taking this up. I plan to add a `num_proc` parameter to `push_to_hub()` and use parallel uploads for shards using `concurrent.futures`. Will explore whether `ThreadPoolExecutor` or `ProcessPoolExecutor` is more suitable based on current implementation. Let me know if that s... | NONE | ### Feature request
A number of processes parameter to the dataset.push_to_hub method
### Motivation
Shards are currently uploaded serially which makes it slow for many shards, uploading can be done in parallel and much faster
| |
3,101,654,892 | I_kwDODunzps64339s | 7,590 | `Sequence(Features(...))` causes PyArrow cast error in `load_dataset` despite correct schema. | closed | completed | 2025-05-29T22:53:36 | 2025-07-19T22:45:08 | 2025-07-19T22:45:08Z | https://github.com/huggingface/datasets/issues/7590 | AHS-uni | [] | [] | [
"Hi @lhoestq \n\nCould you help confirm whether this qualifies as a bug?\n\nIt looks like the issue stems from how `Sequence(Features(...))` is interpreted as a plain struct during schema inference, which leads to a mismatch when casting with PyArrow (especially with nested structs inside lists). From the descripti... | NONE | ### Description
When loading a dataset with a field declared as a list of structs using `Sequence(Features(...))`, `load_dataset` incorrectly infers the field as a plain `struct<...>` instead of a `list<struct<...>>`. This leads to the following error:
```
ArrowNotImplementedError: Unsupported cast from list<item: st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.