number
int64
2
7.91k
title
stringlengths
1
290
body
stringlengths
0
228k
state
stringclasses
2 values
created_at
timestamp[s]date
2020-04-14 18:18:51
2025-12-16 10:45:02
updated_at
timestamp[s]date
2020-04-29 09:23:05
2025-12-16 19:34:46
closed_at
timestamp[s]date
2020-04-29 09:23:05
2025-12-16 14:20:48
url
stringlengths
48
51
author
stringlengths
3
26
comments_count
int64
0
70
labels
listlengths
0
4
6,106
load local json_file as dataset
### 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...
CLOSED
2023-07-31T12:53:49
2023-08-18T01:46:35
2023-08-18T01:46:35
https://github.com/huggingface/datasets/issues/6106
CiaoHe
2
[]
6,104
HF Datasets data access is extremely slow even when in memory
### 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...
OPEN
2023-07-31T11:12:19
2023-08-01T11:22:43
null
https://github.com/huggingface/datasets/issues/6104
NightMachinery
1
[]
6,100
TypeError when loading from GCP bucket
### 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...
CLOSED
2023-07-30T23:03:00
2023-08-03T10:00:48
2023-08-01T10:38:55
https://github.com/huggingface/datasets/issues/6100
bilelomrani1
2
[]
6,099
How do i get "amazon_us_reviews
### 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...
CLOSED
2023-07-30T11:02:17
2023-08-21T05:08:08
2023-08-10T05:02:35
https://github.com/huggingface/datasets/issues/6099
IqraBaluch
10
[ "enhancement" ]
6,097
Dataset.get_nearest_examples does not return all feature values for the k most similar datapoints - side effect of Dataset.set_format
### 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 ...
CLOSED
2023-07-28T20:31:59
2023-07-28T20:49:58
2023-07-28T20:49:58
https://github.com/huggingface/datasets/issues/6097
aschoenauer-sebag
1
[]
6,090
FilesIterable skips all the files after a hidden file
### 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...
CLOSED
2023-07-28T07:25:57
2023-07-28T10:51:14
2023-07-28T10:50:11
https://github.com/huggingface/datasets/issues/6090
dkrivosic
1
[]
6,089
AssertionError: daemonic processes are not allowed to have children
### 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...
OPEN
2023-07-28T06:04:00
2023-07-31T02:34:02
null
https://github.com/huggingface/datasets/issues/6089
codingl2k1
2
[]
6,088
Loading local data files initiates web requests
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_...
CLOSED
2023-07-28T04:06:26
2023-07-28T05:02:22
2023-07-28T05:02:22
https://github.com/huggingface/datasets/issues/6088
lytning98
0
[]
6,087
fsspec dependency is set too low
### 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...
CLOSED
2023-07-27T20:08:22
2023-07-28T10:07:56
2023-07-28T10:07:03
https://github.com/huggingface/datasets/issues/6087
iXce
1
[]
6,086
Support `fsspec` in `Dataset.to_<format>` methods
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).
CLOSED
2023-07-27T19:08:37
2024-03-07T07:22:43
2024-03-07T07:22:42
https://github.com/huggingface/datasets/issues/6086
mariosasko
5
[ "enhancement" ]
6,084
Changing pixel values of images in the Winoground dataset
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...
OPEN
2023-07-27T17:55:35
2023-07-27T17:55:35
null
https://github.com/huggingface/datasets/issues/6084
ZitengWangNYU
0
[]
6,079
Iterating over DataLoader based on HF datasets is stuck forever
### 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...
CLOSED
2023-07-26T14:52:37
2024-02-07T17:46:52
2023-07-30T14:09:06
https://github.com/huggingface/datasets/issues/6079
arindamsarkar93
15
[]
6,078
resume_download with streaming=True
### 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...
CLOSED
2023-07-26T14:08:22
2023-07-28T11:05:03
2023-07-28T11:05:03
https://github.com/huggingface/datasets/issues/6078
NicolasMICAUX
3
[]
6,077
Mapping gets stuck at 99%
### 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, ...
OPEN
2023-07-26T14:00:40
2024-07-22T12:28:06
null
https://github.com/huggingface/datasets/issues/6077
Laurent2916
6
[]
6,075
Error loading music files using `load_dataset`
### 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...
CLOSED
2023-07-26T12:44:05
2023-07-26T13:08:08
2023-07-26T13:08:08
https://github.com/huggingface/datasets/issues/6075
susnato
2
[]
6,073
version2.3.2 load_dataset()data_files can't include .xxxx in path
### 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...
CLOSED
2023-07-26T11:09:31
2023-08-29T15:53:59
2023-08-29T15:53:59
https://github.com/huggingface/datasets/issues/6073
BUAAChuanWang
1
[]
6,071
storage_options provided to load_dataset not fully piping through since datasets 2.14.0
### 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...
CLOSED
2023-07-26T09:37:20
2023-07-27T12:42:58
2023-07-27T12:42:58
https://github.com/huggingface/datasets/issues/6071
exs-avianello
2
[]
6,069
KeyError: dataset has no key "image"
### 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 ...
CLOSED
2023-07-25T17:45:50
2024-09-06T08:16:16
2023-07-27T12:42:17
https://github.com/huggingface/datasets/issues/6069
etetteh
7
[]
6,066
AttributeError: '_tqdm_cls' object has no attribute '_lock'
### 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...
CLOSED
2023-07-25T07:24:36
2023-07-26T10:56:25
2023-07-26T10:56:24
https://github.com/huggingface/datasets/issues/6066
codingl2k1
7
[]
6,060
Dataset.map() execute twice when in PyTorch DDP mode
### 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...
CLOSED
2023-07-22T05:06:43
2024-01-22T18:35:12
2024-01-22T18:35:12
https://github.com/huggingface/datasets/issues/6060
wanghaoyucn
4
[]
6,059
Provide ability to load label mappings from file
### 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...
OPEN
2023-07-22T02:04:19
2024-04-16T08:07:55
null
https://github.com/huggingface/datasets/issues/6059
david-waterworth
3
[ "enhancement" ]
6,058
laion-coco download error
### 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...
CLOSED
2023-07-21T04:24:15
2023-07-22T01:42:06
2023-07-22T01:42:06
https://github.com/huggingface/datasets/issues/6058
yangyijune
1
[]
6,057
Why is the speed difference of gen example so big?
```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...
CLOSED
2023-07-21T03:34:49
2023-10-04T18:06:16
2023-10-04T18:06:15
https://github.com/huggingface/datasets/issues/6057
pixeli99
1
[]
6,055
Fix host URL in The Pile datasets
### 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...
OPEN
2023-07-20T09:08:52
2023-07-20T09:09:37
null
https://github.com/huggingface/datasets/issues/6055
nickovchinnikov
0
[]
6,054
Multi-processed `Dataset.map` slows down a lot when `import torch`
### 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...
CLOSED
2023-07-20T06:36:14
2023-07-21T15:19:37
2023-07-21T15:19:37
https://github.com/huggingface/datasets/issues/6054
ShinoharaHare
1
[ "duplicate" ]
6,053
Change package name from "datasets" to something less generic
### 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...
CLOSED
2023-07-19T19:53:28
2024-11-20T21:22:36
2023-10-03T16:04:09
https://github.com/huggingface/datasets/issues/6053
jack-jjm
2
[ "enhancement" ]
6,051
Skipping shard in the remote repo and resume upload
### 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...
CLOSED
2023-07-19T09:25:26
2023-07-20T18:16:01
2023-07-20T18:16:00
https://github.com/huggingface/datasets/issues/6051
rs9000
2
[]
6,048
when i use datasets.load_dataset, i encounter the http connect error!
### 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/...
CLOSED
2023-07-18T10:16:34
2023-07-18T16:18:39
2023-07-18T16:18:39
https://github.com/huggingface/datasets/issues/6048
yangy1992
1
[]
6,046
Support proxy and user-agent in fsspec calls
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`...
OPEN
2023-07-17T16:39:26
2025-06-26T18:26:27
null
https://github.com/huggingface/datasets/issues/6046
lhoestq
10
[ "enhancement", "good second issue" ]
6,043
Compression kwargs have no effect when saving datasets as csv
### Describe the bug Attempting to save a dataset as a compressed csv file, the compression kwargs provided to `.to_csv()` that get piped to panda's `pandas.DataFrame.to_csv` do not have any effect - resulting in the dataset not getting compressed. A warning is raised if explicitly providing a `compression` kwarg, ...
OPEN
2023-07-17T13:19:21
2023-07-22T17:34:18
null
https://github.com/huggingface/datasets/issues/6043
exs-avianello
3
[]
6,039
Loading column subset from parquet file produces error since version 2.13
### Describe the bug `load_dataset` allows loading a subset of columns from a parquet file with the `columns` argument. Since version 2.13, this produces the following error: ``` Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/datasets/builder.py", line 1879, in ...
CLOSED
2023-07-16T09:13:07
2023-07-24T14:35:04
2023-07-24T14:35:04
https://github.com/huggingface/datasets/issues/6039
kklemon
0
[]
6,038
File "/home/zhizhou/anaconda3/envs/pytorch/lib/python3.10/site-packages/datasets/builder.py", line 992, in _download_and_prepare if str(split_generator.split_info.name).lower() == "all": AttributeError: 'str' object has no attribute 'split_info'. Did you mean: 'splitlines'?
Hi, I use the code below to load local file ``` def _split_generators(self, dl_manager): # TODO: This method is tasked with downloading/extracting the data and defining the splits depending on the configuration # If several configurations are possible (listed in BUILDER_CONFIGS), the configurati...
CLOSED
2023-07-15T07:58:08
2023-07-24T11:54:15
2023-07-24T11:54:15
https://github.com/huggingface/datasets/issues/6038
BaiMeiyingxue
1
[]
6,037
Documentation links to examples are broken
### Describe the bug The links at the bottom of [add_dataset](https://huggingface.co/docs/datasets/v1.2.1/add_dataset.html) to examples of specific datasets are all broken, for example - text classification: [ag_news](https://github.com/huggingface/datasets/blob/master/datasets/ag_news/ag_news.py) (original data ...
CLOSED
2023-07-15T04:54:50
2023-07-17T22:35:14
2023-07-17T15:10:32
https://github.com/huggingface/datasets/issues/6037
david-waterworth
2
[]
6,034
load_dataset hangs on WSL
### Describe the bug load_dataset simply hangs. It happens once every ~5 times, and interestingly hangs for a multiple of 5 minutes (hangs for 5/10/15 minutes). Using the profiler in PyCharm shows that it spends the time at <method 'connect' of '_socket.socket' objects>. However, a local cache is available so I am not...
CLOSED
2023-07-14T09:03:10
2023-07-14T14:48:29
2023-07-14T14:48:29
https://github.com/huggingface/datasets/issues/6034
Andy-Zhou2
3
[]
6,033
`map` function doesn't fully utilize `input_columns`.
### Describe the bug I wanted to select only some columns of data. And I thought that's why the argument `input_columns` exists. What I expected is like this: If there are ["a", "b", "c", "d"] columns, and if I set `input_columns=["a", "d"]`, the data will have only ["a", "d"] columns. But it doesn't select co...
CLOSED
2023-07-14T08:49:28
2023-07-14T09:16:04
2023-07-14T09:16:04
https://github.com/huggingface/datasets/issues/6033
kwonmha
0
[]
6,032
DownloadConfig.proxies not work when load_dataset_builder calling HfApi.dataset_info
### Describe the bug ```python download_config = DownloadConfig(proxies={'https': '<my proxy>'}) builder = load_dataset_builder(..., download_config=download_config) ``` But, when getting the dataset_info from HfApi, the http requests not using the proxies. ### Steps to reproduce the bug 1. Setup proxies i...
OPEN
2023-07-14T07:22:55
2023-09-11T13:50:41
null
https://github.com/huggingface/datasets/issues/6032
codingl2k1
5
[]
6,031
Argument type for map function changes when using `input_columns` for `IterableDataset`
### Describe the bug I wrote `tokenize(examples)` function as an argument for `map` function for `IterableDataset`. It process dictionary type `examples` as a parameter. It is used in `train_dataset = train_dataset.map(tokenize, batched=True)` No error is raised. And then, I found some unnecessary keys and val...
CLOSED
2023-07-14T05:11:14
2023-07-14T14:44:15
2023-07-14T14:44:15
https://github.com/huggingface/datasets/issues/6031
kwonmha
1
[]
6,025
Using a dataset for a use other than it was intended for.
### Describe the bug Hi, I want to use the rotten tomatoes dataset but for a task other than classification, but when I interleave the dataset, it throws ```'ValueError: Column label is not present in features.'```. It seems that the label_col must be there in the dataset for some reason? Here is the full stacktra...
CLOSED
2023-07-12T22:33:17
2023-07-13T13:57:36
2023-07-13T13:57:36
https://github.com/huggingface/datasets/issues/6025
surya-narayanan
1
[]
6,022
Batch map raises TypeError: '>=' not supported between instances of 'NoneType' and 'int'
### Describe the bug When mapping some datasets with `batched=True`, datasets may raise an exeception: ```python Traceback (most recent call last): File "/Users/codingl2k1/Work/datasets/venv/lib/python3.11/site-packages/multiprocess/pool.py", line 125, in worker result = (True, func(*args, **kwds)) ...
CLOSED
2023-07-12T03:20:17
2023-07-12T16:18:06
2023-07-12T16:18:05
https://github.com/huggingface/datasets/issues/6022
codingl2k1
1
[]
6,020
Inconsistent "The features can't be aligned" error when combining map, multiprocessing, and variable length outputs
### Describe the bug I'm using a dataset with map and multiprocessing to run a function that returned a variable length list of outputs. This output list may be empty. Normally this is handled fine, but there is an edge case that crops up when using multiprocessing. In some cases, an empty list result ends up in a dat...
OPEN
2023-07-11T20:40:38
2024-10-27T06:30:13
null
https://github.com/huggingface/datasets/issues/6020
kheyer
4
[]
6,017
Switch to huggingface_hub's HfFileSystem
instead of the current datasets.filesystems.hffilesystem.HfFileSystem which can be slow in some cases related to https://github.com/huggingface/datasets/issues/5846 and https://github.com/huggingface/datasets/pull/5919
CLOSED
2023-07-11T16:24:40
2023-07-17T17:01:01
2023-07-17T17:01:01
https://github.com/huggingface/datasets/issues/6017
lhoestq
0
[ "enhancement" ]
6,014
Request to Share/Update Dataset Viewer Code
Overview: The repository (huggingface/datasets-viewer) was recently archived and when I tried to run the code, there was the error message "AttributeError: module 'datasets.load' has no attribute 'prepare_module'". I could not resolve the issue myself due to lack of documentation of that attribute. Request: I k...
CLOSED
2023-07-11T06:36:09
2024-07-20T07:29:08
2023-09-25T12:01:17
https://github.com/huggingface/datasets/issues/6014
lilyorlilypad
10
[ "duplicate" ]
6,013
[FR] `map` should reuse unchanged columns from the previous dataset to avoid disk usage
### Feature request Currently adding a new column with `map` will cause all the data in the dataset to be duplicated and stored/cached on the disk again. It should reuse unchanged columns. ### Motivation This allows having datasets with different columns but sharing some basic columns. Currently, these datasets wou...
OPEN
2023-07-10T06:42:20
2025-06-19T06:30:38
null
https://github.com/huggingface/datasets/issues/6013
NightMachinery
2
[ "enhancement", "good second issue" ]
6,012
[FR] Transform Chaining, Lazy Mapping
### Feature request Currently using a `map` call processes and duplicates the whole dataset, which takes both time and disk space. The solution is to allow lazy mapping, which is essentially a saved chain of transforms that are applied on the fly whenever a slice of the dataset is requested. The API should look ...
OPEN
2023-07-09T21:40:21
2025-01-20T14:06:28
null
https://github.com/huggingface/datasets/issues/6012
NightMachinery
9
[ "enhancement" ]
6,011
Documentation: wiki_dpr Dataset has no metric_type for Faiss Index
### Describe the bug After loading `wiki_dpr` using: ```py ds = load_dataset(path='wiki_dpr', name='psgs_w100.multiset.compressed', split='train') print(ds.get_index("embeddings").metric_type) # prints nothing because the value is None ``` the index does not have a defined `metric_type`. This is an issue because ...
CLOSED
2023-07-09T08:30:19
2023-07-11T03:02:36
2023-07-11T03:02:36
https://github.com/huggingface/datasets/issues/6011
YichiRockyZhang
2
[]
6,010
Improve `Dataset`'s string representation
Currently, `Dataset.__repr__` outputs a dataset's column names and the number of rows. We could improve it by printing its features and the first few rows. We should also implement `_repr_html_` to have a rich HTML representation in notebooks/Streamlit.
OPEN
2023-07-07T16:38:03
2023-09-01T03:45:07
null
https://github.com/huggingface/datasets/issues/6010
mariosasko
3
[ "enhancement" ]
6,008
Dataset.from_generator consistently freezes at ~1000 rows
### Describe the bug Whenever I try to create a dataset which contains images using `Dataset.from_generator`, it freezes around 996 rows. I suppose it has something to do with memory consumption, but there's more memory available. I Somehow it worked a few times but mostly this makes the datasets library much more ...
CLOSED
2023-07-05T16:06:48
2023-07-10T13:46:39
2023-07-10T13:46:39
https://github.com/huggingface/datasets/issues/6008
andreemic
3
[]
6,007
Get an error "OverflowError: Python int too large to convert to C long" when loading a large dataset
### Describe the bug When load a large dataset with the following code ```python from datasets import load_dataset dataset = load_dataset("liwu/MNBVC", 'news_peoples_daily', split='train') ``` We encountered the error: "OverflowError: Python int too large to convert to C long" The error look something like...
OPEN
2023-07-05T15:16:50
2024-02-07T22:22:35
null
https://github.com/huggingface/datasets/issues/6007
silverriver
8
[ "arrow" ]
6,006
NotADirectoryError when loading gigawords
### Describe the bug got `NotADirectoryError` whtn loading gigawords dataset ### Steps to reproduce the bug When running ``` import datasets datasets.load_dataset('gigaword') ``` Got the following exception: ```bash Traceback (most recent call last): ...
CLOSED
2023-07-05T06:23:41
2023-07-05T06:31:02
2023-07-05T06:31:01
https://github.com/huggingface/datasets/issues/6006
xipq
1
[]
6,003
interleave_datasets & DataCollatorForLanguageModeling having a conflict ?
### Describe the bug Hi everyone :) I have two local & custom datasets (1 "sentence" per line) which I split along the 95/5 lines for pre-training a Bert model. I use a modified version of `run_mlm.py` in order to be able to make use of `interleave_dataset`: - `tokenize()` runs fine - `group_text()` runs fine ...
OPEN
2023-07-03T17:15:31
2023-07-03T17:15:31
null
https://github.com/huggingface/datasets/issues/6003
PonteIneptique
0
[]
5,999
Getting a 409 error while loading xglue dataset
### Describe the bug Unable to load xglue dataset ### Steps to reproduce the bug ```python import datasets dataset = datasets.load_dataset("xglue", "ntg") ``` > ConnectionError: Couldn't reach https://xglue.blob.core.windows.net/xglue/xglue_full_dataset.tar.gz (error 409) ### Expected behavior Expected the...
CLOSED
2023-06-30T04:13:54
2023-06-30T05:57:23
2023-06-30T05:57:22
https://github.com/huggingface/datasets/issues/5999
Praful932
1
[]
5,998
The current implementation has a potential bug in the sort method
### Describe the bug In the sort method,here's a piece of code ```python # column_names: Union[str, Sequence_[str]] # Check proper format of and for duplicates in column_names if not isinstance(column_names, list): column_names = [column_names] ``` I get an error when I pass in a tuple based on the ...
CLOSED
2023-06-30T03:16:57
2023-06-30T14:21:03
2023-06-30T14:11:25
https://github.com/huggingface/datasets/issues/5998
wangyuxinwhy
1
[]
5,997
extend the map function so it can wrap around long text that does not fit in the context window
### Feature request I understand `dataset` provides a [`map`](https://github.com/huggingface/datasets/blob/main/src/datasets/arrow_dataset.py#L2849) function. This function in turn takes in a callable that is used to tokenize the text on which a model is trained. Frequently this text will not fit within a models's con...
OPEN
2023-06-29T22:15:21
2023-07-03T17:58:52
null
https://github.com/huggingface/datasets/issues/5997
siddhsql
2
[ "enhancement" ]
5,993
ValueError: Table schema does not match schema used to create file
### Describe the bug Saving a dataset as parquet fails with a `ValueError: Table schema does not match schema used to create file` if the dataset was obtained out of a `.select_columns()` call with columns selected out of order. ### Steps to reproduce the bug ```python import datasets dataset = datasets.Dataset...
CLOSED
2023-06-27T10:54:07
2023-06-27T15:36:42
2023-06-27T15:32:44
https://github.com/huggingface/datasets/issues/5993
exs-avianello
2
[]
5,991
`map` with any joblib backend
We recently enabled the (experimental) parallel backend switch for data download and extraction but not for `map` yet. Right now we're using our `iflatmap_unordered` implementation for multiprocessing that uses a shared Queue to gather progress updates from the subprocesses and show a progress bar in the main proces...
OPEN
2023-06-26T10:33:42
2025-09-04T10:43:06
null
https://github.com/huggingface/datasets/issues/5991
lhoestq
2
[ "enhancement" ]
5,989
Set a rule on the config and split names
> should we actually allow characters like spaces? maybe it's better to add validation for whitespace symbols and directly in datasets and raise https://github.com/huggingface/datasets-server/issues/853
OPEN
2023-06-26T07:34:14
2023-07-19T14:22:54
null
https://github.com/huggingface/datasets/issues/5989
severo
3
[]
5,988
ConnectionError: Couldn't reach dataset_infos.json
### Describe the bug I'm trying to load codeparrot/codeparrot-clean-train, but get the following error: ConnectionError: Couldn't reach https://huggingface.co/datasets/codeparrot/codeparrot-clean-train/resolve/main/dataset_infos.json (ConnectionError(ProtocolError('Connection aborted.', ConnectionResetError(104, 'C...
CLOSED
2023-06-25T12:39:31
2023-07-07T13:20:57
2023-07-07T13:20:57
https://github.com/huggingface/datasets/issues/5988
yulingao
1
[]
5,987
Why max_shard_size is not supported in load_dataset and passed to download_and_prepare
### Describe the bug https://github.com/huggingface/datasets/blob/a8a797cc92e860c8d0df71e0aa826f4d2690713e/src/datasets/load.py#L1809 What I can to is break the `load_dataset` and use `load_datset_builder` + `download_and_prepare` instead. ### Steps to reproduce the bug https://github.com/huggingface/datasets/blo...
CLOSED
2023-06-25T04:19:13
2023-06-29T16:06:08
2023-06-29T16:06:08
https://github.com/huggingface/datasets/issues/5987
npuichigo
5
[]
5,985
Cannot reuse tokenizer object for dataset map
### Describe the bug Related to https://github.com/huggingface/transformers/issues/24441. Not sure if this is a tokenizer issue or caching issue, so filing in both. Passing the tokenizer to the dataset map function causes the tokenizer to be fingerprinted weirdly. After calling the tokenizer with arguments like pad...
CLOSED
2023-06-23T14:45:31
2023-07-21T14:09:14
2023-07-21T14:09:14
https://github.com/huggingface/datasets/issues/5985
vikigenius
2
[ "duplicate" ]
5,984
AutoSharding IterableDataset's when num_workers > 1
### Feature request Minimal Example ``` import torch from datasets import IterableDataset d = IterableDataset.from_file(<file_name>) dl = torch.utils.data.dataloader.DataLoader(d,num_workers=3) for sample in dl: print(sample) ``` Warning: Too many dataloader workers: 2 (max is dataset.n_shard...
OPEN
2023-06-23T14:34:20
2024-03-22T15:01:14
null
https://github.com/huggingface/datasets/issues/5984
mathephysicist
8
[ "enhancement" ]
5,982
404 on Datasets Documentation Page
### Describe the bug Getting a 404 from the Hugging Face Datasets docs page: https://huggingface.co/docs/datasets/index ### Steps to reproduce the bug 1. Go to URL https://huggingface.co/docs/datasets/index 2. Notice 404 not found ### Expected behavior URL should either show docs or redirect to new location #...
CLOSED
2023-06-22T20:14:57
2023-06-26T15:45:03
2023-06-26T15:45:03
https://github.com/huggingface/datasets/issues/5982
kmulka-bloomberg
2
[]
5,981
Only two cores are getting used in sagemaker with pytorch 3.10 kernel
### Describe the bug When using the newer pytorch 3.10 kernel, only 2 cores are being used by huggingface filter and map functions. The Pytorch 3.9 kernel would use as many cores as specified in the num_proc field. We have solved this in our own code by placing the following snippet in the code that is called insi...
CLOSED
2023-06-22T19:57:31
2023-10-30T06:17:40
2023-07-24T11:54:52
https://github.com/huggingface/datasets/issues/5981
mmr-crexi
4
[]
5,980
Viewing dataset card returns “502 Bad Gateway”
The url is: https://huggingface.co/datasets/Confirm-Labs/pile_ngrams_trigrams I am able to successfully view the “Files and versions” tab: [Confirm-Labs/pile_ngrams_trigrams at main](https://huggingface.co/datasets/Confirm-Labs/pile_ngrams_trigrams/tree/main) Any help would be appreciated! Thanks! I hope this is ...
CLOSED
2023-06-22T19:14:48
2023-06-27T08:38:19
2023-06-26T14:42:45
https://github.com/huggingface/datasets/issues/5980
tbenthompson
3
[]
5,975
Streaming Dataset behind Proxy - FileNotFoundError
### Describe the bug When trying to stream a dataset i get the following error after a few minutes of waiting. ``` FileNotFoundError: https://huggingface.co/datasets/facebook/voxpopuli/resolve/main/data/n_files.json If the repo is private or gated, make sure to log in with `huggingface-cli login`. ``` I hav...
CLOSED
2023-06-21T19:10:02
2023-06-30T05:55:39
2023-06-30T05:55:38
https://github.com/huggingface/datasets/issues/5975
Veluchs
9
[]
5,971
Docs: make "repository structure" easier to find
The page https://huggingface.co/docs/datasets/repository_structure explains how to create a simple repository structure without a dataset script. It's the simplest way to create a dataset and should be easier to find, particularly on the docs' first pages.
OPEN
2023-06-21T08:26:44
2023-07-05T06:51:38
null
https://github.com/huggingface/datasets/issues/5971
severo
5
[ "documentation" ]
5,970
description disappearing from Info when Uploading a Dataset Created with `from_dict`
### Describe the bug When uploading a dataset created locally using `from_dict` with a specified `description` field. It appears before upload, but is missing after upload and re-download. ### Steps to reproduce the bug I think the most relevant pattern in the code might be the following lines: ``` descr...
OPEN
2023-06-20T19:18:26
2023-06-22T14:23:56
null
https://github.com/huggingface/datasets/issues/5970
balisujohn
2
[]
5,968
Common Voice datasets still need `use_auth_token=True`
### Describe the bug We don't need to pass `use_auth_token=True` anymore to download gated datasets or models, so the following should work if correctly logged in. ```py from datasets import load_dataset load_dataset("mozilla-foundation/common_voice_6_1", "tr", split="train+validation") ``` However it throw...
CLOSED
2023-06-20T11:58:37
2023-07-29T16:08:59
2023-07-29T16:08:58
https://github.com/huggingface/datasets/issues/5968
patrickvonplaten
4
[]
5,967
Config name / split name lost after map with multiproc
### Describe the bug Performing a `.map` method on a dataset loses it's config name / split name only if run with multiproc ### Steps to reproduce the bug ```python from datasets import Audio, load_dataset from transformers import AutoFeatureExtractor import numpy as np # load dummy dataset libri = load_datas...
OPEN
2023-06-19T17:27:36
2023-06-28T08:55:25
null
https://github.com/huggingface/datasets/issues/5967
sanchit-gandhi
2
[]
5,965
"Couldn't cast array of type" in complex datasets
### Describe the bug When doing a map of a dataset with complex types, sometimes `datasets` is unable to interpret the valid schema of a returned datasets.map() function. This often comes from conflicting types, like when both empty lists and filled lists are competing for the same field value. This is prone to hap...
CLOSED
2023-06-19T14:16:14
2023-07-26T15:13:53
2023-07-26T15:13:53
https://github.com/huggingface/datasets/issues/5965
piercefreeman
4
[]
5,963
Got an error _pickle.PicklingError use Dataset.from_spark.
python 3.9.2 Got an error _pickle.PicklingError use Dataset.from_spark. Did the dataset import load data from spark dataframe using multi-node Spark cluster df = spark.read.parquet(args.input_data).repartition(50) ds = Dataset.from_spark(df, keep_in_memory=True, cache_dir="...
CLOSED
2023-06-19T05:30:35
2023-07-24T11:55:46
2023-07-24T11:55:46
https://github.com/huggingface/datasets/issues/5963
yanzia12138
5
[]
5,962
Issue with train_test_split maintaining the same underlying PyArrow Table
### Describe the bug I've been using the train_test_split method in the datasets module to split my HuggingFace Dataset into separate training, validation, and testing subsets. However, I've noticed an issue where the split datasets appear to maintain the same underlying PyArrow Table. ### Steps to reproduce the bug ...
OPEN
2023-06-17T02:19:58
2023-06-17T02:19:58
null
https://github.com/huggingface/datasets/issues/5962
Oziel14
0
[]
5,961
IterableDataset: split by node and map may preprocess samples that will be skipped anyway
There are two ways an iterable dataset can be split by node: 1. if the number of shards is a factor of number of GPUs: in that case the shards are evenly distributed per GPU 2. otherwise, each GPU iterate on the data and at the end keeps 1 sample out of n(GPUs) - skipping the others. In case 2. it's ...
OPEN
2023-06-15T10:29:10
2023-09-01T10:35:11
null
https://github.com/huggingface/datasets/issues/5961
johnchienbronci
9
[]
5,959
read metric glue.py from local file
### Describe the bug Currently, The server is off-line. I am using the glue metric from the local file downloaded from the hub. I download / cached datasets using `load_dataset('glue','sst2', cache_dir='/xxx')` to cache them and then in the off-line mode, I use `load_dataset('xxx/glue.py','sst2', cache_dir='/xxx'...
CLOSED
2023-06-14T17:59:35
2023-06-14T18:04:16
2023-06-14T18:04:16
https://github.com/huggingface/datasets/issues/5959
JiazhaoLi
1
[]
5,955
Strange bug in loading local JSON files, using load_dataset
### Describe the bug I am using 'load_dataset 'loads a JSON file, but I found a strange bug: an error will be reported when the length of the JSON file exceeds 160000 (uncertain exact number). I have checked the data through the following code and there are no issues. So I cannot determine the true reason for this err...
CLOSED
2023-06-14T12:46:00
2023-06-21T14:42:15
2023-06-21T14:42:15
https://github.com/huggingface/datasets/issues/5955
Night-Quiet
4
[]
5,953
Bad error message when trying to download gated dataset
### Describe the bug When I attempt to download a model from the Hub that is gated without being logged in, I get a nice error message. E.g.: E.g. ```sh Repository Not Found for url: https://huggingface.co/api/models/DeepFloyd/IF-I-XL-v1.0. Please make sure you specified the correct `repo_id` and `repo_type`. I...
CLOSED
2023-06-14T10:03:39
2023-06-14T16:36:51
2023-06-14T12:26:32
https://github.com/huggingface/datasets/issues/5953
patrickvonplaten
8
[]
5,951
What is the Right way to use discofuse dataset??
[Click here for Dataset link](https://huggingface.co/datasets/discofuse/viewer/discofuse-wikipedia/train?row=6) **Below is the following way, as per my understanding , Is it correct :question: :question:** The **columns/features from `DiscoFuse dataset`** that will be the **input to the `encoder` and `decoder`** ar...
CLOSED
2023-06-14T08:38:39
2023-06-14T13:25:06
2023-06-14T12:10:16
https://github.com/huggingface/datasets/issues/5951
akesh1235
2
[]
5,950
Support for data with instance-wise dictionary as features
### Feature request I notice that when loading data instances with feature type of python dictionary, the dictionary keys would be broadcast so that every instance has the same set of keys. Please see an example in the Motivation section. It is possible to avoid this behavior, i.e., load dictionary features as it i...
OPEN
2023-06-13T15:49:00
2025-04-07T13:20:37
null
https://github.com/huggingface/datasets/issues/5950
richardwth
11
[ "enhancement" ]
5,947
Return the audio filename when decoding fails due to corrupt files
### Feature request Return the audio filename when the audio decoding fails. Although currently there are some checks for mp3 and opus formats with the library version there are still cases when the audio decoding could fail, eg. Corrupt file. ### Motivation When you try to load an object file dataset and the...
OPEN
2023-06-13T08:44:09
2023-06-14T12:45:01
null
https://github.com/huggingface/datasets/issues/5947
wetdog
2
[ "enhancement" ]
5,946
IndexError Not Solving -> IndexError: Invalid key: ?? is out of bounds for size 0 or ??
### Describe the bug in <cell line: 1>:1 │ │ │ │ /usr/local/lib/python3.10/dist-packages/transformers/trainer.py:1537 in train ...
OPEN
2023-06-13T07:34:15
2023-07-14T12:04:48
null
https://github.com/huggingface/datasets/issues/5946
syngokhan
6
[]
5,945
Failing to upload dataset to the hub
### Describe the bug Trying to upload a dataset of hundreds of thousands of audio samples (the total volume is not very large, 60 gb) to the hub with push_to_hub, it doesn't work. From time to time one piece of the data (parquet) gets pushed and then I get RemoteDisconnected even though my internet is stable. Please...
CLOSED
2023-06-13T05:46:46
2023-07-24T11:56:40
2023-07-24T11:56:40
https://github.com/huggingface/datasets/issues/5945
Ar770
3
[]
5,941
Load Data Sets Too Slow In Train Seq2seq Model
### Describe the bug step 'Generating train split' in load_dataset is too slow: ![image](https://github.com/huggingface/datasets/assets/19569322/d9b08eee-95fe-4741-a346-b70416c948f8) ### Steps to reproduce the bug Data: own data,16K16B Mono wav Oficial Script:[ run_speech_recognition_seq2seq.py](https://github...
CLOSED
2023-06-12T03:58:43
2023-08-15T02:52:22
2023-08-15T02:52:22
https://github.com/huggingface/datasets/issues/5941
xyx361100238
10
[]
5,990
Pushing a large dataset on the hub consistently hangs
### Describe the bug Once I have locally built a large dataset that I want to push to hub, I use the recommended approach of .push_to_hub to get the dataset on the hub, and after pushing a few shards, it consistently hangs. This has happened over 40 times over the past week, and despite my best efforts to try and catc...
OPEN
2023-06-10T14:46:47
2025-02-15T09:29:10
null
https://github.com/huggingface/datasets/issues/5990
AntreasAntoniou
46
[ "bug" ]
5,939
.
CLOSED
2023-06-09T14:01:34
2023-06-12T12:19:34
2023-06-12T12:19:19
https://github.com/huggingface/datasets/issues/5939
flckv
0
[]
5,936
Sequence of array not supported for most dtype
### Describe the bug Create a dataset composed of sequence of array fails for most dtypes (see code below). ### Steps to reproduce the bug ```python from datasets import Sequence, Array2D, Features, Dataset import numpy as np for dtype in [ "bool", # ok "int8", # failed "int16", # failed ...
CLOSED
2023-06-08T18:18:07
2023-06-14T15:03:34
2023-06-14T15:03:34
https://github.com/huggingface/datasets/issues/5936
qgallouedec
4
[]
5,931
`datasets.map` not reusing cached copy by default
### Describe the bug When I load the dataset from local directory, it's cached copy is picked up after first time. However, for `map` operation, the operation is applied again and cached copy is not picked up. Is there any way to pick cached copy instead of processing it again? The only solution I could think of was...
CLOSED
2023-06-07T09:03:33
2023-06-21T16:15:40
2023-06-21T16:15:40
https://github.com/huggingface/datasets/issues/5931
bhavitvyamalik
1
[]
5,930
loading private custom dataset script - authentication error
### Describe the bug Train model with my custom dataset stored in HuggingFace and loaded with the loading script requires authentication but I am not sure how ? I am logged in in the terminal, in the browser. I receive this error: /python3.8/site-packages/datasets/utils/file_utils.py", line 566, in get_from...
CLOSED
2023-06-07T06:58:23
2023-06-15T14:49:21
2023-06-15T14:49:20
https://github.com/huggingface/datasets/issues/5930
flckv
1
[]
5,929
Importing PyTorch reduces multiprocessing performance for map
### Describe the bug I noticed that the performance of my dataset preprocessing with `map(...,num_proc=32)` decreases when PyTorch is imported. ### Steps to reproduce the bug I created two example scripts to reproduce this behavior: ``` import datasets datasets.disable_caching() from datasets import Da...
CLOSED
2023-06-06T19:42:25
2023-06-16T13:09:12
2023-06-16T13:09:12
https://github.com/huggingface/datasets/issues/5929
Maxscha
2
[]
5,927
`IndexError` when indexing `Sequence` of `Array2D` with `None` values
### Describe the bug Having `None` values in a `Sequence` of `ArrayND` fails. ### Steps to reproduce the bug ```python from datasets import Array2D, Dataset, Features, Sequence data = [ [ [[0]], None, None, ] ] feature = Sequence(Array2D((1, 1), dtype="int64")) dataset =...
CLOSED
2023-06-06T14:36:22
2023-06-13T12:39:39
2023-06-09T13:23:50
https://github.com/huggingface/datasets/issues/5927
qgallouedec
2
[]
5,926
Uncaught exception when generating the splits from a dataset that miss data
### Describe the bug Dataset https://huggingface.co/datasets/blog_authorship_corpus has an issue with its hosting platform, since https://drive.google.com/u/0/uc?id=1cGy4RNDV87ZHEXbiozABr9gsSrZpPaPz&export=download returns 404 error. But when trying to generate the split names, we get an exception which is now corr...
OPEN
2023-06-06T13:51:01
2023-06-07T07:53:16
null
https://github.com/huggingface/datasets/issues/5926
severo
1
[]
5,925
Breaking API change in datasets.list_datasets caused by change in HfApi.list_datasets
### Describe the bug Hi all, after an update of the `datasets` library, we observer crashes in our code. We relied on `datasets.list_datasets` returning a `list`. Now, after the API of the HfApi.list_datasets was changed and it returns a `list` instead of an `Iterable`, the `datasets.list_datasets` now sometimes re...
CLOSED
2023-06-05T14:46:04
2023-06-19T17:22:43
2023-06-19T17:22:43
https://github.com/huggingface/datasets/issues/5925
mtkinit
0
[]
5,923
Cannot import datasets - ValueError: pyarrow.lib.IpcWriteOptions size changed, may indicate binary incompatibility
### Describe the bug When trying to import datasets, I get a pyarrow ValueError: Traceback (most recent call last): File "/Users/edward/test/test.py", line 1, in <module> import datasets File "/Users/edward/opt/anaconda3/envs/cs235/lib/python3.9/site-packages/datasets/__init__.py", line 43, in <module>...
CLOSED
2023-06-02T04:16:32
2024-06-27T10:07:49
2024-02-25T16:38:03
https://github.com/huggingface/datasets/issues/5923
ehuangc
25
[]
5,922
Length of table does not accurately reflect the split
### Describe the bug I load a Huggingface Dataset and do `train_test_split`. I'm expecting the underlying table for the dataset to also be split, but it's not. ### Steps to reproduce the bug ![image](https://github.com/huggingface/datasets/assets/8068268/83e5768f-8b4c-422a-945c-832a7585afff) ### Expected behavior...
CLOSED
2023-06-01T18:56:26
2023-06-02T16:13:31
2023-06-02T16:13:31
https://github.com/huggingface/datasets/issues/5922
amogkam
2
[ "wontfix" ]
5,918
File not found for audio dataset
### Describe the bug After loading an audio dataset, and looking at a sample entry, the `path` element, which is supposed to be the path to the audio file, doesn't actually exist. ### Steps to reproduce the bug Run bug.py: ```py import os.path from datasets import load_dataset def run() -> None: cv1...
OPEN
2023-06-01T02:15:29
2023-06-11T06:02:25
null
https://github.com/huggingface/datasets/issues/5918
RobertBaruch
1
[]
5,914
array is too big; `arr.size * arr.dtype.itemsize` is larger than the maximum possible size in Datasets
### Describe the bug When using the `filter` or `map` function to preprocess a dataset, a ValueError is encountered with the error message "array is too big; arr.size * arr.dtype.itemsize is larger than the maximum possible size." Detailed error message: Traceback (most recent call last): File "data_processing...
OPEN
2023-05-30T04:25:00
2024-10-27T04:09:18
null
https://github.com/huggingface/datasets/issues/5914
ravenouse
2
[]
5,913
I tried to load a custom dataset using the following statement: dataset = load_dataset('json', data_files=data_files). The dataset contains 50 million text-image pairs, but an error occurred.
### Describe the bug File "/home/kas/.conda/envs/diffusers/lib/python3.7/site-packages/datasets/builder.py", line 1858, in _prepare_split_single Downloading and preparing dataset json/default to /home/kas/diffusers/examples/dreambooth/cache_data/datasets/json/default-acf423d8c6ef99d0/0.0.0/e347ab1c932092252e717ff3f94...
CLOSED
2023-05-30T02:55:26
2023-07-24T12:00:38
2023-07-24T12:00:38
https://github.com/huggingface/datasets/issues/5913
cjt222
2
[]
5,912
Missing elements in `map` a batched dataset
### Describe the bug As outlined [here](https://discuss.huggingface.co/t/length-error-using-map-with-datasets/40969/3?u=sachin), the following collate function drops 5 out of possible 6 elements in the batch (it is 6 because out of the eight, two are bad links in laion). A reproducible [kaggle kernel ](https://www.kag...
CLOSED
2023-05-29T08:09:19
2023-07-26T15:48:15
2023-07-26T15:48:15
https://github.com/huggingface/datasets/issues/5912
sachinruk
1
[]
5,910
Cannot use both set_format and set_transform
### Describe the bug I need to process some data using the set_transform method but I also need the data to be formatted for pytorch before processing it. I don't see anywhere in the documentation something that says that both methods cannot be used at the same time. ### Steps to reproduce the bug ``` from...
CLOSED
2023-05-27T19:22:23
2023-07-09T21:40:54
2023-06-16T14:41:24
https://github.com/huggingface/datasets/issues/5910
ybouane
5
[]
5,908
Unbearably slow sorting on big mapped datasets
### Describe the bug For me, with ~40k lines, sorting took 3.5 seconds on a flattened dataset (including the flatten operation) and 22.7 seconds on a mapped dataset (right after sharding), which is about x5 slowdown. Moreover, it seems like it slows down exponentially with bigger datasets (wasn't able to sort 700k lin...
OPEN
2023-05-27T11:08:32
2023-06-13T17:45:10
null
https://github.com/huggingface/datasets/issues/5908
maximxlss
6
[]
5,906
Could you unpin responses version?
### Describe the bug Could you unpin [this](https://github.com/huggingface/datasets/blob/main/setup.py#L139) or move it to test requirements? This is a testing library and we also use it for our tests as well. We do not want to use a very outdated version. ### Steps to reproduce the bug could not install this librar...
CLOSED
2023-05-26T20:02:14
2023-05-30T17:53:31
2023-05-30T17:53:31
https://github.com/huggingface/datasets/issues/5906
kenimou
0
[]
5,905
Offer an alternative to Iterable Dataset that allows lazy loading and processing while skipping batches efficiently
### Feature request I would like a way to resume training from a checkpoint without waiting for a very long time when using an iterable dataset. ### Motivation I am training models on the speech-recognition task. I have very large datasets that I can't comfortably store on a disk and also quite computationally...
OPEN
2023-05-26T12:33:02
2023-06-15T13:34:18
null
https://github.com/huggingface/datasets/issues/5905
bruno-hays
1
[ "enhancement" ]