html_url
stringlengths
48
51
title
stringlengths
5
268
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
164
54.1k
embeddings
list
https://github.com/huggingface/datasets/issues/3018
Support multiple zipped CSV data files
`data_dir` is currently exclusively used for manually downloaded data. Maybe we can have an API that only uses data_files as you are suggesting, using URL chaining ? ```python from datasets import load_dataset url = "https://domain.org/filename.zip" data_files = {"train": "zip://train_filename.csv::" + url, "t...
As requested by @lewtun, support loading multiple zipped CSV data files. ```python from datasets import load_dataset url = "https://domain.org/filename.zip" data_files = {"train": "train_filename.csv", "test": "test_filename.csv"} dataset = load_dataset("csv", data_dir=url, data_files=data_files) ```
91
Support multiple zipped CSV data files As requested by @lewtun, support loading multiple zipped CSV data files. ```python from datasets import load_dataset url = "https://domain.org/filename.zip" data_files = {"train": "train_filename.csv", "test": "test_filename.csv"} dataset = load_dataset("csv", data_dir=...
[ -0.1517476439, 0.020761596, -0.2865624726, 0.0424872264, 0.0839063078, 0.0142052304, 0.318239212, 0.3192950785, 0.3058343232, 0.1624243259, -0.175252825, 0.2003959566, 0.0179094281, 0.5145021081, -0.0635829791, -0.0473536104, 0.0735590085, 0.0708628744, -0.3205327392, 0.2626329...
https://github.com/huggingface/datasets/issues/3018
Support multiple zipped CSV data files
URL chaining sounds super nice to me! And it's also a nice way to leverage the same concepts we currently have in the docs around `fsspec` :)
As requested by @lewtun, support loading multiple zipped CSV data files. ```python from datasets import load_dataset url = "https://domain.org/filename.zip" data_files = {"train": "train_filename.csv", "test": "test_filename.csv"} dataset = load_dataset("csv", data_dir=url, data_files=data_files) ```
27
Support multiple zipped CSV data files As requested by @lewtun, support loading multiple zipped CSV data files. ```python from datasets import load_dataset url = "https://domain.org/filename.zip" data_files = {"train": "train_filename.csv", "test": "test_filename.csv"} dataset = load_dataset("csv", data_dir=...
[ -0.2157414109, -0.164260909, -0.2551282048, -0.1260853112, 0.1416182667, -0.0345897824, 0.2652951777, 0.251398623, 0.2857457399, 0.2783491611, -0.0589771494, 0.055486124, 0.0669116974, 0.7944071889, -0.0695711374, 0.0996731818, 0.1315495074, 0.0356053114, -0.3957931399, 0.21550...
https://github.com/huggingface/datasets/issues/3013
Improve `get_dataset_infos`?
To keeps things simple maybe we should use `load_dataset_builder` in `get_dataset_infos`. `load_dataset_builder` instantiates a builder and runs the _infos() method in order to give you the most up-to-date infos, even if the dataset_infos.json is outdated or missing.
Using the dedicated function `get_dataset_infos` on a dataset that has no dataset-info.json file returns an empty info: ``` >>> from datasets import get_dataset_infos >>> get_dataset_infos('wit') {} ``` While it's totally possible to get it (regenerate it) with: ``` >>> from datasets import load_dataset_b...
37
Improve `get_dataset_infos`? Using the dedicated function `get_dataset_infos` on a dataset that has no dataset-info.json file returns an empty info: ``` >>> from datasets import get_dataset_infos >>> get_dataset_infos('wit') {} ``` While it's totally possible to get it (regenerate it) with: ``` >>> from...
[ -0.033454068, 0.2061550766, -0.1745596975, 0.3140961826, 0.2758380175, -0.0529509336, 0.171355769, 0.5251321197, -0.06918744, 0.175650999, 0.0600980781, 0.2291975617, 0.0621007457, 0.1081235111, -0.0653371587, 0.1299307495, -0.2171018869, 0.2951031029, 0.1627136469, -0.39375239...
https://github.com/huggingface/datasets/issues/3011
load_dataset_builder should error if "name" does not exist?
Yes I think it should raise an error. Currently it looks like it instantiates a custom configuration with the name given by the user: https://github.com/huggingface/datasets/blob/ba27ce33bf568374cf23a07669fdd875b5718bc2/src/datasets/builder.py#L391-L397
``` import datasets as ds builder = ds.load_dataset_builder('sent_comp', name="doesnotexist") builder.info.config_name ``` returns ``` 'doesnotexist' ``` Shouldn't it raise an error instead? For this dataset, the only valid values for `name` should be: `"default"` or `None` (ie. argument not passed)
25
load_dataset_builder should error if "name" does not exist? ``` import datasets as ds builder = ds.load_dataset_builder('sent_comp', name="doesnotexist") builder.info.config_name ``` returns ``` 'doesnotexist' ``` Shouldn't it raise an error instead? For this dataset, the only valid values for `name...
[ -0.1365151405, -0.0678221509, 0.0515267551, 0.4797347188, 0.1939743161, 0.131363973, 0.4507779181, 0.0584306046, 0.1885160506, 0.4071678221, 0.2744371891, 0.065415889, -0.1559427083, 0.0452122986, 0.0748663545, 0.109222196, 0.051594004, 0.4053525627, 0.0932737067, -0.0820035934...
https://github.com/huggingface/datasets/issues/3010
Chain filtering is leaking
### Update: I wrote a bit cleaner code snippet (without transforming to json) that can expose leaking. ```python import datasets import json items = ['ab', 'c', 'df'] ds = datasets.Dataset.from_dict({'col': items}) print(list(ds)) # > Prints: [{'col': 'ab'}, {'col': 'c'}, {'col': 'df'}] filtered = ds ...
## Describe the bug As there's no support for lists within dataset fields, I convert my lists to json-string format. However, the bug described is occurring even when the data format is 'string'. These samples show that filtering behavior diverges from what's expected when chaining filterings. On sample 2 the second...
118
Chain filtering is leaking ## Describe the bug As there's no support for lists within dataset fields, I convert my lists to json-string format. However, the bug described is occurring even when the data format is 'string'. These samples show that filtering behavior diverges from what's expected when chaining filter...
[ -0.1847152114, 0.1612460464, -0.1516268998, 0.2235311419, -0.12694332, -0.125419274, 0.2978747487, 0.2360770851, 0.3307057321, -0.2883339226, -0.084759295, 0.5628125072, 0.1776728779, 0.0540363379, -0.1557192206, -0.0142784687, 0.0818480402, -0.2436116189, -0.0772112459, 0.0644...
https://github.com/huggingface/datasets/issues/3010
Chain filtering is leaking
I just pushed a fix ! We'll do a new release soon. In the meantime feel free to install `datasets` from source to play with it
## Describe the bug As there's no support for lists within dataset fields, I convert my lists to json-string format. However, the bug described is occurring even when the data format is 'string'. These samples show that filtering behavior diverges from what's expected when chaining filterings. On sample 2 the second...
26
Chain filtering is leaking ## Describe the bug As there's no support for lists within dataset fields, I convert my lists to json-string format. However, the bug described is occurring even when the data format is 'string'. These samples show that filtering behavior diverges from what's expected when chaining filter...
[ -0.1847152114, 0.1612460464, -0.1516268998, 0.2235311419, -0.12694332, -0.125419274, 0.2978747487, 0.2360770851, 0.3307057321, -0.2883339226, -0.084759295, 0.5628125072, 0.1776728779, 0.0540363379, -0.1557192206, -0.0142784687, 0.0818480402, -0.2436116189, -0.0772112459, 0.0644...
https://github.com/huggingface/datasets/issues/3005
DatasetDict.filter and Dataset.filter crashes with any "fn_kwargs" argument
Hi @DrMatters, thanks for reporting. This issue was fixed 14 days ago: #2950. Currently, the fix is only in the master branch and will be made available in our next library release. In the meantime, you can incorporate the fix by installing datasets from the master branch: ```shell pip install -U git+ssh://g...
## Describe the bug The ".filter" method of DatasetDict or Dataset objects fails when passing any "fn_kwargs" argument ## Steps to reproduce the bug ```python import datasets example_dataset = datasets.Dataset.from_dict({"a": {1, 2, 3, 4}}) def filter_value(example, value): return example['a'] == value...
60
DatasetDict.filter and Dataset.filter crashes with any "fn_kwargs" argument ## Describe the bug The ".filter" method of DatasetDict or Dataset objects fails when passing any "fn_kwargs" argument ## Steps to reproduce the bug ```python import datasets example_dataset = datasets.Dataset.from_dict({"a": {1, 2, ...
[ -0.1690021157, 0.107978031, -0.0990458727, 0.2168684155, 0.0916614607, -0.1244716272, 0.0616603978, 0.342654556, 0.1288869083, -0.0045323158, -0.077592738, 0.5116117001, -0.2248647213, 0.1222563162, -0.1808169186, -0.1617234647, 0.0669157952, -0.0306667332, -0.0628626123, -0.02...
https://github.com/huggingface/datasets/issues/2997
Dataset has incorrect labels
Hi @marshmellow77, thanks for reporting. That issue is fixed since `datasets` version 1.9.0 (see 16bc665f2753677c765011ef79c84e55486d4347). Please, update `datasets` with: `pip install -U datasets`
The dataset https://huggingface.co/datasets/turkish_product_reviews has incorrect labels - all reviews are labelled with "1" (positive sentiment). None of the reviews is labelled with "0". See screenshot attached: ![Capture](https://user-images.githubusercontent.com/63367770/135617428-14ce0b27-5208-4e66-a3ee-71542e3...
23
Dataset has incorrect labels The dataset https://huggingface.co/datasets/turkish_product_reviews has incorrect labels - all reviews are labelled with "1" (positive sentiment). None of the reviews is labelled with "0". See screenshot attached: ![Capture](https://user-images.githubusercontent.com/63367770/135617428-...
[ 0.0827174857, -0.3300806582, -0.1685770303, 0.1547695994, 0.038194865, 0.2151858658, 0.3849949241, 0.0040702578, -0.1630115211, -0.1092675254, -0.3049569428, 0.1451759338, 0.1469207108, 0.5568854809, 0.0549144447, 0.1013108715, 0.295524478, -0.134205386, 0.0368611477, -0.210872...
https://github.com/huggingface/datasets/issues/2997
Dataset has incorrect labels
Thanks. Please note that the dataset explorer (https://huggingface.co/datasets/viewer/?dataset=turkish_product_reviews) still shows the incorrect state. The sentiment for the first few customer reviews is actually negative and should be labelled with "0", see screenshot: ![Capture1](https://user-images.githubusercon...
The dataset https://huggingface.co/datasets/turkish_product_reviews has incorrect labels - all reviews are labelled with "1" (positive sentiment). None of the reviews is labelled with "0". See screenshot attached: ![Capture](https://user-images.githubusercontent.com/63367770/135617428-14ce0b27-5208-4e66-a3ee-71542e3...
33
Dataset has incorrect labels The dataset https://huggingface.co/datasets/turkish_product_reviews has incorrect labels - all reviews are labelled with "1" (positive sentiment). None of the reviews is labelled with "0". See screenshot attached: ![Capture](https://user-images.githubusercontent.com/63367770/135617428-...
[ 0.0925555453, -0.342415303, -0.1470149606, 0.2214362025, -0.1244757473, 0.1750771403, 0.2092047185, -0.0090171099, -0.190467149, -0.2527098358, -0.3256237507, -0.024851298, 0.105271332, 0.4831326008, 0.0100240223, 0.0766140744, 0.3029943705, -0.1475577801, 0.1747667193, -0.2336...
https://github.com/huggingface/datasets/issues/2993
Can't download `trivia_qa/unfiltered`
wooo that was fast! thank you @lhoestq ! it is able to process now, though it's ignoring all files and ending up with 0 examples now haha :/ For subset "unfiltered": ```python >>> load_dataset("trivia_qa", "unfiltered") Downloading and preparing dataset trivia_qa/unfiltered (download: 3.07 GiB, generated: 27.23 ...
## Describe the bug For some reason, I can't download `trivia_qa/unfilted`. A file seems to be missing... I am able to see it fine though the viewer tough... ## Steps to reproduce the bug ```python >>> from datasets import load_dataset >>> load_dataset("trivia_qa", "unfiltered") Downloading and preparing data...
264
Can't download `trivia_qa/unfiltered` ## Describe the bug For some reason, I can't download `trivia_qa/unfilted`. A file seems to be missing... I am able to see it fine though the viewer tough... ## Steps to reproduce the bug ```python >>> from datasets import load_dataset >>> load_dataset("trivia_qa", "unfi...
[ -0.1447088271, -0.1315829009, -0.0809883401, 0.2758615017, 0.4623160064, 0.3147658408, 0.0820354223, 0.2365656197, 0.1864876747, 0.1213062927, -0.1047465876, 0.0168528296, 0.0071841278, -0.1792372167, -0.0261296723, -0.1387260109, -0.0643539876, -0.0873091519, 0.2322926223, 0.1...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
Hi ! Could you check the length of the `self.dataset` object (i.e. the Dataset object passed to the data loader) ? It looks like the dataset is empty. Not sure why the SWA optimizer would cause this though.
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
38
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.3896140754, -0.2896889746, -0.0146301994, 0.3087926209, 0.3473482728, -0.2418410927, 0.3561573625, 0.2430758029, 0.194336459, 0.3443819582, 0.0316291563, 0.1856546849, -0.12412972, 0.0681874231, -0.3634162843, -0.318257004, -0.1385275126, 0.131955266, -0.2823426723, 0.161248...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
Any updates on this? The same error occurred to me too when running `cardiffnlp/twitter-roberta-base-sentiment` on a custom dataset. This happened when I tried to do `model = torch.nn.DataParallel(model, device_ids=[0, 1, 2, 3])` without using sagemaker distribution. Python: 3.6.13 datasets: 1.6.2
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
40
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.3896140754, -0.2896889746, -0.0146301994, 0.3087926209, 0.3473482728, -0.2418410927, 0.3561573625, 0.2430758029, 0.194336459, 0.3443819582, 0.0316291563, 0.1856546849, -0.12412972, 0.0681874231, -0.3634162843, -0.318257004, -0.1385275126, 0.131955266, -0.2823426723, 0.161248...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
Hi @ruisi-su, do you have this issue while using SWA as well, or just data parallel ? If you have a code example to reproduce this issue it would also be helpful
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
32
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.3896140754, -0.2896889746, -0.0146301994, 0.3087926209, 0.3473482728, -0.2418410927, 0.3561573625, 0.2430758029, 0.194336459, 0.3443819582, 0.0316291563, 0.1856546849, -0.12412972, 0.0681874231, -0.3634162843, -0.318257004, -0.1385275126, 0.131955266, -0.2823426723, 0.161248...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
@lhoestq I had this issue without SWA. I followed [this](https://github.com/huggingface/notebooks/blob/master/sagemaker/03_distributed_training_data_parallelism/sagemaker-notebook.ipynb) notebook to utilize multiple gpus on the [roberta-base](https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment) model. This...
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
74
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.3896140754, -0.2896889746, -0.0146301994, 0.3087926209, 0.3473482728, -0.2418410927, 0.3561573625, 0.2430758029, 0.194336459, 0.3443819582, 0.0316291563, 0.1856546849, -0.12412972, 0.0681874231, -0.3634162843, -0.318257004, -0.1385275126, 0.131955266, -0.2823426723, 0.161248...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
It might be an issue with old versions of `datasets`, can you try updating `datasets` ?
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
16
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.3896140754, -0.2896889746, -0.0146301994, 0.3087926209, 0.3473482728, -0.2418410927, 0.3561573625, 0.2430758029, 0.194336459, 0.3443819582, 0.0316291563, 0.1856546849, -0.12412972, 0.0681874231, -0.3634162843, -0.318257004, -0.1385275126, 0.131955266, -0.2823426723, 0.161248...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
FYI I encountered the exact same error using the latest versions of `datasets`, `transformers` and `pyarrow`, without using any kind of SWA or dataparallel: ``` # packages in environment at C:\Users\zhang\mambaforge: # # Name Version Build Channel cudatoolkit ...
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
65
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.3896140754, -0.2896889746, -0.0146301994, 0.3087926209, 0.3473482728, -0.2418410927, 0.3561573625, 0.2430758029, 0.194336459, 0.3443819582, 0.0316291563, 0.1856546849, -0.12412972, 0.0681874231, -0.3634162843, -0.318257004, -0.1385275126, 0.131955266, -0.2823426723, 0.161248...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
Same error here! Datasets version `1.18.3` freshly updated. `IndexError: Invalid key: 90 is out of bounds for size 0` My task is finetuning the model for token classification. **Solved**: I make a mistake while updating the dataset during the map, you should check that you return the correct values.
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
49
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.3896140754, -0.2896889746, -0.0146301994, 0.3087926209, 0.3473482728, -0.2418410927, 0.3561573625, 0.2430758029, 0.194336459, 0.3443819582, 0.0316291563, 0.1856546849, -0.12412972, 0.0681874231, -0.3634162843, -0.318257004, -0.1385275126, 0.131955266, -0.2823426723, 0.161248...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
cc @sgugger This probably comes from the `Trainer` removing all the columns of a dataset, do you think we can improve the error message in this case ?
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
28
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.3896140754, -0.2896889746, -0.0146301994, 0.3087926209, 0.3473482728, -0.2418410927, 0.3561573625, 0.2430758029, 0.194336459, 0.3443819582, 0.0316291563, 0.1856546849, -0.12412972, 0.0681874231, -0.3634162843, -0.318257004, -0.1385275126, 0.131955266, -0.2823426723, 0.161248...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
The `Trainer` clearly logs when it removes columns in the dataset. I'm not too sure of where the bug appears as I haven't seen a clear reproducer. Happy to display a more helpful error message, but I'd need a reproducer to see what the exact problem is to design the right test and warning :-)
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
55
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.3896140754, -0.2896889746, -0.0146301994, 0.3087926209, 0.3473482728, -0.2418410927, 0.3561573625, 0.2430758029, 0.194336459, 0.3443819582, 0.0316291563, 0.1856546849, -0.12412972, 0.0681874231, -0.3634162843, -0.318257004, -0.1385275126, 0.131955266, -0.2823426723, 0.161248...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
Well, if I can try to suggest how to reproduce, please try by do not returning any updated content in the map function used to tokenize input (e.g., in TokenClassification). I can leave here my wrong version for reference: ```python def preprocess_function(examples): text = examples["text"] inputs...
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
129
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.3896140754, -0.2896889746, -0.0146301994, 0.3087926209, 0.3473482728, -0.2418410927, 0.3561573625, 0.2430758029, 0.194336459, 0.3443819582, 0.0316291563, 0.1856546849, -0.12412972, 0.0681874231, -0.3634162843, -0.318257004, -0.1385275126, 0.131955266, -0.2823426723, 0.161248...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
That's the thing though. The `Trainer` has no idea which inputs are required or not since all models can have different kinds of inputs, and it can work for models outside of the Transformers library. I can add a clear error message if I get an empty batch, as this is easy to detect, but that's pretty much it.
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
59
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.3896140754, -0.2896889746, -0.0146301994, 0.3087926209, 0.3473482728, -0.2418410927, 0.3561573625, 0.2430758029, 0.194336459, 0.3443819582, 0.0316291563, 0.1856546849, -0.12412972, 0.0681874231, -0.3634162843, -0.318257004, -0.1385275126, 0.131955266, -0.2823426723, 0.161248...
https://github.com/huggingface/datasets/issues/2987
ArrowInvalid: Can only convert 1-dimensional array values
Hi @NielsRogge, thanks for reporting! In `datasets`, we were handling N-dimensional arrays only when passed as an instance of `np.array`, not when passed as a list of `np.array`s. I'm fixing it.
## Describe the bug For the ViT and LayoutLMv2 demo notebooks in my [Transformers-Tutorials repo](https://github.com/NielsRogge/Transformers-Tutorials), people reported an ArrowInvalid issue after applying the following function to a Dataset: ``` def preprocess_data(examples): images = [Image.open(path).conve...
31
ArrowInvalid: Can only convert 1-dimensional array values ## Describe the bug For the ViT and LayoutLMv2 demo notebooks in my [Transformers-Tutorials repo](https://github.com/NielsRogge/Transformers-Tutorials), people reported an ArrowInvalid issue after applying the following function to a Dataset: ``` def pr...
[ 0.0125585357, -0.2250902504, -0.0640783533, 0.3261040747, 0.3138951957, -0.0545176938, 0.5233938694, 0.3854970336, -0.1324626058, 0.1610174477, -0.0998111591, 0.390550226, -0.1541393995, -0.3239715397, -0.0526906215, -0.2601594925, 0.0568878911, 0.2471022755, -0.3504338264, -0....
https://github.com/huggingface/datasets/issues/2984
Exceeded maximum rows when reading large files
Hi @zijwang, thanks for reporting this issue. You did not mention which `datasets` version you are using, but looking at the code in the stack trace, it seems you are using an old version. Could you please update `datasets` (`pip install -U datasets`) and check if the problem persists?
## Describe the bug A clear and concise description of what the bug is. When using `load_dataset` with json files, if the files are too large, there will be "Exceeded maximum rows" error. ## Steps to reproduce the bug ```python dataset = load_dataset('json', data_files=data_files) # data files have 3M rows in a ...
49
Exceeded maximum rows when reading large files ## Describe the bug A clear and concise description of what the bug is. When using `load_dataset` with json files, if the files are too large, there will be "Exceeded maximum rows" error. ## Steps to reproduce the bug ```python dataset = load_dataset('json', data_...
[ -0.0769461021, -0.1556032449, -0.1352693439, 0.5384629965, 0.1540832818, 0.2282283306, 0.0905873999, 0.3988287151, 0.2924409211, 0.092904143, 0.0769099891, 0.2426917106, -0.0044685937, 0.1653081477, -0.0385245606, 0.1086362004, 0.0569195412, -0.0218209624, -0.069419086, 0.11774...
https://github.com/huggingface/datasets/issues/2980
OpenSLR 25: ASR data for Amharic, Swahili and Wolof
Whoever handles this just needs to: - [ ] fork the HuggingFace Datasets repo - [ ] update the [existing dataset script](https://github.com/huggingface/datasets/blob/master/datasets/openslr/openslr.py) to add SLR25. Lots of copypasting from other sections of the script should make that easy. Amharic URL: https://...
## Adding a Dataset - **Name:** *SLR25* - **Description:** *Subset 25 from OpenSLR. Other subsets have been added to https://huggingface.co/datasets/openslr, 25 covers Amharic, Swahili and Wolof data* - **Paper:** *https://www.openslr.org/25/ has citations for each of the three subsubsets. * - **Data:** *Currently ...
106
OpenSLR 25: ASR data for Amharic, Swahili and Wolof ## Adding a Dataset - **Name:** *SLR25* - **Description:** *Subset 25 from OpenSLR. Other subsets have been added to https://huggingface.co/datasets/openslr, 25 covers Amharic, Swahili and Wolof data* - **Paper:** *https://www.openslr.org/25/ has citations for ea...
[ -0.1494905949, -0.0371021405, -0.1279030144, -0.0229764078, 0.1599362493, -0.0278070234, 0.0772162005, 0.2095103413, -0.2027441412, 0.2747547328, -0.3528316915, 0.0995377526, -0.0592799373, 0.2058953047, -0.0102492282, -0.08018139, 0.0635806248, -0.0742383525, -0.2966802418, -0...
https://github.com/huggingface/datasets/issues/2980
OpenSLR 25: ASR data for Amharic, Swahili and Wolof
... also the example in "use in datasets library" should be updated. It currently says ![image](https://user-images.githubusercontent.com/4109253/135115980-8583a44a-cae6-4121-b699-00667020849f.png) But you actually have to specify a subset, e.g. ```python dataset = load_dataset("openslr", "SLR32") ```
## Adding a Dataset - **Name:** *SLR25* - **Description:** *Subset 25 from OpenSLR. Other subsets have been added to https://huggingface.co/datasets/openslr, 25 covers Amharic, Swahili and Wolof data* - **Paper:** *https://www.openslr.org/25/ has citations for each of the three subsubsets. * - **Data:** *Currently ...
31
OpenSLR 25: ASR data for Amharic, Swahili and Wolof ## Adding a Dataset - **Name:** *SLR25* - **Description:** *Subset 25 from OpenSLR. Other subsets have been added to https://huggingface.co/datasets/openslr, 25 covers Amharic, Swahili and Wolof data* - **Paper:** *https://www.openslr.org/25/ has citations for ea...
[ -0.2541203499, 0.0149930827, -0.1568881124, -0.0666442811, 0.1727310866, 0.0196192842, 0.1956545115, 0.2351341546, -0.077947326, 0.224404037, -0.3227961361, 0.1105093583, -0.0497990362, 0.1022862121, -0.0044499533, -0.1112288907, 0.0189727359, 0.0934514925, -0.3194479346, -0.13...
https://github.com/huggingface/datasets/issues/2978
Run CI tests against non-production server
Hey @albertvillanova could you provide more context, including extracts from the discussion we had ? Let's ping @Pierrci @julien-c and @n1t0 for their opinion about that
Currently, the CI test suite performs requests to the HF production server. As discussed with @elishowk, we should refactor our tests to use the HF staging server instead, like `huggingface_hub` and `transformers`.
26
Run CI tests against non-production server Currently, the CI test suite performs requests to the HF production server. As discussed with @elishowk, we should refactor our tests to use the HF staging server instead, like `huggingface_hub` and `transformers`. Hey @albertvillanova could you provide more context, in...
[ -0.2581962347, -0.2636908889, -0.1136403009, -0.2357592285, -0.3444662094, -0.2215362191, 0.4800026417, 0.2981353402, 0.1589351743, 0.1931140125, -0.011651271, -0.1929860413, 0.055465363, 0.5981816649, -0.0119555499, -0.0694413707, -0.2003655285, 0.2295341343, -0.453727901, 0.0...
https://github.com/huggingface/datasets/issues/2978
Run CI tests against non-production server
@julien-c increased the huggingface.co production workers in order to see if it solve [the 502 you had this morning](https://app.circleci.com/pipelines/github/huggingface/datasets/7843/workflows/fc83fa32-18f5-4dc3-9e2f-ba277ae1af74) For the decision process: be aware that moon-staging does not have persistent repos ...
Currently, the CI test suite performs requests to the HF production server. As discussed with @elishowk, we should refactor our tests to use the HF staging server instead, like `huggingface_hub` and `transformers`.
69
Run CI tests against non-production server Currently, the CI test suite performs requests to the HF production server. As discussed with @elishowk, we should refactor our tests to use the HF staging server instead, like `huggingface_hub` and `transformers`. @julien-c increased the huggingface.co production worke...
[ -0.1305261999, -0.4287917912, -0.0245479587, -0.0501437187, -0.0372760147, -0.3314853013, 0.3419255912, 0.2687297165, 0.0688503981, 0.1076425835, -0.1735493243, -0.0307787042, 0.0130698681, 0.5772917271, 0.0340340324, 0.0195308924, -0.1025432125, -0.0250553098, -0.3881972134, 0...
https://github.com/huggingface/datasets/issues/2977
Impossible to load compressed csv
Hi @Valahaar, thanks for reporting and for your investigation about the source cause. You are right and that commit prevents `pandas` from inferring the compression. On the other hand, @lhoestq did that change to support loading that dataset in streaming mode. I'm fixing it.
## Describe the bug It is not possible to load from a compressed csv anymore. ## Steps to reproduce the bug ```python load_dataset('csv', data_files=['/path/to/csv.bz2']) ``` ## Problem and possible solution This used to work, but the commit that broke it is [this one](https://github.com/huggingface/datasets...
44
Impossible to load compressed csv ## Describe the bug It is not possible to load from a compressed csv anymore. ## Steps to reproduce the bug ```python load_dataset('csv', data_files=['/path/to/csv.bz2']) ``` ## Problem and possible solution This used to work, but the commit that broke it is [this one](htt...
[ -0.0614785701, -0.3051364422, -0.0514280684, 0.1528818458, 0.2586481869, 0.1544820964, 0.2230627835, 0.4252105057, -0.0204917584, 0.1378157437, 0.0169654768, 0.2389486879, 0.0854325593, 0.0874534696, 0.1481856704, -0.0222842786, 0.0329404622, 0.3155575395, 0.0254746154, 0.17528...
https://github.com/huggingface/datasets/issues/2976
Can't load dataset
Hi @mskovalova, Some datasets have multiple configurations. Therefore, in order to load them, you have to specify both the *dataset name* and the *configuration name*. In the error message you got, you have a usage example: - To load the 'wikitext-103-raw-v1' configuration of the 'wikitext' dataset, you should ...
I'm trying to load a wikitext dataset ``` from datasets import load_dataset raw_datasets = load_dataset("wikitext") ``` ValueError: Config name is missing. Please pick one among the available configs: ['wikitext-103-raw-v1', 'wikitext-2-raw-v1', 'wikitext-103-v1', 'wikitext-2-v1'] Example of usage: `load_d...
77
Can't load dataset I'm trying to load a wikitext dataset ``` from datasets import load_dataset raw_datasets = load_dataset("wikitext") ``` ValueError: Config name is missing. Please pick one among the available configs: ['wikitext-103-raw-v1', 'wikitext-2-raw-v1', 'wikitext-103-v1', 'wikitext-2-v1'] Exampl...
[ -0.0967337489, -0.2605877221, -0.0797853023, 0.0848611519, 0.2483426034, 0.3990702927, 0.3288692236, 0.1829103082, 0.2315176129, 0.2177292407, 0.1168222725, 0.247799173, 0.0077033211, 0.1976592094, 0.093357347, -0.1330859065, 0.0495664068, 0.2156870961, 0.297109127, 0.044012248...
https://github.com/huggingface/datasets/issues/2972
OSError: Not enough disk space.
Maybe we can change the disk space calculating API from `shutil.disk_usage` to `os.statvfs` in UNIX-like system, which can provide correct results. ``` statvfs = os.statvfs('path') avail_space_bytes = statvfs.f_frsize * statvfs.f_bavail ```
## Describe the bug I'm trying to download `natural_questions` dataset from the Internet, and I've specified the cache_dir which locates in a mounted disk and has enough disk space. However, even though the space is enough, the disk space checking function still reports the space of root `/` disk having no enough spac...
31
OSError: Not enough disk space. ## Describe the bug I'm trying to download `natural_questions` dataset from the Internet, and I've specified the cache_dir which locates in a mounted disk and has enough disk space. However, even though the space is enough, the disk space checking function still reports the space of r...
[ -0.0483118705, -0.2650128901, -0.1014166325, 0.4828661978, 0.07751856, 0.1254287064, -0.2298763692, 0.4518808424, 0.3069514334, 0.2453739196, 0.0781501234, -0.3200190067, -0.0492318198, -0.3311831355, 0.0627449676, 0.1433422118, 0.0443611965, -0.0126373675, 0.2707400024, 0.0378...
https://github.com/huggingface/datasets/issues/2972
OSError: Not enough disk space.
`DownloadConfig` only sets the location to download the files. On the other hand, `cache_dir` sets the location for both downloading and caching the data. You can find more information here: https://huggingface.co/docs/datasets/loading_datasets.html#cache-directory
## Describe the bug I'm trying to download `natural_questions` dataset from the Internet, and I've specified the cache_dir which locates in a mounted disk and has enough disk space. However, even though the space is enough, the disk space checking function still reports the space of root `/` disk having no enough spac...
31
OSError: Not enough disk space. ## Describe the bug I'm trying to download `natural_questions` dataset from the Internet, and I've specified the cache_dir which locates in a mounted disk and has enough disk space. However, even though the space is enough, the disk space checking function still reports the space of r...
[ -0.0635232925, -0.2830460072, -0.0885159448, 0.4970608354, 0.087971881, 0.1864340007, -0.179883644, 0.4213718176, 0.2735776305, 0.2332107723, 0.0468637049, -0.3344705701, -0.040360637, -0.3025632501, 0.090960741, 0.0889557526, 0.041981142, 0.035653092, 0.2770936191, 0.079528771...
https://github.com/huggingface/datasets/issues/2969
medical-dialog error
Hi @smeyerhot, thanks for reporting. You are right: there is an issue with the dataset metadata. I'm fixing it. In the meantime, you can circumvent the issue by passing `ignore_verifications=True`: ```python raw_datasets = load_dataset("medical_dialog", "en", split="train", download_mode="force_redownload", dat...
## Describe the bug A clear and concise description of what the bug is. When I attempt to download the huggingface datatset medical_dialog it errors out midway through ## Steps to reproduce the bug ```python raw_datasets = load_dataset("medical_dialog", "en", split="train", download_mode="force_redownload", data_d...
40
medical-dialog error ## Describe the bug A clear and concise description of what the bug is. When I attempt to download the huggingface datatset medical_dialog it errors out midway through ## Steps to reproduce the bug ```python raw_datasets = load_dataset("medical_dialog", "en", split="train", download_mode="fo...
[ -0.1769698709, -0.1679423451, 0.1324311048, 0.3051019907, 0.0987702683, 0.1788937598, 0.2574724257, 0.3572395742, -0.1842423677, 0.1025888473, -0.2651022673, 0.136161834, -0.0293872207, 0.4398858845, -0.1116998866, -0.1225645542, -0.1173759475, 0.1280633956, -0.044452522, 0.084...
https://github.com/huggingface/datasets/issues/2968
`DatasetDict` cannot be exported to parquet if the splits have different features
This is because you have to specify which split corresponds to what file: ```python data_files = {"train": "train/split.parquet", "validation": "validation/split.parquet"} brand_new_dataset_2 = load_dataset("ds", data_files=data_files) ``` Otherwise it tries to concatenate the two splits, and it fails because th...
## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDict`, I use `to_parquet` on each split to save the parquet files in individual folder...
64
`DatasetDict` cannot be exported to parquet if the splits have different features ## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDi...
[ -0.1533446461, -0.0085502295, 0.0541424304, 0.4590762258, 0.0908742025, 0.0531122014, 0.2564249635, 0.2046878487, 0.1695540994, 0.0804400295, 0.2533528507, 0.3629654944, -0.1307232529, 0.4581689835, -0.1649917364, -0.2605804205, 0.1808207929, -0.0397763178, 0.1971471161, 0.0392...
https://github.com/huggingface/datasets/issues/2968
`DatasetDict` cannot be exported to parquet if the splits have different features
I may be mistaken but I think the following doesn't work either: ```python from datasets import load_dataset ds = load_dataset("lhoestq/custom_squad") def identical_answers(e): e['identical_answers'] = len(set(e['answers']['text'])) == 1 return e ds['validation'] = ds['validation'].map(identi...
## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDict`, I use `to_parquet` on each split to save the parquet files in individual folder...
45
`DatasetDict` cannot be exported to parquet if the splits have different features ## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDi...
[ -0.1533446461, -0.0085502295, 0.0541424304, 0.4590762258, 0.0908742025, 0.0531122014, 0.2564249635, 0.2046878487, 0.1695540994, 0.0804400295, 0.2533528507, 0.3629654944, -0.1307232529, 0.4581689835, -0.1649917364, -0.2605804205, 0.1808207929, -0.0397763178, 0.1971471161, 0.0392...
https://github.com/huggingface/datasets/issues/2968
`DatasetDict` cannot be exported to parquet if the splits have different features
It works on my side as soon as the directories named `ds/train` and `ds/validation` exist (otherwise it returns a FileNotFoundError). What error are you getting ?
## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDict`, I use `to_parquet` on each split to save the parquet files in individual folder...
26
`DatasetDict` cannot be exported to parquet if the splits have different features ## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDi...
[ -0.1533446461, -0.0085502295, 0.0541424304, 0.4590762258, 0.0908742025, 0.0531122014, 0.2564249635, 0.2046878487, 0.1695540994, 0.0804400295, 0.2533528507, 0.3629654944, -0.1307232529, 0.4581689835, -0.1649917364, -0.2605804205, 0.1808207929, -0.0397763178, 0.1971471161, 0.0392...
https://github.com/huggingface/datasets/issues/2968
`DatasetDict` cannot be exported to parquet if the splits have different features
Also we may introduce a default mapping for the data files: ```python { "train": ["*train*"], "test": ["*test*"], "validation": ["*dev*", "valid"], } ``` this way if you name your files according to the splits you won't have to specify the data_files parameter. What do you think ? I moved this di...
## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDict`, I use `to_parquet` on each split to save the parquet files in individual folder...
52
`DatasetDict` cannot be exported to parquet if the splits have different features ## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDi...
[ -0.1533446461, -0.0085502295, 0.0541424304, 0.4590762258, 0.0908742025, 0.0531122014, 0.2564249635, 0.2046878487, 0.1695540994, 0.0804400295, 0.2533528507, 0.3629654944, -0.1307232529, 0.4581689835, -0.1649917364, -0.2605804205, 0.1808207929, -0.0397763178, 0.1971471161, 0.0392...
https://github.com/huggingface/datasets/issues/2968
`DatasetDict` cannot be exported to parquet if the splits have different features
I'm getting the following error: ``` Downloading and preparing dataset custom_squad/plain_text to /home/lysandre/.cache/huggingface/datasets/lhoestq___custom_squad)/plain_text/1.0.0/397916d1ae99584877e0fb4f5b8b6f01e66fcbbeff4d178afb30c933a8d0d93a... 100%|██████████| 2/2 [00:00<00:00, 7760.04it/s] 100%|██████████|...
## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDict`, I use `to_parquet` on each split to save the parquet files in individual folder...
237
`DatasetDict` cannot be exported to parquet if the splits have different features ## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDi...
[ -0.1533446461, -0.0085502295, 0.0541424304, 0.4590762258, 0.0908742025, 0.0531122014, 0.2564249635, 0.2046878487, 0.1695540994, 0.0804400295, 0.2533528507, 0.3629654944, -0.1307232529, 0.4581689835, -0.1649917364, -0.2605804205, 0.1808207929, -0.0397763178, 0.1971471161, 0.0392...
https://github.com/huggingface/datasets/issues/2968
`DatasetDict` cannot be exported to parquet if the splits have different features
I just tried again on colab by installing `datasets` from source with pyarrow 3.0.0 and didn't get any error. You error seems to happen when doing ```python ds = load_dataset("lhoestq/custom_squad") ``` More specifically it fails when trying to read the arrow file that just got generated. I haven't issues like...
## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDict`, I use `to_parquet` on each split to save the parquet files in individual folder...
80
`DatasetDict` cannot be exported to parquet if the splits have different features ## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDi...
[ -0.1533446461, -0.0085502295, 0.0541424304, 0.4590762258, 0.0908742025, 0.0531122014, 0.2564249635, 0.2046878487, 0.1695540994, 0.0804400295, 0.2533528507, 0.3629654944, -0.1307232529, 0.4581689835, -0.1649917364, -0.2605804205, 0.1808207929, -0.0397763178, 0.1971471161, 0.0392...
https://github.com/huggingface/datasets/issues/2968
`DatasetDict` cannot be exported to parquet if the splits have different features
Thank you for your pointer! This seems to have been linked to Python 3.9.7: it works flawlessly with Python 3.8.6. This can be closed, thanks a lot for your help.
## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDict`, I use `to_parquet` on each split to save the parquet files in individual folder...
30
`DatasetDict` cannot be exported to parquet if the splits have different features ## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDi...
[ -0.1533446461, -0.0085502295, 0.0541424304, 0.4590762258, 0.0908742025, 0.0531122014, 0.2564249635, 0.2046878487, 0.1695540994, 0.0804400295, 0.2533528507, 0.3629654944, -0.1307232529, 0.4581689835, -0.1649917364, -0.2605804205, 0.1808207929, -0.0397763178, 0.1971471161, 0.0392...
https://github.com/huggingface/datasets/issues/2964
Error when calculating Matthews Correlation Coefficient loaded with `load_metric`
After some more tests I've realized that this "issue" is due to the `numpy.float64` to `float` conversion, but when defining a function named `compute_metrics` as it follows: ```python def compute_metrics(eval_preds): metric = load_metric("matthews_correlation") logits, labels = eval_preds prediction...
## Describe the bug After loading the metric named "[Matthews Correlation Coefficient](https://huggingface.co/metrics/matthews_correlation)" from `🤗datasets`, the `.compute` method fails with the following exception `AttributeError: 'float' object has no attribute 'item'` (complete stack trace can be provided if re...
82
Error when calculating Matthews Correlation Coefficient loaded with `load_metric` ## Describe the bug After loading the metric named "[Matthews Correlation Coefficient](https://huggingface.co/metrics/matthews_correlation)" from `🤗datasets`, the `.compute` method fails with the following exception `AttributeError:...
[ -0.1346631646, -0.3452946246, 0.0786116198, 0.3539233804, 0.2162502259, 0.048134055, 0.2270002812, 0.2281398773, 0.1603165269, 0.3655946255, -0.0764110014, 0.5783476233, 0.0116955992, 0.054774642, -0.2028558701, -0.2456582934, -0.0192867331, 0.1806840301, -0.0553320535, 0.16205...
https://github.com/huggingface/datasets/issues/2964
Error when calculating Matthews Correlation Coefficient loaded with `load_metric`
Ok after some more experiments I've realized that it's an issue from my side, at first I thought it was due to `fp16=True` in `TrainingArguments`, but in the end that may not be the issue, so I'll close this for now and check later, since the mistake is on my side :weary: Sorry for the inconvenience!
## Describe the bug After loading the metric named "[Matthews Correlation Coefficient](https://huggingface.co/metrics/matthews_correlation)" from `🤗datasets`, the `.compute` method fails with the following exception `AttributeError: 'float' object has no attribute 'item'` (complete stack trace can be provided if re...
56
Error when calculating Matthews Correlation Coefficient loaded with `load_metric` ## Describe the bug After loading the metric named "[Matthews Correlation Coefficient](https://huggingface.co/metrics/matthews_correlation)" from `🤗datasets`, the `.compute` method fails with the following exception `AttributeError:...
[ -0.1346631646, -0.3452946246, 0.0786116198, 0.3539233804, 0.2162502259, 0.048134055, 0.2270002812, 0.2281398773, 0.1603165269, 0.3655946255, -0.0764110014, 0.5783476233, 0.0116955992, 0.054774642, -0.2028558701, -0.2456582934, -0.0192867331, 0.1806840301, -0.0553320535, 0.16205...
https://github.com/huggingface/datasets/issues/2957
MultiWOZ Dataset NonMatchingChecksumError
Hi Brady! I met the similar issue, it stuck in the downloading stage instead of download anything, maybe it is broken. After I change the downloading from URLs to one url of the [Multiwoz project](https://github.com/budzianowski/multiwoz/archive/44f0f8479f11721831c5591b839ad78827da197b.zip) and use dirs to get separate...
## Describe the bug The checksums for the downloaded MultiWOZ dataset and source MultiWOZ dataset aren't matching. ## Steps to reproduce the bug Both of the below dataset versions yield the checksum error: ```python from datasets import load_dataset dataset = load_dataset('multi_woz_v22', 'v2.2') dataset = loa...
45
MultiWOZ Dataset NonMatchingChecksumError ## Describe the bug The checksums for the downloaded MultiWOZ dataset and source MultiWOZ dataset aren't matching. ## Steps to reproduce the bug Both of the below dataset versions yield the checksum error: ```python from datasets import load_dataset dataset = load_dat...
[ -0.1857136637, 0.2824349403, -0.0103633218, 0.2273115963, -0.1089392677, 0.0266026594, 0.4214708507, 0.4297242165, 0.1776720732, 0.0903901979, -0.1264116168, 0.1356130093, 0.0912542567, -0.0172349364, -0.099278748, 0.2393859774, 0.1802412122, -0.0172635727, -0.3148808181, -0.02...
https://github.com/huggingface/datasets/issues/2953
Trying to get in touch regarding a security issue
Hi @JamieSlome, Thanks for reaching out. Yes, you are right: I'm opening a PR to add the `SECURITY.md` file and a contact method. In the meantime, please feel free to report the security issue to: feedback@huggingface.co
Hey there! I'd like to report a security issue but cannot find contact instructions on your repository. If not a hassle, might you kindly add a `SECURITY.md` file with an email, or another contact method? GitHub [recommends](https://docs.github.com/en/code-security/getting-started/adding-a-security-policy-to-your-rep...
36
Trying to get in touch regarding a security issue Hey there! I'd like to report a security issue but cannot find contact instructions on your repository. If not a hassle, might you kindly add a `SECURITY.md` file with an email, or another contact method? GitHub [recommends](https://docs.github.com/en/code-security/...
[ 0.2186533958, -0.162960723, -0.1425068974, -0.1004329473, 0.1851606816, -0.1031146124, 0.3181804717, -0.10126625, -0.131371066, 0.4227073789, 0.2270618975, 0.0571599267, -0.0121725947, 0.2170339376, 0.1085696593, 0.2790281177, -0.1240270957, -0.2373873591, 0.3156681359, 0.05823...
https://github.com/huggingface/datasets/issues/2945
Protect master branch
@lhoestq now the 2 are implemented. Please note that for the the second protection, finally I have chosen to protect the master branch only from **merge commits** (see update comment above), so no need to disable/re-enable the protection on each release (direct commits, different from merge commits, can be pushed to...
After accidental merge commit (91c55355b634d0dc73350a7ddee1a6776dbbdd69) into `datasets` master branch, all commits present in the feature branch were permanently added to `datasets` master branch history, as e.g.: - 00cc036fea7c7745cfe722360036ed306796a3f2 - 13ae8c98602bbad8197de3b9b425f4c78f582af1 - ... I propo...
64
Protect master branch After accidental merge commit (91c55355b634d0dc73350a7ddee1a6776dbbdd69) into `datasets` master branch, all commits present in the feature branch were permanently added to `datasets` master branch history, as e.g.: - 00cc036fea7c7745cfe722360036ed306796a3f2 - 13ae8c98602bbad8197de3b9b425f4c78f...
[ -0.1553197056, -0.100230597, -0.0703211352, -0.079817012, -0.1042537689, -0.1879875511, 0.0104035651, 0.2728641331, -0.0098487763, -0.0841397643, 0.2926151156, -0.0778749958, -0.1324570328, 0.2158905566, -0.0562289208, 0.1705456525, 0.2003232092, -0.04079758, -0.0923329443, 0.0...
https://github.com/huggingface/datasets/issues/2944
Add `remove_columns` to `IterableDataset `
Hi ! Good idea :) If you are interested in contributing, feel free to give it a try and open a Pull Request. Also let me know if I can help you with this or if you have questions
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. ```python from datasets import load_dataset dataset = load_dataset("c4", 'realnewslike', streaming =True, split='train') dataset = dataset.remove_columns('url') ``` ``` AttributeError: 'I...
39
Add `remove_columns` to `IterableDataset ` **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. ```python from datasets import load_dataset dataset = load_dataset("c4", 'realnewslike', streaming =True, split='train') dataset = dataset.remo...
[ 0.0309714824, 0.0669323355, -0.1484199166, -0.0265662726, 0.3402366638, 0.3764089048, 0.4748351872, 0.4397599697, 0.133044824, 0.1664904803, -0.171160534, 0.3257799447, -0.3537243605, 0.3000864387, -0.1610708386, -0.3223696947, 0.0052475184, 0.1979245842, -0.1783948988, 0.00188...
https://github.com/huggingface/datasets/issues/2943
Backwards compatibility broken for cached datasets that use `.filter()`
Hi ! I guess the caching mechanism should have considered the new `filter` to be different from the old one, and don't use cached results from the old `filter`. To avoid other users from having this issue we could make the caching differentiate the two, what do you think ?
## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='in...
50
Backwards compatibility broken for cached datasets that use `.filter()` ## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=No...
[ -0.3049954772, 0.1243877262, -0.0465586893, 0.2368967235, 0.1517289281, -0.0666596442, -0.006941325, 0.3285394311, 0.1737383157, 0.0293815527, -0.2313866913, 0.3581929803, -0.1503302306, 0.2527365386, -0.2977860272, -0.1378117949, 0.0444693789, 0.0321243517, -0.0614952669, 0.16...
https://github.com/huggingface/datasets/issues/2943
Backwards compatibility broken for cached datasets that use `.filter()`
If it's easy enough to implement, then yes please 😄 But this issue can be low-priority, since I've only encountered it in a couple of `transformers` CI tests.
## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='in...
28
Backwards compatibility broken for cached datasets that use `.filter()` ## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=No...
[ -0.3049954772, 0.1243877262, -0.0465586893, 0.2368967235, 0.1517289281, -0.0666596442, -0.006941325, 0.3285394311, 0.1737383157, 0.0293815527, -0.2313866913, 0.3581929803, -0.1503302306, 0.2527365386, -0.2977860272, -0.1378117949, 0.0444693789, 0.0321243517, -0.0614952669, 0.16...
https://github.com/huggingface/datasets/issues/2943
Backwards compatibility broken for cached datasets that use `.filter()`
Well it can cause issue with anyone that updates `datasets` and re-run some code that uses filter, so I'm creating a PR
## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='in...
22
Backwards compatibility broken for cached datasets that use `.filter()` ## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=No...
[ -0.3049954772, 0.1243877262, -0.0465586893, 0.2368967235, 0.1517289281, -0.0666596442, -0.006941325, 0.3285394311, 0.1737383157, 0.0293815527, -0.2313866913, 0.3581929803, -0.1503302306, 0.2527365386, -0.2977860272, -0.1378117949, 0.0444693789, 0.0321243517, -0.0614952669, 0.16...
https://github.com/huggingface/datasets/issues/2943
Backwards compatibility broken for cached datasets that use `.filter()`
I just merged a fix, let me know if you're still having this kind of issues :) We'll do a release soon to make this fix available
## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='in...
27
Backwards compatibility broken for cached datasets that use `.filter()` ## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=No...
[ -0.3049954772, 0.1243877262, -0.0465586893, 0.2368967235, 0.1517289281, -0.0666596442, -0.006941325, 0.3285394311, 0.1737383157, 0.0293815527, -0.2313866913, 0.3581929803, -0.1503302306, 0.2527365386, -0.2977860272, -0.1378117949, 0.0444693789, 0.0321243517, -0.0614952669, 0.16...
https://github.com/huggingface/datasets/issues/2937
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
Hi @daqieq, thanks for reporting. Unfortunately, I was not able to reproduce this bug: ```ipython In [1]: from datasets import load_dataset ...: ds = load_dataset('wiki_bio') Downloading: 7.58kB [00:00, 26.3kB/s] Downloading: 2.71kB [00:00, ?B/s] Using custom data configuration default Downloading and prep...
## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('wiki_bio') ``` ## Expected results It is expected that the dataset downloads without any er...
109
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied ## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_datas...
[ -0.228930667, 0.3834536672, 0.0403456315, 0.2550401092, -0.0121114664, 0.262257129, 0.5036686063, 0.1329529285, 0.3442815244, 0.1357174665, -0.1089744344, 0.0772835836, 0.0731503889, -0.0056991549, -0.1256232113, 0.0789281502, 0.0364448465, -0.0053883297, 0.2149500698, 0.103955...
https://github.com/huggingface/datasets/issues/2937
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
Thanks @albertvillanova for looking at it! I tried on my personal Windows machine and it downloaded just fine. Running on my work machine and on a colleague's machine it is consistently hitting this error. It's not a write access issue because the `.incomplete` directory is written just fine. It just won't rename an...
## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('wiki_bio') ``` ## Expected results It is expected that the dataset downloads without any er...
194
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied ## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_datas...
[ -0.228930667, 0.3834536672, 0.0403456315, 0.2550401092, -0.0121114664, 0.262257129, 0.5036686063, 0.1329529285, 0.3442815244, 0.1357174665, -0.1089744344, 0.0772835836, 0.0731503889, -0.0056991549, -0.1256232113, 0.0789281502, 0.0364448465, -0.0053883297, 0.2149500698, 0.103955...
https://github.com/huggingface/datasets/issues/2937
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
Hi @albertvillanova, even I am facing the same issue on my work machine: `Downloading and preparing dataset json/c4-en-html-with-metadata to C:\Users\......\.cache\huggingface\datasets\json\c4-en-html-with-metadata-4635c2fd9249f62d\0.0.0\c90812beea906fcffe0d5e3bb9eba909a80a998b5f88e9f8acbd320aa91acfde... 100%|█████...
## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('wiki_bio') ``` ## Expected results It is expected that the dataset downloads without any er...
80
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied ## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_datas...
[ -0.228930667, 0.3834536672, 0.0403456315, 0.2550401092, -0.0121114664, 0.262257129, 0.5036686063, 0.1329529285, 0.3442815244, 0.1357174665, -0.1089744344, 0.0772835836, 0.0731503889, -0.0056991549, -0.1256232113, 0.0789281502, 0.0364448465, -0.0053883297, 0.2149500698, 0.103955...
https://github.com/huggingface/datasets/issues/2934
to_tf_dataset keeps a reference to the open data somewhere, causing issues on windows
I did some investigation and, as it seems, the bug stems from [this line](https://github.com/huggingface/datasets/blob/8004d7c3e1d74b29c3e5b0d1660331cd26758363/src/datasets/arrow_dataset.py#L325). The lifecycle of the dataset from the linked line is bound to one of the returned `tf.data.Dataset`. So my (hacky) solution...
To reproduce: ```python import datasets as ds import weakref import gc d = ds.load_dataset("mnist", split="train") ref = weakref.ref(d._data.table) tfd = d.to_tf_dataset("image", batch_size=1, shuffle=False, label_cols="label") del tfd, d gc.collect() assert ref() is None, "Error: there is at least one refe...
99
to_tf_dataset keeps a reference to the open data somewhere, causing issues on windows To reproduce: ```python import datasets as ds import weakref import gc d = ds.load_dataset("mnist", split="train") ref = weakref.ref(d._data.table) tfd = d.to_tf_dataset("image", batch_size=1, shuffle=False, label_cols="lab...
[ 0.045690719, 0.3345082402, 0.1148889512, 0.0804508105, 0.2304306477, 0.118887797, 0.3988848329, 0.2548754513, -0.1099172831, 0.2674386501, -0.3353857696, 0.4040723145, -0.1644809544, -0.1074627489, -0.0342666619, -0.1066433191, 0.0511107631, 0.1451648772, -0.1666643173, -0.1226...
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
Hi, the filename here is less than 255 ```python >>> len("_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock") 154 ``` so not sure why it's considered too long for your filesystem. (also note that the lock file...
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.inc...
39
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53...
[ 0.0493390709, 0.0920012146, -0.0714940801, 0.401848495, 0.4151673317, 0.2358951718, 0.636662364, 0.2435028553, 0.2364588231, 0.2313294709, 0.018568866, 0.0077433633, -0.1442686617, -0.3100366294, -0.2015359998, -0.2443144023, -0.1581088454, -0.0416215882, -0.1770786196, 0.21771...
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
Yes, you're right! I need to get you more info here. Either there's something going with the name itself that the file system doesn't like (an encoding that blows up the name length??) or perhaps there's something with the path that's causing the entire string to be used as a name. I haven't seen this on any system be...
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.inc...
67
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53...
[ 0.0493390709, 0.0920012146, -0.0714940801, 0.401848495, 0.4151673317, 0.2358951718, 0.636662364, 0.2435028553, 0.2364588231, 0.2313294709, 0.018568866, 0.0077433633, -0.1442686617, -0.3100366294, -0.2015359998, -0.2443144023, -0.1581088454, -0.0416215882, -0.1770786196, 0.21771...
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
Snap, encountered when trying to run [this example from PyTorch Lightning Flash](https://lightning-flash.readthedocs.io/en/latest/reference/speech_recognition.html): ```py import torch import flash from flash.audio import SpeechRecognition, SpeechRecognitionData from flash.core.data.utils import download_data ...
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.inc...
238
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53...
[ 0.0493390709, 0.0920012146, -0.0714940801, 0.401848495, 0.4151673317, 0.2358951718, 0.636662364, 0.2435028553, 0.2364588231, 0.2313294709, 0.018568866, 0.0077433633, -0.1442686617, -0.3100366294, -0.2015359998, -0.2443144023, -0.1581088454, -0.0416215882, -0.1770786196, 0.21771...
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
Perhaps this could be exposed as a config setting so you could change it manually? https://github.com/huggingface/datasets/blob/5d1a9f1e3c6c495dc0610b459e39d2eb8893f152/src/datasets/utils/filelock.py#L135-L135 Rather than hard-code 255, default it to 255, and allow it to be changed, the same way is done for `data...
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.inc...
80
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53...
[ 0.0493390709, 0.0920012146, -0.0714940801, 0.401848495, 0.4151673317, 0.2358951718, 0.636662364, 0.2435028553, 0.2364588231, 0.2313294709, 0.018568866, 0.0077433633, -0.1442686617, -0.3100366294, -0.2015359998, -0.2443144023, -0.1581088454, -0.0416215882, -0.1770786196, 0.21771...
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
Hi @lmmx @gar1t , it would be helpful if you could run the following code and copy-paste the output here: ```python import datasets import os os.statvfs(datasets.config.HF_DATASETS_CACHE) ```
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.inc...
27
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53...
[ 0.0493390709, 0.0920012146, -0.0714940801, 0.401848495, 0.4151673317, 0.2358951718, 0.636662364, 0.2435028553, 0.2364588231, 0.2313294709, 0.018568866, 0.0077433633, -0.1442686617, -0.3100366294, -0.2015359998, -0.2443144023, -0.1581088454, -0.0416215882, -0.1770786196, 0.21771...
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
Hi @lmmx, Thanks for providing the result of the command. I've opened a PR, and it would be great if you could verify that the fix works on your system. To install the version of the datasets with the fix, please run the following command: ``` pip install git+https://github.com/huggingface/datasets.git@fix-2924 `...
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.inc...
80
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53...
[ 0.0493390709, 0.0920012146, -0.0714940801, 0.401848495, 0.4151673317, 0.2358951718, 0.636662364, 0.2435028553, 0.2364588231, 0.2313294709, 0.018568866, 0.0077433633, -0.1442686617, -0.3100366294, -0.2015359998, -0.2443144023, -0.1581088454, -0.0416215882, -0.1770786196, 0.21771...
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
No problem Mario I didn't know that was where that value was recorded so I learnt something :smiley: I just wanted to get a local version working, of course you should implement whatever fix is best for HF. Yes can confirm this fixes it too. Thanks!
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.inc...
46
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53...
[ 0.0493390709, 0.0920012146, -0.0714940801, 0.401848495, 0.4151673317, 0.2358951718, 0.636662364, 0.2435028553, 0.2364588231, 0.2313294709, 0.018568866, 0.0077433633, -0.1442686617, -0.3100366294, -0.2015359998, -0.2443144023, -0.1581088454, -0.0416215882, -0.1770786196, 0.21771...
https://github.com/huggingface/datasets/issues/2918
`Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming
Hi @SBrandeis, thanks for reporting! ^^ I think this is an issue with `fsspec`: https://github.com/intake/filesystem_spec/issues/389 I will ask them if they are planning to fix it...
## Describe the bug Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`: ```python ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ``` cc @lhoestq ## Steps to reproduce the bug ```python from datasets import load_...
26
`Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming ## Describe the bug Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`: ```python ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ```...
[ -0.3864652514, -0.2204955369, 0.089481242, 0.4387412369, 0.2157087475, 0.1229232475, -0.0369101837, 0.3093882501, 0.2422775924, 0.0955025256, -0.2264312059, 0.4261533618, -0.0641759187, 0.3035331368, -0.0094657307, -0.2584783435, -0.0045061549, 0.233765766, -0.1049253568, 0.126...
https://github.com/huggingface/datasets/issues/2918
`Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming
Code to reproduce the bug: `ClientPayloadError: 400, message='Can not decode content-encoding: gzip'` ```python In [1]: import fsspec In [2]: import json In [3]: with fsspec.open('https://raw.githubusercontent.com/allenai/scitldr/master/SciTLDR-Data/SciTLDR-FullText/test.jsonl', encoding="utf-8") as f: ...:...
## Describe the bug Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`: ```python ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ``` cc @lhoestq ## Steps to reproduce the bug ```python from datasets import load_...
46
`Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming ## Describe the bug Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`: ```python ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ```...
[ -0.3864652514, -0.2204955369, 0.089481242, 0.4387412369, 0.2157087475, 0.1229232475, -0.0369101837, 0.3093882501, 0.2422775924, 0.0955025256, -0.2264312059, 0.4261533618, -0.0641759187, 0.3035331368, -0.0094657307, -0.2584783435, -0.0045061549, 0.233765766, -0.1049253568, 0.126...
https://github.com/huggingface/datasets/issues/2917
windows download abnormal
Hi ! Is there some kind of proxy that is configured in your browser that gives you access to internet ? If it's the case it could explain why it doesn't work in the code, since the proxy wouldn't be used
## Describe the bug The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why?? ## Steps to reproduce the bug ```python3.7 + windows ![image](https://user-images.githubusercontent.com/52347799/133436174-43...
41
windows download abnormal ## Describe the bug The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why?? ## Steps to reproduce the bug ```python3.7 + windows ![image](https://user-images.githubuserconte...
[ -0.1240485087, -0.201825127, -0.0703397468, 0.189459756, 0.2147735506, -0.1120502502, 0.0276674535, 0.0718737617, 0.2805814743, 0.0850561485, 0.1648732722, 0.1174070761, 0.1554812938, 0.1022037268, 0.1588475406, -0.2615041435, 0.0301857274, 0.0393099673, -0.1691513807, 0.008864...
https://github.com/huggingface/datasets/issues/2913
timit_asr dataset only includes one text phrase
Hi @margotwagner, This bug was fixed in #1995. Upgrading the datasets should work (min v1.8.0 ideally)
## Describe the bug The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases. ## Steps to reproduce the bug Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-englis...
16
timit_asr dataset only includes one text phrase ## Describe the bug The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases. ## Steps to reproduce the bug Note: I am following the tutorial htt...
[ 0.1612903774, -0.1380539387, -0.020553492, 0.2273863256, 0.1176238731, -0.1575972885, 0.267005682, 0.296566546, -0.5154973865, 0.2804077566, 0.1454419941, 0.4508611262, -0.0935284942, -0.1810209155, 0.064299874, -0.0575758778, 0.122142829, 0.2484458387, -0.0715343058, -0.234291...
https://github.com/huggingface/datasets/issues/2913
timit_asr dataset only includes one text phrase
Hi @margotwagner, Yes, as @bhavitvyamalik has commented, this bug was fixed in `datasets` version 1.5.0. You need to update it, as your current version is 1.4.1: > Environment info > - `datasets` version: 1.4.1
## Describe the bug The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases. ## Steps to reproduce the bug Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-englis...
34
timit_asr dataset only includes one text phrase ## Describe the bug The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases. ## Steps to reproduce the bug Note: I am following the tutorial htt...
[ 0.1612903774, -0.1380539387, -0.020553492, 0.2273863256, 0.1176238731, -0.1575972885, 0.267005682, 0.296566546, -0.5154973865, 0.2804077566, 0.1454419941, 0.4508611262, -0.0935284942, -0.1810209155, 0.064299874, -0.0575758778, 0.122142829, 0.2484458387, -0.0715343058, -0.234291...
https://github.com/huggingface/datasets/issues/2904
FORCE_REDOWNLOAD does not work
Hi ! Thanks for reporting. The error seems to happen only if you use compressed files. The second dataset is prepared in another dataset cache directory than the first - which is normal, since the source file is different. However, it doesn't uncompress the new data file because it finds the old uncompressed data in...
## Describe the bug With GenerateMode.FORCE_REDOWNLOAD, the documentation says +------------------------------------+-----------+---------+ | | Downloads | Dataset | +====================================+===========+=========+ | `REUSE_DATASET_IF_EXISTS` (default...
99
FORCE_REDOWNLOAD does not work ## Describe the bug With GenerateMode.FORCE_REDOWNLOAD, the documentation says +------------------------------------+-----------+---------+ | | Downloads | Dataset | +====================================+===========+=========+ | `...
[ -0.1253400743, 0.020780379, 0.0185132008, 0.0257143248, 0.1821046174, 0.0251936186, 0.4788660705, 0.2438334823, 0.145795688, -0.233869642, -0.1162827983, 0.2687394917, 0.0850745663, 0.1121128574, -0.0132028963, 0.3137483895, 0.1101019531, 0.2144834399, -0.0722500533, -0.0051925...
https://github.com/huggingface/datasets/issues/2904
FORCE_REDOWNLOAD does not work
Facing the same issue, is there any way to overtake this issue until it will be fixed?
## Describe the bug With GenerateMode.FORCE_REDOWNLOAD, the documentation says +------------------------------------+-----------+---------+ | | Downloads | Dataset | +====================================+===========+=========+ | `REUSE_DATASET_IF_EXISTS` (default...
17
FORCE_REDOWNLOAD does not work ## Describe the bug With GenerateMode.FORCE_REDOWNLOAD, the documentation says +------------------------------------+-----------+---------+ | | Downloads | Dataset | +====================================+===========+=========+ | `...
[ -0.1253400743, 0.020780379, 0.0185132008, 0.0257143248, 0.1821046174, 0.0251936186, 0.4788660705, 0.2438334823, 0.145795688, -0.233869642, -0.1162827983, 0.2687394917, 0.0850745663, 0.1121128574, -0.0132028963, 0.3137483895, 0.1101019531, 0.2144834399, -0.0722500533, -0.0051925...
https://github.com/huggingface/datasets/issues/2902
Add WIT Dataset
WikiMedia is now hosting the pixel values directly which should make it a lot easier! The files can be found here: https://techblog.wikimedia.org/2021/09/09/the-wikipedia-image-caption-matching-challenge-and-a-huge-release-of-image-data-for-research/ https://analytics.wikimedia.org/published/datasets/one-off/caption...
## Adding a Dataset - **Name:** *WIT* - **Description:** *Wikipedia-based Image Text Dataset* - **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning ](https://arxiv.org/abs/2103.01913)* - **Data:** *https://github.com/google-research-datasets/wit* - **Motivation:** (e...
23
Add WIT Dataset ## Adding a Dataset - **Name:** *WIT* - **Description:** *Wikipedia-based Image Text Dataset* - **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning ](https://arxiv.org/abs/2103.01913)* - **Data:** *https://github.com/google-research-datasets/wit* - *...
[ -0.0497859605, -0.0547440387, -0.1280665398, 0.0003004826, -0.0393542536, -0.0071312007, 0.3546046615, 0.165914923, 0.1936857551, 0.20558092, 0.0639800578, 0.1460067332, -0.0242925528, 0.1997428089, -0.0148758991, -0.2061529458, -0.0474179871, 0.0075569502, -0.0954398885, -0.09...
https://github.com/huggingface/datasets/issues/2902
Add WIT Dataset
> @hassiahk is working on it #2810 Thank you @bhavitvyamalik! Added this issue so we could track progress 😄 . Just linked the PR as well for visibility.
## Adding a Dataset - **Name:** *WIT* - **Description:** *Wikipedia-based Image Text Dataset* - **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning ](https://arxiv.org/abs/2103.01913)* - **Data:** *https://github.com/google-research-datasets/wit* - **Motivation:** (e...
28
Add WIT Dataset ## Adding a Dataset - **Name:** *WIT* - **Description:** *Wikipedia-based Image Text Dataset* - **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning ](https://arxiv.org/abs/2103.01913)* - **Data:** *https://github.com/google-research-datasets/wit* - *...
[ -0.0809514895, -0.2214550525, -0.1989732236, 0.0133092459, 0.0548567139, 0.0012881788, 0.4317962825, 0.0905278325, 0.2972508073, 0.1470825672, -0.0140024191, 0.1178206503, -0.1801293343, 0.2750624716, 0.1759230942, -0.2347300947, 0.0528856665, -0.0525590144, -0.1111660972, -0.0...
https://github.com/huggingface/datasets/issues/2902
Add WIT Dataset
Hey folks, we are now hosting the merged pixel values + embeddings + metadata ourselves. I gave it a try - [nateraw/wit](https://huggingface.co/datasets/nateraw/wit) **⚠️ - Make sure you add `streaming=True` unless you're prepared to download 400GB of data!** ```python from datasets import load_dataset ds = l...
## Adding a Dataset - **Name:** *WIT* - **Description:** *Wikipedia-based Image Text Dataset* - **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning ](https://arxiv.org/abs/2103.01913)* - **Data:** *https://github.com/google-research-datasets/wit* - **Motivation:** (e...
82
Add WIT Dataset ## Adding a Dataset - **Name:** *WIT* - **Description:** *Wikipedia-based Image Text Dataset* - **Paper:** *[WIT: Wikipedia-based Image Text Dataset for Multimodal Multilingual Machine Learning ](https://arxiv.org/abs/2103.01913)* - **Data:** *https://github.com/google-research-datasets/wit* - *...
[ -0.1127936319, -0.3660559654, -0.0743475035, 0.0989871621, 0.1571708322, 0.0002974931, 0.3201468885, 0.1798596978, 0.1064551547, 0.1802822649, -0.1281457692, 0.0916987211, -0.0961454883, 0.2781308293, 0.0500216447, -0.2135281712, -0.031386964, 0.0803585649, -0.1130699739, -0.07...
https://github.com/huggingface/datasets/issues/2901
Incompatibility with pytest
Sorry, my bad... When implementing `xpathopen`, I just considered the use case in the COUNTER dataset... I'm fixing it!
## Describe the bug pytest complains about xpathopen / path.open("w") ## Steps to reproduce the bug Create a test file, `test.py`: ```python import datasets as ds def load_dataset(): ds.load_dataset("counter", split="train", streaming=True) ``` And launch it with pytest: ```bash python -m pyt...
19
Incompatibility with pytest ## Describe the bug pytest complains about xpathopen / path.open("w") ## Steps to reproduce the bug Create a test file, `test.py`: ```python import datasets as ds def load_dataset(): ds.load_dataset("counter", split="train", streaming=True) ``` And launch it with pyt...
[ -0.3016421795, -0.1903875172, -0.0241494104, 0.0990291238, 0.3130394518, -0.1301407069, 0.3114985228, 0.2646483779, -0.102677986, 0.2515562773, -0.0329413302, 0.3579745591, -0.0499673262, 0.0878715515, -0.1619875282, 0.126850009, -0.0505257063, 0.0685188472, 0.0408933498, 0.113...
https://github.com/huggingface/datasets/issues/2892
Error when encoding a dataset with None objects with a Sequence feature
This has been fixed by https://github.com/huggingface/datasets/pull/2900 We're doing a new release 1.12 today to make the fix available :)
There is an error when encoding a dataset with None objects with a Sequence feature To reproduce: ```python from datasets import Dataset, Features, Value, Sequence data = {"a": [[0], None]} features = Features({"a": Sequence(Value("int32"))}) dataset = Dataset.from_dict(data, features=features) ``` raises ...
19
Error when encoding a dataset with None objects with a Sequence feature There is an error when encoding a dataset with None objects with a Sequence feature To reproduce: ```python from datasets import Dataset, Features, Value, Sequence data = {"a": [[0], None]} features = Features({"a": Sequence(Value("int32")...
[ -0.0830347165, -0.2502439916, -0.0386256352, 0.3015388846, 0.2076892704, 0.0788369626, 0.5001559854, 0.1494158208, 0.1255293936, 0.1421063095, 0.3285633624, 0.0508400984, -0.2967573404, 0.3420609534, -0.2623354197, -0.2604983151, 0.0345353931, 0.2224868089, 0.0154918646, -0.022...
https://github.com/huggingface/datasets/issues/2888
v1.11.1 release date
@albertvillanova i think this issue is still valid and should not be closed till `>1.11.0` is published :)
Hello, i need to use latest features in one of my packages but there have been no new datasets release since 2 months ago. When do you plan to publush v1.11.1 release?
18
v1.11.1 release date Hello, i need to use latest features in one of my packages but there have been no new datasets release since 2 months ago. When do you plan to publush v1.11.1 release? @albertvillanova i think this issue is still valid and should not be closed till `>1.11.0` is published :)
[ -0.2534320652, -0.1435917318, -0.1170086116, 0.1250974834, -0.0803617612, -0.2069433928, 0.318226099, 0.2595032454, -0.2662116289, 0.2432930022, 0.4498231709, -0.0775992721, -0.0092685232, 0.3775969148, -0.3972172737, -0.0890162066, 0.0787210688, 0.1089018732, -0.0526829772, 0....
https://github.com/huggingface/datasets/issues/2885
Adding an Elastic Search index to a Dataset
Hi, is this bug deterministic in your poetry env ? I mean, does it always stop at 90% or is it random ? Also, can you try using another version of Elasticsearch ? Maybe there's an issue with the one of you poetry env
## Describe the bug When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break: Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453) 90%|████████████████████████████...
44
Adding an Elastic Search index to a Dataset ## Describe the bug When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break: Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837e...
[ -0.1423360109, 0.1727274507, -0.0044715009, 0.04009616, 0.099737227, 0.0273678843, -0.0132044693, 0.0684226006, 0.0138259958, 0.0531155579, -0.0395592116, 0.3000071645, 0.3499435782, -0.3781624138, -0.1049262807, 0.1306152046, 0.0909726322, 0.0941493437, 0.2756748497, 0.1979282...
https://github.com/huggingface/datasets/issues/2885
Adding an Elastic Search index to a Dataset
I face similar issue with oscar dataset on remote ealsticsearch instance. It was mainly due to timeout of batch indexing requests and I solve these by adding large request_timeout param in `search.py` ``` for ok, action in es.helpers.streaming_bulk( client=self.es_client, index=inde...
## Describe the bug When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break: Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453) 90%|████████████████████████████...
44
Adding an Elastic Search index to a Dataset ## Describe the bug When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break: Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837e...
[ -0.1423360109, 0.1727274507, -0.0044715009, 0.04009616, 0.099737227, 0.0273678843, -0.0132044693, 0.0684226006, 0.0138259958, 0.0531155579, -0.0395592116, 0.3000071645, 0.3499435782, -0.3781624138, -0.1049262807, 0.1306152046, 0.0909726322, 0.0941493437, 0.2756748497, 0.1979282...
https://github.com/huggingface/datasets/issues/2885
Adding an Elastic Search index to a Dataset
Hi @MotzWanted - are there any errors in the Elasticsearch cluster logs? Since it works in your local environment and the cluster versions are different between your poetry env and your local env, it is possible that it is some difference in the cluster - either settings or the cluster being under a different load etc ...
## Describe the bug When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break: Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837ef62ffea453) 90%|████████████████████████████...
160
Adding an Elastic Search index to a Dataset ## Describe the bug When trying to index documents from the squad dataset, the connection to ElasticSearch seems to break: Reusing dataset squad (/Users/andreasmotz/.cache/huggingface/datasets/squad/plain_text/1.0.0/d6ec3ceb99ca480ce37cdd35555d6cb2511d223b9150cce08a837e...
[ -0.1423360109, 0.1727274507, -0.0044715009, 0.04009616, 0.099737227, 0.0273678843, -0.0132044693, 0.0684226006, 0.0138259958, 0.0531155579, -0.0395592116, 0.3000071645, 0.3499435782, -0.3781624138, -0.1049262807, 0.1306152046, 0.0909726322, 0.0941493437, 0.2756748497, 0.1979282...
https://github.com/huggingface/datasets/issues/2882
`load_dataset('docred')` results in a `NonMatchingChecksumError`
Hi @tmpr, thanks for reporting. Two weeks ago (23th Aug), the host of the source `docred` dataset updated one of the files (`dev.json`): you can see it [here](https://drive.google.com/drive/folders/1c5-0YwnoJx8NS6CV2f-NoTHR__BdkNqw). Therefore, the checksum needs to be updated. Normally, in the meantime, you c...
## Describe the bug I get consistent `NonMatchingChecksumError: Checksums didn't match for dataset source files` errors when trying to execute `datasets.load_dataset('docred')`. ## Steps to reproduce the bug It is quasi only this code: ```python import datasets data = datasets.load_dataset('docred') ``` ## ...
69
`load_dataset('docred')` results in a `NonMatchingChecksumError` ## Describe the bug I get consistent `NonMatchingChecksumError: Checksums didn't match for dataset source files` errors when trying to execute `datasets.load_dataset('docred')`. ## Steps to reproduce the bug It is quasi only this code: ```python ...
[ -0.2659122646, 0.342269212, 0.0355656259, 0.3098576963, 0.2141979486, 0.0404337868, 0.3646672666, 0.42015481, 0.3040331602, 0.071502462, -0.2768667638, 0.190118432, 0.1306949109, -0.1951100528, -0.1612921059, 0.3339123428, 0.1246939749, 0.1053835973, -0.2242234796, -0.125280097...
https://github.com/huggingface/datasets/issues/2879
In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?"
Hi @rcgale, thanks for reporting. Please note that this bug was fixed on `datasets` version 1.5.0: https://github.com/huggingface/datasets/commit/a23c73e526e1c30263834164f16f1fdf76722c8c#diff-f12a7a42d4673bb6c2ca5a40c92c29eb4fe3475908c84fd4ce4fad5dc2514878 If you update `datasets` version, that should work. On...
## Describe the bug Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same. ## Steps to reproduce the bug I was following this tutorial - https://huggingface.co/blog/fine-tune-wav2vec2-english But here's a distilled repro: ```python !pip install datasets==1.4.1 from datasets import load_datas...
46
In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?" ## Describe the bug Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same. ## Steps to reproduce the bug I was following this tutorial - https://huggingface.co/blog/fine-tune-wav2vec2-english But here's a dis...
[ 0.1248528883, -0.053593576, 0.0293309391, 0.0739798248, 0.204727754, -0.0245768055, 0.248938188, 0.4213005602, -0.4746909142, 0.175161913, 0.1361841857, 0.551386416, -0.3347689211, -0.0850957185, 0.0344841518, 0.1865644455, -0.0921120942, 0.1384557486, -0.2678907514, -0.2130741...
https://github.com/huggingface/datasets/issues/2879
In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?"
I just proposed a change in the blog post. I had assumed there was a data format change that broke a previous version of the code, since presumably @patrickvonplaten tested the tutorial with the version they explicitly referenced. But that fix you linked suggests a problem in the code, which surprised me. I still...
## Describe the bug Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same. ## Steps to reproduce the bug I was following this tutorial - https://huggingface.co/blog/fine-tune-wav2vec2-english But here's a distilled repro: ```python !pip install datasets==1.4.1 from datasets import load_datas...
134
In v1.4.1, all TIMIT train transcripts are "Would such an act of refusal be useful?" ## Describe the bug Using version 1.4.1 of `datasets`, TIMIT transcripts are all the same. ## Steps to reproduce the bug I was following this tutorial - https://huggingface.co/blog/fine-tune-wav2vec2-english But here's a dis...
[ -0.0884853676, 0.0373964384, -0.021385707, 0.1496123075, -0.0189266615, -0.0777354911, 0.2245492786, 0.3621780872, -0.4294900596, 0.1633368433, 0.1525297314, 0.2624569833, -0.4324908853, -0.020130761, -0.0711193606, 0.2396372557, -0.1268620044, 0.2598145306, -0.3329855204, -0.0...
https://github.com/huggingface/datasets/issues/2877
Don't keep the dummy data folder or dataset_infos.json when resolving data files
Hi @lhoestq I am new to huggingface datasets, I would like to work on this issue!
When there's no dataset script, all the data files of a folder or a repository on the Hub are loaded as data files. There are already a few exceptions: - files starting with "." are ignored - the dataset card "README.md" is ignored - any file named "config.json" is ignored (currently it isn't used anywhere, but i...
16
Don't keep the dummy data folder or dataset_infos.json when resolving data files When there's no dataset script, all the data files of a folder or a repository on the Hub are loaded as data files. There are already a few exceptions: - files starting with "." are ignored - the dataset card "README.md" is ignored ...
[ -0.1615229994, -0.0727220401, 0.0000135907, 0.284392029, 0.1758460701, 0.0413106568, 0.2075555027, 0.3739945292, 0.2408150136, 0.2205161303, -0.1030788347, 0.2478835285, 0.0299953204, 0.3990696371, -0.1797673404, 0.1182415709, -0.1221315563, 0.0999345556, -0.1338043958, -0.1163...
https://github.com/huggingface/datasets/issues/2877
Don't keep the dummy data folder or dataset_infos.json when resolving data files
Thanks for the help :) As mentioned in the PR, excluding files named "dummy_data.zip" is actually more general than excluding the files inside a "dummy" folder. I just did the change in the PR, I think we can merge it now
When there's no dataset script, all the data files of a folder or a repository on the Hub are loaded as data files. There are already a few exceptions: - files starting with "." are ignored - the dataset card "README.md" is ignored - any file named "config.json" is ignored (currently it isn't used anywhere, but i...
41
Don't keep the dummy data folder or dataset_infos.json when resolving data files When there's no dataset script, all the data files of a folder or a repository on the Hub are loaded as data files. There are already a few exceptions: - files starting with "." are ignored - the dataset card "README.md" is ignored ...
[ -0.2584908307, 0.1885455698, -0.0915375724, 0.0349400677, 0.1493659019, -0.0548268296, 0.1679390371, 0.5366547704, 0.126395911, 0.2296375781, 0.0419929735, 0.4573587179, 0.0253700148, 0.2196804881, -0.230755955, 0.1939050704, -0.0863876715, 0.1343435198, -0.0014823446, -0.06213...
https://github.com/huggingface/datasets/issues/2871
datasets.config.PYARROW_VERSION has no attribute 'major'
Hi @bwang482, I'm sorry but I'm not able to reproduce your bug. Please note that in our current master branch, we made a commit (d03223d4d64b89e76b48b00602aba5aa2f817f1e) that simultaneously modified: - test_dataset_common.py: https://github.com/huggingface/datasets/commit/d03223d4d64b89e76b48b00602aba5aa2f817f1...
In the test_dataset_common.py script, line 288-289 ``` if datasets.config.PYARROW_VERSION.major < 3: packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"] ``` which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested thi...
47
datasets.config.PYARROW_VERSION has no attribute 'major' In the test_dataset_common.py script, line 288-289 ``` if datasets.config.PYARROW_VERSION.major < 3: packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"] ``` which throws the error below. `datasets.config.PYARROW_V...
[ -0.3742082417, 0.1478580534, 0.0884073451, 0.0458861403, 0.2804537117, 0.1281490326, 0.1531104594, 0.3776514232, -0.242756024, 0.2011214644, 0.3052013516, 0.4177034795, -0.1865012944, 0.1149609089, -0.1479019076, 0.0099557554, 0.0530921407, 0.2520795465, 0.1291815937, 0.0060468...
https://github.com/huggingface/datasets/issues/2871
datasets.config.PYARROW_VERSION has no attribute 'major'
Reopening this. Although the `test_dataset_common.py` script works fine now. Has this got something to do with my pull request not passing `ci/circleci: run_dataset_script_tests_pyarrow` tests? https://github.com/huggingface/datasets/pull/2873
In the test_dataset_common.py script, line 288-289 ``` if datasets.config.PYARROW_VERSION.major < 3: packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"] ``` which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested thi...
25
datasets.config.PYARROW_VERSION has no attribute 'major' In the test_dataset_common.py script, line 288-289 ``` if datasets.config.PYARROW_VERSION.major < 3: packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"] ``` which throws the error below. `datasets.config.PYARROW_V...
[ -0.3413377106, 0.2006240636, 0.0493728667, 0.0571896322, 0.1107943654, 0.0854444131, 0.2353396267, 0.2816724479, -0.1760852188, 0.1386216879, 0.4381386042, 0.3304320276, -0.1294844449, 0.2977349758, -0.1947028786, 0.0704640299, 0.013385741, 0.1427535415, 0.3433148265, 0.0562435...
https://github.com/huggingface/datasets/issues/2871
datasets.config.PYARROW_VERSION has no attribute 'major'
Hi @bwang482, If you click on `Details` (on the right of your non passing CI test names: `ci/circleci: run_dataset_script_tests_pyarrow`), you can have more information about the non-passing tests. For example, for ["ci/circleci: run_dataset_script_tests_pyarrow_1" details](https://circleci.com/gh/huggingface/dat...
In the test_dataset_common.py script, line 288-289 ``` if datasets.config.PYARROW_VERSION.major < 3: packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"] ``` which throws the error below. `datasets.config.PYARROW_VERSION` itself return the string '4.0.1'. I have tested thi...
95
datasets.config.PYARROW_VERSION has no attribute 'major' In the test_dataset_common.py script, line 288-289 ``` if datasets.config.PYARROW_VERSION.major < 3: packaged_datasets = [pd for pd in packaged_datasets if pd["dataset_name"] != "parquet"] ``` which throws the error below. `datasets.config.PYARROW_V...
[ -0.45026353, 0.1362895668, 0.0727610365, -0.0077379178, 0.2104403079, 0.1455688328, 0.1347784698, 0.3891867697, -0.2612733543, 0.1966488957, 0.2423594743, 0.4409920573, -0.174534291, 0.1955470294, -0.2465570271, 0.0201375391, -0.0359608978, 0.1991017759, 0.1349837631, 0.0418356...
https://github.com/huggingface/datasets/issues/2869
TypeError: 'NoneType' object is not callable
Hi, @Chenfei-Kang. I'm sorry, but I'm not able to reproduce your bug: ```python from datasets import load_dataset ds = load_dataset("glue", 'cola') ds ``` ``` DatasetDict({ train: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 8551 }) validation: Dataset({ ...
## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Speci...
66
TypeError: 'NoneType' object is not callable ## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of th...
[ -0.0594904423, -0.1199710742, 0.0148643237, 0.2438830733, 0.4732631445, -0.0013418638, 0.4414611757, 0.1253976822, -0.014295374, 0.2675634623, -0.1799771935, 0.4658887088, -0.1191558465, 0.1054263711, 0.0933513269, -0.1634460986, -0.149348706, 0.1789052784, -0.0950515419, 0.004...
https://github.com/huggingface/datasets/issues/2869
TypeError: 'NoneType' object is not callable
> Hi, @Chenfei-Kang. > > I'm sorry, but I'm not able to reproduce your bug: > > ```python > from datasets import load_dataset > > ds = load_dataset("glue", 'cola') > ds > ``` > > ``` > DatasetDict({ > train: Dataset({ > features: ['sentence', 'label', 'idx'], > num_rows: 8551 > ...
## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Speci...
116
TypeError: 'NoneType' object is not callable ## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of th...
[ -0.017086152, -0.3240522444, 0.0621212237, 0.2103668153, 0.3840115666, -0.0155185191, 0.4157941341, 0.178591162, 0.1879402697, 0.3116178811, -0.2562711239, 0.2617365718, -0.0900786072, 0.1555978209, 0.1346467286, -0.1783233434, -0.1780708432, 0.2362426817, -0.1429379582, -0.061...
https://github.com/huggingface/datasets/issues/2869
TypeError: 'NoneType' object is not callable
- For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below? - In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste the ...
## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Speci...
69
TypeError: 'NoneType' object is not callable ## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of th...
[ -0.2277718335, -0.3193503618, 0.0008597157, 0.3918524981, 0.367723763, 0.0557456538, 0.3176339269, 0.1545286328, 0.1733446717, 0.2960278988, -0.1426854432, 0.4552956223, -0.0776571482, 0.2298436761, 0.049333144, -0.1651718765, -0.2105035484, 0.2611337304, -0.1191705465, 0.02622...
https://github.com/huggingface/datasets/issues/2869
TypeError: 'NoneType' object is not callable
> * For the platform, we need to know the operating system of your machine. Could you please run the command `datasets-cli env` and copy-and-paste its output below? > * In relation with the error, you just gave us the error type and message (`TypeError: 'NoneType' object is not callable`). Could you please copy-paste ...
## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Speci...
154
TypeError: 'NoneType' object is not callable ## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of th...
[ -0.2333929837, -0.2121911943, 0.0151841193, 0.3540365398, 0.4313124716, 0.0565463863, 0.427526325, 0.1668838412, 0.1619588584, 0.2543877959, -0.1491199881, 0.4838865995, -0.0326275527, 0.2008451074, 0.1351147294, -0.1875768602, -0.1780488491, 0.183633998, -0.2075743377, 0.05549...
https://github.com/huggingface/datasets/issues/2869
TypeError: 'NoneType' object is not callable
For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem.
## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Speci...
20
TypeError: 'NoneType' object is not callable ## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of th...
[ -0.2608939707, -0.2007065266, 0.0659998357, 0.4001958668, 0.4645994008, 0.0115250899, 0.3240971863, 0.0941316038, 0.1896002889, 0.3001818061, -0.2849095166, 0.4667587578, -0.0366441905, 0.166857779, 0.0777647421, -0.1253729612, -0.2606469393, 0.2636679113, -0.1777468622, 0.0613...
https://github.com/huggingface/datasets/issues/2869
TypeError: 'NoneType' object is not callable
One naive question: do you have internet access from the machine where you execute the code?
## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Speci...
16
TypeError: 'NoneType' object is not callable ## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of th...
[ -0.2466748953, -0.2166071534, -0.0038835679, 0.3586860299, 0.4009476304, 0.0355367847, 0.3025213182, 0.1521892399, 0.1650361866, 0.3566102386, -0.1779199988, 0.4452131093, -0.0382571556, 0.1990445554, 0.0816195011, -0.0899617076, -0.2033715099, 0.244706586, -0.1842230707, 0.010...
https://github.com/huggingface/datasets/issues/2869
TypeError: 'NoneType' object is not callable
> For that environment, I am sorry but I can't reproduce the bug: I can load the dataset without any problem. But I can download other task dataset such as `dataset = load_dataset('squad')`. I don't know what went wrong. Thank you so much!
## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of the expected results. ## Actual results Speci...
43
TypeError: 'NoneType' object is not callable ## Describe the bug TypeError: 'NoneType' object is not callable ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric dataset = datasets.load_dataset("glue", 'cola') ``` ## Expected results A clear and concise description of th...
[ -0.2479819357, -0.3217715025, 0.0763501227, 0.4701035023, 0.4953815937, 0.0185085312, 0.3540441096, 0.0614945404, 0.240258038, 0.3128613234, -0.27640903, 0.4540321529, -0.0626187027, 0.1033329293, 0.1556577981, -0.155785054, -0.2255954891, 0.1679678857, -0.0779855251, 0.1020547...
https://github.com/huggingface/datasets/issues/2866
"counter" dataset raises an error in normal mode, but not in streaming mode
Hi @severo, thanks for reporting. Just note that currently not all canonical datasets support streaming mode: this is one case! All datasets that use `pathlib` joins (using `/`) instead of `os.path.join` (as in this dataset) do not support streaming mode yet.
## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter', split="train", streaming=False) Using custom data configuration default Dow...
41
"counter" dataset raises an error in normal mode, but not in streaming mode ## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter',...
[ -0.4171533883, -0.2417904437, 0.0004066471, 0.1936671287, 0.1873786449, 0.057204511, 0.5056346059, 0.1059948951, 0.1942839175, 0.1353352368, 0.0698310882, 0.1297213882, -0.2097099572, 0.3238827884, 0.089310728, 0.0787798688, 0.0210812036, 0.1588886082, 0.0335767344, 0.077405042...
https://github.com/huggingface/datasets/issues/2866
"counter" dataset raises an error in normal mode, but not in streaming mode
OK. Do you think it's possible to detect this, and raise an exception (maybe `NotImplementedError`, or a specific `StreamingError`)?
## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter', split="train", streaming=False) Using custom data configuration default Dow...
19
"counter" dataset raises an error in normal mode, but not in streaming mode ## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter',...
[ -0.4171533883, -0.2417904437, 0.0004066471, 0.1936671287, 0.1873786449, 0.057204511, 0.5056346059, 0.1059948951, 0.1942839175, 0.1353352368, 0.0698310882, 0.1297213882, -0.2097099572, 0.3238827884, 0.089310728, 0.0787798688, 0.0210812036, 0.1588886082, 0.0335767344, 0.077405042...
https://github.com/huggingface/datasets/issues/2866
"counter" dataset raises an error in normal mode, but not in streaming mode
We should definitely support datasets using `pathlib` in streaming mode... For non-supported datasets in streaming mode, we have already a request of raising an error/warning: see #2654.
## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter', split="train", streaming=False) Using custom data configuration default Dow...
27
"counter" dataset raises an error in normal mode, but not in streaming mode ## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter',...
[ -0.4171533883, -0.2417904437, 0.0004066471, 0.1936671287, 0.1873786449, 0.057204511, 0.5056346059, 0.1059948951, 0.1942839175, 0.1353352368, 0.0698310882, 0.1297213882, -0.2097099572, 0.3238827884, 0.089310728, 0.0787798688, 0.0210812036, 0.1588886082, 0.0335767344, 0.077405042...
https://github.com/huggingface/datasets/issues/2866
"counter" dataset raises an error in normal mode, but not in streaming mode
Hi @severo, please note that "counter" dataset will be streamable (at least until it arrives at the missing file, error already in normal mode) once these PRs are merged: - #2874 - #2876 - #2880 I have tested it. 😉
## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter', split="train", streaming=False) Using custom data configuration default Dow...
40
"counter" dataset raises an error in normal mode, but not in streaming mode ## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter',...
[ -0.4171533883, -0.2417904437, 0.0004066471, 0.1936671287, 0.1873786449, 0.057204511, 0.5056346059, 0.1059948951, 0.1942839175, 0.1353352368, 0.0698310882, 0.1297213882, -0.2097099572, 0.3238827884, 0.089310728, 0.0787798688, 0.0210812036, 0.1588886082, 0.0335767344, 0.077405042...
https://github.com/huggingface/datasets/issues/2866
"counter" dataset raises an error in normal mode, but not in streaming mode
Now (on master), we get: ``` import datasets as ds ds.load_dataset('counter', split="train", streaming=False) ``` ``` Using custom data configuration default Downloading and preparing dataset counter/default (download: 1.29 MiB, generated: 2.48 MiB, post-processed: Unknown size, total: 3.77 MiB) to /home/sle...
## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter', split="train", streaming=False) Using custom data configuration default Dow...
191
"counter" dataset raises an error in normal mode, but not in streaming mode ## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter',...
[ -0.4171533883, -0.2417904437, 0.0004066471, 0.1936671287, 0.1873786449, 0.057204511, 0.5056346059, 0.1059948951, 0.1942839175, 0.1353352368, 0.0698310882, 0.1297213882, -0.2097099572, 0.3238827884, 0.089310728, 0.0787798688, 0.0210812036, 0.1588886082, 0.0335767344, 0.077405042...
https://github.com/huggingface/datasets/issues/2866
"counter" dataset raises an error in normal mode, but not in streaming mode
Note that we might want to open an issue to fix the "counter" dataset by itself, but I let it up to you.
## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter', split="train", streaming=False) Using custom data configuration default Dow...
23
"counter" dataset raises an error in normal mode, but not in streaming mode ## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter',...
[ -0.4171533883, -0.2417904437, 0.0004066471, 0.1936671287, 0.1873786449, 0.057204511, 0.5056346059, 0.1059948951, 0.1942839175, 0.1353352368, 0.0698310882, 0.1297213882, -0.2097099572, 0.3238827884, 0.089310728, 0.0787798688, 0.0210812036, 0.1588886082, 0.0335767344, 0.077405042...
https://github.com/huggingface/datasets/issues/2866
"counter" dataset raises an error in normal mode, but not in streaming mode
On master, I get: ```python >>> import datasets as ds >>> iterable_dataset = ds.load_dataset('counter', split="train", streaming=True) >>> rows = list(iterable_dataset.take(100)) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/slesage/hf/datasets/src/datasets/iterable_dat...
## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter', split="train", streaming=False) Using custom data configuration default Dow...
90
"counter" dataset raises an error in normal mode, but not in streaming mode ## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter',...
[ -0.4171533883, -0.2417904437, 0.0004066471, 0.1936671287, 0.1873786449, 0.057204511, 0.5056346059, 0.1059948951, 0.1942839175, 0.1353352368, 0.0698310882, 0.1297213882, -0.2097099572, 0.3238827884, 0.089310728, 0.0787798688, 0.0210812036, 0.1588886082, 0.0335767344, 0.077405042...
https://github.com/huggingface/datasets/issues/2866
"counter" dataset raises an error in normal mode, but not in streaming mode
Associated to the above exception, if I create a test and run it with pytest, I get an awful traceback. - create a file `test_counter.py` ```python import pytest from datasets import load_dataset, IterableDataset from typing import Any, cast def test_counter() -> Any: iterable_dataset = cast(Iterable...
## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter', split="train", streaming=False) Using custom data configuration default Dow...
301
"counter" dataset raises an error in normal mode, but not in streaming mode ## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter',...
[ -0.4171533883, -0.2417904437, 0.0004066471, 0.1936671287, 0.1873786449, 0.057204511, 0.5056346059, 0.1059948951, 0.1942839175, 0.1353352368, 0.0698310882, 0.1297213882, -0.2097099572, 0.3238827884, 0.089310728, 0.0787798688, 0.0210812036, 0.1588886082, 0.0335767344, 0.077405042...
https://github.com/huggingface/datasets/issues/2866
"counter" dataset raises an error in normal mode, but not in streaming mode
I opened a PR to fix these issues. Also in your test you expect a TypeError but I don't know why. On my side it works fine without raising a TypeError
## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter', split="train", streaming=False) Using custom data configuration default Dow...
31
"counter" dataset raises an error in normal mode, but not in streaming mode ## Describe the bug `counter` dataset raises an error on `load_dataset()`, but simply returns an empty iterator in streaming mode. ## Steps to reproduce the bug ```python >>> import datasets as ds >>> a = ds.load_dataset('counter',...
[ -0.4171533883, -0.2417904437, 0.0004066471, 0.1936671287, 0.1873786449, 0.057204511, 0.5056346059, 0.1059948951, 0.1942839175, 0.1353352368, 0.0698310882, 0.1297213882, -0.2097099572, 0.3238827884, 0.089310728, 0.0787798688, 0.0210812036, 0.1588886082, 0.0335767344, 0.077405042...