html_url
stringlengths
51
51
comments
stringlengths
67
24.7k
title
stringlengths
6
280
body
stringlengths
51
36.2k
comment_length
int64
16
1.45k
text
stringlengths
190
38.3k
embeddings
list
https://github.com/huggingface/datasets/issues/4702
I opened a PR to add "tags" to the YAML validator: https://github.com/huggingface/datasets/pull/4716 I also added "tags" to the [tagging app](https://huggingface.co/spaces/huggingface/datasets-tagging), with suggestions like "bio" or "newspapers"
Domain specific dataset discovery on the Hugging Face hub
**Is your feature request related to a problem? Please describe.** ## The problem The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data). There are various ways of identifying datasets that may be releva...
26
Domain specific dataset discovery on the Hugging Face hub **Is your feature request related to a problem? Please describe.** ## The problem The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data). Ther...
[ 0.03188702464103699, -0.15919069945812225, -0.03097589500248432, 0.19419680535793304, 0.13424351811408997, -0.05863271281123161, 0.25349533557891846, 0.28078481554985046, 0.07080616056919098, 0.04540278762578964, -0.4283636808395386, -0.08462163805961609, -0.4897834062576294, 0.56211549043...
https://github.com/huggingface/datasets/issues/4702
Thanks @lhoestq for the initiative. Just one question: are "tags" already supported on the Hub? I think they aren't. Thus, the Hub should support them so that they are properly displayed.
Domain specific dataset discovery on the Hugging Face hub
**Is your feature request related to a problem? Please describe.** ## The problem The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data). There are various ways of identifying datasets that may be releva...
31
Domain specific dataset discovery on the Hugging Face hub **Is your feature request related to a problem? Please describe.** ## The problem The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data). Ther...
[ 0.03188702464103699, -0.15919069945812225, -0.03097589500248432, 0.19419680535793304, 0.13424351811408997, -0.05863271281123161, 0.25349533557891846, 0.28078481554985046, 0.07080616056919098, 0.04540278762578964, -0.4283636808395386, -0.08462163805961609, -0.4897834062576294, 0.56211549043...
https://github.com/huggingface/datasets/issues/4702
I think they're not displayed, but at least it should enable users to filter by tag in using `huggingface_hub` or using the appropriate query params on the website (not sure if it's possible yet though)
Domain specific dataset discovery on the Hugging Face hub
**Is your feature request related to a problem? Please describe.** ## The problem The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data). There are various ways of identifying datasets that may be releva...
35
Domain specific dataset discovery on the Hugging Face hub **Is your feature request related to a problem? Please describe.** ## The problem The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data). Ther...
[ 0.03188702464103699, -0.15919069945812225, -0.03097589500248432, 0.19419680535793304, 0.13424351811408997, -0.05863271281123161, 0.25349533557891846, 0.28078481554985046, 0.07080616056919098, 0.04540278762578964, -0.4283636808395386, -0.08462163805961609, -0.4897834062576294, 0.56211549043...
https://github.com/huggingface/datasets/issues/4702
> I think they're not displayed, but at least it should enable users to filter by tag in using `huggingface_hub` or using the appropriate query params on the website (not sure if it's possible yet though) I think this would already be a helpful start. I'm happy to try this out with the datasets added to https://hugg...
Domain specific dataset discovery on the Hugging Face hub
**Is your feature request related to a problem? Please describe.** ## The problem The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data). There are various ways of identifying datasets that may be releva...
68
Domain specific dataset discovery on the Hugging Face hub **Is your feature request related to a problem? Please describe.** ## The problem The datasets hub currently has `8,239` datasets. These datasets span a wide range of different modalities and tasks (currently with a bias towards textual data). Ther...
[ 0.03188702464103699, -0.15919069945812225, -0.03097589500248432, 0.19419680535793304, 0.13424351811408997, -0.05863271281123161, 0.25349533557891846, 0.28078481554985046, 0.07080616056919098, 0.04540278762578964, -0.4283636808395386, -0.08462163805961609, -0.4897834062576294, 0.56211549043...
https://github.com/huggingface/datasets/issues/4697
Hi @frgfm, thanks for reporting. As the error message says, streaming mode is not supported out of the box when the dataset contains TAR archive files. To make the dataset streamable, you have to use `dl_manager.iter_archive`. There are several examples in other datasets, e.g. food101: https://huggingface.co/d...
Trouble with streaming frgfm/imagenette vision dataset with TAR archive
### Link https://huggingface.co/datasets/frgfm/imagenette ### Description Hello there :wave: Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the second one, I'm having trouble with the preview since there is some archive...
108
Trouble with streaming frgfm/imagenette vision dataset with TAR archive ### Link https://huggingface.co/datasets/frgfm/imagenette ### Description Hello there :wave: Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the s...
[ -0.34903258085250854, -0.3096265494823456, 0.03311198204755783, 0.48555970191955566, 0.07985654473304749, 0.022084474563598633, -0.26912248134613037, 0.16635474562644958, -0.012630127370357513, 0.0034210234880447388, -0.22603896260261536, -0.10508609563112259, -0.09753616154193878, 0.18836...
https://github.com/huggingface/datasets/issues/4697
Hi @albertvillanova :wave: Thanks! Yeah I saw that but since I didn't have any metadata, I wasn't sure whether I should create them myself. So one last question: What is the metadata supposed to be for archives? The relative path of all files in it? _(Sorry I'm a bit confused since it's quite hard to debug usin...
Trouble with streaming frgfm/imagenette vision dataset with TAR archive
### Link https://huggingface.co/datasets/frgfm/imagenette ### Description Hello there :wave: Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the second one, I'm having trouble with the preview since there is some archive...
67
Trouble with streaming frgfm/imagenette vision dataset with TAR archive ### Link https://huggingface.co/datasets/frgfm/imagenette ### Description Hello there :wave: Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the s...
[ -0.29563161730766296, -0.17251922190189362, 0.028559379279613495, 0.465470552444458, 0.03274034336209297, 0.003899313509464264, -0.3055073618888855, 0.11677021533250809, -0.05273675173521042, -0.056505851447582245, -0.1670122742652893, -0.17138740420341492, -0.11186641454696655, 0.09983675...
https://github.com/huggingface/datasets/issues/4697
Hi @frgfm, streaming a dataset that contains a TAR file requires some tweaks because (contrary to ZIP files), tha TAR archive does not allow random access to any of the contained member files. Instead they have to be accessed sequentially (in the order in which they were put into the TAR file when created) and yielded....
Trouble with streaming frgfm/imagenette vision dataset with TAR archive
### Link https://huggingface.co/datasets/frgfm/imagenette ### Description Hello there :wave: Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the second one, I'm having trouble with the preview since there is some archive...
357
Trouble with streaming frgfm/imagenette vision dataset with TAR archive ### Link https://huggingface.co/datasets/frgfm/imagenette ### Description Hello there :wave: Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the s...
[ -0.3308331370353699, -0.20879137516021729, 0.014207884669303894, 0.5364789962768555, 0.06470918655395508, -0.04664342850446701, -0.3245677351951599, 0.16045518219470978, -0.054141104221343994, 0.0337926521897316, -0.22537223994731903, -0.11467698961496353, -0.07856869697570801, 0.054379090...
https://github.com/huggingface/datasets/issues/4697
Hi @albertvillanova :wave: Thanks, since my last message, I went through the repo of https://huggingface.co/datasets/food101/blob/main/food101.py and managed to get it to work in the end :pray: Here it is: https://huggingface.co/datasets/frgfm/imagenette I appreciate you opening an issue to document the proc...
Trouble with streaming frgfm/imagenette vision dataset with TAR archive
### Link https://huggingface.co/datasets/frgfm/imagenette ### Description Hello there :wave: Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the second one, I'm having trouble with the preview since there is some archive...
45
Trouble with streaming frgfm/imagenette vision dataset with TAR archive ### Link https://huggingface.co/datasets/frgfm/imagenette ### Description Hello there :wave: Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the s...
[ -0.2610354423522949, -0.2777769863605499, 0.018438488245010376, 0.46521836519241333, 0.08863438665866852, -0.016148649156093597, -0.33086514472961426, 0.15956458449363708, -0.03442702442407608, -0.016064167022705078, -0.1785045564174652, -0.15198761224746704, -0.06587778031826019, 0.221854...
https://github.com/huggingface/datasets/issues/4697
Great to see that you manage to make your dataset streamable. :rocket: I'm closing this issue, as for the docs update there is another issue opened: - #4711
Trouble with streaming frgfm/imagenette vision dataset with TAR archive
### Link https://huggingface.co/datasets/frgfm/imagenette ### Description Hello there :wave: Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the second one, I'm having trouble with the preview since there is some archive...
28
Trouble with streaming frgfm/imagenette vision dataset with TAR archive ### Link https://huggingface.co/datasets/frgfm/imagenette ### Description Hello there :wave: Thanks for the amazing work you've done with HF Datasets! I've just started playing with it, and managed to upload my first dataset. But for the s...
[ -0.3150749206542969, -0.25433048605918884, 0.018048100173473358, 0.4611194133758545, 0.05447159707546234, 0.023689746856689453, -0.2936519384384155, 0.18628527224063873, 0.008981585502624512, 0.004569821059703827, -0.18533886969089508, -0.15282565355300903, -0.08943483233451843, 0.22161801...
https://github.com/huggingface/datasets/issues/4696
Hi @finiteautomata, thanks for reporting. Unfortunately, I'm not able to reproduce your issue: ```python In [1]: from datasets import load_dataset ...: dataset = load_dataset("lince", "ner_spaeng") Downloading builder script: 20.8kB [00:00, 9.09MB/s] ...
Cannot load LinCE dataset
## Describe the bug Cannot load LinCE dataset due to a connection error ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("lince", "ner_spaeng") ``` A notebook with this code and corresponding error can be found at https://colab.research.google.com/drive/1...
225
Cannot load LinCE dataset ## Describe the bug Cannot load LinCE dataset due to a connection error ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("lince", "ner_spaeng") ``` A notebook with this code and corresponding error can be found at https://colab...
[ -0.43125396966934204, 0.061440274119377136, -0.06749073415994644, 0.4040908217430115, 0.2538754940032959, -0.041743919253349304, 0.13857388496398926, 0.31723588705062866, 0.1519993543624878, -0.03008142113685608, -0.1900053769350052, 0.3475402891635895, 0.13724812865257263, 0.0789871066808...
https://github.com/huggingface/datasets/issues/4694
Hi ! According to https://huggingface.co/docs/datasets/use_with_pytorch#stream-data you can use the pytorch DataLoader with `num_workers>0` to distribute the shards across your workers (it uses `torch.utils.data.get_worker_info()` to get the worker ID and select the right subsets of shards to use) <s> EDIT: here is ...
Distributed data parallel training for streaming datasets
### Feature request Any documentations for the the `load_dataset(streaming=True)` for (multi-node multi-GPU) DDP training? ### Motivation Given a bunch of data files, it is expected to split them onto different GPUs. Is there a guide or documentation? ### Your contribution Does it requires manually spli...
72
Distributed data parallel training for streaming datasets ### Feature request Any documentations for the the `load_dataset(streaming=True)` for (multi-node multi-GPU) DDP training? ### Motivation Given a bunch of data files, it is expected to split them onto different GPUs. Is there a guide or documentation...
[ -0.3311077356338501, -0.5340836048126221, -0.09008943289518356, 0.2494332492351532, -0.117105633020401, -0.03952915221452713, 0.5075057148933411, -0.1072416752576828, 0.09953995048999786, 0.0740332305431366, -0.0475439578294754, 0.15022695064544678, -0.035745441913604736, 0.353720009326934...
https://github.com/huggingface/datasets/issues/4694
@cyk1337 does streaming datasets with multi-gpu works for you? I am testing on one node with multiple gpus, but this is freezing, https://github.com/huggingface/datasets/issues/5123 In case you could make this work, could you share with me your data-loading codes? thank you
Distributed data parallel training for streaming datasets
### Feature request Any documentations for the the `load_dataset(streaming=True)` for (multi-node multi-GPU) DDP training? ### Motivation Given a bunch of data files, it is expected to split them onto different GPUs. Is there a guide or documentation? ### Your contribution Does it requires manually spli...
40
Distributed data parallel training for streaming datasets ### Feature request Any documentations for the the `load_dataset(streaming=True)` for (multi-node multi-GPU) DDP training? ### Motivation Given a bunch of data files, it is expected to split them onto different GPUs. Is there a guide or documentation...
[ -0.3942636251449585, -0.45533162355422974, -0.12954658269882202, 0.2592160403728485, -0.022475838661193848, -0.0750918835401535, 0.42428910732269287, -0.07431487739086151, 0.2638165354728699, 0.1050199419260025, -0.023945309221744537, 0.20150446891784668, 0.018161717802286148, 0.3303265571...
https://github.com/huggingface/datasets/issues/4694
This has been implemented in `datasets` 2.8: ```python from datasets.distributed import split_dataset_by_node ds = split_dataset_by_node(ds, rank=rank, world_size=world_size) ``` docs: https://huggingface.co/docs/datasets/use_with_pytorch#distributed
Distributed data parallel training for streaming datasets
### Feature request Any documentations for the the `load_dataset(streaming=True)` for (multi-node multi-GPU) DDP training? ### Motivation Given a bunch of data files, it is expected to split them onto different GPUs. Is there a guide or documentation? ### Your contribution Does it requires manually spli...
20
Distributed data parallel training for streaming datasets ### Feature request Any documentations for the the `load_dataset(streaming=True)` for (multi-node multi-GPU) DDP training? ### Motivation Given a bunch of data files, it is expected to split them onto different GPUs. Is there a guide or documentation...
[ -0.4058094322681427, -0.35261088609695435, -0.15247684717178345, 0.13152645528316498, -0.07379528880119324, -0.03692999482154846, 0.4923267662525177, -0.04402404651045799, 0.1611567735671997, 0.11810730397701263, 0.011722147464752197, 0.25080040097236633, -0.017938122153282166, 0.264191806...
https://github.com/huggingface/datasets/issues/4694
i'm having hanging issues with this when using DDP and allocating the datasets with `split_dataset_by_node` 🤔 --- ### edit I don't want to pollute this thread, but for the sake of following up, I observed hanging close to the final iteration of the dataloader. I think this was happening on the final shard. First...
Distributed data parallel training for streaming datasets
### Feature request Any documentations for the the `load_dataset(streaming=True)` for (multi-node multi-GPU) DDP training? ### Motivation Given a bunch of data files, it is expected to split them onto different GPUs. Is there a guide or documentation? ### Your contribution Does it requires manually spli...
93
Distributed data parallel training for streaming datasets ### Feature request Any documentations for the the `load_dataset(streaming=True)` for (multi-node multi-GPU) DDP training? ### Motivation Given a bunch of data files, it is expected to split them onto different GPUs. Is there a guide or documentation...
[ -0.335327684879303, -0.2989385426044464, -0.08756278455257416, 0.16424860060214996, 0.04631523787975311, 0.002082347869873047, 0.511561930179596, -0.1514468491077423, 0.04045324772596359, 0.20592480897903442, 0.11632855981588364, 0.22047121822834015, 0.05798839405179024, 0.1212072744965553...
https://github.com/huggingface/datasets/issues/4691
Hi, thanks for reporting. I triggered a refresh of the preview for this dataset, and it works now. I'm not sure what occurred. <img width="1019" alt="Capture d’écran 2022-07-18 à 11 01 52" src="https://user-images.githubusercontent.com/1676121/179541327-f62ecd5e-a18a-4d91-b316-9e2ebde77a28.png">
Dataset Viewer issue for rajistics/indian_food_images
### Link https://huggingface.co/datasets/rajistics/indian_food_images/viewer/rajistics--indian_food_images/train ### Description I have a train/test split in my dataset <img width="410" alt="Screen Shot 2022-07-15 at 11 44 42 AM" src="https://user-images.githubusercontent.com/6808012/179293215-7b419ec3-3527-46f2-8...
33
Dataset Viewer issue for rajistics/indian_food_images ### Link https://huggingface.co/datasets/rajistics/indian_food_images/viewer/rajistics--indian_food_images/train ### Description I have a train/test split in my dataset <img width="410" alt="Screen Shot 2022-07-15 at 11 44 42 AM" src="https://user-images.gith...
[ -0.45737022161483765, 0.10634908080101013, 0.020444322377443314, 0.5601474046707153, 0.13524729013442993, 0.06503824144601822, 0.27458956837654114, 0.4301520884037018, -0.17592887580394745, -0.0015380829572677612, 0.14453519880771637, 0.273547500371933, -0.015958551317453384, -0.0944306552...
https://github.com/huggingface/datasets/issues/4684
Hi! One option is use `map` with a function that overwrites the labels (`dset = dset.map(lamba _: {"label": 0}, features=dset.features`)). Or you can use the `remove_column` + `add_column` combination (`dset = dset.remove_columns("label").add_column("label", [0]*len(data)).cast(dset.features)`, but note that this appro...
How to assign new values to Dataset?
![image](https://user-images.githubusercontent.com/37113676/179149159-bbbda0c8-a661-403c-87ed-dc2b4219cd68.png) Hi, if I want to change some values of the dataset, or add new columns to it, how can I do it? For example, I want to change all the labels of the SST2 dataset to `0`: ```python from datasets import l...
58
How to assign new values to Dataset? ![image](https://user-images.githubusercontent.com/37113676/179149159-bbbda0c8-a661-403c-87ed-dc2b4219cd68.png) Hi, if I want to change some values of the dataset, or add new columns to it, how can I do it? For example, I want to change all the labels of the SST2 dataset to ...
[ 0.031401850283145905, -0.0106840580701828, -0.03740960359573364, 0.037496235221624374, 0.24486160278320312, 0.3728918433189392, 0.3551693260669708, 0.19266994297504425, 0.24378399550914764, 0.13718834519386292, -0.40196141600608826, 0.5025936961174011, -0.028137097135186195, 0.440174788236...
https://github.com/huggingface/datasets/issues/4684
Hi! I tried your proposed solution, but it does not solve my problem unfortunately. I am working with a set of protein sequences that have been tokenized with ESM, but some sequences are longer than `max_length`, they have been truncated in the tokenization. So now I want to truncate my labels as well, but that does no...
How to assign new values to Dataset?
![image](https://user-images.githubusercontent.com/37113676/179149159-bbbda0c8-a661-403c-87ed-dc2b4219cd68.png) Hi, if I want to change some values of the dataset, or add new columns to it, how can I do it? For example, I want to change all the labels of the SST2 dataset to `0`: ```python from datasets import l...
139
How to assign new values to Dataset? ![image](https://user-images.githubusercontent.com/37113676/179149159-bbbda0c8-a661-403c-87ed-dc2b4219cd68.png) Hi, if I want to change some values of the dataset, or add new columns to it, how can I do it? For example, I want to change all the labels of the SST2 dataset to ...
[ -0.1431279480457306, 0.03439219295978546, -0.03523506224155426, 0.04334679991006851, 0.280894935131073, 0.06700772047042847, 0.27653318643569946, 0.010844610631465912, -0.004918113350868225, 0.2650739252567291, -0.07758363336324692, 0.29778584837913513, -0.17042618989944458, 0.336649537086...
https://github.com/huggingface/datasets/issues/4681
Hi, thanks for reporting! If there are no examples in ImageFolder, the `label` column is of type `ClassLabel(names=[])`, which leads to an error in [this line](https://github.com/huggingface/datasets/blob/c15b391942764152f6060b59921b09cacc5f22a6/src/datasets/arrow_writer.py#L387) as `asdict(info)` calls `Features({...,...
IndexError when loading ImageFolder
## Describe the bug Loading an image dataset with `imagefolder` throws `IndexError: list index out of range` when the given folder contains a non-image file (like a csv). ## Steps to reproduce the bug Put a csv file in a folder with images and load it: ```python import datasets datasets.load_dataset("imagefold...
114
IndexError when loading ImageFolder ## Describe the bug Loading an image dataset with `imagefolder` throws `IndexError: list index out of range` when the given folder contains a non-image file (like a csv). ## Steps to reproduce the bug Put a csv file in a folder with images and load it: ```python import datas...
[ -0.17695961892604828, 0.1415272355079651, -0.08236116170883179, 0.5738711953163147, 0.3232484459877014, 0.23769447207450867, 0.4081917107105255, 0.18091480433940887, 0.6210442781448364, 0.17319685220718384, -0.10812602937221527, 0.3460669219493866, -0.3069899082183838, -0.0187295600771904,...
https://github.com/huggingface/datasets/issues/4681
Small pref for the first option, it feels weird to know that `Features()` can be called with a dictionary of types defined as dictionaries instead of type instances.
IndexError when loading ImageFolder
## Describe the bug Loading an image dataset with `imagefolder` throws `IndexError: list index out of range` when the given folder contains a non-image file (like a csv). ## Steps to reproduce the bug Put a csv file in a folder with images and load it: ```python import datasets datasets.load_dataset("imagefold...
28
IndexError when loading ImageFolder ## Describe the bug Loading an image dataset with `imagefolder` throws `IndexError: list index out of range` when the given folder contains a non-image file (like a csv). ## Steps to reproduce the bug Put a csv file in a folder with images and load it: ```python import datas...
[ -0.14233258366584778, -0.0007720291614532471, -0.10871986299753189, 0.5442878007888794, 0.24172958731651306, 0.14020922780036926, 0.4314253032207489, 0.13377463817596436, 0.581899106502533, 0.15131808817386627, 0.00499492883682251, 0.30169162154197693, -0.295691579580307, 0.090293802320957...
https://github.com/huggingface/datasets/issues/4680
There seems to be an issue with the `C++-snippet-level` config: ```python >>> from datasets import get_dataset_split_names >>> get_dataset_split_names("codeparrot/xlcost-text-to-code", "C++-snippet-level") Traceback (most recent call last): File "/home/slesage/hf/datasets-server/services/worker/.venv/lib/pytho...
Dataset Viewer issue for codeparrot/xlcost-text-to-code
### Link https://huggingface.co/datasets/codeparrot/xlcost-text-to-code ### Description Error ``` Server Error Status code: 400 Exception: TypeError Message: 'NoneType' object is not iterable ``` Before I did a minor change in the dataset script (removing some comments), the viewer was working but...
115
Dataset Viewer issue for codeparrot/xlcost-text-to-code ### Link https://huggingface.co/datasets/codeparrot/xlcost-text-to-code ### Description Error ``` Server Error Status code: 400 Exception: TypeError Message: 'NoneType' object is not iterable ``` Before I did a minor change in the dataset s...
[ -0.6095510125160217, 0.008621007204055786, 0.03766182065010071, 0.4209226965904236, 0.2538849413394928, 0.014111816883087158, 0.08480271697044373, 0.5576996803283691, -0.2517104148864746, 0.08406288176774979, -0.10687108337879181, 0.41519489884376526, -0.04746294021606445, 0.54762774705886...
https://github.com/huggingface/datasets/issues/4680
Thanks I found that this subset wasn't properly defined the the config, I fixed it. Now I can see the subsets but I get this error for the viewer ```` Status code: 400 Exception: Status400Error Message: The split cache is empty. ```
Dataset Viewer issue for codeparrot/xlcost-text-to-code
### Link https://huggingface.co/datasets/codeparrot/xlcost-text-to-code ### Description Error ``` Server Error Status code: 400 Exception: TypeError Message: 'NoneType' object is not iterable ``` Before I did a minor change in the dataset script (removing some comments), the viewer was working but...
42
Dataset Viewer issue for codeparrot/xlcost-text-to-code ### Link https://huggingface.co/datasets/codeparrot/xlcost-text-to-code ### Description Error ``` Server Error Status code: 400 Exception: TypeError Message: 'NoneType' object is not iterable ``` Before I did a minor change in the dataset s...
[ -0.5108546018600464, -0.0709800124168396, 0.0017938502132892609, 0.43781140446662903, 0.17743712663650513, 0.1019664853811264, 0.05635353550314903, 0.5365211367607117, -0.09812098741531372, 0.0036653727293014526, -0.23944096267223358, 0.20734617114067078, 0.05680451914668083, 0.46535331010...
https://github.com/huggingface/datasets/issues/4680
Yes, the cache is being refreshed, hopefully, it will work in some minutes for all the splits. Some are already here: https://huggingface.co/datasets/codeparrot/xlcost-text-to-code/viewer/Python-snippet-level/train <img width="1533" alt="Capture d’écran 2022-07-18 à 12 04 06" src="https://user-images.githubuser...
Dataset Viewer issue for codeparrot/xlcost-text-to-code
### Link https://huggingface.co/datasets/codeparrot/xlcost-text-to-code ### Description Error ``` Server Error Status code: 400 Exception: TypeError Message: 'NoneType' object is not iterable ``` Before I did a minor change in the dataset script (removing some comments), the viewer was working but...
32
Dataset Viewer issue for codeparrot/xlcost-text-to-code ### Link https://huggingface.co/datasets/codeparrot/xlcost-text-to-code ### Description Error ``` Server Error Status code: 400 Exception: TypeError Message: 'NoneType' object is not iterable ``` Before I did a minor change in the dataset s...
[ -0.5043670535087585, -0.02399955689907074, 0.015026357024908066, 0.4731106758117676, 0.24819689989089966, 0.05102039873600006, 0.08846499025821686, 0.6324099898338318, -0.13009703159332275, 0.03693164885044098, -0.2282850444316864, 0.2851557433605194, -0.08848893642425537, 0.54979193210601...
https://github.com/huggingface/datasets/issues/4678
Hi! Calling `take` on an iterable/streamable dataset makes it not possible to shard the dataset, which in turn disables multi-process loading (attempts to split the workload over the shards), so to go past this limitation, you can either use single-process loading in `DataLoader` (`num_workers=None`) or fetch the first...
Cant pass streaming dataset to dataloader after take()
## Describe the bug I am trying to pass a streaming version of c4 to a dataloader, but it can't be passed after I call `dataset.take(n)`. Some functions such as `shuffle()` can be applied without breaking the dataloader but not take. ## Steps to reproduce the bug ```python import datasets import torch dset = ...
53
Cant pass streaming dataset to dataloader after take() ## Describe the bug I am trying to pass a streaming version of c4 to a dataloader, but it can't be passed after I call `dataset.take(n)`. Some functions such as `shuffle()` can be applied without breaking the dataloader but not take. ## Steps to reproduce the...
[ -0.30555984377861023, -0.06311532109975815, 0.04665466398000717, 0.26325175166130066, 0.21077433228492737, -0.21016430854797363, 0.3105161488056183, 0.0565311461687088, 0.011078640818595886, 0.18856340646743774, 0.09815330803394318, 0.2803327441215515, -0.21256868541240692, 0.1489925235509...
https://github.com/huggingface/datasets/issues/4677
I am having the same issue. Even the simple example from the documentation gives me the 400 Error > from datasets import load_dataset > > dataset = load_dataset("stevhliu/demo") > dataset.push_to_hub("processed_demo") `requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://huggingfa...
Random 400 Client Error when pushing dataset
## Describe the bug When pushing a dataset, the client errors randomly with `Bad Request for url:...`. At the next call, a new parquet file is created for each shard. The client may fail at any random shard. ## Steps to reproduce the bug ```python dataset.push_to_hub("ORG/DATASET", private=True, branch="main") ...
77
Random 400 Client Error when pushing dataset ## Describe the bug When pushing a dataset, the client errors randomly with `Bad Request for url:...`. At the next call, a new parquet file is created for each shard. The client may fail at any random shard. ## Steps to reproduce the bug ```python dataset.push_to_h...
[ -0.16919946670532227, -0.16795513033866882, 0.032807864248752594, 0.1358121782541275, 0.010458284988999367, -0.12437740713357925, 0.28814566135406494, 0.2617994248867035, -0.05388304963707924, 0.047669634222984314, 0.2557692527770996, 0.015086464583873749, 0.03830255568027496, 0.1002050042...
https://github.com/huggingface/datasets/issues/4676
Are you able to reproduce this? My example is small enough that it should be easy to try.
Dataset.map gets stuck on _cast_to_python_objects
## Describe the bug `Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows. Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_an...
18
Dataset.map gets stuck on _cast_to_python_objects ## Describe the bug `Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows. Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/...
[ -0.19857248663902283, -0.3108586072921753, 0.10775741934776306, 0.2138063609600067, 0.4472832679748535, 0.020685628056526184, 0.05208602920174599, 0.16915884613990784, -0.1744581162929535, 0.0026285871863365173, 0.08085232973098755, 0.4416096806526184, -0.17229795455932617, -0.218297973275...
https://github.com/huggingface/datasets/issues/4676
Hi! Thanks for reporting and providing a reproducible example. Indeed, by default, `datasets` performs an expensive cast on the values returned by `map` to convert them to one of the types supported by PyArrow (the underlying storage format used by `datasets`). This cast is not needed on NumPy arrays as PyArrow support...
Dataset.map gets stuck on _cast_to_python_objects
## Describe the bug `Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows. Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_an...
81
Dataset.map gets stuck on _cast_to_python_objects ## Describe the bug `Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows. Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/...
[ -0.19857248663902283, -0.3108586072921753, 0.10775741934776306, 0.2138063609600067, 0.4472832679748535, 0.020685628056526184, 0.05208602920174599, 0.16915884613990784, -0.1744581162929535, 0.0026285871863365173, 0.08085232973098755, 0.4416096806526184, -0.17229795455932617, -0.218297973275...
https://github.com/huggingface/datasets/issues/4676
I tested this tokenize function and indeed noticed a casting. However it seems to only concerns the `offset_mapping` field, which contains a list of tuples, that is converted to a list of lists. Since `pyarrow` also supports tuples, we actually don't need to convert the tuples to lists. I think this can be changed ...
Dataset.map gets stuck on _cast_to_python_objects
## Describe the bug `Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows. Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_an...
118
Dataset.map gets stuck on _cast_to_python_objects ## Describe the bug `Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows. Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/...
[ -0.19857248663902283, -0.3108586072921753, 0.10775741934776306, 0.2138063609600067, 0.4472832679748535, 0.020685628056526184, 0.05208602920174599, 0.16915884613990784, -0.1744581162929535, 0.0026285871863365173, 0.08085232973098755, 0.4416096806526184, -0.17229795455932617, -0.218297973275...
https://github.com/huggingface/datasets/issues/4676
Wow, adding `return_tensors="np"` sped up my example by a **factor 17x** of and completely eliminated the casting! I'd recommend not only to document it, but to make that the default. The code at https://github.com/huggingface/notebooks/blob/main/examples/question_answering.ipynb does not specify `return_tensors="np...
Dataset.map gets stuck on _cast_to_python_objects
## Describe the bug `Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows. Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_an...
112
Dataset.map gets stuck on _cast_to_python_objects ## Describe the bug `Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows. Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/...
[ -0.19857248663902283, -0.3108586072921753, 0.10775741934776306, 0.2138063609600067, 0.4472832679748535, 0.020685628056526184, 0.05208602920174599, 0.16915884613990784, -0.1744581162929535, 0.0026285871863365173, 0.08085232973098755, 0.4416096806526184, -0.17229795455932617, -0.218297973275...
https://github.com/huggingface/datasets/issues/4676
Setting the output to `"np"` makes the whole pipeline fast because it moves the data buffers from rust to python to arrow using zero-copy, and also because it does eliminate the casting completely ;) Have you had a chance to try eliminating the tuple casting using the trick above ?
Dataset.map gets stuck on _cast_to_python_objects
## Describe the bug `Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows. Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_an...
50
Dataset.map gets stuck on _cast_to_python_objects ## Describe the bug `Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows. Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/...
[ -0.19857248663902283, -0.3108586072921753, 0.10775741934776306, 0.2138063609600067, 0.4472832679748535, 0.020685628056526184, 0.05208602920174599, 0.16915884613990784, -0.1744581162929535, 0.0026285871863365173, 0.08085232973098755, 0.4416096806526184, -0.17229795455932617, -0.218297973275...
https://github.com/huggingface/datasets/issues/4676
@lhoestq I just benchmarked the two edits to `features.py` above, and they appear to solve the problem, bringing my original example to within 20% the speed of the output `"np"` example. Nice! For a pull request, do you suggest simply following https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md ?
Dataset.map gets stuck on _cast_to_python_objects
## Describe the bug `Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows. Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_an...
43
Dataset.map gets stuck on _cast_to_python_objects ## Describe the bug `Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows. Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/...
[ -0.19857248663902283, -0.3108586072921753, 0.10775741934776306, 0.2138063609600067, 0.4472832679748535, 0.020685628056526184, 0.05208602920174599, 0.16915884613990784, -0.1744581162929535, 0.0026285871863365173, 0.08085232973098755, 0.4416096806526184, -0.17229795455932617, -0.218297973275...
https://github.com/huggingface/datasets/issues/4676
Cool ! Sure feel free to follow these instructions to open a PR :) thanks !
Dataset.map gets stuck on _cast_to_python_objects
## Describe the bug `Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows. Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/huggingface/notebooks/blob/main/examples/question_an...
16
Dataset.map gets stuck on _cast_to_python_objects ## Describe the bug `Dataset.map`, when fed a Huggingface Tokenizer as its map func, can sometimes spend huge amounts of time doing casts. A minimal example follows. Not all usages suffer from this. For example, I profiled the preprocessor at https://github.com/...
[ -0.19857248663902283, -0.3108586072921753, 0.10775741934776306, 0.2138063609600067, 0.4472832679748535, 0.020685628056526184, 0.05208602920174599, 0.16915884613990784, -0.1744581162929535, 0.0026285871863365173, 0.08085232973098755, 0.4416096806526184, -0.17229795455932617, -0.218297973275...
https://github.com/huggingface/datasets/issues/4675
Hi! `para_crawl` has a single column of type `Translation`, which stores translation dictionaries. These dictionaries can be stored in a NumPy array but not in a PyTorch tensor since PyTorch only supports numeric types. In `datasets`, the conversion to `torch` works as follows: 1. convert PyArrow table to NumPy array...
Unable to use dataset with PyTorch dataloader
## Describe the bug When using `.with_format("torch")`, an arrow table is returned and I am unable to use it by passing it to a PyTorch DataLoader: please see the code below. ## Steps to reproduce the bug ```python from datasets import load_dataset from torch.utils.data import DataLoader ds = load_dataset( ...
137
Unable to use dataset with PyTorch dataloader ## Describe the bug When using `.with_format("torch")`, an arrow table is returned and I am unable to use it by passing it to a PyTorch DataLoader: please see the code below. ## Steps to reproduce the bug ```python from datasets import load_dataset from torch.uti...
[ 0.026974640786647797, -0.12281234562397003, 0.08807428926229477, 0.37346428632736206, 0.2934962511062622, -0.09555177390575409, 0.6355213522911072, 0.2323424369096756, -0.1659907102584839, -0.02597098797559738, -0.12711746990680695, 0.7121245861053467, -0.254029244184494, -0.22238147258758...
https://github.com/huggingface/datasets/issues/4674
Hi @margotwagner, thanks for reporting. Unfortunately, I'm not able to reproduce your bug: in an environment with datasets-2.3.2 and pyarrow-8.0.0, I can load the datasets without any problem: ```python >>> ds = load_dataset("glue", "cola") >>> ds DatasetDict({ train: Dataset({ features: ['sentence...
Issue loading datasets -- pyarrow.lib has no attribute
## Describe the bug I am trying to load sentiment analysis datasets from huggingface, but any dataset I try to use via load_dataset, I get the same error: `AttributeError: module 'pyarrow.lib' has no attribute 'IpcReadOptions'` ## Steps to reproduce the bug ```python dataset = load_dataset("glue", "cola") ``` ...
130
Issue loading datasets -- pyarrow.lib has no attribute ## Describe the bug I am trying to load sentiment analysis datasets from huggingface, but any dataset I try to use via load_dataset, I get the same error: `AttributeError: module 'pyarrow.lib' has no attribute 'IpcReadOptions'` ## Steps to reproduce the bug ...
[ -0.21371296048164368, 0.24723710119724274, 0.03528037667274475, 0.3548170328140259, 0.30740272998809814, -0.1193869486451149, 0.5190204977989197, 0.02754773199558258, 0.13377372920513153, 0.014878273010253906, -0.31553441286087036, 0.24089764058589935, -0.021652858704328537, 0.061530768871...
https://github.com/huggingface/datasets/issues/4673
Hi @courtneysprouse, thanks for reporting. Yes, you are right: by default the "csv" loader loads all columns as strings. You could tweak this behavior by passing the `feature` argument to `load_dataset`, but it is also true that currently it is not possible to perform some kind of casts, due to lacking of implem...
load_datasets on csv returns everything as a string
## Describe the bug If you use: `conll_dataset.to_csv("ner_conll.csv")` It will create a csv file with all of your data as expected, however when you load it with: `conll_dataset = load_dataset("csv", data_files="ner_conll.csv")` everything is read in as a string. For example if I look at everything in 'n...
321
load_datasets on csv returns everything as a string ## Describe the bug If you use: `conll_dataset.to_csv("ner_conll.csv")` It will create a csv file with all of your data as expected, however when you load it with: `conll_dataset = load_dataset("csv", data_files="ner_conll.csv")` everything is read in...
[ 0.02764822542667389, -0.056675225496292114, -0.11288842558860779, 0.24825724959373474, 0.29906272888183594, 0.025926999747753143, 0.4971748888492584, 0.2031235545873642, -0.0027824342250823975, 0.17837899923324585, 0.10125920921564102, 0.31265702843666077, -0.031219525262713432, 0.15455882...
https://github.com/huggingface/datasets/issues/4671
Thanks for reporting, @lewtun. ~We can't load the dataset locally, so I think this is an issue with the loading script (not the viewer).~ We are investigating...
Dataset Viewer issue for wmt16
### Link https://huggingface.co/datasets/wmt16 ### Description [Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret this error. ``` Status cod...
27
Dataset Viewer issue for wmt16 ### Link https://huggingface.co/datasets/wmt16 ### Description [Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpr...
[ -0.5232625007629395, -0.13589969277381897, 0.08966904878616333, 0.43717584013938904, 0.3287571668624878, 0.14782805740833282, 0.3162909150123596, 0.28697341680526733, 0.0998026505112648, 0.12582148611545563, -0.15189319849014282, 0.1572934091091156, -0.3285464346408844, -0.1050657331943512...
https://github.com/huggingface/datasets/issues/4671
Recently, there was a merged PR related to this dataset: - #4554 We are looking at this...
Dataset Viewer issue for wmt16
### Link https://huggingface.co/datasets/wmt16 ### Description [Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret this error. ``` Status cod...
17
Dataset Viewer issue for wmt16 ### Link https://huggingface.co/datasets/wmt16 ### Description [Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpr...
[ -0.48760223388671875, -0.15501119196414948, 0.050813689827919006, 0.4330825209617615, 0.3144187033176422, 0.149880513548851, 0.29577991366386414, 0.2695172131061554, -0.03684002533555031, 0.08725430071353912, -0.21536463499069214, 0.13226202130317688, -0.37234464287757874, -0.1202556937932...
https://github.com/huggingface/datasets/issues/4671
Indeed, the above mentioned PR fixed the loading script (it was not working before). I'm forcing the refresh of the Viewer.
Dataset Viewer issue for wmt16
### Link https://huggingface.co/datasets/wmt16 ### Description [Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret this error. ``` Status cod...
21
Dataset Viewer issue for wmt16 ### Link https://huggingface.co/datasets/wmt16 ### Description [Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpr...
[ -0.5481168031692505, -0.15261486172676086, 0.09161655604839325, 0.4051365256309509, 0.3586499094963074, 0.13037559390068054, 0.3291291892528534, 0.3309022784233093, 0.11468301713466644, 0.09130125492811203, -0.14585494995117188, 0.1632361263036728, -0.34213292598724365, -0.0455690845847129...
https://github.com/huggingface/datasets/issues/4671
Please note that the above mentioned PR also made an enhancement in the `datasets` library, required by this loading script. This enhancement will only be available to the Viewer once we make our next release.
Dataset Viewer issue for wmt16
### Link https://huggingface.co/datasets/wmt16 ### Description [Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpret this error. ``` Status cod...
35
Dataset Viewer issue for wmt16 ### Link https://huggingface.co/datasets/wmt16 ### Description [Reported](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/12#62cb83f14c7f35284e796f9c) by a user of AutoTrain Evaluate. AFAIK this dataset was working 1-2 weeks ago, and I'm not sure how to interpr...
[ -0.548792839050293, -0.11475753039121628, 0.06637758761644363, 0.4408263564109802, 0.3196667432785034, 0.1831657886505127, 0.316314160823822, 0.29715168476104736, 0.015588134527206421, 0.11532557755708694, -0.18219032883644104, 0.17964880168437958, -0.37049388885498047, -0.1030315160751342...
https://github.com/huggingface/datasets/issues/4670
Hi @bhavitvyamalik, thanks for reporting. Yes, currently we do not support 7zip archive compression: I think we should. As a workaround, you could uncompress it explicitly, like done in e.g. `samsum` dataset: https://github.com/huggingface/datasets/blob/fedf891a08bfc77041d575fad6c26091bc0fce52/datasets/samsum...
Can't extract files from `.7z` zipfile using `download_and_extract`
## Describe the bug I'm adding a new dataset which is a `.7z` zip file in Google drive and contains 3 json files inside. I'm able to download the data files using `download_and_extract` but after downloading it throws this error: ``` >>> dataset = load_dataset("./datasets/mantis/") Using custom data configuration d...
33
Can't extract files from `.7z` zipfile using `download_and_extract` ## Describe the bug I'm adding a new dataset which is a `.7z` zip file in Google drive and contains 3 json files inside. I'm able to download the data files using `download_and_extract` but after downloading it throws this error: ``` >>> dataset =...
[ -0.3009297847747803, -0.22019803524017334, -0.06858150660991669, 0.5899444222450256, 0.024326376616954803, 0.07990296185016632, -0.0020868713036179543, 0.37691596150398254, 0.31100958585739136, 0.020652834326028824, -0.0629308819770813, 0.23239155113697052, 0.1873113512992859, 0.1382799744...
https://github.com/huggingface/datasets/issues/4670
Sure, let me look into and check what can be done. Will keep you guys updated here!
Can't extract files from `.7z` zipfile using `download_and_extract`
## Describe the bug I'm adding a new dataset which is a `.7z` zip file in Google drive and contains 3 json files inside. I'm able to download the data files using `download_and_extract` but after downloading it throws this error: ``` >>> dataset = load_dataset("./datasets/mantis/") Using custom data configuration d...
17
Can't extract files from `.7z` zipfile using `download_and_extract` ## Describe the bug I'm adding a new dataset which is a `.7z` zip file in Google drive and contains 3 json files inside. I'm able to download the data files using `download_and_extract` but after downloading it throws this error: ``` >>> dataset =...
[ -0.3009297847747803, -0.22019803524017334, -0.06858150660991669, 0.5899444222450256, 0.024326376616954803, 0.07990296185016632, -0.0020868713036179543, 0.37691596150398254, 0.31100958585739136, 0.020652834326028824, -0.0629308819770813, 0.23239155113697052, 0.1873113512992859, 0.1382799744...
https://github.com/huggingface/datasets/issues/4670
Initially, I thought of solving this without any external dependency. Almost everywhere I saw `lzma` can be used for this but there is a caveat that lzma doesn’t work with 7z archives but only single files. In my case the 7z archive has multiple files so it didn't work. Is it fine to use external library here?
Can't extract files from `.7z` zipfile using `download_and_extract`
## Describe the bug I'm adding a new dataset which is a `.7z` zip file in Google drive and contains 3 json files inside. I'm able to download the data files using `download_and_extract` but after downloading it throws this error: ``` >>> dataset = load_dataset("./datasets/mantis/") Using custom data configuration d...
57
Can't extract files from `.7z` zipfile using `download_and_extract` ## Describe the bug I'm adding a new dataset which is a `.7z` zip file in Google drive and contains 3 json files inside. I'm able to download the data files using `download_and_extract` but after downloading it throws this error: ``` >>> dataset =...
[ -0.3009297847747803, -0.22019803524017334, -0.06858150660991669, 0.5899444222450256, 0.024326376616954803, 0.07990296185016632, -0.0020868713036179543, 0.37691596150398254, 0.31100958585739136, 0.020652834326028824, -0.0629308819770813, 0.23239155113697052, 0.1873113512992859, 0.1382799744...
https://github.com/huggingface/datasets/issues/4670
Hi @bhavitvyamalik, thanks for your investigation. On Monday, I started a PR that will eventually close this issue as well: I'm linking it to this. - #4672 Let me know what you think.
Can't extract files from `.7z` zipfile using `download_and_extract`
## Describe the bug I'm adding a new dataset which is a `.7z` zip file in Google drive and contains 3 json files inside. I'm able to download the data files using `download_and_extract` but after downloading it throws this error: ``` >>> dataset = load_dataset("./datasets/mantis/") Using custom data configuration d...
33
Can't extract files from `.7z` zipfile using `download_and_extract` ## Describe the bug I'm adding a new dataset which is a `.7z` zip file in Google drive and contains 3 json files inside. I'm able to download the data files using `download_and_extract` but after downloading it throws this error: ``` >>> dataset =...
[ -0.3009297847747803, -0.22019803524017334, -0.06858150660991669, 0.5899444222450256, 0.024326376616954803, 0.07990296185016632, -0.0020868713036179543, 0.37691596150398254, 0.31100958585739136, 0.020652834326028824, -0.0629308819770813, 0.23239155113697052, 0.1873113512992859, 0.1382799744...
https://github.com/huggingface/datasets/issues/4668
It seems like a private dataset. The viewer is currently not supported on the private datasets.
Dataset Viewer issue for hungnm/multilingual-amazon-review-sentiment-processed
### Link https://huggingface.co/hungnm/multilingual-amazon-review-sentiment ### Description _No response_ ### Owner Yes
16
Dataset Viewer issue for hungnm/multilingual-amazon-review-sentiment-processed ### Link https://huggingface.co/hungnm/multilingual-amazon-review-sentiment ### Description _No response_ ### Owner Yes It seems like a private dataset. The viewer is currently not supported on the private datasets.
[ -0.3856261372566223, -0.004425913095474243, -0.12748859822750092, 0.3359462320804596, -0.08867260813713074, 0.009040430188179016, 0.28803202509880066, 0.19412526488304138, -0.016534913331270218, 0.06608844548463821, -0.2573195695877075, -0.1118909940123558, -0.006693562492728233, 0.1515782...
https://github.com/huggingface/datasets/issues/4666
Hi! I agree we should improve the features equality checks to account for this particular case. However, your code fails due to `answer_start` having the dtype `int64` instead of `int32` after loading from JSON (it's not possible to embed type precision info into a JSON file; `save_to_disk` does that for arrow files), ...
Issues with concatenating datasets
## Describe the bug It is impossible to concatenate datasets if a feature is sequence of dict in one dataset and a dict of sequence in another. But based on the document, it should be automatically converted. > A [datasets.Sequence](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datas...
83
Issues with concatenating datasets ## Describe the bug It is impossible to concatenate datasets if a feature is sequence of dict in one dataset and a dict of sequence in another. But based on the document, it should be automatically converted. > A [datasets.Sequence](https://huggingface.co/docs/datasets/v2.3.2/en...
[ 0.04380054771900177, -0.44405895471572876, -0.015068858861923218, 0.28023624420166016, 0.19299110770225525, 0.18252448737621307, 0.048310212790966034, 0.34112682938575745, -0.15827959775924683, -0.023794397711753845, -0.019963426515460014, 0.4077310562133789, 0.11513883620500565, 0.3839411...
https://github.com/huggingface/datasets/issues/4666
That makes sense. I totally missed the `int64` and `int32` part. Thanks for pointing it out! Will close this issue for now.
Issues with concatenating datasets
## Describe the bug It is impossible to concatenate datasets if a feature is sequence of dict in one dataset and a dict of sequence in another. But based on the document, it should be automatically converted. > A [datasets.Sequence](https://huggingface.co/docs/datasets/v2.3.2/en/package_reference/main_classes#datas...
22
Issues with concatenating datasets ## Describe the bug It is impossible to concatenate datasets if a feature is sequence of dict in one dataset and a dict of sequence in another. But based on the document, it should be automatically converted. > A [datasets.Sequence](https://huggingface.co/docs/datasets/v2.3.2/en...
[ 0.04380054771900177, -0.44405895471572876, -0.015068858861923218, 0.28023624420166016, 0.19299110770225525, 0.18252448737621307, 0.048310212790966034, 0.34112682938575745, -0.15827959775924683, -0.023794397711753845, -0.019963426515460014, 0.4077310562133789, 0.11513883620500565, 0.3839411...
https://github.com/huggingface/datasets/issues/4665
Hi @aleSuglia, thanks for reporting. We are having a look at it. We transfer this issue to the Community tab of the corresponding Hub dataset: https://huggingface.co/datasets/Heriot-WattUniversity/dialog-babi/discussions
Unable to create dataset having Python dataset script only
## Describe the bug Hi there, I'm trying to add the following dataset to Huggingface datasets: https://huggingface.co/datasets/Heriot-WattUniversity/dialog-babi/blob/ I'm trying to do so using the CLI commands but seems that this command generates the wrong `dataset_info.json` file (you can find it in the repo a...
26
Unable to create dataset having Python dataset script only ## Describe the bug Hi there, I'm trying to add the following dataset to Huggingface datasets: https://huggingface.co/datasets/Heriot-WattUniversity/dialog-babi/blob/ I'm trying to do so using the CLI commands but seems that this command generates the ...
[ -0.09877724945545197, -0.18356400728225708, 0.002662248909473419, 0.18234892189502716, 0.24619147181510925, 0.2149374634027481, 0.24684086441993713, 0.318954199552536, 0.25981849431991577, 0.13774046301841736, -0.28843340277671814, -0.02249644137918949, -0.099050372838974, 0.38266256451606...
https://github.com/huggingface/datasets/issues/4661
I can confirm that if I run one job first that processes the dataset, then I can run any jobs in parallel with no problem (no write-concurrency anymore...).
Concurrency bug when using same cache among several jobs
## Describe the bug I used to see this bug with an older version of the datasets. It seems to persist. This is my concrete scenario: I launch several evaluation jobs on a cluster in which I share the file system and I share the cache directory used by huggingface libraries. The evaluation jobs read the same *.csv ...
28
Concurrency bug when using same cache among several jobs ## Describe the bug I used to see this bug with an older version of the datasets. It seems to persist. This is my concrete scenario: I launch several evaluation jobs on a cluster in which I share the file system and I share the cache directory used by hugg...
[ -0.46788421273231506, 0.15032179653644562, -0.005129661411046982, 0.40968137979507446, 0.014813439920544624, 0.036131054162979126, 0.5157451629638672, 0.15018139779567719, 0.39099758863449097, 0.18012003600597382, -0.11120086163282394, -0.029217509552836418, 0.11454731971025467, -0.1449140...
https://github.com/huggingface/datasets/issues/4661
Hi! That's weird. It seems like the error points to the `mkstemp` function, but the official docs state the following: ``` There are no race conditions in the file’s creation, assuming that the platform properly implements the [os.O_EXCL](https://docs.python.org/3/library/os.html#os.O_EXCL) flag for [os.open()](https...
Concurrency bug when using same cache among several jobs
## Describe the bug I used to see this bug with an older version of the datasets. It seems to persist. This is my concrete scenario: I launch several evaluation jobs on a cluster in which I share the file system and I share the cache directory used by huggingface libraries. The evaluation jobs read the same *.csv ...
105
Concurrency bug when using same cache among several jobs ## Describe the bug I used to see this bug with an older version of the datasets. It seems to persist. This is my concrete scenario: I launch several evaluation jobs on a cluster in which I share the file system and I share the cache directory used by hugg...
[ -0.46788421273231506, 0.15032179653644562, -0.005129661411046982, 0.40968137979507446, 0.014813439920544624, 0.036131054162979126, 0.5157451629638672, 0.15018139779567719, 0.39099758863449097, 0.18012003600597382, -0.11120086163282394, -0.029217509552836418, 0.11454731971025467, -0.1449140...
https://github.com/huggingface/datasets/issues/4642
Thanks for reporting @lewtun. I confirm there is an issue with streaming: it does not stream locally.
Streaming issue for ccdv/pubmed-summarization
### Link https://huggingface.co/datasets/ccdv/pubmed-summarization ### Description This was reported by a [user of AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/7). It seems like streaming doesn't work due to the way the dataset loading script is defined? ``` Status c...
17
Streaming issue for ccdv/pubmed-summarization ### Link https://huggingface.co/datasets/ccdv/pubmed-summarization ### Description This was reported by a [user of AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/7). It seems like streaming doesn't work due to the way the dat...
[ -0.5426289439201355, -0.32878822088241577, 0.06800056248903275, 0.013990242034196854, 0.4679545760154724, 0.014805562794208527, 0.16895200312137604, 0.07700993120670319, -0.04853943735361099, 0.044418808072805405, 0.02477150410413742, 0.036796264350414276, 0.05722813308238983, 0.3073819279...
https://github.com/huggingface/datasets/issues/4642
Oh, after investigation, the source of the issue is in the Hub dataset loading script. I'm opening a PR on the Hub dataset.
Streaming issue for ccdv/pubmed-summarization
### Link https://huggingface.co/datasets/ccdv/pubmed-summarization ### Description This was reported by a [user of AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/7). It seems like streaming doesn't work due to the way the dataset loading script is defined? ``` Status c...
23
Streaming issue for ccdv/pubmed-summarization ### Link https://huggingface.co/datasets/ccdv/pubmed-summarization ### Description This was reported by a [user of AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/7). It seems like streaming doesn't work due to the way the dat...
[ -0.5918276309967041, -0.4391927123069763, 0.08316806703805923, 0.012977848760783672, 0.4462500512599945, 0.048140428960323334, 0.16453400254249573, 0.10282789170742035, -0.03348299860954285, 0.005127161741256714, -0.0625341460108757, 0.10899068415164948, 0.015544172376394272, 0.26808062195...
https://github.com/huggingface/datasets/issues/4641
Thanks for reporting, @lewtun. It works locally in streaming mode: ``` {'bid': 27681, 'is_aggregate': True, 'source': 'cliffnotes', 'chapter_path': 'all_chapterized_books/27681-chapters/chapters_1_to_2.txt', 'summary_path': 'finished_summaries/cliffnotes/The Last of the Mohicans/section_1_part_0.txt', 'b...
Dataset Viewer issue for kmfoda/booksum
### Link https://huggingface.co/datasets/kmfoda/booksum ### Description A [user of AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/9) discovered this dataset cannot be streamed due to: ``` Status code: 400 Exception: ClientResponseError Message: 401, messa...
90
Dataset Viewer issue for kmfoda/booksum ### Link https://huggingface.co/datasets/kmfoda/booksum ### Description A [user of AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/9) discovered this dataset cannot be streamed due to: ``` Status code: 400 Exception: Clie...
[ -0.19831322133541107, 0.06330794095993042, 0.006858702749013901, 0.18694768846035004, 0.2838013768196106, 0.1572263091802597, 0.0026058536022901535, 0.27195170521736145, -0.1785532832145691, -0.007661394774913788, -0.34514620900154114, 0.2848372757434845, 0.1423896849155426, -0.03379264101...
https://github.com/huggingface/datasets/issues/4637
@albertvillanova Nice! Let me know if it's something I can fix my self; would love to contribtue!
The "all" split breaks streaming
## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The following throws `ValueError: Bad ...
17
The "all" split breaks streaming ## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The...
[ -0.4380498230457306, -0.2856239378452301, 0.06437302380800247, -0.004341535270214081, 0.1474834382534027, -0.08307398110628128, 0.26352816820144653, 0.20259588956832886, 0.15930166840553284, -0.08981034904718399, -0.15846288204193115, 0.17659145593643188, 0.17207050323486328, 0.20764690637...
https://github.com/huggingface/datasets/issues/4637
@cakiki I was working on this but if you would like to contribute, go ahead. I will close my PR. ;) For the moment I just pushed the test (to see if it impacts other tests).
The "all" split breaks streaming
## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The following throws `ValueError: Bad ...
36
The "all" split breaks streaming ## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The...
[ -0.4182455539703369, -0.22608500719070435, 0.060951799154281616, -0.047827787697315216, 0.13426527380943298, -0.06748953461647034, 0.3213415741920471, 0.24418756365776062, 0.177390456199646, -0.052293263375759125, -0.17178532481193542, 0.2135758399963379, 0.14870870113372803, 0.17265436053...
https://github.com/huggingface/datasets/issues/4637
It impacted the test `test_generator_based_download_and_prepare` and I have fixed this. So that you can copy the test I implemented in my PR and then implement a fix for this issue that passes the test `tests/test_builder.py::test_builder_as_streaming_dataset`.
The "all" split breaks streaming
## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The following throws `ValueError: Bad ...
35
The "all" split breaks streaming ## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The...
[ -0.5483453273773193, -0.09624453634023666, 0.05054810643196106, 0.002654826268553734, 0.19245997071266174, -0.08195128291845322, 0.2807871699333191, 0.33494099974632263, 0.07637279480695724, 0.012204084545373917, -0.13003577291965485, 0.16125279664993286, 0.10651907324790955, 0.21073703467...
https://github.com/huggingface/datasets/issues/4637
Hi @cakiki are you still interested in working on this? Are you planning to open a PR?
The "all" split breaks streaming
## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The following throws `ValueError: Bad ...
17
The "all" split breaks streaming ## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The...
[ -0.45975127816200256, -0.2987724542617798, 0.057182677090168, 0.010309534147381783, 0.1449601948261261, -0.09658169746398926, 0.26341259479522705, 0.20119531452655792, 0.1692960262298584, -0.07788259536027908, -0.20090913772583008, 0.18641898036003113, 0.15866521000862122, 0.23732271790504...
https://github.com/huggingface/datasets/issues/4637
Hi @albertvillanova ! Sorry it took so long; I wanted to spend this weekend working on it.
The "all" split breaks streaming
## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The following throws `ValueError: Bad ...
17
The "all" split breaks streaming ## Describe the bug Not sure if this is a bug or just the way streaming works, but setting `streaming=True` did not work when setting `split="all"` ## Steps to reproduce the bug The following works: ```python ds = load_dataset('super_glue', 'wsc.fixed', split='all') ``` The...
[ -0.44266167283058167, -0.27027565240859985, 0.06749046593904495, -0.007207533344626427, 0.1603325605392456, -0.07714983820915222, 0.2840169668197632, 0.212457075715065, 0.17918053269386292, -0.06354290246963501, -0.19622598588466644, 0.1992941051721573, 0.18266938626766205, 0.2018694132566...
https://github.com/huggingface/datasets/issues/4635
Thanks for reporting, @e-tornike Some context: - #4527 The dataset loads locally in streaming mode: ```python In [2]: from datasets import load_dataset; ds = load_dataset("vadis/sv-ident", split="validation", streaming=True); item = next(iter(ds)); item Using custom data configuration default Out[2]: {'s...
Dataset Viewer issue for vadis/sv-ident
### Link https://huggingface.co/datasets/vadis/sv-ident/viewer/default/validation ### Description Error message when loading validation split in the viewer: ``` Status code: 400 Exception: Status400Error Message: The split cache is empty. ``` ### Owner _No response_
75
Dataset Viewer issue for vadis/sv-ident ### Link https://huggingface.co/datasets/vadis/sv-ident/viewer/default/validation ### Description Error message when loading validation split in the viewer: ``` Status code: 400 Exception: Status400Error Message: The split cache is empty. ``` ### Owner _...
[ -0.3434339165687561, -0.09418420493602753, -0.013141974806785583, 0.3741168975830078, 0.16894745826721191, 0.10632988810539246, 0.2805379629135132, 0.477335661649704, 0.11510268598794937, 0.11659595370292664, -0.1720753312110901, -0.06304918229579926, 0.10673806071281433, 0.003729291260242...
https://github.com/huggingface/datasets/issues/4635
~~I have forced the refresh of the split in the preview without success.~~ I have forced the refresh of the split in the preview, and now it works.
Dataset Viewer issue for vadis/sv-ident
### Link https://huggingface.co/datasets/vadis/sv-ident/viewer/default/validation ### Description Error message when loading validation split in the viewer: ``` Status code: 400 Exception: Status400Error Message: The split cache is empty. ``` ### Owner _No response_
28
Dataset Viewer issue for vadis/sv-ident ### Link https://huggingface.co/datasets/vadis/sv-ident/viewer/default/validation ### Description Error message when loading validation split in the viewer: ``` Status code: 400 Exception: Status400Error Message: The split cache is empty. ``` ### Owner _...
[ -0.3355335593223572, -0.13491281867027283, 0.01818012073636055, 0.35208505392074585, 0.16705581545829773, 0.04474681615829468, 0.31114447116851807, 0.3220456540584564, 0.08171212673187256, 0.19327159225940704, -0.18516165018081665, -0.07507157325744629, 0.19219918549060822, -0.042378515005...
https://github.com/huggingface/datasets/issues/4635
OK, thank you @e-tornike. Apparently, after forcing the refresh, we just had to wait a little until it is effectively refreshed.
Dataset Viewer issue for vadis/sv-ident
### Link https://huggingface.co/datasets/vadis/sv-ident/viewer/default/validation ### Description Error message when loading validation split in the viewer: ``` Status code: 400 Exception: Status400Error Message: The split cache is empty. ``` ### Owner _No response_
21
Dataset Viewer issue for vadis/sv-ident ### Link https://huggingface.co/datasets/vadis/sv-ident/viewer/default/validation ### Description Error message when loading validation split in the viewer: ``` Status code: 400 Exception: Status400Error Message: The split cache is empty. ``` ### Owner _...
[ -0.3959176540374756, -0.130961611866951, 0.004104446619749069, 0.2589777410030365, 0.19081801176071167, 0.04927724599838257, 0.3023390769958496, 0.335598349571228, 0.09101109951734543, 0.13778793811798096, -0.2060120403766632, -0.08759640157222748, 0.26918068528175354, -0.03794294968247413...
https://github.com/huggingface/datasets/issues/4635
I'm closing this issue as it was solved after forcing the refresh of the split in the preview.
Dataset Viewer issue for vadis/sv-ident
### Link https://huggingface.co/datasets/vadis/sv-ident/viewer/default/validation ### Description Error message when loading validation split in the viewer: ``` Status code: 400 Exception: Status400Error Message: The split cache is empty. ``` ### Owner _No response_
18
Dataset Viewer issue for vadis/sv-ident ### Link https://huggingface.co/datasets/vadis/sv-ident/viewer/default/validation ### Description Error message when loading validation split in the viewer: ``` Status code: 400 Exception: Status400Error Message: The split cache is empty. ``` ### Owner _...
[ -0.3871884047985077, -0.13803401589393616, 0.004316393285989761, 0.35208970308303833, 0.18334683775901794, 0.013372644782066345, 0.3211614787578583, 0.35191866755485535, 0.07210041582584381, 0.15288770198822021, -0.1944739818572998, -0.023558974266052246, 0.1666756570339203, -0.02906504645...
https://github.com/huggingface/datasets/issues/4634
Could you provide the error details. It is difficult to debug otherwise. Also try other config. `ha` is not a valid.
Can't load the Hausa audio dataset
common_voice_train = load_dataset("common_voice", "ha", split="train+validation")
21
Can't load the Hausa audio dataset common_voice_train = load_dataset("common_voice", "ha", split="train+validation") Could you provide the error details. It is difficult to debug otherwise. Also try other config. `ha` is not a valid.
[ -0.39649564027786255, -0.23399199545383453, -0.04434414580464363, -0.006479237228631973, 0.4224720001220703, 0.07074649631977081, 0.4470023214817047, 0.18957604467868805, 0.10116274654865265, 0.20257806777954102, -0.411588191986084, 0.03215451538562775, -0.02998041920363903, 0.181934848427...
https://github.com/huggingface/datasets/issues/4632
Hi ! `ds.sort()` does sort the full dataset, not just one column: ```python from datasets import * ds = Dataset.from_dict({"foo": [3, 2, 1], "bar": ["c", "b", "a"]}) print(d.sort("foo").to_pandas() # foo bar # 0 1 a # 1 2 b # 2 3 c ``` What made you think it was not the case ? Did you ex...
'sort' method sorts one column only
The 'sort' method changes the order of one column only (the one defined by the argument 'column'), thus creating a mismatch between a sample fields. I would expect it to change the order of the samples as a whole, based on the 'column' order.
67
'sort' method sorts one column only The 'sort' method changes the order of one column only (the one defined by the argument 'column'), thus creating a mismatch between a sample fields. I would expect it to change the order of the samples as a whole, based on the 'column' order. Hi ! `ds.sort()` does sort the full d...
[ 0.2804211378097534, -0.11438887566328049, -0.09566587209701538, 0.10528118908405304, 0.2428475320339203, -0.044962041079998016, 0.2915065586566925, 0.18747253715991974, 0.021146386861801147, 0.3759722411632538, 0.058809541165828705, 0.34168359637260437, 0.3120456337928772, 0.06093637645244...
https://github.com/huggingface/datasets/issues/4632
Hi! thank you for your quick reply! I wanted to sort the `cnn_dailymail` dataset by the length of the labels (num of characters). I added a new column to the dataset (`ds.add_column`) with the lengths and then sorted by this new column. Only the new length column was sorted, the reset left in their original order.
'sort' method sorts one column only
The 'sort' method changes the order of one column only (the one defined by the argument 'column'), thus creating a mismatch between a sample fields. I would expect it to change the order of the samples as a whole, based on the 'column' order.
56
'sort' method sorts one column only The 'sort' method changes the order of one column only (the one defined by the argument 'column'), thus creating a mismatch between a sample fields. I would expect it to change the order of the samples as a whole, based on the 'column' order. Hi! thank you for your quick reply! ...
[ 0.32923564314842224, -0.11990857869386673, -0.04257431626319885, 0.08674991130828857, 0.14336824417114258, -0.13137584924697876, 0.26586392521858215, 0.07707938551902771, 0.11549898982048035, 0.33633172512054443, 0.020844779908657074, 0.32472506165504456, 0.16189691424369812, 0.13079905509...
https://github.com/huggingface/datasets/issues/4623
Hi ! We haven't implemented the conversion from images data to PyTorch tensors yet I think cc @mariosasko
Loading MNIST as Pytorch Dataset
## Describe the bug Conversion of MNIST dataset to pytorch fails with bug ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mnist", split="train") dataset.set_format('torch') dataset[0] print() ``` ## Expected results Expect to see torch tensors image and l...
18
Loading MNIST as Pytorch Dataset ## Describe the bug Conversion of MNIST dataset to pytorch fails with bug ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mnist", split="train") dataset.set_format('torch') dataset[0] print() ``` ## Expected results Expe...
[ -0.08833073824644089, -0.09968747198581696, 0.013698086142539978, 0.17849546670913696, 0.29652827978134155, -0.16515463590621948, 0.45454928278923035, 0.4487600028514862, 0.09683342278003693, 0.34280654788017273, -0.035968851298093796, 0.7176252603530884, -0.1690439134836197, -0.1498890519...
https://github.com/huggingface/datasets/issues/4623
So I understand: set_format() does not properly do the conversion to pytorch tensors from PIL images. So that someone who stumbles on this can use the package: ```python dataset = load_dataset("mnist", split="train") def transform_func(examples): examples["image"] = [np.array(img) for img in examples["i...
Loading MNIST as Pytorch Dataset
## Describe the bug Conversion of MNIST dataset to pytorch fails with bug ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mnist", split="train") dataset.set_format('torch') dataset[0] print() ``` ## Expected results Expect to see torch tensors image and l...
48
Loading MNIST as Pytorch Dataset ## Describe the bug Conversion of MNIST dataset to pytorch fails with bug ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mnist", split="train") dataset.set_format('torch') dataset[0] print() ``` ## Expected results Expe...
[ -0.08833073824644089, -0.09968747198581696, 0.013698086142539978, 0.17849546670913696, 0.29652827978134155, -0.16515463590621948, 0.45454928278923035, 0.4487600028514862, 0.09683342278003693, 0.34280654788017273, -0.035968851298093796, 0.7176252603530884, -0.1690439134836197, -0.1498890519...
https://github.com/huggingface/datasets/issues/4623
This then appears to work with pytorch dataloaders as: ``` dataloader=torch.utils.data.DataLoader(dataset,batch_size=1) ``` and tensorflow as: ``` dataset=dataset.to_tf_dataset(batch_size=1) ```
Loading MNIST as Pytorch Dataset
## Describe the bug Conversion of MNIST dataset to pytorch fails with bug ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mnist", split="train") dataset.set_format('torch') dataset[0] print() ``` ## Expected results Expect to see torch tensors image and l...
18
Loading MNIST as Pytorch Dataset ## Describe the bug Conversion of MNIST dataset to pytorch fails with bug ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mnist", split="train") dataset.set_format('torch') dataset[0] print() ``` ## Expected results Expe...
[ -0.08833073824644089, -0.09968747198581696, 0.013698086142539978, 0.17849546670913696, 0.29652827978134155, -0.16515463590621948, 0.45454928278923035, 0.4487600028514862, 0.09683342278003693, 0.34280654788017273, -0.035968851298093796, 0.7176252603530884, -0.1690439134836197, -0.1498890519...
https://github.com/huggingface/datasets/issues/4623
Hi! `set_transform`/`with_transform` is indeed the correct solution for the conversion. Improving this part of the API is one of the things I'm working on currently, so stay tuned!
Loading MNIST as Pytorch Dataset
## Describe the bug Conversion of MNIST dataset to pytorch fails with bug ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mnist", split="train") dataset.set_format('torch') dataset[0] print() ``` ## Expected results Expect to see torch tensors image and l...
28
Loading MNIST as Pytorch Dataset ## Describe the bug Conversion of MNIST dataset to pytorch fails with bug ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("mnist", split="train") dataset.set_format('torch') dataset[0] print() ``` ## Expected results Expe...
[ -0.08833073824644089, -0.09968747198581696, 0.013698086142539978, 0.17849546670913696, 0.29652827978134155, -0.16515463590621948, 0.45454928278923035, 0.4487600028514862, 0.09683342278003693, 0.34280654788017273, -0.035968851298093796, 0.7176252603530884, -0.1690439134836197, -0.1498890519...
https://github.com/huggingface/datasets/issues/4619
If you add the line `dataset2.set_format('np')` before calling `dataset2[0]['tmp']` it should return `np.ndarray`. I believe internally it will not store it as a list, it is only returning a list when you index it. ``` In [1]: import datasets, numpy as np In [2]: dataset = datasets.load_dataset("glue", "mrpc")["v...
np arrays get turned into native lists
## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import datasets, numpy as np >>> dataset = datas...
71
np arrays get turned into native lists ## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import d...
[ 0.14321213960647583, -0.08071310818195343, -0.051935870200395584, 0.08374584466218948, 0.38180938363075256, 0.12155997008085251, 0.3182194232940674, 0.2018505483865738, 0.335906445980072, 0.14612984657287598, -0.0025860480964183807, 0.6777682900428772, 0.17205004394054413, -0.0834649577736...
https://github.com/huggingface/datasets/issues/4619
I see, thanks! Any idea if the default numpy → list conversion might cause precision loss?
np arrays get turned into native lists
## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import datasets, numpy as np >>> dataset = datas...
16
np arrays get turned into native lists ## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import d...
[ 0.0756755918264389, -0.06403493136167526, -0.046656638383865356, 0.01681371219456196, 0.3693181276321411, 0.09844532608985901, 0.30850595235824585, 0.1587127298116684, 0.24788251519203186, 0.15585017204284668, 0.0327441468834877, 0.6403749585151672, 0.1829426884651184, -0.10110802203416824...
https://github.com/huggingface/datasets/issues/4619
I'm not super familiar with our datasets works internally, but I think your `np` array will be stored in a `pyarrow` format, and then you take a view of this as a python array. In which case, I think the precision should be preserved.
np arrays get turned into native lists
## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import datasets, numpy as np >>> dataset = datas...
44
np arrays get turned into native lists ## Describe the bug When attaching an `np.array` field, it seems that it automatically gets turned into a list (see below). Why is this happening? Could it lose precision? Is there a way to make sure this doesn't happen? ## Steps to reproduce the bug ```python >>> import d...
[ 0.08610022068023682, -0.04592141509056091, -0.055430006235837936, 0.03548094630241394, 0.3768508732318878, 0.09786176681518555, 0.27538254857063293, 0.15473748743534088, 0.1943831890821457, 0.15703201293945312, 0.01732490211725235, 0.6573182940483093, 0.18816936016082764, -0.07049448043107...
https://github.com/huggingface/datasets/issues/4618
Hi! The `imagefolder` script is already quite complex, so a standalone script sounds better. Also, I suggest we create an org on the Hub (e.g. `hf-loaders`) and store such scripts there for easier maintenance rather than having them as packaged modules (IMO only very generic loaders should be packaged). WDYT @lhoestq @...
contribute data loading for object detection datasets with yolo data format
**Is your feature request related to a problem? Please describe.** At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading standard object detection datasets ([original discussion here](https://hugging...
53
contribute data loading for object detection datasets with yolo data format **Is your feature request related to a problem? Please describe.** At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading ...
[ -0.19951289892196655, -0.22327753901481628, 0.030088037252426147, 0.22801122069358826, 0.0024934429675340652, -0.1767900288105011, 0.3969915807247162, 0.33595719933509827, 0.7367867231369019, 0.016156122088432312, -0.3636413514614105, -0.009577702730894089, -0.22434958815574646, 0.55528223...
https://github.com/huggingface/datasets/issues/4618
Thank you for the suggestion @mariosasko . I agree with the point, but I have a few doubts 1. How would the user access the script if it's not a part of the core codebase? 2. Could you direct me as to what will be the tasks I have to do to contribute to the code? As per my understanding, it would be like 1. Cr...
contribute data loading for object detection datasets with yolo data format
**Is your feature request related to a problem? Please describe.** At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading standard object detection datasets ([original discussion here](https://hugging...
135
contribute data loading for object detection datasets with yolo data format **Is your feature request related to a problem? Please describe.** At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading ...
[ -0.08097730576992035, -0.005867019295692444, 0.019088350236415863, 0.1494784951210022, -0.14927765727043152, -0.057615164667367935, 0.48288077116012573, 0.2251262664794922, 0.6821550130844116, 0.065225750207901, -0.3322117030620575, -0.11917443573474884, -0.22630931437015533, 0.49685573577...
https://github.com/huggingface/datasets/issues/4618
1. Like this: `load_dataset("hf-loaders/yolo", data_files=...)` 2. The steps would be: 1. Create a new org `hf-community-loaders` (IMO a better name than "hf-loaders") and add me (as an admin) 2. Create a new dataset repo `yolo` and add the loading script to it (`yolo.py`) 3. Open a discussion to reques...
contribute data loading for object detection datasets with yolo data format
**Is your feature request related to a problem? Please describe.** At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading standard object detection datasets ([original discussion here](https://hugging...
73
contribute data loading for object detection datasets with yolo data format **Is your feature request related to a problem? Please describe.** At the moment, HF datasets loads [image classification datasets](https://huggingface.co/docs/datasets/image_process) out-of-the-box. There could be a data loader for loading ...
[ -0.1855606734752655, -0.03586699068546295, 0.03169304132461548, 0.2170218825340271, -0.05083656311035156, -0.1560753583908081, 0.42272377014160156, 0.31717684864997864, 0.5954253673553467, 0.04067279025912285, -0.3604075312614441, -0.0022462159395217896, -0.19751179218292236, 0.45848107337...
https://github.com/huggingface/datasets/issues/4612
Apparently, `fsspec` does not allow access to attribute-based modules anymore, such as `fsspec.async`. However, this is a fairly simple fix: - Change the import to: `from fsspec import asyn`; - Change line 18 to: `asyn.iothread[0] = None`; - Change line 19 to `asyn.loop[0] = None`.
Release 2.3.0 broke custom iterable datasets
## Describe the bug Trying to iterate examples from custom iterable dataset fails to bug introduced in `torch_iterable_dataset.py` since the release of 2.3.0. ## Steps to reproduce the bug ```python next(iter(custom_iterable_dataset)) ``` ## Expected results `next(iter(custom_iterable_dataset))` should retu...
45
Release 2.3.0 broke custom iterable datasets ## Describe the bug Trying to iterate examples from custom iterable dataset fails to bug introduced in `torch_iterable_dataset.py` since the release of 2.3.0. ## Steps to reproduce the bug ```python next(iter(custom_iterable_dataset)) ``` ## Expected results `n...
[ -0.2921888828277588, -0.13219118118286133, -0.06178443133831024, 0.08947113901376724, -0.02799144759774208, -0.06942638754844666, 0.436379998922348, 0.08186624944210052, -0.10973886400461197, 0.0378122515976429, 0.07510096579790115, 0.4210348129272461, -0.2893877625465393, 0.15376985073089...
https://github.com/huggingface/datasets/issues/4612
Hi! I think it's easier to replace `import fsspec` with `import fsspec.asyn` and leave the rest unchanged. @gugarosa Are you interested in submitting a PR?
Release 2.3.0 broke custom iterable datasets
## Describe the bug Trying to iterate examples from custom iterable dataset fails to bug introduced in `torch_iterable_dataset.py` since the release of 2.3.0. ## Steps to reproduce the bug ```python next(iter(custom_iterable_dataset)) ``` ## Expected results `next(iter(custom_iterable_dataset))` should retu...
25
Release 2.3.0 broke custom iterable datasets ## Describe the bug Trying to iterate examples from custom iterable dataset fails to bug introduced in `torch_iterable_dataset.py` since the release of 2.3.0. ## Steps to reproduce the bug ```python next(iter(custom_iterable_dataset)) ``` ## Expected results `n...
[ -0.2949201762676239, -0.20614516735076904, -0.095347560942173, 0.04674126207828522, -0.08689738810062408, -0.04158634692430496, 0.41082963347435, 0.09821175038814545, -0.09093774110078812, 0.013974040746688843, 0.09520997107028961, 0.3712005913257599, -0.2854810059070587, 0.191101968288421...
https://github.com/huggingface/datasets/issues/4610
I believe the issue is in `codeparrot/github-code`. `base_path` param is missing - https://huggingface.co/datasets/codeparrot/github-code/blob/main/github-code.py#L169 Function definition has changed. https://github.com/huggingface/datasets/blob/0e1c629cfb9f9ba124537ba294a0ec451584da5f/src/datasets/data_files.py#L5...
codeparrot/github-code failing to load
## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loaded dataset object ## Actual results `...
38
codeparrot/github-code failing to load ## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loa...
[ -0.2169986367225647, -0.06861060857772827, -0.08182664960622787, 0.21229791641235352, 0.22685472667217255, 0.02494257688522339, 0.42694783210754395, 0.5157306790351868, 0.07178191095590591, -0.03193698823451996, 0.26133885979652405, 0.5430587530136108, -0.08034805953502655, 0.2145945429801...
https://github.com/huggingface/datasets/issues/4610
Good catch ! We recently did a breaking change in `get_patterns_in_dataset_repository`, I think we can revert it
codeparrot/github-code failing to load
## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loaded dataset object ## Actual results `...
17
codeparrot/github-code failing to load ## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loa...
[ -0.2169986367225647, -0.06861060857772827, -0.08182664960622787, 0.21229791641235352, 0.22685472667217255, 0.02494257688522339, 0.42694783210754395, 0.5157306790351868, 0.07178191095590591, -0.03193698823451996, 0.26133885979652405, 0.5430587530136108, -0.08034805953502655, 0.2145945429801...
https://github.com/huggingface/datasets/issues/4610
> Good catch ! We recently did a breaking change in `get_patterns_in_dataset_repository`, I think we can revert it I can't wait for that releasee. Broke my application
codeparrot/github-code failing to load
## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loaded dataset object ## Actual results `...
27
codeparrot/github-code failing to load ## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loa...
[ -0.2169986367225647, -0.06861060857772827, -0.08182664960622787, 0.21229791641235352, 0.22685472667217255, 0.02494257688522339, 0.42694783210754395, 0.5157306790351868, 0.07178191095590591, -0.03193698823451996, 0.26133885979652405, 0.5430587530136108, -0.08034805953502655, 0.2145945429801...
https://github.com/huggingface/datasets/issues/4610
This simple workaround should fix: https://huggingface.co/datasets/codeparrot/github-code/discussions/2 `get_patterns_in_dataset_repository` can treat whether `base_path=None`, so we just need to make sure that codeparrot/github-code `_split_generators` calls with such an argument.
codeparrot/github-code failing to load
## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loaded dataset object ## Actual results `...
26
codeparrot/github-code failing to load ## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loa...
[ -0.2169986367225647, -0.06861060857772827, -0.08182664960622787, 0.21229791641235352, 0.22685472667217255, 0.02494257688522339, 0.42694783210754395, 0.5157306790351868, 0.07178191095590591, -0.03193698823451996, 0.26133885979652405, 0.5430587530136108, -0.08034805953502655, 0.2145945429801...
https://github.com/huggingface/datasets/issues/4610
I am afraid your suggested change @gugarosa will break compatibility with older datasets versions that don't have `base_path` argument in `get_patterns_in_dataset_repository`, as a workaround while the issue gets resolved in `datasets` can you downgrade your datasets version to `<=2.1.0` ? @lvwerra do you think we s...
codeparrot/github-code failing to load
## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loaded dataset object ## Actual results `...
57
codeparrot/github-code failing to load ## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loa...
[ -0.2169986367225647, -0.06861060857772827, -0.08182664960622787, 0.21229791641235352, 0.22685472667217255, 0.02494257688522339, 0.42694783210754395, 0.5157306790351868, 0.07178191095590591, -0.03193698823451996, 0.26133885979652405, 0.5430587530136108, -0.08034805953502655, 0.2145945429801...
https://github.com/huggingface/datasets/issues/4610
Actually I think it's just simpler to fix it in the dataset itself, let me open a PR EDIT: PR opened here: https://huggingface.co/datasets/codeparrot/github-code/discussions/3
codeparrot/github-code failing to load
## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loaded dataset object ## Actual results `...
23
codeparrot/github-code failing to load ## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loa...
[ -0.2169986367225647, -0.06861060857772827, -0.08182664960622787, 0.21229791641235352, 0.22685472667217255, 0.02494257688522339, 0.42694783210754395, 0.5157306790351868, 0.07178191095590591, -0.03193698823451996, 0.26133885979652405, 0.5430587530136108, -0.08034805953502655, 0.2145945429801...
https://github.com/huggingface/datasets/issues/4610
> I am afraid your suggested change @gugarosa will break compatibility with older datasets versions that don't have `base_path` argument in `get_patterns_in_dataset_repository`, as a workaround while the issue gets resolved in `datasets` can you downgrade your datasets version to `<=2.1.0` ? > @lvwerra do you think we...
codeparrot/github-code failing to load
## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loaded dataset object ## Actual results `...
83
codeparrot/github-code failing to load ## Describe the bug codeparrot/github-code fails to load with a `TypeError: get_patterns_in_dataset_repository() missing 1 required positional argument: 'base_path'` ## Steps to reproduce the bug ```python from datasets import load_dataset ``` ## Expected results loa...
[ -0.2169986367225647, -0.06861060857772827, -0.08182664960622787, 0.21229791641235352, 0.22685472667217255, 0.02494257688522339, 0.42694783210754395, 0.5157306790351868, 0.07178191095590591, -0.03193698823451996, 0.26133885979652405, 0.5430587530136108, -0.08034805953502655, 0.2145945429801...
https://github.com/huggingface/datasets/issues/4609
Hi! You can use streaming to fetch only a subset of the data: ```python raw_dataset = load_dataset("librispeech_asr", "clean", split="train.100", streaming=True) ``` Also, we plan to make it possible to download a particular split in the non-streaming mode, but this task is not easy due to how our dataset scripts a...
librispeech dataset has to download whole subset when specifing the split to use
## Describe the bug librispeech dataset has to download whole subset when specifing the split to use ## Steps to reproduce the bug see below # Sample code to reproduce the bug ``` !pip install datasets from datasets import load_dataset raw_dataset = load_dataset("librispeech_asr", "clean", split="train.100") ...
51
librispeech dataset has to download whole subset when specifing the split to use ## Describe the bug librispeech dataset has to download whole subset when specifing the split to use ## Steps to reproduce the bug see below # Sample code to reproduce the bug ``` !pip install datasets from datasets import load_...
[ -0.49825388193130493, -0.36330580711364746, -0.023367391899228096, 0.4209215044975281, 0.11685554683208466, 0.11956610530614853, 0.2142052799463272, 0.3421615958213806, 0.14997723698616028, 0.17393377423286438, -0.17471809685230255, 0.13586139678955078, 0.0720164105296135, 0.33009967207908...
https://github.com/huggingface/datasets/issues/4606
Hi! The GH/no-namespace datasets versioning is synced with the version of the `datasets` lib, which means that the `wikiann` script was modified between the two compared versions. In this scenario, you can ensure reproducibility by pinning the script version, which is done by passing `revision="x.y.z"` (e.g. `revision=...
evaluation result changes after `datasets` version change
## Describe the bug evaluation result changes after `datasets` version change ## Steps to reproduce the bug 1. Train a model on WikiAnn 2. reload the ckpt -> test accuracy becomes same as eval accuracy 3. such behavior is gone after downgrading `datasets` https://colab.research.google.com/drive/1kYz7-aZRGdaya...
49
evaluation result changes after `datasets` version change ## Describe the bug evaluation result changes after `datasets` version change ## Steps to reproduce the bug 1. Train a model on WikiAnn 2. reload the ckpt -> test accuracy becomes same as eval accuracy 3. such behavior is gone after downgrading `dataset...
[ -0.3407287001609802, 0.09586378931999207, 0.02014673501253128, -0.019706159830093384, -0.04399869218468666, -0.23062753677368164, 0.2176782339811325, 0.22050516307353973, -0.3871917724609375, 0.33513396978378296, -0.1134723573923111, 0.5352175235748291, 0.14174814522266388, 0.0886724814772...
https://github.com/huggingface/datasets/issues/4605
Yes, this dataset is "gated": you first have to go to https://huggingface.co/datasets/boris/gis_filtered and click "Access repository" (if you accept to share your contact information with the repository authors).
Dataset Viewer issue for boris/gis_filtered
### Link https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train ### Description When I try to access this from the website I get this error: Status code: 400 Exception: ClientResponseError Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datase...
28
Dataset Viewer issue for boris/gis_filtered ### Link https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train ### Description When I try to access this from the website I get this error: Status code: 400 Exception: ClientResponseError Message: 401, message='Unautho...
[ -0.05149060860276222, 0.05963259935379028, -0.005819238722324371, 0.3893195390701294, 0.3195672333240509, -0.06691592931747437, 0.35544872283935547, 0.21970365941524506, -0.003077492117881775, 0.07069799304008484, -0.3920576572418213, -0.05367283523082733, -0.12292259931564331, 0.247049897...
https://github.com/huggingface/datasets/issues/4605
I could reproduce the error, even though I provided my token and accepted the gate form. It looks like an error from `datasets`
Dataset Viewer issue for boris/gis_filtered
### Link https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train ### Description When I try to access this from the website I get this error: Status code: 400 Exception: ClientResponseError Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datase...
23
Dataset Viewer issue for boris/gis_filtered ### Link https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train ### Description When I try to access this from the website I get this error: Status code: 400 Exception: ClientResponseError Message: 401, message='Unautho...
[ -0.057105738669633865, 0.05060325562953949, 0.02384745329618454, 0.37848907709121704, 0.2851393222808838, -0.09058135747909546, 0.34150803089141846, 0.21559299528598785, 0.02424778789281845, 0.06558852642774582, -0.28987181186676025, -0.048895180225372314, -0.04567303508520126, 0.273819476...
https://github.com/huggingface/datasets/issues/4605
This is indeed a bug in `datasets`. Parquet datasets in gated/private repositories can't be streamed properly, which caused the viewer to fail. I opened a PR at https://github.com/huggingface/datasets/pull/4608
Dataset Viewer issue for boris/gis_filtered
### Link https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train ### Description When I try to access this from the website I get this error: Status code: 400 Exception: ClientResponseError Message: 401, message='Unauthorized', url=URL('https://huggingface.co/datase...
28
Dataset Viewer issue for boris/gis_filtered ### Link https://huggingface.co/datasets/boris/gis_filtered/viewer/boris--gis_filtered/train ### Description When I try to access this from the website I get this error: Status code: 400 Exception: ClientResponseError Message: 401, message='Unautho...
[ -0.14007125794887543, 0.049533411860466, 0.04688618332147598, 0.344443142414093, 0.2942972481250763, -0.07629582285881042, 0.27279728651046753, 0.17340964078903198, 0.020985320210456848, -0.004625730216503143, -0.2716723680496216, 0.02345956861972809, -0.12111852318048477, 0.33108142018318...
https://github.com/huggingface/datasets/issues/4597
cc @huggingface/datasets: it seems like https://www.researchgate.net/ is flaky for datasets hosting (I put the "hosted-on-google-drive" tag since it's the same kind of issue I think)
Streaming issue for financial_phrasebank
### Link https://huggingface.co/datasets/financial_phrasebank/viewer/sentences_allagree/train ### Description As reported by a community member using [AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/5#62bc217436d0e5d316a768f0), there seems to be a problem streaming this dat...
25
Streaming issue for financial_phrasebank ### Link https://huggingface.co/datasets/financial_phrasebank/viewer/sentences_allagree/train ### Description As reported by a community member using [AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/5#62bc217436d0e5d316a768f0), the...
[ -0.29374682903289795, 0.23182758688926697, 0.024344168603420258, 0.1528240442276001, 0.2025180160999298, 0.07448139786720276, 0.2572740912437439, 0.046840306371450424, -0.10459239780902863, -0.07681125402450562, 0.08009582757949829, -0.2597595155239105, -0.04459231346845627, 0.519847393035...
https://github.com/huggingface/datasets/issues/4597
License is Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0). We can host their data on the Hub.
Streaming issue for financial_phrasebank
### Link https://huggingface.co/datasets/financial_phrasebank/viewer/sentences_allagree/train ### Description As reported by a community member using [AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/5#62bc217436d0e5d316a768f0), there seems to be a problem streaming this dat...
18
Streaming issue for financial_phrasebank ### Link https://huggingface.co/datasets/financial_phrasebank/viewer/sentences_allagree/train ### Description As reported by a community member using [AutoTrain Evaluate](https://huggingface.co/spaces/autoevaluate/model-evaluator/discussions/5#62bc217436d0e5d316a768f0), the...
[ -0.40842247009277344, -0.05966603755950928, 0.0468292161822319, 0.1991681009531021, 0.3641000986099243, -0.008549951016902924, 0.20734119415283203, 0.1355283111333847, -0.30944085121154785, 0.007970601320266724, -0.06648796051740646, 0.07511922717094421, 0.014804817736148834, 0.50222092866...
https://github.com/huggingface/datasets/issues/4596
Finally fixed! We updated the dataset viewer and it fixed the issue. https://huggingface.co/datasets/universal_dependencies/viewer/aqz_tudet/train <img width="1561" alt="Capture d’écran 2022-09-07 à 13 29 18" src="https://user-images.githubusercontent.com/1676121/188867795-4f7dd438-d4f2-46cd-8a92-20a37fb2d6bc.p...
Dataset Viewer issue for universal_dependencies
### Link https://huggingface.co/datasets/universal_dependencies ### Description invalid json response body at https://datasets-server.huggingface.co/splits?dataset=universal_dependencies reason: Unexpected token I in JSON at position 0 ### Owner _No response_
23
Dataset Viewer issue for universal_dependencies ### Link https://huggingface.co/datasets/universal_dependencies ### Description invalid json response body at https://datasets-server.huggingface.co/splits?dataset=universal_dependencies reason: Unexpected token I in JSON at position 0 ### Owner _No response_ Fin...
[ -0.09011433273553848, -0.10586259514093399, 0.002528589218854904, 0.2226160168647766, 0.2298666387796402, -0.08204874396324158, 0.1281779706478119, 0.41559115052223206, -0.021760176867246628, 0.0717916414141655, 0.05254869908094406, 0.2113329917192459, -0.061486802995204926, 0.128121420741...
https://github.com/huggingface/datasets/issues/4595
The value is in the data, it's not an issue with the "dataset-viewer". <img width="1161" alt="Capture d’écran 2022-06-29 à 10 25 51" src="https://user-images.githubusercontent.com/1676121/176389325-4d2a9a7f-1583-45b8-aa7a-960ffaa6a36a.png"> Maybe open a PR: https://huggingface.co/datasets/cakiki/rosetta-code/d...
Dataset Viewer issue with False positive PII redaction
### Link https://huggingface.co/datasets/cakiki/rosetta-code ### Description Hello, I just noticed an entry being redacted that shouldn't have been: `RootMeanSquare@Range[10]` is being displayed as `[email protected][10]` ### Owner _No response_
28
Dataset Viewer issue with False positive PII redaction ### Link https://huggingface.co/datasets/cakiki/rosetta-code ### Description Hello, I just noticed an entry being redacted that shouldn't have been: `RootMeanSquare@Range[10]` is being displayed as `[email protected][10]` ### Owner _No response_ The val...
[ -0.1181170791387558, -0.08623408526182175, -0.10206493735313416, 0.353374719619751, 0.0584719181060791, -0.22175189852714539, 0.5019272565841675, 0.2594321072101593, -0.08828476816415787, 0.01801598072052002, -0.006201509386301041, 0.3732949197292328, 0.2695213556289673, 0.6419989466667175...
https://github.com/huggingface/datasets/issues/4595
This was indeed a scraping issue which I assumed was a display issue; sorry about that!
Dataset Viewer issue with False positive PII redaction
### Link https://huggingface.co/datasets/cakiki/rosetta-code ### Description Hello, I just noticed an entry being redacted that shouldn't have been: `RootMeanSquare@Range[10]` is being displayed as `[email protected][10]` ### Owner _No response_
16
Dataset Viewer issue with False positive PII redaction ### Link https://huggingface.co/datasets/cakiki/rosetta-code ### Description Hello, I just noticed an entry being redacted that shouldn't have been: `RootMeanSquare@Range[10]` is being displayed as `[email protected][10]` ### Owner _No response_ This wa...
[ -0.22150695323944092, -0.13197587430477142, -0.07619387656450272, 0.3510575294494629, 0.1017918735742569, -0.2825811505317688, 0.42188572883605957, 0.2679536044597626, -0.015597578138113022, 0.01566368341445923, 0.035979464650154114, 0.3285609483718872, 0.2166387140750885, 0.77382904291152...
https://github.com/huggingface/datasets/issues/4592
Hi @faizankshaikh Please note that we have recently launched the Community feature, specifically targeted to create Discussions (about issues/questions/asking-for-help) on each Dataset on the Hub: - Blog post: https://huggingface.co/blog/community-update - Docs: https://huggingface.co/docs/hub/repositories-pull-re...
Issue with jalFaizy/detect_chess_pieces when running datasets-cli test
### Link https://huggingface.co/datasets/jalFaizy/detect_chess_pieces ### Description I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_c...
74
Issue with jalFaizy/detect_chess_pieces when running datasets-cli test ### Link https://huggingface.co/datasets/jalFaizy/detect_chess_pieces ### Description I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https:...
[ -0.32051941752433777, 0.07623681426048279, 0.006530705839395523, 0.550622820854187, 0.24863994121551514, -0.1461583375930786, 0.5403977036476135, 0.4607197344303131, 0.3361929953098297, 0.08060013502836227, 0.06632084399461746, 0.053986407816410065, -0.2901013493537903, 0.12756481766700745...
https://github.com/huggingface/datasets/issues/4592
Thank you @albertvillanova , I will keep that in mind. Just a quick note - I posted the issue on Github because the dataset viewer suggested me to "open an issue for direct support". Maybe it can be updated with your suggestion ![image](https://user-images.githubusercontent.com/8406903/176397633-7b077d81-2044-448...
Issue with jalFaizy/detect_chess_pieces when running datasets-cli test
### Link https://huggingface.co/datasets/jalFaizy/detect_chess_pieces ### Description I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_c...
43
Issue with jalFaizy/detect_chess_pieces when running datasets-cli test ### Link https://huggingface.co/datasets/jalFaizy/detect_chess_pieces ### Description I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https:...
[ -0.32051941752433777, 0.07623681426048279, 0.006530705839395523, 0.550622820854187, 0.24863994121551514, -0.1461583375930786, 0.5403977036476135, 0.4607197344303131, 0.3361929953098297, 0.08060013502836227, 0.06632084399461746, 0.053986407816410065, -0.2901013493537903, 0.12756481766700745...
https://github.com/huggingface/datasets/issues/4592
Thank you pointing this out: yes, definitely, we should fix the error message. We are working on this.
Issue with jalFaizy/detect_chess_pieces when running datasets-cli test
### Link https://huggingface.co/datasets/jalFaizy/detect_chess_pieces ### Description I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces/blob/main/detect_c...
18
Issue with jalFaizy/detect_chess_pieces when running datasets-cli test ### Link https://huggingface.co/datasets/jalFaizy/detect_chess_pieces ### Description I am trying to write a appropriate data loader for [a custom dataset](https://huggingface.co/datasets/jalFaizy/detect_chess_pieces) using [this script](https:...
[ -0.32051941752433777, 0.07623681426048279, 0.006530705839395523, 0.550622820854187, 0.24863994121551514, -0.1461583375930786, 0.5403977036476135, 0.4607197344303131, 0.3361929953098297, 0.08060013502836227, 0.06632084399461746, 0.053986407816410065, -0.2901013493537903, 0.12756481766700745...
https://github.com/huggingface/datasets/issues/4591
Hi, thanks for reporting! This issue stems from the changes introduced in https://github.com/huggingface/datasets/pull/4282 (cc @lhoestq), in which list casts are ignored if they don't change the list type (required to preserve `null` values). And `push_to_hub` does a special cast to embed external image files but does...
Can't push Images to hub with manual Dataset
## Describe the bug If I create a dataset including an 'Image' feature manually, when pushing to hub decoded images are not pushed, instead it looks for image where image local path is/used to be. This doesn't (at least didn't used to) happen with imagefolder. I want to build dataset manually because it is compli...
52
Can't push Images to hub with manual Dataset ## Describe the bug If I create a dataset including an 'Image' feature manually, when pushing to hub decoded images are not pushed, instead it looks for image where image local path is/used to be. This doesn't (at least didn't used to) happen with imagefolder. I want...
[ -0.20560765266418457, -0.46868696808815, 0.040666837245225906, 0.18535447120666504, 0.12482722848653793, 0.02734065055847168, 0.489108145236969, 0.07770469039678574, 0.16731096804141998, 0.23427391052246094, 0.14223827421665192, 0.4545276463031769, -0.1558370441198349, -0.02336862310767173...
https://github.com/huggingface/datasets/issues/4581
Note that I refreshed twice this dataset, and I still have (another) error on one of the splits ``` Status code: 400 Exception: ClientResponseError Message: 403, message='Forbidden', url=URL('https://doc-14-4c-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/pgotjmcuh77q0lk7p4...
Dataset Viewer issue for pn_summary
### Link https://huggingface.co/datasets/pn_summary/viewer/1.0.0/validation ### Description Getting an index error on the `validation` and `test` splits: ``` Server error Status code: 400 Exception: IndexError Message: list index out of range ``` ### Owner No
51
Dataset Viewer issue for pn_summary ### Link https://huggingface.co/datasets/pn_summary/viewer/1.0.0/validation ### Description Getting an index error on the `validation` and `test` splits: ``` Server error Status code: 400 Exception: IndexError Message: list index out of range ``` ### Owner ...
[ -0.2351139634847641, 0.13610383868217468, -0.07504583150148392, 0.5219371914863586, -0.15261849761009216, 0.10366705805063248, 0.15769897401332855, 0.2575746476650238, 0.0641358271241188, 0.1253059208393097, -0.40464234352111816, -0.2837125062942505, 0.1913231909275055, 0.34746354818344116...
https://github.com/huggingface/datasets/issues/4580
Thanks for reporting, @lewtun. I forced the refreshing of the preview and it worked OK for train and validation splits. I guess the error has to do with the data files being hosted at Google Drive: this gives errors when requested automatically using scripts. We should host them to fix the error. Let's see if th...
Dataset Viewer issue for multi_news
### Link https://huggingface.co/datasets/multi_news ### Description Not sure what the index error is referring to here: ``` Status code: 400 Exception: IndexError Message: list index out of range ``` ### Owner No
59
Dataset Viewer issue for multi_news ### Link https://huggingface.co/datasets/multi_news ### Description Not sure what the index error is referring to here: ``` Status code: 400 Exception: IndexError Message: list index out of range ``` ### Owner No Thanks for reporting, @lewtun. I forced ...
[ -0.3764551877975464, 0.06217312812805176, -0.003793720155954361, 0.3940582573413849, 0.077493816614151, 0.2605228126049042, 0.5084825158119202, 0.52333003282547, 0.2843761444091797, 0.22748678922653198, -0.2043154537677765, 0.14236825704574585, -0.11377076804637909, 0.38715827465057373, ...
https://github.com/huggingface/datasets/issues/4578
How to set new split names, instead of train/test/validation? For example, I have a local dataset, consists of several subsets, named "A", "B", and "C". How can I create a huggingface dataset, with splits A/B/C ? The document in https://huggingface.co/docs/datasets/dataset_script only tells me how to create datasets...
[Multi Configs] Use directories to differentiate between subsets/configurations
Currently to define several subsets/configurations of your dataset, you need to use a dataset script. However it would be nice to have a no-code way to to this. For example we could specify different configurations of a dataset (for example, if a dataset contains different languages) with one directory per confi...
64
[Multi Configs] Use directories to differentiate between subsets/configurations Currently to define several subsets/configurations of your dataset, you need to use a dataset script. However it would be nice to have a no-code way to to this. For example we could specify different configurations of a dataset (fo...
[ -0.23412708938121796, -0.3247682452201843, 0.020361028611660004, 0.10792196542024612, 0.031064633280038834, 0.026850484311580658, 0.4918362498283386, -0.024805277585983276, 0.01860785484313965, 0.2816470265388489, -0.23296913504600525, -0.1111876517534256, -0.18601007759571075, 0.563831746...
https://github.com/huggingface/datasets/issues/4578
> The document in https://huggingface.co/docs/datasets/dataset_script only tells me how to create datasets with subsets that is hosted on another server. How to do it if my datasets are local? It works the same - you just need to use local paths instead of URLs
[Multi Configs] Use directories to differentiate between subsets/configurations
Currently to define several subsets/configurations of your dataset, you need to use a dataset script. However it would be nice to have a no-code way to to this. For example we could specify different configurations of a dataset (for example, if a dataset contains different languages) with one directory per confi...
44
[Multi Configs] Use directories to differentiate between subsets/configurations Currently to define several subsets/configurations of your dataset, you need to use a dataset script. However it would be nice to have a no-code way to to this. For example we could specify different configurations of a dataset (fo...
[ -0.31648117303848267, -0.3242614269256592, 0.00127449631690979, 0.04537595063447952, 0.015545839443802834, -0.05239993333816528, 0.3720952570438385, -0.055787343531847, 0.04607033729553223, 0.35642504692077637, -0.12246968597173691, 0.015232149511575699, -0.17003656923770905, 0.51303035020...