id
stringlengths
18
24
number
int64
2
8.48k
title
stringlengths
1
290
body
stringlengths
0
228k
state
stringclasses
2 values
createdAt
timestamp[s]date
2020-04-14 18:18:51
2026-08-13 03:02:44
updatedAt
timestamp[s]date
2020-04-29 09:23:05
2026-08-15 04:47:12
closedAt
timestamp[s]date
2020-04-29 09:23:05
2026-07-28 10:29:56
url
stringlengths
48
51
author
dict
labels
dict
comments
listlengths
0
30
I_kwDODunzps7A88TC
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
2026-06-13T13:18:28
null
https://github.com/huggingface/datasets/issues/7686
{ "login": "jmaccarl" }
{ "nodes": [] }
[ "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...
I_kwDODunzps7A8GKM
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
2025-08-11T08:16:54
null
https://github.com/huggingface/datasets/issues/7685
{ "login": "universalmind303" }
{ "nodes": [] }
[ "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 ...
I_kwDODunzps7AgR3V
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
2025-07-15T12:10:39
2025-07-15T10:24:08
https://github.com/huggingface/datasets/issues/7682
{ "login": "luatil-cloud" }
{ "nodes": [] }
[ "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!" ]
I_kwDODunzps7AWdUg
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
2025-07-14T01:57:16
null
https://github.com/huggingface/datasets/issues/7681
{ "login": "ryan-minato" }
{ "nodes": [] }
[]
I_kwDODunzps7ANulX
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
2025-08-01T13:01:48
null
https://github.com/huggingface/datasets/issues/7680
{ "login": "Tavish9" }
{ "nodes": [] }
[ "> 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...
I_kwDODunzps6_-VCr
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
2025-07-11T17:42:01
2025-07-11T17:42:01
https://github.com/huggingface/datasets/issues/7679
{ "login": "stas00" }
{ "nodes": [] }
[ "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!" ]
I_kwDODunzps6_2FQI
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
2026-03-05T00:58:32
2025-07-11T05:05:42
https://github.com/huggingface/datasets/issues/7678
{ "login": "alpcansoydas" }
{ "nodes": [] }
[ "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]...
I_kwDODunzps6_z3bw
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
2025-07-11T04:40:59
2025-07-11T04:40:59
https://github.com/huggingface/datasets/issues/7677
{ "login": "serena-ruan" }
{ "nodes": [] }
[ "Hi ! You can fix this by upgrading `evaluate`:\n\n```\npip install -U evaluate\n```", "Thanks, verified evaluate 0.4.5 works!" ]
I_kwDODunzps6_vVnX
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
2026-02-17T17:18:19
null
https://github.com/huggingface/datasets/issues/7676
{ "login": "mobicham" }
{ "nodes": [] }
[ "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 ...
I_kwDODunzps6_uu7W
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
2025-07-22T09:35:42
null
https://github.com/huggingface/datasets/issues/7675
{ "login": "egegurel" }
{ "nodes": [] }
[ "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...
I_kwDODunzps6_hefO
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
2026-01-20T13:59:31
null
https://github.com/huggingface/datasets/issues/7671
{ "login": "dnaihao" }
{ "nodes": [] }
[ "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...
I_kwDODunzps6-8ihj
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
2025-07-05T18:19:37
null
https://github.com/huggingface/datasets/issues/7669
{ "login": "xiagod" }
{ "nodes": [] }
[ "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...
I_kwDODunzps6-rXda
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
2025-07-03T12:27:16
null
https://github.com/huggingface/datasets/issues/7668
{ "login": "Seas0" }
{ "nodes": [] }
[ "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 !)" ]
I_kwDODunzps6-VPmT
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
2025-07-01T17:17:48
2025-07-01T17:17:48
https://github.com/huggingface/datasets/issues/7665
{ "login": "zdzichukowalski" }
{ "nodes": [] }
[ "Somehow I created the issue twice🙈 This one is an exact duplicate of #7664." ]
I_kwDODunzps6-VPX7
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
2025-07-09T13:14:11
null
https://github.com/huggingface/datasets/issues/7664
{ "login": "zdzichukowalski" }
{ "nodes": [] }
[ "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...
I_kwDODunzps6-L9Qb
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
2025-07-10T06:17:40
null
https://github.com/huggingface/datasets/issues/7662
{ "login": "JunjieLl" }
{ "nodes": [] }
[ "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 ...
I_kwDODunzps6-FLWb
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
2025-07-03T15:14:27
null
https://github.com/huggingface/datasets/issues/7660
{ "login": "Hypothesis-Z" }
{ "nodes": [] }
[ "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 ...
I_kwDODunzps69tNbj
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
2025-06-27T12:54:25
null
https://github.com/huggingface/datasets/issues/7650
{ "login": "iPieter" }
{ "nodes": [] }
[]
I_kwDODunzps69evdF
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
2025-07-10T14:49:30
null
https://github.com/huggingface/datasets/issues/7647
{ "login": "pavel-esir" }
{ "nodes": [] }
[ "@claude Could you please address this issue", "kinda related: https://github.com/huggingface/datasets/issues/7675" ]
I_kwDODunzps69DxoC
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
2025-07-01T16:08:33
null
https://github.com/huggingface/datasets/issues/7637
{ "login": "albertvillanova" }
{ "nodes": [ { "name": "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...
I_kwDODunzps68_8LX
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
2025-07-10T04:13:16
null
https://github.com/huggingface/datasets/issues/7636
{ "login": "kuanyan9527" }
{ "nodes": [] }
[ "@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 ...
I_kwDODunzps682fEV
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
2025-06-23T14:24:40
null
https://github.com/huggingface/datasets/issues/7633
{ "login": "bikkiNitSrinagar" }
{ "nodes": [] }
[]
I_kwDODunzps682CvF
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
2025-07-08T06:52:53
null
https://github.com/huggingface/datasets/issues/7632
{ "login": "ganiket19" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi! This is now handled in PR #7638", "Thank you for implementing the suggestion it would be great help in our use case. " ]
I_kwDODunzps68oL2U
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
2026-02-06T07:06:02
null
https://github.com/huggingface/datasets/issues/7630
{ "login": "felipemello1" }
{ "nodes": [] }
[ "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...
I_kwDODunzps68YhSG
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
2025-06-23T12:39:10
2025-06-23T12:39:10
https://github.com/huggingface/datasets/issues/7627
{ "login": "Thunderhead-exe" }
{ "nodes": [] }
[ "### > 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...
I_kwDODunzps68HtKw
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
2025-06-20T07:46:43
2025-06-20T07:46:43
https://github.com/huggingface/datasets/issues/7624
{ "login": "jcerveto" }
{ "nodes": [] }
[ "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" ]
I_kwDODunzps6779rV
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
2025-06-29T16:34:44
null
https://github.com/huggingface/datasets/issues/7619
{ "login": "abdulfatir" }
{ "nodes": [] }
[ "@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...
I_kwDODunzps67pDnF
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
2026-03-17T16:00:50
2025-06-16T13:43:31
https://github.com/huggingface/datasets/issues/7617
{ "login": "qgallouedec" }
{ "nodes": [] }
[ "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...
I_kwDODunzps67RaqZ
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
2025-06-24T16:52:30
null
https://github.com/huggingface/datasets/issues/7612
{ "login": "wwwjn" }
{ "nodes": [ { "name": "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...
I_kwDODunzps67PbcE
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
2025-07-17T13:14:18
2025-07-17T13:14:18
https://github.com/huggingface/datasets/issues/7611
{ "login": "shaily99" }
{ "nodes": [] }
[ "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" ]
I_kwDODunzps67PCcY
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
2025-06-27T14:36:47
null
https://github.com/huggingface/datasets/issues/7610
{ "login": "lykamspam" }
{ "nodes": [] }
[ "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...
I_kwDODunzps6651RA
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
2025-06-19T18:25:49
2025-06-19T18:25:49
https://github.com/huggingface/datasets/issues/7607
{ "login": "TyTodd" }
{ "nodes": [ { "name": "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...
I_kwDODunzps66ZsC2
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
2025-07-31T10:00:50
2025-07-31T10:00:50
https://github.com/huggingface/datasets/issues/7600
{ "login": "sharvil" }
{ "nodes": [] }
[ "@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...
I_kwDODunzps66TS2X
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
2025-06-16T15:18:00
2025-06-16T15:18:00
https://github.com/huggingface/datasets/issues/7599
{ "login": "JuanCarlosMartinezSevilla" }
{ "nodes": [] }
[ "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...
I_kwDODunzps66M-NV
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
2025-06-13T13:46:00
2025-06-13T13:46:00
https://github.com/huggingface/datasets/issues/7597
{ "login": "DanielSchuhmacher" }
{ "nodes": [ { "name": "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...
I_kwDODunzps66A5-K
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
2025-10-23T14:54:47
null
https://github.com/huggingface/datasets/issues/7594
{ "login": "avishaiElmakies" }
{ "nodes": [ { "name": "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...
I_kwDODunzps651hpE
7,591
Add num_proc parameter to push_to_hub
### 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
CLOSED
2025-06-04T13:19:15
2025-09-04T10:43:33
2025-09-04T10:43:33
https://github.com/huggingface/datasets/issues/7591
{ "login": "SwayStar123" }
{ "nodes": [ { "name": "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...
I_kwDODunzps64339s
7,590
`Sequence(Features(...))` causes PyArrow cast error in `load_dataset` despite correct schema.
### 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...
CLOSED
2025-05-29T22:53:36
2025-07-19T22:45:08
2025-07-19T22:45:08
https://github.com/huggingface/datasets/issues/7590
{ "login": "AHS-uni" }
{ "nodes": [] }
[ "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...
I_kwDODunzps64auB5
7,588
ValueError: Invalid pattern: '**' can only be an entire path component [Colab]
### Describe the bug I have a dataset on HF [here](https://huggingface.co/datasets/kambale/luganda-english-parallel-corpus) that i've previously used to train a translation model [here](https://huggingface.co/kambale/pearl-11m-translate). now i changed a few hyperparameters to increase number of tokens for the model,...
CLOSED
2025-05-27T13:46:05
2025-05-30T13:22:52
2025-05-30T01:26:30
https://github.com/huggingface/datasets/issues/7588
{ "login": "wkambale" }
{ "nodes": [] }
[ "Could you please run the following code snippet in your environment and share the exact output? This will help check for any compatibility issues within the env itself. \n\n```\nimport datasets\nimport huggingface_hub\nimport fsspec\n\nprint(\"datasets version:\", datasets.__version__)\nprint(\"huggingface_hub ver...
I_kwDODunzps64Qc5v
7,586
help is appreciated
### Feature request https://github.com/rajasekarnp1/neural-audio-upscaler/tree/main ### Motivation ai model develpment and audio ### Your contribution ai model develpment and audio
OPEN
2025-05-26T14:00:42
2025-05-26T18:21:57
null
https://github.com/huggingface/datasets/issues/7586
{ "login": "rajasekarnp1" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "how is this related to this repository ?" ]
I_kwDODunzps64MYyv
7,584
Add LMDB format support
### Feature request Add LMDB format support for large memory-mapping files ### Motivation Add LMDB format support for large memory-mapping files ### Your contribution I'm trying to add it
OPEN
2025-05-26T07:10:13
2025-05-26T18:23:37
null
https://github.com/huggingface/datasets/issues/7584
{ "login": "trotsky1997" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! Can you explain what's your use case ? Is it about converting LMDB to Dataset objects (i.e. converting to Arrow) ?" ]
I_kwDODunzps64HjZt
7,583
load_dataset type stubs reject List[str] for split parameter, but runtime supports it
### Describe the bug The [load_dataset](https://huggingface.co/docs/datasets/v3.6.0/en/package_reference/loading_methods#datasets.load_dataset) method accepts a `List[str]` as the split parameter at runtime, however, the current type stubs restrict the split parameter to `Union[str, Split, None]`. This causes type che...
CLOSED
2025-05-25T02:33:18
2025-05-26T18:29:58
2025-05-26T18:29:58
https://github.com/huggingface/datasets/issues/7583
{ "login": "hierr" }
{ "nodes": [] }
[]
I_kwDODunzps63wr2D
7,580
Requesting a specific split (eg: test) still downloads all (train, test, val) data when streaming=False.
### Describe the bug When using load_dataset() from the datasets library (in load.py), specifying a particular split (e.g., split="train") still results in downloading data for all splits when streaming=False. This happens during the builder_instance.download_and_prepare() call. This behavior leads to unnecessary band...
OPEN
2025-05-22T11:08:16
2025-11-05T16:25:53
null
https://github.com/huggingface/datasets/issues/7580
{ "login": "s3pi" }
{ "nodes": [] }
[ "Hi ! There was a PR open to improve this: https://github.com/huggingface/datasets/pull/6832 \nbut it hasn't been continued so far.\n\nIt would be a cool improvement though !", "Been having this problem with datasets and dataloader for a while." ]
I_kwDODunzps63ocrM
7,577
arrow_schema is not compatible with list
### Describe the bug ``` import datasets f = datasets.Features({'x': list[datasets.Value(dtype='int32')]}) f.arrow_schema Traceback (most recent call last): File "datasets/features/features.py", line 1826, in arrow_schema return pa.schema(self.type).with_metadata({"huggingface": json.dumps(hf_metadata)}) ...
CLOSED
2025-05-21T16:37:01
2025-05-26T18:49:51
2025-05-26T18:32:55
https://github.com/huggingface/datasets/issues/7577
{ "login": "jonathanshen-upwork" }
{ "nodes": [] }
[ "Thanks for reporting, I'll look into it", "Actually it looks like you just forgot parenthesis:\n\n```diff\n- f = datasets.Features({'x': list[datasets.Value(dtype='int32')]})\n+ f = datasets.Features({'x': list([datasets.Value(dtype='int32')])})\n```\n\nor simply using the `[ ]` syntax:\n\n```python\nf = dataset...
I_kwDODunzps63j5fw
7,574
Missing multilingual directions in IWSLT2017 dataset's processing script
### Describe the bug Hi, Upon using `iwslt2017.py` in `IWSLT/iwslt2017` on the Hub for loading the datasets, I am unable to obtain the datasets for the language pairs `de-it`, `de-ro`, `de-nl`, `it-de`, `nl-de`, and `ro-de` using it. These 6 pairs do not show up when using `get_dataset_config_names()` to obtain the ...
OPEN
2025-05-21T09:53:17
2025-05-26T18:36:38
null
https://github.com/huggingface/datasets/issues/7574
{ "login": "andy-joy-25" }
{ "nodes": [] }
[ "I have opened 2 PRs on the Hub: `https://huggingface.co/datasets/IWSLT/iwslt2017/discussions/7` and `https://huggingface.co/datasets/IWSLT/iwslt2017/discussions/8` to resolve this issue", "cool ! I pinged the owners of the dataset on HF to merge your PRs :)" ]
I_kwDODunzps63Xl-W
7,573
No Samsum dataset
### Describe the bug https://huggingface.co/datasets/Samsung/samsum dataset not found error 404 Originated from https://github.com/meta-llama/llama-cookbook/issues/948 ### Steps to reproduce the bug go to website https://huggingface.co/datasets/Samsung/samsum see the error also downloading it with python throws `...
CLOSED
2025-05-20T09:54:35
2025-07-21T18:34:34
2025-06-18T12:52:23
https://github.com/huggingface/datasets/issues/7573
{ "login": "IgorKasianenko" }
{ "nodes": [] }
[ "According to the following https://huggingface.co/posts/seawolf2357/424129432408590, as of now the dataset seems to be inaccessible.\n\n@IgorKasianenko, would https://huggingface.co/datasets/knkarthick/samsum suffice for your purpose?\n", "Thanks @SP1029 for the update!\nThat will work for now, using it as repla...
I_kwDODunzps62vu_B
7,570
Dataset lib seems to broke after fssec lib update
### Describe the bug I am facing an issue since today where HF's dataset is acting weird and in some instances failure to recognise a valid dataset entirely, I think it is happening due to recent change in `fsspec` lib as using this command fixed it for me in one-time: `!pip install -U datasets huggingface_hub fsspec`...
CLOSED
2025-05-15T11:45:06
2025-06-13T00:44:27
2025-06-13T00:44:27
https://github.com/huggingface/datasets/issues/7570
{ "login": "sleepingcat4" }
{ "nodes": [] }
[ "Hi, can you try updating `datasets` ? Colab still installs `datasets` 2.x by default, instead of 3.x\n\nIt would be cool to also report this to google colab, they have a GitHub repo for this IIRC", "@lhoestq I have updated it to `datasets==3.6.0` and now there's an entirely different issue on colab while locally...
I_kwDODunzps62drmG
7,569
Dataset creation is broken if nesting a dict inside a dict inside a list
### Describe the bug Hey, I noticed that the creation of datasets with `Dataset.from_generator` is broken if dicts and lists are nested in a certain way and a schema is being passed. See below for details. Best, Tim ### Steps to reproduce the bug Runing this code: ```python from datasets import Dataset, Features,...
OPEN
2025-05-13T21:06:45
2025-05-20T19:25:15
null
https://github.com/huggingface/datasets/issues/7569
{ "login": "TimSchneider42" }
{ "nodes": [] }
[ "Hi ! That's because Séquence is a type that comes from tensorflow datasets and inverts lists and focus when doing Séquence(dict).\n\nInstead you should use a list. In your case\n```python\nfeatures = Features({\n \"a\": [{\"b\": {\"c\": Value(\"string\")}}]\n})\n```", "Hi,\n\nThanks for the swift reply! Could...
I_kwDODunzps62a8G5
7,568
`IterableDatasetDict.map()` call removes `column_names` (in fact info.features)
When calling `IterableDatasetDict.map()`, each split’s `IterableDataset.map()` is invoked without a `features` argument. While omitting the argument isn’t itself incorrect, the implementation then sets `info.features = features`, which destroys the original `features` content. Since `IterableDataset.column_names` relie...
OPEN
2025-05-13T15:45:42
2025-06-30T09:33:47
null
https://github.com/huggingface/datasets/issues/7568
{ "login": "mombip" }
{ "nodes": [] }
[ "Hi ! IterableDataset doesn't know what's the output of the function you pass to map(), so it's not possible to know in advance the features of the output dataset.\n\nThere is a workaround though: either do `ds = ds.map(..., features=features)`, or you can do `ds = ds._resolve_features()` which iterates on the firs...
I_kwDODunzps62ShW6
7,567
interleave_datasets seed with multiple workers
### Describe the bug Using interleave_datasets with multiple dataloader workers and a seed set causes the same dataset sampling order across all workers. Should the seed be modulated with the worker id? ### Steps to reproduce the bug See above ### Expected behavior See above ### Environment info - `datasets` ve...
CLOSED
2025-05-12T22:38:27
2025-10-24T14:04:37
2025-10-24T14:04:37
https://github.com/huggingface/datasets/issues/7567
{ "login": "jonathanasdf" }
{ "nodes": [] }
[ "Hi ! It's already the case IIRC: the effective seed looks like `seed + worker_id`. Do you have a reproducible example ?", "here is an example with shuffle\n\n```\nimport itertools\nimport datasets\nimport multiprocessing\nimport torch.utils.data\n\n\ndef gen(shard):\n worker_info = torch.utils.data.get_worker_i...
I_kwDODunzps62G9zw
7,566
terminate called without an active exception; Aborted (core dumped)
### Describe the bug I use it as in the tutorial here: https://huggingface.co/docs/datasets/stream, and it ends up with abort. ### Steps to reproduce the bug 1. `pip install datasets` 2. ``` $ cat main.py #!/usr/bin/env python3 from datasets import load_dataset dataset = load_dataset('HuggingFaceFW/fineweb', spl...
OPEN
2025-05-11T23:05:54
2026-05-13T15:21:14
null
https://github.com/huggingface/datasets/issues/7566
{ "login": "alexey-milovidov" }
{ "nodes": [] }
[ "@alexey-milovidov I followed the code snippet, but am able to successfully execute without any error. Could you please verify if the error persists or there is any additional details.", "@alexey-milovidov else if the problem does not exist please feel free to close this issue.", "```\nmilovidov@milovidov-pc:~/...
I_kwDODunzps61kuO9
7,561
NotImplementedError: <class 'datasets.iterable_dataset.RepeatExamplesIterable'> doesn't implement num_shards yet
### Describe the bug When using `.repeat()` on an `IterableDataset`, this error gets thrown. There is [this thread](https://discuss.huggingface.co/t/making-an-infinite-iterabledataset/146192/5) that seems to imply the fix is trivial, but I don't know anything about this codebase, so I'm opening this issue rather than ...
CLOSED
2025-05-07T15:05:42
2025-06-05T12:41:30
2025-06-05T12:41:30
https://github.com/huggingface/datasets/issues/7561
{ "login": "scurkovic" }
{ "nodes": [] }
[]
I_kwDODunzps61Yd20
7,554
datasets downloads and generates all splits, even though a single split is requested (for dataset with loading script)
### Describe the bug `datasets` downloads and generates all splits, even though a single split is requested. [This](https://huggingface.co/datasets/jordiae/exebench) is the dataset in question. It uses a loading script. I am not 100% sure that this is a bug, because maybe with loading scripts `datasets` must actual...
CLOSED
2025-05-06T14:43:38
2025-05-07T14:53:45
2025-05-07T14:53:44
https://github.com/huggingface/datasets/issues/7554
{ "login": "sei-eschwartz" }
{ "nodes": [] }
[ "Hi ! there has been some effort on allowing to download only a subset of splits in https://github.com/huggingface/datasets/pull/6832 but no one has been continuing this work so far. This would be a welcomed contribution though\n\nAlso note that loading script are often unoptimized, and we recommend using datasets ...
I_kwDODunzps61FfRw
7,551
Issue with offline mode and partial dataset cached
### Describe the bug Hi, a issue related to #4760 here when loading a single file from a dataset, unable to access it in offline mode afterwards ### Steps to reproduce the bug ```python import os # os.environ["HF_HUB_OFFLINE"] = "1" os.environ["HF_TOKEN"] = "xxxxxxxxxxxxxx" import datasets dataset_name = "uonlp/...
OPEN
2025-05-04T16:49:37
2025-05-13T03:18:43
null
https://github.com/huggingface/datasets/issues/7551
{ "login": "nrv" }
{ "nodes": [] }
[ "It seems the problem comes from builder.py / create_config_id()\n\nOn the first call, when the cache is empty we have\n```\nconfig_kwargs = {'data_files': {'train': ['hf://datasets/uonlp/CulturaX@6a8734bc69fefcbb7735f4f9250f43e4cd7a442e/fr/fr_part_00038.parquet']}}\n```\nleading to config_id beeing 'default-2935e8...
I_kwDODunzps60-dWP
7,549
TypeError: Couldn't cast array of type string to null on webdataset format dataset
### Describe the bug ```python from datasets import load_dataset dataset = load_dataset("animetimm/danbooru-wdtagger-v4-w640-ws-30k") ``` got ``` File "/home/ubuntu/miniconda3/lib/python3.10/site-packages/datasets/arrow_writer.py", line 626, in write_batch arrays.append(pa.array(typed_sequence)) File "pyarro...
OPEN
2025-05-02T15:18:07
2026-06-13T13:53:06
null
https://github.com/huggingface/datasets/issues/7549
{ "login": "narugo1992" }
{ "nodes": [] }
[ "seems to get fixed by explicitly adding `dataset_infos.json` like this\n\n```json\n{\n \"default\": {\n \"description\": \"Image dataset with tags and ratings\",\n \"citation\": \"\",\n \"homepage\": \"\",\n \"license\": \"\",\n \"features\": {\n \"image\": {\n \"dtype\": \"image\",\n ...
I_kwDODunzps607xrT
7,548
Python 3.13t (free threads) Compat
### Describe the bug Cannot install `datasets` under `python 3.13t` due to dependency on `aiohttp` and aiohttp cannot be built for free-threading python. The `free threading` support issue in `aiothttp` is active since August 2024! Ouch. https://github.com/aio-libs/aiohttp/issues/8796#issue-2475941784 `pip install...
OPEN
2025-05-02T09:20:09
2025-05-12T15:11:32
null
https://github.com/huggingface/datasets/issues/7548
{ "login": "Qubitium" }
{ "nodes": [] }
[ "Update: `datasets` use `aiohttp` for data streaming and from what I understand data streaming is useful for large datasets that do not fit in memory and/or multi-modal datasets like image/audio where you only what the actual binary bits to fed in as needed. \n\nHowever, there are also many cases where aiohttp will...
I_kwDODunzps6013H6
7,546
Large memory use when loading large datasets to a ZFS pool
### Describe the bug When I load large parquet based datasets from the hub like `MLCommons/peoples_speech` using `load_dataset`, all my memory (500GB) is used and isn't released after loading, meaning that the process is terminated by the kernel if I try to load an additional dataset. This makes it impossible to train...
CLOSED
2025-05-01T14:43:47
2025-05-13T13:30:09
2025-05-13T13:29:53
https://github.com/huggingface/datasets/issues/7546
{ "login": "FredHaa" }
{ "nodes": [] }
[ "Hi ! datasets are memory mapped from disk, so they don't fill out your RAM. Not sure what's the source of your memory issue.\n\nWhat kind of system are you using ? and what kind of disk ?", "Well, the fact of the matter is that my RAM is getting filled out by running the given example, as shown in [this video](h...
I_kwDODunzps60stAL
7,545
Networked Pull Through Cache
### Feature request Introduce a HF_DATASET_CACHE_NETWORK_LOCATION configuration (e.g. an environment variable) together with a companion network cache service. Enable a three-tier cache lookup for datasets: 1. Local on-disk cache 2. Configurable network cache proxy 3. Official Hugging Face Hub ### Motivation - Dis...
OPEN
2025-04-30T15:16:33
2025-04-30T15:16:33
null
https://github.com/huggingface/datasets/issues/7545
{ "login": "wrmedford" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps60alX6
7,543
The memory-disk mapping failure issue of the map function(resolved, but there are some suggestions.)
### Describe the bug ## bug When the map function processes a large dataset, it temporarily stores the data in a cache file on the disk. After the data is stored, the memory occupied by it is released. Therefore, when using the map function to process a large-scale dataset, only a dataset space of the size of `writer_...
CLOSED
2025-04-29T03:04:59
2025-04-30T02:22:17
2025-04-30T02:22:17
https://github.com/huggingface/datasets/issues/7543
{ "login": "jxma20" }
{ "nodes": [] }
[]
I_kwDODunzps60M5e4
7,538
`IterableDataset` drops samples when resuming from a checkpoint
When resuming from a checkpoint, `IterableDataset` will drop samples if `num_shards % world_size == 0` and the underlying example supports `iter_arrow` and needs to be formatted. In that case, the `FormattedExamplesIterable` fetches a batch of samples from the child iterable's `iter_arrow` and yields them one by one ...
CLOSED
2025-04-27T19:34:49
2025-05-06T14:04:05
2025-05-06T14:03:42
https://github.com/huggingface/datasets/issues/7538
{ "login": "mariosasko" }
{ "nodes": [ { "name": "bug" } ] }
[ "Thanks for reporting ! I fixed the issue using RebatchedArrowExamplesIterable before the formatted iterable" ]
I_kwDODunzps6z7yAG
7,537
`datasets.map(..., num_proc=4)` multi-processing fails
The following code fails in python 3.11+ ```python tokenized_datasets = datasets.map(tokenize_function, batched=True, num_proc=4, remove_columns=["text"]) ``` Error log: ```bash Traceback (most recent call last): File "/usr/local/lib/python3.12/dist-packages/multiprocess/process.py", line 315, in _bootstrap self.ru...
OPEN
2025-04-25T01:53:47
2025-05-06T13:12:08
null
https://github.com/huggingface/datasets/issues/7537
{ "login": "faaany" }
{ "nodes": [] }
[ "related: https://github.com/huggingface/datasets/issues/7510\n\nwe need to do more tests to see if latest `dill` is deterministic" ]
I_kwDODunzps6z6YTN
7,536
[Errno 13] Permission denied: on `.incomplete` file
### Describe the bug When downloading a dataset, we frequently hit the below Permission Denied error. This looks to happen (at least) across datasets in HF, S3, and GCS. It looks like the `temp_file` being passed [here](https://github.com/huggingface/datasets/blob/main/src/datasets/utils/file_utils.py#L412) can somet...
CLOSED
2025-04-24T20:52:45
2025-05-06T13:05:01
2025-05-06T13:05:01
https://github.com/huggingface/datasets/issues/7536
{ "login": "ryan-clancy" }
{ "nodes": [] }
[ "It must be an issue with umask being used by multiple threads indeed. Maybe we can try to make a thread safe function to apply the umask (using filelock for example)", "> It must be an issue with umask being used by multiple threads indeed. Maybe we can try to make a thread safe function to apply the umask (usin...
I_kwDODunzps6z17mP
7,534
TensorFlow RaggedTensor Support (batch-level)
### Feature request Hi, Currently datasets does not support RaggedTensor output on batch-level. When building a Object Detection Dataset (with TensorFlow) I need to enable RaggedTensors as that's how BBoxes & classes are expected from the Keras Model POV. Currently there's a error thrown saying that "Nested Data is ...
OPEN
2025-04-24T13:14:52
2025-06-30T17:03:39
null
https://github.com/huggingface/datasets/issues/7534
{ "login": "Lundez" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Keras doesn't support other inputs other than tf.data.Dataset objects ? it's a bit painful to have to support and maintain this kind of integration\n\nIs there a way to use a `datasets.Dataset` with outputs formatted as tensors / ragged tensors instead ? like in https://huggingface.co/docs/datasets/use_with_tensor...
I_kwDODunzps6zWGXH
7,531
Deepspeed reward training hangs at end of training with Dataset.from_list
There seems to be a weird interaction between Deepspeed, the Dataset.from_list method and trl's RewardTrainer. On a multi-GPU setup (10 A100s), training always hangs at the very end of training until it times out. The training itself works fine until the end of training and running the same script with Deepspeed on a s...
OPEN
2025-04-21T17:29:20
2026-05-02T13:03:01
null
https://github.com/huggingface/datasets/issues/7531
{ "login": "Matt00n" }
{ "nodes": [] }
[ "Hi ! How big is the dataset ? if you load it using `from_list`, the dataset lives in memory and has to be copied to every gpu process, which can be slow.\n\nIt's fasted if you load it from JSON files from disk, because in that case the dataset in converted to Arrow and loaded from disk using memory mapping. Memory...
I_kwDODunzps6zQhVT
7,530
How to solve "Spaces stuck in Building" problems
### Describe the bug Public spaces may stuck in Building after restarting, error log as follows: build error Unexpected job error ERROR: failed to push spaces-registry.huggingface.tech/spaces/*:cpu-*-*: unexpected status from HEAD request to https://spaces-registry.huggingface.tech/v2/spaces/*/manifests/cpu-*-*: 401...
CLOSED
2025-04-21T03:08:38
2025-11-11T00:57:14
2025-04-22T07:49:52
https://github.com/huggingface/datasets/issues/7530
null
{ "nodes": [] }
[ "I'm facing the same issue—Space stuck in \"Building\" even after restart and Factory rebuild. Any fix?\n", "> I'm facing the same issue—Space stuck in \"Building\" even after restart and Factory rebuild. Any fix?\n\nAlso see https://github.com/huggingface/huggingface_hub/issues/3019", "I'm facing the same issu...
I_kwDODunzps6zPP55
7,529
audio folder builder cannot detect custom split name
### Describe the bug when using audio folder builder (`load_dataset("audiofolder", data_dir="/path/to/folder")`), it cannot detect custom split name other than train/validation/test ### Steps to reproduce the bug i have the following folder structure ``` my_dataset/ ├── train/ │ ├── lorem.wav │ ├── … │ └── met...
CLOSED
2025-04-20T16:53:21
2026-05-16T17:16:35
2026-05-16T17:16:35
https://github.com/huggingface/datasets/issues/7529
{ "login": "phineas-pta" }
{ "nodes": [] }
[ "Hi! Triaging older issues — reproduced your behavior, but I think this is by design rather than a bug.\n\nThe folder-based builders (`audiofolder`/`imagefolder`/`videofolder`) auto-detect splits using a fixed keyword list (`train`, `validation`/`valid`/`val`/`dev`, `test`/`testing`/`eval`/`evaluation`) — see `SPLI...
I_kwDODunzps6zMojN
7,528
Data Studio Error: Convert JSONL incorrectly
### Describe the bug Hi there, I uploaded a dataset here https://huggingface.co/datasets/V-STaR-Bench/V-STaR, but I found that Data Studio incorrectly convert the "bboxes" value for the whole dataset. Therefore, anyone who downloaded the dataset via the API would get the wrong "bboxes" value in the data file. Could ...
OPEN
2025-04-19T13:21:44
2025-05-06T13:18:38
null
https://github.com/huggingface/datasets/issues/7528
{ "login": "zxccade" }
{ "nodes": [] }
[ "Hi ! Your JSONL file is incompatible with Arrow / Parquet. Indeed in Arrow / Parquet every dict should have the same keys, while in your dataset the bboxes have varying keys.\n\nThis causes the Data Studio to treat the bboxes as if each row was missing the keys from other rows.\n\nFeel free to take a look at the d...
I_kwDODunzps6zIFw2
7,527
Auto-merge option for `convert-to-parquet`
### Feature request Add a command-line option, e.g. `--auto-merge-pull-request` that enables automatic merging of the commits created by the `convert-to-parquet` tool. ### Motivation Large datasets may result in dozens of PRs due to the splitting mechanism. Each of these has to be manually accepted via the website. ...
CLOSED
2025-04-18T16:03:22
2025-07-18T19:09:03
2025-07-18T19:09:03
https://github.com/huggingface/datasets/issues/7527
{ "login": "klamike" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Alternatively, there could be an option to switch from submitting PRs to just committing changes directly to `main`.", "Why not, I'd be in favor of `--merge-pull-request` to call `HfApi().merge_pull_request()` at the end of the conversion :) feel free to open a PR if you'd like", "#self-assign", "Closing sin...
I_kwDODunzps6zHk1Q
7,526
Faster downloads/uploads with Xet storage
![Image](https://github.com/user-attachments/assets/6e247f4a-d436-4428-a682-fe18ebdc73a9) ## Xet is out ! Over the past few weeks, Hugging Face’s [Xet Team](https://huggingface.co/xet-team) took a major step forward by [migrating the first Model and Dataset repositories off LFS and to Xet storage](https://huggingface...
OPEN
2025-04-18T14:46:42
2025-05-12T12:09:09
null
https://github.com/huggingface/datasets/issues/7526
{ "login": "lhoestq" }
{ "nodes": [] }
[]
I_kwDODunzps6yqQfc
7,520
Update items in the dataset without `map`
### Feature request I would like to be able to update items in my dataset without affecting all rows. At least if there was a range option, I would be able to process those items, save the dataset, and then continue. If I am supposed to split the dataset first, that is not clear, since the docs suggest that any of th...
OPEN
2025-04-15T19:39:01
2025-04-19T18:47:46
null
https://github.com/huggingface/datasets/issues/7520
{ "login": "mashdragon" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hello!\n\nHave you looked at `Dataset.shard`? [Docs](https://huggingface.co/docs/datasets/en/process#shard)\n\nUsing this method you could break your dataset in N shards. Apply `map` on each shard and concatenate them back." ]
I_kwDODunzps6ylX8B
7,518
num_proc parallelization works only for first ~10s.
### Describe the bug When I try to load an already downloaded dataset with num_proc=64, the speed is very high for the first 10-20 seconds acheiving 30-40K samples / s, and 100% utilization for all cores but it soon drops to <= 1000 with almost 0% utilization for most cores. ### Steps to reproduce the bug ``` // do...
OPEN
2025-04-15T11:44:03
2025-04-15T13:12:13
null
https://github.com/huggingface/datasets/issues/7518
{ "login": "pshishodiaa" }
{ "nodes": [] }
[ "Hi, can you check if the processes are still alive ? It's a bit weird because `datasets` does check if processes crash and return an error in that case", "Thank you for reverting quickly. I digged a bit, and realized my disk's IOPS is also limited - which is causing this. will check further and report if it's an...
I_kwDODunzps6ylPNd
7,517
Image Feature in Datasets Library Fails to Handle bytearray Objects from Spark DataFrames
### Describe the bug When using `IterableDataset.from_spark()` with a Spark DataFrame containing image data, the `Image` feature class fails to properly process this data type, causing an `AttributeError: 'bytearray' object has no attribute 'get'` ### Steps to reproduce the bug 1. Create a Spark DataFrame with a col...
CLOSED
2025-04-15T11:29:17
2025-05-07T14:17:30
2025-05-07T14:17:30
https://github.com/huggingface/datasets/issues/7517
{ "login": "giraffacarp" }
{ "nodes": [] }
[ "Hi ! The `Image()` type accepts either\n- a `bytes` object containing the image bytes\n- a `str` object containing the image path\n- a `PIL.Image` object\n\nbut it doesn't support `bytearray`, maybe you can convert to `bytes` beforehand ?", "Hi @lhoestq, \nconverting to bytes is certainly possible and would work...
I_kwDODunzps6yj_q7
7,516
unsloth/DeepSeek-R1-Distill-Qwen-32B server error
### Describe the bug hfhubhttperror: 500 server error: internal server error for url: https://huggingface.co/api/models/unsloth/deepseek-r1-distill-qwen-32b-bnb-4bit/commits/main (request id: root=1-67fe23fa-3a2150eb444c2a823c388579;de3aed68-c397-4da5-94d4-6565efd3b919) internal error - we're working hard to fix this ...
CLOSED
2025-04-15T09:26:53
2025-04-15T09:57:26
2025-04-15T09:57:26
https://github.com/huggingface/datasets/issues/7516
{ "login": "Editor-1" }
{ "nodes": [] }
[]
I_kwDODunzps6yhVSy
7,515
`concatenate_datasets` does not preserve Pytorch format for IterableDataset
### Describe the bug When concatenating datasets with `concatenate_datasets`, I would expect the resulting combined dataset to be in the same format as the inputs (assuming it's consistent). This is indeed the behavior when combining `Dataset`, but not when combining `IterableDataset`. Specifically, when applying `con...
CLOSED
2025-04-15T04:36:34
2025-05-19T15:07:38
2025-05-19T15:07:38
https://github.com/huggingface/datasets/issues/7515
{ "login": "francescorubbo" }
{ "nodes": [] }
[ "Hi ! Oh indeed it would be cool to return the same format in that case. Would you like to submit a PR ? The function that does the concatenation is here:\n\nhttps://github.com/huggingface/datasets/blob/90e5bf8a8599b625d6103ee5ac83b98269991141/src/datasets/iterable_dataset.py#L3375-L3380", "Thank you for the poin...
I_kwDODunzps6yfyql
7,513
MemoryError while creating dataset from generator
### Describe the bug # TL:DR `Dataset.from_generator` function passes all of its arguments to `BuilderConfig.create_config_id`, including `generator` function itself. `BuilderConfig.create_config_id` function tries to hash all the args, which can take a large amount of time or even cause MemoryError if the dataset pr...
CLOSED
2025-04-15T01:02:02
2025-10-23T22:55:10
2025-10-23T22:55:10
https://github.com/huggingface/datasets/issues/7513
{ "login": "simonreise" }
{ "nodes": [] }
[ "Upd: created a PR that can probably solve the problem: #7514", "Hi ! We need to take the generator into account for the cache. The generator is hashed to make the dataset fingerprint used by the cache. This way you can reload the Dataset from the cache without regenerating in subsequent `from_generator` calls.\n...
I_kwDODunzps6ydXqY
7,512
.map() fails if function uses pyvista
### Describe the bug Using PyVista inside a .map() produces a crash with `objc[78796]: +[NSResponder initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to ...
OPEN
2025-04-14T19:43:02
2025-04-14T20:01:53
null
https://github.com/huggingface/datasets/issues/7512
{ "login": "el-hult" }
{ "nodes": [] }
[ "I found a similar (?) issue in https://github.com/huggingface/datasets/issues/6435, where someone had issues with forks and CUDA. According to https://huggingface.co/docs/datasets/main/en/process#multiprocessing we should do \n\n```\nfrom multiprocess import set_start_method\nset_start_method(\"spawn\")\n```\n\nto...
I_kwDODunzps6yWEwt
7,510
Incompatibile dill version (0.3.9) in datasets 2.18.0 - 3.5.0
### Describe the bug Datasets 2.18.0 - 3.5.0 has a dependency on dill < 0.3.9. This causes errors with dill >= 0.3.9. Could you please take a look into it and make it compatible? ### Steps to reproduce the bug 1. Install setuptools >= 2.18.0 2. Install dill >=0.3.9 3. Run pip check 4. Output: ERROR: pip's dependenc...
CLOSED
2025-04-14T07:22:44
2025-09-15T08:37:49
2025-09-15T08:37:49
https://github.com/huggingface/datasets/issues/7510
{ "login": "JGrel" }
{ "nodes": [] }
[ "Hi ! We can bump `dill` to 0.3.9 if we make sure it's deterministic and doesn't break the caching mechanism in `datasets`.\n\nWould you be interested in opening a PR ? Then we can run the CI to see if it works", "Hi!. Yeah I can do it. Should I make any changes besides dill versions?", "There are probably some...
I_kwDODunzps6yTm5-
7,509
Dataset uses excessive memory when loading files
### Describe the bug Hi I am having an issue when loading a dataset. I have about 200 json files each about 1GB (total about 215GB). each row has a few features which are a list of ints. I am trying to load the dataset using `load_dataset`. The dataset is about 1.5M samples I use `num_proc=32` and a node with 378GB of...
OPEN
2025-04-13T21:09:49
2025-04-28T15:18:55
null
https://github.com/huggingface/datasets/issues/7509
{ "login": "avishaiElmakies" }
{ "nodes": [] }
[ "small update: I converted the jsons to parquet and it now works well with 32 proc and the same node. \nI still think this needs to be understood, since json is a very popular and easy-to-use format. ", "Hi ! The JSON loader loads full files in memory, unless they are JSON Lines. In this case it iterates on the J...
I_kwDODunzps6yBBjG
7,508
Iterating over Image feature columns is extremely slow
We are trying to load datasets where the image column stores `PIL.PngImagePlugin.PngImageFile` images. However, iterating over these datasets is extremely slow. What I have found: 1. It is the presence of the image column that causes the slowdown. Removing the column from the dataset results in blazingly fast (as expe...
OPEN
2025-04-10T19:00:54
2025-04-15T17:57:08
null
https://github.com/huggingface/datasets/issues/7508
{ "login": "sohamparikh" }
{ "nodes": [] }
[ "Hi ! Could it be because the `Image()` type in dataset does `image = Image.open(image_path)` and also `image.load()` which actually loads the image data in memory ? This is needed to avoid too many open files issues, see https://github.com/huggingface/datasets/issues/3985", "Yes, that seems to be it. For my pur...
I_kwDODunzps6x4PQu
7,507
Front-end statistical data quantity deviation
### Describe the bug While browsing the dataset at https://huggingface.co/datasets/NeuML/wikipedia-20250123, I noticed that a dataset with nearly 7M entries was estimated to be only 4M in size—almost half the actual amount. According to the post-download loading and the dataset_info (https://huggingface.co/datasets/Ne...
OPEN
2025-04-10T02:51:38
2025-04-15T12:54:51
null
https://github.com/huggingface/datasets/issues/7507
{ "login": "rangehow" }
{ "nodes": [] }
[ "Hi ! the format of this dataset is not supported by the Dataset Viewer. It looks like this dataset was saved using `save_to_disk()` which is meant for local storage / easy reload without compression, not for sharing online." ]
I_kwDODunzps6xuPCa
7,506
HfHubHTTPError: 429 Client Error: Too Many Requests for URL when trying to access Fineweb-10BT on 4A100 GPUs using SLURM
### Describe the bug I am trying to run some finetunings on 4 A100 GPUs using SLURM using axolotl training framework which in turn uses Huggingface's Trainer and Accelerate on [Fineweb-10BT](https://huggingface.co/datasets/HuggingFaceFW/fineweb), but I end up running into 429 Client Error: Too Many Requests for URL er...
OPEN
2025-04-09T06:32:04
2025-06-29T06:04:59
null
https://github.com/huggingface/datasets/issues/7506
{ "login": "calvintanama" }
{ "nodes": [] }
[ "Hi ! make sure to be logged in with your HF account (e.g. using `huggingface-cli login` or passing `token=` to `load_dataset()`), otherwise you'll get rate limited at one point", "Hey @calvintanama! Just building on what @lhoestq mentioned above — I ran into similar issues in multi-GPU SLURM setups and here’s wh...
I_kwDODunzps6xnhCM
7,505
HfHubHTTPError: 403 Forbidden: None. Cannot access content at: https://hf.co/api/s3proxy
I have already logged in Huggingface using CLI with my valid token. Now trying to download the datasets using following code: from transformers import WhisperProcessor, WhisperForConditionalGeneration, WhisperTokenizer, Trainer, TrainingArguments, DataCollatorForSeq2Seq from datasets import load_dataset, Data...
OPEN
2025-04-08T14:08:40
2025-04-08T14:08:40
null
https://github.com/huggingface/datasets/issues/7505
{ "login": "hissain" }
{ "nodes": [] }
[]
I_kwDODunzps6xljLR
7,504
BuilderConfig ParquetConfig(...) doesn't have a 'use_auth_token' key.
### Describe the bug Trying to run the following fine-tuning script (based on this page [here](https://github.com/huggingface/instruction-tuned-sd)): ``` ! accelerate launch /content/instruction-tuned-sd/finetune_instruct_pix2pix.py \ --pretrained_model_name_or_path=${MODEL_ID} \ --dataset_name=${DATASET_NAME...
OPEN
2025-04-08T10:55:03
2025-06-28T09:18:09
null
https://github.com/huggingface/datasets/issues/7504
{ "login": "tteguayco" }
{ "nodes": [] }
[ "I encountered the same error, have you resolved it?", "Hi ! `use_auth_token` has been deprecated and removed some time ago. You should use `token` instead in `load_dataset()`", "Hi @lhoestq, I'd like to take this up.\n\nAs discussed in #7504, the issue arises when `use_auth_token` is passed to `load_dataset`, ...
I_kwDODunzps6xiH7x
7,503
Inconsistency between load_dataset and load_from_disk functionality
## Issue Description I've encountered confusion when using `load_dataset` and `load_from_disk` in the datasets library. Specifically, when working offline with the gsm8k dataset, I can load it using a local path: ```python import datasets ds = datasets.load_dataset('/root/xxx/datasets/gsm8k', 'main') ``` output: ```t...
OPEN
2025-04-08T03:46:22
2025-06-28T08:51:16
null
https://github.com/huggingface/datasets/issues/7503
{ "login": "zzzzzec" }
{ "nodes": [] }
[ "Hi ! you can find more info here: https://github.com/huggingface/datasets/issues/5044#issuecomment-1263714347\n\n> What's the recommended approach for this use case? Should I manually process my gsm8k-new dataset to make it compatible with load_dataset? Is there a standard way to convert between these formats?\n\n...
I_kwDODunzps6xeFb2
7,502
`load_dataset` of size 40GB creates a cache of >720GB
Hi there, I am trying to load a dataset from the Hugging Face Hub and split it into train and validation splits. Somehow, when I try to do it with `load_dataset`, it exhausts my disk quota. So, I tried manually downloading the parquet files from the hub and loading them as follows: ```python ds = DatasetDict( ...
CLOSED
2025-04-07T16:52:34
2025-04-15T15:22:12
2025-04-15T15:22:11
https://github.com/huggingface/datasets/issues/7502
{ "login": "pietrolesci" }
{ "nodes": [] }
[ "Hi ! Parquet is a compressed format. When you load a dataset, it uncompresses the Parquet data into Arrow data on your disk. That's why you can indeed end up with 720GB of uncompressed data on disk. The uncompression is needed to enable performant dataset objects (especially for random access).\n\nTo save some sto...
I_kwDODunzps6xbSh2
7,501
Nested Feature raises ArrowNotImplementedError: Unsupported cast using function cast_struct
### Describe the bug `datasets.Features` seems to be unable to handle json file that contains fields of `list[dict]`. ### Steps to reproduce the bug ```json // test.json {"a": 1, "b": [{"c": 2, "d": 3}, {"c": 4, "d": 5}]} {"a": 5, "b": [{"c": 7, "d": 8}, {"c": 9, "d": 10}]} ``` ```python import json from datasets i...
CLOSED
2025-04-07T12:35:39
2025-04-07T12:43:04
2025-04-07T12:43:03
https://github.com/huggingface/datasets/issues/7501
{ "login": "yaner-here" }
{ "nodes": [] }
[ "Solved by the default `load_dataset(features)` parameters. Do not use `Sequence` for the `list` in `list[any]` json schema, just simply use `[]`. For example, `\"b\": Sequence({...})` fails but `\"b\": [{...}]` works fine." ]
I_kwDODunzps6xUHxB
7,500
Make `with_format` correctly indicate that a `Dataset` is compatible with PyTorch's `Dataset` class
### Feature request Currently `datasets` does not correctly indicate to the Python type-checker (e.g. `pyright` / `Pylance`) that the output of `with_format` is compatible with PyTorch's `Dataloader` since it does not indicate that the HuggingFace `Dataset` is compatible with the PyTorch `Dataset` class. It would be g...
OPEN
2025-04-06T09:56:09
2026-08-09T23:15:15
null
https://github.com/huggingface/datasets/issues/7500
{ "login": "benglewis" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Does the torch `DataLoader` really require the dataset to be a subclass of `torch.utils.data.Dataset` ? Or is there a simpler type we could use ?\n\nPS: also note that a dataset without `with_format()` can also be used in a torch `DataLoader` . Calling `with_format(\"torch\")` simply makes the output of the datase...
I_kwDODunzps6w-qzh
7,498
Extreme memory bandwidth.
### Describe the bug When I use hf datasets on 4 GPU with 40 workers I get some extreme memory bandwidth of constant ~3GB/s. However, if I wrap the dataset in `IterableDataset`, this issue is gone and the data also loads way faster (4x faster training on 1 worker). It seems like the workers don't share memory and b...
OPEN
2025-04-03T11:09:08
2025-04-03T11:11:22
null
https://github.com/huggingface/datasets/issues/7498
{ "login": "J0SZ" }
{ "nodes": [] }
[]
I_kwDODunzps6w8Ijd
7,497
How to convert videos to images?
### Feature request Does someone know how to return the images from videos? ### Motivation I am trying to use openpi(https://github.com/Physical-Intelligence/openpi) to finetune my Lerobot dataset(V2.0 and V2.1). I find that although the codedaset is v2.0, they are different. It seems like Lerobot V2.0 has two versi...
OPEN
2025-04-03T07:08:39
2025-04-15T12:35:15
null
https://github.com/huggingface/datasets/issues/7497
{ "login": "Loki-Lu" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! there is some documentation here on how to read video frames: https://huggingface.co/docs/datasets/video_load" ]
I_kwDODunzps6w3hly
7,496
Json builder: Allow features to override problematic Arrow types
### Feature request In the JSON builder, use explicitly requested feature types before or while converting to Arrow. ### Motivation Working with JSON datasets is really hard because of Arrow. At the very least, it seems like it should be possible to work-around these problems by explicitly setting problematic colum...
OPEN
2025-04-02T19:27:16
2025-04-15T13:06:09
null
https://github.com/huggingface/datasets/issues/7496
{ "login": "edmcman" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! It would be cool indeed, currently the JSON data are generally loaded here: \n\nhttps://github.com/huggingface/datasets/blob/90e5bf8a8599b625d6103ee5ac83b98269991141/src/datasets/packaged_modules/json/json.py#L137-L140\n\nMaybe we can pass a Arrow `schema` to avoid errors ?" ]
I_kwDODunzps6w2VjM
7,495
Columns in the dataset obtained though load_dataset do not correspond to the one in the dataset viewer since 3.4.0
### Describe the bug I have noticed that on my dataset named [BrunoHays/Accueil_UBS](https://huggingface.co/datasets/BrunoHays/Accueil_UBS), since the version 3.4.0, every column except audio is missing when I load the dataset. Interestingly, the dataset viewer still shows the correct columns ### Steps to reproduce ...
CLOSED
2025-04-02T17:01:11
2025-07-02T23:24:57
2025-07-02T23:24:57
https://github.com/huggingface/datasets/issues/7495
{ "login": "bruno-hays" }
{ "nodes": [] }
[ "Hi, the dataset viewer shows all the possible columns and their types, but `load_dataset()` iterates through all the columns that you defined. It seems that you only have one column (‘audio’) defined in your dataset because when I ran `print(ds.column_names)`, the only name I got was “audio”. You need to clearly d...
I_kwDODunzps6wv51l
7,494
Broken links in pdf loading documentation
### Describe the bug Hi, just a couple of small issues I ran into while reading the docs for [loading pdf data](https://huggingface.co/docs/datasets/main/en/document_load): 1. The link for the [`Create a pdf dataset`](https://huggingface.co/docs/datasets/main/en/document_load#pdffolder) points to https://huggingface....
CLOSED
2025-04-02T06:45:22
2025-04-15T13:36:25
2025-04-15T13:36:04
https://github.com/huggingface/datasets/issues/7494
{ "login": "VyoJ" }
{ "nodes": [] }
[ "thanks for reporting ! I fixed the links, the docs will be updated in the next release" ]
I_kwDODunzps6wq29b
7,493
push_to_hub does not upload videos
### Describe the bug Hello, I would like to upload a video dataset (some .mp4 files and some segments within them), i.e. rows correspond to subsequences from videos. Videos might be referenced by several rows. I created a dataset locally and it references the videos and the video readers can read them correctly. I u...
CLOSED
2025-04-01T17:00:20
2026-01-29T18:59:38
2026-01-29T18:56:05
https://github.com/huggingface/datasets/issues/7493
{ "login": "DominikVincent" }
{ "nodes": [] }
[ "Hi ! the `Video` type is still experimental, and in particular `push_to_hub` doesn't upload videos at the moment (only the paths).\n\nThere is an open question to either upload the videos inside the Parquet files, or rather have them as separate files (which is great to enable remote seeking/streaming)", "im hav...
I_kwDODunzps6wExtD
7,486
`shared_datadir` fixture is missing
### Describe the bug Running the tests for the latest release fails due to missing `shared_datadir` fixture. ### Steps to reproduce the bug Running `pytest` while building a package for Arch Linux leads to these errors: ``` ==================================== ERRORS ==================================== _________ E...
CLOSED
2025-03-27T18:17:12
2025-03-27T19:49:11
2025-03-27T19:49:10
https://github.com/huggingface/datasets/issues/7486
{ "login": "lahwaacz" }
{ "nodes": [] }
[ "OK I was missing the `pytest-datadir` package. Sorry for the noise!" ]
I_kwDODunzps6v4ABr
7,481
deal with python `10_000` legal number in slice syntax
### Feature request ``` In [6]: ds = datasets.load_dataset("HuggingFaceH4/ultrachat_200k", split="train_sft[:1000]") In [7]: ds = datasets.load_dataset("HuggingFaceH4/ultrachat_200k", split="train_sft[:1_000]") [dozens of frames skipped] File /usr/local/lib/python3.10/dist-packages/datasets/arrow_reader.py:444, in _s...
CLOSED
2025-03-26T20:10:54
2025-03-28T16:20:44
2025-03-28T16:20:44
https://github.com/huggingface/datasets/issues/7481
{ "login": "sfc-gh-sbekman" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "should be an easy fix, I opened a PR" ]
I_kwDODunzps6v2jzO
7,480
HF_DATASETS_CACHE ignored?
### Describe the bug I'm struggling to get things to respect HF_DATASETS_CACHE. Rationale: I'm on a system that uses NFS for homedir, so downloading to NFS is expensive, slow, and wastes valuable quota compared to local disk. Instead, it seems to rely mostly on HF_HUB_CACHE. Current version: 3.2.1dev. In the process...
OPEN
2025-03-26T17:19:34
2026-05-10T12:02:42
null
https://github.com/huggingface/datasets/issues/7480
{ "login": "stephenroller" }
{ "nodes": [] }
[ "FWIW, it does eventually write to /tmp/roller/datasets when generating the final version.", "Hey, I’d love to work on this issue but I am a beginner, can I work it with you?", "Hi @lhoestq,\nI'd like to look into this issue but I'm still learning. Could you share any quick pointers on the HF_DATASETS_CACHE beh...
I_kwDODunzps6v2QUE
7,479
Features.from_arrow_schema is destructive
### Describe the bug I came across this, perhaps niche, bug where `Features` does not/cannot account for pyarrow's `nullable=False` option in Fields. Interestingly, I found that in regular "flat" fields this does not necessarily lead to conflicts, but when a non-nullable field is in a struct, an incompatibility arises...
OPEN
2025-03-26T16:46:43
2025-03-26T16:46:58
null
https://github.com/huggingface/datasets/issues/7479
{ "login": "BramVanroy" }
{ "nodes": [] }
[]
I_kwDODunzps6vqjy0
7,477
What is the canonical way to compress a Dataset?
Given that Arrow is the preferred backend for a Dataset, what is a user supposed to do if they want concurrent reads, concurrent writes AND on-disk compression for a larger dataset? Parquet would be the obvious answer except that there is no native support for writing sharded, parquet datasets concurrently [[1](https:...
OPEN
2025-03-25T16:47:51
2025-04-03T09:13:11
null
https://github.com/huggingface/datasets/issues/7477
{ "login": "eric-czech" }
{ "nodes": [] }
[ "I saw this post by @lhoestq: https://discuss.huggingface.co/t/increased-arrow-table-size-by-factor-of-2/26561/4 suggesting that there is at least some internal code for writing sharded parquet datasets non-concurrently. This appears to be that code: https://github.com/huggingface/datasets/blob/94ccd1b4fada8a92cea...
I_kwDODunzps6voiq6
7,475
IterableDataset's state_dict shard_example_idx is always equal to the number of samples in a shard
### Describe the bug I've noticed a strange behaviour with Iterable state_dict: the value of shard_example_idx is always equal to the amount of samples in a shard. ### Steps to reproduce the bug I am reusing the example from the doc ```python from datasets import Dataset ds = Dataset.from_dict({"a": range(6)}).to_...
CLOSED
2025-03-25T13:58:07
2025-12-12T16:15:37
2025-05-06T14:05:07
https://github.com/huggingface/datasets/issues/7475
{ "login": "bruno-hays" }
{ "nodes": [] }
[ "Hey, I’d love to work on this issue but I am a beginner, can I work it with you?", "Hello. I'm sorry but I don't have much time to get in the details for now.\nHave you managed to reproduce the issue with the code provided ?\nIf you want to work on it, you can self-assign and ask @lhoestq for directions", "Hi ...
I_kwDODunzps6vLhwT
7,473
Webdataset data format problem
### Describe the bug Please see https://huggingface.co/datasets/ejschwartz/idioms/discussions/1 Error code: FileFormatMismatchBetweenSplitsError All three splits, train, test, and validation, use webdataset. But only the train split has more than one file. How can I force the other two splits to also be interpreted ...
CLOSED
2025-03-21T17:23:52
2025-03-21T19:19:58
2025-03-21T19:19:58
https://github.com/huggingface/datasets/issues/7473
{ "login": "edmcman" }
{ "nodes": [] }
[ "I was able to work around it" ]