id
int64
600M
4.6B
node_id
stringlengths
18
24
number
int64
2
8.24k
title
stringlengths
1
290
state
stringclasses
2 values
state_reason
stringclasses
5 values
created_at
timestamp[s]date
2020-04-14 18:18:51
2026-06-05 18:08:17
updated_at
timestamp[s]date
2020-04-29 09:23:05
2026-06-05 21:18:34
closed_at
stringlengths
0
20
html_url
stringlengths
48
51
user
stringlengths
3
26
labels
listlengths
0
4
assignees
listlengths
0
4
milestone
stringclasses
7 values
comments
listlengths
0
70
author_association
stringclasses
4 values
body
stringlengths
0
228k
1,893,337,083
I_kwDODunzps5w2gf7
6,235
Support multiprocessing for download/extract nestedly
open
2023-09-12T21:51:08
2023-09-12T21:51:08
https://github.com/huggingface/datasets/issues/6235
hgt312
[ "enhancement" ]
[]
[]
NONE
### Feature request Current multiprocessing for download/extract is not done nestedly. For example, when processing SlimPajama, there is only 3 processes (for train/test/val), while there are many files inside these 3 folders ``` Downloading data files #0: 0%| | 0/1 [00:00<?, ?obj/s] Downloading data f...
1,889,050,954
I_kwDODunzps5wmKFK
6,229
Apply inference on all images in the dataset
closed
completed
2023-09-10T08:36:12
2023-09-20T16:11:53
2023-09-20T16:11:52Z
https://github.com/huggingface/datasets/issues/6229
andysingal
[]
[]
[ "From what I see, `MMSegInferencer` supports NumPy arrays, so replace the line `image_path = example['image']` with `image_path = np.array(example['image'])` to fix the issue (`example[\"image\"]` is a `PIL.Image` object). ", "> From what I see, `MMSegInferencer` supports NumPy arrays, so replace the line `image_...
NONE
### Describe the bug ``` --------------------------------------------------------------------------- NotImplementedError Traceback (most recent call last) Cell In[14], line 11 9 for idx, example in enumerate(dataset['train']): 10 image_path = example['image'] ---> 11 mask...
1,887,054,320
I_kwDODunzps5weinw
6,225
Conversion from RGB to BGR in Object Detection tutorial
closed
completed
2023-09-08T06:49:19
2023-09-08T17:52:18
2023-09-08T17:52:17Z
https://github.com/huggingface/datasets/issues/6225
samokhinv
[]
[]
[ "Good catch!" ]
NONE
The [tutorial](https://huggingface.co/docs/datasets/main/en/object_detection) mentions the necessity of conversion the input image from BGR to RGB > albumentations expects the image to be in BGR format, not RGB, so you’ll have to convert the image before applying the transform. [Link to tutorial](https://github.c...
1,884,324,631
I_kwDODunzps5wUIMX
6,221
Support saving datasets with custom formatting
open
2023-09-06T16:03:32
2023-09-06T18:32:07
https://github.com/huggingface/datasets/issues/6221
mariosasko
[]
[]
[ "Not a fan of pickling this sort of stuff either.\r\nNote that users can also share the code in their dataset documentation." ]
COLLABORATOR
Requested in https://discuss.huggingface.co/t/using-set-transform-on-a-dataset-leads-to-an-exception/53036. I am not sure if supporting this is the best idea for the following reasons: >For this to work, we would have to pickle a custom transform, which means the transform and the objects it references need to be...
1,883,614,607
I_kwDODunzps5wRa2P
6,217
`Dataset.to_dict()` ignore `decode=True` with Image feature
open
2023-09-06T09:26:16
2023-09-08T17:08:52
https://github.com/huggingface/datasets/issues/6217
qgallouedec
[]
[]
[ "We need to implement the `Image` type as a PyArrow extension type (to allow us to override the Python conversion) for this to work as expected. For now, it's best to use your approach indeed." ]
MEMBER
### Describe the bug `Dataset.to_dict` seems to ignore the decoding instruction passed in features. ### Steps to reproduce the bug ```python import datasets import numpy as np from PIL import Image img = np.random.randint(0, 256, (5, 5, 3), dtype=np.uint8) img = Image.fromarray(img) features = datasets.Fea...
1,881,736,469
I_kwDODunzps5wKQUV
6,214
Unpin fsspec < 2023.9.0
closed
completed
2023-09-05T11:02:58
2023-09-26T15:32:52
2023-09-26T15:32:52Z
https://github.com/huggingface/datasets/issues/6214
albertvillanova
[ "enhancement" ]
[ "mariosasko" ]
[]
MEMBER
Once root issue is fixed, remove temporary pin of fsspec < 2023.9.0 introduced by: - #6210 Related to issue: - #6209 After investigation, I think the root issue is related to the new glob behavior with double asterisk `**` they have introduced in: - https://github.com/fsspec/filesystem_spec/pull/1329
1,880,399,516
I_kwDODunzps5wFJ6c
6,212
Tilde (~) is not supported for data_files
open
2023-09-04T14:23:49
2023-09-05T08:28:39
https://github.com/huggingface/datasets/issues/6212
exs-avianello
[]
[]
[ "Hi @exs-avianello, is it really needed? Note you can alternatively use `pathlib.Path` among others as it follows:\r\n\r\n```python\r\nimport datasets\r\nfrom pathlib import Path\r\n\r\n# save a parquet file at ~/path/to/data.parquet\r\n\r\ndata_files = Path.home() / \"path/to/data.parquet\"\r\ndataset = datasets.l...
NONE
### Describe the bug Attempting to `load_dataset` from a path starting with `~` (as a shorthand for the user's home directory) seems not to be fully working - at least as far as the `parquet` dataset builder is concerned. (the same file can be loaded correctly if providing its absolute path instead) I think that...
1,879,622,000
I_kwDODunzps5wCMFw
6,209
CI is broken with AssertionError: 3 failed, 12 errors
closed
completed
2023-09-04T06:47:05
2023-09-04T07:30:01
2023-09-04T07:30:01Z
https://github.com/huggingface/datasets/issues/6209
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[]
MEMBER
Our CI is broken: 3 failed, 12 errors See: https://github.com/huggingface/datasets/actions/runs/6069947111/job/16465138041 ``` =========================== short test summary info ============================ FAILED tests/test_load.py::ModuleFactoryTest::test_LocalDatasetModuleFactoryWithoutScript_with_data_dir - ...
1,879,555,234
I_kwDODunzps5wB7yi
6,207
No-script datasets with ZIP files do not load
closed
completed
2023-09-04T05:50:27
2023-09-04T09:13:33
2023-09-04T09:13:33Z
https://github.com/huggingface/datasets/issues/6207
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[]
MEMBER
While investigating an issue on a Hub dataset, I have discovered the no-script datasets containing ZIP files do not load. For example, that no-script dataset containing ZIP files, raises NonMatchingSplitsSizesError: ```python In [2]: ds = load_dataset("sidovic/LearningQ-qg") NonMatchingSplitsSizesError: [ { ...
1,879,473,745
I_kwDODunzps5wBn5R
6,206
When calling load_dataset, raise error: pyarrow.lib.ArrowInvalid: offset overflow while concatenating arrays
closed
completed
2023-09-04T04:14:00
2024-04-17T15:53:29
2023-09-04T06:05:49Z
https://github.com/huggingface/datasets/issues/6206
aihao2000
[]
[]
[ "I solved the problem by modifying the \"self DEFAULT_WRITER_BATCH_SIZE\" in \"class MyDataset (datasets. GeneratorBasedBuilder) : __init__\"", "same problem, and this solution worked me also - you can set this var by setting the keyword argument `writer_batch_size=...` in `load_dataset(...,writer_batch_size=...)...
NONE
### Describe the bug When calling load_dataset, raise error ``` Traceback (most recent call last): File "/home/aihao/miniconda3/envs/torch/lib/python3.11/site-packages/datasets/builder.py", line 1694, in _pre pare_split_single ...
1,877,491,602
I_kwDODunzps5v6D-S
6,203
Support loading from a DVC remote repository
closed
completed
2023-09-01T14:04:52
2023-09-15T15:11:27
2023-09-15T15:11:27Z
https://github.com/huggingface/datasets/issues/6203
bilelomrani1
[ "enhancement" ]
[]
[ "(cross-posting from the linked DVC issue)\r\n\r\nI think this should already work out of the box with the current `datasets` and `dvc.api` releases by passing the correct `storage_options` into the datasets calls. `storage_options` is essentially just the kwargs dict that gets passed to the fsspec fs constructor.\...
NONE
### Feature request Adding support for loading a file from a DVC repository, tracked remotely on a SCM. ### Motivation DVC is a popular version control system to version and manage datasets. The files are stored on a remote object storage platform, but they are tracked using Git. Integration with DVC is possible thr...
1,876,630,351
I_kwDODunzps5v2xtP
6,202
avoid downgrading jax version
closed
completed
2023-09-01T02:57:57
2023-10-12T16:28:59
2023-10-12T16:28:59Z
https://github.com/huggingface/datasets/issues/6202
chrisflesher
[ "enhancement" ]
[]
[ "https://github.com/huggingface/datasets/blob/main/setup.py#L236\r\nCurrently has the highest version at 0.3.25; Not sure if there is any reason for this, other than that was the tested version?" ]
NONE
### Feature request Whenever I `pip install datasets[jax]` it downgrades jax to version 0.3.25. I seem to be able to install this library first then upgrade jax back to version 0.4.13. ### Motivation It would be nice to not overwrite currently installed version of jax if possible. ### Your contribution I...
1,875,165,185
I_kwDODunzps5vxMAB
6,199
Use load_dataset for local json files, but it not works
open
2023-08-31T09:42:34
2023-08-31T19:05:07
https://github.com/huggingface/datasets/issues/6199
Garen-in-bush
[]
[]
[ "Hugging Face's datasets library may prioritize remote configurations. Make sure there are no conflicting configurations causing the library to prefer downloading data\r\nMay be try debugging\r\nraw_datasets = load_dataset('json', data_files=data_files)\r\nprint(raw_datasets)\r\n", "It doesn't download them but ...
NONE
### Describe the bug when I use load_dataset to load my local datasets,it always goes to Hugging Face to download the data instead of loading the local dataset. ### Steps to reproduce the bug `raw_datasets = load_dataset( β€˜json’, data_files=data_files)` ### Expected behavior ![image](https://gi...
1,875,078,155
I_kwDODunzps5vw2wL
6,197
ValueError: 'index=True' is only valid when 'orient' is 'split', 'table', 'index', or 'columns'
closed
completed
2023-08-31T08:51:50
2023-09-01T10:35:10
2023-08-31T10:24:40Z
https://github.com/huggingface/datasets/issues/6197
exs-avianello
[]
[ "albertvillanova" ]
[ "Thanks for reporting. We are investigating it.", "This issue is caused by latest `pandas` release 2.1.0 (released yesterday Aug 30).\r\n\r\nSee: https://github.com/huggingface/datasets/actions/runs/6035484010/job/16375932085?pr=6198\r\n", "People using previous releases of `datasets` should pin `pandas` in the...
NONE
### Describe the bug Saving a dataset `.to_json()` fails with a `ValueError` since the latest `pandas` [release](https://pandas.pydata.org/docs/dev/whatsnew/v2.1.0.html) (`2.1.0`) In their latest release we have: > Improved error handling when using [DataFrame.to_json()](https://pandas.pydata.org/docs/dev/refere...
1,875,070,972
I_kwDODunzps5vw0_8
6,196
Split order is not preserved
closed
completed
2023-08-31T08:47:16
2023-08-31T13:48:43
2023-08-31T13:48:43Z
https://github.com/huggingface/datasets/issues/6196
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[]
MEMBER
I have noticed that in some cases the split order is not preserved. For example, consider a no-script dataset with configs: ```yaml configs: - config_name: default data_files: - split: train path: train.csv - split: test path: test.csv ``` - Note the defined split order is [train, test] On...
1,874,195,585
I_kwDODunzps5vtfSB
6,195
Force to reuse cache at given path
closed
completed
2023-08-30T18:44:54
2023-11-03T10:14:21
2023-08-30T19:00:45Z
https://github.com/huggingface/datasets/issues/6195
Luosuu
[]
[]
[ "realized that need to pass the path at `cache_file_name` like\r\n\r\n```python\r\ntokenized_datasets = raw_datasets[\"train\"].map(\r\n tokenize_function,\r\n batched=True,\r\n num_proc=data_args.preprocessing_num_workers,\r\n remove_columns=[text_column_...
NONE
### Describe the bug I have run the official example of MLM like: ```bash python run_mlm.py \ --model_name_or_path roberta-base \ --dataset_name togethercomputer/RedPajama-Data-1T \ --dataset_config_name arxiv \ --per_device_train_batch_size 10 \ --preprocessing_num_workers 20 ...
1,872,598,223
I_kwDODunzps5vnZTP
6,194
Support custom fingerprinting with `Dataset.from_generator`
open
2023-08-29T22:43:13
2024-12-22T01:14:39
https://github.com/huggingface/datasets/issues/6194
bilelomrani1
[ "enhancement" ]
[]
[ "The `fingerprint` parameter serves a slightly different purpose - we use it to inject a new fingerprint after transforming a `Dataset` (computed from the previous fingerprint + transform + transform args), e.g., to be able to compute the cache file for a transform. There is no concept of `fingerprint` before a `Da...
NONE
### Feature request When using `Dataset.from_generator`, the generator is hashed when building the fingerprint. Similar to `.map`, it would be interesting to let the user bypass this hashing by accepting a `fingerprint` argument to `.from_generator`. ### Motivation Using the `.from_generator` constructor with ...
1,872,285,153
I_kwDODunzps5vmM3h
6,193
Dataset loading script method does not work with .pyc file
open
2023-08-29T19:35:06
2023-08-31T19:47:29
https://github.com/huggingface/datasets/issues/6193
riteshkumarumassedu
[]
[]
[ "Before dynamically loading `.py` scripts with `importlib.import_module`, we also parse their contents to check imports, which is tricky to implement for binary `.pyc` files (requires parsing bytecode), so I don't think this is something we want to support (unless more users request it ofc) as this use case is a bi...
NONE
### Describe the bug The huggingface dataset library specifically looks for β€˜.py’ file while loading the dataset using loading script approach and it does not work with β€˜.pyc’ file. While deploying in production, it becomes an issue when we are restricted to use only .pyc files. Is there any work around for this ? #...
1,871,582,175
I_kwDODunzps5vjhPf
6,190
`Invalid user token` even when correct user token is passed!
closed
completed
2023-08-29T12:37:03
2023-08-29T13:01:10
2023-08-29T13:01:09Z
https://github.com/huggingface/datasets/issues/6190
Vaibhavs10
[]
[]
[ "This is because `download_config.use_auth_token` is deprecated - you should use `download_config.token` instead", "Works! Thanks for the quick fix! <3" ]
NONE
### Describe the bug I'm working on a dataset which comprises other datasets on the hub. URL: https://huggingface.co/datasets/open-asr-leaderboard/datasets-test-only Note: Some of the sub-datasets in this metadataset require explicit access. All the other datasets work fine, except, `common_voice`. ### Steps t...
1,870,987,640
I_kwDODunzps5vhQF4
6,188
[Feature Request] Check the length of batch before writing so that empty batch is allowed
closed
not_planned
2023-08-29T06:37:34
2023-09-19T21:55:38
2023-09-19T21:55:37Z
https://github.com/huggingface/datasets/issues/6188
namespace-Pt
[]
[]
[ "I think this error means you filter all examples within an (input) batch by deleting its columns. In that case, to avoid the error, you can set the column value to an empty list (`input_batch[\"col\"] = []`) instead." ]
NONE
### Use Case I use `dataset.map(process_fn, batched=True)` to process the dataset, with data **augmentations or filtering**. However, when all examples within a batch is filtered out, i.e. **an empty batch is returned**, the following error will be thrown: ``` ValueError: Schema and number of arrays unequal `...
1,870,936,143
I_kwDODunzps5vhDhP
6,187
Couldn't find a dataset script at /content/tsv/tsv.py or any data file in the same directory
open
2023-08-29T05:49:56
2023-08-29T16:21:45
https://github.com/huggingface/datasets/issues/6187
andysingal
[]
[]
[ "Hi! You can load this dataset with:\r\n```python\r\ndata_files = {\r\n \"train\": \"/content/PUBHEALTH/train.tsv\",\r\n \"validation\": \"/content/PUBHEALTH/dev.tsv\",\r\n \"test\": \"/content/PUBHEALTH/test.tsv\",\r\n}\r\n\r\ntsv_datasets_reloaded = load_dataset(\"csv\", data_files=data_files, sep=\"\\t\...
NONE
### Describe the bug ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) [<ipython-input-48-6a7b3e847019>](https://localhost:8080/#) in <cell line: 7>() 5 } 6 ----> 7 csv_datasets_reloaded = load_...
1,869,431,457
I_kwDODunzps5vbUKh
6,186
Feature request: add code example of multi-GPU processing
closed
completed
2023-08-28T10:00:59
2024-10-07T09:39:51
2023-11-22T15:42:20Z
https://github.com/huggingface/datasets/issues/6186
NielsRogge
[ "documentation", "enhancement" ]
[]
[ "That'd be a great idea! @mariosasko or @lhoestq, would it be possible to fix the code snippet or do you have another suggested way for doing this?", "Indeed `if __name__ == \"__main__\"` is important in this case.\r\n\r\nNot sure about the imbalanced GPU usage though, but maybe you can try using the `torch.cuda....
CONTRIBUTOR
### Feature request Would be great to add a code example of how to do multi-GPU processing with πŸ€— Datasets in the documentation. cc @stevhliu Currently the docs has a small [section](https://huggingface.co/docs/datasets/v2.3.2/en/process#map) on this saying "your big GPU call goes here", however it didn't work f...
1,868,077,748
I_kwDODunzps5vWJq0
6,185
Error in saving the PIL image into *.arrow files using datasets.arrow_writer
open
2023-08-26T12:15:57
2023-08-29T14:49:58
https://github.com/huggingface/datasets/issues/6185
HaozheZhao
[]
[]
[ "You can cast the `input_image` column to the `Image` type to fix the issue:\r\n```python\r\nds.cast_column(\"input_image\", datasets.Image())\r\n```" ]
NONE
### Describe the bug I am using the ArrowWriter from datasets.arrow_writer to save a json-style file as arrow files. Within the dictionary, it contains a feature called "image" which is a list of PIL.Image objects. I am saving the json using the following script: ``` def save_to_arrow(path,temp): with ArrowWri...
1,867,766,143
I_kwDODunzps5vU9l_
6,184
Map cache does not detect function changes in another module
closed
completed
2023-08-25T22:59:14
2023-08-29T20:57:07
2023-08-29T20:56:49Z
https://github.com/huggingface/datasets/issues/6184
jonathanasdf
[ "duplicate" ]
[]
[ "This issue is a duplicate of https://github.com/huggingface/datasets/issues/3297. This is a limitation of `dill`, a package we use for caching (non-`__main__` module objects are serialized by reference). You can find more info about it here: https://github.com/uqfoundation/dill/issues/424.\r\n\r\nIn your case, mo...
NONE
```python # dataset.py import os import datasets if not os.path.exists('/tmp/test.json'): with open('/tmp/test.json', 'w') as file: file.write('[{"text": "hello"}]') def transform(example): text = example['text'] # text += ' world' return {'text': text} data = datasets.load_dataset('json', ...
1,867,743,276
I_kwDODunzps5vU4As
6,183
Load dataset with non-existent file
closed
completed
2023-08-25T22:21:22
2023-08-29T13:26:22
2023-08-29T13:26:22Z
https://github.com/huggingface/datasets/issues/6183
freQuensy23-coder
[]
[]
[ "Same problem", "This was fixed in https://github.com/huggingface/datasets/pull/6155, which will be included in the next release (or you can install `datasets` from source to use it immediately)." ]
NONE
### Describe the bug When load a dataset from datasets and pass a wrong path to json with the data, error message does not contain something abount "wrong path" or "file do not exist" - ```SchemaInferenceError: Please pass `features` or at least one example when writing data``` ### Steps to reproduce the bug ...
1,867,203,131
I_kwDODunzps5vS0I7
6,182
Loading Meteor metric in HF evaluate module crashes due to datasets import issue
closed
completed
2023-08-25T14:54:06
2023-09-04T16:41:11
2023-08-31T14:38:23Z
https://github.com/huggingface/datasets/issues/6182
dsashulya
[]
[]
[ "Our minimal Python version requirement is 3.8, so we dropped `importlib_metadata`. \r\n\r\nFeel free to open a PR in the `evaluate` repo to replace the problematic import with\r\n```python\r\nif PY_VERSION < version.parse(\"3.8\"):\r\n import importlib_metadata\r\nelse:\r\n import importlib.metadata as impor...
NONE
### Describe the bug When using python3.9 and ```evaluate``` module loading Meteor metric crashes at a non-existent import from ```datasets.config``` in ```datasets v2.14``` ### Steps to reproduce the bug ``` from evaluate import load meteor = load("meteor") ``` produces the following error: ``` from d...
1,867,009,016
I_kwDODunzps5vSEv4
6,179
Map cache with tokenizer
open
2023-08-25T12:55:18
2023-08-31T15:17:24
https://github.com/huggingface/datasets/issues/6179
jonathanasdf
[]
[]
[ "https://github.com/huggingface/datasets/issues/5147 may be a solution, by passing in the tokenizer in a fn_kwargs and ignoring it in the fingerprint calculations", "I have a similar issue. I was using a Jupyter Notebook and every time I call the map function it performs tokenization from scratch again although t...
NONE
Similar issue to https://github.com/huggingface/datasets/issues/5985, but across different sessions rather than two calls in the same session. Unlike that issue, explicitly calling tokenizer(my_args) before the map() doesn't help, because the tokenizer was created with a different hash to begin with... setup ```...
1,866,610,102
I_kwDODunzps5vQjW2
6,178
'import datasets' throws "invalid syntax error"
closed
completed
2023-08-25T08:35:14
2023-09-27T17:33:39
2023-09-27T17:33:39Z
https://github.com/huggingface/datasets/issues/6178
elia-ashraf
[]
[]
[ "This seems to be related to your environment and not the `datasets` code (e.g., this could happen when exposing the Python 3.9 site packages to a lower Python version (interpreter))" ]
NONE
### Describe the bug Hi, I have been trying to import the datasets library but I keep gtting this error. `Traceback (most recent call last): File /opt/local/jupyterhub/lib64/python3.9/site-packages/IPython/core/interactiveshell.py:3508 in run_code exec(code_obj, self.user_global_ns, self.user_ns) ...
1,864,436,408
I_kwDODunzps5vIQq4
6,176
how to limit the size of memory mapped file?
open
2023-08-24T05:33:45
2023-10-11T06:00:10
https://github.com/huggingface/datasets/issues/6176
williamium3000
[]
[]
[ "Hi! Can you share the error this reproducer throws in your environment? `streaming=True` streams the dataset as it's iterated over without creating a memory-map file.", "The trace of the error. Streaming works but is slower.\r\n```\r\nRoot Cause (first observed failure):\r\n[0]:\r\n time : 2023-08-24_06:06...
NONE
### Describe the bug Huggingface datasets use memory-mapped file to map large datasets in memory for fast access. However, it seems like huggingface will occupy all the memory for memory-mapped files, which makes a troublesome situation since we cluster will distribute a small portion of memory to me (once it's over ...
1,863,422,065
I_kwDODunzps5vEZBx
6,173
Fix CI for pyarrow 13.0.0
closed
completed
2023-08-23T14:11:20
2023-08-25T13:06:53
2023-08-25T13:06:53Z
https://github.com/huggingface/datasets/issues/6173
lhoestq
[]
[]
[]
MEMBER
pyarrow 13.0.0 just came out ``` FAILED tests/test_formatting.py::ArrowExtractorTest::test_pandas_extractor - AssertionError: Attributes of Series are different Attribute "dtype" are different [left]: datetime64[us, UTC] [right]: datetime64[ns, UTC] ``` ``` FAILED tests/test_table.py::test_cast_sliced_fi...
1,863,318,027
I_kwDODunzps5vD_oL
6,172
Make Dataset streaming queries retryable
open
2023-08-23T13:15:38
2023-11-06T13:54:16
https://github.com/huggingface/datasets/issues/6172
rojagtap
[ "enhancement" ]
[]
[ "Hi! The streaming mode also retries requests - `datasets.config.STREAMING_READ_MAX_RETRIES` (20 sec by default) controls the number of retries and `datasets.config.STREAMING_READ_RETRY_INTERVAL` (5 sec) the sleep time between retries.\r\n\r\n> At step 1800 I got a 504 HTTP status code error from Huggingface hub fo...
NONE
### Feature request Streaming datasets, as intended, do not load the entire dataset in memory or disk. However, while querying the next data chunk from the remote, sometimes it is possible that the service is down or there might be other issues that may cause the query to fail. In such a scenario, it would be nice to ...
1,862,360,199
I_kwDODunzps5vAVyH
6,169
Configurations in yaml not working
open
2023-08-23T00:13:22
2023-08-23T15:35:31
https://github.com/huggingface/datasets/issues/6169
tsor13
[]
[]
[ "Unfortunately, I cannot reproduce this behavior on my machine or Colab - the reproducer returns `['main_data', 'additional_data']` as expected.", "Thank you for looking into this, Mario. Is this on [my repository](https://huggingface.co/datasets/tsor13/test), or on another one that you have reproduced? Would you...
NONE
### Dataset configurations cannot be created in YAML/README Hello! I'm trying to follow the docs here in order to create structure in my dataset as added from here (#5331): https://github.com/huggingface/datasets/blob/8b8e6ee067eb74e7965ca2a6768f15f9398cb7c8/docs/source/repository_structure.mdx#L110-L118 I have t...
1,857,682,241
I_kwDODunzps5uuftB
6,163
Error type: ArrowInvalid Details: Failed to parse string: '[254,254]' as a scalar of type int32
open
2023-08-19T11:34:40
2025-07-22T12:04:46
https://github.com/huggingface/datasets/issues/6163
shishir-codes
[]
[]
[ "Answered on the forum [here](https://discuss.huggingface.co/t/error-type-arrowinvalid-details-failed-to-parse-string-254-254-as-a-scalar-of-type-int32/51323).", "it seems that no answer in this link" ]
NONE
### Describe the bug I am getting the following error while I am trying to upload the CSV sheet to train a model. My CSV sheet content is exactly same as shown in the example CSV file in the Auto Train page. Attaching screenshot of error for reference. I have also tried converting the index of the answer that are inte...
1,856,198,342
I_kwDODunzps5uo1bG
6,162
load_dataset('json',...) from togethercomputer/RedPajama-Data-1T errors when jsonl rows contains different data fields
open
2023-08-18T07:19:39
2023-08-18T17:00:35
https://github.com/huggingface/datasets/issues/6162
rbrugaro
[]
[]
[ "Hi ! Feel free to open a discussion at https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T/discussions to ask the file to be fixed (or directly open a PR with the fixed file)\r\n\r\n`datasets` expects all the examples to have the same fields", "@lhoestq I think the problem is caused by the fact th...
NONE
### Describe the bug When loading some jsonl from redpajama-data-1T github source [togethercomputer/RedPajama-Data-1T](https://huggingface.co/datasets/togethercomputer/RedPajama-Data-1T) fails due to one row of the file containing an extra field called **symlink_target: string>**. When deleting that line the loading...
1,855,691,512
I_kwDODunzps5um5r4
6,159
Add `BoundingBox` feature
open
2023-08-17T20:49:51
2024-11-18T17:58:43
https://github.com/huggingface/datasets/issues/6159
mariosasko
[ "enhancement" ]
[]
[ "My proposal would look like this:\r\n\r\n```python\r\nfrom datasets import load_dataset\r\nfrom datasets.features import Sequence, BboxFeature\r\n\r\n# load images along with boxes\r\ndataset = load_dataset(\"imagefolder\", data_dir=\"/path/to/folder\", split=\"train\")\r\n\r\n# map the boxes column to the appropr...
COLLABORATOR
... to make working with object detection datasets easier. Currently, `Sequence(int_or_float, length=4)` can be used to represent this feature optimally (in the storage backend), so I only see this feature being useful if we make it work with the viewer. Also, bounding boxes usually come in 4 different formats (explain...
1,855,265,663
I_kwDODunzps5ulRt_
6,157
DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'
closed
completed
2023-08-17T15:48:11
2023-09-27T17:36:14
2023-09-27T17:36:14Z
https://github.com/huggingface/datasets/issues/6157
aihao2000
[]
[]
[ "Thanks for reporting, but we can only fix this issue if you can provide a reproducer that consistently reproduces it.", "@mariosasko Ok. What exactly does it mean to provide a reproducer", "To provide a code that reproduces the issue :)", "@mariosasko I complete the above code, is it enough?", "@mariosasko...
NONE
### Describe the bug When I was in load_dataset, it said "DatasetInfo.__init__() got an unexpected keyword argument '_column_requires_decoding'". The second time I ran it, there was no error and the dataset object worked ```python --------------------------------------------------------------------------- TypeErr...
1,854,768,618
I_kwDODunzps5ujYXq
6,156
Why not use self._epoch as seed to shuffle in distributed training with IterableDataset
closed
completed
2023-08-17T10:58:20
2023-08-17T14:33:15
2023-08-17T14:33:14Z
https://github.com/huggingface/datasets/issues/6156
npuichigo
[]
[]
[ "@lhoestq ", "`_effective_generator` returns a RNG that takes into account `self._epoch` and the current dataset's base shuffling RNG (which can be set by specifying `seed=` in `.shuffle() for example`).\r\n\r\nTo fix your error you can pass `seed=` to `.shuffle()`. And the shuffling will depend on both this seed...
CONTRIBUTOR
### Describe the bug Currently, distributed training with `IterableDataset` needs to pass fixed seed to shuffle to keep each node use the same seed to avoid overlapping. https://github.com/huggingface/datasets/blob/a7f8d9019e7cb104eac4106bdc6ec0292f0dc61a/src/datasets/iterable_dataset.py#L1174-L1177 My question ...
1,852,494,646
I_kwDODunzps5uatM2
6,152
FolderBase Dataset automatically resolves under current directory when data_dir is not specified
closed
completed
2023-08-16T04:38:09
2025-06-18T14:18:42
2025-06-18T14:18:42Z
https://github.com/huggingface/datasets/issues/6152
npuichigo
[ "good first issue" ]
[ "debrupf2946" ]
[ "@lhoestq ", "Makes sense, I guess this can be fixed in the load_dataset_builder method.\r\nIt concerns every packaged builder I think (see values in `_PACKAGED_DATASETS_MODULES`)", "I think the behavior is related to these lines, which short circuited the error handling.\r\nhttps://github.com/huggingface/datas...
CONTRIBUTOR
### Describe the bug FolderBase Dataset automatically resolves under current directory when data_dir is not specified. For example: ``` load_dataset("audiofolder") ``` takes long time to resolve and collect data_files from current directory. But I think it should reach out to this line for error handling https:...
1,851,497,818
I_kwDODunzps5uW51a
6,151
Faster sorting for single key items
closed
completed
2023-08-15T14:02:31
2023-08-21T14:38:26
2023-08-21T14:38:25Z
https://github.com/huggingface/datasets/issues/6151
jackapbutler
[ "enhancement" ]
[]
[ "`Dataset.sort` essentially does the same thing except it uses `pyarrow.compute.sort_indices` which doesn't involve copying the data into python objects (saving memory)\r\n\r\n```python\r\nsort_keys = [(col, \"ascending\") for col in column_names]\r\nindices = pc.sort_indices(self.data, sort_keys=sort_keys)\r\nretu...
NONE
### Feature request A faster way to sort a dataset which contains a large number of rows. ### Motivation The current sorting implementations took significantly longer than expected when I was running on a dataset trying to sort by timestamps. **Code snippet:** ```python ds = datasets.load_dataset( "json"...
1,850,740,456
I_kwDODunzps5uUA7o
6,150
Allow dataset implement .take
open
2023-08-15T00:17:51
2023-08-17T13:49:37
https://github.com/huggingface/datasets/issues/6150
brando90
[ "enhancement" ]
[]
[ "```\r\n dataset = IterableDataset(dataset) if type(dataset) != IterableDataset else dataset # to force dataset.take(batch_size) to work in non-streaming mode\r\n ```\r\n", "hf discuss: https://discuss.huggingface.co/t/how-does-one-make-dataset-take-512-work-with-streaming-false-with-hugging-face-data-set/5...
NONE
### Feature request I want to do: ``` dataset.take(512) ``` but it only works with streaming = True ### Motivation uniform interface to data sets. Really surprising the above only works with streaming = True. ### Your contribution Should be trivial to copy paste the IterableDataset .take to use the local pa...
1,850,700,624
I_kwDODunzps5uT3NQ
6,149
Dataset.from_parquet cannot load subset of columns
closed
completed
2023-08-14T23:28:22
2023-08-17T22:36:05
2023-08-17T22:36:05Z
https://github.com/huggingface/datasets/issues/6149
dwyatte
[]
[ "mariosasko" ]
[ "Looks like this regression was introduced in `datasets==2.13.0` (`2.12.0` could load a subset of columns)\r\n\r\nThis does not appear to be fixed by https://github.com/huggingface/datasets/pull/6045 (bug still exists on `main`)" ]
CONTRIBUTOR
### Describe the bug When using `Dataset.from_parquet(path_or_paths, columns=[...])` and a subset of columns, loading fails with a variant of the following ``` ValueError: Couldn't cast a: int64 -- schema metadata -- pandas: '{"index_columns": [], "column_indexes": [], "columns": [{"name":' + 273 to {'a': V...
1,848,914,830
I_kwDODunzps5uNDOO
6,147
ValueError when running BeamBasedBuilder with GCS path in cache_dir
closed
not_planned
2023-08-14T03:11:34
2024-03-18T16:59:15
2024-03-18T16:59:14Z
https://github.com/huggingface/datasets/issues/6147
ktrk115
[]
[]
[ "The cause of the error seems to be that `datasets` adds \"gcs://\" as a schema, while `beam` checks only \"gs://\".\r\n\r\ndatasets: https://github.com/huggingface/datasets/blob/c02a44715c036b5261686669727394b1308a3a4b/src/datasets/builder.py#L822\r\n\r\nbeam: [link](https://github.com/apache/beam/blob/25e1a64641b...
NONE
### Describe the bug When running the BeamBasedBuilder with a GCS path specified in the cache_dir, the following ValueError occurs: ``` ValueError: Unable to get filesystem from specified path, please use the correct path or ensure the required dependency is installed, e.g., pip install apache-beam[gcp]. Path spec...
1,848,417,366
I_kwDODunzps5uLJxW
6,146
DatasetGenerationError when load glue benchmark datasets from `load_dataset`
closed
completed
2023-08-13T05:17:56
2023-08-26T22:09:09
2023-08-26T22:09:09Z
https://github.com/huggingface/datasets/issues/6146
yusx-swapp
[]
[]
[ "I've tried clear the .cache file, doesn't work.", "This issue happens on AWS sagemaker", "This issue can happen if there is a directory named \"glue\" relative to the Python script with the `load_dataset` call (similar issue to this one: https://github.com/huggingface/datasets/issues/5228). Is this the case?",...
NONE
### Describe the bug Package version: datasets-2.14.4 When I run the codes: ``` from datasets import load_dataset dataset = load_dataset("glue", "ax") ``` I got the following errors: --------------------------------------------------------------------------- SchemaInferenceError ...
1,852,630,074
I_kwDODunzps5ubOQ6
6,153
custom load dataset to hub
closed
completed
2023-08-13T04:42:22
2023-11-21T11:50:28
2023-10-08T17:04:16Z
https://github.com/huggingface/datasets/issues/6153
andysingal
[]
[]
[ "This is an issue for the [Datasets repo](https://github.com/huggingface/datasets).", "> This is an issue for the [Datasets repo](https://github.com/huggingface/datasets).\r\n\r\nThanks @sgugger , I guess I will wait for them to address the issue . Looking forward to hearing from them ", "You can use `.push_to_...
NONE
### System Info kaggle notebook i transformed dataset: ``` dataset = load_dataset("Dahoas/first-instruct-human-assistant-prompt") ``` to formatted_dataset: ``` Dataset({ features: ['message_tree_id', 'message_tree_text'], num_rows: 33143 }) ``` but would like to know how to upload to hub ### ...
1,847,296,711
I_kwDODunzps5uG4LH
6,144
NIH exporter file not found
open
2023-08-11T19:05:25
2023-08-14T23:28:38
https://github.com/huggingface/datasets/issues/6144
brando90
[]
[]
[ "related: https://github.com/huggingface/datasets/issues/3504", "another file not found:\r\n```\r\nTraceback (most recent call last):\r\n File \"/lfs/ampere1/0/brando9/miniconda/envs/beyond_scale/lib/python3.10/site-packages/fsspec/implementations/http.py\", line 417, in _info\r\n await _file_info(\r\n File ...
NONE
### Describe the bug can't use or download the nih exporter pile data. ``` 15 experiment_compute_diveristy_coeff_single_dataset_then_combined_datasets_with_domain_weights() 16 File "/lfs/ampere1/0/brando9/beyond-scale-language-data-diversity/src/diversity/div_coeff.py", line 474, in experiment_compute_diveri...
1,846,205,216
I_kwDODunzps5uCtsg
6,142
the-stack-dedup fails to generate
closed
completed
2023-08-11T05:10:49
2023-08-17T09:26:13
2023-08-17T09:26:13Z
https://github.com/huggingface/datasets/issues/6142
michaelroyzen
[]
[ "lhoestq" ]
[ "@severo ", "It seems that some parquet files have additional columns.\r\n\r\nI ran a scan and found that two files have the additional `__id__` column:\r\n\r\n1. `hf://datasets/bigcode/the-stack-dedup/data/numpy/data-00000-of-00001.parquet`\r\n2. `hf://datasets/bigcode/the-stack-dedup/data/omgrofl/data-00000-of-...
NONE
### Describe the bug I'm getting an error generating the-stack-dedup with datasets 2.13.1, and with 2.14.4 nothing happens. ### Steps to reproduce the bug My code: ``` import os import datasets as ds MY_CACHE_DIR = "/home/ubuntu/the-stack-dedup-local" MY_TOKEN="my-token" the_stack_ds = ds.load_dataset("...
1,846,117,729
I_kwDODunzps5uCYVh
6,141
TypeError: ClientSession._request() got an unexpected keyword argument 'https'
closed
completed
2023-08-11T02:40:32
2023-08-30T13:51:33
2023-08-30T13:51:33Z
https://github.com/huggingface/datasets/issues/6141
q935970314
[]
[]
[ "Hi! I cannot reproduce this error on my machine or in Colab. Which version of `fsspec` do you have installed?" ]
NONE
### Describe the bug Hello, when I ran the [code snippet](https://huggingface.co/docs/datasets/v2.14.4/en/loading#json) on the document, I encountered the following problem: ``` Python 3.10.9 (main, Mar 1 2023, 18:23:06) [GCC 11.2.0] on linux Type "help", "copyright", "credits" or "license" for more informatio...
1,845,384,712
I_kwDODunzps5t_lYI
6,140
Misalignment between file format specified in configs metadata YAML and the inferred builder
closed
completed
2023-08-10T15:07:34
2023-08-17T20:37:20
2023-08-17T20:37:20Z
https://github.com/huggingface/datasets/issues/6140
albertvillanova
[ "bug" ]
[]
[]
MEMBER
There is a misalignment between the format of the `data_files` specified in the configs metadata YAML (CSV): ```yaml configs: - config_name: default data_files: - split: train path: data.csv ``` and the inferred builder (JSON). Note there are multiple JSON files in the repo, but they do not...
1,844,991,583
I_kwDODunzps5t-FZf
6,139
Offline dataset viewer
closed
completed
2023-08-10T11:30:00
2024-09-24T18:36:35
2023-09-29T13:10:22Z
https://github.com/huggingface/datasets/issues/6139
yuvalkirstain
[ "enhancement", "dataset-viewer" ]
[]
[ "Hi, thanks for the suggestion. It's not possible at the moment. The viewer is part of the Hub codebase and only works on public datasets. Also, it relies on [Datasets Server](https://github.com/huggingface/datasets-server/), which prepares the data and provides an API to access the rows, size, etc.\r\n\r\nIf you'r...
NONE
### Feature request The dataset viewer feature is very nice. It enables to the user to easily view the dataset. However, when working for private companies we cannot always upload the dataset to the hub. Is there a way to create dataset viewer offline? I.e. to run a code that will open some kind of html or something t...
1,844,952,312
I_kwDODunzps5t97z4
6,137
(`from_spark()`) Unable to connect HDFS in pyspark YARN setting
open
2023-08-10T11:03:08
2023-08-10T11:03:08
https://github.com/huggingface/datasets/issues/6137
kyoungrok0517
[]
[]
[]
NONE
### Describe the bug related issue: https://github.com/apache/arrow/issues/37057#issue-1841013613 --- Hello. I'm trying to interact with HDFS storage from a driver and workers of pyspark YARN cluster. Precisely I'm using **huggingface's `datasets`** ([link](https://github.com/huggingface/datasets)) library tha...
1,844,887,866
I_kwDODunzps5t9sE6
6,136
CI check_code_quality error: E721 Do not compare types, use `isinstance()`
closed
completed
2023-08-10T10:19:50
2023-08-10T11:22:58
2023-08-10T11:22:58Z
https://github.com/huggingface/datasets/issues/6136
albertvillanova
[ "maintenance" ]
[ "albertvillanova" ]
[]
MEMBER
After latest release of `ruff` (https://pypi.org/project/ruff/0.0.284/), we get the following CI error: ``` src/datasets/utils/py_utils.py:689:12: E721 Do not compare types, use `isinstance()` ```
1,844,535,142
I_kwDODunzps5t8V9m
6,134
`datasets` cannot be installed alongside `apache-beam`
closed
not_planned
2023-08-10T06:54:32
2023-09-01T03:19:49
2023-08-10T15:22:10Z
https://github.com/huggingface/datasets/issues/6134
boyleconnor
[]
[]
[ "I noticed that this is actually covered by issue #5613, which for some reason I didn't see when I searched the issues in this repo the first time." ]
NONE
### Describe the bug If one installs `apache-beam` alongside `datasets` (which is required for the [wikipedia](https://huggingface.co/datasets/wikipedia#dataset-summary) dataset) in certain environments (such as a Google Colab notebook), they appear to install successfully, however, actually trying to do something s...
1,844,511,519
I_kwDODunzps5t8QMf
6,133
Dataset is slower after calling `to_iterable_dataset`
open
2023-08-10T06:36:23
2023-08-16T09:18:54
https://github.com/huggingface/datasets/issues/6133
npuichigo
[]
[]
[ "@lhoestq ", "It's roughly the same code between the two so we can expected roughly the same speed, could you share a benchmark ?" ]
CONTRIBUTOR
### Describe the bug Can anyone explain why looping over a dataset becomes slower after calling `to_iterable_dataset` to convert to `IterableDataset` ### Steps to reproduce the bug Any dataset after converting to `IterableDataset` ### Expected behavior Maybe it should be faster on big dataset? I only test on small...
1,843,491,020
I_kwDODunzps5t4XDM
6,132
to_iterable_dataset is missing in document
closed
completed
2023-08-09T15:15:03
2023-08-16T04:43:36
2023-08-16T04:43:29Z
https://github.com/huggingface/datasets/issues/6132
npuichigo
[]
[]
[ "Fixed with PR" ]
CONTRIBUTOR
### Describe the bug to_iterable_dataset is missing in document ### Steps to reproduce the bug to_iterable_dataset is missing in document ### Expected behavior document enhancement ### Environment info unrelated
1,843,158,846
I_kwDODunzps5t3F8-
6,130
default config name doesn't work when config kwargs are specified.
closed
completed
2023-08-09T12:43:15
2023-11-22T11:50:49
2023-11-22T11:50:48Z
https://github.com/huggingface/datasets/issues/6130
npuichigo
[]
[]
[ "@lhoestq ", "What should be the behavior in this case ? Should it override the default config with the added parameter ?", "I know why it should be treated as a new config if overriding parameters are passed. But in some case, I just pass in some common fields like `data_dir`.\r\n\r\nFor example, I want to ext...
CONTRIBUTOR
### Describe the bug https://github.com/huggingface/datasets/blob/12cfc1196e62847e2e8239fbd727a02cbc86ddec/src/datasets/builder.py#L518-L522 If `config_name` is `None`, `DEFAULT_CONFIG_NAME` should be select. But once users pass `config_kwargs` to their customized `BuilderConfig`, the logic is ignored, and dataset ...
1,841,545,493
I_kwDODunzps5tw8EV
6,128
IndexError: Invalid key: 88 is out of bounds for size 0
closed
completed
2023-08-08T15:32:08
2023-12-26T07:51:57
2023-08-11T13:35:09Z
https://github.com/huggingface/datasets/issues/6128
TomasAndersonFang
[]
[]
[ "Hi @TomasAndersonFang,\r\n\r\nHave you tried instead to use `torch_compile` in `transformers.TrainingArguments`? https://huggingface.co/docs/transformers/v4.31.0/en/main_classes/trainer#transformers.TrainingArguments.torch_compile", "> \r\n\r\nI tried this and got the following error:\r\n\r\n```\r\nTraceback (mo...
NONE
### Describe the bug This bug generates when I use torch.compile(model) in my code, which seems to raise an error in datasets lib. ### Steps to reproduce the bug I use the following code to fine-tune Falcon on my private dataset. ```python import transformers from transformers import ( AutoModelForCausalLM...
1,839,675,320
I_kwDODunzps5tpze4
6,126
Private datasets do not load when passing token
closed
completed
2023-08-07T15:06:47
2023-08-08T15:16:23
2023-08-08T15:16:23Z
https://github.com/huggingface/datasets/issues/6126
albertvillanova
[ "bug" ]
[ "albertvillanova" ]
[ "Our CI did not catch this issue because with current implementation, stored token in `HfFolder` (which always exists) is used by default.", "I can confirm this and have the same problem (and just went almost crazy because I couldn't figure out the source of this problem because on another computer everything wor...
MEMBER
### Describe the bug Since the release of `datasets` 2.14, private/gated datasets do not load when passing `token`: they raise `EmptyDatasetError`. This is a non-planned backward incompatible breaking change. Note that private datasets do load if instead `download_config` is passed: ```python from datasets i...
1,837,980,986
I_kwDODunzps5tjV06
6,125
Reinforcement Learning and Robotics are not task categories in HF datasets metadata
closed
completed
2023-08-05T23:59:42
2023-08-18T12:28:42
2023-08-18T12:28:42Z
https://github.com/huggingface/datasets/issues/6125
StoneT2000
[]
[]
[]
NONE
### Describe the bug In https://huggingface.co/models there are task categories for RL and robotics but none in https://huggingface.co/datasets Our lab is currently moving our datasets over to hugging face and would like to be able to add those 2 tags Moreover we see some older datasets that do have that tag, bu...
1,837,868,112
I_kwDODunzps5ti6RQ
6,124
Datasets crashing runs due to KeyError
closed
completed
2023-08-05T17:48:56
2023-11-30T16:28:57
2023-11-30T16:28:57Z
https://github.com/huggingface/datasets/issues/6124
conceptofmind
[]
[]
[ "i once had the same error and I could fix that by pushing a fake or a dummy commit on my hugging face dataset repo", "Hi! We need a reproducer to fix this. Can you provide a link to the dataset (if it's public)?", "> Hi! We need a reproducer to fix this. Can you provide a link to the dataset (if it's public)?\...
NONE
### Describe the bug Hi all, I have been running into a pretty persistent issue recently when trying to load datasets. ```python train_dataset = load_dataset( 'llama-2-7b-tokenized', split = 'train' ) ``` I receive a KeyError which crashes the runs. ``` Traceback (most recent call...
1,837,789,294
I_kwDODunzps5tinBu
6,123
Inaccurate Bounding Boxes in "wildreceipt" Dataset
closed
completed
2023-08-05T14:34:13
2023-08-17T14:25:27
2023-08-17T14:25:26Z
https://github.com/huggingface/datasets/issues/6123
HamzaGbada
[]
[]
[ "Hi! Thanks for the investigation, but we are not the authors of these datasets, so please report this on the Hub instead so that the actual authors can fix it." ]
NONE
### Describe the bug I would like to bring to your attention an issue related to the accuracy of bounding boxes within the "wildreceipt" dataset, which is made available through the Hugging Face API. Specifically, I have identified a discrepancy between the bounding boxes generated by the dataset loading commands, n...
1,837,335,721
I_kwDODunzps5tg4Sp
6,122
Upload README via `push_to_hub`
closed
not_planned
2023-08-04T21:00:27
2023-08-21T18:18:54
2023-08-21T18:18:54Z
https://github.com/huggingface/datasets/issues/6122
liyucheng09
[ "enhancement" ]
[]
[ "You can use `huggingface_hub`'s [Card API](https://huggingface.co/docs/huggingface_hub/package_reference/cards) to programmatically push a dataset card to the Hub." ]
NONE
### Feature request `push_to_hub` now allows users to upload datasets programmatically. However, based on the latest doc, we still need to open the dataset page to add readme file manually. However, I do discover snippets to intialize a README for every `push_to_hub`: ``` dataset_card = ( DatasetCard( ...
1,836,026,938
I_kwDODunzps5tb4w6
6,120
Lookahead streaming support?
open
2023-08-04T04:01:52
2023-08-17T17:48:42
https://github.com/huggingface/datasets/issues/6120
PicoCreator
[ "enhancement" ]
[]
[ "In which format is your dataset? We could expose the `pre_buffer` flag for Parquet to use PyArrow's background thread pool to speed up loading. " ]
NONE
### Feature request From what I understand, streaming dataset currently pulls the data, and process the data as it is requested. This can introduce significant latency delays when data is loaded into the training process, needing to wait for each segment. While the delays might be dataset specific (or even mappi...
1,835,940,417
I_kwDODunzps5tbjpB
6,118
IterableDataset.from_generator() fails with pickle error when provided a generator or iterator
open
2023-08-04T01:45:04
2025-11-18T16:07:04
https://github.com/huggingface/datasets/issues/6118
finkga
[]
[]
[ "Hi! `IterableDataset.from_generator` expects a generator function, not the object (to be consistent with `Dataset.from_generator`).\r\n\r\nYou can fix the above snippet as follows:\r\n```python\r\ntrain_dataset = IterableDataset.from_generator(line_generator, fn_kwargs={\"files\": model_training_files})\r\n```", ...
NONE
### Describe the bug **Description** Providing a generator in an instantiation of IterableDataset.from_generator() fails with `TypeError: cannot pickle 'generator' object` when the generator argument is supplied with a generator. **Code example** ``` def line_generator(files: List[Path]): if isinstance(f...
1,835,098,484
I_kwDODunzps5tYWF0
6,116
[Docs] The "Process" how-to guide lacks description of `select_columns` function
closed
completed
2023-08-03T13:45:10
2023-08-16T10:02:53
2023-08-16T10:02:53Z
https://github.com/huggingface/datasets/issues/6116
unifyh
[ "enhancement" ]
[]
[ "Great idea, feel free to open a PR! :)" ]
CONTRIBUTOR
### Feature request The [how to process dataset guide](https://huggingface.co/docs/datasets/main/en/process) currently does not mention the [`select_columns`](https://huggingface.co/docs/datasets/main/en/package_reference/main_classes#datasets.Dataset.select_columns) function. It would be nice to include it in the gui...
1,834,015,584
I_kwDODunzps5tUNtg
6,114
Cache not being used when loading commonvoice 8.0.0
closed
completed
2023-08-02T23:18:11
2023-08-18T23:59:00
2023-08-18T23:59:00Z
https://github.com/huggingface/datasets/issues/6114
clabornd
[]
[]
[ "You can avoid this by using the `revision` parameter in `load_dataset` to always force downloading a specific commit (if not specified it defaults to HEAD, hence the redownload).", "Thanks @mariosasko this works well, looks like I should have read the documentation a bit more carefully. \r\n\r\nIt is still a bi...
NONE
### Describe the bug I have commonvoice 8.0.0 downloaded in `~/.cache/huggingface/datasets/mozilla-foundation___common_voice_8_0/en/8.0.0/b2f8b72f8f30b2e98c41ccf855954d9e35a5fa498c43332df198534ff9797a4a`. The folder contains all the arrow files etc, and was used as the cached version last time I touched the ec2 ins...
1,833,854,030
I_kwDODunzps5tTmRO
6,113
load_dataset() fails with streamlit caching inside docker
closed
completed
2023-08-02T20:20:26
2023-08-21T18:18:27
2023-08-21T18:18:27Z
https://github.com/huggingface/datasets/issues/6113
fierval
[]
[]
[ "Hi! This should be fixed in the latest (patch) release (run `pip install -U datasets` to install it). This behavior was due to a bug in our authentication logic." ]
NONE
### Describe the bug When calling `load_dataset` in a streamlit application running within a docker container, get a failure with the error message: EmptyDatasetError: The directory at hf://datasets/fetch-rewards/inc-rings-2000@bea27cf60842b3641eae418f38864a2ec4cde684 doesn't contain any data files Traceback: Fil...
1,833,693,299
I_kwDODunzps5tS_Bz
6,112
yaml error using push_to_hub with generated README.md
closed
completed
2023-08-02T18:21:21
2023-12-12T15:00:44
2023-12-12T15:00:44Z
https://github.com/huggingface/datasets/issues/6112
kevintee
[]
[ "mariosasko" ]
[ "Thanks for reporting! This is a bug in converting the `ArrayXD` types to YAML. It will be fixed soon." ]
NONE
### Describe the bug When I construct a dataset with the following features: ``` features = Features( { "pixel_values": Array3D(dtype="float64", shape=(3, 224, 224)), "input_ids": Sequence(feature=Value(dtype="int64")), "attention_mask": Sequence(Value(dtype="int64")), "token...
1,832,781,654
I_kwDODunzps5tPgdW
6,111
raise FileNotFoundError("Directory {dataset_path} is neither a `Dataset` directory nor a `DatasetDict` directory." )
closed
completed
2023-08-02T09:17:29
2023-08-29T02:00:28
2023-08-29T02:00:28Z
https://github.com/huggingface/datasets/issues/6111
2catycm
[]
[]
[ "any idea?", "This should work: `load_dataset(\"path/to/downloaded_repo\")`\r\n\r\n`load_from_disk` is intended to be used on directories created with `Dataset.save_to_disk` or `DatasetDict.save_to_disk`", "> This should work: `load_dataset(\"path/to/downloaded_repo\")`\r\n> \r\n> `load_from_disk` is intended t...
NONE
### Describe the bug For researchers in some countries or regions, it is usually the case that the download ability of `load_dataset` is disabled due to the complex network environment. People in these regions often prefer to use git clone or other programming tricks to manually download the files to the disk (for exa...
1,831,110,633
I_kwDODunzps5tJIfp
6,110
[BUG] Dataset initialized from in-memory data does not create cache.
closed
completed
2023-08-01T11:58:58
2023-08-17T14:03:01
2023-08-17T14:03:00Z
https://github.com/huggingface/datasets/issues/6110
MattYoon
[]
[]
[ "This is expected behavior. You must provide `cache_file_name` when performing `.map` on an in-memory dataset for the result to be cached." ]
NONE
### Describe the bug `Dataset` initialized from in-memory data (dictionary in my case, haven't tested with other types) does not create cache when processed with the `map` method, unlike `Dataset` initialized by other methods such as `load_dataset`. ### Steps to reproduce the bug ```python # below code was ru...
1,830,753,793
I_kwDODunzps5tHxYB
6,109
Problems in downloading Amazon reviews from HF
closed
not_planned
2023-08-01T08:38:29
2025-07-18T17:47:30
2023-08-02T07:12:07Z
https://github.com/huggingface/datasets/issues/6109
610v4nn1
[]
[ "albertvillanova" ]
[ "Thanks for reporting, @610v4nn1.\r\n\r\nIndeed, the source data files are no longer available. We have contacted the authors of the dataset and they report that Amazon has decided to stop distributing the multilingual reviews dataset.\r\n\r\nWe are adding a notification about this issue to the dataset card.\r\n\r\...
NONE
### Describe the bug I have a script downloading `amazon_reviews_multi`. When the download starts, I get ``` Downloading data files: 0%| | 0/1 [00:00<?, ?it/s] Downloading data: 243B [00:00, 1.43MB/s] Downloading data files: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 1/1 [00:01<00:00, 1.54s/it] Extracting data files: 100%...
1,830,347,187
I_kwDODunzps5tGOGz
6,108
Loading local datasets got strangely stuck
open
2023-08-01T02:28:06
2024-12-31T16:01:00
https://github.com/huggingface/datasets/issues/6108
LoveCatc
[]
[]
[ "Yesterday I waited for more than 12 hours to make sure it was really **stuck** instead of proceeding too slow.", "I've had similar weird issues with `load_dataset` as well. Not multiple files, but dataset is quite big, about 50G.", "We use a generic multiprocessing code, so there is little we can do about this...
NONE
### Describe the bug I try to use `load_dataset()` to load several local `.jsonl` files as a dataset. Every line of these files is a json structure only containing one key `text` (yeah it is a dataset for NLP model). The code snippet is as: ```python ds = load_dataset("json", data_files=LIST_OF_FILE_PATHS, num_proc=...
1,829,131,223
I_kwDODunzps5tBlPX
6,106
load local json_file as dataset
closed
completed
2023-07-31T12:53:49
2023-08-18T01:46:35
2023-08-18T01:46:35Z
https://github.com/huggingface/datasets/issues/6106
CiaoHe
[]
[]
[ "Hi! We use PyArrow to read JSON files, and PyArrow doesn't allow different value types in the same column. #5776 should address this.\r\n\r\nIn the meantime, you can combine `Dataset.from_generator` with the above code to cast the values to the same type. ", "Thanks for your help!" ]
NONE
### Describe the bug I tried to load local json file as dataset but failed to parsing json file because some columns are 'float' type. ### Steps to reproduce the bug 1. load json file with certain columns are 'float' type. For example `data = load_data("json", data_files=JSON_PATH)` 2. Then, the error will be trigg...
1,828,959,107
I_kwDODunzps5tA7OD
6,104
HF Datasets data access is extremely slow even when in memory
open
2023-07-31T11:12:19
2023-08-01T11:22:43
https://github.com/huggingface/datasets/issues/6104
NightMachinery
[]
[]
[ "Possibly related:\r\n- https://github.com/pytorch/pytorch/issues/22462" ]
CONTRIBUTOR
### Describe the bug Doing a simple `some_dataset[:10]` can take more than a minute. Profiling it: <img width="1280" alt="image" src="https://github.com/huggingface/datasets/assets/36224762/e641fb95-ff02-4072-9016-5416a65f75ab"> `some_dataset` is completely in memory with no disk cache. This is proving fat...
1,828,118,930
I_kwDODunzps5s9uGS
6,100
TypeError when loading from GCP bucket
closed
completed
2023-07-30T23:03:00
2023-08-03T10:00:48
2023-08-01T10:38:55Z
https://github.com/huggingface/datasets/issues/6100
bilelomrani1
[]
[ "albertvillanova" ]
[ "Thanks for reporting, @bilelomrani1.\r\n\r\nWe are fixing it. ", "We have fixed it. We are planning to do a patch release today." ]
NONE
### Describe the bug Loading a dataset from a GCP bucket raises a type error. This bug was introduced recently (either in 2.14 or 2.14.1), and appeared during a migration from 2.13.1. ### Steps to reproduce the bug Load any file from a GCP bucket: ```python import datasets datasets.load_dataset("json", data_f...
1,827,893,576
I_kwDODunzps5s83FI
6,099
How do i get "amazon_us_reviews
closed
completed
2023-07-30T11:02:17
2023-08-21T05:08:08
2023-08-10T05:02:35Z
https://github.com/huggingface/datasets/issues/6099
IqraBaluch
[ "enhancement" ]
[]
[ "Seems like the problem isn't with the library, but the dataset itself hosted on AWS S3.\r\n\r\nIts [homepage](https://s3.amazonaws.com/amazon-reviews-pds/readme.html) returns an `AccessDenied` XML response, which is the same thing you get if you try to log the `record` that triggers the exception\r\n\r\n```python\...
NONE
### Feature request I have been trying to load 'amazon_us_dataset" but unable to do so. `amazon_us_reviews = load_dataset('amazon_us_reviews')` `print(amazon_us_reviews)` > [ValueError: Config name is missing. Please pick one among the available configs: ['Wireless_v1_00', 'Watches_v1_00', 'Video_Games_v1...
1,827,054,143
I_kwDODunzps5s5qI_
6,097
Dataset.get_nearest_examples does not return all feature values for the k most similar datapoints - side effect of Dataset.set_format
closed
completed
2023-07-28T20:31:59
2023-07-28T20:49:58
2023-07-28T20:49:58Z
https://github.com/huggingface/datasets/issues/6097
aschoenauer-sebag
[]
[]
[ "Actually, my bad -- specifying\r\n```python\r\nfoo.set_format('numpy', ['vectors'], output_all_columns=True)\r\n```\r\nfixes it." ]
NONE
### Describe the bug Hi team! I observe that there seems to be a side effect of `Dataset.set_format`: after setting a format and creating a FAISS index, the method `get_nearest_examples` from the `Dataset` class, fails to retrieve anything else but the embeddings themselves - not super useful. This is not the case ...
1,825,865,043
I_kwDODunzps5s1H1T
6,090
FilesIterable skips all the files after a hidden file
closed
completed
2023-07-28T07:25:57
2023-07-28T10:51:14
2023-07-28T10:50:11Z
https://github.com/huggingface/datasets/issues/6090
dkrivosic
[]
[]
[ "Thanks for reporting. We've merged a PR with a fix." ]
NONE
### Describe the bug When initializing `FilesIterable` with a list of file paths using `FilesIterable.from_paths`, it will discard all the files after a hidden file. The problem is in [this line](https://github.com/huggingface/datasets/blob/88896a7b28610ace95e444b94f9a4bc332cc1ee3/src/datasets/download/download_manag...
1,825,761,476
I_kwDODunzps5s0ujE
6,089
AssertionError: daemonic processes are not allowed to have children
open
2023-07-28T06:04:00
2023-07-31T02:34:02
https://github.com/huggingface/datasets/issues/6089
codingl2k1
[]
[]
[ "We could add a \"threads\" parallel backend to `datasets.parallel.parallel_backend` to support downloading with threads but note that `download_and_extract` also decompresses archives, and this is a CPU-intensive task, which is not ideal for (Python) threads (good for IO-intensive tasks).", "> We could add a \"t...
NONE
### Describe the bug When I load_dataset with num_proc > 0 in a deamon process, I got an error: ```python File "/Users/codingl2k1/Work/datasets/src/datasets/download/download_manager.py", line 564, in download_and_extract return self.extract(self.download(url_or_urls)) ^^^^^^^^^^^^^^^^^ File "/Users...
1,825,665,235
I_kwDODunzps5s0XDT
6,088
Loading local data files initiates web requests
closed
completed
2023-07-28T04:06:26
2023-07-28T05:02:22
2023-07-28T05:02:22Z
https://github.com/huggingface/datasets/issues/6088
lytning98
[]
[]
[]
NONE
As documented in the [official docs](https://huggingface.co/docs/datasets/v2.14.0/en/package_reference/loading_methods#datasets.load_dataset.example-2), I tried to load datasets from local files by ```python # Load a JSON file from datasets import load_dataset ds = load_dataset('json', data_files='path/to/local/my_...
1,825,133,741
I_kwDODunzps5syVSt
6,087
fsspec dependency is set too low
closed
completed
2023-07-27T20:08:22
2023-07-28T10:07:56
2023-07-28T10:07:03Z
https://github.com/huggingface/datasets/issues/6087
iXce
[]
[]
[ "Thanks for reporting! A PR with a fix has just been merged." ]
NONE
### Describe the bug fsspec.callbacks.TqdmCallback (used in https://github.com/huggingface/datasets/blob/73bed12ecda17d1573fd3bf73ed5db24d3622f86/src/datasets/utils/file_utils.py#L338) was first released in fsspec [2022.3.0](https://github.com/fsspec/filesystem_spec/releases/tag/2022.3.0, commit where it was added: ht...
1,825,009,268
I_kwDODunzps5sx250
6,086
Support `fsspec` in `Dataset.to_<format>` methods
closed
completed
2023-07-27T19:08:37
2024-03-07T07:22:43
2024-03-07T07:22:42Z
https://github.com/huggingface/datasets/issues/6086
mariosasko
[ "enhancement" ]
[ "alvarobartt" ]
[ "Hi @mariosasko unless someone's already working on it, I guess I can tackle it!", "Hi! Sure, feel free to tackle this.", "#self-assign", "I'm assuming this should just cover `to_csv`, `to_parquet`, and `to_json`, right? As `to_list` and `to_dict` just return Python objects, `to_pandas` returns a `pandas.Data...
COLLABORATOR
Supporting this should be fairly easy. Requested on the forum [here](https://discuss.huggingface.co/t/how-can-i-convert-a-loaded-dataset-in-to-a-parquet-file-and-save-it-to-the-s3/48353).
1,824,896,761
I_kwDODunzps5sxbb5
6,084
Changing pixel values of images in the Winoground dataset
open
2023-07-27T17:55:35
2023-07-27T17:55:35
https://github.com/huggingface/datasets/issues/6084
ZitengWangNYU
[]
[]
[]
NONE
Hi, as I followed the instructions, with lasted "datasets" version: " from datasets import load_dataset examples = load_dataset('facebook/winoground', use_auth_token=<YOUR USER ACCESS TOKEN>) " I got slightly different datasets in colab and in my hpc environment. Specifically, the pixel values of images are slight...
1,822,597,471
I_kwDODunzps5soqFf
6,079
Iterating over DataLoader based on HF datasets is stuck forever
closed
completed
2023-07-26T14:52:37
2024-02-07T17:46:52
2023-07-30T14:09:06Z
https://github.com/huggingface/datasets/issues/6079
arindamsarkar93
[]
[]
[ "When the process starts to hang, can you interrupt it with CTRL + C and paste the error stack trace here? ", "Thanks @mariosasko for your prompt response, here's the stack trace:\r\n\r\n```\r\nKeyboardInterrupt Traceback (most recent call last)\r\nCell In[12], line 4\r\n 2 t = time.t...
NONE
### Describe the bug I am using Amazon Sagemaker notebook (Amazon Linux 2) with python 3.10 based Conda environment. I have a dataset in parquet format locally. When I try to iterate over it, the loader is stuck forever. Note that the same code is working for python 3.6 based conda environment seamlessly. What shou...
1,822,501,472
I_kwDODunzps5soSpg
6,078
resume_download with streaming=True
closed
completed
2023-07-26T14:08:22
2023-07-28T11:05:03
2023-07-28T11:05:03Z
https://github.com/huggingface/datasets/issues/6078
NicolasMICAUX
[]
[]
[ "Currently, it's not possible to efficiently resume streaming after an error. Eventually, we plan to support this for Parquet (see https://github.com/huggingface/datasets/issues/5380). ", "Ok thank you for your answer", "I'm closing this as a duplicate of #5380" ]
NONE
### Describe the bug I used: ``` dataset = load_dataset( "oscar-corpus/OSCAR-2201", token=True, language="fr", streaming=True, split="train" ) ``` Unfortunately, the server had a problem during the training process. I saved the step my training stopped at. But how can I resume download f...
1,822,486,810
I_kwDODunzps5soPEa
6,077
Mapping gets stuck at 99%
open
2023-07-26T14:00:40
2024-07-22T12:28:06
https://github.com/huggingface/datasets/issues/6077
Laurent2916
[]
[]
[ "The `MAX_MAP_BATCH_SIZE = 1_000_000_000` hack is bad as it loads the entire dataset into RAM when performing `.map`. Instead, it's best to use `.iter(batch_size)` to iterate over the data batches and compute `mean` for each column. (`stddev` can be computed in another pass).\r\n\r\nAlso, these arrays are big, so i...
CONTRIBUTOR
### Describe the bug Hi ! I'm currently working with a large (~150GB) unnormalized dataset at work. The dataset is available on a read-only filesystem internally, and I use a [loading script](https://huggingface.co/docs/datasets/dataset_script) to retreive it. I want to normalize the features of the dataset, ...
1,822,341,398
I_kwDODunzps5snrkW
6,075
Error loading music files using `load_dataset`
closed
completed
2023-07-26T12:44:05
2023-07-26T13:08:08
2023-07-26T13:08:08Z
https://github.com/huggingface/datasets/issues/6075
susnato
[]
[]
[ "This code behaves as expected on my local machine or in Colab. Which version of `soundfile` do you have installed? MP3 requires `soundfile>=0.12.1`.", "I upgraded the `soundfile` and it's working now! \r\nThanks @mariosasko for the help!" ]
NONE
### Describe the bug I tried to load a music file using `datasets.load_dataset()` from the repository - https://huggingface.co/datasets/susnato/pop2piano_real_music_test I got the following error - ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/susnato/anaconda3/en...
1,822,167,804
I_kwDODunzps5snBL8
6,073
version2.3.2 load_dataset()data_files can't include .xxxx in path
closed
completed
2023-07-26T11:09:31
2023-08-29T15:53:59
2023-08-29T15:53:59Z
https://github.com/huggingface/datasets/issues/6073
BUAAChuanWang
[]
[]
[ "Version 2.3.2 is over one year old, so please use the latest release (2.14.0) to get the expected behavior. Version 2.3.2 does not contain some fixes we made to fix resolving hidden files/directories (starting with a dot)." ]
NONE
### Describe the bug First, I cd workdir. Then, I just use load_dataset("json", data_file={"train":"/a/b/c/.d/train/train.json", "test":"/a/b/c/.d/train/test.json"}) that couldn't work and <FileNotFoundError: Unable to find '/a/b/c/.d/train/train.jsonl' at /a/b/c/.d/> And I debug, it is fine in version2.1.2...
1,821,990,749
I_kwDODunzps5smV9d
6,071
storage_options provided to load_dataset not fully piping through since datasets 2.14.0
closed
completed
2023-07-26T09:37:20
2023-07-27T12:42:58
2023-07-27T12:42:58Z
https://github.com/huggingface/datasets/issues/6071
exs-avianello
[]
[]
[ "Hi ! Thanks for reporting, I opened a PR to fix this\r\n\r\nWhat filesystem are you using ?", "Hi @lhoestq ! Thank you so much πŸ™Œ \r\n\r\nIt's a bit of a custom setup, but in practice I am using a [pyarrow.fs.S3FileSystem](https://arrow.apache.org/docs/python/generated/pyarrow.fs.S3FileSystem.html) (wrapped in a...
NONE
### Describe the bug Since the latest release of `datasets` (`2.14.0`), custom filesystem `storage_options` passed to `load_dataset()` do not seem to propagate through all the way - leading to problems if loading data files that need those options to be set. I think this is because of the new `_prepare_path_and_sto...
1,820,831,535
I_kwDODunzps5sh68v
6,069
KeyError: dataset has no key "image"
closed
completed
2023-07-25T17:45:50
2024-09-06T08:16:16
2023-07-27T12:42:17Z
https://github.com/huggingface/datasets/issues/6069
etetteh
[]
[]
[ "You can list the dataset's columns with `ds.column_names` before `.map` to check whether the dataset has an `image` column. If it doesn't, then this is a bug. Otherwise, please paste the line with the `.map` call.\r\n\r\n\r\n", "This is the piece of code I am running:\r\n```\r\ndata_transforms = utils.get_data_a...
NONE
### Describe the bug I've loaded a local image dataset with: `ds = laod_dataset("imagefolder", data_dir=path-to-data)` And defined a transform to process the data, following the Datasets docs. However, I get a keyError error, indicating there's no "image" key in my dataset. When I printed out the example_batch ...
1,819,717,542
I_kwDODunzps5sdq-m
6,066
AttributeError: '_tqdm_cls' object has no attribute '_lock'
closed
completed
2023-07-25T07:24:36
2023-07-26T10:56:25
2023-07-26T10:56:24Z
https://github.com/huggingface/datasets/issues/6066
codingl2k1
[]
[]
[ "Hi ! I opened https://github.com/huggingface/datasets/pull/6067 to add the missing `_lock`\r\n\r\nWe'll do a patch release soon, but feel free to install `datasets` from source in the meantime", "I have tested the latest main, it does not work.\r\n\r\nI add more logs to reproduce this issue, it looks like a mult...
NONE
### Describe the bug ```python File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/site-packages/datasets/load.py", line 1034, in get_module data_files = DataFilesDict.from_patterns( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/codingl2k1/.pyenv/versions/3.11.4/lib/python3.11/site-p...
1,816,614,120
I_kwDODunzps5sR1To
6,060
Dataset.map() execute twice when in PyTorch DDP mode
closed
completed
2023-07-22T05:06:43
2024-01-22T18:35:12
2024-01-22T18:35:12Z
https://github.com/huggingface/datasets/issues/6060
wanghaoyucn
[]
[]
[ "Sorry for asking a duplicate question about `num_proc`, I searched the forum and find the solution.\r\n\r\nBut I still can't make the trick with `torch.distributed.barrier()` to only map at the main process work. The [post on forum]( https://discuss.huggingface.co/t/slow-processing-with-map-when-using-deepspeed-or...
NONE
### Describe the bug I use `torchrun --standalone --nproc_per_node=2 train.py` to start training. And write the code following the [docs](https://huggingface.co/docs/datasets/process#distributed-usage). The trick about using `torch.distributed.barrier()` to only execute map at the main process doesn't always work. W...
1,816,537,176
I_kwDODunzps5sRihY
6,059
Provide ability to load label mappings from file
open
2023-07-22T02:04:19
2024-04-16T08:07:55
https://github.com/huggingface/datasets/issues/6059
david-waterworth
[ "enhancement" ]
[]
[ "I would like this also as I have been working with a dataset with hierarchical classes. In fact, I encountered this very issue when trying to define the dataset with a script. I couldn't find a work around and reverted to hard coding the class names in the readme yaml.\r\n\r\n@david-waterworth do you envision also...
NONE
### Feature request My task is classification of a dataset containing a large label set that includes a hierarchy. Even ignoring the hierarchy I'm not able to find an example using `datasets` where the label names aren't hard-coded. This works find for classification of a handful of labels but ideally there would be...
1,815,131,397
I_kwDODunzps5sMLUF
6,058
laion-coco download error
closed
completed
2023-07-21T04:24:15
2023-07-22T01:42:06
2023-07-22T01:42:06Z
https://github.com/huggingface/datasets/issues/6058
yangyijune
[]
[]
[ "This can also mean one of the files was not downloaded correctly.\r\n\r\nWe log an erroneous file's name before raising the reader's error, so this is how you can find the problematic file. Then, you should delete it and call `load_dataset` again.\r\n\r\n(I checked all the uploaded files, and they seem to be valid...
NONE
### Describe the bug The full trace: ``` /home/bian/anaconda3/envs/sd/lib/python3.10/site-packages/datasets/load.py:1744: FutureWarning: 'ignore_verifications' was de precated in favor of 'verification_mode' in version 2.9.1 and will be removed in 3.0.0. You can remove this warning by passing 'verification_mode=no...
1,815,100,151
I_kwDODunzps5sMDr3
6,057
Why is the speed difference of gen example so big?
closed
completed
2023-07-21T03:34:49
2023-10-04T18:06:16
2023-10-04T18:06:15Z
https://github.com/huggingface/datasets/issues/6057
pixeli99
[]
[]
[ "Hi!\r\n\r\nIt's hard to explain this behavior without more information. Can you profile the slower version with the following code\r\n```python\r\nimport cProfile, pstats\r\nfrom datasets import load_dataset\r\n\r\nwith cProfile.Profile() as profiler:\r\n ds = load_dataset(...)\r\n\r\nstats = pstats.Stats(profi...
NONE
```python def _generate_examples(self, metadata_path, images_dir, conditioning_images_dir): with open(metadata_path, 'r') as file: metadata = json.load(file) for idx, item in enumerate(metadata): image_path = item.get('image_path') text_content = item.get('tex...
1,813,524,145
I_kwDODunzps5sGC6x
6,055
Fix host URL in The Pile datasets
open
2023-07-20T09:08:52
2023-07-20T09:09:37
https://github.com/huggingface/datasets/issues/6055
nickovchinnikov
[]
[]
[]
NONE
### Describe the bug In #3627 and #5543, you tried to fix the host URL in The Pile datasets. But both URLs are not working now: `HTTPError: 404 Client Error: Not Found for URL: https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst` And `ConnectTimeout: HTTPSCo...
1,813,271,304
I_kwDODunzps5sFFMI
6,054
Multi-processed `Dataset.map` slows down a lot when `import torch`
closed
completed
2023-07-20T06:36:14
2023-07-21T15:19:37
2023-07-21T15:19:37Z
https://github.com/huggingface/datasets/issues/6054
ShinoharaHare
[ "duplicate" ]
[]
[ "A duplicate of https://github.com/huggingface/datasets/issues/5929" ]
NONE
### Describe the bug When using `Dataset.map` with `num_proc > 1`, the speed slows down much if I add `import torch` to the start of the script even though I don't use it. I'm not sure if it's `torch` only or if any other package that is "large" will also cause the same result. BTW, `import lightning` also slows i...
1,812,635,902
I_kwDODunzps5sCqD-
6,053
Change package name from "datasets" to something less generic
closed
not_planned
2023-07-19T19:53:28
2024-11-20T21:22:36
2023-10-03T16:04:09Z
https://github.com/huggingface/datasets/issues/6053
jack-jjm
[ "enhancement" ]
[]
[ "This would break a lot of existing code, so we can't really do this.", "I encountered this issue while working on a large project with 6+ years history. We have a submodule named datasets in the backend, and face a big challenge incorporating huggingface datasets into the project, especially considering django a...
NONE
### Feature request I'm repeatedly finding myself in situations where I want to have a package called `datasets.py` or `evaluate.py` in my code and can't because those names are being taken up by Huggingface packages. While I can understand how (even from the user's perspective) it's aesthetically pleasing to have n...
1,811,549,650
I_kwDODunzps5r-g3S
6,051
Skipping shard in the remote repo and resume upload
closed
completed
2023-07-19T09:25:26
2023-07-20T18:16:01
2023-07-20T18:16:00Z
https://github.com/huggingface/datasets/issues/6051
rs9000
[]
[]
[ "Hi! `_select_contiguous` fetches a (zero-copy) slice of the dataset's Arrow table to build a shard, so I don't think this part is the problem. To me, the issue seems to be the step where we embed external image files' bytes (a lot of file reads). You can use `.map` with multiprocessing to perform this step before ...
NONE
### Describe the bug For some reason when I try to resume the upload of my dataset, it is very slow to reach the index of the shard from which to resume the uploading. From my understanding, the problem is in this part of the code: arrow_dataset.py ```python for index, shard in logging.tqdm( enume...
1,809,629,346
I_kwDODunzps5r3MCi
6,048
when i use datasets.load_dataset, i encounter the http connect error!
closed
completed
2023-07-18T10:16:34
2023-07-18T16:18:39
2023-07-18T16:18:39Z
https://github.com/huggingface/datasets/issues/6048
yangy1992
[]
[]
[ "The `audiofolder` loader is not available in version `2.3.2`, hence the error. Please run the `pip install -U datasets` command to update the `datasets` installation to make `load_dataset(\"audiofolder\", ...)` work." ]
NONE
### Describe the bug `common_voice_test = load_dataset("audiofolder", data_dir="./dataset/",cache_dir="./cache",split=datasets.Split.TEST)` when i run the code above, i got the error as below: -------------------------------------------- ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/...
1,808,154,414
I_kwDODunzps5rxj8u
6,046
Support proxy and user-agent in fsspec calls
open
2023-07-17T16:39:26
2025-06-26T18:26:27
https://github.com/huggingface/datasets/issues/6046
lhoestq
[ "enhancement", "good second issue" ]
[ "zutarich" ]
[ "hii @lhoestq can you assign this issue to me?\r\n", "You can reply \"#self-assign\" to this issue to automatically get assigned to it :)\r\nLet me know if you have any questions or if I can help", "#2289 ", "Actually i am quite new to figure it out how everything goes and done \r\n\r\n> You can reply \"#self...
MEMBER
Since we switched to the new HfFileSystem we no longer apply user's proxy and user-agent. Using the HTTP_PROXY and HTTPS_PROXY environment variables works though since we use aiohttp to call the HF Hub. This can be implemented in `_prepare_single_hop_path_and_storage_options`. Though ideally the `HfFileSystem`...