html_url stringlengths 51 51 | comments stringlengths 67 24.7k | title stringlengths 6 280 | body stringlengths 51 36.2k | comment_length int64 16 1.45k | text stringlengths 190 38.3k | embeddings list |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/3134 | > It seems to be able to solve this issue by adding the equivalent `accuracy.py` locally. change `metric = datasets.load_metric("accuracy")` to `metric = datasets.load_metric(path = "./accuracy.py")`. Copy `accuracy.py` from browser at [accuracy.py](https://raw.githubusercontent.com/huggingface/datasets/1.11.0/metrics/... | Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.11.0/metrics/rouge/rouge.py | datasets version: 1.12.1
`metric = datasets.load_metric('rouge')`
The error:
> ConnectionError Traceback (most recent call last)
> <ipython-input-3-dd10a0c5212f> in <module>
> ----> 1 metric = datasets.load_metric('rouge')
>
> /usr/local/lib/python3.6/dist-packages/datasets/load.... | 38 | Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.11.0/metrics/rouge/rouge.py
datasets version: 1.12.1
`metric = datasets.load_metric('rouge')`
The error:
> ConnectionError Traceback (most recent call last)
> <ipython-input-3-dd10a0c5212f> in <module>
> ---->... | [
-0.40289556980133057,
-0.09171605855226517,
-0.1140875443816185,
0.2032691389322281,
0.23352211713790894,
-0.07915352284908295,
0.09773355722427368,
0.40122994780540466,
0.17329435050487518,
0.2921183109283447,
-0.3156026303768158,
-0.029254790395498276,
0.06649382412433624,
0.056605614721... |
https://github.com/huggingface/datasets/issues/3127 | Hi,
the MNIST dataset is already available on the Hub. You can use it as follows:
```python
import datasets
dataset_dict = datasets.load_dataset("mnist")
```
As for the conversion of TFDS datasets to HF datasets, we will be working on it in the coming months, so stay tuned. | datasets-cli: convertion of a tfds dataset to a huggingface one. | ### Discussed in https://github.com/huggingface/datasets/discussions/3079
<div type='discussions-op-text'>
<sup>Originally posted by **vitalyshalumov** October 14, 2021</sup>
I'm trying to convert a tfds dataset to a huggingface one.
I've tried:
1. datasets-cli convert --tfds_path ~/tensorflow_datas... | 46 | datasets-cli: convertion of a tfds dataset to a huggingface one.
### Discussed in https://github.com/huggingface/datasets/discussions/3079
<div type='discussions-op-text'>
<sup>Originally posted by **vitalyshalumov** October 14, 2021</sup>
I'm trying to convert a tfds dataset to a huggingface one.
I've trie... | [
-0.16489127278327942,
-0.4112805128097534,
-0.01587158814072609,
0.07921591401100159,
0.26693195104599,
0.22556978464126587,
-0.030049648135900497,
0.326682984828949,
0.10261599719524384,
0.12851524353027344,
-0.4481951594352722,
-0.044341109693050385,
-0.23465076088905334,
0.2429738938808... |
https://github.com/huggingface/datasets/issues/3126 | Thanks for reporting, @vitalyshalumov.
Apparently the script to parse the data has a bug, and does not generate the entire dataset.
I'm fixing it. | "arabic_billion_words" dataset does not create the full dataset | ## Describe the bug
When running:
raw_dataset = load_dataset('arabic_billion_words','Alittihad')
the correct dataset file is pulled from the url.
But, the generated dataset includes just a small portion of the data included in the file.
This is true for all other portions of the "arabic_billion_words" dataset ('A... | 24 | "arabic_billion_words" dataset does not create the full dataset
## Describe the bug
When running:
raw_dataset = load_dataset('arabic_billion_words','Alittihad')
the correct dataset file is pulled from the url.
But, the generated dataset includes just a small portion of the data included in the file.
This is tru... | [
-0.02861456573009491,
0.08810065686702728,
-0.03981591761112213,
0.4470804035663605,
-0.054164595901966095,
0.18207310140132904,
0.08810350298881531,
0.40254026651382446,
-0.09487396478652954,
0.016380134969949722,
0.21970079839229584,
-0.12830229103565216,
0.21809601783752441,
0.154110282... |
https://github.com/huggingface/datasets/issues/3123 | Hi ! I created an issue on Arrow's JIRA after making a minimum reproducible example
https://issues.apache.org/jira/browse/ARROW-14439
```python
import io
import pyarrow.json as paj
batch = b'{"a": [], "b": 1}\n{"b": 1}'
block_size = 12
paj.read_json(
io.BytesIO(batch), read_options=paj.ReadOptions... | Segmentation fault when loading datasets from file | ## Describe the bug
Custom dataset loading sometimes segfaults and kills the process if chunks contain a variety of features/
## Steps to reproduce the bug
Download an example file:
```
wget https://gist.githubusercontent.com/TevenLeScao/11e2184394b3fa47d693de2550942c6b/raw/4232704d08fbfcaf93e5b51def9e50515076... | 58 | Segmentation fault when loading datasets from file
## Describe the bug
Custom dataset loading sometimes segfaults and kills the process if chunks contain a variety of features/
## Steps to reproduce the bug
Download an example file:
```
wget https://gist.githubusercontent.com/TevenLeScao/11e2184394b3fa47d693... | [
-0.2216058373451233,
0.046287670731544495,
-0.04613116383552551,
0.3980240821838379,
0.2773246169090271,
0.13029643893241882,
0.4007086455821991,
0.4724467396736145,
-0.26259666681289673,
-0.04886922985315323,
0.021849878132343292,
0.541718065738678,
-0.09166029095649719,
-0.19030839204788... |
https://github.com/huggingface/datasets/issues/3123 | The issue has been fixed in pyarrow 6.0.0, please update pyarrow :)
The issue was due to missing fields in the JSON data of type list. Now it's working fine and missing list fields are replaced with empty lists | Segmentation fault when loading datasets from file | ## Describe the bug
Custom dataset loading sometimes segfaults and kills the process if chunks contain a variety of features/
## Steps to reproduce the bug
Download an example file:
```
wget https://gist.githubusercontent.com/TevenLeScao/11e2184394b3fa47d693de2550942c6b/raw/4232704d08fbfcaf93e5b51def9e50515076... | 39 | Segmentation fault when loading datasets from file
## Describe the bug
Custom dataset loading sometimes segfaults and kills the process if chunks contain a variety of features/
## Steps to reproduce the bug
Download an example file:
```
wget https://gist.githubusercontent.com/TevenLeScao/11e2184394b3fa47d693... | [
-0.2918098568916321,
0.12142960727214813,
-0.08270519226789474,
0.3285433053970337,
0.21684089303016663,
0.17590349912643433,
0.4262993335723877,
0.4501456916332245,
-0.1168764978647232,
-0.03568092733621597,
-0.008839249610900879,
0.43173226714134216,
-0.07351984083652496,
-0.145085781812... |
https://github.com/huggingface/datasets/issues/3122 | Hi,
there is a difference in how the `data_dir` is zipped between the `classla/janes_tag` and the `classla/reldi_hr` dataset. After unzipping, for the former, the data files (`*.conllup`) are in the root directory (root -> data files), and for the latter, they are inside the `data` directory (root -> `data` -> data ... | OSError with a custom dataset loading script | ## Describe the bug
I am getting an OS error when trying to load the newly uploaded dataset classla/janes_tag. What puzzles me is that I have already uploaded a very similar dataset - classla/reldi_hr - with no issues. The loading scripts for the two datasets are almost identical and they have the same directory struc... | 71 | OSError with a custom dataset loading script
## Describe the bug
I am getting an OS error when trying to load the newly uploaded dataset classla/janes_tag. What puzzles me is that I have already uploaded a very similar dataset - classla/reldi_hr - with no issues. The loading scripts for the two datasets are almost i... | [
-0.11289592832326889,
0.281528502702713,
-0.013334564864635468,
0.3955745995044708,
0.24190059304237366,
0.11738428473472595,
0.4183785021305084,
0.33384189009666443,
0.3993053734302521,
0.1943427175283432,
-0.229303240776062,
0.31923744082450867,
-0.23658980429172516,
-0.05865128338336944... |
https://github.com/huggingface/datasets/issues/3122 | Hi Mario,
I had already tried that before, but it didn't work. I have now recreated the `classla/janes_tag` zip file so that it also contains the `data` directory, but I am still getting the same error. | OSError with a custom dataset loading script | ## Describe the bug
I am getting an OS error when trying to load the newly uploaded dataset classla/janes_tag. What puzzles me is that I have already uploaded a very similar dataset - classla/reldi_hr - with no issues. The loading scripts for the two datasets are almost identical and they have the same directory struc... | 36 | OSError with a custom dataset loading script
## Describe the bug
I am getting an OS error when trying to load the newly uploaded dataset classla/janes_tag. What puzzles me is that I have already uploaded a very similar dataset - classla/reldi_hr - with no issues. The loading scripts for the two datasets are almost i... | [
-0.11289592832326889,
0.281528502702713,
-0.013334564864635468,
0.3955745995044708,
0.24190059304237366,
0.11738428473472595,
0.4183785021305084,
0.33384189009666443,
0.3993053734302521,
0.1943427175283432,
-0.229303240776062,
0.31923744082450867,
-0.23658980429172516,
-0.05865128338336944... |
https://github.com/huggingface/datasets/issues/3122 | Hi,
I just tried to download the `classla/janes_tag` dataset, and this time the zip file is extracted correctly. However, the script is now throwing the IndexError, probably due to a bug in the `_generate_examples`.
Let me know if you are still getting the same error. | OSError with a custom dataset loading script | ## Describe the bug
I am getting an OS error when trying to load the newly uploaded dataset classla/janes_tag. What puzzles me is that I have already uploaded a very similar dataset - classla/reldi_hr - with no issues. The loading scripts for the two datasets are almost identical and they have the same directory struc... | 45 | OSError with a custom dataset loading script
## Describe the bug
I am getting an OS error when trying to load the newly uploaded dataset classla/janes_tag. What puzzles me is that I have already uploaded a very similar dataset - classla/reldi_hr - with no issues. The loading scripts for the two datasets are almost i... | [
-0.11289592832326889,
0.281528502702713,
-0.013334564864635468,
0.3955745995044708,
0.24190059304237366,
0.11738428473472595,
0.4183785021305084,
0.33384189009666443,
0.3993053734302521,
0.1943427175283432,
-0.229303240776062,
0.31923744082450867,
-0.23658980429172516,
-0.05865128338336944... |
https://github.com/huggingface/datasets/issues/3122 | Hi,
could you try to download the dataset with a different `cache_dir` like so:
```python
import datasets
dataset = datasets.load_dataset('classla/janes_tag', split='validation', cache_dir="path/to/different/cache/dir")
```
If this works, then most likely the cached extracted data is causing issues. This data ... | OSError with a custom dataset loading script | ## Describe the bug
I am getting an OS error when trying to load the newly uploaded dataset classla/janes_tag. What puzzles me is that I have already uploaded a very similar dataset - classla/reldi_hr - with no issues. The loading scripts for the two datasets are almost identical and they have the same directory struc... | 84 | OSError with a custom dataset loading script
## Describe the bug
I am getting an OS error when trying to load the newly uploaded dataset classla/janes_tag. What puzzles me is that I have already uploaded a very similar dataset - classla/reldi_hr - with no issues. The loading scripts for the two datasets are almost i... | [
-0.11289592832326889,
0.281528502702713,
-0.013334564864635468,
0.3955745995044708,
0.24190059304237366,
0.11738428473472595,
0.4183785021305084,
0.33384189009666443,
0.3993053734302521,
0.1943427175283432,
-0.229303240776062,
0.31923744082450867,
-0.23658980429172516,
-0.05865128338336944... |
https://github.com/huggingface/datasets/issues/3122 | Thank you, deleting the `~/.cache/huggingface/datasets/downloads/extracted` directory helped. However, I am still having problems.
There was indeed a bug in the script that was throwing an `IndexError`, which I have now corrected (added the condition to skip the lines starting with '# text') and it is working locall... | OSError with a custom dataset loading script | ## Describe the bug
I am getting an OS error when trying to load the newly uploaded dataset classla/janes_tag. What puzzles me is that I have already uploaded a very similar dataset - classla/reldi_hr - with no issues. The loading scripts for the two datasets are almost identical and they have the same directory struc... | 117 | OSError with a custom dataset loading script
## Describe the bug
I am getting an OS error when trying to load the newly uploaded dataset classla/janes_tag. What puzzles me is that I have already uploaded a very similar dataset - classla/reldi_hr - with no issues. The loading scripts for the two datasets are almost i... | [
-0.11289592832326889,
0.281528502702713,
-0.013334564864635468,
0.3955745995044708,
0.24190059304237366,
0.11738428473472595,
0.4183785021305084,
0.33384189009666443,
0.3993053734302521,
0.1943427175283432,
-0.229303240776062,
0.31923744082450867,
-0.23658980429172516,
-0.05865128338336944... |
https://github.com/huggingface/datasets/issues/3122 | Hi,
Did some investigation.
To fix the dataset script on the Hub, append the following labels to the `names` list of the `upos_tags` field:
```'INTJ NOUN', 'AUX PRON', 'PART ADV', 'PRON ADP', 'INTJ INTJ', 'VERB NOUN', 'NOUN AUX'```.
This step is required to avoid an error due to missing labels in the followin... | OSError with a custom dataset loading script | ## Describe the bug
I am getting an OS error when trying to load the newly uploaded dataset classla/janes_tag. What puzzles me is that I have already uploaded a very similar dataset - classla/reldi_hr - with no issues. The loading scripts for the two datasets are almost identical and they have the same directory struc... | 84 | OSError with a custom dataset loading script
## Describe the bug
I am getting an OS error when trying to load the newly uploaded dataset classla/janes_tag. What puzzles me is that I have already uploaded a very similar dataset - classla/reldi_hr - with no issues. The loading scripts for the two datasets are almost i... | [
-0.11289592832326889,
0.281528502702713,
-0.013334564864635468,
0.3955745995044708,
0.24190059304237366,
0.11738428473472595,
0.4183785021305084,
0.33384189009666443,
0.3993053734302521,
0.1943427175283432,
-0.229303240776062,
0.31923744082450867,
-0.23658980429172516,
-0.05865128338336944... |
https://github.com/huggingface/datasets/issues/3119 | Ugh. The index files for SLR83 are CSV, not TSV. I need to add logic to process these index files. | Add OpenSLR 83 - Crowdsourced high-quality UK and Ireland English Dialect speech | ## Adding a Dataset
- **Name:** *openslr**
- **Description:** *Data set which contains male and female recordings of English from various dialects of the UK and Ireland.*
- **Paper:** *https://www.openslr.org/resources/83/about.html*
- **Data:** *Eleven separate data files can be found via https://www.openslr.org/r... | 20 | Add OpenSLR 83 - Crowdsourced high-quality UK and Ireland English Dialect speech
## Adding a Dataset
- **Name:** *openslr**
- **Description:** *Data set which contains male and female recordings of English from various dialects of the UK and Ireland.*
- **Paper:** *https://www.openslr.org/resources/83/about.html*
... | [
-0.050953831523656845,
0.23380164802074432,
-0.14227433502674103,
0.10423243790864944,
-0.3136022090911865,
0.24643363058567047,
-0.05547020211815834,
0.29288142919540405,
0.5650346279144287,
0.22435633838176727,
-0.19794738292694092,
0.15148024260997772,
-0.41456103324890137,
0.2901998460... |
https://github.com/huggingface/datasets/issues/3114 | Hi ! Can you try again with pyarrow 6.0.0 ? I think it includes some changes regarding filesystems compatibility with fsspec. | load_from_disk in DatasetsDict/Dataset not working with PyArrowHDFS wrapper implementing fsspec.spec.AbstractFileSystem | ## Describe the bug
Passing a PyArrowHDFS implementation of fsspec.spec.AbstractFileSystem (in the `fs` param required by `load_from_disk` methods in `DatasetDict` (in datasets_dict.py) and `Dataset` (in arrow_dataset.py) results in an error when calling the download method in the `fs` parameter.
## Steps to repr... | 21 | load_from_disk in DatasetsDict/Dataset not working with PyArrowHDFS wrapper implementing fsspec.spec.AbstractFileSystem
## Describe the bug
Passing a PyArrowHDFS implementation of fsspec.spec.AbstractFileSystem (in the `fs` param required by `load_from_disk` methods in `DatasetDict` (in datasets_dict.py) and `Datase... | [
-0.33495521545410156,
0.22413572669029236,
0.10279537737369537,
0.13520149886608124,
0.19603542983531952,
-0.22526216506958008,
0.36155927181243896,
0.004049066454172134,
-0.051257453858852386,
-0.10264153778553009,
-0.12200995534658432,
0.4690685570240021,
0.16469891369342804,
0.032615281... |
https://github.com/huggingface/datasets/issues/3114 | Hi @lhoestq! I ended up using `fsspec.implementations.arrow.HadoopFileSystem` which doesn't have the problem I described with pyarrow 5.0.0.
I'll try again with `PyArrowHDFS` once I update arrow to 6.0.0.
Thanks! | load_from_disk in DatasetsDict/Dataset not working with PyArrowHDFS wrapper implementing fsspec.spec.AbstractFileSystem | ## Describe the bug
Passing a PyArrowHDFS implementation of fsspec.spec.AbstractFileSystem (in the `fs` param required by `load_from_disk` methods in `DatasetDict` (in datasets_dict.py) and `Dataset` (in arrow_dataset.py) results in an error when calling the download method in the `fs` parameter.
## Steps to repr... | 29 | load_from_disk in DatasetsDict/Dataset not working with PyArrowHDFS wrapper implementing fsspec.spec.AbstractFileSystem
## Describe the bug
Passing a PyArrowHDFS implementation of fsspec.spec.AbstractFileSystem (in the `fs` param required by `load_from_disk` methods in `DatasetDict` (in datasets_dict.py) and `Datase... | [
-0.33495521545410156,
0.22413572669029236,
0.10279537737369537,
0.13520149886608124,
0.19603542983531952,
-0.22526216506958008,
0.36155927181243896,
0.004049066454172134,
-0.051257453858852386,
-0.10264153778553009,
-0.12200995534658432,
0.4690685570240021,
0.16469891369342804,
0.032615281... |
https://github.com/huggingface/datasets/issues/3113 | I would also like this support or something similar. Geospatial datasets come in netcdf which is derived from hdf5, or zarr. I've gotten zarr stores to work with datasets and streaming, but it takes awhile to convert the data to zarr if it's not stored in that natively. | Loading Data from HDF files | **Is your feature request related to a problem? Please describe.**
More often than not I come along big HDF datasets, and currently there is no straight forward way to feed them to a dataset.
**Describe the solution you'd like**
I would love to see a `from_h5` method that gets an interface implemented by the user ... | 48 | Loading Data from HDF files
**Is your feature request related to a problem? Please describe.**
More often than not I come along big HDF datasets, and currently there is no straight forward way to feed them to a dataset.
**Describe the solution you'd like**
I would love to see a `from_h5` method that gets an inte... | [
-0.2698461413383484,
-0.02929113805294037,
-0.033548735082149506,
0.06939223408699036,
-0.11248362809419632,
-0.0574614554643631,
0.20428906381130219,
0.3047318160533905,
0.2554059326648712,
0.1999824047088623,
-0.2381211519241333,
0.011761732399463654,
-0.024954654276371002,
0.54233938455... |
https://github.com/huggingface/datasets/issues/3113 | @mariosasko , I would like to contribute on this "good second issue" . Is there anything in the works for this Issue or can I go ahead ?
| Loading Data from HDF files | **Is your feature request related to a problem? Please describe.**
More often than not I come along big HDF datasets, and currently there is no straight forward way to feed them to a dataset.
**Describe the solution you'd like**
I would love to see a `from_h5` method that gets an interface implemented by the user ... | 28 | Loading Data from HDF files
**Is your feature request related to a problem? Please describe.**
More often than not I come along big HDF datasets, and currently there is no straight forward way to feed them to a dataset.
**Describe the solution you'd like**
I would love to see a `from_h5` method that gets an inte... | [
-0.16749441623687744,
-0.030155852437019348,
-0.042477015405893326,
0.09596972167491913,
-0.16113194823265076,
-0.09080303460359573,
0.30444037914276123,
0.3402229845523834,
0.2754335403442383,
0.18503111600875854,
-0.16302096843719482,
-0.02948322892189026,
0.03741505742073059,
0.42404413... |
https://github.com/huggingface/datasets/issues/3113 | Hi @VijayKalmath! As far as I know, nobody is working on it, so feel free to take over. Also, before you start, I suggest you comment `#self-assign` on this issue to assign it to yourself. | Loading Data from HDF files | **Is your feature request related to a problem? Please describe.**
More often than not I come along big HDF datasets, and currently there is no straight forward way to feed them to a dataset.
**Describe the solution you'd like**
I would love to see a `from_h5` method that gets an interface implemented by the user ... | 35 | Loading Data from HDF files
**Is your feature request related to a problem? Please describe.**
More often than not I come along big HDF datasets, and currently there is no straight forward way to feed them to a dataset.
**Describe the solution you'd like**
I would love to see a `from_h5` method that gets an inte... | [
-0.23189130425453186,
-0.04610873758792877,
-0.05121636018157005,
0.05908369645476341,
-0.15826550126075745,
-0.038550540804862976,
0.26836031675338745,
0.3172537684440613,
0.3093607723712921,
0.2026422768831253,
-0.23702207207679749,
0.033383600413799286,
-0.005348594859242439,
0.41308516... |
https://github.com/huggingface/datasets/issues/3112 | I am very unsure on why you tagged me here. I am not a maintainer of the Datasets library and have no idea how to help you. | OverflowError: There was an overflow in the <class 'pyarrow.lib.ListArray'>. Try to reduce writer_batch_size to have batches smaller than 2GB | ## Describe the bug
Despite having batches way under 2Gb when running `datasets.map()`, after processing correctly the data of the first batch without fuss and irrespective of writer_batch_size (say 2,4,8,16,32,64 and 128 in my case), it returns the following error :
> OverflowError: There was an overflow in the <c... | 27 | OverflowError: There was an overflow in the <class 'pyarrow.lib.ListArray'>. Try to reduce writer_batch_size to have batches smaller than 2GB
## Describe the bug
Despite having batches way under 2Gb when running `datasets.map()`, after processing correctly the data of the first batch without fuss and irrespective of... | [
-0.47918781638145447,
-0.10157070308923721,
-0.10075752437114716,
0.39054790139198303,
0.2512305676937103,
-0.06845973432064056,
0.11069966852664948,
0.26457953453063965,
-0.129679337143898,
0.3843228816986084,
0.21814793348312378,
0.3294643759727478,
-0.13100509345531464,
-0.1716292500495... |
https://github.com/huggingface/datasets/issues/3112 | Ok got it, tensor full of NaNs, cf.
~\anaconda3\envs\xxx\lib\site-packages\datasets\arrow_writer.py in write_examples_on_file(self)
315 # This check fails with FloatArrays with nans, which is not what we want, so account for that: | OverflowError: There was an overflow in the <class 'pyarrow.lib.ListArray'>. Try to reduce writer_batch_size to have batches smaller than 2GB | ## Describe the bug
Despite having batches way under 2Gb when running `datasets.map()`, after processing correctly the data of the first batch without fuss and irrespective of writer_batch_size (say 2,4,8,16,32,64 and 128 in my case), it returns the following error :
> OverflowError: There was an overflow in the <c... | 30 | OverflowError: There was an overflow in the <class 'pyarrow.lib.ListArray'>. Try to reduce writer_batch_size to have batches smaller than 2GB
## Describe the bug
Despite having batches way under 2Gb when running `datasets.map()`, after processing correctly the data of the first batch without fuss and irrespective of... | [
-0.47918781638145447,
-0.10157070308923721,
-0.10075752437114716,
0.39054790139198303,
0.2512305676937103,
-0.06845973432064056,
0.11069966852664948,
0.26457953453063965,
-0.129679337143898,
0.3843228816986084,
0.21814793348312378,
0.3294643759727478,
-0.13100509345531464,
-0.1716292500495... |
https://github.com/huggingface/datasets/issues/3099 | Hi @JTWang2000, thanks for reporting.
However, I cannot reproduce your reported bug:
```python
>>> from datasets import load_dataset
>>> dataset = load_dataset("sst", "default")
>>> dataset
DatasetDict({
train: Dataset({
features: ['sentence', 'label', 'tokens', 'tree'],
num_rows: 8544
... | AttributeError: module 'huggingface_hub.hf_api' has no attribute 'DatasetInfo' | ## Describe the bug
When using `pip install datasets`
or use `conda install -c huggingface -c conda-forge datasets`
cannot install datasets
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("sst", "default")
```
## Actual results
---------------------------... | 90 | AttributeError: module 'huggingface_hub.hf_api' has no attribute 'DatasetInfo'
## Describe the bug
When using `pip install datasets`
or use `conda install -c huggingface -c conda-forge datasets`
cannot install datasets
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load... | [
-0.4111839234828949,
-0.24027496576309204,
-0.06850849092006683,
0.4320226311683655,
0.20997756719589233,
0.024240590631961823,
0.2803741991519928,
0.4057570993900299,
0.14708325266838074,
0.08134893327951431,
-0.20769375562667847,
0.3919776678085327,
-0.048321135342121124,
0.0626080632209... |
https://github.com/huggingface/datasets/issues/3099 | Im facing the same issue. I did run the upgrade command but that doesnt seem to resolve the issue | AttributeError: module 'huggingface_hub.hf_api' has no attribute 'DatasetInfo' | ## Describe the bug
When using `pip install datasets`
or use `conda install -c huggingface -c conda-forge datasets`
cannot install datasets
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("sst", "default")
```
## Actual results
---------------------------... | 19 | AttributeError: module 'huggingface_hub.hf_api' has no attribute 'DatasetInfo'
## Describe the bug
When using `pip install datasets`
or use `conda install -c huggingface -c conda-forge datasets`
cannot install datasets
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load... | [
-0.4111839234828949,
-0.24027496576309204,
-0.06850849092006683,
0.4320226311683655,
0.20997756719589233,
0.024240590631961823,
0.2803741991519928,
0.4057570993900299,
0.14708325266838074,
0.08134893327951431,
-0.20769375562667847,
0.3919776678085327,
-0.048321135342121124,
0.0626080632209... |
https://github.com/huggingface/datasets/issues/3099 | Hi @aneeshjain, could you please specify which `huggingface_hub` version you are using?
Besides that, please run `datasets-cli env` and copy-and-paste its output below. | AttributeError: module 'huggingface_hub.hf_api' has no attribute 'DatasetInfo' | ## Describe the bug
When using `pip install datasets`
or use `conda install -c huggingface -c conda-forge datasets`
cannot install datasets
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("sst", "default")
```
## Actual results
---------------------------... | 23 | AttributeError: module 'huggingface_hub.hf_api' has no attribute 'DatasetInfo'
## Describe the bug
When using `pip install datasets`
or use `conda install -c huggingface -c conda-forge datasets`
cannot install datasets
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load... | [
-0.4111839234828949,
-0.24027496576309204,
-0.06850849092006683,
0.4320226311683655,
0.20997756719589233,
0.024240590631961823,
0.2803741991519928,
0.4057570993900299,
0.14708325266838074,
0.08134893327951431,
-0.20769375562667847,
0.3919776678085327,
-0.048321135342121124,
0.0626080632209... |
https://github.com/huggingface/datasets/issues/3099 | The problem seems to be with the latest version of `datasets`. After running `pip install -U datasets huggingface_hub`, I get the following:
```bash
python -c "import huggingface_hub; print(f'hbvers={huggingface_hub.__version__}'); import datasets; print(f'dvers={datasets.__version__}')"
hbvers=0.0.8
Traceback (... | AttributeError: module 'huggingface_hub.hf_api' has no attribute 'DatasetInfo' | ## Describe the bug
When using `pip install datasets`
or use `conda install -c huggingface -c conda-forge datasets`
cannot install datasets
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("sst", "default")
```
## Actual results
---------------------------... | 128 | AttributeError: module 'huggingface_hub.hf_api' has no attribute 'DatasetInfo'
## Describe the bug
When using `pip install datasets`
or use `conda install -c huggingface -c conda-forge datasets`
cannot install datasets
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load... | [
-0.4111839234828949,
-0.24027496576309204,
-0.06850849092006683,
0.4320226311683655,
0.20997756719589233,
0.024240590631961823,
0.2803741991519928,
0.4057570993900299,
0.14708325266838074,
0.08134893327951431,
-0.20769375562667847,
0.3919776678085327,
-0.048321135342121124,
0.0626080632209... |
https://github.com/huggingface/datasets/issues/3099 | > Hi @JTWang2000, thanks for reporting.
>
> However, I cannot reproduce your reported bug:
>
> ```python
> >>> from datasets import load_dataset
>
> >>> dataset = load_dataset("sst", "default")
> >>> dataset
> DatasetDict({
> train: Dataset({
> features: ['sentence', 'label', 'tokens', 'tree']... | AttributeError: module 'huggingface_hub.hf_api' has no attribute 'DatasetInfo' | ## Describe the bug
When using `pip install datasets`
or use `conda install -c huggingface -c conda-forge datasets`
cannot install datasets
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("sst", "default")
```
## Actual results
---------------------------... | 137 | AttributeError: module 'huggingface_hub.hf_api' has no attribute 'DatasetInfo'
## Describe the bug
When using `pip install datasets`
or use `conda install -c huggingface -c conda-forge datasets`
cannot install datasets
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load... | [
-0.4111839234828949,
-0.24027496576309204,
-0.06850849092006683,
0.4320226311683655,
0.20997756719589233,
0.024240590631961823,
0.2803741991519928,
0.4057570993900299,
0.14708325266838074,
0.08134893327951431,
-0.20769375562667847,
0.3919776678085327,
-0.048321135342121124,
0.0626080632209... |
https://github.com/huggingface/datasets/issues/3099 | @tjruwase, please note that versions of `datsets` and `huggingface_hub` must be compatible one with each other:
- In `datasets` version `1.11.0`, the requirement on `huggingface_hub` was: `huggingface_hub<0.1.0`
https://github.com/huggingface/datasets/blob/2cc00f372a96133e701275eec4d6b26d15257289/setup.py#L90
- ... | AttributeError: module 'huggingface_hub.hf_api' has no attribute 'DatasetInfo' | ## Describe the bug
When using `pip install datasets`
or use `conda install -c huggingface -c conda-forge datasets`
cannot install datasets
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load_dataset("sst", "default")
```
## Actual results
---------------------------... | 83 | AttributeError: module 'huggingface_hub.hf_api' has no attribute 'DatasetInfo'
## Describe the bug
When using `pip install datasets`
or use `conda install -c huggingface -c conda-forge datasets`
cannot install datasets
## Steps to reproduce the bug
```python
from datasets import load_dataset
dataset = load... | [
-0.4111839234828949,
-0.24027496576309204,
-0.06850849092006683,
0.4320226311683655,
0.20997756719589233,
0.024240590631961823,
0.2803741991519928,
0.4057570993900299,
0.14708325266838074,
0.08134893327951431,
-0.20769375562667847,
0.3919776678085327,
-0.048321135342121124,
0.0626080632209... |
https://github.com/huggingface/datasets/issues/3095 | Thanks for reporting, @patrickvonplaten.
I think the issue is related to mp3 resampling, not to `cast_column`.
You can check that `cast_column` works OK with non-mp3 audio files:
```python
from datasets import load_dataset
import datasets
ds = load_dataset("arabic_speech_corpus", split="train")
ds = ds.cast_... | `cast_column` makes audio decoding fail | ## Describe the bug
After changing the sampling rate automatic decoding fails.
## Steps to reproduce the bug
```python
from datasets import load_dataset
import datasets
ds = load_dataset("common_voice", "ab", split="train")
ds = ds.cast_column("audio", datasets.features.Audio(sampling_rate=16_000))
pr... | 47 | `cast_column` makes audio decoding fail
## Describe the bug
After changing the sampling rate automatic decoding fails.
## Steps to reproduce the bug
```python
from datasets import load_dataset
import datasets
ds = load_dataset("common_voice", "ab", split="train")
ds = ds.cast_column("audio", datasets.f... | [
-0.3449612259864807,
0.08097302913665771,
0.029025495052337646,
-0.10230003297328949,
0.5135595202445984,
-0.07656358182430267,
0.3012085556983948,
0.24899697303771973,
-0.1418648362159729,
0.18673920631408691,
-0.27013635635375977,
0.48671749234199524,
0.04468867555260658,
-0.131416171789... |
https://github.com/huggingface/datasets/issues/3094 | for reference Kaggle has a good number of open source datasets stored in sqlite
Alternatively a tutorial or tool on how to convert from sqlite to parquet would be cool too | Support loading a dataset from SQLite files | As requested by @julien-c, we could eventually support loading a dataset from SQLite files, like it is the case for JSON/CSV files. | 31 | Support loading a dataset from SQLite files
As requested by @julien-c, we could eventually support loading a dataset from SQLite files, like it is the case for JSON/CSV files.
for reference Kaggle has a good number of open source datasets stored in sqlite
Alternatively a tutorial or tool on how to convert from s... | [
-0.25154510140419006,
0.11419430375099182,
-0.25686147809028625,
0.19251734018325806,
-0.03765138238668442,
0.187795028090477,
0.03325153514742851,
0.29667380452156067,
0.13959401845932007,
0.13786566257476807,
0.29399561882019043,
0.4291552007198334,
-0.16768720746040344,
0.41311031579971... |
https://github.com/huggingface/datasets/issues/3094 | Hello, could we leverage [`pandas.read_sql`](https://pandas.pydata.org/docs/reference/api/pandas.read_sql.html) for this?
This would be basically the same as [`CSVBuilder`](https://github.com/huggingface/datasets/blob/7380140accf522a4363bb56c0b77a4190f49bed6/src/datasets/packaged_modules/csv/csv.py#L127)
, but use... | Support loading a dataset from SQLite files | As requested by @julien-c, we could eventually support loading a dataset from SQLite files, like it is the case for JSON/CSV files. | 32 | Support loading a dataset from SQLite files
As requested by @julien-c, we could eventually support loading a dataset from SQLite files, like it is the case for JSON/CSV files.
Hello, could we leverage [`pandas.read_sql`](https://pandas.pydata.org/docs/reference/api/pandas.read_sql.html) for this?
This would be ... | [
-0.19307945668697357,
0.2481561005115509,
-0.1902521550655365,
0.24785442650318146,
0.4446180462837219,
0.24592790007591248,
0.27163979411125183,
0.48716211318969727,
0.19425660371780396,
-0.13119906187057495,
-0.06714992225170135,
0.3716171085834503,
-0.22504466772079468,
0.29410555958747... |
https://github.com/huggingface/datasets/issues/3093 | Hi,
even Pandas, which is less strict compared to PyArrow when it comes to reading JSON, doesn't support different orderings:
```python
import io
import pandas as pd
s = """
{"a": {"c": 8, "b": 5}}
{"a": {"b": 7, "c": 6}}
"""
buffer = io.StringIO(s)
df = pd.read_json(buffer, lines=True)
print(df.sha... | Error loading json dataset with multiple splits if keys in nested dicts have a different order | ## Describe the bug
Loading a json dataset with multiple splits that have nested dicts with keys in different order results in the error below.
If the keys in the nested dicts always have the same order or even if you just load a single split in which the nested dicts don't have the same order, everything works fin... | 102 | Error loading json dataset with multiple splits if keys in nested dicts have a different order
## Describe the bug
Loading a json dataset with multiple splits that have nested dicts with keys in different order results in the error below.
If the keys in the nested dicts always have the same order or even if you j... | [
0.08323401212692261,
-0.24732936918735504,
-0.08492766320705414,
0.49812331795692444,
-0.034176528453826904,
0.09252351522445679,
0.4738398790359497,
0.24250328540802002,
0.4540649652481079,
-0.0762438029050827,
0.09579895436763763,
0.35030943155288696,
-0.027353208512067795,
0.19231048226... |
https://github.com/huggingface/datasets/issues/3091 | Hi @fdtomasi, thanks for reporting.
You are right: the original host data URL does no longer exist.
I've contacted the authors of the dataset to ask them if they host this dataset in another URL. | `blog_authorship_corpus` is broken | ## Describe the bug
The dataset `blog_authorship_corpus` is broken.
By bypassing the checksum checks, the loading does not return any error but the resulting dataset is empty.
I suspect it is because the data download url is broken (http://www.cs.biu.ac.il/~koppel/blogs/blogs.zip).
## Steps to reproduce the bug
... | 35 | `blog_authorship_corpus` is broken
## Describe the bug
The dataset `blog_authorship_corpus` is broken.
By bypassing the checksum checks, the loading does not return any error but the resulting dataset is empty.
I suspect it is because the data download url is broken (http://www.cs.biu.ac.il/~koppel/blogs/blogs.zip... | [
-0.05624973773956299,
0.45491495728492737,
-0.005902044475078583,
0.29077866673469543,
0.002276424318552017,
0.20326432585716248,
0.3583988547325134,
0.31650012731552124,
0.04609864950180054,
-0.07978576421737671,
-0.12527862191200256,
0.10280421376228333,
0.14886979758739471,
-0.217685937... |
https://github.com/huggingface/datasets/issues/3091 | Hi, @fdtomasi, the URL is fixed.
The fix is already in our master branch and it will be accessible in our next release.
In the meantime, you can include the fix if you install the `datasets` library from the master branch:
```
pip install -U git+ssh://git@github.com/huggingface/datasets.git@master#egg=datasest
... | `blog_authorship_corpus` is broken | ## Describe the bug
The dataset `blog_authorship_corpus` is broken.
By bypassing the checksum checks, the loading does not return any error but the resulting dataset is empty.
I suspect it is because the data download url is broken (http://www.cs.biu.ac.il/~koppel/blogs/blogs.zip).
## Steps to reproduce the bug
... | 54 | `blog_authorship_corpus` is broken
## Describe the bug
The dataset `blog_authorship_corpus` is broken.
By bypassing the checksum checks, the loading does not return any error but the resulting dataset is empty.
I suspect it is because the data download url is broken (http://www.cs.biu.ac.il/~koppel/blogs/blogs.zip... | [
-0.05624973773956299,
0.45491495728492737,
-0.005902044475078583,
0.29077866673469543,
0.002276424318552017,
0.20326432585716248,
0.3583988547325134,
0.31650012731552124,
0.04609864950180054,
-0.07978576421737671,
-0.12527862191200256,
0.10280421376228333,
0.14886979758739471,
-0.217685937... |
https://github.com/huggingface/datasets/issues/3089 | # Steps to reproduce
To reproduce:
```python
from datasets import load_dataset
dataset = load_dataset('jnlpba')
dataset['train'].features['ner_tags']
```
Output:
```python
Sequence(feature=ClassLabel(num_classes=3, names=['O', 'B', 'I'], names_file=None, id=None), length=-1, id=None)
```
| JNLPBA Dataset | ## Describe the bug
A clear and concise description of what the bug is.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
```
## Expected results
The dataset loading script for this dataset is incorrect. This is a biomedical dataset used for named entity recognition. The entities in ... | 27 | JNLPBA Dataset
## Describe the bug
A clear and concise description of what the bug is.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
```
## Expected results
The dataset loading script for this dataset is incorrect. This is a biomedical dataset used for named entity recognition.... | [
0.14636023342609406,
-0.0191737562417984,
0.011760275810956955,
0.19497855007648468,
0.25669676065444946,
0.005296342074871063,
0.2601892352104187,
0.3991122245788574,
0.11601266264915466,
0.29897865653038025,
-0.08056096732616425,
0.4474712312221527,
0.11820222437381744,
0.144547760486602... |
https://github.com/huggingface/datasets/issues/3089 | Since I cannot create a branch here is the updated code:
```python
# coding=utf-8
# Copyright 2020 HuggingFace Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
... | JNLPBA Dataset | ## Describe the bug
A clear and concise description of what the bug is.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
```
## Expected results
The dataset loading script for this dataset is incorrect. This is a biomedical dataset used for named entity recognition. The entities in ... | 455 | JNLPBA Dataset
## Describe the bug
A clear and concise description of what the bug is.
## Steps to reproduce the bug
```python
# Sample code to reproduce the bug
```
## Expected results
The dataset loading script for this dataset is incorrect. This is a biomedical dataset used for named entity recognition.... | [
0.14865414798259735,
-0.17395414412021637,
0.047074005007743835,
0.251350998878479,
0.2042786031961441,
-0.021173566579818726,
0.1656203716993332,
0.40940532088279724,
0.11239504814147949,
0.2550165057182312,
-0.1857006847858429,
0.3755779564380646,
0.15169942378997803,
0.1216229796409607,... |
https://github.com/huggingface/datasets/issues/3084 | I just opened a PR and I verified that the code you provided doesn't show any deprecation warning :) | VisibleDeprecationWarning when using `set_format("numpy")` | Code to reproduce:
```
from datasets import load_dataset
dataset = load_dataset("glue", "mnli")
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('distilbert-base-cased')
def tokenize_function(dataset):
return tokenizer(dataset['premise'])
tokenized_datasets = dataset.... | 19 | VisibleDeprecationWarning when using `set_format("numpy")`
Code to reproduce:
```
from datasets import load_dataset
dataset = load_dataset("glue", "mnli")
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('distilbert-base-cased')
def tokenize_function(dataset):
return t... | [
-0.27617236971855164,
-0.18427163362503052,
-0.06955324858427048,
-0.17878970503807068,
0.4122670590877533,
-0.049286194145679474,
0.5586138963699341,
0.38720083236694336,
-0.29875296354293823,
-0.08757773041725159,
0.045539990067481995,
0.4911157190799713,
-0.19789741933345795,
-0.1039189... |
https://github.com/huggingface/datasets/issues/3073 | This seems to be an issue with importing PyArrow so I posted the problem [here](https://issues.apache.org/jira/browse/ARROW-14323), and I'm closing this issue.
| Import error installing with ppc64le | ## Describe the bug
Installing the datasets library with a computer running with ppc64le seems to cause an issue when importing the datasets library.
```
python
Python 3.6.13 | packaged by conda-forge | (default, Sep 23 2021, 07:37:44)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for... | 20 | Import error installing with ppc64le
## Describe the bug
Installing the datasets library with a computer running with ppc64le seems to cause an issue when importing the datasets library.
```
python
Python 3.6.13 | packaged by conda-forge | (default, Sep 23 2021, 07:37:44)
[GCC 9.4.0] on linux
Type "help", ... | [
-0.16811631619930267,
0.17417019605636597,
0.01911570131778717,
0.22788430750370026,
0.2522401511669159,
0.22481316328048706,
0.35800087451934814,
0.2304055094718933,
-0.33040517568588257,
-0.15197739005088806,
-0.15530598163604736,
0.38253363966941833,
-0.07199074327945709,
-0.18107694387... |
https://github.com/huggingface/datasets/issues/3071 | Hi @zixiliuUSC,
As explained in the documentation (https://huggingface.co/docs/datasets/loading.html#json), we support loading any dataset in JSON (as well as CSV, text, Parquet) format:
```python
ds = load_dataset('json', data_files='my_file.json')
``` | Custom plain text dataset, plain json dataset and plain csv dataset are remove from datasets template folder | ## Adding a Dataset
- **Name:** text, json, csv
- **Description:** I am developing a customized dataset loading script. The problem is mainly about my custom dataset is seperate into many files and I only find a dataset loading template in [https://github.com/huggingface/datasets/blob/1.2.1/datasets/json/json.py](ht... | 28 | Custom plain text dataset, plain json dataset and plain csv dataset are remove from datasets template folder
## Adding a Dataset
- **Name:** text, json, csv
- **Description:** I am developing a customized dataset loading script. The problem is mainly about my custom dataset is seperate into many files and I only f... | [
0.23971496522426605,
-0.3320979177951813,
-0.040848709642887115,
0.39532801508903503,
0.11272837966680527,
0.2876623272895813,
0.1925075203180313,
0.15877041220664978,
0.24233300983905792,
-0.12660153210163116,
-0.33145755529403687,
0.1281609833240509,
-0.1774953007698059,
0.24876657128334... |
https://github.com/huggingface/datasets/issues/3064 | Hi ! Sorry for the late response
I agree `interleave_datasets` would benefit a lot from having more flexibility. If I understand correctly it would be nice to be able to define stopping strategies like `stop="first_exhausted"` (default) or `stop="all_exhausted"`. If you'd like to contribute this feature I'd be happy... | Make `interleave_datasets` more robust | **Is your feature request related to a problem? Please describe.**
Right now there are few hiccups using `interleave_datasets`. Interleaved dataset iterates until the smallest dataset completes it's iterator. In this way larger datasets may not complete full epoch of iteration.
It creates new problems in calculation... | 112 | Make `interleave_datasets` more robust
**Is your feature request related to a problem? Please describe.**
Right now there are few hiccups using `interleave_datasets`. Interleaved dataset iterates until the smallest dataset completes it's iterator. In this way larger datasets may not complete full epoch of iteration.... | [
-0.27616286277770996,
-0.02677607536315918,
-0.22811998426914215,
0.0825815498828888,
-0.14361636340618134,
0.01764160394668579,
0.23505231738090515,
0.1321873962879181,
0.06681074947118759,
0.12620005011558533,
-0.0727013349533081,
0.21606013178825378,
-0.29373645782470703,
0.219541043043... |
https://github.com/huggingface/datasets/issues/3064 | @sbmaruf I just notice that (1)`interleave_datasets` only samples indices once and reuse for all epochs, and (2) it's limited by the smallest dataset. Do you figure out an alternative way to achieve the same purpose? | Make `interleave_datasets` more robust | **Is your feature request related to a problem? Please describe.**
Right now there are few hiccups using `interleave_datasets`. Interleaved dataset iterates until the smallest dataset completes it's iterator. In this way larger datasets may not complete full epoch of iteration.
It creates new problems in calculation... | 35 | Make `interleave_datasets` more robust
**Is your feature request related to a problem? Please describe.**
Right now there are few hiccups using `interleave_datasets`. Interleaved dataset iterates until the smallest dataset completes it's iterator. In this way larger datasets may not complete full epoch of iteration.... | [
-0.31801098585128784,
0.02000768482685089,
-0.214143306016922,
0.07380709052085876,
-0.15120545029640198,
0.09728509187698364,
0.2841857671737671,
0.17129755020141602,
0.11678535491228104,
0.2217431515455246,
-0.04090554639697075,
0.17800262570381165,
-0.2643427848815918,
0.164571583271026... |
https://github.com/huggingface/datasets/issues/3063 | I think this problem is already fixed:
```python
In [4]: import fsspec
...:
...: url = "https://moon-staging.huggingface.co/datasets/__DUMMY_TRANSFORMERS_USER__/my-dataset-16242824690709/resolve/main/.gitattributes"
...:
...: fsspec.open(url).open()
Out[4]: <File-like object HTTPFileSystem, https://m... | Windows CI is unable to test streaming properly because of SSL issues | In https://github.com/huggingface/datasets/pull/3041 the windows tests were skipped because of SSL issues with moon-staging.huggingface.co:443
The issue appears only on windows with asyncio. On Linux it works. With requests it works as well. And with the production environment huggingface.co it also works.
to rep... | 26 | Windows CI is unable to test streaming properly because of SSL issues
In https://github.com/huggingface/datasets/pull/3041 the windows tests were skipped because of SSL issues with moon-staging.huggingface.co:443
The issue appears only on windows with asyncio. On Linux it works. With requests it works as well. And... | [
-0.3543521761894226,
0.003421798348426819,
0.019807178527116776,
0.03429335355758667,
0.0507177859544754,
-0.11084041744470596,
0.21190179884433746,
0.13144449889659882,
0.028769366443157196,
-0.08339649438858032,
0.05988588184118271,
-0.22232116758823395,
0.18263675272464752,
0.2124497890... |
https://github.com/huggingface/datasets/issues/3061 | @lhoestq, @albertvillanova can we have `**tqdm_kwargs` in `map`? If there are any fields that are important to our tqdm (like iterable or unit), we can pop them before initialising the tqdm object so as to avoid duplicity. | Feature request : add leave=True to dataset.map to enable tqdm nested bars (and whilst we're at it couldn't we get a way to access directly tqdm underneath?) | **A clear and concise description of what you want to happen.**
It would be so nice to be able to nest HuggingFace `Datasets.map() ` progress bars in the grander scheme of things and whilst we're at it why not other functions.
**Describe alternatives you've considered**
By the way is there not a way to directl... | 37 | Feature request : add leave=True to dataset.map to enable tqdm nested bars (and whilst we're at it couldn't we get a way to access directly tqdm underneath?)
**A clear and concise description of what you want to happen.**
It would be so nice to be able to nest HuggingFace `Datasets.map() ` progress bars in the gr... | [
-0.30795979499816895,
-0.4473892152309418,
-0.06747076660394669,
-0.14517085254192352,
0.15585558116436005,
-0.04016730934381485,
0.3228404223918915,
0.18368054926395416,
-0.22614873945713043,
0.16096338629722595,
-0.27750250697135925,
0.5143531560897827,
-0.0580764040350914,
0.47761973738... |
https://github.com/huggingface/datasets/issues/3061 | Hi ! Sounds like a good idea :)
Also I think it would be better to have this as an actual parameters instead of kwargs to make it clearer | Feature request : add leave=True to dataset.map to enable tqdm nested bars (and whilst we're at it couldn't we get a way to access directly tqdm underneath?) | **A clear and concise description of what you want to happen.**
It would be so nice to be able to nest HuggingFace `Datasets.map() ` progress bars in the grander scheme of things and whilst we're at it why not other functions.
**Describe alternatives you've considered**
By the way is there not a way to directl... | 29 | Feature request : add leave=True to dataset.map to enable tqdm nested bars (and whilst we're at it couldn't we get a way to access directly tqdm underneath?)
**A clear and concise description of what you want to happen.**
It would be so nice to be able to nest HuggingFace `Datasets.map() ` progress bars in the gr... | [
-0.3040524125099182,
-0.4401249587535858,
-0.07335542142391205,
-0.16092731058597565,
0.12071315944194794,
-0.08384808897972107,
0.36160334944725037,
0.1839645802974701,
-0.24228405952453613,
0.1404825747013092,
-0.22600683569908142,
0.5033694505691528,
-0.020245535299181938,
0.50931173563... |
https://github.com/huggingface/datasets/issues/3060 | Hi @RylanSchaeffer, thanks for reporting.
I'm sorry, but I was not able to reproduce your problem.
Normally, the reason for this type of error is that, during your download of the data files, this was not fully complete.
Could you please try to load the dataset again but forcing its redownload? Please use:
``... | load_dataset('openwebtext') yields "Compressed file ended before the end-of-stream marker was reached" | ## Describe the bug
When I try `load_dataset('openwebtext')`, I receive a "EOFError: Compressed file ended before the end-of-stream marker was reached" error.
## Steps to reproduce the bug
```
from datasets import load_dataset
dataset = load_dataset('openwebtext')
```
## Expected results
I expect the `datas... | 66 | load_dataset('openwebtext') yields "Compressed file ended before the end-of-stream marker was reached"
## Describe the bug
When I try `load_dataset('openwebtext')`, I receive a "EOFError: Compressed file ended before the end-of-stream marker was reached" error.
## Steps to reproduce the bug
```
from datasets im... | [
-0.3312988877296448,
-0.09272658079862595,
0.0039610229432582855,
0.49961936473846436,
0.21718376874923706,
0.021186932921409607,
0.15197455883026123,
0.3008335828781128,
-0.09646784514188766,
0.2880549430847168,
0.04564887285232544,
0.4010351300239563,
0.10050007700920105,
0.1572421491146... |
https://github.com/huggingface/datasets/issues/3060 | I close this issue for the moment. Feel free to re-open it again if the problem persists. | load_dataset('openwebtext') yields "Compressed file ended before the end-of-stream marker was reached" | ## Describe the bug
When I try `load_dataset('openwebtext')`, I receive a "EOFError: Compressed file ended before the end-of-stream marker was reached" error.
## Steps to reproduce the bug
```
from datasets import load_dataset
dataset = load_dataset('openwebtext')
```
## Expected results
I expect the `datas... | 17 | load_dataset('openwebtext') yields "Compressed file ended before the end-of-stream marker was reached"
## Describe the bug
When I try `load_dataset('openwebtext')`, I receive a "EOFError: Compressed file ended before the end-of-stream marker was reached" error.
## Steps to reproduce the bug
```
from datasets im... | [
-0.3312988877296448,
-0.09272658079862595,
0.0039610229432582855,
0.49961936473846436,
0.21718376874923706,
0.021186932921409607,
0.15197455883026123,
0.3008335828781128,
-0.09646784514188766,
0.2880549430847168,
0.04564887285232544,
0.4010351300239563,
0.10050007700920105,
0.1572421491146... |
https://github.com/huggingface/datasets/issues/3058 | Hi ! I think this issue is more related to the `transformers` project. Could you open an issue on https://github.com/huggingface/transformers ?
Anyway I think the issue could be that both wikipedia and bookcorpusopen have an additional "title" column, contrary to wikitext which only has a "text" column. After callin... | Dataset wikipedia and Bookcorpusopen cannot be fetched from dataloader. | ## Describe the bug
I have used the previous version of `transformers` and `datasets`. The dataset `wikipedia` can be successfully used. Recently, I upgrade them to the newest version and find it raises errors. I also tried other datasets. The `wikitext` works and the `bookcorpusopen` raises the same errors as `wikipe... | 58 | Dataset wikipedia and Bookcorpusopen cannot be fetched from dataloader.
## Describe the bug
I have used the previous version of `transformers` and `datasets`. The dataset `wikipedia` can be successfully used. Recently, I upgrade them to the newest version and find it raises errors. I also tried other datasets. The `... | [
-0.11717058718204498,
-0.08886593580245972,
0.0287199467420578,
0.590285062789917,
0.1981576383113861,
0.00837235152721405,
0.4193762540817261,
0.2448294758796692,
0.008031018078327179,
0.04939514771103859,
-0.2614281475543976,
0.00995653122663498,
0.09612034261226654,
-0.14036855101585388... |
https://github.com/huggingface/datasets/issues/3058 | Removing the "title" column works! Thanks for your advice.
Maybe I should still create an issue to `transformers' to mark this solution? | Dataset wikipedia and Bookcorpusopen cannot be fetched from dataloader. | ## Describe the bug
I have used the previous version of `transformers` and `datasets`. The dataset `wikipedia` can be successfully used. Recently, I upgrade them to the newest version and find it raises errors. I also tried other datasets. The `wikitext` works and the `bookcorpusopen` raises the same errors as `wikipe... | 22 | Dataset wikipedia and Bookcorpusopen cannot be fetched from dataloader.
## Describe the bug
I have used the previous version of `transformers` and `datasets`. The dataset `wikipedia` can be successfully used. Recently, I upgrade them to the newest version and find it raises errors. I also tried other datasets. The `... | [
-0.11717058718204498,
-0.08886593580245972,
0.0287199467420578,
0.590285062789917,
0.1981576383113861,
0.00837235152721405,
0.4193762540817261,
0.2448294758796692,
0.008031018078327179,
0.04939514771103859,
-0.2614281475543976,
0.00995653122663498,
0.09612034261226654,
-0.14036855101585388... |
https://github.com/huggingface/datasets/issues/3057 | Hi @tidhamecha2, thanks for reporting.
Indeed, we fixed this issue just one week ago: #3008
The fix will be included in our next version release.
In the meantime, you can incorporate the fix by installing `datasets` from the master branch:
```
pip install -U git+ssh://git@github.com/huggingface/datasets.git@... | Error in per class precision computation | ## Describe the bug
When trying to get the per class precision values by providing `average=None`, following error is thrown `ValueError: can only convert an array of size 1 to a Python scalar`
## Steps to reproduce the bug
```python
from datasets import load_dataset, load_metric
precision_metric = load_metric("... | 53 | Error in per class precision computation
## Describe the bug
When trying to get the per class precision values by providing `average=None`, following error is thrown `ValueError: can only convert an array of size 1 to a Python scalar`
## Steps to reproduce the bug
```python
from datasets import load_dataset, l... | [
-0.16427814960479736,
-0.4141964614391327,
-0.06213049218058586,
0.3582139015197754,
0.5411623120307922,
0.12213621288537979,
0.08095244318246841,
0.14052335917949677,
-0.0493667796254158,
0.6348304152488708,
-0.07482610642910004,
0.16643773019313812,
-0.017134569585323334,
0.1542901098728... |
https://github.com/huggingface/datasets/issues/3053 | I was getting a similar error `pyarrow.lib.ArrowInvalid: Integer value 528 not in range: -128 to 127` - AFAICT, this is because the type specified for `reddit_scores` is `datasets.Sequence(datasets.Value("int8"))`, but the actual values can be well outside the max range for 8-bit integers.
I worked around this by do... | load_dataset('the_pile_openwebtext2') produces ArrowInvalid, value too large to fit in C integer type | ## Describe the bug
When loading `the_pile_openwebtext2`, we get the error `pyarrow.lib.ArrowInvalid: Value 2111 too large to fit in C integer type`
## Steps to reproduce the bug
```python
import datasets
ds = datasets.load_dataset('the_pile_openwebtext2')
```
## Expected results
Should download the dataset... | 69 | load_dataset('the_pile_openwebtext2') produces ArrowInvalid, value too large to fit in C integer type
## Describe the bug
When loading `the_pile_openwebtext2`, we get the error `pyarrow.lib.ArrowInvalid: Value 2111 too large to fit in C integer type`
## Steps to reproduce the bug
```python
import datasets
ds =... | [
-0.3517366945743561,
0.12943106889724731,
0.02369074523448944,
0.5282652974128723,
0.246719092130661,
0.06812761723995209,
0.11001743376255035,
0.550215482711792,
-0.11050469428300858,
-0.018477022647857666,
-0.053451817482709885,
0.4588276445865631,
0.06217459961771965,
0.0630234405398368... |
https://github.com/huggingface/datasets/issues/3052 | Issue was environment inconsistency, updating packages did the trick
`conda install -c huggingface -c conda-forge datasets`
> Collecting package metadata (current_repodata.json): done
> Solving environment: |
> The environment is inconsistent, please check the package plan carefully
> The following packages ar... | load_dataset cannot download the data and hangs on forever if cache dir specified | ## Describe the bug
After updating datasets, a code that ran just fine for ages began to fail. Specifying _datasets.load_dataset_'s _cache_dir_ optional argument on Windows 10 machine results in data download to hang on forever. Same call without cache_dir works just fine. Surprisingly exact same code just runs perfec... | 118 | load_dataset cannot download the data and hangs on forever if cache dir specified
## Describe the bug
After updating datasets, a code that ran just fine for ages began to fail. Specifying _datasets.load_dataset_'s _cache_dir_ optional argument on Windows 10 machine results in data download to hang on forever. Same c... | [
-0.3561401665210724,
0.6039685606956482,
-0.11219177395105362,
0.06416328996419907,
0.39051353931427,
0.055301204323768616,
0.4375733435153961,
0.09474274516105652,
-0.04050446301698685,
0.10366197675466537,
-0.004555307328701019,
0.4003581404685974,
0.17270027101039886,
-0.253111511468887... |
https://github.com/huggingface/datasets/issues/3051 | I got the same error for another dataset (`multi_woz_v22`):
```
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files:
['https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dialog_acts.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/M... | Non-Matching Checksum Error with crd3 dataset | ## Describe the bug
When I try loading the crd3 dataset (https://huggingface.co/datasets/crd3), an error is thrown.
## Steps to reproduce the bug
```python
dataset = load_dataset('crd3', split='train')
```
## Expected results
I expect no error to be thrown.
## Actual results
A non-matching checksum err... | 21 | Non-Matching Checksum Error with crd3 dataset
## Describe the bug
When I try loading the crd3 dataset (https://huggingface.co/datasets/crd3), an error is thrown.
## Steps to reproduce the bug
```python
dataset = load_dataset('crd3', split='train')
```
## Expected results
I expect no error to be thrown.
... | [
0.03340274095535278,
-0.030284985899925232,
0.0008105933666229248,
0.2788751423358917,
0.017549078911542892,
-0.010443799197673798,
0.26562777161598206,
0.3295177221298218,
-0.03767423704266548,
-0.01688724011182785,
0.012735657393932343,
0.1477053463459015,
0.11470747739076614,
0.04275989... |
https://github.com/huggingface/datasets/issues/3051 | I'm seeing the same issue as @RylanSchaeffer:
Python 3.7.11, macOs 11.4
datasets==1.14.0
fails on:
```python
dataset = datasets.load_dataset("multi_woz_v22")
``` | Non-Matching Checksum Error with crd3 dataset | ## Describe the bug
When I try loading the crd3 dataset (https://huggingface.co/datasets/crd3), an error is thrown.
## Steps to reproduce the bug
```python
dataset = load_dataset('crd3', split='train')
```
## Expected results
I expect no error to be thrown.
## Actual results
A non-matching checksum err... | 19 | Non-Matching Checksum Error with crd3 dataset
## Describe the bug
When I try loading the crd3 dataset (https://huggingface.co/datasets/crd3), an error is thrown.
## Steps to reproduce the bug
```python
dataset = load_dataset('crd3', split='train')
```
## Expected results
I expect no error to be thrown.
... | [
-0.005089156329631805,
-0.07409770041704178,
0.011576861143112183,
0.21421945095062256,
0.04465490207076073,
-0.08151525259017944,
0.21991516649723053,
0.2908582091331482,
-0.020732559263706207,
-0.003882400691509247,
0.039317868649959564,
0.2184227854013443,
-0.007349260151386261,
0.11654... |
https://github.com/huggingface/datasets/issues/3048 | Independently of this I think it raises the need to allow multiprocessing during streaming so that we get samples from multiple shards in one batch. | Identify which shard data belongs to | **Is your feature request related to a problem? Please describe.**
I'm training on a large dataset made of multiple sub-datasets.
During training I can observe some jumps in loss which may correspond to different shards.
` with a `new_fingerprint` and `num_proc>1` | ## Describe the bug
Caching does not work when using `Dataset.map()` with:
1. a function that cannot be deterministically fingerprinted
2. `num_proc>1`
3. using a custom fingerprint set with the argument `new_fingerprint`.
This means that the dataset will be mapped with the function for each and every call, w... | 129 | Inconsistent caching behaviour when using `Dataset.map()` with a `new_fingerprint` and `num_proc>1`
## Describe the bug
Caching does not work when using `Dataset.map()` with:
1. a function that cannot be deterministically fingerprinted
2. `num_proc>1`
3. using a custom fingerprint set with the argument `new_fin... | [
-0.11258675903081894,
0.11656101047992706,
-0.01576709747314453,
0.06115571781992912,
-0.11848464608192444,
-0.12406088411808014,
0.38619372248649597,
0.35159310698509216,
0.3012610673904419,
-0.09979865700006485,
0.2086913138628006,
0.32950231432914734,
0.03916102647781372,
-0.14310741424... |
https://github.com/huggingface/datasets/issues/3044 | My solution was to generate a custom hash, and use the hash as a `new_fingerprint` argument to the `map()` method to enable caching. This works, but is quite hacky.
@lhoestq, this approach is very neat, this would make the whole caching mechanic more explicit. I don't have so much time to look into this right now, b... | Inconsistent caching behaviour when using `Dataset.map()` with a `new_fingerprint` and `num_proc>1` | ## Describe the bug
Caching does not work when using `Dataset.map()` with:
1. a function that cannot be deterministically fingerprinted
2. `num_proc>1`
3. using a custom fingerprint set with the argument `new_fingerprint`.
This means that the dataset will be mapped with the function for each and every call, w... | 66 | Inconsistent caching behaviour when using `Dataset.map()` with a `new_fingerprint` and `num_proc>1`
## Describe the bug
Caching does not work when using `Dataset.map()` with:
1. a function that cannot be deterministically fingerprinted
2. `num_proc>1`
3. using a custom fingerprint set with the argument `new_fin... | [
-0.11258675903081894,
0.11656101047992706,
-0.01576709747314453,
0.06115571781992912,
-0.11848464608192444,
-0.12406088411808014,
0.38619372248649597,
0.35159310698509216,
0.3012610673904419,
-0.09979865700006485,
0.2086913138628006,
0.32950231432914734,
0.03916102647781372,
-0.14310741424... |
https://github.com/huggingface/datasets/issues/3044 | Almost a year later and I'm in a similar boat. Using custom fingerprints and when using multiprocessing the cached datasets are saved with a template at the end of the filename (something like "000001_of_000008" for every process of num_proc). So if in the next time you run the script you set num_proc to a different nu... | Inconsistent caching behaviour when using `Dataset.map()` with a `new_fingerprint` and `num_proc>1` | ## Describe the bug
Caching does not work when using `Dataset.map()` with:
1. a function that cannot be deterministically fingerprinted
2. `num_proc>1`
3. using a custom fingerprint set with the argument `new_fingerprint`.
This means that the dataset will be mapped with the function for each and every call, w... | 104 | Inconsistent caching behaviour when using `Dataset.map()` with a `new_fingerprint` and `num_proc>1`
## Describe the bug
Caching does not work when using `Dataset.map()` with:
1. a function that cannot be deterministically fingerprinted
2. `num_proc>1`
3. using a custom fingerprint set with the argument `new_fin... | [
-0.11258675903081894,
0.11656101047992706,
-0.01576709747314453,
0.06115571781992912,
-0.11848464608192444,
-0.12406088411808014,
0.38619372248649597,
0.35159310698509216,
0.3012610673904419,
-0.09979865700006485,
0.2086913138628006,
0.32950231432914734,
0.03916102647781372,
-0.14310741424... |
https://github.com/huggingface/datasets/issues/3040 | Hi,
the `save_to_disk` docstring explains that `flatten_indices` has to be called on a dataset before saving it to save only the shard/slice of the dataset. | [save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset | ## Describe the bug
When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the small dataset is saved but the whole dataset with an indices file. The problem with this is that the dataset is still very... | 25 | [save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset
## Describe the bug
When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the... | [
-0.1809479296207428,
-0.15760809183120728,
0.080646812915802,
0.24569851160049438,
0.10636338591575623,
0.19082778692245483,
0.2535609006881714,
0.4150107800960541,
0.07993727177381516,
0.4557603895664215,
0.15093860030174255,
0.3872532844543457,
-0.1541716307401657,
0.0044503286480903625,... |
https://github.com/huggingface/datasets/issues/3040 | That works! Thansk!
Might be worth doing that automatically actually in case the `save_to_disk` is called on a dataset that has an indices mapping :-) | [save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset | ## Describe the bug
When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the small dataset is saved but the whole dataset with an indices file. The problem with this is that the dataset is still very... | 25 | [save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset
## Describe the bug
When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the... | [
-0.19778746366500854,
-0.1849524974822998,
0.07286861538887024,
0.2110229879617691,
0.16404716670513153,
0.1720050424337387,
0.23644036054611206,
0.40400880575180054,
0.1711796671152115,
0.431181937456131,
0.1333652138710022,
0.40446361899375916,
-0.1757005751132965,
-0.021643150597810745,... |
https://github.com/huggingface/datasets/issues/3040 | I agree with @patrickvonplaten: this issue is reported recurrently, so better if we implement the `.flatten_indices()` automatically? | [save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset | ## Describe the bug
When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the small dataset is saved but the whole dataset with an indices file. The problem with this is that the dataset is still very... | 17 | [save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset
## Describe the bug
When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the... | [
-0.18242117762565613,
-0.1138090193271637,
0.09770164638757706,
0.348522424697876,
0.13966797292232513,
0.24663761258125305,
0.2202674299478531,
0.43214553594589233,
0.0931755006313324,
0.4231397211551666,
0.2067132294178009,
0.4109373092651367,
-0.16310957074165344,
0.024122752249240875,
... |
https://github.com/huggingface/datasets/issues/3040 | That would be great indeed - I don't really see a use case where one would not like to call `.flatten_indices()` before calling `save_to_disk` | [save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset | ## Describe the bug
When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the small dataset is saved but the whole dataset with an indices file. The problem with this is that the dataset is still very... | 24 | [save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset
## Describe the bug
When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the... | [
-0.19779235124588013,
-0.14176400005817413,
0.06662270426750183,
0.24847909808158875,
0.1402246057987213,
0.21322043240070343,
0.2300790250301361,
0.4092860519886017,
0.10484497249126434,
0.4188418984413147,
0.17984935641288757,
0.4132264256477356,
-0.1830236315727234,
-0.01136743277311325... |
https://github.com/huggingface/datasets/issues/3036 | It would be nice to protect the master from direct commits, but still having a way to merge our own PRs when no review is required (for example when updating a dataset_infos.json file, or minor bug fixes - things that happen quite often actually).
Do you know if there's a way ? | Protect master branch to force contributions via Pull Requests | In order to have a clearer Git history in the master branch, I propose to protect it so that all contributions must be done through a Pull Request and no direct commits to master are allowed.
- The Pull Request allows to give context, discuss any potential issues and improve the quality of the contribution
- The Pull... | 52 | Protect master branch to force contributions via Pull Requests
In order to have a clearer Git history in the master branch, I propose to protect it so that all contributions must be done through a Pull Request and no direct commits to master are allowed.
- The Pull Request allows to give context, discuss any potenti... | [
-0.03921021893620491,
0.0052618831396102905,
0.03028883785009384,
-0.08345504105091095,
-0.27376359701156616,
-0.1612030267715454,
-0.09115731716156006,
0.37512093782424927,
-0.21837452054023743,
0.20850616693496704,
0.46948009729385376,
-0.1339305341243744,
0.027508683502674103,
-0.035808... |
https://github.com/huggingface/datasets/issues/3036 | This is done. Now the master branch is protected:
- [x] Require a pull request before merging: all commits must be made to a non-protected branch and submitted via a pull request
- Required number of approvals before merging: 1
- [x] Require linear history: prevent merge commits from being pushed
- [x] These req... | Protect master branch to force contributions via Pull Requests | In order to have a clearer Git history in the master branch, I propose to protect it so that all contributions must be done through a Pull Request and no direct commits to master are allowed.
- The Pull Request allows to give context, discuss any potential issues and improve the quality of the contribution
- The Pull... | 78 | Protect master branch to force contributions via Pull Requests
In order to have a clearer Git history in the master branch, I propose to protect it so that all contributions must be done through a Pull Request and no direct commits to master are allowed.
- The Pull Request allows to give context, discuss any potenti... | [
-0.05463019758462906,
0.07692469656467438,
-0.04441092908382416,
-0.07143577933311462,
-0.2691424489021301,
-0.1964893490076065,
0.057687949389219284,
0.3648436367511749,
-0.22068051993846893,
0.15255209803581238,
0.3992949426174164,
-0.060955584049224854,
0.03693684563040733,
-0.098679170... |
https://github.com/huggingface/datasets/issues/3035 | Hi ! This is not a bug, this is simply not implemented.
`save_to_disk` is for on-disk serialization and was not made compatible for the Hub.
That being said, I agree we actually should make it work with the Hub x) | `load_dataset` does not work with uploaded arrow file | ## Describe the bug
I've preprocessed and uploaded a dataset here: https://huggingface.co/datasets/ami-wav2vec2/ami_headset_single_preprocessed . The dataset is in `.arrow` format.
The dataset can correctly be loaded when doing:
```bash
git lfs install
git clone https://huggingface.co/datasets/ami-wav2vec2/a... | 40 | `load_dataset` does not work with uploaded arrow file
## Describe the bug
I've preprocessed and uploaded a dataset here: https://huggingface.co/datasets/ami-wav2vec2/ami_headset_single_preprocessed . The dataset is in `.arrow` format.
The dataset can correctly be loaded when doing:
```bash
git lfs install
... | [
-0.3928038775920868,
-0.03857557475566864,
0.01674845442175865,
0.22262614965438843,
0.17542113363742828,
-0.009485200047492981,
0.5628119111061096,
0.0851377546787262,
0.20555566251277924,
-0.0173037126660347,
0.0880221575498581,
0.45247524976730347,
-0.01715606451034546,
0.02389323711395... |
https://github.com/huggingface/datasets/issues/3032 | We'll do a release tomorrow or on wednesday to make the fix available :)
Thanks for reproting ! | Error when loading private dataset with "data_files" arg | ## Describe the bug
A clear and concise description of what the bug is.
Private datasets with no loading script can't be loaded using `data_files` parameter.
## Steps to reproduce the bug
```python
from datasets import load_dataset
data_files = {"train": "**/train/*/*.jsonl", "valid": "**/valid/*/*.jsonl"}
d... | 18 | Error when loading private dataset with "data_files" arg
## Describe the bug
A clear and concise description of what the bug is.
Private datasets with no loading script can't be loaded using `data_files` parameter.
## Steps to reproduce the bug
```python
from datasets import load_dataset
data_files = {"trai... | [
-0.2903701961040497,
0.15614892542362213,
0.030724763870239258,
0.43032902479171753,
0.1911778599023819,
0.02577938884496689,
0.429996520280838,
0.40092232823371887,
0.1551966369152069,
0.055127259343862534,
-0.15647581219673157,
0.23069699108600616,
-0.16255825757980347,
-0.08246037364006... |
https://github.com/huggingface/datasets/issues/3027 | Awesome @lhoestq I like the proposal and it works great on my JSON community dataset. Here is the [log](https://gist.github.com/vblagoje/714babc325bcbdd5de579fd8e1648892). | Resolve data_files by split name | This issue is about discussing the default behavior when someone loads a dataset that consists in data files. For example:
```python
load_dataset("lhoestq/demo1")
```
should return two splits "train" and "test" since the dataset repostiory is like
```
data/
├── train.csv
└── test.csv
```
Currently it returns ... | 19 | Resolve data_files by split name
This issue is about discussing the default behavior when someone loads a dataset that consists in data files. For example:
```python
load_dataset("lhoestq/demo1")
```
should return two splits "train" and "test" since the dataset repostiory is like
```
data/
├── train.csv
└── t... | [
0.0484917014837265,
0.09161554276943207,
-0.08407840877771378,
0.10354282706975937,
0.14218533039093018,
-0.051219865679740906,
0.3762038052082062,
0.6377541422843933,
0.14259430766105652,
0.0023931264877319336,
0.2522253096103668,
0.3661668598651886,
-0.15676335990428925,
0.24765533208847... |
https://github.com/huggingface/datasets/issues/3027 | From my discussion with @borisdayma it would be more general the files match if their paths contains the split name - not only if the filename contains the split name. For example for a dataset like this:
```
train/
└── data.csv
test/
└── data.csv
```
But IMO the default should be
```
data/
├── train.csv
... | Resolve data_files by split name | This issue is about discussing the default behavior when someone loads a dataset that consists in data files. For example:
```python
load_dataset("lhoestq/demo1")
```
should return two splits "train" and "test" since the dataset repostiory is like
```
data/
├── train.csv
└── test.csv
```
Currently it returns ... | 78 | Resolve data_files by split name
This issue is about discussing the default behavior when someone loads a dataset that consists in data files. For example:
```python
load_dataset("lhoestq/demo1")
```
should return two splits "train" and "test" since the dataset repostiory is like
```
data/
├── train.csv
└── t... | [
0.027063995599746704,
-0.08924983441829681,
-0.10976290702819824,
0.13513852655887604,
0.05384967103600502,
-0.15210586786270142,
0.3358284831047058,
0.5063108205795288,
0.16210539638996124,
-0.016682147979736328,
0.22284634411334991,
0.1351214051246643,
-0.11368836462497711,
0.28942900896... |
https://github.com/huggingface/datasets/issues/3027 | I just created a PR for this at https://github.com/huggingface/datasets/pull/3221, let me know what you think :) | Resolve data_files by split name | This issue is about discussing the default behavior when someone loads a dataset that consists in data files. For example:
```python
load_dataset("lhoestq/demo1")
```
should return two splits "train" and "test" since the dataset repostiory is like
```
data/
├── train.csv
└── test.csv
```
Currently it returns ... | 16 | Resolve data_files by split name
This issue is about discussing the default behavior when someone loads a dataset that consists in data files. For example:
```python
load_dataset("lhoestq/demo1")
```
should return two splits "train" and "test" since the dataset repostiory is like
```
data/
├── train.csv
└── t... | [
0.0649661272764206,
-0.172019362449646,
-0.08120890706777573,
0.1602078229188919,
0.2143261730670929,
-0.04222454875707626,
0.3630496859550476,
0.49190184473991394,
0.1566626876592636,
0.06425965577363968,
0.1475188434123993,
0.14048194885253906,
-0.18654769659042358,
0.359483003616333,
... |
https://github.com/huggingface/datasets/issues/3018 | @lhoestq I would like to draw your attention to the proposed API by @lewtun, using `data_dir` to pass the ZIP URL.
I'm not totally convinced with this... What do you think?
Maybe we could discuss other approaches...
One brainstorming idea: what about using URL chaining with the hop operator in `data_files`? | 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=url, data_files=data_files)
```
| 51 | 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.043636489659547806,
0.026396796107292175,
-0.26159945130348206,
-0.01854752004146576,
0.025562342256307602,
-0.04220733046531677,
0.3967737555503845,
0.2515755295753479,
0.30051642656326294,
0.13865670561790466,
0.024600334465503693,
0.35117611289024353,
-0.07382430881261826,
0.46890038... |
https://github.com/huggingface/datasets/issues/3018 | `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... | 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=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.15174725651741028,
0.020761638879776,
-0.286562442779541,
0.042487405240535736,
0.08390627801418304,
0.01420535147190094,
0.31823915243148804,
0.31929507851600647,
0.30583426356315613,
0.16242411732673645,
-0.17525294423103333,
0.20039626955986023,
0.01790938526391983,
0.514502167701721... |
https://github.com/huggingface/datasets/issues/3018 | 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` :) | 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=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.21574164927005768,
-0.1642608344554901,
-0.25512808561325073,
-0.12608501315116882,
0.14161843061447144,
-0.03458993136882782,
0.26529520750045776,
0.25139856338500977,
0.2857460677623749,
0.2783491015434265,
-0.05897701531648636,
0.055486198514699936,
0.06691181659698486,
0.79440736770... |
https://github.com/huggingface/datasets/issues/3013 | 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. | 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 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.033453963696956635,
0.20615515112876892,
-0.17455969750881195,
0.31409597396850586,
0.2758382260799408,
-0.05295071005821228,
0.1713559776544571,
0.5251319408416748,
-0.06918733566999435,
0.17565101385116577,
0.060097888112068176,
0.22919774055480957,
0.06210098788142204,
0.108123429119... |
https://github.com/huggingface/datasets/issues/3011 | 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 | 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` 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.13651533424854279,
-0.0678221732378006,
0.05152667686343193,
0.4797349274158478,
0.19397419691085815,
0.13136428594589233,
0.45077773928642273,
0.05843057483434677,
0.1885160505771637,
0.4071677029132843,
0.2744372487068176,
0.06541527807712555,
-0.1559428870677948,
0.04521239548921585,... |
https://github.com/huggingface/datasets/issues/3010 | ### 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
... | 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 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.1847151815891266,
0.16124600172042847,
-0.15162700414657593,
0.22353124618530273,
-0.12694299221038818,
-0.12541934847831726,
0.2978750467300415,
0.23607677221298218,
0.3307059407234192,
-0.2883337140083313,
-0.08475932478904724,
0.562812328338623,
0.17767289280891418,
0.054036594927310... |
https://github.com/huggingface/datasets/issues/3010 | 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 | 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 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.1847151815891266,
0.16124600172042847,
-0.15162700414657593,
0.22353124618530273,
-0.12694299221038818,
-0.12541934847831726,
0.2978750467300415,
0.23607677221298218,
0.3307059407234192,
-0.2883337140083313,
-0.08475932478904724,
0.562812328338623,
0.17767289280891418,
0.054036594927310... |
https://github.com/huggingface/datasets/issues/3005 | 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... | 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, 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.16900257766246796,
0.1079779863357544,
-0.09904581308364868,
0.21686848998069763,
0.09166144579648972,
-0.12447191774845123,
0.06166015937924385,
0.34265464544296265,
0.12888716161251068,
-0.004532255232334137,
-0.07759267836809158,
0.5116115808486938,
-0.2248646318912506,
0.12225648015... |
https://github.com/huggingface/datasets/issues/2997 | 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` | 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:
. None of the reviews is labelled with "0". See screenshot attached:
 still shows the incorrect state. The sentiment for the first few customer reviews is actually negative and should be labelled with "0", see screenshot:
. None of the reviews is labelled with "0". See screenshot attached:
. None of the reviews is labelled with "0". See screenshot attached:

Downloading and preparing dataset trivia_qa/unfiltered (download: 3.07 GiB, generated: 27.23 ... | 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", "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.1447088122367859,
-0.13158269226551056,
-0.08098840713500977,
0.27586156129837036,
0.46231579780578613,
0.31476595997810364,
0.08203527331352234,
0.23656561970710754,
0.18648801743984222,
0.12130618095397949,
-0.10474658012390137,
0.01685258373618126,
0.007183987647294998,
-0.1792372167... |
https://github.com/huggingface/datasets/issues/2988 | 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. | 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-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.3896142244338989,
-0.28968900442123413,
-0.014630068093538284,
0.30879247188568115,
0.34734824299812317,
-0.2418411374092102,
0.3561573922634125,
0.24307622015476227,
0.1943364441394806,
0.34438174962997437,
0.03162915259599686,
0.18565504252910614,
-0.12412985414266586,
0.0681876763701... |
https://github.com/huggingface/datasets/issues/2988 | 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 | 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-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.3896142244338989,
-0.28968900442123413,
-0.014630068093538284,
0.30879247188568115,
0.34734824299812317,
-0.2418411374092102,
0.3561573922634125,
0.24307622015476227,
0.1943364441394806,
0.34438174962997437,
0.03162915259599686,
0.18565504252910614,
-0.12412985414266586,
0.0681876763701... |
https://github.com/huggingface/datasets/issues/2988 | 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 | 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-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.3896142244338989,
-0.28968900442123413,
-0.014630068093538284,
0.30879247188568115,
0.34734824299812317,
-0.2418411374092102,
0.3561573922634125,
0.24307622015476227,
0.1943364441394806,
0.34438174962997437,
0.03162915259599686,
0.18565504252910614,
-0.12412985414266586,
0.0681876763701... |
https://github.com/huggingface/datasets/issues/2988 | @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... | 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-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.3896142244338989,
-0.28968900442123413,
-0.014630068093538284,
0.30879247188568115,
0.34734824299812317,
-0.2418411374092102,
0.3561573922634125,
0.24307622015476227,
0.1943364441394806,
0.34438174962997437,
0.03162915259599686,
0.18565504252910614,
-0.12412985414266586,
0.0681876763701... |
https://github.com/huggingface/datasets/issues/2988 | It might be an issue with old versions of `datasets`, can you try updating `datasets` ? | 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-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.3896142244338989,
-0.28968900442123413,
-0.014630068093538284,
0.30879247188568115,
0.34734824299812317,
-0.2418411374092102,
0.3561573922634125,
0.24307622015476227,
0.1943364441394806,
0.34438174962997437,
0.03162915259599686,
0.18565504252910614,
-0.12412985414266586,
0.0681876763701... |
https://github.com/huggingface/datasets/issues/2988 | 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 ... | 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-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.3896142244338989,
-0.28968900442123413,
-0.014630068093538284,
0.30879247188568115,
0.34734824299812317,
-0.2418411374092102,
0.3561573922634125,
0.24307622015476227,
0.1943364441394806,
0.34438174962997437,
0.03162915259599686,
0.18565504252910614,
-0.12412985414266586,
0.0681876763701... |
https://github.com/huggingface/datasets/issues/2988 | 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.
| 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-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.3896142244338989,
-0.28968900442123413,
-0.014630068093538284,
0.30879247188568115,
0.34734824299812317,
-0.2418411374092102,
0.3561573922634125,
0.24307622015476227,
0.1943364441394806,
0.34438174962997437,
0.03162915259599686,
0.18565504252910614,
-0.12412985414266586,
0.0681876763701... |
https://github.com/huggingface/datasets/issues/2988 | 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 ? | 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-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.3896142244338989,
-0.28968900442123413,
-0.014630068093538284,
0.30879247188568115,
0.34734824299812317,
-0.2418411374092102,
0.3561573922634125,
0.24307622015476227,
0.1943364441394806,
0.34438174962997437,
0.03162915259599686,
0.18565504252910614,
-0.12412985414266586,
0.0681876763701... |
https://github.com/huggingface/datasets/issues/2988 | 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 :-) | 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-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.3896142244338989,
-0.28968900442123413,
-0.014630068093538284,
0.30879247188568115,
0.34734824299812317,
-0.2418411374092102,
0.3561573922634125,
0.24307622015476227,
0.1943364441394806,
0.34438174962997437,
0.03162915259599686,
0.18565504252910614,
-0.12412985414266586,
0.0681876763701... |
https://github.com/huggingface/datasets/issues/2988 | 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... | 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-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.3896142244338989,
-0.28968900442123413,
-0.014630068093538284,
0.30879247188568115,
0.34734824299812317,
-0.2418411374092102,
0.3561573922634125,
0.24307622015476227,
0.1943364441394806,
0.34438174962997437,
0.03162915259599686,
0.18565504252910614,
-0.12412985414266586,
0.0681876763701... |
https://github.com/huggingface/datasets/issues/2988 | 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. | 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-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.3896142244338989,
-0.28968900442123413,
-0.014630068093538284,
0.30879247188568115,
0.34734824299812317,
-0.2418411374092102,
0.3561573922634125,
0.24307622015476227,
0.1943364441394806,
0.34438174962997437,
0.03162915259599686,
0.18565504252910614,
-0.12412985414266586,
0.0681876763701... |
https://github.com/huggingface/datasets/issues/2987 | 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. | 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 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.012558266520500183,
-0.22509004175662994,
-0.0640784427523613,
0.3261042535305023,
0.31389543414115906,
-0.054517559707164764,
0.5233936905860901,
0.3854970335960388,
-0.1324625164270401,
0.1610175222158432,
-0.09981106966733932,
0.390550434589386,
-0.15413913130760193,
-0.32397150993347... |
https://github.com/huggingface/datasets/issues/2984 | 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? | 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_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.07694605737924576,
-0.15560311079025269,
-0.1352693736553192,
0.5384629964828491,
0.15408319234848022,
0.2282281368970871,
0.09058743715286255,
0.39882856607437134,
0.2924410104751587,
0.09290412068367004,
0.07691024243831635,
0.2426917403936386,
-0.004468580707907677,
0.165308177471160... |
https://github.com/huggingface/datasets/issues/2980 | 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://... | 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 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.14949043095111847,
-0.03710225224494934,
-0.12790308892726898,
-0.022976502776145935,
0.15993615984916687,
-0.027806967496871948,
0.07721634209156036,
0.20951054990291595,
-0.20274408161640167,
0.27475476264953613,
-0.35283175110816956,
0.09953753650188446,
-0.05927993357181549,
0.20589... |
https://github.com/huggingface/datasets/issues/2980 | ... also the example in "use in datasets library" should be updated. It currently says

But you actually have to specify a subset, e.g.
```python
dataset = load_dataset("openslr", "SLR32")
``` | 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 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.254119873046875,
0.014993295073509216,
-0.15688815712928772,
-0.06664451956748962,
0.172730952501297,
0.01961897313594818,
0.1956547051668167,
0.23513396084308624,
-0.07794708758592606,
0.22440394759178162,
-0.3227959871292114,
0.11050938069820404,
-0.04979879409074783,
0.10228620469570... |
https://github.com/huggingface/datasets/issues/2978 | 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 | 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`. | 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.2581964135169983,
-0.26369088888168335,
-0.11364038288593292,
-0.23575907945632935,
-0.34446609020233154,
-0.2215360403060913,
0.48000282049179077,
0.29813528060913086,
0.158935084939003,
0.19311431050300598,
-0.01165115088224411,
-0.19298617541790009,
0.0554654486477375,
0.598181486129... |
https://github.com/huggingface/datasets/issues/2978 | @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 ... | 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`. | 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.13052614033222198,
-0.42879191040992737,
-0.024547966197133064,
-0.05014337599277496,
-0.037276044487953186,
-0.3314853310585022,
0.3419254720211029,
0.26872965693473816,
0.06885035336017609,
0.1076422929763794,
-0.17354914546012878,
-0.030778389424085617,
0.0130702443420887,
0.57729136... |
https://github.com/huggingface/datasets/issues/2977 | 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. | 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](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.06147871911525726,
-0.30513596534729004,
-0.051428042352199554,
0.15288196504116058,
0.2586479187011719,
0.1544818878173828,
0.22306275367736816,
0.4252104163169861,
-0.020491499453783035,
0.1378154754638672,
0.016965657472610474,
0.23894883692264557,
0.08543248474597931,
0.087453626096... |
https://github.com/huggingface/datasets/issues/2976 | 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 ... | 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']
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.09673364460468292,
-0.26058778166770935,
-0.0797852948307991,
0.08486149460077286,
0.2483426332473755,
0.39907026290893555,
0.3288692533969879,
0.1829104721546173,
0.23151762783527374,
0.21772950887680054,
0.11682180315256119,
0.24779917299747467,
0.007703471928834915,
0.197659358382225... |
https://github.com/huggingface/datasets/issues/2976 | Hi, if I want to load the dataset from local file, then how to specify the configuration name? | 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']
Example of usage:
`load_d... | 18 | 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.17902566492557526,
-0.14016397297382355,
-0.03141427040100098,
0.04399032145738602,
0.19588229060173035,
0.34560903906822205,
0.31514057517051697,
0.24012361466884613,
0.26460689306259155,
0.3540887236595154,
0.1479402482509613,
0.3209381401538849,
0.04550427943468094,
0.172915279865264... |
https://github.com/huggingface/datasets/issues/2972 | 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
``` | 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 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.048311635851860046,
-0.26501286029815674,
-0.10141640901565552,
0.4828663468360901,
0.07751844823360443,
0.12542858719825745,
-0.22987626492977142,
0.4518807530403137,
0.30695152282714844,
0.24537420272827148,
0.07815025001764297,
-0.3200188875198364,
-0.049231644719839096,
-0.331182837... |
https://github.com/huggingface/datasets/issues/2972 | `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 | 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 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.06352316588163376,
-0.2830457389354706,
-0.08851592242717743,
0.49706053733825684,
0.0879720002412796,
0.1864340901374817,
-0.17988362908363342,
0.4213721454143524,
0.2735774517059326,
0.23321089148521423,
0.04686371237039566,
-0.3344707489013672,
-0.04036029055714607,
-0.30256366729736... |
https://github.com/huggingface/datasets/issues/2972 | I had encountered the same error when running a command `ds = load_dataset('food101')` in a docker container. The error I got: `OSError: Not enough disk space. Needed: 9.43 GiB (download: 4.65 GiB, generated: 4.77 GiB, post-processed: Unknown size)`
In case anyone encountered the same issue, this was my fix:
```s... | 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 root `/` disk having no enough spac... | 155 | 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.13593079149723053,
-0.13086658716201782,
-0.10181030631065369,
0.38332346081733704,
0.059037256985902786,
0.1197914257645607,
-0.07512414455413818,
0.4612993001937866,
0.2957506775856018,
0.285512775182724,
0.050380855798721313,
-0.23164115846157074,
-0.010250642895698547,
-0.2988260388... |
https://github.com/huggingface/datasets/issues/2969 | 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... | 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="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.17696994543075562,
-0.16794201731681824,
0.13243107497692108,
0.30510199069976807,
0.09877043962478638,
0.17889373004436493,
0.25747278332710266,
0.35723957419395447,
-0.18424224853515625,
0.10258865356445312,
-0.26510265469551086,
0.13616201281547546,
-0.029387306421995163,
0.439886093... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.