html_url
stringlengths
48
51
title
stringlengths
5
280
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
159
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/4980
Make `pyarrow` optional
Thanks for the proposal, @KOLANICH. And also thanks for your answer, @dconathan. Indeed, we are using `pyarrow` as the backend for our datasets, in order to cache them and also allow memory-mapping (using datasets larger than your RAM memory). One way to avoid using `pyarrow` could be loading the datasets in stre...
**Is your feature request related to a problem? Please describe.** Is `pyarrow` really needed for every dataset? **Describe the solution you'd like** It is made optional. **Describe alternatives you've considered** Likely, no.
73
Make `pyarrow` optional **Is your feature request related to a problem? Please describe.** Is `pyarrow` really needed for every dataset? **Describe the solution you'd like** It is made optional. **Describe alternatives you've considered** Likely, no. Thanks for the proposal, @KOLANICH. And also thanks fo...
[ -0.25128304958343506, 0.2335464358329773, -0.06958980858325958, -0.17832010984420776, 0.225427508354187, -0.09293592721223831, 0.16923241317272186, 0.24594300985336304, -0.29941484332084656, 0.41223078966140747, 0.1802467405796051, 0.27408692240715027, 0.03926080837845802, -0.1444964557886...
https://github.com/huggingface/datasets/issues/4980
Make `pyarrow` optional
Thanks for the info. Could `datasets` then be made optional for `transformers` instead? I used `transformers` only to deal with pretrained models to deploy them (convert to ONNX, and then I use TVM), so I don't really need `pyarrow` and `datasets` by now.
**Is your feature request related to a problem? Please describe.** Is `pyarrow` really needed for every dataset? **Describe the solution you'd like** It is made optional. **Describe alternatives you've considered** Likely, no.
43
Make `pyarrow` optional **Is your feature request related to a problem? Please describe.** Is `pyarrow` really needed for every dataset? **Describe the solution you'd like** It is made optional. **Describe alternatives you've considered** Likely, no. Thanks for the info. Could `datasets` then be made opt...
[ -0.11282633244991302, 0.11583815515041351, -0.014203324913978577, -0.30617713928222656, 0.27623462677001953, -0.12688398361206055, 0.45049721002578735, 0.06423303484916687, -0.616065502166748, 0.2382810413837433, 0.1601678729057312, 0.27665045857429504, 0.11531917750835419, -0.076966829597...
https://github.com/huggingface/datasets/issues/4977
Providing dataset size
Hi @sashavor, thanks for your suggestion. Until now we have the CLI command ``` datasets-cli test datasets/<your-dataset-folder> --save_infos --all_configs ``` that generates the `dataset_infos.json` with the size of the downloaded dataset, among other information. We are currently in the middle of removing ...
**Is your feature request related to a problem? Please describe.** Especially for big datasets like [LAION](https://huggingface.co/datasets/laion/laion2B-en/), it's hard to know exactly the downloaded size (because there are many files and you don't have their exact size when downloaded). **Describe the solution yo...
78
Providing dataset size **Is your feature request related to a problem? Please describe.** Especially for big datasets like [LAION](https://huggingface.co/datasets/laion/laion2B-en/), it's hard to know exactly the downloaded size (because there are many files and you don't have their exact size when downloaded). *...
[ -0.6399008631706238, -0.21281209588050842, -0.1131865382194519, 0.14964421093463898, -0.009436305612325668, 0.12655416131019592, 0.1680154800415039, 0.3114834427833557, 0.14171119034290314, 0.41401559114456177, -0.08500179648399353, 0.09813991189002991, 0.12638558447360992, 0.5448517203330...
https://github.com/huggingface/datasets/issues/4977
Providing dataset size
Additionally, the download size can be inferred by doing HEAD requests to the files to be downloaded. And for files hosted on the hub you can even get the file sizes using the Hub API
**Is your feature request related to a problem? Please describe.** Especially for big datasets like [LAION](https://huggingface.co/datasets/laion/laion2B-en/), it's hard to know exactly the downloaded size (because there are many files and you don't have their exact size when downloaded). **Describe the solution yo...
35
Providing dataset size **Is your feature request related to a problem? Please describe.** Especially for big datasets like [LAION](https://huggingface.co/datasets/laion/laion2B-en/), it's hard to know exactly the downloaded size (because there are many files and you don't have their exact size when downloaded). *...
[ -0.6667077541351318, -0.4214353859424591, -0.16970433294773102, 0.18404635787010193, -0.12761026620864868, 0.03915034979581833, 0.07760560512542725, 0.20611728727817535, 0.1928451657295227, 0.4761049747467041, -0.14310626685619354, 0.030921783298254013, 0.1071857437491417, 0.58997100591659...
https://github.com/huggingface/datasets/issues/4977
Providing dataset size
Amazing @albertvillanova ! I think just having that information visible in the dataset info (without having to do any requests/additional coding) would be really useful :hugs:
**Is your feature request related to a problem? Please describe.** Especially for big datasets like [LAION](https://huggingface.co/datasets/laion/laion2B-en/), it's hard to know exactly the downloaded size (because there are many files and you don't have their exact size when downloaded). **Describe the solution yo...
26
Providing dataset size **Is your feature request related to a problem? Please describe.** Especially for big datasets like [LAION](https://huggingface.co/datasets/laion/laion2B-en/), it's hard to know exactly the downloaded size (because there are many files and you don't have their exact size when downloaded). *...
[ -0.5743656754493713, -0.3249141573905945, -0.18929700553417206, 0.19186553359031677, -0.06566028296947479, 0.06097155064344406, 0.09056255966424942, 0.19731135666370392, 0.10598073899745941, 0.45677095651626587, -0.0811370387673378, 0.0730317085981369, 0.06301722675561905, 0.64165335893630...
https://github.com/huggingface/datasets/issues/4976
Hope to adapt Python3.9 as soon as possible
There is this related issue already: https://github.com/huggingface/datasets/issues/4113 And I guess we need a CI job for 3.9 ^^
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. **Describe the solution you'd like** A clear and concise description of what you want to happen. **Describe alternatives you've considered** A clear and concise description of any alternat...
18
Hope to adapt Python3.9 as soon as possible **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. **Describe the solution you'd like** A clear and concise description of what you want to happen. **Describe alternatives you've considered** A...
[ -0.07192493975162506, -0.4575248658657074, -0.21028412878513336, 0.04659200459718704, 0.02843247726559639, -0.16763651371002197, 0.09926828742027283, 0.011193299666047096, -0.16036762297153473, 0.29400938749313354, 0.11267365515232086, 0.21916094422340393, -0.1661699265241623, 0.7333263754...
https://github.com/huggingface/datasets/issues/4965
[Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback()
Hi! This seems like a bug in `soundfile`. Could you please open an issue in their repo? `soundfile` works without any issues on my M1, so I'm not sure we can help.
## Describe the bug I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work. ## Steps to reproduce the bug ```python import datasets dataset = load_dataset("csv", data_files="./train.csv")["train"] dataset = dataset.map(lambda x: {"audio": str(DATA_DIR / "audio" / ...
32
[Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback() ## Describe the bug I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work. ## Steps to reproduce the bug ```python import datasets dataset = load_dataset("csv", data_files="./train.c...
[ -0.17689570784568787, -0.05003181844949722, 0.008499011397361755, 0.3107319474220276, 0.7080484628677368, -0.03584003821015358, 0.4516226649284363, 0.12757360935211182, -0.06962400674819946, 0.08208490163087845, -0.0465291365981102, 0.2427283078432083, -0.01392484363168478, 0.0680535435676...
https://github.com/huggingface/datasets/issues/4965
[Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback()
Hi @hoangtnm - I upgraded to python 3.10 and it fixed the problem for me. I was also running 3.8 on an M1 mac.
## Describe the bug I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work. ## Steps to reproduce the bug ```python import datasets dataset = load_dataset("csv", data_files="./train.csv")["train"] dataset = dataset.map(lambda x: {"audio": str(DATA_DIR / "audio" / ...
24
[Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback() ## Describe the bug I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work. ## Steps to reproduce the bug ```python import datasets dataset = load_dataset("csv", data_files="./train.c...
[ -0.17689570784568787, -0.05003181844949722, 0.008499011397361755, 0.3107319474220276, 0.7080484628677368, -0.03584003821015358, 0.4516226649284363, 0.12757360935211182, -0.06962400674819946, 0.08208490163087845, -0.0465291365981102, 0.2427283078432083, -0.01392484363168478, 0.0680535435676...
https://github.com/huggingface/datasets/issues/4965
[Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback()
Same here, upgrade python didn't work for me MemoryError: Cannot allocate write+execute memory for ffi.callback() any idea?
## Describe the bug I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work. ## Steps to reproduce the bug ```python import datasets dataset = load_dataset("csv", data_files="./train.csv")["train"] dataset = dataset.map(lambda x: {"audio": str(DATA_DIR / "audio" / ...
17
[Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback() ## Describe the bug I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work. ## Steps to reproduce the bug ```python import datasets dataset = load_dataset("csv", data_files="./train.c...
[ -0.17689570784568787, -0.05003181844949722, 0.008499011397361755, 0.3107319474220276, 0.7080484628677368, -0.03584003821015358, 0.4516226649284363, 0.12757360935211182, -0.06962400674819946, 0.08208490163087845, -0.0465291365981102, 0.2427283078432083, -0.01392484363168478, 0.0680535435676...
https://github.com/huggingface/datasets/issues/4965
[Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback()
This is a `soundfile` issue, so there isn't much we can do about it. Hopefully, it gets fixed soon.
## Describe the bug I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work. ## Steps to reproduce the bug ```python import datasets dataset = load_dataset("csv", data_files="./train.csv")["train"] dataset = dataset.map(lambda x: {"audio": str(DATA_DIR / "audio" / ...
19
[Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback() ## Describe the bug I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work. ## Steps to reproduce the bug ```python import datasets dataset = load_dataset("csv", data_files="./train.c...
[ -0.17689570784568787, -0.05003181844949722, 0.008499011397361755, 0.3107319474220276, 0.7080484628677368, -0.03584003821015358, 0.4516226649284363, 0.12757360935211182, -0.06962400674819946, 0.08208490163087845, -0.0465291365981102, 0.2427283078432083, -0.01392484363168478, 0.0680535435676...
https://github.com/huggingface/datasets/issues/4965
[Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback()
> Hi @hoangtnm - I upgraded to python 3.10 and it fixed the problem for me. I was also running 3.8 on an M1 mac. it work for me too
## Describe the bug I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work. ## Steps to reproduce the bug ```python import datasets dataset = load_dataset("csv", data_files="./train.csv")["train"] dataset = dataset.map(lambda x: {"audio": str(DATA_DIR / "audio" / ...
30
[Apple M1] MemoryError: Cannot allocate write+execute memory for ffi.callback() ## Describe the bug I'm trying to run `cast_column("audio", Audio())` on Apple M1 Pro, but it seems that it doesn't work. ## Steps to reproduce the bug ```python import datasets dataset = load_dataset("csv", data_files="./train.c...
[ -0.17689570784568787, -0.05003181844949722, 0.008499011397361755, 0.3107319474220276, 0.7080484628677368, -0.03584003821015358, 0.4516226649284363, 0.12757360935211182, -0.06962400674819946, 0.08208490163087845, -0.0465291365981102, 0.2427283078432083, -0.01392484363168478, 0.0680535435676...
https://github.com/huggingface/datasets/issues/4964
Column of arrays (2D+) are using unreasonably high memory
note i have tried the same code with `datasets` version 2.4.0, the outcome is the very same as described above.
## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ```python from datasets import Dataset, Features, Array2D, ...
20
Column of arrays (2D+) are using unreasonably high memory ## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ...
[ 0.12206099927425385, 0.014006927609443665, -0.04854970425367355, 0.5855892896652222, 0.4824303388595581, 0.1741618812084198, 0.3983026146888733, 0.12848874926567078, 0.21941545605659485, 0.02684297412633896, -0.09757266938686371, 0.4009018540382385, -0.20765922963619232, 0.0020350944250822...
https://github.com/huggingface/datasets/issues/4964
Column of arrays (2D+) are using unreasonably high memory
Seems related to issues #4623 and #4802 so it would appear this issue has been around for a few months.
## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ```python from datasets import Dataset, Features, Array2D, ...
20
Column of arrays (2D+) are using unreasonably high memory ## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ...
[ 0.10402201116085052, 0.002209477126598358, -0.018031813204288483, 0.5737425088882446, 0.5291051864624023, 0.14689108729362488, 0.4207685589790344, 0.18014934659004211, 0.16058550775051117, 0.007637776434421539, -0.08344811201095581, 0.3398456573486328, -0.1886741667985916, -0.0489181801676...
https://github.com/huggingface/datasets/issues/4964
Column of arrays (2D+) are using unreasonably high memory
Hi ! `Dataset.from_dict` keeps the data in memory. You can write on disk and reload them with ```python dataset.save_to_disk("path/to/local") dataset = load_from_disk("path/to/local") ``` this way you'll end up with a dataset loaded from your disk using memory mapping, and it won't fill up your RAM :) related t...
## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ```python from datasets import Dataset, Features, Array2D, ...
49
Column of arrays (2D+) are using unreasonably high memory ## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ...
[ 0.045552369207143784, 0.01519949734210968, -0.09774087369441986, 0.5263460874557495, 0.5173768997192383, 0.15563231706619263, 0.31598901748657227, 0.2081926316022873, 0.2338581681251526, 0.05587401241064072, -0.09372477978467941, 0.4004634916782379, -0.183038592338562, 0.04938501864671707,...
https://github.com/huggingface/datasets/issues/4964
Column of arrays (2D+) are using unreasonably high memory
@lhoestq thnx for getting back to me! i've tested the suggested method, but unfortunately the memory consumption is the very same: ``` from datasets import Dataset, Features, Array2D, Array3D, load_from_disk import numpy as np column_name = "a" array_shape = (64, 64, 3) data = np.random.random((10000,) + ar...
## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ```python from datasets import Dataset, Features, Array2D, ...
93
Column of arrays (2D+) are using unreasonably high memory ## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ...
[ 0.11394543945789337, 0.019237250089645386, -0.051380448043346405, 0.5630336403846741, 0.5003138780593872, 0.14634287357330322, 0.3897077143192291, 0.13979969918727875, 0.2672913670539856, 0.03321892023086548, -0.0966111496090889, 0.42706498503685, -0.239849254488945, 0.011586079373955727, ...
https://github.com/huggingface/datasets/issues/4964
Column of arrays (2D+) are using unreasonably high memory
When you call `colum_value = foo_db[column_name]`, you load the full column in memory. If you want to avoid filling up your memory, you can access chunks of data instead ```python embeddings = dataset[i:i + chunk_size]["embeddings"] ```
## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ```python from datasets import Dataset, Features, Array2D, ...
36
Column of arrays (2D+) are using unreasonably high memory ## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ...
[ 0.08300690352916718, 0.008690312504768372, -0.07957549393177032, 0.5357914566993713, 0.5002109408378601, 0.18987640738487244, 0.33535102009773254, 0.19083479046821594, 0.2069808691740036, 0.09125422686338425, -0.07150695472955704, 0.3508971333503723, -0.17139743268489838, -0.00865107588469...
https://github.com/huggingface/datasets/issues/4964
Column of arrays (2D+) are using unreasonably high memory
@lhoestq yeah that's intentional, i.e. i really want to load the whole column into the memory. but as said above there's an unreasonable amount of overhead for the memory. the np array itself is using about 1G of memory: ``` >>> getsizeof(data)/1024/1024 937.5001525878906 ``` that accessing of column above is usin...
## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ```python from datasets import Dataset, Features, Array2D, ...
59
Column of arrays (2D+) are using unreasonably high memory ## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ...
[ 0.11036120355129242, 0.024429887533187866, -0.06039049103856087, 0.5220662951469421, 0.503948986530304, 0.16475358605384827, 0.32889851927757263, 0.16101008653640747, 0.28585320711135864, 0.05438791215419769, -0.0773075595498085, 0.40909239649772644, -0.16685950756072998, -0.03842711821198...
https://github.com/huggingface/datasets/issues/4964
Column of arrays (2D+) are using unreasonably high memory
The dataset must be twice as big because we use regular arrow ListArray under the hood and not FixedSizeListArray. Basically we store unnecessary offsets. And this should affect performance as well. When we developed this, FixedSizeListArray still had some issues but they should be resolved on the PyArrow side now
## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ```python from datasets import Dataset, Features, Array2D, ...
50
Column of arrays (2D+) are using unreasonably high memory ## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ...
[ 0.10385605692863464, 0.07983541488647461, -0.058831118047237396, 0.5339334011077881, 0.49100297689437866, 0.13009634613990784, 0.36716458201408386, 0.10422544181346893, 0.10174518823623657, -0.016853556036949158, -0.13531047105789185, 0.4506663382053375, -0.23931749165058136, -0.0919153243...
https://github.com/huggingface/datasets/issues/4964
Column of arrays (2D+) are using unreasonably high memory
A doubling would be fine. My very basic understanding of PyArrow is that using ListArray is probably related to the issue though. Using a multi-dimensional array in datasets is storing everything as strange nested 1d object arrays, which I imagine is creating the massive overhead. I think it should be a PyArrow Tens...
## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ```python from datasets import Dataset, Features, Array2D, ...
54
Column of arrays (2D+) are using unreasonably high memory ## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ...
[ 0.07218019664287567, 0.10704396665096283, -0.05946267396211624, 0.449451744556427, 0.46474939584732056, 0.1429208517074585, 0.4368583858013153, 0.17404727637767792, 0.09247265756130219, 0.0638110414147377, -0.12260522693395615, 0.4118845760822296, -0.1880142241716385, -0.12550655007362366,...
https://github.com/huggingface/datasets/issues/4964
Column of arrays (2D+) are using unreasonably high memory
PyArrow tensors are not part of the Arrow format AFAIK: > There is no direct support in the arrow columnar format to store Tensors as column values. source: https://github.com/apache/arrow/issues/4802#issuecomment-508494694
## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ```python from datasets import Dataset, Features, Array2D, ...
29
Column of arrays (2D+) are using unreasonably high memory ## Describe the bug When trying to store `Array2D, Array3D, etc` as column values in a dataset, accessing that column (or creating depending on how you create it, see code below) will cause more than 10 fold of memory usage. ## Steps to reproduce the bug ...
[ 0.10138064622879028, 0.02366507053375244, -0.058113738894462585, 0.48171645402908325, 0.4805806875228882, 0.10301568359136581, 0.46678870916366577, 0.2531795799732208, 0.16133840382099152, 0.03445249795913696, -0.042137645184993744, 0.47871625423431396, -0.22409698367118835, -0.19256143271...
https://github.com/huggingface/datasets/issues/4963
Dataset without script does not support regular JSON data file
Hi @julien-c, Out of the box, we only support JSON lines (NDJSON) data files, but your data file is a regular JSON file. The reason is we use `pyarrow.json.read_json` and this only supports line-delimited JSON.
### Link https://huggingface.co/datasets/julien-c/label-studio-my-dogs ### Description <img width="1115" alt="image" src="https://user-images.githubusercontent.com/326577/189422048-7e9c390f-bea7-4521-a232-43f049ccbd1f.png"> ### Owner Yes
35
Dataset without script does not support regular JSON data file ### Link https://huggingface.co/datasets/julien-c/label-studio-my-dogs ### Description <img width="1115" alt="image" src="https://user-images.githubusercontent.com/326577/189422048-7e9c390f-bea7-4521-a232-43f049ccbd1f.png"> ### Owner Yes Hi @juli...
[ -0.18610836565494537, 0.23253092169761658, -0.17697162926197052, 0.22134143114089966, 0.3106291890144348, 0.09546839445829391, 0.33586859703063965, 0.432341068983078, -0.10013698041439056, 0.11419596523046494, 0.059093721210956573, 0.3605564534664154, -0.0065533192828297615, 0.263096958398...
https://github.com/huggingface/datasets/issues/4961
fsspec 2022.8.2 breaks xopen in streaming mode
loading `fsspec==2022.7.1` fixes this issue, setup.py would need to be changed to prevent users from using the latest version of fsspec.
## Describe the bug When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable. ## Steps to reproduce the bug ```python import datasets data = datasets.load_dataset('MLCommons/ml_spoken_words', 'id_wav', split='train', streaming=True) ``` ...
21
fsspec 2022.8.2 breaks xopen in streaming mode ## Describe the bug When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable. ## Steps to reproduce the bug ```python import datasets data = datasets.load_dataset('MLCommons/ml_spoken_words', '...
[ -0.5926543474197388, 0.019043713808059692, 0.005749773234128952, -0.031902894377708435, 0.0957615077495575, -0.3419184982776642, 0.28033727407455444, 0.30580541491508484, 0.16552390158176422, 0.14295904338359833, -0.2108203023672104, 0.14903897047042847, 0.052455540746450424, 0.54076856374...
https://github.com/huggingface/datasets/issues/4961
fsspec 2022.8.2 breaks xopen in streaming mode
Hi @DCNemesis, thanks for reporting. That was a temporary issue in `fsspec` releases 2022.8.0 and 2022.8.1. But they fixed it in their patch release 2022.8.2 (and yanked both previous versions). See: - https://github.com/huggingface/transformers/pull/18846 Are you sure you have version 2022.8.2 installed? ```sh...
## Describe the bug When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable. ## Steps to reproduce the bug ```python import datasets data = datasets.load_dataset('MLCommons/ml_spoken_words', 'id_wav', split='train', streaming=True) ``` ...
47
fsspec 2022.8.2 breaks xopen in streaming mode ## Describe the bug When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable. ## Steps to reproduce the bug ```python import datasets data = datasets.load_dataset('MLCommons/ml_spoken_words', '...
[ -0.5926543474197388, 0.019043713808059692, 0.005749773234128952, -0.031902894377708435, 0.0957615077495575, -0.3419184982776642, 0.28033727407455444, 0.30580541491508484, 0.16552390158176422, 0.14295904338359833, -0.2108203023672104, 0.14903897047042847, 0.052455540746450424, 0.54076856374...
https://github.com/huggingface/datasets/issues/4961
fsspec 2022.8.2 breaks xopen in streaming mode
@albertvillanova I was using a temporary Google Colab instance, but checking it again today it seems it was loading 2022.8.1 rather than 2022.8.2. It's surprising that colab is using the version that was replaced the same day it was released. Testing with 2022.8.2 did work. It appears Colab [will be fixing it](https://...
## Describe the bug When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable. ## Steps to reproduce the bug ```python import datasets data = datasets.load_dataset('MLCommons/ml_spoken_words', 'id_wav', split='train', streaming=True) ``` ...
56
fsspec 2022.8.2 breaks xopen in streaming mode ## Describe the bug When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable. ## Steps to reproduce the bug ```python import datasets data = datasets.load_dataset('MLCommons/ml_spoken_words', '...
[ -0.5926543474197388, 0.019043713808059692, 0.005749773234128952, -0.031902894377708435, 0.0957615077495575, -0.3419184982776642, 0.28033727407455444, 0.30580541491508484, 0.16552390158176422, 0.14295904338359833, -0.2108203023672104, 0.14903897047042847, 0.052455540746450424, 0.54076856374...
https://github.com/huggingface/datasets/issues/4961
fsspec 2022.8.2 breaks xopen in streaming mode
Thanks for the additional information. Once we know 2022.8.2 works, I'm closing this issue. Feel free to reopen it if necessary.
## Describe the bug When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable. ## Steps to reproduce the bug ```python import datasets data = datasets.load_dataset('MLCommons/ml_spoken_words', 'id_wav', split='train', streaming=True) ``` ...
21
fsspec 2022.8.2 breaks xopen in streaming mode ## Describe the bug When fsspec 2022.8.2 is installed in your environment, xopen will prematurely close files, making streaming mode inoperable. ## Steps to reproduce the bug ```python import datasets data = datasets.load_dataset('MLCommons/ml_spoken_words', '...
[ -0.5926543474197388, 0.019043713808059692, 0.005749773234128952, -0.031902894377708435, 0.0957615077495575, -0.3419184982776642, 0.28033727407455444, 0.30580541491508484, 0.16552390158176422, 0.14295904338359833, -0.2108203023672104, 0.14903897047042847, 0.052455540746450424, 0.54076856374...
https://github.com/huggingface/datasets/issues/4960
BioASQ AttributeError: 'BuilderConfig' object has no attribute 'schema'
Following worked: ``` data_dir = "/Users/dlituiev/repos/datasets/bioasq/" bioasq_task_b = load_dataset("aps/bioasq_task_b", data_dir=data_dir, name="bioasq_9b_source") ``` Would maintainers be open to one of the following: - automating this with a latest default config (e.g. `bioasq_9b_source`); how can this...
## Describe the bug I am trying to load a dataset from drive and running into an error. ## Steps to reproduce the bug ```python data_dir = "/Users/dlituiev/repos/datasets/bioasq/BioASQ-training9b" bioasq_task_b = load_dataset("aps/bioasq_task_b", data_dir=data_dir) ``` ## Actual results `AttributeError: ...
73
BioASQ AttributeError: 'BuilderConfig' object has no attribute 'schema' ## Describe the bug I am trying to load a dataset from drive and running into an error. ## Steps to reproduce the bug ```python data_dir = "/Users/dlituiev/repos/datasets/bioasq/BioASQ-training9b" bioasq_task_b = load_dataset("aps/bioasq...
[ -0.4792846739292145, 0.29812687635421753, 0.03767957165837288, 0.41576021909713745, 0.2735465168952942, 0.09569958597421646, 0.42750638723373413, 0.2045259028673172, 0.19170443713665009, 0.27458441257476807, 0.12277468293905258, 0.028028402477502823, -0.13475382328033447, 0.467828750610351...
https://github.com/huggingface/datasets/issues/4960
BioASQ AttributeError: 'BuilderConfig' object has no attribute 'schema'
Hi ! In general the list of available configurations is prompted. I think this is an issue with this specific dataset. Feel free to open a new discussions at https://huggingface.co/datasets/aps/bioasq_task_b/discussions cc @apsdehal In particular it sounds like the `BUILDER_CONFIG_CLASS= BigBioConfig ` class a...
## Describe the bug I am trying to load a dataset from drive and running into an error. ## Steps to reproduce the bug ```python data_dir = "/Users/dlituiev/repos/datasets/bioasq/BioASQ-training9b" bioasq_task_b = load_dataset("aps/bioasq_task_b", data_dir=data_dir) ``` ## Actual results `AttributeError: ...
58
BioASQ AttributeError: 'BuilderConfig' object has no attribute 'schema' ## Describe the bug I am trying to load a dataset from drive and running into an error. ## Steps to reproduce the bug ```python data_dir = "/Users/dlituiev/repos/datasets/bioasq/BioASQ-training9b" bioasq_task_b = load_dataset("aps/bioasq...
[ -0.4792846739292145, 0.29812687635421753, 0.03767957165837288, 0.41576021909713745, 0.2735465168952942, 0.09569958597421646, 0.42750638723373413, 0.2045259028673172, 0.19170443713665009, 0.27458441257476807, 0.12277468293905258, 0.028028402477502823, -0.13475382328033447, 0.467828750610351...
https://github.com/huggingface/datasets/issues/4942
Trec Dataset has incorrect labels
Thanks for reporting, @wmpauli. Indeed we recently fixed this issue: - #4801 The fix will be accessible after our next library release. In the meantime, you can have it by passing `revision="main"` to `load_dataset`.
## Describe the bug Both coarse and fine labels seem to be out of line. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = "trec" raw_datasets = load_dataset(dataset) df = pd.DataFrame(raw_datasets["test"]) df.head() ``` ## Expected results text (string) | coarse_labe...
34
Trec Dataset has incorrect labels ## Describe the bug Both coarse and fine labels seem to be out of line. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = "trec" raw_datasets = load_dataset(dataset) df = pd.DataFrame(raw_datasets["test"]) df.head() ``` ## Expected ...
[ 0.08693256974220276, -0.10107605159282684, 0.0030672587454319, 0.5229552984237671, 0.2834128141403198, 0.07323778420686722, 0.3199666738510132, 0.05552397668361664, -0.29809725284576416, 0.10409139096736908, -0.20085760951042175, 0.49746957421302795, 0.24275170266628265, 0.0789859369397163...
https://github.com/huggingface/datasets/issues/4936
vivos (Vietnamese speech corpus) dataset not accessible
If you need an example of a small audio datasets, I just created few hours ago a speech dataset with only 300MB of compressed audio files https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia. It works also with streaming (@albertvillanova helped me adding this functionality) :-)
## Describe the bug VIVOS data is not accessible anymore, neither of these links work (at least from France): * https://ailab.hcmus.edu.vn/assets/vivos.tar.gz (data) * https://ailab.hcmus.edu.vn/vivos (dataset page) Therefore `load_dataset` doesn't work. ## Steps to reproduce the bug ```python ds = load_dat...
39
vivos (Vietnamese speech corpus) dataset not accessible ## Describe the bug VIVOS data is not accessible anymore, neither of these links work (at least from France): * https://ailab.hcmus.edu.vn/assets/vivos.tar.gz (data) * https://ailab.hcmus.edu.vn/vivos (dataset page) Therefore `load_dataset` doesn't work. ...
[ -0.12232273817062378, 0.14369362592697144, -0.0691683292388916, 0.15893080830574036, 0.2553069591522217, -0.26797589659690857, 0.19797638058662415, 0.3506035804748535, -0.1846996694803238, 0.22698798775672913, -0.5419899821281433, -0.1145104393362999, 0.05729388818144798, -0.14273783564567...
https://github.com/huggingface/datasets/issues/4935
Dataset Viewer issue for ubuntu_dialogs_corpus
The dataset maintainers (https://huggingface.co/datasets/ubuntu_dialogs_corpus) decided to forbid the dataset from being downloaded automatically (https://huggingface.co/docs/datasets/v2.4.0/en/loading#manual-download), and the dataset viewer respects this. We will try to improve the error display though. Thanks for r...
### Link _No response_ ### Description _No response_ ### Owner _No response_
32
Dataset Viewer issue for ubuntu_dialogs_corpus ### Link _No response_ ### Description _No response_ ### Owner _No response_ The dataset maintainers (https://huggingface.co/datasets/ubuntu_dialogs_corpus) decided to forbid the dataset from being downloaded automatically (https://huggingface.co/docs/datasets/v2....
[ -0.31872305274009705, -0.07901444286108017, -0.0069214291870594025, 0.24896056950092316, 0.20231448113918304, 0.296213299036026, 0.22899384796619415, 0.23128916323184967, 0.028678596019744873, 0.19641342759132385, -0.3881252110004425, 0.2583983242511749, -0.06549358367919922, 0.08649004250...
https://github.com/huggingface/datasets/issues/4934
Dataset Viewer issue for indonesian-nlp/librivox-indonesia
Thanks @albertvillanova for checking the issue. Actually, I can use the dataset like following: ``` >>> from datasets import load_dataset >>> ds=load_dataset("indonesian-nlp/librivox-indonesia") No config specified, defaulting to: librivox-indonesia/all Reusing dataset librivox-indonesia (/root/.cache/huggingface/...
### Link https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia ### Description I created a new speech dataset https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia, but the dataset preview doesn't work with following error message: ``` Server error Status code: 400 Exception: TypeEr...
102
Dataset Viewer issue for indonesian-nlp/librivox-indonesia ### Link https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia ### Description I created a new speech dataset https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia, but the dataset preview doesn't work with following error message: ...
[ -0.3000684082508087, -0.28596270084381104, 0.06741733849048615, 0.5013383626937866, 0.2529182732105255, -0.10567692667245865, 0.05864055082201958, 0.3209860920906067, 0.07752662897109985, 0.09025982767343521, -0.3962743878364563, -0.01853739656507969, -0.2425432950258255, 0.149313628673553...
https://github.com/huggingface/datasets/issues/4934
Dataset Viewer issue for indonesian-nlp/librivox-indonesia
Yes, the issue arises when streaming (that is used by the viewer): your script does not support streaming and to support it in this case there are some subtleties that we are explaining better in our docs in a work-in progress pull request: - #4872 Just note that when streaming, `local_extracted_archive` is None, a...
### Link https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia ### Description I created a new speech dataset https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia, but the dataset preview doesn't work with following error message: ``` Server error Status code: 400 Exception: TypeEr...
100
Dataset Viewer issue for indonesian-nlp/librivox-indonesia ### Link https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia ### Description I created a new speech dataset https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia, but the dataset preview doesn't work with following error message: ...
[ -0.42100292444229126, -0.17707562446594238, 0.08086822926998138, 0.26916253566741943, 0.14048972725868225, -0.09134476631879807, 0.0739453062415123, 0.3503948450088501, 0.09880751371383667, 0.19274136424064636, -0.2864548861980438, 0.03298391401767731, -0.2647589445114136, 0.12476725131273...
https://github.com/huggingface/datasets/issues/4934
Dataset Viewer issue for indonesian-nlp/librivox-indonesia
Hi @albertvillanova , I just add the streaming functionality and it works in the first try :-) Thanks a lot!
### Link https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia ### Description I created a new speech dataset https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia, but the dataset preview doesn't work with following error message: ``` Server error Status code: 400 Exception: TypeEr...
20
Dataset Viewer issue for indonesian-nlp/librivox-indonesia ### Link https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia ### Description I created a new speech dataset https://huggingface.co/datasets/indonesian-nlp/librivox-indonesia, but the dataset preview doesn't work with following error message: ...
[ -0.34486499428749084, -0.2571355700492859, 0.06895390152931213, 0.37012165784835815, 0.08971190452575684, -0.11604533344507217, 0.0346599817276001, 0.31046828627586365, 0.04626113548874855, 0.07675070315599442, -0.355891615152359, -0.06869317591190338, -0.15445725619792938, 0.0978979244828...
https://github.com/huggingface/datasets/issues/4933
Dataset/DatasetDict.filter() cannot have `batched=True` due to `mask` (numpy array?) being non-iterable.
Hi ! When `batched=True`, you filter function must take a batch as input, and return a list of booleans. In your case, something like ```python from datasets import load_dataset ds_mc4_ja = load_dataset("mc4", "ja") # This will take 6+ hours... perhaps test it with a toy dataset instead? ds_mc4_ja_2020 = ds...
## Describe the bug `Dataset/DatasetDict.filter()` cannot have `batched=True` due to `mask` (numpy array?) being non-iterable. ## Steps to reproduce the bug (In a python 3.7.12 env, I've tried 2.4.0 and 2.3.2 with both `pyarraw==9.0.0` and `pyarrow==8.0.0`.) ```python from datasets import load_dataset ds_...
69
Dataset/DatasetDict.filter() cannot have `batched=True` due to `mask` (numpy array?) being non-iterable. ## Describe the bug `Dataset/DatasetDict.filter()` cannot have `batched=True` due to `mask` (numpy array?) being non-iterable. ## Steps to reproduce the bug (In a python 3.7.12 env, I've tried 2.4.0 and 2.3.2...
[ -0.25658684968948364, -0.16881710290908813, -0.09791384637355804, -0.025695033371448517, -0.15428903698921204, 0.011435210704803467, 0.562778651714325, 0.23456715047359467, -0.04838250204920769, 0.07928235828876495, 0.019656455144286156, 0.1604590266942978, -0.07456586509943008, -0.0295192...
https://github.com/huggingface/datasets/issues/4933
Dataset/DatasetDict.filter() cannot have `batched=True` due to `mask` (numpy array?) being non-iterable.
> Hi ! When `batched=True`, you filter function must take a batch as input, and return a list of booleans. > [...] > Let me know if it helps ! Hi @lhoestq, Ah, my bad, I totally forgot that part... Sorry for the trouble and thank you for the kind help!
## Describe the bug `Dataset/DatasetDict.filter()` cannot have `batched=True` due to `mask` (numpy array?) being non-iterable. ## Steps to reproduce the bug (In a python 3.7.12 env, I've tried 2.4.0 and 2.3.2 with both `pyarraw==9.0.0` and `pyarrow==8.0.0`.) ```python from datasets import load_dataset ds_...
51
Dataset/DatasetDict.filter() cannot have `batched=True` due to `mask` (numpy array?) being non-iterable. ## Describe the bug `Dataset/DatasetDict.filter()` cannot have `batched=True` due to `mask` (numpy array?) being non-iterable. ## Steps to reproduce the bug (In a python 3.7.12 env, I've tried 2.4.0 and 2.3.2...
[ -0.25658684968948364, -0.16881710290908813, -0.09791384637355804, -0.025695033371448517, -0.15428903698921204, 0.011435210704803467, 0.562778651714325, 0.23456715047359467, -0.04838250204920769, 0.07928235828876495, 0.019656455144286156, 0.1604590266942978, -0.07456586509943008, -0.0295192...
https://github.com/huggingface/datasets/issues/4932
Dataset Viewer issue for bigscience-biomedical/biosses
Possibly not related to the dataset viewer in itself. cc @huggingface/datasets. In particular, I think that the import of bigbiohub is not working here: https://huggingface.co/datasets/bigscience-biomedical/biosses/blob/main/biosses.py#L29 (requires a relative path?) ```python >>> from datasets import get_datase...
### Link https://huggingface.co/datasets/bigscience-biomedical/biosses ### Description I've just been working on adding the dataset loader script to this dataset and working with the relative imports. I'm not sure how to interpret the error below (show where the dataset preview used to be) . ``` Status code: 40...
124
Dataset Viewer issue for bigscience-biomedical/biosses ### Link https://huggingface.co/datasets/bigscience-biomedical/biosses ### Description I've just been working on adding the dataset loader script to this dataset and working with the relative imports. I'm not sure how to interpret the error below (show where t...
[ -0.3742017149925232, -0.02581452578306198, -0.007215837016701698, 0.1082422286272049, 0.2420702576637268, 0.060761772096157074, 0.2832285463809967, 0.3317495882511139, 0.16744938492774963, 0.05709925666451454, -0.19567283987998962, -0.10373886674642563, -0.22351089119911194, 0.171020522713...
https://github.com/huggingface/datasets/issues/4932
Dataset Viewer issue for bigscience-biomedical/biosses
thanks for taking a look @severo . agree this isn't related to dataset viewer (sorry just clicked on the auto issue creator). also thanks @lhoestq , I see the format to use for relative imports. was a bit confused b/c it seems to be working here https://huggingface.co/datasets/bigscience-biomedical/scitail/blob/mai...
### Link https://huggingface.co/datasets/bigscience-biomedical/biosses ### Description I've just been working on adding the dataset loader script to this dataset and working with the relative imports. I'm not sure how to interpret the error below (show where the dataset preview used to be) . ``` Status code: 40...
55
Dataset Viewer issue for bigscience-biomedical/biosses ### Link https://huggingface.co/datasets/bigscience-biomedical/biosses ### Description I've just been working on adding the dataset loader script to this dataset and working with the relative imports. I'm not sure how to interpret the error below (show where t...
[ -0.3713708817958832, -0.17211885750293732, -0.0018686819821596146, 0.14716246724128723, 0.27972766757011414, 0.12249790877103806, 0.20924825966358185, 0.3744974434375763, 0.17099764943122864, 0.032907791435718536, -0.19054153561592102, -0.09430452436208725, -0.180513396859169, 0.2358375936...
https://github.com/huggingface/datasets/issues/4932
Dataset Viewer issue for bigscience-biomedical/biosses
closing as I think the issue is relative imports and attempting to read json files directly in the repo (thanks again @lhoestq )
### Link https://huggingface.co/datasets/bigscience-biomedical/biosses ### Description I've just been working on adding the dataset loader script to this dataset and working with the relative imports. I'm not sure how to interpret the error below (show where the dataset preview used to be) . ``` Status code: 40...
23
Dataset Viewer issue for bigscience-biomedical/biosses ### Link https://huggingface.co/datasets/bigscience-biomedical/biosses ### Description I've just been working on adding the dataset loader script to this dataset and working with the relative imports. I'm not sure how to interpret the error below (show where t...
[ -0.3758320212364197, 0.0773666650056839, -0.03822566941380501, 0.16882605850696564, 0.2825668454170227, 0.089407779276371, 0.12374646961688995, 0.4748040437698364, 0.09804359078407288, 0.06140431389212608, -0.22690460085868835, -0.059327829629182816, -0.08528667688369751, 0.204392343759536...
https://github.com/huggingface/datasets/issues/4920
Unable to load local tsv files through load_dataset method
Hi @DataNoob0723, Under the hood, we use `pandas` to load CSV/TSV files. Therefore, you should use "csv" and pass `sep="\t"`, as explained in our docs: https://huggingface.co/docs/datasets/v2.4.0/en/package_reference/loading_methods#from-files ```python ds = load_dataset('csv', sep="\t", data_files=data_files) ``...
## Describe the bug Unable to load local tsv files through load_dataset method. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug data_files = { 'train': 'train.tsv', 'test': 'test.tsv' } raw_datasets = load_dataset('tsv', data_files=data_files) ## Expected results I am p...
33
Unable to load local tsv files through load_dataset method ## Describe the bug Unable to load local tsv files through load_dataset method. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug data_files = { 'train': 'train.tsv', 'test': 'test.tsv' } raw_datasets = load_dataset...
[ -0.1784229576587677, -0.28648197650909424, -0.012520809657871723, 0.27422094345092773, 0.36084723472595215, 0.10372867435216904, 0.5434625744819641, 0.42598918080329895, 0.5098843574523926, 0.10509300231933594, -0.10473917424678802, 0.42484867572784424, -0.1907421052455902, 0.1635621339082...
https://github.com/huggingface/datasets/issues/4918
Dataset Viewer issue for pysentimiento/spanish-targeted-sentiment-headlines
Thanks for reporting, it's fixed now (I refreshed it manually). It's a known issue; we hope it will be fixed permanently in a few days. <img width="1508" alt="Capture d’écran 2022-09-05 à 18 31 22" src="https://user-images.githubusercontent.com/1676121/188489762-0ed86a7e-dfb3-46e8-a125-43b815a2c6f4.png">
### Link https://huggingface.co/datasets/pysentimiento/spanish-targeted-sentiment-headlines ### Description After moving the dataset from my user (`finiteautomata`) to the `pysentimiento` organization, the dataset viewer says that it doesn't exist. ### Owner _No response_
35
Dataset Viewer issue for pysentimiento/spanish-targeted-sentiment-headlines ### Link https://huggingface.co/datasets/pysentimiento/spanish-targeted-sentiment-headlines ### Description After moving the dataset from my user (`finiteautomata`) to the `pysentimiento` organization, the dataset viewer says that it doesn...
[ -0.3359379470348358, 0.4401548504829407, 0.004127278923988342, 0.269311785697937, 0.3724842071533203, -0.06750047951936722, 0.30433645844459534, 0.22219888865947723, -0.2502279281616211, 0.11511656641960144, -0.23486873507499695, 0.2856968641281128, -0.0004571685567498207, -0.2130818068981...
https://github.com/huggingface/datasets/issues/4917
Keys mismatch: make error message more informative
Good idea ! I think this can be improved in `Features.reorder_fields_as()` indeed at https://github.com/huggingface/datasets/blob/7feeb5648a63b6135a8259dedc3b1e19185ee4c7/src/datasets/features/features.py#L1739-L1740 Is it something you would be interested in contributing ?
**Is your feature request related to a problem? Please describe.** When loading a dataset from disk with a defect in its `dataset_info.json` describing its features (I don’t know when/why/how this happens but it deserves its own issue), you will get an error message like: `ValueError: Keys mismatch: between {'bar': V...
24
Keys mismatch: make error message more informative **Is your feature request related to a problem? Please describe.** When loading a dataset from disk with a defect in its `dataset_info.json` describing its features (I don’t know when/why/how this happens but it deserves its own issue), you will get an error message...
[ 0.05593624338507652, -0.45110347867012024, -0.0870409831404686, 0.32584720849990845, 0.12832194566726685, 0.05777042359113693, -0.05212981626391411, 0.1493237167596817, 0.1287987232208252, 0.03420214354991913, 0.4235963225364685, 0.33195722103118896, 0.1214398667216301, 0.3156548738479614,...
https://github.com/huggingface/datasets/issues/4917
Keys mismatch: make error message more informative
Is this open to work on? I'd love to take on this as my first issue.
**Is your feature request related to a problem? Please describe.** When loading a dataset from disk with a defect in its `dataset_info.json` describing its features (I don’t know when/why/how this happens but it deserves its own issue), you will get an error message like: `ValueError: Keys mismatch: between {'bar': V...
16
Keys mismatch: make error message more informative **Is your feature request related to a problem? Please describe.** When loading a dataset from disk with a defect in its `dataset_info.json` describing its features (I don’t know when/why/how this happens but it deserves its own issue), you will get an error message...
[ -0.0036083199083805084, -0.42993906140327454, -0.12849532067775726, 0.32273584604263306, -0.01575388014316559, 0.048986032605171204, -0.023086201399564743, 0.1496501863002777, 0.031474970281124115, 0.11615725606679916, 0.5251999497413635, 0.4055686593055725, 0.07721658051013947, 0.22863133...
https://github.com/huggingface/datasets/issues/4915
FileNotFoundError while downloading wikipedia dataset for any language
Hi @Shilpac20, As explained in the Wikipedia dataset card: https://huggingface.co/datasets/wikipedia > You can find the full list of languages and dates [here](https://dumps.wikimedia.org/backup-index.html). This means that, before passing a specific date, you should first make sure it is available online, as Wi...
## Describe the bug Hi, I am currently trying to download wikipedia dataset using load_dataset("wikipedia", language="aa", date="20220401", split="train",beam_runner='DirectRunner'). However, I end up in getting filenotfound error. I get this error for any language I try to download. Environment: ## Step...
79
FileNotFoundError while downloading wikipedia dataset for any language ## Describe the bug Hi, I am currently trying to download wikipedia dataset using load_dataset("wikipedia", language="aa", date="20220401", split="train",beam_runner='DirectRunner'). However, I end up in getting filenotfound error. I get this...
[ -0.22171072661876678, 0.12476305663585663, 0.02336561307311058, 0.48378026485443115, 0.13305407762527466, 0.10554274171590805, 0.20086951553821564, 0.45038512349128723, 0.2548263669013977, 0.011655345559120178, 0.13270814716815948, -0.09619120508432388, 0.08483631908893585, -0.170221060514...
https://github.com/huggingface/datasets/issues/4915
FileNotFoundError while downloading wikipedia dataset for any language
Hi, the date that I have specified "20220401" is available for the language "aa". The error persists for any other available dates as present in https://dumps.wikimedia.org/aawiki/. The error is mainly due to apache beam not able to write the downloaded files. Any help on this?
## Describe the bug Hi, I am currently trying to download wikipedia dataset using load_dataset("wikipedia", language="aa", date="20220401", split="train",beam_runner='DirectRunner'). However, I end up in getting filenotfound error. I get this error for any language I try to download. Environment: ## Step...
45
FileNotFoundError while downloading wikipedia dataset for any language ## Describe the bug Hi, I am currently trying to download wikipedia dataset using load_dataset("wikipedia", language="aa", date="20220401", split="train",beam_runner='DirectRunner'). However, I end up in getting filenotfound error. I get this...
[ -0.22171072661876678, 0.12476305663585663, 0.02336561307311058, 0.48378026485443115, 0.13305407762527466, 0.10554274171590805, 0.20086951553821564, 0.45038512349128723, 0.2548263669013977, 0.011655345559120178, 0.13270814716815948, -0.09619120508432388, 0.08483631908893585, -0.170221060514...
https://github.com/huggingface/datasets/issues/4915
FileNotFoundError while downloading wikipedia dataset for any language
I am struggling with basically the same issue. I am trying to download the German Wikipedia dump. As per the [documentation](https://huggingface.co/datasets/wikipedia), `"20220301.de"` should be available as a pre-processed dataset. Issuing the command mentioned in the documentation cited above from datase...
## Describe the bug Hi, I am currently trying to download wikipedia dataset using load_dataset("wikipedia", language="aa", date="20220401", split="train",beam_runner='DirectRunner'). However, I end up in getting filenotfound error. I get this error for any language I try to download. Environment: ## Step...
175
FileNotFoundError while downloading wikipedia dataset for any language ## Describe the bug Hi, I am currently trying to download wikipedia dataset using load_dataset("wikipedia", language="aa", date="20220401", split="train",beam_runner='DirectRunner'). However, I end up in getting filenotfound error. I get this...
[ -0.22171072661876678, 0.12476305663585663, 0.02336561307311058, 0.48378026485443115, 0.13305407762527466, 0.10554274171590805, 0.20086951553821564, 0.45038512349128723, 0.2548263669013977, 0.011655345559120178, 0.13270814716815948, -0.09619120508432388, 0.08483631908893585, -0.170221060514...
https://github.com/huggingface/datasets/issues/4915
FileNotFoundError while downloading wikipedia dataset for any language
I am able to start downloading the dataset when trying anything with the recent dumps for 20221201. But obviously, those are the big wiki dumps and I need the smaller preloaded version. I am now getting some error when the files show up in my cache but it will say FileNotFoundError at the end of the download for som...
## Describe the bug Hi, I am currently trying to download wikipedia dataset using load_dataset("wikipedia", language="aa", date="20220401", split="train",beam_runner='DirectRunner'). However, I end up in getting filenotfound error. I get this error for any language I try to download. Environment: ## Step...
101
FileNotFoundError while downloading wikipedia dataset for any language ## Describe the bug Hi, I am currently trying to download wikipedia dataset using load_dataset("wikipedia", language="aa", date="20220401", split="train",beam_runner='DirectRunner'). However, I end up in getting filenotfound error. I get this...
[ -0.22171072661876678, 0.12476305663585663, 0.02336561307311058, 0.48378026485443115, 0.13305407762527466, 0.10554274171590805, 0.20086951553821564, 0.45038512349128723, 0.2548263669013977, 0.011655345559120178, 0.13270814716815948, -0.09619120508432388, 0.08483631908893585, -0.170221060514...
https://github.com/huggingface/datasets/issues/4912
datasets map() handles all data at a stroke and takes long time
Hi ! Interesting question ;) > Which is better? Process in map() or in data-collator As you said, both can be used in practice: map() if you want to preprocess before training, or a data-collator (or the equivalent `dataset.set_transform`) if you want to preprocess on-the-fly during training. Both options are gre...
**1. Background** Huggingface datasets package advises using `map()` to process data in batches. In the example code on pretraining masked language model, they use `map()` to tokenize all data at a stroke before the train loop. The corresponding code: ``` with accelerator.main_process_first(): tokenized_...
176
datasets map() handles all data at a stroke and takes long time **1. Background** Huggingface datasets package advises using `map()` to process data in batches. In the example code on pretraining masked language model, they use `map()` to tokenize all data at a stroke before the train loop. The corresponding ...
[ -0.2952665388584137, -0.522647500038147, -0.07783889770507812, 0.04403214901685715, -0.11448338627815247, -0.17057329416275024, 0.3225848972797394, 0.017310161143541336, -0.09668047726154327, 0.11515972018241882, 0.13637949526309967, 0.005903640761971474, -0.05924689769744873, 0.1156558021...
https://github.com/huggingface/datasets/issues/4912
datasets map() handles all data at a stroke and takes long time
Thanks for your clear explanation @lhoestq ! > * if your preprocessing takes too much CPU for example, using a data-collator may slow down your training and your GPUs may not work at full speed > * on the other hand, map() may take a lot of time and disk space to run if your dataset is too big. I really agree wi...
**1. Background** Huggingface datasets package advises using `map()` to process data in batches. In the example code on pretraining masked language model, they use `map()` to tokenize all data at a stroke before the train loop. The corresponding code: ``` with accelerator.main_process_first(): tokenized_...
93
datasets map() handles all data at a stroke and takes long time **1. Background** Huggingface datasets package advises using `map()` to process data in batches. In the example code on pretraining masked language model, they use `map()` to tokenize all data at a stroke before the train loop. The corresponding ...
[ -0.3046501874923706, -0.5273287296295166, -0.08986353129148483, 0.1113094687461853, -0.13578695058822632, -0.0669172927737236, 0.283641517162323, 0.04209790751338005, -0.017623171210289, 0.04323548078536987, 0.06979703903198242, 0.006496783345937729, -0.07888147234916687, 0.087805658578872...
https://github.com/huggingface/datasets/issues/4912
datasets map() handles all data at a stroke and takes long time
@lhoestq How to preprocess on-the-fly during training?my data is about 1w hours, when I use map to preprocess, and It's not finished yet, but all disk space(2T) is full.
**1. Background** Huggingface datasets package advises using `map()` to process data in batches. In the example code on pretraining masked language model, they use `map()` to tokenize all data at a stroke before the train loop. The corresponding code: ``` with accelerator.main_process_first(): tokenized_...
29
datasets map() handles all data at a stroke and takes long time **1. Background** Huggingface datasets package advises using `map()` to process data in batches. In the example code on pretraining masked language model, they use `map()` to tokenize all data at a stroke before the train loop. The corresponding ...
[ -0.28311681747436523, -0.5527422428131104, -0.12373478710651398, 0.09826099127531052, -0.04951656609773636, -0.06586512178182602, 0.23165546357631683, 0.07343322038650513, -0.04355763643980026, 0.10113807767629623, 0.1012248620390892, 0.012302347458899021, -0.09565040469169617, 0.123267807...
https://github.com/huggingface/datasets/issues/4911
[Tests] Ensure `datasets` supports renamed repositories
You could also switch to using `huggingface_hub` more directly, where such a guarantee is already tested =) cc @Wauplin
On https://hf.co/datasets you can rename a dataset (or sometimes move it to another user/org). The website handles redirections correctly and AFAIK `datasets` does as well. However it would be nice to have an integration test to make sure we don't break support for renamed datasets. To implement this we can use t...
19
[Tests] Ensure `datasets` supports renamed repositories On https://hf.co/datasets you can rename a dataset (or sometimes move it to another user/org). The website handles redirections correctly and AFAIK `datasets` does as well. However it would be nice to have an integration test to make sure we don't break suppo...
[ -0.010479379445314407, 0.007558867335319519, -0.09012259542942047, -0.17886166274547577, 0.16744142770767212, 0.038315825164318085, 0.3702643811702728, 0.2152164727449417, 0.20627954602241516, 0.131017804145813, -0.44258925318717957, 0.08228754252195358, 0.2687171995639801, 0.2472064644098...
https://github.com/huggingface/datasets/issues/4910
Identical keywords in build_kwargs and config_kwargs lead to TypeError in load_dataset_builder()
I am getting similar error - `TypeError: type object got multiple values for keyword argument 'name'` while following this [tutorial](https://huggingface.co/docs/datasets/dataset_script#create-a-dataset-loading-script). I am getting this error with the `dataset-cli test` command. `datasets` version: 2.4.0
## Describe the bug In `load_dataset_builder()`, `build_kwargs` and `config_kwargs` can contain the same keywords leading to a TypeError("type object got multiple values for keyword argument "xyz"). I ran into this problem with the keyword: `base_path`. It might happen with other kwargs as well. I think a quickfix...
33
Identical keywords in build_kwargs and config_kwargs lead to TypeError in load_dataset_builder() ## Describe the bug In `load_dataset_builder()`, `build_kwargs` and `config_kwargs` can contain the same keywords leading to a TypeError("type object got multiple values for keyword argument "xyz"). I ran into this p...
[ -0.08519301563501358, -0.14594313502311707, 0.006792660802602768, 0.4719575047492981, 0.27088138461112976, 0.08011270314455032, 0.24027591943740845, 0.1089896708726883, -0.2414916455745697, 0.15479227900505066, -0.09932543337345123, 0.3852587640285492, -0.030969001352787018, 0.242763653397...
https://github.com/huggingface/datasets/issues/4910
Identical keywords in build_kwargs and config_kwargs lead to TypeError in load_dataset_builder()
In my case, this was happening because I defined multiple `BuilderConfig` for multiple types, but didn't had all the data files that are requierd by those configs. I think this is different than the original issue by @bablf .
## Describe the bug In `load_dataset_builder()`, `build_kwargs` and `config_kwargs` can contain the same keywords leading to a TypeError("type object got multiple values for keyword argument "xyz"). I ran into this problem with the keyword: `base_path`. It might happen with other kwargs as well. I think a quickfix...
39
Identical keywords in build_kwargs and config_kwargs lead to TypeError in load_dataset_builder() ## Describe the bug In `load_dataset_builder()`, `build_kwargs` and `config_kwargs` can contain the same keywords leading to a TypeError("type object got multiple values for keyword argument "xyz"). I ran into this p...
[ -0.08519301563501358, -0.14594313502311707, 0.006792660802602768, 0.4719575047492981, 0.27088138461112976, 0.08011270314455032, 0.24027591943740845, 0.1089896708726883, -0.2414916455745697, 0.15479227900505066, -0.09932543337345123, 0.3852587640285492, -0.030969001352787018, 0.242763653397...
https://github.com/huggingface/datasets/issues/4910
Identical keywords in build_kwargs and config_kwargs lead to TypeError in load_dataset_builder()
Hi ! I think this can be fixed by letting the config_kwargs take over the builder kwargs here: https://github.com/huggingface/datasets/blob/7feeb5648a63b6135a8259dedc3b1e19185ee4c7/src/datasets/load.py#L1533-L1534 maybe something like this ? ```python **{**builder_kwargs, **config_kwargs} ``` Let me kno...
## Describe the bug In `load_dataset_builder()`, `build_kwargs` and `config_kwargs` can contain the same keywords leading to a TypeError("type object got multiple values for keyword argument "xyz"). I ran into this problem with the keyword: `base_path`. It might happen with other kwargs as well. I think a quickfix...
101
Identical keywords in build_kwargs and config_kwargs lead to TypeError in load_dataset_builder() ## Describe the bug In `load_dataset_builder()`, `build_kwargs` and `config_kwargs` can contain the same keywords leading to a TypeError("type object got multiple values for keyword argument "xyz"). I ran into this p...
[ -0.08519301563501358, -0.14594313502311707, 0.006792660802602768, 0.4719575047492981, 0.27088138461112976, 0.08011270314455032, 0.24027591943740845, 0.1089896708726883, -0.2414916455745697, 0.15479227900505066, -0.09932543337345123, 0.3852587640285492, -0.030969001352787018, 0.242763653397...
https://github.com/huggingface/datasets/issues/4910
Identical keywords in build_kwargs and config_kwargs lead to TypeError in load_dataset_builder()
Cool thank you ! Let me know if you have questions or if I can help
## Describe the bug In `load_dataset_builder()`, `build_kwargs` and `config_kwargs` can contain the same keywords leading to a TypeError("type object got multiple values for keyword argument "xyz"). I ran into this problem with the keyword: `base_path`. It might happen with other kwargs as well. I think a quickfix...
16
Identical keywords in build_kwargs and config_kwargs lead to TypeError in load_dataset_builder() ## Describe the bug In `load_dataset_builder()`, `build_kwargs` and `config_kwargs` can contain the same keywords leading to a TypeError("type object got multiple values for keyword argument "xyz"). I ran into this p...
[ -0.08519301563501358, -0.14594313502311707, 0.006792660802602768, 0.4719575047492981, 0.27088138461112976, 0.08011270314455032, 0.24027591943740845, 0.1089896708726883, -0.2414916455745697, 0.15479227900505066, -0.09932543337345123, 0.3852587640285492, -0.030969001352787018, 0.242763653397...
https://github.com/huggingface/datasets/issues/4910
Identical keywords in build_kwargs and config_kwargs lead to TypeError in load_dataset_builder()
@lhoestq On second thoughts, I think this might be expected behavior; although a better error message might help. Reasoning: Given n configs, if no data file is provided for any config, then it should be an error. Then why it should not be the case if out of n configs, for some data files are provided but not for ot...
## Describe the bug In `load_dataset_builder()`, `build_kwargs` and `config_kwargs` can contain the same keywords leading to a TypeError("type object got multiple values for keyword argument "xyz"). I ran into this problem with the keyword: `base_path`. It might happen with other kwargs as well. I think a quickfix...
69
Identical keywords in build_kwargs and config_kwargs lead to TypeError in load_dataset_builder() ## Describe the bug In `load_dataset_builder()`, `build_kwargs` and `config_kwargs` can contain the same keywords leading to a TypeError("type object got multiple values for keyword argument "xyz"). I ran into this p...
[ -0.08519301563501358, -0.14594313502311707, 0.006792660802602768, 0.4719575047492981, 0.27088138461112976, 0.08011270314455032, 0.24027591943740845, 0.1089896708726883, -0.2414916455745697, 0.15479227900505066, -0.09932543337345123, 0.3852587640285492, -0.030969001352787018, 0.242763653397...
https://github.com/huggingface/datasets/issues/4910
Identical keywords in build_kwargs and config_kwargs lead to TypeError in load_dataset_builder()
Ok I see - maybe we should check the values of builder_kwargs raise an error if any key in config_kwargs tries to overwrite it ? The builder kwargs are determined from the builder's type and location (in some cases it forces the base_path, data_files and config name for example)
## Describe the bug In `load_dataset_builder()`, `build_kwargs` and `config_kwargs` can contain the same keywords leading to a TypeError("type object got multiple values for keyword argument "xyz"). I ran into this problem with the keyword: `base_path`. It might happen with other kwargs as well. I think a quickfix...
49
Identical keywords in build_kwargs and config_kwargs lead to TypeError in load_dataset_builder() ## Describe the bug In `load_dataset_builder()`, `build_kwargs` and `config_kwargs` can contain the same keywords leading to a TypeError("type object got multiple values for keyword argument "xyz"). I ran into this p...
[ -0.08519301563501358, -0.14594313502311707, 0.006792660802602768, 0.4719575047492981, 0.27088138461112976, 0.08011270314455032, 0.24027591943740845, 0.1089896708726883, -0.2414916455745697, 0.15479227900505066, -0.09932543337345123, 0.3852587640285492, -0.030969001352787018, 0.242763653397...
https://github.com/huggingface/datasets/issues/4907
None Type error for swda datasets
Thanks for reporting @hannan72 ! I couldn't reproduce the error on my side, can you share the full stack trace please ?
## Describe the bug I got `'NoneType' object is not callable` error while calling the swda datasets. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("swda") ``` ## Expected results Run without error ## Environment info <!-- You can run the command `datase...
22
None Type error for swda datasets ## Describe the bug I got `'NoneType' object is not callable` error while calling the swda datasets. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("swda") ``` ## Expected results Run without error ## Environment info ...
[ -0.08841851353645325, -0.33844897150993347, -0.023160098120570183, 0.3386499285697937, 0.5491559505462646, -0.04582618921995163, 0.3424973785877228, 0.08639145642518997, 0.1629427671432495, 0.2257208675146103, 0.012357985600829124, 0.2270767092704773, -0.10950137674808502, 0.16010768711566...
https://github.com/huggingface/datasets/issues/4907
None Type error for swda datasets
Thanks a lot for your response @lhoestq The problem is solved accidentally today and I don't know exactly why it was happened yesterday. The issue can be closed.
## Describe the bug I got `'NoneType' object is not callable` error while calling the swda datasets. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("swda") ``` ## Expected results Run without error ## Environment info <!-- You can run the command `datase...
28
None Type error for swda datasets ## Describe the bug I got `'NoneType' object is not callable` error while calling the swda datasets. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("swda") ``` ## Expected results Run without error ## Environment info ...
[ -0.17806191742420197, -0.34598565101623535, -0.07972870767116547, 0.2565613389015198, 0.5517394542694092, -0.14056116342544556, 0.3678429424762726, 0.17458580434322357, 0.11615718901157379, 0.33144330978393555, -0.05972087383270264, 0.2500876188278198, -0.07787412405014038, 0.1619029641151...
https://github.com/huggingface/datasets/issues/4906
Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import)
Thanks for reporting, @OPterminator. However, we are not able to reproduce this issue. There might be 2 reasons why you get this exception: - Either the name of your local Python file: if it is called `datasets.py` this could generate a circular import when trying to import the Hugging Face `datasets` library. ...
## Describe the bug A clear and concise description of what the bug is. Not able to import datasets ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import os os.environ["WANDB_API_KEY"] = "0" ## to silence warning import numpy as np import random import sklearn import matplotlib.p...
125
Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import) ## Describe the bug A clear and concise description of what the bug is. Not able to import datasets ## Steps to reproduce the bug ```python # Sample code to reproduce the...
[ -0.2775006592273712, -0.24207346141338348, -0.04461362957954407, 0.1706514060497284, 0.2661904990673065, 0.058018989861011505, 0.20556212961673737, 0.17970316112041473, -0.059139739722013474, -0.042035624384880066, -0.08086638152599335, 0.35249266028404236, -0.3115460276603699, 0.084792025...
https://github.com/huggingface/datasets/issues/4906
Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import)
i am also facing this issue ``` ----> 1 import datasets 3 dataset = datasets.load_dataset("ucberkeley-dlab/measuring-hate-speech", "binary") 4 df = dataset["train"].to_pandas() File ~/.pyenv/versions/3.10.9/lib/python3.10/site-packages/datasets/__init__.py:52 50 from .fingerprint import dis...
## Describe the bug A clear and concise description of what the bug is. Not able to import datasets ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import os os.environ["WANDB_API_KEY"] = "0" ## to silence warning import numpy as np import random import sklearn import matplotlib.p...
95
Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import) ## Describe the bug A clear and concise description of what the bug is. Not able to import datasets ## Steps to reproduce the bug ```python # Sample code to reproduce the...
[ -0.2775006592273712, -0.24207346141338348, -0.04461362957954407, 0.1706514060497284, 0.2661904990673065, 0.058018989861011505, 0.20556212961673737, 0.17970316112041473, -0.059139739722013474, -0.042035624384880066, -0.08086638152599335, 0.35249266028404236, -0.3115460276603699, 0.084792025...
https://github.com/huggingface/datasets/issues/4906
Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import)
I am facing the same question. And this happens when i installing `evaluate` package while `jupyter notebook` running. I'm not sure if the error occured because of trying to import the package installed when the notebook is running. Surpringly when i stop the notebook and rerun, the issue has been solved itself. Hope ...
## Describe the bug A clear and concise description of what the bug is. Not able to import datasets ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import os os.environ["WANDB_API_KEY"] = "0" ## to silence warning import numpy as np import random import sklearn import matplotlib.p...
59
Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import) ## Describe the bug A clear and concise description of what the bug is. Not able to import datasets ## Steps to reproduce the bug ```python # Sample code to reproduce the...
[ -0.2775006592273712, -0.24207346141338348, -0.04461362957954407, 0.1706514060497284, 0.2661904990673065, 0.058018989861011505, 0.20556212961673737, 0.17970316112041473, -0.059139739722013474, -0.042035624384880066, -0.08086638152599335, 0.35249266028404236, -0.3115460276603699, 0.084792025...
https://github.com/huggingface/datasets/issues/4906
Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import)
I also got this error. It helped me to find the python process and kill it, then restart the kernel and the error disappeared.
## Describe the bug A clear and concise description of what the bug is. Not able to import datasets ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import os os.environ["WANDB_API_KEY"] = "0" ## to silence warning import numpy as np import random import sklearn import matplotlib.p...
24
Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import) ## Describe the bug A clear and concise description of what the bug is. Not able to import datasets ## Steps to reproduce the bug ```python # Sample code to reproduce the...
[ -0.2775006592273712, -0.24207346141338348, -0.04461362957954407, 0.1706514060497284, 0.2661904990673065, 0.058018989861011505, 0.20556212961673737, 0.17970316112041473, -0.059139739722013474, -0.042035624384880066, -0.08086638152599335, 0.35249266028404236, -0.3115460276603699, 0.084792025...
https://github.com/huggingface/datasets/issues/4906
Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import)
> I also got this error. It helped me to find the python process and kill it, then restart the kernel and the error disappeared. Yes!
## Describe the bug A clear and concise description of what the bug is. Not able to import datasets ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import os os.environ["WANDB_API_KEY"] = "0" ## to silence warning import numpy as np import random import sklearn import matplotlib.p...
26
Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import) ## Describe the bug A clear and concise description of what the bug is. Not able to import datasets ## Steps to reproduce the bug ```python # Sample code to reproduce the...
[ -0.2775006592273712, -0.24207346141338348, -0.04461362957954407, 0.1706514060497284, 0.2661904990673065, 0.058018989861011505, 0.20556212961673737, 0.17970316112041473, -0.059139739722013474, -0.042035624384880066, -0.08086638152599335, 0.35249266028404236, -0.3115460276603699, 0.084792025...
https://github.com/huggingface/datasets/issues/4906
Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import)
> I am facing the same question. And this happens when i installing `evaluate` package while `jupyter notebook` running. I'm not sure if the error occured because of trying to import the package installed when the notebook is running. Surpringly when i stop the notebook and rerun, the issue has been solved itself. Hope...
## Describe the bug A clear and concise description of what the bug is. Not able to import datasets ## Steps to reproduce the bug ```python # Sample code to reproduce the bug import os os.environ["WANDB_API_KEY"] = "0" ## to silence warning import numpy as np import random import sklearn import matplotlib.p...
63
Can't import datasets AttributeError: partially initialized module 'datasets' has no attribute 'utils' (most likely due to a circular import) ## Describe the bug A clear and concise description of what the bug is. Not able to import datasets ## Steps to reproduce the bug ```python # Sample code to reproduce the...
[ -0.2775006592273712, -0.24207346141338348, -0.04461362957954407, 0.1706514060497284, 0.2661904990673065, 0.058018989861011505, 0.20556212961673737, 0.17970316112041473, -0.059139739722013474, -0.042035624384880066, -0.08086638152599335, 0.35249266028404236, -0.3115460276603699, 0.084792025...
https://github.com/huggingface/datasets/issues/4900
Dataset Viewer issue for asaxena1990/Dummy_dataset
Seems to be linked to the use of the undocumented `_resolve_features` method in the dataset viewer backend: ``` >>> from datasets import load_dataset >>> dataset = load_dataset("asaxena1990/Dummy_dataset", name="asaxena1990--Dummy_dataset", split="train", streaming=True) Using custom data configuration asaxena199...
### Link _No response_ ### Description _No response_ ### Owner _No response_
214
Dataset Viewer issue for asaxena1990/Dummy_dataset ### Link _No response_ ### Description _No response_ ### Owner _No response_ Seems to be linked to the use of the undocumented `_resolve_features` method in the dataset viewer backend: ``` >>> from datasets import load_dataset >>> dataset = load_dataset("...
[ -0.20269231498241425, 0.26051169633865356, -0.055382952094078064, 0.044126130640506744, 0.4276179075241089, 0.021940745413303375, 0.4294307231903076, 0.4869363605976105, -0.11032232642173767, 0.08851145207881927, 0.030759239569306374, 0.7051367163658142, 0.06559456884860992, 0.208292648196...
https://github.com/huggingface/datasets/issues/4900
Dataset Viewer issue for asaxena1990/Dummy_dataset
Hi ! JSON files containing a list of object are not supported yet, you can use JSON Lines files instead in the meantime ```json {"text": "can I know this?", "intent": "Know", "type": "Test"} {"text": "can I know this?", "intent": "Know", "type": "Test"} ... ```
### Link _No response_ ### Description _No response_ ### Owner _No response_
44
Dataset Viewer issue for asaxena1990/Dummy_dataset ### Link _No response_ ### Description _No response_ ### Owner _No response_ Hi ! JSON files containing a list of object are not supported yet, you can use JSON Lines files instead in the meantime ```json {"text": "can I know this?", "intent": "Know", "type"...
[ -0.3857173025608063, 0.09111353754997253, -0.12313087284564972, 0.23911698162555695, 0.2645220160484314, 0.02568017691373825, 0.29560837149620056, 0.4872158467769623, 0.34922051429748535, 0.20957031846046448, -0.20694251358509064, 0.3939044177532196, -0.019562408328056335, 0.21512037515640...
https://github.com/huggingface/datasets/issues/4898
Dataset Viewer issue for timit_asr
Yes, the dataset viewer is based on `datasets`, and the following does not work: ``` >>> from datasets import get_dataset_split_names >>> get_dataset_split_names('timit_asr') Downloading builder script: 7.48kB [00:00, 6.69MB/s] Traceback (most recent call last): File "/home/slesage/hf/datasets-server/services...
### Link _No response_ ### Description _No response_ ### Owner _No response_
136
Dataset Viewer issue for timit_asr ### Link _No response_ ### Description _No response_ ### Owner _No response_ Yes, the dataset viewer is based on `datasets`, and the following does not work: ``` >>> from datasets import get_dataset_split_names >>> get_dataset_split_names('timit_asr') Downloading builde...
[ -0.4638701379299164, -0.00477243959903717, -0.026129458099603653, 0.3046242296695709, 0.4482001066207886, -0.020980902016162872, 0.246046781539917, 0.37231379747390747, -0.5133568644523621, 0.14389927685260773, -0.07815973460674286, 0.33165472745895386, -0.48170360922813416, 0.363270848989...
https://github.com/huggingface/datasets/issues/4898
Dataset Viewer issue for timit_asr
Due to license restriction, this dataset needs manual downloading of the original data. This information is in the dataset card: https://huggingface.co/datasets/timit_asr > The dataset needs to be downloaded manually from https://catalog.ldc.upenn.edu/LDC93S1
### Link _No response_ ### Description _No response_ ### Owner _No response_
31
Dataset Viewer issue for timit_asr ### Link _No response_ ### Description _No response_ ### Owner _No response_ Due to license restriction, this dataset needs manual downloading of the original data. This information is in the dataset card: https://huggingface.co/datasets/timit_asr > The dataset needs to b...
[ -0.48284536600112915, -0.3338775038719177, -0.10713218152523041, 0.2479642778635025, 0.12183617055416107, 0.03672032058238983, 0.12027832120656967, 0.25015440583229065, -0.39043331146240234, 0.17018502950668335, -0.23189178109169006, 0.3474963307380676, -0.19933469593524933, 0.409912347793...
https://github.com/huggingface/datasets/issues/4898
Dataset Viewer issue for timit_asr
Maybe a better error message for datasets that need manual downloading? @severo Maybe we can raise a specific excpetion as done from `load_dataset`...
### Link _No response_ ### Description _No response_ ### Owner _No response_
23
Dataset Viewer issue for timit_asr ### Link _No response_ ### Description _No response_ ### Owner _No response_ Maybe a better error message for datasets that need manual downloading? @severo Maybe we can raise a specific excpetion as done from `load_dataset`...
[ -0.4799196422100067, -0.19095495343208313, -0.08812350034713745, 0.1269700825214386, 0.31942564249038696, -0.0033424273133277893, 0.14519187808036804, 0.2044476866722107, -0.12543538212776184, 0.13900750875473022, -0.10956619679927826, 0.24690403044223785, -0.260699987411499, 0.27517551183...
https://github.com/huggingface/datasets/issues/4898
Dataset Viewer issue for timit_asr
The preview is now disabled (and a descriptive warning is displayed) for datasets requiring manual download. See: ![timit_asr-manual-download](https://user-images.githubusercontent.com/8515462/193578572-3d21b790-f848-4257-9e9b-7cab3d76a269.png)
### Link _No response_ ### Description _No response_ ### Owner _No response_
18
Dataset Viewer issue for timit_asr ### Link _No response_ ### Description _No response_ ### Owner _No response_ The preview is now disabled (and a descriptive warning is displayed) for datasets requiring manual download. See: ![timit_asr-manual-download](https://user-images.githubusercontent.com/8515462/193...
[ -0.5423986911773682, -0.17824333906173706, -0.10382427275180817, 0.050804805010557175, 0.21838106215000153, 0.027927368879318237, 0.19199340045452118, 0.33082520961761475, -0.33997681736946106, 0.19646304845809937, -0.27264806628227234, 0.22909538447856903, -0.24326322972774506, 0.18418028...
https://github.com/huggingface/datasets/issues/4897
datasets generate large arrow file
Hi ! The cache files are the results of all the transforms you applied to the dataset using `map` for example. Did you run a transform that could potentially blow up the size of the dataset ?
Checking the large file in disk, and found the large cache file in the cifar10 data directory: ![image](https://user-images.githubusercontent.com/18533904/186830449-ba96cdeb-0fe8-4543-994d-2abe7145933f.png) As we know, the size of cifar10 dataset is ~130MB, but the cache file has almost 30GB size, there may be so...
37
datasets generate large arrow file Checking the large file in disk, and found the large cache file in the cifar10 data directory: ![image](https://user-images.githubusercontent.com/18533904/186830449-ba96cdeb-0fe8-4543-994d-2abe7145933f.png) As we know, the size of cifar10 dataset is ~130MB, but the cache file ...
[ -0.4616396725177765, -0.2394554316997528, -0.17766296863555908, 0.45532381534576416, 0.15048417448997498, 0.020401746034622192, 0.03904127702116966, 0.25771966576576233, 0.08392596244812012, 0.13997727632522583, -0.16053983569145203, 0.10484838485717773, -0.001942112110555172, 0.0232724081...
https://github.com/huggingface/datasets/issues/4897
datasets generate large arrow file
@lhoestq, I don't remember, but I can't imagine what kind of transform may generate data that grow over 200 times in size. I think maybe it doesn' matter, it's just cache after all.
Checking the large file in disk, and found the large cache file in the cifar10 data directory: ![image](https://user-images.githubusercontent.com/18533904/186830449-ba96cdeb-0fe8-4543-994d-2abe7145933f.png) As we know, the size of cifar10 dataset is ~130MB, but the cache file has almost 30GB size, there may be so...
33
datasets generate large arrow file Checking the large file in disk, and found the large cache file in the cifar10 data directory: ![image](https://user-images.githubusercontent.com/18533904/186830449-ba96cdeb-0fe8-4543-994d-2abe7145933f.png) As we know, the size of cifar10 dataset is ~130MB, but the cache file ...
[ -0.34047555923461914, -0.24572636187076569, -0.1616014689207077, 0.4434879422187805, 0.0819568857550621, -0.09782885760068893, 0.11157429218292236, 0.2064029574394226, 0.05085295811295509, 0.08592820167541504, -0.07221105694770813, 0.07038772851228714, 0.00771119212731719, 0.08533079177141...
https://github.com/huggingface/datasets/issues/4895
load_dataset method returns Unknown split "validation" even if this dir exists
I don't know the main problem but it looks like, it is ignoring the last directory in your case. So, create a directory called 'zzz' in the same folder as train, validation and test. if it doesn't work, create a directory called "aaa". It worked for me.
## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-directory exists in the local data path. The data directories are as follows and a...
47
load_dataset method returns Unknown split "validation" even if this dir exists ## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-dire...
[ -0.05173032358288765, 0.036226674914360046, -0.039877623319625854, 0.6336588263511658, 0.11677103489637375, 0.21259906888008118, 0.5250093340873718, 0.3904186487197876, 0.010430566966533661, 0.05747022107243538, -0.21614046394824982, 0.34347644448280334, -0.15186502039432526, 0.01707734353...
https://github.com/huggingface/datasets/issues/4895
load_dataset method returns Unknown split "validation" even if this dir exists
@SamSamhuns could you please try to load it with the current main-branch version of `datasets`? I suppose the problem is that it tries to get splits names from filenames in this case, ignoring directories names, but `val` wasn't in keywords at that time, but it was fixed recently in this PR https://github.com/hugging...
## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-directory exists in the local data path. The data directories are as follows and a...
52
load_dataset method returns Unknown split "validation" even if this dir exists ## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-dire...
[ -0.05173032358288765, 0.036226674914360046, -0.039877623319625854, 0.6336588263511658, 0.11677103489637375, 0.21259906888008118, 0.5250093340873718, 0.3904186487197876, 0.010430566966533661, 0.05747022107243538, -0.21614046394824982, 0.34347644448280334, -0.15186502039432526, 0.01707734353...
https://github.com/huggingface/datasets/issues/4895
load_dataset method returns Unknown split "validation" even if this dir exists
I have a similar problem. When I try to create `data_infos.json` using `datasets-cli test Peter.py --save_infos --all_configs` I get an error: `ValueError: Unknown split "test". Should be one of ['train'].` The `data_infos.json` is created perfectly fine when I use only one split - `datasets.Split.TRAIN` @polin...
## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-directory exists in the local data path. The data directories are as follows and a...
59
load_dataset method returns Unknown split "validation" even if this dir exists ## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-dire...
[ -0.05173032358288765, 0.036226674914360046, -0.039877623319625854, 0.6336588263511658, 0.11677103489637375, 0.21259906888008118, 0.5250093340873718, 0.3904186487197876, 0.010430566966533661, 0.05747022107243538, -0.21614046394824982, 0.34347644448280334, -0.15186502039432526, 0.01707734353...
https://github.com/huggingface/datasets/issues/4895
load_dataset method returns Unknown split "validation" even if this dir exists
@skalinin It seems the `dataset_infos.json` of your dataset is missing the info on the test split (and `datasets-cli` doesn't ignore the cached infos at the moment, which is a known bug), so your issue is not related to this one. I think you can fix your issue by deleting all the cached `dataset_infos.json` (in the loc...
## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-directory exists in the local data path. The data directories are as follows and a...
81
load_dataset method returns Unknown split "validation" even if this dir exists ## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-dire...
[ -0.05173032358288765, 0.036226674914360046, -0.039877623319625854, 0.6336588263511658, 0.11677103489637375, 0.21259906888008118, 0.5250093340873718, 0.3904186487197876, 0.010430566966533661, 0.05747022107243538, -0.21614046394824982, 0.34347644448280334, -0.15186502039432526, 0.01707734353...
https://github.com/huggingface/datasets/issues/4895
load_dataset method returns Unknown split "validation" even if this dir exists
This code indeed behaves as expected on `main`. But suppose the `val_234.png` is renamed to some other value not containing one of [these](https://github.com/huggingface/datasets/blob/38c8c725f3996ff1ff03f6fd461aa6d645321034/src/datasets/data_files.py#L31) keywords, in that case, this issue becomes relevant again becau...
## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-directory exists in the local data path. The data directories are as follows and a...
127
load_dataset method returns Unknown split "validation" even if this dir exists ## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-dire...
[ -0.05173032358288765, 0.036226674914360046, -0.039877623319625854, 0.6336588263511658, 0.11677103489637375, 0.21259906888008118, 0.5250093340873718, 0.3904186487197876, 0.010430566966533661, 0.05747022107243538, -0.21614046394824982, 0.34347644448280334, -0.15186502039432526, 0.01707734353...
https://github.com/huggingface/datasets/issues/4895
load_dataset method returns Unknown split "validation" even if this dir exists
> @polinaeterna @lhoestq Perhaps one way to fix this would be to swap the [order](https://github.com/huggingface/datasets/blob/38c8c725f3996ff1ff03f6fd461aa6d645321034/src/datasets/data_files.py#L78-L79) of the patterns if data_dir is specified (or if load_dataset(data_dir) is called)? yes that makes sense !
## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-directory exists in the local data path. The data directories are as follows and a...
32
load_dataset method returns Unknown split "validation" even if this dir exists ## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-dire...
[ -0.05173032358288765, 0.036226674914360046, -0.039877623319625854, 0.6336588263511658, 0.11677103489637375, 0.21259906888008118, 0.5250093340873718, 0.3904186487197876, 0.010430566966533661, 0.05747022107243538, -0.21614046394824982, 0.34347644448280334, -0.15186502039432526, 0.01707734353...
https://github.com/huggingface/datasets/issues/4895
load_dataset method returns Unknown split "validation" even if this dir exists
Looks like the `val/validation` dir name issue is fixed with the current main-branch version of the `datasets` repository. > @polinaeterna @lhoestq Perhaps one way to fix this would be to swap the [order](https://github.com/huggingface/datasets/blob/38c8c725f3996ff1ff03f6fd461aa6d645321034/src/datasets/data_files.p...
## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-directory exists in the local data path. The data directories are as follows and a...
84
load_dataset method returns Unknown split "validation" even if this dir exists ## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-dire...
[ -0.05173032358288765, 0.036226674914360046, -0.039877623319625854, 0.6336588263511658, 0.11677103489637375, 0.21259906888008118, 0.5250093340873718, 0.3904186487197876, 0.010430566966533661, 0.05747022107243538, -0.21614046394824982, 0.34347644448280334, -0.15186502039432526, 0.01707734353...
https://github.com/huggingface/datasets/issues/4895
load_dataset method returns Unknown split "validation" even if this dir exists
> @polinaeterna @lhoestq Perhaps one way to fix this would be to swap the [order](https://github.com/huggingface/datasets/blob/38c8c725f3996ff1ff03f6fd461aa6d645321034/src/datasets/data_files.py#L78-L79) of the patterns if data_dir is specified (or if load_dataset(data_dir) is called)? Sounds good to me! opened a PR...
## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-directory exists in the local data path. The data directories are as follows and a...
35
load_dataset method returns Unknown split "validation" even if this dir exists ## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-dire...
[ -0.05173032358288765, 0.036226674914360046, -0.039877623319625854, 0.6336588263511658, 0.11677103489637375, 0.21259906888008118, 0.5250093340873718, 0.3904186487197876, 0.010430566966533661, 0.05747022107243538, -0.21614046394824982, 0.34347644448280334, -0.15186502039432526, 0.01707734353...
https://github.com/huggingface/datasets/issues/4895
load_dataset method returns Unknown split "validation" even if this dir exists
Hi there @polinaeterna @mariosasko ! I have installed 5.2.3.dev0, which should have this fix. Unfortunately, I am still getting the error: `ValueError: Unknown split "validation". Should be one of ['train'].` When I call `load_dataset("csv", data_files=files, split=split)` Any help would be greatly appreciated!
## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-directory exists in the local data path. The data directories are as follows and a...
42
load_dataset method returns Unknown split "validation" even if this dir exists ## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-dire...
[ -0.05173032358288765, 0.036226674914360046, -0.039877623319625854, 0.6336588263511658, 0.11677103489637375, 0.21259906888008118, 0.5250093340873718, 0.3904186487197876, 0.010430566966533661, 0.05747022107243538, -0.21614046394824982, 0.34347644448280334, -0.15186502039432526, 0.01707734353...
https://github.com/huggingface/datasets/issues/4895
load_dataset method returns Unknown split "validation" even if this dir exists
Hi there @polinaeterna . My local CSV files are stored as follows: binding: ---------- tune.csv ---------- public_data: --------------------------- train.csv `self.list_shards(split)` sucessfully finds the relevant data files
## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-directory exists in the local data path. The data directories are as follows and a...
26
load_dataset method returns Unknown split "validation" even if this dir exists ## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-dire...
[ -0.05173032358288765, 0.036226674914360046, -0.039877623319625854, 0.6336588263511658, 0.11677103489637375, 0.21259906888008118, 0.5250093340873718, 0.3904186487197876, 0.010430566966533661, 0.05747022107243538, -0.21614046394824982, 0.34347644448280334, -0.15186502039432526, 0.01707734353...
https://github.com/huggingface/datasets/issues/4895
load_dataset method returns Unknown split "validation" even if this dir exists
@shaneacton do you have `validation.csv`/`val.csv`/`valid.csv`/`dev.csv` file in your data folder? I can't find it in the structure you provided
## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-directory exists in the local data path. The data directories are as follows and a...
19
load_dataset method returns Unknown split "validation" even if this dir exists ## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-dire...
[ -0.05173032358288765, 0.036226674914360046, -0.039877623319625854, 0.6336588263511658, 0.11677103489637375, 0.21259906888008118, 0.5250093340873718, 0.3904186487197876, 0.010430566966533661, 0.05747022107243538, -0.21614046394824982, 0.34347644448280334, -0.15186502039432526, 0.01707734353...
https://github.com/huggingface/datasets/issues/4895
load_dataset method returns Unknown split "validation" even if this dir exists
@polinaeterna no, does the name of the split need to match the name of the file exactly? But my train file is not actually named 'train.py' its called 'XXXXXXXXX_train_XXXXXXXX.csv' And the code works fine for train, but fails for validation. Does the file name need to _contain_ the split name?
## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-directory exists in the local data path. The data directories are as follows and a...
50
load_dataset method returns Unknown split "validation" even if this dir exists ## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-dire...
[ -0.05173032358288765, 0.036226674914360046, -0.039877623319625854, 0.6336588263511658, 0.11677103489637375, 0.21259906888008118, 0.5250093340873718, 0.3904186487197876, 0.010430566966533661, 0.05747022107243538, -0.21614046394824982, 0.34347644448280334, -0.15186502039432526, 0.01707734353...
https://github.com/huggingface/datasets/issues/4895
load_dataset method returns Unknown split "validation" even if this dir exists
@shaneacton what files do you expect to be included in "validation" split? yes, you should somehow indicate that a file belongs to a certain split - either by including split name in a filename or by putting it into a folder with split name, you can also check out [this documentation page](https://huggingface.co/docs/d...
## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-directory exists in the local data path. The data directories are as follows and a...
64
load_dataset method returns Unknown split "validation" even if this dir exists ## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-dire...
[ -0.05173032358288765, 0.036226674914360046, -0.039877623319625854, 0.6336588263511658, 0.11677103489637375, 0.21259906888008118, 0.5250093340873718, 0.3904186487197876, 0.010430566966533661, 0.05747022107243538, -0.21614046394824982, 0.34347644448280334, -0.15186502039432526, 0.01707734353...
https://github.com/huggingface/datasets/issues/4895
load_dataset method returns Unknown split "validation" even if this dir exists
@polinaeterna I have specified my train/test/tune files via the `split_to_filepattern` argument when initialising my `FileDataSource` class. This is how `list_shards` is able to find the right files. After your last message, I have tried renaminig my data files to simply `train.csv` and `validation.csv`, however I am...
## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-directory exists in the local data path. The data directories are as follows and a...
59
load_dataset method returns Unknown split "validation" even if this dir exists ## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-dire...
[ -0.05173032358288765, 0.036226674914360046, -0.039877623319625854, 0.6336588263511658, 0.11677103489637375, 0.21259906888008118, 0.5250093340873718, 0.3904186487197876, 0.010430566966533661, 0.05747022107243538, -0.21614046394824982, 0.34347644448280334, -0.15186502039432526, 0.01707734353...
https://github.com/huggingface/datasets/issues/4895
load_dataset method returns Unknown split "validation" even if this dir exists
For me it resolved by adding the verification_mode param: ``` imdb_ds = load_dataset( "imdb", verification_mode="no_checks" ) imdb_ds ```
## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-directory exists in the local data path. The data directories are as follows and a...
18
load_dataset method returns Unknown split "validation" even if this dir exists ## Describe the bug The `datasets.load_dataset` returns a `ValueError: Unknown split "validation". Should be one of ['train', 'test'].` when running `load_dataset(local_data_dir_path, split="validation")` even if the `validation` sub-dire...
[ -0.05173032358288765, 0.036226674914360046, -0.039877623319625854, 0.6336588263511658, 0.11677103489637375, 0.21259906888008118, 0.5250093340873718, 0.3904186487197876, 0.010430566966533661, 0.05747022107243538, -0.21614046394824982, 0.34347644448280334, -0.15186502039432526, 0.01707734353...
https://github.com/huggingface/datasets/issues/4893
Oversampling strategy for iterable datasets in `interleave_datasets`
Hi @lhoestq, I plunged into the code and it should be manageable for me to work on it! #take Also, setting `d1`, `d2` and `d3` as you did raised a `SyntaxError: 'yield' inside list comprehension` for me, on Python 3.8.10. The following snippet works for me though: ``` d1 = IterableDataset(ExamplesIterable((lamb...
In https://github.com/huggingface/datasets/pull/4831 @ylacombe added an oversampling strategy for `interleave_datasets`. However right now it doesn't work for datasets loaded using `load_dataset(..., streaming=True)`, which are `IterableDataset` objects. It would be nice to expand `interleave_datasets` for iterable ...
97
Oversampling strategy for iterable datasets in `interleave_datasets` In https://github.com/huggingface/datasets/pull/4831 @ylacombe added an oversampling strategy for `interleave_datasets`. However right now it doesn't work for datasets loaded using `load_dataset(..., streaming=True)`, which are `IterableDataset` obj...
[ -0.4228614270687103, -0.19995376467704773, -0.06890371441841125, -0.19114218652248383, 0.19798752665519714, 0.018049202859401703, 0.23852773010730743, 0.025174468755722046, -0.017834683880209923, 0.05424167215824127, -0.3786226511001587, 0.2754654288291931, -0.1617426872253418, 0.279597342...
https://github.com/huggingface/datasets/issues/4893
Oversampling strategy for iterable datasets in `interleave_datasets`
Hi @ylacombe :) Is there anything I can do to help ? Feel free to ping me if you have any question :)
In https://github.com/huggingface/datasets/pull/4831 @ylacombe added an oversampling strategy for `interleave_datasets`. However right now it doesn't work for datasets loaded using `load_dataset(..., streaming=True)`, which are `IterableDataset` objects. It would be nice to expand `interleave_datasets` for iterable ...
23
Oversampling strategy for iterable datasets in `interleave_datasets` In https://github.com/huggingface/datasets/pull/4831 @ylacombe added an oversampling strategy for `interleave_datasets`. However right now it doesn't work for datasets loaded using `load_dataset(..., streaming=True)`, which are `IterableDataset` obj...
[ -0.4228614270687103, -0.19995376467704773, -0.06890371441841125, -0.19114218652248383, 0.19798752665519714, 0.018049202859401703, 0.23852773010730743, 0.025174468755722046, -0.017834683880209923, 0.05424167215824127, -0.3786226511001587, 0.2754654288291931, -0.1617426872253418, 0.279597342...
https://github.com/huggingface/datasets/issues/4893
Oversampling strategy for iterable datasets in `interleave_datasets`
Hi @lhoestq, I actually have already wrote the code last time [on this commit](https://github.com/ylacombe/datasets/commit/84769db97facc78a33ec53f7b1b395951e1804df) but I still have to change the docs and write some tests though. I'm working on it. However, I still your advice on one matter. In #4831, when usin...
In https://github.com/huggingface/datasets/pull/4831 @ylacombe added an oversampling strategy for `interleave_datasets`. However right now it doesn't work for datasets loaded using `load_dataset(..., streaming=True)`, which are `IterableDataset` objects. It would be nice to expand `interleave_datasets` for iterable ...
314
Oversampling strategy for iterable datasets in `interleave_datasets` In https://github.com/huggingface/datasets/pull/4831 @ylacombe added an oversampling strategy for `interleave_datasets`. However right now it doesn't work for datasets loaded using `load_dataset(..., streaming=True)`, which are `IterableDataset` obj...
[ -0.4228614270687103, -0.19995376467704773, -0.06890371441841125, -0.19114218652248383, 0.19798752665519714, 0.018049202859401703, 0.23852773010730743, 0.025174468755722046, -0.017834683880209923, 0.05424167215824127, -0.3786226511001587, 0.2754654288291931, -0.1617426872253418, 0.279597342...
https://github.com/huggingface/datasets/issues/4893
Oversampling strategy for iterable datasets in `interleave_datasets`
Hi ! Awesome :) Maybe you can pre-load the next sample to know if the dataset is empty or not ? This way it should be possible to have the same behavior for `IterableDataset`
In https://github.com/huggingface/datasets/pull/4831 @ylacombe added an oversampling strategy for `interleave_datasets`. However right now it doesn't work for datasets loaded using `load_dataset(..., streaming=True)`, which are `IterableDataset` objects. It would be nice to expand `interleave_datasets` for iterable ...
34
Oversampling strategy for iterable datasets in `interleave_datasets` In https://github.com/huggingface/datasets/pull/4831 @ylacombe added an oversampling strategy for `interleave_datasets`. However right now it doesn't work for datasets loaded using `load_dataset(..., streaming=True)`, which are `IterableDataset` obj...
[ -0.4228614270687103, -0.19995376467704773, -0.06890371441841125, -0.19114218652248383, 0.19798752665519714, 0.018049202859401703, 0.23852773010730743, 0.025174468755722046, -0.017834683880209923, 0.05424167215824127, -0.3786226511001587, 0.2754654288291931, -0.1617426872253418, 0.279597342...
https://github.com/huggingface/datasets/issues/4893
Oversampling strategy for iterable datasets in `interleave_datasets`
Hi @lhoestq, I've finally made some advances in the matter. I've modified the `IterableDataset` behavior so that it aligns with the `Dataset` behavior as we have discussed. The documentation has been dealt with too. It works as expected on my examples. However I'm having trouble figuring out how to test `interleave_d...
In https://github.com/huggingface/datasets/pull/4831 @ylacombe added an oversampling strategy for `interleave_datasets`. However right now it doesn't work for datasets loaded using `load_dataset(..., streaming=True)`, which are `IterableDataset` objects. It would be nice to expand `interleave_datasets` for iterable ...
71
Oversampling strategy for iterable datasets in `interleave_datasets` In https://github.com/huggingface/datasets/pull/4831 @ylacombe added an oversampling strategy for `interleave_datasets`. However right now it doesn't work for datasets loaded using `load_dataset(..., streaming=True)`, which are `IterableDataset` obj...
[ -0.4228614270687103, -0.19995376467704773, -0.06890371441841125, -0.19114218652248383, 0.19798752665519714, 0.018049202859401703, 0.23852773010730743, 0.025174468755722046, -0.017834683880209923, 0.05424167215824127, -0.3786226511001587, 0.2754654288291931, -0.1617426872253418, 0.279597342...
https://github.com/huggingface/datasets/issues/4893
Oversampling strategy for iterable datasets in `interleave_datasets`
Thanks @ylacombe :) Using the `pytest` command, you can run all the functions in a python file that start with "test_*" and make sure they return not errors: ``` pytest tests/test_iterable_dataset.py ``` In our case it can be nice to define a `test_interleave_datasets_with_oversampling` function. This function...
In https://github.com/huggingface/datasets/pull/4831 @ylacombe added an oversampling strategy for `interleave_datasets`. However right now it doesn't work for datasets loaded using `load_dataset(..., streaming=True)`, which are `IterableDataset` objects. It would be nice to expand `interleave_datasets` for iterable ...
66
Oversampling strategy for iterable datasets in `interleave_datasets` In https://github.com/huggingface/datasets/pull/4831 @ylacombe added an oversampling strategy for `interleave_datasets`. However right now it doesn't work for datasets loaded using `load_dataset(..., streaming=True)`, which are `IterableDataset` obj...
[ -0.4228614270687103, -0.19995376467704773, -0.06890371441841125, -0.19114218652248383, 0.19798752665519714, 0.018049202859401703, 0.23852773010730743, 0.025174468755722046, -0.017834683880209923, 0.05424167215824127, -0.3786226511001587, 0.2754654288291931, -0.1617426872253418, 0.279597342...
https://github.com/huggingface/datasets/issues/4889
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3
Maybe we can just pass this along to torchaudio @lhoestq @albertvillanova ? It be great if you could investigate if the errors lies in datasets or in torchaudio.
## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bug If you run the following code once with `torchaudio==0.11.0+cu102` and `torc...
28
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3 ## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bu...
[ -0.31408780813217163, -0.44944652915000916, 0.013230562210083008, 0.47898048162460327, 0.04047958552837372, -0.1875728964805603, 0.44027286767959595, 0.22770655155181885, -0.2552795112133026, 0.5620273947715759, -0.4986122250556946, 0.42314478754997253, -0.03476763144135475, -0.71954578161...
https://github.com/huggingface/datasets/issues/4889
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3
torchaudio did a change in [0.12](https://github.com/pytorch/audio/releases/tag/v0.12.0) on MP3 decoding (which affects common voice): > MP3 decoding is now handled by FFmpeg in sox_io backend. (https://github.com/pytorch/audio/pull/2419, https://github.com/pytorch/audio/pull/2428) > - FFmpeg is now used as fallback ...
## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bug If you run the following code once with `torchaudio==0.11.0+cu102` and `torc...
95
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3 ## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bu...
[ -0.31408780813217163, -0.44944652915000916, 0.013230562210083008, 0.47898048162460327, 0.04047958552837372, -0.1875728964805603, 0.44027286767959595, 0.22770655155181885, -0.2552795112133026, 0.5620273947715759, -0.4986122250556946, 0.42314478754997253, -0.03476763144135475, -0.71954578161...
https://github.com/huggingface/datasets/issues/4889
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3
Do we have a solution for this now? Should we just upgrade to `torchaudio 0.12.0` then?
## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bug If you run the following code once with `torchaudio==0.11.0+cu102` and `torc...
16
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3 ## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bu...
[ -0.31408780813217163, -0.44944652915000916, 0.013230562210083008, 0.47898048162460327, 0.04047958552837372, -0.1875728964805603, 0.44027286767959595, 0.22770655155181885, -0.2552795112133026, 0.5620273947715759, -0.4986122250556946, 0.42314478754997253, -0.03476763144135475, -0.71954578161...
https://github.com/huggingface/datasets/issues/4889
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3
`datasets` supports `torchaudio` 0.12 if you have an environment that supports reading MP3 with `torchaudio`, i.e. if you have `ffmpeg>=4`
## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bug If you run the following code once with `torchaudio==0.11.0+cu102` and `torc...
20
torchaudio 11.0 yields different results than torchaudio 12.1 when loading MP3 ## Describe the bug When loading Common Voice with torchaudio 0.11.0 the results are different to 0.12.1 which leads to problems in transformers see: https://github.com/huggingface/transformers/pull/18749 ## Steps to reproduce the bu...
[ -0.31408780813217163, -0.44944652915000916, 0.013230562210083008, 0.47898048162460327, 0.04047958552837372, -0.1875728964805603, 0.44027286767959595, 0.22770655155181885, -0.2552795112133026, 0.5620273947715759, -0.4986122250556946, 0.42314478754997253, -0.03476763144135475, -0.71954578161...
https://github.com/huggingface/datasets/issues/4888
Dataset Viewer issue for subjqa
It's a bug in the viewer, thanks for reporting it. We're hoping to update to a new version in the next few days which should fix it.
### Link https://huggingface.co/datasets/subjqa ### Description Getting the following error for this dataset: ``` Status code: 500 Exception: Status500Error Message: 2 or more items returned, instead of 1 ``` Not sure what's causing it though 🤔 ### Owner Yes
27
Dataset Viewer issue for subjqa ### Link https://huggingface.co/datasets/subjqa ### Description Getting the following error for this dataset: ``` Status code: 500 Exception: Status500Error Message: 2 or more items returned, instead of 1 ``` Not sure what's causing it though 🤔 ### Owner Ye...
[ -0.03717955946922302, -0.11603695899248123, -0.02288166433572769, 0.5325881242752075, 0.09126636385917664, 0.05853087455034256, 0.22465632855892181, 0.3746073842048645, -0.10512794554233551, 0.3295249938964844, -0.012070544995367527, 0.11314792931079865, 0.09658056497573853, 0.358098536729...
https://github.com/huggingface/datasets/issues/4886
Loading huggan/CelebA-HQ throws pyarrow.lib.ArrowInvalid
Hi! IIRC one of the files in this dataset is corrupted due to https://github.com/huggingface/datasets/pull/4081 (fixed now). @NielsRogge Could you please re-generate and re-push this dataset (or I can do it if you share the generation script)?
## Describe the bug Loading huggan/CelebA-HQ throws pyarrow.lib.ArrowInvalid ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('huggan/CelebA-HQ') ``` ## Expected results See https://colab.research.google.com/drive/141LJCcM2XyqprPY83nIQ-Zk3BbxWeahq?usp=sharing#...
36
Loading huggan/CelebA-HQ throws pyarrow.lib.ArrowInvalid ## Describe the bug Loading huggan/CelebA-HQ throws pyarrow.lib.ArrowInvalid ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('huggan/CelebA-HQ') ``` ## Expected results See https://colab.research.goog...
[ -0.10748839378356934, -0.1885012537240982, -0.039607081562280655, 0.3444852828979492, 0.2344798892736435, -0.11021281033754349, 0.1118069738149643, 0.4497286379337311, -0.2684803009033203, 0.24177247285842896, -0.07293921709060669, 0.6089426875114441, -0.11537941545248032, 0.00878512673079...
https://github.com/huggingface/datasets/issues/4886
Loading huggan/CelebA-HQ throws pyarrow.lib.ArrowInvalid
Could you put something in place to catch these problems? I'm seeing this on another dataset consistently too and I guess I can't fix it in code?
## Describe the bug Loading huggan/CelebA-HQ throws pyarrow.lib.ArrowInvalid ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('huggan/CelebA-HQ') ``` ## Expected results See https://colab.research.google.com/drive/141LJCcM2XyqprPY83nIQ-Zk3BbxWeahq?usp=sharing#...
27
Loading huggan/CelebA-HQ throws pyarrow.lib.ArrowInvalid ## Describe the bug Loading huggan/CelebA-HQ throws pyarrow.lib.ArrowInvalid ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('huggan/CelebA-HQ') ``` ## Expected results See https://colab.research.goog...
[ -0.10748839378356934, -0.1885012537240982, -0.039607081562280655, 0.3444852828979492, 0.2344798892736435, -0.11021281033754349, 0.1118069738149643, 0.4497286379337311, -0.2684803009033203, 0.24177247285842896, -0.07293921709060669, 0.6089426875114441, -0.11537941545248032, 0.00878512673079...