html_url
stringlengths
48
51
title
stringlengths
5
280
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
159
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/3064
Make `interleave_datasets` more robust
Hi ! Sorry for the late response I agree `interleave_datasets` would benefit a lot from having more flexibility. If I understand correctly it would be nice to be able to define stopping strategies like `stop="first_exhausted"` (default) or `stop="all_exhausted"`. If you'd like to contribute this feature I'd be happy...
**Is your feature request related to a problem? Please describe.** Right now there are few hiccups using `interleave_datasets`. Interleaved dataset iterates until the smallest dataset completes it's iterator. In this way larger datasets may not complete full epoch of iteration. It creates new problems in calculation...
112
Make `interleave_datasets` more robust **Is your feature request related to a problem? Please describe.** Right now there are few hiccups using `interleave_datasets`. Interleaved dataset iterates until the smallest dataset completes it's iterator. In this way larger datasets may not complete full epoch of iteration....
[ -0.2761628031730652, -0.02677612006664276, -0.2281198799610138, 0.08258125931024551, -0.14361630380153656, 0.017641671001911163, 0.23505131900310516, 0.1321873664855957, 0.06680996716022491, 0.12620005011558533, -0.07270078361034393, 0.21606025099754333, -0.293736070394516, 0.2195406854152...
https://github.com/huggingface/datasets/issues/3064
Make `interleave_datasets` more robust
@sbmaruf I just notice that (1)`interleave_datasets` only samples indices once and reuse for all epochs, and (2) it's limited by the smallest dataset. Do you figure out an alternative way to achieve the same purpose?
**Is your feature request related to a problem? Please describe.** Right now there are few hiccups using `interleave_datasets`. Interleaved dataset iterates until the smallest dataset completes it's iterator. In this way larger datasets may not complete full epoch of iteration. It creates new problems in calculation...
35
Make `interleave_datasets` more robust **Is your feature request related to a problem? Please describe.** Right now there are few hiccups using `interleave_datasets`. Interleaved dataset iterates until the smallest dataset completes it's iterator. In this way larger datasets may not complete full epoch of iteration....
[ -0.3180108964443207, 0.020007207989692688, -0.21414341032505035, 0.07380684465169907, -0.15120552480220795, 0.09728493541479111, 0.28418564796447754, 0.1712978035211563, 0.11678558588027954, 0.22174303233623505, -0.04090529680252075, 0.17800270020961761, -0.2643423080444336, 0.164571672677...
https://github.com/huggingface/datasets/issues/3063
Windows CI is unable to test streaming properly because of SSL issues
I think this problem is already fixed: ```python In [4]: import fsspec ...: ...: url = "https://moon-staging.huggingface.co/datasets/__DUMMY_TRANSFORMERS_USER__/my-dataset-16242824690709/resolve/main/.gitattributes" ...: ...: fsspec.open(url).open() Out[4]: <File-like object HTTPFileSystem, https://m...
In https://github.com/huggingface/datasets/pull/3041 the windows tests were skipped because of SSL issues with moon-staging.huggingface.co:443 The issue appears only on windows with asyncio. On Linux it works. With requests it works as well. And with the production environment huggingface.co it also works. to rep...
26
Windows CI is unable to test streaming properly because of SSL issues In https://github.com/huggingface/datasets/pull/3041 the windows tests were skipped because of SSL issues with moon-staging.huggingface.co:443 The issue appears only on windows with asyncio. On Linux it works. With requests it works as well. And...
[ -0.35435229539871216, 0.0034219175577163696, 0.019807178527116776, 0.034293148666620255, 0.05071816220879555, -0.11084075272083282, 0.2119024395942688, 0.13144469261169434, 0.028768621385097504, -0.08339668810367584, 0.0598861500620842, -0.2223207652568817, 0.18263636529445648, 0.212450250...
https://github.com/huggingface/datasets/issues/3061
Feature request : add leave=True to dataset.map to enable tqdm nested bars (and whilst we're at it couldn't we get a way to access directly tqdm underneath?)
@lhoestq, @albertvillanova can we have `**tqdm_kwargs` in `map`? If there are any fields that are important to our tqdm (like iterable or unit), we can pop them before initialising the tqdm object so as to avoid duplicity.
**A clear and concise description of what you want to happen.** It would be so nice to be able to nest HuggingFace `Datasets.map() ` progress bars in the grander scheme of things and whilst we're at it why not other functions. **Describe alternatives you've considered** By the way is there not a way to directl...
37
Feature request : add leave=True to dataset.map to enable tqdm nested bars (and whilst we're at it couldn't we get a way to access directly tqdm underneath?) **A clear and concise description of what you want to happen.** It would be so nice to be able to nest HuggingFace `Datasets.map() ` progress bars in the gr...
[ -0.30796018242836, -0.4473893642425537, -0.06747069954872131, -0.1451709270477295, 0.15585589408874512, -0.040167033672332764, 0.3228396773338318, 0.183680459856987, -0.2261493057012558, 0.16096347570419312, -0.2775021195411682, 0.5143536925315857, -0.058076582849025726, 0.4776199460029602...
https://github.com/huggingface/datasets/issues/3061
Feature request : add leave=True to dataset.map to enable tqdm nested bars (and whilst we're at it couldn't we get a way to access directly tqdm underneath?)
Hi ! Sounds like a good idea :) Also I think it would be better to have this as an actual parameters instead of kwargs to make it clearer
**A clear and concise description of what you want to happen.** It would be so nice to be able to nest HuggingFace `Datasets.map() ` progress bars in the grander scheme of things and whilst we're at it why not other functions. **Describe alternatives you've considered** By the way is there not a way to directl...
29
Feature request : add leave=True to dataset.map to enable tqdm nested bars (and whilst we're at it couldn't we get a way to access directly tqdm underneath?) **A clear and concise description of what you want to happen.** It would be so nice to be able to nest HuggingFace `Datasets.map() ` progress bars in the gr...
[ -0.3040521740913391, -0.44012486934661865, -0.07335549592971802, -0.16092795133590698, 0.12071307748556137, -0.08384843915700912, 0.36160314083099365, 0.18396468460559845, -0.2422843873500824, 0.14048275351524353, -0.2260066270828247, 0.5033693313598633, -0.020245742052793503, 0.5093123912...
https://github.com/huggingface/datasets/issues/3060
load_dataset('openwebtext') yields "Compressed file ended before the end-of-stream marker was reached"
Hi @RylanSchaeffer, thanks for reporting. I'm sorry, but I was not able to reproduce your problem. Normally, the reason for this type of error is that, during your download of the data files, this was not fully complete. Could you please try to load the dataset again but forcing its redownload? Please use: ``...
## Describe the bug When I try `load_dataset('openwebtext')`, I receive a "EOFError: Compressed file ended before the end-of-stream marker was reached" error. ## Steps to reproduce the bug ``` from datasets import load_dataset dataset = load_dataset('openwebtext') ``` ## Expected results I expect the `datas...
66
load_dataset('openwebtext') yields "Compressed file ended before the end-of-stream marker was reached" ## Describe the bug When I try `load_dataset('openwebtext')`, I receive a "EOFError: Compressed file ended before the end-of-stream marker was reached" error. ## Steps to reproduce the bug ``` from datasets im...
[ -0.3312985897064209, -0.09272674471139908, 0.003961075097322464, 0.49961936473846436, 0.21718384325504303, 0.02118682861328125, 0.15197432041168213, 0.3008333742618561, -0.09646771848201752, 0.28805485367774963, 0.045648738741874695, 0.40103527903556824, 0.10050017386674881, 0.157241791486...
https://github.com/huggingface/datasets/issues/3060
load_dataset('openwebtext') yields "Compressed file ended before the end-of-stream marker was reached"
I close this issue for the moment. Feel free to re-open it again if the problem persists.
## Describe the bug When I try `load_dataset('openwebtext')`, I receive a "EOFError: Compressed file ended before the end-of-stream marker was reached" error. ## Steps to reproduce the bug ``` from datasets import load_dataset dataset = load_dataset('openwebtext') ``` ## Expected results I expect the `datas...
17
load_dataset('openwebtext') yields "Compressed file ended before the end-of-stream marker was reached" ## Describe the bug When I try `load_dataset('openwebtext')`, I receive a "EOFError: Compressed file ended before the end-of-stream marker was reached" error. ## Steps to reproduce the bug ``` from datasets im...
[ -0.3312985897064209, -0.09272674471139908, 0.003961075097322464, 0.49961936473846436, 0.21718384325504303, 0.02118682861328125, 0.15197432041168213, 0.3008333742618561, -0.09646771848201752, 0.28805485367774963, 0.045648738741874695, 0.40103527903556824, 0.10050017386674881, 0.157241791486...
https://github.com/huggingface/datasets/issues/3058
Dataset wikipedia and Bookcorpusopen cannot be fetched from dataloader.
Hi ! I think this issue is more related to the `transformers` project. Could you open an issue on https://github.com/huggingface/transformers ? Anyway I think the issue could be that both wikipedia and bookcorpusopen have an additional "title" column, contrary to wikitext which only has a "text" column. After callin...
## Describe the bug I have used the previous version of `transformers` and `datasets`. The dataset `wikipedia` can be successfully used. Recently, I upgrade them to the newest version and find it raises errors. I also tried other datasets. The `wikitext` works and the `bookcorpusopen` raises the same errors as `wikipe...
58
Dataset wikipedia and Bookcorpusopen cannot be fetched from dataloader. ## Describe the bug I have used the previous version of `transformers` and `datasets`. The dataset `wikipedia` can be successfully used. Recently, I upgrade them to the newest version and find it raises errors. I also tried other datasets. The `...
[ -0.117170050740242, -0.08886604011058807, 0.028719954192638397, 0.590285062789917, 0.19815735518932343, 0.008372411131858826, 0.4193763732910156, 0.24482928216457367, 0.008030779659748077, 0.04939493536949158, -0.26142823696136475, 0.009956486523151398, 0.0961204543709755, -0.1403684467077...
https://github.com/huggingface/datasets/issues/3058
Dataset wikipedia and Bookcorpusopen cannot be fetched from dataloader.
Removing the "title" column works! Thanks for your advice. Maybe I should still create an issue to `transformers' to mark this solution?
## Describe the bug I have used the previous version of `transformers` and `datasets`. The dataset `wikipedia` can be successfully used. Recently, I upgrade them to the newest version and find it raises errors. I also tried other datasets. The `wikitext` works and the `bookcorpusopen` raises the same errors as `wikipe...
22
Dataset wikipedia and Bookcorpusopen cannot be fetched from dataloader. ## Describe the bug I have used the previous version of `transformers` and `datasets`. The dataset `wikipedia` can be successfully used. Recently, I upgrade them to the newest version and find it raises errors. I also tried other datasets. The `...
[ -0.117170050740242, -0.08886604011058807, 0.028719954192638397, 0.590285062789917, 0.19815735518932343, 0.008372411131858826, 0.4193763732910156, 0.24482928216457367, 0.008030779659748077, 0.04939493536949158, -0.26142823696136475, 0.009956486523151398, 0.0961204543709755, -0.1403684467077...
https://github.com/huggingface/datasets/issues/3057
Error in per class precision computation
Hi @tidhamecha2, thanks for reporting. Indeed, we fixed this issue just one week ago: #3008 The fix will be included in our next version release. In the meantime, you can incorporate the fix by installing `datasets` from the master branch: ``` pip install -U git+ssh://git@github.com/huggingface/datasets.git@...
## Describe the bug When trying to get the per class precision values by providing `average=None`, following error is thrown `ValueError: can only convert an array of size 1 to a Python scalar` ## Steps to reproduce the bug ```python from datasets import load_dataset, load_metric precision_metric = load_metric("...
53
Error in per class precision computation ## Describe the bug When trying to get the per class precision values by providing `average=None`, following error is thrown `ValueError: can only convert an array of size 1 to a Python scalar` ## Steps to reproduce the bug ```python from datasets import load_dataset, l...
[ -0.1642782986164093, -0.4141963720321655, -0.0621303915977478, 0.35821354389190674, 0.5411623120307922, 0.122135691344738, 0.08095245808362961, 0.1405230015516281, -0.049366749823093414, 0.6348307132720947, -0.0748264268040657, 0.1664379984140396, -0.01713414490222931, 0.15428997576236725,...
https://github.com/huggingface/datasets/issues/3053
load_dataset('the_pile_openwebtext2') produces ArrowInvalid, value too large to fit in C integer type
I was getting a similar error `pyarrow.lib.ArrowInvalid: Integer value 528 not in range: -128 to 127` - AFAICT, this is because the type specified for `reddit_scores` is `datasets.Sequence(datasets.Value("int8"))`, but the actual values can be well outside the max range for 8-bit integers. I worked around this by do...
## Describe the bug When loading `the_pile_openwebtext2`, we get the error `pyarrow.lib.ArrowInvalid: Value 2111 too large to fit in C integer type` ## Steps to reproduce the bug ```python import datasets ds = datasets.load_dataset('the_pile_openwebtext2') ``` ## Expected results Should download the dataset...
69
load_dataset('the_pile_openwebtext2') produces ArrowInvalid, value too large to fit in C integer type ## Describe the bug When loading `the_pile_openwebtext2`, we get the error `pyarrow.lib.ArrowInvalid: Value 2111 too large to fit in C integer type` ## Steps to reproduce the bug ```python import datasets ds =...
[ -0.351736456155777, 0.12943103909492493, 0.02369081601500511, 0.5282649397850037, 0.24671901762485504, 0.06812768429517746, 0.11001738905906677, 0.5502154231071472, -0.11050502955913544, -0.018477067351341248, -0.053451523184776306, 0.45882776379585266, 0.06217459961771965, 0.0630233287811...
https://github.com/huggingface/datasets/issues/3052
load_dataset cannot download the data and hangs on forever if cache dir specified
Issue was environment inconsistency, updating packages did the trick `conda install -c huggingface -c conda-forge datasets` > Collecting package metadata (current_repodata.json): done > Solving environment: | > The environment is inconsistent, please check the package plan carefully > The following packages ar...
## Describe the bug After updating datasets, a code that ran just fine for ages began to fail. Specifying _datasets.load_dataset_'s _cache_dir_ optional argument on Windows 10 machine results in data download to hang on forever. Same call without cache_dir works just fine. Surprisingly exact same code just runs perfec...
118
load_dataset cannot download the data and hangs on forever if cache dir specified ## Describe the bug After updating datasets, a code that ran just fine for ages began to fail. Specifying _datasets.load_dataset_'s _cache_dir_ optional argument on Windows 10 machine results in data download to hang on forever. Same c...
[ -0.3561404347419739, 0.6039690971374512, -0.11219194531440735, 0.06416300684213638, 0.39051371812820435, 0.05530094355344772, 0.4375729560852051, 0.09474267065525055, -0.04050477594137192, 0.1036616712808609, -0.004555271938443184, 0.4003579616546631, 0.17270001769065857, -0.25311088562011...
https://github.com/huggingface/datasets/issues/3051
Non-Matching Checksum Error with crd3 dataset
I got the same error for another dataset (`multi_woz_v22`): ``` datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://github.com/budzianowski/multiwoz/raw/master/data/MultiWOZ_2.2/dialog_acts.json', 'https://github.com/budzianowski/multiwoz/raw/master/data/M...
## Describe the bug When I try loading the crd3 dataset (https://huggingface.co/datasets/crd3), an error is thrown. ## Steps to reproduce the bug ```python dataset = load_dataset('crd3', split='train') ``` ## Expected results I expect no error to be thrown. ## Actual results A non-matching checksum err...
21
Non-Matching Checksum Error with crd3 dataset ## Describe the bug When I try loading the crd3 dataset (https://huggingface.co/datasets/crd3), an error is thrown. ## Steps to reproduce the bug ```python dataset = load_dataset('crd3', split='train') ``` ## Expected results I expect no error to be thrown. ...
[ 0.03340288624167442, -0.030284970998764038, 0.0008105486631393433, 0.27887439727783203, 0.017549321055412292, -0.010443992912769318, 0.2656277120113373, 0.32951730489730835, -0.03767433762550354, -0.016887187957763672, 0.012735439464449883, 0.14770516753196716, 0.11470737308263779, 0.04276...
https://github.com/huggingface/datasets/issues/3051
Non-Matching Checksum Error with crd3 dataset
I'm seeing the same issue as @RylanSchaeffer: Python 3.7.11, macOs 11.4 datasets==1.14.0 fails on: ```python dataset = datasets.load_dataset("multi_woz_v22") ```
## Describe the bug When I try loading the crd3 dataset (https://huggingface.co/datasets/crd3), an error is thrown. ## Steps to reproduce the bug ```python dataset = load_dataset('crd3', split='train') ``` ## Expected results I expect no error to be thrown. ## Actual results A non-matching checksum err...
19
Non-Matching Checksum Error with crd3 dataset ## Describe the bug When I try loading the crd3 dataset (https://huggingface.co/datasets/crd3), an error is thrown. ## Steps to reproduce the bug ```python dataset = load_dataset('crd3', split='train') ``` ## Expected results I expect no error to be thrown. ...
[ -0.005089081823825836, -0.07409773766994476, 0.011576797813177109, 0.21421925723552704, 0.04465484991669655, -0.08151564002037048, 0.21991552412509918, 0.2908579707145691, -0.020732548087835312, -0.0038820505142211914, 0.039317719638347626, 0.2184228003025055, -0.0073492927476763725, 0.116...
https://github.com/huggingface/datasets/issues/3048
Identify which shard data belongs to
Independently of this I think it raises the need to allow multiprocessing during streaming so that we get samples from multiple shards in one batch.
**Is your feature request related to a problem? Please describe.** I'm training on a large dataset made of multiple sub-datasets. During training I can observe some jumps in loss which may correspond to different shards. ![image](https://user-images.githubusercontent.com/715491/136668758-521263aa-a9b2-4ad2-8d22-...
25
Identify which shard data belongs to **Is your feature request related to a problem? Please describe.** I'm training on a large dataset made of multiple sub-datasets. During training I can observe some jumps in loss which may correspond to different shards. ![image](https://user-images.githubusercontent.com/71...
[ -0.5709904432296753, -0.26962047815322876, -0.04611186310648918, 0.31553298234939575, -0.2868872880935669, -0.20916759967803955, 0.3178080916404724, 0.16253584623336792, -0.17466582357883453, 0.172588050365448, -0.08456344902515411, -0.056304845958948135, -0.19319991767406464, 0.3816585540...
https://github.com/huggingface/datasets/issues/3044
Inconsistent caching behaviour when using `Dataset.map()` with a `new_fingerprint` and `num_proc>1`
Following the discussion in #3045 if would be nice to have a way to let users have a nice experience with caching even if the function is not hashable. Currently a workaround is to make the function picklable. This can be done by implementing a callable class instead, that can be pickled using by implementing a cust...
## Describe the bug Caching does not work when using `Dataset.map()` with: 1. a function that cannot be deterministically fingerprinted 2. `num_proc>1` 3. using a custom fingerprint set with the argument `new_fingerprint`. This means that the dataset will be mapped with the function for each and every call, w...
129
Inconsistent caching behaviour when using `Dataset.map()` with a `new_fingerprint` and `num_proc>1` ## Describe the bug Caching does not work when using `Dataset.map()` with: 1. a function that cannot be deterministically fingerprinted 2. `num_proc>1` 3. using a custom fingerprint set with the argument `new_fin...
[ -0.11258691549301147, 0.11656124889850616, -0.015767037868499756, 0.06115548312664032, -0.11848461627960205, -0.12406128644943237, 0.38619452714920044, 0.3515928089618683, 0.30126065015792847, -0.09979857504367828, 0.2086915373802185, 0.32950177788734436, 0.039160825312137604, -0.143107533...
https://github.com/huggingface/datasets/issues/3044
Inconsistent caching behaviour when using `Dataset.map()` with a `new_fingerprint` and `num_proc>1`
My solution was to generate a custom hash, and use the hash as a `new_fingerprint` argument to the `map()` method to enable caching. This works, but is quite hacky. @lhoestq, this approach is very neat, this would make the whole caching mechanic more explicit. I don't have so much time to look into this right now, b...
## Describe the bug Caching does not work when using `Dataset.map()` with: 1. a function that cannot be deterministically fingerprinted 2. `num_proc>1` 3. using a custom fingerprint set with the argument `new_fingerprint`. This means that the dataset will be mapped with the function for each and every call, w...
66
Inconsistent caching behaviour when using `Dataset.map()` with a `new_fingerprint` and `num_proc>1` ## Describe the bug Caching does not work when using `Dataset.map()` with: 1. a function that cannot be deterministically fingerprinted 2. `num_proc>1` 3. using a custom fingerprint set with the argument `new_fin...
[ -0.11258691549301147, 0.11656124889850616, -0.015767037868499756, 0.06115548312664032, -0.11848461627960205, -0.12406128644943237, 0.38619452714920044, 0.3515928089618683, 0.30126065015792847, -0.09979857504367828, 0.2086915373802185, 0.32950177788734436, 0.039160825312137604, -0.143107533...
https://github.com/huggingface/datasets/issues/3044
Inconsistent caching behaviour when using `Dataset.map()` with a `new_fingerprint` and `num_proc>1`
Almost a year later and I'm in a similar boat. Using custom fingerprints and when using multiprocessing the cached datasets are saved with a template at the end of the filename (something like "000001_of_000008" for every process of num_proc). So if in the next time you run the script you set num_proc to a different nu...
## Describe the bug Caching does not work when using `Dataset.map()` with: 1. a function that cannot be deterministically fingerprinted 2. `num_proc>1` 3. using a custom fingerprint set with the argument `new_fingerprint`. This means that the dataset will be mapped with the function for each and every call, w...
104
Inconsistent caching behaviour when using `Dataset.map()` with a `new_fingerprint` and `num_proc>1` ## Describe the bug Caching does not work when using `Dataset.map()` with: 1. a function that cannot be deterministically fingerprinted 2. `num_proc>1` 3. using a custom fingerprint set with the argument `new_fin...
[ -0.11258691549301147, 0.11656124889850616, -0.015767037868499756, 0.06115548312664032, -0.11848461627960205, -0.12406128644943237, 0.38619452714920044, 0.3515928089618683, 0.30126065015792847, -0.09979857504367828, 0.2086915373802185, 0.32950177788734436, 0.039160825312137604, -0.143107533...
https://github.com/huggingface/datasets/issues/3040
[save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset
Hi, the `save_to_disk` docstring explains that `flatten_indices` has to be called on a dataset before saving it to save only the shard/slice of the dataset.
## Describe the bug When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the small dataset is saved but the whole dataset with an indices file. The problem with this is that the dataset is still very...
25
[save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset ## Describe the bug When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the...
[ -0.1809476763010025, -0.15760834515094757, 0.08064687252044678, 0.24569818377494812, 0.10636337846517563, 0.19082742929458618, 0.25356096029281616, 0.41501063108444214, 0.07993754744529724, 0.45576006174087524, 0.15093860030174255, 0.38725343346595764, -0.15417124330997467, 0.0044504944235...
https://github.com/huggingface/datasets/issues/3040
[save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset
That works! Thansk! Might be worth doing that automatically actually in case the `save_to_disk` is called on a dataset that has an indices mapping :-)
## Describe the bug When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the small dataset is saved but the whole dataset with an indices file. The problem with this is that the dataset is still very...
25
[save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset ## Describe the bug When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the...
[ -0.19778689742088318, -0.1849527806043625, 0.07286867499351501, 0.21102294325828552, 0.16404788196086884, 0.17200499773025513, 0.23644040524959564, 0.4040082097053528, 0.17118023335933685, 0.4311818480491638, 0.13336525857448578, 0.4044635593891144, -0.17570066452026367, -0.021643389016389...
https://github.com/huggingface/datasets/issues/3040
[save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset
I agree with @patrickvonplaten: this issue is reported recurrently, so better if we implement the `.flatten_indices()` automatically?
## Describe the bug When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the small dataset is saved but the whole dataset with an indices file. The problem with this is that the dataset is still very...
17
[save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset ## Describe the bug When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the...
[ -0.18242110311985016, -0.1138092577457428, 0.09770150482654572, 0.34852248430252075, 0.13966810703277588, 0.2466380000114441, 0.22026723623275757, 0.43214473128318787, 0.09317527711391449, 0.4231395125389099, 0.2067134827375412, 0.41093724966049194, -0.1631096452474594, 0.02412275038659572...
https://github.com/huggingface/datasets/issues/3040
[save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset
That would be great indeed - I don't really see a use case where one would not like to call `.flatten_indices()` before calling `save_to_disk`
## Describe the bug When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the small dataset is saved but the whole dataset with an indices file. The problem with this is that the dataset is still very...
24
[save_to_disk] Using `select()` followed by `save_to_disk` saves complete dataset making it hard to create dummy dataset ## Describe the bug When only keeping a dummy size of a dataset (say the first 100 samples), and then saving it to disk to upload it in the following to the hub for easy demo/use - not just the...
[ -0.19779251515865326, -0.1417638659477234, 0.06662298738956451, 0.24847929179668427, 0.14022479951381683, 0.21322035789489746, 0.2300780713558197, 0.40928664803504944, 0.10484512150287628, 0.41884171962738037, 0.17984937131404877, 0.4132266640663147, -0.1830233633518219, -0.011367501690983...
https://github.com/huggingface/datasets/issues/3036
Protect master branch to force contributions via Pull Requests
It would be nice to protect the master from direct commits, but still having a way to merge our own PRs when no review is required (for example when updating a dataset_infos.json file, or minor bug fixes - things that happen quite often actually). Do you know if there's a way ?
In order to have a clearer Git history in the master branch, I propose to protect it so that all contributions must be done through a Pull Request and no direct commits to master are allowed. - The Pull Request allows to give context, discuss any potential issues and improve the quality of the contribution - The Pull...
52
Protect master branch to force contributions via Pull Requests In order to have a clearer Git history in the master branch, I propose to protect it so that all contributions must be done through a Pull Request and no direct commits to master are allowed. - The Pull Request allows to give context, discuss any potenti...
[ -0.03921014070510864, 0.005262106657028198, 0.03028886765241623, -0.08345499634742737, -0.27376389503479004, -0.1612032651901245, -0.09115782380104065, 0.37512096762657166, -0.21837487816810608, 0.2085062861442566, 0.4694803059101105, -0.13393093645572662, 0.027509167790412903, -0.03580887...
https://github.com/huggingface/datasets/issues/3036
Protect master branch to force contributions via Pull Requests
This is done. Now the master branch is protected: - [x] Require a pull request before merging: all commits must be made to a non-protected branch and submitted via a pull request - Required number of approvals before merging: 1 - [x] Require linear history: prevent merge commits from being pushed - [x] These req...
In order to have a clearer Git history in the master branch, I propose to protect it so that all contributions must be done through a Pull Request and no direct commits to master are allowed. - The Pull Request allows to give context, discuss any potential issues and improve the quality of the contribution - The Pull...
78
Protect master branch to force contributions via Pull Requests In order to have a clearer Git history in the master branch, I propose to protect it so that all contributions must be done through a Pull Request and no direct commits to master are allowed. - The Pull Request allows to give context, discuss any potenti...
[ -0.05463016778230667, 0.0769248902797699, -0.04441084712743759, -0.07143589854240417, -0.26914262771606445, -0.1964896023273468, 0.05768818035721779, 0.36484402418136597, -0.22068078815937042, 0.1525517702102661, 0.3992951512336731, -0.060955751687288284, 0.036936983466148376, -0.098678894...
https://github.com/huggingface/datasets/issues/3035
`load_dataset` does not work with uploaded arrow file
Hi ! This is not a bug, this is simply not implemented. `save_to_disk` is for on-disk serialization and was not made compatible for the Hub. That being said, I agree we actually should make it work with the Hub x)
## Describe the bug I've preprocessed and uploaded a dataset here: https://huggingface.co/datasets/ami-wav2vec2/ami_headset_single_preprocessed . The dataset is in `.arrow` format. The dataset can correctly be loaded when doing: ```bash git lfs install git clone https://huggingface.co/datasets/ami-wav2vec2/a...
40
`load_dataset` does not work with uploaded arrow file ## Describe the bug I've preprocessed and uploaded a dataset here: https://huggingface.co/datasets/ami-wav2vec2/ami_headset_single_preprocessed . The dataset is in `.arrow` format. The dataset can correctly be loaded when doing: ```bash git lfs install ...
[ -0.3928038477897644, -0.038575515151023865, 0.01674840599298477, 0.22262603044509888, 0.17542119324207306, -0.009485594928264618, 0.5628117322921753, 0.08513772487640381, 0.20555567741394043, -0.017303913831710815, 0.08802209049463272, 0.4524753987789154, -0.017156202346086502, 0.023893764...
https://github.com/huggingface/datasets/issues/3032
Error when loading private dataset with "data_files" arg
We'll do a release tomorrow or on wednesday to make the fix available :) Thanks for reproting !
## Describe the bug A clear and concise description of what the bug is. Private datasets with no loading script can't be loaded using `data_files` parameter. ## Steps to reproduce the bug ```python from datasets import load_dataset data_files = {"train": "**/train/*/*.jsonl", "valid": "**/valid/*/*.jsonl"} d...
18
Error when loading private dataset with "data_files" arg ## Describe the bug A clear and concise description of what the bug is. Private datasets with no loading script can't be loaded using `data_files` parameter. ## Steps to reproduce the bug ```python from datasets import load_dataset data_files = {"trai...
[ -0.29036954045295715, 0.1561492383480072, 0.030724775046110153, 0.4303286671638489, 0.19117800891399384, 0.02577962726354599, 0.4299962818622589, 0.4009224474430084, 0.15519699454307556, 0.05512695014476776, -0.15647612512111664, 0.2306966781616211, -0.16255861520767212, -0.082460202276706...
https://github.com/huggingface/datasets/issues/3027
Resolve data_files by split name
Awesome @lhoestq I like the proposal and it works great on my JSON community dataset. Here is the [log](https://gist.github.com/vblagoje/714babc325bcbdd5de579fd8e1648892).
This issue is about discussing the default behavior when someone loads a dataset that consists in data files. For example: ```python load_dataset("lhoestq/demo1") ``` should return two splits "train" and "test" since the dataset repostiory is like ``` data/ ├── train.csv └── test.csv ``` Currently it returns ...
19
Resolve data_files by split name This issue is about discussing the default behavior when someone loads a dataset that consists in data files. For example: ```python load_dataset("lhoestq/demo1") ``` should return two splits "train" and "test" since the dataset repostiory is like ``` data/ ├── train.csv └── t...
[ 0.0484917052090168, 0.09161588549613953, -0.08407853543758392, 0.10354280471801758, 0.14218522608280182, -0.05122068524360657, 0.3762041926383972, 0.6377534866333008, 0.14259424805641174, 0.0023931264877319336, 0.2522256076335907, 0.36616724729537964, -0.15676362812519073, 0.24765513837337...
https://github.com/huggingface/datasets/issues/3027
Resolve data_files by split name
From my discussion with @borisdayma it would be more general the files match if their paths contains the split name - not only if the filename contains the split name. For example for a dataset like this: ``` train/ └── data.csv test/ └── data.csv ``` But IMO the default should be ``` data/ ├── train.csv ...
This issue is about discussing the default behavior when someone loads a dataset that consists in data files. For example: ```python load_dataset("lhoestq/demo1") ``` should return two splits "train" and "test" since the dataset repostiory is like ``` data/ ├── train.csv └── test.csv ``` Currently it returns ...
78
Resolve data_files by split name This issue is about discussing the default behavior when someone loads a dataset that consists in data files. For example: ```python load_dataset("lhoestq/demo1") ``` should return two splits "train" and "test" since the dataset repostiory is like ``` data/ ├── train.csv └── t...
[ 0.027063872665166855, -0.08924920111894608, -0.10976296663284302, 0.13513866066932678, 0.05384983867406845, -0.15210586786270142, 0.3358279764652252, 0.5063108205795288, 0.16210544109344482, -0.01668207347393036, 0.22284626960754395, 0.13512156903743744, -0.11368829756975174, 0.28942894935...
https://github.com/huggingface/datasets/issues/3027
Resolve data_files by split name
I just created a PR for this at https://github.com/huggingface/datasets/pull/3221, let me know what you think :)
This issue is about discussing the default behavior when someone loads a dataset that consists in data files. For example: ```python load_dataset("lhoestq/demo1") ``` should return two splits "train" and "test" since the dataset repostiory is like ``` data/ ├── train.csv └── test.csv ``` Currently it returns ...
16
Resolve data_files by split name This issue is about discussing the default behavior when someone loads a dataset that consists in data files. For example: ```python load_dataset("lhoestq/demo1") ``` should return two splits "train" and "test" since the dataset repostiory is like ``` data/ ├── train.csv └── t...
[ 0.06496599316596985, -0.17201891541481018, -0.0812089741230011, 0.16020703315734863, 0.21432627737522125, -0.042224250733852386, 0.36304986476898193, 0.49190202355384827, 0.15666258335113525, 0.06425923109054565, 0.14751900732517242, 0.14048245549201965, -0.1865476816892624, 0.359482645988...
https://github.com/huggingface/datasets/issues/3018
Support multiple zipped CSV data files
@lhoestq I would like to draw your attention to the proposed API by @lewtun, using `data_dir` to pass the ZIP URL. I'm not totally convinced with this... What do you think? Maybe we could discuss other approaches... One brainstorming idea: what about using URL chaining with the hop operator in `data_files`?
As requested by @lewtun, support loading multiple zipped CSV data files. ```python from datasets import load_dataset url = "https://domain.org/filename.zip" data_files = {"train": "train_filename.csv", "test": "test_filename.csv"} dataset = load_dataset("csv", data_dir=url, data_files=data_files) ```
51
Support multiple zipped CSV data files As requested by @lewtun, support loading multiple zipped CSV data files. ```python from datasets import load_dataset url = "https://domain.org/filename.zip" data_files = {"train": "train_filename.csv", "test": "test_filename.csv"} dataset = load_dataset("csv", data_dir=...
[ -0.04363630712032318, 0.026397183537483215, -0.2615996301174164, -0.018547475337982178, 0.02556236833333969, -0.042207807302474976, 0.39677372574806213, 0.2515754699707031, 0.30051636695861816, 0.13865631818771362, 0.024600304663181305, 0.3511757552623749, -0.07382473349571228, 0.468900352...
https://github.com/huggingface/datasets/issues/3018
Support multiple zipped CSV data files
`data_dir` is currently exclusively used for manually downloaded data. Maybe we can have an API that only uses data_files as you are suggesting, using URL chaining ? ```python from datasets import load_dataset url = "https://domain.org/filename.zip" data_files = {"train": "zip://train_filename.csv::" + url, "t...
As requested by @lewtun, support loading multiple zipped CSV data files. ```python from datasets import load_dataset url = "https://domain.org/filename.zip" data_files = {"train": "train_filename.csv", "test": "test_filename.csv"} dataset = load_dataset("csv", data_dir=url, data_files=data_files) ```
91
Support multiple zipped CSV data files As requested by @lewtun, support loading multiple zipped CSV data files. ```python from datasets import load_dataset url = "https://domain.org/filename.zip" data_files = {"train": "train_filename.csv", "test": "test_filename.csv"} dataset = load_dataset("csv", data_dir=...
[ -0.1517477035522461, 0.020762011408805847, -0.2865627706050873, 0.04248727113008499, 0.08390659093856812, 0.014205150306224823, 0.3182390630245209, 0.31929534673690796, 0.3058346211910248, 0.16242416203022003, -0.17525261640548706, 0.20039620995521545, 0.017909416928887367, 0.5145025253295...
https://github.com/huggingface/datasets/issues/3018
Support multiple zipped CSV data files
URL chaining sounds super nice to me! And it's also a nice way to leverage the same concepts we currently have in the docs around `fsspec` :)
As requested by @lewtun, support loading multiple zipped CSV data files. ```python from datasets import load_dataset url = "https://domain.org/filename.zip" data_files = {"train": "train_filename.csv", "test": "test_filename.csv"} dataset = load_dataset("csv", data_dir=url, data_files=data_files) ```
27
Support multiple zipped CSV data files As requested by @lewtun, support loading multiple zipped CSV data files. ```python from datasets import load_dataset url = "https://domain.org/filename.zip" data_files = {"train": "train_filename.csv", "test": "test_filename.csv"} dataset = load_dataset("csv", data_dir=...
[ -0.21574154496192932, -0.16426095366477966, -0.2551282048225403, -0.12608523666858673, 0.14161860942840576, -0.034590113908052444, 0.26529502868652344, 0.25139865279197693, 0.2857457995414734, 0.27834904193878174, -0.05897706747055054, 0.05548643320798874, 0.06691203266382217, 0.7944067120...
https://github.com/huggingface/datasets/issues/3013
Improve `get_dataset_infos`?
To keeps things simple maybe we should use `load_dataset_builder` in `get_dataset_infos`. `load_dataset_builder` instantiates a builder and runs the _infos() method in order to give you the most up-to-date infos, even if the dataset_infos.json is outdated or missing.
Using the dedicated function `get_dataset_infos` on a dataset that has no dataset-info.json file returns an empty info: ``` >>> from datasets import get_dataset_infos >>> get_dataset_infos('wit') {} ``` While it's totally possible to get it (regenerate it) with: ``` >>> from datasets import load_dataset_b...
37
Improve `get_dataset_infos`? Using the dedicated function `get_dataset_infos` on a dataset that has no dataset-info.json file returns an empty info: ``` >>> from datasets import get_dataset_infos >>> get_dataset_infos('wit') {} ``` While it's totally possible to get it (regenerate it) with: ``` >>> from...
[ -0.03345417231321335, 0.20615550875663757, -0.17455936968326569, 0.31409624218940735, 0.27583783864974976, -0.05295097827911377, 0.17135600745677948, 0.5251322984695435, -0.06918732821941376, 0.17565122246742249, 0.0600980743765831, 0.22919747233390808, 0.06210097298026085, 0.1081239804625...
https://github.com/huggingface/datasets/issues/3011
load_dataset_builder should error if "name" does not exist?
Yes I think it should raise an error. Currently it looks like it instantiates a custom configuration with the name given by the user: https://github.com/huggingface/datasets/blob/ba27ce33bf568374cf23a07669fdd875b5718bc2/src/datasets/builder.py#L391-L397
``` import datasets as ds builder = ds.load_dataset_builder('sent_comp', name="doesnotexist") builder.info.config_name ``` returns ``` 'doesnotexist' ``` Shouldn't it raise an error instead? For this dataset, the only valid values for `name` should be: `"default"` or `None` (ie. argument not passed)
25
load_dataset_builder should error if "name" does not exist? ``` import datasets as ds builder = ds.load_dataset_builder('sent_comp', name="doesnotexist") builder.info.config_name ``` returns ``` 'doesnotexist' ``` Shouldn't it raise an error instead? For this dataset, the only valid values for `name...
[ -0.13651539385318756, -0.06782180815935135, 0.05152690038084984, 0.47973453998565674, 0.19397421181201935, 0.13136377930641174, 0.45077794790267944, 0.05843076854944229, 0.18851575255393982, 0.407167911529541, 0.2744370996952057, 0.0654158890247345, -0.15594229102134705, 0.0452122688293457...
https://github.com/huggingface/datasets/issues/3010
Chain filtering is leaking
### Update: I wrote a bit cleaner code snippet (without transforming to json) that can expose leaking. ```python import datasets import json items = ['ab', 'c', 'df'] ds = datasets.Dataset.from_dict({'col': items}) print(list(ds)) # > Prints: [{'col': 'ab'}, {'col': 'c'}, {'col': 'df'}] filtered = ds ...
## Describe the bug As there's no support for lists within dataset fields, I convert my lists to json-string format. However, the bug described is occurring even when the data format is 'string'. These samples show that filtering behavior diverges from what's expected when chaining filterings. On sample 2 the second...
118
Chain filtering is leaking ## Describe the bug As there's no support for lists within dataset fields, I convert my lists to json-string format. However, the bug described is occurring even when the data format is 'string'. These samples show that filtering behavior diverges from what's expected when chaining filter...
[ -0.18471510708332062, 0.16124606132507324, -0.15162700414657593, 0.22353093326091766, -0.12694312632083893, -0.1254190355539322, 0.297874391078949, 0.23607715964317322, 0.3307054340839386, -0.2883334755897522, -0.08475915342569351, 0.5628126263618469, 0.17767268419265747, 0.054036378860473...
https://github.com/huggingface/datasets/issues/3010
Chain filtering is leaking
I just pushed a fix ! We'll do a new release soon. In the meantime feel free to install `datasets` from source to play with it
## Describe the bug As there's no support for lists within dataset fields, I convert my lists to json-string format. However, the bug described is occurring even when the data format is 'string'. These samples show that filtering behavior diverges from what's expected when chaining filterings. On sample 2 the second...
26
Chain filtering is leaking ## Describe the bug As there's no support for lists within dataset fields, I convert my lists to json-string format. However, the bug described is occurring even when the data format is 'string'. These samples show that filtering behavior diverges from what's expected when chaining filter...
[ -0.18471510708332062, 0.16124606132507324, -0.15162700414657593, 0.22353093326091766, -0.12694312632083893, -0.1254190355539322, 0.297874391078949, 0.23607715964317322, 0.3307054340839386, -0.2883334755897522, -0.08475915342569351, 0.5628126263618469, 0.17767268419265747, 0.054036378860473...
https://github.com/huggingface/datasets/issues/3005
DatasetDict.filter and Dataset.filter crashes with any "fn_kwargs" argument
Hi @DrMatters, thanks for reporting. This issue was fixed 14 days ago: #2950. Currently, the fix is only in the master branch and will be made available in our next library release. In the meantime, you can incorporate the fix by installing datasets from the master branch: ```shell pip install -U git+ssh://g...
## Describe the bug The ".filter" method of DatasetDict or Dataset objects fails when passing any "fn_kwargs" argument ## Steps to reproduce the bug ```python import datasets example_dataset = datasets.Dataset.from_dict({"a": {1, 2, 3, 4}}) def filter_value(example, value): return example['a'] == value...
60
DatasetDict.filter and Dataset.filter crashes with any "fn_kwargs" argument ## Describe the bug The ".filter" method of DatasetDict or Dataset objects fails when passing any "fn_kwargs" argument ## Steps to reproduce the bug ```python import datasets example_dataset = datasets.Dataset.from_dict({"a": {1, 2, ...
[ -0.16900233924388885, 0.1079782247543335, -0.09904605150222778, 0.21686837077140808, 0.0916617214679718, -0.12447191029787064, 0.06166013702750206, 0.34265387058258057, 0.12888695299625397, -0.004532530903816223, -0.07759284973144531, 0.511611819267273, -0.22486451268196106, 0.122256226837...
https://github.com/huggingface/datasets/issues/2997
Dataset has incorrect labels
Hi @marshmellow77, thanks for reporting. That issue is fixed since `datasets` version 1.9.0 (see 16bc665f2753677c765011ef79c84e55486d4347). Please, update `datasets` with: `pip install -U datasets`
The dataset https://huggingface.co/datasets/turkish_product_reviews has incorrect labels - all reviews are labelled with "1" (positive sentiment). None of the reviews is labelled with "0". See screenshot attached: ![Capture](https://user-images.githubusercontent.com/63367770/135617428-14ce0b27-5208-4e66-a3ee-71542e3...
23
Dataset has incorrect labels The dataset https://huggingface.co/datasets/turkish_product_reviews has incorrect labels - all reviews are labelled with "1" (positive sentiment). None of the reviews is labelled with "0". See screenshot attached: ![Capture](https://user-images.githubusercontent.com/63367770/135617428-...
[ 0.08271722495555878, -0.3300798237323761, -0.16857731342315674, 0.15476930141448975, 0.03819574415683746, 0.21518635749816895, 0.3849946856498718, 0.004070485010743141, -0.16301171481609344, -0.10926732420921326, -0.30495673418045044, 0.14517641067504883, 0.14692085981369019, 0.55688577890...
https://github.com/huggingface/datasets/issues/2997
Dataset has incorrect labels
Thanks. Please note that the dataset explorer (https://huggingface.co/datasets/viewer/?dataset=turkish_product_reviews) still shows the incorrect state. The sentiment for the first few customer reviews is actually negative and should be labelled with "0", see screenshot: ![Capture1](https://user-images.githubusercon...
The dataset https://huggingface.co/datasets/turkish_product_reviews has incorrect labels - all reviews are labelled with "1" (positive sentiment). None of the reviews is labelled with "0". See screenshot attached: ![Capture](https://user-images.githubusercontent.com/63367770/135617428-14ce0b27-5208-4e66-a3ee-71542e3...
33
Dataset has incorrect labels The dataset https://huggingface.co/datasets/turkish_product_reviews has incorrect labels - all reviews are labelled with "1" (positive sentiment). None of the reviews is labelled with "0". See screenshot attached: ![Capture](https://user-images.githubusercontent.com/63367770/135617428-...
[ 0.09255559742450714, -0.34241512417793274, -0.14701488614082336, 0.22143594920635223, -0.12447524070739746, 0.17507696151733398, 0.20920506119728088, -0.009016752243041992, -0.19046731293201447, -0.2527102828025818, -0.32562360167503357, -0.024850919842720032, 0.10527165979146957, 0.483132...
https://github.com/huggingface/datasets/issues/2993
Can't download `trivia_qa/unfiltered`
wooo that was fast! thank you @lhoestq ! it is able to process now, though it's ignoring all files and ending up with 0 examples now haha :/ For subset "unfiltered": ```python >>> load_dataset("trivia_qa", "unfiltered") Downloading and preparing dataset trivia_qa/unfiltered (download: 3.07 GiB, generated: 27.23 ...
## Describe the bug For some reason, I can't download `trivia_qa/unfilted`. A file seems to be missing... I am able to see it fine though the viewer tough... ## Steps to reproduce the bug ```python >>> from datasets import load_dataset >>> load_dataset("trivia_qa", "unfiltered") Downloading and preparing data...
264
Can't download `trivia_qa/unfiltered` ## Describe the bug For some reason, I can't download `trivia_qa/unfilted`. A file seems to be missing... I am able to see it fine though the viewer tough... ## Steps to reproduce the bug ```python >>> from datasets import load_dataset >>> load_dataset("trivia_qa", "unfi...
[ -0.1447088122367859, -0.13158252835273743, -0.0809883400797844, 0.27586111426353455, 0.4623158574104309, 0.3147662878036499, 0.08203501999378204, 0.2365659773349762, 0.1864875704050064, 0.12130631506443024, -0.10474646836519241, 0.01685229316353798, 0.007184319198131561, -0.179237291216850...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
Hi ! Could you check the length of the `self.dataset` object (i.e. the Dataset object passed to the data loader) ? It looks like the dataset is empty. Not sure why the SWA optimizer would cause this though.
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
38
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.38961416482925415, -0.28968849778175354, -0.014630173332989216, 0.3087922930717468, 0.34734809398651123, -0.24184107780456543, 0.3561576306819916, 0.2430756837129593, 0.19433623552322388, 0.34438180923461914, 0.03162959963083267, 0.18565458059310913, -0.12412982434034348, 0.068187907338...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
Any updates on this? The same error occurred to me too when running `cardiffnlp/twitter-roberta-base-sentiment` on a custom dataset. This happened when I tried to do `model = torch.nn.DataParallel(model, device_ids=[0, 1, 2, 3])` without using sagemaker distribution. Python: 3.6.13 datasets: 1.6.2
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
40
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.38961416482925415, -0.28968849778175354, -0.014630173332989216, 0.3087922930717468, 0.34734809398651123, -0.24184107780456543, 0.3561576306819916, 0.2430756837129593, 0.19433623552322388, 0.34438180923461914, 0.03162959963083267, 0.18565458059310913, -0.12412982434034348, 0.068187907338...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
Hi @ruisi-su, do you have this issue while using SWA as well, or just data parallel ? If you have a code example to reproduce this issue it would also be helpful
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
32
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.38961416482925415, -0.28968849778175354, -0.014630173332989216, 0.3087922930717468, 0.34734809398651123, -0.24184107780456543, 0.3561576306819916, 0.2430756837129593, 0.19433623552322388, 0.34438180923461914, 0.03162959963083267, 0.18565458059310913, -0.12412982434034348, 0.068187907338...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
@lhoestq I had this issue without SWA. I followed [this](https://github.com/huggingface/notebooks/blob/master/sagemaker/03_distributed_training_data_parallelism/sagemaker-notebook.ipynb) notebook to utilize multiple gpus on the [roberta-base](https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment) model. This...
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
74
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.38961416482925415, -0.28968849778175354, -0.014630173332989216, 0.3087922930717468, 0.34734809398651123, -0.24184107780456543, 0.3561576306819916, 0.2430756837129593, 0.19433623552322388, 0.34438180923461914, 0.03162959963083267, 0.18565458059310913, -0.12412982434034348, 0.068187907338...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
It might be an issue with old versions of `datasets`, can you try updating `datasets` ?
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
16
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.38961416482925415, -0.28968849778175354, -0.014630173332989216, 0.3087922930717468, 0.34734809398651123, -0.24184107780456543, 0.3561576306819916, 0.2430756837129593, 0.19433623552322388, 0.34438180923461914, 0.03162959963083267, 0.18565458059310913, -0.12412982434034348, 0.068187907338...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
FYI I encountered the exact same error using the latest versions of `datasets`, `transformers` and `pyarrow`, without using any kind of SWA or dataparallel: ``` # packages in environment at C:\Users\zhang\mambaforge: # # Name Version Build Channel cudatoolkit ...
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
65
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.38961416482925415, -0.28968849778175354, -0.014630173332989216, 0.3087922930717468, 0.34734809398651123, -0.24184107780456543, 0.3561576306819916, 0.2430756837129593, 0.19433623552322388, 0.34438180923461914, 0.03162959963083267, 0.18565458059310913, -0.12412982434034348, 0.068187907338...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
Same error here! Datasets version `1.18.3` freshly updated. `IndexError: Invalid key: 90 is out of bounds for size 0` My task is finetuning the model for token classification. **Solved**: I make a mistake while updating the dataset during the map, you should check that you return the correct values.
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
49
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.38961416482925415, -0.28968849778175354, -0.014630173332989216, 0.3087922930717468, 0.34734809398651123, -0.24184107780456543, 0.3561576306819916, 0.2430756837129593, 0.19433623552322388, 0.34438180923461914, 0.03162959963083267, 0.18565458059310913, -0.12412982434034348, 0.068187907338...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
cc @sgugger This probably comes from the `Trainer` removing all the columns of a dataset, do you think we can improve the error message in this case ?
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
28
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.38961416482925415, -0.28968849778175354, -0.014630173332989216, 0.3087922930717468, 0.34734809398651123, -0.24184107780456543, 0.3561576306819916, 0.2430756837129593, 0.19433623552322388, 0.34438180923461914, 0.03162959963083267, 0.18565458059310913, -0.12412982434034348, 0.068187907338...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
The `Trainer` clearly logs when it removes columns in the dataset. I'm not too sure of where the bug appears as I haven't seen a clear reproducer. Happy to display a more helpful error message, but I'd need a reproducer to see what the exact problem is to design the right test and warning :-)
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
55
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.38961416482925415, -0.28968849778175354, -0.014630173332989216, 0.3087922930717468, 0.34734809398651123, -0.24184107780456543, 0.3561576306819916, 0.2430756837129593, 0.19433623552322388, 0.34438180923461914, 0.03162959963083267, 0.18565458059310913, -0.12412982434034348, 0.068187907338...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
Well, if I can try to suggest how to reproduce, please try by do not returning any updated content in the map function used to tokenize input (e.g., in TokenClassification). I can leave here my wrong version for reference: ```python def preprocess_function(examples): text = examples["text"] inputs...
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
129
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.38961416482925415, -0.28968849778175354, -0.014630173332989216, 0.3087922930717468, 0.34734809398651123, -0.24184107780456543, 0.3561576306819916, 0.2430756837129593, 0.19433623552322388, 0.34438180923461914, 0.03162959963083267, 0.18565458059310913, -0.12412982434034348, 0.068187907338...
https://github.com/huggingface/datasets/issues/2988
IndexError: Invalid key: 14 is out of bounds for size 0
That's the thing though. The `Trainer` has no idea which inputs are required or not since all models can have different kinds of inputs, and it can work for models outside of the Transformers library. I can add a clear error message if I get an empty batch, as this is easy to detect, but that's pretty much it.
## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averaging/ , for this I am using a run_clm.py codes which is wor...
59
IndexError: Invalid key: 14 is out of bounds for size 0 ## Describe the bug A clear and concise description of what the bug is. Hi. I am trying to implement stochastic weighted averaging optimizer with transformer library as described here https://pytorch.org/blog/pytorch-1.6-now-includes-stochastic-weight-averag...
[ -0.38961416482925415, -0.28968849778175354, -0.014630173332989216, 0.3087922930717468, 0.34734809398651123, -0.24184107780456543, 0.3561576306819916, 0.2430756837129593, 0.19433623552322388, 0.34438180923461914, 0.03162959963083267, 0.18565458059310913, -0.12412982434034348, 0.068187907338...
https://github.com/huggingface/datasets/issues/2987
ArrowInvalid: Can only convert 1-dimensional array values
Hi @NielsRogge, thanks for reporting! In `datasets`, we were handling N-dimensional arrays only when passed as an instance of `np.array`, not when passed as a list of `np.array`s. I'm fixing it.
## Describe the bug For the ViT and LayoutLMv2 demo notebooks in my [Transformers-Tutorials repo](https://github.com/NielsRogge/Transformers-Tutorials), people reported an ArrowInvalid issue after applying the following function to a Dataset: ``` def preprocess_data(examples): images = [Image.open(path).conve...
31
ArrowInvalid: Can only convert 1-dimensional array values ## Describe the bug For the ViT and LayoutLMv2 demo notebooks in my [Transformers-Tutorials repo](https://github.com/NielsRogge/Transformers-Tutorials), people reported an ArrowInvalid issue after applying the following function to a Dataset: ``` def pr...
[ 0.01255839318037033, -0.22509056329727173, -0.06407824158668518, 0.3261036276817322, 0.31389617919921875, -0.05451763793826103, 0.5233936309814453, 0.3854966461658478, -0.1324627548456192, 0.16101792454719543, -0.09981141239404678, 0.39055025577545166, -0.15413916110992432, -0.323971420526...
https://github.com/huggingface/datasets/issues/2984
Exceeded maximum rows when reading large files
Hi @zijwang, thanks for reporting this issue. You did not mention which `datasets` version you are using, but looking at the code in the stack trace, it seems you are using an old version. Could you please update `datasets` (`pip install -U datasets`) and check if the problem persists?
## Describe the bug A clear and concise description of what the bug is. When using `load_dataset` with json files, if the files are too large, there will be "Exceeded maximum rows" error. ## Steps to reproduce the bug ```python dataset = load_dataset('json', data_files=data_files) # data files have 3M rows in a ...
49
Exceeded maximum rows when reading large files ## Describe the bug A clear and concise description of what the bug is. When using `load_dataset` with json files, if the files are too large, there will be "Exceeded maximum rows" error. ## Steps to reproduce the bug ```python dataset = load_dataset('json', data_...
[ -0.07694624364376068, -0.15560293197631836, -0.13526898622512817, 0.538463294506073, 0.15408354997634888, 0.22822865843772888, 0.09058680385351181, 0.3988283574581146, 0.2924414873123169, 0.09290391206741333, 0.0769098773598671, 0.24269162118434906, -0.004468849860131741, 0.165308311581611...
https://github.com/huggingface/datasets/issues/2980
OpenSLR 25: ASR data for Amharic, Swahili and Wolof
Whoever handles this just needs to: - [ ] fork the HuggingFace Datasets repo - [ ] update the [existing dataset script](https://github.com/huggingface/datasets/blob/master/datasets/openslr/openslr.py) to add SLR25. Lots of copypasting from other sections of the script should make that easy. Amharic URL: https://...
## Adding a Dataset - **Name:** *SLR25* - **Description:** *Subset 25 from OpenSLR. Other subsets have been added to https://huggingface.co/datasets/openslr, 25 covers Amharic, Swahili and Wolof data* - **Paper:** *https://www.openslr.org/25/ has citations for each of the three subsubsets. * - **Data:** *Currently ...
106
OpenSLR 25: ASR data for Amharic, Swahili and Wolof ## Adding a Dataset - **Name:** *SLR25* - **Description:** *Subset 25 from OpenSLR. Other subsets have been added to https://huggingface.co/datasets/openslr, 25 covers Amharic, Swahili and Wolof data* - **Paper:** *https://www.openslr.org/25/ has citations for ea...
[ -0.1494903713464737, -0.0371018648147583, -0.12790320813655853, -0.022976361215114594, 0.15993620455265045, -0.02780725434422493, 0.07721668481826782, 0.20951026678085327, -0.2027437537908554, 0.2747544050216675, -0.3528316020965576, 0.09953749924898148, -0.05927971750497818, 0.20589552819...
https://github.com/huggingface/datasets/issues/2980
OpenSLR 25: ASR data for Amharic, Swahili and Wolof
... also the example in "use in datasets library" should be updated. It currently says ![image](https://user-images.githubusercontent.com/4109253/135115980-8583a44a-cae6-4121-b699-00667020849f.png) But you actually have to specify a subset, e.g. ```python dataset = load_dataset("openslr", "SLR32") ```
## Adding a Dataset - **Name:** *SLR25* - **Description:** *Subset 25 from OpenSLR. Other subsets have been added to https://huggingface.co/datasets/openslr, 25 covers Amharic, Swahili and Wolof data* - **Paper:** *https://www.openslr.org/25/ has citations for each of the three subsubsets. * - **Data:** *Currently ...
31
OpenSLR 25: ASR data for Amharic, Swahili and Wolof ## Adding a Dataset - **Name:** *SLR25* - **Description:** *Subset 25 from OpenSLR. Other subsets have been added to https://huggingface.co/datasets/openslr, 25 covers Amharic, Swahili and Wolof data* - **Paper:** *https://www.openslr.org/25/ has citations for ea...
[ -0.2541200518608093, 0.014993533492088318, -0.15688814222812653, -0.06664495170116425, 0.17273111641407013, 0.01961921900510788, 0.19565442204475403, 0.23513412475585938, -0.07794727385044098, 0.22440391778945923, -0.32279565930366516, 0.11050920933485031, -0.049799248576164246, 0.10228613...
https://github.com/huggingface/datasets/issues/2978
Run CI tests against non-production server
Hey @albertvillanova could you provide more context, including extracts from the discussion we had ? Let's ping @Pierrci @julien-c and @n1t0 for their opinion about that
Currently, the CI test suite performs requests to the HF production server. As discussed with @elishowk, we should refactor our tests to use the HF staging server instead, like `huggingface_hub` and `transformers`.
26
Run CI tests against non-production server Currently, the CI test suite performs requests to the HF production server. As discussed with @elishowk, we should refactor our tests to use the HF staging server instead, like `huggingface_hub` and `transformers`. Hey @albertvillanova could you provide more context, in...
[ -0.258196622133255, -0.2636909484863281, -0.11364038288593292, -0.23575951159000397, -0.34446579217910767, -0.2215365767478943, 0.48000285029411316, 0.29813557863235474, 0.15893465280532837, 0.19311410188674927, -0.011650914326310158, -0.19298627972602844, 0.05546509474515915, 0.5981816649...
https://github.com/huggingface/datasets/issues/2978
Run CI tests against non-production server
@julien-c increased the huggingface.co production workers in order to see if it solve [the 502 you had this morning](https://app.circleci.com/pipelines/github/huggingface/datasets/7843/workflows/fc83fa32-18f5-4dc3-9e2f-ba277ae1af74) For the decision process: be aware that moon-staging does not have persistent repos ...
Currently, the CI test suite performs requests to the HF production server. As discussed with @elishowk, we should refactor our tests to use the HF staging server instead, like `huggingface_hub` and `transformers`.
69
Run CI tests against non-production server Currently, the CI test suite performs requests to the HF production server. As discussed with @elishowk, we should refactor our tests to use the HF staging server instead, like `huggingface_hub` and `transformers`. @julien-c increased the huggingface.co production worke...
[ -0.13052642345428467, -0.4287920594215393, -0.02454814687371254, -0.05014416575431824, -0.0372760146856308, -0.331485390663147, 0.34192538261413574, 0.268729567527771, 0.0688500851392746, 0.10764239728450775, -0.1735491305589676, -0.030778126791119576, 0.01306983269751072, 0.57729291915893...
https://github.com/huggingface/datasets/issues/2977
Impossible to load compressed csv
Hi @Valahaar, thanks for reporting and for your investigation about the source cause. You are right and that commit prevents `pandas` from inferring the compression. On the other hand, @lhoestq did that change to support loading that dataset in streaming mode. I'm fixing it.
## Describe the bug It is not possible to load from a compressed csv anymore. ## Steps to reproduce the bug ```python load_dataset('csv', data_files=['/path/to/csv.bz2']) ``` ## Problem and possible solution This used to work, but the commit that broke it is [this one](https://github.com/huggingface/datasets...
44
Impossible to load compressed csv ## Describe the bug It is not possible to load from a compressed csv anymore. ## Steps to reproduce the bug ```python load_dataset('csv', data_files=['/path/to/csv.bz2']) ``` ## Problem and possible solution This used to work, but the commit that broke it is [this one](htt...
[ -0.061478301882743835, -0.30513638257980347, -0.05142776668071747, 0.15288187563419342, 0.258648157119751, 0.15448212623596191, 0.22306255996227264, 0.4252108335494995, -0.0204914603382349, 0.13781537115573883, 0.016965627670288086, 0.2389489859342575, 0.0854327380657196, 0.087453842163085...
https://github.com/huggingface/datasets/issues/2976
Can't load dataset
Hi @mskovalova, Some datasets have multiple configurations. Therefore, in order to load them, you have to specify both the *dataset name* and the *configuration name*. In the error message you got, you have a usage example: - To load the 'wikitext-103-raw-v1' configuration of the 'wikitext' dataset, you should ...
I'm trying to load a wikitext dataset ``` from datasets import load_dataset raw_datasets = load_dataset("wikitext") ``` ValueError: Config name is missing. Please pick one among the available configs: ['wikitext-103-raw-v1', 'wikitext-2-raw-v1', 'wikitext-103-v1', 'wikitext-2-v1'] Example of usage: `load_d...
77
Can't load dataset I'm trying to load a wikitext dataset ``` from datasets import load_dataset raw_datasets = load_dataset("wikitext") ``` ValueError: Config name is missing. Please pick one among the available configs: ['wikitext-103-raw-v1', 'wikitext-2-raw-v1', 'wikitext-103-v1', 'wikitext-2-v1'] Exampl...
[ -0.09673402458429337, -0.26058730483055115, -0.07978537678718567, 0.08486078679561615, 0.24834276735782623, 0.39907023310661316, 0.3288693130016327, 0.18291039764881134, 0.23151764273643494, 0.21772906184196472, 0.1168222427368164, 0.24779929220676422, 0.007703122217208147, 0.1976594775915...
https://github.com/huggingface/datasets/issues/2976
Can't load dataset
Hi, if I want to load the dataset from local file, then how to specify the configuration name?
I'm trying to load a wikitext dataset ``` from datasets import load_dataset raw_datasets = load_dataset("wikitext") ``` ValueError: Config name is missing. Please pick one among the available configs: ['wikitext-103-raw-v1', 'wikitext-2-raw-v1', 'wikitext-103-v1', 'wikitext-2-v1'] Example of usage: `load_d...
18
Can't load dataset I'm trying to load a wikitext dataset ``` from datasets import load_dataset raw_datasets = load_dataset("wikitext") ``` ValueError: Config name is missing. Please pick one among the available configs: ['wikitext-103-raw-v1', 'wikitext-2-raw-v1', 'wikitext-103-v1', 'wikitext-2-v1'] Exampl...
[ -0.1790257692337036, -0.14016340672969818, -0.03141399472951889, 0.0439901277422905, 0.19588224589824677, 0.3456089496612549, 0.31514009833335876, 0.2401238977909088, 0.26460760831832886, 0.35408836603164673, 0.1479405164718628, 0.3209379315376282, 0.045503921806812286, 0.17291556298732758...
https://github.com/huggingface/datasets/issues/2972
OSError: Not enough disk space.
Maybe we can change the disk space calculating API from `shutil.disk_usage` to `os.statvfs` in UNIX-like system, which can provide correct results. ``` statvfs = os.statvfs('path') avail_space_bytes = statvfs.f_frsize * statvfs.f_bavail ```
## Describe the bug I'm trying to download `natural_questions` dataset from the Internet, and I've specified the cache_dir which locates in a mounted disk and has enough disk space. However, even though the space is enough, the disk space checking function still reports the space of root `/` disk having no enough spac...
31
OSError: Not enough disk space. ## Describe the bug I'm trying to download `natural_questions` dataset from the Internet, and I've specified the cache_dir which locates in a mounted disk and has enough disk space. However, even though the space is enough, the disk space checking function still reports the space of r...
[ -0.04831197112798691, -0.2650129199028015, -0.1014164388179779, 0.4828662872314453, 0.07751820981502533, 0.12542834877967834, -0.2298763543367386, 0.4518800675868988, 0.30695170164108276, 0.24537411332130432, 0.07815026491880417, -0.3200189769268036, -0.04923137277364731, -0.33118313550949...
https://github.com/huggingface/datasets/issues/2972
OSError: Not enough disk space.
`DownloadConfig` only sets the location to download the files. On the other hand, `cache_dir` sets the location for both downloading and caching the data. You can find more information here: https://huggingface.co/docs/datasets/loading_datasets.html#cache-directory
## Describe the bug I'm trying to download `natural_questions` dataset from the Internet, and I've specified the cache_dir which locates in a mounted disk and has enough disk space. However, even though the space is enough, the disk space checking function still reports the space of root `/` disk having no enough spac...
31
OSError: Not enough disk space. ## Describe the bug I'm trying to download `natural_questions` dataset from the Internet, and I've specified the cache_dir which locates in a mounted disk and has enough disk space. However, even though the space is enough, the disk space checking function still reports the space of r...
[ -0.0635232999920845, -0.2830466032028198, -0.08851612359285355, 0.4970603585243225, 0.08797203004360199, 0.18643397092819214, -0.179883673787117, 0.4213721454143524, 0.2735774517059326, 0.233210951089859, 0.04686398059129715, -0.3344707190990448, -0.040360432118177414, -0.30256322026252747...
https://github.com/huggingface/datasets/issues/2972
OSError: Not enough disk space.
I had encountered the same error when running a command `ds = load_dataset('food101')` in a docker container. The error I got: `OSError: Not enough disk space. Needed: 9.43 GiB (download: 4.65 GiB, generated: 4.77 GiB, post-processed: Unknown size)` In case anyone encountered the same issue, this was my fix: ```s...
## Describe the bug I'm trying to download `natural_questions` dataset from the Internet, and I've specified the cache_dir which locates in a mounted disk and has enough disk space. However, even though the space is enough, the disk space checking function still reports the space of root `/` disk having no enough spac...
155
OSError: Not enough disk space. ## Describe the bug I'm trying to download `natural_questions` dataset from the Internet, and I've specified the cache_dir which locates in a mounted disk and has enough disk space. However, even though the space is enough, the disk space checking function still reports the space of r...
[ -0.13593098521232605, -0.13086675107479095, -0.10181042551994324, 0.3833238482475281, 0.059037692844867706, 0.11979161947965622, -0.07512463629245758, 0.461299329996109, 0.29575079679489136, 0.28551244735717773, 0.050381094217300415, -0.23164086043834686, -0.010250437073409557, -0.29882627...
https://github.com/huggingface/datasets/issues/2969
medical-dialog error
Hi @smeyerhot, thanks for reporting. You are right: there is an issue with the dataset metadata. I'm fixing it. In the meantime, you can circumvent the issue by passing `ignore_verifications=True`: ```python raw_datasets = load_dataset("medical_dialog", "en", split="train", download_mode="force_redownload", dat...
## Describe the bug A clear and concise description of what the bug is. When I attempt to download the huggingface datatset medical_dialog it errors out midway through ## Steps to reproduce the bug ```python raw_datasets = load_dataset("medical_dialog", "en", split="train", download_mode="force_redownload", data_d...
40
medical-dialog error ## Describe the bug A clear and concise description of what the bug is. When I attempt to download the huggingface datatset medical_dialog it errors out midway through ## Steps to reproduce the bug ```python raw_datasets = load_dataset("medical_dialog", "en", split="train", download_mode="fo...
[ -0.1769694685935974, -0.16794276237487793, 0.13243086636066437, 0.30510199069976807, 0.09877049922943115, 0.17889302968978882, 0.25747257471084595, 0.35723960399627686, -0.18424268066883087, 0.10258910059928894, -0.26510247588157654, 0.1361614614725113, -0.02938687428832054, 0.439885884523...
https://github.com/huggingface/datasets/issues/2969
medical-dialog error
Hi @albertvillanova -- I see you made changes to the wikitext dataset a few hours ago. I'm getting an error similar to the one here : https://github.com/huggingface/datasets/issues/215 After your changes. I deleted the original dataset cache after encountering that error and then rerun with the following command ...
## Describe the bug A clear and concise description of what the bug is. When I attempt to download the huggingface datatset medical_dialog it errors out midway through ## Steps to reproduce the bug ```python raw_datasets = load_dataset("medical_dialog", "en", split="train", download_mode="force_redownload", data_d...
70
medical-dialog error ## Describe the bug A clear and concise description of what the bug is. When I attempt to download the huggingface datatset medical_dialog it errors out midway through ## Steps to reproduce the bug ```python raw_datasets = load_dataset("medical_dialog", "en", split="train", download_mode="fo...
[ -0.13767629861831665, -0.2538638412952423, 0.13575105369091034, 0.14634007215499878, 0.0982343778014183, 0.20577532052993774, 0.18414387106895447, 0.3999829590320587, -0.06198418140411377, 0.0381765142083168, -0.2858354151248932, 0.12893986701965332, -0.06812027096748352, 0.392261058092117...
https://github.com/huggingface/datasets/issues/2969
medical-dialog error
@ldery, you can find the answer in the corresponding Discussion on the Hub: https://huggingface.co/datasets/wikitext/discussions/9 You need to update the `datasets` library: ```shell pip install -U datasets ```
## Describe the bug A clear and concise description of what the bug is. When I attempt to download the huggingface datatset medical_dialog it errors out midway through ## Steps to reproduce the bug ```python raw_datasets = load_dataset("medical_dialog", "en", split="train", download_mode="force_redownload", data_d...
27
medical-dialog error ## Describe the bug A clear and concise description of what the bug is. When I attempt to download the huggingface datatset medical_dialog it errors out midway through ## Steps to reproduce the bug ```python raw_datasets = load_dataset("medical_dialog", "en", split="train", download_mode="fo...
[ -0.14542004466056824, -0.3687911033630371, 0.13191333413124084, 0.2803281843662262, 0.08745589852333069, 0.15935540199279785, 0.13505473732948303, 0.3608304262161255, -0.04720678925514221, 0.07731160521507263, -0.2833976447582245, 0.15366435050964355, -0.03796195611357689, 0.45213800668716...
https://github.com/huggingface/datasets/issues/2968
`DatasetDict` cannot be exported to parquet if the splits have different features
This is because you have to specify which split corresponds to what file: ```python data_files = {"train": "train/split.parquet", "validation": "validation/split.parquet"} brand_new_dataset_2 = load_dataset("ds", data_files=data_files) ``` Otherwise it tries to concatenate the two splits, and it fails because th...
## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDict`, I use `to_parquet` on each split to save the parquet files in individual folder...
64
`DatasetDict` cannot be exported to parquet if the splits have different features ## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDi...
[ -0.15334481000900269, -0.008550651371479034, 0.05414239689707756, 0.45907628536224365, 0.09087401628494263, 0.05311182886362076, 0.25642499327659607, 0.20468764007091522, 0.1695539355278015, 0.08044016361236572, 0.25335249304771423, 0.3629653751850128, -0.13072361052036285, 0.4581692218780...
https://github.com/huggingface/datasets/issues/2968
`DatasetDict` cannot be exported to parquet if the splits have different features
I may be mistaken but I think the following doesn't work either: ```python from datasets import load_dataset ds = load_dataset("lhoestq/custom_squad") def identical_answers(e): e['identical_answers'] = len(set(e['answers']['text'])) == 1 return e ds['validation'] = ds['validation'].map(identi...
## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDict`, I use `to_parquet` on each split to save the parquet files in individual folder...
45
`DatasetDict` cannot be exported to parquet if the splits have different features ## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDi...
[ -0.15334481000900269, -0.008550651371479034, 0.05414239689707756, 0.45907628536224365, 0.09087401628494263, 0.05311182886362076, 0.25642499327659607, 0.20468764007091522, 0.1695539355278015, 0.08044016361236572, 0.25335249304771423, 0.3629653751850128, -0.13072361052036285, 0.4581692218780...
https://github.com/huggingface/datasets/issues/2968
`DatasetDict` cannot be exported to parquet if the splits have different features
It works on my side as soon as the directories named `ds/train` and `ds/validation` exist (otherwise it returns a FileNotFoundError). What error are you getting ?
## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDict`, I use `to_parquet` on each split to save the parquet files in individual folder...
26
`DatasetDict` cannot be exported to parquet if the splits have different features ## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDi...
[ -0.15334481000900269, -0.008550651371479034, 0.05414239689707756, 0.45907628536224365, 0.09087401628494263, 0.05311182886362076, 0.25642499327659607, 0.20468764007091522, 0.1695539355278015, 0.08044016361236572, 0.25335249304771423, 0.3629653751850128, -0.13072361052036285, 0.4581692218780...
https://github.com/huggingface/datasets/issues/2968
`DatasetDict` cannot be exported to parquet if the splits have different features
Also we may introduce a default mapping for the data files: ```python { "train": ["*train*"], "test": ["*test*"], "validation": ["*dev*", "valid"], } ``` this way if you name your files according to the splits you won't have to specify the data_files parameter. What do you think ? I moved this di...
## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDict`, I use `to_parquet` on each split to save the parquet files in individual folder...
52
`DatasetDict` cannot be exported to parquet if the splits have different features ## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDi...
[ -0.15334481000900269, -0.008550651371479034, 0.05414239689707756, 0.45907628536224365, 0.09087401628494263, 0.05311182886362076, 0.25642499327659607, 0.20468764007091522, 0.1695539355278015, 0.08044016361236572, 0.25335249304771423, 0.3629653751850128, -0.13072361052036285, 0.4581692218780...
https://github.com/huggingface/datasets/issues/2968
`DatasetDict` cannot be exported to parquet if the splits have different features
I'm getting the following error: ``` Downloading and preparing dataset custom_squad/plain_text to /home/lysandre/.cache/huggingface/datasets/lhoestq___custom_squad)/plain_text/1.0.0/397916d1ae99584877e0fb4f5b8b6f01e66fcbbeff4d178afb30c933a8d0d93a... 100%|██████████| 2/2 [00:00<00:00, 7760.04it/s] 100%|██████████|...
## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDict`, I use `to_parquet` on each split to save the parquet files in individual folder...
237
`DatasetDict` cannot be exported to parquet if the splits have different features ## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDi...
[ -0.15334481000900269, -0.008550651371479034, 0.05414239689707756, 0.45907628536224365, 0.09087401628494263, 0.05311182886362076, 0.25642499327659607, 0.20468764007091522, 0.1695539355278015, 0.08044016361236572, 0.25335249304771423, 0.3629653751850128, -0.13072361052036285, 0.4581692218780...
https://github.com/huggingface/datasets/issues/2968
`DatasetDict` cannot be exported to parquet if the splits have different features
I just tried again on colab by installing `datasets` from source with pyarrow 3.0.0 and didn't get any error. You error seems to happen when doing ```python ds = load_dataset("lhoestq/custom_squad") ``` More specifically it fails when trying to read the arrow file that just got generated. I haven't issues like...
## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDict`, I use `to_parquet` on each split to save the parquet files in individual folder...
80
`DatasetDict` cannot be exported to parquet if the splits have different features ## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDi...
[ -0.15334481000900269, -0.008550651371479034, 0.05414239689707756, 0.45907628536224365, 0.09087401628494263, 0.05311182886362076, 0.25642499327659607, 0.20468764007091522, 0.1695539355278015, 0.08044016361236572, 0.25335249304771423, 0.3629653751850128, -0.13072361052036285, 0.4581692218780...
https://github.com/huggingface/datasets/issues/2968
`DatasetDict` cannot be exported to parquet if the splits have different features
Thank you for your pointer! This seems to have been linked to Python 3.9.7: it works flawlessly with Python 3.8.6. This can be closed, thanks a lot for your help.
## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDict`, I use `to_parquet` on each split to save the parquet files in individual folder...
30
`DatasetDict` cannot be exported to parquet if the splits have different features ## Describe the bug I'm trying to use parquet as a means of serialization for both `Dataset` and `DatasetDict` objects. Using `to_parquet` alongside `from_parquet` or `load_dataset` for a `Dataset` works perfectly. For `DatasetDi...
[ -0.15334481000900269, -0.008550651371479034, 0.05414239689707756, 0.45907628536224365, 0.09087401628494263, 0.05311182886362076, 0.25642499327659607, 0.20468764007091522, 0.1695539355278015, 0.08044016361236572, 0.25335249304771423, 0.3629653751850128, -0.13072361052036285, 0.4581692218780...
https://github.com/huggingface/datasets/issues/2964
Error when calculating Matthews Correlation Coefficient loaded with `load_metric`
After some more tests I've realized that this "issue" is due to the `numpy.float64` to `float` conversion, but when defining a function named `compute_metrics` as it follows: ```python def compute_metrics(eval_preds): metric = load_metric("matthews_correlation") logits, labels = eval_preds prediction...
## Describe the bug After loading the metric named "[Matthews Correlation Coefficient](https://huggingface.co/metrics/matthews_correlation)" from `🤗datasets`, the `.compute` method fails with the following exception `AttributeError: 'float' object has no attribute 'item'` (complete stack trace can be provided if re...
82
Error when calculating Matthews Correlation Coefficient loaded with `load_metric` ## Describe the bug After loading the metric named "[Matthews Correlation Coefficient](https://huggingface.co/metrics/matthews_correlation)" from `🤗datasets`, the `.compute` method fails with the following exception `AttributeError:...
[ -0.13466307520866394, -0.3452947735786438, 0.07861173152923584, 0.3539235591888428, 0.2162502259016037, 0.048133835196495056, 0.2270004153251648, 0.22813981771469116, 0.16031593084335327, 0.36559462547302246, -0.07641089707612991, 0.5783469676971436, 0.011695577763020992, 0.054774753749370...
https://github.com/huggingface/datasets/issues/2957
MultiWOZ Dataset NonMatchingChecksumError
Hi Brady! I met the similar issue, it stuck in the downloading stage instead of download anything, maybe it is broken. After I change the downloading from URLs to one url of the [Multiwoz project](https://github.com/budzianowski/multiwoz/archive/44f0f8479f11721831c5591b839ad78827da197b.zip) and use dirs to get separate...
## Describe the bug The checksums for the downloaded MultiWOZ dataset and source MultiWOZ dataset aren't matching. ## Steps to reproduce the bug Both of the below dataset versions yield the checksum error: ```python from datasets import load_dataset dataset = load_dataset('multi_woz_v22', 'v2.2') dataset = loa...
45
MultiWOZ Dataset NonMatchingChecksumError ## Describe the bug The checksums for the downloaded MultiWOZ dataset and source MultiWOZ dataset aren't matching. ## Steps to reproduce the bug Both of the below dataset versions yield the checksum error: ```python from datasets import load_dataset dataset = load_dat...
[ -0.18571323156356812, 0.28243494033813477, -0.010363351553678513, 0.22731152176856995, -0.10893940925598145, 0.026602409780025482, 0.42147091031074524, 0.4297234117984772, 0.1776721179485321, 0.09039018303155899, -0.12641167640686035, 0.13561274111270905, 0.09125407040119171, -0.0172348953...
https://github.com/huggingface/datasets/issues/2956
Cache problem in the `load_dataset` method for local compressed file(s)
The problem is still present. One solution would be to add the `download_mode="force_redownload"` argument to load_dataset. However, doing so may lead to a `DatasetGenerationError: An error occurred while generating the dataset`. To mitigate, just do: `rm -r ~/.cache/huggingface/datasets/*`
## Describe the bug Cache problem in the `load_dataset` method: when modifying a compressed file in a local folder `load_dataset` doesn't detect the change and load the previous version. ## Steps to reproduce the bug To test it directly, I have prepared a [Google Colaboratory notebook](https://colab.research.g...
38
Cache problem in the `load_dataset` method for local compressed file(s) ## Describe the bug Cache problem in the `load_dataset` method: when modifying a compressed file in a local folder `load_dataset` doesn't detect the change and load the previous version. ## Steps to reproduce the bug To test it directly,...
[ -0.15919502079486847, 0.32043221592903137, -0.03442421182990074, 0.26399022340774536, 0.01779220439493656, 0.12933111190795898, 0.2549055218696594, 0.43158623576164246, 0.09085986018180847, 0.08766214549541473, 0.15352274477481842, 0.37295663356781006, 0.12291469424962997, -0.3452413678169...
https://github.com/huggingface/datasets/issues/2953
Trying to get in touch regarding a security issue
Hi @JamieSlome, Thanks for reaching out. Yes, you are right: I'm opening a PR to add the `SECURITY.md` file and a contact method. In the meantime, please feel free to report the security issue to: feedback@huggingface.co
Hey there! I'd like to report a security issue but cannot find contact instructions on your repository. If not a hassle, might you kindly add a `SECURITY.md` file with an email, or another contact method? GitHub [recommends](https://docs.github.com/en/code-security/getting-started/adding-a-security-policy-to-your-rep...
36
Trying to get in touch regarding a security issue Hey there! I'd like to report a security issue but cannot find contact instructions on your repository. If not a hassle, might you kindly add a `SECURITY.md` file with an email, or another contact method? GitHub [recommends](https://docs.github.com/en/code-security/...
[ 0.21865390241146088, -0.16296058893203735, -0.14250686764717102, -0.10043318569660187, 0.18516075611114502, -0.10311402380466461, 0.3181801736354828, -0.10126663744449615, -0.13137084245681763, 0.42270761728286743, 0.22706159949302673, 0.057159774005413055, -0.012172465212643147, 0.2170340...
https://github.com/huggingface/datasets/issues/2945
Protect master branch
@lhoestq now the 2 are implemented. Please note that for the the second protection, finally I have chosen to protect the master branch only from **merge commits** (see update comment above), so no need to disable/re-enable the protection on each release (direct commits, different from merge commits, can be pushed to...
After accidental merge commit (91c55355b634d0dc73350a7ddee1a6776dbbdd69) into `datasets` master branch, all commits present in the feature branch were permanently added to `datasets` master branch history, as e.g.: - 00cc036fea7c7745cfe722360036ed306796a3f2 - 13ae8c98602bbad8197de3b9b425f4c78f582af1 - ... I propo...
64
Protect master branch After accidental merge commit (91c55355b634d0dc73350a7ddee1a6776dbbdd69) into `datasets` master branch, all commits present in the feature branch were permanently added to `datasets` master branch history, as e.g.: - 00cc036fea7c7745cfe722360036ed306796a3f2 - 13ae8c98602bbad8197de3b9b425f4c78f...
[ -0.15531960129737854, -0.1002306193113327, -0.07032108306884766, -0.07981747388839722, -0.1042538732290268, -0.18798749148845673, 0.010403595864772797, 0.2728641629219055, -0.009848839603364468, -0.08413971960544586, 0.2926150858402252, -0.07787492871284485, -0.13245706260204315, 0.2158903...
https://github.com/huggingface/datasets/issues/2944
Add `remove_columns` to `IterableDataset `
Hi ! Good idea :) If you are interested in contributing, feel free to give it a try and open a Pull Request. Also let me know if I can help you with this or if you have questions
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. ```python from datasets import load_dataset dataset = load_dataset("c4", 'realnewslike', streaming =True, split='train') dataset = dataset.remove_columns('url') ``` ``` AttributeError: 'I...
39
Add `remove_columns` to `IterableDataset ` **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. ```python from datasets import load_dataset dataset = load_dataset("c4", 'realnewslike', streaming =True, split='train') dataset = dataset.remo...
[ 0.030971039086580276, 0.06693252921104431, -0.14841969311237335, -0.026566237211227417, 0.3402366042137146, 0.37640854716300964, 0.4748355448246002, 0.4397598206996918, 0.13304489850997925, 0.16649067401885986, -0.17116034030914307, 0.3257799446582794, -0.3537244200706482, 0.30008649826049...
https://github.com/huggingface/datasets/issues/2943
Backwards compatibility broken for cached datasets that use `.filter()`
Hi ! I guess the caching mechanism should have considered the new `filter` to be different from the old one, and don't use cached results from the old `filter`. To avoid other users from having this issue we could make the caching differentiate the two, what do you think ?
## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='in...
50
Backwards compatibility broken for cached datasets that use `.filter()` ## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=No...
[ -0.3049955666065216, 0.1243882030248642, -0.04655851051211357, 0.23689685761928558, 0.1517292559146881, -0.0666595846414566, -0.00694115087389946, 0.32853949069976807, 0.1737385392189026, 0.029381684958934784, -0.23138606548309326, 0.35819289088249207, -0.1503302901983261, 0.25273695588111...
https://github.com/huggingface/datasets/issues/2943
Backwards compatibility broken for cached datasets that use `.filter()`
If it's easy enough to implement, then yes please 😄 But this issue can be low-priority, since I've only encountered it in a couple of `transformers` CI tests.
## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='in...
28
Backwards compatibility broken for cached datasets that use `.filter()` ## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=No...
[ -0.3049955666065216, 0.1243882030248642, -0.04655851051211357, 0.23689685761928558, 0.1517292559146881, -0.0666595846414566, -0.00694115087389946, 0.32853949069976807, 0.1737385392189026, 0.029381684958934784, -0.23138606548309326, 0.35819289088249207, -0.1503302901983261, 0.25273695588111...
https://github.com/huggingface/datasets/issues/2943
Backwards compatibility broken for cached datasets that use `.filter()`
Well it can cause issue with anyone that updates `datasets` and re-run some code that uses filter, so I'm creating a PR
## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='in...
22
Backwards compatibility broken for cached datasets that use `.filter()` ## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=No...
[ -0.3049955666065216, 0.1243882030248642, -0.04655851051211357, 0.23689685761928558, 0.1517292559146881, -0.0666595846414566, -0.00694115087389946, 0.32853949069976807, 0.1737385392189026, 0.029381684958934784, -0.23138606548309326, 0.35819289088249207, -0.1503302901983261, 0.25273695588111...
https://github.com/huggingface/datasets/issues/2943
Backwards compatibility broken for cached datasets that use `.filter()`
I just merged a fix, let me know if you're still having this kind of issues :) We'll do a release soon to make this fix available
## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=None), 'text': Value(dtype='string', id=None), 'speaker_id': Value(dtype='in...
27
Backwards compatibility broken for cached datasets that use `.filter()` ## Describe the bug After upgrading to datasets `1.12.0`, some cached `.filter()` steps from `1.11.0` started failing with `ValueError: Keys mismatch: between {'indices': Value(dtype='uint64', id=None)} and {'file': Value(dtype='string', id=No...
[ -0.3049955666065216, 0.1243882030248642, -0.04655851051211357, 0.23689685761928558, 0.1517292559146881, -0.0666595846414566, -0.00694115087389946, 0.32853949069976807, 0.1737385392189026, 0.029381684958934784, -0.23138606548309326, 0.35819289088249207, -0.1503302901983261, 0.25273695588111...
https://github.com/huggingface/datasets/issues/2937
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
Hi @daqieq, thanks for reporting. Unfortunately, I was not able to reproduce this bug: ```ipython In [1]: from datasets import load_dataset ...: ds = load_dataset('wiki_bio') Downloading: 7.58kB [00:00, 26.3kB/s] Downloading: 2.71kB [00:00, ?B/s] Using custom data configuration default Downloading and prep...
## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('wiki_bio') ``` ## Expected results It is expected that the dataset downloads without any er...
109
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied ## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_datas...
[ -0.22893042862415314, 0.3834537863731384, 0.040345486253499985, 0.25503987073898315, -0.012111440300941467, 0.2622569799423218, 0.5036681294441223, 0.13295289874076843, 0.3442821502685547, 0.13571703433990479, -0.10897432267665863, 0.07728347182273865, 0.07315025478601456, -0.0056988410651...
https://github.com/huggingface/datasets/issues/2937
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
Thanks @albertvillanova for looking at it! I tried on my personal Windows machine and it downloaded just fine. Running on my work machine and on a colleague's machine it is consistently hitting this error. It's not a write access issue because the `.incomplete` directory is written just fine. It just won't rename an...
## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('wiki_bio') ``` ## Expected results It is expected that the dataset downloads without any er...
194
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied ## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_datas...
[ -0.22893042862415314, 0.3834537863731384, 0.040345486253499985, 0.25503987073898315, -0.012111440300941467, 0.2622569799423218, 0.5036681294441223, 0.13295289874076843, 0.3442821502685547, 0.13571703433990479, -0.10897432267665863, 0.07728347182273865, 0.07315025478601456, -0.0056988410651...
https://github.com/huggingface/datasets/issues/2937
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
Hi @albertvillanova, even I am facing the same issue on my work machine: `Downloading and preparing dataset json/c4-en-html-with-metadata to C:\Users\......\.cache\huggingface\datasets\json\c4-en-html-with-metadata-4635c2fd9249f62d\0.0.0\c90812beea906fcffe0d5e3bb9eba909a80a998b5f88e9f8acbd320aa91acfde... 100%|█████...
## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('wiki_bio') ``` ## Expected results It is expected that the dataset downloads without any er...
80
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied ## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_datas...
[ -0.22893042862415314, 0.3834537863731384, 0.040345486253499985, 0.25503987073898315, -0.012111440300941467, 0.2622569799423218, 0.5036681294441223, 0.13295289874076843, 0.3442821502685547, 0.13571703433990479, -0.10897432267665863, 0.07728347182273865, 0.07315025478601456, -0.0056988410651...
https://github.com/huggingface/datasets/issues/2937
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied
I'm facing the same issue. ## System Information - OS Edition: Windows 10 21H1 - OS build: 19043.1826 - Python version: 3.10.6 (installed using `choco install python`) - datasets: 2.4.0 - PyArrow: 6.0.1 ## Troubleshooting steps - Restart the computer, unfortunately doesn't work! 🌚 - Checked the permis...
## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('wiki_bio') ``` ## Expected results It is expected that the dataset downloads without any er...
154
load_dataset using default cache on Windows causes PermissionError: [WinError 5] Access is denied ## Describe the bug Standard process to download and load the wiki_bio dataset causes PermissionError in Windows 10 and 11. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_datas...
[ -0.22893042862415314, 0.3834537863731384, 0.040345486253499985, 0.25503987073898315, -0.012111440300941467, 0.2622569799423218, 0.5036681294441223, 0.13295289874076843, 0.3442821502685547, 0.13571703433990479, -0.10897432267665863, 0.07728347182273865, 0.07315025478601456, -0.0056988410651...
https://github.com/huggingface/datasets/issues/2934
to_tf_dataset keeps a reference to the open data somewhere, causing issues on windows
I did some investigation and, as it seems, the bug stems from [this line](https://github.com/huggingface/datasets/blob/8004d7c3e1d74b29c3e5b0d1660331cd26758363/src/datasets/arrow_dataset.py#L325). The lifecycle of the dataset from the linked line is bound to one of the returned `tf.data.Dataset`. So my (hacky) solution...
To reproduce: ```python import datasets as ds import weakref import gc d = ds.load_dataset("mnist", split="train") ref = weakref.ref(d._data.table) tfd = d.to_tf_dataset("image", batch_size=1, shuffle=False, label_cols="label") del tfd, d gc.collect() assert ref() is None, "Error: there is at least one refe...
99
to_tf_dataset keeps a reference to the open data somewhere, causing issues on windows To reproduce: ```python import datasets as ds import weakref import gc d = ds.load_dataset("mnist", split="train") ref = weakref.ref(d._data.table) tfd = d.to_tf_dataset("image", batch_size=1, shuffle=False, label_cols="lab...
[ 0.04569091275334358, 0.33450809121131897, 0.11488884687423706, 0.08045078068971634, 0.23043057322502136, 0.11888771504163742, 0.39888474345207214, 0.2548753619194031, -0.10991697013378143, 0.26743873953819275, -0.33538541197776794, 0.404072105884552, -0.16448120772838593, -0.10746286064386...
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
Hi, the filename here is less than 255 ```python >>> len("_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.incomplete.lock") 154 ``` so not sure why it's considered too long for your filesystem. (also note that the lock file...
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.inc...
39
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53...
[ 0.04933904483914375, 0.09200125932693481, -0.07149413228034973, 0.4018481969833374, 0.41516780853271484, 0.23589468002319336, 0.6366618275642395, 0.24350309371948242, 0.23645830154418945, 0.23132917284965515, 0.018569104373455048, 0.007743639871478081, -0.14426860213279724, -0.310036897659...
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
Yes, you're right! I need to get you more info here. Either there's something going with the name itself that the file system doesn't like (an encoding that blows up the name length??) or perhaps there's something with the path that's causing the entire string to be used as a name. I haven't seen this on any system be...
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.inc...
67
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53...
[ 0.04933904483914375, 0.09200125932693481, -0.07149413228034973, 0.4018481969833374, 0.41516780853271484, 0.23589468002319336, 0.6366618275642395, 0.24350309371948242, 0.23645830154418945, 0.23132917284965515, 0.018569104373455048, 0.007743639871478081, -0.14426860213279724, -0.310036897659...
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
Snap, encountered when trying to run [this example from PyTorch Lightning Flash](https://lightning-flash.readthedocs.io/en/latest/reference/speech_recognition.html): ```py import torch import flash from flash.audio import SpeechRecognition, SpeechRecognitionData from flash.core.data.utils import download_data ...
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.inc...
238
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53...
[ 0.04933904483914375, 0.09200125932693481, -0.07149413228034973, 0.4018481969833374, 0.41516780853271484, 0.23589468002319336, 0.6366618275642395, 0.24350309371948242, 0.23645830154418945, 0.23132917284965515, 0.018569104373455048, 0.007743639871478081, -0.14426860213279724, -0.310036897659...
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
Perhaps this could be exposed as a config setting so you could change it manually? https://github.com/huggingface/datasets/blob/5d1a9f1e3c6c495dc0610b459e39d2eb8893f152/src/datasets/utils/filelock.py#L135-L135 Rather than hard-code 255, default it to 255, and allow it to be changed, the same way is done for `data...
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.inc...
80
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53...
[ 0.04933904483914375, 0.09200125932693481, -0.07149413228034973, 0.4018481969833374, 0.41516780853271484, 0.23589468002319336, 0.6366618275642395, 0.24350309371948242, 0.23645830154418945, 0.23132917284965515, 0.018569104373455048, 0.007743639871478081, -0.14426860213279724, -0.310036897659...
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
Hi @lmmx @gar1t , it would be helpful if you could run the following code and copy-paste the output here: ```python import datasets import os os.statvfs(datasets.config.HF_DATASETS_CACHE) ```
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.inc...
27
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53...
[ 0.04933904483914375, 0.09200125932693481, -0.07149413228034973, 0.4018481969833374, 0.41516780853271484, 0.23589468002319336, 0.6366618275642395, 0.24350309371948242, 0.23645830154418945, 0.23132917284965515, 0.018569104373455048, 0.007743639871478081, -0.14426860213279724, -0.310036897659...
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
Hi @lmmx, Thanks for providing the result of the command. I've opened a PR, and it would be great if you could verify that the fix works on your system. To install the version of the datasets with the fix, please run the following command: ``` pip install git+https://github.com/huggingface/datasets.git@fix-2924 `...
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.inc...
80
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53...
[ 0.04933904483914375, 0.09200125932693481, -0.07149413228034973, 0.4018481969833374, 0.41516780853271484, 0.23589468002319336, 0.6366618275642395, 0.24350309371948242, 0.23645830154418945, 0.23132917284965515, 0.018569104373455048, 0.007743639871478081, -0.14426860213279724, -0.310036897659...
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
No problem Mario I didn't know that was where that value was recorded so I learnt something :smiley: I just wanted to get a local version working, of course you should implement whatever fix is best for HF. Yes can confirm this fixes it too. Thanks!
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.inc...
46
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53...
[ 0.04933904483914375, 0.09200125932693481, -0.07149413228034973, 0.4018481969833374, 0.41516780853271484, 0.23589468002319336, 0.6366618275642395, 0.24350309371948242, 0.23645830154418945, 0.23132917284965515, 0.018569104373455048, 0.007743639871478081, -0.14426860213279724, -0.310036897659...
https://github.com/huggingface/datasets/issues/2924
"File name too long" error for file locks
It looks like the issue is back with #6445 since the `MAX_FILENAME_LENGTH` is explicitly set to be 255 there https://github.com/huggingface/datasets/blob/dd9044cdaabc1f9abce02c1b71bdb48fd3525d4e/src/datasets/utils/_filelock.py#L28 @mariosasko Could you please take a look
## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53e6c7537173ef2304525df4a077c435d8ee7828ff.inc...
27
"File name too long" error for file locks ## Describe the bug Getting the following error when calling `load_dataset("gar1t/test")`: ``` OSError: [Errno 36] File name too long: '<user>/.cache/huggingface/datasets/_home_garrett_.cache_huggingface_datasets_csv_test-7c856aea083a7043_0.0.0_9144e0a4e8435090117cea53...
[ 0.04933904483914375, 0.09200125932693481, -0.07149413228034973, 0.4018481969833374, 0.41516780853271484, 0.23589468002319336, 0.6366618275642395, 0.24350309371948242, 0.23645830154418945, 0.23132917284965515, 0.018569104373455048, 0.007743639871478081, -0.14426860213279724, -0.310036897659...
https://github.com/huggingface/datasets/issues/2918
`Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming
Hi @SBrandeis, thanks for reporting! ^^ I think this is an issue with `fsspec`: https://github.com/intake/filesystem_spec/issues/389 I will ask them if they are planning to fix it...
## Describe the bug Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`: ```python ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ``` cc @lhoestq ## Steps to reproduce the bug ```python from datasets import load_...
26
`Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming ## Describe the bug Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`: ```python ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ```...
[ -0.3864649534225464, -0.22049540281295776, 0.08948153257369995, 0.4387415051460266, 0.2157084345817566, 0.12292302399873734, -0.0369098074734211, 0.30938810110092163, 0.24227720499038696, 0.0955025777220726, -0.22643113136291504, 0.4261535704135895, -0.06417552381753922, 0.3035326898097992...
https://github.com/huggingface/datasets/issues/2918
`Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming
Code to reproduce the bug: `ClientPayloadError: 400, message='Can not decode content-encoding: gzip'` ```python In [1]: import fsspec In [2]: import json In [3]: with fsspec.open('https://raw.githubusercontent.com/allenai/scitldr/master/SciTLDR-Data/SciTLDR-FullText/test.jsonl', encoding="utf-8") as f: ...:...
## Describe the bug Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`: ```python ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ``` cc @lhoestq ## Steps to reproduce the bug ```python from datasets import load_...
46
`Can not decode content-encoding: gzip` when loading `scitldr` dataset with streaming ## Describe the bug Trying to load the `"FullText"` config of the `"scitldr"` dataset with `streaming=True` raises an error from `aiohttp`: ```python ClientPayloadError: 400, message='Can not decode content-encoding: gzip' ```...
[ -0.3864649534225464, -0.22049540281295776, 0.08948153257369995, 0.4387415051460266, 0.2157084345817566, 0.12292302399873734, -0.0369098074734211, 0.30938810110092163, 0.24227720499038696, 0.0955025777220726, -0.22643113136291504, 0.4261535704135895, -0.06417552381753922, 0.3035326898097992...
https://github.com/huggingface/datasets/issues/2917
windows download abnormal
Hi ! Is there some kind of proxy that is configured in your browser that gives you access to internet ? If it's the case it could explain why it doesn't work in the code, since the proxy wouldn't be used
## Describe the bug The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why?? ## Steps to reproduce the bug ```python3.7 + windows ![image](https://user-images.githubusercontent.com/52347799/133436174-43...
41
windows download abnormal ## Describe the bug The script clearly exists (accessible from the browser), but the script download fails on windows. Then I tried it again and it can be downloaded normally on linux. why?? ## Steps to reproduce the bug ```python3.7 + windows ![image](https://user-images.githubuserconte...
[ -0.12404900789260864, -0.20182494819164276, -0.07033970952033997, 0.18945927917957306, 0.21477347612380981, -0.11205017566680908, 0.027667324990034103, 0.07187370955944061, 0.2805812954902649, 0.08505608141422272, 0.1648733764886856, 0.11740712076425552, 0.1554812490940094, 0.1022039875388...
https://github.com/huggingface/datasets/issues/2913
timit_asr dataset only includes one text phrase
Hi @margotwagner, This bug was fixed in #1995. Upgrading the datasets should work (min v1.8.0 ideally)
## Describe the bug The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases. ## Steps to reproduce the bug Note: I am following the tutorial https://huggingface.co/blog/fine-tune-wav2vec2-englis...
16
timit_asr dataset only includes one text phrase ## Describe the bug The dataset 'timit_asr' only includes one text phrase. It only includes the transcription "Would such an act of refusal be useful?" multiple times rather than different phrases. ## Steps to reproduce the bug Note: I am following the tutorial htt...
[ 0.16129040718078613, -0.13805419206619263, -0.020553534850478172, 0.22738602757453918, 0.11762408167123795, -0.15759752690792084, 0.2670057415962219, 0.2965661883354187, -0.5154975056648254, 0.28040811419487, 0.14544206857681274, 0.450861394405365, -0.09352809190750122, -0.1810211241245269...