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/2651
Hi, you can suppress progress bars by patching logging as follows: ```python import datasets import logging datasets.logging.get_verbosity = lambda: logging.NOTSET # map call ... ``` EDIT: now you have to use `disable_progress_bar `
Setting log level higher than warning does not suppress progress bar
## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOS...
33
Setting log level higher than warning does not suppress progress bar ## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't ...
[ -0.44856026768684387, -0.1592375636100769, 0.08128440380096436, -0.17349722981452942, 0.15183652937412262, -0.020586803555488586, 0.4238955080509186, 0.23425109684467316, 0.08213585615158081, 0.1565588116645813, 0.18628036975860596, 0.6290767192840576, -0.13519656658172607, 0.0988519340753...
https://github.com/huggingface/datasets/issues/2651
Note also that you can disable the progress bar with ```python from datasets.utils import disable_progress_bar disable_progress_bar() ``` See https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/src/datasets/utils/tqdm_utils.py#L84
Setting log level higher than warning does not suppress progress bar
## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOS...
19
Setting log level higher than warning does not suppress progress bar ## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't ...
[ -0.438827246427536, -0.20373637974262238, 0.07964260131120682, -0.15226148068904877, 0.16921910643577576, -0.015965968370437622, 0.4777558743953705, 0.20219720900058746, 0.031835295259952545, 0.1475352644920349, 0.1682005673646927, 0.5794951319694519, -0.15289746224880219, 0.10003114491701...
https://github.com/huggingface/datasets/issues/2651
Now ``disable_progress_bar`` function is in ``datasets/src/datasets/utils/logging.py``. https://github.com/huggingface/datasets/blob/aa555a299ad73c65e3f997a764e9d211675ab05d/src/datasets/utils/logging.py#L233-L236 And the method mentioned in https://github.com/huggingface/datasets/issues/2651#issuecomment-880270774 i...
Setting log level higher than warning does not suppress progress bar
## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOS...
17
Setting log level higher than warning does not suppress progress bar ## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't ...
[ -0.39349091053009033, -0.24679218232631683, 0.07771508395671844, -0.1254587471485138, 0.13830885291099548, -0.01921071857213974, 0.4277239143848419, 0.20148473978042603, 0.10277525335550308, 0.12920379638671875, 0.16663166880607605, 0.5476444363594055, -0.15757012367248535, 0.1526848077774...
https://github.com/huggingface/datasets/issues/2650
I think @TevenLeScao is exploring adding multiprocessing in `GeneratorBasedBuilder._prepare_split` - feel free to post updates here :)
[load_dataset] shard and parallelize the process
- Some huge datasets take forever to build the first time. (e.g. oscar/en) as it's done in a single cpu core. - If the build crashes, everything done up to that point gets lost Request: Shard the build over multiple arrow files, which would enable: - much faster build by parallelizing the build process - if the p...
17
[load_dataset] shard and parallelize the process - Some huge datasets take forever to build the first time. (e.g. oscar/en) as it's done in a single cpu core. - If the build crashes, everything done up to that point gets lost Request: Shard the build over multiple arrow files, which would enable: - much faster b...
[ -0.8474753499031067, 0.12488675117492676, -0.22292059659957886, 0.17701205611228943, -0.07837479561567307, 0.07073378562927246, 0.046918123960494995, 0.46122193336486816, -0.05785682052373886, 0.2039017677307129, 0.07295188307762146, 0.2827216684818268, 0.0917503610253334, 0.14991080760955...
https://github.com/huggingface/datasets/issues/2650
Posted a PR to address the building side, still needs something to load sharded arrow files + tests
[load_dataset] shard and parallelize the process
- Some huge datasets take forever to build the first time. (e.g. oscar/en) as it's done in a single cpu core. - If the build crashes, everything done up to that point gets lost Request: Shard the build over multiple arrow files, which would enable: - much faster build by parallelizing the build process - if the p...
18
[load_dataset] shard and parallelize the process - Some huge datasets take forever to build the first time. (e.g. oscar/en) as it's done in a single cpu core. - If the build crashes, everything done up to that point gets lost Request: Shard the build over multiple arrow files, which would enable: - much faster b...
[ -0.7903311252593994, -0.00842013955116272, -0.23836013674736023, 0.1415988653898239, -0.057098522782325745, 0.07170481979846954, 0.09555785357952118, 0.4681588411331177, 0.031766511499881744, 0.15775752067565918, 0.13327550888061523, 0.3382802903652191, 0.06595581769943237, 0.2193129509687...
https://github.com/huggingface/datasets/issues/2649
There are progress bars when downloading data and when preparing them as Arrow files. The "total silence" part mentioned in OP refer to checksums verifications which have had some changes in the latest release 2.10: - they're disabled by default (other less costly verifications are still done like checking the gene...
adding progress bar / ETA for `load_dataset`
Please consider: ``` Downloading and preparing dataset oscar/unshuffled_deduplicated_en (download: 462.40 GiB, generated: 1.18 TiB, post-processed: Unknown size, total: 1.63 TiB) to cache/oscar/unshuffled_deduplicated_en/1.0.0/84838bd49d2295f62008383b05620571535451d84545037bb94d6f3501651df2... HF google storage unre...
61
adding progress bar / ETA for `load_dataset` Please consider: ``` Downloading and preparing dataset oscar/unshuffled_deduplicated_en (download: 462.40 GiB, generated: 1.18 TiB, post-processed: Unknown size, total: 1.63 TiB) to cache/oscar/unshuffled_deduplicated_en/1.0.0/84838bd49d2295f62008383b05620571535451d84545...
[ -0.45116305351257324, 0.5040514469146729, -0.1190379410982132, -0.3141563832759857, 0.014354169368743896, -0.21099773049354553, 0.4512028396129608, 0.040071260184049606, -0.12422195076942444, 0.24686919152736664, 0.18651923537254333, 0.2527689039707184, -0.0394347719848156, 0.2535060048103...
https://github.com/huggingface/datasets/issues/2646
Hi ! I just tested and it worked fine today for me. I think this is because the dataset is stored on Google Drive which has a quota limit for the number of downloads per day, see this similar issue https://github.com/huggingface/datasets/issues/996 Feel free to try again today, now that the quota was reset
downloading of yahoo_answers_topics dataset failed
## Describe the bug I get an error datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files when I try to download the yahoo_answers_topics dataset ## Steps to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config...
53
downloading of yahoo_answers_topics dataset failed ## Describe the bug I get an error datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files when I try to download the yahoo_answers_topics dataset ## Steps to reproduce the bug self.dataset = load_dataset( ...
[ -0.4173346757888794, 0.14384725689888, -0.05226653069257736, 0.21039259433746338, 0.23814606666564941, -0.056648194789886475, 0.23771090805530548, 0.2905797064304352, 0.14424483478069305, 0.057315558195114136, -0.08232225477695465, -0.03472328931093216, 0.009593188762664795, 0.296780914068...
https://github.com/huggingface/datasets/issues/2645
Hi ! It looks like an issue with pytorch. Could you try to run `import torch` and see if it raises an error ?
load_dataset processing failed with OS error after downloading a dataset
## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ...
24
load_dataset processing failed with OS error after downloading a dataset ## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets...
[ -0.44305020570755005, 0.20311984419822693, -0.04543619602918625, 0.4847758412361145, 0.30398210883140564, -0.02337535470724106, 0.23496899008750916, 0.3660460114479065, -0.10822858661413193, 0.09275250881910324, -0.1625688374042511, 0.46781426668167114, -0.007434798404574394, -0.0836080908...
https://github.com/huggingface/datasets/issues/2645
> Hi ! It looks like an issue with pytorch. > > Could you try to run `import torch` and see if it raises an error ? It works. Thank you!
load_dataset processing failed with OS error after downloading a dataset
## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ...
31
load_dataset processing failed with OS error after downloading a dataset ## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets...
[ -0.44305020570755005, 0.20311984419822693, -0.04543619602918625, 0.4847758412361145, 0.30398210883140564, -0.02337535470724106, 0.23496899008750916, 0.3660460114479065, -0.10822858661413193, 0.09275250881910324, -0.1625688374042511, 0.46781426668167114, -0.007434798404574394, -0.0836080908...
https://github.com/huggingface/datasets/issues/2644
Hi ! Thanks for reporting. Indeed it looks like type inference makes it fail. We should probably just ignore this step until a non-empty batch is passed.
Batched `map` not allowed to return 0 items
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting...
27
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingfa...
[ -0.23283609747886658, -0.39038851857185364, -0.04445694759488106, 0.1644897162914276, -0.10854482650756836, -0.06876857578754425, 0.11633944511413574, 0.4056321084499359, 0.640041708946228, 0.11788097023963928, -0.05657147616147995, 0.24608543515205383, -0.39544129371643066, 0.104354791343...
https://github.com/huggingface/datasets/issues/2644
Sounds good! Do you want me to propose a PR? I'm quite busy right now, but if it's not too urgent I could take a look next week.
Batched `map` not allowed to return 0 items
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting...
28
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingfa...
[ -0.23283609747886658, -0.39038851857185364, -0.04445694759488106, 0.1644897162914276, -0.10854482650756836, -0.06876857578754425, 0.11633944511413574, 0.4056321084499359, 0.640041708946228, 0.11788097023963928, -0.05657147616147995, 0.24608543515205383, -0.39544129371643066, 0.104354791343...
https://github.com/huggingface/datasets/issues/2644
Sure if you're interested feel free to open a PR :) You can also ping me anytime if you have questions or if I can help !
Batched `map` not allowed to return 0 items
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting...
27
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingfa...
[ -0.23283609747886658, -0.39038851857185364, -0.04445694759488106, 0.1644897162914276, -0.10854482650756836, -0.06876857578754425, 0.11633944511413574, 0.4056321084499359, 0.640041708946228, 0.11788097023963928, -0.05657147616147995, 0.24608543515205383, -0.39544129371643066, 0.104354791343...
https://github.com/huggingface/datasets/issues/2644
Sorry to ping you, @lhoestq, did you have a chance to take a look at the proposed PR? Thank you!
Batched `map` not allowed to return 0 items
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting...
20
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingfa...
[ -0.23283609747886658, -0.39038851857185364, -0.04445694759488106, 0.1644897162914276, -0.10854482650756836, -0.06876857578754425, 0.11633944511413574, 0.4056321084499359, 0.640041708946228, 0.11788097023963928, -0.05657147616147995, 0.24608543515205383, -0.39544129371643066, 0.104354791343...
https://github.com/huggingface/datasets/issues/2644
Yes and it's all good, thank you :) Feel free to close this issue if it's good for you
Batched `map` not allowed to return 0 items
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting...
19
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingfa...
[ -0.23283609747886658, -0.39038851857185364, -0.04445694759488106, 0.1644897162914276, -0.10854482650756836, -0.06876857578754425, 0.11633944511413574, 0.4056321084499359, 0.640041708946228, 0.11788097023963928, -0.05657147616147995, 0.24608543515205383, -0.39544129371643066, 0.104354791343...
https://github.com/huggingface/datasets/issues/2643
I'm running into this as well. (Thank you so much for reporting @jorgeecardona — was staring at this massive stack trace and unsure what exactly was wrong!)
Enum used in map functions will raise a RecursionError with dill.
## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` ...
27
Enum used in map functions will raise a RecursionError with dill. ## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to d...
[ 0.10536046326160431, 0.19925397634506226, 0.040532030165195465, 0.14069944620132446, -0.07437187433242798, -0.07834331691265106, 0.14776048064231873, 0.23377957940101624, 0.12631770968437195, 0.16906455159187317, 0.145332932472229, 0.9332162141799927, -0.2908697724342346, -0.30729836225509...
https://github.com/huggingface/datasets/issues/2643
Hi ! Thanks for reporting :) Until this is fixed on `dill`'s side, we could implement a custom saving in our Pickler indefined in utils.py_utils.py There is already a suggestion in this message about how to do it: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 Let me know if such a worka...
Enum used in map functions will raise a RecursionError with dill.
## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` ...
61
Enum used in map functions will raise a RecursionError with dill. ## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to d...
[ 0.10536046326160431, 0.19925397634506226, 0.040532030165195465, 0.14069944620132446, -0.07437187433242798, -0.07834331691265106, 0.14776048064231873, 0.23377957940101624, 0.12631770968437195, 0.16906455159187317, 0.145332932472229, 0.9332162141799927, -0.2908697724342346, -0.30729836225509...
https://github.com/huggingface/datasets/issues/2643
I have the same bug. the code is as follows: ![image](https://user-images.githubusercontent.com/84262181/139785849-620dd4ac-86ce-4212-8163-942bbca305aa.png) the error is: ![image](https://user-images.githubusercontent.com/84262181/139785899-88a9bd75-c60b-45a5-b819-830c7c096f3d.png) Look for the solution for thi...
Enum used in map functions will raise a RecursionError with dill.
## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` ...
22
Enum used in map functions will raise a RecursionError with dill. ## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to d...
[ 0.10536046326160431, 0.19925397634506226, 0.040532030165195465, 0.14069944620132446, -0.07437187433242798, -0.07834331691265106, 0.14776048064231873, 0.23377957940101624, 0.12631770968437195, 0.16906455159187317, 0.145332932472229, 0.9332162141799927, -0.2908697724342346, -0.30729836225509...
https://github.com/huggingface/datasets/issues/2643
Hi ! I think your RecursionError comes from a different issue @BitcoinNLPer , could you open a separate issue please ? Also which dataset are you using ? I tried loading `CodedotAI/code_clippy` but I get a different error ```python Traceback (most recent call last): File "<stdin>", line 1, in <module> File "...
Enum used in map functions will raise a RecursionError with dill.
## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` ...
144
Enum used in map functions will raise a RecursionError with dill. ## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to d...
[ 0.10536046326160431, 0.19925397634506226, 0.040532030165195465, 0.14069944620132446, -0.07437187433242798, -0.07834331691265106, 0.14776048064231873, 0.23377957940101624, 0.12631770968437195, 0.16906455159187317, 0.145332932472229, 0.9332162141799927, -0.2908697724342346, -0.30729836225509...
https://github.com/huggingface/datasets/issues/2642
Hi ! This is a great idea :) I think we could have something similar to what we have in `datasets.Dataset.map`, i.e. a `num_proc` parameter that tells how many processes to spawn to parallelize the data processing. Regarding AUTOTUNE, this could be a nice feature as well, we could see how to add it in a second ste...
Support multi-worker with streaming dataset (IterableDataset).
**Is your feature request related to a problem? Please describe.** The current `.map` does not support multi-process, CPU can become bottleneck if the pre-processing is complex (e.g. t5 span masking). **Describe the solution you'd like** Ideally `.map` should support multi-worker like tfds, with `AUTOTUNE`. **D...
58
Support multi-worker with streaming dataset (IterableDataset). **Is your feature request related to a problem? Please describe.** The current `.map` does not support multi-process, CPU can become bottleneck if the pre-processing is complex (e.g. t5 span masking). **Describe the solution you'd like** Ideally `.ma...
[ -0.629372239112854, -0.5262189507484436, -0.14244067668914795, -0.042048774659633636, -0.19271805882453918, -0.010430321097373962, 0.516558051109314, 0.17827960848808289, 0.0827183872461319, 0.14804670214653015, -0.08475568145513535, 0.30201205611228943, -0.2687704563140869, 0.266904324293...
https://github.com/huggingface/datasets/issues/2641
Hi! It's probably because this dataset is stored on google drive and it has a per day quota limit. It should work if you retry, I was able to initiate the download. Similar issue [here](https://github.com/huggingface/datasets/issues/2646)
load_dataset("financial_phrasebank") NonMatchingChecksumError
## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_allagree') ``` ## Expected results I expect to see the financi...
35
load_dataset("financial_phrasebank") NonMatchingChecksumError ## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_all...
[ -0.12216171622276306, 0.21915112435817719, -0.0784073919057846, 0.28845298290252686, 0.22036124765872955, 0.13471710681915283, 0.06588917970657349, 0.33106139302253723, 0.20957449078559875, 0.18217246234416962, -0.14143824577331543, 0.0533878356218338, 0.16741620004177094, 0.07501558214426...
https://github.com/huggingface/datasets/issues/2641
Hi ! Loading the dataset works on my side as well. Feel free to try again and let us know if it works for you know
load_dataset("financial_phrasebank") NonMatchingChecksumError
## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_allagree') ``` ## Expected results I expect to see the financi...
26
load_dataset("financial_phrasebank") NonMatchingChecksumError ## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_all...
[ -0.11983351409435272, 0.1794096678495407, -0.0883815661072731, 0.33969926834106445, 0.18796874582767487, 0.1173868477344513, 0.006067540030926466, 0.3996657729148865, 0.14194685220718384, 0.1976889967918396, -0.16138434410095215, 0.24372707307338715, 0.23040331900119781, -0.108978748321533...
https://github.com/huggingface/datasets/issues/2641
Thank you! I've been trying periodically for the past month, and no luck yet with this particular dataset. Just tried again and still hitting the checksum error. Code: `dataset = load_dataset("financial_phrasebank", "sentences_allagree") ` Traceback: ``` ----------------------------------------------------...
load_dataset("financial_phrasebank") NonMatchingChecksumError
## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_allagree') ``` ## Expected results I expect to see the financi...
174
load_dataset("financial_phrasebank") NonMatchingChecksumError ## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_all...
[ -0.12190401554107666, 0.2504359483718872, -0.06328258663415909, 0.329198956489563, 0.16332034766674042, 0.13060182332992554, 0.029430361464619637, 0.39818450808525085, 0.10427407920360565, 0.1001083105802536, -0.23703017830848694, 0.2519073188304901, 0.2408212423324585, -0.1808865368366241...
https://github.com/huggingface/datasets/issues/2630
To add my experience when trying to debug this issue: Seems like previously the workaround given [here](https://github.com/tqdm/tqdm/issues/485#issuecomment-473338308) worked around this issue. But with the latest version of jupyter/tqdm I still get terminal warnings that IPython tried to send a message from a forke...
Progress bars are not properly rendered in Jupyter notebook
## Describe the bug The progress bars are not Jupyter widgets; regular progress bars appear (like in a terminal). ## Steps to reproduce the bug ```python ds.map(tokenize, num_proc=10) ``` ## Expected results Jupyter widgets displaying the progress bars. ## Actual results Simple plane progress bars. cc...
44
Progress bars are not properly rendered in Jupyter notebook ## Describe the bug The progress bars are not Jupyter widgets; regular progress bars appear (like in a terminal). ## Steps to reproduce the bug ```python ds.map(tokenize, num_proc=10) ``` ## Expected results Jupyter widgets displaying the progress...
[ 0.1817375123500824, 0.026652514934539795, -0.0048843733966350555, 0.056550998240709305, 0.11842605471611023, -0.3483622670173645, 0.5567901134490967, 0.4173838794231415, -0.2593957185745239, 0.00245743989944458, -0.21256715059280396, 0.6025978326797485, 0.26589375734329224, 0.1672157943248...
https://github.com/huggingface/datasets/issues/2630
Hi @mludv, thanks for the hint!!! :) We will definitely take it into account to try to fix this issue... It seems somehow related to `multiprocessing` and `tqdm`...
Progress bars are not properly rendered in Jupyter notebook
## Describe the bug The progress bars are not Jupyter widgets; regular progress bars appear (like in a terminal). ## Steps to reproduce the bug ```python ds.map(tokenize, num_proc=10) ``` ## Expected results Jupyter widgets displaying the progress bars. ## Actual results Simple plane progress bars. cc...
28
Progress bars are not properly rendered in Jupyter notebook ## Describe the bug The progress bars are not Jupyter widgets; regular progress bars appear (like in a terminal). ## Steps to reproduce the bug ```python ds.map(tokenize, num_proc=10) ``` ## Expected results Jupyter widgets displaying the progress...
[ 0.08407506346702576, -0.017447277903556824, -0.05534325912594795, 0.14674872159957886, 0.1418054699897766, -0.2826747000217438, 0.4365518093109131, 0.3081711232662201, -0.2813867926597595, 0.13351748883724213, -0.17346850037574768, 0.4958983361721039, 0.30211344361305237, 0.360643655061721...
https://github.com/huggingface/datasets/issues/2629
This is so cool, let us know if we can help with anything on the hub side (@Pierrci @elishowk) 🎉
Load datasets from the Hub without requiring a dataset script
As a user I would like to be able to upload my csv/json/text/parquet/etc. files in a dataset repository on the Hugging Face Hub and be able to load this dataset with `load_dataset` without having to implement a dataset script. Moreover I would like to be able to specify which file goes into which split using the `da...
20
Load datasets from the Hub without requiring a dataset script As a user I would like to be able to upload my csv/json/text/parquet/etc. files in a dataset repository on the Hugging Face Hub and be able to load this dataset with `load_dataset` without having to implement a dataset script. Moreover I would like to b...
[ -0.45757609605789185, -0.044700637459754944, -0.04213658720254898, 0.19916445016860962, -0.12621921300888062, 0.16351698338985443, 0.37726491689682007, 0.1787043809890747, 0.413286030292511, 0.13889169692993164, -0.23918041586875916, 0.3387722074985504, -0.06379517912864685, 0.549414396286...
https://github.com/huggingface/datasets/issues/2622
Hi, you can define your own custom formatting with `Dataset.set_transform()` and then run the tokenizer with the batches of augmented data as follows: ```python dset = load_dataset("imdb", split="train") # Let's say we are working with the IMDB dataset dset.set_transform(lambda ex: {"text": augly_text_augmentati...
Integration with AugLy
**Is your feature request related to a problem? Please describe.** Facebook recently launched a library, [AugLy](https://github.com/facebookresearch/AugLy) , that has a unified API for augmentations for image, video and text. It would be pretty exciting to have it hooked up to HF libraries so that we can make NLP m...
68
Integration with AugLy **Is your feature request related to a problem? Please describe.** Facebook recently launched a library, [AugLy](https://github.com/facebookresearch/AugLy) , that has a unified API for augmentations for image, video and text. It would be pretty exciting to have it hooked up to HF libraries ...
[ -0.17492350935935974, -0.1920807957649231, -0.14345207810401917, -0.2396782785654068, 0.19126339256763458, 0.026355668902397156, 0.1673913300037384, 0.32731229066848755, -0.3234897255897522, 0.016006842255592346, 0.04472525417804718, -0.01703474298119545, -0.2608952522277832, 0.11050062626...
https://github.com/huggingface/datasets/issues/2622
Preprocessing functions/augmentations, unless super generic, should be defined in separate libraries, so I'm closing this issue.
Integration with AugLy
**Is your feature request related to a problem? Please describe.** Facebook recently launched a library, [AugLy](https://github.com/facebookresearch/AugLy) , that has a unified API for augmentations for image, video and text. It would be pretty exciting to have it hooked up to HF libraries so that we can make NLP m...
16
Integration with AugLy **Is your feature request related to a problem? Please describe.** Facebook recently launched a library, [AugLy](https://github.com/facebookresearch/AugLy) , that has a unified API for augmentations for image, video and text. It would be pretty exciting to have it hooked up to HF libraries ...
[ -0.027411140501499176, -0.12815439701080322, -0.1744595617055893, -0.3476259708404541, 0.11206858605146408, -0.037843987345695496, 0.037481166422367096, 0.26591479778289795, -0.3636663556098938, 0.05604276433587074, 0.15454265475273132, -0.11339809745550156, -0.18210425972938538, 0.2809536...
https://github.com/huggingface/datasets/issues/2618
Hi @liyucheng09, thanks for reporting. Apparently this issue has to do with your environment setup. One question: is your data in an NFS share? Some people have reported this error when using `fcntl` to write to an NFS share... If this is the case, then it might be that your NFS just may not be set up to provide fil...
`filelock.py` Error
## Describe the bug It seems that the `filelock.py` went error. ``` >>> ds=load_dataset('xsum') ^CTraceback (most recent call last): File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) ...
84
`filelock.py` Error ## Describe the bug It seems that the `filelock.py` went error. ``` >>> ds=load_dataset('xsum') ^CTraceback (most recent call last): File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire fcntl.flock(fd, fcntl.LOC...
[ 0.13904395699501038, -0.3473014533519745, 0.01514725387096405, 0.04186122864484787, 0.030276596546173096, 0.09070463478565216, 0.16235952079296112, 0.13566672801971436, 0.05923818051815033, 0.09362257272005081, -0.1010855883359909, 0.34031927585601807, -0.03296089917421341, -0.424065411090...
https://github.com/huggingface/datasets/issues/2618
We now use the `filelock` package for file locking, so please report this issue in their repo if it's still causing you problems.
`filelock.py` Error
## Describe the bug It seems that the `filelock.py` went error. ``` >>> ds=load_dataset('xsum') ^CTraceback (most recent call last): File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) ...
23
`filelock.py` Error ## Describe the bug It seems that the `filelock.py` went error. ``` >>> ds=load_dataset('xsum') ^CTraceback (most recent call last): File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire fcntl.flock(fd, fcntl.LOC...
[ 0.13904395699501038, -0.3473014533519745, 0.01514725387096405, 0.04186122864484787, 0.030276596546173096, 0.09070463478565216, 0.16235952079296112, 0.13566672801971436, 0.05923818051815033, 0.09362257272005081, -0.1010855883359909, 0.34031927585601807, -0.03296089917421341, -0.424065411090...
https://github.com/huggingface/datasets/issues/2615
For some reason this happens (both `datasets` version are on master) only on Python 3.6 and not Python 3.8.
Jsonlines export error
## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This wha...
19
Jsonlines export error ## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to re...
[ -0.3504130244255066, 0.1333586871623993, -0.0069016627967357635, 0.30970966815948486, 0.03890360891819, 0.08054829388856888, 0.21886473894119263, 0.38834521174430847, 0.0006041824817657471, -0.04023047536611557, 0.32310041785240173, 0.03459446132183075, 0.06731650233268738, 0.0446977242827...
https://github.com/huggingface/datasets/issues/2615
@TevenLeScao we are using `pandas` to serialize the dataset to JSON Lines. So it must be due to pandas. Could you please check the pandas version causing the issue?
Jsonlines export error
## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This wha...
29
Jsonlines export error ## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to re...
[ -0.35293638706207275, 0.1344454288482666, -0.013970788568258286, 0.2699110209941864, 0.0913660079240799, 0.08057719469070435, 0.27589917182922363, 0.4209207594394684, -0.0012245476245880127, -0.05468692630529404, 0.3439743220806122, 0.01683161035180092, 0.10500949621200562, 0.1663786172866...
https://github.com/huggingface/datasets/issues/2615
@TevenLeScao I have just checked it: this was a bug in `pandas` and it was fixed in version 1.2: https://github.com/pandas-dev/pandas/pull/36898
Jsonlines export error
## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This wha...
20
Jsonlines export error ## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to re...
[ -0.3412720561027527, 0.12403056025505066, -0.005502011626958847, 0.25801756978034973, 0.1083405390381813, 0.0757044106721878, 0.3035868704319, 0.4069499373435974, 0.02641373872756958, -0.04118330776691437, 0.27453961968421936, 0.006748702377080917, 0.13871577382087708, 0.17417925596237183,...
https://github.com/huggingface/datasets/issues/2615
Sorry, I was also talking to teven offline so I already had the PR ready before noticing x)
Jsonlines export error
## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This wha...
18
Jsonlines export error ## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to re...
[ -0.37644094228744507, 0.06210252642631531, -0.02492533251643181, 0.28617534041404724, 0.044619347900152206, 0.08094967901706696, 0.1558462679386139, 0.39717379212379456, 0.051059216260910034, -0.04763709753751755, 0.3336999714374542, 0.004115857183933258, 0.08341792970895767, 0.15827551484...
https://github.com/huggingface/datasets/issues/2615
I was also already working in my PR... Nevermind. Next time we should pay attention if there is somebody (self-)assigned to an issue and if he/she is still working on it before overtaking it... 😄
Jsonlines export error
## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This wha...
35
Jsonlines export error ## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to re...
[ -0.3961871862411499, 0.1412506103515625, -0.044777099043130875, 0.26520517468452454, 0.05529011785984039, 0.06807680428028107, 0.1558925360441208, 0.38120415806770325, -0.011088639497756958, -0.03500513732433319, 0.37229084968566895, 0.011863939464092255, 0.08164018392562866, 0.17778846621...
https://github.com/huggingface/datasets/issues/2607
Hi @thomwolf, thanks for reporting. It seems this might be due to the fact that the JSON Dataset builder uses `pyarrow.json` (`paj.read_json`) to read the data without using the Python standard `open(file,...` (which is the one patched with `xopen` to work in streaming mode). This has to be fixed.
Streaming local gzip compressed JSON line files is not working
## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True) next(iter(streamed_dataset))...
49
Streaming local gzip compressed JSON line files is not working ## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_...
[ -0.19924893975257874, -0.1339779496192932, -0.00914447009563446, 0.23913508653640747, 0.07776404917240143, 0.016880013048648834, 0.39767444133758545, 0.5178916454315186, 0.19702138006687164, 0.07899856567382812, 0.10300123691558838, 0.3306828439235687, -0.08836673200130463, 0.0208739936351...
https://github.com/huggingface/datasets/issues/2607
Sorry for reopening this, but I'm having the same issue as @thomwolf when streaming a gzipped JSON Lines file from the hub. Or is that just not possible by definition? I installed `datasets`in editable mode from source (so probably includes the fix from #2608 ?): ``` >>> datasets.__version__ '1.9.1.dev0' ``` `...
Streaming local gzip compressed JSON line files is not working
## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True) next(iter(streamed_dataset))...
167
Streaming local gzip compressed JSON line files is not working ## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_...
[ -0.19924893975257874, -0.1339779496192932, -0.00914447009563446, 0.23913508653640747, 0.07776404917240143, 0.016880013048648834, 0.39767444133758545, 0.5178916454315186, 0.19702138006687164, 0.07899856567382812, 0.10300123691558838, 0.3306828439235687, -0.08836673200130463, 0.0208739936351...
https://github.com/huggingface/datasets/issues/2607
Hi ! To make the streaming work, we extend `open` in the dataset builder to work with urls. Therefore you just need to use `open` before using `gzip.open`: ```diff - with gzip.open(file, "rt", encoding="utf-8") as f: + with gzip.open(open(file, "rb"), "rt", encoding="utf-8") as f: ``` You can see that it is t...
Streaming local gzip compressed JSON line files is not working
## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True) next(iter(streamed_dataset))...
61
Streaming local gzip compressed JSON line files is not working ## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_...
[ -0.19924893975257874, -0.1339779496192932, -0.00914447009563446, 0.23913508653640747, 0.07776404917240143, 0.016880013048648834, 0.39767444133758545, 0.5178916454315186, 0.19702138006687164, 0.07899856567382812, 0.10300123691558838, 0.3306828439235687, -0.08836673200130463, 0.0208739936351...
https://github.com/huggingface/datasets/issues/2604
Hi ! If we want something more general, we could either 1. delete the extracted files after the arrow data generation automatically, or 2. delete each extracted file during the arrow generation right after it has been closed. Solution 2 is better to save disk space during the arrow generation. Is it what you had...
Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to strea...
129
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Havi...
[ -0.04222429171204567, -0.05207794904708862, -0.1375647932291031, 0.24913649260997772, -0.08902059495449066, 0.10409834235906601, -0.11982835829257965, 0.18471935391426086, 0.23423142731189728, 0.24075902998447418, 0.1567286103963852, 0.5178807377815247, -0.340489000082016, -0.0508523955941...
https://github.com/huggingface/datasets/issues/2604
Also, if I delete the extracted files they need to be re-extracted again instead of loading from the Arrow cache files
Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to strea...
21
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Havi...
[ -0.02806214988231659, -0.12684571743011475, -0.14626392722129822, 0.15173634886741638, -0.17558793723583221, 0.19438347220420837, -0.21975219249725342, 0.2515495717525482, 0.17995046079158783, 0.16384992003440857, 0.10564205050468445, 0.48138612508773804, -0.24072255194187164, -0.104074619...
https://github.com/huggingface/datasets/issues/2604
I think we already opened an issue about this topic (suggested by @stas00): duplicated of #2481? This is in our TODO list... 😅
Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to strea...
23
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Havi...
[ -0.019210174679756165, -0.12697651982307434, -0.14818298816680908, 0.07984679937362671, -0.13216949999332428, 0.17651605606079102, -0.19870257377624512, 0.24316364526748657, 0.21240130066871643, 0.20227907598018646, 0.16154229640960693, 0.4751737117767334, -0.22158902883529663, -0.07033365...
https://github.com/huggingface/datasets/issues/2604
I think the deletion of each extracted file could be implemented in our CacheManager and ExtractManager (once merged to master: #2295, #2277). 😉
Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to strea...
23
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Havi...
[ -0.02260088175535202, -0.11210358142852783, -0.16414102911949158, 0.16398659348487854, -0.14083029329776764, 0.15682175755500793, -0.19473403692245483, 0.2873062789440155, 0.23211419582366943, 0.1775878518819809, 0.09998271614313126, 0.4532555341720581, -0.23331515491008759, -0.10648290067...
https://github.com/huggingface/datasets/issues/2604
Nevermind @thomwolf, I just mentioned the other issue so that both appear linked in GitHub and we do not forget to close both once we make the corresponding Pull Request... That was the main reason! 😄
Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to strea...
36
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Havi...
[ -0.08552693575620651, -0.0671888217329979, -0.18447411060333252, 0.1047871857881546, -0.06817681342363358, 0.09409273415803909, -0.2069169580936432, 0.3579809069633484, 0.19299133121967316, 0.18033024668693542, 0.1256365180015564, 0.5178523063659668, -0.1990654319524765, -0.053291354328393...
https://github.com/huggingface/datasets/issues/2604
Ok yes. I think this is an important feature to be able to use large datasets which are pretty much always compressed files. In particular now this requires to keep the extracted file on the drive if you want to avoid reprocessing the dataset so in my case, this require using always ~400GB of drive instead of just 2...
Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to strea...
116
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Havi...
[ -0.06597825884819031, -0.06750484555959702, -0.12144391238689423, 0.13619425892829895, -0.18816916644573212, 0.23715606331825256, -0.160129576921463, 0.24732819199562073, 0.1624709814786911, 0.1584104299545288, 0.10431956499814987, 0.4483772814273834, -0.3028528690338135, -0.10580535978078...
https://github.com/huggingface/datasets/issues/2604
Note that I'm confirming that with the current master branch of dataset, deleting extracted files (without deleting the arrow cache file) lead to **re-extracting** these files when reloading the dataset instead of directly loading the arrow cache file.
Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to strea...
38
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Havi...
[ -0.16383463144302368, 0.038030385971069336, -0.14476867020130157, 0.1780930757522583, -0.1592693328857422, 0.23571431636810303, -0.17465713620185852, 0.2873373031616211, 0.126591295003891, 0.1585226058959961, 0.0674438551068306, 0.5160757899284363, -0.22754120826721191, -0.0690873563289642...
https://github.com/huggingface/datasets/issues/2604
Hi ! That's weird, it doesn't do that on my side (tested on master on my laptop by deleting the `extracted` folder in the download cache directory). You tested with one of the files at https://huggingface.co/datasets/thomwolf/github-python that you have locally ?
Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to strea...
41
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Havi...
[ -0.03325648605823517, -0.06173141300678253, -0.15180504322052002, 0.23214052617549896, -0.0794416218996048, 0.1899539828300476, -0.15191912651062012, 0.32268866896629333, 0.2679440975189209, 0.18591144680976868, -0.008660566061735153, 0.4785897731781006, -0.2064821422100067, 0.019820779561...
https://github.com/huggingface/datasets/issues/2604
@thomwolf I'm sorry but I can't reproduce this problem. I'm also using: ```python ds = load_dataset("json", split="train", data_files=data_files, cache_dir=cache_dir) ``` after having removed the extracted files: ```python assert sorted((cache_dir / "downloads" / "extracted").iterdir()) == [] ``` I get the l...
Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to strea...
49
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Havi...
[ 0.03873959928750992, 0.0011513084173202515, -0.0731729120016098, 0.2888254225254059, -0.022597599774599075, 0.24423451721668243, 0.004371521063148975, 0.22520135343074799, 0.2111157476902008, 0.11122629046440125, 0.1300094872713089, 0.4447042644023895, -0.3149458169937134, -0.1522339433431...
https://github.com/huggingface/datasets/issues/2604
> > > Do you confirm the extracted folder stays empty after reloading? Yes, I have the above mentioned assertion on the emptiness of the extracted folder: ```python assert sorted((cache_dir / "downloads" / "extracted").iterdir()) == [] ```
Add option to delete temporary files (e.g. extracted files) when loading dataset
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to strea...
37
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Havi...
[ 0.04130697250366211, -0.04853726923465729, -0.14497250318527222, 0.22482994198799133, -0.04660569503903389, 0.20178960263729095, -0.1690853238105774, 0.3027118146419525, 0.22450856864452362, 0.13429367542266846, 0.010950062423944473, 0.4801861643791199, -0.2686917185783386, -0.123042725026...
https://github.com/huggingface/datasets/issues/2598
Hi @erikadistefano , thanks for reporting the issue. I have created a Pull Request that should fix it. Once merged into master, feel free to update your installed `datasets` library (either by installing it from our GitHub master branch or waiting until our next release) to be able to load omp dataset.
Unable to download omp dataset
## Describe the bug The omp dataset cannot be downloaded because of a DuplicatedKeysError ## Steps to reproduce the bug from datasets import load_dataset omp = load_dataset('omp', 'posts_labeled') print(omp) ## Expected results This code should download the omp dataset and print the dictionary ## Actual r...
52
Unable to download omp dataset ## Describe the bug The omp dataset cannot be downloaded because of a DuplicatedKeysError ## Steps to reproduce the bug from datasets import load_dataset omp = load_dataset('omp', 'posts_labeled') print(omp) ## Expected results This code should download the omp dataset and pr...
[ -0.26337605714797974, -0.11635960638523102, -0.08252890408039093, 0.10050976276397705, 0.23119932413101196, -0.021743200719356537, 0.2052311897277832, 0.28301411867141724, 0.04831309616565704, 0.209464430809021, -0.2077924907207489, 0.5524356365203857, -0.20912504196166992, 0.2359022200107...
https://github.com/huggingface/datasets/issues/2596
Hi ! Do you have an example in mind that shows how this could be useful ?
Transformer Class on dataset
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
17
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). Hi ! Do you have an example in mind that shows how this could be useful ?
[ -0.4188198149204254, -0.11185533553361893, -0.02110963687300682, 0.16497832536697388, 0.4431481957435608, -0.07371695339679718, 0.5200482606887817, 0.025510672479867935, -0.00009156018495559692, -0.06128951907157898, 0.1383577287197113, 0.35540634393692017, -0.3664284646511078, 0.181685239...
https://github.com/huggingface/datasets/issues/2596
Example: Merge 2 datasets into one datasets Label extraction from dataset dataset(text, label) —> dataset(text, newlabel) TextCleaning. For image dataset, Transformation are easier (ie linear algebra). > On Jul 6, 2021, at 17:39, Quentin Lhoest ***@***.***> wrote: > >  > Hi ! Do you have an example in...
Transformer Class on dataset
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
83
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). Example: Merge 2 datasets into one datasets Label extraction from dataset dataset(text, label) —> dataset(text, newlabel...
[ -0.48543161153793335, 0.15293101966381073, -0.08864038437604904, 0.18962769210338593, 0.400646448135376, 0.10685020685195923, 0.5075281262397766, 0.12447421252727509, -0.011683106422424316, -0.06204491853713989, 0.053382858633995056, 0.33453190326690674, -0.3507429361343384, 0.187582105398...
https://github.com/huggingface/datasets/issues/2596
There are already a few transformations that you can apply on a dataset using methods like `dataset.map()`. You can find examples in the documentation here: https://huggingface.co/docs/datasets/processing.html You can merge two datasets with `concatenate_datasets()` or do label extraction with `dataset.map()` for ...
Transformer Class on dataset
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
41
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). There are already a few transformations that you can apply on a dataset using methods like `dataset.map()`. You can find exam...
[ -0.4685245752334595, -0.23068055510520935, -0.053157467395067215, 0.14103907346725464, 0.37909847497940063, -0.19871486723423004, 0.3367205858230591, 0.16955849528312683, 0.10450300574302673, 0.1931905746459961, -0.1746761053800583, 0.2893977463245392, -0.2316431701183319, 0.55936300754547...
https://github.com/huggingface/datasets/issues/2596
Ok, sure. Thanks for pointing on functional part. My question is more “Philosophical”/Design perspective. There are 2 perspetive: Add transformation methods to Dataset Class OR Create a Transformer Class which operates on Dataset Class. T(Dataset) —> Dataset datasetnew = MyTransform.transform(dataset)...
Transformer Class on dataset
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
142
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). Ok, sure. Thanks for pointing on functional part. My question is more “Philosophical”/Design perspective. There are 2 perspe...
[ -0.10654214024543762, -0.05383908748626709, 0.02605343982577324, 0.14303088188171387, 0.33659595251083374, -0.13995912671089172, 0.5725405216217041, -0.03391554206609726, -0.052185602486133575, 0.16315823793411255, 0.11685638874769211, 0.24485832452774048, -0.462017297744751, 0.43270477652...
https://github.com/huggingface/datasets/issues/2596
I can imagine that this would be a useful API to implement processing pipelines as transforms. They could be used to perform higher level transforms compared to the atomic transforms allowed by methods like map, filter, etc. I guess if you find any transform that could be useful for text dataset processing, image da...
Transformer Class on dataset
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
64
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). I can imagine that this would be a useful API to implement processing pipelines as transforms. They could be used to perform h...
[ -0.4904247224330902, 0.08723050355911255, -0.19068121910095215, -0.08399491012096405, 0.3473588228225708, -0.1753200739622116, 0.33810895681381226, 0.25743600726127625, 0.09037759900093079, 0.019790656864643097, 0.2580315172672272, 0.3618629276752472, -0.38507965207099915, 0.47672173380851...
https://github.com/huggingface/datasets/issues/2596
Thanks for reply. What would be the constraints to have Dataset —> Dataset consistency ? Main issue would be larger than memory dataset and serialization on disk. Technically, one still process at atomic level and try to wrap the full results into Dataset…. (!) What would you think ? > On Jul 7, 2021, at 16...
Transformer Class on dataset
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
155
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). Thanks for reply. What would be the constraints to have Dataset —> Dataset consistency ? Main issue would be larger than mem...
[ -0.42738890647888184, 0.2038235068321228, -0.08927101641893387, 0.06771709024906158, 0.5223820805549622, -0.13401170074939728, 0.3225386440753937, 0.1911119818687439, 0.01309157907962799, 0.06153780221939087, 0.22661873698234558, 0.35060372948646545, -0.4103449881076813, 0.2984678447246551...
https://github.com/huggingface/datasets/issues/2596
We can be pretty flexible and not impose any constraints for transforms. Moreover, this library is designed to support datasets bigger than memory. The datasets are loaded from the disk via memory mapping, without filling up RAM. Even processing functions like `map` work in a batched fashion to not fill up your RAM....
Transformer Class on dataset
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
59
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). We can be pretty flexible and not impose any constraints for transforms. Moreover, this library is designed to support data...
[ -0.5401790142059326, -0.018992498517036438, -0.14400827884674072, 0.1232815533876419, 0.4372495114803314, -0.2170051485300064, 0.2453126162290573, 0.19366072118282318, 0.21922743320465088, 0.13049159944057465, 0.061515696346759796, 0.18776746094226837, -0.2603258788585663, 0.07238706946372...
https://github.com/huggingface/datasets/issues/2596
Ok thanks. But, Dataset has various flavors. In current design of Dataset, how the serialization on disk is done (?) The main issue is serialization of newdataset= Transform(Dataset) (ie thats why am referring to Out Of memory dataset…): Should be part of Transform or part of dataset ? Maybe, not, sin...
Transformer Class on dataset
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
162
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). Ok thanks. But, Dataset has various flavors. In current design of Dataset, how the serialization on disk is done (?) The...
[ -0.3028286099433899, -0.07524675130844116, -0.05204993858933449, 0.2568613290786743, 0.4963204264640808, 0.03330118954181671, 0.3464808464050293, 0.13595689833164215, 0.10846943408250809, -0.048908621072769165, 0.14332538843154907, 0.1807945966720581, -0.24970845878124237, 0.09952016174793...
https://github.com/huggingface/datasets/issues/2596
I'm not sure I understand, could you elaborate a bit more please ? Each dataset is a wrapper of a PyArrow Table that contains all the data. The table is loaded from an arrow file on the disk. We have an ArrowWriter and ArrowReader class to write/read arrow tables on disk or in in-memory buffers.
Transformer Class on dataset
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
55
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). I'm not sure I understand, could you elaborate a bit more please ? Each dataset is a wrapper of a PyArrow Table that contai...
[ -0.36044788360595703, -0.056124791502952576, 0.011653352528810501, 0.270498126745224, 0.39460864663124084, -0.09719640016555786, 0.35086292028427124, 0.04822314530611038, -0.10002882033586502, -0.1611100733280182, 0.13179343938827515, 0.381563276052475, -0.31549957394599915, -0.08339153975...
https://github.com/huggingface/datasets/issues/2595
Hi @profsatwinder. It looks like you are using an old version of `datasets`. Please update it with `pip install -U datasets` and indicate if the problem persists.
ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets
Error traceback: --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-8-a7b592d3bca0> in <module>() 1 from datasets import load_dataset, load_metric 2 ----> 3 common_voice_train = load_da...
27
ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets Error traceback: --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-8-a7b592d3bca0> in <module>() 1 ...
[ -0.4680482745170593, -0.26218244433403015, -0.04225932061672211, -0.12496817111968994, 0.20410247147083282, 0.14506231248378754, 0.44024336338043213, 0.2543092668056488, 0.2220354676246643, 0.13481751084327698, -0.21101951599121094, 0.20888754725456238, -0.27976682782173157, -0.07806119322...
https://github.com/huggingface/datasets/issues/2595
@albertvillanova Thanks for the information. I updated it to 1.9.0 and the issue is resolved. Thanks again.
ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets
Error traceback: --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-8-a7b592d3bca0> in <module>() 1 from datasets import load_dataset, load_metric 2 ----> 3 common_voice_train = load_da...
17
ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets Error traceback: --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-8-a7b592d3bca0> in <module>() 1 ...
[ -0.36360588669776917, -0.38334164023399353, -0.018118079751729965, -0.13243882358074188, 0.1585254967212677, 0.17342975735664368, 0.40831315517425537, 0.27742013335227966, 0.19420096278190613, 0.09595771133899689, -0.19620396196842194, 0.2137218862771988, -0.2857518494129181, -0.0307676680...
https://github.com/huggingface/datasets/issues/2591
I'm using the datasets concatenate dataset to combine the datasets and then train. train_dataset = concatenate_datasets([dataset1, dataset2, common_voice_train])
Cached dataset overflowing disk space
I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb). The cache folder is 500gb (and now my disk space is full). Is there a way to toggle caching or set the caching to b...
18
Cached dataset overflowing disk space I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb). The cache folder is 500gb (and now my disk space is full). Is there a way t...
[ 0.03755926340818405, -0.42221277952194214, 0.09859039634466171, 0.45147594809532166, 0.10117395222187042, 0.2050563395023346, 0.07448543608188629, 0.14190471172332764, 0.14452892541885376, 0.05563698336482048, 0.4010791778564453, -0.2280428260564804, -0.1242995634675026, 0.1127193495631218...
https://github.com/huggingface/datasets/issues/2591
Hi @BirgerMoell. You have several options: - to set caching to be stored on a different path location, other than the default one (`~/.cache/huggingface/datasets`): - either setting the environment variable `HF_DATASETS_CACHE` with the path to the new cache location - or by passing it with the parameter `cach...
Cached dataset overflowing disk space
I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb). The cache folder is 500gb (and now my disk space is full). Is there a way to toggle caching or set the caching to b...
127
Cached dataset overflowing disk space I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb). The cache folder is 500gb (and now my disk space is full). Is there a way t...
[ 0.03755926340818405, -0.42221277952194214, 0.09859039634466171, 0.45147594809532166, 0.10117395222187042, 0.2050563395023346, 0.07448543608188629, 0.14190471172332764, 0.14452892541885376, 0.05563698336482048, 0.4010791778564453, -0.2280428260564804, -0.1242995634675026, 0.1127193495631218...
https://github.com/huggingface/datasets/issues/2591
Hi @BirgerMoell, We are planning to add a new feature to datasets, which could be interesting in your case: Add the option to delete temporary files (decompressed files) from the cache directory (see: #2481, #2604). We will ping you once this feature is implemented, so that the size of your cache directory will b...
Cached dataset overflowing disk space
I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb). The cache folder is 500gb (and now my disk space is full). Is there a way to toggle caching or set the caching to b...
56
Cached dataset overflowing disk space I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb). The cache folder is 500gb (and now my disk space is full). Is there a way t...
[ 0.03755926340818405, -0.42221277952194214, 0.09859039634466171, 0.45147594809532166, 0.10117395222187042, 0.2050563395023346, 0.07448543608188629, 0.14190471172332764, 0.14452892541885376, 0.05563698336482048, 0.4010791778564453, -0.2280428260564804, -0.1242995634675026, 0.1127193495631218...
https://github.com/huggingface/datasets/issues/2585
Hi @mmajurski, thanks for reporting this issue. Indeed this misalignment arises because the source dataset context field contains leading blank spaces (and these are counted within the answer_start), while our datasets loading script removes these leading blank spaces. I'm going to fix our script so that all lead...
sqaud_v2 dataset contains misalignment between the answer text and the context value at the answer index
## Describe the bug The built in huggingface squad_v2 dataset that you can access via datasets.load_dataset contains mis-alignment between the answers['text'] and the characters in the context at the location specified by answers['answer_start']. For example: id = '56d1f453e7d4791d009025bd' answers = {'text': ['P...
71
sqaud_v2 dataset contains misalignment between the answer text and the context value at the answer index ## Describe the bug The built in huggingface squad_v2 dataset that you can access via datasets.load_dataset contains mis-alignment between the answers['text'] and the characters in the context at the location spe...
[ -0.23303009569644928, -0.32953786849975586, -0.044109877198934555, 0.3749361038208008, 0.08782294392585754, -0.07634187489748001, 0.10575705766677856, 0.22790312767028809, -0.2927471399307251, 0.1577831506729126, -0.08416309207677841, 0.04506833851337433, 0.32503560185432434, 0.06854515522...
https://github.com/huggingface/datasets/issues/2585
If you are going to be altering the data cleaning from the source Squad dataset, here is one thing to consider. There are occasional double spaces separating words which it might be nice to get rid of. Either way, thank you.
sqaud_v2 dataset contains misalignment between the answer text and the context value at the answer index
## Describe the bug The built in huggingface squad_v2 dataset that you can access via datasets.load_dataset contains mis-alignment between the answers['text'] and the characters in the context at the location specified by answers['answer_start']. For example: id = '56d1f453e7d4791d009025bd' answers = {'text': ['P...
41
sqaud_v2 dataset contains misalignment between the answer text and the context value at the answer index ## Describe the bug The built in huggingface squad_v2 dataset that you can access via datasets.load_dataset contains mis-alignment between the answers['text'] and the characters in the context at the location spe...
[ -0.23303009569644928, -0.32953786849975586, -0.044109877198934555, 0.3749361038208008, 0.08782294392585754, -0.07634187489748001, 0.10575705766677856, 0.22790312767028809, -0.2927471399307251, 0.1577831506729126, -0.08416309207677841, 0.04506833851337433, 0.32503560185432434, 0.06854515522...
https://github.com/huggingface/datasets/issues/2583
Hi ! This is because you first need to format the dataset for pytorch: ```python >>> import torch >>> from datasets import load_dataset >>> dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) >>> torch_iterable_dataset = dataset.with_format("torch") >>> assert isinstance...
Error iteration over IterableDataset using Torch DataLoader
## Describe the bug I have an IterableDataset (created using streaming=True) and I am trying to create batches using Torch DataLoader class by passing this IterableDataset to it. This throws error which is pasted below. I can do the same by using Torch IterableDataset. One thing I noticed is that in the former case wh...
93
Error iteration over IterableDataset using Torch DataLoader ## Describe the bug I have an IterableDataset (created using streaming=True) and I am trying to create batches using Torch DataLoader class by passing this IterableDataset to it. This throws error which is pasted below. I can do the same by using Torch Iter...
[ -0.1759883165359497, -0.3325828015804291, -0.01214098185300827, 0.2365850806236267, 0.15527509152889252, 0.020412303507328033, 0.43117454648017883, 0.0018051117658615112, -0.16896092891693115, 0.24600976705551147, 0.0963452011346817, 0.24420955777168274, -0.3354809284210205, -0.40659722685...
https://github.com/huggingface/datasets/issues/2583
Thank you for that and the example! What you said makes total sense; I just somehow missed that and assumed HF IterableDataset was a subclass of Torch IterableDataset.
Error iteration over IterableDataset using Torch DataLoader
## Describe the bug I have an IterableDataset (created using streaming=True) and I am trying to create batches using Torch DataLoader class by passing this IterableDataset to it. This throws error which is pasted below. I can do the same by using Torch IterableDataset. One thing I noticed is that in the former case wh...
28
Error iteration over IterableDataset using Torch DataLoader ## Describe the bug I have an IterableDataset (created using streaming=True) and I am trying to create batches using Torch DataLoader class by passing this IterableDataset to it. This throws error which is pasted below. I can do the same by using Torch Iter...
[ -0.1759883165359497, -0.3325828015804291, -0.01214098185300827, 0.2365850806236267, 0.15527509152889252, 0.020412303507328033, 0.43117454648017883, 0.0018051117658615112, -0.16896092891693115, 0.24600976705551147, 0.0963452011346817, 0.24420955777168274, -0.3354809284210205, -0.40659722685...
https://github.com/huggingface/datasets/issues/2573
This was actually a second error arising from a too small block-size in the json reader. Finding the right block size is difficult for the layman user
Finding right block-size with JSON loading difficult for user
As reported by @thomwolf, while loading a JSON Lines file with "json" loading script, he gets > json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 383)
27
Finding right block-size with JSON loading difficult for user As reported by @thomwolf, while loading a JSON Lines file with "json" loading script, he gets > json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 383) This was actually a second error arising from a too small block-size in the json reade...
[ 0.09560723602771759, 0.0020217597484588623, -0.22474904358386993, 0.40687277913093567, 0.13413354754447937, -0.08703837543725967, 0.3515782952308655, 0.3959695100784302, 0.5053704380989075, 0.4565081000328064, 0.2659342885017395, -0.0984666645526886, 0.0224604569375515, -0.0638388246297836...
https://github.com/huggingface/datasets/issues/2572
I am trying to load a dataset using Hugging Face Datasets load_dataset method. I am getting the value error as show below. Can someone help with this? I am using Windows laptop and Google Colab notebook. ``` !pip install zstandard from datasets import load_dataset lds = load_dataset( "json", data_file...
Support Zstandard compressed files
Add support for Zstandard compressed files: https://facebook.github.io/zstd/
115
Support Zstandard compressed files Add support for Zstandard compressed files: https://facebook.github.io/zstd/ I am trying to load a dataset using Hugging Face Datasets load_dataset method. I am getting the value error as show below. Can someone help with this? I am using Windows laptop and Google Colab notebook. ...
[ -0.4337600767612457, -0.4193229079246521, -0.04824618622660637, 0.3514418303966522, 0.29220548272132874, 0.061235055327415466, 0.14015069603919983, 0.21787284314632416, 0.17336498200893402, 0.21131788194179535, -0.3279796838760376, 0.11098890006542206, -0.13501004874706268, 0.3161153197288...
https://github.com/huggingface/datasets/issues/2572
I just tried on google colab and this works: ```python !pip install zstandard !pip install datasets from datasets import load_dataset lds = load_dataset( "json", data_files="https://the-eye.eu/public/AI/pile_preliminary_components/FreeLaw_Opinions.jsonl.zst", split="train", streaming=True, )...
Support Zstandard compressed files
Add support for Zstandard compressed files: https://facebook.github.io/zstd/
42
Support Zstandard compressed files Add support for Zstandard compressed files: https://facebook.github.io/zstd/ I just tried on google colab and this works: ```python !pip install zstandard !pip install datasets from datasets import load_dataset lds = load_dataset( "json", data_files="https://the-e...
[ -0.3480066955089569, -0.14931654930114746, -0.0793149396777153, 0.01082250289618969, 0.15576066076755524, -0.03259158134460449, -0.008293068036437035, 0.5053691864013672, 0.06540832668542862, 0.15173806250095367, -0.1540282517671585, 0.2877558469772339, -0.10321164131164551, 0.313335061073...
https://github.com/huggingface/datasets/issues/2572
> I just tried on google colab and this works: > > ```python > !pip install zstandard > !pip install datasets > from datasets import load_dataset > > lds = load_dataset( > "json", > data_files="https://the-eye.eu/public/AI/pile_preliminary_components/FreeLaw_Opinions.jsonl.zst", > split="train",...
Support Zstandard compressed files
Add support for Zstandard compressed files: https://facebook.github.io/zstd/
93
Support Zstandard compressed files Add support for Zstandard compressed files: https://facebook.github.io/zstd/ > I just tried on google colab and this works: > > ```python > !pip install zstandard > !pip install datasets > from datasets import load_dataset > > lds = load_dataset( > "json", > dat...
[ -0.28362250328063965, -0.21372531354427338, -0.07408976554870605, 0.0830594003200531, 0.3093841075897217, -0.08704546093940735, 0.15055787563323975, 0.4861842095851898, 0.007773146033287048, 0.283074289560318, -0.09433209896087646, 0.2176629900932312, 0.06526413559913635, 0.288215041160583...
https://github.com/huggingface/datasets/issues/2569
Hi @suzyahyah, thanks for reporting. The message you get is indeed not an error message, but a warning coming from Hugging Face `transformers`. The complete warning message is: ``` Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_hea...
Weights of model checkpoint not initialized for RobertaModel for Bertscore
When applying bertscore out of the box, ```Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_head.dense.weight', 'lm_head.layer_norm.weight']``` Following the typical ...
167
Weights of model checkpoint not initialized for RobertaModel for Bertscore When applying bertscore out of the box, ```Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_...
[ -0.05955047905445099, -0.36452990770339966, 0.09011001139879227, 0.12897028028964996, 0.42737650871276855, 0.07482722401618958, 0.2718203067779541, 0.1242346540093422, 0.1251109391450882, 0.13339745998382568, -0.1491384506225586, 0.21721339225769043, -0.14552892744541168, -0.06434871256351...
https://github.com/huggingface/datasets/issues/2569
Hi @suzyahyah, I have created a Pull Request to filter out that warning message in this specific case, since the behavior is as expected and the warning message can only cause confusion for users (as in your case).
Weights of model checkpoint not initialized for RobertaModel for Bertscore
When applying bertscore out of the box, ```Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_head.dense.weight', 'lm_head.layer_norm.weight']``` Following the typical ...
38
Weights of model checkpoint not initialized for RobertaModel for Bertscore When applying bertscore out of the box, ```Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_...
[ -0.15063080191612244, -0.2975347638130188, 0.07905333489179611, 0.05135180801153183, 0.4647556245326996, 0.04057663679122925, 0.19793570041656494, 0.19078680872917175, 0.13858547806739807, 0.20844969153404236, -0.13037744164466858, 0.28699207305908203, -0.12756779789924622, -0.086621016263...
https://github.com/huggingface/datasets/issues/2564
It is probably worth noting here that the [documentation](https://huggingface.co/docs/datasets/process#concatenate) is misleading (indicating that it does work for IterableDatasets): > You can also mix several datasets together by taking alternating examples from each one to create a new dataset. This is known as in...
concatenate_datasets for iterable datasets
Currently `concatenate_datasets` only works for map-style `Dataset`. It would be nice to have it work for `IterableDataset` objects as well. It would simply chain the iterables of the iterable datasets.
74
concatenate_datasets for iterable datasets Currently `concatenate_datasets` only works for map-style `Dataset`. It would be nice to have it work for `IterableDataset` objects as well. It would simply chain the iterables of the iterable datasets. It is probably worth noting here that the [documentation](https:...
[ -0.4250548481941223, -0.458753764629364, -0.003740161657333374, 0.14795130491256714, 0.11199139058589935, 0.22481049597263336, 0.04923885315656662, 0.0895826667547226, -0.2572474777698517, 0.0967225581407547, -0.3324240446090698, 0.24816790223121643, -0.08422107994556427, 0.333570957183837...
https://github.com/huggingface/datasets/issues/2561
Hi ! I just tried to reproduce what you said: - create a local builder class - use `load_dataset` - update the builder class code - use `load_dataset` again (with or without `ignore_verifications=True`) And it creates a new cache, as expected. What modifications did you do to your builder's code ?
Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True`
## Describe the bug If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets. ## Steps to reproduce th...
51
Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True` ## Describe the bug If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`...
[ -0.3804818093776703, 0.48865750432014465, 0.03263252228498459, 0.1935645043849945, 0.14466354250907898, 0.1507258415222168, 0.3192700147628784, 0.37488478422164917, 0.1290491670370102, 0.2183319330215454, 0.21496078372001648, 0.3630376160144806, 0.11989074945449829, -0.2817021310329437, ...
https://github.com/huggingface/datasets/issues/2561
Hi @lhoestq. Thanks for your reply. I just did minor modifications for which it should not regenerate cache (for e.g. Adding a print statement). Overall, regardless of cache miss, there should be an explicit option to allow reuse of existing cache if author knows cache shouldn't be affected.
Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True`
## Describe the bug If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets. ## Steps to reproduce th...
48
Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True` ## Describe the bug If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`...
[ -0.29660987854003906, 0.4845605492591858, 0.04970768094062805, 0.18488603830337524, 0.08039241284132004, 0.21865558624267578, 0.28246158361434937, 0.37450700998306274, 0.19491252303123474, 0.17794643342494965, 0.27538976073265076, 0.35446980595588684, 0.086409792304039, -0.2514214217662811...
https://github.com/huggingface/datasets/issues/2561
The cache is based on the hash of the dataset builder's code, so changing the code makes it recompute the cache. You could still rename the cache directory of your previous computation to the new expected cache directory if you want to avoid having to recompute it and if you're sure that it would generate the exact ...
Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True`
## Describe the bug If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets. ## Steps to reproduce th...
82
Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True` ## Describe the bug If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`...
[ -0.3809875249862671, 0.4386593699455261, -0.003196079283952713, 0.17506980895996094, 0.09502044320106506, 0.1552421748638153, 0.23175208270549774, 0.4199695885181427, 0.1590617597103119, 0.30920475721359253, 0.16211572289466858, 0.28301164507865906, 0.11000069975852966, -0.2082075476646423...
https://github.com/huggingface/datasets/issues/2561
Hi @apsdehal, If you decide to follow @lhoestq's suggestion to rename the cache directory of your previous computation to the new expected cache directory, you can do the following to get the name of the new expected cache directory once #2500 is merged: ```python from datasets import load_dataset_builder dataset...
Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True`
## Describe the bug If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets. ## Steps to reproduce th...
73
Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True` ## Describe the bug If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`...
[ -0.43786269426345825, 0.4782148599624634, -0.007668491452932358, 0.11805270612239838, 0.15692681074142456, 0.18813154101371765, 0.296032190322876, 0.4827197790145874, 0.17503735423088074, 0.34378156065940857, 0.22528555989265442, 0.3112469017505646, 0.06439517438411713, -0.1951677948236465...
https://github.com/huggingface/datasets/issues/2559
Hi ! Can you share the function you pass to `map` ? I know you mentioned it would be hard to share some code but this would really help to understand what happened
Memory usage consistently increases when processing a dataset with `.map`
## Describe the bug I have a HF dataset with image paths stored in it and I am trying to load those image paths using `.map` with `num_proc=80`. I am noticing that the memory usage consistently keeps on increasing with time. I tried using `DEFAULT_WRITER_BATCH_SIZE=10` in the builder to decrease arrow writer's batch...
33
Memory usage consistently increases when processing a dataset with `.map` ## Describe the bug I have a HF dataset with image paths stored in it and I am trying to load those image paths using `.map` with `num_proc=80`. I am noticing that the memory usage consistently keeps on increasing with time. I tried using `D...
[ -0.15703536570072174, -0.1291138231754303, 0.007089454680681229, 0.4211393892765045, 0.1809348165988922, -0.006408236920833588, 0.058969128876924515, 0.11856084316968918, 0.2151498645544052, 0.13143686950206757, 0.40360957384109497, 0.5179603099822998, -0.18737517297267914, -0.034299157559...
https://github.com/huggingface/datasets/issues/2559
This is the same behavior as in #4883, so I'm closing this issue as a duplicate.
Memory usage consistently increases when processing a dataset with `.map`
## Describe the bug I have a HF dataset with image paths stored in it and I am trying to load those image paths using `.map` with `num_proc=80`. I am noticing that the memory usage consistently keeps on increasing with time. I tried using `DEFAULT_WRITER_BATCH_SIZE=10` in the builder to decrease arrow writer's batch...
16
Memory usage consistently increases when processing a dataset with `.map` ## Describe the bug I have a HF dataset with image paths stored in it and I am trying to load those image paths using `.map` with `num_proc=80`. I am noticing that the memory usage consistently keeps on increasing with time. I tried using `D...
[ -0.1910119652748108, -0.0638243556022644, 0.03221661597490311, 0.3927302360534668, 0.1601976752281189, 0.016504622995853424, 0.08988530188798904, 0.13279539346694946, 0.18275871872901917, 0.11710870265960693, 0.40642249584198, 0.47829803824424744, -0.1747616082429886, -0.02410360425710678,...
https://github.com/huggingface/datasets/issues/2556
excuse me, my `datasets` version is `2.2.2`, but I also just see the error info like ``` DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 0 Keys should be unique and deterministic in nature ```
Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys. The current one is ```python datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys s...
36
Better DuplicateKeysError error to help the user debug the issue As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys. The current one is ```python datasets.keyhash.DuplicatedKeysEr...
[ -0.045797836035490036, -0.18270666897296906, 0.026427119970321655, 0.26547348499298096, 0.11763186752796173, 0.18792268633842468, 0.21435460448265076, 0.2438586950302124, -0.11862131953239441, 0.1403774619102478, 0.30744972825050354, 0.17654579877853394, -0.1661486029624939, 0.302502453327...
https://github.com/huggingface/datasets/issues/2556
Hi ! for which dataset do you have this error ? Also note that this issue is just about improving the error message, which is not very friendly x)
Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys. The current one is ```python datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys s...
29
Better DuplicateKeysError error to help the user debug the issue As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys. The current one is ```python datasets.keyhash.DuplicatedKeysEr...
[ -0.040119823068380356, -0.28377631306648254, 0.016583800315856934, 0.2825005352497101, 0.16967178881168365, 0.17682065069675446, 0.18356342613697052, 0.24649403989315033, -0.051504090428352356, 0.17384889721870422, 0.31363266706466675, 0.17906859517097473, -0.1397775113582611, 0.3409941196...
https://github.com/huggingface/datasets/issues/2556
@lhoestq I would like to take a hit at improving the error message. Will open a draft PR and will reach out to you for review
Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys. The current one is ```python datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys s...
26
Better DuplicateKeysError error to help the user debug the issue As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys. The current one is ```python datasets.keyhash.DuplicatedKeysEr...
[ 0.0004935264587402344, -0.24866607785224915, 0.02145397663116455, 0.24561241269111633, 0.17437824606895447, 0.17658886313438416, 0.20674552023410797, 0.2276930809020996, -0.07359087467193604, 0.1310095638036728, 0.29601654410362244, 0.17266039550304413, -0.12909333407878876, 0.337944298982...
https://github.com/huggingface/datasets/issues/2556
> DuplicateKeysError: both 42th and 1337th examples have the same keys `48`. @lhoestq when you mention 42th and 1337th in the above case , are these values the examples' "id" or are they the examples' index ?
Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys. The current one is ```python datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys s...
37
Better DuplicateKeysError error to help the user debug the issue As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys. The current one is ```python datasets.keyhash.DuplicatedKeysEr...
[ -0.02034025639295578, -0.22392664849758148, 0.025477632880210876, 0.3514038622379303, 0.10506195574998856, 0.21221892535686493, 0.24172256886959076, 0.2712756097316742, -0.01610865443944931, 0.17106956243515015, 0.2537629008293152, 0.16047754883766174, -0.08901966363191605, 0.2841190397739...
https://github.com/huggingface/datasets/issues/2556
Hi ! Thanks @VijayKalmath :) In the general case, examples don't have an "id" field, so I think it should correspond to the index
Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys. The current one is ```python datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys s...
24
Better DuplicateKeysError error to help the user debug the issue As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys. The current one is ```python datasets.keyhash.DuplicatedKeysEr...
[ -0.04555782675743103, -0.19827987253665924, 0.02066759765148163, 0.31138986349105835, 0.11798295378684998, 0.19987523555755615, 0.23079487681388855, 0.2535218596458435, -0.025638122111558914, 0.19732744991779327, 0.3366694450378418, 0.17300094664096832, -0.12255805730819702, 0.355611026287...
https://github.com/huggingface/datasets/issues/2556
@lhoestq , I have opened a draft PR for this Issue. I wanted to check with you if there is a way to get `<path/to/the/dataset/script>` currently or do I need to add extra code to find that. If I need to find the script , I can assume that the generator function will always be in `datasets/{dataset_name}/{datas...
Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys. The current one is ```python datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys s...
57
Better DuplicateKeysError error to help the user debug the issue As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys. The current one is ```python datasets.keyhash.DuplicatedKeysEr...
[ -0.0673380047082901, -0.17039591073989868, 0.05833854526281357, 0.29294681549072266, 0.20678654313087463, 0.12031836807727814, 0.20834475755691528, 0.24666540324687958, -0.0678878203034401, 0.17661133408546448, 0.407733678817749, 0.23443536460399628, -0.16266413033008575, 0.328441232442855...
https://github.com/huggingface/datasets/issues/2556
Thanks ! > I wanted to check with you if there is a way to get <path/to/the/dataset/script> currently or do I need to add extra code to find that. You don't have access to this info inside the ArrowWriter unfortunately. This info is available in builder.py in the DatasetBuilder code that uses the ArrowWriter thou...
Better DuplicateKeysError error to help the user debug the issue
As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys. The current one is ```python datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys s...
63
Better DuplicateKeysError error to help the user debug the issue As mentioned in https://github.com/huggingface/datasets/issues/2552 it would be nice to improve the error message when a dataset fails to build because there are duplicate example keys. The current one is ```python datasets.keyhash.DuplicatedKeysEr...
[ -0.11280795931816101, -0.1015755832195282, 0.06124362722039223, 0.34673526883125305, 0.1354447305202484, 0.13530996441841125, 0.22799906134605408, 0.21605084836483002, -0.11058901250362396, 0.11117392033338547, 0.3988199830055237, 0.3010415732860565, -0.13962526619434357, 0.210245996713638...
https://github.com/huggingface/datasets/issues/2554
Hi @GuillemGSubies, thanks for reporting. I have made a PR to fix this issue and allow metrics to be computed also for multilabel classification problems.
Multilabel metrics not supported
When I try to use a metric like F1 macro I get the following error: ``` TypeError: int() argument must be a string, a bytes-like object or a number, not 'list' ``` There is an explicit casting here: https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/src/datasets/features.py#L...
25
Multilabel metrics not supported When I try to use a metric like F1 macro I get the following error: ``` TypeError: int() argument must be a string, a bytes-like object or a number, not 'list' ``` There is an explicit casting here: https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17...
[ -0.2212650179862976, -0.17884793877601624, 0.00447738915681839, 0.3008992373943329, 0.6725277900695801, -0.13599032163619995, 0.4806860387325287, -0.10233510285615921, 0.2283087521791458, 0.31667953729629517, -0.1240747794508934, 0.2981927692890167, -0.2808501720428467, 0.40463340282440186...
https://github.com/huggingface/datasets/issues/2554
Sorry for reopening but I just noticed that the `_compute` method for the F1 metric is still not good enough for multilabel problems: https://github.com/huggingface/datasets/blob/92a3ee549705aa0a107c9fa5caf463b3b3da2616/metrics/f1/f1.py#L115 Somehow we should be able to change the parameter `average` at least
Multilabel metrics not supported
When I try to use a metric like F1 macro I get the following error: ``` TypeError: int() argument must be a string, a bytes-like object or a number, not 'list' ``` There is an explicit casting here: https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/src/datasets/features.py#L...
36
Multilabel metrics not supported When I try to use a metric like F1 macro I get the following error: ``` TypeError: int() argument must be a string, a bytes-like object or a number, not 'list' ``` There is an explicit casting here: https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17...
[ -0.30356842279434204, -0.1394243687391281, -0.011592186987400055, 0.27266725897789, 0.5279554128646851, -0.19527539610862732, 0.5079542398452759, -0.06288576871156693, 0.20763751864433289, 0.3886970281600952, -0.048710815608501434, 0.29734766483306885, -0.22173556685447693, 0.4341044723987...
https://github.com/huggingface/datasets/issues/2553
Hi ! Thanks for reporting. This is due to the WebNLG repository that got updated today. I just pushed a fix at #2558 - this shouldn't happen anymore in the future.
load_dataset("web_nlg") NonMatchingChecksumError
Hi! It seems the WebNLG dataset gives a NonMatchingChecksumError. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('web_nlg', name="release_v3.0_en", split="dev") ``` Gives ``` NonMatchingChecksumError: Checksums didn't match for dataset source files: ['h...
31
load_dataset("web_nlg") NonMatchingChecksumError Hi! It seems the WebNLG dataset gives a NonMatchingChecksumError. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('web_nlg', name="release_v3.0_en", split="dev") ``` Gives ``` NonMatchingChecksumError: Ch...
[ -0.19279485940933228, 0.12983936071395874, -0.1363760381937027, 0.04064258188009262, 0.2651572525501251, 0.00867868959903717, 0.13199755549430847, 0.4511447250843048, 0.2963729500770569, 0.08619628846645355, -0.06551384180784225, 0.2723965644836426, 0.022088482975959778, -0.025521982461214...
https://github.com/huggingface/datasets/issues/2552
Two questions: - with `datasets-cli env` we don't have any information on the dataset script version used. Should we give access to this somehow? Either as a note in the Error message or as an argument with the name of the dataset to `datasets-cli env`? - I don't really understand why the id is duplicated in the code...
Keys should be unique error on code_search_net
## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] ...
66
Keys should be unique error on code_search_net ## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] ...
[ -0.009492196142673492, 0.004909053444862366, -0.10378050804138184, 0.3735046684741974, 0.04693056643009186, -0.05958148092031479, 0.23553314805030823, 0.23767659068107605, 0.05807105451822281, 0.0420987606048584, -0.08941295742988586, 0.40720927715301514, -0.15770061314105988, 0.1043380498...
https://github.com/huggingface/datasets/issues/2552
Thanks for reporting. There was indeed an issue with the keys. The key was the addition of the file id and row id, which resulted in collisions. I just opened a PR to fix this at https://github.com/huggingface/datasets/pull/2555 To help users debug this kind of errors we could try to show a message like this ```pyt...
Keys should be unique error on code_search_net
## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] ...
97
Keys should be unique error on code_search_net ## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] ...
[ -0.03938975930213928, -0.014792054891586304, -0.09282352030277252, 0.3366982340812683, 0.08731947839260101, -0.0139397531747818, 0.2003907561302185, 0.2712211012840271, 0.08827364444732666, 0.06673943251371384, -0.08619929850101471, 0.3934500813484192, -0.16239207983016968, 0.1329391896724...
https://github.com/huggingface/datasets/issues/2552
and are we sure there are not a lot of datasets which are now broken with this change?
Keys should be unique error on code_search_net
## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] ...
18
Keys should be unique error on code_search_net ## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] ...
[ -0.046908438205718994, -0.027152881026268005, -0.11061206459999084, 0.34909942746162415, 0.08127652108669281, -0.015618935227394104, 0.18118081986904144, 0.27708402276039124, 0.08159128576517105, 0.05441845580935478, -0.05990713834762573, 0.39169299602508545, -0.18466120958328247, 0.116615...
https://github.com/huggingface/datasets/issues/2552
Thanks to the dummy data, we know for sure that most of them work as expected. `code_search_net` wasn't caught because the dummy data only have one dummy data file while the dataset script can actually load several of them using `os.listdir`. Let me take a look at all the other datasets that use `os.listdir` to see if...
Keys should be unique error on code_search_net
## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] ...
61
Keys should be unique error on code_search_net ## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] ...
[ -0.036426760256290436, -0.020195454359054565, -0.09643833339214325, 0.3276670575141907, 0.07617693394422531, -0.013211749494075775, 0.2080996185541153, 0.29120171070098877, 0.09849927574396133, 0.07118499279022217, -0.06703733652830124, 0.38355952501296997, -0.17116601765155792, 0.13639973...
https://github.com/huggingface/datasets/issues/2552
I found one issue on `fever` (PR here: https://github.com/huggingface/datasets/pull/2557) All the other ones seem fine :)
Keys should be unique error on code_search_net
## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] ...
16
Keys should be unique error on code_search_net ## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] ...
[ -0.02020823210477829, 0.0007681995630264282, -0.09075665473937988, 0.3496337831020355, 0.08513688296079636, -0.02487228810787201, 0.19917990267276764, 0.25810670852661133, 0.09322972595691681, 0.07367509603500366, -0.09278684109449387, 0.38461238145828247, -0.17428527772426605, 0.114508986...
https://github.com/huggingface/datasets/issues/2552
Hi! Got same error when loading other dataset: ```python3 load_dataset('wikicorpus', 'raw_en') ``` tb: ```pytb --------------------------------------------------------------------------- DuplicatedKeysError Traceback (most recent call last) /opt/conda/lib/python3.8/site-packages/datasets...
Keys should be unique error on code_search_net
## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] ...
91
Keys should be unique error on code_search_net ## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] ...
[ -0.05065636709332466, -0.02653123438358307, -0.09670862555503845, 0.3376673758029938, 0.0938270092010498, -0.005184747278690338, 0.209636852145195, 0.27232280373573303, 0.09786687791347504, 0.084678053855896, -0.07676677405834198, 0.3797587454319, -0.18557721376419067, 0.13124993443489075,...
https://github.com/huggingface/datasets/issues/2552
The wikicorpus issue has been fixed by https://github.com/huggingface/datasets/pull/2844 We'll do a new release of `datasets` soon :)
Keys should be unique error on code_search_net
## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] ...
17
Keys should be unique error on code_search_net ## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] ...
[ -0.07428067177534103, -0.035179659724235535, -0.08668215572834015, 0.35816043615341187, 0.062326230108737946, -0.035492248833179474, 0.16847527027130127, 0.2639014422893524, 0.09276609122753143, 0.12361430376768112, -0.044514235109090805, 0.37844154238700867, -0.1519159972667694, 0.1347225...
https://github.com/huggingface/datasets/issues/2549
Hi @nelson-liu, You can pass the parameter `features` to `load_dataset`: https://huggingface.co/docs/datasets/_modules/datasets/load.html#load_dataset If you look at the code of the MNLI script you referred in your question (https://github.com/huggingface/datasets/blob/master/datasets/multi_nli/multi_nli.py#L62-L...
Handling unlabeled datasets
Hi! Is there a way for datasets to produce unlabeled instances (e.g., the `ClassLabel` can be nullable). For example, I want to use the MNLI dataset reader ( https://github.com/huggingface/datasets/blob/master/datasets/multi_nli/multi_nli.py ) on a file that doesn't have the `gold_label` field. I tried setting `"...
55
Handling unlabeled datasets Hi! Is there a way for datasets to produce unlabeled instances (e.g., the `ClassLabel` can be nullable). For example, I want to use the MNLI dataset reader ( https://github.com/huggingface/datasets/blob/master/datasets/multi_nli/multi_nli.py ) on a file that doesn't have the `gold_la...
[ 0.058813080191612244, 0.07810129225254059, 0.13162556290626526, 0.3273365795612335, 0.2503513693809509, 0.13801167905330658, 0.7898842096328735, -0.15122932195663452, 0.057232096791267395, 0.14990778267383575, -0.20007790625095367, 0.5356731414794922, -0.2677469253540039, 0.244022309780120...
https://github.com/huggingface/datasets/issues/2548
Hi @luyug, thanks for reporting. The good news is that we fixed this issue only 9 days ago: #2507. The patch is already in the master branch of our repository and it will be included in our next `datasets` release version 1.9.0. Feel free to reopen the issue if the problem persists.
Field order issue in loading json
## Describe the bug The `load_dataset` function expects columns in alphabetical order when loading json files. Similar bug was previously reported for csv in #623 and fixed in #684. ## Steps to reproduce the bug For a json file `j.json`, ``` {"c":321, "a": 1, "b": 2} ``` Running the following, ``` f= data...
52
Field order issue in loading json ## Describe the bug The `load_dataset` function expects columns in alphabetical order when loading json files. Similar bug was previously reported for csv in #623 and fixed in #684. ## Steps to reproduce the bug For a json file `j.json`, ``` {"c":321, "a": 1, "b": 2} ``` ...
[ 0.18250930309295654, 0.23169350624084473, -0.015927769243717194, 0.21059907972812653, 0.32902026176452637, -0.06300374865531921, 0.22351807355880737, 0.42885392904281616, 0.009034715592861176, 0.022668272256851196, 0.0754535123705864, 0.6574711799621582, 0.3253485858440399, -0.012466363608...
https://github.com/huggingface/datasets/issues/2547
Hi ! It looks like an issue with the virtual disk you are using. We load datasets using memory mapping. In general it makes it possible to load very big files instantaneously since it doesn't have to read the file (it just assigns virtual memory to the file on disk). However there happens to be issues with virtual ...
Dataset load_from_disk is too slow
@lhoestq ## Describe the bug It's not normal that I have to wait 7-8 hours for a dataset to be loaded from disk, as there are no preprocessing steps, it's only loading it with load_from_disk. I have 96 cpus, however only 1 is used for this, which is inefficient. Moreover, its usage is at 1%... This is happening in t...
121
Dataset load_from_disk is too slow @lhoestq ## Describe the bug It's not normal that I have to wait 7-8 hours for a dataset to be loaded from disk, as there are no preprocessing steps, it's only loading it with load_from_disk. I have 96 cpus, however only 1 is used for this, which is inefficient. Moreover, its usa...
[ -0.4744633138179779, -0.36521124839782715, -0.0910319909453392, 0.5078073143959045, 0.2949647307395935, 0.07778078317642212, 0.08729557693004608, 0.294116348028183, 0.5636069178581238, 0.11371590197086334, 0.10302706062793732, 0.31005150079727173, -0.03649451583623886, -0.13101845979690552...
https://github.com/huggingface/datasets/issues/2547
Okay, that's exactly my case, with spot instances... Therefore this isn't something we can change in any way to be able to load the dataset faster? I mean, what do you do internally at huggingface for being able to use spot instances with datasets efficiently?
Dataset load_from_disk is too slow
@lhoestq ## Describe the bug It's not normal that I have to wait 7-8 hours for a dataset to be loaded from disk, as there are no preprocessing steps, it's only loading it with load_from_disk. I have 96 cpus, however only 1 is used for this, which is inefficient. Moreover, its usage is at 1%... This is happening in t...
45
Dataset load_from_disk is too slow @lhoestq ## Describe the bug It's not normal that I have to wait 7-8 hours for a dataset to be loaded from disk, as there are no preprocessing steps, it's only loading it with load_from_disk. I have 96 cpus, however only 1 is used for this, which is inefficient. Moreover, its usa...
[ -0.3196370303630829, -0.558756411075592, -0.06202656403183937, 0.5160353779792786, 0.232860267162323, 0.02037881314754486, 0.12462952733039856, 0.13793537020683289, 0.5566675662994385, 0.11270622909069061, -0.06148025766015053, 0.3583335876464844, -0.015343135222792625, 0.2113305628299713,...