id
int64
599M
3.18B
number
int64
1
7.65k
title
stringlengths
1
290
state
stringclasses
2 values
body
stringlengths
0
228k
is_pull_request
bool
1 class
created_at
stringdate
2020-04-14 10:18:02
2025-06-26 12:23:48
updated_at
stringdate
2020-04-27 16:04:17
2025-06-26 14:02:38
closed_at
stringlengths
20
20
⌀
user_login
stringlengths
3
26
author_association
stringclasses
4 values
pr_url
stringlengths
46
49
⌀
pr_merged_at
stringlengths
20
20
⌀
comments_count
int64
0
70
reactions_total
int64
0
61
reactions_plus1
int64
0
39
reactions_heart
int64
0
22
draft
bool
2 classes
locked
bool
1 class
labels
listlengths
0
4
html_url
stringlengths
46
51
is_pr_url
bool
2 classes
comments
listlengths
0
30
1,938,797,389
6,298
Doc readme improvements
closed
Changes in the doc READMe: * adds two new sections (to be aligned with `transformers` and `hfh`): "Previewing the documentation" and "Writing documentation examples" * replaces the mentions of `transformers` with `datasets` * fixes some dead links
true
2023-10-11T21:51:12Z
2023-10-12T12:47:15Z
2023-10-12T12:38:19Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/6298
2023-10-12T12:38:19Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6298
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,938,752,707
6,297
Fix ArrayXD cast
closed
Fix #6291
true
2023-10-11T21:14:59Z
2023-10-13T13:54:00Z
2023-10-13T13:45:30Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/6297
2023-10-13T13:45:30Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6297
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,938,453,845
6,296
Move `exceptions.py` to `utils/exceptions.py`
closed
I didn't notice the path while reviewing the PR yesterday :(
true
2023-10-11T18:28:00Z
2024-09-03T16:00:04Z
2024-09-03T16:00:03Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/6296
null
6
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6296
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,937,362,102
6,295
Fix parquet columns argument in streaming mode
closed
It was failing when there's a DatasetInfo with non-None info.features from the YAML (therefore containing columns that should be ignored) Fix https://github.com/huggingface/datasets/issues/6293
true
2023-10-11T10:01:01Z
2023-10-11T16:30:24Z
2023-10-11T16:21:36Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/6295
2023-10-11T16:21:36Z
3
1
1
0
false
false
[]
https://github.com/huggingface/datasets/pull/6295
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,937,359,605
6,294
IndexError: Invalid key is out of bounds for size 0 despite having a populated dataset
closed
### Describe the bug I am encountering an `IndexError` when trying to access data from a DataLoader which wraps around a dataset I've loaded using the `datasets` library. The error suggests that the dataset size is `0`, but when I check the length and print the dataset, it's clear that it has `1166` entries. ### Step...
true
2023-10-11T09:59:38Z
2023-10-17T11:24:06Z
2023-10-17T11:24:06Z
ZYM66
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6294
false
[ "It looks to be the same issue as the one reported in https://discuss.huggingface.co/t/indexerror-invalid-key-16-is-out-of-bounds-for-size-0.\r\n\r\nCan you check the length of `train_dataset` before the `train_sampler = self._get_train_sampler()` (and after `_remove_unused_columns`) line?" ]
1,937,238,047
6,293
Choose columns to stream parquet data in streaming mode
closed
Currently passing columns= to load_dataset in streaming mode fails ``` Tried to load parquet data with columns '['link']' with mismatching features '{'caption': Value(dtype='string', id=None), 'image': {'bytes': Value(dtype='binary', id=None), 'path': Value(dtype='null', id=None)}, 'link': Value(dtype='string', id=...
true
2023-10-11T08:59:36Z
2023-10-11T16:21:38Z
2023-10-11T16:21:38Z
lhoestq
MEMBER
null
null
0
0
0
0
null
false
[ "bug" ]
https://github.com/huggingface/datasets/issues/6293
false
[]
1,937,050,470
6,292
how to load the image of dtype float32 or float64
open
_FEATURES = datasets.Features( { "image": datasets.Image(), "text": datasets.Value("string"), }, ) The datasets builder seems only support the unit8 data. How to load the float dtype data?
true
2023-10-11T07:27:16Z
2023-10-11T13:19:11Z
null
wanglaofei
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6292
false
[ "Hi! Can you provide a code that reproduces the issue?\r\n\r\nAlso, which version of `datasets` are you using? You can check this by running `python -c \"import datasets; print(datasets.__version__)\"` inside the env. We added support for \"float images\" in `datasets 2.9`." ]
1,936,129,871
6,291
Casting type from Array2D int to Array2D float crashes
closed
### Describe the bug I am on a school project and the initial type for feature annotations are `Array2D(shape=(None, 4))`. I am trying to cast this type to a `float64` and pyarrow gives me this error : ``` Traceback (most recent call last): File "/home/alan/dev/ClassezDesImagesAvecDesAlgorithmesDeDeeplearnin...
true
2023-10-10T20:10:10Z
2023-10-13T13:45:31Z
2023-10-13T13:45:31Z
AlanBlanchet
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6291
false
[ "Thanks for reporting! I've opened a PR with a fix" ]
1,935,629,679
6,290
Incremental dataset (e.g. `.push_to_hub(..., append=True)`)
open
### Feature request Have the possibility to do `ds.push_to_hub(..., append=True)`. ### Motivation Requested in this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/3#65252597c4edc168202a5eaa) and this [comment](https://huggingface.co/datasets/laion/dalle-3-dataset/discussions/4#6524f675...
true
2023-10-10T15:18:03Z
2025-03-12T13:41:26Z
null
Wauplin
CONTRIBUTOR
null
null
6
9
9
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/6290
false
[ "Yea I think waiting for #6269 would be best, or branching from it. For reference, this [PR](https://github.com/LAION-AI/Discord-Scrapers/pull/2) is progressing pretty well which will do similar using the hf hub for our LAION dataset bot https://github.com/LAION-AI/Discord-Scrapers/pull/2. ", "Is there any update...
1,935,628,506
6,289
testing doc-builder
closed
testing https://github.com/huggingface/doc-builder/pull/426
true
2023-10-10T15:17:29Z
2023-10-13T08:57:14Z
2023-10-13T08:56:48Z
mishig25
NONE
https://github.com/huggingface/datasets/pull/6289
null
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6289
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,935,005,457
6,288
Dataset.from_pandas with a DataFrame of PIL.Images
open
Currently type inference doesn't know what to do with a Pandas Series of PIL.Image objects, though it would be nice to get a Dataset with the Image type this way
true
2023-10-10T10:29:16Z
2024-11-29T16:35:30Z
null
lhoestq
MEMBER
null
null
3
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/6288
false
[ "A duplicate of https://github.com/huggingface/datasets/issues/4796.\r\n\r\nWe could get this for free by implementing the `Image` feature as an extension type, as shown in [this](https://colab.research.google.com/drive/1Uzm_tXVpGTwbzleDConWcNjacwO1yxE4?usp=sharing) Colab (example with UUIDs).\r\n", "+1 to this\r...
1,932,758,192
6,287
map() not recognizing "text"
closed
### Describe the bug The [map() documentation](https://huggingface.co/docs/datasets/v2.14.5/en/package_reference/main_classes#datasets.Dataset.map) reads: ` ds = ds.map(lambda x: tokenizer(x['text'], truncation=True, padding=True), batched=True)` I have been trying to reproduce it in my code as: `tokenizedData...
true
2023-10-09T10:27:30Z
2023-10-11T20:28:45Z
2023-10-11T20:28:45Z
EngineerKhan
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6287
false
[ "There is no \"text\" column in the `amazon_reviews_multi`, hence the `KeyError`. You can get the column names by running `dataset.column_names`." ]
1,932,640,128
6,286
Create DefunctDatasetError
closed
Create `DefunctDatasetError` as a specific error to be raised when a dataset is defunct and no longer accessible. See Hub discussion: https://huggingface.co/datasets/the_pile_books3/discussions/7#6523c13a94f3a1a2092d251b
true
2023-10-09T09:23:23Z
2023-10-10T07:13:22Z
2023-10-10T07:03:04Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/6286
2023-10-10T07:03:04Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6286
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,932,306,325
6,285
TypeError: expected str, bytes or os.PathLike object, not dict
open
### Describe the bug my dataset is in form : train- image /n -labels and tried the code: ``` from datasets import load_dataset data_files = { "train": "/content/datasets/PotholeDetectionYOLOv8-1/train/", "validation": "/content/datasets/PotholeDetectionYOLOv8-1/valid/", "test": "/content/dat...
true
2023-10-09T04:56:26Z
2023-10-10T13:17:33Z
null
andysingal
NONE
null
null
4
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6285
false
[ "You should be able to load the images by modifying the `load_dataset` call like this:\r\n```python\r\ndataset = load_dataset(\"imagefolder\", data_dir=\"/content/datasets/PotholeDetectionYOLOv8-1\")\r\n```\r\n\r\nThe `imagefolder` builder expects the image files to be in `path/label/image_file` (e.g. .`.../train/d...
1,929,551,712
6,284
Add Belebele multiple-choice machine reading comprehension (MRC) dataset
closed
### Feature request Belebele is a multiple-choice machine reading comprehension (MRC) dataset spanning 122 language variants. This dataset enables the evaluation of mono- and multi-lingual models in high-, medium-, and low-resource languages. Each question has four multiple-choice answers and is linked to a short pass...
true
2023-10-06T06:58:03Z
2023-10-06T13:26:51Z
2023-10-06T13:26:51Z
rajveer43
NONE
null
null
1
1
0
1
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/6284
false
[ "This dataset is already available on the Hub: https://huggingface.co/datasets/facebook/belebele.\r\n" ]
1,928,552,257
6,283
Fix array cast/embed with null values
closed
Fixes issues with casting/embedding PyArrow list arrays with null values. It also bumps the required PyArrow version to 12.0.0 (over 9 months old) to simplify the implementation. Fix #6280, fix #6311, fix #6360 (Also fixes https://github.com/huggingface/datasets/issues/5430 to make Beam compatible with PyArrow>=...
true
2023-10-05T15:24:05Z
2024-07-04T07:24:20Z
2024-02-06T19:24:19Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/6283
2024-02-06T19:24:18Z
10
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6283
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,928,473,630
6,282
Drop data_files duplicates
closed
I just added drop_duplicates=True to `.from_patterns`. I used a dict to deduplicate and preserve the order close https://github.com/huggingface/datasets/issues/6259 close https://github.com/huggingface/datasets/issues/6272
true
2023-10-05T14:43:08Z
2024-09-02T14:08:35Z
2024-09-02T14:08:35Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/6282
null
5
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6282
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,928,456,959
6,281
Improve documentation of dataset.from_generator
closed
Improve documentation to clarify sharding behavior (#6270)
true
2023-10-05T14:34:49Z
2023-10-05T19:09:07Z
2023-10-05T18:57:41Z
hartmans
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/6281
2023-10-05T18:57:41Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6281
true
[ "I have looked at the doc failures, and I do not think that my change caused the doc build failure, but I'm not 100% sure about that.\r\nI have high confidence that the integration test failures are not something I introduced:-)", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<sum...
1,928,215,278
6,280
Couldn't cast array of type fixed_size_list to Sequence(Value(float64))
closed
### Describe the bug I have a dataset with an embedding column, when I try to map that dataset I get the following exception: ``` Traceback (most recent call last): File "/Users/jmif/.virtualenvs/llm-training/lib/python3.10/site-packages/datasets/arrow_dataset.py", line 3189, in map for rank, done, content...
true
2023-10-05T12:48:31Z
2024-02-06T19:24:20Z
2024-02-06T19:24:20Z
jmif
NONE
null
null
4
1
1
0
null
false
[]
https://github.com/huggingface/datasets/issues/6280
false
[ "Thanks for reporting! I've opened a PR with a fix.", "Thanks for the quick response @mariosasko! I just installed your branch via `poetry add 'git+https://github.com/huggingface/datasets#fix-array_values'` and I can confirm it works on the example provided.\r\n\r\nFollow up question for you, should `None`s be s...
1,928,028,226
6,279
Batched IterableDataset
open
### Feature request Hi, could you add an implementation of a batched `IterableDataset`. It already support an option to do batch iteration via `.iter(batch_size=...)` but this cannot be used in combination with a torch `DataLoader` since it just returns an iterator. ### Motivation The current implementation load...
true
2023-10-05T11:12:49Z
2024-11-07T10:01:22Z
null
lneukom
NONE
null
null
9
6
6
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/6279
false
[ "This is exactly what I was looking for. It would also be very useful for me :-)", "This issue is really smashing the selling point of HF datasets... The only workaround I've found so far is to create a customized IterableDataloader which improves the loading speed to some extent.\r\n\r\nFor example I've a HF dat...
1,927,957,877
6,278
No data files duplicates
closed
I added a new DataFilesSet class to disallow duplicate data files. I also deprecated DataFilesList. EDIT: actually I might just add drop_duplicates=True to `.from_patterns` close https://github.com/huggingface/datasets/issues/6259 close https://github.com/huggingface/datasets/issues/6272 TODO: - [ ] tests ...
true
2023-10-05T10:31:58Z
2024-01-11T06:32:49Z
2023-10-05T14:43:17Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/6278
null
4
0
0
0
true
false
[]
https://github.com/huggingface/datasets/pull/6278
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,927,044,546
6,277
FileNotFoundError: Couldn't find a module script at /content/paws-x/paws-x.py. Module 'paws-x' doesn't exist on the Hugging Face Hub either.
closed
### Describe the bug I'm encountering a "FileNotFoundError" while attempting to use the "paws-x" dataset to retrain the DistilRoBERTa-base model. The error message is as follows: FileNotFoundError: Couldn't find a module script at /content/paws-x/paws-x.py. Module 'paws-x' doesn't exist on the Hugging Face Hub eit...
true
2023-10-04T22:01:25Z
2023-10-08T17:05:46Z
2023-10-08T17:05:46Z
diegogonzalezc
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6277
false
[ "`evaluate.load(\"paws-x\", \"es\")` throws the error because there is no such metric in the `evaluate` lib.\r\n\r\nSo, this is unrelated to our lib." ]
1,925,961,878
6,276
I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error
open
### Describe the bug I'm trying to fine tune the openai/whisper model from huggingface using jupyter notebook and i keep getting this error, i'm following the steps in this blog post https://huggingface.co/blog/fine-tune-whisper I tried google collab and it works but because I'm on the free version the training ...
true
2023-10-04T11:03:41Z
2023-11-27T10:39:16Z
null
valaofficial
NONE
null
null
3
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6276
false
[ "Since you are using Windows, maybe moving the `map` call inside `if __name__ == \"__main__\"` can fix the issue:\r\n```python\r\nif __name__ == \"__main__\":\r\n common_voice = common_voice.map(prepare_dataset, remove_columns=common_voice.column_names[\"train\"], num_proc=4)\r\n```\r\n\r\nOtherwise, the only s...
1,921,354,680
6,275
Would like to Contribute a dataset
closed
I have a dataset of 2500 images that can be used for color-blind machine-learning algorithms. Since , there was no dataset available online , I made this dataset myself and would like to contribute this now to community
true
2023-10-02T07:00:21Z
2023-10-10T16:27:54Z
2023-10-10T16:27:54Z
vikas70607
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6275
false
[ "Hi! The process of contributing a dataset is explained here: https://huggingface.co/docs/datasets/upload_dataset. Also, check https://huggingface.co/docs/datasets/image_dataset for a more detailed explanation of how to share an image dataset." ]
1,921,036,328
6,274
FileNotFoundError for dataset with multiple builder config
closed
### Describe the bug When there is only one config and only the dataset name is entered when using datasets.load_dataset(), it works fine. But if I create a second builder_config for my dataset and enter the config name when using datasets.load_dataset(), the following error will happen. FileNotFoundError: [Errno 2...
true
2023-10-01T23:45:56Z
2024-08-14T04:42:02Z
2023-10-02T20:09:38Z
LouisChen15
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6274
false
[ "Please tell me if the above info is not enough for solving the problem. I will then make my dataset public temporarily so that you can really reproduce the bug. ", "Hi! \r\nCould you share how to solve this problem? \r\nI faced this same error. " ]
1,920,922,260
6,273
Broken Link to PubMed Abstracts dataset .
open
### Describe the bug The link provided for the dataset is broken, data_files = [https://the-eye.eu/public/AI/pile_preliminary_components/PUBMED_title_abstracts_2019_baseline.jsonl.zst](url) The ### Steps to reproduce the bug Steps to reproduce: 1) Head over to [https://huggingface.co/learn/nlp-course/chapt...
true
2023-10-01T19:08:48Z
2024-04-28T02:30:42Z
null
sameemqureshi
NONE
null
null
5
1
1
0
null
false
[]
https://github.com/huggingface/datasets/issues/6273
false
[ "This has already been reported in the HF Course repo (https://github.com/huggingface/course/issues/623).", "@lhoestq @albertvillanova @lewtun I don't think we are allowed to host these data files on the Hub (due to DMCA), which means the only option is to use a different dataset in the course (and to re-record t...
1,920,831,487
6,272
Duplicate `data_files` when named `<split>/<split>.parquet`
closed
e.g. with `u23429/stock_1_minute_ticker` ```ipython In [1]: from datasets import * In [2]: b = load_dataset_builder("u23429/stock_1_minute_ticker") Downloading readme: 100%|██████████████████████████| 627/627 [00:00<00:00, 246kB/s] In [3]: b.config.data_files Out[3]: {NamedSplit('train'): ['hf://datasets/...
true
2023-10-01T15:43:56Z
2024-03-15T15:22:05Z
2024-03-15T15:22:05Z
lhoestq
MEMBER
null
null
7
0
0
0
null
false
[ "bug" ]
https://github.com/huggingface/datasets/issues/6272
false
[ "Also reported in https://github.com/huggingface/datasets/issues/6259", "I think it's best to drop duplicates with a `set` (as a temporary fix) and improve the patterns when/if https://github.com/fsspec/filesystem_spec/pull/1382 gets merged. @lhoestq Do you have some other ideas?", "Alternatively we could just...
1,920,420,295
6,271
Overwriting Split overwrites data but not metadata, corrupting dataset
closed
### Describe the bug I want to be able to overwrite/update/delete splits in my dataset. Currently the only way to do is to manually go into the dataset and delete the split. If I try to overwrite programmatically I end up in an error state and (somewhat) corrupting the dataset. Read below. **Current Behavior** Whe...
true
2023-09-30T22:37:31Z
2023-10-16T13:30:50Z
2023-10-16T13:30:50Z
govindrai
NONE
null
null
0
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6271
false
[]
1,920,329,373
6,270
Dataset.from_generator raises with sharded gen_args
closed
### Describe the bug According to the docs of Datasets.from_generator: ``` gen_kwargs(`dict`, *optional*): Keyword arguments to be passed to the `generator` callable. You can define a sharded dataset by passing the list of shards in `gen_kwargs`. ``` So I'd expect that if gen_kwar...
true
2023-09-30T16:50:06Z
2023-10-11T20:29:12Z
2023-10-11T20:29:11Z
hartmans
CONTRIBUTOR
null
null
6
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6270
false
[ "`gen_kwargs` should be a `dict`, as stated in the docstring, but you are passing a `list`.\r\n\r\nSo, to fix the error, replace the list of dicts with a dict of lists (and slightly modify the generator function):\r\n```python\r\nfrom pathlib import Path\r\nimport datasets\r\n\r\ndef process_yaml(files):\r\n for...
1,919,572,790
6,269
Reduce the number of commits in `push_to_hub`
closed
Reduces the number of commits in `push_to_hub` by using the `preupload` API from https://github.com/huggingface/huggingface_hub/pull/1699. Each commit contains a maximum of 50 uploaded files. A shard's fingerprint no longer needs to be added as a suffix to support resuming an upload, meaning the shards' naming schem...
true
2023-09-29T16:22:31Z
2023-10-16T16:03:18Z
2023-10-16T13:30:46Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/6269
2023-10-16T13:30:46Z
21
4
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6269
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,919,010,645
6,268
Add repo_id to DatasetInfo
open
```python from datasets import load_dataset ds = load_dataset("lhoestq/demo1", split="train") ds = ds.map(lambda x: {}, num_proc=2).filter(lambda x: True).remove_columns(["id"]) print(ds.repo_id) # lhoestq/demo1 ``` - repo_id is None when the dataset doesn't come from the Hub, e.g. from Dataset.from_dict - ...
true
2023-09-29T10:24:55Z
2023-10-01T15:29:45Z
null
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/6268
null
9
2
0
2
true
false
[]
https://github.com/huggingface/datasets/pull/6268
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6268). All of your documentation changes will be reflected on that endpoint.", "In https://github.com/huggingface/datasets/issues/4129 we want to track the origin of a dataset, e.g. if it comes from multiple datasets.\r\n\r\nI ...
1,916,443,262
6,267
Multi label class encoding
open
### Feature request I have a multi label dataset and I'd like to be able to class encode the column and store the mapping directly in the features just as I can with a single label column. `class_encode_column` currently does not support multi labels. Here's an example of what I'd like to encode: ``` data = { ...
true
2023-09-27T22:48:08Z
2023-10-26T18:46:08Z
null
jmif
NONE
null
null
7
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/6267
false
[ "You can use a `Sequence(ClassLabel(...))` feature type to represent a list of labels, and `cast_column`/`cast` to perform the \"string to label\" conversion (`class_encode_column` does support nested fields), e.g., in your case:\r\n```python\r\nfrom datasets import Dataset, Sequence, ClassLabel\r\ndata = {\r\n ...
1,916,334,394
6,266
Use LibYAML with PyYAML if available
open
PyYAML, the YAML framework used in this library, allows the use of LibYAML to accelerate the methods `load` and `dump`. To use it, a user would need to first install a PyYAML version that uses LibYAML (not available in PyPI; needs to be manually installed). Then, to actually use them, PyYAML suggests importing the LibY...
true
2023-09-27T21:13:36Z
2023-09-28T14:29:24Z
null
bryant1410
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/6266
null
5
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6266
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6266). All of your documentation changes will be reflected on that endpoint.", "On Ubuntu, if `libyaml-dev` is installed, you can install PyYAML 6.0.1 with LibYAML with the following command (as it's automatically detected):\r\...
1,915,651,566
6,265
Remove `apache_beam` import in `BeamBasedBuilder._save_info`
closed
... to avoid an `ImportError` raised in `BeamBasedBuilder._save_info` when `apache_beam` is not installed (e.g., when downloading the processed version of a dataset from the HF GCS) Fix https://github.com/huggingface/datasets/issues/6260
true
2023-09-27T13:56:34Z
2023-09-28T18:34:02Z
2023-09-28T18:23:35Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/6265
2023-09-28T18:23:35Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6265
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,914,958,781
6,264
Temporarily pin tensorflow < 2.14.0
closed
Temporarily pin tensorflow < 2.14.0 until permanent solution is found. Hot fix #6263.
true
2023-09-27T08:16:06Z
2023-09-27T08:45:24Z
2023-09-27T08:36:39Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/6264
2023-09-27T08:36:39Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6264
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,914,951,043
6,263
CI is broken: ImportError: cannot import name 'context' from 'tensorflow.python'
closed
Python 3.10 CI is broken for `test_py310`. See: https://github.com/huggingface/datasets/actions/runs/6322990957/job/17169678812?pr=6262 ``` FAILED tests/test_py_utils.py::TempSeedTest::test_tensorflow - ImportError: cannot import name 'context' from 'tensorflow.python' (/opt/hostedtoolcache/Python/3.10.13/x64/li...
true
2023-09-27T08:12:05Z
2023-09-27T08:36:40Z
2023-09-27T08:36:40Z
albertvillanova
MEMBER
null
null
0
0
0
0
null
false
[ "bug" ]
https://github.com/huggingface/datasets/issues/6263
false
[]
1,914,895,459
6,262
Fix CI 404 errors
closed
Currently our CI usually raises 404 errors when trying to delete temporary repositories. See, e.g.: https://github.com/huggingface/datasets/actions/runs/6314980985/job/17146507884 ``` FAILED tests/test_upstream_hub.py::TestPushToHub::test_push_dataset_dict_to_hub_multiple_files_with_max_shard_size - huggingface_hub.u...
true
2023-09-27T07:40:18Z
2023-09-28T15:39:16Z
2023-09-28T15:30:40Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/6262
2023-09-28T15:30:40Z
9
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6262
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,913,813,178
6,261
Can't load a dataset
closed
### Describe the bug Can't seem to load the JourneyDB dataset. It throws the following error: ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) Cell In[15], line 2 1 # If the dataset is gated/priv...
true
2023-09-26T15:46:25Z
2023-10-05T10:23:23Z
2023-10-05T10:23:22Z
joaopedrosdmm
NONE
null
null
5
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6261
false
[ "I believe is due to the fact that doesn't work with .tgz files.", "`JourneyDB/JourneyDB` is a gated dataset, so this error means you are not authenticated to access it, either by using an invalid token or by not agreeing to the terms in the dialog on the dataset page.\r\n\r\n> I believe is due to the fact that d...
1,912,593,466
6,260
REUSE_DATASET_IF_EXISTS don't work
closed
### Describe the bug I use the following code to download natural_question dataset. Even though I have completely download it, the next time I run this code, the new download procedure will start and cover the original /data/lxy/NQ config=datasets.DownloadConfig(resume_download=True,max_retries=100,cache_dir=r'/da...
true
2023-09-26T03:02:16Z
2023-09-28T18:23:36Z
2023-09-28T18:23:36Z
rangehow
NONE
null
null
3
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6260
false
[ "Hi! Unfortunately, the current behavior is to delete the downloaded data when this error happens. So, I've opened a PR that removes the problematic import to avoid losing data due to `apache_beam` not being installed (we host the preprocessed version of `natual_questions` on the HF GCS, so requiring `apache_beam` ...
1,911,965,758
6,259
Duplicated Rows When Loading Parquet Files from Root Directory with Subdirectories
closed
### Describe the bug When parquet files are saved in "train" and "val" subdirectories under a root directory, and datasets are then loaded using `load_dataset("parquet", data_dir="root_directory")`, the resulting dataset has duplicated rows for both the training and validation sets. ### Steps to reproduce the bug...
true
2023-09-25T17:20:54Z
2024-03-15T15:22:04Z
2024-03-15T15:22:04Z
MF-FOOM
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6259
false
[ "Thanks for reporting this issue! We should be able to avoid this by making our `glob` patterns more precise. In the meantime, you can load the dataset by directly assigning splits to the data files: \r\n```python\r\nfrom datasets import load_dataset\r\nds = load_dataset(\"parquet\", data_files={\"train\": \"testin...
1,911,445,373
6,258
[DOCS] Fix typo: Elasticsearch
closed
Not ElasticSearch :)
true
2023-09-25T12:50:59Z
2023-09-26T14:55:35Z
2023-09-26T13:36:40Z
leemthompo
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/6258
2023-09-26T13:36:40Z
2
1
1
0
false
false
[]
https://github.com/huggingface/datasets/pull/6258
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,910,741,044
6,257
HfHubHTTPError - exceeded our hourly quotas for action: commit
closed
### Describe the bug I try to upload a very large dataset of images, and get the following error: ``` File /fsx-multigen/yuvalkirstain/miniconda/envs/pickapic/lib/python3.10/site-packages/huggingface_hub/hf_api.py:2712, in HfApi.create_commit(self, repo_id, operations, commit_message, commit_description, token, repo...
true
2023-09-25T06:11:43Z
2023-10-16T13:30:49Z
2023-10-16T13:30:48Z
yuvalkirstain
NONE
null
null
4
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6257
false
[ "how is your dataset structured? (file types, how many commits and files are you trying to push, etc)", "I succeeded in uploading it after several attempts with an hour gap between each attempt (inconvenient but worked). The final dataset is [here](https://huggingface.co/datasets/yuvalkirstain/pickapic_v2), code ...
1,910,275,199
6,256
load_dataset() function's cache_dir does not seems to work
closed
### Describe the bug datasets version: 2.14.5 when trying to run the following command trec = load_dataset('trec', split='train[:1000]', cache_dir='/path/to/my/dir') I keep getting error saying the command does not have permission to the default cache directory on my macbook pro machine. It seems the cache_...
true
2023-09-24T15:34:06Z
2025-05-14T10:08:53Z
2024-10-08T15:45:18Z
andyzhu
NONE
null
null
8
1
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6256
false
[ "Can you share the error message?\r\n\r\nAlso, it would help if you could check whether `huggingface_hub`'s download behaves the same:\r\n```python\r\nfrom huggingface_hub import snapshot_download\r\nsnapshot_download(\"trec\", repo_type=\"dataset\", cache_dir='/path/to/my/dir)\r\n```\r\n\r\nIn the next major relea...
1,909,842,977
6,255
Parallelize builder configs creation
closed
For datasets with lots of configs defined in YAML E.g. `load_dataset("uonlp/CulturaX", "fr", revision="refs/pr/6")` from >1min to 15sec
true
2023-09-23T11:56:20Z
2024-01-11T06:32:34Z
2023-09-26T15:44:19Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/6255
null
5
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6255
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,909,672,104
6,254
Dataset.from_generator() cost much more time in vscode debugging mode then running mode
closed
### Describe the bug Hey there, I’m using Dataset.from_generator() to convert a torch_dataset to the Huggingface Dataset. However, when I debug my code on vscode, I find that it runs really slow on Dataset.from_generator() which may even 20 times longer then run the script on terminal. ### Steps to reproduce the bu...
true
2023-09-23T02:07:26Z
2023-10-03T14:42:53Z
2023-10-03T14:42:53Z
dontnet-wuenze
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6254
false
[ "Answered on the forum: https://discuss.huggingface.co/t/dataset-from-generator-cost-much-more-time-in-vscode-debugging-mode-then-running-mode/56005/2" ]
1,906,618,910
6,253
Check builder cls default config name in inspect
closed
Fix https://github.com/huggingface/datasets-server/issues/1812 this was causing this issue: ```ipython In [1]: from datasets import * In [2]: inspect.get_dataset_config_names("aakanksha/udpos") Out[2]: ['default'] In [3]: load_dataset_builder("aakanksha/udpos").config.name Out[3]: 'en' ```
true
2023-09-21T10:15:32Z
2023-09-21T14:16:44Z
2023-09-21T14:08:00Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/6253
2023-09-21T14:08:00Z
4
1
0
1
false
false
[]
https://github.com/huggingface/datasets/pull/6253
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,906,375,378
6,252
exif_transpose not done to Image (PIL problem)
closed
### Feature request I noticed that some of my images loaded using PIL have some metadata related to exif that can rotate them when loading. Since the dataset.features.Image uses PIL for loading, the loaded image may be rotated (width and height will be inverted) thus for tasks as object detection and layoutLM this ca...
true
2023-09-21T08:11:46Z
2024-03-19T15:29:43Z
2024-03-19T15:29:43Z
rhajou
NONE
null
null
2
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/6252
false
[ "Indeed, it makes sense to do this by default. \r\n\r\nIn the meantime, you can use `.with_transform` to transpose the images when accessing them:\r\n\r\n```python\r\nimport PIL.ImageOps\r\n\r\ndef exif_transpose_transform(batch):\r\n batch[\"image\"] = [PIL.ImageOps.exif_transpose(image) for image in batch[\"imag...
1,904,418,426
6,251
Support streaming datasets with pyarrow.parquet.read_table
closed
Support streaming datasets with `pyarrow.parquet.read_table`. See: https://huggingface.co/datasets/uonlp/CulturaX/discussions/2 CC: @AndreaFrancis
true
2023-09-20T08:07:02Z
2023-09-27T06:37:03Z
2023-09-27T06:26:24Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/6251
2023-09-27T06:26:24Z
10
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6251
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "This function reads an entire Arrow table in one go, which is not ideal memory-wise, so I don't think we should encourage using this function, considering we want to keep RAM usage as low as possible in the streaming mode. \r\n\r\n(N...
1,901,390,945
6,247
Update create_dataset.mdx
closed
modified , as AudioFolder and ImageFolder not in Dataset Library. ``` from datasets import AudioFolder ``` and ```from datasets import ImageFolder``` to ```from datasets import load_dataset``` ``` cannot import name 'AudioFolder' from 'datasets' (/home/eswardivi/miniconda3/envs/Hugformers/lib/python3.10/site...
true
2023-09-18T17:06:29Z
2023-09-19T18:51:49Z
2023-09-19T18:40:10Z
EswarDivi
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/6247
2023-09-19T18:40:10Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6247
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,899,848,414
6,246
Add new column to dataset
closed
### Describe the bug ``` --------------------------------------------------------------------------- KeyError Traceback (most recent call last) [<ipython-input-9-bd197b36b6a0>](https://localhost:8080/#) in <cell line: 1>() ----> 1 dataset['train']['/workspace/data'] 3 frames [/...
true
2023-09-17T16:59:48Z
2023-09-18T16:20:09Z
2023-09-18T16:20:09Z
andysingal
NONE
null
null
4
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6246
false
[ "I think it's an issue with the code.\r\n\r\nSpecifically:\r\n```python\r\ndataset = dataset['train'].add_column(\"/workspace/data\", new_column)\r\n```\r\n\r\nNow `dataset` is the train set with a new column. \r\nTo fix this, you can do:\r\n\r\n```python\r\ndataset['train'] = dataset['train'].add_column(\"/workspa...
1,898,861,422
6,244
Add support for `fsspec>=2023.9.0`
closed
Fix #6214
true
2023-09-15T17:58:25Z
2023-09-26T15:41:38Z
2023-09-26T15:32:51Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/6244
2023-09-26T15:32:51Z
19
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6244
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,898,532,784
6,243
Fix cast from fixed size list to variable size list
closed
Fix #6242
true
2023-09-15T14:23:33Z
2023-09-19T18:02:21Z
2023-09-19T17:53:17Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/6243
2023-09-19T17:53:17Z
6
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6243
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,896,899,123
6,242
Data alteration when loading dataset with unspecified inner sequence length
closed
### Describe the bug When a dataset saved with a specified inner sequence length is loaded without specifying that length, the original data is altered and becomes inconsistent. ### Steps to reproduce the bug ```python from datasets import Dataset, Features, Value, Sequence, load_dataset # Repository ID repo_id...
true
2023-09-14T16:12:45Z
2023-09-19T17:53:18Z
2023-09-19T17:53:18Z
qgallouedec
MEMBER
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6242
false
[ "While this issue may seem specific, it led to a silent problem in my workflow that took days to diagnose. If this feature is not intended to be supported, an error should be raised when encountering this configuration to prevent such issues.", "Thanks for reporting! This is a MRE:\r\n\r\n```python\r\nimport pyar...
1,896,429,694
6,241
Remove unused global variables in `audio.py`
closed
true
2023-09-14T12:06:32Z
2023-09-15T15:57:10Z
2023-09-15T15:46:07Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/6241
2023-09-15T15:46:07Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6241
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,895,723,888
6,240
Dataloader stuck on multiple GPUs
closed
### Describe the bug I am trying to get CLIP to fine-tuning with my code. When I tried to run it on multiple GPUs using accelerate, I encountered the following phenomenon. - Validation dataloader stuck in 2nd epoch only on multi-GPU Specifically, when the "for inputs in valid_loader:" process is finished, it does...
true
2023-09-14T05:30:30Z
2023-09-14T23:54:42Z
2023-09-14T23:54:42Z
kuri54
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6240
false
[ "What type of dataset are you using in this script? `torch.utils.data.Dataset` or `datasets.Dataset`? Please share the `datasets` package version if it's the latter. Otherwise, it's better to move this issue to the `accelerate` repo.", "Very sorry, I thought I had a repo in `accelerate!`\r\nI will close this issu...
1,895,349,382
6,239
Load local audio data doesn't work
closed
### Describe the bug I get a RuntimeError from the following code: ```python audio_dataset = Dataset.from_dict({"audio": ["/kaggle/input/bengaliai-speech/train_mp3s/000005f3362c.mp3"]}).cast_column("audio", Audio()) audio_dataset[0] ``` ### Traceback <details> ```python RuntimeError ...
true
2023-09-13T22:30:01Z
2023-09-15T14:32:10Z
2023-09-15T14:32:10Z
abodacs
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6239
false
[ "I think this is the same issue as https://github.com/huggingface/datasets/issues/4776. Maybe installing `ffmpeg` can fix it:\r\n```python\r\nadd-apt-repository -y ppa:savoury1/ffmpeg4\r\napt-get -qq install -y ffmpeg\r\n```\r\n\r\nHowever, the best solution is to use a newer version of `datasets`. In the recent re...
1,895,207,828
6,238
`dataset.filter` ALWAYS removes the first item from the dataset when using batched=True
closed
### Describe the bug If you call batched=True when calling `filter`, the first item is _always_ filtered out, regardless of the filter condition. ### Steps to reproduce the bug Here's a minimal example: ```python def filter_batch_always_true(batch, indices): print("First index being passed into this filte...
true
2023-09-13T20:20:37Z
2023-09-17T07:05:07Z
2023-09-17T07:05:07Z
Taytay
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6238
false
[ "`filter` treats the function's output as a (selection) mask - `True` keeps the sample, and `False` drops it. In your case, `bool(0)` evaluates to `False`, so dropping the first sample is the correct behavior.", "Oh gosh! 🤦 I totally misunderstood the API! My apologies!" ]
1,893,822,321
6,237
Tokenization with multiple workers is too slow
closed
I am trying to tokenize a few million documents with multiple workers but the tokenization process is taking forever. Code snippet: ``` raw_datasets.map( encode_function, batched=False, num_proc=args.preprocessing_num_workers, load_from_cache_file=not args.ove...
true
2023-09-13T06:18:34Z
2023-09-19T21:54:58Z
2023-09-19T21:54:58Z
macabdul9
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6237
false
[ "[This](https://huggingface.co/docs/datasets/nlp_process#map) is the most performant way to tokenize a dataset (`batched=True, num_proc=None, return_tensors=\"np\"`) \r\n\r\nIf`tokenizer.is_fast` returns `True`, `num_proc` must be `None/1` to benefit from the fast tokenizers' parallelism (the fast tokenizers are im...
1,893,648,480
6,236
Support buffer shuffle for to_tf_dataset
open
### Feature request I'm using to_tf_dataset to convert a large dataset to tf.data.Dataset and use Keras fit to train model. Currently, to_tf_dataset only supports full size shuffle, which can be very slow on large dataset. tf.data.Dataset support buffer shuffle by default. shuffle( buffer_size, seed=None, r...
true
2023-09-13T03:19:44Z
2023-09-18T01:11:21Z
null
EthanRock
NONE
null
null
3
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/6236
false
[ "cc @Rocketknight1 ", "Hey! You can implement this yourself, just:\r\n\r\n1) Create the dataset with `to_tf_dataset()` with `shuffle=False`\r\n2) Add an `unbatch()` at the end (or use batch_size=1)\r\n3) Add a `shuffle()` to the resulting dataset with your desired buffer size\r\n4) Add a `batch()` at the end agai...
1,893,337,083
6,235
Support multiprocessing for download/extract nestedly
open
### 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...
true
2023-09-12T21:51:08Z
2023-09-12T21:51:08Z
null
hgt312
NONE
null
null
0
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/6235
false
[]
1,891,804,286
6,233
Update README.md
closed
fixed a typo
true
2023-09-12T06:53:06Z
2023-09-13T18:20:50Z
2023-09-13T18:10:04Z
NinoRisteski
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/6233
2023-09-13T18:10:04Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6233
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,891,109,762
6,232
Improve error message for missing function parameters
closed
The error message in the fingerprint module was missing the f-string 'f' symbol, so the error message returned by fingerprint.py, line 469 was literally "function {func} is missing parameters {fingerprint_names} in signature." This has been fixed.
true
2023-09-11T19:11:58Z
2023-09-15T18:07:56Z
2023-09-15T17:59:02Z
suavemint
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/6232
2023-09-15T17:59:02Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6232
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "CI errors are unrelated", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_nu...
1,890,863,249
6,231
Overwrite legacy default config name in `dataset_infos.json` in packaged datasets
open
Currently if we push data as default config with `.push_to_hub` to a repo that has a legacy `dataset_infos.json` file containing a legacy default config name like `{username}--{dataset_name}`, new key `"default"` is added to `dataset_infos.json` along with the legacy one. I think the legacy one should be dropped in thi...
true
2023-09-11T16:27:09Z
2023-09-26T11:19:36Z
null
polinaeterna
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/6231
null
9
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6231
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6231). All of your documentation changes will be reflected on that endpoint.", "realized that this pr is still not merged, @lhoestq maybe you can take a look at it? ", "I think https://github.com/huggingface/datasets/pull/621...
1,890,521,006
6,230
Don't skip hidden files in `dl_manager.iter_files` when they are given as input
closed
Required for `load_dataset(<format>, data_files=["path/to/.hidden_file"])` to work as expected
true
2023-09-11T13:29:19Z
2023-09-13T18:21:28Z
2023-09-13T18:12:09Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/6230
2023-09-13T18:12:09Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6230
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,889,050,954
6,229
Apply inference on all images in the dataset
closed
### 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...
true
2023-09-10T08:36:12Z
2023-09-20T16:11:53Z
2023-09-20T16:11:52Z
andysingal
NONE
null
null
3
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6229
false
[ "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_...
1,887,959,311
6,228
Remove RGB -> BGR image conversion in Object Detection tutorial
closed
Fix #6225
true
2023-09-08T16:09:13Z
2023-09-08T18:02:49Z
2023-09-08T17:52:16Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/6228
2023-09-08T17:52:16Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6228
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,887,462,591
6,226
Add push_to_hub with multiple configs docs
closed
true
2023-09-08T11:08:55Z
2023-09-08T12:29:21Z
2023-09-08T12:20:51Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/6226
2023-09-08T12:20:51Z
3
2
0
2
false
false
[]
https://github.com/huggingface/datasets/pull/6226
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,887,054,320
6,225
Conversion from RGB to BGR in Object Detection tutorial
closed
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...
true
2023-09-08T06:49:19Z
2023-09-08T17:52:18Z
2023-09-08T17:52:17Z
samokhinv
NONE
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6225
false
[ "Good catch!" ]
1,886,043,692
6,224
Ignore `dataset_info.json` in data files resolution
closed
`save_to_disk` creates this file, but also [`HugginFaceDatasetSever`](https://github.com/gradio-app/gradio/blob/26fef8c7f85a006c7e25cdbed1792df19c512d02/gradio/flagging.py#L214), so this is needed to avoid issues such as [this one](https://discord.com/channels/879548962464493619/1149295819938349107/1149295819938349107)...
true
2023-09-07T14:43:51Z
2023-09-07T15:46:10Z
2023-09-07T15:37:20Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/6224
2023-09-07T15:37:20Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6224
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,885,710,696
6,223
Update README.md
closed
fixed a few typos
true
2023-09-07T11:33:20Z
2023-09-13T22:32:31Z
2023-09-13T22:23:42Z
NinoRisteski
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/6223
2023-09-13T22:23:42Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6223
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,884,875,510
6,222
fix typo in Audio dataset documentation
closed
There is a typo in the section of the documentation dedicated to creating an audio dataset. The Dataset is incorrectly suffixed with a `Config` https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia/blob/main/librivox-indonesia.py#L59
true
2023-09-06T23:17:24Z
2023-10-03T14:18:41Z
2023-09-07T15:39:09Z
prassanna-ravishankar
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/6222
2023-09-07T15:39:09Z
2
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6222
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,884,324,631
6,221
Support saving datasets with custom formatting
open
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...
true
2023-09-06T16:03:32Z
2023-09-06T18:32:07Z
null
mariosasko
COLLABORATOR
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6221
false
[ "Not a fan of pickling this sort of stuff either.\r\nNote that users can also share the code in their dataset documentation." ]
1,884,285,980
6,220
Set dev version
closed
true
2023-09-06T15:40:33Z
2023-09-06T15:52:33Z
2023-09-06T15:41:13Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/6220
2023-09-06T15:41:13Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6220
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6220). All of your documentation changes will be reflected on that endpoint.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchma...
1,884,244,334
6,219
Release: 2.14.5
closed
true
2023-09-06T15:17:10Z
2023-09-06T15:46:20Z
2023-09-06T15:18:51Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/6219
2023-09-06T15:18:51Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6219
true
[ "The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6219). All of your documentation changes will be reflected on that endpoint.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchma...
1,883,734,000
6,218
Rename old push_to_hub configs to "default" in dataset_infos
closed
Fix ```python from datasets import load_dataset_builder b = load_dataset_builder("lambdalabs/pokemon-blip-captions", "default") print(b.info) ``` which should return ``` DatasetInfo( features={'image': Image(decode=True, id=None), 'text': Value(dtype='string', id=None)}, dataset_name='pokemon-bli...
true
2023-09-06T10:40:05Z
2023-09-07T08:31:29Z
2023-09-06T11:23:56Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/6218
2023-09-06T11:23:56Z
8
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6218
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,883,614,607
6,217
`Dataset.to_dict()` ignore `decode=True` with Image feature
open
### 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...
true
2023-09-06T09:26:16Z
2023-09-08T17:08:52Z
null
qgallouedec
MEMBER
null
null
1
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6217
false
[ "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." ]
1,883,492,703
6,216
Release: 2.13.2
closed
true
2023-09-06T08:15:32Z
2023-09-06T08:52:18Z
2023-09-06T08:22:43Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/6216
2023-09-06T08:22:43Z
5
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6216
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,882,176,970
6,215
Fix checking patterns to infer packaged builder
closed
Don't ignore results of pattern resolving if `self.data_files` is not None. Otherwise lines 854 and 1037 make no sense.
true
2023-09-05T15:10:47Z
2023-09-06T10:34:00Z
2023-09-06T10:25:00Z
polinaeterna
CONTRIBUTOR
https://github.com/huggingface/datasets/pull/6215
2023-09-06T10:25:00Z
3
1
1
0
false
false
[]
https://github.com/huggingface/datasets/pull/6215
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "oh wow good catch", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy af...
1,881,736,469
6,214
Unpin fsspec < 2023.9.0
closed
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
true
2023-09-05T11:02:58Z
2023-09-26T15:32:52Z
2023-09-26T15:32:52Z
albertvillanova
MEMBER
null
null
0
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/6214
false
[]
1,880,592,987
6,213
Better list array values handling in cast/embed storage
closed
Use [`array.flatten`](https://arrow.apache.org/docs/python/generated/pyarrow.ListArray.html#pyarrow.ListArray.flatten) that takes `.offset` into account instead of `array.values` in array cast/embed.
true
2023-09-04T16:21:23Z
2024-01-11T06:32:20Z
2023-10-05T15:24:34Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/6213
null
5
0
0
0
true
false
[]
https://github.com/huggingface/datasets/pull/6213
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,880,399,516
6,212
Tilde (~) is not supported for data_files
open
### 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...
true
2023-09-04T14:23:49Z
2023-09-05T08:28:39Z
null
exs-avianello
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6212
false
[ "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...
1,880,265,906
6,211
Fix empty splitinfo json
closed
If a split is empty, then the JSON split info should mention num_bytes = 0 and num_examples = 0. Until now they were omited because the JSON dumps ignore the fields that are equal to the default values. This is needed in datasets-server since we parse this information to the viewer
true
2023-09-04T13:13:53Z
2023-09-04T14:58:34Z
2023-09-04T14:47:17Z
lhoestq
MEMBER
https://github.com/huggingface/datasets/pull/6211
2023-09-04T14:47:17Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6211
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,879,649,731
6,210
Temporarily pin fsspec < 2023.9.0
closed
Temporarily pin fsspec < 2023.9.0 until permanent solution is found. Hot fix #6209.
true
2023-09-04T07:07:07Z
2023-09-04T07:40:23Z
2023-09-04T07:30:00Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/6210
2023-09-04T07:30:00Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6210
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,879,622,000
6,209
CI is broken with AssertionError: 3 failed, 12 errors
closed
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 - ...
true
2023-09-04T06:47:05Z
2023-09-04T07:30:01Z
2023-09-04T07:30:01Z
albertvillanova
MEMBER
null
null
0
0
0
0
null
false
[ "bug" ]
https://github.com/huggingface/datasets/issues/6209
false
[]
1,879,572,646
6,208
Do not filter out .zip extensions from no-script datasets
closed
This PR is a hotfix of: - #6207 That PR introduced the filtering out of `.zip` extensions. This PR reverts that. Hot fix #6207. Maybe we should do patch releases: the bug was introduced in 2.13.1. CC: @lhoestq
true
2023-09-04T06:07:12Z
2023-09-04T09:22:19Z
2023-09-04T09:13:32Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/6208
2023-09-04T09:13:32Z
6
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6208
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,879,555,234
6,207
No-script datasets with ZIP files do not load
closed
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: [ { ...
true
2023-09-04T05:50:27Z
2023-09-04T09:13:33Z
2023-09-04T09:13:33Z
albertvillanova
MEMBER
null
null
0
0
0
0
null
false
[ "bug" ]
https://github.com/huggingface/datasets/issues/6207
false
[]
1,879,473,745
6,206
When calling load_dataset, raise error: pyarrow.lib.ArrowInvalid: offset overflow while concatenating arrays
closed
### 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 ...
true
2023-09-04T04:14:00Z
2024-04-17T15:53:29Z
2023-09-04T06:05:49Z
aihao2000
NONE
null
null
2
1
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6206
false
[ "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=...)...
1,877,491,602
6,203
Support loading from a DVC remote repository
closed
### 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...
true
2023-09-01T14:04:52Z
2023-09-15T15:11:27Z
2023-09-15T15:11:27Z
bilelomrani1
NONE
null
null
4
0
0
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/6203
false
[ "(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.\...
1,876,630,351
6,202
avoid downgrading jax version
closed
### 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...
true
2023-09-01T02:57:57Z
2023-10-12T16:28:59Z
2023-10-12T16:28:59Z
chrisflesher
NONE
null
null
1
2
2
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/6202
false
[ "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?" ]
1,875,256,775
6,201
Fix to_json ValueError and remove pandas pin
closed
This PR fixes the root cause of the issue: - #6197 This PR also removes the temporary pin of `pandas` introduced by: - #6200 Note that for orient in ['records', 'values'], index value is ignored but - in `pandas` < 2.1.0, a ValueError is raised if not index and orient not in ['split', 'table'] - for orien...
true
2023-08-31T10:38:08Z
2023-09-05T11:07:07Z
2023-09-05T10:58:21Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/6201
2023-09-05T10:58:21Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6201
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,875,169,551
6,200
Temporarily pin pandas < 2.1.0
closed
Temporarily pin `pandas` < 2.1.0 until permanent solution is found. Hot fix #6197.
true
2023-08-31T09:45:17Z
2023-08-31T10:33:24Z
2023-08-31T10:24:38Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/6200
2023-08-31T10:24:38Z
3
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6200
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,875,165,185
6,199
Use load_dataset for local json files, but it not works
open
### 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...
true
2023-08-31T09:42:34Z
2023-08-31T19:05:07Z
null
Garen-in-bush
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6199
false
[ "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 ...
1,875,092,027
6,198
Preserve split order in DataFilesDict
closed
After investigation, I have found that this copy forces the splits to be sorted alphabetically: https://github.com/huggingface/datasets/blob/029227a116c14720afca71b9b22e78eb2a1c09a6/src/datasets/builder.py#L556 This PR removes the alphabetically sort of `DataFilesDict` keys. - Note that for a `dict`, the order of k...
true
2023-08-31T09:00:26Z
2023-08-31T13:57:31Z
2023-08-31T13:48:42Z
albertvillanova
MEMBER
https://github.com/huggingface/datasets/pull/6198
2023-08-31T13:48:42Z
4
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6198
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | rea...
1,875,078,155
6,197
ValueError: 'index=True' is only valid when 'orient' is 'split', 'table', 'index', or 'columns'
closed
### 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...
true
2023-08-31T08:51:50Z
2023-09-01T10:35:10Z
2023-08-31T10:24:40Z
exs-avianello
NONE
null
null
3
1
1
0
null
false
[]
https://github.com/huggingface/datasets/issues/6197
false
[ "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...
1,875,070,972
6,196
Split order is not preserved
closed
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...
true
2023-08-31T08:47:16Z
2023-08-31T13:48:43Z
2023-08-31T13:48:43Z
albertvillanova
MEMBER
null
null
0
0
0
0
null
false
[ "bug" ]
https://github.com/huggingface/datasets/issues/6196
false
[]
1,874,195,585
6,195
Force to reuse cache at given path
closed
### 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 ...
true
2023-08-30T18:44:54Z
2023-11-03T10:14:21Z
2023-08-30T19:00:45Z
Luosuu
NONE
null
null
2
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6195
false
[ "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_...
1,872,598,223
6,194
Support custom fingerprinting with `Dataset.from_generator`
open
### 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 ...
true
2023-08-29T22:43:13Z
2024-12-22T01:14:39Z
null
bilelomrani1
NONE
null
null
7
3
3
0
null
false
[ "enhancement" ]
https://github.com/huggingface/datasets/issues/6194
false
[ "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...
1,872,285,153
6,193
Dataset loading script method does not work with .pyc file
open
### 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 ? #...
true
2023-08-29T19:35:06Z
2023-08-31T19:47:29Z
null
riteshkumarumassedu
NONE
null
null
3
0
0
0
null
false
[]
https://github.com/huggingface/datasets/issues/6193
false
[ "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...
1,871,911,640
6,192
Set minimal fsspec version requirement to 2023.1.0
closed
Fix https://github.com/huggingface/datasets/issues/6141 Colab installs 2023.6.0, so we should be good 🙂
true
2023-08-29T15:23:41Z
2023-08-30T14:01:56Z
2023-08-30T13:51:32Z
mariosasko
COLLABORATOR
https://github.com/huggingface/datasets/pull/6192
2023-08-30T13:51:32Z
5
0
0
0
false
false
[]
https://github.com/huggingface/datasets/pull/6192
true
[ "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_array_xd.json\n\n| metric | read_batch_formatted_as_numpy after write_array2d | read_batch_formatted_as_numpy after write_flattened_sequence | read_batch_formatted_a...
1,871,634,840
6,191
Add missing `revision` argument
closed
I've noticed that when you're not working on the main branch, there are sometimes errors in the files returned. After some investigation, I realized that the revision was not properly passed everywhere. This PR proposes a fix.
true
2023-08-29T13:05:04Z
2023-09-04T06:38:17Z
2023-08-31T13:50:00Z
qgallouedec
MEMBER
https://github.com/huggingface/datasets/pull/6191
2023-08-31T13:50:00Z
4
1
1
0
false
false
[]
https://github.com/huggingface/datasets/pull/6191
true
[ "_The documentation is not available anymore as the PR was closed or merged._", "I have found the same issue. Good fix. Should be merged as soon as possible.", "<details>\n<summary>Show benchmarks</summary>\n\nPyArrow==8.0.0\n\n<details>\n<summary>Show updated benchmarks!</summary>\n\n### Benchmark: benchmark_a...