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_kwDODunzps6vGFRo
7,472
Label casting during `map` process is canceled after the `map` process
### Describe the bug When preprocessing a multi-label dataset, I introduced a step to convert int labels to float labels as [BCEWithLogitsLoss](https://pytorch.org/docs/stable/generated/torch.nn.BCEWithLogitsLoss.html) expects float labels and forward function of models in transformers package internally use `BCEWithL...
CLOSED
2025-03-21T07:56:22
2025-04-10T05:11:15
2025-04-10T05:11:14
https://github.com/huggingface/datasets/issues/7472
{ "login": "yoshitomo-matsubara" }
{ "nodes": [] }
[ "Hi ! By default `map()` tries to keep the types of each column of the dataset, so here it reuses the int type since all your float values can be converted to integers. But I agree it would be nice to store float values as float values and don't try to reuse the same type in this case.\n\nIn the meantime, you can e...
I_kwDODunzps6vFybV
7,471
Adding argument to `_get_data_files_patterns`
### Feature request How about adding if the user already know about the pattern? https://github.com/huggingface/datasets/blob/a256b85cbc67aa3f0e75d32d6586afc507cf535b/src/datasets/data_files.py#L252 ### Motivation While using this load_dataset people might use 10M of images for the local files. However, due to sear...
CLOSED
2025-03-21T07:17:53
2025-03-27T12:30:52
2025-03-26T07:26:27
https://github.com/huggingface/datasets/issues/7471
{ "login": "SangbumChoi" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! The pattern can be specified in advance in YAML in the README.md of the dataset :)\n\nFor example\n\n```\n---\nconfigs:\n- config_name: default\n data_files:\n - split: train\n path: \"train/*\"\n - split: test\n path: \"test/*\"\n---\n```\n\nSee the docs at https://huggingface.co/docs/hub/en/dataset...
I_kwDODunzps6vEqtj
7,470
Is it possible to shard a single-sharded IterableDataset?
I thought https://github.com/huggingface/datasets/pull/7252 might be applicable but looking at it maybe not. Say we have a process, eg. a database query, that can return data in slightly different order each time. So, the initial query needs to be run by a single thread (not to mention running multiple times incurs mo...
CLOSED
2025-03-21T04:33:37
2025-11-22T07:55:43
2025-03-26T06:49:28
https://github.com/huggingface/datasets/issues/7470
{ "login": "jonathanasdf" }
{ "nodes": [] }
[ "Hi ! Maybe you can look for an option in your dataset to partition your data based on a deterministic filter ? For example each worker could stream the data based on `row.id % num_shards` or something like that ?", "So the recommendation is to start out with multiple shards initially and re-sharding after is not...
I_kwDODunzps6vCQ2A
7,469
Custom split name with the web interface
### Describe the bug According the doc here: https://huggingface.co/docs/hub/datasets-file-names-and-splits#custom-split-name it should infer the split name from the subdir of data or the beg of the name of the files in data. When doing this manually through web upload it does not work. it uses "train" as a unique spl...
CLOSED
2025-03-20T20:45:59
2025-03-21T07:20:37
2025-03-21T07:20:37
https://github.com/huggingface/datasets/issues/7469
{ "login": "vince62s" }
{ "nodes": [] }
[]
I_kwDODunzps6u4rkX
7,468
function `load_dataset` can't solve folder path with regex characters like "[]"
### Describe the bug When using the `load_dataset` function with a folder path containing regex special characters (such as "[]"), the issue occurs due to how the path is handled in the `resolve_pattern` function. This function passes the unprocessed path directly to `AbstractFileSystem.glob`, which supports regular e...
OPEN
2025-03-20T05:21:59
2025-03-25T10:18:12
null
https://github.com/huggingface/datasets/issues/7468
{ "login": "Hpeox" }
{ "nodes": [] }
[ "Hi ! Have you tried escaping the glob special characters `[` and `]` ?\n\nbtw note that`AbstractFileSystem.glob` doesn't support regex, instead it supports glob patterns as in the python library [glob](https://docs.python.org/3/library/glob.html)\n" ]
I_kwDODunzps6upUaj
7,467
load_dataset with streaming hangs on parquet datasets
### Describe the bug When I try to load a dataset with parquet files (e.g. "bigcode/the-stack") the dataset loads, but python interpreter can't exit and hangs ### Steps to reproduce the bug ```python3 import datasets print('Start') dataset = datasets.load_dataset("bigcode/the-stack", data_dir="data/yaml", streaming...
CLOSED
2025-03-18T23:33:54
2026-05-06T16:07:14
2026-05-06T16:06:09
https://github.com/huggingface/datasets/issues/7467
{ "login": "The0nix" }
{ "nodes": [] }
[ "Hi ! The issue comes from `pyarrow`, I reported it here: https://github.com/apache/arrow/issues/45214 (feel free to comment / thumb up).\n\nAlternatively we can try to find something else than `ParquetFileFragment.to_batches()` to iterate on Parquet data and keep the option the pass `filters=`...", "I pushed a w...
I_kwDODunzps6uYTy7
7,461
List of images behave differently on IterableDataset and Dataset
### Describe the bug This code: ```python def train_iterable_gen(): images = np.array(load_image("https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg").resize((128, 128))) yield { "images": np.expand_dims(images, axis=0), "messages": [ ...
CLOSED
2025-03-17T15:59:23
2025-03-18T08:57:17
2025-03-18T08:57:16
https://github.com/huggingface/datasets/issues/7461
{ "login": "FredrikNoren" }
{ "nodes": [] }
[ "Hi ! Can you try with `datasets` ^3.4 released recently ? on my side it works with IterableDataset on the recent version :)\n\n```python\nIn [20]: def train_iterable_gen():\n ...: images = np.array(load_image(\"https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg\")...
I_kwDODunzps6uXh2I
7,458
Loading the `laion/filtered-wit` dataset in streaming mode fails on v3.4.0
### Describe the bug Loading https://huggingface.co/datasets/laion/filtered-wit in streaming mode fails after update to `datasets==3.4.0`. The dataset loads fine on v3.3.2. ### Steps to reproduce the bug Steps to reproduce: ``` pip install datastes==3.4.0 python -c "from datasets import load_dataset; load_dataset('l...
CLOSED
2025-03-17T14:54:02
2025-03-17T16:02:04
2025-03-17T15:25:55
https://github.com/huggingface/datasets/issues/7458
{ "login": "nikita-savelyevv" }
{ "nodes": [] }
[ "thanks for reporting, I released 3.4.1 with a fix" ]
I_kwDODunzps6uVjnD
7,457
Document the HF_DATASETS_CACHE env variable
### Feature request Hello, I have a use case where my team is sharing models and dataset in shared directory to avoid duplication. I noticed that the [cache documentation for datasets](https://huggingface.co/docs/datasets/main/en/cache) only mention the `HF_HOME` environment variable but never the `HF_DATASETS_CACHE`...
CLOSED
2025-03-17T12:24:50
2025-05-06T15:54:39
2025-05-06T15:54:39
https://github.com/huggingface/datasets/issues/7457
{ "login": "LSerranoPEReN" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Strongly agree to this, in addition, I am also suffering to change the cache location similar to other issues (since I changed the environmental variables).\nhttps://github.com/huggingface/datasets/issues/6886", "`HF_DATASETS_CACHE` should be documented there indeed, feel free to open a PR :) ", "Hey, I’d love...
I_kwDODunzps6uNIA2
7,456
.add_faiss_index and .add_elasticsearch_index returns ImportError at Google Colab
### Describe the bug At Google Colab ```!pip install faiss-cpu``` works ```import faiss``` no error but ```embeddings_dataset.add_faiss_index(column='embeddings')``` returns ``` [/usr/local/lib/python3.11/dist-packages/datasets/search.py](https://localhost:8080/#) in init(self, device, string_factory, metric_type, cus...
OPEN
2025-03-16T00:51:49
2025-03-17T15:57:19
null
https://github.com/huggingface/datasets/issues/7456
{ "login": "MapleBloom" }
{ "nodes": [] }
[ "I can fix this.\nIt's mainly because faiss-gpu requires python<=3.10 but the default python version in colab is 3.11. We just have to downgrade the CPython version down to 3.10 and it should work fine.\n", "I think I just had no chance to meet with faiss-cpu.\nIt could be import problem? \n_has_faiss gets its va...
I_kwDODunzps6uKSnC
7,455
Problems with local dataset after upgrade from 3.3.2 to 3.4.0
### Describe the bug I was not able to open a local saved dataset anymore that was created using an older datasets version after the upgrade yesterday from datasets 3.3.2 to 3.4.0 The traceback is ``` Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/datasets/packaged_modules/arrow/...
OPEN
2025-03-15T09:22:50
2025-03-17T16:20:43
null
https://github.com/huggingface/datasets/issues/7455
{ "login": "andjoer" }
{ "nodes": [] }
[ "Hi ! I just released 3.4.1 with a fix, let me know if it's working now !" ]
I_kwDODunzps6t0jdU
7,449
Cannot load data with different schemas from different parquet files
### Describe the bug Cannot load samples with optional fields from different files. The schema cannot be correctly derived. ### Steps to reproduce the bug When I place two samples with an optional field `some_extra_field` within a single parquet file, it can be loaded via `load_dataset`. ```python import pandas as ...
CLOSED
2025-03-13T08:14:49
2025-03-17T07:27:48
2025-03-17T07:27:46
https://github.com/huggingface/datasets/issues/7449
{ "login": "li-plus" }
{ "nodes": [] }
[ "Hi ! `load_dataset` expects all the data_files to have the same schema.\n\nMaybe you can try enforcing certain `features` using:\n\n```python\nfeatures = Features({\"conversations\": {'content': Value('string'), 'role': Value('string',)}})\nds = load_dataset(..., features=features)\n```", "Thanks! It works if I ...
I_kwDODunzps6tzwWi
7,448
`datasets.disable_caching` doesn't work
When I use `Dataset.from_generator(my_gen)` to load my dataset, it simply skips my changes to the generator function. I tried `datasets.disable_caching`, but it doesn't work!
OPEN
2025-03-13T06:40:12
2026-05-10T12:02:44
null
https://github.com/huggingface/datasets/issues/7448
{ "login": "UCC-team" }
{ "nodes": [] }
[ "cc", "Yes I have the same issue. It's a confusingly named function. See [here](https://github.com/huggingface/datasets/blob/main/src/datasets/fingerprint.py#L115-L130)\n\n```\n...\nIf disabled, the library will no longer reload cached datasets files when applying transforms to the datasets.\n More precisely...
I_kwDODunzps6twu3g
7,447
Epochs shortened after resuming mid-epoch with Iterable dataset+StatefulDataloader(persistent_workers=True)
### Describe the bug When `torchdata.stateful_dataloader.StatefulDataloader(persistent_workers=True)` the epochs after resuming only iterate through the examples that were left in the epoch when the training was interrupted. For example, in the script below training is interrupted on step 124 (epoch 1) when 3 batches ...
CLOSED
2025-03-12T21:41:05
2025-07-09T23:04:57
2025-03-14T10:50:10
https://github.com/huggingface/datasets/issues/7447
{ "login": "dhruvdcoder" }
{ "nodes": [] }
[ "Thanks for reporting ! Maybe we should store the epoch in the state_dict, and then when the dataset is iterated on again after setting a new epoch it should restart from scratch instead of resuming ? wdyt ?", "But why does this only happen when `persistent_workers=True`? I would expect it to work correctly even ...
I_kwDODunzps6toZ-4
7,446
pyarrow.lib.ArrowTypeError: Expected dict key of type str or bytes, got 'int'
### Describe the bug A dict with its keys are all str but get following error ```python test_data=[{'input_ids':[1,2,3],'labels':[[Counter({2:1})]]}] dataset = datasets.Dataset.from_list(test_data) ``` ```bash pyarrow.lib.ArrowTypeError: Expected dict key of type str or bytes, got 'int' ``` ### Steps to reproduce the...
CLOSED
2025-03-12T07:48:37
2025-07-04T05:14:45
2025-07-04T05:14:45
https://github.com/huggingface/datasets/issues/7446
{ "login": "rangehow" }
{ "nodes": [] }
[ "I think the Counter object you used in 'labels' may be the issue, since the {2:1} inside is the dict and 2 is the int", "> I think the Counter object you used in 'labels' may be the issue, since the {2:1} inside is the dict and 2 is the int我认为您在 'labels' 中使用的 Counter 对象可能是问题所在,因为里面的 {2:1} 是 dict,而 2 是 int\n\nYes...
I_kwDODunzps6thWyN
7,444
Excessive warnings when resuming an IterableDataset+buffered shuffle+DDP.
### Describe the bug I have a large dataset that I shared into 1024 shards and save on the disk during pre-processing. During training, I load the dataset using load_from_disk() and convert it into an iterable dataset, shuffle it and split the shards to different DDP nodes using the recommended method. However, when ...
OPEN
2025-03-11T16:34:39
2025-11-22T06:45:25
null
https://github.com/huggingface/datasets/issues/7444
{ "login": "dhruvdcoder" }
{ "nodes": [] }
[ "I had a similar issue when loading the saved iterable dataset state to fast-forward to the mid-train location before resuming. This happened when I shuffled a concatenated dataset. A `iterable_data_state_dict.json` file was saved during checkpointing in the Trainer with:\n```\ndef _save_rng_state(self, output_dir)...
I_kwDODunzps6tXX64
7,443
index error when num_shards > len(dataset)
In `ds.push_to_hub()` and `ds.save_to_disk()`, `num_shards` must be smaller than or equal to the number of rows in the dataset, but currently this is not checked anywhere inside these functions. Attempting to invoke these functions with `num_shards > len(dataset)` should raise an informative `ValueError`. I frequently...
OPEN
2025-03-10T22:40:59
2025-03-10T23:43:08
null
https://github.com/huggingface/datasets/issues/7443
{ "login": "eminorhan" }
{ "nodes": [] }
[ "Actually, looking at the code a bit more carefully, maybe an even better solution is to explicitly set `num_shards=len(self)` somewhere inside both `push_to_hub()` and `save_to_disk()` when these functions are invoked with `num_shards > len(dataset)`." ]
I_kwDODunzps6tLxFp
7,442
Flexible Loader
### Feature request Can we have a utility function that will use `load_from_disk` when given the local path and `load_dataset` if given an HF dataset? It can be something as simple as this one: ``` def load_hf_dataset(path_or_name): if os.path.exists(path_or_name): return load_from_disk(path_or_name) ...
CLOSED
2025-03-09T16:55:03
2026-02-21T19:58:58
2026-02-21T19:58:58
https://github.com/huggingface/datasets/issues/7442
{ "login": "dipta007" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Ideally `save_to_disk` should save in a format compatible with load_dataset, wdyt ?", "> Ideally `save_to_disk` should save in a format compatible with load_dataset, wdyt ?\n\nThat would be perfect if not at least a flexible loader.", "@lhoestq For now, you can use this small utility library: [nanoml](https://...
I_kwDODunzps6tIj15
7,441
`drop_last_batch` does not drop the last batch using IterableDataset + interleave_datasets + multi_worker
### Describe the bug See the script below `drop_last_batch=True` is defined using map() for each dataset. The last batch for each dataset is expected to be dropped, id 21-25. The code behaves as expected when num_workers=0 or 1. When using num_workers>1, 'a-11', 'b-11', 'a-12', 'b-12' are gone and instead 21 and 22 a...
OPEN
2025-03-08T10:28:44
2025-10-09T10:14:24
null
https://github.com/huggingface/datasets/issues/7441
{ "login": "memray" }
{ "nodes": [] }
[ "Hi @memray, I’d like to help fix the issue with `drop_last_batch` not working when `num_workers > 1`. I’ll investigate and propose a solution. Thanks!\n", "Thank you very much for offering to help! I also noticed a problem related to a previous issue and left a comment [here](https://github.com/huggingface/datas...
I_kwDODunzps6tE5D2
7,440
IterableDataset raises FileNotFoundError instead of retrying
### Describe the bug In https://github.com/huggingface/datasets/issues/6843 it was noted that the streaming feature of `datasets` is highly susceptible to outages and doesn't back off for long (or even *at all*). I was training a model while streaming SlimPajama and training crashed with a `FileNotFoundError`. I can ...
OPEN
2025-03-07T19:14:18
2026-04-24T11:15:36
null
https://github.com/huggingface/datasets/issues/7440
{ "login": "bauwenst" }
{ "nodes": [] }
[ "I have since been training more models with identical architectures over the same dataset, and it is completely unstable. One has now failed at chunk9/1215, whilst others have gotten past that.\n```python\nFileNotFoundError: zstd://example_train_1215.jsonl::hf://datasets/cerebras/SlimPajama-627B@2d0accdd58c5d55119...
I_kwDODunzps6sRZGQ
7,433
`Dataset.map` ignores existing caches and remaps when ran with different `num_proc`
### Describe the bug If you `map` a dataset and save it to a specific `cache_file_name` with a specific `num_proc`, and then call map again with that same existing `cache_file_name` but a different `num_proc`, the dataset will be re-mapped. ### Steps to reproduce the bug 1. Download a dataset ```python import datase...
CLOSED
2025-03-03T05:51:26
2025-05-12T15:14:09
2025-05-12T15:14:09
https://github.com/huggingface/datasets/issues/7433
{ "login": "ringohoffman" }
{ "nodes": [] }
[ "This feels related: https://github.com/huggingface/datasets/issues/3044", "@lhoestq This comment specifically, I agree:\n\n* https://github.com/huggingface/datasets/issues/3044#issuecomment-1239877570\n\n> Almost a year later and I'm in a similar boat. Using custom fingerprints and when using multiprocessing the...
I_kwDODunzps6sF9kq
7,431
Issues with large Datasets
### Describe the bug If the coco annotation file is too large the dataset will not be able to load it, not entirely sure were the issue is but I am guessing it is due to the code trying to load it all as one line into a dataframe. This was for object detections. My current work around is the following code but would ...
OPEN
2025-02-28T14:05:22
2025-03-04T15:02:26
null
https://github.com/huggingface/datasets/issues/7431
{ "login": "nikitabelooussovbtis" }
{ "nodes": [] }
[ "what's the error message ?", "This was the final error message that it was giving pyarrow.lib.ArrowInvalid: JSON parse error: Column() changed from object to string in row 0", "Here is the list of errors:\n\nTraceback (most recent call last):\n File \".venv/lib/python3.12/site-packages/datasets/packaged_modul...
I_kwDODunzps6sEvFN
7,430
Error in code "Time to slice and dice" from course "NLP Course"
### Describe the bug When we execute code ``` frequencies = ( train_df["condition"] .value_counts() .to_frame() .reset_index() .rename(columns={"index": "condition", "condition": "frequency"}) ) frequencies.head() ``` answer should be like this condition | frequency birth control | 27655 dep...
CLOSED
2025-02-28T11:36:10
2025-03-05T11:32:47
2025-03-03T17:52:15
https://github.com/huggingface/datasets/issues/7430
{ "login": "Yurkmez" }
{ "nodes": [] }
[ "You should open an issue in the NLP course website / github page. I'm closing this issue if you don't mind", "ok, i don't mind, i'll mark the error there" ]
I_kwDODunzps6sBVy7
7,427
Error splitting the input into NAL units.
### Describe the bug I am trying to finetune qwen2.5-vl on 16 * 80G GPUS, and I use `LLaMA-Factory` and set `preprocessing_num_workers=16`. However, I met the following error and the program seem to got crush. It seems that the error come from `datasets` library The error logging is like following: ```text Convertin...
OPEN
2025-02-28T02:30:15
2025-03-04T01:40:28
null
https://github.com/huggingface/datasets/issues/7427
{ "login": "MengHao666" }
{ "nodes": [] }
[ "First time I see this error :/ maybe it's an issue with your version of `multiprocess` and `dill` ? Make sure they are compatible with `datasets`", "> First time I see this error :/ maybe it's an issue with your version of `multiprocess` and `dill` ? Make sure they are compatible with `datasets`\n\nany recommend...
I_kwDODunzps6r4YlO
7,425
load_dataset("livecodebench/code_generation_lite", version_tag="release_v2") TypeError: 'NoneType' object is not callable
### Describe the bug from datasets import load_dataset lcb_codegen = load_dataset("livecodebench/code_generation_lite", version_tag="release_v2") or configs = get_dataset_config_names("livecodebench/code_generation_lite", trust_remote_code=True) both error: Traceback (most recent call last): File "", line 1, in File...
OPEN
2025-02-27T07:36:02
2025-03-27T05:05:33
null
https://github.com/huggingface/datasets/issues/7425
{ "login": "dshwei" }
{ "nodes": [] }
[ "> datasets\n\nHi, have you solved this bug? Today I also met the same problem about `livecodebench/code_generation_lite` when evaluating the `Open-R1` repo. I am looking forward to your reply!\n\n![Image](https://github.com/user-attachments/assets/02e92fbf-da33-41b3-b8d4-f79b293a54f1)", "Hey guys,\nI tried to re...
I_kwDODunzps6rnjHx
7,423
Row indexing a dataset with numpy integers
### Feature request Allow indexing datasets with a scalar numpy integer type. ### Motivation Indexing a dataset with a scalar numpy.int* object raises a TypeError. This is due to the test in `datasets/formatting/formatting.py:key_to_query_type` ``` python def key_to_query_type(key: Union[int, slice, range, str, Ite...
CLOSED
2025-02-25T18:44:45
2025-07-28T02:23:17
2025-07-28T02:23:17
https://github.com/huggingface/datasets/issues/7423
{ "login": "DavidRConnell" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Would be cool to be consistent when it comes to indexing with numpy objects, if we do accept numpy arrays we should indeed accept numpy integers. Your idea sounds reasonable, I'd also be in favor of adding a simple test as well" ]
I_kwDODunzps6rkG0c
7,421
DVC integration broken
### Describe the bug The DVC integration seems to be broken. Followed this guide: https://dvc.org/doc/user-guide/integrations/huggingface ### Steps to reproduce the bug #### Script to reproduce ~~~python from datasets import load_dataset dataset = load_dataset( "csv", data_files="dvc://workshop/satellite-d...
OPEN
2025-02-25T13:14:31
2025-03-03T17:42:02
null
https://github.com/huggingface/datasets/issues/7421
{ "login": "maxstrobel" }
{ "nodes": [] }
[ "Unfortunately `url` is a reserved argument in `fsspec.url_to_fs`, so ideally file system implementations like DVC should use another argument name to avoid this kind of errors" ]
I_kwDODunzps6rcJRI
7,420
better correspondence between cached and saved datasets created using from_generator
### Feature request At the moment `.from_generator` can only create a dataset that lives in the cache. The cached dataset cannot be loaded with `load_from_disk` because the cache folder is missing `state.json`. So the only way to convert this cached dataset to a regular is to use `save_to_disk` which needs to create a...
OPEN
2025-02-24T22:14:37
2026-01-05T15:16:35
null
https://github.com/huggingface/datasets/issues/7420
{ "login": "vttrifonov" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Until this lands, in case anyone needs this, I made this helper (based on HF sources) that merely serializes the metadata from a dataset, thus allowing to bypass the completely redundant additional save.\n\n```python\nimport json\nimport posixpath\nimport os\nfrom typing import Optional\nfrom fsspec.core import ur...
I_kwDODunzps6rZrZ4
7,419
Import order crashes script execution
### Describe the bug Hello, I'm trying to convert an HF dataset into a TFRecord so I'm importing `tensorflow` and `datasets` to do so. Depending in what order I'm importing those librairies, my code hangs forever and is unkillable (CTRL+C doesn't work, I need to kill my shell entirely). Thank you for your help 🙏 ...
OPEN
2025-02-24T17:03:43
2025-02-24T17:03:43
null
https://github.com/huggingface/datasets/issues/7419
{ "login": "DamienMatias" }
{ "nodes": [] }
[]
I_kwDODunzps6q_Okf
7,418
pyarrow.lib.arrowinvalid: cannot mix list and non-list, non-null values with map function
### Describe the bug Encounter pyarrow.lib.arrowinvalid error with map function in some example when loading the dataset ### Steps to reproduce the bug ``` from datasets import load_dataset from PIL import Image, PngImagePlugin dataset = load_dataset("leonardPKU/GEOQA_R1V_Train_8K") system_prompt="You are a helpful...
CLOSED
2025-02-21T10:58:06
2026-03-09T15:58:00
2026-03-09T15:58:00
https://github.com/huggingface/datasets/issues/7418
{ "login": "alexxchen" }
{ "nodes": [] }
[ "@lhoestq ", "Can you try passing text: None for the image object ? Pyarrow expects all the objects to have the exact same type, in particular the dicttionaries in \"content\" should all have the keys \"type\" and \"text\"", "The following modification on system prompt works, but it is different from the usual ...
I_kwDODunzps6q0D_S
7,415
Shard Dataset at specific indices
I have a dataset of sequences, where each example in the sequence is a separate row in the dataset (similar to LeRobotDataset). When running `Dataset.save_to_disk` how can I provide indices where it's possible to shard the dataset such that no episode spans more than 1 shard. Consequently, when I run `Dataset.load_from...
OPEN
2025-02-20T10:43:10
2025-02-24T11:06:45
null
https://github.com/huggingface/datasets/issues/7415
{ "login": "nikonikolov" }
{ "nodes": [] }
[ "Hi ! if it's an option I'd suggest to have one sequence per row instead.\n\nOtherwise you'd have to make your own save/load mechanism", "Saving one sequence per row is very difficult and heavy and makes all the optimizations pointless. How would a custom save/load mechanism look like?", "You can use `pyarrow` ...
I_kwDODunzps6qhph-
7,413
Documentation on multiple media files of the same type with WebDataset
The [current documentation](https://huggingface.co/docs/datasets/en/video_dataset) on a creating a video dataset includes only examples with one media file and one json. It would be useful to have examples where multiple files of the same type are included. For example, in a sign language dataset, you may have a base v...
OPEN
2025-02-18T16:13:20
2025-02-20T14:17:54
null
https://github.com/huggingface/datasets/issues/7413
{ "login": "DCNemesis" }
{ "nodes": [] }
[ "Yes this is correct and it works with huggingface datasets as well ! Feel free to include an example here: https://github.com/huggingface/datasets/blob/main/docs/source/video_dataset.mdx" ]
I_kwDODunzps6qb37u
7,412
Index Error Invalid Ket is out of bounds for size 0 for code-search-net/code_search_net dataset
### Describe the bug I am trying to do model pruning on sentence-transformers/all-mini-L6-v2 for the code-search-net/code_search_net dataset using INCTrainer class However I am getting below error ``` raise IndexError(f"Invalid Key: {key is our of bounds for size {size}") IndexError: Invalid key: 1840208 is out of b...
OPEN
2025-02-18T05:58:33
2025-02-18T06:42:07
null
https://github.com/huggingface/datasets/issues/7412
{ "login": "harshakhmk" }
{ "nodes": [] }
[]
I_kwDODunzps6qQdV2
7,406
Adding Core Maintainer List to CONTRIBUTING.md
### Feature request I propose adding a core maintainer list to the `CONTRIBUTING.md` file. ### Motivation The Transformers and Liger-Kernel projects maintain lists of core maintainers for each module. However, the Datasets project doesn't have such a list. ### Your contribution I have nothing to add here.
CLOSED
2025-02-17T00:32:40
2025-03-24T10:57:54
2025-03-24T10:57:54
https://github.com/huggingface/datasets/issues/7406
{ "login": "jp1924" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "@lhoestq", "there is no per-module maintainer and the list is me alone nowadays ^^'", "@lhoestq \nOh... I feel for you. \nWhat are your criteria for choosing a core maintainer? \nIt seems like it's too much work for you to manage all this code by yourself.\n\nAlso, if you don't mind, can you check this PR for ...
I_kwDODunzps6qQMpO
7,405
Lazy loading of environment variables
### Describe the bug Loading a `.env` file after an `import datasets` call does not correctly use the environment variables. This is due the fact that environment variables are read at import time: https://github.com/huggingface/datasets/blob/de062f0552a810c52077543c1169c38c1f0c53fc/src/datasets/config.py#L155C1-L15...
OPEN
2025-02-16T22:31:41
2025-02-17T15:17:18
null
https://github.com/huggingface/datasets/issues/7405
{ "login": "nikvaessen" }
{ "nodes": [] }
[ "Many python packages out there, including `huggingface_hub`, do load the environment variables on import.\nYou should `load_dotenv()` before importing the libraries.\n\nFor example you can move all you imports inside your `main()` function" ]
I_kwDODunzps6qQLB_
7,404
Performance regression in `dataset.filter`
### Describe the bug We're filtering dataset of ~1M (small-ish) records. At some point in the code we do `dataset.filter`, before (including 3.2.0) it was taking couple of seconds, and now it takes 4 hours. We use 16 threads/workers, and stack trace at them look as follows: ``` Traceback (most recent call last): Fi...
CLOSED
2025-02-16T22:19:14
2025-02-17T17:46:06
2025-02-17T14:28:48
https://github.com/huggingface/datasets/issues/7404
{ "login": "ttim" }
{ "nodes": [] }
[ "Thanks for reporting, I'll fix the regression today", "I just released `datasets` 3.3.1 with a fix, let me know if it's good now :)", "@lhoestq it fixed the issue.\n\nThis was (very) fast, thank you very much!" ]
I_kwDODunzps6qDtPK
7,399
Synchronize parameters for various datasets
### Describe the bug [IterableDatasetDict](https://huggingface.co/docs/datasets/v3.2.0/en/package_reference/main_classes#datasets.IterableDatasetDict.map) map function is missing the `desc` parameter. You can see the equivalent map function for [Dataset here](https://huggingface.co/docs/datasets/v3.2.0/en/package_refe...
OPEN
2025-02-14T09:15:11
2025-02-19T11:50:29
null
https://github.com/huggingface/datasets/issues/7399
{ "login": "grofte" }
{ "nodes": [] }
[ "Hi ! the `desc` parameter is only available for Dataset / DatasetDict for the progress bar of `map()``\n\nSince IterableDataset only runs the map functions when you iterate over the dataset, there is no progress bar and `desc` is useless. We could still add the argument for parity but it wouldn't be used for anyth...
I_kwDODunzps6qEGV9
7,400
504 Gateway Timeout when uploading large dataset to Hugging Face Hub
### Description I encountered consistent 504 Gateway Timeout errors while attempting to upload a large dataset (approximately 500GB) to the Hugging Face Hub. The upload fails during the process with a Gateway Timeout error. I will continue trying to upload. While it might succeed in future attempts, I wanted to report...
OPEN
2025-02-14T02:18:35
2025-02-14T23:48:36
null
https://github.com/huggingface/datasets/issues/7400
{ "login": "hotchpotch" }
{ "nodes": [] }
[ "I transferred to the `datasets` repository. Is there any retry mechanism in `datasets` @lhoestq ?\n\nAnother solution @hotchpotch if you want to get your dataset pushed to the Hub in a robust way is to save it to a local folder first and then use `huggingface-cli upload-large-folder` (see https://huggingface.co/do...
I_kwDODunzps6ptGYT
7,394
Using load_dataset with data_files and split arguments yields an error
### Describe the bug It seems the list of valid splits recorded by the package becomes incorrectly overwritten when using the `data_files` argument. If I run ```python from datasets import load_dataset load_dataset("allenai/super", split="all_examples", data_files="tasks/expert.jsonl") ``` then I get the error ``` Va...
OPEN
2025-02-12T04:50:11
2025-11-21T14:05:23
null
https://github.com/huggingface/datasets/issues/7394
{ "login": "devon-research" }
{ "nodes": [] }
[ "Hi, \nI want to work on this issue involving adding a verification test for the **`HuggingFaceM4/InterleavedWebDocuments`** dataset. \nThis will be my first contribution to `datasets`, \nI plan to add a simple loading and basic structure verification test like other recent dataset tests. \nYou can expect a PR ...
I_kwDODunzps6po_bD
7,392
push_to_hub payload too large error when using large ClassLabel feature
### Describe the bug When using `datasets.DatasetDict.push_to_hub` an `HfHubHTTPError: 413 Client Error: Payload Too Large for url` is raised if the dataset contains a large `ClassLabel` feature. Even if the total size of the dataset is small. ### Steps to reproduce the bug ``` python import random import sys impor...
OPEN
2025-02-11T17:51:34
2025-02-11T18:01:31
null
https://github.com/huggingface/datasets/issues/7392
{ "login": "DavidRConnell" }
{ "nodes": [] }
[ "See also <https://discuss.huggingface.co/t/datasetdict-push-to-hub-failing-with-payload-to-large/140083/8>\n" ]
I_kwDODunzps6plhL8
7,391
AttributeError: module 'pyarrow.lib' has no attribute 'ListViewType'
pyarrow 尝试了若干个版本都不可以
OPEN
2025-02-11T12:02:26
2025-02-11T12:02:26
null
https://github.com/huggingface/datasets/issues/7391
{ "login": "LinXin04" }
{ "nodes": [] }
[]
I_kwDODunzps6pgSX1
7,390
Re-add py.typed
### Feature request The motivation for removing py.typed no longer seems to apply. Would a solution like [this one](https://github.com/huggingface/huggingface_hub/pull/2752) work here? ### Motivation MyPy support is broken. As more type checkers come out, such as RedKnot, these may also be broken. It would be goo...
OPEN
2025-02-10T22:12:52
2025-08-10T00:51:17
null
https://github.com/huggingface/datasets/issues/7390
{ "login": "NeilGirdhar" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "A similar issue was fixed for the `transformers` package, too: https://github.com/huggingface/transformers/pull/37022" ]
I_kwDODunzps6pfcee
7,389
Getting statistics about filtered examples
@lhoestq wondering if the team has thought about this and if there are any recommendations? Currently when processing datasets some examples are bound to get filtered out, whether it's due to bad format, or length is too long, or any other custom filters that might be getting applied. Let's just focus on the filter by...
CLOSED
2025-02-10T20:48:29
2025-02-11T20:44:15
2025-02-11T20:44:13
https://github.com/huggingface/datasets/issues/7389
{ "login": "jonathanasdf" }
{ "nodes": [] }
[ "You can actually track a running sum in map() or filter() :)\n\n```python\nnum_filtered = 0\n\ndef f(x):\n global num_filtered\n condition = len(x[\"text\"]) < 1000\n if not condition:\n num_filtered += 1\n return condition\n\nds = ds.filter(f)\nprint(num_filtered)\n```\n\nand if you want to use...
I_kwDODunzps6pd50T
7,388
OSError: [Errno 22] Invalid argument forbidden character
### Describe the bug I'm on Windows and i'm trying to load a datasets but i'm having title error because files in the repository are named with charactere like < >which can't be in a name file. Could it be possible to load this datasets but removing those charactere ? ### Steps to reproduce the bug load_dataset("CAT...
CLOSED
2025-02-10T17:46:31
2025-02-11T13:42:32
2025-02-11T13:42:30
https://github.com/huggingface/datasets/issues/7388
{ "login": "langflogit" }
{ "nodes": [] }
[ "You can probably copy the dataset in your HF account and rename the files (without having to download them to your disk). Or alternatively feel free to open a Pull Request to this dataset with the renamed file", "Thank you, that will help me work around this problem" ]
I_kwDODunzps6pWbMQ
7,387
Dynamic adjusting dataloader sampling weight
Hi, Thanks for your wonderful work! I'm wondering is there a way to dynamically adjust the sampling weight of each data in the dataset during training? Looking forward to your reply, thanks again.
OPEN
2025-02-10T03:18:47
2025-03-07T14:06:54
null
https://github.com/huggingface/datasets/issues/7387
{ "login": "whc688" }
{ "nodes": [] }
[ "You mean based on a condition that has to be checked on-the-fly during training ? Otherwise if you know in advance after how many samples you need to change the sampling you can simply concatenate the two mixes", "Yes, like during training, if one data sample's prediction is consistently wrong, its sampling weig...
I_kwDODunzps6pR3UM
7,386
Add bookfolder Dataset Builder for Digital Book Formats
### Feature request This feature proposes adding a new dataset builder called bookfolder to the datasets library. This builder would allow users to easily load datasets consisting of various digital book formats, including: AZW, AZW3, CB7, CBR, CBT, CBZ, EPUB, MOBI, and PDF. ### Motivation Currently, loading dataset...
CLOSED
2025-02-08T14:27:55
2025-02-08T14:30:10
2025-02-08T14:30:09
https://github.com/huggingface/datasets/issues/7386
{ "login": "shikanime" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "On second thought, probably not a good idea." ]
I_kwDODunzps6n02VE
7,381
Iterating over values of a column in the IterableDataset
### Feature request I would like to be able to iterate (and re-iterate if needed) over a column of an `IterableDataset` instance. The following example shows the supposed API: ```python def gen(): yield {"text": "Good", "label": 0} yield {"text": "Bad", "label": 1} ds = IterableDataset.from_generator(gen) tex...
CLOSED
2025-01-28T13:17:36
2025-05-22T18:00:04
2025-05-22T18:00:04
https://github.com/huggingface/datasets/issues/7381
{ "login": "TopCoder2K" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "I'd be in favor of that ! I saw many people implementing their own iterables that wrap a dataset just to iterate on a single column, that would make things more practical.\n\nKinda related: https://github.com/huggingface/datasets/issues/5847", "(For anyone's information, I'm going on vacation for the next 3 week...
I_kwDODunzps6nEbxM
7,378
Allow pushing config version to hub
### Feature request Currently, when datasets are created, they can be versioned by passing the `version` argument to `load_dataset(...)`. For example creating `outcomes.csv` on the command line ``` echo "id,value\n1,0\n2,0\n3,1\n4,1\n" > outcomes.csv ``` and creating it ``` import datasets dataset = datasets.load_dat...
OPEN
2025-01-21T22:35:07
2025-01-30T13:56:56
null
https://github.com/huggingface/datasets/issues/7378
{ "login": "momeara" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! This sounds reasonable to me, feel free to open a PR :)" ]
I_kwDODunzps6nDinV
7,377
Support for sparse arrays with the Arrow Sparse Tensor format?
### Feature request AI in biology is becoming a big thing. One thing that would be a huge benefit to the field that Huggingface Datasets doesn't currently have is native support for **sparse arrays**. Arrow has support for sparse tensors. https://arrow.apache.org/docs/format/Other.html#sparse-tensor It would be ...
OPEN
2025-01-21T20:14:35
2026-02-03T23:05:02
null
https://github.com/huggingface/datasets/issues/7377
{ "login": "JulesGM" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! Unfortunately the Sparse Tensor structure in Arrow is not part of the Arrow format (yes it's confusing...), so it's not possible to use it in `datasets`. It's a separate structure that doesn't correspond to any type or extension type in Arrow.\n\nThe Arrow community recently added an extension type for fixed ...
I_kwDODunzps6m7efC
7,375
vllm批量推理报错
### Describe the bug ![Image](https://github.com/user-attachments/assets/3d958e43-28dc-4467-9333-5990c7af3b3f) ### Steps to reproduce the bug ![Image](https://github.com/user-attachments/assets/3067eeca-a54d-4956-b0fd-3fc5ea93dabb) ### Expected behavior ![Image](https://github.com/user-attachments/assets/77d32936-...
OPEN
2025-01-21T03:22:23
2025-01-30T14:02:40
null
https://github.com/huggingface/datasets/issues/7375
{ "login": "YuShengzuishuai" }
{ "nodes": [] }
[ "Make sure you have installed a recent version of `soundfile`" ]
I_kwDODunzps6mfWqT
7,373
Excessive RAM Usage After Dataset Concatenation concatenate_datasets
### Describe the bug When loading a dataset from disk, concatenating it, and starting the training process, the RAM usage progressively increases until the kernel terminates the process due to excessive memory consumption. https://github.com/huggingface/datasets/issues/2276 ### Steps to reproduce the bug ```python ...
OPEN
2025-01-16T16:33:10
2025-03-27T17:40:59
null
https://github.com/huggingface/datasets/issues/7373
{ "login": "sam-hey" }
{ "nodes": [] }
[ "![Image](https://github.com/user-attachments/assets/b6f8bcbd-44af-413e-bc06-65380eb0f746)\n\n![Image](https://github.com/user-attachments/assets/a241fcd8-4b62-495c-926c-685f82015dfb)\n\nAdding a img from memray\nhttps://gist.github.com/sam-hey/00c958f13fb0f7b54d17197fe353002f", "I'm having the same issue where c...
I_kwDODunzps6mZuRI
7,372
Inconsistent Behavior Between `load_dataset` and `load_from_disk` When Loading Sharded Datasets
### Description I encountered an inconsistency in behavior between `load_dataset` and `load_from_disk` when loading sharded datasets. Here is a minimal example to reproduce the issue: #### Code 1: Using `load_dataset` ```python from datasets import Dataset, load_dataset # First save with max_shard_size=10 Dataset.fr...
OPEN
2025-01-16T05:47:20
2025-01-16T05:47:20
null
https://github.com/huggingface/datasets/issues/7372
{ "login": "gaohongkui" }
{ "nodes": [] }
[]
I_kwDODunzps6mVGmB
7,371
500 Server error with pushing a dataset
### Describe the bug Suddenly, I started getting this error message saying it was an internal error. `Error creating/pushing dataset: 500 Server Error: Internal Server Error for url: https://huggingface.co/api/datasets/ll4ma-lab/grasp-dataset/commit/main (Request ID: Root=1-6787f0b7-66d5bd45413e481c4c2fb22d;670d04ff-...
OPEN
2025-01-15T18:23:02
2025-01-15T20:06:05
null
https://github.com/huggingface/datasets/issues/7371
{ "login": "martinmatak" }
{ "nodes": [] }
[ "EDIT: seems to be all good now. I'll add a comment if the error happens again within the next 48 hours. If it doesn't, I'll just close the topic." ]
I_kwDODunzps6mITGW
7,369
Importing dataset gives unhelpful error message when filenames in metadata.csv are not found in the directory
### Describe the bug While importing an audiofolder dataset, where the names of the audiofiles don't correspond to the filenames in the metadata.csv, we get an unclear error message that is not helpful for the debugging, i.e. ``` ValueError: Instruction "train" corresponds to no data! ``` ### Steps to reproduce the ...
OPEN
2025-01-14T13:53:21
2025-01-14T15:05:51
null
https://github.com/huggingface/datasets/issues/7369
{ "login": "svencornetsdegroot" }
{ "nodes": [] }
[ "I'd prefer even more verbose errors; like `\"file123.mp3\" is referenced in metadata.csv, but not found in the data directory '/path/to/audiofolder' ! (and 100+ more missing files)` Or something along those lines." ]
I_kwDODunzps6lyqvO
7,366
Dataset.from_dict() can't handle large dict
### Describe the bug I have 26,000,000 3-tuples. When I use Dataset.from_dict() to load, neither. py nor Jupiter notebook can run successfully. This is my code: ``` # len(example_data) is 26,000,000, 'diff' is a text diff1_list = [example_data[i].texts[0] for i in range(len(example_data))] diff2_list =...
OPEN
2025-01-11T02:05:21
2025-01-11T02:05:21
null
https://github.com/huggingface/datasets/issues/7366
{ "login": "CSU-OSS" }
{ "nodes": [] }
[]
I_kwDODunzps6ltruH
7,365
A parameter is specified but not used in datasets.arrow_dataset.Dataset.from_pandas()
### Describe the bug I am interested in creating train, test and eval splits from a pandas Dataframe, therefore I was looking at the possibilities I can follow. I noticed the split parameter and was hopeful to use it in order to generate the 3 at once, however, while trying to understand the code, i noticed that it ha...
OPEN
2025-01-10T13:39:33
2025-01-10T13:39:33
null
https://github.com/huggingface/datasets/issues/7365
{ "login": "NourOM02" }
{ "nodes": [] }
[]
I_kwDODunzps6lhJP0
7,364
API endpoints for gated dataset access requests
### Feature request I would like a programatic way of requesting access to gated datasets. The current solution to gain access forces me to visit a website and physically click an "agreement" button (as per the [documentation](https://huggingface.co/docs/hub/en/datasets-gated#access-gated-datasets-as-a-user)). An i...
CLOSED
2025-01-09T06:21:20
2025-01-09T11:17:40
2025-01-09T11:17:20
https://github.com/huggingface/datasets/issues/7364
{ "login": "jerome-white" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Looks like a [similar feature request](https://github.com/huggingface/huggingface_hub/issues/1198) was made to the HF Hub team. Is handling this at the Hub level more appropriate?\r\n\r\n(As an aside, I've gotten the [HTTP-based solution](https://github.com/huggingface/huggingface_hub/issues/1198#issuecomment-1905...
I_kwDODunzps6lWUEc
7,363
ImportError: To support decoding images, please install 'Pillow'.
### Describe the bug Following this tutorial locally using a macboko and VSCode: https://huggingface.co/docs/diffusers/en/tutorials/basic_training This line of code: for i, image in enumerate(dataset[:4]["image"]): throws: ImportError: To support decoding images, please install 'Pillow'. Pillow is installed. ###...
OPEN
2025-01-08T02:22:57
2025-05-28T14:56:53
null
https://github.com/huggingface/datasets/issues/7363
{ "login": "jamessdixon" }
{ "nodes": [] }
[ "what's your `pip show Pillow` output", "same issue.. my pip show Pillow output as below:\n\n```\nName: pillow\nVersion: 11.1.0\nSummary: Python Imaging Library (Fork)\nHome-page: https://python-pillow.github.io/\nAuthor: \nAuthor-email: \"Jeffrey A. Clark\" <aclark@aclark.net>\nLicense: MIT-CMU\nLocation: [/opt/...
I_kwDODunzps6lU8n1
7,362
HuggingFace CLI dataset download raises error
### Describe the bug Trying to download Hugging Face datasets using Hugging Face CLI raises error. This error only started after December 27th, 2024. For example: ``` huggingface-cli download --repo-type dataset gboleda/wikicorpus Traceback (most recent call last): File "/home/ubuntu/test_venv/bin/huggingface...
CLOSED
2025-01-07T21:03:30
2025-01-08T15:00:37
2025-01-08T14:35:52
https://github.com/huggingface/datasets/issues/7362
{ "login": "ajayvohra2005" }
{ "nodes": [] }
[ "I got the same error and was able to resolve it by upgrading from 2.15.0 to 3.2.0.", "> I got the same error and was able to resolve it by upgrading from 2.15.0 to 3.2.0.\r\n\r\nWhat is needed is upgrading `huggingface-hub==0.27.1`. `datasets` does not appear to have anything to do with the error. The upgrade is...
I_kwDODunzps6lNZHu
7,360
error when loading dataset in Hugging Face: NoneType error is not callable
### Describe the bug I met an error when running a notebook provide by Hugging Face, and met the error. ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[2], line 5 3 # Load the enhancers dat...
OPEN
2025-01-07T02:11:36
2025-02-24T13:32:52
null
https://github.com/huggingface/datasets/issues/7360
{ "login": "nanu23333" }
{ "nodes": [] }
[ "Hi ! I couldn't reproduce on my side, can you try deleting your cache at `~/.cache/huggingface/modules/datasets_modules/datasets/InstaDeepAI--nucleotide_transformer_downstream_tasks_revised` and try again ? For some reason `datasets` wasn't able to find the DatasetBuilder class in the python script of this dataset...
I_kwDODunzps6lLDUy
7,359
There are multiple 'mteb/arguana' configurations in the cache: default, corpus, queries with HF_HUB_OFFLINE=1
### Describe the bug Hey folks, I am trying to run this code - ```python from datasets import load_dataset, get_dataset_config_names ds = load_dataset("mteb/arguana") ``` with HF_HUB_OFFLINE=1 But I get the following error - ```python Using the latest cached version of the dataset since mteb/arguana...
OPEN
2025-01-06T17:42:49
2025-01-06T17:43:31
null
https://github.com/huggingface/datasets/issues/7359
{ "login": "Bhavya6187" }
{ "nodes": [] }
[ "Related to https://github.com/embeddings-benchmark/mteb/issues/1714" ]
I_kwDODunzps6lIc4_
7,357
Python process aborded with GIL issue when using image dataset
### Describe the bug The issue is visible only with the latest `datasets==3.2.0`. When using image dataset the Python process gets aborted right before the exit with the following error: ``` Fatal Python error: PyGILState_Release: thread state 0x7fa1f409ade0 must be current when releasing Python runtime state: f...
OPEN
2025-01-06T11:29:30
2026-04-04T07:09:22
null
https://github.com/huggingface/datasets/issues/7357
{ "login": "AlexKoff88" }
{ "nodes": [] }
[ "The issue seems to come from `pyarrow`, I opened an issue on their side at https://github.com/apache/arrow/issues/45214", "I \"solved\" this by setting a low batch_size for load_datasets()", "datasets==3.1.0 works\ndatasets==4.1.1 fails", "If you want to use latest version over 3.1.0, a temporary fix is to m...
I_kwDODunzps6lHEv_
7,356
How about adding a feature to pass the key when performing map on DatasetDict?
### Feature request Add a feature to pass the key of the DatasetDict when performing map ### Motivation I often preprocess using map on DatasetDict. Sometimes, I need to preprocess train and valid data differently depending on the task. So, I thought it would be nice to pass the key (like train, valid) when perf...
CLOSED
2025-01-06T08:13:52
2025-03-24T10:57:47
2025-03-24T10:57:47
https://github.com/huggingface/datasets/issues/7356
{ "login": "jp1924" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "@lhoestq \r\nIf it's okay with you, can I work on this?", "Hi ! Can you give an example of what it would look like to use this new feature ?\r\n\r\nNote that currently you can already do\r\n\r\n```python\r\nds[\"train\"] = ds[\"train\"].map(process_train)\r\nds[\"test\"] = ds[\"test\"].map(process_test)\r\n```",...
I_kwDODunzps6lCvMD
7,355
Not available datasets[audio] on python 3.13
### Describe the bug This is the error I got, it seems numba package does not support python 3.13 PS C:\Users\sergi\Documents> pip install datasets[audio] Defaulting to user installation because normal site-packages is not writeable Collecting datasets[audio] Using cached datasets-3.2.0-py3-none-any.whl.metada...
OPEN
2025-01-04T18:37:08
2025-06-28T00:26:19
null
https://github.com/huggingface/datasets/issues/7355
{ "login": "sergiosinlimites" }
{ "nodes": [] }
[ "It looks like an issue with `numba` which can't be installed on 3.13 ? `numba` is a dependency of `librosa`, used to decode audio files", "There seems that `uv` cannot resolve \n\n```bhas\nuv add -n datasets[audio] huggingface-hub[hf-transfer] transformers\n```\n\nThe problem is again `librosa` which depends on ...
I_kwDODunzps6lCuoN
7,354
A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.2 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
### Describe the bug Following this tutorial: https://huggingface.co/docs/diffusers/en/tutorials/basic_training and running it locally using VSCode on my MacBook. The first line in the tutorial fails: from datasets import load_dataset dataset = load_dataset('huggan/smithsonian_butterflies_subset', split="train"). w...
CLOSED
2025-01-04T18:30:17
2025-01-08T02:20:58
2025-01-08T02:20:58
https://github.com/huggingface/datasets/issues/7354
{ "login": "jamessdixon" }
{ "nodes": [] }
[ "recreated .venv and run this: pip install diffusers[training]==0.11.1" ]
I_kwDODunzps6khpDj
7,347
Converting Arrow to WebDataset TAR Format for Offline Use
### Feature request Hi, I've downloaded an Arrow-formatted dataset offline using the hugggingface's datasets library by: ``` import json from datasets import load_dataset dataset = load_dataset("pixparse/cc3m-wds") dataset.save_to_disk("./cc3m_1") ``` now I need to convert it to WebDataset's TAR form...
CLOSED
2024-12-27T01:40:44
2024-12-31T17:38:00
2024-12-28T15:38:03
https://github.com/huggingface/datasets/issues/7347
{ "login": "katie312" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi,\r\n\r\nI've downloaded an Arrow-formatted dataset offline using the hugggingface's datasets library by:\r\n\r\nimport json\r\nfrom datasets import load_dataset\r\n\r\ndataset = load_dataset(\"pixparse/cc3m-wds\")\r\ndataset.save_to_disk(\"./cc3m_1\")\r\n\r\n\r\nnow I need to convert it to WebDataset's TAR form...
I_kwDODunzps6kbzd2
7,346
OSError: Invalid flatbuffers message.
### Describe the bug When loading a large 2D data (1000 × 1152) with a large number of (2,000 data in this case) in `load_dataset`, the error message `OSError: Invalid flatbuffers message` is reported. When only 300 pieces of data of this size (1000 × 1152) are stored, they can be loaded correctly. When 2,00...
CLOSED
2024-12-25T11:38:52
2025-01-09T14:25:29
2025-01-09T14:25:05
https://github.com/huggingface/datasets/issues/7346
{ "login": "antecede" }
{ "nodes": [] }
[ "Thanks for reporting, it looks like an issue with `pyarrow.ipc.open_stream`\r\n\r\nCan you try installing `datasets` from this pull request and see if it helps ? https://github.com/huggingface/datasets/pull/7348", "> Thanks for reporting, it looks like an issue with `pyarrow.ipc.open_stream`\r\n> \r\n> Can you t...
I_kwDODunzps6kbK1t
7,345
Different behaviour of IterableDataset.map vs Dataset.map with remove_columns
### Describe the bug The following code ```python import datasets as hf ds1 = hf.Dataset.from_list([{'i': i} for i in [0,1]]) #ds1 = ds1.to_iterable_dataset() ds2 = ds1.map( lambda i: {'i': i+1}, input_columns = ['i'], remove_columns = ['i'] ) list(ds2) ``` produces ```python [{'i': ...
CLOSED
2024-12-25T07:36:48
2025-01-07T11:56:42
2025-01-07T11:56:42
https://github.com/huggingface/datasets/issues/7345
{ "login": "vttrifonov" }
{ "nodes": [] }
[ "Good catch ! Do you think you can open a PR to fix this issue ?" ]
I_kwDODunzps6kMe9P
7,344
HfHubHTTPError: 429 Client Error: Too Many Requests for URL when trying to access SlimPajama-627B or c4 on TPUs
### Describe the bug I am trying to run some trainings on Google's TPUs using Huggingface's DataLoader on [SlimPajama-627B](https://huggingface.co/datasets/cerebras/SlimPajama-627B) and [c4](https://huggingface.co/datasets/allenai/c4), but I end up running into `429 Client Error: Too Many Requests for URL` error when ...
CLOSED
2024-12-22T16:30:07
2025-01-15T05:32:00
2025-01-15T05:31:58
https://github.com/huggingface/datasets/issues/7344
{ "login": "clankur" }
{ "nodes": [] }
[ "Hi ! This is due to your old version of `datasets` which calls HF with `expand=True`, an option that is strongly rate limited.\r\n\r\nRecent versions of `datasets` don't rely on this anymore, you can fix your issue by upgrading `datasets` :)\r\n\r\n```\r\npip install -U datasets\r\n```\r\n\r\nYou can also get maxi...
I_kwDODunzps6j8bF_
7,343
[Bug] Inconsistent behavior of data_files and data_dir in load_dataset method.
### Describe the bug Inconsistent operation of data_files and data_dir in load_dataset method. ### Steps to reproduce the bug # First I have three files, named 'train.json', 'val.json', 'test.json'. Each one has a simple dict `{text:'aaa'}`. Their path are `/data/train.json`, `/data/val.json`, `/data/test.jso...
CLOSED
2024-12-19T14:31:27
2025-01-03T15:54:09
2025-01-03T15:54:09
https://github.com/huggingface/datasets/issues/7343
{ "login": "JasonCZH4" }
{ "nodes": [] }
[ "Hi ! `data_files` with a list is equivalent to `data_files={\"train\": data_files}` with a train test only.\r\n\r\nWhen no split are specified, they are inferred based on file names, and files with no apparent split are ignored", "Thanks for your reply!\r\n`files with no apparent split are ignored`. Is there a o...
I_kwDODunzps6jm4IB
7,337
One or several metadata.jsonl were found, but not in the same directory or in a parent directory of
### Describe the bug ImageFolder with metadata.jsonl error. I downloaded liuhaotian/LLaVA-CC3M-Pretrain-595K locally from Hugging Face. According to the tutorial in https://huggingface.co/docs/datasets/image_dataset#image-captioning, only put images.zip and metadata.jsonl containing information in the same folder. How...
OPEN
2024-12-17T12:58:43
2025-01-03T15:28:13
null
https://github.com/huggingface/datasets/issues/7337
{ "login": "mst272" }
{ "nodes": [] }
[ "Hmmm I double checked in the source code and I found a contradiction: in the current implementation the metadata file is ignored if it's not in the same archive as the zip image somehow:\r\n\r\nhttps://github.com/huggingface/datasets/blob/caa705e8bf4bedf1a956f48b545283b2ca14170a/src/datasets/packaged_modules/folde...
I_kwDODunzps6jmYHY
7,336
Clarify documentation or Create DatasetCard
### Feature request I noticed that you can use a Model Card instead of a Dataset Card when pushing a dataset to the Hub, but this isn’t clearly mentioned in [the docs.](https://huggingface.co/docs/datasets/dataset_card) - Update the docs to clarify that a Model Card can work for datasets too. - It might be worth c...
OPEN
2024-12-17T12:01:00
2024-12-17T12:01:00
null
https://github.com/huggingface/datasets/issues/7336
{ "login": "August-murr" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps6jhYfM
7,335
Too many open files: '/root/.cache/huggingface/token'
### Describe the bug I ran this code: ``` from datasets import load_dataset dataset = load_dataset("common-canvas/commoncatalog-cc-by", cache_dir="/datadrive/datasets/cc", num_proc=1000) ``` And got this error. Before it was some other file though (lie something...incomplete) runnting ``` ulimit -n 8192 ...
OPEN
2024-12-16T21:30:24
2024-12-16T21:30:24
null
https://github.com/huggingface/datasets/issues/7335
{ "login": "kopyl" }
{ "nodes": [] }
[]
I_kwDODunzps6jVSYH
7,334
TypeError: Value.__init__() missing 1 required positional argument: 'dtype'
### Describe the bug ds = load_dataset( "./xxx.py", name="default", split="train", ) The datasets does not support debugging locally anymore... ### Steps to reproduce the bug ``` from datasets import load_dataset ds = load_dataset( "./repo.py", name="default", split="train", ) ...
OPEN
2024-12-15T04:08:46
2025-10-30T09:05:53
null
https://github.com/huggingface/datasets/issues/7334
null
{ "nodes": [] }
[ "same error \n```\ndata = load_dataset('/opt/deepseek_R1_finetune/hf_datasets/openai/gsm8k', 'main')[split] \n```", "> same error\n> \n> ```\n> data = load_dataset('/opt/deepseek_R1_finetune/hf_datasets/openai/gsm8k', 'main')[split] \n> ```\n\nhttps://github.com/huggingface/open-r1/issues/204 this help me", "S...
I_kwDODunzps6jOmvd
7,327
.map() is not caching and ram goes OOM
### Describe the bug Im trying to run a fairly simple map that is converting a dataset into numpy arrays. however, it just piles up on memory and doesnt write to disk. Ive tried multiple cache techniques such as specifying the cache dir, setting max mem, +++ but none seem to work. What am I missing here? ### Steps to...
OPEN
2024-12-13T14:22:56
2025-02-10T10:42:38
null
https://github.com/huggingface/datasets/issues/7327
{ "login": "simeneide" }
{ "nodes": [] }
[ "I have the same issue - any update on this?" ]
I_kwDODunzps6jNXJm
7,326
Remove upper bound for fsspec
### Describe the bug As also raised by @cyyever in https://github.com/huggingface/datasets/pull/7296 and @NeilGirdhar in https://github.com/huggingface/datasets/commit/d5468836fe94e8be1ae093397dd43d4a2503b926#commitcomment-140952162 , `datasets` has a problematic version constraint on `fsspec`. In our case this c...
OPEN
2024-12-13T11:35:12
2025-01-03T15:34:37
null
https://github.com/huggingface/datasets/issues/7326
{ "login": "fellhorn" }
{ "nodes": [] }
[ "Unfortunately `fsspec` versioning allows breaking changes across version and there is no way we can keep it without constrains at the moment. It already broke `datasets` once in the past. Maybe one day once `fsspec` decides on a stable and future proof API but I don't think this will happen anytime soon\r\n\r\nedi...
I_kwDODunzps6jFC36
7,323
Unexpected cache behaviour using load_dataset
### Describe the bug Following the (Cache management)[https://huggingface.co/docs/datasets/en/cache] docu and previous behaviour from datasets version 2.18.0, one is able to change the cache directory. Previously, all downloaded/extracted/etc files were found in this folder. As i have recently update to the latest v...
CLOSED
2024-12-12T14:03:00
2025-01-31T11:34:24
2025-01-31T11:34:24
https://github.com/huggingface/datasets/issues/7323
{ "login": "Moritz-Wirth" }
{ "nodes": [] }
[ "Hi ! Since `datasets` 3.x, the `datasets` specific files are in `cache_dir=` and the HF files are cached using `huggingface_hub` and you can set its cache directory using the `HF_HOME` environment variable.\r\n\r\nThey are independent, for example you can delete the Hub cache (containing downloaded files) but sti...
I_kwDODunzps6i2uaU
7,322
ArrowInvalid: JSON parse error: Column() changed from object to array in row 0
### Describe the bug Encountering an error while loading the ```liuhaotian/LLaVA-Instruct-150K dataset```. ### Steps to reproduce the bug ``` from datasets import load_dataset fw =load_dataset("liuhaotian/LLaVA-Instruct-150K") ``` Error: ``` ArrowInvalid Traceback (most recen...
OPEN
2024-12-11T08:41:39
2025-07-15T13:06:55
null
https://github.com/huggingface/datasets/issues/7322
{ "login": "Polarisamoon" }
{ "nodes": [] }
[ "Hi ! `datasets` uses Arrow under the hood which expects each column and array to have fixed types that don't change across rows of a dataset, which is why we get this error. This dataset in particular doesn't have a format compatible with Arrow unfortunately. Don't hesitate to open a discussion or PR on HF to fix ...
I_kwDODunzps6i0VEI
7,321
ImportError: cannot import name 'set_caching_enabled' from 'datasets'
### Describe the bug Traceback (most recent call last): File "/usr/local/lib/python3.10/runpy.py", line 187, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/local/lib/python3.10/runpy.py", line 110, in _get_module_details __import__(pkg_name) File "...
OPEN
2024-12-11T01:58:46
2024-12-11T13:32:15
null
https://github.com/huggingface/datasets/issues/7321
{ "login": "sankexin" }
{ "nodes": [] }
[ "pip install datasets==2.18.0", "Hi ! I think you need to update axolotl" ]
I_kwDODunzps6iyXak
7,320
ValueError: You should supply an encoding or a list of encodings to this method that includes input_ids, but you provided ['label']
### Describe the bug I am trying to create a PEFT model from DISTILBERT model, and run a training loop. However, the trainer.train() is giving me this error: ValueError: You should supply an encoding or a list of encodings to this method that includes input_ids, but you provided ['label'] Here is my code: ### St...
CLOSED
2024-12-10T20:23:11
2024-12-10T23:22:23
2024-12-10T23:22:23
https://github.com/huggingface/datasets/issues/7320
{ "login": "atrompeterog" }
{ "nodes": [] }
[ "Now i have other error" ]
I_kwDODunzps6iwtA2
7,318
Introduce support for PDFs
### Feature request The idea (discussed in the Discord server with @lhoestq ) is to have a Pdf type like Image/Audio/Video. For example [Video](https://github.com/huggingface/datasets/blob/main/src/datasets/features/video.py) was recently added and contains how to decode a video file encoded in a dictionary like {"pat...
OPEN
2024-12-10T16:59:48
2024-12-12T18:38:13
null
https://github.com/huggingface/datasets/issues/7318
{ "login": "yabramuvdi" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "#self-assign", "Awesome ! Let me know if you have any question or if I can help :)\r\n\r\ncc @AndreaFrancis as well for viz", "Other candidates libraries for the Pdf type: PyMuPDF pypdf and pdfplumber\r\n\r\nEDIT: Pymupdf looks like a good choice when it comes to maturity + performance + versatility BUT the li...
I_kwDODunzps6ifyF6
7,313
Cannot create a dataset with relative audio path
### Describe the bug Hello! I want to create a dataset of parquet files, with audios stored as separate .mp3 files. However, it says "No such file or directory" (see the reproducing code). ### Steps to reproduce the bug Creating a dataset ``` from pathlib import Path from datasets import Dataset, load_datas...
OPEN
2024-12-09T07:34:20
2025-04-19T07:13:08
null
https://github.com/huggingface/datasets/issues/7313
{ "login": "sedol1339" }
{ "nodes": [] }
[ "Hello ! when you `cast_column` you need the paths to be absolute paths or relative paths to your working directory, not the original dataset directory.\r\n\r\nThough I'd recommend structuring your dataset as an AudioFolder which automatically links a metadata.jsonl or csv to the audio files via relative paths **wi...
I_kwDODunzps6ibD2G
7,311
How to get the original dataset name with username?
### Feature request The issue is related to ray data https://github.com/ray-project/ray/issues/49008 which it requires to check if the dataset is the original one just after `load_dataset` and parquet files are already available on hf hub. The solution used now is to get the dataset name, config and split, then `...
OPEN
2024-12-08T07:18:14
2025-01-09T10:48:02
null
https://github.com/huggingface/datasets/issues/7311
{ "login": "npuichigo" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! why not pass the dataset id to Ray and let it check the parquet files ? Or pass the parquet files lists directly ?", "I'm not sure why ray design an API like this to accept a `Dataset` object, so they need to verify the `Dataset` is the original one and use the `DatasetInfo` to query the huggingface hub. I'...
I_kwDODunzps6iaZ2L
7,310
Enable the Audio Feature to decode / read with an offset + duration
### Feature request For most large speech dataset, we do not wish to generate hundreds of millions of small audio samples. Instead, it is quite common to provide larger audio files with frame offset (soundfile start and stop arguments). We should be able to pass these arguments to Audio() (column ID corresponding in t...
OPEN
2024-12-07T22:01:44
2024-12-09T21:09:46
null
https://github.com/huggingface/datasets/issues/7310
{ "login": "TParcollet" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! What about having audio + start + duration columns and enable something like this ?\r\n\r\n```python\r\nfor example in ds:\r\n array = example[\"audio\"].read(start=example[\"start\"], frames=example[\"duration\"])\r\n```", "Hi @lhoestq, this would work with a file-based dataset but would be terrible for...
I_kwDODunzps6itILT
7,315
Allow manual configuration of Dataset Viewer for datasets not created with the `datasets` library
#### **Problem Description** Currently, the Hugging Face Dataset Viewer automatically interprets dataset fields for datasets created with the `datasets` library. However, for datasets pushed directly via `git`, the Viewer: - Defaults to generic columns like `label` with `null` values if no explicit mapping is provide...
OPEN
2024-12-07T16:37:12
2024-12-11T11:05:22
null
https://github.com/huggingface/datasets/issues/7315
{ "login": "diarray-hub" }
{ "nodes": [] }
[ "Hi @diarray-hub , thanks for opening the issue :) Let me ping @lhoestq and @severo from the dataset viewer team :hugs: ", "amazing :)", "Hi ! why not modify the manifest.json file directly ? this way users see in the viewer the dataset as is instead which makes it easier to use using e.g. the `datasets` librar...
I_kwDODunzps6iHPfo
7,306
Creating new dataset from list loses information. (Audio Information Lost - either Datatype or Values).
### Describe the bug When creating a dataset from a list of datapoints, information is lost of the individual items. Specifically, when creating a dataset from a list of datapoints (from another dataset). Either the datatype is lost or the values are lost. See examples below. -> What is the best way to create...
OPEN
2024-12-05T09:07:53
2024-12-05T09:09:38
null
https://github.com/huggingface/datasets/issues/7306
{ "login": "ai-nikolai" }
{ "nodes": [] }
[]
I_kwDODunzps6h4XTD
7,305
Build Documentation Test Fails Due to "Bad Credentials" Error
### Describe the bug The `Build documentation / build / build_main_documentation (push)` job is consistently failing during the "Syncing repository" step. The error occurs when attempting to determine the default branch name, resulting in "Bad credentials" errors. ### Steps to reproduce the bug 1. Trigger the `build...
OPEN
2024-12-03T20:22:54
2025-01-08T22:38:14
null
https://github.com/huggingface/datasets/issues/7305
{ "login": "ruidazeng" }
{ "nodes": [] }
[ "how were you able to fix this please?", "> how were you able to fix this please?\r\n\r\nI was not able to fix this." ]
I_kwDODunzps6hRiig
7,303
DataFilesNotFoundError for datasets LM1B
### Describe the bug Cannot load the dataset https://huggingface.co/datasets/billion-word-benchmark/lm1b ### Steps to reproduce the bug `dataset = datasets.load_dataset('lm1b', split=split)` ### Expected behavior `Traceback (most recent call last): File "/home/hml/projects/DeepLearning/Generative_model/Diffusio...
CLOSED
2024-11-29T17:27:45
2024-12-11T13:22:47
2024-12-11T13:22:47
https://github.com/huggingface/datasets/issues/7303
{ "login": "hml1996-fight" }
{ "nodes": [] }
[ "Hi ! Can you try with a more recent version of `datasets` ? Also you might need to pass trust_remote_code=True since it's a script based dataset" ]
I_kwDODunzps6gqDVL
7,299
Efficient Image Augmentation in Hugging Face Datasets
### Describe the bug I'm using the Hugging Face datasets library to load images in batch and would like to apply a torchvision transform to solve the inconsistent image sizes in the dataset and apply some on the fly image augmentation. I can just think about using the collate_fn, but seems quite inefficient. ...
OPEN
2024-11-26T16:50:32
2024-11-26T16:53:53
null
https://github.com/huggingface/datasets/issues/7299
{ "login": "fabiozappo" }
{ "nodes": [] }
[]
I_kwDODunzps6gli7o
7,298
loading dataset issue with load_dataset() when training controlnet
### Describe the bug i'm unable to load my dataset for [controlnet training](https://github.com/huggingface/diffusers/blob/074e12358bc17e7dbe111ea4f62f05dbae8a49d5/examples/controlnet/train_controlnet.py#L606) using load_dataset(). however, load_from_disk() seems to work? would appreciate if someone can explain why ...
OPEN
2024-11-26T10:50:18
2024-11-26T10:50:18
null
https://github.com/huggingface/datasets/issues/7298
{ "login": "sarahahtee" }
{ "nodes": [] }
[]
I_kwDODunzps6f-j7W
7,297
wrong return type for `IterableDataset.shard()`
### Describe the bug `IterableDataset.shard()` has the wrong typing for its return as `"Dataset"`. It should be `"IterableDataset"`. Makes my IDE unhappy. ### Steps to reproduce the bug look at [the source code](https://github.com/huggingface/datasets/blob/main/src/datasets/iterable_dataset.py#L2668)? ### Expected ...
CLOSED
2024-11-22T17:25:46
2024-12-03T14:27:27
2024-12-03T14:27:03
https://github.com/huggingface/datasets/issues/7297
{ "login": "ysngshn" }
{ "nodes": [] }
[ "Oops my bad ! thanks for reporting" ]
I_kwDODunzps6fQ4k4
7,295
[BUG]: Streaming from S3 triggers `unexpected keyword argument 'requote_redirect_url'`
### Describe the bug Note that this bug is only triggered when `streaming=True`. #5459 introduced always calling fsspec with `client_kwargs={"requote_redirect_url": False}`, which seems to have incompatibility issues even in the newest versions. Analysis of what's happening: 1. `datasets` passes the `client_kw...
OPEN
2024-11-19T12:23:36
2024-11-19T13:01:53
null
https://github.com/huggingface/datasets/issues/7295
{ "login": "casper-hansen" }
{ "nodes": [] }
[]
I_kwDODunzps6ezT3n
7,292
DataFilesNotFoundError for datasets `OpenMol/PubChemSFT`
### Describe the bug Cannot load the dataset https://huggingface.co/datasets/OpenMol/PubChemSFT ### Steps to reproduce the bug ``` from datasets import load_dataset dataset = load_dataset('OpenMol/PubChemSFT') ``` ### Expected behavior ``` -----------------------------------------------------------------------...
CLOSED
2024-11-16T11:54:31
2024-11-19T00:53:00
2024-11-19T00:52:59
https://github.com/huggingface/datasets/issues/7292
{ "login": "xnuohz" }
{ "nodes": [] }
[ "Hi ! If the dataset owner uses `push_to_hub()` instead of `save_to_disk()` and upload the local files it will fix the issue.\r\nRight now `datasets` sees the train/test/valid pickle files but they are not supported file formats.", "Alternatively you can load the arrow file instead:\r\n\r\n```python\r\nfrom datas...
I_kwDODunzps6erqEj
7,291
Why return_tensors='pt' doesn't work?
### Describe the bug I tried to add input_ids to dataset with map(), and I used the return_tensors='pt', but why I got the callback with the type of List? ![image](https://github.com/user-attachments/assets/ab046e20-2174-4e91-9cd6-4a296a43e83c) ### Steps to reproduce the bug ![image](https://github.com/user-attac...
OPEN
2024-11-15T15:01:23
2024-11-18T13:47:08
null
https://github.com/huggingface/datasets/issues/7291
{ "login": "bw-wang19" }
{ "nodes": [] }
[ "Hi ! `datasets` uses Arrow as storage backend which is agnostic to deep learning frameworks like torch. If you want to get torch tensors back, you need to do `dataset = dataset.with_format(\"torch\")`", "> Hi ! `datasets` uses Arrow as storage backend which is agnostic to deep learning frameworks like torch. If ...
I_kwDODunzps6eaBNQ
7,290
`Dataset.save_to_disk` hangs when using num_proc > 1
### Describe the bug Hi, I'm encountered a small issue when saving datasets that led to the saving taking up to multiple hours. Specifically, [`Dataset.save_to_disk`](https://huggingface.co/docs/datasets/main/en/package_reference/main_classes#datasets.Dataset.save_to_disk) is a lot slower when using `num_proc>1` than...
OPEN
2024-11-14T05:25:13
2025-11-24T09:43:03
null
https://github.com/huggingface/datasets/issues/7290
{ "login": "JohannesAck" }
{ "nodes": [] }
[ "I've met the same situations.\r\n\r\nHere's my logs:\r\nnum_proc = 64, I stop it early as it cost **too** much time.\r\n```\r\nSaving the dataset (1540/4775 shards): 32%|███▏ | 47752224/147853764 [15:32:54<132:28:34, 209.89 examples/s]\r\nSaving the dataset (1540/4775 shards): 32%|███▏ | 47754224/14785...
I_kwDODunzps6d1ZIz
7,289
Dataset viewer displays wrong statists
### Describe the bug In [my dataset](https://huggingface.co/datasets/speedcell4/opus-unigram2), there is a column called `lang2`, and there are 94 different classes in total, but the viewer says there are 83 values only. This issue only arises in the `train` split. The total number of values is also 94 in the `test`...
CLOSED
2024-11-11T03:29:27
2024-11-13T13:02:25
2024-11-13T13:02:25
https://github.com/huggingface/datasets/issues/7289
{ "login": "speedcell4" }
{ "nodes": [] }
[ "i think this issue is more for https://github.com/huggingface/dataset-viewer" ]
I_kwDODunzps6dxWE5
7,287
Support for identifier-based automated split construction
### Feature request As far as I understand, automated construction of splits for hub datasets is currently based on either file names or directory structure ([as described here](https://huggingface.co/docs/datasets/en/repository_structure)) It would seem to be pretty useful to also allow splits to be based on ide...
OPEN
2024-11-10T07:45:19
2024-11-19T14:37:02
null
https://github.com/huggingface/datasets/issues/7287
{ "login": "alex-hh" }
{ "nodes": [ { "name": "enhancement" } ] }
[ "Hi ! You can already configure the README.md to have multiple sets of splits, e.g.\r\n\r\n```yaml\r\nconfigs:\r\n- config_name: my_first_set_of_split\r\n data_files:\r\n - split: train\r\n path: *.csv\r\n- config_name: my_second_set_of_split\r\n data_files:\r\n - split: train\r\n path: train-*.csv\r\n -...
I_kwDODunzps6drNcH
7,286
Concurrent loading in `load_from_disk` - `num_proc` as a param
### Feature request https://github.com/huggingface/datasets/pull/6464 mentions a `num_proc` param while loading dataset from disk, but can't find that in the documentation and code anywhere ### Motivation Make loading large datasets from disk faster ### Your contribution Happy to contribute if given pointers
CLOSED
2024-11-08T23:21:40
2024-11-09T16:14:37
2024-11-09T16:14:37
https://github.com/huggingface/datasets/issues/7286
{ "login": "unography" }
{ "nodes": [ { "name": "enhancement" } ] }
[]
I_kwDODunzps6det9j
7,282
Faulty datasets.exceptions.ExpectedMoreSplitsError
### Describe the bug Trying to download only the 'validation' split of my dataset; instead hit the error `datasets.exceptions.ExpectedMoreSplitsError`. Appears to be the same undesired behavior as reported in [#6939](https://github.com/huggingface/datasets/issues/6939), but with `data_files`, not `data_dir`. Her...
OPEN
2024-11-07T20:15:01
2024-11-07T20:15:42
null
https://github.com/huggingface/datasets/issues/7282
{ "login": "meg-huggingface" }
{ "nodes": [] }
[]
I_kwDODunzps6dYHzj
7,281
File not found error
### Describe the bug I get a FileNotFoundError: <img width="944" alt="image" src="https://github.com/user-attachments/assets/1336bc08-06f6-4682-a3c0-071ff65efa87"> ### Steps to reproduce the bug See screenshot. ### Expected behavior I want to load one audiofile from the dataset. ### Environmen...
OPEN
2024-11-07T09:04:49
2024-11-07T09:22:43
null
https://github.com/huggingface/datasets/issues/7281
{ "login": "MichielBontenbal" }
{ "nodes": [] }
[ "Link to the dataset: https://huggingface.co/datasets/MichielBontenbal/UrbanSounds " ]