html_url
stringlengths 48
51
| title
stringlengths 5
268
| comments
stringlengths 70
51.8k
| body
stringlengths 0
29.8k
| comment_length
int64 16
1.52k
| text
stringlengths 164
54.1k
| embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/1773 | bug in loading datasets | Looks like an issue with your csv file. Did you use the right delimiter ?
Apparently at line 37 the CSV reader from pandas reads 2 fields instead of 1. | Hi,
I need to load a dataset, I use these commands:
```
from datasets import load_dataset
dataset = load_dataset('csv', data_files={'train': 'sick/train.csv',
'test': 'sick/test.csv',
'validation': 'sick/validation.csv'})
print(dataset['validation'])
```
the dataset in sick/train.csv are simple csv files representing the data. I am getting this error, do you have an idea how I can solve this? thank you @lhoestq
```
Using custom data configuration default
Downloading and preparing dataset csv/default-61468fc71a743ec1 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /julia/cache_home_2/datasets/csv/default-61468fc71a743ec1/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2...
Traceback (most recent call last):
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 485, in incomplete_dir
yield tmp_dir
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 604, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 959, in _prepare_split
for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose):
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/tqdm-4.49.0-py3.7.egg/tqdm/std.py", line 1133, in __iter__
for obj in iterable:
File "/julia/cache_home_2/modules/datasets_modules/datasets/csv/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2/csv.py", line 129, in _generate_tables
for batch_idx, df in enumerate(csv_file_reader):
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/io/parsers.py", line 1029, in __next__
return self.get_chunk()
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/io/parsers.py", line 1079, in get_chunk
return self.read(nrows=size)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/io/parsers.py", line 1052, in read
index, columns, col_dict = self._engine.read(nrows)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/io/parsers.py", line 2056, in read
data = self._reader.read(nrows)
File "pandas/_libs/parsers.pyx", line 756, in pandas._libs.parsers.TextReader.read
File "pandas/_libs/parsers.pyx", line 783, in pandas._libs.parsers.TextReader._read_low_memory
File "pandas/_libs/parsers.pyx", line 827, in pandas._libs.parsers.TextReader._read_rows
File "pandas/_libs/parsers.pyx", line 814, in pandas._libs.parsers.TextReader._tokenize_rows
File "pandas/_libs/parsers.pyx", line 1951, in pandas._libs.parsers.raise_parser_error
pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 37, saw 2
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "write_sick.py", line 19, in <module>
'validation': 'sick/validation.csv'})
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/load.py", line 612, in load_dataset
ignore_verifications=ignore_verifications,
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 534, in download_and_prepare
self._save_info()
File "/julia/libs/anaconda3/envs/success/lib/python3.7/contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 491, in incomplete_dir
shutil.rmtree(tmp_dir)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/shutil.py", line 498, in rmtree
onerror(os.rmdir, path, sys.exc_info())
File "/julia/libs/anaconda3/envs/success/lib/python3.7/shutil.py", line 496, in rmtree
os.rmdir(path)
OSError: [Errno 39] Directory not empty: '/julia/cache_home_2/datasets/csv/default-61468fc71a743ec1/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2.incomplete'
```
| 30 | bug in loading datasets
Hi,
I need to load a dataset, I use these commands:
```
from datasets import load_dataset
dataset = load_dataset('csv', data_files={'train': 'sick/train.csv',
'test': 'sick/test.csv',
'validation': 'sick/validation.csv'})
print(dataset['validation'])
```
the dataset in sick/train.csv are simple csv files representing the data. I am getting this error, do you have an idea how I can solve this? thank you @lhoestq
```
Using custom data configuration default
Downloading and preparing dataset csv/default-61468fc71a743ec1 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /julia/cache_home_2/datasets/csv/default-61468fc71a743ec1/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2...
Traceback (most recent call last):
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 485, in incomplete_dir
yield tmp_dir
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 604, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 959, in _prepare_split
for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose):
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/tqdm-4.49.0-py3.7.egg/tqdm/std.py", line 1133, in __iter__
for obj in iterable:
File "/julia/cache_home_2/modules/datasets_modules/datasets/csv/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2/csv.py", line 129, in _generate_tables
for batch_idx, df in enumerate(csv_file_reader):
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/io/parsers.py", line 1029, in __next__
return self.get_chunk()
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/io/parsers.py", line 1079, in get_chunk
return self.read(nrows=size)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/io/parsers.py", line 1052, in read
index, columns, col_dict = self._engine.read(nrows)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/io/parsers.py", line 2056, in read
data = self._reader.read(nrows)
File "pandas/_libs/parsers.pyx", line 756, in pandas._libs.parsers.TextReader.read
File "pandas/_libs/parsers.pyx", line 783, in pandas._libs.parsers.TextReader._read_low_memory
File "pandas/_libs/parsers.pyx", line 827, in pandas._libs.parsers.TextReader._read_rows
File "pandas/_libs/parsers.pyx", line 814, in pandas._libs.parsers.TextReader._tokenize_rows
File "pandas/_libs/parsers.pyx", line 1951, in pandas._libs.parsers.raise_parser_error
pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 37, saw 2
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "write_sick.py", line 19, in <module>
'validation': 'sick/validation.csv'})
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/load.py", line 612, in load_dataset
ignore_verifications=ignore_verifications,
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 534, in download_and_prepare
self._save_info()
File "/julia/libs/anaconda3/envs/success/lib/python3.7/contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 491, in incomplete_dir
shutil.rmtree(tmp_dir)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/shutil.py", line 498, in rmtree
onerror(os.rmdir, path, sys.exc_info())
File "/julia/libs/anaconda3/envs/success/lib/python3.7/shutil.py", line 496, in rmtree
os.rmdir(path)
OSError: [Errno 39] Directory not empty: '/julia/cache_home_2/datasets/csv/default-61468fc71a743ec1/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2.incomplete'
```
Looks like an issue with your csv file. Did you use the right delimiter ?
Apparently at line 37 the CSV reader from pandas reads 2 fields instead of 1. | [
-0.2842665910720825,
-0.27147695422172546,
-0.14631570875644684,
0.46084830164909363,
0.30196890234947205,
0.24083691835403442,
0.08345659077167511,
0.5121127367019653,
0.07644950598478317,
0.058581408113241196,
-0.0004540651279967278,
-0.26659661531448364,
-0.10810218751430511,
0.2536351680755615,
-0.033702947199344635,
0.035205304622650146,
-0.033164478838443756,
0.16802619397640228,
-0.09462101012468338,
0.019386179745197296,
-0.2684039771556854,
0.2590363025665283,
-0.09573861211538315,
0.08945991843938828,
-0.003511593909934163,
-0.1219346895813942,
0.09926417469978333,
0.26038503646850586,
-0.29758119583129883,
-0.3687264323234558,
0.35274991393089294,
-0.1765224039554596,
0.3671296238899231,
0.20565174520015717,
-0.00011003287363564596,
0.10972261428833008,
0.44145146012306213,
-0.22223776578903198,
-0.22730480134487152,
-0.2782839238643646,
-0.31864413619041443,
-0.5255686044692993,
-0.04241662099957466,
-0.25192001461982727,
-0.07208965718746185,
-0.19861027598381042,
-0.11861755698919296,
-0.35850587487220764,
0.19687582552433014,
0.48390454053878784,
0.32776424288749695,
-0.20243683457374573,
-0.07729706913232803,
-0.21825994551181793,
0.17366796731948853,
0.0825362429022789,
0.017782174050807953,
0.09850024431943893,
0.03832153603434563,
0.12598922848701477,
0.5457249879837036,
0.22481496632099152,
-0.08710256218910217,
0.06227714195847511,
0.13281843066215515,
-0.06502916663885117,
0.22017967700958252,
-0.3268527090549469,
0.18521229922771454,
0.18939074873924255,
0.8423669338226318,
-0.12720106542110443,
-0.16206082701683044,
-0.1417182981967926,
0.12303350120782852,
-0.30957862734794617,
0.00356692005880177,
0.38910433650016785,
-0.15926243364810944,
0.15572847425937653,
-0.19616183638572693,
0.02263537049293518,
-0.056327253580093384,
0.14394614100456238,
0.19916708767414093,
-0.12764428555965424,
-0.2566350996494293,
0.2265535593032837,
-0.06645052880048752,
-0.09688034653663635,
0.001984235132113099,
-0.06348339468240738,
-0.1318112313747406,
0.22007706761360168,
-0.306193470954895,
-0.00598939461633563,
-0.08652658760547638,
-0.04749837517738342,
0.13054896891117096,
0.01912836916744709,
0.20573139190673828,
-0.3622547686100006,
0.14165546000003815,
0.10292799025774002,
0.30852147936820984,
0.35337650775909424,
-0.09663529694080353,
0.018619036301970482,
0.046876512467861176,
0.17501585185527802,
0.05441068857908249,
-0.2243264764547348,
-0.1458096206188202,
-0.46897587180137634,
0.23259463906288147,
0.2488866150379181,
0.3317737877368927,
-0.15067806839942932,
-0.2495947927236557,
0.13419577479362488,
-0.05510447174310684,
0.23648451268672943,
0.12058299779891968,
0.5153110027313232,
-0.30711790919303894,
0.16840729117393494,
-0.06295692175626755,
0.02560117095708847,
-0.026806334033608437,
-0.22164426743984222,
-0.2956092953681946,
0.02400866709649563,
-0.18466179072856903,
-0.1395944505929947,
0.20676371455192566,
-0.21105055510997772,
0.24458147585391998,
0.07953589409589767,
0.040837936103343964,
-0.30710938572883606,
0.05382516235113144,
-0.3537348210811615,
-0.02322940155863762,
0.4643993079662323,
0.09005248546600342,
0.13243542611598969,
0.2597099542617798,
-0.08393111824989319,
-0.2189941108226776,
0.17716851830482483,
-0.35902971029281616,
-0.5951446294784546,
-0.011070583947002888,
0.26149871945381165,
-0.11406515538692474,
0.11934967339038849,
-0.42464679479599,
0.07000205665826797,
0.16095489263534546,
-0.0954996719956398,
-0.051816027611494064,
-0.17874957621097565,
-0.2614167034626007,
-0.3476529121398926,
0.14997011423110962,
0.3107525110244751,
-0.5323684215545654,
0.16871938109397888,
-0.3266542851924896,
-0.27322837710380554,
0.29768896102905273,
0.21203555166721344,
-0.1209665983915329,
0.33109623193740845,
-0.2531273663043976,
0.05921602621674538,
0.31523945927619934,
-0.30058974027633667,
-0.39999815821647644,
0.39085254073143005,
0.01631772890686989,
0.13098736107349396,
0.003401286667212844,
0.009810373187065125,
0.3307875096797943,
0.007869367487728596,
0.11023478955030441,
0.2126961350440979,
-0.14865630865097046,
-0.03148656338453293,
-0.26205697655677795,
-0.16417811810970306,
-0.050914209336042404,
0.15648265182971954,
0.1396571844816208,
0.1109459325671196,
0.16915297508239746,
-0.30065321922302246,
-0.05188283324241638,
-0.06556825339794159,
0.26962706446647644,
0.36142709851264954,
0.21166318655014038,
0.1624414473772049,
0.17079070210456848,
0.08129438757896423,
-0.535584568977356,
0.325681209564209,
0.011593961156904697,
-0.1998821198940277,
-0.09194343537092209,
-0.12410468608140945,
-0.5685520768165588,
-0.016444940119981766,
-0.12866836786270142,
-0.002695216564461589,
0.1094135120511055,
-0.10544616729021072,
-0.024303926154971123,
-0.09215448051691055,
-0.030217915773391724,
0.5924556851387024,
-0.12620243430137634,
-0.1524438112974167,
-0.13710835576057434,
0.2782704830169678,
0.01245936006307602,
0.05533108115196228,
0.021213047206401825,
0.0994584783911705,
0.18134737014770508,
-0.1014738604426384,
-0.30698809027671814,
0.3099375367164612,
0.06691939383745193,
-0.059799887239933014,
-0.039099663496017456,
-0.08811850845813751,
-0.12910562753677368,
-0.14014071226119995,
-0.013778111897408962,
0.15735825896263123,
0.24772310256958008,
-0.046930089592933655,
0.11266420036554337,
0.1488340049982071,
-0.29803192615509033,
0.0036972095258533955,
-0.11846064031124115,
0.06277865916490555,
0.5067973136901855,
0.0400967076420784,
0.07035893201828003,
-0.3693781793117523,
0.22321398556232452,
-0.16622988879680634,
0.310895174741745,
-0.022393684834241867,
-0.2173393964767456,
-0.35141855478286743,
0.1450279951095581,
0.07821618765592575,
-0.09746876358985901,
0.43131712079048157,
-0.09091328829526901,
-0.10653743147850037,
-0.08405394852161407,
0.30098262429237366,
0.525425910949707,
0.08345631510019302,
-0.16754788160324097,
0.2054765373468399,
0.2845360338687897,
-0.006182736251503229,
0.2890944182872772,
-0.10242407768964767,
0.3282968997955322,
0.2726709842681885,
-0.09580300748348236,
-0.15619659423828125,
-0.10693803429603577,
-0.1512010097503662,
0.18099017441272736,
0.48027652502059937,
-0.2961612045764923,
0.0076899453997612,
-0.03929731249809265,
-0.12936675548553467,
-0.026326050981879234,
-0.1259983330965042,
0.04857451841235161,
-0.058025941252708435,
-0.1010541096329689,
0.15056940913200378,
0.04104168713092804,
-0.13404083251953125,
-0.17710666358470917,
0.2878248393535614,
0.13591013848781586,
-0.2367091327905655,
-0.10920171439647675,
-0.15593650937080383,
-0.2683490812778473,
0.11954816430807114,
0.035031508654356,
0.01967635005712509,
0.258545458316803,
-0.19974055886268616,
0.091404028236866,
-0.10302302241325378,
-0.04985954239964485,
-0.04471587389707565,
-0.001954863080754876,
0.33770427107810974,
0.1962086409330368,
0.24009020626544952,
0.08995851874351501,
0.051665883511304855,
0.22368766367435455,
-0.05026891827583313,
-0.05306338891386986,
0.34988701343536377,
-0.14861232042312622,
-0.09878392517566681,
-0.06121549382805824,
-0.4378129541873932,
-0.5983155369758606,
-0.359150767326355,
0.0012711825547739863,
0.04373814910650253,
0.045235708355903625,
0.21582618355751038,
0.22802183032035828,
-0.1275927871465683,
0.39820632338523865,
-0.0774032324552536,
-0.3031056225299835,
-0.520501434803009,
0.23767615854740143,
-0.35030752420425415,
-0.16793149709701538,
0.00815049558877945,
-0.029173236340284348,
0.17613770067691803,
0.0675559863448143,
-0.5610893964767456,
0.3567282259464264,
-0.23838061094284058,
0.06498946249485016,
-0.23086155951023102,
-0.3174835443496704,
0.22041991353034973,
-0.13813181221485138,
-0.06191086769104004,
-0.24801790714263916,
-0.15417209267616272,
-0.030451437458395958,
0.061127472668886185,
0.12303221225738525,
-0.06772255897521973,
0.5385031700134277,
0.050266340374946594,
0.5127772092819214,
0.3299142122268677,
-0.0016038409667089581,
0.4850444495677948,
0.06830395758152008,
0.3586149513721466,
-0.2322540283203125,
-0.383912593126297,
-0.04484148323535919,
-0.09056171774864197,
-0.27245837450027466,
0.16396646201610565,
-0.06622214615345001,
-0.10019557178020477,
-0.15654733777046204,
-0.04777861759066582,
-0.33328044414520264,
0.05393994227051735,
0.10474281013011932,
-0.16281092166900635,
0.3125784993171692,
0.08870568126440048,
-0.12076298892498016,
-0.38754355907440186,
-0.1475302278995514,
-0.21140363812446594,
0.3583049476146698,
-0.03124348446726799,
0.212905615568161,
-0.3576202690601349,
0.08544139564037323,
-0.3756484091281891,
0.4200851321220398,
0.10934784263372421,
0.4523642659187317,
-0.12905056774616241,
0.21277087926864624,
0.037885770201683044,
0.05347948148846626,
0.710398256778717,
-0.4645592272281647,
0.035881977528333664,
0.16599445044994354,
0.027567986398935318,
-0.30425065755844116,
-0.2851870357990265,
-0.008479984477162361,
0.3178519010543823,
0.31413280963897705,
0.5803294777870178,
-0.036121170967817307,
0.0007450415287166834,
-0.0464964359998703,
0.1986037641763687,
-0.2785790264606476,
-0.3796181380748749,
-0.3453671932220459,
-0.21408803761005402,
-0.24124959111213684,
-0.06281579285860062,
0.10356172919273376,
0.46642398834228516,
-0.05241340771317482,
-0.11790657043457031,
-0.1577499657869339,
0.015348345041275024,
0.14270398020744324,
0.08803702890872955,
0.3629487156867981,
-0.014422843232750893,
0.36494871973991394,
0.07446934282779694,
0.08856146782636642,
0.1970507651567459,
0.6999539136886597,
0.12739835679531097,
-0.5392554998397827,
-0.12615691125392914,
0.06966841965913773,
0.0954371988773346,
-0.08110150694847107,
-0.2950466573238373,
-0.16157035529613495,
-0.03610878810286522,
0.2540142834186554,
-0.16863594949245453,
0.2842821776866913,
0.27416202425956726,
-0.09369388967752457,
-0.5076524615287781,
-0.48670870065689087,
0.25443652272224426,
0.07475403696298599,
-0.04898662120103836,
0.2786591947078705,
-0.21352651715278625,
-0.22847990691661835,
0.043066706508398056,
0.0376371294260025,
0.6544902324676514,
-0.058920372277498245,
-0.10743866860866547,
0.16741728782653809,
-0.27331411838531494,
0.24323101341724396,
-0.40139442682266235,
0.08022450655698776,
-0.32524293661117554,
-0.43112969398498535,
-0.01898368075489998,
-0.22216565907001495,
0.09237419068813324,
0.18450818955898285,
-0.1360654979944229,
0.3313298523426056,
-0.2476436048746109,
0.33809947967529297,
-0.043272532522678375,
0.057054515928030014,
0.01329137571156025,
-0.16167022287845612,
-0.1127723902463913,
0.20041047036647797,
-0.2213425487279892,
0.2725204825401306,
-0.23051294684410095,
-0.007064017932862043,
0.034944161772727966,
-0.21167485415935516,
-0.3580957353115082,
0.08955787122249603,
-0.001252679736353457,
0.3320589065551758,
-0.13376571238040924,
-0.21419499814510345,
0.0264651570469141,
0.382057249546051,
0.277396559715271,
0.2747618854045868,
-0.16808190941810608,
0.17629005014896393,
0.007890308275818825,
-0.02277972176671028,
-0.06779271364212036,
0.15924054384231567,
0.05743270739912987,
-0.07007473707199097,
-0.2695394456386566,
0.17292989790439606,
-0.15126009285449982,
-0.19901765882968903,
0.07428257167339325,
-0.05520055443048477,
-0.043974630534648895,
-0.3788852393627167,
-0.49444258213043213,
-0.20809420943260193,
0.18062752485275269,
-0.0699634701013565,
0.14611172676086426,
-0.011700470931828022,
-0.056295525282621384,
0.2779732346534729,
0.009877166710793972,
-0.4934687316417694,
-0.09345801919698715,
0.23585981130599976,
0.15044569969177246,
0.042307738214731216,
0.5770388841629028,
-0.022745778784155846,
-0.12676425278186798,
-0.20606498420238495,
0.15691439807415009,
0.15249638259410858,
-0.4153025150299072,
0.29849597811698914,
0.006564939394593239,
0.22829224169254303,
-0.056433599442243576,
0.10670526325702667,
0.28674837946891785,
-0.013791143894195557,
0.2696353793144226,
-0.6932899355888367,
-0.24386495351791382,
0.0520336888730526,
-0.2252727597951889,
0.1804029643535614,
0.16515453159809113,
0.04282644763588905,
-0.08825036883354187,
-0.04950092360377312,
-0.31034815311431885,
0.19515618681907654,
-0.24363990128040314,
-0.012771825306117535,
0.11711454391479492,
0.024686766788363457,
0.10249947756528854,
-0.05076608061790466,
0.12298069894313812,
0.05686916038393974,
-0.24716098606586456,
-0.29580187797546387,
-0.11205951869487762,
0.12982873618602753,
-0.014499342069029808,
-0.12319750338792801,
0.0595683716237545,
-0.22218814492225647,
-0.2636028826236725,
-0.07550878822803497,
0.06330055743455887,
0.22922766208648682,
0.05964339151978493,
0.15095753967761993,
-0.1756056696176529,
0.07458460330963135,
-0.30018851161003113,
0.32056713104248047,
0.0679093524813652,
0.2082367241382599,
-0.007541409693658352,
0.2315397709608078,
0.1362181156873703,
-0.08701231330633163,
-0.4957449436187744,
-0.11654345691204071,
0.14861692488193512,
0.03110637329518795,
0.334516316652298,
-0.2841585874557495,
0.4677668809890747,
0.18599477410316467,
0.177284836769104,
0.20536601543426514,
-0.18433710932731628,
0.13665646314620972,
0.27926570177078247,
0.24595597386360168,
-0.34128060936927795,
-0.03600441664457321,
-0.027183594182133675,
0.2645357549190521,
-0.15160991251468658,
0.019274407997727394,
0.3053027391433716,
-0.03358960524201393,
-0.02390550635755062,
0.08172062784433365,
0.36084485054016113,
0.14038842916488647,
0.19851386547088623,
0.4788001477718353,
0.055088866502046585,
0.10434403270483017,
0.1473936140537262,
0.15296821296215057,
0.14865390956401825,
0.8432784676551819,
-0.08708468824625015,
0.04750563204288483,
0.21901124715805054,
0.19414658844470978,
-0.25378909707069397,
-0.7259448766708374,
0.20994272828102112,
0.2318013310432434,
-0.12920525670051575,
0.06368760764598846,
0.0515897199511528,
0.015476416796445847,
-0.05689317733049393,
0.028710775077342987,
-0.3996517062187195,
-0.11233869194984436,
-0.197414830327034,
-0.043904438614845276,
-0.1145653948187828,
-0.09350914508104324,
-0.09504704177379608,
0.09067682921886444,
-0.10258445143699646,
-0.05176323652267456,
-0.053269289433956146,
0.08045663684606552,
-0.28734949231147766,
-0.3159596621990204,
0.17760899662971497,
0.46478304266929626,
-0.06347649544477463,
-0.3196808397769928,
0.23130661249160767,
0.19589605927467346,
0.057013072073459625,
0.1599380522966385,
0.11801273375749588,
0.5215352773666382,
0.55157870054245,
-0.03060716763138771,
0.1069466844201088,
0.15771940350532532,
-0.11335024982690811,
-0.040896594524383545,
0.19733893871307373,
0.3230096995830536,
0.3432398736476898,
0.2013501673936844,
0.2322908341884613,
-0.12374632805585861,
0.3629772365093231,
0.1353282779455185,
0.2386198341846466,
-0.15822595357894897,
0.06278088688850403,
-0.13218870759010315,
0.0853874534368515,
-0.29603737592697144,
0.16927528381347656,
-0.23226995766162872,
0.07238492369651794,
0.5374069809913635,
0.17379115521907806,
0.18438085913658142,
0.028195567429065704,
0.08190500736236572,
-0.17947238683700562,
0.3207794725894928,
0.1872991919517517,
-0.004604140762239695,
-0.44734707474708557,
-0.14205025136470795,
-0.490800142288208,
0.1574256271123886,
-0.36432042717933655,
-0.10447581112384796,
0.14511103928089142,
0.11769995093345642,
-0.07114630192518234,
0.011568461544811726,
0.03316263109445572,
-0.039099790155887604,
-0.10488763451576233,
0.2687350809574127,
-0.15997537970542908,
-0.3986562192440033,
-0.05761551856994629,
0.10793118178844452,
0.11563152074813843,
-0.5605539083480835,
-0.015596117824316025,
-0.11823558807373047,
0.10908854007720947,
-0.24126915633678436,
-0.155986487865448,
0.07161838561296463,
-0.059863489121198654,
0.4797489643096924,
0.027387529611587524,
0.45274820923805237,
-0.029471896588802338,
0.14985452592372894,
-0.3443870544433594,
-0.3039681911468506,
-0.046884551644325256,
0.3253209590911865,
0.1939057558774948,
0.2710701525211334,
-0.2828696370124817,
0.11237506568431854,
-0.1649845391511917,
-0.0021801404654979706,
0.0596381239593029,
0.1852114051580429,
-0.09659472852945328,
-0.08174636214971542,
-0.13646425306797028,
0.18578746914863586,
0.1331341713666916,
0.24674993753433228,
-0.19122813642024994,
0.07239552587270737,
-0.0053282808512449265,
-0.3337085247039795,
0.5975277423858643,
-0.07901088148355484,
-0.2732950747013092,
0.0007334199035540223,
0.0964822843670845,
0.27577027678489685,
-0.18670903146266937,
-0.20421813428401947,
0.19913798570632935,
0.478746622800827,
-0.13322339951992035,
-0.04885871708393097,
0.17193107306957245,
0.0861927792429924,
0.11117735505104065,
-0.00599705521017313,
0.18565021455287933,
0.01631338521838188,
-0.1944562941789627,
0.10227958858013153,
-0.36592885851860046
] |
https://github.com/huggingface/datasets/issues/1773 | bug in loading datasets | Note that you can pass any argument you would pass to `pandas.read_csv` as kwargs to `load_dataset`. For example you can do
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files=data_files, sep="\t")
```
for example to use a tab separator.
You can see the full list of arguments here: https://github.com/huggingface/datasets/blob/master/src/datasets/packaged_modules/csv/csv.py
(I've not found the list in the documentation though, we definitely must add them !) | Hi,
I need to load a dataset, I use these commands:
```
from datasets import load_dataset
dataset = load_dataset('csv', data_files={'train': 'sick/train.csv',
'test': 'sick/test.csv',
'validation': 'sick/validation.csv'})
print(dataset['validation'])
```
the dataset in sick/train.csv are simple csv files representing the data. I am getting this error, do you have an idea how I can solve this? thank you @lhoestq
```
Using custom data configuration default
Downloading and preparing dataset csv/default-61468fc71a743ec1 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /julia/cache_home_2/datasets/csv/default-61468fc71a743ec1/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2...
Traceback (most recent call last):
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 485, in incomplete_dir
yield tmp_dir
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 604, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 959, in _prepare_split
for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose):
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/tqdm-4.49.0-py3.7.egg/tqdm/std.py", line 1133, in __iter__
for obj in iterable:
File "/julia/cache_home_2/modules/datasets_modules/datasets/csv/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2/csv.py", line 129, in _generate_tables
for batch_idx, df in enumerate(csv_file_reader):
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/io/parsers.py", line 1029, in __next__
return self.get_chunk()
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/io/parsers.py", line 1079, in get_chunk
return self.read(nrows=size)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/io/parsers.py", line 1052, in read
index, columns, col_dict = self._engine.read(nrows)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/io/parsers.py", line 2056, in read
data = self._reader.read(nrows)
File "pandas/_libs/parsers.pyx", line 756, in pandas._libs.parsers.TextReader.read
File "pandas/_libs/parsers.pyx", line 783, in pandas._libs.parsers.TextReader._read_low_memory
File "pandas/_libs/parsers.pyx", line 827, in pandas._libs.parsers.TextReader._read_rows
File "pandas/_libs/parsers.pyx", line 814, in pandas._libs.parsers.TextReader._tokenize_rows
File "pandas/_libs/parsers.pyx", line 1951, in pandas._libs.parsers.raise_parser_error
pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 37, saw 2
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "write_sick.py", line 19, in <module>
'validation': 'sick/validation.csv'})
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/load.py", line 612, in load_dataset
ignore_verifications=ignore_verifications,
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 534, in download_and_prepare
self._save_info()
File "/julia/libs/anaconda3/envs/success/lib/python3.7/contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 491, in incomplete_dir
shutil.rmtree(tmp_dir)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/shutil.py", line 498, in rmtree
onerror(os.rmdir, path, sys.exc_info())
File "/julia/libs/anaconda3/envs/success/lib/python3.7/shutil.py", line 496, in rmtree
os.rmdir(path)
OSError: [Errno 39] Directory not empty: '/julia/cache_home_2/datasets/csv/default-61468fc71a743ec1/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2.incomplete'
```
| 64 | bug in loading datasets
Hi,
I need to load a dataset, I use these commands:
```
from datasets import load_dataset
dataset = load_dataset('csv', data_files={'train': 'sick/train.csv',
'test': 'sick/test.csv',
'validation': 'sick/validation.csv'})
print(dataset['validation'])
```
the dataset in sick/train.csv are simple csv files representing the data. I am getting this error, do you have an idea how I can solve this? thank you @lhoestq
```
Using custom data configuration default
Downloading and preparing dataset csv/default-61468fc71a743ec1 (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /julia/cache_home_2/datasets/csv/default-61468fc71a743ec1/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2...
Traceback (most recent call last):
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 485, in incomplete_dir
yield tmp_dir
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 527, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 604, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 959, in _prepare_split
for key, table in utils.tqdm(generator, unit=" tables", leave=False, disable=not_verbose):
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/tqdm-4.49.0-py3.7.egg/tqdm/std.py", line 1133, in __iter__
for obj in iterable:
File "/julia/cache_home_2/modules/datasets_modules/datasets/csv/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2/csv.py", line 129, in _generate_tables
for batch_idx, df in enumerate(csv_file_reader):
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/io/parsers.py", line 1029, in __next__
return self.get_chunk()
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/io/parsers.py", line 1079, in get_chunk
return self.read(nrows=size)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/io/parsers.py", line 1052, in read
index, columns, col_dict = self._engine.read(nrows)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/pandas-1.2.0-py3.7-linux-x86_64.egg/pandas/io/parsers.py", line 2056, in read
data = self._reader.read(nrows)
File "pandas/_libs/parsers.pyx", line 756, in pandas._libs.parsers.TextReader.read
File "pandas/_libs/parsers.pyx", line 783, in pandas._libs.parsers.TextReader._read_low_memory
File "pandas/_libs/parsers.pyx", line 827, in pandas._libs.parsers.TextReader._read_rows
File "pandas/_libs/parsers.pyx", line 814, in pandas._libs.parsers.TextReader._tokenize_rows
File "pandas/_libs/parsers.pyx", line 1951, in pandas._libs.parsers.raise_parser_error
pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 37, saw 2
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "write_sick.py", line 19, in <module>
'validation': 'sick/validation.csv'})
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/load.py", line 612, in load_dataset
ignore_verifications=ignore_verifications,
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 534, in download_and_prepare
self._save_info()
File "/julia/libs/anaconda3/envs/success/lib/python3.7/contextlib.py", line 130, in __exit__
self.gen.throw(type, value, traceback)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/site-packages/datasets-1.2.0-py3.7.egg/datasets/builder.py", line 491, in incomplete_dir
shutil.rmtree(tmp_dir)
File "/julia/libs/anaconda3/envs/success/lib/python3.7/shutil.py", line 498, in rmtree
onerror(os.rmdir, path, sys.exc_info())
File "/julia/libs/anaconda3/envs/success/lib/python3.7/shutil.py", line 496, in rmtree
os.rmdir(path)
OSError: [Errno 39] Directory not empty: '/julia/cache_home_2/datasets/csv/default-61468fc71a743ec1/0.0.0/2960f95a26e85d40ca41a230ac88787f715ee3003edaacb8b1f0891e9f04dda2.incomplete'
```
Note that you can pass any argument you would pass to `pandas.read_csv` as kwargs to `load_dataset`. For example you can do
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files=data_files, sep="\t")
```
for example to use a tab separator.
You can see the full list of arguments here: https://github.com/huggingface/datasets/blob/master/src/datasets/packaged_modules/csv/csv.py
(I've not found the list in the documentation though, we definitely must add them !) | [
-0.2842665910720825,
-0.27147695422172546,
-0.14631570875644684,
0.46084830164909363,
0.30196890234947205,
0.24083691835403442,
0.08345659077167511,
0.5121127367019653,
0.07644950598478317,
0.058581408113241196,
-0.0004540651279967278,
-0.26659661531448364,
-0.10810218751430511,
0.2536351680755615,
-0.033702947199344635,
0.035205304622650146,
-0.033164478838443756,
0.16802619397640228,
-0.09462101012468338,
0.019386179745197296,
-0.2684039771556854,
0.2590363025665283,
-0.09573861211538315,
0.08945991843938828,
-0.003511593909934163,
-0.1219346895813942,
0.09926417469978333,
0.26038503646850586,
-0.29758119583129883,
-0.3687264323234558,
0.35274991393089294,
-0.1765224039554596,
0.3671296238899231,
0.20565174520015717,
-0.00011003287363564596,
0.10972261428833008,
0.44145146012306213,
-0.22223776578903198,
-0.22730480134487152,
-0.2782839238643646,
-0.31864413619041443,
-0.5255686044692993,
-0.04241662099957466,
-0.25192001461982727,
-0.07208965718746185,
-0.19861027598381042,
-0.11861755698919296,
-0.35850587487220764,
0.19687582552433014,
0.48390454053878784,
0.32776424288749695,
-0.20243683457374573,
-0.07729706913232803,
-0.21825994551181793,
0.17366796731948853,
0.0825362429022789,
0.017782174050807953,
0.09850024431943893,
0.03832153603434563,
0.12598922848701477,
0.5457249879837036,
0.22481496632099152,
-0.08710256218910217,
0.06227714195847511,
0.13281843066215515,
-0.06502916663885117,
0.22017967700958252,
-0.3268527090549469,
0.18521229922771454,
0.18939074873924255,
0.8423669338226318,
-0.12720106542110443,
-0.16206082701683044,
-0.1417182981967926,
0.12303350120782852,
-0.30957862734794617,
0.00356692005880177,
0.38910433650016785,
-0.15926243364810944,
0.15572847425937653,
-0.19616183638572693,
0.02263537049293518,
-0.056327253580093384,
0.14394614100456238,
0.19916708767414093,
-0.12764428555965424,
-0.2566350996494293,
0.2265535593032837,
-0.06645052880048752,
-0.09688034653663635,
0.001984235132113099,
-0.06348339468240738,
-0.1318112313747406,
0.22007706761360168,
-0.306193470954895,
-0.00598939461633563,
-0.08652658760547638,
-0.04749837517738342,
0.13054896891117096,
0.01912836916744709,
0.20573139190673828,
-0.3622547686100006,
0.14165546000003815,
0.10292799025774002,
0.30852147936820984,
0.35337650775909424,
-0.09663529694080353,
0.018619036301970482,
0.046876512467861176,
0.17501585185527802,
0.05441068857908249,
-0.2243264764547348,
-0.1458096206188202,
-0.46897587180137634,
0.23259463906288147,
0.2488866150379181,
0.3317737877368927,
-0.15067806839942932,
-0.2495947927236557,
0.13419577479362488,
-0.05510447174310684,
0.23648451268672943,
0.12058299779891968,
0.5153110027313232,
-0.30711790919303894,
0.16840729117393494,
-0.06295692175626755,
0.02560117095708847,
-0.026806334033608437,
-0.22164426743984222,
-0.2956092953681946,
0.02400866709649563,
-0.18466179072856903,
-0.1395944505929947,
0.20676371455192566,
-0.21105055510997772,
0.24458147585391998,
0.07953589409589767,
0.040837936103343964,
-0.30710938572883606,
0.05382516235113144,
-0.3537348210811615,
-0.02322940155863762,
0.4643993079662323,
0.09005248546600342,
0.13243542611598969,
0.2597099542617798,
-0.08393111824989319,
-0.2189941108226776,
0.17716851830482483,
-0.35902971029281616,
-0.5951446294784546,
-0.011070583947002888,
0.26149871945381165,
-0.11406515538692474,
0.11934967339038849,
-0.42464679479599,
0.07000205665826797,
0.16095489263534546,
-0.0954996719956398,
-0.051816027611494064,
-0.17874957621097565,
-0.2614167034626007,
-0.3476529121398926,
0.14997011423110962,
0.3107525110244751,
-0.5323684215545654,
0.16871938109397888,
-0.3266542851924896,
-0.27322837710380554,
0.29768896102905273,
0.21203555166721344,
-0.1209665983915329,
0.33109623193740845,
-0.2531273663043976,
0.05921602621674538,
0.31523945927619934,
-0.30058974027633667,
-0.39999815821647644,
0.39085254073143005,
0.01631772890686989,
0.13098736107349396,
0.003401286667212844,
0.009810373187065125,
0.3307875096797943,
0.007869367487728596,
0.11023478955030441,
0.2126961350440979,
-0.14865630865097046,
-0.03148656338453293,
-0.26205697655677795,
-0.16417811810970306,
-0.050914209336042404,
0.15648265182971954,
0.1396571844816208,
0.1109459325671196,
0.16915297508239746,
-0.30065321922302246,
-0.05188283324241638,
-0.06556825339794159,
0.26962706446647644,
0.36142709851264954,
0.21166318655014038,
0.1624414473772049,
0.17079070210456848,
0.08129438757896423,
-0.535584568977356,
0.325681209564209,
0.011593961156904697,
-0.1998821198940277,
-0.09194343537092209,
-0.12410468608140945,
-0.5685520768165588,
-0.016444940119981766,
-0.12866836786270142,
-0.002695216564461589,
0.1094135120511055,
-0.10544616729021072,
-0.024303926154971123,
-0.09215448051691055,
-0.030217915773391724,
0.5924556851387024,
-0.12620243430137634,
-0.1524438112974167,
-0.13710835576057434,
0.2782704830169678,
0.01245936006307602,
0.05533108115196228,
0.021213047206401825,
0.0994584783911705,
0.18134737014770508,
-0.1014738604426384,
-0.30698809027671814,
0.3099375367164612,
0.06691939383745193,
-0.059799887239933014,
-0.039099663496017456,
-0.08811850845813751,
-0.12910562753677368,
-0.14014071226119995,
-0.013778111897408962,
0.15735825896263123,
0.24772310256958008,
-0.046930089592933655,
0.11266420036554337,
0.1488340049982071,
-0.29803192615509033,
0.0036972095258533955,
-0.11846064031124115,
0.06277865916490555,
0.5067973136901855,
0.0400967076420784,
0.07035893201828003,
-0.3693781793117523,
0.22321398556232452,
-0.16622988879680634,
0.310895174741745,
-0.022393684834241867,
-0.2173393964767456,
-0.35141855478286743,
0.1450279951095581,
0.07821618765592575,
-0.09746876358985901,
0.43131712079048157,
-0.09091328829526901,
-0.10653743147850037,
-0.08405394852161407,
0.30098262429237366,
0.525425910949707,
0.08345631510019302,
-0.16754788160324097,
0.2054765373468399,
0.2845360338687897,
-0.006182736251503229,
0.2890944182872772,
-0.10242407768964767,
0.3282968997955322,
0.2726709842681885,
-0.09580300748348236,
-0.15619659423828125,
-0.10693803429603577,
-0.1512010097503662,
0.18099017441272736,
0.48027652502059937,
-0.2961612045764923,
0.0076899453997612,
-0.03929731249809265,
-0.12936675548553467,
-0.026326050981879234,
-0.1259983330965042,
0.04857451841235161,
-0.058025941252708435,
-0.1010541096329689,
0.15056940913200378,
0.04104168713092804,
-0.13404083251953125,
-0.17710666358470917,
0.2878248393535614,
0.13591013848781586,
-0.2367091327905655,
-0.10920171439647675,
-0.15593650937080383,
-0.2683490812778473,
0.11954816430807114,
0.035031508654356,
0.01967635005712509,
0.258545458316803,
-0.19974055886268616,
0.091404028236866,
-0.10302302241325378,
-0.04985954239964485,
-0.04471587389707565,
-0.001954863080754876,
0.33770427107810974,
0.1962086409330368,
0.24009020626544952,
0.08995851874351501,
0.051665883511304855,
0.22368766367435455,
-0.05026891827583313,
-0.05306338891386986,
0.34988701343536377,
-0.14861232042312622,
-0.09878392517566681,
-0.06121549382805824,
-0.4378129541873932,
-0.5983155369758606,
-0.359150767326355,
0.0012711825547739863,
0.04373814910650253,
0.045235708355903625,
0.21582618355751038,
0.22802183032035828,
-0.1275927871465683,
0.39820632338523865,
-0.0774032324552536,
-0.3031056225299835,
-0.520501434803009,
0.23767615854740143,
-0.35030752420425415,
-0.16793149709701538,
0.00815049558877945,
-0.029173236340284348,
0.17613770067691803,
0.0675559863448143,
-0.5610893964767456,
0.3567282259464264,
-0.23838061094284058,
0.06498946249485016,
-0.23086155951023102,
-0.3174835443496704,
0.22041991353034973,
-0.13813181221485138,
-0.06191086769104004,
-0.24801790714263916,
-0.15417209267616272,
-0.030451437458395958,
0.061127472668886185,
0.12303221225738525,
-0.06772255897521973,
0.5385031700134277,
0.050266340374946594,
0.5127772092819214,
0.3299142122268677,
-0.0016038409667089581,
0.4850444495677948,
0.06830395758152008,
0.3586149513721466,
-0.2322540283203125,
-0.383912593126297,
-0.04484148323535919,
-0.09056171774864197,
-0.27245837450027466,
0.16396646201610565,
-0.06622214615345001,
-0.10019557178020477,
-0.15654733777046204,
-0.04777861759066582,
-0.33328044414520264,
0.05393994227051735,
0.10474281013011932,
-0.16281092166900635,
0.3125784993171692,
0.08870568126440048,
-0.12076298892498016,
-0.38754355907440186,
-0.1475302278995514,
-0.21140363812446594,
0.3583049476146698,
-0.03124348446726799,
0.212905615568161,
-0.3576202690601349,
0.08544139564037323,
-0.3756484091281891,
0.4200851321220398,
0.10934784263372421,
0.4523642659187317,
-0.12905056774616241,
0.21277087926864624,
0.037885770201683044,
0.05347948148846626,
0.710398256778717,
-0.4645592272281647,
0.035881977528333664,
0.16599445044994354,
0.027567986398935318,
-0.30425065755844116,
-0.2851870357990265,
-0.008479984477162361,
0.3178519010543823,
0.31413280963897705,
0.5803294777870178,
-0.036121170967817307,
0.0007450415287166834,
-0.0464964359998703,
0.1986037641763687,
-0.2785790264606476,
-0.3796181380748749,
-0.3453671932220459,
-0.21408803761005402,
-0.24124959111213684,
-0.06281579285860062,
0.10356172919273376,
0.46642398834228516,
-0.05241340771317482,
-0.11790657043457031,
-0.1577499657869339,
0.015348345041275024,
0.14270398020744324,
0.08803702890872955,
0.3629487156867981,
-0.014422843232750893,
0.36494871973991394,
0.07446934282779694,
0.08856146782636642,
0.1970507651567459,
0.6999539136886597,
0.12739835679531097,
-0.5392554998397827,
-0.12615691125392914,
0.06966841965913773,
0.0954371988773346,
-0.08110150694847107,
-0.2950466573238373,
-0.16157035529613495,
-0.03610878810286522,
0.2540142834186554,
-0.16863594949245453,
0.2842821776866913,
0.27416202425956726,
-0.09369388967752457,
-0.5076524615287781,
-0.48670870065689087,
0.25443652272224426,
0.07475403696298599,
-0.04898662120103836,
0.2786591947078705,
-0.21352651715278625,
-0.22847990691661835,
0.043066706508398056,
0.0376371294260025,
0.6544902324676514,
-0.058920372277498245,
-0.10743866860866547,
0.16741728782653809,
-0.27331411838531494,
0.24323101341724396,
-0.40139442682266235,
0.08022450655698776,
-0.32524293661117554,
-0.43112969398498535,
-0.01898368075489998,
-0.22216565907001495,
0.09237419068813324,
0.18450818955898285,
-0.1360654979944229,
0.3313298523426056,
-0.2476436048746109,
0.33809947967529297,
-0.043272532522678375,
0.057054515928030014,
0.01329137571156025,
-0.16167022287845612,
-0.1127723902463913,
0.20041047036647797,
-0.2213425487279892,
0.2725204825401306,
-0.23051294684410095,
-0.007064017932862043,
0.034944161772727966,
-0.21167485415935516,
-0.3580957353115082,
0.08955787122249603,
-0.001252679736353457,
0.3320589065551758,
-0.13376571238040924,
-0.21419499814510345,
0.0264651570469141,
0.382057249546051,
0.277396559715271,
0.2747618854045868,
-0.16808190941810608,
0.17629005014896393,
0.007890308275818825,
-0.02277972176671028,
-0.06779271364212036,
0.15924054384231567,
0.05743270739912987,
-0.07007473707199097,
-0.2695394456386566,
0.17292989790439606,
-0.15126009285449982,
-0.19901765882968903,
0.07428257167339325,
-0.05520055443048477,
-0.043974630534648895,
-0.3788852393627167,
-0.49444258213043213,
-0.20809420943260193,
0.18062752485275269,
-0.0699634701013565,
0.14611172676086426,
-0.011700470931828022,
-0.056295525282621384,
0.2779732346534729,
0.009877166710793972,
-0.4934687316417694,
-0.09345801919698715,
0.23585981130599976,
0.15044569969177246,
0.042307738214731216,
0.5770388841629028,
-0.022745778784155846,
-0.12676425278186798,
-0.20606498420238495,
0.15691439807415009,
0.15249638259410858,
-0.4153025150299072,
0.29849597811698914,
0.006564939394593239,
0.22829224169254303,
-0.056433599442243576,
0.10670526325702667,
0.28674837946891785,
-0.013791143894195557,
0.2696353793144226,
-0.6932899355888367,
-0.24386495351791382,
0.0520336888730526,
-0.2252727597951889,
0.1804029643535614,
0.16515453159809113,
0.04282644763588905,
-0.08825036883354187,
-0.04950092360377312,
-0.31034815311431885,
0.19515618681907654,
-0.24363990128040314,
-0.012771825306117535,
0.11711454391479492,
0.024686766788363457,
0.10249947756528854,
-0.05076608061790466,
0.12298069894313812,
0.05686916038393974,
-0.24716098606586456,
-0.29580187797546387,
-0.11205951869487762,
0.12982873618602753,
-0.014499342069029808,
-0.12319750338792801,
0.0595683716237545,
-0.22218814492225647,
-0.2636028826236725,
-0.07550878822803497,
0.06330055743455887,
0.22922766208648682,
0.05964339151978493,
0.15095753967761993,
-0.1756056696176529,
0.07458460330963135,
-0.30018851161003113,
0.32056713104248047,
0.0679093524813652,
0.2082367241382599,
-0.007541409693658352,
0.2315397709608078,
0.1362181156873703,
-0.08701231330633163,
-0.4957449436187744,
-0.11654345691204071,
0.14861692488193512,
0.03110637329518795,
0.334516316652298,
-0.2841585874557495,
0.4677668809890747,
0.18599477410316467,
0.177284836769104,
0.20536601543426514,
-0.18433710932731628,
0.13665646314620972,
0.27926570177078247,
0.24595597386360168,
-0.34128060936927795,
-0.03600441664457321,
-0.027183594182133675,
0.2645357549190521,
-0.15160991251468658,
0.019274407997727394,
0.3053027391433716,
-0.03358960524201393,
-0.02390550635755062,
0.08172062784433365,
0.36084485054016113,
0.14038842916488647,
0.19851386547088623,
0.4788001477718353,
0.055088866502046585,
0.10434403270483017,
0.1473936140537262,
0.15296821296215057,
0.14865390956401825,
0.8432784676551819,
-0.08708468824625015,
0.04750563204288483,
0.21901124715805054,
0.19414658844470978,
-0.25378909707069397,
-0.7259448766708374,
0.20994272828102112,
0.2318013310432434,
-0.12920525670051575,
0.06368760764598846,
0.0515897199511528,
0.015476416796445847,
-0.05689317733049393,
0.028710775077342987,
-0.3996517062187195,
-0.11233869194984436,
-0.197414830327034,
-0.043904438614845276,
-0.1145653948187828,
-0.09350914508104324,
-0.09504704177379608,
0.09067682921886444,
-0.10258445143699646,
-0.05176323652267456,
-0.053269289433956146,
0.08045663684606552,
-0.28734949231147766,
-0.3159596621990204,
0.17760899662971497,
0.46478304266929626,
-0.06347649544477463,
-0.3196808397769928,
0.23130661249160767,
0.19589605927467346,
0.057013072073459625,
0.1599380522966385,
0.11801273375749588,
0.5215352773666382,
0.55157870054245,
-0.03060716763138771,
0.1069466844201088,
0.15771940350532532,
-0.11335024982690811,
-0.040896594524383545,
0.19733893871307373,
0.3230096995830536,
0.3432398736476898,
0.2013501673936844,
0.2322908341884613,
-0.12374632805585861,
0.3629772365093231,
0.1353282779455185,
0.2386198341846466,
-0.15822595357894897,
0.06278088688850403,
-0.13218870759010315,
0.0853874534368515,
-0.29603737592697144,
0.16927528381347656,
-0.23226995766162872,
0.07238492369651794,
0.5374069809913635,
0.17379115521907806,
0.18438085913658142,
0.028195567429065704,
0.08190500736236572,
-0.17947238683700562,
0.3207794725894928,
0.1872991919517517,
-0.004604140762239695,
-0.44734707474708557,
-0.14205025136470795,
-0.490800142288208,
0.1574256271123886,
-0.36432042717933655,
-0.10447581112384796,
0.14511103928089142,
0.11769995093345642,
-0.07114630192518234,
0.011568461544811726,
0.03316263109445572,
-0.039099790155887604,
-0.10488763451576233,
0.2687350809574127,
-0.15997537970542908,
-0.3986562192440033,
-0.05761551856994629,
0.10793118178844452,
0.11563152074813843,
-0.5605539083480835,
-0.015596117824316025,
-0.11823558807373047,
0.10908854007720947,
-0.24126915633678436,
-0.155986487865448,
0.07161838561296463,
-0.059863489121198654,
0.4797489643096924,
0.027387529611587524,
0.45274820923805237,
-0.029471896588802338,
0.14985452592372894,
-0.3443870544433594,
-0.3039681911468506,
-0.046884551644325256,
0.3253209590911865,
0.1939057558774948,
0.2710701525211334,
-0.2828696370124817,
0.11237506568431854,
-0.1649845391511917,
-0.0021801404654979706,
0.0596381239593029,
0.1852114051580429,
-0.09659472852945328,
-0.08174636214971542,
-0.13646425306797028,
0.18578746914863586,
0.1331341713666916,
0.24674993753433228,
-0.19122813642024994,
0.07239552587270737,
-0.0053282808512449265,
-0.3337085247039795,
0.5975277423858643,
-0.07901088148355484,
-0.2732950747013092,
0.0007334199035540223,
0.0964822843670845,
0.27577027678489685,
-0.18670903146266937,
-0.20421813428401947,
0.19913798570632935,
0.478746622800827,
-0.13322339951992035,
-0.04885871708393097,
0.17193107306957245,
0.0861927792429924,
0.11117735505104065,
-0.00599705521017313,
0.18565021455287933,
0.01631338521838188,
-0.1944562941789627,
0.10227958858013153,
-0.36592885851860046
] |
https://github.com/huggingface/datasets/issues/1771 | Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.2.1/datasets/csv/csv.py | Indeed in 1.2.1 the script to process csv file is downloaded. Starting from the next release though we include the csv processing directly in the library.
See PR #1726
We'll do a new release soon :) | Hi,
When I load_dataset from local csv files, below error happened, looks raw.githubusercontent.com was blocked by the chinese government. But why it need to download csv.py? should it include when pip install the dataset?
```
Traceback (most recent call last):
File "/home/tom/pyenv/pystory/lib/python3.6/site-packages/datasets/load.py", line 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/home/tom/pyenv/pystory/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 343, in cached_path
max_retries=download_config.max_retries,
File "/home/tom/pyenv/pystory/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 617, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.2.1/datasets/csv/csv.py
``` | 36 | Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.2.1/datasets/csv/csv.py
Hi,
When I load_dataset from local csv files, below error happened, looks raw.githubusercontent.com was blocked by the chinese government. But why it need to download csv.py? should it include when pip install the dataset?
```
Traceback (most recent call last):
File "/home/tom/pyenv/pystory/lib/python3.6/site-packages/datasets/load.py", line 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/home/tom/pyenv/pystory/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 343, in cached_path
max_retries=download_config.max_retries,
File "/home/tom/pyenv/pystory/lib/python3.6/site-packages/datasets/utils/file_utils.py", line 617, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.2.1/datasets/csv/csv.py
```
Indeed in 1.2.1 the script to process csv file is downloaded. Starting from the next release though we include the csv processing directly in the library.
See PR #1726
We'll do a new release soon :) | [
-0.09555325657129288,
-0.20197561383247375,
-0.18235330283641815,
0.099574513733387,
0.19236566126346588,
-0.011418279260396957,
0.2810027599334717,
0.18599055707454681,
0.25373342633247375,
0.2542535066604614,
0.08921876549720764,
-0.19674748182296753,
0.2385467141866684,
0.09402350336313248,
0.2848535180091858,
0.00546300457790494,
0.0613933689892292,
0.18277156352996826,
-0.054800845682621,
0.07383531332015991,
-0.2219044715166092,
0.16121681034564972,
-0.07704636454582214,
0.24066847562789917,
0.1830088347196579,
-0.04382457584142685,
-0.018339157104492188,
0.2499675303697586,
-0.15533018112182617,
-0.6863777041435242,
0.5335743427276611,
-0.08772079646587372,
0.08723896741867065,
0.38096845149993896,
-0.00012196241732453927,
0.17848725616931915,
0.22665174305438995,
0.06008993834257126,
-0.3041379451751709,
-0.43030020594596863,
-0.20436356961727142,
-0.46465152502059937,
0.20937871932983398,
-0.08814724534749985,
-0.11163034290075302,
0.0846516564488411,
0.09860555082559586,
-0.06798891723155975,
0.5056245923042297,
0.25711026787757874,
0.12533843517303467,
0.4090685248374939,
0.1611117571592331,
-0.02371080592274666,
0.07973071932792664,
-0.2780308723449707,
0.03831053152680397,
0.6396934390068054,
0.25060975551605225,
0.07917794585227966,
0.18632520735263824,
0.06411875039339066,
0.021892689168453217,
0.03690110519528389,
0.04729938507080078,
-0.18821392953395844,
-0.12584352493286133,
-0.41155096888542175,
0.1586071103811264,
0.1841287910938263,
0.41877275705337524,
-0.039340727031230927,
-0.44624271988868713,
-0.15336889028549194,
-0.10582849383354187,
-0.2536843717098236,
0.23975615203380585,
0.2356261909008026,
-0.1876693218946457,
0.3894168436527252,
-0.37824636697769165,
-0.4112764596939087,
-0.2539045512676239,
0.0796007588505745,
0.15027078986167908,
-0.12256868928670883,
-0.2733919620513916,
0.2718200087547302,
-0.053409039974212646,
0.257977157831192,
-0.12416009604930878,
-0.20640666782855988,
0.2385282665491104,
0.2558237910270691,
-0.13349796831607819,
0.07678886502981186,
0.06507640331983566,
0.17736458778381348,
0.07278351485729218,
0.020290818065404892,
-0.15726692974567413,
-0.06840198487043381,
0.0870651975274086,
0.2111348807811737,
0.2821739614009857,
0.03349095210433006,
-0.2121042162179947,
0.20134088397026062,
0.45502907037734985,
0.06910130381584167,
0.26229289174079895,
-0.010267052799463272,
-0.10291773080825806,
-0.21077929437160492,
-0.2703859210014343,
0.03079100325703621,
0.321187287569046,
-0.2815462350845337,
-0.30934929847717285,
0.06590159237384796,
0.03904816880822182,
-0.010402374900877476,
-0.17996439337730408,
0.2581598162651062,
-0.2859196662902832,
-0.0678928792476654,
-0.2721951901912689,
0.2000262290239334,
0.021411314606666565,
0.275388240814209,
-0.11196906864643097,
-0.0004647050518542528,
0.006016827188432217,
-0.0009938401635736227,
0.03407656401395798,
-0.43727463483810425,
0.3914864659309387,
0.09343975782394409,
0.04807799309492111,
-0.09877469390630722,
0.11283494532108307,
-0.06410595029592514,
-0.04306642338633537,
0.6849481463432312,
0.1744440644979477,
0.17528919875621796,
0.2168377935886383,
-0.18099044263362885,
-0.19272586703300476,
-0.09094906598329544,
-0.38173428177833557,
-0.5966465473175049,
0.1252204030752182,
0.09144695103168488,
-0.21696516871452332,
0.08713676780462265,
-0.29842761158943176,
-0.22513708472251892,
0.13219483196735382,
-0.1171603798866272,
0.02868358977138996,
-0.09015660732984543,
0.1095232293009758,
-0.26761236786842346,
0.19173753261566162,
0.3740241527557373,
-0.31533125042915344,
0.04944828897714615,
-0.07342619448900223,
-0.21355049312114716,
0.17627441883087158,
0.3705993890762329,
-0.3056228458881378,
0.059184521436691284,
-0.37744686007499695,
-0.13621315360069275,
0.23829442262649536,
-0.5621119737625122,
-0.42150411009788513,
0.5992705821990967,
-0.5369257926940918,
0.12850113213062286,
0.3748980462551117,
-0.09433954954147339,
0.05011650547385216,
-0.1642114520072937,
-0.0010971574811264873,
0.2005171775817871,
-0.17671088874340057,
-0.08590815216302872,
-0.06470010429620743,
-0.23050637543201447,
0.14962248504161835,
0.05122445151209831,
0.14705421030521393,
0.2475225329399109,
0.40158069133758545,
-0.34375283122062683,
0.22497859597206116,
0.07983888685703278,
0.05933744087815285,
0.30313265323638916,
0.11270320415496826,
0.18748678267002106,
0.057647597044706345,
-0.06780929118394852,
-0.01806107722222805,
0.14332237839698792,
0.09691677242517471,
0.13317349553108215,
-0.4544302225112915,
-0.2827014625072479,
-0.3851601779460907,
0.059707459062337875,
-0.25575342774391174,
-0.19764631986618042,
-0.07292233407497406,
0.16202442348003387,
0.19894234836101532,
0.06297049671411514,
-0.13943885266780853,
0.2614646852016449,
-0.2417071908712387,
0.13466483354568481,
-0.3927440345287323,
-0.005287523847073317,
-0.31662341952323914,
0.25211775302886963,
0.0628737211227417,
0.22508060932159424,
0.10262510180473328,
-0.3936481177806854,
0.03887833282351494,
0.34714847803115845,
-0.16367493569850922,
0.2459465116262436,
0.4471336007118225,
-0.07682958245277405,
0.14811943471431732,
-0.25355324149131775,
-0.0019224012503400445,
0.020737983286380768,
0.16529276967048645,
0.09957905113697052,
0.2445020079612732,
0.41896888613700867,
-0.13817743957042694,
0.35343387722969055,
0.24306368827819824,
0.10181529074907303,
0.49705392122268677,
0.18469050526618958,
-0.16382791101932526,
-0.05491049960255623,
0.16274653375148773,
0.25694870948791504,
0.244024395942688,
0.051058124750852585,
-0.3063216209411621,
0.03586060553789139,
0.37140998244285583,
-0.20613762736320496,
-0.10453645139932632,
0.21989800035953522,
-0.0375455766916275,
-0.15411190688610077,
0.2689560651779175,
0.3254329264163971,
0.2397070676088333,
0.12873490154743195,
0.0073774526827037334,
0.008486567065119743,
0.024521807208657265,
-0.27580276131629944,
0.21783536672592163,
0.022524701431393623,
-0.08486031740903854,
-0.09973137080669403,
-0.1577928513288498,
0.023904340341687202,
-0.2462339848279953,
-0.2599894404411316,
-0.08188628405332565,
0.10035258531570435,
-0.29512861371040344,
0.09568333625793457,
-0.1791389435529709,
-0.21060670912265778,
0.030550912022590637,
-0.1278253048658371,
-0.07087834179401398,
-0.024465935304760933,
-0.2541632056236267,
-0.07687746733427048,
0.00349740544334054,
0.05434047803282738,
-0.11770849674940109,
0.08089113235473633,
-0.0000809298871899955,
-0.25723037123680115,
0.014919563196599483,
-0.18221914768218994,
-0.11670367419719696,
0.08023428171873093,
0.07353416085243225,
-0.24600449204444885,
0.38606956601142883,
-0.316051721572876,
-0.13747768104076385,
-0.26470136642456055,
-0.2660466432571411,
-0.0025329883210361004,
-0.2927843928337097,
0.19168591499328613,
0.19712035357952118,
0.5703706741333008,
-0.0727638229727745,
0.11120035499334335,
0.10098813474178314,
0.158701553940773,
-0.09271999448537827,
0.094724141061306,
-0.17937813699245453,
-0.30524855852127075,
-0.029363323003053665,
-0.4112699329853058,
-0.6069234013557434,
-0.24141661822795868,
0.5490337014198303,
0.059455014765262604,
0.1699182391166687,
0.12893743813037872,
0.12875065207481384,
0.200108602643013,
-0.09497673809528351,
0.18969151377677917,
-0.10985010117292404,
-0.7366926670074463,
0.18654011189937592,
-0.218722864985466,
-0.42083850502967834,
0.0948561355471611,
0.17421212792396545,
0.1524999886751175,
0.114545077085495,
-0.4824328124523163,
-0.043541714549064636,
-0.2732466757297516,
0.5928390622138977,
0.2286839634180069,
0.2681691646575928,
0.2591041922569275,
-0.10834082216024399,
-0.019077815115451813,
0.05818110331892967,
-0.10925385355949402,
-0.12053995579481125,
-0.03300442919135094,
0.079957515001297,
0.23737876117229462,
0.6281405091285706,
0.0022581713274121284,
0.8966242671012878,
0.14333924651145935,
0.28094959259033203,
0.3366568386554718,
-0.16724686324596405,
0.6787812113761902,
-0.11222647875547409,
-0.36959806084632874,
0.18284834921360016,
-0.18430057168006897,
-0.03417467325925827,
-0.034952785819768906,
0.011392842046916485,
0.1826462298631668,
-0.3542367219924927,
-0.21724386513233185,
-0.4547278583049774,
-0.013186718337237835,
-0.2512988746166229,
-0.043946877121925354,
0.3033424913883209,
0.3213040232658386,
-0.2542966306209564,
-0.04454612359404564,
-0.0465724878013134,
-0.1392975151538849,
0.5175520777702332,
0.30437058210372925,
0.1067071259021759,
-0.1937413513660431,
-0.41475728154182434,
-0.4655102789402008,
0.18503901362419128,
0.16523905098438263,
0.3033648133277893,
-0.20392294228076935,
0.1496019959449768,
0.14518336951732635,
-0.026494057849049568,
0.4634084403514862,
-0.0855550467967987,
0.2608705461025238,
-0.25030073523521423,
-0.21432147920131683,
-0.2421768456697464,
0.08599100261926651,
0.13580645620822906,
0.39316192269325256,
0.40216895937919617,
0.3111834228038788,
-0.25175657868385315,
-0.06343140453100204,
0.2403291016817093,
0.4169411361217499,
0.03608310967683792,
0.03229476884007454,
-0.43898874521255493,
-0.46714216470718384,
-0.3043811321258545,
0.04434764385223389,
0.07504821568727493,
-0.03274161368608475,
-0.07963651418685913,
-0.3801334500312805,
0.13979075849056244,
0.04957548901438713,
-0.08493147045373917,
0.010867519304156303,
-0.1756715327501297,
-0.16398274898529053,
-0.08814212679862976,
0.02929188683629036,
-0.011990290135145187,
0.2336808741092682,
0.8473036885261536,
-0.054331302642822266,
-0.44163602590560913,
0.10694067180156708,
-0.08734153211116791,
0.24262437224388123,
0.4287486672401428,
-0.3434514105319977,
0.22481423616409302,
0.2938655614852905,
0.19414016604423523,
0.027872169390320778,
-0.08899898082017899,
0.2278604805469513,
0.25609537959098816,
-0.2686397135257721,
-0.5812898874282837,
0.23685169219970703,
-0.1923528015613556,
-0.07980649173259735,
0.16165362298488617,
0.3225771486759186,
-0.023152606561779976,
0.08875687420368195,
-0.3266095519065857,
0.975581169128418,
-0.061897680163383484,
0.15997077524662018,
0.27369225025177,
-0.20490477979183197,
0.6905872225761414,
-0.0752926915884018,
-0.026011411100625992,
-0.03123316541314125,
0.0121632544323802,
-0.21386682987213135,
-0.1836463063955307,
0.30758363008499146,
-0.1075577661395073,
0.13087500631809235,
0.541242778301239,
0.10515669733285904,
0.2793814241886139,
0.28185874223709106,
0.43451017141342163,
-0.1370307207107544,
0.15180784463882446,
-0.25238731503486633,
0.011293558403849602,
0.08900458365678787,
0.34920910000801086,
-0.09679821133613586,
-0.18124286830425262,
-0.21695774793624878,
-0.46354952454566956,
-0.3159097731113434,
0.07709482312202454,
-0.1700166016817093,
0.2835499346256256,
-0.2618566155433655,
-0.3819085359573364,
0.03947671130299568,
0.2156234234571457,
0.36616721749305725,
0.1271667778491974,
-0.34837231040000916,
0.1041693463921547,
-0.032581523060798645,
-0.22535590827465057,
0.11939908564090729,
0.21962592005729675,
0.058510202914476395,
-0.2676689624786377,
-0.16314566135406494,
0.09123323112726212,
-0.3837054371833801,
-0.47532743215560913,
0.11651699244976044,
0.1606830209493637,
-0.08863431215286255,
0.028558161109685898,
-0.2594713270664215,
-0.3641316294670105,
-0.1353178322315216,
-0.22345592081546783,
0.022192202508449554,
0.033257339149713516,
0.08554131537675858,
-0.1595682054758072,
0.1000853180885315,
-0.4792577028274536,
-0.30833175778388977,
0.29619553685188293,
0.10111115127801895,
0.008664707653224468,
0.30086013674736023,
-0.025483794510364532,
-0.2978416979312897,
-0.0730057954788208,
-0.10705409944057465,
0.112873375415802,
-0.38311782479286194,
-0.05543814226984978,
0.009305818937718868,
0.19030369818210602,
-0.29047250747680664,
0.12139920145273209,
0.34540966153144836,
-0.12917295098304749,
-0.14018750190734863,
-0.7301216721534729,
-0.2574653625488281,
-0.044069137424230576,
-0.08601928502321243,
-0.04678779095411301,
0.26057013869285583,
0.1884113848209381,
0.21910078823566437,
-0.11213843524456024,
-0.19314219057559967,
-0.035206492990255356,
-0.11890680342912674,
0.18934376537799835,
0.39817219972610474,
0.12806788086891174,
0.40426382422447205,
-0.04181016609072685,
0.09633536636829376,
-0.23983238637447357,
-0.2778911888599396,
-0.09380055963993073,
0.12725374102592468,
0.19371964037418365,
-0.01598617248237133,
-0.21133442223072052,
-0.13743627071380615,
-0.18943850696086884,
-0.03029511123895645,
0.13731512427330017,
0.19108742475509644,
0.08851480484008789,
0.07684586942195892,
-0.2128361612558365,
-0.3246438801288605,
0.03265393152832985,
-0.15140210092067719,
0.25067365169525146,
-0.4052928388118744,
0.29313671588897705,
0.04198823124170303,
0.18466633558273315,
-0.0547003336250782,
-0.06284695863723755,
-0.17902983725070953,
-0.17479732632637024,
-0.001028869766741991,
-0.015644513070583344,
0.47251588106155396,
-0.3057199716567993,
0.12173629552125931,
0.12381899356842041,
0.38701391220092773,
0.317607045173645,
-0.07647179812192917,
0.1636553853750229,
0.09201233088970184,
0.05286009609699249,
-0.298203706741333,
0.17631876468658447,
0.019856180995702744,
-0.012496103532612324,
-0.08693745732307434,
0.08370015770196915,
0.3969007730484009,
-0.051139164716005325,
0.24068030714988708,
-0.007404465693980455,
0.7359585165977478,
-0.03519965708255768,
0.0986526757478714,
0.3116621673107147,
0.20281882584095,
0.2901829481124878,
-0.007415400817990303,
0.39181503653526306,
-0.09617894887924194,
0.283830851316452,
-0.2792786955833435,
-0.06495262682437897,
-0.00662823673337698,
0.25201788544654846,
-0.21608568727970123,
-0.49893394112586975,
0.5282222032546997,
0.14050570130348206,
-0.41288986802101135,
-0.22270430624485016,
0.26498574018478394,
0.47166427969932556,
-0.3868046700954437,
0.16174247860908508,
0.002884082728996873,
0.1396620273590088,
0.0008570453501306474,
0.054856959730386734,
0.08676522970199585,
-0.05287514626979828,
0.05365024134516716,
-0.0138528598472476,
0.04971731826663017,
-0.14998795092105865,
0.07322638481855392,
0.08297648280858994,
-0.166010320186615,
-0.4901474416255951,
0.0985206812620163,
-0.06117760017514229,
0.06406043469905853,
-0.10503979027271271,
0.24381740391254425,
0.044135741889476776,
-0.11993454396724701,
-0.05645863339304924,
0.2529464364051819,
0.6069968342781067,
0.2839479446411133,
0.11963702738285065,
0.043891072273254395,
0.11748790740966797,
-0.24319180846214294,
-0.03095499984920025,
0.2385394126176834,
-0.02269536443054676,
0.38103190064430237,
0.228235125541687,
0.1363203525543213,
-0.03332473337650299,
0.2987474501132965,
0.032364070415496826,
-0.00797316338866949,
-0.2900756597518921,
0.25972461700439453,
-0.2596825957298279,
-0.3766295909881592,
-0.117556631565094,
0.16496874392032623,
-0.512031614780426,
0.13949453830718994,
0.29240766167640686,
-0.19793468713760376,
0.015730177983641624,
-0.4259532690048218,
0.03493962436914444,
0.02781856432557106,
0.2674633860588074,
0.7155250906944275,
0.4606139659881592,
-0.3348761200904846,
-0.10985143482685089,
-0.538165271282196,
0.17058897018432617,
-0.22217126190662384,
-0.1982751041650772,
0.05119653791189194,
0.011432996951043606,
-0.10574021935462952,
0.32575565576553345,
-0.046296995133161545,
0.10873614251613617,
0.07592425495386124,
0.05742199346423149,
0.17897066473960876,
-0.02082098461687565,
-0.10787606239318848,
0.1753508299589157,
-0.19968368113040924,
-0.3156132102012634,
0.42496928572654724,
-0.39579010009765625,
-0.047964151948690414,
-0.11121576279401779,
0.2341022938489914,
0.1720629185438156,
-0.3405556082725525,
0.4727349579334259,
0.0987476035952568,
0.492342084646225,
-0.15602311491966248,
-0.11785956472158432,
-0.1519264131784439,
-0.09380488097667694,
-0.16159585118293762,
0.24554449319839478,
-0.016791019588708878,
0.006897742860019207,
-0.18592798709869385,
-0.23192782700061798,
-0.24199700355529785,
0.31041911244392395,
0.01721135713160038,
0.05640780180692673,
0.2882193326950073,
-0.16374340653419495,
-0.09385345131158829,
0.014068234711885452,
0.2250896543264389,
0.013341407291591167,
0.06279905885457993,
-0.03550081327557564,
-0.21819674968719482,
-0.3019968271255493,
0.40214434266090393,
-0.4057484567165375,
-0.03964373469352722,
0.13205702602863312,
0.34935489296913147,
0.17191210389137268,
-0.26416337490081787,
-0.20590843260288239,
0.18025171756744385,
0.37418898940086365,
0.1197129338979721,
-0.3547089993953705,
0.21566161513328552,
-0.25295570492744446,
0.18796636164188385,
-0.044560886919498444,
0.30031585693359375,
-0.17059576511383057,
-0.32273927330970764,
0.005978144705295563,
-0.28934893012046814
] |
https://github.com/huggingface/datasets/issues/1770 | how can I combine 2 dataset with different/same features? | Hi ! Currently we don't have a way to `zip` datasets but we plan to add this soon :)
For now you'll need to use `map` to add the fields from one dataset to the other. See the comment here for more info : https://github.com/huggingface/datasets/issues/853#issuecomment-727872188 | to combine 2 dataset by one-one map like ds = zip(ds1, ds2):
ds1: {'text'}, ds2: {'text'}, combine ds:{'src', 'tgt'}
or different feature:
ds1: {'src'}, ds2: {'tgt'}, combine ds:{'src', 'tgt'} | 45 | how can I combine 2 dataset with different/same features?
to combine 2 dataset by one-one map like ds = zip(ds1, ds2):
ds1: {'text'}, ds2: {'text'}, combine ds:{'src', 'tgt'}
or different feature:
ds1: {'src'}, ds2: {'tgt'}, combine ds:{'src', 'tgt'}
Hi ! Currently we don't have a way to `zip` datasets but we plan to add this soon :)
For now you'll need to use `map` to add the fields from one dataset to the other. See the comment here for more info : https://github.com/huggingface/datasets/issues/853#issuecomment-727872188 | [
-0.36180922389030457,
-0.4964470863342285,
-0.06872214376926422,
0.1217595636844635,
0.06972849369049072,
0.3581109344959259,
-0.0922456830739975,
0.22106260061264038,
-0.03528483211994171,
0.013870269060134888,
-0.3246746063232422,
0.4096490442752838,
0.06939128041267395,
0.7398913502693176,
0.16132883727550507,
-0.24788151681423187,
0.07894905656576157,
0.129456028342247,
-0.4716949462890625,
0.1984136402606964,
0.01288485899567604,
0.004259186331182718,
-0.024683095514774323,
-0.08492666482925415,
-0.09843899309635162,
0.2673225998878479,
-0.23301076889038086,
-0.19929972290992737,
-0.15733471512794495,
0.023566853255033493,
0.3827173113822937,
0.2693842947483063,
-0.05311581492424011,
0.20278096199035645,
-0.00011157680273754522,
0.07223139703273773,
-0.04602290689945221,
-0.12087602913379669,
0.10778282582759857,
-0.42019355297088623,
-0.0392921082675457,
-0.5601705312728882,
-0.10746622830629349,
-0.018125368282198906,
-0.17815633118152618,
-0.28821489214897156,
-0.2893860936164856,
-0.21740832924842834,
0.34184494614601135,
-0.16900376975536346,
0.10799650847911835,
0.10246660560369492,
0.16391907632350922,
-0.06358152627944946,
0.2932223975658417,
0.44405972957611084,
-0.08761952817440033,
-0.06964851170778275,
0.4562332332134247,
0.04928481578826904,
0.5520350933074951,
0.19697076082229614,
-0.019789837300777435,
0.0005699631874449551,
0.2822974920272827,
0.15903271734714508,
-0.22059883177280426,
-0.20029614865779877,
-0.012147746048867702,
0.39406922459602356,
0.43854987621307373,
-0.2857182025909424,
-0.3185836374759674,
-0.189653679728508,
0.14208565652370453,
-0.17152170836925507,
-0.17008301615715027,
0.31759941577911377,
0.021135058254003525,
0.0232088603079319,
-0.46664202213287354,
-0.3988068103790283,
0.07614930719137192,
0.15480947494506836,
-0.08895791321992874,
0.10690542310476303,
-0.08454734086990356,
0.15408983826637268,
-0.05781158059835434,
-0.24932362139225006,
0.11128169298171997,
-0.4102557301521301,
-0.08917345106601715,
0.271637499332428,
-0.2897036075592041,
-0.3540632426738739,
-0.25800594687461853,
-0.20534177124500275,
0.7211523056030273,
0.19219224154949188,
-0.12443956732749939,
-0.13140317797660828,
-0.4426650404930115,
0.20145183801651,
0.26479220390319824,
0.2856195569038391,
0.23403696715831757,
0.01858813315629959,
0.04279075190424919,
-0.22738254070281982,
-0.13119977712631226,
-0.05836188420653343,
0.4423027038574219,
-0.13620135188102722,
-0.18928737938404083,
-0.25441640615463257,
0.4779636263847351,
-0.2223196178674698,
0.14823724329471588,
-0.4064995050430298,
0.05267174914479256,
-0.2132236808538437,
-0.1734149307012558,
-0.05093139410018921,
0.06986222416162491,
-0.008011138066649437,
-0.20465698838233948,
0.28788772225379944,
0.27491146326065063,
-0.2954865097999573,
-0.10598693042993546,
-0.0737900510430336,
0.12062809616327286,
0.1911255270242691,
-0.012508115731179714,
-0.3862588703632355,
0.145071342587471,
0.6239697933197021,
-0.14066727459430695,
0.2539287209510803,
0.3124406337738037,
-0.1426234245300293,
-0.13763156533241272,
-0.19376696646213531,
0.3240770399570465,
0.15430830419063568,
0.09615817666053772,
0.1441504806280136,
-0.21334177255630493,
-0.0007748163188807666,
-0.3544183671474457,
-0.11909203976392746,
0.05112838372588158,
0.172026589512825,
-0.13382606208324432,
-0.11853263527154922,
-0.3662880063056946,
0.6697061061859131,
-0.04504029080271721,
-0.1963851898908615,
-0.16011500358581543,
0.48251765966415405,
-0.3460584580898285,
-0.17293067276477814,
0.12489057332277298,
0.04669417440891266,
-0.23567956686019897,
-0.40603312849998474,
0.11284095048904419,
-0.040867019444704056,
-0.27360081672668457,
0.42583563923835754,
-0.2547855079174042,
0.014846141450107098,
-0.2920529246330261,
0.025439292192459106,
0.44488126039505005,
-0.07069449126720428,
-0.23938369750976562,
0.4166378974914551,
-0.03387012332677841,
-0.026285693049430847,
-0.07960594445466995,
0.1589784026145935,
0.1578693389892578,
0.1973281353712082,
0.05282119661569595,
0.5103901028633118,
-0.24518458545207977,
-0.21011391282081604,
0.01710561104118824,
-0.41568899154663086,
0.4063558876514435,
-0.07693123817443848,
-0.0820082426071167,
0.021560512483119965,
0.02771657705307007,
-0.4218935966491699,
0.14452168345451355,
-0.15991148352622986,
0.2335321456193924,
0.11525711417198181,
0.03429288789629936,
0.05049743130803108,
-0.08905477821826935,
-0.44135352969169617,
-0.48222294449806213,
-0.01645161397755146,
-0.14361214637756348,
-0.19107715785503387,
0.16157761216163635,
-0.42832645773887634,
-0.00805106945335865,
-0.3666364550590515,
-0.06251876801252365,
-0.11863186955451965,
0.03430800512433052,
0.018757348880171776,
0.12525935471057892,
-0.17578084766864777,
-0.2722327709197998,
0.22418588399887085,
0.5275179147720337,
0.04911011457443237,
-0.35304731130599976,
0.5951492786407471,
0.2401288002729416,
0.012692524120211601,
-0.047019824385643005,
0.11354054510593414,
0.08244221657514572,
-0.015471632592380047,
0.10046786069869995,
0.012580212205648422,
-0.536268949508667,
0.33040738105773926,
0.44514200091362,
-0.19008329510688782,
0.2659789025783539,
-0.24250289797782898,
0.13632765412330627,
-0.025201888754963875,
0.016453934833407402,
-0.24923332035541534,
-0.3427092134952545,
0.3071553111076355,
0.036262594163417816,
0.25548553466796875,
0.11608918011188507,
0.08266028761863708,
0.1574559509754181,
-0.1364688128232956,
0.04781722649931908,
0.006343482527881861,
-0.01184019260108471,
0.012124153785407543,
0.3719065487384796,
0.29062333703041077,
-0.18913716077804565,
0.1635456383228302,
0.25408321619033813,
0.0006373769138008356,
0.023400114849209785,
0.0033062424045056105,
-0.371080219745636,
0.04870092496275902,
0.07334582507610321,
-0.04579257592558861,
0.580302894115448,
0.3118934631347656,
-0.013846727088093758,
0.1654967963695526,
0.10072494298219681,
0.16088373959064484,
-0.010884875431656837,
-0.020466722548007965,
-0.08091361820697784,
0.17549246549606323,
0.30737680196762085,
0.12035936862230301,
-0.041877035051584244,
0.21539007127285004,
0.13845108449459076,
-0.19830532371997833,
-0.03390929102897644,
-0.2077617645263672,
-0.2305036038160324,
-0.22065825760364532,
-0.33548715710639954,
-0.10237683355808258,
-0.4055420160293579,
0.005889832507818937,
-0.09672331809997559,
0.18897879123687744,
0.06752561777830124,
0.002347363159060478,
0.2830420136451721,
0.24024629592895508,
-0.17671488225460052,
-0.12945647537708282,
-0.037017401307821274,
0.2873999774456024,
0.20327039062976837,
0.14468082785606384,
0.15421685576438904,
0.10148074477910995,
0.38425561785697937,
-0.027663279324769974,
-0.055593088269233704,
-0.6561790108680725,
-0.39054521918296814,
0.10564067959785461,
-0.1866331547498703,
0.16265101730823517,
-0.013269474729895592,
0.061256442219018936,
0.03171749785542488,
-0.21503739058971405,
0.29022449254989624,
0.3680696487426758,
-0.14537520706653595,
-0.15255826711654663,
-0.07114212960004807,
0.042422302067279816,
-0.15349285304546356,
-0.2626848518848419,
-0.25501489639282227,
-0.1307690143585205,
0.4938805401325226,
-0.21221286058425903,
0.0253911130130291,
-0.33888739347457886,
0.05905861780047417,
-0.14550334215164185,
-0.038139428943395615,
-0.03733500838279724,
-0.2105337530374527,
-0.4417382478713989,
0.36334794759750366,
-0.10190652310848236,
-0.12325122207403183,
-0.06221894919872284,
-0.11851944029331207,
0.01297321543097496,
0.058218441903591156,
-0.08506902307271957,
-0.1113942414522171,
-0.3798117935657501,
0.2991844415664673,
-0.05814475193619728,
0.3092562258243561,
0.2840961515903473,
0.06220683082938194,
0.1154543086886406,
0.028177637606859207,
-0.43751072883605957,
0.023682130500674248,
0.07762572914361954,
0.29535871744155884,
0.08617183566093445,
0.09521591663360596,
-0.1847836673259735,
0.5392614006996155,
0.4855141341686249,
0.20699839293956757,
0.3148103356361389,
-0.020760945975780487,
0.2014726847410202,
-0.11383020877838135,
-0.33594149351119995,
-0.15461724996566772,
0.005229606758803129,
0.2537072002887726,
0.0774526372551918,
0.14307615160942078,
0.11399044841527939,
-0.3639836013317108,
-0.30128997564315796,
-0.019032325595617294,
-0.10521800816059113,
-0.09616497904062271,
0.07649615406990051,
0.023400306701660156,
-0.10477758198976517,
-0.41672685742378235,
-0.22125452756881714,
0.07018882036209106,
0.11137071996927261,
0.30684566497802734,
-0.030122147873044014,
0.07630695402622223,
-0.4565533995628357,
-0.19594232738018036,
-0.21962976455688477,
0.24354347586631775,
0.11353567987680435,
-0.3452654778957367,
0.1435215026140213,
0.08393117785453796,
-0.2891019582748413,
-0.0461752749979496,
0.468813419342041,
0.0044268290512263775,
-0.16575711965560913,
-0.2415522336959839,
-0.3337162435054779,
-0.15962009131908417,
-0.15413980185985565,
0.21018241345882416,
-0.12237994372844696,
-0.04281117022037506,
0.7450359463691711,
-0.41503557562828064,
-0.10631129145622253,
0.21444779634475708,
0.309369295835495,
-0.03402093052864075,
-0.28585708141326904,
0.22487683594226837,
-0.12651969492435455,
-0.20387491583824158,
-0.37363848090171814,
-0.09187690168619156,
-0.09465981274843216,
-0.000578239734750241,
-0.31231316924095154,
-0.22554028034210205,
-0.11069381982088089,
0.41224223375320435,
0.0931333377957344,
0.19797714054584503,
0.0016146482666954398,
0.30679383873939514,
0.10920798778533936,
0.10543747246265411,
-0.11847853660583496,
0.7144666910171509,
0.09237328916788101,
-0.5906254053115845,
-0.3595561981201172,
-0.1414741575717926,
0.44584500789642334,
-0.1541208028793335,
-0.033013831824064255,
0.4973280429840088,
-0.3980500400066376,
-0.0312882736325264,
-0.15360146760940552,
0.04432012885808945,
0.22290101647377014,
0.3378206789493561,
-0.3514522612094879,
-0.20781132578849792,
0.6163511872291565,
0.4150250256061554,
-0.08536373823881149,
0.27412837743759155,
-0.15440234541893005,
-0.08531244099140167,
-0.06103400141000748,
-0.44215258955955505,
0.7151220440864563,
0.0019199108937755227,
0.22351600229740143,
-0.16181568801403046,
0.051700491458177567,
0.42235592007637024,
-0.014194373972713947,
-0.14071400463581085,
0.044534832239151,
-0.49243685603141785,
-0.13454434275627136,
-0.03608325868844986,
-0.012756156735122204,
0.27316880226135254,
-0.3648450970649719,
0.3875425159931183,
0.02794758230447769,
0.3813573122024536,
-0.18128199875354767,
0.1914043128490448,
0.03567900136113167,
0.0019292307551950216,
-0.29230552911758423,
0.07740303874015808,
-0.3082005977630615,
0.20188045501708984,
0.031856950372457504,
-0.18157707154750824,
-0.03937716409564018,
-0.21105614304542542,
-0.17164760828018188,
0.11502081900835037,
0.021512946113944054,
0.1849934458732605,
0.21588872373104095,
-0.13073429465293884,
0.0861610472202301,
0.1218128502368927,
0.1773824244737625,
0.14797566831111908,
-0.1574469655752182,
-0.18549992144107819,
-0.05233782157301903,
0.10658776760101318,
-0.3663007915019989,
-0.11259141564369202,
-0.04789847880601883,
0.018520263954997063,
-0.10673122107982635,
0.23904827237129211,
0.2548414468765259,
0.004304302856326103,
-0.14859488606452942,
-0.020375363528728485,
-0.0757182314991951,
-0.37217196822166443,
-0.30676671862602234,
0.41046687960624695,
0.27653196454048157,
-0.17222324013710022,
0.014911405742168427,
0.12024568766355515,
-0.15590375661849976,
0.1447325050830841,
0.058546096086502075,
-0.11853048205375671,
-0.10873640328645706,
0.0966591015458107,
0.21150782704353333,
0.00777521962299943,
0.18476729094982147,
-0.06562620401382446,
0.23680493235588074,
0.032438624650239944,
0.10787031054496765,
0.18530330061912537,
-0.08266086131334305,
0.09414719045162201,
-0.05285746231675148,
0.08648764342069626,
-0.04873222857713699,
0.20200927555561066,
0.18602320551872253,
0.3130827844142914,
0.24211013317108154,
-0.16591767966747284,
-0.3828408122062683,
0.19426998496055603,
0.1468086987733841,
0.2859949767589569,
0.052492257207632065,
0.2371540665626526,
-0.07722961157560349,
0.5865803360939026,
-0.24350960552692413,
0.12179666012525558,
0.29389336705207825,
0.16963838040828705,
0.4679046869277954,
0.09200318157672882,
-0.1409839540719986,
-0.05143185704946518,
0.07163999229669571,
-0.11168760061264038,
-0.023784499615430832,
-0.20983454585075378,
-0.1993464082479477,
0.08402444422245026,
0.13052168488502502,
-0.03602202981710434,
-0.004290518816560507,
-0.048514269292354584,
0.33714964985847473,
-0.18928515911102295,
0.4083264172077179,
0.03165282681584358,
0.051971953362226486,
0.044110123068094254,
0.1356365829706192,
-0.1600205898284912,
-0.4557376801967621,
0.3019763231277466,
0.08251993358135223,
-0.08558980375528336,
0.034058310091495514,
-0.04273109510540962,
-0.11791326105594635,
-0.1373351663351059,
-0.22328196465969086,
-0.19552607834339142,
0.42753127217292786,
-0.06266961246728897,
0.004800246562808752,
0.203733429312706,
-0.04069016873836517,
0.15619073808193207,
0.16113732755184174,
-0.007435958366841078,
-0.1330079287290573,
0.43123677372932434,
0.019197136163711548,
0.1314159333705902,
-0.2810479700565338,
-0.1722835749387741,
0.21215233206748962,
0.00018412884674035013,
0.11629368364810944,
0.044554147869348526,
-0.016912031918764114,
0.3816169500350952,
-0.11874541640281677,
-0.024992361664772034,
0.06805382668972015,
0.2002500593662262,
0.18515236675739288,
0.4368993639945984,
0.11967194825410843,
-0.07754624634981155,
0.08550245314836502,
0.34470134973526,
0.15283507108688354,
-0.06284349411725998,
-0.22311446070671082,
0.09509241580963135,
-0.035556189715862274,
0.009562911465764046,
0.6225677728652954,
-0.18610110878944397,
0.006754342466592789,
0.16684752702713013,
0.02660549245774746,
-0.015904705971479416,
0.17131683230400085,
0.376145601272583,
0.021211713552474976,
-0.43073800206184387,
0.10321296006441116,
0.5190810561180115,
0.14202743768692017,
-0.21558520197868347,
0.12408597767353058,
-0.2345856875181198,
-0.1258779615163803,
0.14488384127616882,
0.11144889891147614,
-0.5025012493133545,
0.7270305156707764,
-0.08557789027690887,
0.058672260493040085,
0.020525041967630386,
0.3626762628555298,
0.34232038259506226,
0.06831471621990204,
0.03190028294920921,
0.12349272519350052,
0.2584226131439209,
-0.35916668176651,
-0.012800090946257114,
0.42880532145500183,
0.13115981221199036,
0.0650770366191864,
0.11561042070388794,
0.36479708552360535,
-0.03929740563035011,
-0.1133827343583107,
0.15241675078868866,
-0.1405668705701828,
-0.14834454655647278,
-0.2890031635761261,
0.1610240936279297,
0.16701056063175201,
-0.07028163224458694,
0.05207693204283714,
-0.5179768204689026,
0.13584257662296295,
-0.6229060888290405,
0.22714102268218994,
0.0051214564591646194,
-0.2663628160953522,
-0.12378407269716263,
-0.12382729351520538,
-0.2615605294704437,
-0.4799645245075226,
0.5373874306678772,
0.1291900873184204,
-0.031379248946905136,
-0.0803101658821106,
0.09652037918567657,
-0.0629199966788292,
0.07929271459579468,
0.3690907955169678,
-0.07242371141910553,
-0.24623769521713257,
-0.1202215626835823,
-0.4041546881198883,
-0.020199395716190338,
0.059325478971004486,
-0.0565926618874073,
-0.26894691586494446,
0.07491829991340637,
0.10753529518842697,
0.09452027827501297,
0.1419162005186081,
0.059348542243242264,
0.36132529377937317,
0.019393419846892357,
-0.30749836564064026,
-0.18176138401031494,
0.08813147991895676,
0.07710607349872589,
0.2435370683670044,
-0.147233784198761,
0.3143063187599182,
0.15377084910869598,
-0.05586516484618187,
-0.1373121738433838,
0.24518033862113953,
0.06640992313623428,
-0.3503928482532501,
0.16851970553398132,
0.1277628093957901,
0.37542030215263367,
-0.3541482388973236,
0.13192777335643768,
0.44462519884109497,
0.03218045458197594,
-0.32054418325424194,
0.2490742802619934,
0.15029697120189667,
0.08395076543092728,
-0.4384070038795471,
0.1390393227338791,
0.13228073716163635,
-0.07076040655374527,
-0.04639867693185806,
-0.4495656192302704,
-0.23353612422943115,
0.1850864440202713,
0.024340402334928513,
-0.059652987867593765,
0.16904279589653015,
0.5240692496299744,
-0.07948876172304153,
-0.02815837413072586,
0.14598828554153442,
-0.1959228664636612,
0.43568047881126404,
0.06277243793010712,
-0.18139509856700897,
-0.1825108826160431,
-0.2807188630104065,
0.20144782960414886,
-0.14357231557369232,
-0.4898811876773834,
-0.16365040838718414,
0.29296576976776123,
-0.004986353684216738,
0.30407220125198364,
0.3011700510978699,
0.02748611941933632,
-0.11438234150409698,
-0.20042286813259125,
0.35415759682655334,
0.21502646803855896,
-0.23493598401546478,
0.04300796985626221,
-0.20748910307884216
] |
https://github.com/huggingface/datasets/issues/1770 | how can I combine 2 dataset with different/same features? | Good to hear.
Currently I did not use map , just fetch src and tgt from the 2 dataset and merge them.
It will be a release if you can deal with it at the backend.
Thanks. | to combine 2 dataset by one-one map like ds = zip(ds1, ds2):
ds1: {'text'}, ds2: {'text'}, combine ds:{'src', 'tgt'}
or different feature:
ds1: {'src'}, ds2: {'tgt'}, combine ds:{'src', 'tgt'} | 37 | how can I combine 2 dataset with different/same features?
to combine 2 dataset by one-one map like ds = zip(ds1, ds2):
ds1: {'text'}, ds2: {'text'}, combine ds:{'src', 'tgt'}
or different feature:
ds1: {'src'}, ds2: {'tgt'}, combine ds:{'src', 'tgt'}
Good to hear.
Currently I did not use map , just fetch src and tgt from the 2 dataset and merge them.
It will be a release if you can deal with it at the backend.
Thanks. | [
-0.3885655701160431,
-0.4940946400165558,
-0.1406935304403305,
0.018540415912866592,
-0.022465458139777184,
0.2798508107662201,
-0.17467936873435974,
0.32268843054771423,
-0.05108827352523804,
0.008893117308616638,
-0.19251947104930878,
0.6096795797348022,
0.0999668687582016,
0.5465123057365417,
0.06980179995298386,
-0.1127220019698143,
0.07456519454717636,
0.16883493959903717,
-0.4552713930606842,
0.17784932255744934,
0.062045011669397354,
-0.0594894103705883,
-0.033458411693573,
-0.09827452898025513,
-0.07985348999500275,
0.28181248903274536,
-0.1274133324623108,
-0.2967355251312256,
-0.2358780801296234,
0.014508112333714962,
0.27743256092071533,
0.23459987342357635,
-0.1273663192987442,
0.25235530734062195,
-0.0001082496892195195,
0.11773327738046646,
0.05137736722826958,
-0.15310610830783844,
0.2523331940174103,
-0.4381469488143921,
-0.1970333307981491,
-0.47972026467323303,
-0.16011370718479156,
-0.12727925181388855,
-0.10807523131370544,
-0.1871519535779953,
-0.2989042103290558,
-0.3243279755115509,
0.2503187656402588,
-0.12710386514663696,
0.13258513808250427,
-0.08802022784948349,
0.12239237874746323,
-0.013714361004531384,
0.2999749481678009,
0.36377134919166565,
-0.06021588668227196,
-0.10290326923131943,
0.5676073431968689,
0.00927598588168621,
0.44514188170433044,
0.21750469505786896,
-0.12305089831352234,
-0.0073246113024652,
0.31241679191589355,
0.04862227663397789,
-0.038041695952415466,
-0.26310649514198303,
0.07100074738264084,
0.2478632777929306,
0.5259116888046265,
-0.15864191949367523,
-0.09918239712715149,
0.06219245493412018,
0.03165089339017868,
-0.00596842635422945,
-0.16533654928207397,
0.27865487337112427,
0.04105762764811516,
0.04462437331676483,
-0.5148203372955322,
-0.4429483711719513,
0.09489541500806808,
0.16568520665168762,
-0.07675668597221375,
0.23197098076343536,
0.032226525247097015,
0.18492229282855988,
-0.21627715229988098,
-0.2405795156955719,
0.2670077383518219,
-0.4301857054233551,
-0.05719493702054024,
0.33269602060317993,
-0.2123255431652069,
-0.3501248061656952,
-0.25114893913269043,
-0.44392386078834534,
0.6490113139152527,
-0.02009887620806694,
0.09902285784482956,
-0.03403974324464798,
-0.3805947005748749,
0.28048276901245117,
0.23750142753124237,
0.291718989610672,
0.3173273205757141,
0.18986287713050842,
-0.00871095061302185,
-0.4177412986755371,
-0.3030487298965454,
0.03295842558145523,
0.4209112524986267,
-0.23820698261260986,
-0.1569516956806183,
-0.171744242310524,
0.4447455108165741,
-0.3677549362182617,
0.2103082686662674,
-0.5202789306640625,
-0.08816386759281158,
-0.14208082854747772,
-0.22620542347431183,
-0.09582192450761795,
0.17505361139774323,
0.048923030495643616,
-0.240505188703537,
0.16767089068889618,
0.33400824666023254,
-0.29386767745018005,
-0.03701785206794739,
-0.04225154221057892,
0.16030247509479523,
0.04718255251646042,
-0.0015430827625095844,
-0.1771237850189209,
0.09493760764598846,
0.5621642470359802,
-0.3058841824531555,
0.18299166858196259,
0.31475603580474854,
-0.10400060564279556,
-0.01952342502772808,
-0.2901401221752167,
0.3635194003582001,
0.08827032893896103,
0.03455254063010216,
0.27110767364501953,
-0.20682477951049805,
0.12997043132781982,
-0.43725067377090454,
-0.14487424492835999,
0.1334385871887207,
0.2379768192768097,
0.019179509952664375,
-0.06719258427619934,
-0.20394307374954224,
0.5709997415542603,
0.046818483620882034,
-0.2714451551437378,
-0.17052710056304932,
0.5460535883903503,
-0.2374550998210907,
-0.24886628985404968,
-0.0948713943362236,
-0.034384019672870636,
-0.3212697505950928,
-0.3335897624492645,
0.06428532302379608,
-0.027407633140683174,
-0.228708878159523,
0.3375685513019562,
-0.362452894449234,
0.057128824293613434,
-0.13923963904380798,
0.04103928431868553,
0.5528926253318787,
-0.0943097397685051,
-0.39144012331962585,
0.511829137802124,
-0.007197950035333633,
-0.14657963812351227,
-0.11569889634847641,
0.26437634229660034,
0.20044755935668945,
0.17186149954795837,
0.1076655313372612,
0.5094721913337708,
-0.27476727962493896,
-0.0966092050075531,
-0.018908096477389336,
-0.41815367341041565,
0.4239632785320282,
-0.134889155626297,
-0.0575222373008728,
-0.04741543158888817,
0.154373899102211,
-0.48668810725212097,
0.15419648587703705,
-0.10801970213651657,
0.26453232765197754,
0.1089467778801918,
0.01761428639292717,
-0.17334148287773132,
-0.07625553011894226,
-0.3590359091758728,
-0.398461252450943,
-0.10789460688829422,
-0.3227749168872833,
-0.18230463564395905,
0.08472668379545212,
-0.3686958849430084,
-0.011087335646152496,
-0.4826444983482361,
-0.04005734249949455,
0.00887278001755476,
0.09025617688894272,
-0.026337293907999992,
0.005044024903327227,
-0.2365914136171341,
-0.15609225630760193,
0.13329307734966278,
0.564734697341919,
-0.04983104392886162,
-0.2055796980857849,
0.5626948475837708,
0.21064579486846924,
0.0336608961224556,
0.02257337048649788,
-0.047238968312740326,
0.13554340600967407,
-0.02246721275150776,
-0.049244679510593414,
0.05923089757561684,
-0.45450782775878906,
0.30143973231315613,
0.3840031325817108,
-0.20357804000377655,
0.2649065852165222,
-0.30293211340904236,
0.14293842017650604,
0.06987858563661575,
0.06611095368862152,
-0.27874162793159485,
-0.29386797547340393,
0.23005393147468567,
0.11717219650745392,
0.20257079601287842,
0.08605585247278214,
0.08408991992473602,
0.11745893955230713,
-0.1769442856311798,
0.06895396113395691,
-0.04743209853768349,
-0.11712928116321564,
-0.030280211940407753,
0.23709659278392792,
0.40999913215637207,
0.025522707030177116,
0.2372206151485443,
0.2471354901790619,
0.03812592849135399,
0.1396588534116745,
-0.07458328455686569,
-0.3314553499221802,
-0.034624963998794556,
-0.01875228062272072,
-0.06867556273937225,
0.5103155374526978,
0.25409403443336487,
-0.1636127382516861,
0.11039000004529953,
0.24925591051578522,
0.2375883013010025,
-0.014033649116754532,
-0.10935327410697937,
0.09522317349910736,
0.13630376756191254,
0.37594643235206604,
0.16348837316036224,
0.10283573716878891,
0.11592134088277817,
0.28558090329170227,
-0.1664952039718628,
0.11353372782468796,
-0.35731369256973267,
-0.22308406233787537,
-0.12970750033855438,
-0.2990345060825348,
-0.019895974546670914,
-0.285692423582077,
-0.017876293510198593,
-0.04232579469680786,
0.07605739682912827,
0.08207996934652328,
0.053287554532289505,
0.30128324031829834,
0.09082719683647156,
-0.12701112031936646,
-0.18230335414409637,
0.045442916452884674,
0.12710155546665192,
0.18812930583953857,
0.18795546889305115,
0.1435554325580597,
0.1582486480474472,
0.3156917989253998,
0.04458044096827507,
-0.018411394208669662,
-0.4888225793838501,
-0.3923448622226715,
0.12438160181045532,
-0.000013576952369476203,
-0.021434081718325615,
-0.051434777677059174,
-0.06979522854089737,
0.040311299264431,
-0.16143852472305298,
0.11528860032558441,
0.26960745453834534,
-0.16471809148788452,
-0.23731577396392822,
-0.15650703012943268,
-0.011466668918728828,
-0.11034058034420013,
-0.3104777932167053,
-0.24592065811157227,
-0.20527777075767517,
0.18221443891525269,
-0.21876370906829834,
0.08298394083976746,
-0.5726176500320435,
0.08957965672016144,
-0.2523791790008545,
0.04196232929825783,
-0.07522202283143997,
-0.1315329521894455,
-0.3683955669403076,
0.3846784830093384,
-0.1310068517923355,
-0.1836594045162201,
-0.06396380811929703,
-0.07959263026714325,
0.13818983733654022,
0.13391508162021637,
-0.023351138457655907,
0.015227871015667915,
-0.2839081585407257,
0.23967650532722473,
-0.10257377475500107,
0.12693451344966888,
0.24588961899280548,
0.22177495062351227,
0.053256597369909286,
0.019534464925527573,
-0.3257354199886322,
-0.010170787572860718,
0.12430470436811447,
0.2586682438850403,
0.16491413116455078,
-0.0023150057531893253,
-0.12664149701595306,
0.4759715795516968,
0.41021063923835754,
0.08644254505634308,
0.24614302814006805,
0.06902695447206497,
-0.03104623407125473,
-0.0720847025513649,
-0.26507997512817383,
-0.19328013062477112,
-0.02706192620098591,
0.2228744775056839,
0.007795216981321573,
-0.020022237673401833,
-0.2028653770685196,
-0.4187776744365692,
-0.3887883424758911,
-0.10321786254644394,
-0.09018304944038391,
-0.024835824966430664,
0.022597678005695343,
0.11729300022125244,
-0.08445508778095245,
-0.42406609654426575,
-0.26812079548835754,
0.06432895362377167,
0.178719162940979,
0.11857973784208298,
-0.016863305121660233,
0.037145670503377914,
-0.4187370836734772,
-0.16159719228744507,
-0.037583932280540466,
0.2943127751350403,
0.20559263229370117,
-0.34507668018341064,
0.18807636201381683,
0.09888153523206711,
-0.3641398549079895,
-0.07528794556856155,
0.3639460504055023,
-0.006733894348144531,
-0.027220815420150757,
-0.293464720249176,
-0.1550568789243698,
-0.01819366216659546,
-0.11624515801668167,
0.25898870825767517,
0.012160648591816425,
-0.04189123958349228,
0.6412333250045776,
-0.3157116770744324,
-0.039496902376413345,
0.13684047758579254,
0.1856139898300171,
-0.08506275713443756,
-0.24687695503234863,
0.27098292112350464,
-0.07775872945785522,
-0.2421099692583084,
-0.465728223323822,
-0.06929396092891693,
-0.1497350037097931,
0.061492662876844406,
-0.4079433083534241,
-0.21143120527267456,
-0.04600779339671135,
0.33544448018074036,
0.12442326545715332,
0.17652583122253418,
-0.1636611968278885,
0.1690296083688736,
-0.04566001147031784,
0.10655558854341507,
-0.1433042585849762,
0.6272715926170349,
0.2670290768146515,
-0.462083637714386,
-0.24230530858039856,
-0.25832223892211914,
0.45117825269699097,
-0.12596085667610168,
0.05802053213119507,
0.42772176861763,
-0.4641079902648926,
-0.15434269607067108,
0.05129721388220787,
-0.09327004849910736,
0.09504421055316925,
0.2546088993549347,
-0.4261365532875061,
-0.15742705762386322,
0.5728214383125305,
0.34937554597854614,
-0.15676765143871307,
0.3115529716014862,
-0.4469201862812042,
-0.08284909278154373,
0.14408527314662933,
-0.3016001284122467,
0.8176684975624084,
0.03916781395673752,
0.06796599924564362,
-0.3305319845676422,
0.10541524738073349,
0.18367518484592438,
-0.10539796203374863,
-0.04400595277547836,
0.05273822695016861,
-0.3161380887031555,
-0.1374402940273285,
0.026580218225717545,
-0.05568651854991913,
0.4730742871761322,
-0.44073715806007385,
0.34858131408691406,
0.04691705107688904,
0.39591196179389954,
-0.1265678107738495,
0.23346927762031555,
0.19052942097187042,
0.12814365327358246,
-0.15017634630203247,
0.08955744653940201,
-0.3499031066894531,
0.09662610292434692,
0.0604889877140522,
-0.302016019821167,
-0.09896262735128403,
-0.12326470017433167,
-0.08569665998220444,
0.12039170414209366,
0.04271554574370384,
0.36161619424819946,
0.029958629980683327,
-0.06614366918802261,
0.04789405316114426,
0.098160021007061,
-0.10541609674692154,
0.1261378675699234,
-0.0819060206413269,
-0.15356534719467163,
0.19321966171264648,
0.13972631096839905,
-0.24613331258296967,
-0.051955096423625946,
-0.07115565240383148,
-0.08343533426523209,
-0.19910749793052673,
0.3462423086166382,
0.13200019299983978,
-0.08131985366344452,
-0.15922394394874573,
-0.05245848372578621,
0.0770973265171051,
-0.29198911786079407,
-0.29797840118408203,
0.5363790988922119,
0.08958860486745834,
-0.07240293174982071,
0.05676344409584999,
0.04461532458662987,
-0.10539308935403824,
0.23490312695503235,
0.09379613399505615,
-0.20180849730968475,
-0.05449402332305908,
0.11763738095760345,
0.45313164591789246,
0.046837229281663895,
0.08286591619253159,
-0.1654902696609497,
0.26971420645713806,
-0.022248096764087677,
0.10739234834909439,
0.05328933522105217,
-0.05764862895011902,
0.05454303324222565,
-0.2332499921321869,
0.06948179751634598,
0.0910302922129631,
0.12022774666547775,
0.16066890954971313,
0.5604797601699829,
0.13232700526714325,
-0.11575916409492493,
-0.34535983204841614,
0.12372800707817078,
0.2395765632390976,
0.24707138538360596,
-0.03657465800642967,
0.19851884245872498,
-0.0793556198477745,
0.6873174905776978,
-0.2969149351119995,
0.13182953000068665,
0.397513747215271,
0.34264251589775085,
0.31987547874450684,
0.17962510883808136,
-0.37512511014938354,
-0.07419515401124954,
0.12799686193466187,
-0.06545951217412949,
-0.02951776795089245,
-0.24207369983196259,
-0.06778387725353241,
0.08260205388069153,
0.09089542180299759,
0.05789567530155182,
-0.11341319233179092,
-0.22659458220005035,
0.2689421772956848,
-0.08601891994476318,
0.3376496136188507,
0.01078700553625822,
0.0591253787279129,
0.04666895046830177,
0.14435361325740814,
-0.2734317481517792,
-0.4316166043281555,
0.349726140499115,
-0.020721595734357834,
-0.08650097995996475,
-0.03906212002038956,
-0.010906349867582321,
-0.028040746226906776,
-0.1253494769334793,
-0.16890868544578552,
-0.28587934374809265,
0.37225034832954407,
0.07131365686655045,
0.0568392388522625,
0.16907361149787903,
0.01967601105570793,
0.18266338109970093,
-0.06164794787764549,
-0.0913354754447937,
-0.23691889643669128,
0.3942171335220337,
-0.1218971535563469,
0.20069992542266846,
-0.2924504280090332,
-0.2348066121339798,
0.2931777238845825,
-0.025980006903409958,
0.14501464366912842,
-0.06361349672079086,
0.010319572873413563,
0.36020365357398987,
-0.08894601464271545,
0.06619381159543991,
0.13044080138206482,
0.09126245975494385,
0.1841404139995575,
0.46650052070617676,
0.1780334711074829,
-0.05508711189031601,
0.013653112575411797,
0.2035762220621109,
0.18642549216747284,
-0.004827054217457771,
-0.17009437084197998,
0.16117063164710999,
0.1710532307624817,
-0.05100071430206299,
0.7275781035423279,
-0.01168770156800747,
-0.005789414048194885,
0.24974456429481506,
-0.09122799336910248,
0.0694127082824707,
0.4447437524795532,
0.13906162977218628,
0.09929897636175156,
-0.4390281140804291,
0.13377892971038818,
0.4352565407752991,
0.13938143849372864,
-0.06998196989297867,
-0.04233358055353165,
-0.2399267703294754,
-0.1427195519208908,
0.1366894394159317,
0.06974783539772034,
-0.28331390023231506,
0.8152465224266052,
0.04318547993898392,
0.10117495805025101,
0.20259897410869598,
0.4424372613430023,
0.3067188858985901,
0.21695517003536224,
0.0006867730407975614,
0.007977203465998173,
0.20208925008773804,
-0.4203091859817505,
-0.06748369336128235,
0.34938567876815796,
0.026833156123757362,
0.18260273337364197,
0.004116996191442013,
0.31645870208740234,
0.06586907058954239,
-0.18194210529327393,
0.11067046970129013,
-0.15675610303878784,
-0.07014328241348267,
-0.34885042905807495,
0.0923331156373024,
0.2150823175907135,
-0.07967428117990494,
0.048016227781772614,
-0.3853042423725128,
0.1449500173330307,
-0.36667177081108093,
0.14610286056995392,
0.08953831344842911,
-0.3051272928714752,
-0.047258853912353516,
-0.1326814740896225,
-0.17274735867977142,
-0.6433351039886475,
0.5588119029998779,
0.11138694733381271,
-0.03298639878630638,
-0.11048584431409836,
0.11036170274019241,
-0.15955334901809692,
0.09113111346960068,
0.27933770418167114,
-0.1291181743144989,
-0.22310605645179749,
-0.12688188254833221,
-0.37206271290779114,
0.11552135646343231,
0.04549182578921318,
-0.02280808985233307,
-0.22744670510292053,
0.14291709661483765,
0.21882598102092743,
0.18879127502441406,
0.11715375632047653,
-0.026593895629048347,
0.3292478621006012,
0.12654009461402893,
-0.33002856373786926,
-0.09876473248004913,
0.11611540615558624,
0.09715544432401657,
0.2759952247142792,
-0.24988654255867004,
0.3398551940917969,
0.025645067915320396,
0.025994613766670227,
-0.259718656539917,
0.04405083507299423,
0.25489869713783264,
-0.20906326174736023,
0.23958130180835724,
0.07023730874061584,
0.2490374743938446,
-0.4570770561695099,
0.1363014578819275,
0.5659571886062622,
0.10625413060188293,
-0.24466979503631592,
0.28060972690582275,
0.3050476014614105,
-0.03165017440915108,
-0.4182460606098175,
0.3034988343715668,
0.19393323361873627,
-0.11936495453119278,
-0.20736460387706757,
-0.3572678864002228,
-0.20853109657764435,
0.03877713531255722,
-0.0009312282199971378,
-0.010252932086586952,
0.03327677771449089,
0.39558279514312744,
-0.015534446574747562,
-0.05191884562373161,
0.13677191734313965,
-0.13027146458625793,
0.3534800112247467,
0.1321192979812622,
-0.23963269591331482,
-0.13218796253204346,
-0.2882092595100403,
0.13608595728874207,
-0.036830831319093704,
-0.34843942523002625,
-0.2428431510925293,
0.3459310531616211,
-0.011685931123793125,
0.31515267491340637,
0.2930341958999634,
0.023111702874302864,
-0.09141987562179565,
-0.20506232976913452,
0.19213013350963593,
0.13763339817523956,
-0.2124321311712265,
-0.12465808540582657,
-0.25917118787765503
] |
https://github.com/huggingface/datasets/issues/1769 | _pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union when calling datasets.map with num_proc=2 | Hi ! What version of python and datasets do you have ? And also what version of dill and pickle ? | It may be a bug of multiprocessing with Datasets, when I disable the multiprocessing by set num_proc to None, everything works fine.
The script I use is https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm_wwm.py
Script args:
```
--model_name_or_path
../../../model/chinese-roberta-wwm-ext
--train_file
/nfs/volume-377-2/bert/data/test/train.txt
--output_dir
test
--do_train
--per_device_train_batch_size
2
--gradient_accumulation_steps
2
--learning_rate
1e-4
--max_steps
1000
--warmup_steps
10
--save_steps
1000
--save_total_limit
1
--seed
23333
--max_seq_length
512
--preprocessing_num_workers
2
--cache_dir
/nfs/volume-377-2/bert/data/test/cache
```
Where the `/nfs/volume-377-2/bert/data/test/train.txt` is just a toy example with 10000 lines of random string, you should be able to reproduce this error esaily.
Full Traceback:
```
Traceback (most recent call last):
File "/nfs/volume-377-2/bert/transformers/examples/language-modeling/run_mlm_wwm.py", line 398, in <module>
main()
File "/nfs/volume-377-2/bert/transformers/examples/language-modeling/run_mlm_wwm.py", line 325, in main
load_from_cache_file=not data_args.overwrite_cache,
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/dataset_dict.py", line 303, in map
for k, dataset in self.items()
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/dataset_dict.py", line 303, in <dictcomp>
for k, dataset in self.items()
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1318, in map
transformed_shards = [r.get() for r in results]
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1318, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/pool.py", line 644, in get
raise self._value
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/pool.py", line 424, in _handle_tasks
put(task)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 446, in dump
StockPickler.dump(self, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 409, in dump
self.save(obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1438, in save_function
obj.__dict__, fkwdefaults), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1170, in save_cell
pickler.save_reduce(_create_cell, (f,), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 605, in save_reduce
save(cls)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1365, in save_type
obj.__bases__, _dict), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 507, in save
self.save_global(obj, rv)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 927, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union
```
| 21 | _pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union when calling datasets.map with num_proc=2
It may be a bug of multiprocessing with Datasets, when I disable the multiprocessing by set num_proc to None, everything works fine.
The script I use is https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm_wwm.py
Script args:
```
--model_name_or_path
../../../model/chinese-roberta-wwm-ext
--train_file
/nfs/volume-377-2/bert/data/test/train.txt
--output_dir
test
--do_train
--per_device_train_batch_size
2
--gradient_accumulation_steps
2
--learning_rate
1e-4
--max_steps
1000
--warmup_steps
10
--save_steps
1000
--save_total_limit
1
--seed
23333
--max_seq_length
512
--preprocessing_num_workers
2
--cache_dir
/nfs/volume-377-2/bert/data/test/cache
```
Where the `/nfs/volume-377-2/bert/data/test/train.txt` is just a toy example with 10000 lines of random string, you should be able to reproduce this error esaily.
Full Traceback:
```
Traceback (most recent call last):
File "/nfs/volume-377-2/bert/transformers/examples/language-modeling/run_mlm_wwm.py", line 398, in <module>
main()
File "/nfs/volume-377-2/bert/transformers/examples/language-modeling/run_mlm_wwm.py", line 325, in main
load_from_cache_file=not data_args.overwrite_cache,
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/dataset_dict.py", line 303, in map
for k, dataset in self.items()
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/dataset_dict.py", line 303, in <dictcomp>
for k, dataset in self.items()
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1318, in map
transformed_shards = [r.get() for r in results]
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1318, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/pool.py", line 644, in get
raise self._value
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/pool.py", line 424, in _handle_tasks
put(task)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 446, in dump
StockPickler.dump(self, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 409, in dump
self.save(obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1438, in save_function
obj.__dict__, fkwdefaults), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1170, in save_cell
pickler.save_reduce(_create_cell, (f,), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 605, in save_reduce
save(cls)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1365, in save_type
obj.__bases__, _dict), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 507, in save
self.save_global(obj, rv)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 927, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union
```
Hi ! What version of python and datasets do you have ? And also what version of dill and pickle ? | [
-0.2903596758842468,
-0.2974283695220947,
0.1132444441318512,
0.1903708577156067,
0.16615870594978333,
-0.052209965884685516,
0.33211368322372437,
0.23036368191242218,
0.2993957996368408,
0.2801506817340851,
0.01671714335680008,
0.3376864492893219,
-0.11104455590248108,
0.2174145132303238,
0.004183147568255663,
-0.10606507211923599,
-0.11580190062522888,
-0.13481131196022034,
-0.3830089271068573,
0.010605037212371826,
-0.2922798991203308,
0.3295295536518097,
-0.33641818165779114,
0.1785811334848404,
-0.6447754502296448,
-0.09804970771074295,
-0.04807281121611595,
0.29142531752586365,
0.0867958515882492,
-0.0838409885764122,
0.09129658341407776,
-0.0355660617351532,
0.012487644329667091,
0.49597540497779846,
-0.00011002033716067672,
0.04339637607336044,
0.20303785800933838,
-0.08291979879140854,
-0.06672574579715729,
-0.41737350821495056,
0.07137777656316757,
-0.03901205211877823,
0.07075820863246918,
-0.05480702966451645,
0.15044903755187988,
0.1799488514661789,
0.14069077372550964,
-0.08047113567590714,
0.2613462805747986,
0.11551505327224731,
0.19440846145153046,
0.5661999583244324,
0.1144358217716217,
-0.07613590359687805,
-0.125260129570961,
0.21574874222278595,
-0.0322176069021225,
0.2660854458808899,
0.1158294752240181,
-0.1664746105670929,
-0.25670453906059265,
0.20814359188079834,
-0.009197068400681019,
0.2851698696613312,
-0.15535275638103485,
0.3262344300746918,
0.09002913534641266,
-0.258921355009079,
0.12840504944324493,
0.397972971200943,
0.07846404612064362,
-0.2320564091205597,
-0.32317233085632324,
-0.06802244484424591,
-0.08543621003627777,
-0.1713578999042511,
0.087753526866436,
0.1660902053117752,
-0.11769440025091171,
0.0851682648062706,
-0.20291747152805328,
0.1319694072008133,
0.22070427238941193,
0.10398511588573456,
0.23207534849643707,
0.36223307251930237,
-0.031342197209596634,
0.36862078309059143,
0.2795686423778534,
-0.13734112679958344,
-0.2073916792869568,
-0.1868891417980194,
0.07206995785236359,
0.0632181391119957,
-0.04581954702734947,
-0.14083826541900635,
0.04550813511013985,
-0.09475696086883545,
0.07365632057189941,
-0.17858266830444336,
-0.1766464114189148,
0.17129747569561005,
-0.238975390791893,
0.3193748891353607,
0.3000181019306183,
-0.12721288204193115,
-0.09902699291706085,
0.20270377397537231,
0.4027111828327179,
-0.0739726647734642,
-0.2251318097114563,
0.11599544435739517,
0.3312566578388214,
-0.3447962701320648,
-0.10419481992721558,
0.15643315017223358,
0.3292235732078552,
-0.11150778084993362,
-0.14969748258590698,
-0.19455093145370483,
-0.13399091362953186,
-0.17258435487747192,
-0.010302385315299034,
0.29037460684776306,
0.059274859726428986,
0.34612083435058594,
0.05660802498459816,
0.1878034919500351,
-0.546713650226593,
-0.08292896300554276,
-0.33981049060821533,
0.218927264213562,
-0.1916942447423935,
0.0626068264245987,
0.22208352386951447,
0.26731452345848083,
0.3550158441066742,
0.19946999847888947,
-0.03712659701704979,
-0.15230952203273773,
0.23511946201324463,
-0.24940341711044312,
-0.12878966331481934,
0.1925625205039978,
0.16525572538375854,
0.2886992394924164,
0.2680857479572296,
-0.3080250024795532,
-0.06359418481588364,
0.07830428332090378,
-0.237054243683815,
-0.2890685498714447,
-0.07295622676610947,
0.13965019583702087,
-0.014291075989603996,
0.12578842043876648,
-0.16990919411182404,
0.04475616663694382,
0.43159228563308716,
-0.04975884407758713,
-0.18824373185634613,
-0.2977280020713806,
-0.39392536878585815,
-0.22074945271015167,
-0.03784913569688797,
0.3762211203575134,
-0.23416686058044434,
-0.15204031765460968,
0.19775822758674622,
-0.12353719770908356,
0.5048830509185791,
0.5401948094367981,
-0.2475932538509369,
-0.08227647095918655,
-0.1492326706647873,
0.6606734991073608,
0.03607119992375374,
0.10968546569347382,
-0.2572195827960968,
0.2026088833808899,
-0.09889494627714157,
-0.11149950325489044,
-0.0841936394572258,
0.03705013170838356,
-0.3572828769683838,
-0.03266797214746475,
0.40614351630210876,
0.13512395322322845,
0.0573740229010582,
0.19235631823539734,
-0.27117201685905457,
-0.3141670823097229,
0.169752836227417,
-0.054476842284202576,
0.06852927803993225,
-0.27578893303871155,
-0.12620095908641815,
-0.08963178843259811,
0.4380547106266022,
-0.2241078019142151,
0.07926015555858612,
-0.0038884389214217663,
0.1627584993839264,
-0.051541056483983994,
-0.02011076547205448,
-0.23383748531341553,
-0.5796085596084595,
0.28781867027282715,
-0.22332914173603058,
0.2118992656469345,
-0.0640438124537468,
-0.13443568348884583,
0.27680662274360657,
-0.016978923231363297,
-0.32596883177757263,
-0.06861774623394012,
0.07566088438034058,
0.07221779972314835,
0.050903450697660446,
-0.18227283656597137,
-0.08427806198596954,
-0.11655867844820023,
-0.10495354235172272,
-0.014997136779129505,
-0.4686058759689331,
0.04257278889417648,
-0.4037327170372009,
-0.4181520938873291,
-0.1895165890455246,
0.207624614238739,
0.10675132274627686,
-0.006862427107989788,
-0.11716950684785843,
0.13696637749671936,
0.15026147663593292,
-0.046110957860946655,
-0.04951416701078415,
0.05626586824655533,
-0.019087249413132668,
-0.09612809121608734,
0.021798929199576378,
0.21985705196857452,
0.11031979322433472,
-0.1780938059091568,
-0.21470710635185242,
0.4751461446285248,
0.028407428413629532,
0.2698734402656555,
0.041677843779325485,
0.09579988569021225,
0.22422854602336884,
0.041359689086675644,
0.13225460052490234,
-0.1709280163049698,
0.16770902276039124,
0.17140628397464752,
0.1670324206352234,
0.09131982922554016,
-0.2392711043357849,
0.039523445069789886,
0.5964309573173523,
0.20254887640476227,
0.4119848608970642,
0.008131204172968864,
-0.2059067040681839,
-0.13738864660263062,
-0.19424545764923096,
0.032580260187387466,
0.6064073443412781,
0.16130051016807556,
0.06438581645488739,
0.0018839123658835888,
-0.1250699907541275,
-0.11863664537668228,
0.012186834588646889,
-0.015712538734078407,
0.038368336856365204,
0.13910628855228424,
0.11017721146345139,
-0.07655658572912216,
-0.3033146262168884,
-0.1031184196472168,
0.010304288007318974,
0.3184675872325897,
-0.3177979290485382,
0.01453846599906683,
-0.33260518312454224,
0.4729813039302826,
-0.23474988341331482,
0.009745493531227112,
-0.19180409610271454,
-0.2922731041908264,
-0.1737028807401657,
0.3688522279262543,
-0.22110995650291443,
0.15469025075435638,
0.1278083175420761,
-0.20746222138404846,
-0.10400610417127609,
0.23589111864566803,
0.07289481908082962,
-0.07714447379112244,
-0.2809193730354309,
-0.0019133457681164145,
0.40488722920417786,
-0.0430670902132988,
0.04712337255477905,
0.15361250936985016,
-0.25862476229667664,
-0.05538639426231384,
-0.13959847390651703,
0.07913271337747574,
-0.07616851478815079,
0.22843560576438904,
0.29757437109947205,
0.25312989950180054,
-0.02032661810517311,
-0.30278974771499634,
0.27819880843162537,
-0.2991170585155487,
-0.19056347012519836,
-0.04216410219669342,
0.07795368880033493,
-0.11819034814834595,
-0.36454957723617554,
-0.39522355794906616,
-0.4591900110244751,
-0.33458778262138367,
0.4066636264324188,
-0.0599520206451416,
0.16278080642223358,
0.28417152166366577,
0.17496517300605774,
0.2511926293373108,
0.12706655263900757,
-0.17673249542713165,
-0.28836315870285034,
0.16194792091846466,
0.22296732664108276,
0.01864316128194332,
-0.2608919143676758,
-0.04888392612338066,
-0.16836236417293549,
-0.04116695746779442,
-0.20991827547550201,
-0.16195376217365265,
0.06790821254253387,
-0.4185376465320587,
0.2506229877471924,
0.10129547119140625,
0.2987336814403534,
0.6218906044960022,
0.27334779500961304,
-0.15714485943317413,
-0.04585900902748108,
-0.2676425874233246,
0.1766682267189026,
0.20726847648620605,
0.25162896513938904,
-0.0044125160202383995,
0.1994468718767166,
-0.00904896855354309,
0.7935595512390137,
0.25887569785118103,
-0.22743640840053558,
0.2747073471546173,
0.0024317309726029634,
-0.17757779359817505,
-0.08380772918462753,
-0.15732955932617188,
-0.06351986527442932,
-0.3232713043689728,
0.10696779936552048,
0.22163303196430206,
-0.11394809186458588,
-0.1790083795785904,
0.05172174796462059,
0.1503135710954666,
-0.09146235138177872,
-0.2932104468345642,
0.49177777767181396,
0.20861586928367615,
-0.10759847611188889,
0.057408545166254044,
-0.05663130432367325,
-0.12717537581920624,
0.04057270288467407,
-0.0875590443611145,
0.01434068288654089,
0.011015965603291988,
-0.1077001690864563,
-0.1765754222869873,
-0.20577500760555267,
-0.5075411200523376,
0.503591001033783,
0.12886856496334076,
0.30688905715942383,
-0.10782209038734436,
-0.2095699906349182,
-0.06163300946354866,
-0.0828852429986,
0.8502633571624756,
-0.3850918412208557,
0.010037822648882866,
0.11937008053064346,
-0.23916316032409668,
-0.2514417767524719,
-0.2370385378599167,
-0.2766326665878296,
0.37880539894104004,
0.32120972871780396,
0.49166232347488403,
-0.23725897073745728,
-0.10248976945877075,
0.35465437173843384,
0.01738797128200531,
-0.1381927877664566,
-0.3041335344314575,
-0.34893110394477844,
-0.2444818913936615,
-0.456997275352478,
-0.07686299085617065,
0.22369468212127686,
0.146245077252388,
-0.17811326682567596,
0.056918252259492874,
-0.0031955165322870016,
-0.24901343882083893,
0.24928231537342072,
0.025197012349963188,
0.1551801711320877,
0.20632754266262054,
0.006600659806281328,
-0.0015962566249072552,
0.22424937784671783,
-0.1629241555929184,
0.24979698657989502,
-0.16910997033119202,
0.007037260569632053,
0.29450172185897827,
-0.25296756625175476,
0.3081231117248535,
0.17721408605575562,
0.05884690210223198,
0.32148998975753784,
0.21851690113544464,
0.3157059848308563,
-0.07874766737222672,
0.11289691925048828,
0.3214442729949951,
0.2550255060195923,
-0.1521226465702057,
-0.270174115896225,
0.5763699412345886,
0.20699132978916168,
0.07110672444105148,
0.27964654564857483,
-0.2895086407661438,
-0.2001236379146576,
0.19523955881595612,
-0.08531071990728378,
0.8592373728752136,
-0.03345359116792679,
0.1365753710269928,
0.10396275669336319,
0.04014192521572113,
0.3963150382041931,
0.1884869635105133,
0.14580033719539642,
-0.42859143018722534,
0.019972532987594604,
0.006362955551594496,
-0.15615858137607574,
0.06997933983802795,
0.1950138956308365,
-0.4718109965324402,
0.39893752336502075,
-0.15402428805828094,
-0.1372062712907791,
-0.020968444645404816,
0.2605492174625397,
0.04448825120925903,
-0.2674723267555237,
0.09877458959817886,
0.10683091729879379,
-0.09737284481525421,
0.250997930765152,
0.09816893190145493,
-0.015407774597406387,
0.07682617008686066,
-0.3066433072090149,
-0.3827332854270935,
0.11944563686847687,
-0.2119661569595337,
0.5681127309799194,
0.2654305398464203,
0.11764319241046906,
0.3349757492542267,
0.14744259417057037,
0.004298762418329716,
0.12446620315313339,
-0.12848752737045288,
-0.013692812994122505,
0.030050162225961685,
0.12238341569900513,
-0.21383269131183624,
-0.019731691107153893,
0.2193789780139923,
0.038054876029491425,
-0.3936788737773895,
-0.16135892271995544,
-0.08267196267843246,
0.06409475952386856,
-0.14606693387031555,
0.02843407355248928,
0.02397928014397621,
-0.22338272631168365,
-0.4673127233982086,
0.060594748705625534,
-0.35974249243736267,
-0.23938922584056854,
0.10978496074676514,
-0.025140712037682533,
-0.42065930366516113,
0.23207128047943115,
0.09840686619281769,
-0.2648563086986542,
0.09744834154844284,
0.4654230773448944,
0.1427571177482605,
0.39382946491241455,
0.6578117609024048,
0.48163262009620667,
-0.1619143784046173,
-0.21772827208042145,
-0.1378336399793625,
0.25590184330940247,
-0.5192022323608398,
0.26362523436546326,
0.12617115676403046,
-0.15654340386390686,
-0.024752521887421608,
0.3667330741882324,
0.04229287803173065,
0.2563847005367279,
-0.22223548591136932,
-0.28466033935546875,
-0.4323418438434601,
0.04121842235326767,
-0.012455705553293228,
0.15849071741104126,
0.03773297742009163,
0.4392094016075134,
0.07252237200737,
0.3446767032146454,
-0.3166031241416931,
0.10158910602331161,
-0.459254652261734,
0.12705060839653015,
0.08695457875728607,
-0.3884998559951782,
0.007180614862591028,
0.10283883661031723,
0.10863649100065231,
0.30900031328201294,
-0.29942482709884644,
-0.23484714329242706,
-0.22640277445316315,
0.0722891315817833,
-0.06925445050001144,
-0.05940142273902893,
0.21242763102054596,
0.22667621076107025,
-0.03295062109827995,
-0.1760733723640442,
-0.0075880554504692554,
0.052118171006441116,
-0.010445918887853622,
0.1474795937538147,
0.21945494413375854,
0.019567085430026054,
-0.11889604479074478,
0.0047814263962209225,
-0.2407388538122177,
0.030296364799141884,
0.14272724092006683,
0.012420406565070152,
0.14593861997127533,
0.0674339309334755,
-0.13457918167114258,
-0.17718075215816498,
0.08095499873161316,
0.13594506680965424,
-0.19076500833034515,
-0.3552045524120331,
-0.21116432547569275,
-0.1962960958480835,
0.2878011465072632,
0.1750219762325287,
-0.13388143479824066,
0.04252968356013298,
0.07110746204853058,
0.2294940948486328,
-0.38945141434669495,
0.10095953196287155,
0.31593507528305054,
-0.08129794150590897,
0.24176393449306488,
0.23468098044395447,
-0.10673325508832932,
0.16555064916610718,
-0.29352420568466187,
0.12670889496803284,
0.0022717358078807592,
-0.4911993145942688,
-0.009272581897675991,
0.09050866961479187,
-0.1272120326757431,
0.139316126704216,
0.3981228172779083,
-0.043810464441776276,
0.2180088311433792,
0.17343007028102875,
-0.029529018327593803,
0.28618624806404114,
-0.33719390630722046,
0.16034914553165436,
0.04284476116299629,
-0.6167393326759338,
0.22295193374156952,
0.30427104234695435,
-0.15452776849269867,
0.21044638752937317,
-0.030724382027983665,
0.36758020520210266,
-0.5919651985168457,
-0.19598525762557983,
-0.0851379781961441,
0.2790284752845764,
-0.3977424204349518,
-0.4198269546031952,
-0.03246621787548065,
-0.05472417175769806,
-0.21798034012317657,
0.057403646409511566,
-0.07103119045495987,
0.1367315948009491,
0.3471319377422333,
0.021595824509859085,
-0.14455533027648926,
-0.34879231452941895,
-0.1260671764612198,
-0.012696235440671444,
0.1340656280517578,
-0.2956922650337219,
0.06823605298995972,
0.27491578459739685,
-0.04596352577209473,
-0.5047231912612915,
0.22283631563186646,
0.559190571308136,
0.39883527159690857,
-0.3692159056663513,
0.07257500290870667,
-0.039594199508428574,
0.06188575178384781,
-0.10446996986865997,
0.07688134908676147,
0.09609382599592209,
0.14917093515396118,
0.22303083539009094,
0.11659814417362213,
-0.20960380136966705,
-0.08218850940465927,
0.12267912924289703,
0.3338046967983246,
0.05177946016192436,
0.42576900124549866,
-0.09363168478012085,
-0.2233308106660843,
-0.0471886582672596,
0.13819649815559387,
-0.4184854030609131,
0.21530574560165405,
0.5088746547698975,
-0.21763528883457184,
0.2733808159828186,
-0.0391264483332634,
0.09814474731683731,
-0.0012672102311626077,
0.6341002583503723,
0.1495898813009262,
0.023732298985123634,
-0.4357897937297821,
0.24684377014636993,
-0.5064618587493896,
0.03414788097143173,
-0.2610832452774048,
0.14380639791488647,
-0.37084847688674927,
0.3476608097553253,
0.12029378861188889,
-0.06318697333335876,
-0.009628369472920895,
0.3259035646915436,
0.21644991636276245,
0.35385245084762573,
-0.31523647904396057,
-0.15420204401016235,
-0.2725802958011627,
-0.21140313148498535,
0.3093433380126953,
-0.4370574355125427,
0.01296577975153923,
0.1691236048936844,
0.052018649876117706,
-0.36216434836387634,
0.0353427529335022,
0.005555526353418827,
0.15972870588302612,
-0.008219451643526554,
0.25785526633262634,
0.4893651604652405,
-0.21504837274551392,
-0.014704681001603603,
-0.09395764768123627,
-0.034874774515628815,
-0.16505444049835205,
0.02458699233829975,
0.09823666512966156,
0.5375679135322571,
-0.23324425518512726,
0.3349670469760895,
-0.429165780544281,
0.1068597137928009,
0.0017595869721844792,
0.07302259653806686,
-0.11257285624742508,
0.18445727229118347,
0.14451481401920319,
0.015393036417663097,
0.0043695783242583275,
0.3746373653411865,
0.012435037642717361,
-0.05912373587489128,
-0.19601911306381226,
-0.28344979882240295,
0.6401269435882568,
-0.29230108857154846,
-0.4539932310581207,
-0.42327481508255005,
0.15188774466514587,
-0.22872979938983917,
-0.07128672301769257,
-0.5009865760803223,
0.041450586169958115,
0.13671056926250458,
-0.024166591465473175,
-0.45826801657676697,
0.23896338045597076,
0.01220790483057499,
-0.2194102257490158,
-0.09122022241353989,
0.3244311511516571,
0.14234265685081482,
-0.29269155859947205,
0.1541835516691208,
-0.34222474694252014
] |
https://github.com/huggingface/datasets/issues/1769 | _pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union when calling datasets.map with num_proc=2 | > Hi ! What version of python and datasets do you have ? And also what version of dill and pickle ?
python==3.6.10
datasets==1.2.1
dill==0.3.2
pickle.format_version==4.0 | It may be a bug of multiprocessing with Datasets, when I disable the multiprocessing by set num_proc to None, everything works fine.
The script I use is https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm_wwm.py
Script args:
```
--model_name_or_path
../../../model/chinese-roberta-wwm-ext
--train_file
/nfs/volume-377-2/bert/data/test/train.txt
--output_dir
test
--do_train
--per_device_train_batch_size
2
--gradient_accumulation_steps
2
--learning_rate
1e-4
--max_steps
1000
--warmup_steps
10
--save_steps
1000
--save_total_limit
1
--seed
23333
--max_seq_length
512
--preprocessing_num_workers
2
--cache_dir
/nfs/volume-377-2/bert/data/test/cache
```
Where the `/nfs/volume-377-2/bert/data/test/train.txt` is just a toy example with 10000 lines of random string, you should be able to reproduce this error esaily.
Full Traceback:
```
Traceback (most recent call last):
File "/nfs/volume-377-2/bert/transformers/examples/language-modeling/run_mlm_wwm.py", line 398, in <module>
main()
File "/nfs/volume-377-2/bert/transformers/examples/language-modeling/run_mlm_wwm.py", line 325, in main
load_from_cache_file=not data_args.overwrite_cache,
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/dataset_dict.py", line 303, in map
for k, dataset in self.items()
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/dataset_dict.py", line 303, in <dictcomp>
for k, dataset in self.items()
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1318, in map
transformed_shards = [r.get() for r in results]
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1318, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/pool.py", line 644, in get
raise self._value
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/pool.py", line 424, in _handle_tasks
put(task)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 446, in dump
StockPickler.dump(self, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 409, in dump
self.save(obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1438, in save_function
obj.__dict__, fkwdefaults), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1170, in save_cell
pickler.save_reduce(_create_cell, (f,), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 605, in save_reduce
save(cls)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1365, in save_type
obj.__bases__, _dict), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 507, in save
self.save_global(obj, rv)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 927, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union
```
| 26 | _pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union when calling datasets.map with num_proc=2
It may be a bug of multiprocessing with Datasets, when I disable the multiprocessing by set num_proc to None, everything works fine.
The script I use is https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm_wwm.py
Script args:
```
--model_name_or_path
../../../model/chinese-roberta-wwm-ext
--train_file
/nfs/volume-377-2/bert/data/test/train.txt
--output_dir
test
--do_train
--per_device_train_batch_size
2
--gradient_accumulation_steps
2
--learning_rate
1e-4
--max_steps
1000
--warmup_steps
10
--save_steps
1000
--save_total_limit
1
--seed
23333
--max_seq_length
512
--preprocessing_num_workers
2
--cache_dir
/nfs/volume-377-2/bert/data/test/cache
```
Where the `/nfs/volume-377-2/bert/data/test/train.txt` is just a toy example with 10000 lines of random string, you should be able to reproduce this error esaily.
Full Traceback:
```
Traceback (most recent call last):
File "/nfs/volume-377-2/bert/transformers/examples/language-modeling/run_mlm_wwm.py", line 398, in <module>
main()
File "/nfs/volume-377-2/bert/transformers/examples/language-modeling/run_mlm_wwm.py", line 325, in main
load_from_cache_file=not data_args.overwrite_cache,
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/dataset_dict.py", line 303, in map
for k, dataset in self.items()
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/dataset_dict.py", line 303, in <dictcomp>
for k, dataset in self.items()
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1318, in map
transformed_shards = [r.get() for r in results]
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1318, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/pool.py", line 644, in get
raise self._value
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/pool.py", line 424, in _handle_tasks
put(task)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 446, in dump
StockPickler.dump(self, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 409, in dump
self.save(obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1438, in save_function
obj.__dict__, fkwdefaults), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1170, in save_cell
pickler.save_reduce(_create_cell, (f,), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 605, in save_reduce
save(cls)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1365, in save_type
obj.__bases__, _dict), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 507, in save
self.save_global(obj, rv)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 927, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union
```
> Hi ! What version of python and datasets do you have ? And also what version of dill and pickle ?
python==3.6.10
datasets==1.2.1
dill==0.3.2
pickle.format_version==4.0 | [
-0.2903596758842468,
-0.2974283695220947,
0.1132444441318512,
0.1903708577156067,
0.16615870594978333,
-0.052209965884685516,
0.33211368322372437,
0.23036368191242218,
0.2993957996368408,
0.2801506817340851,
0.01671714335680008,
0.3376864492893219,
-0.11104455590248108,
0.2174145132303238,
0.004183147568255663,
-0.10606507211923599,
-0.11580190062522888,
-0.13481131196022034,
-0.3830089271068573,
0.010605037212371826,
-0.2922798991203308,
0.3295295536518097,
-0.33641818165779114,
0.1785811334848404,
-0.6447754502296448,
-0.09804970771074295,
-0.04807281121611595,
0.29142531752586365,
0.0867958515882492,
-0.0838409885764122,
0.09129658341407776,
-0.0355660617351532,
0.012487644329667091,
0.49597540497779846,
-0.00011002033716067672,
0.04339637607336044,
0.20303785800933838,
-0.08291979879140854,
-0.06672574579715729,
-0.41737350821495056,
0.07137777656316757,
-0.03901205211877823,
0.07075820863246918,
-0.05480702966451645,
0.15044903755187988,
0.1799488514661789,
0.14069077372550964,
-0.08047113567590714,
0.2613462805747986,
0.11551505327224731,
0.19440846145153046,
0.5661999583244324,
0.1144358217716217,
-0.07613590359687805,
-0.125260129570961,
0.21574874222278595,
-0.0322176069021225,
0.2660854458808899,
0.1158294752240181,
-0.1664746105670929,
-0.25670453906059265,
0.20814359188079834,
-0.009197068400681019,
0.2851698696613312,
-0.15535275638103485,
0.3262344300746918,
0.09002913534641266,
-0.258921355009079,
0.12840504944324493,
0.397972971200943,
0.07846404612064362,
-0.2320564091205597,
-0.32317233085632324,
-0.06802244484424591,
-0.08543621003627777,
-0.1713578999042511,
0.087753526866436,
0.1660902053117752,
-0.11769440025091171,
0.0851682648062706,
-0.20291747152805328,
0.1319694072008133,
0.22070427238941193,
0.10398511588573456,
0.23207534849643707,
0.36223307251930237,
-0.031342197209596634,
0.36862078309059143,
0.2795686423778534,
-0.13734112679958344,
-0.2073916792869568,
-0.1868891417980194,
0.07206995785236359,
0.0632181391119957,
-0.04581954702734947,
-0.14083826541900635,
0.04550813511013985,
-0.09475696086883545,
0.07365632057189941,
-0.17858266830444336,
-0.1766464114189148,
0.17129747569561005,
-0.238975390791893,
0.3193748891353607,
0.3000181019306183,
-0.12721288204193115,
-0.09902699291706085,
0.20270377397537231,
0.4027111828327179,
-0.0739726647734642,
-0.2251318097114563,
0.11599544435739517,
0.3312566578388214,
-0.3447962701320648,
-0.10419481992721558,
0.15643315017223358,
0.3292235732078552,
-0.11150778084993362,
-0.14969748258590698,
-0.19455093145370483,
-0.13399091362953186,
-0.17258435487747192,
-0.010302385315299034,
0.29037460684776306,
0.059274859726428986,
0.34612083435058594,
0.05660802498459816,
0.1878034919500351,
-0.546713650226593,
-0.08292896300554276,
-0.33981049060821533,
0.218927264213562,
-0.1916942447423935,
0.0626068264245987,
0.22208352386951447,
0.26731452345848083,
0.3550158441066742,
0.19946999847888947,
-0.03712659701704979,
-0.15230952203273773,
0.23511946201324463,
-0.24940341711044312,
-0.12878966331481934,
0.1925625205039978,
0.16525572538375854,
0.2886992394924164,
0.2680857479572296,
-0.3080250024795532,
-0.06359418481588364,
0.07830428332090378,
-0.237054243683815,
-0.2890685498714447,
-0.07295622676610947,
0.13965019583702087,
-0.014291075989603996,
0.12578842043876648,
-0.16990919411182404,
0.04475616663694382,
0.43159228563308716,
-0.04975884407758713,
-0.18824373185634613,
-0.2977280020713806,
-0.39392536878585815,
-0.22074945271015167,
-0.03784913569688797,
0.3762211203575134,
-0.23416686058044434,
-0.15204031765460968,
0.19775822758674622,
-0.12353719770908356,
0.5048830509185791,
0.5401948094367981,
-0.2475932538509369,
-0.08227647095918655,
-0.1492326706647873,
0.6606734991073608,
0.03607119992375374,
0.10968546569347382,
-0.2572195827960968,
0.2026088833808899,
-0.09889494627714157,
-0.11149950325489044,
-0.0841936394572258,
0.03705013170838356,
-0.3572828769683838,
-0.03266797214746475,
0.40614351630210876,
0.13512395322322845,
0.0573740229010582,
0.19235631823539734,
-0.27117201685905457,
-0.3141670823097229,
0.169752836227417,
-0.054476842284202576,
0.06852927803993225,
-0.27578893303871155,
-0.12620095908641815,
-0.08963178843259811,
0.4380547106266022,
-0.2241078019142151,
0.07926015555858612,
-0.0038884389214217663,
0.1627584993839264,
-0.051541056483983994,
-0.02011076547205448,
-0.23383748531341553,
-0.5796085596084595,
0.28781867027282715,
-0.22332914173603058,
0.2118992656469345,
-0.0640438124537468,
-0.13443568348884583,
0.27680662274360657,
-0.016978923231363297,
-0.32596883177757263,
-0.06861774623394012,
0.07566088438034058,
0.07221779972314835,
0.050903450697660446,
-0.18227283656597137,
-0.08427806198596954,
-0.11655867844820023,
-0.10495354235172272,
-0.014997136779129505,
-0.4686058759689331,
0.04257278889417648,
-0.4037327170372009,
-0.4181520938873291,
-0.1895165890455246,
0.207624614238739,
0.10675132274627686,
-0.006862427107989788,
-0.11716950684785843,
0.13696637749671936,
0.15026147663593292,
-0.046110957860946655,
-0.04951416701078415,
0.05626586824655533,
-0.019087249413132668,
-0.09612809121608734,
0.021798929199576378,
0.21985705196857452,
0.11031979322433472,
-0.1780938059091568,
-0.21470710635185242,
0.4751461446285248,
0.028407428413629532,
0.2698734402656555,
0.041677843779325485,
0.09579988569021225,
0.22422854602336884,
0.041359689086675644,
0.13225460052490234,
-0.1709280163049698,
0.16770902276039124,
0.17140628397464752,
0.1670324206352234,
0.09131982922554016,
-0.2392711043357849,
0.039523445069789886,
0.5964309573173523,
0.20254887640476227,
0.4119848608970642,
0.008131204172968864,
-0.2059067040681839,
-0.13738864660263062,
-0.19424545764923096,
0.032580260187387466,
0.6064073443412781,
0.16130051016807556,
0.06438581645488739,
0.0018839123658835888,
-0.1250699907541275,
-0.11863664537668228,
0.012186834588646889,
-0.015712538734078407,
0.038368336856365204,
0.13910628855228424,
0.11017721146345139,
-0.07655658572912216,
-0.3033146262168884,
-0.1031184196472168,
0.010304288007318974,
0.3184675872325897,
-0.3177979290485382,
0.01453846599906683,
-0.33260518312454224,
0.4729813039302826,
-0.23474988341331482,
0.009745493531227112,
-0.19180409610271454,
-0.2922731041908264,
-0.1737028807401657,
0.3688522279262543,
-0.22110995650291443,
0.15469025075435638,
0.1278083175420761,
-0.20746222138404846,
-0.10400610417127609,
0.23589111864566803,
0.07289481908082962,
-0.07714447379112244,
-0.2809193730354309,
-0.0019133457681164145,
0.40488722920417786,
-0.0430670902132988,
0.04712337255477905,
0.15361250936985016,
-0.25862476229667664,
-0.05538639426231384,
-0.13959847390651703,
0.07913271337747574,
-0.07616851478815079,
0.22843560576438904,
0.29757437109947205,
0.25312989950180054,
-0.02032661810517311,
-0.30278974771499634,
0.27819880843162537,
-0.2991170585155487,
-0.19056347012519836,
-0.04216410219669342,
0.07795368880033493,
-0.11819034814834595,
-0.36454957723617554,
-0.39522355794906616,
-0.4591900110244751,
-0.33458778262138367,
0.4066636264324188,
-0.0599520206451416,
0.16278080642223358,
0.28417152166366577,
0.17496517300605774,
0.2511926293373108,
0.12706655263900757,
-0.17673249542713165,
-0.28836315870285034,
0.16194792091846466,
0.22296732664108276,
0.01864316128194332,
-0.2608919143676758,
-0.04888392612338066,
-0.16836236417293549,
-0.04116695746779442,
-0.20991827547550201,
-0.16195376217365265,
0.06790821254253387,
-0.4185376465320587,
0.2506229877471924,
0.10129547119140625,
0.2987336814403534,
0.6218906044960022,
0.27334779500961304,
-0.15714485943317413,
-0.04585900902748108,
-0.2676425874233246,
0.1766682267189026,
0.20726847648620605,
0.25162896513938904,
-0.0044125160202383995,
0.1994468718767166,
-0.00904896855354309,
0.7935595512390137,
0.25887569785118103,
-0.22743640840053558,
0.2747073471546173,
0.0024317309726029634,
-0.17757779359817505,
-0.08380772918462753,
-0.15732955932617188,
-0.06351986527442932,
-0.3232713043689728,
0.10696779936552048,
0.22163303196430206,
-0.11394809186458588,
-0.1790083795785904,
0.05172174796462059,
0.1503135710954666,
-0.09146235138177872,
-0.2932104468345642,
0.49177777767181396,
0.20861586928367615,
-0.10759847611188889,
0.057408545166254044,
-0.05663130432367325,
-0.12717537581920624,
0.04057270288467407,
-0.0875590443611145,
0.01434068288654089,
0.011015965603291988,
-0.1077001690864563,
-0.1765754222869873,
-0.20577500760555267,
-0.5075411200523376,
0.503591001033783,
0.12886856496334076,
0.30688905715942383,
-0.10782209038734436,
-0.2095699906349182,
-0.06163300946354866,
-0.0828852429986,
0.8502633571624756,
-0.3850918412208557,
0.010037822648882866,
0.11937008053064346,
-0.23916316032409668,
-0.2514417767524719,
-0.2370385378599167,
-0.2766326665878296,
0.37880539894104004,
0.32120972871780396,
0.49166232347488403,
-0.23725897073745728,
-0.10248976945877075,
0.35465437173843384,
0.01738797128200531,
-0.1381927877664566,
-0.3041335344314575,
-0.34893110394477844,
-0.2444818913936615,
-0.456997275352478,
-0.07686299085617065,
0.22369468212127686,
0.146245077252388,
-0.17811326682567596,
0.056918252259492874,
-0.0031955165322870016,
-0.24901343882083893,
0.24928231537342072,
0.025197012349963188,
0.1551801711320877,
0.20632754266262054,
0.006600659806281328,
-0.0015962566249072552,
0.22424937784671783,
-0.1629241555929184,
0.24979698657989502,
-0.16910997033119202,
0.007037260569632053,
0.29450172185897827,
-0.25296756625175476,
0.3081231117248535,
0.17721408605575562,
0.05884690210223198,
0.32148998975753784,
0.21851690113544464,
0.3157059848308563,
-0.07874766737222672,
0.11289691925048828,
0.3214442729949951,
0.2550255060195923,
-0.1521226465702057,
-0.270174115896225,
0.5763699412345886,
0.20699132978916168,
0.07110672444105148,
0.27964654564857483,
-0.2895086407661438,
-0.2001236379146576,
0.19523955881595612,
-0.08531071990728378,
0.8592373728752136,
-0.03345359116792679,
0.1365753710269928,
0.10396275669336319,
0.04014192521572113,
0.3963150382041931,
0.1884869635105133,
0.14580033719539642,
-0.42859143018722534,
0.019972532987594604,
0.006362955551594496,
-0.15615858137607574,
0.06997933983802795,
0.1950138956308365,
-0.4718109965324402,
0.39893752336502075,
-0.15402428805828094,
-0.1372062712907791,
-0.020968444645404816,
0.2605492174625397,
0.04448825120925903,
-0.2674723267555237,
0.09877458959817886,
0.10683091729879379,
-0.09737284481525421,
0.250997930765152,
0.09816893190145493,
-0.015407774597406387,
0.07682617008686066,
-0.3066433072090149,
-0.3827332854270935,
0.11944563686847687,
-0.2119661569595337,
0.5681127309799194,
0.2654305398464203,
0.11764319241046906,
0.3349757492542267,
0.14744259417057037,
0.004298762418329716,
0.12446620315313339,
-0.12848752737045288,
-0.013692812994122505,
0.030050162225961685,
0.12238341569900513,
-0.21383269131183624,
-0.019731691107153893,
0.2193789780139923,
0.038054876029491425,
-0.3936788737773895,
-0.16135892271995544,
-0.08267196267843246,
0.06409475952386856,
-0.14606693387031555,
0.02843407355248928,
0.02397928014397621,
-0.22338272631168365,
-0.4673127233982086,
0.060594748705625534,
-0.35974249243736267,
-0.23938922584056854,
0.10978496074676514,
-0.025140712037682533,
-0.42065930366516113,
0.23207128047943115,
0.09840686619281769,
-0.2648563086986542,
0.09744834154844284,
0.4654230773448944,
0.1427571177482605,
0.39382946491241455,
0.6578117609024048,
0.48163262009620667,
-0.1619143784046173,
-0.21772827208042145,
-0.1378336399793625,
0.25590184330940247,
-0.5192022323608398,
0.26362523436546326,
0.12617115676403046,
-0.15654340386390686,
-0.024752521887421608,
0.3667330741882324,
0.04229287803173065,
0.2563847005367279,
-0.22223548591136932,
-0.28466033935546875,
-0.4323418438434601,
0.04121842235326767,
-0.012455705553293228,
0.15849071741104126,
0.03773297742009163,
0.4392094016075134,
0.07252237200737,
0.3446767032146454,
-0.3166031241416931,
0.10158910602331161,
-0.459254652261734,
0.12705060839653015,
0.08695457875728607,
-0.3884998559951782,
0.007180614862591028,
0.10283883661031723,
0.10863649100065231,
0.30900031328201294,
-0.29942482709884644,
-0.23484714329242706,
-0.22640277445316315,
0.0722891315817833,
-0.06925445050001144,
-0.05940142273902893,
0.21242763102054596,
0.22667621076107025,
-0.03295062109827995,
-0.1760733723640442,
-0.0075880554504692554,
0.052118171006441116,
-0.010445918887853622,
0.1474795937538147,
0.21945494413375854,
0.019567085430026054,
-0.11889604479074478,
0.0047814263962209225,
-0.2407388538122177,
0.030296364799141884,
0.14272724092006683,
0.012420406565070152,
0.14593861997127533,
0.0674339309334755,
-0.13457918167114258,
-0.17718075215816498,
0.08095499873161316,
0.13594506680965424,
-0.19076500833034515,
-0.3552045524120331,
-0.21116432547569275,
-0.1962960958480835,
0.2878011465072632,
0.1750219762325287,
-0.13388143479824066,
0.04252968356013298,
0.07110746204853058,
0.2294940948486328,
-0.38945141434669495,
0.10095953196287155,
0.31593507528305054,
-0.08129794150590897,
0.24176393449306488,
0.23468098044395447,
-0.10673325508832932,
0.16555064916610718,
-0.29352420568466187,
0.12670889496803284,
0.0022717358078807592,
-0.4911993145942688,
-0.009272581897675991,
0.09050866961479187,
-0.1272120326757431,
0.139316126704216,
0.3981228172779083,
-0.043810464441776276,
0.2180088311433792,
0.17343007028102875,
-0.029529018327593803,
0.28618624806404114,
-0.33719390630722046,
0.16034914553165436,
0.04284476116299629,
-0.6167393326759338,
0.22295193374156952,
0.30427104234695435,
-0.15452776849269867,
0.21044638752937317,
-0.030724382027983665,
0.36758020520210266,
-0.5919651985168457,
-0.19598525762557983,
-0.0851379781961441,
0.2790284752845764,
-0.3977424204349518,
-0.4198269546031952,
-0.03246621787548065,
-0.05472417175769806,
-0.21798034012317657,
0.057403646409511566,
-0.07103119045495987,
0.1367315948009491,
0.3471319377422333,
0.021595824509859085,
-0.14455533027648926,
-0.34879231452941895,
-0.1260671764612198,
-0.012696235440671444,
0.1340656280517578,
-0.2956922650337219,
0.06823605298995972,
0.27491578459739685,
-0.04596352577209473,
-0.5047231912612915,
0.22283631563186646,
0.559190571308136,
0.39883527159690857,
-0.3692159056663513,
0.07257500290870667,
-0.039594199508428574,
0.06188575178384781,
-0.10446996986865997,
0.07688134908676147,
0.09609382599592209,
0.14917093515396118,
0.22303083539009094,
0.11659814417362213,
-0.20960380136966705,
-0.08218850940465927,
0.12267912924289703,
0.3338046967983246,
0.05177946016192436,
0.42576900124549866,
-0.09363168478012085,
-0.2233308106660843,
-0.0471886582672596,
0.13819649815559387,
-0.4184854030609131,
0.21530574560165405,
0.5088746547698975,
-0.21763528883457184,
0.2733808159828186,
-0.0391264483332634,
0.09814474731683731,
-0.0012672102311626077,
0.6341002583503723,
0.1495898813009262,
0.023732298985123634,
-0.4357897937297821,
0.24684377014636993,
-0.5064618587493896,
0.03414788097143173,
-0.2610832452774048,
0.14380639791488647,
-0.37084847688674927,
0.3476608097553253,
0.12029378861188889,
-0.06318697333335876,
-0.009628369472920895,
0.3259035646915436,
0.21644991636276245,
0.35385245084762573,
-0.31523647904396057,
-0.15420204401016235,
-0.2725802958011627,
-0.21140313148498535,
0.3093433380126953,
-0.4370574355125427,
0.01296577975153923,
0.1691236048936844,
0.052018649876117706,
-0.36216434836387634,
0.0353427529335022,
0.005555526353418827,
0.15972870588302612,
-0.008219451643526554,
0.25785526633262634,
0.4893651604652405,
-0.21504837274551392,
-0.014704681001603603,
-0.09395764768123627,
-0.034874774515628815,
-0.16505444049835205,
0.02458699233829975,
0.09823666512966156,
0.5375679135322571,
-0.23324425518512726,
0.3349670469760895,
-0.429165780544281,
0.1068597137928009,
0.0017595869721844792,
0.07302259653806686,
-0.11257285624742508,
0.18445727229118347,
0.14451481401920319,
0.015393036417663097,
0.0043695783242583275,
0.3746373653411865,
0.012435037642717361,
-0.05912373587489128,
-0.19601911306381226,
-0.28344979882240295,
0.6401269435882568,
-0.29230108857154846,
-0.4539932310581207,
-0.42327481508255005,
0.15188774466514587,
-0.22872979938983917,
-0.07128672301769257,
-0.5009865760803223,
0.041450586169958115,
0.13671056926250458,
-0.024166591465473175,
-0.45826801657676697,
0.23896338045597076,
0.01220790483057499,
-0.2194102257490158,
-0.09122022241353989,
0.3244311511516571,
0.14234265685081482,
-0.29269155859947205,
0.1541835516691208,
-0.34222474694252014
] |
https://github.com/huggingface/datasets/issues/1769 | _pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union when calling datasets.map with num_proc=2 | Multiprocessing in python require all the functions to be picklable. More specifically, functions need to be picklable with `dill`.
However objects like `typing.Union[str, NoneType]` are not picklable in python <3.7.
Can you try to update your python version to python>=3.7 ?
| It may be a bug of multiprocessing with Datasets, when I disable the multiprocessing by set num_proc to None, everything works fine.
The script I use is https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm_wwm.py
Script args:
```
--model_name_or_path
../../../model/chinese-roberta-wwm-ext
--train_file
/nfs/volume-377-2/bert/data/test/train.txt
--output_dir
test
--do_train
--per_device_train_batch_size
2
--gradient_accumulation_steps
2
--learning_rate
1e-4
--max_steps
1000
--warmup_steps
10
--save_steps
1000
--save_total_limit
1
--seed
23333
--max_seq_length
512
--preprocessing_num_workers
2
--cache_dir
/nfs/volume-377-2/bert/data/test/cache
```
Where the `/nfs/volume-377-2/bert/data/test/train.txt` is just a toy example with 10000 lines of random string, you should be able to reproduce this error esaily.
Full Traceback:
```
Traceback (most recent call last):
File "/nfs/volume-377-2/bert/transformers/examples/language-modeling/run_mlm_wwm.py", line 398, in <module>
main()
File "/nfs/volume-377-2/bert/transformers/examples/language-modeling/run_mlm_wwm.py", line 325, in main
load_from_cache_file=not data_args.overwrite_cache,
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/dataset_dict.py", line 303, in map
for k, dataset in self.items()
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/dataset_dict.py", line 303, in <dictcomp>
for k, dataset in self.items()
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1318, in map
transformed_shards = [r.get() for r in results]
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1318, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/pool.py", line 644, in get
raise self._value
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/pool.py", line 424, in _handle_tasks
put(task)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 446, in dump
StockPickler.dump(self, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 409, in dump
self.save(obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1438, in save_function
obj.__dict__, fkwdefaults), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1170, in save_cell
pickler.save_reduce(_create_cell, (f,), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 605, in save_reduce
save(cls)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1365, in save_type
obj.__bases__, _dict), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 507, in save
self.save_global(obj, rv)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 927, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union
```
| 41 | _pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union when calling datasets.map with num_proc=2
It may be a bug of multiprocessing with Datasets, when I disable the multiprocessing by set num_proc to None, everything works fine.
The script I use is https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm_wwm.py
Script args:
```
--model_name_or_path
../../../model/chinese-roberta-wwm-ext
--train_file
/nfs/volume-377-2/bert/data/test/train.txt
--output_dir
test
--do_train
--per_device_train_batch_size
2
--gradient_accumulation_steps
2
--learning_rate
1e-4
--max_steps
1000
--warmup_steps
10
--save_steps
1000
--save_total_limit
1
--seed
23333
--max_seq_length
512
--preprocessing_num_workers
2
--cache_dir
/nfs/volume-377-2/bert/data/test/cache
```
Where the `/nfs/volume-377-2/bert/data/test/train.txt` is just a toy example with 10000 lines of random string, you should be able to reproduce this error esaily.
Full Traceback:
```
Traceback (most recent call last):
File "/nfs/volume-377-2/bert/transformers/examples/language-modeling/run_mlm_wwm.py", line 398, in <module>
main()
File "/nfs/volume-377-2/bert/transformers/examples/language-modeling/run_mlm_wwm.py", line 325, in main
load_from_cache_file=not data_args.overwrite_cache,
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/dataset_dict.py", line 303, in map
for k, dataset in self.items()
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/dataset_dict.py", line 303, in <dictcomp>
for k, dataset in self.items()
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1318, in map
transformed_shards = [r.get() for r in results]
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1318, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/pool.py", line 644, in get
raise self._value
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/pool.py", line 424, in _handle_tasks
put(task)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/connection.py", line 209, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/multiprocess/reduction.py", line 54, in dumps
cls(buf, protocol, *args, **kwds).dump(obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 446, in dump
StockPickler.dump(self, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 409, in dump
self.save(obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1438, in save_function
obj.__dict__, fkwdefaults), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1170, in save_cell
pickler.save_reduce(_create_cell, (f,), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 605, in save_reduce
save(cls)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 1365, in save_type
obj.__bases__, _dict), obj=obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/luban/miniconda3/envs/py36/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 507, in save
self.save_global(obj, rv)
File "/home/luban/miniconda3/envs/py36/lib/python3.6/pickle.py", line 927, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union
```
Multiprocessing in python require all the functions to be picklable. More specifically, functions need to be picklable with `dill`.
However objects like `typing.Union[str, NoneType]` are not picklable in python <3.7.
Can you try to update your python version to python>=3.7 ?
| [
-0.2903596758842468,
-0.2974283695220947,
0.1132444441318512,
0.1903708577156067,
0.16615870594978333,
-0.052209965884685516,
0.33211368322372437,
0.23036368191242218,
0.2993957996368408,
0.2801506817340851,
0.01671714335680008,
0.3376864492893219,
-0.11104455590248108,
0.2174145132303238,
0.004183147568255663,
-0.10606507211923599,
-0.11580190062522888,
-0.13481131196022034,
-0.3830089271068573,
0.010605037212371826,
-0.2922798991203308,
0.3295295536518097,
-0.33641818165779114,
0.1785811334848404,
-0.6447754502296448,
-0.09804970771074295,
-0.04807281121611595,
0.29142531752586365,
0.0867958515882492,
-0.0838409885764122,
0.09129658341407776,
-0.0355660617351532,
0.012487644329667091,
0.49597540497779846,
-0.00011002033716067672,
0.04339637607336044,
0.20303785800933838,
-0.08291979879140854,
-0.06672574579715729,
-0.41737350821495056,
0.07137777656316757,
-0.03901205211877823,
0.07075820863246918,
-0.05480702966451645,
0.15044903755187988,
0.1799488514661789,
0.14069077372550964,
-0.08047113567590714,
0.2613462805747986,
0.11551505327224731,
0.19440846145153046,
0.5661999583244324,
0.1144358217716217,
-0.07613590359687805,
-0.125260129570961,
0.21574874222278595,
-0.0322176069021225,
0.2660854458808899,
0.1158294752240181,
-0.1664746105670929,
-0.25670453906059265,
0.20814359188079834,
-0.009197068400681019,
0.2851698696613312,
-0.15535275638103485,
0.3262344300746918,
0.09002913534641266,
-0.258921355009079,
0.12840504944324493,
0.397972971200943,
0.07846404612064362,
-0.2320564091205597,
-0.32317233085632324,
-0.06802244484424591,
-0.08543621003627777,
-0.1713578999042511,
0.087753526866436,
0.1660902053117752,
-0.11769440025091171,
0.0851682648062706,
-0.20291747152805328,
0.1319694072008133,
0.22070427238941193,
0.10398511588573456,
0.23207534849643707,
0.36223307251930237,
-0.031342197209596634,
0.36862078309059143,
0.2795686423778534,
-0.13734112679958344,
-0.2073916792869568,
-0.1868891417980194,
0.07206995785236359,
0.0632181391119957,
-0.04581954702734947,
-0.14083826541900635,
0.04550813511013985,
-0.09475696086883545,
0.07365632057189941,
-0.17858266830444336,
-0.1766464114189148,
0.17129747569561005,
-0.238975390791893,
0.3193748891353607,
0.3000181019306183,
-0.12721288204193115,
-0.09902699291706085,
0.20270377397537231,
0.4027111828327179,
-0.0739726647734642,
-0.2251318097114563,
0.11599544435739517,
0.3312566578388214,
-0.3447962701320648,
-0.10419481992721558,
0.15643315017223358,
0.3292235732078552,
-0.11150778084993362,
-0.14969748258590698,
-0.19455093145370483,
-0.13399091362953186,
-0.17258435487747192,
-0.010302385315299034,
0.29037460684776306,
0.059274859726428986,
0.34612083435058594,
0.05660802498459816,
0.1878034919500351,
-0.546713650226593,
-0.08292896300554276,
-0.33981049060821533,
0.218927264213562,
-0.1916942447423935,
0.0626068264245987,
0.22208352386951447,
0.26731452345848083,
0.3550158441066742,
0.19946999847888947,
-0.03712659701704979,
-0.15230952203273773,
0.23511946201324463,
-0.24940341711044312,
-0.12878966331481934,
0.1925625205039978,
0.16525572538375854,
0.2886992394924164,
0.2680857479572296,
-0.3080250024795532,
-0.06359418481588364,
0.07830428332090378,
-0.237054243683815,
-0.2890685498714447,
-0.07295622676610947,
0.13965019583702087,
-0.014291075989603996,
0.12578842043876648,
-0.16990919411182404,
0.04475616663694382,
0.43159228563308716,
-0.04975884407758713,
-0.18824373185634613,
-0.2977280020713806,
-0.39392536878585815,
-0.22074945271015167,
-0.03784913569688797,
0.3762211203575134,
-0.23416686058044434,
-0.15204031765460968,
0.19775822758674622,
-0.12353719770908356,
0.5048830509185791,
0.5401948094367981,
-0.2475932538509369,
-0.08227647095918655,
-0.1492326706647873,
0.6606734991073608,
0.03607119992375374,
0.10968546569347382,
-0.2572195827960968,
0.2026088833808899,
-0.09889494627714157,
-0.11149950325489044,
-0.0841936394572258,
0.03705013170838356,
-0.3572828769683838,
-0.03266797214746475,
0.40614351630210876,
0.13512395322322845,
0.0573740229010582,
0.19235631823539734,
-0.27117201685905457,
-0.3141670823097229,
0.169752836227417,
-0.054476842284202576,
0.06852927803993225,
-0.27578893303871155,
-0.12620095908641815,
-0.08963178843259811,
0.4380547106266022,
-0.2241078019142151,
0.07926015555858612,
-0.0038884389214217663,
0.1627584993839264,
-0.051541056483983994,
-0.02011076547205448,
-0.23383748531341553,
-0.5796085596084595,
0.28781867027282715,
-0.22332914173603058,
0.2118992656469345,
-0.0640438124537468,
-0.13443568348884583,
0.27680662274360657,
-0.016978923231363297,
-0.32596883177757263,
-0.06861774623394012,
0.07566088438034058,
0.07221779972314835,
0.050903450697660446,
-0.18227283656597137,
-0.08427806198596954,
-0.11655867844820023,
-0.10495354235172272,
-0.014997136779129505,
-0.4686058759689331,
0.04257278889417648,
-0.4037327170372009,
-0.4181520938873291,
-0.1895165890455246,
0.207624614238739,
0.10675132274627686,
-0.006862427107989788,
-0.11716950684785843,
0.13696637749671936,
0.15026147663593292,
-0.046110957860946655,
-0.04951416701078415,
0.05626586824655533,
-0.019087249413132668,
-0.09612809121608734,
0.021798929199576378,
0.21985705196857452,
0.11031979322433472,
-0.1780938059091568,
-0.21470710635185242,
0.4751461446285248,
0.028407428413629532,
0.2698734402656555,
0.041677843779325485,
0.09579988569021225,
0.22422854602336884,
0.041359689086675644,
0.13225460052490234,
-0.1709280163049698,
0.16770902276039124,
0.17140628397464752,
0.1670324206352234,
0.09131982922554016,
-0.2392711043357849,
0.039523445069789886,
0.5964309573173523,
0.20254887640476227,
0.4119848608970642,
0.008131204172968864,
-0.2059067040681839,
-0.13738864660263062,
-0.19424545764923096,
0.032580260187387466,
0.6064073443412781,
0.16130051016807556,
0.06438581645488739,
0.0018839123658835888,
-0.1250699907541275,
-0.11863664537668228,
0.012186834588646889,
-0.015712538734078407,
0.038368336856365204,
0.13910628855228424,
0.11017721146345139,
-0.07655658572912216,
-0.3033146262168884,
-0.1031184196472168,
0.010304288007318974,
0.3184675872325897,
-0.3177979290485382,
0.01453846599906683,
-0.33260518312454224,
0.4729813039302826,
-0.23474988341331482,
0.009745493531227112,
-0.19180409610271454,
-0.2922731041908264,
-0.1737028807401657,
0.3688522279262543,
-0.22110995650291443,
0.15469025075435638,
0.1278083175420761,
-0.20746222138404846,
-0.10400610417127609,
0.23589111864566803,
0.07289481908082962,
-0.07714447379112244,
-0.2809193730354309,
-0.0019133457681164145,
0.40488722920417786,
-0.0430670902132988,
0.04712337255477905,
0.15361250936985016,
-0.25862476229667664,
-0.05538639426231384,
-0.13959847390651703,
0.07913271337747574,
-0.07616851478815079,
0.22843560576438904,
0.29757437109947205,
0.25312989950180054,
-0.02032661810517311,
-0.30278974771499634,
0.27819880843162537,
-0.2991170585155487,
-0.19056347012519836,
-0.04216410219669342,
0.07795368880033493,
-0.11819034814834595,
-0.36454957723617554,
-0.39522355794906616,
-0.4591900110244751,
-0.33458778262138367,
0.4066636264324188,
-0.0599520206451416,
0.16278080642223358,
0.28417152166366577,
0.17496517300605774,
0.2511926293373108,
0.12706655263900757,
-0.17673249542713165,
-0.28836315870285034,
0.16194792091846466,
0.22296732664108276,
0.01864316128194332,
-0.2608919143676758,
-0.04888392612338066,
-0.16836236417293549,
-0.04116695746779442,
-0.20991827547550201,
-0.16195376217365265,
0.06790821254253387,
-0.4185376465320587,
0.2506229877471924,
0.10129547119140625,
0.2987336814403534,
0.6218906044960022,
0.27334779500961304,
-0.15714485943317413,
-0.04585900902748108,
-0.2676425874233246,
0.1766682267189026,
0.20726847648620605,
0.25162896513938904,
-0.0044125160202383995,
0.1994468718767166,
-0.00904896855354309,
0.7935595512390137,
0.25887569785118103,
-0.22743640840053558,
0.2747073471546173,
0.0024317309726029634,
-0.17757779359817505,
-0.08380772918462753,
-0.15732955932617188,
-0.06351986527442932,
-0.3232713043689728,
0.10696779936552048,
0.22163303196430206,
-0.11394809186458588,
-0.1790083795785904,
0.05172174796462059,
0.1503135710954666,
-0.09146235138177872,
-0.2932104468345642,
0.49177777767181396,
0.20861586928367615,
-0.10759847611188889,
0.057408545166254044,
-0.05663130432367325,
-0.12717537581920624,
0.04057270288467407,
-0.0875590443611145,
0.01434068288654089,
0.011015965603291988,
-0.1077001690864563,
-0.1765754222869873,
-0.20577500760555267,
-0.5075411200523376,
0.503591001033783,
0.12886856496334076,
0.30688905715942383,
-0.10782209038734436,
-0.2095699906349182,
-0.06163300946354866,
-0.0828852429986,
0.8502633571624756,
-0.3850918412208557,
0.010037822648882866,
0.11937008053064346,
-0.23916316032409668,
-0.2514417767524719,
-0.2370385378599167,
-0.2766326665878296,
0.37880539894104004,
0.32120972871780396,
0.49166232347488403,
-0.23725897073745728,
-0.10248976945877075,
0.35465437173843384,
0.01738797128200531,
-0.1381927877664566,
-0.3041335344314575,
-0.34893110394477844,
-0.2444818913936615,
-0.456997275352478,
-0.07686299085617065,
0.22369468212127686,
0.146245077252388,
-0.17811326682567596,
0.056918252259492874,
-0.0031955165322870016,
-0.24901343882083893,
0.24928231537342072,
0.025197012349963188,
0.1551801711320877,
0.20632754266262054,
0.006600659806281328,
-0.0015962566249072552,
0.22424937784671783,
-0.1629241555929184,
0.24979698657989502,
-0.16910997033119202,
0.007037260569632053,
0.29450172185897827,
-0.25296756625175476,
0.3081231117248535,
0.17721408605575562,
0.05884690210223198,
0.32148998975753784,
0.21851690113544464,
0.3157059848308563,
-0.07874766737222672,
0.11289691925048828,
0.3214442729949951,
0.2550255060195923,
-0.1521226465702057,
-0.270174115896225,
0.5763699412345886,
0.20699132978916168,
0.07110672444105148,
0.27964654564857483,
-0.2895086407661438,
-0.2001236379146576,
0.19523955881595612,
-0.08531071990728378,
0.8592373728752136,
-0.03345359116792679,
0.1365753710269928,
0.10396275669336319,
0.04014192521572113,
0.3963150382041931,
0.1884869635105133,
0.14580033719539642,
-0.42859143018722534,
0.019972532987594604,
0.006362955551594496,
-0.15615858137607574,
0.06997933983802795,
0.1950138956308365,
-0.4718109965324402,
0.39893752336502075,
-0.15402428805828094,
-0.1372062712907791,
-0.020968444645404816,
0.2605492174625397,
0.04448825120925903,
-0.2674723267555237,
0.09877458959817886,
0.10683091729879379,
-0.09737284481525421,
0.250997930765152,
0.09816893190145493,
-0.015407774597406387,
0.07682617008686066,
-0.3066433072090149,
-0.3827332854270935,
0.11944563686847687,
-0.2119661569595337,
0.5681127309799194,
0.2654305398464203,
0.11764319241046906,
0.3349757492542267,
0.14744259417057037,
0.004298762418329716,
0.12446620315313339,
-0.12848752737045288,
-0.013692812994122505,
0.030050162225961685,
0.12238341569900513,
-0.21383269131183624,
-0.019731691107153893,
0.2193789780139923,
0.038054876029491425,
-0.3936788737773895,
-0.16135892271995544,
-0.08267196267843246,
0.06409475952386856,
-0.14606693387031555,
0.02843407355248928,
0.02397928014397621,
-0.22338272631168365,
-0.4673127233982086,
0.060594748705625534,
-0.35974249243736267,
-0.23938922584056854,
0.10978496074676514,
-0.025140712037682533,
-0.42065930366516113,
0.23207128047943115,
0.09840686619281769,
-0.2648563086986542,
0.09744834154844284,
0.4654230773448944,
0.1427571177482605,
0.39382946491241455,
0.6578117609024048,
0.48163262009620667,
-0.1619143784046173,
-0.21772827208042145,
-0.1378336399793625,
0.25590184330940247,
-0.5192022323608398,
0.26362523436546326,
0.12617115676403046,
-0.15654340386390686,
-0.024752521887421608,
0.3667330741882324,
0.04229287803173065,
0.2563847005367279,
-0.22223548591136932,
-0.28466033935546875,
-0.4323418438434601,
0.04121842235326767,
-0.012455705553293228,
0.15849071741104126,
0.03773297742009163,
0.4392094016075134,
0.07252237200737,
0.3446767032146454,
-0.3166031241416931,
0.10158910602331161,
-0.459254652261734,
0.12705060839653015,
0.08695457875728607,
-0.3884998559951782,
0.007180614862591028,
0.10283883661031723,
0.10863649100065231,
0.30900031328201294,
-0.29942482709884644,
-0.23484714329242706,
-0.22640277445316315,
0.0722891315817833,
-0.06925445050001144,
-0.05940142273902893,
0.21242763102054596,
0.22667621076107025,
-0.03295062109827995,
-0.1760733723640442,
-0.0075880554504692554,
0.052118171006441116,
-0.010445918887853622,
0.1474795937538147,
0.21945494413375854,
0.019567085430026054,
-0.11889604479074478,
0.0047814263962209225,
-0.2407388538122177,
0.030296364799141884,
0.14272724092006683,
0.012420406565070152,
0.14593861997127533,
0.0674339309334755,
-0.13457918167114258,
-0.17718075215816498,
0.08095499873161316,
0.13594506680965424,
-0.19076500833034515,
-0.3552045524120331,
-0.21116432547569275,
-0.1962960958480835,
0.2878011465072632,
0.1750219762325287,
-0.13388143479824066,
0.04252968356013298,
0.07110746204853058,
0.2294940948486328,
-0.38945141434669495,
0.10095953196287155,
0.31593507528305054,
-0.08129794150590897,
0.24176393449306488,
0.23468098044395447,
-0.10673325508832932,
0.16555064916610718,
-0.29352420568466187,
0.12670889496803284,
0.0022717358078807592,
-0.4911993145942688,
-0.009272581897675991,
0.09050866961479187,
-0.1272120326757431,
0.139316126704216,
0.3981228172779083,
-0.043810464441776276,
0.2180088311433792,
0.17343007028102875,
-0.029529018327593803,
0.28618624806404114,
-0.33719390630722046,
0.16034914553165436,
0.04284476116299629,
-0.6167393326759338,
0.22295193374156952,
0.30427104234695435,
-0.15452776849269867,
0.21044638752937317,
-0.030724382027983665,
0.36758020520210266,
-0.5919651985168457,
-0.19598525762557983,
-0.0851379781961441,
0.2790284752845764,
-0.3977424204349518,
-0.4198269546031952,
-0.03246621787548065,
-0.05472417175769806,
-0.21798034012317657,
0.057403646409511566,
-0.07103119045495987,
0.1367315948009491,
0.3471319377422333,
0.021595824509859085,
-0.14455533027648926,
-0.34879231452941895,
-0.1260671764612198,
-0.012696235440671444,
0.1340656280517578,
-0.2956922650337219,
0.06823605298995972,
0.27491578459739685,
-0.04596352577209473,
-0.5047231912612915,
0.22283631563186646,
0.559190571308136,
0.39883527159690857,
-0.3692159056663513,
0.07257500290870667,
-0.039594199508428574,
0.06188575178384781,
-0.10446996986865997,
0.07688134908676147,
0.09609382599592209,
0.14917093515396118,
0.22303083539009094,
0.11659814417362213,
-0.20960380136966705,
-0.08218850940465927,
0.12267912924289703,
0.3338046967983246,
0.05177946016192436,
0.42576900124549866,
-0.09363168478012085,
-0.2233308106660843,
-0.0471886582672596,
0.13819649815559387,
-0.4184854030609131,
0.21530574560165405,
0.5088746547698975,
-0.21763528883457184,
0.2733808159828186,
-0.0391264483332634,
0.09814474731683731,
-0.0012672102311626077,
0.6341002583503723,
0.1495898813009262,
0.023732298985123634,
-0.4357897937297821,
0.24684377014636993,
-0.5064618587493896,
0.03414788097143173,
-0.2610832452774048,
0.14380639791488647,
-0.37084847688674927,
0.3476608097553253,
0.12029378861188889,
-0.06318697333335876,
-0.009628369472920895,
0.3259035646915436,
0.21644991636276245,
0.35385245084762573,
-0.31523647904396057,
-0.15420204401016235,
-0.2725802958011627,
-0.21140313148498535,
0.3093433380126953,
-0.4370574355125427,
0.01296577975153923,
0.1691236048936844,
0.052018649876117706,
-0.36216434836387634,
0.0353427529335022,
0.005555526353418827,
0.15972870588302612,
-0.008219451643526554,
0.25785526633262634,
0.4893651604652405,
-0.21504837274551392,
-0.014704681001603603,
-0.09395764768123627,
-0.034874774515628815,
-0.16505444049835205,
0.02458699233829975,
0.09823666512966156,
0.5375679135322571,
-0.23324425518512726,
0.3349670469760895,
-0.429165780544281,
0.1068597137928009,
0.0017595869721844792,
0.07302259653806686,
-0.11257285624742508,
0.18445727229118347,
0.14451481401920319,
0.015393036417663097,
0.0043695783242583275,
0.3746373653411865,
0.012435037642717361,
-0.05912373587489128,
-0.19601911306381226,
-0.28344979882240295,
0.6401269435882568,
-0.29230108857154846,
-0.4539932310581207,
-0.42327481508255005,
0.15188774466514587,
-0.22872979938983917,
-0.07128672301769257,
-0.5009865760803223,
0.041450586169958115,
0.13671056926250458,
-0.024166591465473175,
-0.45826801657676697,
0.23896338045597076,
0.01220790483057499,
-0.2194102257490158,
-0.09122022241353989,
0.3244311511516571,
0.14234265685081482,
-0.29269155859947205,
0.1541835516691208,
-0.34222474694252014
] |
https://github.com/huggingface/datasets/issues/1766 | Issues when run two programs compute the same metrics | Hi ! To avoid collisions you can specify a `experiment_id` when instantiating your metric using `load_metric`. It will replace "default_experiment" with the experiment id that you provide in the arrow filename.
Also when two `experiment_id` collide we're supposed to detect it using our locking mechanism. Not sure why it didn't work in your case. Could you share some code that reproduces the issue ? This would help us investigate. | I got the following error when running two different programs that both compute sacreblue metrics. It seems that both read/and/write to the same location (.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow) where it caches the batches:
```
File "train_matching_min.py", line 160, in <module>ch_9_label
avg_loss = valid(epoch, args.batch, args.validation, args.with_label)
File "train_matching_min.py", line 93, in valid
bleu += eval.compute()
File "/u/tlhoang/projects/seal/match/models/eval.py", line 23, in compute
return self.metric.compute()['score']
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/metric.py", line 387, in compute
self._finalize()
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/metric.py", line 355, in _finalize
self.data = Dataset(**reader.read_files([{"filename": f} for f in file_paths]))
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/arrow_reader.py", line 231, in read_files
pa_table = self._read_files(files)
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/arrow_reader.py", line 170, in _read_files
pa_table: pa.Table = self._get_dataset_from_filename(f_dict)
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/arrow_reader.py", line 299, in _get_dataset_from_filename
pa_table = f.read_all()
File "pyarrow/ipc.pxi", line 481, in pyarrow.lib.RecordBatchReader.read_all
File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Expected to read 1819307375 metadata bytes, but only read 454396
``` | 69 | Issues when run two programs compute the same metrics
I got the following error when running two different programs that both compute sacreblue metrics. It seems that both read/and/write to the same location (.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow) where it caches the batches:
```
File "train_matching_min.py", line 160, in <module>ch_9_label
avg_loss = valid(epoch, args.batch, args.validation, args.with_label)
File "train_matching_min.py", line 93, in valid
bleu += eval.compute()
File "/u/tlhoang/projects/seal/match/models/eval.py", line 23, in compute
return self.metric.compute()['score']
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/metric.py", line 387, in compute
self._finalize()
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/metric.py", line 355, in _finalize
self.data = Dataset(**reader.read_files([{"filename": f} for f in file_paths]))
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/arrow_reader.py", line 231, in read_files
pa_table = self._read_files(files)
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/arrow_reader.py", line 170, in _read_files
pa_table: pa.Table = self._get_dataset_from_filename(f_dict)
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/arrow_reader.py", line 299, in _get_dataset_from_filename
pa_table = f.read_all()
File "pyarrow/ipc.pxi", line 481, in pyarrow.lib.RecordBatchReader.read_all
File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Expected to read 1819307375 metadata bytes, but only read 454396
```
Hi ! To avoid collisions you can specify a `experiment_id` when instantiating your metric using `load_metric`. It will replace "default_experiment" with the experiment id that you provide in the arrow filename.
Also when two `experiment_id` collide we're supposed to detect it using our locking mechanism. Not sure why it didn't work in your case. Could you share some code that reproduces the issue ? This would help us investigate. | [
-0.3611742854118347,
-0.1505344659090042,
-0.04318748414516449,
0.3872222602367401,
0.2670595347881317,
-0.10684029757976532,
0.08155117183923721,
0.3045555055141449,
-0.14090190827846527,
0.21661488711833954,
-0.3760763108730316,
-0.013459558598697186,
0.08526740223169327,
0.005194982048124075,
-0.18599960207939148,
-0.046062543988227844,
0.0034709027968347073,
-0.009413843043148518,
0.0772826075553894,
-0.0010645698057487607,
-0.2850642502307892,
0.22799880802631378,
0.016346542164683342,
0.2554323673248291,
-0.10162314772605896,
-0.10285624116659164,
-0.013551808893680573,
-0.1215876117348671,
-0.08570314198732376,
-0.47428983449935913,
0.43568485975265503,
0.02818635292351246,
-0.16046567261219025,
0.7840995192527771,
-0.00011886378342751414,
0.09906399250030518,
0.24837221205234528,
0.02584332600235939,
-0.07039563357830048,
-0.37163588404655457,
0.030529499053955078,
-0.05601269006729126,
0.15529271960258484,
-0.27520886063575745,
0.08796302229166031,
-0.14308972656726837,
0.09554857015609741,
-0.542746901512146,
0.38012465834617615,
0.16474317014217377,
0.15466751158237457,
0.5314350128173828,
-0.48682188987731934,
-0.1824205368757248,
0.12838581204414368,
-0.05794991925358772,
-0.05034011974930763,
0.5445209741592407,
0.0008057432132773101,
0.20440679788589478,
0.023587659001350403,
0.4144551157951355,
-0.11863972991704941,
0.2631288468837738,
0.057078562676906586,
0.09715499728918076,
0.40603262186050415,
-0.01586364209651947,
0.16569380462169647,
-0.12404348701238632,
0.2570585012435913,
-0.3838199973106384,
-0.22552892565727234,
0.1382775902748108,
-0.19872251152992249,
-0.5372887253761292,
0.18510326743125916,
0.13695739209651947,
-0.1783016324043274,
-0.17635652422904968,
-0.27794623374938965,
0.07205767184495926,
-0.21210400760173798,
-0.19637101888656616,
0.08150004595518112,
-0.2687271237373352,
-0.15741202235221863,
0.16433200240135193,
0.16940158605575562,
0.3121427297592163,
0.1240120604634285,
0.0018445306923240423,
-0.15531273186206818,
-0.008267899975180626,
-0.40277761220932007,
0.0542568601667881,
-0.30371150374412537,
-0.34377437829971313,
-0.0953909307718277,
0.28829139471054077,
0.3789706230163574,
-0.045194223523139954,
0.2840240001678467,
0.2224460393190384,
0.03092322126030922,
0.7004983425140381,
0.14985017478466034,
0.2902023494243622,
0.20090040564537048,
0.18106253445148468,
-0.3100051283836365,
-0.19136272370815277,
0.19901232421398163,
-0.5310232639312744,
0.24141310155391693,
0.2200145274400711,
-0.013256294652819633,
-0.3235706686973572,
-0.4480689764022827,
0.06154830753803253,
0.1938808709383011,
-0.04671370983123779,
0.1330564022064209,
0.31950291991233826,
0.03391507267951965,
0.012323823757469654,
0.12787547707557678,
0.4262724816799164,
-0.220941960811615,
0.21000510454177856,
-0.2910303771495819,
0.1002700999379158,
-0.44357380270957947,
0.3646079897880554,
0.04746653884649277,
-0.08391379565000534,
0.2243039757013321,
-0.03204658254981041,
0.40319427847862244,
-0.3089302182197571,
0.36521217226982117,
-0.4421752691268921,
-0.002997731324285269,
0.09540863335132599,
0.07820127159357071,
0.22512058913707733,
0.299571692943573,
-0.09814050048589706,
-0.08110488951206207,
-0.07388941943645477,
-0.18721017241477966,
-0.1491115689277649,
0.5365419387817383,
0.15635840594768524,
-0.013178830035030842,
0.4289543330669403,
-0.3462412655353546,
-0.0732097178697586,
0.3937607705593109,
-0.21731045842170715,
0.06996890157461166,
0.006571487057954073,
-0.40171018242836,
-0.3470822870731354,
0.14707456529140472,
0.3551437258720398,
-0.21173891425132751,
-0.07382600009441376,
0.2929491400718689,
0.12982869148254395,
-0.010283278301358223,
0.4685421288013458,
-0.22015538811683655,
0.1626342535018921,
-0.2866148352622986,
-0.024594085291028023,
0.5620933771133423,
-0.8298755884170532,
-0.3216198980808258,
0.11762522906064987,
-0.1634730100631714,
-0.33326879143714905,
0.0825219601392746,
0.042998943477869034,
0.32662591338157654,
-0.08760510385036469,
0.08907291293144226,
-0.22432588040828705,
0.13952264189720154,
-0.1509532779455185,
-0.3216230273246765,
-0.31514468789100647,
-0.06383317708969116,
-0.2678597867488861,
0.29744577407836914,
-0.04713994264602661,
0.24349649250507355,
-0.20637404918670654,
-0.06006849929690361,
-0.12155754864215851,
0.02003198303282261,
0.2438928782939911,
0.18840844929218292,
-0.028604913502931595,
0.09913497418165207,
-0.28509068489074707,
0.29250285029411316,
0.14487415552139282,
-0.5383431911468506,
-0.29613587260246277,
0.16910673677921295,
-0.20051096379756927,
-0.1927509903907776,
-0.08577673882246017,
-0.07063890993595123,
-0.1958034485578537,
0.06590214371681213,
0.1360587328672409,
0.2209206372499466,
0.27802136540412903,
-0.05762823671102524,
0.311804860830307,
-0.05844675004482269,
0.07076775282621384,
-0.09735064208507538,
0.07383116334676743,
-0.1232285127043724,
-0.2663715183734894,
-0.09806031733751297,
0.07870854437351227,
0.37636059522628784,
-0.022603796795010567,
-0.16812391579151154,
0.3127592206001282,
-0.11685364693403244,
0.21608678996562958,
0.1792309284210205,
0.11884188652038574,
0.17213167250156403,
-0.2322571873664856,
0.004848768003284931,
-0.03860710188746452,
0.19459372758865356,
-0.09878011047840118,
0.4015485346317291,
0.29533275961875916,
-0.02289089746773243,
0.12966179847717285,
0.2755025029182434,
0.017034562304615974,
-0.10075210779905319,
0.02855534479022026,
0.17278650403022766,
-0.1901310384273529,
0.302391916513443,
-0.09715142846107483,
0.052162788808345795,
-0.1124897226691246,
0.09680350124835968,
-0.10436326265335083,
0.13555727899074554,
0.16272258758544922,
-0.0012208221014589071,
-0.16955441236495972,
-0.036949727684259415,
0.07328761368989944,
-0.2711121737957001,
0.2889000475406647,
0.7128475308418274,
0.022904427722096443,
0.15263143181800842,
0.133012056350708,
0.018837610259652138,
-0.17603333294391632,
0.14531569182872772,
0.20944255590438843,
-0.10755976289510727,
0.09937851876020432,
0.16622225940227509,
-0.08168736845254898,
-0.036456797271966934,
0.09034070372581482,
0.038122620433568954,
-0.021395139396190643,
-0.16473928093910217,
0.3923782706260681,
-0.021971505135297775,
0.07535602152347565,
-0.5359923839569092,
0.014176891185343266,
-0.02881649136543274,
-0.1689182072877884,
-0.10039277374744415,
0.3601459562778473,
0.04996785148978233,
0.07074523717164993,
-0.23019398748874664,
0.5003136992454529,
-0.27543771266937256,
0.2575497329235077,
0.021313665434718132,
-0.15510444343090057,
-0.3020186722278595,
-0.0712803453207016,
0.16850516200065613,
0.06055011227726936,
0.3412746787071228,
-0.17549455165863037,
-0.06994932889938354,
-0.20886321365833282,
-0.18692411482334137,
-0.044957373291254044,
0.28859925270080566,
0.4888949692249298,
-0.052545156329870224,
-0.13934873044490814,
-0.3070410192012787,
-0.34690040349960327,
0.3138328194618225,
-0.4048357903957367,
-0.20791901648044586,
-0.13243114948272705,
0.015044850297272205,
-0.22898390889167786,
-0.18729551136493683,
-0.10687541216611862,
-0.024506783112883568,
-0.2213674634695053,
0.20838670432567596,
-0.2001255303621292,
0.0360720157623291,
0.07124735414981842,
-0.1740557700395584,
0.114275723695755,
0.0748572051525116,
0.11120052635669708,
-0.27788296341896057,
-0.19417476654052734,
0.022259103134274483,
-0.4008956253528595,
-0.1950283646583557,
-0.04202120751142502,
0.13637778162956238,
0.45997366309165955,
0.23688504099845886,
-0.4259491264820099,
-0.4368486702442169,
-0.16821880638599396,
-0.11737597733736038,
0.10201533883810043,
-0.041861359030008316,
0.0551191084086895,
-0.06823020428419113,
-0.1335441619157791,
-0.15035076439380646,
-0.19333216547966003,
0.5020690560340881,
-0.2520495653152466,
0.06857369840145111,
-0.16039666533470154,
-0.12222668528556824,
0.04430065304040909,
0.8054547905921936,
0.41464272141456604,
0.08388268947601318,
0.3142865300178528,
0.2035723477602005,
0.3654496371746063,
0.003969212062656879,
-0.38868552446365356,
0.18849264085292816,
0.02006550505757332,
-0.2714690864086151,
0.1279638260602951,
-0.08589986711740494,
0.10546611249446869,
-0.14740003645420074,
-0.11587335169315338,
-0.21376566588878632,
-0.09552489221096039,
-0.14896994829177856,
-0.2166234254837036,
0.2357061356306076,
0.08295692503452301,
0.09117317199707031,
-0.32166996598243713,
0.02771635167300701,
0.22083060443401337,
0.2361791729927063,
-0.28037118911743164,
0.024319324642419815,
-0.14500728249549866,
-0.1817682981491089,
-0.22255532443523407,
0.5148038268089294,
0.0891621857881546,
0.24469996988773346,
-0.2091473937034607,
0.14087837934494019,
0.05233136937022209,
-0.07097135484218597,
0.6638154983520508,
-0.07394774258136749,
-0.0868658497929573,
-0.11097940802574158,
-0.01937578245997429,
-0.40940433740615845,
-0.14190241694450378,
0.055073972791433334,
0.13664333522319794,
0.1798197627067566,
0.4839465320110321,
-0.12086004763841629,
-0.005178901832550764,
-0.015305900946259499,
0.012094549834728241,
-0.1854645311832428,
-0.20062825083732605,
-0.3357679545879364,
-0.3831155598163605,
0.073277547955513,
0.07374761998653412,
-0.01951245404779911,
0.04521384462714195,
-0.09378666430711746,
0.09406991302967072,
-0.17311272025108337,
0.04743461310863495,
0.24365724623203278,
-0.013380348682403564,
0.5679033994674683,
-0.3699100911617279,
0.11976228654384613,
0.27744367718696594,
0.08131594210863113,
0.2905482351779938,
0.26184889674186707,
-0.14876192808151245,
-0.4146740436553955,
0.11547940224409103,
0.08396842330694199,
-0.006802900228649378,
0.4959121346473694,
-0.1706467717885971,
0.19981050491333008,
-0.014372420497238636,
-0.05250675231218338,
0.12229092419147491,
0.07163869589567184,
0.2608545422554016,
0.30125656723976135,
-0.08179634064435959,
-0.18036073446273804,
0.00019428251835051924,
0.40886303782463074,
-0.11109662055969238,
0.4448750913143158,
-0.3718872368335724,
-0.13043047487735748,
0.18317358195781708,
0.20753970742225647,
1.1415233612060547,
0.10962014645338058,
0.09404271095991135,
0.3654060661792755,
-0.3788010776042938,
0.1448802798986435,
-0.1338842511177063,
0.35212332010269165,
-0.2913300693035126,
-0.4262790381908417,
0.04439833015203476,
-0.42348146438598633,
0.07847096025943756,
-0.25822535157203674,
-0.0987936332821846,
0.299401193857193,
-0.2575717270374298,
0.02285420149564743,
-0.16757464408874512,
-0.009480809792876244,
-0.1764463186264038,
0.1637747883796692,
0.2784408628940582,
0.11873939633369446,
-0.1347372978925705,
0.19182507693767548,
-0.19577963650226593,
-0.20621958374977112,
-0.2727340757846832,
-0.12412849813699722,
-0.19991005957126617,
0.12547650933265686,
-0.35914599895477295,
0.547730028629303,
-0.028982510790228844,
-0.1873505860567093,
-0.056438345462083817,
0.3179161846637726,
1.0567492246627808,
-0.03375173360109329,
-0.05322791263461113,
0.11152030527591705,
0.13227427005767822,
0.07698160409927368,
0.07886770367622375,
-0.4823549687862396,
0.12167932838201523,
-0.16219903528690338,
-0.20465806126594543,
-0.010240986943244934,
0.17127402126789093,
0.05454796180129051,
0.14362333714962006,
0.006504314485937357,
-0.0442720428109169,
-0.1453603357076645,
0.07130865007638931,
0.0538247749209404,
-0.03823046758770943,
-0.14293958246707916,
0.03658588230609894,
-0.05032443627715111,
-0.20491698384284973,
0.12930828332901,
-0.21363948285579681,
-0.3586629629135132,
0.16017931699752808,
0.23918209969997406,
0.3221597969532013,
-0.3406074643135071,
0.5207618474960327,
-0.4181826412677765,
-0.1647207885980606,
-0.12292802333831787,
-0.4281490445137024,
-0.1048445925116539,
-0.48585647344589233,
0.3519488573074341,
-0.3284839689731598,
-0.023038377985358238,
-0.1290416717529297,
0.42358729243278503,
0.3696025013923645,
0.2082638293504715,
-0.051433172076940536,
-0.25757360458374023,
-0.3079732060432434,
0.06654314696788788,
-0.25606459379196167,
0.20943599939346313,
-0.06678251922130585,
0.20331703126430511,
-0.11510474979877472,
0.24687659740447998,
-0.22908291220664978,
0.14910899102687836,
-0.22358004748821259,
-0.057861216366291046,
-0.023992737755179405,
-0.30834078788757324,
0.2739688456058502,
0.058366283774375916,
-0.08296191692352295,
0.24497434496879578,
-0.4150685667991638,
-0.10257453471422195,
-0.17030687630176544,
0.1670020967721939,
-0.2010878026485443,
-0.1663452833890915,
-0.16397541761398315,
-0.08493779599666595,
0.29170989990234375,
-0.09668412804603577,
0.038524217903614044,
0.4952760636806488,
-0.004727386869490147,
-0.18257096409797668,
-0.08010159432888031,
0.35791316628456116,
0.07604247331619263,
0.3112906515598297,
0.07226967811584473,
-0.08911722153425217,
0.04557068273425102,
0.22494438290596008,
-0.17519816756248474,
-0.15445363521575928,
-0.21517439186573029,
-0.10359495133161545,
0.10238046944141388,
0.11730285733938217,
-0.2384694367647171,
-0.37893083691596985,
-0.27736809849739075,
0.049262575805187225,
0.23944507539272308,
0.15939047932624817,
-0.022152971476316452,
-0.16762684285640717,
0.0452718660235405,
0.12178047001361847,
0.003555482951924205,
0.010083489120006561,
0.07127940654754639,
-0.06657084077596664,
-0.26974332332611084,
0.2501280605792999,
0.43670496344566345,
-0.059539660811424255,
0.2153593897819519,
0.08357366919517517,
0.3153461515903473,
-0.3591236174106598,
0.48098719120025635,
-0.3079814612865448,
0.25621354579925537,
0.22918519377708435,
0.2896818220615387,
0.140216663479805,
0.16424623131752014,
-0.16155020892620087,
-0.2578149735927582,
0.32888269424438477,
0.10091462731361389,
-0.06562463939189911,
-0.1758931279182434,
-0.1831432431936264,
-0.12390054762363434,
-0.11554168909788132,
-0.11641635745763779,
0.15365558862686157,
-0.07425256073474884,
0.4652305841445923,
-0.2960214912891388,
-0.33967652916908264,
-0.23517294228076935,
0.09778334200382233,
-0.2720488905906677,
-0.10778763145208359,
0.031490158289670944,
-0.31711265444755554,
0.22783425450325012,
0.04680359736084938,
0.24422061443328857,
0.21211107075214386,
0.2209790199995041,
0.04652100428938866,
-0.24910056591033936,
0.06072031334042549,
-0.2737986147403717,
0.6104675531387329,
0.0576188750565052,
-0.11997581273317337,
0.32982248067855835,
0.22804617881774902,
-0.04174945503473282,
0.04151128605008125,
0.6623186469078064,
0.5221059322357178,
0.36180028319358826,
0.09108133614063263,
-0.11469458043575287,
0.23420606553554535,
0.12283063679933548,
-0.014762421138584614,
0.17361047863960266,
0.2521834075450897,
-0.19602392613887787,
0.24716916680335999,
0.15071071684360504,
-0.11467907577753067,
0.3636130690574646,
-0.06445309519767761,
0.20040017366409302,
-0.29094603657722473,
0.2844318449497223,
-0.1778314858675003,
0.02057822048664093,
-0.19672909379005432,
-0.04218342527747154,
-0.5328442454338074,
0.10239998996257782,
0.2991533577442169,
-0.17903637886047363,
0.239109605550766,
-0.09700638800859451,
0.07179585099220276,
0.18408122658729553,
0.24527610838413239,
0.4780634939670563,
0.12574096024036407,
-0.5874686241149902,
0.05412138253450394,
-0.4772074818611145,
0.4764412045478821,
0.059209972620010376,
0.4164777398109436,
-0.29253870248794556,
0.25833943486213684,
-0.24825213849544525,
-0.1623590737581253,
0.4818668067455292,
0.18853911757469177,
-0.03088308870792389,
0.06821535527706146,
-0.5626351833343506,
0.1788061112165451,
0.04102947935461998,
-0.31437310576438904,
0.2532077133655548,
-0.3407096266746521,
0.02912348322570324,
0.0009256636258214712,
0.03304700180888176,
0.2292572408914566,
0.05430970340967178,
0.0794537365436554,
-0.0988798588514328,
0.33971285820007324,
0.17242848873138428,
0.38383543491363525,
0.08642730861902237,
0.015271243639290333,
-0.06338562816381454,
-0.11083263903856277,
-0.24124816060066223,
-0.11479811370372772,
0.03567202761769295,
0.22264470160007477,
-0.5101049542427063,
0.05442199856042862,
-0.38176557421684265,
0.20330582559108734,
0.24251309037208557,
-0.2194538414478302,
0.05287889018654823,
-0.09754274785518646,
0.019844595342874527,
0.01631258986890316,
0.45290637016296387,
0.40420860052108765,
0.09369027614593506,
0.4554380476474762,
-0.33608558773994446,
-0.12962467968463898,
0.576347827911377,
-0.5234944820404053,
-0.27803945541381836,
0.11900453269481659,
0.44339096546173096,
0.3934994339942932,
0.001324778189882636,
-0.653067409992218,
-0.0659773200750351,
0.27898502349853516,
-0.16010768711566925,
-0.05280226096510887,
0.17291989922523499,
-0.3497539460659027,
-0.009457355365157127,
0.10649700462818146,
0.014875886961817741,
0.026049280539155006,
-0.35961857438087463,
0.08319078385829926,
-0.2089136838912964
] |
https://github.com/huggingface/datasets/issues/1766 | Issues when run two programs compute the same metrics | Thank you for your response. I fixed the issue by set "keep_in_memory=True" when load_metric.
I cannot share the entire source code but below is the wrapper I wrote:
```python
class Evaluation:
def __init__(self, metric='sacrebleu'):
# self.metric = load_metric(metric, keep_in_memory=True)
self.metric = load_metric(metric)
def add(self, predictions, references):
self.metric.add_batch(predictions=predictions, references=references)
def compute(self):
return self.metric.compute()['score']
```
Then call the given wrapper as follows:
```python
eval = Evaluation(metric='sacrebleu')
for query, candidates, labels in tqdm(dataset):
predictions = net.generate(query)
references = [[s] for s in labels]
eval.add(predictions, references)
if n % 100 == 0:
bleu += eval.compute()
eval = Evaluation(metric='sacrebleu') | I got the following error when running two different programs that both compute sacreblue metrics. It seems that both read/and/write to the same location (.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow) where it caches the batches:
```
File "train_matching_min.py", line 160, in <module>ch_9_label
avg_loss = valid(epoch, args.batch, args.validation, args.with_label)
File "train_matching_min.py", line 93, in valid
bleu += eval.compute()
File "/u/tlhoang/projects/seal/match/models/eval.py", line 23, in compute
return self.metric.compute()['score']
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/metric.py", line 387, in compute
self._finalize()
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/metric.py", line 355, in _finalize
self.data = Dataset(**reader.read_files([{"filename": f} for f in file_paths]))
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/arrow_reader.py", line 231, in read_files
pa_table = self._read_files(files)
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/arrow_reader.py", line 170, in _read_files
pa_table: pa.Table = self._get_dataset_from_filename(f_dict)
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/arrow_reader.py", line 299, in _get_dataset_from_filename
pa_table = f.read_all()
File "pyarrow/ipc.pxi", line 481, in pyarrow.lib.RecordBatchReader.read_all
File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Expected to read 1819307375 metadata bytes, but only read 454396
``` | 94 | Issues when run two programs compute the same metrics
I got the following error when running two different programs that both compute sacreblue metrics. It seems that both read/and/write to the same location (.cache/huggingface/metrics/sacrebleu/default/default_experiment-1-0.arrow) where it caches the batches:
```
File "train_matching_min.py", line 160, in <module>ch_9_label
avg_loss = valid(epoch, args.batch, args.validation, args.with_label)
File "train_matching_min.py", line 93, in valid
bleu += eval.compute()
File "/u/tlhoang/projects/seal/match/models/eval.py", line 23, in compute
return self.metric.compute()['score']
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/metric.py", line 387, in compute
self._finalize()
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/metric.py", line 355, in _finalize
self.data = Dataset(**reader.read_files([{"filename": f} for f in file_paths]))
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/arrow_reader.py", line 231, in read_files
pa_table = self._read_files(files)
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/arrow_reader.py", line 170, in _read_files
pa_table: pa.Table = self._get_dataset_from_filename(f_dict)
File "/dccstor/know/anaconda3/lib/python3.7/site-packages/datasets/arrow_reader.py", line 299, in _get_dataset_from_filename
pa_table = f.read_all()
File "pyarrow/ipc.pxi", line 481, in pyarrow.lib.RecordBatchReader.read_all
File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Expected to read 1819307375 metadata bytes, but only read 454396
```
Thank you for your response. I fixed the issue by set "keep_in_memory=True" when load_metric.
I cannot share the entire source code but below is the wrapper I wrote:
```python
class Evaluation:
def __init__(self, metric='sacrebleu'):
# self.metric = load_metric(metric, keep_in_memory=True)
self.metric = load_metric(metric)
def add(self, predictions, references):
self.metric.add_batch(predictions=predictions, references=references)
def compute(self):
return self.metric.compute()['score']
```
Then call the given wrapper as follows:
```python
eval = Evaluation(metric='sacrebleu')
for query, candidates, labels in tqdm(dataset):
predictions = net.generate(query)
references = [[s] for s in labels]
eval.add(predictions, references)
if n % 100 == 0:
bleu += eval.compute()
eval = Evaluation(metric='sacrebleu') | [
-0.3611742854118347,
-0.1505344659090042,
-0.04318748414516449,
0.3872222602367401,
0.2670595347881317,
-0.10684029757976532,
0.08155117183923721,
0.3045555055141449,
-0.14090190827846527,
0.21661488711833954,
-0.3760763108730316,
-0.013459558598697186,
0.08526740223169327,
0.005194982048124075,
-0.18599960207939148,
-0.046062543988227844,
0.0034709027968347073,
-0.009413843043148518,
0.0772826075553894,
-0.0010645698057487607,
-0.2850642502307892,
0.22799880802631378,
0.016346542164683342,
0.2554323673248291,
-0.10162314772605896,
-0.10285624116659164,
-0.013551808893680573,
-0.1215876117348671,
-0.08570314198732376,
-0.47428983449935913,
0.43568485975265503,
0.02818635292351246,
-0.16046567261219025,
0.7840995192527771,
-0.00011886378342751414,
0.09906399250030518,
0.24837221205234528,
0.02584332600235939,
-0.07039563357830048,
-0.37163588404655457,
0.030529499053955078,
-0.05601269006729126,
0.15529271960258484,
-0.27520886063575745,
0.08796302229166031,
-0.14308972656726837,
0.09554857015609741,
-0.542746901512146,
0.38012465834617615,
0.16474317014217377,
0.15466751158237457,
0.5314350128173828,
-0.48682188987731934,
-0.1824205368757248,
0.12838581204414368,
-0.05794991925358772,
-0.05034011974930763,
0.5445209741592407,
0.0008057432132773101,
0.20440679788589478,
0.023587659001350403,
0.4144551157951355,
-0.11863972991704941,
0.2631288468837738,
0.057078562676906586,
0.09715499728918076,
0.40603262186050415,
-0.01586364209651947,
0.16569380462169647,
-0.12404348701238632,
0.2570585012435913,
-0.3838199973106384,
-0.22552892565727234,
0.1382775902748108,
-0.19872251152992249,
-0.5372887253761292,
0.18510326743125916,
0.13695739209651947,
-0.1783016324043274,
-0.17635652422904968,
-0.27794623374938965,
0.07205767184495926,
-0.21210400760173798,
-0.19637101888656616,
0.08150004595518112,
-0.2687271237373352,
-0.15741202235221863,
0.16433200240135193,
0.16940158605575562,
0.3121427297592163,
0.1240120604634285,
0.0018445306923240423,
-0.15531273186206818,
-0.008267899975180626,
-0.40277761220932007,
0.0542568601667881,
-0.30371150374412537,
-0.34377437829971313,
-0.0953909307718277,
0.28829139471054077,
0.3789706230163574,
-0.045194223523139954,
0.2840240001678467,
0.2224460393190384,
0.03092322126030922,
0.7004983425140381,
0.14985017478466034,
0.2902023494243622,
0.20090040564537048,
0.18106253445148468,
-0.3100051283836365,
-0.19136272370815277,
0.19901232421398163,
-0.5310232639312744,
0.24141310155391693,
0.2200145274400711,
-0.013256294652819633,
-0.3235706686973572,
-0.4480689764022827,
0.06154830753803253,
0.1938808709383011,
-0.04671370983123779,
0.1330564022064209,
0.31950291991233826,
0.03391507267951965,
0.012323823757469654,
0.12787547707557678,
0.4262724816799164,
-0.220941960811615,
0.21000510454177856,
-0.2910303771495819,
0.1002700999379158,
-0.44357380270957947,
0.3646079897880554,
0.04746653884649277,
-0.08391379565000534,
0.2243039757013321,
-0.03204658254981041,
0.40319427847862244,
-0.3089302182197571,
0.36521217226982117,
-0.4421752691268921,
-0.002997731324285269,
0.09540863335132599,
0.07820127159357071,
0.22512058913707733,
0.299571692943573,
-0.09814050048589706,
-0.08110488951206207,
-0.07388941943645477,
-0.18721017241477966,
-0.1491115689277649,
0.5365419387817383,
0.15635840594768524,
-0.013178830035030842,
0.4289543330669403,
-0.3462412655353546,
-0.0732097178697586,
0.3937607705593109,
-0.21731045842170715,
0.06996890157461166,
0.006571487057954073,
-0.40171018242836,
-0.3470822870731354,
0.14707456529140472,
0.3551437258720398,
-0.21173891425132751,
-0.07382600009441376,
0.2929491400718689,
0.12982869148254395,
-0.010283278301358223,
0.4685421288013458,
-0.22015538811683655,
0.1626342535018921,
-0.2866148352622986,
-0.024594085291028023,
0.5620933771133423,
-0.8298755884170532,
-0.3216198980808258,
0.11762522906064987,
-0.1634730100631714,
-0.33326879143714905,
0.0825219601392746,
0.042998943477869034,
0.32662591338157654,
-0.08760510385036469,
0.08907291293144226,
-0.22432588040828705,
0.13952264189720154,
-0.1509532779455185,
-0.3216230273246765,
-0.31514468789100647,
-0.06383317708969116,
-0.2678597867488861,
0.29744577407836914,
-0.04713994264602661,
0.24349649250507355,
-0.20637404918670654,
-0.06006849929690361,
-0.12155754864215851,
0.02003198303282261,
0.2438928782939911,
0.18840844929218292,
-0.028604913502931595,
0.09913497418165207,
-0.28509068489074707,
0.29250285029411316,
0.14487415552139282,
-0.5383431911468506,
-0.29613587260246277,
0.16910673677921295,
-0.20051096379756927,
-0.1927509903907776,
-0.08577673882246017,
-0.07063890993595123,
-0.1958034485578537,
0.06590214371681213,
0.1360587328672409,
0.2209206372499466,
0.27802136540412903,
-0.05762823671102524,
0.311804860830307,
-0.05844675004482269,
0.07076775282621384,
-0.09735064208507538,
0.07383116334676743,
-0.1232285127043724,
-0.2663715183734894,
-0.09806031733751297,
0.07870854437351227,
0.37636059522628784,
-0.022603796795010567,
-0.16812391579151154,
0.3127592206001282,
-0.11685364693403244,
0.21608678996562958,
0.1792309284210205,
0.11884188652038574,
0.17213167250156403,
-0.2322571873664856,
0.004848768003284931,
-0.03860710188746452,
0.19459372758865356,
-0.09878011047840118,
0.4015485346317291,
0.29533275961875916,
-0.02289089746773243,
0.12966179847717285,
0.2755025029182434,
0.017034562304615974,
-0.10075210779905319,
0.02855534479022026,
0.17278650403022766,
-0.1901310384273529,
0.302391916513443,
-0.09715142846107483,
0.052162788808345795,
-0.1124897226691246,
0.09680350124835968,
-0.10436326265335083,
0.13555727899074554,
0.16272258758544922,
-0.0012208221014589071,
-0.16955441236495972,
-0.036949727684259415,
0.07328761368989944,
-0.2711121737957001,
0.2889000475406647,
0.7128475308418274,
0.022904427722096443,
0.15263143181800842,
0.133012056350708,
0.018837610259652138,
-0.17603333294391632,
0.14531569182872772,
0.20944255590438843,
-0.10755976289510727,
0.09937851876020432,
0.16622225940227509,
-0.08168736845254898,
-0.036456797271966934,
0.09034070372581482,
0.038122620433568954,
-0.021395139396190643,
-0.16473928093910217,
0.3923782706260681,
-0.021971505135297775,
0.07535602152347565,
-0.5359923839569092,
0.014176891185343266,
-0.02881649136543274,
-0.1689182072877884,
-0.10039277374744415,
0.3601459562778473,
0.04996785148978233,
0.07074523717164993,
-0.23019398748874664,
0.5003136992454529,
-0.27543771266937256,
0.2575497329235077,
0.021313665434718132,
-0.15510444343090057,
-0.3020186722278595,
-0.0712803453207016,
0.16850516200065613,
0.06055011227726936,
0.3412746787071228,
-0.17549455165863037,
-0.06994932889938354,
-0.20886321365833282,
-0.18692411482334137,
-0.044957373291254044,
0.28859925270080566,
0.4888949692249298,
-0.052545156329870224,
-0.13934873044490814,
-0.3070410192012787,
-0.34690040349960327,
0.3138328194618225,
-0.4048357903957367,
-0.20791901648044586,
-0.13243114948272705,
0.015044850297272205,
-0.22898390889167786,
-0.18729551136493683,
-0.10687541216611862,
-0.024506783112883568,
-0.2213674634695053,
0.20838670432567596,
-0.2001255303621292,
0.0360720157623291,
0.07124735414981842,
-0.1740557700395584,
0.114275723695755,
0.0748572051525116,
0.11120052635669708,
-0.27788296341896057,
-0.19417476654052734,
0.022259103134274483,
-0.4008956253528595,
-0.1950283646583557,
-0.04202120751142502,
0.13637778162956238,
0.45997366309165955,
0.23688504099845886,
-0.4259491264820099,
-0.4368486702442169,
-0.16821880638599396,
-0.11737597733736038,
0.10201533883810043,
-0.041861359030008316,
0.0551191084086895,
-0.06823020428419113,
-0.1335441619157791,
-0.15035076439380646,
-0.19333216547966003,
0.5020690560340881,
-0.2520495653152466,
0.06857369840145111,
-0.16039666533470154,
-0.12222668528556824,
0.04430065304040909,
0.8054547905921936,
0.41464272141456604,
0.08388268947601318,
0.3142865300178528,
0.2035723477602005,
0.3654496371746063,
0.003969212062656879,
-0.38868552446365356,
0.18849264085292816,
0.02006550505757332,
-0.2714690864086151,
0.1279638260602951,
-0.08589986711740494,
0.10546611249446869,
-0.14740003645420074,
-0.11587335169315338,
-0.21376566588878632,
-0.09552489221096039,
-0.14896994829177856,
-0.2166234254837036,
0.2357061356306076,
0.08295692503452301,
0.09117317199707031,
-0.32166996598243713,
0.02771635167300701,
0.22083060443401337,
0.2361791729927063,
-0.28037118911743164,
0.024319324642419815,
-0.14500728249549866,
-0.1817682981491089,
-0.22255532443523407,
0.5148038268089294,
0.0891621857881546,
0.24469996988773346,
-0.2091473937034607,
0.14087837934494019,
0.05233136937022209,
-0.07097135484218597,
0.6638154983520508,
-0.07394774258136749,
-0.0868658497929573,
-0.11097940802574158,
-0.01937578245997429,
-0.40940433740615845,
-0.14190241694450378,
0.055073972791433334,
0.13664333522319794,
0.1798197627067566,
0.4839465320110321,
-0.12086004763841629,
-0.005178901832550764,
-0.015305900946259499,
0.012094549834728241,
-0.1854645311832428,
-0.20062825083732605,
-0.3357679545879364,
-0.3831155598163605,
0.073277547955513,
0.07374761998653412,
-0.01951245404779911,
0.04521384462714195,
-0.09378666430711746,
0.09406991302967072,
-0.17311272025108337,
0.04743461310863495,
0.24365724623203278,
-0.013380348682403564,
0.5679033994674683,
-0.3699100911617279,
0.11976228654384613,
0.27744367718696594,
0.08131594210863113,
0.2905482351779938,
0.26184889674186707,
-0.14876192808151245,
-0.4146740436553955,
0.11547940224409103,
0.08396842330694199,
-0.006802900228649378,
0.4959121346473694,
-0.1706467717885971,
0.19981050491333008,
-0.014372420497238636,
-0.05250675231218338,
0.12229092419147491,
0.07163869589567184,
0.2608545422554016,
0.30125656723976135,
-0.08179634064435959,
-0.18036073446273804,
0.00019428251835051924,
0.40886303782463074,
-0.11109662055969238,
0.4448750913143158,
-0.3718872368335724,
-0.13043047487735748,
0.18317358195781708,
0.20753970742225647,
1.1415233612060547,
0.10962014645338058,
0.09404271095991135,
0.3654060661792755,
-0.3788010776042938,
0.1448802798986435,
-0.1338842511177063,
0.35212332010269165,
-0.2913300693035126,
-0.4262790381908417,
0.04439833015203476,
-0.42348146438598633,
0.07847096025943756,
-0.25822535157203674,
-0.0987936332821846,
0.299401193857193,
-0.2575717270374298,
0.02285420149564743,
-0.16757464408874512,
-0.009480809792876244,
-0.1764463186264038,
0.1637747883796692,
0.2784408628940582,
0.11873939633369446,
-0.1347372978925705,
0.19182507693767548,
-0.19577963650226593,
-0.20621958374977112,
-0.2727340757846832,
-0.12412849813699722,
-0.19991005957126617,
0.12547650933265686,
-0.35914599895477295,
0.547730028629303,
-0.028982510790228844,
-0.1873505860567093,
-0.056438345462083817,
0.3179161846637726,
1.0567492246627808,
-0.03375173360109329,
-0.05322791263461113,
0.11152030527591705,
0.13227427005767822,
0.07698160409927368,
0.07886770367622375,
-0.4823549687862396,
0.12167932838201523,
-0.16219903528690338,
-0.20465806126594543,
-0.010240986943244934,
0.17127402126789093,
0.05454796180129051,
0.14362333714962006,
0.006504314485937357,
-0.0442720428109169,
-0.1453603357076645,
0.07130865007638931,
0.0538247749209404,
-0.03823046758770943,
-0.14293958246707916,
0.03658588230609894,
-0.05032443627715111,
-0.20491698384284973,
0.12930828332901,
-0.21363948285579681,
-0.3586629629135132,
0.16017931699752808,
0.23918209969997406,
0.3221597969532013,
-0.3406074643135071,
0.5207618474960327,
-0.4181826412677765,
-0.1647207885980606,
-0.12292802333831787,
-0.4281490445137024,
-0.1048445925116539,
-0.48585647344589233,
0.3519488573074341,
-0.3284839689731598,
-0.023038377985358238,
-0.1290416717529297,
0.42358729243278503,
0.3696025013923645,
0.2082638293504715,
-0.051433172076940536,
-0.25757360458374023,
-0.3079732060432434,
0.06654314696788788,
-0.25606459379196167,
0.20943599939346313,
-0.06678251922130585,
0.20331703126430511,
-0.11510474979877472,
0.24687659740447998,
-0.22908291220664978,
0.14910899102687836,
-0.22358004748821259,
-0.057861216366291046,
-0.023992737755179405,
-0.30834078788757324,
0.2739688456058502,
0.058366283774375916,
-0.08296191692352295,
0.24497434496879578,
-0.4150685667991638,
-0.10257453471422195,
-0.17030687630176544,
0.1670020967721939,
-0.2010878026485443,
-0.1663452833890915,
-0.16397541761398315,
-0.08493779599666595,
0.29170989990234375,
-0.09668412804603577,
0.038524217903614044,
0.4952760636806488,
-0.004727386869490147,
-0.18257096409797668,
-0.08010159432888031,
0.35791316628456116,
0.07604247331619263,
0.3112906515598297,
0.07226967811584473,
-0.08911722153425217,
0.04557068273425102,
0.22494438290596008,
-0.17519816756248474,
-0.15445363521575928,
-0.21517439186573029,
-0.10359495133161545,
0.10238046944141388,
0.11730285733938217,
-0.2384694367647171,
-0.37893083691596985,
-0.27736809849739075,
0.049262575805187225,
0.23944507539272308,
0.15939047932624817,
-0.022152971476316452,
-0.16762684285640717,
0.0452718660235405,
0.12178047001361847,
0.003555482951924205,
0.010083489120006561,
0.07127940654754639,
-0.06657084077596664,
-0.26974332332611084,
0.2501280605792999,
0.43670496344566345,
-0.059539660811424255,
0.2153593897819519,
0.08357366919517517,
0.3153461515903473,
-0.3591236174106598,
0.48098719120025635,
-0.3079814612865448,
0.25621354579925537,
0.22918519377708435,
0.2896818220615387,
0.140216663479805,
0.16424623131752014,
-0.16155020892620087,
-0.2578149735927582,
0.32888269424438477,
0.10091462731361389,
-0.06562463939189911,
-0.1758931279182434,
-0.1831432431936264,
-0.12390054762363434,
-0.11554168909788132,
-0.11641635745763779,
0.15365558862686157,
-0.07425256073474884,
0.4652305841445923,
-0.2960214912891388,
-0.33967652916908264,
-0.23517294228076935,
0.09778334200382233,
-0.2720488905906677,
-0.10778763145208359,
0.031490158289670944,
-0.31711265444755554,
0.22783425450325012,
0.04680359736084938,
0.24422061443328857,
0.21211107075214386,
0.2209790199995041,
0.04652100428938866,
-0.24910056591033936,
0.06072031334042549,
-0.2737986147403717,
0.6104675531387329,
0.0576188750565052,
-0.11997581273317337,
0.32982248067855835,
0.22804617881774902,
-0.04174945503473282,
0.04151128605008125,
0.6623186469078064,
0.5221059322357178,
0.36180028319358826,
0.09108133614063263,
-0.11469458043575287,
0.23420606553554535,
0.12283063679933548,
-0.014762421138584614,
0.17361047863960266,
0.2521834075450897,
-0.19602392613887787,
0.24716916680335999,
0.15071071684360504,
-0.11467907577753067,
0.3636130690574646,
-0.06445309519767761,
0.20040017366409302,
-0.29094603657722473,
0.2844318449497223,
-0.1778314858675003,
0.02057822048664093,
-0.19672909379005432,
-0.04218342527747154,
-0.5328442454338074,
0.10239998996257782,
0.2991533577442169,
-0.17903637886047363,
0.239109605550766,
-0.09700638800859451,
0.07179585099220276,
0.18408122658729553,
0.24527610838413239,
0.4780634939670563,
0.12574096024036407,
-0.5874686241149902,
0.05412138253450394,
-0.4772074818611145,
0.4764412045478821,
0.059209972620010376,
0.4164777398109436,
-0.29253870248794556,
0.25833943486213684,
-0.24825213849544525,
-0.1623590737581253,
0.4818668067455292,
0.18853911757469177,
-0.03088308870792389,
0.06821535527706146,
-0.5626351833343506,
0.1788061112165451,
0.04102947935461998,
-0.31437310576438904,
0.2532077133655548,
-0.3407096266746521,
0.02912348322570324,
0.0009256636258214712,
0.03304700180888176,
0.2292572408914566,
0.05430970340967178,
0.0794537365436554,
-0.0988798588514328,
0.33971285820007324,
0.17242848873138428,
0.38383543491363525,
0.08642730861902237,
0.015271243639290333,
-0.06338562816381454,
-0.11083263903856277,
-0.24124816060066223,
-0.11479811370372772,
0.03567202761769295,
0.22264470160007477,
-0.5101049542427063,
0.05442199856042862,
-0.38176557421684265,
0.20330582559108734,
0.24251309037208557,
-0.2194538414478302,
0.05287889018654823,
-0.09754274785518646,
0.019844595342874527,
0.01631258986890316,
0.45290637016296387,
0.40420860052108765,
0.09369027614593506,
0.4554380476474762,
-0.33608558773994446,
-0.12962467968463898,
0.576347827911377,
-0.5234944820404053,
-0.27803945541381836,
0.11900453269481659,
0.44339096546173096,
0.3934994339942932,
0.001324778189882636,
-0.653067409992218,
-0.0659773200750351,
0.27898502349853516,
-0.16010768711566925,
-0.05280226096510887,
0.17291989922523499,
-0.3497539460659027,
-0.009457355365157127,
0.10649700462818146,
0.014875886961817741,
0.026049280539155006,
-0.35961857438087463,
0.08319078385829926,
-0.2089136838912964
] |
https://github.com/huggingface/datasets/issues/1765 | Error iterating over Dataset with DataLoader | Instead of:
```python
dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_sampler=32)
```
It should be:
```python
dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_size=32)
```
`batch_sampler` accepts a Sampler object or an Iterable, so you get an error. | I have a Dataset that I've mapped a tokenizer over:
```
encoded_dataset.set_format(type='torch',columns=['attention_mask','input_ids','token_type_ids'])
encoded_dataset[:1]
```
```
{'attention_mask': tensor([[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]),
'input_ids': tensor([[ 101, 178, 1198, 1400, 1714, 22233, 21365, 4515, 8618, 1113,
102]]),
'token_type_ids': tensor([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]])}
```
When I try to iterate as in the docs, I get errors:
```
dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_sampler=32)
next(iter(dataloader))
```
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-45-05180ba8aa35> in <module>()
1 dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_sampler=32)
----> 2 next(iter(dataloader))
3 frames
/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py in __init__(self, loader)
411 self._timeout = loader.timeout
412 self._collate_fn = loader.collate_fn
--> 413 self._sampler_iter = iter(self._index_sampler)
414 self._base_seed = torch.empty((), dtype=torch.int64).random_(generator=loader.generator).item()
415 self._persistent_workers = loader.persistent_workers
TypeError: 'int' object is not iterable
``` | 30 | Error iterating over Dataset with DataLoader
I have a Dataset that I've mapped a tokenizer over:
```
encoded_dataset.set_format(type='torch',columns=['attention_mask','input_ids','token_type_ids'])
encoded_dataset[:1]
```
```
{'attention_mask': tensor([[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]),
'input_ids': tensor([[ 101, 178, 1198, 1400, 1714, 22233, 21365, 4515, 8618, 1113,
102]]),
'token_type_ids': tensor([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]])}
```
When I try to iterate as in the docs, I get errors:
```
dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_sampler=32)
next(iter(dataloader))
```
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-45-05180ba8aa35> in <module>()
1 dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_sampler=32)
----> 2 next(iter(dataloader))
3 frames
/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py in __init__(self, loader)
411 self._timeout = loader.timeout
412 self._collate_fn = loader.collate_fn
--> 413 self._sampler_iter = iter(self._index_sampler)
414 self._base_seed = torch.empty((), dtype=torch.int64).random_(generator=loader.generator).item()
415 self._persistent_workers = loader.persistent_workers
TypeError: 'int' object is not iterable
```
Instead of:
```python
dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_sampler=32)
```
It should be:
```python
dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_size=32)
```
`batch_sampler` accepts a Sampler object or an Iterable, so you get an error. | [
-0.23792937397956848,
0.05545622482895851,
-0.04567086696624756,
0.2057335525751114,
0.1531803160905838,
0.00014133301738183945,
0.7921318411827087,
0.3068520724773407,
0.0211307592689991,
0.15271316468715668,
0.04679560288786888,
0.23042596876621246,
-0.2809545397758484,
-0.2416442632675171,
-0.09022649377584457,
-0.060450125485658646,
-0.07645385712385178,
0.07907024770975113,
-0.12242210656404495,
0.03289397060871124,
-0.14354035258293152,
-0.08673007041215897,
-0.19259722530841827,
0.03193556144833565,
-0.2509384751319885,
-0.13227060437202454,
-0.10359124839305878,
-0.09470740705728531,
-0.334125280380249,
-0.5228334069252014,
0.2897111773490906,
0.11794871091842651,
0.42384791374206543,
0.6812462210655212,
-0.00011708561214618385,
0.05326543748378754,
0.1204964891076088,
-0.1216142550110817,
-0.2641814053058624,
-0.2320629358291626,
0.13923411071300507,
-0.051622424274683,
0.033674757927656174,
-0.35476917028427124,
0.2605604827404022,
-0.33127203583717346,
-0.017206385731697083,
-0.2235836684703827,
0.19873777031898499,
0.2407110631465912,
0.12731046974658966,
0.4878684878349304,
-0.013066275045275688,
0.06860628724098206,
0.04524189606308937,
0.2505432367324829,
-0.01951165683567524,
0.1971428245306015,
0.19162479043006897,
0.010227537713944912,
-0.35976552963256836,
0.11686806380748749,
-0.16907067596912384,
0.047523852437734604,
0.13596856594085693,
-0.11273878067731857,
-0.21776078641414642,
-0.1320604383945465,
-0.03268343582749367,
-0.07962925732135773,
0.573284924030304,
-0.24739815294742584,
-0.3338908553123474,
-0.1655159592628479,
-0.22152991592884064,
-0.2673026919364929,
0.3192118704319,
-0.1650729477405548,
-0.1586039513349533,
-0.21399003267288208,
0.11575692892074585,
0.2405710369348526,
-0.20402644574642181,
0.1367141753435135,
-0.2591603696346283,
0.2086893916130066,
-0.04984985664486885,
0.30450013279914856,
0.2167699635028839,
-0.2556966543197632,
0.3407100737094879,
0.10055170953273773,
0.0440496988594532,
0.2752285897731781,
-0.5098055601119995,
-0.2515716850757599,
0.09336601942777634,
-0.48132815957069397,
-0.08895141631364822,
0.18174725770950317,
0.25127696990966797,
0.06592343002557755,
-0.026722945272922516,
0.24206483364105225,
0.4608975052833557,
0.18674716353416443,
0.16860972344875336,
0.34300729632377625,
0.05600263178348541,
-0.10084044188261032,
0.11158252507448196,
-0.06283745169639587,
-0.3309623897075653,
-0.304035484790802,
0.22978638112545013,
0.10076092928647995,
0.23551464080810547,
0.06380409002304077,
-0.24075189232826233,
-0.0010412117699161172,
-0.285439670085907,
-0.14088355004787445,
0.11154282093048096,
0.1466974914073944,
0.21548236906528473,
0.0784653052687645,
-0.02119668759405613,
0.04944745823740959,
-0.029459120705723763,
-0.1010558009147644,
-0.0631031021475792,
0.12259075790643692,
-0.23600462079048157,
0.006233049090951681,
0.26921308040618896,
-0.04495210945606232,
-0.0005979754496365786,
0.13793209195137024,
-0.016348939388990402,
0.10649412125349045,
0.1838306039571762,
-0.16774553060531616,
0.2751210629940033,
-0.06683048605918884,
0.05263768509030342,
0.3259076178073883,
0.24278853833675385,
0.052704330533742905,
-0.1517041027545929,
0.006441894453018904,
-0.42523646354675293,
-0.08540811389684677,
-0.07112928479909897,
0.134384885430336,
-0.06572763621807098,
-0.059655118733644485,
-0.4029015898704529,
-0.1930607706308365,
0.34761086106300354,
-0.15928398072719574,
0.09902079403400421,
-0.2618943750858307,
0.06796537339687347,
-0.09494326263666153,
0.07169871777296066,
0.3785110116004944,
-0.45884186029434204,
-0.13893170654773712,
0.1558682769536972,
0.10057917982339859,
0.26835331320762634,
0.2800275385379791,
-0.27751800417900085,
0.5750994086265564,
-0.4041409492492676,
0.31461504101753235,
0.33827486634254456,
-0.45757365226745605,
-0.3010723888874054,
0.30232343077659607,
-0.17285875976085663,
0.1828438937664032,
0.13110597431659698,
0.022096185013651848,
0.4072546362876892,
-0.21179920434951782,
0.1262146234512329,
0.1312221735715866,
-0.1754142940044403,
-0.08449843525886536,
-0.0188895370811224,
0.40735653042793274,
0.5204417109489441,
0.05792102962732315,
0.1899079978466034,
0.0911746472120285,
-0.25631269812583923,
0.1866552084684372,
0.04072454944252968,
-0.16240239143371582,
0.07528001815080643,
0.14618171751499176,
0.08729235082864761,
0.11540122330188751,
0.20471319556236267,
-0.1541341096162796,
-0.24141430854797363,
0.017452923581004143,
0.08473597466945648,
0.11033980548381805,
-0.15696124732494354,
0.10110833495855331,
0.015629969537258148,
0.1833895742893219,
-0.4093038737773895,
-0.1476445496082306,
0.10579903423786163,
0.33917754888534546,
-0.10850522667169571,
-0.2262801229953766,
-0.278257817029953,
0.010197000578045845,
-0.1502242088317871,
0.12290537357330322,
-0.31770703196525574,
0.07564617693424225,
0.07310914248228073,
-0.16212010383605957,
-0.11099178344011307,
0.001258278964087367,
0.21855378150939941,
-0.2305951863527298,
-0.019875524565577507,
0.15274366736412048,
0.07335054874420166,
0.08376602083444595,
-0.14092057943344116,
0.08403686434030533,
0.20277562737464905,
-0.08059126883745193,
-0.03504147380590439,
0.026323990896344185,
0.06335388869047165,
-0.24634693562984467,
0.2860274314880371,
0.3557420074939728,
-0.04151235148310661,
0.5438956618309021,
-0.18461400270462036,
0.186557337641716,
0.08548321574926376,
0.1429629921913147,
-0.22977490723133087,
0.121437668800354,
0.29159533977508545,
0.16527904570102692,
0.27270588278770447,
-0.07423854619264603,
-0.10618823021650314,
-0.016253549605607986,
0.13578619062900543,
0.03465676307678223,
-0.16728948056697845,
0.06450604647397995,
-0.20232918858528137,
0.0787326842546463,
0.14318899810314178,
-0.35833513736724854,
0.2936251163482666,
-0.041964419186115265,
0.1355629414319992,
-0.22973181307315826,
0.10938717424869537,
0.054877519607543945,
-0.0068244850262999535,
0.137367382645607,
0.05010930448770523,
0.1365748941898346,
-0.01798890344798565,
0.032990463078022,
-0.1993449330329895,
-0.2619040906429291,
-0.032163962721824646,
0.4030473828315735,
-0.2017507702112198,
0.4200809895992279,
-0.22512345016002655,
-0.08061408996582031,
-0.13573677837848663,
-0.4637429118156433,
-0.12441616505384445,
-0.48858365416526794,
-0.2934885323047638,
0.43772000074386597,
-0.05235603451728821,
0.28842195868492126,
0.1593025177717209,
0.06599490344524384,
0.6007105112075806,
-0.12018168717622757,
-0.12993432581424713,
-0.1651611477136612,
-0.14348652958869934,
0.0020231332164257765,
0.3916657269001007,
-0.3905932605266571,
0.3192388713359833,
-0.1485728770494461,
-0.03643971309065819,
-0.4931817948818207,
-0.17130281031131744,
0.23434670269489288,
-0.25151073932647705,
-0.10610969364643097,
0.25012314319610596,
0.16031160950660706,
-0.12767408788204193,
-0.3462352156639099,
0.23602181673049927,
-0.09714046120643616,
-0.059860873967409134,
0.3538430631160736,
-0.017857566475868225,
0.16488490998744965,
0.19423837959766388,
-0.16180545091629028,
-0.11437421292066574,
-0.22104230523109436,
0.14889438450336456,
-0.024225326254963875,
0.3098030686378479,
0.12795181572437286,
0.0508769191801548,
0.0688193067908287,
0.05388666316866875,
-0.08853520452976227,
-0.05291751027107239,
-0.4608558118343353,
0.42115622758865356,
-0.31889811158180237,
-0.29355141520500183,
-0.06109791249036789,
-0.00519530987367034,
0.35834088921546936,
0.3748796284198761,
-0.29544809460639954,
-0.0019788474310189486,
0.19680291414260864,
0.09606023877859116,
-0.17806683480739594,
0.013300897553563118,
0.16170166432857513,
0.11657118052244186,
-0.052686385810375214,
-0.052867691963911057,
0.14581650495529175,
0.17108049988746643,
-0.18763338029384613,
0.2580990791320801,
0.15930242836475372,
0.4765361547470093,
0.2614043354988098,
0.6606872081756592,
0.03890683501958847,
-0.38583633303642273,
0.3321017324924469,
-0.14006450772285461,
-0.000782485119998455,
0.08665761351585388,
-0.6534714698791504,
0.18306642770767212,
-0.28974252939224243,
-0.026324482634663582,
-0.10860712826251984,
-0.363752156496048,
-0.20201344788074493,
-0.1655699610710144,
0.16914485394954681,
-0.027160437777638435,
-0.3952351212501526,
0.465710312128067,
-0.4304012656211853,
0.283845454454422,
-0.07929585874080658,
0.13681280612945557,
-0.6179906725883484,
-0.015970708802342415,
0.1340288370847702,
0.0014617235865443945,
0.2550835907459259,
-0.08203373849391937,
-0.39441394805908203,
0.0771881565451622,
-0.46588844060897827,
0.23202820122241974,
0.08530604839324951,
0.7238261103630066,
0.18516764044761658,
-0.20388653874397278,
-0.1605454385280609,
-0.03389440104365349,
0.7261366844177246,
0.23516227304935455,
-0.013185366988182068,
0.09821484237909317,
-0.3114117383956909,
-0.4381257891654968,
-0.07942819595336914,
-0.2774268090724945,
0.642490565776825,
0.15633361041545868,
0.2806633412837982,
-0.23284606635570526,
-0.13018594682216644,
0.11599017679691315,
0.10674557089805603,
-0.21584363281726837,
-0.274822473526001,
-0.07602303475141525,
-0.06804303079843521,
-0.35322311520576477,
-0.014091789722442627,
0.04383879899978638,
0.2820526361465454,
0.09236986935138702,
0.022060982882976532,
-0.3040831685066223,
-0.027666650712490082,
0.3623539209365845,
-0.04278605803847313,
0.06607002764940262,
-0.16148190200328827,
0.15831466019153595,
0.19364111125469208,
0.2400771528482437,
0.641128420829773,
0.30705371499061584,
0.245091050863266,
-0.45245203375816345,
0.3747630715370178,
0.056793224066495895,
0.2789522707462311,
0.12668253481388092,
-0.1120252013206482,
-0.04638472944498062,
-0.3257368206977844,
0.05009079352021217,
-0.43527573347091675,
0.5216369032859802,
0.500228762626648,
0.14700326323509216,
-0.5732989311218262,
-0.3403780460357666,
0.2020387351512909,
0.11379598081111908,
0.1821291744709015,
0.7328402996063232,
-0.13254529237747192,
-0.13832244277000427,
0.13051961362361908,
0.13689574599266052,
0.7372891306877136,
0.059958674013614655,
0.12415510416030884,
0.41108161211013794,
0.57425856590271,
0.28740304708480835,
-0.5326967239379883,
0.09997910261154175,
-0.22785112261772156,
-0.047759730368852615,
-0.1629467010498047,
-0.25533103942871094,
0.038757920265197754,
0.170458123087883,
-0.05964762717485428,
0.18026195466518402,
-0.03505460545420647,
0.5183295607566833,
0.09845203161239624,
0.06107664108276367,
-0.3110623061656952,
-0.292202889919281,
0.09589250385761261,
0.11329399049282074,
-0.16429780423641205,
0.14646190404891968,
-0.0775095522403717,
-0.07499723881483078,
0.18221323192119598,
-0.28262919187545776,
-0.25074058771133423,
-0.025755830109119415,
-0.2285093367099762,
0.1024930328130722,
0.03291698917746544,
-0.4766203761100769,
0.10104318708181381,
0.013341938145458698,
0.0507274866104126,
-0.09035991132259369,
0.0723627582192421,
-0.22122684121131897,
-0.040718380361795425,
-0.13065023720264435,
-0.13286186754703522,
-0.0846424475312233,
0.40968605875968933,
0.12493737787008286,
0.13089706003665924,
0.28170648217201233,
0.23024597764015198,
-0.34945443272590637,
0.08346457779407501,
0.22286629676818848,
0.23815271258354187,
-0.5538778305053711,
0.10674932599067688,
-0.11697617173194885,
-0.20017193257808685,
-0.22251376509666443,
0.07512709498405457,
0.003570463275536895,
-0.3264312446117401,
0.006172209978103638,
-0.15819574892520905,
-0.09416979551315308,
0.09128477424383163,
0.4193666875362396,
0.09900626540184021,
-0.440139502286911,
0.7563028931617737,
0.1833338737487793,
-0.2378755360841751,
-0.1601603776216507,
0.13041460514068604,
0.4554123878479004,
-0.2698962390422821,
0.10516246408224106,
-0.36811748147010803,
0.19371239840984344,
-0.20565126836299896,
0.09545357525348663,
0.07498306035995483,
0.0011241449974477291,
-0.08470669388771057,
-0.3185291588306427,
-0.37638556957244873,
0.06417330354452133,
-0.127596914768219,
0.27096161246299744,
0.06571369618177414,
0.14424055814743042,
-0.242486372590065,
0.10846755653619766,
-0.22840853035449982,
-0.05996127799153328,
-0.1304061859846115,
0.217020645737648,
0.06876564770936966,
-0.11554983258247375,
-0.029965344816446304,
0.16431136429309845,
0.08759870380163193,
0.3649316430091858,
0.07729527354240417,
-0.21717262268066406,
-0.11241088062524796,
0.10818677395582199,
0.12695491313934326,
-0.269689679145813,
0.0701320618391037,
-0.021664895117282867,
-0.010612391866743565,
-0.31688588857650757,
0.09200895577669144,
0.05930785834789276,
-0.03379961848258972,
0.2827906012535095,
0.38358741998672485,
0.045312102884054184,
0.10487356036901474,
0.020299222320318222,
0.24440456926822662,
0.26442888379096985,
0.18606099486351013,
0.322185218334198,
-0.03469742089509964,
-0.06147918105125427,
-0.2507390081882477,
0.363992303609848,
0.37819844484329224,
-0.11715083569288254,
0.15625838935375214,
-0.4842173457145691,
0.135897696018219,
-0.13094715774059296,
0.25355279445648193,
0.6113292574882507,
-0.3544899821281433,
-0.15539142489433289,
0.16911262273788452,
0.11266225576400757,
-0.004548382479697466,
0.03866637498140335,
0.06095341965556145,
-0.05782151594758034,
-0.005827043671160936,
0.1932300329208374,
-0.057136859744787216,
-0.06116613745689392,
0.13544216752052307,
-0.08294598758220673,
0.2889597415924072,
-0.1634664386510849,
0.1883116513490677,
0.06417693942785263,
-0.42789772152900696,
-0.08586513996124268,
0.3677484691143036,
0.2824954688549042,
0.10133585333824158,
0.2784430980682373,
-0.10788040608167648,
0.4273208677768707,
0.0708393007516861,
-0.24930424988269806,
-0.0165876317769289,
-0.49297401309013367,
-0.3299546539783478,
0.11119704693555832,
0.24633699655532837,
0.19480185210704803,
0.04896918684244156,
0.3200198709964752,
-0.07998945564031601,
-0.11177272349596024,
-0.021363815292716026,
0.19566920399665833,
-0.2775018811225891,
0.0963110476732254,
-0.3862141966819763,
-0.22133566439151764,
-0.20778852701187134,
-0.10474838316440582,
-0.07726992666721344,
-0.18061287701129913,
0.0019160091178491712,
0.11878763884305954,
-0.18749931454658508,
-0.4298039674758911,
0.06275075674057007,
-0.0045477235689759254,
-0.11235175281763077,
-0.33422812819480896,
0.21795907616615295,
0.16026277840137482,
0.11708492040634155,
0.034909434616565704,
0.2651888430118561,
0.5087572932243347,
0.4610845744609833,
-0.1494465172290802,
0.176915243268013,
-0.5010873675346375,
-0.19116173684597015,
-0.06311282515525818,
0.11251815408468246,
-0.4148906469345093,
-0.10147596895694733,
0.38673892617225647,
0.08408315479755402,
-0.11434421688318253,
-0.21536774933338165,
0.13407424092292786,
0.07359398901462555,
0.00014833958994131535,
0.1247916966676712,
-0.08155634254217148,
0.04142804071307182,
-0.08147502690553665,
-0.04416953772306442,
-0.4062022566795349,
-0.1182340607047081,
0.4678342938423157,
0.11666375398635864,
0.1968587189912796,
0.020753849297761917,
0.05896211043000221,
-0.2503395080566406,
0.42579880356788635,
0.47547850012779236,
0.2222505807876587,
-0.4092891812324524,
-0.23575036227703094,
-0.29587075114250183,
0.3727256953716278,
-0.12138886004686356,
-0.19496552646160126,
-0.019623134285211563,
0.16514834761619568,
0.32282885909080505,
0.26910966634750366,
0.2435305118560791,
-0.14532293379306793,
-0.07103808224201202,
0.33608049154281616,
-0.3235670030117035,
-0.3320509195327759,
0.03563420847058296,
0.23942944407463074,
-0.06713160872459412,
-0.2778089642524719,
0.23340652883052826,
-0.10085969418287277,
0.1332823932170868,
-0.2046566903591156,
-0.30080097913742065,
0.08007307350635529,
0.04444550722837448,
0.44286414980888367,
0.18970052897930145,
0.4272841811180115,
0.09459984302520752,
0.06287721544504166,
-0.27842196822166443,
-0.23615765571594238,
-0.19147440791130066,
0.04522630199790001,
0.04485361650586128,
0.21423494815826416,
-0.03245317190885544,
-0.13446144759655,
-0.5011917352676392,
0.21689537167549133,
-0.10915283858776093,
-0.2911403477191925,
-0.35748714208602905,
0.27954602241516113,
0.003716306760907173,
0.07022742927074432,
-0.07147336006164551,
0.24562320113182068,
0.2120579481124878,
0.5372605919837952,
-0.36727607250213623,
-0.2944154143333435,
0.4216321110725403,
-0.6915379762649536,
-0.4907263517379761,
0.02503524161875248,
-0.19890597462654114,
0.1786564439535141,
0.270324170589447,
-0.564062237739563,
0.0031022217590361834,
0.3172042667865753,
-0.16942079365253448,
-0.1327279955148697,
0.003432659897953272,
0.09697665274143219,
0.024014504626393318,
-0.16893549263477325,
0.38899511098861694,
0.10353592783212662,
-0.03501880168914795,
-0.017748011276125908,
-0.2236267328262329
] |
https://github.com/huggingface/datasets/issues/1765 | Error iterating over Dataset with DataLoader | @mariosasko I thought that would fix it, but now I'm getting a different error:
```
/usr/local/lib/python3.6/dist-packages/datasets/arrow_dataset.py:851: UserWarning: The given NumPy array is not writeable, and PyTorch does not support non-writeable tensors. This means you can write to the underlying (supposedly non-writeable) NumPy array using the tensor. You may want to copy the array to protect its data or make it writeable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at /pytorch/torch/csrc/utils/tensor_numpy.cpp:141.)
return torch.tensor(x, **format_kwargs)
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-20-3af1d82bf93a> in <module>()
1 dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_size=32)
----> 2 next(iter(dataloader))
5 frames
/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/collate.py in default_collate(batch)
53 storage = elem.storage()._new_shared(numel)
54 out = elem.new(storage)
---> 55 return torch.stack(batch, 0, out=out)
56 elif elem_type.__module__ == 'numpy' and elem_type.__name__ != 'str_' \
57 and elem_type.__name__ != 'string_':
RuntimeError: stack expects each tensor to be equal size, but got [7] at entry 0 and [10] at entry 1
```
Any thoughts what this means?I Do I need padding? | I have a Dataset that I've mapped a tokenizer over:
```
encoded_dataset.set_format(type='torch',columns=['attention_mask','input_ids','token_type_ids'])
encoded_dataset[:1]
```
```
{'attention_mask': tensor([[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]),
'input_ids': tensor([[ 101, 178, 1198, 1400, 1714, 22233, 21365, 4515, 8618, 1113,
102]]),
'token_type_ids': tensor([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]])}
```
When I try to iterate as in the docs, I get errors:
```
dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_sampler=32)
next(iter(dataloader))
```
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-45-05180ba8aa35> in <module>()
1 dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_sampler=32)
----> 2 next(iter(dataloader))
3 frames
/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py in __init__(self, loader)
411 self._timeout = loader.timeout
412 self._collate_fn = loader.collate_fn
--> 413 self._sampler_iter = iter(self._index_sampler)
414 self._base_seed = torch.empty((), dtype=torch.int64).random_(generator=loader.generator).item()
415 self._persistent_workers = loader.persistent_workers
TypeError: 'int' object is not iterable
``` | 169 | Error iterating over Dataset with DataLoader
I have a Dataset that I've mapped a tokenizer over:
```
encoded_dataset.set_format(type='torch',columns=['attention_mask','input_ids','token_type_ids'])
encoded_dataset[:1]
```
```
{'attention_mask': tensor([[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]),
'input_ids': tensor([[ 101, 178, 1198, 1400, 1714, 22233, 21365, 4515, 8618, 1113,
102]]),
'token_type_ids': tensor([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]])}
```
When I try to iterate as in the docs, I get errors:
```
dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_sampler=32)
next(iter(dataloader))
```
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-45-05180ba8aa35> in <module>()
1 dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_sampler=32)
----> 2 next(iter(dataloader))
3 frames
/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py in __init__(self, loader)
411 self._timeout = loader.timeout
412 self._collate_fn = loader.collate_fn
--> 413 self._sampler_iter = iter(self._index_sampler)
414 self._base_seed = torch.empty((), dtype=torch.int64).random_(generator=loader.generator).item()
415 self._persistent_workers = loader.persistent_workers
TypeError: 'int' object is not iterable
```
@mariosasko I thought that would fix it, but now I'm getting a different error:
```
/usr/local/lib/python3.6/dist-packages/datasets/arrow_dataset.py:851: UserWarning: The given NumPy array is not writeable, and PyTorch does not support non-writeable tensors. This means you can write to the underlying (supposedly non-writeable) NumPy array using the tensor. You may want to copy the array to protect its data or make it writeable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at /pytorch/torch/csrc/utils/tensor_numpy.cpp:141.)
return torch.tensor(x, **format_kwargs)
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-20-3af1d82bf93a> in <module>()
1 dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_size=32)
----> 2 next(iter(dataloader))
5 frames
/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/collate.py in default_collate(batch)
53 storage = elem.storage()._new_shared(numel)
54 out = elem.new(storage)
---> 55 return torch.stack(batch, 0, out=out)
56 elif elem_type.__module__ == 'numpy' and elem_type.__name__ != 'str_' \
57 and elem_type.__name__ != 'string_':
RuntimeError: stack expects each tensor to be equal size, but got [7] at entry 0 and [10] at entry 1
```
Any thoughts what this means?I Do I need padding? | [
-0.23792937397956848,
0.05545622482895851,
-0.04567086696624756,
0.2057335525751114,
0.1531803160905838,
0.00014133301738183945,
0.7921318411827087,
0.3068520724773407,
0.0211307592689991,
0.15271316468715668,
0.04679560288786888,
0.23042596876621246,
-0.2809545397758484,
-0.2416442632675171,
-0.09022649377584457,
-0.060450125485658646,
-0.07645385712385178,
0.07907024770975113,
-0.12242210656404495,
0.03289397060871124,
-0.14354035258293152,
-0.08673007041215897,
-0.19259722530841827,
0.03193556144833565,
-0.2509384751319885,
-0.13227060437202454,
-0.10359124839305878,
-0.09470740705728531,
-0.334125280380249,
-0.5228334069252014,
0.2897111773490906,
0.11794871091842651,
0.42384791374206543,
0.6812462210655212,
-0.00011708561214618385,
0.05326543748378754,
0.1204964891076088,
-0.1216142550110817,
-0.2641814053058624,
-0.2320629358291626,
0.13923411071300507,
-0.051622424274683,
0.033674757927656174,
-0.35476917028427124,
0.2605604827404022,
-0.33127203583717346,
-0.017206385731697083,
-0.2235836684703827,
0.19873777031898499,
0.2407110631465912,
0.12731046974658966,
0.4878684878349304,
-0.013066275045275688,
0.06860628724098206,
0.04524189606308937,
0.2505432367324829,
-0.01951165683567524,
0.1971428245306015,
0.19162479043006897,
0.010227537713944912,
-0.35976552963256836,
0.11686806380748749,
-0.16907067596912384,
0.047523852437734604,
0.13596856594085693,
-0.11273878067731857,
-0.21776078641414642,
-0.1320604383945465,
-0.03268343582749367,
-0.07962925732135773,
0.573284924030304,
-0.24739815294742584,
-0.3338908553123474,
-0.1655159592628479,
-0.22152991592884064,
-0.2673026919364929,
0.3192118704319,
-0.1650729477405548,
-0.1586039513349533,
-0.21399003267288208,
0.11575692892074585,
0.2405710369348526,
-0.20402644574642181,
0.1367141753435135,
-0.2591603696346283,
0.2086893916130066,
-0.04984985664486885,
0.30450013279914856,
0.2167699635028839,
-0.2556966543197632,
0.3407100737094879,
0.10055170953273773,
0.0440496988594532,
0.2752285897731781,
-0.5098055601119995,
-0.2515716850757599,
0.09336601942777634,
-0.48132815957069397,
-0.08895141631364822,
0.18174725770950317,
0.25127696990966797,
0.06592343002557755,
-0.026722945272922516,
0.24206483364105225,
0.4608975052833557,
0.18674716353416443,
0.16860972344875336,
0.34300729632377625,
0.05600263178348541,
-0.10084044188261032,
0.11158252507448196,
-0.06283745169639587,
-0.3309623897075653,
-0.304035484790802,
0.22978638112545013,
0.10076092928647995,
0.23551464080810547,
0.06380409002304077,
-0.24075189232826233,
-0.0010412117699161172,
-0.285439670085907,
-0.14088355004787445,
0.11154282093048096,
0.1466974914073944,
0.21548236906528473,
0.0784653052687645,
-0.02119668759405613,
0.04944745823740959,
-0.029459120705723763,
-0.1010558009147644,
-0.0631031021475792,
0.12259075790643692,
-0.23600462079048157,
0.006233049090951681,
0.26921308040618896,
-0.04495210945606232,
-0.0005979754496365786,
0.13793209195137024,
-0.016348939388990402,
0.10649412125349045,
0.1838306039571762,
-0.16774553060531616,
0.2751210629940033,
-0.06683048605918884,
0.05263768509030342,
0.3259076178073883,
0.24278853833675385,
0.052704330533742905,
-0.1517041027545929,
0.006441894453018904,
-0.42523646354675293,
-0.08540811389684677,
-0.07112928479909897,
0.134384885430336,
-0.06572763621807098,
-0.059655118733644485,
-0.4029015898704529,
-0.1930607706308365,
0.34761086106300354,
-0.15928398072719574,
0.09902079403400421,
-0.2618943750858307,
0.06796537339687347,
-0.09494326263666153,
0.07169871777296066,
0.3785110116004944,
-0.45884186029434204,
-0.13893170654773712,
0.1558682769536972,
0.10057917982339859,
0.26835331320762634,
0.2800275385379791,
-0.27751800417900085,
0.5750994086265564,
-0.4041409492492676,
0.31461504101753235,
0.33827486634254456,
-0.45757365226745605,
-0.3010723888874054,
0.30232343077659607,
-0.17285875976085663,
0.1828438937664032,
0.13110597431659698,
0.022096185013651848,
0.4072546362876892,
-0.21179920434951782,
0.1262146234512329,
0.1312221735715866,
-0.1754142940044403,
-0.08449843525886536,
-0.0188895370811224,
0.40735653042793274,
0.5204417109489441,
0.05792102962732315,
0.1899079978466034,
0.0911746472120285,
-0.25631269812583923,
0.1866552084684372,
0.04072454944252968,
-0.16240239143371582,
0.07528001815080643,
0.14618171751499176,
0.08729235082864761,
0.11540122330188751,
0.20471319556236267,
-0.1541341096162796,
-0.24141430854797363,
0.017452923581004143,
0.08473597466945648,
0.11033980548381805,
-0.15696124732494354,
0.10110833495855331,
0.015629969537258148,
0.1833895742893219,
-0.4093038737773895,
-0.1476445496082306,
0.10579903423786163,
0.33917754888534546,
-0.10850522667169571,
-0.2262801229953766,
-0.278257817029953,
0.010197000578045845,
-0.1502242088317871,
0.12290537357330322,
-0.31770703196525574,
0.07564617693424225,
0.07310914248228073,
-0.16212010383605957,
-0.11099178344011307,
0.001258278964087367,
0.21855378150939941,
-0.2305951863527298,
-0.019875524565577507,
0.15274366736412048,
0.07335054874420166,
0.08376602083444595,
-0.14092057943344116,
0.08403686434030533,
0.20277562737464905,
-0.08059126883745193,
-0.03504147380590439,
0.026323990896344185,
0.06335388869047165,
-0.24634693562984467,
0.2860274314880371,
0.3557420074939728,
-0.04151235148310661,
0.5438956618309021,
-0.18461400270462036,
0.186557337641716,
0.08548321574926376,
0.1429629921913147,
-0.22977490723133087,
0.121437668800354,
0.29159533977508545,
0.16527904570102692,
0.27270588278770447,
-0.07423854619264603,
-0.10618823021650314,
-0.016253549605607986,
0.13578619062900543,
0.03465676307678223,
-0.16728948056697845,
0.06450604647397995,
-0.20232918858528137,
0.0787326842546463,
0.14318899810314178,
-0.35833513736724854,
0.2936251163482666,
-0.041964419186115265,
0.1355629414319992,
-0.22973181307315826,
0.10938717424869537,
0.054877519607543945,
-0.0068244850262999535,
0.137367382645607,
0.05010930448770523,
0.1365748941898346,
-0.01798890344798565,
0.032990463078022,
-0.1993449330329895,
-0.2619040906429291,
-0.032163962721824646,
0.4030473828315735,
-0.2017507702112198,
0.4200809895992279,
-0.22512345016002655,
-0.08061408996582031,
-0.13573677837848663,
-0.4637429118156433,
-0.12441616505384445,
-0.48858365416526794,
-0.2934885323047638,
0.43772000074386597,
-0.05235603451728821,
0.28842195868492126,
0.1593025177717209,
0.06599490344524384,
0.6007105112075806,
-0.12018168717622757,
-0.12993432581424713,
-0.1651611477136612,
-0.14348652958869934,
0.0020231332164257765,
0.3916657269001007,
-0.3905932605266571,
0.3192388713359833,
-0.1485728770494461,
-0.03643971309065819,
-0.4931817948818207,
-0.17130281031131744,
0.23434670269489288,
-0.25151073932647705,
-0.10610969364643097,
0.25012314319610596,
0.16031160950660706,
-0.12767408788204193,
-0.3462352156639099,
0.23602181673049927,
-0.09714046120643616,
-0.059860873967409134,
0.3538430631160736,
-0.017857566475868225,
0.16488490998744965,
0.19423837959766388,
-0.16180545091629028,
-0.11437421292066574,
-0.22104230523109436,
0.14889438450336456,
-0.024225326254963875,
0.3098030686378479,
0.12795181572437286,
0.0508769191801548,
0.0688193067908287,
0.05388666316866875,
-0.08853520452976227,
-0.05291751027107239,
-0.4608558118343353,
0.42115622758865356,
-0.31889811158180237,
-0.29355141520500183,
-0.06109791249036789,
-0.00519530987367034,
0.35834088921546936,
0.3748796284198761,
-0.29544809460639954,
-0.0019788474310189486,
0.19680291414260864,
0.09606023877859116,
-0.17806683480739594,
0.013300897553563118,
0.16170166432857513,
0.11657118052244186,
-0.052686385810375214,
-0.052867691963911057,
0.14581650495529175,
0.17108049988746643,
-0.18763338029384613,
0.2580990791320801,
0.15930242836475372,
0.4765361547470093,
0.2614043354988098,
0.6606872081756592,
0.03890683501958847,
-0.38583633303642273,
0.3321017324924469,
-0.14006450772285461,
-0.000782485119998455,
0.08665761351585388,
-0.6534714698791504,
0.18306642770767212,
-0.28974252939224243,
-0.026324482634663582,
-0.10860712826251984,
-0.363752156496048,
-0.20201344788074493,
-0.1655699610710144,
0.16914485394954681,
-0.027160437777638435,
-0.3952351212501526,
0.465710312128067,
-0.4304012656211853,
0.283845454454422,
-0.07929585874080658,
0.13681280612945557,
-0.6179906725883484,
-0.015970708802342415,
0.1340288370847702,
0.0014617235865443945,
0.2550835907459259,
-0.08203373849391937,
-0.39441394805908203,
0.0771881565451622,
-0.46588844060897827,
0.23202820122241974,
0.08530604839324951,
0.7238261103630066,
0.18516764044761658,
-0.20388653874397278,
-0.1605454385280609,
-0.03389440104365349,
0.7261366844177246,
0.23516227304935455,
-0.013185366988182068,
0.09821484237909317,
-0.3114117383956909,
-0.4381257891654968,
-0.07942819595336914,
-0.2774268090724945,
0.642490565776825,
0.15633361041545868,
0.2806633412837982,
-0.23284606635570526,
-0.13018594682216644,
0.11599017679691315,
0.10674557089805603,
-0.21584363281726837,
-0.274822473526001,
-0.07602303475141525,
-0.06804303079843521,
-0.35322311520576477,
-0.014091789722442627,
0.04383879899978638,
0.2820526361465454,
0.09236986935138702,
0.022060982882976532,
-0.3040831685066223,
-0.027666650712490082,
0.3623539209365845,
-0.04278605803847313,
0.06607002764940262,
-0.16148190200328827,
0.15831466019153595,
0.19364111125469208,
0.2400771528482437,
0.641128420829773,
0.30705371499061584,
0.245091050863266,
-0.45245203375816345,
0.3747630715370178,
0.056793224066495895,
0.2789522707462311,
0.12668253481388092,
-0.1120252013206482,
-0.04638472944498062,
-0.3257368206977844,
0.05009079352021217,
-0.43527573347091675,
0.5216369032859802,
0.500228762626648,
0.14700326323509216,
-0.5732989311218262,
-0.3403780460357666,
0.2020387351512909,
0.11379598081111908,
0.1821291744709015,
0.7328402996063232,
-0.13254529237747192,
-0.13832244277000427,
0.13051961362361908,
0.13689574599266052,
0.7372891306877136,
0.059958674013614655,
0.12415510416030884,
0.41108161211013794,
0.57425856590271,
0.28740304708480835,
-0.5326967239379883,
0.09997910261154175,
-0.22785112261772156,
-0.047759730368852615,
-0.1629467010498047,
-0.25533103942871094,
0.038757920265197754,
0.170458123087883,
-0.05964762717485428,
0.18026195466518402,
-0.03505460545420647,
0.5183295607566833,
0.09845203161239624,
0.06107664108276367,
-0.3110623061656952,
-0.292202889919281,
0.09589250385761261,
0.11329399049282074,
-0.16429780423641205,
0.14646190404891968,
-0.0775095522403717,
-0.07499723881483078,
0.18221323192119598,
-0.28262919187545776,
-0.25074058771133423,
-0.025755830109119415,
-0.2285093367099762,
0.1024930328130722,
0.03291698917746544,
-0.4766203761100769,
0.10104318708181381,
0.013341938145458698,
0.0507274866104126,
-0.09035991132259369,
0.0723627582192421,
-0.22122684121131897,
-0.040718380361795425,
-0.13065023720264435,
-0.13286186754703522,
-0.0846424475312233,
0.40968605875968933,
0.12493737787008286,
0.13089706003665924,
0.28170648217201233,
0.23024597764015198,
-0.34945443272590637,
0.08346457779407501,
0.22286629676818848,
0.23815271258354187,
-0.5538778305053711,
0.10674932599067688,
-0.11697617173194885,
-0.20017193257808685,
-0.22251376509666443,
0.07512709498405457,
0.003570463275536895,
-0.3264312446117401,
0.006172209978103638,
-0.15819574892520905,
-0.09416979551315308,
0.09128477424383163,
0.4193666875362396,
0.09900626540184021,
-0.440139502286911,
0.7563028931617737,
0.1833338737487793,
-0.2378755360841751,
-0.1601603776216507,
0.13041460514068604,
0.4554123878479004,
-0.2698962390422821,
0.10516246408224106,
-0.36811748147010803,
0.19371239840984344,
-0.20565126836299896,
0.09545357525348663,
0.07498306035995483,
0.0011241449974477291,
-0.08470669388771057,
-0.3185291588306427,
-0.37638556957244873,
0.06417330354452133,
-0.127596914768219,
0.27096161246299744,
0.06571369618177414,
0.14424055814743042,
-0.242486372590065,
0.10846755653619766,
-0.22840853035449982,
-0.05996127799153328,
-0.1304061859846115,
0.217020645737648,
0.06876564770936966,
-0.11554983258247375,
-0.029965344816446304,
0.16431136429309845,
0.08759870380163193,
0.3649316430091858,
0.07729527354240417,
-0.21717262268066406,
-0.11241088062524796,
0.10818677395582199,
0.12695491313934326,
-0.269689679145813,
0.0701320618391037,
-0.021664895117282867,
-0.010612391866743565,
-0.31688588857650757,
0.09200895577669144,
0.05930785834789276,
-0.03379961848258972,
0.2827906012535095,
0.38358741998672485,
0.045312102884054184,
0.10487356036901474,
0.020299222320318222,
0.24440456926822662,
0.26442888379096985,
0.18606099486351013,
0.322185218334198,
-0.03469742089509964,
-0.06147918105125427,
-0.2507390081882477,
0.363992303609848,
0.37819844484329224,
-0.11715083569288254,
0.15625838935375214,
-0.4842173457145691,
0.135897696018219,
-0.13094715774059296,
0.25355279445648193,
0.6113292574882507,
-0.3544899821281433,
-0.15539142489433289,
0.16911262273788452,
0.11266225576400757,
-0.004548382479697466,
0.03866637498140335,
0.06095341965556145,
-0.05782151594758034,
-0.005827043671160936,
0.1932300329208374,
-0.057136859744787216,
-0.06116613745689392,
0.13544216752052307,
-0.08294598758220673,
0.2889597415924072,
-0.1634664386510849,
0.1883116513490677,
0.06417693942785263,
-0.42789772152900696,
-0.08586513996124268,
0.3677484691143036,
0.2824954688549042,
0.10133585333824158,
0.2784430980682373,
-0.10788040608167648,
0.4273208677768707,
0.0708393007516861,
-0.24930424988269806,
-0.0165876317769289,
-0.49297401309013367,
-0.3299546539783478,
0.11119704693555832,
0.24633699655532837,
0.19480185210704803,
0.04896918684244156,
0.3200198709964752,
-0.07998945564031601,
-0.11177272349596024,
-0.021363815292716026,
0.19566920399665833,
-0.2775018811225891,
0.0963110476732254,
-0.3862141966819763,
-0.22133566439151764,
-0.20778852701187134,
-0.10474838316440582,
-0.07726992666721344,
-0.18061287701129913,
0.0019160091178491712,
0.11878763884305954,
-0.18749931454658508,
-0.4298039674758911,
0.06275075674057007,
-0.0045477235689759254,
-0.11235175281763077,
-0.33422812819480896,
0.21795907616615295,
0.16026277840137482,
0.11708492040634155,
0.034909434616565704,
0.2651888430118561,
0.5087572932243347,
0.4610845744609833,
-0.1494465172290802,
0.176915243268013,
-0.5010873675346375,
-0.19116173684597015,
-0.06311282515525818,
0.11251815408468246,
-0.4148906469345093,
-0.10147596895694733,
0.38673892617225647,
0.08408315479755402,
-0.11434421688318253,
-0.21536774933338165,
0.13407424092292786,
0.07359398901462555,
0.00014833958994131535,
0.1247916966676712,
-0.08155634254217148,
0.04142804071307182,
-0.08147502690553665,
-0.04416953772306442,
-0.4062022566795349,
-0.1182340607047081,
0.4678342938423157,
0.11666375398635864,
0.1968587189912796,
0.020753849297761917,
0.05896211043000221,
-0.2503395080566406,
0.42579880356788635,
0.47547850012779236,
0.2222505807876587,
-0.4092891812324524,
-0.23575036227703094,
-0.29587075114250183,
0.3727256953716278,
-0.12138886004686356,
-0.19496552646160126,
-0.019623134285211563,
0.16514834761619568,
0.32282885909080505,
0.26910966634750366,
0.2435305118560791,
-0.14532293379306793,
-0.07103808224201202,
0.33608049154281616,
-0.3235670030117035,
-0.3320509195327759,
0.03563420847058296,
0.23942944407463074,
-0.06713160872459412,
-0.2778089642524719,
0.23340652883052826,
-0.10085969418287277,
0.1332823932170868,
-0.2046566903591156,
-0.30080097913742065,
0.08007307350635529,
0.04444550722837448,
0.44286414980888367,
0.18970052897930145,
0.4272841811180115,
0.09459984302520752,
0.06287721544504166,
-0.27842196822166443,
-0.23615765571594238,
-0.19147440791130066,
0.04522630199790001,
0.04485361650586128,
0.21423494815826416,
-0.03245317190885544,
-0.13446144759655,
-0.5011917352676392,
0.21689537167549133,
-0.10915283858776093,
-0.2911403477191925,
-0.35748714208602905,
0.27954602241516113,
0.003716306760907173,
0.07022742927074432,
-0.07147336006164551,
0.24562320113182068,
0.2120579481124878,
0.5372605919837952,
-0.36727607250213623,
-0.2944154143333435,
0.4216321110725403,
-0.6915379762649536,
-0.4907263517379761,
0.02503524161875248,
-0.19890597462654114,
0.1786564439535141,
0.270324170589447,
-0.564062237739563,
0.0031022217590361834,
0.3172042667865753,
-0.16942079365253448,
-0.1327279955148697,
0.003432659897953272,
0.09697665274143219,
0.024014504626393318,
-0.16893549263477325,
0.38899511098861694,
0.10353592783212662,
-0.03501880168914795,
-0.017748011276125908,
-0.2236267328262329
] |
https://github.com/huggingface/datasets/issues/1765 | Error iterating over Dataset with DataLoader | Yes, padding is an answer.
This can be solved easily by passing a callable to the collate_fn arg of DataLoader that adds padding. | I have a Dataset that I've mapped a tokenizer over:
```
encoded_dataset.set_format(type='torch',columns=['attention_mask','input_ids','token_type_ids'])
encoded_dataset[:1]
```
```
{'attention_mask': tensor([[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]),
'input_ids': tensor([[ 101, 178, 1198, 1400, 1714, 22233, 21365, 4515, 8618, 1113,
102]]),
'token_type_ids': tensor([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]])}
```
When I try to iterate as in the docs, I get errors:
```
dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_sampler=32)
next(iter(dataloader))
```
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-45-05180ba8aa35> in <module>()
1 dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_sampler=32)
----> 2 next(iter(dataloader))
3 frames
/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py in __init__(self, loader)
411 self._timeout = loader.timeout
412 self._collate_fn = loader.collate_fn
--> 413 self._sampler_iter = iter(self._index_sampler)
414 self._base_seed = torch.empty((), dtype=torch.int64).random_(generator=loader.generator).item()
415 self._persistent_workers = loader.persistent_workers
TypeError: 'int' object is not iterable
``` | 23 | Error iterating over Dataset with DataLoader
I have a Dataset that I've mapped a tokenizer over:
```
encoded_dataset.set_format(type='torch',columns=['attention_mask','input_ids','token_type_ids'])
encoded_dataset[:1]
```
```
{'attention_mask': tensor([[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]),
'input_ids': tensor([[ 101, 178, 1198, 1400, 1714, 22233, 21365, 4515, 8618, 1113,
102]]),
'token_type_ids': tensor([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]])}
```
When I try to iterate as in the docs, I get errors:
```
dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_sampler=32)
next(iter(dataloader))
```
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-45-05180ba8aa35> in <module>()
1 dataloader = torch.utils.data.DataLoader(encoded_dataset, batch_sampler=32)
----> 2 next(iter(dataloader))
3 frames
/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py in __init__(self, loader)
411 self._timeout = loader.timeout
412 self._collate_fn = loader.collate_fn
--> 413 self._sampler_iter = iter(self._index_sampler)
414 self._base_seed = torch.empty((), dtype=torch.int64).random_(generator=loader.generator).item()
415 self._persistent_workers = loader.persistent_workers
TypeError: 'int' object is not iterable
```
Yes, padding is an answer.
This can be solved easily by passing a callable to the collate_fn arg of DataLoader that adds padding. | [
-0.23792937397956848,
0.05545622482895851,
-0.04567086696624756,
0.2057335525751114,
0.1531803160905838,
0.00014133301738183945,
0.7921318411827087,
0.3068520724773407,
0.0211307592689991,
0.15271316468715668,
0.04679560288786888,
0.23042596876621246,
-0.2809545397758484,
-0.2416442632675171,
-0.09022649377584457,
-0.060450125485658646,
-0.07645385712385178,
0.07907024770975113,
-0.12242210656404495,
0.03289397060871124,
-0.14354035258293152,
-0.08673007041215897,
-0.19259722530841827,
0.03193556144833565,
-0.2509384751319885,
-0.13227060437202454,
-0.10359124839305878,
-0.09470740705728531,
-0.334125280380249,
-0.5228334069252014,
0.2897111773490906,
0.11794871091842651,
0.42384791374206543,
0.6812462210655212,
-0.00011708561214618385,
0.05326543748378754,
0.1204964891076088,
-0.1216142550110817,
-0.2641814053058624,
-0.2320629358291626,
0.13923411071300507,
-0.051622424274683,
0.033674757927656174,
-0.35476917028427124,
0.2605604827404022,
-0.33127203583717346,
-0.017206385731697083,
-0.2235836684703827,
0.19873777031898499,
0.2407110631465912,
0.12731046974658966,
0.4878684878349304,
-0.013066275045275688,
0.06860628724098206,
0.04524189606308937,
0.2505432367324829,
-0.01951165683567524,
0.1971428245306015,
0.19162479043006897,
0.010227537713944912,
-0.35976552963256836,
0.11686806380748749,
-0.16907067596912384,
0.047523852437734604,
0.13596856594085693,
-0.11273878067731857,
-0.21776078641414642,
-0.1320604383945465,
-0.03268343582749367,
-0.07962925732135773,
0.573284924030304,
-0.24739815294742584,
-0.3338908553123474,
-0.1655159592628479,
-0.22152991592884064,
-0.2673026919364929,
0.3192118704319,
-0.1650729477405548,
-0.1586039513349533,
-0.21399003267288208,
0.11575692892074585,
0.2405710369348526,
-0.20402644574642181,
0.1367141753435135,
-0.2591603696346283,
0.2086893916130066,
-0.04984985664486885,
0.30450013279914856,
0.2167699635028839,
-0.2556966543197632,
0.3407100737094879,
0.10055170953273773,
0.0440496988594532,
0.2752285897731781,
-0.5098055601119995,
-0.2515716850757599,
0.09336601942777634,
-0.48132815957069397,
-0.08895141631364822,
0.18174725770950317,
0.25127696990966797,
0.06592343002557755,
-0.026722945272922516,
0.24206483364105225,
0.4608975052833557,
0.18674716353416443,
0.16860972344875336,
0.34300729632377625,
0.05600263178348541,
-0.10084044188261032,
0.11158252507448196,
-0.06283745169639587,
-0.3309623897075653,
-0.304035484790802,
0.22978638112545013,
0.10076092928647995,
0.23551464080810547,
0.06380409002304077,
-0.24075189232826233,
-0.0010412117699161172,
-0.285439670085907,
-0.14088355004787445,
0.11154282093048096,
0.1466974914073944,
0.21548236906528473,
0.0784653052687645,
-0.02119668759405613,
0.04944745823740959,
-0.029459120705723763,
-0.1010558009147644,
-0.0631031021475792,
0.12259075790643692,
-0.23600462079048157,
0.006233049090951681,
0.26921308040618896,
-0.04495210945606232,
-0.0005979754496365786,
0.13793209195137024,
-0.016348939388990402,
0.10649412125349045,
0.1838306039571762,
-0.16774553060531616,
0.2751210629940033,
-0.06683048605918884,
0.05263768509030342,
0.3259076178073883,
0.24278853833675385,
0.052704330533742905,
-0.1517041027545929,
0.006441894453018904,
-0.42523646354675293,
-0.08540811389684677,
-0.07112928479909897,
0.134384885430336,
-0.06572763621807098,
-0.059655118733644485,
-0.4029015898704529,
-0.1930607706308365,
0.34761086106300354,
-0.15928398072719574,
0.09902079403400421,
-0.2618943750858307,
0.06796537339687347,
-0.09494326263666153,
0.07169871777296066,
0.3785110116004944,
-0.45884186029434204,
-0.13893170654773712,
0.1558682769536972,
0.10057917982339859,
0.26835331320762634,
0.2800275385379791,
-0.27751800417900085,
0.5750994086265564,
-0.4041409492492676,
0.31461504101753235,
0.33827486634254456,
-0.45757365226745605,
-0.3010723888874054,
0.30232343077659607,
-0.17285875976085663,
0.1828438937664032,
0.13110597431659698,
0.022096185013651848,
0.4072546362876892,
-0.21179920434951782,
0.1262146234512329,
0.1312221735715866,
-0.1754142940044403,
-0.08449843525886536,
-0.0188895370811224,
0.40735653042793274,
0.5204417109489441,
0.05792102962732315,
0.1899079978466034,
0.0911746472120285,
-0.25631269812583923,
0.1866552084684372,
0.04072454944252968,
-0.16240239143371582,
0.07528001815080643,
0.14618171751499176,
0.08729235082864761,
0.11540122330188751,
0.20471319556236267,
-0.1541341096162796,
-0.24141430854797363,
0.017452923581004143,
0.08473597466945648,
0.11033980548381805,
-0.15696124732494354,
0.10110833495855331,
0.015629969537258148,
0.1833895742893219,
-0.4093038737773895,
-0.1476445496082306,
0.10579903423786163,
0.33917754888534546,
-0.10850522667169571,
-0.2262801229953766,
-0.278257817029953,
0.010197000578045845,
-0.1502242088317871,
0.12290537357330322,
-0.31770703196525574,
0.07564617693424225,
0.07310914248228073,
-0.16212010383605957,
-0.11099178344011307,
0.001258278964087367,
0.21855378150939941,
-0.2305951863527298,
-0.019875524565577507,
0.15274366736412048,
0.07335054874420166,
0.08376602083444595,
-0.14092057943344116,
0.08403686434030533,
0.20277562737464905,
-0.08059126883745193,
-0.03504147380590439,
0.026323990896344185,
0.06335388869047165,
-0.24634693562984467,
0.2860274314880371,
0.3557420074939728,
-0.04151235148310661,
0.5438956618309021,
-0.18461400270462036,
0.186557337641716,
0.08548321574926376,
0.1429629921913147,
-0.22977490723133087,
0.121437668800354,
0.29159533977508545,
0.16527904570102692,
0.27270588278770447,
-0.07423854619264603,
-0.10618823021650314,
-0.016253549605607986,
0.13578619062900543,
0.03465676307678223,
-0.16728948056697845,
0.06450604647397995,
-0.20232918858528137,
0.0787326842546463,
0.14318899810314178,
-0.35833513736724854,
0.2936251163482666,
-0.041964419186115265,
0.1355629414319992,
-0.22973181307315826,
0.10938717424869537,
0.054877519607543945,
-0.0068244850262999535,
0.137367382645607,
0.05010930448770523,
0.1365748941898346,
-0.01798890344798565,
0.032990463078022,
-0.1993449330329895,
-0.2619040906429291,
-0.032163962721824646,
0.4030473828315735,
-0.2017507702112198,
0.4200809895992279,
-0.22512345016002655,
-0.08061408996582031,
-0.13573677837848663,
-0.4637429118156433,
-0.12441616505384445,
-0.48858365416526794,
-0.2934885323047638,
0.43772000074386597,
-0.05235603451728821,
0.28842195868492126,
0.1593025177717209,
0.06599490344524384,
0.6007105112075806,
-0.12018168717622757,
-0.12993432581424713,
-0.1651611477136612,
-0.14348652958869934,
0.0020231332164257765,
0.3916657269001007,
-0.3905932605266571,
0.3192388713359833,
-0.1485728770494461,
-0.03643971309065819,
-0.4931817948818207,
-0.17130281031131744,
0.23434670269489288,
-0.25151073932647705,
-0.10610969364643097,
0.25012314319610596,
0.16031160950660706,
-0.12767408788204193,
-0.3462352156639099,
0.23602181673049927,
-0.09714046120643616,
-0.059860873967409134,
0.3538430631160736,
-0.017857566475868225,
0.16488490998744965,
0.19423837959766388,
-0.16180545091629028,
-0.11437421292066574,
-0.22104230523109436,
0.14889438450336456,
-0.024225326254963875,
0.3098030686378479,
0.12795181572437286,
0.0508769191801548,
0.0688193067908287,
0.05388666316866875,
-0.08853520452976227,
-0.05291751027107239,
-0.4608558118343353,
0.42115622758865356,
-0.31889811158180237,
-0.29355141520500183,
-0.06109791249036789,
-0.00519530987367034,
0.35834088921546936,
0.3748796284198761,
-0.29544809460639954,
-0.0019788474310189486,
0.19680291414260864,
0.09606023877859116,
-0.17806683480739594,
0.013300897553563118,
0.16170166432857513,
0.11657118052244186,
-0.052686385810375214,
-0.052867691963911057,
0.14581650495529175,
0.17108049988746643,
-0.18763338029384613,
0.2580990791320801,
0.15930242836475372,
0.4765361547470093,
0.2614043354988098,
0.6606872081756592,
0.03890683501958847,
-0.38583633303642273,
0.3321017324924469,
-0.14006450772285461,
-0.000782485119998455,
0.08665761351585388,
-0.6534714698791504,
0.18306642770767212,
-0.28974252939224243,
-0.026324482634663582,
-0.10860712826251984,
-0.363752156496048,
-0.20201344788074493,
-0.1655699610710144,
0.16914485394954681,
-0.027160437777638435,
-0.3952351212501526,
0.465710312128067,
-0.4304012656211853,
0.283845454454422,
-0.07929585874080658,
0.13681280612945557,
-0.6179906725883484,
-0.015970708802342415,
0.1340288370847702,
0.0014617235865443945,
0.2550835907459259,
-0.08203373849391937,
-0.39441394805908203,
0.0771881565451622,
-0.46588844060897827,
0.23202820122241974,
0.08530604839324951,
0.7238261103630066,
0.18516764044761658,
-0.20388653874397278,
-0.1605454385280609,
-0.03389440104365349,
0.7261366844177246,
0.23516227304935455,
-0.013185366988182068,
0.09821484237909317,
-0.3114117383956909,
-0.4381257891654968,
-0.07942819595336914,
-0.2774268090724945,
0.642490565776825,
0.15633361041545868,
0.2806633412837982,
-0.23284606635570526,
-0.13018594682216644,
0.11599017679691315,
0.10674557089805603,
-0.21584363281726837,
-0.274822473526001,
-0.07602303475141525,
-0.06804303079843521,
-0.35322311520576477,
-0.014091789722442627,
0.04383879899978638,
0.2820526361465454,
0.09236986935138702,
0.022060982882976532,
-0.3040831685066223,
-0.027666650712490082,
0.3623539209365845,
-0.04278605803847313,
0.06607002764940262,
-0.16148190200328827,
0.15831466019153595,
0.19364111125469208,
0.2400771528482437,
0.641128420829773,
0.30705371499061584,
0.245091050863266,
-0.45245203375816345,
0.3747630715370178,
0.056793224066495895,
0.2789522707462311,
0.12668253481388092,
-0.1120252013206482,
-0.04638472944498062,
-0.3257368206977844,
0.05009079352021217,
-0.43527573347091675,
0.5216369032859802,
0.500228762626648,
0.14700326323509216,
-0.5732989311218262,
-0.3403780460357666,
0.2020387351512909,
0.11379598081111908,
0.1821291744709015,
0.7328402996063232,
-0.13254529237747192,
-0.13832244277000427,
0.13051961362361908,
0.13689574599266052,
0.7372891306877136,
0.059958674013614655,
0.12415510416030884,
0.41108161211013794,
0.57425856590271,
0.28740304708480835,
-0.5326967239379883,
0.09997910261154175,
-0.22785112261772156,
-0.047759730368852615,
-0.1629467010498047,
-0.25533103942871094,
0.038757920265197754,
0.170458123087883,
-0.05964762717485428,
0.18026195466518402,
-0.03505460545420647,
0.5183295607566833,
0.09845203161239624,
0.06107664108276367,
-0.3110623061656952,
-0.292202889919281,
0.09589250385761261,
0.11329399049282074,
-0.16429780423641205,
0.14646190404891968,
-0.0775095522403717,
-0.07499723881483078,
0.18221323192119598,
-0.28262919187545776,
-0.25074058771133423,
-0.025755830109119415,
-0.2285093367099762,
0.1024930328130722,
0.03291698917746544,
-0.4766203761100769,
0.10104318708181381,
0.013341938145458698,
0.0507274866104126,
-0.09035991132259369,
0.0723627582192421,
-0.22122684121131897,
-0.040718380361795425,
-0.13065023720264435,
-0.13286186754703522,
-0.0846424475312233,
0.40968605875968933,
0.12493737787008286,
0.13089706003665924,
0.28170648217201233,
0.23024597764015198,
-0.34945443272590637,
0.08346457779407501,
0.22286629676818848,
0.23815271258354187,
-0.5538778305053711,
0.10674932599067688,
-0.11697617173194885,
-0.20017193257808685,
-0.22251376509666443,
0.07512709498405457,
0.003570463275536895,
-0.3264312446117401,
0.006172209978103638,
-0.15819574892520905,
-0.09416979551315308,
0.09128477424383163,
0.4193666875362396,
0.09900626540184021,
-0.440139502286911,
0.7563028931617737,
0.1833338737487793,
-0.2378755360841751,
-0.1601603776216507,
0.13041460514068604,
0.4554123878479004,
-0.2698962390422821,
0.10516246408224106,
-0.36811748147010803,
0.19371239840984344,
-0.20565126836299896,
0.09545357525348663,
0.07498306035995483,
0.0011241449974477291,
-0.08470669388771057,
-0.3185291588306427,
-0.37638556957244873,
0.06417330354452133,
-0.127596914768219,
0.27096161246299744,
0.06571369618177414,
0.14424055814743042,
-0.242486372590065,
0.10846755653619766,
-0.22840853035449982,
-0.05996127799153328,
-0.1304061859846115,
0.217020645737648,
0.06876564770936966,
-0.11554983258247375,
-0.029965344816446304,
0.16431136429309845,
0.08759870380163193,
0.3649316430091858,
0.07729527354240417,
-0.21717262268066406,
-0.11241088062524796,
0.10818677395582199,
0.12695491313934326,
-0.269689679145813,
0.0701320618391037,
-0.021664895117282867,
-0.010612391866743565,
-0.31688588857650757,
0.09200895577669144,
0.05930785834789276,
-0.03379961848258972,
0.2827906012535095,
0.38358741998672485,
0.045312102884054184,
0.10487356036901474,
0.020299222320318222,
0.24440456926822662,
0.26442888379096985,
0.18606099486351013,
0.322185218334198,
-0.03469742089509964,
-0.06147918105125427,
-0.2507390081882477,
0.363992303609848,
0.37819844484329224,
-0.11715083569288254,
0.15625838935375214,
-0.4842173457145691,
0.135897696018219,
-0.13094715774059296,
0.25355279445648193,
0.6113292574882507,
-0.3544899821281433,
-0.15539142489433289,
0.16911262273788452,
0.11266225576400757,
-0.004548382479697466,
0.03866637498140335,
0.06095341965556145,
-0.05782151594758034,
-0.005827043671160936,
0.1932300329208374,
-0.057136859744787216,
-0.06116613745689392,
0.13544216752052307,
-0.08294598758220673,
0.2889597415924072,
-0.1634664386510849,
0.1883116513490677,
0.06417693942785263,
-0.42789772152900696,
-0.08586513996124268,
0.3677484691143036,
0.2824954688549042,
0.10133585333824158,
0.2784430980682373,
-0.10788040608167648,
0.4273208677768707,
0.0708393007516861,
-0.24930424988269806,
-0.0165876317769289,
-0.49297401309013367,
-0.3299546539783478,
0.11119704693555832,
0.24633699655532837,
0.19480185210704803,
0.04896918684244156,
0.3200198709964752,
-0.07998945564031601,
-0.11177272349596024,
-0.021363815292716026,
0.19566920399665833,
-0.2775018811225891,
0.0963110476732254,
-0.3862141966819763,
-0.22133566439151764,
-0.20778852701187134,
-0.10474838316440582,
-0.07726992666721344,
-0.18061287701129913,
0.0019160091178491712,
0.11878763884305954,
-0.18749931454658508,
-0.4298039674758911,
0.06275075674057007,
-0.0045477235689759254,
-0.11235175281763077,
-0.33422812819480896,
0.21795907616615295,
0.16026277840137482,
0.11708492040634155,
0.034909434616565704,
0.2651888430118561,
0.5087572932243347,
0.4610845744609833,
-0.1494465172290802,
0.176915243268013,
-0.5010873675346375,
-0.19116173684597015,
-0.06311282515525818,
0.11251815408468246,
-0.4148906469345093,
-0.10147596895694733,
0.38673892617225647,
0.08408315479755402,
-0.11434421688318253,
-0.21536774933338165,
0.13407424092292786,
0.07359398901462555,
0.00014833958994131535,
0.1247916966676712,
-0.08155634254217148,
0.04142804071307182,
-0.08147502690553665,
-0.04416953772306442,
-0.4062022566795349,
-0.1182340607047081,
0.4678342938423157,
0.11666375398635864,
0.1968587189912796,
0.020753849297761917,
0.05896211043000221,
-0.2503395080566406,
0.42579880356788635,
0.47547850012779236,
0.2222505807876587,
-0.4092891812324524,
-0.23575036227703094,
-0.29587075114250183,
0.3727256953716278,
-0.12138886004686356,
-0.19496552646160126,
-0.019623134285211563,
0.16514834761619568,
0.32282885909080505,
0.26910966634750366,
0.2435305118560791,
-0.14532293379306793,
-0.07103808224201202,
0.33608049154281616,
-0.3235670030117035,
-0.3320509195327759,
0.03563420847058296,
0.23942944407463074,
-0.06713160872459412,
-0.2778089642524719,
0.23340652883052826,
-0.10085969418287277,
0.1332823932170868,
-0.2046566903591156,
-0.30080097913742065,
0.08007307350635529,
0.04444550722837448,
0.44286414980888367,
0.18970052897930145,
0.4272841811180115,
0.09459984302520752,
0.06287721544504166,
-0.27842196822166443,
-0.23615765571594238,
-0.19147440791130066,
0.04522630199790001,
0.04485361650586128,
0.21423494815826416,
-0.03245317190885544,
-0.13446144759655,
-0.5011917352676392,
0.21689537167549133,
-0.10915283858776093,
-0.2911403477191925,
-0.35748714208602905,
0.27954602241516113,
0.003716306760907173,
0.07022742927074432,
-0.07147336006164551,
0.24562320113182068,
0.2120579481124878,
0.5372605919837952,
-0.36727607250213623,
-0.2944154143333435,
0.4216321110725403,
-0.6915379762649536,
-0.4907263517379761,
0.02503524161875248,
-0.19890597462654114,
0.1786564439535141,
0.270324170589447,
-0.564062237739563,
0.0031022217590361834,
0.3172042667865753,
-0.16942079365253448,
-0.1327279955148697,
0.003432659897953272,
0.09697665274143219,
0.024014504626393318,
-0.16893549263477325,
0.38899511098861694,
0.10353592783212662,
-0.03501880168914795,
-0.017748011276125908,
-0.2236267328262329
] |
https://github.com/huggingface/datasets/issues/1762 | Unable to format dataset to CUDA Tensors | Hi ! You can get CUDA tensors with
```python
dataset.set_format("torch", columns=columns, device="cuda")
```
Indeed `set_format` passes the `**kwargs` to `torch.tensor` | Hi,
I came across this [link](https://huggingface.co/docs/datasets/torch_tensorflow.html) where the docs show show to convert a dataset to a particular format. I see that there is an option to convert it to tensors, but I don't see any option to convert it to CUDA tensors.
I tried this, but Dataset doesn't support assignment:
```
columns=['input_ids', 'token_type_ids', 'attention_mask', 'start_positions','end_positions']
samples.set_format(type='torch', columns = columns)
for column in columns:
samples[column].to(torch.device(self.config.device))
```
There should be an option to do so, or if there is already a way to do this, please let me know.
Thanks,
Gunjan | 20 | Unable to format dataset to CUDA Tensors
Hi,
I came across this [link](https://huggingface.co/docs/datasets/torch_tensorflow.html) where the docs show show to convert a dataset to a particular format. I see that there is an option to convert it to tensors, but I don't see any option to convert it to CUDA tensors.
I tried this, but Dataset doesn't support assignment:
```
columns=['input_ids', 'token_type_ids', 'attention_mask', 'start_positions','end_positions']
samples.set_format(type='torch', columns = columns)
for column in columns:
samples[column].to(torch.device(self.config.device))
```
There should be an option to do so, or if there is already a way to do this, please let me know.
Thanks,
Gunjan
Hi ! You can get CUDA tensors with
```python
dataset.set_format("torch", columns=columns, device="cuda")
```
Indeed `set_format` passes the `**kwargs` to `torch.tensor` | [
-0.22562183439731598,
-0.4427936375141144,
-0.0796789675951004,
0.18397197127342224,
0.543350100517273,
0.3885731101036072,
0.5336815714836121,
0.334581196308136,
-0.009671260602772236,
0.1427578181028366,
-0.08334475755691528,
0.24232354760169983,
-0.22358499467372894,
0.09736344963312149,
0.1539928913116455,
-0.37384915351867676,
0.250727117061615,
-0.1545417457818985,
-0.06615737080574036,
0.07548593729734421,
-0.18340374529361725,
0.013290729373693466,
-0.14197829365730286,
-0.2985793650150299,
-0.23013995587825775,
-0.17566297948360443,
-0.00420931214466691,
-0.3617510497570038,
-0.16283850371837616,
-0.0704987645149231,
0.2917989194393158,
0.06723296642303467,
0.27076953649520874,
0.47809621691703796,
-0.00012292481551412493,
-0.024617811664938927,
-0.06422658264636993,
-0.09742778539657593,
-0.12295807898044586,
-0.32449665665626526,
0.09515859931707382,
-0.3088737428188324,
0.3264770209789276,
-0.23375482857227325,
-0.41704311966896057,
0.1638755202293396,
0.02458902634680271,
-0.3956410884857178,
0.2314237505197525,
0.5253635048866272,
0.11989258974790573,
0.19244669377803802,
0.23941083252429962,
0.02409376949071884,
-0.17405885457992554,
0.3766063153743744,
-0.35423538088798523,
0.025485167279839516,
0.16958004236221313,
0.15832854807376862,
0.2881680428981781,
0.13718891143798828,
-0.14174674451351166,
0.037653323262929916,
0.2801636755466461,
0.013186264783143997,
-0.3805175721645355,
-0.3432411849498749,
0.021550362929701805,
0.11267828941345215,
0.6594465374946594,
-0.3422841727733612,
-0.3564411997795105,
0.09587462991476059,
0.09355077147483826,
-0.3833392262458801,
-0.2534758448600769,
0.6357637643814087,
-0.36195865273475647,
0.06373768299818039,
-0.3649030923843384,
-0.006093011237680912,
-0.24501702189445496,
0.11993549764156342,
-0.2295885682106018,
0.009073604829609394,
-0.17173181474208832,
0.010839235037565231,
0.05078645050525665,
0.15694642066955566,
0.34232208132743835,
0.12478841096162796,
0.22258681058883667,
0.1706424206495285,
-0.4807886779308319,
-0.0802842304110527,
-0.548751175403595,
-0.13748079538345337,
0.1584184169769287,
0.07926905155181885,
0.15616253018379211,
0.009416301734745502,
-0.1356782466173172,
0.031078841537237167,
-0.2366456538438797,
0.2848207950592041,
0.03881611302495003,
0.22376927733421326,
-0.05030886456370354,
-0.257821649312973,
0.3450125753879547,
-0.06949969381093979,
-0.2909882068634033,
-0.5439583659172058,
-0.31130945682525635,
0.24849209189414978,
0.06475545465946198,
-0.09520004689693451,
-0.2748989462852478,
-0.09430702775716782,
-0.07213452458381653,
0.16599461436271667,
-0.21771562099456787,
0.2759563624858856,
0.013892882503569126,
0.14294038712978363,
0.46754443645477295,
0.1958005130290985,
0.03876708075404167,
0.03511636704206467,
-0.018357068300247192,
0.14948922395706177,
-0.2646302282810211,
-0.1256718933582306,
0.0721447765827179,
-0.421052485704422,
-0.023348279297351837,
0.11398836225271225,
0.009613672271370888,
0.03159000724554062,
-0.10516252368688583,
0.13687832653522491,
0.47961220145225525,
0.12302142381668091,
-0.015810508280992508,
0.37918075919151306,
0.2303939312696457,
0.24798324704170227,
-0.18121086061000824,
0.1148490458726883,
-0.47549885511398315,
-0.13141030073165894,
-0.4951537847518921,
0.004849132150411606,
0.2056555151939392,
0.01648630015552044,
-0.21505974233150482,
0.18204326927661896,
0.21012157201766968,
0.18329301476478577,
0.09544195979833603,
-0.12384500354528427,
-0.13860148191452026,
-0.31525298953056335,
0.49409183859825134,
0.08943647146224976,
-0.35022810101509094,
0.034580666571855545,
0.4406893253326416,
-0.04636844992637634,
0.22610047459602356,
0.2932242453098297,
0.14811956882476807,
-0.08550817519426346,
-0.11102735996246338,
-0.32967057824134827,
0.4267113506793976,
-0.4239209294319153,
-0.05233864486217499,
-0.19578588008880615,
0.13238222897052765,
-0.2657712697982788,
-0.09770813584327698,
0.1303255558013916,
0.26111698150634766,
0.09109954535961151,
0.17693550884723663,
0.21446911990642548,
-0.016698284074664116,
-0.025544822216033936,
-0.01103066373616457,
-0.01663178578019142,
0.5035651326179504,
-0.07188551127910614,
-0.14881709218025208,
0.31394726037979126,
-0.25493019819259644,
-0.055885184556245804,
0.1944795846939087,
-0.07875151187181473,
-0.045578014105558395,
0.0698697566986084,
0.2203964740037918,
0.021500742062926292,
-0.13938452303409576,
0.05784720182418823,
-0.4551053047180176,
-0.051870156079530716,
0.3765420615673065,
0.20906572043895721,
0.0017813161248341203,
-0.15419939160346985,
-0.009212193079292774,
0.017424417659640312,
-0.03164075314998627,
-0.042328089475631714,
-0.005731466691941023,
-0.34129461646080017,
-0.01052920427173376,
-0.12432023882865906,
-0.23459620773792267,
0.2832260727882385,
-0.2481098473072052,
0.1815064549446106,
-0.335683673620224,
0.06832875311374664,
0.02997146174311638,
-0.09160676598548889,
0.10929415374994278,
0.21457232534885406,
0.030876224860548973,
-0.26100894808769226,
0.06714149564504623,
0.10181222856044769,
0.164531409740448,
-0.058131176978349686,
-0.4233420193195343,
0.21278709173202515,
0.2228584736585617,
-0.03677495941519737,
-0.07459785044193268,
0.12345066666603088,
-0.03329448029398918,
-0.14306645095348358,
-0.36164620518684387,
0.3625272810459137,
-0.010838901624083519,
0.18663884699344635,
-0.37143978476524353,
0.4350888729095459,
0.1689337193965912,
0.12013813108205795,
-0.05248972028493881,
0.0288171898573637,
0.017816167324781418,
0.15896017849445343,
0.149010568857193,
-0.08305525779724121,
-0.8168125152587891,
-0.04374624416232109,
0.04409269243478775,
0.005620093084871769,
0.07371260970830917,
0.061521679162979126,
-0.18063706159591675,
0.12893003225326538,
0.27620476484298706,
-0.3633996844291687,
-0.13576948642730713,
0.08352994918823242,
0.17572320997714996,
0.06016465276479721,
0.07107339799404144,
-0.16419915854930878,
0.028269819915294647,
-0.08121062815189362,
-0.0660020187497139,
-0.12476687878370285,
0.11955516040325165,
-0.026937447488307953,
0.05009591579437256,
0.2913752496242523,
-0.029888715595006943,
0.11662962287664413,
-0.4848846197128296,
-0.006564950104802847,
-0.3681720495223999,
0.0670638158917427,
-0.4132384955883026,
-0.36648258566856384,
0.0107414610683918,
-0.03109705075621605,
-0.15773001313209534,
0.15033826231956482,
0.3468291759490967,
0.2500931918621063,
0.20513366162776947,
0.16085174679756165,
0.2119719386100769,
-0.1426745355129242,
-0.17581312358379364,
-0.24581006169319153,
0.11050685495138168,
0.03284960612654686,
0.31666100025177,
-0.16410215198993683,
0.243042454123497,
-0.23754681646823883,
0.19298502802848816,
-0.3415491282939911,
0.07825755327939987,
-0.12425687909126282,
-0.12309631705284119,
-0.11523715406656265,
0.09813349694013596,
0.38236019015312195,
0.00023647971102036536,
-0.02512606419622898,
0.12492706626653671,
0.17943957448005676,
-0.04764905199408531,
0.018080538138747215,
-0.3153507709503174,
-0.041939638555049896,
-0.19577817618846893,
-0.292768657207489,
-0.24477888643741608,
-0.21225330233573914,
0.2192923128604889,
-0.017945069819688797,
0.12607118487358093,
-0.31881093978881836,
0.3760595917701721,
-0.1312130093574524,
0.08544721454381943,
-0.037053823471069336,
0.03661850094795227,
-0.5210583806037903,
0.6136805415153503,
-0.2563227713108063,
-0.5021975636482239,
0.15690411627292633,
0.17868833243846893,
0.42874613404273987,
0.4022277295589447,
-0.009298224933445454,
0.17884227633476257,
0.17368876934051514,
0.00015171492123045027,
0.03754735365509987,
0.040619056671857834,
0.2938459813594818,
0.005161315202713013,
0.12085042893886566,
0.10787732154130936,
-0.11077219247817993,
-0.06399381160736084,
0.045747559517621994,
0.32605794072151184,
0.12965205311775208,
0.501736581325531,
0.09555545449256897,
0.727352499961853,
0.10967554897069931,
-0.5754064321517944,
0.02508661523461342,
-0.2393108308315277,
0.3088158369064331,
-0.10564283281564713,
-0.3586207628250122,
0.2695137560367584,
-0.0499894954264164,
0.12670472264289856,
-0.008507214486598969,
-0.1291821151971817,
-0.006732169073075056,
-0.17408208549022675,
0.18637683987617493,
-0.32610729336738586,
-0.1349492371082306,
0.13826072216033936,
-0.3389182686805725,
0.2386585921049118,
-0.3227364718914032,
0.3202267289161682,
-0.049673061817884445,
-0.17634375393390656,
0.2526320815086365,
0.3094438910484314,
0.23438438773155212,
0.13021592795848846,
-0.07782139629125595,
0.01521411631256342,
-0.6871017217636108,
0.2909296452999115,
-0.13839377462863922,
0.41087886691093445,
-0.08452297747135162,
0.23190003633499146,
0.14221417903900146,
0.2238977700471878,
0.7626750469207764,
0.1783868372440338,
-0.46284300088882446,
-0.005534668453037739,
-0.09016740322113037,
-0.48898759484291077,
-0.1416972577571869,
0.037963055074214935,
0.19729158282279968,
-0.05237194523215294,
0.06909075379371643,
-0.12462393194437027,
-0.24335232377052307,
-0.032111238688230515,
0.28178122639656067,
-0.29917094111442566,
0.05570199340581894,
-0.11038060486316681,
-0.0708337128162384,
-0.11247938871383667,
0.07603181153535843,
0.22848303616046906,
0.20879554748535156,
0.04937710613012314,
-0.24285708367824554,
-0.256250262260437,
0.12930896878242493,
0.42909255623817444,
-0.14352914690971375,
0.19164226949214935,
0.24311563372612,
-0.12289853394031525,
0.15850621461868286,
0.24743646383285522,
0.29097455739974976,
-0.07480788975954056,
-0.16565057635307312,
-0.12685564160346985,
-0.015753628686070442,
-0.07947401702404022,
0.4617820084095001,
-0.0818614587187767,
0.03433464840054512,
-0.11740792542695999,
-0.2418862283229828,
-0.0596986748278141,
-0.3334890305995941,
0.2495235800743103,
0.24931618571281433,
0.2935777008533478,
-0.7081379294395447,
-0.5079488158226013,
0.2671419382095337,
0.17040978372097015,
0.2011546641588211,
0.5503251552581787,
0.27551329135894775,
-0.09372545033693314,
0.18175485730171204,
0.5460436344146729,
0.7262751460075378,
-0.4373694658279419,
0.0883295089006424,
0.16952158510684967,
-0.18520082533359528,
0.49150350689888,
-0.4952091872692108,
0.2678437829017639,
-0.34904155135154724,
-0.012941766530275345,
-0.34354519844055176,
-0.17042328417301178,
0.09236754477024078,
0.15473562479019165,
0.06939009577035904,
0.24673084914684296,
-0.47926226258277893,
0.13293278217315674,
-0.07656735926866531,
-0.06402964890003204,
0.1686972826719284,
-0.2746075689792633,
0.04590331017971039,
0.0735662430524826,
-0.2213016152381897,
0.16330230236053467,
0.03877754136919975,
0.007823911495506763,
-0.08208021521568298,
0.25808799266815186,
-0.24441546201705933,
-0.10088535398244858,
-0.3394668698310852,
0.06628471612930298,
0.004360539373010397,
-0.9245515465736389,
0.3079777956008911,
0.6653308868408203,
0.6603671312332153,
-0.011560410261154175,
-0.16965290904045105,
-0.057439759373664856,
-0.12453863769769669,
-0.1532784104347229,
-0.1686953902244568,
0.02416524663567543,
0.27939683198928833,
0.07624062150716782,
0.05644309148192406,
0.3012823164463043,
0.2693250775337219,
-0.07937613874673843,
0.015617107041180134,
0.03296060115098953,
0.05154416710138321,
-0.35428494215011597,
-0.5156933069229126,
0.07781197130680084,
0.31487661600112915,
0.03472869470715523,
0.047615230083465576,
0.13364900648593903,
-0.15097497403621674,
0.2008598893880844,
-0.08687347173690796,
-0.1367923617362976,
0.09857266396284103,
0.2253590077161789,
-0.004861527122557163,
-0.28252092003822327,
0.32551050186157227,
0.4667450785636902,
-0.23352797329425812,
-0.07200673222541809,
-0.04525475576519966,
0.5412317514419556,
-0.15099970996379852,
0.0699637159705162,
-0.14862434566020966,
0.30619773268699646,
-0.1462109237909317,
0.25237390398979187,
-0.2261345088481903,
0.02042950876057148,
-0.02490176260471344,
-0.10997530817985535,
-0.2874637246131897,
-0.18304689228534698,
-0.2217329889535904,
0.3471129238605499,
0.22114261984825134,
0.10990433394908905,
0.034780342131853104,
-0.2116914689540863,
-0.1549738049507141,
0.04992730915546417,
0.029291562736034393,
0.21129775047302246,
0.1265251189470291,
0.31239914894104004,
-0.07720573991537094,
-0.2509688138961792,
0.013780471868813038,
0.07579831779003143,
0.07604440301656723,
-0.13550619781017303,
-0.1599956601858139,
0.1292593777179718,
0.024946777150034904,
0.12854944169521332,
0.15133365988731384,
-0.03172719106078148,
-0.2759660482406616,
-0.2957116365432739,
0.27635762095451355,
0.5281388759613037,
-0.03341911360621452,
0.5064692497253418,
-0.043185554444789886,
0.11489308625459671,
-0.11242128163576126,
-0.11232135444879532,
0.2780427038669586,
-0.010090119205415249,
0.10514429956674576,
0.0377381257712841,
0.07683686912059784,
-0.06679466366767883,
-0.3280535936355591,
0.23378349840641022,
0.13342636823654175,
-0.23464977741241455,
0.11914047598838806,
-0.001648391131311655,
0.2164837270975113,
-0.04824912175536156,
0.09028301388025284,
-0.033773817121982574,
-0.08176852762699127,
0.314436674118042,
0.2636376917362213,
0.05125340074300766,
-0.001574720605276525,
0.0905374139547348,
-0.01525024138391018,
-0.028164060786366463,
-0.13183538615703583,
0.07699788361787796,
0.14743520319461823,
-0.019124159589409828,
-0.21130217611789703,
-0.17674313485622406,
0.12216626107692719,
-0.35728558897972107,
0.26314863562583923,
0.060050118714571,
0.26294681429862976,
0.030052123591303825,
0.21487882733345032,
0.010832288302481174,
-0.01881599798798561,
-0.10089930891990662,
0.16979379951953888,
0.4328988194465637,
0.3964437246322632,
-0.12267166376113892,
0.2822856605052948,
-0.12447721511125565,
-0.28157079219818115,
-0.3143923282623291,
0.0735904797911644,
0.23758700489997864,
-0.0060710543766617775,
0.38082706928253174,
-0.1185419037938118,
-0.3919461965560913,
-0.15496346354484558,
0.17336879670619965,
-0.3100360035896301,
0.031670939177274704,
-0.16861304640769958,
0.11809385567903519,
0.27387431263923645,
0.09923893958330154,
-0.02675318717956543,
-0.44985347986221313,
0.23406244814395905,
0.11827470362186432,
-0.0248381607234478,
0.2466266006231308,
0.11771915853023529,
0.28417375683784485,
0.044755108654499054,
0.03995254263281822,
-0.15344415605068207,
-0.23462657630443573,
-0.11177259683609009,
-0.09163098782300949,
0.20858262479305267,
0.32708534598350525,
0.14547131955623627,
0.13217230141162872,
0.17810240387916565,
-0.09220054745674133,
-0.0760667473077774,
0.3173443675041199,
0.202947199344635,
-0.010971274226903915,
-0.0393633134663105,
0.09728243947029114,
0.11393386125564575,
0.09001264721155167,
-0.07895994186401367,
-0.013252011500298977,
0.2696390151977539,
-0.273649662733078,
-0.16617543995380402,
-0.3909122049808502,
-0.3425940275192261,
-0.41845059394836426,
-0.0018124101916328073,
-0.17652259767055511,
0.057807184755802155,
0.3780952990055084,
0.06903749704360962,
-0.14831194281578064,
0.04841126129031181,
-0.0011280791368335485,
0.016821766272187233,
0.3757733106613159,
0.026427950710058212,
0.3644811511039734,
-0.10243495553731918,
-0.3040475845336914,
-0.10690563917160034,
0.0779600515961647,
0.2708781361579895,
0.16561372578144073,
-0.12999752163887024,
-0.09768681228160858,
0.13291631639003754,
0.06388900429010391,
-0.20482635498046875,
-0.1444837599992752,
0.17467834055423737,
0.4526616334915161,
-0.07795724272727966,
-0.05375766381621361,
-0.4576849937438965,
0.04748023673892021,
0.06578978151082993,
0.018835969269275665,
0.05243943631649017,
-0.07369797676801682,
-0.09826282411813736,
-0.25494566559791565,
0.47859618067741394,
-0.0774046778678894,
0.28529322147369385,
0.1914910227060318,
-0.0014074675273150206,
0.3393484652042389,
0.21052159368991852,
0.29497334361076355,
-0.08814393728971481,
0.1394772231578827,
-0.08941344171762466,
0.3484449088573456,
-0.17450305819511414,
0.13163156807422638,
-0.121891088783741,
-0.4343792200088501,
-0.17674493789672852,
0.5815297365188599,
0.13642629981040955,
-0.19196873903274536,
-0.1335180401802063,
0.2131028175354004,
-0.2032683938741684,
-0.24811922013759613,
0.6295921802520752,
0.34966397285461426,
0.06299571692943573,
0.17789053916931152,
-0.299742728471756,
-0.005398944020271301,
0.2633989155292511,
-0.285115510225296,
-0.17757195234298706,
0.026793546974658966,
-0.28374719619750977,
0.36433154344558716,
0.1285237967967987,
-1.0042160749435425,
-0.050814349204301834,
0.04311025142669678,
-0.29690778255462646,
-0.11562730371952057,
0.2367577701807022,
0.0655909851193428,
0.1566387414932251,
-0.17509527504444122,
0.3621441125869751,
0.10894668102264404,
0.053220707923173904,
-0.4503194987773895,
-0.34426599740982056
] |
https://github.com/huggingface/datasets/issues/1762 | Unable to format dataset to CUDA Tensors | Hi @lhoestq,
Thanks a lot. Is this true for all format types?
As in, for 'torch', I can have `**kwargs` to `torch.tensor` and for 'tf' those args are passed to `tf.Tensor`, and the same for 'numpy' and 'pandas'? | Hi,
I came across this [link](https://huggingface.co/docs/datasets/torch_tensorflow.html) where the docs show show to convert a dataset to a particular format. I see that there is an option to convert it to tensors, but I don't see any option to convert it to CUDA tensors.
I tried this, but Dataset doesn't support assignment:
```
columns=['input_ids', 'token_type_ids', 'attention_mask', 'start_positions','end_positions']
samples.set_format(type='torch', columns = columns)
for column in columns:
samples[column].to(torch.device(self.config.device))
```
There should be an option to do so, or if there is already a way to do this, please let me know.
Thanks,
Gunjan | 38 | Unable to format dataset to CUDA Tensors
Hi,
I came across this [link](https://huggingface.co/docs/datasets/torch_tensorflow.html) where the docs show show to convert a dataset to a particular format. I see that there is an option to convert it to tensors, but I don't see any option to convert it to CUDA tensors.
I tried this, but Dataset doesn't support assignment:
```
columns=['input_ids', 'token_type_ids', 'attention_mask', 'start_positions','end_positions']
samples.set_format(type='torch', columns = columns)
for column in columns:
samples[column].to(torch.device(self.config.device))
```
There should be an option to do so, or if there is already a way to do this, please let me know.
Thanks,
Gunjan
Hi @lhoestq,
Thanks a lot. Is this true for all format types?
As in, for 'torch', I can have `**kwargs` to `torch.tensor` and for 'tf' those args are passed to `tf.Tensor`, and the same for 'numpy' and 'pandas'? | [
-0.19142423570156097,
-0.4953543245792389,
-0.06351526081562042,
0.14305101335048676,
0.5737581253051758,
0.3578239977359772,
0.6109963059425354,
0.3751016855239868,
-0.006468827370554209,
0.09331325441598892,
-0.18430891633033752,
0.23856399953365326,
-0.18889375030994415,
0.20827443897724152,
0.18554724752902985,
-0.3550991117954254,
0.23482158780097961,
-0.15433886647224426,
-0.037662673741579056,
0.07048622518777847,
-0.20851463079452515,
-0.024109523743391037,
-0.15626367926597595,
-0.2900009751319885,
-0.19499073922634125,
-0.16171970963478088,
0.020171912387013435,
-0.4400327801704407,
-0.10248100012540817,
-0.06419336795806885,
0.2913289964199066,
0.10488828271627426,
0.30668503046035767,
0.4878613352775574,
-0.00012565639917738736,
-0.01786433532834053,
-0.04979489743709564,
-0.1510569453239441,
-0.12282547354698181,
-0.2663968503475189,
0.013185902498662472,
-0.2795283794403076,
0.32731756567955017,
-0.26975011825561523,
-0.3616901934146881,
0.13513292372226715,
0.050388894975185394,
-0.37674984335899353,
0.20086418092250824,
0.5606645345687866,
0.08733212947845459,
0.15674178302288055,
0.22398127615451813,
0.03131256252527237,
-0.14011086523532867,
0.47426462173461914,
-0.38699501752853394,
0.03213551640510559,
0.12391391396522522,
0.23134179413318634,
0.2390955686569214,
0.12194765359163284,
-0.1170620396733284,
0.0366935208439827,
0.24364881217479706,
0.006877609062939882,
-0.35906368494033813,
-0.2845257818698883,
0.041574977338314056,
0.23167850077152252,
0.7356416583061218,
-0.30583667755126953,
-0.4198359251022339,
0.08012893050909042,
0.038407668471336365,
-0.3957466185092926,
-0.19685102999210358,
0.6596462726593018,
-0.3205679655075073,
0.06708042323589325,
-0.3185798227787018,
0.11471537500619888,
-0.23709899187088013,
0.12597538530826569,
-0.2630986273288727,
0.022849075496196747,
-0.2386256605386734,
-0.005282745696604252,
0.013435808010399342,
0.13735932111740112,
0.2915564477443695,
0.1084817498922348,
0.18641002476215363,
0.17297013103961945,
-0.49683627486228943,
-0.11239510029554367,
-0.5637844800949097,
-0.1750737428665161,
0.14551344513893127,
0.07509349286556244,
0.18898440897464752,
0.04705530032515526,
-0.15271572768688202,
0.04568200185894966,
-0.1689353734254837,
0.22416876256465912,
0.03230809420347214,
0.1593717336654663,
-0.05211954563856125,
-0.26830095052719116,
0.3393744230270386,
-0.06395131349563599,
-0.2907772362232208,
-0.5000954866409302,
-0.29448577761650085,
0.18284715712070465,
0.09360324591398239,
-0.07467877864837646,
-0.2550731897354126,
-0.11885776370763779,
-0.024816766381263733,
0.10760557651519775,
-0.2666124403476715,
0.2495332956314087,
0.025321373715996742,
0.302079439163208,
0.39458173513412476,
0.18590803444385529,
0.06243763864040375,
0.08850222080945969,
0.045999567955732346,
0.09767517447471619,
-0.22496050596237183,
-0.20465941727161407,
0.050319597125053406,
-0.34944263100624084,
-0.052041731774806976,
0.1319434642791748,
-0.02984405867755413,
-0.005022227764129639,
-0.11016415059566498,
0.08496413379907608,
0.47554224729537964,
0.11982359737157822,
-0.10784085094928741,
0.4093901813030243,
0.2108050435781479,
0.21505670249462128,
-0.2697773873806,
0.16336308419704437,
-0.482878714799881,
-0.050340455025434494,
-0.49777165055274963,
-0.04585249722003937,
0.2782033383846283,
-0.005236981436610222,
-0.20896445214748383,
0.2063407152891159,
0.26744306087493896,
0.12634555995464325,
0.11632977426052094,
-0.1863863617181778,
-0.11872778832912445,
-0.29599305987358093,
0.48397183418273926,
0.0943368598818779,
-0.34624195098876953,
-0.01356499083340168,
0.5384860038757324,
-0.04938783869147301,
0.22865472733974457,
0.34459495544433594,
0.19991737604141235,
-0.1558276116847992,
-0.1161527931690216,
-0.3076293468475342,
0.5141447186470032,
-0.3327646553516388,
0.06209137663245201,
-0.20462876558303833,
0.2385944277048111,
-0.23974066972732544,
-0.03069305047392845,
0.09010318666696548,
0.2652631998062134,
0.04171363264322281,
0.17193688452243805,
0.2446942925453186,
-0.025607656687498093,
0.006252060178667307,
-0.020201876759529114,
0.05640312656760216,
0.4594368040561676,
-0.09072943031787872,
-0.19937382638454437,
0.3107620179653168,
-0.2633802890777588,
-0.115141361951828,
0.16215118765830994,
-0.0987524762749672,
-0.0622769296169281,
0.012384648434817791,
0.2049013376235962,
0.030500490218400955,
-0.13591033220291138,
0.03589438647031784,
-0.495087593793869,
-0.128797709941864,
0.39697903394699097,
0.16877123713493347,
0.12177708745002747,
-0.1747484803199768,
-0.003075569635257125,
-0.00991527084261179,
0.007943563163280487,
0.04481753334403038,
-0.046409498900175095,
-0.2493264377117157,
-0.08740469068288803,
-0.06157670542597771,
-0.37236487865448,
0.18128320574760437,
-0.22459398210048676,
0.15824748575687408,
-0.20712053775787354,
-0.12473756819963455,
0.059253983199596405,
-0.07163289189338684,
0.06302882730960846,
0.23526261746883392,
0.013181330636143684,
-0.21248376369476318,
0.02842094376683235,
0.0819358229637146,
0.21833713352680206,
-0.05589253082871437,
-0.516680896282196,
0.28932544589042664,
0.2828788459300995,
0.10455168038606644,
-0.11550605297088623,
0.031121866777539253,
0.005508732981979847,
-0.1629832237958908,
-0.37091511487960815,
0.4067360460758209,
0.05993323773145676,
0.23095457255840302,
-0.3554264307022095,
0.37591657042503357,
0.1866152137517929,
0.10953214764595032,
-0.08151175081729889,
0.06284988671541214,
-0.030695857480168343,
0.15433241426944733,
0.12423058599233627,
-0.026919767260551453,
-0.8723093867301941,
-0.08261089026927948,
0.0893358439207077,
-0.05247175320982933,
0.12470855563879013,
0.08510805666446686,
-0.15958553552627563,
0.16698430478572845,
0.26301637291908264,
-0.3978269100189209,
-0.13760651648044586,
0.04142620041966438,
0.19408680498600006,
-0.0485711432993412,
0.056514672935009,
-0.23356373608112335,
0.01866353675723076,
-0.09824290126562119,
-0.09157944470643997,
-0.07277726382017136,
0.10715159773826599,
-0.01840243674814701,
0.0337333008646965,
0.3695032000541687,
-0.030522804707288742,
0.01905456744134426,
-0.5362111926078796,
-0.015857338905334473,
-0.35196325182914734,
0.09774737060070038,
-0.34909963607788086,
-0.3521321415901184,
0.12913507223129272,
-0.018952934071421623,
-0.16112743318080902,
0.053475603461265564,
0.30195823311805725,
0.2789478600025177,
0.16807010769844055,
0.27210739254951477,
0.1798410266637802,
-0.1224965751171112,
-0.21189892292022705,
-0.240227609872818,
0.12413725256919861,
0.0009450142970308661,
0.4400056004524231,
-0.21657627820968628,
0.21785125136375427,
-0.20759037137031555,
0.1460316777229309,
-0.27339714765548706,
0.04511648416519165,
-0.10205938667058945,
-0.1112595796585083,
-0.11894414573907852,
0.08324458450078964,
0.3903747797012329,
0.021829750388860703,
-0.028824184089899063,
0.13501879572868347,
0.18238043785095215,
-0.02116386592388153,
0.023500483483076096,
-0.3299603760242462,
-0.03737730160355568,
-0.2545599639415741,
-0.20030106604099274,
-0.23299051821231842,
-0.24436986446380615,
0.24784819781780243,
-0.04161951318383217,
0.14786800742149353,
-0.3123801350593567,
0.3225724399089813,
-0.136761873960495,
-0.05159783735871315,
0.041628047823905945,
0.05457066372036934,
-0.4584089517593384,
0.644271194934845,
-0.2775748074054718,
-0.4975639283657074,
0.19162128865718842,
0.16856223344802856,
0.36594074964523315,
0.4488741457462311,
0.047236308455467224,
0.11433156579732895,
0.14738941192626953,
-0.11060141772031784,
0.05620961636304855,
0.0760413408279419,
0.2353334277868271,
-0.022662460803985596,
0.15715496242046356,
0.11755312234163284,
-0.07409728318452835,
-0.010389457456767559,
0.05458914861083031,
0.2211625576019287,
0.20902954041957855,
0.4589602053165436,
0.07631422579288483,
0.612846851348877,
0.06709875911474228,
-0.6483485102653503,
0.05798870325088501,
-0.20468109846115112,
0.36498767137527466,
-0.11801847815513611,
-0.2335178554058075,
0.3266436755657196,
-0.016942793503403664,
0.1533859819173813,
0.029170168563723564,
-0.15080134570598602,
-0.09526634961366653,
-0.19704189896583557,
0.27282294631004333,
-0.3071238100528717,
-0.15409274399280548,
0.26966559886932373,
-0.3257265090942383,
0.2577628195285797,
-0.31247901916503906,
0.2771008014678955,
-0.06721115112304688,
-0.1610768586397171,
0.25389885902404785,
0.3399351239204407,
0.2657431662082672,
0.14257390797138214,
-0.154501810669899,
-0.002981926081702113,
-0.5467546582221985,
0.25988876819610596,
-0.07410586625337601,
0.434722900390625,
-0.08689029514789581,
0.13990363478660583,
0.09342242032289505,
0.24146129190921783,
0.7726784348487854,
0.20273227989673615,
-0.5556980967521667,
-0.011865401640534401,
-0.08352141827344894,
-0.4828518033027649,
-0.12135425955057144,
0.006544356234371662,
0.1386803537607193,
-0.13538858294487,
0.1908852607011795,
-0.21867166459560394,
-0.26978644728660583,
-0.05113464593887329,
0.26687997579574585,
-0.21818916499614716,
0.026884764432907104,
-0.0829344168305397,
-0.051274094730615616,
-0.06738092750310898,
0.09949055314064026,
0.2984829545021057,
0.12875691056251526,
0.021568411961197853,
-0.290241003036499,
-0.35835689306259155,
0.1438712626695633,
0.440870463848114,
-0.19629348814487457,
0.19311116635799408,
0.25487738847732544,
-0.2116420865058899,
0.08775411546230316,
0.2692281901836395,
0.2353905290365219,
-0.18073154985904694,
-0.16844558715820312,
-0.0917920246720314,
0.06575553119182587,
-0.060153085738420486,
0.45419609546661377,
-0.04473579302430153,
0.037375155836343765,
-0.11459800601005554,
-0.22698016464710236,
-0.10908182710409164,
-0.3234999477863312,
0.21260276436805725,
0.25215697288513184,
0.3025762140750885,
-0.7884063124656677,
-0.5442993640899658,
0.24488350749015808,
0.15127655863761902,
0.20365892350673676,
0.4967103898525238,
0.3014930486679077,
-0.08931058645248413,
0.13318350911140442,
0.5167667865753174,
0.7235730290412903,
-0.44036662578582764,
0.20874500274658203,
0.15286116302013397,
-0.13520511984825134,
0.4863536059856415,
-0.4683973491191864,
0.27371934056282043,
-0.3209703862667084,
-0.03335048258304596,
-0.4079744815826416,
-0.24025775492191315,
0.09103754907846451,
0.1453147828578949,
0.10421056300401688,
0.17466266453266144,
-0.47718146443367004,
0.2962515950202942,
-0.0020692406687885523,
-0.10513735562562943,
0.06221805512905121,
-0.3006749749183655,
0.024257175624370575,
0.04470335319638252,
-0.23823882639408112,
0.06198849901556969,
0.051307424902915955,
-0.0498453751206398,
-0.042767804116010666,
0.27352771162986755,
-0.25463876128196716,
-0.14871223270893097,
-0.3635270297527313,
-0.024082258343696594,
0.08029142022132874,
-0.9106851816177368,
0.3314267694950104,
0.6718659996986389,
0.6400457620620728,
-0.029920119792222977,
-0.11608261615037918,
-0.12339144200086594,
-0.0824025347828865,
-0.11754752695560455,
-0.14996089041233063,
0.05989662930369377,
0.24630655348300934,
0.10090330243110657,
0.12225623428821564,
0.36588284373283386,
0.25924116373062134,
-0.0899253711104393,
-0.01989874057471752,
0.00857540313154459,
-0.008414731360971928,
-0.3936413526535034,
-0.6244142055511475,
0.006045662797987461,
0.32281172275543213,
0.08910028636455536,
0.027946460992097855,
0.12683908641338348,
-0.12331351637840271,
0.27057069540023804,
-0.10165587812662125,
-0.10501853376626968,
0.1336262971162796,
0.1531161665916443,
0.00657163979485631,
-0.217882439494133,
0.3395914137363434,
0.3548997640609741,
-0.25397729873657227,
-0.03672408685088158,
-0.03279723972082138,
0.48724427819252014,
-0.11750868707895279,
0.0898444801568985,
-0.12113174796104431,
0.18238262832164764,
-0.19156014919281006,
0.31415852904319763,
-0.2143552452325821,
0.05059998854994774,
-0.030467277392745018,
-0.11681689321994781,
-0.16960148513317108,
-0.08666083961725235,
-0.222385436296463,
0.3939131200313568,
0.1930728703737259,
0.1474800407886505,
0.04285721108317375,
-0.26386889815330505,
-0.12461920082569122,
-0.000799788162112236,
0.024653751403093338,
0.21864742040634155,
0.03738553822040558,
0.3422355353832245,
-0.07445845007896423,
-0.18571539223194122,
0.004726137965917587,
0.12638477981090546,
0.09883284568786621,
-0.12558884918689728,
-0.18602026998996735,
0.15718314051628113,
0.08856657147407532,
0.15467354655265808,
0.1922038197517395,
-0.02905464358627796,
-0.30149903893470764,
-0.2998075783252716,
0.20541678369045258,
0.47492480278015137,
-0.08227935433387756,
0.50920170545578,
-0.039517149329185486,
0.1536431759595871,
-0.03764788433909416,
-0.011222458444535732,
0.2795647382736206,
-0.026844782754778862,
0.15633149445056915,
0.005120865534991026,
0.048197489231824875,
-0.00666919257491827,
-0.30123576521873474,
0.3035324513912201,
0.2208903729915619,
-0.24159789085388184,
0.0347440168261528,
-0.016292069107294083,
0.16150033473968506,
0.01112916599959135,
0.08182553201913834,
0.027269937098026276,
-0.07982316613197327,
0.3388369083404541,
0.23706898093223572,
-0.0012149184476584196,
0.03749281167984009,
0.1251107156276703,
0.06854187697172165,
-0.02164926566183567,
-0.05958917364478111,
0.1306430697441101,
0.15587013959884644,
-0.11925447732210159,
-0.10880760848522186,
-0.2447170466184616,
0.03511108085513115,
-0.3608440160751343,
0.2779548764228821,
0.07823272794485092,
0.2904628813266754,
0.06496360152959824,
0.1931929737329483,
0.01196216233074665,
-0.03224232420325279,
-0.2728925943374634,
0.20333793759346008,
0.33752378821372986,
0.39242029190063477,
-0.11422382295131683,
0.30860233306884766,
-0.2124437391757965,
-0.2520950436592102,
-0.2953307628631592,
0.0957646444439888,
0.30003225803375244,
0.05209736153483391,
0.41988086700439453,
-0.0845126360654831,
-0.4007328152656555,
-0.15737783908843994,
0.10226418077945709,
-0.3023598790168762,
0.006013187114149332,
-0.260073721408844,
0.1281619668006897,
0.2903253734111786,
0.05165789648890495,
-0.08670579642057419,
-0.3957056403160095,
0.25724589824676514,
0.18434783816337585,
0.09140978753566742,
0.2649306654930115,
0.1433955729007721,
0.21925602853298187,
0.06524616479873657,
0.0689196065068245,
-0.0540589764714241,
-0.2141501009464264,
-0.09969820082187653,
-0.04149211570620537,
0.22619250416755676,
0.26438260078430176,
0.20510229468345642,
0.14960205554962158,
0.11853942275047302,
-0.12864194810390472,
-0.050881918519735336,
0.35821181535720825,
0.18059560656547546,
0.08653560280799866,
-0.0661826878786087,
0.10451145470142365,
0.08722146600484848,
0.12043461203575134,
-0.02978578768670559,
-0.06254348903894424,
0.19566626846790314,
-0.2986261248588562,
-0.1839805692434311,
-0.3820001482963562,
-0.29861658811569214,
-0.3454686403274536,
-0.02502768486738205,
-0.19504107534885406,
0.0397910512983799,
0.3429344892501831,
0.07483360916376114,
-0.12234728038311005,
0.11729957163333893,
-0.018920304253697395,
0.06898622214794159,
0.3252042829990387,
-0.028658851981163025,
0.35531365871429443,
-0.02472516894340515,
-0.22976264357566833,
-0.12274917960166931,
0.07837645709514618,
0.3053516447544098,
0.20919069647789001,
-0.1296178102493286,
-0.09332670271396637,
0.1991824209690094,
0.08901944011449814,
-0.17964385449886322,
-0.1754828691482544,
0.1452629417181015,
0.4372384250164032,
-0.08524763584136963,
-0.12611527740955353,
-0.4263879060745239,
0.09975733608007431,
0.016286181285977364,
-0.05521872639656067,
0.044783998280763626,
-0.04661998897790909,
-0.11090921610593796,
-0.21463951468467712,
0.4659697413444519,
-0.0741572454571724,
0.31068697571754456,
0.12527334690093994,
0.004641273524612188,
0.2990764379501343,
0.21990936994552612,
0.22128704190254211,
-0.08248147368431091,
0.14761659502983093,
-0.13600610196590424,
0.2829577326774597,
-0.20252127945423126,
0.10332329571247101,
-0.20903190970420837,
-0.34236451983451843,
-0.13384197652339935,
0.5338137149810791,
0.07488220185041428,
-0.2111458033323288,
-0.072899729013443,
0.1870831847190857,
-0.1991676688194275,
-0.35072752833366394,
0.6488537192344666,
0.37112191319465637,
0.06720622628927231,
0.19064070284366608,
-0.24522633850574493,
0.03795511648058891,
0.24805815517902374,
-0.34065377712249756,
-0.1891871839761734,
0.08417581021785736,
-0.3319997787475586,
0.343260258436203,
0.20481087267398834,
-0.9493136405944824,
-0.02069982886314392,
0.04169052839279175,
-0.26528656482696533,
-0.07873710989952087,
0.23119045794010162,
0.07804418355226517,
0.06430811434984207,
-0.2288237363100052,
0.366621732711792,
0.166410893201828,
0.05018141120672226,
-0.5354931354522705,
-0.3855126202106476
] |
https://github.com/huggingface/datasets/issues/1762 | Unable to format dataset to CUDA Tensors | Yes the keywords arguments are passed to the convert function like `np.array`, `torch.tensor` or `tensorflow.ragged.constant`.
We don't support the kwargs for pandas on the other hand. | Hi,
I came across this [link](https://huggingface.co/docs/datasets/torch_tensorflow.html) where the docs show show to convert a dataset to a particular format. I see that there is an option to convert it to tensors, but I don't see any option to convert it to CUDA tensors.
I tried this, but Dataset doesn't support assignment:
```
columns=['input_ids', 'token_type_ids', 'attention_mask', 'start_positions','end_positions']
samples.set_format(type='torch', columns = columns)
for column in columns:
samples[column].to(torch.device(self.config.device))
```
There should be an option to do so, or if there is already a way to do this, please let me know.
Thanks,
Gunjan | 26 | Unable to format dataset to CUDA Tensors
Hi,
I came across this [link](https://huggingface.co/docs/datasets/torch_tensorflow.html) where the docs show show to convert a dataset to a particular format. I see that there is an option to convert it to tensors, but I don't see any option to convert it to CUDA tensors.
I tried this, but Dataset doesn't support assignment:
```
columns=['input_ids', 'token_type_ids', 'attention_mask', 'start_positions','end_positions']
samples.set_format(type='torch', columns = columns)
for column in columns:
samples[column].to(torch.device(self.config.device))
```
There should be an option to do so, or if there is already a way to do this, please let me know.
Thanks,
Gunjan
Yes the keywords arguments are passed to the convert function like `np.array`, `torch.tensor` or `tensorflow.ragged.constant`.
We don't support the kwargs for pandas on the other hand. | [
-0.23399677872657776,
-0.4713827967643738,
-0.058725759387016296,
0.1454276740550995,
0.5945416688919067,
0.38139984011650085,
0.5536249876022339,
0.3486229479312897,
0.020402204245328903,
0.08473771810531616,
-0.1387397199869156,
0.340721994638443,
-0.17577937245368958,
0.14769093692302704,
0.17231908440589905,
-0.37784692645072937,
0.3084687292575836,
-0.08804330229759216,
-0.04872427135705948,
0.07291486114263535,
-0.24024470150470734,
-0.00899569783359766,
-0.13229681551456451,
-0.2712603509426117,
-0.17395363748073578,
-0.224007248878479,
-0.037340085953474045,
-0.36398208141326904,
-0.12426713854074478,
-0.08157822489738464,
0.28012654185295105,
0.04255592077970505,
0.2684726119041443,
0.479720801115036,
-0.00012504284677561373,
-0.03806472569704056,
-0.037614814937114716,
-0.11308103054761887,
-0.08158022910356522,
-0.3308824300765991,
0.14338579773902893,
-0.31014224886894226,
0.31452247500419617,
-0.2309603989124298,
-0.40440094470977783,
0.10086043179035187,
0.00418469263240695,
-0.31712138652801514,
0.2870206832885742,
0.5416361093521118,
0.10367069393396378,
0.15829427540302277,
0.23376941680908203,
0.057003580033779144,
-0.2884043753147125,
0.3508217930793762,
-0.36228927969932556,
0.029085027053952217,
0.10623598098754883,
0.0989784300327301,
0.24230386316776276,
0.12628605961799622,
-0.14471986889839172,
-0.009933048859238625,
0.34190088510513306,
-0.011704700998961926,
-0.3300118148326874,
-0.3430464267730713,
0.028954563662409782,
0.17491118609905243,
0.5755487084388733,
-0.36973050236701965,
-0.3937683701515198,
0.047624751925468445,
0.1024225652217865,
-0.4620791971683502,
-0.23093582689762115,
0.6167893409729004,
-0.35677942633628845,
0.10831551998853683,
-0.34924688935279846,
0.03672134503722191,
-0.22198447585105896,
0.11479812860488892,
-0.2369440346956253,
-0.012935846112668514,
-0.1936636120080948,
-0.01906753145158291,
0.11135325580835342,
0.12375453859567642,
0.3501029908657074,
0.11340219527482986,
0.20304501056671143,
0.15490712225437164,
-0.44869741797447205,
-0.09801747649908066,
-0.5485562086105347,
-0.16816987097263336,
0.13751596212387085,
0.04020668938755989,
0.13041995465755463,
0.007959446869790554,
-0.12788715958595276,
0.005655964836478233,
-0.22420722246170044,
0.3471830189228058,
0.066908098757267,
0.16434411704540253,
-0.04320109263062477,
-0.269573450088501,
0.3038644790649414,
-0.05641422048211098,
-0.23167400062084198,
-0.5269573926925659,
-0.31648313999176025,
0.1881125122308731,
0.053500108420848846,
-0.053703952580690384,
-0.26784661412239075,
-0.12505735456943512,
-0.024798380210995674,
0.2073383331298828,
-0.23674806952476501,
0.3064678907394409,
0.026695702224969864,
0.17560409009456635,
0.41726377606391907,
0.2402888387441635,
0.08842553198337555,
0.11471127718687057,
0.008256334811449051,
0.18305623531341553,
-0.2545362710952759,
-0.16197457909584045,
0.018234489485621452,
-0.4084235727787018,
-0.000009937524737324566,
0.11447763442993164,
-0.014623238705098629,
0.03693355992436409,
-0.1712637096643448,
0.10971716046333313,
0.48067158460617065,
0.15008677542209625,
-0.05557304993271828,
0.3168988823890686,
0.25874483585357666,
0.1715792864561081,
-0.17937242984771729,
0.127815842628479,
-0.43339797854423523,
-0.05245794728398323,
-0.4958716928958893,
-0.039253897964954376,
0.19065208733081818,
0.02057798206806183,
-0.26810312271118164,
0.25097355246543884,
0.1977764517068863,
0.18048381805419922,
0.10702227801084518,
-0.16016367077827454,
-0.16911335289478302,
-0.33876195549964905,
0.46982571482658386,
0.08423919230699539,
-0.3453793227672577,
0.029736051335930824,
0.4349876344203949,
0.0004086567787453532,
0.2666269540786743,
0.3180944323539734,
0.17470493912696838,
-0.1362379491329193,
-0.058267563581466675,
-0.30671995878219604,
0.5030120611190796,
-0.38117095828056335,
-0.0021105813793838024,
-0.11774313449859619,
0.18078632652759552,
-0.20469005405902863,
-0.11610862612724304,
0.07915002852678299,
0.21617823839187622,
0.0598125085234642,
0.1382630169391632,
0.24328726530075073,
-0.02626108191907406,
-0.02944229170680046,
-0.011663542129099369,
-0.04376224800944328,
0.5554081797599792,
-0.10150261968374252,
-0.14703066647052765,
0.33180803060531616,
-0.25076377391815186,
-0.11310546100139618,
0.17606450617313385,
-0.08090899884700775,
-0.07027333974838257,
0.0636463612318039,
0.20800521969795227,
0.02325095795094967,
-0.11838170140981674,
0.06959055364131927,
-0.4207930862903595,
-0.08125098049640656,
0.3631972670555115,
0.19658595323562622,
-0.0006353159551508725,
-0.12818829715251923,
-0.06710048019886017,
0.015698550269007683,
0.0038451680447906256,
-0.055603139102458954,
-0.01554340310394764,
-0.38849523663520813,
-0.025530558079481125,
-0.02987273968756199,
-0.2764242887496948,
0.25452467799186707,
-0.2664058208465576,
0.17234684526920319,
-0.2724769115447998,
0.04021633416414261,
0.0574772022664547,
-0.13148681819438934,
0.15939940512180328,
0.23209604620933533,
0.06383141875267029,
-0.24902088940143585,
0.04840710014104843,
0.14101539552211761,
0.17529362440109253,
-0.021081773564219475,
-0.407972127199173,
0.20393818616867065,
0.22360266745090485,
0.017495881766080856,
-0.06829705834388733,
0.14139442145824432,
-0.03048771433532238,
-0.1648559272289276,
-0.4090500473976135,
0.38249996304512024,
-0.025720251724123955,
0.21203310787677765,
-0.3623810112476349,
0.4157854914665222,
0.20953819155693054,
0.08521993458271027,
-0.037051327526569366,
0.0753449946641922,
-0.02280629426240921,
0.08234448730945587,
0.17734374105930328,
-0.07552214711904526,
-0.84297776222229,
-0.037773992866277695,
0.0881042554974556,
0.0032724107149988413,
0.09828504920005798,
0.10125641524791718,
-0.13495996594429016,
0.09924609214067459,
0.2931077182292938,
-0.3925173282623291,
-0.13158325850963593,
0.058647558093070984,
0.1630244255065918,
0.07026045024394989,
0.05519528687000275,
-0.16240185499191284,
0.028401972725987434,
-0.06881668418645859,
-0.0366203747689724,
-0.1723264902830124,
0.13150551915168762,
-0.0544203482568264,
0.041027579456567764,
0.333619087934494,
-0.021804673597216606,
0.1382029503583908,
-0.46335214376449585,
0.045082561671733856,
-0.4018613398075104,
-0.01792357675731182,
-0.3308508098125458,
-0.3282231390476227,
0.0491725318133831,
-0.03659422695636749,
-0.24194517731666565,
0.13144312798976898,
0.3399287760257721,
0.3103053569793701,
0.23228274285793304,
0.14058169722557068,
0.22552092373371124,
-0.09868337959051132,
-0.28284263610839844,
-0.255013108253479,
0.12666119635105133,
0.023345744237303734,
0.3692154288291931,
-0.12413480877876282,
0.1733715534210205,
-0.1953941285610199,
0.21282140910625458,
-0.3078773021697998,
0.07725493609905243,
-0.13897718489170074,
-0.16885486245155334,
-0.030746320262551308,
0.12552936375141144,
0.39944717288017273,
-0.11662663519382477,
-0.021317506209015846,
0.12724514305591583,
0.1648910939693451,
0.027348846197128296,
0.025697017088532448,
-0.29784828424453735,
-0.058302611112594604,
-0.1860083043575287,
-0.21474267542362213,
-0.22172479331493378,
-0.2360040694475174,
0.25392448902130127,
-0.0015279443468898535,
0.10121884942054749,
-0.2703940272331238,
0.4285293519496918,
-0.12148597091436386,
0.09366478770971298,
-0.07238589972257614,
0.09459749609231949,
-0.49328508973121643,
0.6376003623008728,
-0.25055432319641113,
-0.5051741600036621,
0.1750527024269104,
0.16696809232234955,
0.4039466083049774,
0.3599306046962738,
-0.015758095309138298,
0.12108482420444489,
0.16162355244159698,
-0.02647150121629238,
0.0623379610478878,
0.03719696030020714,
0.2368347942829132,
-0.0230729840695858,
0.13129210472106934,
0.10761904716491699,
-0.07475512474775314,
-0.04889896512031555,
0.0995979830622673,
0.300136536359787,
0.17715860903263092,
0.5592432618141174,
0.09301609545946121,
0.6866157650947571,
0.12865810096263885,
-0.5674318075180054,
0.010748152621090412,
-0.27408528327941895,
0.3683096766471863,
-0.11805031448602676,
-0.341098815202713,
0.2362450212240219,
-0.037530820816755295,
0.1796845942735672,
0.019972486421465874,
-0.11563725769519806,
-0.02445228211581707,
-0.18771076202392578,
0.10297389328479767,
-0.30499184131622314,
-0.1181727722287178,
0.19084948301315308,
-0.33053165674209595,
0.16518117487430573,
-0.3155156373977661,
0.35177239775657654,
-0.06922543048858643,
-0.18026834726333618,
0.23913779854774475,
0.3620738685131073,
0.27598392963409424,
0.182649627327919,
-0.04662185162305832,
-0.0065913088619709015,
-0.6597195267677307,
0.2536441385746002,
-0.14832086861133575,
0.423106849193573,
-0.08791161328554153,
0.24140210449695587,
0.13232609629631042,
0.236347034573555,
0.8280129432678223,
0.1968526989221573,
-0.556710422039032,
0.019038181751966476,
-0.10753360390663147,
-0.5107786059379578,
-0.11072009056806564,
0.07239101082086563,
0.1427486687898636,
-0.07743953168392181,
0.0941021516919136,
-0.13572412729263306,
-0.2569350004196167,
-0.08631698042154312,
0.3119138777256012,
-0.28436994552612305,
0.02399439737200737,
-0.12110428512096405,
-0.10736092925071716,
-0.10288085043430328,
0.09147109091281891,
0.2308843433856964,
0.14899763464927673,
0.03129342943429947,
-0.23969659209251404,
-0.26574793457984924,
0.09349846839904785,
0.444760799407959,
-0.1039799153804779,
0.19375410676002502,
0.2402021735906601,
-0.15886400640010834,
0.056389112025499344,
0.17618019878864288,
0.252350389957428,
-0.13006263971328735,
-0.22162626683712006,
-0.1375315636396408,
-0.0766492709517479,
-0.10140956938266754,
0.48493415117263794,
-0.0676993653178215,
-0.0314503014087677,
-0.12944436073303223,
-0.23150190711021423,
-0.059891339391469955,
-0.2750643491744995,
0.19623973965644836,
0.217671200633049,
0.2921275496482849,
-0.6761106252670288,
-0.5005918741226196,
0.30805110931396484,
0.1360965371131897,
0.21733729541301727,
0.5419605374336243,
0.3116099536418915,
-0.07332496345043182,
0.20434513688087463,
0.48288577795028687,
0.7467300295829773,
-0.4484688937664032,
0.0871141254901886,
0.2286561131477356,
-0.20278489589691162,
0.5286080837249756,
-0.458353191614151,
0.2617257237434387,
-0.31064122915267944,
-0.046828895807266235,
-0.3594840168952942,
-0.16608619689941406,
0.11217626184225082,
0.15606069564819336,
0.030176613479852676,
0.27585935592651367,
-0.4692663252353668,
0.11992796510457993,
-0.04167209938168526,
-0.039645057171583176,
0.1339380443096161,
-0.29128482937812805,
-0.0638095811009407,
0.05224508047103882,
-0.18751728534698486,
0.11367160081863403,
0.07890123873949051,
-0.06239091604948044,
-0.11710578203201294,
0.2801492512226105,
-0.20945167541503906,
-0.09150931239128113,
-0.2913135290145874,
0.03511738404631615,
0.04448389634490013,
-0.9460862278938293,
0.2878393828868866,
0.6920857429504395,
0.672973096370697,
-0.053944967687129974,
-0.1622530072927475,
-0.0928841084241867,
-0.1192680075764656,
-0.1274365782737732,
-0.17472736537456512,
0.05485503748059273,
0.30427590012550354,
0.09115608036518097,
0.11327370256185532,
0.2836306393146515,
0.24067112803459167,
-0.04393402859568596,
-0.00020219846919644624,
0.024204788729548454,
-0.04658295959234238,
-0.35493203997612,
-0.542656421661377,
0.0033770333975553513,
0.2708291709423065,
0.037426356226205826,
0.02897794544696808,
0.12652051448822021,
-0.07382147014141083,
0.24012479186058044,
-0.11891523748636246,
-0.1349516063928604,
0.0792444571852684,
0.1422632485628128,
-0.013510793447494507,
-0.23536206781864166,
0.3112528622150421,
0.43851035833358765,
-0.256399929523468,
-0.022135449573397636,
-0.0889919325709343,
0.49139538407325745,
-0.07469792664051056,
0.15759526193141937,
-0.1627229005098343,
0.29843249917030334,
-0.16704031825065613,
0.2334006428718567,
-0.20549120008945465,
0.05434976518154144,
-0.05569438263773918,
-0.10907508432865143,
-0.2791040241718292,
-0.17233151197433472,
-0.18873469531536102,
0.32043325901031494,
0.2089359611272812,
0.17023737728595734,
0.08257696032524109,
-0.19307754933834076,
-0.14431756734848022,
0.01729034073650837,
0.0009182643843814731,
0.20426630973815918,
0.10811331123113632,
0.3062467575073242,
-0.10176296532154083,
-0.2382640242576599,
0.00021621833730023354,
0.09640217572450638,
0.07719716429710388,
-0.11649229377508163,
-0.1810884028673172,
0.14457736909389496,
0.04852575808763504,
0.12016025930643082,
0.16599257290363312,
-0.01962153986096382,
-0.26903942227363586,
-0.33193546533584595,
0.22133363783359528,
0.5063861608505249,
-0.05209185928106308,
0.5310238003730774,
0.015691151842474937,
0.12466669827699661,
-0.046744801104068756,
-0.10510167479515076,
0.22836267948150635,
0.0009693823521956801,
0.06900195777416229,
0.03986107558012009,
0.1266223043203354,
-0.04824674502015114,
-0.25755366683006287,
0.18386757373809814,
0.1103384792804718,
-0.25831690430641174,
0.15489456057548523,
0.06881217658519745,
0.17193157970905304,
-0.031328991055488586,
0.02432936057448387,
0.0608488954603672,
-0.0913805440068245,
0.36376088857650757,
0.27780747413635254,
0.009463498368859291,
-0.021956047043204308,
0.1275048702955246,
0.02530510723590851,
-0.029919497668743134,
-0.10487839579582214,
0.0950121358036995,
0.18315894901752472,
-0.10085462033748627,
-0.17035384476184845,
-0.21469968557357788,
0.18381941318511963,
-0.43272408843040466,
0.1902828961610794,
0.11702794581651688,
0.25387072563171387,
0.055634934455156326,
0.21168702840805054,
0.03994381055235863,
-0.04207269474864006,
-0.08495891094207764,
0.17832016944885254,
0.3768409192562103,
0.3827633261680603,
-0.12037023901939392,
0.3099438548088074,
-0.1055234894156456,
-0.2833261787891388,
-0.27088749408721924,
0.005258020479232073,
0.21140147745609283,
0.0384194441139698,
0.3883088231086731,
-0.09094315767288208,
-0.3526310324668884,
-0.1037721261382103,
0.207863911986351,
-0.2998802363872528,
0.034878313541412354,
-0.14803388714790344,
0.15602990984916687,
0.3107507824897766,
0.0497477725148201,
-0.04310585930943489,
-0.4737072288990021,
0.19687195122241974,
0.13566425442695618,
0.03401962295174599,
0.37728556990623474,
0.08544400334358215,
0.23622658848762512,
0.08201411366462708,
0.009649323299527168,
-0.20358555018901825,
-0.16317687928676605,
-0.10276281088590622,
-0.1156550869345665,
0.17117947340011597,
0.3749363422393799,
0.1542990505695343,
0.11242707818746567,
0.15369538962841034,
-0.05061621591448784,
-0.09662709385156631,
0.38047879934310913,
0.2438127100467682,
0.012849720194935799,
0.04839123412966728,
0.061936572194099426,
0.09907953441143036,
0.10203085839748383,
-0.09455611556768417,
-0.053029708564281464,
0.22165454924106598,
-0.29267755150794983,
-0.13107527792453766,
-0.3994075655937195,
-0.3589654564857483,
-0.38508743047714233,
-0.018152950331568718,
-0.15140390396118164,
0.10214994102716446,
0.3458808958530426,
0.0406317338347435,
-0.14775453507900238,
0.06733965873718262,
-0.016040515154600143,
0.05649072676897049,
0.35833197832107544,
0.013549386523663998,
0.3651580214500427,
-0.06246762350201607,
-0.248688206076622,
-0.13336516916751862,
0.03950759023427963,
0.24208110570907593,
0.16703014075756073,
-0.1253892332315445,
-0.11927250027656555,
0.1132577508687973,
0.060105908662080765,
-0.2492971569299698,
-0.13585101068019867,
0.14731012284755707,
0.4346064031124115,
-0.05116421729326248,
-0.1123148500919342,
-0.466806560754776,
0.05822882056236267,
0.04851328209042549,
0.03288927301764488,
0.11925774812698364,
-0.07989191263914108,
-0.10707112401723862,
-0.22860001027584076,
0.5114030838012695,
-0.08231102675199509,
0.34956321120262146,
0.11860475689172745,
0.0059268842451274395,
0.3164975941181183,
0.23208248615264893,
0.2943643629550934,
-0.05984814837574959,
0.156663179397583,
-0.08232220262289047,
0.3606933653354645,
-0.1621675193309784,
0.1024588942527771,
-0.12705406546592712,
-0.4881170690059662,
-0.1648624688386917,
0.5384291410446167,
0.11123601347208023,
-0.17529979348182678,
-0.0873456597328186,
0.20836539566516876,
-0.20336753129959106,
-0.2847557067871094,
0.6637992262840271,
0.3430194556713104,
0.046937745064496994,
0.15813495218753815,
-0.264405757188797,
-0.019473886117339134,
0.2774270474910736,
-0.33322322368621826,
-0.2580162286758423,
0.04286739230155945,
-0.38556578755378723,
0.3643033504486084,
0.12722612917423248,
-0.9844715595245361,
-0.050329528748989105,
0.016510292887687683,
-0.24294818937778473,
-0.11023285984992981,
0.21021802723407745,
0.014380712993443012,
0.1292787343263626,
-0.1888146698474884,
0.28011950850486755,
0.10042689740657806,
0.05050468072295189,
-0.5019500851631165,
-0.36923325061798096
] |
https://github.com/huggingface/datasets/issues/1762 | Unable to format dataset to CUDA Tensors | Thanks @lhoestq,
Would it be okay if I added this to the docs and made a PR? | Hi,
I came across this [link](https://huggingface.co/docs/datasets/torch_tensorflow.html) where the docs show show to convert a dataset to a particular format. I see that there is an option to convert it to tensors, but I don't see any option to convert it to CUDA tensors.
I tried this, but Dataset doesn't support assignment:
```
columns=['input_ids', 'token_type_ids', 'attention_mask', 'start_positions','end_positions']
samples.set_format(type='torch', columns = columns)
for column in columns:
samples[column].to(torch.device(self.config.device))
```
There should be an option to do so, or if there is already a way to do this, please let me know.
Thanks,
Gunjan | 17 | Unable to format dataset to CUDA Tensors
Hi,
I came across this [link](https://huggingface.co/docs/datasets/torch_tensorflow.html) where the docs show show to convert a dataset to a particular format. I see that there is an option to convert it to tensors, but I don't see any option to convert it to CUDA tensors.
I tried this, but Dataset doesn't support assignment:
```
columns=['input_ids', 'token_type_ids', 'attention_mask', 'start_positions','end_positions']
samples.set_format(type='torch', columns = columns)
for column in columns:
samples[column].to(torch.device(self.config.device))
```
There should be an option to do so, or if there is already a way to do this, please let me know.
Thanks,
Gunjan
Thanks @lhoestq,
Would it be okay if I added this to the docs and made a PR? | [
-0.20760828256607056,
-0.44932785630226135,
-0.08087822049856186,
0.142959326505661,
0.5672461986541748,
0.3796423077583313,
0.5310694575309753,
0.3309662640094757,
-0.018165189772844315,
0.1409580558538437,
-0.07886810600757599,
0.23653069138526917,
-0.2230985462665558,
0.1325978934764862,
0.17031168937683105,
-0.33069342374801636,
0.25731027126312256,
-0.09791547805070877,
-0.03796207532286644,
0.07903337478637695,
-0.13591845333576202,
-0.012856349349021912,
-0.1050754189491272,
-0.31056007742881775,
-0.23593778908252716,
-0.1902676671743393,
0.05615931749343872,
-0.3857474625110626,
-0.19675305485725403,
-0.0576162151992321,
0.1955188363790512,
0.1002451628446579,
0.2974625527858734,
0.44190770387649536,
-0.00012571118713822216,
-0.04053858295083046,
-0.07637085020542145,
-0.10638722032308578,
-0.08023198693990707,
-0.27979615330696106,
0.10085295885801315,
-0.26195934414863586,
0.3520948588848114,
-0.19315128028392792,
-0.4167788326740265,
0.15886060893535614,
0.03766949847340584,
-0.33669617772102356,
0.22111673653125763,
0.5201237201690674,
0.10554607212543488,
0.20198175311088562,
0.25047948956489563,
0.02401846833527088,
-0.14119820296764374,
0.4127916097640991,
-0.405952125787735,
0.059382274746894836,
0.18688350915908813,
0.14194712042808533,
0.23614060878753662,
0.1956162303686142,
-0.10180351138114929,
0.03672245144844055,
0.28846728801727295,
-0.007952483370900154,
-0.3925340473651886,
-0.33232203125953674,
0.0225079208612442,
0.14643529057502747,
0.7426342368125916,
-0.30994337797164917,
-0.3527890145778656,
0.10354586690664291,
0.07862924784421921,
-0.3819107413291931,
-0.23601186275482178,
0.6073790788650513,
-0.33573228120803833,
0.1058311015367508,
-0.3175976872444153,
-0.02527734264731407,
-0.21145543456077576,
0.11352472007274628,
-0.20103877782821655,
-0.021083155646920204,
-0.2168879210948944,
-0.013413515873253345,
0.08003582060337067,
0.15097612142562866,
0.34543174505233765,
0.21283058822155,
0.2072887271642685,
0.14627745747566223,
-0.45731231570243835,
-0.1075194776058197,
-0.5549700856208801,
-0.13731791079044342,
0.17152030766010284,
0.09198454022407532,
0.19746379554271698,
-0.0025130866561084986,
-0.13473699986934662,
0.01473331917077303,
-0.25740528106689453,
0.2582007646560669,
0.07270099967718124,
0.2164323925971985,
-0.03819755092263222,
-0.20394395291805267,
0.32640573382377625,
-0.05225726589560509,
-0.31612539291381836,
-0.5621748566627502,
-0.3139205574989319,
0.22406740486621857,
0.07097210735082626,
-0.13251550495624542,
-0.28992876410484314,
-0.0630587562918663,
-0.020323077216744423,
0.15199975669384003,
-0.19523265957832336,
0.3259003162384033,
0.042467471212148666,
0.1394880712032318,
0.45178645849227905,
0.19386237859725952,
0.010500425472855568,
0.03388318046927452,
0.00504315597936511,
0.16968870162963867,
-0.30449995398521423,
-0.07383041083812714,
0.031079620122909546,
-0.33893099427223206,
-0.0471709780395031,
0.07432356476783752,
-0.021770207211375237,
-0.0070424675941467285,
-0.13742326200008392,
0.15929315984249115,
0.528816819190979,
0.14859409630298615,
-0.05669356882572174,
0.3177834749221802,
0.21659307181835175,
0.23407964408397675,
-0.20230895280838013,
0.11907067894935608,
-0.44271641969680786,
-0.13292117416858673,
-0.5485039949417114,
-0.02079150825738907,
0.22623421251773834,
0.008070973679423332,
-0.1792021542787552,
0.2097906470298767,
0.24655653536319733,
0.13048681616783142,
0.10137083381414413,
-0.08268457651138306,
-0.13238000869750977,
-0.30940574407577515,
0.49827122688293457,
0.15358737111091614,
-0.3233244717121124,
0.0316360667347908,
0.4733218848705292,
-0.04352438449859619,
0.2070114016532898,
0.34176963567733765,
0.19740478694438934,
-0.050364959985017776,
-0.12042182683944702,
-0.30957332253456116,
0.4586006999015808,
-0.4009731709957123,
-0.02444675751030445,
-0.1857910454273224,
0.11774209141731262,
-0.29241567850112915,
-0.07877420634031296,
0.08995245397090912,
0.2781100273132324,
0.09618926048278809,
0.15394118428230286,
0.16230596601963043,
-0.011931258253753185,
0.0019590610172599554,
-0.027278846129775047,
-0.01194597128778696,
0.4723087251186371,
-0.09964639693498611,
-0.1939263790845871,
0.350711464881897,
-0.22162698209285736,
-0.06640694290399551,
0.1824703961610794,
-0.09202249348163605,
-0.044212713837623596,
0.08833688497543335,
0.26010408997535706,
0.027873966842889786,
-0.14926400780677795,
0.06223708763718605,
-0.464639812707901,
-0.12677960097789764,
0.4345223307609558,
0.2147195041179657,
0.07348093390464783,
-0.17252010107040405,
-0.02750268019735813,
0.0007658713147975504,
-0.020171839743852615,
-0.08455684036016464,
-0.028565945103764534,
-0.3560154438018799,
-0.0588526576757431,
-0.11671315878629684,
-0.2934117913246155,
0.22823794186115265,
-0.3179702162742615,
0.2113446146249771,
-0.3106458783149719,
0.008448771201074123,
0.05475691333413124,
-0.09878326207399368,
0.05938638001680374,
0.23880061507225037,
0.013986383564770222,
-0.2556926906108856,
0.061044663190841675,
0.08806585520505905,
0.16653984785079956,
-0.06169174611568451,
-0.3724157214164734,
0.2719939053058624,
0.25093209743499756,
-0.06388714909553528,
-0.1255125254392624,
0.03958703204989433,
-0.0599653497338295,
-0.13796211779117584,
-0.444195955991745,
0.3333820402622223,
0.009532780386507511,
0.18334059417247772,
-0.37802278995513916,
0.3914255201816559,
0.16075336933135986,
0.11271177977323532,
-0.09410152584314346,
0.01927824877202511,
0.01293826475739479,
0.17888197302818298,
0.10638708621263504,
-0.09390727430582047,
-0.8347509503364563,
-0.03460317477583885,
0.00997475441545248,
-0.009352759458124638,
0.10382954776287079,
0.0902128592133522,
-0.08894210308790207,
0.15638947486877441,
0.2987087070941925,
-0.3835814297199249,
-0.14633037149906158,
0.0697985291481018,
0.19326776266098022,
0.053692422807216644,
0.090028315782547,
-0.17241308093070984,
-0.006564950570464134,
-0.14950981736183167,
-0.06291253864765167,
-0.11087854206562042,
0.1053050309419632,
-0.026862571015954018,
0.01981549896299839,
0.303730845451355,
-0.032922010868787766,
0.12077207118272781,
-0.5268213748931885,
-0.08210650831460953,
-0.34647658467292786,
0.09703520685434341,
-0.36443251371383667,
-0.34287020564079285,
0.0165926031768322,
0.010352283716201782,
-0.14448867738246918,
0.15347830951213837,
0.31931954622268677,
0.2531529366970062,
0.26241108775138855,
0.1782204955816269,
0.1932380050420761,
-0.09990830719470978,
-0.1598994880914688,
-0.22999782860279083,
0.18158286809921265,
0.011940613389015198,
0.34749695658683777,
-0.15609224140644073,
0.20444796979427338,
-0.3022924065589905,
0.16558171808719635,
-0.38410884141921997,
0.020667793229222298,
-0.09328687191009521,
-0.10448555648326874,
-0.11262426525354385,
0.1318238526582718,
0.4242873191833496,
-0.006745459046214819,
0.013342754915356636,
0.10773894190788269,
0.14083746075630188,
-0.028689419850707054,
-0.02826269529759884,
-0.33995091915130615,
-0.04495493695139885,
-0.21763603389263153,
-0.28190556168556213,
-0.19108712673187256,
-0.25679078698158264,
0.25686344504356384,
-0.015286947600543499,
0.1554701179265976,
-0.3396690785884857,
0.3959317207336426,
-0.12996186316013336,
0.004628455266356468,
-0.02347622998058796,
0.028850343078374863,
-0.5347703695297241,
0.6057139039039612,
-0.2924807667732239,
-0.532360315322876,
0.1957690268754959,
0.18422195315361023,
0.3844261169433594,
0.39299145340919495,
0.0005278948810882866,
0.19037137925624847,
0.17102187871932983,
-0.071164570748806,
0.04338132217526436,
0.07370327413082123,
0.30599457025527954,
-0.014076723717153072,
0.14992374181747437,
0.1225319504737854,
-0.12694120407104492,
-0.046679310500621796,
0.08883720636367798,
0.29465606808662415,
0.11531346291303635,
0.4837462604045868,
0.06143655627965927,
0.6757724285125732,
0.08866871148347855,
-0.5966695547103882,
0.07480691373348236,
-0.27575230598449707,
0.37466496229171753,
-0.13897272944450378,
-0.2873620390892029,
0.29564368724823,
-0.03181645646691322,
0.10922443121671677,
0.02299640141427517,
-0.12118372321128845,
0.03976604342460632,
-0.14700891077518463,
0.22818930447101593,
-0.34819695353507996,
-0.12248675525188446,
0.20938169956207275,
-0.33852407336235046,
0.1809762865304947,
-0.31290674209594727,
0.30455929040908813,
-0.05841800570487976,
-0.15167507529258728,
0.1967681348323822,
0.38917168974876404,
0.3139396607875824,
0.11892824620008469,
-0.10168348997831345,
0.07036454230546951,
-0.6821168065071106,
0.24818269908428192,
-0.1574200987815857,
0.3805261552333832,
-0.15121284127235413,
0.20292411744594574,
0.14213281869888306,
0.22852370142936707,
0.7871840000152588,
0.16394515335559845,
-0.5181642770767212,
-0.06091891601681709,
-0.06351422518491745,
-0.43896257877349854,
-0.11758117377758026,
0.059231773018836975,
0.17372918128967285,
-0.11416296660900116,
0.1568436473608017,
-0.16530358791351318,
-0.2418539673089981,
-0.012508422136306763,
0.2245452105998993,
-0.24857378005981445,
0.042893294245004654,
-0.11514090746641159,
-0.065306656062603,
-0.14277662336826324,
0.12664948403835297,
0.3015599846839905,
0.14394156634807587,
0.07402732968330383,
-0.27820339798927307,
-0.21069097518920898,
0.14883604645729065,
0.43249887228012085,
-0.13545645773410797,
0.19188247621059418,
0.23676830530166626,
-0.15412302315235138,
0.15876546502113342,
0.22914090752601624,
0.2965294122695923,
-0.05993523821234703,
-0.20784185826778412,
-0.1069348081946373,
0.04631846025586128,
-0.0780024453997612,
0.4774352014064789,
-0.019222337752580643,
0.08632676303386688,
-0.13395945727825165,
-0.19644556939601898,
-0.05291923135519028,
-0.3171696960926056,
0.22250090539455414,
0.22687223553657532,
0.3045935034751892,
-0.7227423191070557,
-0.46593546867370605,
0.2787933945655823,
0.1624547392129898,
0.20510037243366241,
0.593131422996521,
0.3560984432697296,
-0.057924967259168625,
0.14737668633460999,
0.5321177840232849,
0.7870184779167175,
-0.4854322373867035,
0.11152275651693344,
0.169010728597641,
-0.20266377925872803,
0.49017444252967834,
-0.552054762840271,
0.21403461694717407,
-0.35136690735816956,
-0.018512332811951637,
-0.33782362937927246,
-0.20042675733566284,
0.12047779560089111,
0.13632169365882874,
0.07245078682899475,
0.20748908817768097,
-0.4844920039176941,
0.21365483105182648,
-0.04385212063789368,
-0.06625683605670929,
0.14484895765781403,
-0.3037320077419281,
0.08005953580141068,
0.035920217633247375,
-0.22243529558181763,
0.1497514694929123,
0.007113493047654629,
0.0018467106856405735,
-0.09078999608755112,
0.2409529983997345,
-0.24584925174713135,
-0.11437924951314926,
-0.33476442098617554,
-0.04008186236023903,
0.04036194458603859,
-0.8884336948394775,
0.3341016173362732,
0.6728856563568115,
0.6103255152702332,
-0.029397854581475258,
-0.1831836998462677,
-0.07585013657808304,
-0.10741978138685226,
-0.14762137830257416,
-0.2166454792022705,
0.04439365491271019,
0.2339736521244049,
0.06904694437980652,
0.05514224246144295,
0.24889813363552094,
0.24396364390850067,
-0.08115794509649277,
-0.019442491233348846,
0.01908005401492119,
0.0443795807659626,
-0.4064265191555023,
-0.509579062461853,
0.07069151848554611,
0.29182323813438416,
0.042824678122997284,
0.03347335383296013,
0.14490565657615662,
-0.16944999992847443,
0.15616627037525177,
-0.035558223724365234,
-0.1128106340765953,
0.08772452920675278,
0.2027311772108078,
-0.04606771469116211,
-0.23523513972759247,
0.2552710771560669,
0.43441855907440186,
-0.23227983713150024,
-0.0719461664557457,
-0.061061397194862366,
0.6061150431632996,
-0.13895876705646515,
0.03653193637728691,
-0.17248189449310303,
0.19282107055187225,
-0.15965360403060913,
0.238752081990242,
-0.19756729900836945,
0.027771728113293648,
0.005368781741708517,
-0.0947650671005249,
-0.2900635004043579,
-0.15973462164402008,
-0.2699219584465027,
0.36860859394073486,
0.17354609072208405,
0.1552821695804596,
0.055824000388383865,
-0.2245474010705948,
-0.1342834234237671,
0.0632728561758995,
0.051847975701093674,
0.2201613038778305,
0.12189546972513199,
0.29951751232147217,
-0.07510975748300552,
-0.2628992199897766,
-0.0003999442560598254,
0.11265306919813156,
0.06608595699071884,
-0.11651422083377838,
-0.1566001921892166,
0.14532916247844696,
0.0634852945804596,
0.1447235494852066,
0.15795278549194336,
0.004555579274892807,
-0.2916789650917053,
-0.32062336802482605,
0.26105156540870667,
0.5018333196640015,
-0.026195669546723366,
0.5026633143424988,
0.007525764871388674,
0.07919220626354218,
-0.07731432467699051,
-0.09660223126411438,
0.29399245977401733,
0.00027174054412171245,
0.06005757302045822,
0.0017512370832264423,
0.04300582408905029,
-0.06449465453624725,
-0.2975943386554718,
0.25001847743988037,
0.2100892812013626,
-0.21926172077655792,
0.07570141553878784,
0.04388153553009033,
0.20491088926792145,
-0.07950146496295929,
0.11201164126396179,
-0.012763685546815395,
-0.07537698745727539,
0.33903664350509644,
0.256438672542572,
0.020512938499450684,
0.04152926430106163,
0.13028103113174438,
0.0348268561065197,
-0.043477948755025864,
-0.10719943046569824,
0.0841318741440773,
0.16254407167434692,
-0.023662399500608444,
-0.1965322047472,
-0.2139083594083786,
0.08816487342119217,
-0.3737873136997223,
0.21556535363197327,
0.037412263453006744,
0.21394923329353333,
0.06402216851711273,
0.2510869801044464,
0.004876692313700914,
-0.029146183282136917,
-0.12081152945756912,
0.1924334466457367,
0.419200599193573,
0.363675594329834,
-0.09857095032930374,
0.2845051884651184,
-0.14305834472179413,
-0.2455262541770935,
-0.3108021914958954,
0.15044741332530975,
0.2094431072473526,
-0.016515985131263733,
0.37413841485977173,
-0.04521804302930832,
-0.4020019769668579,
-0.1395903080701828,
0.15651555359363556,
-0.35092902183532715,
0.01477445475757122,
-0.17179998755455017,
0.1291992962360382,
0.3239368200302124,
0.06256265193223953,
-0.06671750545501709,
-0.46561142802238464,
0.24161361157894135,
0.1107541099190712,
0.037245411425828934,
0.2784291207790375,
0.10986322909593582,
0.23688791692256927,
0.060493506491184235,
0.032940711826086044,
-0.09338296204805374,
-0.27926307916641235,
-0.09873028844594955,
-0.0773724615573883,
0.21192006766796112,
0.3134056031703949,
0.17101390659809113,
0.19517171382904053,
0.17252489924430847,
-0.11214268207550049,
-0.06688456237316132,
0.33307015895843506,
0.20092004537582397,
0.020565172657370567,
-0.03872329369187355,
0.06291086226701736,
0.09133841097354889,
0.08678649365901947,
-0.07607483863830566,
-0.04806774854660034,
0.23584574460983276,
-0.24898342788219452,
-0.2699623703956604,
-0.38985511660575867,
-0.3758755922317505,
-0.380815327167511,
-0.0015238788910210133,
-0.17872698605060577,
0.10032618045806885,
0.36580678820610046,
0.033630337566137314,
-0.1460152119398117,
0.08231022208929062,
-0.021311314776539803,
0.05833030119538307,
0.3585034906864166,
-0.0015693935565650463,
0.338373064994812,
-0.07027596980333328,
-0.2923069894313812,
-0.14474187791347504,
0.12557712197303772,
0.27029335498809814,
0.1637941151857376,
-0.10627533495426178,
-0.08355549722909927,
0.15262240171432495,
0.09803128242492676,
-0.18127986788749695,
-0.20747990906238556,
0.14957891404628754,
0.4486219584941864,
-0.09120151400566101,
-0.06466376781463623,
-0.4672204554080963,
0.09055183082818985,
0.07184296101331711,
0.031959205865859985,
0.076727494597435,
-0.02187814936041832,
-0.11413149535655975,
-0.250600129365921,
0.5121710896492004,
-0.11048474162817001,
0.3139122426509857,
0.17581836879253387,
-0.007904564961791039,
0.3140558898448944,
0.19377173483371735,
0.214717298746109,
-0.09859251230955124,
0.1259610950946808,
-0.0971219390630722,
0.38954728841781616,
-0.14747610688209534,
0.08314447849988937,
-0.16476300358772278,
-0.38625603914260864,
-0.18342502415180206,
0.5290042757987976,
0.1201300173997879,
-0.13729633390903473,
-0.13721174001693726,
0.22733716666698456,
-0.1324644535779953,
-0.26550617814064026,
0.6308995485305786,
0.3584335148334503,
0.08226240426301956,
0.18223020434379578,
-0.3089638650417328,
-0.0003806145687121898,
0.30280736088752747,
-0.2566518187522888,
-0.1460651159286499,
0.12071004509925842,
-0.2959152162075043,
0.4274284243583679,
0.09672226756811142,
-1.066523790359497,
-0.031447283923625946,
-0.003290747758001089,
-0.30788519978523254,
-0.1359236091375351,
0.248935267329216,
0.039486393332481384,
0.1263049840927124,
-0.18350990116596222,
0.3833095133304596,
0.11332354694604874,
0.07156714797019958,
-0.4916664958000183,
-0.3911876082420349
] |
https://github.com/huggingface/datasets/issues/1759 | wikipedia dataset incomplete | Hi !
From what pickle file fo you get this ?
I guess you mean the dataset loaded using `load_dataset` ? | Hey guys,
I am using the https://github.com/huggingface/datasets/tree/master/datasets/wikipedia dataset.
Unfortunately, I found out that there is an incompleteness for the German dataset.
For reasons unknown to me, the number of inhabitants has been removed from many pages:
Thorey-sur-Ouche has 128 inhabitants according to the webpage (https://de.wikipedia.org/wiki/Thorey-sur-Ouche).
The pickle file however shows: französische Gemeinde mit Einwohnern (Stand).
Is it possible to fix this?
Best regards
Chris
| 21 | wikipedia dataset incomplete
Hey guys,
I am using the https://github.com/huggingface/datasets/tree/master/datasets/wikipedia dataset.
Unfortunately, I found out that there is an incompleteness for the German dataset.
For reasons unknown to me, the number of inhabitants has been removed from many pages:
Thorey-sur-Ouche has 128 inhabitants according to the webpage (https://de.wikipedia.org/wiki/Thorey-sur-Ouche).
The pickle file however shows: französische Gemeinde mit Einwohnern (Stand).
Is it possible to fix this?
Best regards
Chris
Hi !
From what pickle file fo you get this ?
I guess you mean the dataset loaded using `load_dataset` ? | [
0.12411247193813324,
0.09065644443035126,
-0.06485231220722198,
0.4390089809894562,
-0.14518438279628754,
0.13518103957176208,
0.1400448977947235,
-0.09932887554168701,
0.33159226179122925,
0.17427174746990204,
0.18785704672336578,
-0.05558646470308304,
0.383334219455719,
-0.37142884731292725,
0.021376436576247215,
-0.21881960332393646,
0.13571332395076752,
0.1867663711309433,
-0.35366952419281006,
-0.29928848147392273,
-0.12052939832210541,
0.43031442165374756,
-0.2972928285598755,
-0.3738275468349457,
0.004159183707088232,
0.19129258394241333,
0.042398855090141296,
-0.0265653133392334,
-0.03989748656749725,
-0.2545051574707031,
0.07189551740884781,
-0.12893028557300568,
0.02321593277156353,
0.29445335268974304,
-0.00012120632891310379,
-0.20768308639526367,
0.1829904317855835,
0.03271782025694847,
-0.5496044158935547,
-0.07042178511619568,
-0.31867459416389465,
-0.33783525228500366,
-0.05534924194216728,
-0.3048529028892517,
0.3356400728225708,
0.1256951540708542,
0.23537985980510712,
0.02854033187031746,
-0.043028950691223145,
-0.1988060176372528,
0.10993709415197372,
-0.30889466404914856,
0.17181967198848724,
0.01933564990758896,
0.3870481848716736,
0.549272358417511,
0.12996891140937805,
0.41803303360939026,
-0.00869534071534872,
-0.13117805123329163,
0.002548646880313754,
0.558091402053833,
0.11516764760017395,
-0.08448778092861176,
0.15158842504024506,
-0.08533313125371933,
0.04866337776184082,
-0.32073917984962463,
0.4474427402019501,
0.43267711997032166,
0.7783442735671997,
0.038778867572546005,
-0.2873818874359131,
-0.23016831278800964,
-0.025564024224877357,
0.060712315142154694,
0.44231894612312317,
0.0954175814986229,
-0.0011091518681496382,
0.08618178218603134,
0.017479758709669113,
-0.38013771176338196,
0.08367922902107239,
0.28655439615249634,
-0.24067392945289612,
0.6932730674743652,
-0.052208367735147476,
0.1574094295501709,
-0.11127476394176483,
0.038366228342056274,
-0.5061636567115784,
-0.17510521411895752,
-0.11951278895139694,
0.6439184546470642,
-0.01200015563517809,
0.1531447023153305,
0.11288664489984512,
0.054669950157403946,
0.3744637370109558,
-0.12401415407657623,
-0.3182375431060791,
-0.10555996000766754,
-0.4076496958732605,
0.08684741705656052,
0.42662420868873596,
-0.002024453366175294,
0.3739510476589203,
-0.2473476082086563,
0.24851781129837036,
0.03157801926136017,
0.05097733810544014,
0.25372108817100525,
0.11150480806827545,
-0.2443264275789261,
-0.07423294335603714,
-0.0230275746434927,
0.09758918732404709,
-0.20076952874660492,
0.010422563180327415,
0.46370524168014526,
-0.22067435085773468,
-0.252512663602829,
-0.18578754365444183,
0.02295387163758278,
-0.19247248768806458,
0.3144141137599945,
0.046167559921741486,
-0.015052715316414833,
-0.32744285464286804,
-0.39580607414245605,
0.04111422225832939,
0.04603714868426323,
-0.07173636555671692,
-0.1020289734005928,
-0.13238726556301117,
-0.22799740731716156,
0.3639761805534363,
0.0687115490436554,
-0.09243946522474289,
-0.12160537391901016,
0.025020284578204155,
-0.3007548749446869,
0.04012724757194519,
0.12442964315414429,
0.2084522396326065,
0.26045116782188416,
-0.11597935855388641,
-0.6150658130645752,
0.018996765837073326,
0.05944405868649483,
-0.33990877866744995,
-0.11130638420581818,
-0.7143049240112305,
0.1314145177602768,
-0.19117125868797302,
-0.03158649429678917,
-0.2961343824863434,
0.11985056847333908,
0.20133145153522491,
-0.40839964151382446,
0.11676722019910812,
0.055735085159540176,
-0.1401757150888443,
-0.03294511139392853,
0.3443155884742737,
0.5783534646034241,
-0.1809438318014145,
-0.25246497988700867,
-0.20874954760074615,
0.0897936150431633,
0.3532003164291382,
0.4228057563304901,
-0.011845971457660198,
0.37365207076072693,
-0.17512938380241394,
0.1606290638446808,
0.037403274327516556,
0.07629867643117905,
-0.44937536120414734,
0.029591059312224388,
0.12741638720035553,
0.012836995534598827,
-0.30674952268600464,
0.034367259591817856,
0.025889169424772263,
0.30428779125213623,
0.067105732858181,
0.14695972204208374,
0.3602665066719055,
-0.07202620059251785,
-0.3002052903175354,
-0.16942964494228363,
0.518299400806427,
-0.039348386228084564,
0.16732287406921387,
0.027805814519524574,
0.22749947011470795,
0.1395631730556488,
0.6033781170845032,
0.10704206675291061,
0.3978745639324188,
0.7896962761878967,
0.026263758540153503,
0.23377004265785217,
0.211806058883667,
-0.010621062479913235,
-0.25731638073921204,
-0.008675600402057171,
-0.016420217230916023,
0.36413881182670593,
0.15434721112251282,
-0.09906687587499619,
-0.1662697046995163,
-0.01363429520279169,
0.019592557102441788,
-0.13728822767734528,
0.014181389473378658,
0.1456441730260849,
-0.03172670677304268,
0.06265292316675186,
0.18382112681865692,
-0.33711642026901245,
-0.25496795773506165,
-0.07837037742137909,
-0.6629975438117981,
0.3918355703353882,
-0.1417582482099533,
0.09924411028623581,
-0.3523252010345459,
0.1621437966823578,
-0.011789638549089432,
-0.14205150306224823,
-0.13182489573955536,
0.007983410730957985,
0.31446436047554016,
-0.07846096903085709,
0.4909605085849762,
0.0006882220041006804,
0.12129943817853928,
-0.3434092104434967,
-0.0658251941204071,
0.10464942455291748,
0.0298574510961771,
0.07522488385438919,
-0.6009050607681274,
-0.1981951743364334,
0.24856020510196686,
0.2267448604106903,
-0.22696396708488464,
0.22831636667251587,
0.5967851281166077,
0.14583753049373627,
0.08363392949104309,
-0.44019246101379395,
0.3865237534046173,
0.20976269245147705,
0.1051054522395134,
0.06930382549762726,
-0.2616158723831177,
0.02925562672317028,
-0.019567986950278282,
0.1131458580493927,
0.3585661053657532,
0.3546278774738312,
-0.2935870587825775,
-0.30395251512527466,
0.26483866572380066,
-0.23474514484405518,
-0.16617776453495026,
0.1754751205444336,
0.3176705539226532,
-0.1919918805360794,
0.38712701201438904,
0.022383052855730057,
0.11802690476179123,
0.2003120332956314,
0.13944387435913086,
0.1772620528936386,
0.1525944322347641,
0.1820431649684906,
-0.3302624821662903,
-0.13291072845458984,
-0.0710381343960762,
0.37562617659568787,
-0.03055437095463276,
-0.06495074182748795,
-0.054068632423877716,
-0.011312173679471016,
0.03401075676083565,
0.03964151814579964,
-0.8664525747299194,
-0.17904970049858093,
0.03036593087017536,
-0.006196582689881325,
-0.15164119005203247,
0.21641920506954193,
-0.07838652282953262,
-0.12520574033260345,
-0.21348069608211517,
0.164091095328331,
-0.16192902624607086,
-0.18736496567726135,
-0.25940388441085815,
-0.008393080905079842,
0.0020930797327309847,
-0.06856893002986908,
0.11455820500850677,
-0.4670065641403198,
-0.4988540709018707,
-0.656452476978302,
-0.3859998285770416,
0.2722924053668976,
0.0006185353850014508,
0.033633507788181305,
0.1947736293077469,
0.4568445682525635,
-0.42540881037712097,
0.10165560245513916,
0.13104043900966644,
-0.04507656395435333,
0.027340875938534737,
0.03574049845337868,
-0.28803151845932007,
0.009588341228663921,
-0.07109735161066055,
-0.12753471732139587,
-0.2320472002029419,
0.06711842119693756,
0.14658543467521667,
0.35589438676834106,
0.24038994312286377,
0.31798115372657776,
0.042869485914707184,
-0.24076347053050995,
-0.07850854843854904,
-0.14289891719818115,
-0.3738856911659241,
-0.4261966645717621,
0.08930116146802902,
-0.2573983073234558,
-0.29287683963775635,
0.03569314628839493,
-0.09717094153165817,
-0.03744566813111305,
-0.115373395383358,
-0.5714578628540039,
0.08455709367990494,
-0.15955998003482819,
0.18992508947849274,
-0.3796052038669586,
0.17619769275188446,
0.4080471992492676,
-0.013771092519164085,
0.1159529909491539,
-0.08973446488380432,
-0.16030745208263397,
-0.0024275179021060467,
0.30956971645355225,
0.6256237030029297,
-0.14491401612758636,
0.1137356236577034,
0.04432450234889984,
0.6312339901924133,
0.4565291702747345,
0.4432751536369324,
0.11865495890378952,
0.014065972529351711,
0.22301766276359558,
-0.18473775684833527,
-0.011887550354003906,
0.14252492785453796,
-0.08156600594520569,
-0.09561522305011749,
0.4853444993495941,
0.16880711913108826,
0.029848026111721992,
-0.04986673220992088,
-0.11894366145133972,
-0.568352222442627,
-0.15736356377601624,
0.10965422540903091,
0.22229745984077454,
0.4297432601451874,
0.07246887683868408,
0.004268154036253691,
-0.45467135310173035,
-0.3010433316230774,
-0.017349611967802048,
0.09974993020296097,
0.40438058972358704,
0.2055341899394989,
-0.25597327947616577,
-0.055205363780260086,
-0.3435916602611542,
0.2963942289352417,
0.19675074517726898,
-0.11616553366184235,
-0.04314576834440231,
0.24808631837368011,
0.19203238189220428,
0.05996293947100639,
0.2783234417438507,
-0.3235585689544678,
0.33075475692749023,
0.06306515634059906,
0.30614447593688965,
-0.195237934589386,
0.12433771044015884,
-0.007675843313336372,
0.07808411866426468,
0.38351041078567505,
-0.1458996832370758,
-0.3941355049610138,
0.006821638438850641,
0.13177604973316193,
0.3869905173778534,
-0.4159857928752899,
-0.16280466318130493,
-0.1502658575773239,
-0.0955921858549118,
-0.0743829607963562,
-0.24007689952850342,
0.10507489740848541,
0.1407226324081421,
0.45710647106170654,
0.21247991919517517,
0.27556756138801575,
0.31508868932724,
-0.027886906638741493,
0.12341676652431488,
0.373091459274292,
0.5226806998252869,
-0.19587315618991852,
0.09502315521240234,
0.1847802698612213,
0.23060926795005798,
0.6488132476806641,
-0.08112950623035431,
-0.20413272082805634,
0.22369426488876343,
-0.22765018045902252,
0.2851320207118988,
0.04819769039750099,
0.1541278213262558,
0.14335910975933075,
0.31472495198249817,
0.017621126025915146,
-0.20845383405685425,
-0.0019113115267828107,
0.0730573758482933,
0.21918223798274994,
-0.19458946585655212,
-0.21650798618793488,
0.40074414014816284,
-0.1713005006313324,
-0.2189120352268219,
0.15937283635139465,
0.3846006989479065,
-0.2809462547302246,
0.261773020029068,
0.17002686858177185,
1.0994685888290405,
0.341122567653656,
0.0965653508901596,
-0.04951157420873642,
0.0070656416937708855,
0.3117256164550781,
-0.13474999368190765,
0.10217009484767914,
-0.39826929569244385,
0.17212370038032532,
0.031194215640425682,
0.1471392959356308,
-0.08758395165205002,
0.16796094179153442,
-0.011610042303800583,
0.03798597306013107,
-0.3027436435222626,
0.14526471495628357,
-0.14947248995304108,
0.5097946524620056,
0.21857210993766785,
-0.06462988257408142,
0.09433452785015106,
0.06366229802370071,
-0.07375415414571762,
0.5269140601158142,
-0.392182320356369,
0.13093271851539612,
-0.021682674065232277,
-0.06397280842065811,
-0.46234631538391113,
-0.10992348194122314,
0.16342270374298096,
0.28987157344818115,
0.0740603506565094,
-0.3698222041130066,
0.06294131278991699,
0.34483885765075684,
-0.04248238354921341,
0.2795945703983307,
-0.16653139889240265,
0.2678976356983185,
-0.12253192812204361,
0.08907521516084671,
0.25368374586105347,
0.2560851275920868,
-0.09571965038776398,
-0.15746799111366272,
-0.28874126076698303,
0.06071510910987854,
-0.29904934763908386,
-0.18586422502994537,
-0.2878057062625885,
-0.2203776240348816,
-0.2034486085176468,
-0.21117283403873444,
0.23746196925640106,
0.05782521888613701,
0.032700806856155396,
-0.2778076231479645,
0.04058412089943886,
0.3265535831451416,
-0.07738523930311203,
-0.03285256028175354,
0.04001558944582939,
-0.27500927448272705,
-0.055742379277944565,
0.2483489066362381,
0.09665916860103607,
0.043318938463926315,
0.5435918569564819,
0.3383607864379883,
-0.2557898461818695,
-0.08802046626806259,
0.04234858974814415,
-0.24994686245918274,
-0.32041722536087036,
-0.13072796165943146,
-0.1373303234577179,
0.3106865882873535,
-0.565064013004303,
0.05348088592290878,
0.25276070833206177,
-0.07836442440748215,
-0.20760327577590942,
-0.49115970730781555,
-0.2866073548793793,
0.18360944092273712,
0.04662033170461655,
-0.06911401450634003,
0.09869126230478287,
-0.3289678990840912,
0.11772623658180237,
0.18794620037078857,
-0.207576185464859,
-0.21443963050842285,
-0.16280558705329895,
0.2485560029745102,
0.0800275057554245,
0.0706920474767685,
-0.20356877148151398,
-0.17124119400978088,
0.008264248259365559,
-0.4229913353919983,
0.20902937650680542,
-0.10921458154916763,
0.007071799598634243,
0.21640098094940186,
0.0040406943298876286,
-0.25753334164619446,
0.15364205837249756,
-0.14625851809978485,
0.007274298928678036,
-0.2359381914138794,
-0.17999720573425293,
0.06270921975374222,
0.16075772047042847,
0.37905353307724,
-0.011361674405634403,
0.23512990772724152,
-0.3436380922794342,
0.23613877594470978,
0.2088632732629776,
0.10108339786529541,
0.012287935242056847,
0.20786255598068237,
0.4228385090827942,
-0.03713543340563774,
-0.06470346450805664,
0.03042452409863472,
-0.0875319391489029,
-0.07146251946687698,
0.014038979075849056,
-0.26210135221481323,
0.41723716259002686,
0.41053488850593567,
0.15696099400520325,
0.019444333389401436,
-0.13676083087921143,
0.12764035165309906,
0.13222640752792358,
0.19447126984596252,
-0.5206779837608337,
-0.07531701028347015,
0.3623286187648773,
0.13867786526679993,
-0.06036369875073433,
0.027307165786623955,
-0.07277251780033112,
-0.09958938509225845,
0.009120209142565727,
0.09467150270938873,
-0.002942655235528946,
-0.07118958979845047,
0.04434455931186676,
0.27467313408851624,
-0.013511200435459614,
0.11590888351202011,
-0.2780138850212097,
0.20606522262096405,
0.029139433056116104,
0.28860989212989807,
0.23125052452087402,
-0.0053353323601186275,
-0.0740164965391159,
-0.016195358708500862,
0.028974877670407295,
-0.15425565838813782,
0.22034794092178345,
0.21418631076812744,
-0.09432402998209,
0.18773439526557922,
0.20880229771137238,
-0.04681643471121788,
0.10824282467365265,
-0.012631978839635849,
-0.31185781955718994,
0.15100637078285217,
-0.17385047674179077,
-0.09704654663801193,
-0.5045149922370911,
-0.1496816873550415,
0.12216433882713318,
-0.02124217338860035,
-0.02765137515962124,
-0.34956857562065125,
0.058504797518253326,
0.14485307037830353,
-0.3765430748462677,
-0.5085453391075134,
0.00452628405764699,
0.17144733667373657,
0.2790907919406891,
-0.24931304156780243,
0.041573572903871536,
0.1924789696931839,
-0.1547214835882187,
-0.2463207095861435,
0.5353747606277466,
0.22187300026416779,
-0.09334848076105118,
-0.08470535278320312,
-0.08812977373600006,
0.0008308715769089758,
-0.03538542613387108,
-0.219194695353508,
0.14106035232543945,
0.015490278601646423,
-0.2104363590478897,
0.09539134055376053,
0.037416793406009674,
-0.1108056977391243,
-0.08785807341337204,
0.29286426305770874,
0.17172107100486755,
0.048125602304935455,
-0.34661829471588135,
-0.14486084878444672,
-0.23814357817173004,
-0.10546845942735672,
-0.07195907831192017,
0.043556541204452515,
-0.06101525202393532,
0.31497740745544434,
0.33735060691833496,
0.07071613520383835,
-0.10077420622110367,
0.02375217154622078,
-0.014903892762959003,
0.13001173734664917,
0.23929060995578766,
0.0557316429913044,
-0.08921673893928528,
-0.4169369637966156,
-0.4850446581840515,
0.28067588806152344,
-0.4443150460720062,
-0.43588632345199585,
0.157036691904068,
0.17744578421115875,
0.05885522440075874,
0.10956385731697083,
0.16562461853027344,
0.37735775113105774,
-0.20043684542179108,
0.5021963715553284,
-0.16422145068645477,
-0.06992161273956299,
0.04627828672528267,
0.195947527885437,
-0.10628971457481384,
-0.21045832335948944,
0.32615816593170166,
0.2263188511133194,
-0.1130206286907196,
-0.20873905718326569,
0.01497369073331356,
0.013991931453347206,
0.308199405670166,
0.29711639881134033,
0.2244357317686081,
0.24094633758068085,
-0.3251005709171295,
-0.2193533033132553,
-0.08294769376516342,
-0.29327213764190674,
-0.0631549060344696,
0.7308733463287354,
0.0041924528777599335,
0.05573965981602669,
-0.1740666776895523,
-0.13323131203651428,
0.05223965272307396,
0.30031028389930725,
0.1083894670009613,
0.19318178296089172,
-0.5772889256477356,
-0.047317251563072205,
0.03243134915828705,
0.19265341758728027,
0.04990030452609062,
-0.07506590336561203,
0.1249437928199768,
-0.2492324709892273,
-0.4154956042766571,
-0.23982758820056915,
0.023705383762717247,
-0.41017305850982666,
-0.2318984568119049,
-0.6320623755455017,
0.040671128779649734,
0.08724117279052734,
-0.32886624336242676,
-0.20460569858551025,
-0.1694364994764328,
0.41414958238601685,
0.18587368726730347,
-0.028733450919389725,
-0.36913788318634033,
-0.14782972633838654,
0.04987868294119835,
-0.13128803670406342,
0.3941730856895447,
0.09589868783950806,
-0.42427533864974976,
0.06945257633924484,
-0.29675808548927307
] |
https://github.com/huggingface/datasets/issues/1759 | wikipedia dataset incomplete | yes sorry, I used the `load_dataset`function and saved the data to a pickle file so I don't always have to reload it and are able to work offline. | Hey guys,
I am using the https://github.com/huggingface/datasets/tree/master/datasets/wikipedia dataset.
Unfortunately, I found out that there is an incompleteness for the German dataset.
For reasons unknown to me, the number of inhabitants has been removed from many pages:
Thorey-sur-Ouche has 128 inhabitants according to the webpage (https://de.wikipedia.org/wiki/Thorey-sur-Ouche).
The pickle file however shows: französische Gemeinde mit Einwohnern (Stand).
Is it possible to fix this?
Best regards
Chris
| 28 | wikipedia dataset incomplete
Hey guys,
I am using the https://github.com/huggingface/datasets/tree/master/datasets/wikipedia dataset.
Unfortunately, I found out that there is an incompleteness for the German dataset.
For reasons unknown to me, the number of inhabitants has been removed from many pages:
Thorey-sur-Ouche has 128 inhabitants according to the webpage (https://de.wikipedia.org/wiki/Thorey-sur-Ouche).
The pickle file however shows: französische Gemeinde mit Einwohnern (Stand).
Is it possible to fix this?
Best regards
Chris
yes sorry, I used the `load_dataset`function and saved the data to a pickle file so I don't always have to reload it and are able to work offline. | [
0.06431560963392258,
0.08949457108974457,
-0.05972103774547577,
0.44190943241119385,
-0.13233672082424164,
0.10839977115392685,
0.15771709382534027,
-0.12213238328695297,
0.27500733733177185,
0.15894311666488647,
0.17383414506912231,
-0.13584336638450623,
0.4038768410682678,
-0.4070722162723541,
0.014494037255644798,
-0.20748189091682434,
0.15051554143428802,
0.15277495980262756,
-0.3166954815387726,
-0.3021359443664551,
-0.11335399001836777,
0.43509402871131897,
-0.3123496472835541,
-0.3774803876876831,
0.04378591105341911,
0.2163713574409485,
0.03356880694627762,
-0.08158263564109802,
-0.011925792321562767,
-0.21831059455871582,
0.053305115550756454,
-0.14862771332263947,
0.044364944100379944,
0.28224343061447144,
-0.00012187469110358506,
-0.2125064730644226,
0.14406758546829224,
0.030698586255311966,
-0.5327081084251404,
-0.0756022036075592,
-0.32060566544532776,
-0.30694204568862915,
-0.08979438245296478,
-0.33602792024612427,
0.3274799883365631,
0.11988921463489532,
0.25815775990486145,
0.03442826494574547,
-0.029454123228788376,
-0.16841872036457062,
0.11059719324111938,
-0.3508935272693634,
0.1684127002954483,
0.0006384478183463216,
0.35648447275161743,
0.5651245713233948,
0.12219005078077316,
0.3544335663318634,
-0.011749910190701485,
-0.1791209727525711,
0.03421535715460777,
0.5692538619041443,
0.048968587070703506,
-0.08313575387001038,
0.15748360753059387,
-0.08397775888442993,
0.050195250660181046,
-0.3444975018501282,
0.5438238978385925,
0.42372989654541016,
0.7482107281684875,
0.0076448372565209866,
-0.26567456126213074,
-0.21402141451835632,
-0.04731087014079094,
0.08734369277954102,
0.4619984030723572,
0.11520380526781082,
-0.001973227132111788,
0.10316549241542816,
-0.007770952768623829,
-0.3689865171909332,
0.06876353919506073,
0.3272416293621063,
-0.3060222268104553,
0.6822797656059265,
-0.0861406922340393,
0.1421232670545578,
-0.15089479088783264,
0.03874751925468445,
-0.4797350764274597,
-0.21501892805099487,
-0.11078203469514847,
0.6301547884941101,
-0.01176068652421236,
0.1536504328250885,
0.12119510024785995,
0.0564347580075264,
0.3472963273525238,
-0.15678517520427704,
-0.32790452241897583,
-0.10556778311729431,
-0.31502866744995117,
0.08514170348644257,
0.4395579397678375,
0.022350212559103966,
0.3921346366405487,
-0.2581222653388977,
0.2694421708583832,
0.029309015721082687,
0.025640571489930153,
0.23394501209259033,
0.10454435646533966,
-0.21025510132312775,
-0.0032204424496740103,
-0.01329243928194046,
0.1446971446275711,
-0.23220288753509521,
0.05439627915620804,
0.4595734477043152,
-0.21296602487564087,
-0.2590143382549286,
-0.19432051479816437,
0.07142910361289978,
-0.18482597172260284,
0.3223720192909241,
0.048869580030441284,
0.011434662155807018,
-0.3538565933704376,
-0.38101115822792053,
0.06483793258666992,
0.03866029530763626,
-0.04008606821298599,
-0.09608061611652374,
-0.12245428562164307,
-0.18228621780872345,
0.29527032375335693,
0.01972760073840618,
-0.07036329060792923,
-0.13898523151874542,
0.03447193652391434,
-0.31963634490966797,
0.09931501746177673,
0.11807701736688614,
0.2433474212884903,
0.26803144812583923,
-0.13009372353553772,
-0.6249842643737793,
0.03627161681652069,
0.09635426104068756,
-0.2753038704395294,
-0.1353430449962616,
-0.7036632299423218,
0.1318923383951187,
-0.23034480214118958,
-0.017563512548804283,
-0.2686010003089905,
0.15423546731472015,
0.2390296459197998,
-0.377412885427475,
0.1194949746131897,
0.0705108642578125,
-0.13709299266338348,
-0.030950332060456276,
0.38591697812080383,
0.5811337828636169,
-0.1503598541021347,
-0.24101772904396057,
-0.1784709393978119,
0.09952447563409805,
0.30835071206092834,
0.3931101858615875,
-0.009717575274407864,
0.36733877658843994,
-0.12320525199174881,
0.0689338967204094,
0.04784197732806206,
0.11040809750556946,
-0.43872058391571045,
0.05026137828826904,
0.10641945898532867,
-0.0024915749672800303,
-0.32636454701423645,
0.06071769818663597,
0.06810058653354645,
0.3225800096988678,
0.05006883665919304,
0.14571240544319153,
0.3562040627002716,
-0.03805887699127197,
-0.3022037446498871,
-0.16616114974021912,
0.50670325756073,
-0.024381354451179504,
0.23999376595020294,
0.060665033757686615,
0.21523170173168182,
0.17612586915493011,
0.5853971838951111,
0.0900951400399208,
0.4497521221637726,
0.8086164593696594,
0.04101419448852539,
0.2599585950374603,
0.2317344695329666,
-0.018615979701280594,
-0.22491608560085297,
-0.01966865547001362,
0.00851286482065916,
0.3689703345298767,
0.15359365940093994,
-0.12520140409469604,
-0.11379404366016388,
-0.034259870648384094,
0.04281025752425194,
-0.13272413611412048,
0.013787999749183655,
0.12447551637887955,
0.01395475771278143,
0.10332299023866653,
0.19565175473690033,
-0.3357093036174774,
-0.1871320903301239,
-0.10045847296714783,
-0.6284237504005432,
0.40104660391807556,
-0.12590177357196808,
0.12131758779287338,
-0.35179373621940613,
0.1536545306444168,
-0.006245136726647615,
-0.09916388243436813,
-0.1660703420639038,
0.02311955951154232,
0.24434851109981537,
-0.09342324733734131,
0.46422263979911804,
0.0366499163210392,
0.13563945889472961,
-0.32894355058670044,
-0.014046287164092064,
0.09522826969623566,
0.006533787585794926,
0.11359884589910507,
-0.6195914149284363,
-0.21803458034992218,
0.3033246695995331,
0.2615131437778473,
-0.20239455997943878,
0.2310921847820282,
0.6155297160148621,
0.1041671559214592,
0.11858845502138138,
-0.4379400610923767,
0.37535378336906433,
0.17864951491355896,
0.03089374676346779,
0.045681074261665344,
-0.26534581184387207,
0.08388789743185043,
-0.07871445268392563,
0.14103004336357117,
0.3548552393913269,
0.32767367362976074,
-0.3154004216194153,
-0.27691105008125305,
0.24952813982963562,
-0.20541487634181976,
-0.18645116686820984,
0.1718001663684845,
0.2963223457336426,
-0.18580996990203857,
0.4059666693210602,
0.028181549161672592,
0.12686990201473236,
0.24853676557540894,
0.11924827843904495,
0.11186012625694275,
0.1804562360048294,
0.18637630343437195,
-0.3563384711742401,
-0.13387683033943176,
-0.05496550723910332,
0.37303075194358826,
-0.03201296553015709,
-0.07606197893619537,
-0.021412314847111702,
-0.08003193885087967,
0.06578770279884338,
0.08110908418893814,
-0.8917040228843689,
-0.16274668276309967,
0.05679294839501381,
-0.005560385063290596,
-0.17351993918418884,
0.2210015505552292,
-0.05866248905658722,
-0.17214104533195496,
-0.23477081954479218,
0.11379732191562653,
-0.12918584048748016,
-0.21693158149719238,
-0.24437497556209564,
-0.0020233402028679848,
-0.03281782567501068,
-0.05973784625530243,
0.15630561113357544,
-0.44423818588256836,
-0.49885293841362,
-0.6673243045806885,
-0.3995535969734192,
0.24938848614692688,
0.03300195559859276,
-0.005858695134520531,
0.15187619626522064,
0.41924747824668884,
-0.46256759762763977,
0.11450069397687912,
0.1680908203125,
-0.09098838269710541,
0.07930190116167068,
0.05233189836144447,
-0.27886319160461426,
-0.012877510860562325,
-0.10351263731718063,
-0.11173729598522186,
-0.20859359204769135,
0.07707200199365616,
0.1515253335237503,
0.35916903614997864,
0.24185653030872345,
0.2694683074951172,
0.046788290143013,
-0.27207356691360474,
-0.10891812294721603,
-0.13766887784004211,
-0.3673325479030609,
-0.40520739555358887,
0.10230663418769836,
-0.2623263895511627,
-0.31534045934677124,
0.060171157121658325,
-0.07122097164392471,
-0.04882475361227989,
-0.060137681663036346,
-0.6084825396537781,
0.03568309172987938,
-0.12982654571533203,
0.12296271324157715,
-0.3658173382282257,
0.16988666355609894,
0.3927966058254242,
-0.033941276371479034,
0.10767964273691177,
-0.06735780835151672,
-0.10495660454034805,
0.01323118805885315,
0.3028680980205536,
0.5987234711647034,
-0.1778346300125122,
0.11948689073324203,
0.051992230117321014,
0.5267824530601501,
0.42686232924461365,
0.518290102481842,
0.07355786114931107,
-0.011333473026752472,
0.20644928514957428,
-0.18934130668640137,
-0.026311250403523445,
0.16096492111682892,
-0.07318694144487381,
-0.15255042910575867,
0.5049319267272949,
0.18997594714164734,
-0.036841630935668945,
-0.08402229845523834,
-0.14014588296413422,
-0.5720704793930054,
-0.18057164549827576,
0.10143093019723892,
0.24879348278045654,
0.5083113312721252,
0.09699168801307678,
0.037873461842536926,
-0.4973722994327545,
-0.3354012370109558,
-0.025150755420327187,
0.08410231024026871,
0.38704606890678406,
0.17601507902145386,
-0.26639655232429504,
-0.061365094035863876,
-0.4050893485546112,
0.3238610029220581,
0.1768578141927719,
-0.14957183599472046,
-0.040182262659072876,
0.2509095370769501,
0.15891197323799133,
0.02478771097958088,
0.22931329905986786,
-0.3580601215362549,
0.3446396589279175,
0.08436485379934311,
0.26562538743019104,
-0.22651776671409607,
0.13045048713684082,
-0.013092865236103535,
-0.0009671706357039511,
0.4135722219944,
-0.160814106464386,
-0.37603017687797546,
-0.004971753805875778,
0.14771512150764465,
0.3667691946029663,
-0.404511421918869,
-0.13161607086658478,
-0.128434956073761,
-0.1067701205611229,
-0.12581966817378998,
-0.25674310326576233,
0.11785408854484558,
0.1275596171617508,
0.45973658561706543,
0.20200258493423462,
0.30961257219314575,
0.3750739097595215,
-0.02227037027478218,
0.10822124034166336,
0.3880182206630707,
0.5211102366447449,
-0.16804468631744385,
0.048516660928726196,
0.1964559704065323,
0.23415298759937286,
0.5824503898620605,
-0.05696887522935867,
-0.22189438343048096,
0.2266019582748413,
-0.22829824686050415,
0.3059276342391968,
0.0471702516078949,
0.09865493327379227,
0.14587949216365814,
0.34567439556121826,
0.1033601239323616,
-0.21088053286075592,
-0.005325955338776112,
0.03372018039226532,
0.2130786031484604,
-0.1709383875131607,
-0.22212745249271393,
0.34961968660354614,
-0.1516680121421814,
-0.1745559722185135,
0.13002921640872955,
0.3755859136581421,
-0.274025022983551,
0.29511329531669617,
0.14863517880439758,
1.060791254043579,
0.34478840231895447,
0.07889766246080399,
-0.12363560497760773,
0.00921615306288004,
0.286175936460495,
-0.15182149410247803,
0.11728695780038834,
-0.39294272661209106,
0.14852909743785858,
0.054972149431705475,
0.16714514791965485,
-0.08045510202646255,
0.1859731376171112,
-0.019875075668096542,
0.02593883126974106,
-0.25549277663230896,
0.2764768898487091,
-0.1621091216802597,
0.4707963764667511,
0.2257470339536667,
-0.07835940271615982,
0.08182257413864136,
0.051132284104824066,
-0.021281445398926735,
0.48808377981185913,
-0.3742941617965698,
0.15395890176296234,
-0.007319113705307245,
-0.06682518124580383,
-0.4324820339679718,
-0.14012698829174042,
0.12860165536403656,
0.2918873727321625,
0.010148836299777031,
-0.35369017720222473,
0.0581819973886013,
0.3371957838535309,
0.0042060790583491325,
0.28814074397087097,
-0.20009896159172058,
0.22763079404830933,
-0.13062800467014313,
0.11454195529222488,
0.2848287522792816,
0.24747715890407562,
-0.15159162878990173,
-0.14204582571983337,
-0.2853093445301056,
0.06266994774341583,
-0.2895980179309845,
-0.14105266332626343,
-0.30690550804138184,
-0.2553824186325073,
-0.23063385486602783,
-0.2116294503211975,
0.3574078381061554,
0.07233256101608276,
0.030395805835723877,
-0.3096146881580353,
0.04634523764252663,
0.31270286440849304,
-0.06260669231414795,
0.008687697350978851,
-0.019082218408584595,
-0.25811365246772766,
-0.056103289127349854,
0.2872314155101776,
0.09078940749168396,
-0.023631548509001732,
0.4977654814720154,
0.35143905878067017,
-0.22644942998886108,
-0.08145272731781006,
0.006769860628992319,
-0.30213627219200134,
-0.32602617144584656,
-0.11222891509532928,
-0.1603148877620697,
0.3005995452404022,
-0.5272341966629028,
0.022200599312782288,
0.20553386211395264,
-0.0706896260380745,
-0.17595963180065155,
-0.485250860452652,
-0.27405455708503723,
0.2114829570055008,
0.10443852841854095,
-0.10649614781141281,
0.10586844384670258,
-0.32440218329429626,
0.13233129680156708,
0.15289776027202606,
-0.2119721919298172,
-0.2077440768480301,
-0.15085723996162415,
0.29416871070861816,
-0.011811011470854282,
0.050461843609809875,
-0.204680398106575,
-0.16774114966392517,
0.008592718280851841,
-0.4053918123245239,
0.22348904609680176,
-0.11432952433824539,
0.044970687478780746,
0.23205365240573883,
-0.05075264722108841,
-0.2713606357574463,
0.1506616324186325,
-0.18443477153778076,
-0.03526877611875534,
-0.24125780165195465,
-0.1594512015581131,
0.07486151903867722,
0.11083506047725677,
0.2966974079608917,
-0.06482529640197754,
0.22215354442596436,
-0.3317199945449829,
0.22202421724796295,
0.20991961658000946,
0.11521267145872116,
-0.024219470098614693,
0.2436482161283493,
0.4147498905658722,
-0.024170218035578728,
-0.052400853484869,
0.02701585739850998,
-0.10874378681182861,
-0.07679601013660431,
0.0569048635661602,
-0.253498375415802,
0.37840935587882996,
0.4685872197151184,
0.1953284591436386,
0.013525002636015415,
-0.10679300874471664,
0.17572641372680664,
0.08823312819004059,
0.1909666806459427,
-0.5340114235877991,
-0.069359689950943,
0.385998010635376,
0.10831409692764282,
-0.04038902744650841,
0.0816604346036911,
-0.03185315430164337,
-0.15376201272010803,
0.048242319375276566,
0.10646292567253113,
0.05403668060898781,
-0.08893447369337082,
0.04659682512283325,
0.2780444920063019,
-0.020541725680232048,
0.11601418256759644,
-0.32380566000938416,
0.2555988132953644,
0.024991223588585854,
0.3017579913139343,
0.28870025277137756,
-0.05451600253582001,
-0.05283564329147339,
0.02320125885307789,
0.02572236768901348,
-0.12218593060970306,
0.19852867722511292,
0.16860824823379517,
-0.07387412339448929,
0.1862117350101471,
0.16523416340351105,
-0.1427028477191925,
0.14333860576152802,
0.024707213044166565,
-0.30946698784828186,
0.16901153326034546,
-0.15093070268630981,
-0.02582581900060177,
-0.511584460735321,
-0.156962051987648,
0.13017137348651886,
-0.03231150656938553,
-0.00022039095347281545,
-0.39702320098876953,
0.0464690662920475,
0.15438082814216614,
-0.33063459396362305,
-0.44342172145843506,
0.04110558331012726,
0.18189723789691925,
0.2838747203350067,
-0.2849942743778229,
-0.0035642494913190603,
0.19243265688419342,
-0.1421487182378769,
-0.26729637384414673,
0.5577532649040222,
0.22763857245445251,
-0.09584695845842361,
-0.11662779003381729,
-0.05311138182878494,
-0.001604050979949534,
-0.03559807687997818,
-0.23801583051681519,
0.12673692405223846,
0.031553614884614944,
-0.1447691172361374,
0.10870744287967682,
0.02585356868803501,
-0.09648539870977402,
-0.10429244488477707,
0.27096113562583923,
0.1727025955915451,
0.06689876317977905,
-0.3142922818660736,
-0.10215530544519424,
-0.25695350766181946,
-0.06567440181970596,
-0.11267822980880737,
0.05647546797990799,
-0.10305916517972946,
0.3124277889728546,
0.32620564103126526,
0.09185466170310974,
-0.12637266516685486,
0.019298359751701355,
-0.024265198037028313,
0.11044789850711823,
0.2006639987230301,
0.057814594358205795,
-0.06270166486501694,
-0.49035412073135376,
-0.5188621282577515,
0.24147669970989227,
-0.44770336151123047,
-0.377793550491333,
0.19428063929080963,
0.18930307030677795,
0.0575314424932003,
0.1087445616722107,
0.15621793270111084,
0.40241700410842896,
-0.2073473334312439,
0.508156418800354,
-0.1827879101037979,
-0.06039759889245033,
0.05349486321210861,
0.25803500413894653,
-0.08627411723136902,
-0.21084633469581604,
0.35704541206359863,
0.17987099289894104,
-0.11490090191364288,
-0.1822197586297989,
-0.0029855999164283276,
-0.008147204294800758,
0.28277114033699036,
0.2995380163192749,
0.2044021040201187,
0.17130036652088165,
-0.3087405562400818,
-0.21293723583221436,
-0.04854164645075798,
-0.26212024688720703,
-0.027040671557188034,
0.74715256690979,
0.03979320451617241,
0.03388483077287674,
-0.16924266517162323,
-0.1632172018289566,
0.09096451848745346,
0.2456415742635727,
0.1131739616394043,
0.18816432356834412,
-0.5572509169578552,
-0.03962155804038048,
0.0552949532866478,
0.251141756772995,
0.006098749581724405,
-0.08725421875715256,
0.12384716421365738,
-0.21100163459777832,
-0.44286561012268066,
-0.2427513748407364,
0.014088818803429604,
-0.3984430134296417,
-0.2658975124359131,
-0.7156359553337097,
0.11142465472221375,
0.08526366204023361,
-0.3103724420070648,
-0.20072786509990692,
-0.16913430392742157,
0.41912975907325745,
0.17351184785366058,
-0.013966718688607216,
-0.37958070635795593,
-0.16929084062576294,
0.02581118233501911,
-0.12684419751167297,
0.3520088493824005,
0.10135973244905472,
-0.4374338686466217,
0.049860626459121704,
-0.27523142099380493
] |
https://github.com/huggingface/datasets/issues/1759 | wikipedia dataset incomplete | The wikipedia articles are processed using the `mwparserfromhell` library. Even if it works well in most cases, such issues can happen unfortunately. You can find the repo here: https://github.com/earwig/mwparserfromhell
There also exist other datasets based on wikipedia that were processed differently (and are often cleaner) such as `wiki40b`.
| Hey guys,
I am using the https://github.com/huggingface/datasets/tree/master/datasets/wikipedia dataset.
Unfortunately, I found out that there is an incompleteness for the German dataset.
For reasons unknown to me, the number of inhabitants has been removed from many pages:
Thorey-sur-Ouche has 128 inhabitants according to the webpage (https://de.wikipedia.org/wiki/Thorey-sur-Ouche).
The pickle file however shows: französische Gemeinde mit Einwohnern (Stand).
Is it possible to fix this?
Best regards
Chris
| 48 | wikipedia dataset incomplete
Hey guys,
I am using the https://github.com/huggingface/datasets/tree/master/datasets/wikipedia dataset.
Unfortunately, I found out that there is an incompleteness for the German dataset.
For reasons unknown to me, the number of inhabitants has been removed from many pages:
Thorey-sur-Ouche has 128 inhabitants according to the webpage (https://de.wikipedia.org/wiki/Thorey-sur-Ouche).
The pickle file however shows: französische Gemeinde mit Einwohnern (Stand).
Is it possible to fix this?
Best regards
Chris
The wikipedia articles are processed using the `mwparserfromhell` library. Even if it works well in most cases, such issues can happen unfortunately. You can find the repo here: https://github.com/earwig/mwparserfromhell
There also exist other datasets based on wikipedia that were processed differently (and are often cleaner) such as `wiki40b`.
| [
0.14578351378440857,
0.1651308238506317,
-0.06042155995965004,
0.45129600167274475,
-0.1779641956090927,
0.14228935539722443,
0.132568359375,
-0.059978239238262177,
0.22113268077373505,
0.1373942643404007,
0.14837227761745453,
-0.064486563205719,
0.4038362205028534,
-0.47075486183166504,
-0.024740971624851227,
-0.19649019837379456,
0.1687638908624649,
0.1441211700439453,
-0.33717164397239685,
-0.28330129384994507,
-0.15047074854373932,
0.41018471121788025,
-0.30185437202453613,
-0.37712129950523376,
0.0009891295339912176,
0.17306967079639435,
0.029400866478681564,
-0.10994939506053925,
0.03885429725050926,
-0.25510236620903015,
0.03709230571985245,
-0.123447485268116,
0.017135173082351685,
0.2694832682609558,
-0.0001211163034895435,
-0.19795389473438263,
0.17091892659664154,
0.07847297936677933,
-0.47758930921554565,
-0.01293187215924263,
-0.28577280044555664,
-0.3218948543071747,
-0.06401319801807404,
-0.3470282554626465,
0.36592715978622437,
0.14415490627288818,
0.20301543176174164,
0.05851900205016136,
-0.017004871740937233,
-0.13809658586978912,
0.12412102520465851,
-0.3913950026035309,
0.20059068500995636,
0.06550806015729904,
0.42580553889274597,
0.5858445763587952,
0.12699782848358154,
0.27198556065559387,
-0.004844743758440018,
-0.1762053668498993,
0.017658423632383347,
0.5391583442687988,
0.005750225391238928,
-0.06160879135131836,
0.19032320380210876,
-0.09775744378566742,
0.041725847870111465,
-0.37542933225631714,
0.5308151841163635,
0.42824381589889526,
0.6989924311637878,
0.06091512739658356,
-0.295606791973114,
-0.2108040302991867,
-0.044678542762994766,
0.12717099487781525,
0.4841117560863495,
0.14659523963928223,
0.015894999727606773,
0.05816267058253288,
-0.01730520837008953,
-0.3101014792919159,
0.05488700792193413,
0.2982163429260254,
-0.24020512402057648,
0.7044150829315186,
-0.03012082166969776,
0.15862971544265747,
-0.1816009283065796,
0.04384515807032585,
-0.37931370735168457,
-0.2826717495918274,
-0.09487351030111313,
0.6344088315963745,
0.04431016370654106,
0.16432595252990723,
0.07513788342475891,
0.07724309712648392,
0.36111512780189514,
-0.275566965341568,
-0.3678848445415497,
-0.15020419657230377,
-0.32003241777420044,
0.05749925598502159,
0.43697306513786316,
-0.029573602601885796,
0.36065173149108887,
-0.20094908773899078,
0.26038023829460144,
0.02740204520523548,
0.007645763456821442,
0.28087741136550903,
0.14643235504627228,
-0.1832091063261032,
0.004789675585925579,
-0.061560988426208496,
0.06897774338722229,
-0.2187531292438507,
0.04322240129113197,
0.5090513825416565,
-0.2550532817840576,
-0.23546846210956573,
-0.23055808246135712,
-0.057192396372556686,
-0.171848326921463,
0.3587586283683777,
0.015574292279779911,
0.04925178363919258,
-0.3456350266933441,
-0.3288672864437103,
0.054817475378513336,
0.06843461096286774,
-0.014954589307308197,
-0.07601244002580643,
-0.12180162221193314,
-0.19561651349067688,
0.3033372759819031,
0.08756034821271896,
-0.16139988601207733,
-0.14394499361515045,
0.005945625249296427,
-0.3173174262046814,
0.0513228140771389,
0.11712527275085449,
0.22500331699848175,
0.27585527300834656,
-0.15709492564201355,
-0.6372520327568054,
0.044366542249917984,
0.10009758919477463,
-0.301381915807724,
-0.036433566361665726,
-0.6779912114143372,
0.14296332001686096,
-0.21411055326461792,
-0.038094595074653625,
-0.2095004916191101,
0.12936681509017944,
0.29186275601387024,
-0.3391791582107544,
0.09006083756685257,
0.05389624834060669,
-0.1480177789926529,
-0.04530120640993118,
0.34239503741264343,
0.5277432203292847,
-0.07260733097791672,
-0.21315377950668335,
-0.24006275832653046,
0.18565556406974792,
0.35047727823257446,
0.4081871807575226,
0.03367314860224724,
0.37731799483299255,
-0.04450070112943649,
0.09234727919101715,
-0.05363914370536804,
0.12963585555553436,
-0.40947771072387695,
0.02759513258934021,
0.1863747090101242,
0.0908563882112503,
-0.352201372385025,
0.03428279981017113,
0.008340468630194664,
0.28944486379623413,
0.02800963632762432,
0.14491288363933563,
0.3542478084564209,
-0.03047727607190609,
-0.32127633690834045,
-0.1869339793920517,
0.4860835671424866,
-0.05710126832127571,
0.24960218369960785,
0.01950199529528618,
0.19941802322864532,
0.1431911140680313,
0.5697170495986938,
0.09645678102970123,
0.43541207909584045,
0.7665310502052307,
0.05108816549181938,
0.24897372722625732,
0.22171887755393982,
-0.04090967774391174,
-0.14059124886989594,
-0.04867425188422203,
0.02153957076370716,
0.368121862411499,
0.1580459177494049,
-0.16565175354480743,
-0.11937089264392853,
0.004317420069128275,
0.054583363234996796,
-0.1634843945503235,
0.060162533074617386,
0.12639182806015015,
0.003624163568019867,
0.13426721096038818,
0.2368515580892563,
-0.40298527479171753,
-0.24505554139614105,
-0.10030075162649155,
-0.5714448094367981,
0.4301273226737976,
-0.15744033455848694,
0.08662983030080795,
-0.31124550104141235,
0.15443404018878937,
-0.04698314145207405,
-0.08627713471651077,
-0.1597280651330948,
-0.01924707368016243,
0.2688750624656677,
-0.09000556170940399,
0.5272327065467834,
0.058688435703516006,
0.13024738430976868,
-0.352247416973114,
-0.06220833584666252,
0.10572566837072372,
0.024569472298026085,
0.10132931917905807,
-0.6246514320373535,
-0.22315523028373718,
0.19387003779411316,
0.28697168827056885,
-0.23904456198215485,
0.23742394149303436,
0.5918764472007751,
0.10116343945264816,
0.14326229691505432,
-0.4077337384223938,
0.33719637989997864,
0.18603961169719696,
-0.023266417905688286,
0.0664847269654274,
-0.19989164173603058,
0.0710163339972496,
-0.06520681828260422,
0.1524333357810974,
0.34099096059799194,
0.33386287093162537,
-0.29446446895599365,
-0.31084761023521423,
0.2318412810564041,
-0.22950230538845062,
-0.2038974016904831,
0.14749367535114288,
0.27844154834747314,
-0.21458902955055237,
0.3905884921550751,
0.015475180000066757,
0.18066130578517914,
0.2805580496788025,
0.11750074476003647,
0.11103623360395432,
0.15598689019680023,
0.24084407091140747,
-0.3074934184551239,
-0.07120401412248611,
-0.09857004135847092,
0.37040746212005615,
-0.0236850343644619,
-0.07268260419368744,
-0.03772073611617088,
-0.03241755813360214,
0.0389566607773304,
0.07511989027261734,
-0.8128616213798523,
-0.20563213527202606,
0.03723384067416191,
-0.013047270476818085,
-0.18827985227108002,
0.1903688609600067,
-0.07591472566127777,
-0.19740618765354156,
-0.19648191332817078,
0.2040979117155075,
-0.16885054111480713,
-0.2201681286096573,
-0.24262379109859467,
0.014934672974050045,
0.027710014954209328,
-0.03964681923389435,
0.0803910419344902,
-0.4445257782936096,
-0.506656289100647,
-0.628862202167511,
-0.4411584436893463,
0.20372501015663147,
0.012816669419407845,
0.05924726650118828,
0.08562874794006348,
0.37862831354141235,
-0.4475950300693512,
0.04013647139072418,
0.13877762854099274,
-0.045416608452796936,
0.106605663895607,
0.09988715499639511,
-0.2520989775657654,
-0.12217807024717331,
-0.051388442516326904,
-0.10389105975627899,
-0.15403583645820618,
0.11187934130430222,
0.09492618590593338,
0.33990588784217834,
0.232499897480011,
0.2452102154493332,
0.07538497447967529,
-0.2840753495693207,
-0.08402728289365768,
-0.10733558237552643,
-0.3288806974887848,
-0.27408868074417114,
0.13635416328907013,
-0.23220978677272797,
-0.30546101927757263,
0.0712975338101387,
-0.08984223753213882,
-0.07070616632699966,
-0.058320194482803345,
-0.5821250081062317,
0.08865297585725784,
-0.13678531348705292,
0.11889630556106567,
-0.3265383839607239,
0.16833172738552094,
0.3140135407447815,
0.03130916506052017,
0.10924648493528366,
-0.023448478430509567,
-0.09731993824243546,
-0.023140931501984596,
0.2916719913482666,
0.5615310668945312,
-0.1569959819316864,
0.1271217167377472,
0.06140716001391411,
0.5506908297538757,
0.5221114158630371,
0.4804536998271942,
0.05660611018538475,
0.05433980002999306,
0.1798395961523056,
-0.1528550684452057,
0.00922433752566576,
0.19978559017181396,
-0.13747118413448334,
-0.138849139213562,
0.5862259268760681,
0.1349094808101654,
-0.08199851959943771,
-0.039924487471580505,
-0.14241118729114532,
-0.6010252833366394,
-0.1871093511581421,
0.08409515768289566,
0.24594838917255402,
0.5408474206924438,
0.1182597279548645,
0.025625795125961304,
-0.4206121861934662,
-0.3877401053905487,
-0.032578449696302414,
0.04697837308049202,
0.40235862135887146,
0.22332175076007843,
-0.2932402491569519,
-0.12869791686534882,
-0.3533391058444977,
0.2833380401134491,
0.1879224330186844,
-0.1200779378414154,
0.014286352321505547,
0.22710120677947998,
0.1421094536781311,
0.055937301367521286,
0.14802996814250946,
-0.3797416388988495,
0.27644944190979004,
0.034630510956048965,
0.2937157154083252,
-0.2467794269323349,
0.140726700425148,
-0.048014603555202484,
0.052735283970832825,
0.32601773738861084,
-0.15939442813396454,
-0.36184290051460266,
0.0406278632581234,
0.11571896821260452,
0.3878132402896881,
-0.361918181180954,
-0.18158607184886932,
-0.06941694766283035,
-0.0828782171010971,
-0.09231642633676529,
-0.2579604387283325,
0.09764517098665237,
0.12785562872886658,
0.35210174322128296,
0.15466822683811188,
0.26659518480300903,
0.35628700256347656,
-0.00030535724363289773,
0.13492585718631744,
0.330066055059433,
0.4820428788661957,
-0.16212520003318787,
0.010177149437367916,
0.1432143896818161,
0.21274946630001068,
0.5548610091209412,
-0.06427822262048721,
-0.17841732501983643,
0.1429617702960968,
-0.2956859767436981,
0.25264009833335876,
0.016863765195012093,
0.12045778334140778,
0.11716305464506149,
0.35445067286491394,
0.012252324260771275,
-0.1734018176794052,
-0.05701873451471329,
0.07921091467142105,
0.19543355703353882,
-0.09709244966506958,
-0.16709713637828827,
0.38003304600715637,
-0.1346753090620041,
-0.17459794878959656,
0.11319749802350998,
0.3719494640827179,
-0.2953278124332428,
0.28916120529174805,
0.2699328064918518,
1.0011175870895386,
0.378838449716568,
0.012155725620687008,
-0.1793259233236313,
-0.052959490567445755,
0.2972717881202698,
-0.10714909434318542,
0.10844559967517853,
-0.38489076495170593,
0.15846601128578186,
0.06865409761667252,
0.19115237891674042,
-0.09177552908658981,
0.23768211901187897,
0.001685824361629784,
0.037454258650541306,
-0.28670552372932434,
0.22562924027442932,
-0.17183619737625122,
0.5127313733100891,
0.2711780071258545,
-0.08953686058521271,
0.15353642404079437,
0.06530775129795074,
-0.05092112347483635,
0.4138064682483673,
-0.3755304515361786,
0.17474277317523956,
-0.04121457040309906,
0.008890672586858273,
-0.4454411268234253,
-0.14186899363994598,
0.13689135015010834,
0.2824140787124634,
0.054976750165224075,
-0.32395535707473755,
0.10390027612447739,
0.34984302520751953,
-0.046688295900821686,
0.29005903005599976,
-0.15691566467285156,
0.22963252663612366,
-0.16128237545490265,
0.08590402454137802,
0.32058849930763245,
0.2394995540380478,
-0.1280839741230011,
-0.13204547762870789,
-0.2758927047252655,
-0.004474672954529524,
-0.27832934260368347,
-0.1323281228542328,
-0.24757517874240875,
-0.27592334151268005,
-0.1543503701686859,
-0.191869854927063,
0.3122687339782715,
0.06561608612537384,
-0.03260261192917824,
-0.31623417139053345,
0.07951254397630692,
0.2867479920387268,
-0.04262810945510864,
0.10130970180034637,
-0.03851790353655815,
-0.2451888769865036,
-0.043415043503046036,
0.20087048411369324,
0.09430795907974243,
0.04407794401049614,
0.49188271164894104,
0.3106236159801483,
-0.304317831993103,
-0.06753509491682053,
0.007316288072615862,
-0.3844083845615387,
-0.31086742877960205,
-0.14082641899585724,
-0.19061948359012604,
0.2942608594894409,
-0.5391880869865417,
0.043110962957143784,
0.20964442193508148,
-0.0622674897313118,
-0.1616138517856598,
-0.45570099353790283,
-0.23161780834197998,
0.19327232241630554,
0.1517164558172226,
-0.12421245872974396,
0.044209424406290054,
-0.38246944546699524,
0.11845728009939194,
0.2389192134141922,
-0.20956841111183167,
-0.24842706322669983,
-0.1406659632921219,
0.276983380317688,
0.01253460068255663,
0.04738625884056091,
-0.30524399876594543,
-0.14837746322155,
0.019753066822886467,
-0.3925034999847412,
0.302661269903183,
-0.1368870735168457,
0.0554950125515461,
0.2028741091489792,
-0.03496299311518669,
-0.29613029956817627,
0.19078437983989716,
-0.18084527552127838,
-0.02804785594344139,
-0.29800570011138916,
-0.2192566692829132,
-0.035118237137794495,
0.09564562141895294,
0.3528510332107544,
-0.04688911512494087,
0.19061283767223358,
-0.30217066407203674,
0.22362416982650757,
0.14461036026477814,
0.09075325727462769,
-0.012356830760836601,
0.25865164399147034,
0.5201396346092224,
-0.005280401092022657,
-0.06173539161682129,
0.0004938023048453033,
-0.15915893018245697,
-0.041790466755628586,
0.10353362560272217,
-0.24291105568408966,
0.3560662865638733,
0.5593597888946533,
0.1313532590866089,
0.07266504317522049,
-0.11821935325860977,
0.10672978311777115,
0.08778884261846542,
0.2283996045589447,
-0.5155935287475586,
-0.09810613095760345,
0.35833021998405457,
0.1445646733045578,
-0.06942564249038696,
0.10602043569087982,
-0.0033222029451280832,
-0.20094862580299377,
0.015254787169396877,
0.10815493017435074,
0.05749008432030678,
-0.0894695445895195,
0.041697051376104355,
0.2708219587802887,
0.035492025315761566,
0.10848908126354218,
-0.3412257432937622,
0.17124849557876587,
0.029204677790403366,
0.2962409257888794,
0.3516978621482849,
-0.0877000018954277,
-0.00020471870084293187,
-0.015599927864968777,
0.07860922068357468,
0.021555596962571144,
0.2241315096616745,
0.1309172660112381,
-0.07513867318630219,
0.20601323246955872,
0.21624377369880676,
-0.13994909822940826,
0.18835033476352692,
0.0065367696806788445,
-0.34098225831985474,
0.1340707242488861,
-0.13091766834259033,
-0.01845196820795536,
-0.509868323802948,
-0.16932061314582825,
0.13876965641975403,
-0.07410706579685211,
-0.0382838100194931,
-0.3801882266998291,
0.08561338484287262,
0.17625470459461212,
-0.3443516194820404,
-0.472726434469223,
0.11520733684301376,
0.17712070047855377,
0.3541852533817291,
-0.3139345049858093,
-0.031940437853336334,
0.20080365240573883,
-0.15500403940677643,
-0.3127719759941101,
0.5225100517272949,
0.22651024162769318,
-0.07422412931919098,
-0.16093161702156067,
-0.08731723576784134,
-0.026417477056384087,
-0.03570226952433586,
-0.17785805463790894,
0.1859540343284607,
-0.01643638126552105,
-0.1689247190952301,
0.09979196637868881,
0.02804097719490528,
-0.1042822077870369,
-0.17336414754390717,
0.2708337903022766,
0.1868906319141388,
0.062100332230329514,
-0.3633447289466858,
-0.10731425881385803,
-0.2540300190448761,
-0.02550610527396202,
-0.14266124367713928,
0.15475568175315857,
-0.07092417031526566,
0.27881819009780884,
0.2775568664073944,
0.05547038093209267,
-0.12057338654994965,
0.027389617636799812,
-0.06354888528585434,
0.1031077429652214,
0.20896537601947784,
0.009867535904049873,
-0.06181440129876137,
-0.46424561738967896,
-0.48114916682243347,
0.21219763159751892,
-0.47612467408180237,
-0.4154522120952606,
0.22068051993846893,
0.18046021461486816,
-0.011634230613708496,
0.11071371287107468,
0.09777234494686127,
0.3260555863380432,
-0.23385383188724518,
0.5221579074859619,
-0.17626933753490448,
-0.06631255149841309,
0.02728399448096752,
0.17129145562648773,
-0.0882774144411087,
-0.18480868637561798,
0.3778124153614044,
0.19325295090675354,
-0.11623178422451019,
-0.16123943030834198,
-0.03583366423845291,
0.08425743877887726,
0.37104201316833496,
0.2509285509586334,
0.2829445004463196,
0.14939472079277039,
-0.31154948472976685,
-0.17446066439151764,
-0.04403355345129967,
-0.277047723531723,
-0.05493636429309845,
0.7693372964859009,
-0.026697492226958275,
0.04484850540757179,
-0.16949699819087982,
-0.14296205341815948,
0.13330863416194916,
0.25831449031829834,
0.09214946627616882,
0.1760730892419815,
-0.5699795484542847,
-0.08606330305337906,
0.005149198696017265,
0.24076269567012787,
0.05495043098926544,
-0.05804941803216934,
0.13911481201648712,
-0.21826031804084778,
-0.43846622109413147,
-0.3041388988494873,
-0.0382784828543663,
-0.39990198612213135,
-0.2851284146308899,
-0.6288002729415894,
0.06306865811347961,
0.1092439666390419,
-0.3254576325416565,
-0.14309099316596985,
-0.2490008920431137,
0.44757384061813354,
0.15686507523059845,
0.0031938357278704643,
-0.40282490849494934,
-0.13814601302146912,
0.027407385408878326,
-0.09073647111654282,
0.25888919830322266,
0.07970831543207169,
-0.41242218017578125,
0.029404431581497192,
-0.28536954522132874
] |
https://github.com/huggingface/datasets/issues/1758 | dataset.search() (elastic) cannot reliably retrieve search results | Hi !
I tried your code on my side and I was able to workaround this issue by waiting a few seconds before querying the index.
Maybe this is because the index is not updated yet on the ElasticSearch side ? | I am trying to use elastic search to retrieve the indices of items in the dataset in their precise order, given shuffled training indices.
The problem I have is that I cannot retrieve reliable results with my data on my first search. I have to run the search **twice** to get the right answer.
I am indexing data that looks like the following from the HF SQuAD 2.0 data set:
```
['57318658e6313a140071d02b',
'56f7165e3d8e2e1400e3733a',
'570e2f6e0b85d914000d7d21',
'5727e58aff5b5019007d97d0',
'5a3b5a503ff257001ab8441f',
'57262fab271a42140099d725']
```
To reproduce the issue, try:
```
from datasets import load_dataset, load_metric
from transformers import BertTokenizerFast, BertForQuestionAnswering
from elasticsearch import Elasticsearch
import numpy as np
import collections
from tqdm.auto import tqdm
import torch
# from https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb#scrollTo=941LPhDWeYv-
tokenizer = BertTokenizerFast.from_pretrained('bert-base-uncased')
max_length = 384 # The maximum length of a feature (question and context)
doc_stride = 128 # The authorized overlap between two part of the context when splitting it is needed.
pad_on_right = tokenizer.padding_side == "right"
squad_v2 = True
# from https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb#scrollTo=941LPhDWeYv-
def prepare_validation_features(examples):
# Tokenize our examples with truncation and maybe padding, but keep the overflows using a stride. This results
# in one example possible giving several features when a context is long, each of those features having a
# context that overlaps a bit the context of the previous feature.
tokenized_examples = tokenizer(
examples["question" if pad_on_right else "context"],
examples["context" if pad_on_right else "question"],
truncation="only_second" if pad_on_right else "only_first",
max_length=max_length,
stride=doc_stride,
return_overflowing_tokens=True,
return_offsets_mapping=True,
padding="max_length",
)
# Since one example might give us several features if it has a long context, we need a map from a feature to
# its corresponding example. This key gives us just that.
sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping")
# We keep the example_id that gave us this feature and we will store the offset mappings.
tokenized_examples["example_id"] = []
for i in range(len(tokenized_examples["input_ids"])):
# Grab the sequence corresponding to that example (to know what is the context and what is the question).
sequence_ids = tokenized_examples.sequence_ids(i)
context_index = 1 if pad_on_right else 0
# One example can give several spans, this is the index of the example containing this span of text.
sample_index = sample_mapping[i]
tokenized_examples["example_id"].append(examples["id"][sample_index])
# Set to None the offset_mapping that are not part of the context so it's easy to determine if a token
# position is part of the context or not.
tokenized_examples["offset_mapping"][i] = [
(list(o) if sequence_ids[k] == context_index else None)
for k, o in enumerate(tokenized_examples["offset_mapping"][i])
]
return tokenized_examples
# build base examples, features set of training data
shuffled_idx = pd.read_csv('https://raw.githubusercontent.com/afogarty85/temp/main/idx.csv')['idx'].to_list()
examples = load_dataset("squad_v2").shuffle(seed=1)['train']
features = load_dataset("squad_v2").shuffle(seed=1)['train'].map(
prepare_validation_features,
batched=True,
remove_columns=['answers', 'context', 'id', 'question', 'title'])
# reorder features by the training process
features = features.select(indices=shuffled_idx)
# get the example ids to match with the "example" data; get unique entries
id_list = list(dict.fromkeys(features['example_id']))
# now search for their index positions in the examples data set; load elastic search
es = Elasticsearch([{'host': 'localhost'}]).ping()
# add an index to the id column for the examples
examples.add_elasticsearch_index(column='id')
# retrieve the example index
example_idx_k1 = [examples.search(index_name='id', query=i, k=1).indices for i in id_list]
example_idx_k1 = [item for sublist in example_idx_k1 for item in sublist]
example_idx_k2 = [examples.search(index_name='id', query=i, k=3).indices for i in id_list]
example_idx_k2 = [item for sublist in example_idx_k2 for item in sublist]
len(example_idx_k1) # should be 130319
len(example_idx_k2) # should be 130319
#trial 1 lengths:
# k=1: 130314
# k=3: 130319
# trial 2:
# just run k=3 first: 130310
# try k=1 after k=3: 130319
```
| 41 | dataset.search() (elastic) cannot reliably retrieve search results
I am trying to use elastic search to retrieve the indices of items in the dataset in their precise order, given shuffled training indices.
The problem I have is that I cannot retrieve reliable results with my data on my first search. I have to run the search **twice** to get the right answer.
I am indexing data that looks like the following from the HF SQuAD 2.0 data set:
```
['57318658e6313a140071d02b',
'56f7165e3d8e2e1400e3733a',
'570e2f6e0b85d914000d7d21',
'5727e58aff5b5019007d97d0',
'5a3b5a503ff257001ab8441f',
'57262fab271a42140099d725']
```
To reproduce the issue, try:
```
from datasets import load_dataset, load_metric
from transformers import BertTokenizerFast, BertForQuestionAnswering
from elasticsearch import Elasticsearch
import numpy as np
import collections
from tqdm.auto import tqdm
import torch
# from https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb#scrollTo=941LPhDWeYv-
tokenizer = BertTokenizerFast.from_pretrained('bert-base-uncased')
max_length = 384 # The maximum length of a feature (question and context)
doc_stride = 128 # The authorized overlap between two part of the context when splitting it is needed.
pad_on_right = tokenizer.padding_side == "right"
squad_v2 = True
# from https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb#scrollTo=941LPhDWeYv-
def prepare_validation_features(examples):
# Tokenize our examples with truncation and maybe padding, but keep the overflows using a stride. This results
# in one example possible giving several features when a context is long, each of those features having a
# context that overlaps a bit the context of the previous feature.
tokenized_examples = tokenizer(
examples["question" if pad_on_right else "context"],
examples["context" if pad_on_right else "question"],
truncation="only_second" if pad_on_right else "only_first",
max_length=max_length,
stride=doc_stride,
return_overflowing_tokens=True,
return_offsets_mapping=True,
padding="max_length",
)
# Since one example might give us several features if it has a long context, we need a map from a feature to
# its corresponding example. This key gives us just that.
sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping")
# We keep the example_id that gave us this feature and we will store the offset mappings.
tokenized_examples["example_id"] = []
for i in range(len(tokenized_examples["input_ids"])):
# Grab the sequence corresponding to that example (to know what is the context and what is the question).
sequence_ids = tokenized_examples.sequence_ids(i)
context_index = 1 if pad_on_right else 0
# One example can give several spans, this is the index of the example containing this span of text.
sample_index = sample_mapping[i]
tokenized_examples["example_id"].append(examples["id"][sample_index])
# Set to None the offset_mapping that are not part of the context so it's easy to determine if a token
# position is part of the context or not.
tokenized_examples["offset_mapping"][i] = [
(list(o) if sequence_ids[k] == context_index else None)
for k, o in enumerate(tokenized_examples["offset_mapping"][i])
]
return tokenized_examples
# build base examples, features set of training data
shuffled_idx = pd.read_csv('https://raw.githubusercontent.com/afogarty85/temp/main/idx.csv')['idx'].to_list()
examples = load_dataset("squad_v2").shuffle(seed=1)['train']
features = load_dataset("squad_v2").shuffle(seed=1)['train'].map(
prepare_validation_features,
batched=True,
remove_columns=['answers', 'context', 'id', 'question', 'title'])
# reorder features by the training process
features = features.select(indices=shuffled_idx)
# get the example ids to match with the "example" data; get unique entries
id_list = list(dict.fromkeys(features['example_id']))
# now search for their index positions in the examples data set; load elastic search
es = Elasticsearch([{'host': 'localhost'}]).ping()
# add an index to the id column for the examples
examples.add_elasticsearch_index(column='id')
# retrieve the example index
example_idx_k1 = [examples.search(index_name='id', query=i, k=1).indices for i in id_list]
example_idx_k1 = [item for sublist in example_idx_k1 for item in sublist]
example_idx_k2 = [examples.search(index_name='id', query=i, k=3).indices for i in id_list]
example_idx_k2 = [item for sublist in example_idx_k2 for item in sublist]
len(example_idx_k1) # should be 130319
len(example_idx_k2) # should be 130319
#trial 1 lengths:
# k=1: 130314
# k=3: 130319
# trial 2:
# just run k=3 first: 130310
# try k=1 after k=3: 130319
```
Hi !
I tried your code on my side and I was able to workaround this issue by waiting a few seconds before querying the index.
Maybe this is because the index is not updated yet on the ElasticSearch side ? | [
0.23191805183887482,
-0.01810932345688343,
-0.12120548635721207,
0.16620595753192902,
0.15398110449314117,
-0.32754936814308167,
-0.12402671575546265,
0.11519424617290497,
-0.2562255263328552,
0.22354412078857422,
-0.09199883788824081,
-0.018562262877821922,
-0.06207636371254921,
-0.5503266453742981,
-0.21199026703834534,
0.0474039763212204,
-0.12460999935865402,
0.15369276702404022,
0.032147109508514404,
-0.320137619972229,
-0.06274601817131042,
0.004378045909106731,
-0.22889399528503418,
0.02118704654276371,
-0.4899492859840393,
-0.03261749446392059,
-0.010674688965082169,
0.05976058915257454,
-0.26926836371421814,
-0.22868378460407257,
0.5223037600517273,
0.006160469725728035,
-0.04489162564277649,
0.35661581158638,
-0.00012147358938818797,
0.04966442286968231,
0.1778372973203659,
-0.10519053041934967,
-0.1969795674085617,
-0.3112075924873352,
-0.1039011999964714,
0.02087225951254368,
0.2502504885196686,
-0.12072813510894775,
-0.2994047701358795,
-0.03137514367699623,
0.01623239926993847,
-0.47222423553466797,
0.4968915581703186,
0.14089784026145935,
0.15393930673599243,
0.07946936786174774,
-0.24739621579647064,
-0.09787005931138992,
0.5316755771636963,
0.1491987705230713,
0.0635455772280693,
-0.537103533744812,
0.35723236203193665,
0.04666643962264061,
-0.16733206808567047,
0.2593125104904175,
-0.013042687438428402,
0.12799511849880219,
0.0269338209182024,
0.3127308785915375,
-0.4903329014778137,
-0.10857833176851273,
0.10123761743307114,
0.05669974908232689,
0.2948664724826813,
0.1065647080540657,
-0.5151873230934143,
-0.17371103167533875,
0.025847721844911575,
0.1346713900566101,
0.04539017379283905,
-0.03229168429970741,
0.03849851340055466,
-0.04539439454674721,
-0.3651887774467468,
0.07452722638845444,
-0.11903504282236099,
0.22354598343372345,
-0.3281978368759155,
0.3586455285549164,
0.021706102415919304,
-0.0825725793838501,
0.15646150708198547,
-0.23322437703609467,
0.335416704416275,
0.1929096281528473,
0.08280359953641891,
0.21118034422397614,
-0.3941692113876343,
0.014127475209534168,
0.1393810361623764,
-0.342576265335083,
0.19618918001651764,
-0.1744426041841507,
0.1355978548526764,
0.2152332067489624,
-0.11078796535730362,
-0.1329718828201294,
0.14021021127700806,
0.35499075055122375,
0.07156090438365936,
0.6889232993125916,
0.05629326030611992,
-0.3481684923171997,
-0.48052167892456055,
-0.15334075689315796,
0.06402043253183365,
0.10876906663179398,
0.32824793457984924,
-0.13952039182186127,
-0.15129706263542175,
-0.2715936601161957,
-0.363350510597229,
0.2554882764816284,
-0.7213666439056396,
-0.2695731818675995,
0.10873796790838242,
0.21015994250774384,
0.007520083338022232,
-0.22764721512794495,
0.27532124519348145,
0.17032022774219513,
-0.09375956654548645,
-0.01659570261836052,
-0.22731725871562958,
-0.2755911350250244,
-0.17443479597568512,
0.12649957835674286,
0.2930634915828705,
-0.3172922134399414,
0.305969774723053,
-0.01725682057440281,
0.3794787526130676,
-0.23849061131477356,
0.22754879295825958,
-0.16424040496349335,
0.5017398595809937,
-0.049720071256160736,
-0.0622423030436039,
0.10196726769208908,
-0.230920672416687,
-0.0008211738313548267,
0.08036969602108002,
-0.05311509221792221,
-0.37739813327789307,
-0.14012883603572845,
0.09508875757455826,
0.16302283108234406,
0.0189068540930748,
0.06353098899126053,
0.0570506788790226,
0.14381101727485657,
-0.03202443569898605,
0.2286979705095291,
0.03166724368929863,
-0.24216507375240326,
-0.028387287631630898,
0.12483559548854828,
0.26204073429107666,
0.08381369709968567,
0.0766112357378006,
0.0478055439889431,
-0.20979300141334534,
0.5392237305641174,
-0.1937483251094818,
0.5320907235145569,
-0.3519344627857208,
0.35887065529823303,
-0.19598393142223358,
0.4532100558280945,
0.34387826919555664,
-0.3066937327384949,
-0.41784077882766724,
-0.007061765529215336,
0.07014626264572144,
0.08185065537691116,
-0.1956537961959839,
-0.07720039784908295,
0.5850793123245239,
0.05844564363360405,
0.1684943437576294,
-0.10581233352422714,
-0.014751438982784748,
-0.17984308302402496,
-0.2057993859052658,
0.0793083980679512,
-0.13240186870098114,
0.12253723293542862,
0.3650590181350708,
-0.31907638907432556,
0.20595501363277435,
0.20020140707492828,
0.10337896645069122,
0.138392373919487,
0.13096678256988525,
0.19939839839935303,
0.12902683019638062,
0.24512432515621185,
0.10098101943731308,
-0.017645999789237976,
-0.10456996411085129,
0.3578747808933258,
-0.11392863094806671,
-0.1758182793855667,
-0.11872410029172897,
0.07894735783338547,
-0.03784533962607384,
-0.17964571714401245,
-0.36832091212272644,
0.11061865836381912,
0.07995796948671341,
-0.06675854325294495,
-0.15761996805667877,
0.12521779537200928,
0.037386275827884674,
0.09110818058252335,
-0.10360045731067657,
-0.02394794672727585,
-0.1346374899148941,
0.5873187184333801,
0.1401749700307846,
0.06184719130396843,
-0.12896153330802917,
0.06820479780435562,
0.3323588967323303,
0.14089486002922058,
-0.028824059292674065,
0.2554711401462555,
-0.09504231065511703,
-0.09535883367061615,
0.24297018349170685,
0.062127526849508286,
0.006419341079890728,
-0.45695725083351135,
0.09028872102499008,
0.18203216791152954,
-0.045346327126026154,
-0.1043461412191391,
-0.189362034201622,
0.21333058178424835,
-0.10961270332336426,
0.29792943596839905,
-0.10061272233724594,
-0.33570751547813416,
0.04860519617795944,
0.0263250470161438,
-0.3719770610332489,
-0.12234868109226227,
0.17104797065258026,
-0.2374025136232376,
0.09279531985521317,
-0.16224537789821625,
-0.29919442534446716,
-0.11542939394712448,
0.3506641983985901,
0.029858311638236046,
0.007000470533967018,
0.23595334589481354,
0.18959704041481018,
0.10179390013217926,
-0.22244103252887726,
-0.09805607050657272,
0.1962486207485199,
0.1883401721715927,
0.1611737161874771,
-0.1316044181585312,
-0.14981958270072937,
0.08842381089925766,
-0.18830034136772156,
0.18649587035179138,
0.07519371807575226,
0.3247419595718384,
0.35571354627609253,
0.13535280525684357,
-0.15194404125213623,
-0.02399803139269352,
0.07586799561977386,
-0.10024453699588776,
-0.06024274602532387,
0.08862917870283127,
-0.5449984073638916,
0.18387176096439362,
-0.25929540395736694,
-0.0696900263428688,
-0.06945490092039108,
-0.06868776679039001,
0.07900166511535645,
0.0417688824236393,
0.19694636762142181,
-0.009486889466643333,
-0.19131362438201904,
-0.040424760431051254,
0.36009547114372253,
-0.17868687212467194,
0.020867615938186646,
0.09504163265228271,
-0.18614019453525543,
-0.005319398827850819,
-0.25317591428756714,
0.12268487364053726,
0.24299849569797516,
0.1191355511546135,
0.026354597881436348,
-0.397142618894577,
-0.23325581848621368,
0.21915926039218903,
0.2508253753185272,
-0.07817599177360535,
-0.03177051618695259,
-0.3412442207336426,
-0.7546485662460327,
-0.21124963462352753,
0.15064764022827148,
-0.08914213627576828,
-0.22728659212589264,
0.1767149567604065,
0.04780297726392746,
0.15998132526874542,
0.20626147091388702,
-0.27885010838508606,
-0.008379899896681309,
0.15967339277267456,
-0.1973228007555008,
-0.11820625513792038,
-0.19042302668094635,
0.23776057362556458,
-0.21373432874679565,
0.046008046716451645,
-0.3016383945941925,
-0.09457115828990936,
-0.3605509102344513,
-0.23014460504055023,
0.36625751852989197,
-0.0772942453622818,
-0.09255008399486542,
-0.3487817645072937,
-0.24288979172706604,
-0.3498479723930359,
0.65239018201828,
-0.3380328118801117,
0.13257458806037903,
0.18873436748981476,
-0.08744614571332932,
-0.3462245464324951,
0.18925991654396057,
0.2127605825662613,
-0.2267206311225891,
-0.0007458968320861459,
-0.15762974321842194,
-0.00016118258645292372,
0.23929870128631592,
0.42295366525650024,
0.487431138753891,
-0.14830154180526733,
0.16313011944293976,
0.3141477704048157,
0.9544945955276489,
0.11822953075170517,
-0.046950239688158035,
0.002596444683149457,
0.23375344276428223,
0.04973435774445534,
-0.162833571434021,
-0.2231665402650833,
-0.057845767587423325,
-0.08236951380968094,
-0.07778097689151764,
0.13657785952091217,
0.019490372389554977,
-0.014460047706961632,
-0.0024006532039493322,
0.21494077146053314,
-0.4264385402202606,
-0.2490731030702591,
-0.01953072100877762,
-0.012617168016731739,
0.3440341353416443,
0.26696351170539856,
0.6866032481193542,
0.21552321314811707,
-0.2718796730041504,
-0.41539356112480164,
-0.4057599902153015,
0.09809990227222443,
0.06870763748884201,
0.20067065954208374,
-0.2229747772216797,
-0.3778165876865387,
0.17561762034893036,
0.1501041203737259,
0.40390264987945557,
0.33439064025878906,
0.12570640444755554,
0.2573717534542084,
0.32250329852104187,
0.46691229939460754,
0.07206287235021591,
0.04381178319454193,
-0.13280518352985382,
-0.33406656980514526,
-0.02565000392496586,
-0.1807624101638794,
-0.3394305408000946,
0.2815588116645813,
-0.11005821079015732,
0.4821232259273529,
-0.25504007935523987,
-0.04811709746718407,
-0.20625412464141846,
-0.07974487543106079,
-0.1733807623386383,
-0.15707509219646454,
-0.12627965211868286,
-0.022432683035731316,
0.40375953912734985,
0.1792227178812027,
0.12378600239753723,
0.12464890629053116,
-0.07019388675689697,
-0.1975955069065094,
-0.20332397520542145,
0.01582684926688671,
0.11265433579683304,
-0.06867007166147232,
0.5717347264289856,
-0.06295209378004074,
0.3072263300418854,
0.7875512838363647,
-0.024190964177250862,
0.11520106345415115,
0.36832195520401,
-0.21917474269866943,
0.42791321873664856,
-0.005038461182266474,
-0.12561754882335663,
-0.06973560154438019,
0.34116801619529724,
-0.014883650466799736,
0.014201897196471691,
-0.00789354182779789,
0.030053699389100075,
0.039781857281923294,
-0.08776430040597916,
0.5422750115394592,
-0.3086487948894501,
-0.38927003741264343,
-0.022106030955910683,
0.36512240767478943,
-0.35440418124198914,
-0.009997603483498096,
0.06898761540651321,
0.502880334854126,
-0.3959294259548187,
0.2949848175048828,
0.2928870916366577,
0.5569566488265991,
-0.025505436584353447,
-0.1178329735994339,
-0.1432173252105713,
0.1455269455909729,
0.37443599104881287,
-0.21677665412425995,
0.40117454528808594,
-0.17903602123260498,
-0.4535488188266754,
-0.11556465923786163,
-0.06766717880964279,
-0.2743687927722931,
0.414580374956131,
-0.13953398168087006,
0.30185505747795105,
0.21847490966320038,
0.11984919756650925,
-0.11079991608858109,
0.3054758310317993,
0.38888582587242126,
-0.04840492457151413,
-0.0716838389635086,
0.09750188142061234,
0.04521098732948303,
0.3173329532146454,
0.004534919746220112,
0.033109795302152634,
0.16012871265411377,
-0.20460893213748932,
-0.21563129127025604,
0.07157827913761139,
-0.33221057057380676,
0.3397741913795471,
0.501197874546051,
-0.4189103841781616,
0.15536679327487946,
-0.3061593770980835,
0.09585170447826385,
0.09763588756322861,
-0.13723833858966827,
0.13707996904850006,
0.30239829421043396,
0.1333867609500885,
0.3347489833831787,
-0.11240051686763763,
0.10553837567567825,
0.16096848249435425,
-0.22866150736808777,
-0.11769931763410568,
0.21839362382888794,
-0.47884443402290344,
-0.2822568714618683,
0.18978475034236908,
-0.1204187273979187,
-0.15703314542770386,
0.07032865285873413,
0.20564450323581696,
-0.005477977450937033,
-0.022384952753782272,
0.05640241876244545,
0.308535099029541,
-0.012982750311493874,
0.501436173915863,
0.45941177010536194,
-0.20574459433555603,
-0.03841853514313698,
0.6241491436958313,
-0.03924810513854027,
0.08016052097082138,
0.15557046234607697,
-0.012202432379126549,
-0.28648480772972107,
-0.028406038880348206,
0.24353666603565216,
0.29899299144744873,
-0.1358131617307663,
-0.24897132813930511,
-0.5415060520172119,
0.33401021361351013,
0.4406498372554779,
0.13849015533924103,
0.19853831827640533,
-0.36806362867355347,
-0.30131202936172485,
-0.057669490575790405,
0.29070064425468445,
0.2671511471271515,
0.4164356291294098,
-0.04268823191523552,
-0.2128511667251587,
0.06979543715715408,
-0.06510420143604279,
0.10529827326536179,
-0.2458115965127945,
0.12887799739837646,
-0.06637513637542725,
0.18092259764671326,
-0.6103869676589966,
-0.1602732241153717,
0.31176745891571045,
-0.019063709303736687,
0.05310698226094246,
0.1648198813199997,
-0.13338705897331238,
-0.10447736829519272,
0.02192235179245472,
0.12739914655685425,
0.005721478257328272,
0.23001910746097565,
-0.23667164146900177,
-0.3809959888458252,
-0.01915702410042286,
-0.2873552739620209,
-0.17222674190998077,
0.5963318347930908,
0.3391682803630829,
0.1285146325826645,
0.16073006391525269,
-0.2684529721736908,
0.1595599353313446,
-0.05204232782125473,
0.04002850502729416,
-0.02803463488817215,
0.08019403368234634,
0.2192455232143402,
0.267108678817749,
-0.0457935594022274,
-0.20764870941638947,
0.07152290642261505,
-0.008030700497329235,
0.007021683733910322,
0.3336576819419861,
-0.37418171763420105,
-0.05415229871869087,
0.21275471150875092,
0.5488237142562866,
0.43080806732177734,
-0.2640269100666046,
-0.5410852432250977,
0.12405548244714737,
0.17170071601867676,
-0.12713448703289032,
-0.39788752794265747,
0.031780485063791275,
0.341399222612381,
-0.08805060386657715,
0.22197742760181427,
-0.14199669659137726,
-0.25041463971138,
0.1384323239326477,
0.23444226384162903,
0.38538166880607605,
-0.25932106375694275,
0.019424574449658394,
-0.05698153376579285,
0.19521254301071167,
-0.29009029269218445,
0.20232318341732025,
-0.17422083020210266,
0.18535669147968292,
0.32220834493637085,
0.22210462391376495,
0.4281586706638336,
-0.1703193038702011,
0.19658924639225006,
0.14644859731197357,
-0.171550452709198,
-0.09592461585998535,
0.38683509826660156,
-0.16530120372772217,
0.13052840530872345,
-0.22315441071987152,
0.37989363074302673,
-0.04637391120195389,
-0.08689466863870621,
-0.3670882284641266,
-0.17134754359722137,
-0.05486057698726654,
0.2007002979516983,
0.27699559926986694,
-0.3592946529388428,
-0.21135741472244263,
-0.21305066347122192,
-0.18687358498573303,
0.1379604935646057,
-0.16875705122947693,
0.08832880109548569,
0.014661772176623344,
-0.18091626465320587,
-0.18281866610050201,
-0.1264401525259018,
0.2019328773021698,
-0.2738083004951477,
0.3066409230232239,
0.17076866328716278,
0.012430772185325623,
0.2588486075401306,
0.1947532743215561,
-0.15595391392707825,
0.2856388986110687,
-0.4338254928588867,
0.2635902166366577,
-0.09022601693868637,
-0.2458145171403885,
-0.01142527163028717,
0.08805138617753983,
-0.044007182121276855,
-0.7379400134086609,
0.2653435170650482,
0.02176731266081333,
-0.045474179089069366,
0.0760260671377182,
0.17092911899089813,
0.3233114778995514,
-0.24152903258800507,
-0.07465001195669174,
0.07793857157230377,
0.361470490694046,
0.07547955960035324,
-0.13792197406291962,
-0.3765066862106323,
-0.024518879130482674,
-0.18230299651622772,
-0.03797357529401779,
0.18869535624980927,
0.08247353881597519,
0.05941221863031387,
-0.22056464850902557,
0.11726130545139313,
0.19972169399261475,
-0.08214805275201797,
-0.180922731757164,
-0.15685828030109406,
-0.4860466420650482,
0.06633051484823227,
-0.34496694803237915,
0.20420117676258087,
0.44684335589408875,
0.5287172794342041,
-0.14007356762886047,
-0.10253437608480453,
0.387842059135437,
-0.48699241876602173,
-0.1354864239692688,
0.22837390005588531,
-0.22585207223892212,
-0.16659730672836304,
-0.2700255811214447,
-0.0003967662341892719,
-0.04445510730147362,
-0.06980977207422256,
0.04326640069484711,
-0.13074088096618652,
0.06774517148733139,
0.038058776408433914,
0.02044682949781418,
0.060312122106552124,
-0.03672662749886513,
0.2781248390674591,
0.11483189463615417,
-0.06582676619291306,
0.10991222411394119,
0.1881406605243683,
0.07094338536262512,
-0.2103191763162613,
-0.06285999715328217,
-0.005470369476824999,
0.07358796894550323,
0.2926046550273895,
-0.06586641818284988,
-0.3773881494998932,
-0.14980606734752655,
0.005906383506953716,
-0.013912593014538288,
-0.06266994774341583,
-0.469681054353714,
0.009010928682982922,
-0.14258204400539398,
0.08775980770587921,
-0.3129692077636719,
0.31461837887763977,
-0.0055829682387411594,
0.3284255862236023,
-0.13330721855163574,
-0.23916441202163696,
0.7692413330078125,
-0.36026012897491455,
-0.05665048956871033,
-0.36325639486312866,
0.2906861901283264,
0.5245929956436157,
0.0564526803791523,
-0.3426841199398041,
-0.1364879310131073,
0.4094575047492981,
-0.05006207898259163,
0.003528094617649913,
-0.25609350204467773,
0.16435469686985016,
0.05860293284058571,
-0.13324150443077087,
-0.03743068873882294,
0.2646917998790741,
-0.03712523356080055,
-0.04441271349787712,
-0.034104157239198685
] |
https://github.com/huggingface/datasets/issues/1758 | dataset.search() (elastic) cannot reliably retrieve search results | Thanks for the feedback! I added a 30 second "sleep" and that seemed to work well! | I am trying to use elastic search to retrieve the indices of items in the dataset in their precise order, given shuffled training indices.
The problem I have is that I cannot retrieve reliable results with my data on my first search. I have to run the search **twice** to get the right answer.
I am indexing data that looks like the following from the HF SQuAD 2.0 data set:
```
['57318658e6313a140071d02b',
'56f7165e3d8e2e1400e3733a',
'570e2f6e0b85d914000d7d21',
'5727e58aff5b5019007d97d0',
'5a3b5a503ff257001ab8441f',
'57262fab271a42140099d725']
```
To reproduce the issue, try:
```
from datasets import load_dataset, load_metric
from transformers import BertTokenizerFast, BertForQuestionAnswering
from elasticsearch import Elasticsearch
import numpy as np
import collections
from tqdm.auto import tqdm
import torch
# from https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb#scrollTo=941LPhDWeYv-
tokenizer = BertTokenizerFast.from_pretrained('bert-base-uncased')
max_length = 384 # The maximum length of a feature (question and context)
doc_stride = 128 # The authorized overlap between two part of the context when splitting it is needed.
pad_on_right = tokenizer.padding_side == "right"
squad_v2 = True
# from https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb#scrollTo=941LPhDWeYv-
def prepare_validation_features(examples):
# Tokenize our examples with truncation and maybe padding, but keep the overflows using a stride. This results
# in one example possible giving several features when a context is long, each of those features having a
# context that overlaps a bit the context of the previous feature.
tokenized_examples = tokenizer(
examples["question" if pad_on_right else "context"],
examples["context" if pad_on_right else "question"],
truncation="only_second" if pad_on_right else "only_first",
max_length=max_length,
stride=doc_stride,
return_overflowing_tokens=True,
return_offsets_mapping=True,
padding="max_length",
)
# Since one example might give us several features if it has a long context, we need a map from a feature to
# its corresponding example. This key gives us just that.
sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping")
# We keep the example_id that gave us this feature and we will store the offset mappings.
tokenized_examples["example_id"] = []
for i in range(len(tokenized_examples["input_ids"])):
# Grab the sequence corresponding to that example (to know what is the context and what is the question).
sequence_ids = tokenized_examples.sequence_ids(i)
context_index = 1 if pad_on_right else 0
# One example can give several spans, this is the index of the example containing this span of text.
sample_index = sample_mapping[i]
tokenized_examples["example_id"].append(examples["id"][sample_index])
# Set to None the offset_mapping that are not part of the context so it's easy to determine if a token
# position is part of the context or not.
tokenized_examples["offset_mapping"][i] = [
(list(o) if sequence_ids[k] == context_index else None)
for k, o in enumerate(tokenized_examples["offset_mapping"][i])
]
return tokenized_examples
# build base examples, features set of training data
shuffled_idx = pd.read_csv('https://raw.githubusercontent.com/afogarty85/temp/main/idx.csv')['idx'].to_list()
examples = load_dataset("squad_v2").shuffle(seed=1)['train']
features = load_dataset("squad_v2").shuffle(seed=1)['train'].map(
prepare_validation_features,
batched=True,
remove_columns=['answers', 'context', 'id', 'question', 'title'])
# reorder features by the training process
features = features.select(indices=shuffled_idx)
# get the example ids to match with the "example" data; get unique entries
id_list = list(dict.fromkeys(features['example_id']))
# now search for their index positions in the examples data set; load elastic search
es = Elasticsearch([{'host': 'localhost'}]).ping()
# add an index to the id column for the examples
examples.add_elasticsearch_index(column='id')
# retrieve the example index
example_idx_k1 = [examples.search(index_name='id', query=i, k=1).indices for i in id_list]
example_idx_k1 = [item for sublist in example_idx_k1 for item in sublist]
example_idx_k2 = [examples.search(index_name='id', query=i, k=3).indices for i in id_list]
example_idx_k2 = [item for sublist in example_idx_k2 for item in sublist]
len(example_idx_k1) # should be 130319
len(example_idx_k2) # should be 130319
#trial 1 lengths:
# k=1: 130314
# k=3: 130319
# trial 2:
# just run k=3 first: 130310
# try k=1 after k=3: 130319
```
| 16 | dataset.search() (elastic) cannot reliably retrieve search results
I am trying to use elastic search to retrieve the indices of items in the dataset in their precise order, given shuffled training indices.
The problem I have is that I cannot retrieve reliable results with my data on my first search. I have to run the search **twice** to get the right answer.
I am indexing data that looks like the following from the HF SQuAD 2.0 data set:
```
['57318658e6313a140071d02b',
'56f7165e3d8e2e1400e3733a',
'570e2f6e0b85d914000d7d21',
'5727e58aff5b5019007d97d0',
'5a3b5a503ff257001ab8441f',
'57262fab271a42140099d725']
```
To reproduce the issue, try:
```
from datasets import load_dataset, load_metric
from transformers import BertTokenizerFast, BertForQuestionAnswering
from elasticsearch import Elasticsearch
import numpy as np
import collections
from tqdm.auto import tqdm
import torch
# from https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb#scrollTo=941LPhDWeYv-
tokenizer = BertTokenizerFast.from_pretrained('bert-base-uncased')
max_length = 384 # The maximum length of a feature (question and context)
doc_stride = 128 # The authorized overlap between two part of the context when splitting it is needed.
pad_on_right = tokenizer.padding_side == "right"
squad_v2 = True
# from https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb#scrollTo=941LPhDWeYv-
def prepare_validation_features(examples):
# Tokenize our examples with truncation and maybe padding, but keep the overflows using a stride. This results
# in one example possible giving several features when a context is long, each of those features having a
# context that overlaps a bit the context of the previous feature.
tokenized_examples = tokenizer(
examples["question" if pad_on_right else "context"],
examples["context" if pad_on_right else "question"],
truncation="only_second" if pad_on_right else "only_first",
max_length=max_length,
stride=doc_stride,
return_overflowing_tokens=True,
return_offsets_mapping=True,
padding="max_length",
)
# Since one example might give us several features if it has a long context, we need a map from a feature to
# its corresponding example. This key gives us just that.
sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping")
# We keep the example_id that gave us this feature and we will store the offset mappings.
tokenized_examples["example_id"] = []
for i in range(len(tokenized_examples["input_ids"])):
# Grab the sequence corresponding to that example (to know what is the context and what is the question).
sequence_ids = tokenized_examples.sequence_ids(i)
context_index = 1 if pad_on_right else 0
# One example can give several spans, this is the index of the example containing this span of text.
sample_index = sample_mapping[i]
tokenized_examples["example_id"].append(examples["id"][sample_index])
# Set to None the offset_mapping that are not part of the context so it's easy to determine if a token
# position is part of the context or not.
tokenized_examples["offset_mapping"][i] = [
(list(o) if sequence_ids[k] == context_index else None)
for k, o in enumerate(tokenized_examples["offset_mapping"][i])
]
return tokenized_examples
# build base examples, features set of training data
shuffled_idx = pd.read_csv('https://raw.githubusercontent.com/afogarty85/temp/main/idx.csv')['idx'].to_list()
examples = load_dataset("squad_v2").shuffle(seed=1)['train']
features = load_dataset("squad_v2").shuffle(seed=1)['train'].map(
prepare_validation_features,
batched=True,
remove_columns=['answers', 'context', 'id', 'question', 'title'])
# reorder features by the training process
features = features.select(indices=shuffled_idx)
# get the example ids to match with the "example" data; get unique entries
id_list = list(dict.fromkeys(features['example_id']))
# now search for their index positions in the examples data set; load elastic search
es = Elasticsearch([{'host': 'localhost'}]).ping()
# add an index to the id column for the examples
examples.add_elasticsearch_index(column='id')
# retrieve the example index
example_idx_k1 = [examples.search(index_name='id', query=i, k=1).indices for i in id_list]
example_idx_k1 = [item for sublist in example_idx_k1 for item in sublist]
example_idx_k2 = [examples.search(index_name='id', query=i, k=3).indices for i in id_list]
example_idx_k2 = [item for sublist in example_idx_k2 for item in sublist]
len(example_idx_k1) # should be 130319
len(example_idx_k2) # should be 130319
#trial 1 lengths:
# k=1: 130314
# k=3: 130319
# trial 2:
# just run k=3 first: 130310
# try k=1 after k=3: 130319
```
Thanks for the feedback! I added a 30 second "sleep" and that seemed to work well! | [
0.23191805183887482,
-0.01810932345688343,
-0.12120548635721207,
0.16620595753192902,
0.15398110449314117,
-0.32754936814308167,
-0.12402671575546265,
0.11519424617290497,
-0.2562255263328552,
0.22354412078857422,
-0.09199883788824081,
-0.018562262877821922,
-0.06207636371254921,
-0.5503266453742981,
-0.21199026703834534,
0.0474039763212204,
-0.12460999935865402,
0.15369276702404022,
0.032147109508514404,
-0.320137619972229,
-0.06274601817131042,
0.004378045909106731,
-0.22889399528503418,
0.02118704654276371,
-0.4899492859840393,
-0.03261749446392059,
-0.010674688965082169,
0.05976058915257454,
-0.26926836371421814,
-0.22868378460407257,
0.5223037600517273,
0.006160469725728035,
-0.04489162564277649,
0.35661581158638,
-0.00012147358938818797,
0.04966442286968231,
0.1778372973203659,
-0.10519053041934967,
-0.1969795674085617,
-0.3112075924873352,
-0.1039011999964714,
0.02087225951254368,
0.2502504885196686,
-0.12072813510894775,
-0.2994047701358795,
-0.03137514367699623,
0.01623239926993847,
-0.47222423553466797,
0.4968915581703186,
0.14089784026145935,
0.15393930673599243,
0.07946936786174774,
-0.24739621579647064,
-0.09787005931138992,
0.5316755771636963,
0.1491987705230713,
0.0635455772280693,
-0.537103533744812,
0.35723236203193665,
0.04666643962264061,
-0.16733206808567047,
0.2593125104904175,
-0.013042687438428402,
0.12799511849880219,
0.0269338209182024,
0.3127308785915375,
-0.4903329014778137,
-0.10857833176851273,
0.10123761743307114,
0.05669974908232689,
0.2948664724826813,
0.1065647080540657,
-0.5151873230934143,
-0.17371103167533875,
0.025847721844911575,
0.1346713900566101,
0.04539017379283905,
-0.03229168429970741,
0.03849851340055466,
-0.04539439454674721,
-0.3651887774467468,
0.07452722638845444,
-0.11903504282236099,
0.22354598343372345,
-0.3281978368759155,
0.3586455285549164,
0.021706102415919304,
-0.0825725793838501,
0.15646150708198547,
-0.23322437703609467,
0.335416704416275,
0.1929096281528473,
0.08280359953641891,
0.21118034422397614,
-0.3941692113876343,
0.014127475209534168,
0.1393810361623764,
-0.342576265335083,
0.19618918001651764,
-0.1744426041841507,
0.1355978548526764,
0.2152332067489624,
-0.11078796535730362,
-0.1329718828201294,
0.14021021127700806,
0.35499075055122375,
0.07156090438365936,
0.6889232993125916,
0.05629326030611992,
-0.3481684923171997,
-0.48052167892456055,
-0.15334075689315796,
0.06402043253183365,
0.10876906663179398,
0.32824793457984924,
-0.13952039182186127,
-0.15129706263542175,
-0.2715936601161957,
-0.363350510597229,
0.2554882764816284,
-0.7213666439056396,
-0.2695731818675995,
0.10873796790838242,
0.21015994250774384,
0.007520083338022232,
-0.22764721512794495,
0.27532124519348145,
0.17032022774219513,
-0.09375956654548645,
-0.01659570261836052,
-0.22731725871562958,
-0.2755911350250244,
-0.17443479597568512,
0.12649957835674286,
0.2930634915828705,
-0.3172922134399414,
0.305969774723053,
-0.01725682057440281,
0.3794787526130676,
-0.23849061131477356,
0.22754879295825958,
-0.16424040496349335,
0.5017398595809937,
-0.049720071256160736,
-0.0622423030436039,
0.10196726769208908,
-0.230920672416687,
-0.0008211738313548267,
0.08036969602108002,
-0.05311509221792221,
-0.37739813327789307,
-0.14012883603572845,
0.09508875757455826,
0.16302283108234406,
0.0189068540930748,
0.06353098899126053,
0.0570506788790226,
0.14381101727485657,
-0.03202443569898605,
0.2286979705095291,
0.03166724368929863,
-0.24216507375240326,
-0.028387287631630898,
0.12483559548854828,
0.26204073429107666,
0.08381369709968567,
0.0766112357378006,
0.0478055439889431,
-0.20979300141334534,
0.5392237305641174,
-0.1937483251094818,
0.5320907235145569,
-0.3519344627857208,
0.35887065529823303,
-0.19598393142223358,
0.4532100558280945,
0.34387826919555664,
-0.3066937327384949,
-0.41784077882766724,
-0.007061765529215336,
0.07014626264572144,
0.08185065537691116,
-0.1956537961959839,
-0.07720039784908295,
0.5850793123245239,
0.05844564363360405,
0.1684943437576294,
-0.10581233352422714,
-0.014751438982784748,
-0.17984308302402496,
-0.2057993859052658,
0.0793083980679512,
-0.13240186870098114,
0.12253723293542862,
0.3650590181350708,
-0.31907638907432556,
0.20595501363277435,
0.20020140707492828,
0.10337896645069122,
0.138392373919487,
0.13096678256988525,
0.19939839839935303,
0.12902683019638062,
0.24512432515621185,
0.10098101943731308,
-0.017645999789237976,
-0.10456996411085129,
0.3578747808933258,
-0.11392863094806671,
-0.1758182793855667,
-0.11872410029172897,
0.07894735783338547,
-0.03784533962607384,
-0.17964571714401245,
-0.36832091212272644,
0.11061865836381912,
0.07995796948671341,
-0.06675854325294495,
-0.15761996805667877,
0.12521779537200928,
0.037386275827884674,
0.09110818058252335,
-0.10360045731067657,
-0.02394794672727585,
-0.1346374899148941,
0.5873187184333801,
0.1401749700307846,
0.06184719130396843,
-0.12896153330802917,
0.06820479780435562,
0.3323588967323303,
0.14089486002922058,
-0.028824059292674065,
0.2554711401462555,
-0.09504231065511703,
-0.09535883367061615,
0.24297018349170685,
0.062127526849508286,
0.006419341079890728,
-0.45695725083351135,
0.09028872102499008,
0.18203216791152954,
-0.045346327126026154,
-0.1043461412191391,
-0.189362034201622,
0.21333058178424835,
-0.10961270332336426,
0.29792943596839905,
-0.10061272233724594,
-0.33570751547813416,
0.04860519617795944,
0.0263250470161438,
-0.3719770610332489,
-0.12234868109226227,
0.17104797065258026,
-0.2374025136232376,
0.09279531985521317,
-0.16224537789821625,
-0.29919442534446716,
-0.11542939394712448,
0.3506641983985901,
0.029858311638236046,
0.007000470533967018,
0.23595334589481354,
0.18959704041481018,
0.10179390013217926,
-0.22244103252887726,
-0.09805607050657272,
0.1962486207485199,
0.1883401721715927,
0.1611737161874771,
-0.1316044181585312,
-0.14981958270072937,
0.08842381089925766,
-0.18830034136772156,
0.18649587035179138,
0.07519371807575226,
0.3247419595718384,
0.35571354627609253,
0.13535280525684357,
-0.15194404125213623,
-0.02399803139269352,
0.07586799561977386,
-0.10024453699588776,
-0.06024274602532387,
0.08862917870283127,
-0.5449984073638916,
0.18387176096439362,
-0.25929540395736694,
-0.0696900263428688,
-0.06945490092039108,
-0.06868776679039001,
0.07900166511535645,
0.0417688824236393,
0.19694636762142181,
-0.009486889466643333,
-0.19131362438201904,
-0.040424760431051254,
0.36009547114372253,
-0.17868687212467194,
0.020867615938186646,
0.09504163265228271,
-0.18614019453525543,
-0.005319398827850819,
-0.25317591428756714,
0.12268487364053726,
0.24299849569797516,
0.1191355511546135,
0.026354597881436348,
-0.397142618894577,
-0.23325581848621368,
0.21915926039218903,
0.2508253753185272,
-0.07817599177360535,
-0.03177051618695259,
-0.3412442207336426,
-0.7546485662460327,
-0.21124963462352753,
0.15064764022827148,
-0.08914213627576828,
-0.22728659212589264,
0.1767149567604065,
0.04780297726392746,
0.15998132526874542,
0.20626147091388702,
-0.27885010838508606,
-0.008379899896681309,
0.15967339277267456,
-0.1973228007555008,
-0.11820625513792038,
-0.19042302668094635,
0.23776057362556458,
-0.21373432874679565,
0.046008046716451645,
-0.3016383945941925,
-0.09457115828990936,
-0.3605509102344513,
-0.23014460504055023,
0.36625751852989197,
-0.0772942453622818,
-0.09255008399486542,
-0.3487817645072937,
-0.24288979172706604,
-0.3498479723930359,
0.65239018201828,
-0.3380328118801117,
0.13257458806037903,
0.18873436748981476,
-0.08744614571332932,
-0.3462245464324951,
0.18925991654396057,
0.2127605825662613,
-0.2267206311225891,
-0.0007458968320861459,
-0.15762974321842194,
-0.00016118258645292372,
0.23929870128631592,
0.42295366525650024,
0.487431138753891,
-0.14830154180526733,
0.16313011944293976,
0.3141477704048157,
0.9544945955276489,
0.11822953075170517,
-0.046950239688158035,
0.002596444683149457,
0.23375344276428223,
0.04973435774445534,
-0.162833571434021,
-0.2231665402650833,
-0.057845767587423325,
-0.08236951380968094,
-0.07778097689151764,
0.13657785952091217,
0.019490372389554977,
-0.014460047706961632,
-0.0024006532039493322,
0.21494077146053314,
-0.4264385402202606,
-0.2490731030702591,
-0.01953072100877762,
-0.012617168016731739,
0.3440341353416443,
0.26696351170539856,
0.6866032481193542,
0.21552321314811707,
-0.2718796730041504,
-0.41539356112480164,
-0.4057599902153015,
0.09809990227222443,
0.06870763748884201,
0.20067065954208374,
-0.2229747772216797,
-0.3778165876865387,
0.17561762034893036,
0.1501041203737259,
0.40390264987945557,
0.33439064025878906,
0.12570640444755554,
0.2573717534542084,
0.32250329852104187,
0.46691229939460754,
0.07206287235021591,
0.04381178319454193,
-0.13280518352985382,
-0.33406656980514526,
-0.02565000392496586,
-0.1807624101638794,
-0.3394305408000946,
0.2815588116645813,
-0.11005821079015732,
0.4821232259273529,
-0.25504007935523987,
-0.04811709746718407,
-0.20625412464141846,
-0.07974487543106079,
-0.1733807623386383,
-0.15707509219646454,
-0.12627965211868286,
-0.022432683035731316,
0.40375953912734985,
0.1792227178812027,
0.12378600239753723,
0.12464890629053116,
-0.07019388675689697,
-0.1975955069065094,
-0.20332397520542145,
0.01582684926688671,
0.11265433579683304,
-0.06867007166147232,
0.5717347264289856,
-0.06295209378004074,
0.3072263300418854,
0.7875512838363647,
-0.024190964177250862,
0.11520106345415115,
0.36832195520401,
-0.21917474269866943,
0.42791321873664856,
-0.005038461182266474,
-0.12561754882335663,
-0.06973560154438019,
0.34116801619529724,
-0.014883650466799736,
0.014201897196471691,
-0.00789354182779789,
0.030053699389100075,
0.039781857281923294,
-0.08776430040597916,
0.5422750115394592,
-0.3086487948894501,
-0.38927003741264343,
-0.022106030955910683,
0.36512240767478943,
-0.35440418124198914,
-0.009997603483498096,
0.06898761540651321,
0.502880334854126,
-0.3959294259548187,
0.2949848175048828,
0.2928870916366577,
0.5569566488265991,
-0.025505436584353447,
-0.1178329735994339,
-0.1432173252105713,
0.1455269455909729,
0.37443599104881287,
-0.21677665412425995,
0.40117454528808594,
-0.17903602123260498,
-0.4535488188266754,
-0.11556465923786163,
-0.06766717880964279,
-0.2743687927722931,
0.414580374956131,
-0.13953398168087006,
0.30185505747795105,
0.21847490966320038,
0.11984919756650925,
-0.11079991608858109,
0.3054758310317993,
0.38888582587242126,
-0.04840492457151413,
-0.0716838389635086,
0.09750188142061234,
0.04521098732948303,
0.3173329532146454,
0.004534919746220112,
0.033109795302152634,
0.16012871265411377,
-0.20460893213748932,
-0.21563129127025604,
0.07157827913761139,
-0.33221057057380676,
0.3397741913795471,
0.501197874546051,
-0.4189103841781616,
0.15536679327487946,
-0.3061593770980835,
0.09585170447826385,
0.09763588756322861,
-0.13723833858966827,
0.13707996904850006,
0.30239829421043396,
0.1333867609500885,
0.3347489833831787,
-0.11240051686763763,
0.10553837567567825,
0.16096848249435425,
-0.22866150736808777,
-0.11769931763410568,
0.21839362382888794,
-0.47884443402290344,
-0.2822568714618683,
0.18978475034236908,
-0.1204187273979187,
-0.15703314542770386,
0.07032865285873413,
0.20564450323581696,
-0.005477977450937033,
-0.022384952753782272,
0.05640241876244545,
0.308535099029541,
-0.012982750311493874,
0.501436173915863,
0.45941177010536194,
-0.20574459433555603,
-0.03841853514313698,
0.6241491436958313,
-0.03924810513854027,
0.08016052097082138,
0.15557046234607697,
-0.012202432379126549,
-0.28648480772972107,
-0.028406038880348206,
0.24353666603565216,
0.29899299144744873,
-0.1358131617307663,
-0.24897132813930511,
-0.5415060520172119,
0.33401021361351013,
0.4406498372554779,
0.13849015533924103,
0.19853831827640533,
-0.36806362867355347,
-0.30131202936172485,
-0.057669490575790405,
0.29070064425468445,
0.2671511471271515,
0.4164356291294098,
-0.04268823191523552,
-0.2128511667251587,
0.06979543715715408,
-0.06510420143604279,
0.10529827326536179,
-0.2458115965127945,
0.12887799739837646,
-0.06637513637542725,
0.18092259764671326,
-0.6103869676589966,
-0.1602732241153717,
0.31176745891571045,
-0.019063709303736687,
0.05310698226094246,
0.1648198813199997,
-0.13338705897331238,
-0.10447736829519272,
0.02192235179245472,
0.12739914655685425,
0.005721478257328272,
0.23001910746097565,
-0.23667164146900177,
-0.3809959888458252,
-0.01915702410042286,
-0.2873552739620209,
-0.17222674190998077,
0.5963318347930908,
0.3391682803630829,
0.1285146325826645,
0.16073006391525269,
-0.2684529721736908,
0.1595599353313446,
-0.05204232782125473,
0.04002850502729416,
-0.02803463488817215,
0.08019403368234634,
0.2192455232143402,
0.267108678817749,
-0.0457935594022274,
-0.20764870941638947,
0.07152290642261505,
-0.008030700497329235,
0.007021683733910322,
0.3336576819419861,
-0.37418171763420105,
-0.05415229871869087,
0.21275471150875092,
0.5488237142562866,
0.43080806732177734,
-0.2640269100666046,
-0.5410852432250977,
0.12405548244714737,
0.17170071601867676,
-0.12713448703289032,
-0.39788752794265747,
0.031780485063791275,
0.341399222612381,
-0.08805060386657715,
0.22197742760181427,
-0.14199669659137726,
-0.25041463971138,
0.1384323239326477,
0.23444226384162903,
0.38538166880607605,
-0.25932106375694275,
0.019424574449658394,
-0.05698153376579285,
0.19521254301071167,
-0.29009029269218445,
0.20232318341732025,
-0.17422083020210266,
0.18535669147968292,
0.32220834493637085,
0.22210462391376495,
0.4281586706638336,
-0.1703193038702011,
0.19658924639225006,
0.14644859731197357,
-0.171550452709198,
-0.09592461585998535,
0.38683509826660156,
-0.16530120372772217,
0.13052840530872345,
-0.22315441071987152,
0.37989363074302673,
-0.04637391120195389,
-0.08689466863870621,
-0.3670882284641266,
-0.17134754359722137,
-0.05486057698726654,
0.2007002979516983,
0.27699559926986694,
-0.3592946529388428,
-0.21135741472244263,
-0.21305066347122192,
-0.18687358498573303,
0.1379604935646057,
-0.16875705122947693,
0.08832880109548569,
0.014661772176623344,
-0.18091626465320587,
-0.18281866610050201,
-0.1264401525259018,
0.2019328773021698,
-0.2738083004951477,
0.3066409230232239,
0.17076866328716278,
0.012430772185325623,
0.2588486075401306,
0.1947532743215561,
-0.15595391392707825,
0.2856388986110687,
-0.4338254928588867,
0.2635902166366577,
-0.09022601693868637,
-0.2458145171403885,
-0.01142527163028717,
0.08805138617753983,
-0.044007182121276855,
-0.7379400134086609,
0.2653435170650482,
0.02176731266081333,
-0.045474179089069366,
0.0760260671377182,
0.17092911899089813,
0.3233114778995514,
-0.24152903258800507,
-0.07465001195669174,
0.07793857157230377,
0.361470490694046,
0.07547955960035324,
-0.13792197406291962,
-0.3765066862106323,
-0.024518879130482674,
-0.18230299651622772,
-0.03797357529401779,
0.18869535624980927,
0.08247353881597519,
0.05941221863031387,
-0.22056464850902557,
0.11726130545139313,
0.19972169399261475,
-0.08214805275201797,
-0.180922731757164,
-0.15685828030109406,
-0.4860466420650482,
0.06633051484823227,
-0.34496694803237915,
0.20420117676258087,
0.44684335589408875,
0.5287172794342041,
-0.14007356762886047,
-0.10253437608480453,
0.387842059135437,
-0.48699241876602173,
-0.1354864239692688,
0.22837390005588531,
-0.22585207223892212,
-0.16659730672836304,
-0.2700255811214447,
-0.0003967662341892719,
-0.04445510730147362,
-0.06980977207422256,
0.04326640069484711,
-0.13074088096618652,
0.06774517148733139,
0.038058776408433914,
0.02044682949781418,
0.060312122106552124,
-0.03672662749886513,
0.2781248390674591,
0.11483189463615417,
-0.06582676619291306,
0.10991222411394119,
0.1881406605243683,
0.07094338536262512,
-0.2103191763162613,
-0.06285999715328217,
-0.005470369476824999,
0.07358796894550323,
0.2926046550273895,
-0.06586641818284988,
-0.3773881494998932,
-0.14980606734752655,
0.005906383506953716,
-0.013912593014538288,
-0.06266994774341583,
-0.469681054353714,
0.009010928682982922,
-0.14258204400539398,
0.08775980770587921,
-0.3129692077636719,
0.31461837887763977,
-0.0055829682387411594,
0.3284255862236023,
-0.13330721855163574,
-0.23916441202163696,
0.7692413330078125,
-0.36026012897491455,
-0.05665048956871033,
-0.36325639486312866,
0.2906861901283264,
0.5245929956436157,
0.0564526803791523,
-0.3426841199398041,
-0.1364879310131073,
0.4094575047492981,
-0.05006207898259163,
0.003528094617649913,
-0.25609350204467773,
0.16435469686985016,
0.05860293284058571,
-0.13324150443077087,
-0.03743068873882294,
0.2646917998790741,
-0.03712523356080055,
-0.04441271349787712,
-0.034104157239198685
] |
https://github.com/huggingface/datasets/issues/1757 | FewRel | @dspoka Please check the following link : https://github.com/thunlp/FewRel
This link mentions two versions of the datasets. Also, this one seems to be the official link.
I am assuming this is the correct link and implementing based on the same. | ## Adding a Dataset
- **Name:** FewRel
- **Description:** Large-Scale Supervised Few-Shot Relation Classification Dataset
- **Paper:** @inproceedings{han2018fewrel,
title={FewRel:A Large-Scale Supervised Few-Shot Relation Classification Dataset with State-of-the-Art Evaluation},
author={Han, Xu and Zhu, Hao and Yu, Pengfei and Wang, Ziyun and Yao, Yuan and Liu, Zhiyuan and Sun, Maosong},
booktitle={EMNLP},
year={2018}}
- **Data:** https://github.com/ProKil/FewRel
- **Motivation:** relationship extraction dataset that's been used by some state of the art systems that should be incorporated.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
| 39 | FewRel
## Adding a Dataset
- **Name:** FewRel
- **Description:** Large-Scale Supervised Few-Shot Relation Classification Dataset
- **Paper:** @inproceedings{han2018fewrel,
title={FewRel:A Large-Scale Supervised Few-Shot Relation Classification Dataset with State-of-the-Art Evaluation},
author={Han, Xu and Zhu, Hao and Yu, Pengfei and Wang, Ziyun and Yao, Yuan and Liu, Zhiyuan and Sun, Maosong},
booktitle={EMNLP},
year={2018}}
- **Data:** https://github.com/ProKil/FewRel
- **Motivation:** relationship extraction dataset that's been used by some state of the art systems that should be incorporated.
Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
@dspoka Please check the following link : https://github.com/thunlp/FewRel
This link mentions two versions of the datasets. Also, this one seems to be the official link.
I am assuming this is the correct link and implementing based on the same. | [
-0.19483499228954315,
-0.034423209726810455,
-0.10161453485488892,
0.12685315310955048,
-0.05827808752655983,
-0.1250494122505188,
0.43154144287109375,
0.1708209216594696,
0.10607054084539413,
0.1873808652162552,
-0.4312257766723633,
0.07661613076925278,
-0.030574530363082886,
-0.3551296293735504,
0.20791731774806976,
-0.11944513767957687,
-0.013729623518884182,
0.22139739990234375,
0.014430338516831398,
-0.27774763107299805,
-0.20851632952690125,
0.24179573357105255,
0.06161723658442497,
-0.11089664697647095,
-0.25688788294792175,
-0.35043078660964966,
-0.2791402041912079,
0.2126297801733017,
-0.2346278876066208,
-0.32582542300224304,
0.3127015233039856,
0.3423486351966858,
0.23608608543872833,
0.42702701687812805,
-0.00010264103912049904,
-0.11684363335371017,
0.15046486258506775,
-0.02276519499719143,
0.2300337255001068,
0.06522855907678604,
0.24618427455425262,
-0.5815305113792419,
0.022002052515745163,
-0.2704453468322754,
-0.06932122260332108,
-0.305486798286438,
-0.05930778384208679,
-0.06598495692014694,
0.3989918828010559,
0.26406532526016235,
0.3045373558998108,
-0.025696882978081703,
0.23297660052776337,
-0.41503217816352844,
0.025185832753777504,
0.057935044169425964,
-0.13751307129859924,
0.397034227848053,
0.4069155156612396,
-0.04848350211977959,
-0.0412057563662529,
-0.0503176674246788,
0.12643657624721527,
-0.10193968564271927,
0.3068550229072571,
-0.009881547652184963,
-0.07304497808218002,
-0.5875653028488159,
0.03554021939635277,
0.4702456593513489,
0.30359360575675964,
0.1698891967535019,
-0.26832616329193115,
0.10418906807899475,
-0.030911823734641075,
-0.15469202399253845,
-0.1621083915233612,
-0.09017746150493622,
-0.08144591003656387,
0.09009706974029541,
-0.009568165056407452,
-0.10536017268896103,
-0.3569052219390869,
0.25828981399536133,
-0.11994130164384842,
0.18730275332927704,
-0.11280085146427155,
-0.07551171630620956,
0.10008008033037186,
-0.0299592986702919,
-0.29149070382118225,
0.05471397563815117,
-0.0248714629560709,
0.22628597915172577,
-0.14936372637748718,
-0.29859113693237305,
0.04510995000600815,
0.2989334762096405,
0.5806903839111328,
0.29209524393081665,
-0.13492637872695923,
-0.0020113340578973293,
-0.024432383477687836,
0.17380093038082123,
-0.005068209953606129,
0.0620809942483902,
0.10717987269163132,
-0.09761802852153778,
0.21539752185344696,
0.09765974432229996,
0.11535705626010895,
0.13604630529880524,
-0.3167724311351776,
0.031734731048345566,
-0.09467370063066483,
-0.26567962765693665,
-0.2686154544353485,
-0.1873127967119217,
0.014102369546890259,
0.3091270923614502,
-0.1353949010372162,
0.10398384928703308,
-0.10421305894851685,
0.37050890922546387,
-0.14152765274047852,
0.37395867705345154,
-0.13481302559375763,
0.04594826698303223,
0.12948651611804962,
0.03744536638259888,
-0.2365318387746811,
0.2692069113254547,
-0.09966784715652466,
-0.16876111924648285,
0.16251960396766663,
0.05858336761593819,
0.24783127009868622,
-0.25689229369163513,
0.07486055046319962,
0.06781529635190964,
-0.05047822371125221,
-0.16283529996871948,
0.30421003699302673,
0.15417800843715668,
-0.17405548691749573,
-0.0858006477355957,
0.07154829055070877,
-0.2308281809091568,
-0.305196076631546,
-0.16492336988449097,
-0.05877642333507538,
0.025188643485307693,
-0.26545408368110657,
0.25467634201049805,
-0.0919790044426918,
-0.16816945374011993,
0.10786530375480652,
0.43294763565063477,
-0.11623048037290573,
0.031074577942490578,
-0.021580757573246956,
0.17584499716758728,
-0.23660515248775482,
-0.09126747399568558,
0.20166973769664764,
0.27091723680496216,
-0.4070512056350708,
-0.08166153728961945,
-0.24957334995269775,
-0.03524643927812576,
0.16477921605110168,
0.15707111358642578,
-0.1957983374595642,
0.1144888699054718,
0.02005593478679657,
0.0757206529378891,
0.43571510910987854,
-0.13560998439788818,
-0.32923424243927,
0.5616945624351501,
-0.14286722242832184,
0.04396725445985794,
0.1381468027830124,
0.30596670508384705,
0.3618839681148529,
-0.07293770462274551,
0.0767350047826767,
0.26168665289878845,
-0.2014494240283966,
-0.11641331017017365,
-0.1320558488368988,
-0.37849995493888855,
-0.38474687933921814,
-0.09448397159576416,
0.5402753949165344,
0.16102877259254456,
0.3405371606349945,
-0.1514064520597458,
0.30014508962631226,
0.12663477659225464,
0.20243769884109497,
0.139622300863266,
0.5302111506462097,
0.19008789956569672,
-0.03589646518230438,
-0.231831893324852,
-0.11460217833518982,
0.05895000696182251,
-0.039576079696416855,
0.19559231400489807,
0.18032166361808777,
-0.15371918678283691,
-0.24107642471790314,
-0.135658398270607,
-0.05629556626081467,
-0.3382447361946106,
0.19359128177165985,
0.2385711669921875,
0.15841986238956451,
-0.20778268575668335,
-0.10734939575195312,
0.2992669343948364,
0.17888155579566956,
-0.12131145596504211,
-0.036894816905260086,
0.2745819091796875,
-0.45154473185539246,
0.17721441388130188,
0.006860163062810898,
0.2530306577682495,
0.0016299339476972818,
-0.2303430289030075,
0.38060539960861206,
0.3563605546951294,
-0.1053837314248085,
-0.20450881123542786,
0.4283844232559204,
-0.062172241508960724,
0.14581041038036346,
-0.2260695993900299,
0.1204102635383606,
-0.13150423765182495,
0.09092599898576736,
0.24489980936050415,
-0.0000735917201382108,
0.5810727477073669,
0.2931475341320038,
0.028552453964948654,
0.11402411013841629,
-0.007064640522003174,
0.11903667449951172,
0.00954539142549038,
0.1411258429288864,
-0.3736830949783325,
0.0873136967420578,
0.30772626399993896,
-0.02035682462155819,
-0.10981665551662445,
-0.4671918451786041,
0.14836488664150238,
-0.10707850754261017,
-0.03077464923262596,
0.011305284686386585,
0.16713419556617737,
0.10919360816478729,
-0.07877249270677567,
-0.1423223614692688,
0.33216381072998047,
0.2356979250907898,
0.41823914647102356,
-0.0649808868765831,
-0.09169036149978638,
-0.004393495619297028,
-0.028738707304000854,
0.06832480430603027,
0.2646045982837677,
0.30274152755737305,
0.06631068885326385,
0.2482175976037979,
0.2664308547973633,
-0.22295674681663513,
-0.20703209936618805,
-0.06581556051969528,
0.15526074171066284,
0.007750522345304489,
0.16954559087753296,
0.14409096539020538,
0.2144913375377655,
-0.2617083191871643,
0.02286299504339695,
-0.06598713994026184,
-0.25646254420280457,
0.21158654987812042,
-0.1428840607404709,
0.20908792316913605,
0.32924094796180725,
-0.48158395290374756,
0.2273491621017456,
-0.406633585691452,
0.36808037757873535,
0.09833244234323502,
-0.0784762054681778,
-0.3023243546485901,
0.2722124755382538,
0.13020147383213043,
-0.22106266021728516,
0.5940269827842712,
0.04883822426199913,
-0.11436623334884644,
-0.4036474823951721,
-0.7340560555458069,
0.30769115686416626,
-0.23090626299381256,
0.46525144577026367,
0.12930631637573242,
-0.01132876891642809,
-0.03475511074066162,
-0.10148507356643677,
0.06130693852901459,
-0.5267003178596497,
-0.29774171113967896,
-0.25055399537086487,
-0.3947770595550537,
0.016321413218975067,
0.02561197802424431,
-0.4342484176158905,
-0.34705793857574463,
-0.242941752076149,
0.2471618503332138,
0.11741222441196442,
0.16062654554843903,
0.25223585963249207,
-0.07671983540058136,
-0.013117496855556965,
0.011210947297513485,
0.09198244661092758,
-0.18835999071598053,
-0.1630578190088272,
0.28857940435409546,
-0.4790605902671814,
-0.5077255368232727,
0.10037543624639511,
-0.1816786378622055,
-0.048966020345687866,
-0.09484121948480606,
-0.1655975729227066,
-0.48076629638671875,
-0.07526913285255432,
0.3006834089756012,
0.2141381949186325,
-0.08995330333709717,
0.23380495607852936,
-0.30375388264656067,
-0.3084409832954407,
0.008515519089996815,
0.20257222652435303,
0.4028570353984833,
-0.42105770111083984,
0.16480273008346558,
-0.09595751017332077,
0.5690150260925293,
-0.10912062972784042,
0.3569281995296478,
0.03501838445663452,
-0.32913443446159363,
-0.0378543883562088,
-0.11667542904615402,
0.4221534729003906,
0.025836613029241562,
-0.15197573602199554,
0.2515673041343689,
-0.16048501431941986,
0.0971379205584526,
0.3257712423801422,
-0.1527768075466156,
-0.40963366627693176,
-0.1608092188835144,
0.17102214694023132,
-0.25143349170684814,
0.1008223295211792,
-0.1981504261493683,
-0.1485135555267334,
0.19922076165676117,
-0.13566040992736816,
-0.3192768096923828,
-0.02736230194568634,
-0.16925157606601715,
-0.009562910534441471,
0.358405739068985,
-0.09112425148487091,
0.019621605053544044,
-0.6412320733070374,
0.10024847835302353,
-0.3555567264556885,
0.3508535623550415,
0.32636553049087524,
0.08465608954429626,
-0.14040841162204742,
-0.3038272559642792,
-0.02809925749897957,
-0.14468570053577423,
0.39048269391059875,
-0.4032163918018341,
-0.24896539747714996,
-0.07554522156715393,
0.24108146131038666,
-0.23216131329536438,
0.19247494637966156,
-0.2888328731060028,
0.02814541570842266,
0.037883974611759186,
0.1959313005208969,
-0.17643646895885468,
-0.2767353653907776,
0.5746405124664307,
-0.011868860572576523,
-0.061881374567747116,
0.006038731429725885,
-0.16431425511837006,
-0.11779747903347015,
-0.022878538817167282,
-0.006978308781981468,
-0.10408659279346466,
0.05141109973192215,
0.006076060235500336,
0.03819922357797623,
0.0050987605936825275,
0.04570288956165314,
0.36333611607551575,
0.09008891135454178,
-0.08937520533800125,
0.2335478812456131,
0.208957239985466,
0.04484499245882034,
0.16863666474819183,
0.520855724811554,
0.07734205573797226,
-0.43420568108558655,
0.009228956885635853,
0.22453810274600983,
-0.1899525225162506,
0.42330285906791687,
0.15240676701068878,
0.08866717666387558,
-0.09193092584609985,
0.20434464514255524,
0.107388436794281,
0.10878017544746399,
0.1067834198474884,
0.364969938993454,
-0.17674554884433746,
-0.29149124026298523,
-0.19946810603141785,
0.20862694084644318,
0.11367234587669373,
-0.044760048389434814,
-0.2344745546579361,
0.23813751339912415,
0.06139504536986351,
-0.20160731673240662,
0.19589266180992126,
0.7938675284385681,
0.05353735759854317,
0.056445296853780746,
0.07176344841718674,
-0.5559245944023132,
0.46286866068840027,
-0.13702313601970673,
-0.015212774276733398,
-0.3494102358818054,
-0.12744854390621185,
-0.1913980394601822,
0.030133921653032303,
0.12316562980413437,
0.12100300937891006,
0.01596730761229992,
0.0021429716143757105,
-0.049567561596632004,
-0.08446785062551498,
0.029321370646357536,
0.20752857625484467,
0.312541127204895,
-0.1744142770767212,
-0.034543268382549286,
0.2706572413444519,
0.2149135172367096,
-0.04261096939444542,
-0.0016283610602840781,
-0.06166648119688034,
-0.5263212323188782,
-0.06783450394868851,
-0.0818147286772728,
-0.0919506773352623,
-0.11335906386375427,
0.259090393781662,
0.3719116747379303,
-0.6455824375152588,
0.03348248451948166,
-0.02756238356232643,
0.20992672443389893,
-0.17693941295146942,
-0.06506770104169846,
0.08977736532688141,
-0.15602880716323853,
-0.3026633858680725,
0.2249402552843094,
-0.14176246523857117,
0.2554255723953247,
-0.16795042157173157,
-0.07380220293998718,
0.3642207682132721,
-0.07283058762550354,
0.06573192775249481,
-0.26589885354042053,
0.06910327076911926,
-0.029681656509637833,
0.11947717517614365,
0.0231779757887125,
0.22265343368053436,
-0.05332497879862785,
-0.2640278935432434,
0.17949062585830688,
0.059604711830616,
-0.19770215451717377,
-0.15845374763011932,
-0.04306407272815704,
-0.034480392932891846,
-0.08065081387758255,
0.4147305488586426,
0.1429395228624344,
0.030521364882588387,
0.24012558162212372,
0.1684054136276245,
-0.23593397438526154,
-0.34527552127838135,
-0.10835390537977219,
0.5156995058059692,
-0.5914090871810913,
-0.26853013038635254,
-0.03909628465771675,
-0.2759580612182617,
0.3413718640804291,
0.5564897060394287,
0.17938768863677979,
-0.1912808120250702,
-0.15301229059696198,
-0.2031974196434021,
-0.5415030121803284,
0.1473395973443985,
-0.5056758522987366,
0.2357787787914276,
-0.07271705567836761,
0.37712743878364563,
-0.019701678305864334,
0.2641434669494629,
-0.44711363315582275,
0.00713956356048584,
-0.1296500414609909,
-0.004519260488450527,
-0.1992218792438507,
-0.22236402332782745,
0.13537505269050598,
0.03978768363595009,
0.13241402804851532,
-0.032029565423727036,
-0.34869009256362915,
-0.2173282504081726,
-0.16696839034557343,
0.062190789729356766,
-0.0684456080198288,
0.12507933378219604,
0.15265339612960815,
0.19059216976165771,
-0.4427492618560791,
0.20421276986598969,
0.2229611873626709,
-0.10538968443870544,
0.02922329679131508,
-0.15034741163253784,
-0.10816089808940887,
-0.23339469730854034,
-0.03131280094385147,
-0.1561746448278427,
0.22937002778053284,
0.06959518790245056,
0.24267813563346863,
0.02357661724090576,
-0.14779247343540192,
-0.23192740976810455,
-0.04949631169438362,
0.4965566098690033,
0.12772084772586823,
-0.1563827395439148,
0.33152684569358826,
-0.18267269432544708,
-0.10781355947256088,
0.6040503978729248,
0.46466782689094543,
0.0868367850780487,
0.11458230763673782,
0.12853892147541046,
-0.09047563374042511,
0.280199259519577,
-0.4079575538635254,
-0.14646854996681213,
-0.28416937589645386,
-0.31065633893013,
0.1986573487520218,
0.3563960790634155,
0.3766656219959259,
0.0781206488609314,
0.11185044050216675,
0.1665925234556198,
0.469753623008728,
-0.27064645290374756,
-0.011369762942194939,
0.11318233609199524,
0.2222958654165268,
0.20970143377780914,
0.4822472035884857,
0.13309426605701447,
0.37676113843917847,
-0.020559728145599365,
0.029365146532654762,
0.2121930569410324,
0.005586276296526194,
0.40021857619285583,
0.41635510325431824,
-0.17655961215496063,
0.2393302321434021,
0.06998848915100098,
0.0705057680606842,
-0.22968825697898865,
-0.126751109957695,
0.5943976044654846,
0.10865725576877594,
0.1331959366798401,
-0.13615752756595612,
0.2083367258310318,
0.018406681716442108,
-0.07114260643720627,
-0.0612209290266037,
-0.3688546419143677,
-0.2815544009208679,
-0.18774043023586273,
0.011433099396526814,
-0.0446934700012207,
0.3664059638977051,
-0.1655045598745346,
-0.1093178540468216,
-0.3379768133163452,
-0.09854087233543396,
0.09707881510257721,
0.31799834966659546,
-0.17440448701381683,
0.26708027720451355,
-0.14243783056735992,
-0.22000548243522644,
0.12987467646598816,
0.35073304176330566,
0.3833196461200714,
-0.03708638250827789,
0.2647223174571991,
-0.05804714187979698,
0.010272728279232979,
-0.3191220760345459,
-0.17357459664344788,
0.08456618338823318,
0.22511662542819977,
-0.29411420226097107,
0.09964993596076965,
0.20317624509334564,
-0.27006736397743225,
0.17510966956615448,
0.1986064463853836,
0.18319499492645264,
0.0721769630908966,
0.24442192912101746,
0.04107743501663208,
-0.2169225662946701,
-0.043467964977025986,
0.18952271342277527,
-0.32230910658836365,
0.18358252942562103,
-0.021936453878879547,
-0.09630801528692245,
-0.056744284927845,
-0.09555406868457794,
0.15964986383914948,
-0.10570086538791656,
0.2242291420698166,
0.18421657383441925,
-0.06982645392417908,
-0.13729102909564972,
-0.2968897521495819,
-0.4947134852409363,
0.12665116786956787,
0.058674298226833344,
-0.1929430216550827,
-0.09742762893438339,
0.25455906987190247,
0.1445436030626297,
-0.07402142882347107,
0.011314143426716328,
-0.19538338482379913,
0.06585809588432312,
-0.04776810482144356,
-0.2914223372936249,
0.06887403875589371,
0.040769148617982864,
0.22659865021705627,
0.1290673464536667,
-0.1045507937669754,
-0.2551735043525696,
-0.10462085157632828,
0.08587592840194702,
-0.08532292395830154,
-0.277478963136673,
-0.024385666474699974,
0.15114663541316986,
0.2302413284778595,
0.08737792819738388,
0.4935259222984314,
-0.13585148751735687,
-0.2504100799560547,
-0.27340301871299744,
-0.1217617616057396,
-0.32293689250946045,
0.3654848039150238,
0.23278868198394775,
0.2945094704627991,
-0.10164681077003479,
-0.007541375700384378,
0.12795473635196686,
-0.11886613816022873,
0.2819196879863739,
0.13794481754302979,
-0.34230390191078186,
0.04868277162313461,
-0.02892850711941719,
-0.19136236608028412,
0.3845237195491791,
0.33006027340888977,
0.23391585052013397,
-0.08888498693704605,
-0.21917258203029633,
-0.34651049971580505,
0.43861767649650574,
0.13181473314762115,
0.06660392880439758,
-0.16357776522636414,
0.20132482051849365,
0.027790892869234085,
-0.17994840443134308,
-0.39099907875061035,
0.058926843106746674,
0.4154230058193207,
-0.00945538654923439,
-0.28027909994125366,
0.22627227008342743,
-0.0470428392291069,
-0.10454268753528595,
-0.0862363949418068,
-0.068123459815979,
0.029842836782336235,
-0.1870170384645462,
-0.13494545221328735,
-0.01592872105538845
] |
https://github.com/huggingface/datasets/issues/1755 | Using select/reordering datasets slows operations down immensely | Thanks for the input! I gave that a try by adding this after my selection / reordering operations, but before the big computation task of `score_squad`
```
examples = examples.flatten_indices()
features = features.flatten_indices()
```
That helped quite a bit! | I am using portions of HF's helpful work in preparing / scoring the SQuAD 2.0 data. The problem I have is that after using `select` to re-ordering the dataset, computations slow down immensely where the total scoring process on 131k training examples would take maybe 3 minutes, now take over an hour.
The below example should be reproducible and I have ran myself down this path because I want to use HF's scoring functions and helpful data preparation, but use my own trainer. The training process uses shuffle and therefore the order I trained on no longer matches the original data set order. So, to score my results correctly, the original data set needs to match the order of the training. This requires that I: (1) collect the index for each row of data emitted during training, and (2) use this index information to re-order the datasets correctly so the orders match when I go to score.
The problem is, the dataset class starts performing very poorly as soon as you start manipulating its order by immense magnitudes.
```
from datasets import load_dataset, load_metric
from transformers import BertTokenizerFast, BertForQuestionAnswering
from elasticsearch import Elasticsearch
import numpy as np
import collections
from tqdm.auto import tqdm
import torch
# from https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb#scrollTo=941LPhDWeYv-
tokenizer = BertTokenizerFast.from_pretrained('bert-base-uncased')
max_length = 384 # The maximum length of a feature (question and context)
doc_stride = 128 # The authorized overlap between two part of the context when splitting it is needed.
pad_on_right = tokenizer.padding_side == "right"
squad_v2 = True
# from https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb#scrollTo=941LPhDWeYv-
def prepare_validation_features(examples):
# Tokenize our examples with truncation and maybe padding, but keep the overflows using a stride. This results
# in one example possible giving several features when a context is long, each of those features having a
# context that overlaps a bit the context of the previous feature.
tokenized_examples = tokenizer(
examples["question" if pad_on_right else "context"],
examples["context" if pad_on_right else "question"],
truncation="only_second" if pad_on_right else "only_first",
max_length=max_length,
stride=doc_stride,
return_overflowing_tokens=True,
return_offsets_mapping=True,
padding="max_length",
)
# Since one example might give us several features if it has a long context, we need a map from a feature to
# its corresponding example. This key gives us just that.
sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping")
# We keep the example_id that gave us this feature and we will store the offset mappings.
tokenized_examples["example_id"] = []
for i in range(len(tokenized_examples["input_ids"])):
# Grab the sequence corresponding to that example (to know what is the context and what is the question).
sequence_ids = tokenized_examples.sequence_ids(i)
context_index = 1 if pad_on_right else 0
# One example can give several spans, this is the index of the example containing this span of text.
sample_index = sample_mapping[i]
tokenized_examples["example_id"].append(examples["id"][sample_index])
# Set to None the offset_mapping that are not part of the context so it's easy to determine if a token
# position is part of the context or not.
tokenized_examples["offset_mapping"][i] = [
(list(o) if sequence_ids[k] == context_index else None)
for k, o in enumerate(tokenized_examples["offset_mapping"][i])
]
return tokenized_examples
# from https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb#scrollTo=941LPhDWeYv-
def postprocess_qa_predictions(examples, features, starting_logits, ending_logits, n_best_size = 20, max_answer_length = 30):
all_start_logits, all_end_logits = starting_logits, ending_logits
# Build a map example to its corresponding features.
example_id_to_index = {k: i for i, k in enumerate(examples["id"])}
features_per_example = collections.defaultdict(list)
for i, feature in enumerate(features):
features_per_example[example_id_to_index[feature["example_id"]]].append(i)
# The dictionaries we have to fill.
predictions = collections.OrderedDict()
# Logging.
print(f"Post-processing {len(examples)} example predictions split into {len(features)} features.")
# Let's loop over all the examples!
for example_index, example in enumerate(tqdm(examples)):
# Those are the indices of the features associated to the current example.
feature_indices = features_per_example[example_index]
min_null_score = None # Only used if squad_v2 is True.
valid_answers = []
context = example["context"]
# Looping through all the features associated to the current example.
for feature_index in feature_indices:
# We grab the predictions of the model for this feature.
start_logits = all_start_logits[feature_index]
end_logits = all_end_logits[feature_index]
# This is what will allow us to map some the positions in our logits to span of texts in the original
# context.
offset_mapping = features[feature_index]["offset_mapping"]
# Update minimum null prediction.
cls_index = features[feature_index]["input_ids"].index(tokenizer.cls_token_id)
feature_null_score = start_logits[cls_index] + end_logits[cls_index]
if min_null_score is None or min_null_score < feature_null_score:
min_null_score = feature_null_score
# Go through all possibilities for the `n_best_size` greater start and end logits.
start_indexes = np.argsort(start_logits)[-1 : -n_best_size - 1 : -1].tolist()
end_indexes = np.argsort(end_logits)[-1 : -n_best_size - 1 : -1].tolist()
for start_index in start_indexes:
for end_index in end_indexes:
# Don't consider out-of-scope answers, either because the indices are out of bounds or correspond
# to part of the input_ids that are not in the context.
if (
start_index >= len(offset_mapping)
or end_index >= len(offset_mapping)
or offset_mapping[start_index] is None
or offset_mapping[end_index] is None
):
continue
# Don't consider answers with a length that is either < 0 or > max_answer_length.
if end_index < start_index or end_index - start_index + 1 > max_answer_length:
continue
start_char = offset_mapping[start_index][0]
end_char = offset_mapping[end_index][1]
valid_answers.append(
{
"score": start_logits[start_index] + end_logits[end_index],
"text": context[start_char: end_char]
}
)
if len(valid_answers) > 0:
best_answer = sorted(valid_answers, key=lambda x: x["score"], reverse=True)[0]
else:
# In the very rare edge case we have not a single non-null prediction, we create a fake prediction to avoid
# failure.
best_answer = {"text": "", "score": 0.0}
# Let's pick our final answer: the best one or the null answer (only for squad_v2)
if not squad_v2:
predictions[example["id"]] = best_answer["text"]
else:
answer = best_answer["text"] if best_answer["score"] > min_null_score else ""
predictions[example["id"]] = answer
return predictions
# build base examples, features from training data
examples = load_dataset("squad_v2").shuffle(seed=5)['train']
features = load_dataset("squad_v2").shuffle(seed=5)['train'].map(
prepare_validation_features,
batched=True,
remove_columns=['answers', 'context', 'id', 'question', 'title'])
# sim some shuffled training indices that we want to use to re-order the data to compare how we did
shuffle_idx = np.arange(0, 131754)
np.random.shuffle(shuffle_idx)
# create a new dataset with rows selected following the training shuffle
features = features.select(indices=shuffle_idx)
# get unique example ids to match with the "example" data
id_list = list(dict.fromkeys(features['example_id']))
# now search for their index positions; load elastic search
es = Elasticsearch([{'host': 'localhost'}]).ping()
# add an index to the id column for the examples
examples.add_elasticsearch_index(column='id')
# search the examples for their index position
example_idx = [examples.search(index_name='id', query=i, k=1).indices for i in id_list]
# drop the elastic search
examples.drop_index(index_name='id')
# put examples in the right order
examples = examples.select(indices=example_idx)
# generate some fake data
logits = {'starting_logits': torch.randn(131754, 384), 'ending_logits': torch.randn(131754, 384)}
def score_squad(logits, n_best_size, max_answer):
# proceed with QA calculation
final_predictions = postprocess_qa_predictions(examples=examples,
features=features,
starting_logits=logits['starting_logits'],
ending_logits=logits['ending_logits'],
n_best_size=20,
max_answer_length=30)
metric = load_metric("squad_v2")
formatted_predictions = [{"id": k, "prediction_text": v, "no_answer_probability": 0.0} for k, v in final_predictions.items()]
references = [{"id": ex["id"], "answers": ex["answers"]} for ex in examples]
metrics = metric.compute(predictions=formatted_predictions, references=references)
return metrics
metrics = score_squad(logits, n_best_size=20, max_answer=30)
```
| 39 | Using select/reordering datasets slows operations down immensely
I am using portions of HF's helpful work in preparing / scoring the SQuAD 2.0 data. The problem I have is that after using `select` to re-ordering the dataset, computations slow down immensely where the total scoring process on 131k training examples would take maybe 3 minutes, now take over an hour.
The below example should be reproducible and I have ran myself down this path because I want to use HF's scoring functions and helpful data preparation, but use my own trainer. The training process uses shuffle and therefore the order I trained on no longer matches the original data set order. So, to score my results correctly, the original data set needs to match the order of the training. This requires that I: (1) collect the index for each row of data emitted during training, and (2) use this index information to re-order the datasets correctly so the orders match when I go to score.
The problem is, the dataset class starts performing very poorly as soon as you start manipulating its order by immense magnitudes.
```
from datasets import load_dataset, load_metric
from transformers import BertTokenizerFast, BertForQuestionAnswering
from elasticsearch import Elasticsearch
import numpy as np
import collections
from tqdm.auto import tqdm
import torch
# from https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb#scrollTo=941LPhDWeYv-
tokenizer = BertTokenizerFast.from_pretrained('bert-base-uncased')
max_length = 384 # The maximum length of a feature (question and context)
doc_stride = 128 # The authorized overlap between two part of the context when splitting it is needed.
pad_on_right = tokenizer.padding_side == "right"
squad_v2 = True
# from https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb#scrollTo=941LPhDWeYv-
def prepare_validation_features(examples):
# Tokenize our examples with truncation and maybe padding, but keep the overflows using a stride. This results
# in one example possible giving several features when a context is long, each of those features having a
# context that overlaps a bit the context of the previous feature.
tokenized_examples = tokenizer(
examples["question" if pad_on_right else "context"],
examples["context" if pad_on_right else "question"],
truncation="only_second" if pad_on_right else "only_first",
max_length=max_length,
stride=doc_stride,
return_overflowing_tokens=True,
return_offsets_mapping=True,
padding="max_length",
)
# Since one example might give us several features if it has a long context, we need a map from a feature to
# its corresponding example. This key gives us just that.
sample_mapping = tokenized_examples.pop("overflow_to_sample_mapping")
# We keep the example_id that gave us this feature and we will store the offset mappings.
tokenized_examples["example_id"] = []
for i in range(len(tokenized_examples["input_ids"])):
# Grab the sequence corresponding to that example (to know what is the context and what is the question).
sequence_ids = tokenized_examples.sequence_ids(i)
context_index = 1 if pad_on_right else 0
# One example can give several spans, this is the index of the example containing this span of text.
sample_index = sample_mapping[i]
tokenized_examples["example_id"].append(examples["id"][sample_index])
# Set to None the offset_mapping that are not part of the context so it's easy to determine if a token
# position is part of the context or not.
tokenized_examples["offset_mapping"][i] = [
(list(o) if sequence_ids[k] == context_index else None)
for k, o in enumerate(tokenized_examples["offset_mapping"][i])
]
return tokenized_examples
# from https://colab.research.google.com/github/huggingface/notebooks/blob/master/examples/question_answering.ipynb#scrollTo=941LPhDWeYv-
def postprocess_qa_predictions(examples, features, starting_logits, ending_logits, n_best_size = 20, max_answer_length = 30):
all_start_logits, all_end_logits = starting_logits, ending_logits
# Build a map example to its corresponding features.
example_id_to_index = {k: i for i, k in enumerate(examples["id"])}
features_per_example = collections.defaultdict(list)
for i, feature in enumerate(features):
features_per_example[example_id_to_index[feature["example_id"]]].append(i)
# The dictionaries we have to fill.
predictions = collections.OrderedDict()
# Logging.
print(f"Post-processing {len(examples)} example predictions split into {len(features)} features.")
# Let's loop over all the examples!
for example_index, example in enumerate(tqdm(examples)):
# Those are the indices of the features associated to the current example.
feature_indices = features_per_example[example_index]
min_null_score = None # Only used if squad_v2 is True.
valid_answers = []
context = example["context"]
# Looping through all the features associated to the current example.
for feature_index in feature_indices:
# We grab the predictions of the model for this feature.
start_logits = all_start_logits[feature_index]
end_logits = all_end_logits[feature_index]
# This is what will allow us to map some the positions in our logits to span of texts in the original
# context.
offset_mapping = features[feature_index]["offset_mapping"]
# Update minimum null prediction.
cls_index = features[feature_index]["input_ids"].index(tokenizer.cls_token_id)
feature_null_score = start_logits[cls_index] + end_logits[cls_index]
if min_null_score is None or min_null_score < feature_null_score:
min_null_score = feature_null_score
# Go through all possibilities for the `n_best_size` greater start and end logits.
start_indexes = np.argsort(start_logits)[-1 : -n_best_size - 1 : -1].tolist()
end_indexes = np.argsort(end_logits)[-1 : -n_best_size - 1 : -1].tolist()
for start_index in start_indexes:
for end_index in end_indexes:
# Don't consider out-of-scope answers, either because the indices are out of bounds or correspond
# to part of the input_ids that are not in the context.
if (
start_index >= len(offset_mapping)
or end_index >= len(offset_mapping)
or offset_mapping[start_index] is None
or offset_mapping[end_index] is None
):
continue
# Don't consider answers with a length that is either < 0 or > max_answer_length.
if end_index < start_index or end_index - start_index + 1 > max_answer_length:
continue
start_char = offset_mapping[start_index][0]
end_char = offset_mapping[end_index][1]
valid_answers.append(
{
"score": start_logits[start_index] + end_logits[end_index],
"text": context[start_char: end_char]
}
)
if len(valid_answers) > 0:
best_answer = sorted(valid_answers, key=lambda x: x["score"], reverse=True)[0]
else:
# In the very rare edge case we have not a single non-null prediction, we create a fake prediction to avoid
# failure.
best_answer = {"text": "", "score": 0.0}
# Let's pick our final answer: the best one or the null answer (only for squad_v2)
if not squad_v2:
predictions[example["id"]] = best_answer["text"]
else:
answer = best_answer["text"] if best_answer["score"] > min_null_score else ""
predictions[example["id"]] = answer
return predictions
# build base examples, features from training data
examples = load_dataset("squad_v2").shuffle(seed=5)['train']
features = load_dataset("squad_v2").shuffle(seed=5)['train'].map(
prepare_validation_features,
batched=True,
remove_columns=['answers', 'context', 'id', 'question', 'title'])
# sim some shuffled training indices that we want to use to re-order the data to compare how we did
shuffle_idx = np.arange(0, 131754)
np.random.shuffle(shuffle_idx)
# create a new dataset with rows selected following the training shuffle
features = features.select(indices=shuffle_idx)
# get unique example ids to match with the "example" data
id_list = list(dict.fromkeys(features['example_id']))
# now search for their index positions; load elastic search
es = Elasticsearch([{'host': 'localhost'}]).ping()
# add an index to the id column for the examples
examples.add_elasticsearch_index(column='id')
# search the examples for their index position
example_idx = [examples.search(index_name='id', query=i, k=1).indices for i in id_list]
# drop the elastic search
examples.drop_index(index_name='id')
# put examples in the right order
examples = examples.select(indices=example_idx)
# generate some fake data
logits = {'starting_logits': torch.randn(131754, 384), 'ending_logits': torch.randn(131754, 384)}
def score_squad(logits, n_best_size, max_answer):
# proceed with QA calculation
final_predictions = postprocess_qa_predictions(examples=examples,
features=features,
starting_logits=logits['starting_logits'],
ending_logits=logits['ending_logits'],
n_best_size=20,
max_answer_length=30)
metric = load_metric("squad_v2")
formatted_predictions = [{"id": k, "prediction_text": v, "no_answer_probability": 0.0} for k, v in final_predictions.items()]
references = [{"id": ex["id"], "answers": ex["answers"]} for ex in examples]
metrics = metric.compute(predictions=formatted_predictions, references=references)
return metrics
metrics = score_squad(logits, n_best_size=20, max_answer=30)
```
Thanks for the input! I gave that a try by adding this after my selection / reordering operations, but before the big computation task of `score_squad`
```
examples = examples.flatten_indices()
features = features.flatten_indices()
```
That helped quite a bit! | [
-0.22296923398971558,
0.24770279228687286,
-0.013868373818695545,
-0.1000717282295227,
-0.0033286267425864935,
-0.14651009440422058,
-0.09160177409648895,
0.14607682824134827,
-0.34975913166999817,
0.10942187160253525,
-0.2728039026260376,
0.38738900423049927,
0.21265392005443573,
-0.19921819865703583,
-0.06130971014499664,
-0.05264555290341377,
-0.11352293193340302,
0.000003278813437646022,
-0.031424932181835175,
-0.09378630667924881,
-0.10050836205482483,
-0.34849241375923157,
-0.347740113735199,
-0.14554370939731598,
-0.22182486951351166,
-0.16036930680274963,
0.054974719882011414,
0.35124561190605164,
-0.12604627013206482,
-0.3404075503349304,
0.09777909517288208,
0.5284638404846191,
-0.06014295667409897,
0.34608885645866394,
-0.00012037390115438029,
-0.11406289786100388,
-0.3013569116592407,
-0.059098873287439346,
-0.4936904311180115,
0.08321212977170944,
-0.0697159469127655,
-0.04383963346481323,
-0.1616155058145523,
0.07797553390264511,
-0.12168585509061813,
-0.11298181116580963,
-0.054910801351070404,
-0.36396166682243347,
0.4560747444629669,
-0.0008517813985235989,
0.12085197120904922,
0.22048170864582062,
-0.5714424252510071,
-0.2556709945201874,
0.1670389175415039,
0.016241516917943954,
-0.0953834131360054,
-0.036580830812454224,
0.4183204174041748,
0.12127838283777237,
-0.11408699303865433,
0.34311744570732117,
-0.09504374861717224,
-0.15067894756793976,
0.24512353539466858,
0.1294505000114441,
-0.26991182565689087,
0.1256275326013565,
0.005174679681658745,
0.022279370576143265,
0.20267042517662048,
-0.11320452392101288,
-0.5826928615570068,
-0.3719271719455719,
0.3417561650276184,
-0.012738334946334362,
0.20491614937782288,
-0.2810364365577698,
0.46077728271484375,
-0.04162391647696495,
-0.3063010573387146,
0.20168504118919373,
0.03589048981666565,
0.021437019109725952,
0.16131870448589325,
0.22618988156318665,
0.023647816851735115,
-0.010698526166379452,
-0.01923161745071411,
-0.12379802018404007,
0.1931632161140442,
-0.18774725496768951,
0.0458308607339859,
0.3385600447654724,
-0.48510611057281494,
-0.21021738648414612,
-0.11098915338516235,
-0.248047336935997,
0.030924538150429726,
0.19534766674041748,
0.09914151579141617,
0.4193667471408844,
0.07935838401317596,
-0.3105550706386566,
0.19269724190235138,
0.2943914830684662,
-0.09324654191732407,
0.3354054093360901,
0.06616553664207458,
-0.055829647928476334,
-0.06709391623735428,
-0.027262380346655846,
0.05751949921250343,
-0.35488420724868774,
-0.11530568450689316,
0.06213176250457764,
-0.4168904721736908,
-0.13966761529445648,
-0.4675748348236084,
0.010127414017915726,
-0.2367887794971466,
0.02642444707453251,
0.35971394181251526,
0.356937974691391,
-0.1339118331670761,
-0.12309534847736359,
0.02047397755086422,
0.15109118819236755,
-0.38277754187583923,
0.11942752450704575,
-0.15493163466453552,
-0.18075118958950043,
-0.12826041877269745,
0.49811264872550964,
0.06820066273212433,
0.010568428784608841,
-0.04452765733003616,
0.14791177213191986,
0.6504569053649902,
0.13462194800376892,
0.17897365987300873,
-0.06256018579006195,
0.3049418330192566,
0.13300243020057678,
-0.16442084312438965,
0.028439458459615707,
-0.06938445568084717,
-0.08286043256521225,
-0.2640685439109802,
0.24049600958824158,
-0.4224531352519989,
-0.17307795584201813,
0.27385997772216797,
0.14264968037605286,
0.05324158817529678,
-0.13243745267391205,
-0.02617010660469532,
0.11525775492191315,
0.07007238268852234,
-0.3271813988685608,
0.033445242792367935,
-0.2640092968940735,
0.058038730174303055,
0.04175451397895813,
0.10551802068948746,
0.26441076397895813,
-0.4662197232246399,
-0.08052115142345428,
0.09471990168094635,
0.564375638961792,
0.22356583178043365,
0.33449670672416687,
-0.2951168715953827,
0.07749155163764954,
0.062312670052051544,
0.21906159818172455,
0.4485760033130646,
-0.1682099848985672,
-0.4064476191997528,
0.07931655645370483,
-0.333315372467041,
0.13018111884593964,
0.1100049763917923,
0.2987503707408905,
0.40874233841896057,
-0.1437913328409195,
-0.09174676984548569,
0.28479015827178955,
0.07831259071826935,
-0.0005595864495262504,
-0.24308368563652039,
-0.14943861961364746,
-0.146027609705925,
0.2493930459022522,
-0.08547308295965195,
0.00045390863670036197,
0.06587542593479156,
0.2544440031051636,
0.09367729723453522,
-0.21243754029273987,
-0.1569136381149292,
0.14409607648849487,
-0.04870862141251564,
0.23614700138568878,
0.009082375094294548,
-0.20175032317638397,
-0.26242595911026,
0.2542324960231781,
-0.14825335144996643,
-0.08744537085294724,
0.13528528809547424,
-0.24905990064144135,
-0.26741623878479004,
-0.22432377934455872,
-0.3613668978214264,
-0.08412797003984451,
-0.032693441957235336,
-0.000049477763241156936,
0.2648528814315796,
-0.37430158257484436,
-0.13582390546798706,
0.2545199990272522,
-0.2980073094367981,
0.11255520582199097,
0.18673528730869293,
0.3353075385093689,
0.09426441043615341,
-0.08367142826318741,
-0.17538104951381683,
0.223179891705513,
0.041380204260349274,
-0.010259708389639854,
-0.042531903833150864,
0.4816078543663025,
-0.03055838868021965,
-0.20105937123298645,
0.3003447651863098,
0.19190379977226257,
0.11892548948526382,
-0.004832500126212835,
0.18485400080680847,
-0.056765228509902954,
-0.10385865718126297,
-0.08572233468294144,
-0.4112780690193176,
0.7307941913604736,
-0.6390339136123657,
0.39066365361213684,
-0.00818905234336853,
-0.3914916217327118,
-0.13644468784332275,
0.23396992683410645,
-0.06718464940786362,
0.02808954380452633,
0.19466151297092438,
0.06922420114278793,
0.3068404793739319,
0.021923473104834557,
-0.1708943098783493,
0.11481810361146927,
0.38073593378067017,
0.11161002516746521,
-0.11619173735380173,
0.05933103710412979,
0.19338691234588623,
0.058115795254707336,
-0.15266266465187073,
-0.43810349702835083,
0.26741501688957214,
0.21447519958019257,
-0.00981314480304718,
-0.07380372285842896,
-0.08768603205680847,
-0.08992620557546616,
-0.06171955540776253,
-0.04510045796632767,
-0.025745196267962456,
0.396943598985672,
0.31695783138275146,
0.25581464171409607,
-0.271559476852417,
-0.0461910106241703,
0.04976477101445198,
-0.02695351652801037,
-0.31879448890686035,
0.3653787672519684,
-0.2655480206012726,
0.3262256681919098,
-0.09957174956798553,
0.09953292459249496,
-0.23394891619682312,
-0.18947647511959076,
0.2998904585838318,
-0.05324552208185196,
0.042034514248371124,
0.22804637253284454,
0.008248739875853062,
0.25100237131118774,
0.19362257421016693,
-0.4015028774738312,
0.04864603653550148,
0.12831440567970276,
-0.08533943444490433,
-0.03868483006954193,
0.17929935455322266,
0.23403848707675934,
0.29964104294776917,
0.16312691569328308,
-0.20645909011363983,
-0.07068085670471191,
-0.34888550639152527,
-0.058512359857559204,
0.09015127271413803,
0.14988288283348083,
-0.09478684514760971,
-0.1986878216266632,
-0.5059825778007507,
-0.3361069858074188,
-0.09678865224123001,
0.1074075698852539,
-0.18923130631446838,
0.004753757268190384,
-0.21010035276412964,
0.06903685629367828,
0.17347891628742218,
-0.4781153202056885,
0.016838060691952705,
0.016255466267466545,
0.034449320286512375,
0.009837952442467213,
0.06695474684238434,
0.14761163294315338,
-0.16101501882076263,
-0.11166269332170486,
-0.17964328825473785,
0.08806836605072021,
-0.35386350750923157,
-0.26867684721946716,
0.23199842870235443,
-0.10557688772678375,
-0.008286204189062119,
-0.41969090700149536,
-0.07657628506422043,
-0.5765688419342041,
0.25387808680534363,
0.016038037836551666,
-0.12664631009101868,
-0.09158071130514145,
-0.09845879673957825,
-0.365362286567688,
0.29593542218208313,
0.3322467803955078,
-0.2109397053718567,
0.032138798385858536,
0.11028148978948593,
-0.07740247994661331,
0.06234322488307953,
0.548682689666748,
0.04622897133231163,
-0.4003956615924835,
0.1239524707198143,
0.1109856441617012,
1.1333422660827637,
-0.014180748723447323,
0.11144588887691498,
-0.06534755975008011,
0.1698569655418396,
0.06900618970394135,
-0.3496227562427521,
-0.16719980537891388,
0.23969124257564545,
-0.006079627200961113,
0.06313113868236542,
0.35857507586479187,
0.0024384818971157074,
0.2197258472442627,
0.3613547086715698,
0.4713779389858246,
-0.12103786319494247,
-0.14536122977733612,
0.10492634028196335,
0.12416660040616989,
0.13142380118370056,
0.23449090123176575,
0.33052435517311096,
-0.2545454502105713,
-0.18995848298072815,
-0.021792368963360786,
-0.21384544670581818,
0.2415393590927124,
-0.17835715413093567,
-0.4820560812950134,
0.017617296427488327,
-0.08873456716537476,
0.10386716574430466,
0.12115886807441711,
0.03103671222925186,
0.3065716028213501,
-0.08949494361877441,
0.4382137954235077,
-0.15524423122406006,
0.6033058166503906,
0.010327554307878017,
-0.07484597712755203,
0.20947112143039703,
-0.30213025212287903,
0.031763914972543716,
-0.002844652161002159,
-0.310316801071167,
0.13811500370502472,
0.028037410229444504,
0.299295037984848,
-0.39559683203697205,
-0.14685972034931183,
0.2374914437532425,
0.0136859230697155,
0.018269799649715424,
0.016800958663225174,
-0.15742485225200653,
0.04574977979063988,
0.07693381607532501,
0.4116092026233673,
-0.27685901522636414,
0.168910950422287,
0.04998982697725296,
0.15340574085712433,
-0.20582665503025055,
0.07726002484560013,
0.10899049043655396,
0.09788393974304199,
0.23206329345703125,
0.3968161940574646,
0.29682084918022156,
0.5759826898574829,
-0.08200141787528992,
0.26670798659324646,
0.3654352128505707,
-0.04056299105286598,
-0.03208085149526596,
0.17770683765411377,
0.021375594660639763,
0.124508798122406,
0.7451144456863403,
0.18899278342723846,
0.18021932244300842,
-0.009155782870948315,
0.3382088840007782,
-0.27091026306152344,
-0.05702263489365578,
0.37553098797798157,
-0.1951373964548111,
-0.15412864089012146,
-0.24984855949878693,
0.3288457691669464,
0.008933761157095432,
-0.036589112132787704,
-0.1135576143860817,
0.5571148991584778,
-0.11694814264774323,
0.36992278695106506,
0.6643725037574768,
1.1539636850357056,
-0.3158581256866455,
0.2839169502258301,
0.08572442084550858,
-0.06275967508554459,
0.2783319354057312,
-0.4571998715400696,
0.3110564649105072,
-0.3608015179634094,
-0.5183972120285034,
0.12710177898406982,
-0.27685949206352234,
0.1780615597963333,
0.3513544797897339,
0.04872482270002365,
0.23529395461082458,
-0.3827721178531647,
0.07795923948287964,
-0.3664308190345764,
0.2086067944765091,
0.10528678447008133,
-0.5642210841178894,
-0.09958093613386154,
0.03420821577310562,
0.08514895290136337,
-0.16150608658790588,
-0.10265717655420303,
0.17781275510787964,
-0.07760093361139297,
0.23192942142486572,
-0.056612901389598846,
-0.14086851477622986,
-0.31188198924064636,
-0.02346007525920868,
-0.04957403242588043,
-0.34393027424812317,
0.6047793626785278,
-0.04151841253042221,
0.177450492978096,
0.13722053170204163,
0.20339146256446838,
0.17463096976280212,
0.170843243598938,
0.46510642766952515,
0.4565698504447937,
-0.10608081519603729,
0.05089646950364113,
0.1657198667526245,
0.17113427817821503,
-0.11482394486665726,
0.19439545273780823,
-0.4318302273750305,
-0.3854593336582184,
0.11506571620702744,
0.09803847223520279,
-0.1946829855442047,
-0.02035192959010601,
0.28046008944511414,
0.1253671646118164,
-0.20019114017486572,
0.05037349835038185,
0.03823696821928024,
-0.028356732800602913,
0.5486467480659485,
0.1635395586490631,
-0.25183847546577454,
-0.26089560985565186,
0.6345749497413635,
0.09655191749334335,
-0.08347415924072266,
0.4297219514846802,
-0.04877473786473274,
-0.39118078351020813,
-0.10197102278470993,
0.21287213265895844,
0.2624302804470062,
-0.34121087193489075,
-0.08727511018514633,
-0.1879286766052246,
-0.27944299578666687,
0.15877500176429749,
0.20182865858078003,
0.19337917864322662,
-0.07010988146066666,
-0.29992642998695374,
0.12440638244152069,
0.318589985370636,
0.02012263610959053,
0.6046156883239746,
0.03986075520515442,
-0.333685040473938,
0.22270359098911285,
-0.5289214253425598,
0.356366902589798,
-0.2616192102432251,
-0.10699810832738876,
-0.24825885891914368,
0.2899232804775238,
-0.5045489072799683,
-0.1483783721923828,
0.25868523120880127,
-0.11637280881404877,
0.004872577264904976,
-0.06017710641026497,
-0.19830858707427979,
-0.14482517540454865,
-0.19700132310390472,
0.09802629053592682,
-0.19970668852329254,
0.12431853264570236,
-0.01880352571606636,
-0.25076425075531006,
-0.27048084139823914,
-0.40962639451026917,
0.2014552503824234,
0.33966320753097534,
0.25175172090530396,
-0.07944880425930023,
0.20152981579303741,
-0.2823914885520935,
0.12247315794229507,
-0.0024228058755397797,
0.1681145578622818,
-0.16676360368728638,
0.04116439074277878,
0.24534328281879425,
-0.10373825579881668,
-0.13571381568908691,
-0.06975206732749939,
0.27891916036605835,
0.5007072687149048,
0.021199338138103485,
0.21533319354057312,
-0.2984633445739746,
-0.05454014986753464,
0.4007716774940491,
0.4186484217643738,
0.696302592754364,
0.29698240756988525,
-0.6313232779502869,
0.08922211825847626,
0.04358808323740959,
-0.06285197287797928,
-0.3881577253341675,
0.021163124591112137,
-0.10073354095220566,
0.010001089423894882,
0.18118435144424438,
-0.18661148846149445,
0.33414068818092346,
0.11532831937074661,
0.14217321574687958,
-0.08103767782449722,
-0.06331571936607361,
0.10963120311498642,
0.2210967242717743,
0.21586987376213074,
-0.1135801300406456,
0.38455143570899963,
-0.19541461765766144,
0.1096799224615097,
0.0798891931772232,
0.17930912971496582,
0.46643662452697754,
-0.04112992063164711,
0.30828461050987244,
-0.3080219626426697,
-0.2969992160797119,
-0.24217142164707184,
0.44425809383392334,
0.19909685850143433,
-0.046932000666856766,
0.06939120590686798,
0.1385660022497177,
-0.06662044674158096,
-0.5457810759544373,
-0.0916195958852768,
0.10645763576030731,
-0.08491045981645584,
-0.1199188083410263,
-0.05662912502884865,
-0.19385960698127747,
-0.16505391895771027,
-0.10947805643081665,
-0.3108012080192566,
0.12947584688663483,
0.039264168590307236,
-0.1247129961848259,
0.4548839330673218,
-0.35485005378723145,
-0.07787749171257019,
-0.2523678243160248,
0.3607310950756073,
-0.1750519871711731,
-0.019875165075063705,
-0.06901000440120697,
0.3045784831047058,
0.3067368268966675,
0.05529765412211418,
-0.17409907281398773,
0.10504942387342453,
-0.3952311873435974,
-0.07668110728263855,
-0.0727439597249031,
0.06887294352054596,
0.2560730278491974,
-0.045582547783851624,
-0.2837684154510498,
-0.39336279034614563,
0.42062366008758545,
-0.018373632803559303,
-0.16518832743167877,
-0.6061073541641235,
0.22668568789958954,
0.05559408292174339,
-0.2718515396118164,
0.03166045621037483,
0.2860608696937561,
0.04706491902470589,
0.4065902829170227,
-0.03230828046798706,
0.061348117887973785,
-0.0003613149165175855,
-0.2930673658847809,
-0.1541665941476822,
0.05008530616760254,
0.2389613538980484,
0.06267505884170532,
0.14897285401821136,
0.5292366147041321,
0.184760183095932,
-0.07450762391090393,
-0.35755378007888794,
0.005656916182488203,
-0.5157694220542908,
-0.07460086792707443,
-0.014650753699243069,
0.05197470262646675,
0.43813544511795044,
0.475475013256073,
0.13728156685829163,
0.054925888776779175,
0.12927842140197754,
-0.5943349599838257,
0.056518055498600006,
0.08937214314937592,
-0.15991412103176117,
-0.006351758725941181,
-0.27958109974861145,
-0.09287730604410172,
-0.2524855434894562,
-0.27287688851356506,
0.11006424576044083,
0.3300587236881256,
-0.05368776246905327,
0.12985391914844513,
0.028091181069612503,
0.05613695830106735,
0.2114114612340927,
0.04523039609193802,
-0.09331415593624115,
-0.021087970584630966,
0.04840247705578804,
0.10927442461252213,
0.11353406310081482,
-0.21382024884223938,
-0.2178073525428772,
0.09989133477210999,
-0.26423290371894836,
0.3201902508735657,
-0.11372734606266022,
-0.17145007848739624,
-0.1460871398448944,
0.11755330115556717,
-0.02235659584403038,
0.19536703824996948,
-0.506677508354187,
0.126238152384758,
0.12939366698265076,
0.517236053943634,
-0.23423577845096588,
0.4483051896095276,
0.0020683477632701397,
0.4348351061344147,
-0.2447374314069748,
-0.05306611955165863,
0.46614158153533936,
0.05716170370578766,
-0.15673813223838806,
-0.01786654256284237,
0.3398125171661377,
0.27817344665527344,
0.07953695207834244,
0.19540004432201385,
-0.10078594833612442,
0.30357828736305237,
-0.09313613921403885,
-0.01846291683614254,
0.13311806321144104,
-0.05431804805994034,
-0.14237940311431885,
-0.26937592029571533,
-0.027489429339766502,
-0.06851615756750107,
-0.14671555161476135,
-0.20962892472743988,
-0.26946985721588135
] |
https://github.com/huggingface/datasets/issues/1747 | datasets slicing with seed | Hi :)
The slicing API from https://huggingface.co/docs/datasets/splits.html doesn't shuffle the data.
You can shuffle and then take a subset of your dataset with
```python
# shuffle and take the first 100 examples
dataset = dataset.shuffle(seed=42).select(range(100))
```
You can find more information about shuffling and selecting rows in the documentation: https://huggingface.co/docs/datasets/processing.html#selecting-sorting-shuffling-splitting-rows | Hi
I need to slice a dataset with random seed, I looked into documentation here https://huggingface.co/docs/datasets/splits.html
I could not find a seed option, could you assist me please how I can get a slice for different seeds?
thank you.
@lhoestq | 50 | datasets slicing with seed
Hi
I need to slice a dataset with random seed, I looked into documentation here https://huggingface.co/docs/datasets/splits.html
I could not find a seed option, could you assist me please how I can get a slice for different seeds?
thank you.
@lhoestq
Hi :)
The slicing API from https://huggingface.co/docs/datasets/splits.html doesn't shuffle the data.
You can shuffle and then take a subset of your dataset with
```python
# shuffle and take the first 100 examples
dataset = dataset.shuffle(seed=42).select(range(100))
```
You can find more information about shuffling and selecting rows in the documentation: https://huggingface.co/docs/datasets/processing.html#selecting-sorting-shuffling-splitting-rows | [
0.009547417983412743,
-0.6955254673957825,
-0.10169805586338043,
0.106083445250988,
0.2887978255748749,
-0.05544661730527878,
0.08338604122400284,
0.0634738951921463,
-0.13928133249282837,
0.6284065842628479,
-0.04679027199745178,
0.09934747219085693,
-0.18307369947433472,
0.7351148128509521,
0.15613573789596558,
-0.3828531503677368,
0.12370895594358444,
-0.21804265677928925,
0.34682029485702515,
-0.16708919405937195,
-0.14873959124088287,
-0.043082669377326965,
-0.2222316712141037,
-0.14831550419330597,
-0.24107696115970612,
-0.2185828983783722,
-0.17684805393218994,
0.18849298357963562,
-0.11707485467195511,
-0.06758920848369598,
-0.0007690451457165182,
0.01909509301185608,
0.2182830572128296,
0.2653712034225464,
-0.00012244126992300153,
-0.1700751632452011,
0.0218276996165514,
0.020341647788882256,
0.05277886614203453,
-0.049562133848667145,
-0.2632194757461548,
0.29186439514160156,
-0.1174258440732956,
-0.12123292684555054,
-0.40697017312049866,
-0.006834988482296467,
0.06588341295719147,
-0.15430964529514313,
0.03972600772976875,
-0.1973048448562622,
0.05446600541472435,
0.04211612045764923,
-0.01920383609831333,
-0.10661468654870987,
0.32570773363113403,
0.6462306976318359,
-0.05144145339727402,
-0.17939181625843048,
0.09448611736297607,
0.4545605480670929,
0.312553733587265,
-0.005021542310714722,
0.10667742788791656,
0.15817080438137054,
0.05301489308476448,
0.08908744901418686,
-0.3917909264564514,
-0.46168309450149536,
0.031012769788503647,
0.42726677656173706,
0.43520665168762207,
0.07329687476158142,
-0.32729655504226685,
-0.2401064932346344,
-0.013762330636382103,
-0.3003647029399872,
-0.268315851688385,
0.5809766054153442,
-0.1436818540096283,
-0.08454465866088867,
-0.043180763721466064,
-0.05145275220274925,
-0.13034982979297638,
0.11597557365894318,
0.27862411737442017,
0.6345119476318359,
-0.12474648654460907,
0.1643834412097931,
0.44935286045074463,
-0.06226680800318718,
-0.07862976938486099,
-0.0007800416788086295,
-0.04121590405702591,
0.23739010095596313,
0.024267639964818954,
-0.24841327965259552,
-0.41499456763267517,
0.7269177436828613,
0.4642118215560913,
0.1487489491701126,
-0.1918439269065857,
0.08501861244440079,
-0.07670420408248901,
-0.086918406188488,
0.33976930379867554,
-0.3440188467502594,
0.15064236521720886,
0.3478377163410187,
0.030342191457748413,
-0.07131041586399078,
0.15798601508140564,
0.024999305605888367,
0.15585507452487946,
0.1213517040014267,
-0.29653531312942505,
-0.20087279379367828,
-0.0705738291144371,
0.01008202601224184,
0.019276393577456474,
-0.5418999195098877,
-0.1341821700334549,
-0.3639207184314728,
-0.03330289199948311,
0.2046193927526474,
-0.01930730603635311,
-0.3753102421760559,
-0.2521536648273468,
0.05299227684736252,
-0.1427575647830963,
-0.3852556347846985,
-0.27593475580215454,
0.10756397992372513,
0.061752643436193466,
0.09679151326417923,
-0.12463125586509705,
-0.2775675654411316,
0.18231509625911713,
0.12783920764923096,
0.11883576959371567,
-0.02214941754937172,
-0.3988850712776184,
0.25359514355659485,
-0.14874976873397827,
0.11611415445804596,
0.14565207064151764,
-0.13536429405212402,
0.15682710707187653,
0.14402270317077637,
-0.1639462113380432,
-0.027622684836387634,
-0.10597662627696991,
-0.1007244735956192,
0.10961023718118668,
-0.02289402484893799,
0.10343193262815475,
0.02062874473631382,
-0.5214862823486328,
0.28180643916130066,
-0.16032956540584564,
0.08189212530851364,
-0.034544676542282104,
0.2468312531709671,
-0.36995139718055725,
-0.21610358357429504,
0.35086557269096375,
0.012297057546675205,
-0.13785569369792938,
-0.38327085971832275,
0.0940629094839096,
0.014768991619348526,
0.3416871428489685,
0.3521430790424347,
-0.14846113324165344,
-0.18123330175876617,
-0.13292407989501953,
0.2817608714103699,
0.08354312926530838,
0.3524158298969269,
-0.12196329236030579,
0.14417122304439545,
-0.031112682074308395,
-0.1135113388299942,
0.18052969872951508,
0.18576458096504211,
0.12821096181869507,
0.01827431097626686,
-0.0982351005077362,
0.15579982101917267,
-0.400655061006546,
0.10393784940242767,
-0.15215496718883514,
-0.23103022575378418,
0.16099020838737488,
0.2237420529127121,
0.047938693314790726,
-0.0844174399971962,
0.2544507384300232,
-0.28220826387405396,
0.49495747685432434,
0.06420227140188217,
0.10980599373579025,
-0.020525887608528137,
0.11607799679040909,
0.3239251673221588,
0.056764986366033554,
-0.3433821201324463,
-0.1044875979423523,
0.050857383757829666,
0.02148975059390068,
-0.037212129682302475,
0.173148512840271,
-0.2949851453304291,
-0.07905525714159012,
-0.0670877993106842,
-0.007347537204623222,
-0.04155256226658821,
-0.11583980917930603,
-0.03440842404961586,
0.5063342452049255,
0.11775391548871994,
-0.18358105421066284,
-0.048893410712480545,
-0.102611243724823,
0.13796231150627136,
-0.7429710030555725,
0.39613887667655945,
0.059883151203393936,
-0.22514672577381134,
0.012345269322395325,
-0.04424295201897621,
0.0640270859003067,
-0.10306350886821747,
0.04696863144636154,
0.39837414026260376,
0.2964775264263153,
-0.08602136373519897,
0.12612448632717133,
0.13685323297977448,
0.24918176233768463,
-0.20317700505256653,
0.07650604844093323,
-0.20569421350955963,
0.11388370394706726,
-0.08489181101322174,
-0.1547458916902542,
0.3523131012916565,
-0.49091702699661255,
0.06386670470237732,
-0.12608574330806732,
-0.1007661372423172,
-0.03474615886807442,
0.11851052939891815,
-0.15441899001598358,
-0.01787911355495453,
0.12842196226119995,
-0.2224130779504776,
0.07876759022474289,
-0.07382240891456604,
-0.5414636731147766,
0.11569865792989731,
0.06328754872083664,
-0.3731786012649536,
0.050369538366794586,
0.09075023978948593,
0.07631992548704147,
0.26554206013679504,
0.04729010909795761,
0.13054217398166656,
0.14474965631961823,
0.3352888524532318,
0.10103001445531845,
-0.1944216787815094,
0.3914378583431244,
-0.12874287366867065,
0.05414519086480141,
0.19078946113586426,
-0.03120059333741665,
-0.15423743426799774,
-0.2791147232055664,
-0.17434319853782654,
-0.03980119153857231,
0.29938605427742004,
-0.17209753394126892,
0.11420615762472153,
-0.11024658381938934,
-0.21329087018966675,
-0.3585130274295807,
-0.035897254943847656,
-0.1769145280122757,
-0.5306727886199951,
-0.2908896803855896,
-0.12597666680812836,
0.10573422163724899,
0.30680587887763977,
0.10822590440511703,
0.1551923304796219,
0.09262333810329437,
0.0965646430850029,
-0.15419620275497437,
0.45549559593200684,
-0.2244458943605423,
0.06990250200033188,
0.03423984721302986,
0.05055191367864609,
-0.04911622777581215,
0.6051306128501892,
0.28258267045021057,
-0.19610360264778137,
-0.21002717316150665,
-0.13353821635246277,
0.044751375913619995,
0.02805779129266739,
-0.2764395773410797,
0.6539114117622375,
0.31258395314216614,
0.21148954331874847,
-0.3241722285747528,
-0.12671302258968353,
0.3424210846424103,
-0.16223183274269104,
0.019505159929394722,
-0.08339039236307144,
0.2167859971523285,
-0.1330222338438034,
0.25171199440956116,
-0.012123479507863522,
-0.46407321095466614,
-0.09539370983839035,
0.23033694922924042,
-0.03901267424225807,
-0.12469755113124847,
-0.09435529261827469,
0.038383081555366516,
-0.36346685886383057,
-0.00907966773957014,
-0.3386928141117096,
-0.05428104102611542,
-0.505566418170929,
0.050483040511608124,
-0.19021284580230713,
-0.1662491112947464,
0.0919758677482605,
-0.010682997293770313,
-0.29682213068008423,
0.08372097462415695,
0.06976224482059479,
0.5544330477714539,
-0.09501051902770996,
0.09565113484859467,
-0.1617531031370163,
0.16159839928150177,
0.5859104990959167,
-0.25688278675079346,
0.22664774954319,
-0.03403101861476898,
-0.0718517079949379,
-0.09216770529747009,
-0.3189779222011566,
0.2888514995574951,
0.3687152862548828,
0.3478620648384094,
-0.07041555643081665,
0.7969769239425659,
0.06616624444723129,
0.21587036550045013,
-0.07243341952562332,
-0.02644711174070835,
-0.0002843444817699492,
0.05414967238903046,
-0.306551456451416,
0.30968496203422546,
0.4177285432815552,
-0.33272677659988403,
0.375640332698822,
0.17265284061431885,
0.2435273975133896,
-0.005420121364295483,
-0.39246711134910583,
-0.13620734214782715,
-0.1476924568414688,
-0.026719344779849052,
0.10893827676773071,
-0.06086043268442154,
-0.29266348481178284,
-0.10871729999780655,
-0.09691262245178223,
-0.08777791261672974,
-0.3429720997810364,
0.32281047105789185,
0.6068434119224548,
0.04654846340417862,
-0.5338966250419617,
-0.3214605152606964,
-0.36458975076675415,
0.11008790135383606,
0.37045684456825256,
-0.18802909553050995,
-0.05318624526262283,
-0.14042127132415771,
0.49585434794425964,
0.2846364378929138,
0.8806200623512268,
-0.08341704308986664,
-0.1512143760919571,
-0.2613045275211334,
-0.3685556650161743,
-0.1362065225839615,
0.24583439528942108,
-0.16907396912574768,
-0.12737298011779785,
-0.0875457376241684,
0.029491497203707695,
-0.5456348061561584,
-0.38126465678215027,
0.23681284487247467,
0.01628854125738144,
-0.040197260677814484,
-0.1685614436864853,
-0.08155977725982666,
0.17583224177360535,
-0.05460165813565254,
0.12318842113018036,
0.06440101563930511,
0.044566769152879715,
-0.1355678290128708,
0.02182955853641033,
-0.012006344273686409,
-0.2656210660934448,
0.06182560697197914,
-0.12802323698997498,
0.1829463392496109,
0.12339751422405243,
0.07731302082538605,
0.32610175013542175,
0.09461437165737152,
0.24686916172504425,
0.04240880534052849,
-0.09067653119564056,
-0.06036674976348877,
-0.17204712331295013,
0.01058955118060112,
0.44195881485939026,
0.09123530238866806,
0.008301712572574615,
0.079552061855793,
-0.013876290060579777,
0.20055191218852997,
-0.34271812438964844,
-0.36765772104263306,
0.22332674264907837,
-0.16881388425827026,
-0.3760848343372345,
-0.3293674886226654,
0.35208165645599365,
0.07321968674659729,
-0.1938609480857849,
0.5608247518539429,
0.40995103120803833,
-0.05697222426533699,
0.10359486192464828,
0.04061981290578842,
0.7752847671508789,
-0.010372957214713097,
-0.0919959619641304,
0.1127670630812645,
0.22190678119659424,
0.21271440386772156,
0.5584771037101746,
0.2137182056903839,
-0.30807656049728394,
-0.4992983639240265,
-0.2018871158361435,
0.15801085531711578,
0.06382759660482407,
0.1913168579339981,
-0.057268865406513214,
0.18500737845897675,
-0.0547647625207901,
-0.10056021809577942,
-0.3885398507118225,
-0.19395668804645538,
-0.22487986087799072,
-0.0032211386132985353,
-0.14300774037837982,
-0.03366802632808685,
-0.22748824954032898,
0.2590165138244629,
0.05892939865589142,
0.18901611864566803,
-0.06094539165496826,
-0.2277989387512207,
-0.23390808701515198,
-0.0759948268532753,
-0.3006743788719177,
-0.1416204571723938,
0.04319225624203682,
-0.13641327619552612,
0.002610906260088086,
0.3202064037322998,
0.27568691968917847,
0.08584540337324142,
0.01374000497162342,
0.2838687002658844,
-0.09237820655107498,
-0.22399184107780457,
-0.28970104455947876,
0.2096966952085495,
0.019978687167167664,
0.1456449180841446,
-0.416299045085907,
-0.1392611712217331,
0.06845928728580475,
-0.4474934935569763,
-0.8403382301330566,
0.0033900754060596228,
0.1823560893535614,
-0.5605272054672241,
-0.16719728708267212,
-0.16176572442054749,
0.25846996903419495,
-0.02258089743554592,
-0.011090775951743126,
0.13779382407665253,
0.05473540723323822,
0.25623512268066406,
0.19476069509983063,
0.0849728137254715,
-0.26787492632865906,
0.20987555384635925,
0.08784814924001694,
0.4105137288570404,
0.19863291084766388,
0.11490999162197113,
-0.16425390541553497,
-0.19732125103473663,
0.5678091645240784,
0.1755659133195877,
0.09835422039031982,
0.07725408673286438,
0.07832800596952438,
0.32182833552360535,
0.14003874361515045,
0.3459121584892273,
0.09773630648851395,
-0.05918006971478462,
0.1046871542930603,
-0.3396753668785095,
0.0934099480509758,
0.38579481840133667,
0.12441617995500565,
0.3020278811454773,
0.17528794705867767,
0.23732775449752808,
-0.25974491238594055,
0.26163917779922485,
-0.1473517268896103,
0.23379936814308167,
0.26534393429756165,
0.04662027955055237,
0.17077763378620148,
0.3170280456542969,
0.32418814301490784,
0.1005757600069046,
0.016659289598464966,
0.094178207218647,
0.11934850364923477,
0.006749733816832304,
-0.11226236075162888,
0.14227427542209625,
-0.09047108143568039,
-0.02798665687441826,
-0.047350507229566574,
-0.058788929134607315,
-0.18735665082931519,
-0.09229796379804611,
0.1419069468975067,
0.3153979480266571,
0.2707653343677521,
0.08614113926887512,
1.2160909175872803,
0.09394471347332001,
-0.1745876520872116,
0.3296566605567932,
-0.15305568277835846,
0.26532575488090515,
-0.11190823465585709,
-0.05094319209456444,
-0.02973686158657074,
-0.11179440468549728,
-0.18851660192012787,
0.03228281810879707,
0.5101650953292847,
0.015417426824569702,
0.13806292414665222,
0.07369078695774078,
-0.015725377947092056,
0.08045630902051926,
0.24900653958320618,
0.005805423483252525,
0.24029351770877838,
0.26995083689689636,
0.18494902551174164,
0.06728508323431015,
0.009254776872694492,
-0.20495596528053284,
0.09014618396759033,
0.2932853102684021,
0.08051393181085587,
0.5057783126831055,
-0.45187273621559143,
0.2890127897262573,
0.059170015156269073,
-0.07990547269582748,
0.4291380047798157,
-0.18153557181358337,
0.2624656558036804,
0.21342694759368896,
-0.11148450523614883,
-0.3146131634712219,
0.04641050845384598,
0.09685288369655609,
0.1788669228553772,
-0.04788637533783913,
-0.31920862197875977,
0.41518381237983704,
-0.4028058648109436,
-0.06992191076278687,
0.19299012422561646,
-0.19151249527931213,
-0.2740599811077118,
0.42294394969940186,
-0.13458137214183807,
0.10367389023303986,
0.059858836233615875,
0.5918384194374084,
-0.4613358974456787,
0.0373021624982357,
-0.13542647659778595,
0.42744699120521545,
0.2274971306324005,
-0.07888051122426987,
-0.42011573910713196,
-0.2546606957912445,
-0.05462371185421944,
-0.07654087245464325,
0.0722229853272438,
-0.18211117386817932,
0.41131579875946045,
0.08497519046068192,
-0.004829004406929016,
-0.23815032839775085,
-0.0982733741402626,
0.11705143749713898,
0.18219619989395142,
-0.09694749116897583,
0.029395410791039467,
-0.31423240900039673,
-0.08252238482236862,
0.41903844475746155,
-0.01955629512667656,
-0.04951430857181549,
-0.29808309674263,
0.08160077035427094,
-0.19107982516288757,
-0.31405875086784363,
-0.17019805312156677,
0.1534586399793625,
0.2465096414089203,
-0.16682572662830353,
0.11213209480047226,
0.14336542785167694,
0.06453409790992737,
-0.027092263102531433,
-0.08337702602148056,
0.13514678180217743,
0.4787386655807495,
-0.4653785228729248,
0.2377961277961731,
-0.4024115800857544,
0.06491139531135559,
-0.19065523147583008,
-0.08352703601121902,
-0.2828078269958496,
0.4337537884712219,
-0.762252688407898,
-0.3180723786354065,
-0.13218018412590027,
0.1753840297460556,
0.01797400787472725,
-0.09868064522743225,
0.2209618091583252,
0.14979274570941925,
-0.4015919268131256,
-0.11540558189153671,
-0.34282296895980835,
0.18600156903266907,
-0.2979774475097656,
-0.1306391805410385,
-0.038264911621809006,
-0.020551186054944992,
-0.06264098733663559,
0.09335823357105255,
-0.020548319444060326,
-0.037142809480428696,
0.11727652698755264,
-0.04904153570532799,
0.5686763525009155,
0.0801251083612442,
-0.2503059208393097,
-0.32371261715888977,
0.25603699684143066,
0.06511002033948898,
0.02790774591267109,
0.07508747279644012,
0.2733130156993866,
-0.20289529860019684,
-0.10348822921514511,
0.25819236040115356,
-0.032473787665367126,
-0.5140290856361389,
-0.1780577152967453,
0.28741198778152466,
0.061124544590711594,
-0.10795951634645462,
-0.009132043458521366,
0.07125602662563324,
-0.11192826181650162,
-0.37900403141975403,
0.2771795690059662,
0.06659086793661118,
0.6011486649513245,
-0.03424517810344696,
-0.4451889395713806,
-0.24683043360710144,
0.07837992161512375,
-0.10159555077552795,
0.16808821260929108,
0.03009328618645668,
0.22694386541843414,
-0.15311112999916077,
0.027931150048971176,
0.28498995304107666,
0.2729870676994324,
-0.2187115103006363,
0.03700724616646767,
0.3146006762981415,
-0.023903366178274155,
0.42141711711883545,
-0.3195383548736572,
0.05108753964304924,
-0.23416215181350708,
-0.10592075437307358,
0.16150018572807312,
-0.4090161919593811,
0.009146306663751602,
-0.059821438044309616,
0.1622522920370102,
0.15627947449684143,
0.48296186327934265,
0.06942452490329742,
0.33232882618904114,
-0.2731133997440338,
0.10714682936668396,
0.5657520890235901,
0.3125077784061432,
-0.04318958893418312,
0.37012091279029846,
-0.1503659337759018
] |
https://github.com/huggingface/datasets/issues/1747 | datasets slicing with seed | thank you so much
On Mon, Jan 18, 2021 at 3:17 PM Quentin Lhoest <[email protected]>
wrote:
> Hi :)
> The slicing API doesn't shuffle the data.
> You can shuffle and then take a subset of your dataset with
>
> # shuffle and take the first 100 examplesdataset = dataset.shuffle(seed=42).select(range(100))
>
> You can find more information about shuffling and selecting rows in the
> documentation:
> https://huggingface.co/docs/datasets/processing.html#selecting-sorting-shuffling-splitting-rows
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/1747#issuecomment-762278134>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AM3GZM5D5MDPLJGI4IG3UADS2Q7GPANCNFSM4WHLOZJQ>
> .
>
| Hi
I need to slice a dataset with random seed, I looked into documentation here https://huggingface.co/docs/datasets/splits.html
I could not find a seed option, could you assist me please how I can get a slice for different seeds?
thank you.
@lhoestq | 103 | datasets slicing with seed
Hi
I need to slice a dataset with random seed, I looked into documentation here https://huggingface.co/docs/datasets/splits.html
I could not find a seed option, could you assist me please how I can get a slice for different seeds?
thank you.
@lhoestq
thank you so much
On Mon, Jan 18, 2021 at 3:17 PM Quentin Lhoest <[email protected]>
wrote:
> Hi :)
> The slicing API doesn't shuffle the data.
> You can shuffle and then take a subset of your dataset with
>
> # shuffle and take the first 100 examplesdataset = dataset.shuffle(seed=42).select(range(100))
>
> You can find more information about shuffling and selecting rows in the
> documentation:
> https://huggingface.co/docs/datasets/processing.html#selecting-sorting-shuffling-splitting-rows
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/1747#issuecomment-762278134>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AM3GZM5D5MDPLJGI4IG3UADS2Q7GPANCNFSM4WHLOZJQ>
> .
>
| [
-0.024270525202155113,
-0.5800485014915466,
-0.10250262916088104,
0.09017663449048996,
0.33373308181762695,
-0.031354378908872604,
0.08624307066202164,
0.0778433233499527,
-0.15559057891368866,
0.6615407466888428,
-0.035780467092990875,
0.1159350574016571,
-0.1422753483057022,
0.6808797121047974,
0.13325785100460052,
-0.3228479027748108,
0.0889166072010994,
-0.19759374856948853,
0.25407156348228455,
-0.149235337972641,
-0.08098870515823364,
-0.0049859811551868916,
-0.18722262978553772,
-0.13874900341033936,
-0.29123759269714355,
-0.25599998235702515,
-0.17107036709785461,
0.22264881432056427,
-0.14194753766059875,
-0.00955943949520588,
0.07384106516838074,
0.05761810019612312,
0.20524124801158905,
0.158816859126091,
-0.00011813899618573487,
-0.13910478353500366,
0.025798216462135315,
0.03769419342279434,
0.017953434959053993,
-0.05293408781290054,
-0.2801007032394409,
0.36964190006256104,
-0.1711483597755432,
-0.10281485319137573,
-0.4033961594104767,
0.03928404301404953,
0.11335583031177521,
-0.20766621828079224,
0.014694254845380783,
-0.19156381487846375,
0.09851770848035812,
0.050630923360586166,
0.02848413959145546,
-0.1905967742204666,
0.2813757359981537,
0.6558921933174133,
-0.0894707664847374,
-0.11638963967561722,
0.06313171237707138,
0.5073190331459045,
0.22693553566932678,
0.00023891055025160313,
0.1760694533586502,
0.17143233120441437,
0.033467162400484085,
0.09561634808778763,
-0.3726252615451813,
-0.43603065609931946,
0.050883710384368896,
0.45263081789016724,
0.4963742196559906,
0.10732407122850418,
-0.31822216510772705,
-0.19370321929454803,
-0.0015615030424669385,
-0.2984306216239929,
-0.2344823181629181,
0.5080899000167847,
-0.11298134177923203,
-0.02077365294098854,
-0.03424904868006706,
0.023994820192456245,
-0.10833155363798141,
0.09608679264783859,
0.3298545181751251,
0.4552758038043976,
-0.12645015120506287,
0.14009496569633484,
0.4577620327472687,
-0.08610612154006958,
-0.09095165878534317,
0.059952106326818466,
-0.1416308432817459,
0.2137378305196762,
-0.03882356733083725,
-0.23716385662555695,
-0.349930077791214,
0.7325921654701233,
0.5226101875305176,
0.13432690501213074,
-0.11521536856889725,
0.1385989487171173,
-0.07510842382907867,
-0.12471485137939453,
0.3147115707397461,
-0.3212527334690094,
0.18678408861160278,
0.29149889945983887,
-0.02776704914867878,
-0.07674665749073029,
0.15103726089000702,
0.03501630946993828,
0.1655571162700653,
0.1850874423980713,
-0.3834688067436218,
-0.19948090612888336,
-0.08577077090740204,
-0.014803498052060604,
-0.0018438338302075863,
-0.584265947341919,
-0.1403474509716034,
-0.3088257610797882,
-0.019821705296635628,
0.1910836100578308,
0.0417000874876976,
-0.40407299995422363,
-0.29728928208351135,
-0.001822015387006104,
-0.10559350997209549,
-0.41996732354164124,
-0.3290484547615051,
0.10518206655979156,
0.015804745256900787,
0.11100418865680695,
-0.07129821181297302,
-0.3014402389526367,
0.17241603136062622,
0.1104671061038971,
0.15354406833648682,
0.002802233211696148,
-0.4736948311328888,
0.23480357229709625,
-0.13547411561012268,
0.1330883502960205,
0.11706727743148804,
-0.12575578689575195,
0.10663095861673355,
0.13077914714813232,
-0.10339175909757614,
-0.03940071165561676,
-0.13143055140972137,
-0.06521636992692947,
0.12417780607938766,
0.012737256474792957,
0.06953686475753784,
0.0033156045246869326,
-0.487354576587677,
0.3118915259838104,
-0.2089270055294037,
0.047704458236694336,
-0.07737661153078079,
0.31507429480552673,
-0.34177276492118835,
-0.21469756960868835,
0.3613390624523163,
0.013794386759400368,
-0.24277961254119873,
-0.35677775740623474,
0.029071424156427383,
0.029607342556118965,
0.3583237826824188,
0.35382863879203796,
-0.13593187928199768,
-0.23123936355113983,
-0.16698533296585083,
0.39936363697052,
0.008051065728068352,
0.3812057375907898,
-0.14863212406635284,
0.13419637084007263,
-0.10414271056652069,
-0.16679224371910095,
0.19735446572303772,
0.11767414957284927,
0.15747174620628357,
-0.009929940104484558,
-0.07796074450016022,
0.05083303898572922,
-0.39681005477905273,
0.048962853848934174,
-0.16580213606357574,
-0.2540094256401062,
0.05541164427995682,
0.2026691883802414,
0.034366216510534286,
-0.09205012768507004,
0.29640743136405945,
-0.21918797492980957,
0.4803548753261566,
0.040029484778642654,
0.1040017381310463,
0.042370282113552094,
0.15169668197631836,
0.24548886716365814,
0.037870854139328,
-0.28932201862335205,
-0.15093563497066498,
0.07310166954994202,
0.0028935198206454515,
-0.015661755576729774,
0.20783749222755432,
-0.29375025629997253,
-0.06101088970899582,
-0.029858987778425217,
0.057158540934324265,
-0.045608483254909515,
-0.05139753222465515,
0.000022046328012947924,
0.48711198568344116,
0.10235855728387833,
-0.12338845431804657,
-0.03751862049102783,
-0.16147489845752716,
0.0974079892039299,
-0.7664040327072144,
0.3914410471916199,
0.038875121623277664,
-0.22324679791927338,
0.07569533586502075,
-0.034488968551158905,
0.06207221373915672,
-0.11025141924619675,
0.05923277512192726,
0.36259424686431885,
0.224777951836586,
-0.017806928604841232,
0.1429629921913147,
0.1382005661725998,
0.25444990396499634,
-0.15797901153564453,
0.007788701448589563,
-0.29793307185173035,
0.10911550372838974,
-0.05851588398218155,
-0.22370804846286774,
0.33078533411026,
-0.42196422815322876,
0.01523425243794918,
-0.12382456660270691,
-0.10870670527219772,
-0.014563876204192638,
0.08680369704961777,
-0.1273789405822754,
-0.06578066200017929,
0.16468866169452667,
-0.2167828530073166,
0.056832205504179,
-0.04962531477212906,
-0.5082012414932251,
0.20451290905475616,
0.11525792628526688,
-0.31405916810035706,
-0.027163540944457054,
0.059923067688941956,
0.08683177083730698,
0.23231247067451477,
0.05782347917556763,
0.13669608533382416,
0.13894802331924438,
0.38093674182891846,
0.1306704431772232,
-0.27102401852607727,
0.39542171359062195,
-0.1604272723197937,
0.06312564015388489,
0.15739396214485168,
0.046362508088350296,
-0.15127670764923096,
-0.23652826249599457,
-0.1928136944770813,
-0.12253180891275406,
0.2646406888961792,
-0.08715864270925522,
0.12770722806453705,
-0.0990573912858963,
-0.26762840151786804,
-0.4211467504501343,
-0.012832489795982838,
-0.14350727200508118,
-0.46766236424446106,
-0.25518983602523804,
-0.12882408499717712,
0.11967145651578903,
0.35708552598953247,
0.058484021574258804,
0.1540052890777588,
0.11720525473356247,
0.10353182256221771,
-0.19245751202106476,
0.48562556505203247,
-0.3060837686061859,
0.09565180540084839,
0.015923399478197098,
0.10823310911655426,
0.005215690936893225,
0.5828412771224976,
0.2883780598640442,
-0.1631917804479599,
-0.2167946696281433,
-0.15148954093456268,
-0.03171871230006218,
0.0742448940873146,
-0.2648356556892395,
0.6869401931762695,
0.2674887478351593,
0.1740371584892273,
-0.3678112328052521,
-0.12607580423355103,
0.2882693111896515,
-0.18119482696056366,
-0.025333326309919357,
-0.11454091221094131,
0.19080887734889984,
-0.12816260755062103,
0.2003382295370102,
-0.08379704505205154,
-0.37598246335983276,
-0.10471506416797638,
0.2560345232486725,
-0.09707760065793991,
-0.14021188020706177,
-0.02185310609638691,
0.03142799437046051,
-0.3185786008834839,
-0.044651731848716736,
-0.37882211804389954,
-0.13898234069347382,
-0.5120394229888916,
0.03177523985505104,
-0.24713532626628876,
-0.21915020048618317,
0.09380652010440826,
-0.009917176328599453,
-0.2453133761882782,
0.07941331714391708,
0.07800871133804321,
0.5433705449104309,
-0.03631339222192764,
0.12346934527158737,
-0.11150018870830536,
0.013857700861990452,
0.6331729292869568,
-0.3010634481906891,
0.1640506088733673,
-0.03991401195526123,
-0.12218774855136871,
-0.05170416831970215,
-0.28367099165916443,
0.30461713671684265,
0.32748737931251526,
0.31233522295951843,
-0.04515659064054489,
0.7688197493553162,
0.03233572840690613,
0.2276029884815216,
-0.05857720971107483,
-0.05264519527554512,
0.018153782933950424,
0.04969324916601181,
-0.2660486102104187,
0.394656240940094,
0.3597622811794281,
-0.3642844259738922,
0.3904455006122589,
0.1737832874059677,
0.18335619568824768,
0.052908755838871,
-0.3258436918258667,
-0.15483257174491882,
-0.17759187519550323,
0.0076402779668569565,
0.12336558103561401,
-0.1138254702091217,
-0.1910022497177124,
-0.10768114775419235,
-0.08728941529989243,
-0.0686335414648056,
-0.3474593758583069,
0.2767554223537445,
0.6086891293525696,
0.03530851751565933,
-0.5521411299705505,
-0.2775801420211792,
-0.41090071201324463,
0.09258291125297546,
0.36127156019210815,
-0.14485269784927368,
-0.13160869479179382,
-0.08996905386447906,
0.4575629234313965,
0.2928397059440613,
0.9118695855140686,
-0.048040617257356644,
-0.07646255195140839,
-0.26780328154563904,
-0.33676648139953613,
-0.06988050043582916,
0.2615613043308258,
-0.16753855347633362,
-0.16044068336486816,
-0.09778302907943726,
0.008009676821529865,
-0.562923789024353,
-0.3688332438468933,
0.22347529232501984,
-0.0423944853246212,
-0.01194036565721035,
-0.16463375091552734,
-0.03759763762354851,
0.13036151230335236,
-0.08185525983572006,
0.11484140157699585,
0.09972691535949707,
0.11949238926172256,
-0.13513492047786713,
-0.009296305477619171,
0.01609976775944233,
-0.30691275000572205,
0.054706934839487076,
-0.16157284379005432,
0.19884739816188812,
0.17034821212291718,
0.0921560525894165,
0.31747281551361084,
0.08637870848178864,
0.30737099051475525,
0.035033512860536575,
0.01056539174169302,
-0.03558100759983063,
-0.1031765267252922,
-0.08274829387664795,
0.4001295268535614,
0.11283421516418457,
-0.020663607865571976,
0.05765501782298088,
0.031364984810352325,
0.17609131336212158,
-0.30592092871665955,
-0.3526526093482971,
0.22568470239639282,
-0.20405273139476776,
-0.36642932891845703,
-0.23558737337589264,
0.33170047402381897,
0.11746345460414886,
-0.1695297807455063,
0.5695176124572754,
0.38595521450042725,
-0.04991896450519562,
0.038243427872657776,
0.09243113547563553,
0.7290908098220825,
0.029432576149702072,
-0.13819323480129242,
0.1464162915945053,
0.25817635655403137,
0.2535158693790436,
0.5658343434333801,
0.26633667945861816,
-0.3213185667991638,
-0.5609056353569031,
-0.1801815629005432,
0.19454383850097656,
0.07013765722513199,
0.28834962844848633,
-0.029965857043862343,
0.10478436946868896,
0.08623526245355606,
-0.03199122101068497,
-0.30922436714172363,
-0.21462976932525635,
-0.24653410911560059,
-0.07684296369552612,
-0.15477390587329865,
0.02055192179977894,
-0.20519353449344635,
0.19904732704162598,
0.04733983054757118,
0.127119243144989,
-0.08263547718524933,
-0.2482585608959198,
-0.22052453458309174,
-0.03954193741083145,
-0.32709309458732605,
-0.1997731328010559,
0.04936017096042633,
-0.09381796419620514,
-0.017334340140223503,
0.2839570939540863,
0.25388386845588684,
0.10050226747989655,
-0.04612578824162483,
0.2969198226928711,
-0.18704728782176971,
-0.22147011756896973,
-0.30227407813072205,
0.1434091031551361,
0.023875217884778976,
0.09391742199659348,
-0.3886089026927948,
-0.2284819334745407,
0.05192885175347328,
-0.44028714299201965,
-0.7552899718284607,
-0.034323494881391525,
0.15602220594882965,
-0.49874886870384216,
-0.15972821414470673,
-0.17542864382266998,
0.20331618189811707,
-0.05858765169978142,
0.017104484140872955,
0.1049090176820755,
0.05874516814947128,
0.1825893372297287,
0.2684275507926941,
0.14313487708568573,
-0.27123627066612244,
0.2703588604927063,
0.08826681971549988,
0.44584470987319946,
0.16895511746406555,
0.14855940639972687,
-0.1471714973449707,
-0.21888870000839233,
0.5108020901679993,
0.18869048357009888,
0.012151351198554039,
0.05190515145659447,
0.1168077290058136,
0.29323774576187134,
0.15330125391483307,
0.3414400815963745,
0.07364929467439651,
-0.06611017882823944,
0.09010116755962372,
-0.38650503754615784,
0.070778988301754,
0.4137650430202484,
0.0008951013442128897,
0.30829834938049316,
0.18294645845890045,
0.2645629346370697,
-0.24610374867916107,
0.2580797076225281,
-0.19617663323879242,
0.20953331887722015,
0.20557132363319397,
0.010488136671483517,
0.15571162104606628,
0.26580873131752014,
0.3691785931587219,
0.05341615527868271,
0.053871266543865204,
0.2029087245464325,
0.08688586950302124,
-0.04156924784183502,
-0.08165628463029861,
0.1096634715795517,
-0.09309487044811249,
0.08008293062448502,
-0.014889735728502274,
-0.011803094297647476,
-0.23030036687850952,
-0.07525168359279633,
0.189768984913826,
0.2808617949485779,
0.25094664096832275,
0.029843240976333618,
1.1711046695709229,
0.17386983335018158,
-0.1717868596315384,
0.3409663140773773,
-0.11597202718257904,
0.2363988757133484,
-0.1439262181520462,
-0.05273004248738289,
-0.10908406972885132,
-0.10645822435617447,
-0.1660861074924469,
0.004481198266148567,
0.43579035997390747,
0.05570511147379875,
0.1303507685661316,
0.05453935265541077,
-0.08734124153852463,
0.10374373197555542,
0.21036601066589355,
-0.057284291833639145,
0.2755919098854065,
0.25766614079475403,
0.11252837628126144,
0.11592274904251099,
0.0014914388302713633,
-0.16738371551036835,
0.09194610267877579,
0.2776229679584503,
0.0923941358923912,
0.4643511474132538,
-0.4044196605682373,
0.24890832602977753,
0.12182101607322693,
-0.04403669759631157,
0.4120548367500305,
-0.16482926905155182,
0.2424532026052475,
0.19357062876224518,
-0.16345451772212982,
-0.2682671546936035,
0.11224348843097687,
0.048280149698257446,
0.1798919290304184,
-0.016313746571540833,
-0.342521607875824,
0.4168279469013214,
-0.41916424036026,
0.003834429895505309,
0.20484235882759094,
-0.2509159445762634,
-0.22128352522850037,
0.4851026237010956,
-0.10650881379842758,
0.10068941116333008,
0.03953559696674347,
0.5624910593032837,
-0.40883153676986694,
0.05379321426153183,
-0.16283045709133148,
0.38419604301452637,
0.17373469471931458,
-0.05783851817250252,
-0.4703173041343689,
-0.2601882517337799,
-0.035605598241090775,
-0.08077053725719452,
0.04479037970304489,
-0.1512199342250824,
0.40771371126174927,
0.022788191214203835,
-0.07480273395776749,
-0.25021040439605713,
-0.1570412665605545,
0.1276264786720276,
0.12964403629302979,
-0.0733405351638794,
0.06844636052846909,
-0.3397678732872009,
-0.0903368890285492,
0.42006057500839233,
-0.00904839951545,
-0.04511911794543266,
-0.3887082636356354,
0.20302359759807587,
-0.24169372022151947,
-0.29774245619773865,
-0.1950836032629013,
0.14291532337665558,
0.2987176775932312,
-0.13672621548175812,
0.05605921521782875,
0.16783593595027924,
0.11766296625137329,
-0.050457775592803955,
-0.0840737596154213,
0.155587837100029,
0.5019217133522034,
-0.4701642096042633,
0.17065364122390747,
-0.36872318387031555,
0.0971892923116684,
-0.18856462836265564,
-0.0868103951215744,
-0.21281510591506958,
0.404772013425827,
-0.7692505121231079,
-0.3894667327404022,
-0.11744287610054016,
0.16123592853546143,
0.04905088245868683,
-0.12579023838043213,
0.24927058815956116,
0.11202099919319153,
-0.48366326093673706,
-0.11409614980220795,
-0.33215051889419556,
0.1894540637731552,
-0.23856118321418762,
-0.10815346240997314,
0.051778584718704224,
-0.0050428686663508415,
-0.0495230108499527,
0.15523168444633484,
-0.047309719026088715,
-0.05762911215424538,
0.07684414833784103,
-0.0536826029419899,
0.5405692458152771,
0.016732046380639076,
-0.237833634018898,
-0.2922278642654419,
0.20264117419719696,
0.08324818313121796,
0.029257897287607193,
0.14036071300506592,
0.305779367685318,
-0.16531236469745636,
-0.13859491050243378,
0.29694250226020813,
-0.0595100000500679,
-0.5467321276664734,
-0.16434423625469208,
0.33741748332977295,
0.013829628936946392,
-0.14121167361736298,
-0.047776855528354645,
-0.005281907971948385,
-0.11055874079465866,
-0.35986045002937317,
0.25654274225234985,
0.0893586203455925,
0.6455034017562866,
-0.013388662599027157,
-0.4323682487010956,
-0.22703807055950165,
0.055531419813632965,
-0.06812670081853867,
0.2774098217487335,
-0.03897930309176445,
0.30337637662887573,
-0.1828288733959198,
0.03226299583911896,
0.28028786182403564,
0.2584703266620636,
-0.18282043933868408,
0.02367255836725235,
0.3140504062175751,
-0.09186875075101852,
0.4399702250957489,
-0.29994285106658936,
0.11694563925266266,
-0.20758558809757233,
-0.11335185170173645,
0.17664258182048798,
-0.443157821893692,
0.0033016607630997896,
-0.03139470890164375,
0.14496976137161255,
0.1314011663198471,
0.5045567154884338,
0.07957242429256439,
0.28058478236198425,
-0.2539167106151581,
0.10616590082645416,
0.5807647705078125,
0.3482681214809418,
-0.09091756492853165,
0.37472695112228394,
-0.1533646285533905
] |
https://github.com/huggingface/datasets/issues/1745 | difference between wsc and wsc.fixed for superglue | From the description given in the dataset script for `wsc.fixed`:
```
This version fixes issues where the spans are not actually substrings of the text.
``` | Hi
I see two versions of wsc in superglue, and I am not sure what is the differences and which one is the original one. could you help to discuss the differences? thanks @lhoestq | 26 | difference between wsc and wsc.fixed for superglue
Hi
I see two versions of wsc in superglue, and I am not sure what is the differences and which one is the original one. could you help to discuss the differences? thanks @lhoestq
From the description given in the dataset script for `wsc.fixed`:
```
This version fixes issues where the spans are not actually substrings of the text.
``` | [
-0.11650468409061432,
-0.44388726353645325,
0.042613670229911804,
-0.3368445932865143,
-0.060285117477178574,
-0.382475882768631,
0.41768980026245117,
-0.25194087624549866,
-0.10315018147230148,
0.05448618903756142,
0.19692428410053253,
-0.14669671654701233,
0.10971884429454803,
0.19315892457962036,
0.09836103767156601,
-0.2450370192527771,
0.3370179235935211,
-0.029704846441745758,
0.21839071810245514,
-0.09730158746242523,
-0.28827613592147827,
-0.066079281270504,
-0.46901270747184753,
-0.012936620973050594,
-0.6201685667037964,
-0.04052523896098137,
-0.04617563635110855,
-0.020975086838006973,
-0.20244701206684113,
-0.25185689330101013,
0.574929416179657,
0.33910444378852844,
0.37385058403015137,
-0.03979451581835747,
-0.00011580879072425887,
-0.19982187449932098,
0.5318863391876221,
0.07987713068723679,
0.3641515076160431,
0.40482279658317566,
-0.44085755944252014,
-0.4927157163619995,
-0.0975276306271553,
-0.08588650077581406,
0.16817933320999146,
0.24931223690509796,
-0.16763971745967865,
-0.34789803624153137,
0.1804484724998474,
-0.19443203508853912,
0.1312807947397232,
-0.02280968241393566,
0.013767988421022892,
-0.1547960340976715,
-0.008353366516530514,
-0.22383542358875275,
-0.1393194943666458,
0.26980265974998474,
0.31939074397087097,
0.04272214695811272,
0.19246600568294525,
0.45805785059928894,
-0.2261027991771698,
-0.0896211788058281,
0.15914078056812286,
0.011836358346045017,
-0.5829805731773376,
-0.027051735669374466,
0.06131761893630028,
0.40815678238868713,
0.4068087637424469,
0.025167156010866165,
-0.4480764865875244,
-0.05242851749062538,
-0.03329349681735039,
0.11668732762336731,
0.1952298879623413,
0.321877121925354,
0.32271865010261536,
0.16193415224552155,
-0.4081542491912842,
-0.024021927267313004,
0.14078916609287262,
-0.41497549414634705,
-0.3853111267089844,
0.3058302402496338,
-0.12305288761854172,
0.28910183906555176,
-0.12233590334653854,
0.07708106189966202,
0.24885110557079315,
-0.0006773022469133139,
-0.16619525849819183,
-0.030021561309695244,
-0.4951642155647278,
-0.2110801637172699,
-0.21712350845336914,
0.2030080258846283,
-0.1595701426267624,
0.26857998967170715,
0.14536136388778687,
0.05403801053762436,
0.17270882427692413,
-0.07467800378799438,
-0.08765580505132675,
0.18904666602611542,
0.08041568100452423,
-0.07152212411165237,
0.16650062799453735,
-0.12435448914766312,
-0.24513159692287445,
0.06171400472521782,
0.4321228563785553,
-0.34419047832489014,
-0.23330606520175934,
-0.05500807613134384,
0.3404219150543213,
-0.11668752133846283,
-0.2876284420490265,
0.18181045353412628,
-0.0015118599403649569,
-0.46947285532951355,
-0.037202198058366776,
0.21170170605182648,
0.0783710926771164,
0.2736048996448517,
-0.015857983380556107,
0.2528204619884491,
-0.046746399253606796,
-0.22086945176124573,
-0.1682070642709732,
0.027532212436199188,
0.0647713765501976,
0.21101976931095123,
-0.12169729173183441,
-0.4539432227611542,
-0.033943187445402145,
0.45546865463256836,
-0.5253100991249084,
-0.1398455947637558,
-0.4471266567707062,
-0.17492230236530304,
0.023841101676225662,
-0.14584441483020782,
-0.23428009450435638,
0.1647828221321106,
-0.06497471779584885,
0.09672922641038895,
0.08237222582101822,
0.08464667946100235,
-0.059970673173666,
-0.0825933888554573,
-0.18080739676952362,
0.08687180280685425,
-0.09789454936981201,
-0.2788572907447815,
0.48344138264656067,
0.25467801094055176,
-0.153785839676857,
0.08867344260215759,
0.21532726287841797,
-0.0972265675663948,
-0.108255535364151,
-0.21270862221717834,
0.04790253937244415,
0.12309447675943375,
-0.6595558524131775,
-0.018003329634666443,
0.17971469461917877,
-0.07619618624448776,
0.3189200758934021,
0.09765563905239105,
0.13469797372817993,
-0.2406015694141388,
-0.05222791060805321,
0.2427651435136795,
-0.007021501660346985,
0.07709950953722,
-0.5214036703109741,
0.23092788457870483,
0.4672338366508484,
0.0627569779753685,
0.07588935643434525,
0.026851391419768333,
0.2087685614824295,
-0.0016146613052114844,
-0.33220523595809937,
-0.2706947326660156,
-0.07216591387987137,
-0.22265435755252838,
-0.28672486543655396,
0.00910154264420271,
0.2818877100944519,
-0.15193086862564087,
0.013629374094307423,
0.016074299812316895,
0.06333775818347931,
-0.002710372908040881,
0.23296821117401123,
0.1287260502576828,
0.015028277412056923,
-0.12698794901371002,
-0.06846430897712708,
0.15414637327194214,
-0.04695318266749382,
-0.3897002935409546,
-0.3581693768501282,
-0.10798116028308868,
-0.29213279485702515,
-0.04662686958909035,
0.27707651257514954,
-0.06087131053209305,
-0.05954894423484802,
0.1147935763001442,
0.2504434883594513,
-0.19759485125541687,
-0.01491743978112936,
0.1125037893652916,
-0.02620125189423561,
-0.4090227484703064,
-0.41729387640953064,
0.03712398558855057,
-0.2061024159193039,
0.10918209701776505,
0.2301715463399887,
0.27167177200317383,
-0.08247572928667068,
-0.3303680419921875,
0.15881961584091187,
0.32815951108932495,
0.19956111907958984,
0.13265609741210938,
-0.2715259790420532,
0.6245145797729492,
-0.3346571624279022,
0.20807461440563202,
-0.1988590955734253,
-0.1412714719772339,
0.1792336106300354,
-0.5478562116622925,
0.3255383372306824,
0.11015326529741287,
0.17265939712524414,
-0.0353354774415493,
-0.28059330582618713,
0.2657680809497833,
0.1534329652786255,
-0.04803378880023956,
-0.0009917068528011441,
-0.05496784299612045,
-0.049255114048719406,
-0.2937420606613159,
-0.05473006144165993,
-0.06953229010105133,
-0.05774645879864693,
-0.014912213198840618,
0.2772338092327118,
0.06309419125318527,
-0.5504788160324097,
0.14911065995693207,
0.7143085598945618,
-0.27406802773475647,
0.04351218417286873,
0.16542941331863403,
-0.3776516318321228,
-0.24860414862632751,
-0.13946406543254852,
0.2809595763683319,
0.30685266852378845,
0.013718822970986366,
0.05690866336226463,
0.02767128497362137,
-0.018871674314141273,
-0.09252263605594635,
0.4488796591758728,
-0.17776289582252502,
-0.46825799345970154,
-0.06999471038579941,
-0.15013480186462402,
0.04505162313580513,
0.025217808783054352,
0.33414316177368164,
-0.5453562140464783,
-0.20401474833488464,
0.08251959830522537,
-0.44827136397361755,
-0.32981076836586,
-0.1052338257431984,
-0.44540631771087646,
-0.06355025619268417,
-0.27899155020713806,
-0.08947870880365372,
-0.13123854994773865,
-0.4173157513141632,
-0.1389557272195816,
0.26626598834991455,
-0.06603233516216278,
0.570205807685852,
-0.2510116696357727,
0.7024795413017273,
-0.24716579914093018,
0.0324251763522625,
-0.23562975227832794,
0.041777145117521286,
-0.043781790882349014,
-0.15812800824642181,
-0.07230743765830994,
0.12605641782283783,
0.35125014185905457,
-0.16403907537460327,
-0.30564701557159424,
0.026242678984999657,
-0.01773335225880146,
0.1230626031756401,
0.34807881712913513,
0.1450386792421341,
0.11193277686834335,
-0.12250349670648575,
0.10850227624177933,
-0.5787020325660706,
0.3448263704776764,
-0.22227253019809723,
0.2646607458591461,
0.07965009659528732,
-0.019484562799334526,
-0.2624855935573578,
-0.25680774450302124,
-0.12455499172210693,
-0.11764310300350189,
-0.32664239406585693,
-0.10796583443880081,
-0.16182968020439148,
-0.16266240179538727,
0.021960465237498283,
0.40687358379364014,
0.12685808539390564,
-0.11895344406366348,
-0.3631407916545868,
0.26634442806243896,
0.20022226870059967,
-0.32144027948379517,
0.03245355933904648,
-0.23886777460575104,
-0.2139357030391693,
-0.2120586633682251,
-0.050197478383779526,
0.3093804717063904,
-0.3111264705657959,
-0.41039779782295227,
0.32224276661872864,
0.27006441354751587,
0.26283708214759827,
-0.11621147394180298,
-0.07049109041690826,
-0.35374751687049866,
-0.3785715103149414,
-0.2535000741481781,
-0.09694571048021317,
0.2145972102880478,
0.3455376923084259,
-0.09148421883583069,
-0.04527951776981354,
0.11817256361246109,
0.20312245190143585,
0.052239805459976196,
0.26943591237068176,
0.3256169557571411,
-0.14114923775196075,
0.091158427298069,
-0.10265963524580002,
0.32403048872947693,
-0.06135370954871178,
0.34146809577941895,
0.33434349298477173,
0.25046220421791077,
0.2113296240568161,
0.32873740792274475,
0.07305653393268585,
-0.23650486767292023,
-0.04128630831837654,
-0.2008495181798935,
0.18370582163333893,
0.11386816948652267,
0.11859210580587387,
0.11399823427200317,
0.19170919060707092,
0.03203292936086655,
0.08973664790391922,
0.3430531620979309,
0.3720322251319885,
-0.15096989274024963,
-0.5998122096061707,
-0.001466710353270173,
-0.051022183150053024,
0.5443958640098572,
0.16764703392982483,
0.15147535502910614,
0.12542909383773804,
-0.20223480463027954,
-0.0010718798730522394,
0.07421470433473587,
0.28958186507225037,
-0.29466304183006287,
-0.2194705456495285,
-0.2821369767189026,
0.14963310956954956,
-0.13764497637748718,
-0.3736903965473175,
0.07859823852777481,
-0.0116495406255126,
0.30059608817100525,
0.019900888204574585,
0.16654451191425323,
-0.09052038192749023,
0.37129583954811096,
0.09891979396343231,
-0.2228337526321411,
-0.10651589930057526,
0.12002003937959671,
-0.1837933212518692,
0.23338183760643005,
-0.16394369304180145,
-0.3374066650867462,
0.1049896776676178,
-0.14252875745296478,
-0.01962941139936447,
-0.4854218661785126,
-0.16210752725601196,
0.14482919871807098,
-0.07154390215873718,
0.46436789631843567,
-0.074764683842659,
-0.13231949508190155,
-0.041754767298698425,
0.31513896584510803,
-0.19647224247455597,
0.3328538239002228,
-0.041521042585372925,
0.12772057950496674,
0.05660143494606018,
-0.14745104312896729,
0.3766089975833893,
0.07272442430257797,
-0.05168084427714348,
0.09497641772031784,
0.2785259485244751,
0.06651046127080917,
-0.7334275245666504,
-0.11425583064556122,
0.015276972204446793,
0.36762672662734985,
-0.4343624413013458,
-0.49319976568222046,
0.4126245975494385,
0.2666192054748535,
-0.13805386424064636,
0.07345490902662277,
0.22093269228935242,
-0.04914635047316551,
0.20813998579978943,
0.05057263374328613,
0.9365338087081909,
0.19806914031505585,
-0.2469336837530136,
-0.10196205228567123,
-0.27418404817581177,
0.3697303533554077,
0.04059543460607529,
0.04322035238146782,
-0.30024459958076477,
-0.44807907938957214,
-0.08526955544948578,
-0.14265163242816925,
0.15085984766483307,
-0.0020696870051324368,
-0.38916435837745667,
0.2941820025444031,
0.22018420696258545,
0.14182691276073456,
0.0852307453751564,
0.032553430646657944,
-0.06982632726430893,
0.21768437325954437,
0.36136162281036377,
0.04496942460536957,
-0.0370149090886116,
-0.05523926019668579,
-0.15629802644252777,
0.18876847624778748,
0.2473214715719223,
-0.3652152419090271,
-0.5746685266494751,
0.025322407484054565,
-0.023266253992915154,
-0.2587084472179413,
0.3016464412212372,
-0.32515859603881836,
0.3217349946498871,
0.3093060553073883,
0.14264707267284393,
-0.03707193210721016,
0.09894527494907379,
0.20274017751216888,
0.07560953497886658,
0.48271986842155457,
0.13813993334770203,
0.2285454422235489,
0.14223556220531464,
0.040242843329906464,
-0.17787602543830872,
-0.14074115455150604,
-0.11741523444652557,
-0.11117648333311081,
-0.3783491551876068,
0.15051648020744324,
0.027444545179605484,
-0.3826552927494049,
0.09169544279575348,
0.06963691115379333,
0.462821900844574,
-0.3492791950702667,
0.0851811096072197,
-0.17075252532958984,
0.1437138468027115,
0.3847946226596832,
-0.032468147575855255,
-0.18171514570713043,
-0.13885407149791718,
0.012784477323293686,
0.27968353033065796,
0.006539010908454657,
-0.01108414214104414,
0.13399487733840942,
-0.27595725655555725,
-0.1533312052488327,
-0.0854334831237793,
-0.15200039744377136,
-0.21813124418258667,
0.17884820699691772,
-0.30363351106643677,
-0.13109193742275238,
0.14935705065727234,
0.2421170175075531,
0.013480267487466335,
0.45983996987342834,
-0.2012215405702591,
-0.07954955101013184,
-0.25251269340515137,
-0.12916551530361176,
0.04688875377178192,
0.380741149187088,
-0.14648494124412537,
0.07731278240680695,
0.14584647119045258,
0.4178493022918701,
-0.2300199270248413,
0.10930696874856949,
0.08912763744592667,
-0.038193296641111374,
-0.2304639369249344,
0.14138099551200867,
-0.061419449746608734,
-0.01600366085767746,
0.04631209000945091,
0.15187136828899384,
0.16522514820098877,
-0.11437910795211792,
-0.06022744998335838,
0.15498976409435272,
-0.043123818933963776,
-0.43618184328079224,
-0.05797731131315231,
0.31599700450897217,
0.5292282700538635,
-0.017957035452127457,
0.1852383017539978,
0.1282753199338913,
0.057670265436172485,
0.41693344712257385,
-0.04820668324828148,
0.08802491426467896,
-0.26388007402420044,
0.05226822942495346,
-0.04354100301861763,
0.748737096786499,
-0.0017941767582669854,
0.19360888004302979,
0.22789837419986725,
-0.031666189432144165,
0.10522694885730743,
0.07799913734197617,
0.2765851616859436,
0.30184292793273926,
-0.01595737412571907,
0.03179550915956497,
-0.0017222696915268898,
-0.01216818019747734,
0.304569274187088,
0.05129756033420563,
-0.026431577280163765,
-0.1751222461462021,
-0.05879810079932213,
0.19524069130420685,
-0.11606939136981964,
0.11368261277675629,
0.06599798798561096,
-0.0015758610097691417,
-0.03876834362745285,
0.12218097597360611,
0.2216411679983139,
-0.04622108116745949,
-0.25875890254974365,
-0.07789651304483414,
0.8659677505493164,
-0.06548526138067245,
0.4197646677494049,
0.28048384189605713,
0.23668591678142548,
0.005081328563392162,
0.3150867223739624,
-0.17646579444408417,
-0.14081326127052307,
-0.007936617359519005,
0.32370734214782715,
0.16732022166252136,
0.2659125328063965,
0.19550897181034088,
0.15135560929775238,
0.016841989010572433,
-0.0060145240277051926,
0.3988687992095947,
-0.43640080094337463,
0.04410290718078613,
-0.047186993062496185,
0.04666866734623909,
-0.08007916808128357,
-0.3324156403541565,
0.08831879496574402,
0.11278249323368073,
-0.0003434978425502777,
-0.6063639521598816,
-0.20232467353343964,
-0.08307534456253052,
0.08239009231328964,
0.14363467693328857,
0.01923076994717121,
0.2930009365081787,
0.39537563920021057,
-0.11282229423522949,
0.0609159953892231,
0.061828114092350006,
0.12190660089254379,
-0.03338184207677841,
0.18901196122169495,
-0.10182962566614151,
0.08951052278280258,
0.40697962045669556,
0.51087886095047,
0.6194601655006409,
0.6993116736412048,
0.30449938774108887,
0.14657236635684967,
-0.15288405120372772,
0.10244675725698471,
0.06402531266212463,
0.10511292517185211,
0.08578048646450043,
0.01517095509916544,
-0.22311720252037048,
-0.041040897369384766,
0.2151522934436798,
0.14848561584949493,
-0.054031893610954285,
0.4727930724620819,
-0.28690141439437866,
0.021714283153414726,
-0.35673096776008606,
0.1425771564245224,
-0.09460904449224472,
-0.024534182623028755,
0.15757547318935394,
0.12107641994953156,
-0.2551407814025879,
-0.16173520684242249,
0.2509945333003998,
-0.20551341772079468,
0.030044570565223694,
-0.05692281574010849,
0.057596590369939804,
0.16094404458999634,
0.4223001301288605,
0.3717052936553955,
0.3308529853820801,
0.12628868222236633,
-0.39603036642074585,
0.16806143522262573,
-0.20947577059268951,
0.4219667315483093,
0.10945239663124084,
-0.10221443325281143,
0.010941150598227978,
-0.25732582807540894,
-0.4651070833206177,
0.3291640877723694,
0.3728500306606293,
-0.01817408762872219,
0.3111792206764221,
-0.035310618579387665,
0.21681535243988037,
0.4290093779563904,
0.11496352404356003,
-0.13678646087646484,
-0.04339971765875816,
-0.025573333725333214,
-0.15158593654632568,
-0.02076415903866291,
-0.003623583819717169,
0.014714484103024006,
0.27587375044822693,
-0.29119905829429626,
0.5122103691101074,
0.38269686698913574,
0.03514894098043442,
-0.28886115550994873,
0.052169069647789,
-0.2241280972957611,
-0.10433266311883926,
-0.2918563783168793,
0.14599834382534027,
-0.1513599455356598,
0.2586987614631653,
0.07150109857320786,
0.075801782310009,
-0.05268125981092453,
-0.09115763008594513,
-0.17677395045757294,
0.5641889572143555,
-0.3511337339878082,
-0.09152841567993164,
-0.09210971742868423,
-0.35704708099365234,
0.23900851607322693,
0.2044113278388977,
-0.045302242040634155,
0.455143004655838,
-0.17896750569343567,
-0.23615802824497223,
0.0921659991145134,
0.10198447853326797,
-0.0491841621696949,
-0.17321670055389404,
0.036849115043878555,
0.0346577987074852,
0.40550497174263,
-0.6999351978302002,
-0.3297370374202728,
0.1721247136592865,
0.1971316784620285,
-0.023020198568701744,
0.012448335066437721,
0.4854852557182312,
-0.2080429196357727,
0.08449471741914749,
-0.23908017575740814,
0.32876431941986084,
-0.08392509073019028,
0.011059656739234924,
-0.19547154009342194
] |
https://github.com/huggingface/datasets/issues/1743 | Issue while Creating Custom Metric | Currently it's only possible to define the features for the two columns `references` and `predictions`.
The data for these columns can then be passed to `metric.add_batch` and `metric.compute`.
Instead of defining more columns `text`, `offset_mapping` and `ground` you must include them in either references and predictions.
For example
```python
features = datasets.Features({
'predictions':datasets.Sequence(datasets.Value("int32")),
"references": datasets.Sequence({
"references_ids": datasets.Value("int32"),
"offset_mapping": datasets.Value("int32"),
'text': datasets.Value('string'),
"ground": datasets.Value("int32")
}),
})
```
Another option would be to simply have the two features like
```python
features = datasets.Features({
'predictions':datasets.Sequence(datasets.Value("int32")),
"references": datasets.Sequence(datasets.Value("int32")),
})
```
and keep `offset_mapping`, `text` and `ground` as as parameters for the computation (i.e. kwargs when calling `metric.compute`).
What is the metric you would like to implement ?
I'm asking since we consider allowing additional fields as requested in the `Comet` metric (see PR and discussion [here](https://github.com/huggingface/datasets/pull/1577)) and I'd like to know if it's something that can be interesting for users.
What do you think ? | Hi Team,
I am trying to create a custom metric for my training as follows, where f1 is my own metric:
```python
def _info(self):
# TODO: Specifies the datasets.MetricInfo object
return datasets.MetricInfo(
# This is the description that will appear on the metrics page.
description=_DESCRIPTION,
citation=_CITATION,
inputs_description=_KWARGS_DESCRIPTION,
# This defines the format of each prediction and reference
features = datasets.Features({'predictions':datasets.Sequence(datasets.Value("int32")), "references": datasets.Sequence(datasets.Value("int32")),"offset_mapping":datasets.Sequence(datasets.Value("int32")),'text':datasets.Sequence(datasets.Value('string')),"ground":datasets.Sequence(datasets.Value("int32")),}),
# Homepage of the metric for documentation
homepage="http://metric.homepage",
# Additional links to the codebase or references
codebase_urls=["http://github.com/path/to/codebase/of/new_metric"],
reference_urls=["http://path.to.reference.url/new_metric"]
)
def _compute(self,predictions,references,text,offset_mapping,spans):
pred_spans = []
for i,preds in enumerate(predictions):
current_preds = []
for j,token_preds in enumerate(preds):
if (preds>0.5):
current_preds+=list(range(offset_mapping[i][j][0],offset_mapping[i][j][1]))
pred_spans.append(current_spans)
return {
"Token Wise F1": f1_score(references,predictions,labels=[0,1]),
"Offset Wise F1": np.mean([f1(preds,gold) for preds,fold in zip(pred_spans,ground)])
}
```
I believe this is not correct. But that's not the issue I am facing right now. I get this error :
```python
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-144-ed7349b50821> in <module>()
----> 1 new_metric.compute(predictions=inputs["labels"],references=inputs["labels"], text=inputs["text"], offset_mapping=inputs["offset_mapping"],ground=inputs["ground"] )
2 frames
/usr/local/lib/python3.6/dist-packages/datasets/features.py in encode_batch(self, batch)
802 encoded_batch = {}
803 if set(batch) != set(self):
--> 804 print(batch)
805 print(self)
806 raise ValueError("Column mismatch between batch {} and features {}".format(set(batch), set(self)))
ValueError: Column mismatch between batch {'references', 'predictions'} and features {'ground', 'predictions', 'offset_mapping', 'text', 'references'}
```
On checking the features.py file, I see the call is made from add_batch() in metrics.py which only takes in predictions and references.
How do I make my custom metric work? Will it work with a trainer even if I am able to make this metric work?
Thanks,
Gunjan | 151 | Issue while Creating Custom Metric
Hi Team,
I am trying to create a custom metric for my training as follows, where f1 is my own metric:
```python
def _info(self):
# TODO: Specifies the datasets.MetricInfo object
return datasets.MetricInfo(
# This is the description that will appear on the metrics page.
description=_DESCRIPTION,
citation=_CITATION,
inputs_description=_KWARGS_DESCRIPTION,
# This defines the format of each prediction and reference
features = datasets.Features({'predictions':datasets.Sequence(datasets.Value("int32")), "references": datasets.Sequence(datasets.Value("int32")),"offset_mapping":datasets.Sequence(datasets.Value("int32")),'text':datasets.Sequence(datasets.Value('string')),"ground":datasets.Sequence(datasets.Value("int32")),}),
# Homepage of the metric for documentation
homepage="http://metric.homepage",
# Additional links to the codebase or references
codebase_urls=["http://github.com/path/to/codebase/of/new_metric"],
reference_urls=["http://path.to.reference.url/new_metric"]
)
def _compute(self,predictions,references,text,offset_mapping,spans):
pred_spans = []
for i,preds in enumerate(predictions):
current_preds = []
for j,token_preds in enumerate(preds):
if (preds>0.5):
current_preds+=list(range(offset_mapping[i][j][0],offset_mapping[i][j][1]))
pred_spans.append(current_spans)
return {
"Token Wise F1": f1_score(references,predictions,labels=[0,1]),
"Offset Wise F1": np.mean([f1(preds,gold) for preds,fold in zip(pred_spans,ground)])
}
```
I believe this is not correct. But that's not the issue I am facing right now. I get this error :
```python
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-144-ed7349b50821> in <module>()
----> 1 new_metric.compute(predictions=inputs["labels"],references=inputs["labels"], text=inputs["text"], offset_mapping=inputs["offset_mapping"],ground=inputs["ground"] )
2 frames
/usr/local/lib/python3.6/dist-packages/datasets/features.py in encode_batch(self, batch)
802 encoded_batch = {}
803 if set(batch) != set(self):
--> 804 print(batch)
805 print(self)
806 raise ValueError("Column mismatch between batch {} and features {}".format(set(batch), set(self)))
ValueError: Column mismatch between batch {'references', 'predictions'} and features {'ground', 'predictions', 'offset_mapping', 'text', 'references'}
```
On checking the features.py file, I see the call is made from add_batch() in metrics.py which only takes in predictions and references.
How do I make my custom metric work? Will it work with a trainer even if I am able to make this metric work?
Thanks,
Gunjan
Currently it's only possible to define the features for the two columns `references` and `predictions`.
The data for these columns can then be passed to `metric.add_batch` and `metric.compute`.
Instead of defining more columns `text`, `offset_mapping` and `ground` you must include them in either references and predictions.
For example
```python
features = datasets.Features({
'predictions':datasets.Sequence(datasets.Value("int32")),
"references": datasets.Sequence({
"references_ids": datasets.Value("int32"),
"offset_mapping": datasets.Value("int32"),
'text': datasets.Value('string'),
"ground": datasets.Value("int32")
}),
})
```
Another option would be to simply have the two features like
```python
features = datasets.Features({
'predictions':datasets.Sequence(datasets.Value("int32")),
"references": datasets.Sequence(datasets.Value("int32")),
})
```
and keep `offset_mapping`, `text` and `ground` as as parameters for the computation (i.e. kwargs when calling `metric.compute`).
What is the metric you would like to implement ?
I'm asking since we consider allowing additional fields as requested in the `Comet` metric (see PR and discussion [here](https://github.com/huggingface/datasets/pull/1577)) and I'd like to know if it's something that can be interesting for users.
What do you think ? | [
-0.23883531987667084,
-0.3020201623439789,
-0.14578382670879364,
0.18646110594272614,
0.4193515479564667,
-0.03841887786984444,
0.1069304570555687,
0.1982862651348114,
0.05182933807373047,
0.29978278279304504,
-0.055739808827638626,
0.23833206295967102,
-0.17814353108406067,
0.1406402736902237,
-0.014340111054480076,
-0.14151480793952942,
-0.335070937871933,
0.1471371203660965,
0.33454397320747375,
-0.034563492983579636,
-0.31077340245246887,
0.16063258051872253,
-0.06958746165037155,
0.1216963604092598,
-0.23558485507965088,
-0.09332231432199478,
0.23668868839740753,
-0.015912724658846855,
-0.41248586773872375,
-0.30415254831314087,
0.09906458109617233,
0.051342058926820755,
-0.14960074424743652,
0.5381694436073303,
-0.00009855694224825129,
0.06951466202735901,
0.2994535565376282,
-0.046610865741968155,
-0.034131139516830444,
-0.16483508050441742,
0.0899350568652153,
-0.09305869787931442,
-0.019485412165522575,
-0.36612796783447266,
-0.3656156063079834,
-0.2527797222137451,
-0.3794957101345062,
-0.20565418899059296,
0.14169855415821075,
0.5694258213043213,
0.34650516510009766,
0.21773096919059753,
-0.051451440900564194,
-0.4145720899105072,
-0.03202198073267937,
-0.28024813532829285,
-0.2366340607404709,
0.18620574474334717,
-0.33020809292793274,
-0.14220231771469116,
-0.02901446260511875,
0.23736776411533356,
0.09773922711610794,
0.22808042168617249,
0.4603564143180847,
0.07473276555538177,
0.46409955620765686,
-0.028844788670539856,
-0.06390600651502609,
0.09932835400104523,
-0.034830931574106216,
-0.22912946343421936,
-0.13892896473407745,
-0.08650598675012589,
-0.0435682013630867,
-0.6063228845596313,
0.0008667331421747804,
0.04129767790436745,
-0.14012885093688965,
0.07085810601711273,
-0.21372383832931519,
0.24481110274791718,
-0.24251601099967957,
0.16928569972515106,
-0.2068612426519394,
0.2759692072868347,
-0.13334602117538452,
-0.012931916862726212,
0.2290191501379013,
0.013792166486382484,
0.08815716952085495,
-0.12530535459518433,
0.13439802825450897,
-0.0300868172198534,
-0.08645973354578018,
-0.10286536812782288,
0.03229735791683197,
-0.24993017315864563,
0.0712892934679985,
-0.06085917726159096,
0.15716630220413208,
-0.0135505311191082,
0.09318121522665024,
-0.02547776885330677,
-0.2397664487361908,
0.4107283353805542,
-0.15839652717113495,
0.1640748232603073,
0.07188553363084793,
0.2834460735321045,
-0.10016828775405884,
-0.07665660977363586,
0.24614065885543823,
-0.24524302780628204,
0.09418398886919022,
0.16831806302070618,
0.0826830267906189,
0.05493644252419472,
-0.41344478726387024,
0.12244568765163422,
0.017111025750637054,
0.06224418804049492,
0.36320456862449646,
0.17920954525470734,
-0.04754553362727165,
-0.05780155956745148,
-0.07457708567380905,
0.1806984543800354,
-0.30360716581344604,
0.13232457637786865,
-0.3576907813549042,
0.18681219220161438,
-0.2822224497795105,
0.2094501405954361,
0.10230942815542221,
0.32519567012786865,
0.4162539839744568,
-0.08296771347522736,
0.28640419244766235,
-0.4359332323074341,
0.01481084618717432,
-0.11648494750261307,
0.014678443782031536,
-0.03769863024353981,
-0.11694667488336563,
-0.0906926617026329,
0.2322409600019455,
-0.32481849193573,
-0.03255618363618851,
-0.012776227667927742,
-0.07720368355512619,
-0.2612806260585785,
-0.046458665281534195,
0.3655206561088562,
-0.1033221110701561,
0.0883793756365776,
0.10662411898374557,
0.2783166766166687,
0.1253259927034378,
0.18914370238780975,
0.06390118598937988,
0.08773455768823624,
-0.618209183216095,
-0.14975665509700775,
0.2072359174489975,
-0.04061272367835045,
-0.07074858248233795,
0.015972202643752098,
0.03745449334383011,
0.05296763405203819,
0.08536447584629059,
0.1257970929145813,
0.0015913265524432063,
0.5011464953422546,
-0.12312311679124832,
0.0715177059173584,
0.44739678502082825,
-0.39015689492225647,
-0.2748815715312958,
-0.06951511651277542,
-0.2604045867919922,
-0.18268197774887085,
-0.040202412754297256,
0.11342525482177734,
0.2639744281768799,
-0.0010216861264780164,
0.33511850237846375,
-0.03324873000383377,
0.06727692484855652,
-0.0819636806845665,
-0.33664312958717346,
-0.05507800728082657,
-0.11013764888048172,
0.012899806722998619,
0.2926906645298004,
0.1166742667555809,
0.11568056046962738,
0.05904564633965492,
-0.07904879003763199,
-0.06979255378246307,
-0.04620322212576866,
0.2923012375831604,
0.17049431800842285,
-0.1382119357585907,
-0.13732384145259857,
-0.343949556350708,
0.07734586298465729,
0.10636533796787262,
-0.14827682077884674,
0.10295386612415314,
0.15864378213882446,
-0.1641627997159958,
-0.7732864022254944,
-0.033980827778577805,
-0.1352517008781433,
-0.13568109273910522,
0.3323923349380493,
-0.06626946479082108,
0.05123164877295494,
-0.023343075066804886,
-0.11970017850399017,
-0.08651299774646759,
-0.4374274015426636,
-0.03877430409193039,
0.04091167822480202,
0.14444500207901,
-0.0776677131652832,
-0.15234971046447754,
0.23208026587963104,
0.633459746837616,
0.31426480412483215,
0.24310868978500366,
-0.15362173318862915,
0.4181962311267853,
0.1928747296333313,
-0.09666095674037933,
0.07094910740852356,
0.26479971408843994,
0.14438851177692413,
-0.41763630509376526,
0.08230499923229218,
0.08358412981033325,
0.03809291869401932,
-0.10411739349365234,
-0.17188553512096405,
0.4496614634990692,
-0.05952693894505501,
-0.01885652355849743,
-0.08731953054666519,
-0.03776301071047783,
0.03562318906188011,
-0.013333494774997234,
-0.22622019052505493,
-0.3605844974517822,
0.10408145934343338,
-0.26491421461105347,
-0.07441819459199905,
-0.15127815306186676,
0.014022277668118477,
-0.04694605618715286,
0.5437558889389038,
0.08594390004873276,
0.020997753366827965,
-0.0018736401107162237,
0.09272612631320953,
-0.06723093241453171,
-0.4087888300418854,
-0.13900473713874817,
0.3537848889827728,
0.23741619288921356,
0.07890868932008743,
0.30560240149497986,
-0.18165306746959686,
-0.28991830348968506,
0.1207427829504013,
0.16821157932281494,
-0.20013433694839478,
0.1640184223651886,
0.1174231767654419,
-0.12010389566421509,
-0.0836908146739006,
0.08532921224832535,
-0.13676881790161133,
0.18602994084358215,
-0.343523234128952,
-0.06316843628883362,
-0.11560246348381042,
0.1328383982181549,
-0.07782386988401413,
-0.35521742701530457,
0.04780639708042145,
-0.305757999420166,
0.07570780813694,
0.18287356197834015,
0.1641632318496704,
0.2744426131248474,
0.15962733328342438,
0.14975041151046753,
0.251719206571579,
-0.010264272801578045,
0.08257612586021423,
-0.22203916311264038,
0.013127879239618778,
0.20608660578727722,
-0.16673344373703003,
0.032132793217897415,
0.37871500849723816,
0.06302116066217422,
0.2129552662372589,
-0.16413764655590057,
-0.32280611991882324,
0.01673891954123974,
-0.08555865287780762,
0.3682921230792999,
0.21061331033706665,
-0.08688792586326599,
-0.12012146413326263,
0.02021610364317894,
0.4172612726688385,
-0.07206876575946808,
-0.05970004200935364,
0.057229965925216675,
-0.14892292022705078,
-0.039349496364593506,
-0.1512385755777359,
-0.09861437231302261,
0.10861286520957947,
-0.3211774528026581,
-0.18536315858364105,
0.21164922416210175,
-0.016288436949253082,
0.2403930127620697,
0.17723219096660614,
0.2700444161891937,
0.3833010196685791,
-0.1196688711643219,
-0.41492193937301636,
-0.27283141016960144,
0.3139650821685791,
-0.49653974175453186,
-0.16064846515655518,
0.01055228989571333,
-0.20406071841716766,
0.35316166281700134,
-0.06595130264759064,
-0.476918488740921,
-0.4896351993083954,
0.02004762552678585,
0.20115536451339722,
-0.06795728206634521,
-0.13745833933353424,
0.125793918967247,
-0.1389673948287964,
-0.22485429048538208,
-0.28286266326904297,
-0.37253719568252563,
0.0969550833106041,
-0.15599067509174347,
0.07673605531454086,
-0.1679982841014862,
0.29638585448265076,
0.07961927354335785,
0.5379868745803833,
0.3091500699520111,
-0.09590132534503937,
0.15376116335391998,
-0.16650383174419403,
0.17022782564163208,
-0.21961352229118347,
-0.2937709391117096,
0.04002771154046059,
0.27619558572769165,
-0.009206543676555157,
0.300790399312973,
0.012519988231360912,
0.0655875951051712,
-0.08216766268014908,
-0.016345059499144554,
-0.17265664041042328,
-0.09032826125621796,
-0.27205029129981995,
0.026846259832382202,
0.2756064534187317,
-0.016656603664159775,
0.2943207323551178,
-0.30797815322875977,
-0.017305701971054077,
0.17362630367279053,
0.1240035742521286,
-0.26544898748397827,
-0.2161293625831604,
-0.20268656313419342,
0.09797802567481995,
-0.14695413410663605,
0.11269695311784744,
-0.004346103873103857,
0.031983960419893265,
0.025314699858427048,
0.27819839119911194,
0.026056040078401566,
0.05839218571782112,
0.3026009500026703,
-0.28471070528030396,
-0.07212629914283752,
0.18797054886817932,
0.029912905767560005,
-0.26122114062309265,
0.020733380690217018,
0.06077714264392853,
0.2170865535736084,
-0.07661958783864975,
0.7068266868591309,
-0.3140386939048767,
-0.20157434046268463,
0.3677608370780945,
-0.08668433874845505,
-0.11567829549312592,
-0.24555200338363647,
-0.20796965062618256,
-0.49161913990974426,
0.08666017651557922,
0.11188285052776337,
0.034540172666311264,
0.4062201678752899,
0.2088233381509781,
-0.11823179572820663,
0.002123885555192828,
-0.2255105823278427,
0.1432761400938034,
-0.05095786973834038,
0.21055004000663757,
0.1123029813170433,
0.09160147607326508,
0.04280062019824982,
-0.13727250695228577,
-0.11029420047998428,
0.0896129459142685,
-0.0622720867395401,
-0.2546941936016083,
-0.00943177193403244,
-0.1743391901254654,
0.13789431750774384,
0.14319001138210297,
-0.12405211478471756,
-0.008678227663040161,
-0.008559301495552063,
0.3078176975250244,
-0.18366564810276031,
0.23942390084266663,
0.24163666367530823,
-0.09307914227247238,
-0.04564827308058739,
-0.3316988945007324,
0.4245661199092865,
0.07376552373170853,
0.020290089771151543,
0.31581395864486694,
-0.029164759442210197,
-0.2223443239927292,
-0.02265097014605999,
0.19943220913410187,
0.6062893271446228,
0.1603308767080307,
-0.317583292722702,
0.5252521634101868,
-0.14696770906448364,
0.08878817409276962,
-0.2753627300262451,
0.08646252006292343,
-0.2138994038105011,
-0.10809545964002609,
0.010371526703238487,
-0.02060569077730179,
-0.0015151649713516235,
-0.08704967796802521,
-0.04052611440420151,
0.15822193026542664,
0.00641926284879446,
0.12797869741916656,
0.012380433268845081,
0.13092763721942902,
0.25663018226623535,
-0.22431036829948425,
-0.25649574398994446,
0.30847424268722534,
-0.15857934951782227,
-0.05297617241740227,
-0.03285312280058861,
-0.078976571559906,
-0.1387615203857422,
-0.10881703346967697,
0.06636171787977219,
-0.2599679231643677,
-0.33530911803245544,
-0.055485088378190994,
0.004833299200981855,
-0.25212082266807556,
0.00379946269094944,
0.033975474536418915,
0.6332519054412842,
0.17638342082500458,
-0.19337588548660278,
0.1461803913116455,
-0.21488140523433685,
0.021160991862416267,
-0.15438513457775116,
0.03542104363441467,
-0.028258543461561203,
-0.1656348556280136,
-0.11362717300653458,
0.0832107663154602,
0.14651909470558167,
-0.10401346534490585,
-0.05239119753241539,
-0.2039107084274292,
0.059229105710983276,
-0.23867496848106384,
0.03886428102850914,
-0.14549238979816437,
-0.03327961638569832,
-0.2638089954853058,
0.29388532042503357,
-0.13834241032600403,
-0.15215039253234863,
0.19054768979549408,
0.16268642246723175,
-0.30844107270240784,
-0.026202697306871414,
0.06292327493429184,
0.05598287284374237,
0.07396111637353897,
0.16477350890636444,
-0.1561601608991623,
-0.15341731905937195,
-0.3211123049259186,
-0.05126132443547249,
-0.1514144241809845,
0.01450328528881073,
0.3607538938522339,
0.0004531994345597923,
-0.016629336401820183,
0.23184412717819214,
0.41439390182495117,
0.19991780817508698,
0.2255796194076538,
0.13163575530052185,
-0.1300477236509323,
-0.31610602140426636,
-0.146714985370636,
-0.0892668142914772,
0.2483053356409073,
-0.26683884859085083,
0.6535885334014893,
-0.1102597564458847,
-0.02581707574427128,
-0.516828715801239,
0.021098649129271507,
-0.3219110667705536,
0.001651838654652238,
-0.08778000622987747,
-0.23574146628379822,
-0.025789963081479073,
0.21999160945415497,
0.22344978153705597,
0.200025275349617,
-0.4137077033519745,
-0.3525777757167816,
-0.22975412011146545,
0.04748009890317917,
0.05192158371210098,
-0.0544140450656414,
0.020513180643320084,
0.11324916779994965,
-0.41506049036979675,
-0.0894882082939148,
-0.10216901451349258,
0.3201109766960144,
0.1548326462507248,
0.15410006046295166,
-0.20306254923343658,
0.33047181367874146,
0.19447821378707886,
-0.22780464589595795,
0.13550898432731628,
0.3945108652114868,
0.056009598076343536,
-0.05942583456635475,
-0.053564999252557755,
-0.0257703959941864,
-0.06788848340511322,
-0.025060895830392838,
0.11764626950025558,
0.09666788578033447,
0.2362036108970642,
-0.08588217943906784,
-0.10942433029413223,
0.3337862491607666,
0.23334994912147522,
-0.017450768500566483,
-0.26969102025032043,
-0.18541540205478668,
-0.09128902107477188,
0.3808516263961792,
-0.1617778241634369,
0.11387023329734802,
0.1146673783659935,
0.08229200541973114,
0.4596896469593048,
0.37100574374198914,
0.16962580382823944,
-0.032881829887628555,
-0.1256030648946762,
0.06068645045161247,
0.3149350881576538,
-0.2551383376121521,
-0.031055528670549393,
0.030993850901722908,
0.08489250391721725,
0.01131515670567751,
0.4787459075450897,
0.1104656308889389,
0.18770933151245117,
0.46509063243865967,
-0.024846239015460014,
0.28660503029823303,
0.11356012523174286,
0.02563723735511303,
-0.1688523143529892,
0.24639837443828583,
-0.10974644869565964,
0.1416638046503067,
-0.04370351880788803,
-0.16014130413532257,
-0.21726955473423004,
-0.05533995479345322,
-0.1343214362859726,
0.1474778950214386,
-0.16341012716293335,
-0.0035560510586947203,
-0.030031563714146614,
-0.08438486605882645,
-0.4169692099094391,
-0.19881340861320496,
-0.08742303401231766,
-0.17859825491905212,
0.13602955639362335,
0.22873634099960327,
0.0039018194656819105,
-0.299653023481369,
0.0245341993868351,
0.10270356386899948,
0.05215981975197792,
0.2422717809677124,
0.2836422920227051,
-0.2555299401283264,
0.20373868942260742,
0.25079455971717834,
0.3229713439941406,
-0.08332730084657669,
0.3195423483848572,
0.1042080819606781,
0.17333748936653137,
-0.33305448293685913,
-0.2613292932510376,
0.02995317429304123,
-0.26567304134368896,
0.02196010947227478,
0.14417757093906403,
0.3015912175178528,
-0.1541232019662857,
0.40297776460647583,
0.28827446699142456,
-0.40482091903686523,
0.2984382212162018,
0.19741959869861603,
-0.013380184769630432,
-0.4324820339679718,
0.3722928464412689,
-0.004262408707290888,
-0.033342234790325165,
-0.01842866837978363,
-0.05647457763552666,
-0.14634886384010315,
-0.09184516966342926,
0.18876875936985016,
0.024733664467930794,
0.344562292098999,
-0.11978963017463684,
0.16970738768577576,
-0.08211859315633774,
0.3426368236541748,
-0.03985537588596344,
0.07637857645750046,
-0.41617682576179504,
-0.13557204604148865,
-0.40276777744293213,
0.16092485189437866,
-0.009899660013616085,
0.11584585160017014,
0.03411318361759186,
0.24736560881137848,
-0.24587173759937286,
0.2662315368652344,
0.13092565536499023,
0.04371926933526993,
-0.035961050540208817,
0.0830051526427269,
-0.344451367855072,
0.04566299915313721,
-0.2424386888742447,
-0.11395738273859024,
0.24534901976585388,
-0.13676075637340546,
-0.17526879906654358,
-0.12875404953956604,
0.2528266906738281,
-0.13213834166526794,
0.16158919036388397,
0.12474898248910904,
0.44397786259651184,
0.29619333148002625,
0.06820622831583023,
0.17735660076141357,
-0.10893485695123672,
0.10173264145851135,
-0.09917811304330826,
0.031704701483249664,
-0.057324305176734924,
0.254975825548172,
0.11167550086975098,
0.3584686815738678,
-0.019524194300174713,
-0.1864132583141327,
-0.2227337807416916,
0.24487121403217316,
0.3298006057739258,
-0.2393912672996521,
-0.03452692925930023,
0.27428460121154785,
-0.14624649286270142,
-0.10390771180391312,
0.04260466620326042,
0.27577099204063416,
0.04537907987833023,
0.47976070642471313,
-0.10387061536312103,
-0.444988489151001,
0.5055988430976868,
0.0036407785955816507,
-0.3741855323314667,
0.20254147052764893,
0.31591367721557617,
0.3365117311477661,
-0.12872731685638428,
-0.4725494980812073,
0.12506203353405,
0.49365541338920593,
-0.11353287845849991,
-0.09477453678846359,
0.282654732465744,
-0.2521481215953827,
0.02807610109448433,
0.19828110933303833,
-0.15385307371616364,
0.02790141850709915,
-0.07740586251020432,
0.0954032689332962,
-0.06942833214998245
] |
https://github.com/huggingface/datasets/issues/1743 | Issue while Creating Custom Metric | Hi @lhoestq,
I am doing text segmentation and the metric is effectively dice score on character offsets. So I need to pass the actual spans and I want to be able to get the spans based on predictions using offset_mapping.
Including them in references seems like a good idea. I'll try it out and get back to you. If there's a better way to write a metric function for the same, please let me know. | Hi Team,
I am trying to create a custom metric for my training as follows, where f1 is my own metric:
```python
def _info(self):
# TODO: Specifies the datasets.MetricInfo object
return datasets.MetricInfo(
# This is the description that will appear on the metrics page.
description=_DESCRIPTION,
citation=_CITATION,
inputs_description=_KWARGS_DESCRIPTION,
# This defines the format of each prediction and reference
features = datasets.Features({'predictions':datasets.Sequence(datasets.Value("int32")), "references": datasets.Sequence(datasets.Value("int32")),"offset_mapping":datasets.Sequence(datasets.Value("int32")),'text':datasets.Sequence(datasets.Value('string')),"ground":datasets.Sequence(datasets.Value("int32")),}),
# Homepage of the metric for documentation
homepage="http://metric.homepage",
# Additional links to the codebase or references
codebase_urls=["http://github.com/path/to/codebase/of/new_metric"],
reference_urls=["http://path.to.reference.url/new_metric"]
)
def _compute(self,predictions,references,text,offset_mapping,spans):
pred_spans = []
for i,preds in enumerate(predictions):
current_preds = []
for j,token_preds in enumerate(preds):
if (preds>0.5):
current_preds+=list(range(offset_mapping[i][j][0],offset_mapping[i][j][1]))
pred_spans.append(current_spans)
return {
"Token Wise F1": f1_score(references,predictions,labels=[0,1]),
"Offset Wise F1": np.mean([f1(preds,gold) for preds,fold in zip(pred_spans,ground)])
}
```
I believe this is not correct. But that's not the issue I am facing right now. I get this error :
```python
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-144-ed7349b50821> in <module>()
----> 1 new_metric.compute(predictions=inputs["labels"],references=inputs["labels"], text=inputs["text"], offset_mapping=inputs["offset_mapping"],ground=inputs["ground"] )
2 frames
/usr/local/lib/python3.6/dist-packages/datasets/features.py in encode_batch(self, batch)
802 encoded_batch = {}
803 if set(batch) != set(self):
--> 804 print(batch)
805 print(self)
806 raise ValueError("Column mismatch between batch {} and features {}".format(set(batch), set(self)))
ValueError: Column mismatch between batch {'references', 'predictions'} and features {'ground', 'predictions', 'offset_mapping', 'text', 'references'}
```
On checking the features.py file, I see the call is made from add_batch() in metrics.py which only takes in predictions and references.
How do I make my custom metric work? Will it work with a trainer even if I am able to make this metric work?
Thanks,
Gunjan | 75 | Issue while Creating Custom Metric
Hi Team,
I am trying to create a custom metric for my training as follows, where f1 is my own metric:
```python
def _info(self):
# TODO: Specifies the datasets.MetricInfo object
return datasets.MetricInfo(
# This is the description that will appear on the metrics page.
description=_DESCRIPTION,
citation=_CITATION,
inputs_description=_KWARGS_DESCRIPTION,
# This defines the format of each prediction and reference
features = datasets.Features({'predictions':datasets.Sequence(datasets.Value("int32")), "references": datasets.Sequence(datasets.Value("int32")),"offset_mapping":datasets.Sequence(datasets.Value("int32")),'text':datasets.Sequence(datasets.Value('string')),"ground":datasets.Sequence(datasets.Value("int32")),}),
# Homepage of the metric for documentation
homepage="http://metric.homepage",
# Additional links to the codebase or references
codebase_urls=["http://github.com/path/to/codebase/of/new_metric"],
reference_urls=["http://path.to.reference.url/new_metric"]
)
def _compute(self,predictions,references,text,offset_mapping,spans):
pred_spans = []
for i,preds in enumerate(predictions):
current_preds = []
for j,token_preds in enumerate(preds):
if (preds>0.5):
current_preds+=list(range(offset_mapping[i][j][0],offset_mapping[i][j][1]))
pred_spans.append(current_spans)
return {
"Token Wise F1": f1_score(references,predictions,labels=[0,1]),
"Offset Wise F1": np.mean([f1(preds,gold) for preds,fold in zip(pred_spans,ground)])
}
```
I believe this is not correct. But that's not the issue I am facing right now. I get this error :
```python
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-144-ed7349b50821> in <module>()
----> 1 new_metric.compute(predictions=inputs["labels"],references=inputs["labels"], text=inputs["text"], offset_mapping=inputs["offset_mapping"],ground=inputs["ground"] )
2 frames
/usr/local/lib/python3.6/dist-packages/datasets/features.py in encode_batch(self, batch)
802 encoded_batch = {}
803 if set(batch) != set(self):
--> 804 print(batch)
805 print(self)
806 raise ValueError("Column mismatch between batch {} and features {}".format(set(batch), set(self)))
ValueError: Column mismatch between batch {'references', 'predictions'} and features {'ground', 'predictions', 'offset_mapping', 'text', 'references'}
```
On checking the features.py file, I see the call is made from add_batch() in metrics.py which only takes in predictions and references.
How do I make my custom metric work? Will it work with a trainer even if I am able to make this metric work?
Thanks,
Gunjan
Hi @lhoestq,
I am doing text segmentation and the metric is effectively dice score on character offsets. So I need to pass the actual spans and I want to be able to get the spans based on predictions using offset_mapping.
Including them in references seems like a good idea. I'll try it out and get back to you. If there's a better way to write a metric function for the same, please let me know. | [
-0.23883531987667084,
-0.3020201623439789,
-0.14578382670879364,
0.18646110594272614,
0.4193515479564667,
-0.03841887786984444,
0.1069304570555687,
0.1982862651348114,
0.05182933807373047,
0.29978278279304504,
-0.055739808827638626,
0.23833206295967102,
-0.17814353108406067,
0.1406402736902237,
-0.014340111054480076,
-0.14151480793952942,
-0.335070937871933,
0.1471371203660965,
0.33454397320747375,
-0.034563492983579636,
-0.31077340245246887,
0.16063258051872253,
-0.06958746165037155,
0.1216963604092598,
-0.23558485507965088,
-0.09332231432199478,
0.23668868839740753,
-0.015912724658846855,
-0.41248586773872375,
-0.30415254831314087,
0.09906458109617233,
0.051342058926820755,
-0.14960074424743652,
0.5381694436073303,
-0.00009855694224825129,
0.06951466202735901,
0.2994535565376282,
-0.046610865741968155,
-0.034131139516830444,
-0.16483508050441742,
0.0899350568652153,
-0.09305869787931442,
-0.019485412165522575,
-0.36612796783447266,
-0.3656156063079834,
-0.2527797222137451,
-0.3794957101345062,
-0.20565418899059296,
0.14169855415821075,
0.5694258213043213,
0.34650516510009766,
0.21773096919059753,
-0.051451440900564194,
-0.4145720899105072,
-0.03202198073267937,
-0.28024813532829285,
-0.2366340607404709,
0.18620574474334717,
-0.33020809292793274,
-0.14220231771469116,
-0.02901446260511875,
0.23736776411533356,
0.09773922711610794,
0.22808042168617249,
0.4603564143180847,
0.07473276555538177,
0.46409955620765686,
-0.028844788670539856,
-0.06390600651502609,
0.09932835400104523,
-0.034830931574106216,
-0.22912946343421936,
-0.13892896473407745,
-0.08650598675012589,
-0.0435682013630867,
-0.6063228845596313,
0.0008667331421747804,
0.04129767790436745,
-0.14012885093688965,
0.07085810601711273,
-0.21372383832931519,
0.24481110274791718,
-0.24251601099967957,
0.16928569972515106,
-0.2068612426519394,
0.2759692072868347,
-0.13334602117538452,
-0.012931916862726212,
0.2290191501379013,
0.013792166486382484,
0.08815716952085495,
-0.12530535459518433,
0.13439802825450897,
-0.0300868172198534,
-0.08645973354578018,
-0.10286536812782288,
0.03229735791683197,
-0.24993017315864563,
0.0712892934679985,
-0.06085917726159096,
0.15716630220413208,
-0.0135505311191082,
0.09318121522665024,
-0.02547776885330677,
-0.2397664487361908,
0.4107283353805542,
-0.15839652717113495,
0.1640748232603073,
0.07188553363084793,
0.2834460735321045,
-0.10016828775405884,
-0.07665660977363586,
0.24614065885543823,
-0.24524302780628204,
0.09418398886919022,
0.16831806302070618,
0.0826830267906189,
0.05493644252419472,
-0.41344478726387024,
0.12244568765163422,
0.017111025750637054,
0.06224418804049492,
0.36320456862449646,
0.17920954525470734,
-0.04754553362727165,
-0.05780155956745148,
-0.07457708567380905,
0.1806984543800354,
-0.30360716581344604,
0.13232457637786865,
-0.3576907813549042,
0.18681219220161438,
-0.2822224497795105,
0.2094501405954361,
0.10230942815542221,
0.32519567012786865,
0.4162539839744568,
-0.08296771347522736,
0.28640419244766235,
-0.4359332323074341,
0.01481084618717432,
-0.11648494750261307,
0.014678443782031536,
-0.03769863024353981,
-0.11694667488336563,
-0.0906926617026329,
0.2322409600019455,
-0.32481849193573,
-0.03255618363618851,
-0.012776227667927742,
-0.07720368355512619,
-0.2612806260585785,
-0.046458665281534195,
0.3655206561088562,
-0.1033221110701561,
0.0883793756365776,
0.10662411898374557,
0.2783166766166687,
0.1253259927034378,
0.18914370238780975,
0.06390118598937988,
0.08773455768823624,
-0.618209183216095,
-0.14975665509700775,
0.2072359174489975,
-0.04061272367835045,
-0.07074858248233795,
0.015972202643752098,
0.03745449334383011,
0.05296763405203819,
0.08536447584629059,
0.1257970929145813,
0.0015913265524432063,
0.5011464953422546,
-0.12312311679124832,
0.0715177059173584,
0.44739678502082825,
-0.39015689492225647,
-0.2748815715312958,
-0.06951511651277542,
-0.2604045867919922,
-0.18268197774887085,
-0.040202412754297256,
0.11342525482177734,
0.2639744281768799,
-0.0010216861264780164,
0.33511850237846375,
-0.03324873000383377,
0.06727692484855652,
-0.0819636806845665,
-0.33664312958717346,
-0.05507800728082657,
-0.11013764888048172,
0.012899806722998619,
0.2926906645298004,
0.1166742667555809,
0.11568056046962738,
0.05904564633965492,
-0.07904879003763199,
-0.06979255378246307,
-0.04620322212576866,
0.2923012375831604,
0.17049431800842285,
-0.1382119357585907,
-0.13732384145259857,
-0.343949556350708,
0.07734586298465729,
0.10636533796787262,
-0.14827682077884674,
0.10295386612415314,
0.15864378213882446,
-0.1641627997159958,
-0.7732864022254944,
-0.033980827778577805,
-0.1352517008781433,
-0.13568109273910522,
0.3323923349380493,
-0.06626946479082108,
0.05123164877295494,
-0.023343075066804886,
-0.11970017850399017,
-0.08651299774646759,
-0.4374274015426636,
-0.03877430409193039,
0.04091167822480202,
0.14444500207901,
-0.0776677131652832,
-0.15234971046447754,
0.23208026587963104,
0.633459746837616,
0.31426480412483215,
0.24310868978500366,
-0.15362173318862915,
0.4181962311267853,
0.1928747296333313,
-0.09666095674037933,
0.07094910740852356,
0.26479971408843994,
0.14438851177692413,
-0.41763630509376526,
0.08230499923229218,
0.08358412981033325,
0.03809291869401932,
-0.10411739349365234,
-0.17188553512096405,
0.4496614634990692,
-0.05952693894505501,
-0.01885652355849743,
-0.08731953054666519,
-0.03776301071047783,
0.03562318906188011,
-0.013333494774997234,
-0.22622019052505493,
-0.3605844974517822,
0.10408145934343338,
-0.26491421461105347,
-0.07441819459199905,
-0.15127815306186676,
0.014022277668118477,
-0.04694605618715286,
0.5437558889389038,
0.08594390004873276,
0.020997753366827965,
-0.0018736401107162237,
0.09272612631320953,
-0.06723093241453171,
-0.4087888300418854,
-0.13900473713874817,
0.3537848889827728,
0.23741619288921356,
0.07890868932008743,
0.30560240149497986,
-0.18165306746959686,
-0.28991830348968506,
0.1207427829504013,
0.16821157932281494,
-0.20013433694839478,
0.1640184223651886,
0.1174231767654419,
-0.12010389566421509,
-0.0836908146739006,
0.08532921224832535,
-0.13676881790161133,
0.18602994084358215,
-0.343523234128952,
-0.06316843628883362,
-0.11560246348381042,
0.1328383982181549,
-0.07782386988401413,
-0.35521742701530457,
0.04780639708042145,
-0.305757999420166,
0.07570780813694,
0.18287356197834015,
0.1641632318496704,
0.2744426131248474,
0.15962733328342438,
0.14975041151046753,
0.251719206571579,
-0.010264272801578045,
0.08257612586021423,
-0.22203916311264038,
0.013127879239618778,
0.20608660578727722,
-0.16673344373703003,
0.032132793217897415,
0.37871500849723816,
0.06302116066217422,
0.2129552662372589,
-0.16413764655590057,
-0.32280611991882324,
0.01673891954123974,
-0.08555865287780762,
0.3682921230792999,
0.21061331033706665,
-0.08688792586326599,
-0.12012146413326263,
0.02021610364317894,
0.4172612726688385,
-0.07206876575946808,
-0.05970004200935364,
0.057229965925216675,
-0.14892292022705078,
-0.039349496364593506,
-0.1512385755777359,
-0.09861437231302261,
0.10861286520957947,
-0.3211774528026581,
-0.18536315858364105,
0.21164922416210175,
-0.016288436949253082,
0.2403930127620697,
0.17723219096660614,
0.2700444161891937,
0.3833010196685791,
-0.1196688711643219,
-0.41492193937301636,
-0.27283141016960144,
0.3139650821685791,
-0.49653974175453186,
-0.16064846515655518,
0.01055228989571333,
-0.20406071841716766,
0.35316166281700134,
-0.06595130264759064,
-0.476918488740921,
-0.4896351993083954,
0.02004762552678585,
0.20115536451339722,
-0.06795728206634521,
-0.13745833933353424,
0.125793918967247,
-0.1389673948287964,
-0.22485429048538208,
-0.28286266326904297,
-0.37253719568252563,
0.0969550833106041,
-0.15599067509174347,
0.07673605531454086,
-0.1679982841014862,
0.29638585448265076,
0.07961927354335785,
0.5379868745803833,
0.3091500699520111,
-0.09590132534503937,
0.15376116335391998,
-0.16650383174419403,
0.17022782564163208,
-0.21961352229118347,
-0.2937709391117096,
0.04002771154046059,
0.27619558572769165,
-0.009206543676555157,
0.300790399312973,
0.012519988231360912,
0.0655875951051712,
-0.08216766268014908,
-0.016345059499144554,
-0.17265664041042328,
-0.09032826125621796,
-0.27205029129981995,
0.026846259832382202,
0.2756064534187317,
-0.016656603664159775,
0.2943207323551178,
-0.30797815322875977,
-0.017305701971054077,
0.17362630367279053,
0.1240035742521286,
-0.26544898748397827,
-0.2161293625831604,
-0.20268656313419342,
0.09797802567481995,
-0.14695413410663605,
0.11269695311784744,
-0.004346103873103857,
0.031983960419893265,
0.025314699858427048,
0.27819839119911194,
0.026056040078401566,
0.05839218571782112,
0.3026009500026703,
-0.28471070528030396,
-0.07212629914283752,
0.18797054886817932,
0.029912905767560005,
-0.26122114062309265,
0.020733380690217018,
0.06077714264392853,
0.2170865535736084,
-0.07661958783864975,
0.7068266868591309,
-0.3140386939048767,
-0.20157434046268463,
0.3677608370780945,
-0.08668433874845505,
-0.11567829549312592,
-0.24555200338363647,
-0.20796965062618256,
-0.49161913990974426,
0.08666017651557922,
0.11188285052776337,
0.034540172666311264,
0.4062201678752899,
0.2088233381509781,
-0.11823179572820663,
0.002123885555192828,
-0.2255105823278427,
0.1432761400938034,
-0.05095786973834038,
0.21055004000663757,
0.1123029813170433,
0.09160147607326508,
0.04280062019824982,
-0.13727250695228577,
-0.11029420047998428,
0.0896129459142685,
-0.0622720867395401,
-0.2546941936016083,
-0.00943177193403244,
-0.1743391901254654,
0.13789431750774384,
0.14319001138210297,
-0.12405211478471756,
-0.008678227663040161,
-0.008559301495552063,
0.3078176975250244,
-0.18366564810276031,
0.23942390084266663,
0.24163666367530823,
-0.09307914227247238,
-0.04564827308058739,
-0.3316988945007324,
0.4245661199092865,
0.07376552373170853,
0.020290089771151543,
0.31581395864486694,
-0.029164759442210197,
-0.2223443239927292,
-0.02265097014605999,
0.19943220913410187,
0.6062893271446228,
0.1603308767080307,
-0.317583292722702,
0.5252521634101868,
-0.14696770906448364,
0.08878817409276962,
-0.2753627300262451,
0.08646252006292343,
-0.2138994038105011,
-0.10809545964002609,
0.010371526703238487,
-0.02060569077730179,
-0.0015151649713516235,
-0.08704967796802521,
-0.04052611440420151,
0.15822193026542664,
0.00641926284879446,
0.12797869741916656,
0.012380433268845081,
0.13092763721942902,
0.25663018226623535,
-0.22431036829948425,
-0.25649574398994446,
0.30847424268722534,
-0.15857934951782227,
-0.05297617241740227,
-0.03285312280058861,
-0.078976571559906,
-0.1387615203857422,
-0.10881703346967697,
0.06636171787977219,
-0.2599679231643677,
-0.33530911803245544,
-0.055485088378190994,
0.004833299200981855,
-0.25212082266807556,
0.00379946269094944,
0.033975474536418915,
0.6332519054412842,
0.17638342082500458,
-0.19337588548660278,
0.1461803913116455,
-0.21488140523433685,
0.021160991862416267,
-0.15438513457775116,
0.03542104363441467,
-0.028258543461561203,
-0.1656348556280136,
-0.11362717300653458,
0.0832107663154602,
0.14651909470558167,
-0.10401346534490585,
-0.05239119753241539,
-0.2039107084274292,
0.059229105710983276,
-0.23867496848106384,
0.03886428102850914,
-0.14549238979816437,
-0.03327961638569832,
-0.2638089954853058,
0.29388532042503357,
-0.13834241032600403,
-0.15215039253234863,
0.19054768979549408,
0.16268642246723175,
-0.30844107270240784,
-0.026202697306871414,
0.06292327493429184,
0.05598287284374237,
0.07396111637353897,
0.16477350890636444,
-0.1561601608991623,
-0.15341731905937195,
-0.3211123049259186,
-0.05126132443547249,
-0.1514144241809845,
0.01450328528881073,
0.3607538938522339,
0.0004531994345597923,
-0.016629336401820183,
0.23184412717819214,
0.41439390182495117,
0.19991780817508698,
0.2255796194076538,
0.13163575530052185,
-0.1300477236509323,
-0.31610602140426636,
-0.146714985370636,
-0.0892668142914772,
0.2483053356409073,
-0.26683884859085083,
0.6535885334014893,
-0.1102597564458847,
-0.02581707574427128,
-0.516828715801239,
0.021098649129271507,
-0.3219110667705536,
0.001651838654652238,
-0.08778000622987747,
-0.23574146628379822,
-0.025789963081479073,
0.21999160945415497,
0.22344978153705597,
0.200025275349617,
-0.4137077033519745,
-0.3525777757167816,
-0.22975412011146545,
0.04748009890317917,
0.05192158371210098,
-0.0544140450656414,
0.020513180643320084,
0.11324916779994965,
-0.41506049036979675,
-0.0894882082939148,
-0.10216901451349258,
0.3201109766960144,
0.1548326462507248,
0.15410006046295166,
-0.20306254923343658,
0.33047181367874146,
0.19447821378707886,
-0.22780464589595795,
0.13550898432731628,
0.3945108652114868,
0.056009598076343536,
-0.05942583456635475,
-0.053564999252557755,
-0.0257703959941864,
-0.06788848340511322,
-0.025060895830392838,
0.11764626950025558,
0.09666788578033447,
0.2362036108970642,
-0.08588217943906784,
-0.10942433029413223,
0.3337862491607666,
0.23334994912147522,
-0.017450768500566483,
-0.26969102025032043,
-0.18541540205478668,
-0.09128902107477188,
0.3808516263961792,
-0.1617778241634369,
0.11387023329734802,
0.1146673783659935,
0.08229200541973114,
0.4596896469593048,
0.37100574374198914,
0.16962580382823944,
-0.032881829887628555,
-0.1256030648946762,
0.06068645045161247,
0.3149350881576538,
-0.2551383376121521,
-0.031055528670549393,
0.030993850901722908,
0.08489250391721725,
0.01131515670567751,
0.4787459075450897,
0.1104656308889389,
0.18770933151245117,
0.46509063243865967,
-0.024846239015460014,
0.28660503029823303,
0.11356012523174286,
0.02563723735511303,
-0.1688523143529892,
0.24639837443828583,
-0.10974644869565964,
0.1416638046503067,
-0.04370351880788803,
-0.16014130413532257,
-0.21726955473423004,
-0.05533995479345322,
-0.1343214362859726,
0.1474778950214386,
-0.16341012716293335,
-0.0035560510586947203,
-0.030031563714146614,
-0.08438486605882645,
-0.4169692099094391,
-0.19881340861320496,
-0.08742303401231766,
-0.17859825491905212,
0.13602955639362335,
0.22873634099960327,
0.0039018194656819105,
-0.299653023481369,
0.0245341993868351,
0.10270356386899948,
0.05215981975197792,
0.2422717809677124,
0.2836422920227051,
-0.2555299401283264,
0.20373868942260742,
0.25079455971717834,
0.3229713439941406,
-0.08332730084657669,
0.3195423483848572,
0.1042080819606781,
0.17333748936653137,
-0.33305448293685913,
-0.2613292932510376,
0.02995317429304123,
-0.26567304134368896,
0.02196010947227478,
0.14417757093906403,
0.3015912175178528,
-0.1541232019662857,
0.40297776460647583,
0.28827446699142456,
-0.40482091903686523,
0.2984382212162018,
0.19741959869861603,
-0.013380184769630432,
-0.4324820339679718,
0.3722928464412689,
-0.004262408707290888,
-0.033342234790325165,
-0.01842866837978363,
-0.05647457763552666,
-0.14634886384010315,
-0.09184516966342926,
0.18876875936985016,
0.024733664467930794,
0.344562292098999,
-0.11978963017463684,
0.16970738768577576,
-0.08211859315633774,
0.3426368236541748,
-0.03985537588596344,
0.07637857645750046,
-0.41617682576179504,
-0.13557204604148865,
-0.40276777744293213,
0.16092485189437866,
-0.009899660013616085,
0.11584585160017014,
0.03411318361759186,
0.24736560881137848,
-0.24587173759937286,
0.2662315368652344,
0.13092565536499023,
0.04371926933526993,
-0.035961050540208817,
0.0830051526427269,
-0.344451367855072,
0.04566299915313721,
-0.2424386888742447,
-0.11395738273859024,
0.24534901976585388,
-0.13676075637340546,
-0.17526879906654358,
-0.12875404953956604,
0.2528266906738281,
-0.13213834166526794,
0.16158919036388397,
0.12474898248910904,
0.44397786259651184,
0.29619333148002625,
0.06820622831583023,
0.17735660076141357,
-0.10893485695123672,
0.10173264145851135,
-0.09917811304330826,
0.031704701483249664,
-0.057324305176734924,
0.254975825548172,
0.11167550086975098,
0.3584686815738678,
-0.019524194300174713,
-0.1864132583141327,
-0.2227337807416916,
0.24487121403217316,
0.3298006057739258,
-0.2393912672996521,
-0.03452692925930023,
0.27428460121154785,
-0.14624649286270142,
-0.10390771180391312,
0.04260466620326042,
0.27577099204063416,
0.04537907987833023,
0.47976070642471313,
-0.10387061536312103,
-0.444988489151001,
0.5055988430976868,
0.0036407785955816507,
-0.3741855323314667,
0.20254147052764893,
0.31591367721557617,
0.3365117311477661,
-0.12872731685638428,
-0.4725494980812073,
0.12506203353405,
0.49365541338920593,
-0.11353287845849991,
-0.09477453678846359,
0.282654732465744,
-0.2521481215953827,
0.02807610109448433,
0.19828110933303833,
-0.15385307371616364,
0.02790141850709915,
-0.07740586251020432,
0.0954032689332962,
-0.06942833214998245
] |
https://github.com/huggingface/datasets/issues/1733 | connection issue with glue, what is the data url for glue? | Hello @juliahane, which config of GLUE causes you trouble?
The URLs are defined in the dataset script source code: https://github.com/huggingface/datasets/blob/master/datasets/glue/glue.py | Hi
my codes sometimes fails due to connection issue with glue, could you tell me how I can have the URL datasets library is trying to read GLUE from to test the machines I am working on if there is an issue on my side or not
thanks | 20 | connection issue with glue, what is the data url for glue?
Hi
my codes sometimes fails due to connection issue with glue, could you tell me how I can have the URL datasets library is trying to read GLUE from to test the machines I am working on if there is an issue on my side or not
thanks
Hello @juliahane, which config of GLUE causes you trouble?
The URLs are defined in the dataset script source code: https://github.com/huggingface/datasets/blob/master/datasets/glue/glue.py | [
-0.055291593074798584,
0.011869311332702637,
-0.042774029076099396,
0.2993859350681305,
0.30105993151664734,
-0.268480509519577,
0.20354053378105164,
0.08158136159181595,
0.1122899055480957,
0.12633654475212097,
0.06428955495357513,
-0.06481533497571945,
0.263243705034256,
0.19455544650554657,
0.20058408379554749,
-0.012912905775010586,
-0.11071058362722397,
-0.08579527586698532,
-0.379093199968338,
0.06953790038824081,
-0.2274179756641388,
0.13393492996692657,
-0.25695669651031494,
0.15409304201602936,
-0.23317669332027435,
-0.018227754160761833,
-0.24089373648166656,
0.14167554676532745,
-0.1169203370809555,
-0.3114699423313141,
0.2458857297897339,
0.27225375175476074,
0.015769442543387413,
0.24517998099327087,
-0.00010945380927296355,
-0.08543242514133453,
0.4476228654384613,
0.05186551436781883,
-0.08572452515363693,
-0.0963326022028923,
-0.4144304394721985,
-0.15834856033325195,
0.12988443672657013,
-0.20394572615623474,
-0.17282022535800934,
0.43336430191993713,
0.14084872603416443,
-0.3225313127040863,
0.18614351749420166,
0.14745822548866272,
0.2255823314189911,
0.3084511458873749,
0.23736564815044403,
0.0379096120595932,
0.35100454092025757,
-0.24360324442386627,
0.1521850973367691,
0.4593854248523712,
0.3264586329460144,
-0.17348340153694153,
0.11336055397987366,
0.10722143203020096,
0.13780249655246735,
-0.003830766072496772,
-0.07072694599628448,
0.0960998609662056,
-0.22171948850154877,
-0.33291491866111755,
0.07002517580986023,
0.30060315132141113,
0.3522767424583435,
-0.14569450914859772,
-0.2870567739009857,
0.06235828995704651,
-0.16343086957931519,
0.36140045523643494,
0.3465103805065155,
0.23728503286838531,
0.08614490926265717,
0.28204184770584106,
-0.1781608760356903,
-0.2360919564962387,
-0.2536134123802185,
0.29707571864128113,
0.050537895411252975,
-0.04720043018460274,
-0.2656107246875763,
0.20729433000087738,
-0.006123625207692385,
-0.21434028446674347,
-0.07645903527736664,
-0.14810745418071747,
-0.03747576102614403,
0.10164309293031693,
-0.18903248012065887,
-0.12316997349262238,
-0.1298275887966156,
0.5392324924468994,
0.37875112891197205,
0.044204551726579666,
0.027443405240774155,
0.036321356892585754,
-0.1351928412914276,
0.22676599025726318,
0.45347610116004944,
-0.12656298279762268,
0.12746500968933105,
-0.0749853327870369,
0.558650553226471,
0.13273023068904877,
-0.1617053896188736,
-0.23156355321407318,
0.07218165695667267,
-0.23838397860527039,
-0.19696027040481567,
-0.18526385724544525,
0.42476874589920044,
-0.31795579195022583,
-0.018046792596578598,
-0.02072162926197052,
-0.2300949990749359,
0.02160818874835968,
0.08703669905662537,
0.3594590127468109,
-0.3293735682964325,
0.03288373351097107,
-0.007937217131257057,
-0.11254917830228806,
-0.16148501634597778,
-0.14754416048526764,
-0.17004255950450897,
0.03875157609581947,
-0.23266395926475525,
0.07955962419509888,
0.029200479388237,
-0.21728041768074036,
0.08851758390665054,
0.07192013412714005,
-0.16321469843387604,
-0.08566184341907501,
0.017256900668144226,
-0.12950143218040466,
0.13281242549419403,
0.17236177623271942,
0.13863161206245422,
0.21625307202339172,
-0.11344492435455322,
-0.3098357319831848,
-0.039017099887132645,
-0.10241743922233582,
-0.336496502161026,
-0.07334862649440765,
-0.014145471155643463,
0.16981863975524902,
-0.44614294171333313,
0.0614762157201767,
-0.050490621477365494,
-0.1832018941640854,
-0.36201393604278564,
0.05070003122091293,
0.06762593984603882,
0.03619777038693428,
0.0771712064743042,
-0.47203657031059265,
0.3285968005657196,
0.4581773281097412,
-0.2045363485813141,
0.02998875267803669,
0.2047373354434967,
-0.28998035192489624,
-0.16105277836322784,
0.24461807310581207,
-0.027542293071746826,
-0.23172180354595184,
-0.31049689650535583,
0.30716508626937866,
0.20974741876125336,
-0.45379990339279175,
-0.5420529246330261,
0.5876685380935669,
-0.17910189926624298,
-0.2067996710538864,
-0.012593540363013744,
0.18525362014770508,
0.14989717304706573,
0.05112149193882942,
0.008908904157578945,
0.5321072340011597,
-0.06032390892505646,
-0.1297147125005722,
-0.2670770287513733,
-0.2808825671672821,
0.011255220510065556,
0.07508489489555359,
-0.19246520102024078,
-0.1969621181488037,
0.30126872658729553,
-0.3112695813179016,
0.2584022879600525,
0.2315502017736435,
-0.0003224111278541386,
0.23147043585777283,
0.4709130823612213,
0.11369401216506958,
0.1910981684923172,
0.014615345746278763,
-0.301143079996109,
0.06701543182134628,
0.08953750878572464,
0.016155553981661797,
-0.13451449573040009,
-0.12804864346981049,
-0.0405261404812336,
0.0316537506878376,
-0.051964133977890015,
-0.036687735468149185,
0.16407163441181183,
-0.09813940525054932,
0.1427839994430542,
0.20405209064483643,
-0.09565368294715881,
0.506995439529419,
0.044910408556461334,
0.20549124479293823,
-0.3476511836051941,
0.7957615256309509,
-0.06284495443105698,
-0.08313652873039246,
0.16797484457492828,
0.15813025832176208,
0.35773009061813354,
-0.24062125384807587,
-0.07933622598648071,
0.5479311347007751,
0.0030465296003967524,
0.20871974527835846,
0.4648139476776123,
0.36195626854896545,
0.2616007328033447,
-0.26795580983161926,
0.17669153213500977,
0.1234833225607872,
0.13185898959636688,
0.052885379642248154,
0.2697489559650421,
0.0565306730568409,
-0.09290990233421326,
0.3933546245098114,
0.2558865249156952,
0.2535199522972107,
-0.08854930847883224,
-0.23069919645786285,
-0.33751729130744934,
0.025789408013224602,
0.18212316930294037,
-0.010281491093337536,
0.3197615444660187,
0.06655661016702652,
-0.1968088299036026,
0.03436672315001488,
0.2283056527376175,
-0.2139407843351364,
0.1477043479681015,
-0.12188650667667389,
-0.24276994168758392,
-0.05339578539133072,
0.0949438065290451,
0.42479076981544495,
0.39730843901634216,
0.15569162368774414,
-0.15716971457004547,
0.12785552442073822,
-0.10301031917333603,
-0.17159685492515564,
0.15714512765407562,
0.012075463309884071,
-0.1970631331205368,
-0.21061739325523376,
-0.17563650012016296,
-0.17590637505054474,
-0.06281991302967072,
-0.04010625183582306,
-0.2609093189239502,
0.004922444932162762,
-0.4890078902244568,
-0.1162075623869896,
-0.4256092309951782,
-0.4683547914028168,
-0.22943881154060364,
-0.24131497740745544,
-0.4593437612056732,
-0.42354902625083923,
-0.21111932396888733,
-0.1315099596977234,
0.040494222193956375,
0.04194755479693413,
-0.04517621919512749,
0.22961294651031494,
-0.16447170078754425,
0.016780592501163483,
-0.04427764192223549,
-0.15988636016845703,
-0.3016822934150696,
0.09086916595697403,
0.038463693112134933,
0.307738333940506,
0.3564950227737427,
-0.13105885684490204,
0.20437826216220856,
-0.3110777735710144,
-0.18254069983959198,
0.0033888027537614107,
0.11272988468408585,
0.5722730159759521,
0.4303121566772461,
0.38334986567497253,
0.38120049238204956,
0.010215621441602707,
0.38644641637802124,
-0.08843210339546204,
0.13468119502067566,
-0.14408522844314575,
0.18377040326595306,
-0.13049864768981934,
0.1290678083896637,
-0.14684194326400757,
-0.37783193588256836,
-0.09452825784683228,
0.22019889950752258,
-0.3047659397125244,
0.08804003149271011,
-0.15570050477981567,
-0.04841269925236702,
0.23648743331432343,
-0.3831411600112915,
-0.10400258749723434,
-0.23108269274234772,
-0.5189390182495117,
0.16454677283763885,
-0.09067218750715256,
-0.47402089834213257,
-0.007620735093951225,
0.05136527866125107,
0.17668083310127258,
0.05590872839093208,
-0.39932572841644287,
-0.521678626537323,
-0.0929369106888771,
0.02214447408914566,
0.3070881962776184,
0.32703256607055664,
0.14750267565250397,
-0.20898351073265076,
0.030443275347352028,
-0.1695893406867981,
-0.24739688634872437,
0.16640743613243103,
0.002056111115962267,
0.27405571937561035,
0.5102773308753967,
0.2605575919151306,
0.04841237515211105,
0.19508656859397888,
0.16777808964252472,
-0.1330777108669281,
0.25339820981025696,
-0.18154941499233246,
0.477016806602478,
0.31293150782585144,
-0.3273971974849701,
-0.06289408355951309,
-0.015464263036847115,
-0.04862918704748154,
0.03278736770153046,
0.2938309907913208,
0.1585814207792282,
-0.36415043473243713,
-0.111448273062706,
-0.38029730319976807,
-0.3738033175468445,
-0.1508464366197586,
0.035063162446022034,
0.13273152709007263,
0.09210579097270966,
-0.04862230643630028,
0.1415051519870758,
-0.14455439150333405,
0.09769648313522339,
0.40922409296035767,
0.06537102907896042,
-0.14417092502117157,
-0.3791986107826233,
-0.45379364490509033,
-0.343048095703125,
0.44174376130104065,
-0.04031801223754883,
0.5260642766952515,
-0.23941168189048767,
0.242141455411911,
0.19496183097362518,
0.02288447692990303,
0.6257149577140808,
-0.816490888595581,
-0.007050789892673492,
0.09283491969108582,
0.03289121761918068,
-0.35614779591560364,
0.12840406596660614,
-0.11575497686862946,
-0.02727879211306572,
0.3937644064426422,
0.24051029980182648,
-0.24474431574344635,
-0.18830886483192444,
0.13865768909454346,
0.005434192717075348,
-0.1128372773528099,
-0.24779576063156128,
0.0030018482357263565,
-0.2437547892332077,
-0.05499516427516937,
-0.19954168796539307,
-0.16930775344371796,
-0.08941256254911423,
0.242460697889328,
-0.09165510535240173,
-0.02163752168416977,
-0.046458613127470016,
0.062143344432115555,
-0.13632622361183167,
0.11052445322275162,
-0.1554066687822342,
0.22566398978233337,
0.4375852346420288,
0.2917260229587555,
-0.19477589428424835,
0.22322337329387665,
-0.2668701708316803,
0.12804114818572998,
-0.04547342285513878,
-0.02289697714149952,
0.5653001666069031,
0.3047229051589966,
-0.127505362033844,
0.22420062124729156,
0.012050649151206017,
0.09398894757032394,
-0.26462599635124207,
0.05655616149306297,
0.3686782121658325,
0.17568878829479218,
-0.2953343391418457,
-0.3789607286453247,
0.2947137951850891,
0.0836954340338707,
-0.24959057569503784,
0.19245025515556335,
0.3177802860736847,
-0.1595832109451294,
0.20432184636592865,
-0.14478085935115814,
1.0169464349746704,
0.034938931465148926,
-0.08453819900751114,
-0.06150277704000473,
-0.49951452016830444,
0.3972771465778351,
0.053631894290447235,
-0.09969550371170044,
-0.4945424199104309,
-0.22772066295146942,
-0.20829761028289795,
-0.26429396867752075,
0.20486557483673096,
-0.03832320496439934,
-0.19435083866119385,
0.5626397728919983,
-0.15560536086559296,
0.2548738718032837,
-0.05579701438546181,
0.39831045269966125,
-0.04340194910764694,
0.12834909558296204,
-0.2900546193122864,
0.20980046689510345,
-0.10406281054019928,
0.365492582321167,
-0.050056323409080505,
-0.14200909435749054,
0.1566394865512848,
-0.24940066039562225,
-0.3668980896472931,
0.026624927297234535,
-0.7568397521972656,
-0.04917377233505249,
0.2383577972650528,
0.04572286829352379,
-0.13461780548095703,
0.053723905235528946,
0.14963845908641815,
0.4605712890625,
-0.2692960500717163,
0.11164331436157227,
-0.024833250790834427,
-0.18194130063056946,
0.2858280539512634,
0.24632582068443298,
0.026792220771312714,
-0.10778120160102844,
-0.32964983582496643,
0.009689098224043846,
0.15517836809158325,
-0.1951407641172409,
-0.043173134326934814,
-0.06180296465754509,
-0.013953890651464462,
-0.3604126572608948,
-0.15865254402160645,
-0.1269039362668991,
0.21360312402248383,
0.07613374292850494,
0.1427556723356247,
0.21272851526737213,
0.042380157858133316,
0.298039972782135,
0.25408273935317993,
-0.12879642844200134,
-0.0947677344083786,
0.4355384111404419,
-0.3086754381656647,
0.006369825452566147,
0.03789352998137474,
-0.03396625071763992,
-0.22203660011291504,
-0.14526797831058502,
0.2257872372865677,
0.28039827942848206,
-0.1841595470905304,
-0.15706275403499603,
-0.13352815806865692,
0.21812385320663452,
-0.22233454883098602,
-0.23380345106124878,
0.2138872742652893,
0.151924267411232,
-0.07021395862102509,
-0.5190092921257019,
0.050764136016368866,
0.35756486654281616,
0.19582515954971313,
0.13841670751571655,
-0.06748490035533905,
-0.2428612858057022,
0.19875220954418182,
-0.13099351525306702,
-0.3228833079338074,
0.20709224045276642,
-0.2509312331676483,
0.03429911658167839,
0.5042772889137268,
-0.12795467674732208,
0.3872487246990204,
-0.15079408884048462,
0.15160442888736725,
-0.2329692244529724,
-0.18978862464427948,
-0.13673922419548035,
-0.09134320914745331,
0.12420593202114105,
-0.05183587968349457,
-0.198739692568779,
-0.13999038934707642,
-0.5320916175842285,
0.08676033467054367,
0.06536071002483368,
-0.04127183184027672,
0.131013885140419,
-0.07362032681703568,
-0.19852599501609802,
-0.11118665337562561,
-0.1988464593887329,
-0.23439931869506836,
0.5295161008834839,
-0.05173949897289276,
0.42886921763420105,
0.02204778976738453,
-0.007559680845588446,
-0.12917107343673706,
-0.2968684732913971,
-0.015787549316883087,
0.14752420783042908,
-0.15459579229354858,
-0.049559611827135086,
0.23620985448360443,
-0.06820524483919144,
-0.10052729398012161,
0.24182720482349396,
0.46605536341667175,
0.08941920101642609,
-0.26416027545928955,
0.11115101724863052,
0.15867842733860016,
0.19030864536762238,
0.09851983934640884,
0.08053629845380783,
0.24813108146190643,
0.05098216235637665,
0.06279918551445007,
0.07102766633033752,
0.1104898601770401,
0.16089801490306854,
0.07997764647006989,
-0.027999326586723328,
0.601879894733429,
-0.012474989518523216,
-0.1534200757741928,
-0.04284646734595299,
-0.11308607459068298,
-0.02451883815228939,
0.13924947381019592,
0.1599646955728531,
-0.029767431318759918,
-0.1557416170835495,
0.02459477074444294,
0.05813942849636078,
0.3666994571685791,
0.1528996080160141,
0.25316423177719116,
0.0034273327328264713,
-0.1608126014471054,
0.15761451423168182,
-0.25789180397987366,
-0.10133974999189377,
-0.18507231771945953,
0.7514369487762451,
-0.335457980632782,
-0.019786864519119263,
0.042204272001981735,
0.219243124127388,
0.10111750662326813,
-0.18908467888832092,
0.03552652895450592,
-0.02110152505338192,
-0.4360973834991455,
-0.23702189326286316,
0.023533284664154053,
-0.23582527041435242,
0.2895057797431946,
0.04767953231930733,
0.2070527970790863,
-0.304205983877182,
0.07687947899103165,
0.06709405779838562,
0.13679540157318115,
-0.1674615740776062,
0.22071051597595215,
-0.27106955647468567,
0.5232746601104736,
0.24782238900661469,
0.43615612387657166,
0.41090482473373413,
0.24752430617809296,
-0.08985412865877151,
0.08241742104291916,
0.013576406985521317,
-0.08780491352081299,
0.07346995919942856,
0.18214905261993408,
-0.012920496985316277,
0.05447820946574211,
0.4246550500392914,
0.20858550071716309,
-0.0741775780916214,
0.005021566990762949,
-0.2670273184776306,
0.26475754380226135,
-0.17590591311454773,
0.4376748502254486,
-0.3028047978878021,
-0.04409656301140785,
-0.4799283742904663,
-0.1268559992313385,
-0.5758996605873108,
-0.12652504444122314,
0.3075520396232605,
-0.334597110748291,
0.11557048559188843,
-0.2402159422636032,
0.0843651294708252,
-0.07558420300483704,
0.4613204002380371,
0.49234479665756226,
0.6064282655715942,
-0.37034568190574646,
-0.3879166841506958,
-0.5264347791671753,
-0.11737099289894104,
-0.11295105516910553,
-0.10752472281455994,
-0.09769975394010544,
0.05654110014438629,
-0.23802663385868073,
0.24431495368480682,
0.15630587935447693,
0.35932207107543945,
-0.18740414083003998,
-0.07644125074148178,
-0.1741310954093933,
-0.033634450286626816,
-0.1541619598865509,
0.014357516542077065,
0.03078342229127884,
-0.20106758177280426,
0.2596474587917328,
-0.05009566619992256,
0.02870544046163559,
0.06354041397571564,
0.07633114606142044,
-0.06952162832021713,
-0.35778549313545227,
0.2602362036705017,
0.1772950142621994,
0.42836475372314453,
0.17209459841251373,
0.07872405648231506,
-0.3032384514808655,
-0.3302256464958191,
0.04901867359876633,
-0.05780210718512535,
-0.13502895832061768,
-0.17041775584220886,
0.18712566792964935,
-0.19007772207260132,
-0.2916153371334076,
0.09897041320800781,
-0.16068333387374878,
0.5082815289497375,
0.20393668115139008,
-0.2726272642612457,
0.13248351216316223,
0.032269205898046494,
0.14106282591819763,
-0.000993374502286315,
-0.17010332643985748,
0.12906506657600403,
0.15952201187610626,
-0.24602161347866058,
0.34639203548431396,
-0.264411598443985,
0.07832223176956177,
-0.15266865491867065,
0.4158903956413269,
-0.02163965255022049,
-0.033401038497686386,
-0.33381491899490356,
-0.19115902483463287,
0.43942469358444214,
0.04184037819504738,
-0.18307971954345703,
0.36040860414505005,
0.042894765734672546,
0.28802597522735596,
0.15442228317260742,
0.11374375224113464,
0.14436043798923492,
-0.19357939064502716,
0.06948568671941757,
-0.06323114782571793
] |
https://github.com/huggingface/datasets/issues/1731 | Couldn't reach swda.py | Hi @yangp725,
The SWDA has been added very recently and has not been released yet, thus it is not available in the `1.2.0` version of 🤗`datasets`.
You can still access it by installing the latest version of the library (master branch), by following instructions in [this issue](https://github.com/huggingface/datasets/issues/1641#issuecomment-751571471).
Let me know if this helps ! | ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.2.0/datasets/swda/swda.py
| 54 | Couldn't reach swda.py
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.2.0/datasets/swda/swda.py
Hi @yangp725,
The SWDA has been added very recently and has not been released yet, thus it is not available in the `1.2.0` version of 🤗`datasets`.
You can still access it by installing the latest version of the library (master branch), by following instructions in [this issue](https://github.com/huggingface/datasets/issues/1641#issuecomment-751571471).
Let me know if this helps ! | [
-0.2362145632505417,
-0.3874821066856384,
-0.158318430185318,
-0.004699533339589834,
0.36150333285331726,
-0.022699709981679916,
-0.06851671636104584,
0.22510330379009247,
0.026332801207900047,
0.21840517222881317,
-0.12052082270383835,
-0.00729566952213645,
0.009890337474644184,
0.3339482545852661,
-0.014037867076694965,
-0.22543279826641083,
0.05091423913836479,
0.031312938779592514,
-0.25643157958984375,
0.07755981385707855,
0.02020309679210186,
0.3259121775627136,
-0.15540626645088196,
0.22974471747875214,
-0.11346885561943054,
-0.06858330965042114,
-0.020157938823103905,
-0.07753243297338486,
-0.17578986287117004,
-0.4362722337245941,
0.5638244152069092,
0.19272151589393616,
0.12568272650241852,
0.34722134470939636,
-0.00010076379112433642,
-0.07712477445602417,
0.41861963272094727,
-0.05037099868059158,
-0.17551591992378235,
-0.30987414717674255,
0.04975816234946251,
-0.18408377468585968,
0.2123492956161499,
0.11466483771800995,
-0.2763563096523285,
-0.3036896288394928,
0.12725228071212769,
-0.09631610661745071,
0.4207451045513153,
0.044671203941106796,
0.36894726753234863,
0.2689453959465027,
0.4838210344314575,
-0.424651175737381,
-0.09245424717664719,
0.1234186515212059,
-0.08215492963790894,
0.24427610635757446,
0.060574162751436234,
-0.07621890306472778,
0.13969746232032776,
0.3529839813709259,
0.13052673637866974,
-0.04509107768535614,
0.3011719286441803,
-0.045280180871486664,
-0.19614461064338684,
-0.2342960387468338,
0.23906052112579346,
0.1528022587299347,
0.5129563808441162,
-0.26086872816085815,
-0.4449078440666199,
-0.011775181628763676,
0.06313232332468033,
0.023145074024796486,
0.16061319410800934,
-0.016283933073282242,
-0.15441320836544037,
0.12184912711381912,
-0.0956055074930191,
-0.08663364499807358,
-0.1289825290441513,
0.1462024599313736,
0.11540177464485168,
0.030599718913435936,
-0.2691115438938141,
0.0719904974102974,
0.20661911368370056,
-0.3192816972732544,
0.05281092971563339,
0.1959654986858368,
-0.10888176411390305,
0.24424786865711212,
-0.17897289991378784,
0.06871714442968369,
0.06101001799106598,
-0.015078267082571983,
0.39501723647117615,
0.08057617396116257,
-0.13448266685009003,
0.011904431506991386,
0.05855816230177879,
0.05153408274054527,
0.1297624409198761,
0.04346805438399315,
0.01653331331908703,
-0.32371610403060913,
0.26773878931999207,
0.26977354288101196,
0.1876419484615326,
-0.23959118127822876,
-0.010430189780890942,
-0.25712424516677856,
-0.31821098923683167,
-0.3037603795528412,
0.26175248622894287,
-0.2514619529247284,
-0.11706741899251938,
0.05198073014616966,
-0.06325750052928925,
-0.009885371662676334,
0.08482075482606888,
0.47074073553085327,
0.025866692885756493,
0.029521387070417404,
0.18081331253051758,
0.24895574152469635,
0.04189691320061684,
0.2536989748477936,
-0.3355826437473297,
-0.022867953404784203,
-0.09630618244409561,
-0.04007522761821747,
0.14654283225536346,
-0.2771797180175781,
0.32200801372528076,
-0.08527201414108276,
0.03941516578197479,
-0.006283062044531107,
-0.20699496567249298,
0.17217755317687988,
-0.06381849944591522,
0.36161571741104126,
0.13843421638011932,
0.10343179106712341,
0.11529678106307983,
0.060593266040086746,
-0.09697771072387695,
-0.23770712316036224,
-0.1938386708498001,
-0.2642820179462433,
-0.245822474360466,
0.26621758937835693,
-0.0662667453289032,
0.08334100991487503,
-0.10183239728212357,
0.07107696682214737,
-0.1863035261631012,
-0.10656287521123886,
-0.081584133207798,
0.03340578451752663,
0.026402078568935394,
-0.14126822352409363,
0.33963868021965027,
0.31641554832458496,
-0.22434315085411072,
-0.13302931189537048,
0.21903860569000244,
-0.3956374228000641,
-0.07674252986907959,
0.20203819870948792,
-0.23443549871444702,
-0.036295901983976364,
-0.2745140492916107,
0.07625463604927063,
0.2386869490146637,
-0.29359546303749084,
-0.43453502655029297,
0.01808115281164646,
-0.068220354616642,
-0.14563393592834473,
0.05901709944009781,
-0.012017225846648216,
-0.17742863297462463,
0.16054268181324005,
0.03085216134786606,
0.04776081070303917,
-0.03054047003388405,
-0.08099730312824249,
0.012489496730268002,
-0.29057687520980835,
-0.10291066765785217,
0.04548798128962517,
-0.008516727946698666,
0.12895290553569794,
0.17678530514240265,
-0.044749073684215546,
0.27075186371803284,
0.009345141239464283,
0.04468557983636856,
0.21540682017803192,
0.2782871723175049,
0.33029812574386597,
-0.0016548327403143048,
-0.24914400279521942,
-0.22282558679580688,
0.056306611746549606,
0.10598093271255493,
0.18170872330665588,
-0.24027307331562042,
-0.15086017549037933,
-0.23148290812969208,
0.07767033576965332,
0.027241958305239677,
-0.2084968388080597,
0.274922251701355,
0.04678810387849808,
0.4856117069721222,
0.2913156747817993,
-0.2161177694797516,
0.2894095480442047,
-0.07068133354187012,
0.20305831730365753,
-0.3141876459121704,
0.31327900290489197,
-0.1704610288143158,
-0.08103117346763611,
0.24890749156475067,
0.31512048840522766,
-0.006789535284042358,
-0.1510172039270401,
-0.02857082523405552,
0.23794344067573547,
-0.3230617642402649,
0.06750358641147614,
0.2759997546672821,
0.06089545786380768,
0.006859362591058016,
-0.3545846939086914,
0.06617168337106705,
-0.03472287207841873,
0.10702956467866898,
0.07501822710037231,
-0.006090550217777491,
0.2346142828464508,
-0.040536150336265564,
0.11805561929941177,
0.08640845865011215,
0.2939910888671875,
0.580678403377533,
0.17215241491794586,
-0.14514954388141632,
-0.08391384035348892,
0.0711125060915947,
-0.3425206243991852,
0.2790348529815674,
-0.21934416890144348,
-0.19182778894901276,
0.029559720307588577,
0.29697558283805847,
-0.010613289661705494,
-0.06165749952197075,
0.2379884123802185,
-0.25653061270713806,
0.041648417711257935,
0.036580126732587814,
0.21313916146755219,
0.2801847755908966,
0.30618733167648315,
-0.014422842301428318,
0.15214507281780243,
-0.02078556828200817,
-0.1786593347787857,
0.1268228143453598,
0.03319711983203888,
0.0013122200034558773,
-0.046808645129203796,
0.00022177134815137833,
-0.02613953687250614,
-0.408617228269577,
-0.15476256608963013,
-0.44983184337615967,
0.17960749566555023,
-0.012143292464315891,
-0.05763585492968559,
-0.20081894099712372,
-0.4285292625427246,
-0.06395482271909714,
-0.3473838269710541,
-0.4321451485157013,
-0.3055024743080139,
-0.08692990243434906,
0.12303997576236725,
0.051289405673742294,
0.2503717243671417,
-0.034496381878852844,
0.22766029834747314,
0.05683570355176926,
0.12650997936725616,
-0.22859275341033936,
-0.06262878328561783,
-0.09758032858371735,
0.15788796544075012,
0.07499745488166809,
0.14860710501670837,
0.4697659909725189,
-0.17266468703746796,
0.24277368187904358,
-0.3078087270259857,
-0.383895605802536,
-0.06816086918115616,
-0.11700240522623062,
0.1350691169500351,
0.43593737483024597,
0.2606775164604187,
0.10730911791324615,
-0.3065447211265564,
0.37730470299720764,
-0.3965025842189789,
-0.22219347953796387,
-0.1747204065322876,
-0.13981187343597412,
-0.19042886793613434,
-0.13566890358924866,
-0.07158700376749039,
-0.32900163531303406,
-0.32163259387016296,
0.44328612089157104,
0.0032812999561429024,
0.013869883492588997,
-0.1150311529636383,
0.14915654063224792,
0.354809045791626,
-0.31912195682525635,
0.0954773873090744,
-0.24157564342021942,
-0.5166894197463989,
0.13731029629707336,
-0.2456364780664444,
-0.5283470153808594,
0.2935696244239807,
0.06827326118946075,
0.35084259510040283,
-0.3473396301269531,
-0.3184235095977783,
-0.2784532606601715,
-0.2883041501045227,
0.06398634612560272,
0.0537601113319397,
0.13042668998241425,
0.36733829975128174,
-0.055444978177547455,
-0.15850096940994263,
-0.04018545523285866,
-0.36714640259742737,
0.02358909510076046,
-0.2736009359359741,
0.21289511024951935,
-0.011549192480742931,
0.5309568047523499,
0.0039978232234716415,
0.3552600145339966,
0.2560667097568512,
-0.017917800694704056,
0.2243461310863495,
-0.08521236479282379,
0.36942559480667114,
-0.16416306793689728,
-0.4451015591621399,
0.14526322484016418,
-0.016321523115038872,
0.3346743583679199,
0.1585911363363266,
0.2155846208333969,
0.2309577316045761,
-0.2864503562450409,
-0.22611571848392487,
-0.23001401126384735,
-0.15614302456378937,
-0.2680586576461792,
0.09966014325618744,
-0.10239757597446442,
-0.010520011186599731,
-0.001238022348843515,
-0.15582720935344696,
-0.0800502747297287,
0.056187935173511505,
0.4081967771053314,
-0.01666419766843319,
0.2063530832529068,
-0.4561302363872528,
0.016485152766108513,
-0.6440909504890442,
0.29026883840560913,
-0.1089191734790802,
0.11691448837518692,
-0.19101783633232117,
-0.06484140455722809,
0.108186274766922,
-0.11425082385540009,
0.7474421858787537,
0.21497784554958344,
-0.04583336040377617,
-0.03717297315597534,
-0.23700305819511414,
-0.21696677803993225,
0.017553014680743217,
0.10226523876190186,
0.0018341862596571445,
0.19101420044898987,
0.26419469714164734,
-0.16336141526699066,
-0.27797946333885193,
0.22712326049804688,
-0.0633484423160553,
-0.08076818287372589,
-0.11961618810892105,
-0.18266303837299347,
-0.37792032957077026,
-0.22931160032749176,
-0.010689269751310349,
-0.08028195053339005,
0.36678391695022583,
0.03757423534989357,
-0.1185256838798523,
-0.09724947065114975,
-0.2570379376411438,
0.09077733755111694,
0.20769421756267548,
0.06610170006752014,
0.024723321199417114,
0.12022378295660019,
0.3205240070819855,
0.26578131318092346,
0.2866654694080353,
0.3943687677383423,
0.13030917942523956,
-0.3760015070438385,
-0.027702048420906067,
0.007117610424757004,
0.23202788829803467,
0.1390182077884674,
-0.22315020859241486,
0.27718430757522583,
0.07515764981508255,
0.31670525670051575,
-0.3357444703578949,
-0.024806054309010506,
0.36931243538856506,
0.22166888415813446,
-0.11890903860330582,
-0.11890174448490143,
0.210330531001091,
0.01075613684952259,
0.09943363070487976,
0.19749347865581512,
0.5864677429199219,
-0.050374533981084824,
0.14079341292381287,
-0.12893223762512207,
0.8587404489517212,
-0.17299196124076843,
0.05969259515404701,
0.1039237231016159,
-0.18045273423194885,
0.7909549474716187,
0.07505925744771957,
-0.010505049489438534,
-0.19663266837596893,
-0.1860004961490631,
0.03896713629364967,
-0.08275298029184341,
0.33745163679122925,
-0.2728673219680786,
-0.006035140715539455,
0.14844368398189545,
0.07439649850130081,
0.2465989887714386,
-0.0903530940413475,
0.12256357818841934,
-0.11506983637809753,
-0.1350623369216919,
-0.4238070249557495,
0.29557865858078003,
0.052545879036188126,
0.5171592831611633,
-0.04675386846065521,
-0.23806409537792206,
-0.14743992686271667,
-0.31924498081207275,
-0.2377868890762329,
0.0677691102027893,
0.027591049671173096,
-0.011949734762310982,
0.2533755898475647,
-0.11834988743066788,
0.041781023144721985,
0.3251804709434509,
0.37420469522476196,
0.13076426088809967,
-0.39356163144111633,
0.07356731593608856,
-0.2684692144393921,
-0.22331522405147552,
-0.1534222960472107,
0.26870259642601013,
0.0900084599852562,
-0.21402162313461304,
-0.1347142904996872,
0.19692778587341309,
0.16106532514095306,
-0.16611024737358093,
-0.12854623794555664,
-0.11348681151866913,
-0.32863542437553406,
-0.18341466784477234,
-0.10634537041187286,
-0.10686273127794266,
0.06094574183225632,
-0.2337656468153,
0.21678952872753143,
0.1759258359670639,
-0.19009722769260406,
-0.15611238777637482,
0.27555572986602783,
-0.0521453395485878,
-0.0395326241850853,
0.5391181111335754,
-0.1666145920753479,
-0.19350717961788177,
0.36953070759773254,
0.18419186770915985,
-0.19761911034584045,
-0.2024124264717102,
-0.23599141836166382,
0.363226056098938,
-0.4715956747531891,
-0.032978758215904236,
0.18500754237174988,
-0.018784817308187485,
0.0037764781154692173,
0.12303275614976883,
0.21246947348117828,
-0.20785053074359894,
0.11336444318294525,
-0.3853943943977356,
-0.5158317685127258,
0.2861069440841675,
-0.0498594269156456,
0.21165584027767181,
-0.042657628655433655,
0.4333704113960266,
0.06293578445911407,
0.08440952003002167,
-0.41753166913986206,
0.03812626376748085,
-0.2708227336406708,
-0.16022811830043793,
-0.0243168156594038,
-0.21466198563575745,
0.32305750250816345,
0.043703921139240265,
0.2889899015426636,
-0.008658104576170444,
-0.41898924112319946,
-0.2767115831375122,
-0.04248848557472229,
0.025452665984630585,
-0.05070507526397705,
-0.13357970118522644,
0.1350363790988922,
-0.164187952876091,
-0.16903133690357208,
-0.020243901759386063,
0.1385892927646637,
0.24167978763580322,
0.026136454194784164,
-0.08398521691560745,
0.1395798921585083,
-0.052846867591142654,
-0.0023200176656246185,
0.04827632009983063,
0.14499972760677338,
0.14125953614711761,
-0.07488365471363068,
-0.07461629062891006,
-0.30474230647087097,
-0.08737362176179886,
0.024252619594335556,
0.10728177428245544,
0.02478528767824173,
-0.038952313363552094,
0.2696347236633301,
-0.08751878142356873,
-0.11884550750255585,
0.17329297959804535,
0.646787166595459,
0.09918531775474548,
-0.10121619701385498,
0.3181513845920563,
0.2585597038269043,
0.24811403453350067,
-0.4696617126464844,
-0.05169584974646568,
0.04335308074951172,
0.06584563851356506,
-0.07240929454565048,
0.0034566461108624935,
0.01574510894715786,
-0.0013172164326533675,
0.08479390293359756,
0.039455391466617584,
0.36806046962738037,
-0.15251685678958893,
0.21276141703128815,
0.2981662452220917,
0.061551306396722794,
-0.021719548851251602,
0.257370263338089,
0.2060714066028595,
0.15578526258468628,
0.44882291555404663,
-0.333922803401947,
0.2098378688097,
-0.3700530230998993,
0.21861131489276886,
0.00459030456840992,
-0.2674555480480194,
-0.18446210026741028,
0.04442932829260826,
-0.03078325465321541,
-0.2394089698791504,
-0.24904154241085052,
0.4403611719608307,
-0.23647086322307587,
-0.19678080081939697,
-0.30079394578933716,
0.27219948172569275,
-0.09363175183534622,
-0.312300443649292,
0.08338232338428497,
-0.2114216387271881,
0.16324900090694427,
-0.1342037469148636,
0.0923008844256401,
-0.21548981964588165,
0.29866909980773926,
-0.1910535991191864,
0.030688630416989326,
-0.37901875376701355,
-0.3417527675628662,
0.10061729699373245,
0.08177031576633453,
0.102798692882061,
0.13981516659259796,
0.10216470807790756,
-0.07742011547088623,
0.14952287077903748,
0.44956550002098083,
0.45102500915527344,
0.13565480709075928,
0.242674320936203,
0.169846773147583,
-0.22726525366306305,
-0.1259879618883133,
-0.010740700177848339,
0.3142697215080261,
0.27913177013397217,
0.045325130224227905,
0.2673902213573456,
0.2546360492706299,
-0.21563012897968292,
0.07089284807443619,
-0.15342894196510315,
0.3682321310043335,
-0.17059476673603058,
0.19544075429439545,
-0.4465487003326416,
-0.008283579722046852,
-0.30410367250442505,
0.20655885338783264,
-0.39229390025138855,
0.030347608029842377,
0.01159343495965004,
-0.13884474337100983,
0.03248613700270653,
-0.34602734446525574,
0.15928123891353607,
-0.04558735340833664,
0.5311892032623291,
0.24245545268058777,
0.3454274833202362,
0.07570696622133255,
-0.3340870141983032,
-0.4518875777721405,
0.023364951834082603,
-0.038793064653873444,
0.1890481561422348,
-0.20422719419002533,
-0.04236867278814316,
-0.02807936817407608,
-0.04440680146217346,
0.14552022516727448,
-0.05603712797164917,
0.020711280405521393,
-0.226963609457016,
-0.16576048731803894,
-0.07350241392850876,
-0.25789394974708557,
-0.083043172955513,
0.11162696033716202,
0.03629795461893082,
0.1515350192785263,
-0.2637985348701477,
0.10115310549736023,
0.07036666572093964,
0.5182721018791199,
-0.1915937066078186,
-0.12131725251674652,
0.1917879581451416,
0.10847965627908707,
0.2277490794658661,
0.028430884703993797,
0.01283279899507761,
-0.30241701006889343,
-0.40640750527381897,
-0.17538952827453613,
0.20508956909179688,
0.0517958365380764,
0.3251955211162567,
-0.1819048672914505,
-0.2565447986125946,
-0.15854401886463165,
0.1949697732925415,
0.010982868261635303,
0.24202457070350647,
-0.22205714881420135,
0.35353904962539673,
-0.03861404210329056,
0.0018602571217343211,
0.387048602104187,
0.12967555224895477,
-0.09725508838891983,
0.10255449265241623,
-0.12590494751930237,
-0.21236646175384521,
0.643574595451355,
-0.2412496656179428,
0.05171869322657585,
-0.0005432696780189872,
0.0938078835606575,
0.25183168053627014,
-0.4103263318538666,
-0.48380041122436523,
0.296105295419693,
0.14209327101707458,
0.1774173229932785,
-0.09353026002645493,
0.345714807510376,
-0.22208954393863678,
-0.11391159892082214,
0.0008392567397095263,
0.3805654048919678,
0.03731010854244232,
-0.020749187096953392,
0.2242957502603531,
-0.05143868550658226
] |
https://github.com/huggingface/datasets/issues/1729 | Is there support for Deep learning datasets? | Hi @ZurMaD!
Thanks for your interest in 🤗 `datasets`. Support for image datasets is at an early stage, with CIFAR-10 added in #1617
MNIST is also on the way: #1730
If you feel like adding another image dataset, I would advise starting by reading the [ADD_NEW_DATASET.md](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md) guide. New datasets are always very much appreciated 🚀
| I looked around this repository and looking the datasets I think that there's no support for images-datasets. Or am I missing something? For example to add a repo like this https://github.com/DZPeru/fish-datasets | 55 | Is there support for Deep learning datasets?
I looked around this repository and looking the datasets I think that there's no support for images-datasets. Or am I missing something? For example to add a repo like this https://github.com/DZPeru/fish-datasets
Hi @ZurMaD!
Thanks for your interest in 🤗 `datasets`. Support for image datasets is at an early stage, with CIFAR-10 added in #1617
MNIST is also on the way: #1730
If you feel like adding another image dataset, I would advise starting by reading the [ADD_NEW_DATASET.md](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md) guide. New datasets are always very much appreciated 🚀
| [
-0.24644482135772705,
-0.07323762774467468,
-0.23498958349227905,
-0.09773354977369308,
0.28045961260795593,
0.03026409260928631,
0.22501833736896515,
0.08640462905168533,
0.08424601703882217,
0.24715161323547363,
-0.01707732304930687,
0.028118792921304703,
-0.30469051003456116,
0.34195032715797424,
0.2932601869106293,
-0.16685307025909424,
0.30303850769996643,
0.0297717172652483,
0.11244665086269379,
-0.18834899365901947,
-0.10116659104824066,
-0.06209824979305267,
-0.179117351770401,
-0.3200942575931549,
-0.19097432494163513,
-0.07780303061008453,
-0.26754361391067505,
-0.2924896776676178,
-0.23476023972034454,
-0.23871181905269623,
0.3272104859352112,
0.03727852925658226,
0.2575368583202362,
0.6088253259658813,
-0.0001094965627999045,
0.09360050410032272,
0.18885205686092377,
0.03450000658631325,
0.1902191936969757,
-0.24890531599521637,
-0.41439560055732727,
-0.35012924671173096,
-0.09920110553503036,
-0.16305074095726013,
-0.14173762500286102,
-0.16599589586257935,
0.34055253863334656,
-0.09209077060222626,
0.2136179655790329,
0.10950016230344772,
0.19093789160251617,
0.028652645647525787,
0.15268637239933014,
-0.01245146058499813,
0.1259145885705948,
0.4637608230113983,
-0.419246643781662,
0.07872666418552399,
0.3635122776031494,
-0.08408766239881516,
0.30616438388824463,
0.3910605013370514,
-0.0415557362139225,
-0.07817751914262772,
0.05742879584431648,
0.12046492844820023,
0.009572073817253113,
-0.600534975528717,
-0.06937124580144882,
0.3455680310726166,
0.4273530840873718,
0.16948942840099335,
-0.4737813174724579,
-0.2742059528827667,
0.11353090405464172,
-0.30567267537117004,
-0.3639111816883087,
0.33758389949798584,
0.08543714135885239,
-0.027484163641929626,
-0.5430437922477722,
-0.5504984855651855,
-0.17162291705608368,
0.35259562730789185,
0.007194495294243097,
0.16531513631343842,
0.03432900831103325,
0.05962291359901428,
0.027578596025705338,
-0.046401578933000565,
-0.03501228615641594,
-0.12185055762529373,
-0.035485729575157166,
0.18907153606414795,
-0.3749035596847534,
-0.3790488541126251,
-0.3840416669845581,
-0.04894442483782768,
0.3786396384239197,
0.19538430869579315,
0.02681855484843254,
0.0727601870894432,
-0.5005360841751099,
0.19832143187522888,
0.27760934829711914,
-0.04878842085599899,
-0.5262483954429626,
0.23842628300189972,
0.499291330575943,
-0.10259637236595154,
0.26863205432891846,
0.018273362889885902,
-0.2126104235649109,
0.03459049016237259,
-0.09597793966531754,
-0.3556537926197052,
0.08203339576721191,
0.055513523519039154,
0.24504800140857697,
-0.3079965114593506,
-0.2041279524564743,
-0.1634492725133896,
-0.0028691207990050316,
-0.0029011880978941917,
-0.029965389519929886,
-0.05492173507809639,
-0.07716038078069687,
0.3101504147052765,
0.004945965949445963,
-0.20315827429294586,
-0.007723159622400999,
0.14468489587306976,
-0.3078581988811493,
0.15878212451934814,
0.15611623227596283,
-0.0348396971821785,
0.169746533036232,
-0.35720282793045044,
0.2749169170856476,
0.1219060868024826,
0.16739873588085175,
-0.1888691484928131,
0.018428128212690353,
0.400996595621109,
-0.17805376648902893,
-0.39729928970336914,
-0.09998117387294769,
0.16938097774982452,
-0.10833887755870819,
0.06791537255048752,
-0.40451565384864807,
0.07208202034235,
-0.22084572911262512,
0.11230114102363586,
-0.02654583938419819,
-0.3100793659687042,
-0.5300797820091248,
0.4608232378959656,
-0.14732536673545837,
-0.10776155441999435,
0.14823873341083527,
-0.05100610852241516,
-0.33305051922798157,
-0.16780774295330048,
0.3007891774177551,
-0.09455415606498718,
-0.16570986807346344,
-0.11411581188440323,
-0.3624177873134613,
0.2976294159889221,
-0.009521620348095894,
0.18031762540340424,
-0.10277622938156128,
-0.14705081284046173,
-0.01564965769648552,
0.14191403985023499,
0.4793440103530884,
-0.11607576906681061,
-0.18220137059688568,
-0.09772593528032303,
0.3983665108680725,
-0.3402421474456787,
-0.21297791600227356,
0.48648449778556824,
0.20055273175239563,
0.07317181676626205,
-0.27010127902030945,
0.32755157351493835,
-0.14038503170013428,
-0.1825857311487198,
0.1647540032863617,
-0.2831166386604309,
-0.23802503943443298,
0.4602392315864563,
0.43314504623413086,
-0.012694669887423515,
0.34756582975387573,
-0.21914410591125488,
-0.16257452964782715,
-0.006864061579108238,
0.08314143866300583,
-0.019910382106900215,
0.6625744700431824,
0.12918874621391296,
0.1037045493721962,
-0.3360137343406677,
-0.09761609882116318,
0.27039802074432373,
0.20044313371181488,
0.4144097566604614,
0.09118687361478806,
0.01190650463104248,
0.2750263214111328,
0.2026725560426712,
-0.08726941794157028,
-0.15728698670864105,
0.007864153943955898,
-0.1088453009724617,
0.10644137859344482,
0.03088809922337532,
-0.3539697527885437,
0.03720993548631668,
-0.09234075248241425,
0.2923874258995056,
-0.21964557468891144,
0.6330332159996033,
-0.10565242916345596,
-0.015470308251678944,
0.07860229909420013,
0.19630582630634308,
-0.1879233866930008,
-0.10498303920030594,
0.27163827419281006,
0.05107869207859039,
-0.015254669822752476,
-0.06815218925476074,
0.3380042016506195,
0.47098690271377563,
0.5233407616615295,
-0.6096268892288208,
0.1475699245929718,
0.012997949495911598,
0.02296462655067444,
0.018382495269179344,
-0.22319963574409485,
0.26364707946777344,
-0.06077831611037254,
0.2634525001049042,
-0.08059823513031006,
0.05522587522864342,
0.2424296736717224,
-0.017649784684181213,
-0.18630285561084747,
0.03401735797524452,
-0.1354721188545227,
-0.23175476491451263,
0.07779941707849503,
-0.31334981322288513,
-0.3291059136390686,
-0.4214860796928406,
-0.03250128775835037,
-0.07556653022766113,
0.1321128010749817,
0.265223890542984,
-0.14665137231349945,
0.136095330119133,
0.28101199865341187,
0.45808106660842896,
0.2789269685745239,
0.27992960810661316,
-0.1267131268978119,
-0.20050053298473358,
-0.08994077146053314,
0.011150955222547054,
-0.006855450104922056,
0.23191747069358826,
0.4414569139480591,
-0.09220749884843826,
0.25563323497772217,
0.08631891757249832,
-0.2216322422027588,
-0.17619600892066956,
-0.0946415364742279,
-0.05665537714958191,
0.23196198046207428,
-0.06031586602330208,
-0.09358690679073334,
-0.4871143102645874,
0.1330733448266983,
0.14244425296783447,
-0.30221667885780334,
-0.07202693074941635,
0.03892143815755844,
-0.2811462879180908,
0.3109103739261627,
0.25047537684440613,
-0.18767483532428741,
0.5262498259544373,
-0.11410599946975708,
0.16866089403629303,
-0.3002621829509735,
0.021965879946947098,
0.0994809940457344,
0.16732430458068848,
0.10265412926673889,
-0.31924259662628174,
0.39416420459747314,
0.4315931797027588,
-0.0025455462746322155,
-0.25961586833000183,
-0.6218696236610413,
0.344294935464859,
-0.19615638256072998,
0.18737052381038666,
-0.003835957730188966,
0.03828622028231621,
0.11278337240219116,
0.31848233938217163,
0.18265962600708008,
-0.21164381504058838,
-0.15642638504505157,
-0.3393566906452179,
0.03483019769191742,
-0.12658341228961945,
-0.12625829875469208,
0.28304022550582886,
-0.42996853590011597,
-0.019820179790258408,
0.1755003035068512,
0.2003929316997528,
-0.07571696490049362,
0.36030322313308716,
0.44191789627075195,
-0.19685626029968262,
0.015354609116911888,
-0.13859960436820984,
-0.014558383263647556,
-0.2842700779438019,
0.4448162019252777,
-0.13992226123809814,
-0.25317052006721497,
0.36714011430740356,
-0.07292608916759491,
0.08277333527803421,
0.2562766373157501,
-0.6753513216972351,
-0.11125392466783524,
-0.20793922245502472,
0.033866990357637405,
0.2140512615442276,
0.06287900358438492,
-0.00922003760933876,
-0.21107913553714752,
-0.057975199073553085,
-0.07090184837579727,
-0.2626713514328003,
-0.11915062367916107,
0.23778735101222992,
0.3308423161506653,
0.3337477147579193,
0.3474174737930298,
-0.05082610994577408,
0.2955154776573181,
0.04184649512171745,
-0.30430838465690613,
0.5080925226211548,
0.1708454042673111,
0.3578546643257141,
-0.08226726949214935,
-0.07307662069797516,
0.15497277677059174,
-0.013997427187860012,
-0.12584078311920166,
-0.16600511968135834,
0.301125168800354,
-0.2082642912864685,
-0.3810064196586609,
0.19943088293075562,
-0.2339514195919037,
0.20778270065784454,
-0.21496042609214783,
-0.31363731622695923,
0.3180968165397644,
-0.290002703666687,
-0.24641282856464386,
-0.013235178776085377,
-0.0552353598177433,
-0.25240087509155273,
0.3302023112773895,
0.3994360566139221,
-0.0875258594751358,
-0.41256991028785706,
-0.06416608393192291,
-0.33557969331741333,
0.13413365185260773,
-0.14401544630527496,
0.12939020991325378,
-0.24952323734760284,
0.535686731338501,
0.04861455410718918,
0.1078266128897667,
0.4328632056713104,
-0.43234047293663025,
-0.4585813879966736,
-0.24890683591365814,
-0.28406569361686707,
0.24904672801494598,
0.01378337386995554,
0.03225037828087807,
-0.08042851835489273,
-0.12851455807685852,
0.46023377776145935,
0.11613062024116516,
-0.056344788521528244,
0.5523476004600525,
-0.2404552400112152,
-0.22365880012512207,
-0.22069190442562103,
0.07540977746248245,
-0.05892525240778923,
-0.13525494933128357,
-0.21695734560489655,
-0.012718195095658302,
-0.21579881012439728,
0.19387489557266235,
-0.32508137822151184,
-0.2172662615776062,
-0.2820441722869873,
0.08357781916856766,
-0.1445719599723816,
-0.08605486899614334,
0.2058275192975998,
0.07759737223386765,
-0.04323754459619522,
0.2464958280324936,
0.4906097948551178,
0.32851293683052063,
-0.20362046360969543,
-0.35078921914100647,
0.10243048518896103,
0.051310036331415176,
0.32661399245262146,
-0.001697549014352262,
0.11388470232486725,
-0.028849340975284576,
0.06645422428846359,
0.08316483348608017,
-0.29916319251060486,
0.007961710914969444,
0.5065003633499146,
0.20991280674934387,
-0.34406769275665283,
-0.41110435128211975,
0.3037991523742676,
-0.08035395294427872,
0.14578774571418762,
0.0603417307138443,
0.2356192022562027,
-0.09858269989490509,
0.19969682395458221,
0.2182702124118805,
0.7865888476371765,
-0.3661302924156189,
0.021723268553614616,
-0.16995593905448914,
-0.027644775807857513,
0.6699267625808716,
-0.1017894446849823,
0.10049109905958176,
0.18610024452209473,
-0.0697484090924263,
-0.19856654107570648,
-0.028191590681672096,
0.001919790985994041,
0.07110452651977539,
0.1636197865009308,
0.22250951826572418,
0.5093087553977966,
0.06150232255458832,
-0.09865899384021759,
0.13907884061336517,
0.2285279780626297,
-0.15872924029827118,
-0.11399120837450027,
0.2322118729352951,
-0.11731720715761185,
-0.014721674844622612,
-0.16918671131134033,
-0.12790636718273163,
-0.16675353050231934,
0.3324783146381378,
-0.46153560280799866,
-0.17303675413131714,
0.08758293092250824,
0.12779872119426727,
0.12440453469753265,
-0.47753506898880005,
0.3379824161529541,
0.3541285991668701,
0.35768163204193115,
-0.005958844441920519,
-0.27730026841163635,
0.2542754113674164,
-0.18211539089679718,
-0.20671357214450836,
-0.254604309797287,
-0.1713719516992569,
0.12316753715276718,
-0.028339331969618797,
-0.2673967480659485,
-0.0030283057130873203,
0.1565461903810501,
-0.5180782675743103,
-0.48214125633239746,
0.0698833242058754,
0.28206613659858704,
0.34806641936302185,
0.035098690539598465,
0.19544759392738342,
-0.09000846743583679,
-0.0028620995581150055,
0.17463280260562897,
0.27467942237854004,
0.212520569562912,
0.19042761623859406,
0.28099843859672546,
0.006460526492446661,
-0.2811049222946167,
0.14418379962444305,
0.16613954305648804,
-0.04005712270736694,
0.20799459517002106,
0.09245738387107849,
-0.06520158052444458,
-0.11442628502845764,
0.24074338376522064,
0.3130514621734619,
-0.06806602329015732,
-0.12127513438463211,
-0.18047931790351868,
0.17008931934833527,
0.036852214485406876,
-0.02504495158791542,
0.18447130918502808,
-0.3268199563026428,
-0.13324511051177979,
-0.31801071763038635,
0.11260654777288437,
0.21356038749217987,
-0.4756157100200653,
0.45112964510917664,
-0.12478604167699814,
-0.07264863699674606,
0.1455395221710205,
0.07090988010168076,
-0.25728821754455566,
-0.07325488328933716,
-0.13580383360385895,
-0.12266618758440018,
0.18987654149532318,
0.17702172696590424,
-0.07779181748628616,
-0.28032851219177246,
0.001959121087566018,
-0.13295890390872955,
-0.18066884577274323,
-0.12558645009994507,
0.3036169409751892,
0.11598708480596542,
0.24534039199352264,
-0.15406474471092224,
-0.11418093740940094,
-0.0983615592122078,
-0.3798810839653015,
-0.02916845865547657,
-0.08696406334638596,
-0.031811896711587906,
-0.039977576583623886,
0.14036914706230164,
0.26585376262664795,
-0.07295007258653641,
0.13833430409431458,
0.21483169496059418,
0.014339999295771122,
0.46258068084716797,
0.3712098002433777,
-0.0650177001953125,
0.4889167547225952,
-0.0754881352186203,
-0.17432768642902374,
0.0902896374464035,
-0.1349329799413681,
-0.25631195306777954,
0.7665194869041443,
-0.10004613548517227,
0.2560344636440277,
0.09462514519691467,
0.3729102313518524,
-0.03192879259586334,
-0.29492655396461487,
0.36987441778182983,
0.24965102970600128,
0.1652740240097046,
-0.17048323154449463,
-0.18488219380378723,
0.04368354007601738,
0.22500212490558624,
-0.0009229346178472042,
0.1780536025762558,
0.2021031677722931,
0.3823188245296478,
-0.12529030442237854,
0.12187708169221878,
0.4000946879386902,
-0.19586646556854248,
0.32910045981407166,
-0.15695232152938843,
0.1640084832906723,
0.19832606613636017,
0.012740240432322025,
0.22786900401115417,
0.06348016113042831,
0.2766062021255493,
-0.03257874399423599,
0.5885310769081116,
0.1290864646434784,
0.056767966598272324,
0.571360170841217,
-0.13182483613491058,
0.0687384232878685,
0.11271654814481735,
-0.027413824573159218,
0.021077988669276237,
-0.14109526574611664,
0.11856038123369217,
-0.09486429393291473,
-0.10927744954824448,
-0.1550275832414627,
0.07047382742166519,
0.10490790754556656,
0.12729161977767944,
-0.5323837399482727,
-0.016764847561717033,
-0.16563665866851807,
0.12193991243839264,
-0.0024041221477091312,
-0.23314888775348663,
0.013463390991091728,
0.09717154502868652,
-0.18146008253097534,
0.08354751765727997,
0.029698725789785385,
0.21491512656211853,
0.07937977463006973,
-0.0034221492242068052,
0.22481876611709595,
0.049023937433958054,
-0.27598458528518677,
0.09761323034763336,
0.48966965079307556,
0.12539133429527283,
0.05160149931907654,
0.03713306412100792,
0.022630419582128525,
0.01438834983855486,
-0.18557173013687134,
0.1290103793144226,
0.046136219054460526,
-0.016813157126307487,
-0.1357356756925583,
-0.058203842490911484,
0.11247523874044418,
0.06054115667939186,
0.25606635212898254,
-0.17245207726955414,
0.12309809029102325,
-0.3439576029777527,
-0.1288015991449356,
-0.169756218791008,
-0.07529406249523163,
-0.10728871822357178,
0.17846715450286865,
-0.34335964918136597,
0.049138143658638,
0.3856393098831177,
-0.4856770932674408,
-0.18871867656707764,
0.13205978274345398,
0.05755448713898659,
-0.4405554234981537,
0.2636919915676117,
0.43738511204719543,
0.07807023078203201,
-0.0032712221145629883,
-0.36522752046585083,
-0.10106479376554489,
-0.16277624666690826,
-0.28627756237983704,
0.038408003747463226,
-0.05835041031241417,
0.07664495706558228,
0.24143223464488983,
0.13818351924419403,
0.12782739102840424,
-0.3685334026813507,
0.15562690794467926,
0.04602532833814621,
-0.2545473575592041,
-0.16933920979499817,
-0.06193741410970688,
0.2793896198272705,
0.0035315651912242174,
0.20721320807933807,
0.25068163871765137,
-0.27907130122184753,
-0.09127121418714523,
0.026761334389448166,
0.11747811734676361,
-0.24658925831317902,
0.06167116016149521,
0.3384704887866974,
0.05654501914978027,
0.1937887817621231,
-0.14571133255958557,
0.03912567347288132,
0.014570868574082851,
-0.2286939024925232,
-0.09868831187486649,
0.1057056114077568,
-0.15361467003822327,
0.2978624403476715,
-0.25150731205940247,
-0.17781370878219604,
0.042924877256155014,
-0.1701202094554901,
-0.15728609263896942,
-0.27633920311927795,
-0.035328831523656845,
-0.12039554864168167,
-0.04963492229580879,
-0.0983005166053772,
0.2921786904335022,
-0.10227850824594498,
-0.03851190581917763,
-0.3568795919418335,
-0.04759279638528824,
0.03850513696670532,
0.14550265669822693,
-0.21581347286701202,
0.160553440451622,
-0.1748199462890625,
-0.34517034888267517,
-0.018889598548412323,
0.2482507973909378,
-0.44029662013053894,
-0.19686955213546753,
0.29896441102027893,
0.21308071911334991,
-0.15647773444652557,
0.40722450613975525,
0.5054080486297607,
-0.10118826478719711,
0.018134787678718567,
0.14272409677505493,
-0.11180709302425385,
0.01071955543011427,
-0.2021874189376831,
-0.11477196961641312
] |
https://github.com/huggingface/datasets/issues/1728 | Add an entry to an arrow dataset | Hi @ameet-1997,
I think what you are looking for is the `concatenate_datasets` function: https://huggingface.co/docs/datasets/processing.html?highlight=concatenate#concatenate-several-datasets
For your use case, I would use the [`map` method](https://huggingface.co/docs/datasets/processing.html?highlight=concatenate#processing-data-with-map) to transform the SQuAD sentences and the `concatenate` the original and mapped dataset.
Let me know If this helps! | Is it possible to add an entry to a dataset object?
**Motivation: I want to transform the sentences in the dataset and add them to the original dataset**
For example, say we have the following code:
``` python
from datasets import load_dataset
# Load a dataset and print the first examples in the training set
squad_dataset = load_dataset('squad')
print(squad_dataset['train'][0])
```
Is it possible to add an entry to `squad_dataset`? Something like the following?
``` python
squad_dataset.append({'text': "This is a new sentence"})
```
The motivation for doing this is that I want to transform the sentences in the squad dataset and add them to the original dataset.
If the above doesn't work, is there any other way of achieving the motivation mentioned above? Perhaps by creating a new arrow dataset by using the older one and the transformer sentences?
| 43 | Add an entry to an arrow dataset
Is it possible to add an entry to a dataset object?
**Motivation: I want to transform the sentences in the dataset and add them to the original dataset**
For example, say we have the following code:
``` python
from datasets import load_dataset
# Load a dataset and print the first examples in the training set
squad_dataset = load_dataset('squad')
print(squad_dataset['train'][0])
```
Is it possible to add an entry to `squad_dataset`? Something like the following?
``` python
squad_dataset.append({'text': "This is a new sentence"})
```
The motivation for doing this is that I want to transform the sentences in the squad dataset and add them to the original dataset.
If the above doesn't work, is there any other way of achieving the motivation mentioned above? Perhaps by creating a new arrow dataset by using the older one and the transformer sentences?
Hi @ameet-1997,
I think what you are looking for is the `concatenate_datasets` function: https://huggingface.co/docs/datasets/processing.html?highlight=concatenate#concatenate-several-datasets
For your use case, I would use the [`map` method](https://huggingface.co/docs/datasets/processing.html?highlight=concatenate#processing-data-with-map) to transform the SQuAD sentences and the `concatenate` the original and mapped dataset.
Let me know If this helps! | [
0.11834988743066788,
0.12276836484670639,
-0.0548611544072628,
-0.021854033693671227,
0.1973937302827835,
0.30988261103630066,
0.1708185225725174,
-0.1640377640724182,
-0.08370131999254227,
-0.050527412444353104,
0.2646121382713318,
0.5609714984893799,
-0.20104436576366425,
0.09169742465019226,
0.33518537878990173,
-0.29628774523735046,
0.11421358585357666,
0.0437108539044857,
-0.29227522015571594,
-0.02799306996166706,
0.0021189909894019365,
-0.1372908055782318,
0.2007562667131424,
-0.031731970608234406,
-0.27671512961387634,
-0.11822152882814407,
-0.13797028362751007,
-0.21237921714782715,
-0.13848866522312164,
-0.5027134418487549,
0.008782622404396534,
-0.027224471792578697,
0.05907212197780609,
0.33764997124671936,
-0.00011704196367645636,
0.09203394502401352,
0.2727535665035248,
0.1627478450536728,
-0.581119179725647,
-0.30019253492355347,
-0.3158358037471771,
-0.5750211477279663,
0.1763753592967987,
-0.1296510100364685,
0.18101215362548828,
-0.34057044982910156,
0.1682192087173462,
-0.516061007976532,
0.36169710755348206,
0.14408253133296967,
0.15515658259391785,
0.004856919404119253,
0.3422509729862213,
-0.1587885618209839,
0.13165749609470367,
0.29342857003211975,
-0.16516180336475372,
0.06600454449653625,
0.07759292423725128,
0.18705731630325317,
0.2107713222503662,
0.14330624043941498,
0.232126846909523,
-0.18394705653190613,
0.512768566608429,
0.232212096452713,
-0.09621745347976685,
-0.17912039160728455,
-0.1925228089094162,
0.19846604764461517,
0.6475901007652283,
-0.4157200753688812,
-0.7800766825675964,
-0.3988773226737976,
0.5506302714347839,
-0.1682528257369995,
-0.24457880854606628,
0.2328120321035385,
0.02390199713408947,
0.11698535829782486,
0.06965994834899902,
-0.4716571569442749,
-0.19214993715286255,
0.20137575268745422,
0.04457664489746094,
0.23646970093250275,
0.023394450545310974,
0.09984589368104935,
0.03557157516479492,
-0.1198582723736763,
0.25992876291275024,
0.07915351539850235,
-0.12345883995294571,
0.23875795304775238,
-0.3096902072429657,
0.03517099469900131,
-0.2527564764022827,
-0.12681755423545837,
0.066355861723423,
-0.02979171834886074,
0.4854211211204529,
-0.10988137871026993,
-0.33367297053337097,
0.07906811684370041,
0.20006200671195984,
-0.034273575991392136,
0.14300961792469025,
0.06871852278709412,
-0.39126890897750854,
-0.37917593121528625,
-0.10968028753995895,
-0.21700206398963928,
-0.15509478747844696,
-0.17133460938930511,
0.24242348968982697,
-0.16730983555316925,
0.14737144112586975,
0.31368327140808105,
0.06299597769975662,
-0.09354780614376068,
-0.30201631784439087,
0.05912540480494499,
-0.27255839109420776,
0.06127488985657692,
0.4182107448577881,
0.10915397852659225,
0.1732088029384613,
0.440824419260025,
0.37260445952415466,
-0.15664435923099518,
0.025316625833511353,
0.051331836730241776,
-0.05437742918729782,
0.3669014573097229,
-0.24234935641288757,
-0.04771780967712402,
0.0371125265955925,
-0.12068086117506027,
0.14560522139072418,
-0.19199946522712708,
0.08283116668462753,
-0.04045125097036362,
0.2058393657207489,
0.007622802630066872,
-0.04460606724023819,
0.14925329387187958,
0.11501530557870865,
-0.16961205005645752,
-0.043095629662275314,
0.20460201799869537,
-0.0826667994260788,
-0.06495204567909241,
-0.45459169149398804,
0.0880453810095787,
-0.027590809389948845,
-0.3335457742214203,
-0.033347949385643005,
0.43360477685928345,
-0.015135381370782852,
0.0004982527461834252,
0.14149394631385803,
0.00913345254957676,
-0.2703189551830292,
-0.16199056804180145,
-0.020643334835767746,
0.1551443338394165,
-0.5128894448280334,
-0.4108775556087494,
-0.2430017739534378,
0.09050416946411133,
-0.5492097735404968,
-0.08543120324611664,
-0.1658569872379303,
0.46774694323539734,
0.005220704711973667,
0.04771944880485535,
0.5233315229415894,
-0.11151053756475449,
-0.1672392636537552,
-0.12993672490119934,
-0.3428252935409546,
0.08339735120534897,
-0.0064476290717720985,
0.4439300298690796,
0.16472004354000092,
0.23401089012622833,
0.028342723846435547,
0.22014452517032623,
0.08269697427749634,
-0.3359244465827942,
0.2786371111869812,
0.0015660305507481098,
0.20651006698608398,
-0.10582099854946136,
-0.3012518584728241,
-0.025425300002098083,
0.1261385679244995,
-0.18214625120162964,
0.1216384544968605,
-0.21946778893470764,
0.23752407729625702,
0.3060150146484375,
0.1686580330133438,
0.20523644983768463,
-0.1291642189025879,
-0.12267228215932846,
-0.2524816691875458,
-0.0185624398291111,
0.1810261458158493,
0.0529477521777153,
-0.055238887667655945,
-0.2419680505990982,
-0.03225363790988922,
0.32259660959243774,
-0.0610448494553566,
0.014852653257548809,
0.031809017062187195,
0.0758635476231575,
-0.08194547146558762,
-0.2782067656517029,
-0.3902854025363922,
0.40740227699279785,
-0.008764917030930519,
0.20476676523685455,
-0.22962220013141632,
0.16605393588542938,
0.23639839887619019,
0.003682908834889531,
-0.32408201694488525,
0.21221458911895752,
-0.16403210163116455,
0.08950173854827881,
0.07894556224346161,
0.11347081512212753,
-0.11950572580099106,
0.2341032177209854,
0.14873847365379333,
0.032749731093645096,
0.10801766812801361,
-0.36625853180885315,
0.07632856070995331,
-0.03757311403751373,
0.09542739391326904,
-0.09139958024024963,
-0.3540550470352173,
0.24171635508537292,
0.18022732436656952,
0.3580397665500641,
-0.1495780646800995,
0.27658993005752563,
0.10721171647310257,
-0.030082454904913902,
-0.4279773235321045,
-0.2050343006849289,
-0.16185323894023895,
0.015943340957164764,
0.27998408675193787,
-0.17489087581634521,
-0.1389581263065338,
0.0067606121301651,
-0.025943946093320847,
-0.11930452287197113,
0.10130497068166733,
0.1819254457950592,
-0.5684719681739807,
0.2896314859390259,
-0.07359171658754349,
0.30364254117012024,
0.36154425144195557,
0.2742063105106354,
-0.0376008003950119,
0.13564127683639526,
0.14205490052700043,
0.05175698921084404,
0.05228009447455406,
0.11454080045223236,
0.4417296051979065,
0.007775098085403442,
0.48003697395324707,
0.12656782567501068,
-0.05805337801575661,
-0.009665079414844513,
-0.032775864005088806,
-0.030246339738368988,
-0.3340156078338623,
-0.01684531942009926,
-0.051850542426109314,
-0.14167676866054535,
-0.5122767686843872,
-0.19673661887645721,
-0.031198544427752495,
-0.3337021470069885,
-0.05323902890086174,
-0.2285899817943573,
-0.07176345586776733,
0.10767755657434464,
0.10494978725910187,
0.2497827112674713,
-0.07660025358200073,
-0.08390866965055466,
0.15790489315986633,
-0.16967730224132538,
0.2582077980041504,
-0.012192977592349052,
-0.04313056170940399,
0.041411835700273514,
0.3619517385959625,
0.09937947988510132,
0.10871022194623947,
-0.34334149956703186,
-0.1797899603843689,
0.0348750464618206,
-0.04590544477105141,
0.10334140807390213,
0.01318074855953455,
0.07263746857643127,
-0.1497793048620224,
-0.2909354567527771,
0.08168692886829376,
0.02371830865740776,
-0.17799672484397888,
-0.1926494836807251,
-0.05325233191251755,
-0.05400697514414787,
0.04589991644024849,
-0.044083546847105026,
-0.5674842596054077,
-0.1944703757762909,
0.4599407911300659,
0.16785097122192383,
-0.05824590474367142,
0.16135936975479126,
0.20734670758247375,
0.24436478316783905,
-0.026928570121526718,
-0.05409446358680725,
0.044100020080804825,
-0.1064448356628418,
0.4240247905254364,
-0.1946118026971817,
-0.1915540099143982,
-0.030255913734436035,
-0.3298680782318115,
0.03444823995232582,
0.09874535351991653,
-0.21502463519573212,
0.0016386666102334857,
-0.14541330933570862,
0.21080812811851501,
-0.1521884799003601,
0.10879142582416534,
0.3900868892669678,
0.04943150281906128,
-0.07479753345251083,
-0.13808108866214752,
-0.4104962646961212,
0.1876417100429535,
0.2697167694568634,
0.13815943896770477,
-0.039736952632665634,
0.2633513808250427,
0.012613639235496521,
0.3805566132068634,
0.1919940859079361,
-0.3043583929538727,
0.046021297574043274,
-0.30499961972236633,
0.25733453035354614,
-0.06797836720943451,
-0.30932870507240295,
-0.2927863597869873,
-0.31058868765830994,
-0.19266410171985626,
-0.21485330164432526,
0.14295761287212372,
0.03145623952150345,
0.1148938238620758,
0.05997933819890022,
-0.29405146837234497,
-0.16675063967704773,
0.26528066396713257,
-0.5815131664276123,
0.2634645402431488,
-0.15130658447742462,
-0.21372142434120178,
-0.45624253153800964,
0.057024162262678146,
0.017246313393115997,
0.011929968371987343,
0.20964299142360687,
-0.13022316992282867,
-0.5189206004142761,
-0.10526882112026215,
-0.18256054818630219,
0.18704485893249512,
0.28488901257514954,
0.04092967137694359,
0.2111169695854187,
-0.12810024619102478,
-0.05448746308684349,
0.12863263487815857,
0.40151047706604004,
-0.21011728048324585,
-0.5021833777427673,
0.3108865022659302,
0.1300801932811737,
-0.5276563763618469,
0.13573142886161804,
0.00011508689203765243,
0.3417445123195648,
0.027972208335995674,
0.1077677309513092,
-0.20611654222011566,
0.33044105768203735,
0.21485492587089539,
0.28685957193374634,
-0.2674979269504547,
-0.17860420048236847,
0.09590600430965424,
0.008099308237433434,
-0.3620217740535736,
-0.2194249927997589,
0.03323476389050484,
0.07828661054372787,
0.4012640118598938,
-0.16483622789382935,
-0.30286094546318054,
0.0789412409067154,
0.19017857313156128,
-0.10190904140472412,
0.16427502036094666,
0.36303937435150146,
0.09847599267959595,
0.22405032813549042,
0.141256183385849,
0.08414971083402634,
0.5798237919807434,
-0.0055796196684241295,
-0.5680826902389526,
-0.31375062465667725,
-0.23845325410366058,
0.61739581823349,
0.10119420289993286,
0.3702189326286316,
0.5125346779823303,
0.07211136817932129,
-0.1607178896665573,
-0.0868125632405281,
0.031626731157302856,
0.16694015264511108,
0.12390705198049545,
-0.4113565683364868,
-0.43216124176979065,
0.50050950050354,
0.03626008331775665,
-0.0168649610131979,
0.2640679180622101,
0.29282146692276,
-0.40012088418006897,
0.4860459268093109,
0.12194956094026566,
0.9126864671707153,
-0.11458797752857208,
0.37975752353668213,
0.023258335888385773,
-0.3634338676929474,
0.6220877766609192,
0.10609444975852966,
-0.10807368904352188,
-0.10139523446559906,
-0.12340612709522247,
-0.05260099470615387,
-0.29971686005592346,
0.07549484074115753,
0.12754593789577484,
-0.4212498366832733,
-0.1573469042778015,
-0.3843894898891449,
0.06472999602556229,
0.0013180498499423265,
0.28703927993774414,
0.020765583962202072,
-0.3447219133377075,
-0.21620360016822815,
0.12354962527751923,
0.22556093335151672,
-0.17490175366401672,
-0.1564714014530182,
-0.2046269178390503,
-0.3168252110481262,
0.05993443727493286,
-0.6070042252540588,
-0.28961342573165894,
-0.17063798010349274,
-0.15012186765670776,
0.22765560448169708,
-0.5194823741912842,
0.29855358600616455,
0.48069217801094055,
0.24221453070640564,
-0.15057675540447235,
0.010035708546638489,
0.2047692984342575,
-0.06755192577838898,
0.2147723287343979,
0.11308646202087402,
-0.3405279815196991,
0.26289981603622437,
0.22042955458164215,
-0.2200184017419815,
0.38422122597694397,
0.10541665554046631,
-0.5912264585494995,
0.2402302771806717,
0.04446900635957718,
0.029644086956977844,
-0.28970587253570557,
-0.2757449746131897,
0.42038047313690186,
0.022381743416190147,
-0.1884147673845291,
0.08962846547365189,
0.14984536170959473,
-0.15827953815460205,
-0.08486798405647278,
0.3082498610019684,
-0.2128807157278061,
0.1340121030807495,
0.06684456020593643,
-0.016155799850821495,
0.08984383940696716,
0.6236745119094849,
0.14867456257343292,
0.0013382071629166603,
-0.06695256382226944,
0.18510188162326813,
0.31098634004592896,
-0.39358359575271606,
-0.0033083781599998474,
0.11223071068525314,
0.019517092034220695,
-0.3946284353733063,
-0.10750557482242584,
0.17110897600650787,
0.2316145896911621,
-0.3769902288913727,
-0.253828227519989,
-0.3830397427082062,
0.3205638527870178,
-0.057648368179798126,
0.20320136845111847,
-0.2092088907957077,
0.2275727540254593,
-0.05032556131482124,
0.4206240475177765,
-0.238162562251091,
-0.03825954347848892,
0.13449271023273468,
0.012355191633105278,
0.23491226136684418,
0.17588132619857788,
-0.1389644891023636,
-0.29874518513679504,
0.09553641080856323,
0.138296976685524,
0.3021368384361267,
-0.16507603228092194,
-0.21459701657295227,
0.14360885322093964,
0.10847436636686325,
-0.05491982400417328,
-0.07088097929954529,
-0.14403720200061798,
0.3611430823802948,
-0.30572906136512756,
-0.2458438277244568,
0.20380379259586334,
-0.07542513310909271,
0.10357946157455444,
0.40345704555511475,
0.24245770275592804,
-0.14240898191928864,
0.024977674707770348,
0.2437242716550827,
0.19488564133644104,
0.09258358180522919,
0.2005089372396469,
0.16766943037509918,
0.12462037056684494,
-0.11072491854429245,
0.30399319529533386,
0.4095861613750458,
0.003435570513829589,
0.03075464442372322,
-0.21485181152820587,
0.10172408074140549,
-0.010051324032247066,
0.20326317846775055,
0.1487460881471634,
-0.3235377371311188,
0.4601847529411316,
0.08890428394079208,
0.18340978026390076,
-0.22152280807495117,
0.04920540004968643,
0.28628143668174744,
-0.15712891519069672,
-0.018496762961149216,
0.14389294385910034,
-0.0952475294470787,
0.3241392970085144,
-0.3016676604747772,
-0.03365471959114075,
-0.2822114825248718,
0.06781412661075592,
0.20132626593112946,
0.18109935522079468,
0.26244640350341797,
-0.08671856671571732,
0.10899435728788376,
0.16614006459712982,
0.21741917729377747,
0.15493015944957733,
-0.1797845959663391,
0.23214416205883026,
0.43008771538734436,
-0.03747733682394028,
0.295637309551239,
0.2165900617837906,
0.20320317149162292,
0.06609223783016205,
0.3515618145465851,
0.0029347112867981195,
0.3370351195335388,
0.40482208132743835,
0.3064146339893341,
-0.23241783678531647,
0.08841424435377121,
0.2514269948005676,
0.12402668595314026,
-0.2480943650007248,
-0.09324312210083008,
0.036599814891815186,
-0.02848435752093792,
-0.11214635521173477,
0.002652588998898864,
-0.5771658420562744,
0.1557988077402115,
-0.04570275917649269,
0.13069011270999908,
-0.380797415971756,
0.35489892959594727,
0.2698545753955841,
0.0829007551074028,
-0.15741445124149323,
-0.06421056389808655,
-0.13299858570098877,
0.2097121924161911,
0.2874039113521576,
0.4605226516723633,
0.1455058604478836,
0.09012989699840546,
-0.0937163233757019,
0.6465041637420654,
-0.29297417402267456,
-0.1388496607542038,
0.014124520123004913,
-0.11155515909194946,
-0.06822734326124191,
-0.1355387568473816,
0.2433319240808487,
0.16713449358940125,
-0.07678595185279846,
0.14827562868595123,
0.08291012048721313,
0.2942553162574768,
-0.5951107144355774,
0.1925400346517563,
-0.05413302406668663,
-0.18109892308712006,
-0.15055519342422485,
0.22174465656280518,
-0.14824596047401428,
0.033592842519283295,
0.5801298022270203,
-0.2220919132232666,
-0.029115743935108185,
0.16278089582920074,
0.030621882528066635,
0.0370202511548996,
0.3156169056892395,
0.4071691334247589,
0.5021685361862183,
-0.08574480563402176,
-0.1438605785369873,
-0.5734357833862305,
-0.06594090163707733,
-0.07921316474676132,
-0.15244102478027344,
-0.0374571867287159,
0.009377067908644676,
0.3101043105125427,
0.3368249833583832,
0.3097115457057953,
-0.14137519896030426,
-0.3536220192909241,
0.17103515565395355,
-0.19504760205745697,
-0.3425099849700928,
0.3337602913379669,
0.3418864607810974,
0.08029032498598099,
0.11117041856050491,
-0.22852882742881775,
0.1602797657251358,
0.004395485855638981,
-0.035168346017599106,
-0.08192159235477448,
-0.15063290297985077,
-0.07124478369951248,
0.5276621580123901,
-0.11533977091312408,
0.36956748366355896,
-0.09022735059261322,
0.08221232146024704,
-0.19225050508975983,
-0.4513828158378601,
-0.4487343728542328,
0.44487541913986206,
-0.0723150372505188,
0.34714898467063904,
-0.31978681683540344,
0.011493423022329807,
0.16203564405441284,
-0.26627111434936523,
-0.07950091361999512,
-0.1420750916004181,
-0.40822845697402954,
0.36575642228126526,
-0.11456412822008133,
-0.02504446730017662,
-0.14239254593849182,
0.1617482751607895,
0.017602816224098206,
0.2556729316711426,
0.07242575287818909,
-0.15030966699123383,
0.2750245928764343,
-0.3098265528678894,
-0.13333848118782043,
0.22922666370868683,
-0.030589403584599495,
0.14413505792617798,
-0.16572630405426025,
-0.7632927894592285,
-0.17663900554180145,
0.392831027507782,
-0.07945018261671066,
0.07216580212116241,
0.17347988486289978,
0.06610782444477081,
0.0923302173614502,
-0.18219181895256042,
0.5891468524932861,
-0.17892956733703613,
0.05422092229127884,
-0.4637471139431,
-0.260252445936203
] |
https://github.com/huggingface/datasets/issues/1728 | Add an entry to an arrow dataset | That's a great idea! Thank you so much!
When I try that solution, I get the following error when I try to concatenate `datasets` and `modified_dataset`. I have also attached the output I get when I print out those two variables. Am I missing something?
Code:
``` python
combined_dataset = concatenate_datasets([datasets, modified_dataset])
```
Error:
```
AttributeError: 'DatasetDict' object has no attribute 'features'
```
Output:
```
(Pdb) datasets
DatasetDict({
train: Dataset({
features: ['attention_mask', 'input_ids', 'special_tokens_mask'],
num_rows: 493
})
})
(Pdb) modified_dataset
DatasetDict({
train: Dataset({
features: ['attention_mask', 'input_ids', 'special_tokens_mask'],
num_rows: 493
})
})
```
The error is stemming from the fact that the attribute `datasets.features` does not exist. Would it not be possible to use `concatenate_datasets` in such a case? Is there an alternate solution? | Is it possible to add an entry to a dataset object?
**Motivation: I want to transform the sentences in the dataset and add them to the original dataset**
For example, say we have the following code:
``` python
from datasets import load_dataset
# Load a dataset and print the first examples in the training set
squad_dataset = load_dataset('squad')
print(squad_dataset['train'][0])
```
Is it possible to add an entry to `squad_dataset`? Something like the following?
``` python
squad_dataset.append({'text': "This is a new sentence"})
```
The motivation for doing this is that I want to transform the sentences in the squad dataset and add them to the original dataset.
If the above doesn't work, is there any other way of achieving the motivation mentioned above? Perhaps by creating a new arrow dataset by using the older one and the transformer sentences?
| 123 | Add an entry to an arrow dataset
Is it possible to add an entry to a dataset object?
**Motivation: I want to transform the sentences in the dataset and add them to the original dataset**
For example, say we have the following code:
``` python
from datasets import load_dataset
# Load a dataset and print the first examples in the training set
squad_dataset = load_dataset('squad')
print(squad_dataset['train'][0])
```
Is it possible to add an entry to `squad_dataset`? Something like the following?
``` python
squad_dataset.append({'text': "This is a new sentence"})
```
The motivation for doing this is that I want to transform the sentences in the squad dataset and add them to the original dataset.
If the above doesn't work, is there any other way of achieving the motivation mentioned above? Perhaps by creating a new arrow dataset by using the older one and the transformer sentences?
That's a great idea! Thank you so much!
When I try that solution, I get the following error when I try to concatenate `datasets` and `modified_dataset`. I have also attached the output I get when I print out those two variables. Am I missing something?
Code:
``` python
combined_dataset = concatenate_datasets([datasets, modified_dataset])
```
Error:
```
AttributeError: 'DatasetDict' object has no attribute 'features'
```
Output:
```
(Pdb) datasets
DatasetDict({
train: Dataset({
features: ['attention_mask', 'input_ids', 'special_tokens_mask'],
num_rows: 493
})
})
(Pdb) modified_dataset
DatasetDict({
train: Dataset({
features: ['attention_mask', 'input_ids', 'special_tokens_mask'],
num_rows: 493
})
})
```
The error is stemming from the fact that the attribute `datasets.features` does not exist. Would it not be possible to use `concatenate_datasets` in such a case? Is there an alternate solution? | [
0.09493989497423172,
0.2781064212322235,
-0.03920426964759827,
0.02305753529071808,
0.24360977113246918,
0.37788718938827515,
0.2803981900215149,
-0.1585281491279602,
-0.2577432692050934,
-0.07451805472373962,
0.3132960796356201,
0.5345352292060852,
-0.15967892110347748,
0.0007423389470204711,
0.21608342230319977,
-0.24428148567676544,
0.1367063820362091,
0.10007967054843903,
-0.19503605365753174,
0.01968509331345558,
-0.04713195934891701,
-0.14778953790664673,
0.08823800832033157,
-0.03745624050498009,
-0.3350248336791992,
-0.033443767577409744,
-0.19993959367275238,
-0.15000848472118378,
-0.1133728176355362,
-0.4348909258842468,
-0.0019859715830534697,
-0.03709764406085014,
0.003589497646316886,
0.34100228548049927,
-0.00012016265100101009,
0.10599385201931,
0.29289039969444275,
0.12394339591264725,
-0.5508270859718323,
-0.19715005159378052,
-0.34577101469039917,
-0.5728431344032288,
0.11229117214679718,
-0.16527590155601501,
0.2542716860771179,
-0.5107661485671997,
0.05927596613764763,
-0.5218867063522339,
0.16291697323322296,
0.23372912406921387,
0.13914278149604797,
0.04114639386534691,
0.4349203109741211,
-0.16880501806735992,
0.11749054491519928,
0.2363579422235489,
-0.1814582794904709,
0.01470985822379589,
-0.017161210998892784,
0.17292030155658722,
0.39167991280555725,
0.04699822887778282,
0.24330833554267883,
-0.2264605164527893,
0.47403648495674133,
0.28063926100730896,
-0.060691334307193756,
-0.1978559046983719,
-0.04758197069168091,
0.10385110974311829,
0.6565675735473633,
-0.41953301429748535,
-0.7511698603630066,
-0.3529868423938751,
0.607022225856781,
-0.17421118915081024,
-0.18564379215240479,
0.12613491714000702,
0.06255365163087845,
0.0905173048377037,
0.09799874573945999,
-0.5244417190551758,
-0.1920199692249298,
0.17561568319797516,
0.04871615767478943,
0.20534977316856384,
0.08919037878513336,
0.13118234276771545,
-0.08589011430740356,
-0.11794707179069519,
0.3495789170265198,
-0.049236007034778595,
-0.10293734073638916,
0.17755872011184692,
-0.2410251349210739,
0.09384989738464355,
-0.2655632197856903,
-0.3777487277984619,
-0.042680103331804276,
-0.004562216345220804,
0.4142284691333771,
-0.15843860805034637,
-0.16479100286960602,
0.12984956800937653,
0.2361716628074646,
0.006068964954465628,
0.035144608467817307,
0.21941706538200378,
-0.42754560708999634,
-0.4441644251346588,
-0.051833853125572205,
-0.12919339537620544,
-0.20860575139522552,
-0.2535240948200226,
0.2992103695869446,
-0.12391596287488937,
0.26406583189964294,
0.31249043345451355,
0.017703639343380928,
-0.06373441219329834,
-0.3315078020095825,
0.094725601375103,
-0.17982448637485504,
0.0061585791409015656,
0.3212430775165558,
0.09173907339572906,
0.17466573417186737,
0.3785213530063629,
0.4458308815956116,
-0.0889531746506691,
0.0020020194351673126,
0.09829404950141907,
-0.08522941172122955,
0.19052402675151825,
-0.22271786630153656,
-0.020064767450094223,
-0.01675291545689106,
-0.14746826887130737,
0.16228045523166656,
-0.13752245903015137,
0.061599183827638626,
-0.04303800314664841,
0.16725657880306244,
0.013929659500718117,
0.023176129907369614,
0.10484932363033295,
0.0947604849934578,
-0.23942311108112335,
-0.06345735490322113,
0.2614065408706665,
-0.09714900702238083,
-0.14946961402893066,
-0.5945218205451965,
0.09583841264247894,
-0.02799595706164837,
-0.21578243374824524,
-0.0464005246758461,
0.3512552082538605,
0.1539962738752365,
-0.027174025774002075,
0.05578417703509331,
-0.06569799780845642,
-0.18242156505584717,
-0.15912725031375885,
0.05504100024700165,
0.11933697760105133,
-0.48665758967399597,
-0.3338988125324249,
-0.16357284784317017,
0.14802885055541992,
-0.43049854040145874,
-0.11392398923635483,
-0.1592980921268463,
0.4569544494152069,
-0.03720478340983391,
-0.08564355224370956,
0.6153518557548523,
-0.08492615073919296,
-0.15003730356693268,
-0.14382611215114594,
-0.26872768998146057,
0.05428852513432503,
0.05658229812979698,
0.34735918045043945,
0.0686083510518074,
0.1872701197862625,
0.16017164289951324,
0.171230748295784,
0.04135988652706146,
-0.4098120927810669,
0.24479465186595917,
-0.07351279258728027,
0.36545246839523315,
-0.14919202029705048,
-0.17088058590888977,
0.0740850493311882,
0.10035429894924164,
-0.13557960093021393,
0.020767442882061005,
-0.2471005618572235,
0.2322203665971756,
0.32816681265830994,
0.20380304753780365,
0.12480674684047699,
-0.147312730550766,
-0.06092945113778114,
-0.25259464979171753,
0.021046096459031105,
0.29679521918296814,
0.0060211834497749805,
-0.007876506075263023,
-0.21950480341911316,
-0.0810934454202652,
0.30166390538215637,
-0.05022841691970825,
0.05386605113744736,
0.040015123784542084,
0.16480958461761475,
-0.12117375433444977,
-0.3005163371562958,
-0.4174988865852356,
0.4620869755744934,
-0.005294006317853928,
0.1380767673254013,
-0.20560012757778168,
0.17915360629558563,
0.10181543231010437,
-0.045468829572200775,
-0.25378066301345825,
0.25625139474868774,
-0.07626773416996002,
0.17405731976032257,
0.012956083752214909,
0.09005807340145111,
-0.22050730884075165,
0.1277780532836914,
0.16491228342056274,
-0.010081217624247074,
0.07919237017631531,
-0.2740035355091095,
0.012812886387109756,
-0.011099069379270077,
0.14490872621536255,
-0.11383787542581558,
-0.2944464385509491,
0.14845295250415802,
0.13600043952465057,
0.41294655203819275,
-0.02698712795972824,
0.23854093253612518,
0.1496562659740448,
-0.007858596742153168,
-0.4193473160266876,
-0.22932928800582886,
-0.21277101337909698,
0.012888808734714985,
0.309521347284317,
-0.15522706508636475,
-0.13882333040237427,
0.09761697798967361,
-0.009185816161334515,
-0.009540432132780552,
0.06205996498465538,
0.17180871963500977,
-0.5074895024299622,
0.23286893963813782,
-0.08098100870847702,
0.2883296608924866,
0.4779847264289856,
0.26277604699134827,
-0.041958048939704895,
0.2053905725479126,
0.04210552200675011,
0.08936353772878647,
0.08410032838582993,
0.1871214509010315,
0.38604798913002014,
0.1431768834590912,
0.43351373076438904,
0.1157340556383133,
0.05733112618327141,
-0.16723868250846863,
0.06266359239816666,
0.05766087770462036,
-0.3890412151813507,
-0.01081030908972025,
-0.05274214595556259,
-0.009630809538066387,
-0.38867393136024475,
-0.29513460397720337,
0.023006528615951538,
-0.3966553211212158,
-0.07378610223531723,
-0.13562045991420746,
-0.06715518236160278,
0.07338172942399979,
-0.08730294555425644,
0.19718341529369354,
0.04498343914747238,
-0.12644045054912567,
0.18112914264202118,
-0.08129123598337173,
0.16928289830684662,
-0.02779998630285263,
-0.05467220023274422,
-0.02060755342245102,
0.2912628948688507,
0.17871883511543274,
0.19991987943649292,
-0.26102501153945923,
-0.16687777638435364,
0.013386616483330727,
0.003125038230791688,
0.12125446647405624,
0.011452274397015572,
-0.04694855213165283,
-0.10821337252855301,
-0.42255550622940063,
0.05467480421066284,
0.1960374265909195,
-0.10948117822408676,
-0.09962284564971924,
0.024214334785938263,
-0.22066983580589294,
0.059301141649484634,
-0.12589403986930847,
-0.5891412496566772,
-0.21578218042850494,
0.28737351298332214,
0.1745452582836151,
-0.0803019106388092,
0.21166571974754333,
0.30831626057624817,
0.3107207119464874,
0.1965722143650055,
-0.047544050961732864,
-0.009916744194924831,
-0.030318699777126312,
0.5247277617454529,
-0.19515693187713623,
-0.22515526413917542,
0.04676432907581329,
-0.41356268525123596,
0.11016832292079926,
0.1235317513346672,
-0.15743494033813477,
0.1387551873922348,
-0.05800126492977142,
0.17637528479099274,
-0.20047269761562347,
0.0811583399772644,
0.3056038022041321,
0.15059781074523926,
-0.0841449424624443,
-0.08475269377231598,
-0.40997403860092163,
0.13573424518108368,
0.30043184757232666,
0.2278895527124405,
-0.10914257913827896,
0.1362151801586151,
-0.0673065185546875,
0.45046770572662354,
0.1068946123123169,
-0.25937405228614807,
0.04322069510817528,
-0.2751229405403137,
0.38260477781295776,
-0.04023424908518791,
-0.4448496997356415,
-0.3242741823196411,
-0.3273376226425171,
-0.24523866176605225,
-0.20404312014579773,
0.07929309457540512,
0.02379397116601467,
0.04192797839641571,
0.13915835320949554,
-0.15694589912891388,
-0.17526227235794067,
0.21278277039527893,
-0.6013407111167908,
0.29567229747772217,
-0.13070069253444672,
-0.22971121966838837,
-0.4818824529647827,
0.09930648654699326,
-0.04490101337432861,
0.07699636369943619,
0.047955676913261414,
-0.1311233937740326,
-0.5606609582901001,
-0.155586838722229,
-0.1880190074443817,
0.10974973440170288,
0.2204020470380783,
0.26592743396759033,
0.21456588804721832,
-0.09780052304267883,
-0.147044375538826,
0.10063399374485016,
0.38424697518348694,
-0.2125474512577057,
-0.5697066783905029,
0.42482656240463257,
0.23412390053272247,
-0.44420674443244934,
0.014243991114199162,
0.009996130131185055,
0.3804400563240051,
-0.011408563703298569,
0.10199116915464401,
-0.1336500495672226,
0.3616289496421814,
0.20967094600200653,
0.2413606494665146,
-0.318126380443573,
-0.11248545348644257,
0.03074737638235092,
-0.05671492591500282,
-0.3592160940170288,
-0.312960684299469,
0.02050461433827877,
0.1432092934846878,
0.30450326204299927,
-0.1618652045726776,
-0.4555436670780182,
-0.021911144256591797,
0.2387915998697281,
-0.11754868924617767,
0.14980094134807587,
0.34542831778526306,
0.17176896333694458,
0.033414456993341446,
0.1279960721731186,
0.18135002255439758,
0.5413863658905029,
0.1100347489118576,
-0.5896158218383789,
-0.21152245998382568,
-0.37175607681274414,
0.6812918186187744,
0.025259826332330704,
0.1749812811613083,
0.43690967559814453,
-0.0457267165184021,
-0.11101822555065155,
0.008486652746796608,
0.050181880593299866,
0.22715331614017487,
0.04829646274447441,
-0.4718444049358368,
-0.4662941098213196,
0.38438868522644043,
0.006795608904212713,
0.05408642068505287,
0.2895109951496124,
0.20820000767707825,
-0.45735806226730347,
0.44540807604789734,
0.07640682905912399,
0.931134819984436,
0.04582773149013519,
0.30570802092552185,
0.07189755141735077,
-0.3916461765766144,
0.5683711767196655,
0.11818689852952957,
-0.07615897804498672,
-0.10813271999359131,
-0.25943249464035034,
-0.041350677609443665,
-0.2849693298339844,
0.1493319272994995,
0.1107194721698761,
-0.4717063307762146,
-0.12157557159662247,
-0.42971712350845337,
0.08615686744451523,
0.03971651941537857,
0.30614930391311646,
0.15863679349422455,
-0.2875172793865204,
-0.20917531847953796,
0.08494997024536133,
0.22061413526535034,
-0.23847350478172302,
-0.0867977887392044,
-0.1707092523574829,
-0.4818878769874573,
0.05096622556447983,
-0.5248122215270996,
-0.18666204810142517,
-0.15441857278347015,
-0.021902509033679962,
0.17813171446323395,
-0.5238457918167114,
0.3283817768096924,
0.38980552554130554,
0.27876046299934387,
-0.12452865391969681,
-0.004183383192867041,
0.11625568568706512,
-0.035959865897893906,
0.15504400432109833,
0.051391907036304474,
-0.34948623180389404,
0.2678329348564148,
0.19640354812145233,
-0.20331211388111115,
0.4784385859966278,
0.06785666197538376,
-0.5774129033088684,
0.216476172208786,
0.06504517048597336,
0.1305578500032425,
-0.33404847979545593,
-0.3530466854572296,
0.43318241834640503,
0.011124780401587486,
-0.2080412656068802,
0.06322198361158371,
0.03321123123168945,
-0.2652061879634857,
-0.04055418819189072,
0.24432891607284546,
-0.18198204040527344,
0.1550501435995102,
0.050298430025577545,
0.08926117420196533,
0.15331409871578217,
0.6899822354316711,
0.016998762264847755,
0.03862915188074112,
0.028053047135472298,
0.13919445872306824,
0.2770436108112335,
-0.3112417757511139,
-0.0852896049618721,
0.06534729152917862,
-0.0030741633381694555,
-0.38088953495025635,
-0.1326858550310135,
0.16940838098526,
0.3222752809524536,
-0.34168753027915955,
-0.28422659635543823,
-0.43034252524375916,
0.26707127690315247,
0.06784892827272415,
0.23154988884925842,
-0.25646093487739563,
0.19637179374694824,
-0.08291620016098022,
0.38269278407096863,
-0.20586639642715454,
-0.14670923352241516,
0.07241133600473404,
0.06018839403986931,
0.22613099217414856,
0.1346985548734665,
-0.1733047515153885,
-0.2768845856189728,
0.0939948633313179,
0.04038472846150398,
0.32144594192504883,
-0.13581649959087372,
-0.16242194175720215,
0.14889875054359436,
0.2249884307384491,
-0.046423736959695816,
-0.10005585849285126,
-0.16432878375053406,
0.2909638285636902,
-0.252795934677124,
-0.31242796778678894,
0.24802128970623016,
-0.07477153092622757,
0.10959404706954956,
0.2240983545780182,
0.2588254511356354,
-0.19336415827274323,
0.03635786473751068,
0.2598114609718323,
0.2524394989013672,
0.13452063500881195,
0.2513069808483124,
0.14657661318778992,
0.15585674345493317,
-0.25235021114349365,
0.27444547414779663,
0.17754441499710083,
0.04167184606194496,
0.054932598024606705,
-0.29075366258621216,
0.17834071815013885,
-0.09740413725376129,
0.09515323489904404,
0.2716448903083801,
-0.35963231325149536,
0.40812379121780396,
0.08373726904392242,
0.1162092536687851,
-0.28698933124542236,
0.04726636782288551,
0.24098780751228333,
-0.15430492162704468,
-0.0344918929040432,
0.1801660805940628,
-0.09356039017438889,
0.22192010283470154,
-0.42233437299728394,
0.02802536077797413,
-0.29771509766578674,
0.11743546277284622,
0.24663811922073364,
0.2686142325401306,
0.20326583087444305,
0.06596586853265762,
0.054995886981487274,
0.23477938771247864,
0.1374092698097229,
0.2698479890823364,
-0.09229837357997894,
0.21265457570552826,
0.634062647819519,
-0.08870895951986313,
0.3224455714225769,
0.23169277608394623,
0.23311957716941833,
-0.016710039228200912,
0.40930086374282837,
-0.033446360379457474,
0.3525487780570984,
0.2604316771030426,
0.2266252189874649,
-0.1808944195508957,
0.11434441804885864,
0.1710248589515686,
0.0969557836651802,
-0.1943640112876892,
0.06993433088064194,
0.023858455941081047,
-0.10638785362243652,
-0.15685835480690002,
0.0902363583445549,
-0.5656857490539551,
0.06349354237318039,
-0.14662501215934753,
0.05560522899031639,
-0.27163416147232056,
0.545259416103363,
0.30464282631874084,
-0.04584734886884689,
-0.1410914957523346,
-0.06803108751773834,
-0.07625830918550491,
0.19922621548175812,
0.30871081352233887,
0.4064924120903015,
0.23436424136161804,
0.2340594381093979,
-0.08941527456045151,
0.4733196198940277,
-0.11988301575183868,
-0.26961907744407654,
0.04619018733501434,
-0.08207657188177109,
-0.0833965316414833,
-0.16512775421142578,
0.23092037439346313,
0.13667257130146027,
-0.0681319609284401,
0.19529348611831665,
0.14880003035068512,
0.26190000772476196,
-0.567297637462616,
0.36572742462158203,
-0.02682342752814293,
-0.24806025624275208,
-0.018157752230763435,
0.21508458256721497,
-0.10776494443416595,
-0.20429737865924835,
0.6744135618209839,
-0.14078284800052643,
0.0337296687066555,
0.16029547154903412,
0.025288889184594154,
0.03533381223678589,
0.34536615014076233,
0.3773517608642578,
0.45097455382347107,
-0.08885138481855392,
-0.0016576234484091401,
-0.5564725399017334,
-0.03925634175539017,
-0.037384312599897385,
-0.2161783128976822,
-0.013936764560639858,
0.07440996170043945,
0.2073661983013153,
0.28141143918037415,
0.35187777876853943,
-0.04979761689901352,
-0.2626151740550995,
0.1464734673500061,
-0.2191752940416336,
-0.4201033115386963,
0.29659029841423035,
0.34621724486351013,
0.10360616445541382,
-0.0007779758889228106,
-0.1439504325389862,
0.19841191172599792,
0.0009393737418577075,
-0.03382977098226547,
-0.1928083449602127,
-0.061180658638477325,
0.07509564608335495,
0.49892204999923706,
-0.15437819063663483,
0.4688832759857178,
-0.0769372433423996,
0.05835473909974098,
-0.17218272387981415,
-0.4284750819206238,
-0.4607105553150177,
0.544680118560791,
0.04581509158015251,
0.21894101798534393,
-0.34395524859428406,
0.05088597908616066,
0.10712453722953796,
-0.22858794033527374,
-0.01111982949078083,
-0.12291132658720016,
-0.4091595709323883,
0.4311247169971466,
-0.06313276290893555,
0.09715741127729416,
-0.13250981271266937,
0.027227122336626053,
-0.0314444936811924,
0.34393826127052307,
0.06241214647889137,
-0.1612474024295807,
0.3624553680419922,
-0.1864139288663864,
-0.21183404326438904,
0.20204420387744904,
-0.06474252045154572,
0.2963007390499115,
-0.0687340497970581,
-0.737613320350647,
-0.2276841253042221,
0.4214470684528351,
-0.1764872968196869,
0.0461304672062397,
0.14300793409347534,
-0.12737005949020386,
0.13181298971176147,
-0.12002137303352356,
0.5443984270095825,
-0.3239007294178009,
-0.020789816975593567,
-0.4493507444858551,
-0.19880470633506775
] |
https://github.com/huggingface/datasets/issues/1728 | Add an entry to an arrow dataset | You should do `combined_dataset = concatenate_datasets([datasets['train'], modified_dataset['train']])`
Didn't we talk about returning a Dataset instead of a DatasetDict with load_dataset and no split provided @lhoestq? Not sure it's the way to go but I'm wondering if it's not simpler for some use-cases. | Is it possible to add an entry to a dataset object?
**Motivation: I want to transform the sentences in the dataset and add them to the original dataset**
For example, say we have the following code:
``` python
from datasets import load_dataset
# Load a dataset and print the first examples in the training set
squad_dataset = load_dataset('squad')
print(squad_dataset['train'][0])
```
Is it possible to add an entry to `squad_dataset`? Something like the following?
``` python
squad_dataset.append({'text': "This is a new sentence"})
```
The motivation for doing this is that I want to transform the sentences in the squad dataset and add them to the original dataset.
If the above doesn't work, is there any other way of achieving the motivation mentioned above? Perhaps by creating a new arrow dataset by using the older one and the transformer sentences?
| 42 | Add an entry to an arrow dataset
Is it possible to add an entry to a dataset object?
**Motivation: I want to transform the sentences in the dataset and add them to the original dataset**
For example, say we have the following code:
``` python
from datasets import load_dataset
# Load a dataset and print the first examples in the training set
squad_dataset = load_dataset('squad')
print(squad_dataset['train'][0])
```
Is it possible to add an entry to `squad_dataset`? Something like the following?
``` python
squad_dataset.append({'text': "This is a new sentence"})
```
The motivation for doing this is that I want to transform the sentences in the squad dataset and add them to the original dataset.
If the above doesn't work, is there any other way of achieving the motivation mentioned above? Perhaps by creating a new arrow dataset by using the older one and the transformer sentences?
You should do `combined_dataset = concatenate_datasets([datasets['train'], modified_dataset['train']])`
Didn't we talk about returning a Dataset instead of a DatasetDict with load_dataset and no split provided @lhoestq? Not sure it's the way to go but I'm wondering if it's not simpler for some use-cases. | [
0.11457224935293198,
0.22762249410152435,
-0.06840576231479645,
-0.02512359991669655,
0.15373234450817108,
0.27101120352745056,
0.22679902613162994,
-0.10380721837282181,
0.01638694480061531,
-0.05275919660925865,
0.30326297879219055,
0.5584480166435242,
-0.2891288995742798,
0.04707645624876022,
0.3657114505767822,
-0.2805238366127014,
0.08732856065034866,
0.03961789980530739,
-0.2587968409061432,
-0.07906882464885712,
-0.018086601048707962,
-0.2019387036561966,
0.2285861372947693,
-0.03260192275047302,
-0.22864693403244019,
-0.12322394549846649,
-0.09939377009868622,
-0.2629578411579132,
-0.14776021242141724,
-0.4609302580356598,
0.06183671951293945,
-0.09373163431882858,
0.036196522414684296,
0.2516762614250183,
-0.00011855688353534788,
0.11188282817602158,
0.27360737323760986,
0.14261069893836975,
-0.566152036190033,
-0.24336394667625427,
-0.25924721360206604,
-0.584574282169342,
0.2074294239282608,
-0.18653638660907745,
0.22075459361076355,
-0.34954872727394104,
0.14050965011119843,
-0.5783141851425171,
0.25600507855415344,
0.22113075852394104,
0.15158091485500336,
-0.009261447936296463,
0.24897755682468414,
-0.12238883227109909,
0.26973316073417664,
0.2970865070819855,
-0.16883903741836548,
0.016113456338644028,
0.09526361525058746,
0.20360644161701202,
0.1866353452205658,
0.04338694363832474,
0.19433212280273438,
-0.19954423606395721,
0.4199507236480713,
0.22165687382221222,
-0.11024408787488937,
-0.11974280327558517,
-0.12061502039432526,
0.15855444967746735,
0.7166867852210999,
-0.33765092492103577,
-0.7637714743614197,
-0.3833068311214447,
0.47166892886161804,
-0.20022115111351013,
-0.2719375491142273,
0.22917728126049042,
0.03222809359431267,
0.1001596748828888,
0.05784139037132263,
-0.5695361495018005,
-0.16894319653511047,
0.13444067537784576,
-0.07132089138031006,
0.26621004939079285,
0.12829308211803436,
0.14290572702884674,
-0.029444193467497826,
0.049605634063482285,
0.44494712352752686,
0.0718640387058258,
-0.0850042775273323,
0.202386274933815,
-0.27542173862457275,
-0.01119917817413807,
-0.2009701132774353,
-0.15550144016742706,
0.022890347987413406,
-0.026449037715792656,
0.4322579801082611,
-0.09772735834121704,
-0.3491500914096832,
0.006252235267311335,
0.23159082233905792,
-0.09026756882667542,
0.06251555681228638,
0.16395895183086395,
-0.3666476309299469,
-0.5172895789146423,
-0.09594408422708511,
-0.2136399894952774,
-0.1333691030740738,
-0.10836097598075867,
0.27430203557014465,
-0.13534091413021088,
0.11140945553779602,
0.2889271676540375,
0.009679101407527924,
-0.10184824466705322,
-0.34245365858078003,
0.010887689888477325,
-0.2589615285396576,
-0.017644695937633514,
0.42888590693473816,
0.1240435242652893,
0.10307680070400238,
0.4695477783679962,
0.3152874708175659,
-0.21985778212547302,
0.004845907445997,
0.09217238426208496,
-0.06951618194580078,
0.274876207113266,
-0.18772879242897034,
0.0636669173836708,
-0.05308820307254791,
-0.236531063914299,
0.048827726393938065,
-0.1673046201467514,
0.14735786616802216,
-0.08122836798429489,
0.18974678218364716,
0.04589139670133591,
-0.027626972645521164,
0.1726943701505661,
0.1745205670595169,
-0.1622057855129242,
-0.10533939301967621,
0.2671445906162262,
-0.07654246687889099,
-0.21060244739055634,
-0.3816099464893341,
0.09471017122268677,
-0.03196008875966072,
-0.31378093361854553,
-0.0676092803478241,
0.3853583037853241,
0.028178157284855843,
0.07440183311700821,
0.14191147685050964,
-0.15033085644245148,
-0.29727163910865784,
-0.14960013329982758,
-0.025414343923330307,
0.06462965905666351,
-0.6223896741867065,
-0.3302091360092163,
-0.3623221218585968,
0.0471314899623394,
-0.47136059403419495,
-0.042886897921562195,
-0.18175388872623444,
0.6620753407478333,
-0.013825767673552036,
-0.09142637252807617,
0.5936504006385803,
-0.09851869940757751,
-0.2818261384963989,
-0.19232682883739471,
-0.29875001311302185,
0.05302130803465843,
0.0030414112843573093,
0.5245485305786133,
0.2708131670951843,
0.22210106253623962,
0.013339678756892681,
0.18857279419898987,
0.002744291676208377,
-0.28941166400909424,
0.2583531439304352,
-0.03934574872255325,
0.26549965143203735,
-0.019055284559726715,
-0.12005238980054855,
0.027634387835860252,
0.21072803437709808,
-0.06631837040185928,
0.14363440871238708,
-0.20566056668758392,
0.22516097128391266,
0.08479410409927368,
0.20022885501384735,
0.15622596442699432,
-0.17841576039791107,
-0.1116405725479126,
-0.26889801025390625,
0.002133134286850691,
0.22223329544067383,
0.00032810549600981176,
0.06356219947338104,
-0.22767257690429688,
-0.028290869668126106,
0.36343902349472046,
0.0011590173235163093,
0.04367642104625702,
0.03392975404858589,
-0.01935187540948391,
-0.09790940582752228,
-0.26920658349990845,
-0.3994075059890747,
0.40552207827568054,
-0.06630343198776245,
0.154579296708107,
-0.2101404368877411,
0.23638443648815155,
0.258198618888855,
0.0021446358878165483,
-0.3161676228046417,
0.2485578954219818,
-0.2150738537311554,
0.07239765673875809,
0.09163302183151245,
0.0036371895112097263,
-0.042057186365127563,
0.2055779993534088,
0.11468780040740967,
0.006627904716879129,
0.06574103981256485,
-0.3981013000011444,
0.20176640152931213,
0.008633339777588844,
0.07445532828569412,
-0.16846442222595215,
-0.303577184677124,
0.2037472128868103,
0.08761334419250488,
0.34612053632736206,
-0.13057319819927216,
0.2628035545349121,
0.02950804866850376,
0.0066057913936674595,
-0.4481198787689209,
-0.16948802769184113,
-0.16740404069423676,
-0.012895913794636726,
0.31512176990509033,
-0.2133638858795166,
-0.039449334144592285,
-0.021271878853440285,
0.06905481964349747,
-0.12291883677244186,
0.16443313658237457,
0.13883213698863983,
-0.4902573525905609,
0.20818784832954407,
-0.07127507776021957,
0.37395885586738586,
0.39992353320121765,
0.25875136256217957,
0.030626410618424416,
0.0953701063990593,
0.14118900895118713,
0.017081327736377716,
0.11530351638793945,
0.17241422832012177,
0.3782646059989929,
0.0006365514709614217,
0.39763104915618896,
0.10099487751722336,
-0.03653176501393318,
-0.03233852609992027,
-0.05551430210471153,
0.015507596544921398,
-0.3034599721431732,
-0.07774762809276581,
-0.035103410482406616,
-0.042412854731082916,
-0.46222490072250366,
-0.21902847290039062,
0.07560544461011887,
-0.42775842547416687,
-0.024082550778985023,
-0.2205752283334732,
-0.07495421916246414,
0.04495802894234657,
-0.04075075313448906,
0.2646932601928711,
-0.11343131214380264,
-0.0750158429145813,
0.18739749491214752,
-0.21554721891880035,
0.2505764365196228,
0.01125978585332632,
-0.0721789225935936,
0.007607382256537676,
0.4727572500705719,
0.16811513900756836,
0.10579058527946472,
-0.3163022994995117,
-0.12120411545038223,
0.009463246911764145,
-0.025941036641597748,
0.10208477824926376,
0.06647542119026184,
0.021230807527899742,
-0.08828003704547882,
-0.2201029360294342,
0.0009320555836893618,
-0.00859226193279028,
-0.12769335508346558,
-0.21658895909786224,
-0.03004562295973301,
0.03977755457162857,
0.06768354028463364,
-0.11831936240196228,
-0.6376331448554993,
-0.18098430335521698,
0.3180418908596039,
0.17663095891475677,
-0.054811183363199234,
0.09399966895580292,
0.154941588640213,
0.3043791353702545,
0.07760089635848999,
-0.19579865038394928,
0.03465523198246956,
-0.03026769310235977,
0.4247758090496063,
-0.16884984076023102,
-0.13420319557189941,
-0.029714589938521385,
-0.34068432450294495,
0.0908479169011116,
0.12222137302160263,
-0.2838960289955139,
0.1603946089744568,
-0.15056781470775604,
0.2198679894208908,
-0.12774555385112762,
0.027366619557142258,
0.35735881328582764,
0.06029847264289856,
-0.029779542237520218,
-0.10337755084037781,
-0.34014710783958435,
0.1137285903096199,
0.25121036171913147,
0.07336566597223282,
-0.09790090471506119,
0.29048359394073486,
0.009495646692812443,
0.4994264543056488,
0.08531935513019562,
-0.23911038041114807,
0.014282754622399807,
-0.22478100657463074,
0.20571529865264893,
-0.14491768181324005,
-0.3179529905319214,
-0.3026527762413025,
-0.3183407485485077,
-0.3310905396938324,
-0.1800660640001297,
0.11340144276618958,
-0.02857220359146595,
0.13750867545604706,
0.09039510786533356,
-0.1987195909023285,
-0.20269276201725006,
0.27080944180488586,
-0.6740224361419678,
0.18133968114852905,
-0.08914962410926819,
-0.12582889199256897,
-0.4045386016368866,
0.09849600493907928,
-0.070191390812397,
-0.038459233939647675,
0.2655133008956909,
-0.12658558785915375,
-0.5840801000595093,
-0.11191976070404053,
-0.22784629464149475,
0.11935197561979294,
0.20903320610523224,
-0.027287375181913376,
0.2653866112232208,
-0.12205476313829422,
-0.004600026644766331,
0.2067832052707672,
0.3725520670413971,
-0.20809856057167053,
-0.45804452896118164,
0.2852025628089905,
0.14734256267547607,
-0.4616536498069763,
0.11518862098455429,
-0.0796242356300354,
0.4444977939128876,
-0.06138022989034653,
0.005146535579115152,
-0.13973170518875122,
0.4023554027080536,
0.23057909309864044,
0.2341133952140808,
-0.31042352318763733,
-0.1449582427740097,
0.1311551034450531,
0.0012796137016266584,
-0.2486538290977478,
-0.13493114709854126,
-0.00986892357468605,
0.021339450031518936,
0.24524442851543427,
-0.23266102373600006,
-0.36763811111450195,
0.02996753342449665,
0.2006906270980835,
-0.1398628205060959,
0.12534089386463165,
0.2870239317417145,
0.121974416077137,
0.13496090471744537,
0.13992373645305634,
0.11214511841535568,
0.5952421426773071,
-0.02024799771606922,
-0.4799126982688904,
-0.23915071785449982,
-0.29152292013168335,
0.6086899042129517,
0.10367284715175629,
0.3361124098300934,
0.45948562026023865,
0.001621816772967577,
-0.23520995676517487,
-0.01203522365540266,
-0.017795929685235023,
0.09192517399787903,
0.0123248640447855,
-0.43336471915245056,
-0.5076603293418884,
0.47291338443756104,
-0.07693517208099365,
-0.030796129256486893,
0.2208503633737564,
0.26148688793182373,
-0.4657917618751526,
0.605471134185791,
0.19985432922840118,
0.8932756185531616,
-0.14690588414669037,
0.3738088607788086,
0.034811727702617645,
-0.3326677680015564,
0.6814109086990356,
0.07786761224269867,
-0.13548044860363007,
-0.12880930304527283,
-0.13335497677326202,
-0.03701642528176308,
-0.2810208797454834,
0.02258244901895523,
0.2465425282716751,
-0.3567441403865814,
-0.10296033322811127,
-0.2515864074230194,
0.06485956162214279,
0.0022845540661364794,
0.32207590341567993,
0.05125568434596062,
-0.26043081283569336,
-0.1749308854341507,
0.11279567331075668,
0.19399598240852356,
-0.2546723783016205,
-0.18195073306560516,
-0.06885229796171188,
-0.35328972339630127,
0.026528745889663696,
-0.5213061571121216,
-0.3650168776512146,
-0.07013870030641556,
-0.1139116883277893,
0.14871838688850403,
-0.6611781716346741,
0.34678369760513306,
0.46164625883102417,
0.18794047832489014,
-0.12859492003917694,
-0.003723480273038149,
0.17696478962898254,
-0.0068008024245500565,
0.3089604675769806,
0.1885763257741928,
-0.3346208930015564,
0.2705010771751404,
0.27354103326797485,
-0.2388719767332077,
0.35153937339782715,
0.04389858990907669,
-0.6558926105499268,
0.19675804674625397,
0.06417729705572128,
0.2177381068468094,
-0.3088624179363251,
-0.25966736674308777,
0.4255555272102356,
0.0035272901877760887,
-0.1987575739622116,
0.08076591789722443,
0.13879792392253876,
-0.07539897412061691,
-0.032084375619888306,
0.2848677635192871,
-0.23187829554080963,
0.060832731425762177,
-0.01472640410065651,
0.06935302168130875,
0.14500167965888977,
0.6772643327713013,
0.1283523291349411,
0.026138905435800552,
-0.06613259762525558,
0.26251816749572754,
0.35118359327316284,
-0.4061363935470581,
-0.08217709511518478,
0.04085376858711243,
0.07795608043670654,
-0.38698336482048035,
-0.22242435812950134,
0.16107112169265747,
0.2294377237558365,
-0.4493674337863922,
-0.2168513834476471,
-0.3177274167537689,
0.38085782527923584,
-0.050406910479068756,
0.23924922943115234,
-0.18727818131446838,
0.15892821550369263,
-0.13430973887443542,
0.4010462462902069,
-0.21589958667755127,
-0.085909903049469,
0.21087020635604858,
0.07593992352485657,
0.16406697034835815,
0.18527783453464508,
-0.21075661480426788,
-0.24445438385009766,
0.08367615193128586,
0.042315512895584106,
0.32848045229911804,
-0.16887128353118896,
-0.1297980546951294,
0.1542046070098877,
0.13820472359657288,
-0.01734747923910618,
-0.07159806787967682,
-0.14145345985889435,
0.3030011057853699,
-0.2538657784461975,
-0.21277521550655365,
0.2620380222797394,
-0.03312800079584122,
0.17372502386569977,
0.5312666893005371,
0.33760640025138855,
-0.2378075122833252,
0.11646178364753723,
0.2220294177532196,
0.2771143615245819,
0.07608062028884888,
0.2996048629283905,
0.2779510021209717,
0.12261896580457687,
-0.1188042014837265,
0.28854840993881226,
0.3634527027606964,
0.1376221626996994,
0.090403713285923,
-0.17531633377075195,
0.19301661849021912,
-0.060907892882823944,
0.15421590209007263,
0.13338999450206757,
-0.29169321060180664,
0.36975347995758057,
0.10691052675247192,
0.17920923233032227,
-0.1814865618944168,
0.12085401266813278,
0.2839513123035431,
-0.11115909367799759,
-0.04741908609867096,
0.2033613920211792,
-0.1261957585811615,
0.34261947870254517,
-0.2981070578098297,
-0.0993819385766983,
-0.13716456294059753,
0.09462036192417145,
0.16419605910778046,
0.31736913323402405,
0.18732327222824097,
-0.0866381824016571,
0.06265272200107574,
0.06388510763645172,
0.14505821466445923,
0.33196794986724854,
-0.14064881205558777,
0.3146109879016876,
0.4648490846157074,
-0.02083355002105236,
0.3508613407611847,
0.24957501888275146,
0.1409592479467392,
0.03078913502395153,
0.31761595606803894,
-0.023321349173784256,
0.3664505183696747,
0.22102054953575134,
0.28426167368888855,
-0.10868542641401291,
-0.009105046279728413,
0.10752610117197037,
0.10836200416088104,
-0.2118571549654007,
-0.12247413396835327,
0.036499109119176865,
-0.020546339452266693,
-0.07410123944282532,
-0.14251790940761566,
-0.5123056769371033,
-0.03415825963020325,
-0.08537080138921738,
0.14042386412620544,
-0.28056538105010986,
0.4928234815597534,
0.1721779853105545,
-0.009498408995568752,
-0.1633635312318802,
-0.07689626514911652,
-0.20771844685077667,
0.28285178542137146,
0.33632397651672363,
0.381535142660141,
-0.0006948010995984077,
0.1333022266626358,
-0.12265348434448242,
0.5888954997062683,
-0.2367306798696518,
-0.17628826200962067,
-0.06598882377147675,
-0.04547720402479172,
-0.15976767241954803,
-0.06158394739031792,
0.2744336426258087,
0.1691189855337143,
-0.044925250113010406,
0.1868479996919632,
0.11611222475767136,
0.20912954211235046,
-0.6766969561576843,
0.26860037446022034,
0.032361701130867004,
-0.275290310382843,
-0.06385974586009979,
0.2790364921092987,
-0.0605887807905674,
-0.038237184286117554,
0.5366315841674805,
-0.21836626529693604,
-0.012868024408817291,
0.15256565809249878,
0.021435750648379326,
-0.06379687786102295,
0.31114569306373596,
0.3449724316596985,
0.5670550465583801,
-0.0785512700676918,
-0.0329226478934288,
-0.5537800192832947,
0.012705810368061066,
-0.12544994056224823,
-0.07874041050672531,
-0.10237188637256622,
0.02039174921810627,
0.3542884886264801,
0.3510196805000305,
0.31506308913230896,
-0.13622447848320007,
-0.3740834593772888,
0.17653657495975494,
-0.034362152218818665,
-0.444044828414917,
0.2825789153575897,
0.3361894488334656,
-0.01319632213562727,
0.04228903725743294,
-0.16691946983337402,
0.26168927550315857,
-0.025923635810613632,
-0.08732040971517563,
-0.17722651362419128,
-0.006423712242394686,
0.05342297628521919,
0.5239663124084473,
-0.015132006257772446,
0.39188575744628906,
-0.0064396909438073635,
0.12702901661396027,
-0.2696126699447632,
-0.4526211619377136,
-0.4414313733577728,
0.4491165578365326,
-0.11818774789571762,
0.3053472638130188,
-0.22898244857788086,
-0.007304328493773937,
0.17793168127536774,
-0.23732870817184448,
-0.11899547278881073,
-0.07340021431446075,
-0.4311750829219818,
0.34424614906311035,
-0.22554120421409607,
-0.0031984993256628513,
-0.13255271315574646,
0.11859949678182602,
0.03939466178417206,
0.23141585290431976,
0.06918023526668549,
-0.06132323294878006,
0.1286037266254425,
-0.2695280909538269,
-0.04825518652796745,
0.20092175900936127,
0.03189903125166893,
0.1656072586774826,
-0.16829922795295715,
-0.7034361958503723,
-0.24809187650680542,
0.4426993727684021,
-0.1734025925397873,
0.1599380075931549,
0.09338615834712982,
0.15480449795722961,
0.10761842876672745,
-0.2035578191280365,
0.5826995968818665,
-0.2855378985404968,
0.06553870439529419,
-0.4006929099559784,
-0.28689494729042053
] |
https://github.com/huggingface/datasets/issues/1728 | Add an entry to an arrow dataset | > Didn't we talk about returning a Dataset instead of a DatasetDict with load_dataset and no split provided @lhoestq? Not sure it's the way to go but I'm wondering if it's not simpler for some use-cases.
My opinion is that users should always know in advance what type of objects they're going to get. Otherwise the development workflow on their side is going to be pretty chaotic with sometimes unexpected behaviors.
For instance is `split=` is not specified it's currently always returning a DatasetDict. And if `split="train"` is given for example it's always returning a Dataset. | Is it possible to add an entry to a dataset object?
**Motivation: I want to transform the sentences in the dataset and add them to the original dataset**
For example, say we have the following code:
``` python
from datasets import load_dataset
# Load a dataset and print the first examples in the training set
squad_dataset = load_dataset('squad')
print(squad_dataset['train'][0])
```
Is it possible to add an entry to `squad_dataset`? Something like the following?
``` python
squad_dataset.append({'text': "This is a new sentence"})
```
The motivation for doing this is that I want to transform the sentences in the squad dataset and add them to the original dataset.
If the above doesn't work, is there any other way of achieving the motivation mentioned above? Perhaps by creating a new arrow dataset by using the older one and the transformer sentences?
| 96 | Add an entry to an arrow dataset
Is it possible to add an entry to a dataset object?
**Motivation: I want to transform the sentences in the dataset and add them to the original dataset**
For example, say we have the following code:
``` python
from datasets import load_dataset
# Load a dataset and print the first examples in the training set
squad_dataset = load_dataset('squad')
print(squad_dataset['train'][0])
```
Is it possible to add an entry to `squad_dataset`? Something like the following?
``` python
squad_dataset.append({'text': "This is a new sentence"})
```
The motivation for doing this is that I want to transform the sentences in the squad dataset and add them to the original dataset.
If the above doesn't work, is there any other way of achieving the motivation mentioned above? Perhaps by creating a new arrow dataset by using the older one and the transformer sentences?
> Didn't we talk about returning a Dataset instead of a DatasetDict with load_dataset and no split provided @lhoestq? Not sure it's the way to go but I'm wondering if it's not simpler for some use-cases.
My opinion is that users should always know in advance what type of objects they're going to get. Otherwise the development workflow on their side is going to be pretty chaotic with sometimes unexpected behaviors.
For instance is `split=` is not specified it's currently always returning a DatasetDict. And if `split="train"` is given for example it's always returning a Dataset. | [
0.14892330765724182,
0.20325054228305817,
-0.05366980656981468,
0.005124232266098261,
0.11116006225347519,
0.07312698662281036,
0.273731529712677,
-0.08799418061971664,
0.08768001198768616,
0.021720683202147484,
0.342300146818161,
0.4724978506565094,
-0.3235456645488739,
0.07456598430871964,
0.3323619067668915,
-0.27335816621780396,
0.06256566941738129,
0.05647451430559158,
-0.2627882957458496,
-0.1407850682735443,
-0.1624133586883545,
-0.16287346184253693,
0.25306013226509094,
0.05636287108063698,
-0.21902021765708923,
-0.15723583102226257,
-0.03396569937467575,
-0.2609063684940338,
-0.16848786175251007,
-0.485148549079895,
0.10645057260990143,
-0.07251524180173874,
0.12096128612756729,
0.18166223168373108,
-0.00012080304441042244,
0.13512764871120453,
0.29794684052467346,
0.10878615081310272,
-0.6495183706283569,
-0.3481770157814026,
-0.2126670777797699,
-0.5955249667167664,
0.32078468799591064,
-0.23336951434612274,
0.17560723423957825,
-0.33367225527763367,
0.29610925912857056,
-0.5603636503219604,
0.18425756692886353,
0.16384492814540863,
0.12358082085847855,
0.06447062641382217,
0.18118157982826233,
-0.05149060860276222,
0.34744736552238464,
0.2932671308517456,
-0.20063482224941254,
-0.056373853236436844,
0.11061988025903702,
0.2912874221801758,
0.2085745483636856,
0.03713492676615715,
0.2039235234260559,
-0.1755601316690445,
0.44475021958351135,
0.25227582454681396,
-0.10143498331308365,
-0.2049793303012848,
-0.20783710479736328,
0.29398369789123535,
0.6473250985145569,
-0.21769949793815613,
-0.7484704852104187,
-0.48450759053230286,
0.4366743862628937,
-0.1822226345539093,
-0.19718202948570251,
0.23274016380310059,
-0.049961984157562256,
0.1590692549943924,
-0.021407609805464745,
-0.5370779037475586,
-0.12129529565572739,
0.19978845119476318,
-0.07814134657382965,
0.21044813096523285,
0.06715824455022812,
0.1875111609697342,
-0.07435491681098938,
0.09809839725494385,
0.46038681268692017,
-0.1218012124300003,
0.0015316681237891316,
0.09527400135993958,
-0.24151752889156342,
-0.03592900559306145,
-0.1678701788187027,
-0.08991054445505142,
-0.048891279846429825,
-0.011518515646457672,
0.4208773374557495,
-0.06476816534996033,
-0.3213696777820587,
-0.044710878282785416,
0.3120794892311096,
-0.13627414405345917,
0.015598863363265991,
0.12336673587560654,
-0.3104012906551361,
-0.5604973435401917,
-0.037619344890117645,
-0.1776007115840912,
-0.07526790350675583,
-0.03272710740566254,
0.24707016348838806,
-0.04883738234639168,
0.2522362470626831,
0.26274460554122925,
0.014060767367482185,
-0.10794069617986679,
-0.3875342607498169,
-0.017984595149755478,
-0.2659660279750824,
-0.04143344238400459,
0.3194253146648407,
0.222821444272995,
0.12183160334825516,
0.5000295042991638,
0.2188774049282074,
-0.2792988419532776,
0.060799047350883484,
0.0001288792846025899,
-0.03176143020391464,
0.20368929207324982,
-0.1720125526189804,
0.1425706297159195,
-0.12387783080339432,
-0.26139333844184875,
-0.056512489914894104,
-0.13447557389736176,
0.19106528162956238,
-0.10476534068584442,
0.25067347288131714,
0.063532255589962,
-0.12675821781158447,
0.20281656086444855,
0.09354139864444733,
-0.1517157256603241,
-0.17091776430606842,
0.21639814972877502,
-0.159183070063591,
-0.300066739320755,
-0.2653224766254425,
0.059879351407289505,
-0.018110763281583786,
-0.19142811000347137,
-0.05410778149962425,
0.3932878375053406,
-0.05276141315698624,
0.12179525941610336,
0.06359893083572388,
-0.22714436054229736,
-0.30020904541015625,
-0.2059619277715683,
-0.1810673475265503,
0.06524696946144104,
-0.5810019969940186,
-0.3230883479118347,
-0.3965204060077667,
-0.0007034773589111865,
-0.4486549496650696,
-0.030775200575590134,
-0.22604094445705414,
0.7877770662307739,
0.03822491317987442,
-0.2032301276922226,
0.6214306354522705,
-0.05109992250800133,
-0.2825563848018646,
-0.17583321034908295,
-0.2715047597885132,
0.1707307994365692,
0.10534937679767609,
0.5825024247169495,
0.3470582962036133,
0.1794905811548233,
-0.0493706539273262,
0.17781859636306763,
-0.10281902551651001,
-0.25262251496315,
0.21193578839302063,
-0.20135821402072906,
0.28675577044487,
-0.04415827989578247,
-0.007679595146328211,
0.10506949573755264,
0.168932244181633,
-0.039999641478061676,
0.11172789335250854,
-0.14996370673179626,
0.1267690509557724,
-0.023324642330408096,
0.28417420387268066,
0.11985315382480621,
-0.15779785811901093,
-0.11196013540029526,
-0.43192270398139954,
-0.016691608354449272,
0.1539265364408493,
-0.003899600123986602,
0.0790129154920578,
-0.2508656084537506,
0.005550776142627001,
0.35836032032966614,
-0.026921527460217476,
0.16218307614326477,
-0.006096964702010155,
0.020040243864059448,
-0.04974619671702385,
-0.23038233816623688,
-0.34204334020614624,
0.3552742600440979,
-0.10197052359580994,
0.20338362455368042,
-0.2506045997142792,
0.25220146775245667,
0.2995465397834778,
0.10081885755062103,
-0.2877712845802307,
0.1638205349445343,
-0.24333737790584564,
-0.03851386532187462,
0.10706376284360886,
0.001113379024900496,
0.055710431188344955,
0.10991634428501129,
0.0411934033036232,
0.1264185756444931,
0.09435777366161346,
-0.2818852365016937,
0.16263796389102936,
0.03836516663432121,
0.12233554571866989,
-0.08929908275604248,
-0.22136318683624268,
0.3601265549659729,
0.1634080857038498,
0.38066014647483826,
-0.15373587608337402,
0.22212332487106323,
-0.006140345241874456,
0.11205919831991196,
-0.41903772950172424,
-0.1833491027355194,
-0.285730242729187,
0.03519054874777794,
0.3241581916809082,
-0.1198495477437973,
-0.08635613322257996,
-0.08431071788072586,
0.31140705943107605,
-0.07877347618341446,
0.22047655284404755,
0.08285827189683914,
-0.3383285701274872,
0.16026635468006134,
-0.021583041176199913,
0.3791622519493103,
0.4297633767127991,
0.24667493999004364,
-0.03129629045724869,
-0.0034337674733251333,
0.056831490248441696,
-0.0030327048152685165,
0.10571739822626114,
0.2794123888015747,
0.4154757261276245,
-0.0843222588300705,
0.22710087895393372,
0.05175382271409035,
-0.009096394293010235,
-0.025655314326286316,
-0.059895068407058716,
-0.06867635995149612,
-0.29294973611831665,
-0.056764136999845505,
-0.08129092305898666,
0.05813315883278847,
-0.4557873606681824,
-0.2034323364496231,
0.08523586392402649,
-0.5229116678237915,
0.08225230127573013,
-0.24577845633029938,
-0.14310646057128906,
0.045576781034469604,
0.0284416526556015,
0.37082138657569885,
-0.227068230509758,
-0.06042155250906944,
0.22605198621749878,
-0.15695849061012268,
0.11298275738954544,
-0.01949620433151722,
-0.0490853451192379,
-0.08998581022024155,
0.49032062292099,
0.07725794613361359,
0.09644785523414612,
-0.3023446202278137,
-0.22435113787651062,
0.10436806827783585,
0.048422012478113174,
0.14972059428691864,
0.11329846829175949,
0.06040192395448685,
0.026831375434994698,
-0.23281165957450867,
-0.08542269468307495,
-0.02791922725737095,
-0.16923192143440247,
-0.22339946031570435,
-0.02238534763455391,
0.07321475446224213,
0.024979978799819946,
-0.2803647220134735,
-0.5676977038383484,
-0.1390213519334793,
0.30470892786979675,
0.17168934643268585,
-0.0562259778380394,
-0.007887918502092361,
0.18257907032966614,
0.17929735779762268,
0.05477861687541008,
-0.11933159828186035,
0.04666929692029953,
0.013216691091656685,
0.3442358374595642,
-0.17038112878799438,
-0.11637943238019943,
-0.1266445368528366,
-0.4445590078830719,
0.05528847128152847,
0.21237894892692566,
-0.3078695833683014,
0.12862306833267212,
-0.16029345989227295,
0.2679949104785919,
-0.030495524406433105,
0.0031081612687557936,
0.37988340854644775,
0.1025996133685112,
0.025319591164588928,
-0.05569057911634445,
-0.27100080251693726,
0.19265033304691315,
0.17746980488300323,
0.08507425338029861,
0.012516328133642673,
0.3000864088535309,
-0.004460457246750593,
0.6486833095550537,
-0.07942672818899155,
-0.33307090401649475,
-0.0649886503815651,
-0.11476684361696243,
0.3267977237701416,
-0.2337392419576645,
-0.2221948206424713,
-0.3267286419868469,
-0.3186517357826233,
-0.3132205307483673,
-0.0835191160440445,
0.005292747635394335,
-0.0777038112282753,
0.08870702981948853,
0.21142201125621796,
-0.26919057965278625,
-0.2678109407424927,
0.31110790371894836,
-0.6298691034317017,
0.07717026025056839,
-0.07433097064495087,
-0.001397309941239655,
-0.348334938287735,
0.12998026609420776,
-0.15909601747989655,
0.05149003490805626,
0.2891383469104767,
-0.07696912437677383,
-0.6699851155281067,
-0.0870693027973175,
-0.1398095339536667,
0.1890469193458557,
0.17253829538822174,
-0.01047822367399931,
0.2996673583984375,
-0.1478802114725113,
0.012093065306544304,
0.2610083520412445,
0.2844202220439911,
-0.21667952835559845,
-0.5602381229400635,
0.1395820528268814,
0.054341573268175125,
-0.36612772941589355,
0.04534703493118286,
-0.1699526458978653,
0.43563786149024963,
-0.08615176379680634,
-0.004641619510948658,
-0.24748595058918,
0.30570927262306213,
0.2288711816072464,
0.19619862735271454,
-0.35207226872444153,
-0.08052273839712143,
0.08247586339712143,
0.09049634635448456,
-0.2369973510503769,
-0.09384181350469589,
-0.016740409657359123,
-0.010890656150877476,
0.05945833772420883,
-0.3298029899597168,
-0.37880682945251465,
0.014790702611207962,
0.319760799407959,
-0.09164583683013916,
0.1416492611169815,
0.27135008573532104,
0.05019797757267952,
0.1301242858171463,
0.3078263998031616,
0.1400093138217926,
0.5922582745552063,
-0.0919279232621193,
-0.46062466502189636,
-0.10384979099035263,
-0.21059979498386383,
0.5864290595054626,
0.3168056607246399,
0.24846792221069336,
0.37905290722846985,
0.0353514663875103,
-0.19127510488033295,
-0.0631449744105339,
-0.020883357152342796,
0.20255917310714722,
-0.037381287664175034,
-0.45215457677841187,
-0.5612302422523499,
0.46183693408966064,
-0.15979087352752686,
-0.11302802711725235,
0.19084757566452026,
0.33380699157714844,
-0.4775664508342743,
0.6409645080566406,
0.25799626111984253,
0.9893672466278076,
-0.21116529405117035,
0.38014689087867737,
0.03504221886396408,
-0.4579188823699951,
0.7528193593025208,
0.006091590970754623,
-0.19591012597084045,
-0.14990276098251343,
-0.023904306814074516,
-0.07281949371099472,
-0.25409063696861267,
0.10521773248910904,
0.409646213054657,
-0.2787846326828003,
-0.05758374184370041,
-0.15193967521190643,
0.07429220527410507,
-0.04880185052752495,
0.4891756474971771,
0.0362975187599659,
-0.2609421908855438,
-0.15512241423130035,
0.04958555847406387,
0.1489243358373642,
-0.1676209568977356,
-0.2056400030851364,
-0.03641923516988754,
-0.35384395718574524,
-0.017790744081139565,
-0.3853799104690552,
-0.4576147496700287,
-0.0545438751578331,
-0.06210113689303398,
0.15728062391281128,
-0.6312540173530579,
0.27735549211502075,
0.43168583512306213,
0.17701560258865356,
-0.08189701288938522,
0.061228182166814804,
0.11430008709430695,
0.009382224641740322,
0.3079129159450531,
0.2511930465698242,
-0.29192832112312317,
0.35070934891700745,
0.27558353543281555,
-0.21821869909763336,
0.3583337366580963,
-0.03128626570105553,
-0.5524532198905945,
0.07906985282897949,
0.026932936161756516,
0.2787882387638092,
-0.40255847573280334,
-0.28085434436798096,
0.35404160618782043,
-0.007313863839954138,
-0.1434086114168167,
0.04530619829893112,
0.12063492834568024,
0.053795456886291504,
-0.020873265340924263,
0.3707682490348816,
-0.3586651384830475,
-0.056919220834970474,
-0.14605484902858734,
0.12363875657320023,
0.1889639049768448,
0.6302033066749573,
-0.03637535497546196,
0.017371492460370064,
-0.06639741361141205,
0.3725513219833374,
0.4095955193042755,
-0.4745311141014099,
-0.05759650468826294,
0.08108004182577133,
0.00706910016015172,
-0.37309977412223816,
-0.14831846952438354,
0.16199763119220734,
0.15548208355903625,
-0.44411781430244446,
-0.15734754502773285,
-0.18143607676029205,
0.4117988348007202,
-0.0880282074213028,
0.2797030508518219,
-0.1598338484764099,
0.11936433613300323,
-0.120648592710495,
0.32681983709335327,
-0.19239020347595215,
-0.22084136307239532,
0.20836876332759857,
0.13986308872699738,
0.04728611931204796,
0.2672203779220581,
-0.19418354332447052,
-0.14896711707115173,
0.018851954489946365,
-0.12732574343681335,
0.18146200478076935,
-0.11432863771915436,
-0.08846937119960785,
0.1907346397638321,
0.0882321447134018,
0.09033621847629547,
-0.09102368354797363,
-0.15956662595272064,
0.2966214716434479,
-0.25909623503685,
-0.22678729891777039,
0.2751898169517517,
-0.0027088159695267677,
0.23929055035114288,
0.5310436487197876,
0.32378652691841125,
-0.21160942316055298,
0.20794641971588135,
0.145706906914711,
0.3464229106903076,
0.027884799987077713,
0.30136656761169434,
0.2141532301902771,
0.08510696142911911,
-0.07978158444166183,
0.22893647849559784,
0.3354935944080353,
0.19729459285736084,
0.0697677806019783,
-0.17167164385318756,
0.3238377571105957,
-0.06864312291145325,
0.03105960227549076,
0.2195030152797699,
-0.2505013346672058,
0.27196770906448364,
0.09045283496379852,
0.12065870314836502,
-0.09148595482110977,
0.19813670217990875,
0.29810386896133423,
-0.1589948534965515,
-0.0850246399641037,
0.35347455739974976,
-0.020117569714784622,
0.42794567346572876,
-0.1790751963853836,
-0.18071380257606506,
-0.16041341423988342,
0.028934193775057793,
0.23645317554473877,
0.29933592677116394,
0.09815167635679245,
-0.006423412822186947,
0.1560717523097992,
-0.007266271859407425,
0.11733287572860718,
0.3177242577075958,
-0.0918361246585846,
0.2884959876537323,
0.40790432691574097,
0.01304718479514122,
0.4421756863594055,
0.20730285346508026,
0.18019288778305054,
0.016459276899695396,
0.19490067660808563,
0.060480162501335144,
0.4181528687477112,
0.16892530024051666,
0.17713120579719543,
-0.07979439944028854,
-0.15186916291713715,
-0.033965468406677246,
0.06540969759225845,
-0.14034177362918854,
-0.16851642727851868,
0.01925024203956127,
-0.046979762613773346,
-0.10400056093931198,
-0.23517824709415436,
-0.5446069836616516,
-0.03154291585087776,
-0.03467278555035591,
0.24358972907066345,
-0.21468225121498108,
0.5122624039649963,
-0.009605989791452885,
0.0798565149307251,
-0.1552586853504181,
-0.05659398436546326,
-0.3192982077598572,
0.3565748631954193,
0.4216634929180145,
0.308093398809433,
-0.06804890930652618,
0.22050069272518158,
-0.10896754264831543,
0.40404945611953735,
-0.1560078114271164,
-0.12158212065696716,
-0.14829973876476288,
-0.0475272499024868,
-0.0810331255197525,
-0.030633820220828056,
0.39378124475479126,
0.13374578952789307,
-0.013532821089029312,
0.15610700845718384,
0.1313360333442688,
0.13060827553272247,
-0.6683188676834106,
0.37251588702201843,
0.026625581085681915,
-0.2453395426273346,
-0.0173807330429554,
0.31698793172836304,
-0.06430083513259888,
-0.07832440733909607,
0.44939202070236206,
-0.2633306682109833,
-0.01767544262111187,
0.04697617143392563,
0.015429308637976646,
-0.033552706241607666,
0.2938139736652374,
0.2739836871623993,
0.576056957244873,
-0.05593555420637131,
0.11096616089344025,
-0.5531085133552551,
-0.03543321043252945,
-0.16219614446163177,
-0.05575248599052429,
-0.0669010728597641,
0.06589601188898087,
0.3969290554523468,
0.46645388007164,
0.2242661565542221,
-0.16359391808509827,
-0.3849118947982788,
0.13853010535240173,
-0.09767680615186691,
-0.4929005205631256,
0.22188536822795868,
0.31819045543670654,
-0.013246179558336735,
-0.02679920382797718,
-0.13116376101970673,
0.26996225118637085,
-0.09993578493595123,
-0.08041371405124664,
-0.08809356391429901,
0.08241493254899979,
0.13945715129375458,
0.5118874311447144,
0.060250189155340195,
0.40062758326530457,
0.008611482568085194,
0.04068785905838013,
-0.23007835447788239,
-0.47821661829948425,
-0.4323361814022064,
0.5042691230773926,
-0.15932072699069977,
0.3590174913406372,
-0.22119556367397308,
0.05512811988592148,
0.14315806329250336,
-0.2344009280204773,
-0.06362468004226685,
0.01501357089728117,
-0.4317905008792877,
0.28105592727661133,
-0.2680623233318329,
0.05783793702721596,
-0.07306231558322906,
0.17711539566516876,
0.0814536064863205,
0.1846213936805725,
0.1128995418548584,
-0.033608417958021164,
0.13862162828445435,
-0.14762568473815918,
-0.002834969898685813,
0.17861180007457733,
-0.00010552308958722278,
0.19862821698188782,
-0.16069166362285614,
-0.7023431658744812,
-0.27937832474708557,
0.5140501260757446,
-0.2919914126396179,
0.2940156161785126,
0.010688439942896366,
0.18392708897590637,
0.07353446632623672,
-0.26598018407821655,
0.5728674530982971,
-0.35779857635498047,
0.07436129450798035,
-0.3251975178718567,
-0.32737526297569275
] |
https://github.com/huggingface/datasets/issues/1727 | BLEURT score calculation raises UnrecognizedFlagError | And I have the same error with TF 2.4.1. I believe this issue should be reopened. Any ideas?! | Calling the `compute` method for **bleurt** metric fails with an `UnrecognizedFlagError` for `FLAGS.bleurt_batch_size`.
My environment:
```
python==3.8.5
datasets==1.2.0
tensorflow==2.3.1
cudatoolkit==11.0.221
```
Test code for reproducing the error:
```
from datasets import load_metric
bleurt = load_metric('bleurt')
gen_text = "I am walking on the promenade today"
ref_text = "I am walking along the promenade on this sunny day"
bleurt.compute(predictions=[test_text], references=[test_text])
```
Error Output:
```
Using default BLEURT-Base checkpoint for sequence maximum length 128. You can use a bigger model for better results with e.g.: datasets.load_metric('bleurt', 'bleurt-large-512').
INFO:tensorflow:Reading checkpoint /home/ubuntu/.cache/huggingface/metrics/bleurt/default/downloads/extracted/9aee35580225730ac5422599f35c4986e4c49cafd08082123342b1019720dac4/bleurt-base-128.
INFO:tensorflow:Config file found, reading.
INFO:tensorflow:Will load checkpoint bert_custom
INFO:tensorflow:Performs basic checks...
INFO:tensorflow:... name:bert_custom
INFO:tensorflow:... vocab_file:vocab.txt
INFO:tensorflow:... bert_config_file:bert_config.json
INFO:tensorflow:... do_lower_case:True
INFO:tensorflow:... max_seq_length:128
INFO:tensorflow:Creating BLEURT scorer.
INFO:tensorflow:Loading model...
INFO:tensorflow:BLEURT initialized.
---------------------------------------------------------------------------
UnrecognizedFlagError Traceback (most recent call last)
<ipython-input-12-8b3f4322318a> in <module>
2 gen_text = "I am walking on the promenade today"
3 ref_text = "I am walking along the promenade on this sunny day"
----> 4 bleurt.compute(predictions=[gen_text], references=[ref_text])
~/anaconda3/envs/noved/lib/python3.8/site-packages/datasets/metric.py in compute(self, *args, **kwargs)
396 references = self.data["references"]
397 with temp_seed(self.seed):
--> 398 output = self._compute(predictions=predictions, references=references, **kwargs)
399
400 if self.buf_writer is not None:
~/.cache/huggingface/modules/datasets_modules/metrics/bleurt/b1de33e1cbbcb1dbe276c887efa1fad68c6aff913885108078fa1ad408908778/bleurt.py in _compute(self, predictions, references)
103
104 def _compute(self, predictions, references):
--> 105 scores = self.scorer.score(references=references, candidates=predictions)
106 return {"scores": scores}
~/anaconda3/envs/noved/lib/python3.8/site-packages/bleurt/score.py in score(self, references, candidates, batch_size)
164 """
165 if not batch_size:
--> 166 batch_size = FLAGS.bleurt_batch_size
167
168 candidates, references = list(candidates), list(references)
~/anaconda3/envs/noved/lib/python3.8/site-packages/tensorflow/python/platform/flags.py in __getattr__(self, name)
83 # a flag.
84 if not wrapped.is_parsed():
---> 85 wrapped(_sys.argv)
86 return wrapped.__getattr__(name)
87
~/anaconda3/envs/noved/lib/python3.8/site-packages/absl/flags/_flagvalues.py in __call__(self, argv, known_only)
643 for name, value in unknown_flags:
644 suggestions = _helpers.get_flag_suggestions(name, list(self))
--> 645 raise _exceptions.UnrecognizedFlagError(
646 name, value, suggestions=suggestions)
647
UnrecognizedFlagError: Unknown command line flag 'f'
```
Possible Fix:
Modify `_compute` method https://github.com/huggingface/datasets/blob/7e64851a12263dc74d41c668167918484c8000ab/metrics/bleurt/bleurt.py#L104
to receive a `batch_size` argument, for example:
```
def _compute(self, predictions, references, batch_size=1):
scores = self.scorer.score(references=references, candidates=predictions, batch_size=batch_size)
return {"scores": scores}
``` | 18 | BLEURT score calculation raises UnrecognizedFlagError
Calling the `compute` method for **bleurt** metric fails with an `UnrecognizedFlagError` for `FLAGS.bleurt_batch_size`.
My environment:
```
python==3.8.5
datasets==1.2.0
tensorflow==2.3.1
cudatoolkit==11.0.221
```
Test code for reproducing the error:
```
from datasets import load_metric
bleurt = load_metric('bleurt')
gen_text = "I am walking on the promenade today"
ref_text = "I am walking along the promenade on this sunny day"
bleurt.compute(predictions=[test_text], references=[test_text])
```
Error Output:
```
Using default BLEURT-Base checkpoint for sequence maximum length 128. You can use a bigger model for better results with e.g.: datasets.load_metric('bleurt', 'bleurt-large-512').
INFO:tensorflow:Reading checkpoint /home/ubuntu/.cache/huggingface/metrics/bleurt/default/downloads/extracted/9aee35580225730ac5422599f35c4986e4c49cafd08082123342b1019720dac4/bleurt-base-128.
INFO:tensorflow:Config file found, reading.
INFO:tensorflow:Will load checkpoint bert_custom
INFO:tensorflow:Performs basic checks...
INFO:tensorflow:... name:bert_custom
INFO:tensorflow:... vocab_file:vocab.txt
INFO:tensorflow:... bert_config_file:bert_config.json
INFO:tensorflow:... do_lower_case:True
INFO:tensorflow:... max_seq_length:128
INFO:tensorflow:Creating BLEURT scorer.
INFO:tensorflow:Loading model...
INFO:tensorflow:BLEURT initialized.
---------------------------------------------------------------------------
UnrecognizedFlagError Traceback (most recent call last)
<ipython-input-12-8b3f4322318a> in <module>
2 gen_text = "I am walking on the promenade today"
3 ref_text = "I am walking along the promenade on this sunny day"
----> 4 bleurt.compute(predictions=[gen_text], references=[ref_text])
~/anaconda3/envs/noved/lib/python3.8/site-packages/datasets/metric.py in compute(self, *args, **kwargs)
396 references = self.data["references"]
397 with temp_seed(self.seed):
--> 398 output = self._compute(predictions=predictions, references=references, **kwargs)
399
400 if self.buf_writer is not None:
~/.cache/huggingface/modules/datasets_modules/metrics/bleurt/b1de33e1cbbcb1dbe276c887efa1fad68c6aff913885108078fa1ad408908778/bleurt.py in _compute(self, predictions, references)
103
104 def _compute(self, predictions, references):
--> 105 scores = self.scorer.score(references=references, candidates=predictions)
106 return {"scores": scores}
~/anaconda3/envs/noved/lib/python3.8/site-packages/bleurt/score.py in score(self, references, candidates, batch_size)
164 """
165 if not batch_size:
--> 166 batch_size = FLAGS.bleurt_batch_size
167
168 candidates, references = list(candidates), list(references)
~/anaconda3/envs/noved/lib/python3.8/site-packages/tensorflow/python/platform/flags.py in __getattr__(self, name)
83 # a flag.
84 if not wrapped.is_parsed():
---> 85 wrapped(_sys.argv)
86 return wrapped.__getattr__(name)
87
~/anaconda3/envs/noved/lib/python3.8/site-packages/absl/flags/_flagvalues.py in __call__(self, argv, known_only)
643 for name, value in unknown_flags:
644 suggestions = _helpers.get_flag_suggestions(name, list(self))
--> 645 raise _exceptions.UnrecognizedFlagError(
646 name, value, suggestions=suggestions)
647
UnrecognizedFlagError: Unknown command line flag 'f'
```
Possible Fix:
Modify `_compute` method https://github.com/huggingface/datasets/blob/7e64851a12263dc74d41c668167918484c8000ab/metrics/bleurt/bleurt.py#L104
to receive a `batch_size` argument, for example:
```
def _compute(self, predictions, references, batch_size=1):
scores = self.scorer.score(references=references, candidates=predictions, batch_size=batch_size)
return {"scores": scores}
```
And I have the same error with TF 2.4.1. I believe this issue should be reopened. Any ideas?! | [
-0.3299122154712677,
-0.39836767315864563,
0.04140739142894745,
0.4000958502292633,
0.3001840114593506,
-0.22759149968624115,
0.2741968333721161,
0.25628674030303955,
0.005499313585460186,
0.2942810356616974,
-0.012273075059056282,
0.022469541057944298,
-0.08508630841970444,
0.04614190012216568,
-0.2817869186401367,
0.12845055758953094,
-0.20951317250728607,
-0.07703892141580582,
0.421746164560318,
0.08553557097911835,
-0.3209676444530487,
0.19018222391605377,
-0.11296121031045914,
-0.18275579810142517,
-0.31205445528030396,
0.018966039642691612,
0.32888931035995483,
-0.0016792909009382129,
-0.1310291886329651,
-0.2663409113883972,
0.11802919954061508,
-0.19675515592098236,
0.11216548085212708,
0.5339962840080261,
-0.00011421442468417808,
-0.16619150340557098,
0.13908381760120392,
-0.18148882687091827,
-0.17730894684791565,
-0.14011985063552856,
-0.03427281975746155,
-0.25714391469955444,
-0.1122625544667244,
-0.24260476231575012,
0.044150251895189285,
0.18768243491649628,
-0.16063320636749268,
-0.012286314740777016,
0.1843590885400772,
0.39791151881217957,
0.14499935507774353,
0.15091142058372498,
0.07810504734516144,
0.077845498919487,
-0.138113871216774,
-0.3425809144973755,
-0.1521802842617035,
0.3253556191921234,
-0.06692467629909515,
0.03162681683897972,
-0.20974315702915192,
0.22105436027050018,
0.16179391741752625,
0.21452614665031433,
0.28306618332862854,
-0.11133354902267456,
0.3766460120677948,
-0.04792281985282898,
0.2515900731086731,
0.19776198267936707,
-0.09956950694322586,
-0.20138989388942719,
-0.21858619153499603,
0.18862290680408478,
0.12778766453266144,
-0.6358429789543152,
-0.05380101874470711,
-0.06097278743982315,
-0.16854366660118103,
-0.38112083077430725,
-0.3757064640522003,
-0.10144848376512527,
-0.10101772844791412,
-0.13524259626865387,
-0.1513606160879135,
0.17876139283180237,
-0.3350166082382202,
0.10107950121164322,
0.06649905443191528,
0.0372486412525177,
0.2274395227432251,
0.09554244577884674,
0.10291215032339096,
0.22068236768245697,
-0.4990330934524536,
-0.1053616851568222,
0.01608775369822979,
-0.18885481357574463,
-0.016234852373600006,
-0.032536424696445465,
0.24662621319293976,
-0.01586148515343666,
-0.05601944401860237,
0.15804637968540192,
-0.1570669710636139,
0.5400379300117493,
0.1700802445411682,
0.08421365916728973,
0.3933701813220978,
0.5855423212051392,
0.09295424818992615,
-0.0040579624474048615,
-0.005677622742950916,
-0.5385399460792542,
0.23224176466464996,
0.0733199343085289,
-0.17841237783432007,
-0.18943026661872864,
-0.4930154085159302,
0.0014648858923465014,
-0.06099274381995201,
0.03128054738044739,
0.2731889486312866,
0.4516296088695526,
-0.3899906277656555,
-0.24429842829704285,
0.2423391491174698,
-0.051819950342178345,
-0.044099606573581696,
-0.048507772386074066,
-0.278729647397995,
0.06354260444641113,
-0.029643548652529716,
0.19078250229358673,
0.08794563263654709,
-0.6552613973617554,
0.333769291639328,
-0.15722674131393433,
0.25681906938552856,
-0.2171640396118164,
0.0846605896949768,
-0.23427200317382812,
-0.014011350460350513,
0.029247596859931946,
-0.05533665046095848,
-0.31334373354911804,
0.32569342851638794,
-0.278212308883667,
0.09636648744344711,
0.0749981701374054,
-0.05072775110602379,
-0.40880286693573,
0.05963640287518501,
0.11786721646785736,
-0.13852474093437195,
0.058627694845199585,
-0.14546751976013184,
0.20553059875965118,
0.31066375970840454,
-0.051741745322942734,
0.06077514588832855,
-0.14683428406715393,
-0.18840980529785156,
-0.13215523958206177,
0.562406599521637,
-0.02965206652879715,
-0.22556276619434357,
-0.04994778335094452,
-0.03302209451794624,
0.02145175077021122,
0.3609203100204468,
0.3322622776031494,
0.04741409420967102,
0.1374678909778595,
-0.10439594089984894,
-0.10682202875614166,
0.29522305727005005,
-0.3557238280773163,
-0.1823657751083374,
-0.16049553453922272,
0.04117428511381149,
-0.18272961676120758,
0.05327296257019043,
-0.1426052749156952,
-0.026113416999578476,
-0.15446332097053528,
0.41894370317459106,
0.0851459875702858,
-0.176656574010849,
-0.11907267570495605,
-0.4814084470272064,
-0.35024213790893555,
-0.09127078950405121,
0.05895423889160156,
0.5071209073066711,
-0.07625357061624527,
0.17161118984222412,
0.2642098665237427,
0.05545502528548241,
-0.0777343362569809,
0.0007424619398079813,
0.13575764000415802,
0.2604106664657593,
-0.24531950056552887,
0.1736738681793213,
-0.18391545116901398,
0.1943778246641159,
0.22709234058856964,
0.14800870418548584,
0.1326928585767746,
0.06455019861459732,
-0.09578769654035568,
-0.3693135976791382,
0.011741148307919502,
0.04087376222014427,
-0.09064199030399323,
0.19420045614242554,
-0.023632626980543137,
0.020072942599654198,
-0.04626088961958885,
-0.1779584288597107,
0.01906134933233261,
-0.6478570103645325,
0.05777967721223831,
0.24215584993362427,
-0.011923792771995068,
0.009531836956739426,
-0.11172334104776382,
0.07775747776031494,
0.3475857079029083,
0.18648162484169006,
0.0795116201043129,
-0.15255911648273468,
0.3241612911224365,
0.1469949334859848,
-0.2106698453426361,
0.06857316941022873,
-0.12138369679450989,
-0.025995461270213127,
0.31581366062164307,
-0.04526826739311218,
0.08326784521341324,
0.09919512271881104,
-0.12095963209867477,
0.24413205683231354,
0.09364654123783112,
-0.07940457761287689,
0.17948274314403534,
0.29466894268989563,
-0.0805852934718132,
-0.07273480296134949,
0.16613148152828217,
0.14957860112190247,
-0.1780601590871811,
0.17246167361736298,
-0.13645705580711365,
0.06643975526094437,
-0.2640109062194824,
0.02713601291179657,
-0.24984966218471527,
0.4172476828098297,
0.07080874592065811,
0.06458047032356262,
0.1937784105539322,
-0.025959936901926994,
-0.05894705653190613,
-0.035006701946258545,
0.08320702612400055,
0.2039913535118103,
-0.04995711147785187,
0.22603443264961243,
0.07168987393379211,
-0.1668180525302887,
-0.13714668154716492,
0.010470710694789886,
0.06624463200569153,
0.24011391401290894,
0.34392809867858887,
0.16824032366275787,
-0.15996113419532776,
-0.27108433842658997,
-0.1610846370458603,
0.24648164212703705,
0.23851977288722992,
-0.15063771605491638,
-0.05685258284211159,
0.07569380104541779,
0.15173272788524628,
-0.2876555323600769,
-0.2880505919456482,
-0.2533508241176605,
-0.15971940755844116,
0.08838365226984024,
0.29258882999420166,
0.25788426399230957,
-0.0014518265379592776,
0.3952105641365051,
0.46171146631240845,
0.059359077364206314,
-0.051337309181690216,
0.05023689940571785,
-0.21538615226745605,
-0.31480374932289124,
0.08866824954748154,
0.06496984511613846,
-0.10161420702934265,
0.23330333828926086,
-0.10219544917345047,
-0.19489938020706177,
-0.34378477931022644,
-0.4103054404258728,
0.010056416504085064,
-0.21031971275806427,
0.47198742628097534,
0.18166349828243256,
-0.004250403959304094,
-0.3588888645172119,
-0.11891353130340576,
0.14626814424991608,
0.12110825628042221,
-0.03983301669359207,
-0.0196854081004858,
-0.1493832916021347,
0.03914756327867508,
-0.07081431150436401,
-0.22209778428077698,
0.1640027016401291,
-0.30414697527885437,
0.24095232784748077,
0.07631366699934006,
0.03065141849219799,
-0.06122491881251335,
0.05230933800339699,
0.5045968294143677,
0.5048178434371948,
-0.037923213094472885,
-0.2633741497993469,
0.09040805697441101,
0.1380200833082199,
-0.33668971061706543,
-0.3102606534957886,
0.021610047668218613,
0.016284054145216942,
0.5390121340751648,
0.1647619903087616,
-0.45799264311790466,
-0.3172897696495056,
-0.08158480376005173,
-0.20542091131210327,
-0.24346807599067688,
0.10444798320531845,
0.10456056147813797,
0.045371606945991516,
-0.016684189438819885,
-0.12195291370153427,
-0.12123117595911026,
0.033526863902807236,
-0.22951191663742065,
0.6499080657958984,
-0.2761822044849396,
0.28033533692359924,
0.3270616829395294,
0.8638534545898438,
0.17141218483448029,
-0.027132833376526833,
0.08198841661214828,
0.12086962908506393,
0.04165533557534218,
-0.007301402278244495,
-0.054564595222473145,
0.6279385685920715,
-0.2941344380378723,
-0.1778903603553772,
0.149763286113739,
-0.1594051867723465,
0.24521954357624054,
-0.05722162872552872,
-0.021892543882131577,
0.11484118551015854,
-0.1691705584526062,
-0.1525200754404068,
0.14203515648841858,
0.22616708278656006,
0.08441031724214554,
0.0116431200876832,
-0.2870465815067291,
-0.043970171362161636,
0.026011381298303604,
0.22015975415706635,
-0.0691901445388794,
-0.008999822661280632,
0.2485225647687912,
0.0041994270868599415,
-0.5446141362190247,
0.44574713706970215,
0.21416045725345612,
0.13161404430866241,
0.0335003063082695,
0.13207250833511353,
-0.09863710403442383,
-0.16176088154315948,
0.221913143992424,
-0.20706623792648315,
0.041391097009181976,
-0.03885727375745773,
-0.08244665712118149,
-0.5960397720336914,
0.03179334104061127,
-0.06195291504263878,
-0.2877739369869232,
0.45654353499412537,
0.3751799762248993,
-0.25940489768981934,
0.13725635409355164,
0.22994820773601532,
0.24744729697704315,
-0.004890912678092718,
0.01772836223244667,
-0.5006986856460571,
-0.40970009565353394,
-0.15691827237606049,
0.1279597282409668,
0.13802571594715118,
0.2855314612388611,
-0.03175255283713341,
0.04163925722241402,
-0.16453805565834045,
-0.17561399936676025,
0.04856983572244644,
0.28616705536842346,
0.03734060749411583,
-0.09882078319787979,
0.1486673355102539,
-0.19388656318187714,
-0.33958426117897034,
0.20055538415908813,
0.12170012295246124,
-0.0412943996489048,
-0.9286253452301025,
0.03974241763353348,
0.02721959725022316,
0.24921555817127228,
0.13508911430835724,
-0.1588994860649109,
0.2074216604232788,
-0.1697259396314621,
0.43467485904693604,
0.07449306547641754,
0.27711254358291626,
0.16090308129787445,
0.33665207028388977,
-0.010516325943171978,
-0.12534306943416595,
0.3105498254299164,
0.2530326545238495,
0.2215176224708557,
0.5469450354576111,
-0.09156492352485657,
-0.11807215958833694,
0.12478797137737274,
0.615729570388794,
0.6351808905601501,
0.01956314779818058,
-0.27837854623794556,
0.36204060912132263,
-0.048477865755558014,
0.44662633538246155,
-0.4077371656894684,
0.40813568234443665,
-0.30015259981155396,
-0.5378538370132446,
0.09860266745090485,
0.016689060255885124,
0.02945541962981224,
-0.25062182545661926,
-0.10748375207185745,
0.3304620087146759,
-0.15858253836631775,
-0.22080504894256592,
0.0330510251224041,
0.07572581619024277,
-0.39099520444869995,
-0.08136937767267227,
-0.015905873849987984,
0.1809706687927246,
-0.19848956167697906,
0.15306974947452545,
-0.23911257088184357,
0.22615109384059906,
-0.026903249323368073,
-0.07773634046316147,
-0.2188994139432907,
0.0008699611644260585,
-0.4559265673160553,
0.18233948945999146,
-0.06680295616388321,
-0.06951764225959778,
0.03761754557490349,
0.28962790966033936,
0.8918437957763672,
0.13067473471164703,
-0.07761824131011963,
0.11590567231178284,
-0.014726641587913036,
-0.09182456880807877,
-0.0855848416686058,
0.06435684859752655,
0.2934023141860962,
-0.2617599666118622,
-0.16873903572559357,
-0.08115074038505554,
0.09257586300373077,
-0.16079209744930267,
0.362564355134964,
-0.04671056941151619,
-0.07486839592456818,
0.15066705644130707,
0.020217087119817734,
0.02663116529583931,
-0.06784180551767349,
-0.17309953272342682,
0.11561594903469086,
-0.16313643753528595,
-0.2514808773994446,
-0.011650782078504562,
0.013960408046841621,
-0.35382309556007385,
0.07691983133554459,
0.1848151683807373,
0.0963558554649353,
-0.15267549455165863,
0.4362219572067261,
-0.12702174484729767,
-0.06890573352575302,
-0.08265192061662674,
-0.48287591338157654,
0.09407871216535568,
-0.0615820474922657,
0.32770323753356934,
-0.03919404372572899,
-0.15081895887851715,
0.1088472530245781,
0.8712243437767029,
0.2959723174571991,
0.15337887406349182,
-0.2297152578830719,
-0.3328503370285034,
-0.32470372319221497,
0.014475963078439236,
0.005240366794168949,
0.09894127398729324,
-0.16323724389076233,
0.3649546802043915,
-0.11459749191999435,
0.3088018596172333,
-0.24895896017551422,
0.11808589100837708,
-0.4077552556991577,
0.11900578439235687,
-0.14777611196041107,
-0.16000403463840485,
0.30077093839645386,
0.36645179986953735,
0.011363084428012371,
0.44244247674942017,
-0.24321015179157257,
-0.18150490522384644,
-0.1888817548751831,
0.11997143924236298,
0.23678545653820038,
-0.03730208799242973,
-0.15523125231266022,
-0.045934274792671204,
-0.31020882725715637,
-0.17679302394390106,
0.21192461252212524,
0.2571958899497986,
-0.06610937416553497,
0.0637439414858818,
-0.24947063624858856,
0.42239147424697876,
0.22513532638549805,
-0.29633891582489014,
0.3116737902164459,
0.20229412615299225,
0.13051189482212067,
0.09952470660209656,
0.14368563890457153,
0.07203119248151779,
0.08041006326675415,
-0.2597726881504059,
-0.009855789132416248,
0.008554577827453613,
0.19674021005630493,
-0.2309921234846115,
-0.15612083673477173,
-0.37082669138908386,
0.05171830952167511,
0.36357641220092773,
0.007452016696333885,
-0.27410900592803955,
0.19149178266525269,
0.13226038217544556,
-0.32511889934539795,
0.11903312057256699,
-0.2570674419403076,
0.05392858758568764,
0.08568452298641205,
0.27379679679870605,
0.004499637521803379,
0.023140350356698036,
0.037061359733343124,
-0.04047657176852226,
-0.19417214393615723,
-0.5982768535614014,
-0.04233429953455925,
-0.14811763167381287,
-0.23137441277503967,
0.24175232648849487,
0.380296528339386,
-0.10069054365158081,
0.3059271574020386,
0.0606963112950325,
-0.10947341471910477,
0.25705626606941223,
-0.6360200643539429,
0.09245940297842026,
0.09076341986656189,
-0.057219248265028,
0.3093508183956146,
0.058656442910432816,
-0.08549641072750092,
-0.018470266833901405,
-0.23897410929203033,
0.34029725193977356,
-0.3041677176952362,
0.09762682020664215,
-0.22712060809135437,
0.03300946578383446,
-0.10786482691764832,
0.005204764660447836,
0.1080261617898941,
-0.07958810776472092,
0.13740026950836182,
-0.07346227765083313,
0.2036411017179489,
0.11403711885213852,
-0.22369153797626495,
0.22999298572540283,
-0.11681787669658661,
0.07374713569879532,
-0.6453633904457092,
0.5514608025550842,
0.3634347915649414,
-0.09826937317848206,
0.01676267944276333,
0.2653762996196747,
0.01522313803434372,
-0.18764792382717133,
0.32546770572662354,
0.20124900341033936,
0.47875547409057617,
-0.04328104108572006,
-0.07363342493772507,
0.12418148666620255,
0.0740470290184021,
-0.09110687673091888,
0.28077232837677,
0.5041823387145996,
0.07197180390357971,
0.45485594868659973,
0.05568479374051094,
-0.24693970382213593,
0.10967022180557251,
-0.06710436940193176,
0.0015850415220484138,
-0.10189812630414963,
0.4422677755355835,
-0.08225837349891663,
0.008662709034979343,
-0.32234933972358704,
-0.11045538634061813,
-0.33704593777656555,
0.3438332676887512,
0.05582115054130554,
-0.047978900372982025,
0.25152549147605896,
0.011279351077973843,
0.08349233120679855,
-0.034629106521606445,
0.2525554299354553,
0.13496384024620056,
-0.1671021282672882,
-0.32392603158950806,
-0.18113303184509277,
-0.5610327124595642,
0.22686515748500824,
0.13356734812259674,
0.18414990603923798,
-0.031347937881946564,
0.16959284245967865,
-0.25292739272117615,
-0.11920086294412613,
-0.04632525518536568,
-0.19636192917823792,
0.2509227991104126,
0.024807177484035492,
-0.2768288254737854,
-0.3529919683933258,
-0.241624653339386,
-0.42277437448501587,
0.17088395357131958,
-0.24913114309310913,
0.009029015898704529,
-0.15369373559951782,
-0.0019239633111283183,
-0.045534614473581314,
-0.03631960228085518,
0.26113566756248474,
0.3332715630531311,
0.23745213449001312,
0.03461544215679169,
0.5644972324371338,
-0.037853263318538666,
-0.07344899326562881,
0.015898605808615685,
0.1402173787355423,
-0.2252642661333084,
0.23529601097106934,
0.14536625146865845,
0.39479783177375793,
-0.03567197918891907,
-0.1783236414194107,
-0.4293419122695923,
0.7531887292861938,
0.28733500838279724,
-0.2265712171792984,
-0.0793084129691124,
-0.04111092537641525,
0.10832618176937103,
0.0716213583946228,
0.3129253387451172,
0.3638014495372772,
-0.1406288892030716,
0.33080315589904785,
-0.35881561040878296,
-0.2075112760066986,
0.5828337073326111,
-0.4029493033885956,
-0.29715144634246826,
-0.008299557492136955,
0.3402397632598877,
0.5178592205047607,
-0.43535497784614563,
-0.831995964050293,
-0.00667200842872262,
0.2214435338973999,
0.11133091896772385,
-0.2993389070034027,
0.08498024940490723,
-0.16652943193912506,
0.26736360788345337,
-0.08180569112300873,
0.3439679741859436,
-0.07568897306919098,
-0.1214866116642952,
0.0391111820936203,
-0.24258317053318024
] |
https://github.com/huggingface/datasets/issues/1727 | BLEURT score calculation raises UnrecognizedFlagError | I'm seeing the same issue with TF 2.4.1 when running the following in https://colab.research.google.com/github/huggingface/datasets/blob/master/notebooks/Overview.ipynb:
```
!pip install git+https://github.com/google-research/bleurt.git
references = ["foo bar baz", "one two three"]
bleurt_metric = load_metric('bleurt')
predictions = ["foo bar", "four five six"]
bleurt_metric.compute(predictions=predictions, references=references)
``` | Calling the `compute` method for **bleurt** metric fails with an `UnrecognizedFlagError` for `FLAGS.bleurt_batch_size`.
My environment:
```
python==3.8.5
datasets==1.2.0
tensorflow==2.3.1
cudatoolkit==11.0.221
```
Test code for reproducing the error:
```
from datasets import load_metric
bleurt = load_metric('bleurt')
gen_text = "I am walking on the promenade today"
ref_text = "I am walking along the promenade on this sunny day"
bleurt.compute(predictions=[test_text], references=[test_text])
```
Error Output:
```
Using default BLEURT-Base checkpoint for sequence maximum length 128. You can use a bigger model for better results with e.g.: datasets.load_metric('bleurt', 'bleurt-large-512').
INFO:tensorflow:Reading checkpoint /home/ubuntu/.cache/huggingface/metrics/bleurt/default/downloads/extracted/9aee35580225730ac5422599f35c4986e4c49cafd08082123342b1019720dac4/bleurt-base-128.
INFO:tensorflow:Config file found, reading.
INFO:tensorflow:Will load checkpoint bert_custom
INFO:tensorflow:Performs basic checks...
INFO:tensorflow:... name:bert_custom
INFO:tensorflow:... vocab_file:vocab.txt
INFO:tensorflow:... bert_config_file:bert_config.json
INFO:tensorflow:... do_lower_case:True
INFO:tensorflow:... max_seq_length:128
INFO:tensorflow:Creating BLEURT scorer.
INFO:tensorflow:Loading model...
INFO:tensorflow:BLEURT initialized.
---------------------------------------------------------------------------
UnrecognizedFlagError Traceback (most recent call last)
<ipython-input-12-8b3f4322318a> in <module>
2 gen_text = "I am walking on the promenade today"
3 ref_text = "I am walking along the promenade on this sunny day"
----> 4 bleurt.compute(predictions=[gen_text], references=[ref_text])
~/anaconda3/envs/noved/lib/python3.8/site-packages/datasets/metric.py in compute(self, *args, **kwargs)
396 references = self.data["references"]
397 with temp_seed(self.seed):
--> 398 output = self._compute(predictions=predictions, references=references, **kwargs)
399
400 if self.buf_writer is not None:
~/.cache/huggingface/modules/datasets_modules/metrics/bleurt/b1de33e1cbbcb1dbe276c887efa1fad68c6aff913885108078fa1ad408908778/bleurt.py in _compute(self, predictions, references)
103
104 def _compute(self, predictions, references):
--> 105 scores = self.scorer.score(references=references, candidates=predictions)
106 return {"scores": scores}
~/anaconda3/envs/noved/lib/python3.8/site-packages/bleurt/score.py in score(self, references, candidates, batch_size)
164 """
165 if not batch_size:
--> 166 batch_size = FLAGS.bleurt_batch_size
167
168 candidates, references = list(candidates), list(references)
~/anaconda3/envs/noved/lib/python3.8/site-packages/tensorflow/python/platform/flags.py in __getattr__(self, name)
83 # a flag.
84 if not wrapped.is_parsed():
---> 85 wrapped(_sys.argv)
86 return wrapped.__getattr__(name)
87
~/anaconda3/envs/noved/lib/python3.8/site-packages/absl/flags/_flagvalues.py in __call__(self, argv, known_only)
643 for name, value in unknown_flags:
644 suggestions = _helpers.get_flag_suggestions(name, list(self))
--> 645 raise _exceptions.UnrecognizedFlagError(
646 name, value, suggestions=suggestions)
647
UnrecognizedFlagError: Unknown command line flag 'f'
```
Possible Fix:
Modify `_compute` method https://github.com/huggingface/datasets/blob/7e64851a12263dc74d41c668167918484c8000ab/metrics/bleurt/bleurt.py#L104
to receive a `batch_size` argument, for example:
```
def _compute(self, predictions, references, batch_size=1):
scores = self.scorer.score(references=references, candidates=predictions, batch_size=batch_size)
return {"scores": scores}
``` | 39 | BLEURT score calculation raises UnrecognizedFlagError
Calling the `compute` method for **bleurt** metric fails with an `UnrecognizedFlagError` for `FLAGS.bleurt_batch_size`.
My environment:
```
python==3.8.5
datasets==1.2.0
tensorflow==2.3.1
cudatoolkit==11.0.221
```
Test code for reproducing the error:
```
from datasets import load_metric
bleurt = load_metric('bleurt')
gen_text = "I am walking on the promenade today"
ref_text = "I am walking along the promenade on this sunny day"
bleurt.compute(predictions=[test_text], references=[test_text])
```
Error Output:
```
Using default BLEURT-Base checkpoint for sequence maximum length 128. You can use a bigger model for better results with e.g.: datasets.load_metric('bleurt', 'bleurt-large-512').
INFO:tensorflow:Reading checkpoint /home/ubuntu/.cache/huggingface/metrics/bleurt/default/downloads/extracted/9aee35580225730ac5422599f35c4986e4c49cafd08082123342b1019720dac4/bleurt-base-128.
INFO:tensorflow:Config file found, reading.
INFO:tensorflow:Will load checkpoint bert_custom
INFO:tensorflow:Performs basic checks...
INFO:tensorflow:... name:bert_custom
INFO:tensorflow:... vocab_file:vocab.txt
INFO:tensorflow:... bert_config_file:bert_config.json
INFO:tensorflow:... do_lower_case:True
INFO:tensorflow:... max_seq_length:128
INFO:tensorflow:Creating BLEURT scorer.
INFO:tensorflow:Loading model...
INFO:tensorflow:BLEURT initialized.
---------------------------------------------------------------------------
UnrecognizedFlagError Traceback (most recent call last)
<ipython-input-12-8b3f4322318a> in <module>
2 gen_text = "I am walking on the promenade today"
3 ref_text = "I am walking along the promenade on this sunny day"
----> 4 bleurt.compute(predictions=[gen_text], references=[ref_text])
~/anaconda3/envs/noved/lib/python3.8/site-packages/datasets/metric.py in compute(self, *args, **kwargs)
396 references = self.data["references"]
397 with temp_seed(self.seed):
--> 398 output = self._compute(predictions=predictions, references=references, **kwargs)
399
400 if self.buf_writer is not None:
~/.cache/huggingface/modules/datasets_modules/metrics/bleurt/b1de33e1cbbcb1dbe276c887efa1fad68c6aff913885108078fa1ad408908778/bleurt.py in _compute(self, predictions, references)
103
104 def _compute(self, predictions, references):
--> 105 scores = self.scorer.score(references=references, candidates=predictions)
106 return {"scores": scores}
~/anaconda3/envs/noved/lib/python3.8/site-packages/bleurt/score.py in score(self, references, candidates, batch_size)
164 """
165 if not batch_size:
--> 166 batch_size = FLAGS.bleurt_batch_size
167
168 candidates, references = list(candidates), list(references)
~/anaconda3/envs/noved/lib/python3.8/site-packages/tensorflow/python/platform/flags.py in __getattr__(self, name)
83 # a flag.
84 if not wrapped.is_parsed():
---> 85 wrapped(_sys.argv)
86 return wrapped.__getattr__(name)
87
~/anaconda3/envs/noved/lib/python3.8/site-packages/absl/flags/_flagvalues.py in __call__(self, argv, known_only)
643 for name, value in unknown_flags:
644 suggestions = _helpers.get_flag_suggestions(name, list(self))
--> 645 raise _exceptions.UnrecognizedFlagError(
646 name, value, suggestions=suggestions)
647
UnrecognizedFlagError: Unknown command line flag 'f'
```
Possible Fix:
Modify `_compute` method https://github.com/huggingface/datasets/blob/7e64851a12263dc74d41c668167918484c8000ab/metrics/bleurt/bleurt.py#L104
to receive a `batch_size` argument, for example:
```
def _compute(self, predictions, references, batch_size=1):
scores = self.scorer.score(references=references, candidates=predictions, batch_size=batch_size)
return {"scores": scores}
```
I'm seeing the same issue with TF 2.4.1 when running the following in https://colab.research.google.com/github/huggingface/datasets/blob/master/notebooks/Overview.ipynb:
```
!pip install git+https://github.com/google-research/bleurt.git
references = ["foo bar baz", "one two three"]
bleurt_metric = load_metric('bleurt')
predictions = ["foo bar", "four five six"]
bleurt_metric.compute(predictions=predictions, references=references)
``` | [
-0.3299122154712677,
-0.39836767315864563,
0.04140739142894745,
0.4000958502292633,
0.3001840114593506,
-0.22759149968624115,
0.2741968333721161,
0.25628674030303955,
0.005499313585460186,
0.2942810356616974,
-0.012273075059056282,
0.022469541057944298,
-0.08508630841970444,
0.04614190012216568,
-0.2817869186401367,
0.12845055758953094,
-0.20951317250728607,
-0.07703892141580582,
0.421746164560318,
0.08553557097911835,
-0.3209676444530487,
0.19018222391605377,
-0.11296121031045914,
-0.18275579810142517,
-0.31205445528030396,
0.018966039642691612,
0.32888931035995483,
-0.0016792909009382129,
-0.1310291886329651,
-0.2663409113883972,
0.11802919954061508,
-0.19675515592098236,
0.11216548085212708,
0.5339962840080261,
-0.00011421442468417808,
-0.16619150340557098,
0.13908381760120392,
-0.18148882687091827,
-0.17730894684791565,
-0.14011985063552856,
-0.03427281975746155,
-0.25714391469955444,
-0.1122625544667244,
-0.24260476231575012,
0.044150251895189285,
0.18768243491649628,
-0.16063320636749268,
-0.012286314740777016,
0.1843590885400772,
0.39791151881217957,
0.14499935507774353,
0.15091142058372498,
0.07810504734516144,
0.077845498919487,
-0.138113871216774,
-0.3425809144973755,
-0.1521802842617035,
0.3253556191921234,
-0.06692467629909515,
0.03162681683897972,
-0.20974315702915192,
0.22105436027050018,
0.16179391741752625,
0.21452614665031433,
0.28306618332862854,
-0.11133354902267456,
0.3766460120677948,
-0.04792281985282898,
0.2515900731086731,
0.19776198267936707,
-0.09956950694322586,
-0.20138989388942719,
-0.21858619153499603,
0.18862290680408478,
0.12778766453266144,
-0.6358429789543152,
-0.05380101874470711,
-0.06097278743982315,
-0.16854366660118103,
-0.38112083077430725,
-0.3757064640522003,
-0.10144848376512527,
-0.10101772844791412,
-0.13524259626865387,
-0.1513606160879135,
0.17876139283180237,
-0.3350166082382202,
0.10107950121164322,
0.06649905443191528,
0.0372486412525177,
0.2274395227432251,
0.09554244577884674,
0.10291215032339096,
0.22068236768245697,
-0.4990330934524536,
-0.1053616851568222,
0.01608775369822979,
-0.18885481357574463,
-0.016234852373600006,
-0.032536424696445465,
0.24662621319293976,
-0.01586148515343666,
-0.05601944401860237,
0.15804637968540192,
-0.1570669710636139,
0.5400379300117493,
0.1700802445411682,
0.08421365916728973,
0.3933701813220978,
0.5855423212051392,
0.09295424818992615,
-0.0040579624474048615,
-0.005677622742950916,
-0.5385399460792542,
0.23224176466464996,
0.0733199343085289,
-0.17841237783432007,
-0.18943026661872864,
-0.4930154085159302,
0.0014648858923465014,
-0.06099274381995201,
0.03128054738044739,
0.2731889486312866,
0.4516296088695526,
-0.3899906277656555,
-0.24429842829704285,
0.2423391491174698,
-0.051819950342178345,
-0.044099606573581696,
-0.048507772386074066,
-0.278729647397995,
0.06354260444641113,
-0.029643548652529716,
0.19078250229358673,
0.08794563263654709,
-0.6552613973617554,
0.333769291639328,
-0.15722674131393433,
0.25681906938552856,
-0.2171640396118164,
0.0846605896949768,
-0.23427200317382812,
-0.014011350460350513,
0.029247596859931946,
-0.05533665046095848,
-0.31334373354911804,
0.32569342851638794,
-0.278212308883667,
0.09636648744344711,
0.0749981701374054,
-0.05072775110602379,
-0.40880286693573,
0.05963640287518501,
0.11786721646785736,
-0.13852474093437195,
0.058627694845199585,
-0.14546751976013184,
0.20553059875965118,
0.31066375970840454,
-0.051741745322942734,
0.06077514588832855,
-0.14683428406715393,
-0.18840980529785156,
-0.13215523958206177,
0.562406599521637,
-0.02965206652879715,
-0.22556276619434357,
-0.04994778335094452,
-0.03302209451794624,
0.02145175077021122,
0.3609203100204468,
0.3322622776031494,
0.04741409420967102,
0.1374678909778595,
-0.10439594089984894,
-0.10682202875614166,
0.29522305727005005,
-0.3557238280773163,
-0.1823657751083374,
-0.16049553453922272,
0.04117428511381149,
-0.18272961676120758,
0.05327296257019043,
-0.1426052749156952,
-0.026113416999578476,
-0.15446332097053528,
0.41894370317459106,
0.0851459875702858,
-0.176656574010849,
-0.11907267570495605,
-0.4814084470272064,
-0.35024213790893555,
-0.09127078950405121,
0.05895423889160156,
0.5071209073066711,
-0.07625357061624527,
0.17161118984222412,
0.2642098665237427,
0.05545502528548241,
-0.0777343362569809,
0.0007424619398079813,
0.13575764000415802,
0.2604106664657593,
-0.24531950056552887,
0.1736738681793213,
-0.18391545116901398,
0.1943778246641159,
0.22709234058856964,
0.14800870418548584,
0.1326928585767746,
0.06455019861459732,
-0.09578769654035568,
-0.3693135976791382,
0.011741148307919502,
0.04087376222014427,
-0.09064199030399323,
0.19420045614242554,
-0.023632626980543137,
0.020072942599654198,
-0.04626088961958885,
-0.1779584288597107,
0.01906134933233261,
-0.6478570103645325,
0.05777967721223831,
0.24215584993362427,
-0.011923792771995068,
0.009531836956739426,
-0.11172334104776382,
0.07775747776031494,
0.3475857079029083,
0.18648162484169006,
0.0795116201043129,
-0.15255911648273468,
0.3241612911224365,
0.1469949334859848,
-0.2106698453426361,
0.06857316941022873,
-0.12138369679450989,
-0.025995461270213127,
0.31581366062164307,
-0.04526826739311218,
0.08326784521341324,
0.09919512271881104,
-0.12095963209867477,
0.24413205683231354,
0.09364654123783112,
-0.07940457761287689,
0.17948274314403534,
0.29466894268989563,
-0.0805852934718132,
-0.07273480296134949,
0.16613148152828217,
0.14957860112190247,
-0.1780601590871811,
0.17246167361736298,
-0.13645705580711365,
0.06643975526094437,
-0.2640109062194824,
0.02713601291179657,
-0.24984966218471527,
0.4172476828098297,
0.07080874592065811,
0.06458047032356262,
0.1937784105539322,
-0.025959936901926994,
-0.05894705653190613,
-0.035006701946258545,
0.08320702612400055,
0.2039913535118103,
-0.04995711147785187,
0.22603443264961243,
0.07168987393379211,
-0.1668180525302887,
-0.13714668154716492,
0.010470710694789886,
0.06624463200569153,
0.24011391401290894,
0.34392809867858887,
0.16824032366275787,
-0.15996113419532776,
-0.27108433842658997,
-0.1610846370458603,
0.24648164212703705,
0.23851977288722992,
-0.15063771605491638,
-0.05685258284211159,
0.07569380104541779,
0.15173272788524628,
-0.2876555323600769,
-0.2880505919456482,
-0.2533508241176605,
-0.15971940755844116,
0.08838365226984024,
0.29258882999420166,
0.25788426399230957,
-0.0014518265379592776,
0.3952105641365051,
0.46171146631240845,
0.059359077364206314,
-0.051337309181690216,
0.05023689940571785,
-0.21538615226745605,
-0.31480374932289124,
0.08866824954748154,
0.06496984511613846,
-0.10161420702934265,
0.23330333828926086,
-0.10219544917345047,
-0.19489938020706177,
-0.34378477931022644,
-0.4103054404258728,
0.010056416504085064,
-0.21031971275806427,
0.47198742628097534,
0.18166349828243256,
-0.004250403959304094,
-0.3588888645172119,
-0.11891353130340576,
0.14626814424991608,
0.12110825628042221,
-0.03983301669359207,
-0.0196854081004858,
-0.1493832916021347,
0.03914756327867508,
-0.07081431150436401,
-0.22209778428077698,
0.1640027016401291,
-0.30414697527885437,
0.24095232784748077,
0.07631366699934006,
0.03065141849219799,
-0.06122491881251335,
0.05230933800339699,
0.5045968294143677,
0.5048178434371948,
-0.037923213094472885,
-0.2633741497993469,
0.09040805697441101,
0.1380200833082199,
-0.33668971061706543,
-0.3102606534957886,
0.021610047668218613,
0.016284054145216942,
0.5390121340751648,
0.1647619903087616,
-0.45799264311790466,
-0.3172897696495056,
-0.08158480376005173,
-0.20542091131210327,
-0.24346807599067688,
0.10444798320531845,
0.10456056147813797,
0.045371606945991516,
-0.016684189438819885,
-0.12195291370153427,
-0.12123117595911026,
0.033526863902807236,
-0.22951191663742065,
0.6499080657958984,
-0.2761822044849396,
0.28033533692359924,
0.3270616829395294,
0.8638534545898438,
0.17141218483448029,
-0.027132833376526833,
0.08198841661214828,
0.12086962908506393,
0.04165533557534218,
-0.007301402278244495,
-0.054564595222473145,
0.6279385685920715,
-0.2941344380378723,
-0.1778903603553772,
0.149763286113739,
-0.1594051867723465,
0.24521954357624054,
-0.05722162872552872,
-0.021892543882131577,
0.11484118551015854,
-0.1691705584526062,
-0.1525200754404068,
0.14203515648841858,
0.22616708278656006,
0.08441031724214554,
0.0116431200876832,
-0.2870465815067291,
-0.043970171362161636,
0.026011381298303604,
0.22015975415706635,
-0.0691901445388794,
-0.008999822661280632,
0.2485225647687912,
0.0041994270868599415,
-0.5446141362190247,
0.44574713706970215,
0.21416045725345612,
0.13161404430866241,
0.0335003063082695,
0.13207250833511353,
-0.09863710403442383,
-0.16176088154315948,
0.221913143992424,
-0.20706623792648315,
0.041391097009181976,
-0.03885727375745773,
-0.08244665712118149,
-0.5960397720336914,
0.03179334104061127,
-0.06195291504263878,
-0.2877739369869232,
0.45654353499412537,
0.3751799762248993,
-0.25940489768981934,
0.13725635409355164,
0.22994820773601532,
0.24744729697704315,
-0.004890912678092718,
0.01772836223244667,
-0.5006986856460571,
-0.40970009565353394,
-0.15691827237606049,
0.1279597282409668,
0.13802571594715118,
0.2855314612388611,
-0.03175255283713341,
0.04163925722241402,
-0.16453805565834045,
-0.17561399936676025,
0.04856983572244644,
0.28616705536842346,
0.03734060749411583,
-0.09882078319787979,
0.1486673355102539,
-0.19388656318187714,
-0.33958426117897034,
0.20055538415908813,
0.12170012295246124,
-0.0412943996489048,
-0.9286253452301025,
0.03974241763353348,
0.02721959725022316,
0.24921555817127228,
0.13508911430835724,
-0.1588994860649109,
0.2074216604232788,
-0.1697259396314621,
0.43467485904693604,
0.07449306547641754,
0.27711254358291626,
0.16090308129787445,
0.33665207028388977,
-0.010516325943171978,
-0.12534306943416595,
0.3105498254299164,
0.2530326545238495,
0.2215176224708557,
0.5469450354576111,
-0.09156492352485657,
-0.11807215958833694,
0.12478797137737274,
0.615729570388794,
0.6351808905601501,
0.01956314779818058,
-0.27837854623794556,
0.36204060912132263,
-0.048477865755558014,
0.44662633538246155,
-0.4077371656894684,
0.40813568234443665,
-0.30015259981155396,
-0.5378538370132446,
0.09860266745090485,
0.016689060255885124,
0.02945541962981224,
-0.25062182545661926,
-0.10748375207185745,
0.3304620087146759,
-0.15858253836631775,
-0.22080504894256592,
0.0330510251224041,
0.07572581619024277,
-0.39099520444869995,
-0.08136937767267227,
-0.015905873849987984,
0.1809706687927246,
-0.19848956167697906,
0.15306974947452545,
-0.23911257088184357,
0.22615109384059906,
-0.026903249323368073,
-0.07773634046316147,
-0.2188994139432907,
0.0008699611644260585,
-0.4559265673160553,
0.18233948945999146,
-0.06680295616388321,
-0.06951764225959778,
0.03761754557490349,
0.28962790966033936,
0.8918437957763672,
0.13067473471164703,
-0.07761824131011963,
0.11590567231178284,
-0.014726641587913036,
-0.09182456880807877,
-0.0855848416686058,
0.06435684859752655,
0.2934023141860962,
-0.2617599666118622,
-0.16873903572559357,
-0.08115074038505554,
0.09257586300373077,
-0.16079209744930267,
0.362564355134964,
-0.04671056941151619,
-0.07486839592456818,
0.15066705644130707,
0.020217087119817734,
0.02663116529583931,
-0.06784180551767349,
-0.17309953272342682,
0.11561594903469086,
-0.16313643753528595,
-0.2514808773994446,
-0.011650782078504562,
0.013960408046841621,
-0.35382309556007385,
0.07691983133554459,
0.1848151683807373,
0.0963558554649353,
-0.15267549455165863,
0.4362219572067261,
-0.12702174484729767,
-0.06890573352575302,
-0.08265192061662674,
-0.48287591338157654,
0.09407871216535568,
-0.0615820474922657,
0.32770323753356934,
-0.03919404372572899,
-0.15081895887851715,
0.1088472530245781,
0.8712243437767029,
0.2959723174571991,
0.15337887406349182,
-0.2297152578830719,
-0.3328503370285034,
-0.32470372319221497,
0.014475963078439236,
0.005240366794168949,
0.09894127398729324,
-0.16323724389076233,
0.3649546802043915,
-0.11459749191999435,
0.3088018596172333,
-0.24895896017551422,
0.11808589100837708,
-0.4077552556991577,
0.11900578439235687,
-0.14777611196041107,
-0.16000403463840485,
0.30077093839645386,
0.36645179986953735,
0.011363084428012371,
0.44244247674942017,
-0.24321015179157257,
-0.18150490522384644,
-0.1888817548751831,
0.11997143924236298,
0.23678545653820038,
-0.03730208799242973,
-0.15523125231266022,
-0.045934274792671204,
-0.31020882725715637,
-0.17679302394390106,
0.21192461252212524,
0.2571958899497986,
-0.06610937416553497,
0.0637439414858818,
-0.24947063624858856,
0.42239147424697876,
0.22513532638549805,
-0.29633891582489014,
0.3116737902164459,
0.20229412615299225,
0.13051189482212067,
0.09952470660209656,
0.14368563890457153,
0.07203119248151779,
0.08041006326675415,
-0.2597726881504059,
-0.009855789132416248,
0.008554577827453613,
0.19674021005630493,
-0.2309921234846115,
-0.15612083673477173,
-0.37082669138908386,
0.05171830952167511,
0.36357641220092773,
0.007452016696333885,
-0.27410900592803955,
0.19149178266525269,
0.13226038217544556,
-0.32511889934539795,
0.11903312057256699,
-0.2570674419403076,
0.05392858758568764,
0.08568452298641205,
0.27379679679870605,
0.004499637521803379,
0.023140350356698036,
0.037061359733343124,
-0.04047657176852226,
-0.19417214393615723,
-0.5982768535614014,
-0.04233429953455925,
-0.14811763167381287,
-0.23137441277503967,
0.24175232648849487,
0.380296528339386,
-0.10069054365158081,
0.3059271574020386,
0.0606963112950325,
-0.10947341471910477,
0.25705626606941223,
-0.6360200643539429,
0.09245940297842026,
0.09076341986656189,
-0.057219248265028,
0.3093508183956146,
0.058656442910432816,
-0.08549641072750092,
-0.018470266833901405,
-0.23897410929203033,
0.34029725193977356,
-0.3041677176952362,
0.09762682020664215,
-0.22712060809135437,
0.03300946578383446,
-0.10786482691764832,
0.005204764660447836,
0.1080261617898941,
-0.07958810776472092,
0.13740026950836182,
-0.07346227765083313,
0.2036411017179489,
0.11403711885213852,
-0.22369153797626495,
0.22999298572540283,
-0.11681787669658661,
0.07374713569879532,
-0.6453633904457092,
0.5514608025550842,
0.3634347915649414,
-0.09826937317848206,
0.01676267944276333,
0.2653762996196747,
0.01522313803434372,
-0.18764792382717133,
0.32546770572662354,
0.20124900341033936,
0.47875547409057617,
-0.04328104108572006,
-0.07363342493772507,
0.12418148666620255,
0.0740470290184021,
-0.09110687673091888,
0.28077232837677,
0.5041823387145996,
0.07197180390357971,
0.45485594868659973,
0.05568479374051094,
-0.24693970382213593,
0.10967022180557251,
-0.06710436940193176,
0.0015850415220484138,
-0.10189812630414963,
0.4422677755355835,
-0.08225837349891663,
0.008662709034979343,
-0.32234933972358704,
-0.11045538634061813,
-0.33704593777656555,
0.3438332676887512,
0.05582115054130554,
-0.047978900372982025,
0.25152549147605896,
0.011279351077973843,
0.08349233120679855,
-0.034629106521606445,
0.2525554299354553,
0.13496384024620056,
-0.1671021282672882,
-0.32392603158950806,
-0.18113303184509277,
-0.5610327124595642,
0.22686515748500824,
0.13356734812259674,
0.18414990603923798,
-0.031347937881946564,
0.16959284245967865,
-0.25292739272117615,
-0.11920086294412613,
-0.04632525518536568,
-0.19636192917823792,
0.2509227991104126,
0.024807177484035492,
-0.2768288254737854,
-0.3529919683933258,
-0.241624653339386,
-0.42277437448501587,
0.17088395357131958,
-0.24913114309310913,
0.009029015898704529,
-0.15369373559951782,
-0.0019239633111283183,
-0.045534614473581314,
-0.03631960228085518,
0.26113566756248474,
0.3332715630531311,
0.23745213449001312,
0.03461544215679169,
0.5644972324371338,
-0.037853263318538666,
-0.07344899326562881,
0.015898605808615685,
0.1402173787355423,
-0.2252642661333084,
0.23529601097106934,
0.14536625146865845,
0.39479783177375793,
-0.03567197918891907,
-0.1783236414194107,
-0.4293419122695923,
0.7531887292861938,
0.28733500838279724,
-0.2265712171792984,
-0.0793084129691124,
-0.04111092537641525,
0.10832618176937103,
0.0716213583946228,
0.3129253387451172,
0.3638014495372772,
-0.1406288892030716,
0.33080315589904785,
-0.35881561040878296,
-0.2075112760066986,
0.5828337073326111,
-0.4029493033885956,
-0.29715144634246826,
-0.008299557492136955,
0.3402397632598877,
0.5178592205047607,
-0.43535497784614563,
-0.831995964050293,
-0.00667200842872262,
0.2214435338973999,
0.11133091896772385,
-0.2993389070034027,
0.08498024940490723,
-0.16652943193912506,
0.26736360788345337,
-0.08180569112300873,
0.3439679741859436,
-0.07568897306919098,
-0.1214866116642952,
0.0391111820936203,
-0.24258317053318024
] |
https://github.com/huggingface/datasets/issues/1727 | BLEURT score calculation raises UnrecognizedFlagError | @aleSuglia @oscartackstrom - Are you getting the error when running your code in a Jupyter notebook ?
I tried reproducing this error again, and was unable to do so from the python command line console in a virtual environment similar to the one I originally used (and unfortunately no longer have access to) when I first got the error.
However, I've managed to reproduce the error by running the same code in a Jupyter notebook running a kernel from the same virtual environment.
This made me suspect that the problem is somehow related to the Jupyter notebook.
More environment details:
```
OS: Ubuntu Linux 18.04
conda==4.8.3
python==3.8.5
datasets==1.3.0
tensorflow==2.4.0
BLEURT==0.0.1
notebook==6.2.0
``` | Calling the `compute` method for **bleurt** metric fails with an `UnrecognizedFlagError` for `FLAGS.bleurt_batch_size`.
My environment:
```
python==3.8.5
datasets==1.2.0
tensorflow==2.3.1
cudatoolkit==11.0.221
```
Test code for reproducing the error:
```
from datasets import load_metric
bleurt = load_metric('bleurt')
gen_text = "I am walking on the promenade today"
ref_text = "I am walking along the promenade on this sunny day"
bleurt.compute(predictions=[test_text], references=[test_text])
```
Error Output:
```
Using default BLEURT-Base checkpoint for sequence maximum length 128. You can use a bigger model for better results with e.g.: datasets.load_metric('bleurt', 'bleurt-large-512').
INFO:tensorflow:Reading checkpoint /home/ubuntu/.cache/huggingface/metrics/bleurt/default/downloads/extracted/9aee35580225730ac5422599f35c4986e4c49cafd08082123342b1019720dac4/bleurt-base-128.
INFO:tensorflow:Config file found, reading.
INFO:tensorflow:Will load checkpoint bert_custom
INFO:tensorflow:Performs basic checks...
INFO:tensorflow:... name:bert_custom
INFO:tensorflow:... vocab_file:vocab.txt
INFO:tensorflow:... bert_config_file:bert_config.json
INFO:tensorflow:... do_lower_case:True
INFO:tensorflow:... max_seq_length:128
INFO:tensorflow:Creating BLEURT scorer.
INFO:tensorflow:Loading model...
INFO:tensorflow:BLEURT initialized.
---------------------------------------------------------------------------
UnrecognizedFlagError Traceback (most recent call last)
<ipython-input-12-8b3f4322318a> in <module>
2 gen_text = "I am walking on the promenade today"
3 ref_text = "I am walking along the promenade on this sunny day"
----> 4 bleurt.compute(predictions=[gen_text], references=[ref_text])
~/anaconda3/envs/noved/lib/python3.8/site-packages/datasets/metric.py in compute(self, *args, **kwargs)
396 references = self.data["references"]
397 with temp_seed(self.seed):
--> 398 output = self._compute(predictions=predictions, references=references, **kwargs)
399
400 if self.buf_writer is not None:
~/.cache/huggingface/modules/datasets_modules/metrics/bleurt/b1de33e1cbbcb1dbe276c887efa1fad68c6aff913885108078fa1ad408908778/bleurt.py in _compute(self, predictions, references)
103
104 def _compute(self, predictions, references):
--> 105 scores = self.scorer.score(references=references, candidates=predictions)
106 return {"scores": scores}
~/anaconda3/envs/noved/lib/python3.8/site-packages/bleurt/score.py in score(self, references, candidates, batch_size)
164 """
165 if not batch_size:
--> 166 batch_size = FLAGS.bleurt_batch_size
167
168 candidates, references = list(candidates), list(references)
~/anaconda3/envs/noved/lib/python3.8/site-packages/tensorflow/python/platform/flags.py in __getattr__(self, name)
83 # a flag.
84 if not wrapped.is_parsed():
---> 85 wrapped(_sys.argv)
86 return wrapped.__getattr__(name)
87
~/anaconda3/envs/noved/lib/python3.8/site-packages/absl/flags/_flagvalues.py in __call__(self, argv, known_only)
643 for name, value in unknown_flags:
644 suggestions = _helpers.get_flag_suggestions(name, list(self))
--> 645 raise _exceptions.UnrecognizedFlagError(
646 name, value, suggestions=suggestions)
647
UnrecognizedFlagError: Unknown command line flag 'f'
```
Possible Fix:
Modify `_compute` method https://github.com/huggingface/datasets/blob/7e64851a12263dc74d41c668167918484c8000ab/metrics/bleurt/bleurt.py#L104
to receive a `batch_size` argument, for example:
```
def _compute(self, predictions, references, batch_size=1):
scores = self.scorer.score(references=references, candidates=predictions, batch_size=batch_size)
return {"scores": scores}
``` | 112 | BLEURT score calculation raises UnrecognizedFlagError
Calling the `compute` method for **bleurt** metric fails with an `UnrecognizedFlagError` for `FLAGS.bleurt_batch_size`.
My environment:
```
python==3.8.5
datasets==1.2.0
tensorflow==2.3.1
cudatoolkit==11.0.221
```
Test code for reproducing the error:
```
from datasets import load_metric
bleurt = load_metric('bleurt')
gen_text = "I am walking on the promenade today"
ref_text = "I am walking along the promenade on this sunny day"
bleurt.compute(predictions=[test_text], references=[test_text])
```
Error Output:
```
Using default BLEURT-Base checkpoint for sequence maximum length 128. You can use a bigger model for better results with e.g.: datasets.load_metric('bleurt', 'bleurt-large-512').
INFO:tensorflow:Reading checkpoint /home/ubuntu/.cache/huggingface/metrics/bleurt/default/downloads/extracted/9aee35580225730ac5422599f35c4986e4c49cafd08082123342b1019720dac4/bleurt-base-128.
INFO:tensorflow:Config file found, reading.
INFO:tensorflow:Will load checkpoint bert_custom
INFO:tensorflow:Performs basic checks...
INFO:tensorflow:... name:bert_custom
INFO:tensorflow:... vocab_file:vocab.txt
INFO:tensorflow:... bert_config_file:bert_config.json
INFO:tensorflow:... do_lower_case:True
INFO:tensorflow:... max_seq_length:128
INFO:tensorflow:Creating BLEURT scorer.
INFO:tensorflow:Loading model...
INFO:tensorflow:BLEURT initialized.
---------------------------------------------------------------------------
UnrecognizedFlagError Traceback (most recent call last)
<ipython-input-12-8b3f4322318a> in <module>
2 gen_text = "I am walking on the promenade today"
3 ref_text = "I am walking along the promenade on this sunny day"
----> 4 bleurt.compute(predictions=[gen_text], references=[ref_text])
~/anaconda3/envs/noved/lib/python3.8/site-packages/datasets/metric.py in compute(self, *args, **kwargs)
396 references = self.data["references"]
397 with temp_seed(self.seed):
--> 398 output = self._compute(predictions=predictions, references=references, **kwargs)
399
400 if self.buf_writer is not None:
~/.cache/huggingface/modules/datasets_modules/metrics/bleurt/b1de33e1cbbcb1dbe276c887efa1fad68c6aff913885108078fa1ad408908778/bleurt.py in _compute(self, predictions, references)
103
104 def _compute(self, predictions, references):
--> 105 scores = self.scorer.score(references=references, candidates=predictions)
106 return {"scores": scores}
~/anaconda3/envs/noved/lib/python3.8/site-packages/bleurt/score.py in score(self, references, candidates, batch_size)
164 """
165 if not batch_size:
--> 166 batch_size = FLAGS.bleurt_batch_size
167
168 candidates, references = list(candidates), list(references)
~/anaconda3/envs/noved/lib/python3.8/site-packages/tensorflow/python/platform/flags.py in __getattr__(self, name)
83 # a flag.
84 if not wrapped.is_parsed():
---> 85 wrapped(_sys.argv)
86 return wrapped.__getattr__(name)
87
~/anaconda3/envs/noved/lib/python3.8/site-packages/absl/flags/_flagvalues.py in __call__(self, argv, known_only)
643 for name, value in unknown_flags:
644 suggestions = _helpers.get_flag_suggestions(name, list(self))
--> 645 raise _exceptions.UnrecognizedFlagError(
646 name, value, suggestions=suggestions)
647
UnrecognizedFlagError: Unknown command line flag 'f'
```
Possible Fix:
Modify `_compute` method https://github.com/huggingface/datasets/blob/7e64851a12263dc74d41c668167918484c8000ab/metrics/bleurt/bleurt.py#L104
to receive a `batch_size` argument, for example:
```
def _compute(self, predictions, references, batch_size=1):
scores = self.scorer.score(references=references, candidates=predictions, batch_size=batch_size)
return {"scores": scores}
```
@aleSuglia @oscartackstrom - Are you getting the error when running your code in a Jupyter notebook ?
I tried reproducing this error again, and was unable to do so from the python command line console in a virtual environment similar to the one I originally used (and unfortunately no longer have access to) when I first got the error.
However, I've managed to reproduce the error by running the same code in a Jupyter notebook running a kernel from the same virtual environment.
This made me suspect that the problem is somehow related to the Jupyter notebook.
More environment details:
```
OS: Ubuntu Linux 18.04
conda==4.8.3
python==3.8.5
datasets==1.3.0
tensorflow==2.4.0
BLEURT==0.0.1
notebook==6.2.0
``` | [
-0.3299122154712677,
-0.39836767315864563,
0.04140739142894745,
0.4000958502292633,
0.3001840114593506,
-0.22759149968624115,
0.2741968333721161,
0.25628674030303955,
0.005499313585460186,
0.2942810356616974,
-0.012273075059056282,
0.022469541057944298,
-0.08508630841970444,
0.04614190012216568,
-0.2817869186401367,
0.12845055758953094,
-0.20951317250728607,
-0.07703892141580582,
0.421746164560318,
0.08553557097911835,
-0.3209676444530487,
0.19018222391605377,
-0.11296121031045914,
-0.18275579810142517,
-0.31205445528030396,
0.018966039642691612,
0.32888931035995483,
-0.0016792909009382129,
-0.1310291886329651,
-0.2663409113883972,
0.11802919954061508,
-0.19675515592098236,
0.11216548085212708,
0.5339962840080261,
-0.00011421442468417808,
-0.16619150340557098,
0.13908381760120392,
-0.18148882687091827,
-0.17730894684791565,
-0.14011985063552856,
-0.03427281975746155,
-0.25714391469955444,
-0.1122625544667244,
-0.24260476231575012,
0.044150251895189285,
0.18768243491649628,
-0.16063320636749268,
-0.012286314740777016,
0.1843590885400772,
0.39791151881217957,
0.14499935507774353,
0.15091142058372498,
0.07810504734516144,
0.077845498919487,
-0.138113871216774,
-0.3425809144973755,
-0.1521802842617035,
0.3253556191921234,
-0.06692467629909515,
0.03162681683897972,
-0.20974315702915192,
0.22105436027050018,
0.16179391741752625,
0.21452614665031433,
0.28306618332862854,
-0.11133354902267456,
0.3766460120677948,
-0.04792281985282898,
0.2515900731086731,
0.19776198267936707,
-0.09956950694322586,
-0.20138989388942719,
-0.21858619153499603,
0.18862290680408478,
0.12778766453266144,
-0.6358429789543152,
-0.05380101874470711,
-0.06097278743982315,
-0.16854366660118103,
-0.38112083077430725,
-0.3757064640522003,
-0.10144848376512527,
-0.10101772844791412,
-0.13524259626865387,
-0.1513606160879135,
0.17876139283180237,
-0.3350166082382202,
0.10107950121164322,
0.06649905443191528,
0.0372486412525177,
0.2274395227432251,
0.09554244577884674,
0.10291215032339096,
0.22068236768245697,
-0.4990330934524536,
-0.1053616851568222,
0.01608775369822979,
-0.18885481357574463,
-0.016234852373600006,
-0.032536424696445465,
0.24662621319293976,
-0.01586148515343666,
-0.05601944401860237,
0.15804637968540192,
-0.1570669710636139,
0.5400379300117493,
0.1700802445411682,
0.08421365916728973,
0.3933701813220978,
0.5855423212051392,
0.09295424818992615,
-0.0040579624474048615,
-0.005677622742950916,
-0.5385399460792542,
0.23224176466464996,
0.0733199343085289,
-0.17841237783432007,
-0.18943026661872864,
-0.4930154085159302,
0.0014648858923465014,
-0.06099274381995201,
0.03128054738044739,
0.2731889486312866,
0.4516296088695526,
-0.3899906277656555,
-0.24429842829704285,
0.2423391491174698,
-0.051819950342178345,
-0.044099606573581696,
-0.048507772386074066,
-0.278729647397995,
0.06354260444641113,
-0.029643548652529716,
0.19078250229358673,
0.08794563263654709,
-0.6552613973617554,
0.333769291639328,
-0.15722674131393433,
0.25681906938552856,
-0.2171640396118164,
0.0846605896949768,
-0.23427200317382812,
-0.014011350460350513,
0.029247596859931946,
-0.05533665046095848,
-0.31334373354911804,
0.32569342851638794,
-0.278212308883667,
0.09636648744344711,
0.0749981701374054,
-0.05072775110602379,
-0.40880286693573,
0.05963640287518501,
0.11786721646785736,
-0.13852474093437195,
0.058627694845199585,
-0.14546751976013184,
0.20553059875965118,
0.31066375970840454,
-0.051741745322942734,
0.06077514588832855,
-0.14683428406715393,
-0.18840980529785156,
-0.13215523958206177,
0.562406599521637,
-0.02965206652879715,
-0.22556276619434357,
-0.04994778335094452,
-0.03302209451794624,
0.02145175077021122,
0.3609203100204468,
0.3322622776031494,
0.04741409420967102,
0.1374678909778595,
-0.10439594089984894,
-0.10682202875614166,
0.29522305727005005,
-0.3557238280773163,
-0.1823657751083374,
-0.16049553453922272,
0.04117428511381149,
-0.18272961676120758,
0.05327296257019043,
-0.1426052749156952,
-0.026113416999578476,
-0.15446332097053528,
0.41894370317459106,
0.0851459875702858,
-0.176656574010849,
-0.11907267570495605,
-0.4814084470272064,
-0.35024213790893555,
-0.09127078950405121,
0.05895423889160156,
0.5071209073066711,
-0.07625357061624527,
0.17161118984222412,
0.2642098665237427,
0.05545502528548241,
-0.0777343362569809,
0.0007424619398079813,
0.13575764000415802,
0.2604106664657593,
-0.24531950056552887,
0.1736738681793213,
-0.18391545116901398,
0.1943778246641159,
0.22709234058856964,
0.14800870418548584,
0.1326928585767746,
0.06455019861459732,
-0.09578769654035568,
-0.3693135976791382,
0.011741148307919502,
0.04087376222014427,
-0.09064199030399323,
0.19420045614242554,
-0.023632626980543137,
0.020072942599654198,
-0.04626088961958885,
-0.1779584288597107,
0.01906134933233261,
-0.6478570103645325,
0.05777967721223831,
0.24215584993362427,
-0.011923792771995068,
0.009531836956739426,
-0.11172334104776382,
0.07775747776031494,
0.3475857079029083,
0.18648162484169006,
0.0795116201043129,
-0.15255911648273468,
0.3241612911224365,
0.1469949334859848,
-0.2106698453426361,
0.06857316941022873,
-0.12138369679450989,
-0.025995461270213127,
0.31581366062164307,
-0.04526826739311218,
0.08326784521341324,
0.09919512271881104,
-0.12095963209867477,
0.24413205683231354,
0.09364654123783112,
-0.07940457761287689,
0.17948274314403534,
0.29466894268989563,
-0.0805852934718132,
-0.07273480296134949,
0.16613148152828217,
0.14957860112190247,
-0.1780601590871811,
0.17246167361736298,
-0.13645705580711365,
0.06643975526094437,
-0.2640109062194824,
0.02713601291179657,
-0.24984966218471527,
0.4172476828098297,
0.07080874592065811,
0.06458047032356262,
0.1937784105539322,
-0.025959936901926994,
-0.05894705653190613,
-0.035006701946258545,
0.08320702612400055,
0.2039913535118103,
-0.04995711147785187,
0.22603443264961243,
0.07168987393379211,
-0.1668180525302887,
-0.13714668154716492,
0.010470710694789886,
0.06624463200569153,
0.24011391401290894,
0.34392809867858887,
0.16824032366275787,
-0.15996113419532776,
-0.27108433842658997,
-0.1610846370458603,
0.24648164212703705,
0.23851977288722992,
-0.15063771605491638,
-0.05685258284211159,
0.07569380104541779,
0.15173272788524628,
-0.2876555323600769,
-0.2880505919456482,
-0.2533508241176605,
-0.15971940755844116,
0.08838365226984024,
0.29258882999420166,
0.25788426399230957,
-0.0014518265379592776,
0.3952105641365051,
0.46171146631240845,
0.059359077364206314,
-0.051337309181690216,
0.05023689940571785,
-0.21538615226745605,
-0.31480374932289124,
0.08866824954748154,
0.06496984511613846,
-0.10161420702934265,
0.23330333828926086,
-0.10219544917345047,
-0.19489938020706177,
-0.34378477931022644,
-0.4103054404258728,
0.010056416504085064,
-0.21031971275806427,
0.47198742628097534,
0.18166349828243256,
-0.004250403959304094,
-0.3588888645172119,
-0.11891353130340576,
0.14626814424991608,
0.12110825628042221,
-0.03983301669359207,
-0.0196854081004858,
-0.1493832916021347,
0.03914756327867508,
-0.07081431150436401,
-0.22209778428077698,
0.1640027016401291,
-0.30414697527885437,
0.24095232784748077,
0.07631366699934006,
0.03065141849219799,
-0.06122491881251335,
0.05230933800339699,
0.5045968294143677,
0.5048178434371948,
-0.037923213094472885,
-0.2633741497993469,
0.09040805697441101,
0.1380200833082199,
-0.33668971061706543,
-0.3102606534957886,
0.021610047668218613,
0.016284054145216942,
0.5390121340751648,
0.1647619903087616,
-0.45799264311790466,
-0.3172897696495056,
-0.08158480376005173,
-0.20542091131210327,
-0.24346807599067688,
0.10444798320531845,
0.10456056147813797,
0.045371606945991516,
-0.016684189438819885,
-0.12195291370153427,
-0.12123117595911026,
0.033526863902807236,
-0.22951191663742065,
0.6499080657958984,
-0.2761822044849396,
0.28033533692359924,
0.3270616829395294,
0.8638534545898438,
0.17141218483448029,
-0.027132833376526833,
0.08198841661214828,
0.12086962908506393,
0.04165533557534218,
-0.007301402278244495,
-0.054564595222473145,
0.6279385685920715,
-0.2941344380378723,
-0.1778903603553772,
0.149763286113739,
-0.1594051867723465,
0.24521954357624054,
-0.05722162872552872,
-0.021892543882131577,
0.11484118551015854,
-0.1691705584526062,
-0.1525200754404068,
0.14203515648841858,
0.22616708278656006,
0.08441031724214554,
0.0116431200876832,
-0.2870465815067291,
-0.043970171362161636,
0.026011381298303604,
0.22015975415706635,
-0.0691901445388794,
-0.008999822661280632,
0.2485225647687912,
0.0041994270868599415,
-0.5446141362190247,
0.44574713706970215,
0.21416045725345612,
0.13161404430866241,
0.0335003063082695,
0.13207250833511353,
-0.09863710403442383,
-0.16176088154315948,
0.221913143992424,
-0.20706623792648315,
0.041391097009181976,
-0.03885727375745773,
-0.08244665712118149,
-0.5960397720336914,
0.03179334104061127,
-0.06195291504263878,
-0.2877739369869232,
0.45654353499412537,
0.3751799762248993,
-0.25940489768981934,
0.13725635409355164,
0.22994820773601532,
0.24744729697704315,
-0.004890912678092718,
0.01772836223244667,
-0.5006986856460571,
-0.40970009565353394,
-0.15691827237606049,
0.1279597282409668,
0.13802571594715118,
0.2855314612388611,
-0.03175255283713341,
0.04163925722241402,
-0.16453805565834045,
-0.17561399936676025,
0.04856983572244644,
0.28616705536842346,
0.03734060749411583,
-0.09882078319787979,
0.1486673355102539,
-0.19388656318187714,
-0.33958426117897034,
0.20055538415908813,
0.12170012295246124,
-0.0412943996489048,
-0.9286253452301025,
0.03974241763353348,
0.02721959725022316,
0.24921555817127228,
0.13508911430835724,
-0.1588994860649109,
0.2074216604232788,
-0.1697259396314621,
0.43467485904693604,
0.07449306547641754,
0.27711254358291626,
0.16090308129787445,
0.33665207028388977,
-0.010516325943171978,
-0.12534306943416595,
0.3105498254299164,
0.2530326545238495,
0.2215176224708557,
0.5469450354576111,
-0.09156492352485657,
-0.11807215958833694,
0.12478797137737274,
0.615729570388794,
0.6351808905601501,
0.01956314779818058,
-0.27837854623794556,
0.36204060912132263,
-0.048477865755558014,
0.44662633538246155,
-0.4077371656894684,
0.40813568234443665,
-0.30015259981155396,
-0.5378538370132446,
0.09860266745090485,
0.016689060255885124,
0.02945541962981224,
-0.25062182545661926,
-0.10748375207185745,
0.3304620087146759,
-0.15858253836631775,
-0.22080504894256592,
0.0330510251224041,
0.07572581619024277,
-0.39099520444869995,
-0.08136937767267227,
-0.015905873849987984,
0.1809706687927246,
-0.19848956167697906,
0.15306974947452545,
-0.23911257088184357,
0.22615109384059906,
-0.026903249323368073,
-0.07773634046316147,
-0.2188994139432907,
0.0008699611644260585,
-0.4559265673160553,
0.18233948945999146,
-0.06680295616388321,
-0.06951764225959778,
0.03761754557490349,
0.28962790966033936,
0.8918437957763672,
0.13067473471164703,
-0.07761824131011963,
0.11590567231178284,
-0.014726641587913036,
-0.09182456880807877,
-0.0855848416686058,
0.06435684859752655,
0.2934023141860962,
-0.2617599666118622,
-0.16873903572559357,
-0.08115074038505554,
0.09257586300373077,
-0.16079209744930267,
0.362564355134964,
-0.04671056941151619,
-0.07486839592456818,
0.15066705644130707,
0.020217087119817734,
0.02663116529583931,
-0.06784180551767349,
-0.17309953272342682,
0.11561594903469086,
-0.16313643753528595,
-0.2514808773994446,
-0.011650782078504562,
0.013960408046841621,
-0.35382309556007385,
0.07691983133554459,
0.1848151683807373,
0.0963558554649353,
-0.15267549455165863,
0.4362219572067261,
-0.12702174484729767,
-0.06890573352575302,
-0.08265192061662674,
-0.48287591338157654,
0.09407871216535568,
-0.0615820474922657,
0.32770323753356934,
-0.03919404372572899,
-0.15081895887851715,
0.1088472530245781,
0.8712243437767029,
0.2959723174571991,
0.15337887406349182,
-0.2297152578830719,
-0.3328503370285034,
-0.32470372319221497,
0.014475963078439236,
0.005240366794168949,
0.09894127398729324,
-0.16323724389076233,
0.3649546802043915,
-0.11459749191999435,
0.3088018596172333,
-0.24895896017551422,
0.11808589100837708,
-0.4077552556991577,
0.11900578439235687,
-0.14777611196041107,
-0.16000403463840485,
0.30077093839645386,
0.36645179986953735,
0.011363084428012371,
0.44244247674942017,
-0.24321015179157257,
-0.18150490522384644,
-0.1888817548751831,
0.11997143924236298,
0.23678545653820038,
-0.03730208799242973,
-0.15523125231266022,
-0.045934274792671204,
-0.31020882725715637,
-0.17679302394390106,
0.21192461252212524,
0.2571958899497986,
-0.06610937416553497,
0.0637439414858818,
-0.24947063624858856,
0.42239147424697876,
0.22513532638549805,
-0.29633891582489014,
0.3116737902164459,
0.20229412615299225,
0.13051189482212067,
0.09952470660209656,
0.14368563890457153,
0.07203119248151779,
0.08041006326675415,
-0.2597726881504059,
-0.009855789132416248,
0.008554577827453613,
0.19674021005630493,
-0.2309921234846115,
-0.15612083673477173,
-0.37082669138908386,
0.05171830952167511,
0.36357641220092773,
0.007452016696333885,
-0.27410900592803955,
0.19149178266525269,
0.13226038217544556,
-0.32511889934539795,
0.11903312057256699,
-0.2570674419403076,
0.05392858758568764,
0.08568452298641205,
0.27379679679870605,
0.004499637521803379,
0.023140350356698036,
0.037061359733343124,
-0.04047657176852226,
-0.19417214393615723,
-0.5982768535614014,
-0.04233429953455925,
-0.14811763167381287,
-0.23137441277503967,
0.24175232648849487,
0.380296528339386,
-0.10069054365158081,
0.3059271574020386,
0.0606963112950325,
-0.10947341471910477,
0.25705626606941223,
-0.6360200643539429,
0.09245940297842026,
0.09076341986656189,
-0.057219248265028,
0.3093508183956146,
0.058656442910432816,
-0.08549641072750092,
-0.018470266833901405,
-0.23897410929203033,
0.34029725193977356,
-0.3041677176952362,
0.09762682020664215,
-0.22712060809135437,
0.03300946578383446,
-0.10786482691764832,
0.005204764660447836,
0.1080261617898941,
-0.07958810776472092,
0.13740026950836182,
-0.07346227765083313,
0.2036411017179489,
0.11403711885213852,
-0.22369153797626495,
0.22999298572540283,
-0.11681787669658661,
0.07374713569879532,
-0.6453633904457092,
0.5514608025550842,
0.3634347915649414,
-0.09826937317848206,
0.01676267944276333,
0.2653762996196747,
0.01522313803434372,
-0.18764792382717133,
0.32546770572662354,
0.20124900341033936,
0.47875547409057617,
-0.04328104108572006,
-0.07363342493772507,
0.12418148666620255,
0.0740470290184021,
-0.09110687673091888,
0.28077232837677,
0.5041823387145996,
0.07197180390357971,
0.45485594868659973,
0.05568479374051094,
-0.24693970382213593,
0.10967022180557251,
-0.06710436940193176,
0.0015850415220484138,
-0.10189812630414963,
0.4422677755355835,
-0.08225837349891663,
0.008662709034979343,
-0.32234933972358704,
-0.11045538634061813,
-0.33704593777656555,
0.3438332676887512,
0.05582115054130554,
-0.047978900372982025,
0.25152549147605896,
0.011279351077973843,
0.08349233120679855,
-0.034629106521606445,
0.2525554299354553,
0.13496384024620056,
-0.1671021282672882,
-0.32392603158950806,
-0.18113303184509277,
-0.5610327124595642,
0.22686515748500824,
0.13356734812259674,
0.18414990603923798,
-0.031347937881946564,
0.16959284245967865,
-0.25292739272117615,
-0.11920086294412613,
-0.04632525518536568,
-0.19636192917823792,
0.2509227991104126,
0.024807177484035492,
-0.2768288254737854,
-0.3529919683933258,
-0.241624653339386,
-0.42277437448501587,
0.17088395357131958,
-0.24913114309310913,
0.009029015898704529,
-0.15369373559951782,
-0.0019239633111283183,
-0.045534614473581314,
-0.03631960228085518,
0.26113566756248474,
0.3332715630531311,
0.23745213449001312,
0.03461544215679169,
0.5644972324371338,
-0.037853263318538666,
-0.07344899326562881,
0.015898605808615685,
0.1402173787355423,
-0.2252642661333084,
0.23529601097106934,
0.14536625146865845,
0.39479783177375793,
-0.03567197918891907,
-0.1783236414194107,
-0.4293419122695923,
0.7531887292861938,
0.28733500838279724,
-0.2265712171792984,
-0.0793084129691124,
-0.04111092537641525,
0.10832618176937103,
0.0716213583946228,
0.3129253387451172,
0.3638014495372772,
-0.1406288892030716,
0.33080315589904785,
-0.35881561040878296,
-0.2075112760066986,
0.5828337073326111,
-0.4029493033885956,
-0.29715144634246826,
-0.008299557492136955,
0.3402397632598877,
0.5178592205047607,
-0.43535497784614563,
-0.831995964050293,
-0.00667200842872262,
0.2214435338973999,
0.11133091896772385,
-0.2993389070034027,
0.08498024940490723,
-0.16652943193912506,
0.26736360788345337,
-0.08180569112300873,
0.3439679741859436,
-0.07568897306919098,
-0.1214866116642952,
0.0391111820936203,
-0.24258317053318024
] |
https://github.com/huggingface/datasets/issues/1727 | BLEURT score calculation raises UnrecognizedFlagError | This happens when running the notebook on colab. The issue seems to be that colab populates sys.argv with arguments not handled by bleurt.
Running this before calling bleurt fixes it:
```
import sys
sys.argv = sys.argv[:1]
```
Not the most elegant solution. Perhaps it needs to be fixed in the bleurt code itself rather than huggingface?
This is the output of `print(sys.argv)` when running on colab:
```
['/usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py', '-f', '/root/.local/share/jupyter/runtime/kernel-a857a78c-44d6-4b9d-b18a-030b858ee327.json']
``` | Calling the `compute` method for **bleurt** metric fails with an `UnrecognizedFlagError` for `FLAGS.bleurt_batch_size`.
My environment:
```
python==3.8.5
datasets==1.2.0
tensorflow==2.3.1
cudatoolkit==11.0.221
```
Test code for reproducing the error:
```
from datasets import load_metric
bleurt = load_metric('bleurt')
gen_text = "I am walking on the promenade today"
ref_text = "I am walking along the promenade on this sunny day"
bleurt.compute(predictions=[test_text], references=[test_text])
```
Error Output:
```
Using default BLEURT-Base checkpoint for sequence maximum length 128. You can use a bigger model for better results with e.g.: datasets.load_metric('bleurt', 'bleurt-large-512').
INFO:tensorflow:Reading checkpoint /home/ubuntu/.cache/huggingface/metrics/bleurt/default/downloads/extracted/9aee35580225730ac5422599f35c4986e4c49cafd08082123342b1019720dac4/bleurt-base-128.
INFO:tensorflow:Config file found, reading.
INFO:tensorflow:Will load checkpoint bert_custom
INFO:tensorflow:Performs basic checks...
INFO:tensorflow:... name:bert_custom
INFO:tensorflow:... vocab_file:vocab.txt
INFO:tensorflow:... bert_config_file:bert_config.json
INFO:tensorflow:... do_lower_case:True
INFO:tensorflow:... max_seq_length:128
INFO:tensorflow:Creating BLEURT scorer.
INFO:tensorflow:Loading model...
INFO:tensorflow:BLEURT initialized.
---------------------------------------------------------------------------
UnrecognizedFlagError Traceback (most recent call last)
<ipython-input-12-8b3f4322318a> in <module>
2 gen_text = "I am walking on the promenade today"
3 ref_text = "I am walking along the promenade on this sunny day"
----> 4 bleurt.compute(predictions=[gen_text], references=[ref_text])
~/anaconda3/envs/noved/lib/python3.8/site-packages/datasets/metric.py in compute(self, *args, **kwargs)
396 references = self.data["references"]
397 with temp_seed(self.seed):
--> 398 output = self._compute(predictions=predictions, references=references, **kwargs)
399
400 if self.buf_writer is not None:
~/.cache/huggingface/modules/datasets_modules/metrics/bleurt/b1de33e1cbbcb1dbe276c887efa1fad68c6aff913885108078fa1ad408908778/bleurt.py in _compute(self, predictions, references)
103
104 def _compute(self, predictions, references):
--> 105 scores = self.scorer.score(references=references, candidates=predictions)
106 return {"scores": scores}
~/anaconda3/envs/noved/lib/python3.8/site-packages/bleurt/score.py in score(self, references, candidates, batch_size)
164 """
165 if not batch_size:
--> 166 batch_size = FLAGS.bleurt_batch_size
167
168 candidates, references = list(candidates), list(references)
~/anaconda3/envs/noved/lib/python3.8/site-packages/tensorflow/python/platform/flags.py in __getattr__(self, name)
83 # a flag.
84 if not wrapped.is_parsed():
---> 85 wrapped(_sys.argv)
86 return wrapped.__getattr__(name)
87
~/anaconda3/envs/noved/lib/python3.8/site-packages/absl/flags/_flagvalues.py in __call__(self, argv, known_only)
643 for name, value in unknown_flags:
644 suggestions = _helpers.get_flag_suggestions(name, list(self))
--> 645 raise _exceptions.UnrecognizedFlagError(
646 name, value, suggestions=suggestions)
647
UnrecognizedFlagError: Unknown command line flag 'f'
```
Possible Fix:
Modify `_compute` method https://github.com/huggingface/datasets/blob/7e64851a12263dc74d41c668167918484c8000ab/metrics/bleurt/bleurt.py#L104
to receive a `batch_size` argument, for example:
```
def _compute(self, predictions, references, batch_size=1):
scores = self.scorer.score(references=references, candidates=predictions, batch_size=batch_size)
return {"scores": scores}
``` | 71 | BLEURT score calculation raises UnrecognizedFlagError
Calling the `compute` method for **bleurt** metric fails with an `UnrecognizedFlagError` for `FLAGS.bleurt_batch_size`.
My environment:
```
python==3.8.5
datasets==1.2.0
tensorflow==2.3.1
cudatoolkit==11.0.221
```
Test code for reproducing the error:
```
from datasets import load_metric
bleurt = load_metric('bleurt')
gen_text = "I am walking on the promenade today"
ref_text = "I am walking along the promenade on this sunny day"
bleurt.compute(predictions=[test_text], references=[test_text])
```
Error Output:
```
Using default BLEURT-Base checkpoint for sequence maximum length 128. You can use a bigger model for better results with e.g.: datasets.load_metric('bleurt', 'bleurt-large-512').
INFO:tensorflow:Reading checkpoint /home/ubuntu/.cache/huggingface/metrics/bleurt/default/downloads/extracted/9aee35580225730ac5422599f35c4986e4c49cafd08082123342b1019720dac4/bleurt-base-128.
INFO:tensorflow:Config file found, reading.
INFO:tensorflow:Will load checkpoint bert_custom
INFO:tensorflow:Performs basic checks...
INFO:tensorflow:... name:bert_custom
INFO:tensorflow:... vocab_file:vocab.txt
INFO:tensorflow:... bert_config_file:bert_config.json
INFO:tensorflow:... do_lower_case:True
INFO:tensorflow:... max_seq_length:128
INFO:tensorflow:Creating BLEURT scorer.
INFO:tensorflow:Loading model...
INFO:tensorflow:BLEURT initialized.
---------------------------------------------------------------------------
UnrecognizedFlagError Traceback (most recent call last)
<ipython-input-12-8b3f4322318a> in <module>
2 gen_text = "I am walking on the promenade today"
3 ref_text = "I am walking along the promenade on this sunny day"
----> 4 bleurt.compute(predictions=[gen_text], references=[ref_text])
~/anaconda3/envs/noved/lib/python3.8/site-packages/datasets/metric.py in compute(self, *args, **kwargs)
396 references = self.data["references"]
397 with temp_seed(self.seed):
--> 398 output = self._compute(predictions=predictions, references=references, **kwargs)
399
400 if self.buf_writer is not None:
~/.cache/huggingface/modules/datasets_modules/metrics/bleurt/b1de33e1cbbcb1dbe276c887efa1fad68c6aff913885108078fa1ad408908778/bleurt.py in _compute(self, predictions, references)
103
104 def _compute(self, predictions, references):
--> 105 scores = self.scorer.score(references=references, candidates=predictions)
106 return {"scores": scores}
~/anaconda3/envs/noved/lib/python3.8/site-packages/bleurt/score.py in score(self, references, candidates, batch_size)
164 """
165 if not batch_size:
--> 166 batch_size = FLAGS.bleurt_batch_size
167
168 candidates, references = list(candidates), list(references)
~/anaconda3/envs/noved/lib/python3.8/site-packages/tensorflow/python/platform/flags.py in __getattr__(self, name)
83 # a flag.
84 if not wrapped.is_parsed():
---> 85 wrapped(_sys.argv)
86 return wrapped.__getattr__(name)
87
~/anaconda3/envs/noved/lib/python3.8/site-packages/absl/flags/_flagvalues.py in __call__(self, argv, known_only)
643 for name, value in unknown_flags:
644 suggestions = _helpers.get_flag_suggestions(name, list(self))
--> 645 raise _exceptions.UnrecognizedFlagError(
646 name, value, suggestions=suggestions)
647
UnrecognizedFlagError: Unknown command line flag 'f'
```
Possible Fix:
Modify `_compute` method https://github.com/huggingface/datasets/blob/7e64851a12263dc74d41c668167918484c8000ab/metrics/bleurt/bleurt.py#L104
to receive a `batch_size` argument, for example:
```
def _compute(self, predictions, references, batch_size=1):
scores = self.scorer.score(references=references, candidates=predictions, batch_size=batch_size)
return {"scores": scores}
```
This happens when running the notebook on colab. The issue seems to be that colab populates sys.argv with arguments not handled by bleurt.
Running this before calling bleurt fixes it:
```
import sys
sys.argv = sys.argv[:1]
```
Not the most elegant solution. Perhaps it needs to be fixed in the bleurt code itself rather than huggingface?
This is the output of `print(sys.argv)` when running on colab:
```
['/usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py', '-f', '/root/.local/share/jupyter/runtime/kernel-a857a78c-44d6-4b9d-b18a-030b858ee327.json']
``` | [
-0.3299122154712677,
-0.39836767315864563,
0.04140739142894745,
0.4000958502292633,
0.3001840114593506,
-0.22759149968624115,
0.2741968333721161,
0.25628674030303955,
0.005499313585460186,
0.2942810356616974,
-0.012273075059056282,
0.022469541057944298,
-0.08508630841970444,
0.04614190012216568,
-0.2817869186401367,
0.12845055758953094,
-0.20951317250728607,
-0.07703892141580582,
0.421746164560318,
0.08553557097911835,
-0.3209676444530487,
0.19018222391605377,
-0.11296121031045914,
-0.18275579810142517,
-0.31205445528030396,
0.018966039642691612,
0.32888931035995483,
-0.0016792909009382129,
-0.1310291886329651,
-0.2663409113883972,
0.11802919954061508,
-0.19675515592098236,
0.11216548085212708,
0.5339962840080261,
-0.00011421442468417808,
-0.16619150340557098,
0.13908381760120392,
-0.18148882687091827,
-0.17730894684791565,
-0.14011985063552856,
-0.03427281975746155,
-0.25714391469955444,
-0.1122625544667244,
-0.24260476231575012,
0.044150251895189285,
0.18768243491649628,
-0.16063320636749268,
-0.012286314740777016,
0.1843590885400772,
0.39791151881217957,
0.14499935507774353,
0.15091142058372498,
0.07810504734516144,
0.077845498919487,
-0.138113871216774,
-0.3425809144973755,
-0.1521802842617035,
0.3253556191921234,
-0.06692467629909515,
0.03162681683897972,
-0.20974315702915192,
0.22105436027050018,
0.16179391741752625,
0.21452614665031433,
0.28306618332862854,
-0.11133354902267456,
0.3766460120677948,
-0.04792281985282898,
0.2515900731086731,
0.19776198267936707,
-0.09956950694322586,
-0.20138989388942719,
-0.21858619153499603,
0.18862290680408478,
0.12778766453266144,
-0.6358429789543152,
-0.05380101874470711,
-0.06097278743982315,
-0.16854366660118103,
-0.38112083077430725,
-0.3757064640522003,
-0.10144848376512527,
-0.10101772844791412,
-0.13524259626865387,
-0.1513606160879135,
0.17876139283180237,
-0.3350166082382202,
0.10107950121164322,
0.06649905443191528,
0.0372486412525177,
0.2274395227432251,
0.09554244577884674,
0.10291215032339096,
0.22068236768245697,
-0.4990330934524536,
-0.1053616851568222,
0.01608775369822979,
-0.18885481357574463,
-0.016234852373600006,
-0.032536424696445465,
0.24662621319293976,
-0.01586148515343666,
-0.05601944401860237,
0.15804637968540192,
-0.1570669710636139,
0.5400379300117493,
0.1700802445411682,
0.08421365916728973,
0.3933701813220978,
0.5855423212051392,
0.09295424818992615,
-0.0040579624474048615,
-0.005677622742950916,
-0.5385399460792542,
0.23224176466464996,
0.0733199343085289,
-0.17841237783432007,
-0.18943026661872864,
-0.4930154085159302,
0.0014648858923465014,
-0.06099274381995201,
0.03128054738044739,
0.2731889486312866,
0.4516296088695526,
-0.3899906277656555,
-0.24429842829704285,
0.2423391491174698,
-0.051819950342178345,
-0.044099606573581696,
-0.048507772386074066,
-0.278729647397995,
0.06354260444641113,
-0.029643548652529716,
0.19078250229358673,
0.08794563263654709,
-0.6552613973617554,
0.333769291639328,
-0.15722674131393433,
0.25681906938552856,
-0.2171640396118164,
0.0846605896949768,
-0.23427200317382812,
-0.014011350460350513,
0.029247596859931946,
-0.05533665046095848,
-0.31334373354911804,
0.32569342851638794,
-0.278212308883667,
0.09636648744344711,
0.0749981701374054,
-0.05072775110602379,
-0.40880286693573,
0.05963640287518501,
0.11786721646785736,
-0.13852474093437195,
0.058627694845199585,
-0.14546751976013184,
0.20553059875965118,
0.31066375970840454,
-0.051741745322942734,
0.06077514588832855,
-0.14683428406715393,
-0.18840980529785156,
-0.13215523958206177,
0.562406599521637,
-0.02965206652879715,
-0.22556276619434357,
-0.04994778335094452,
-0.03302209451794624,
0.02145175077021122,
0.3609203100204468,
0.3322622776031494,
0.04741409420967102,
0.1374678909778595,
-0.10439594089984894,
-0.10682202875614166,
0.29522305727005005,
-0.3557238280773163,
-0.1823657751083374,
-0.16049553453922272,
0.04117428511381149,
-0.18272961676120758,
0.05327296257019043,
-0.1426052749156952,
-0.026113416999578476,
-0.15446332097053528,
0.41894370317459106,
0.0851459875702858,
-0.176656574010849,
-0.11907267570495605,
-0.4814084470272064,
-0.35024213790893555,
-0.09127078950405121,
0.05895423889160156,
0.5071209073066711,
-0.07625357061624527,
0.17161118984222412,
0.2642098665237427,
0.05545502528548241,
-0.0777343362569809,
0.0007424619398079813,
0.13575764000415802,
0.2604106664657593,
-0.24531950056552887,
0.1736738681793213,
-0.18391545116901398,
0.1943778246641159,
0.22709234058856964,
0.14800870418548584,
0.1326928585767746,
0.06455019861459732,
-0.09578769654035568,
-0.3693135976791382,
0.011741148307919502,
0.04087376222014427,
-0.09064199030399323,
0.19420045614242554,
-0.023632626980543137,
0.020072942599654198,
-0.04626088961958885,
-0.1779584288597107,
0.01906134933233261,
-0.6478570103645325,
0.05777967721223831,
0.24215584993362427,
-0.011923792771995068,
0.009531836956739426,
-0.11172334104776382,
0.07775747776031494,
0.3475857079029083,
0.18648162484169006,
0.0795116201043129,
-0.15255911648273468,
0.3241612911224365,
0.1469949334859848,
-0.2106698453426361,
0.06857316941022873,
-0.12138369679450989,
-0.025995461270213127,
0.31581366062164307,
-0.04526826739311218,
0.08326784521341324,
0.09919512271881104,
-0.12095963209867477,
0.24413205683231354,
0.09364654123783112,
-0.07940457761287689,
0.17948274314403534,
0.29466894268989563,
-0.0805852934718132,
-0.07273480296134949,
0.16613148152828217,
0.14957860112190247,
-0.1780601590871811,
0.17246167361736298,
-0.13645705580711365,
0.06643975526094437,
-0.2640109062194824,
0.02713601291179657,
-0.24984966218471527,
0.4172476828098297,
0.07080874592065811,
0.06458047032356262,
0.1937784105539322,
-0.025959936901926994,
-0.05894705653190613,
-0.035006701946258545,
0.08320702612400055,
0.2039913535118103,
-0.04995711147785187,
0.22603443264961243,
0.07168987393379211,
-0.1668180525302887,
-0.13714668154716492,
0.010470710694789886,
0.06624463200569153,
0.24011391401290894,
0.34392809867858887,
0.16824032366275787,
-0.15996113419532776,
-0.27108433842658997,
-0.1610846370458603,
0.24648164212703705,
0.23851977288722992,
-0.15063771605491638,
-0.05685258284211159,
0.07569380104541779,
0.15173272788524628,
-0.2876555323600769,
-0.2880505919456482,
-0.2533508241176605,
-0.15971940755844116,
0.08838365226984024,
0.29258882999420166,
0.25788426399230957,
-0.0014518265379592776,
0.3952105641365051,
0.46171146631240845,
0.059359077364206314,
-0.051337309181690216,
0.05023689940571785,
-0.21538615226745605,
-0.31480374932289124,
0.08866824954748154,
0.06496984511613846,
-0.10161420702934265,
0.23330333828926086,
-0.10219544917345047,
-0.19489938020706177,
-0.34378477931022644,
-0.4103054404258728,
0.010056416504085064,
-0.21031971275806427,
0.47198742628097534,
0.18166349828243256,
-0.004250403959304094,
-0.3588888645172119,
-0.11891353130340576,
0.14626814424991608,
0.12110825628042221,
-0.03983301669359207,
-0.0196854081004858,
-0.1493832916021347,
0.03914756327867508,
-0.07081431150436401,
-0.22209778428077698,
0.1640027016401291,
-0.30414697527885437,
0.24095232784748077,
0.07631366699934006,
0.03065141849219799,
-0.06122491881251335,
0.05230933800339699,
0.5045968294143677,
0.5048178434371948,
-0.037923213094472885,
-0.2633741497993469,
0.09040805697441101,
0.1380200833082199,
-0.33668971061706543,
-0.3102606534957886,
0.021610047668218613,
0.016284054145216942,
0.5390121340751648,
0.1647619903087616,
-0.45799264311790466,
-0.3172897696495056,
-0.08158480376005173,
-0.20542091131210327,
-0.24346807599067688,
0.10444798320531845,
0.10456056147813797,
0.045371606945991516,
-0.016684189438819885,
-0.12195291370153427,
-0.12123117595911026,
0.033526863902807236,
-0.22951191663742065,
0.6499080657958984,
-0.2761822044849396,
0.28033533692359924,
0.3270616829395294,
0.8638534545898438,
0.17141218483448029,
-0.027132833376526833,
0.08198841661214828,
0.12086962908506393,
0.04165533557534218,
-0.007301402278244495,
-0.054564595222473145,
0.6279385685920715,
-0.2941344380378723,
-0.1778903603553772,
0.149763286113739,
-0.1594051867723465,
0.24521954357624054,
-0.05722162872552872,
-0.021892543882131577,
0.11484118551015854,
-0.1691705584526062,
-0.1525200754404068,
0.14203515648841858,
0.22616708278656006,
0.08441031724214554,
0.0116431200876832,
-0.2870465815067291,
-0.043970171362161636,
0.026011381298303604,
0.22015975415706635,
-0.0691901445388794,
-0.008999822661280632,
0.2485225647687912,
0.0041994270868599415,
-0.5446141362190247,
0.44574713706970215,
0.21416045725345612,
0.13161404430866241,
0.0335003063082695,
0.13207250833511353,
-0.09863710403442383,
-0.16176088154315948,
0.221913143992424,
-0.20706623792648315,
0.041391097009181976,
-0.03885727375745773,
-0.08244665712118149,
-0.5960397720336914,
0.03179334104061127,
-0.06195291504263878,
-0.2877739369869232,
0.45654353499412537,
0.3751799762248993,
-0.25940489768981934,
0.13725635409355164,
0.22994820773601532,
0.24744729697704315,
-0.004890912678092718,
0.01772836223244667,
-0.5006986856460571,
-0.40970009565353394,
-0.15691827237606049,
0.1279597282409668,
0.13802571594715118,
0.2855314612388611,
-0.03175255283713341,
0.04163925722241402,
-0.16453805565834045,
-0.17561399936676025,
0.04856983572244644,
0.28616705536842346,
0.03734060749411583,
-0.09882078319787979,
0.1486673355102539,
-0.19388656318187714,
-0.33958426117897034,
0.20055538415908813,
0.12170012295246124,
-0.0412943996489048,
-0.9286253452301025,
0.03974241763353348,
0.02721959725022316,
0.24921555817127228,
0.13508911430835724,
-0.1588994860649109,
0.2074216604232788,
-0.1697259396314621,
0.43467485904693604,
0.07449306547641754,
0.27711254358291626,
0.16090308129787445,
0.33665207028388977,
-0.010516325943171978,
-0.12534306943416595,
0.3105498254299164,
0.2530326545238495,
0.2215176224708557,
0.5469450354576111,
-0.09156492352485657,
-0.11807215958833694,
0.12478797137737274,
0.615729570388794,
0.6351808905601501,
0.01956314779818058,
-0.27837854623794556,
0.36204060912132263,
-0.048477865755558014,
0.44662633538246155,
-0.4077371656894684,
0.40813568234443665,
-0.30015259981155396,
-0.5378538370132446,
0.09860266745090485,
0.016689060255885124,
0.02945541962981224,
-0.25062182545661926,
-0.10748375207185745,
0.3304620087146759,
-0.15858253836631775,
-0.22080504894256592,
0.0330510251224041,
0.07572581619024277,
-0.39099520444869995,
-0.08136937767267227,
-0.015905873849987984,
0.1809706687927246,
-0.19848956167697906,
0.15306974947452545,
-0.23911257088184357,
0.22615109384059906,
-0.026903249323368073,
-0.07773634046316147,
-0.2188994139432907,
0.0008699611644260585,
-0.4559265673160553,
0.18233948945999146,
-0.06680295616388321,
-0.06951764225959778,
0.03761754557490349,
0.28962790966033936,
0.8918437957763672,
0.13067473471164703,
-0.07761824131011963,
0.11590567231178284,
-0.014726641587913036,
-0.09182456880807877,
-0.0855848416686058,
0.06435684859752655,
0.2934023141860962,
-0.2617599666118622,
-0.16873903572559357,
-0.08115074038505554,
0.09257586300373077,
-0.16079209744930267,
0.362564355134964,
-0.04671056941151619,
-0.07486839592456818,
0.15066705644130707,
0.020217087119817734,
0.02663116529583931,
-0.06784180551767349,
-0.17309953272342682,
0.11561594903469086,
-0.16313643753528595,
-0.2514808773994446,
-0.011650782078504562,
0.013960408046841621,
-0.35382309556007385,
0.07691983133554459,
0.1848151683807373,
0.0963558554649353,
-0.15267549455165863,
0.4362219572067261,
-0.12702174484729767,
-0.06890573352575302,
-0.08265192061662674,
-0.48287591338157654,
0.09407871216535568,
-0.0615820474922657,
0.32770323753356934,
-0.03919404372572899,
-0.15081895887851715,
0.1088472530245781,
0.8712243437767029,
0.2959723174571991,
0.15337887406349182,
-0.2297152578830719,
-0.3328503370285034,
-0.32470372319221497,
0.014475963078439236,
0.005240366794168949,
0.09894127398729324,
-0.16323724389076233,
0.3649546802043915,
-0.11459749191999435,
0.3088018596172333,
-0.24895896017551422,
0.11808589100837708,
-0.4077552556991577,
0.11900578439235687,
-0.14777611196041107,
-0.16000403463840485,
0.30077093839645386,
0.36645179986953735,
0.011363084428012371,
0.44244247674942017,
-0.24321015179157257,
-0.18150490522384644,
-0.1888817548751831,
0.11997143924236298,
0.23678545653820038,
-0.03730208799242973,
-0.15523125231266022,
-0.045934274792671204,
-0.31020882725715637,
-0.17679302394390106,
0.21192461252212524,
0.2571958899497986,
-0.06610937416553497,
0.0637439414858818,
-0.24947063624858856,
0.42239147424697876,
0.22513532638549805,
-0.29633891582489014,
0.3116737902164459,
0.20229412615299225,
0.13051189482212067,
0.09952470660209656,
0.14368563890457153,
0.07203119248151779,
0.08041006326675415,
-0.2597726881504059,
-0.009855789132416248,
0.008554577827453613,
0.19674021005630493,
-0.2309921234846115,
-0.15612083673477173,
-0.37082669138908386,
0.05171830952167511,
0.36357641220092773,
0.007452016696333885,
-0.27410900592803955,
0.19149178266525269,
0.13226038217544556,
-0.32511889934539795,
0.11903312057256699,
-0.2570674419403076,
0.05392858758568764,
0.08568452298641205,
0.27379679679870605,
0.004499637521803379,
0.023140350356698036,
0.037061359733343124,
-0.04047657176852226,
-0.19417214393615723,
-0.5982768535614014,
-0.04233429953455925,
-0.14811763167381287,
-0.23137441277503967,
0.24175232648849487,
0.380296528339386,
-0.10069054365158081,
0.3059271574020386,
0.0606963112950325,
-0.10947341471910477,
0.25705626606941223,
-0.6360200643539429,
0.09245940297842026,
0.09076341986656189,
-0.057219248265028,
0.3093508183956146,
0.058656442910432816,
-0.08549641072750092,
-0.018470266833901405,
-0.23897410929203033,
0.34029725193977356,
-0.3041677176952362,
0.09762682020664215,
-0.22712060809135437,
0.03300946578383446,
-0.10786482691764832,
0.005204764660447836,
0.1080261617898941,
-0.07958810776472092,
0.13740026950836182,
-0.07346227765083313,
0.2036411017179489,
0.11403711885213852,
-0.22369153797626495,
0.22999298572540283,
-0.11681787669658661,
0.07374713569879532,
-0.6453633904457092,
0.5514608025550842,
0.3634347915649414,
-0.09826937317848206,
0.01676267944276333,
0.2653762996196747,
0.01522313803434372,
-0.18764792382717133,
0.32546770572662354,
0.20124900341033936,
0.47875547409057617,
-0.04328104108572006,
-0.07363342493772507,
0.12418148666620255,
0.0740470290184021,
-0.09110687673091888,
0.28077232837677,
0.5041823387145996,
0.07197180390357971,
0.45485594868659973,
0.05568479374051094,
-0.24693970382213593,
0.10967022180557251,
-0.06710436940193176,
0.0015850415220484138,
-0.10189812630414963,
0.4422677755355835,
-0.08225837349891663,
0.008662709034979343,
-0.32234933972358704,
-0.11045538634061813,
-0.33704593777656555,
0.3438332676887512,
0.05582115054130554,
-0.047978900372982025,
0.25152549147605896,
0.011279351077973843,
0.08349233120679855,
-0.034629106521606445,
0.2525554299354553,
0.13496384024620056,
-0.1671021282672882,
-0.32392603158950806,
-0.18113303184509277,
-0.5610327124595642,
0.22686515748500824,
0.13356734812259674,
0.18414990603923798,
-0.031347937881946564,
0.16959284245967865,
-0.25292739272117615,
-0.11920086294412613,
-0.04632525518536568,
-0.19636192917823792,
0.2509227991104126,
0.024807177484035492,
-0.2768288254737854,
-0.3529919683933258,
-0.241624653339386,
-0.42277437448501587,
0.17088395357131958,
-0.24913114309310913,
0.009029015898704529,
-0.15369373559951782,
-0.0019239633111283183,
-0.045534614473581314,
-0.03631960228085518,
0.26113566756248474,
0.3332715630531311,
0.23745213449001312,
0.03461544215679169,
0.5644972324371338,
-0.037853263318538666,
-0.07344899326562881,
0.015898605808615685,
0.1402173787355423,
-0.2252642661333084,
0.23529601097106934,
0.14536625146865845,
0.39479783177375793,
-0.03567197918891907,
-0.1783236414194107,
-0.4293419122695923,
0.7531887292861938,
0.28733500838279724,
-0.2265712171792984,
-0.0793084129691124,
-0.04111092537641525,
0.10832618176937103,
0.0716213583946228,
0.3129253387451172,
0.3638014495372772,
-0.1406288892030716,
0.33080315589904785,
-0.35881561040878296,
-0.2075112760066986,
0.5828337073326111,
-0.4029493033885956,
-0.29715144634246826,
-0.008299557492136955,
0.3402397632598877,
0.5178592205047607,
-0.43535497784614563,
-0.831995964050293,
-0.00667200842872262,
0.2214435338973999,
0.11133091896772385,
-0.2993389070034027,
0.08498024940490723,
-0.16652943193912506,
0.26736360788345337,
-0.08180569112300873,
0.3439679741859436,
-0.07568897306919098,
-0.1214866116642952,
0.0391111820936203,
-0.24258317053318024
] |
https://github.com/huggingface/datasets/issues/1727 | BLEURT score calculation raises UnrecognizedFlagError | I got the error when running it from the command line. It looks more like an error that should be fixed in the BLEURT codebase. | Calling the `compute` method for **bleurt** metric fails with an `UnrecognizedFlagError` for `FLAGS.bleurt_batch_size`.
My environment:
```
python==3.8.5
datasets==1.2.0
tensorflow==2.3.1
cudatoolkit==11.0.221
```
Test code for reproducing the error:
```
from datasets import load_metric
bleurt = load_metric('bleurt')
gen_text = "I am walking on the promenade today"
ref_text = "I am walking along the promenade on this sunny day"
bleurt.compute(predictions=[test_text], references=[test_text])
```
Error Output:
```
Using default BLEURT-Base checkpoint for sequence maximum length 128. You can use a bigger model for better results with e.g.: datasets.load_metric('bleurt', 'bleurt-large-512').
INFO:tensorflow:Reading checkpoint /home/ubuntu/.cache/huggingface/metrics/bleurt/default/downloads/extracted/9aee35580225730ac5422599f35c4986e4c49cafd08082123342b1019720dac4/bleurt-base-128.
INFO:tensorflow:Config file found, reading.
INFO:tensorflow:Will load checkpoint bert_custom
INFO:tensorflow:Performs basic checks...
INFO:tensorflow:... name:bert_custom
INFO:tensorflow:... vocab_file:vocab.txt
INFO:tensorflow:... bert_config_file:bert_config.json
INFO:tensorflow:... do_lower_case:True
INFO:tensorflow:... max_seq_length:128
INFO:tensorflow:Creating BLEURT scorer.
INFO:tensorflow:Loading model...
INFO:tensorflow:BLEURT initialized.
---------------------------------------------------------------------------
UnrecognizedFlagError Traceback (most recent call last)
<ipython-input-12-8b3f4322318a> in <module>
2 gen_text = "I am walking on the promenade today"
3 ref_text = "I am walking along the promenade on this sunny day"
----> 4 bleurt.compute(predictions=[gen_text], references=[ref_text])
~/anaconda3/envs/noved/lib/python3.8/site-packages/datasets/metric.py in compute(self, *args, **kwargs)
396 references = self.data["references"]
397 with temp_seed(self.seed):
--> 398 output = self._compute(predictions=predictions, references=references, **kwargs)
399
400 if self.buf_writer is not None:
~/.cache/huggingface/modules/datasets_modules/metrics/bleurt/b1de33e1cbbcb1dbe276c887efa1fad68c6aff913885108078fa1ad408908778/bleurt.py in _compute(self, predictions, references)
103
104 def _compute(self, predictions, references):
--> 105 scores = self.scorer.score(references=references, candidates=predictions)
106 return {"scores": scores}
~/anaconda3/envs/noved/lib/python3.8/site-packages/bleurt/score.py in score(self, references, candidates, batch_size)
164 """
165 if not batch_size:
--> 166 batch_size = FLAGS.bleurt_batch_size
167
168 candidates, references = list(candidates), list(references)
~/anaconda3/envs/noved/lib/python3.8/site-packages/tensorflow/python/platform/flags.py in __getattr__(self, name)
83 # a flag.
84 if not wrapped.is_parsed():
---> 85 wrapped(_sys.argv)
86 return wrapped.__getattr__(name)
87
~/anaconda3/envs/noved/lib/python3.8/site-packages/absl/flags/_flagvalues.py in __call__(self, argv, known_only)
643 for name, value in unknown_flags:
644 suggestions = _helpers.get_flag_suggestions(name, list(self))
--> 645 raise _exceptions.UnrecognizedFlagError(
646 name, value, suggestions=suggestions)
647
UnrecognizedFlagError: Unknown command line flag 'f'
```
Possible Fix:
Modify `_compute` method https://github.com/huggingface/datasets/blob/7e64851a12263dc74d41c668167918484c8000ab/metrics/bleurt/bleurt.py#L104
to receive a `batch_size` argument, for example:
```
def _compute(self, predictions, references, batch_size=1):
scores = self.scorer.score(references=references, candidates=predictions, batch_size=batch_size)
return {"scores": scores}
``` | 25 | BLEURT score calculation raises UnrecognizedFlagError
Calling the `compute` method for **bleurt** metric fails with an `UnrecognizedFlagError` for `FLAGS.bleurt_batch_size`.
My environment:
```
python==3.8.5
datasets==1.2.0
tensorflow==2.3.1
cudatoolkit==11.0.221
```
Test code for reproducing the error:
```
from datasets import load_metric
bleurt = load_metric('bleurt')
gen_text = "I am walking on the promenade today"
ref_text = "I am walking along the promenade on this sunny day"
bleurt.compute(predictions=[test_text], references=[test_text])
```
Error Output:
```
Using default BLEURT-Base checkpoint for sequence maximum length 128. You can use a bigger model for better results with e.g.: datasets.load_metric('bleurt', 'bleurt-large-512').
INFO:tensorflow:Reading checkpoint /home/ubuntu/.cache/huggingface/metrics/bleurt/default/downloads/extracted/9aee35580225730ac5422599f35c4986e4c49cafd08082123342b1019720dac4/bleurt-base-128.
INFO:tensorflow:Config file found, reading.
INFO:tensorflow:Will load checkpoint bert_custom
INFO:tensorflow:Performs basic checks...
INFO:tensorflow:... name:bert_custom
INFO:tensorflow:... vocab_file:vocab.txt
INFO:tensorflow:... bert_config_file:bert_config.json
INFO:tensorflow:... do_lower_case:True
INFO:tensorflow:... max_seq_length:128
INFO:tensorflow:Creating BLEURT scorer.
INFO:tensorflow:Loading model...
INFO:tensorflow:BLEURT initialized.
---------------------------------------------------------------------------
UnrecognizedFlagError Traceback (most recent call last)
<ipython-input-12-8b3f4322318a> in <module>
2 gen_text = "I am walking on the promenade today"
3 ref_text = "I am walking along the promenade on this sunny day"
----> 4 bleurt.compute(predictions=[gen_text], references=[ref_text])
~/anaconda3/envs/noved/lib/python3.8/site-packages/datasets/metric.py in compute(self, *args, **kwargs)
396 references = self.data["references"]
397 with temp_seed(self.seed):
--> 398 output = self._compute(predictions=predictions, references=references, **kwargs)
399
400 if self.buf_writer is not None:
~/.cache/huggingface/modules/datasets_modules/metrics/bleurt/b1de33e1cbbcb1dbe276c887efa1fad68c6aff913885108078fa1ad408908778/bleurt.py in _compute(self, predictions, references)
103
104 def _compute(self, predictions, references):
--> 105 scores = self.scorer.score(references=references, candidates=predictions)
106 return {"scores": scores}
~/anaconda3/envs/noved/lib/python3.8/site-packages/bleurt/score.py in score(self, references, candidates, batch_size)
164 """
165 if not batch_size:
--> 166 batch_size = FLAGS.bleurt_batch_size
167
168 candidates, references = list(candidates), list(references)
~/anaconda3/envs/noved/lib/python3.8/site-packages/tensorflow/python/platform/flags.py in __getattr__(self, name)
83 # a flag.
84 if not wrapped.is_parsed():
---> 85 wrapped(_sys.argv)
86 return wrapped.__getattr__(name)
87
~/anaconda3/envs/noved/lib/python3.8/site-packages/absl/flags/_flagvalues.py in __call__(self, argv, known_only)
643 for name, value in unknown_flags:
644 suggestions = _helpers.get_flag_suggestions(name, list(self))
--> 645 raise _exceptions.UnrecognizedFlagError(
646 name, value, suggestions=suggestions)
647
UnrecognizedFlagError: Unknown command line flag 'f'
```
Possible Fix:
Modify `_compute` method https://github.com/huggingface/datasets/blob/7e64851a12263dc74d41c668167918484c8000ab/metrics/bleurt/bleurt.py#L104
to receive a `batch_size` argument, for example:
```
def _compute(self, predictions, references, batch_size=1):
scores = self.scorer.score(references=references, candidates=predictions, batch_size=batch_size)
return {"scores": scores}
```
I got the error when running it from the command line. It looks more like an error that should be fixed in the BLEURT codebase. | [
-0.3299122154712677,
-0.39836767315864563,
0.04140739142894745,
0.4000958502292633,
0.3001840114593506,
-0.22759149968624115,
0.2741968333721161,
0.25628674030303955,
0.005499313585460186,
0.2942810356616974,
-0.012273075059056282,
0.022469541057944298,
-0.08508630841970444,
0.04614190012216568,
-0.2817869186401367,
0.12845055758953094,
-0.20951317250728607,
-0.07703892141580582,
0.421746164560318,
0.08553557097911835,
-0.3209676444530487,
0.19018222391605377,
-0.11296121031045914,
-0.18275579810142517,
-0.31205445528030396,
0.018966039642691612,
0.32888931035995483,
-0.0016792909009382129,
-0.1310291886329651,
-0.2663409113883972,
0.11802919954061508,
-0.19675515592098236,
0.11216548085212708,
0.5339962840080261,
-0.00011421442468417808,
-0.16619150340557098,
0.13908381760120392,
-0.18148882687091827,
-0.17730894684791565,
-0.14011985063552856,
-0.03427281975746155,
-0.25714391469955444,
-0.1122625544667244,
-0.24260476231575012,
0.044150251895189285,
0.18768243491649628,
-0.16063320636749268,
-0.012286314740777016,
0.1843590885400772,
0.39791151881217957,
0.14499935507774353,
0.15091142058372498,
0.07810504734516144,
0.077845498919487,
-0.138113871216774,
-0.3425809144973755,
-0.1521802842617035,
0.3253556191921234,
-0.06692467629909515,
0.03162681683897972,
-0.20974315702915192,
0.22105436027050018,
0.16179391741752625,
0.21452614665031433,
0.28306618332862854,
-0.11133354902267456,
0.3766460120677948,
-0.04792281985282898,
0.2515900731086731,
0.19776198267936707,
-0.09956950694322586,
-0.20138989388942719,
-0.21858619153499603,
0.18862290680408478,
0.12778766453266144,
-0.6358429789543152,
-0.05380101874470711,
-0.06097278743982315,
-0.16854366660118103,
-0.38112083077430725,
-0.3757064640522003,
-0.10144848376512527,
-0.10101772844791412,
-0.13524259626865387,
-0.1513606160879135,
0.17876139283180237,
-0.3350166082382202,
0.10107950121164322,
0.06649905443191528,
0.0372486412525177,
0.2274395227432251,
0.09554244577884674,
0.10291215032339096,
0.22068236768245697,
-0.4990330934524536,
-0.1053616851568222,
0.01608775369822979,
-0.18885481357574463,
-0.016234852373600006,
-0.032536424696445465,
0.24662621319293976,
-0.01586148515343666,
-0.05601944401860237,
0.15804637968540192,
-0.1570669710636139,
0.5400379300117493,
0.1700802445411682,
0.08421365916728973,
0.3933701813220978,
0.5855423212051392,
0.09295424818992615,
-0.0040579624474048615,
-0.005677622742950916,
-0.5385399460792542,
0.23224176466464996,
0.0733199343085289,
-0.17841237783432007,
-0.18943026661872864,
-0.4930154085159302,
0.0014648858923465014,
-0.06099274381995201,
0.03128054738044739,
0.2731889486312866,
0.4516296088695526,
-0.3899906277656555,
-0.24429842829704285,
0.2423391491174698,
-0.051819950342178345,
-0.044099606573581696,
-0.048507772386074066,
-0.278729647397995,
0.06354260444641113,
-0.029643548652529716,
0.19078250229358673,
0.08794563263654709,
-0.6552613973617554,
0.333769291639328,
-0.15722674131393433,
0.25681906938552856,
-0.2171640396118164,
0.0846605896949768,
-0.23427200317382812,
-0.014011350460350513,
0.029247596859931946,
-0.05533665046095848,
-0.31334373354911804,
0.32569342851638794,
-0.278212308883667,
0.09636648744344711,
0.0749981701374054,
-0.05072775110602379,
-0.40880286693573,
0.05963640287518501,
0.11786721646785736,
-0.13852474093437195,
0.058627694845199585,
-0.14546751976013184,
0.20553059875965118,
0.31066375970840454,
-0.051741745322942734,
0.06077514588832855,
-0.14683428406715393,
-0.18840980529785156,
-0.13215523958206177,
0.562406599521637,
-0.02965206652879715,
-0.22556276619434357,
-0.04994778335094452,
-0.03302209451794624,
0.02145175077021122,
0.3609203100204468,
0.3322622776031494,
0.04741409420967102,
0.1374678909778595,
-0.10439594089984894,
-0.10682202875614166,
0.29522305727005005,
-0.3557238280773163,
-0.1823657751083374,
-0.16049553453922272,
0.04117428511381149,
-0.18272961676120758,
0.05327296257019043,
-0.1426052749156952,
-0.026113416999578476,
-0.15446332097053528,
0.41894370317459106,
0.0851459875702858,
-0.176656574010849,
-0.11907267570495605,
-0.4814084470272064,
-0.35024213790893555,
-0.09127078950405121,
0.05895423889160156,
0.5071209073066711,
-0.07625357061624527,
0.17161118984222412,
0.2642098665237427,
0.05545502528548241,
-0.0777343362569809,
0.0007424619398079813,
0.13575764000415802,
0.2604106664657593,
-0.24531950056552887,
0.1736738681793213,
-0.18391545116901398,
0.1943778246641159,
0.22709234058856964,
0.14800870418548584,
0.1326928585767746,
0.06455019861459732,
-0.09578769654035568,
-0.3693135976791382,
0.011741148307919502,
0.04087376222014427,
-0.09064199030399323,
0.19420045614242554,
-0.023632626980543137,
0.020072942599654198,
-0.04626088961958885,
-0.1779584288597107,
0.01906134933233261,
-0.6478570103645325,
0.05777967721223831,
0.24215584993362427,
-0.011923792771995068,
0.009531836956739426,
-0.11172334104776382,
0.07775747776031494,
0.3475857079029083,
0.18648162484169006,
0.0795116201043129,
-0.15255911648273468,
0.3241612911224365,
0.1469949334859848,
-0.2106698453426361,
0.06857316941022873,
-0.12138369679450989,
-0.025995461270213127,
0.31581366062164307,
-0.04526826739311218,
0.08326784521341324,
0.09919512271881104,
-0.12095963209867477,
0.24413205683231354,
0.09364654123783112,
-0.07940457761287689,
0.17948274314403534,
0.29466894268989563,
-0.0805852934718132,
-0.07273480296134949,
0.16613148152828217,
0.14957860112190247,
-0.1780601590871811,
0.17246167361736298,
-0.13645705580711365,
0.06643975526094437,
-0.2640109062194824,
0.02713601291179657,
-0.24984966218471527,
0.4172476828098297,
0.07080874592065811,
0.06458047032356262,
0.1937784105539322,
-0.025959936901926994,
-0.05894705653190613,
-0.035006701946258545,
0.08320702612400055,
0.2039913535118103,
-0.04995711147785187,
0.22603443264961243,
0.07168987393379211,
-0.1668180525302887,
-0.13714668154716492,
0.010470710694789886,
0.06624463200569153,
0.24011391401290894,
0.34392809867858887,
0.16824032366275787,
-0.15996113419532776,
-0.27108433842658997,
-0.1610846370458603,
0.24648164212703705,
0.23851977288722992,
-0.15063771605491638,
-0.05685258284211159,
0.07569380104541779,
0.15173272788524628,
-0.2876555323600769,
-0.2880505919456482,
-0.2533508241176605,
-0.15971940755844116,
0.08838365226984024,
0.29258882999420166,
0.25788426399230957,
-0.0014518265379592776,
0.3952105641365051,
0.46171146631240845,
0.059359077364206314,
-0.051337309181690216,
0.05023689940571785,
-0.21538615226745605,
-0.31480374932289124,
0.08866824954748154,
0.06496984511613846,
-0.10161420702934265,
0.23330333828926086,
-0.10219544917345047,
-0.19489938020706177,
-0.34378477931022644,
-0.4103054404258728,
0.010056416504085064,
-0.21031971275806427,
0.47198742628097534,
0.18166349828243256,
-0.004250403959304094,
-0.3588888645172119,
-0.11891353130340576,
0.14626814424991608,
0.12110825628042221,
-0.03983301669359207,
-0.0196854081004858,
-0.1493832916021347,
0.03914756327867508,
-0.07081431150436401,
-0.22209778428077698,
0.1640027016401291,
-0.30414697527885437,
0.24095232784748077,
0.07631366699934006,
0.03065141849219799,
-0.06122491881251335,
0.05230933800339699,
0.5045968294143677,
0.5048178434371948,
-0.037923213094472885,
-0.2633741497993469,
0.09040805697441101,
0.1380200833082199,
-0.33668971061706543,
-0.3102606534957886,
0.021610047668218613,
0.016284054145216942,
0.5390121340751648,
0.1647619903087616,
-0.45799264311790466,
-0.3172897696495056,
-0.08158480376005173,
-0.20542091131210327,
-0.24346807599067688,
0.10444798320531845,
0.10456056147813797,
0.045371606945991516,
-0.016684189438819885,
-0.12195291370153427,
-0.12123117595911026,
0.033526863902807236,
-0.22951191663742065,
0.6499080657958984,
-0.2761822044849396,
0.28033533692359924,
0.3270616829395294,
0.8638534545898438,
0.17141218483448029,
-0.027132833376526833,
0.08198841661214828,
0.12086962908506393,
0.04165533557534218,
-0.007301402278244495,
-0.054564595222473145,
0.6279385685920715,
-0.2941344380378723,
-0.1778903603553772,
0.149763286113739,
-0.1594051867723465,
0.24521954357624054,
-0.05722162872552872,
-0.021892543882131577,
0.11484118551015854,
-0.1691705584526062,
-0.1525200754404068,
0.14203515648841858,
0.22616708278656006,
0.08441031724214554,
0.0116431200876832,
-0.2870465815067291,
-0.043970171362161636,
0.026011381298303604,
0.22015975415706635,
-0.0691901445388794,
-0.008999822661280632,
0.2485225647687912,
0.0041994270868599415,
-0.5446141362190247,
0.44574713706970215,
0.21416045725345612,
0.13161404430866241,
0.0335003063082695,
0.13207250833511353,
-0.09863710403442383,
-0.16176088154315948,
0.221913143992424,
-0.20706623792648315,
0.041391097009181976,
-0.03885727375745773,
-0.08244665712118149,
-0.5960397720336914,
0.03179334104061127,
-0.06195291504263878,
-0.2877739369869232,
0.45654353499412537,
0.3751799762248993,
-0.25940489768981934,
0.13725635409355164,
0.22994820773601532,
0.24744729697704315,
-0.004890912678092718,
0.01772836223244667,
-0.5006986856460571,
-0.40970009565353394,
-0.15691827237606049,
0.1279597282409668,
0.13802571594715118,
0.2855314612388611,
-0.03175255283713341,
0.04163925722241402,
-0.16453805565834045,
-0.17561399936676025,
0.04856983572244644,
0.28616705536842346,
0.03734060749411583,
-0.09882078319787979,
0.1486673355102539,
-0.19388656318187714,
-0.33958426117897034,
0.20055538415908813,
0.12170012295246124,
-0.0412943996489048,
-0.9286253452301025,
0.03974241763353348,
0.02721959725022316,
0.24921555817127228,
0.13508911430835724,
-0.1588994860649109,
0.2074216604232788,
-0.1697259396314621,
0.43467485904693604,
0.07449306547641754,
0.27711254358291626,
0.16090308129787445,
0.33665207028388977,
-0.010516325943171978,
-0.12534306943416595,
0.3105498254299164,
0.2530326545238495,
0.2215176224708557,
0.5469450354576111,
-0.09156492352485657,
-0.11807215958833694,
0.12478797137737274,
0.615729570388794,
0.6351808905601501,
0.01956314779818058,
-0.27837854623794556,
0.36204060912132263,
-0.048477865755558014,
0.44662633538246155,
-0.4077371656894684,
0.40813568234443665,
-0.30015259981155396,
-0.5378538370132446,
0.09860266745090485,
0.016689060255885124,
0.02945541962981224,
-0.25062182545661926,
-0.10748375207185745,
0.3304620087146759,
-0.15858253836631775,
-0.22080504894256592,
0.0330510251224041,
0.07572581619024277,
-0.39099520444869995,
-0.08136937767267227,
-0.015905873849987984,
0.1809706687927246,
-0.19848956167697906,
0.15306974947452545,
-0.23911257088184357,
0.22615109384059906,
-0.026903249323368073,
-0.07773634046316147,
-0.2188994139432907,
0.0008699611644260585,
-0.4559265673160553,
0.18233948945999146,
-0.06680295616388321,
-0.06951764225959778,
0.03761754557490349,
0.28962790966033936,
0.8918437957763672,
0.13067473471164703,
-0.07761824131011963,
0.11590567231178284,
-0.014726641587913036,
-0.09182456880807877,
-0.0855848416686058,
0.06435684859752655,
0.2934023141860962,
-0.2617599666118622,
-0.16873903572559357,
-0.08115074038505554,
0.09257586300373077,
-0.16079209744930267,
0.362564355134964,
-0.04671056941151619,
-0.07486839592456818,
0.15066705644130707,
0.020217087119817734,
0.02663116529583931,
-0.06784180551767349,
-0.17309953272342682,
0.11561594903469086,
-0.16313643753528595,
-0.2514808773994446,
-0.011650782078504562,
0.013960408046841621,
-0.35382309556007385,
0.07691983133554459,
0.1848151683807373,
0.0963558554649353,
-0.15267549455165863,
0.4362219572067261,
-0.12702174484729767,
-0.06890573352575302,
-0.08265192061662674,
-0.48287591338157654,
0.09407871216535568,
-0.0615820474922657,
0.32770323753356934,
-0.03919404372572899,
-0.15081895887851715,
0.1088472530245781,
0.8712243437767029,
0.2959723174571991,
0.15337887406349182,
-0.2297152578830719,
-0.3328503370285034,
-0.32470372319221497,
0.014475963078439236,
0.005240366794168949,
0.09894127398729324,
-0.16323724389076233,
0.3649546802043915,
-0.11459749191999435,
0.3088018596172333,
-0.24895896017551422,
0.11808589100837708,
-0.4077552556991577,
0.11900578439235687,
-0.14777611196041107,
-0.16000403463840485,
0.30077093839645386,
0.36645179986953735,
0.011363084428012371,
0.44244247674942017,
-0.24321015179157257,
-0.18150490522384644,
-0.1888817548751831,
0.11997143924236298,
0.23678545653820038,
-0.03730208799242973,
-0.15523125231266022,
-0.045934274792671204,
-0.31020882725715637,
-0.17679302394390106,
0.21192461252212524,
0.2571958899497986,
-0.06610937416553497,
0.0637439414858818,
-0.24947063624858856,
0.42239147424697876,
0.22513532638549805,
-0.29633891582489014,
0.3116737902164459,
0.20229412615299225,
0.13051189482212067,
0.09952470660209656,
0.14368563890457153,
0.07203119248151779,
0.08041006326675415,
-0.2597726881504059,
-0.009855789132416248,
0.008554577827453613,
0.19674021005630493,
-0.2309921234846115,
-0.15612083673477173,
-0.37082669138908386,
0.05171830952167511,
0.36357641220092773,
0.007452016696333885,
-0.27410900592803955,
0.19149178266525269,
0.13226038217544556,
-0.32511889934539795,
0.11903312057256699,
-0.2570674419403076,
0.05392858758568764,
0.08568452298641205,
0.27379679679870605,
0.004499637521803379,
0.023140350356698036,
0.037061359733343124,
-0.04047657176852226,
-0.19417214393615723,
-0.5982768535614014,
-0.04233429953455925,
-0.14811763167381287,
-0.23137441277503967,
0.24175232648849487,
0.380296528339386,
-0.10069054365158081,
0.3059271574020386,
0.0606963112950325,
-0.10947341471910477,
0.25705626606941223,
-0.6360200643539429,
0.09245940297842026,
0.09076341986656189,
-0.057219248265028,
0.3093508183956146,
0.058656442910432816,
-0.08549641072750092,
-0.018470266833901405,
-0.23897410929203033,
0.34029725193977356,
-0.3041677176952362,
0.09762682020664215,
-0.22712060809135437,
0.03300946578383446,
-0.10786482691764832,
0.005204764660447836,
0.1080261617898941,
-0.07958810776472092,
0.13740026950836182,
-0.07346227765083313,
0.2036411017179489,
0.11403711885213852,
-0.22369153797626495,
0.22999298572540283,
-0.11681787669658661,
0.07374713569879532,
-0.6453633904457092,
0.5514608025550842,
0.3634347915649414,
-0.09826937317848206,
0.01676267944276333,
0.2653762996196747,
0.01522313803434372,
-0.18764792382717133,
0.32546770572662354,
0.20124900341033936,
0.47875547409057617,
-0.04328104108572006,
-0.07363342493772507,
0.12418148666620255,
0.0740470290184021,
-0.09110687673091888,
0.28077232837677,
0.5041823387145996,
0.07197180390357971,
0.45485594868659973,
0.05568479374051094,
-0.24693970382213593,
0.10967022180557251,
-0.06710436940193176,
0.0015850415220484138,
-0.10189812630414963,
0.4422677755355835,
-0.08225837349891663,
0.008662709034979343,
-0.32234933972358704,
-0.11045538634061813,
-0.33704593777656555,
0.3438332676887512,
0.05582115054130554,
-0.047978900372982025,
0.25152549147605896,
0.011279351077973843,
0.08349233120679855,
-0.034629106521606445,
0.2525554299354553,
0.13496384024620056,
-0.1671021282672882,
-0.32392603158950806,
-0.18113303184509277,
-0.5610327124595642,
0.22686515748500824,
0.13356734812259674,
0.18414990603923798,
-0.031347937881946564,
0.16959284245967865,
-0.25292739272117615,
-0.11920086294412613,
-0.04632525518536568,
-0.19636192917823792,
0.2509227991104126,
0.024807177484035492,
-0.2768288254737854,
-0.3529919683933258,
-0.241624653339386,
-0.42277437448501587,
0.17088395357131958,
-0.24913114309310913,
0.009029015898704529,
-0.15369373559951782,
-0.0019239633111283183,
-0.045534614473581314,
-0.03631960228085518,
0.26113566756248474,
0.3332715630531311,
0.23745213449001312,
0.03461544215679169,
0.5644972324371338,
-0.037853263318538666,
-0.07344899326562881,
0.015898605808615685,
0.1402173787355423,
-0.2252642661333084,
0.23529601097106934,
0.14536625146865845,
0.39479783177375793,
-0.03567197918891907,
-0.1783236414194107,
-0.4293419122695923,
0.7531887292861938,
0.28733500838279724,
-0.2265712171792984,
-0.0793084129691124,
-0.04111092537641525,
0.10832618176937103,
0.0716213583946228,
0.3129253387451172,
0.3638014495372772,
-0.1406288892030716,
0.33080315589904785,
-0.35881561040878296,
-0.2075112760066986,
0.5828337073326111,
-0.4029493033885956,
-0.29715144634246826,
-0.008299557492136955,
0.3402397632598877,
0.5178592205047607,
-0.43535497784614563,
-0.831995964050293,
-0.00667200842872262,
0.2214435338973999,
0.11133091896772385,
-0.2993389070034027,
0.08498024940490723,
-0.16652943193912506,
0.26736360788345337,
-0.08180569112300873,
0.3439679741859436,
-0.07568897306919098,
-0.1214866116642952,
0.0391111820936203,
-0.24258317053318024
] |
https://github.com/huggingface/datasets/issues/1725 | load the local dataset | You should rephrase your question or give more examples and details on what you want to do.
it’s not possible to understand it and help you with only this information. | your guidebook's example is like
>>>from datasets import load_dataset
>>> dataset = load_dataset('json', data_files='my_file.json')
but the first arg is path...
so how should i do if i want to load the local dataset for model training?
i will be grateful if you can help me handle this problem!
thanks a lot! | 30 | load the local dataset
your guidebook's example is like
>>>from datasets import load_dataset
>>> dataset = load_dataset('json', data_files='my_file.json')
but the first arg is path...
so how should i do if i want to load the local dataset for model training?
i will be grateful if you can help me handle this problem!
thanks a lot!
You should rephrase your question or give more examples and details on what you want to do.
it’s not possible to understand it and help you with only this information. | [
-0.1804085522890091,
0.013499125838279724,
-0.10371387749910355,
-0.013034078292548656,
0.21346081793308258,
0.1470811367034912,
0.27002498507499695,
0.28800490498542786,
0.43632379174232483,
0.05448304861783981,
0.11620260030031204,
0.4947062134742737,
-0.07456586509943008,
0.2974509298801422,
0.21978794038295746,
-0.12352463603019714,
0.0534670390188694,
0.21260906755924225,
-0.20957791805267334,
-0.2524620592594147,
-0.12486215680837631,
0.06005840376019478,
-0.006339195650070906,
0.11523928493261337,
0.02887854538857937,
-0.14232975244522095,
0.09130515903234482,
0.529798150062561,
-0.11315206438302994,
-0.3507751524448395,
0.19776222109794617,
-0.12895894050598145,
0.44958123564720154,
0.23744980990886688,
-0.00009963390039047226,
0.2585187554359436,
0.21927782893180847,
-0.2029906064271927,
-0.13976645469665527,
-0.42891570925712585,
-0.3890913128852844,
-0.018218059092760086,
0.4359701871871948,
-0.38259822130203247,
-0.2413375824689865,
-0.1936689019203186,
0.1122729629278183,
-0.1140700951218605,
0.4548482298851013,
0.5852869749069214,
0.26133111119270325,
-0.085133396089077,
0.0730210468173027,
-0.01647154614329338,
-0.12000575661659241,
0.23499605059623718,
0.1261284053325653,
0.5693175196647644,
-0.035134997218847275,
0.023693425580859184,
0.16687017679214478,
0.1679309606552124,
-0.004886671435087919,
0.17443206906318665,
0.295123815536499,
0.15071167051792145,
0.20862863957881927,
-0.18833330273628235,
0.019429439678788185,
-0.016647646203637123,
0.5430043935775757,
-0.10546431690454483,
-0.13570569455623627,
0.11128410696983337,
-0.126647487282753,
-0.04917970299720764,
-0.029038606211543083,
0.23294492065906525,
-0.17782174050807953,
0.4197864830493927,
0.04249047487974167,
-0.15393683314323425,
-0.27152273058891296,
0.359712153673172,
0.09523698687553406,
0.17455600202083588,
-0.2555060088634491,
0.16595831513404846,
0.16801238059997559,
0.06164197251200676,
-0.14967010915279388,
-0.06426765024662018,
0.16973812878131866,
0.28355178236961365,
-0.04294560104608536,
0.03601112961769104,
0.17831890285015106,
-0.02664772793650627,
0.04292125254869461,
-0.03362260013818741,
0.059761613607406616,
0.12152279913425446,
0.015126949176192284,
0.40681856870651245,
0.1413227617740631,
-0.060335855931043625,
0.12022236734628677,
0.11936629563570023,
0.024631930515170097,
0.12884940207004547,
-0.2984275221824646,
-0.15905646979808807,
-0.39005300402641296,
-0.237193301320076,
-0.19747322797775269,
0.0538756437599659,
0.2985181212425232,
-0.3917781114578247,
0.07061487436294556,
-0.1277720034122467,
-0.06620822101831436,
-0.20959636569023132,
0.10452508181333542,
0.45959267020225525,
-0.2042667269706726,
0.04490554332733154,
0.024192102253437042,
0.18388140201568604,
-0.13637255132198334,
-0.06996762007474899,
-0.2046465426683426,
0.20127198100090027,
-0.11797206848859787,
-0.21257908642292023,
0.03785431757569313,
0.11418890953063965,
0.6578571200370789,
-0.14712125062942505,
-0.1344776153564453,
-0.13778914511203766,
0.4352627992630005,
0.0257908683270216,
0.0769682228565216,
0.35574087500572205,
0.17752480506896973,
-0.09398309886455536,
0.23354817926883698,
-0.2354286015033722,
-0.3238986134529114,
0.25356724858283997,
-0.4369357228279114,
-0.3963063955307007,
0.03722361847758293,
0.28642573952674866,
-0.0015863800654187799,
-0.02938782051205635,
-0.3729650378227234,
0.11935166269540787,
-0.21977542340755463,
0.09262698888778687,
-0.21164622902870178,
-0.001782357576303184,
0.026352381333708763,
-0.24086318910121918,
0.44163835048675537,
0.23792296648025513,
-0.5031757950782776,
-0.01977286860346794,
0.0899934321641922,
-0.23184551298618317,
0.17537645995616913,
0.03352521359920502,
-0.6356111168861389,
0.5764728784561157,
-0.07851855456829071,
0.1443062126636505,
0.6426220536231995,
-0.2781132459640503,
0.056895662099123,
0.42050039768218994,
-0.20875896513462067,
-0.17744633555412292,
0.0441889651119709,
-0.02747364714741707,
-0.4110880196094513,
0.19604508578777313,
0.24845068156719208,
0.5545177459716797,
0.029125867411494255,
0.027296196669340134,
-0.12415947020053864,
-0.0672420859336853,
0.008020661771297455,
0.29394659399986267,
-0.18672244250774384,
0.21364884078502655,
0.13088051974773407,
0.0058617983013391495,
0.3009948134422302,
-0.26698437333106995,
-0.18082818388938904,
0.3929588794708252,
0.1529487818479538,
-0.12765389680862427,
0.04714360460639,
0.22234271466732025,
-0.2559237480163574,
0.044706013053655624,
0.0038737794384360313,
-0.22776199877262115,
0.0014643017202615738,
-0.06329017132520676,
-0.21886447072029114,
-0.05202097073197365,
-0.35244640707969666,
-0.01757108047604561,
0.19180350005626678,
0.0984412431716919,
0.2418263703584671,
-0.04122705012559891,
-0.375381201505661,
0.017871156334877014,
-0.41672372817993164,
0.1365874707698822,
-0.3241456151008606,
0.008095882833003998,
-0.17091546952724457,
-0.002511216327548027,
0.0867374986410141,
-0.17337565124034882,
-0.00863327644765377,
-0.25459420680999756,
-0.1253509372472763,
0.36997151374816895,
0.2719963788986206,
0.11700452119112015,
0.12356174737215042,
0.18680612742900848,
-0.13488036394119263,
-0.04905098304152489,
0.08828689157962799,
0.11667871475219727,
0.25366833806037903,
0.09337840229272842,
-0.3188494145870209,
0.3371164798736572,
0.06404177099466324,
0.06701545417308807,
0.1694769263267517,
-0.131499782204628,
0.431587278842926,
-0.18025986850261688,
-0.23709096014499664,
0.09977340698242188,
0.012046960182487965,
0.07935027778148651,
0.18400800228118896,
0.021545298397541046,
-0.42511358857154846,
-0.1393187940120697,
0.2735138237476349,
-0.1181035190820694,
0.004324351437389851,
0.040310632437467575,
-0.19254091382026672,
-0.01690211519598961,
0.1137784868478775,
0.2351687252521515,
0.3781875669956207,
0.279712975025177,
0.07502572238445282,
0.06649547815322876,
-0.09701430052518845,
-0.1405508816242218,
-0.00040312466444447637,
-0.03103894740343094,
0.10656552016735077,
-0.05455140024423599,
-0.18562856316566467,
-0.3148079514503479,
-0.1685454100370407,
-0.07940306514501572,
-0.04563669487833977,
0.28585562109947205,
-0.16934768855571747,
0.1779530942440033,
-0.19558393955230713,
-0.06270352751016617,
-0.33878642320632935,
-0.0970541313290596,
0.12728329002857208,
0.13691899180412292,
-0.14040742814540863,
-0.09686359018087387,
-0.16120386123657227,
0.02680220641195774,
0.018563563004136086,
0.03781316801905632,
-0.13046832382678986,
-0.1197357326745987,
0.11984344571828842,
-0.2314547896385193,
-0.3636470437049866,
0.1404201090335846,
0.35308653116226196,
0.26725101470947266,
0.08381517976522446,
-0.42581379413604736,
-0.13743413984775543,
0.3108013868331909,
0.02788931503891945,
0.1481626331806183,
0.10813051462173462,
0.42553019523620605,
0.029199622571468353,
0.41618627309799194,
-0.09071550518274307,
-0.15602216124534607,
0.3424637019634247,
0.07913921773433685,
-0.05295131728053093,
-0.11512142419815063,
-0.013703402131795883,
-0.07715433090925217,
-0.16973498463630676,
-0.8360051512718201,
-0.42679867148399353,
-0.24372956156730652,
0.25153639912605286,
0.381318598985672,
0.20332664251327515,
0.1878330111503601,
0.4112027883529663,
0.3307698667049408,
-0.039242520928382874,
0.2694142460823059,
-0.09493879973888397,
-0.575131893157959,
0.29981404542922974,
-0.3364129066467285,
-0.3522515296936035,
0.25093522667884827,
-0.057653721421957016,
0.3363949656486511,
-0.3029780387878418,
-0.3647488057613373,
-0.29216086864471436,
0.01850743405520916,
-0.08561188727617264,
-0.13143736124038696,
0.15044984221458435,
0.2429223507642746,
-0.14194631576538086,
-0.18636953830718994,
-0.11531776934862137,
-0.06387031078338623,
0.3799184262752533,
0.18026824295520782,
0.08398991823196411,
0.2681702971458435,
0.41324979066848755,
-0.20547209680080414,
0.40350982546806335,
-0.11922433972358704,
-0.17391733825206757,
0.1824163794517517,
-0.16650381684303284,
0.0020545281004160643,
-0.10579594224691391,
-0.04389243945479393,
-0.07013430446386337,
0.014978352934122086,
-0.29049980640411377,
0.25126197934150696,
0.13968032598495483,
-0.27734658122062683,
-0.3615431785583496,
-0.26351219415664673,
-0.4432041347026825,
-0.11371082812547684,
0.3095841705799103,
0.07488024979829788,
0.07616491615772247,
-0.031060393899679184,
-0.15228214859962463,
-0.12695008516311646,
0.28820618987083435,
0.09854450076818466,
0.4352888762950897,
0.09141946583986282,
0.13122889399528503,
-0.5301725268363953,
-0.3288077116012573,
-0.11666163057088852,
0.11348049342632294,
-0.1647605001926422,
0.0812482088804245,
-0.01705368235707283,
-0.19163569808006287,
0.11340624839067459,
-0.17436259984970093,
0.3603605628013611,
-0.025300057604908943,
0.13320131599903107,
-0.013377102091908455,
-0.12367263436317444,
-0.10577981173992157,
0.012246222235262394,
-0.10681518912315369,
0.2005385309457779,
-0.06311594694852829,
0.5251101851463318,
-0.0073776450008153915,
-0.29247087240219116,
0.03356790542602539,
0.19618655741214752,
-0.2615382671356201,
0.05141777545213699,
-0.3343847692012787,
-0.24548813700675964,
-0.33857250213623047,
-0.03703711926937103,
-0.10531070828437805,
0.03181610256433487,
0.3588360548019409,
-0.01617436669766903,
0.006436455063521862,
0.0948755145072937,
-0.007106798235327005,
0.27216222882270813,
0.22972041368484497,
0.09505501389503479,
-0.23947012424468994,
0.25466400384902954,
0.28451985120773315,
0.10325232893228531,
0.5296408534049988,
-0.04922422766685486,
-0.11678045988082886,
-0.12721365690231323,
-0.010247458703815937,
0.45668941736221313,
0.02968963421881199,
-0.1004597395658493,
-0.12889665365219116,
0.3076188564300537,
-0.14332520961761475,
-0.08622574806213379,
0.4661807119846344,
0.0271892286837101,
-0.002722665201872587,
0.12411156296730042,
-0.6534733176231384,
0.3261772394180298,
-0.0758991688489914,
-0.06483471393585205,
0.18009386956691742,
-0.30017122626304626,
-0.18335966765880585,
0.2977044880390167,
0.07653915137052536,
0.6713842749595642,
0.0618685819208622,
0.1501225084066391,
0.17047612369060516,
-0.2820647954940796,
-0.026118088513612747,
-0.3874356746673584,
0.0025359741412103176,
-0.09411320090293884,
0.1491040289402008,
-0.04174216836690903,
-0.2041795700788498,
0.26263105869293213,
0.42185935378074646,
-0.1820925623178482,
0.10427779704332352,
-0.10228005796670914,
0.15315651893615723,
-0.08930792659521103,
0.29416006803512573,
0.2905028462409973,
-0.12511950731277466,
-0.44103676080703735,
0.18594959378242493,
-0.07326121628284454,
0.06737411767244339,
-0.03811254724860191,
-0.2764883041381836,
-0.048502855002880096,
-0.16073904931545258,
0.4327569305896759,
0.13495022058486938,
-0.2871323823928833,
0.0973234623670578,
0.02129221521317959,
-0.1603078544139862,
-0.3687707483768463,
0.28994446992874146,
0.05482955649495125,
0.16633622348308563,
-0.21733292937278748,
0.055934835225343704,
-0.22873444855213165,
-0.05762835964560509,
-0.34442323446273804,
-0.04006977006793022,
0.2825510799884796,
-0.17775334417819977,
-0.27148741483688354,
0.09658233076334,
-0.2840978503227234,
-0.2838328778743744,
0.052894413471221924,
-0.04363721236586571,
0.12020605802536011,
-0.04138810187578201,
-0.6282683610916138,
0.190787211060524,
0.04359026998281479,
0.011452147737145424,
0.25602859258651733,
0.1455117017030716,
-0.35190075635910034,
0.029904382303357124,
0.25975415110588074,
-0.28802433609962463,
-0.056031715124845505,
0.23299698531627655,
0.05367325246334076,
0.1473548710346222,
0.4500330984592438,
0.07067228108644485,
0.09574397653341293,
-0.31910452246665955,
0.11305588483810425,
0.587213397026062,
0.036830734461545944,
-0.005653310567140579,
0.19073624908924103,
0.15156975388526917,
0.07897938787937164,
0.18437375128269196,
0.15335603058338165,
-0.171047180891037,
-0.17170313000679016,
-0.3371005356311798,
-0.397480309009552,
0.1489289402961731,
0.13092002272605896,
0.20803172886371613,
0.2528420090675354,
0.07441124320030212,
0.1296783685684204,
-0.02429380640387535,
-0.40862974524497986,
0.12309930473566055,
-0.3641242980957031,
0.1800055205821991,
0.09820207953453064,
0.185101717710495,
0.18322187662124634,
0.006708436645567417,
0.20197296142578125,
-0.2810562551021576,
-0.1896115243434906,
-0.3669373095035553,
-0.04102596640586853,
0.04677708446979523,
0.07087954133749008,
0.04676608368754387,
0.06111626699566841,
-0.19801555573940277,
-0.12569595873355865,
0.11201188713312149,
-0.05879586935043335,
-0.191149041056633,
-0.09560364484786987,
0.3177483081817627,
0.03937293216586113,
0.003950432408601046,
-0.11591552942991257,
-0.13712020218372345,
-0.3044009208679199,
0.018553368747234344,
0.07958141714334488,
-0.07253936678171158,
-0.13189060986042023,
-0.1469397097826004,
-0.029924631118774414,
-0.0011660464806482196,
0.002177032409235835,
0.19283527135849,
0.06676774471998215,
-0.20163314044475555,
0.12642616033554077,
-0.1851957142353058,
0.19180713593959808,
0.05812225490808487,
-0.1781560182571411,
0.44821053743362427,
0.40930894017219543,
0.27158111333847046,
-0.12893930077552795,
-0.11881060898303986,
0.324014276266098,
-0.26216715574264526,
0.1163819283246994,
0.061654139310121536,
0.10734004527330399,
0.15841403603553772,
0.02673501893877983,
-0.014691534452140331,
0.2206791490316391,
0.1078251451253891,
0.027026182040572166,
0.3091074526309967,
-0.27411410212516785,
0.028162406757473946,
-0.09423905611038208,
0.3863440155982971,
0.4005346894264221,
0.27413398027420044,
-0.20543265342712402,
0.1652839481830597,
0.1451987475156784,
0.09375885874032974,
-0.19126516580581665,
-0.39031967520713806,
0.05408158153295517,
0.04979321360588074,
-0.13521838188171387,
0.11280808597803116,
-0.04781786724925041,
0.20781484246253967,
0.04679267108440399,
-0.17049241065979004,
0.007286645472049713,
0.10584692656993866,
-0.06365181505680084,
-0.2617337107658386,
-0.635026752948761,
-0.08908019214868546,
-0.12653949856758118,
-0.014527673833072186,
0.08592139184474945,
-0.08647564053535461,
0.06132407858967781,
-0.08983311057090759,
0.025249730795621872,
0.06543715298175812,
0.12262549251317978,
0.014823481440544128,
-0.18912559747695923,
-0.03333650156855583,
0.15166665613651276,
-0.09104834496974945,
-0.021718934178352356,
-0.006053210701793432,
-0.1008659079670906,
0.1498211920261383,
0.30792492628097534,
-0.017719870433211327,
0.006629739888012409,
0.1473597288131714,
-0.19672653079032898,
-0.1637204885482788,
-0.008599866181612015,
0.004701586440205574,
0.18417012691497803,
0.19156911969184875,
0.32225969433784485,
-0.2432376891374588,
0.37560373544692993,
-0.0618230439722538,
0.009170472621917725,
-0.13497205078601837,
-0.021199550479650497,
0.34993594884872437,
-0.09028912335634232,
-0.11061661690473557,
0.08448507636785507,
-0.6342899799346924,
-0.10731618106365204,
0.30212289094924927,
0.059553854167461395,
0.0979304388165474,
-0.07127711921930313,
0.14236058294773102,
-0.11844043433666229,
0.6424100399017334,
-0.0229901522397995,
0.25674930214881897,
-0.3226085603237152,
-0.16979867219924927,
-0.3066844642162323,
-0.03731187433004379,
-0.11201793700456619,
-0.04751678928732872,
0.1425909399986267,
0.05052025988698006,
0.2933206856250763,
0.30955207347869873,
-0.14057250320911407,
-0.07036962360143661,
-0.2856649160385132,
0.2319447100162506,
-0.024950489401817322,
-0.26084649562835693,
-0.22968821227550507,
0.40740957856178284,
0.0233914814889431,
-0.1877523511648178,
-0.0545891709625721,
-0.17733895778656006,
0.1422913521528244,
-0.153817281126976,
-0.14754489064216614,
0.11667604744434357,
0.010282380506396294,
0.471377432346344,
-0.12231463938951492,
0.22158358991146088,
-0.16482681035995483,
0.15008918941020966,
0.03916846588253975,
0.05108020827174187,
-0.2566114664077759,
0.043279409408569336,
-0.23739834129810333,
0.26773279905319214,
-0.3237300515174866,
0.0017962048295885324,
-0.37647944688796997,
-0.21817275881767273,
0.06866864114999771,
-0.3193562924861908,
0.0365225151181221,
0.07521367073059082,
-0.02155114896595478,
-0.13687369227409363,
0.18346117436885834,
0.236316978931427,
-0.06698309630155563,
-0.15548300743103027,
-0.21724626421928406,
0.10107272118330002,
0.458685964345932,
-0.3350113034248352,
-0.17817141115665436,
0.09161418676376343,
-0.036895476281642914,
-0.08387252688407898,
0.03044223040342331,
-0.26974034309387207,
0.21428534388542175,
0.19819387793540955,
-0.025694161653518677,
-0.30898022651672363,
0.42181891202926636,
0.26588308811187744,
0.09845529496669769,
-0.10442957282066345,
0.0271278265863657,
0.005016605369746685,
-0.0953025370836258,
-0.49293217062950134,
-0.4097039997577667
] |
https://github.com/huggingface/datasets/issues/1725 | load the local dataset | sorry for that.
i want to know how could i load the train set and the test set from the local ,which api or function should i use .
| your guidebook's example is like
>>>from datasets import load_dataset
>>> dataset = load_dataset('json', data_files='my_file.json')
but the first arg is path...
so how should i do if i want to load the local dataset for model training?
i will be grateful if you can help me handle this problem!
thanks a lot! | 29 | load the local dataset
your guidebook's example is like
>>>from datasets import load_dataset
>>> dataset = load_dataset('json', data_files='my_file.json')
but the first arg is path...
so how should i do if i want to load the local dataset for model training?
i will be grateful if you can help me handle this problem!
thanks a lot!
sorry for that.
i want to know how could i load the train set and the test set from the local ,which api or function should i use .
| [
-0.317470908164978,
0.06382004171609879,
-0.09525938332080841,
0.07376958429813385,
0.11967439204454422,
0.15572409331798553,
0.15555739402770996,
0.3187201917171478,
0.5008645057678223,
0.06144647300243378,
0.16420260071754456,
0.43741539120674133,
-0.12088166177272797,
0.48283225297927856,
0.30475565791130066,
-0.16354726254940033,
0.0707765743136406,
0.22943082451820374,
-0.2788070738315582,
-0.24412356317043304,
-0.1344446837902069,
0.07365190237760544,
-0.08553875237703323,
0.11539030075073242,
0.12427383661270142,
-0.08784975856542587,
0.06839514523744583,
0.47040000557899475,
-0.1047724187374115,
-0.302594393491745,
0.23077207803726196,
-0.17465882003307343,
0.42774349451065063,
0.2090979665517807,
-0.00010647554881870747,
0.2021757960319519,
0.1668531894683838,
-0.2235587239265442,
-0.054356981068849564,
-0.6375686526298523,
-0.339815229177475,
0.012243305332958698,
0.5199458003044128,
-0.2398439347743988,
-0.27357906103134155,
-0.3229023814201355,
0.0742032378911972,
-0.24209736287593842,
0.5297541618347168,
0.6811373829841614,
0.16371992230415344,
-0.11598116904497147,
-0.027479298412799835,
0.07880879938602448,
-0.10824824869632721,
0.19931021332740784,
0.042591553181409836,
0.4848558008670807,
0.21610760688781738,
-0.13294290006160736,
0.12070368230342865,
0.0659026950597763,
0.059450190514326096,
0.14584669470787048,
0.3084442913532257,
0.10422136634588242,
0.10015154629945755,
-0.3671632707118988,
-0.032288115471601486,
-0.006827767472714186,
0.659565269947052,
-0.15190905332565308,
-0.0672273337841034,
0.19323456287384033,
-0.1363980919122696,
0.01880866289138794,
0.051471009850502014,
0.20400987565517426,
-0.19852550327777863,
0.34189924597740173,
-0.13958270847797394,
-0.3033144772052765,
-0.29200831055641174,
0.3929930031299591,
0.14361020922660828,
0.0630979984998703,
-0.13615313172340393,
0.19198152422904968,
0.12326589971780777,
0.07735615968704224,
-0.047634776681661606,
-0.1123591959476471,
0.18110017478466034,
0.41762426495552063,
-0.1470157504081726,
0.03189001604914665,
0.12046084553003311,
-0.1583305448293686,
-0.021217022091150284,
0.14256414771080017,
-0.03519120067358017,
0.20763105154037476,
-0.14132221043109894,
0.2797667980194092,
0.19940303266048431,
0.09054092317819595,
0.25102174282073975,
0.23011617362499237,
-0.04137326404452324,
0.04519232362508774,
-0.24752256274223328,
-0.09282418340444565,
-0.38418063521385193,
-0.1468483954668045,
-0.2581521272659302,
0.1096850261092186,
0.1985313594341278,
-0.4896929860115051,
0.20115698873996735,
-0.10367915034294128,
-0.15902815759181976,
-0.3006119430065155,
0.10271308571100235,
0.3576221466064453,
-0.26373639702796936,
0.17567308247089386,
0.02635844051837921,
0.17596928775310516,
-0.1818370372056961,
-0.03554829582571983,
-0.16976617276668549,
0.23909123241901398,
-0.08772691339254379,
-0.08034251630306244,
0.08814257383346558,
0.07373678684234619,
0.6081704497337341,
-0.1651267111301422,
-0.018226468935608864,
-0.07161590456962585,
0.5714465975761414,
-0.04496147111058235,
0.10451239347457886,
0.3682505190372467,
0.18443173170089722,
-0.10876920819282532,
0.15847033262252808,
-0.16979622840881348,
-0.30916520953178406,
0.26643314957618713,
-0.4438111186027527,
-0.4999341070652008,
0.08583935350179672,
0.21545882523059845,
0.0015289861476048827,
-0.057915255427360535,
-0.4173058569431305,
0.19197000563144684,
-0.23477868735790253,
0.09920070320367813,
-0.21220655739307404,
-0.016766740009188652,
-0.09493562579154968,
-0.16028520464897156,
0.4525194466114044,
0.16268126666545868,
-0.5647455453872681,
-0.06266169995069504,
0.23246969282627106,
-0.18130099773406982,
0.14606301486492157,
0.07768500596284866,
-0.623631477355957,
0.5268676280975342,
-0.08071085065603256,
0.10678698867559433,
0.7347122430801392,
-0.3785434067249298,
0.15650689601898193,
0.40806421637535095,
-0.10552538186311722,
-0.28990235924720764,
-0.14115643501281738,
-0.083124540746212,
-0.4013298451900482,
0.18345576524734497,
0.2094929963350296,
0.7176535129547119,
-0.03990989923477173,
-0.039673760533332825,
-0.08494805544614792,
-0.13555215299129486,
0.08547568321228027,
0.39243465662002563,
0.002294859616085887,
0.11239665001630783,
0.07903233915567398,
-0.05699378624558449,
0.25356146693229675,
-0.2241215854883194,
-0.2327946573495865,
0.343111515045166,
0.20935828983783722,
-0.18963328003883362,
0.09956509619951248,
0.1646357774734497,
-0.22718550264835358,
0.08071073889732361,
-0.09430751949548721,
-0.0907398909330368,
0.06676611304283142,
0.009366067126393318,
-0.22461600601673126,
-0.10692259669303894,
-0.3677223026752472,
0.0222593042999506,
0.056012582033872604,
-0.012284933589398861,
0.21221275627613068,
0.082134909927845,
-0.4414839744567871,
-0.05977986380457878,
-0.38565534353256226,
0.12077821791172028,
-0.3741037845611572,
0.02586139738559723,
-0.08002384006977081,
0.012640221044421196,
0.08984794467687607,
-0.15607160329818726,
-0.0130084790289402,
-0.3751967251300812,
-0.18844442069530487,
0.370515912771225,
0.3448430299758911,
0.19403277337551117,
0.12157068401575089,
0.26722607016563416,
0.02993488498032093,
-0.04706649109721184,
-0.017327751964330673,
0.10695065557956696,
0.2393459677696228,
0.001353924861177802,
-0.3494454026222229,
0.3390461504459381,
0.03866545483469963,
0.0980396419763565,
0.21188801527023315,
-0.10196840018033981,
0.398222416639328,
-0.10201218724250793,
-0.14479364454746246,
0.146641343832016,
0.03307345137000084,
-0.023038705810904503,
0.26431307196617126,
-0.0116127859801054,
-0.32779785990715027,
-0.1617969572544098,
0.18310457468032837,
-0.19510087370872498,
-0.02114916406571865,
-0.08698227256536484,
-0.15020066499710083,
-0.1252112090587616,
0.2040325403213501,
0.14776329696178436,
0.350554496049881,
0.17265062034130096,
0.088332898914814,
0.1220303550362587,
-0.021735094487667084,
-0.08650662750005722,
-0.008135715499520302,
-0.058931827545166016,
0.12799058854579926,
-0.040336545556783676,
-0.24195590615272522,
-0.2958585023880005,
-0.14348481595516205,
-0.05625129118561745,
0.04350645840167999,
0.265751451253891,
-0.1682801991701126,
0.13021597266197205,
-0.15768951177597046,
-0.08963325619697571,
-0.3395096957683563,
-0.1717468798160553,
0.17376725375652313,
0.13126951456069946,
-0.07800225168466568,
-0.21719707548618317,
-0.10907550901174545,
0.017932752147316933,
0.03513006120920181,
0.1275709569454193,
-0.1210847869515419,
-0.12308567762374878,
0.1192730963230133,
-0.24707874655723572,
-0.4121358096599579,
0.12105172872543335,
0.47312578558921814,
0.31463170051574707,
0.22212545573711395,
-0.3679431676864624,
-0.16497109830379486,
0.3988382816314697,
0.04324425384402275,
0.2520953118801117,
0.16017407178878784,
0.4491713345050812,
-0.04790616035461426,
0.2613445520401001,
-0.07427135854959488,
-0.13351719081401825,
0.28954052925109863,
-0.06877794116735458,
-0.09482196718454361,
-0.13745740056037903,
-0.030096203088760376,
-0.014506612904369831,
-0.13822638988494873,
-0.8957130312919617,
-0.48498156666755676,
-0.09755454957485199,
0.2685418725013733,
0.3610464334487915,
0.20549950003623962,
0.08008194714784622,
0.32867637276649475,
0.32227855920791626,
0.0620691291987896,
0.19697479903697968,
-0.0913054347038269,
-0.6318541169166565,
0.15650388598442078,
-0.3055170774459839,
-0.3713769018650055,
0.18072500824928284,
0.027157502248883247,
0.25577300786972046,
-0.3386816680431366,
-0.4009629487991333,
-0.43909791111946106,
0.054165784269571304,
0.03949436545372009,
-0.11064263433218002,
0.04568011313676834,
0.16861435770988464,
-0.2539505958557129,
-0.03854256123304367,
-0.009610794484615326,
-0.029659844934940338,
0.33981820940971375,
0.2781491279602051,
0.01612919196486473,
0.259762704372406,
0.35803115367889404,
-0.25669732689857483,
0.5325695872306824,
-0.05179901793599129,
-0.14530283212661743,
0.10720933228731155,
-0.1643764227628708,
-0.16308695077896118,
-0.17206943035125732,
-0.03921625390648842,
-0.03228902444243431,
0.01511327549815178,
-0.29396578669548035,
0.20590831339359283,
0.14790484309196472,
-0.32492977380752563,
-0.4695686101913452,
-0.2655549943447113,
-0.4256272614002228,
-0.06920814514160156,
0.2413308024406433,
-0.09292284399271011,
0.08912204951047897,
-0.08385451138019562,
-0.15269090235233307,
-0.07418766617774963,
0.21596793830394745,
0.26431965827941895,
0.2657872140407562,
0.04736633971333504,
0.14147751033306122,
-0.5233094096183777,
-0.3210383355617523,
-0.21156978607177734,
0.14465686678886414,
-0.07361628860235214,
0.14460735023021698,
-0.02459697611629963,
-0.17500780522823334,
0.09578145295381546,
-0.18682126700878143,
0.31298431754112244,
-0.06241447478532791,
0.004438386298716068,
0.005075711291283369,
-0.25868478417396545,
-0.03368443250656128,
0.00756234023720026,
-0.1549842357635498,
0.14549432694911957,
-0.018959298729896545,
0.569106936454773,
0.1021949052810669,
-0.37301918864250183,
0.010238678194582462,
0.1659720540046692,
-0.3294256925582886,
0.06061118096113205,
-0.1722371131181717,
-0.23349037766456604,
-0.1779259890317917,
-0.044148851186037064,
-0.18163469433784485,
0.07742985337972641,
0.27292001247406006,
-0.07702388614416122,
0.09549236297607422,
0.10845524072647095,
0.058858443051576614,
0.20060820877552032,
0.157981738448143,
0.0900377407670021,
-0.12352447211742401,
0.27956119179725647,
0.22639569640159607,
0.0995098277926445,
0.5160395503044128,
-0.12082232534885406,
-0.09327467530965805,
-0.098021000623703,
0.013310153037309647,
0.45042967796325684,
-0.04406231269240379,
-0.06911157816648483,
-0.1843324452638626,
0.15649163722991943,
-0.18468989431858063,
-0.1419922113418579,
0.530555784702301,
-0.059372011572122574,
0.08902712911367416,
0.18286144733428955,
-0.74200439453125,
0.34436675906181335,
0.02587224170565605,
-0.126206174492836,
0.3025681674480438,
-0.395306795835495,
-0.13997679948806763,
0.3523111045360565,
0.14047129452228546,
0.6720987558364868,
-0.14750336110591888,
0.06498366594314575,
0.11144004017114639,
-0.24256844818592072,
-0.02751033380627632,
-0.47642120718955994,
-0.09621737897396088,
-0.16612890362739563,
0.14741359651088715,
-0.10816428810358047,
-0.17750848829746246,
0.20520848035812378,
0.29443827271461487,
-0.07886482775211334,
0.2112182229757309,
0.06425905227661133,
0.17405323684215546,
-0.15279123187065125,
0.3718279302120209,
0.25997546315193176,
-0.06809569150209427,
-0.41209501028060913,
0.14822328090667725,
-0.056501809507608414,
0.03873061016201973,
-0.04742126911878586,
-0.17585909366607666,
0.07229102402925491,
-0.11770655959844589,
0.4393654465675354,
0.13045945763587952,
-0.3135422468185425,
0.21666786074638367,
0.018922677263617516,
-0.20562733709812164,
-0.2958347797393799,
0.4419998228549957,
0.042595040053129196,
0.050763875246047974,
-0.30148226022720337,
0.08201213926076889,
-0.2093753218650818,
-0.016317518427968025,
-0.2445136457681656,
-0.04931062459945679,
0.36622434854507446,
-0.20170561969280243,
-0.27984917163848877,
0.1274433732032776,
-0.30338403582572937,
-0.18058164417743683,
-0.01492506917566061,
-0.06240171194076538,
0.21274682879447937,
-0.02259087562561035,
-0.6232084631919861,
0.23366834223270416,
0.18061590194702148,
0.07675959914922714,
0.17918938398361206,
0.211349755525589,
-0.33148545026779175,
0.13459713757038116,
0.2630291283130646,
-0.31291913986206055,
0.018692445009946823,
0.16604715585708618,
0.0899801179766655,
0.04764316603541374,
0.46216949820518494,
0.1369718313217163,
0.22401590645313263,
-0.24554449319839478,
0.19233891367912292,
0.7654078006744385,
-0.0014511782210320234,
-0.08239974081516266,
0.11781845986843109,
0.1518150418996811,
0.16261586546897888,
0.3418765664100647,
0.16674664616584778,
-0.26684850454330444,
-0.0990423783659935,
-0.34961503744125366,
-0.39689067006111145,
0.17710533738136292,
0.1989319920539856,
0.28538787364959717,
0.276646226644516,
-0.10203936696052551,
0.16062170267105103,
0.11170178651809692,
-0.31134217977523804,
0.13783366978168488,
-0.42483261227607727,
0.18765412271022797,
0.06178860366344452,
0.24192459881305695,
0.15758715569972992,
-0.059535425156354904,
0.09131160378456116,
-0.3470116853713989,
-0.2024553120136261,
-0.255535364151001,
0.015451560728251934,
0.07631117850542068,
0.03623051568865776,
-0.03008078970015049,
-0.07654736936092377,
-0.2830146253108978,
-0.09398037940263748,
0.11032965779304504,
-0.017790846526622772,
-0.24638865888118744,
-0.13039016723632812,
0.3935234248638153,
0.06446149945259094,
-0.07382671535015106,
-0.25126585364341736,
0.08191729336977005,
-0.2246735692024231,
-0.0700802206993103,
0.06678120046854019,
-0.008628735318779945,
-0.022822177037596703,
-0.18065716326236725,
0.1397467404603958,
-0.02329217456281185,
0.08654334396123886,
0.11997108161449432,
0.04436297342181206,
-0.16381408274173737,
0.13420110940933228,
-0.2023623138666153,
0.18006177246570587,
0.16753967106342316,
-0.1533307433128357,
0.5118129253387451,
0.35458484292030334,
0.214579239487648,
-0.07053399085998535,
-0.17114076018333435,
0.2912951409816742,
-0.12173446267843246,
-0.024877116084098816,
1.8339787288823572e-7,
0.14631031453609467,
0.11665857583284378,
0.03469989448785782,
0.009909503161907196,
0.105828657746315,
0.1709630787372589,
-0.002877941122278571,
0.21267618238925934,
-0.36984044313430786,
-0.05622583627700806,
-0.23486123979091644,
0.33010396361351013,
0.28761473298072815,
0.16823919117450714,
-0.14269596338272095,
0.27868568897247314,
0.14487946033477783,
0.16359730064868927,
-0.15630260109901428,
-0.5004988312721252,
0.059829022735357285,
-0.030809585005044937,
-0.19842879474163055,
0.09150157868862152,
0.05272794887423515,
0.3666587471961975,
0.1219545230269432,
-0.2985166311264038,
0.04440910741686821,
0.09614508599042892,
0.042935434728860855,
-0.2359730452299118,
-0.658115804195404,
-0.0446995310485363,
-0.08066537231206894,
0.05281871557235718,
0.14736302196979523,
-0.14565245807170868,
0.05394463986158371,
0.0032468996942043304,
-0.029736895114183426,
0.20032529532909393,
-0.02222646214067936,
0.13614249229431152,
-0.23432761430740356,
0.003896277165040374,
0.2026713788509369,
-0.02498156763613224,
-0.07909496873617172,
-0.05922253802418709,
-0.13848456740379333,
0.06973174959421158,
0.27480074763298035,
-0.276567280292511,
0.11344737559556961,
0.2999902069568634,
-0.10863562673330307,
-0.06606879085302353,
0.012889477424323559,
-0.04676510766148567,
0.1701364815235138,
0.19168686866760254,
0.23179472982883453,
-0.10662201046943665,
0.3731817305088043,
-0.16481877863407135,
0.10588813573122025,
-0.1258360743522644,
0.09501192718744278,
0.45019254088401794,
-0.10583056509494781,
-0.1437922865152359,
0.15364299714565277,
-0.5023992657661438,
-0.062307074666023254,
0.3093751072883606,
0.05702479928731918,
0.08986210823059082,
-0.018228720873594284,
0.0892704576253891,
-0.12304820865392685,
0.7096776962280273,
0.1012098491191864,
0.33675655722618103,
-0.28816744685173035,
-0.2534317374229431,
-0.31085869669914246,
-0.030583078041672707,
0.020108642056584358,
0.01421393733471632,
0.15734167397022247,
-0.01957169733941555,
0.3890886902809143,
0.33806300163269043,
-0.216364324092865,
0.008940170519053936,
-0.21757471561431885,
0.24819977581501007,
-0.11803649365901947,
-0.1989138126373291,
-0.27245330810546875,
0.3911561071872711,
-0.005383716896176338,
-0.14391718804836273,
0.006383626721799374,
-0.23449790477752686,
0.022895289584994316,
-0.08164723962545395,
-0.1802423596382141,
0.19730156660079956,
-0.11162268370389938,
0.5349858403205872,
-0.13017617166042328,
0.34357836842536926,
-0.10057727992534637,
0.35510900616645813,
0.212998628616333,
0.06349154561758041,
-0.13225312530994415,
0.02198043279349804,
-0.3497196435928345,
0.21169321238994598,
-0.287081241607666,
0.02996906451880932,
-0.33126702904701233,
-0.19253259897232056,
0.011209762655198574,
-0.29796716570854187,
0.0358242467045784,
-0.09817788749933243,
-0.12598268687725067,
-0.16312676668167114,
0.23144657909870148,
0.369464635848999,
-0.06166159361600876,
-0.19805964827537537,
-0.15906308591365814,
0.20303839445114136,
0.39302340149879456,
-0.3736937344074249,
-0.09792378544807434,
-0.056745078414678574,
-0.12067121267318726,
-0.05573883652687073,
-0.035472773015499115,
-0.41816607117652893,
0.10173394531011581,
0.2013043314218521,
-0.051119592040777206,
-0.23963066935539246,
0.4971450865268707,
0.34144827723503113,
0.23521015048027039,
-0.16380877792835236,
0.11140817403793335,
-0.0391513928771019,
-0.02784072235226631,
-0.5796435475349426,
-0.40022408962249756
] |
https://github.com/huggingface/datasets/issues/1725 | load the local dataset | thanks a lot
i find that the problem is i dont use vpn...
so i have to keep my net work even if i want to load the local data ? | your guidebook's example is like
>>>from datasets import load_dataset
>>> dataset = load_dataset('json', data_files='my_file.json')
but the first arg is path...
so how should i do if i want to load the local dataset for model training?
i will be grateful if you can help me handle this problem!
thanks a lot! | 31 | load the local dataset
your guidebook's example is like
>>>from datasets import load_dataset
>>> dataset = load_dataset('json', data_files='my_file.json')
but the first arg is path...
so how should i do if i want to load the local dataset for model training?
i will be grateful if you can help me handle this problem!
thanks a lot!
thanks a lot
i find that the problem is i dont use vpn...
so i have to keep my net work even if i want to load the local data ? | [
-0.22625812888145447,
0.07263939827680588,
-0.05076020583510399,
0.029830818995833397,
0.11851225048303604,
0.06380300223827362,
0.2788849472999573,
0.21063505113124847,
0.41184717416763306,
0.13368792831897736,
0.1261635571718216,
0.4746668040752411,
0.07140640914440155,
0.4720023274421692,
0.3170849084854126,
-0.09843388944864273,
0.10315129160881042,
0.27400895953178406,
-0.18619303405284882,
-0.2366860955953598,
-0.17937712371349335,
0.00708968797698617,
-0.1479732096195221,
0.09822922945022583,
0.0665094330906868,
-0.12814395129680634,
0.155379518866539,
0.4630153179168701,
-0.03246692568063736,
-0.3530554473400116,
0.3163313865661621,
-0.11357875168323517,
0.5149086117744446,
0.2220311164855957,
-0.00011104821169283241,
0.315665602684021,
0.2686828076839447,
-0.17982220649719238,
-0.17658190429210663,
-0.43989288806915283,
-0.3317747414112091,
-0.08252648264169693,
0.5880653858184814,
-0.3125264346599579,
-0.3187108337879181,
-0.16529378294944763,
0.16798684000968933,
-0.13425947725772858,
0.4851852357387543,
0.5206212401390076,
0.12772658467292786,
-0.06497322767972946,
-0.046564821153879166,
0.03194982558488846,
-0.20791198313236237,
0.04097665473818779,
0.091477170586586,
0.5332655310630798,
-0.03587215021252632,
-0.030660169199109077,
0.24458521604537964,
0.21696801483631134,
0.010146363638341427,
0.11086497455835342,
0.4078387916088104,
0.2312995344400406,
0.18551105260849,
-0.2728908360004425,
-0.010861672461032867,
0.029411882162094116,
0.6502358913421631,
-0.03453034162521362,
-0.061569467186927795,
0.1497107446193695,
-0.17311294376850128,
-0.0593595989048481,
0.08189830183982849,
0.15946322679519653,
-0.15839368104934692,
0.4750198721885681,
-0.06524920463562012,
-0.26720544695854187,
-0.35621342062950134,
0.5089407563209534,
0.10505291819572449,
0.14242443442344666,
-0.20992128551006317,
0.17865216732025146,
0.22460679709911346,
0.08348341286182404,
-0.023907115682959557,
-0.10446065664291382,
0.23955437541007996,
0.3202844262123108,
-0.08810872584581375,
0.04946294054389,
0.10824418812990189,
-0.021807853132486343,
-0.07923873513936996,
-0.1370922476053238,
0.08320484310388565,
0.11100311577320099,
-0.043099019676446915,
0.3450952172279358,
0.24400994181632996,
-0.08050267398357391,
0.07789897918701172,
0.1146906316280365,
0.08272566646337509,
0.03437207639217377,
-0.19026082754135132,
-0.1788250356912613,
-0.4520168900489807,
-0.2575867772102356,
-0.2210617959499359,
0.06941911578178406,
0.3887130916118622,
-0.4943305552005768,
0.21367640793323517,
-0.09972987323999405,
-0.08029525727033615,
-0.19206611812114716,
0.19162113964557648,
0.3994501233100891,
-0.3089073598384857,
0.1041300967335701,
-0.022269340232014656,
0.15742579102516174,
-0.23766176402568817,
-0.07658274471759796,
-0.14938823878765106,
0.030434714630246162,
-0.041888512670993805,
-0.1859297901391983,
0.07007385790348053,
0.16224850714206696,
0.47417134046554565,
-0.19783057272434235,
-0.011063295416533947,
-0.06824460625648499,
0.39819151163101196,
-0.03631139174103737,
0.05248893052339554,
0.43575119972229004,
0.19966016709804535,
-0.11758320778608322,
0.13817709684371948,
-0.2458842247724533,
-0.33734017610549927,
0.31952792406082153,
-0.4019109308719635,
-0.4656972587108612,
0.10410549491643906,
0.15094007551670074,
0.04109545797109604,
-0.11538420617580414,
-0.3019275367259979,
0.1050075814127922,
-0.2668140232563019,
0.03179977834224701,
-0.25577348470687866,
0.05469406023621559,
-0.16974906623363495,
-0.13585448265075684,
0.5634298324584961,
0.31511494517326355,
-0.5412470698356628,
0.02019149251282215,
0.049137093126773834,
-0.2760147750377655,
0.20947295427322388,
0.13298994302749634,
-0.648259162902832,
0.5789045691490173,
-0.021629661321640015,
0.053820472210645676,
0.6857837438583374,
-0.3355177342891693,
-0.04807494208216667,
0.5132647752761841,
-0.29599323868751526,
-0.3279220163822174,
0.02628510072827339,
0.06089814752340317,
-0.37877312302589417,
0.14563578367233276,
0.25678542256355286,
0.7998135089874268,
-0.07439636439085007,
-0.03237724304199219,
-0.1378636509180069,
-0.09691785275936127,
0.14677532017230988,
0.3137151002883911,
-0.1266002655029297,
0.28385207056999207,
0.1752072125673294,
-0.09331681579351425,
0.1890191286802292,
-0.1494244933128357,
-0.22039014101028442,
0.3022560775279999,
0.16217848658561707,
-0.05722902715206146,
0.05909748747944832,
0.3509073853492737,
-0.3783246874809265,
0.0031324303708970547,
-0.04671826213598251,
-0.33015257120132446,
-0.003901818534359336,
-0.11007363349199295,
-0.16143572330474854,
-0.16131366789340973,
-0.36291131377220154,
0.13279858231544495,
0.03955720737576485,
0.007860838435590267,
0.20772291719913483,
-0.01803496852517128,
-0.3729111850261688,
0.012226186692714691,
-0.3724628686904907,
0.11112890392541885,
-0.3929052948951721,
0.05750875174999237,
-0.12977586686611176,
0.08457816392183304,
0.004242359194904566,
-0.1150626540184021,
0.0015268588904291391,
-0.3098144829273224,
-0.13872691988945007,
0.33974331617355347,
0.1583431512117386,
0.22852811217308044,
0.19510500133037567,
0.15581348538398743,
-0.038502298295497894,
-0.27690649032592773,
0.08776849508285522,
0.04648922383785248,
0.21772146224975586,
-0.0373210534453392,
-0.3309573531150818,
0.3192177712917328,
-0.14946064352989197,
0.13901133835315704,
0.09394451230764389,
-0.1213919147849083,
0.45285239815711975,
-0.1952367126941681,
-0.28175753355026245,
0.12290068715810776,
0.011988524347543716,
0.1260005682706833,
0.20170094072818756,
0.08353907614946365,
-0.460538387298584,
-0.17297008633613586,
0.14627967774868011,
-0.18168003857135773,
-0.0034765591844916344,
0.051988985389471054,
-0.05853816866874695,
-0.05318653583526611,
0.1458415538072586,
0.15037809312343597,
0.40969881415367126,
0.22331002354621887,
0.13762985169887543,
0.2141469269990921,
-0.017146218568086624,
-0.14158552885055542,
0.05543796718120575,
-0.022777214646339417,
0.11094401031732559,
-0.06386628746986389,
-0.2919035851955414,
-0.24698594212532043,
-0.11899387091398239,
-0.06234624981880188,
0.029957594349980354,
0.23356236517429352,
-0.18763981759548187,
0.23123417794704437,
-0.2249925136566162,
-0.24412068724632263,
-0.23444107174873352,
-0.1185712069272995,
0.11154752969741821,
0.20493748784065247,
-0.15993660688400269,
-0.1388338804244995,
-0.12169872969388962,
0.08970221132040024,
0.007007633335888386,
0.17870159447193146,
-0.10821189731359482,
-0.22849628329277039,
0.1359652727842331,
-0.31162065267562866,
-0.41530969738960266,
0.008347572758793831,
0.3807969093322754,
0.24569427967071533,
0.1344301998615265,
-0.4152359068393707,
-0.15260091423988342,
0.3851388990879059,
0.08079473674297333,
0.17030955851078033,
0.2366386502981186,
0.4177156388759613,
-0.0022949152626097202,
0.4468154013156891,
-0.15561340749263763,
-0.06134328618645668,
0.31155917048454285,
0.058851104229688644,
-0.11946398764848709,
-0.013561779633164406,
-0.08807298541069031,
-0.014325976371765137,
-0.15114183723926544,
-0.851255476474762,
-0.6334596872329712,
-0.21014371514320374,
0.3240523338317871,
0.3335137963294983,
0.28995147347450256,
0.2690645754337311,
0.3487977683544159,
0.31454211473464966,
-0.1079900935292244,
0.18393997848033905,
-0.07006442546844482,
-0.656144380569458,
0.2612361013889313,
-0.227452352643013,
-0.3461762070655823,
0.22407792508602142,
-0.04855445772409439,
0.33825433254241943,
-0.31043779850006104,
-0.4571043848991394,
-0.20135058462619781,
-0.07106535881757736,
0.09374438226222992,
-0.18105819821357727,
0.21168571710586548,
0.25885847210884094,
-0.2723754644393921,
-0.058833424001932144,
0.039679691195487976,
0.040440384298563004,
0.32246720790863037,
0.2134728878736496,
-0.006285932380706072,
0.3955478072166443,
0.4657086133956909,
-0.28238922357559204,
0.4909549355506897,
-0.13521479070186615,
-0.05887973681092262,
0.22913306951522827,
-0.12287981063127518,
0.060201868414878845,
-0.15801456570625305,
-0.08537749946117401,
-0.06941940635442734,
0.09336940944194794,
-0.39619994163513184,
0.2484789341688156,
0.16919749975204468,
-0.3091883361339569,
-0.4658646881580353,
-0.4788149297237396,
-0.36705106496810913,
-0.09597297012805939,
0.26457810401916504,
0.02057517133653164,
0.12053599208593369,
-0.08466619998216629,
-0.2391331046819687,
-0.10461972653865814,
0.15496084094047546,
0.0071254028007388115,
0.4453776180744171,
0.14941658079624176,
0.19118967652320862,
-0.5017583966255188,
-0.2629397213459015,
-0.16633373498916626,
0.0994420051574707,
-0.24790099263191223,
0.25195762515068054,
-0.01617520861327648,
-0.1007002517580986,
0.14601916074752808,
0.004523646552115679,
0.42307761311531067,
-0.06036198511719704,
0.17071738839149475,
0.0363345667719841,
-0.197220116853714,
-0.04408896714448929,
0.04593517258763313,
-0.10496628284454346,
0.14316047728061676,
-0.027001984417438507,
0.606401801109314,
0.08330759406089783,
-0.3359896242618561,
0.09136433899402618,
0.21192796528339386,
-0.30591335892677307,
-0.043976761400699615,
-0.36218690872192383,
-0.21264106035232544,
-0.2512966990470886,
0.03674750030040741,
-0.07003563642501831,
-0.0012105305213481188,
0.351846843957901,
-0.04042242467403412,
0.021686291322112083,
0.03699297457933426,
-0.12792542576789856,
0.19775281846523285,
0.15793479979038239,
0.1095939502120018,
-0.15137003362178802,
0.31648382544517517,
0.25925496220588684,
0.016733434051275253,
0.5449087619781494,
-0.04674382135272026,
-0.10961280763149261,
-0.11799675971269608,
-0.011185885407030582,
0.6491321921348572,
0.0015016539255157113,
-0.1544337272644043,
-0.09763248264789581,
0.41725507378578186,
-0.08012251555919647,
-0.16506892442703247,
0.34722280502319336,
-0.1255071610212326,
-0.07692497223615646,
0.11214857548475266,
-0.6469177007675171,
0.4748934209346771,
-0.043927550315856934,
-0.0730186477303505,
0.2882024347782135,
-0.3884675204753876,
-0.10080599784851074,
0.21211425960063934,
0.05909569561481476,
0.8134896159172058,
0.03335746377706528,
0.19716791808605194,
0.055508196353912354,
-0.24517612159252167,
0.046070460230112076,
-0.4619618058204651,
-0.00930272787809372,
0.00293808919377625,
0.16124361753463745,
-0.0751039981842041,
-0.217442125082016,
0.25663700699806213,
0.2670466899871826,
-0.2688126564025879,
0.18193574249744415,
-0.10687872022390366,
0.053467560559511185,
-0.09740646928548813,
0.32437142729759216,
0.3428749740123749,
-0.185310497879982,
-0.3735671043395996,
0.04405435919761658,
-0.08434100449085236,
0.12167248129844666,
-0.09792421758174896,
-0.23121261596679688,
0.06272248178720474,
-0.19188077747821808,
0.6113891005516052,
0.12418574094772339,
-0.25408440828323364,
0.07613050192594528,
0.08863846212625504,
-0.1337617188692093,
-0.3852086067199707,
0.4123329818248749,
0.10243067890405655,
0.11501658707857132,
-0.2677459716796875,
-0.03418833017349243,
-0.22378094494342804,
-0.015444471500813961,
-0.3711472749710083,
-0.0428791381418705,
0.18079443275928497,
-0.22430534660816193,
-0.3251643180847168,
0.05117161571979523,
-0.30331096053123474,
-0.2515760660171509,
0.01201890129595995,
0.017300264909863472,
0.14223085343837738,
0.04467029124498367,
-0.48609334230422974,
0.19740796089172363,
0.05008440837264061,
0.11210032552480698,
0.14779116213321686,
0.2744157910346985,
-0.4298262894153595,
0.07342083752155304,
0.39853858947753906,
-0.4108061194419861,
-0.007486685179173946,
0.31971481442451477,
0.03892629221081734,
0.2434496134519577,
0.4458518922328949,
0.07782528549432755,
0.08716662228107452,
-0.23422871530056,
0.24172493815422058,
0.5168825387954712,
0.05470707267522812,
-0.09880642592906952,
0.14431844651699066,
0.22573460638523102,
-0.02604205161333084,
0.1810663491487503,
0.10509800165891647,
-0.20074592530727386,
-0.13778702914714813,
-0.4303855895996094,
-0.46171000599861145,
0.15708011388778687,
0.11939222365617752,
0.1880943477153778,
0.3091331720352173,
0.00878519844263792,
0.1888037770986557,
0.008066941983997822,
-0.27856552600860596,
0.13353468477725983,
-0.4279065430164337,
0.3117873966693878,
0.08136939257383347,
0.16862095892429352,
0.10733295977115631,
-0.08070939034223557,
0.09801330417394638,
-0.32772591710090637,
-0.1721659153699875,
-0.206376314163208,
-0.031037991866469383,
0.13719965517520905,
0.029015181586146355,
-0.05204284191131592,
0.0060065737925469875,
-0.21387925744056702,
-0.10516525059938431,
0.19377419352531433,
-0.10810612887144089,
-0.22837203741073608,
-0.052022986114025116,
0.33220425248146057,
0.007170557510107756,
0.03362354263663292,
-0.15954796969890594,
-0.009089854545891285,
-0.32784685492515564,
0.08316701650619507,
-0.006564002949744463,
-0.04984531179070473,
-0.0616949237883091,
-0.156700000166893,
0.021835023537278175,
-0.11172947287559509,
0.08422226458787918,
0.0012763763079419732,
0.012031832709908485,
-0.2264372855424881,
0.2103293389081955,
-0.2362060844898224,
0.1215607225894928,
0.19100120663642883,
-0.13459618389606476,
0.40354055166244507,
0.5213237404823303,
0.15730801224708557,
-0.12575064599514008,
-0.15893566608428955,
0.40789392590522766,
-0.1581019163131714,
-0.014240759424865246,
0.05668559670448303,
0.11403301358222961,
0.15028797090053558,
0.01294654980301857,
-0.06652673333883286,
0.13489876687526703,
0.08103407919406891,
0.056508369743824005,
0.3000144362449646,
-0.2890317440032959,
0.02302262745797634,
-0.24249310791492462,
0.46745896339416504,
0.2498481571674347,
0.3675687611103058,
-0.2711755037307739,
0.08851855248212814,
0.1509307324886322,
0.24022966623306274,
-0.2556251883506775,
-0.5581209063529968,
0.025830071419477463,
0.07398932427167892,
-0.25375550985336304,
0.00969628430902958,
-0.11218887567520142,
0.11947732418775558,
0.015929415822029114,
-0.10372672230005264,
0.092784084379673,
0.1385781317949295,
-0.06319334357976913,
-0.256133496761322,
-0.7088009119033813,
-0.04519769549369812,
-0.09464460611343384,
0.042737748473882675,
0.13732071220874786,
-0.11392611265182495,
0.007788403891026974,
0.09512265771627426,
0.05652439966797829,
0.10581274330615997,
0.22045749425888062,
0.04327442869544029,
-0.21280840039253235,
-0.044586729258298874,
0.27219417691230774,
-0.16882199048995972,
0.02059095911681652,
-0.000444405828602612,
-0.059422533959150314,
-0.01860717125236988,
0.3385343849658966,
-0.10256331413984299,
0.09490780532360077,
0.2701542377471924,
-0.23610356450080872,
-0.19046393036842346,
-0.03181672841310501,
0.04578861966729164,
0.3163702189922333,
0.16743618249893188,
0.17003868520259857,
-0.11839589476585388,
0.5580306053161621,
-0.13144025206565857,
-0.06222456693649292,
-0.19642922282218933,
0.0710364580154419,
0.3899373710155487,
-0.10377228260040283,
-0.14898830652236938,
0.1841045767068863,
-0.6802806258201599,
-0.05853497236967087,
0.371224969625473,
0.04396524652838707,
0.0981777012348175,
-0.046278081834316254,
0.059023417532444,
-0.12476342171430588,
0.7835625410079956,
0.08759617805480957,
0.4212256669998169,
-0.34042632579803467,
-0.14094948768615723,
-0.39280596375465393,
-0.04327564314007759,
-0.18322348594665527,
0.033254366368055344,
0.242820605635643,
0.040797293186187744,
0.21199022233486176,
0.522118091583252,
-0.11355925351381302,
-0.07359366863965988,
-0.20890745520591736,
0.1800691932439804,
0.11021275073289871,
-0.18906933069229126,
-0.1641606092453003,
0.5195661187171936,
-0.039792273193597794,
-0.220916748046875,
0.057446643710136414,
-0.15353362262248993,
0.007470022886991501,
-0.016144128516316414,
-0.1233069971203804,
0.0022902132477611303,
0.06416504830121994,
0.5476077795028687,
-0.09579217433929443,
0.3385375738143921,
-0.13602706789970398,
0.2483474165201187,
0.12158673256635666,
0.09807301312685013,
-0.26918357610702515,
-0.008614986203610897,
-0.23825471103191376,
0.033612482249736786,
-0.40112534165382385,
-0.023595167323946953,
-0.4043452739715576,
-0.22162987291812897,
-0.026247680187225342,
-0.16678518056869507,
0.1563258171081543,
-0.09041192382574081,
-0.03311893343925476,
-0.035515639930963516,
0.18229037523269653,
0.09381335228681564,
-0.11040570586919785,
-0.2038424015045166,
-0.23951376974582672,
0.14438769221305847,
0.4357284605503082,
-0.24693211913108826,
-0.07112103700637817,
-0.07298912853002548,
-0.03795284405350685,
0.00962657667696476,
0.08154809474945068,
-0.17499276995658875,
0.2481600046157837,
0.29668667912483215,
-0.08837340772151947,
-0.19688136875629425,
0.4825159013271332,
0.35043221712112427,
0.08683852106332779,
-0.14363980293273926,
0.0646013468503952,
-0.04827551171183586,
-0.04313213750720024,
-0.577915370464325,
-0.47312867641448975
] |
https://github.com/huggingface/datasets/issues/1724 | could not run models on a offline server successfully | Hi @lkcao !
Your issue is indeed related to `datasets`. In addition to installing the package manually, you will need to download the `text.py` script on your server. You'll find it (under `datasets/datasets/text`: https://github.com/huggingface/datasets/blob/master/datasets/text/text.py.
Then you can change the line 221 of `run_mlm_new.py` into:
```python
datasets = load_dataset('/path/to/text.py', data_files=data_files)
```
Where `/path/to/text.py` is the path on the server where you saved the `text.py` script. | Hi, I really need your help about this.
I am trying to fine-tuning a RoBERTa on a remote server, which is strictly banning internet. I try to install all the packages by hand and try to run run_mlm.py on the server. It works well on colab, but when I try to run it on this offline server, it shows:

is there anything I can do? Is it possible to download all the things in cache and upload it to the server? Please help me out... | 64 | could not run models on a offline server successfully
Hi, I really need your help about this.
I am trying to fine-tuning a RoBERTa on a remote server, which is strictly banning internet. I try to install all the packages by hand and try to run run_mlm.py on the server. It works well on colab, but when I try to run it on this offline server, it shows:

is there anything I can do? Is it possible to download all the things in cache and upload it to the server? Please help me out...
Hi @lkcao !
Your issue is indeed related to `datasets`. In addition to installing the package manually, you will need to download the `text.py` script on your server. You'll find it (under `datasets/datasets/text`: https://github.com/huggingface/datasets/blob/master/datasets/text/text.py.
Then you can change the line 221 of `run_mlm_new.py` into:
```python
datasets = load_dataset('/path/to/text.py', data_files=data_files)
```
Where `/path/to/text.py` is the path on the server where you saved the `text.py` script. | [
-0.056893933564424515,
0.04477875307202339,
-0.033175062388181686,
0.3332999646663666,
0.3864118754863739,
-0.004595366306602955,
0.4649330675601959,
0.26927199959754944,
-0.1353350132703781,
0.0317712128162384,
0.19227038323879242,
0.1354355663061142,
-0.19810806214809418,
0.27569395303726196,
0.029139261692762375,
-0.2823958694934845,
-0.06425793468952179,
0.15135833621025085,
-0.1609160602092743,
-0.22646363079547882,
0.13867516815662384,
-0.03047732450067997,
-0.08095904439687729,
0.23653288185596466,
-0.1869857907295227,
-0.46197080612182617,
0.022512106224894524,
0.2390139102935791,
-0.5007814764976501,
-0.22149942815303802,
0.1716638207435608,
-0.20949392020702362,
0.4189845621585846,
0.3880802094936371,
-0.00012106133362976834,
0.09530145674943924,
-0.004567161202430725,
-0.15956705808639526,
-0.2970445454120636,
-0.21031554043293,
0.22375157475471497,
-0.21770520508289337,
0.22774529457092285,
-0.33314603567123413,
0.1763511449098587,
0.23506920039653778,
0.04994921013712883,
-0.2093145102262497,
0.1599951982498169,
0.22052384912967682,
0.11109970510005951,
0.36544832587242126,
0.00415198877453804,
-0.05299226939678192,
-0.14168483018875122,
0.03365195170044899,
-0.2613529860973358,
0.33679983019828796,
-0.24960224330425262,
-0.1932770013809204,
0.3615838587284088,
0.2267211228609085,
-0.384645938873291,
0.2377173900604248,
0.1071205884218216,
-0.005932403262704611,
0.1734904944896698,
-0.23601002991199493,
0.2626619338989258,
0.4554600119590759,
0.13337786495685577,
0.060280606150627136,
-0.11966835707426071,
-0.17013481259346008,
0.11855729669332504,
-0.3823782503604889,
0.18550090491771698,
0.4157034158706665,
-0.18654823303222656,
0.2766377627849579,
-0.4178330600261688,
-0.2676379978656769,
-0.24417449533939362,
0.13262706995010376,
0.10153600573539734,
0.295436292886734,
-0.14058801531791687,
0.12405760586261749,
0.027160344645380974,
-0.010755212977528572,
-0.21504074335098267,
-0.07047015428543091,
0.04583136737346649,
-0.09303774684667587,
-0.11459103971719742,
0.082411989569664,
-0.052719779312610626,
0.41197890043258667,
-0.015819836407899857,
0.1477680802345276,
0.10829974710941315,
-0.10338403284549713,
0.04691946506500244,
0.08572440594434738,
0.022665252909064293,
0.2896153926849365,
-0.08096176385879517,
-0.07617707550525665,
0.3698168694972992,
0.4719710946083069,
-0.174923837184906,
-0.10067307204008102,
-0.17151500284671783,
-0.04306827485561371,
-0.36747580766677856,
-0.12043632566928864,
0.1936536282300949,
-0.2874997556209564,
0.06687457114458084,
-0.08990136533975601,
-0.05074084550142288,
0.055126070976257324,
0.046324919909238815,
0.2603747546672821,
-0.26191774010658264,
-0.030093373730778694,
0.06081694737076759,
0.17933933436870575,
-0.28961020708084106,
-0.513176441192627,
0.14656782150268555,
-0.11786240339279175,
-0.22100314497947693,
0.11166553944349289,
0.16933998465538025,
-0.18912775814533234,
0.3809360861778259,
-0.23273847997188568,
0.2336418330669403,
-0.10928572714328766,
0.1384674608707428,
-0.38323163986206055,
0.09962057322263718,
0.38304731249809265,
0.151609867811203,
0.021222330629825592,
0.3603969216346741,
0.029300987720489502,
0.16177517175674438,
0.11892125755548477,
-0.012712509371340275,
-0.42488595843315125,
0.31300589442253113,
0.016875801607966423,
-0.22120177745819092,
-0.2422116994857788,
-0.3803574740886688,
0.11524979025125504,
0.06942601501941681,
-0.20000599324703217,
0.07429728657007217,
0.11825807392597198,
-0.1640276461839676,
-0.10233238339424133,
0.5407952070236206,
0.5818745493888855,
-0.602181613445282,
0.2777576148509979,
-0.29725807905197144,
0.09027300029993057,
0.2060282677412033,
0.2522560954093933,
-0.20694147050380707,
0.5162286162376404,
-0.1943638026714325,
-0.2867467403411865,
0.24680423736572266,
0.0532551147043705,
-0.08084246516227722,
0.2691391706466675,
-0.15033216774463654,
-0.2583180367946625,
0.06462275236845016,
-0.18967178463935852,
0.3683044910430908,
0.3258492648601532,
-0.15607573091983795,
0.1533566415309906,
-0.07513007521629333,
-0.14700263738632202,
-0.29015350341796875,
-0.43897780776023865,
0.17680245637893677,
0.22346359491348267,
0.26039913296699524,
0.2487621158361435,
-0.006258317269384861,
-0.44771113991737366,
0.08631975203752518,
0.029873868450522423,
-0.02396373450756073,
0.043470077216625214,
0.20156651735305786,
0.45068496465682983,
-0.07051260769367218,
-0.058330390602350235,
-0.11009716242551804,
0.24619853496551514,
-0.06673016399145126,
0.5235769152641296,
-0.3406287431716919,
0.2355116754770279,
0.02315140888094902,
-0.07209804654121399,
-0.12168154120445251,
0.07676120102405548,
-0.009662112221121788,
-0.1745711863040924,
0.019608518108725548,
0.12608447670936584,
-0.2361009418964386,
0.09866461902856827,
0.04955713450908661,
0.14811716973781586,
-0.15256303548812866,
0.27868175506591797,
-0.2784128487110138,
-0.10173477232456207,
-0.17764367163181305,
-0.27534961700439453,
0.12795154750347137,
-0.08990231156349182,
-0.19172723591327667,
0.3155953288078308,
-0.2771887183189392,
-0.03551975637674332,
0.44650840759277344,
0.13243620097637177,
0.14146508276462555,
-0.02056112512946129,
0.5296023488044739,
0.22416764497756958,
0.17209506034851074,
0.19477076828479767,
-0.0503624752163887,
0.5095844268798828,
0.06263981014490128,
0.40322986245155334,
0.0088893361389637,
0.20835885405540466,
0.31234079599380493,
0.12541230022907257,
-0.0796351432800293,
-0.14439702033996582,
0.31252411007881165,
0.48564767837524414,
0.029794201254844666,
-0.33270663022994995,
-0.17427967488765717,
-0.11182114481925964,
0.17975068092346191,
0.14338994026184082,
0.3035909831523895,
-0.1278378814458847,
-0.1522689312696457,
0.1776326298713684,
0.06332608312368393,
0.15377555787563324,
0.27488747239112854,
0.09919685870409012,
-0.22303375601768494,
0.3310137987136841,
-0.11837823688983917,
-0.19563104212284088,
0.3147284984588623,
0.29748234152793884,
0.39868199825286865,
-0.03639513999223709,
0.07838980108499527,
-0.2259509265422821,
-0.3413809537887573,
-0.2408803403377533,
0.09903503209352493,
0.2719106078147888,
-0.15914218127727509,
0.36081984639167786,
-0.5341258645057678,
0.10254057496786118,
-0.19606660306453705,
0.06320837885141373,
-0.7216090559959412,
0.1818990260362625,
0.075007364153862,
-0.07770496606826782,
-0.0632224902510643,
0.23510850965976715,
-0.051908228546381,
0.3830912411212921,
-0.1081383004784584,
-0.159970223903656,
0.11407044529914856,
-0.28537794947624207,
-0.34276485443115234,
-0.08761174231767654,
0.24085573852062225,
0.14333592355251312,
0.33947914838790894,
-0.03416159749031067,
-0.29274821281433105,
0.11272839456796646,
-0.24757787585258484,
0.024004338309168816,
0.11493851244449615,
0.08865567296743393,
0.19493959844112396,
0.42218464612960815,
-0.09213212877511978,
0.25114142894744873,
0.4791584312915802,
-0.35821226239204407,
0.15563100576400757,
-0.14050140976905823,
-0.1662369966506958,
0.10404179990291595,
-0.2029569000005722,
-0.42614421248435974,
-0.42142900824546814,
-0.1522214412689209,
0.31046992540359497,
0.3258917033672333,
0.16975705325603485,
0.05767256021499634,
0.3748372495174408,
-0.08348024636507034,
-0.2663262188434601,
0.169447124004364,
0.04551059380173683,
-0.6586931347846985,
0.2608664929866791,
0.051181159913539886,
-0.22681422531604767,
0.3487376272678375,
0.2339995801448822,
-0.11566486954689026,
-0.08689860999584198,
-0.576263964176178,
-0.060054972767829895,
0.23354710638523102,
0.1256030946969986,
0.1397915482521057,
0.1781141459941864,
0.49776431918144226,
-0.10752959549427032,
0.06005368009209633,
-0.10685080289840698,
-0.2000724822282791,
0.19693775475025177,
-0.1299939900636673,
0.16762666404247284,
-0.012115804478526115,
0.7902726531028748,
0.009234723635017872,
0.3142918050289154,
-0.290305495262146,
0.00841827504336834,
0.21282576024532318,
-0.08712448924779892,
0.3944883644580841,
-0.16267161071300507,
-0.124703548848629,
-0.05465846508741379,
-0.07177790254354477,
-0.5755215883255005,
0.2132692188024521,
0.07284487038850784,
-0.031192803755402565,
-0.4914730191230774,
0.030376965180039406,
0.044148851186037064,
-0.14808598160743713,
0.07711632549762726,
0.1659269481897354,
0.30327534675598145,
0.2989174723625183,
0.15412402153015137,
-0.28257042169570923,
0.13776463270187378,
0.09481150656938553,
0.289438933134079,
0.020442195236682892,
0.12121620774269104,
-0.45985275506973267,
-0.22578927874565125,
0.12098537385463715,
0.13042964041233063,
-0.18285749852657318,
0.3186515271663666,
-0.15150512754917145,
0.04595637694001198,
0.25589558482170105,
-0.03974755108356476,
0.3702268600463867,
-0.10339214652776718,
-0.05666356533765793,
-0.038997892290353775,
-0.0555194616317749,
-0.2080426812171936,
-0.31523293256759644,
0.05629468336701393,
0.056393250823020935,
0.35405993461608887,
0.1808842271566391,
-0.06487855315208435,
0.10829634964466095,
0.0892375260591507,
0.1999562531709671,
-0.33220526576042175,
-0.1189403086900711,
-0.6464843153953552,
-0.16520513594150543,
-0.4019235372543335,
-0.006454944144934416,
-0.32501837611198425,
-0.08301864564418793,
-0.054829396307468414,
0.2132728397846222,
0.09392140805721283,
0.28198015689849854,
-0.2759360074996948,
0.2893926501274109,
0.1434934139251709,
-0.3002433478832245,
-0.028837261721491814,
0.36910703778266907,
0.3564683794975281,
0.3488224446773529,
0.300600528717041,
-0.3558167815208435,
0.0463295616209507,
0.07484225928783417,
0.035796016454696655,
0.05126462131738663,
0.3899359107017517,
-0.11187262088060379,
-0.2598861753940582,
0.5852512717247009,
0.2602333724498749,
-0.02520894631743431,
-0.15559551119804382,
0.015227493830025196,
-0.09606403112411499,
0.13735486567020416,
-0.4063614308834076,
0.35234054923057556,
-0.12273767590522766,
0.15768231451511383,
-0.44034653902053833,
0.20643414556980133,
-0.033590469509363174,
0.37935465574264526,
-0.062540702521801,
1.107408881187439,
-0.00925396103411913,
0.14463461935520172,
0.06919995695352554,
-0.005933012347668409,
0.4799916446208954,
-0.5333250164985657,
0.25356191396713257,
-0.12944383919239044,
-0.00462122680619359,
-0.046191319823265076,
-0.005067761056125164,
0.33999258279800415,
0.2836652100086212,
-0.09603733569383621,
0.4485306739807129,
-0.07013674080371857,
0.16496098041534424,
-0.025547252967953682,
-0.20199592411518097,
0.3052365779876709,
-0.31060314178466797,
-0.9818567633628845,
0.04787140339612961,
0.14627885818481445,
0.13323162496089935,
-0.38025426864624023,
-0.2694806754589081,
0.06877236813306808,
-0.020563451573252678,
-0.027057811617851257,
-0.10348863899707794,
-0.4376794397830963,
0.051595382392406464,
-0.14944396913051605,
0.036810893565416336,
-0.07216060161590576,
0.029430145397782326,
0.41053348779678345,
0.2096693366765976,
-0.18132610619068146,
-0.08831796795129776,
0.0033522744197398424,
-0.36266547441482544,
-0.12182307243347168,
0.2802730202674866,
-0.05626320093870163,
-0.2747868299484253,
-0.31988370418548584,
-0.22768287360668182,
-0.23106245696544647,
-0.02661440707743168,
0.3604474365711212,
-0.278683066368103,
0.13381342589855194,
0.06802882254123688,
0.03526655584573746,
-0.015546208247542381,
0.2715950906276703,
-0.1527603566646576,
0.030909396708011627,
0.15016503632068634,
-0.1381303071975708,
0.20897875726222992,
0.19093148410320282,
-0.03909699246287346,
-0.21222729980945587,
0.3643256425857544,
-0.0944560095667839,
0.21751169860363007,
0.3239700496196747,
0.3774919807910919,
-0.2118941694498062,
-0.20473803579807281,
0.20062129199504852,
-0.3164900541305542,
-0.3938564360141754,
0.19926485419273376,
0.1818440705537796,
0.11458442360162735,
-0.13658246397972107,
0.005497039295732975,
0.23341482877731323,
-0.08531700819730759,
-0.13762976229190826,
-0.505522608757019,
-0.42264869809150696,
0.10154499113559723,
0.05012892559170723,
-0.23507051169872284,
0.3599441349506378,
0.11214203387498856,
0.25102514028549194,
-0.12648792564868927,
-0.18073798716068268,
0.09409026056528091,
-0.12206807732582092,
0.02050268091261387,
0.334677129983902,
-0.08947139233350754,
0.29070109128952026,
0.1360315978527069,
-0.029491286724805832,
0.006373908370733261,
-0.1348230540752411,
-0.07216614484786987,
0.02194434031844139,
0.25431519746780396,
0.11801805347204208,
-0.46393734216690063,
-0.10803177207708359,
-0.4621662497520447,
-0.4484284222126007,
-0.0026298831216990948,
-0.1175839751958847,
0.038451340049505234,
0.049553804099559784,
-0.1855059415102005,
0.18310102820396423,
0.17894603312015533,
-0.4746147394180298,
0.06175084039568901,
-0.03899241238832474,
0.15639786422252655,
0.2187204360961914,
-0.07390088587999344,
0.058333225548267365,
0.001517755095846951,
-0.12950614094734192,
-0.09234075993299484,
-0.029377995058894157,
0.19431400299072266,
0.6456201076507568,
-0.3700989782810211,
0.24254058301448822,
0.21511150896549225,
0.27194783091545105,
0.2969447672367096,
0.1480139046907425,
-0.034149814397096634,
0.4043135643005371,
0.06080605462193489,
-0.5158955454826355,
0.031103970482945442,
0.2101081758737564,
-0.047131381928920746,
0.014956808649003506,
0.19869913160800934,
0.24710600078105927,
0.09875695407390594,
-0.19067074358463287,
0.1931794434785843,
0.308599591255188,
0.011504379101097584,
0.08930540829896927,
-0.05433747544884682,
-0.09266463667154312,
0.18706144392490387,
-0.09171755611896515,
0.033402614295482635,
0.04983760789036751,
0.37001433968544006,
-0.23569177091121674,
0.08717148005962372,
0.05231592059135437,
-0.16697584092617035,
-0.029513198882341385,
-0.3545897603034973,
0.03488177806138992,
0.28105416893959045,
0.4033106863498688,
-0.11780957877635956,
-0.44761642813682556,
0.2899417281150818,
-0.3564798831939697,
-0.16964134573936462,
-0.2801989018917084,
0.18349741399288177,
-0.005184562876820564,
0.037813909351825714,
-0.4128584563732147,
-0.15913040935993195,
-0.034888412803411484,
0.21301108598709106,
0.18067441880702972,
0.06130039691925049,
0.24496300518512726,
0.33686134219169617,
-0.15662087500095367,
-0.4440952241420746,
-0.4630816578865051,
0.2363450527191162,
-0.03688346967101097,
0.016452910378575325,
0.09762033075094223,
0.42173677682876587,
-0.2259598970413208,
-0.0861215740442276,
0.12882541120052338,
0.329729288816452,
0.09207883477210999,
-0.02997533604502678,
0.03658396378159523,
-0.008436111733317375,
0.1087549552321434,
-0.09681855142116547,
-0.2302807718515396,
0.4081572890281677,
0.44816285371780396,
-0.09406420588493347,
-0.05318358913064003,
-0.04695778340101242,
0.535156786441803,
-0.17245811223983765,
0.14498955011367798,
-0.011190389283001423,
0.13820797204971313,
0.16812030971050262,
-0.15730561316013336,
-0.44432923197746277,
-0.07262798398733139,
-0.33605465292930603,
0.3278774917125702,
0.4997358024120331,
0.044153667986392975,
-0.14084529876708984,
-0.17662058770656586,
-0.024136973544955254,
-0.1380176693201065,
0.6954711675643921,
0.21963566541671753,
0.018985092639923096,
-0.2244930863380432,
-0.059395838528871536,
-0.3687848150730133,
-0.1776570826768875,
-0.32885652780532837,
-0.0072521064430475235,
-0.09826668351888657,
0.05504502356052399,
0.35389047861099243,
0.1690913289785385,
0.23307906091213226,
-0.2691384553909302,
0.01780872419476509,
0.09218914806842804,
-0.1448839008808136,
-0.07356870174407959,
-0.3350902795791626,
0.21414923667907715,
0.04458226263523102,
-0.19820591807365417,
0.09028799086809158,
-0.24453411996364594,
-0.07797665894031525,
-0.06334929913282394,
0.0008508519968017936,
-0.3760928511619568,
0.09046415239572525,
0.2897030711174011,
0.07290071994066238,
0.4466966986656189,
0.39027169346809387,
-0.30105170607566833,
-0.29462605714797974,
0.1509021371603012,
-0.22588112950325012,
0.17172639071941376,
0.2802491784095764,
0.3936600387096405,
-0.20180948078632355,
0.06588355451822281,
-0.5258011817932129,
0.2210106998682022,
0.1593196988105774,
-0.1110808476805687,
-0.20127664506435394,
-0.3043135404586792,
0.22398141026496887,
0.0633028894662857,
0.19596067070960999,
0.04391741007566452,
0.06895425915718079,
0.0123972212895751,
-0.5844636559486389,
0.12275132536888123,
0.4918976426124573,
-0.2912527024745941,
-0.15941926836967468,
-0.5328429341316223,
0.24307695031166077,
0.011793296784162521,
0.07759861648082733,
-0.770425021648407,
0.03683898597955704,
0.09503529965877533,
0.07393452525138855,
-0.14356155693531036,
0.22383753955364227,
0.05009825527667999,
-0.06028905510902405,
0.014288817532360554,
0.24761708080768585,
-0.4136193096637726,
-0.41476356983184814,
-0.34149107336997986,
-0.03287249803543091
] |
https://github.com/huggingface/datasets/issues/1724 | could not run models on a offline server successfully | We're working on including the local dataset builders (csv, text, json etc.) directly in the `datasets` package so that they can be used offline | Hi, I really need your help about this.
I am trying to fine-tuning a RoBERTa on a remote server, which is strictly banning internet. I try to install all the packages by hand and try to run run_mlm.py on the server. It works well on colab, but when I try to run it on this offline server, it shows:

is there anything I can do? Is it possible to download all the things in cache and upload it to the server? Please help me out... | 24 | could not run models on a offline server successfully
Hi, I really need your help about this.
I am trying to fine-tuning a RoBERTa on a remote server, which is strictly banning internet. I try to install all the packages by hand and try to run run_mlm.py on the server. It works well on colab, but when I try to run it on this offline server, it shows:

is there anything I can do? Is it possible to download all the things in cache and upload it to the server? Please help me out...
We're working on including the local dataset builders (csv, text, json etc.) directly in the `datasets` package so that they can be used offline | [
-0.10603661090135574,
0.09221522510051727,
-0.046883586794137955,
0.3895357847213745,
0.38657817244529724,
0.005909349769353867,
0.43418580293655396,
0.30958470702171326,
-0.13312503695487976,
0.08171993494033813,
0.24256476759910583,
0.16543667018413544,
-0.22832155227661133,
0.14973919093608856,
-0.017087705433368683,
-0.29909762740135193,
-0.059258900582790375,
0.18289798498153687,
-0.19745008647441864,
-0.24299843609333038,
0.12698328495025635,
-0.05812889710068703,
-0.044166989624500275,
0.23018524050712585,
-0.21554823219776154,
-0.42567116022109985,
0.04234839975833893,
0.1900559514760971,
-0.5258663892745972,
-0.149234339594841,
0.17435574531555176,
-0.2595252990722656,
0.4095988869667053,
0.2606844902038574,
-0.00012327948934398592,
0.15777842700481415,
-0.026151297613978386,
-0.1618657112121582,
-0.18892042338848114,
-0.16803283989429474,
0.2139279693365097,
-0.15001651644706726,
0.2031966745853424,
-0.34308475255966187,
0.1663934737443924,
0.2027682214975357,
0.08825155347585678,
-0.2262532263994217,
0.1819860339164734,
0.2225346565246582,
0.08115290105342865,
0.3456414043903351,
-0.008061770349740982,
-0.05168645828962326,
-0.08946987241506577,
-0.027026131749153137,
-0.2824190557003021,
0.35965967178344727,
-0.19250501692295074,
-0.1691601723432541,
0.395968496799469,
0.26007968187332153,
-0.39265286922454834,
0.27298349142074585,
0.07244681566953659,
-0.02298552542924881,
0.2645564377307892,
-0.2598527669906616,
0.35178110003471375,
0.41916483640670776,
0.12688976526260376,
0.14977656304836273,
-0.03865990787744522,
-0.07042849063873291,
0.1231045052409172,
-0.3096103370189667,
0.18177258968353271,
0.5108626484870911,
-0.24658679962158203,
0.33635687828063965,
-0.48334449529647827,
-0.2510814070701599,
-0.31495702266693115,
0.10096298903226852,
0.06261632591485977,
0.35045427083969116,
-0.0984807088971138,
0.1237141564488411,
0.0024207180831581354,
0.05378466099500656,
-0.1307031661272049,
-0.11266398429870605,
0.05073720961809158,
-0.09922504425048828,
0.006535576190799475,
0.10168220847845078,
-0.06495808064937592,
0.46365249156951904,
-0.0791182816028595,
0.15698814392089844,
0.0828811302781105,
-0.10055840015411377,
0.13953711092472076,
0.1461668610572815,
0.004267996177077293,
0.2160399854183197,
-0.09779659658670425,
-0.08208420127630234,
0.3264080882072449,
0.3431951403617859,
-0.2357829213142395,
-0.12777498364448547,
-0.201137512922287,
-0.005039092153310776,
-0.3550642430782318,
-0.12340410053730011,
0.08343837410211563,
-0.2681816816329956,
0.12479463964700699,
-0.03645006939768791,
-0.08263491094112396,
0.07571826130151749,
-0.016459859907627106,
0.22627295553684235,
-0.24331723153591156,
-0.13617990911006927,
0.005148343276232481,
0.12214910238981247,
-0.2628839612007141,
-0.5288697481155396,
0.16478118300437927,
-0.11305148154497147,
-0.2026744931936264,
0.000278408988378942,
0.1247885599732399,
-0.13367439806461334,
0.34751182794570923,
-0.27600008249282837,
0.22436721622943878,
-0.07590239495038986,
0.23802904784679413,
-0.42240047454833984,
0.20491164922714233,
0.48136720061302185,
0.07587482780218124,
-0.08118831366300583,
0.3487046957015991,
-0.01941782608628273,
0.14536111056804657,
0.17221462726593018,
0.039387211203575134,
-0.45636674761772156,
0.28074967861175537,
0.0020649658981710672,
-0.20782773196697235,
-0.16811154782772064,
-0.25024038553237915,
0.09990094602108002,
0.036176279187202454,
-0.18313856422901154,
0.054417166858911514,
0.13221804797649384,
-0.10894238203763962,
-0.05220198258757591,
0.5060935616493225,
0.49590522050857544,
-0.6791664361953735,
0.33873438835144043,
-0.31621721386909485,
0.10192208737134933,
0.2148045152425766,
0.2621174156665802,
-0.22648406028747559,
0.6079883575439453,
-0.23532938957214355,
-0.38911324739456177,
0.26550060510635376,
0.04331629350781441,
-0.055142417550086975,
0.3054029941558838,
-0.1246068999171257,
-0.36385077238082886,
0.05187385156750679,
-0.14354944229125977,
0.33617326617240906,
0.38025328516960144,
-0.18065527081489563,
0.1694301962852478,
-0.13150444626808167,
-0.18062619864940643,
-0.2857103943824768,
-0.45044201612472534,
0.17949019372463226,
0.23460665345191956,
0.3742855489253998,
0.26418936252593994,
0.0125568313524127,
-0.503822386264801,
0.028028881177306175,
0.03637106716632843,
-0.029347633942961693,
-0.043917737901210785,
0.1664087027311325,
0.3082426190376282,
-0.0919732004404068,
-0.06447479128837585,
-0.1127602607011795,
0.19638483226299286,
-0.1144929751753807,
0.5098644495010376,
-0.3852117657661438,
0.26727747917175293,
0.057112760841846466,
-0.00799220334738493,
-0.12965448200702667,
0.07686315476894379,
-0.025872917845845222,
-0.21264103055000305,
0.01615227572619915,
0.11042850464582443,
-0.2051451951265335,
0.05217469856142998,
0.05271217226982117,
0.12148633599281311,
-0.06953275203704834,
0.29519593715667725,
-0.2672990560531616,
-0.10248719155788422,
-0.21097370982170105,
-0.2992352843284607,
0.06341267377138138,
-0.07165525108575821,
-0.18672330677509308,
0.23574496805667877,
-0.21272796392440796,
-0.08058344572782516,
0.4685864746570587,
0.13208383321762085,
0.12546245753765106,
-0.09212974458932877,
0.48632293939590454,
0.20748169720172882,
0.09906180202960968,
0.17516210675239563,
-0.14441148936748505,
0.5445824861526489,
0.10180052369832993,
0.42483389377593994,
0.000019997420167783275,
0.209905743598938,
0.3192689120769501,
0.09318725764751434,
-0.052762046456336975,
-0.1990206092596054,
0.24919341504573822,
0.5976507067680359,
0.04513163864612579,
-0.2945418655872345,
-0.1576211005449295,
-0.1352258324623108,
0.1207931712269783,
0.17144973576068878,
0.22627098858356476,
-0.2169032245874405,
-0.08065886050462723,
0.14905448257923126,
0.16721822321414948,
0.1669873148202896,
0.2008853405714035,
0.11798728257417679,
-0.2305525243282318,
0.30157485604286194,
-0.16425730288028717,
-0.20378965139389038,
0.2730618715286255,
0.29576563835144043,
0.3667023181915283,
0.022805670276284218,
0.016117041930556297,
-0.25699469447135925,
-0.3741300404071808,
-0.24415965378284454,
0.08415225148200989,
0.22698763012886047,
-0.050148457288742065,
0.3766278028488159,
-0.5777349472045898,
0.07651695609092712,
-0.18497511744499207,
0.12367644906044006,
-0.7295868396759033,
0.20353972911834717,
0.1181027740240097,
-0.14632149040699005,
-0.11824778467416763,
0.22642457485198975,
-0.04537041112780571,
0.4255087375640869,
-0.15491411089897156,
-0.14088791608810425,
0.120485320687294,
-0.31055590510368347,
-0.3584546744823456,
-0.07287317514419556,
0.29518014192581177,
0.11457881331443787,
0.43694907426834106,
-0.0718577578663826,
-0.2679242491722107,
0.1672138273715973,
-0.23442502319812775,
0.0772111713886261,
0.2278919816017151,
0.12818793952465057,
0.1719549149274826,
0.33199211955070496,
-0.1141425296664238,
0.2252655029296875,
0.49167418479919434,
-0.25789040327072144,
0.21106500923633575,
-0.17133472859859467,
-0.16529995203018188,
0.07249677181243896,
-0.22084122896194458,
-0.34867098927497864,
-0.39329856634140015,
-0.1253816783428192,
0.22653229534626007,
0.35373637080192566,
0.15892143547534943,
-0.04451015591621399,
0.4573683440685272,
-0.09290578961372375,
-0.2593954801559448,
0.14913097023963928,
0.10314036160707474,
-0.7283959984779358,
0.2829962372779846,
0.034937888383865356,
-0.22152382135391235,
0.3270796835422516,
0.18208977580070496,
-0.03183550760149956,
-0.09480863064527512,
-0.5988151431083679,
0.009707416407763958,
0.24861831963062286,
0.10190854221582413,
0.15712659060955048,
0.11139936000108719,
0.509756863117218,
-0.14246819913387299,
0.06749016046524048,
-0.11661430448293686,
-0.1063203290104866,
0.19101060926914215,
-0.1679159700870514,
0.18070189654827118,
-0.04886358976364136,
0.6888200640678406,
0.0007349418592639267,
0.3086833655834198,
-0.39059606194496155,
0.016634730622172356,
0.17128296196460724,
-0.029993366450071335,
0.4084724187850952,
-0.1971960961818695,
-0.04396887496113777,
0.014222175814211369,
0.03478582203388214,
-0.73973548412323,
0.18260550498962402,
0.0957733765244484,
-0.07428210973739624,
-0.47230616211891174,
0.1330203264951706,
0.08960261940956116,
-0.11515970528125763,
0.09158436208963394,
0.1975879669189453,
0.28868111968040466,
0.30316340923309326,
0.14006568491458893,
-0.2730112373828888,
0.16310900449752808,
0.1285754144191742,
0.27711910009384155,
0.018932240083813667,
0.10966081917285919,
-0.49631622433662415,
-0.33201906085014343,
0.20836767554283142,
0.0710555762052536,
-0.14943020045757294,
0.22026680409908295,
-0.14202891290187836,
0.049866609275341034,
0.28503167629241943,
-0.07577791064977646,
0.2722775340080261,
-0.16470646858215332,
-0.013476775027811527,
0.07755205035209656,
-0.023991122841835022,
-0.18550768494606018,
-0.3541507124900818,
0.14250235259532928,
0.004003982525318861,
0.33864304423332214,
0.16482575237751007,
0.032647259533405304,
0.11597564071416855,
0.06809120625257492,
0.13143819570541382,
-0.36294499039649963,
-0.15772825479507446,
-0.6153281331062317,
-0.08345501124858856,
-0.3465622663497925,
-0.013314491137862206,
-0.3082723617553711,
-0.1270846277475357,
-0.0039520361460745335,
0.13009703159332275,
0.06823862344026566,
0.31793245673179626,
-0.311803936958313,
0.27898186445236206,
0.11376673728227615,
-0.35390931367874146,
-0.08152130991220474,
0.3305838108062744,
0.3893926441669464,
0.3283677399158478,
0.2185274362564087,
-0.3805771470069885,
0.16859975457191467,
0.09591696411371231,
-0.057903166860342026,
0.06897787749767303,
0.3452140688896179,
-0.07019975036382675,
-0.404064804315567,
0.5173205137252808,
0.2632915675640106,
-0.033014263957738876,
-0.0983416959643364,
-0.029549961909651756,
-0.19798533618450165,
0.25814729928970337,
-0.34644079208374023,
0.33850187063217163,
-0.13651809096336365,
0.13398979604244232,
-0.4609636962413788,
0.12613806128501892,
0.00395580381155014,
0.42264434695243835,
0.11080575734376907,
1.1008739471435547,
-0.030226560309529305,
0.15130268037319183,
-0.030516039580106735,
-0.08311505615711212,
0.4423339068889618,
-0.5608241558074951,
0.2042628824710846,
-0.06276743859052658,
0.09945898503065109,
-0.06654629111289978,
-0.0084092291072011,
0.39090439677238464,
0.3260173797607422,
-0.04311424121260643,
0.2976323664188385,
-0.11207416653633118,
0.23293763399124146,
-0.029206544160842896,
-0.29551008343696594,
0.33638763427734375,
-0.270841509103775,
-0.9013375043869019,
0.04465670511126518,
0.2037184089422226,
0.054089635610580444,
-0.4390065670013428,
-0.26034459471702576,
0.15098898112773895,
0.07317373901605606,
-0.009402946569025517,
-0.1440804898738861,
-0.38198819756507874,
0.0011636674171313643,
-0.14840689301490784,
0.08726273477077484,
-0.16684147715568542,
0.1029595285654068,
0.3616218864917755,
0.22911638021469116,
-0.19450287520885468,
-0.09273059666156769,
0.02613268420100212,
-0.3629097640514374,
-0.12933236360549927,
0.2659461200237274,
-0.08407331258058548,
-0.30294516682624817,
-0.23416078090667725,
-0.23723852634429932,
-0.26146936416625977,
-0.006025433540344238,
0.3813212513923645,
-0.25964754819869995,
0.15718859434127808,
0.157490074634552,
0.04799599573016167,
0.0001249625056516379,
0.2620930075645447,
-0.08747076988220215,
0.024128522723913193,
0.11280405521392822,
-0.12450915575027466,
0.2401936650276184,
0.15567156672477722,
-0.07316964119672775,
-0.17268013954162598,
0.3328465223312378,
-0.058785371482372284,
0.21051067113876343,
0.2397669404745102,
0.3009370267391205,
-0.18430811166763306,
-0.2276006042957306,
0.24280579388141632,
-0.29064881801605225,
-0.3334823548793793,
0.21157802641391754,
0.13713447749614716,
0.08888932317495346,
-0.158015638589859,
-0.029570983722805977,
0.30035337805747986,
-0.1638624370098114,
-0.1792955845594406,
-0.48800066113471985,
-0.5016859769821167,
0.07502464950084686,
0.053312111645936966,
-0.24108920991420746,
0.23875950276851654,
0.12362892180681229,
0.3061272203922272,
-0.09186951071023941,
-0.16142353415489197,
0.08257725089788437,
-0.13902853429317474,
0.07276494801044464,
0.23254550993442535,
-0.011685377918183804,
0.18082383275032043,
0.1404036283493042,
-0.05361282080411911,
0.005633753724396229,
-0.21289019286632538,
-0.0784870907664299,
0.00087827438255772,
0.26170819997787476,
0.18030083179473877,
-0.4546941816806793,
-0.08955554664134979,
-0.494113951921463,
-0.40252283215522766,
0.06438901275396347,
-0.1324830949306488,
-0.045348018407821655,
0.015240502543747425,
-0.18266843259334564,
0.27459055185317993,
0.2082017958164215,
-0.4284769594669342,
0.03575483337044716,
0.030566968023777008,
0.33809664845466614,
0.1776772290468216,
-0.1456727385520935,
0.10343917459249496,
-0.051571037620306015,
0.055282700806856155,
-0.088270403444767,
-0.15820643305778503,
0.19315055012702942,
0.7184300422668457,
-0.3177257776260376,
0.33025407791137695,
0.18193189799785614,
0.24215468764305115,
0.2712647020816803,
0.15152780711650848,
-0.05397212132811546,
0.4231823980808258,
0.05050908401608467,
-0.4565158486366272,
-0.019525006413459778,
0.17282624542713165,
0.009872986935079098,
-0.009175148792564869,
0.12255232036113739,
0.2617374360561371,
0.09807141870260239,
-0.15155811607837677,
0.19952495396137238,
0.2672561705112457,
-0.05353172495961189,
-0.017535626888275146,
-0.03523091599345207,
-0.11840327084064484,
0.23474866151809692,
-0.15254031121730804,
0.00719646830111742,
0.06024378910660744,
0.3606816232204437,
-0.16607525944709778,
0.06552635878324509,
0.11313601583242416,
-0.10957081615924835,
0.00645833183079958,
-0.31950312852859497,
0.0528092086315155,
0.32269781827926636,
0.444642573595047,
-0.06976061314344406,
-0.4415714144706726,
0.2010568529367447,
-0.20875297486782074,
-0.20130766928195953,
-0.20866763591766357,
0.18090078234672546,
-0.0036267738323658705,
0.06653469055891037,
-0.5100692510604858,
-0.16639810800552368,
-0.02797076478600502,
0.32072681188583374,
0.22054770588874817,
0.13671930134296417,
0.19716176390647888,
0.34235745668411255,
-0.13193827867507935,
-0.29462337493896484,
-0.44488486647605896,
0.1799899786710739,
-0.07566062361001968,
-0.03901039436459541,
0.08985720574855804,
0.40780845284461975,
-0.20822201669216156,
-0.03876389190554619,
0.07970203459262848,
0.24621258676052094,
0.12287628650665283,
-0.13564300537109375,
-0.005663588177412748,
-0.054616447538137436,
0.11341861635446548,
-0.21448703110218048,
-0.1570129096508026,
0.3972936272621155,
0.43492361903190613,
-0.06395132094621658,
-0.07274413853883743,
-0.028939438983798027,
0.6289821267127991,
-0.22893597185611725,
0.16493239998817444,
0.04541494697332382,
0.13179242610931396,
0.23694126307964325,
-0.21300095319747925,
-0.3524008095264435,
-0.11878802627325058,
-0.30093106627464294,
0.2917416989803314,
0.48799076676368713,
0.005711566656827927,
-0.12505345046520233,
-0.14390523731708527,
-0.02927136979997158,
-0.17079395055770874,
0.7764102220535278,
0.1971452832221985,
0.05381915718317032,
-0.22163012623786926,
-0.1533849835395813,
-0.30168166756629944,
-0.16517777740955353,
-0.36522915959358215,
0.05044585093855858,
-0.046437762677669525,
0.06988959014415741,
0.3945072591304779,
0.21953503787517548,
0.24615201354026794,
-0.25787660479545593,
0.008697914890944958,
0.1628669798374176,
-0.12578989565372467,
-0.01796719990670681,
-0.290824830532074,
0.22758543491363525,
0.00856083445250988,
-0.2548978924751282,
0.14190411567687988,
-0.23468643426895142,
-0.07558261603116989,
-0.0317222997546196,
-0.08177836984395981,
-0.34027108550071716,
0.18524441123008728,
0.34056931734085083,
0.1134481430053711,
0.41452673077583313,
0.3741556704044342,
-0.2367188036441803,
-0.24118945002555847,
0.25304552912712097,
-0.21215488016605377,
0.07135065644979477,
0.264978289604187,
0.38037192821502686,
-0.2436312884092331,
0.15856508910655975,
-0.45976755023002625,
0.16702863574028015,
0.15437105298042297,
-0.08879301697015762,
-0.23228147625923157,
-0.38508594036102295,
0.18651843070983887,
0.052664864808321,
0.15408869087696075,
0.059463270008563995,
0.1275961548089981,
-0.03845590725541115,
-0.5950486660003662,
0.1850041151046753,
0.4575265645980835,
-0.2326519787311554,
-0.2262018918991089,
-0.49280843138694763,
0.15268105268478394,
0.012173597700893879,
0.10166025161743164,
-0.685836911201477,
-0.012666941620409489,
0.10802184045314789,
0.036745332181453705,
-0.09204764664173126,
0.20513854920864105,
0.17611223459243774,
-0.04728216677904129,
-0.019660796970129013,
0.2132987082004547,
-0.4040834307670593,
-0.3638869822025299,
-0.47751113772392273,
-0.092258982360363
] |
https://github.com/huggingface/datasets/issues/1724 | could not run models on a offline server successfully | The local dataset builders (csv, text , json and pandas) are now part of the `datasets` package since #1726 :)
You can now use them offline
```python
datasets = load_dataset('text', data_files=data_files)
```
We'll do a new release soon | Hi, I really need your help about this.
I am trying to fine-tuning a RoBERTa on a remote server, which is strictly banning internet. I try to install all the packages by hand and try to run run_mlm.py on the server. It works well on colab, but when I try to run it on this offline server, it shows:

is there anything I can do? Is it possible to download all the things in cache and upload it to the server? Please help me out... | 38 | could not run models on a offline server successfully
Hi, I really need your help about this.
I am trying to fine-tuning a RoBERTa on a remote server, which is strictly banning internet. I try to install all the packages by hand and try to run run_mlm.py on the server. It works well on colab, but when I try to run it on this offline server, it shows:

is there anything I can do? Is it possible to download all the things in cache and upload it to the server? Please help me out...
The local dataset builders (csv, text , json and pandas) are now part of the `datasets` package since #1726 :)
You can now use them offline
```python
datasets = load_dataset('text', data_files=data_files)
```
We'll do a new release soon | [
-0.06882035732269287,
0.10156840831041336,
-0.0669889748096466,
0.35110995173454285,
0.37677666544914246,
-0.00863181333988905,
0.43615660071372986,
0.28940141201019287,
-0.13996097445487976,
0.07609377801418304,
0.23464009165763855,
0.16088590025901794,
-0.22747251391410828,
0.17787235975265503,
-0.03255271911621094,
-0.34215080738067627,
-0.04547382518649101,
0.17925691604614258,
-0.19100522994995117,
-0.25855162739753723,
0.11184301227331161,
-0.06748481839895248,
-0.07586155831813812,
0.22480428218841553,
-0.17274810373783112,
-0.4493911862373352,
0.028594616800546646,
0.1861252635717392,
-0.5378694534301758,
-0.158906951546669,
0.17513106763362885,
-0.28504136204719543,
0.4374854862689972,
0.2565446197986603,
-0.00012158125173300505,
0.1360870599746704,
-0.024605007842183113,
-0.15518464148044586,
-0.20212607085704803,
-0.20650862157344818,
0.24519948661327362,
-0.20611368119716644,
0.27914726734161377,
-0.34149590134620667,
0.16877999901771545,
0.15800969302654266,
0.0705217719078064,
-0.1988770067691803,
0.14779596030712128,
0.2522169351577759,
0.1006830483675003,
0.33775779604911804,
-0.0068504964001476765,
-0.03859661892056465,
-0.1595534235239029,
-0.042658619582653046,
-0.26510733366012573,
0.3764232397079468,
-0.1992184966802597,
-0.21684016287326813,
0.32032814621925354,
0.1805514097213745,
-0.4037189185619354,
0.28593409061431885,
0.04769912362098694,
-0.007209087256342173,
0.30592113733291626,
-0.28145632147789,
0.3282849192619324,
0.3897053301334381,
0.09288276731967926,
0.14975003898143768,
-0.03532099723815918,
-0.09964582324028015,
0.09852375090122223,
-0.3189716339111328,
0.16269321739673615,
0.4870986342430115,
-0.23804686963558197,
0.30073878169059753,
-0.4002816677093506,
-0.23826642334461212,
-0.28363993763923645,
0.1429469734430313,
0.06977539509534836,
0.40673163533210754,
-0.10669726878404617,
0.09307819604873657,
-0.025014854967594147,
0.0395161472260952,
-0.13321849703788757,
-0.1188887357711792,
0.08779871463775635,
-0.09540407359600067,
-0.003621878335252404,
0.10379645973443985,
-0.02449038438498974,
0.43701088428497314,
-0.1175314262509346,
0.16765668988227844,
0.10175946354866028,
-0.10334420204162598,
0.11697401106357574,
0.095559261739254,
0.017314886674284935,
0.2371705025434494,
-0.14970722794532776,
-0.0764177218079567,
0.33081164956092834,
0.3549761474132538,
-0.22802166640758514,
-0.10400349646806717,
-0.15889960527420044,
-0.02806093543767929,
-0.37151336669921875,
-0.10642856359481812,
0.14624710381031036,
-0.22321908175945282,
0.12764708697795868,
-0.017074549570679665,
-0.12286129593849182,
0.044914647936820984,
0.004385574255138636,
0.20184631645679474,
-0.2599538266658783,
-0.06146926060318947,
0.014837780967354774,
0.13984914124011993,
-0.27586016058921814,
-0.5037817358970642,
0.15863840281963348,
-0.10600972175598145,
-0.16904516518115997,
-0.014174583368003368,
0.15288817882537842,
-0.142538920044899,
0.348335862159729,
-0.23217760026454926,
0.24163691699504852,
-0.09998595714569092,
0.20834726095199585,
-0.4021795094013214,
0.16854961216449738,
0.4523254930973053,
0.12665270268917084,
-0.05994545668363571,
0.368425190448761,
-0.046919506043195724,
0.15186278522014618,
0.1702975183725357,
0.05495548993349075,
-0.4641087055206299,
0.2862652838230133,
0.02260320633649826,
-0.1837538480758667,
-0.2005120813846588,
-0.27916473150253296,
0.1201581358909607,
0.019234586507081985,
-0.14713679254055023,
0.05452514812350273,
0.14391610026359558,
-0.10153491050004959,
-0.06372804194688797,
0.5197235941886902,
0.49698883295059204,
-0.6513742208480835,
0.3434905707836151,
-0.31355828046798706,
0.13477903604507446,
0.22703403234481812,
0.2421964704990387,
-0.22083953022956848,
0.5864217877388,
-0.20818321406841278,
-0.41263389587402344,
0.26687490940093994,
0.050016846507787704,
-0.06295077502727509,
0.29160749912261963,
-0.12124007940292358,
-0.32110315561294556,
0.06139219552278519,
-0.20344731211662292,
0.33117613196372986,
0.37578409910202026,
-0.15757416188716888,
0.16725486516952515,
-0.13239337503910065,
-0.17243032157421112,
-0.3133816123008728,
-0.4422493278980255,
0.18230947852134705,
0.23325596749782562,
0.39501917362213135,
0.2591550648212433,
-0.00047875879681669176,
-0.49045705795288086,
0.08228383213281631,
0.07508119195699692,
-0.030376477167010307,
-0.03734232485294342,
0.17358975112438202,
0.3226999342441559,
-0.08713328838348389,
-0.0504000261425972,
-0.1006900891661644,
0.18448235094547272,
-0.07689619809389114,
0.5632586479187012,
-0.3706648051738739,
0.2933448553085327,
0.031523868441581726,
-0.038481034338474274,
-0.12287990748882294,
0.07360313832759857,
0.006432028952986002,
-0.25156497955322266,
0.029792411252856255,
0.15202073752880096,
-0.21599727869033813,
0.04006260260939598,
0.040139101445674896,
0.11421544849872589,
-0.08143430948257446,
0.32415691018104553,
-0.2643056809902191,
-0.10235174000263214,
-0.19395381212234497,
-0.30514734983444214,
0.08105963468551636,
-0.05740141496062279,
-0.21487998962402344,
0.209439218044281,
-0.21240632236003876,
-0.043293971568346024,
0.4440837502479553,
0.13992343842983246,
0.14076757431030273,
-0.031237507238984108,
0.4789833426475525,
0.24908553063869476,
0.11854451894760132,
0.1844966858625412,
-0.09861591458320618,
0.5424453616142273,
0.06343815475702286,
0.4350113272666931,
0.004844136070460081,
0.21021372079849243,
0.32626646757125854,
0.1305161863565445,
-0.07818517088890076,
-0.20406222343444824,
0.28268659114837646,
0.5560108423233032,
0.0814245194196701,
-0.292334645986557,
-0.16978053748607635,
-0.1641286015510559,
0.0965561792254448,
0.14239726960659027,
0.25261130928993225,
-0.2213066816329956,
-0.08061850070953369,
0.15425856411457062,
0.12936531007289886,
0.1689741611480713,
0.22082245349884033,
0.09850042313337326,
-0.24078671634197235,
0.3263256847858429,
-0.14436650276184082,
-0.21468490362167358,
0.2925775349140167,
0.33994248509407043,
0.39335688948631287,
0.016940204426646233,
0.04893309250473976,
-0.23144586384296417,
-0.35562413930892944,
-0.2272416204214096,
0.0943484976887703,
0.2546877861022949,
-0.06779173016548157,
0.36282339692115784,
-0.5687306523323059,
0.11820881068706512,
-0.14789344370365143,
0.02908194437623024,
-0.7140899896621704,
0.1934947669506073,
0.0739198699593544,
-0.1115892231464386,
-0.1312539428472519,
0.242037832736969,
-0.07913357019424438,
0.3908633887767792,
-0.11662857234477997,
-0.15475702285766602,
0.119524747133255,
-0.29078739881515503,
-0.3274575173854828,
-0.06115018203854561,
0.29066339135169983,
0.11778923124074936,
0.3798542320728302,
-0.04139060899615288,
-0.29354262351989746,
0.17423419654369354,
-0.23677268624305725,
0.049082737416028976,
0.18828660249710083,
0.1058584451675415,
0.1678861677646637,
0.3347949981689453,
-0.11217915266752243,
0.23501509428024292,
0.4916294813156128,
-0.26103106141090393,
0.22564582526683807,
-0.16429367661476135,
-0.16812387108802795,
0.1103268414735794,
-0.1871708482503891,
-0.38006141781806946,
-0.43475428223609924,
-0.145654559135437,
0.25354570150375366,
0.37698161602020264,
0.1690066009759903,
-0.051518093794584274,
0.43200767040252686,
-0.1171562597155571,
-0.20626980066299438,
0.1546187400817871,
0.10367728024721146,
-0.7016680240631104,
0.2701810300350189,
0.03474048897624016,
-0.2287963628768921,
0.2957943379878998,
0.17565062642097473,
-0.04130815342068672,
-0.1743878424167633,
-0.5842971801757812,
-0.013589105568826199,
0.2518705129623413,
0.13866521418094635,
0.15207050740718842,
0.09823045134544373,
0.4951813519001007,
-0.12660914659500122,
0.06809232383966446,
-0.0909656509757042,
-0.09516970813274384,
0.18547797203063965,
-0.12011897563934326,
0.11452720314264297,
-0.05711662769317627,
0.7429935932159424,
-0.035614993423223495,
0.2881906032562256,
-0.3934970200061798,
0.04588288813829422,
0.19552373886108398,
-0.02192942425608635,
0.3647750914096832,
-0.21712729334831238,
-0.07753156870603561,
-0.04223138839006424,
-0.020811697468161583,
-0.7154509425163269,
0.17659834027290344,
0.056956131011247635,
-0.06365125626325607,
-0.49524906277656555,
0.07712732255458832,
0.08671566098928452,
-0.13230402767658234,
0.08278391510248184,
0.14210474491119385,
0.2872104048728943,
0.32124489545822144,
0.17482240498065948,
-0.27169743180274963,
0.16779504716396332,
0.08964071422815323,
0.2322816401720047,
0.009825115092098713,
0.09073368459939957,
-0.41198986768722534,
-0.29534903168678284,
0.16114869713783264,
0.0700787752866745,
-0.16057951748371124,
0.2710828185081482,
-0.09384376555681229,
0.03862939402461052,
0.27718132734298706,
-0.044942427426576614,
0.25249186158180237,
-0.1391095221042633,
-0.038091838359832764,
0.06028848513960838,
-0.03531224653124809,
-0.2176903933286667,
-0.34493768215179443,
0.11839911341667175,
0.020013613626360893,
0.34734535217285156,
0.18504616618156433,
0.06767312437295914,
0.09624190628528595,
0.06828761845827103,
0.13524115085601807,
-0.35471734404563904,
-0.1549387276172638,
-0.6495373845100403,
-0.09560322761535645,
-0.3129643499851227,
0.01455798652023077,
-0.3000567853450775,
-0.10787207633256912,
-0.03517360985279083,
0.16793453693389893,
0.09002318978309631,
0.2815144956111908,
-0.323446124792099,
0.278696209192276,
0.09117862582206726,
-0.35358476638793945,
-0.07314188033342361,
0.30055588483810425,
0.37687942385673523,
0.32579535245895386,
0.20441684126853943,
-0.41175493597984314,
0.11526887863874435,
0.12144626677036285,
-0.02019788883626461,
0.06884898990392685,
0.32748982310295105,
-0.07728355377912521,
-0.36510178446769714,
0.5494982004165649,
0.27605146169662476,
-0.04800955951213837,
-0.14429961144924164,
-0.018641401082277298,
-0.17245353758335114,
0.21756714582443237,
-0.363817036151886,
0.3758823275566101,
-0.16246861219406128,
0.15532676875591278,
-0.4925996661186218,
0.1520402878522873,
-0.010199695825576782,
0.4426674246788025,
0.06946203112602234,
1.059933066368103,
0.02285386435687542,
0.12840662896633148,
0.004717775154858828,
-0.09448344260454178,
0.47038158774375916,
-0.5697624683380127,
0.23204781115055084,
-0.05395764485001564,
0.06948599964380264,
-0.05717608332633972,
-0.0019678352400660515,
0.3732965886592865,
0.29306748509407043,
-0.04844373092055321,
0.3198626637458801,
-0.1100165918469429,
0.20094819366931915,
-0.023304158821702003,
-0.2344217598438263,
0.3120013475418091,
-0.2653404772281647,
-0.9842767119407654,
0.04830698296427727,
0.19255326688289642,
0.06278451532125473,
-0.4223130941390991,
-0.2704310417175293,
0.12384843081235886,
0.05860499292612076,
-0.0010962241794914007,
-0.16638389229774475,
-0.3592178523540497,
0.05241285637021065,
-0.16389423608779907,
0.03382918983697891,
-0.1758541762828827,
0.07360757887363434,
0.3699010908603668,
0.19157303869724274,
-0.19559019804000854,
-0.0991089716553688,
0.021501990035176277,
-0.349521666765213,
-0.11592037975788116,
0.28258413076400757,
-0.07249230146408081,
-0.29288020730018616,
-0.28651663661003113,
-0.20550775527954102,
-0.2601911425590515,
-0.006636586505919695,
0.3399687111377716,
-0.2427624762058258,
0.14768478274345398,
0.1373724490404129,
0.07448992133140564,
-0.0076541900634765625,
0.28902578353881836,
-0.10795381665229797,
0.041500531136989594,
0.1084115207195282,
-0.10262265056371689,
0.23449790477752686,
0.1501000076532364,
-0.0739879310131073,
-0.22787714004516602,
0.34798216819763184,
-0.04266679286956787,
0.25748857855796814,
0.2616276741027832,
0.35376065969467163,
-0.20055218040943146,
-0.2120904177427292,
0.26224052906036377,
-0.3185269236564636,
-0.30998003482818604,
0.2088732272386551,
0.14581298828125,
0.12541116774082184,
-0.15612058341503143,
-0.019379816949367523,
0.3010338842868805,
-0.12321680039167404,
-0.1636243760585785,
-0.48549094796180725,
-0.5012034177780151,
0.10141956806182861,
0.08578262478113174,
-0.28034281730651855,
0.2758420705795288,
0.140543133020401,
0.3010767996311188,
-0.09948136657476425,
-0.16975918412208557,
0.08914180099964142,
-0.12963630259037018,
0.05470757931470871,
0.253997802734375,
-0.059936556965112686,
0.21033355593681335,
0.15262635052204132,
-0.025366127490997314,
-0.0054238527081906796,
-0.14187641441822052,
-0.09563180059194565,
0.008753960952162743,
0.2517923414707184,
0.18560369312763214,
-0.47479456663131714,
-0.11540398746728897,
-0.4813810884952545,
-0.4180762469768524,
0.05287928879261017,
-0.15776775777339935,
-0.008873331360518932,
0.03653046116232872,
-0.171664759516716,
0.25725463032722473,
0.20176962018013,
-0.43072617053985596,
0.03970029205083847,
0.004972933791577816,
0.30448493361473083,
0.18152834475040436,
-0.1100684404373169,
0.15268421173095703,
0.0032958812080323696,
0.0171792171895504,
-0.10922502726316452,
-0.15701529383659363,
0.17873042821884155,
0.7193295359611511,
-0.3075019121170044,
0.30638405680656433,
0.1931769847869873,
0.23084701597690582,
0.30151158571243286,
0.18034526705741882,
-0.05368552729487419,
0.41385942697525024,
0.070254385471344,
-0.4882843494415283,
0.006947292014956474,
0.17693167924880981,
0.04724970832467079,
0.01048616785556078,
0.13549041748046875,
0.21993118524551392,
0.05529101565480232,
-0.17203998565673828,
0.22994090616703033,
0.273417204618454,
-0.03377212584018707,
0.03196711465716362,
-0.01664561964571476,
-0.08568104356527328,
0.22497278451919556,
-0.1628892421722412,
0.00853964313864708,
0.04743354767560959,
0.3475343883037567,
-0.17183998227119446,
0.04066993668675423,
0.08257177472114563,
-0.15062890946865082,
-0.004627998918294907,
-0.2909696102142334,
0.06629102677106857,
0.29902634024620056,
0.3514060378074646,
-0.10131897777318954,
-0.43931931257247925,
0.22470274567604065,
-0.25926673412323,
-0.16474150121212006,
-0.24746114015579224,
0.18163351714611053,
-0.026036148890852928,
0.05542554706335068,
-0.45031994581222534,
-0.16862420737743378,
-0.0023027369752526283,
0.2909688651561737,
0.23730772733688354,
0.11730439215898514,
0.16438694298267365,
0.3563937544822693,
-0.1417888104915619,
-0.3237811028957367,
-0.45958444476127625,
0.19124776124954224,
-0.06139529123902321,
-0.02222643978893757,
0.04227440431714058,
0.437360554933548,
-0.2647351026535034,
-0.11466409265995026,
0.06416766345500946,
0.2666686773300171,
0.1226721927523613,
-0.17609812319278717,
0.003313705325126648,
0.005031249485909939,
0.09971500933170319,
-0.15786945819854736,
-0.1710406243801117,
0.41750845313072205,
0.4818115532398224,
-0.08374477177858353,
-0.051348067820072174,
-0.03970513492822647,
0.6139248013496399,
-0.18125158548355103,
0.14713439345359802,
-0.005205132067203522,
0.14776074886322021,
0.23926204442977905,
-0.20178484916687012,
-0.3352896273136139,
-0.1234084889292717,
-0.29972222447395325,
0.29406189918518066,
0.4473363161087036,
0.02953435853123665,
-0.12199049443006516,
-0.14942626655101776,
-0.0233373511582613,
-0.15792247653007507,
0.7504981160163879,
0.1971171796321869,
0.04823797941207886,
-0.21237385272979736,
-0.13135792315006256,
-0.2958155870437622,
-0.1818985939025879,
-0.36050835251808167,
0.03532693162560463,
-0.07973019778728485,
0.050142064690589905,
0.3883093297481537,
0.20886822044849396,
0.21886232495307922,
-0.24281904101371765,
-0.04234052076935768,
0.170981764793396,
-0.12176790088415146,
-0.026069846004247665,
-0.34175652265548706,
0.2257136106491089,
0.003664986928924918,
-0.24110038578510284,
0.11201514303684235,
-0.24783974885940552,
-0.05127056688070297,
-0.058782272040843964,
-0.09265948086977005,
-0.31890085339546204,
0.24737076461315155,
0.30938711762428284,
0.1269901543855667,
0.4091367721557617,
0.37950369715690613,
-0.2697545289993286,
-0.25584736466407776,
0.23803693056106567,
-0.2149432897567749,
0.12118882685899734,
0.22409282624721527,
0.34077024459838867,
-0.2189384251832962,
0.08829683065414429,
-0.4573327302932739,
0.19090931117534637,
0.14789074659347534,
-0.10578614473342896,
-0.2481847107410431,
-0.3945678174495697,
0.2460968941450119,
0.03438142314553261,
0.1491890698671341,
0.05014203116297722,
0.11053487658500671,
0.01701408065855503,
-0.5854980945587158,
0.19513465464115143,
0.4119108319282532,
-0.2618521749973297,
-0.19844453036785126,
-0.5416533946990967,
0.15604940056800842,
-0.0023717847652733326,
0.15550094842910767,
-0.6582355499267578,
-0.025205273181200027,
0.12952826917171478,
0.04511037841439247,
-0.08927120268344879,
0.1891094446182251,
0.18306881189346313,
-0.05694619566202164,
-0.027693865820765495,
0.1851198971271515,
-0.39977404475212097,
-0.3908598721027374,
-0.42782139778137207,
-0.08411780744791031
] |
https://github.com/huggingface/datasets/issues/1724 | could not run models on a offline server successfully | > The local dataset builders (csv, text , json and pandas) are now part of the `datasets` package since #1726 :)
> You can now use them offline
>
> ```python
> datasets = load_dataset('text', data_files=data_files)
> ```
>
> We'll do a new release soon
so the new version release now? | Hi, I really need your help about this.
I am trying to fine-tuning a RoBERTa on a remote server, which is strictly banning internet. I try to install all the packages by hand and try to run run_mlm.py on the server. It works well on colab, but when I try to run it on this offline server, it shows:

is there anything I can do? Is it possible to download all the things in cache and upload it to the server? Please help me out... | 52 | could not run models on a offline server successfully
Hi, I really need your help about this.
I am trying to fine-tuning a RoBERTa on a remote server, which is strictly banning internet. I try to install all the packages by hand and try to run run_mlm.py on the server. It works well on colab, but when I try to run it on this offline server, it shows:

is there anything I can do? Is it possible to download all the things in cache and upload it to the server? Please help me out...
> The local dataset builders (csv, text , json and pandas) are now part of the `datasets` package since #1726 :)
> You can now use them offline
>
> ```python
> datasets = load_dataset('text', data_files=data_files)
> ```
>
> We'll do a new release soon
so the new version release now? | [
-0.07059996575117111,
0.08184202760457993,
-0.0673871710896492,
0.34848958253860474,
0.36553341150283813,
-0.005905856844037771,
0.4193032681941986,
0.2942717671394348,
-0.1489262878894806,
0.07161758840084076,
0.22947946190834045,
0.15837129950523376,
-0.22693173587322235,
0.17349901795387268,
-0.03711138665676117,
-0.34690001606941223,
-0.03945504128932953,
0.17744800448417664,
-0.19392165541648865,
-0.2578325569629669,
0.09907210618257523,
-0.06196562573313713,
-0.08073695003986359,
0.22306475043296814,
-0.1615164875984192,
-0.467054545879364,
0.027667200192809105,
0.1842140108346939,
-0.5382241606712341,
-0.17008362710475922,
0.16586516797542572,
-0.2837146818637848,
0.43755125999450684,
0.25211894512176514,
-0.0001213945506606251,
0.12778818607330322,
-0.024807361885905266,
-0.1500542163848877,
-0.2117675542831421,
-0.21673192083835602,
0.25220802426338196,
-0.21248102188110352,
0.2840510904788971,
-0.3407837152481079,
0.16973499953746796,
0.17420640587806702,
0.07568942755460739,
-0.19665221869945526,
0.1607893407344818,
0.25451260805130005,
0.10274256020784378,
0.3456662893295288,
-0.0017500193789601326,
-0.042685020714998245,
-0.1672263741493225,
-0.06222419813275337,
-0.25512468814849854,
0.3821844756603241,
-0.20342448353767395,
-0.20883899927139282,
0.32868969440460205,
0.19119638204574585,
-0.3957903981208801,
0.28680095076560974,
0.044627293944358826,
0.00004165916834608652,
0.3129141926765442,
-0.2795211374759674,
0.32386189699172974,
0.38379350304603577,
0.09836472570896149,
0.1457062065601349,
-0.050395507365465164,
-0.0933912843465805,
0.09467913955450058,
-0.32466283440589905,
0.1679433435201645,
0.48233917355537415,
-0.22900064289569855,
0.30128058791160583,
-0.3965064585208893,
-0.2433445304632187,
-0.27569305896759033,
0.14332985877990723,
0.07315084338188171,
0.4021546542644501,
-0.11458263546228409,
0.09039825946092606,
-0.028576724231243134,
0.03933439031243324,
-0.14204373955726624,
-0.11368434876203537,
0.08381642401218414,
-0.08641261607408524,
-0.0036160487215965986,
0.10338323563337326,
-0.03194752708077431,
0.4332541227340698,
-0.11960180103778839,
0.16261769831180573,
0.10861845314502716,
-0.11168938875198364,
0.11942125856876373,
0.08742976188659668,
0.029407396912574768,
0.2210606187582016,
-0.15835967659950256,
-0.07854245603084564,
0.3308567404747009,
0.3641963303089142,
-0.22702662646770477,
-0.11020515114068985,
-0.14998246729373932,
-0.026156490668654442,
-0.3498992621898651,
-0.1013973131775856,
0.15744033455848694,
-0.22327524423599243,
0.13267727196216583,
-0.029115503653883934,
-0.1286502331495285,
0.0402710996568203,
-0.00500565255060792,
0.20863941311836243,
-0.27046850323677063,
-0.04780269414186478,
0.020017312839627266,
0.13025671243667603,
-0.28419244289398193,
-0.5011149048805237,
0.1586945503950119,
-0.10972990095615387,
-0.16844958066940308,
-0.003669331781566143,
0.14572207629680634,
-0.1474146842956543,
0.3415740728378296,
-0.2266683429479599,
0.2293042242527008,
-0.11615781486034393,
0.20340991020202637,
-0.3967205584049225,
0.1668657511472702,
0.4541448950767517,
0.1340208351612091,
-0.05591920390725136,
0.363228976726532,
-0.043578699231147766,
0.14273525774478912,
0.17526739835739136,
0.05685074254870415,
-0.4620819389820099,
0.2975706458091736,
0.024398332461714745,
-0.1721850037574768,
-0.20284348726272583,
-0.26063475012779236,
0.12292948365211487,
0.019639724865555763,
-0.16367268562316895,
0.05481170862913132,
0.1466069370508194,
-0.10686708986759186,
-0.07568781077861786,
0.5186439156532288,
0.5003830790519714,
-0.6551425457000732,
0.33571508526802063,
-0.3109009265899658,
0.12951314449310303,
0.2178943008184433,
0.2354239970445633,
-0.20679697394371033,
0.5655162930488586,
-0.20791243016719818,
-0.4268912672996521,
0.27118849754333496,
0.04396088421344757,
-0.07325461506843567,
0.28407230973243713,
-0.13255475461483002,
-0.31944602727890015,
0.07354149967432022,
-0.19861364364624023,
0.327812522649765,
0.3712579905986786,
-0.1727527678012848,
0.15634958446025848,
-0.13457253575325012,
-0.17394039034843445,
-0.3187619149684906,
-0.44107985496520996,
0.18349885940551758,
0.21933792531490326,
0.394084095954895,
0.2665606141090393,
0.007479437626898289,
-0.464536190032959,
0.09094805270433426,
0.09136587381362915,
-0.038053736090660095,
-0.03648577630519867,
0.1778344213962555,
0.3347790837287903,
-0.08729038387537003,
-0.05183563008904457,
-0.10347981750965118,
0.17833808064460754,
-0.06639763712882996,
0.5493113994598389,
-0.3502079248428345,
0.2871761918067932,
0.024194378405809402,
-0.04074985533952713,
-0.11216975748538971,
0.0731939747929573,
0.005238404963165522,
-0.25018277764320374,
0.048081427812576294,
0.152652770280838,
-0.21617352962493896,
0.0541437529027462,
0.042807139456272125,
0.11167317628860474,
-0.08904282003641129,
0.32690778374671936,
-0.27544116973876953,
-0.10517645627260208,
-0.1878640502691269,
-0.30955544114112854,
0.08901987224817276,
-0.05655795708298683,
-0.21266373991966248,
0.20832936465740204,
-0.20541217923164368,
-0.04813091829419136,
0.42538437247276306,
0.1450355052947998,
0.13701505959033966,
-0.017994103953242302,
0.48207345604896545,
0.2605343461036682,
0.11789445579051971,
0.1872798502445221,
-0.0823039561510086,
0.5436935424804688,
0.06771129369735718,
0.42576441168785095,
0.0182648953050375,
0.21276827156543732,
0.323012113571167,
0.13547690212726593,
-0.06748801469802856,
-0.21296997368335724,
0.27419134974479675,
0.551385223865509,
0.09166619181632996,
-0.30439573526382446,
-0.17124588787555695,
-0.15302349627017975,
0.11177192628383636,
0.13627927005290985,
0.25438392162323,
-0.22061607241630554,
-0.08681674301624298,
0.15204259753227234,
0.11271890252828598,
0.17533521354198456,
0.223224937915802,
0.09894538670778275,
-0.23110316693782806,
0.342170774936676,
-0.12968453764915466,
-0.20527216792106628,
0.2963412404060364,
0.3406384587287903,
0.3999176025390625,
0.0022239969111979008,
0.047666579484939575,
-0.22820930182933807,
-0.3398962616920471,
-0.2150231897830963,
0.09606848657131195,
0.2548365294933319,
-0.07187913358211517,
0.35956433415412903,
-0.5689228773117065,
0.12253439426422119,
-0.1531618982553482,
0.027162227779626846,
-0.7147396206855774,
0.19709469377994537,
0.07181882858276367,
-0.09032151103019714,
-0.11703867465257645,
0.24285675585269928,
-0.07878056168556213,
0.37325283885002136,
-0.1171957477927208,
-0.14909227192401886,
0.12662191689014435,
-0.2835882306098938,
-0.33159276843070984,
-0.05915496125817299,
0.2754867672920227,
0.10712265968322754,
0.37863004207611084,
-0.046806126832962036,
-0.2891296446323395,
0.17163141071796417,
-0.2428634911775589,
0.04211951419711113,
0.18956433236598969,
0.10237354040145874,
0.177362322807312,
0.33913037180900574,
-0.11838597804307938,
0.24227827787399292,
0.48701220750808716,
-0.2876998484134674,
0.20761539041996002,
-0.17388325929641724,
-0.1704430729150772,
0.11787232011556625,
-0.1792331486940384,
-0.3962229788303375,
-0.4508715271949768,
-0.15110470354557037,
0.26075807213783264,
0.3716065287590027,
0.1726301610469818,
-0.04003249853849411,
0.42054831981658936,
-0.11833994090557098,
-0.20451988279819489,
0.15786144137382507,
0.09937747567892075,
-0.6965696215629578,
0.2649093568325043,
0.040320929139852524,
-0.23314233124256134,
0.3088754713535309,
0.1726255565881729,
-0.05311662331223488,
-0.181862473487854,
-0.5868794322013855,
-0.021421464160084724,
0.2561398446559906,
0.14775490760803223,
0.14912112057209015,
0.09798639267683029,
0.5046492218971252,
-0.12317699193954468,
0.06529731303453445,
-0.08950507640838623,
-0.0938146710395813,
0.1784212589263916,
-0.12067393958568573,
0.10799005627632141,
-0.05657273530960083,
0.7600355744361877,
-0.03283688798546791,
0.291998028755188,
-0.38161328434944153,
0.048658326268196106,
0.1910068243741989,
-0.022487804293632507,
0.3683614730834961,
-0.21885071694850922,
-0.07789052277803421,
-0.056812405586242676,
-0.030396718531847,
-0.7145969867706299,
0.17752987146377563,
0.05911537632346153,
-0.06278318911790848,
-0.49453669786453247,
0.059447456151247025,
0.07917645573616028,
-0.12800441682338715,
0.07861556857824326,
0.15064634382724762,
0.28307899832725525,
0.32203665375709534,
0.16926555335521698,
-0.27065035700798035,
0.16407638788223267,
0.08382634073495865,
0.2446197122335434,
0.0073880781419575214,
0.10240831971168518,
-0.4074576795101166,
-0.29344820976257324,
0.16930027306079865,
0.0771254375576973,
-0.1476099044084549,
0.27682510018348694,
-0.09258482605218887,
0.03614047169685364,
0.2758314907550812,
-0.04374630004167557,
0.2513384222984314,
-0.12974762916564941,
-0.02515447326004505,
0.06293856352567673,
-0.0492127425968647,
-0.2024410516023636,
-0.3432176113128662,
0.10950775444507599,
0.017467914149165154,
0.36315256357192993,
0.1710250824689865,
0.06963437795639038,
0.09813502430915833,
0.06424233317375183,
0.14484211802482605,
-0.3554892838001251,
-0.14859597384929657,
-0.6650859713554382,
-0.09097638726234436,
-0.31911373138427734,
0.014842376112937927,
-0.28761914372444153,
-0.10672938823699951,
-0.03782641515135765,
0.16997559368610382,
0.09271278232336044,
0.27277687191963196,
-0.33516642451286316,
0.2794826626777649,
0.09891149401664734,
-0.3488748371601105,
-0.06904229521751404,
0.29688164591789246,
0.37517622113227844,
0.3203035593032837,
0.20657849311828613,
-0.40710926055908203,
0.1150907501578331,
0.11515797674655914,
-0.006658761762082577,
0.070589080452919,
0.31633421778678894,
-0.08446623384952545,
-0.35179010033607483,
0.5517025589942932,
0.2774520516395569,
-0.0388038270175457,
-0.16167336702346802,
-0.025816990062594414,
-0.16979436576366425,
0.21100087463855743,
-0.36939743161201477,
0.3705829083919525,
-0.15263885259628296,
0.15218310058116913,
-0.4862377643585205,
0.1542181521654129,
-0.00450660428032279,
0.41914358735084534,
0.05223866552114487,
1.055031657218933,
0.025799904018640518,
0.13095442950725555,
0.0051356954500079155,
-0.10594545304775238,
0.47935518622398376,
-0.5588309168815613,
0.23746255040168762,
-0.05982760339975357,
0.051206398755311966,
-0.0542151965200901,
-0.0002920224505942315,
0.3729053735733032,
0.28976425528526306,
-0.06629901379346848,
0.3334057033061981,
-0.10742329061031342,
0.1965206414461136,
-0.02453967183828354,
-0.22881169617176056,
0.31037092208862305,
-0.25730210542678833,
-1.0110774040222168,
0.048112768679857254,
0.20087920129299164,
0.06858205050230026,
-0.4254419803619385,
-0.2625392973423004,
0.1260489523410797,
0.05178481712937355,
-0.003779591526836157,
-0.1718617081642151,
-0.3710797131061554,
0.06073088198900223,
-0.15980182588100433,
0.040076497942209244,
-0.18115007877349854,
0.06833057850599289,
0.3599056005477905,
0.1948929727077484,
-0.1812686175107956,
-0.1069089025259018,
0.02698315493762493,
-0.3582988679409027,
-0.11355092376470566,
0.2985426187515259,
-0.06037823110818863,
-0.3018137216567993,
-0.2927599549293518,
-0.1994757205247879,
-0.2634775638580322,
-0.0027648420073091984,
0.3410247564315796,
-0.24008388817310333,
0.1370641440153122,
0.14346836507320404,
0.07436735928058624,
-0.008669767528772354,
0.28095826506614685,
-0.11254661530256271,
0.04092209041118622,
0.10269531607627869,
-0.10810984671115875,
0.2284502536058426,
0.15899692475795746,
-0.07879669964313507,
-0.22423456609249115,
0.3580925166606903,
-0.0433431938290596,
0.26582908630371094,
0.27371472120285034,
0.35217341780662537,
-0.20440499484539032,
-0.21405476331710815,
0.2711828649044037,
-0.3227519392967224,
-0.3032824993133545,
0.21435321867465973,
0.14507772028446198,
0.12969928979873657,
-0.15169723331928253,
-0.019494643434882164,
0.30321547389030457,
-0.11524797976016998,
-0.1638215035200119,
-0.4914749562740326,
-0.5047594904899597,
0.10390301793813705,
0.08342479169368744,
-0.29418307542800903,
0.28287991881370544,
0.14003850519657135,
0.3092041015625,
-0.09381891041994095,
-0.17202365398406982,
0.07938297837972641,
-0.1266273409128189,
0.05222056433558464,
0.2538006603717804,
-0.07009472697973251,
0.20726355910301208,
0.15040865540504456,
-0.02507367730140686,
-0.007144398987293243,
-0.14298295974731445,
-0.0962936133146286,
0.013800482265651226,
0.25270596146583557,
0.1756492406129837,
-0.4706898033618927,
-0.12299420684576035,
-0.4690321087837219,
-0.41694140434265137,
0.05786816403269768,
-0.16292306780815125,
-0.0034413286484777927,
0.05619029700756073,
-0.16885726153850555,
0.2602786719799042,
0.20261256396770477,
-0.4410691261291504,
0.040130238980054855,
-0.0016460749320685863,
0.30586957931518555,
0.1766478717327118,
-0.1100078597664833,
0.16432102024555206,
0.005344613920897245,
-0.003748723305761814,
-0.11747726052999496,
-0.14871186017990112,
0.17360819876194,
0.7176587581634521,
-0.30576708912849426,
0.299640953540802,
0.1940704733133316,
0.22468486428260803,
0.2971051037311554,
0.19059056043624878,
-0.05415809527039528,
0.412379652261734,
0.07041238248348236,
-0.4994433522224426,
0.012596175074577332,
0.18367263674736023,
0.04844207689166069,
0.012151106260716915,
0.14100728929042816,
0.20819324254989624,
0.057201139628887177,
-0.1602870672941208,
0.23559407889842987,
0.26673465967178345,
-0.042388029396533966,
0.047824010252952576,
-0.005551232490688562,
-0.0702366977930069,
0.22599132359027863,
-0.16069184243679047,
0.01242475863546133,
0.03580199554562569,
0.3368994891643524,
-0.1761815845966339,
0.04266446456313133,
0.08807212114334106,
-0.1517421156167984,
-0.000006922331976966234,
-0.2870093882083893,
0.049288541078567505,
0.2996182441711426,
0.3487868010997772,
-0.09954289346933365,
-0.4406181275844574,
0.2084195762872696,
-0.26265954971313477,
-0.1658479869365692,
-0.24557167291641235,
0.1764637529850006,
-0.03066371940076351,
0.05247056484222412,
-0.4268798232078552,
-0.1589352786540985,
-0.006081433035433292,
0.2915114462375641,
0.23970800638198853,
0.11187080293893814,
0.16912952065467834,
0.3600475788116455,
-0.13500863313674927,
-0.3335423171520233,
-0.45978546142578125,
0.19248636066913605,
-0.054472483694553375,
-0.024336282163858414,
0.041831474751234055,
0.4390506148338318,
-0.25167912244796753,
-0.11133565753698349,
0.06509507447481155,
0.26306021213531494,
0.12160857766866684,
-0.17371998727321625,
0.010897898115217686,
0.009824619628489017,
0.09507572650909424,
-0.1498250961303711,
-0.17643322050571442,
0.41725796461105347,
0.4848122000694275,
-0.09078482538461685,
-0.051453981548547745,
-0.036676764488220215,
0.6268962621688843,
-0.17985212802886963,
0.1380152851343155,
-0.01759559102356434,
0.15843242406845093,
0.23347042500972748,
-0.20391854643821716,
-0.33645665645599365,
-0.10632884502410889,
-0.30923619866371155,
0.3028313219547272,
0.4466794431209564,
0.023179948329925537,
-0.12343726307153702,
-0.14738227427005768,
-0.02287391573190689,
-0.1504839062690735,
0.7381172180175781,
0.1973900943994522,
0.05205895006656647,
-0.20328131318092346,
-0.12009226530790329,
-0.2982131242752075,
-0.1874389797449112,
-0.3620207607746124,
0.03378890082240105,
-0.08238071948289871,
0.05054623633623123,
0.38197973370552063,
0.21844333410263062,
0.23135057091712952,
-0.25175949931144714,
-0.04965174198150635,
0.17278419435024261,
-0.12629251182079315,
-0.03470383584499359,
-0.33991608023643494,
0.2288370430469513,
0.004691549576818943,
-0.23961947858333588,
0.10629453510046005,
-0.2555370032787323,
-0.05176548659801483,
-0.06678082048892975,
-0.09105505049228668,
-0.3211205005645752,
0.2661159336566925,
0.3059479594230652,
0.12870904803276062,
0.4071597456932068,
0.3806912302970886,
-0.27518895268440247,
-0.25923845171928406,
0.23454710841178894,
-0.22055846452713013,
0.13603143393993378,
0.2204749882221222,
0.3391202986240387,
-0.21499542891979218,
0.08690203726291656,
-0.4555114805698395,
0.19788971543312073,
0.14851847290992737,
-0.10883864760398865,
-0.23961061239242554,
-0.39074814319610596,
0.2567366063594818,
0.03554645925760269,
0.15163272619247437,
0.05205901712179184,
0.10542979091405869,
0.021445082500576973,
-0.5895580649375916,
0.18796241283416748,
0.4036729037761688,
-0.26990896463394165,
-0.19357123970985413,
-0.5413030982017517,
0.16405446827411652,
-0.0048652333207428455,
0.1507670283317566,
-0.6646758913993835,
-0.01783858612179756,
0.1382293701171875,
0.04616386070847511,
-0.08582189679145813,
0.18816623091697693,
0.17737780511379242,
-0.06223258003592491,
-0.026747092604637146,
0.21041324734687805,
-0.40704357624053955,
-0.39415502548217773,
-0.4229816198348999,
-0.08877716213464737
] |
https://github.com/huggingface/datasets/issues/1718 | Possible cache miss in datasets | Thanks for reporting !
I was able to reproduce thanks to your code and find the origin of the bug.
The cache was not reusing the same file because one object was not deterministic. It comes from a conversion from `set` to `list` in the `datasets.arrrow_dataset.transmit_format` function, where the resulting list would not always be in the same order and therefore the function that computes the hash used by the cache would not always return the same result.
I'm opening a PR to fix this.
Also we plan to do a new release in the coming days so you can expect the fix to be available soon.
Note that you can still specify `cache_file_name=` in the second `map()` call to name the cache file yourself if you want to. | Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
``` | 129 | Possible cache miss in datasets
Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
```
Thanks for reporting !
I was able to reproduce thanks to your code and find the origin of the bug.
The cache was not reusing the same file because one object was not deterministic. It comes from a conversion from `set` to `list` in the `datasets.arrrow_dataset.transmit_format` function, where the resulting list would not always be in the same order and therefore the function that computes the hash used by the cache would not always return the same result.
I'm opening a PR to fix this.
Also we plan to do a new release in the coming days so you can expect the fix to be available soon.
Note that you can still specify `cache_file_name=` in the second `map()` call to name the cache file yourself if you want to. | [
-0.1930394321680069,
0.12105351686477661,
0.05009520798921585,
0.19009333848953247,
0.007696859072893858,
0.036921512335538864,
-0.016855232417583466,
0.23035003244876862,
0.01673312298953533,
-0.10844311118125916,
0.10299880802631378,
0.4139713644981384,
0.22491194307804108,
-0.11172405630350113,
-0.001110300188884139,
0.24461320042610168,
0.3074612021446228,
0.3216937184333801,
-0.1533997654914856,
-0.208875834941864,
-0.289175420999527,
0.1171129122376442,
-0.3328206241130829,
-0.09242920577526093,
-0.41705039143562317,
0.21232819557189941,
-0.0168770719319582,
-0.42083939909935,
0.11226038634777069,
-0.25558674335479736,
0.31771594285964966,
0.08582867681980133,
0.19921879470348358,
0.557023823261261,
-0.0001258203265024349,
-0.26760199666023254,
0.35409584641456604,
-0.06947390735149384,
-0.20524761080741882,
0.07682175189256668,
-0.2844771146774292,
0.03804402053356171,
-0.11269348859786987,
0.023367417976260185,
0.058439310640096664,
0.058709517121315,
0.03796656057238579,
-0.6514902710914612,
0.30601996183395386,
0.1629108190536499,
0.10259271413087845,
0.0332760214805603,
-0.09534268826246262,
0.23457974195480347,
0.050203099846839905,
-0.012025350704789162,
-0.038743797689676285,
-0.33304476737976074,
0.16303858160972595,
-0.3523213565349579,
0.062146712094545364,
0.5163407325744629,
-0.17574362456798553,
-0.14190338551998138,
0.3870672285556793,
-0.011780615895986557,
0.017935380339622498,
-0.26469895243644714,
0.3020607531070709,
-0.06447051465511322,
0.5929014086723328,
-0.37321245670318604,
-0.4453590214252472,
-0.22181552648544312,
-0.2183968871831894,
-0.1797119826078415,
0.34789568185806274,
-0.2814226746559143,
0.11512422561645508,
0.1367775946855545,
-0.5952910780906677,
-0.3717096745967865,
0.2665034532546997,
0.12685030698776245,
-0.0126038221642375,
0.11882913112640381,
-0.04426441341638565,
0.1275966763496399,
-0.25835999846458435,
0.03056361898779869,
0.27869313955307007,
-0.5107076168060303,
-0.02041216753423214,
0.4761804938316345,
-0.4573769271373749,
-0.11419877409934998,
-0.08139568567276001,
0.044457919895648956,
0.03132028132677078,
0.2521778345108032,
-0.10786924511194229,
0.08482856303453445,
-0.10457562655210495,
-0.02482771873474121,
0.17180058360099792,
0.38190513849258423,
0.15994884073734283,
0.39592763781547546,
-0.04663237929344177,
-0.2572212219238281,
-0.4361516833305359,
-0.14235128462314606,
0.10151029378175735,
0.06231677904725075,
0.5376319885253906,
0.02919948473572731,
-0.26707208156585693,
-0.1527191549539566,
0.13509222865104675,
0.11047434061765671,
-0.11315063387155533,
-0.15427201986312866,
0.02068696729838848,
0.1861226111650467,
-0.21872049570083618,
0.5657749176025391,
-0.04890252649784088,
0.011322342790663242,
-0.2269069105386734,
-0.07549622654914856,
-0.2520526945590973,
-0.19494116306304932,
-0.27974164485931396,
0.4240115284919739,
0.10798054188489914,
-0.00875756423920393,
0.19316412508487701,
0.11374563723802567,
0.14129139482975006,
-0.24853020906448364,
0.2450801581144333,
-0.19523467123508453,
0.14468860626220703,
0.03134032338857651,
-0.12242696434259415,
0.5588544607162476,
0.023827893659472466,
0.0820714607834816,
-0.057829733937978745,
0.2793505787849426,
-0.3909226953983307,
-0.0032498773653060198,
0.26785027980804443,
0.07660143822431564,
-0.10498809814453125,
-0.05132686346769333,
-0.13654571771621704,
-0.04772741720080376,
0.6230664253234863,
-0.35340285301208496,
0.00285854353569448,
-0.1369541585445404,
-0.21815979480743408,
-0.35522371530532837,
0.1964019536972046,
0.41514429450035095,
-0.22030092775821686,
-0.12714430689811707,
-0.2892492711544037,
0.42622604966163635,
0.3456283509731293,
0.19041188061237335,
-0.09975957125425339,
0.22389627993106842,
-0.24362382292747498,
0.25334617495536804,
0.3463945686817169,
-0.3264121115207672,
-0.7522773146629333,
-0.06231800094246864,
0.2395535558462143,
0.21382400393486023,
-0.2641492784023285,
0.009117771871387959,
0.0585763119161129,
0.022012649103999138,
-0.04730614647269249,
0.12475938349962234,
0.07109463214874268,
0.047940779477357864,
-0.1934206783771515,
-0.32378414273262024,
0.3307862877845764,
-0.15344886481761932,
0.3734350800514221,
0.20391103625297546,
-0.2786327004432678,
-0.06542865186929703,
0.1897791475057602,
-0.07331199944019318,
0.2045675367116928,
0.21111217141151428,
0.08593922108411789,
0.09632892161607742,
0.34253641963005066,
-0.14452588558197021,
-0.22084525227546692,
0.23616015911102295,
-0.007498309947550297,
-0.40805086493492126,
0.05238117650151253,
-0.0693814605474472,
0.03421063721179962,
-0.17514391243457794,
-0.23687176406383514,
-0.25076714158058167,
0.04695970565080643,
0.29829269647598267,
0.2158329039812088,
0.0493258573114872,
-0.06285588443279266,
0.4346981346607208,
0.22479619085788727,
-0.0474485382437706,
-0.13699759542942047,
0.23143744468688965,
0.13785377144813538,
-0.07235301285982132,
-0.262255996465683,
-0.0077892811968922615,
0.386508584022522,
0.20507816970348358,
-0.17280864715576172,
0.19992290437221527,
0.2821435332298279,
0.13053958117961884,
-0.15808607637882233,
0.03777531534433365,
-0.09649767726659775,
0.07604556530714035,
-0.18035317957401276,
0.018961207941174507,
0.09124196320772171,
-0.20247362554073334,
0.33897024393081665,
-0.09822438657283783,
0.04353925585746765,
0.17285223305225372,
-0.1738722324371338,
-0.11649591475725174,
-0.01941618137061596,
-0.05754147469997406,
0.12157203257083893,
-0.2605113983154297,
-0.12677407264709473,
-0.10074297338724136,
0.40187734365463257,
0.1480000913143158,
0.317086786031723,
0.14310486614704132,
0.5319444537162781,
0.16380415856838226,
0.07024979591369629,
-0.07549664378166199,
-0.5950469374656677,
-0.15330542623996735,
0.0420684814453125,
0.10673389583826065,
0.40316659212112427,
0.0140681192278862,
0.13723517954349518,
-0.10653546452522278,
0.1262332648038864,
0.05367311090230942,
0.08399072289466858,
0.05157412588596344,
0.0034557764884084463,
0.1623285561800003,
0.08191736042499542,
0.12391849607229233,
-0.15448473393917084,
0.3739553391933441,
0.22236989438533783,
0.02240816503763199,
-0.12013319879770279,
-0.004782917443662882,
-0.4614661633968353,
0.2616465389728546,
-0.00941531639546156,
-0.18774226307868958,
-0.10895445942878723,
-0.3240407407283783,
-0.02937140129506588,
0.17503385245800018,
0.23235087096691132,
0.170265331864357,
-0.10677357763051987,
0.16378909349441528,
-0.09658597409725189,
-0.06340808421373367,
-0.2861725091934204,
-0.04422691836953163,
-0.351602703332901,
-0.10436856746673584,
0.027629541233181953,
-0.3332436978816986,
0.10926850140094757,
-0.19780023396015167,
0.044877395033836365,
-0.3304949700832367,
-0.24961386620998383,
0.0687255933880806,
0.14242137968540192,
-0.19136148691177368,
-0.1454961597919464,
-0.13314521312713623,
-0.34062254428863525,
-0.07776153087615967,
0.10528524965047836,
-0.37550339102745056,
-0.058996062725782394,
-0.19424286484718323,
0.22689706087112427,
-0.07328362762928009,
0.06139032542705536,
-0.0987810418009758,
0.045062899589538574,
0.0523565337061882,
-0.09228018671274185,
-0.12052033096551895,
-0.09919613599777222,
-0.10735157877206802,
-0.17789514362812042,
-0.14736905694007874,
-0.29404228925704956,
-0.1225033849477768,
-0.5240330100059509,
-0.2998073101043701,
0.5365316867828369,
-0.12470077723264694,
-0.07930251210927963,
-0.10533584654331207,
-0.02949395589530468,
0.30539795756340027,
0.46651050448417664,
-0.5257644653320312,
-0.06458007544279099,
-0.20277538895606995,
-0.18987230956554413,
-0.14755530655384064,
0.3041582405567169,
0.3952637016773224,
0.19113337993621826,
0.1284651905298233,
-0.4285716414451599,
-0.2033013552427292,
0.020704658702015877,
0.001100674387998879,
0.4422149956226349,
-0.03273066133260727,
0.20218230783939362,
-0.08188918232917786,
0.803088903427124,
0.6181523203849792,
-0.21779578924179077,
0.23084500432014465,
0.11477915197610855,
0.3255804777145386,
-0.14092759788036346,
-0.19788827002048492,
-0.1367318034172058,
-0.3422306776046753,
0.09499292075634003,
0.18335063755512238,
0.1425251066684723,
-0.3120465576648712,
-0.15705452859401703,
0.09193017333745956,
-0.3112707734107971,
-0.32971301674842834,
-0.08052312582731247,
-0.24852998554706573,
0.3068063259124756,
0.351083904504776,
0.3141098916530609,
-0.7173702716827393,
-0.12203891575336456,
0.25282880663871765,
-0.21448352932929993,
0.468978613615036,
0.11479660868644714,
-0.21096168458461761,
-0.13886409997940063,
-0.34431883692741394,
0.3209450840950012,
0.22757066786289215,
0.366901695728302,
0.21778354048728943,
0.017415065318346024,
-0.1508578658103943,
0.10885759443044662,
0.43157070875167847,
-0.7976605296134949,
-0.3380017578601837,
-0.11149293184280396,
-0.05547370761632919,
-0.02103240229189396,
-0.04060209542512894,
0.351041704416275,
0.22571229934692383,
0.04130013287067413,
0.2744194269180298,
0.03855278715491295,
0.007579932454973459,
-0.32338544726371765,
0.17293407022953033,
-0.23463448882102966,
-0.31523334980010986,
-0.098659947514534,
0.27012526988983154,
-0.09005975723266602,
-0.2996428906917572,
0.028634272515773773,
-0.16891875863075256,
0.05742333084344864,
-0.1737726479768753,
-0.3051755726337433,
0.05799715220928192,
0.10664761066436768,
0.02927437238395214,
0.555604875087738,
-0.028238872066140175,
0.3208509087562561,
0.1760173887014389,
0.01832927018404007,
0.07111603021621704,
0.2807704210281372,
-0.14288800954818726,
-0.23373687267303467,
-0.0897052064538002,
-0.09232661873102188,
0.2570893168449402,
-0.031962279230356216,
-0.20561066269874573,
-0.0013508492847904563,
-0.2553195357322693,
0.02588437683880329,
-0.2113853245973587,
0.13468779623508453,
0.36525049805641174,
0.359734445810318,
-0.4407244920730591,
-0.4705248773097992,
0.17312723398208618,
0.27375128865242004,
-0.18334780633449554,
0.5526423454284668,
-0.08299602568149567,
-0.2301497608423233,
0.15582232177257538,
0.044628243893384933,
1.0017777681350708,
0.02924300916492939,
0.09188663959503174,
-0.249991312623024,
0.05647731199860573,
0.6650121212005615,
-0.37294626235961914,
0.33067670464515686,
-0.28588083386421204,
-0.21053113043308258,
-0.18871116638183594,
-0.22684405744075775,
-0.08356260508298874,
0.2917119860649109,
-0.199439138174057,
0.49630865454673767,
0.05405120924115181,
0.5679223537445068,
0.22493848204612732,
0.07031873613595963,
0.19062359631061554,
-0.11996711045503616,
0.26166602969169617,
0.07315423339605331,
0.1753249317407608,
0.3935573101043701,
-0.090989850461483,
0.11189211159944534,
0.09074927121400833,
-0.09879741817712784,
-0.2807954251766205,
0.10617554932832718,
-0.36558911204338074,
0.25313106179237366,
-0.050557419657707214,
0.17433030903339386,
0.10042291134595871,
0.35758060216903687,
0.5060385465621948,
0.208212211728096,
-0.18855230510234833,
0.13585598766803741,
0.1558087170124054,
0.26170453429222107,
-0.14115577936172485,
-0.2263828068971634,
0.028073757886886597,
0.00029432683368213475,
-0.20791734755039215,
-0.010965553112328053,
0.032626669853925705,
-0.4142288863658905,
-0.35285714268684387,
-0.027025580406188965,
0.3227230906486511,
-0.20366187393665314,
0.07059132307767868,
0.18813054263591766,
0.06304824352264404,
-0.04375631734728813,
0.03805667161941528,
-0.022182496264576912,
0.07383963465690613,
0.5688582062721252,
-0.27172350883483887,
-0.13928772509098053,
-0.013238712213933468,
0.45977982878685,
0.3361430764198303,
-0.1777527779340744,
0.5680007934570312,
-0.2200244665145874,
-0.24020403623580933,
-0.04722222313284874,
-0.4798620641231537,
0.05840085446834564,
-0.3148994445800781,
-0.03784668445587158,
-0.3966694474220276,
0.06053049489855766,
0.14067117869853973,
-0.05752266198396683,
-0.030745241791009903,
-0.19937829673290253,
-0.12169584631919861,
-0.22992083430290222,
-0.20371480286121368,
0.04219549894332886,
0.04360311105847359,
0.16316339373588562,
0.22557605803012848,
0.06446992605924606,
-0.04053090512752533,
0.41898563504219055,
-0.15359556674957275,
0.04440203681588173,
0.1507003903388977,
0.12219609320163727,
-0.21099025011062622,
-0.08776326477527618,
-0.05869218707084656,
-0.10460884124040604,
-0.11376234143972397,
0.31145164370536804,
-0.06390237808227539,
-0.052166879177093506,
0.09888532012701035,
0.20194368064403534,
0.20774772763252258,
-0.02391507849097252,
-0.04570278152823448,
-0.018330128863453865,
0.07870154082775116,
-0.36523571610450745,
0.09146980941295624,
0.05968470126390457,
-0.022996913641691208,
0.23533840477466583,
0.33578044176101685,
-0.08331224322319031,
-0.278767466545105,
0.15750250220298767,
-0.06761009246110916,
0.04965874180197716,
-0.029231438413262367,
0.2691749632358551,
0.3636685311794281,
0.019830094650387764,
-0.08000373095273972,
-0.029180137440562248,
0.11315567046403885,
0.032755881547927856,
0.3520662188529968,
-0.41420525312423706,
0.017141757532954216,
0.2618720233440399,
-0.09399990737438202,
0.3780743181705475,
-0.12554869055747986,
-0.35121941566467285,
0.28936728835105896,
0.11027290672063828,
-0.2677420973777771,
-0.345725417137146,
0.28659337759017944,
0.09862248599529266,
-0.1312386393547058,
0.0857275202870369,
0.033620670437812805,
-0.17569436132907867,
0.32646068930625916,
0.10745035111904144,
0.4046725332736969,
-0.43510374426841736,
0.3502947986125946,
0.2615407109260559,
0.2842252552509308,
0.14601635932922363,
0.17856775224208832,
0.21875354647636414,
-0.2382124811410904,
0.1690315306186676,
0.11954769492149353,
0.2626832127571106,
0.15095333755016327,
-0.086133673787117,
0.06701483577489853,
-0.29401764273643494,
-0.019943810999393463,
0.3258395493030548,
-0.10453580319881439,
0.3778480887413025,
-0.056529004126787186,
-0.12614938616752625,
0.18447980284690857,
-0.06482245773077011,
-0.28930363059043884,
0.17136533558368683,
-0.25771665573120117,
-0.13739396631717682,
0.2168830782175064,
-0.16063416004180908,
-0.019861320033669472,
-0.1444624364376068,
0.13803249597549438,
0.001731676165945828,
0.5208861827850342,
0.019092215225100517,
-0.15047608315944672,
-0.11493953317403793,
-0.2739807367324829,
0.18267427384853363,
0.5745248198509216,
-0.1868024468421936,
0.09266497194766998,
-0.21385496854782104,
-0.023914217948913574,
-0.09012328088283539,
0.3141930401325226,
0.17926880717277527,
0.40270689129829407,
-0.14731615781784058,
0.08058705925941467,
0.25736257433891296,
0.09969538450241089,
-0.036729343235492706,
0.4875115752220154,
-0.1763319969177246,
-0.39671358466148376,
0.0521714985370636,
0.06903274357318878,
-0.03182864189147949,
-0.15987738966941833,
-0.271125853061676,
0.36790192127227783,
-0.4220820367336273,
0.3023279309272766,
-0.09546435624361038,
0.07348061352968216,
-0.06744930893182755,
0.18109838664531708,
-0.3221395015716553,
0.19769367575645447,
0.5176385045051575,
-0.11355486512184143,
0.1017570048570633,
-0.2707713842391968,
0.028198523446917534,
-0.040558140724897385,
0.28504467010498047,
0.43473348021507263,
-0.25262564420700073,
-0.20765429735183716,
-0.2799324691295624,
-0.4617501199245453,
0.37353914976119995,
-0.14974680542945862,
0.2867359519004822,
0.023986220359802246,
0.10445931553840637,
-0.05198495462536812,
-0.049172233790159225,
0.3006148040294647,
0.1457594782114029,
-0.227987140417099,
0.30767199397087097,
-0.347115695476532,
-0.04059506207704544,
-0.3000037372112274,
0.0067510767839848995,
0.17163203656673431,
-0.3455072343349457,
0.4444892108440399,
0.19556084275245667,
0.02729378640651703,
-0.02339962124824524,
0.06782667338848114,
0.21913102269172668,
-0.0610969141125679,
0.5450428128242493,
0.34657686948776245,
0.23694071173667908,
-0.02093258500099182,
-0.09342171996831894,
-0.09495437890291214,
-0.02100510708987713,
-0.12074241787195206,
0.04701271280646324,
-0.12103546410799026,
0.08204271644353867,
-0.4738940894603729,
0.0651584044098854,
-0.3022507131099701,
-0.19563744962215424,
0.28562411665916443,
-0.0026544532738626003,
-0.1738128364086151,
-0.15563999116420746,
-0.06103752553462982,
0.1276528686285019,
0.16682031750679016,
0.4713115096092224,
-0.22909878194332123,
0.4036518335342407,
-0.2490561157464981,
-0.19765466451644897,
0.33298826217651367,
-0.6163407564163208,
-0.4550292193889618,
-0.2239353060722351,
0.137532576918602,
0.11766307801008224,
-0.3350003957748413,
-0.6715466380119324,
-0.18104369938373566,
0.31741297245025635,
0.08836812525987625,
-0.03373776376247406,
0.14054562151432037,
0.04440924897789955,
0.248386949300766,
-0.1456892192363739,
0.5623006224632263,
0.055051062256097794,
0.02951623685657978,
0.2277144491672516,
-0.1859031319618225
] |
https://github.com/huggingface/datasets/issues/1718 | Possible cache miss in datasets | Thanks for the fast reply, waiting for the fix :)
I tried to use `cache_file_names` and wasn't sure how, I tried to give it the following:
```
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
cache_file_names={k: f'.cache/{str(k)}' for k in tokenized_datasets}
)
```
and got an error:
```
multiprocess.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/venv/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/venv/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 157, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/venv/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/venv/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1491, in _map_single
tmp_file = tempfile.NamedTemporaryFile("wb", dir=os.path.dirname(cache_file_name), delete=False)
File "/usr/lib/python3.6/tempfile.py", line 690, in NamedTemporaryFile
(fd, name) = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
File "/usr/lib/python3.6/tempfile.py", line 401, in _mkstemp_inner
fd = _os.open(file, flags, 0o600)
FileNotFoundError: [Errno 2] No such file or directory: '_00000_of_00060.cache/tmpsvszxtop'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "test.py", line 48, in <module>
cache_file_names={k: f'.cache/{str(k)}' for k in tokenized_datasets}
File "/venv/lib/python3.6/site-packages/datasets/dataset_dict.py", line 303, in map
for k, dataset in self.items()
File "/venv/lib/python3.6/site-packages/datasets/dataset_dict.py", line 303, in <dictcomp>
for k, dataset in self.items()
File "/venv/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1317, in map
transformed_shards = [r.get() for r in results]
File "/venv/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1317, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/venv/lib/python3.6/site-packages/multiprocess/pool.py", line 644, in get
raise self._value
FileNotFoundError: [Errno 2] No such file or directory: '_00000_of_00060.cache/tmpsvszxtop'
```
| Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
``` | 229 | Possible cache miss in datasets
Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
```
Thanks for the fast reply, waiting for the fix :)
I tried to use `cache_file_names` and wasn't sure how, I tried to give it the following:
```
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
cache_file_names={k: f'.cache/{str(k)}' for k in tokenized_datasets}
)
```
and got an error:
```
multiprocess.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/venv/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/venv/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 157, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/venv/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
out = func(self, *args, **kwargs)
File "/venv/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1491, in _map_single
tmp_file = tempfile.NamedTemporaryFile("wb", dir=os.path.dirname(cache_file_name), delete=False)
File "/usr/lib/python3.6/tempfile.py", line 690, in NamedTemporaryFile
(fd, name) = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
File "/usr/lib/python3.6/tempfile.py", line 401, in _mkstemp_inner
fd = _os.open(file, flags, 0o600)
FileNotFoundError: [Errno 2] No such file or directory: '_00000_of_00060.cache/tmpsvszxtop'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "test.py", line 48, in <module>
cache_file_names={k: f'.cache/{str(k)}' for k in tokenized_datasets}
File "/venv/lib/python3.6/site-packages/datasets/dataset_dict.py", line 303, in map
for k, dataset in self.items()
File "/venv/lib/python3.6/site-packages/datasets/dataset_dict.py", line 303, in <dictcomp>
for k, dataset in self.items()
File "/venv/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1317, in map
transformed_shards = [r.get() for r in results]
File "/venv/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1317, in <listcomp>
transformed_shards = [r.get() for r in results]
File "/venv/lib/python3.6/site-packages/multiprocess/pool.py", line 644, in get
raise self._value
FileNotFoundError: [Errno 2] No such file or directory: '_00000_of_00060.cache/tmpsvszxtop'
```
| [
-0.1930394321680069,
0.12105351686477661,
0.05009520798921585,
0.19009333848953247,
0.007696859072893858,
0.036921512335538864,
-0.016855232417583466,
0.23035003244876862,
0.01673312298953533,
-0.10844311118125916,
0.10299880802631378,
0.4139713644981384,
0.22491194307804108,
-0.11172405630350113,
-0.001110300188884139,
0.24461320042610168,
0.3074612021446228,
0.3216937184333801,
-0.1533997654914856,
-0.208875834941864,
-0.289175420999527,
0.1171129122376442,
-0.3328206241130829,
-0.09242920577526093,
-0.41705039143562317,
0.21232819557189941,
-0.0168770719319582,
-0.42083939909935,
0.11226038634777069,
-0.25558674335479736,
0.31771594285964966,
0.08582867681980133,
0.19921879470348358,
0.557023823261261,
-0.0001258203265024349,
-0.26760199666023254,
0.35409584641456604,
-0.06947390735149384,
-0.20524761080741882,
0.07682175189256668,
-0.2844771146774292,
0.03804402053356171,
-0.11269348859786987,
0.023367417976260185,
0.058439310640096664,
0.058709517121315,
0.03796656057238579,
-0.6514902710914612,
0.30601996183395386,
0.1629108190536499,
0.10259271413087845,
0.0332760214805603,
-0.09534268826246262,
0.23457974195480347,
0.050203099846839905,
-0.012025350704789162,
-0.038743797689676285,
-0.33304476737976074,
0.16303858160972595,
-0.3523213565349579,
0.062146712094545364,
0.5163407325744629,
-0.17574362456798553,
-0.14190338551998138,
0.3870672285556793,
-0.011780615895986557,
0.017935380339622498,
-0.26469895243644714,
0.3020607531070709,
-0.06447051465511322,
0.5929014086723328,
-0.37321245670318604,
-0.4453590214252472,
-0.22181552648544312,
-0.2183968871831894,
-0.1797119826078415,
0.34789568185806274,
-0.2814226746559143,
0.11512422561645508,
0.1367775946855545,
-0.5952910780906677,
-0.3717096745967865,
0.2665034532546997,
0.12685030698776245,
-0.0126038221642375,
0.11882913112640381,
-0.04426441341638565,
0.1275966763496399,
-0.25835999846458435,
0.03056361898779869,
0.27869313955307007,
-0.5107076168060303,
-0.02041216753423214,
0.4761804938316345,
-0.4573769271373749,
-0.11419877409934998,
-0.08139568567276001,
0.044457919895648956,
0.03132028132677078,
0.2521778345108032,
-0.10786924511194229,
0.08482856303453445,
-0.10457562655210495,
-0.02482771873474121,
0.17180058360099792,
0.38190513849258423,
0.15994884073734283,
0.39592763781547546,
-0.04663237929344177,
-0.2572212219238281,
-0.4361516833305359,
-0.14235128462314606,
0.10151029378175735,
0.06231677904725075,
0.5376319885253906,
0.02919948473572731,
-0.26707208156585693,
-0.1527191549539566,
0.13509222865104675,
0.11047434061765671,
-0.11315063387155533,
-0.15427201986312866,
0.02068696729838848,
0.1861226111650467,
-0.21872049570083618,
0.5657749176025391,
-0.04890252649784088,
0.011322342790663242,
-0.2269069105386734,
-0.07549622654914856,
-0.2520526945590973,
-0.19494116306304932,
-0.27974164485931396,
0.4240115284919739,
0.10798054188489914,
-0.00875756423920393,
0.19316412508487701,
0.11374563723802567,
0.14129139482975006,
-0.24853020906448364,
0.2450801581144333,
-0.19523467123508453,
0.14468860626220703,
0.03134032338857651,
-0.12242696434259415,
0.5588544607162476,
0.023827893659472466,
0.0820714607834816,
-0.057829733937978745,
0.2793505787849426,
-0.3909226953983307,
-0.0032498773653060198,
0.26785027980804443,
0.07660143822431564,
-0.10498809814453125,
-0.05132686346769333,
-0.13654571771621704,
-0.04772741720080376,
0.6230664253234863,
-0.35340285301208496,
0.00285854353569448,
-0.1369541585445404,
-0.21815979480743408,
-0.35522371530532837,
0.1964019536972046,
0.41514429450035095,
-0.22030092775821686,
-0.12714430689811707,
-0.2892492711544037,
0.42622604966163635,
0.3456283509731293,
0.19041188061237335,
-0.09975957125425339,
0.22389627993106842,
-0.24362382292747498,
0.25334617495536804,
0.3463945686817169,
-0.3264121115207672,
-0.7522773146629333,
-0.06231800094246864,
0.2395535558462143,
0.21382400393486023,
-0.2641492784023285,
0.009117771871387959,
0.0585763119161129,
0.022012649103999138,
-0.04730614647269249,
0.12475938349962234,
0.07109463214874268,
0.047940779477357864,
-0.1934206783771515,
-0.32378414273262024,
0.3307862877845764,
-0.15344886481761932,
0.3734350800514221,
0.20391103625297546,
-0.2786327004432678,
-0.06542865186929703,
0.1897791475057602,
-0.07331199944019318,
0.2045675367116928,
0.21111217141151428,
0.08593922108411789,
0.09632892161607742,
0.34253641963005066,
-0.14452588558197021,
-0.22084525227546692,
0.23616015911102295,
-0.007498309947550297,
-0.40805086493492126,
0.05238117650151253,
-0.0693814605474472,
0.03421063721179962,
-0.17514391243457794,
-0.23687176406383514,
-0.25076714158058167,
0.04695970565080643,
0.29829269647598267,
0.2158329039812088,
0.0493258573114872,
-0.06285588443279266,
0.4346981346607208,
0.22479619085788727,
-0.0474485382437706,
-0.13699759542942047,
0.23143744468688965,
0.13785377144813538,
-0.07235301285982132,
-0.262255996465683,
-0.0077892811968922615,
0.386508584022522,
0.20507816970348358,
-0.17280864715576172,
0.19992290437221527,
0.2821435332298279,
0.13053958117961884,
-0.15808607637882233,
0.03777531534433365,
-0.09649767726659775,
0.07604556530714035,
-0.18035317957401276,
0.018961207941174507,
0.09124196320772171,
-0.20247362554073334,
0.33897024393081665,
-0.09822438657283783,
0.04353925585746765,
0.17285223305225372,
-0.1738722324371338,
-0.11649591475725174,
-0.01941618137061596,
-0.05754147469997406,
0.12157203257083893,
-0.2605113983154297,
-0.12677407264709473,
-0.10074297338724136,
0.40187734365463257,
0.1480000913143158,
0.317086786031723,
0.14310486614704132,
0.5319444537162781,
0.16380415856838226,
0.07024979591369629,
-0.07549664378166199,
-0.5950469374656677,
-0.15330542623996735,
0.0420684814453125,
0.10673389583826065,
0.40316659212112427,
0.0140681192278862,
0.13723517954349518,
-0.10653546452522278,
0.1262332648038864,
0.05367311090230942,
0.08399072289466858,
0.05157412588596344,
0.0034557764884084463,
0.1623285561800003,
0.08191736042499542,
0.12391849607229233,
-0.15448473393917084,
0.3739553391933441,
0.22236989438533783,
0.02240816503763199,
-0.12013319879770279,
-0.004782917443662882,
-0.4614661633968353,
0.2616465389728546,
-0.00941531639546156,
-0.18774226307868958,
-0.10895445942878723,
-0.3240407407283783,
-0.02937140129506588,
0.17503385245800018,
0.23235087096691132,
0.170265331864357,
-0.10677357763051987,
0.16378909349441528,
-0.09658597409725189,
-0.06340808421373367,
-0.2861725091934204,
-0.04422691836953163,
-0.351602703332901,
-0.10436856746673584,
0.027629541233181953,
-0.3332436978816986,
0.10926850140094757,
-0.19780023396015167,
0.044877395033836365,
-0.3304949700832367,
-0.24961386620998383,
0.0687255933880806,
0.14242137968540192,
-0.19136148691177368,
-0.1454961597919464,
-0.13314521312713623,
-0.34062254428863525,
-0.07776153087615967,
0.10528524965047836,
-0.37550339102745056,
-0.058996062725782394,
-0.19424286484718323,
0.22689706087112427,
-0.07328362762928009,
0.06139032542705536,
-0.0987810418009758,
0.045062899589538574,
0.0523565337061882,
-0.09228018671274185,
-0.12052033096551895,
-0.09919613599777222,
-0.10735157877206802,
-0.17789514362812042,
-0.14736905694007874,
-0.29404228925704956,
-0.1225033849477768,
-0.5240330100059509,
-0.2998073101043701,
0.5365316867828369,
-0.12470077723264694,
-0.07930251210927963,
-0.10533584654331207,
-0.02949395589530468,
0.30539795756340027,
0.46651050448417664,
-0.5257644653320312,
-0.06458007544279099,
-0.20277538895606995,
-0.18987230956554413,
-0.14755530655384064,
0.3041582405567169,
0.3952637016773224,
0.19113337993621826,
0.1284651905298233,
-0.4285716414451599,
-0.2033013552427292,
0.020704658702015877,
0.001100674387998879,
0.4422149956226349,
-0.03273066133260727,
0.20218230783939362,
-0.08188918232917786,
0.803088903427124,
0.6181523203849792,
-0.21779578924179077,
0.23084500432014465,
0.11477915197610855,
0.3255804777145386,
-0.14092759788036346,
-0.19788827002048492,
-0.1367318034172058,
-0.3422306776046753,
0.09499292075634003,
0.18335063755512238,
0.1425251066684723,
-0.3120465576648712,
-0.15705452859401703,
0.09193017333745956,
-0.3112707734107971,
-0.32971301674842834,
-0.08052312582731247,
-0.24852998554706573,
0.3068063259124756,
0.351083904504776,
0.3141098916530609,
-0.7173702716827393,
-0.12203891575336456,
0.25282880663871765,
-0.21448352932929993,
0.468978613615036,
0.11479660868644714,
-0.21096168458461761,
-0.13886409997940063,
-0.34431883692741394,
0.3209450840950012,
0.22757066786289215,
0.366901695728302,
0.21778354048728943,
0.017415065318346024,
-0.1508578658103943,
0.10885759443044662,
0.43157070875167847,
-0.7976605296134949,
-0.3380017578601837,
-0.11149293184280396,
-0.05547370761632919,
-0.02103240229189396,
-0.04060209542512894,
0.351041704416275,
0.22571229934692383,
0.04130013287067413,
0.2744194269180298,
0.03855278715491295,
0.007579932454973459,
-0.32338544726371765,
0.17293407022953033,
-0.23463448882102966,
-0.31523334980010986,
-0.098659947514534,
0.27012526988983154,
-0.09005975723266602,
-0.2996428906917572,
0.028634272515773773,
-0.16891875863075256,
0.05742333084344864,
-0.1737726479768753,
-0.3051755726337433,
0.05799715220928192,
0.10664761066436768,
0.02927437238395214,
0.555604875087738,
-0.028238872066140175,
0.3208509087562561,
0.1760173887014389,
0.01832927018404007,
0.07111603021621704,
0.2807704210281372,
-0.14288800954818726,
-0.23373687267303467,
-0.0897052064538002,
-0.09232661873102188,
0.2570893168449402,
-0.031962279230356216,
-0.20561066269874573,
-0.0013508492847904563,
-0.2553195357322693,
0.02588437683880329,
-0.2113853245973587,
0.13468779623508453,
0.36525049805641174,
0.359734445810318,
-0.4407244920730591,
-0.4705248773097992,
0.17312723398208618,
0.27375128865242004,
-0.18334780633449554,
0.5526423454284668,
-0.08299602568149567,
-0.2301497608423233,
0.15582232177257538,
0.044628243893384933,
1.0017777681350708,
0.02924300916492939,
0.09188663959503174,
-0.249991312623024,
0.05647731199860573,
0.6650121212005615,
-0.37294626235961914,
0.33067670464515686,
-0.28588083386421204,
-0.21053113043308258,
-0.18871116638183594,
-0.22684405744075775,
-0.08356260508298874,
0.2917119860649109,
-0.199439138174057,
0.49630865454673767,
0.05405120924115181,
0.5679223537445068,
0.22493848204612732,
0.07031873613595963,
0.19062359631061554,
-0.11996711045503616,
0.26166602969169617,
0.07315423339605331,
0.1753249317407608,
0.3935573101043701,
-0.090989850461483,
0.11189211159944534,
0.09074927121400833,
-0.09879741817712784,
-0.2807954251766205,
0.10617554932832718,
-0.36558911204338074,
0.25313106179237366,
-0.050557419657707214,
0.17433030903339386,
0.10042291134595871,
0.35758060216903687,
0.5060385465621948,
0.208212211728096,
-0.18855230510234833,
0.13585598766803741,
0.1558087170124054,
0.26170453429222107,
-0.14115577936172485,
-0.2263828068971634,
0.028073757886886597,
0.00029432683368213475,
-0.20791734755039215,
-0.010965553112328053,
0.032626669853925705,
-0.4142288863658905,
-0.35285714268684387,
-0.027025580406188965,
0.3227230906486511,
-0.20366187393665314,
0.07059132307767868,
0.18813054263591766,
0.06304824352264404,
-0.04375631734728813,
0.03805667161941528,
-0.022182496264576912,
0.07383963465690613,
0.5688582062721252,
-0.27172350883483887,
-0.13928772509098053,
-0.013238712213933468,
0.45977982878685,
0.3361430764198303,
-0.1777527779340744,
0.5680007934570312,
-0.2200244665145874,
-0.24020403623580933,
-0.04722222313284874,
-0.4798620641231537,
0.05840085446834564,
-0.3148994445800781,
-0.03784668445587158,
-0.3966694474220276,
0.06053049489855766,
0.14067117869853973,
-0.05752266198396683,
-0.030745241791009903,
-0.19937829673290253,
-0.12169584631919861,
-0.22992083430290222,
-0.20371480286121368,
0.04219549894332886,
0.04360311105847359,
0.16316339373588562,
0.22557605803012848,
0.06446992605924606,
-0.04053090512752533,
0.41898563504219055,
-0.15359556674957275,
0.04440203681588173,
0.1507003903388977,
0.12219609320163727,
-0.21099025011062622,
-0.08776326477527618,
-0.05869218707084656,
-0.10460884124040604,
-0.11376234143972397,
0.31145164370536804,
-0.06390237808227539,
-0.052166879177093506,
0.09888532012701035,
0.20194368064403534,
0.20774772763252258,
-0.02391507849097252,
-0.04570278152823448,
-0.018330128863453865,
0.07870154082775116,
-0.36523571610450745,
0.09146980941295624,
0.05968470126390457,
-0.022996913641691208,
0.23533840477466583,
0.33578044176101685,
-0.08331224322319031,
-0.278767466545105,
0.15750250220298767,
-0.06761009246110916,
0.04965874180197716,
-0.029231438413262367,
0.2691749632358551,
0.3636685311794281,
0.019830094650387764,
-0.08000373095273972,
-0.029180137440562248,
0.11315567046403885,
0.032755881547927856,
0.3520662188529968,
-0.41420525312423706,
0.017141757532954216,
0.2618720233440399,
-0.09399990737438202,
0.3780743181705475,
-0.12554869055747986,
-0.35121941566467285,
0.28936728835105896,
0.11027290672063828,
-0.2677420973777771,
-0.345725417137146,
0.28659337759017944,
0.09862248599529266,
-0.1312386393547058,
0.0857275202870369,
0.033620670437812805,
-0.17569436132907867,
0.32646068930625916,
0.10745035111904144,
0.4046725332736969,
-0.43510374426841736,
0.3502947986125946,
0.2615407109260559,
0.2842252552509308,
0.14601635932922363,
0.17856775224208832,
0.21875354647636414,
-0.2382124811410904,
0.1690315306186676,
0.11954769492149353,
0.2626832127571106,
0.15095333755016327,
-0.086133673787117,
0.06701483577489853,
-0.29401764273643494,
-0.019943810999393463,
0.3258395493030548,
-0.10453580319881439,
0.3778480887413025,
-0.056529004126787186,
-0.12614938616752625,
0.18447980284690857,
-0.06482245773077011,
-0.28930363059043884,
0.17136533558368683,
-0.25771665573120117,
-0.13739396631717682,
0.2168830782175064,
-0.16063416004180908,
-0.019861320033669472,
-0.1444624364376068,
0.13803249597549438,
0.001731676165945828,
0.5208861827850342,
0.019092215225100517,
-0.15047608315944672,
-0.11493953317403793,
-0.2739807367324829,
0.18267427384853363,
0.5745248198509216,
-0.1868024468421936,
0.09266497194766998,
-0.21385496854782104,
-0.023914217948913574,
-0.09012328088283539,
0.3141930401325226,
0.17926880717277527,
0.40270689129829407,
-0.14731615781784058,
0.08058705925941467,
0.25736257433891296,
0.09969538450241089,
-0.036729343235492706,
0.4875115752220154,
-0.1763319969177246,
-0.39671358466148376,
0.0521714985370636,
0.06903274357318878,
-0.03182864189147949,
-0.15987738966941833,
-0.271125853061676,
0.36790192127227783,
-0.4220820367336273,
0.3023279309272766,
-0.09546435624361038,
0.07348061352968216,
-0.06744930893182755,
0.18109838664531708,
-0.3221395015716553,
0.19769367575645447,
0.5176385045051575,
-0.11355486512184143,
0.1017570048570633,
-0.2707713842391968,
0.028198523446917534,
-0.040558140724897385,
0.28504467010498047,
0.43473348021507263,
-0.25262564420700073,
-0.20765429735183716,
-0.2799324691295624,
-0.4617501199245453,
0.37353914976119995,
-0.14974680542945862,
0.2867359519004822,
0.023986220359802246,
0.10445931553840637,
-0.05198495462536812,
-0.049172233790159225,
0.3006148040294647,
0.1457594782114029,
-0.227987140417099,
0.30767199397087097,
-0.347115695476532,
-0.04059506207704544,
-0.3000037372112274,
0.0067510767839848995,
0.17163203656673431,
-0.3455072343349457,
0.4444892108440399,
0.19556084275245667,
0.02729378640651703,
-0.02339962124824524,
0.06782667338848114,
0.21913102269172668,
-0.0610969141125679,
0.5450428128242493,
0.34657686948776245,
0.23694071173667908,
-0.02093258500099182,
-0.09342171996831894,
-0.09495437890291214,
-0.02100510708987713,
-0.12074241787195206,
0.04701271280646324,
-0.12103546410799026,
0.08204271644353867,
-0.4738940894603729,
0.0651584044098854,
-0.3022507131099701,
-0.19563744962215424,
0.28562411665916443,
-0.0026544532738626003,
-0.1738128364086151,
-0.15563999116420746,
-0.06103752553462982,
0.1276528686285019,
0.16682031750679016,
0.4713115096092224,
-0.22909878194332123,
0.4036518335342407,
-0.2490561157464981,
-0.19765466451644897,
0.33298826217651367,
-0.6163407564163208,
-0.4550292193889618,
-0.2239353060722351,
0.137532576918602,
0.11766307801008224,
-0.3350003957748413,
-0.6715466380119324,
-0.18104369938373566,
0.31741297245025635,
0.08836812525987625,
-0.03373776376247406,
0.14054562151432037,
0.04440924897789955,
0.248386949300766,
-0.1456892192363739,
0.5623006224632263,
0.055051062256097794,
0.02951623685657978,
0.2277144491672516,
-0.1859031319618225
] |
https://github.com/huggingface/datasets/issues/1718 | Possible cache miss in datasets | The documentation says
```
cache_file_names (`Optional[Dict[str, str]]`, defaults to `None`): Provide the name of a cache file to use to store the
results of the computation instead of the automatically generated cache file name.
You have to provide one :obj:`cache_file_name` per dataset in the dataset dictionary.
```
What is expected is simply the name of a file, not a path. The file will be located in the cache directory of the `wikitext` dataset. You can try again with something like
```python
cache_file_names = {k: f'tokenized_and_grouped_{str(k)}' for k in tokenized_datasets}
``` | Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
``` | 90 | Possible cache miss in datasets
Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
```
The documentation says
```
cache_file_names (`Optional[Dict[str, str]]`, defaults to `None`): Provide the name of a cache file to use to store the
results of the computation instead of the automatically generated cache file name.
You have to provide one :obj:`cache_file_name` per dataset in the dataset dictionary.
```
What is expected is simply the name of a file, not a path. The file will be located in the cache directory of the `wikitext` dataset. You can try again with something like
```python
cache_file_names = {k: f'tokenized_and_grouped_{str(k)}' for k in tokenized_datasets}
``` | [
-0.1930394321680069,
0.12105351686477661,
0.05009520798921585,
0.19009333848953247,
0.007696859072893858,
0.036921512335538864,
-0.016855232417583466,
0.23035003244876862,
0.01673312298953533,
-0.10844311118125916,
0.10299880802631378,
0.4139713644981384,
0.22491194307804108,
-0.11172405630350113,
-0.001110300188884139,
0.24461320042610168,
0.3074612021446228,
0.3216937184333801,
-0.1533997654914856,
-0.208875834941864,
-0.289175420999527,
0.1171129122376442,
-0.3328206241130829,
-0.09242920577526093,
-0.41705039143562317,
0.21232819557189941,
-0.0168770719319582,
-0.42083939909935,
0.11226038634777069,
-0.25558674335479736,
0.31771594285964966,
0.08582867681980133,
0.19921879470348358,
0.557023823261261,
-0.0001258203265024349,
-0.26760199666023254,
0.35409584641456604,
-0.06947390735149384,
-0.20524761080741882,
0.07682175189256668,
-0.2844771146774292,
0.03804402053356171,
-0.11269348859786987,
0.023367417976260185,
0.058439310640096664,
0.058709517121315,
0.03796656057238579,
-0.6514902710914612,
0.30601996183395386,
0.1629108190536499,
0.10259271413087845,
0.0332760214805603,
-0.09534268826246262,
0.23457974195480347,
0.050203099846839905,
-0.012025350704789162,
-0.038743797689676285,
-0.33304476737976074,
0.16303858160972595,
-0.3523213565349579,
0.062146712094545364,
0.5163407325744629,
-0.17574362456798553,
-0.14190338551998138,
0.3870672285556793,
-0.011780615895986557,
0.017935380339622498,
-0.26469895243644714,
0.3020607531070709,
-0.06447051465511322,
0.5929014086723328,
-0.37321245670318604,
-0.4453590214252472,
-0.22181552648544312,
-0.2183968871831894,
-0.1797119826078415,
0.34789568185806274,
-0.2814226746559143,
0.11512422561645508,
0.1367775946855545,
-0.5952910780906677,
-0.3717096745967865,
0.2665034532546997,
0.12685030698776245,
-0.0126038221642375,
0.11882913112640381,
-0.04426441341638565,
0.1275966763496399,
-0.25835999846458435,
0.03056361898779869,
0.27869313955307007,
-0.5107076168060303,
-0.02041216753423214,
0.4761804938316345,
-0.4573769271373749,
-0.11419877409934998,
-0.08139568567276001,
0.044457919895648956,
0.03132028132677078,
0.2521778345108032,
-0.10786924511194229,
0.08482856303453445,
-0.10457562655210495,
-0.02482771873474121,
0.17180058360099792,
0.38190513849258423,
0.15994884073734283,
0.39592763781547546,
-0.04663237929344177,
-0.2572212219238281,
-0.4361516833305359,
-0.14235128462314606,
0.10151029378175735,
0.06231677904725075,
0.5376319885253906,
0.02919948473572731,
-0.26707208156585693,
-0.1527191549539566,
0.13509222865104675,
0.11047434061765671,
-0.11315063387155533,
-0.15427201986312866,
0.02068696729838848,
0.1861226111650467,
-0.21872049570083618,
0.5657749176025391,
-0.04890252649784088,
0.011322342790663242,
-0.2269069105386734,
-0.07549622654914856,
-0.2520526945590973,
-0.19494116306304932,
-0.27974164485931396,
0.4240115284919739,
0.10798054188489914,
-0.00875756423920393,
0.19316412508487701,
0.11374563723802567,
0.14129139482975006,
-0.24853020906448364,
0.2450801581144333,
-0.19523467123508453,
0.14468860626220703,
0.03134032338857651,
-0.12242696434259415,
0.5588544607162476,
0.023827893659472466,
0.0820714607834816,
-0.057829733937978745,
0.2793505787849426,
-0.3909226953983307,
-0.0032498773653060198,
0.26785027980804443,
0.07660143822431564,
-0.10498809814453125,
-0.05132686346769333,
-0.13654571771621704,
-0.04772741720080376,
0.6230664253234863,
-0.35340285301208496,
0.00285854353569448,
-0.1369541585445404,
-0.21815979480743408,
-0.35522371530532837,
0.1964019536972046,
0.41514429450035095,
-0.22030092775821686,
-0.12714430689811707,
-0.2892492711544037,
0.42622604966163635,
0.3456283509731293,
0.19041188061237335,
-0.09975957125425339,
0.22389627993106842,
-0.24362382292747498,
0.25334617495536804,
0.3463945686817169,
-0.3264121115207672,
-0.7522773146629333,
-0.06231800094246864,
0.2395535558462143,
0.21382400393486023,
-0.2641492784023285,
0.009117771871387959,
0.0585763119161129,
0.022012649103999138,
-0.04730614647269249,
0.12475938349962234,
0.07109463214874268,
0.047940779477357864,
-0.1934206783771515,
-0.32378414273262024,
0.3307862877845764,
-0.15344886481761932,
0.3734350800514221,
0.20391103625297546,
-0.2786327004432678,
-0.06542865186929703,
0.1897791475057602,
-0.07331199944019318,
0.2045675367116928,
0.21111217141151428,
0.08593922108411789,
0.09632892161607742,
0.34253641963005066,
-0.14452588558197021,
-0.22084525227546692,
0.23616015911102295,
-0.007498309947550297,
-0.40805086493492126,
0.05238117650151253,
-0.0693814605474472,
0.03421063721179962,
-0.17514391243457794,
-0.23687176406383514,
-0.25076714158058167,
0.04695970565080643,
0.29829269647598267,
0.2158329039812088,
0.0493258573114872,
-0.06285588443279266,
0.4346981346607208,
0.22479619085788727,
-0.0474485382437706,
-0.13699759542942047,
0.23143744468688965,
0.13785377144813538,
-0.07235301285982132,
-0.262255996465683,
-0.0077892811968922615,
0.386508584022522,
0.20507816970348358,
-0.17280864715576172,
0.19992290437221527,
0.2821435332298279,
0.13053958117961884,
-0.15808607637882233,
0.03777531534433365,
-0.09649767726659775,
0.07604556530714035,
-0.18035317957401276,
0.018961207941174507,
0.09124196320772171,
-0.20247362554073334,
0.33897024393081665,
-0.09822438657283783,
0.04353925585746765,
0.17285223305225372,
-0.1738722324371338,
-0.11649591475725174,
-0.01941618137061596,
-0.05754147469997406,
0.12157203257083893,
-0.2605113983154297,
-0.12677407264709473,
-0.10074297338724136,
0.40187734365463257,
0.1480000913143158,
0.317086786031723,
0.14310486614704132,
0.5319444537162781,
0.16380415856838226,
0.07024979591369629,
-0.07549664378166199,
-0.5950469374656677,
-0.15330542623996735,
0.0420684814453125,
0.10673389583826065,
0.40316659212112427,
0.0140681192278862,
0.13723517954349518,
-0.10653546452522278,
0.1262332648038864,
0.05367311090230942,
0.08399072289466858,
0.05157412588596344,
0.0034557764884084463,
0.1623285561800003,
0.08191736042499542,
0.12391849607229233,
-0.15448473393917084,
0.3739553391933441,
0.22236989438533783,
0.02240816503763199,
-0.12013319879770279,
-0.004782917443662882,
-0.4614661633968353,
0.2616465389728546,
-0.00941531639546156,
-0.18774226307868958,
-0.10895445942878723,
-0.3240407407283783,
-0.02937140129506588,
0.17503385245800018,
0.23235087096691132,
0.170265331864357,
-0.10677357763051987,
0.16378909349441528,
-0.09658597409725189,
-0.06340808421373367,
-0.2861725091934204,
-0.04422691836953163,
-0.351602703332901,
-0.10436856746673584,
0.027629541233181953,
-0.3332436978816986,
0.10926850140094757,
-0.19780023396015167,
0.044877395033836365,
-0.3304949700832367,
-0.24961386620998383,
0.0687255933880806,
0.14242137968540192,
-0.19136148691177368,
-0.1454961597919464,
-0.13314521312713623,
-0.34062254428863525,
-0.07776153087615967,
0.10528524965047836,
-0.37550339102745056,
-0.058996062725782394,
-0.19424286484718323,
0.22689706087112427,
-0.07328362762928009,
0.06139032542705536,
-0.0987810418009758,
0.045062899589538574,
0.0523565337061882,
-0.09228018671274185,
-0.12052033096551895,
-0.09919613599777222,
-0.10735157877206802,
-0.17789514362812042,
-0.14736905694007874,
-0.29404228925704956,
-0.1225033849477768,
-0.5240330100059509,
-0.2998073101043701,
0.5365316867828369,
-0.12470077723264694,
-0.07930251210927963,
-0.10533584654331207,
-0.02949395589530468,
0.30539795756340027,
0.46651050448417664,
-0.5257644653320312,
-0.06458007544279099,
-0.20277538895606995,
-0.18987230956554413,
-0.14755530655384064,
0.3041582405567169,
0.3952637016773224,
0.19113337993621826,
0.1284651905298233,
-0.4285716414451599,
-0.2033013552427292,
0.020704658702015877,
0.001100674387998879,
0.4422149956226349,
-0.03273066133260727,
0.20218230783939362,
-0.08188918232917786,
0.803088903427124,
0.6181523203849792,
-0.21779578924179077,
0.23084500432014465,
0.11477915197610855,
0.3255804777145386,
-0.14092759788036346,
-0.19788827002048492,
-0.1367318034172058,
-0.3422306776046753,
0.09499292075634003,
0.18335063755512238,
0.1425251066684723,
-0.3120465576648712,
-0.15705452859401703,
0.09193017333745956,
-0.3112707734107971,
-0.32971301674842834,
-0.08052312582731247,
-0.24852998554706573,
0.3068063259124756,
0.351083904504776,
0.3141098916530609,
-0.7173702716827393,
-0.12203891575336456,
0.25282880663871765,
-0.21448352932929993,
0.468978613615036,
0.11479660868644714,
-0.21096168458461761,
-0.13886409997940063,
-0.34431883692741394,
0.3209450840950012,
0.22757066786289215,
0.366901695728302,
0.21778354048728943,
0.017415065318346024,
-0.1508578658103943,
0.10885759443044662,
0.43157070875167847,
-0.7976605296134949,
-0.3380017578601837,
-0.11149293184280396,
-0.05547370761632919,
-0.02103240229189396,
-0.04060209542512894,
0.351041704416275,
0.22571229934692383,
0.04130013287067413,
0.2744194269180298,
0.03855278715491295,
0.007579932454973459,
-0.32338544726371765,
0.17293407022953033,
-0.23463448882102966,
-0.31523334980010986,
-0.098659947514534,
0.27012526988983154,
-0.09005975723266602,
-0.2996428906917572,
0.028634272515773773,
-0.16891875863075256,
0.05742333084344864,
-0.1737726479768753,
-0.3051755726337433,
0.05799715220928192,
0.10664761066436768,
0.02927437238395214,
0.555604875087738,
-0.028238872066140175,
0.3208509087562561,
0.1760173887014389,
0.01832927018404007,
0.07111603021621704,
0.2807704210281372,
-0.14288800954818726,
-0.23373687267303467,
-0.0897052064538002,
-0.09232661873102188,
0.2570893168449402,
-0.031962279230356216,
-0.20561066269874573,
-0.0013508492847904563,
-0.2553195357322693,
0.02588437683880329,
-0.2113853245973587,
0.13468779623508453,
0.36525049805641174,
0.359734445810318,
-0.4407244920730591,
-0.4705248773097992,
0.17312723398208618,
0.27375128865242004,
-0.18334780633449554,
0.5526423454284668,
-0.08299602568149567,
-0.2301497608423233,
0.15582232177257538,
0.044628243893384933,
1.0017777681350708,
0.02924300916492939,
0.09188663959503174,
-0.249991312623024,
0.05647731199860573,
0.6650121212005615,
-0.37294626235961914,
0.33067670464515686,
-0.28588083386421204,
-0.21053113043308258,
-0.18871116638183594,
-0.22684405744075775,
-0.08356260508298874,
0.2917119860649109,
-0.199439138174057,
0.49630865454673767,
0.05405120924115181,
0.5679223537445068,
0.22493848204612732,
0.07031873613595963,
0.19062359631061554,
-0.11996711045503616,
0.26166602969169617,
0.07315423339605331,
0.1753249317407608,
0.3935573101043701,
-0.090989850461483,
0.11189211159944534,
0.09074927121400833,
-0.09879741817712784,
-0.2807954251766205,
0.10617554932832718,
-0.36558911204338074,
0.25313106179237366,
-0.050557419657707214,
0.17433030903339386,
0.10042291134595871,
0.35758060216903687,
0.5060385465621948,
0.208212211728096,
-0.18855230510234833,
0.13585598766803741,
0.1558087170124054,
0.26170453429222107,
-0.14115577936172485,
-0.2263828068971634,
0.028073757886886597,
0.00029432683368213475,
-0.20791734755039215,
-0.010965553112328053,
0.032626669853925705,
-0.4142288863658905,
-0.35285714268684387,
-0.027025580406188965,
0.3227230906486511,
-0.20366187393665314,
0.07059132307767868,
0.18813054263591766,
0.06304824352264404,
-0.04375631734728813,
0.03805667161941528,
-0.022182496264576912,
0.07383963465690613,
0.5688582062721252,
-0.27172350883483887,
-0.13928772509098053,
-0.013238712213933468,
0.45977982878685,
0.3361430764198303,
-0.1777527779340744,
0.5680007934570312,
-0.2200244665145874,
-0.24020403623580933,
-0.04722222313284874,
-0.4798620641231537,
0.05840085446834564,
-0.3148994445800781,
-0.03784668445587158,
-0.3966694474220276,
0.06053049489855766,
0.14067117869853973,
-0.05752266198396683,
-0.030745241791009903,
-0.19937829673290253,
-0.12169584631919861,
-0.22992083430290222,
-0.20371480286121368,
0.04219549894332886,
0.04360311105847359,
0.16316339373588562,
0.22557605803012848,
0.06446992605924606,
-0.04053090512752533,
0.41898563504219055,
-0.15359556674957275,
0.04440203681588173,
0.1507003903388977,
0.12219609320163727,
-0.21099025011062622,
-0.08776326477527618,
-0.05869218707084656,
-0.10460884124040604,
-0.11376234143972397,
0.31145164370536804,
-0.06390237808227539,
-0.052166879177093506,
0.09888532012701035,
0.20194368064403534,
0.20774772763252258,
-0.02391507849097252,
-0.04570278152823448,
-0.018330128863453865,
0.07870154082775116,
-0.36523571610450745,
0.09146980941295624,
0.05968470126390457,
-0.022996913641691208,
0.23533840477466583,
0.33578044176101685,
-0.08331224322319031,
-0.278767466545105,
0.15750250220298767,
-0.06761009246110916,
0.04965874180197716,
-0.029231438413262367,
0.2691749632358551,
0.3636685311794281,
0.019830094650387764,
-0.08000373095273972,
-0.029180137440562248,
0.11315567046403885,
0.032755881547927856,
0.3520662188529968,
-0.41420525312423706,
0.017141757532954216,
0.2618720233440399,
-0.09399990737438202,
0.3780743181705475,
-0.12554869055747986,
-0.35121941566467285,
0.28936728835105896,
0.11027290672063828,
-0.2677420973777771,
-0.345725417137146,
0.28659337759017944,
0.09862248599529266,
-0.1312386393547058,
0.0857275202870369,
0.033620670437812805,
-0.17569436132907867,
0.32646068930625916,
0.10745035111904144,
0.4046725332736969,
-0.43510374426841736,
0.3502947986125946,
0.2615407109260559,
0.2842252552509308,
0.14601635932922363,
0.17856775224208832,
0.21875354647636414,
-0.2382124811410904,
0.1690315306186676,
0.11954769492149353,
0.2626832127571106,
0.15095333755016327,
-0.086133673787117,
0.06701483577489853,
-0.29401764273643494,
-0.019943810999393463,
0.3258395493030548,
-0.10453580319881439,
0.3778480887413025,
-0.056529004126787186,
-0.12614938616752625,
0.18447980284690857,
-0.06482245773077011,
-0.28930363059043884,
0.17136533558368683,
-0.25771665573120117,
-0.13739396631717682,
0.2168830782175064,
-0.16063416004180908,
-0.019861320033669472,
-0.1444624364376068,
0.13803249597549438,
0.001731676165945828,
0.5208861827850342,
0.019092215225100517,
-0.15047608315944672,
-0.11493953317403793,
-0.2739807367324829,
0.18267427384853363,
0.5745248198509216,
-0.1868024468421936,
0.09266497194766998,
-0.21385496854782104,
-0.023914217948913574,
-0.09012328088283539,
0.3141930401325226,
0.17926880717277527,
0.40270689129829407,
-0.14731615781784058,
0.08058705925941467,
0.25736257433891296,
0.09969538450241089,
-0.036729343235492706,
0.4875115752220154,
-0.1763319969177246,
-0.39671358466148376,
0.0521714985370636,
0.06903274357318878,
-0.03182864189147949,
-0.15987738966941833,
-0.271125853061676,
0.36790192127227783,
-0.4220820367336273,
0.3023279309272766,
-0.09546435624361038,
0.07348061352968216,
-0.06744930893182755,
0.18109838664531708,
-0.3221395015716553,
0.19769367575645447,
0.5176385045051575,
-0.11355486512184143,
0.1017570048570633,
-0.2707713842391968,
0.028198523446917534,
-0.040558140724897385,
0.28504467010498047,
0.43473348021507263,
-0.25262564420700073,
-0.20765429735183716,
-0.2799324691295624,
-0.4617501199245453,
0.37353914976119995,
-0.14974680542945862,
0.2867359519004822,
0.023986220359802246,
0.10445931553840637,
-0.05198495462536812,
-0.049172233790159225,
0.3006148040294647,
0.1457594782114029,
-0.227987140417099,
0.30767199397087097,
-0.347115695476532,
-0.04059506207704544,
-0.3000037372112274,
0.0067510767839848995,
0.17163203656673431,
-0.3455072343349457,
0.4444892108440399,
0.19556084275245667,
0.02729378640651703,
-0.02339962124824524,
0.06782667338848114,
0.21913102269172668,
-0.0610969141125679,
0.5450428128242493,
0.34657686948776245,
0.23694071173667908,
-0.02093258500099182,
-0.09342171996831894,
-0.09495437890291214,
-0.02100510708987713,
-0.12074241787195206,
0.04701271280646324,
-0.12103546410799026,
0.08204271644353867,
-0.4738940894603729,
0.0651584044098854,
-0.3022507131099701,
-0.19563744962215424,
0.28562411665916443,
-0.0026544532738626003,
-0.1738128364086151,
-0.15563999116420746,
-0.06103752553462982,
0.1276528686285019,
0.16682031750679016,
0.4713115096092224,
-0.22909878194332123,
0.4036518335342407,
-0.2490561157464981,
-0.19765466451644897,
0.33298826217651367,
-0.6163407564163208,
-0.4550292193889618,
-0.2239353060722351,
0.137532576918602,
0.11766307801008224,
-0.3350003957748413,
-0.6715466380119324,
-0.18104369938373566,
0.31741297245025635,
0.08836812525987625,
-0.03373776376247406,
0.14054562151432037,
0.04440924897789955,
0.248386949300766,
-0.1456892192363739,
0.5623006224632263,
0.055051062256097794,
0.02951623685657978,
0.2277144491672516,
-0.1859031319618225
] |
https://github.com/huggingface/datasets/issues/1718 | Possible cache miss in datasets | Managed to get `cache_file_names` working and caching works well with it
Had to make a small modification for it to work:
```
cache_file_names = {k: f'tokenized_and_grouped_{str(k)}.arrow' for k in tokenized_datasets}
``` | Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
``` | 31 | Possible cache miss in datasets
Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
```
Managed to get `cache_file_names` working and caching works well with it
Had to make a small modification for it to work:
```
cache_file_names = {k: f'tokenized_and_grouped_{str(k)}.arrow' for k in tokenized_datasets}
``` | [
-0.1930394321680069,
0.12105351686477661,
0.05009520798921585,
0.19009333848953247,
0.007696859072893858,
0.036921512335538864,
-0.016855232417583466,
0.23035003244876862,
0.01673312298953533,
-0.10844311118125916,
0.10299880802631378,
0.4139713644981384,
0.22491194307804108,
-0.11172405630350113,
-0.001110300188884139,
0.24461320042610168,
0.3074612021446228,
0.3216937184333801,
-0.1533997654914856,
-0.208875834941864,
-0.289175420999527,
0.1171129122376442,
-0.3328206241130829,
-0.09242920577526093,
-0.41705039143562317,
0.21232819557189941,
-0.0168770719319582,
-0.42083939909935,
0.11226038634777069,
-0.25558674335479736,
0.31771594285964966,
0.08582867681980133,
0.19921879470348358,
0.557023823261261,
-0.0001258203265024349,
-0.26760199666023254,
0.35409584641456604,
-0.06947390735149384,
-0.20524761080741882,
0.07682175189256668,
-0.2844771146774292,
0.03804402053356171,
-0.11269348859786987,
0.023367417976260185,
0.058439310640096664,
0.058709517121315,
0.03796656057238579,
-0.6514902710914612,
0.30601996183395386,
0.1629108190536499,
0.10259271413087845,
0.0332760214805603,
-0.09534268826246262,
0.23457974195480347,
0.050203099846839905,
-0.012025350704789162,
-0.038743797689676285,
-0.33304476737976074,
0.16303858160972595,
-0.3523213565349579,
0.062146712094545364,
0.5163407325744629,
-0.17574362456798553,
-0.14190338551998138,
0.3870672285556793,
-0.011780615895986557,
0.017935380339622498,
-0.26469895243644714,
0.3020607531070709,
-0.06447051465511322,
0.5929014086723328,
-0.37321245670318604,
-0.4453590214252472,
-0.22181552648544312,
-0.2183968871831894,
-0.1797119826078415,
0.34789568185806274,
-0.2814226746559143,
0.11512422561645508,
0.1367775946855545,
-0.5952910780906677,
-0.3717096745967865,
0.2665034532546997,
0.12685030698776245,
-0.0126038221642375,
0.11882913112640381,
-0.04426441341638565,
0.1275966763496399,
-0.25835999846458435,
0.03056361898779869,
0.27869313955307007,
-0.5107076168060303,
-0.02041216753423214,
0.4761804938316345,
-0.4573769271373749,
-0.11419877409934998,
-0.08139568567276001,
0.044457919895648956,
0.03132028132677078,
0.2521778345108032,
-0.10786924511194229,
0.08482856303453445,
-0.10457562655210495,
-0.02482771873474121,
0.17180058360099792,
0.38190513849258423,
0.15994884073734283,
0.39592763781547546,
-0.04663237929344177,
-0.2572212219238281,
-0.4361516833305359,
-0.14235128462314606,
0.10151029378175735,
0.06231677904725075,
0.5376319885253906,
0.02919948473572731,
-0.26707208156585693,
-0.1527191549539566,
0.13509222865104675,
0.11047434061765671,
-0.11315063387155533,
-0.15427201986312866,
0.02068696729838848,
0.1861226111650467,
-0.21872049570083618,
0.5657749176025391,
-0.04890252649784088,
0.011322342790663242,
-0.2269069105386734,
-0.07549622654914856,
-0.2520526945590973,
-0.19494116306304932,
-0.27974164485931396,
0.4240115284919739,
0.10798054188489914,
-0.00875756423920393,
0.19316412508487701,
0.11374563723802567,
0.14129139482975006,
-0.24853020906448364,
0.2450801581144333,
-0.19523467123508453,
0.14468860626220703,
0.03134032338857651,
-0.12242696434259415,
0.5588544607162476,
0.023827893659472466,
0.0820714607834816,
-0.057829733937978745,
0.2793505787849426,
-0.3909226953983307,
-0.0032498773653060198,
0.26785027980804443,
0.07660143822431564,
-0.10498809814453125,
-0.05132686346769333,
-0.13654571771621704,
-0.04772741720080376,
0.6230664253234863,
-0.35340285301208496,
0.00285854353569448,
-0.1369541585445404,
-0.21815979480743408,
-0.35522371530532837,
0.1964019536972046,
0.41514429450035095,
-0.22030092775821686,
-0.12714430689811707,
-0.2892492711544037,
0.42622604966163635,
0.3456283509731293,
0.19041188061237335,
-0.09975957125425339,
0.22389627993106842,
-0.24362382292747498,
0.25334617495536804,
0.3463945686817169,
-0.3264121115207672,
-0.7522773146629333,
-0.06231800094246864,
0.2395535558462143,
0.21382400393486023,
-0.2641492784023285,
0.009117771871387959,
0.0585763119161129,
0.022012649103999138,
-0.04730614647269249,
0.12475938349962234,
0.07109463214874268,
0.047940779477357864,
-0.1934206783771515,
-0.32378414273262024,
0.3307862877845764,
-0.15344886481761932,
0.3734350800514221,
0.20391103625297546,
-0.2786327004432678,
-0.06542865186929703,
0.1897791475057602,
-0.07331199944019318,
0.2045675367116928,
0.21111217141151428,
0.08593922108411789,
0.09632892161607742,
0.34253641963005066,
-0.14452588558197021,
-0.22084525227546692,
0.23616015911102295,
-0.007498309947550297,
-0.40805086493492126,
0.05238117650151253,
-0.0693814605474472,
0.03421063721179962,
-0.17514391243457794,
-0.23687176406383514,
-0.25076714158058167,
0.04695970565080643,
0.29829269647598267,
0.2158329039812088,
0.0493258573114872,
-0.06285588443279266,
0.4346981346607208,
0.22479619085788727,
-0.0474485382437706,
-0.13699759542942047,
0.23143744468688965,
0.13785377144813538,
-0.07235301285982132,
-0.262255996465683,
-0.0077892811968922615,
0.386508584022522,
0.20507816970348358,
-0.17280864715576172,
0.19992290437221527,
0.2821435332298279,
0.13053958117961884,
-0.15808607637882233,
0.03777531534433365,
-0.09649767726659775,
0.07604556530714035,
-0.18035317957401276,
0.018961207941174507,
0.09124196320772171,
-0.20247362554073334,
0.33897024393081665,
-0.09822438657283783,
0.04353925585746765,
0.17285223305225372,
-0.1738722324371338,
-0.11649591475725174,
-0.01941618137061596,
-0.05754147469997406,
0.12157203257083893,
-0.2605113983154297,
-0.12677407264709473,
-0.10074297338724136,
0.40187734365463257,
0.1480000913143158,
0.317086786031723,
0.14310486614704132,
0.5319444537162781,
0.16380415856838226,
0.07024979591369629,
-0.07549664378166199,
-0.5950469374656677,
-0.15330542623996735,
0.0420684814453125,
0.10673389583826065,
0.40316659212112427,
0.0140681192278862,
0.13723517954349518,
-0.10653546452522278,
0.1262332648038864,
0.05367311090230942,
0.08399072289466858,
0.05157412588596344,
0.0034557764884084463,
0.1623285561800003,
0.08191736042499542,
0.12391849607229233,
-0.15448473393917084,
0.3739553391933441,
0.22236989438533783,
0.02240816503763199,
-0.12013319879770279,
-0.004782917443662882,
-0.4614661633968353,
0.2616465389728546,
-0.00941531639546156,
-0.18774226307868958,
-0.10895445942878723,
-0.3240407407283783,
-0.02937140129506588,
0.17503385245800018,
0.23235087096691132,
0.170265331864357,
-0.10677357763051987,
0.16378909349441528,
-0.09658597409725189,
-0.06340808421373367,
-0.2861725091934204,
-0.04422691836953163,
-0.351602703332901,
-0.10436856746673584,
0.027629541233181953,
-0.3332436978816986,
0.10926850140094757,
-0.19780023396015167,
0.044877395033836365,
-0.3304949700832367,
-0.24961386620998383,
0.0687255933880806,
0.14242137968540192,
-0.19136148691177368,
-0.1454961597919464,
-0.13314521312713623,
-0.34062254428863525,
-0.07776153087615967,
0.10528524965047836,
-0.37550339102745056,
-0.058996062725782394,
-0.19424286484718323,
0.22689706087112427,
-0.07328362762928009,
0.06139032542705536,
-0.0987810418009758,
0.045062899589538574,
0.0523565337061882,
-0.09228018671274185,
-0.12052033096551895,
-0.09919613599777222,
-0.10735157877206802,
-0.17789514362812042,
-0.14736905694007874,
-0.29404228925704956,
-0.1225033849477768,
-0.5240330100059509,
-0.2998073101043701,
0.5365316867828369,
-0.12470077723264694,
-0.07930251210927963,
-0.10533584654331207,
-0.02949395589530468,
0.30539795756340027,
0.46651050448417664,
-0.5257644653320312,
-0.06458007544279099,
-0.20277538895606995,
-0.18987230956554413,
-0.14755530655384064,
0.3041582405567169,
0.3952637016773224,
0.19113337993621826,
0.1284651905298233,
-0.4285716414451599,
-0.2033013552427292,
0.020704658702015877,
0.001100674387998879,
0.4422149956226349,
-0.03273066133260727,
0.20218230783939362,
-0.08188918232917786,
0.803088903427124,
0.6181523203849792,
-0.21779578924179077,
0.23084500432014465,
0.11477915197610855,
0.3255804777145386,
-0.14092759788036346,
-0.19788827002048492,
-0.1367318034172058,
-0.3422306776046753,
0.09499292075634003,
0.18335063755512238,
0.1425251066684723,
-0.3120465576648712,
-0.15705452859401703,
0.09193017333745956,
-0.3112707734107971,
-0.32971301674842834,
-0.08052312582731247,
-0.24852998554706573,
0.3068063259124756,
0.351083904504776,
0.3141098916530609,
-0.7173702716827393,
-0.12203891575336456,
0.25282880663871765,
-0.21448352932929993,
0.468978613615036,
0.11479660868644714,
-0.21096168458461761,
-0.13886409997940063,
-0.34431883692741394,
0.3209450840950012,
0.22757066786289215,
0.366901695728302,
0.21778354048728943,
0.017415065318346024,
-0.1508578658103943,
0.10885759443044662,
0.43157070875167847,
-0.7976605296134949,
-0.3380017578601837,
-0.11149293184280396,
-0.05547370761632919,
-0.02103240229189396,
-0.04060209542512894,
0.351041704416275,
0.22571229934692383,
0.04130013287067413,
0.2744194269180298,
0.03855278715491295,
0.007579932454973459,
-0.32338544726371765,
0.17293407022953033,
-0.23463448882102966,
-0.31523334980010986,
-0.098659947514534,
0.27012526988983154,
-0.09005975723266602,
-0.2996428906917572,
0.028634272515773773,
-0.16891875863075256,
0.05742333084344864,
-0.1737726479768753,
-0.3051755726337433,
0.05799715220928192,
0.10664761066436768,
0.02927437238395214,
0.555604875087738,
-0.028238872066140175,
0.3208509087562561,
0.1760173887014389,
0.01832927018404007,
0.07111603021621704,
0.2807704210281372,
-0.14288800954818726,
-0.23373687267303467,
-0.0897052064538002,
-0.09232661873102188,
0.2570893168449402,
-0.031962279230356216,
-0.20561066269874573,
-0.0013508492847904563,
-0.2553195357322693,
0.02588437683880329,
-0.2113853245973587,
0.13468779623508453,
0.36525049805641174,
0.359734445810318,
-0.4407244920730591,
-0.4705248773097992,
0.17312723398208618,
0.27375128865242004,
-0.18334780633449554,
0.5526423454284668,
-0.08299602568149567,
-0.2301497608423233,
0.15582232177257538,
0.044628243893384933,
1.0017777681350708,
0.02924300916492939,
0.09188663959503174,
-0.249991312623024,
0.05647731199860573,
0.6650121212005615,
-0.37294626235961914,
0.33067670464515686,
-0.28588083386421204,
-0.21053113043308258,
-0.18871116638183594,
-0.22684405744075775,
-0.08356260508298874,
0.2917119860649109,
-0.199439138174057,
0.49630865454673767,
0.05405120924115181,
0.5679223537445068,
0.22493848204612732,
0.07031873613595963,
0.19062359631061554,
-0.11996711045503616,
0.26166602969169617,
0.07315423339605331,
0.1753249317407608,
0.3935573101043701,
-0.090989850461483,
0.11189211159944534,
0.09074927121400833,
-0.09879741817712784,
-0.2807954251766205,
0.10617554932832718,
-0.36558911204338074,
0.25313106179237366,
-0.050557419657707214,
0.17433030903339386,
0.10042291134595871,
0.35758060216903687,
0.5060385465621948,
0.208212211728096,
-0.18855230510234833,
0.13585598766803741,
0.1558087170124054,
0.26170453429222107,
-0.14115577936172485,
-0.2263828068971634,
0.028073757886886597,
0.00029432683368213475,
-0.20791734755039215,
-0.010965553112328053,
0.032626669853925705,
-0.4142288863658905,
-0.35285714268684387,
-0.027025580406188965,
0.3227230906486511,
-0.20366187393665314,
0.07059132307767868,
0.18813054263591766,
0.06304824352264404,
-0.04375631734728813,
0.03805667161941528,
-0.022182496264576912,
0.07383963465690613,
0.5688582062721252,
-0.27172350883483887,
-0.13928772509098053,
-0.013238712213933468,
0.45977982878685,
0.3361430764198303,
-0.1777527779340744,
0.5680007934570312,
-0.2200244665145874,
-0.24020403623580933,
-0.04722222313284874,
-0.4798620641231537,
0.05840085446834564,
-0.3148994445800781,
-0.03784668445587158,
-0.3966694474220276,
0.06053049489855766,
0.14067117869853973,
-0.05752266198396683,
-0.030745241791009903,
-0.19937829673290253,
-0.12169584631919861,
-0.22992083430290222,
-0.20371480286121368,
0.04219549894332886,
0.04360311105847359,
0.16316339373588562,
0.22557605803012848,
0.06446992605924606,
-0.04053090512752533,
0.41898563504219055,
-0.15359556674957275,
0.04440203681588173,
0.1507003903388977,
0.12219609320163727,
-0.21099025011062622,
-0.08776326477527618,
-0.05869218707084656,
-0.10460884124040604,
-0.11376234143972397,
0.31145164370536804,
-0.06390237808227539,
-0.052166879177093506,
0.09888532012701035,
0.20194368064403534,
0.20774772763252258,
-0.02391507849097252,
-0.04570278152823448,
-0.018330128863453865,
0.07870154082775116,
-0.36523571610450745,
0.09146980941295624,
0.05968470126390457,
-0.022996913641691208,
0.23533840477466583,
0.33578044176101685,
-0.08331224322319031,
-0.278767466545105,
0.15750250220298767,
-0.06761009246110916,
0.04965874180197716,
-0.029231438413262367,
0.2691749632358551,
0.3636685311794281,
0.019830094650387764,
-0.08000373095273972,
-0.029180137440562248,
0.11315567046403885,
0.032755881547927856,
0.3520662188529968,
-0.41420525312423706,
0.017141757532954216,
0.2618720233440399,
-0.09399990737438202,
0.3780743181705475,
-0.12554869055747986,
-0.35121941566467285,
0.28936728835105896,
0.11027290672063828,
-0.2677420973777771,
-0.345725417137146,
0.28659337759017944,
0.09862248599529266,
-0.1312386393547058,
0.0857275202870369,
0.033620670437812805,
-0.17569436132907867,
0.32646068930625916,
0.10745035111904144,
0.4046725332736969,
-0.43510374426841736,
0.3502947986125946,
0.2615407109260559,
0.2842252552509308,
0.14601635932922363,
0.17856775224208832,
0.21875354647636414,
-0.2382124811410904,
0.1690315306186676,
0.11954769492149353,
0.2626832127571106,
0.15095333755016327,
-0.086133673787117,
0.06701483577489853,
-0.29401764273643494,
-0.019943810999393463,
0.3258395493030548,
-0.10453580319881439,
0.3778480887413025,
-0.056529004126787186,
-0.12614938616752625,
0.18447980284690857,
-0.06482245773077011,
-0.28930363059043884,
0.17136533558368683,
-0.25771665573120117,
-0.13739396631717682,
0.2168830782175064,
-0.16063416004180908,
-0.019861320033669472,
-0.1444624364376068,
0.13803249597549438,
0.001731676165945828,
0.5208861827850342,
0.019092215225100517,
-0.15047608315944672,
-0.11493953317403793,
-0.2739807367324829,
0.18267427384853363,
0.5745248198509216,
-0.1868024468421936,
0.09266497194766998,
-0.21385496854782104,
-0.023914217948913574,
-0.09012328088283539,
0.3141930401325226,
0.17926880717277527,
0.40270689129829407,
-0.14731615781784058,
0.08058705925941467,
0.25736257433891296,
0.09969538450241089,
-0.036729343235492706,
0.4875115752220154,
-0.1763319969177246,
-0.39671358466148376,
0.0521714985370636,
0.06903274357318878,
-0.03182864189147949,
-0.15987738966941833,
-0.271125853061676,
0.36790192127227783,
-0.4220820367336273,
0.3023279309272766,
-0.09546435624361038,
0.07348061352968216,
-0.06744930893182755,
0.18109838664531708,
-0.3221395015716553,
0.19769367575645447,
0.5176385045051575,
-0.11355486512184143,
0.1017570048570633,
-0.2707713842391968,
0.028198523446917534,
-0.040558140724897385,
0.28504467010498047,
0.43473348021507263,
-0.25262564420700073,
-0.20765429735183716,
-0.2799324691295624,
-0.4617501199245453,
0.37353914976119995,
-0.14974680542945862,
0.2867359519004822,
0.023986220359802246,
0.10445931553840637,
-0.05198495462536812,
-0.049172233790159225,
0.3006148040294647,
0.1457594782114029,
-0.227987140417099,
0.30767199397087097,
-0.347115695476532,
-0.04059506207704544,
-0.3000037372112274,
0.0067510767839848995,
0.17163203656673431,
-0.3455072343349457,
0.4444892108440399,
0.19556084275245667,
0.02729378640651703,
-0.02339962124824524,
0.06782667338848114,
0.21913102269172668,
-0.0610969141125679,
0.5450428128242493,
0.34657686948776245,
0.23694071173667908,
-0.02093258500099182,
-0.09342171996831894,
-0.09495437890291214,
-0.02100510708987713,
-0.12074241787195206,
0.04701271280646324,
-0.12103546410799026,
0.08204271644353867,
-0.4738940894603729,
0.0651584044098854,
-0.3022507131099701,
-0.19563744962215424,
0.28562411665916443,
-0.0026544532738626003,
-0.1738128364086151,
-0.15563999116420746,
-0.06103752553462982,
0.1276528686285019,
0.16682031750679016,
0.4713115096092224,
-0.22909878194332123,
0.4036518335342407,
-0.2490561157464981,
-0.19765466451644897,
0.33298826217651367,
-0.6163407564163208,
-0.4550292193889618,
-0.2239353060722351,
0.137532576918602,
0.11766307801008224,
-0.3350003957748413,
-0.6715466380119324,
-0.18104369938373566,
0.31741297245025635,
0.08836812525987625,
-0.03373776376247406,
0.14054562151432037,
0.04440924897789955,
0.248386949300766,
-0.1456892192363739,
0.5623006224632263,
0.055051062256097794,
0.02951623685657978,
0.2277144491672516,
-0.1859031319618225
] |
https://github.com/huggingface/datasets/issues/1718 | Possible cache miss in datasets | Another comment on `cache_file_names`, it doesn't save the produced cached files in the dataset's cache folder, it requires to give a path to an existing directory for it to work.
I can confirm that this is how it works in `datasets==1.1.3` | Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
``` | 41 | Possible cache miss in datasets
Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
```
Another comment on `cache_file_names`, it doesn't save the produced cached files in the dataset's cache folder, it requires to give a path to an existing directory for it to work.
I can confirm that this is how it works in `datasets==1.1.3` | [
-0.1930394321680069,
0.12105351686477661,
0.05009520798921585,
0.19009333848953247,
0.007696859072893858,
0.036921512335538864,
-0.016855232417583466,
0.23035003244876862,
0.01673312298953533,
-0.10844311118125916,
0.10299880802631378,
0.4139713644981384,
0.22491194307804108,
-0.11172405630350113,
-0.001110300188884139,
0.24461320042610168,
0.3074612021446228,
0.3216937184333801,
-0.1533997654914856,
-0.208875834941864,
-0.289175420999527,
0.1171129122376442,
-0.3328206241130829,
-0.09242920577526093,
-0.41705039143562317,
0.21232819557189941,
-0.0168770719319582,
-0.42083939909935,
0.11226038634777069,
-0.25558674335479736,
0.31771594285964966,
0.08582867681980133,
0.19921879470348358,
0.557023823261261,
-0.0001258203265024349,
-0.26760199666023254,
0.35409584641456604,
-0.06947390735149384,
-0.20524761080741882,
0.07682175189256668,
-0.2844771146774292,
0.03804402053356171,
-0.11269348859786987,
0.023367417976260185,
0.058439310640096664,
0.058709517121315,
0.03796656057238579,
-0.6514902710914612,
0.30601996183395386,
0.1629108190536499,
0.10259271413087845,
0.0332760214805603,
-0.09534268826246262,
0.23457974195480347,
0.050203099846839905,
-0.012025350704789162,
-0.038743797689676285,
-0.33304476737976074,
0.16303858160972595,
-0.3523213565349579,
0.062146712094545364,
0.5163407325744629,
-0.17574362456798553,
-0.14190338551998138,
0.3870672285556793,
-0.011780615895986557,
0.017935380339622498,
-0.26469895243644714,
0.3020607531070709,
-0.06447051465511322,
0.5929014086723328,
-0.37321245670318604,
-0.4453590214252472,
-0.22181552648544312,
-0.2183968871831894,
-0.1797119826078415,
0.34789568185806274,
-0.2814226746559143,
0.11512422561645508,
0.1367775946855545,
-0.5952910780906677,
-0.3717096745967865,
0.2665034532546997,
0.12685030698776245,
-0.0126038221642375,
0.11882913112640381,
-0.04426441341638565,
0.1275966763496399,
-0.25835999846458435,
0.03056361898779869,
0.27869313955307007,
-0.5107076168060303,
-0.02041216753423214,
0.4761804938316345,
-0.4573769271373749,
-0.11419877409934998,
-0.08139568567276001,
0.044457919895648956,
0.03132028132677078,
0.2521778345108032,
-0.10786924511194229,
0.08482856303453445,
-0.10457562655210495,
-0.02482771873474121,
0.17180058360099792,
0.38190513849258423,
0.15994884073734283,
0.39592763781547546,
-0.04663237929344177,
-0.2572212219238281,
-0.4361516833305359,
-0.14235128462314606,
0.10151029378175735,
0.06231677904725075,
0.5376319885253906,
0.02919948473572731,
-0.26707208156585693,
-0.1527191549539566,
0.13509222865104675,
0.11047434061765671,
-0.11315063387155533,
-0.15427201986312866,
0.02068696729838848,
0.1861226111650467,
-0.21872049570083618,
0.5657749176025391,
-0.04890252649784088,
0.011322342790663242,
-0.2269069105386734,
-0.07549622654914856,
-0.2520526945590973,
-0.19494116306304932,
-0.27974164485931396,
0.4240115284919739,
0.10798054188489914,
-0.00875756423920393,
0.19316412508487701,
0.11374563723802567,
0.14129139482975006,
-0.24853020906448364,
0.2450801581144333,
-0.19523467123508453,
0.14468860626220703,
0.03134032338857651,
-0.12242696434259415,
0.5588544607162476,
0.023827893659472466,
0.0820714607834816,
-0.057829733937978745,
0.2793505787849426,
-0.3909226953983307,
-0.0032498773653060198,
0.26785027980804443,
0.07660143822431564,
-0.10498809814453125,
-0.05132686346769333,
-0.13654571771621704,
-0.04772741720080376,
0.6230664253234863,
-0.35340285301208496,
0.00285854353569448,
-0.1369541585445404,
-0.21815979480743408,
-0.35522371530532837,
0.1964019536972046,
0.41514429450035095,
-0.22030092775821686,
-0.12714430689811707,
-0.2892492711544037,
0.42622604966163635,
0.3456283509731293,
0.19041188061237335,
-0.09975957125425339,
0.22389627993106842,
-0.24362382292747498,
0.25334617495536804,
0.3463945686817169,
-0.3264121115207672,
-0.7522773146629333,
-0.06231800094246864,
0.2395535558462143,
0.21382400393486023,
-0.2641492784023285,
0.009117771871387959,
0.0585763119161129,
0.022012649103999138,
-0.04730614647269249,
0.12475938349962234,
0.07109463214874268,
0.047940779477357864,
-0.1934206783771515,
-0.32378414273262024,
0.3307862877845764,
-0.15344886481761932,
0.3734350800514221,
0.20391103625297546,
-0.2786327004432678,
-0.06542865186929703,
0.1897791475057602,
-0.07331199944019318,
0.2045675367116928,
0.21111217141151428,
0.08593922108411789,
0.09632892161607742,
0.34253641963005066,
-0.14452588558197021,
-0.22084525227546692,
0.23616015911102295,
-0.007498309947550297,
-0.40805086493492126,
0.05238117650151253,
-0.0693814605474472,
0.03421063721179962,
-0.17514391243457794,
-0.23687176406383514,
-0.25076714158058167,
0.04695970565080643,
0.29829269647598267,
0.2158329039812088,
0.0493258573114872,
-0.06285588443279266,
0.4346981346607208,
0.22479619085788727,
-0.0474485382437706,
-0.13699759542942047,
0.23143744468688965,
0.13785377144813538,
-0.07235301285982132,
-0.262255996465683,
-0.0077892811968922615,
0.386508584022522,
0.20507816970348358,
-0.17280864715576172,
0.19992290437221527,
0.2821435332298279,
0.13053958117961884,
-0.15808607637882233,
0.03777531534433365,
-0.09649767726659775,
0.07604556530714035,
-0.18035317957401276,
0.018961207941174507,
0.09124196320772171,
-0.20247362554073334,
0.33897024393081665,
-0.09822438657283783,
0.04353925585746765,
0.17285223305225372,
-0.1738722324371338,
-0.11649591475725174,
-0.01941618137061596,
-0.05754147469997406,
0.12157203257083893,
-0.2605113983154297,
-0.12677407264709473,
-0.10074297338724136,
0.40187734365463257,
0.1480000913143158,
0.317086786031723,
0.14310486614704132,
0.5319444537162781,
0.16380415856838226,
0.07024979591369629,
-0.07549664378166199,
-0.5950469374656677,
-0.15330542623996735,
0.0420684814453125,
0.10673389583826065,
0.40316659212112427,
0.0140681192278862,
0.13723517954349518,
-0.10653546452522278,
0.1262332648038864,
0.05367311090230942,
0.08399072289466858,
0.05157412588596344,
0.0034557764884084463,
0.1623285561800003,
0.08191736042499542,
0.12391849607229233,
-0.15448473393917084,
0.3739553391933441,
0.22236989438533783,
0.02240816503763199,
-0.12013319879770279,
-0.004782917443662882,
-0.4614661633968353,
0.2616465389728546,
-0.00941531639546156,
-0.18774226307868958,
-0.10895445942878723,
-0.3240407407283783,
-0.02937140129506588,
0.17503385245800018,
0.23235087096691132,
0.170265331864357,
-0.10677357763051987,
0.16378909349441528,
-0.09658597409725189,
-0.06340808421373367,
-0.2861725091934204,
-0.04422691836953163,
-0.351602703332901,
-0.10436856746673584,
0.027629541233181953,
-0.3332436978816986,
0.10926850140094757,
-0.19780023396015167,
0.044877395033836365,
-0.3304949700832367,
-0.24961386620998383,
0.0687255933880806,
0.14242137968540192,
-0.19136148691177368,
-0.1454961597919464,
-0.13314521312713623,
-0.34062254428863525,
-0.07776153087615967,
0.10528524965047836,
-0.37550339102745056,
-0.058996062725782394,
-0.19424286484718323,
0.22689706087112427,
-0.07328362762928009,
0.06139032542705536,
-0.0987810418009758,
0.045062899589538574,
0.0523565337061882,
-0.09228018671274185,
-0.12052033096551895,
-0.09919613599777222,
-0.10735157877206802,
-0.17789514362812042,
-0.14736905694007874,
-0.29404228925704956,
-0.1225033849477768,
-0.5240330100059509,
-0.2998073101043701,
0.5365316867828369,
-0.12470077723264694,
-0.07930251210927963,
-0.10533584654331207,
-0.02949395589530468,
0.30539795756340027,
0.46651050448417664,
-0.5257644653320312,
-0.06458007544279099,
-0.20277538895606995,
-0.18987230956554413,
-0.14755530655384064,
0.3041582405567169,
0.3952637016773224,
0.19113337993621826,
0.1284651905298233,
-0.4285716414451599,
-0.2033013552427292,
0.020704658702015877,
0.001100674387998879,
0.4422149956226349,
-0.03273066133260727,
0.20218230783939362,
-0.08188918232917786,
0.803088903427124,
0.6181523203849792,
-0.21779578924179077,
0.23084500432014465,
0.11477915197610855,
0.3255804777145386,
-0.14092759788036346,
-0.19788827002048492,
-0.1367318034172058,
-0.3422306776046753,
0.09499292075634003,
0.18335063755512238,
0.1425251066684723,
-0.3120465576648712,
-0.15705452859401703,
0.09193017333745956,
-0.3112707734107971,
-0.32971301674842834,
-0.08052312582731247,
-0.24852998554706573,
0.3068063259124756,
0.351083904504776,
0.3141098916530609,
-0.7173702716827393,
-0.12203891575336456,
0.25282880663871765,
-0.21448352932929993,
0.468978613615036,
0.11479660868644714,
-0.21096168458461761,
-0.13886409997940063,
-0.34431883692741394,
0.3209450840950012,
0.22757066786289215,
0.366901695728302,
0.21778354048728943,
0.017415065318346024,
-0.1508578658103943,
0.10885759443044662,
0.43157070875167847,
-0.7976605296134949,
-0.3380017578601837,
-0.11149293184280396,
-0.05547370761632919,
-0.02103240229189396,
-0.04060209542512894,
0.351041704416275,
0.22571229934692383,
0.04130013287067413,
0.2744194269180298,
0.03855278715491295,
0.007579932454973459,
-0.32338544726371765,
0.17293407022953033,
-0.23463448882102966,
-0.31523334980010986,
-0.098659947514534,
0.27012526988983154,
-0.09005975723266602,
-0.2996428906917572,
0.028634272515773773,
-0.16891875863075256,
0.05742333084344864,
-0.1737726479768753,
-0.3051755726337433,
0.05799715220928192,
0.10664761066436768,
0.02927437238395214,
0.555604875087738,
-0.028238872066140175,
0.3208509087562561,
0.1760173887014389,
0.01832927018404007,
0.07111603021621704,
0.2807704210281372,
-0.14288800954818726,
-0.23373687267303467,
-0.0897052064538002,
-0.09232661873102188,
0.2570893168449402,
-0.031962279230356216,
-0.20561066269874573,
-0.0013508492847904563,
-0.2553195357322693,
0.02588437683880329,
-0.2113853245973587,
0.13468779623508453,
0.36525049805641174,
0.359734445810318,
-0.4407244920730591,
-0.4705248773097992,
0.17312723398208618,
0.27375128865242004,
-0.18334780633449554,
0.5526423454284668,
-0.08299602568149567,
-0.2301497608423233,
0.15582232177257538,
0.044628243893384933,
1.0017777681350708,
0.02924300916492939,
0.09188663959503174,
-0.249991312623024,
0.05647731199860573,
0.6650121212005615,
-0.37294626235961914,
0.33067670464515686,
-0.28588083386421204,
-0.21053113043308258,
-0.18871116638183594,
-0.22684405744075775,
-0.08356260508298874,
0.2917119860649109,
-0.199439138174057,
0.49630865454673767,
0.05405120924115181,
0.5679223537445068,
0.22493848204612732,
0.07031873613595963,
0.19062359631061554,
-0.11996711045503616,
0.26166602969169617,
0.07315423339605331,
0.1753249317407608,
0.3935573101043701,
-0.090989850461483,
0.11189211159944534,
0.09074927121400833,
-0.09879741817712784,
-0.2807954251766205,
0.10617554932832718,
-0.36558911204338074,
0.25313106179237366,
-0.050557419657707214,
0.17433030903339386,
0.10042291134595871,
0.35758060216903687,
0.5060385465621948,
0.208212211728096,
-0.18855230510234833,
0.13585598766803741,
0.1558087170124054,
0.26170453429222107,
-0.14115577936172485,
-0.2263828068971634,
0.028073757886886597,
0.00029432683368213475,
-0.20791734755039215,
-0.010965553112328053,
0.032626669853925705,
-0.4142288863658905,
-0.35285714268684387,
-0.027025580406188965,
0.3227230906486511,
-0.20366187393665314,
0.07059132307767868,
0.18813054263591766,
0.06304824352264404,
-0.04375631734728813,
0.03805667161941528,
-0.022182496264576912,
0.07383963465690613,
0.5688582062721252,
-0.27172350883483887,
-0.13928772509098053,
-0.013238712213933468,
0.45977982878685,
0.3361430764198303,
-0.1777527779340744,
0.5680007934570312,
-0.2200244665145874,
-0.24020403623580933,
-0.04722222313284874,
-0.4798620641231537,
0.05840085446834564,
-0.3148994445800781,
-0.03784668445587158,
-0.3966694474220276,
0.06053049489855766,
0.14067117869853973,
-0.05752266198396683,
-0.030745241791009903,
-0.19937829673290253,
-0.12169584631919861,
-0.22992083430290222,
-0.20371480286121368,
0.04219549894332886,
0.04360311105847359,
0.16316339373588562,
0.22557605803012848,
0.06446992605924606,
-0.04053090512752533,
0.41898563504219055,
-0.15359556674957275,
0.04440203681588173,
0.1507003903388977,
0.12219609320163727,
-0.21099025011062622,
-0.08776326477527618,
-0.05869218707084656,
-0.10460884124040604,
-0.11376234143972397,
0.31145164370536804,
-0.06390237808227539,
-0.052166879177093506,
0.09888532012701035,
0.20194368064403534,
0.20774772763252258,
-0.02391507849097252,
-0.04570278152823448,
-0.018330128863453865,
0.07870154082775116,
-0.36523571610450745,
0.09146980941295624,
0.05968470126390457,
-0.022996913641691208,
0.23533840477466583,
0.33578044176101685,
-0.08331224322319031,
-0.278767466545105,
0.15750250220298767,
-0.06761009246110916,
0.04965874180197716,
-0.029231438413262367,
0.2691749632358551,
0.3636685311794281,
0.019830094650387764,
-0.08000373095273972,
-0.029180137440562248,
0.11315567046403885,
0.032755881547927856,
0.3520662188529968,
-0.41420525312423706,
0.017141757532954216,
0.2618720233440399,
-0.09399990737438202,
0.3780743181705475,
-0.12554869055747986,
-0.35121941566467285,
0.28936728835105896,
0.11027290672063828,
-0.2677420973777771,
-0.345725417137146,
0.28659337759017944,
0.09862248599529266,
-0.1312386393547058,
0.0857275202870369,
0.033620670437812805,
-0.17569436132907867,
0.32646068930625916,
0.10745035111904144,
0.4046725332736969,
-0.43510374426841736,
0.3502947986125946,
0.2615407109260559,
0.2842252552509308,
0.14601635932922363,
0.17856775224208832,
0.21875354647636414,
-0.2382124811410904,
0.1690315306186676,
0.11954769492149353,
0.2626832127571106,
0.15095333755016327,
-0.086133673787117,
0.06701483577489853,
-0.29401764273643494,
-0.019943810999393463,
0.3258395493030548,
-0.10453580319881439,
0.3778480887413025,
-0.056529004126787186,
-0.12614938616752625,
0.18447980284690857,
-0.06482245773077011,
-0.28930363059043884,
0.17136533558368683,
-0.25771665573120117,
-0.13739396631717682,
0.2168830782175064,
-0.16063416004180908,
-0.019861320033669472,
-0.1444624364376068,
0.13803249597549438,
0.001731676165945828,
0.5208861827850342,
0.019092215225100517,
-0.15047608315944672,
-0.11493953317403793,
-0.2739807367324829,
0.18267427384853363,
0.5745248198509216,
-0.1868024468421936,
0.09266497194766998,
-0.21385496854782104,
-0.023914217948913574,
-0.09012328088283539,
0.3141930401325226,
0.17926880717277527,
0.40270689129829407,
-0.14731615781784058,
0.08058705925941467,
0.25736257433891296,
0.09969538450241089,
-0.036729343235492706,
0.4875115752220154,
-0.1763319969177246,
-0.39671358466148376,
0.0521714985370636,
0.06903274357318878,
-0.03182864189147949,
-0.15987738966941833,
-0.271125853061676,
0.36790192127227783,
-0.4220820367336273,
0.3023279309272766,
-0.09546435624361038,
0.07348061352968216,
-0.06744930893182755,
0.18109838664531708,
-0.3221395015716553,
0.19769367575645447,
0.5176385045051575,
-0.11355486512184143,
0.1017570048570633,
-0.2707713842391968,
0.028198523446917534,
-0.040558140724897385,
0.28504467010498047,
0.43473348021507263,
-0.25262564420700073,
-0.20765429735183716,
-0.2799324691295624,
-0.4617501199245453,
0.37353914976119995,
-0.14974680542945862,
0.2867359519004822,
0.023986220359802246,
0.10445931553840637,
-0.05198495462536812,
-0.049172233790159225,
0.3006148040294647,
0.1457594782114029,
-0.227987140417099,
0.30767199397087097,
-0.347115695476532,
-0.04059506207704544,
-0.3000037372112274,
0.0067510767839848995,
0.17163203656673431,
-0.3455072343349457,
0.4444892108440399,
0.19556084275245667,
0.02729378640651703,
-0.02339962124824524,
0.06782667338848114,
0.21913102269172668,
-0.0610969141125679,
0.5450428128242493,
0.34657686948776245,
0.23694071173667908,
-0.02093258500099182,
-0.09342171996831894,
-0.09495437890291214,
-0.02100510708987713,
-0.12074241787195206,
0.04701271280646324,
-0.12103546410799026,
0.08204271644353867,
-0.4738940894603729,
0.0651584044098854,
-0.3022507131099701,
-0.19563744962215424,
0.28562411665916443,
-0.0026544532738626003,
-0.1738128364086151,
-0.15563999116420746,
-0.06103752553462982,
0.1276528686285019,
0.16682031750679016,
0.4713115096092224,
-0.22909878194332123,
0.4036518335342407,
-0.2490561157464981,
-0.19765466451644897,
0.33298826217651367,
-0.6163407564163208,
-0.4550292193889618,
-0.2239353060722351,
0.137532576918602,
0.11766307801008224,
-0.3350003957748413,
-0.6715466380119324,
-0.18104369938373566,
0.31741297245025635,
0.08836812525987625,
-0.03373776376247406,
0.14054562151432037,
0.04440924897789955,
0.248386949300766,
-0.1456892192363739,
0.5623006224632263,
0.055051062256097794,
0.02951623685657978,
0.2277144491672516,
-0.1859031319618225
] |
https://github.com/huggingface/datasets/issues/1718 | Possible cache miss in datasets | Oh yes indeed ! Maybe we need to update the docstring to mention that it is a path | Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
``` | 18 | Possible cache miss in datasets
Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
```
Oh yes indeed ! Maybe we need to update the docstring to mention that it is a path | [
-0.1930394321680069,
0.12105351686477661,
0.05009520798921585,
0.19009333848953247,
0.007696859072893858,
0.036921512335538864,
-0.016855232417583466,
0.23035003244876862,
0.01673312298953533,
-0.10844311118125916,
0.10299880802631378,
0.4139713644981384,
0.22491194307804108,
-0.11172405630350113,
-0.001110300188884139,
0.24461320042610168,
0.3074612021446228,
0.3216937184333801,
-0.1533997654914856,
-0.208875834941864,
-0.289175420999527,
0.1171129122376442,
-0.3328206241130829,
-0.09242920577526093,
-0.41705039143562317,
0.21232819557189941,
-0.0168770719319582,
-0.42083939909935,
0.11226038634777069,
-0.25558674335479736,
0.31771594285964966,
0.08582867681980133,
0.19921879470348358,
0.557023823261261,
-0.0001258203265024349,
-0.26760199666023254,
0.35409584641456604,
-0.06947390735149384,
-0.20524761080741882,
0.07682175189256668,
-0.2844771146774292,
0.03804402053356171,
-0.11269348859786987,
0.023367417976260185,
0.058439310640096664,
0.058709517121315,
0.03796656057238579,
-0.6514902710914612,
0.30601996183395386,
0.1629108190536499,
0.10259271413087845,
0.0332760214805603,
-0.09534268826246262,
0.23457974195480347,
0.050203099846839905,
-0.012025350704789162,
-0.038743797689676285,
-0.33304476737976074,
0.16303858160972595,
-0.3523213565349579,
0.062146712094545364,
0.5163407325744629,
-0.17574362456798553,
-0.14190338551998138,
0.3870672285556793,
-0.011780615895986557,
0.017935380339622498,
-0.26469895243644714,
0.3020607531070709,
-0.06447051465511322,
0.5929014086723328,
-0.37321245670318604,
-0.4453590214252472,
-0.22181552648544312,
-0.2183968871831894,
-0.1797119826078415,
0.34789568185806274,
-0.2814226746559143,
0.11512422561645508,
0.1367775946855545,
-0.5952910780906677,
-0.3717096745967865,
0.2665034532546997,
0.12685030698776245,
-0.0126038221642375,
0.11882913112640381,
-0.04426441341638565,
0.1275966763496399,
-0.25835999846458435,
0.03056361898779869,
0.27869313955307007,
-0.5107076168060303,
-0.02041216753423214,
0.4761804938316345,
-0.4573769271373749,
-0.11419877409934998,
-0.08139568567276001,
0.044457919895648956,
0.03132028132677078,
0.2521778345108032,
-0.10786924511194229,
0.08482856303453445,
-0.10457562655210495,
-0.02482771873474121,
0.17180058360099792,
0.38190513849258423,
0.15994884073734283,
0.39592763781547546,
-0.04663237929344177,
-0.2572212219238281,
-0.4361516833305359,
-0.14235128462314606,
0.10151029378175735,
0.06231677904725075,
0.5376319885253906,
0.02919948473572731,
-0.26707208156585693,
-0.1527191549539566,
0.13509222865104675,
0.11047434061765671,
-0.11315063387155533,
-0.15427201986312866,
0.02068696729838848,
0.1861226111650467,
-0.21872049570083618,
0.5657749176025391,
-0.04890252649784088,
0.011322342790663242,
-0.2269069105386734,
-0.07549622654914856,
-0.2520526945590973,
-0.19494116306304932,
-0.27974164485931396,
0.4240115284919739,
0.10798054188489914,
-0.00875756423920393,
0.19316412508487701,
0.11374563723802567,
0.14129139482975006,
-0.24853020906448364,
0.2450801581144333,
-0.19523467123508453,
0.14468860626220703,
0.03134032338857651,
-0.12242696434259415,
0.5588544607162476,
0.023827893659472466,
0.0820714607834816,
-0.057829733937978745,
0.2793505787849426,
-0.3909226953983307,
-0.0032498773653060198,
0.26785027980804443,
0.07660143822431564,
-0.10498809814453125,
-0.05132686346769333,
-0.13654571771621704,
-0.04772741720080376,
0.6230664253234863,
-0.35340285301208496,
0.00285854353569448,
-0.1369541585445404,
-0.21815979480743408,
-0.35522371530532837,
0.1964019536972046,
0.41514429450035095,
-0.22030092775821686,
-0.12714430689811707,
-0.2892492711544037,
0.42622604966163635,
0.3456283509731293,
0.19041188061237335,
-0.09975957125425339,
0.22389627993106842,
-0.24362382292747498,
0.25334617495536804,
0.3463945686817169,
-0.3264121115207672,
-0.7522773146629333,
-0.06231800094246864,
0.2395535558462143,
0.21382400393486023,
-0.2641492784023285,
0.009117771871387959,
0.0585763119161129,
0.022012649103999138,
-0.04730614647269249,
0.12475938349962234,
0.07109463214874268,
0.047940779477357864,
-0.1934206783771515,
-0.32378414273262024,
0.3307862877845764,
-0.15344886481761932,
0.3734350800514221,
0.20391103625297546,
-0.2786327004432678,
-0.06542865186929703,
0.1897791475057602,
-0.07331199944019318,
0.2045675367116928,
0.21111217141151428,
0.08593922108411789,
0.09632892161607742,
0.34253641963005066,
-0.14452588558197021,
-0.22084525227546692,
0.23616015911102295,
-0.007498309947550297,
-0.40805086493492126,
0.05238117650151253,
-0.0693814605474472,
0.03421063721179962,
-0.17514391243457794,
-0.23687176406383514,
-0.25076714158058167,
0.04695970565080643,
0.29829269647598267,
0.2158329039812088,
0.0493258573114872,
-0.06285588443279266,
0.4346981346607208,
0.22479619085788727,
-0.0474485382437706,
-0.13699759542942047,
0.23143744468688965,
0.13785377144813538,
-0.07235301285982132,
-0.262255996465683,
-0.0077892811968922615,
0.386508584022522,
0.20507816970348358,
-0.17280864715576172,
0.19992290437221527,
0.2821435332298279,
0.13053958117961884,
-0.15808607637882233,
0.03777531534433365,
-0.09649767726659775,
0.07604556530714035,
-0.18035317957401276,
0.018961207941174507,
0.09124196320772171,
-0.20247362554073334,
0.33897024393081665,
-0.09822438657283783,
0.04353925585746765,
0.17285223305225372,
-0.1738722324371338,
-0.11649591475725174,
-0.01941618137061596,
-0.05754147469997406,
0.12157203257083893,
-0.2605113983154297,
-0.12677407264709473,
-0.10074297338724136,
0.40187734365463257,
0.1480000913143158,
0.317086786031723,
0.14310486614704132,
0.5319444537162781,
0.16380415856838226,
0.07024979591369629,
-0.07549664378166199,
-0.5950469374656677,
-0.15330542623996735,
0.0420684814453125,
0.10673389583826065,
0.40316659212112427,
0.0140681192278862,
0.13723517954349518,
-0.10653546452522278,
0.1262332648038864,
0.05367311090230942,
0.08399072289466858,
0.05157412588596344,
0.0034557764884084463,
0.1623285561800003,
0.08191736042499542,
0.12391849607229233,
-0.15448473393917084,
0.3739553391933441,
0.22236989438533783,
0.02240816503763199,
-0.12013319879770279,
-0.004782917443662882,
-0.4614661633968353,
0.2616465389728546,
-0.00941531639546156,
-0.18774226307868958,
-0.10895445942878723,
-0.3240407407283783,
-0.02937140129506588,
0.17503385245800018,
0.23235087096691132,
0.170265331864357,
-0.10677357763051987,
0.16378909349441528,
-0.09658597409725189,
-0.06340808421373367,
-0.2861725091934204,
-0.04422691836953163,
-0.351602703332901,
-0.10436856746673584,
0.027629541233181953,
-0.3332436978816986,
0.10926850140094757,
-0.19780023396015167,
0.044877395033836365,
-0.3304949700832367,
-0.24961386620998383,
0.0687255933880806,
0.14242137968540192,
-0.19136148691177368,
-0.1454961597919464,
-0.13314521312713623,
-0.34062254428863525,
-0.07776153087615967,
0.10528524965047836,
-0.37550339102745056,
-0.058996062725782394,
-0.19424286484718323,
0.22689706087112427,
-0.07328362762928009,
0.06139032542705536,
-0.0987810418009758,
0.045062899589538574,
0.0523565337061882,
-0.09228018671274185,
-0.12052033096551895,
-0.09919613599777222,
-0.10735157877206802,
-0.17789514362812042,
-0.14736905694007874,
-0.29404228925704956,
-0.1225033849477768,
-0.5240330100059509,
-0.2998073101043701,
0.5365316867828369,
-0.12470077723264694,
-0.07930251210927963,
-0.10533584654331207,
-0.02949395589530468,
0.30539795756340027,
0.46651050448417664,
-0.5257644653320312,
-0.06458007544279099,
-0.20277538895606995,
-0.18987230956554413,
-0.14755530655384064,
0.3041582405567169,
0.3952637016773224,
0.19113337993621826,
0.1284651905298233,
-0.4285716414451599,
-0.2033013552427292,
0.020704658702015877,
0.001100674387998879,
0.4422149956226349,
-0.03273066133260727,
0.20218230783939362,
-0.08188918232917786,
0.803088903427124,
0.6181523203849792,
-0.21779578924179077,
0.23084500432014465,
0.11477915197610855,
0.3255804777145386,
-0.14092759788036346,
-0.19788827002048492,
-0.1367318034172058,
-0.3422306776046753,
0.09499292075634003,
0.18335063755512238,
0.1425251066684723,
-0.3120465576648712,
-0.15705452859401703,
0.09193017333745956,
-0.3112707734107971,
-0.32971301674842834,
-0.08052312582731247,
-0.24852998554706573,
0.3068063259124756,
0.351083904504776,
0.3141098916530609,
-0.7173702716827393,
-0.12203891575336456,
0.25282880663871765,
-0.21448352932929993,
0.468978613615036,
0.11479660868644714,
-0.21096168458461761,
-0.13886409997940063,
-0.34431883692741394,
0.3209450840950012,
0.22757066786289215,
0.366901695728302,
0.21778354048728943,
0.017415065318346024,
-0.1508578658103943,
0.10885759443044662,
0.43157070875167847,
-0.7976605296134949,
-0.3380017578601837,
-0.11149293184280396,
-0.05547370761632919,
-0.02103240229189396,
-0.04060209542512894,
0.351041704416275,
0.22571229934692383,
0.04130013287067413,
0.2744194269180298,
0.03855278715491295,
0.007579932454973459,
-0.32338544726371765,
0.17293407022953033,
-0.23463448882102966,
-0.31523334980010986,
-0.098659947514534,
0.27012526988983154,
-0.09005975723266602,
-0.2996428906917572,
0.028634272515773773,
-0.16891875863075256,
0.05742333084344864,
-0.1737726479768753,
-0.3051755726337433,
0.05799715220928192,
0.10664761066436768,
0.02927437238395214,
0.555604875087738,
-0.028238872066140175,
0.3208509087562561,
0.1760173887014389,
0.01832927018404007,
0.07111603021621704,
0.2807704210281372,
-0.14288800954818726,
-0.23373687267303467,
-0.0897052064538002,
-0.09232661873102188,
0.2570893168449402,
-0.031962279230356216,
-0.20561066269874573,
-0.0013508492847904563,
-0.2553195357322693,
0.02588437683880329,
-0.2113853245973587,
0.13468779623508453,
0.36525049805641174,
0.359734445810318,
-0.4407244920730591,
-0.4705248773097992,
0.17312723398208618,
0.27375128865242004,
-0.18334780633449554,
0.5526423454284668,
-0.08299602568149567,
-0.2301497608423233,
0.15582232177257538,
0.044628243893384933,
1.0017777681350708,
0.02924300916492939,
0.09188663959503174,
-0.249991312623024,
0.05647731199860573,
0.6650121212005615,
-0.37294626235961914,
0.33067670464515686,
-0.28588083386421204,
-0.21053113043308258,
-0.18871116638183594,
-0.22684405744075775,
-0.08356260508298874,
0.2917119860649109,
-0.199439138174057,
0.49630865454673767,
0.05405120924115181,
0.5679223537445068,
0.22493848204612732,
0.07031873613595963,
0.19062359631061554,
-0.11996711045503616,
0.26166602969169617,
0.07315423339605331,
0.1753249317407608,
0.3935573101043701,
-0.090989850461483,
0.11189211159944534,
0.09074927121400833,
-0.09879741817712784,
-0.2807954251766205,
0.10617554932832718,
-0.36558911204338074,
0.25313106179237366,
-0.050557419657707214,
0.17433030903339386,
0.10042291134595871,
0.35758060216903687,
0.5060385465621948,
0.208212211728096,
-0.18855230510234833,
0.13585598766803741,
0.1558087170124054,
0.26170453429222107,
-0.14115577936172485,
-0.2263828068971634,
0.028073757886886597,
0.00029432683368213475,
-0.20791734755039215,
-0.010965553112328053,
0.032626669853925705,
-0.4142288863658905,
-0.35285714268684387,
-0.027025580406188965,
0.3227230906486511,
-0.20366187393665314,
0.07059132307767868,
0.18813054263591766,
0.06304824352264404,
-0.04375631734728813,
0.03805667161941528,
-0.022182496264576912,
0.07383963465690613,
0.5688582062721252,
-0.27172350883483887,
-0.13928772509098053,
-0.013238712213933468,
0.45977982878685,
0.3361430764198303,
-0.1777527779340744,
0.5680007934570312,
-0.2200244665145874,
-0.24020403623580933,
-0.04722222313284874,
-0.4798620641231537,
0.05840085446834564,
-0.3148994445800781,
-0.03784668445587158,
-0.3966694474220276,
0.06053049489855766,
0.14067117869853973,
-0.05752266198396683,
-0.030745241791009903,
-0.19937829673290253,
-0.12169584631919861,
-0.22992083430290222,
-0.20371480286121368,
0.04219549894332886,
0.04360311105847359,
0.16316339373588562,
0.22557605803012848,
0.06446992605924606,
-0.04053090512752533,
0.41898563504219055,
-0.15359556674957275,
0.04440203681588173,
0.1507003903388977,
0.12219609320163727,
-0.21099025011062622,
-0.08776326477527618,
-0.05869218707084656,
-0.10460884124040604,
-0.11376234143972397,
0.31145164370536804,
-0.06390237808227539,
-0.052166879177093506,
0.09888532012701035,
0.20194368064403534,
0.20774772763252258,
-0.02391507849097252,
-0.04570278152823448,
-0.018330128863453865,
0.07870154082775116,
-0.36523571610450745,
0.09146980941295624,
0.05968470126390457,
-0.022996913641691208,
0.23533840477466583,
0.33578044176101685,
-0.08331224322319031,
-0.278767466545105,
0.15750250220298767,
-0.06761009246110916,
0.04965874180197716,
-0.029231438413262367,
0.2691749632358551,
0.3636685311794281,
0.019830094650387764,
-0.08000373095273972,
-0.029180137440562248,
0.11315567046403885,
0.032755881547927856,
0.3520662188529968,
-0.41420525312423706,
0.017141757532954216,
0.2618720233440399,
-0.09399990737438202,
0.3780743181705475,
-0.12554869055747986,
-0.35121941566467285,
0.28936728835105896,
0.11027290672063828,
-0.2677420973777771,
-0.345725417137146,
0.28659337759017944,
0.09862248599529266,
-0.1312386393547058,
0.0857275202870369,
0.033620670437812805,
-0.17569436132907867,
0.32646068930625916,
0.10745035111904144,
0.4046725332736969,
-0.43510374426841736,
0.3502947986125946,
0.2615407109260559,
0.2842252552509308,
0.14601635932922363,
0.17856775224208832,
0.21875354647636414,
-0.2382124811410904,
0.1690315306186676,
0.11954769492149353,
0.2626832127571106,
0.15095333755016327,
-0.086133673787117,
0.06701483577489853,
-0.29401764273643494,
-0.019943810999393463,
0.3258395493030548,
-0.10453580319881439,
0.3778480887413025,
-0.056529004126787186,
-0.12614938616752625,
0.18447980284690857,
-0.06482245773077011,
-0.28930363059043884,
0.17136533558368683,
-0.25771665573120117,
-0.13739396631717682,
0.2168830782175064,
-0.16063416004180908,
-0.019861320033669472,
-0.1444624364376068,
0.13803249597549438,
0.001731676165945828,
0.5208861827850342,
0.019092215225100517,
-0.15047608315944672,
-0.11493953317403793,
-0.2739807367324829,
0.18267427384853363,
0.5745248198509216,
-0.1868024468421936,
0.09266497194766998,
-0.21385496854782104,
-0.023914217948913574,
-0.09012328088283539,
0.3141930401325226,
0.17926880717277527,
0.40270689129829407,
-0.14731615781784058,
0.08058705925941467,
0.25736257433891296,
0.09969538450241089,
-0.036729343235492706,
0.4875115752220154,
-0.1763319969177246,
-0.39671358466148376,
0.0521714985370636,
0.06903274357318878,
-0.03182864189147949,
-0.15987738966941833,
-0.271125853061676,
0.36790192127227783,
-0.4220820367336273,
0.3023279309272766,
-0.09546435624361038,
0.07348061352968216,
-0.06744930893182755,
0.18109838664531708,
-0.3221395015716553,
0.19769367575645447,
0.5176385045051575,
-0.11355486512184143,
0.1017570048570633,
-0.2707713842391968,
0.028198523446917534,
-0.040558140724897385,
0.28504467010498047,
0.43473348021507263,
-0.25262564420700073,
-0.20765429735183716,
-0.2799324691295624,
-0.4617501199245453,
0.37353914976119995,
-0.14974680542945862,
0.2867359519004822,
0.023986220359802246,
0.10445931553840637,
-0.05198495462536812,
-0.049172233790159225,
0.3006148040294647,
0.1457594782114029,
-0.227987140417099,
0.30767199397087097,
-0.347115695476532,
-0.04059506207704544,
-0.3000037372112274,
0.0067510767839848995,
0.17163203656673431,
-0.3455072343349457,
0.4444892108440399,
0.19556084275245667,
0.02729378640651703,
-0.02339962124824524,
0.06782667338848114,
0.21913102269172668,
-0.0610969141125679,
0.5450428128242493,
0.34657686948776245,
0.23694071173667908,
-0.02093258500099182,
-0.09342171996831894,
-0.09495437890291214,
-0.02100510708987713,
-0.12074241787195206,
0.04701271280646324,
-0.12103546410799026,
0.08204271644353867,
-0.4738940894603729,
0.0651584044098854,
-0.3022507131099701,
-0.19563744962215424,
0.28562411665916443,
-0.0026544532738626003,
-0.1738128364086151,
-0.15563999116420746,
-0.06103752553462982,
0.1276528686285019,
0.16682031750679016,
0.4713115096092224,
-0.22909878194332123,
0.4036518335342407,
-0.2490561157464981,
-0.19765466451644897,
0.33298826217651367,
-0.6163407564163208,
-0.4550292193889618,
-0.2239353060722351,
0.137532576918602,
0.11766307801008224,
-0.3350003957748413,
-0.6715466380119324,
-0.18104369938373566,
0.31741297245025635,
0.08836812525987625,
-0.03373776376247406,
0.14054562151432037,
0.04440924897789955,
0.248386949300766,
-0.1456892192363739,
0.5623006224632263,
0.055051062256097794,
0.02951623685657978,
0.2277144491672516,
-0.1859031319618225
] |
https://github.com/huggingface/datasets/issues/1718 | Possible cache miss in datasets | I upgraded to the latest version and I encountered some strange behaviour, the script I posted in the OP doesn't trigger recalculation, however, if I add the following change it does trigger partial recalculation, I am not sure if its something wrong on my machine or a bug:
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
# CHANGE
print('hello')
# CHANGE
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
...
```
I am using datasets in the `run_mlm.py` script in the transformers examples and I found that if I change the script without touching any of the preprocessing. it still triggers recalculation which is very weird
Edit: accidently clicked the close issue button | Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
``` | 136 | Possible cache miss in datasets
Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
```
I upgraded to the latest version and I encountered some strange behaviour, the script I posted in the OP doesn't trigger recalculation, however, if I add the following change it does trigger partial recalculation, I am not sure if its something wrong on my machine or a bug:
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
# CHANGE
print('hello')
# CHANGE
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
...
```
I am using datasets in the `run_mlm.py` script in the transformers examples and I found that if I change the script without touching any of the preprocessing. it still triggers recalculation which is very weird
Edit: accidently clicked the close issue button | [
-0.1930394321680069,
0.12105351686477661,
0.05009520798921585,
0.19009333848953247,
0.007696859072893858,
0.036921512335538864,
-0.016855232417583466,
0.23035003244876862,
0.01673312298953533,
-0.10844311118125916,
0.10299880802631378,
0.4139713644981384,
0.22491194307804108,
-0.11172405630350113,
-0.001110300188884139,
0.24461320042610168,
0.3074612021446228,
0.3216937184333801,
-0.1533997654914856,
-0.208875834941864,
-0.289175420999527,
0.1171129122376442,
-0.3328206241130829,
-0.09242920577526093,
-0.41705039143562317,
0.21232819557189941,
-0.0168770719319582,
-0.42083939909935,
0.11226038634777069,
-0.25558674335479736,
0.31771594285964966,
0.08582867681980133,
0.19921879470348358,
0.557023823261261,
-0.0001258203265024349,
-0.26760199666023254,
0.35409584641456604,
-0.06947390735149384,
-0.20524761080741882,
0.07682175189256668,
-0.2844771146774292,
0.03804402053356171,
-0.11269348859786987,
0.023367417976260185,
0.058439310640096664,
0.058709517121315,
0.03796656057238579,
-0.6514902710914612,
0.30601996183395386,
0.1629108190536499,
0.10259271413087845,
0.0332760214805603,
-0.09534268826246262,
0.23457974195480347,
0.050203099846839905,
-0.012025350704789162,
-0.038743797689676285,
-0.33304476737976074,
0.16303858160972595,
-0.3523213565349579,
0.062146712094545364,
0.5163407325744629,
-0.17574362456798553,
-0.14190338551998138,
0.3870672285556793,
-0.011780615895986557,
0.017935380339622498,
-0.26469895243644714,
0.3020607531070709,
-0.06447051465511322,
0.5929014086723328,
-0.37321245670318604,
-0.4453590214252472,
-0.22181552648544312,
-0.2183968871831894,
-0.1797119826078415,
0.34789568185806274,
-0.2814226746559143,
0.11512422561645508,
0.1367775946855545,
-0.5952910780906677,
-0.3717096745967865,
0.2665034532546997,
0.12685030698776245,
-0.0126038221642375,
0.11882913112640381,
-0.04426441341638565,
0.1275966763496399,
-0.25835999846458435,
0.03056361898779869,
0.27869313955307007,
-0.5107076168060303,
-0.02041216753423214,
0.4761804938316345,
-0.4573769271373749,
-0.11419877409934998,
-0.08139568567276001,
0.044457919895648956,
0.03132028132677078,
0.2521778345108032,
-0.10786924511194229,
0.08482856303453445,
-0.10457562655210495,
-0.02482771873474121,
0.17180058360099792,
0.38190513849258423,
0.15994884073734283,
0.39592763781547546,
-0.04663237929344177,
-0.2572212219238281,
-0.4361516833305359,
-0.14235128462314606,
0.10151029378175735,
0.06231677904725075,
0.5376319885253906,
0.02919948473572731,
-0.26707208156585693,
-0.1527191549539566,
0.13509222865104675,
0.11047434061765671,
-0.11315063387155533,
-0.15427201986312866,
0.02068696729838848,
0.1861226111650467,
-0.21872049570083618,
0.5657749176025391,
-0.04890252649784088,
0.011322342790663242,
-0.2269069105386734,
-0.07549622654914856,
-0.2520526945590973,
-0.19494116306304932,
-0.27974164485931396,
0.4240115284919739,
0.10798054188489914,
-0.00875756423920393,
0.19316412508487701,
0.11374563723802567,
0.14129139482975006,
-0.24853020906448364,
0.2450801581144333,
-0.19523467123508453,
0.14468860626220703,
0.03134032338857651,
-0.12242696434259415,
0.5588544607162476,
0.023827893659472466,
0.0820714607834816,
-0.057829733937978745,
0.2793505787849426,
-0.3909226953983307,
-0.0032498773653060198,
0.26785027980804443,
0.07660143822431564,
-0.10498809814453125,
-0.05132686346769333,
-0.13654571771621704,
-0.04772741720080376,
0.6230664253234863,
-0.35340285301208496,
0.00285854353569448,
-0.1369541585445404,
-0.21815979480743408,
-0.35522371530532837,
0.1964019536972046,
0.41514429450035095,
-0.22030092775821686,
-0.12714430689811707,
-0.2892492711544037,
0.42622604966163635,
0.3456283509731293,
0.19041188061237335,
-0.09975957125425339,
0.22389627993106842,
-0.24362382292747498,
0.25334617495536804,
0.3463945686817169,
-0.3264121115207672,
-0.7522773146629333,
-0.06231800094246864,
0.2395535558462143,
0.21382400393486023,
-0.2641492784023285,
0.009117771871387959,
0.0585763119161129,
0.022012649103999138,
-0.04730614647269249,
0.12475938349962234,
0.07109463214874268,
0.047940779477357864,
-0.1934206783771515,
-0.32378414273262024,
0.3307862877845764,
-0.15344886481761932,
0.3734350800514221,
0.20391103625297546,
-0.2786327004432678,
-0.06542865186929703,
0.1897791475057602,
-0.07331199944019318,
0.2045675367116928,
0.21111217141151428,
0.08593922108411789,
0.09632892161607742,
0.34253641963005066,
-0.14452588558197021,
-0.22084525227546692,
0.23616015911102295,
-0.007498309947550297,
-0.40805086493492126,
0.05238117650151253,
-0.0693814605474472,
0.03421063721179962,
-0.17514391243457794,
-0.23687176406383514,
-0.25076714158058167,
0.04695970565080643,
0.29829269647598267,
0.2158329039812088,
0.0493258573114872,
-0.06285588443279266,
0.4346981346607208,
0.22479619085788727,
-0.0474485382437706,
-0.13699759542942047,
0.23143744468688965,
0.13785377144813538,
-0.07235301285982132,
-0.262255996465683,
-0.0077892811968922615,
0.386508584022522,
0.20507816970348358,
-0.17280864715576172,
0.19992290437221527,
0.2821435332298279,
0.13053958117961884,
-0.15808607637882233,
0.03777531534433365,
-0.09649767726659775,
0.07604556530714035,
-0.18035317957401276,
0.018961207941174507,
0.09124196320772171,
-0.20247362554073334,
0.33897024393081665,
-0.09822438657283783,
0.04353925585746765,
0.17285223305225372,
-0.1738722324371338,
-0.11649591475725174,
-0.01941618137061596,
-0.05754147469997406,
0.12157203257083893,
-0.2605113983154297,
-0.12677407264709473,
-0.10074297338724136,
0.40187734365463257,
0.1480000913143158,
0.317086786031723,
0.14310486614704132,
0.5319444537162781,
0.16380415856838226,
0.07024979591369629,
-0.07549664378166199,
-0.5950469374656677,
-0.15330542623996735,
0.0420684814453125,
0.10673389583826065,
0.40316659212112427,
0.0140681192278862,
0.13723517954349518,
-0.10653546452522278,
0.1262332648038864,
0.05367311090230942,
0.08399072289466858,
0.05157412588596344,
0.0034557764884084463,
0.1623285561800003,
0.08191736042499542,
0.12391849607229233,
-0.15448473393917084,
0.3739553391933441,
0.22236989438533783,
0.02240816503763199,
-0.12013319879770279,
-0.004782917443662882,
-0.4614661633968353,
0.2616465389728546,
-0.00941531639546156,
-0.18774226307868958,
-0.10895445942878723,
-0.3240407407283783,
-0.02937140129506588,
0.17503385245800018,
0.23235087096691132,
0.170265331864357,
-0.10677357763051987,
0.16378909349441528,
-0.09658597409725189,
-0.06340808421373367,
-0.2861725091934204,
-0.04422691836953163,
-0.351602703332901,
-0.10436856746673584,
0.027629541233181953,
-0.3332436978816986,
0.10926850140094757,
-0.19780023396015167,
0.044877395033836365,
-0.3304949700832367,
-0.24961386620998383,
0.0687255933880806,
0.14242137968540192,
-0.19136148691177368,
-0.1454961597919464,
-0.13314521312713623,
-0.34062254428863525,
-0.07776153087615967,
0.10528524965047836,
-0.37550339102745056,
-0.058996062725782394,
-0.19424286484718323,
0.22689706087112427,
-0.07328362762928009,
0.06139032542705536,
-0.0987810418009758,
0.045062899589538574,
0.0523565337061882,
-0.09228018671274185,
-0.12052033096551895,
-0.09919613599777222,
-0.10735157877206802,
-0.17789514362812042,
-0.14736905694007874,
-0.29404228925704956,
-0.1225033849477768,
-0.5240330100059509,
-0.2998073101043701,
0.5365316867828369,
-0.12470077723264694,
-0.07930251210927963,
-0.10533584654331207,
-0.02949395589530468,
0.30539795756340027,
0.46651050448417664,
-0.5257644653320312,
-0.06458007544279099,
-0.20277538895606995,
-0.18987230956554413,
-0.14755530655384064,
0.3041582405567169,
0.3952637016773224,
0.19113337993621826,
0.1284651905298233,
-0.4285716414451599,
-0.2033013552427292,
0.020704658702015877,
0.001100674387998879,
0.4422149956226349,
-0.03273066133260727,
0.20218230783939362,
-0.08188918232917786,
0.803088903427124,
0.6181523203849792,
-0.21779578924179077,
0.23084500432014465,
0.11477915197610855,
0.3255804777145386,
-0.14092759788036346,
-0.19788827002048492,
-0.1367318034172058,
-0.3422306776046753,
0.09499292075634003,
0.18335063755512238,
0.1425251066684723,
-0.3120465576648712,
-0.15705452859401703,
0.09193017333745956,
-0.3112707734107971,
-0.32971301674842834,
-0.08052312582731247,
-0.24852998554706573,
0.3068063259124756,
0.351083904504776,
0.3141098916530609,
-0.7173702716827393,
-0.12203891575336456,
0.25282880663871765,
-0.21448352932929993,
0.468978613615036,
0.11479660868644714,
-0.21096168458461761,
-0.13886409997940063,
-0.34431883692741394,
0.3209450840950012,
0.22757066786289215,
0.366901695728302,
0.21778354048728943,
0.017415065318346024,
-0.1508578658103943,
0.10885759443044662,
0.43157070875167847,
-0.7976605296134949,
-0.3380017578601837,
-0.11149293184280396,
-0.05547370761632919,
-0.02103240229189396,
-0.04060209542512894,
0.351041704416275,
0.22571229934692383,
0.04130013287067413,
0.2744194269180298,
0.03855278715491295,
0.007579932454973459,
-0.32338544726371765,
0.17293407022953033,
-0.23463448882102966,
-0.31523334980010986,
-0.098659947514534,
0.27012526988983154,
-0.09005975723266602,
-0.2996428906917572,
0.028634272515773773,
-0.16891875863075256,
0.05742333084344864,
-0.1737726479768753,
-0.3051755726337433,
0.05799715220928192,
0.10664761066436768,
0.02927437238395214,
0.555604875087738,
-0.028238872066140175,
0.3208509087562561,
0.1760173887014389,
0.01832927018404007,
0.07111603021621704,
0.2807704210281372,
-0.14288800954818726,
-0.23373687267303467,
-0.0897052064538002,
-0.09232661873102188,
0.2570893168449402,
-0.031962279230356216,
-0.20561066269874573,
-0.0013508492847904563,
-0.2553195357322693,
0.02588437683880329,
-0.2113853245973587,
0.13468779623508453,
0.36525049805641174,
0.359734445810318,
-0.4407244920730591,
-0.4705248773097992,
0.17312723398208618,
0.27375128865242004,
-0.18334780633449554,
0.5526423454284668,
-0.08299602568149567,
-0.2301497608423233,
0.15582232177257538,
0.044628243893384933,
1.0017777681350708,
0.02924300916492939,
0.09188663959503174,
-0.249991312623024,
0.05647731199860573,
0.6650121212005615,
-0.37294626235961914,
0.33067670464515686,
-0.28588083386421204,
-0.21053113043308258,
-0.18871116638183594,
-0.22684405744075775,
-0.08356260508298874,
0.2917119860649109,
-0.199439138174057,
0.49630865454673767,
0.05405120924115181,
0.5679223537445068,
0.22493848204612732,
0.07031873613595963,
0.19062359631061554,
-0.11996711045503616,
0.26166602969169617,
0.07315423339605331,
0.1753249317407608,
0.3935573101043701,
-0.090989850461483,
0.11189211159944534,
0.09074927121400833,
-0.09879741817712784,
-0.2807954251766205,
0.10617554932832718,
-0.36558911204338074,
0.25313106179237366,
-0.050557419657707214,
0.17433030903339386,
0.10042291134595871,
0.35758060216903687,
0.5060385465621948,
0.208212211728096,
-0.18855230510234833,
0.13585598766803741,
0.1558087170124054,
0.26170453429222107,
-0.14115577936172485,
-0.2263828068971634,
0.028073757886886597,
0.00029432683368213475,
-0.20791734755039215,
-0.010965553112328053,
0.032626669853925705,
-0.4142288863658905,
-0.35285714268684387,
-0.027025580406188965,
0.3227230906486511,
-0.20366187393665314,
0.07059132307767868,
0.18813054263591766,
0.06304824352264404,
-0.04375631734728813,
0.03805667161941528,
-0.022182496264576912,
0.07383963465690613,
0.5688582062721252,
-0.27172350883483887,
-0.13928772509098053,
-0.013238712213933468,
0.45977982878685,
0.3361430764198303,
-0.1777527779340744,
0.5680007934570312,
-0.2200244665145874,
-0.24020403623580933,
-0.04722222313284874,
-0.4798620641231537,
0.05840085446834564,
-0.3148994445800781,
-0.03784668445587158,
-0.3966694474220276,
0.06053049489855766,
0.14067117869853973,
-0.05752266198396683,
-0.030745241791009903,
-0.19937829673290253,
-0.12169584631919861,
-0.22992083430290222,
-0.20371480286121368,
0.04219549894332886,
0.04360311105847359,
0.16316339373588562,
0.22557605803012848,
0.06446992605924606,
-0.04053090512752533,
0.41898563504219055,
-0.15359556674957275,
0.04440203681588173,
0.1507003903388977,
0.12219609320163727,
-0.21099025011062622,
-0.08776326477527618,
-0.05869218707084656,
-0.10460884124040604,
-0.11376234143972397,
0.31145164370536804,
-0.06390237808227539,
-0.052166879177093506,
0.09888532012701035,
0.20194368064403534,
0.20774772763252258,
-0.02391507849097252,
-0.04570278152823448,
-0.018330128863453865,
0.07870154082775116,
-0.36523571610450745,
0.09146980941295624,
0.05968470126390457,
-0.022996913641691208,
0.23533840477466583,
0.33578044176101685,
-0.08331224322319031,
-0.278767466545105,
0.15750250220298767,
-0.06761009246110916,
0.04965874180197716,
-0.029231438413262367,
0.2691749632358551,
0.3636685311794281,
0.019830094650387764,
-0.08000373095273972,
-0.029180137440562248,
0.11315567046403885,
0.032755881547927856,
0.3520662188529968,
-0.41420525312423706,
0.017141757532954216,
0.2618720233440399,
-0.09399990737438202,
0.3780743181705475,
-0.12554869055747986,
-0.35121941566467285,
0.28936728835105896,
0.11027290672063828,
-0.2677420973777771,
-0.345725417137146,
0.28659337759017944,
0.09862248599529266,
-0.1312386393547058,
0.0857275202870369,
0.033620670437812805,
-0.17569436132907867,
0.32646068930625916,
0.10745035111904144,
0.4046725332736969,
-0.43510374426841736,
0.3502947986125946,
0.2615407109260559,
0.2842252552509308,
0.14601635932922363,
0.17856775224208832,
0.21875354647636414,
-0.2382124811410904,
0.1690315306186676,
0.11954769492149353,
0.2626832127571106,
0.15095333755016327,
-0.086133673787117,
0.06701483577489853,
-0.29401764273643494,
-0.019943810999393463,
0.3258395493030548,
-0.10453580319881439,
0.3778480887413025,
-0.056529004126787186,
-0.12614938616752625,
0.18447980284690857,
-0.06482245773077011,
-0.28930363059043884,
0.17136533558368683,
-0.25771665573120117,
-0.13739396631717682,
0.2168830782175064,
-0.16063416004180908,
-0.019861320033669472,
-0.1444624364376068,
0.13803249597549438,
0.001731676165945828,
0.5208861827850342,
0.019092215225100517,
-0.15047608315944672,
-0.11493953317403793,
-0.2739807367324829,
0.18267427384853363,
0.5745248198509216,
-0.1868024468421936,
0.09266497194766998,
-0.21385496854782104,
-0.023914217948913574,
-0.09012328088283539,
0.3141930401325226,
0.17926880717277527,
0.40270689129829407,
-0.14731615781784058,
0.08058705925941467,
0.25736257433891296,
0.09969538450241089,
-0.036729343235492706,
0.4875115752220154,
-0.1763319969177246,
-0.39671358466148376,
0.0521714985370636,
0.06903274357318878,
-0.03182864189147949,
-0.15987738966941833,
-0.271125853061676,
0.36790192127227783,
-0.4220820367336273,
0.3023279309272766,
-0.09546435624361038,
0.07348061352968216,
-0.06744930893182755,
0.18109838664531708,
-0.3221395015716553,
0.19769367575645447,
0.5176385045051575,
-0.11355486512184143,
0.1017570048570633,
-0.2707713842391968,
0.028198523446917534,
-0.040558140724897385,
0.28504467010498047,
0.43473348021507263,
-0.25262564420700073,
-0.20765429735183716,
-0.2799324691295624,
-0.4617501199245453,
0.37353914976119995,
-0.14974680542945862,
0.2867359519004822,
0.023986220359802246,
0.10445931553840637,
-0.05198495462536812,
-0.049172233790159225,
0.3006148040294647,
0.1457594782114029,
-0.227987140417099,
0.30767199397087097,
-0.347115695476532,
-0.04059506207704544,
-0.3000037372112274,
0.0067510767839848995,
0.17163203656673431,
-0.3455072343349457,
0.4444892108440399,
0.19556084275245667,
0.02729378640651703,
-0.02339962124824524,
0.06782667338848114,
0.21913102269172668,
-0.0610969141125679,
0.5450428128242493,
0.34657686948776245,
0.23694071173667908,
-0.02093258500099182,
-0.09342171996831894,
-0.09495437890291214,
-0.02100510708987713,
-0.12074241787195206,
0.04701271280646324,
-0.12103546410799026,
0.08204271644353867,
-0.4738940894603729,
0.0651584044098854,
-0.3022507131099701,
-0.19563744962215424,
0.28562411665916443,
-0.0026544532738626003,
-0.1738128364086151,
-0.15563999116420746,
-0.06103752553462982,
0.1276528686285019,
0.16682031750679016,
0.4713115096092224,
-0.22909878194332123,
0.4036518335342407,
-0.2490561157464981,
-0.19765466451644897,
0.33298826217651367,
-0.6163407564163208,
-0.4550292193889618,
-0.2239353060722351,
0.137532576918602,
0.11766307801008224,
-0.3350003957748413,
-0.6715466380119324,
-0.18104369938373566,
0.31741297245025635,
0.08836812525987625,
-0.03373776376247406,
0.14054562151432037,
0.04440924897789955,
0.248386949300766,
-0.1456892192363739,
0.5623006224632263,
0.055051062256097794,
0.02951623685657978,
0.2277144491672516,
-0.1859031319618225
] |
https://github.com/huggingface/datasets/issues/1718 | Possible cache miss in datasets | This is because the `group_texts` line definition changes (it is defined 3 lines later than in the previous call). Currently if a function is moved elsewhere in a script we consider it to be different.
Not sure this is actually a good idea to keep this behavior though. We had this as a security in the early development of the lib but now the recursive hashing of objects is robust so we can probably remove that.
Moreover we're already ignoring the line definition for lambda functions. | Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
``` | 86 | Possible cache miss in datasets
Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
```
This is because the `group_texts` line definition changes (it is defined 3 lines later than in the previous call). Currently if a function is moved elsewhere in a script we consider it to be different.
Not sure this is actually a good idea to keep this behavior though. We had this as a security in the early development of the lib but now the recursive hashing of objects is robust so we can probably remove that.
Moreover we're already ignoring the line definition for lambda functions. | [
-0.1930394321680069,
0.12105351686477661,
0.05009520798921585,
0.19009333848953247,
0.007696859072893858,
0.036921512335538864,
-0.016855232417583466,
0.23035003244876862,
0.01673312298953533,
-0.10844311118125916,
0.10299880802631378,
0.4139713644981384,
0.22491194307804108,
-0.11172405630350113,
-0.001110300188884139,
0.24461320042610168,
0.3074612021446228,
0.3216937184333801,
-0.1533997654914856,
-0.208875834941864,
-0.289175420999527,
0.1171129122376442,
-0.3328206241130829,
-0.09242920577526093,
-0.41705039143562317,
0.21232819557189941,
-0.0168770719319582,
-0.42083939909935,
0.11226038634777069,
-0.25558674335479736,
0.31771594285964966,
0.08582867681980133,
0.19921879470348358,
0.557023823261261,
-0.0001258203265024349,
-0.26760199666023254,
0.35409584641456604,
-0.06947390735149384,
-0.20524761080741882,
0.07682175189256668,
-0.2844771146774292,
0.03804402053356171,
-0.11269348859786987,
0.023367417976260185,
0.058439310640096664,
0.058709517121315,
0.03796656057238579,
-0.6514902710914612,
0.30601996183395386,
0.1629108190536499,
0.10259271413087845,
0.0332760214805603,
-0.09534268826246262,
0.23457974195480347,
0.050203099846839905,
-0.012025350704789162,
-0.038743797689676285,
-0.33304476737976074,
0.16303858160972595,
-0.3523213565349579,
0.062146712094545364,
0.5163407325744629,
-0.17574362456798553,
-0.14190338551998138,
0.3870672285556793,
-0.011780615895986557,
0.017935380339622498,
-0.26469895243644714,
0.3020607531070709,
-0.06447051465511322,
0.5929014086723328,
-0.37321245670318604,
-0.4453590214252472,
-0.22181552648544312,
-0.2183968871831894,
-0.1797119826078415,
0.34789568185806274,
-0.2814226746559143,
0.11512422561645508,
0.1367775946855545,
-0.5952910780906677,
-0.3717096745967865,
0.2665034532546997,
0.12685030698776245,
-0.0126038221642375,
0.11882913112640381,
-0.04426441341638565,
0.1275966763496399,
-0.25835999846458435,
0.03056361898779869,
0.27869313955307007,
-0.5107076168060303,
-0.02041216753423214,
0.4761804938316345,
-0.4573769271373749,
-0.11419877409934998,
-0.08139568567276001,
0.044457919895648956,
0.03132028132677078,
0.2521778345108032,
-0.10786924511194229,
0.08482856303453445,
-0.10457562655210495,
-0.02482771873474121,
0.17180058360099792,
0.38190513849258423,
0.15994884073734283,
0.39592763781547546,
-0.04663237929344177,
-0.2572212219238281,
-0.4361516833305359,
-0.14235128462314606,
0.10151029378175735,
0.06231677904725075,
0.5376319885253906,
0.02919948473572731,
-0.26707208156585693,
-0.1527191549539566,
0.13509222865104675,
0.11047434061765671,
-0.11315063387155533,
-0.15427201986312866,
0.02068696729838848,
0.1861226111650467,
-0.21872049570083618,
0.5657749176025391,
-0.04890252649784088,
0.011322342790663242,
-0.2269069105386734,
-0.07549622654914856,
-0.2520526945590973,
-0.19494116306304932,
-0.27974164485931396,
0.4240115284919739,
0.10798054188489914,
-0.00875756423920393,
0.19316412508487701,
0.11374563723802567,
0.14129139482975006,
-0.24853020906448364,
0.2450801581144333,
-0.19523467123508453,
0.14468860626220703,
0.03134032338857651,
-0.12242696434259415,
0.5588544607162476,
0.023827893659472466,
0.0820714607834816,
-0.057829733937978745,
0.2793505787849426,
-0.3909226953983307,
-0.0032498773653060198,
0.26785027980804443,
0.07660143822431564,
-0.10498809814453125,
-0.05132686346769333,
-0.13654571771621704,
-0.04772741720080376,
0.6230664253234863,
-0.35340285301208496,
0.00285854353569448,
-0.1369541585445404,
-0.21815979480743408,
-0.35522371530532837,
0.1964019536972046,
0.41514429450035095,
-0.22030092775821686,
-0.12714430689811707,
-0.2892492711544037,
0.42622604966163635,
0.3456283509731293,
0.19041188061237335,
-0.09975957125425339,
0.22389627993106842,
-0.24362382292747498,
0.25334617495536804,
0.3463945686817169,
-0.3264121115207672,
-0.7522773146629333,
-0.06231800094246864,
0.2395535558462143,
0.21382400393486023,
-0.2641492784023285,
0.009117771871387959,
0.0585763119161129,
0.022012649103999138,
-0.04730614647269249,
0.12475938349962234,
0.07109463214874268,
0.047940779477357864,
-0.1934206783771515,
-0.32378414273262024,
0.3307862877845764,
-0.15344886481761932,
0.3734350800514221,
0.20391103625297546,
-0.2786327004432678,
-0.06542865186929703,
0.1897791475057602,
-0.07331199944019318,
0.2045675367116928,
0.21111217141151428,
0.08593922108411789,
0.09632892161607742,
0.34253641963005066,
-0.14452588558197021,
-0.22084525227546692,
0.23616015911102295,
-0.007498309947550297,
-0.40805086493492126,
0.05238117650151253,
-0.0693814605474472,
0.03421063721179962,
-0.17514391243457794,
-0.23687176406383514,
-0.25076714158058167,
0.04695970565080643,
0.29829269647598267,
0.2158329039812088,
0.0493258573114872,
-0.06285588443279266,
0.4346981346607208,
0.22479619085788727,
-0.0474485382437706,
-0.13699759542942047,
0.23143744468688965,
0.13785377144813538,
-0.07235301285982132,
-0.262255996465683,
-0.0077892811968922615,
0.386508584022522,
0.20507816970348358,
-0.17280864715576172,
0.19992290437221527,
0.2821435332298279,
0.13053958117961884,
-0.15808607637882233,
0.03777531534433365,
-0.09649767726659775,
0.07604556530714035,
-0.18035317957401276,
0.018961207941174507,
0.09124196320772171,
-0.20247362554073334,
0.33897024393081665,
-0.09822438657283783,
0.04353925585746765,
0.17285223305225372,
-0.1738722324371338,
-0.11649591475725174,
-0.01941618137061596,
-0.05754147469997406,
0.12157203257083893,
-0.2605113983154297,
-0.12677407264709473,
-0.10074297338724136,
0.40187734365463257,
0.1480000913143158,
0.317086786031723,
0.14310486614704132,
0.5319444537162781,
0.16380415856838226,
0.07024979591369629,
-0.07549664378166199,
-0.5950469374656677,
-0.15330542623996735,
0.0420684814453125,
0.10673389583826065,
0.40316659212112427,
0.0140681192278862,
0.13723517954349518,
-0.10653546452522278,
0.1262332648038864,
0.05367311090230942,
0.08399072289466858,
0.05157412588596344,
0.0034557764884084463,
0.1623285561800003,
0.08191736042499542,
0.12391849607229233,
-0.15448473393917084,
0.3739553391933441,
0.22236989438533783,
0.02240816503763199,
-0.12013319879770279,
-0.004782917443662882,
-0.4614661633968353,
0.2616465389728546,
-0.00941531639546156,
-0.18774226307868958,
-0.10895445942878723,
-0.3240407407283783,
-0.02937140129506588,
0.17503385245800018,
0.23235087096691132,
0.170265331864357,
-0.10677357763051987,
0.16378909349441528,
-0.09658597409725189,
-0.06340808421373367,
-0.2861725091934204,
-0.04422691836953163,
-0.351602703332901,
-0.10436856746673584,
0.027629541233181953,
-0.3332436978816986,
0.10926850140094757,
-0.19780023396015167,
0.044877395033836365,
-0.3304949700832367,
-0.24961386620998383,
0.0687255933880806,
0.14242137968540192,
-0.19136148691177368,
-0.1454961597919464,
-0.13314521312713623,
-0.34062254428863525,
-0.07776153087615967,
0.10528524965047836,
-0.37550339102745056,
-0.058996062725782394,
-0.19424286484718323,
0.22689706087112427,
-0.07328362762928009,
0.06139032542705536,
-0.0987810418009758,
0.045062899589538574,
0.0523565337061882,
-0.09228018671274185,
-0.12052033096551895,
-0.09919613599777222,
-0.10735157877206802,
-0.17789514362812042,
-0.14736905694007874,
-0.29404228925704956,
-0.1225033849477768,
-0.5240330100059509,
-0.2998073101043701,
0.5365316867828369,
-0.12470077723264694,
-0.07930251210927963,
-0.10533584654331207,
-0.02949395589530468,
0.30539795756340027,
0.46651050448417664,
-0.5257644653320312,
-0.06458007544279099,
-0.20277538895606995,
-0.18987230956554413,
-0.14755530655384064,
0.3041582405567169,
0.3952637016773224,
0.19113337993621826,
0.1284651905298233,
-0.4285716414451599,
-0.2033013552427292,
0.020704658702015877,
0.001100674387998879,
0.4422149956226349,
-0.03273066133260727,
0.20218230783939362,
-0.08188918232917786,
0.803088903427124,
0.6181523203849792,
-0.21779578924179077,
0.23084500432014465,
0.11477915197610855,
0.3255804777145386,
-0.14092759788036346,
-0.19788827002048492,
-0.1367318034172058,
-0.3422306776046753,
0.09499292075634003,
0.18335063755512238,
0.1425251066684723,
-0.3120465576648712,
-0.15705452859401703,
0.09193017333745956,
-0.3112707734107971,
-0.32971301674842834,
-0.08052312582731247,
-0.24852998554706573,
0.3068063259124756,
0.351083904504776,
0.3141098916530609,
-0.7173702716827393,
-0.12203891575336456,
0.25282880663871765,
-0.21448352932929993,
0.468978613615036,
0.11479660868644714,
-0.21096168458461761,
-0.13886409997940063,
-0.34431883692741394,
0.3209450840950012,
0.22757066786289215,
0.366901695728302,
0.21778354048728943,
0.017415065318346024,
-0.1508578658103943,
0.10885759443044662,
0.43157070875167847,
-0.7976605296134949,
-0.3380017578601837,
-0.11149293184280396,
-0.05547370761632919,
-0.02103240229189396,
-0.04060209542512894,
0.351041704416275,
0.22571229934692383,
0.04130013287067413,
0.2744194269180298,
0.03855278715491295,
0.007579932454973459,
-0.32338544726371765,
0.17293407022953033,
-0.23463448882102966,
-0.31523334980010986,
-0.098659947514534,
0.27012526988983154,
-0.09005975723266602,
-0.2996428906917572,
0.028634272515773773,
-0.16891875863075256,
0.05742333084344864,
-0.1737726479768753,
-0.3051755726337433,
0.05799715220928192,
0.10664761066436768,
0.02927437238395214,
0.555604875087738,
-0.028238872066140175,
0.3208509087562561,
0.1760173887014389,
0.01832927018404007,
0.07111603021621704,
0.2807704210281372,
-0.14288800954818726,
-0.23373687267303467,
-0.0897052064538002,
-0.09232661873102188,
0.2570893168449402,
-0.031962279230356216,
-0.20561066269874573,
-0.0013508492847904563,
-0.2553195357322693,
0.02588437683880329,
-0.2113853245973587,
0.13468779623508453,
0.36525049805641174,
0.359734445810318,
-0.4407244920730591,
-0.4705248773097992,
0.17312723398208618,
0.27375128865242004,
-0.18334780633449554,
0.5526423454284668,
-0.08299602568149567,
-0.2301497608423233,
0.15582232177257538,
0.044628243893384933,
1.0017777681350708,
0.02924300916492939,
0.09188663959503174,
-0.249991312623024,
0.05647731199860573,
0.6650121212005615,
-0.37294626235961914,
0.33067670464515686,
-0.28588083386421204,
-0.21053113043308258,
-0.18871116638183594,
-0.22684405744075775,
-0.08356260508298874,
0.2917119860649109,
-0.199439138174057,
0.49630865454673767,
0.05405120924115181,
0.5679223537445068,
0.22493848204612732,
0.07031873613595963,
0.19062359631061554,
-0.11996711045503616,
0.26166602969169617,
0.07315423339605331,
0.1753249317407608,
0.3935573101043701,
-0.090989850461483,
0.11189211159944534,
0.09074927121400833,
-0.09879741817712784,
-0.2807954251766205,
0.10617554932832718,
-0.36558911204338074,
0.25313106179237366,
-0.050557419657707214,
0.17433030903339386,
0.10042291134595871,
0.35758060216903687,
0.5060385465621948,
0.208212211728096,
-0.18855230510234833,
0.13585598766803741,
0.1558087170124054,
0.26170453429222107,
-0.14115577936172485,
-0.2263828068971634,
0.028073757886886597,
0.00029432683368213475,
-0.20791734755039215,
-0.010965553112328053,
0.032626669853925705,
-0.4142288863658905,
-0.35285714268684387,
-0.027025580406188965,
0.3227230906486511,
-0.20366187393665314,
0.07059132307767868,
0.18813054263591766,
0.06304824352264404,
-0.04375631734728813,
0.03805667161941528,
-0.022182496264576912,
0.07383963465690613,
0.5688582062721252,
-0.27172350883483887,
-0.13928772509098053,
-0.013238712213933468,
0.45977982878685,
0.3361430764198303,
-0.1777527779340744,
0.5680007934570312,
-0.2200244665145874,
-0.24020403623580933,
-0.04722222313284874,
-0.4798620641231537,
0.05840085446834564,
-0.3148994445800781,
-0.03784668445587158,
-0.3966694474220276,
0.06053049489855766,
0.14067117869853973,
-0.05752266198396683,
-0.030745241791009903,
-0.19937829673290253,
-0.12169584631919861,
-0.22992083430290222,
-0.20371480286121368,
0.04219549894332886,
0.04360311105847359,
0.16316339373588562,
0.22557605803012848,
0.06446992605924606,
-0.04053090512752533,
0.41898563504219055,
-0.15359556674957275,
0.04440203681588173,
0.1507003903388977,
0.12219609320163727,
-0.21099025011062622,
-0.08776326477527618,
-0.05869218707084656,
-0.10460884124040604,
-0.11376234143972397,
0.31145164370536804,
-0.06390237808227539,
-0.052166879177093506,
0.09888532012701035,
0.20194368064403534,
0.20774772763252258,
-0.02391507849097252,
-0.04570278152823448,
-0.018330128863453865,
0.07870154082775116,
-0.36523571610450745,
0.09146980941295624,
0.05968470126390457,
-0.022996913641691208,
0.23533840477466583,
0.33578044176101685,
-0.08331224322319031,
-0.278767466545105,
0.15750250220298767,
-0.06761009246110916,
0.04965874180197716,
-0.029231438413262367,
0.2691749632358551,
0.3636685311794281,
0.019830094650387764,
-0.08000373095273972,
-0.029180137440562248,
0.11315567046403885,
0.032755881547927856,
0.3520662188529968,
-0.41420525312423706,
0.017141757532954216,
0.2618720233440399,
-0.09399990737438202,
0.3780743181705475,
-0.12554869055747986,
-0.35121941566467285,
0.28936728835105896,
0.11027290672063828,
-0.2677420973777771,
-0.345725417137146,
0.28659337759017944,
0.09862248599529266,
-0.1312386393547058,
0.0857275202870369,
0.033620670437812805,
-0.17569436132907867,
0.32646068930625916,
0.10745035111904144,
0.4046725332736969,
-0.43510374426841736,
0.3502947986125946,
0.2615407109260559,
0.2842252552509308,
0.14601635932922363,
0.17856775224208832,
0.21875354647636414,
-0.2382124811410904,
0.1690315306186676,
0.11954769492149353,
0.2626832127571106,
0.15095333755016327,
-0.086133673787117,
0.06701483577489853,
-0.29401764273643494,
-0.019943810999393463,
0.3258395493030548,
-0.10453580319881439,
0.3778480887413025,
-0.056529004126787186,
-0.12614938616752625,
0.18447980284690857,
-0.06482245773077011,
-0.28930363059043884,
0.17136533558368683,
-0.25771665573120117,
-0.13739396631717682,
0.2168830782175064,
-0.16063416004180908,
-0.019861320033669472,
-0.1444624364376068,
0.13803249597549438,
0.001731676165945828,
0.5208861827850342,
0.019092215225100517,
-0.15047608315944672,
-0.11493953317403793,
-0.2739807367324829,
0.18267427384853363,
0.5745248198509216,
-0.1868024468421936,
0.09266497194766998,
-0.21385496854782104,
-0.023914217948913574,
-0.09012328088283539,
0.3141930401325226,
0.17926880717277527,
0.40270689129829407,
-0.14731615781784058,
0.08058705925941467,
0.25736257433891296,
0.09969538450241089,
-0.036729343235492706,
0.4875115752220154,
-0.1763319969177246,
-0.39671358466148376,
0.0521714985370636,
0.06903274357318878,
-0.03182864189147949,
-0.15987738966941833,
-0.271125853061676,
0.36790192127227783,
-0.4220820367336273,
0.3023279309272766,
-0.09546435624361038,
0.07348061352968216,
-0.06744930893182755,
0.18109838664531708,
-0.3221395015716553,
0.19769367575645447,
0.5176385045051575,
-0.11355486512184143,
0.1017570048570633,
-0.2707713842391968,
0.028198523446917534,
-0.040558140724897385,
0.28504467010498047,
0.43473348021507263,
-0.25262564420700073,
-0.20765429735183716,
-0.2799324691295624,
-0.4617501199245453,
0.37353914976119995,
-0.14974680542945862,
0.2867359519004822,
0.023986220359802246,
0.10445931553840637,
-0.05198495462536812,
-0.049172233790159225,
0.3006148040294647,
0.1457594782114029,
-0.227987140417099,
0.30767199397087097,
-0.347115695476532,
-0.04059506207704544,
-0.3000037372112274,
0.0067510767839848995,
0.17163203656673431,
-0.3455072343349457,
0.4444892108440399,
0.19556084275245667,
0.02729378640651703,
-0.02339962124824524,
0.06782667338848114,
0.21913102269172668,
-0.0610969141125679,
0.5450428128242493,
0.34657686948776245,
0.23694071173667908,
-0.02093258500099182,
-0.09342171996831894,
-0.09495437890291214,
-0.02100510708987713,
-0.12074241787195206,
0.04701271280646324,
-0.12103546410799026,
0.08204271644353867,
-0.4738940894603729,
0.0651584044098854,
-0.3022507131099701,
-0.19563744962215424,
0.28562411665916443,
-0.0026544532738626003,
-0.1738128364086151,
-0.15563999116420746,
-0.06103752553462982,
0.1276528686285019,
0.16682031750679016,
0.4713115096092224,
-0.22909878194332123,
0.4036518335342407,
-0.2490561157464981,
-0.19765466451644897,
0.33298826217651367,
-0.6163407564163208,
-0.4550292193889618,
-0.2239353060722351,
0.137532576918602,
0.11766307801008224,
-0.3350003957748413,
-0.6715466380119324,
-0.18104369938373566,
0.31741297245025635,
0.08836812525987625,
-0.03373776376247406,
0.14054562151432037,
0.04440924897789955,
0.248386949300766,
-0.1456892192363739,
0.5623006224632263,
0.055051062256097794,
0.02951623685657978,
0.2277144491672516,
-0.1859031319618225
] |
https://github.com/huggingface/datasets/issues/1718 | Possible cache miss in datasets | Sounds great, thank you for your quick responses and help! Looking forward for the next release. | Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
``` | 16 | Possible cache miss in datasets
Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
```
Sounds great, thank you for your quick responses and help! Looking forward for the next release. | [
-0.1930394321680069,
0.12105351686477661,
0.05009520798921585,
0.19009333848953247,
0.007696859072893858,
0.036921512335538864,
-0.016855232417583466,
0.23035003244876862,
0.01673312298953533,
-0.10844311118125916,
0.10299880802631378,
0.4139713644981384,
0.22491194307804108,
-0.11172405630350113,
-0.001110300188884139,
0.24461320042610168,
0.3074612021446228,
0.3216937184333801,
-0.1533997654914856,
-0.208875834941864,
-0.289175420999527,
0.1171129122376442,
-0.3328206241130829,
-0.09242920577526093,
-0.41705039143562317,
0.21232819557189941,
-0.0168770719319582,
-0.42083939909935,
0.11226038634777069,
-0.25558674335479736,
0.31771594285964966,
0.08582867681980133,
0.19921879470348358,
0.557023823261261,
-0.0001258203265024349,
-0.26760199666023254,
0.35409584641456604,
-0.06947390735149384,
-0.20524761080741882,
0.07682175189256668,
-0.2844771146774292,
0.03804402053356171,
-0.11269348859786987,
0.023367417976260185,
0.058439310640096664,
0.058709517121315,
0.03796656057238579,
-0.6514902710914612,
0.30601996183395386,
0.1629108190536499,
0.10259271413087845,
0.0332760214805603,
-0.09534268826246262,
0.23457974195480347,
0.050203099846839905,
-0.012025350704789162,
-0.038743797689676285,
-0.33304476737976074,
0.16303858160972595,
-0.3523213565349579,
0.062146712094545364,
0.5163407325744629,
-0.17574362456798553,
-0.14190338551998138,
0.3870672285556793,
-0.011780615895986557,
0.017935380339622498,
-0.26469895243644714,
0.3020607531070709,
-0.06447051465511322,
0.5929014086723328,
-0.37321245670318604,
-0.4453590214252472,
-0.22181552648544312,
-0.2183968871831894,
-0.1797119826078415,
0.34789568185806274,
-0.2814226746559143,
0.11512422561645508,
0.1367775946855545,
-0.5952910780906677,
-0.3717096745967865,
0.2665034532546997,
0.12685030698776245,
-0.0126038221642375,
0.11882913112640381,
-0.04426441341638565,
0.1275966763496399,
-0.25835999846458435,
0.03056361898779869,
0.27869313955307007,
-0.5107076168060303,
-0.02041216753423214,
0.4761804938316345,
-0.4573769271373749,
-0.11419877409934998,
-0.08139568567276001,
0.044457919895648956,
0.03132028132677078,
0.2521778345108032,
-0.10786924511194229,
0.08482856303453445,
-0.10457562655210495,
-0.02482771873474121,
0.17180058360099792,
0.38190513849258423,
0.15994884073734283,
0.39592763781547546,
-0.04663237929344177,
-0.2572212219238281,
-0.4361516833305359,
-0.14235128462314606,
0.10151029378175735,
0.06231677904725075,
0.5376319885253906,
0.02919948473572731,
-0.26707208156585693,
-0.1527191549539566,
0.13509222865104675,
0.11047434061765671,
-0.11315063387155533,
-0.15427201986312866,
0.02068696729838848,
0.1861226111650467,
-0.21872049570083618,
0.5657749176025391,
-0.04890252649784088,
0.011322342790663242,
-0.2269069105386734,
-0.07549622654914856,
-0.2520526945590973,
-0.19494116306304932,
-0.27974164485931396,
0.4240115284919739,
0.10798054188489914,
-0.00875756423920393,
0.19316412508487701,
0.11374563723802567,
0.14129139482975006,
-0.24853020906448364,
0.2450801581144333,
-0.19523467123508453,
0.14468860626220703,
0.03134032338857651,
-0.12242696434259415,
0.5588544607162476,
0.023827893659472466,
0.0820714607834816,
-0.057829733937978745,
0.2793505787849426,
-0.3909226953983307,
-0.0032498773653060198,
0.26785027980804443,
0.07660143822431564,
-0.10498809814453125,
-0.05132686346769333,
-0.13654571771621704,
-0.04772741720080376,
0.6230664253234863,
-0.35340285301208496,
0.00285854353569448,
-0.1369541585445404,
-0.21815979480743408,
-0.35522371530532837,
0.1964019536972046,
0.41514429450035095,
-0.22030092775821686,
-0.12714430689811707,
-0.2892492711544037,
0.42622604966163635,
0.3456283509731293,
0.19041188061237335,
-0.09975957125425339,
0.22389627993106842,
-0.24362382292747498,
0.25334617495536804,
0.3463945686817169,
-0.3264121115207672,
-0.7522773146629333,
-0.06231800094246864,
0.2395535558462143,
0.21382400393486023,
-0.2641492784023285,
0.009117771871387959,
0.0585763119161129,
0.022012649103999138,
-0.04730614647269249,
0.12475938349962234,
0.07109463214874268,
0.047940779477357864,
-0.1934206783771515,
-0.32378414273262024,
0.3307862877845764,
-0.15344886481761932,
0.3734350800514221,
0.20391103625297546,
-0.2786327004432678,
-0.06542865186929703,
0.1897791475057602,
-0.07331199944019318,
0.2045675367116928,
0.21111217141151428,
0.08593922108411789,
0.09632892161607742,
0.34253641963005066,
-0.14452588558197021,
-0.22084525227546692,
0.23616015911102295,
-0.007498309947550297,
-0.40805086493492126,
0.05238117650151253,
-0.0693814605474472,
0.03421063721179962,
-0.17514391243457794,
-0.23687176406383514,
-0.25076714158058167,
0.04695970565080643,
0.29829269647598267,
0.2158329039812088,
0.0493258573114872,
-0.06285588443279266,
0.4346981346607208,
0.22479619085788727,
-0.0474485382437706,
-0.13699759542942047,
0.23143744468688965,
0.13785377144813538,
-0.07235301285982132,
-0.262255996465683,
-0.0077892811968922615,
0.386508584022522,
0.20507816970348358,
-0.17280864715576172,
0.19992290437221527,
0.2821435332298279,
0.13053958117961884,
-0.15808607637882233,
0.03777531534433365,
-0.09649767726659775,
0.07604556530714035,
-0.18035317957401276,
0.018961207941174507,
0.09124196320772171,
-0.20247362554073334,
0.33897024393081665,
-0.09822438657283783,
0.04353925585746765,
0.17285223305225372,
-0.1738722324371338,
-0.11649591475725174,
-0.01941618137061596,
-0.05754147469997406,
0.12157203257083893,
-0.2605113983154297,
-0.12677407264709473,
-0.10074297338724136,
0.40187734365463257,
0.1480000913143158,
0.317086786031723,
0.14310486614704132,
0.5319444537162781,
0.16380415856838226,
0.07024979591369629,
-0.07549664378166199,
-0.5950469374656677,
-0.15330542623996735,
0.0420684814453125,
0.10673389583826065,
0.40316659212112427,
0.0140681192278862,
0.13723517954349518,
-0.10653546452522278,
0.1262332648038864,
0.05367311090230942,
0.08399072289466858,
0.05157412588596344,
0.0034557764884084463,
0.1623285561800003,
0.08191736042499542,
0.12391849607229233,
-0.15448473393917084,
0.3739553391933441,
0.22236989438533783,
0.02240816503763199,
-0.12013319879770279,
-0.004782917443662882,
-0.4614661633968353,
0.2616465389728546,
-0.00941531639546156,
-0.18774226307868958,
-0.10895445942878723,
-0.3240407407283783,
-0.02937140129506588,
0.17503385245800018,
0.23235087096691132,
0.170265331864357,
-0.10677357763051987,
0.16378909349441528,
-0.09658597409725189,
-0.06340808421373367,
-0.2861725091934204,
-0.04422691836953163,
-0.351602703332901,
-0.10436856746673584,
0.027629541233181953,
-0.3332436978816986,
0.10926850140094757,
-0.19780023396015167,
0.044877395033836365,
-0.3304949700832367,
-0.24961386620998383,
0.0687255933880806,
0.14242137968540192,
-0.19136148691177368,
-0.1454961597919464,
-0.13314521312713623,
-0.34062254428863525,
-0.07776153087615967,
0.10528524965047836,
-0.37550339102745056,
-0.058996062725782394,
-0.19424286484718323,
0.22689706087112427,
-0.07328362762928009,
0.06139032542705536,
-0.0987810418009758,
0.045062899589538574,
0.0523565337061882,
-0.09228018671274185,
-0.12052033096551895,
-0.09919613599777222,
-0.10735157877206802,
-0.17789514362812042,
-0.14736905694007874,
-0.29404228925704956,
-0.1225033849477768,
-0.5240330100059509,
-0.2998073101043701,
0.5365316867828369,
-0.12470077723264694,
-0.07930251210927963,
-0.10533584654331207,
-0.02949395589530468,
0.30539795756340027,
0.46651050448417664,
-0.5257644653320312,
-0.06458007544279099,
-0.20277538895606995,
-0.18987230956554413,
-0.14755530655384064,
0.3041582405567169,
0.3952637016773224,
0.19113337993621826,
0.1284651905298233,
-0.4285716414451599,
-0.2033013552427292,
0.020704658702015877,
0.001100674387998879,
0.4422149956226349,
-0.03273066133260727,
0.20218230783939362,
-0.08188918232917786,
0.803088903427124,
0.6181523203849792,
-0.21779578924179077,
0.23084500432014465,
0.11477915197610855,
0.3255804777145386,
-0.14092759788036346,
-0.19788827002048492,
-0.1367318034172058,
-0.3422306776046753,
0.09499292075634003,
0.18335063755512238,
0.1425251066684723,
-0.3120465576648712,
-0.15705452859401703,
0.09193017333745956,
-0.3112707734107971,
-0.32971301674842834,
-0.08052312582731247,
-0.24852998554706573,
0.3068063259124756,
0.351083904504776,
0.3141098916530609,
-0.7173702716827393,
-0.12203891575336456,
0.25282880663871765,
-0.21448352932929993,
0.468978613615036,
0.11479660868644714,
-0.21096168458461761,
-0.13886409997940063,
-0.34431883692741394,
0.3209450840950012,
0.22757066786289215,
0.366901695728302,
0.21778354048728943,
0.017415065318346024,
-0.1508578658103943,
0.10885759443044662,
0.43157070875167847,
-0.7976605296134949,
-0.3380017578601837,
-0.11149293184280396,
-0.05547370761632919,
-0.02103240229189396,
-0.04060209542512894,
0.351041704416275,
0.22571229934692383,
0.04130013287067413,
0.2744194269180298,
0.03855278715491295,
0.007579932454973459,
-0.32338544726371765,
0.17293407022953033,
-0.23463448882102966,
-0.31523334980010986,
-0.098659947514534,
0.27012526988983154,
-0.09005975723266602,
-0.2996428906917572,
0.028634272515773773,
-0.16891875863075256,
0.05742333084344864,
-0.1737726479768753,
-0.3051755726337433,
0.05799715220928192,
0.10664761066436768,
0.02927437238395214,
0.555604875087738,
-0.028238872066140175,
0.3208509087562561,
0.1760173887014389,
0.01832927018404007,
0.07111603021621704,
0.2807704210281372,
-0.14288800954818726,
-0.23373687267303467,
-0.0897052064538002,
-0.09232661873102188,
0.2570893168449402,
-0.031962279230356216,
-0.20561066269874573,
-0.0013508492847904563,
-0.2553195357322693,
0.02588437683880329,
-0.2113853245973587,
0.13468779623508453,
0.36525049805641174,
0.359734445810318,
-0.4407244920730591,
-0.4705248773097992,
0.17312723398208618,
0.27375128865242004,
-0.18334780633449554,
0.5526423454284668,
-0.08299602568149567,
-0.2301497608423233,
0.15582232177257538,
0.044628243893384933,
1.0017777681350708,
0.02924300916492939,
0.09188663959503174,
-0.249991312623024,
0.05647731199860573,
0.6650121212005615,
-0.37294626235961914,
0.33067670464515686,
-0.28588083386421204,
-0.21053113043308258,
-0.18871116638183594,
-0.22684405744075775,
-0.08356260508298874,
0.2917119860649109,
-0.199439138174057,
0.49630865454673767,
0.05405120924115181,
0.5679223537445068,
0.22493848204612732,
0.07031873613595963,
0.19062359631061554,
-0.11996711045503616,
0.26166602969169617,
0.07315423339605331,
0.1753249317407608,
0.3935573101043701,
-0.090989850461483,
0.11189211159944534,
0.09074927121400833,
-0.09879741817712784,
-0.2807954251766205,
0.10617554932832718,
-0.36558911204338074,
0.25313106179237366,
-0.050557419657707214,
0.17433030903339386,
0.10042291134595871,
0.35758060216903687,
0.5060385465621948,
0.208212211728096,
-0.18855230510234833,
0.13585598766803741,
0.1558087170124054,
0.26170453429222107,
-0.14115577936172485,
-0.2263828068971634,
0.028073757886886597,
0.00029432683368213475,
-0.20791734755039215,
-0.010965553112328053,
0.032626669853925705,
-0.4142288863658905,
-0.35285714268684387,
-0.027025580406188965,
0.3227230906486511,
-0.20366187393665314,
0.07059132307767868,
0.18813054263591766,
0.06304824352264404,
-0.04375631734728813,
0.03805667161941528,
-0.022182496264576912,
0.07383963465690613,
0.5688582062721252,
-0.27172350883483887,
-0.13928772509098053,
-0.013238712213933468,
0.45977982878685,
0.3361430764198303,
-0.1777527779340744,
0.5680007934570312,
-0.2200244665145874,
-0.24020403623580933,
-0.04722222313284874,
-0.4798620641231537,
0.05840085446834564,
-0.3148994445800781,
-0.03784668445587158,
-0.3966694474220276,
0.06053049489855766,
0.14067117869853973,
-0.05752266198396683,
-0.030745241791009903,
-0.19937829673290253,
-0.12169584631919861,
-0.22992083430290222,
-0.20371480286121368,
0.04219549894332886,
0.04360311105847359,
0.16316339373588562,
0.22557605803012848,
0.06446992605924606,
-0.04053090512752533,
0.41898563504219055,
-0.15359556674957275,
0.04440203681588173,
0.1507003903388977,
0.12219609320163727,
-0.21099025011062622,
-0.08776326477527618,
-0.05869218707084656,
-0.10460884124040604,
-0.11376234143972397,
0.31145164370536804,
-0.06390237808227539,
-0.052166879177093506,
0.09888532012701035,
0.20194368064403534,
0.20774772763252258,
-0.02391507849097252,
-0.04570278152823448,
-0.018330128863453865,
0.07870154082775116,
-0.36523571610450745,
0.09146980941295624,
0.05968470126390457,
-0.022996913641691208,
0.23533840477466583,
0.33578044176101685,
-0.08331224322319031,
-0.278767466545105,
0.15750250220298767,
-0.06761009246110916,
0.04965874180197716,
-0.029231438413262367,
0.2691749632358551,
0.3636685311794281,
0.019830094650387764,
-0.08000373095273972,
-0.029180137440562248,
0.11315567046403885,
0.032755881547927856,
0.3520662188529968,
-0.41420525312423706,
0.017141757532954216,
0.2618720233440399,
-0.09399990737438202,
0.3780743181705475,
-0.12554869055747986,
-0.35121941566467285,
0.28936728835105896,
0.11027290672063828,
-0.2677420973777771,
-0.345725417137146,
0.28659337759017944,
0.09862248599529266,
-0.1312386393547058,
0.0857275202870369,
0.033620670437812805,
-0.17569436132907867,
0.32646068930625916,
0.10745035111904144,
0.4046725332736969,
-0.43510374426841736,
0.3502947986125946,
0.2615407109260559,
0.2842252552509308,
0.14601635932922363,
0.17856775224208832,
0.21875354647636414,
-0.2382124811410904,
0.1690315306186676,
0.11954769492149353,
0.2626832127571106,
0.15095333755016327,
-0.086133673787117,
0.06701483577489853,
-0.29401764273643494,
-0.019943810999393463,
0.3258395493030548,
-0.10453580319881439,
0.3778480887413025,
-0.056529004126787186,
-0.12614938616752625,
0.18447980284690857,
-0.06482245773077011,
-0.28930363059043884,
0.17136533558368683,
-0.25771665573120117,
-0.13739396631717682,
0.2168830782175064,
-0.16063416004180908,
-0.019861320033669472,
-0.1444624364376068,
0.13803249597549438,
0.001731676165945828,
0.5208861827850342,
0.019092215225100517,
-0.15047608315944672,
-0.11493953317403793,
-0.2739807367324829,
0.18267427384853363,
0.5745248198509216,
-0.1868024468421936,
0.09266497194766998,
-0.21385496854782104,
-0.023914217948913574,
-0.09012328088283539,
0.3141930401325226,
0.17926880717277527,
0.40270689129829407,
-0.14731615781784058,
0.08058705925941467,
0.25736257433891296,
0.09969538450241089,
-0.036729343235492706,
0.4875115752220154,
-0.1763319969177246,
-0.39671358466148376,
0.0521714985370636,
0.06903274357318878,
-0.03182864189147949,
-0.15987738966941833,
-0.271125853061676,
0.36790192127227783,
-0.4220820367336273,
0.3023279309272766,
-0.09546435624361038,
0.07348061352968216,
-0.06744930893182755,
0.18109838664531708,
-0.3221395015716553,
0.19769367575645447,
0.5176385045051575,
-0.11355486512184143,
0.1017570048570633,
-0.2707713842391968,
0.028198523446917534,
-0.040558140724897385,
0.28504467010498047,
0.43473348021507263,
-0.25262564420700073,
-0.20765429735183716,
-0.2799324691295624,
-0.4617501199245453,
0.37353914976119995,
-0.14974680542945862,
0.2867359519004822,
0.023986220359802246,
0.10445931553840637,
-0.05198495462536812,
-0.049172233790159225,
0.3006148040294647,
0.1457594782114029,
-0.227987140417099,
0.30767199397087097,
-0.347115695476532,
-0.04059506207704544,
-0.3000037372112274,
0.0067510767839848995,
0.17163203656673431,
-0.3455072343349457,
0.4444892108440399,
0.19556084275245667,
0.02729378640651703,
-0.02339962124824524,
0.06782667338848114,
0.21913102269172668,
-0.0610969141125679,
0.5450428128242493,
0.34657686948776245,
0.23694071173667908,
-0.02093258500099182,
-0.09342171996831894,
-0.09495437890291214,
-0.02100510708987713,
-0.12074241787195206,
0.04701271280646324,
-0.12103546410799026,
0.08204271644353867,
-0.4738940894603729,
0.0651584044098854,
-0.3022507131099701,
-0.19563744962215424,
0.28562411665916443,
-0.0026544532738626003,
-0.1738128364086151,
-0.15563999116420746,
-0.06103752553462982,
0.1276528686285019,
0.16682031750679016,
0.4713115096092224,
-0.22909878194332123,
0.4036518335342407,
-0.2490561157464981,
-0.19765466451644897,
0.33298826217651367,
-0.6163407564163208,
-0.4550292193889618,
-0.2239353060722351,
0.137532576918602,
0.11766307801008224,
-0.3350003957748413,
-0.6715466380119324,
-0.18104369938373566,
0.31741297245025635,
0.08836812525987625,
-0.03373776376247406,
0.14054562151432037,
0.04440924897789955,
0.248386949300766,
-0.1456892192363739,
0.5623006224632263,
0.055051062256097794,
0.02951623685657978,
0.2277144491672516,
-0.1859031319618225
] |
https://github.com/huggingface/datasets/issues/1718 | Possible cache miss in datasets | I am having a similar issue where only the grouped files are loaded from cache while the tokenized ones aren't. I can confirm both datasets are being stored to file, but only the grouped version is loaded from cache. Not sure what might be going on. But I've tried to remove all kinds of non deterministic behaviour, but still no luck. Thanks for the help!
```python
# Datasets
train = sorted(glob(args.data_dir + '*.{}'.format(args.ext)))
if args.dev_split >= len(train):
raise ValueError("Not enough dev files")
dev = []
state = random.Random(1001)
for _ in range(args.dev_split):
dev.append(train.pop(state.randint(0, len(train) - 1)))
max_seq_length = min(args.max_seq_length, tokenizer.model_max_length)
def tokenize_function(examples):
return tokenizer(examples['text'], return_special_tokens_mask=True)
def group_texts(examples):
# Concatenate all texts from our dataset and generate chunks of max_seq_length
concatenated_examples = {k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# Truncate (not implementing padding)
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_seq_length
result = {
k: [t[i : i + max_seq_length] for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
datasets = load_dataset(
'text', name='DBNL', data_files={'train': train[:10], 'dev': dev[:5]},
cache_dir=args.data_cache_dir)
datasets = datasets.map(tokenize_function,
batched=True, remove_columns=['text'],
cache_file_names={k: os.path.join(args.data_cache_dir, f'{k}-tokenized') for k in datasets},
load_from_cache_file=not args.overwrite_cache)
datasets = datasets.map(group_texts,
batched=True,
cache_file_names={k: os.path.join(args.data_cache_dir, f'{k}-grouped') for k in datasets},
load_from_cache_file=not args.overwrite_cache)
```
And this is the log
```
04/26/2021 10:26:59 - WARNING - datasets.builder - Using custom data configuration DBNL-f8d988ad33ccf2c1
04/26/2021 10:26:59 - WARNING - datasets.builder - Reusing dataset text (/home/manjavacasema/data/.cache/text/DBNL-f8d988ad33ccf2c1/0.0.0/e16f44aa1b321ece1f87b07977cc5d70be93d69b20486d6dacd62e12cf25c9a5)
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 13/13 [00:00<00:00, 21.07ba/s]
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 40/40 [00:01<00:00, 24.28ba/s]
04/26/2021 10:27:01 - WARNING - datasets.arrow_dataset - Loading cached processed dataset at /home/manjavacasema/data/.cache/train-grouped
04/26/2021 10:27:01 - WARNING - datasets.arrow_dataset - Loading cached processed dataset at /home/manjavacasema/data/.cache/dev-grouped
```
| Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
``` | 274 | Possible cache miss in datasets
Hi,
I am using the datasets package and even though I run the same data processing functions, datasets always recomputes the function instead of using cache.
I have attached an example script that for me reproduces the problem.
In the attached example the second map function always recomputes instead of loading from cache.
Is this a bug or am I doing something wrong?
Is there a way for fix this and avoid all the recomputation?
Thanks
Edit:
transformers==3.5.1
datasets==1.2.0
```
from datasets import load_dataset
from transformers import AutoTokenizer
datasets = load_dataset('wikitext', 'wikitext-103-raw-v1')
tokenizer = AutoTokenizer.from_pretrained('bert-base-uncased', use_fast=True)
column_names = datasets["train"].column_names
text_column_name = "text" if "text" in column_names else column_names[0]
def tokenize_function(examples):
return tokenizer(examples[text_column_name], return_special_tokens_mask=True)
tokenized_datasets = datasets.map(
tokenize_function,
batched=True,
num_proc=60,
remove_columns=[text_column_name],
load_from_cache_file=True,
)
max_seq_length = tokenizer.model_max_length
def group_texts(examples):
# Concatenate all texts.
concatenated_examples = {
k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# We drop the small remainder, we could add padding if the model supported it instead of this drop, you can
# customize this part to your needs.
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_len.
result = {
k: [t[i: i + max_seq_length]
for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
tokenized_datasets = tokenized_datasets.map(
group_texts,
batched=True,
num_proc=60,
load_from_cache_file=True,
)
print(tokenized_datasets)
print('finished')
```
I am having a similar issue where only the grouped files are loaded from cache while the tokenized ones aren't. I can confirm both datasets are being stored to file, but only the grouped version is loaded from cache. Not sure what might be going on. But I've tried to remove all kinds of non deterministic behaviour, but still no luck. Thanks for the help!
```python
# Datasets
train = sorted(glob(args.data_dir + '*.{}'.format(args.ext)))
if args.dev_split >= len(train):
raise ValueError("Not enough dev files")
dev = []
state = random.Random(1001)
for _ in range(args.dev_split):
dev.append(train.pop(state.randint(0, len(train) - 1)))
max_seq_length = min(args.max_seq_length, tokenizer.model_max_length)
def tokenize_function(examples):
return tokenizer(examples['text'], return_special_tokens_mask=True)
def group_texts(examples):
# Concatenate all texts from our dataset and generate chunks of max_seq_length
concatenated_examples = {k: sum(examples[k], []) for k in examples.keys()}
total_length = len(concatenated_examples[list(examples.keys())[0]])
# Truncate (not implementing padding)
total_length = (total_length // max_seq_length) * max_seq_length
# Split by chunks of max_seq_length
result = {
k: [t[i : i + max_seq_length] for i in range(0, total_length, max_seq_length)]
for k, t in concatenated_examples.items()
}
return result
datasets = load_dataset(
'text', name='DBNL', data_files={'train': train[:10], 'dev': dev[:5]},
cache_dir=args.data_cache_dir)
datasets = datasets.map(tokenize_function,
batched=True, remove_columns=['text'],
cache_file_names={k: os.path.join(args.data_cache_dir, f'{k}-tokenized') for k in datasets},
load_from_cache_file=not args.overwrite_cache)
datasets = datasets.map(group_texts,
batched=True,
cache_file_names={k: os.path.join(args.data_cache_dir, f'{k}-grouped') for k in datasets},
load_from_cache_file=not args.overwrite_cache)
```
And this is the log
```
04/26/2021 10:26:59 - WARNING - datasets.builder - Using custom data configuration DBNL-f8d988ad33ccf2c1
04/26/2021 10:26:59 - WARNING - datasets.builder - Reusing dataset text (/home/manjavacasema/data/.cache/text/DBNL-f8d988ad33ccf2c1/0.0.0/e16f44aa1b321ece1f87b07977cc5d70be93d69b20486d6dacd62e12cf25c9a5)
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 13/13 [00:00<00:00, 21.07ba/s]
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 40/40 [00:01<00:00, 24.28ba/s]
04/26/2021 10:27:01 - WARNING - datasets.arrow_dataset - Loading cached processed dataset at /home/manjavacasema/data/.cache/train-grouped
04/26/2021 10:27:01 - WARNING - datasets.arrow_dataset - Loading cached processed dataset at /home/manjavacasema/data/.cache/dev-grouped
```
| [
-0.1930394321680069,
0.12105351686477661,
0.05009520798921585,
0.19009333848953247,
0.007696859072893858,
0.036921512335538864,
-0.016855232417583466,
0.23035003244876862,
0.01673312298953533,
-0.10844311118125916,
0.10299880802631378,
0.4139713644981384,
0.22491194307804108,
-0.11172405630350113,
-0.001110300188884139,
0.24461320042610168,
0.3074612021446228,
0.3216937184333801,
-0.1533997654914856,
-0.208875834941864,
-0.289175420999527,
0.1171129122376442,
-0.3328206241130829,
-0.09242920577526093,
-0.41705039143562317,
0.21232819557189941,
-0.0168770719319582,
-0.42083939909935,
0.11226038634777069,
-0.25558674335479736,
0.31771594285964966,
0.08582867681980133,
0.19921879470348358,
0.557023823261261,
-0.0001258203265024349,
-0.26760199666023254,
0.35409584641456604,
-0.06947390735149384,
-0.20524761080741882,
0.07682175189256668,
-0.2844771146774292,
0.03804402053356171,
-0.11269348859786987,
0.023367417976260185,
0.058439310640096664,
0.058709517121315,
0.03796656057238579,
-0.6514902710914612,
0.30601996183395386,
0.1629108190536499,
0.10259271413087845,
0.0332760214805603,
-0.09534268826246262,
0.23457974195480347,
0.050203099846839905,
-0.012025350704789162,
-0.038743797689676285,
-0.33304476737976074,
0.16303858160972595,
-0.3523213565349579,
0.062146712094545364,
0.5163407325744629,
-0.17574362456798553,
-0.14190338551998138,
0.3870672285556793,
-0.011780615895986557,
0.017935380339622498,
-0.26469895243644714,
0.3020607531070709,
-0.06447051465511322,
0.5929014086723328,
-0.37321245670318604,
-0.4453590214252472,
-0.22181552648544312,
-0.2183968871831894,
-0.1797119826078415,
0.34789568185806274,
-0.2814226746559143,
0.11512422561645508,
0.1367775946855545,
-0.5952910780906677,
-0.3717096745967865,
0.2665034532546997,
0.12685030698776245,
-0.0126038221642375,
0.11882913112640381,
-0.04426441341638565,
0.1275966763496399,
-0.25835999846458435,
0.03056361898779869,
0.27869313955307007,
-0.5107076168060303,
-0.02041216753423214,
0.4761804938316345,
-0.4573769271373749,
-0.11419877409934998,
-0.08139568567276001,
0.044457919895648956,
0.03132028132677078,
0.2521778345108032,
-0.10786924511194229,
0.08482856303453445,
-0.10457562655210495,
-0.02482771873474121,
0.17180058360099792,
0.38190513849258423,
0.15994884073734283,
0.39592763781547546,
-0.04663237929344177,
-0.2572212219238281,
-0.4361516833305359,
-0.14235128462314606,
0.10151029378175735,
0.06231677904725075,
0.5376319885253906,
0.02919948473572731,
-0.26707208156585693,
-0.1527191549539566,
0.13509222865104675,
0.11047434061765671,
-0.11315063387155533,
-0.15427201986312866,
0.02068696729838848,
0.1861226111650467,
-0.21872049570083618,
0.5657749176025391,
-0.04890252649784088,
0.011322342790663242,
-0.2269069105386734,
-0.07549622654914856,
-0.2520526945590973,
-0.19494116306304932,
-0.27974164485931396,
0.4240115284919739,
0.10798054188489914,
-0.00875756423920393,
0.19316412508487701,
0.11374563723802567,
0.14129139482975006,
-0.24853020906448364,
0.2450801581144333,
-0.19523467123508453,
0.14468860626220703,
0.03134032338857651,
-0.12242696434259415,
0.5588544607162476,
0.023827893659472466,
0.0820714607834816,
-0.057829733937978745,
0.2793505787849426,
-0.3909226953983307,
-0.0032498773653060198,
0.26785027980804443,
0.07660143822431564,
-0.10498809814453125,
-0.05132686346769333,
-0.13654571771621704,
-0.04772741720080376,
0.6230664253234863,
-0.35340285301208496,
0.00285854353569448,
-0.1369541585445404,
-0.21815979480743408,
-0.35522371530532837,
0.1964019536972046,
0.41514429450035095,
-0.22030092775821686,
-0.12714430689811707,
-0.2892492711544037,
0.42622604966163635,
0.3456283509731293,
0.19041188061237335,
-0.09975957125425339,
0.22389627993106842,
-0.24362382292747498,
0.25334617495536804,
0.3463945686817169,
-0.3264121115207672,
-0.7522773146629333,
-0.06231800094246864,
0.2395535558462143,
0.21382400393486023,
-0.2641492784023285,
0.009117771871387959,
0.0585763119161129,
0.022012649103999138,
-0.04730614647269249,
0.12475938349962234,
0.07109463214874268,
0.047940779477357864,
-0.1934206783771515,
-0.32378414273262024,
0.3307862877845764,
-0.15344886481761932,
0.3734350800514221,
0.20391103625297546,
-0.2786327004432678,
-0.06542865186929703,
0.1897791475057602,
-0.07331199944019318,
0.2045675367116928,
0.21111217141151428,
0.08593922108411789,
0.09632892161607742,
0.34253641963005066,
-0.14452588558197021,
-0.22084525227546692,
0.23616015911102295,
-0.007498309947550297,
-0.40805086493492126,
0.05238117650151253,
-0.0693814605474472,
0.03421063721179962,
-0.17514391243457794,
-0.23687176406383514,
-0.25076714158058167,
0.04695970565080643,
0.29829269647598267,
0.2158329039812088,
0.0493258573114872,
-0.06285588443279266,
0.4346981346607208,
0.22479619085788727,
-0.0474485382437706,
-0.13699759542942047,
0.23143744468688965,
0.13785377144813538,
-0.07235301285982132,
-0.262255996465683,
-0.0077892811968922615,
0.386508584022522,
0.20507816970348358,
-0.17280864715576172,
0.19992290437221527,
0.2821435332298279,
0.13053958117961884,
-0.15808607637882233,
0.03777531534433365,
-0.09649767726659775,
0.07604556530714035,
-0.18035317957401276,
0.018961207941174507,
0.09124196320772171,
-0.20247362554073334,
0.33897024393081665,
-0.09822438657283783,
0.04353925585746765,
0.17285223305225372,
-0.1738722324371338,
-0.11649591475725174,
-0.01941618137061596,
-0.05754147469997406,
0.12157203257083893,
-0.2605113983154297,
-0.12677407264709473,
-0.10074297338724136,
0.40187734365463257,
0.1480000913143158,
0.317086786031723,
0.14310486614704132,
0.5319444537162781,
0.16380415856838226,
0.07024979591369629,
-0.07549664378166199,
-0.5950469374656677,
-0.15330542623996735,
0.0420684814453125,
0.10673389583826065,
0.40316659212112427,
0.0140681192278862,
0.13723517954349518,
-0.10653546452522278,
0.1262332648038864,
0.05367311090230942,
0.08399072289466858,
0.05157412588596344,
0.0034557764884084463,
0.1623285561800003,
0.08191736042499542,
0.12391849607229233,
-0.15448473393917084,
0.3739553391933441,
0.22236989438533783,
0.02240816503763199,
-0.12013319879770279,
-0.004782917443662882,
-0.4614661633968353,
0.2616465389728546,
-0.00941531639546156,
-0.18774226307868958,
-0.10895445942878723,
-0.3240407407283783,
-0.02937140129506588,
0.17503385245800018,
0.23235087096691132,
0.170265331864357,
-0.10677357763051987,
0.16378909349441528,
-0.09658597409725189,
-0.06340808421373367,
-0.2861725091934204,
-0.04422691836953163,
-0.351602703332901,
-0.10436856746673584,
0.027629541233181953,
-0.3332436978816986,
0.10926850140094757,
-0.19780023396015167,
0.044877395033836365,
-0.3304949700832367,
-0.24961386620998383,
0.0687255933880806,
0.14242137968540192,
-0.19136148691177368,
-0.1454961597919464,
-0.13314521312713623,
-0.34062254428863525,
-0.07776153087615967,
0.10528524965047836,
-0.37550339102745056,
-0.058996062725782394,
-0.19424286484718323,
0.22689706087112427,
-0.07328362762928009,
0.06139032542705536,
-0.0987810418009758,
0.045062899589538574,
0.0523565337061882,
-0.09228018671274185,
-0.12052033096551895,
-0.09919613599777222,
-0.10735157877206802,
-0.17789514362812042,
-0.14736905694007874,
-0.29404228925704956,
-0.1225033849477768,
-0.5240330100059509,
-0.2998073101043701,
0.5365316867828369,
-0.12470077723264694,
-0.07930251210927963,
-0.10533584654331207,
-0.02949395589530468,
0.30539795756340027,
0.46651050448417664,
-0.5257644653320312,
-0.06458007544279099,
-0.20277538895606995,
-0.18987230956554413,
-0.14755530655384064,
0.3041582405567169,
0.3952637016773224,
0.19113337993621826,
0.1284651905298233,
-0.4285716414451599,
-0.2033013552427292,
0.020704658702015877,
0.001100674387998879,
0.4422149956226349,
-0.03273066133260727,
0.20218230783939362,
-0.08188918232917786,
0.803088903427124,
0.6181523203849792,
-0.21779578924179077,
0.23084500432014465,
0.11477915197610855,
0.3255804777145386,
-0.14092759788036346,
-0.19788827002048492,
-0.1367318034172058,
-0.3422306776046753,
0.09499292075634003,
0.18335063755512238,
0.1425251066684723,
-0.3120465576648712,
-0.15705452859401703,
0.09193017333745956,
-0.3112707734107971,
-0.32971301674842834,
-0.08052312582731247,
-0.24852998554706573,
0.3068063259124756,
0.351083904504776,
0.3141098916530609,
-0.7173702716827393,
-0.12203891575336456,
0.25282880663871765,
-0.21448352932929993,
0.468978613615036,
0.11479660868644714,
-0.21096168458461761,
-0.13886409997940063,
-0.34431883692741394,
0.3209450840950012,
0.22757066786289215,
0.366901695728302,
0.21778354048728943,
0.017415065318346024,
-0.1508578658103943,
0.10885759443044662,
0.43157070875167847,
-0.7976605296134949,
-0.3380017578601837,
-0.11149293184280396,
-0.05547370761632919,
-0.02103240229189396,
-0.04060209542512894,
0.351041704416275,
0.22571229934692383,
0.04130013287067413,
0.2744194269180298,
0.03855278715491295,
0.007579932454973459,
-0.32338544726371765,
0.17293407022953033,
-0.23463448882102966,
-0.31523334980010986,
-0.098659947514534,
0.27012526988983154,
-0.09005975723266602,
-0.2996428906917572,
0.028634272515773773,
-0.16891875863075256,
0.05742333084344864,
-0.1737726479768753,
-0.3051755726337433,
0.05799715220928192,
0.10664761066436768,
0.02927437238395214,
0.555604875087738,
-0.028238872066140175,
0.3208509087562561,
0.1760173887014389,
0.01832927018404007,
0.07111603021621704,
0.2807704210281372,
-0.14288800954818726,
-0.23373687267303467,
-0.0897052064538002,
-0.09232661873102188,
0.2570893168449402,
-0.031962279230356216,
-0.20561066269874573,
-0.0013508492847904563,
-0.2553195357322693,
0.02588437683880329,
-0.2113853245973587,
0.13468779623508453,
0.36525049805641174,
0.359734445810318,
-0.4407244920730591,
-0.4705248773097992,
0.17312723398208618,
0.27375128865242004,
-0.18334780633449554,
0.5526423454284668,
-0.08299602568149567,
-0.2301497608423233,
0.15582232177257538,
0.044628243893384933,
1.0017777681350708,
0.02924300916492939,
0.09188663959503174,
-0.249991312623024,
0.05647731199860573,
0.6650121212005615,
-0.37294626235961914,
0.33067670464515686,
-0.28588083386421204,
-0.21053113043308258,
-0.18871116638183594,
-0.22684405744075775,
-0.08356260508298874,
0.2917119860649109,
-0.199439138174057,
0.49630865454673767,
0.05405120924115181,
0.5679223537445068,
0.22493848204612732,
0.07031873613595963,
0.19062359631061554,
-0.11996711045503616,
0.26166602969169617,
0.07315423339605331,
0.1753249317407608,
0.3935573101043701,
-0.090989850461483,
0.11189211159944534,
0.09074927121400833,
-0.09879741817712784,
-0.2807954251766205,
0.10617554932832718,
-0.36558911204338074,
0.25313106179237366,
-0.050557419657707214,
0.17433030903339386,
0.10042291134595871,
0.35758060216903687,
0.5060385465621948,
0.208212211728096,
-0.18855230510234833,
0.13585598766803741,
0.1558087170124054,
0.26170453429222107,
-0.14115577936172485,
-0.2263828068971634,
0.028073757886886597,
0.00029432683368213475,
-0.20791734755039215,
-0.010965553112328053,
0.032626669853925705,
-0.4142288863658905,
-0.35285714268684387,
-0.027025580406188965,
0.3227230906486511,
-0.20366187393665314,
0.07059132307767868,
0.18813054263591766,
0.06304824352264404,
-0.04375631734728813,
0.03805667161941528,
-0.022182496264576912,
0.07383963465690613,
0.5688582062721252,
-0.27172350883483887,
-0.13928772509098053,
-0.013238712213933468,
0.45977982878685,
0.3361430764198303,
-0.1777527779340744,
0.5680007934570312,
-0.2200244665145874,
-0.24020403623580933,
-0.04722222313284874,
-0.4798620641231537,
0.05840085446834564,
-0.3148994445800781,
-0.03784668445587158,
-0.3966694474220276,
0.06053049489855766,
0.14067117869853973,
-0.05752266198396683,
-0.030745241791009903,
-0.19937829673290253,
-0.12169584631919861,
-0.22992083430290222,
-0.20371480286121368,
0.04219549894332886,
0.04360311105847359,
0.16316339373588562,
0.22557605803012848,
0.06446992605924606,
-0.04053090512752533,
0.41898563504219055,
-0.15359556674957275,
0.04440203681588173,
0.1507003903388977,
0.12219609320163727,
-0.21099025011062622,
-0.08776326477527618,
-0.05869218707084656,
-0.10460884124040604,
-0.11376234143972397,
0.31145164370536804,
-0.06390237808227539,
-0.052166879177093506,
0.09888532012701035,
0.20194368064403534,
0.20774772763252258,
-0.02391507849097252,
-0.04570278152823448,
-0.018330128863453865,
0.07870154082775116,
-0.36523571610450745,
0.09146980941295624,
0.05968470126390457,
-0.022996913641691208,
0.23533840477466583,
0.33578044176101685,
-0.08331224322319031,
-0.278767466545105,
0.15750250220298767,
-0.06761009246110916,
0.04965874180197716,
-0.029231438413262367,
0.2691749632358551,
0.3636685311794281,
0.019830094650387764,
-0.08000373095273972,
-0.029180137440562248,
0.11315567046403885,
0.032755881547927856,
0.3520662188529968,
-0.41420525312423706,
0.017141757532954216,
0.2618720233440399,
-0.09399990737438202,
0.3780743181705475,
-0.12554869055747986,
-0.35121941566467285,
0.28936728835105896,
0.11027290672063828,
-0.2677420973777771,
-0.345725417137146,
0.28659337759017944,
0.09862248599529266,
-0.1312386393547058,
0.0857275202870369,
0.033620670437812805,
-0.17569436132907867,
0.32646068930625916,
0.10745035111904144,
0.4046725332736969,
-0.43510374426841736,
0.3502947986125946,
0.2615407109260559,
0.2842252552509308,
0.14601635932922363,
0.17856775224208832,
0.21875354647636414,
-0.2382124811410904,
0.1690315306186676,
0.11954769492149353,
0.2626832127571106,
0.15095333755016327,
-0.086133673787117,
0.06701483577489853,
-0.29401764273643494,
-0.019943810999393463,
0.3258395493030548,
-0.10453580319881439,
0.3778480887413025,
-0.056529004126787186,
-0.12614938616752625,
0.18447980284690857,
-0.06482245773077011,
-0.28930363059043884,
0.17136533558368683,
-0.25771665573120117,
-0.13739396631717682,
0.2168830782175064,
-0.16063416004180908,
-0.019861320033669472,
-0.1444624364376068,
0.13803249597549438,
0.001731676165945828,
0.5208861827850342,
0.019092215225100517,
-0.15047608315944672,
-0.11493953317403793,
-0.2739807367324829,
0.18267427384853363,
0.5745248198509216,
-0.1868024468421936,
0.09266497194766998,
-0.21385496854782104,
-0.023914217948913574,
-0.09012328088283539,
0.3141930401325226,
0.17926880717277527,
0.40270689129829407,
-0.14731615781784058,
0.08058705925941467,
0.25736257433891296,
0.09969538450241089,
-0.036729343235492706,
0.4875115752220154,
-0.1763319969177246,
-0.39671358466148376,
0.0521714985370636,
0.06903274357318878,
-0.03182864189147949,
-0.15987738966941833,
-0.271125853061676,
0.36790192127227783,
-0.4220820367336273,
0.3023279309272766,
-0.09546435624361038,
0.07348061352968216,
-0.06744930893182755,
0.18109838664531708,
-0.3221395015716553,
0.19769367575645447,
0.5176385045051575,
-0.11355486512184143,
0.1017570048570633,
-0.2707713842391968,
0.028198523446917534,
-0.040558140724897385,
0.28504467010498047,
0.43473348021507263,
-0.25262564420700073,
-0.20765429735183716,
-0.2799324691295624,
-0.4617501199245453,
0.37353914976119995,
-0.14974680542945862,
0.2867359519004822,
0.023986220359802246,
0.10445931553840637,
-0.05198495462536812,
-0.049172233790159225,
0.3006148040294647,
0.1457594782114029,
-0.227987140417099,
0.30767199397087097,
-0.347115695476532,
-0.04059506207704544,
-0.3000037372112274,
0.0067510767839848995,
0.17163203656673431,
-0.3455072343349457,
0.4444892108440399,
0.19556084275245667,
0.02729378640651703,
-0.02339962124824524,
0.06782667338848114,
0.21913102269172668,
-0.0610969141125679,
0.5450428128242493,
0.34657686948776245,
0.23694071173667908,
-0.02093258500099182,
-0.09342171996831894,
-0.09495437890291214,
-0.02100510708987713,
-0.12074241787195206,
0.04701271280646324,
-0.12103546410799026,
0.08204271644353867,
-0.4738940894603729,
0.0651584044098854,
-0.3022507131099701,
-0.19563744962215424,
0.28562411665916443,
-0.0026544532738626003,
-0.1738128364086151,
-0.15563999116420746,
-0.06103752553462982,
0.1276528686285019,
0.16682031750679016,
0.4713115096092224,
-0.22909878194332123,
0.4036518335342407,
-0.2490561157464981,
-0.19765466451644897,
0.33298826217651367,
-0.6163407564163208,
-0.4550292193889618,
-0.2239353060722351,
0.137532576918602,
0.11766307801008224,
-0.3350003957748413,
-0.6715466380119324,
-0.18104369938373566,
0.31741297245025635,
0.08836812525987625,
-0.03373776376247406,
0.14054562151432037,
0.04440924897789955,
0.248386949300766,
-0.1456892192363739,
0.5623006224632263,
0.055051062256097794,
0.02951623685657978,
0.2277144491672516,
-0.1859031319618225
] |
https://github.com/huggingface/datasets/issues/1717 | SciFact dataset - minor changes | Hi Dave,
You are more than welcome to open a PR to make these changes! 🤗
You will find the relevant information about opening a PR in the [contributing guide](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md) and in the [dataset addition guide](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Pinging also @lhoestq for the Google cloud matter. | Hi,
SciFact dataset creator here. First of all, thanks for adding the dataset to Huggingface, much appreciated!
I'd like to make a few minor changes, including the citation information and the `_URL` from which to download the dataset. Can I submit a PR for this?
It also looks like the dataset is being downloaded directly from Huggingface's Google cloud account rather than via the `_URL` in [scifact.py](https://github.com/huggingface/datasets/blob/master/datasets/scifact/scifact.py). Can you help me update the version on gcloud?
Thanks,
Dave | 44 | SciFact dataset - minor changes
Hi,
SciFact dataset creator here. First of all, thanks for adding the dataset to Huggingface, much appreciated!
I'd like to make a few minor changes, including the citation information and the `_URL` from which to download the dataset. Can I submit a PR for this?
It also looks like the dataset is being downloaded directly from Huggingface's Google cloud account rather than via the `_URL` in [scifact.py](https://github.com/huggingface/datasets/blob/master/datasets/scifact/scifact.py). Can you help me update the version on gcloud?
Thanks,
Dave
Hi Dave,
You are more than welcome to open a PR to make these changes! 🤗
You will find the relevant information about opening a PR in the [contributing guide](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md) and in the [dataset addition guide](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
Pinging also @lhoestq for the Google cloud matter. | [
0.15889376401901245,
-0.197348490357399,
-0.06765369325876236,
0.14704012870788574,
0.14846552908420563,
-0.10716106742620468,
-0.2045498639345169,
-0.040136437863111496,
0.08734144270420074,
-0.09037941694259644,
-0.08218386024236679,
0.01589495874941349,
-0.008538701571524143,
0.49486884474754333,
0.13954049348831177,
-0.24667049944400787,
0.2298516035079956,
-0.09968161582946777,
-0.02666214294731617,
-0.28330984711647034,
-0.056136228144168854,
0.22723709046840668,
0.10436852276325226,
-0.18677449226379395,
-0.07000580430030823,
-0.2488318830728531,
-0.3025515377521515,
0.32533377408981323,
-0.4019874036312103,
-0.3336291015148163,
-0.00904660765081644,
0.43744632601737976,
0.015300452709197998,
0.35178542137145996,
-0.0001106163181248121,
-0.15750300884246826,
0.32564055919647217,
-0.0009354183566756546,
-0.20851410925388336,
-0.11260651051998138,
-0.1620841920375824,
-0.09640899300575256,
0.02182566374540329,
0.07152047008275986,
-0.07105781137943268,
-0.07618870586156845,
-0.14830729365348816,
-0.12420149892568588,
0.32085204124450684,
0.0993056371808052,
0.21830472350120544,
0.23325183987617493,
0.1796124428510666,
-0.20708994567394257,
-0.05115344747900963,
0.291259229183197,
-0.04738232493400574,
0.3453979194164276,
0.16745856404304504,
0.3302256464958191,
0.025699788704514503,
0.465301513671875,
-0.038863103836774826,
-0.17890942096710205,
0.6320386528968811,
0.021372858434915543,
-0.3761976361274719,
-0.4856017231941223,
0.14863687753677368,
0.27426770329475403,
0.5723049640655518,
-0.3517037630081177,
-0.6798822283744812,
-0.20793914794921875,
0.21444697678089142,
-0.07356912642717361,
-0.01222182996571064,
0.31618085503578186,
0.038137950003147125,
0.051189012825489044,
0.07103019207715988,
-0.4668082892894745,
-0.309567391872406,
-0.14198589324951172,
0.062047410756349564,
0.09055957943201065,
-0.1406487673521042,
0.0051065352745354176,
0.112481988966465,
-0.05005921795964241,
-0.06964702159166336,
-0.23054732382297516,
-0.1012076735496521,
0.11050597578287125,
-0.09963877499103546,
-0.25655847787857056,
-0.21765966713428497,
0.29765212535858154,
0.01865963265299797,
0.38427165150642395,
0.08018440753221512,
-0.006823007948696613,
-0.20273257791996002,
-0.07599534839391708,
0.326421320438385,
-0.08125688135623932,
0.02783937007188797,
0.14254234731197357,
0.2957102060317993,
0.18147286772727966,
0.4126070737838745,
-0.14151045680046082,
0.17160145938396454,
-0.15217895805835724,
-0.4780345857143402,
-0.1535414457321167,
0.173005610704422,
-0.18358607590198517,
0.10027755051851273,
-0.0033969911746680737,
0.18500129878520966,
-0.1852903962135315,
-0.12254349142313004,
0.22183510661125183,
-0.1419372707605362,
-0.024763450026512146,
-0.059117935597896576,
0.16480834782123566,
0.08598824590444565,
-0.2317875623703003,
-0.2415517419576645,
0.15704165399074554,
0.2464359998703003,
0.16840893030166626,
0.0972016230225563,
0.04392264783382416,
0.33023184537887573,
-0.04166626185178757,
0.12209020555019379,
0.1869257390499115,
0.051948774605989456,
0.05920128896832466,
-0.10779297351837158,
0.358602911233902,
-0.04189898818731308,
0.1905275136232376,
0.0802965760231018,
0.10389888286590576,
-0.3220551908016205,
0.05917771905660629,
0.0409938246011734,
-0.13178712129592896,
-0.45270270109176636,
0.1883639395236969,
-0.318508118391037,
-0.35569658875465393,
-0.17261144518852234,
0.17866423726081848,
-0.24162913858890533,
0.008096745237708092,
0.20860938727855682,
0.07573475688695908,
-0.08612502366304398,
-0.20844429731369019,
0.329995721578598,
0.5944767594337463,
-0.16107971966266632,
-0.09997406601905823,
-0.21648898720741272,
-0.13431836664676666,
-0.041711851954460144,
0.2109251767396927,
-0.05062498152256012,
0.05588749796152115,
-0.02048504911363125,
0.10245402902364731,
0.010112307965755463,
-0.3500712215900421,
-0.26029399037361145,
-0.04681888222694397,
-0.15360769629478455,
-0.0353870764374733,
0.07909344881772995,
0.18062296509742737,
-0.10739485919475555,
-0.09080786257982254,
-0.03595225512981415,
0.030866926535964012,
0.000520380970556289,
-0.08524449169635773,
-0.3125625252723694,
-0.3891202509403229,
0.026063958182930946,
0.014306962490081787,
-0.07390855252742767,
0.34700196981430054,
0.16222909092903137,
-0.2902592420578003,
0.2583915889263153,
-0.17020384967327118,
-0.03154091164469719,
0.41243964433670044,
0.5787877440452576,
0.07000682502985,
0.015052071772515774,
0.0433177724480629,
-0.4493969976902008,
0.08136916905641556,
-0.2138364166021347,
0.3823772668838501,
-0.26182717084884644,
-0.31035923957824707,
-0.40029990673065186,
-0.018641863018274307,
0.150038480758667,
-0.47431498765945435,
0.08419540524482727,
-0.13550032675266266,
0.2801224887371063,
0.11533325165510178,
-0.13895058631896973,
0.2992051839828491,
0.0006326170405372977,
0.21379683911800385,
-0.42919811606407166,
0.14920338988304138,
-0.0950799509882927,
-0.02135828137397766,
0.3690764605998993,
0.2145184725522995,
0.11851529777050018,
-0.13792045414447784,
0.025446200743317604,
0.5660967230796814,
-0.06930040568113327,
0.44410812854766846,
0.56389319896698,
0.4257849156856537,
0.34725868701934814,
-0.010771261528134346,
0.27298229932785034,
-0.11934627592563629,
0.06135263666510582,
0.03049311414361,
-0.5344089269638062,
0.3712446987628937,
-0.21149778366088867,
0.1566208302974701,
0.1573421210050583,
0.24639680981636047,
0.06298688054084778,
0.22652119398117065,
-0.24913457036018372,
-0.003995347768068314,
-0.13616766035556793,
0.10068199783563614,
0.23121638596057892,
0.041655004024505615,
-0.5127976536750793,
0.2248273342847824,
0.02375079318881035,
-0.2264443188905716,
-0.22227893769741058,
0.32702475786209106,
-0.463030070066452,
-0.16366049647331238,
0.4058670997619629,
0.3480607271194458,
0.10470080375671387,
0.22727109491825104,
-0.010912230238318443,
0.17178601026535034,
0.2524057924747467,
-0.12329795211553574,
0.3218129277229309,
0.2035265415906906,
-0.19048812985420227,
-0.255388081073761,
0.16928112506866455,
0.24280866980552673,
-0.2287011444568634,
0.04554052650928497,
-0.15821383893489838,
0.151236891746521,
-0.22338075935840607,
-0.08054834604263306,
0.06929300725460052,
-0.41802769899368286,
-0.25621360540390015,
0.12397856265306473,
-0.4829692840576172,
-0.3185681104660034,
-0.13712942600250244,
0.06162065267562866,
-0.10556190460920334,
0.06788545101881027,
-0.024174295365810394,
0.3342972993850708,
-0.15433144569396973,
-0.04044439271092415,
-0.2764348089694977,
-0.06945472955703735,
-0.040300674736499786,
0.09620139747858047,
0.11969414353370667,
0.12546506524085999,
0.42615512013435364,
-0.09772887080907822,
0.12629395723342896,
-0.4863530397415161,
-0.5364236831665039,
0.043192408978939056,
-0.14060936868190765,
0.3586080074310303,
0.19612018764019012,
0.310059130191803,
-0.09805319458246231,
0.06480421125888824,
0.05518711358308792,
-0.1514209657907486,
0.015915410593152046,
-0.3629387617111206,
-0.1526401787996292,
-0.03999634459614754,
-0.015328417532145977,
-0.2927733063697815,
-0.16027842462062836,
-0.08987647294998169,
0.5506943464279175,
0.09373823553323746,
0.05648372322320938,
0.20592427253723145,
0.11698831617832184,
-0.09037678688764572,
-0.1289118230342865,
-0.07482044398784637,
-0.10091008991003036,
-0.35350167751312256,
0.3189162611961365,
-0.15540722012519836,
-0.4775131344795227,
0.028470629826188087,
0.17396296560764313,
0.12532541155815125,
-0.2889413833618164,
-0.31940722465515137,
-0.3141016364097595,
-0.43867430090904236,
0.13854259252548218,
0.14243657886981964,
0.3768020272254944,
0.37606731057167053,
-0.023670287802815437,
-0.14282864332199097,
-0.09600561112165451,
-0.42816662788391113,
-0.25924286246299744,
0.23070017993450165,
0.1189916729927063,
-0.18175014853477478,
-0.2812540531158447,
-0.027971263974905014,
0.9298328757286072,
0.04009673371911049,
-0.03387530520558357,
-0.095644511282444,
-0.12998469173908234,
0.27088212966918945,
0.020199432969093323,
-0.31250426173210144,
0.3370896279811859,
-0.17424100637435913,
0.0979834794998169,
0.30185580253601074,
0.2431260496377945,
0.38184553384780884,
-0.0008536199457012117,
0.06434314697980881,
-0.39050817489624023,
-0.19640226662158966,
-0.16413207352161407,
0.011053156107664108,
0.10590796172618866,
0.16316038370132446,
-0.1477033644914627,
-0.2493378072977066,
-0.06886991113424301,
0.16901157796382904,
0.30936041474342346,
0.18120798468589783,
0.08564183861017227,
-0.3147592544555664,
0.03459293767809868,
-0.6594236493110657,
0.3933964967727661,
-0.16518370807170868,
-0.18264715373516083,
-0.042582008987665176,
-0.07539690285921097,
0.1312234252691269,
0.06514286994934082,
0.6219668388366699,
-0.22347062826156616,
-0.2187652587890625,
-0.011955182068049908,
-0.007946573197841644,
-0.2581503987312317,
0.16274063289165497,
-0.11359257251024246,
0.09287887066602707,
0.4785264730453491,
0.22147898375988007,
-0.2654494643211365,
-0.31110087037086487,
0.11954982578754425,
0.11839364469051361,
0.09165595471858978,
0.23319479823112488,
-0.10354197770357132,
-0.290073424577713,
-0.1447431445121765,
-0.26214468479156494,
-0.016871245577931404,
-0.03686847537755966,
-0.100021131336689,
0.19030603766441345,
0.1350826472043991,
0.002079060534015298,
0.22890624403953552,
0.046097662299871445,
0.24426321685314178,
0.18294115364551544,
-0.004651250317692757,
0.3893856406211853,
0.09681291878223419,
0.1280742734670639,
0.43568652868270874,
-0.1251813769340515,
-0.2630375325679779,
-0.04097927361726761,
-0.09783482551574707,
0.21725496649742126,
0.35178226232528687,
0.0537208616733551,
0.08562477678060532,
0.4536273777484894,
0.34002557396888733,
-0.24035264551639557,
0.281503826379776,
0.052768524736166,
0.032578445971012115,
-0.26424089074134827,
-0.4618489444255829,
0.5030094981193542,
0.3260630667209625,
-0.37012597918510437,
0.2631378173828125,
0.5139731168746948,
-0.056577105075120926,
0.07873313128948212,
0.2433066964149475,
1.0592774152755737,
-0.24372854828834534,
0.18101926147937775,
0.06641940772533417,
-0.5193049311637878,
0.7468008399009705,
-0.07982021570205688,
0.0026950021274387836,
-0.27658554911613464,
-0.06612198054790497,
-0.03158760443329811,
0.01580803282558918,
0.33362314105033875,
-0.1907816380262375,
-0.22129125893115997,
0.3060908615589142,
0.08671342581510544,
-0.09218665212392807,
0.13334229588508606,
0.6834869384765625,
-0.06376843899488449,
-0.24514442682266235,
0.028884032741189003,
0.15437687933444977,
0.06770552694797516,
0.2733618915081024,
-0.046934258192777634,
-0.3334122896194458,
-0.3033265471458435,
-0.2784084975719452,
-0.42365097999572754,
-0.13758403062820435,
-0.35815200209617615,
-0.39262861013412476,
0.14990472793579102,
-0.4280249774456024,
0.22727859020233154,
0.3937419354915619,
0.41244858503341675,
0.018031390383839607,
-0.3948339521884918,
0.3754692077636719,
-0.24193842709064484,
0.02232486568391323,
0.10059746354818344,
0.07642866671085358,
-0.0017415008042007685,
-0.0821540579199791,
-0.07301925867795944,
-0.20726945996284485,
-0.05931059271097183,
-0.05203808844089508,
-0.2748452126979828,
-0.2732432782649994,
-0.1914604902267456,
-0.214211568236351,
0.11767803877592087,
-0.01906837522983551,
-0.0299959909170866,
-0.3094285726547241,
0.14170731604099274,
0.08123775571584702,
0.1857292503118515,
-0.09103181958198547,
0.20000115036964417,
0.004774018190801144,
-0.25913316011428833,
0.389046847820282,
0.0951726958155632,
-0.2510615289211273,
0.3386102616786957,
0.22458425164222717,
0.08972549438476562,
-0.278656542301178,
-0.25191783905029297,
-0.34400326013565063,
-0.40563201904296875,
0.20006005465984344,
-0.04042518883943558,
-0.046334292739629745,
-0.30482199788093567,
0.4211055636405945,
0.16482962667942047,
0.11003658920526505,
0.22154545783996582,
-0.17318549752235413,
-0.1047954261302948,
0.18884891271591187,
-0.25578972697257996,
0.1407644897699356,
-0.1645471155643463,
0.21943598985671997,
-0.017737427726387978,
0.08333086222410202,
-0.36775532364845276,
0.08208787441253662,
0.08238451927900314,
-0.22989346086978912,
0.39810091257095337,
0.013068422675132751,
0.2936743199825287,
-0.37726491689682007,
0.0988096296787262,
-0.25231966376304626,
-0.15761740505695343,
-0.13312263786792755,
-0.1655598133802414,
0.12149875611066818,
-0.07293107360601425,
-0.11028704792261124,
-0.02458188124001026,
0.17274406552314758,
-0.05783388018608093,
0.03352557495236397,
0.21651381254196167,
0.13905109465122223,
0.0039021323900669813,
0.14068114757537842,
-0.36087825894355774,
0.22951045632362366,
-0.0658482015132904,
-0.19271503388881683,
0.15961885452270508,
0.14564134180545807,
0.24254998564720154,
0.12283168733119965,
0.03702283650636673,
-0.04136297106742859,
0.18821917474269867,
0.1895296573638916,
0.01687037944793701,
0.016657806932926178,
0.3114473819732666,
0.052984125912189484,
-0.21447178721427917,
0.25770169496536255,
0.48604968190193176,
0.027836594730615616,
-0.1735052913427353,
-0.0748668685555458,
0.13740529119968414,
0.21628046035766602,
-0.19057686626911163,
0.05821659788489342,
0.06521762907505035,
-0.025574296712875366,
-0.03864605352282524,
0.2975447475910187,
0.3883388042449951,
0.12564171850681305,
-0.03529084846377373,
0.16125038266181946,
0.4712631404399872,
0.016463251784443855,
0.4930724799633026,
-0.06572382152080536,
-0.015901805832982063,
-0.06779904663562775,
0.2639960050582886,
0.34751078486442566,
-0.051345281302928925,
-0.04347873106598854,
0.12197551131248474,
-0.06111565977334976,
-0.11851336807012558,
0.08737382292747498,
0.010692832060158253,
-0.2702273428440094,
0.4897191822528839,
0.18187451362609863,
0.13253462314605713,
0.08787468075752258,
-0.07569237798452377,
0.6670544743537903,
-0.10761835426092148,
-0.2506594955921173,
-0.12326985597610474,
0.16988153755664825,
0.23414447903633118,
-0.12495946139097214,
0.03932340070605278,
-0.2366907000541687,
0.1775384545326233,
-0.059916071593761444,
0.025425031781196594,
-0.26561859250068665,
0.292673259973526,
-0.17548075318336487,
-0.19497521221637726,
-0.5111841559410095,
-0.10313834995031357,
0.02413051202893257,
0.47654831409454346,
0.10109280049800873,
-0.0011816297192126513,
0.0968395248055458,
-0.21403957903385162,
0.17160508036613464,
0.3321954905986786,
0.3361046314239502,
-0.006827113684266806,
-0.04730409383773804,
0.276643842458725,
-0.09357017278671265,
-0.08333411067724228,
0.2441321313381195,
-0.013773939572274685,
0.1523178666830063,
-0.0012727418215945363,
0.15861955285072327,
0.17501769959926605,
-0.08636677265167236,
0.09361614286899567,
-0.06896717101335526,
0.4385334253311157,
-0.3567752242088318,
0.2980392873287201,
-0.3026968240737915,
-0.30256029963493347,
-0.01536202896386385,
0.015419107861816883,
-0.2900405824184418,
-0.021105578169226646,
-0.19279561936855316,
-0.05511970445513725,
0.029235785827040672,
-0.1150282770395279,
0.08895218372344971,
0.12017109990119934,
0.445546954870224,
0.4420095384120941,
0.1910863220691681,
-0.12136867642402649,
-0.22471216320991516,
-0.35871171951293945,
-0.2266034632921219,
0.14075888693332672,
-0.030728226527571678,
-0.04118768125772476,
-0.0035500037483870983,
0.0035217187833040953,
-0.10790356993675232,
-0.0036672772839665413,
-0.21202415227890015,
-0.3354950249195099,
-0.11284734308719635,
-0.15141965448856354,
-0.011673801578581333,
-0.4705737829208374,
0.17535702884197235,
0.13980962336063385,
0.20952795445919037,
0.09976397454738617,
-0.06927521526813507,
0.004973098170012236,
-0.10921292006969452,
0.1780133694410324,
-0.015484966337680817,
-0.2124406099319458,
0.3247256577014923,
0.2799309492111206,
0.15399864315986633,
-0.11003848165273666,
-0.4077780842781067,
-0.15918086469173431,
-0.14237503707408905,
-0.2861744165420532,
0.23870398104190826,
-0.09795637428760529,
0.4708806574344635,
0.08859816938638687,
-0.4300313889980316,
-0.3081095814704895,
0.40304940938949585,
0.22427020967006683,
-0.11819375306367874,
-0.39334040880203247,
0.3088785707950592,
0.01921033300459385,
-0.05556510388851166,
0.05423836410045624,
0.10773961246013641,
-0.04226505011320114,
0.04869941994547844,
-0.3787393867969513,
-0.21906496584415436,
0.6983256340026855,
-0.2918168008327484,
0.027556097134947777,
0.04612076282501221,
0.37474706768989563,
-0.06571105122566223,
-0.11710625141859055,
-0.6519764065742493,
0.2062690407037735,
0.16335183382034302,
0.13097316026687622,
-0.21182172000408173,
0.21520256996154785,
-0.10695537179708481,
-0.21906277537345886,
-0.03844413533806801,
0.6719527840614319,
-0.1442333459854126,
-0.2523871958255768,
0.05403919145464897,
-0.10742805153131485
] |
https://github.com/huggingface/datasets/issues/1717 | SciFact dataset - minor changes | > I'd like to make a few minor changes, including the citation information and the `_URL` from which to download the dataset. Can I submit a PR for this?
Sure ! Also feel free to ping us for reviews or if we can help :)
> It also looks like the dataset is being downloaded directly from Huggingface's Google cloud account rather than via the `_URL` in [scifact.py](https://github.com/huggingface/datasets/blob/master/datasets/scifact/scifact.py). Can you help me update the version on gcloud?
What makes you think that ?
Afaik there's no scifact on our google storage
| Hi,
SciFact dataset creator here. First of all, thanks for adding the dataset to Huggingface, much appreciated!
I'd like to make a few minor changes, including the citation information and the `_URL` from which to download the dataset. Can I submit a PR for this?
It also looks like the dataset is being downloaded directly from Huggingface's Google cloud account rather than via the `_URL` in [scifact.py](https://github.com/huggingface/datasets/blob/master/datasets/scifact/scifact.py). Can you help me update the version on gcloud?
Thanks,
Dave | 91 | SciFact dataset - minor changes
Hi,
SciFact dataset creator here. First of all, thanks for adding the dataset to Huggingface, much appreciated!
I'd like to make a few minor changes, including the citation information and the `_URL` from which to download the dataset. Can I submit a PR for this?
It also looks like the dataset is being downloaded directly from Huggingface's Google cloud account rather than via the `_URL` in [scifact.py](https://github.com/huggingface/datasets/blob/master/datasets/scifact/scifact.py). Can you help me update the version on gcloud?
Thanks,
Dave
> I'd like to make a few minor changes, including the citation information and the `_URL` from which to download the dataset. Can I submit a PR for this?
Sure ! Also feel free to ping us for reviews or if we can help :)
> It also looks like the dataset is being downloaded directly from Huggingface's Google cloud account rather than via the `_URL` in [scifact.py](https://github.com/huggingface/datasets/blob/master/datasets/scifact/scifact.py). Can you help me update the version on gcloud?
What makes you think that ?
Afaik there's no scifact on our google storage
| [
0.17509640753269196,
-0.16272084414958954,
-0.13827094435691833,
0.16952314972877502,
0.1716015338897705,
-0.10548413544893265,
-0.010719459503889084,
0.033970799297094345,
0.21871812641620636,
0.04157521203160286,
-0.17465102672576904,
0.02215523272752762,
-0.0037148466799408197,
0.515471875667572,
0.16618235409259796,
-0.2211894392967224,
0.20494091510772705,
-0.14982782304286957,
-0.14907750487327576,
-0.3085084855556488,
-0.09342952072620392,
0.21772000193595886,
0.11056089401245117,
-0.19857551157474518,
-0.053899865597486496,
-0.14655044674873352,
-0.2876535952091217,
0.32990872859954834,
-0.3410831689834595,
-0.21850672364234924,
0.005985977128148079,
0.28728926181793213,
-0.021382194012403488,
0.3150199055671692,
-0.00010204502905253321,
-0.10800734162330627,
0.3075103759765625,
-0.07063169777393341,
-0.21629557013511658,
-0.02646547369658947,
-0.1062401607632637,
-0.04360000044107437,
0.04157518222928047,
0.0017975328955799341,
-0.10290709882974625,
0.06010787561535835,
-0.07514073699712753,
-0.2309909611940384,
0.3554615080356598,
-0.03199222683906555,
0.31323328614234924,
0.11853784322738647,
0.07791616022586823,
-0.1776697337627411,
0.07264404743909836,
0.28870147466659546,
-0.13351593911647797,
0.20084650814533234,
0.18987879157066345,
0.30683356523513794,
-0.1447356790304184,
0.6204882860183716,
-0.02164490334689617,
-0.1450502872467041,
0.5957466959953308,
-0.03180856257677078,
-0.3159662187099457,
-0.40478968620300293,
0.14081573486328125,
0.30818724632263184,
0.44572803378105164,
-0.25460001826286316,
-0.6352857947349548,
-0.22743390500545502,
0.11435752362012863,
-0.10832672566175461,
-0.01845247484743595,
0.28906288743019104,
0.06861678510904312,
0.05351203307509422,
0.024358799681067467,
-0.45252302289009094,
-0.350741982460022,
-0.10817556828260422,
-0.04711424931883812,
0.10832730680704117,
-0.16574726998806,
-0.044096753001213074,
0.09182465076446533,
-0.0021020397543907166,
-0.08410106599330902,
-0.1822718381881714,
-0.05294431373476982,
0.09495975822210312,
-0.1866753101348877,
-0.25853466987609863,
-0.1515841782093048,
0.2619606852531433,
0.05087931826710701,
0.3623623847961426,
0.15479062497615814,
0.08210733532905579,
-0.11969990283250809,
-0.1157880574464798,
0.2962261736392975,
-0.036673568189144135,
0.02304001711308956,
0.01587139628827572,
0.26676031947135925,
0.060267385095357895,
0.3479253351688385,
-0.09178031235933304,
0.157617449760437,
-0.1308736950159073,
-0.5323854088783264,
-0.16898778080940247,
0.06563550978899002,
-0.17061302065849304,
-0.013180661015212536,
-0.03496822714805603,
0.1527695655822754,
-0.13248758018016815,
-0.10009856522083282,
0.2938220202922821,
-0.09781583398580551,
-0.029558133333921432,
-0.057610709220170975,
0.2187986671924591,
0.06095828488469124,
-0.23949909210205078,
-0.3341900408267975,
0.2026187777519226,
0.19005659222602844,
0.08271703869104385,
0.14758968353271484,
0.03908473253250122,
0.2758978307247162,
-0.08575750142335892,
0.021523479372262955,
0.23377364873886108,
0.13757210969924927,
-0.05560476705431938,
-0.021000243723392487,
0.38444629311561584,
-0.009800390340387821,
0.10583661496639252,
0.05180063471198082,
0.12024497240781784,
-0.29563188552856445,
-0.04098743572831154,
0.041621819138526917,
-0.1107906773686409,
-0.45230865478515625,
0.26385802030563354,
-0.3114066421985626,
-0.33106815814971924,
-0.19129373133182526,
0.1648498773574829,
-0.18096520006656647,
0.06245119497179985,
0.11148820072412491,
0.12202054262161255,
-0.12122508138418198,
-0.21555234491825104,
0.2229265719652176,
0.41814085841178894,
-0.19548477232456207,
-0.18826736509799957,
-0.31584855914115906,
-0.15116041898727417,
0.014215587638318539,
0.21075989305973053,
0.04625600948929787,
0.025888338685035706,
-0.13773992657661438,
0.14009784162044525,
-0.007402854971587658,
-0.302145779132843,
-0.2463243305683136,
0.04083118215203285,
-0.10639338940382004,
0.03423851728439331,
0.1106002926826477,
0.16902554035186768,
0.009778395295143127,
-0.0350155383348465,
-0.031087644398212433,
0.16158293187618256,
0.008842693641781807,
-0.07146215438842773,
-0.27663615345954895,
-0.4907863736152649,
0.040432725101709366,
0.0260184146463871,
0.06335370987653732,
0.15100984275341034,
0.18202131986618042,
-0.28561732172966003,
0.3023248314857483,
-0.1926102489233017,
-0.01831219717860222,
0.40994518995285034,
0.534634530544281,
0.04295595735311508,
0.029597492888569832,
0.0317671038210392,
-0.5193303227424622,
0.14758354425430298,
-0.21870632469654083,
0.40713629126548767,
-0.2894706130027771,
-0.24361743032932281,
-0.26908600330352783,
-0.054145727306604385,
0.05880061164498329,
-0.40670204162597656,
0.20997975766658783,
-0.11518938839435577,
0.20977644622325897,
0.078809455037117,
-0.049390509724617004,
0.29610636830329895,
0.0036830264143645763,
0.2046886384487152,
-0.4347658157348633,
0.1959659904241562,
-0.13531459867954254,
0.017451880499720573,
0.2929263114929199,
0.15855158865451813,
0.07956559956073761,
-0.15011517703533173,
0.03403646498918533,
0.5016912221908569,
-0.029541663825511932,
0.4781923294067383,
0.502761721611023,
0.3911729156970978,
0.4086717367172241,
-0.010705928318202496,
0.2504282593727112,
-0.0324828177690506,
0.02464568242430687,
-0.057297490537166595,
-0.4910123348236084,
0.2947308421134949,
-0.10370878130197525,
0.16604438424110413,
0.1834675818681717,
0.297911137342453,
0.0980999767780304,
0.20082594454288483,
-0.25987741351127625,
-0.1561671495437622,
-0.09910614788532257,
0.08653853088617325,
0.20875369012355804,
0.05037922039628029,
-0.41363805532455444,
0.2915061116218567,
0.0773959755897522,
-0.2357572466135025,
-0.09064452350139618,
0.23800507187843323,
-0.4635384976863861,
-0.247451052069664,
0.42509955167770386,
0.30640700459480286,
0.04934528470039368,
0.34040650725364685,
0.06353607028722763,
0.049497149884700775,
0.18914853036403656,
-0.1588694453239441,
0.40177759528160095,
0.17434319853782654,
-0.03999580815434456,
-0.18245890736579895,
0.18185491859912872,
0.09836646914482117,
-0.37776049971580505,
-0.045032158493995667,
-0.21038660407066345,
0.07558450102806091,
-0.2193058431148529,
-0.11370756477117538,
0.0073698111809790134,
-0.35833269357681274,
-0.13707351684570312,
0.09206680953502655,
-0.4101580083370209,
-0.44347724318504333,
-0.05072135105729103,
0.07599696516990662,
-0.2482069432735443,
0.038206372410058975,
-0.14084076881408691,
0.34478238224983215,
-0.03217751905322075,
0.004300165921449661,
-0.30782708525657654,
-0.08551951497793198,
0.0033643122296780348,
0.19744689762592316,
0.14335153996944427,
0.1119345873594284,
0.43562576174736023,
-0.08640433847904205,
0.1355852484703064,
-0.4129349887371063,
-0.6301932334899902,
0.17478658258914948,
-0.20317375659942627,
0.35508638620376587,
0.2258833795785904,
0.2690948247909546,
-0.04626348242163658,
0.02705041505396366,
-0.016573570668697357,
-0.17914551496505737,
-0.04091126471757889,
-0.30506178736686707,
-0.14994825422763824,
0.03508090600371361,
-0.08468125760555267,
-0.2805573642253876,
-0.16903388500213623,
-0.06375859677791595,
0.48559826612472534,
0.09597001224756241,
0.14874650537967682,
0.23441480100154877,
0.10895521938800812,
-0.02664237841963768,
-0.10864469408988953,
0.011763816699385643,
-0.23093748092651367,
-0.3808627128601074,
0.25648194551467896,
-0.17072424292564392,
-0.4585992395877838,
-0.03910934180021286,
0.0907626673579216,
0.19026105105876923,
-0.2478317767381668,
-0.3297801911830902,
-0.20763453841209412,
-0.4169568121433258,
0.09061403572559357,
0.11647384613752365,
0.27320152521133423,
0.325566828250885,
0.006179878022521734,
-0.18896187841892242,
-0.1356039196252823,
-0.21094435453414917,
-0.14250724017620087,
0.18659958243370056,
0.09114594012498856,
-0.29458948969841003,
-0.3575012683868408,
0.08761700987815857,
0.8226944804191589,
-0.16087046265602112,
0.06034586578607559,
-0.11810431629419327,
-0.07386445254087448,
0.2442929595708847,
-0.019939228892326355,
-0.23848110437393188,
0.4008341431617737,
-0.2181674987077713,
0.041664231568574905,
0.28138118982315063,
0.2424054592847824,
0.23493391275405884,
0.03669504448771477,
0.1570053994655609,
-0.4096066951751709,
-0.1984177976846695,
-0.20514988899230957,
0.07379812747240067,
-0.01608431525528431,
0.142835795879364,
-0.0753045454621315,
-0.10257451236248016,
-0.09528036415576935,
0.18166591227054596,
0.17020729184150696,
0.19589123129844666,
0.005495669785887003,
-0.2988998591899872,
0.02746819145977497,
-0.6712691783905029,
0.35660266876220703,
-0.1822199821472168,
-0.3079407811164856,
-0.04503084719181061,
-0.19912925362586975,
0.07337960600852966,
0.04785409942269325,
0.5412955284118652,
-0.15631097555160522,
-0.16679468750953674,
0.020733781158924103,
0.008410966955125332,
-0.36200764775276184,
0.16128475964069366,
-0.24754756689071655,
-0.022026030346751213,
0.5003551840782166,
0.24896928668022156,
-0.16389100253582,
-0.2980360984802246,
0.1268446296453476,
0.14875246584415436,
0.04038102179765701,
0.20642663538455963,
-0.03523924946784973,
-0.2939264476299286,
-0.15005546808242798,
-0.2607955038547516,
-0.0450853668153286,
-0.008286767639219761,
-0.18548285961151123,
0.11894626170396805,
0.11849594116210938,
-0.019109023734927177,
0.2695918381214142,
0.013016332872211933,
0.27403631806373596,
0.058206599205732346,
0.014729234389960766,
0.31838321685791016,
0.22546030580997467,
0.10261930525302887,
0.4502182900905609,
-0.03420989215373993,
-0.12152265757322311,
0.0615304633975029,
-0.193417489528656,
0.15191279351711273,
0.40162086486816406,
0.05329239368438721,
-0.03439232334494591,
0.2892884612083435,
0.27286863327026367,
-0.31315046548843384,
0.23365454375743866,
0.017141401767730713,
0.009943745099008083,
-0.133887380361557,
-0.41167157888412476,
0.5648611187934875,
0.2755480706691742,
-0.33398231863975525,
0.2637113034725189,
0.459581196308136,
-0.1668817549943924,
0.2503581941127777,
0.3432021141052246,
1.0519462823867798,
-0.18231602013111115,
0.19156603515148163,
0.2723131477832794,
-0.3975040316581726,
0.5669391751289368,
-0.1354914754629135,
0.12016832828521729,
-0.24443715810775757,
-0.11132963001728058,
-0.019898608326911926,
0.029467318207025528,
0.23974338173866272,
-0.06759300082921982,
-0.18366727232933044,
0.24523425102233887,
0.06359681487083435,
-0.07497212290763855,
0.04851091280579567,
0.5296375751495361,
-0.18103595077991486,
-0.24356690049171448,
0.10272037982940674,
0.24849577248096466,
0.1063237264752388,
0.24014469981193542,
-0.04829614982008934,
-0.2501685321331024,
-0.21912994980812073,
-0.210699200630188,
-0.30768147110939026,
-0.046548862010240555,
-0.318101167678833,
-0.16967825591564178,
0.008106937631964684,
-0.3784961402416229,
0.06511782109737396,
0.28642240166664124,
0.32797005772590637,
0.012787186540663242,
-0.37106558680534363,
0.29808488488197327,
-0.13204653561115265,
-0.005804998334497213,
0.18075259029865265,
0.11454635113477707,
0.10049107670783997,
-0.0866210088133812,
-0.07683346420526505,
-0.25265753269195557,
-0.022657474502921104,
-0.09012723714113235,
-0.29806891083717346,
-0.18589340150356293,
-0.22807861864566803,
-0.19899879395961761,
0.06389964371919632,
0.01380100566893816,
-0.09039005637168884,
-0.2950100302696228,
0.2060500830411911,
0.09224039316177368,
0.20220060646533966,
0.005708844866603613,
0.1439734846353531,
-0.10624033957719803,
-0.32032310962677,
0.412444531917572,
0.21024052798748016,
-0.2354559749364853,
0.3347994387149811,
0.25156617164611816,
0.012159059755504131,
-0.38200661540031433,
-0.19194167852401733,
-0.29653796553611755,
-0.3045252561569214,
0.23055045306682587,
-0.13462479412555695,
-0.13796807825565338,
-0.31494849920272827,
0.4261557161808014,
0.1231607049703598,
0.10079164057970047,
0.14443957805633545,
-0.16446955502033234,
-0.06446053832769394,
0.3394777476787567,
-0.27320596575737,
0.27891385555267334,
-0.14169111847877502,
0.16918516159057617,
-0.08753667026758194,
0.005595333408564329,
-0.47338053584098816,
0.08855325728654861,
0.11702459305524826,
-0.2836102545261383,
0.3447382152080536,
-0.023667214438319206,
0.28965654969215393,
-0.35830157995224,
0.21717680990695953,
-0.29099270701408386,
-0.16775771975517273,
-0.23916073143482208,
-0.0864437073469162,
0.07790391892194748,
-0.059828098863363266,
-0.07881315797567368,
0.040537673979997635,
0.18490596115589142,
-0.09282369166612625,
0.008792845532298088,
0.3291768431663513,
0.2893909513950348,
0.07510796189308167,
0.2261415421962738,
-0.40848907828330994,
0.14499995112419128,
0.1052687019109726,
-0.15234626829624176,
0.15493716299533844,
0.15195809304714203,
0.12982165813446045,
0.13770079612731934,
0.05834043771028519,
-0.06059424206614494,
0.23300960659980774,
0.19231866300106049,
-0.13660994172096252,
0.15162700414657593,
0.33144545555114746,
0.03947768732905388,
-0.19391299784183502,
0.31439101696014404,
0.42914003133773804,
-0.05370769649744034,
-0.1632530838251114,
-0.15344825387001038,
-0.018199048936367035,
0.3565852642059326,
-0.2972005605697632,
-0.08168491721153259,
-0.10468563437461853,
0.018793676048517227,
0.059388417750597,
0.2791620194911957,
0.2986151874065399,
0.043224841356277466,
-0.012856224551796913,
0.21996769309043884,
0.4392489790916443,
0.028750943019986153,
0.4842643439769745,
-0.004123304504901171,
-0.09003359079360962,
-0.11075124889612198,
0.20437943935394287,
0.23568956553936005,
0.05027325823903084,
0.05562037229537964,
0.07248234748840332,
-0.05430438369512558,
-0.12269233912229538,
0.11646850407123566,
0.12265731394290924,
-0.24032406508922577,
0.35311371088027954,
0.26548877358436584,
-0.04317509010434151,
0.16608914732933044,
-0.06416899710893631,
0.6414593458175659,
-0.12589174509048462,
-0.2579581141471863,
-0.1385200321674347,
0.19554319977760315,
0.14993411302566528,
-0.12868861854076385,
-0.002100398764014244,
-0.2624364495277405,
0.10952416807413101,
-0.0681486576795578,
-0.007744592148810625,
-0.2621622681617737,
0.28592291474342346,
-0.16563431918621063,
-0.17003853619098663,
-0.37443339824676514,
0.00536463363096118,
0.019186709076166153,
0.41657504439353943,
0.08137314021587372,
0.05586298182606697,
0.22203922271728516,
-0.14569664001464844,
0.14331623911857605,
0.33102524280548096,
0.29149696230888367,
-0.020554307848215103,
-0.10916732251644135,
0.14218974113464355,
-0.10040461272001266,
-0.1522551327943802,
0.09150490909814835,
-0.038296543061733246,
0.1382107138633728,
-0.09185990691184998,
0.3246212601661682,
0.24979889392852783,
-0.14185784757137299,
0.13872726261615753,
0.08316771686077118,
0.4113074541091919,
-0.2207997739315033,
0.31072908639907837,
-0.2487461119890213,
-0.21012353897094727,
0.016668928787112236,
-0.046082913875579834,
-0.4195711314678192,
-0.1452142596244812,
-0.1362054944038391,
-0.09671437740325928,
0.10047559440135956,
-0.11050570756196976,
0.14945535361766815,
0.0561530701816082,
0.43067777156829834,
0.44450148940086365,
0.06643931567668915,
-0.08528993278741837,
-0.19313359260559082,
-0.26949775218963623,
-0.2304939478635788,
0.06910668313503265,
0.05027724802494049,
-0.1349867284297943,
0.22316300868988037,
0.08941876143217087,
-0.06838986277580261,
0.07513713836669922,
-0.19295841455459595,
-0.3643416166305542,
-0.16951701045036316,
-0.23208436369895935,
0.05050897225737572,
-0.30012091994285583,
0.1985497772693634,
0.08231999725103378,
0.05448976904153824,
0.14483162760734558,
-0.15974543988704681,
0.08277875930070877,
-0.0586886964738369,
0.1942724883556366,
-0.04652602970600128,
-0.2598099112510681,
0.3093498945236206,
0.17889845371246338,
0.06176991015672684,
-0.20876988768577576,
-0.4297066926956177,
-0.16143596172332764,
-0.20235657691955566,
-0.25599753856658936,
0.2328847199678421,
-0.027143729850649834,
0.5041913390159607,
0.08602569252252579,
-0.3409915566444397,
-0.14156700670719147,
0.43445491790771484,
0.23167040944099426,
-0.11495434492826462,
-0.4775400161743164,
0.35272416472435,
-0.011172366328537464,
-0.04033633694052696,
-0.0579487681388855,
0.20952986180782318,
-0.09925646334886551,
0.04908987507224083,
-0.29140907526016235,
-0.37994375824928284,
0.6491066217422485,
-0.23039934039115906,
-0.04010225459933281,
-0.023690147325396538,
0.28935784101486206,
0.03232067823410034,
0.0021478324197232723,
-0.6299196481704712,
0.21459192037582397,
0.1657150387763977,
0.16490623354911804,
-0.13981236517429352,
0.17875319719314575,
0.03409331664443016,
-0.1925084888935089,
-0.10097033530473709,
0.513053834438324,
-0.01832297258079052,
-0.2909577786922455,
-0.037920087575912476,
-0.18677575886249542
] |
https://github.com/huggingface/datasets/issues/1717 | SciFact dataset - minor changes |
> > I'd like to make a few minor changes, including the citation information and the `_URL` from which to download the dataset. Can I submit a PR for this?
>
> Sure ! Also feel free to ping us for reviews or if we can help :)
>
OK! We're organizing a [shared task](https://sdproc.org/2021/sharedtasks.html#sciver) based on the dataset, and I made some updates and changed the download URL - so the current code points to a dead URL. I'll update appropriately once the task is finalized and make a PR.
> > It also looks like the dataset is being downloaded directly from Huggingface's Google cloud account rather than via the `_URL` in [scifact.py](https://github.com/huggingface/datasets/blob/master/datasets/scifact/scifact.py). Can you help me update the version on gcloud?
>
> What makes you think that ?
> Afaik there's no scifact on our google storage
You're right, I had the data cached on my machine somewhere.
| Hi,
SciFact dataset creator here. First of all, thanks for adding the dataset to Huggingface, much appreciated!
I'd like to make a few minor changes, including the citation information and the `_URL` from which to download the dataset. Can I submit a PR for this?
It also looks like the dataset is being downloaded directly from Huggingface's Google cloud account rather than via the `_URL` in [scifact.py](https://github.com/huggingface/datasets/blob/master/datasets/scifact/scifact.py). Can you help me update the version on gcloud?
Thanks,
Dave | 152 | SciFact dataset - minor changes
Hi,
SciFact dataset creator here. First of all, thanks for adding the dataset to Huggingface, much appreciated!
I'd like to make a few minor changes, including the citation information and the `_URL` from which to download the dataset. Can I submit a PR for this?
It also looks like the dataset is being downloaded directly from Huggingface's Google cloud account rather than via the `_URL` in [scifact.py](https://github.com/huggingface/datasets/blob/master/datasets/scifact/scifact.py). Can you help me update the version on gcloud?
Thanks,
Dave
> > I'd like to make a few minor changes, including the citation information and the `_URL` from which to download the dataset. Can I submit a PR for this?
>
> Sure ! Also feel free to ping us for reviews or if we can help :)
>
OK! We're organizing a [shared task](https://sdproc.org/2021/sharedtasks.html#sciver) based on the dataset, and I made some updates and changed the download URL - so the current code points to a dead URL. I'll update appropriately once the task is finalized and make a PR.
> > It also looks like the dataset is being downloaded directly from Huggingface's Google cloud account rather than via the `_URL` in [scifact.py](https://github.com/huggingface/datasets/blob/master/datasets/scifact/scifact.py). Can you help me update the version on gcloud?
>
> What makes you think that ?
> Afaik there's no scifact on our google storage
You're right, I had the data cached on my machine somewhere.
| [
0.16592411696910858,
-0.16320879757404327,
-0.10140996426343918,
0.25287073850631714,
0.16676770150661469,
-0.11696116626262665,
-0.011766412295401096,
0.06558172404766083,
0.25607752799987793,
0.053932588547468185,
-0.15861570835113525,
0.03160112351179123,
0.022103937342762947,
0.4208246171474457,
0.19642624258995056,
-0.16027559340000153,
0.1690869778394699,
-0.1912660300731659,
-0.1692505031824112,
-0.2643750309944153,
-0.09588342159986496,
0.2250899076461792,
0.10938683152198792,
-0.2362835854291916,
-0.09884683042764664,
-0.1291613131761551,
-0.3391117453575134,
0.33560460805892944,
-0.2445785254240036,
-0.20941627025604248,
0.09592602401971817,
0.2644576132297516,
0.005523587577044964,
0.3104948103427887,
-0.00010090351133840159,
-0.10705248266458511,
0.31211405992507935,
-0.06702113151550293,
-0.2641540765762329,
0.013936987146735191,
-0.11895865201950073,
-0.030792713165283203,
0.03534364327788353,
-0.03418785706162453,
-0.1467745006084442,
0.09207538515329361,
-0.08427900820970535,
-0.3005346357822418,
0.3577446937561035,
-0.007656599394977093,
0.321550190448761,
0.13904741406440735,
0.03387722373008728,
-0.10829803347587585,
0.024564744904637337,
0.20601579546928406,
-0.09993762522935867,
0.21467939019203186,
0.1796552836894989,
0.34155356884002686,
-0.15117782354354858,
0.6248745322227478,
-0.013490625657141209,
-0.061541005969047546,
0.6073547005653381,
-0.0024983542971313,
-0.372918039560318,
-0.3723893463611603,
0.132451131939888,
0.26629072427749634,
0.44392460584640503,
-0.25536617636680603,
-0.5880438685417175,
-0.27673688530921936,
0.0677962601184845,
-0.11805366724729538,
0.08021970093250275,
0.22088001668453217,
0.10823061317205429,
0.11056026071310043,
-0.0029323920607566833,
-0.37195467948913574,
-0.2812478244304657,
-0.0933685451745987,
-0.057290248572826385,
0.08833383023738861,
-0.23470844328403473,
-0.006918244995176792,
-0.021921571344137192,
0.05059295892715454,
-0.08791357278823853,
-0.1871253103017807,
-0.051539864391088486,
0.06869751960039139,
-0.2170713096857071,
-0.22317829728126526,
-0.10663942992687225,
0.26031431555747986,
0.04734085127711296,
0.3677631616592407,
0.21382690966129303,
0.04271068051457405,
-0.10646206140518188,
-0.0991131141781807,
0.30718329548835754,
0.060234665870666504,
-0.03344070911407471,
0.009523643180727959,
0.2098221778869629,
0.07120000571012497,
0.24110111594200134,
-0.11471448838710785,
0.14894510805606842,
-0.080917127430439,
-0.4109894633293152,
-0.11424661427736282,
0.12765896320343018,
-0.2160332351922989,
-0.020693395286798477,
-0.03013426624238491,
0.1604786366224289,
-0.14871206879615784,
-0.10545802116394043,
0.2967302203178406,
-0.19890142977237701,
0.02101765386760235,
-0.06081309914588928,
0.13475307822227478,
0.027520352974534035,
-0.25659462809562683,
-0.3591397702693939,
0.13651882112026215,
0.18305011093616486,
0.16589117050170898,
0.1521868258714676,
0.026401560753583908,
0.26682382822036743,
-0.10018133372068405,
-0.058599408715963364,
0.09162422269582748,
0.19774265587329865,
-0.1109996885061264,
0.034712743014097214,
0.410737007856369,
0.0203841682523489,
0.1604323536157608,
0.10072624683380127,
0.13934451341629028,
-0.32010844349861145,
0.028254972770810127,
-0.03814041614532471,
-0.1832457035779953,
-0.35062724351882935,
0.26780739426612854,
-0.366021066904068,
-0.3243699371814728,
-0.2245865911245346,
0.13785956799983978,
-0.07282505184412003,
0.05473992973566055,
0.10994838923215866,
0.07799430936574936,
-0.1805957555770874,
-0.23245571553707123,
0.28966066241264343,
0.4897942543029785,
-0.15473565459251404,
-0.19705158472061157,
-0.31706294417381287,
-0.1309920698404312,
-0.013720941729843616,
0.2298932820558548,
0.013720639050006866,
0.08710186183452606,
-0.173064187169075,
0.1507142335176468,
-0.07376859337091446,
-0.3053482174873352,
-0.3150314390659332,
0.030927462503314018,
-0.18640689551830292,
0.06801368296146393,
0.06838034838438034,
0.1649678498506546,
0.06058279424905777,
-0.11094661802053452,
0.005871342029422522,
0.21091003715991974,
0.022301029413938522,
-0.029438693076372147,
-0.36314281821250916,
-0.5218741297721863,
0.0028265081346035004,
0.03559505566954613,
0.01607673242688179,
0.1326296478509903,
0.17740774154663086,
-0.2517200708389282,
0.24855110049247742,
-0.13640671968460083,
0.025524921715259552,
0.4775683283805847,
0.41869381070137024,
0.09622480720281601,
0.014295948669314384,
0.02251301519572735,
-0.547956645488739,
0.17483603954315186,
-0.17049717903137207,
0.29879918694496155,
-0.21260596811771393,
-0.27556970715522766,
-0.2794928252696991,
-0.07678414136171341,
0.009192020632326603,
-0.4557005763053894,
0.20264242589473724,
-0.0396110936999321,
0.2555356025695801,
0.04746833071112633,
-0.0561458021402359,
0.4210202395915985,
-0.0011722007766366005,
0.15125368535518646,
-0.4600057899951935,
0.2111089825630188,
-0.12664344906806946,
-0.0034927153028547764,
0.27010872960090637,
0.1262531280517578,
0.12482582777738571,
-0.1292124092578888,
0.016233934089541435,
0.5227892994880676,
-0.045363638550043106,
0.4940944314002991,
0.45852595567703247,
0.3518597185611725,
0.33674296736717224,
-0.04838954284787178,
0.30756130814552307,
0.04827861860394478,
0.06407114118337631,
-0.032615769654512405,
-0.44077929854393005,
0.3130383789539337,
-0.14688193798065186,
0.15974710881710052,
0.17604753375053406,
0.24208758771419525,
0.0994078516960144,
0.14705483615398407,
-0.2510010302066803,
-0.1514699012041092,
-0.05453873053193092,
0.08682309091091156,
0.18155768513679504,
0.1376992166042328,
-0.40123170614242554,
0.3901750445365906,
0.180029958486557,
-0.17998796701431274,
-0.07277225703001022,
0.25976160168647766,
-0.4883368909358978,
-0.28884923458099365,
0.3766423165798187,
0.31280452013015747,
0.1028183326125145,
0.3079313039779663,
0.09666863083839417,
0.05932580679655075,
0.1894824355840683,
-0.15293434262275696,
0.36114007234573364,
0.1256021112203598,
0.001381575595587492,
-0.20547336339950562,
0.1876898854970932,
0.14874273538589478,
-0.28987517952919006,
-0.001273947418667376,
-0.1462230533361435,
0.0650818794965744,
-0.282189279794693,
-0.02830217033624649,
-0.06730370223522186,
-0.33232665061950684,
-0.20457468926906586,
0.1434539407491684,
-0.4108772277832031,
-0.4312398433685303,
-0.050112467259168625,
0.06960002332925797,
-0.23412606120109558,
0.010077336803078651,
-0.170244038105011,
0.34443432092666626,
-0.08424966782331467,
-0.08887948840856552,
-0.310849666595459,
-0.11667628586292267,
-0.07302458584308624,
0.16521748900413513,
0.12396041303873062,
0.12233243882656097,
0.4448602497577667,
-0.11311585456132889,
0.11817445605993271,
-0.39816704392433167,
-0.539910614490509,
0.11041555553674698,
-0.17318952083587646,
0.36967435479164124,
0.08538953214883804,
0.2747529149055481,
-0.06526722759008408,
-0.016356533393263817,
0.01843835972249508,
-0.20345522463321686,
-0.04229182377457619,
-0.3141249716281891,
-0.07594858109951019,
0.09652580320835114,
-0.08527820557355881,
-0.33943772315979004,
-0.17580965161323547,
-0.08716939389705658,
0.46974095702171326,
0.11299160867929459,
0.15229634940624237,
0.23507635295391083,
0.09476540982723236,
0.015434585511684418,
-0.1238912045955658,
-0.021144989877939224,
-0.3138517141342163,
-0.4614567756652832,
0.2333492785692215,
-0.13573633134365082,
-0.44350680708885193,
-0.029107805341482162,
0.09155317395925522,
0.17810410261154175,
-0.2261594980955124,
-0.3716217577457428,
-0.25475001335144043,
-0.4176281988620758,
0.09938915073871613,
0.1467258483171463,
0.1682904213666916,
0.4198363721370697,
-0.048039354383945465,
-0.20373374223709106,
-0.13063186407089233,
-0.229676753282547,
-0.06896518915891647,
0.15449592471122742,
0.12452676892280579,
-0.24861958622932434,
-0.3227536082267761,
0.11434464156627655,
0.915056586265564,
-0.12718404829502106,
0.03330341354012489,
-0.038428690284490585,
-0.0034312463831156492,
0.2881445586681366,
-0.054304927587509155,
-0.18766123056411743,
0.4380382001399994,
-0.2377440184354782,
-0.013957634568214417,
0.279552161693573,
0.2706628441810608,
0.22900758683681488,
0.00039824043051339686,
0.06203138083219528,
-0.4552265703678131,
-0.24273720383644104,
-0.14211764931678772,
0.05537880212068558,
0.01023311261087656,
0.19229359924793243,
-0.09752058237791061,
-0.12007375061511993,
-0.16998392343521118,
0.16814839839935303,
0.220469132065773,
0.22048917412757874,
0.0611269436776638,
-0.2955598533153534,
0.03810248151421547,
-0.6430660486221313,
0.3647666871547699,
-0.18194444477558136,
-0.23964668810367584,
-0.10972801595926285,
-0.20548583567142487,
0.11550907790660858,
-0.030319128185510635,
0.5701807737350464,
-0.15146493911743164,
-0.07344640791416168,
0.013719114474952221,
-0.02910139411687851,
-0.3352382481098175,
0.14642839133739471,
-0.16879475116729736,
-0.05817551165819168,
0.47867295145988464,
0.19870539009571075,
-0.16542400419712067,
-0.25448548793792725,
0.08978504687547684,
0.17460337281227112,
-0.0013532228767871857,
0.23432844877243042,
-0.0881914421916008,
-0.3738434612751007,
-0.17297132313251495,
-0.2486252784729004,
-0.0005547509645111859,
-0.07441388070583344,
-0.18334348499774933,
0.14328652620315552,
0.04032006114721298,
0.016845865175127983,
0.16937057673931122,
-0.025495797395706177,
0.2929743528366089,
0.0588335357606411,
0.08622810244560242,
0.39187297224998474,
0.2154994010925293,
0.06291002780199051,
0.4492220878601074,
-0.03860052302479744,
-0.0804871991276741,
0.07850897312164307,
-0.15237200260162354,
0.0721798986196518,
0.421102374792099,
0.04375183582305908,
-0.03888709098100662,
0.3254603147506714,
0.23814596235752106,
-0.331784725189209,
0.2668030858039856,
-0.031091254204511642,
0.05077224224805832,
-0.12068594992160797,
-0.4809466004371643,
0.5317930579185486,
0.3323584496974945,
-0.33954620361328125,
0.34112924337387085,
0.33440136909484863,
-0.17513175308704376,
0.17916621267795563,
0.33075523376464844,
1.1044726371765137,
-0.23962561786174774,
0.21839261054992676,
0.27138856053352356,
-0.36751678586006165,
0.5915100574493408,
-0.15889717638492584,
0.12155351787805557,
-0.23505379259586334,
-0.15321233868598938,
-0.017821021378040314,
0.028863513842225075,
0.22043558955192566,
-0.12501628696918488,
-0.17212532460689545,
0.29531586170196533,
0.023643968626856804,
-0.05867181345820427,
0.061116885393857956,
0.5449420213699341,
-0.20234940946102142,
-0.2332599014043808,
0.030331552028656006,
0.2792080044746399,
0.024679632857441902,
0.30057719349861145,
-0.04896463826298714,
-0.18859510123729706,
-0.250004380941391,
-0.16837291419506073,
-0.2956949770450592,
0.022244708612561226,
-0.2925339341163635,
-0.16541153192520142,
-0.034094683825969696,
-0.34556514024734497,
-0.03268393501639366,
0.2827166020870209,
0.326595276594162,
0.011117950081825256,
-0.3677639961242676,
0.3616233468055725,
-0.1643996685743332,
0.04911861568689346,
0.23890340328216553,
0.04982617497444153,
0.2165529876947403,
-0.07734425365924835,
-0.058522291481494904,
-0.24733653664588928,
-0.03361853212118149,
-0.11776852607727051,
-0.27821528911590576,
-0.14539560675621033,
-0.18034830689430237,
-0.1917412132024765,
0.03842546045780182,
0.01675860583782196,
-0.08608611673116684,
-0.28525203466415405,
0.2113431841135025,
0.10218770802021027,
0.20834071934223175,
0.0009637889452278614,
0.08761689066886902,
-0.15392190217971802,
-0.3013569414615631,
0.46734482049942017,
0.19775322079658508,
-0.19469434022903442,
0.3502907156944275,
0.2066466510295868,
0.024397453293204308,
-0.3506258726119995,
-0.18574319779872894,
-0.31867489218711853,
-0.3479626476764679,
0.21328352391719818,
-0.18858425319194794,
-0.08669465035200119,
-0.29874393343925476,
0.4482690393924713,
0.1046103686094284,
0.07589229196310043,
0.11900663375854492,
-0.21712619066238403,
-0.058423206210136414,
0.29733651876449585,
-0.2570818364620209,
0.2073877602815628,
-0.07031872123479843,
0.1772552877664566,
-0.047730375081300735,
0.010926805436611176,
-0.47410815954208374,
0.11446408182382584,
0.01713705062866211,
-0.23852568864822388,
0.35693755745887756,
-0.0719134584069252,
0.3655000627040863,
-0.3403908908367157,
0.19268472492694855,
-0.23757143318653107,
-0.161036416888237,
-0.2635546028614044,
-0.11178696900606155,
0.07258671522140503,
-0.06225148215889931,
-0.08501659333705902,
-0.06496427208185196,
0.07516762614250183,
-0.029593437910079956,
-0.03528177738189697,
0.278248131275177,
0.2639964818954468,
0.08750717341899872,
0.12050941586494446,
-0.4345671236515045,
0.15509255230426788,
0.06516879051923752,
-0.0855756551027298,
0.06992374360561371,
0.14932012557983398,
0.05386970937252045,
0.1294628083705902,
0.02407715655863285,
-0.010344025678932667,
0.16732342541217804,
0.12166665494441986,
-0.08647022396326065,
0.15967285633087158,
0.3795132637023926,
0.013469391502439976,
-0.20885179936885834,
0.24684514105319977,
0.41862186789512634,
-0.05029655620455742,
-0.19333873689174652,
-0.21124455332756042,
-0.04238142445683479,
0.3510424792766571,
-0.18979518115520477,
0.011821192689239979,
-0.07554369419813156,
0.01662405952811241,
0.020355528220534325,
0.2811976969242096,
0.26795661449432373,
0.08520226180553436,
0.048386283218860626,
0.25906193256378174,
0.588554322719574,
0.026047488674521446,
0.41866785287857056,
-0.013479608111083508,
-0.038724008947610855,
-0.031065193936228752,
0.2673400044441223,
0.2800252139568329,
0.06785908341407776,
0.06052263826131821,
0.12411011010408401,
-0.04152137041091919,
-0.11501166224479675,
0.15077321231365204,
0.017577772960066795,
-0.3053458333015442,
0.35496848821640015,
0.23495835065841675,
-0.09472431242465973,
0.18087142705917358,
-0.08535179495811462,
0.6152275204658508,
-0.1651926189661026,
-0.26263105869293213,
-0.1313145011663437,
0.19521228969097137,
0.12577560544013977,
-0.1131003350019455,
0.057151343673467636,
-0.2251833975315094,
0.14472630620002747,
-0.009966003708541393,
0.00005410158701124601,
-0.306688517332077,
0.33396273851394653,
-0.11955641955137253,
-0.24092167615890503,
-0.4610394835472107,
0.01942800171673298,
0.0507979616522789,
0.4381590783596039,
0.0339067205786705,
0.13440558314323425,
0.1502237319946289,
-0.10413485765457153,
0.14031322300434113,
0.30330678820610046,
0.30243900418281555,
-0.026798192411661148,
-0.10262086242437363,
0.16786719858646393,
-0.004272402264177799,
-0.15266703069210052,
0.03630420193076134,
-0.022543085739016533,
0.15877121686935425,
-0.14401723444461823,
0.3165236711502075,
0.26963940262794495,
-0.15813028812408447,
0.15107153356075287,
0.061702609062194824,
0.4713745415210724,
-0.24842137098312378,
0.32480597496032715,
-0.2868819832801819,
-0.16456973552703857,
-0.027421290054917336,
-0.008862189017236233,
-0.4613203704357147,
-0.10995730012655258,
-0.17381909489631653,
-0.1194099634885788,
0.16117095947265625,
-0.09613862633705139,
0.1478843092918396,
0.058398038148880005,
0.42965322732925415,
0.4756167531013489,
0.0601961575448513,
-0.12308111786842346,
-0.1693601906299591,
-0.40519624948501587,
-0.21418175101280212,
0.06677840650081635,
-0.00014762175851501524,
-0.1294724941253662,
0.25603094696998596,
0.03944149613380432,
-0.0751810148358345,
0.012517858296632767,
-0.1298634558916092,
-0.29124489426612854,
-0.1712213009595871,
-0.2054768204689026,
0.01740340143442154,
-0.3714544475078583,
0.2298816442489624,
0.08863183856010437,
-0.03775769844651222,
0.17393311858177185,
-0.13483543694019318,
0.08825927972793579,
-0.06561072915792465,
0.08633764088153839,
0.004494091961532831,
-0.21291600167751312,
0.3346937596797943,
0.15693268179893494,
0.06031738966703415,
-0.14782579243183136,
-0.3977348804473877,
-0.20313994586467743,
-0.18295325338840485,
-0.23690004646778107,
0.20226646959781647,
-0.08101645112037659,
0.44069361686706543,
0.027728773653507233,
-0.27901339530944824,
-0.21622763574123383,
0.4099102318286896,
0.2423660308122635,
-0.04967082664370537,
-0.4071410298347473,
0.317388117313385,
-0.05220073089003563,
-0.014954635873436928,
0.04462648928165436,
0.26179641485214233,
-0.09121731668710709,
0.07752887904644012,
-0.362635999917984,
-0.2951001822948456,
0.5989766120910645,
-0.2397187203168869,
-0.01934291608631611,
-0.03180086985230446,
0.3708544373512268,
0.036302052438259125,
-0.07631520926952362,
-0.5933423042297363,
0.2024231255054474,
0.23999467492103577,
0.16329726576805115,
-0.16350670158863068,
0.16743870079517365,
-0.00809513870626688,
-0.14460177719593048,
-0.08835212886333466,
0.49261218309402466,
-0.0399094820022583,
-0.24025526642799377,
0.005329207982867956,
-0.13683563470840454
] |
https://github.com/huggingface/datasets/issues/1713 | Installation using conda | Great! Did you guys have a timeframe in mind for the next release?
Thank you for all the great work in developing this library. | Will a conda package for installing datasets be added to the huggingface conda channel? I have installed transformers using conda and would like to use the datasets library to use some of the scripts in the transformers/examples folder but am unable to do so at the moment as datasets can only be installed using pip and using pip in a conda environment is generally a bad idea in my experience. | 24 | Installation using conda
Will a conda package for installing datasets be added to the huggingface conda channel? I have installed transformers using conda and would like to use the datasets library to use some of the scripts in the transformers/examples folder but am unable to do so at the moment as datasets can only be installed using pip and using pip in a conda environment is generally a bad idea in my experience.
Great! Did you guys have a timeframe in mind for the next release?
Thank you for all the great work in developing this library. | [
-0.053956855088472366,
-0.037658754736185074,
-0.18016183376312256,
0.1761820763349533,
0.1911168396472931,
-0.17411328852176666,
0.16255329549312592,
-0.06701374799013138,
-0.3270973861217499,
-0.2211773693561554,
-0.22946733236312866,
0.0597514808177948,
-0.1889895498752594,
0.5104843974113464,
0.32974013686180115,
-0.2775562107563019,
0.2336808443069458,
0.1860412061214447,
-0.6403379440307617,
-0.09712274372577667,
0.1160152330994606,
0.36199694871902466,
-0.2395428568124771,
-0.15642724931240082,
-0.34901249408721924,
-0.0934232547879219,
-0.13800457119941711,
-0.14151480793952942,
-0.16762138903141022,
-0.24645256996154785,
0.5433066487312317,
0.19907331466674805,
0.21373048424720764,
0.6924841403961182,
-0.00011733338033081964,
-0.2475263476371765,
0.24809224903583527,
-0.0030496169347316027,
-0.2502143383026123,
-0.039988089352846146,
-0.22816084325313568,
-0.3681676983833313,
0.03778328374028206,
0.05284927785396576,
-0.01986398734152317,
0.06767193973064423,
-0.05762471631169319,
-0.026122037321329117,
0.40121957659721375,
-0.08574192970991135,
0.1677255928516388,
0.3654806315898895,
0.2736264765262604,
-0.09472505003213882,
-0.16737887263298035,
0.4338350296020508,
-0.3844279944896698,
-0.17025543749332428,
0.2569201588630676,
0.08088131248950958,
0.443273663520813,
0.06679637730121613,
0.04787817969918251,
-0.2124153971672058,
0.3321673572063446,
0.1987413465976715,
-0.2067468911409378,
-0.32781821489334106,
-0.23501898348331451,
0.25324007868766785,
0.8008556365966797,
-0.20844395458698273,
-0.6760145425796509,
-0.20625576376914978,
-0.1349034160375595,
-0.0220964178442955,
-0.08453823626041412,
-0.12564831972122192,
-0.12716159224510193,
0.15946142375469208,
-0.32820528745651245,
-0.602995753288269,
-0.32839328050613403,
0.02343064174056053,
-0.09058722853660583,
0.5560168027877808,
-0.14072804152965546,
-0.007335213012993336,
0.20141543447971344,
-0.0811844915151596,
0.3116421699523926,
0.011775828897953033,
-0.0864333063364029,
0.29566243290901184,
-0.07357001304626465,
-0.3632638454437256,
-0.17125119268894196,
0.33239370584487915,
0.29966145753860474,
0.2440691441297531,
-0.37433338165283203,
-0.08309227973222733,
-0.16688118875026703,
-0.1910725086927414,
0.3662341237068176,
0.13677966594696045,
0.013464359566569328,
0.3916068971157074,
0.2731015682220459,
-0.08278253674507141,
0.5417616963386536,
-0.08683575689792633,
0.038928139954805374,
0.053568966686725616,
-0.33000481128692627,
-0.3209068179130554,
-0.03402987867593765,
-0.3715232312679291,
0.18572542071342468,
-0.3058178722858429,
0.6140987873077393,
-0.30563539266586304,
0.01812645234167576,
0.24750053882598877,
-0.16498330235481262,
0.2572256922721863,
0.0021930199582129717,
0.19156862795352936,
0.2798495888710022,
0.20189598202705383,
-0.07062505930662155,
-0.054399292916059494,
-0.14380651712417603,
0.10625611245632172,
0.24309399724006653,
-0.18900826573371887,
0.11644266545772552,
-0.18185436725616455,
0.4081997275352478,
0.3598955571651459,
-0.09979194402694702,
0.18337035179138184,
-0.10327416658401489,
0.4986628592014313,
-0.4198854863643646,
0.15442197024822235,
-0.32254594564437866,
0.1515451967716217,
-0.2846418619155884,
0.06176852062344551,
0.1592710167169571,
-0.011684998869895935,
-0.2567640244960785,
0.004603235051035881,
-0.220441535115242,
-0.26022812724113464,
-0.2112767994403839,
-0.046494897454977036,
-0.2655157446861267,
-0.05556650087237358,
-0.07407918572425842,
0.2384798377752304,
0.20928342640399933,
-0.06309378892183304,
0.12369345128536224,
0.2759690284729004,
-0.3500552475452423,
-0.28525274991989136,
0.15424884855747223,
-0.40825358033180237,
-0.17956510186195374,
0.10583734512329102,
-0.11412391811609268,
-0.08694467693567276,
-0.05793331563472748,
-0.34391966462135315,
0.4250659644603729,
-0.5070241689682007,
-0.1991412490606308,
0.01302630640566349,
0.08352850377559662,
0.12365645915269852,
-0.030774232000112534,
0.2835633158683777,
0.29912301898002625,
-0.05797804147005081,
-0.1886730045080185,
0.3549754321575165,
0.07314857095479965,
-0.3144319951534271,
0.011868031695485115,
-0.2986496090888977,
0.12097440659999847,
0.19033192098140717,
0.2920544445514679,
0.29320916533470154,
-0.09729775786399841,
-0.030468584969639778,
0.19069617986679077,
0.1425541788339615,
0.09835891425609589,
0.21626445651054382,
0.44234588742256165,
0.3299352526664734,
0.19884644448757172,
-0.19869178533554077,
-0.4077664315700531,
0.04728012531995773,
0.12829817831516266,
0.0997161716222763,
-0.0727265477180481,
-0.18812131881713867,
0.021818894892930984,
0.14005808532238007,
0.04494001343846321,
-0.19369594752788544,
-0.04727815091609955,
-0.19081023335456848,
0.4457252025604248,
-0.17926040291786194,
-0.4518479108810425,
0.8676211833953857,
0.45967501401901245,
0.3349500596523285,
-0.15564505755901337,
0.2536650002002716,
-0.1142607182264328,
0.027368448674678802,
-0.10458336025476456,
0.20584188401699066,
-0.07777487486600876,
-0.34909576177597046,
0.1965988129377365,
0.17905256152153015,
-0.11737565696239471,
-0.07381178438663483,
0.34858623147010803,
0.2091696560382843,
0.40616852045059204,
-0.03180811181664467,
0.2890361249446869,
-0.20300626754760742,
-0.007736301515251398,
0.10844443738460541,
-0.15071652829647064,
-0.12622536718845367,
-0.20827335119247437,
-0.05732692405581474,
0.10942056030035019,
0.13365042209625244,
0.34177958965301514,
0.12572678923606873,
-0.28993865847587585,
0.00267224945127964,
-0.04033563658595085,
-0.003916793968528509,
0.1421409547328949,
-0.049362663179636,
-0.11594045162200928,
-0.1446521133184433,
0.06481388211250305,
-0.26779380440711975,
-0.12726633250713348,
0.24685470759868622,
-0.10778415948152542,
0.37999725341796875,
0.3027242124080658,
0.20171025395393372,
0.3015308082103729,
0.15533447265625,
0.06416627764701843,
-0.1555907279253006,
-0.06441669166088104,
-0.004702727776020765,
0.01923791877925396,
0.1764003336429596,
0.026912871748209,
-0.1974039077758789,
-0.26201751828193665,
0.12942372262477875,
0.00048040132969617844,
-0.2759348154067993,
-0.3955470323562622,
-0.1232316642999649,
0.03886415436863899,
-0.08891922980546951,
-0.014214709401130676,
-0.025791572406888008,
-0.1741258203983307,
-0.4335152804851532,
-0.28506895899772644,
0.061809223145246506,
-0.01284908875823021,
-0.21157222986221313,
0.3294835090637207,
0.19632098078727722,
-0.09359035640954971,
0.40066879987716675,
-0.28074029088020325,
-0.1898593306541443,
-0.23903928697109222,
0.2319543957710266,
-0.032419826835393906,
0.11552409082651138,
0.06650810688734055,
-0.15641994774341583,
0.18686293065547943,
-0.050790440291166306,
0.3589324653148651,
-0.1714441329240799,
-0.5654639005661011,
0.11696355044841766,
-0.16951172053813934,
0.3379513621330261,
-0.022903895005583763,
0.15326030552387238,
0.11531434208154678,
-0.13321714103221893,
-0.09623479843139648,
-0.17141717672348022,
0.08745714277029037,
-0.32370659708976746,
-0.07885859906673431,
-0.28404438495635986,
-0.17431814968585968,
-0.186038076877594,
-0.4251677095890045,
-0.1508769989013672,
0.6054795980453491,
0.19387473165988922,
-0.19332163035869598,
0.07012532651424408,
0.0246517863124609,
0.02973853051662445,
-0.2609935402870178,
0.22174197435379028,
0.02114158123731613,
-0.2042771428823471,
0.47792550921440125,
-0.17091229557991028,
-0.22929199039936066,
0.004092390649020672,
-0.08357691019773483,
0.33451613783836365,
-0.04631456360220909,
-0.3969551622867584,
0.138885036110878,
0.004212930798530579,
0.04152623936533928,
0.18890763819217682,
0.24914947152137756,
0.5477531552314758,
0.059366267174482346,
0.1654086410999298,
-0.013544540852308273,
-0.3746866285800934,
-0.23856616020202637,
0.01326905470341444,
0.23138427734375,
-0.01855066791176796,
0.020250607281923294,
-0.2800440490245819,
0.36752021312713623,
0.2129456102848053,
-0.0010245228186249733,
0.03910984471440315,
0.3218260705471039,
0.5508814454078674,
0.08006258308887482,
-0.21013714373111725,
-0.004351605195552111,
0.09927080571651459,
0.11643286049365997,
-0.052577655762434006,
0.3405480682849884,
-0.22527357935905457,
-0.5008484125137329,
0.12658663094043732,
-0.24867063760757446,
0.09931813180446625,
-0.143222376704216,
0.05972326919436455,
0.1643359512090683,
0.05053534358739853,
-0.012432795017957687,
0.014908879064023495,
0.04440385475754738,
0.027314461767673492,
0.2939181327819824,
0.15085944533348083,
-0.01818307489156723,
-0.29385751485824585,
-0.036775875836610794,
-0.42897364497184753,
0.05414478853344917,
-0.12248672544956207,
0.03307078033685684,
-0.058218784630298615,
0.0772218257188797,
-0.06724245846271515,
0.009362338110804558,
0.8861732482910156,
0.03709679841995239,
-0.6259451508522034,
-0.10340972244739532,
-0.045387737452983856,
-0.2085832953453064,
0.12881781160831451,
-0.0719757080078125,
-0.09697248041629791,
0.22364753484725952,
0.3609752058982849,
-0.1424887627363205,
-0.23810391128063202,
0.35527127981185913,
0.101385697722435,
-0.04923726245760918,
-0.2747232913970947,
-0.07550809532403946,
-0.12563392519950867,
-0.20780763030052185,
-0.14243005216121674,
-0.043145351111888885,
-0.17830389738082886,
-0.13769787549972534,
-0.3707945942878723,
-0.00912890862673521,
-0.025817474350333214,
0.20595087110996246,
0.05827491357922554,
0.1896786093711853,
-0.1677899807691574,
0.3184923827648163,
0.49297773838043213,
0.008496333844959736,
0.03502555191516876,
0.12881284952163696,
-0.19332095980644226,
-0.15487957000732422,
0.03420396149158478,
0.05202748626470566,
0.43945810198783875,
0.24273459613323212,
0.004582692869007587,
-0.29555535316467285,
0.022340698167681694,
0.07676264643669128,
-0.13495776057243347,
-0.3483431935310364,
0.3332133889198303,
0.2800484895706177,
-0.5669633746147156,
-0.4329419434070587,
0.3519960939884186,
0.30974555015563965,
-0.04463866353034973,
0.4278448224067688,
0.4177302122116089,
-0.04801352322101593,
-0.02204328402876854,
-0.020461125299334526,
1.0245962142944336,
-0.3411807119846344,
0.22250303626060486,
-0.052675820887088776,
-0.2719838321208954,
0.5038925409317017,
-0.4234580993652344,
-0.048569951206445694,
-0.17727844417095184,
-0.033551689237356186,
-0.23660601675510406,
-0.19371256232261658,
0.3874117434024811,
0.18292206525802612,
-0.45593637228012085,
0.35848045349121094,
-0.01750168949365616,
0.0055544269271194935,
-0.0883878692984581,
0.19981180131435394,
0.07866726815700531,
-0.3554798662662506,
-0.1525534987449646,
0.14924971759319305,
0.1797526478767395,
0.39670053124427795,
-0.32279065251350403,
-0.0522867850959301,
-0.20294970273971558,
-0.15124595165252686,
-0.24409101903438568,
0.014850348234176636,
0.23281148076057434,
0.030545899644494057,
0.5970540046691895,
-0.07765776664018631,
0.12343104928731918,
0.34570810198783875,
0.42432406544685364,
0.17357587814331055,
-0.3065689206123352,
0.2344338297843933,
-0.37201619148254395,
-0.15907545387744904,
0.007473490200936794,
0.20299676060676575,
0.05714043602347374,
-0.15797485411167145,
-0.25444480776786804,
-0.0921691507101059,
-0.08920588344335556,
-0.28495121002197266,
-0.008586544543504715,
0.021522436290979385,
0.06550160050392151,
-0.17759370803833008,
0.13319481909275055,
0.37831804156303406,
0.1634022444486618,
0.04404003545641899,
0.14530803263187408,
0.431988000869751,
-0.16457128524780273,
0.45808160305023193,
0.21185506880283356,
0.06540218740701675,
-0.2880129814147949,
0.16928958892822266,
0.06012903153896332,
-0.5256130695343018,
-0.062050141394138336,
0.05092255771160126,
-0.4061180055141449,
-0.14868000149726868,
-0.2537130117416382,
-0.1426841914653778,
-0.16997581720352173,
-0.18926793336868286,
0.15665379166603088,
-0.24827991425991058,
-0.13022500276565552,
0.09563416987657547,
0.185977503657341,
-0.21490058302879333,
-0.3124375343322754,
-0.16371791064739227,
-0.3465152680873871,
0.29901424050331116,
-0.08153817802667618,
0.36167460680007935,
0.027761513367295265,
0.07515514642000198,
0.30915749073028564,
-0.012908604927361012,
-0.20139335095882416,
-0.1603124737739563,
0.11591357737779617,
-0.12459224462509155,
0.4493318200111389,
0.0799320787191391,
0.20865730941295624,
-0.08969134092330933,
-0.004908479284495115,
0.05382981523871422,
-0.14561787247657776,
-0.052029043436050415,
-0.06609712541103363,
0.15190023183822632,
0.07791055738925934,
-0.28375244140625,
-0.09837449342012405,
0.015778586268424988,
-0.1296204775571823,
0.03329310938715935,
0.04581340774893761,
0.05022035166621208,
0.1737290918827057,
0.09624137729406357,
0.24429084360599518,
-0.021837051957845688,
-0.05500054359436035,
0.2851758301258087,
0.49283498525619507,
0.11179718375205994,
0.3702400326728821,
0.2209513783454895,
-0.031852979212999344,
-0.01802230253815651,
-0.06381917744874954,
0.32792919874191284,
0.13350683450698853,
0.10077346116304398,
0.34535765647888184,
-0.14378154277801514,
0.1954505890607834,
0.2943044900894165,
0.40655717253685,
0.15747113525867462,
0.05006096884608269,
0.13222995400428772,
0.37683770060539246,
0.11300599575042725,
-0.1438961625099182,
-0.40097805857658386,
0.05341476574540138,
0.2222619354724884,
-0.21587969362735748,
0.3926503658294678,
0.05793289840221405,
0.12950535118579865,
0.6797938942909241,
0.19437842071056366,
0.22262656688690186,
-0.09242747724056244,
0.5110802054405212,
0.1530335396528244,
-0.012219893746078014,
0.021814368665218353,
0.3314879536628723,
0.37037742137908936,
0.043436311185359955,
0.31975501775741577,
-0.3981620669364929,
0.005864727310836315,
-0.30193519592285156,
0.24942812323570251,
0.1640138030052185,
-0.09501197189092636,
-0.12127511203289032,
-0.24907740950584412,
0.1495937705039978,
-0.10245058685541153,
-0.09663080424070358,
0.3726487457752228,
-0.20067022740840912,
-0.13571299612522125,
-0.4122929871082306,
0.02260829322040081,
-0.13762454688549042,
-0.09671749174594879,
0.5791198015213013,
-0.17890170216560364,
0.2259742021560669,
-0.13297365605831146,
0.14260408282279968,
-0.34918084740638733,
0.37587276101112366,
-0.05313730239868164,
0.16821971535682678,
-0.17732073366641998,
0.3210994303226471,
0.032514575868844986,
-0.0688769668340683,
0.23822134733200073,
0.23181277513504028,
0.010833367705345154,
-0.04224361106753349,
-0.17970533668994904,
0.18466180562973022,
0.20922431349754333,
0.027041833847761154,
0.20103608071804047,
0.20890288054943085,
-0.20733284950256348,
-0.039123088121414185,
0.001375895575620234,
0.4193410277366638,
0.002167267259210348,
0.11578056961297989,
-0.12552745640277863,
0.12153828889131546,
-0.06403309106826782,
0.0390593521296978,
-0.13131053745746613,
0.2916080951690674,
-0.37926214933395386,
0.4246208369731903,
-0.19831988215446472,
-0.24849078059196472,
-0.2704584300518036,
0.0828193873167038,
-0.39375725388526917,
-0.007676543202251196,
0.30372685194015503,
-0.2559802532196045,
-0.1656372845172882,
-0.11141286045312881,
0.02560996823012829,
0.1360265463590622,
0.2756672501564026,
0.04751146212220192,
0.6115579009056091,
-0.05797455832362175,
-0.3320985734462738,
-0.3333335816860199,
-0.21722738444805145,
0.04634024575352669,
0.25318676233291626,
-0.1766963005065918,
-0.0611165426671505,
-0.03393213823437691,
0.19577448070049286,
0.12870444357395172,
-0.2622010111808777,
0.05663461238145828,
-0.36259371042251587,
-0.15610575675964355,
0.07386370748281479,
-0.1369575709104538,
0.34649500250816345,
0.13734355568885803,
-0.08832316100597382,
-0.07585164159536362,
0.08456190675497055,
-0.17943713068962097,
-0.09959758073091507,
0.26753124594688416,
-0.09159865975379944,
-0.1305021196603775,
0.19731000065803528,
-0.1003042459487915,
0.44057461619377136,
0.1412246823310852,
-0.13197578489780426,
-0.15597403049468994,
-0.4620080888271332,
0.015122522599995136,
-0.03263848274946213,
0.03458357974886894,
-0.0583522655069828,
-0.45776382088661194,
-0.19613447785377502,
-0.1882944107055664,
-0.007361836265772581,
-0.013591625727713108,
0.02468458004295826,
-0.1915992796421051,
-0.0696008950471878,
-0.21554867923259735,
-0.022858068346977234,
0.18137119710445404,
0.23163390159606934,
-0.14429064095020294,
0.010661439970135689,
-0.09160750359296799,
0.17525248229503632,
0.5658099055290222,
0.005551950074732304,
-0.1327788531780243,
-0.09998665750026703,
-0.37898802757263184,
0.044354960322380066,
-0.35483166575431824,
-0.7771003246307373,
0.23197060823440552,
0.07482285797595978,
0.0685371533036232,
0.023520855233073235,
0.3077086806297302,
0.26243048906326294,
-0.20737355947494507,
-0.1677977740764618,
0.5492644906044006,
-0.05816834419965744,
0.025723254308104515,
0.1097702831029892,
0.04908795654773712
] |
https://github.com/huggingface/datasets/issues/1713 | Installation using conda | I think we can have `datasets` on conda by next week. Will see what I can do! | Will a conda package for installing datasets be added to the huggingface conda channel? I have installed transformers using conda and would like to use the datasets library to use some of the scripts in the transformers/examples folder but am unable to do so at the moment as datasets can only be installed using pip and using pip in a conda environment is generally a bad idea in my experience. | 17 | Installation using conda
Will a conda package for installing datasets be added to the huggingface conda channel? I have installed transformers using conda and would like to use the datasets library to use some of the scripts in the transformers/examples folder but am unable to do so at the moment as datasets can only be installed using pip and using pip in a conda environment is generally a bad idea in my experience.
I think we can have `datasets` on conda by next week. Will see what I can do! | [
-0.014953937381505966,
-0.042613446712493896,
-0.12364756315946579,
0.15626998245716095,
0.25407880544662476,
-0.009233050048351288,
0.12768612802028656,
-0.13031846284866333,
-0.29622799158096313,
-0.21112656593322754,
-0.2347901612520218,
0.08092198520898819,
-0.14033789932727814,
0.6276570558547974,
0.4649844467639923,
-0.18562906980514526,
0.19984829425811768,
0.22955185174942017,
-0.5902292728424072,
-0.06250715255737305,
0.13728435337543488,
0.26348116993904114,
-0.18853260576725006,
-0.19608449935913086,
-0.3598083257675171,
-0.05989221855998039,
-0.11354672163724899,
-0.1968572735786438,
-0.03245355188846588,
-0.26042717695236206,
0.5524129271507263,
0.15946625173091888,
0.24787160754203796,
0.5726001262664795,
-0.00011832702875835821,
-0.07961781322956085,
0.17541097104549408,
-0.06487784534692764,
-0.35437658429145813,
0.02480218932032585,
-0.34008824825286865,
-0.38283562660217285,
-0.01464762818068266,
0.0758214220404625,
-0.000011567322871997021,
0.04361775517463684,
0.005932519678026438,
-0.08159634470939636,
0.32285574078559875,
-0.013468318618834019,
0.16261173784732819,
0.39923182129859924,
0.20947915315628052,
-0.10163632035255432,
-0.1831057071685791,
0.4471345841884613,
-0.30127182602882385,
-0.11411900818347931,
0.10770523548126221,
0.0791417732834816,
0.570408046245575,
0.02340959571301937,
0.02213459089398384,
-0.15810754895210266,
0.17407333850860596,
0.21977679431438446,
-0.227829247713089,
-0.2767654061317444,
-0.16181053221225739,
0.23514199256896973,
0.7575780749320984,
-0.32520291209220886,
-0.6390733122825623,
-0.2428075522184372,
0.005580157041549683,
-0.012707016430795193,
-0.19008973240852356,
-0.059819698333740234,
-0.17367064952850342,
0.24468715488910675,
-0.24710102379322052,
-0.6649020314216614,
-0.22451305389404297,
0.10409831255674362,
-0.06167243793606758,
0.4285612106323242,
-0.11064496636390686,
0.032135773450136185,
0.20540162920951843,
0.03258593752980232,
0.2649049162864685,
-0.08499430865049362,
-0.06784088909626007,
0.1405925452709198,
-0.08552007377147675,
-0.2367234230041504,
-0.22319060564041138,
0.3559321165084839,
0.32526344060897827,
0.16999377310276031,
-0.3703603148460388,
-0.16425295174121857,
-0.20217357575893402,
-0.181293785572052,
0.24017716944217682,
0.08965695649385452,
0.08045292645692825,
0.48210597038269043,
0.13839887082576752,
-0.12845784425735474,
0.4942333996295929,
-0.0622054785490036,
-0.025639761239290237,
0.08399951457977295,
-0.20749960839748383,
-0.3596905469894409,
-0.1000823974609375,
-0.2758502960205078,
0.050233080983161926,
-0.3096512258052826,
0.5556651949882507,
-0.14987483620643616,
0.12061192840337753,
0.21451696753501892,
-0.013904431834816933,
0.11382077634334564,
-0.011996417306363583,
0.30750706791877747,
0.3615593910217285,
0.033042822033166885,
-0.07565035670995712,
-0.12242172658443451,
-0.03813879191875458,
0.16365891695022583,
0.26130613684654236,
-0.2416059821844101,
0.1432584524154663,
-0.2239936739206314,
0.3553834557533264,
0.33232349157333374,
-0.061695873737335205,
0.2217133790254593,
-0.17989502847194672,
0.49006298184394836,
-0.37399813532829285,
0.2030831277370453,
-0.24094940721988678,
0.20284831523895264,
-0.2840319573879242,
0.010191675275564194,
0.04494586959481239,
-0.03740204498171806,
-0.1617482602596283,
-0.030419375747442245,
-0.1271844357252121,
-0.3448385000228882,
-0.3084508180618286,
-0.05534521862864494,
-0.28097018599510193,
-0.148877814412117,
-0.06351173669099808,
0.24922814965248108,
0.16576415300369263,
-0.033795323222875595,
0.18683120608329773,
0.3834117352962494,
-0.41517704725265503,
-0.3715120851993561,
0.10711796581745148,
-0.4512653052806854,
-0.125345841050148,
0.019636377692222595,
-0.04848024621605873,
-0.037042535841464996,
-0.12077109515666962,
-0.3446335792541504,
0.43034428358078003,
-0.4813029170036316,
-0.2709692120552063,
-0.03501046448945999,
0.045731112360954285,
0.19717906415462494,
-0.11975225806236267,
0.31253620982170105,
0.23280273377895355,
0.03416314348578453,
-0.030303122475743294,
0.34532132744789124,
0.007070467341691256,
-0.3574680984020233,
0.18858672678470612,
-0.21123731136322021,
0.12069635838270187,
0.24602726101875305,
0.22266408801078796,
0.31942489743232727,
-0.1441023200750351,
-0.13592007756233215,
0.10346918553113937,
0.13624006509780884,
0.1348314732313156,
0.24351893365383148,
0.37391170859336853,
0.3233315944671631,
0.16270270943641663,
-0.2956456243991852,
-0.42942965030670166,
0.06841005384922028,
0.1442982703447342,
0.021106651052832603,
-0.15362298488616943,
-0.22095830738544464,
-0.035228610038757324,
0.16795316338539124,
0.07123938202857971,
-0.14382456243038177,
-0.06198669970035553,
-0.1933826357126236,
0.48182615637779236,
-0.18699660897254944,
-0.3830258250236511,
0.9310396909713745,
0.4141562581062317,
0.3214595317840576,
0.033568013459444046,
0.2666035592556,
-0.06733779609203339,
0.0461881048977375,
-0.03735030069947243,
0.25094014406204224,
-0.07178192585706711,
-0.26592910289764404,
0.21645918488502502,
0.16635091602802277,
-0.17066341638565063,
-0.148429274559021,
0.38068637251853943,
0.1441081017255783,
0.21869543194770813,
0.01651051454246044,
0.16519275307655334,
-0.17839784920215607,
-0.08535067737102509,
0.07035817205905914,
-0.08032500743865967,
-0.24336695671081543,
-0.11899636685848236,
-0.05555158108472824,
0.06456904858350754,
0.29351699352264404,
0.3672555983066559,
0.22799067199230194,
-0.18936266005039215,
-0.16065797209739685,
-0.09337836503982544,
-0.017839251086115837,
0.22252926230430603,
-0.034042347222566605,
-0.11807495355606079,
-0.17977187037467957,
-0.055329982191324234,
-0.28796911239624023,
0.011368157342076302,
0.30017611384391785,
-0.24511632323265076,
0.5096585750579834,
0.29876843094825745,
0.22402042150497437,
0.3043924868106842,
0.21227945387363434,
0.10095708072185516,
-0.20464172959327698,
-0.07674540579319,
-0.006380803417414427,
-0.025397462770342827,
0.17296746373176575,
0.05678200721740723,
-0.2454533725976944,
-0.24575679004192352,
0.050412192940711975,
0.027561470866203308,
-0.29380524158477783,
-0.384732723236084,
-0.09107793867588043,
-0.10327771306037903,
-0.10198038816452026,
-0.17785212397575378,
-0.0333457887172699,
-0.21135348081588745,
-0.29851049184799194,
-0.17746497690677643,
0.09045756608247757,
-0.027546465396881104,
-0.22836712002754211,
0.30749496817588806,
0.17810623347759247,
-0.18511514365673065,
0.4231058359146118,
-0.2911994755268097,
-0.32127130031585693,
-0.12361466884613037,
0.2300419807434082,
-0.07255914807319641,
0.08760660886764526,
0.06453567743301392,
-0.12757448852062225,
0.13659781217575073,
-0.14871446788311005,
0.42953380942344666,
-0.2195645123720169,
-0.46382901072502136,
0.11576924473047256,
-0.12114547193050385,
0.3696663975715637,
-0.051805529743433,
0.17170755565166473,
0.07283824682235718,
-0.05471670255064964,
-0.03720569983124733,
-0.0015679498901590705,
0.15163563191890717,
-0.23170116543769836,
0.0019123881356790662,
-0.30086079239845276,
-0.20507410168647766,
-0.10112160444259644,
-0.5442740321159363,
-0.10781858116388321,
0.5183219313621521,
0.13086627423763275,
-0.2203020453453064,
-0.060864146798849106,
0.04152723774313927,
0.06096603721380234,
-0.2225181758403778,
0.2633155286312103,
0.05442938581109047,
-0.14337168633937836,
0.5334439873695374,
-0.13558106124401093,
-0.18882107734680176,
-0.0515730157494545,
-0.1765880286693573,
0.3594609797000885,
0.0756077915430069,
-0.42089444398880005,
0.20935793220996857,
0.07040180265903473,
0.11922960728406906,
0.18452110886573792,
0.18985244631767273,
0.5759534239768982,
0.03687868267297745,
0.2318338304758072,
-0.03349456563591957,
-0.35715728998184204,
-0.1830795258283615,
-0.06637122482061386,
0.20510776340961456,
-0.07453066110610962,
0.07474195212125778,
-0.32674872875213623,
0.28768429160118103,
0.18678420782089233,
-0.05315482243895531,
0.10467074066400528,
0.21026182174682617,
0.6634017825126648,
0.12464261800050735,
-0.19615978002548218,
-0.07093248516321182,
0.10211415588855743,
0.13746055960655212,
-0.08298683911561966,
0.34839972853660583,
-0.1684516817331314,
-0.4113774299621582,
0.06303533911705017,
-0.25377675890922546,
0.11282225698232651,
-0.19116464257240295,
-0.00008154994429787621,
0.19220365583896637,
0.06698351353406906,
-0.07011149823665619,
-0.06747712194919586,
0.05279659479856491,
-0.01631181873381138,
0.32884645462036133,
0.07690248638391495,
-0.03154262155294418,
-0.3007465898990631,
-0.10233189910650253,
-0.37688153982162476,
0.012738673016428947,
-0.0685325562953949,
0.18786469101905823,
-0.136652871966362,
0.17297013103961945,
-0.13718490302562714,
0.1110711321234703,
0.8732083439826965,
-0.060815032571554184,
-0.6852090954780579,
-0.21193595230579376,
0.12073169648647308,
-0.3259774446487427,
0.0769195556640625,
-0.054521117359399796,
-0.0772712379693985,
0.15029826760292053,
0.3744639754295349,
-0.2502133250236511,
-0.1153741255402565,
0.3510659337043762,
0.15230900049209595,
-0.031096242368221283,
-0.31219589710235596,
-0.08447255194187164,
-0.1266288161277771,
-0.14680646359920502,
-0.16615597903728485,
-0.060656704008579254,
-0.2059597223997116,
-0.06257586181163788,
-0.38698506355285645,
-0.07855457067489624,
0.019412539899349213,
0.28171083331108093,
0.06504905968904495,
0.1591903567314148,
-0.08884485810995102,
0.31045714020729065,
0.40424108505249023,
0.007245406974107027,
0.15043234825134277,
0.16849954426288605,
-0.14282208681106567,
-0.29788604378700256,
-0.10263148695230484,
0.05005456879734993,
0.44981494545936584,
0.015661999583244324,
-0.0586884468793869,
-0.2625074088573456,
0.03500162437558174,
0.003744774730876088,
-0.14597345888614655,
-0.2563110888004303,
0.35638198256492615,
0.3056093454360962,
-0.5959277153015137,
-0.4213731586933136,
0.40661126375198364,
0.3207864761352539,
-0.03493596985936165,
0.3828686475753784,
0.39807718992233276,
-0.09528733044862747,
-0.13339972496032715,
-0.11306006461381912,
0.7541908621788025,
-0.3667333722114563,
0.29545170068740845,
0.037113312631845474,
-0.2931683361530304,
0.5418286919593811,
-0.3917776942253113,
-0.056568145751953125,
0.012272575870156288,
-0.09468556940555573,
-0.23481230437755585,
-0.11592872440814972,
0.29002508521080017,
0.3145035207271576,
-0.43393564224243164,
0.39822450280189514,
-0.08986148238182068,
0.05778535082936287,
-0.003834400326013565,
0.06130014359951019,
0.16514751315116882,
-0.3159346580505371,
-0.08554471284151077,
0.13211505115032196,
0.13463875651359558,
0.4040127396583557,
-0.33010807633399963,
0.05015130341053009,
-0.24125167727470398,
-0.14610536396503448,
-0.25972992181777954,
0.04205334559082985,
0.19503502547740936,
0.08091673254966736,
0.6092463135719299,
-0.00783094298094511,
0.042281199246644974,
0.4076487720012665,
0.3599240481853485,
0.13512344658374786,
-0.3579592704772949,
0.16330063343048096,
-0.3922888934612274,
-0.16849078238010406,
0.054959241300821304,
0.21801602840423584,
-0.009659823961555958,
-0.05501526966691017,
-0.3342307209968567,
0.0008062052074819803,
-0.029492277652025223,
-0.268189400434494,
0.05399215593934059,
0.023907814174890518,
0.0236015897244215,
-0.11694840341806412,
-0.016598083078861237,
0.42512550950050354,
0.2843793034553528,
0.02538846619427204,
0.104901522397995,
0.2831368148326874,
-0.10612587630748749,
0.39617130160331726,
0.15564517676830292,
0.08992636948823929,
-0.30064740777015686,
0.16091468930244446,
0.035972341895103455,
-0.4082324206829071,
0.051607925444841385,
-0.04232985898852348,
-0.3699822723865509,
-0.12155745923519135,
-0.2851472496986389,
-0.15963830053806305,
-0.04467044770717621,
-0.2476646900177002,
0.1840987205505371,
-0.2189016193151474,
-0.22160659730434418,
-0.11381129175424576,
0.13858500123023987,
-0.2929531931877136,
-0.2962227165699005,
-0.2043326199054718,
-0.3674983084201813,
0.2221280038356781,
-0.06788919121026993,
0.29099780321121216,
0.08430565893650055,
0.15161541104316711,
0.17190444469451904,
0.013942093588411808,
-0.13818739354610443,
-0.21023860573768616,
0.0888931080698967,
-0.144010528922081,
0.5395702123641968,
0.278891384601593,
0.25114914774894714,
-0.07778363674879074,
-0.006312052719295025,
-0.04436260461807251,
0.0527859628200531,
-0.010928817093372345,
0.034565266221761703,
0.15278522670269012,
0.08178546279668808,
-0.2535548210144043,
-0.04044507071375847,
-0.009140955284237862,
-0.12373731285333633,
-0.08650223165750504,
0.0515378937125206,
0.06206771731376648,
0.14881698787212372,
0.10538992285728455,
0.18229816854000092,
0.0029109418392181396,
-0.11663521826267242,
0.3144993484020233,
0.37943392992019653,
0.037079907953739166,
0.29529550671577454,
0.1985401064157486,
-0.0022335972171276808,
0.07928159087896347,
-0.11642274260520935,
0.36072292923927307,
0.20533433556556702,
0.077961266040802,
0.3609718978404999,
-0.15400582551956177,
0.26336345076560974,
0.3500869572162628,
0.20618771016597748,
0.016716212034225464,
0.05208682641386986,
0.16771288216114044,
0.46072056889533997,
0.0702989250421524,
-0.14475548267364502,
-0.38502275943756104,
0.21373958885669708,
0.28929364681243896,
-0.1552707701921463,
0.4751918911933899,
-0.0596182718873024,
0.17945273220539093,
0.5779334306716919,
0.1542573720216751,
0.10144499689340591,
0.005223236512392759,
0.5116180777549744,
0.14666549861431122,
0.19217005372047424,
0.09614955633878708,
0.266185462474823,
0.2873873710632324,
0.040882986038923264,
0.2661753296852112,
-0.46697893738746643,
0.010626861825585365,
-0.3258076608181,
0.1498449444770813,
0.19355787336826324,
-0.16264519095420837,
-0.17305977642536163,
-0.22166502475738525,
0.24434782564640045,
-0.0009262533858418465,
-0.13467086851596832,
0.4199359118938446,
-0.24466638267040253,
-0.08258093893527985,
-0.4358352720737457,
-0.027646571397781372,
-0.18793447315692902,
-0.11622800678014755,
0.5522986650466919,
-0.15286725759506226,
0.29512885212898254,
-0.12902551889419556,
0.28247231245040894,
-0.4773634970188141,
0.33762863278388977,
-0.11060268431901932,
0.12528552114963531,
-0.15944504737854004,
0.3557978868484497,
0.15888944268226624,
-0.15235941112041473,
0.2873932719230652,
0.12300388514995575,
-0.07856536656618118,
-0.07966878265142441,
-0.023622235283255577,
0.16023343801498413,
0.18592479825019836,
0.06332620233297348,
0.3489513397216797,
0.151974156498909,
-0.14368587732315063,
-0.0284349974244833,
-0.08212941139936447,
0.30141305923461914,
-0.040459614247083664,
0.12270472198724747,
-0.14538425207138062,
0.13888342678546906,
-0.032817039638757706,
-0.055873140692710876,
-0.033165208995342255,
0.35009515285491943,
-0.35571256279945374,
0.30763086676597595,
-0.3255293369293213,
-0.20901136100292206,
-0.2750297486782074,
0.08530598878860474,
-0.2894617021083832,
0.12061746418476105,
0.38486984372138977,
-0.24470610916614532,
-0.1913403570652008,
-0.05276593193411827,
0.014120323583483696,
0.06586582213640213,
0.30584365129470825,
0.08390600234270096,
0.4952220618724823,
-0.04732974246144295,
-0.23409642279148102,
-0.3490588963031769,
-0.2356700599193573,
-0.15908272564411163,
0.0272623710334301,
-0.13022693991661072,
-0.14999079704284668,
-0.011166668497025967,
0.11917192488908768,
0.07776087522506714,
-0.08038534224033356,
0.03923441469669342,
-0.43720605969429016,
-0.1903398036956787,
-0.1089530736207962,
-0.23775458335876465,
0.3689497709274292,
0.19631366431713104,
-0.11960695683956146,
-0.06473111361265182,
0.0964164286851883,
-0.20484963059425354,
-0.041282832622528076,
0.3441522717475891,
-0.21052782237529755,
-0.17691677808761597,
0.2914230525493622,
-0.204467311501503,
0.5206036567687988,
0.06564775854349136,
-0.05735894665122032,
-0.14653810858726501,
-0.41697657108306885,
-0.05283898115158081,
0.03702140226960182,
-0.058393679559230804,
-0.08957386016845703,
-0.6124740839004517,
-0.17273932695388794,
-0.15074226260185242,
0.036789219826459885,
0.04236479103565216,
-0.02019909769296646,
-0.13752898573875427,
0.004137410316616297,
-0.2497769147157669,
-0.013519751839339733,
0.2383354902267456,
0.11182846873998642,
-0.1766229122877121,
0.02850857749581337,
0.08099811524152756,
0.2065771520137787,
0.49095162749290466,
-0.010553264990448952,
-0.03226540610194206,
-0.015569611452519894,
-0.33273157477378845,
0.07789070904254913,
-0.40097829699516296,
-0.6961492896080017,
0.2136877030134201,
0.13574524223804474,
0.12627963721752167,
0.057886239141225815,
0.3085646331310272,
0.17073553800582886,
-0.13967514038085938,
-0.13162662088871002,
0.5406721830368042,
-0.1637873649597168,
-0.004967710003256798,
0.14895261824131012,
0.08534997701644897
] |
https://github.com/huggingface/datasets/issues/1713 | Installation using conda | `datasets` has been added to the huggingface channel thanks to @LysandreJik :)
It depends on conda-forge though
```
conda install -c huggingface -c conda-forge datasets
``` | Will a conda package for installing datasets be added to the huggingface conda channel? I have installed transformers using conda and would like to use the datasets library to use some of the scripts in the transformers/examples folder but am unable to do so at the moment as datasets can only be installed using pip and using pip in a conda environment is generally a bad idea in my experience. | 26 | Installation using conda
Will a conda package for installing datasets be added to the huggingface conda channel? I have installed transformers using conda and would like to use the datasets library to use some of the scripts in the transformers/examples folder but am unable to do so at the moment as datasets can only be installed using pip and using pip in a conda environment is generally a bad idea in my experience.
`datasets` has been added to the huggingface channel thanks to @LysandreJik :)
It depends on conda-forge though
```
conda install -c huggingface -c conda-forge datasets
``` | [
-0.029604097828269005,
-0.03997432440519333,
-0.10899737477302551,
0.1860421746969223,
0.2394064962863922,
-0.04451911896467209,
0.1131720095872879,
-0.10590092092752457,
-0.3314245641231537,
-0.3028707206249237,
-0.2650928795337677,
0.10409072041511536,
-0.13574819266796112,
0.5306631922721863,
0.3688565492630005,
-0.07582695782184601,
0.20950190722942352,
0.21151651442050934,
-0.6172247529029846,
-0.02988029643893242,
0.14325548708438873,
0.28380367159843445,
-0.19708944857120514,
-0.15030449628829956,
-0.36426812410354614,
0.05629642307758331,
-0.07382656633853912,
-0.18423476815223694,
0.026696953922510147,
-0.21157847344875336,
0.5577282905578613,
0.16359515488147736,
0.21851520240306854,
0.5203496813774109,
-0.00012088737275917083,
-0.03546058386564255,
0.21301531791687012,
-0.07749727368354797,
-0.33611488342285156,
-0.010166593827307224,
-0.38936755061149597,
-0.2792268693447113,
-0.030175143852829933,
0.05801648646593094,
0.009717961773276329,
0.06615455448627472,
0.02110619843006134,
-0.13836388289928436,
0.34034958481788635,
0.05808069184422493,
0.15155541896820068,
0.3557490110397339,
0.25345951318740845,
-0.024150632321834564,
-0.16755527257919312,
0.4902021884918213,
-0.24222376942634583,
-0.0713033601641655,
0.08695951104164124,
0.09849952906370163,
0.5578449964523315,
0.006527606397867203,
-0.03471396863460541,
-0.1003691777586937,
0.29969343543052673,
0.174514040350914,
-0.33990082144737244,
-0.2819995880126953,
-0.051112085580825806,
0.2685142755508423,
0.7587835192680359,
-0.3713587820529938,
-0.6890047788619995,
-0.31221383810043335,
-0.02791556902229786,
0.10895851254463196,
-0.15259727835655212,
-0.10764013230800629,
-0.13563422858715057,
0.2149151861667633,
-0.2901664674282074,
-0.619832456111908,
-0.16219688951969147,
0.11244872957468033,
-0.0005173689569346607,
0.38892287015914917,
-0.16202253103256226,
0.07774993777275085,
0.2113398015499115,
-0.055719245225191116,
0.1713269203901291,
-0.09979435056447983,
-0.032567959278821945,
0.17617325484752655,
-0.10662019997835159,
-0.1705847531557083,
-0.25458094477653503,
0.408291757106781,
0.2948683798313141,
0.2181314378976822,
-0.41945451498031616,
-0.1357574462890625,
-0.23693156242370605,
-0.1831279844045639,
0.19292455911636353,
0.06340473145246506,
0.10548678040504456,
0.4957335889339447,
0.08938519656658173,
-0.14456818997859955,
0.4328081011772156,
-0.03995375707745552,
-0.04601838067173958,
0.01618006080389023,
-0.2737436294555664,
-0.39932650327682495,
-0.08913233876228333,
-0.2870236933231354,
0.006403772160410881,
-0.2886555790901184,
0.4500453472137451,
-0.1929970234632492,
0.18218894302845,
0.2403699904680252,
0.03207682445645332,
0.13226056098937988,
-0.003880620002746582,
0.29707586765289307,
0.3454448878765106,
0.06101231649518013,
-0.08381395041942596,
-0.08814242482185364,
-0.019942142069339752,
0.1140609011054039,
0.23090937733650208,
-0.3153795599937439,
0.18550796806812286,
-0.22560027241706848,
0.43081462383270264,
0.34177666902542114,
-0.06384050846099854,
0.21857106685638428,
-0.09551430493593216,
0.44557347893714905,
-0.3512636721134186,
0.2501911520957947,
-0.14072255790233612,
0.1761866956949234,
-0.2922184467315674,
-0.010903429239988327,
0.070582315325737,
-0.004938475321978331,
-0.08553380519151688,
-0.04918070510029793,
-0.1708824783563614,
-0.2739294171333313,
-0.2653612494468689,
-0.10155730694532394,
-0.21993836760520935,
-0.13508480787277222,
0.02813645265996456,
0.22815535962581635,
0.19657185673713684,
-0.024177711457014084,
0.24150902032852173,
0.43081367015838623,
-0.3204358220100403,
-0.4266444742679596,
0.07835797965526581,
-0.43447062373161316,
-0.15416386723518372,
-0.032543282955884933,
-0.06737960875034332,
-0.11045008897781372,
-0.1799430102109909,
-0.3662016987800598,
0.39995822310447693,
-0.5274593234062195,
-0.30119919776916504,
0.021751636639237404,
0.10337574034929276,
0.2396850436925888,
-0.11320992559194565,
0.24345608055591583,
0.15893109142780304,
0.08020175248384476,
0.027239898219704628,
0.24471154808998108,
0.014504842460155487,
-0.3280431032180786,
0.20432452857494354,
-0.23499909043312073,
0.10634300857782364,
0.22396835684776306,
0.1952614039182663,
0.3022698163986206,
-0.14204156398773193,
-0.09183304011821747,
0.15574873983860016,
0.1382886916399002,
0.15555113554000854,
0.2677217125892639,
0.30163246393203735,
0.28843528032302856,
0.08321673423051834,
-0.3093568682670593,
-0.3711172640323639,
0.11306747049093246,
0.1507462114095688,
0.0016274459194391966,
-0.12911711633205414,
-0.2351766973733902,
-0.04628351703286171,
0.1461787223815918,
0.0964462012052536,
-0.17165027558803558,
-0.07754045724868774,
-0.09915094077587128,
0.4647383689880371,
-0.2203247994184494,
-0.3421967029571533,
0.9912429451942444,
0.46889176964759827,
0.3277895152568817,
-0.09093094617128372,
0.2403009980916977,
-0.047502581030130386,
0.07405851781368256,
-0.05322257801890373,
0.27778196334838867,
-0.03868963196873665,
-0.27611321210861206,
0.23256373405456543,
0.2086804062128067,
-0.1758493036031723,
-0.08121523261070251,
0.27738431096076965,
0.1935044527053833,
0.1843612790107727,
-0.003529378678649664,
0.12181567400693893,
-0.2264949083328247,
-0.07398214936256409,
0.05712500214576721,
0.03180960938334465,
-0.2204485833644867,
-0.1256757229566574,
0.01956031657755375,
0.09848655760288239,
0.3117913603782654,
0.31373342871665955,
0.21090194582939148,
-0.260500431060791,
-0.2747136354446411,
-0.07783561199903488,
-0.06330287456512451,
0.2634274959564209,
-0.013122995384037495,
-0.058900538831949234,
-0.22669462859630585,
-0.11915045231580734,
-0.18619385361671448,
-0.021087339147925377,
0.31249141693115234,
-0.2640957832336426,
0.4855315685272217,
0.2817259430885315,
0.2035994678735733,
0.34542959928512573,
0.19631674885749817,
0.07885852456092834,
-0.18513399362564087,
-0.029542317613959312,
0.0008034270722419024,
0.01574525609612465,
0.20130285620689392,
0.01552577968686819,
-0.3022402822971344,
-0.3382848799228668,
0.05390706658363342,
0.07798337936401367,
-0.294355183839798,
-0.41998815536499023,
-0.08404390513896942,
-0.1885012835264206,
-0.058601297438144684,
-0.20476870238780975,
-0.032572899013757706,
-0.2585756182670593,
-0.372918039560318,
-0.23933307826519012,
0.04930796101689339,
-0.1605871468782425,
-0.23979000747203827,
0.29366979002952576,
0.16998738050460815,
-0.29037362337112427,
0.3241267502307892,
-0.3040953278541565,
-0.40817102789878845,
-0.15803641080856323,
0.26652792096138,
-0.06133001297712326,
0.06689610332250595,
0.05226977542042732,
-0.08402488380670547,
0.12964218854904175,
-0.1698673665523529,
0.4550246000289917,
-0.1698603332042694,
-0.4443708062171936,
0.10273943841457367,
-0.1414862871170044,
0.36940446496009827,
0.02767876908183098,
0.10132278501987457,
0.09700801968574524,
-0.0839465782046318,
-0.010479656979441643,
-0.004446944687515497,
0.16196905076503754,
-0.2443733513355255,
0.00766583438962698,
-0.29090508818626404,
-0.1808825433254242,
-0.021443534642457962,
-0.5090831518173218,
-0.11759737879037857,
0.502769947052002,
0.1387520134449005,
-0.21726763248443604,
-0.02924838475883007,
0.014408229850232601,
0.1492462456226349,
-0.19997259974479675,
0.2633715569972992,
0.03340121731162071,
-0.08732008188962936,
0.5326375961303711,
-0.1055198684334755,
-0.11744992434978485,
-0.026456205174326897,
-0.1532171666622162,
0.42133015394210815,
0.09376772493124008,
-0.33018046617507935,
0.19152170419692993,
-0.011430809274315834,
0.05601499229669571,
0.18471196293830872,
0.17810557782649994,
0.5187995433807373,
0.039214126765728,
0.24650724232196808,
-0.02379232831299305,
-0.33983707427978516,
-0.17185154557228088,
-0.1600545048713684,
0.20835305750370026,
-0.07104196399450302,
0.06305389851331711,
-0.27134600281715393,
0.2838387191295624,
0.21424707770347595,
-0.11296523362398148,
0.04214493930339813,
0.18318988382816315,
0.6972620487213135,
0.17816266417503357,
-0.28195077180862427,
0.013061074540019035,
0.13709892332553864,
0.14389203488826752,
-0.05487286299467087,
0.32156166434288025,
-0.02952786721289158,
-0.4412063658237457,
0.09633514285087585,
-0.27443259954452515,
0.05281275510787964,
-0.25210320949554443,
-0.10828998684883118,
0.19607149064540863,
0.08798868954181671,
-0.04577961191534996,
-0.0036038882099092007,
0.05603092163801193,
-0.013768787495791912,
0.3663769066333771,
0.08020897209644318,
-0.002643209183588624,
-0.3299095034599304,
-0.07568811625242233,
-0.41991934180259705,
0.06919074803590775,
-0.057795342057943344,
0.21986104547977448,
-0.11036968231201172,
0.11334200948476791,
-0.16467715799808502,
0.10277964919805527,
0.8495230674743652,
0.0033568323124200106,
-0.6551272869110107,
-0.16270112991333008,
0.1493961662054062,
-0.41116398572921753,
0.06710828840732574,
-0.0011657794238999486,
-0.060213085263967514,
0.21155314147472382,
0.4190406799316406,
-0.22093461453914642,
-0.11011860519647598,
0.26967743039131165,
0.12218894809484482,
0.03978912904858589,
-0.22756029665470123,
-0.1750156581401825,
-0.14028628170490265,
-0.15965035557746887,
-0.18989039957523346,
-0.04255744069814682,
-0.1642305552959442,
-0.03890668973326683,
-0.3055099844932556,
-0.08762140572071075,
-0.04321860149502754,
0.3834274113178253,
0.08783993124961853,
0.18161259591579437,
-0.10500749200582504,
0.3220690190792084,
0.48071372509002686,
-0.031069476157426834,
0.16528937220573425,
0.22426582872867584,
-0.16922271251678467,
-0.32399076223373413,
-0.16587533056735992,
0.10070215165615082,
0.4438795745372772,
-0.03652384504675865,
-0.09407263994216919,
-0.2365947812795639,
0.034346502274274826,
-0.028723634779453278,
-0.13148757815361023,
-0.20292089879512787,
0.31949788331985474,
0.2787727415561676,
-0.562620997428894,
-0.43468043208122253,
0.3367548882961273,
0.29316797852516174,
-0.05571365728974342,
0.3845725357532501,
0.39173623919487,
-0.1271839737892151,
-0.17879357933998108,
-0.05765565484762192,
0.7378736734390259,
-0.2793724238872528,
0.31992992758750916,
-0.015067401342093945,
-0.3507262170314789,
0.5631985664367676,
-0.3242429196834564,
-0.09289716184139252,
-0.00354748428799212,
-0.09914741665124893,
-0.228387713432312,
-0.17828355729579926,
0.3458288013935089,
0.3576595187187195,
-0.4025150239467621,
0.3377339541912079,
-0.04282432049512863,
0.08836808800697327,
0.02700270153582096,
0.005971788428723812,
0.18374143540859222,
-0.2762798070907593,
-0.006865244824439287,
0.11973130702972412,
0.1188795194029808,
0.4403012990951538,
-0.2937503755092621,
0.07856858521699905,
-0.2915751039981842,
-0.19454237818717957,
-0.3028695583343506,
0.02196200005710125,
0.12888044118881226,
0.031429048627614975,
0.7062221765518188,
-0.007784075103700161,
0.13504281640052795,
0.4751845598220825,
0.43990087509155273,
0.1391887217760086,
-0.37514570355415344,
0.1966901421546936,
-0.3600427210330963,
-0.14979287981987,
0.05894939973950386,
0.1702253371477127,
-0.0635528415441513,
0.018488885834813118,
-0.30945849418640137,
0.02969294786453247,
-0.02272934280335903,
-0.2771971821784973,
0.055049728602170944,
0.05958012118935585,
0.006159943528473377,
-0.08397247642278671,
-0.07940292358398438,
0.4485957622528076,
0.2781933546066284,
0.01870766654610634,
0.07484839856624603,
0.2459593266248703,
-0.09436250478029251,
0.34750688076019287,
0.06465752422809601,
0.0322735421359539,
-0.2667601704597473,
0.2942609190940857,
-0.08988050371408463,
-0.37797653675079346,
0.0836174264550209,
-0.10844740271568298,
-0.3593871295452118,
-0.06699378043413162,
-0.2827804982662201,
-0.18745167553424835,
-0.07432898879051208,
-0.3029493987560272,
0.24835841357707977,
-0.2350660115480423,
-0.18005943298339844,
-0.15118244290351868,
0.08052046597003937,
-0.2166675329208374,
-0.20994041860103607,
-0.17506299912929535,
-0.41398465633392334,
0.21043293178081512,
-0.1120133101940155,
0.2709077298641205,
0.08445338159799576,
0.12680035829544067,
0.19094912707805634,
0.07396882772445679,
-0.11193860322237015,
-0.2198503464460373,
0.12070567160844803,
-0.20332404971122742,
0.5632287859916687,
0.20706762373447418,
0.2890429198741913,
-0.11984250694513321,
-0.016339203342795372,
0.020145636051893234,
0.05196478217840195,
0.015574673190712929,
-0.008081736974418163,
0.1726924628019333,
0.121538907289505,
-0.31048583984375,
-0.049125298857688904,
-0.0010919999331235886,
-0.09938361495733261,
-0.14207635819911957,
0.11402664333581924,
0.17781583964824677,
0.13410910964012146,
0.09222427755594254,
0.08150365203619003,
-0.03189201280474663,
-0.18645194172859192,
0.23203016817569733,
0.3301810622215271,
0.03871763497591019,
0.3300394117832184,
0.2174200713634491,
-0.027683714404702187,
0.05366718769073486,
-0.14365898072719574,
0.33259978890419006,
0.23576274514198303,
0.07204806059598923,
0.3016223609447479,
-0.11899802088737488,
0.21524547040462494,
0.37584370374679565,
0.24863196909427643,
0.021829785779118538,
0.05313717946410179,
0.14253529906272888,
0.4835515022277832,
0.048755813390016556,
-0.1327560842037201,
-0.36149924993515015,
0.1282334178686142,
0.25274425745010376,
-0.13299418985843658,
0.43603065609931946,
-0.06524208188056946,
0.14868004620075226,
0.5753986835479736,
0.10462170839309692,
0.139727383852005,
0.006667643785476685,
0.5112201571464539,
0.17814435064792633,
0.22389128804206848,
0.08526209741830826,
0.31254842877388,
0.2670515179634094,
0.1331121027469635,
0.23726509511470795,
-0.5011427998542786,
0.016952428966760635,
-0.3879600763320923,
0.1621541678905487,
0.1834348440170288,
-0.2091599851846695,
-0.20890970528125763,
-0.1860567033290863,
0.18955005705356598,
0.029195968061685562,
-0.17040731012821198,
0.42489388585090637,
-0.2297879308462143,
-0.07887790352106094,
-0.36368194222450256,
-0.014622129499912262,
-0.1618773490190506,
-0.19841796159744263,
0.609063446521759,
-0.18540507555007935,
0.23823851346969604,
-0.16709087789058685,
0.24372448027133942,
-0.5002307891845703,
0.3145495653152466,
-0.13895118236541748,
0.14497196674346924,
-0.20916996896266937,
0.2995738387107849,
0.1465025246143341,
-0.1955225020647049,
0.23232483863830566,
0.06757791340351105,
-0.06335470080375671,
-0.07975544035434723,
0.04530996456742287,
0.12636415660381317,
0.2239428013563156,
0.04170854017138481,
0.4054313004016876,
0.13060037791728973,
-0.17689858376979828,
0.031256891787052155,
-0.10929620265960693,
0.31316256523132324,
-0.0671946182847023,
0.08794712275266647,
-0.08785062283277512,
0.12419164925813675,
-0.04672873765230179,
-0.08218228071928024,
-0.039165884256362915,
0.3811216950416565,
-0.40366262197494507,
0.3750121593475342,
-0.39356082677841187,
-0.2029147446155548,
-0.22386790812015533,
0.15197667479515076,
-0.29247722029685974,
0.13694912195205688,
0.35650691390037537,
-0.2550809383392334,
-0.17901618778705597,
-0.07884185016155243,
-0.002469122875481844,
0.11638540774583817,
0.3421875834465027,
0.051491666585206985,
0.4953834116458893,
-0.007195997517555952,
-0.2586132884025574,
-0.4099026024341583,
-0.23291480541229248,
-0.12033972889184952,
0.054678283631801605,
-0.11331312358379364,
-0.20078197121620178,
0.018547916784882545,
0.0036696847528219223,
0.05109178647398949,
-0.10769352316856384,
0.060873545706272125,
-0.43402373790740967,
-0.06943739205598831,
-0.09793774038553238,
-0.3268855810165405,
0.3197922706604004,
0.24936027824878693,
-0.12387116998434067,
-0.0955599769949913,
0.12340041995048523,
-0.20384375751018524,
-0.09076692163944244,
0.28875091671943665,
-0.14593330025672913,
-0.13779398798942566,
0.30567610263824463,
-0.1873534470796585,
0.5309544205665588,
0.06375806778669357,
-0.029003223404288292,
-0.13589473068714142,
-0.3469367027282715,
-0.02289840765297413,
0.05542800948023796,
-0.1585589051246643,
-0.056721363216638565,
-0.6374248266220093,
-0.18209686875343323,
-0.19385439157485962,
0.04091272130608559,
0.07529710233211517,
-0.0810210257768631,
-0.15241241455078125,
0.030028507113456726,
-0.3114018738269806,
0.02137167938053608,
0.20458687841892242,
0.17566324770450592,
-0.16561776399612427,
0.05599847063422203,
0.04261265695095062,
0.18597066402435303,
0.5106598734855652,
-0.09498632699251175,
0.025428788736462593,
-0.006808880250900984,
-0.24249407649040222,
0.056327663362026215,
-0.45016586780548096,
-0.6654912829399109,
0.21032191812992096,
0.21452558040618896,
0.15542814135551453,
0.08289391547441483,
0.22653356194496155,
0.14862315356731415,
-0.1002158597111702,
-0.1532568782567978,
0.575880229473114,
-0.13832105696201324,
0.028621455654501915,
0.2653760313987732,
0.11049267649650574
] |
https://github.com/huggingface/datasets/issues/1710 | IsADirectoryError when trying to download C4 | I haven't tested C4 on my side so there so there may be a few bugs in the code/adjustments to make.
Here it looks like in c4.py, line 190 one of the `files_to_download` is `'/'` which is invalid.
Valid files are paths to local files or URLs to remote files. | **TLDR**:
I fail to download C4 and see a stacktrace originating in `IsADirectoryError` as an explanation for failure.
How can the problem be fixed?
**VERBOSE**:
I use Python version 3.7 and have the following dependencies listed in my project:
```
datasets==1.2.0
apache-beam==2.26.0
```
When running the following code, where `/data/huggingface/unpacked/` contains a single unzipped `wet.paths` file manually downloaded as per the instructions for C4:
```
from datasets import load_dataset
load_dataset("c4", "en", data_dir="/data/huggingface/unpacked", beam_runner='DirectRunner')
```
I get the following stacktrace:
```
/Users/fredriko/venv/misc/bin/python /Users/fredriko/source/misc/main.py
Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /Users/fredriko/.cache/huggingface/datasets/c4/en/2.3.0/8304cf264cc42bdebcb13fca4b9cb36368a96f557d36f9dc969bebbe2568b283...
Traceback (most recent call last):
File "/Users/fredriko/source/misc/main.py", line 3, in <module>
load_dataset("c4", "en", data_dir="/data/huggingface/unpacked", beam_runner='DirectRunner')
File "/Users/fredriko/venv/misc/lib/python3.7/site-packages/datasets/load.py", line 612, in load_dataset
ignore_verifications=ignore_verifications,
File "/Users/fredriko/venv/misc/lib/python3.7/site-packages/datasets/builder.py", line 527, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/Users/fredriko/venv/misc/lib/python3.7/site-packages/datasets/builder.py", line 1066, in _download_and_prepare
pipeline=pipeline,
File "/Users/fredriko/venv/misc/lib/python3.7/site-packages/datasets/builder.py", line 582, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/Users/fredriko/.cache/huggingface/modules/datasets_modules/datasets/c4/8304cf264cc42bdebcb13fca4b9cb36368a96f557d36f9dc969bebbe2568b283/c4.py", line 190, in _split_generators
file_paths = dl_manager.download_and_extract(files_to_download)
File "/Users/fredriko/venv/misc/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 258, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/Users/fredriko/venv/misc/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 189, in download
self._record_sizes_checksums(url_or_urls, downloaded_path_or_paths)
File "/Users/fredriko/venv/misc/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 117, in _record_sizes_checksums
self._recorded_sizes_checksums[str(url)] = get_size_checksum_dict(path)
File "/Users/fredriko/venv/misc/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 80, in get_size_checksum_dict
with open(path, "rb") as f:
IsADirectoryError: [Errno 21] Is a directory: '/'
Process finished with exit code 1
``` | 50 | IsADirectoryError when trying to download C4
**TLDR**:
I fail to download C4 and see a stacktrace originating in `IsADirectoryError` as an explanation for failure.
How can the problem be fixed?
**VERBOSE**:
I use Python version 3.7 and have the following dependencies listed in my project:
```
datasets==1.2.0
apache-beam==2.26.0
```
When running the following code, where `/data/huggingface/unpacked/` contains a single unzipped `wet.paths` file manually downloaded as per the instructions for C4:
```
from datasets import load_dataset
load_dataset("c4", "en", data_dir="/data/huggingface/unpacked", beam_runner='DirectRunner')
```
I get the following stacktrace:
```
/Users/fredriko/venv/misc/bin/python /Users/fredriko/source/misc/main.py
Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /Users/fredriko/.cache/huggingface/datasets/c4/en/2.3.0/8304cf264cc42bdebcb13fca4b9cb36368a96f557d36f9dc969bebbe2568b283...
Traceback (most recent call last):
File "/Users/fredriko/source/misc/main.py", line 3, in <module>
load_dataset("c4", "en", data_dir="/data/huggingface/unpacked", beam_runner='DirectRunner')
File "/Users/fredriko/venv/misc/lib/python3.7/site-packages/datasets/load.py", line 612, in load_dataset
ignore_verifications=ignore_verifications,
File "/Users/fredriko/venv/misc/lib/python3.7/site-packages/datasets/builder.py", line 527, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/Users/fredriko/venv/misc/lib/python3.7/site-packages/datasets/builder.py", line 1066, in _download_and_prepare
pipeline=pipeline,
File "/Users/fredriko/venv/misc/lib/python3.7/site-packages/datasets/builder.py", line 582, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/Users/fredriko/.cache/huggingface/modules/datasets_modules/datasets/c4/8304cf264cc42bdebcb13fca4b9cb36368a96f557d36f9dc969bebbe2568b283/c4.py", line 190, in _split_generators
file_paths = dl_manager.download_and_extract(files_to_download)
File "/Users/fredriko/venv/misc/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 258, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/Users/fredriko/venv/misc/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 189, in download
self._record_sizes_checksums(url_or_urls, downloaded_path_or_paths)
File "/Users/fredriko/venv/misc/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 117, in _record_sizes_checksums
self._recorded_sizes_checksums[str(url)] = get_size_checksum_dict(path)
File "/Users/fredriko/venv/misc/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 80, in get_size_checksum_dict
with open(path, "rb") as f:
IsADirectoryError: [Errno 21] Is a directory: '/'
Process finished with exit code 1
```
I haven't tested C4 on my side so there so there may be a few bugs in the code/adjustments to make.
Here it looks like in c4.py, line 190 one of the `files_to_download` is `'/'` which is invalid.
Valid files are paths to local files or URLs to remote files. | [
-0.21100111305713654,
-0.016683408990502357,
0.002013629535213113,
0.23881196975708008,
0.30036333203315735,
0.011594148352742195,
0.08793170005083084,
0.2422640472650528,
-0.10572308301925659,
0.09686119854450226,
-0.19106706976890564,
-0.09682240337133408,
-0.3083794116973877,
-0.037879787385463715,
0.04636860266327858,
-0.07067376375198364,
-0.17713883519172668,
0.24132633209228516,
-0.49239861965179443,
0.14208990335464478,
-0.014867233112454414,
0.4154527187347412,
-0.15277725458145142,
0.024850040674209595,
-0.09491340816020966,
-0.10576220601797104,
-0.04486177861690521,
0.23980703949928284,
-0.004304626025259495,
-0.43168169260025024,
0.6017950773239136,
0.22954851388931274,
0.12453537434339523,
0.48743993043899536,
-0.00012129637616453692,
0.29819661378860474,
0.3171200156211853,
-0.13037599623203278,
-0.3978932797908783,
-0.2918587028980255,
-0.06634536385536194,
-0.03881825506687164,
0.33563312888145447,
-0.17011679708957672,
0.13118092715740204,
0.03508322685956955,
0.08414150029420853,
-0.37200137972831726,
0.29277151823043823,
0.2490396648645401,
0.15614743530750275,
0.40782400965690613,
0.2956754267215729,
0.046112556010484695,
0.1961439698934555,
-0.07394559681415558,
0.025872182101011276,
0.3925034701824188,
-0.3268424868583679,
0.21905972063541412,
-0.10653860867023468,
0.15515385568141937,
0.06170450896024704,
0.00322032836265862,
0.5413601994514465,
-0.20763880014419556,
0.18804602324962616,
-0.030958455055952072,
0.14103519916534424,
0.039515022188425064,
0.6169295310974121,
-0.3673050105571747,
-0.22736573219299316,
0.02264733985066414,
0.04853273183107376,
-0.04809685796499252,
0.5799096822738647,
0.028688697144389153,
-0.19140981137752533,
0.15998733043670654,
-0.31297528743743896,
0.05550757423043251,
-0.2554163336753845,
0.18097108602523804,
-0.2790963053703308,
-0.21638384461402893,
-0.12132179737091064,
0.1668664515018463,
0.35394224524497986,
0.1593829095363617,
0.07218892127275467,
-0.15228842198848724,
0.09508798271417618,
0.10238969326019287,
-0.32531899213790894,
0.13249564170837402,
-0.07984158396720886,
0.4449475109577179,
-0.058874960988759995,
-0.13521403074264526,
-0.032312698662281036,
-0.0894959345459938,
-0.15712617337703705,
0.0771518424153328,
-0.09983519464731216,
0.5191347599029541,
-0.1745385378599167,
-0.057901717722415924,
0.19163431227207184,
0.129901722073555,
0.025129180401563644,
0.0934782549738884,
-0.0617639534175396,
-0.2957741916179657,
-0.3996478319168091,
0.1983496993780136,
-0.03088429383933544,
-0.14651596546173096,
-0.5061502456665039,
-0.051148124039173126,
-0.6028210520744324,
0.061764881014823914,
-0.04868802800774574,
0.4410615861415863,
-0.21568255126476288,
0.2982068955898285,
0.4271637201309204,
0.11720265448093414,
-0.07775242626667023,
-0.16001836955547333,
-0.04644685238599777,
0.1821562945842743,
-0.3387567698955536,
-0.21754039824008942,
0.14654584228992462,
-0.30670201778411865,
0.05651617422699928,
-0.057250455021858215,
0.12428947538137436,
0.11984739452600479,
-0.1313163936138153,
0.08329989016056061,
-0.3962430953979492,
0.3249591290950775,
-0.05691861733794212,
0.3533375859260559,
0.14195238053798676,
-0.24760465323925018,
-0.04191846773028374,
-0.25036442279815674,
-0.02889188379049301,
-0.16892403364181519,
-0.005904781632125378,
0.06250054389238358,
-0.2621734142303467,
-0.01863936521112919,
-0.023984689265489578,
-0.3702903687953949,
-0.08805610239505768,
-0.025088030844926834,
-0.30695363879203796,
-0.33253759145736694,
0.04036641865968704,
-0.387948215007782,
0.28678545355796814,
0.7887272834777832,
-0.37308254837989807,
-0.062372997403144836,
-0.39398646354675293,
-0.32072779536247253,
-0.08863719552755356,
0.15976759791374207,
0.008391818031668663,
0.46834295988082886,
-0.3715883195400238,
-0.08177099376916885,
0.03499825298786163,
-0.43087008595466614,
-0.38265976309776306,
0.4031051993370056,
-0.20261794328689575,
0.1814246028661728,
0.23876924812793732,
-0.15938568115234375,
-0.0379301942884922,
-0.04915982112288475,
0.03923805430531502,
0.07379089295864105,
0.10098983347415924,
-0.21469400823116302,
-0.3035184442996979,
-0.0859721377491951,
0.03479227051138878,
0.1836923360824585,
0.18899205327033997,
0.12380010634660721,
0.2890423536300659,
0.023836657404899597,
0.42526695132255554,
-0.15448646247386932,
0.1230122521519661,
0.4358827471733093,
0.3003917634487152,
0.08041572570800781,
-0.22774285078048706,
0.2824692726135254,
-0.70216965675354,
0.136989563703537,
-0.06885364651679993,
-0.052557263523340225,
-0.1883159726858139,
0.05658844858407974,
-0.3794918954372406,
0.10984775424003601,
-0.26815128326416016,
-0.05080416053533554,
0.042740557342767715,
0.2153691202402115,
0.025101127102971077,
0.22533370554447174,
0.054554689675569534,
0.9237933158874512,
-0.02912619337439537,
0.24124588072299957,
-0.1177426353096962,
0.28890088200569153,
-0.1239602267742157,
-0.0006953019765205681,
0.23601889610290527,
0.05909864604473114,
0.28105810284614563,
-0.26035600900650024,
-0.01643073745071888,
0.4496191143989563,
-0.30321550369262695,
0.2257033884525299,
-0.2356707900762558,
0.2374095320701599,
0.1409539133310318,
-0.4850710332393646,
0.24378834664821625,
0.18263442814350128,
0.015550801530480385,
0.07949446886777878,
0.3024572730064392,
0.03739718347787857,
-0.011102063581347466,
0.2944728434085846,
0.2611162066459656,
0.20772358775138855,
0.10513132810592651,
-0.16970592737197876,
0.18628154695034027,
0.005613167770206928,
0.45107194781303406,
-0.0853264108300209,
0.6482322216033936,
-0.2358093559741974,
-0.048622049391269684,
0.07109924405813217,
-0.029451115056872368,
-0.08530373126268387,
-0.24019761383533478,
0.1699894219636917,
-0.19400151073932648,
0.13191643357276917,
0.3667609393596649,
0.22742772102355957,
0.3210943937301636,
0.13861285150051117,
-0.06407378613948822,
0.17763446271419525,
-0.0354292057454586,
-0.09301099926233292,
0.19746413826942444,
0.014387923292815685,
-0.19375202059745789,
0.11275051534175873,
-0.033773746341466904,
0.07117722183465958,
-0.2204747051000595,
-0.32736194133758545,
-0.10830167680978775,
0.09169076383113861,
-0.5798999667167664,
0.0877993181347847,
-0.33445125818252563,
-0.15015272796154022,
-0.4275588095188141,
0.15847307443618774,
-0.13266479969024658,
-0.3841994106769562,
-0.2535521388053894,
0.3956748843193054,
-0.15534310042858124,
0.0745387002825737,
-0.05246562883257866,
-0.31148484349250793,
-0.042909033596515656,
-0.34569251537323,
-0.22961263358592987,
0.11665383726358414,
-0.3646846115589142,
-0.018812958151102066,
0.28238579630851746,
-0.16342607140541077,
0.1477774679660797,
-0.3827366232872009,
0.1993679404258728,
-0.3894241154193878,
-0.193093404173851,
0.31459668278694153,
-0.10970648378133774,
-0.11748003214597702,
0.2981436550617218,
0.20714189112186432,
-0.18095490336418152,
-0.3646034598350525,
0.0009784713620319963,
0.02553514577448368,
-0.10153235495090485,
0.18815892934799194,
0.0071539063937962055,
-0.053027860820293427,
-0.22069300711154938,
-0.3239416778087616,
-0.34689050912857056,
-0.4373089075088501,
0.2280208170413971,
-0.207475483417511,
-0.0289414394646883,
0.3682851493358612,
0.11059916019439697,
0.2621780335903168,
-0.12509362399578094,
0.03555426746606827,
0.21266120672225952,
0.09515411406755447,
0.15807658433914185,
0.030946576967835426,
-0.2959899604320526,
0.1105617880821228,
-0.18838408589363098,
0.11259845644235611,
0.42327821254730225,
-0.660457193851471,
0.3621886074542999,
-0.16098864376544952,
0.23376427590847015,
-0.11735976487398148,
0.23081886768341064,
0.3478420078754425,
0.05524500459432602,
0.047646116465330124,
-0.1626119315624237,
0.032993339002132416,
0.055418409407138824,
-0.24115917086601257,
0.35278937220573425,
0.02005736529827118,
0.14074797928333282,
0.10692072659730911,
0.7421911358833313,
0.19764089584350586,
-0.3773142397403717,
0.5262419581413269,
0.22057496011257172,
0.5429065227508545,
-0.023297887295484543,
-0.18626591563224792,
-0.03341160714626312,
0.04982038214802742,
0.08569353073835373,
0.1664586365222931,
-0.04401377961039543,
-0.060137830674648285,
-0.2190629243850708,
0.15066759288311005,
-0.388939768075943,
-0.28938207030296326,
-0.10512453317642212,
-0.015478251501917839,
0.31317412853240967,
0.08008328825235367,
-0.0028581416700035334,
0.24765469133853912,
-0.18077947199344635,
0.19716650247573853,
0.45200833678245544,
-0.08933915942907333,
0.0726926401257515,
0.32285910844802856,
-0.2642276883125305,
-0.38160526752471924,
0.4794583022594452,
0.1105571761727333,
0.07210945338010788,
0.05692308396100998,
-0.011797908693552017,
-0.00236159167252481,
0.09842316806316376,
0.556862473487854,
0.1064317598938942,
0.1237621158361435,
0.12875665724277496,
-0.11111948639154434,
-0.5451615452766418,
-0.0821274071931839,
-0.13113786280155182,
-0.049253854900598526,
0.18023833632469177,
0.09574297815561295,
-0.5184885859489441,
-0.1800265610218048,
0.06255447119474411,
0.3143151104450226,
-0.028527604416012764,
-0.15510571002960205,
-0.07412324845790863,
-0.3765137493610382,
-0.08482453227043152,
-0.1324584186077118,
-0.1140458881855011,
0.14280813932418823,
0.16705457866191864,
0.13414394855499268,
0.07629378139972687,
-0.3344877362251282,
0.157064288854599,
-0.15013162791728973,
0.29782283306121826,
-0.024087077006697655,
0.21438783407211304,
0.22633196413516998,
0.33322250843048096,
0.18467143177986145,
0.264372855424881,
-0.15635241568088531,
0.24815087020397186,
0.1476452797651291,
0.08531653881072998,
0.07806657254695892,
0.26470476388931274,
-0.1514916568994522,
-0.12448742240667343,
-0.15313367545604706,
0.10622852295637131,
0.002688079373911023,
0.40567511320114136,
0.11809293925762177,
-0.20319457352161407,
-0.16931958496570587,
-0.05089961364865303,
0.27506113052368164,
-0.33772191405296326,
-0.14458133280277252,
0.14536456763744354,
0.4561203122138977,
-0.17143523693084717,
-0.05929188057780266,
-0.0010155831696465611,
0.9429750442504883,
-0.07491912692785263,
0.09960022568702698,
0.4034035801887512,
-0.20989109575748444,
-0.032576173543930054,
-0.6176767349243164,
-0.09891393780708313,
-0.14447835087776184,
0.26075103878974915,
-0.003960131201893091,
-0.13883644342422485,
-0.020516781136393547,
0.053241390734910965,
-0.2829582989215851,
0.36087191104888916,
0.12141336500644684,
0.05404142662882805,
0.2724372148513794,
0.07291460782289505,
-0.06148022785782814,
-0.048499930649995804,
-0.27341189980506897,
0.09394591301679611,
0.10574514418840408,
0.4314225912094116,
-0.3022381067276001,
-0.16294459998607635,
0.009724118746817112,
-0.3524850308895111,
-0.2409733384847641,
0.1356852799654007,
-0.4610413610935211,
0.13960997760295868,
-0.017098406329751015,
-0.18496978282928467,
0.25073593854904175,
0.1617293506860733,
0.16632293164730072,
0.2726706266403198,
-0.1978045105934143,
0.07398494333028793,
-0.3188924491405487,
-0.14787238836288452,
0.1963868886232376,
0.06696669012308121,
0.13577689230442047,
-0.16487525403499603,
0.06871918588876724,
0.01543573196977377,
-0.23537835478782654,
-0.21152585744857788,
0.28920575976371765,
-0.04978422820568085,
-0.039707742631435394,
-0.1274453103542328,
0.2722119688987732,
0.13786505162715912,
0.11897637695074081,
-0.044707976281642914,
0.051301147788763046,
-0.08271289616823196,
-0.05930674448609352,
-0.003794317366555333,
-0.12421548366546631,
-0.24379512667655945,
0.01638990454375744,
0.5655063986778259,
-0.0692044049501419,
-0.17498016357421875,
0.28178951144218445,
0.10252685844898224,
-0.306968629360199,
-0.1783808022737503,
-0.06492391973733902,
0.057409897446632385,
-0.5497653484344482,
0.09124933928251266,
-0.24430300295352936,
0.048415374010801315,
-0.18361902236938477,
0.20628827810287476,
0.20452052354812622,
0.09748014062643051,
0.030248519033193588,
-0.18795189261436462,
-0.35079288482666016,
0.1664501130580902,
-0.2784712612628937,
0.14199602603912354,
-0.08138947933912277,
0.3665917217731476,
0.19491082429885864,
-0.18604685366153717,
-0.20325523614883423,
-0.07422162592411041,
-0.15852373838424683,
-0.08748329430818558,
0.44113412499427795,
0.014997177757322788,
0.5713111758232117,
0.16393589973449707,
0.15718001127243042,
0.17153653502464294,
-0.32531192898750305,
-0.04925316199660301,
-0.07362014055252075,
0.18733246624469757,
0.09404125064611435,
0.07913041859865189,
0.3753320276737213,
-0.007755305152386427,
-0.13746044039726257,
0.04736749455332756,
0.22244267165660858,
0.11462686955928802,
-0.1991397887468338,
0.0036502003204077482,
-0.07422647625207901,
0.3938070833683014,
-0.3645930886268616,
0.027547674253582954,
0.05692876875400543,
0.23760996758937836,
0.08230526000261307,
-0.005457147490233183,
-0.14026816189289093,
-0.10042419284582138,
-0.008900826796889305,
0.02779233269393444,
0.06352889537811279,
-0.059094157069921494,
0.16219258308410645,
-0.13620218634605408,
-0.08090892434120178,
-0.22638843953609467,
0.18276123702526093,
0.02152591571211815,
-0.12954092025756836,
-0.07245101034641266,
0.36251527070999146,
0.09963337332010269,
-0.05107574909925461,
0.3101760447025299,
0.13566720485687256,
-0.027130113914608955,
-0.027252675965428352,
0.06728018075227737,
-0.09069621562957764,
-0.24506644904613495,
0.4972269833087921,
0.20034551620483398,
0.31163859367370605,
0.2572152018547058,
-0.13200905919075012,
0.25322094559669495,
-0.035828255116939545,
0.09296391159296036,
0.10726284980773926,
-0.1508060097694397,
0.29523858428001404,
0.4780040979385376,
-0.6502732634544373,
-0.019551362842321396,
-0.43872180581092834,
-0.08711501210927963,
0.17161425948143005,
-0.3194364607334137,
0.021031735464930534,
0.2744732201099396,
0.24898311495780945,
0.1790739744901657,
-0.034538254141807556,
0.5936596393585205,
-0.1786315143108368,
0.028816409409046173,
-0.38050681352615356,
0.1556314080953598,
-0.046343158930540085,
0.18907006084918976,
0.032989367842674255,
-0.3242684006690979,
-0.3419366776943207,
0.1487346589565277,
-0.06663517653942108,
-0.2571841776371002,
0.5585415959358215,
0.3594277501106262,
-0.009764139540493488,
-0.41679131984710693,
-0.004722884390503168,
0.07747028023004532,
0.07783199101686478,
-0.1452457159757614,
0.1495111584663391,
0.25018298625946045,
0.004169205669313669,
0.06493990123271942,
0.1351974457502365,
0.35993778705596924,
0.04887719824910164,
-0.023633332923054695,
-0.16531629860401154,
0.05375610291957855,
0.01759524457156658,
-0.11011039465665817,
0.20408287644386292,
-0.04556912183761597,
0.42314159870147705,
0.3586815297603607,
0.06612186133861542,
-0.22730587422847748,
-0.013710668310523033,
-0.08687307685613632,
0.2572362720966339,
-0.2923274636268616,
0.252544641494751,
-0.36960723996162415,
0.02262803539633751,
-0.09296191483736038,
0.011531390249729156,
-0.5672215819358826,
0.16959832608699799,
0.14680834114551544,
-0.01835993304848671,
-0.004948095418512821,
-0.028602441772818565,
0.04674481600522995,
-0.1530149132013321,
0.4417676627635956,
0.4194590747356415,
0.28565919399261475,
-0.3929922580718994,
-0.3780038058757782,
-0.5556574463844299,
0.2937077581882477,
-0.18137642741203308,
0.1456126570701599,
-0.20256909728050232,
0.06017088517546654,
0.12347697466611862,
0.11001450568437576,
0.3431588113307953,
0.19594264030456543,
0.1913859099149704,
-0.09961144626140594,
-0.16895708441734314,
-0.10985162854194641,
0.2226739227771759,
-0.2226105034351349,
0.05521382763981819,
-0.4527209997177124,
-0.029663747176527977,
-0.08000759780406952,
0.07211939990520477,
-0.04833690822124481,
0.08720575273036957,
0.11026514321565628,
-0.4262736737728119,
0.43385839462280273,
0.02669765055179596,
0.5156462788581848,
0.06752593070268631,
-0.4733675420284271,
-0.23565194010734558,
-0.15826211869716644,
-0.028075192123651505,
-0.27841421961784363,
-0.024801161140203476,
0.5825549960136414,
-0.15245957672595978,
-0.07134799659252167,
-0.38789796829223633,
0.5314276218414307,
0.3724001944065094,
0.23157832026481628,
-0.29523470997810364,
0.2969207167625427,
-0.5836755633354187,
0.27547362446784973,
0.04807955026626587,
0.2640865445137024,
0.11512535065412521,
0.14233173429965973,
-0.640569269657135,
-0.5447109341621399,
0.5251250267028809,
-0.6823354363441467,
-0.1140260398387909,
0.28988832235336304,
0.24787062406539917,
0.03450297564268112,
-0.1271544098854065,
-0.5278392434120178,
0.12671560049057007,
0.17625781893730164,
-0.10008388757705688,
-0.3245912194252014,
0.00695228623226285,
-0.18208329379558563,
-0.12201361358165741,
0.14656682312488556,
0.2175285518169403,
0.2876185476779938,
-0.21722769737243652,
0.0693417638540268,
-0.2737220227718353
] |
https://github.com/huggingface/datasets/issues/1706 | Error when downloading a large dataset on slow connection. | Hi ! Is this an issue you have with `openwebtext` specifically or also with other datasets ?
It looks like the downloaded file is corrupted and can't be extracted using `tarfile`.
Could you try loading it again with
```python
import datasets
datasets.load_dataset("openwebtext", download_mode="force_redownload")
``` | I receive the following error after about an hour trying to download the `openwebtext` dataset.
The code used is:
```python
import datasets
datasets.load_dataset("openwebtext")
```
> Traceback (most recent call last): [4/28]
> File "<stdin>", line 1, in <module>
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/site-packages/datasets/load.py", line 610, in load_dataset
> ignore_verifications=ignore_verifications,
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/site-packages/datasets/builder.py", line 515, in download_and_prepare
> dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/site-packages/datasets/builder.py", line 570, in _download_and_prepare
> split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
> File "/home/lucadiliello/.cache/huggingface/modules/datasets_modules/datasets/openwebtext/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02/openwebtext.py", line 62, in _split_generators
> dl_dir = dl_manager.download_and_extract(_URL)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
> return self.extract(self.download(url_or_urls))
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 235, in extract
> num_proc=num_proc,
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
> return function(data_struct)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 343, in cached_path
> tar_file.extractall(output_path_extracted)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/tarfile.py", line 2000, in extractall
> numeric_owner=numeric_owner)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/tarfile.py", line 2042, in extract
> numeric_owner=numeric_owner)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/tarfile.py", line 2112, in _extract_member
> self.makefile(tarinfo, targetpath)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/tarfile.py", line 2161, in makefile
> copyfileobj(source, target, tarinfo.size, ReadError, bufsize)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/tarfile.py", line 253, in copyfileobj
> buf = src.read(remainder)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/lzma.py", line 200, in read
> return self._buffer.read(size)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/_compression.py", line 68, in readinto
> data = self.read(len(byte_view))
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/_compression.py", line 99, in read
> raise EOFError("Compressed file ended before the "
> EOFError: Compressed file ended before the end-of-stream marker was reached
| 44 | Error when downloading a large dataset on slow connection.
I receive the following error after about an hour trying to download the `openwebtext` dataset.
The code used is:
```python
import datasets
datasets.load_dataset("openwebtext")
```
> Traceback (most recent call last): [4/28]
> File "<stdin>", line 1, in <module>
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/site-packages/datasets/load.py", line 610, in load_dataset
> ignore_verifications=ignore_verifications,
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/site-packages/datasets/builder.py", line 515, in download_and_prepare
> dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/site-packages/datasets/builder.py", line 570, in _download_and_prepare
> split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
> File "/home/lucadiliello/.cache/huggingface/modules/datasets_modules/datasets/openwebtext/5c636399c7155da97c982d0d70ecdce30fbca66a4eb4fc768ad91f8331edac02/openwebtext.py", line 62, in _split_generators
> dl_dir = dl_manager.download_and_extract(_URL)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 254, in download_and_extract
> return self.extract(self.download(url_or_urls))
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 235, in extract
> num_proc=num_proc,
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
> return function(data_struct)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 343, in cached_path
> tar_file.extractall(output_path_extracted)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/tarfile.py", line 2000, in extractall
> numeric_owner=numeric_owner)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/tarfile.py", line 2042, in extract
> numeric_owner=numeric_owner)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/tarfile.py", line 2112, in _extract_member
> self.makefile(tarinfo, targetpath)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/tarfile.py", line 2161, in makefile
> copyfileobj(source, target, tarinfo.size, ReadError, bufsize)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/tarfile.py", line 253, in copyfileobj
> buf = src.read(remainder)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/lzma.py", line 200, in read
> return self._buffer.read(size)
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/_compression.py", line 68, in readinto
> data = self.read(len(byte_view))
> File "/home/lucadiliello/anaconda3/envs/nlp/lib/python3.7/_compression.py", line 99, in read
> raise EOFError("Compressed file ended before the "
> EOFError: Compressed file ended before the end-of-stream marker was reached
Hi ! Is this an issue you have with `openwebtext` specifically or also with other datasets ?
It looks like the downloaded file is corrupted and can't be extracted using `tarfile`.
Could you try loading it again with
```python
import datasets
datasets.load_dataset("openwebtext", download_mode="force_redownload")
``` | [
-0.4910077750682831,
0.027839932590723038,
-0.10269362479448318,
0.21930858492851257,
0.21971477568149567,
0.11000148952007294,
0.11827507615089417,
0.4798278510570526,
0.053742069751024246,
0.005826928187161684,
-0.16624683141708374,
-0.10805202275514603,
-0.020688537508249283,
0.0919337347149849,
-0.22185079753398895,
-0.11430927366018295,
-0.3376917541027069,
0.2518777847290039,
-0.11982379108667374,
-0.013228937983512878,
-0.2608829736709595,
0.10146338492631912,
-0.145431250333786,
0.09043610095977783,
0.028651587665081024,
-0.19736100733280182,
0.28136757016181946,
0.0957639217376709,
-0.32981738448143005,
-0.32420337200164795,
0.1182498186826706,
-0.0770614817738533,
-0.15717053413391113,
0.1978922039270401,
-0.0001039064591168426,
0.10978095233440399,
0.3197878301143646,
-0.012775625102221966,
-0.2622525691986084,
-0.012641205452382565,
-0.5175204277038574,
-0.4060268998146057,
-0.10653571784496307,
-0.23283524811267853,
0.14296381175518036,
-0.320547491312027,
-0.03690379485487938,
-0.40103286504745483,
0.20275092124938965,
0.34917810559272766,
0.31929677724838257,
0.4104015529155731,
0.26546207070350647,
-0.15681396424770355,
0.2949919104576111,
-0.3527446389198303,
-0.1403338760137558,
0.024208346381783485,
0.09668201208114624,
0.18455253541469574,
0.015871016308665276,
-0.02540634199976921,
-0.09778239578008652,
0.3270842134952545,
0.0858377143740654,
-0.11590412259101868,
0.13125799596309662,
-0.1467745453119278,
0.23320941627025604,
0.3168920874595642,
0.6235707402229309,
0.11867918819189072,
-0.20031505823135376,
-0.09855466336011887,
-0.1308957189321518,
-0.055616751313209534,
0.15186041593551636,
0.34984686970710754,
-0.26333552598953247,
0.16817080974578857,
-0.09052713960409164,
-0.1982220858335495,
-0.11848944425582886,
0.13735565543174744,
-0.23899058997631073,
0.20953479409217834,
-0.11982996016740799,
0.16062094271183014,
0.083746999502182,
-0.03401665762066841,
0.1818952113389969,
-0.22364111244678497,
0.005741924978792667,
-0.019328435882925987,
-0.3181529641151428,
0.08715298771858215,
0.15870799124240875,
0.007156555075198412,
0.1576056331396103,
0.15614664554595947,
0.18068522214889526,
-0.0814053937792778,
-0.14556114375591278,
0.03432914987206459,
0.24853044748306274,
0.18813003599643707,
-0.23942822217941284,
-0.18370455503463745,
0.336980938911438,
0.009760167449712753,
0.08635631948709488,
-0.024598849937319756,
-0.056111834943294525,
-0.4480530321598053,
0.06911694258451462,
-0.06655959784984589,
0.4185084402561188,
-0.05008236691355705,
-0.6267602443695068,
0.08475971221923828,
0.017158756032586098,
0.09170202910900116,
0.09746194630861282,
0.1347823590040207,
-0.33482474088668823,
0.1765514463186264,
0.27555474638938904,
-0.08549864590167999,
-0.2178017944097519,
-0.25561797618865967,
-0.28757092356681824,
-0.024829264730215073,
-0.00039864968857727945,
-0.15892960131168365,
0.08779021352529526,
-0.05394883453845978,
0.1952296942472458,
-0.14222471415996552,
-0.09105977416038513,
-0.05169441178441048,
-0.011624928563833237,
-0.27979812026023865,
-0.04724128171801567,
0.4205085337162018,
-0.11708386242389679,
0.21701371669769287,
0.07140323519706726,
0.06809616833925247,
-0.16186565160751343,
0.09302082657814026,
-0.148138627409935,
-0.544823169708252,
-0.20401309430599213,
0.2917512059211731,
-0.1607731431722641,
-0.11633702367544174,
0.06747297197580338,
-0.17781774699687958,
0.06017199158668518,
-0.06220543384552002,
-0.2368813306093216,
-0.13592584431171417,
-0.30019253492355347,
-0.06435176730155945,
0.17001689970493317,
0.4760255217552185,
-0.14761978387832642,
0.11281159520149231,
-0.15832436084747314,
-0.09009687602519989,
0.10993678122758865,
0.3871323764324188,
-0.2834581732749939,
0.34396839141845703,
-0.1608300656080246,
-0.03276804834604263,
0.4121796190738678,
-0.202758327126503,
-0.4505094885826111,
0.41903188824653625,
-0.2133527249097824,
-0.01754889264702797,
-0.015094616450369358,
-0.01559858862310648,
0.24755951762199402,
-0.24890221655368805,
0.060009147971868515,
0.40462735295295715,
-0.2269219011068344,
0.18323209881782532,
-0.287735253572464,
-0.3469766080379486,
0.044590771198272705,
0.3140447735786438,
0.15437375009059906,
-0.09752759337425232,
0.0738600343465805,
0.3041228652000427,
0.10834739357233047,
0.24218560755252838,
0.18196050822734833,
0.2064584195613861,
-0.013302828185260296,
0.012964588589966297,
-0.2803221344947815,
0.09755726903676987,
-0.24673636257648468,
0.22624045610427856,
0.20034156739711761,
0.12436433881521225,
-0.12025655061006546,
0.04992976784706116,
-0.5512598752975464,
-0.006460243370383978,
-0.10389763861894608,
0.2097594141960144,
0.19603638350963593,
-0.04587074741721153,
0.14511822164058685,
0.28511351346969604,
0.13299743831157684,
0.22758904099464417,
0.05209054797887802,
-0.050249017775058746,
-0.05800321698188782,
0.08377700299024582,
-0.05319258198142052,
0.06554200500249863,
0.3550401031970978,
-0.2205493301153183,
-0.029208339750766754,
-0.07982580363750458,
-0.2772211730480194,
0.2578871548175812,
-0.17337171733379364,
0.035622309893369675,
-0.023228401318192482,
0.1471143513917923,
0.11603747308254242,
-0.16420777142047882,
0.06791065633296967,
0.10627366602420807,
0.3960360288619995,
-0.060612525790929794,
0.1969255805015564,
-0.0338585264980793,
0.11030165106058121,
-0.059117041528224945,
0.043575115501880646,
0.07123777270317078,
0.31670042872428894,
-0.13126349449157715,
0.24266193807125092,
0.07664240151643753,
0.21932558715343475,
0.17953039705753326,
0.10726840794086456,
-0.05420180782675743,
0.08306712657213211,
0.004687249194830656,
0.48411357402801514,
-0.046497683972120285,
0.04741138964891434,
0.2676333785057068,
0.05865862965583801,
-0.10773243755102158,
-0.2526250183582306,
0.4030236303806305,
0.4827994108200073,
0.08380057662725449,
0.25910860300064087,
0.04535752162337303,
0.1262771040201187,
-0.2797546684741974,
0.34924930334091187,
0.3568132221698761,
0.2874477505683899,
0.289643794298172,
0.030117793008685112,
-0.12305621057748795,
-0.28459399938583374,
-0.35353124141693115,
0.3476911187171936,
0.608285665512085,
-0.12310772389173508,
-0.07094300538301468,
-0.12473488599061966,
-0.07888885587453842,
0.12088768929243088,
0.04402369633316994,
-0.037757985293865204,
-0.42968377470970154,
-0.015417981892824173,
0.048508964478969574,
-0.14344319701194763,
0.14397530257701874,
-0.1638389378786087,
0.22402994334697723,
0.4131111204624176,
0.09951671212911606,
-0.12924982607364655,
-0.1925106644630432,
-0.15325751900672913,
0.11841227114200592,
0.369581013917923,
-0.018959056586027145,
0.2307114601135254,
-0.23340822756290436,
-0.07125761359930038,
-0.3312542140483856,
0.1231137365102768,
-0.01869257353246212,
0.042661771178245544,
0.010076220147311687,
0.29989930987358093,
0.44554799795150757,
0.15326781570911407,
-0.20301590859889984,
0.27088114619255066,
-0.210193932056427,
0.03256015107035637,
0.13564272224903107,
0.026124218478798866,
0.06465321779251099,
0.030995843932032585,
-0.2389449030160904,
-0.3499540090560913,
-0.6167090535163879,
0.1416400671005249,
-0.17128056287765503,
0.14455470442771912,
0.015633519738912582,
-0.11973763257265091,
0.12467928975820541,
0.06425760686397552,
0.08570834249258041,
-0.1934940218925476,
-0.5720275640487671,
0.36280858516693115,
-0.1544950306415558,
-0.3471922278404236,
-0.027420973405241966,
0.19020900130271912,
0.15653231739997864,
-0.0225833710283041,
-0.5953269004821777,
0.07838954776525497,
-0.44605669379234314,
0.08879322558641434,
-0.2679097056388855,
0.06846310198307037,
0.11310360580682755,
-0.09093678742647171,
-0.24215777218341827,
-0.03655333071947098,
0.06054640933871269,
0.10368593782186508,
-0.04704771190881729,
0.16889642179012299,
-0.11970409750938416,
0.3804696500301361,
0.16184981167316437,
0.08384276181459427,
0.23223811388015747,
-0.0005096248933114111,
0.37638059258461,
0.19728554785251617,
0.14738114178180695,
-0.06270493566989899,
-0.11184465140104294,
-0.06378299742937088,
-0.11939521133899689,
0.07315889745950699,
0.285354882478714,
0.020562680438160896,
-0.040165744721889496,
-0.38216742873191833,
-0.16346989572048187,
-0.08309248834848404,
-0.4175003170967102,
-0.05793129652738571,
-0.12601029872894287,
0.10068634152412415,
0.08358491957187653,
-0.049808625131845474,
-0.19368919730186462,
-0.11251473426818848,
-0.004255181644111872,
0.07426803559064865,
-0.04596881568431854,
-0.09274636954069138,
0.1516088843345642,
0.39763206243515015,
-0.713066816329956,
0.1737929731607437,
-0.003728148527443409,
0.41634678840637207,
0.005200644489377737,
0.07768899947404861,
0.11224100738763809,
-0.06666635721921921,
0.3629687428474426,
-0.09771489351987839,
0.38588860630989075,
0.04328355938196182,
0.1455279141664505,
-0.3521086573600769,
-0.02369997277855873,
-0.056103795766830444,
0.13757804036140442,
0.4362490773200989,
-0.2392549365758896,
-0.5605275630950928,
-0.04021872952580452,
0.32012853026390076,
0.12385986745357513,
-0.13074229657649994,
-0.23064866662025452,
-0.028775082901120186,
-0.6097216606140137,
-0.21581074595451355,
-0.1519477665424347,
0.23673787713050842,
0.23367458581924438,
0.13704939186573029,
-0.055098291486501694,
-0.09798227995634079,
0.012120146304368973,
0.034803636372089386,
-0.2681637406349182,
-0.08247411251068115,
-0.019051961600780487,
0.5001135468482971,
-0.012716897763311863,
0.0137652438133955,
0.16259890794754028,
0.6605310440063477,
0.14514940977096558,
-0.30087536573410034,
0.04131106287240982,
0.20783685147762299,
-0.1393834799528122,
0.25651755928993225,
-0.08011776953935623,
-0.03042975813150406,
-0.0860137864947319,
0.4644860327243805,
-0.02481946162879467,
0.31331369280815125,
0.3565274775028229,
-0.15735836327075958,
-0.3542948365211487,
-0.3228606879711151,
0.43649840354919434,
-0.07546208053827286,
0.06383053958415985,
0.4427608251571655,
0.09642470628023148,
0.052407167851924896,
0.06020016968250275,
-0.14925716817378998,
0.7682141065597534,
-0.11165762692689896,
-0.004782727919518948,
0.14781595766544342,
-0.2076026350259781,
0.3053106367588043,
-0.1913772076368332,
0.025693565607070923,
-0.13359257578849792,
-0.43220484256744385,
0.07879838347434998,
-0.042688362300395966,
0.022835925221443176,
0.1223486140370369,
-0.14776423573493958,
0.016964824870228767,
0.0007749415817670524,
-0.2142680436372757,
0.031474266201257706,
0.4907326400279999,
-0.5565981268882751,
-0.11662841588258743,
-0.12702378630638123,
0.22563675045967102,
-0.2551417946815491,
0.30925992131233215,
-0.1285843849182129,
-0.09009411185979843,
0.12200020253658295,
-0.2126542627811432,
-0.4187890887260437,
0.03473275527358055,
-0.22910857200622559,
0.4083174169063568,
-0.29460421204566956,
0.06522025167942047,
0.33615386486053467,
-0.06996233761310577,
0.03718661144375801,
0.19323594868183136,
-0.29726022481918335,
0.33358249068260193,
-0.2697314918041229,
-0.08724773675203323,
0.18527856469154358,
0.09799209982156754,
0.16249732673168182,
-0.2026277482509613,
-0.16561125218868256,
0.09420425444841385,
-0.16516053676605225,
-0.2059893161058426,
0.3227597773075104,
0.022929837927222252,
0.190651535987854,
-0.25751495361328125,
-0.20882722735404968,
-0.07848063856363297,
-0.15303373336791992,
-0.19436414539813995,
0.17327164113521576,
0.3055020570755005,
-0.14999277889728546,
0.3735976815223694,
-0.04565628990530968,
-0.4248383939266205,
-0.0651772990822792,
0.39254146814346313,
-0.2178732007741928,
0.12653635442256927,
0.4035223126411438,
0.10352034866809845,
-0.31736528873443604,
-0.19183216989040375,
0.2314174473285675,
-0.12026400864124298,
-0.584494411945343,
0.35712340474128723,
-0.26249146461486816,
0.28455063700675964,
0.030675426125526428,
0.40459907054901123,
0.17267009615898132,
0.12688486278057098,
0.1824619472026825,
-0.4925787150859833,
-0.06164436787366867,
-0.06797370314598083,
-0.08234430849552155,
0.18015934526920319,
-0.025284066796302795,
0.20499837398529053,
0.011921542696654797,
0.03580769523978233,
-0.3645218014717102,
0.35331645607948303,
-0.3521825969219208,
0.04741672798991203,
0.08719245344400406,
-0.34614670276641846,
0.3602369427680969,
0.10566791146993637,
0.15465013682842255,
0.05807507410645485,
-0.3006547689437866,
-0.2725975811481476,
-0.08072611689567566,
0.14277595281600952,
0.017848728224635124,
-0.43662217259407043,
0.24754907190799713,
-0.39798504114151,
-0.2433425933122635,
0.17063982784748077,
0.03916069120168686,
0.0720064789056778,
-0.10029536485671997,
-0.24054968357086182,
0.010566089302301407,
-0.025235489010810852,
-0.018757939338684082,
0.23667028546333313,
-0.19873493909835815,
0.3995850384235382,
0.13087469339370728,
0.2940322756767273,
0.08738455921411514,
-0.1530359536409378,
-0.23704656958580017,
0.07446273416280746,
0.003851610468700528,
-0.10785418748855591,
0.5733605623245239,
-0.30866098403930664,
-0.019714845344424248,
0.1899847388267517,
0.38392192125320435,
0.35243403911590576,
-0.011895982548594475,
-0.14055055379867554,
0.17007949948310852,
0.26973241567611694,
-0.24851982295513153,
-0.17764528095722198,
0.06306195259094238,
0.12714773416519165,
0.11009381711483002,
0.018802255392074585,
-0.01611369475722313,
-0.09893357753753662,
-0.36940881609916687,
-0.0019301360007375479,
0.4117058515548706,
0.33020639419555664,
-0.028756706044077873,
0.526248037815094,
0.003563049715012312,
-0.06398441642522812,
0.0594777911901474,
0.11783327162265778,
0.3483617901802063,
0.3944522440433502,
-0.24729840457439423,
0.3183894455432892,
-0.07963558286428452,
0.19705842435359955,
-0.28978464007377625,
-0.5639089345932007,
0.15553271770477295,
0.11428268253803253,
-0.11373591423034668,
0.05186040699481964,
0.07507668435573578,
0.14442327618598938,
-0.26966598629951477,
0.09642820805311203,
-0.3930128514766693,
0.5118333101272583,
0.046130795031785965,
-0.07318022847175598,
0.20719435811042786,
-0.0755225196480751,
-0.10881780833005905,
0.164520725607872,
-0.013795997947454453,
-0.03833455964922905,
0.06553622335195541,
0.17506016790866852,
0.10093594342470169,
-0.18918469548225403,
-0.030468011274933815,
-0.15904434025287628,
0.07753429561853409,
-0.3614947497844696,
0.03565937280654907,
0.33014413714408875,
-0.17943307757377625,
-0.10933709144592285,
0.5390258431434631,
0.420319527387619,
0.3193342983722687,
-0.005500911269336939,
0.08225370198488235,
0.02051410637795925,
0.027241865172982216,
-0.1774609386920929,
0.06284986436367035,
0.19288678467273712,
0.2628746032714844,
0.4981500208377838,
0.09664051979780197,
-0.2112581580877304,
-0.21730349957942963,
-0.011818716302514076,
-0.1849784106016159,
-0.041286878287792206,
0.18811160326004028,
-0.01304046344012022,
-0.05958498641848564,
-0.3763493001461029,
0.03290555626153946,
-0.08464816212654114,
0.08205244690179825,
-0.000893169257324189,
-0.3523810803890228,
0.20535771548748016,
-0.12162226438522339,
0.1146763488650322,
-0.35055863857269287,
0.6454352736473083,
0.21025300025939941,
0.1561593860387802,
-0.238763689994812,
-0.3794482350349426,
-0.4723808467388153,
0.11779896914958954,
-0.26688358187675476,
-0.1449926197528839,
0.13560891151428223,
0.289833664894104,
-0.22546367347240448,
0.15015815198421478,
0.09571724385023117,
0.40538206696510315,
-0.17343249917030334,
0.05575818940997124,
-0.3363560438156128,
-0.2513551712036133,
0.15098759531974792,
-0.09583883732557297,
-0.023181434720754623,
-0.49008023738861084,
0.24470849335193634,
-0.34840279817581177,
0.1998136341571808,
-0.24019858241081238,
-0.007663814816623926,
-0.12589366734027863,
0.00798189640045166,
0.37057992815971375,
0.15788725018501282,
0.2045781910419464,
0.07001855969429016,
-0.14509472250938416,
-0.08369433879852295,
-0.2595662474632263,
-0.1291935294866562,
0.19425708055496216,
0.1567397117614746,
0.016439737752079964,
0.06627378612756729,
0.1653202623128891,
-0.12365555763244629,
0.34536507725715637,
-0.19537238776683807,
0.3909790813922882,
-0.21614184975624084,
-0.15577733516693115,
-0.14254063367843628,
0.23171134293079376,
0.26006248593330383,
0.01181458868086338,
-0.10515514761209488,
0.06640232354402542,
-0.37196898460388184,
-0.45350414514541626,
0.5555469393730164,
0.1017126813530922,
-0.25954630970954895,
-0.16648630797863007,
0.2619673013687134,
0.11531465500593185,
0.049432072788476944,
-0.25186145305633545,
0.23960191011428833,
0.33479759097099304,
-0.046514153480529785,
-0.40820029377937317,
0.23297171294689178,
-0.014588539488613605,
-0.16790886223316193,
0.11086658388376236,
0.2559424638748169,
-0.06745491176843643,
-0.48432570695877075,
0.009041683748364449,
-0.03404592350125313
] |
https://github.com/huggingface/datasets/issues/1701 | Some datasets miss dataset_infos.json or dummy_data.zip | Thanks for reporting.
We should indeed add all the missing dummy_data.zip and also the dataset_infos.json at least for lm1b, reclor and wikihow.
For c4 I haven't tested the script and I think we'll require some optimizations regarding beam datasets before processing it.
| While working on dataset REAME generation script at https://github.com/madlag/datasets_readme_generator , I noticed that some datasets miss a dataset_infos.json :
```
c4
lm1b
reclor
wikihow
```
And some does not have a dummy_data.zip :
```
kor_nli
math_dataset
mlqa
ms_marco
newsgroup
qa4mre
qangaroo
reddit_tifu
super_glue
trivia_qa
web_of_science
wmt14
wmt15
wmt16
wmt17
wmt18
wmt19
xtreme
```
But it seems that some of those last do have a "dummy" directory .
| 42 | Some datasets miss dataset_infos.json or dummy_data.zip
While working on dataset REAME generation script at https://github.com/madlag/datasets_readme_generator , I noticed that some datasets miss a dataset_infos.json :
```
c4
lm1b
reclor
wikihow
```
And some does not have a dummy_data.zip :
```
kor_nli
math_dataset
mlqa
ms_marco
newsgroup
qa4mre
qangaroo
reddit_tifu
super_glue
trivia_qa
web_of_science
wmt14
wmt15
wmt16
wmt17
wmt18
wmt19
xtreme
```
But it seems that some of those last do have a "dummy" directory .
Thanks for reporting.
We should indeed add all the missing dummy_data.zip and also the dataset_infos.json at least for lm1b, reclor and wikihow.
For c4 I haven't tested the script and I think we'll require some optimizations regarding beam datasets before processing it.
| [
0.13598962128162384,
0.27314913272857666,
-0.046184055507183075,
0.2401537448167801,
0.28582724928855896,
0.3439725339412689,
0.21809352934360504,
0.0033974614925682545,
-0.04679195210337639,
0.03129402920603752,
0.1941789835691452,
0.06412878632545471,
-0.007530666422098875,
0.1257322132587433,
0.12291690707206726,
-0.003748481161892414,
0.3180769383907318,
0.15518367290496826,
0.08102882653474808,
-0.3036452829837799,
-0.6437273621559143,
0.2897528111934662,
-0.26620176434516907,
-0.2682594656944275,
-0.36907029151916504,
0.285279780626297,
-0.16640913486480713,
0.10718517750501633,
-0.07662057876586914,
-0.25844064354896545,
0.1300564706325531,
0.06214382126927376,
0.12418249994516373,
0.22002701461315155,
-0.00012188690016046166,
-0.1835249960422516,
0.33589643239974976,
-0.3184472322463989,
-0.6375690698623657,
0.13917286694049835,
-0.24617867171764374,
-0.5139757394790649,
-0.21165704727172852,
-0.03379379212856293,
0.08507084101438522,
-0.32837459444999695,
0.27605950832366943,
-0.43678468465805054,
0.025254609063267708,
0.28785184025764465,
0.13859587907791138,
0.010871601291000843,
0.005455907434225082,
0.019353827461600304,
0.4706353545188904,
0.588189423084259,
-0.036115746945142746,
0.02347021922469139,
-0.030868152156472206,
0.18765702843666077,
0.16875721514225006,
0.31286248564720154,
-0.00003208569614798762,
-0.042940787971019745,
0.2564951777458191,
0.06671685725450516,
-0.08036379516124725,
-0.3139196038246155,
0.09290428459644318,
0.03678479045629501,
0.5615600943565369,
-0.37028273940086365,
-0.5764215588569641,
-0.43741413950920105,
0.2442949414253235,
-0.014151830226182938,
0.2991718351840973,
0.18978042900562286,
0.24583792686462402,
-0.04969016835093498,
-0.11338605731725693,
-0.23677919805049896,
0.2306283414363861,
0.11290556192398071,
0.2745579183101654,
0.3560728132724762,
-0.013902493752539158,
0.1380821317434311,
-0.379266619682312,
0.050937335938215256,
0.5013103485107422,
-0.676180899143219,
-0.07218793034553528,
-0.0376383475959301,
-0.04088902473449707,
0.001707778312265873,
-0.2982945740222931,
-0.032323770225048065,
0.012689463794231415,
-0.028791388496756554,
-0.05225611478090286,
-0.0006028429488651454,
-0.05761146917939186,
0.015918171033263206,
-0.06563235819339752,
0.06392581760883331,
0.2777884006500244,
0.46645432710647583,
0.09378190338611603,
-0.21958491206169128,
0.2740787863731384,
-0.09367863833904266,
-0.14244461059570312,
-0.08494965732097626,
-0.12786521017551422,
0.33481213450431824,
-0.22487573325634003,
0.07161922007799149,
-0.30748218297958374,
0.020701752975583076,
-0.19012778997421265,
-0.13874410092830658,
-0.13898329436779022,
0.020820744335651398,
-0.09317167848348618,
0.5326840281486511,
0.054150477051734924,
0.1507943570613861,
0.057855237275362015,
-0.4711918830871582,
-0.14953051507472992,
0.046050842851400375,
-0.2453964352607727,
0.20489835739135742,
0.2601968050003052,
0.2685766816139221,
0.5244519710540771,
-0.09943228960037231,
-0.2592099905014038,
0.04341820999979973,
0.32551607489585876,
0.1851343810558319,
-0.02683597430586815,
0.2875717878341675,
0.00949012115597725,
0.3180416226387024,
-0.19787724316120148,
0.0012947353534400463,
0.0012153986608609557,
0.27541467547416687,
-0.2969891130924225,
-0.18939007818698883,
-0.18476541340351105,
0.13888204097747803,
-0.20816826820373535,
0.05841510742902756,
-0.40759217739105225,
0.027293123304843903,
0.04368799179792404,
-0.23901288211345673,
0.04373376443982124,
-0.12279006838798523,
0.01987581141293049,
-0.2703767418861389,
0.13944216072559357,
0.4934489130973816,
-0.32408520579338074,
-0.06441117823123932,
-0.3538261651992798,
0.15647293627262115,
0.30936673283576965,
-0.12110204994678497,
0.03910982236266136,
0.15856455266475677,
-0.5670546293258667,
-0.1100332960486412,
0.3649956285953522,
-0.4209955930709839,
0.05156950280070305,
-0.04617356136441231,
0.1696949154138565,
0.03788970038294792,
0.23270905017852783,
0.20333126187324524,
-0.21294234693050385,
-0.03238607943058014,
-0.18977847695350647,
-0.028006620705127716,
-0.09735389053821564,
-0.014575600624084473,
-0.26131001114845276,
-0.13723748922348022,
0.201224222779274,
0.30412569642066956,
0.0936594307422638,
0.07708550244569778,
-0.07928142696619034,
-0.14325937628746033,
0.08901693671941757,
-0.0358114019036293,
0.19865460693836212,
0.30759721994400024,
-0.3370242416858673,
0.11967188119888306,
0.3427754342556,
0.22895880043506622,
-0.9142354130744934,
0.13897106051445007,
-0.04757695645093918,
-0.1395033597946167,
0.02722357213497162,
-0.34272414445877075,
-0.06932435184717178,
-0.2794784903526306,
-0.0491129569709301,
-0.2503946125507355,
0.008754681795835495,
0.4585583508014679,
0.2593405544757843,
-0.13260063529014587,
-0.2570735216140747,
0.030509529635310173,
-0.17287731170654297,
0.2510373890399933,
-0.522463321685791,
0.37184232473373413,
0.004180094692856073,
0.10326102375984192,
0.19181831181049347,
0.1010754331946373,
0.12006250768899918,
-0.17719101905822754,
0.011364517733454704,
0.36517590284347534,
0.13793396949768066,
0.0009054725524038076,
0.26337140798568726,
0.21097208559513092,
0.08766511082649231,
-0.07072813808917999,
0.19874726235866547,
0.11730804294347763,
0.05581524223089218,
-0.1434941589832306,
-0.008680939674377441,
0.27171996235847473,
-0.11131511628627777,
0.01777327060699463,
-0.1500588357448578,
-0.02674630470573902,
0.2357839196920395,
0.06850279122591019,
0.1884487420320511,
-0.27203407883644104,
0.057404469698667526,
0.30310991406440735,
0.3498010039329529,
0.05650295689702034,
-0.12954437732696533,
0.09570121765136719,
0.4859599173069,
-0.31836915016174316,
-0.027659418061375618,
-0.02123739942908287,
-0.39047476649284363,
-0.044519226998090744,
0.22288259863853455,
0.27443185448646545,
0.4791938364505768,
0.2456192523241043,
-0.22152702510356903,
-0.1802908033132553,
0.11413602530956268,
-0.36484700441360474,
0.19159744679927826,
0.09797603636980057,
-0.15540005266666412,
0.33368706703186035,
0.05213010683655739,
0.03746774047613144,
-0.4076135754585266,
-0.030065855011343956,
0.3921744227409363,
0.15415330231189728,
-0.3328436017036438,
-0.2906152606010437,
-0.0937221571803093,
-0.23018354177474976,
-0.08030010759830475,
0.27704620361328125,
-0.16407325863838196,
-0.5771502256393433,
0.2277849316596985,
0.014821337535977364,
-0.32270240783691406,
0.3482871353626251,
0.25427162647247314,
0.06878380477428436,
-0.35345277190208435,
0.07685369998216629,
-0.613867998123169,
-0.003677378175780177,
-0.268416166305542,
0.030139245092868805,
0.13929980993270874,
0.1042587161064148,
0.1292714774608612,
-0.721015214920044,
0.16491134464740753,
-0.5698031783103943,
-0.28021642565727234,
0.05808475986123085,
-0.007290809880942106,
0.18892933428287506,
0.2599307596683502,
0.09868566691875458,
-0.0037968100514262915,
-0.12080106139183044,
0.07121767848730087,
0.1265304684638977,
-0.17687354981899261,
0.06779276579618454,
-0.011405901983380318,
-0.012120935134589672,
-0.19999219477176666,
-0.38563594222068787,
-0.25959938764572144,
-0.2240769863128662,
-0.16738639771938324,
-0.1362227350473404,
0.02122577093541622,
0.03383542597293854,
-0.13631196320056915,
-0.0333578959107399,
0.026316195726394653,
-0.1303357183933258,
-0.15729397535324097,
-0.45547765493392944,
0.5669631361961365,
-0.16288362443447113,
-0.046244073659181595,
0.2096756547689438,
-0.38757529854774475,
0.009236265905201435,
-0.03415326029062271,
-0.6006202697753906,
-0.21453571319580078,
0.03656735271215439,
0.06061587855219841,
-0.0902964249253273,
0.049713704735040665,
0.38131245970726013,
0.31260451674461365,
0.09705065190792084,
-0.28820565342903137,
-0.19562311470508575,
-0.06777051836252213,
-0.13741859793663025,
0.4222305417060852,
-0.27938684821128845,
-0.02241509221494198,
-0.3571072518825531,
0.3981359004974365,
0.2477407455444336,
-0.1056588664650917,
0.10831763595342636,
0.11538742482662201,
0.4375532269477844,
-0.017189037054777145,
0.060518644750118256,
0.056720148772001266,
-0.012633702717721462,
0.20052334666252136,
0.3110233545303345,
0.07854726910591125,
0.18356853723526,
-0.02567487396299839,
0.1284794956445694,
-0.3604442775249481,
-0.18204279243946075,
0.023263869807124138,
-0.11964289844036102,
0.09113410860300064,
0.20045851171016693,
0.08881761133670807,
-0.2328086942434311,
-0.19619399309158325,
0.09465459734201431,
0.2079751044511795,
0.5585260987281799,
0.050357408821582794,
-0.4174320697784424,
-0.18665295839309692,
-0.010708649642765522,
0.4025135934352875,
0.15004129707813263,
0.267631471157074,
0.24017006158828735,
0.2874743342399597,
-0.24475231766700745,
0.21707630157470703,
0.5383942127227783,
-1.0103071928024292,
-0.20034633576869965,
0.04669312760233879,
0.6165086627006531,
-0.25420790910720825,
-0.11709237098693848,
0.025624480098485947,
0.08292386680841446,
0.013454083353281021,
0.18021254241466522,
-0.21288153529167175,
-0.1615295708179474,
0.2655404806137085,
0.4586065709590912,
0.017991403117775917,
-0.24471639096736908,
-0.07810654491186142,
-0.055467329919338226,
-0.280161589384079,
-0.4896790385246277,
-0.0010653872741386294,
-0.2761235535144806,
-0.009052498266100883,
-0.20399914681911469,
0.02778512053191662,
-0.22883416712284088,
0.1820271909236908,
-0.010014907456934452,
0.22761905193328857,
0.3038012981414795,
0.3169380724430084,
0.11772564798593521,
0.24443800747394562,
0.5586234331130981,
0.563581645488739,
-0.3033979833126068,
-0.3029632568359375,
0.15038609504699707,
-0.13437135517597198,
0.3772442936897278,
0.21454370021820068,
0.06837530434131622,
-0.06931660324335098,
-0.26527124643325806,
-0.036234933882951736,
-0.2845918834209442,
0.17707130312919617,
0.16456572711467743,
0.05340750142931938,
-0.3091239631175995,
-0.40640518069267273,
0.2014540731906891,
0.05411834642291069,
-0.12484348565340042,
0.33890998363494873,
0.13464145362377167,
-0.3746580183506012,
0.3007405996322632,
-0.11529142409563065,
1.0027081966400146,
0.1277337372303009,
0.08366783708333969,
-0.0947585329413414,
0.011590701527893543,
0.6359564661979675,
-0.3154109716415405,
0.12331879138946533,
-0.12495218962430954,
0.0711187794804573,
-0.010000498965382576,
-0.00937782321125269,
0.14714758098125458,
0.3722655773162842,
-0.03287287428975105,
0.5601639151573181,
0.09387543052434921,
0.41752564907073975,
-0.05448905751109123,
0.2500443160533905,
-0.25376155972480774,
-0.18093253672122955,
0.2739751935005188,
0.01620272733271122,
-0.0426952987909317,
0.0829453095793724,
0.05953524634242058,
-0.024552278220653534,
-0.1429385095834732,
-0.007843293249607086,
-0.2475024312734604,
-0.028225483372807503,
-0.3308623731136322,
-0.12775501608848572,
-0.02890958823263645,
-0.0725112333893776,
-0.00677612004801631,
0.16891638934612274,
0.5375504493713379,
0.27030643820762634,
-0.06214425340294838,
0.2709711492061615,
-0.081920325756073,
0.09225419163703918,
0.04116968810558319,
-0.0740421861410141,
-0.10286907851696014,
0.05627799406647682,
-0.07442432641983032,
-0.007988796569406986,
-0.4121251404285431,
0.0052622403018176556,
-0.4038649797439575,
-0.46670815348625183,
0.20694808661937714,
-0.17760546505451202,
0.2608368992805481,
0.09410439431667328,
-0.2116098701953888,
-0.3247472047805786,
0.06879355013370514,
-0.02424856834113598,
0.2117006778717041,
-0.02090204320847988,
-0.3105009198188782,
-0.15511707961559296,
-0.47543200850486755,
0.1253659427165985,
0.1770389974117279,
-0.10098002105951309,
0.4011858105659485,
-0.17096076905727386,
-0.11627653241157532,
-0.16600580513477325,
0.2657424211502075,
0.1273714303970337,
-0.28221577405929565,
0.07177892327308655,
-0.05164165794849396,
-0.26861369609832764,
-0.049222417175769806,
0.06023145094513893,
0.22990524768829346,
-0.0214544665068388,
0.16002686321735382,
-0.44660213589668274,
-0.2635623812675476,
0.1815005987882614,
0.16034385561943054,
0.10724317282438278,
-0.1957225501537323,
-0.1532743126153946,
-0.03342156857252121,
0.023511281237006187,
-0.20372961461544037,
-0.08900652825832367,
-0.018081041052937508,
0.3167985677719116,
0.0886944830417633,
0.2731159031391144,
0.15226593613624573,
-0.1340782642364502,
0.005869511514902115,
0.024239148944616318,
0.020987968891859055,
-0.004707786254584789,
0.032096270471811295,
0.20493747293949127,
0.1247790977358818,
-0.0957622304558754,
0.24379298090934753,
-0.06668975204229355,
-0.14847348630428314,
-0.2659062147140503,
-0.26230955123901367,
-0.11231379210948944,
-0.0013644653372466564,
0.4972839951515198,
0.11438150703907013,
0.04486941546201706,
-0.07638751715421677,
0.05793397128582001,
-0.06577817350625992,
0.5421608090400696,
-0.17338435351848602,
0.20780766010284424,
0.31883111596107483,
0.0422804020345211,
-0.18317444622516632,
-0.09309633821249008,
-0.23731651902198792,
0.10441339761018753,
0.4356822371482849,
-0.2738848626613617,
0.12214571982622147,
0.2756360173225403,
-0.007941476069390774,
0.342730849981308,
-0.2410663366317749,
-0.06177811324596405,
0.2770421504974365,
0.11772619932889938,
-0.37035226821899414,
-0.17710654437541962,
0.24788253009319305,
0.3092760145664215,
0.06488361954689026,
0.15927672386169434,
0.13378436863422394,
-0.24670180678367615,
0.2583230137825012,
0.13628429174423218,
0.3094520568847656,
-0.0671510100364685,
0.3148546516895294,
0.22309111058712006,
0.1964632123708725,
0.2141835242509842,
-0.043370321393013,
0.014107037335634232,
-0.07171739637851715,
0.555901288986206,
0.14223751425743103,
0.6019518375396729,
0.19850777089595795,
0.07062490284442902,
0.07549548894166946,
-0.3192104399204254,
0.3439367711544037,
0.5413246154785156,
-0.06922303885221481,
0.29225078225135803,
0.1845744550228119,
-0.01804175227880478,
-0.12180255353450775,
0.14676372706890106,
-0.18064551055431366,
-0.00219142553396523,
-0.1744202971458435,
0.0431995615363121,
-0.21662569046020508,
-0.06618938595056534,
-0.2614700198173523,
0.02603466808795929,
0.045484740287065506,
-0.227748841047287,
0.20867639780044556,
0.006414670497179031,
-0.15408778190612793,
-0.15416501462459564,
0.42066776752471924,
0.11756476759910583,
0.3643219769001007,
-0.22719842195510864,
0.22313669323921204,
0.3812369406223297,
-0.3172610104084015,
0.40523597598075867,
0.33394214510917664,
0.22213701903820038,
0.07244426012039185,
-0.01969015970826149,
-0.11729517579078674,
0.014567182399332523,
-0.07873152941465378,
0.08019449561834335,
0.47630590200424194,
-0.08631666004657745,
-0.3060063421726227,
0.1655380129814148,
0.11671987175941467,
-0.1239078938961029,
-0.17518793046474457,
0.23723097145557404,
-0.1447286605834961,
-0.27332741022109985,
0.32081204652786255,
-0.2983168065547943,
-0.079009048640728,
-0.10847030580043793,
-0.017569176852703094,
-0.39553096890449524,
-0.3162436783313751,
0.3800297677516937,
0.0296806450933218,
-0.05071451887488365,
-0.21181432902812958,
0.031688105314970016,
-0.261491984128952,
0.4447883665561676,
0.4153662621974945,
-0.09510097652673721,
-0.332217812538147,
-0.29515576362609863,
-0.2513732612133026,
0.04176565632224083,
-0.051259975880384445,
0.005200416315346956,
-0.10527026653289795,
-0.12976570427417755,
0.1619137078523636,
0.012168549932539463,
-0.10802385210990906,
0.38310950994491577,
0.10304348170757294,
0.23122458159923553,
-0.4300258457660675,
-0.335735559463501,
-0.08542391657829285,
0.09871825575828552,
0.08124114573001862,
-0.46914300322532654,
0.28246283531188965,
0.12354018539190292,
-0.10034200549125671,
0.033390507102012634,
0.0006551301339641213,
0.48990440368652344,
0.37785643339157104,
0.4759448170661926,
0.16563984751701355,
0.4670661389827728,
-0.2572009265422821,
-0.25809070467948914,
0.08035177737474442,
-0.24683251976966858,
-0.04214111343026161,
0.38375553488731384,
0.01604871079325676,
0.3203466832637787,
-0.3290715515613556,
0.12578609585762024,
-0.1664903610944748,
-0.20418831706047058,
-0.05952030047774315,
0.39033788442611694,
-0.5664529800415039,
0.3764692544937134,
-0.18354621529579163,
0.20386245846748352,
0.12118390947580338,
-0.11356968432664871,
0.021994169801473618,
0.10335453599691391,
-0.21407552063465118,
-0.22905956208705902,
0.3075905442237854,
-0.2217804491519928,
-0.08555269986391068,
-0.008397992700338364,
0.13462765514850616,
-0.13755053281784058,
0.2028888463973999,
-0.5929296016693115,
-0.021100135520100594,
0.516875147819519,
0.2246754765510559,
0.05593954026699066,
-0.01970684714615345,
0.16010957956314087,
-0.12290499359369278,
-0.007344585843384266,
0.13207779824733734,
0.05315722897648811,
-0.3395538032054901,
0.1637694239616394,
-0.25399354100227356
] |
https://github.com/huggingface/datasets/issues/1687 | Question: Shouldn't .info be a part of DatasetDict? | We could do something. There is a part of `.info` which is split specific (cache files, split instructions) but maybe if could be made to work. | Currently, only `Dataset` contains the .info or .features, but as many datasets contains standard splits (train, test) and thus the underlying information is the same (or at least should be) across the datasets.
For instance:
```
>>> ds = datasets.load_dataset("conll2002", "es")
>>> ds.info
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'DatasetDict' object has no attribute 'info'
```
I could imagine that this wouldn't work for datasets dicts which hold entirely different datasets (multimodal datasets), but it seems odd that splits of the same dataset is treated the same as what is essentially different datasets.
Intuitively it would also make sense that if a dataset is supplied via. the load_dataset that is have a common .info which covers the entire dataset.
It is entirely possible that I am missing another perspective | 26 | Question: Shouldn't .info be a part of DatasetDict?
Currently, only `Dataset` contains the .info or .features, but as many datasets contains standard splits (train, test) and thus the underlying information is the same (or at least should be) across the datasets.
For instance:
```
>>> ds = datasets.load_dataset("conll2002", "es")
>>> ds.info
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'DatasetDict' object has no attribute 'info'
```
I could imagine that this wouldn't work for datasets dicts which hold entirely different datasets (multimodal datasets), but it seems odd that splits of the same dataset is treated the same as what is essentially different datasets.
Intuitively it would also make sense that if a dataset is supplied via. the load_dataset that is have a common .info which covers the entire dataset.
It is entirely possible that I am missing another perspective
We could do something. There is a part of `.info` which is split specific (cache files, split instructions) but maybe if could be made to work. | [
0.09181168675422668,
-0.1329856961965561,
-0.06010354682803154,
0.3179159462451935,
0.1159815639257431,
0.285230815410614,
0.48426657915115356,
0.10404092818498611,
0.11708982288837433,
-0.021073853597044945,
0.11989393830299377,
-0.012208228930830956,
0.11281293630599976,
0.5723267197608948,
-0.0662025660276413,
-0.1641826033592224,
-0.07059875130653381,
0.14871567487716675,
0.40086644887924194,
-0.21728703379631042,
-0.03505053371191025,
-0.07960242033004761,
-0.2838987708091736,
0.06978319585323334,
-0.5201465487480164,
0.160234272480011,
-0.17046397924423218,
0.11482406407594681,
0.15875403583049774,
-0.21717889606952667,
0.33595171570777893,
0.07911710441112518,
0.22340574860572815,
0.09510166198015213,
-0.00011842326784972101,
0.07103130221366882,
0.4172877073287964,
-0.10055648535490036,
-0.5858296751976013,
-0.05111197009682655,
-0.49218660593032837,
-0.20758207142353058,
0.2555394172668457,
-0.3876202404499054,
0.11474526673555374,
-0.030513914301991463,
0.01984044723212719,
-0.38702505826950073,
-0.13678570091724396,
0.04250204935669899,
0.09134645015001297,
0.20891699194908142,
0.07812485843896866,
0.12497569620609283,
0.42831769585609436,
0.4408697187900543,
-0.0037692745681852102,
-0.07384444028139114,
0.007727726362645626,
0.30800506472587585,
0.12723955512046814,
0.3423571288585663,
-0.02321292832493782,
0.13375531136989594,
0.34170225262641907,
0.13278205692768097,
0.1155051440000534,
-0.059151049703359604,
0.1476280838251114,
0.22836673259735107,
0.7229959964752197,
-0.14219658076763153,
-0.5014354586601257,
-0.49065765738487244,
0.009536921046674252,
-0.06058552488684654,
0.04519377648830414,
0.2498721480369568,
0.10051428526639938,
0.2560993731021881,
-0.009632842615246773,
-0.2655453085899353,
0.009119022637605667,
0.059093497693538666,
-0.31695058941841125,
0.26606592535972595,
-0.2420036792755127,
0.37247365713119507,
-0.14990951120853424,
0.2580593228340149,
0.3194071650505066,
-0.42239323258399963,
-0.15932463109493256,
-0.34876683354377747,
0.09910094738006592,
-0.14850907027721405,
-0.3174654543399811,
0.05856560915708542,
0.22378656268119812,
0.09283453971147537,
-0.10942286998033524,
0.12333045154809952,
-0.3389114737510681,
0.1974085569381714,
0.6273680925369263,
-0.13405871391296387,
0.4555549621582031,
0.31317847967147827,
0.4928690195083618,
-0.2206748127937317,
-0.17825287580490112,
-0.07309432327747345,
0.03296980634331703,
0.14715424180030823,
0.059896185994148254,
-0.08459305763244629,
0.3374170958995819,
-0.16482144594192505,
-0.3835938274860382,
-0.13048678636550903,
-0.1527525782585144,
-0.24346953630447388,
0.18983985483646393,
-0.005065601784735918,
0.1400831788778305,
0.2932526171207428,
-0.12798890471458435,
0.03538527712225914,
0.22713373601436615,
-0.4226887822151184,
-0.12937180697917938,
-0.2358970195055008,
-0.038582853972911835,
0.3673228919506073,
-0.19748760759830475,
-0.1680683195590973,
0.348337858915329,
-0.14820560812950134,
-0.07173247635364532,
-0.05111901834607124,
0.08086279779672623,
-0.19570700824260712,
0.06543190777301788,
0.3250557482242584,
-0.08243437111377716,
0.3903430998325348,
0.1030832901597023,
-0.1345701664686203,
-0.266169011592865,
0.15044419467449188,
-0.640815794467926,
-0.4634258449077606,
0.22435615956783295,
0.05305034667253494,
-0.13586938381195068,
0.22092437744140625,
-0.11077505350112915,
0.2632293105125427,
0.3134663999080658,
-0.09082627296447754,
0.1531967967748642,
-0.13566462695598602,
-0.29644107818603516,
-0.19266699254512787,
0.2833110988140106,
0.210468128323555,
-0.3970862030982971,
-0.21362778544425964,
-0.15044403076171875,
-0.14361529052257538,
0.029990462586283684,
0.12126483768224716,
-0.3859357237815857,
0.284105509519577,
-0.22482676804065704,
-0.3534811735153198,
0.33479321002960205,
-0.19461114704608917,
-0.11446864902973175,
0.4579930007457733,
0.18612389266490936,
0.0381091833114624,
0.10505501925945282,
0.27368229627609253,
-0.058542776852846146,
0.07131825387477875,
0.10393519699573517,
0.25837045907974243,
-0.23530209064483643,
-0.2740972936153412,
0.00029569712933152914,
-0.1138075664639473,
0.31057751178741455,
0.21310965716838837,
-0.11594455689191818,
-0.038464512676000595,
-0.23444870114326477,
0.21092727780342102,
0.365512877702713,
-0.02728116326034069,
0.09555864334106445,
0.01405936386436224,
0.10287123918533325,
0.4357924163341522,
0.28659588098526,
-0.2845994830131531,
-0.490410178899765,
0.13116486370563507,
0.1655052751302719,
-0.3954727351665497,
0.12041059881448746,
-0.42007842659950256,
0.0800233781337738,
-0.1782495230436325,
-0.15725025534629822,
-0.37464475631713867,
-0.002230539685115218,
-0.15081603825092316,
-0.1624034345149994,
-0.17775583267211914,
-0.4235557019710541,
0.42395493388175964,
-0.24992163479328156,
0.11527495831251144,
-0.22897686064243317,
0.23946954309940338,
0.038787081837654114,
0.2098434865474701,
-0.19896399974822998,
0.2727726399898529,
-0.06571883708238602,
-0.04917934164404869,
0.1107368916273117,
0.3047861158847809,
0.5942279696464539,
-0.28613418340682983,
0.10419643670320511,
0.02036084048449993,
-0.016693273559212685,
-0.11246181279420853,
0.11441045254468918,
-0.06189834326505661,
0.0706392303109169,
-0.29375872015953064,
-0.10927155613899231,
0.16071008145809174,
-0.1580694317817688,
0.3453451991081238,
0.054377444088459015,
0.17434175312519073,
0.1691737025976181,
-0.040646977722644806,
-0.2175852507352829,
-0.3095991611480713,
-0.27819833159446716,
-0.28349629044532776,
0.3399197459220886,
0.36743077635765076,
-0.14796461164951324,
0.15539585053920746,
0.2227448970079422,
0.05767618119716644,
0.14809711277484894,
-0.18314747512340546,
-0.46561700105667114,
0.02503965236246586,
-0.08948932588100433,
0.17941266298294067,
0.3915218710899353,
0.199048712849617,
0.15483491122722626,
-0.07847176492214203,
0.33701983094215393,
-0.19430413842201233,
-0.07235409319400787,
0.4055975377559662,
0.16908766329288483,
-0.1283874809741974,
-0.26599323749542236,
0.09115541726350784,
0.1691455990076065,
-0.1398744285106659,
-0.0753900334239006,
-0.12891413271427155,
-0.25896739959716797,
0.18734844028949738,
-0.27557504177093506,
-0.1545039862394333,
-0.20515422523021698,
-0.14532986283302307,
-0.37993472814559937,
-0.48964807391166687,
-0.003861301811411977,
-0.054199304431676865,
-0.250964879989624,
0.01671007089316845,
-0.35415685176849365,
0.2501591444015503,
-0.026181556284427643,
-0.1255616992712021,
0.027677875012159348,
-0.34487831592559814,
-0.06405451893806458,
0.010014274157583714,
0.06908492743968964,
0.4820324182510376,
0.15585140883922577,
-0.22401109337806702,
-0.055054258555173874,
-0.40283581614494324,
-0.17288744449615479,
-0.04147699847817421,
-0.17496350407600403,
0.010377305559813976,
0.14275652170181274,
0.08353541791439056,
0.028056751936674118,
-0.13471396267414093,
0.030027931556105614,
0.05228779464960098,
-0.0131283700466156,
-0.10291758179664612,
0.153073251247406,
-0.2047080099582672,
-0.11258388310670853,
-0.141958087682724,
-0.5771694183349609,
-0.23681388795375824,
0.2238033264875412,
-0.16350507736206055,
0.05786329507827759,
0.11839666217565536,
-0.2589978873729706,
0.08798293024301529,
0.03842621296644211,
0.2131519466638565,
-0.16504260897636414,
-0.15544068813323975,
0.12443424761295319,
-0.09113803505897522,
-0.07398064434528351,
0.05017947405576706,
-0.16040578484535217,
0.06838664412498474,
0.10436674952507019,
-0.47069600224494934,
0.26236987113952637,
-0.3920535743236542,
0.012837331742048264,
0.09925691783428192,
0.20850491523742676,
0.22228066623210907,
-0.07093139737844467,
0.14646005630493164,
-0.06292858719825745,
-0.2990633547306061,
-0.004191489424556494,
-0.2204362154006958,
-0.03848312050104141,
0.057974379509687424,
-0.08157035708427429,
-0.14453448355197906,
0.517314076423645,
0.18570201098918915,
0.03030330128967762,
-0.13863012194633484,
0.1564418077468872,
0.45144039392471313,
-0.27101290225982666,
-0.2426128089427948,
0.10047300904989243,
0.07469939440488815,
-0.2369522750377655,
0.24849005043506622,
-0.0011766941752284765,
0.2600429356098175,
-0.19339519739151,
-0.2747221291065216,
0.027401264756917953,
-0.37841150164604187,
0.10797672718763351,
-0.33942803740501404,
0.1228848323225975,
-0.061062589287757874,
0.027922235429286957,
0.06994035094976425,
0.031359609216451645,
-0.04730893298983574,
0.6869922876358032,
0.21254341304302216,
-0.054452359676361084,
-0.7601422667503357,
-0.5233820080757141,
0.3629415035247803,
0.13292808830738068,
0.06490424275398254,
0.3725583255290985,
-0.05142338573932648,
-0.13177689909934998,
-0.13356740772724152,
0.29570698738098145,
0.3087264895439148,
0.0008376432815566659,
-0.4387599229812622,
0.032048020511865616,
-0.2063315063714981,
-0.4428904950618744,
-0.18685880303382874,
-0.010660340078175068,
0.4096096456050873,
-0.005682250019162893,
0.19891813397407532,
-0.2873959541320801,
-0.1382308006286621,
0.4776054620742798,
0.4554172456264496,
-0.1339907944202423,
-0.3033163845539093,
-0.2195001244544983,
0.17716455459594727,
0.12136800587177277,
-0.478410929441452,
0.020773544907569885,
-0.2603871822357178,
-0.16035425662994385,
0.04047107324004173,
-0.0451321117579937,
0.017341388389468193,
0.18644510209560394,
-0.027152488008141518,
0.14375871419906616,
-0.1432802826166153,
0.10595010221004486,
0.34731826186180115,
0.27606719732284546,
0.24970805644989014,
0.6773898005485535,
-0.12116925418376923,
-0.6218706965446472,
0.055246904492378235,
-0.21080529689788818,
0.6216720342636108,
0.15410387516021729,
-0.0865340307354927,
-0.005395409185439348,
0.006876084022223949,
-0.2875775694847107,
-0.31539788842201233,
-0.09317132085561752,
0.08034694194793701,
-0.06884191930294037,
-0.5808682441711426,
-0.7927826642990112,
0.31021955609321594,
0.1676645576953888,
-0.015881134197115898,
0.43272191286087036,
0.3155714273452759,
-0.16722942888736725,
0.2504056394100189,
-0.4388620853424072,
0.6755127310752869,
0.14445467293262482,
0.15064315497875214,
-0.2772524058818817,
0.27731946110725403,
0.5739865303039551,
0.035726290196180344,
0.08636146038770676,
-0.31342557072639465,
-0.47996264696121216,
-0.07797113806009293,
-0.243888720870018,
0.14874619245529175,
0.15415313839912415,
-0.04189516603946686,
0.2184705138206482,
-0.11952115595340729,
0.054167475551366806,
-0.18225154280662537,
0.3473968505859375,
0.0076187895610928535,
0.03965629264712334,
0.026031319051980972,
-0.03040246292948723,
0.050725482404232025,
0.20011797547340393,
0.26815932989120483,
0.04718778282403946,
-0.3281911015510559,
-0.03868594765663147,
-0.22913412749767303,
-0.3129146099090576,
0.1777764856815338,
0.44349831342697144,
0.00248572020791471,
-0.18920497596263885,
0.1715143769979477,
0.1304217278957367,
0.6694787740707397,
0.018758786842226982,
-0.20688506960868835,
0.01306197326630354,
-0.1004849448800087,
0.09973654896020889,
0.00735235121101141,
0.05864044278860092,
0.24922119081020355,
0.27940094470977783,
-0.1724517047405243,
0.07201346009969711,
-0.1735915243625641,
-0.2988302409648895,
-0.3996564447879791,
0.10617426782846451,
0.3400154411792755,
-0.44961076974868774,
0.027246614918112755,
0.09217274934053421,
0.07656878232955933,
-0.20176824927330017,
0.01392009761184454,
0.1829652637243271,
0.0334850549697876,
0.21778638660907745,
-0.06989596784114838,
-0.32214120030403137,
-0.12186408042907715,
-0.07853630930185318,
0.31856581568717957,
0.006491732317954302,
0.24770620465278625,
-0.21551519632339478,
-0.25109127163887024,
-0.06432639062404633,
0.5433021783828735,
0.10612298548221588,
0.2311718612909317,
-0.0636543482542038,
0.18373852968215942,
0.1524505466222763,
-0.2490386962890625,
-0.07815168052911758,
0.00959740299731493,
-0.08204077929258347,
-0.23332759737968445,
-0.24435077607631683,
-0.28492113947868347,
0.5344144701957703,
-0.1239704042673111,
0.3136833906173706,
0.0972733348608017,
0.11498938500881195,
-0.026420939713716507,
0.256305992603302,
-0.15719389915466309,
-0.13781607151031494,
0.39918074011802673,
0.2493343949317932,
0.13715699315071106,
0.20599296689033508,
0.16757617890834808,
0.04266241192817688,
-0.009653972461819649,
-0.31321829557418823,
0.2585718035697937,
-0.07662011682987213,
-0.02109798975288868,
0.2216658741235733,
0.18441852927207947,
0.15188676118850708,
-0.057277679443359375,
-0.2669840157032013,
-0.020633649080991745,
-0.27137652039527893,
0.42468008399009705,
0.3646690249443054,
0.1537017673254013,
0.6921365857124329,
0.22618381679058075,
0.261078804731369,
-0.272451788187027,
0.42523983120918274,
-0.035186316817998886,
0.32603684067726135,
0.0611274279654026,
0.10714644938707352,
-0.2512073814868927,
0.1255653202533722,
-0.2718524932861328,
0.009148772805929184,
-0.21184895932674408,
0.0561068058013916,
-0.19308805465698242,
-0.07509757578372955,
0.4025212824344635,
0.08029518276453018,
0.1000441387295723,
0.7510893940925598,
-0.2151392698287964,
0.16510926187038422,
0.13580849766731262,
0.03966927155852318,
0.020854901522397995,
0.12995494902133942,
0.33496710658073425,
0.04630613327026367,
0.05961858853697777,
0.28906622529029846,
-0.04998425394296646,
0.1184665635228157,
0.11005280166864395,
-0.003877580165863037,
0.4358590543270111,
0.06542449444532394,
0.3864562213420868,
0.3260374963283539,
0.17697857320308685,
0.06647193431854248,
0.07233225554227829,
0.3067261874675751,
0.2118375301361084,
0.517410397529602,
-0.04144873470067978,
0.046989794820547104,
0.3193521201610565,
-0.1149277463555336,
0.4227999448776245,
-0.07837510108947754,
-0.11032343655824661,
0.14620433747768402,
-0.039997708052396774,
-0.3343275189399719,
0.008881678804755211,
0.28505292534828186,
-0.4110286831855774,
-0.1561281532049179,
0.13675452768802643,
-0.4379037022590637,
-0.13163627684116364,
0.07498162239789963,
0.0354778915643692,
-0.01405542902648449,
0.15067346394062042,
-0.2756999135017395,
-0.016029836609959602,
-0.13914059102535248,
0.24997881054878235,
-0.17853011190891266,
-0.20560267567634583,
-0.20833900570869446,
0.3819347620010376,
0.18373046815395355,
0.11918740719556808,
-0.05170990154147148,
-0.2124292552471161,
-0.08640637248754501,
0.14725923538208008,
0.5784413814544678,
0.044055044651031494,
-0.05097576975822449,
0.3064543902873993,
0.225892573595047,
-0.17777611315250397,
-0.07011094689369202,
-0.27066096663475037,
-0.08725888282060623,
0.2107876092195511,
-0.26080960035324097,
-0.12770377099514008,
0.29051628708839417,
0.14100271463394165,
0.07920582592487335,
-0.00677602319046855,
0.3692658543586731,
0.33785900473594666,
-0.5210638046264648,
0.3581635653972626,
-0.04351004585623741,
-0.20124702155590057,
0.2808779776096344,
0.011416008695960045,
-0.2116374671459198,
-0.3510109484195709,
0.15089161694049835,
0.0667334645986557,
0.046245355159044266,
0.04430435225367546,
0.018387138843536377,
-0.04160289838910103,
0.08275245875120163,
0.411504864692688,
0.15752500295639038,
-0.1438450664281845,
0.08594483882188797,
-0.4509423077106476,
0.06905761361122131,
-0.24675965309143066,
-0.2733409106731415,
0.12122202664613724,
0.16754940152168274,
0.14722713828086853,
0.22368302941322327,
-0.08847137540578842,
0.004634843673557043,
0.002661369973793626,
-0.4381084442138672,
-0.18625591695308685,
-0.4560614228248596,
-0.24292390048503876,
0.11882690340280533,
-0.007245487533509731,
-0.356009840965271,
0.19225530326366425,
0.1653684377670288,
-0.14720207452774048,
0.013117996044456959,
-0.1230941191315651,
0.5838450193405151,
0.6622905731201172,
0.10865260660648346,
-0.060295842587947845,
0.5134743452072144,
0.1388150304555893,
0.008031199686229229,
-0.23330157995224,
-0.31231898069381714,
-0.18142001330852509,
0.4386744201183319,
0.03611323609948158,
-0.10867239534854889,
-0.41489118337631226,
-0.22177235782146454,
-0.14126068353652954,
0.5059245824813843,
-0.10265140980482101,
-0.08806285262107849,
-0.09339451044797897,
0.2447441965341568,
-0.11110939830541611,
0.2183566838502884,
0.1561424434185028,
0.08367637544870377,
-0.06927083432674408,
-0.26275742053985596,
-0.007328806910663843,
-0.03858153149485588,
0.30295026302337646,
-0.03980860859155655,
-0.13377512991428375,
0.10640735179185867,
0.22775596380233765,
0.1762738972902298,
0.026291698217391968,
-0.45922738313674927,
-0.22888658940792084,
0.6860066652297974,
-0.08363499492406845,
-0.02155490405857563,
-0.2875185012817383,
0.16003309190273285,
-0.1428745985031128,
-0.234340101480484,
0.20043298602104187,
-0.10495220124721527,
-0.3920254409313202,
0.04543999210000038,
-0.11858905106782913
] |
https://github.com/huggingface/datasets/issues/1687 | Question: Shouldn't .info be a part of DatasetDict? | Yes this was kinda the idea I was going for. DatasetDict.info would be the shared info amongs the datasets (maybe even some info on how they differ). | Currently, only `Dataset` contains the .info or .features, but as many datasets contains standard splits (train, test) and thus the underlying information is the same (or at least should be) across the datasets.
For instance:
```
>>> ds = datasets.load_dataset("conll2002", "es")
>>> ds.info
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'DatasetDict' object has no attribute 'info'
```
I could imagine that this wouldn't work for datasets dicts which hold entirely different datasets (multimodal datasets), but it seems odd that splits of the same dataset is treated the same as what is essentially different datasets.
Intuitively it would also make sense that if a dataset is supplied via. the load_dataset that is have a common .info which covers the entire dataset.
It is entirely possible that I am missing another perspective | 27 | Question: Shouldn't .info be a part of DatasetDict?
Currently, only `Dataset` contains the .info or .features, but as many datasets contains standard splits (train, test) and thus the underlying information is the same (or at least should be) across the datasets.
For instance:
```
>>> ds = datasets.load_dataset("conll2002", "es")
>>> ds.info
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'DatasetDict' object has no attribute 'info'
```
I could imagine that this wouldn't work for datasets dicts which hold entirely different datasets (multimodal datasets), but it seems odd that splits of the same dataset is treated the same as what is essentially different datasets.
Intuitively it would also make sense that if a dataset is supplied via. the load_dataset that is have a common .info which covers the entire dataset.
It is entirely possible that I am missing another perspective
Yes this was kinda the idea I was going for. DatasetDict.info would be the shared info amongs the datasets (maybe even some info on how they differ). | [
0.10923486948013306,
-0.1863410323858261,
-0.05223248898983002,
0.32486411929130554,
0.1043856292963028,
0.23965099453926086,
0.46166327595710754,
0.01808696985244751,
0.07692903280258179,
0.019750095903873444,
0.16768747568130493,
0.0010690998751670122,
0.09683962166309357,
0.5461276769638062,
-0.09789862483739853,
-0.10379941761493683,
-0.0594278983771801,
0.13888710737228394,
0.39056774973869324,
-0.25159481167793274,
-0.0007192242774181068,
-0.09108184278011322,
-0.259604811668396,
0.09881522506475449,
-0.5232892632484436,
0.19159801304340363,
-0.18814438581466675,
0.09199204295873642,
0.13260643184185028,
-0.28782179951667786,
0.361505925655365,
0.1595393866300583,
0.19737449288368225,
0.11363450437784195,
-0.00011835653276648372,
0.022460008040070534,
0.4010705351829529,
-0.062415193766355515,
-0.5887032747268677,
-0.05240555852651596,
-0.4848051071166992,
-0.21190442144870758,
0.3201883137226105,
-0.3865295648574829,
0.12115668505430222,
-0.06967829912900925,
0.0017126547172665596,
-0.41046497225761414,
-0.25617459416389465,
0.023412812501192093,
0.08370323479175568,
0.20948481559753418,
0.07823871076107025,
0.11118518561124802,
0.37844356894493103,
0.43357419967651367,
0.00961693562567234,
0.007068265229463577,
0.032077036798000336,
0.2960723042488098,
0.12554967403411865,
0.3308480978012085,
-0.05339482054114342,
0.11169150471687317,
0.40696313977241516,
0.14609158039093018,
0.12548114359378815,
-0.06380598247051239,
0.11056778579950333,
0.2188148945569992,
0.7944613695144653,
-0.1607748419046402,
-0.4864637553691864,
-0.44997599720954895,
0.017187969759106636,
-0.05386640504002571,
0.04818873107433319,
0.20490650832653046,
0.10582929849624634,
0.2054297924041748,
-0.029415614902973175,
-0.23669935762882233,
-0.0012191318674013019,
0.08744310587644577,
-0.3106892704963684,
0.23556289076805115,
-0.25110194087028503,
0.367065966129303,
-0.18468596041202545,
0.21129542589187622,
0.26177331805229187,
-0.46904391050338745,
-0.10363194346427917,
-0.30240941047668457,
0.12253764271736145,
-0.14473359286785126,
-0.2677629888057709,
0.0410824716091156,
0.19646324217319489,
0.08164127916097641,
-0.08824169635772705,
0.07868552953004837,
-0.34593790769577026,
0.1982536017894745,
0.6331499218940735,
-0.16915199160575867,
0.45814961194992065,
0.30497080087661743,
0.48191314935684204,
-0.2112954705953598,
-0.164459228515625,
-0.08885063976049423,
0.003589681349694729,
0.16209961473941803,
0.1140551045536995,
-0.09382017701864243,
0.38558369874954224,
-0.17985562980175018,
-0.35330909490585327,
-0.0674244612455368,
-0.16327305138111115,
-0.2639002501964569,
0.2029368132352829,
-0.022761356085538864,
0.10988523811101913,
0.2747853398323059,
-0.08844979107379913,
-0.03204497694969177,
0.2030627578496933,
-0.3814786374568939,
-0.14358283579349518,
-0.2690340578556061,
-0.0691702663898468,
0.35423997044563293,
-0.20171046257019043,
-0.15125104784965515,
0.368991881608963,
-0.1425228863954544,
0.011662733741104603,
-0.05213877931237221,
0.053636256605386734,
-0.15615740418434143,
0.06428371369838715,
0.3008127212524414,
-0.15648169815540314,
0.42822274565696716,
0.09569309651851654,
-0.16182053089141846,
-0.2783505916595459,
0.18018761277198792,
-0.6619873642921448,
-0.44883638620376587,
0.20475536584854126,
0.06135885417461395,
-0.15768437087535858,
0.17955747246742249,
-0.14158596098423004,
0.24065472185611725,
0.25394225120544434,
-0.07230431586503983,
0.19069044291973114,
-0.15919283032417297,
-0.2682468295097351,
-0.26103076338768005,
0.2825264036655426,
0.23375758528709412,
-0.389771044254303,
-0.22973643243312836,
-0.08047951012849808,
-0.14729344844818115,
-0.0020091396290808916,
0.06970901042222977,
-0.41437235474586487,
0.2756810188293457,
-0.21693335473537445,
-0.31332483887672424,
0.3193609118461609,
-0.25670745968818665,
-0.12791618704795837,
0.4607943296432495,
0.21088039875030518,
0.08026555180549622,
0.1223871037364006,
0.31236040592193604,
-0.10632207989692688,
0.04547939449548721,
0.1513042151927948,
0.2537454068660736,
-0.18461033701896667,
-0.2593039870262146,
-0.04275600239634514,
-0.04780038073658943,
0.31998494267463684,
0.21069538593292236,
-0.17839734256267548,
-0.06916401535272598,
-0.21706625819206238,
0.13887393474578857,
0.4230896532535553,
-0.04629248008131981,
0.05334573984146118,
0.054066598415374756,
0.19881953299045563,
0.4479037821292877,
0.29688310623168945,
-0.2312646061182022,
-0.46896445751190186,
0.15596500039100647,
0.18944263458251953,
-0.35949188470840454,
0.12580442428588867,
-0.42403411865234375,
0.09223823994398117,
-0.14447136223316193,
-0.188796266913414,
-0.3890085220336914,
-0.008208307437598705,
-0.1356372833251953,
-0.22308747470378876,
-0.1789465844631195,
-0.43285688757896423,
0.4074244201183319,
-0.28738415241241455,
0.10646434873342514,
-0.2504109740257263,
0.27240467071533203,
0.04332394897937775,
0.2123248130083084,
-0.18252873420715332,
0.28047052025794983,
-0.06117607280611992,
-0.018420524895191193,
0.110856793820858,
0.3228791356086731,
0.5905706882476807,
-0.2544254958629608,
0.09543810784816742,
0.08688370883464813,
-0.007046747952699661,
-0.1313748061656952,
0.18718639016151428,
-0.06393927335739136,
0.08439122885465622,
-0.26087623834609985,
-0.11197404563426971,
0.20042233169078827,
-0.16594374179840088,
0.265981525182724,
0.047160957008600235,
0.1501615345478058,
0.11416242271661758,
0.013062885031104088,
-0.25904107093811035,
-0.22807399928569794,
-0.24095891416072845,
-0.22004996240139008,
0.36444929242134094,
0.39602944254875183,
-0.19864140450954437,
0.17614173889160156,
0.2211502492427826,
0.03664837032556534,
0.09904125332832336,
-0.18732774257659912,
-0.4361340403556824,
0.04043217748403549,
-0.10346368700265884,
0.18638832867145538,
0.4261834919452667,
0.18742512166500092,
0.13636282086372375,
-0.05647968128323555,
0.294838547706604,
-0.1621708869934082,
-0.05696986988186836,
0.3631010353565216,
0.18008002638816833,
-0.171011283993721,
-0.24775375425815582,
0.10556668788194656,
0.1776001900434494,
-0.2268294095993042,
-0.11989563703536987,
-0.1188485324382782,
-0.2635374665260315,
0.193154975771904,
-0.22762782871723175,
-0.12557990849018097,
-0.2238827794790268,
-0.16744081676006317,
-0.4080670177936554,
-0.4708372950553894,
-0.04124907776713371,
-0.09149252623319626,
-0.2265569269657135,
0.032430052757263184,
-0.3502624034881592,
0.2202376276254654,
-0.0272907093167305,
-0.137019544839859,
0.08497423678636551,
-0.3411065340042114,
-0.06848528981208801,
-0.0016227830201387405,
0.019921518862247467,
0.47723624110221863,
0.1395871341228485,
-0.1437508761882782,
0.029706114903092384,
-0.37831613421440125,
-0.23705172538757324,
-0.0676570013165474,
-0.20399706065654755,
0.04279673844575882,
0.17393708229064941,
0.10566467046737671,
0.004605274647474289,
-0.12119480222463608,
0.03630402684211731,
0.09519069641828537,
-0.008557504042983055,
-0.09600766748189926,
0.14499348402023315,
-0.26099687814712524,
-0.07855480909347534,
-0.14922641217708588,
-0.5878075957298279,
-0.20853562653064728,
0.25135111808776855,
-0.14428077638149261,
0.06058218702673912,
0.18405373394489288,
-0.18937082588672638,
0.079461969435215,
0.08907410502433777,
0.2794892191886902,
-0.1544051319360733,
-0.2227454036474228,
0.10439183562994003,
-0.08261607587337494,
-0.08370812982320786,
0.035414405167102814,
-0.14928574860095978,
0.11612988263368607,
0.0625254362821579,
-0.5031927227973938,
0.19638769328594208,
-0.35490044951438904,
0.04717014357447624,
0.08232151716947556,
0.2206009030342102,
0.22165754437446594,
-0.043316550552845,
0.13327647745609283,
-0.07047752290964127,
-0.3033607006072998,
-0.03737640380859375,
-0.20831100642681122,
-0.058609504252672195,
0.09156686067581177,
-0.111666239798069,
-0.1912149339914322,
0.4794416129589081,
0.1923934519290924,
0.03431941941380501,
-0.1583176851272583,
0.1479475498199463,
0.4536726474761963,
-0.22558879852294922,
-0.2565925121307373,
0.08393382281064987,
0.1156938299536705,
-0.2311655879020691,
0.20089972019195557,
-0.007788593880832195,
0.3088764250278473,
-0.19472812116146088,
-0.30630749464035034,
0.0388081930577755,
-0.3404156267642975,
0.10313557833433151,
-0.38276100158691406,
0.149653822183609,
-0.09746348857879639,
-0.016376091167330742,
0.024298859760165215,
0.05449289083480835,
-0.0623052679002285,
0.6804860234260559,
0.15003874897956848,
-0.07917508482933044,
-0.7875328660011292,
-0.5043080449104309,
0.3543514907360077,
0.11034566909074783,
0.03380076214671135,
0.36336883902549744,
-0.04795800894498825,
-0.08587003499269485,
-0.14179879426956177,
0.2948879301548004,
0.30439701676368713,
-0.015316951088607311,
-0.4180923402309418,
0.04200733080506325,
-0.18482954800128937,
-0.4713214039802551,
-0.20005592703819275,
-0.02434403821825981,
0.3679105341434479,
-0.03225274384021759,
0.18149220943450928,
-0.2694958448410034,
-0.17317596077919006,
0.4519665241241455,
0.42221081256866455,
-0.16934719681739807,
-0.3046568036079407,
-0.26617854833602905,
0.1701025664806366,
0.12484918534755707,
-0.5041342377662659,
-0.003555747214704752,
-0.20791149139404297,
-0.19491930305957794,
0.11030885577201843,
-0.016112880781292915,
0.08829174190759659,
0.2064443677663803,
-0.042349923402071,
0.16365888714790344,
-0.15934394299983978,
0.1232120543718338,
0.37568652629852295,
0.2779029607772827,
0.25834575295448303,
0.6850099563598633,
-0.09845893085002899,
-0.612130343914032,
0.007861891761422157,
-0.24903346598148346,
0.6869454979896545,
0.12792690098285675,
-0.09002165496349335,
-0.0067450846545398235,
-0.016008347272872925,
-0.26972705125808716,
-0.3494411110877991,
-0.12171784043312073,
0.11198936402797699,
-0.06051705405116081,
-0.5644887089729309,
-0.7933292984962463,
0.3231038451194763,
0.17901070415973663,
-0.032859187573194504,
0.4560075104236603,
0.3559998869895935,
-0.20111587643623352,
0.2351474016904831,
-0.3832601010799408,
0.6913092136383057,
0.17690280079841614,
0.18618080019950867,
-0.23619040846824646,
0.2525370717048645,
0.5729828476905823,
0.06311974674463272,
0.027687150985002518,
-0.3370053470134735,
-0.4901946187019348,
-0.07379002124071121,
-0.2707252502441406,
0.1726967692375183,
0.13074825704097748,
-0.05573750287294388,
0.21151110529899597,
-0.10618435591459274,
0.029245181009173393,
-0.1781504601240158,
0.3440641760826111,
0.030604615807533264,
0.07393994182348251,
0.0062913368456065655,
-0.0323982909321785,
0.04846182093024254,
0.18836773931980133,
0.24160723388195038,
0.024222377687692642,
-0.35673820972442627,
-0.0699101909995079,
-0.20140473544597626,
-0.32207030057907104,
0.18406043946743011,
0.43271321058273315,
0.1349833458662033,
-0.16797584295272827,
0.16621720790863037,
0.1572204828262329,
0.6592187881469727,
0.02224232256412506,
-0.23076419532299042,
-0.021297307685017586,
-0.12789911031723022,
0.11143296957015991,
-0.014333373866975307,
0.016169210895895958,
0.2778162956237793,
0.27519458532333374,
-0.19268149137496948,
0.10456126183271408,
-0.17618617415428162,
-0.233097642660141,
-0.3902468979358673,
0.07419310510158539,
0.34892067313194275,
-0.48222967982292175,
0.025034043937921524,
0.11011981219053268,
0.04087957739830017,
-0.1783902645111084,
0.012005048803985119,
0.2466861456632614,
-0.005420663859695196,
0.20953698456287384,
-0.016370423138141632,
-0.29438072443008423,
-0.07409629970788956,
-0.06915000081062317,
0.3758614957332611,
-0.044438984245061874,
0.2839975953102112,
-0.22569376230239868,
-0.24689799547195435,
-0.03458619862794876,
0.5593050718307495,
0.16109727323055267,
0.20066094398498535,
-0.09099621325731277,
0.22911739349365234,
0.16006985306739807,
-0.2370389997959137,
-0.00878890696913004,
-0.008673494681715965,
-0.06120806187391281,
-0.19658775627613068,
-0.24283011257648468,
-0.29285621643066406,
0.5185011029243469,
-0.10557057708501816,
0.3687822222709656,
0.010460575111210346,
0.09720346331596375,
0.021541595458984375,
0.1943461000919342,
-0.1704062819480896,
-0.10123812407255173,
0.3857167363166809,
0.24599440395832062,
0.20750658214092255,
0.19779139757156372,
0.13953781127929688,
0.034586627036333084,
0.0011126413010060787,
-0.33331751823425293,
0.21671238541603088,
-0.060182124376297,
-0.07145838439464569,
0.2272607684135437,
0.18719282746315002,
0.12927044928073883,
-0.04121319204568863,
-0.2895899713039398,
0.012708835303783417,
-0.24252542853355408,
0.36658498644828796,
0.37019360065460205,
0.14533008635044098,
0.7033873796463013,
0.21301963925361633,
0.26700833439826965,
-0.23006263375282288,
0.42680269479751587,
-0.0053063808009028435,
0.32818493247032166,
0.11753823608160019,
0.06648723781108856,
-0.3007630705833435,
0.11757063865661621,
-0.25193512439727783,
0.06089388579130173,
-0.2561262547969818,
0.09254533052444458,
-0.17491412162780762,
-0.09351155906915665,
0.40977323055267334,
0.07510390877723694,
0.12597744166851044,
0.7074723243713379,
-0.26280397176742554,
0.15441951155662537,
0.06972720474004745,
0.052917588502168655,
0.04448976740241051,
0.07541914284229279,
0.34367913007736206,
0.09365731477737427,
0.015505963005125523,
0.2582242488861084,
-0.04606938734650612,
0.12427225708961487,
0.08246118575334549,
-0.007601897697895765,
0.40433335304260254,
0.04790642857551575,
0.35482466220855713,
0.2216271162033081,
0.16963253915309906,
0.04629002511501312,
0.10066557675600052,
0.36538028717041016,
0.19095762073993683,
0.5154169201850891,
-0.029335275292396545,
0.04514714330434799,
0.37395942211151123,
-0.1580108255147934,
0.3826428949832916,
-0.0960671454668045,
-0.013546917587518692,
0.1442210078239441,
-0.05749025568366051,
-0.38080739974975586,
0.0007176546496339142,
0.19231392443180084,
-0.37369343638420105,
-0.11981768161058426,
0.1813124120235443,
-0.43784624338150024,
-0.1517007052898407,
0.03723810240626335,
0.043383240699768066,
-0.04084208980202675,
0.16082896292209625,
-0.26795387268066406,
-0.019444480538368225,
-0.1617603451013565,
0.24874058365821838,
-0.2149019092321396,
-0.1819608509540558,
-0.24878337979316711,
0.3825962245464325,
0.19778206944465637,
0.14540241658687592,
-0.06493918597698212,
-0.22163978219032288,
-0.05435357615351677,
0.1535516381263733,
0.5740051865577698,
0.07583519071340561,
0.005193413235247135,
0.34313318133354187,
0.20815689861774445,
-0.11504730582237244,
-0.05582573264837265,
-0.25079816579818726,
-0.051607195287942886,
0.18428759276866913,
-0.24086923897266388,
-0.11992578208446503,
0.28515446186065674,
0.14477835595607758,
0.0790032371878624,
0.014863958582282066,
0.3991675078868866,
0.3199594020843506,
-0.5323266386985779,
0.3043729066848755,
-0.05650067329406738,
-0.22608353197574615,
0.2637318968772888,
0.04393484815955162,
-0.25276705622673035,
-0.37919434905052185,
0.23228122293949127,
0.14505761861801147,
0.05955137684941292,
0.013289944268763065,
0.019510913640260696,
-0.058977872133255005,
0.08860933780670166,
0.48712825775146484,
0.17571261525154114,
-0.20868250727653503,
0.05017729103565216,
-0.49109554290771484,
0.09629087895154953,
-0.1997428983449936,
-0.31587085127830505,
0.1360267847776413,
0.17355644702911377,
0.1628623753786087,
0.2108585089445114,
-0.08238774538040161,
0.03596081584692001,
-0.05851441249251366,
-0.4425928592681885,
-0.20301952958106995,
-0.5107285380363464,
-0.24585779011249542,
0.08232392370700836,
-0.022978560999035835,
-0.26092004776000977,
0.1512145847082138,
0.1273561269044876,
-0.11514556407928467,
-0.030661053955554962,
-0.11795038729906082,
0.550514280796051,
0.7200511693954468,
0.11105886101722717,
-0.09581855684518814,
0.5151233673095703,
0.17961658537387848,
-0.06435761600732803,
-0.1798265278339386,
-0.306432843208313,
-0.10490676760673523,
0.4720926880836487,
-0.0040374756790697575,
-0.05762777850031853,
-0.36620986461639404,
-0.21385018527507782,
-0.17617836594581604,
0.4629441201686859,
-0.07400186359882355,
-0.135077103972435,
-0.08802945911884308,
0.2622857093811035,
-0.07070306688547134,
0.1925249844789505,
0.09889134764671326,
0.08817306905984879,
-0.04897793382406235,
-0.1841164231300354,
0.022720666602253914,
-0.017323298379778862,
0.3316028118133545,
-0.07444678992033005,
-0.09240788966417313,
0.07562357187271118,
0.23436065018177032,
0.1036887913942337,
0.0704876109957695,
-0.5209985971450806,
-0.1857077181339264,
0.7407819032669067,
-0.09805523604154587,
-0.09452930092811584,
-0.2407282590866089,
0.1190878376364708,
-0.1634674221277237,
-0.20998190343379974,
0.23389902710914612,
-0.14947372674942017,
-0.35070183873176575,
0.054490309208631516,
-0.10845969617366791
] |
https://github.com/huggingface/datasets/issues/1686 | Dataset Error: DaNE contains empty samples at the end | One the PR is merged the fix will be available in the next release of `datasets`.
If you don't want to wait the next release you can still load the script from the master branch with
```python
load_dataset("dane", script_version="master")
``` | The dataset DaNE, contains empty samples at the end. It is naturally easy to remove using a filter but should probably not be there, to begin with as it can cause errors.
```python
>>> import datasets
[...]
>>> dataset = datasets.load_dataset("dane")
[...]
>>> dataset["test"][-1]
{'dep_ids': [], 'dep_labels': [], 'lemmas': [], 'morph_tags': [], 'ner_tags': [], 'pos_tags': [], 'sent_id': '', 'text': '', 'tok_ids': [], 'tokens': []}
>>> dataset["train"][-1]
{'dep_ids': [], 'dep_labels': [], 'lemmas': [], 'morph_tags': [], 'ner_tags': [], 'pos_tags': [], 'sent_id': '', 'text': '', 'tok_ids': [], 'tokens': []}
```
Best,
Kenneth | 40 | Dataset Error: DaNE contains empty samples at the end
The dataset DaNE, contains empty samples at the end. It is naturally easy to remove using a filter but should probably not be there, to begin with as it can cause errors.
```python
>>> import datasets
[...]
>>> dataset = datasets.load_dataset("dane")
[...]
>>> dataset["test"][-1]
{'dep_ids': [], 'dep_labels': [], 'lemmas': [], 'morph_tags': [], 'ner_tags': [], 'pos_tags': [], 'sent_id': '', 'text': '', 'tok_ids': [], 'tokens': []}
>>> dataset["train"][-1]
{'dep_ids': [], 'dep_labels': [], 'lemmas': [], 'morph_tags': [], 'ner_tags': [], 'pos_tags': [], 'sent_id': '', 'text': '', 'tok_ids': [], 'tokens': []}
```
Best,
Kenneth
One the PR is merged the fix will be available in the next release of `datasets`.
If you don't want to wait the next release you can still load the script from the master branch with
```python
load_dataset("dane", script_version="master")
``` | [
-0.12326876074075699,
-0.1505776196718216,
-0.20778264105319977,
-0.06342282146215439,
0.2767205238342285,
0.1347072571516037,
0.3861129581928253,
0.3464493155479431,
0.22405380010604858,
0.2550489008426666,
0.1427295207977295,
0.2462116926908493,
-0.1021411195397377,
0.12055405974388123,
-0.05945487320423126,
-0.18904367089271545,
0.07127486914396286,
0.23003730177879333,
-0.2116481065750122,
-0.2163272351026535,
-0.159812793135643,
0.054527271538972855,
-0.2814105749130249,
-0.02949986420571804,
-0.2529696524143219,
-0.008691884577274323,
-0.07326850295066833,
0.0009028107160702348,
-0.18156684935092926,
-0.3393615782260895,
0.18759022653102875,
0.05533866584300995,
-0.022188596427440643,
0.47224316000938416,
-0.00009670976578490809,
0.03577636554837227,
0.2746005654335022,
0.00906548835337162,
-0.20734745264053345,
-0.1868923306465149,
-0.2046445906162262,
-0.10327508300542831,
0.01647694781422615,
-0.29464471340179443,
-0.09482735395431519,
-0.11907881498336792,
-0.12174656987190247,
-0.2512136399745941,
0.2761535346508026,
0.37886786460876465,
0.35103243589401245,
-0.020360464230179787,
-0.11334096640348434,
-0.23360730707645416,
0.09381221234798431,
0.018680689856410027,
0.006727032829076052,
0.00803886167705059,
0.11702857911586761,
-0.15800721943378448,
0.17154482007026672,
0.3733155429363251,
-0.13565827906131744,
-0.03989628702402115,
0.13031424582004547,
0.07440221309661865,
0.355242520570755,
-0.3960346579551697,
0.12254665046930313,
0.16479526460170746,
0.4762189984321594,
-0.23594680428504944,
-0.20520126819610596,
-0.09529438614845276,
0.0928829163312912,
-0.34064096212387085,
0.027855761349201202,
0.08264778554439545,
-0.18923179805278778,
0.13565734028816223,
-0.1832287758588791,
0.12521204352378845,
-0.029615938663482666,
0.14067275822162628,
-0.22200506925582886,
0.29244211316108704,
0.10406243801116943,
0.01055493950843811,
0.035256821662187576,
-0.16169127821922302,
-0.007254063617438078,
-0.1755838841199875,
-0.09924609959125519,
0.12622562050819397,
-0.17596396803855896,
-0.178135484457016,
0.11043098568916321,
-0.33207347989082336,
0.09222306311130524,
0.23413151502609253,
0.05492308735847473,
-0.07286129146814346,
0.07247725129127502,
0.20501214265823364,
0.38900718092918396,
0.15825986862182617,
0.11836003512144089,
0.18600602447986603,
0.04310005158185959,
0.03929455950856209,
-0.07926465570926666,
0.06880884617567062,
-0.030058840289711952,
-0.39394429326057434,
0.21656052768230438,
0.07296260446310043,
0.12353139370679855,
-0.03280782327055931,
-0.3163641095161438,
0.14234429597854614,
0.057209622114896774,
0.105277419090271,
-0.009974479675292969,
0.33381471037864685,
-0.0732828825712204,
0.19196921586990356,
-0.029700012877583504,
0.10663459450006485,
-0.13253657519817352,
0.08751235157251358,
-0.3342107832431793,
0.1476406753063202,
-0.1924992799758911,
-0.48475122451782227,
0.13935087621212006,
0.13993392884731293,
0.2598889172077179,
0.11225758492946625,
-0.08756721019744873,
0.043799955397844315,
0.23657897114753723,
-0.22994855046272278,
0.15961000323295593,
0.27116796374320984,
0.20729996263980865,
0.10329849272966385,
0.10497274994850159,
-0.31053614616394043,
-0.09684950858354568,
0.19718286395072937,
-0.24143466353416443,
-0.12705747783184052,
-0.23911181092262268,
0.4493575096130371,
-0.019251281395554543,
-0.1367018073797226,
-0.3514399230480194,
0.15928111970424652,
0.022565586492419243,
-0.19228406250476837,
-0.07440313696861267,
-0.12132579833269119,
-0.09715317189693451,
-0.14823004603385925,
0.3134786784648895,
0.28011587262153625,
-0.310398131608963,
-0.14459015429019928,
0.0392431877553463,
-0.1823047399520874,
0.16209159791469574,
0.2586764991283417,
-0.10533444583415985,
0.1341366469860077,
-0.22975613176822662,
0.10658363252878189,
0.36050835251808167,
-0.3388751149177551,
-0.19522009789943695,
0.12348182499408722,
-0.018993418663740158,
-0.071591317653656,
-0.11977732926607132,
-0.01891951635479927,
0.036832816898822784,
0.1500176042318344,
0.18541069328784943,
0.23629622161388397,
-0.050588469952344894,
-0.024335267022252083,
-0.18547047674655914,
-0.055322326719760895,
0.28800952434539795,
0.14498595893383026,
0.09852926433086395,
0.035712309181690216,
-0.14255832135677338,
0.1447717249393463,
0.2507311999797821,
-0.07886266708374023,
0.0050782025791704655,
0.46192070841789246,
0.43979012966156006,
0.023041674867272377,
-0.008234052918851376,
-0.09324060380458832,
-0.17995193600654602,
0.030231347307562828,
0.12753692269325256,
0.24581024050712585,
-0.012591472826898098,
-0.18201124668121338,
-0.2893087565898895,
-0.1439446359872818,
-0.21319906413555145,
-0.1518130898475647,
0.32827505469322205,
0.014956028200685978,
-0.09919564425945282,
0.05852571502327919,
-0.2611064016819,
0.1758178323507309,
-0.14643411338329315,
0.12126023322343826,
-0.21274246275424957,
0.3394407331943512,
-0.25131362676620483,
0.008037109859287739,
-0.014949062839150429,
0.12999001145362854,
0.11788196116685867,
0.025140097364783287,
-0.024143066257238388,
0.25962403416633606,
0.16667333245277405,
-0.03319076821208,
0.13011999428272247,
-0.16008193790912628,
0.09455171227455139,
-0.16833730041980743,
-0.12870411574840546,
0.3237849175930023,
0.12938141822814941,
-0.03260877728462219,
-0.24797673523426056,
0.10319589823484421,
0.1067390963435173,
0.19042612612247467,
0.15384045243263245,
0.05038317292928696,
0.18572740256786346,
-0.2024238258600235,
0.1165677085518837,
-0.24066995084285736,
0.13672173023223877,
-0.11522731930017471,
0.11161554604768753,
-0.03300599753856659,
-0.1394117921590805,
-0.08110020309686661,
0.3397683799266815,
0.06977097690105438,
0.2045671045780182,
0.14777162671089172,
-0.17159205675125122,
0.04665264114737511,
0.024466661736369133,
0.3108145296573639,
0.27993348240852356,
0.31055453419685364,
0.06698334962129593,
0.08633194863796234,
0.09670302271842957,
-0.025954626500606537,
0.1524067223072052,
0.05763193219900131,
-0.048842575401067734,
0.2677122950553894,
0.044927164912223816,
0.03684183210134506,
-0.2552138566970825,
-0.24408482015132904,
0.00020302884513512254,
0.33636295795440674,
-0.17593882977962494,
-0.02674093469977379,
-0.31387221813201904,
-0.12805768847465515,
0.014875734224915504,
0.19959434866905212,
-0.07804155349731445,
-0.3177388310432434,
0.22363345324993134,
0.004745983052998781,
-0.30615922808647156,
0.2955162227153778,
-0.01620813086628914,
0.09668268263339996,
0.19276060163974762,
-0.029325520619750023,
-0.16105495393276215,
-0.2629690170288086,
-0.23413702845573425,
0.2838200032711029,
0.08357270061969757,
0.2928680181503296,
0.23474803566932678,
-0.2635471522808075,
-0.16726011037826538,
-0.04392820969223976,
-0.4346899688243866,
0.049268871545791626,
-0.14625000953674316,
0.25443416833877563,
0.22267605364322662,
0.3057718873023987,
-0.21775075793266296,
-0.26300281286239624,
0.22117389738559723,
-0.23908615112304688,
-0.27747678756713867,
0.09022431075572968,
0.12394926697015762,
-0.07325445115566254,
-0.29615265130996704,
-0.5132988691329956,
-0.2596700191497803,
-0.3618588447570801,
-0.10578826814889908,
0.10254412889480591,
-0.0004766858764924109,
0.09698937088251114,
0.32177814841270447,
0.019361665472388268,
-0.024999838322401047,
0.02893334999680519,
-0.1692989319562912,
-0.2669264078140259,
0.3266661465167999,
-0.27029362320899963,
-0.3725539743900299,
0.13848046958446503,
-0.18093843758106232,
0.2575165331363678,
-0.26922208070755005,
-0.45365551114082336,
-0.13163481652736664,
-0.01948852837085724,
-0.011439529247581959,
-0.05741303414106369,
0.03798023611307144,
0.14115239679813385,
0.1345512866973877,
-0.2727218568325043,
-0.1700938642024994,
-0.07690977305173874,
0.019613223150372505,
-0.12012987583875656,
0.2499280571937561,
-0.2742263674736023,
0.3223972022533417,
0.016870034858584404,
0.23498153686523438,
0.24563923478126526,
-0.17568470537662506,
0.07393067330121994,
-0.18611307442188263,
0.2673366665840149,
-0.13000912964344025,
-0.39652425050735474,
0.044188242405653,
0.0597977340221405,
0.02948397397994995,
0.10887102782726288,
-0.0278625525534153,
-0.17764399945735931,
-0.2493138462305069,
0.18629884719848633,
-0.18510708212852478,
-0.18968331813812256,
0.020083477720618248,
0.014573839493095875,
-0.013883025385439396,
-0.030151497572660446,
0.1286459118127823,
-0.31621846556663513,
0.009684990160167217,
-0.039082661271095276,
0.19351185858249664,
-0.045454688370227814,
-0.052726443856954575,
-0.5001696944236755,
0.25494420528411865,
-0.3457237482070923,
0.1618809700012207,
-0.06315170228481293,
0.05989736318588257,
-0.0876944363117218,
0.04456435516476631,
-0.104246586561203,
0.001842968282289803,
0.5315635204315186,
-0.3192276358604431,
-0.07051846385002136,
0.09819817543029785,
0.20096273720264435,
-0.17571786046028137,
0.09948224574327469,
-0.33738455176353455,
-0.10743030160665512,
0.29644542932510376,
0.08239363878965378,
-0.22765621542930603,
-0.10902878642082214,
0.3578347861766815,
0.06792715191841125,
-0.17508187890052795,
-0.11128656566143036,
-0.3121808171272278,
-0.353566974401474,
-0.3516397774219513,
-0.06498877704143524,
0.24226272106170654,
0.17375525832176208,
-0.21005679666996002,
-0.21187783777713776,
-0.0522688664495945,
-0.06216384842991829,
0.3121022582054138,
0.11460162699222565,
0.4049684405326843,
0.05483571067452431,
0.16249434649944305,
-0.11409669369459152,
0.13516196608543396,
0.38038370013237,
0.4657439589500427,
-0.04919181391596794,
-0.20405252277851105,
0.1282794326543808,
-0.18266837298870087,
0.31368663907051086,
0.05696304515004158,
-0.01692483015358448,
0.03378055617213249,
-0.3138440251350403,
0.25001972913742065,
-0.1137785017490387,
0.38451531529426575,
0.43631577491760254,
0.12385901808738708,
-0.20794878900051117,
-0.3572324812412262,
0.28426122665405273,
0.052402231842279434,
0.02999594435095787,
0.18099847435951233,
0.05033014714717865,
-0.3033679127693176,
0.41070255637168884,
-0.013790576718747616,
0.817967414855957,
0.22462500631809235,
0.09454790502786636,
0.26026201248168945,
0.028795868158340454,
0.22763954102993011,
-0.11388859152793884,
0.0962311401963234,
-0.25841066241264343,
-0.058095064014196396,
-0.022729232907295227,
-0.034143317490816116,
0.07312269508838654,
0.30251333117485046,
-0.357084721326828,
0.1366189569234848,
-0.17383120954036713,
0.16115903854370117,
-0.1448458433151245,
0.20150165259838104,
-0.02031949907541275,
0.03944326937198639,
-0.1272226721048355,
0.33404362201690674,
-0.013476632535457611,
0.10127198696136475,
-0.05982580408453941,
-0.13001258671283722,
-0.09543126821517944,
-0.19655741751194,
-0.0335770919919014,
0.092752605676651,
0.19770634174346924,
0.20409925282001495,
-0.1111578494310379,
-0.26271259784698486,
0.011058351956307888,
0.28479859232902527,
0.28770047426223755,
0.25324949622154236,
0.045655835419893265,
0.3643512725830078,
0.23675277829170227,
0.06860300898551941,
0.015425528399646282,
0.14363501965999603,
0.24378693103790283,
-0.1574825495481491,
-0.3793875277042389,
0.12413156032562256,
-0.04921403527259827,
-0.23876790702342987,
-0.08663130551576614,
-0.07656799256801605,
0.07071220129728317,
-0.4695096015930176,
-0.1692461371421814,
0.1563894897699356,
-0.021885884925723076,
-0.3271130323410034,
0.3178137540817261,
0.0043691955506801605,
-0.29891684651374817,
0.14412403106689453,
0.06388822942972183,
-0.14072494208812714,
-0.03777749091386795,
0.21608002483844757,
0.1302143782377243,
-0.25454071164131165,
0.5490442514419556,
-0.05384300276637077,
-0.14504225552082062,
-0.3890693485736847,
0.051538046449422836,
0.3508819341659546,
-0.3129739463329315,
0.27274835109710693,
-0.01469806581735611,
0.015026531182229519,
0.13462914526462555,
0.18280082941055298,
-0.013668987900018692,
0.04248921945691109,
0.06781084090471268,
-0.2157609462738037,
-0.40113797783851624,
0.2692802846431732,
-0.039416298270225525,
0.37815478444099426,
0.029361076653003693,
0.15487459301948547,
-0.03750484809279442,
-0.02155795320868492,
-0.5434961915016174,
0.05682728439569473,
-0.33893853425979614,
0.09992364048957825,
-0.13961146771907806,
-0.15313541889190674,
-0.1597622185945511,
-0.18502874672412872,
0.3447808027267456,
0.07668469101190567,
-0.045482419431209564,
-0.44644102454185486,
-0.026719633489847183,
0.037173859775066376,
-0.09555463492870331,
-0.07477099448442459,
0.14846397936344147,
0.0051725213415920734,
-0.3181423544883728,
-0.05778711661696434,
0.08857325464487076,
0.08496882021427155,
0.07271154969930649,
0.3011941909790039,
0.1814303994178772,
0.16275784373283386,
-0.08635217696428299,
-0.1732785850763321,
0.10439198464155197,
0.11384245753288269,
-0.005346749909222126,
0.04602745175361633,
-0.07078338414430618,
-0.029474783688783646,
0.22159159183502197,
0.02828005887567997,
0.02478773333132267,
0.10649633407592773,
0.300761342048645,
-0.4033622145652771,
0.13340449333190918,
0.03240005299448967,
0.22793029248714447,
0.21148918569087982,
-0.48699113726615906,
0.12960702180862427,
0.2989041805267334,
0.4539077877998352,
-0.49493229389190674,
0.0021947738714516163,
0.13489440083503723,
0.2098197340965271,
0.21414804458618164,
-0.022702306509017944,
-0.020530154928565025,
0.01910400204360485,
-0.024296201765537262,
0.2847110629081726,
0.14921149611473083,
-0.1837683469057083,
0.2255082130432129,
0.56181401014328,
-0.1565524935722351,
-0.05210011079907417,
-0.08357595652341843,
0.11970285326242447,
0.053214699029922485,
0.6409170627593994,
-0.021349458023905754,
0.5188953876495361,
-0.02086389996111393,
0.053055182099342346,
0.017941756173968315,
-0.1945541501045227,
0.024133609607815742,
0.1158735603094101,
-0.15788474678993225,
0.17546069622039795,
0.1790548712015152,
0.12700782716274261,
-0.15544962882995605,
-0.3245251774787903,
-0.24164065718650818,
0.06619750708341599,
-0.33379554748535156,
-0.049208205193281174,
-0.44652342796325684,
-0.054896559566259384,
-0.2335655391216278,
-0.07683879137039185,
0.1006762832403183,
-0.24839459359645844,
0.03780106082558632,
0.027534540742635727,
-0.16040293872356415,
-0.1588708907365799,
-0.13908541202545166,
0.04297426715493202,
0.1881639063358307,
-0.05697910487651825,
0.10251593589782715,
0.4438003897666931,
-0.12851835787296295,
0.07981081306934357,
0.28662872314453125,
0.43947917222976685,
0.21188794076442719,
-0.0260809063911438,
0.0607135035097599,
0.01993555575609207,
-0.29018494486808777,
-0.057024795562028885,
0.3167179226875305,
0.23166076838970184,
0.06527317315340042,
0.28549519181251526,
0.3337289094924927,
-0.3265681564807892,
0.04260110482573509,
0.17560265958309174,
0.15069064497947693,
-0.2586560845375061,
0.25945359468460083,
0.04978285729885101,
-0.05807958543300629,
-0.40169602632522583,
-0.1670694649219513,
-0.35396942496299744,
-0.1325336992740631,
0.52369225025177,
0.10748931765556335,
0.12654472887516022,
-0.21045617759227753,
0.1851721704006195,
-0.06094514578580856,
0.2532326579093933,
0.14998143911361694,
0.157634899020195,
-0.3179417848587036,
-0.23239190876483917,
-0.6231597065925598,
0.09028210490942001,
-0.16516435146331787,
-0.13864284753799438,
-0.0792437419295311,
0.04113534092903137,
-0.01587207056581974,
0.13608942925930023,
-0.004347684793174267,
0.09329646080732346,
0.04313569515943527,
0.09181024134159088,
-0.48636123538017273,
-0.1456211656332016,
-0.19958801567554474,
0.09007257223129272,
0.16565467417240143,
-0.3219248652458191,
-0.001983355963602662,
-0.1730482578277588,
0.22411133348941803,
0.09280268847942352,
-0.04315527528524399,
0.042192138731479645,
0.2434084266424179,
0.1896234005689621,
0.04401473328471184,
0.4735170304775238,
-0.1255483776330948,
0.07087623327970505,
-0.09931674599647522,
-0.39054447412490845,
-0.18660271167755127,
0.21001078188419342,
0.32522904872894287,
0.3909316658973694,
-0.07346460223197937,
0.05942782387137413,
-0.022949235513806343,
0.017703918740153313,
0.2530502676963806,
-0.32883891463279724,
-0.3871292173862457,
0.11729996651411057,
0.2303164005279541,
0.17718066275119781,
0.04501254856586456,
0.20787487924098969,
-0.06942956894636154,
-0.01912187598645687,
-0.21180513501167297,
-0.5480453968048096,
0.5345568656921387,
-0.29427865147590637,
-0.24839195609092712,
-0.26667141914367676,
0.0752767026424408,
0.28752246499061584,
-0.05744940787553787,
-0.6307252645492554,
0.048726748675107956,
0.22574540972709656,
0.05036238208413124,
-0.22045955061912537,
0.2630022466182709,
-0.153878316283226,
0.03207371011376381,
-0.03504576161503792,
0.16976754367351532,
0.11941748857498169,
-0.08986766636371613,
0.0852503776550293,
-0.40254393219947815
] |
https://github.com/huggingface/datasets/issues/1683 | `ArrowInvalid` occurs while running `Dataset.map()` function for DPRContext | Looks like the mapping function returns a dictionary with a 768-dim array in the `embeddings` field. Since the map is batched, we actually expect the `embeddings` field to be an array of shape (batch_size, 768) to have one embedding per example in the batch.
To fix that can you try to remove one of the `[0]` ? In my opinion you only need one of them, not two. | It seems to fail the final batch ):
steps to reproduce:
```
from datasets import load_dataset
from elasticsearch import Elasticsearch
import torch
from transformers import file_utils, set_seed
from transformers import DPRContextEncoder, DPRContextEncoderTokenizerFast
MAX_SEQ_LENGTH = 256
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base", cache_dir="../datasets/")
ctx_tokenizer = DPRContextEncoderTokenizerFast.from_pretrained(
"facebook/dpr-ctx_encoder-single-nq-base",
cache_dir="..datasets/"
)
dataset = load_dataset('text',
data_files='data/raw/ARC_Corpus.txt',
cache_dir='../datasets')
torch.set_grad_enabled(False)
ds_with_embeddings = dataset.map(
lambda example: {
'embeddings': ctx_encoder(
**ctx_tokenizer(
example["text"],
padding='max_length',
truncation=True,
max_length=MAX_SEQ_LENGTH,
return_tensors="pt"
)
)[0][0].numpy(),
},
batched=True,
load_from_cache_file=False,
batch_size=1000
)
```
ARC Corpus can be obtained from [here](https://ai2-datasets.s3-us-west-2.amazonaws.com/arc/ARC-V1-Feb2018.zip)
And then the error:
```
---------------------------------------------------------------------------
ArrowInvalid Traceback (most recent call last)
<ipython-input-13-67d139bb2ed3> in <module>
14 batched=True,
15 load_from_cache_file=False,
---> 16 batch_size=1000
17 )
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in map(self, function, with_indices, input_columns, batched, batch_size, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc)
301 num_proc=num_proc,
302 )
--> 303 for k, dataset in self.items()
304 }
305 )
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in <dictcomp>(.0)
301 num_proc=num_proc,
302 )
--> 303 for k, dataset in self.items()
304 }
305 )
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint)
1257 fn_kwargs=fn_kwargs,
1258 new_fingerprint=new_fingerprint,
-> 1259 update_data=update_data,
1260 )
1261 else:
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs)
155 }
156 # apply actual function
--> 157 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
158 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
159 # re-apply format to the output
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs)
161 # Call actual function
162
--> 163 out = func(self, *args, **kwargs)
164
165 # Update fingerprint of in-place transforms + update in-place history of transforms
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, update_data)
1526 if update_data:
1527 batch = cast_to_python_objects(batch)
-> 1528 writer.write_batch(batch)
1529 if update_data:
1530 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
276 typed_sequence = TypedSequence(batch_examples[col], type=col_type, try_type=col_try_type)
277 typed_sequence_examples[col] = typed_sequence
--> 278 pa_table = pa.Table.from_pydict(typed_sequence_examples)
279 self.write_table(pa_table)
280
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.from_pydict()
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.from_arrays()
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.validate()
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: Column 1 named text expected length 768 but got length 1000
``` | 68 | `ArrowInvalid` occurs while running `Dataset.map()` function for DPRContext
It seems to fail the final batch ):
steps to reproduce:
```
from datasets import load_dataset
from elasticsearch import Elasticsearch
import torch
from transformers import file_utils, set_seed
from transformers import DPRContextEncoder, DPRContextEncoderTokenizerFast
MAX_SEQ_LENGTH = 256
ctx_encoder = DPRContextEncoder.from_pretrained("facebook/dpr-ctx_encoder-single-nq-base", cache_dir="../datasets/")
ctx_tokenizer = DPRContextEncoderTokenizerFast.from_pretrained(
"facebook/dpr-ctx_encoder-single-nq-base",
cache_dir="..datasets/"
)
dataset = load_dataset('text',
data_files='data/raw/ARC_Corpus.txt',
cache_dir='../datasets')
torch.set_grad_enabled(False)
ds_with_embeddings = dataset.map(
lambda example: {
'embeddings': ctx_encoder(
**ctx_tokenizer(
example["text"],
padding='max_length',
truncation=True,
max_length=MAX_SEQ_LENGTH,
return_tensors="pt"
)
)[0][0].numpy(),
},
batched=True,
load_from_cache_file=False,
batch_size=1000
)
```
ARC Corpus can be obtained from [here](https://ai2-datasets.s3-us-west-2.amazonaws.com/arc/ARC-V1-Feb2018.zip)
And then the error:
```
---------------------------------------------------------------------------
ArrowInvalid Traceback (most recent call last)
<ipython-input-13-67d139bb2ed3> in <module>
14 batched=True,
15 load_from_cache_file=False,
---> 16 batch_size=1000
17 )
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in map(self, function, with_indices, input_columns, batched, batch_size, remove_columns, keep_in_memory, load_from_cache_file, cache_file_names, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc)
301 num_proc=num_proc,
302 )
--> 303 for k, dataset in self.items()
304 }
305 )
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/dataset_dict.py in <dictcomp>(.0)
301 num_proc=num_proc,
302 )
--> 303 for k, dataset in self.items()
304 }
305 )
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint)
1257 fn_kwargs=fn_kwargs,
1258 new_fingerprint=new_fingerprint,
-> 1259 update_data=update_data,
1260 )
1261 else:
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs)
155 }
156 # apply actual function
--> 157 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
158 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out]
159 # re-apply format to the output
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs)
161 # Call actual function
162
--> 163 out = func(self, *args, **kwargs)
164
165 # Update fingerprint of in-place transforms + update in-place history of transforms
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, update_data)
1526 if update_data:
1527 batch = cast_to_python_objects(batch)
-> 1528 writer.write_batch(batch)
1529 if update_data:
1530 writer.finalize() # close_stream=bool(buf_writer is None)) # We only close if we are writing in a file
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/datasets/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
276 typed_sequence = TypedSequence(batch_examples[col], type=col_type, try_type=col_try_type)
277 typed_sequence_examples[col] = typed_sequence
--> 278 pa_table = pa.Table.from_pydict(typed_sequence_examples)
279 self.write_table(pa_table)
280
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.from_pydict()
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.from_arrays()
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.validate()
~/.cache/pypoetry/virtualenvs/masters-utTTC0p8-py3.7/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: Column 1 named text expected length 768 but got length 1000
```
Looks like the mapping function returns a dictionary with a 768-dim array in the `embeddings` field. Since the map is batched, we actually expect the `embeddings` field to be an array of shape (batch_size, 768) to have one embedding per example in the batch.
To fix that can you try to remove one of the `[0]` ? In my opinion you only need one of them, not two. | [
-0.5113661885261536,
-0.3407371938228607,
-0.12627191841602325,
0.06084984540939331,
0.07763803005218506,
0.14176690578460693,
-0.018712103366851807,
0.26980680227279663,
-0.2622148394584656,
0.0491960346698761,
0.11080654710531235,
0.5883790254592896,
-0.030782397836446762,
-0.13176800310611725,
-0.4038940668106079,
-0.09057432413101196,
-0.06165678799152374,
0.12190611660480499,
0.24245589971542358,
-0.0899353176355362,
-0.36683687567710876,
0.08830893784761429,
-0.2699975073337555,
-0.10032296925783157,
-0.1718575805425644,
-0.23219774663448334,
0.23139165341854095,
-0.037713710218667984,
0.0033011517953127623,
-0.6815322637557983,
0.6883982419967651,
-0.29781901836395264,
0.24296845495700836,
0.16276705265045166,
-0.00011839860962936655,
0.2131495326757431,
0.45000138878822327,
0.011197764426469803,
-0.006567174568772316,
0.08025810867547989,
-0.24032540619373322,
0.19477732479572296,
0.08558495342731476,
-0.16381900012493134,
0.08585657924413681,
-0.03536897152662277,
-0.04417845234274864,
-0.4277080297470093,
0.3808457553386688,
0.1953350305557251,
0.10143113136291504,
0.21742193400859833,
0.051474686712026596,
-0.015188412740826607,
-0.06874497979879379,
0.19604918360710144,
-0.13333027064800262,
-0.22559228539466858,
0.27977079153060913,
0.18103668093681335,
0.14583750069141388,
0.5812525153160095,
-0.048261649906635284,
0.2692406177520752,
0.15762853622436523,
-0.19725771248340607,
0.057973720133304596,
-0.33316490054130554,
0.19153806567192078,
-0.11217348277568817,
0.209419384598732,
-0.22293826937675476,
-0.25140753388404846,
0.13665607571601868,
-0.19580203294754028,
-0.3983702063560486,
0.16237011551856995,
-0.13681745529174805,
0.051956918090581894,
0.03653588891029358,
-0.14554131031036377,
0.1398390829563141,
-0.22714763879776,
0.24815061688423157,
-0.1595497727394104,
0.15872740745544434,
-0.0363633930683136,
0.3123624622821808,
-0.016165459528565407,
-0.13191896677017212,
0.17960309982299805,
0.12993526458740234,
-0.12331314384937286,
0.09104619175195694,
-0.2346748560667038,
-0.15034295618534088,
-0.2761262357234955,
-0.3692838251590729,
0.021340984851121902,
-0.15421341359615326,
-0.10898647457361221,
0.18758632242679596,
0.5407515168190002,
0.14123083651065826,
0.08593754470348358,
0.11324235796928406,
0.2426152229309082,
0.8317355513572693,
-0.0535716749727726,
-0.6531258821487427,
0.06782012432813644,
0.07014407962560654,
-0.033805105835199356,
-0.3524084985256195,
0.25686267018318176,
0.15014179050922394,
0.1474727839231491,
0.03496643155813217,
-0.27994629740715027,
0.14070981740951538,
-0.43816548585891724,
0.007740922272205353,
-0.2134210169315338,
0.3998953402042389,
0.29571548104286194,
-0.14977268874645233,
0.22244058549404144,
0.13311532139778137,
0.1421479433774948,
-0.10577027499675751,
-0.005941643379628658,
-0.08938601613044739,
-0.18928784132003784,
-0.1479354202747345,
0.1425800621509552,
-0.19671544432640076,
0.21726775169372559,
-0.2264874130487442,
-0.01133798062801361,
-0.08503911644220352,
0.3367850184440613,
0.06559561938047409,
0.432656854391098,
0.21800914406776428,
0.023151421919465065,
0.22970566153526306,
-0.010406114161014557,
0.19109569489955902,
-0.11350612342357635,
-0.07931947708129883,
-0.1578667163848877,
-0.330991268157959,
-0.36548179388046265,
0.15617218613624573,
0.39523595571517944,
-0.028295796364545822,
-0.07041092962026596,
0.005860380362719297,
0.5582674741744995,
-0.012278796173632145,
0.33742260932922363,
-0.23782230913639069,
0.11931734532117844,
0.006036203354597092,
-0.08632703870534897,
0.18486931920051575,
-0.34994807839393616,
-0.0525055006146431,
0.031724125146865845,
0.28067803382873535,
0.04824690520763397,
0.049132298678159714,
-0.3638935983181,
0.09155699610710144,
-0.12234123051166534,
0.5995524525642395,
0.44064512848854065,
-0.746110200881958,
-0.3960717022418976,
0.5548930168151855,
0.000023489836166845635,
-0.27478447556495667,
-0.020293517038226128,
-0.061233486980199814,
0.4194324314594269,
-0.12865160405635834,
0.1339123696088791,
0.08151392638683319,
-0.0028018103912472725,
0.06026824936270714,
-0.07690487056970596,
0.01753094233572483,
0.20588873326778412,
0.13035377860069275,
0.08668599277734756,
-0.01687195524573326,
0.2668991684913635,
-0.03381243720650673,
-0.08745956420898438,
0.013731042854487896,
0.33138054609298706,
0.4629957675933838,
-0.11803081631660461,
-0.10435371100902557,
0.25043466687202454,
0.016417553648352623,
-0.347278892993927,
0.1601373553276062,
-0.1680818498134613,
-0.016855228692293167,
-0.343441903591156,
-0.2692350745201111,
-0.1579740345478058,
0.18760667741298676,
-0.33793625235557556,
-0.2994133532047272,
0.05451049283146858,
0.023709798231720924,
-0.02313603088259697,
-0.15069708228111267,
-0.23487605154514313,
-0.3109050691127777,
-0.0031265586148947477,
0.012928619049489498,
-0.3710367679595947,
-0.08105932176113129,
-0.10287611186504364,
-0.16664987802505493,
-0.22295784950256348,
-0.08238081634044647,
0.19442816078662872,
-0.18687030673027039,
-0.20593468844890594,
0.3810173571109772,
-0.3576885759830475,
0.15752242505550385,
-0.20363749563694,
0.03534450754523277,
0.09658727049827576,
-0.7572346329689026,
-0.1935378611087799,
-0.08539324998855591,
0.02265595644712448,
-0.1436368077993393,
0.297373503446579,
0.03320373222231865,
0.4531668424606323,
0.32563599944114685,
-0.23011335730552673,
0.04234227165579796,
0.10646103322505951,
-0.06333629041910172,
-0.16954171657562256,
-0.23644526302814484,
-0.1860889047384262,
-0.19816352427005768,
0.16072869300842285,
-0.02866359055042267,
-0.10106275975704193,
0.03360208868980408,
0.1005505919456482,
0.03284848853945732,
0.05183139070868492,
0.0886935219168663,
-0.30162981152534485,
0.11394114047288895,
0.2114744782447815,
0.11009614914655685,
0.14208315312862396,
0.0793418437242508,
0.08463900536298752,
0.058550674468278885,
-0.04048941284418106,
0.070068359375,
0.3686750531196594,
0.21797215938568115,
-0.02816712111234665,
0.257704496383667,
0.010633395984768867,
0.31537938117980957,
-0.2567855417728424,
-0.2252311259508133,
0.20958320796489716,
0.07086203247308731,
-0.2471296489238739,
0.17027176916599274,
-0.10327907651662827,
-0.12203311920166016,
0.034845586866140366,
-0.17995896935462952,
0.26011091470718384,
-0.09455409646034241,
-0.05040492117404938,
0.010241711512207985,
-0.06119436398148537,
0.4547734558582306,
-0.05814167857170105,
-0.07826230674982071,
0.3865160644054413,
-0.18648532032966614,
-0.2859804928302765,
-0.18849922716617584,
-0.2462264895439148,
-0.10403496772050858,
0.05070061981678009,
0.009210147894918919,
0.2503569424152374,
0.19130997359752655,
0.07216843217611313,
-0.3318425118923187,
-0.23221668601036072,
0.33743542432785034,
-0.0510997511446476,
-0.39571279287338257,
0.1137746050953865,
-0.24944010376930237,
-0.38292384147644043,
-0.45150840282440186,
0.13951966166496277,
0.15347348153591156,
-0.21974726021289825,
0.11521082371473312,
-0.10876068472862244,
-0.22306275367736816,
0.14892219007015228,
-0.5410323739051819,
-0.2287047654390335,
-0.21455810964107513,
-0.08288191258907318,
-0.3405640721321106,
-0.03867434337735176,
0.1827489137649536,
0.1774793267250061,
0.0308762788772583,
-0.02092917077243328,
-0.05060547962784767,
-0.18196366727352142,
0.19959916174411774,
0.2329193353652954,
-0.37835851311683655,
0.01988990046083927,
-0.040856145322322845,
-0.16200539469718933,
0.3158456087112427,
0.5299432873725891,
-0.17420890927314758,
0.4087522029876709,
-0.09358537942171097,
0.041587427258491516,
-0.3694303333759308,
0.14195847511291504,
0.5250951647758484,
0.2435426265001297,
-0.08900044113397598,
-0.07979647070169449,
0.12145017832517624,
0.05656122416257858,
-0.16461262106895447,
0.23313745856285095,
-0.1432998925447464,
0.5282084941864014,
0.02304615080356598,
0.7464088797569275,
0.18650975823402405,
-0.6531710624694824,
0.3472137451171875,
-0.008507600985467434,
-0.02733832783997059,
0.08295001089572906,
-0.1887919008731842,
-0.09429596364498138,
-0.18317443132400513,
0.08020266145467758,
-0.12024977058172226,
-0.14437492191791534,
-0.576766848564148,
0.193126380443573,
0.09031592309474945,
-0.4708707332611084,
0.07252588123083115,
0.009892993606626987,
-0.2897840440273285,
0.4527914524078369,
0.026333916932344437,
0.1306551694869995,
-0.05303259193897247,
0.0912238135933876,
0.15451255440711975,
-0.28869760036468506,
0.014781256206333637,
-0.04378783330321312,
-0.0654517263174057,
-0.21739241480827332,
-0.3671257197856903,
0.4868411123752594,
0.2577665150165558,
0.347982257604599,
-0.11464409530162811,
0.16268344223499298,
0.055798985064029694,
0.1853664517402649,
0.4528125524520874,
-0.44657206535339355,
0.10912127792835236,
0.007497225422412157,
-0.19069640338420868,
-0.2724786400794983,
0.09426712244749069,
-0.06056961044669151,
0.5769731998443604,
0.41454842686653137,
0.4333515167236328,
-0.14631180465221405,
-0.012142088264226913,
0.09913574904203415,
-0.2778378427028656,
0.0614905022084713,
-0.009180163033306599,
0.0020791576243937016,
-0.16593995690345764,
-0.2891859710216522,
0.07461652159690857,
0.5696232914924622,
0.047560449689626694,
0.30335262417793274,
-0.3070923089981079,
-0.5790472030639648,
-0.03922310471534729,
-0.22695553302764893,
0.0006710648303851485,
0.21060730516910553,
-0.03645944222807884,
0.15299007296562195,
-0.009676044806838036,
0.3127453029155731,
0.566159725189209,
0.18932735919952393,
-0.03595595061779022,
-0.17882618308067322,
0.14386552572250366,
-0.08968381583690643,
0.09971585869789124,
0.11434627324342728,
-0.1353590041399002,
-0.14749526977539062,
0.04935392364859581,
-0.05271393433213234,
-0.09715615957975388,
-0.011167521588504314,
0.2810415029525757,
0.13373038172721863,
-0.35880380868911743,
0.029427431523799896,
0.28766411542892456,
-0.10651370137929916,
-0.022147370502352715,
0.5833805799484253,
0.120818592607975,
-0.3441370129585266,
0.5862821340560913,
0.4361248314380646,
0.6721881628036499,
0.22871054708957672,
-0.10585378110408783,
-0.09882287681102753,
0.27961835265159607,
-0.016794949769973755,
-0.06844058632850647,
0.16139312088489532,
-0.23415052890777588,
0.16170988976955414,
-0.06677498668432236,
-0.10776546597480774,
-0.05330047011375427,
0.2654426693916321,
-0.21071255207061768,
-0.1009788066148758,
0.13533011078834534,
-0.22782930731773376,
-0.09185005724430084,
0.09102746099233627,
-0.03537767007946968,
-0.24078771471977234,
0.26444560289382935,
0.07889245450496674,
0.1308474987745285,
0.19204944372177124,
-0.11144401878118515,
-0.14725922048091888,
0.06683608889579773,
-0.3950735926628113,
-0.23387832939624786,
0.06559506803750992,
-0.42764511704444885,
0.6017540693283081,
0.1960134357213974,
-0.18621787428855896,
0.24366120994091034,
0.28434643149375916,
0.2751024663448334,
-0.22134506702423096,
-0.09983200579881668,
0.29110434651374817,
0.4625076949596405,
-0.2195216715335846,
0.08965916931629181,
-0.11842253059148788,
0.13194260001182556,
0.01713787019252777,
-0.08147891610860825,
0.22182688117027283,
-0.1132747083902359,
-0.3836538791656494,
0.14498144388198853,
0.013661115430295467,
-0.11290213465690613,
-0.20236508548259735,
0.004281740635633469,
-0.0683046504855156,
-0.3333321213722229,
-0.17131949961185455,
0.02220928855240345,
-0.19411040842533112,
-0.1613931506872177,
0.11378702521324158,
0.0862242802977562,
-0.33747729659080505,
0.2519736886024475,
0.6712552905082703,
-0.15565083920955658,
-0.3268625736236572,
0.474131315946579,
-0.013780126348137856,
-0.18991516530513763,
-0.22565558552742004,
0.07543586194515228,
0.5069114565849304,
-0.5794174075126648,
0.08277510106563568,
-0.3235071897506714,
0.010247874073684216,
0.15713179111480713,
0.5728722810745239,
0.03564383089542389,
0.3189879357814789,
-0.19379448890686035,
-0.06539204716682434,
-0.2630268335342407,
0.023029014468193054,
-0.07552805542945862,
0.42254745960235596,
-0.11403557658195496,
0.14035320281982422,
-0.06592676788568497,
0.03106445074081421,
-0.2126421332359314,
-0.03435564413666725,
-0.2249838411808014,
0.03714245185256004,
-0.11691003292798996,
0.1496395617723465,
0.052056778222322464,
0.10606798529624939,
-0.03316489979624748,
0.425889790058136,
-0.17060524225234985,
-0.09957341849803925,
0.09344543516635895,
0.15738727152347565,
0.16905318200588226,
-0.10386138409376144,
-0.24774017930030823,
-0.10660653561353683,
-0.2969987094402313,
-0.055475130677223206,
0.1336551457643509,
0.09641820937395096,
-0.024532973766326904,
0.16795781254768372,
-0.056005995720624924,
0.0031046431977301836,
0.04171767085790634,
-0.20562933385372162,
0.11201262474060059,
0.19130311906337738,
-0.09874589741230011,
0.2429511994123459,
0.07120037078857422,
-0.010220530442893505,
-0.1499936431646347,
-0.04073788970708847,
0.08042704313993454,
0.03914899751543999,
0.2788161039352417,
-0.49098581075668335,
-0.21658317744731903,
0.13410058617591858,
0.1585981398820877,
0.08857627213001251,
-0.5477802157402039,
-0.2336433380842209,
-0.020023852586746216,
0.21419434249401093,
-0.05384710431098938,
0.03838251158595085,
-0.11847269535064697,
0.14340165257453918,
0.045156750828027725,
-0.028205959126353264,
0.16231924295425415,
-0.09659973531961441,
0.15332622826099396,
0.2675464153289795,
0.38099193572998047,
-0.44682368636131287,
0.05747632682323456,
0.24889621138572693,
-0.11213542520999908,
0.06730630993843079,
0.1593640297651291,
0.31474632024765015,
0.5915930271148682,
0.3026497960090637,
-0.10688038915395737,
0.6875790953636169,
0.2359992414712906,
0.17130327224731445,
0.05905448645353317,
-0.0296098031103611,
0.05596846714615822,
-0.13446947932243347,
0.10468505322933197,
0.25209474563598633,
0.29096534848213196,
0.19313432276248932,
-0.09825689345598221,
-0.2824087142944336,
0.006294616032391787,
0.022751793265342712,
-0.15743018686771393,
-0.146756112575531,
-0.3718588054180145,
0.034834444522857666,
0.02377799153327942,
-0.048521894961595535,
-0.13885565102100372,
0.30945953726768494,
0.2812198996543884,
0.0936243012547493,
-0.38404327630996704,
-0.1180860698223114,
0.13152867555618286,
-0.010585103183984756,
0.16340887546539307,
-0.203989177942276,
0.21023882925510406,
0.0912889763712883,
-0.1629299521446228,
0.050826296210289,
0.524924635887146,
0.387381374835968,
0.23209641873836517,
-0.3360830843448639,
0.04964184761047363,
0.06347673386335373,
-0.08558056503534317,
0.03243740648031235,
0.268718421459198,
0.0039699263870716095,
-0.00993877463042736,
0.0981375128030777,
0.05937841534614563,
-0.0846746638417244,
-0.02611742727458477,
0.16434209048748016,
0.4865001440048218,
0.39003947377204895,
-0.08449365198612213,
-0.17988526821136475,
-0.11793578416109085,
0.06088757514953613,
0.10914385318756104,
-0.446412593126297,
0.12878890335559845,
0.46331557631492615,
-0.18771199882030487,
0.08116918057203293,
0.012980322353541851,
0.04677014425396919,
-0.17539674043655396,
0.44791412353515625,
0.47294870018959045,
-0.1310105323791504,
-0.24273337423801422,
-0.1254308670759201,
-0.11558955162763596,
0.4575335383415222,
-0.10923908650875092,
-0.02735913172364235,
0.3644368350505829,
0.3641224205493927,
0.1350463330745697,
0.031227320432662964,
0.20693689584732056,
0.01611679047346115,
-0.2688085436820984,
0.40638408064842224,
-0.00022546933905687183,
-0.02507740445435047,
-0.07817330956459045,
0.11123999208211899,
0.1547820121049881,
-0.26952221989631653,
0.0635710209608078,
0.26078635454177856,
0.026718007400631905,
-0.38948413729667664,
-0.26698070764541626,
0.13523472845554352,
-0.25950634479522705,
0.694331169128418,
0.02994169481098652,
0.07025238871574402,
-0.25116994976997375,
0.07539017498493195,
-0.2062065452337265,
-0.34136563539505005,
0.009822661057114601,
-0.008406506851315498,
0.26450827717781067,
0.2744283080101013,
-0.09392724931240082,
-0.09269534796476364,
-0.3260192275047302,
-0.2867221236228943,
-0.06685161590576172,
-0.2104843258857727,
-0.27759549021720886,
0.30505046248435974,
-0.29555055499076843,
0.17996367812156677,
-0.15101109445095062,
0.17110709846019745,
0.2621454894542694,
0.24052588641643524,
-0.36419835686683655,
-0.5881092548370361,
0.5087835788726807,
-0.33976686000823975,
-0.3331577181816101,
0.30332690477371216,
0.028991319239139557,
0.6112290024757385,
0.1801217943429947,
-0.5372483134269714,
0.009709314443171024,
0.1904551088809967,
-0.08976121246814728,
-0.41891801357269287,
-0.21749790012836456,
0.1601075679063797,
0.09646803885698318,
-0.09957548975944519,
0.3238028883934021,
0.10502070933580399,
0.11338485777378082,
-0.25569167733192444,
-0.3263610005378723
] |
https://github.com/huggingface/datasets/issues/1681 | Dataset "dane" missing | Hi @KennethEnevoldsen ,
I think the issue might be that this dataset was added during the community sprint and has not been released yet. It will be available with the v2 of datasets.
For now, you should be able to load the datasets after installing the latest (master) version of datasets using pip:
pip install git+https://github.com/huggingface/datasets.git@master | the `dane` dataset appear to be missing in the latest version (1.1.3).
```python
>>> import datasets
>>> datasets.__version__
'1.1.3'
>>> "dane" in datasets.list_datasets()
True
```
As we can see it should be present, but doesn't seem to be findable when using `load_dataset`.
```python
>>> datasets.load_dataset("dane")
Traceback (most recent call last):
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/load.py", line 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 300, in cached_path
output_path = get_from_cache(
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dane/dane.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/load.py", line 278, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 300, in cached_path
output_path = get_from_cache(
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dane/dane.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/load.py", line 588, in load_dataset
module_path, hash = prepare_module(
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/load.py", line 280, in prepare_module
raise FileNotFoundError(
FileNotFoundError: Couldn't find file locally at dane/dane.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dane/dane.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dane/dane.py
```
This issue might be relevant to @ophelielacroix from the Alexandra Institut whom created the data. | 56 | Dataset "dane" missing
the `dane` dataset appear to be missing in the latest version (1.1.3).
```python
>>> import datasets
>>> datasets.__version__
'1.1.3'
>>> "dane" in datasets.list_datasets()
True
```
As we can see it should be present, but doesn't seem to be findable when using `load_dataset`.
```python
>>> datasets.load_dataset("dane")
Traceback (most recent call last):
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/load.py", line 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 300, in cached_path
output_path = get_from_cache(
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dane/dane.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/load.py", line 278, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 300, in cached_path
output_path = get_from_cache(
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dane/dane.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/load.py", line 588, in load_dataset
module_path, hash = prepare_module(
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/load.py", line 280, in prepare_module
raise FileNotFoundError(
FileNotFoundError: Couldn't find file locally at dane/dane.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dane/dane.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dane/dane.py
```
This issue might be relevant to @ophelielacroix from the Alexandra Institut whom created the data.
Hi @KennethEnevoldsen ,
I think the issue might be that this dataset was added during the community sprint and has not been released yet. It will be available with the v2 of datasets.
For now, you should be able to load the datasets after installing the latest (master) version of datasets using pip:
pip install git+https://github.com/huggingface/datasets.git@master | [
-0.006653383374214172,
-0.061256539076566696,
-0.09929956495761871,
0.12845174968242645,
0.26583391427993774,
0.2934044301509857,
0.4646621644496918,
0.1487024426460266,
0.2840229868888855,
0.08272838592529297,
0.13032886385917664,
0.04085879027843475,
-0.09202374517917633,
-0.1245877593755722,
0.29717838764190674,
-0.2793467938899994,
0.22021770477294922,
0.05129773169755936,
0.1837170422077179,
-0.14759743213653564,
-0.236997589468956,
0.2542140483856201,
-0.2888592481613159,
-0.09003900736570358,
-0.09242258220911026,
0.08238418400287628,
-0.10188768804073334,
0.1397819221019745,
-0.06495340168476105,
-0.6014866828918457,
0.6427772045135498,
0.041770778596401215,
0.3791094124317169,
0.4024260938167572,
-0.00011106583406217396,
0.054083194583654404,
0.24328342080116272,
0.023511361330747604,
-0.48698723316192627,
-0.3152082562446594,
-0.6912311315536499,
-0.4789559543132782,
0.1658880114555359,
-0.14663536846637726,
-0.06420572847127914,
0.13011758029460907,
0.07345530390739441,
-0.46009939908981323,
0.044070228934288025,
0.20215705037117004,
0.2513066828250885,
0.09741055220365524,
0.18386025726795197,
-0.2588641941547394,
0.030778517946600914,
0.2624582350254059,
-0.15203887224197388,
0.15973593294620514,
0.18504595756530762,
0.1987568438053131,
0.3487950265407562,
0.30788490176200867,
0.14899489283561707,
0.0193946436047554,
0.28770682215690613,
0.15531429648399353,
0.2871355712413788,
-0.1641147881746292,
-0.007011646870523691,
0.06313741952180862,
0.6540954113006592,
-0.14077340066432953,
-0.704075813293457,
-0.35330238938331604,
0.14857417345046997,
-0.3803814947605133,
0.1837788075208664,
-0.13973738253116608,
-0.12420324236154556,
0.15259172022342682,
-0.22221416234970093,
-0.24556653201580048,
0.029542984440922737,
0.26103898882865906,
-0.29169079661369324,
0.3245621919631958,
-0.1398501694202423,
-0.021707015112042427,
-0.2066090703010559,
-0.05921014025807381,
-0.02479560114443302,
-0.11592061817646027,
0.11396346241235733,
0.27410054206848145,
-0.2491636425256729,
-0.06744703650474548,
0.11850041151046753,
-0.20615029335021973,
-0.03279930353164673,
0.149819478392601,
0.017394941300153732,
-0.17190586030483246,
-0.00637343805283308,
0.10069666057825089,
0.3534797430038452,
0.2497100532054901,
0.19845053553581238,
-0.0159757100045681,
0.25751784443855286,
0.3605659008026123,
0.18646475672721863,
-0.16572532057762146,
-0.20603813230991364,
-0.24009376764297485,
0.22699587047100067,
0.09620758146047592,
0.27032414078712463,
-0.05759195238351822,
-0.23052334785461426,
-0.02086254395544529,
0.365246444940567,
-0.14992518723011017,
-0.04393377900123596,
0.11242189258337021,
-0.09773843735456467,
0.36433088779449463,
-0.08032223582267761,
0.1735868602991104,
-0.1319599598646164,
0.031080150976777077,
-0.24839772284030914,
-0.07314369082450867,
-0.07619179040193558,
-0.3178836703300476,
0.22059248387813568,
-0.1794000267982483,
0.4029648005962372,
-0.010443802922964096,
-0.27018845081329346,
0.15504825115203857,
-0.06781227141618729,
0.029077652841806412,
-0.11389810591936111,
0.26729056239128113,
-0.021840417757630348,
0.1548043042421341,
0.052252501249313354,
-0.42919620871543884,
-0.17392323911190033,
-0.05616351589560509,
-0.25904443860054016,
-0.1839902400970459,
-0.5109383463859558,
0.22616536915302277,
-0.1876501590013504,
-0.3296757936477661,
-0.4136565029621124,
0.17090238630771637,
-0.0866977870464325,
-0.2888191342353821,
-0.03938911110162735,
-0.14225691556930542,
-0.30879777669906616,
-0.16362953186035156,
0.361236035823822,
0.42547357082366943,
-0.37540528178215027,
-0.222077414393425,
-0.29866790771484375,
-0.1379341036081314,
0.05248280614614487,
0.03779998794198036,
-0.1871098428964615,
0.12093792110681534,
-0.29085955023765564,
-0.19049422442913055,
0.5775367021560669,
-0.5136833786964417,
-0.27384665608406067,
0.061290375888347626,
0.14175844192504883,
0.125454843044281,
0.039023507386446,
-0.1962941437959671,
0.09341075271368027,
-0.08336302638053894,
0.06033770367503166,
0.40866050124168396,
0.016740592196583748,
-0.1915556639432907,
0.08782222121953964,
-0.09139572829008102,
-0.008583294227719307,
0.2126210629940033,
0.15179280936717987,
0.05690260976552963,
0.1812869757413864,
0.07667605578899384,
0.16004489362239838,
0.09151025861501694,
0.049468059092760086,
0.4845331013202667,
0.19557327032089233,
0.3065830171108246,
0.03852043300867081,
-0.05490582436323166,
-0.5542681813240051,
0.42407384514808655,
0.304812490940094,
-0.1309114396572113,
-0.1590322107076645,
0.03356798738241196,
-0.2935134768486023,
-0.003920969553291798,
-0.2610233426094055,
-0.17017221450805664,
0.09454504400491714,
0.2176741659641266,
0.14620263874530792,
0.21579481661319733,
-0.30230578780174255,
0.16239646077156067,
0.12020415812730789,
0.20678943395614624,
-0.2911314368247986,
0.18847553431987762,
-0.031172186136245728,
0.04432689771056175,
0.0220343004912138,
0.2709721326828003,
0.10228680074214935,
-0.03300411254167557,
-0.055941734462976456,
0.17774143815040588,
0.19012248516082764,
0.21248415112495422,
0.2953183054924011,
-0.19234232604503632,
0.24996712803840637,
-0.02797747403383255,
0.12962459027767181,
0.03287258371710777,
0.08249712735414505,
0.01154471654444933,
-0.2562762200832367,
0.015594764612615108,
0.14737342298030853,
0.12867484986782074,
0.08728998899459839,
0.253621369600296,
0.29380500316619873,
-0.022227535024285316,
0.369630366563797,
-0.3660767376422882,
0.08226727694272995,
-0.14616705477237701,
0.4610934555530548,
-0.14353148639202118,
-0.0517953522503376,
0.14152662456035614,
0.3431423604488373,
-0.06484822928905487,
0.04883499816060066,
0.24751155078411102,
-0.21299678087234497,
0.046670373529195786,
0.142393559217453,
0.5272797346115112,
0.6025570034980774,
0.2355482578277588,
0.3136327266693115,
-0.1858264058828354,
0.08779691159725189,
-0.09847613424062729,
0.10367390513420105,
0.12134676426649094,
0.09155239164829254,
-0.023681964725255966,
0.1333337128162384,
0.09049127250909805,
-0.1985490322113037,
-0.18324047327041626,
0.055504269897937775,
0.13267122209072113,
-0.07419360429048538,
0.06342602521181107,
-0.36865803599357605,
-0.035140641033649445,
-0.12541624903678894,
0.11489351093769073,
-0.24662093818187714,
-0.4466949999332428,
-0.04645167663693428,
-0.07945995032787323,
0.08446820080280304,
0.07107150554656982,
-0.18705271184444427,
0.08092951029539108,
-0.10142318159341812,
-0.08421247452497482,
-0.2959757149219513,
-0.14883345365524292,
-0.29966941475868225,
0.07205464690923691,
0.09461745619773865,
-0.11815349757671356,
0.19330839812755585,
-0.36825183033943176,
0.17600564658641815,
-0.4141763746738434,
-0.469204843044281,
-0.0031068148091435432,
-0.08487352728843689,
0.3349461555480957,
0.4064882695674896,
0.026953818276524544,
-0.2145119160413742,
-0.1444411426782608,
0.21566638350486755,
-0.24214330315589905,
-0.1893729716539383,
0.09099654853343964,
-0.048947855830192566,
-0.004045695997774601,
0.0551481731235981,
-0.2715992033481598,
-0.5440987348556519,
-0.21312424540519714,
0.08588022738695145,
0.25693273544311523,
-0.06129603832960129,
0.14132285118103027,
0.04558274894952774,
0.16042782366275787,
-0.05331682413816452,
0.3135322034358978,
-0.20541615784168243,
-0.45135200023651123,
0.35605472326278687,
-0.29460301995277405,
-0.25753509998321533,
0.2806715965270996,
-0.16062358021736145,
0.4164973199367523,
-0.24325932562351227,
-0.5850548148155212,
0.3026741147041321,
-0.16464915871620178,
0.2575049102306366,
-0.0604185052216053,
0.1800956428050995,
0.35215866565704346,
-0.016394589096307755,
-0.06789688020944595,
-0.26600009202957153,
-0.33400341868400574,
-0.23473696410655975,
-0.01021898165345192,
0.4603375792503357,
-0.09615537524223328,
0.38726985454559326,
0.03909819573163986,
0.5496207475662231,
0.19559378921985626,
-0.05512113869190216,
0.15578366816043854,
-0.07530434429645538,
0.3423403799533844,
0.012890432961285114,
-0.32611411809921265,
0.1782972663640976,
0.07546702027320862,
0.2075221985578537,
0.09822241216897964,
0.2704727053642273,
-0.2166922241449356,
-0.3083972930908203,
-0.08378344029188156,
-0.16278880834579468,
-0.13712403178215027,
-0.248292475938797,
-0.18632543087005615,
0.13934679329395294,
0.10612409561872482,
0.16690373420715332,
-0.48053354024887085,
-0.14983966946601868,
-0.08225627988576889,
0.4817935824394226,
0.28166159987449646,
0.20974020659923553,
-0.17985515296459198,
0.13776712119579315,
-0.6376330852508545,
0.171196848154068,
-0.09448207169771194,
0.48243317008018494,
-0.026046665385365486,
0.04180747643113136,
-0.03714929148554802,
0.22259068489074707,
0.4343493580818176,
-0.45814448595046997,
-0.09525743126869202,
0.1160128265619278,
-0.17046697437763214,
-0.32598552107810974,
0.005823726300150156,
0.08228879421949387,
-0.12732717394828796,
0.12124620378017426,
0.3126388192176819,
-0.08875694870948792,
-0.20109781622886658,
0.36997127532958984,
0.12984015047550201,
-0.20011715590953827,
-0.21462872624397278,
-0.3223247528076172,
-0.2684321999549866,
-0.197385773062706,
-0.3638211488723755,
-0.11860696226358414,
0.06794238835573196,
0.1455652415752411,
0.036824509501457214,
-0.2880840599536896,
0.10538112372159958,
0.09487167745828629,
0.15899819135665894,
0.26664331555366516,
0.2433158904314041,
0.16870880126953125,
0.40352004766464233,
0.1185988113284111,
0.18260781466960907,
0.4878796935081482,
-0.10878424346446991,
-0.4713648855686188,
0.13599900901317596,
0.0008554832893423736,
0.4082769453525543,
0.0806281641125679,
-0.15432719886302948,
-0.03148781880736351,
0.008496109396219254,
0.0452304482460022,
-0.32034197449684143,
-0.004698088858276606,
0.39448612928390503,
0.16070140898227692,
-0.11583902686834335,
-0.3708447813987732,
0.33124423027038574,
0.12041804939508438,
0.09846794605255127,
0.3976604640483856,
0.1105564534664154,
-0.3682604432106018,
0.11731797456741333,
-0.04342629387974739,
0.5109549760818481,
0.051822368055582047,
0.2117457240819931,
0.17901775240898132,
-0.19954541325569153,
0.460845947265625,
0.20425698161125183,
0.06248887628316879,
-0.07960472255945206,
-0.05778782069683075,
-0.15643109381198883,
-0.14970749616622925,
0.24996070563793182,
0.14469540119171143,
-0.09420730173587799,
0.3691316545009613,
0.07459908723831177,
0.25233525037765503,
0.014461700804531574,
0.2626577317714691,
-0.18127678334712982,
-0.14767222106456757,
-0.28057438135147095,
0.17341992259025574,
-0.030605027452111244,
0.4570464789867401,
-0.17665129899978638,
0.018217867240309715,
-0.02628444880247116,
-0.06357038021087646,
-0.22834007441997528,
-0.1456354260444641,
0.08647090941667557,
0.36769813299179077,
0.02693948708474636,
-0.6471765637397766,
0.22230024635791779,
0.36537042260169983,
0.48248717188835144,
0.013281500898301601,
-0.3053215742111206,
0.38028624653816223,
0.08097722381353378,
0.1492304652929306,
0.049926940351724625,
0.09527917206287384,
0.27673235535621643,
-0.08684887737035751,
-0.25058987736701965,
0.11214663088321686,
-0.20187285542488098,
-0.3773929178714752,
-0.07069767266511917,
-0.017187155783176422,
-0.12374133616685867,
-0.03890286013484001,
-0.012935297563672066,
-0.026110708713531494,
0.18247228860855103,
-0.3737733066082001,
0.1526242196559906,
0.2982405722141266,
0.004371896386146545,
-0.05549516901373863,
-0.19572266936302185,
-0.1303299516439438,
-0.13793134689331055,
0.41668272018432617,
-0.0922934040427208,
-0.40695706009864807,
0.5085169076919556,
0.12034136801958084,
-0.1783442497253418,
-0.14311479032039642,
0.1727578490972519,
0.06488140672445297,
-0.18872970342636108,
0.0020651279482990503,
-0.19861386716365814,
0.2678202986717224,
0.08572839945554733,
-0.017883822321891785,
0.1039518341422081,
-0.48788687586784363,
0.06850843131542206,
-0.5261337757110596,
-0.3209863007068634,
0.2049984186887741,
-0.21841196715831757,
0.13944809138774872,
0.02978675253689289,
-0.2115044742822647,
0.046366140246391296,
-0.2618279755115509,
-0.3148193657398224,
0.09663325548171997,
-0.17123636603355408,
-0.16769921779632568,
-0.18002165853977203,
0.0274009108543396,
0.11571258306503296,
-0.1935606598854065,
0.2423853576183319,
-0.3069903552532196,
0.008360536769032478,
-0.19541732966899872,
-0.12883323431015015,
0.11487426608800888,
-0.14860928058624268,
-0.1268496811389923,
0.11865817755460739,
-0.055526409298181534,
-0.2969624102115631,
-0.0920070931315422,
0.1906289905309677,
0.15117694437503815,
-0.01563808135688305,
0.3036957085132599,
0.012205220758914948,
0.04713058844208717,
0.009031145833432674,
-0.09792670607566833,
0.1498335748910904,
0.2871651351451874,
0.09778308123350143,
0.18789434432983398,
0.0580555759370327,
0.09730136394500732,
0.04982553794980049,
0.02513347566127777,
-0.4133034944534302,
0.1736999899148941,
0.5069923996925354,
-0.4505012631416321,
0.18444500863552094,
0.12849217653274536,
0.14113985002040863,
0.21691682934761047,
-0.2787761688232422,
0.303445428609848,
0.19044838845729828,
0.22459328174591064,
-0.4017913043498993,
-0.22377373278141022,
0.12786178290843964,
0.35681435465812683,
0.0566924512386322,
0.03967176377773285,
0.13266082108020782,
-0.1031150221824646,
-0.056340139359235764,
0.29001739621162415,
0.2105327993631363,
-0.20176160335540771,
0.33085551857948303,
0.5534643530845642,
0.09512673318386078,
0.07246609777212143,
0.017759228125214577,
0.2613462209701538,
-0.03229276463389397,
0.6142648458480835,
-0.07032991945743561,
0.31351810693740845,
-0.26652124524116516,
0.17897246778011322,
0.031190484762191772,
-0.4226335883140564,
0.14401979744434357,
-0.11504685133695602,
-0.1819406896829605,
0.014299089089035988,
-0.0033601350151002407,
0.36015215516090393,
-0.45058804750442505,
-0.002872780431061983,
-0.2931552529335022,
-0.03644634410738945,
-0.22290784120559692,
0.048566434532403946,
-0.16775977611541748,
-0.04638362675905228,
-0.0406314916908741,
-0.054050590842962265,
-0.04211636632680893,
-0.32123491168022156,
0.12755261361598969,
0.07585501670837402,
-0.05389942228794098,
-0.46870383620262146,
0.014498825185000896,
0.1112593486905098,
0.17540042102336884,
-0.1473201960325241,
0.2805132567882538,
0.2702253460884094,
-0.23246698081493378,
0.16336290538311005,
0.5229644775390625,
0.3031781315803528,
-0.005833130795508623,
0.20031054317951202,
-0.10275410115718842,
0.038728851824998856,
-0.2582164704799652,
-0.10505857318639755,
0.30670973658561707,
0.026148496195673943,
0.2868365943431854,
0.14299586415290833,
0.19978974759578705,
-0.020755302160978317,
-0.010836161673069,
0.14031676948070526,
0.02922501042485237,
-0.46822822093963623,
0.5080536603927612,
-0.4775100648403168,
0.021062562242150307,
-0.0722801461815834,
0.2686326503753662,
-0.3505004644393921,
-0.07733507454395294,
0.5598422884941101,
0.22193509340286255,
0.0016677224775776267,
-0.1637534499168396,
0.07240094244480133,
0.02918807789683342,
0.17718422412872314,
0.26548126339912415,
-0.08426783233880997,
-0.1829136610031128,
-0.2766016125679016,
-0.6952946186065674,
-0.07478230446577072,
0.029074950143694878,
-0.32846078276634216,
0.17518369853496552,
0.05191301554441452,
-0.04688135161995888,
0.05379953235387802,
0.28271302580833435,
0.1716708540916443,
0.025160131976008415,
-0.006262367125600576,
-0.42105066776275635,
-0.5237382650375366,
-0.004674792755395174,
-0.014330964535474777,
-0.13159406185150146,
-0.20261165499687195,
0.16788232326507568,
-0.1786525696516037,
-0.02212667465209961,
-0.15786732733249664,
0.07301422953605652,
0.15287502110004425,
0.15022647380828857,
0.2609063982963562,
-0.01701323315501213,
0.26801466941833496,
0.01570706255733967,
-0.09423232078552246,
-0.2700980603694916,
-0.34988275170326233,
-0.11199206858873367,
0.3450047969818115,
-0.302257776260376,
0.46501997113227844,
-0.2893926203250885,
-0.08774540573358536,
-0.09730173647403717,
0.1885305941104889,
0.17593330144882202,
-0.13631051778793335,
-0.31413549184799194,
0.3243115544319153,
-0.11081671714782715,
0.2402157187461853,
0.5251003503799438,
0.1949782818555832,
-0.10349457710981369,
-0.030581383034586906,
-0.16081397235393524,
-0.2133241593837738,
0.32242658734321594,
-0.34694817662239075,
-0.19734397530555725,
-0.26579543948173523,
-0.0163373164832592,
0.24874934554100037,
-0.17274802923202515,
-0.5405053496360779,
0.18578337132930756,
0.44512131810188293,
0.1455664485692978,
-0.13685674965381622,
0.32806164026260376,
0.022509798407554626,
0.0800471305847168,
0.017294753342866898,
0.4166647791862488,
-0.07152549922466278,
-0.11977719515562057,
-0.03355318307876587,
0.029147380962967873
] |
https://github.com/huggingface/datasets/issues/1681 | Dataset "dane" missing | The `dane` dataset was added recently, that's why it wasn't available yet. We did an intermediate release today just before the v2.0.
To load it you can just update `datasets`
```
pip install --upgrade datasets
```
and then you can load `dane` with
```python
from datasets import load_dataset
dataset = load_dataset("dane")
``` | the `dane` dataset appear to be missing in the latest version (1.1.3).
```python
>>> import datasets
>>> datasets.__version__
'1.1.3'
>>> "dane" in datasets.list_datasets()
True
```
As we can see it should be present, but doesn't seem to be findable when using `load_dataset`.
```python
>>> datasets.load_dataset("dane")
Traceback (most recent call last):
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/load.py", line 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 300, in cached_path
output_path = get_from_cache(
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dane/dane.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/load.py", line 278, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 300, in cached_path
output_path = get_from_cache(
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dane/dane.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/load.py", line 588, in load_dataset
module_path, hash = prepare_module(
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/load.py", line 280, in prepare_module
raise FileNotFoundError(
FileNotFoundError: Couldn't find file locally at dane/dane.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dane/dane.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dane/dane.py
```
This issue might be relevant to @ophelielacroix from the Alexandra Institut whom created the data. | 52 | Dataset "dane" missing
the `dane` dataset appear to be missing in the latest version (1.1.3).
```python
>>> import datasets
>>> datasets.__version__
'1.1.3'
>>> "dane" in datasets.list_datasets()
True
```
As we can see it should be present, but doesn't seem to be findable when using `load_dataset`.
```python
>>> datasets.load_dataset("dane")
Traceback (most recent call last):
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/load.py", line 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 300, in cached_path
output_path = get_from_cache(
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dane/dane.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/load.py", line 278, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 300, in cached_path
output_path = get_from_cache(
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dane/dane.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/load.py", line 588, in load_dataset
module_path, hash = prepare_module(
File "/home/kenneth/.Envs/EDP/lib/python3.8/site-packages/datasets/load.py", line 280, in prepare_module
raise FileNotFoundError(
FileNotFoundError: Couldn't find file locally at dane/dane.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dane/dane.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dane/dane.py
```
This issue might be relevant to @ophelielacroix from the Alexandra Institut whom created the data.
The `dane` dataset was added recently, that's why it wasn't available yet. We did an intermediate release today just before the v2.0.
To load it you can just update `datasets`
```
pip install --upgrade datasets
```
and then you can load `dane` with
```python
from datasets import load_dataset
dataset = load_dataset("dane")
``` | [
-0.006653383374214172,
-0.061256539076566696,
-0.09929956495761871,
0.12845174968242645,
0.26583391427993774,
0.2934044301509857,
0.4646621644496918,
0.1487024426460266,
0.2840229868888855,
0.08272838592529297,
0.13032886385917664,
0.04085879027843475,
-0.09202374517917633,
-0.1245877593755722,
0.29717838764190674,
-0.2793467938899994,
0.22021770477294922,
0.05129773169755936,
0.1837170422077179,
-0.14759743213653564,
-0.236997589468956,
0.2542140483856201,
-0.2888592481613159,
-0.09003900736570358,
-0.09242258220911026,
0.08238418400287628,
-0.10188768804073334,
0.1397819221019745,
-0.06495340168476105,
-0.6014866828918457,
0.6427772045135498,
0.041770778596401215,
0.3791094124317169,
0.4024260938167572,
-0.00011106583406217396,
0.054083194583654404,
0.24328342080116272,
0.023511361330747604,
-0.48698723316192627,
-0.3152082562446594,
-0.6912311315536499,
-0.4789559543132782,
0.1658880114555359,
-0.14663536846637726,
-0.06420572847127914,
0.13011758029460907,
0.07345530390739441,
-0.46009939908981323,
0.044070228934288025,
0.20215705037117004,
0.2513066828250885,
0.09741055220365524,
0.18386025726795197,
-0.2588641941547394,
0.030778517946600914,
0.2624582350254059,
-0.15203887224197388,
0.15973593294620514,
0.18504595756530762,
0.1987568438053131,
0.3487950265407562,
0.30788490176200867,
0.14899489283561707,
0.0193946436047554,
0.28770682215690613,
0.15531429648399353,
0.2871355712413788,
-0.1641147881746292,
-0.007011646870523691,
0.06313741952180862,
0.6540954113006592,
-0.14077340066432953,
-0.704075813293457,
-0.35330238938331604,
0.14857417345046997,
-0.3803814947605133,
0.1837788075208664,
-0.13973738253116608,
-0.12420324236154556,
0.15259172022342682,
-0.22221416234970093,
-0.24556653201580048,
0.029542984440922737,
0.26103898882865906,
-0.29169079661369324,
0.3245621919631958,
-0.1398501694202423,
-0.021707015112042427,
-0.2066090703010559,
-0.05921014025807381,
-0.02479560114443302,
-0.11592061817646027,
0.11396346241235733,
0.27410054206848145,
-0.2491636425256729,
-0.06744703650474548,
0.11850041151046753,
-0.20615029335021973,
-0.03279930353164673,
0.149819478392601,
0.017394941300153732,
-0.17190586030483246,
-0.00637343805283308,
0.10069666057825089,
0.3534797430038452,
0.2497100532054901,
0.19845053553581238,
-0.0159757100045681,
0.25751784443855286,
0.3605659008026123,
0.18646475672721863,
-0.16572532057762146,
-0.20603813230991364,
-0.24009376764297485,
0.22699587047100067,
0.09620758146047592,
0.27032414078712463,
-0.05759195238351822,
-0.23052334785461426,
-0.02086254395544529,
0.365246444940567,
-0.14992518723011017,
-0.04393377900123596,
0.11242189258337021,
-0.09773843735456467,
0.36433088779449463,
-0.08032223582267761,
0.1735868602991104,
-0.1319599598646164,
0.031080150976777077,
-0.24839772284030914,
-0.07314369082450867,
-0.07619179040193558,
-0.3178836703300476,
0.22059248387813568,
-0.1794000267982483,
0.4029648005962372,
-0.010443802922964096,
-0.27018845081329346,
0.15504825115203857,
-0.06781227141618729,
0.029077652841806412,
-0.11389810591936111,
0.26729056239128113,
-0.021840417757630348,
0.1548043042421341,
0.052252501249313354,
-0.42919620871543884,
-0.17392323911190033,
-0.05616351589560509,
-0.25904443860054016,
-0.1839902400970459,
-0.5109383463859558,
0.22616536915302277,
-0.1876501590013504,
-0.3296757936477661,
-0.4136565029621124,
0.17090238630771637,
-0.0866977870464325,
-0.2888191342353821,
-0.03938911110162735,
-0.14225691556930542,
-0.30879777669906616,
-0.16362953186035156,
0.361236035823822,
0.42547357082366943,
-0.37540528178215027,
-0.222077414393425,
-0.29866790771484375,
-0.1379341036081314,
0.05248280614614487,
0.03779998794198036,
-0.1871098428964615,
0.12093792110681534,
-0.29085955023765564,
-0.19049422442913055,
0.5775367021560669,
-0.5136833786964417,
-0.27384665608406067,
0.061290375888347626,
0.14175844192504883,
0.125454843044281,
0.039023507386446,
-0.1962941437959671,
0.09341075271368027,
-0.08336302638053894,
0.06033770367503166,
0.40866050124168396,
0.016740592196583748,
-0.1915556639432907,
0.08782222121953964,
-0.09139572829008102,
-0.008583294227719307,
0.2126210629940033,
0.15179280936717987,
0.05690260976552963,
0.1812869757413864,
0.07667605578899384,
0.16004489362239838,
0.09151025861501694,
0.049468059092760086,
0.4845331013202667,
0.19557327032089233,
0.3065830171108246,
0.03852043300867081,
-0.05490582436323166,
-0.5542681813240051,
0.42407384514808655,
0.304812490940094,
-0.1309114396572113,
-0.1590322107076645,
0.03356798738241196,
-0.2935134768486023,
-0.003920969553291798,
-0.2610233426094055,
-0.17017221450805664,
0.09454504400491714,
0.2176741659641266,
0.14620263874530792,
0.21579481661319733,
-0.30230578780174255,
0.16239646077156067,
0.12020415812730789,
0.20678943395614624,
-0.2911314368247986,
0.18847553431987762,
-0.031172186136245728,
0.04432689771056175,
0.0220343004912138,
0.2709721326828003,
0.10228680074214935,
-0.03300411254167557,
-0.055941734462976456,
0.17774143815040588,
0.19012248516082764,
0.21248415112495422,
0.2953183054924011,
-0.19234232604503632,
0.24996712803840637,
-0.02797747403383255,
0.12962459027767181,
0.03287258371710777,
0.08249712735414505,
0.01154471654444933,
-0.2562762200832367,
0.015594764612615108,
0.14737342298030853,
0.12867484986782074,
0.08728998899459839,
0.253621369600296,
0.29380500316619873,
-0.022227535024285316,
0.369630366563797,
-0.3660767376422882,
0.08226727694272995,
-0.14616705477237701,
0.4610934555530548,
-0.14353148639202118,
-0.0517953522503376,
0.14152662456035614,
0.3431423604488373,
-0.06484822928905487,
0.04883499816060066,
0.24751155078411102,
-0.21299678087234497,
0.046670373529195786,
0.142393559217453,
0.5272797346115112,
0.6025570034980774,
0.2355482578277588,
0.3136327266693115,
-0.1858264058828354,
0.08779691159725189,
-0.09847613424062729,
0.10367390513420105,
0.12134676426649094,
0.09155239164829254,
-0.023681964725255966,
0.1333337128162384,
0.09049127250909805,
-0.1985490322113037,
-0.18324047327041626,
0.055504269897937775,
0.13267122209072113,
-0.07419360429048538,
0.06342602521181107,
-0.36865803599357605,
-0.035140641033649445,
-0.12541624903678894,
0.11489351093769073,
-0.24662093818187714,
-0.4466949999332428,
-0.04645167663693428,
-0.07945995032787323,
0.08446820080280304,
0.07107150554656982,
-0.18705271184444427,
0.08092951029539108,
-0.10142318159341812,
-0.08421247452497482,
-0.2959757149219513,
-0.14883345365524292,
-0.29966941475868225,
0.07205464690923691,
0.09461745619773865,
-0.11815349757671356,
0.19330839812755585,
-0.36825183033943176,
0.17600564658641815,
-0.4141763746738434,
-0.469204843044281,
-0.0031068148091435432,
-0.08487352728843689,
0.3349461555480957,
0.4064882695674896,
0.026953818276524544,
-0.2145119160413742,
-0.1444411426782608,
0.21566638350486755,
-0.24214330315589905,
-0.1893729716539383,
0.09099654853343964,
-0.048947855830192566,
-0.004045695997774601,
0.0551481731235981,
-0.2715992033481598,
-0.5440987348556519,
-0.21312424540519714,
0.08588022738695145,
0.25693273544311523,
-0.06129603832960129,
0.14132285118103027,
0.04558274894952774,
0.16042782366275787,
-0.05331682413816452,
0.3135322034358978,
-0.20541615784168243,
-0.45135200023651123,
0.35605472326278687,
-0.29460301995277405,
-0.25753509998321533,
0.2806715965270996,
-0.16062358021736145,
0.4164973199367523,
-0.24325932562351227,
-0.5850548148155212,
0.3026741147041321,
-0.16464915871620178,
0.2575049102306366,
-0.0604185052216053,
0.1800956428050995,
0.35215866565704346,
-0.016394589096307755,
-0.06789688020944595,
-0.26600009202957153,
-0.33400341868400574,
-0.23473696410655975,
-0.01021898165345192,
0.4603375792503357,
-0.09615537524223328,
0.38726985454559326,
0.03909819573163986,
0.5496207475662231,
0.19559378921985626,
-0.05512113869190216,
0.15578366816043854,
-0.07530434429645538,
0.3423403799533844,
0.012890432961285114,
-0.32611411809921265,
0.1782972663640976,
0.07546702027320862,
0.2075221985578537,
0.09822241216897964,
0.2704727053642273,
-0.2166922241449356,
-0.3083972930908203,
-0.08378344029188156,
-0.16278880834579468,
-0.13712403178215027,
-0.248292475938797,
-0.18632543087005615,
0.13934679329395294,
0.10612409561872482,
0.16690373420715332,
-0.48053354024887085,
-0.14983966946601868,
-0.08225627988576889,
0.4817935824394226,
0.28166159987449646,
0.20974020659923553,
-0.17985515296459198,
0.13776712119579315,
-0.6376330852508545,
0.171196848154068,
-0.09448207169771194,
0.48243317008018494,
-0.026046665385365486,
0.04180747643113136,
-0.03714929148554802,
0.22259068489074707,
0.4343493580818176,
-0.45814448595046997,
-0.09525743126869202,
0.1160128265619278,
-0.17046697437763214,
-0.32598552107810974,
0.005823726300150156,
0.08228879421949387,
-0.12732717394828796,
0.12124620378017426,
0.3126388192176819,
-0.08875694870948792,
-0.20109781622886658,
0.36997127532958984,
0.12984015047550201,
-0.20011715590953827,
-0.21462872624397278,
-0.3223247528076172,
-0.2684321999549866,
-0.197385773062706,
-0.3638211488723755,
-0.11860696226358414,
0.06794238835573196,
0.1455652415752411,
0.036824509501457214,
-0.2880840599536896,
0.10538112372159958,
0.09487167745828629,
0.15899819135665894,
0.26664331555366516,
0.2433158904314041,
0.16870880126953125,
0.40352004766464233,
0.1185988113284111,
0.18260781466960907,
0.4878796935081482,
-0.10878424346446991,
-0.4713648855686188,
0.13599900901317596,
0.0008554832893423736,
0.4082769453525543,
0.0806281641125679,
-0.15432719886302948,
-0.03148781880736351,
0.008496109396219254,
0.0452304482460022,
-0.32034197449684143,
-0.004698088858276606,
0.39448612928390503,
0.16070140898227692,
-0.11583902686834335,
-0.3708447813987732,
0.33124423027038574,
0.12041804939508438,
0.09846794605255127,
0.3976604640483856,
0.1105564534664154,
-0.3682604432106018,
0.11731797456741333,
-0.04342629387974739,
0.5109549760818481,
0.051822368055582047,
0.2117457240819931,
0.17901775240898132,
-0.19954541325569153,
0.460845947265625,
0.20425698161125183,
0.06248887628316879,
-0.07960472255945206,
-0.05778782069683075,
-0.15643109381198883,
-0.14970749616622925,
0.24996070563793182,
0.14469540119171143,
-0.09420730173587799,
0.3691316545009613,
0.07459908723831177,
0.25233525037765503,
0.014461700804531574,
0.2626577317714691,
-0.18127678334712982,
-0.14767222106456757,
-0.28057438135147095,
0.17341992259025574,
-0.030605027452111244,
0.4570464789867401,
-0.17665129899978638,
0.018217867240309715,
-0.02628444880247116,
-0.06357038021087646,
-0.22834007441997528,
-0.1456354260444641,
0.08647090941667557,
0.36769813299179077,
0.02693948708474636,
-0.6471765637397766,
0.22230024635791779,
0.36537042260169983,
0.48248717188835144,
0.013281500898301601,
-0.3053215742111206,
0.38028624653816223,
0.08097722381353378,
0.1492304652929306,
0.049926940351724625,
0.09527917206287384,
0.27673235535621643,
-0.08684887737035751,
-0.25058987736701965,
0.11214663088321686,
-0.20187285542488098,
-0.3773929178714752,
-0.07069767266511917,
-0.017187155783176422,
-0.12374133616685867,
-0.03890286013484001,
-0.012935297563672066,
-0.026110708713531494,
0.18247228860855103,
-0.3737733066082001,
0.1526242196559906,
0.2982405722141266,
0.004371896386146545,
-0.05549516901373863,
-0.19572266936302185,
-0.1303299516439438,
-0.13793134689331055,
0.41668272018432617,
-0.0922934040427208,
-0.40695706009864807,
0.5085169076919556,
0.12034136801958084,
-0.1783442497253418,
-0.14311479032039642,
0.1727578490972519,
0.06488140672445297,
-0.18872970342636108,
0.0020651279482990503,
-0.19861386716365814,
0.2678202986717224,
0.08572839945554733,
-0.017883822321891785,
0.1039518341422081,
-0.48788687586784363,
0.06850843131542206,
-0.5261337757110596,
-0.3209863007068634,
0.2049984186887741,
-0.21841196715831757,
0.13944809138774872,
0.02978675253689289,
-0.2115044742822647,
0.046366140246391296,
-0.2618279755115509,
-0.3148193657398224,
0.09663325548171997,
-0.17123636603355408,
-0.16769921779632568,
-0.18002165853977203,
0.0274009108543396,
0.11571258306503296,
-0.1935606598854065,
0.2423853576183319,
-0.3069903552532196,
0.008360536769032478,
-0.19541732966899872,
-0.12883323431015015,
0.11487426608800888,
-0.14860928058624268,
-0.1268496811389923,
0.11865817755460739,
-0.055526409298181534,
-0.2969624102115631,
-0.0920070931315422,
0.1906289905309677,
0.15117694437503815,
-0.01563808135688305,
0.3036957085132599,
0.012205220758914948,
0.04713058844208717,
0.009031145833432674,
-0.09792670607566833,
0.1498335748910904,
0.2871651351451874,
0.09778308123350143,
0.18789434432983398,
0.0580555759370327,
0.09730136394500732,
0.04982553794980049,
0.02513347566127777,
-0.4133034944534302,
0.1736999899148941,
0.5069923996925354,
-0.4505012631416321,
0.18444500863552094,
0.12849217653274536,
0.14113985002040863,
0.21691682934761047,
-0.2787761688232422,
0.303445428609848,
0.19044838845729828,
0.22459328174591064,
-0.4017913043498993,
-0.22377373278141022,
0.12786178290843964,
0.35681435465812683,
0.0566924512386322,
0.03967176377773285,
0.13266082108020782,
-0.1031150221824646,
-0.056340139359235764,
0.29001739621162415,
0.2105327993631363,
-0.20176160335540771,
0.33085551857948303,
0.5534643530845642,
0.09512673318386078,
0.07246609777212143,
0.017759228125214577,
0.2613462209701538,
-0.03229276463389397,
0.6142648458480835,
-0.07032991945743561,
0.31351810693740845,
-0.26652124524116516,
0.17897246778011322,
0.031190484762191772,
-0.4226335883140564,
0.14401979744434357,
-0.11504685133695602,
-0.1819406896829605,
0.014299089089035988,
-0.0033601350151002407,
0.36015215516090393,
-0.45058804750442505,
-0.002872780431061983,
-0.2931552529335022,
-0.03644634410738945,
-0.22290784120559692,
0.048566434532403946,
-0.16775977611541748,
-0.04638362675905228,
-0.0406314916908741,
-0.054050590842962265,
-0.04211636632680893,
-0.32123491168022156,
0.12755261361598969,
0.07585501670837402,
-0.05389942228794098,
-0.46870383620262146,
0.014498825185000896,
0.1112593486905098,
0.17540042102336884,
-0.1473201960325241,
0.2805132567882538,
0.2702253460884094,
-0.23246698081493378,
0.16336290538311005,
0.5229644775390625,
0.3031781315803528,
-0.005833130795508623,
0.20031054317951202,
-0.10275410115718842,
0.038728851824998856,
-0.2582164704799652,
-0.10505857318639755,
0.30670973658561707,
0.026148496195673943,
0.2868365943431854,
0.14299586415290833,
0.19978974759578705,
-0.020755302160978317,
-0.010836161673069,
0.14031676948070526,
0.02922501042485237,
-0.46822822093963623,
0.5080536603927612,
-0.4775100648403168,
0.021062562242150307,
-0.0722801461815834,
0.2686326503753662,
-0.3505004644393921,
-0.07733507454395294,
0.5598422884941101,
0.22193509340286255,
0.0016677224775776267,
-0.1637534499168396,
0.07240094244480133,
0.02918807789683342,
0.17718422412872314,
0.26548126339912415,
-0.08426783233880997,
-0.1829136610031128,
-0.2766016125679016,
-0.6952946186065674,
-0.07478230446577072,
0.029074950143694878,
-0.32846078276634216,
0.17518369853496552,
0.05191301554441452,
-0.04688135161995888,
0.05379953235387802,
0.28271302580833435,
0.1716708540916443,
0.025160131976008415,
-0.006262367125600576,
-0.42105066776275635,
-0.5237382650375366,
-0.004674792755395174,
-0.014330964535474777,
-0.13159406185150146,
-0.20261165499687195,
0.16788232326507568,
-0.1786525696516037,
-0.02212667465209961,
-0.15786732733249664,
0.07301422953605652,
0.15287502110004425,
0.15022647380828857,
0.2609063982963562,
-0.01701323315501213,
0.26801466941833496,
0.01570706255733967,
-0.09423232078552246,
-0.2700980603694916,
-0.34988275170326233,
-0.11199206858873367,
0.3450047969818115,
-0.302257776260376,
0.46501997113227844,
-0.2893926203250885,
-0.08774540573358536,
-0.09730173647403717,
0.1885305941104889,
0.17593330144882202,
-0.13631051778793335,
-0.31413549184799194,
0.3243115544319153,
-0.11081671714782715,
0.2402157187461853,
0.5251003503799438,
0.1949782818555832,
-0.10349457710981369,
-0.030581383034586906,
-0.16081397235393524,
-0.2133241593837738,
0.32242658734321594,
-0.34694817662239075,
-0.19734397530555725,
-0.26579543948173523,
-0.0163373164832592,
0.24874934554100037,
-0.17274802923202515,
-0.5405053496360779,
0.18578337132930756,
0.44512131810188293,
0.1455664485692978,
-0.13685674965381622,
0.32806164026260376,
0.022509798407554626,
0.0800471305847168,
0.017294753342866898,
0.4166647791862488,
-0.07152549922466278,
-0.11977719515562057,
-0.03355318307876587,
0.029147380962967873
] |
https://github.com/huggingface/datasets/issues/1679 | Can't import cc100 dataset | cc100 was added recently, that's why it wasn't available yet.
To load it you can just update `datasets`
```
pip install --upgrade datasets
```
and then you can load `cc100` with
```python
from datasets import load_dataset
lang = "en"
dataset = load_dataset("cc100", lang=lang, split="train")
``` | There is some issue to import cc100 dataset.
```
from datasets import load_dataset
dataset = load_dataset("cc100")
```
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/cc100/cc100.py
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/cc100/cc100.py
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
280 raise FileNotFoundError(
281 "Couldn't find file locally at {}, or remotely at {} or {}".format(
--> 282 combined_path, github_file_path, file_path
283 )
284 )
FileNotFoundError: Couldn't find file locally at cc100/cc100.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/cc100/cc100.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/cc100/cc100.py | 45 | Can't import cc100 dataset
There is some issue to import cc100 dataset.
```
from datasets import load_dataset
dataset = load_dataset("cc100")
```
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/cc100/cc100.py
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/cc100/cc100.py
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
280 raise FileNotFoundError(
281 "Couldn't find file locally at {}, or remotely at {} or {}".format(
--> 282 combined_path, github_file_path, file_path
283 )
284 )
FileNotFoundError: Couldn't find file locally at cc100/cc100.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/cc100/cc100.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/cc100/cc100.py
cc100 was added recently, that's why it wasn't available yet.
To load it you can just update `datasets`
```
pip install --upgrade datasets
```
and then you can load `cc100` with
```python
from datasets import load_dataset
lang = "en"
dataset = load_dataset("cc100", lang=lang, split="train")
``` | [
-0.2749535143375397,
-0.3488156795501709,
-0.16288639605045319,
0.2345297783613205,
0.3763970136642456,
0.1457454115152359,
0.08866681158542633,
0.024639474228024483,
0.015882324427366257,
0.2067762017250061,
-0.12557514011859894,
0.058415137231349945,
0.02270512655377388,
0.31943652033805847,
0.09838106483221054,
-0.005402394104748964,
0.1296454668045044,
0.13737110793590546,
-0.34527501463890076,
0.014620142988860607,
-0.08077173680067062,
0.24950705468654633,
-0.08530781418085098,
-0.15742017328739166,
-0.27537840604782104,
-0.16415755450725555,
-0.05140092223882675,
0.1796359419822693,
-0.3012571930885315,
-0.46150636672973633,
0.6025826334953308,
0.17900297045707703,
0.2557295262813568,
0.48994892835617065,
-0.00010458071483299136,
0.04612264037132263,
0.37708231806755066,
0.02399485558271408,
-0.4418845772743225,
-0.3079559803009033,
-0.2751544415950775,
-0.2639507055282593,
0.1835988312959671,
-0.043667588382959366,
-0.13475008308887482,
0.2019852101802826,
-0.17788980901241302,
-0.21380040049552917,
0.3010196387767792,
0.050001561641693115,
0.3266028165817261,
0.3059594929218292,
0.3633733093738556,
-0.3747953176498413,
0.03416769579052925,
0.09371675550937653,
0.009400828741490841,
0.35124319791793823,
0.20632657408714294,
0.1514512151479721,
0.50286865234375,
0.1674756109714508,
-0.0955764651298523,
-0.03406498208642006,
0.2659812271595001,
-0.1589617133140564,
-0.14394427835941315,
-0.36686432361602783,
0.13855735957622528,
0.13507352769374847,
0.5673773884773254,
-0.22476014494895935,
-0.34785231947898865,
0.008385643362998962,
0.11705704033374786,
-0.5926409363746643,
0.10501144081354141,
0.1103009358048439,
0.10895120352506638,
0.2087954580783844,
-0.30874285101890564,
-0.13901472091674805,
-0.10133210569620132,
0.20982597768306732,
-0.16498202085494995,
-0.0933542251586914,
-0.3200303018093109,
-0.01664796471595764,
0.1543782502412796,
-0.10730152577161789,
-0.19808942079544067,
0.00446306774392724,
-0.031594857573509216,
0.18192589282989502,
-0.29331427812576294,
0.01862669177353382,
0.042684633284807205,
0.4454785883426666,
0.13272492587566376,
0.16795362532138824,
0.08470582962036133,
-0.0797264501452446,
0.04441780596971512,
0.2442428469657898,
0.06438049674034119,
0.1364516317844391,
-0.03552011027932167,
0.05171604081988335,
0.21950523555278778,
0.2635698914527893,
-0.0347134992480278,
-0.2701790928840637,
-0.13468985259532928,
-0.27166038751602173,
-0.049301087856292725,
0.022916320711374283,
0.35094907879829407,
-0.20617157220840454,
-0.2172701358795166,
0.05276809260249138,
0.23279424011707306,
0.04687292128801346,
0.13694071769714355,
0.5143303275108337,
-0.003946857061237097,
0.1669721007347107,
-0.04050581157207489,
0.14058488607406616,
-0.011338104493916035,
-0.004587561823427677,
-0.23701287806034088,
0.08641991764307022,
-0.13661566376686096,
-0.1119011864066124,
0.2177562564611435,
-0.5572940111160278,
0.2780294716358185,
0.13831107318401337,
0.06463860720396042,
0.016571249812841415,
-0.1541116088628769,
0.025098491460084915,
-0.02746887318789959,
0.2688960134983063,
0.013119213283061981,
0.19079160690307617,
0.14121957123279572,
-0.09056692570447922,
-0.12070389091968536,
-0.19801916182041168,
-0.42119354009628296,
-0.197761669754982,
-0.27229979634284973,
0.26759323477745056,
-0.15057729184627533,
-0.13185085356235504,
-0.2584419548511505,
-0.1919151097536087,
-0.07686863839626312,
-0.11781103163957596,
-0.07706374675035477,
-0.002725970232859254,
-0.09632544964551926,
-0.16001588106155396,
0.2762826681137085,
0.5209742188453674,
-0.33173948526382446,
-0.07157284021377563,
-0.18172770738601685,
-0.11961007863283157,
0.0628938153386116,
0.09690986573696136,
-0.2397209107875824,
-0.249781534075737,
-0.14684763550758362,
-0.32615265250205994,
-0.1567419171333313,
-0.5559660792350769,
-0.41817009449005127,
0.1911294311285019,
-0.06772010773420334,
0.04450390487909317,
0.030995044857263565,
-0.16534698009490967,
-0.08567740768194199,
-0.01363708358258009,
-0.20486077666282654,
0.012211084365844727,
-0.04992356896400452,
-0.08789705485105515,
-0.08929579704999924,
-0.20329049229621887,
0.21633358299732208,
-0.025971759110689163,
-0.12030667066574097,
-0.08417513221502304,
0.2792486846446991,
-0.17841975390911102,
0.036098413169384,
-0.14729319512844086,
-0.04550585895776749,
0.28313174843788147,
0.28106755018234253,
0.1500970870256424,
-0.013131700456142426,
-0.09660211205482483,
-0.5498059988021851,
0.18404808640480042,
0.05917540192604065,
0.20701217651367188,
-0.2800959646701813,
-0.19013050198554993,
-0.4212656021118164,
0.03533777967095375,
-0.1500854343175888,
-0.13843126595020294,
0.16220195591449738,
-0.0023701300378888845,
0.2669634222984314,
0.0558733232319355,
-0.14579659700393677,
0.39596328139305115,
-0.019307248294353485,
0.20135128498077393,
-0.20989230275154114,
0.13479024171829224,
-0.14049719274044037,
0.14564038813114166,
0.18081656098365784,
0.20972810685634613,
0.16239437460899353,
-0.16916362941265106,
-0.04606463387608528,
0.39432886242866516,
-0.1744178682565689,
0.5304542183876038,
0.029482591897249222,
-0.0860908031463623,
0.3313724398612976,
-0.47797447443008423,
-0.02780887857079506,
-0.14112265408039093,
0.2778266966342926,
0.06389189511537552,
-0.04100295901298523,
0.13739113509655,
-0.13401705026626587,
0.23161795735359192,
0.12900929152965546,
0.042690861970186234,
0.23387941718101501,
0.1133558601140976,
-0.03803686052560806,
-0.14786262810230255,
0.2096567451953888,
0.0880582332611084,
0.6122466325759888,
0.02246800623834133,
-0.1258888840675354,
-0.047208040952682495,
0.12047901749610901,
0.057364873588085175,
-0.06981043517589569,
0.01090267114341259,
-0.3110825717449188,
0.2613326907157898,
0.2233099341392517,
0.21257942914962769,
0.1484137773513794,
0.27431145310401917,
-0.17906735837459564,
-0.05759529024362564,
0.0863918587565422,
-0.11207717657089233,
0.2854093611240387,
0.07894612103700638,
0.18745896220207214,
-0.04919480159878731,
0.1301281601190567,
0.03044588305056095,
-0.25945836305618286,
-0.12717606127262115,
-0.03230097144842148,
0.14682456851005554,
-0.2639595866203308,
0.0903019830584526,
-0.4293750524520874,
-0.1814526468515396,
-0.01667659915983677,
-0.13300582766532898,
-0.09835077822208405,
-0.16504615545272827,
-0.3125818967819214,
0.12234232574701309,
0.03830113634467125,
0.01932818628847599,
-0.13766621053218842,
0.0725124403834343,
-0.1019551157951355,
-0.16443385183811188,
-0.15683503448963165,
-0.3101902902126312,
0.025382699444890022,
0.16061754524707794,
0.33455321192741394,
-0.09810382127761841,
0.4525785744190216,
-0.18125922977924347,
0.15741491317749023,
0.007996588945388794,
-0.42183440923690796,
0.1091919019818306,
-0.20608119666576385,
0.20285722613334656,
0.22152847051620483,
0.19299764931201935,
-0.28770893812179565,
-0.15673917531967163,
0.30356988310813904,
-0.05037600174546242,
-0.08714384585618973,
0.04920559749007225,
-0.1616816371679306,
-0.33358100056648254,
-0.029884861782193184,
-0.29882168769836426,
-0.5281748175621033,
-0.32520535588264465,
0.1262628436088562,
0.2590164244174957,
-0.041726820170879364,
0.4280337393283844,
0.19628538191318512,
0.09064289182424545,
0.017983997240662575,
0.1230182945728302,
-0.07733321189880371,
-0.6638807654380798,
0.42075854539871216,
-0.3592381179332733,
-0.40820616483688354,
0.13539765775203705,
0.00669980701059103,
0.47272005677223206,
-0.06716373562812805,
-0.2308908998966217,
0.057505052536726,
-0.23749162256717682,
0.08382458984851837,
0.25349536538124084,
0.27342504262924194,
0.17507304251194,
-0.07350482046604156,
-0.11038161814212799,
-0.08989610522985458,
-0.16558979451656342,
-0.25454723834991455,
-0.1683809608221054,
0.18344160914421082,
-0.110910564661026,
0.24471376836299896,
-0.13234683871269226,
0.654039204120636,
0.20993930101394653,
-0.16498561203479767,
0.3992757797241211,
-0.17091672122478485,
0.5142348408699036,
-0.03518659621477127,
-0.4970189929008484,
-0.014623434282839298,
-0.022113757207989693,
0.048714105039834976,
0.07949965447187424,
0.06450319290161133,
-0.0016459766775369644,
-0.4643182158470154,
-0.2883167266845703,
-0.34142884612083435,
-0.1591687798500061,
-0.32021740078926086,
0.19141699373722076,
0.29862263798713684,
0.08577340841293335,
-0.13078436255455017,
-0.01828934997320175,
-0.2483210563659668,
0.05787421762943268,
0.3221115469932556,
0.010576685890555382,
0.07529745995998383,
-0.41504836082458496,
-0.3769319951534271,
-0.5046018958091736,
0.35502520203590393,
0.027156485244631767,
0.07875014841556549,
0.08393401652574539,
0.021286435425281525,
-0.02990037202835083,
-0.07078418880701065,
0.2992471158504486,
0.0286082960665226,
-0.02225721813738346,
0.10229051113128662,
-0.21247179806232452,
-0.2089952975511551,
0.061171237379312515,
-0.02294708602130413,
0.21341261267662048,
-0.08911426365375519,
-0.1713019460439682,
-0.2848718464374542,
-0.07105416804552078,
0.12262653559446335,
0.27744004130363464,
-0.12000564485788345,
-0.04625653848052025,
-0.2615565359592438,
-0.19374895095825195,
-0.438261479139328,
-0.18526224792003632,
-0.08855332434177399,
0.27867549657821655,
-0.02428322099149227,
-0.10725425183773041,
-0.12753735482692719,
-0.1385216861963272,
0.37482950091362,
0.3218499422073364,
0.36819708347320557,
0.14346955716609955,
0.18863913416862488,
0.10205071419477463,
0.1352090686559677,
0.4293232858181,
0.7669629454612732,
0.024601444602012634,
-0.27263733744621277,
-0.0431874580681324,
0.004807555582374334,
0.26505616307258606,
0.047310203313827515,
-0.13002686202526093,
0.062283989042043686,
0.29219692945480347,
0.15506093204021454,
-0.318342000246048,
0.03207596018910408,
0.17249515652656555,
0.1257958710193634,
-0.385886549949646,
-0.16405066847801208,
0.44557392597198486,
0.08512189239263535,
0.140863835811615,
0.1478753536939621,
0.36992520093917847,
-0.0830993801355362,
-0.04917909577488899,
-0.09024309366941452,
0.748786985874176,
0.0010083450470119715,
-0.0992412343621254,
0.10676060616970062,
-0.0872870609164238,
0.6782956719398499,
0.04004491865634918,
-0.0908961072564125,
-0.1455075889825821,
0.00140868267044425,
0.002155351685360074,
-0.10163719207048416,
0.2758294939994812,
-0.05983399599790573,
-0.21386417746543884,
0.29480355978012085,
-0.20639179646968842,
0.31951022148132324,
-0.10487291216850281,
0.29655423760414124,
-0.1936093419790268,
-0.1699322909116745,
-0.07405010610818863,
0.24673554301261902,
0.04523222893476486,
0.4164851903915405,
-0.20113138854503632,
-0.016936015337705612,
-0.14602957665920258,
-0.33356010913848877,
-0.09455735236406326,
-0.016259724274277687,
-0.4031127691268921,
0.14287890493869781,
-0.05053458735346794,
-0.45621317625045776,
0.3575003147125244,
0.280286580324173,
0.2976773679256439,
0.19055809080600739,
-0.3624044954776764,
0.169826939702034,
-0.054093942046165466,
-0.28647541999816895,
-0.13998429477214813,
0.24355794489383698,
0.2589796185493469,
-0.15275084972381592,
-0.13681235909461975,
0.21273764967918396,
0.06719373911619186,
-0.07054878771305084,
0.2041628062725067,
0.07399109750986099,
0.02682950347661972,
-0.17251145839691162,
-0.21764959394931793,
-0.1118207722902298,
0.036377232521772385,
-0.18637606501579285,
0.1992071121931076,
0.06009721755981445,
-0.04209598898887634,
0.021378293633461,
0.263680636882782,
-0.12007657438516617,
-0.2585512101650238,
0.3371770679950714,
-0.06615324318408966,
-0.18461759388446808,
0.3840762972831726,
0.3715592622756958,
-0.22792857885360718,
-0.23850342631340027,
-0.11101222783327103,
0.11729276925325394,
-0.4654299318790436,
0.11944891512393951,
0.31565672159194946,
0.27696388959884644,
-0.017440762370824814,
0.2775639295578003,
0.18053291738033295,
-0.10195224732160568,
0.17728795111179352,
-0.3801259696483612,
-0.28603047132492065,
0.1585610955953598,
-0.0567270927131176,
0.14501434564590454,
0.20073862373828888,
0.320896714925766,
0.030651161447167397,
0.01968284323811531,
-0.4130367934703827,
0.08223053067922592,
-0.15299540758132935,
-0.03248700127005577,
0.6231775879859924,
0.11542804539203644,
0.19441016018390656,
-0.25062477588653564,
0.26380887627601624,
0.13784988224506378,
-0.1559447944164276,
-0.3337896764278412,
-0.10393774509429932,
0.09193012863397598,
-0.04520929977297783,
-0.2206752896308899,
0.18810610473155975,
0.08475315570831299,
0.06138910725712776,
-0.04522836208343506,
0.08395154029130936,
0.10128656029701233,
0.10094214975833893,
0.06817676872015,
-0.10823656618595123,
-0.01025263499468565,
-0.2600286900997162,
0.12046362459659576,
0.16960592567920685,
0.22600457072257996,
0.09418617933988571,
0.04071711003780365,
0.09640006721019745,
-0.08713468909263611,
0.1342702955007553,
-0.10651946812868118,
-0.10594380646944046,
-0.03760356828570366,
0.4198013246059418,
-0.2765182554721832,
0.09694214910268784,
0.3451446294784546,
0.2989569902420044,
0.23487423360347748,
-0.15805156528949738,
0.28231555223464966,
0.22729967534542084,
0.25116655230522156,
-0.3074895739555359,
-0.009670931845903397,
-0.09890057891607285,
0.11185812950134277,
0.08667194843292236,
0.11175160109996796,
0.31899532675743103,
-0.11437274515628815,
0.11512096971273422,
0.12484071403741837,
0.4290117621421814,
-0.09577623754739761,
0.4838532507419586,
0.34324851632118225,
0.20178046822547913,
-0.008937936276197433,
0.0586412213742733,
0.2886766195297241,
0.015802506357431412,
0.21574939787387848,
-0.4133891761302948,
0.022605212405323982,
-0.1441309005022049,
0.1580994427204132,
0.15712487697601318,
-0.2874079942703247,
0.258737176656723,
0.18854261934757233,
-0.07335221022367477,
-0.03229038789868355,
-0.043637149035930634,
0.7672814726829529,
-0.0632772445678711,
0.033543944358825684,
-0.21818341314792633,
0.3860798180103302,
-0.08505109697580338,
-0.051354821771383286,
-0.17745670676231384,
-0.23120923340320587,
-0.1051059141755104,
0.00028785315225832164,
-0.06912025064229965,
-0.33980801701545715,
0.2412613183259964,
0.12866303324699402,
-0.13830362260341644,
-0.5828995108604431,
0.0625799372792244,
0.2402127981185913,
0.18116645514965057,
-0.14734961092472076,
0.30239585041999817,
0.34031394124031067,
-0.21329310536384583,
0.07839609682559967,
0.3581852912902832,
0.6212479472160339,
0.18759872019290924,
0.22881585359573364,
0.18304145336151123,
0.07333708554506302,
-0.19540858268737793,
0.09723823517560959,
0.00004633909338735975,
-0.14442676305770874,
0.2164275199174881,
0.09269196540117264,
0.2745136618614197,
-0.23339475691318512,
-0.3043329417705536,
-0.008223270066082478,
0.11767834424972534,
-0.3661321699619293,
-0.055801767855882645,
-0.251891165971756,
0.05038859695196152,
-0.2957037091255188,
0.129691019654274,
-0.4416198134422302,
0.20580731332302094,
0.327472060918808,
-0.06151057407259941,
0.03026893176138401,
-0.2500506639480591,
0.11464794725179672,
-0.07765072584152222,
0.5049268007278442,
0.22323155403137207,
0.23623135685920715,
-0.25860100984573364,
-0.3236328363418579,
-0.6043620109558105,
-0.017658265307545662,
-0.00009171201236313209,
-0.0327480286359787,
-0.12606847286224365,
-0.03066660650074482,
-0.05290725827217102,
0.18294788897037506,
0.25578922033309937,
-0.12845590710639954,
0.05529802665114403,
-0.142118901014328,
-0.09761982411146164,
-0.022455841302871704,
-0.2848815619945526,
-0.12816643714904785,
-0.0005139241693541408,
-0.10043827444314957,
0.031089335680007935,
-0.20983916521072388,
0.05560743808746338,
-0.33995112776756287,
0.2074805051088333,
-0.2634785771369934,
-0.1694066822528839,
0.3223174512386322,
0.09235596656799316,
0.5297516584396362,
-0.11282756924629211,
0.030364135280251503,
-0.1091180071234703,
-0.2837507128715515,
-0.07537884265184402,
0.3584708571434021,
0.16570793092250824,
0.28714776039123535,
-0.241601824760437,
-0.4416569769382477,
-0.2381153106689453,
0.16242147982120514,
0.11155811697244644,
0.00392340449616313,
-0.13978825509548187,
-0.029072677716612816,
-0.12458059191703796,
0.011755459941923618,
0.24535252153873444,
0.17383910715579987,
-0.05607093870639801,
0.04467379301786423,
-0.1264393925666809,
-0.5482056140899658,
0.3843715488910675,
-0.2695609927177429,
-0.047122735530138016,
0.05645575746893883,
0.1962691694498062,
0.345950186252594,
-0.22285176813602448,
-0.38353443145751953,
0.34134429693222046,
0.23275622725486755,
0.10568483173847198,
-0.1048973947763443,
0.41703492403030396,
-0.050641778856515884,
-0.1036454290151596,
-0.018663104623556137,
0.396945059299469,
0.15092059969902039,
-0.23288066685199738,
-0.05518461763858795,
-0.16233135759830475
] |
https://github.com/huggingface/datasets/issues/1675 | Add the 800GB Pile dataset? | The pile dataset would be very nice.
Benchmarks show that pile trained models achieve better results than most of actually trained models | ## Adding a Dataset
- **Name:** The Pile
- **Description:** The Pile is a 825 GiB diverse, open source language modelling data set that consists of 22 smaller, high-quality datasets combined together. See [here](https://twitter.com/nabla_theta/status/1345130408170541056?s=20) for the Twitter announcement
- **Paper:** https://pile.eleuther.ai/paper.pdf
- **Data:** https://pile.eleuther.ai/
- **Motivation:** Enables hardcore (GPT-3 scale!) language modelling
## Remarks
Given the extreme size of this dataset, I'm not sure how feasible this will be to include in `datasets` 🤯 . I'm also unsure how many `datasets` users are pretraining LMs, so the usage of this dataset may not warrant the effort to integrate it.
| 22 | Add the 800GB Pile dataset?
## Adding a Dataset
- **Name:** The Pile
- **Description:** The Pile is a 825 GiB diverse, open source language modelling data set that consists of 22 smaller, high-quality datasets combined together. See [here](https://twitter.com/nabla_theta/status/1345130408170541056?s=20) for the Twitter announcement
- **Paper:** https://pile.eleuther.ai/paper.pdf
- **Data:** https://pile.eleuther.ai/
- **Motivation:** Enables hardcore (GPT-3 scale!) language modelling
## Remarks
Given the extreme size of this dataset, I'm not sure how feasible this will be to include in `datasets` 🤯 . I'm also unsure how many `datasets` users are pretraining LMs, so the usage of this dataset may not warrant the effort to integrate it.
The pile dataset would be very nice.
Benchmarks show that pile trained models achieve better results than most of actually trained models | [
-0.3252146542072296,
0.21306735277175903,
-0.15067437291145325,
0.13712848722934723,
0.0009430189384147525,
0.25786757469177246,
0.14345327019691467,
0.24660293757915497,
-0.03071785345673561,
-0.06392889469861984,
-0.15774500370025635,
0.14879459142684937,
-0.5934296250343323,
0.18414290249347687,
0.20488759875297546,
-0.022366072982549667,
-0.00742817809805274,
-0.12296401709318161,
-0.04017770662903786,
-0.07481254637241364,
-0.016271188855171204,
-0.09867485612630844,
0.06882476806640625,
-0.38403698801994324,
-0.2191532552242279,
-0.07096435874700546,
-0.12500391900539398,
0.014950177632272243,
-0.3641265630722046,
-0.22539013624191284,
-0.23001158237457275,
0.09852612018585205,
0.3934328556060791,
0.5549383163452148,
-0.00010215370275545865,
-0.12828007340431213,
0.1410384476184845,
-0.13684998452663422,
-0.382002592086792,
-0.20806650817394257,
-0.07184160500764847,
-0.36785319447517395,
-0.3328626751899719,
-0.038219187408685684,
-0.191679909825325,
-0.17293177545070648,
0.1150263100862503,
-0.3564879596233368,
0.02434537746012211,
0.30207958817481995,
0.2485697716474533,
0.13462983071804047,
0.00666555343195796,
-0.11583910137414932,
0.3296717405319214,
0.07672359049320221,
-0.1908535659313202,
0.3099157512187958,
0.3554445207118988,
0.13831809163093567,
-0.088592030107975,
0.4444619417190552,
0.407459020614624,
-0.2330574095249176,
0.24455863237380981,
0.029440954327583313,
-0.028866784647107124,
-0.1090514212846756,
-0.23755282163619995,
0.35586482286453247,
0.2777908742427826,
-0.14943766593933105,
-0.5054072737693787,
-0.4087863564491272,
-0.010018719360232353,
-0.3937535583972931,
-0.3037472665309906,
0.36722683906555176,
0.08213698118925095,
0.3314937651157379,
0.0521978996694088,
-0.2601240873336792,
-0.06110181286931038,
0.17735251784324646,
0.048518940806388855,
0.35517966747283936,
-0.02232707478106022,
-0.14455698430538177,
0.13929244875907898,
0.04024546965956688,
-0.13185492157936096,
0.01380955707281828,
-0.010684731416404247,
-0.02279343456029892,
-0.2930923104286194,
-0.23899827897548676,
0.40979474782943726,
0.3443654477596283,
0.39307600259780884,
-0.22818532586097717,
-0.06142965331673622,
0.00602338882163167,
-0.007242905907332897,
-0.050269197672605515,
0.4607637822628021,
0.0007301630103029311,
-0.25953781604766846,
-0.25746816396713257,
0.2438705414533615,
0.07297671586275101,
0.0823986679315567,
0.10979060083627701,
-0.0664122998714447,
-0.0415099561214447,
-0.1491445004940033,
-0.19014547765254974,
-0.08083098381757736,
0.12906020879745483,
0.00551915168762207,
-0.008857904933393002,
0.2112540304660797,
-0.08982786536216736,
0.000259787542745471,
0.007080860901623964,
-0.027874955907464027,
0.25657200813293457,
0.04033060744404793,
0.21767985820770264,
0.18661843240261078,
-0.58322674036026,
-0.2047814428806305,
0.17698583006858826,
-0.4584914743900299,
-0.07573085278272629,
0.09861394762992859,
-0.12888440489768982,
0.05499212071299553,
-0.11994342505931854,
0.18104839324951172,
0.2751227915287018,
0.15212108194828033,
0.03210407868027687,
0.08747165650129318,
-0.058149755001068115,
-0.0981406718492508,
-0.2579054832458496,
0.07638190686702728,
0.07062193006277084,
-0.292055606842041,
0.0801396518945694,
-0.053561851382255554,
-0.2715629041194916,
-0.37574297189712524,
0.2224723845720291,
-0.14840644598007202,
0.07170987129211426,
-0.4174514412879944,
0.7332289218902588,
-0.06639810651540756,
0.24884071946144104,
0.06031874567270279,
-0.08275186270475388,
0.06722551584243774,
0.034523528069257736,
0.09809056669473648,
0.19669532775878906,
-0.5776969790458679,
-0.07731064409017563,
-0.6373917460441589,
0.09141483157873154,
-0.05826061964035034,
0.24476855993270874,
-0.15260152518749237,
0.1631356179714203,
-0.05248546227812767,
0.029916029423475266,
0.607836902141571,
0.15489177405834198,
-0.18231496214866638,
0.15062260627746582,
-0.05882818251848221,
-0.016376540064811707,
-0.01049133762717247,
0.17642490565776825,
0.048974961042404175,
-0.06549915671348572,
0.27464941143989563,
0.37995409965515137,
-0.16484569013118744,
-0.13374580442905426,
-0.3065439760684967,
-0.4034541845321655,
0.04950005188584328,
0.476296603679657,
0.11664849519729614,
-0.24228523671627045,
0.19842135906219482,
0.06356930732727051,
0.189021497964859,
0.06247954070568085,
0.09298568218946457,
-0.18683616816997528,
0.23899179697036743,
0.13905878365039825,
-0.04020118713378906,
-0.2588376998901367,
-0.37634068727493286,
0.05640416219830513,
0.032551806420087814,
0.3952607214450836,
0.03914118558168411,
-0.19044052064418793,
0.13322849571704865,
0.05942127853631973,
0.1557440161705017,
-0.04270218312740326,
0.2095920443534851,
0.03148000314831734,
-0.023304376751184464,
-0.17124465107917786,
-0.26861533522605896,
-0.1257414072751999,
-0.15359771251678467,
-0.10238564014434814,
-0.27967625856399536,
-0.02851026877760887,
-0.18506553769111633,
-0.15355314314365387,
0.018731582909822464,
0.30445024371147156,
-0.5161634087562561,
-0.13319529592990875,
0.204218789935112,
0.08543798327445984,
-0.17728911340236664,
-0.20841750502586365,
0.23707245290279388,
0.6692660450935364,
0.20307348668575287,
-0.11664669215679169,
0.20044510066509247,
-0.14603786170482635,
-0.08393766731023788,
0.02675710618495941,
-0.18682728707790375,
0.3955789804458618,
0.3413773477077484,
-0.03922915458679199,
0.0915248841047287,
-0.10569365322589874,
0.10678672045469284,
0.0587482824921608,
-0.006287675350904465,
-0.24386821687221527,
0.2649517059326172,
0.056398067623376846,
0.2367112636566162,
-0.04219160974025726,
-0.3611217737197876,
0.12173116207122803,
0.3609571158885956,
0.1336940973997116,
0.227865532040596,
0.26811525225639343,
-0.1685226708650589,
-0.2820705473423004,
0.006600811146199703,
-0.27364271879196167,
0.24719199538230896,
0.4055268168449402,
0.23804324865341187,
0.11537238210439682,
0.20099899172782898,
-0.13591907918453217,
-0.017848841845989227,
0.0349394828081131,
-0.08030518144369125,
0.19211988151073456,
0.4058768153190613,
0.0943996012210846,
-0.26140955090522766,
-0.2708655595779419,
-0.17332015931606293,
0.1677817702293396,
0.1304054707288742,
-0.06078408285975456,
0.12824495136737823,
-0.05246614292263985,
0.09566716849803925,
0.07547754794359207,
-0.18079225718975067,
-0.19745859503746033,
0.17266109585762024,
-0.17685584723949432,
-0.24447616934776306,
0.0030565934721380472,
-0.13379132747650146,
0.5722126960754395,
-0.07889377325773239,
0.18172116577625275,
0.03838255628943443,
-0.29970115423202515,
-0.09450866281986237,
0.25086238980293274,
0.30355674028396606,
-0.2810710668563843,
0.3139435052871704,
0.057841166853904724,
0.16432975232601166,
-0.04035452753305435,
-0.5640268921852112,
0.18668615818023682,
-0.08872568607330322,
0.3829110860824585,
0.25162896513938904,
-0.022000469267368317,
0.23246878385543823,
-0.06405764818191528,
-0.13048134744167328,
-0.16181649267673492,
-0.028136955574154854,
-0.20533844828605652,
0.044727444648742676,
0.03563733026385307,
-0.20122340321540833,
-0.32368791103363037,
-0.3910394310951233,
-0.4839155673980713,
0.2440129518508911,
0.0915534645318985,
-0.03299115598201752,
-0.04964124411344528,
0.15287521481513977,
0.36345338821411133,
-0.016258880496025085,
0.06747113168239594,
-0.06387913227081299,
-0.3082830607891083,
0.3143341839313507,
-0.03523269295692444,
-0.21571923792362213,
-0.10528597980737686,
-0.26313352584838867,
-0.08490876853466034,
0.07102055847644806,
-0.5801857709884644,
0.16118544340133667,
-0.06928407400846481,
0.19047118723392487,
0.04258817806839943,
0.04206819087266922,
0.14554956555366516,
-0.017332786694169044,
-0.20728591084480286,
-0.03655724599957466,
-0.008288554847240448,
0.0741131603717804,
0.37883517146110535,
0.35029780864715576,
-0.23684506118297577,
0.2964540123939514,
0.22260501980781555,
0.470317542552948,
-0.08832830935716629,
-0.3011774718761444,
0.3410252630710602,
0.3796495199203491,
0.36929458379745483,
-0.24382255971431732,
-0.05456264689564705,
0.2698504626750946,
0.08953414857387543,
-0.026457663625478745,
0.6250426769256592,
0.2273140698671341,
-0.36113306879997253,
0.03282445669174194,
0.08349666744470596,
0.09007177501916885,
-0.09085888415575027,
0.3243922293186188,
-0.1937231570482254,
-0.0023732571862637997,
-0.08430292457342148,
-0.5924360752105713,
-0.17678821086883545,
-0.18972668051719666,
0.0006864367751404643,
0.2817799746990204,
0.046157192438840866,
0.03394186496734619,
-0.17562466859817505,
0.33129823207855225,
-0.2871048152446747,
0.12083388864994049,
-0.12683387100696564,
-0.05635708197951317,
-0.11318746954202652,
-0.28721344470977783,
-0.14947456121444702,
0.05432363599538803,
0.3943406045436859,
-0.39435651898384094,
-0.27681124210357666,
-0.008241066709160805,
0.3708255887031555,
-0.08014218509197235,
-0.0053256540559232235,
-0.40478965640068054,
-0.25487810373306274,
0.581069827079773,
0.5500805974006653,
-0.27331098914146423,
0.10175788402557373,
0.18553544580936432,
0.27762478590011597,
0.10240720957517624,
-0.23079943656921387,
-0.15367434918880463,
-0.16610798239707947,
-0.09278088808059692,
0.17783857882022858,
0.2747177481651306,
-0.006179472431540489,
0.1294383555650711,
0.11720450967550278,
0.06339209526777267,
0.06692886352539062,
0.25828486680984497,
-0.005849993322044611,
-0.06092331185936928,
0.278472900390625,
-0.09165091812610626,
-0.1798345297574997,
0.4046493470668793,
0.19127172231674194,
0.33153626322746277,
-0.18932683765888214,
-0.24007008969783783,
0.13540931046009064,
-0.4178824722766876,
0.3177894353866577,
0.18390029668807983,
0.15543712675571442,
0.14185254275798798,
-0.21268117427825928,
0.1653677076101303,
-0.08789291977882385,
0.47797873616218567,
-0.041074238717556,
0.04815002530813217,
-0.5286175608634949,
-0.3487732410430908,
0.3135915994644165,
-0.011173334904015064,
0.09767735749483109,
0.2518346607685089,
-0.06798645853996277,
-0.4288957715034485,
0.3860783576965332,
-0.03234093263745308,
0.955849289894104,
-0.022502897307276726,
0.3515890836715698,
-0.212798610329628,
0.14102688431739807,
0.4181646704673767,
-0.39681926369667053,
0.007352062966674566,
0.09296783059835434,
-0.16121922433376312,
0.06938575953245163,
-0.01929984986782074,
0.015580298379063606,
0.5426034331321716,
-0.17922383546829224,
0.016450783237814903,
-0.15534918010234833,
-0.17002823948860168,
0.03396725654602051,
0.5154804587364197,
0.022200584411621094,
-0.1957753300666809,
-0.27102991938591003,
0.27471011877059937,
0.027314430102705956,
-0.18452398478984833,
-0.22898274660110474,
-0.23214741051197052,
-0.09699829667806625,
0.13437891006469727,
-0.4439440071582794,
-0.025830844417214394,
-0.09069611132144928,
0.02081271819770336,
0.014224453829228878,
-0.2122337371110916,
0.42012959718704224,
-0.04187750443816185,
0.21500197052955627,
0.25083428621292114,
-0.12588198482990265,
-0.01598978601396084,
-0.08294394612312317,
-0.024823347106575966,
0.34197551012039185,
-0.11276251077651978,
0.42515742778778076,
-0.03431868180632591,
-0.06471424549818039,
0.09746907651424408,
0.13022330403327942,
-0.44470587372779846,
-0.17789845168590546,
-0.00726502388715744,
0.1249743402004242,
0.09542670845985413,
-0.25441938638687134,
0.3434920310974121,
-0.16422073543071747,
-0.13629816472530365,
0.2178802788257599,
0.1743401288986206,
-0.08842804282903671,
0.030573954805731773,
0.08959826827049255,
-0.17607657611370087,
-0.22238324582576752,
-0.012373811565339565,
0.04765261337161064,
-0.015119809657335281,
0.027480030432343483,
0.4605930745601654,
-0.19820678234100342,
-0.2967047393321991,
-0.1264924556016922,
0.2688865661621094,
-0.17820146679878235,
0.13645876944065094,
0.13298913836479187,
-0.18826042115688324,
-0.07756088674068451,
-0.10066986083984375,
0.45256879925727844,
-0.023842528462409973,
0.02723056636750698,
-0.07443579286336899,
-0.17558029294013977,
0.1121719628572464,
-0.06709843128919601,
0.20540927350521088,
-0.2702155113220215,
0.030827386304736137,
0.044982507824897766,
0.18876448273658752,
-0.45687994360923767,
-0.035853978246450424,
-0.09511938691139221,
0.17194724082946777,
-0.04216552898287773,
-0.08991063386201859,
0.04827004671096802,
-0.03133634477853775,
0.12010308355093002,
-0.15864695608615875,
-0.2573409974575043,
-0.32117602229118347,
-0.10142389684915543,
0.05505602806806564,
0.19924259185791016,
-0.005339003633707762,
0.2748624086380005,
-0.02638629637658596,
-0.2926287353038788,
-0.10353366285562515,
0.1493407040834427,
-0.20907188951969147,
0.07485786080360413,
-0.0019895511213690042,
0.3594572842121124,
-0.00980277732014656,
0.2656899392604828,
0.03375711664557457,
0.17912226915359497,
0.044001784175634384,
0.28431078791618347,
0.10478867590427399,
0.3512018322944641,
-0.0611017644405365,
-0.11609216034412384,
0.3266392946243286,
0.013886281289160252,
0.36967933177948,
0.09596823155879974,
0.10608398914337158,
-0.0046599870547652245,
0.40148407220840454,
0.24807092547416687,
0.00039072224171832204,
-0.12120286375284195,
0.01275605894625187,
0.18622060120105743,
0.31459447741508484,
-0.4905489981174469,
0.02018212154507637,
0.07098427414894104,
0.08969360589981079,
0.25649547576904297,
0.10131161659955978,
0.24078810214996338,
0.3983297049999237,
-0.2662469148635864,
0.05357962101697922,
0.1283688098192215,
-0.08327826857566833,
0.2789342701435089,
0.043986693024635315,
0.12342681735754013,
0.1276891678571701,
0.24979500472545624,
0.14476829767227173,
0.17707662284374237,
-0.10792823135852814,
-0.1121930181980133,
0.22333714365959167,
0.19686120748519897,
-0.14364959299564362,
0.15443341434001923,
-0.19143995642662048,
0.02263617143034935,
0.4870806336402893,
0.2763770818710327,
0.2709682285785675,
-0.0751853734254837,
0.1060110405087471,
0.1277763545513153,
-0.018106158822774887,
0.009732620790600777,
-0.04340168461203575,
0.005022408440709114,
-0.09978074580430984,
0.2557622194290161,
-0.19359806180000305,
-0.25489750504493713,
0.011568473652005196,
-0.11406843364238739,
-0.2391190379858017,
-0.1452975571155548,
0.1114656925201416,
0.05334504321217537,
-0.38081493973731995,
0.13279344141483307,
0.10216999799013138,
0.07701870054006577,
-0.20443294942378998,
0.17312516272068024,
0.1261536329984665,
-0.02612011507153511,
0.12898777425289154,
0.15168941020965576,
-0.027305085211992264,
0.15242277085781097,
-0.07883500307798386,
0.1962604522705078,
-0.06500694900751114,
-0.012111317366361618,
-0.46772369742393494,
0.17356270551681519,
0.17557795345783234,
0.15633977949619293,
0.18745674192905426,
0.19843445718288422,
-0.3066502511501312,
0.2008959949016571,
-0.027094531804323196,
-0.08888360112905502,
-0.2535092532634735,
0.3709409832954407,
0.09927073866128922,
-0.23117177188396454,
-0.2780435085296631,
0.209861621260643,
-0.5753175616264343,
-0.14090558886528015,
0.7585269212722778,
-0.38038286566734314,
-0.012593013234436512,
-0.25227534770965576,
0.13647061586380005,
-0.15144133567810059,
0.44020941853523254,
0.6380363702774048,
0.14365212619304657,
-0.04111075401306152,
-0.07668381929397583,
-0.42883503437042236,
0.03369567170739174,
-0.11148516088724136,
0.3441734313964844,
-0.17715682089328766,
0.41107192635536194,
0.2709234356880188,
0.23398259282112122,
-0.2049841582775116,
0.1825205534696579,
-0.4394817054271698,
-0.10537473112344742,
-0.40301766991615295,
0.04195098206400871,
-0.11184520274400711,
0.43993017077445984,
0.07651229202747345,
-0.015151729807257652,
-0.03623702749609947,
0.02280440367758274,
0.14200833439826965,
-0.4613071084022522,
-0.007892110385000706,
0.10736159235239029,
0.29512640833854675,
0.27236947417259216,
-0.07050580531358719,
0.10577868670225143,
-0.10233909636735916,
-0.27589085698127747,
-0.5270485877990723,
-0.10356160998344421,
-0.22247982025146484,
0.06604590266942978,
-0.01182514987885952,
0.2248227894306183,
-0.3254527449607849,
-0.08188682794570923,
0.03265783563256264,
0.03853562846779823,
-0.07978763431310654,
-0.1976592242717743,
-0.23067879676818848,
-0.07252705842256546,
-0.0015491299564018846,
-0.01501473505049944,
-0.021138176321983337,
0.19853132963180542,
-0.005917420145124197,
-0.25636500120162964,
-0.0262425746768713,
-0.11971937865018845,
0.083596371114254,
-0.1887121945619583,
-0.32577309012413025,
-0.11023972928524017,
-0.016024481505155563,
0.07088065892457962,
0.0067611574195325375,
-0.5428433418273926,
0.07606680691242218,
0.30345630645751953,
0.1014959067106247,
-0.08198878169059753,
0.43666836619377136,
0.10280637443065643,
-0.022639336064457893,
-0.17135114967823029,
0.09762471914291382,
-0.13317705690860748,
-0.15308600664138794,
-0.25087791681289673,
-0.27925968170166016
] |
https://github.com/huggingface/datasets/issues/1675 | Add the 800GB Pile dataset? | The pile can very easily be added and adapted using this [tfds implementation](https://github.com/EleutherAI/The-Pile/blob/master/the_pile/tfds_pile.py) from the repo.
However, the question is whether you'd be ok with 800GB+ cached in your local disk, since the tfds implementation was designed to offload the storage to Google Cloud Storage. | ## Adding a Dataset
- **Name:** The Pile
- **Description:** The Pile is a 825 GiB diverse, open source language modelling data set that consists of 22 smaller, high-quality datasets combined together. See [here](https://twitter.com/nabla_theta/status/1345130408170541056?s=20) for the Twitter announcement
- **Paper:** https://pile.eleuther.ai/paper.pdf
- **Data:** https://pile.eleuther.ai/
- **Motivation:** Enables hardcore (GPT-3 scale!) language modelling
## Remarks
Given the extreme size of this dataset, I'm not sure how feasible this will be to include in `datasets` 🤯 . I'm also unsure how many `datasets` users are pretraining LMs, so the usage of this dataset may not warrant the effort to integrate it.
| 45 | Add the 800GB Pile dataset?
## Adding a Dataset
- **Name:** The Pile
- **Description:** The Pile is a 825 GiB diverse, open source language modelling data set that consists of 22 smaller, high-quality datasets combined together. See [here](https://twitter.com/nabla_theta/status/1345130408170541056?s=20) for the Twitter announcement
- **Paper:** https://pile.eleuther.ai/paper.pdf
- **Data:** https://pile.eleuther.ai/
- **Motivation:** Enables hardcore (GPT-3 scale!) language modelling
## Remarks
Given the extreme size of this dataset, I'm not sure how feasible this will be to include in `datasets` 🤯 . I'm also unsure how many `datasets` users are pretraining LMs, so the usage of this dataset may not warrant the effort to integrate it.
The pile can very easily be added and adapted using this [tfds implementation](https://github.com/EleutherAI/The-Pile/blob/master/the_pile/tfds_pile.py) from the repo.
However, the question is whether you'd be ok with 800GB+ cached in your local disk, since the tfds implementation was designed to offload the storage to Google Cloud Storage. | [
-0.3054967522621155,
0.0699857547879219,
-0.16041818261146545,
0.16122521460056305,
0.05833517387509346,
0.20564661920070648,
0.16649332642555237,
0.15289746224880219,
0.09870196133852005,
0.037991736084222794,
-0.20994707942008972,
-0.047399990260601044,
-0.5426978468894958,
0.11756318807601929,
0.19214306771755219,
0.019607190042734146,
0.016560254618525505,
-0.12109456956386566,
-0.1276659518480301,
-0.0019263967406004667,
0.09349053353071213,
0.07069364935159683,
0.18677490949630737,
-0.4521130323410034,
-0.16692624986171722,
-0.0579511784017086,
-0.2515396773815155,
0.03879581391811371,
-0.07551982998847961,
-0.10173557698726654,
-0.23622888326644897,
0.08685816079378128,
0.3087849020957947,
0.6071378588676453,
-0.00010043330257758498,
-0.06959804147481918,
0.008737334981560707,
-0.22916801273822784,
-0.32813310623168945,
-0.09249763935804367,
0.02233436517417431,
-0.24489806592464447,
-0.3246683180332184,
-0.08215394616127014,
-0.25992920994758606,
-0.14949792623519897,
0.06839939206838608,
-0.4652230441570282,
0.07386782020330429,
0.29326972365379333,
0.2845727801322937,
0.0713735818862915,
-0.07947508245706558,
0.01552706677466631,
0.3248160779476166,
-0.026318833231925964,
-0.14824002981185913,
0.334379643201828,
0.32957950234413147,
0.15831246972084045,
-0.14249025285243988,
0.42263704538345337,
0.27484968304634094,
0.00032757222652435303,
0.2505563795566559,
0.08736396580934525,
-0.057872846722602844,
-0.05705792456865311,
-0.03059093840420246,
0.22800084948539734,
0.3887753188610077,
-0.21949994564056396,
-0.4567515254020691,
-0.3718363642692566,
-0.1433020681142807,
-0.4234703779220581,
-0.08505407720804214,
0.2680354416370392,
0.02847752347588539,
0.3589913845062256,
-0.04449914023280144,
-0.3819786012172699,
-0.09595350176095963,
0.07995675504207611,
-0.07774028927087784,
0.3094979226589203,
-0.04801870137453079,
-0.20496614277362823,
0.0719822570681572,
-0.0821329727768898,
-0.10877972841262817,
0.06080780550837517,
-0.012986558489501476,
0.04723995923995972,
-0.252250075340271,
-0.2563914954662323,
0.27878835797309875,
0.2331833392381668,
0.37493687868118286,
-0.10886785387992859,
0.08210870623588562,
0.08431659638881683,
0.03554067760705948,
-0.02632363885641098,
0.3399219214916229,
0.20414015650749207,
-0.3900611698627472,
-0.25373485684394836,
0.27436020970344543,
-0.08919147402048111,
-0.02491159550845623,
0.038171906024217606,
-0.010435521602630615,
-0.04466372728347778,
0.052415210753679276,
-0.17998260259628296,
-0.2425103634595871,
0.026372399181127548,
0.10798913985490799,
0.00005175657133804634,
0.34176570177078247,
-0.060999978333711624,
0.011981643736362457,
0.11200882494449615,
0.021910622715950012,
0.24585981667041779,
0.10147727280855179,
0.07015864551067352,
0.10304906964302063,
-0.38144710659980774,
-0.20738574862480164,
0.1403629183769226,
-0.35218676924705505,
0.054253559559583664,
0.1413022130727768,
-0.020738309249281883,
0.058209098875522614,
-0.3302527666091919,
0.16057918965816498,
0.35989487171173096,
0.23650939762592316,
-0.09152450412511826,
0.07237828522920609,
0.0284408051520586,
-0.05617891624569893,
-0.25891995429992676,
-0.018610963597893715,
0.11207915097475052,
-0.34314247965812683,
0.06739471852779388,
-0.031143678352236748,
-0.34379133582115173,
-0.36135831475257874,
0.22791127860546112,
-0.1845795065164566,
-0.04681065306067467,
-0.37561118602752686,
0.6113616824150085,
0.17054495215415955,
0.13022008538246155,
-0.03160451352596283,
0.06821546703577042,
-0.07857056707143784,
-0.02396835945546627,
0.012663629837334156,
0.2618786692619324,
-0.5343843698501587,
-0.002672807313501835,
-0.48952430486679077,
0.12900975346565247,
-0.24068665504455566,
0.3616555333137512,
-0.08439997583627701,
0.023789111524820328,
-0.1299888789653778,
0.07614888995885849,
0.3966332674026489,
-0.015775464475154877,
-0.29920172691345215,
0.2768247127532959,
-0.10495982319116592,
-0.14169242978096008,
0.07218384742736816,
0.1846330165863037,
0.11404062062501907,
-0.03247229754924774,
0.23820988833904266,
0.4528157114982605,
-0.06047108769416809,
-0.0016308597987517715,
-0.40455764532089233,
-0.5051792860031128,
0.04011503979563713,
0.42311128973960876,
0.126583993434906,
-0.1892947107553482,
0.23763978481292725,
0.08954272419214249,
0.054540544748306274,
-0.04216572642326355,
0.19658425450325012,
0.0215573962777853,
0.288571834564209,
0.14294224977493286,
-0.02914154902100563,
-0.3155580163002014,
-0.5878369212150574,
0.13033032417297363,
-0.07994164526462555,
0.24857258796691895,
-0.017826523631811142,
-0.21652597188949585,
0.1982438862323761,
-0.11490410566329956,
0.20457996428012848,
0.031918030232191086,
0.23853953182697296,
0.06549599766731262,
0.18399029970169067,
-0.1592465192079544,
-0.19788424670696259,
-0.09963113069534302,
0.00964647438377142,
-0.22456948459148407,
-0.13091841340065002,
0.06937357783317566,
-0.18223713338375092,
-0.1854405701160431,
-0.0076621114276349545,
0.03890426456928253,
-0.5003731846809387,
-0.20845064520835876,
0.08602938055992126,
0.24115854501724243,
-0.2672137916088104,
0.01744955964386463,
0.22145722806453705,
0.6760436296463013,
0.25265681743621826,
-0.03421105444431305,
0.20822247862815857,
-0.030279403552412987,
-0.08041227608919144,
0.032691456377506256,
-0.26836901903152466,
0.2687632739543915,
0.28353962302207947,
-0.10742483288049698,
0.14301057159900665,
-0.15960627794265747,
0.23925432562828064,
0.05504457280039787,
0.04419070854783058,
-0.32801902294158936,
0.2263127714395523,
0.025018205866217613,
0.2887696325778961,
0.02755085751414299,
-0.3536761701107025,
0.23402199149131775,
0.35363566875457764,
0.15282964706420898,
0.2986832857131958,
0.33782944083213806,
-0.05473586916923523,
-0.3734267055988312,
0.12027022242546082,
-0.21804480254650116,
0.333607017993927,
0.36412087082862854,
0.27842801809310913,
0.03979097679257393,
0.21828250586986542,
-0.14797598123550415,
0.01950816810131073,
-0.16156481206417084,
-0.02755546197295189,
0.27790728211402893,
0.45743241906166077,
0.031887687742710114,
-0.24734753370285034,
-0.1694091111421585,
-0.030307896435260773,
0.16594472527503967,
0.08316688984632492,
-0.02319849468767643,
-0.06866684556007385,
-0.14998961985111237,
0.1826806515455246,
0.17987355589866638,
-0.27609485387802124,
-0.08449597656726837,
0.2508696913719177,
-0.00810277834534645,
-0.3004891574382782,
-0.05545269325375557,
-0.038050830364227295,
0.5070267915725708,
0.01644788309931755,
-0.019597839564085007,
-0.008308244869112968,
-0.3167683780193329,
-0.13739056885242462,
0.2386583536863327,
0.3709862232208252,
-0.30096131563186646,
0.38092005252838135,
0.020106241106987,
0.005394176580011845,
-0.12100082635879517,
-0.32626011967658997,
0.23346959054470062,
-0.03030664660036564,
0.3070220649242401,
0.05832800641655922,
0.12415940314531326,
0.15147164463996887,
0.082087941467762,
-0.1439032107591629,
-0.28249141573905945,
-0.03578316047787666,
-0.2636392116546631,
0.11827873438596725,
0.03362245485186577,
-0.3632323443889618,
-0.235648050904274,
-0.5376783013343811,
-0.46078431606292725,
0.2093793749809265,
0.15171991288661957,
0.09350283443927765,
-0.011470363475382328,
0.15784397721290588,
0.27682822942733765,
0.2536294162273407,
0.015003327280282974,
-0.25173282623291016,
-0.387427419424057,
0.352413535118103,
-0.2271275371313095,
-0.23348326981067657,
-0.005417197477072477,
-0.12511180341243744,
-0.050418734550476074,
0.19017358124256134,
-0.6092804074287415,
-0.10031817853450775,
-0.12454617023468018,
0.23177410662174225,
-0.05535299703478813,
0.02145356312394142,
0.2684256434440613,
-0.06603126227855682,
-0.20081914961338043,
-0.03310013562440872,
0.008981417864561081,
0.24271342158317566,
0.3633560836315155,
0.219900980591774,
-0.11621831357479095,
0.21752871572971344,
0.2947782576084137,
0.48911333084106445,
-0.26789331436157227,
-0.25193220376968384,
0.40208110213279724,
0.335208922624588,
0.28865450620651245,
-0.29380616545677185,
0.12234289944171906,
0.2924550175666809,
0.09164290130138397,
-0.2098832130432129,
0.6140490174293518,
0.2262100726366043,
-0.4091825485229492,
-0.03786301985383034,
0.06580702215433121,
0.08754610270261765,
-0.07008091360330582,
0.3082036077976227,
-0.14082646369934082,
0.1322069764137268,
-0.028132859617471695,
-0.5833310484886169,
-0.26491591334342957,
-0.24992288649082184,
-0.013789224438369274,
0.18765217065811157,
0.06876944750547409,
0.12641409039497375,
-0.08548721671104431,
0.3438858687877655,
-0.34551361203193665,
0.13234983384609222,
0.01599876955151558,
-0.12273817509412766,
-0.23809081315994263,
-0.15871217846870422,
-0.10479805618524551,
-0.17112098634243011,
0.3415544033050537,
-0.31853529810905457,
-0.1155376136302948,
0.03275695815682411,
0.23256339132785797,
-0.048983585089445114,
-0.013671035878360271,
-0.26100409030914307,
-0.22468677163124084,
0.40298113226890564,
0.5296344757080078,
-0.3832055628299713,
0.034012570977211,
-0.04294026643037796,
0.3307131826877594,
-0.10174847394227982,
-0.23096413910388947,
-0.11902961134910583,
-0.2533489763736725,
-0.1862151324748993,
0.17798343300819397,
0.2870962917804718,
-0.012678190134465694,
0.19652706384658813,
0.16091357171535492,
0.12868855893611908,
-0.020832492038607597,
0.1567956656217575,
-0.004818584769964218,
0.12331153452396393,
0.13870307803153992,
-0.135410875082016,
-0.22498910129070282,
0.24435801804065704,
0.1303788125514984,
0.37964046001434326,
-0.12979702651500702,
0.14738933742046356,
0.19889184832572937,
-0.3397562801837921,
-0.0037408662028610706,
0.2533751428127289,
0.07392363995313644,
0.11502455919981003,
-0.22852829098701477,
0.2516633868217468,
-0.2066577970981598,
0.35218513011932373,
-0.19465136528015137,
0.06840496510267258,
-0.26215681433677673,
-0.2607874870300293,
0.35087281465530396,
0.03766540437936783,
0.06560412049293518,
0.18091370165348053,
-0.10792654752731323,
-0.5786871314048767,
0.41005727648735046,
0.18368174135684967,
0.9564598798751831,
-0.13326771557331085,
0.3486767113208771,
-0.1356174349784851,
0.13296464085578918,
0.3100845515727997,
-0.47543978691101074,
0.03319310396909714,
0.1005345955491066,
-0.10233218222856522,
0.06067653372883797,
0.09241864830255508,
-0.007769183721393347,
0.4886506497859955,
-0.22060301899909973,
0.10951457172632217,
-0.1505856066942215,
-0.08774588257074356,
0.005705621093511581,
0.5700280666351318,
-0.003950093407183886,
-0.2818448543548584,
-0.2881193161010742,
0.333421915769577,
0.019551226869225502,
-0.14222697913646698,
-0.25304046273231506,
-0.12526236474514008,
-0.02845638617873192,
0.2278013378381729,
-0.4362996518611908,
-0.14140261709690094,
-0.102090984582901,
0.13765791058540344,
-0.14833204448223114,
-0.16091476380825043,
0.12763142585754395,
-0.07754199206829071,
0.2671678364276886,
0.2540806829929352,
-0.20239226520061493,
-0.03401362523436546,
-0.06970547139644623,
0.011488507501780987,
0.19464854896068573,
-0.016861043870449066,
0.41022470593452454,
-0.17213769257068634,
-0.03131726011633873,
0.01912418194115162,
0.055594224482774734,
-0.48592960834503174,
-0.1235734149813652,
-0.1589241474866867,
-0.02697841078042984,
0.19211164116859436,
-0.19677026569843292,
0.24761739373207092,
-0.29985690116882324,
0.007870351895689964,
0.22874554991722107,
0.17894171178340912,
-0.05796954035758972,
0.05367486923933029,
-0.016570711508393288,
-0.12262773513793945,
-0.29018306732177734,
0.08061176538467407,
0.14696887135505676,
-0.044851407408714294,
0.06971146911382675,
0.4147088825702667,
-0.18792951107025146,
-0.3427499234676361,
-0.25881609320640564,
-0.0683768168091774,
-0.08410070836544037,
0.21285980939865112,
0.10635718703269958,
-0.2842145264148712,
-0.17367082834243774,
-0.1278037577867508,
0.48788395524024963,
0.1443255990743637,
-0.01505688950419426,
0.01254215557128191,
-0.35840556025505066,
0.0962194949388504,
0.043911587446928024,
0.2152090221643448,
-0.20827241241931915,
-0.021010207012295723,
0.09889417886734009,
0.17078658938407898,
-0.4913283586502075,
0.03730888292193413,
-0.13119901716709137,
0.13063523173332214,
-0.04919101297855377,
-0.1189424991607666,
0.1715487390756607,
-0.014053529128432274,
0.1218104287981987,
-0.029335444793105125,
-0.24402280151844025,
-0.3242492973804474,
-0.04936358332633972,
0.0477149672806263,
0.20570337772369385,
-0.08651890605688095,
0.22693832218647003,
-0.1222291961312294,
-0.16216565668582916,
-0.07077061384916306,
0.2802375555038452,
-0.01759979873895645,
-0.02441989816725254,
-0.04704878479242325,
0.27365437150001526,
-0.056288860738277435,
0.22234687209129333,
0.06670479476451874,
0.2154335230588913,
0.06022445112466812,
0.10738135874271393,
0.2274557501077652,
0.32889384031295776,
-0.07912091910839081,
-0.10176337510347366,
0.27050477266311646,
0.037210118025541306,
0.25200843811035156,
0.08311855047941208,
0.020268501713871956,
-0.07962101697921753,
0.3269742429256439,
0.29552093148231506,
-0.11216340959072113,
-0.15108433365821838,
-0.07404863834381104,
0.2572690546512604,
0.35842084884643555,
-0.3802065849304199,
-0.017596589401364326,
-0.03260665014386177,
-0.020572593435645103,
0.3032339811325073,
0.20158535242080688,
0.3765600621700287,
0.2834504246711731,
-0.13881859183311462,
0.21283210813999176,
0.25182536244392395,
-0.08281976729631424,
0.0960177630186081,
-0.11934665590524673,
0.07163754850625992,
0.08774615079164505,
0.14532586932182312,
0.09482758492231369,
0.2414843887090683,
-0.0838296040892601,
-0.09619179368019104,
0.1077275350689888,
0.1684468388557434,
-0.07996345311403275,
-0.0267887432128191,
-0.2819991409778595,
0.050951037555933,
0.34465697407722473,
0.30804243683815,
0.41713812947273254,
-0.12557555735111237,
0.1118629053235054,
0.08436127752065659,
-0.14555935561656952,
0.015085644088685513,
0.04718872159719467,
-0.04154356196522713,
-0.15346269309520721,
0.35843467712402344,
-0.13297277688980103,
-0.22132183611392975,
0.1973091959953308,
-0.12275910377502441,
-0.2807619273662567,
-0.15095911920070648,
0.11849645525217056,
0.11869753897190094,
-0.18194831907749176,
0.17908430099487305,
0.09028231352567673,
0.10498888045549393,
-0.12729667127132416,
0.36466121673583984,
0.2069532871246338,
-0.07271880656480789,
0.06990259140729904,
0.08957675844430923,
-0.045763783156871796,
0.19381973147392273,
-0.17623230814933777,
0.23859725892543793,
-0.07663082331418991,
0.07490858435630798,
-0.47820156812667847,
0.14292021095752716,
0.09599823504686356,
0.041334107518196106,
0.24205519258975983,
0.1821165829896927,
-0.3164461553096771,
0.40327736735343933,
-0.06596116721630096,
-0.04392485320568085,
-0.1647760272026062,
0.18124094605445862,
0.18708977103233337,
-0.14190776646137238,
-0.15601854026317596,
0.14507432281970978,
-0.6401212811470032,
-0.20029830932617188,
0.6081376075744629,
-0.40788185596466064,
0.14531666040420532,
-0.14634919166564941,
0.15373194217681885,
-0.09973563998937607,
0.612895131111145,
0.46548065543174744,
0.11164835840463638,
-0.008595790714025497,
-0.07317402958869934,
-0.4749073088169098,
0.11110952496528625,
-0.17303282022476196,
0.3495074212551117,
-0.2958163321018219,
0.5248236060142517,
0.19971323013305664,
0.17496250569820404,
-0.19541242718696594,
0.22835442423820496,
-0.4133360683917999,
0.012483779340982437,
-0.4292391240596771,
0.15789328515529633,
-0.2818537652492523,
0.478057861328125,
0.16795562207698822,
-0.18546487390995026,
0.01580934226512909,
0.017166439443826675,
0.17927922308444977,
-0.3698548674583435,
0.06245127692818642,
0.04492659494280815,
0.21749447286128998,
0.28620192408561707,
-0.062105290591716766,
0.10565944015979767,
-0.0976625606417656,
-0.2774534821510315,
-0.4645417034626007,
-0.02735581062734127,
-0.27378204464912415,
-0.06678617745637894,
0.05827626585960388,
0.23164835572242737,
-0.298338383436203,
-0.14063765108585358,
0.00256085186265409,
0.16817070543766022,
-0.06445567309856415,
-0.07055512070655823,
-0.025632765144109726,
-0.09013643860816956,
0.022622233256697655,
-0.027727145701646805,
0.0479574017226696,
0.31230172514915466,
-0.0394282266497612,
-0.16713906824588776,
-0.21336570382118225,
-0.12239451706409454,
0.0956289991736412,
-0.10321872681379318,
-0.2685498893260956,
0.0022963816300034523,
-0.0024156130384653807,
0.21398404240608215,
-0.16770724952220917,
-0.5281783938407898,
0.1257604956626892,
0.23206084966659546,
0.10989615321159363,
-0.08733940869569778,
0.33719661831855774,
0.08250152319669724,
-0.119317926466465,
-0.1614411324262619,
-0.01655900664627552,
-0.06369809061288834,
-0.09042372554540634,
-0.36492493748664856,
-0.2698540687561035
] |
https://github.com/huggingface/datasets/issues/1675 | Add the 800GB Pile dataset? | With the dataset streaming feature (see #2375) it will be more convenient to play with such big datasets :)
I'm currently adding C4 (see #2511 ) but I can probably start working on this afterwards | ## Adding a Dataset
- **Name:** The Pile
- **Description:** The Pile is a 825 GiB diverse, open source language modelling data set that consists of 22 smaller, high-quality datasets combined together. See [here](https://twitter.com/nabla_theta/status/1345130408170541056?s=20) for the Twitter announcement
- **Paper:** https://pile.eleuther.ai/paper.pdf
- **Data:** https://pile.eleuther.ai/
- **Motivation:** Enables hardcore (GPT-3 scale!) language modelling
## Remarks
Given the extreme size of this dataset, I'm not sure how feasible this will be to include in `datasets` 🤯 . I'm also unsure how many `datasets` users are pretraining LMs, so the usage of this dataset may not warrant the effort to integrate it.
| 35 | Add the 800GB Pile dataset?
## Adding a Dataset
- **Name:** The Pile
- **Description:** The Pile is a 825 GiB diverse, open source language modelling data set that consists of 22 smaller, high-quality datasets combined together. See [here](https://twitter.com/nabla_theta/status/1345130408170541056?s=20) for the Twitter announcement
- **Paper:** https://pile.eleuther.ai/paper.pdf
- **Data:** https://pile.eleuther.ai/
- **Motivation:** Enables hardcore (GPT-3 scale!) language modelling
## Remarks
Given the extreme size of this dataset, I'm not sure how feasible this will be to include in `datasets` 🤯 . I'm also unsure how many `datasets` users are pretraining LMs, so the usage of this dataset may not warrant the effort to integrate it.
With the dataset streaming feature (see #2375) it will be more convenient to play with such big datasets :)
I'm currently adding C4 (see #2511 ) but I can probably start working on this afterwards | [
-0.4098334312438965,
0.1263113021850586,
-0.16244108974933624,
0.15567880868911743,
0.01711125113070011,
0.1715146154165268,
0.0879783108830452,
0.2739041745662689,
0.01110324077308178,
0.01948508247733116,
-0.15745984017848969,
0.14085689187049866,
-0.5226864218711853,
0.19262942671775818,
0.1664164662361145,
-0.0006092540570534766,
-0.022724581882357597,
-0.05481092631816864,
-0.10180269181728363,
-0.028394149616360664,
-0.04255904629826546,
-0.0505991205573082,
0.02301875501871109,
-0.4305400252342224,
-0.2151900976896286,
-0.1103023961186409,
-0.14261890947818756,
-0.011051527224481106,
-0.3041885495185852,
-0.24186046421527863,
-0.26966410875320435,
0.14718475937843323,
0.4014955163002014,
0.5093926191329956,
-0.00009923092147801071,
-0.18773280084133148,
0.1837463229894638,
-0.18238705396652222,
-0.37783023715019226,
-0.14051413536071777,
-0.057961851358413696,
-0.30623117089271545,
-0.2828386425971985,
-0.03625817596912384,
-0.21384897828102112,
-0.1490485519170761,
0.11657343804836273,
-0.4075610339641571,
0.08371469378471375,
0.3522389829158783,
0.28531956672668457,
0.1292308121919632,
0.028258195146918297,
-0.11875620484352112,
0.3448965847492218,
-0.03721756115555763,
-0.14115945994853973,
0.21658973395824432,
0.36091065406799316,
0.19328539073467255,
-0.13499583303928375,
0.423176109790802,
0.3995491862297058,
-0.1363988220691681,
0.20033730566501617,
-0.013778600841760635,
-0.0137633653357625,
-0.1184782087802887,
-0.093995101749897,
0.3289185166358948,
0.33966630697250366,
-0.1999341994524002,
-0.4169473946094513,
-0.33205121755599976,
0.00040953358984552324,
-0.4861876964569092,
-0.18641024827957153,
0.28023484349250793,
0.013002383522689342,
0.26540184020996094,
0.011849835515022278,
-0.2891334593296051,
-0.10230323672294617,
0.21598514914512634,
0.026410626247525215,
0.2852247357368469,
-0.09167881309986115,
-0.18147721886634827,
0.18472042679786682,
-0.04524339735507965,
-0.1685021072626114,
0.062011223286390305,
-0.07015080749988556,
0.016938285902142525,
-0.34137779474258423,
-0.20530253648757935,
0.38156870007514954,
0.347973495721817,
0.40294891595840454,
-0.20131947100162506,
-0.0007637965609319508,
0.090032197535038,
0.007675429340451956,
-0.03633181378245354,
0.41836801171302795,
0.022852852940559387,
-0.25762802362442017,
-0.24299883842468262,
0.31626665592193604,
0.06151975318789482,
0.08455006778240204,
0.07801824808120728,
-0.08125955611467361,
-0.10915807634592056,
-0.1546165645122528,
-0.10373904556035995,
-0.13117648661136627,
0.13416890799999237,
0.024996396154165268,
-0.011035631410777569,
0.24734710156917572,
-0.040634579956531525,
-0.013262823224067688,
0.10605650395154953,
-0.013258876278996468,
0.22374217212200165,
0.04622086510062218,
0.17908217012882233,
0.16459134221076965,
-0.5682693123817444,
-0.21820873022079468,
0.10969126969575882,
-0.449486643075943,
-0.05823662877082825,
0.1746324598789215,
-0.09663135558366776,
0.0979662761092186,
-0.09381590783596039,
0.21538500487804413,
0.2556803524494171,
0.15418468415737152,
-0.03211108222603798,
0.08671167492866516,
-0.02071935124695301,
-0.07395580410957336,
-0.21910735964775085,
0.024526644498109818,
-0.020344004034996033,
-0.277177631855011,
0.06208781152963638,
0.00893816351890564,
-0.23644529283046722,
-0.37914764881134033,
0.24828818440437317,
-0.10520850121974945,
0.06479091942310333,
-0.3975295126438141,
0.684315025806427,
-0.05181187391281128,
0.23032620549201965,
0.0298150647431612,
-0.07209675759077072,
0.1268395483493805,
0.009461140260100365,
0.054307952523231506,
0.18600590527057648,
-0.5823352932929993,
-0.06884218007326126,
-0.6220448017120361,
0.13326497375965118,
-0.04830271750688553,
0.23295730352401733,
-0.1152958869934082,
0.03313472121953964,
-0.10266575217247009,
-0.0032313743140548468,
0.550624668598175,
0.09032715857028961,
-0.18966776132583618,
0.17845170199871063,
-0.09434899687767029,
-0.06667856872081757,
0.036030326038599014,
0.1663515567779541,
0.17890208959579468,
-0.027667755261063576,
0.21251730620861053,
0.38312968611717224,
-0.13188160955905914,
-0.0458412766456604,
-0.2773420810699463,
-0.3492942452430725,
0.006503984332084656,
0.4455782473087311,
0.09559385478496552,
-0.3235454857349396,
0.2116488516330719,
0.07900441437959671,
0.20114266872406006,
-0.03878606855869293,
0.16624873876571655,
-0.09413496404886246,
0.3228883743286133,
0.09410253167152405,
-0.03269192576408386,
-0.25445470213890076,
-0.4213959276676178,
0.012930246070027351,
0.06644455343484879,
0.39242324233055115,
0.032723914831876755,
-0.2007572203874588,
0.11769725382328033,
-0.032453346997499466,
0.07450679689645767,
-0.06104092672467232,
0.2477748990058899,
0.04496688395738602,
0.0116753363981843,
-0.16995760798454285,
-0.23750220239162445,
-0.02242238260805607,
-0.08950858563184738,
-0.13907231390476227,
-0.20419681072235107,
-0.027715718373656273,
-0.21137584745883942,
-0.18658678233623505,
0.09919312596321106,
0.20346470177173615,
-0.39316508173942566,
-0.14387674629688263,
0.15428917109966278,
0.15646909177303314,
-0.09952185302972794,
-0.14837311208248138,
0.17391149699687958,
0.589935839176178,
0.2877262532711029,
-0.1312030404806137,
0.22239486873149872,
-0.09661253541707993,
-0.05491871014237404,
0.05236658826470375,
-0.1657312512397766,
0.34575027227401733,
0.28433912992477417,
-0.06307050585746765,
0.15016141533851624,
-0.1299116313457489,
0.21658124029636383,
0.040401384234428406,
0.011162311770021915,
-0.32153433561325073,
0.2626163363456726,
0.017928356304764748,
0.2361108958721161,
-0.028416717424988747,
-0.3789525628089905,
0.16936920583248138,
0.3804486095905304,
0.17847545444965363,
0.2226567417383194,
0.2837972939014435,
-0.20517142117023468,
-0.28579437732696533,
0.04116363450884819,
-0.24458487331867218,
0.17519795894622803,
0.42540282011032104,
0.26628378033638,
0.09397117048501968,
0.1909112185239792,
-0.14739243686199188,
0.04728981480002403,
-0.04157956689596176,
-0.014236493967473507,
0.209734708070755,
0.39886683225631714,
-0.011770619079470634,
-0.30596792697906494,
-0.2796694338321686,
-0.0838693380355835,
0.17025913298130035,
0.1257222443819046,
-0.10053673386573792,
-0.021495787426829338,
-0.11163944751024246,
0.10457953810691833,
0.03121989406645298,
-0.20224547386169434,
-0.1765328049659729,
0.18871088325977325,
-0.08442606776952744,
-0.26688867807388306,
0.020709456875920296,
-0.16011127829551697,
0.4609532058238983,
0.026985375210642815,
0.19901114702224731,
0.04624847322702408,
-0.2685698866844177,
-0.10236998647451401,
0.28596267104148865,
0.29065850377082825,
-0.2565123438835144,
0.3059355616569519,
0.050784025341272354,
0.19751104712486267,
-0.10869073122739792,
-0.5585717558860779,
0.2651890218257904,
-0.07126084715127945,
0.3164297342300415,
0.20040151476860046,
0.007792392745614052,
0.1900358349084854,
-0.0581643171608448,
-0.1472807675600052,
-0.20704597234725952,
-0.019379880279302597,
-0.15329216420650482,
-0.041522130370140076,
0.03077523410320282,
-0.25171926617622375,
-0.33987030386924744,
-0.4018905758857727,
-0.5428557991981506,
0.2682352662086487,
0.07105612754821777,
0.07202740013599396,
-0.0045702653005719185,
0.14883734285831451,
0.34480640292167664,
0.02708248235285282,
0.05665844306349754,
-0.12892109155654907,
-0.321264386177063,
0.3212064206600189,
-0.14931131899356842,
-0.24028165638446808,
-0.07659339904785156,
-0.20670463144779205,
-0.023875543847680092,
0.08145945519208908,
-0.5019996166229248,
0.15973152220249176,
-0.11526802182197571,
0.22504225373268127,
0.029829619452357292,
0.039468541741371155,
0.16752836108207703,
-0.022097408771514893,
-0.24218571186065674,
-0.07921593636274338,
0.04734994098544121,
0.11142838001251221,
0.3575182855129242,
0.33094796538352966,
-0.24471156299114227,
0.2910521626472473,
0.20603223145008087,
0.3839905858039856,
-0.04269903898239136,
-0.2878250777721405,
0.40632155537605286,
0.37952378392219543,
0.36401352286338806,
-0.2093791663646698,
-0.0007667380850762129,
0.2635858356952667,
0.08078139275312424,
-0.0966671034693718,
0.6487154960632324,
0.16011542081832886,
-0.4226076602935791,
0.03556833043694496,
0.0923503190279007,
0.028052300214767456,
-0.10930895805358887,
0.3098236620426178,
-0.15673446655273438,
0.037295471876859665,
-0.10656940191984177,
-0.5659017562866211,
-0.2080823928117752,
-0.2272188812494278,
-0.06680604815483093,
0.24329231679439545,
0.01544315554201603,
0.03775406628847122,
-0.1647178828716278,
0.29618531465530396,
-0.3002600371837616,
0.15786093473434448,
-0.08416411280632019,
-0.0066453199833631516,
-0.10137826204299927,
-0.2576546370983124,
-0.18322305381298065,
-0.03733670338988304,
0.43018510937690735,
-0.34625065326690674,
-0.21667534112930298,
0.050768982619047165,
0.3493843078613281,
-0.11204173415899277,
0.06042221561074257,
-0.4069744348526001,
-0.20594052970409393,
0.604682981967926,
0.4675155580043793,
-0.30341482162475586,
0.027869470417499542,
0.13164444267749786,
0.2617979049682617,
0.11106438934803009,
-0.21283821761608124,
-0.17551496624946594,
-0.14781807363033295,
-0.17047522962093353,
0.17621593177318573,
0.27252525091171265,
-0.002776163863018155,
0.07472477108240128,
0.060474514961242676,
0.1321130245923996,
-0.039994075894355774,
0.23894329369068146,
0.0417565181851387,
0.018607523292303085,
0.2261686623096466,
-0.0878182053565979,
-0.1445905566215515,
0.33529239892959595,
0.25738126039505005,
0.3048608601093292,
-0.12471018731594086,
-0.1524932086467743,
0.15391354262828827,
-0.37275323271751404,
0.28538230061531067,
0.17429490387439728,
0.13679632544517517,
0.18445266783237457,
-0.26054322719573975,
0.21828879415988922,
-0.12565775215625763,
0.4825085699558258,
-0.06106602028012276,
0.09992671012878418,
-0.48686158657073975,
-0.2704681158065796,
0.3152833878993988,
-0.06563049554824829,
0.07665465027093887,
0.25141599774360657,
-0.03217240422964096,
-0.4504583477973938,
0.29876402020454407,
-0.028411921113729477,
0.9278068542480469,
-0.005363840609788895,
0.269389808177948,
-0.20896779000759125,
0.09721402823925018,
0.3174707889556885,
-0.4739416837692261,
0.05793821066617966,
0.04969320446252823,
-0.14792366325855255,
0.07443759590387344,
0.0002512380888219923,
0.062332093715667725,
0.4972246587276459,
-0.2921585440635681,
0.062102146446704865,
-0.14691416919231415,
-0.17459478974342346,
-0.015954460948705673,
0.5426496863365173,
-0.046114664524793625,
-0.24454689025878906,
-0.3036297559738159,
0.31289979815483093,
-0.008783974684774876,
-0.17823731899261475,
-0.22757652401924133,
-0.2171165496110916,
-0.027697069570422173,
0.1086655929684639,
-0.38826724886894226,
0.029907358810305595,
-0.1745702475309372,
0.01703641563653946,
-0.03961753472685814,
-0.1559922993183136,
0.3619067370891571,
-0.08592642098665237,
0.21054577827453613,
0.28439876437187195,
-0.135695680975914,
0.059024352580308914,
-0.05425761267542839,
-0.03519052267074585,
0.23858946561813354,
-0.06661142408847809,
0.3549986183643341,
-0.0717320367693901,
-0.1068444475531578,
0.14397142827510834,
0.1412450075149536,
-0.4076227843761444,
-0.06387843191623688,
-0.12376765161752701,
0.09536173939704895,
0.18013280630111694,
-0.1763363629579544,
0.2990341782569885,
-0.23076938092708588,
-0.1559377759695053,
0.24346712231636047,
0.15245024859905243,
-0.12377405166625977,
0.056222446262836456,
0.12810148298740387,
-0.15169692039489746,
-0.254013329744339,
0.0688445195555687,
0.010480581782758236,
-0.06954865902662277,
0.05413351580500603,
0.5405294299125671,
-0.23519258201122284,
-0.361761212348938,
-0.14629368484020233,
0.1553829163312912,
-0.13331837952136993,
0.15627244114875793,
0.12093967199325562,
-0.22164097428321838,
-0.04384535178542137,
-0.0041074082255363464,
0.38098058104515076,
0.014676349237561226,
0.01832769438624382,
-0.039364807307720184,
-0.2908759117126465,
0.09855728596448898,
-0.06751451641321182,
0.228895902633667,
-0.25200074911117554,
0.03937274590134621,
0.042782098054885864,
0.2426462173461914,
-0.49672213196754456,
-0.021715154871344566,
-0.12450944632291794,
0.19229483604431152,
0.008922968059778214,
-0.14707423746585846,
0.10248741507530212,
0.016069205477833748,
0.16194088757038116,
-0.10623569786548615,
-0.26969286799430847,
-0.34903696179389954,
-0.11251645535230637,
0.044182464480400085,
0.17690636217594147,
-0.03224891796708107,
0.261403888463974,
-0.08538555353879929,
-0.2715210020542145,
-0.10994848608970642,
0.2870595455169678,
-0.20803837478160858,
0.050949595868587494,
0.04377158358693123,
0.32960253953933716,
-0.12646982073783875,
0.3109322488307953,
-0.044965893030166626,
0.2604690492153168,
0.10113022476434708,
0.17844991385936737,
0.12438607215881348,
0.32250940799713135,
-0.10567707568407059,
-0.05662567541003227,
0.3306288719177246,
0.042430758476257324,
0.29172924160957336,
0.07951965928077698,
0.06307128816843033,
-0.0454288125038147,
0.36902356147766113,
0.23227964341640472,
-0.041873734444379807,
-0.08019066601991653,
-0.06353889405727386,
0.22899390757083893,
0.3526460528373718,
-0.4441503882408142,
0.026141440495848656,
-0.00035463061067275703,
0.06603052467107773,
0.316389262676239,
0.07545370608568192,
0.2048863172531128,
0.3034875690937042,
-0.219324991106987,
0.10525544732809067,
0.12453343719244003,
-0.06667712330818176,
0.2558589577674866,
0.010192709043622017,
0.0778098925948143,
0.08342631906270981,
0.2537027597427368,
0.10965586453676224,
0.21133090555667877,
0.020647434517741203,
-0.15598508715629578,
0.21743561327457428,
0.24943198263645172,
-0.12174183130264282,
0.1984141319990158,
-0.2705112397670746,
0.014289923012256622,
0.44084203243255615,
0.23049746453762054,
0.33485379815101624,
-0.02808132953941822,
0.15817363560199738,
0.19116343557834625,
-0.02429717406630516,
-0.07474212348461151,
-0.010519389063119888,
-0.032500192523002625,
-0.10612532496452332,
0.24864457547664642,
-0.24321869015693665,
-0.2727804481983185,
0.03051292710006237,
-0.1603689044713974,
-0.15901319682598114,
-0.08420657366514206,
0.12487250566482544,
0.09604363143444061,
-0.3879929482936859,
0.15269076824188232,
0.05390457436442375,
0.07142526656389236,
-0.19148097932338715,
0.28149622678756714,
0.17225101590156555,
-0.037269167602062225,
0.09744642674922943,
0.06371866166591644,
-0.015483093447983265,
0.19453920423984528,
-0.13363805413246155,
0.18229535222053528,
-0.06144125014543533,
-0.04221423715353012,
-0.4361591935157776,
0.18467465043067932,
0.210983008146286,
0.12667399644851685,
0.18638698756694794,
0.20630402863025665,
-0.3460840582847595,
0.1753542423248291,
-0.03211846575140953,
-0.11299397051334381,
-0.15646930038928986,
0.2638246417045593,
0.09768468886613846,
-0.18630175292491913,
-0.26441413164138794,
0.16081495583057404,
-0.6029191017150879,
-0.13016197085380554,
0.7552973628044128,
-0.41303306818008423,
0.0005651716492138803,
-0.2642829418182373,
0.1572832614183426,
-0.16250301897525787,
0.5178129076957703,
0.489351749420166,
0.16268305480480194,
-0.033611658960580826,
-0.19654661417007446,
-0.41628921031951904,
0.11850856244564056,
-0.15161676704883575,
0.30293187499046326,
-0.2053789347410202,
0.4095592200756073,
0.28929829597473145,
0.20666633546352386,
-0.10664364695549011,
0.23663625121116638,
-0.3802984356880188,
-0.07137002050876617,
-0.4423672556877136,
0.08585631102323532,
-0.1462792456150055,
0.4189068675041199,
0.09466042369604111,
-0.12322760373353958,
0.02037782594561577,
0.018433235585689545,
0.18695448338985443,
-0.45013880729675293,
0.07162787765264511,
0.08965699374675751,
0.20319606363773346,
0.2926831543445587,
-0.04685644060373306,
0.18304678797721863,
-0.1631484180688858,
-0.286317378282547,
-0.46376824378967285,
-0.10181941837072372,
-0.22867965698242188,
-0.002914719982072711,
0.04602537676692009,
0.26990458369255066,
-0.23575401306152344,
-0.07783985882997513,
0.007700750604271889,
0.09376440197229385,
-0.07573099434375763,
-0.11776964366436005,
-0.15929868817329407,
-0.04841441288590431,
-0.02418111264705658,
-0.020182441920042038,
-0.03093220293521881,
0.23834721744060516,
-0.01535842940211296,
-0.21961171925067902,
-0.04136204719543457,
-0.2070818394422531,
0.1371312290430069,
-0.19752417504787445,
-0.3689706325531006,
-0.12583380937576294,
0.05632101371884346,
0.09223122149705887,
-0.03581991791725159,
-0.5341689586639404,
0.15319009125232697,
0.2678017020225525,
0.13220109045505524,
-0.12330441921949387,
0.41662585735321045,
0.08480385690927505,
-0.055964820086956024,
-0.1672462373971939,
0.17956699430942535,
-0.028002941980957985,
-0.12602007389068604,
-0.3196699321269989,
-0.31764060258865356
] |
https://github.com/huggingface/datasets/issues/1675 | Add the 800GB Pile dataset? | Hi folks! Just wanted to follow up on this -- would be really nice to get the Pile on HF Datasets... unclear if it would be easy to also add partitions of the Pile subject to the original 22 datasets used, but that would be nice too! | ## Adding a Dataset
- **Name:** The Pile
- **Description:** The Pile is a 825 GiB diverse, open source language modelling data set that consists of 22 smaller, high-quality datasets combined together. See [here](https://twitter.com/nabla_theta/status/1345130408170541056?s=20) for the Twitter announcement
- **Paper:** https://pile.eleuther.ai/paper.pdf
- **Data:** https://pile.eleuther.ai/
- **Motivation:** Enables hardcore (GPT-3 scale!) language modelling
## Remarks
Given the extreme size of this dataset, I'm not sure how feasible this will be to include in `datasets` 🤯 . I'm also unsure how many `datasets` users are pretraining LMs, so the usage of this dataset may not warrant the effort to integrate it.
| 47 | Add the 800GB Pile dataset?
## Adding a Dataset
- **Name:** The Pile
- **Description:** The Pile is a 825 GiB diverse, open source language modelling data set that consists of 22 smaller, high-quality datasets combined together. See [here](https://twitter.com/nabla_theta/status/1345130408170541056?s=20) for the Twitter announcement
- **Paper:** https://pile.eleuther.ai/paper.pdf
- **Data:** https://pile.eleuther.ai/
- **Motivation:** Enables hardcore (GPT-3 scale!) language modelling
## Remarks
Given the extreme size of this dataset, I'm not sure how feasible this will be to include in `datasets` 🤯 . I'm also unsure how many `datasets` users are pretraining LMs, so the usage of this dataset may not warrant the effort to integrate it.
Hi folks! Just wanted to follow up on this -- would be really nice to get the Pile on HF Datasets... unclear if it would be easy to also add partitions of the Pile subject to the original 22 datasets used, but that would be nice too! | [
-0.24625413119792938,
0.1785697042942047,
-0.10752720385789871,
0.20753329992294312,
-0.0628189817070961,
0.2498987913131714,
0.15014362335205078,
0.18070290982723236,
0.10750558972358704,
-0.0014592688530683517,
-0.3454720079898834,
0.09751681238412857,
-0.47461551427841187,
0.2544949948787689,
0.19285589456558228,
-0.0652397871017456,
-0.032202087342739105,
-0.207184836268425,
-0.13703122735023499,
-0.14941011369228363,
-0.06065819039940834,
-0.05981016531586647,
0.028212837874889374,
-0.3862360119819641,
-0.17230302095413208,
0.00414599385112524,
-0.3139384388923645,
0.07422995567321777,
-0.3200515806674957,
-0.11774082481861115,
-0.12735497951507568,
0.18064488470554352,
0.4322110712528229,
0.5957205295562744,
-0.00010316713451175019,
-0.19629107415676117,
0.024264855310320854,
-0.1736915111541748,
-0.33335408568382263,
-0.18576329946517944,
-0.0035199702251702547,
-0.34404245018959045,
-0.46539244055747986,
0.06849092245101929,
-0.11775299906730652,
-0.2050122171640396,
0.1267710030078888,
-0.35349735617637634,
-0.09138809889554977,
0.15211820602416992,
0.22414524853229523,
0.14978347718715668,
0.054117877036333084,
-0.16070902347564697,
0.4485832750797272,
0.14924141764640808,
-0.13031552731990814,
0.27364566922187805,
0.30253127217292786,
0.04132632911205292,
-0.04101511836051941,
0.38374218344688416,
0.4280634820461273,
-0.19552430510520935,
0.2748355567455292,
-0.0034527310635894537,
-0.0380529947578907,
-0.13318122923374176,
-0.15618540346622467,
0.3036517798900604,
0.3889552652835846,
-0.10518933832645416,
-0.4876391589641571,
-0.3463985025882721,
-0.10798802226781845,
-0.31599605083465576,
-0.2576562464237213,
0.412088543176651,
0.06788621097803116,
0.2484544813632965,
0.17463496327400208,
-0.30190807580947876,
-0.11862488836050034,
0.23907974362373352,
-0.044591113924980164,
0.31979748606681824,
-0.040889523923397064,
-0.13560910522937775,
0.19421078264713287,
-0.003951225895434618,
-0.06055979058146477,
-0.0825139582157135,
-0.10603421181440353,
0.10612890869379044,
-0.26174426078796387,
-0.19709298014640808,
0.339815229177475,
0.3602098524570465,
0.4732290804386139,
-0.34387898445129395,
-0.16717742383480072,
0.00801110453903675,
-0.14772407710552216,
-0.06487024575471878,
0.5987269878387451,
-0.042333733290433884,
-0.304699182510376,
-0.21907396614551544,
0.21827659010887146,
0.04774026200175285,
0.1607237607240677,
0.04478686675429344,
-0.09939766675233841,
-0.03484339639544487,
-0.21748866140842438,
-0.2602549195289612,
-0.12368368357419968,
-0.05556518957018852,
0.0519259087741375,
-0.11721593886613846,
0.19946607947349548,
-0.13820134103298187,
-0.05063267797231674,
0.11086862534284592,
0.12733790278434753,
0.20538944005966187,
-0.019201109185814857,
0.25685787200927734,
0.12172452360391617,
-0.4795180857181549,
-0.18278120458126068,
0.11899992823600769,
-0.4479355216026306,
-0.10700143128633499,
0.10148916393518448,
-0.15347488224506378,
-0.058807339519262314,
-0.09509699046611786,
0.29308778047561646,
0.37046781182289124,
0.10022683441638947,
0.000038964117266004905,
0.18050090968608856,
0.0745568573474884,
-0.009878662414848804,
-0.15546971559524536,
0.09541185945272446,
0.02983543463051319,
-0.31805285811424255,
0.14659427106380463,
-0.05322585999965668,
-0.2526590824127197,
-0.41374877095222473,
0.196238711476326,
-0.10801457613706589,
-0.0012861948926001787,
-0.539801299571991,
0.6560423970222473,
-0.07448277622461319,
0.31859493255615234,
0.0379098616540432,
-0.0938698947429657,
0.14586381614208221,
-0.00649169972166419,
0.02800687402486801,
0.1340823769569397,
-0.6778559684753418,
-0.03603892773389816,
-0.6665447354316711,
0.023184603080153465,
-0.019985061138868332,
0.2567598521709442,
-0.16941601037979126,
0.11293380707502365,
-0.2431824803352356,
-0.052493639290332794,
0.5646253824234009,
0.2066771239042282,
-0.17689023911952972,
0.2358556091785431,
-0.006137913558632135,
0.061553601175546646,
-0.06775214523077011,
0.1928418129682541,
0.09979242086410522,
-0.08965124189853668,
0.23068395256996155,
0.3897209167480469,
-0.10449621826410294,
-0.15383684635162354,
-0.2931567132472992,
-0.29793792963027954,
0.03028702549636364,
0.4772014319896698,
0.1861845701932907,
-0.21313214302062988,
0.3239222764968872,
0.05398588627576828,
0.26104283332824707,
-0.027051782235503197,
0.17403385043144226,
-0.16879095137119293,
0.40959465503692627,
0.2165108323097229,
0.04692673310637474,
-0.19355742633342743,
-0.3710536062717438,
0.08832483738660812,
-0.05648525059223175,
0.4205212891101837,
0.11463472992181778,
-0.1526169329881668,
0.10540062189102173,
-0.02605094388127327,
0.10933320969343185,
-0.08517052978277206,
0.16989558935165405,
0.005304822698235512,
-0.09367946535348892,
-0.31166917085647583,
-0.23427172005176544,
0.07727893441915512,
-0.07544244080781937,
-0.08290792256593704,
-0.17378336191177368,
0.18616332113742828,
-0.22602203488349915,
-0.14042192697525024,
-0.01345731969922781,
0.23566582798957825,
-0.45202797651290894,
-0.1736222803592682,
0.14702467620372772,
0.03587024286389351,
-0.1718820035457611,
-0.18050408363342285,
0.31252816319465637,
0.5936397314071655,
0.2700743079185486,
-0.18957431614398956,
0.3841974139213562,
-0.2826443910598755,
-0.09489980340003967,
-0.037112411111593246,
-0.09776391834020615,
0.34662237763404846,
0.14182588458061218,
-0.01430742722004652,
0.07123470306396484,
-0.10379302501678467,
0.11142636835575104,
0.13575071096420288,
0.056571800261735916,
-0.23720920085906982,
0.2847626805305481,
0.058424271643161774,
0.16253070533275604,
-0.07347393780946732,
-0.31688275933265686,
0.2308574765920639,
0.2888994812965393,
0.18828155100345612,
0.10373266786336899,
0.2862323522567749,
-0.21105636656284332,
-0.21415668725967407,
0.0827910527586937,
-0.3201042711734772,
0.2933126986026764,
0.43136122822761536,
0.3334781229496002,
0.1507134884595871,
0.19235895574092865,
-0.06780733168125153,
-0.033819232136011124,
0.08870505541563034,
-0.041870344430208206,
0.15495362877845764,
0.4150848388671875,
0.049367841333150864,
-0.2622883915901184,
-0.25631022453308105,
-0.09964989125728607,
0.12017039209604263,
0.08270687609910965,
-0.09659939259290695,
0.034244511276483536,
-0.15377964079380035,
0.039157018065452576,
-0.0015206992393359542,
-0.26322096586227417,
-0.2255910187959671,
0.18004578351974487,
-0.12162620574235916,
-0.2089034765958786,
0.016816824674606323,
-0.1368892788887024,
0.45824432373046875,
-0.14810852706432343,
0.22648578882217407,
0.07390853017568588,
-0.2982954978942871,
-0.06810636073350906,
0.23945888876914978,
0.3514465093612671,
-0.19336844980716705,
0.38383400440216064,
0.0832780972123146,
0.043614406138658524,
-0.18881544470787048,
-0.5572307705879211,
0.21483555436134338,
-0.13148482143878937,
0.3213921785354614,
0.1718156933784485,
-0.013750175945460796,
0.15817846357822418,
-0.03389618918299675,
-0.14304609596729279,
-0.06543175131082535,
-0.005740244872868061,
-0.22618313133716583,
-0.07299982756376266,
0.02399623580276966,
-0.21194125711917877,
-0.26072198152542114,
-0.4658941626548767,
-0.4638245403766632,
0.24821197986602783,
0.08241280168294907,
0.05388868600130081,
-0.02424909919500351,
0.056632548570632935,
0.2967192530632019,
0.013269772753119469,
-0.15704774856567383,
-0.1987161934375763,
-0.3436395227909088,
0.34035712480545044,
-0.122974693775177,
-0.21074850857257843,
0.027855077758431435,
-0.23957984149456024,
-0.18331006169319153,
0.10864853858947754,
-0.5946322083473206,
0.10739476978778839,
-0.004869486670941114,
0.2758699357509613,
0.006991214584559202,
0.15166153013706207,
0.12419802695512772,
-0.15188296139240265,
-0.1421295404434204,
-0.08157747238874435,
-0.0377449207007885,
0.10810589790344238,
0.5077723860740662,
0.3683866560459137,
-0.1968950480222702,
0.21549305319786072,
0.26730650663375854,
0.5058034062385559,
-0.037961456924676895,
-0.15339845418930054,
0.42705202102661133,
0.5014261603355408,
0.39253440499305725,
-0.23844781517982483,
-0.09388476610183716,
0.3584389090538025,
0.07302140444517136,
-0.09428878128528595,
0.5424857139587402,
0.22520402073860168,
-0.3714761734008789,
0.08633758127689362,
0.02079152688384056,
0.1657276749610901,
-0.0736842006444931,
0.29516634345054626,
-0.162887305021286,
0.00004668428300647065,
-0.003186906687915325,
-0.6648688316345215,
-0.29639914631843567,
-0.2286061942577362,
0.051485028117895126,
0.35448387265205383,
0.1379663348197937,
0.09549932181835175,
-0.23396506905555725,
0.35591360926628113,
-0.21223768591880798,
0.17667710781097412,
-0.12958967685699463,
-0.08758746087551117,
-0.09146653860807419,
-0.19895069301128387,
-0.05496920645236969,
0.1005004420876503,
0.5109840631484985,
-0.36627018451690674,
-0.31670281291007996,
0.11774682998657227,
0.3514556884765625,
-0.08481274545192719,
-0.059458449482917786,
-0.41266173124313354,
-0.21132604777812958,
0.5140789747238159,
0.5027028918266296,
-0.33318430185317993,
0.02361501194536686,
0.19862611591815948,
0.2597479522228241,
0.03254548832774162,
-0.3211180567741394,
-0.042687542736530304,
-0.20450890064239502,
-0.1094621866941452,
0.1658121645450592,
0.28593844175338745,
-0.051099274307489395,
0.003980012610554695,
0.16110101342201233,
0.11520852148532867,
0.08950100839138031,
0.20279920101165771,
-0.11088437587022781,
-0.033128879964351654,
0.2975578308105469,
-0.029430653899908066,
-0.11740338057279587,
0.4459312856197357,
0.349748432636261,
0.4114854633808136,
-0.24577349424362183,
-0.16152383387088776,
0.2627887725830078,
-0.41690781712532043,
0.3343498706817627,
0.22846676409244537,
0.23702669143676758,
0.041126906871795654,
-0.2406499683856964,
0.10914423316717148,
-0.17775925993919373,
0.3633449077606201,
-0.093907430768013,
0.027525411918759346,
-0.5469815731048584,
-0.23752212524414062,
0.33907550573349,
-0.07688327878713608,
0.0732172429561615,
0.2748352885246277,
0.18476475775241852,
-0.4231981635093689,
0.5059276819229126,
-0.1159735694527626,
1.0700713396072388,
-0.08076943457126617,
0.3042270243167877,
-0.21754446625709534,
-0.02114315889775753,
0.29488688707351685,
-0.4703843593597412,
-0.04759642481803894,
-0.013346975669264793,
-0.22736121714115143,
0.08088604360818863,
-0.08679337054491043,
0.03449657931923866,
0.5482615828514099,
-0.08452930301427841,
0.08408354967832565,
-0.15089187026023865,
-0.1704106628894806,
0.011511817574501038,
0.465186208486557,
-0.02621021680533886,
-0.29435524344444275,
-0.2766018509864807,
0.27280303835868835,
0.06224510446190834,
-0.02742832712829113,
-0.32976579666137695,
-0.22479182481765747,
-0.0615261048078537,
0.1578478068113327,
-0.45023372769355774,
-0.008066977374255657,
-0.07858876138925552,
-0.04406239837408066,
0.015674782916903496,
-0.1983691155910492,
0.468058705329895,
-0.13986629247665405,
0.3715135157108307,
0.15211017429828644,
-0.05644489452242851,
0.02428073063492775,
-0.035076308995485306,
-0.025821713730692863,
0.31607475876808167,
-0.07577391713857651,
0.4437022805213928,
-0.043216217309236526,
-0.14356441795825958,
0.012427062727510929,
0.07587618380784988,
-0.4124038815498352,
-0.22774375975131989,
-0.06926340609788895,
0.12648940086364746,
0.11498851329088211,
-0.19965483248233795,
0.37874966859817505,
-0.05966891348361969,
-0.11806102097034454,
0.20503801107406616,
0.2202061414718628,
-0.10780326277017593,
0.08489421755075455,
0.05878372862935066,
-0.1283050775527954,
-0.2801240384578705,
0.007198862265795469,
0.004551950376480818,
-0.12257226556539536,
0.03230629116296768,
0.5429108142852783,
-0.29121559858322144,
-0.23943060636520386,
-0.1506330370903015,
0.2842726707458496,
-0.18538600206375122,
0.008624505251646042,
0.1156836450099945,
-0.12421703338623047,
-0.1738392859697342,
-0.0819341391324997,
0.4243221879005432,
-0.0707869902253151,
-0.05404402315616608,
-0.13483376801013947,
-0.14710184931755066,
0.13696742057800293,
-0.20050624012947083,
0.20996643602848053,
-0.27495089173316956,
0.10143368691205978,
0.023629972711205482,
0.2915302813053131,
-0.4439958333969116,
0.12282159924507141,
0.028278470039367676,
0.17780020833015442,
-0.018176434561610222,
-0.062404923141002655,
0.021626397967338562,
-0.11042797565460205,
0.10797702521085739,
-0.12272960692644119,
-0.2240716964006424,
-0.2821010947227478,
-0.12861335277557373,
0.08718070387840271,
0.21679961681365967,
-0.09829121083021164,
0.28946128487586975,
-0.18141336739063263,
-0.25903022289276123,
-0.0796574205160141,
0.27269598841667175,
-0.10385174304246902,
0.04008913412690163,
0.023555466905236244,
0.5215922594070435,
-0.06353456526994705,
0.2113536298274994,
0.18824350833892822,
0.3548884391784668,
0.1207745373249054,
0.1915183812379837,
0.08078669756650925,
0.25346869230270386,
-0.0892505869269371,
-0.12875409424304962,
0.3614581227302551,
0.06712166965007782,
0.3614726662635803,
0.09842231124639511,
0.06685463339090347,
0.04165997356176376,
0.355124294757843,
0.27388614416122437,
-0.08252552896738052,
-0.007784367073327303,
0.01285657286643982,
0.20615792274475098,
0.2703346610069275,
-0.4512037932872772,
0.008187633007764816,
0.10764002054929733,
0.09545613080263138,
0.1759243905544281,
0.11750294268131256,
0.33125701546669006,
0.4307398796081543,
-0.22341251373291016,
0.11612673103809357,
0.09380049258470535,
-0.09992506355047226,
0.20124946534633636,
0.009847013279795647,
0.018998591229319572,
0.11086897552013397,
0.17900632321834564,
0.0791352242231369,
0.10577865689992905,
-0.1001971960067749,
-0.1811126470565796,
0.16599887609481812,
0.28695645928382874,
-0.16822238266468048,
0.22074614465236664,
-0.37571048736572266,
-0.02670375257730484,
0.5152190923690796,
0.4073399007320404,
0.22855882346630096,
-0.0850900262594223,
0.15734092891216278,
0.1210770308971405,
-0.033666983246803284,
0.08434843271970749,
-0.01813667081296444,
-0.029282456263899803,
-0.016293136402964592,
0.4008813500404358,
-0.24167433381080627,
-0.38859835267066956,
-0.006731129251420498,
-0.17278139293193817,
-0.3297218382358551,
-0.07397580146789551,
0.07635181397199631,
0.07976878434419632,
-0.3823193311691284,
0.13557389378547668,
0.07606562227010727,
-0.014450021088123322,
-0.10724926739931107,
0.22975319623947144,
0.08302607387304306,
-0.05122514069080353,
0.21221892535686493,
0.08011744916439056,
-0.03746715188026428,
0.08518407493829727,
-0.1067231222987175,
0.1989654302597046,
-0.007591344881802797,
-0.017430521547794342,
-0.36554285883903503,
0.11988640576601028,
0.06017107143998146,
0.10834392160177231,
0.20093485713005066,
0.15862874686717987,
-0.2674553692340851,
0.050679754465818405,
0.00671795941889286,
-0.07560348510742188,
-0.20698495209217072,
0.4589693546295166,
0.08824841678142548,
-0.20437803864479065,
-0.14098690450191498,
0.12643824517726898,
-0.4311349391937256,
-0.22032105922698975,
0.7046809196472168,
-0.3813633620738983,
0.03679031878709793,
-0.11783728003501892,
0.12201438099145889,
-0.1921442151069641,
0.33214956521987915,
0.6509483456611633,
0.03835050389170647,
-0.11298752576112747,
-0.09896169602870941,
-0.5288535952568054,
0.08395633101463318,
-0.13067182898521423,
0.3303052484989166,
-0.2055211216211319,
0.4203823208808899,
0.4353751540184021,
0.12980738282203674,
-0.05571390688419342,
0.08651623129844666,
-0.2963830828666687,
-0.005964355077594519,
-0.4423341155052185,
0.04309472069144249,
-0.0972343385219574,
0.4771198034286499,
0.022044720128178596,
-0.03079749085009098,
-0.042935989797115326,
0.1832573413848877,
0.07249528914690018,
-0.397987425327301,
0.02132328599691391,
0.1321706771850586,
0.0940716415643692,
0.1826554387807846,
-0.07583945244550705,
0.20215052366256714,
-0.07177842408418655,
-0.2632475197315216,
-0.4402868449687958,
-0.2622804641723633,
-0.1788100004196167,
0.03946639969944954,
-0.16955271363258362,
0.2703263461589813,
-0.32590022683143616,
-0.20246189832687378,
0.012568038888275623,
0.047435563057661057,
-0.17538754642009735,
-0.07610739767551422,
-0.27661824226379395,
0.06721773743629456,
-0.0704907476902008,
-0.028448745608329773,
0.05275610461831093,
0.22119760513305664,
0.12446953356266022,
-0.16553647816181183,
-0.07210907340049744,
-0.06426721066236496,
0.1269425004720688,
-0.08918119966983795,
-0.3931095600128174,
-0.11202327907085419,
0.030262619256973267,
0.0496615394949913,
-0.09798194468021393,
-0.5905725359916687,
0.10672172904014587,
0.3350082039833069,
0.05829455703496933,
0.04444574937224388,
0.32724496722221375,
0.12262719869613647,
0.019976133480668068,
-0.19190208613872528,
0.09634589403867722,
-0.09840600937604904,
-0.1776351034641266,
-0.27272719144821167,
-0.22489920258522034
] |
https://github.com/huggingface/datasets/issues/1675 | Add the 800GB Pile dataset? | Hi folks, thanks to some awesome work by @lhoestq and @albertvillanova you can now stream the Pile as follows:
```python
# Install master branch of `datasets`
pip install git+https://github.com/huggingface/datasets.git#egg=datasets[streaming]
pip install zstandard
from datasets import load_dataset
dset = load_dataset("json", data_files="https://the-eye.eu/public/AI/pile/train/00.jsonl.zst", streaming=True, split="train")
next(iter(dset))
# {'meta': {'pile_set_name': 'Pile-CC'},
# 'text': 'It is done, and submitted. You can play “Survival of the Tastiest” on Android, and on the web ... '}
```
Next step is to add the Pile as a "canonical" dataset that can be streamed without specifying the file names explicitly :) | ## Adding a Dataset
- **Name:** The Pile
- **Description:** The Pile is a 825 GiB diverse, open source language modelling data set that consists of 22 smaller, high-quality datasets combined together. See [here](https://twitter.com/nabla_theta/status/1345130408170541056?s=20) for the Twitter announcement
- **Paper:** https://pile.eleuther.ai/paper.pdf
- **Data:** https://pile.eleuther.ai/
- **Motivation:** Enables hardcore (GPT-3 scale!) language modelling
## Remarks
Given the extreme size of this dataset, I'm not sure how feasible this will be to include in `datasets` 🤯 . I'm also unsure how many `datasets` users are pretraining LMs, so the usage of this dataset may not warrant the effort to integrate it.
| 92 | Add the 800GB Pile dataset?
## Adding a Dataset
- **Name:** The Pile
- **Description:** The Pile is a 825 GiB diverse, open source language modelling data set that consists of 22 smaller, high-quality datasets combined together. See [here](https://twitter.com/nabla_theta/status/1345130408170541056?s=20) for the Twitter announcement
- **Paper:** https://pile.eleuther.ai/paper.pdf
- **Data:** https://pile.eleuther.ai/
- **Motivation:** Enables hardcore (GPT-3 scale!) language modelling
## Remarks
Given the extreme size of this dataset, I'm not sure how feasible this will be to include in `datasets` 🤯 . I'm also unsure how many `datasets` users are pretraining LMs, so the usage of this dataset may not warrant the effort to integrate it.
Hi folks, thanks to some awesome work by @lhoestq and @albertvillanova you can now stream the Pile as follows:
```python
# Install master branch of `datasets`
pip install git+https://github.com/huggingface/datasets.git#egg=datasets[streaming]
pip install zstandard
from datasets import load_dataset
dset = load_dataset("json", data_files="https://the-eye.eu/public/AI/pile/train/00.jsonl.zst", streaming=True, split="train")
next(iter(dset))
# {'meta': {'pile_set_name': 'Pile-CC'},
# 'text': 'It is done, and submitted. You can play “Survival of the Tastiest” on Android, and on the web ... '}
```
Next step is to add the Pile as a "canonical" dataset that can be streamed without specifying the file names explicitly :) | [
-0.32235708832740784,
-0.04369297996163368,
-0.14693976938724518,
0.041198279708623886,
0.20533113181591034,
0.056798793375492096,
0.11991959810256958,
0.26331451535224915,
-0.04956879839301109,
0.1010039895772934,
-0.25348079204559326,
0.14151686429977417,
-0.4532608091831207,
0.19550782442092896,
0.15720903873443604,
0.014724855311214924,
-0.09145692735910416,
-0.05147939547896385,
0.03609403967857361,
-0.02753092348575592,
0.14783714711666107,
-0.060896940529346466,
0.13290782272815704,
-0.3931408226490021,
0.12038999050855637,
0.05740407854318619,
-0.1081213727593422,
0.036422859877347946,
-0.3161754310131073,
-0.2588159441947937,
-0.268027126789093,
0.08630393445491791,
0.33485421538352966,
0.5441967248916626,
-0.00010110247239936143,
-0.12119299173355103,
0.20587271451950073,
-0.301603227853775,
-0.35172611474990845,
-0.29130297899246216,
0.09039721637964249,
-0.24203220009803772,
-0.3066554665565491,
-0.13035091757774353,
-0.19663842022418976,
-0.20780783891677856,
0.1834149956703186,
-0.344266414642334,
0.2845200300216675,
0.3415374159812927,
0.2460385113954544,
0.1315053254365921,
-0.030451463535428047,
0.04255690798163414,
0.31564030051231384,
-0.0613366961479187,
-0.14091500639915466,
0.28796666860580444,
0.43845975399017334,
0.13122577965259552,
-0.06950395554304123,
0.3906656503677368,
0.2101587951183319,
-0.06909844279289246,
0.08791907876729965,
-0.10288099199533463,
0.06033020466566086,
-0.203792542219162,
-0.09023407101631165,
0.4779415428638458,
0.22589519619941711,
-0.31072285771369934,
-0.44184213876724243,
-0.2665180265903473,
-0.04852492734789848,
-0.5264928936958313,
-0.26748713850975037,
0.4536268711090088,
-0.1578509658575058,
0.22630971670150757,
0.010686411522328854,
-0.1838749498128891,
-0.13747838139533997,
0.20252645015716553,
0.03516032174229622,
0.29585903882980347,
-0.05016686022281647,
-0.1749761700630188,
0.015317635610699654,
-0.07113718241453171,
-0.2022266387939453,
0.004631389863789082,
-0.04531508684158325,
0.08508360385894775,
-0.4025753438472748,
-0.24815991520881653,
0.3415241539478302,
0.1628439873456955,
0.33110976219177246,
-0.10669383406639099,
0.21551275253295898,
0.14761677384376526,
0.07078170031309128,
-0.0287209190428257,
0.4503536820411682,
0.032055165618658066,
-0.20499011874198914,
-0.3580886423587799,
0.23925164341926575,
0.2649255096912384,
0.016271067783236504,
0.016631312668323517,
-0.07517454028129578,
0.040168553590774536,
-0.13653907179832458,
-0.0610717236995697,
-0.05029934644699097,
-0.0035036851186305285,
-0.00867755152285099,
-0.07724962383508682,
0.0323537178337574,
0.026596898213028908,
-0.04997776076197624,
0.15622232854366302,
-0.04960034415125847,
0.37940940260887146,
-0.02185116708278656,
0.20792804658412933,
0.0882694199681282,
-0.43636375665664673,
-0.17960235476493835,
0.07894880324602127,
-0.3663027286529541,
-0.10882700234651566,
0.16387596726417542,
-0.16430377960205078,
0.17024902999401093,
-0.2545805275440216,
0.3023360073566437,
0.2581273019313812,
0.17643895745277405,
-0.01981210708618164,
0.051374517381191254,
0.03771784156560898,
0.19776126742362976,
-0.2589659094810486,
0.0989609807729721,
-0.11918918788433075,
-0.3118188977241516,
0.07597090303897858,
0.030774125829339027,
-0.21655720472335815,
-0.2595750689506531,
0.26300787925720215,
-0.21954379975795746,
0.11944170296192169,
-0.3392084538936615,
0.586297333240509,
0.010650228708982468,
0.1276051551103592,
-0.0754743292927742,
-0.052376240491867065,
0.0848473608493805,
-0.035788245499134064,
0.02916560508310795,
0.1398172229528427,
-0.5509951710700989,
-0.13123652338981628,
-0.5367798805236816,
0.14943331480026245,
0.0903179720044136,
0.1384190022945404,
-0.08741901814937592,
-0.04889903962612152,
-0.0450921431183815,
0.045368585735559464,
0.5971065759658813,
-0.039312899112701416,
-0.31972116231918335,
0.19446639716625214,
-0.21782739460468292,
0.08212229609489441,
0.15017589926719666,
0.1490410566329956,
0.3288455605506897,
-0.07668398320674896,
0.17076870799064636,
0.4196428060531616,
-0.08219116181135178,
0.03602419048547745,
-0.2637161314487457,
-0.44796222448349,
-0.06194504722952843,
0.4485095143318176,
-0.0011913104681298137,
-0.2839030921459198,
0.297622948884964,
0.1281042844057083,
0.39323434233665466,
-0.0307257492095232,
0.1780165582895279,
-0.020907338708639145,
0.37140965461730957,
0.21555659174919128,
-0.10400363802909851,
-0.24320419132709503,
-0.38832202553749084,
-0.0004522792296484113,
0.12566468119621277,
0.31752675771713257,
-0.057617299258708954,
-0.17686587572097778,
0.09959635883569717,
-0.08971567451953888,
-0.005420614965260029,
-0.008334582671523094,
0.28427618741989136,
0.2152753472328186,
-0.07201029360294342,
-0.20580632984638214,
-0.2596537470817566,
-0.019844554364681244,
-0.2136233001947403,
-0.19102180004119873,
-0.26056531071662903,
0.07330332696437836,
-0.21807122230529785,
-0.25375646352767944,
0.15475216507911682,
0.05118582770228386,
-0.3584303855895996,
-0.07314237207174301,
0.09834542125463486,
0.17177478969097137,
-0.15737353265285492,
0.05452408641576767,
0.25872090458869934,
0.6038360595703125,
0.24553245306015015,
-0.2508399486541748,
0.1503964364528656,
0.17967171967029572,
0.05971235781908035,
0.07673592120409012,
-0.32843291759490967,
0.2855475842952728,
0.2483709752559662,
0.05223172530531883,
0.24176688492298126,
-0.12379138171672821,
0.30732816457748413,
0.0731954276561737,
-0.2831403911113739,
-0.16691739857196808,
0.30486342310905457,
0.04511278495192528,
0.077181875705719,
-0.16124603152275085,
-0.40051764249801636,
0.2654215097427368,
0.4768965244293213,
0.11060947924852371,
0.15056245028972626,
0.3148941099643707,
-0.15220299363136292,
-0.2838578522205353,
0.005365096498280764,
-0.20785222947597504,
0.1680808663368225,
0.39049845933914185,
0.3401861786842346,
0.05011444538831711,
0.19043630361557007,
-0.16682562232017517,
0.09356658160686493,
-0.02669071964919567,
-0.17836351692676544,
0.3081231713294983,
0.49292683601379395,
-0.07848858833312988,
-0.399921178817749,
-0.2444515973329544,
-0.11034201085567474,
0.00619963463395834,
0.14269287884235382,
-0.013394087553024292,
0.011484399437904358,
-0.11192726343870163,
-0.018237052485346794,
-0.19146545231342316,
-0.12080361694097519,
-0.22235049307346344,
0.11705531924962997,
0.10166758298873901,
-0.26242414116859436,
0.026933593675494194,
-0.1841680109500885,
0.23507677018642426,
0.071147121489048,
0.06955813616514206,
0.039869584143161774,
-0.34716588258743286,
-0.03659769520163536,
0.2696186304092407,
0.171645388007164,
-0.15588977932929993,
0.28129637241363525,
-0.07418467849493027,
0.016682924702763557,
-0.07818146795034409,
-0.49897533655166626,
0.26680323481559753,
-0.09051085263490677,
0.2021903097629547,
0.12595726549625397,
0.2397971898317337,
0.1978950947523117,
-0.05528011545538902,
-0.07502877712249756,
-0.365187406539917,
-0.01185446698218584,
-0.059812407940626144,
0.03423810377717018,
0.09739777445793152,
-0.2828165292739868,
-0.39787596464157104,
-0.4410093426704407,
-0.5356466174125671,
0.2150578498840332,
0.1740148961544037,
0.1467036008834839,
0.06858086585998535,
0.1819940060377121,
0.22456122934818268,
0.161292165517807,
0.1206095889210701,
-0.1552395075559616,
-0.49500900506973267,
0.34990817308425903,
-0.15959131717681885,
-0.306262344121933,
-0.004966282285749912,
-0.014389926567673683,
-0.034536853432655334,
0.16364724934101105,
-0.4432416558265686,
-0.04706267639994621,
-0.016791094094514847,
0.08186443895101547,
0.018288956955075264,
0.10446295887231827,
0.11875251680612564,
0.02705554850399494,
-0.20584134757518768,
-0.0975429117679596,
0.17902137339115143,
0.02094610035419464,
0.4673111140727997,
0.37816357612609863,
-0.09892483800649643,
0.4266078472137451,
0.2625725269317627,
0.4059220552444458,
-0.03818256035447121,
-0.11384212970733643,
0.48300427198410034,
0.3469579815864563,
0.3760918974876404,
-0.14594759047031403,
0.060000188648700714,
0.2370051145553589,
0.0022868101950734854,
-0.076218381524086,
0.5582513809204102,
0.19732420146465302,
-0.40281474590301514,
-0.038202133029699326,
0.28501591086387634,
-0.09767449647188187,
-0.07637655735015869,
0.2500549554824829,
-0.052385296672582626,
-0.07209569215774536,
-0.0710296481847763,
-0.415625661611557,
-0.12835083901882172,
-0.2418670654296875,
-0.05142555758357048,
0.29941198229789734,
-0.042701587080955505,
0.17382574081420898,
-0.17765268683433533,
0.2880130708217621,
-0.3454490005970001,
0.06372741609811783,
-0.08499090373516083,
-0.04783252626657486,
-0.08854081481695175,
-0.31487005949020386,
-0.04835488274693489,
-0.17670726776123047,
0.3204275965690613,
-0.15173985064029694,
0.0316217765212059,
0.04506077989935875,
0.36396491527557373,
-0.09537822753190994,
0.025939004495739937,
-0.5017449259757996,
-0.24878250062465668,
0.5851410031318665,
0.309758722782135,
-0.4286113977432251,
0.10809410363435745,
-0.06996564567089081,
0.2849670350551605,
0.08971107006072998,
-0.02375362068414688,
-0.2865959107875824,
-0.3304405212402344,
-0.27124544978141785,
0.17598199844360352,
0.27707570791244507,
0.08791616559028625,
-0.06823497265577316,
0.11066325008869171,
0.15590059757232666,
0.08525624871253967,
0.20949776470661163,
0.03706758841872215,
0.08973226696252823,
0.20090164244174957,
-0.10011599212884903,
-0.15304182469844818,
0.2777678072452545,
0.13194823265075684,
0.492567241191864,
0.03072352707386017,
-0.25742053985595703,
0.13744235038757324,
-0.24975453317165375,
0.06395424902439117,
0.3131730854511261,
0.20767742395401,
0.005386972334235907,
-0.16232740879058838,
0.3597305119037628,
-0.030149783939123154,
0.5377066731452942,
-0.02591310627758503,
-0.005731708835810423,
-0.3113621771335602,
-0.38816192746162415,
0.269400417804718,
-0.1336197853088379,
0.13778585195541382,
0.2873786985874176,
-0.1377396583557129,
-0.4819788336753845,
0.3508130609989166,
0.10153354704380035,
1.157472014427185,
0.022503450512886047,
0.33825114369392395,
-0.06846245378255844,
-0.01875167153775692,
0.1488357037305832,
-0.5433732867240906,
0.10532926023006439,
-0.030575472861528397,
-0.16215069591999054,
0.012047323398292065,
0.04881235212087631,
-0.024111710488796234,
0.5330662131309509,
-0.31051769852638245,
0.237794890999794,
-0.02632029540836811,
-0.053115393966436386,
0.04889492690563202,
0.4132896661758423,
-0.13253572583198547,
-0.2765011787414551,
-0.4921763837337494,
0.3025735318660736,
-0.09547991305589676,
-0.10695267468690872,
-0.11779335886240005,
-0.3090372085571289,
-0.003909011837095022,
0.05070275813341141,
-0.3224796950817108,
0.16031154990196228,
-0.11827945709228516,
0.009211196564137936,
-0.24972651898860931,
-0.24396680295467377,
0.059625573456287384,
-0.012451205402612686,
0.01235193107277155,
0.22815203666687012,
-0.017015904188156128,
0.14120817184448242,
0.12102766335010529,
-0.009968090802431107,
0.2040768712759018,
0.02256186120212078,
0.1858532875776291,
-0.11747929453849792,
-0.20160715281963348,
0.21293872594833374,
0.20234312117099762,
-0.32567155361175537,
-0.11885462701320648,
-0.11527346819639206,
0.1606312394142151,
0.34378886222839355,
-0.13969838619232178,
0.15348102152347565,
-0.306319922208786,
-0.10263961553573608,
0.20624934136867523,
0.044941239058971405,
-0.25395676493644714,
-0.004174111410975456,
0.06369996070861816,
-0.08734185248613358,
-0.2450273036956787,
0.18109942972660065,
-0.015019895508885384,
0.09910857677459717,
0.120145782828331,
0.5236205458641052,
-0.208677276968956,
-0.3327823877334595,
-0.18038058280944824,
-0.0764840841293335,
-0.011857937090098858,
0.016510682180523872,
0.0068747056648135185,
-0.2667149603366852,
-0.07841813564300537,
0.11400163173675537,
0.2360067218542099,
0.12397733330726624,
-0.09090002626180649,
-0.13762624561786652,
-0.238546684384346,
0.09864626079797745,
0.18604318797588348,
0.2600180506706238,
-0.19468383491039276,
-0.07572010159492493,
0.051556296646595,
0.06708316504955292,
-0.4871874749660492,
-0.01379619911313057,
-0.054776303470134735,
0.19944730401039124,
-0.05572294071316719,
-0.15161462128162384,
0.22965151071548462,
-0.03277699276804924,
0.2004779428243637,
-0.10239031910896301,
-0.318490594625473,
-0.34309545159339905,
-0.0756848156452179,
0.07063781470060349,
0.2455821931362152,
-0.07926173508167267,
0.049038417637348175,
-0.08997147530317307,
-0.20215164124965668,
-0.0873928815126419,
0.2722053527832031,
-0.06952384114265442,
0.12856417894363403,
-0.013423211872577667,
0.2994031608104706,
0.03495258465409279,
0.2877042591571808,
0.005435128230601549,
0.16296590864658356,
0.1627284437417984,
0.18014465272426605,
0.06086708605289459,
0.34143128991127014,
-0.09239927679300308,
-0.10420867055654526,
0.17431682348251343,
0.1463615745306015,
0.3186541795730591,
0.17993949353694916,
0.039004746824502945,
-0.04860804229974747,
0.20512655377388,
0.3666824996471405,
0.177592471241951,
-0.11288464069366455,
-0.17742414772510529,
0.2098621279001236,
0.3532807528972626,
-0.41567569971084595,
-0.053853075951337814,
-0.038775380700826645,
0.009060652926564217,
0.31168004870414734,
0.06253223866224289,
0.026114385575056076,
0.21020637452602386,
-0.2683262825012207,
0.1273120790719986,
0.2595110535621643,
-0.0007232525385916233,
0.28290072083473206,
0.07193956524133682,
0.04047757759690285,
0.08947976678609848,
-0.043746039271354675,
0.06705068051815033,
0.2175390124320984,
-0.021305158734321594,
-0.18622592091560364,
0.22454360127449036,
0.07996111363172531,
-0.23854532837867737,
0.030330859124660492,
-0.14073534309864044,
-0.1264445185661316,
0.44980645179748535,
0.09822706878185272,
0.547855019569397,
0.015965189784765244,
0.11711489409208298,
0.14562053978443146,
-0.09172843396663666,
-0.13694988191127777,
0.060319934040308,
0.1622687131166458,
-0.1530495434999466,
0.16429725289344788,
-0.20152845978736877,
-0.2752503454685211,
0.18496328592300415,
0.04023625701665878,
-0.08748993277549744,
-0.18998125195503235,
0.19819669425487518,
0.15187455713748932,
-0.3833712339401245,
-0.14643296599388123,
0.10750406235456467,
0.1457352191209793,
-0.21049955487251282,
0.23894977569580078,
0.4500499665737152,
0.02001543715596199,
-0.005679105408489704,
-0.09010425209999084,
0.05183812603354454,
0.1532122939825058,
-0.14517094194889069,
0.2344292402267456,
0.028901025652885437,
-0.0984184518456459,
-0.3744083642959595,
0.06038745865225792,
0.12924958765506744,
0.051380597054958344,
0.23844197392463684,
0.25434184074401855,
-0.3856629431247711,
0.23792921006679535,
0.039752472192049026,
-0.21223662793636322,
-0.07483284175395966,
0.304633229970932,
0.08317065238952637,
-0.055188581347465515,
-0.24446602165699005,
-0.009974890388548374,
-0.77045077085495,
-0.04145137220621109,
0.4132132828235626,
-0.2534710168838501,
0.07857488095760345,
-0.2475298047065735,
0.15189099311828613,
-0.11631637066602707,
0.47994565963745117,
0.3843396008014679,
0.0263272263109684,
0.0351228341460228,
-0.1932331919670105,
-0.5093250870704651,
0.07833797484636307,
-0.15507665276527405,
0.16276225447654724,
-0.2799513339996338,
0.4626986086368561,
0.23527544736862183,
0.24861659109592438,
-0.23233920335769653,
0.2263731062412262,
-0.33802318572998047,
0.12565460801124573,
-0.38799184560775757,
-0.014448687434196472,
-0.07283864170312881,
0.5229435563087463,
0.10072091966867447,
-0.22183158993721008,
-0.047730278223752975,
-0.07422786206007004,
0.23764251172542572,
-0.28417760133743286,
0.052126482129096985,
-0.027314666658639908,
0.08852395415306091,
0.22400477528572083,
-0.22031626105308533,
0.05395928770303726,
-0.20765727758407593,
-0.4573858380317688,
-0.3317123353481293,
-0.028223754838109016,
-0.30180734395980835,
0.05169936642050743,
-0.10377459973096848,
0.40447109937667847,
-0.15790334343910217,
-0.0006498610018752515,
-0.07949339598417282,
0.10150892287492752,
-0.05910535156726837,
-0.24134257435798645,
-0.08027292042970657,
-0.11763080209493637,
0.05694891884922981,
0.1257922649383545,
-0.12275268137454987,
0.25472596287727356,
-0.07473962754011154,
-0.12362224608659744,
-0.12237057089805603,
-0.32110679149627686,
0.3737631142139435,
-0.24862919747829437,
-0.3403841555118561,
-0.09650842845439911,
0.04051324352622032,
0.07726902514696121,
0.07724689692258835,
-0.5529173612594604,
0.32581827044487,
0.20287346839904785,
0.06717044860124588,
-0.1410714089870453,
0.35785117745399475,
0.03239531069993973,
-0.05761095508933067,
-0.1391894817352295,
0.10532664507627487,
0.11424174159765244,
-0.1572895497083664,
-0.25158634781837463,
-0.3276931941509247
] |
https://github.com/huggingface/datasets/issues/1675 | Add the 800GB Pile dataset? | > Hi folks! Just wanted to follow up on this -- would be really nice to get the Pile on HF Datasets... unclear if it would be easy to also add partitions of the Pile subject to the original 22 datasets used, but that would be nice too!
Hi @siddk thanks to a tip from @richarddwang it seems we can access some of the partitions that EleutherAI created for the Pile [here](https://the-eye.eu/public/AI/pile_preliminary_components/). What's missing are links to the preprocessed versions of pre-existing datasets like DeepMind Mathematics and OpenSubtitles, but worst case we do the processing ourselves and host these components on the Hub.
My current idea is that we could provide 23 configs: one for each of the 22 datasets and an `all` config that links to the train / dev / test splits that EleutherAI released [here](https://the-eye.eu/public/AI/pile/), e.g.
```python
from datasets import load_dataset
# Load a single component
youtube_subtitles = load_dataset("the_pile", "youtube_subtitles")
# Load the train / dev / test splits of the whole corpus
dset = load_dataset("the_pile", "all")
```
Ideally we'd like everything to be compatible with the streaming API and there's ongoing work by @albertvillanova to make this happen for the various compression algorithms.
cc @lhoestq | ## Adding a Dataset
- **Name:** The Pile
- **Description:** The Pile is a 825 GiB diverse, open source language modelling data set that consists of 22 smaller, high-quality datasets combined together. See [here](https://twitter.com/nabla_theta/status/1345130408170541056?s=20) for the Twitter announcement
- **Paper:** https://pile.eleuther.ai/paper.pdf
- **Data:** https://pile.eleuther.ai/
- **Motivation:** Enables hardcore (GPT-3 scale!) language modelling
## Remarks
Given the extreme size of this dataset, I'm not sure how feasible this will be to include in `datasets` 🤯 . I'm also unsure how many `datasets` users are pretraining LMs, so the usage of this dataset may not warrant the effort to integrate it.
| 199 | Add the 800GB Pile dataset?
## Adding a Dataset
- **Name:** The Pile
- **Description:** The Pile is a 825 GiB diverse, open source language modelling data set that consists of 22 smaller, high-quality datasets combined together. See [here](https://twitter.com/nabla_theta/status/1345130408170541056?s=20) for the Twitter announcement
- **Paper:** https://pile.eleuther.ai/paper.pdf
- **Data:** https://pile.eleuther.ai/
- **Motivation:** Enables hardcore (GPT-3 scale!) language modelling
## Remarks
Given the extreme size of this dataset, I'm not sure how feasible this will be to include in `datasets` 🤯 . I'm also unsure how many `datasets` users are pretraining LMs, so the usage of this dataset may not warrant the effort to integrate it.
> Hi folks! Just wanted to follow up on this -- would be really nice to get the Pile on HF Datasets... unclear if it would be easy to also add partitions of the Pile subject to the original 22 datasets used, but that would be nice too!
Hi @siddk thanks to a tip from @richarddwang it seems we can access some of the partitions that EleutherAI created for the Pile [here](https://the-eye.eu/public/AI/pile_preliminary_components/). What's missing are links to the preprocessed versions of pre-existing datasets like DeepMind Mathematics and OpenSubtitles, but worst case we do the processing ourselves and host these components on the Hub.
My current idea is that we could provide 23 configs: one for each of the 22 datasets and an `all` config that links to the train / dev / test splits that EleutherAI released [here](https://the-eye.eu/public/AI/pile/), e.g.
```python
from datasets import load_dataset
# Load a single component
youtube_subtitles = load_dataset("the_pile", "youtube_subtitles")
# Load the train / dev / test splits of the whole corpus
dset = load_dataset("the_pile", "all")
```
Ideally we'd like everything to be compatible with the streaming API and there's ongoing work by @albertvillanova to make this happen for the various compression algorithms.
cc @lhoestq | [
-0.22825706005096436,
0.1881413757801056,
-0.06500183790922165,
0.12541228532791138,
0.012601650319993496,
0.258663147687912,
0.3119369447231293,
0.33223140239715576,
0.13761365413665771,
0.02713296003639698,
-0.4386690855026245,
0.0903870090842247,
-0.4766182005405426,
0.37805280089378357,
0.284097820520401,
-0.13748382031917572,
-0.05871839076280594,
-0.250131219625473,
-0.0747232586145401,
-0.17960426211357117,
0.06733815371990204,
-0.1525622010231018,
0.03138222172856331,
-0.3628997206687927,
-0.31104782223701477,
0.0765463188290596,
-0.3312488794326782,
0.09869002550840378,
-0.15489262342453003,
-0.14286497235298157,
-0.08686790615320206,
0.24830400943756104,
0.42040205001831055,
0.6430608034133911,
-0.00010673238284653053,
-0.12992438673973083,
-0.008342831395566463,
-0.28329625725746155,
-0.25891512632369995,
-0.10792861878871918,
0.012994779273867607,
-0.24748355150222778,
-0.368361234664917,
-0.04558488726615906,
-0.13914312422275543,
-0.12705431878566742,
0.18647022545337677,
-0.3560495674610138,
0.0931272879242897,
0.18748381733894348,
0.15145426988601685,
0.10443437099456787,
-0.027065174654126167,
-0.04754035547375679,
0.42561060190200806,
0.11312518268823624,
-0.08170074224472046,
0.3710247278213501,
0.36019858717918396,
-0.03857045620679855,
-0.19784539937973022,
0.4168074429035187,
0.453483521938324,
-0.22063767910003662,
0.17784781754016876,
0.037086211144924164,
-0.05588632449507713,
-0.31946179270744324,
-0.20852313935756683,
0.3520064651966095,
0.18608900904655457,
-0.22810117900371552,
-0.5114620327949524,
-0.3907689154148102,
-0.06908304244279861,
-0.274343878030777,
-0.2978229820728302,
0.45595648884773254,
-0.043400879949331284,
0.27981331944465637,
0.16035589575767517,
-0.30453652143478394,
-0.2127908319234848,
0.2923324406147003,
0.10321391373872757,
0.3265904486179352,
0.07325199991464615,
-0.0842011570930481,
0.11509568989276886,
0.042542122304439545,
-0.018690939992666245,
-0.0760522335767746,
0.04991520568728447,
0.1292005181312561,
-0.27617523074150085,
-0.271682471036911,
0.3116219639778137,
0.23787584900856018,
0.3485051095485687,
-0.2937188744544983,
-0.06906694173812866,
0.15737907588481903,
-0.11045907437801361,
-0.06586532294750214,
0.571624219417572,
0.05318938568234444,
-0.37699154019355774,
-0.10462398082017899,
0.24887791275978088,
0.19030368328094482,
0.06616973131895065,
0.1693437397480011,
-0.1435926854610443,
-0.021048778668045998,
-0.28162288665771484,
-0.12464379519224167,
-0.09982126951217651,
0.052964549511671066,
0.04269672557711601,
-0.12872286140918732,
0.0037251184694468975,
-0.1155981570482254,
0.05692035332322121,
0.129207581281662,
-0.07931419461965561,
0.32557860016822815,
-0.02711624652147293,
0.3327140510082245,
0.05859046056866646,
-0.3411458134651184,
-0.15967218577861786,
0.25076737999916077,
-0.4392526149749756,
-0.015934579074382782,
0.2574295997619629,
-0.2227129340171814,
-0.015415572561323643,
-0.056561753153800964,
0.37499192357063293,
0.2365034818649292,
0.18270960450172424,
0.03346100449562073,
0.08212380111217499,
0.02658342570066452,
0.20380854606628418,
-0.21238861978054047,
0.09974575787782669,
-0.009568270295858383,
-0.3655010163784027,
0.05550244450569153,
-0.09039070457220078,
-0.38469627499580383,
-0.2294015884399414,
0.15502463281154633,
-0.16465239226818085,
0.043730176985263824,
-0.5862869620323181,
0.578960657119751,
-0.11710890382528305,
0.36049026250839233,
-0.00009395442612003535,
-0.08417362719774246,
0.1785384565591812,
0.015673499554395676,
0.09604399651288986,
0.30121684074401855,
-0.6603956818580627,
-0.09253468364477158,
-0.5667020678520203,
0.1003711149096489,
-0.018637357279658318,
0.2854995131492615,
-0.14119085669517517,
0.0862475037574768,
-0.19196422398090363,
-0.017719538882374763,
0.550135612487793,
0.05868834629654884,
-0.17990556359291077,
0.23262551426887512,
0.06636319309473038,
0.11499294638633728,
0.04437238723039627,
0.25017136335372925,
0.21860988438129425,
-0.1673348993062973,
0.2972688674926758,
0.4012945294380188,
-0.1819021850824356,
-0.08034027367830276,
-0.24138453602790833,
-0.3239441514015198,
-0.1327838897705078,
0.5722842216491699,
0.3206011950969696,
-0.2686690092086792,
0.20411404967308044,
0.12437252700328827,
0.3394376337528229,
-0.08482526242733002,
0.2756648063659668,
-0.17743422091007233,
0.33957400918006897,
0.24430368840694427,
0.019286304712295532,
-0.15852081775665283,
-0.37235119938850403,
0.18656200170516968,
-0.08387833088636398,
0.46946027874946594,
0.09424013644456863,
-0.22876816987991333,
0.060103174299001694,
-0.10539460927248001,
0.014334546402096748,
-0.05987265706062317,
0.13795138895511627,
-0.030385414138436317,
-0.08539491146802902,
-0.29685309529304504,
-0.3704720139503479,
0.09206036478281021,
-0.16190814971923828,
-0.06885959208011627,
-0.2895302474498749,
0.30396339297294617,
-0.282283753156662,
-0.13484697043895721,
-0.06685112416744232,
0.24328480660915375,
-0.38994964957237244,
-0.1626826375722885,
0.16217942535877228,
0.06920650601387024,
-0.1194823682308197,
-0.12313191592693329,
0.245061993598938,
0.6768255829811096,
0.36652669310569763,
-0.34805828332901,
0.40012410283088684,
-0.1731019765138626,
-0.11207246035337448,
-0.05356023460626602,
-0.0680568516254425,
0.38499242067337036,
0.07891467213630676,
0.118193119764328,
0.16230711340904236,
-0.05909242480993271,
0.023969219997525215,
0.19128529727458954,
-0.09038694202899933,
-0.2839312255382538,
0.16188587248325348,
0.09319750219583511,
0.17469576001167297,
-0.11448828876018524,
-0.26319292187690735,
0.23899132013320923,
0.2992624044418335,
0.144016295671463,
0.07415211945772171,
0.31392571330070496,
-0.20242121815681458,
-0.27559009194374084,
0.022680221125483513,
-0.2584846317768097,
0.17074142396450043,
0.33570119738578796,
0.34219494462013245,
0.24550160765647888,
0.090813547372818,
-0.08977626264095306,
0.026435522362589836,
0.17777229845523834,
-0.06335390359163284,
0.08653108775615692,
0.28977838158607483,
0.01806103065609932,
-0.11325322091579437,
-0.38761600852012634,
0.001084224320948124,
0.03498226776719093,
-0.09048836678266525,
-0.0753132551908493,
0.04850645735859871,
-0.11419785767793655,
-0.016643501818180084,
-0.1363120973110199,
-0.23346960544586182,
-0.23003295063972473,
0.19646325707435608,
-0.1077946200966835,
-0.30013561248779297,
0.15161220729351044,
-0.12137886881828308,
0.29161345958709717,
-0.11801597476005554,
0.1591349095106125,
0.09065823256969452,
-0.3925728499889374,
-0.030238866806030273,
0.1686825305223465,
0.4147639572620392,
-0.174088716506958,
0.15426331758499146,
-0.04538365453481674,
-0.1625930666923523,
-0.1450776904821396,
-0.5141839385032654,
0.2893904745578766,
-0.2778077721595764,
0.3317549228668213,
0.10515321046113968,
0.028910638764500618,
0.1600421816110611,
-0.12311431020498276,
-0.06834865361452103,
0.0452122800052166,
0.0994686707854271,
-0.2118147909641266,
-0.052610211074352264,
0.10331814736127853,
-0.0715307965874672,
-0.37497007846832275,
-0.4768831431865692,
-0.44205912947654724,
0.2274211347103119,
0.10493326187133789,
0.1688857227563858,
-0.032990437000989914,
0.151701420545578,
0.2041810303926468,
0.28575432300567627,
-0.06604224443435669,
-0.18923284113407135,
-0.3686845898628235,
0.3979456126689911,
-0.19615168869495392,
-0.19664932787418365,
0.038489919155836105,
-0.26321059465408325,
-0.13128657639026642,
0.1356366127729416,
-0.5101801753044128,
0.029519354924559593,
0.012000931426882744,
0.16272315382957458,
0.013329945504665375,
0.19638581573963165,
0.11558480560779572,
-0.058515116572380066,
-0.05577870458364487,
-0.034795522689819336,
-0.0180799700319767,
0.15050503611564636,
0.46232327818870544,
0.2625657320022583,
-0.16894157230854034,
0.35104694962501526,
0.2542748749256134,
0.7276121377944946,
0.003083667950704694,
-0.055993858724832535,
0.40641555190086365,
0.4397129416465759,
0.3380453288555145,
-0.1789110004901886,
0.003928323742002249,
0.3281744122505188,
0.01870032027363777,
-0.14759555459022522,
0.5176522731781006,
0.14888928830623627,
-0.4262509346008301,
0.00269836257211864,
0.12420282512903214,
0.09830844402313232,
-0.20254403352737427,
0.34853091835975647,
-0.2985156178474426,
0.02000323124229908,
-0.031200207769870758,
-0.5389331579208374,
-0.22158674895763397,
-0.19537964463233948,
0.0884976014494896,
0.31201615929603577,
0.10957419872283936,
0.10188447684049606,
-0.07638745754957199,
0.2693145275115967,
-0.1887984275817871,
0.15802660584449768,
-0.043700460344552994,
-0.13289226591587067,
-0.04662271961569786,
-0.25098955631256104,
0.010763334110379219,
0.12534813582897186,
0.46813568472862244,
-0.39418870210647583,
-0.12353083491325378,
0.1212867870926857,
0.3260887861251831,
-0.1276852786540985,
-0.03554334491491318,
-0.529452383518219,
-0.40045425295829773,
0.5900311470031738,
0.34328562021255493,
-0.33081376552581787,
-0.03616275265812874,
0.21743226051330566,
0.1503804475069046,
0.027911540120840073,
-0.11883547157049179,
-0.03957833722233772,
-0.18053171038627625,
-0.1694410890340805,
0.16930119693279266,
0.37058892846107483,
-0.04055227339267731,
-0.04703955352306366,
0.14419054985046387,
0.09308674186468124,
0.025358296930789948,
0.29500484466552734,
-0.05409463867545128,
-0.01595607027411461,
0.32710760831832886,
0.05998099595308304,
-0.2474496215581894,
0.38729262351989746,
0.3461897671222687,
0.47497648000717163,
-0.1169208362698555,
-0.0905514508485794,
0.3398267328739166,
-0.2036011964082718,
0.23062032461166382,
0.3679639995098114,
0.24846500158309937,
-0.08864029496908188,
-0.2434787154197693,
0.12120087444782257,
-0.18807409703731537,
0.5451247096061707,
-0.09404753148555756,
-0.02608155645430088,
-0.5294874310493469,
-0.3803675174713135,
0.36448168754577637,
-0.09921584278345108,
0.035473961383104324,
0.1674584597349167,
0.2813962399959564,
-0.48297253251075745,
0.6364092230796814,
-0.016857150942087173,
1.1025235652923584,
-0.06529199331998825,
0.3537803888320923,
-0.12948545813560486,
0.0039828624576330185,
0.22024646401405334,
-0.5112821459770203,
-0.02536441572010517,
-0.045827120542526245,
-0.20036917924880981,
0.025134464725852013,
-0.057581208646297455,
-0.15982913970947266,
0.5191500186920166,
-0.12035775184631348,
0.24861371517181396,
-0.14800666272640228,
-0.2651326358318329,
0.02020387537777424,
0.47002938389778137,
-0.10562966018915176,
-0.3854224383831024,
-0.35971373319625854,
0.22706542909145355,
0.009806526824831963,
0.019385358318686485,
-0.23365014791488647,
-0.2644321620464325,
-0.12413299828767776,
0.16911961138248444,
-0.4793204367160797,
0.08963283151388168,
-0.15762630105018616,
0.024813858792185783,
-0.20186305046081543,
-0.21023854613304138,
0.42352402210235596,
-0.08730928599834442,
0.3523706793785095,
0.12159203737974167,
-0.08078929781913757,
0.1512177288532257,
0.04514177888631821,
-0.052739791572093964,
0.37164703011512756,
-0.03908897936344147,
0.5940964221954346,
-0.008321749046444893,
-0.23172973096370697,
0.076967753469944,
0.14276954531669617,
-0.32307755947113037,
-0.19066326320171356,
-0.19756773114204407,
0.2555916905403137,
0.13904044032096863,
-0.16892680525779724,
0.3088468015193939,
-0.18139544129371643,
-0.06801705807447433,
0.16180893778800964,
0.13357150554656982,
-0.20176632702350616,
0.05901790037751198,
0.018970413133502007,
-0.13007785379886627,
-0.2557785212993622,
0.018355553969740868,
0.05826927348971367,
-0.1565389484167099,
0.10219817608594894,
0.5984767079353333,
-0.19407637417316437,
-0.17689207196235657,
-0.09953063726425171,
0.2809193730354309,
-0.201494500041008,
-0.09902581572532654,
-0.021741148084402084,
-0.14949488639831543,
-0.22898398339748383,
-0.1485709249973297,
0.45025497674942017,
0.13291770219802856,
-0.03096931427717209,
-0.1021902859210968,
-0.26355504989624023,
0.21079511940479279,
-0.023498253896832466,
0.3028501272201538,
-0.36496448516845703,
0.0653633400797844,
0.022770168259739876,
0.2464582622051239,
-0.4010451138019562,
0.1114063411951065,
0.006320959888398647,
0.1552126109600067,
-0.11509861052036285,
-0.06584102660417557,
0.1508650928735733,
-0.09217885881662369,
0.08762440830469131,
-0.19462181627750397,
-0.2820923626422882,
-0.21902675926685333,
-0.2060975581407547,
0.10833887755870819,
0.2033398449420929,
-0.12528741359710693,
0.13123220205307007,
-0.0882527083158493,
-0.2762528359889984,
-0.15119418501853943,
0.343183696269989,
-0.01814444735646248,
0.10128357261419296,
-0.0046776277013123035,
0.5204722285270691,
-0.0797797366976738,
0.11385829001665115,
0.09790109843015671,
0.36650794744491577,
0.20869968831539154,
0.29443076252937317,
0.10233308374881744,
0.20335610210895538,
-0.13384820520877838,
-0.13995620608329773,
0.3338397443294525,
0.10926561057567596,
0.38918784260749817,
0.15124458074569702,
0.0868343859910965,
-0.0023407654371112585,
0.2002907246351242,
0.3097851872444153,
-0.02763867937028408,
-0.017640044912695885,
-0.048152197152376175,
0.2271762490272522,
0.22723300755023956,
-0.3550765812397003,
0.17561164498329163,
-0.007131492253392935,
0.014355909079313278,
0.2544666826725006,
0.22761152684688568,
0.26201218366622925,
0.5055458545684814,
-0.26093634963035583,
0.1652662754058838,
-0.009064373560249805,
-0.01920069195330143,
0.3018047511577606,
-0.026137083768844604,
-0.07824905961751938,
0.13752225041389465,
-0.0037861561868339777,
0.0797760933637619,
0.15332333743572235,
-0.16078664362430573,
-0.2781434953212738,
0.14631050825119019,
0.09511582553386688,
-0.21835015714168549,
0.2714686095714569,
-0.2726348042488098,
-0.20619218051433563,
0.4248824119567871,
0.2532888948917389,
0.29783692955970764,
-0.21120399236679077,
0.11444197595119476,
0.07314122468233109,
-0.034391533583402634,
0.07724825292825699,
-0.009638185612857342,
0.04823876917362213,
-0.05748310312628746,
0.27255144715309143,
-0.18695615231990814,
-0.5308093428611755,
0.021112695336341858,
-0.1288435012102127,
-0.3781488239765167,
-0.17396028339862823,
0.2517410218715668,
0.044892359524965286,
-0.1875324845314026,
0.02950090914964676,
0.1320829540491104,
0.13648435473442078,
-0.08298104256391525,
0.2108621448278427,
0.1295991986989975,
-0.09003592282533646,
0.08255209028720856,
-0.01780438981950283,
-0.0014582358999177814,
0.05152902752161026,
-0.29877448081970215,
0.3172312378883362,
0.1981983631849289,
-0.014783921651542187,
-0.2029743194580078,
-0.037841569632291794,
0.09553750604391098,
0.14783476293087006,
0.19824062287807465,
0.12612685561180115,
-0.2556396424770355,
-0.16411614418029785,
-0.05587190017104149,
-0.026169640943408012,
-0.11423087120056152,
0.631218433380127,
0.1253981590270996,
-0.14345747232437134,
-0.1313253790140152,
0.07200562208890915,
-0.6766439080238342,
-0.2525227665901184,
0.65050208568573,
-0.308134526014328,
0.06409786641597748,
-0.10453761368989944,
0.08190417289733887,
-0.21839766204357147,
0.4375665783882141,
0.5349729061126709,
-0.08083704859018326,
-0.17562521994113922,
-0.03391600400209427,
-0.4111698567867279,
0.04267071932554245,
-0.06508472561836243,
0.1337040662765503,
-0.20175395905971527,
0.4288889169692993,
0.32761305570602417,
0.16509021818637848,
-0.1294506937265396,
0.013897093012928963,
-0.27665290236473083,
0.11417175829410553,
-0.3966597616672516,
0.028650104999542236,
-0.1805899739265442,
0.529539942741394,
0.06430571526288986,
-0.09551291167736053,
-0.14990845322608948,
0.12891609966754913,
-0.018542475998401642,
-0.21230223774909973,
-0.03726150467991829,
0.19276636838912964,
-0.06300876289606094,
0.2179371863603592,
-0.15683910250663757,
0.31549423933029175,
-0.07346990704536438,
-0.2787453532218933,
-0.5120809674263,
-0.3022727370262146,
-0.17704787850379944,
0.023835621774196625,
-0.2438126802444458,
0.3752901554107666,
-0.2595463991165161,
-0.25804704427719116,
-0.09952373802661896,
0.05776594579219818,
-0.12488004565238953,
-0.2029436230659485,
-0.1791108399629593,
-0.010774657130241394,
-0.025950217619538307,
0.1387140452861786,
0.17481403052806854,
0.2442116141319275,
0.00987856462597847,
-0.047894712537527084,
-0.13465136289596558,
-0.21200276911258698,
0.30393409729003906,
-0.05884576588869095,
-0.3372974395751953,
-0.1390295773744583,
0.10603571683168411,
0.02178841456770897,
0.05122281610965729,
-0.6042739152908325,
0.19636844098567963,
0.2461274415254593,
0.007362013217061758,
-0.12450587749481201,
0.28544583916664124,
0.05073817819356918,
0.0038656466640532017,
-0.18122196197509766,
-0.02813897840678692,
-0.11320196837186813,
-0.15980002284049988,
-0.36352986097335815,
-0.33300140500068665
] |
https://github.com/huggingface/datasets/issues/1675 | Add the 800GB Pile dataset? | Ah I just saw that @lhoestq is already thinking about the specifying of one or more subsets in [this PR](https://github.com/huggingface/datasets/pull/2817#issuecomment-901874049) :) | ## Adding a Dataset
- **Name:** The Pile
- **Description:** The Pile is a 825 GiB diverse, open source language modelling data set that consists of 22 smaller, high-quality datasets combined together. See [here](https://twitter.com/nabla_theta/status/1345130408170541056?s=20) for the Twitter announcement
- **Paper:** https://pile.eleuther.ai/paper.pdf
- **Data:** https://pile.eleuther.ai/
- **Motivation:** Enables hardcore (GPT-3 scale!) language modelling
## Remarks
Given the extreme size of this dataset, I'm not sure how feasible this will be to include in `datasets` 🤯 . I'm also unsure how many `datasets` users are pretraining LMs, so the usage of this dataset may not warrant the effort to integrate it.
| 21 | Add the 800GB Pile dataset?
## Adding a Dataset
- **Name:** The Pile
- **Description:** The Pile is a 825 GiB diverse, open source language modelling data set that consists of 22 smaller, high-quality datasets combined together. See [here](https://twitter.com/nabla_theta/status/1345130408170541056?s=20) for the Twitter announcement
- **Paper:** https://pile.eleuther.ai/paper.pdf
- **Data:** https://pile.eleuther.ai/
- **Motivation:** Enables hardcore (GPT-3 scale!) language modelling
## Remarks
Given the extreme size of this dataset, I'm not sure how feasible this will be to include in `datasets` 🤯 . I'm also unsure how many `datasets` users are pretraining LMs, so the usage of this dataset may not warrant the effort to integrate it.
Ah I just saw that @lhoestq is already thinking about the specifying of one or more subsets in [this PR](https://github.com/huggingface/datasets/pull/2817#issuecomment-901874049) :) | [
-0.31402507424354553,
0.15608790516853333,
-0.15775591135025024,
0.18204884231090546,
-0.027711741626262665,
0.2084933966398239,
0.15764108300209045,
0.19064508378505707,
0.012680108658969402,
-0.046363722532987595,
-0.1654876470565796,
0.19022008776664734,
-0.4964600205421448,
0.2447127252817154,
0.22647231817245483,
-0.036290571093559265,
-0.02398550510406494,
-0.1179167702794075,
-0.08870910108089447,
-0.024425122886896133,
-0.019585303962230682,
-0.04176557809114456,
0.014450113289058208,
-0.40731289982795715,
-0.16705739498138428,
-0.06016095355153084,
-0.1501530557870865,
0.010431651026010513,
-0.36335664987564087,
-0.20030491054058075,
-0.2376425415277481,
0.12322342395782471,
0.39640873670578003,
0.5024117827415466,
-0.00010003993520513177,
-0.1629319190979004,
0.12929174304008484,
-0.19301730394363403,
-0.3620671033859253,
-0.2543429434299469,
-0.10965752601623535,
-0.3248431086540222,
-0.34222960472106934,
-0.03532726317644119,
-0.1831488311290741,
-0.1879444271326065,
0.13168209791183472,
-0.3572055399417877,
0.056639663875103,
0.2555432617664337,
0.26850518584251404,
0.2546108365058899,
0.01709684170782566,
-0.11626172810792923,
0.3399558663368225,
0.06313886493444443,
-0.16992907226085663,
0.25736144185066223,
0.3639289438724518,
0.17331762611865997,
-0.08723653107881546,
0.42228686809539795,
0.4526144564151764,
-0.20003949105739594,
0.2584465444087982,
0.017695829272270203,
-0.065839022397995,
-0.1251063197851181,
-0.19474434852600098,
0.3474352955818176,
0.3824140727519989,
-0.1905805468559265,
-0.528847336769104,
-0.4103042483329773,
-0.0564831905066967,
-0.4034164845943451,
-0.24250657856464386,
0.3445226550102234,
0.057530347257852554,
0.33282405138015747,
0.023351280018687248,
-0.2500683069229126,
-0.06920254230499268,
0.19120647013187408,
0.027133354917168617,
0.3145008087158203,
-0.10067913681268692,
-0.156893789768219,
0.12023056298494339,
0.007530842442065477,
-0.15771345794200897,
0.01211854163557291,
-0.03870934247970581,
-0.00014131938223727047,
-0.32942965626716614,
-0.21546214818954468,
0.39811521768569946,
0.3535759150981903,
0.48549211025238037,
-0.1341157704591751,
0.0018772496841847897,
0.019345911219716072,
-0.07719015330076218,
-0.0032305894419550896,
0.5196983218193054,
0.024914197623729706,
-0.2072119116783142,
-0.27589938044548035,
0.26869192719459534,
0.06380944699048996,
0.1761343628168106,
0.0868702232837677,
-0.04715795814990997,
-0.0809493288397789,
-0.1676565408706665,
-0.17735986411571503,
-0.05078577995300293,
0.12723465263843536,
-0.06323476880788803,
-0.04462428763508797,
0.2358296513557434,
-0.10354802012443542,
-0.005090177524834871,
0.055821195244789124,
0.04385712742805481,
0.1919284611940384,
0.010402599349617958,
0.2573392391204834,
0.14595246315002441,
-0.48945239186286926,
-0.206329807639122,
0.18373025953769684,
-0.45276257395744324,
-0.06918753683567047,
0.10317830741405487,
-0.13751570880413055,
0.07831443101167679,
-0.1020733118057251,
0.23452602326869965,
0.22925256192684174,
0.1346585601568222,
0.03063405305147171,
0.137171670794487,
-0.0269553791731596,
-0.07390380650758743,
-0.2033778727054596,
0.056888334453105927,
0.08508918434381485,
-0.31389516592025757,
0.13170811533927917,
0.016372231766581535,
-0.21961535513401031,
-0.33828651905059814,
0.22841551899909973,
-0.2176370620727539,
0.02643398381769657,
-0.41541555523872375,
0.7231202125549316,
-0.0329928956925869,
0.25633853673934937,
0.07510196417570114,
-0.053359318524599075,
0.03569731116294861,
0.008269715122878551,
0.0736956000328064,
0.18633131682872772,
-0.5746176838874817,
-0.13194695115089417,
-0.5834828615188599,
0.048326171934604645,
-0.10228767991065979,
0.2690888047218323,
-0.19631175696849823,
0.137786865234375,
-0.14801940321922302,
0.05860566720366478,
0.5879366993904114,
0.16881582140922546,
-0.150553360581398,
0.14208590984344482,
-0.10994967818260193,
0.009616094641387463,
-0.010381355881690979,
0.15007787942886353,
0.1274716556072235,
-0.05120162293314934,
0.26158615946769714,
0.39009150862693787,
-0.13899309933185577,
-0.113864965736866,
-0.26230841875076294,
-0.3779905140399933,
0.06759567558765411,
0.391039103269577,
0.10702700167894363,
-0.2736820578575134,
0.21864935755729675,
0.05015343800187111,
0.16683970391750336,
-0.012343411333858967,
0.1976037621498108,
-0.12489119172096252,
0.2841334939002991,
0.11683277785778046,
-0.01773323118686676,
-0.3275248110294342,
-0.4190084636211395,
0.048347242176532745,
0.04199595004320145,
0.38212382793426514,
0.07282384485006332,
-0.20309461653232574,
0.05894464999437332,
0.005783812142908573,
0.13328611850738525,
-0.12049038708209991,
0.2177649289369583,
0.048501741141080856,
-0.030140820890665054,
-0.2270909994840622,
-0.3296847641468048,
-0.0630917027592659,
-0.08922253549098969,
-0.0877661481499672,
-0.29583388566970825,
0.006074033211916685,
-0.1867307722568512,
-0.14113493263721466,
0.02707313932478428,
0.2707059979438782,
-0.4790116846561432,
-0.18370017409324646,
0.2493361532688141,
0.08596082031726837,
-0.13021069765090942,
-0.18620511889457703,
0.24591472744941711,
0.6053516864776611,
0.26420506834983826,
-0.12098406255245209,
0.20401300489902496,
-0.20066864788532257,
-0.04229831323027611,
0.02182534709572792,
-0.18404363095760345,
0.4000038802623749,
0.24467256665229797,
-0.0618102066218853,
0.1006869450211525,
-0.10204195231199265,
0.13294854760169983,
0.05542409047484398,
-0.07845556735992432,
-0.2822152078151703,
0.25811466574668884,
0.1021336242556572,
0.22489647567272186,
0.023644132539629936,
-0.3749104142189026,
0.11698822677135468,
0.27653929591178894,
0.1346699744462967,
0.23712241649627686,
0.26387470960617065,
-0.17296719551086426,
-0.2526940405368805,
-0.004354895558208227,
-0.2683979868888855,
0.27638480067253113,
0.43039751052856445,
0.27114367485046387,
0.06451375037431717,
0.18417029082775116,
-0.14742925763130188,
0.031766392290592194,
0.08132459223270416,
-0.04476344585418701,
0.16892489790916443,
0.4021558165550232,
0.03537245839834213,
-0.30779850482940674,
-0.22236749529838562,
-0.08007829636335373,
0.09177345037460327,
0.07413264364004135,
-0.044929999858140945,
0.04487699642777443,
-0.09523092955350876,
0.054797183722257614,
0.030001332983374596,
-0.23472222685813904,
-0.19940480589866638,
0.18586476147174835,
-0.15036408603191376,
-0.3074032664299011,
0.04676706716418266,
-0.12917447090148926,
0.5056383609771729,
-0.08634813874959946,
0.18587008118629456,
0.0908081978559494,
-0.28644612431526184,
-0.07110805064439774,
0.2793169617652893,
0.27155232429504395,
-0.2613442540168762,
0.4053995609283447,
0.0030314004980027676,
0.09791861474514008,
-0.204982727766037,
-0.5722048282623291,
0.2662447392940521,
-0.15637773275375366,
0.3840334713459015,
0.23166875541210175,
0.0047280797734856606,
0.14518924057483673,
-0.03719116002321243,
-0.12772750854492188,
-0.126414492726326,
-0.03221750631928444,
-0.28407686948776245,
-0.006053917109966278,
0.07040420174598694,
-0.26155173778533936,
-0.3562019169330597,
-0.3958790600299835,
-0.5152435302734375,
0.33405348658561707,
0.0680236741900444,
0.03180721402168274,
-0.0009963320335373282,
0.09404755383729935,
0.31642046570777893,
-0.05803917720913887,
-0.012133300304412842,
-0.14714786410331726,
-0.29303014278411865,
0.3443104326725006,
-0.11529151350259781,
-0.2608081102371216,
-0.03801814839243889,
-0.2216435670852661,
-0.050754666328430176,
0.1041102483868599,
-0.48493918776512146,
0.05809108167886734,
-0.09005317091941833,
0.26856285333633423,
0.039625413715839386,
0.1388693004846573,
0.14413075149059296,
-0.11444737017154694,
-0.22158710658550262,
-0.11445725709199905,
-0.016323750838637352,
0.14494769275188446,
0.3994908034801483,
0.3285676836967468,
-0.15401090681552887,
0.24895432591438293,
0.22080548107624054,
0.4202840030193329,
-0.028278209269046783,
-0.23356662690639496,
0.42587152123451233,
0.35001450777053833,
0.40117785334587097,
-0.18070684373378754,
-0.019154498353600502,
0.2930108904838562,
0.07572335004806519,
-0.0897008627653122,
0.6187445521354675,
0.2041490226984024,
-0.29725977778434753,
0.03420497849583626,
0.064778633415699,
0.04057666286826134,
-0.10803180187940598,
0.3248303234577179,
-0.12175709754228592,
0.04952876642346382,
-0.06468941271305084,
-0.6107584834098816,
-0.23541973531246185,
-0.13495437800884247,
-0.04418237507343292,
0.32291513681411743,
0.09536775946617126,
0.05750473961234093,
-0.2516893446445465,
0.3593750596046448,
-0.31181517243385315,
0.11456584185361862,
-0.0885082259774208,
0.01565331034362316,
-0.10864522308111191,
-0.287296861410141,
-0.13819172978401184,
0.06269495189189911,
0.4251103699207306,
-0.3361884653568268,
-0.29404571652412415,
0.015960559248924255,
0.311252623796463,
-0.11582205444574356,
0.04311562329530716,
-0.39334747195243835,
-0.19393135607242584,
0.5661792159080505,
0.46737611293792725,
-0.3769965171813965,
0.06188898906111717,
0.19338814914226532,
0.2966936528682709,
0.14952771365642548,
-0.2640250027179718,
-0.13401834666728973,
-0.22975002229213715,
-0.18490220606327057,
0.14487974345684052,
0.39404770731925964,
0.0007443428039550781,
0.10378362238407135,
0.13927388191223145,
0.11360620707273483,
0.02149019204080105,
0.24780215322971344,
-0.012332229875028133,
-0.0011996433604508638,
0.25684410333633423,
-0.11220820993185043,
-0.1529707908630371,
0.35427671670913696,
0.21002787351608276,
0.398237407207489,
-0.15964268147945404,
-0.2744932770729065,
0.191780686378479,
-0.3813210427761078,
0.30325812101364136,
0.21078474819660187,
0.14935432374477386,
0.14319969713687897,
-0.2164645493030548,
0.1274140477180481,
-0.13603346049785614,
0.4089276194572449,
-0.07265614718198776,
0.06832313537597656,
-0.4745436906814575,
-0.3134117126464844,
0.32729166746139526,
-0.03284797817468643,
0.07083210349082947,
0.2631415128707886,
-0.02447349764406681,
-0.468136727809906,
0.35630565881729126,
-0.04877600446343422,
0.972084105014801,
-0.031538404524326324,
0.3297254741191864,
-0.15562210977077484,
0.1254194974899292,
0.4065476059913635,
-0.3534587025642395,
0.005282591097056866,
0.06059839949011803,
-0.18136802315711975,
0.05502111837267876,
-0.05464943125844002,
0.04906688258051872,
0.5103424787521362,
-0.18105477094650269,
0.051750507205724716,
-0.1288798749446869,
-0.13125239312648773,
0.0034577285405248404,
0.4824603199958801,
-0.036995891481637955,
-0.25979533791542053,
-0.3652406930923462,
0.2879696190357208,
0.0420825220644474,
-0.10934998095035553,
-0.25546491146087646,
-0.2379550337791443,
-0.1509443074464798,
0.08356466144323349,
-0.44331714510917664,
-0.08079776912927628,
-0.16397377848625183,
0.007720267865806818,
0.036482058465480804,
-0.21031460165977478,
0.4322669208049774,
-0.012837668880820274,
0.25192055106163025,
0.16709841787815094,
-0.11279137432575226,
0.01766916923224926,
-0.11122746765613556,
-0.018626822158694267,
0.27360567450523376,
-0.08214667439460754,
0.38782989978790283,
-0.040439900010824203,
-0.06241042912006378,
0.09686250239610672,
0.1057487353682518,
-0.3731236755847931,
-0.1521080881357193,
-0.025292066857218742,
0.07445359230041504,
0.10056579858064651,
-0.25791409611701965,
0.28989169001579285,
-0.12301664799451828,
-0.17129874229431152,
0.22890157997608185,
0.23832283914089203,
-0.07252386957406998,
0.005979085806757212,
0.06274539977312088,
-0.16646169126033783,
-0.26309913396835327,
0.029556486755609512,
-0.01581956073641777,
-0.08539583534002304,
0.025769425556063652,
0.5174468755722046,
-0.24133609235286713,
-0.3063100576400757,
-0.1214732900261879,
0.21761862933635712,
-0.15518945455551147,
0.09932306408882141,
0.17838121950626373,
-0.18084430694580078,
-0.1649969071149826,
0.00310856313444674,
0.3988018333911896,
-0.003767838003113866,
0.012264171615242958,
-0.09020015597343445,
-0.1694747656583786,
0.14090187847614288,
-0.0748109370470047,
0.23218239843845367,
-0.23947757482528687,
0.058378372341394424,
0.06534906476736069,
0.19962532818317413,
-0.47905871272087097,
-0.017210818827152252,
-0.10310672223567963,
0.19408273696899414,
0.025796549394726753,
-0.11579924076795578,
0.0800538882613182,
-0.049821436405181885,
0.14452622830867767,
-0.13686220347881317,
-0.27446651458740234,
-0.336131751537323,
-0.12247162312269211,
0.060224100947380066,
0.2010565847158432,
-0.05057649314403534,
0.2600131034851074,
-0.07517208158969879,
-0.280540406703949,
-0.1175418347120285,
0.2650119662284851,
-0.1448342353105545,
0.039071224629879,
-0.006452491506934166,
0.3172580599784851,
-0.0623280294239521,
0.25918763875961304,
0.02497667819261551,
0.21092835068702698,
0.10001109540462494,
0.21514374017715454,
0.10836029797792435,
0.3262653350830078,
-0.06707031279802322,
-0.09640077501535416,
0.31503063440322876,
0.09212341904640198,
0.3351786434650421,
-0.010292666032910347,
0.09199682623147964,
-0.029538266360759735,
0.38191431760787964,
0.2798183858394623,
-0.0355537086725235,
-0.12999854981899261,
0.008470764383673668,
0.1586238443851471,
0.33440595865249634,
-0.4310395419597626,
0.034215427935123444,
0.09247862547636032,
0.052894964814186096,
0.2981906533241272,
0.15847954154014587,
0.29503777623176575,
0.41879498958587646,
-0.2616935968399048,
0.03627711907029152,
0.12861812114715576,
-0.07247839868068695,
0.2660202383995056,
0.001015645801089704,
0.0877121314406395,
0.14281538128852844,
0.24578842520713806,
0.13642415404319763,
0.2143189013004303,
-0.09795678406953812,
-0.10445314645767212,
0.2325044870376587,
0.21938443183898926,
-0.08187180012464523,
0.18464601039886475,
-0.3057020604610443,
0.054161909967660904,
0.42322009801864624,
0.32852837443351746,
0.2546015679836273,
-0.05410023778676987,
0.16484801471233368,
0.11537499725818634,
0.04597392678260803,
0.038815874606370926,
0.02044675499200821,
-0.035590652376413345,
-0.10788674652576447,
0.271301805973053,
-0.2485499083995819,
-0.24815519154071808,
-0.03010241501033306,
-0.16086672246456146,
-0.2640419006347656,
-0.10024063289165497,
0.08026741445064545,
0.07519645988941193,
-0.413673996925354,
0.12681816518306732,
0.0742892250418663,
0.016286037862300873,
-0.2125294953584671,
0.26744207739830017,
0.09870287775993347,
-0.05692815035581589,
0.14315824210643768,
0.17052564024925232,
0.0042502605356276035,
0.13289913535118103,
-0.012746105901896954,
0.16446034610271454,
-0.11379268765449524,
0.01156923733651638,
-0.4354979395866394,
0.14488178491592407,
0.11398328840732574,
0.1660975217819214,
0.2559000551700592,
0.2096753716468811,
-0.3054898679256439,
0.11388657242059708,
0.010846974328160286,
-0.1492231786251068,
-0.26900428533554077,
0.3347727060317993,
0.02599209174513817,
-0.19212456047534943,
-0.2373901605606079,
0.18151801824569702,
-0.524701714515686,
-0.15595406293869019,
0.7176669239997864,
-0.36897337436676025,
0.029922423884272575,
-0.2293933629989624,
0.14651642739772797,
-0.1644468754529953,
0.43013888597488403,
0.572816014289856,
0.13414932787418365,
-0.04988221079111099,
-0.09743115305900574,
-0.48568570613861084,
0.08766619116067886,
-0.10415692627429962,
0.24734362959861755,
-0.1461431384086609,
0.38651326298713684,
0.3208930194377899,
0.24349243938922882,
-0.15502473711967468,
0.23207561671733856,
-0.3658115267753601,
-0.03339210897684097,
-0.4103182256221771,
0.016492346301674843,
-0.09336521476507187,
0.4397861957550049,
0.10920853912830353,
-0.011349380016326904,
-0.01038871705532074,
0.023889761418104172,
0.137114480137825,
-0.49127626419067383,
0.06741803139448166,
0.08806116133928299,
0.14176252484321594,
0.2719898819923401,
-0.037598494440317154,
0.20521561801433563,
-0.11541144549846649,
-0.26310184597969055,
-0.48121124505996704,
-0.12634879350662231,
-0.224243625998497,
0.10232725739479065,
-0.05590328574180603,
0.24492931365966797,
-0.3127646744251251,
-0.12228412926197052,
0.02590114064514637,
0.08655370026826859,
-0.11147642880678177,
-0.10901188850402832,
-0.1542750895023346,
-0.012651082128286362,
-0.05793175846338272,
-0.03762198984622955,
0.01503506675362587,
0.26032716035842896,
0.0042965104803442955,
-0.19166825711727142,
-0.016235703602433205,
-0.18273964524269104,
0.10518817603588104,
-0.21344994008541107,
-0.3895476460456848,
-0.11333901435136795,
0.01878390647470951,
0.09921320527791977,
-0.060174740850925446,
-0.6072434186935425,
0.13068938255310059,
0.3180983066558838,
0.10822857916355133,
-0.08029046654701233,
0.352481484413147,
0.09051836282014847,
-0.05781048536300659,
-0.16083399951457977,
0.16768401861190796,
-0.09851326793432236,
-0.13515149056911469,
-0.2600593566894531,
-0.28521502017974854
] |
https://github.com/huggingface/datasets/issues/1674 | dutch_social can't be loaded | Hi @koenvandenberge and @alighofrani95!
The datasets you're experiencing issues with were most likely added recently to the `datasets` library, meaning they have not been released yet. They will be released with the v2 of the library.
Meanwhile, you can still load the datasets using one of the techniques described in this issue: #1641
Let me know if this helps! | Hi all,
I'm trying to import the `dutch_social` dataset described [here](https://huggingface.co/datasets/dutch_social).
However, the code that should load the data doesn't seem to be working, in particular because the corresponding files can't be found at the provided links.
```
(base) Koens-MacBook-Pro:~ koenvandenberge$ python
Python 3.7.4 (default, Aug 13 2019, 15:17:50)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from datasets import load_dataset
dataset = load_dataset(
'dutch_social')
>>> dataset = load_dataset(
... 'dutch_social')
Traceback (most recent call last):
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dutch_social/dutch_social.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 278, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dutch_social/dutch_social.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 589, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 282, in prepare_module
combined_path, github_file_path, file_path
FileNotFoundError: Couldn't find file locally at dutch_social/dutch_social.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dutch_social/dutch_social.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dutch_social/dutch_social.py
``` | 59 | dutch_social can't be loaded
Hi all,
I'm trying to import the `dutch_social` dataset described [here](https://huggingface.co/datasets/dutch_social).
However, the code that should load the data doesn't seem to be working, in particular because the corresponding files can't be found at the provided links.
```
(base) Koens-MacBook-Pro:~ koenvandenberge$ python
Python 3.7.4 (default, Aug 13 2019, 15:17:50)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from datasets import load_dataset
dataset = load_dataset(
'dutch_social')
>>> dataset = load_dataset(
... 'dutch_social')
Traceback (most recent call last):
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dutch_social/dutch_social.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 278, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dutch_social/dutch_social.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 589, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 282, in prepare_module
combined_path, github_file_path, file_path
FileNotFoundError: Couldn't find file locally at dutch_social/dutch_social.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dutch_social/dutch_social.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dutch_social/dutch_social.py
```
Hi @koenvandenberge and @alighofrani95!
The datasets you're experiencing issues with were most likely added recently to the `datasets` library, meaning they have not been released yet. They will be released with the v2 of the library.
Meanwhile, you can still load the datasets using one of the techniques described in this issue: #1641
Let me know if this helps! | [
-0.144012913107872,
-0.12778671085834503,
-0.1560758501291275,
0.2933967113494873,
0.21679967641830444,
-0.1348889321088791,
-0.012057781219482422,
0.09374074637889862,
0.395803302526474,
-0.08629671484231949,
-0.2941347360610962,
-0.007835458032786846,
0.01967604272067547,
-0.04214680567383766,
0.13732215762138367,
0.11360087990760803,
0.22467605769634247,
0.09364863485097885,
0.1446138620376587,
-0.13795606791973114,
-0.25548166036605835,
0.40843018889427185,
0.036478932946920395,
0.11952512711286545,
0.05357573926448822,
0.24329081177711487,
-0.08378441631793976,
0.31918883323669434,
-0.06338761001825333,
-0.29486194252967834,
0.3469976782798767,
0.13545899093151093,
0.12170325964689255,
0.5947436690330505,
-0.0001220058838953264,
0.015369579195976257,
0.47937145829200745,
-0.09341710060834885,
-0.6241429448127747,
-0.4102129638195038,
0.020561583340168,
-0.2827775776386261,
0.06464221328496933,
-0.0720437541604042,
-0.06224922090768814,
-0.2690679132938385,
-0.010532907210290432,
-0.4744950234889984,
0.2986166179180145,
0.41659310460090637,
0.11147554218769073,
-0.010823716409504414,
0.07612273097038269,
-0.07465606182813644,
0.029588039964437485,
0.38348114490509033,
0.06954874843358994,
0.5175893902778625,
0.25598061084747314,
0.019176378846168518,
0.4757992923259735,
0.13931895792484283,
-0.163650244474411,
-0.18413014709949493,
0.16824986040592194,
-0.17723488807678223,
-0.08079429715871811,
-0.22218385338783264,
0.14762547612190247,
-0.07496412098407745,
0.4582820236682892,
-0.08868598192930222,
-0.26494210958480835,
-0.24246788024902344,
0.04612386226654053,
0.054762404412031174,
0.2765296697616577,
0.12221511453390121,
-0.3778547942638397,
0.29427963495254517,
-0.17582561075687408,
-0.22104893624782562,
-0.13486427068710327,
0.5424725413322449,
0.06686156988143921,
0.05457579717040062,
-0.19980286061763763,
0.09725575149059296,
0.24034126102924347,
-0.14091095328330994,
-0.002544845687225461,
-0.17237180471420288,
0.1879132091999054,
0.2741532623767853,
0.04766262695193291,
0.27516987919807434,
0.10913534462451935,
0.12290450930595398,
0.01246977224946022,
0.20886047184467316,
-0.008322962559759617,
0.061103444546461105,
-0.29340553283691406,
0.26610711216926575,
0.14516186714172363,
-0.06343095749616623,
0.16142086684703827,
-0.05786031857132912,
0.1387718915939331,
0.2737373411655426,
-0.2378363460302353,
-0.02203524112701416,
-0.5131170153617859,
-0.22617746889591217,
-0.4047650992870331,
-0.1627122014760971,
0.05269886925816536,
-0.18874867260456085,
-0.23927097022533417,
-0.053752534091472626,
0.23835620284080505,
0.11248598992824554,
0.15007087588310242,
0.42656490206718445,
-0.05683933198451996,
0.1309243142604828,
0.015759296715259552,
0.33482125401496887,
-0.0972028374671936,
0.16252434253692627,
0.004387699067592621,
0.011590494774281979,
-0.23950575292110443,
-0.1033061221241951,
0.3564891815185547,
-0.14042146503925323,
0.3913653492927551,
-0.01331330556422472,
0.019396480172872543,
-0.22625994682312012,
-0.06517532467842102,
-0.17231734097003937,
-0.020800169557332993,
0.4110073149204254,
-0.050402943044900894,
0.18488246202468872,
0.23012317717075348,
-0.38264432549476624,
-0.2856123149394989,
0.022011900320649147,
-0.4266524910926819,
-0.2579596936702728,
-0.13707993924617767,
0.08650407195091248,
-0.35764458775520325,
-0.04830684885382652,
-0.25187811255455017,
0.07208111137151718,
-0.2459041029214859,
-0.3608631491661072,
-0.1423637419939041,
-0.06262460350990295,
0.05692377686500549,
-0.16356609761714935,
0.40472573041915894,
0.6451686024665833,
-0.2595631182193756,
-0.13387033343315125,
-0.25193896889686584,
-0.09793069958686829,
0.11668004095554352,
0.15492980182170868,
-0.27746954560279846,
0.10031317174434662,
-0.4217946529388428,
-0.1295696645975113,
0.5071359872817993,
-0.3881826400756836,
-0.10349564254283905,
0.04326896741986275,
0.04420674964785576,
0.4348088502883911,
0.06771764159202576,
-0.0021923440508544445,
-0.22362881898880005,
0.09360767900943756,
0.11779487133026123,
0.36546093225479126,
0.29586732387542725,
-0.31511643528938293,
-0.04360321909189224,
-0.0880887508392334,
0.21524007618427277,
0.43583351373672485,
-0.07890266925096512,
-0.06527939438819885,
0.3209885358810425,
-0.017973963171243668,
0.06766877323389053,
-0.04433107003569603,
-0.11221826076507568,
0.3995005488395691,
-0.10023527592420578,
0.6040774583816528,
-0.12015610188245773,
0.057932622730731964,
-0.16157925128936768,
0.16202746331691742,
0.36290404200553894,
-0.0949903056025505,
-0.21313980221748352,
0.014591562561690807,
-0.591405987739563,
0.10863830149173737,
-0.24409402906894684,
-0.07960305362939835,
0.04424091428518295,
0.33855223655700684,
0.20978382229804993,
0.4188050925731659,
-0.1303364783525467,
0.5874924063682556,
-0.18200470507144928,
-0.00044482669909484684,
-0.13684161007404327,
0.33761560916900635,
-0.07734067738056183,
0.006913068704307079,
-0.025882922112941742,
0.4640442430973053,
0.19163300096988678,
-0.07536376267671585,
0.13066041469573975,
0.17758218944072723,
0.27570977807044983,
0.14317385852336884,
0.3152179718017578,
-0.14597146213054657,
0.013373720459640026,
-0.18512850999832153,
0.02644469402730465,
0.2751171588897705,
0.16683025658130646,
-0.08805670589208603,
-0.2502497434616089,
0.15575943887233734,
-0.0062823169864714146,
0.2842068672180176,
0.14522899687290192,
0.003231319598853588,
0.291583776473999,
-0.023569749668240547,
-0.04595818370580673,
-0.16006331145763397,
0.3323236107826233,
-0.17024342715740204,
0.5120026469230652,
-0.006220896728336811,
-0.2748086154460907,
0.15380223095417023,
0.01345242839306593,
-0.11309858411550522,
0.06631799787282944,
0.2667787969112396,
-0.16949054598808289,
0.18209797143936157,
0.1649414598941803,
0.2306361198425293,
0.5306183099746704,
0.1501770317554474,
0.058415040373802185,
-0.10424808412790298,
0.1984349638223648,
-0.22638867795467377,
0.19611245393753052,
0.07796403020620346,
0.3595772683620453,
0.10464750230312347,
0.13162389397621155,
0.12274237722158432,
-0.2572668194770813,
-0.5361443758010864,
-0.14957188069820404,
0.05220776051282883,
-0.29170680046081543,
0.321730375289917,
-0.1854947805404663,
-0.4013979732990265,
-0.31527456641197205,
-0.13558420538902283,
-0.24927487969398499,
-0.36319682002067566,
-0.18291546404361725,
0.13991713523864746,
0.03793739899992943,
-0.04919620603322983,
-0.11677524447441101,
0.171529620885849,
-0.21307136118412018,
-0.3847945034503937,
-0.32871878147125244,
-0.08700741082429886,
-0.04971536248922348,
-0.09377812594175339,
0.4112951457500458,
0.10011894255876541,
0.15648119151592255,
-0.49329760670661926,
0.12152867019176483,
0.09445704519748688,
-0.42397162318229675,
-0.14593911170959473,
-0.06582696735858917,
0.1950838565826416,
-0.08139224350452423,
0.3485628366470337,
-0.23511752486228943,
-0.3012833297252655,
0.3619760572910309,
-0.01966867223381996,
-0.07977602630853653,
0.14906640350818634,
0.20290254056453705,
-0.042097799479961395,
-0.1645147204399109,
-0.03642813116312027,
-0.8044572472572327,
-0.3288800120353699,
0.15707705914974213,
0.2175283581018448,
0.01541141141206026,
0.4426359534263611,
0.3873107433319092,
0.04523371160030365,
-0.03481026366353035,
0.13032692670822144,
-0.17641951143741608,
-0.3531501293182373,
0.6498785018920898,
-0.3994506895542145,
-0.28472667932510376,
0.11822298914194107,
0.23176801204681396,
0.2142132669687271,
-0.3526257574558258,
-0.48641860485076904,
0.08043493330478668,
0.0773070752620697,
0.28777241706848145,
-0.04483257979154587,
0.141671821475029,
-0.08675365895032883,
-0.06892808526754379,
-0.04603952914476395,
-0.13496163487434387,
-0.013584469445049763,
-0.11639115959405899,
-0.3259769082069397,
0.25629153847694397,
0.000641467806417495,
0.1128348857164383,
-0.20480835437774658,
0.5850797295570374,
0.18460670113563538,
0.12979072332382202,
0.3108215630054474,
-0.09639722108840942,
0.6860243082046509,
-0.10074694454669952,
-0.49535661935806274,
-0.01854618452489376,
-0.04261048510670662,
0.0646766796708107,
0.11252285540103912,
0.30213555693626404,
-0.17055058479309082,
-0.41086137294769287,
0.052665747702121735,
-0.60178542137146,
-0.0814373716711998,
0.11225660890340805,
-0.17888770997524261,
0.025728577747941017,
0.09259072691202164,
-0.18985889852046967,
-0.3393607437610626,
-0.16956253349781036,
0.005544830113649368,
0.5575088858604431,
-0.05012178793549538,
0.30141231417655945,
-0.5939538478851318,
-0.24900352954864502,
-0.15691114962100983,
0.19279058277606964,
-0.12748785316944122,
0.25575363636016846,
-0.3264310657978058,
0.08634655177593231,
0.1326003074645996,
-0.013539552688598633,
0.46682271361351013,
-0.007300904020667076,
-0.0018594254506751895,
0.2152351438999176,
0.21335932612419128,
-0.6372427940368652,
0.13661228120326996,
0.18528658151626587,
0.13880828022956848,
0.4634908139705658,
0.3116725981235504,
-0.18624719977378845,
-0.05331015959382057,
-0.052836090326309204,
0.39926043152809143,
-0.09941191971302032,
-0.1412382423877716,
-0.4389512836933136,
-0.5290257930755615,
-0.33301734924316406,
-0.3466005027294159,
0.04162897914648056,
0.3000888526439667,
-0.11271940171718597,
0.14799539744853973,
-0.03924671560525894,
0.08828035742044449,
0.1973964124917984,
0.2150367647409439,
0.3390178680419922,
0.202938973903656,
-0.1517690122127533,
0.21569311618804932,
0.20739148557186127,
0.18645815551280975,
0.8277198076248169,
-0.028064126148819923,
-0.47298794984817505,
-0.06765078753232956,
-0.16844476759433746,
0.2539024353027344,
0.2572767734527588,
-0.05255037173628807,
-0.2643868625164032,
0.08625269681215286,
-0.06164148077368736,
-0.10605178028345108,
0.2844639718532562,
-0.004286857787519693,
0.18147140741348267,
-0.1484195739030838,
-0.3832843005657196,
0.49445220828056335,
-0.052275367081165314,
-0.018716130405664444,
0.14876733720302582,
0.1603042632341385,
-0.14534272253513336,
0.2155505120754242,
-0.2960323691368103,
1.1821050643920898,
0.08365616202354431,
0.16198574006557465,
0.19228094816207886,
-0.14244523644447327,
0.34133386611938477,
-0.24917057156562805,
-0.06682747602462769,
-0.01653030514717102,
0.18411733210086823,
-0.00743667921051383,
-0.15055479109287262,
0.2806476354598999,
0.18582811951637268,
0.020497970283031464,
0.0036973953247070312,
-0.09629645198583603,
0.0299861840903759,
0.09892559796571732,
0.4379952847957611,
0.12777754664421082,
-0.018049774691462517,
-0.531926691532135,
0.1279686838388443,
-0.007052793633192778,
0.6483970284461975,
-0.05896406248211861,
-0.1501561850309372,
-0.6219803094863892,
0.04173445329070091,
-0.16975738108158112,
0.05595079064369202,
-0.17638444900512695,
0.30468761920928955,
-0.02427614852786064,
-0.4557031989097595,
-0.13109761476516724,
0.3823457956314087,
0.415837824344635,
0.06284830719232559,
-0.21002823114395142,
0.19425198435783386,
-0.0006206081015989184,
-0.23787455260753632,
0.14082656800746918,
-0.2639218270778656,
0.09897521883249283,
-0.16573521494865417,
-0.3407815992832184,
0.21492713689804077,
-0.053794827312231064,
-0.34722188115119934,
0.14091794192790985,
0.040133215487003326,
0.25642654299736023,
0.046548593789339066,
-0.4316747188568115,
0.06520144641399384,
0.2491726577281952,
-0.12109988927841187,
0.046564389020204544,
0.03291337937116623,
0.04708051308989525,
-0.20226219296455383,
-0.22350981831550598,
-0.078667551279068,
-0.09127867966890335,
0.45280155539512634,
-0.2509537637233734,
-0.17835606634616852,
0.3761714696884155,
0.13131074607372284,
-0.2986023724079132,
-0.09497164189815521,
0.17940860986709595,
-0.07178070396184921,
-0.49088579416275024,
-0.3483215868473053,
0.02586296945810318,
-0.03631654009222984,
-0.32218852639198303,
0.1668507307767868,
0.26644259691238403,
-0.268661767244339,
0.13787966966629028,
-0.7992357611656189,
-0.009050538763403893,
0.21488462388515472,
0.0030075383838266134,
0.024017678573727608,
0.149525448679924,
-0.1888759583234787,
0.17739173769950867,
-0.149282306432724,
-0.20867323875427246,
0.10378031432628632,
-0.20426246523857117,
-0.07088552415370941,
0.36451682448387146,
0.07976771891117096,
0.1445760428905487,
-0.2587433457374573,
0.03317764401435852,
-0.3906824588775635,
0.07116031646728516,
-0.13811390101909637,
-0.023248665034770966,
0.1677885502576828,
-0.030742058530449867,
-0.07363665848970413,
-0.18448849022388458,
-0.4234689772129059,
0.04950921609997749,
-0.09760311245918274,
-0.1504058539867401,
-0.0286711398512125,
0.05166298896074295,
-0.1411788910627365,
-0.09389808028936386,
0.3486449122428894,
-0.0014612922677770257,
0.21085165441036224,
0.06608052551746368,
0.5716889500617981,
0.036540597677230835,
0.025321051478385925,
0.10666032135486603,
0.010491221211850643,
-0.05285709723830223,
0.1187434047460556,
-0.12426485121250153,
0.1727951318025589,
0.37276801466941833,
-0.31967487931251526,
0.3249737024307251,
0.12096485495567322,
-0.003580347867682576,
0.5077819228172302,
-0.44136834144592285,
0.14628948271274567,
0.3029462695121765,
0.04758293181657791,
-0.28081920742988586,
-0.18597814440727234,
0.40094104409217834,
0.05550473555922508,
-0.06160265952348709,
0.28788307309150696,
0.2537674307823181,
-0.18906085193157196,
0.3890487253665924,
0.12931260466575623,
0.4627905786037445,
0.4501369893550873,
0.2029796838760376,
0.09399180114269257,
0.07953852415084839,
0.039334408938884735,
-0.07041053473949432,
0.3201724588871002,
-0.03206917643547058,
0.4540112614631653,
-0.26134932041168213,
0.10916915535926819,
0.042585600167512894,
0.17199309170246124,
-0.1905471384525299,
-0.22671547532081604,
0.1692727506160736,
-0.16528286039829254,
0.03991120681166649,
0.04554257169365883,
-0.16025668382644653,
0.41409268975257874,
-0.4061877727508545,
-0.11181599646806717,
0.019763395190238953,
0.2420540153980255,
0.0456828773021698,
-0.04843936488032341,
-0.22430095076560974,
-0.2722095847129822,
-0.13577476143836975,
-0.1845918595790863,
0.13575440645217896,
-0.5232680439949036,
0.2045874297618866,
0.1481914073228836,
-0.15736085176467896,
-0.2957589328289032,
-0.022704875096678734,
0.2689617872238159,
0.07167591154575348,
-0.11483670771121979,
0.32660362124443054,
0.21353939175605774,
0.06520364433526993,
0.11184805631637573,
0.2881097197532654,
0.4642573297023773,
0.2599305212497711,
-0.11090297251939774,
-0.005332000087946653,
-0.005477906670421362,
-0.15168729424476624,
-0.2587796449661255,
0.2607494592666626,
0.07047976553440094,
0.05745409429073334,
0.3448998034000397,
0.16660787165164948,
-0.09344500303268433,
-0.10949686914682388,
0.2727874517440796,
0.014625404961407185,
-0.17558227479457855,
0.15599672496318817,
-0.478434681892395,
-0.010587114840745926,
-0.30960944294929504,
0.04260561615228653,
-0.33616748452186584,
-0.011536414735019207,
0.21199756860733032,
0.024480290710926056,
0.1457008272409439,
-0.20482765138149261,
0.024099038913846016,
0.03940727934241295,
0.40860456228256226,
0.3885654807090759,
0.2942712903022766,
-0.26161468029022217,
-0.587248682975769,
-0.8084725141525269,
0.1373801976442337,
-0.20188994705677032,
-0.487253874540329,
0.03158647194504738,
-0.1072382852435112,
0.07699524611234665,
0.2530307173728943,
0.01596740260720253,
0.30990445613861084,
-0.08012846112251282,
-0.10848497599363327,
-0.2610020041465759,
-0.23170648515224457,
-0.25461238622665405,
0.09008113294839859,
-0.19034616649150848,
-0.14210955798625946,
0.19017894566059113,
-0.5949851870536804,
0.0008110312046483159,
0.1639486849308014,
-0.10576578974723816,
-0.20820678770542145,
-0.047876063734292984,
0.5655730366706848,
-0.1149524673819542,
0.2684365510940552,
0.0479271225631237,
-0.23052826523780823,
-0.11256543546915054,
-0.2521613538265228,
0.16323338449001312,
0.6077486276626587,
0.007039847318083048,
0.25515368580818176,
-0.4812214970588684,
0.01699041947722435,
-0.08850860595703125,
-0.026375431567430496,
0.2812677323818207,
-0.1549215465784073,
0.10704972594976425,
-0.07855717837810516,
-0.10624106973409653,
0.25990036129951477,
0.2936933934688568,
0.3048795461654663,
-0.2413357049226761,
0.17668916285037994,
-0.1652902215719223,
-0.1124802678823471,
0.32345446944236755,
-0.30523738265037537,
-0.2612438499927521,
0.17048074305057526,
0.1355915367603302,
0.08982481062412262,
0.17520219087600708,
-0.2406042516231537,
0.1892065703868866,
0.3313727080821991,
0.1525106132030487,
-0.19498689472675323,
0.27468499541282654,
-0.36220479011535645,
-0.16526080667972565,
-0.04521695524454117,
0.13301171362400055,
0.03234302997589111,
0.010824753902852535,
0.020680520683526993,
-0.025503193959593773
] |
https://github.com/huggingface/datasets/issues/1674 | dutch_social can't be loaded | I just did the release :)
To load it you can just update `datasets`
```
pip install --upgrade datasets
```
and then you can load `dutch_social` with
```python
from datasets import load_dataset
dataset = load_dataset("dutch_social")
``` | Hi all,
I'm trying to import the `dutch_social` dataset described [here](https://huggingface.co/datasets/dutch_social).
However, the code that should load the data doesn't seem to be working, in particular because the corresponding files can't be found at the provided links.
```
(base) Koens-MacBook-Pro:~ koenvandenberge$ python
Python 3.7.4 (default, Aug 13 2019, 15:17:50)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from datasets import load_dataset
dataset = load_dataset(
'dutch_social')
>>> dataset = load_dataset(
... 'dutch_social')
Traceback (most recent call last):
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dutch_social/dutch_social.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 278, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dutch_social/dutch_social.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 589, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 282, in prepare_module
combined_path, github_file_path, file_path
FileNotFoundError: Couldn't find file locally at dutch_social/dutch_social.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dutch_social/dutch_social.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dutch_social/dutch_social.py
``` | 36 | dutch_social can't be loaded
Hi all,
I'm trying to import the `dutch_social` dataset described [here](https://huggingface.co/datasets/dutch_social).
However, the code that should load the data doesn't seem to be working, in particular because the corresponding files can't be found at the provided links.
```
(base) Koens-MacBook-Pro:~ koenvandenberge$ python
Python 3.7.4 (default, Aug 13 2019, 15:17:50)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from datasets import load_dataset
dataset = load_dataset(
'dutch_social')
>>> dataset = load_dataset(
... 'dutch_social')
Traceback (most recent call last):
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dutch_social/dutch_social.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 278, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dutch_social/dutch_social.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 589, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 282, in prepare_module
combined_path, github_file_path, file_path
FileNotFoundError: Couldn't find file locally at dutch_social/dutch_social.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dutch_social/dutch_social.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dutch_social/dutch_social.py
```
I just did the release :)
To load it you can just update `datasets`
```
pip install --upgrade datasets
```
and then you can load `dutch_social` with
```python
from datasets import load_dataset
dataset = load_dataset("dutch_social")
``` | [
-0.144012913107872,
-0.12778671085834503,
-0.1560758501291275,
0.2933967113494873,
0.21679967641830444,
-0.1348889321088791,
-0.012057781219482422,
0.09374074637889862,
0.395803302526474,
-0.08629671484231949,
-0.2941347360610962,
-0.007835458032786846,
0.01967604272067547,
-0.04214680567383766,
0.13732215762138367,
0.11360087990760803,
0.22467605769634247,
0.09364863485097885,
0.1446138620376587,
-0.13795606791973114,
-0.25548166036605835,
0.40843018889427185,
0.036478932946920395,
0.11952512711286545,
0.05357573926448822,
0.24329081177711487,
-0.08378441631793976,
0.31918883323669434,
-0.06338761001825333,
-0.29486194252967834,
0.3469976782798767,
0.13545899093151093,
0.12170325964689255,
0.5947436690330505,
-0.0001220058838953264,
0.015369579195976257,
0.47937145829200745,
-0.09341710060834885,
-0.6241429448127747,
-0.4102129638195038,
0.020561583340168,
-0.2827775776386261,
0.06464221328496933,
-0.0720437541604042,
-0.06224922090768814,
-0.2690679132938385,
-0.010532907210290432,
-0.4744950234889984,
0.2986166179180145,
0.41659310460090637,
0.11147554218769073,
-0.010823716409504414,
0.07612273097038269,
-0.07465606182813644,
0.029588039964437485,
0.38348114490509033,
0.06954874843358994,
0.5175893902778625,
0.25598061084747314,
0.019176378846168518,
0.4757992923259735,
0.13931895792484283,
-0.163650244474411,
-0.18413014709949493,
0.16824986040592194,
-0.17723488807678223,
-0.08079429715871811,
-0.22218385338783264,
0.14762547612190247,
-0.07496412098407745,
0.4582820236682892,
-0.08868598192930222,
-0.26494210958480835,
-0.24246788024902344,
0.04612386226654053,
0.054762404412031174,
0.2765296697616577,
0.12221511453390121,
-0.3778547942638397,
0.29427963495254517,
-0.17582561075687408,
-0.22104893624782562,
-0.13486427068710327,
0.5424725413322449,
0.06686156988143921,
0.05457579717040062,
-0.19980286061763763,
0.09725575149059296,
0.24034126102924347,
-0.14091095328330994,
-0.002544845687225461,
-0.17237180471420288,
0.1879132091999054,
0.2741532623767853,
0.04766262695193291,
0.27516987919807434,
0.10913534462451935,
0.12290450930595398,
0.01246977224946022,
0.20886047184467316,
-0.008322962559759617,
0.061103444546461105,
-0.29340553283691406,
0.26610711216926575,
0.14516186714172363,
-0.06343095749616623,
0.16142086684703827,
-0.05786031857132912,
0.1387718915939331,
0.2737373411655426,
-0.2378363460302353,
-0.02203524112701416,
-0.5131170153617859,
-0.22617746889591217,
-0.4047650992870331,
-0.1627122014760971,
0.05269886925816536,
-0.18874867260456085,
-0.23927097022533417,
-0.053752534091472626,
0.23835620284080505,
0.11248598992824554,
0.15007087588310242,
0.42656490206718445,
-0.05683933198451996,
0.1309243142604828,
0.015759296715259552,
0.33482125401496887,
-0.0972028374671936,
0.16252434253692627,
0.004387699067592621,
0.011590494774281979,
-0.23950575292110443,
-0.1033061221241951,
0.3564891815185547,
-0.14042146503925323,
0.3913653492927551,
-0.01331330556422472,
0.019396480172872543,
-0.22625994682312012,
-0.06517532467842102,
-0.17231734097003937,
-0.020800169557332993,
0.4110073149204254,
-0.050402943044900894,
0.18488246202468872,
0.23012317717075348,
-0.38264432549476624,
-0.2856123149394989,
0.022011900320649147,
-0.4266524910926819,
-0.2579596936702728,
-0.13707993924617767,
0.08650407195091248,
-0.35764458775520325,
-0.04830684885382652,
-0.25187811255455017,
0.07208111137151718,
-0.2459041029214859,
-0.3608631491661072,
-0.1423637419939041,
-0.06262460350990295,
0.05692377686500549,
-0.16356609761714935,
0.40472573041915894,
0.6451686024665833,
-0.2595631182193756,
-0.13387033343315125,
-0.25193896889686584,
-0.09793069958686829,
0.11668004095554352,
0.15492980182170868,
-0.27746954560279846,
0.10031317174434662,
-0.4217946529388428,
-0.1295696645975113,
0.5071359872817993,
-0.3881826400756836,
-0.10349564254283905,
0.04326896741986275,
0.04420674964785576,
0.4348088502883911,
0.06771764159202576,
-0.0021923440508544445,
-0.22362881898880005,
0.09360767900943756,
0.11779487133026123,
0.36546093225479126,
0.29586732387542725,
-0.31511643528938293,
-0.04360321909189224,
-0.0880887508392334,
0.21524007618427277,
0.43583351373672485,
-0.07890266925096512,
-0.06527939438819885,
0.3209885358810425,
-0.017973963171243668,
0.06766877323389053,
-0.04433107003569603,
-0.11221826076507568,
0.3995005488395691,
-0.10023527592420578,
0.6040774583816528,
-0.12015610188245773,
0.057932622730731964,
-0.16157925128936768,
0.16202746331691742,
0.36290404200553894,
-0.0949903056025505,
-0.21313980221748352,
0.014591562561690807,
-0.591405987739563,
0.10863830149173737,
-0.24409402906894684,
-0.07960305362939835,
0.04424091428518295,
0.33855223655700684,
0.20978382229804993,
0.4188050925731659,
-0.1303364783525467,
0.5874924063682556,
-0.18200470507144928,
-0.00044482669909484684,
-0.13684161007404327,
0.33761560916900635,
-0.07734067738056183,
0.006913068704307079,
-0.025882922112941742,
0.4640442430973053,
0.19163300096988678,
-0.07536376267671585,
0.13066041469573975,
0.17758218944072723,
0.27570977807044983,
0.14317385852336884,
0.3152179718017578,
-0.14597146213054657,
0.013373720459640026,
-0.18512850999832153,
0.02644469402730465,
0.2751171588897705,
0.16683025658130646,
-0.08805670589208603,
-0.2502497434616089,
0.15575943887233734,
-0.0062823169864714146,
0.2842068672180176,
0.14522899687290192,
0.003231319598853588,
0.291583776473999,
-0.023569749668240547,
-0.04595818370580673,
-0.16006331145763397,
0.3323236107826233,
-0.17024342715740204,
0.5120026469230652,
-0.006220896728336811,
-0.2748086154460907,
0.15380223095417023,
0.01345242839306593,
-0.11309858411550522,
0.06631799787282944,
0.2667787969112396,
-0.16949054598808289,
0.18209797143936157,
0.1649414598941803,
0.2306361198425293,
0.5306183099746704,
0.1501770317554474,
0.058415040373802185,
-0.10424808412790298,
0.1984349638223648,
-0.22638867795467377,
0.19611245393753052,
0.07796403020620346,
0.3595772683620453,
0.10464750230312347,
0.13162389397621155,
0.12274237722158432,
-0.2572668194770813,
-0.5361443758010864,
-0.14957188069820404,
0.05220776051282883,
-0.29170680046081543,
0.321730375289917,
-0.1854947805404663,
-0.4013979732990265,
-0.31527456641197205,
-0.13558420538902283,
-0.24927487969398499,
-0.36319682002067566,
-0.18291546404361725,
0.13991713523864746,
0.03793739899992943,
-0.04919620603322983,
-0.11677524447441101,
0.171529620885849,
-0.21307136118412018,
-0.3847945034503937,
-0.32871878147125244,
-0.08700741082429886,
-0.04971536248922348,
-0.09377812594175339,
0.4112951457500458,
0.10011894255876541,
0.15648119151592255,
-0.49329760670661926,
0.12152867019176483,
0.09445704519748688,
-0.42397162318229675,
-0.14593911170959473,
-0.06582696735858917,
0.1950838565826416,
-0.08139224350452423,
0.3485628366470337,
-0.23511752486228943,
-0.3012833297252655,
0.3619760572910309,
-0.01966867223381996,
-0.07977602630853653,
0.14906640350818634,
0.20290254056453705,
-0.042097799479961395,
-0.1645147204399109,
-0.03642813116312027,
-0.8044572472572327,
-0.3288800120353699,
0.15707705914974213,
0.2175283581018448,
0.01541141141206026,
0.4426359534263611,
0.3873107433319092,
0.04523371160030365,
-0.03481026366353035,
0.13032692670822144,
-0.17641951143741608,
-0.3531501293182373,
0.6498785018920898,
-0.3994506895542145,
-0.28472667932510376,
0.11822298914194107,
0.23176801204681396,
0.2142132669687271,
-0.3526257574558258,
-0.48641860485076904,
0.08043493330478668,
0.0773070752620697,
0.28777241706848145,
-0.04483257979154587,
0.141671821475029,
-0.08675365895032883,
-0.06892808526754379,
-0.04603952914476395,
-0.13496163487434387,
-0.013584469445049763,
-0.11639115959405899,
-0.3259769082069397,
0.25629153847694397,
0.000641467806417495,
0.1128348857164383,
-0.20480835437774658,
0.5850797295570374,
0.18460670113563538,
0.12979072332382202,
0.3108215630054474,
-0.09639722108840942,
0.6860243082046509,
-0.10074694454669952,
-0.49535661935806274,
-0.01854618452489376,
-0.04261048510670662,
0.0646766796708107,
0.11252285540103912,
0.30213555693626404,
-0.17055058479309082,
-0.41086137294769287,
0.052665747702121735,
-0.60178542137146,
-0.0814373716711998,
0.11225660890340805,
-0.17888770997524261,
0.025728577747941017,
0.09259072691202164,
-0.18985889852046967,
-0.3393607437610626,
-0.16956253349781036,
0.005544830113649368,
0.5575088858604431,
-0.05012178793549538,
0.30141231417655945,
-0.5939538478851318,
-0.24900352954864502,
-0.15691114962100983,
0.19279058277606964,
-0.12748785316944122,
0.25575363636016846,
-0.3264310657978058,
0.08634655177593231,
0.1326003074645996,
-0.013539552688598633,
0.46682271361351013,
-0.007300904020667076,
-0.0018594254506751895,
0.2152351438999176,
0.21335932612419128,
-0.6372427940368652,
0.13661228120326996,
0.18528658151626587,
0.13880828022956848,
0.4634908139705658,
0.3116725981235504,
-0.18624719977378845,
-0.05331015959382057,
-0.052836090326309204,
0.39926043152809143,
-0.09941191971302032,
-0.1412382423877716,
-0.4389512836933136,
-0.5290257930755615,
-0.33301734924316406,
-0.3466005027294159,
0.04162897914648056,
0.3000888526439667,
-0.11271940171718597,
0.14799539744853973,
-0.03924671560525894,
0.08828035742044449,
0.1973964124917984,
0.2150367647409439,
0.3390178680419922,
0.202938973903656,
-0.1517690122127533,
0.21569311618804932,
0.20739148557186127,
0.18645815551280975,
0.8277198076248169,
-0.028064126148819923,
-0.47298794984817505,
-0.06765078753232956,
-0.16844476759433746,
0.2539024353027344,
0.2572767734527588,
-0.05255037173628807,
-0.2643868625164032,
0.08625269681215286,
-0.06164148077368736,
-0.10605178028345108,
0.2844639718532562,
-0.004286857787519693,
0.18147140741348267,
-0.1484195739030838,
-0.3832843005657196,
0.49445220828056335,
-0.052275367081165314,
-0.018716130405664444,
0.14876733720302582,
0.1603042632341385,
-0.14534272253513336,
0.2155505120754242,
-0.2960323691368103,
1.1821050643920898,
0.08365616202354431,
0.16198574006557465,
0.19228094816207886,
-0.14244523644447327,
0.34133386611938477,
-0.24917057156562805,
-0.06682747602462769,
-0.01653030514717102,
0.18411733210086823,
-0.00743667921051383,
-0.15055479109287262,
0.2806476354598999,
0.18582811951637268,
0.020497970283031464,
0.0036973953247070312,
-0.09629645198583603,
0.0299861840903759,
0.09892559796571732,
0.4379952847957611,
0.12777754664421082,
-0.018049774691462517,
-0.531926691532135,
0.1279686838388443,
-0.007052793633192778,
0.6483970284461975,
-0.05896406248211861,
-0.1501561850309372,
-0.6219803094863892,
0.04173445329070091,
-0.16975738108158112,
0.05595079064369202,
-0.17638444900512695,
0.30468761920928955,
-0.02427614852786064,
-0.4557031989097595,
-0.13109761476516724,
0.3823457956314087,
0.415837824344635,
0.06284830719232559,
-0.21002823114395142,
0.19425198435783386,
-0.0006206081015989184,
-0.23787455260753632,
0.14082656800746918,
-0.2639218270778656,
0.09897521883249283,
-0.16573521494865417,
-0.3407815992832184,
0.21492713689804077,
-0.053794827312231064,
-0.34722188115119934,
0.14091794192790985,
0.040133215487003326,
0.25642654299736023,
0.046548593789339066,
-0.4316747188568115,
0.06520144641399384,
0.2491726577281952,
-0.12109988927841187,
0.046564389020204544,
0.03291337937116623,
0.04708051308989525,
-0.20226219296455383,
-0.22350981831550598,
-0.078667551279068,
-0.09127867966890335,
0.45280155539512634,
-0.2509537637233734,
-0.17835606634616852,
0.3761714696884155,
0.13131074607372284,
-0.2986023724079132,
-0.09497164189815521,
0.17940860986709595,
-0.07178070396184921,
-0.49088579416275024,
-0.3483215868473053,
0.02586296945810318,
-0.03631654009222984,
-0.32218852639198303,
0.1668507307767868,
0.26644259691238403,
-0.268661767244339,
0.13787966966629028,
-0.7992357611656189,
-0.009050538763403893,
0.21488462388515472,
0.0030075383838266134,
0.024017678573727608,
0.149525448679924,
-0.1888759583234787,
0.17739173769950867,
-0.149282306432724,
-0.20867323875427246,
0.10378031432628632,
-0.20426246523857117,
-0.07088552415370941,
0.36451682448387146,
0.07976771891117096,
0.1445760428905487,
-0.2587433457374573,
0.03317764401435852,
-0.3906824588775635,
0.07116031646728516,
-0.13811390101909637,
-0.023248665034770966,
0.1677885502576828,
-0.030742058530449867,
-0.07363665848970413,
-0.18448849022388458,
-0.4234689772129059,
0.04950921609997749,
-0.09760311245918274,
-0.1504058539867401,
-0.0286711398512125,
0.05166298896074295,
-0.1411788910627365,
-0.09389808028936386,
0.3486449122428894,
-0.0014612922677770257,
0.21085165441036224,
0.06608052551746368,
0.5716889500617981,
0.036540597677230835,
0.025321051478385925,
0.10666032135486603,
0.010491221211850643,
-0.05285709723830223,
0.1187434047460556,
-0.12426485121250153,
0.1727951318025589,
0.37276801466941833,
-0.31967487931251526,
0.3249737024307251,
0.12096485495567322,
-0.003580347867682576,
0.5077819228172302,
-0.44136834144592285,
0.14628948271274567,
0.3029462695121765,
0.04758293181657791,
-0.28081920742988586,
-0.18597814440727234,
0.40094104409217834,
0.05550473555922508,
-0.06160265952348709,
0.28788307309150696,
0.2537674307823181,
-0.18906085193157196,
0.3890487253665924,
0.12931260466575623,
0.4627905786037445,
0.4501369893550873,
0.2029796838760376,
0.09399180114269257,
0.07953852415084839,
0.039334408938884735,
-0.07041053473949432,
0.3201724588871002,
-0.03206917643547058,
0.4540112614631653,
-0.26134932041168213,
0.10916915535926819,
0.042585600167512894,
0.17199309170246124,
-0.1905471384525299,
-0.22671547532081604,
0.1692727506160736,
-0.16528286039829254,
0.03991120681166649,
0.04554257169365883,
-0.16025668382644653,
0.41409268975257874,
-0.4061877727508545,
-0.11181599646806717,
0.019763395190238953,
0.2420540153980255,
0.0456828773021698,
-0.04843936488032341,
-0.22430095076560974,
-0.2722095847129822,
-0.13577476143836975,
-0.1845918595790863,
0.13575440645217896,
-0.5232680439949036,
0.2045874297618866,
0.1481914073228836,
-0.15736085176467896,
-0.2957589328289032,
-0.022704875096678734,
0.2689617872238159,
0.07167591154575348,
-0.11483670771121979,
0.32660362124443054,
0.21353939175605774,
0.06520364433526993,
0.11184805631637573,
0.2881097197532654,
0.4642573297023773,
0.2599305212497711,
-0.11090297251939774,
-0.005332000087946653,
-0.005477906670421362,
-0.15168729424476624,
-0.2587796449661255,
0.2607494592666626,
0.07047976553440094,
0.05745409429073334,
0.3448998034000397,
0.16660787165164948,
-0.09344500303268433,
-0.10949686914682388,
0.2727874517440796,
0.014625404961407185,
-0.17558227479457855,
0.15599672496318817,
-0.478434681892395,
-0.010587114840745926,
-0.30960944294929504,
0.04260561615228653,
-0.33616748452186584,
-0.011536414735019207,
0.21199756860733032,
0.024480290710926056,
0.1457008272409439,
-0.20482765138149261,
0.024099038913846016,
0.03940727934241295,
0.40860456228256226,
0.3885654807090759,
0.2942712903022766,
-0.26161468029022217,
-0.587248682975769,
-0.8084725141525269,
0.1373801976442337,
-0.20188994705677032,
-0.487253874540329,
0.03158647194504738,
-0.1072382852435112,
0.07699524611234665,
0.2530307173728943,
0.01596740260720253,
0.30990445613861084,
-0.08012846112251282,
-0.10848497599363327,
-0.2610020041465759,
-0.23170648515224457,
-0.25461238622665405,
0.09008113294839859,
-0.19034616649150848,
-0.14210955798625946,
0.19017894566059113,
-0.5949851870536804,
0.0008110312046483159,
0.1639486849308014,
-0.10576578974723816,
-0.20820678770542145,
-0.047876063734292984,
0.5655730366706848,
-0.1149524673819542,
0.2684365510940552,
0.0479271225631237,
-0.23052826523780823,
-0.11256543546915054,
-0.2521613538265228,
0.16323338449001312,
0.6077486276626587,
0.007039847318083048,
0.25515368580818176,
-0.4812214970588684,
0.01699041947722435,
-0.08850860595703125,
-0.026375431567430496,
0.2812677323818207,
-0.1549215465784073,
0.10704972594976425,
-0.07855717837810516,
-0.10624106973409653,
0.25990036129951477,
0.2936933934688568,
0.3048795461654663,
-0.2413357049226761,
0.17668916285037994,
-0.1652902215719223,
-0.1124802678823471,
0.32345446944236755,
-0.30523738265037537,
-0.2612438499927521,
0.17048074305057526,
0.1355915367603302,
0.08982481062412262,
0.17520219087600708,
-0.2406042516231537,
0.1892065703868866,
0.3313727080821991,
0.1525106132030487,
-0.19498689472675323,
0.27468499541282654,
-0.36220479011535645,
-0.16526080667972565,
-0.04521695524454117,
0.13301171362400055,
0.03234302997589111,
0.010824753902852535,
0.020680520683526993,
-0.025503193959593773
] |
https://github.com/huggingface/datasets/issues/1674 | dutch_social can't be loaded | @lhoestq could you also shed light on the Hindi Wikipedia Dataset for issue number #1673. Will this also be available in the new release that you committed recently? | Hi all,
I'm trying to import the `dutch_social` dataset described [here](https://huggingface.co/datasets/dutch_social).
However, the code that should load the data doesn't seem to be working, in particular because the corresponding files can't be found at the provided links.
```
(base) Koens-MacBook-Pro:~ koenvandenberge$ python
Python 3.7.4 (default, Aug 13 2019, 15:17:50)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from datasets import load_dataset
dataset = load_dataset(
'dutch_social')
>>> dataset = load_dataset(
... 'dutch_social')
Traceback (most recent call last):
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dutch_social/dutch_social.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 278, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dutch_social/dutch_social.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 589, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 282, in prepare_module
combined_path, github_file_path, file_path
FileNotFoundError: Couldn't find file locally at dutch_social/dutch_social.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dutch_social/dutch_social.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dutch_social/dutch_social.py
``` | 28 | dutch_social can't be loaded
Hi all,
I'm trying to import the `dutch_social` dataset described [here](https://huggingface.co/datasets/dutch_social).
However, the code that should load the data doesn't seem to be working, in particular because the corresponding files can't be found at the provided links.
```
(base) Koens-MacBook-Pro:~ koenvandenberge$ python
Python 3.7.4 (default, Aug 13 2019, 15:17:50)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from datasets import load_dataset
dataset = load_dataset(
'dutch_social')
>>> dataset = load_dataset(
... 'dutch_social')
Traceback (most recent call last):
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dutch_social/dutch_social.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 278, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dutch_social/dutch_social.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 589, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 282, in prepare_module
combined_path, github_file_path, file_path
FileNotFoundError: Couldn't find file locally at dutch_social/dutch_social.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dutch_social/dutch_social.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dutch_social/dutch_social.py
```
@lhoestq could you also shed light on the Hindi Wikipedia Dataset for issue number #1673. Will this also be available in the new release that you committed recently? | [
-0.144012913107872,
-0.12778671085834503,
-0.1560758501291275,
0.2933967113494873,
0.21679967641830444,
-0.1348889321088791,
-0.012057781219482422,
0.09374074637889862,
0.395803302526474,
-0.08629671484231949,
-0.2941347360610962,
-0.007835458032786846,
0.01967604272067547,
-0.04214680567383766,
0.13732215762138367,
0.11360087990760803,
0.22467605769634247,
0.09364863485097885,
0.1446138620376587,
-0.13795606791973114,
-0.25548166036605835,
0.40843018889427185,
0.036478932946920395,
0.11952512711286545,
0.05357573926448822,
0.24329081177711487,
-0.08378441631793976,
0.31918883323669434,
-0.06338761001825333,
-0.29486194252967834,
0.3469976782798767,
0.13545899093151093,
0.12170325964689255,
0.5947436690330505,
-0.0001220058838953264,
0.015369579195976257,
0.47937145829200745,
-0.09341710060834885,
-0.6241429448127747,
-0.4102129638195038,
0.020561583340168,
-0.2827775776386261,
0.06464221328496933,
-0.0720437541604042,
-0.06224922090768814,
-0.2690679132938385,
-0.010532907210290432,
-0.4744950234889984,
0.2986166179180145,
0.41659310460090637,
0.11147554218769073,
-0.010823716409504414,
0.07612273097038269,
-0.07465606182813644,
0.029588039964437485,
0.38348114490509033,
0.06954874843358994,
0.5175893902778625,
0.25598061084747314,
0.019176378846168518,
0.4757992923259735,
0.13931895792484283,
-0.163650244474411,
-0.18413014709949493,
0.16824986040592194,
-0.17723488807678223,
-0.08079429715871811,
-0.22218385338783264,
0.14762547612190247,
-0.07496412098407745,
0.4582820236682892,
-0.08868598192930222,
-0.26494210958480835,
-0.24246788024902344,
0.04612386226654053,
0.054762404412031174,
0.2765296697616577,
0.12221511453390121,
-0.3778547942638397,
0.29427963495254517,
-0.17582561075687408,
-0.22104893624782562,
-0.13486427068710327,
0.5424725413322449,
0.06686156988143921,
0.05457579717040062,
-0.19980286061763763,
0.09725575149059296,
0.24034126102924347,
-0.14091095328330994,
-0.002544845687225461,
-0.17237180471420288,
0.1879132091999054,
0.2741532623767853,
0.04766262695193291,
0.27516987919807434,
0.10913534462451935,
0.12290450930595398,
0.01246977224946022,
0.20886047184467316,
-0.008322962559759617,
0.061103444546461105,
-0.29340553283691406,
0.26610711216926575,
0.14516186714172363,
-0.06343095749616623,
0.16142086684703827,
-0.05786031857132912,
0.1387718915939331,
0.2737373411655426,
-0.2378363460302353,
-0.02203524112701416,
-0.5131170153617859,
-0.22617746889591217,
-0.4047650992870331,
-0.1627122014760971,
0.05269886925816536,
-0.18874867260456085,
-0.23927097022533417,
-0.053752534091472626,
0.23835620284080505,
0.11248598992824554,
0.15007087588310242,
0.42656490206718445,
-0.05683933198451996,
0.1309243142604828,
0.015759296715259552,
0.33482125401496887,
-0.0972028374671936,
0.16252434253692627,
0.004387699067592621,
0.011590494774281979,
-0.23950575292110443,
-0.1033061221241951,
0.3564891815185547,
-0.14042146503925323,
0.3913653492927551,
-0.01331330556422472,
0.019396480172872543,
-0.22625994682312012,
-0.06517532467842102,
-0.17231734097003937,
-0.020800169557332993,
0.4110073149204254,
-0.050402943044900894,
0.18488246202468872,
0.23012317717075348,
-0.38264432549476624,
-0.2856123149394989,
0.022011900320649147,
-0.4266524910926819,
-0.2579596936702728,
-0.13707993924617767,
0.08650407195091248,
-0.35764458775520325,
-0.04830684885382652,
-0.25187811255455017,
0.07208111137151718,
-0.2459041029214859,
-0.3608631491661072,
-0.1423637419939041,
-0.06262460350990295,
0.05692377686500549,
-0.16356609761714935,
0.40472573041915894,
0.6451686024665833,
-0.2595631182193756,
-0.13387033343315125,
-0.25193896889686584,
-0.09793069958686829,
0.11668004095554352,
0.15492980182170868,
-0.27746954560279846,
0.10031317174434662,
-0.4217946529388428,
-0.1295696645975113,
0.5071359872817993,
-0.3881826400756836,
-0.10349564254283905,
0.04326896741986275,
0.04420674964785576,
0.4348088502883911,
0.06771764159202576,
-0.0021923440508544445,
-0.22362881898880005,
0.09360767900943756,
0.11779487133026123,
0.36546093225479126,
0.29586732387542725,
-0.31511643528938293,
-0.04360321909189224,
-0.0880887508392334,
0.21524007618427277,
0.43583351373672485,
-0.07890266925096512,
-0.06527939438819885,
0.3209885358810425,
-0.017973963171243668,
0.06766877323389053,
-0.04433107003569603,
-0.11221826076507568,
0.3995005488395691,
-0.10023527592420578,
0.6040774583816528,
-0.12015610188245773,
0.057932622730731964,
-0.16157925128936768,
0.16202746331691742,
0.36290404200553894,
-0.0949903056025505,
-0.21313980221748352,
0.014591562561690807,
-0.591405987739563,
0.10863830149173737,
-0.24409402906894684,
-0.07960305362939835,
0.04424091428518295,
0.33855223655700684,
0.20978382229804993,
0.4188050925731659,
-0.1303364783525467,
0.5874924063682556,
-0.18200470507144928,
-0.00044482669909484684,
-0.13684161007404327,
0.33761560916900635,
-0.07734067738056183,
0.006913068704307079,
-0.025882922112941742,
0.4640442430973053,
0.19163300096988678,
-0.07536376267671585,
0.13066041469573975,
0.17758218944072723,
0.27570977807044983,
0.14317385852336884,
0.3152179718017578,
-0.14597146213054657,
0.013373720459640026,
-0.18512850999832153,
0.02644469402730465,
0.2751171588897705,
0.16683025658130646,
-0.08805670589208603,
-0.2502497434616089,
0.15575943887233734,
-0.0062823169864714146,
0.2842068672180176,
0.14522899687290192,
0.003231319598853588,
0.291583776473999,
-0.023569749668240547,
-0.04595818370580673,
-0.16006331145763397,
0.3323236107826233,
-0.17024342715740204,
0.5120026469230652,
-0.006220896728336811,
-0.2748086154460907,
0.15380223095417023,
0.01345242839306593,
-0.11309858411550522,
0.06631799787282944,
0.2667787969112396,
-0.16949054598808289,
0.18209797143936157,
0.1649414598941803,
0.2306361198425293,
0.5306183099746704,
0.1501770317554474,
0.058415040373802185,
-0.10424808412790298,
0.1984349638223648,
-0.22638867795467377,
0.19611245393753052,
0.07796403020620346,
0.3595772683620453,
0.10464750230312347,
0.13162389397621155,
0.12274237722158432,
-0.2572668194770813,
-0.5361443758010864,
-0.14957188069820404,
0.05220776051282883,
-0.29170680046081543,
0.321730375289917,
-0.1854947805404663,
-0.4013979732990265,
-0.31527456641197205,
-0.13558420538902283,
-0.24927487969398499,
-0.36319682002067566,
-0.18291546404361725,
0.13991713523864746,
0.03793739899992943,
-0.04919620603322983,
-0.11677524447441101,
0.171529620885849,
-0.21307136118412018,
-0.3847945034503937,
-0.32871878147125244,
-0.08700741082429886,
-0.04971536248922348,
-0.09377812594175339,
0.4112951457500458,
0.10011894255876541,
0.15648119151592255,
-0.49329760670661926,
0.12152867019176483,
0.09445704519748688,
-0.42397162318229675,
-0.14593911170959473,
-0.06582696735858917,
0.1950838565826416,
-0.08139224350452423,
0.3485628366470337,
-0.23511752486228943,
-0.3012833297252655,
0.3619760572910309,
-0.01966867223381996,
-0.07977602630853653,
0.14906640350818634,
0.20290254056453705,
-0.042097799479961395,
-0.1645147204399109,
-0.03642813116312027,
-0.8044572472572327,
-0.3288800120353699,
0.15707705914974213,
0.2175283581018448,
0.01541141141206026,
0.4426359534263611,
0.3873107433319092,
0.04523371160030365,
-0.03481026366353035,
0.13032692670822144,
-0.17641951143741608,
-0.3531501293182373,
0.6498785018920898,
-0.3994506895542145,
-0.28472667932510376,
0.11822298914194107,
0.23176801204681396,
0.2142132669687271,
-0.3526257574558258,
-0.48641860485076904,
0.08043493330478668,
0.0773070752620697,
0.28777241706848145,
-0.04483257979154587,
0.141671821475029,
-0.08675365895032883,
-0.06892808526754379,
-0.04603952914476395,
-0.13496163487434387,
-0.013584469445049763,
-0.11639115959405899,
-0.3259769082069397,
0.25629153847694397,
0.000641467806417495,
0.1128348857164383,
-0.20480835437774658,
0.5850797295570374,
0.18460670113563538,
0.12979072332382202,
0.3108215630054474,
-0.09639722108840942,
0.6860243082046509,
-0.10074694454669952,
-0.49535661935806274,
-0.01854618452489376,
-0.04261048510670662,
0.0646766796708107,
0.11252285540103912,
0.30213555693626404,
-0.17055058479309082,
-0.41086137294769287,
0.052665747702121735,
-0.60178542137146,
-0.0814373716711998,
0.11225660890340805,
-0.17888770997524261,
0.025728577747941017,
0.09259072691202164,
-0.18985889852046967,
-0.3393607437610626,
-0.16956253349781036,
0.005544830113649368,
0.5575088858604431,
-0.05012178793549538,
0.30141231417655945,
-0.5939538478851318,
-0.24900352954864502,
-0.15691114962100983,
0.19279058277606964,
-0.12748785316944122,
0.25575363636016846,
-0.3264310657978058,
0.08634655177593231,
0.1326003074645996,
-0.013539552688598633,
0.46682271361351013,
-0.007300904020667076,
-0.0018594254506751895,
0.2152351438999176,
0.21335932612419128,
-0.6372427940368652,
0.13661228120326996,
0.18528658151626587,
0.13880828022956848,
0.4634908139705658,
0.3116725981235504,
-0.18624719977378845,
-0.05331015959382057,
-0.052836090326309204,
0.39926043152809143,
-0.09941191971302032,
-0.1412382423877716,
-0.4389512836933136,
-0.5290257930755615,
-0.33301734924316406,
-0.3466005027294159,
0.04162897914648056,
0.3000888526439667,
-0.11271940171718597,
0.14799539744853973,
-0.03924671560525894,
0.08828035742044449,
0.1973964124917984,
0.2150367647409439,
0.3390178680419922,
0.202938973903656,
-0.1517690122127533,
0.21569311618804932,
0.20739148557186127,
0.18645815551280975,
0.8277198076248169,
-0.028064126148819923,
-0.47298794984817505,
-0.06765078753232956,
-0.16844476759433746,
0.2539024353027344,
0.2572767734527588,
-0.05255037173628807,
-0.2643868625164032,
0.08625269681215286,
-0.06164148077368736,
-0.10605178028345108,
0.2844639718532562,
-0.004286857787519693,
0.18147140741348267,
-0.1484195739030838,
-0.3832843005657196,
0.49445220828056335,
-0.052275367081165314,
-0.018716130405664444,
0.14876733720302582,
0.1603042632341385,
-0.14534272253513336,
0.2155505120754242,
-0.2960323691368103,
1.1821050643920898,
0.08365616202354431,
0.16198574006557465,
0.19228094816207886,
-0.14244523644447327,
0.34133386611938477,
-0.24917057156562805,
-0.06682747602462769,
-0.01653030514717102,
0.18411733210086823,
-0.00743667921051383,
-0.15055479109287262,
0.2806476354598999,
0.18582811951637268,
0.020497970283031464,
0.0036973953247070312,
-0.09629645198583603,
0.0299861840903759,
0.09892559796571732,
0.4379952847957611,
0.12777754664421082,
-0.018049774691462517,
-0.531926691532135,
0.1279686838388443,
-0.007052793633192778,
0.6483970284461975,
-0.05896406248211861,
-0.1501561850309372,
-0.6219803094863892,
0.04173445329070091,
-0.16975738108158112,
0.05595079064369202,
-0.17638444900512695,
0.30468761920928955,
-0.02427614852786064,
-0.4557031989097595,
-0.13109761476516724,
0.3823457956314087,
0.415837824344635,
0.06284830719232559,
-0.21002823114395142,
0.19425198435783386,
-0.0006206081015989184,
-0.23787455260753632,
0.14082656800746918,
-0.2639218270778656,
0.09897521883249283,
-0.16573521494865417,
-0.3407815992832184,
0.21492713689804077,
-0.053794827312231064,
-0.34722188115119934,
0.14091794192790985,
0.040133215487003326,
0.25642654299736023,
0.046548593789339066,
-0.4316747188568115,
0.06520144641399384,
0.2491726577281952,
-0.12109988927841187,
0.046564389020204544,
0.03291337937116623,
0.04708051308989525,
-0.20226219296455383,
-0.22350981831550598,
-0.078667551279068,
-0.09127867966890335,
0.45280155539512634,
-0.2509537637233734,
-0.17835606634616852,
0.3761714696884155,
0.13131074607372284,
-0.2986023724079132,
-0.09497164189815521,
0.17940860986709595,
-0.07178070396184921,
-0.49088579416275024,
-0.3483215868473053,
0.02586296945810318,
-0.03631654009222984,
-0.32218852639198303,
0.1668507307767868,
0.26644259691238403,
-0.268661767244339,
0.13787966966629028,
-0.7992357611656189,
-0.009050538763403893,
0.21488462388515472,
0.0030075383838266134,
0.024017678573727608,
0.149525448679924,
-0.1888759583234787,
0.17739173769950867,
-0.149282306432724,
-0.20867323875427246,
0.10378031432628632,
-0.20426246523857117,
-0.07088552415370941,
0.36451682448387146,
0.07976771891117096,
0.1445760428905487,
-0.2587433457374573,
0.03317764401435852,
-0.3906824588775635,
0.07116031646728516,
-0.13811390101909637,
-0.023248665034770966,
0.1677885502576828,
-0.030742058530449867,
-0.07363665848970413,
-0.18448849022388458,
-0.4234689772129059,
0.04950921609997749,
-0.09760311245918274,
-0.1504058539867401,
-0.0286711398512125,
0.05166298896074295,
-0.1411788910627365,
-0.09389808028936386,
0.3486449122428894,
-0.0014612922677770257,
0.21085165441036224,
0.06608052551746368,
0.5716889500617981,
0.036540597677230835,
0.025321051478385925,
0.10666032135486603,
0.010491221211850643,
-0.05285709723830223,
0.1187434047460556,
-0.12426485121250153,
0.1727951318025589,
0.37276801466941833,
-0.31967487931251526,
0.3249737024307251,
0.12096485495567322,
-0.003580347867682576,
0.5077819228172302,
-0.44136834144592285,
0.14628948271274567,
0.3029462695121765,
0.04758293181657791,
-0.28081920742988586,
-0.18597814440727234,
0.40094104409217834,
0.05550473555922508,
-0.06160265952348709,
0.28788307309150696,
0.2537674307823181,
-0.18906085193157196,
0.3890487253665924,
0.12931260466575623,
0.4627905786037445,
0.4501369893550873,
0.2029796838760376,
0.09399180114269257,
0.07953852415084839,
0.039334408938884735,
-0.07041053473949432,
0.3201724588871002,
-0.03206917643547058,
0.4540112614631653,
-0.26134932041168213,
0.10916915535926819,
0.042585600167512894,
0.17199309170246124,
-0.1905471384525299,
-0.22671547532081604,
0.1692727506160736,
-0.16528286039829254,
0.03991120681166649,
0.04554257169365883,
-0.16025668382644653,
0.41409268975257874,
-0.4061877727508545,
-0.11181599646806717,
0.019763395190238953,
0.2420540153980255,
0.0456828773021698,
-0.04843936488032341,
-0.22430095076560974,
-0.2722095847129822,
-0.13577476143836975,
-0.1845918595790863,
0.13575440645217896,
-0.5232680439949036,
0.2045874297618866,
0.1481914073228836,
-0.15736085176467896,
-0.2957589328289032,
-0.022704875096678734,
0.2689617872238159,
0.07167591154575348,
-0.11483670771121979,
0.32660362124443054,
0.21353939175605774,
0.06520364433526993,
0.11184805631637573,
0.2881097197532654,
0.4642573297023773,
0.2599305212497711,
-0.11090297251939774,
-0.005332000087946653,
-0.005477906670421362,
-0.15168729424476624,
-0.2587796449661255,
0.2607494592666626,
0.07047976553440094,
0.05745409429073334,
0.3448998034000397,
0.16660787165164948,
-0.09344500303268433,
-0.10949686914682388,
0.2727874517440796,
0.014625404961407185,
-0.17558227479457855,
0.15599672496318817,
-0.478434681892395,
-0.010587114840745926,
-0.30960944294929504,
0.04260561615228653,
-0.33616748452186584,
-0.011536414735019207,
0.21199756860733032,
0.024480290710926056,
0.1457008272409439,
-0.20482765138149261,
0.024099038913846016,
0.03940727934241295,
0.40860456228256226,
0.3885654807090759,
0.2942712903022766,
-0.26161468029022217,
-0.587248682975769,
-0.8084725141525269,
0.1373801976442337,
-0.20188994705677032,
-0.487253874540329,
0.03158647194504738,
-0.1072382852435112,
0.07699524611234665,
0.2530307173728943,
0.01596740260720253,
0.30990445613861084,
-0.08012846112251282,
-0.10848497599363327,
-0.2610020041465759,
-0.23170648515224457,
-0.25461238622665405,
0.09008113294839859,
-0.19034616649150848,
-0.14210955798625946,
0.19017894566059113,
-0.5949851870536804,
0.0008110312046483159,
0.1639486849308014,
-0.10576578974723816,
-0.20820678770542145,
-0.047876063734292984,
0.5655730366706848,
-0.1149524673819542,
0.2684365510940552,
0.0479271225631237,
-0.23052826523780823,
-0.11256543546915054,
-0.2521613538265228,
0.16323338449001312,
0.6077486276626587,
0.007039847318083048,
0.25515368580818176,
-0.4812214970588684,
0.01699041947722435,
-0.08850860595703125,
-0.026375431567430496,
0.2812677323818207,
-0.1549215465784073,
0.10704972594976425,
-0.07855717837810516,
-0.10624106973409653,
0.25990036129951477,
0.2936933934688568,
0.3048795461654663,
-0.2413357049226761,
0.17668916285037994,
-0.1652902215719223,
-0.1124802678823471,
0.32345446944236755,
-0.30523738265037537,
-0.2612438499927521,
0.17048074305057526,
0.1355915367603302,
0.08982481062412262,
0.17520219087600708,
-0.2406042516231537,
0.1892065703868866,
0.3313727080821991,
0.1525106132030487,
-0.19498689472675323,
0.27468499541282654,
-0.36220479011535645,
-0.16526080667972565,
-0.04521695524454117,
0.13301171362400055,
0.03234302997589111,
0.010824753902852535,
0.020680520683526993,
-0.025503193959593773
] |
https://github.com/huggingface/datasets/issues/1674 | dutch_social can't be loaded | Okay. Could you comment on the #1673 thread? Actually @thomwolf had commented that if i use datasets library from source, it would allow me to download the Hindi Wikipedia Dataset but even the version 1.1.3 gave me the same issue. The details are there in the issue #1673 thread. | Hi all,
I'm trying to import the `dutch_social` dataset described [here](https://huggingface.co/datasets/dutch_social).
However, the code that should load the data doesn't seem to be working, in particular because the corresponding files can't be found at the provided links.
```
(base) Koens-MacBook-Pro:~ koenvandenberge$ python
Python 3.7.4 (default, Aug 13 2019, 15:17:50)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from datasets import load_dataset
dataset = load_dataset(
'dutch_social')
>>> dataset = load_dataset(
... 'dutch_social')
Traceback (most recent call last):
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dutch_social/dutch_social.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 278, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dutch_social/dutch_social.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 589, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 282, in prepare_module
combined_path, github_file_path, file_path
FileNotFoundError: Couldn't find file locally at dutch_social/dutch_social.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dutch_social/dutch_social.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dutch_social/dutch_social.py
``` | 49 | dutch_social can't be loaded
Hi all,
I'm trying to import the `dutch_social` dataset described [here](https://huggingface.co/datasets/dutch_social).
However, the code that should load the data doesn't seem to be working, in particular because the corresponding files can't be found at the provided links.
```
(base) Koens-MacBook-Pro:~ koenvandenberge$ python
Python 3.7.4 (default, Aug 13 2019, 15:17:50)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from datasets import load_dataset
dataset = load_dataset(
'dutch_social')
>>> dataset = load_dataset(
... 'dutch_social')
Traceback (most recent call last):
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dutch_social/dutch_social.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 278, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dutch_social/dutch_social.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 589, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/Users/koenvandenberge/opt/anaconda3/lib/python3.7/site-packages/datasets/load.py", line 282, in prepare_module
combined_path, github_file_path, file_path
FileNotFoundError: Couldn't find file locally at dutch_social/dutch_social.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/dutch_social/dutch_social.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/dutch_social/dutch_social.py
```
Okay. Could you comment on the #1673 thread? Actually @thomwolf had commented that if i use datasets library from source, it would allow me to download the Hindi Wikipedia Dataset but even the version 1.1.3 gave me the same issue. The details are there in the issue #1673 thread. | [
-0.144012913107872,
-0.12778671085834503,
-0.1560758501291275,
0.2933967113494873,
0.21679967641830444,
-0.1348889321088791,
-0.012057781219482422,
0.09374074637889862,
0.395803302526474,
-0.08629671484231949,
-0.2941347360610962,
-0.007835458032786846,
0.01967604272067547,
-0.04214680567383766,
0.13732215762138367,
0.11360087990760803,
0.22467605769634247,
0.09364863485097885,
0.1446138620376587,
-0.13795606791973114,
-0.25548166036605835,
0.40843018889427185,
0.036478932946920395,
0.11952512711286545,
0.05357573926448822,
0.24329081177711487,
-0.08378441631793976,
0.31918883323669434,
-0.06338761001825333,
-0.29486194252967834,
0.3469976782798767,
0.13545899093151093,
0.12170325964689255,
0.5947436690330505,
-0.0001220058838953264,
0.015369579195976257,
0.47937145829200745,
-0.09341710060834885,
-0.6241429448127747,
-0.4102129638195038,
0.020561583340168,
-0.2827775776386261,
0.06464221328496933,
-0.0720437541604042,
-0.06224922090768814,
-0.2690679132938385,
-0.010532907210290432,
-0.4744950234889984,
0.2986166179180145,
0.41659310460090637,
0.11147554218769073,
-0.010823716409504414,
0.07612273097038269,
-0.07465606182813644,
0.029588039964437485,
0.38348114490509033,
0.06954874843358994,
0.5175893902778625,
0.25598061084747314,
0.019176378846168518,
0.4757992923259735,
0.13931895792484283,
-0.163650244474411,
-0.18413014709949493,
0.16824986040592194,
-0.17723488807678223,
-0.08079429715871811,
-0.22218385338783264,
0.14762547612190247,
-0.07496412098407745,
0.4582820236682892,
-0.08868598192930222,
-0.26494210958480835,
-0.24246788024902344,
0.04612386226654053,
0.054762404412031174,
0.2765296697616577,
0.12221511453390121,
-0.3778547942638397,
0.29427963495254517,
-0.17582561075687408,
-0.22104893624782562,
-0.13486427068710327,
0.5424725413322449,
0.06686156988143921,
0.05457579717040062,
-0.19980286061763763,
0.09725575149059296,
0.24034126102924347,
-0.14091095328330994,
-0.002544845687225461,
-0.17237180471420288,
0.1879132091999054,
0.2741532623767853,
0.04766262695193291,
0.27516987919807434,
0.10913534462451935,
0.12290450930595398,
0.01246977224946022,
0.20886047184467316,
-0.008322962559759617,
0.061103444546461105,
-0.29340553283691406,
0.26610711216926575,
0.14516186714172363,
-0.06343095749616623,
0.16142086684703827,
-0.05786031857132912,
0.1387718915939331,
0.2737373411655426,
-0.2378363460302353,
-0.02203524112701416,
-0.5131170153617859,
-0.22617746889591217,
-0.4047650992870331,
-0.1627122014760971,
0.05269886925816536,
-0.18874867260456085,
-0.23927097022533417,
-0.053752534091472626,
0.23835620284080505,
0.11248598992824554,
0.15007087588310242,
0.42656490206718445,
-0.05683933198451996,
0.1309243142604828,
0.015759296715259552,
0.33482125401496887,
-0.0972028374671936,
0.16252434253692627,
0.004387699067592621,
0.011590494774281979,
-0.23950575292110443,
-0.1033061221241951,
0.3564891815185547,
-0.14042146503925323,
0.3913653492927551,
-0.01331330556422472,
0.019396480172872543,
-0.22625994682312012,
-0.06517532467842102,
-0.17231734097003937,
-0.020800169557332993,
0.4110073149204254,
-0.050402943044900894,
0.18488246202468872,
0.23012317717075348,
-0.38264432549476624,
-0.2856123149394989,
0.022011900320649147,
-0.4266524910926819,
-0.2579596936702728,
-0.13707993924617767,
0.08650407195091248,
-0.35764458775520325,
-0.04830684885382652,
-0.25187811255455017,
0.07208111137151718,
-0.2459041029214859,
-0.3608631491661072,
-0.1423637419939041,
-0.06262460350990295,
0.05692377686500549,
-0.16356609761714935,
0.40472573041915894,
0.6451686024665833,
-0.2595631182193756,
-0.13387033343315125,
-0.25193896889686584,
-0.09793069958686829,
0.11668004095554352,
0.15492980182170868,
-0.27746954560279846,
0.10031317174434662,
-0.4217946529388428,
-0.1295696645975113,
0.5071359872817993,
-0.3881826400756836,
-0.10349564254283905,
0.04326896741986275,
0.04420674964785576,
0.4348088502883911,
0.06771764159202576,
-0.0021923440508544445,
-0.22362881898880005,
0.09360767900943756,
0.11779487133026123,
0.36546093225479126,
0.29586732387542725,
-0.31511643528938293,
-0.04360321909189224,
-0.0880887508392334,
0.21524007618427277,
0.43583351373672485,
-0.07890266925096512,
-0.06527939438819885,
0.3209885358810425,
-0.017973963171243668,
0.06766877323389053,
-0.04433107003569603,
-0.11221826076507568,
0.3995005488395691,
-0.10023527592420578,
0.6040774583816528,
-0.12015610188245773,
0.057932622730731964,
-0.16157925128936768,
0.16202746331691742,
0.36290404200553894,
-0.0949903056025505,
-0.21313980221748352,
0.014591562561690807,
-0.591405987739563,
0.10863830149173737,
-0.24409402906894684,
-0.07960305362939835,
0.04424091428518295,
0.33855223655700684,
0.20978382229804993,
0.4188050925731659,
-0.1303364783525467,
0.5874924063682556,
-0.18200470507144928,
-0.00044482669909484684,
-0.13684161007404327,
0.33761560916900635,
-0.07734067738056183,
0.006913068704307079,
-0.025882922112941742,
0.4640442430973053,
0.19163300096988678,
-0.07536376267671585,
0.13066041469573975,
0.17758218944072723,
0.27570977807044983,
0.14317385852336884,
0.3152179718017578,
-0.14597146213054657,
0.013373720459640026,
-0.18512850999832153,
0.02644469402730465,
0.2751171588897705,
0.16683025658130646,
-0.08805670589208603,
-0.2502497434616089,
0.15575943887233734,
-0.0062823169864714146,
0.2842068672180176,
0.14522899687290192,
0.003231319598853588,
0.291583776473999,
-0.023569749668240547,
-0.04595818370580673,
-0.16006331145763397,
0.3323236107826233,
-0.17024342715740204,
0.5120026469230652,
-0.006220896728336811,
-0.2748086154460907,
0.15380223095417023,
0.01345242839306593,
-0.11309858411550522,
0.06631799787282944,
0.2667787969112396,
-0.16949054598808289,
0.18209797143936157,
0.1649414598941803,
0.2306361198425293,
0.5306183099746704,
0.1501770317554474,
0.058415040373802185,
-0.10424808412790298,
0.1984349638223648,
-0.22638867795467377,
0.19611245393753052,
0.07796403020620346,
0.3595772683620453,
0.10464750230312347,
0.13162389397621155,
0.12274237722158432,
-0.2572668194770813,
-0.5361443758010864,
-0.14957188069820404,
0.05220776051282883,
-0.29170680046081543,
0.321730375289917,
-0.1854947805404663,
-0.4013979732990265,
-0.31527456641197205,
-0.13558420538902283,
-0.24927487969398499,
-0.36319682002067566,
-0.18291546404361725,
0.13991713523864746,
0.03793739899992943,
-0.04919620603322983,
-0.11677524447441101,
0.171529620885849,
-0.21307136118412018,
-0.3847945034503937,
-0.32871878147125244,
-0.08700741082429886,
-0.04971536248922348,
-0.09377812594175339,
0.4112951457500458,
0.10011894255876541,
0.15648119151592255,
-0.49329760670661926,
0.12152867019176483,
0.09445704519748688,
-0.42397162318229675,
-0.14593911170959473,
-0.06582696735858917,
0.1950838565826416,
-0.08139224350452423,
0.3485628366470337,
-0.23511752486228943,
-0.3012833297252655,
0.3619760572910309,
-0.01966867223381996,
-0.07977602630853653,
0.14906640350818634,
0.20290254056453705,
-0.042097799479961395,
-0.1645147204399109,
-0.03642813116312027,
-0.8044572472572327,
-0.3288800120353699,
0.15707705914974213,
0.2175283581018448,
0.01541141141206026,
0.4426359534263611,
0.3873107433319092,
0.04523371160030365,
-0.03481026366353035,
0.13032692670822144,
-0.17641951143741608,
-0.3531501293182373,
0.6498785018920898,
-0.3994506895542145,
-0.28472667932510376,
0.11822298914194107,
0.23176801204681396,
0.2142132669687271,
-0.3526257574558258,
-0.48641860485076904,
0.08043493330478668,
0.0773070752620697,
0.28777241706848145,
-0.04483257979154587,
0.141671821475029,
-0.08675365895032883,
-0.06892808526754379,
-0.04603952914476395,
-0.13496163487434387,
-0.013584469445049763,
-0.11639115959405899,
-0.3259769082069397,
0.25629153847694397,
0.000641467806417495,
0.1128348857164383,
-0.20480835437774658,
0.5850797295570374,
0.18460670113563538,
0.12979072332382202,
0.3108215630054474,
-0.09639722108840942,
0.6860243082046509,
-0.10074694454669952,
-0.49535661935806274,
-0.01854618452489376,
-0.04261048510670662,
0.0646766796708107,
0.11252285540103912,
0.30213555693626404,
-0.17055058479309082,
-0.41086137294769287,
0.052665747702121735,
-0.60178542137146,
-0.0814373716711998,
0.11225660890340805,
-0.17888770997524261,
0.025728577747941017,
0.09259072691202164,
-0.18985889852046967,
-0.3393607437610626,
-0.16956253349781036,
0.005544830113649368,
0.5575088858604431,
-0.05012178793549538,
0.30141231417655945,
-0.5939538478851318,
-0.24900352954864502,
-0.15691114962100983,
0.19279058277606964,
-0.12748785316944122,
0.25575363636016846,
-0.3264310657978058,
0.08634655177593231,
0.1326003074645996,
-0.013539552688598633,
0.46682271361351013,
-0.007300904020667076,
-0.0018594254506751895,
0.2152351438999176,
0.21335932612419128,
-0.6372427940368652,
0.13661228120326996,
0.18528658151626587,
0.13880828022956848,
0.4634908139705658,
0.3116725981235504,
-0.18624719977378845,
-0.05331015959382057,
-0.052836090326309204,
0.39926043152809143,
-0.09941191971302032,
-0.1412382423877716,
-0.4389512836933136,
-0.5290257930755615,
-0.33301734924316406,
-0.3466005027294159,
0.04162897914648056,
0.3000888526439667,
-0.11271940171718597,
0.14799539744853973,
-0.03924671560525894,
0.08828035742044449,
0.1973964124917984,
0.2150367647409439,
0.3390178680419922,
0.202938973903656,
-0.1517690122127533,
0.21569311618804932,
0.20739148557186127,
0.18645815551280975,
0.8277198076248169,
-0.028064126148819923,
-0.47298794984817505,
-0.06765078753232956,
-0.16844476759433746,
0.2539024353027344,
0.2572767734527588,
-0.05255037173628807,
-0.2643868625164032,
0.08625269681215286,
-0.06164148077368736,
-0.10605178028345108,
0.2844639718532562,
-0.004286857787519693,
0.18147140741348267,
-0.1484195739030838,
-0.3832843005657196,
0.49445220828056335,
-0.052275367081165314,
-0.018716130405664444,
0.14876733720302582,
0.1603042632341385,
-0.14534272253513336,
0.2155505120754242,
-0.2960323691368103,
1.1821050643920898,
0.08365616202354431,
0.16198574006557465,
0.19228094816207886,
-0.14244523644447327,
0.34133386611938477,
-0.24917057156562805,
-0.06682747602462769,
-0.01653030514717102,
0.18411733210086823,
-0.00743667921051383,
-0.15055479109287262,
0.2806476354598999,
0.18582811951637268,
0.020497970283031464,
0.0036973953247070312,
-0.09629645198583603,
0.0299861840903759,
0.09892559796571732,
0.4379952847957611,
0.12777754664421082,
-0.018049774691462517,
-0.531926691532135,
0.1279686838388443,
-0.007052793633192778,
0.6483970284461975,
-0.05896406248211861,
-0.1501561850309372,
-0.6219803094863892,
0.04173445329070091,
-0.16975738108158112,
0.05595079064369202,
-0.17638444900512695,
0.30468761920928955,
-0.02427614852786064,
-0.4557031989097595,
-0.13109761476516724,
0.3823457956314087,
0.415837824344635,
0.06284830719232559,
-0.21002823114395142,
0.19425198435783386,
-0.0006206081015989184,
-0.23787455260753632,
0.14082656800746918,
-0.2639218270778656,
0.09897521883249283,
-0.16573521494865417,
-0.3407815992832184,
0.21492713689804077,
-0.053794827312231064,
-0.34722188115119934,
0.14091794192790985,
0.040133215487003326,
0.25642654299736023,
0.046548593789339066,
-0.4316747188568115,
0.06520144641399384,
0.2491726577281952,
-0.12109988927841187,
0.046564389020204544,
0.03291337937116623,
0.04708051308989525,
-0.20226219296455383,
-0.22350981831550598,
-0.078667551279068,
-0.09127867966890335,
0.45280155539512634,
-0.2509537637233734,
-0.17835606634616852,
0.3761714696884155,
0.13131074607372284,
-0.2986023724079132,
-0.09497164189815521,
0.17940860986709595,
-0.07178070396184921,
-0.49088579416275024,
-0.3483215868473053,
0.02586296945810318,
-0.03631654009222984,
-0.32218852639198303,
0.1668507307767868,
0.26644259691238403,
-0.268661767244339,
0.13787966966629028,
-0.7992357611656189,
-0.009050538763403893,
0.21488462388515472,
0.0030075383838266134,
0.024017678573727608,
0.149525448679924,
-0.1888759583234787,
0.17739173769950867,
-0.149282306432724,
-0.20867323875427246,
0.10378031432628632,
-0.20426246523857117,
-0.07088552415370941,
0.36451682448387146,
0.07976771891117096,
0.1445760428905487,
-0.2587433457374573,
0.03317764401435852,
-0.3906824588775635,
0.07116031646728516,
-0.13811390101909637,
-0.023248665034770966,
0.1677885502576828,
-0.030742058530449867,
-0.07363665848970413,
-0.18448849022388458,
-0.4234689772129059,
0.04950921609997749,
-0.09760311245918274,
-0.1504058539867401,
-0.0286711398512125,
0.05166298896074295,
-0.1411788910627365,
-0.09389808028936386,
0.3486449122428894,
-0.0014612922677770257,
0.21085165441036224,
0.06608052551746368,
0.5716889500617981,
0.036540597677230835,
0.025321051478385925,
0.10666032135486603,
0.010491221211850643,
-0.05285709723830223,
0.1187434047460556,
-0.12426485121250153,
0.1727951318025589,
0.37276801466941833,
-0.31967487931251526,
0.3249737024307251,
0.12096485495567322,
-0.003580347867682576,
0.5077819228172302,
-0.44136834144592285,
0.14628948271274567,
0.3029462695121765,
0.04758293181657791,
-0.28081920742988586,
-0.18597814440727234,
0.40094104409217834,
0.05550473555922508,
-0.06160265952348709,
0.28788307309150696,
0.2537674307823181,
-0.18906085193157196,
0.3890487253665924,
0.12931260466575623,
0.4627905786037445,
0.4501369893550873,
0.2029796838760376,
0.09399180114269257,
0.07953852415084839,
0.039334408938884735,
-0.07041053473949432,
0.3201724588871002,
-0.03206917643547058,
0.4540112614631653,
-0.26134932041168213,
0.10916915535926819,
0.042585600167512894,
0.17199309170246124,
-0.1905471384525299,
-0.22671547532081604,
0.1692727506160736,
-0.16528286039829254,
0.03991120681166649,
0.04554257169365883,
-0.16025668382644653,
0.41409268975257874,
-0.4061877727508545,
-0.11181599646806717,
0.019763395190238953,
0.2420540153980255,
0.0456828773021698,
-0.04843936488032341,
-0.22430095076560974,
-0.2722095847129822,
-0.13577476143836975,
-0.1845918595790863,
0.13575440645217896,
-0.5232680439949036,
0.2045874297618866,
0.1481914073228836,
-0.15736085176467896,
-0.2957589328289032,
-0.022704875096678734,
0.2689617872238159,
0.07167591154575348,
-0.11483670771121979,
0.32660362124443054,
0.21353939175605774,
0.06520364433526993,
0.11184805631637573,
0.2881097197532654,
0.4642573297023773,
0.2599305212497711,
-0.11090297251939774,
-0.005332000087946653,
-0.005477906670421362,
-0.15168729424476624,
-0.2587796449661255,
0.2607494592666626,
0.07047976553440094,
0.05745409429073334,
0.3448998034000397,
0.16660787165164948,
-0.09344500303268433,
-0.10949686914682388,
0.2727874517440796,
0.014625404961407185,
-0.17558227479457855,
0.15599672496318817,
-0.478434681892395,
-0.010587114840745926,
-0.30960944294929504,
0.04260561615228653,
-0.33616748452186584,
-0.011536414735019207,
0.21199756860733032,
0.024480290710926056,
0.1457008272409439,
-0.20482765138149261,
0.024099038913846016,
0.03940727934241295,
0.40860456228256226,
0.3885654807090759,
0.2942712903022766,
-0.26161468029022217,
-0.587248682975769,
-0.8084725141525269,
0.1373801976442337,
-0.20188994705677032,
-0.487253874540329,
0.03158647194504738,
-0.1072382852435112,
0.07699524611234665,
0.2530307173728943,
0.01596740260720253,
0.30990445613861084,
-0.08012846112251282,
-0.10848497599363327,
-0.2610020041465759,
-0.23170648515224457,
-0.25461238622665405,
0.09008113294839859,
-0.19034616649150848,
-0.14210955798625946,
0.19017894566059113,
-0.5949851870536804,
0.0008110312046483159,
0.1639486849308014,
-0.10576578974723816,
-0.20820678770542145,
-0.047876063734292984,
0.5655730366706848,
-0.1149524673819542,
0.2684365510940552,
0.0479271225631237,
-0.23052826523780823,
-0.11256543546915054,
-0.2521613538265228,
0.16323338449001312,
0.6077486276626587,
0.007039847318083048,
0.25515368580818176,
-0.4812214970588684,
0.01699041947722435,
-0.08850860595703125,
-0.026375431567430496,
0.2812677323818207,
-0.1549215465784073,
0.10704972594976425,
-0.07855717837810516,
-0.10624106973409653,
0.25990036129951477,
0.2936933934688568,
0.3048795461654663,
-0.2413357049226761,
0.17668916285037994,
-0.1652902215719223,
-0.1124802678823471,
0.32345446944236755,
-0.30523738265037537,
-0.2612438499927521,
0.17048074305057526,
0.1355915367603302,
0.08982481062412262,
0.17520219087600708,
-0.2406042516231537,
0.1892065703868866,
0.3313727080821991,
0.1525106132030487,
-0.19498689472675323,
0.27468499541282654,
-0.36220479011535645,
-0.16526080667972565,
-0.04521695524454117,
0.13301171362400055,
0.03234302997589111,
0.010824753902852535,
0.020680520683526993,
-0.025503193959593773
] |
https://github.com/huggingface/datasets/issues/1673 | Unable to Download Hindi Wikipedia Dataset | Currently this dataset is only available when the library is installed from source since it was added after the last release.
We pin the dataset version with the library version so that people can have a reproducible dataset and processing when pinning the library.
We'll see if we can provide access to newer datasets with a warning that they are newer than your library version, that would help in cases like yours. | I used the Dataset Library in Python to load the wikipedia dataset with the Hindi Config 20200501.hi along with something called beam_runner='DirectRunner' and it keeps giving me the error that the file is not found. I have attached the screenshot of the error and the code both. Please help me to understand how to resolve this issue.


| 72 | Unable to Download Hindi Wikipedia Dataset
I used the Dataset Library in Python to load the wikipedia dataset with the Hindi Config 20200501.hi along with something called beam_runner='DirectRunner' and it keeps giving me the error that the file is not found. I have attached the screenshot of the error and the code both. Please help me to understand how to resolve this issue.


Currently this dataset is only available when the library is installed from source since it was added after the last release.
We pin the dataset version with the library version so that people can have a reproducible dataset and processing when pinning the library.
We'll see if we can provide access to newer datasets with a warning that they are newer than your library version, that would help in cases like yours. | [
-0.1846337616443634,
0.037301838397979736,
-0.06111956387758255,
0.22921812534332275,
0.05320935323834419,
0.11538349837064743,
-0.02166111022233963,
0.34670373797416687,
0.2222076803445816,
0.024645183235406876,
0.3987331986427307,
0.07446524500846863,
0.046689473092556,
0.21727901697158813,
0.14812180399894714,
-0.38319724798202515,
0.07112376391887665,
-0.003280864330008626,
0.04073721915483475,
0.12777814269065857,
0.0758776143193245,
0.27726638317108154,
-0.27217766642570496,
-0.00853116624057293,
-0.5351589322090149,
-0.014767409302294254,
0.20697751641273499,
-0.10298147797584534,
-0.33290594816207886,
-0.38784027099609375,
0.4530763626098633,
0.0746859461069107,
0.32723110914230347,
0.2894623577594757,
-0.0001179289974970743,
0.08400136977434158,
0.521790087223053,
-0.15997697412967682,
-0.3209838569164276,
-0.4747387766838074,
-0.13403399288654327,
-0.31257200241088867,
0.10334979742765427,
-0.21502846479415894,
-0.12813223898410797,
0.22583401203155518,
0.36693260073661804,
-0.29744279384613037,
0.1387927085161209,
0.12421727180480957,
0.16407173871994019,
-0.1203647330403328,
0.38694489002227783,
-0.1464686244726181,
0.20308156311511993,
0.2014707326889038,
-0.05526382848620415,
0.29838109016418457,
0.0545506477355957,
0.1054256483912468,
-0.07323829084634781,
0.18096190690994263,
0.04458468407392502,
-0.12732528150081635,
0.3103479743003845,
-0.3043246567249298,
-0.2426699995994568,
-0.42693424224853516,
0.4759138524532318,
0.3865131139755249,
1.1295324563980103,
-0.37158212065696716,
-0.16774748265743256,
0.15151441097259521,
-0.044821109622716904,
0.22064055502414703,
0.410185307264328,
0.4490489065647125,
-0.24330678582191467,
-0.012051699683070183,
0.17080311477184296,
-0.3701300621032715,
-0.15783341228961945,
0.36458614468574524,
0.03164418414235115,
0.20042818784713745,
0.009139074012637138,
0.1854780614376068,
-0.03073619306087494,
-0.21451245248317719,
-0.025019394233822823,
-0.0500652939081192,
0.12004624307155609,
0.3106347620487213,
-0.2569940984249115,
0.13859862089157104,
-0.1274021416902542,
0.13060253858566284,
0.09873652458190918,
-0.15333451330661774,
-0.04144556075334549,
-0.0029115239158272743,
-0.09503868967294693,
-0.004145063925534487,
0.36192309856414795,
-0.08065517246723175,
0.007813981734216213,
0.20962536334991455,
0.25645527243614197,
0.26719966530799866,
-0.013993673026561737,
-0.060756683349609375,
0.06112074851989746,
-0.4209553301334381,
-0.5915758609771729,
-0.02598118595778942,
-0.016263533383607864,
-0.2765040397644043,
-0.12874746322631836,
0.004456702154129744,
-0.34573087096214294,
-0.20750792324543,
0.0737193301320076,
0.03343338891863823,
0.03131068870425224,
0.13125717639923096,
0.06193029135465622,
0.049178510904312134,
-0.15019583702087402,
-0.3245726227760315,
-0.05069601535797119,
0.2413206845521927,
-0.3002292215824127,
0.036185793578624725,
0.2658059895038605,
-0.25713253021240234,
0.37417489290237427,
0.04769737273454666,
-0.19774281978607178,
0.0010913368314504623,
-0.06699565052986145,
-0.24117130041122437,
-0.30816885828971863,
0.19733837246894836,
0.1855812817811966,
0.44369077682495117,
-0.2013191282749176,
-0.10001199692487717,
-0.03849842771887779,
0.148078054189682,
-0.27256566286087036,
-0.012922115623950958,
0.07058228552341461,
0.07452641427516937,
-0.2666236162185669,
-0.11878950148820877,
0.048004861921072006,
0.2205325961112976,
-0.05825943499803543,
-0.41375523805618286,
0.009203551337122917,
-0.019255490973591805,
-0.11509145796298981,
-0.31713518500328064,
0.310176819562912,
0.45626574754714966,
-0.705532431602478,
0.08297302573919296,
-0.12599514424800873,
-0.004092850256711245,
0.08268307894468307,
-0.05131933465600014,
-0.23397687077522278,
0.5790061950683594,
-0.2916669547557831,
0.04421711713075638,
0.575234055519104,
-0.2936263680458069,
-0.5257561802864075,
-0.013343674130737782,
-0.023996543139219284,
0.05788116157054901,
0.055675167590379715,
0.25807347893714905,
0.18375493586063385,
0.006373321171849966,
-0.13927198946475983,
0.3432023227214813,
0.09719104319810867,
-0.13117307424545288,
-0.28230002522468567,
-0.0902165099978447,
0.33221176266670227,
0.15329024195671082,
0.24013400077819824,
-0.1168656274676323,
0.1273593157529831,
0.4729166626930237,
0.3813786208629608,
0.03541415184736252,
0.16063861548900604,
0.3658226430416107,
-0.2541014850139618,
0.09451771527528763,
0.22997502982616425,
-0.08826439827680588,
-0.051249705255031586,
0.255035400390625,
-0.02063295617699623,
-0.07136563211679459,
-0.12114638835191727,
0.019950617104768753,
-0.4031441807746887,
0.01177236158400774,
-0.23325562477111816,
0.18140365183353424,
0.0689975917339325,
0.01323785725980997,
0.11038709431886673,
0.35238394141197205,
-0.05598599091172218,
0.17272056639194489,
-0.2753528952598572,
0.03064551204442978,
-0.34048280119895935,
0.4449903070926666,
-0.10944502800703049,
-0.08133535832166672,
0.030113816261291504,
0.14069204032421112,
0.17177586257457733,
-0.005681872833520174,
-0.1516198366880417,
0.005304331425577402,
0.10934025794267654,
0.026414552703499794,
0.25054439902305603,
-0.027560167014598846,
0.1490459144115448,
-0.5346194505691528,
0.2565496861934662,
0.5513418912887573,
0.037788279354572296,
-0.015581668354570866,
0.039543602615594864,
0.05512446537613869,
-0.23083281517028809,
0.06037687882781029,
-0.06959075480699539,
0.1959153562784195,
0.3569636642932892,
0.09267878532409668,
0.0055164736695587635,
0.012829958461225033,
0.2818470001220703,
0.41827866435050964,
0.22170892357826233,
-0.016797631978988647,
-0.09619488567113876,
0.040842022746801376,
0.578899085521698,
0.056446585804224014,
0.015723664313554764,
0.12678250670433044,
-0.25645771622657776,
-0.07070227712392807,
0.10736946761608124,
0.1339578926563263,
0.03805622458457947,
0.10633732378482819,
0.01626609079539776,
-0.20752689242362976,
0.07518360763788223,
-0.17919130623340607,
0.20184408128261566,
0.16639462113380432,
0.2951560318470001,
0.15577729046344757,
-0.16343319416046143,
0.0725022628903389,
-0.1826339215040207,
-0.07712092995643616,
0.04504972696304321,
0.32069331407546997,
-0.1707877814769745,
-0.05054536461830139,
-0.34831708669662476,
-0.5186842679977417,
-0.3468504548072815,
-0.3065919578075409,
-0.486923485994339,
-0.2183830291032791,
-0.075295090675354,
-0.12499085068702698,
0.017376679927110672,
0.04531652480363846,
-0.03870207071304321,
-0.12220584601163864,
0.04492296651005745,
-0.33326226472854614,
-0.0671156644821167,
-0.3668974041938782,
-0.334878146648407,
-0.026407435536384583,
0.5341212749481201,
0.06150512769818306,
0.25624391436576843,
-0.2601425051689148,
-0.051722921431064606,
-0.623921275138855,
-0.22999952733516693,
0.09482071548700333,
-0.04623012989759445,
-0.1074347123503685,
0.0731048732995987,
0.6945299506187439,
-0.19537004828453064,
0.0020848989952355623,
0.03590163215994835,
0.2028859257698059,
-0.06501886248588562,
-0.10635200887918472,
-0.0644029900431633,
0.00372268445789814,
0.13782036304473877,
-0.5049890875816345,
-0.37562358379364014,
-0.24455539882183075,
-0.06489723175764084,
0.10171370953321457,
0.056053586304187775,
-0.0199141688644886,
0.09311546385288239,
0.03109164535999298,
0.2679344713687897,
0.15189529955387115,
-0.028338482603430748,
-0.14199407398700714,
0.34710773825645447,
-0.14320097863674164,
-0.5207158327102661,
0.5949020981788635,
0.007285986561328173,
0.18746039271354675,
0.08476125448942184,
-0.3583531677722931,
0.3445151150226593,
0.07965186983346939,
0.251549631357193,
0.17100951075553894,
-0.0006900204461999238,
0.22844718396663666,
-0.28054893016815186,
0.24481137096881866,
0.08502806723117828,
-0.18368391692638397,
0.12682457268238068,
-0.3386279046535492,
0.48291391134262085,
0.3686642348766327,
0.27707526087760925,
-0.018771227449178696,
0.6054492592811584,
0.3167232871055603,
0.05847059190273285,
0.3383820652961731,
0.1432936191558838,
0.03491148725152016,
-0.21719297766685486,
-0.2373213768005371,
0.13224183022975922,
-0.00008054271893342957,
0.07517106086015701,
0.14797353744506836,
0.0855298787355423,
-0.19666524231433868,
-0.26903975009918213,
-0.37666112184524536,
-0.2506541311740875,
-0.3482203185558319,
-0.06891388446092606,
-0.2725540101528168,
0.3399355411529541,
0.11537720263004303,
0.044570501893758774,
0.0012759269447997212,
-0.2917279005050659,
0.19449351727962494,
0.41445592045783997,
-0.07435941696166992,
0.17785146832466125,
0.0403144471347332,
-0.43578076362609863,
-0.2594369351863861,
0.03527427464723587,
0.08748255670070648,
0.3519078195095062,
-0.14061756432056427,
0.22770175337791443,
0.24881252646446228,
0.058352094143629074,
0.5387909412384033,
-0.22992654144763947,
0.13556072115898132,
0.15916286408901215,
0.050537943840026855,
-0.2174157053232193,
-0.1630832850933075,
-0.006016283296048641,
0.30070874094963074,
0.26359638571739197,
-0.11307349056005478,
-0.47022464871406555,
-0.1034751757979393,
0.37767311930656433,
0.36129504442214966,
-0.0021073033567517996,
-0.09580782055854797,
-0.23539260029792786,
-0.20125070214271545,
-0.27704113721847534,
-0.2497871369123459,
-0.1831018477678299,
0.4537196159362793,
0.18654832243919373,
0.1727631688117981,
0.050478093326091766,
-0.0033688987605273724,
-0.17201699316501617,
-0.09689246863126755,
0.37210631370544434,
0.2365720123052597,
-0.05147165060043335,
0.34598034620285034,
0.2768329381942749,
-0.23073643445968628,
0.31087639927864075,
0.20155644416809082,
-0.19603940844535828,
0.06400451809167862,
-0.036384038627147675,
-0.09181042015552521,
0.09265303611755371,
-0.10909575968980789,
0.05491456761956215,
0.03435514494776726,
-0.39284878969192505,
0.06954299658536911,
-0.1404053270816803,
0.14142270386219025,
0.10218803584575653,
-0.5075059533119202,
-0.4818606972694397,
0.5160729289054871,
0.20667484402656555,
0.1307380050420761,
0.30502820014953613,
0.12191888689994812,
-0.22659048438072205,
0.11873207986354828,
0.08712297677993774,
0.8414714336395264,
-0.058859001845121384,
0.1046178936958313,
-0.023537147790193558,
0.06648434698581696,
0.46960940957069397,
-0.1648101657629013,
0.0213942714035511,
-0.4580954611301422,
0.06415585428476334,
-0.12561538815498352,
0.03951309621334076,
0.03412145376205444,
-0.10108399391174316,
-0.2395249605178833,
0.4299018681049347,
0.19624312222003937,
0.3532969355583191,
0.10658076405525208,
0.3824317455291748,
0.06144855543971062,
-0.17836478352546692,
-0.2009613811969757,
0.03732466697692871,
-0.17506679892539978,
0.4360244870185852,
-0.26244407892227173,
-0.17218776047229767,
-0.13086570799350739,
-0.009746403433382511,
-0.47354868054389954,
0.1111169159412384,
-0.28535953164100647,
0.3070904016494751,
-0.17019815742969513,
-0.4766334891319275,
0.4796658158302307,
0.37463849782943726,
0.3110160231590271,
0.2961152493953705,
-0.35346850752830505,
0.2413540929555893,
-0.4690702557563782,
-0.4751158058643341,
0.01490648090839386,
0.20510277152061462,
0.3296312093734741,
-0.16232618689537048,
-0.38067784905433655,
0.2140043079853058,
-0.0429227352142334,
-0.015504423528909683,
-0.08984699100255966,
-0.08403817564249039,
0.2972676157951355,
0.09851545840501785,
-0.3534410893917084,
-0.04849238321185112,
-0.03222830593585968,
-0.10685635358095169,
0.11442402750253677,
0.062497176229953766,
0.14969782531261444,
-0.054165035486221313,
0.19901043176651,
-0.10921474546194077,
0.048046793788671494,
0.3589998781681061,
0.062332358211278915,
-0.10016243904829025,
0.4084862172603607,
0.3789876699447632,
-0.4220362901687622,
-0.142910897731781,
-0.05661707744002342,
-0.37232398986816406,
-0.25680601596832275,
-0.09180714935064316,
0.03966427221894264,
0.23319010436534882,
-0.1711026132106781,
0.2240111380815506,
0.06247958540916443,
-0.27685683965682983,
-0.07161621749401093,
-0.4444006085395813,
-0.2308720201253891,
0.2884557247161865,
-0.2411355823278427,
0.010318033397197723,
0.0273758415132761,
-0.2883639335632324,
0.42846551537513733,
-0.2648031711578369,
-0.1915912926197052,
-0.007547236513346434,
-0.14053015410900116,
-0.03648735210299492,
0.13214540481567383,
0.12010852992534637,
-0.13272808492183685,
-0.06462502479553223,
0.04312904179096222,
-0.14253349602222443,
-0.11693887412548065,
-0.08161311596632004,
0.20257753133773804,
0.1139763593673706,
-0.0027470511849969625,
0.05532773584127426,
0.01041731983423233,
-0.5299058556556702,
-0.10020910203456879,
0.027905799448490143,
-0.11418449878692627,
0.038487039506435394,
-0.024120669811964035,
0.1766662448644638,
-0.01779569871723652,
0.03560971841216087,
-0.4783552885055542,
0.3255087435245514,
0.032209549099206924,
0.20056185126304626,
0.09320246428251266,
0.3240568935871124,
0.23939751088619232,
-0.06643572449684143,
-0.45381101965904236,
0.15503178536891937,
-0.06256840378046036,
-0.06098227947950363,
0.23376522958278656,
-0.33727145195007324,
0.34169769287109375,
0.2021017223596573,
0.13015107810497284,
0.08365219086408615,
-0.17865459620952606,
-0.023160401731729507,
0.3648688793182373,
0.07752849906682968,
-0.46186062693595886,
0.02562330849468708,
0.6571719646453857,
0.15929904580116272,
-0.07645201683044434,
0.005209290888160467,
0.3300810754299164,
-0.242338627576828,
-0.021062418818473816,
0.257181853055954,
0.20273534953594208,
-0.08966642618179321,
0.25789716839790344,
0.3942118287086487,
0.36529141664505005,
0.20935963094234467,
0.009370092302560806,
0.11456923931837082,
-0.13525404036045074,
0.5476797223091125,
-0.38806962966918945,
0.14809119701385498,
0.1981542855501175,
-0.12653817236423492,
-0.08371619880199432,
-0.32192063331604004,
0.11543164402246475,
0.21196338534355164,
-0.20543566346168518,
-0.06951803714036942,
-0.0338219478726387,
0.13775187730789185,
0.3002784848213196,
-0.057484887540340424,
-0.22262442111968994,
0.01853329874575138,
-0.2365288883447647,
0.21473997831344604,
-0.4541544020175934,
-0.35008493065834045,
-0.053001418709754944,
0.14816759526729584,
0.1076800748705864,
-0.1282634139060974,
0.006644101347774267,
0.22269047796726227,
-0.19147437810897827,
-0.1691993772983551,
0.7468149662017822,
-0.1285252720117569,
0.025676723569631577,
-0.16399553418159485,
0.06347521394491196,
-0.232609823346138,
-0.09895791858434677,
0.04707081988453865,
0.23978959023952484,
0.1900177299976349,
0.24761228263378143,
-0.2872260808944702,
-0.019746119156479836,
0.046925533562898636,
-0.012835655361413956,
0.12264179438352585,
0.14870452880859375,
0.09207447618246078,
0.006998283788561821,
0.2984035313129425,
0.0865887701511383,
-0.06034958362579346,
-0.2243298590183258,
0.31491389870643616,
0.2164529711008072,
-0.07902847230434418,
-0.04011435806751251,
-0.1905997097492218,
0.04081368073821068,
-0.2115938365459442,
-0.031770627945661545,
-0.5151205658912659,
-0.11728675663471222,
0.34426459670066833,
0.15912067890167236,
-0.002000572392717004,
-0.3801006078720093,
0.020582441240549088,
-0.20639297366142273,
0.39303460717201233,
0.3170328140258789,
0.185878723859787,
-0.35372912883758545,
-0.3557285964488983,
-0.5848138332366943,
0.15778695046901703,
-0.11987600475549698,
-0.1324205994606018,
0.09982586652040482,
0.09736679494380951,
-0.11094623059034348,
0.13287891447544098,
0.3184331953525543,
0.058560263365507126,
0.023185253143310547,
0.3147505819797516,
-0.12971992790699005,
-0.1978243887424469,
-0.19401519000530243,
-0.05422041565179825,
-0.33121150732040405,
-0.09082984924316406,
0.14074824750423431,
-0.4636223018169403,
-0.00786402728408575,
-0.06429214775562286,
-0.17057651281356812,
0.218168705701828,
-0.21655482053756714,
0.11402139067649841,
-0.19797533750534058,
0.48427242040634155,
0.0799909457564354,
-0.001685349503532052,
-0.2617831528186798,
0.1757393479347229,
-0.04255889728665352,
0.49666890501976013,
-0.0828537568449974,
0.3954639732837677,
-0.19834819436073303,
0.30922412872314453,
-0.18970158696174622,
0.38346925377845764,
-0.16395090520381927,
0.34470003843307495,
-0.23709528148174286,
-0.09534772485494614,
-0.06568409502506256,
0.38687801361083984,
0.06792780756950378,
0.19106967747211456,
-0.18565180897712708,
0.05443451181054115,
-0.3627993166446686,
-0.16608422994613647,
0.21196290850639343,
-0.41919565200805664,
-0.18404841423034668,
-0.06317645311355591,
0.08222497254610062,
0.17137055099010468,
0.10934282839298248,
-0.2676991820335388,
0.12024819850921631,
0.1447654515504837,
0.02035154402256012,
-0.05331047996878624,
0.08859178423881531,
-0.1316300928592682,
0.1653032749891281,
0.01961699314415455,
0.006018916144967079,
-0.10200682282447815,
-0.22805699706077576,
-0.15375788509845734,
-0.3175724744796753
] |
https://github.com/huggingface/datasets/issues/1673 | Unable to Download Hindi Wikipedia Dataset | So for now, should i try and install the library from source and then try out the same piece of code? Will it work then, considering both the versions will match then? | I used the Dataset Library in Python to load the wikipedia dataset with the Hindi Config 20200501.hi along with something called beam_runner='DirectRunner' and it keeps giving me the error that the file is not found. I have attached the screenshot of the error and the code both. Please help me to understand how to resolve this issue.


| 32 | Unable to Download Hindi Wikipedia Dataset
I used the Dataset Library in Python to load the wikipedia dataset with the Hindi Config 20200501.hi along with something called beam_runner='DirectRunner' and it keeps giving me the error that the file is not found. I have attached the screenshot of the error and the code both. Please help me to understand how to resolve this issue.


So for now, should i try and install the library from source and then try out the same piece of code? Will it work then, considering both the versions will match then? | [
-0.11161893606185913,
0.13646307587623596,
-0.08705770969390869,
0.25539591908454895,
0.0008567371987737715,
0.05895308405160904,
-0.020084837451577187,
0.3475777208805084,
0.19664326310157776,
-0.031185930594801903,
0.41823217272758484,
0.053538184612989426,
0.07384125888347626,
0.20705746114253998,
0.17622964084148407,
-0.3135470151901245,
0.10876940190792084,
0.12005547434091568,
0.004204087890684605,
0.05926747992634773,
0.0683600977063179,
0.2611468732357025,
-0.22986920177936554,
-0.004864126909524202,
-0.47766828536987305,
0.0012445690808817744,
0.22213947772979736,
-0.05025196447968483,
-0.25844091176986694,
-0.3565152585506439,
0.41096746921539307,
0.04971728473901749,
0.2961828410625458,
0.36863547563552856,
-0.00011994164378847927,
0.13682232797145844,
0.49059605598449707,
-0.18507324159145355,
-0.2386743575334549,
-0.4604792296886444,
-0.09245955944061279,
-0.3030233085155487,
0.02963218092918396,
-0.28577572107315063,
-0.14976738393306732,
0.1927255392074585,
0.31245389580726624,
-0.27823606133461,
0.12959392368793488,
0.14157402515411377,
0.17010171711444855,
-0.09602107107639313,
0.3933211863040924,
-0.08455681800842285,
0.2663614749908447,
0.1897558718919754,
0.01952570676803589,
0.3279041051864624,
-0.030691320076584816,
0.18601049482822418,
-0.08795540034770966,
0.22828570008277893,
0.13061277568340302,
-0.12481106072664261,
0.2921602129936218,
-0.2631482779979706,
-0.2344123274087906,
-0.3487631678581238,
0.4009367823600769,
0.27634599804878235,
1.0225701332092285,
-0.3250438868999481,
-0.22685983777046204,
0.17266981303691864,
-0.08039918541908264,
0.15192776918411255,
0.463224321603775,
0.32949236035346985,
-0.2009408324956894,
-0.02135229855775833,
0.16336290538311005,
-0.42336034774780273,
-0.14243431389331818,
0.39653196930885315,
-0.058276738971471786,
0.1761893481016159,
-0.022496627643704414,
0.16392061114311218,
-0.0848846361041069,
-0.2016356885433197,
0.0008349512936547399,
-0.116204634308815,
0.12153221666812897,
0.22262358665466309,
-0.19901227951049805,
0.11720684170722961,
-0.10283167660236359,
0.15468940138816833,
0.05478142574429512,
-0.19458474218845367,
0.01239579077810049,
0.021174779161810875,
-0.11475246399641037,
-0.06639260053634644,
0.33939680457115173,
-0.08755030483007431,
-0.02464340813457966,
0.24180687963962555,
0.2941329777240753,
0.26723936200141907,
-0.005309791769832373,
-0.025179505348205566,
0.13589639961719513,
-0.44008493423461914,
-0.5205783843994141,
-0.00867900438606739,
-0.01013206411153078,
-0.3164440095424652,
-0.11142975836992264,
0.08144663274288177,
-0.29263123869895935,
-0.2897934317588806,
0.04616060480475426,
0.04229143634438515,
-0.038175974041223526,
0.18502622842788696,
0.06707827001810074,
0.02517700381577015,
-0.183930441737175,
-0.26096218824386597,
-0.04847422614693642,
0.3083529472351074,
-0.3088775873184204,
0.037419047206640244,
0.20978569984436035,
-0.20371729135513306,
0.4332458972930908,
0.01597614586353302,
-0.14860744774341583,
0.041035499423742294,
-0.07188091427087784,
-0.27218320965766907,
-0.20531170070171356,
0.14763730764389038,
0.148271843791008,
0.4279996454715729,
-0.25415360927581787,
-0.04506632313132286,
-0.04538916423916817,
0.1630764901638031,
-0.1861608773469925,
0.023891368880867958,
0.1941388100385666,
0.08776228874921799,
-0.31346166133880615,
-0.08323676884174347,
0.0934654101729393,
0.18905290961265564,
0.00008350877033080906,
-0.540621817111969,
-0.02204275317490101,
-0.03613576665520668,
-0.04323993995785713,
-0.28137677907943726,
0.3444928228855133,
0.43250468373298645,
-0.7107770442962646,
0.13105428218841553,
-0.11302512884140015,
0.03028911165893078,
0.0470133051276207,
-0.03090743161737919,
-0.26157358288764954,
0.6532418727874756,
-0.35137468576431274,
0.02339267171919346,
0.667536199092865,
-0.39904409646987915,
-0.4707462191581726,
-0.0478583425283432,
-0.03677990660071373,
0.09604241698980331,
0.05606865882873535,
0.22572030127048492,
0.1661210060119629,
-0.03869515284895897,
-0.09580922871828079,
0.28017061948776245,
0.0846254751086235,
-0.15134607255458832,
-0.33348727226257324,
-0.08930284529924393,
0.3929632306098938,
0.12886619567871094,
0.29828348755836487,
-0.12376966327428818,
0.09043273329734802,
0.4440346956253052,
0.3604438602924347,
-0.005893823225051165,
0.09433131664991379,
0.3124653995037079,
-0.2774246633052826,
0.07359062880277634,
0.1572696417570114,
-0.10259385406970978,
-0.03086424060165882,
0.18449771404266357,
-0.013443635776638985,
-0.14412055909633636,
-0.07760422676801682,
-0.012705452740192413,
-0.4661597013473511,
-0.05461038649082184,
-0.24607893824577332,
0.19046767055988312,
0.08028915524482727,
0.05317524075508118,
0.15173019468784332,
0.2807612717151642,
-0.08192677795886993,
0.16427423059940338,
-0.24599198997020721,
0.031140143051743507,
-0.4025273323059082,
0.5011727809906006,
-0.1499483287334442,
-0.08361780643463135,
0.07487007975578308,
0.12124056369066238,
0.18423889577388763,
-0.047068558633327484,
-0.18863342702388763,
0.015283750370144844,
0.0330636091530323,
0.05424969643354416,
0.18068894743919373,
-0.13348349928855896,
0.21012508869171143,
-0.4950469732284546,
0.25442856550216675,
0.5814876556396484,
0.09685146063566208,
-0.026298915967345238,
0.08260942250490189,
-0.002607035916298628,
-0.21059764921665192,
0.047773271799087524,
0.007369410712271929,
0.05987285077571869,
0.31916913390159607,
0.10818246752023697,
-0.020573724061250687,
-0.016407867893576622,
0.2179354578256607,
0.48141396045684814,
0.256730318069458,
-0.0057961223646998405,
-0.13791495561599731,
0.03551524132490158,
0.6405734419822693,
0.04707327112555504,
-0.03232840076088905,
0.07829557359218597,
-0.15481992065906525,
-0.06523765623569489,
0.11926772445440292,
0.11617805063724518,
0.12075924128293991,
0.10988105088472366,
-0.037807267159223557,
-0.2099817842245102,
0.07560247927904129,
-0.18817774951457977,
0.19308675825595856,
0.2020435780286789,
0.33804094791412354,
0.2567363679409027,
-0.18549522757530212,
0.07739976793527603,
-0.17870882153511047,
-0.08020681887865067,
0.05393189191818237,
0.26177406311035156,
-0.1984219253063202,
-0.01880616694688797,
-0.35524019598960876,
-0.5050309300422668,
-0.43955713510513306,
-0.3351673483848572,
-0.4656640887260437,
-0.17120561003684998,
-0.087059885263443,
-0.16008228063583374,
-0.06532745063304901,
0.10619252175092697,
-0.020081613212823868,
-0.17834784090518951,
-0.03673946484923363,
-0.38172686100006104,
-0.013892054557800293,
-0.3240438997745514,
-0.3724227845668793,
-0.029135506600141525,
0.5464527606964111,
0.09177996963262558,
0.275408536195755,
-0.31896087527275085,
-0.08645360171794891,
-0.6308425068855286,
-0.28297102451324463,
0.12341557443141937,
-0.02576233074069023,
-0.11418924480676651,
0.14406144618988037,
0.626701831817627,
-0.11735375225543976,
-0.0635201707482338,
0.08902310580015182,
0.17322812974452972,
-0.041660062968730927,
-0.20119890570640564,
-0.033210646361112595,
0.06317669153213501,
0.14380066096782684,
-0.581669807434082,
-0.3861139416694641,
-0.2711097300052643,
-0.10430070757865906,
0.14330516755580902,
0.07732360064983368,
-0.12534910440444946,
0.04537791758775711,
0.04988008365035057,
0.3385448455810547,
0.1959770768880844,
-0.03051573969423771,
-0.05566819757223129,
0.3645651638507843,
-0.18906956911087036,
-0.5188430547714233,
0.5080652236938477,
-0.07944226264953613,
0.25105321407318115,
0.1673785299062729,
-0.336894154548645,
0.27514132857322693,
0.09620272368192673,
0.2145347148180008,
0.17937281727790833,
0.14143429696559906,
0.20753337442874908,
-0.2547537088394165,
0.23437219858169556,
0.06853190064430237,
-0.1730421781539917,
0.2150758057832718,
-0.3571271300315857,
0.46593570709228516,
0.4194567799568176,
0.24682767689228058,
-0.17785650491714478,
0.6441900730133057,
0.23836898803710938,
-0.012193343602120876,
0.331051230430603,
0.14441876113414764,
0.11757870018482208,
-0.19172105193138123,
-0.18293249607086182,
0.07245656102895737,
0.004951279144734144,
0.026777278631925583,
0.12718720734119415,
0.008724743500351906,
-0.16070295870304108,
-0.31844428181648254,
-0.3897809088230133,
-0.3169330358505249,
-0.40878182649612427,
-0.039039019495248795,
-0.2150544822216034,
0.335877388715744,
0.10237139463424683,
0.10537445545196533,
-0.01044036727398634,
-0.23693133890628815,
0.23278886079788208,
0.36701929569244385,
-0.07454288005828857,
0.15145349502563477,
0.01567431166768074,
-0.49388349056243896,
-0.26786932349205017,
0.10957711935043335,
0.15590286254882812,
0.36754292249679565,
-0.03758443892002106,
0.1003229096531868,
0.14621631801128387,
-0.13293145596981049,
0.5034661293029785,
-0.21041810512542725,
0.07516787201166153,
0.14870348572731018,
0.03136002644896507,
-0.17803840339183807,
-0.17822039127349854,
-0.020472049713134766,
0.34546688199043274,
0.286937415599823,
-0.16966179013252258,
-0.5061261653900146,
-0.12800639867782593,
0.4084998667240143,
0.43832769989967346,
-0.05200648307800293,
-0.053825344890356064,
-0.2738628685474396,
-0.2603931427001953,
-0.25102972984313965,
-0.2795878052711487,
-0.2178497612476349,
0.4130963981151581,
0.21535909175872803,
0.1571737676858902,
0.020384062081575394,
-0.04940551891922951,
-0.1336655616760254,
-0.0247952863574028,
0.46498605608940125,
0.16590414941310883,
0.009291519410908222,
0.3347705006599426,
0.26409217715263367,
-0.19374287128448486,
0.35601088404655457,
0.17061299085617065,
-0.09005074948072433,
0.09017863869667053,
-0.06348318606615067,
-0.09271185100078583,
0.18130701780319214,
-0.12471336126327515,
0.07467164844274521,
-0.00428359117358923,
-0.4284432828426361,
0.10969673097133636,
-0.11769068241119385,
0.05522206053137779,
0.13453775644302368,
-0.4963890612125397,
-0.5103209614753723,
0.4413459599018097,
0.23003873229026794,
0.08859017491340637,
0.2856921851634979,
0.10801419615745544,
-0.2988108992576599,
0.0704561248421669,
0.08634820580482483,
0.8700007200241089,
0.03194789960980415,
0.1575450748205185,
0.04692969471216202,
0.020954402163624763,
0.4941306710243225,
-0.1662570983171463,
0.019841989502310753,
-0.453328013420105,
0.10528846830129623,
-0.08929580450057983,
0.026227986440062523,
0.07917723059654236,
-0.1005077064037323,
-0.21686728298664093,
0.5290196537971497,
0.2651734948158264,
0.3622138500213623,
0.01976287178695202,
0.42334696650505066,
0.06286817044019699,
-0.15936334431171417,
-0.2850796580314636,
0.013070222921669483,
-0.1367732584476471,
0.4633348286151886,
-0.3115532696247101,
-0.15872158110141754,
-0.20441652834415436,
-0.10010305047035217,
-0.3631283640861511,
0.05453974008560181,
-0.2672945559024811,
0.2633298635482788,
-0.2275201380252838,
-0.5686742663383484,
0.4709673225879669,
0.3436931073665619,
0.37852588295936584,
0.33574044704437256,
-0.25800904631614685,
0.22184531390666962,
-0.39467498660087585,
-0.38214272260665894,
0.01960047334432602,
0.253535658121109,
0.29882755875587463,
-0.223318949341774,
-0.32864144444465637,
0.25672557950019836,
-0.07972526550292969,
0.02279752865433693,
-0.13687995076179504,
-0.10165981203317642,
0.2737202048301697,
0.03240592032670975,
-0.3632274866104126,
0.012234953232109547,
-0.05220896378159523,
-0.07889293879270554,
0.1035783663392067,
0.002719571813941002,
0.10116560757160187,
-0.040910858660936356,
0.12356500327587128,
-0.04330900311470032,
-0.002266220049932599,
0.2945351004600525,
0.1677815020084381,
-0.1583179086446762,
0.37717434763908386,
0.26597917079925537,
-0.39431557059288025,
-0.11785631626844406,
-0.11526481062173843,
-0.34693238139152527,
-0.3014829158782959,
-0.07580196857452393,
0.02942885458469391,
0.1562175154685974,
-0.2124091237783432,
0.23154430091381073,
0.12007859349250793,
-0.1702413111925125,
0.00031632385798729956,
-0.3563266098499298,
-0.2629662752151489,
0.32531383633613586,
-0.023871760815382004,
0.07747766375541687,
0.047633685171604156,
-0.23975318670272827,
0.3145460784435272,
-0.2913708984851837,
-0.19070051610469818,
-0.042490094900131226,
-0.1248413622379303,
0.04111615940928459,
0.06793396174907684,
0.11694256961345673,
-0.18290585279464722,
-0.03742807358503342,
0.043380510061979294,
-0.06570293754339218,
-0.09602350741624832,
-0.06344400346279144,
0.24956265091896057,
0.139384463429451,
-0.022188730537891388,
0.04680626094341278,
0.06024669483304024,
-0.45801517367362976,
-0.01980595290660858,
0.06168273091316223,
-0.12214447557926178,
-0.038698092103004456,
-0.018839530646800995,
0.17967770993709564,
-0.04589465260505676,
-0.01740466058254242,
-0.5574914216995239,
0.3837874233722687,
0.05766494572162628,
0.27619218826293945,
0.13307392597198486,
0.38436129689216614,
0.20524956285953522,
-0.06467940658330917,
-0.4044153392314911,
0.09428885579109192,
-0.1726573258638382,
0.019146205857396126,
0.18242938816547394,
-0.3665362596511841,
0.3528916835784912,
0.2252860814332962,
0.16961978375911713,
0.21716824173927307,
-0.19024577736854553,
-0.03157718479633331,
0.3662300407886505,
0.0816735252737999,
-0.5075833201408386,
0.08731191605329514,
0.5957999229431152,
-0.007447517476975918,
-0.020694592967629433,
0.08272730559110641,
0.3130990266799927,
-0.20658743381500244,
-0.025811484083533287,
0.2825283408164978,
0.14409349858760834,
-0.018782014027237892,
0.26036855578422546,
0.33306556940078735,
0.33786219358444214,
0.25190865993499756,
-0.01301807351410389,
0.0869087502360344,
-0.19732527434825897,
0.5674141049385071,
-0.46242621541023254,
0.20749011635780334,
0.19395537674427032,
-0.0950288474559784,
-0.10868164896965027,
-0.30347010493278503,
0.16815070807933807,
0.2585102319717407,
-0.13550901412963867,
-0.03623297065496445,
0.03528251126408577,
0.051706764847040176,
0.26713791489601135,
-0.1691540628671646,
-0.12827961146831512,
0.040975652635097504,
-0.1965317577123642,
0.27404510974884033,
-0.4266391098499298,
-0.3769049644470215,
-0.08376290649175644,
0.19642511010169983,
0.07702599465847015,
-0.09484444558620453,
0.006340534891933203,
0.28209415078163147,
-0.18011420965194702,
-0.18136096000671387,
0.7708134651184082,
-0.2583172917366028,
0.06915369629859924,
-0.13650596141815186,
0.18439243733882904,
-0.13489481806755066,
-0.19448423385620117,
0.09755753725767136,
0.2608778178691864,
0.14805740118026733,
0.27694907784461975,
-0.21196259558200836,
-0.015836605802178383,
0.09528003633022308,
0.02450595237314701,
0.11416986584663391,
0.13544940948486328,
0.13436923921108246,
0.05501607060432434,
0.31640395522117615,
0.10580550134181976,
-0.09450368583202362,
-0.1932097226381302,
0.30635562539100647,
0.11150503158569336,
-0.16949675977230072,
0.08685867488384247,
-0.14423027634620667,
0.005742007866501808,
-0.2012883871793747,
-0.022591067478060722,
-0.5413020849227905,
-0.12065549939870834,
0.27947211265563965,
0.1686350256204605,
0.008340351283550262,
-0.3549896478652954,
0.012347913347184658,
-0.20088358223438263,
0.3789103627204895,
0.23894748091697693,
0.2652493715286255,
-0.3975162208080292,
-0.36756548285484314,
-0.6659092903137207,
0.15242590010166168,
-0.1094154343008995,
-0.1661463975906372,
0.03177662193775177,
0.09338448941707611,
-0.08173101395368576,
0.16655795276165009,
0.40522679686546326,
0.06374029070138931,
0.00037610792787745595,
0.3149203062057495,
-0.11845780909061432,
-0.19611933827400208,
-0.25162985920906067,
-0.07192729413509369,
-0.3258894085884094,
-0.14771081507205963,
0.07254546135663986,
-0.4315219223499298,
-0.006800592411309481,
-0.049363747239112854,
-0.19839395582675934,
0.237188458442688,
-0.2616608142852783,
0.10344019532203674,
-0.15720921754837036,
0.4954678416252136,
0.030281588435173035,
-0.09850596636533737,
-0.13533641397953033,
0.13754494488239288,
-0.07231268286705017,
0.5550064444541931,
-0.029939964413642883,
0.4324307441711426,
-0.1629997342824936,
0.37046679854393005,
-0.24831895530223846,
0.396675169467926,
-0.10451407730579376,
0.3519788682460785,
-0.1611780971288681,
-0.09055116772651672,
-0.04998243600130081,
0.2990831136703491,
0.15290048718452454,
0.3317387104034424,
-0.18460239470005035,
0.10339651256799698,
-0.4474148750305176,
-0.20450259745121002,
0.2256164401769638,
-0.45894718170166016,
-0.14083246886730194,
-0.10771957039833069,
0.12489647418260574,
0.1781659573316574,
0.07445188611745834,
-0.32655200362205505,
0.12418148666620255,
0.12458179891109467,
0.014208712615072727,
-0.03455432876944542,
0.06186814233660698,
-0.1609523892402649,
0.06985041499137878,
-0.02777317352592945,
-0.01268741488456726,
-0.12791697680950165,
-0.28432348370552063,
-0.10380494594573975,
-0.3264334499835968
] |
https://github.com/huggingface/datasets/issues/1673 | Unable to Download Hindi Wikipedia Dataset | Hey, so i tried installing the library from source using the commands : **git clone https://github.com/huggingface/datasets**, **cd datasets** and then **pip3 install -e .**. But i still am facing the same error that file is not found. Please advise.
The Datasets library version now is 1.1.3 by installing from source as compared to the earlier 1.0.3 that i had loaded using pip command but I am still getting same error

| I used the Dataset Library in Python to load the wikipedia dataset with the Hindi Config 20200501.hi along with something called beam_runner='DirectRunner' and it keeps giving me the error that the file is not found. I have attached the screenshot of the error and the code both. Please help me to understand how to resolve this issue.


| 71 | Unable to Download Hindi Wikipedia Dataset
I used the Dataset Library in Python to load the wikipedia dataset with the Hindi Config 20200501.hi along with something called beam_runner='DirectRunner' and it keeps giving me the error that the file is not found. I have attached the screenshot of the error and the code both. Please help me to understand how to resolve this issue.


Hey, so i tried installing the library from source using the commands : **git clone https://github.com/huggingface/datasets**, **cd datasets** and then **pip3 install -e .**. But i still am facing the same error that file is not found. Please advise.
The Datasets library version now is 1.1.3 by installing from source as compared to the earlier 1.0.3 that i had loaded using pip command but I am still getting same error

| [
-0.14655029773712158,
0.06893201172351837,
-0.06859811395406723,
0.2491660863161087,
0.09402235597372055,
0.0981622263789177,
-0.010803690180182457,
0.300265371799469,
0.20563140511512756,
0.010553015395998955,
0.3993402123451233,
0.12490245699882507,
0.09441278874874115,
0.1712745875120163,
0.20686882734298706,
-0.34491342306137085,
0.06559481471776962,
0.10910078138113022,
-0.0037665897980332375,
0.10991716384887695,
0.1411299705505371,
0.3182806968688965,
-0.2545855939388275,
-0.022316601127386093,
-0.4677814841270447,
0.0209260992705822,
0.18058490753173828,
-0.1294429898262024,
-0.32637569308280945,
-0.3986920118331909,
0.4391382932662964,
0.054443154484033585,
0.2593982517719269,
0.3542148172855377,
-0.0001193817297462374,
0.09857195615768433,
0.501139760017395,
-0.1628396213054657,
-0.3172685205936432,
-0.48802170157432556,
-0.1099456250667572,
-0.3709638714790344,
0.07774887979030609,
-0.2636031210422516,
-0.10193265974521637,
0.17797891795635223,
0.33135923743247986,
-0.17153827846050262,
0.07503081858158112,
0.1668010652065277,
0.15847823023796082,
-0.08959595859050751,
0.4187115728855133,
-0.11091732978820801,
0.21555906534194946,
0.24468740820884705,
-0.06079963222146034,
0.28808528184890747,
0.04875454306602478,
0.09818454086780548,
-0.025601396337151527,
0.18521299958229065,
0.0508829765021801,
-0.08271171897649765,
0.31746017932891846,
-0.29346737265586853,
-0.25737330317497253,
-0.3573925197124481,
0.4213842451572418,
0.33791783452033997,
1.0225021839141846,
-0.3985832929611206,
-0.27388668060302734,
0.11280138045549393,
-0.005135030951350927,
0.18228639662265778,
0.42324334383010864,
0.41334623098373413,
-0.25054243206977844,
-0.01556734275072813,
0.07766631990671158,
-0.3905896246433258,
-0.13467633724212646,
0.3762136995792389,
0.08350832015275955,
0.10728276520967484,
-0.04830741137266159,
0.15692752599716187,
-0.011775169521570206,
-0.19300250709056854,
-0.028620362281799316,
-0.0906694084405899,
0.12198910862207413,
0.3296683430671692,
-0.2907233238220215,
0.17773525416851044,
-0.1184542253613472,
0.15665817260742188,
0.09861550480127335,
-0.1804720014333725,
-0.019992612302303314,
0.024081453680992126,
-0.10723991692066193,
0.025562526658177376,
0.34622207283973694,
-0.029797106981277466,
-0.03160063549876213,
0.2042379081249237,
0.25283360481262207,
0.3454889953136444,
0.03784342482686043,
-0.057752542197704315,
0.06660855561494827,
-0.3518577516078949,
-0.5248510837554932,
-0.055072203278541565,
-0.06650503724813461,
-0.2746732234954834,
-0.18362292647361755,
0.016287459060549736,
-0.2484949380159378,
-0.1921253800392151,
0.10005795210599899,
0.05230514705181122,
0.0006564370123669505,
0.17180009186267853,
0.02455030381679535,
0.02927948720753193,
-0.1951863169670105,
-0.24482211470603943,
-0.041518356651067734,
0.34070420265197754,
-0.34169310331344604,
0.029413951560854912,
0.2804214358329773,
-0.2680833041667938,
0.45138439536094666,
0.06202590838074684,
-0.1783178299665451,
0.024920662865042686,
-0.07757493853569031,
-0.24942553043365479,
-0.23913156986236572,
0.21497806906700134,
0.17169618606567383,
0.4294680058956146,
-0.17782902717590332,
-0.08995644003152847,
-0.023065852001309395,
0.07995717227458954,
-0.21606163680553436,
0.02275729924440384,
0.07057752460241318,
0.06495120376348495,
-0.32624536752700806,
-0.10108260810375214,
-0.07285865396261215,
0.16522395610809326,
-0.036229006946086884,
-0.44355499744415283,
0.026736635714769363,
-0.04158349707722664,
-0.048241760581731796,
-0.27891838550567627,
0.3309086263179779,
0.4413672387599945,
-0.6709672212600708,
0.052451927214860916,
-0.15341724455356598,
0.00017284270143136382,
0.10143272578716278,
0.008435727097094059,
-0.24767646193504333,
0.5937278270721436,
-0.3557329773902893,
0.03638996556401253,
0.5849051475524902,
-0.3862290382385254,
-0.5270812511444092,
0.00947649497538805,
-0.0043358877301216125,
0.08285816758871078,
0.07659143209457397,
0.24259735643863678,
0.16985595226287842,
0.038708269596099854,
-0.19012026488780975,
0.3134418725967407,
0.07148148119449615,
-0.04689345508813858,
-0.2660345733165741,
-0.12860693037509918,
0.30438414216041565,
0.159520223736763,
0.21368154883384705,
-0.17062553763389587,
0.16539548337459564,
0.42609328031539917,
0.3458837866783142,
-0.0076901777647435665,
0.17911666631698608,
0.44678664207458496,
-0.17614679038524628,
0.1405317783355713,
0.2131311595439911,
-0.1383679062128067,
-0.05268802121281624,
0.19614361226558685,
0.0010354400146752596,
-0.042212869971990585,
-0.2385878562927246,
-0.007119809277355671,
-0.42266228795051575,
-0.06250632554292679,
-0.28374481201171875,
0.11420203745365143,
0.06459995359182358,
0.034682389348745346,
0.13237495720386505,
0.2899645268917084,
-0.07081914693117142,
0.21512216329574585,
-0.2339039444923401,
0.04512261971831322,
-0.42071202397346497,
0.40648144483566284,
-0.13210071623325348,
-0.10839566588401794,
0.05494106188416481,
0.1968880295753479,
0.12797510623931885,
-0.021886568516492844,
-0.18314822018146515,
0.03941266983747482,
0.06950218975543976,
0.025119181722402573,
0.2400256246328354,
-0.12056280672550201,
0.16849376261234283,
-0.5526186227798462,
0.21127952635288239,
0.47900187969207764,
0.0803966075181961,
0.0479687936604023,
-0.033737972378730774,
-0.05168474465608597,
-0.24636319279670715,
0.054725319147109985,
-0.018978608772158623,
0.1343647688627243,
0.3730355501174927,
0.11782784759998322,
-0.0066963378340005875,
-0.00231314729899168,
0.2520800232887268,
0.4505520761013031,
0.2667425572872162,
0.03317560255527496,
-0.052322763949632645,
0.056405410170555115,
0.6210758090019226,
0.07231330871582031,
0.004786650650203228,
0.13271720707416534,
-0.23962508141994476,
-0.10667366534471512,
0.07859841734170914,
0.1280670315027237,
0.13467919826507568,
0.1067078709602356,
0.013132327236235142,
-0.23359404504299164,
0.13730360567569733,
-0.1548275500535965,
0.17483527958393097,
0.1962941437959671,
0.23684214055538177,
0.1871282160282135,
-0.12339206039905548,
0.07611102610826492,
-0.18631674349308014,
-0.0816785991191864,
0.06594495475292206,
0.31907179951667786,
-0.18995918333530426,
-0.02992325834929943,
-0.3684743344783783,
-0.50223308801651,
-0.34328126907348633,
-0.32282575964927673,
-0.43441709876060486,
-0.2218509018421173,
-0.0949573665857315,
-0.08813513070344925,
0.0537266880273819,
0.050049860030412674,
0.04059992730617523,
-0.20148000121116638,
0.023613223806023598,
-0.3407522439956665,
-0.08307908475399017,
-0.325429767370224,
-0.32072943449020386,
-0.05059977248311043,
0.5199860334396362,
0.13681115210056305,
0.30065736174583435,
-0.31584542989730835,
-0.09247549623250961,
-0.659554660320282,
-0.2461894005537033,
0.10092410445213318,
-0.05307171121239662,
-0.016034094616770744,
0.18561597168445587,
0.6253237724304199,
-0.2144843190908432,
0.028160689398646355,
0.06580188125371933,
0.151194229722023,
-0.08174445480108261,
-0.07505612075328827,
-0.07509720325469971,
-0.024852368980646133,
0.09200339019298553,
-0.5493101477622986,
-0.36991000175476074,
-0.2726477086544037,
-0.01649300940334797,
0.034429095685482025,
0.058830536901950836,
-0.06580987572669983,
0.030434422194957733,
0.11518264561891556,
0.1985551416873932,
0.2137795239686966,
-0.01256516296416521,
-0.15781265497207642,
0.40938737988471985,
-0.18831810355186462,
-0.5284604430198669,
0.609212338924408,
-0.011941739358007908,
0.273245632648468,
0.0532616451382637,
-0.3130647540092468,
0.2904496192932129,
0.017967170104384422,
0.25368532538414,
0.16469761729240417,
0.1323913335800171,
0.18325945734977722,
-0.29888197779655457,
0.2472977489233017,
0.0479276180267334,
-0.1605924367904663,
0.11974173784255981,
-0.34518173336982727,
0.45369747281074524,
0.34881591796875,
0.28592950105667114,
-0.02692308835685253,
0.6235119104385376,
0.3517341911792755,
0.04418173059821129,
0.4012579321861267,
0.0901486799120903,
0.10086403787136078,
-0.17462684214115143,
-0.27046895027160645,
0.12104219943284988,
0.0026571250054985285,
0.14523820579051971,
0.13055822253227234,
0.04976871237158775,
-0.1058068498969078,
-0.23216348886489868,
-0.33455607295036316,
-0.3322810232639313,
-0.324989378452301,
-0.11720499396324158,
-0.17607611417770386,
0.3473750352859497,
0.11119673401117325,
0.0025076696183532476,
-0.000005386443717725342,
-0.31060901284217834,
0.1543327271938324,
0.42841780185699463,
-0.07138422131538391,
0.21489568054676056,
0.045899648219347,
-0.48857781291007996,
-0.2591533958911896,
-0.009124664589762688,
0.12512902915477753,
0.3944338262081146,
-0.13150162994861603,
0.26897162199020386,
0.2365817427635193,
0.051220014691352844,
0.542058527469635,
-0.2351163774728775,
0.03451107442378998,
0.08497409522533417,
0.04035530984401703,
-0.217071071267128,
-0.16072779893875122,
-0.0016802075551822782,
0.32254064083099365,
0.2367367446422577,
-0.06387559324502945,
-0.5603262782096863,
-0.1590346097946167,
0.41870835423469543,
0.4167238473892212,
-0.003890126710757613,
-0.11832263320684433,
-0.29045554995536804,
-0.25152018666267395,
-0.27784937620162964,
-0.2819133698940277,
-0.14445041120052338,
0.4368577003479004,
0.1976371705532074,
0.13513414561748505,
0.08099526166915894,
0.06411062926054001,
-0.16845785081386566,
-0.12307558208703995,
0.3975956439971924,
0.2212846279144287,
-0.0324389673769474,
0.29523196816444397,
0.2529821991920471,
-0.1995542347431183,
0.34284350275993347,
0.15166187286376953,
-0.1987980455160141,
0.06467192620038986,
-0.06578478962182999,
-0.05218784883618355,
0.052109960466623306,
-0.13396801054477692,
0.09743895381689072,
0.006231782492250204,
-0.3270234763622284,
0.10633323341608047,
-0.13621559739112854,
0.12076640874147415,
0.1430387943983078,
-0.47244131565093994,
-0.5154545307159424,
0.4462739825248718,
0.20111830532550812,
0.1733931452035904,
0.24533499777317047,
0.14156801998615265,
-0.21593239903450012,
0.06639258563518524,
0.004248406738042831,
0.7669916152954102,
-0.060897063463926315,
0.1652667224407196,
0.033288467675447464,
0.10047982633113861,
0.5030770897865295,
-0.13884733617305756,
0.024730214849114418,
-0.4496908485889435,
0.017535045742988586,
-0.1247144490480423,
0.017349518835544586,
0.04243882745504379,
-0.08994446694850922,
-0.2532256841659546,
0.5594905018806458,
0.28339293599128723,
0.3509950339794159,
0.09592825174331665,
0.39102354645729065,
0.019871192052960396,
-0.23448903858661652,
-0.23414315283298492,
0.026188142597675323,
-0.19983302056789398,
0.4416563808917999,
-0.21832916140556335,
-0.16599971055984497,
-0.17231376469135284,
-0.018235670402646065,
-0.42938506603240967,
0.1123373806476593,
-0.2618551552295685,
0.30724722146987915,
-0.15226736664772034,
-0.4519038200378418,
0.5024823546409607,
0.37135839462280273,
0.2734573483467102,
0.31671422719955444,
-0.3428613543510437,
0.19865326583385468,
-0.47358012199401855,
-0.4206259846687317,
0.04183338209986687,
0.20265468955039978,
0.30226877331733704,
-0.13433143496513367,
-0.3665066659450531,
0.18663321435451508,
-0.08962128311395645,
0.039574120193719864,
-0.02583853341639042,
-0.08528435975313187,
0.26401248574256897,
0.0369034968316555,
-0.4308212101459503,
-0.11023574322462082,
-0.05710931867361069,
-0.13755516707897186,
0.09267422556877136,
0.0807587280869484,
0.05542108789086342,
0.037844687700271606,
0.10841697454452515,
-0.1010379046201706,
0.06520430743694305,
0.3398967385292053,
-0.04315928369760513,
-0.19456560909748077,
0.39395368099212646,
0.3470810651779175,
-0.4483513832092285,
-0.14778003096580505,
-0.09579154849052429,
-0.32436978816986084,
-0.31896454095840454,
-0.09777085483074188,
0.08924686163663864,
0.2573283612728119,
-0.13051383197307587,
0.16605141758918762,
0.007525317370891571,
-0.30350884795188904,
-0.0858769416809082,
-0.4674798846244812,
-0.23153391480445862,
0.28427132964134216,
-0.12374667823314667,
0.033261559903621674,
0.08100247383117676,
-0.3440447449684143,
0.3855436444282532,
-0.3068344295024872,
-0.17453975975513458,
0.0019876041915267706,
-0.1550554484128952,
0.004871599841862917,
0.13385441899299622,
0.11743350327014923,
-0.13436348736286163,
-0.07791642099618912,
0.05196016654372215,
-0.10636242479085922,
-0.04987911507487297,
-0.0814204066991806,
0.22751303017139435,
0.11913822591304779,
0.001336811576038599,
0.08680335432291031,
0.050444524735212326,
-0.49088022112846375,
-0.09743554890155792,
-0.008631706237792969,
-0.016831213608384132,
0.010622357949614525,
-0.042054980993270874,
0.21270136535167694,
-0.07494214177131653,
-0.003318928414955735,
-0.4467356503009796,
0.3419928550720215,
0.01564246416091919,
0.1851799339056015,
0.09354113042354584,
0.3374810218811035,
0.2530324161052704,
-0.03609960153698921,
-0.42618879675865173,
0.13667048513889313,
-0.08232848346233368,
-0.034702468663454056,
0.24623416364192963,
-0.3669513463973999,
0.3672496974468231,
0.22439181804656982,
0.15172062814235687,
0.11613763868808746,
-0.21073287725448608,
0.028261689469218254,
0.3478686213493347,
0.08370564877986908,
-0.4758676290512085,
0.016556456685066223,
0.6047456860542297,
0.10224969685077667,
-0.05329553782939911,
0.048984695225954056,
0.3269350230693817,
-0.2605022192001343,
-0.03982524573802948,
0.25667446851730347,
0.22919557988643646,
-0.020724091678857803,
0.22100067138671875,
0.38794615864753723,
0.39467427134513855,
0.20138289034366608,
0.028447536751627922,
0.06939766556024551,
-0.20003245770931244,
0.6186948418617249,
-0.4213272035121918,
0.19753055274486542,
0.1657884269952774,
-0.03260841965675354,
-0.1267835646867752,
-0.2862223982810974,
0.11914613842964172,
0.16869434714317322,
-0.0923418253660202,
-0.05366114526987076,
-0.03898513317108154,
0.19532887637615204,
0.26211777329444885,
-0.037030141800642014,
-0.19866019487380981,
0.08074276149272919,
-0.24149943888187408,
0.2650499939918518,
-0.42433664202690125,
-0.3099018633365631,
-0.09611590951681137,
0.1578332632780075,
0.09804140031337738,
-0.0903995931148529,
0.004710301756858826,
0.2844395935535431,
-0.1545059233903885,
-0.25385916233062744,
0.7121482491493225,
-0.08250363916158676,
0.05649730935692787,
-0.16284754872322083,
0.0946197658777237,
-0.16785407066345215,
-0.10835149139165878,
-0.05341953784227371,
0.2686805725097656,
0.21728475391864777,
0.2691023349761963,
-0.2216745764017105,
-0.0005257322336547077,
0.04626414179801941,
-0.04400508105754852,
0.11396004259586334,
0.17941653728485107,
0.015398832969367504,
0.06347658485174179,
0.2147219181060791,
0.0782424733042717,
-0.06384005397558212,
-0.25783267617225647,
0.3082064986228943,
0.1774466633796692,
-0.08481645584106445,
0.033944785594940186,
-0.2267197072505951,
0.061937857419252396,
-0.23826101422309875,
0.03975558653473854,
-0.5503432154655457,
-0.07265178114175797,
0.4201700985431671,
0.16713543236255646,
-0.007717074826359749,
-0.4254101812839508,
0.016679659485816956,
-0.1950620412826538,
0.35283705592155457,
0.3148079514503479,
0.18616174161434174,
-0.3998850882053375,
-0.3406916856765747,
-0.6655070781707764,
0.12757398188114166,
-0.10366135835647583,
-0.19272640347480774,
0.1470293402671814,
0.07254605740308762,
-0.1872209757566452,
0.09502425789833069,
0.32767271995544434,
0.09891307353973389,
0.08049023896455765,
0.37176600098609924,
-0.11003833264112473,
-0.23679137229919434,
-0.21631018817424774,
-0.029631027951836586,
-0.27195459604263306,
-0.14400580525398254,
0.12140452116727829,
-0.40275540947914124,
-0.022294703871011734,
-0.10110713541507721,
-0.08475881814956665,
0.20494653284549713,
-0.22550828754901886,
0.047050800174474716,
-0.17752838134765625,
0.4820343255996704,
0.06123730540275574,
-0.025945693254470825,
-0.18606258928775787,
0.146421879529953,
-0.007571185473352671,
0.5809050798416138,
-0.1022229865193367,
0.41034603118896484,
-0.18639615178108215,
0.2700353264808655,
-0.26325586438179016,
0.33783578872680664,
-0.1088455319404602,
0.29310882091522217,
-0.20346739888191223,
-0.06979236751794815,
-0.07849447429180145,
0.42201563715934753,
0.07478481531143188,
0.1694674789905548,
-0.20194418728351593,
0.06271263211965561,
-0.38182979822158813,
-0.2224588543176651,
0.1896551549434662,
-0.4549950063228607,
-0.19097529351711273,
-0.05544574186205864,
0.10624712705612183,
0.14036820828914642,
0.01270472165197134,
-0.31248462200164795,
0.1340278834104538,
0.1567617952823639,
0.07226172834634781,
-0.07183891534805298,
0.1322745382785797,
-0.1541551947593689,
0.2006617784500122,
0.035667989403009415,
0.007467917166650295,
-0.09693050384521484,
-0.2021699994802475,
-0.1120138093829155,
-0.2864823639392853
] |
https://github.com/huggingface/datasets/issues/1673 | Unable to Download Hindi Wikipedia Dataset | Looks like the wikipedia dump for hindi at the date of 05/05/2020 is not available anymore.
You can try to load a more recent version of wikipedia
```python
from datasets import load_dataset
d = load_dataset("wikipedia", language="hi", date="20210101", split="train", beam_runner="DirectRunner")
``` | I used the Dataset Library in Python to load the wikipedia dataset with the Hindi Config 20200501.hi along with something called beam_runner='DirectRunner' and it keeps giving me the error that the file is not found. I have attached the screenshot of the error and the code both. Please help me to understand how to resolve this issue.


| 40 | Unable to Download Hindi Wikipedia Dataset
I used the Dataset Library in Python to load the wikipedia dataset with the Hindi Config 20200501.hi along with something called beam_runner='DirectRunner' and it keeps giving me the error that the file is not found. I have attached the screenshot of the error and the code both. Please help me to understand how to resolve this issue.


Looks like the wikipedia dump for hindi at the date of 05/05/2020 is not available anymore.
You can try to load a more recent version of wikipedia
```python
from datasets import load_dataset
d = load_dataset("wikipedia", language="hi", date="20210101", split="train", beam_runner="DirectRunner")
``` | [
-0.1142456904053688,
0.011291678063571453,
-0.08272907137870789,
0.18819203972816467,
0.05032927170395851,
0.20311041176319122,
-0.02170965075492859,
0.40279945731163025,
0.2084721326828003,
-0.005866138730198145,
0.29710066318511963,
-0.010639035142958164,
0.10074154287576675,
0.11281644552946091,
0.1189810112118721,
-0.3750503659248352,
0.06043149158358574,
-0.07140560448169708,
0.1233820766210556,
0.07428498566150665,
0.012470129877328873,
0.2530110478401184,
-0.2966146469116211,
-0.0009150840924121439,
-0.5076266527175903,
0.0811900943517685,
0.09296464920043945,
-0.17468582093715668,
-0.3081795871257782,
-0.32907602190971375,
0.3946938216686249,
0.03202192112803459,
0.3380320370197296,
0.26783287525177,
-0.00011856274795718491,
0.04963578283786774,
0.5291932225227356,
-0.17345814406871796,
-0.38726580142974854,
-0.3783106803894043,
-0.14021369814872742,
-0.30798104405403137,
0.047608017921447754,
-0.2449629157781601,
-0.08171077072620392,
0.09958089143037796,
0.35732710361480713,
-0.2165105938911438,
0.11970274895429611,
0.2080288976430893,
0.16903023421764374,
-0.0981416255235672,
0.38335323333740234,
-0.200248122215271,
0.17897441983222961,
0.23496204614639282,
-0.05619267374277115,
0.35830092430114746,
-0.0010121393715962768,
-0.004053779877722263,
-0.03697926178574562,
0.1388835459947586,
0.04654044285416603,
-0.13587866723537445,
0.21641817688941956,
-0.20337943732738495,
-0.10633640736341476,
-0.3807202875614166,
0.4467657804489136,
0.2975744307041168,
1.0478886365890503,
-0.3198605477809906,
-0.2823242247104645,
0.2148030549287796,
0.025511782616376877,
0.16011498868465424,
0.37264737486839294,
0.3713809847831726,
-0.2544008195400238,
0.022445959970355034,
0.23289260268211365,
-0.41393589973449707,
-0.09356429427862167,
0.4551312029361725,
0.00045869575114920735,
0.1820245087146759,
0.03933250531554222,
0.1147850900888443,
-0.018758313730359077,
-0.26514795422554016,
-0.029326295480132103,
-0.1063045859336853,
0.15765796601772308,
0.384485125541687,
-0.21533940732479095,
0.0957845076918602,
-0.15523377060890198,
0.15057997405529022,
0.048271603882312775,
-0.2602936923503876,
-0.08013156056404114,
-0.04224899411201477,
-0.08514582365751266,
-0.018296172842383385,
0.41432157158851624,
-0.10231145471334457,
0.04363318532705307,
0.20536936819553375,
0.24626986682415009,
0.31378382444381714,
0.016584694385528564,
-0.02248736284673214,
0.12462742626667023,
-0.40934085845947266,
-0.45077571272850037,
-0.04205257445573807,
0.08053047209978104,
-0.2413734346628189,
-0.14524386823177338,
0.04947208985686302,
-0.38120871782302856,
-0.20450612902641296,
-0.0651383101940155,
0.002424550475552678,
-0.0156678706407547,
0.10617027431726456,
0.1126057431101799,
0.0522611103951931,
-0.14971286058425903,
-0.3151380717754364,
-0.08037597686052322,
0.1926773339509964,
-0.3331977128982544,
0.11037416011095047,
0.21772700548171997,
-0.2642212212085724,
0.2979157567024231,
0.151002898812294,
-0.2088233381509781,
-0.039661601185798645,
-0.1556178480386734,
-0.23260071873664856,
-0.3740472197532654,
0.15420101583003998,
0.17729055881500244,
0.4825563132762909,
-0.1454353928565979,
-0.12827961146831512,
-0.009592799469828606,
0.11438533663749695,
-0.35797810554504395,
0.03629494458436966,
0.03559057042002678,
0.08470025658607483,
-0.2616971731185913,
-0.08363299071788788,
0.06909074634313583,
0.17726582288742065,
-0.03405914828181267,
-0.4436796307563782,
0.02258419618010521,
-0.05265388265252113,
-0.1188780814409256,
-0.25950735807418823,
0.300817608833313,
0.4370456635951996,
-0.5658002495765686,
0.013142237439751625,
-0.20862872898578644,
0.029567860066890717,
0.0542648620903492,
0.016120346263051033,
-0.27353134751319885,
0.6696210503578186,
-0.28446459770202637,
-0.004577209707349539,
0.5242992639541626,
-0.26639503240585327,
-0.4838489890098572,
-0.014880193397402763,
-0.01512552797794342,
0.09028896689414978,
-0.08137350529432297,
0.20214629173278809,
0.20868940651416779,
-0.023769792169332504,
0.0005581252626143396,
0.31124147772789,
0.09341460466384888,
-0.19459514319896698,
-0.26058053970336914,
-0.09506764262914658,
0.40479278564453125,
0.11304677277803421,
0.2699635326862335,
-0.04575759172439575,
0.11298615485429764,
0.6010671257972717,
0.40218624472618103,
0.13488401472568512,
0.1459052413702011,
0.3607157766819,
-0.2406182885169983,
0.17040129005908966,
0.24508130550384521,
-0.15395258367061615,
-0.09879682958126068,
0.24990493059158325,
0.0002760225906968117,
0.022465597838163376,
-0.14399825036525726,
-0.012586724013090134,
-0.4432774484157562,
0.031337931752204895,
-0.21764513850212097,
0.15272226929664612,
0.08911946415901184,
-0.015983344987034798,
0.07168050110340118,
0.43037286400794983,
0.02072795480489731,
0.017246345058083534,
-0.18069471418857574,
0.016178198158740997,
-0.35069698095321655,
0.4398326873779297,
-0.12033630907535553,
-0.06019510328769684,
-0.01200858224183321,
0.10215617716312408,
0.20028463006019592,
0.07234364002943039,
-0.11720575392246246,
-0.02640420012176037,
0.218668594956398,
0.05578821152448654,
0.2651786506175995,
-0.13870181143283844,
0.14834432303905487,
-0.5472908616065979,
0.22967447340488434,
0.598179280757904,
0.054175056517124176,
-0.06340327858924866,
0.0449296310544014,
0.05716761201620102,
-0.12944699823856354,
0.01459925714880228,
-0.1710965782403946,
0.23129984736442566,
0.35970398783683777,
0.01774793118238449,
0.03329744562506676,
-0.022608326748013496,
0.2005068063735962,
0.3880091905593872,
0.16047626733779907,
0.025718100368976593,
-0.05175946652889252,
-0.050182078033685684,
0.5676721930503845,
0.013026810251176357,
0.04047628864645958,
0.12144481390714645,
-0.2276735156774521,
-0.10600651800632477,
0.07224488258361816,
-0.0035091638565063477,
0.0372728630900383,
0.06252139061689377,
0.01457909308373928,
-0.2079574167728424,
0.1375661939382553,
-0.14348293840885162,
0.21053728461265564,
0.1933050900697708,
0.2895304560661316,
0.1703343689441681,
-0.11885832250118256,
0.09619554877281189,
-0.12601688504219055,
-0.0010039831977337599,
0.0323035903275013,
0.35594865679740906,
-0.14235787093639374,
-0.07484345138072968,
-0.3141603171825409,
-0.38212499022483826,
-0.34667903184890747,
-0.3569435477256775,
-0.4646945595741272,
-0.3202182352542877,
-0.06652799993753433,
-0.1526101529598236,
0.011851629242300987,
0.05953703820705414,
-0.020108914002776146,
-0.19330023229122162,
0.08287962526082993,
-0.35023340582847595,
-0.0672849714756012,
-0.39311298727989197,
-0.2638322710990906,
-0.021901370957493782,
0.4575641453266144,
0.10358494520187378,
0.19101034104824066,
-0.29446476697921753,
-0.13936811685562134,
-0.6602703928947449,
-0.21317800879478455,
0.03331673517823219,
-0.055325500667095184,
-0.0693885087966919,
0.06117011234164238,
0.7040324807167053,
-0.1448131799697876,
-0.021932141855359077,
0.09306704998016357,
0.1253586709499359,
-0.0922287181019783,
-0.03088318184018135,
-0.018818052485585213,
0.07058380544185638,
0.14346806704998016,
-0.44466543197631836,
-0.3900810778141022,
-0.1972254067659378,
-0.07932916283607483,
0.046562761068344116,
0.0004415033617988229,
-0.009668221697211266,
0.10412009060382843,
-0.015658527612686157,
0.2523651719093323,
0.07865266501903534,
-0.066323421895504,
-0.029541069641709328,
0.4097996950149536,
-0.11505667865276337,
-0.493072509765625,
0.5355672240257263,
-0.0323045589029789,
0.09803634136915207,
0.08335516601800919,
-0.34454938769340515,
0.3909452557563782,
0.11419720947742462,
0.3440345525741577,
0.17876987159252167,
-0.06293924897909164,
0.11423064023256302,
-0.30597439408302307,
0.2277783900499344,
0.12647561728954315,
-0.09276095777750015,
0.024369483813643456,
-0.25150731205940247,
0.5262637138366699,
0.3555584251880646,
0.23986762762069702,
-0.09599633514881134,
0.6890131831169128,
0.30927857756614685,
0.09135199338197708,
0.31085720658302307,
0.11477595567703247,
0.04275677725672722,
-0.14774258434772491,
-0.3294079005718231,
0.039081867784261703,
-0.001717879087664187,
0.06039796024560928,
0.12463957071304321,
-0.008348689414560795,
-0.1762295365333557,
-0.26747363805770874,
-0.3386882543563843,
-0.30879855155944824,
-0.41825801134109497,
-0.031201032921671867,
-0.18272903561592102,
0.3806193470954895,
0.10196494311094284,
0.03986512869596481,
0.007679738104343414,
-0.35264289379119873,
0.25159913301467896,
0.3737899363040924,
-0.06074344739317894,
0.15002423524856567,
0.1255883127450943,
-0.38251227140426636,
-0.23903314769268036,
0.025523334741592407,
0.07561000436544418,
0.3893581032752991,
-0.15127971768379211,
0.26600220799446106,
0.189533069729805,
0.13109633326530457,
0.4795292913913727,
-0.19716554880142212,
0.18195338547229767,
0.1743205189704895,
0.0958775132894516,
-0.20664644241333008,
-0.129827618598938,
-0.04947105050086975,
0.34322765469551086,
0.39200931787490845,
-0.03647930547595024,
-0.4435789883136749,
-0.09674713015556335,
0.4116117060184479,
0.37212875485420227,
-0.10319031029939651,
-0.12850087881088257,
-0.19717463850975037,
-0.20750588178634644,
-0.26548752188682556,
-0.30124011635780334,
-0.11962025612592697,
0.4736838936805725,
0.16390174627304077,
0.20594651997089386,
0.009672874584794044,
0.12017083168029785,
-0.08089669793844223,
-0.10954902321100235,
0.32448098063468933,
0.26247739791870117,
-0.049795448780059814,
0.32030460238456726,
0.09541435539722443,
-0.160931795835495,
0.33102530241012573,
0.14151625335216522,
-0.34419751167297363,
0.014633017592132092,
-0.02681925520300865,
-0.09486094117164612,
0.08269253373146057,
-0.10759172588586807,
0.06487227976322174,
0.0690130963921547,
-0.35166582465171814,
0.01105484738945961,
-0.20437611639499664,
0.2243967354297638,
0.10593586415052414,
-0.48957908153533936,
-0.4795030653476715,
0.476779967546463,
0.13617341220378876,
0.14658278226852417,
0.22238409519195557,
0.11836542189121246,
-0.24880275130271912,
0.08121177554130554,
0.04179539903998375,
0.811313807964325,
-0.004197682719677687,
0.12990477681159973,
-0.01596737653017044,
0.2420138716697693,
0.4224831461906433,
-0.04337775707244873,
-0.031599853187799454,
-0.41241875290870667,
0.10485706478357315,
-0.11950147151947021,
0.09277815371751785,
0.05673094466328621,
-0.06835736334323883,
-0.2528592646121979,
0.47125566005706787,
0.09112754464149475,
0.4095677137374878,
0.10207099467515945,
0.38470736145973206,
0.07247640192508698,
-0.09783383458852768,
-0.23272958397865295,
0.06972169876098633,
-0.16912473738193512,
0.491432785987854,
-0.21892161667346954,
-0.18092632293701172,
-0.15549227595329285,
0.013553474098443985,
-0.48116567730903625,
0.07633686810731888,
-0.21482951939105988,
0.3751365542411804,
-0.19677123427391052,
-0.4316462278366089,
0.4250756502151489,
0.47117704153060913,
0.21861718595027924,
0.31960931420326233,
-0.30900347232818604,
0.226841002702713,
-0.49284759163856506,
-0.5243960618972778,
-0.08519537001848221,
0.19994276762008667,
0.33398643136024475,
-0.07116270810365677,
-0.4607298672199249,
0.29904651641845703,
-0.02646603062748909,
-0.004542906768620014,
-0.024585530161857605,
-0.0175216943025589,
0.17578265070915222,
-0.019927941262722015,
-0.3917602300643921,
-0.10232803970575333,
-0.04405698552727699,
-0.14400814473628998,
0.11565767228603363,
0.06692759692668915,
0.19606994092464447,
-0.08412057906389236,
0.1445450633764267,
-0.07602125406265259,
0.10629428178071976,
0.3669898211956024,
0.0686011090874672,
-0.19091400504112244,
0.45333433151245117,
0.37843644618988037,
-0.39258435368537903,
-0.15477114915847778,
-0.037461280822753906,
-0.5030236840248108,
-0.29754048585891724,
-0.045054174959659576,
0.010143464431166649,
0.3835775554180145,
-0.20432813465595245,
0.14963683485984802,
0.08861235529184341,
-0.29620206356048584,
-0.03486083075404167,
-0.466786652803421,
-0.17187005281448364,
0.3102966248989105,
-0.09833403676748276,
-0.016548706218600273,
0.07247325778007507,
-0.3425885736942291,
0.39258071780204773,
-0.23379558324813843,
-0.19922617077827454,
0.044642575085163116,
-0.10825255513191223,
0.012196777388453484,
0.10572702437639236,
0.06770530343055725,
-0.1116081103682518,
-0.16284464299678802,
0.08145944029092789,
-0.16404835879802704,
-0.01302266027778387,
-0.09765046834945679,
0.14809030294418335,
0.12123745679855347,
-0.011353877373039722,
0.09074093401432037,
0.018445536494255066,
-0.516416072845459,
-0.009651849046349525,
-0.022864362224936485,
-0.1621381640434265,
0.09070809930562973,
0.08034403622150421,
0.244953453540802,
0.11942244321107864,
0.054358940571546555,
-0.381998211145401,
0.33131566643714905,
0.09149253368377686,
0.2695649266242981,
0.08027582615613937,
0.33494463562965393,
0.31019821763038635,
-0.01449673529714346,
-0.5009615421295166,
0.17291195690631866,
-0.13196001946926117,
-0.08401890099048615,
0.26160237193107605,
-0.32457253336906433,
0.3326551020145416,
0.23036034405231476,
0.08926676213741302,
0.17156556248664856,
-0.21807686984539032,
-0.008718066848814487,
0.32200732827186584,
0.09649749845266342,
-0.47372904419898987,
0.04986371099948883,
0.6553481221199036,
0.16846179962158203,
-0.1458323448896408,
-0.0410761721432209,
0.1880706399679184,
-0.26834583282470703,
-0.0888955146074295,
0.25542086362838745,
0.06801506876945496,
-0.0005087725003249943,
0.2828112542629242,
0.3966422975063324,
0.4411618113517761,
0.20443138480186462,
0.062282394617795944,
0.10766886919736862,
-0.16900134086608887,
0.4482860565185547,
-0.366330623626709,
0.07834932953119278,
0.12582767009735107,
-0.08196663111448288,
-0.07189679890871048,
-0.3179202079772949,
0.130610391497612,
0.23404547572135925,
-0.2829897105693817,
-0.006111818831413984,
-0.05681820586323738,
0.1268402636051178,
0.28181734681129456,
-0.004787377547472715,
-0.2626939117908478,
0.06898599117994308,
-0.2399255335330963,
0.23227018117904663,
-0.3234374523162842,
-0.3213649094104767,
-0.05180903151631355,
0.12418527156114578,
0.14952068030834198,
-0.2248169630765915,
0.05289238691329956,
0.2691706717014313,
-0.24218590557575226,
-0.17502310872077942,
0.6996940970420837,
-0.12280528247356415,
0.07916026562452316,
-0.21527351438999176,
-0.06823193281888962,
-0.1705026775598526,
-0.11811534315347672,
-0.014359351247549057,
0.23502041399478912,
0.21452642977237701,
0.23718085885047913,
-0.3281453549861908,
0.030735015869140625,
0.04746631532907486,
-0.015879100188612938,
0.13792115449905396,
0.18113157153129578,
0.11741821467876434,
0.0486818328499794,
0.26849034428596497,
0.10209102183580399,
-0.07218818366527557,
-0.3152778148651123,
0.378161758184433,
0.33693405985832214,
-0.08960594236850739,
0.00795480515807867,
-0.14365510642528534,
0.01617714762687683,
-0.24868279695510864,
0.034116897732019424,
-0.4928398132324219,
-0.15552544593811035,
0.3062032461166382,
0.19628390669822693,
-0.01038114819675684,
-0.34092795848846436,
0.024934478104114532,
-0.2520851492881775,
0.3639441728591919,
0.41279280185699463,
0.15389910340309143,
-0.4125404357910156,
-0.31437239050865173,
-0.643462061882019,
0.13423721492290497,
-0.1958824247121811,
-0.1014532595872879,
0.1521616280078888,
0.1058574840426445,
-0.14591622352600098,
0.19160591065883636,
0.3052423596382141,
-0.04019240662455559,
0.01916748471558094,
0.35781195759773254,
-0.1499292403459549,
-0.2280534952878952,
-0.1995408982038498,
-0.037548307329416275,
-0.2679670751094818,
-0.0898638591170311,
0.13562539219856262,
-0.5401659607887268,
-0.003108448116108775,
-0.13435877859592438,
-0.2171943485736847,
0.2494378238916397,
-0.127628892660141,
0.13847309350967407,
-0.2062593251466751,
0.4088141918182373,
0.04221395030617714,
-0.05484814941883087,
-0.24886898696422577,
0.09788120537996292,
0.0775732696056366,
0.49869072437286377,
-0.1390179991722107,
0.3550521433353424,
-0.1974678784608841,
0.28648000955581665,
-0.18881957232952118,
0.43104562163352966,
-0.19397921860218048,
0.17193099856376648,
-0.2592931389808655,
-0.11349552869796753,
-0.017382465302944183,
0.3172319531440735,
0.09001163393259048,
0.2336301952600479,
-0.24475394189357758,
0.1031288355588913,
-0.28436169028282166,
-0.17644812166690826,
0.15987113118171692,
-0.41073042154312134,
-0.24334436655044556,
-0.08454049378633499,
0.08895876258611679,
0.09718376398086548,
0.12632426619529724,
-0.33526667952537537,
0.10431782901287079,
0.2328704446554184,
0.06635992974042892,
-0.04308943450450897,
0.11599025130271912,
-0.13868802785873413,
0.16048261523246765,
0.06468639522790909,
0.007492461707442999,
-0.09013303369283676,
-0.2122354805469513,
-0.15267714858055115,
-0.3400039076805115
] |
https://github.com/huggingface/datasets/issues/1672 | load_dataset hang on file_lock | Having the same issue with `datasets 1.1.3` of `1.5.0` (both tracebacks look the same) and `kilt_wikipedia`, Ubuntu 20.04
```py
In [1]: from datasets import load_dataset
In [2]: wikipedia = load_dataset('kilt_wikipedia')['full']
Downloading: 7.37kB [00:00, 2.74MB/s]
Downloading: 3.33kB [00:00, 1.44MB/s]
^C---------------------------------------------------------------------------
OSError Traceback (most recent call last)
~/anaconda3/envs/transformers2/lib/python3.7/site-packages/datasets/utils/filelock.py in _acquire(self)
380 try:
--> 381 fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
382 except (IOError, OSError):
OSError: [Errno 37] No locks available
During handling of the above exception, another exception occurred:
KeyboardInterrupt Traceback (most recent call last)
<ipython-input-2-f412d3d46ec9> in <module>
----> 1 wikipedia = load_dataset('kilt_wikipedia')['full']
~/anaconda3/envs/transformers2/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, sav
e_infos, script_version, **config_kwargs)
601 hash=hash,
602 features=features,
--> 603 **config_kwargs,
604 )
605
~/anaconda3/envs/transformers2/lib/python3.7/site-packages/datasets/builder.py in __init__(self, *args, **kwargs)
841 def __init__(self, *args, **kwargs):
842 self._writer_batch_size = kwargs.pop("writer_batch_size", self._writer_batch_size)
--> 843 super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
844
845 @abc.abstractmethod
~/anaconda3/envs/transformers2/lib/python3.7/site-packages/datasets/builder.py in __init__(self, cache_dir, name, hash, features, **config_kwargs)
174 os.makedirs(self._cache_dir_root, exist_ok=True)
175 lock_path = os.path.join(self._cache_dir_root, self._cache_dir.replace(os.sep, "_") + ".lock")
--> 176 with FileLock(lock_path):
177 if os.path.exists(self._cache_dir): # check if data exist
178 if len(os.listdir(self._cache_dir)) > 0:
~/anaconda3/envs/transformers2/lib/python3.7/site-packages/datasets/utils/filelock.py in __enter__(self)
312
313 def __enter__(self):
--> 314 self.acquire()
315 return self
316
~/anaconda3/envs/transformers2/lib/python3.7/site-packages/datasets/utils/filelock.py in acquire(self, timeout, poll_intervall)
261 if not self.is_locked:
262 logger().debug("Attempting to acquire lock %s on %s", lock_id, lock_filename)
--> 263 self._acquire()
264
265 if self.is_locked:
~/anaconda3/envs/transformers2/lib/python3.7/site-packages/datasets/utils/filelock.py in _acquire(self)
379
380 try:
--> 381 fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
382 except (IOError, OSError):
383 os.close(fd)
KeyboardInterrupt:
``` | I am trying to load the squad dataset. Fails on Windows 10 but succeeds in Colab.
Transformers: 3.3.1
Datasets: 1.0.2
Windows 10 (also tested in WSL)
```
datasets.logging.set_verbosity_debug()
datasets.
train_dataset = load_dataset('squad', split='train')
valid_dataset = load_dataset('squad', split='validation')
train_dataset.features
```
```
https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/squad/squad.py not found in cache or force_download set to True, downloading to C:\Users\simpl\.cache\huggingface\datasets\tmpzj_o_6u7
Downloading:
5.24k/? [00:00<00:00, 134kB/s]
storing https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/squad/squad.py in cache at C:\Users\simpl\.cache\huggingface\datasets\f6877c8d2e01e8fcb60dc101be28b54a7522feac756deb9ac5c39c6d8ebef1ce.85f43de978b9b25921cb78d7a2f2b350c04acdbaedb9ecb5f7101cd7c0950e68.py
creating metadata file for C:\Users\simpl\.cache\huggingface\datasets\f6877c8d2e01e8fcb60dc101be28b54a7522feac756deb9ac5c39c6d8ebef1ce.85f43de978b9b25921cb78d7a2f2b350c04acdbaedb9ecb5f7101cd7c0950e68.py
Checking C:\Users\simpl\.cache\huggingface\datasets\f6877c8d2e01e8fcb60dc101be28b54a7522feac756deb9ac5c39c6d8ebef1ce.85f43de978b9b25921cb78d7a2f2b350c04acdbaedb9ecb5f7101cd7c0950e68.py for additional imports.
Found main folder for dataset https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/squad/squad.py at C:\Users\simpl\.cache\huggingface\modules\datasets_modules\datasets\squad
Found specific version folder for dataset https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/squad/squad.py at C:\Users\simpl\.cache\huggingface\modules\datasets_modules\datasets\squad\1244d044b266a5e4dbd4174d23cb995eead372fbca31a03edc3f8a132787af41
Found script file from https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/squad/squad.py to C:\Users\simpl\.cache\huggingface\modules\datasets_modules\datasets\squad\1244d044b266a5e4dbd4174d23cb995eead372fbca31a03edc3f8a132787af41\squad.py
Couldn't find dataset infos file at https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/squad\dataset_infos.json
Found metadata file for dataset https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/squad/squad.py at C:\Users\simpl\.cache\huggingface\modules\datasets_modules\datasets\squad\1244d044b266a5e4dbd4174d23cb995eead372fbca31a03edc3f8a132787af41\squad.json
No config specified, defaulting to first: squad/plain_text
```
Interrupting the jupyter kernel we are in a file lock.
In Google Colab the download is ok. In contrast to a local run in colab dataset_infos.json is downloaded
```
https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/squad/dataset_infos.json not found in cache or force_download set to True, downloading to /root/.cache/huggingface/datasets/tmptl9ha_ad
Downloading:
2.19k/? [00:00<00:00, 26.2kB/s]
``` | 234 | load_dataset hang on file_lock
I am trying to load the squad dataset. Fails on Windows 10 but succeeds in Colab.
Transformers: 3.3.1
Datasets: 1.0.2
Windows 10 (also tested in WSL)
```
datasets.logging.set_verbosity_debug()
datasets.
train_dataset = load_dataset('squad', split='train')
valid_dataset = load_dataset('squad', split='validation')
train_dataset.features
```
```
https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/squad/squad.py not found in cache or force_download set to True, downloading to C:\Users\simpl\.cache\huggingface\datasets\tmpzj_o_6u7
Downloading:
5.24k/? [00:00<00:00, 134kB/s]
storing https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/squad/squad.py in cache at C:\Users\simpl\.cache\huggingface\datasets\f6877c8d2e01e8fcb60dc101be28b54a7522feac756deb9ac5c39c6d8ebef1ce.85f43de978b9b25921cb78d7a2f2b350c04acdbaedb9ecb5f7101cd7c0950e68.py
creating metadata file for C:\Users\simpl\.cache\huggingface\datasets\f6877c8d2e01e8fcb60dc101be28b54a7522feac756deb9ac5c39c6d8ebef1ce.85f43de978b9b25921cb78d7a2f2b350c04acdbaedb9ecb5f7101cd7c0950e68.py
Checking C:\Users\simpl\.cache\huggingface\datasets\f6877c8d2e01e8fcb60dc101be28b54a7522feac756deb9ac5c39c6d8ebef1ce.85f43de978b9b25921cb78d7a2f2b350c04acdbaedb9ecb5f7101cd7c0950e68.py for additional imports.
Found main folder for dataset https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/squad/squad.py at C:\Users\simpl\.cache\huggingface\modules\datasets_modules\datasets\squad
Found specific version folder for dataset https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/squad/squad.py at C:\Users\simpl\.cache\huggingface\modules\datasets_modules\datasets\squad\1244d044b266a5e4dbd4174d23cb995eead372fbca31a03edc3f8a132787af41
Found script file from https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/squad/squad.py to C:\Users\simpl\.cache\huggingface\modules\datasets_modules\datasets\squad\1244d044b266a5e4dbd4174d23cb995eead372fbca31a03edc3f8a132787af41\squad.py
Couldn't find dataset infos file at https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/squad\dataset_infos.json
Found metadata file for dataset https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/squad/squad.py at C:\Users\simpl\.cache\huggingface\modules\datasets_modules\datasets\squad\1244d044b266a5e4dbd4174d23cb995eead372fbca31a03edc3f8a132787af41\squad.json
No config specified, defaulting to first: squad/plain_text
```
Interrupting the jupyter kernel we are in a file lock.
In Google Colab the download is ok. In contrast to a local run in colab dataset_infos.json is downloaded
```
https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/squad/dataset_infos.json not found in cache or force_download set to True, downloading to /root/.cache/huggingface/datasets/tmptl9ha_ad
Downloading:
2.19k/? [00:00<00:00, 26.2kB/s]
```
Having the same issue with `datasets 1.1.3` of `1.5.0` (both tracebacks look the same) and `kilt_wikipedia`, Ubuntu 20.04
```py
In [1]: from datasets import load_dataset
In [2]: wikipedia = load_dataset('kilt_wikipedia')['full']
Downloading: 7.37kB [00:00, 2.74MB/s]
Downloading: 3.33kB [00:00, 1.44MB/s]
^C---------------------------------------------------------------------------
OSError Traceback (most recent call last)
~/anaconda3/envs/transformers2/lib/python3.7/site-packages/datasets/utils/filelock.py in _acquire(self)
380 try:
--> 381 fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
382 except (IOError, OSError):
OSError: [Errno 37] No locks available
During handling of the above exception, another exception occurred:
KeyboardInterrupt Traceback (most recent call last)
<ipython-input-2-f412d3d46ec9> in <module>
----> 1 wikipedia = load_dataset('kilt_wikipedia')['full']
~/anaconda3/envs/transformers2/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, sav
e_infos, script_version, **config_kwargs)
601 hash=hash,
602 features=features,
--> 603 **config_kwargs,
604 )
605
~/anaconda3/envs/transformers2/lib/python3.7/site-packages/datasets/builder.py in __init__(self, *args, **kwargs)
841 def __init__(self, *args, **kwargs):
842 self._writer_batch_size = kwargs.pop("writer_batch_size", self._writer_batch_size)
--> 843 super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
844
845 @abc.abstractmethod
~/anaconda3/envs/transformers2/lib/python3.7/site-packages/datasets/builder.py in __init__(self, cache_dir, name, hash, features, **config_kwargs)
174 os.makedirs(self._cache_dir_root, exist_ok=True)
175 lock_path = os.path.join(self._cache_dir_root, self._cache_dir.replace(os.sep, "_") + ".lock")
--> 176 with FileLock(lock_path):
177 if os.path.exists(self._cache_dir): # check if data exist
178 if len(os.listdir(self._cache_dir)) > 0:
~/anaconda3/envs/transformers2/lib/python3.7/site-packages/datasets/utils/filelock.py in __enter__(self)
312
313 def __enter__(self):
--> 314 self.acquire()
315 return self
316
~/anaconda3/envs/transformers2/lib/python3.7/site-packages/datasets/utils/filelock.py in acquire(self, timeout, poll_intervall)
261 if not self.is_locked:
262 logger().debug("Attempting to acquire lock %s on %s", lock_id, lock_filename)
--> 263 self._acquire()
264
265 if self.is_locked:
~/anaconda3/envs/transformers2/lib/python3.7/site-packages/datasets/utils/filelock.py in _acquire(self)
379
380 try:
--> 381 fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
382 except (IOError, OSError):
383 os.close(fd)
KeyboardInterrupt:
``` | [
-0.302115261554718,
-0.02152092754840851,
-0.0879950150847435,
0.17893604934215546,
0.517988920211792,
0.14992554485797882,
0.5325867533683777,
-0.03884607180953026,
0.01999598927795887,
0.004317913204431534,
-0.25354844331741333,
0.2555573880672455,
-0.010385445319116116,
-0.11832192540168762,
-0.0975554808974266,
0.03599774092435837,
0.0950896292924881,
0.1051175519824028,
0.08449435979127884,
0.11259724199771881,
-0.023830214515328407,
0.42407339811325073,
-0.31129002571105957,
-0.23315785825252533,
-0.7260752320289612,
-0.07259273529052734,
0.0726543515920639,
0.21308840811252594,
-0.26895609498023987,
-0.20116202533245087,
0.5048641562461853,
0.17905040085315704,
0.21338023245334625,
0.5419102311134338,
-0.00012257520575076342,
0.05560751631855965,
0.23596668243408203,
0.03577253594994545,
-0.25304028391838074,
-0.26163631677627563,
-0.2748565375804901,
-0.29577869176864624,
0.1831115037202835,
0.012881848029792309,
-0.1750216782093048,
0.7024014592170715,
0.17634813487529755,
-0.4491310119628906,
0.45648863911628723,
0.2201070785522461,
0.14820323884487152,
0.37655672430992126,
-0.0643603503704071,
-0.26760607957839966,
0.13382992148399353,
-0.1435055136680603,
-0.29250168800354004,
0.48457953333854675,
0.4809321165084839,
-0.13175497949123383,
0.11039821803569794,
0.15502475202083588,
-0.012472337111830711,
-0.16826175153255463,
0.06105877459049225,
0.04912414029240608,
-0.2083522379398346,
-0.4002085030078888,
0.47590380907058716,
0.15907393395900726,
0.4620738625526428,
-0.1445717066526413,
-0.2766666114330292,
-0.06719589233398438,
0.3508070707321167,
0.1159304827451706,
0.5585265159606934,
0.24014127254486084,
-0.09117324650287628,
0.15417146682739258,
-0.07667521387338638,
0.15786105394363403,
0.024343149736523628,
-0.06209799647331238,
0.08917012810707092,
0.25517046451568604,
-0.08764512091875076,
0.05542967468500137,
0.1462421864271164,
0.059507835656404495,
0.09295963495969772,
-0.02639726735651493,
-0.047912418842315674,
0.11226413398981094,
-0.5934708714485168,
0.1357288509607315,
-0.330829918384552,
0.3397844731807709,
-0.16898299753665924,
0.02962915599346161,
0.008119630627334118,
0.12904635071754456,
0.3702761232852936,
0.17497766017913818,
-0.00863677728921175,
0.0606241412460804,
0.14055532217025757,
0.020645761862397194,
0.3935607373714447,
0.12859931588172913,
-0.3604627251625061,
0.148184671998024,
-0.3828314542770386,
-0.3367041349411011,
0.15231382846832275,
0.0648476779460907,
0.17923547327518463,
-0.27236121892929077,
-0.2743983864784241,
-0.08245373517274857,
0.0945708304643631,
0.0038921504747122526,
0.3614348769187927,
0.583624005317688,
-0.06736573576927185,
-0.02782159298658371,
-0.15389585494995117,
-0.03845587745308876,
-0.34197843074798584,
0.17409269511699677,
-0.12288906425237656,
0.01875932887196541,
-0.1587669551372528,
0.11419013142585754,
0.4133542776107788,
-0.4438302516937256,
0.31868359446525574,
0.06279128789901733,
0.1318187117576599,
-0.0032934555783867836,
0.062120601534843445,
-0.27147454023361206,
-0.20031854510307312,
0.3339359164237976,
0.08803458511829376,
0.2697606086730957,
-0.052074458450078964,
-0.43599405884742737,
-0.11216294020414352,
-0.012050077319145203,
-0.17784036695957184,
-0.0692962110042572,
0.06394758075475693,
0.10695137083530426,
-0.287111759185791,
0.012819305062294006,
-0.1811254322528839,
-0.016116807237267494,
0.11780010908842087,
-0.061824701726436615,
0.104513980448246,
-0.2027837187051773,
-0.25770074129104614,
-0.1545439511537552,
0.1867065578699112,
0.6341594457626343,
-0.4503534734249115,
0.03537257760763168,
0.3156069219112396,
-0.3282574415206909,
-0.17891083657741547,
0.2429853081703186,
-0.10547762364149094,
-0.19311097264289856,
-0.41209229826927185,
0.011343170888721943,
0.2249481976032257,
-0.5570047497749329,
-0.7323591709136963,
0.25447168946266174,
-0.28795260190963745,
-0.10853283107280731,
0.31053465604782104,
0.2420300990343094,
0.3244645595550537,
-0.11460939794778824,
0.14711521565914154,
0.061078231781721115,
-0.06185038387775421,
0.042697057127952576,
-0.14469584822654724,
-0.1810024231672287,
0.08618414402008057,
0.21562506258487701,
0.07295961678028107,
-0.06197915971279144,
0.1285819709300995,
0.6232095956802368,
0.14703993499279022,
0.1933714598417282,
-0.08590326458215714,
0.3554547131061554,
0.3095431923866272,
-0.14193876087665558,
-0.012420021928846836,
-0.25398361682891846,
-0.7716570496559143,
0.4025573432445526,
-0.06498558074235916,
0.19903023540973663,
-0.08980479091405869,
-0.20649397373199463,
-0.17426013946533203,
0.010830029845237732,
-0.38122639060020447,
-0.14274071156978607,
0.005098261404782534,
-0.02231607399880886,
0.13405007123947144,
-0.06190832704305649,
0.0002699793258216232,
0.6825735569000244,
-0.05980880185961723,
0.10779163241386414,
-0.28405001759529114,
0.12389713525772095,
-0.2325538545846939,
-0.2640245854854584,
0.005873776972293854,
-0.04864945635199547,
0.11465439200401306,
-0.29985544085502625,
-0.15815502405166626,
0.17800657451152802,
-0.017896268516778946,
0.17847386002540588,
0.08754059672355652,
-0.0402761735022068,
0.23347090184688568,
-0.1706901341676712,
-0.03942712023854256,
-0.027122296392917633,
0.10674145072698593,
-0.24557755887508392,
-0.12535935640335083,
0.21619361639022827,
-0.3088025152683258,
-0.01802734285593033,
-0.005303041078150272,
-0.14474384486675262,
0.1779080033302307,
0.140914648771286,
-0.024871842935681343,
0.0228370800614357,
0.2542493939399719,
0.36352089047431946,
0.5597593784332275,
0.21229344606399536,
0.20217444002628326,
0.16372862458229065,
0.6630071401596069,
0.04585326462984085,
-0.147333562374115,
-0.09784691035747528,
-0.08101183921098709,
0.06715329736471176,
0.10662650316953659,
0.042591482400894165,
0.5582991242408752,
0.12538813054561615,
0.017651744186878204,
0.007102780044078827,
-0.09177865833044052,
-0.3237576186656952,
0.1106109619140625,
0.06515108048915863,
0.029952852055430412,
0.2512906491756439,
0.10345099866390228,
0.033190999180078506,
-0.15680518746376038,
-0.2846612334251404,
0.20542195439338684,
0.10006141662597656,
-0.17846615612506866,
0.04838833585381508,
-0.18301668763160706,
0.10561652481555939,
-0.15699215233325958,
0.16953341662883759,
-0.3918552100658417,
-0.11134441941976547,
-0.24960875511169434,
0.45727214217185974,
0.4709659218788147,
0.12107113748788834,
-0.2346421778202057,
0.0072331419214606285,
0.14606453478336334,
-0.30178341269493103,
-0.10858231037855148,
-0.09736151248216629,
-0.08933452516794205,
-0.056694395840168,
0.6666873693466187,
-0.14905980229377747,
0.2231183648109436,
-0.03367910906672478,
-0.07687100768089294,
-0.0030319446232169867,
-0.2530536651611328,
0.1237075999379158,
-0.1360320895910263,
0.42064422369003296,
0.07396852225065231,
0.19530953466892242,
-0.2648066580295563,
-0.06578805297613144,
0.22036580741405487,
-0.15552093088626862,
-0.12446044385433197,
-0.18474698066711426,
-0.05047336965799332,
-0.19684943556785583,
-0.047233473509550095,
-0.17763616144657135,
-0.4348342716693878,
-0.38629788160324097,
0.020922807976603508,
-0.24104474484920502,
-0.19232158362865448,
0.340686172246933,
0.021880295127630234,
0.3659335970878601,
0.1288526952266693,
0.0627436637878418,
-0.13477343320846558,
-0.6219164729118347,
0.2681829333305359,
-0.011300025507807732,
-0.3586464524269104,
0.1750246286392212,
-0.020916050300002098,
-0.1368219554424286,
-0.08616293221712112,
-0.3688417673110962,
-0.20080439746379852,
-0.29291874170303345,
0.3318699598312378,
-0.1156509593129158,
-0.09501560777425766,
0.3846442997455597,
-0.19345255196094513,
0.07070980221033096,
-0.07974587380886078,
-0.2999762296676636,
0.051380056887865067,
-0.03753307834267616,
0.18133331835269928,
-0.054362282156944275,
0.07557525485754013,
-0.031841814517974854,
0.6378088593482971,
0.3464273512363434,
-0.08289548009634018,
0.250350683927536,
0.0616515651345253,
0.3179035484790802,
-0.10556749999523163,
-0.37725362181663513,
0.12378351390361786,
0.02178274095058441,
0.007041615433990955,
0.23054003715515137,
0.21599186956882477,
0.06574507802724838,
-0.21001407504081726,
-0.19338539242744446,
-0.06919459253549576,
-0.29899969696998596,
0.12207736819982529,
0.2476721853017807,
-0.14819855988025665,
0.11702007055282593,
0.21346239745616913,
0.01936379261314869,
-0.19912464916706085,
-0.0055061643943190575,
0.7495673894882202,
-0.2478502094745636,
0.021237138658761978,
-0.18948900699615479,
-0.0806046575307846,
-0.46963438391685486,
0.007457457482814789,
0.12028983235359192,
0.36061426997184753,
-0.14366620779037476,
0.07141820341348648,
0.2087254822254181,
-0.225992351770401,
0.8764544725418091,
0.1221737340092659,
0.20587961375713348,
0.10523196309804916,
-0.1461680382490158,
-0.09111497551202774,
-0.17079734802246094,
-0.09223785251379013,
0.26155388355255127,
0.45328325033187866,
0.630111813545227,
-0.03858151286840439,
-0.35438990592956543,
-0.14349707961082458,
-0.01672302931547165,
-0.1722130924463272,
-0.22082088887691498,
-0.23027387261390686,
-0.17174236476421356,
-0.2692459225654602,
0.04758209362626076,
0.0881754457950592,
0.08419035375118256,
-0.06331732124090195,
-0.09083003550767899,
-0.03519352152943611,
-0.26529252529144287,
0.06850474327802658,
0.1933160126209259,
-0.04764715954661369,
0.20609185099601746,
0.4185992479324341,
0.004798874258995056,
0.24827295541763306,
-0.11245763301849365,
0.5424154996871948,
-0.17028121650218964,
-0.2747666835784912,
0.23527459800243378,
-0.14035119116306305,
-0.019913088530302048,
0.4306938052177429,
-0.1972319483757019,
-0.01979513093829155,
0.06966900825500488,
0.1121014654636383,
-0.016911447048187256,
0.22317266464233398,
0.0980755165219307,
0.18410475552082062,
-0.2574014365673065,
-0.033187586814165115,
0.25957101583480835,
-0.053003355860710144,
-0.012630206532776356,
0.1406693160533905,
0.031633976846933365,
-0.16509675979614258,
0.11524707823991776,
-0.06913144141435623,
0.8369385600090027,
-0.48181241750717163,
0.18797791004180908,
-0.01256866566836834,
0.0311590489000082,
0.6355475187301636,
-0.1579279601573944,
0.07294629514217377,
-0.26218292117118835,
-0.5761334300041199,
0.10167472809553146,
-0.13094189763069153,
0.18848015367984772,
0.012095455080270767,
-0.22572378814220428,
0.0585116408765316,
0.22670069336891174,
0.4708389341831207,
-0.011176837608218193,
0.1981213241815567,
-0.3919523358345032,
-0.20285019278526306,
-0.5293018817901611,
0.11424579471349716,
-0.013945275917649269,
0.34033992886543274,
-0.22840674221515656,
0.022603530436754227,
-0.13462673127651215,
-0.09210735559463501,
-0.27579689025878906,
0.18963144719600677,
-0.5999922156333923,
0.12708531320095062,
-0.10516075789928436,
-0.5103439688682556,
0.26863163709640503,
0.3383280336856842,
0.24211177229881287,
0.18459022045135498,
-0.13925354182720184,
0.2685422897338867,
0.007780310697853565,
-0.158002570271492,
-0.07522754371166229,
0.03763629496097565,
0.30334383249282837,
-0.07065793126821518,
-0.191110759973526,
-0.18147827684879303,
-0.04652562364935875,
-0.16828115284442902,
0.02524779923260212,
0.0902538150548935,
0.0156265776604414,
-0.10822079330682755,
-0.28957676887512207,
-0.2553243637084961,
-0.1348426640033722,
-0.13575007021427155,
0.06630558520555496,
-0.04767533019185066,
0.00698992470279336,
0.1341114193201065,
0.15739558637142181,
-0.2546166181564331,
-0.1258385330438614,
0.7812124490737915,
-0.4224652051925659,
-0.16739416122436523,
0.531730055809021,
0.18218842148780823,
-0.2767600119113922,
-0.257866770029068,
0.10537761449813843,
-0.30793672800064087,
-0.31724557280540466,
-0.06272190809249878,
0.11541987210512161,
-0.11040982604026794,
0.24179202318191528,
0.13007752597332,
0.41413065791130066,
-0.3900485038757324,
0.22131061553955078,
-0.6019889116287231,
-0.48225322365760803,
-0.12067913264036179,
-0.000017826834664447233,
0.22798505425453186,
0.1503327637910843,
0.12506742775440216,
0.15341748297214508,
0.06848481297492981,
-0.20518529415130615,
0.13890081644058228,
-0.348736047744751,
-0.04420812427997589,
0.3459945023059845,
-0.28895971179008484,
0.24241743981838226,
0.013299422338604927,
0.03502751141786575,
0.3392169177532196,
-0.13998596370220184,
-0.21439620852470398,
-0.11799781769514084,
0.1341082751750946,
0.04629131779074669,
-0.05448123812675476,
-0.18684563040733337,
-0.2604009509086609,
0.04757217690348625,
-0.0297379270195961,
0.35573312640190125,
0.2684984803199768,
0.13779541850090027,
-0.0292274821549654,
-0.1497192680835724,
0.3529646098613739,
-0.17172011733055115,
0.22080901265144348,
0.013651815243065357,
-0.01648065447807312,
0.3168197572231293,
0.11235731095075607,
-0.02797584794461727,
0.1515488475561142,
-0.3096604347229004,
-0.11249455064535141,
0.10729872435331345,
0.19822244346141815,
0.04740588739514351,
-0.34615954756736755,
0.01110042817890644,
0.2825106382369995,
-0.01278128381818533,
0.2522989511489868,
0.04854220151901245,
0.020233720541000366,
0.2640160024166107,
0.10043659061193466,
-0.18002741038799286,
0.12812957167625427,
0.29566213488578796,
-0.024217743426561356,
0.06143420189619064,
0.17588788270950317,
-0.02794104814529419,
0.1119096502661705,
0.12243389338254929,
0.16335523128509521,
0.8019188046455383,
0.40354421734809875,
-0.03152727708220482,
0.16797709465026855,
0.2547033429145813,
0.27465882897377014,
0.17058250308036804,
0.10461102426052094,
-0.0673755630850792,
0.22027595341205597,
-0.30673640966415405,
0.3227696120738983,
-0.5636523962020874,
0.39117002487182617,
0.23945283889770508,
-0.32810986042022705,
-0.07888223230838776,
0.2526057958602905,
-0.048468347638845444,
0.010744227096438408,
-0.14046987891197205,
0.6839735507965088,
-0.4751996397972107,
-0.19970789551734924,
-0.053599338978528976,
0.12367380410432816,
-0.23166756331920624,
-0.10221302509307861,
0.1347431093454361,
0.030979018658399582,
0.0777464359998703,
0.08725821226835251,
0.027467554435133934,
-0.04368488863110542,
0.184294655919075,
0.32411518692970276,
0.05633965879678726,
-0.08491698652505875,
-0.012219764292240143,
0.130757674574852,
-0.11305971443653107,
-0.09156324714422226,
0.32018864154815674,
0.07660870254039764,
0.1584501564502716,
0.10656478255987167,
0.05964873358607292,
0.3337245285511017,
0.22504417598247528,
-0.09847681224346161,
0.0011568188201636076,
0.07037240266799927,
0.018704893067479134,
-0.15843026340007782,
0.21942929923534393,
0.04790423437952995,
-0.12942638993263245,
0.07554319500923157,
0.061005476862192154,
-0.1300656646490097,
-0.0836254432797432,
0.08094754070043564,
-0.20348523557186127,
-0.081697016954422,
0.19323290884494781,
-0.06506717950105667,
-0.10193771123886108,
-0.05270490050315857,
0.12759661674499512,
-0.22272047400474548,
0.1510455459356308,
0.026677774265408516,
-0.1832035928964615,
0.23263829946517944,
-0.09652918577194214,
0.049020349979400635,
0.02606179751455784,
0.4137372374534607,
0.1740303784608841,
0.2699415683746338,
-0.2857954800128937,
0.030657347291707993,
-0.7201026678085327,
0.1451294869184494,
0.30068904161453247,
-0.013331316411495209,
-0.22488075494766235,
0.09974788874387741,
-0.08229473978281021,
0.04496615752577782,
0.24123096466064453,
-0.15396574139595032,
0.41910651326179504,
0.18020063638687134,
-0.3893114924430847,
-0.06772682070732117,
0.05812650918960571,
-0.21054361760616302,
-0.06334678828716278,
-0.3447369337081909,
0.12050779163837433,
0.049537885934114456,
-0.09427283704280853,
-0.3394933044910431,
-0.14679929614067078,
-0.1389024257659912,
-0.3585757911205292,
0.2288987785577774,
-0.11449611186981201,
0.5724791288375854,
-0.015105283819139004,
-0.0887347012758255,
-0.22340048849582672,
0.04604583606123924,
0.07667578756809235,
-0.09178020805120468,
0.271450936794281,
0.28997987508773804,
-0.34117135405540466,
-0.0053976308554410934,
-0.22186176478862762,
0.25482937693595886,
-0.043340276926755905,
0.03907439485192299,
-0.33490628004074097,
-0.08583126962184906,
-0.0717894434928894,
0.22222329676151276,
0.11221766471862793,
0.48765823245048523,
-0.08839598298072815,
0.17792075872421265,
-0.41312506794929504,
-0.20662139356136322,
0.305553138256073,
-0.5895538330078125,
-0.21917325258255005,
-0.008171966299414635,
0.14514242112636566,
-0.008004357106983662,
-0.10978096723556519,
-0.39220941066741943,
0.2485862374305725,
0.046525485813617706,
-0.17738348245620728,
-0.2967153489589691,
0.3516765236854553,
-0.015168179757893085,
0.05791320279240608,
-0.16020308434963226,
0.16758094727993011,
-0.08946937322616577,
-0.06637255102396011,
-0.12007409334182739,
-0.2072402685880661
] |
https://github.com/huggingface/datasets/issues/1671 | connection issue | Also, mayjor issue for me is the format issue, even if I go through changing the whole code to use load_from_disk, then if I do
d = datasets.load_from_disk("imdb")
d = d["train"][:10] => the format of this is no more in datasets format
this is different from you call load_datasets("train[10]")
could you tell me how I can make the two datastes the same format @lhoestq
| Hi
I am getting this connection issue, resulting in large failure on cloud, @lhoestq I appreciate your help on this.
If I want to keep the codes the same, so not using save_to_disk, load_from_disk, but save the datastes in the way load_dataset reads from and copy the files in the same folder the datasets library reads from, could you assist me how this can be done, thanks
I tried to do read the data, save it to a path and then set HF_HOME, which does not work and this is still not reading from the old set path, could you assist me how to save the datasets in a path, and let dataset library read from this path to avoid connection issue. thanks
```
imdb = datasets.load_dataset("imdb")
imdb.save_to_disk("/idiap/temp/rkarimi/hf_datasets/imdb")
>>> os.environ["HF_HOME"]="/idiap/temp/rkarimi/hf_datasets/"
>>> imdb = datasets.load_dataset("imdb")
Reusing dataset imdb (/idiap/temp/rkarimi/cache_home_2/datasets/imdb/plain_text/1.0.0/90099cb476936b753383ba2ae6ab2eae419b2e87f71cd5189cb9c8e5814d12a3)
```
I tried afterwards to set HF_HOME in bash, this makes it read from it, but it cannot let dataset library load from the saved path and still downloading data. could you tell me how to fix this issue @lhoestq thanks
Also this is on cloud, so I save them in a path, copy it to "another machine" to load the data
### Error stack
```
Traceback (most recent call last):
File "./finetune_t5_trainer.py", line 344, in <module>
main()
File "./finetune_t5_trainer.py", line 232, in main
for task in data_args.eval_tasks} if training_args.do_test else None
File "./finetune_t5_trainer.py", line 232, in <dictcomp>
for task in data_args.eval_tasks} if training_args.do_test else None
File "/workdir/seq2seq/data/tasks.py", line 136, in get_dataset
split = self.get_sampled_split(split, n_obs)
File "/workdir/seq2seq/data/tasks.py", line 64, in get_sampled_split
dataset = self.load_dataset(split)
File "/workdir/seq2seq/data/tasks.py", line 454, in load_dataset
split=split, script_version="master")
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 589, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 263, in prepare_module
head_hf_s3(path, filename=name, dataset=dataset)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 200, in head_hf_s3
return http_head(hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset))
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 403, in http_head
url, proxies=proxies, headers=headers, cookies=cookies, allow_redirects=allow_redirects, timeout=timeout
File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 104, in head
return request('head', url, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 504, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/glue/glue.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7ff6d6c60a20>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)'))
```
| 64 | connection issue
Hi
I am getting this connection issue, resulting in large failure on cloud, @lhoestq I appreciate your help on this.
If I want to keep the codes the same, so not using save_to_disk, load_from_disk, but save the datastes in the way load_dataset reads from and copy the files in the same folder the datasets library reads from, could you assist me how this can be done, thanks
I tried to do read the data, save it to a path and then set HF_HOME, which does not work and this is still not reading from the old set path, could you assist me how to save the datasets in a path, and let dataset library read from this path to avoid connection issue. thanks
```
imdb = datasets.load_dataset("imdb")
imdb.save_to_disk("/idiap/temp/rkarimi/hf_datasets/imdb")
>>> os.environ["HF_HOME"]="/idiap/temp/rkarimi/hf_datasets/"
>>> imdb = datasets.load_dataset("imdb")
Reusing dataset imdb (/idiap/temp/rkarimi/cache_home_2/datasets/imdb/plain_text/1.0.0/90099cb476936b753383ba2ae6ab2eae419b2e87f71cd5189cb9c8e5814d12a3)
```
I tried afterwards to set HF_HOME in bash, this makes it read from it, but it cannot let dataset library load from the saved path and still downloading data. could you tell me how to fix this issue @lhoestq thanks
Also this is on cloud, so I save them in a path, copy it to "another machine" to load the data
### Error stack
```
Traceback (most recent call last):
File "./finetune_t5_trainer.py", line 344, in <module>
main()
File "./finetune_t5_trainer.py", line 232, in main
for task in data_args.eval_tasks} if training_args.do_test else None
File "./finetune_t5_trainer.py", line 232, in <dictcomp>
for task in data_args.eval_tasks} if training_args.do_test else None
File "/workdir/seq2seq/data/tasks.py", line 136, in get_dataset
split = self.get_sampled_split(split, n_obs)
File "/workdir/seq2seq/data/tasks.py", line 64, in get_sampled_split
dataset = self.load_dataset(split)
File "/workdir/seq2seq/data/tasks.py", line 454, in load_dataset
split=split, script_version="master")
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 589, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 263, in prepare_module
head_hf_s3(path, filename=name, dataset=dataset)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 200, in head_hf_s3
return http_head(hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset))
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 403, in http_head
url, proxies=proxies, headers=headers, cookies=cookies, allow_redirects=allow_redirects, timeout=timeout
File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 104, in head
return request('head', url, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 504, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/glue/glue.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7ff6d6c60a20>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)'))
```
Also, mayjor issue for me is the format issue, even if I go through changing the whole code to use load_from_disk, then if I do
d = datasets.load_from_disk("imdb")
d = d["train"][:10] => the format of this is no more in datasets format
this is different from you call load_datasets("train[10]")
could you tell me how I can make the two datastes the same format @lhoestq
| [
-0.4165682792663574,
0.23384031653404236,
0.011721443384885788,
0.3550441563129425,
0.43614086508750916,
-0.18401682376861572,
0.17185884714126587,
0.20301806926727295,
-0.19610540568828583,
0.011228928342461586,
-0.2930116653442383,
0.1609506756067276,
0.14485131204128265,
0.2955973446369171,
0.06459133327007294,
-0.023586973547935486,
-0.17819586396217346,
0.02357584238052368,
-0.40690189599990845,
-0.19521057605743408,
0.01637071557343006,
0.15114952623844147,
0.19486010074615479,
0.11425281316041946,
-0.16872474551200867,
-0.20251627266407013,
0.03320096433162689,
0.3280470669269562,
0.07365027070045471,
-0.19919230043888092,
0.2894151210784912,
0.22295638918876648,
0.17900043725967407,
0.49325457215309143,
-0.0001225406740559265,
-0.05496964231133461,
0.13379354774951935,
-0.17346061766147614,
-0.40726667642593384,
-0.46312808990478516,
-0.006432876922190189,
0.14843222498893738,
0.22454164922237396,
-0.31054502725601196,
-0.03860260546207428,
0.13047140836715698,
-0.020976470783352852,
-0.4665897488594055,
0.42201951146125793,
0.3426235616207123,
0.1340467482805252,
-0.05101495236158371,
0.15193600952625275,
0.11344205588102341,
0.23710733652114868,
0.1746753454208374,
0.09390375763177872,
0.2888200581073761,
0.22435355186462402,
0.07397481054067612,
0.1331331878900528,
-0.23804496228694916,
-0.2881765365600586,
-0.259524405002594,
0.38108131289482117,
0.018502509221434593,
0.05582009628415108,
-0.19206127524375916,
0.16280993819236755,
0.3489704430103302,
0.6868797540664673,
-0.29393470287323,
-0.3240503668785095,
0.12964622676372528,
-0.10571690648794174,
-0.10060935467481613,
0.24731260538101196,
0.11190100759267807,
-0.16966649889945984,
0.23623187839984894,
-0.10598822683095932,
-0.25549912452697754,
-0.5657851696014404,
0.36494436860084534,
0.23361922800540924,
-0.13680125772953033,
-0.015188244171440601,
0.03245168179273605,
0.06855800747871399,
-0.16946592926979065,
0.5728231072425842,
-0.2556985914707184,
0.14739890396595,
-0.09524086862802505,
-0.21888606250286102,
0.04667231813073158,
-0.30668899416923523,
0.07193707674741745,
0.24277152121067047,
0.08973510563373566,
0.10540227591991425,
0.15549615025520325,
-0.22940999269485474,
0.10136277973651886,
0.18103687465190887,
-0.035397887229919434,
-0.02666390687227249,
0.10021411627531052,
0.5406510829925537,
0.37214934825897217,
-0.1249256506562233,
-0.1294812709093094,
0.056866902858018875,
-0.03678762540221214,
0.12277774512767792,
0.031188642606139183,
0.21479138731956482,
-0.3598896861076355,
-0.11316914856433868,
0.0711493119597435,
0.09170743823051453,
-0.13932053744792938,
0.14154918491840363,
0.721583366394043,
-0.1206657886505127,
0.1398361474275589,
0.047195371240377426,
0.14834369719028473,
-0.19074757397174835,
0.025149552151560783,
-0.06534372270107269,
-0.025322696194052696,
0.17327667772769928,
0.13654111325740814,
0.1921578049659729,
-0.1690635085105896,
0.22075629234313965,
0.1226692646741867,
0.2670639455318451,
-0.2381128966808319,
0.08719881623983383,
-0.3716702461242676,
0.16136868298053741,
0.20536379516124725,
0.13925565779209137,
0.25506293773651123,
-0.0422038771212101,
-0.045265886932611465,
-0.025193145498633385,
0.0961955338716507,
-0.3489895761013031,
-0.3657597601413727,
-0.2603071928024292,
0.0855560228228569,
-0.018598029389977455,
-0.15193909406661987,
-0.515561044216156,
-0.45766836404800415,
-0.013505661860108376,
-0.27570661902427673,
-0.11528576165437698,
-0.11204417049884796,
0.036160096526145935,
-0.4071180522441864,
0.44327908754348755,
0.4497462809085846,
-0.36293408274650574,
0.097495436668396,
-0.01116436067968607,
0.00044889759737998247,
0.044256579130887985,
0.3351145386695862,
-0.19482116401195526,
0.090844064950943,
-0.3700459599494934,
-0.14709530770778656,
0.4817885458469391,
-0.6308916211128235,
-0.5266735553741455,
0.46918630599975586,
-0.01561580691486597,
-0.17479349672794342,
0.18737970292568207,
0.18402276933193207,
0.2436394840478897,
-0.024795979261398315,
0.015740061178803444,
0.27710774540901184,
0.15997222065925598,
-0.019377317279577255,
-0.21067073941230774,
-0.3089703321456909,
0.03600308671593666,
0.11183106154203415,
0.13598977029323578,
0.0014544249279424548,
0.46254536509513855,
-0.026096880435943604,
0.37869927287101746,
-0.14643274247646332,
0.15244224667549133,
0.3833593726158142,
0.4820324778556824,
0.20731918513774872,
-0.13406860828399658,
0.24573831260204315,
-0.47306275367736816,
-0.04789320379495621,
0.10754738748073578,
-0.440232515335083,
-0.20942838490009308,
-0.16221769154071808,
-0.005717217922210693,
-0.15840484201908112,
-0.23688095808029175,
0.1601702868938446,
-0.014038905501365662,
0.061092011630535126,
-0.1786530315876007,
-0.1449938267469406,
-0.19149529933929443,
0.3710280954837799,
-0.1508069634437561,
0.03461674228310585,
-0.13326039910316467,
0.6925700306892395,
-0.31966978311538696,
-0.08033068478107452,
0.09777210652828217,
-0.1760411113500595,
0.2887408137321472,
-0.2172832041978836,
-0.22290746867656708,
0.3530240058898926,
-0.2944038510322571,
0.58603835105896,
-0.1928032487630844,
0.3995565176010132,
0.1996215581893921,
-0.17994412779808044,
0.3573046326637268,
-0.061142582446336746,
0.24290356040000916,
0.005107921548187733,
-0.06655397266149521,
0.22250215709209442,
-0.3444161117076874,
0.36576688289642334,
0.44511711597442627,
-0.16584394872188568,
0.14748425781726837,
-0.051502104848623276,
0.11959318071603775,
-0.010837357491254807,
0.2701350152492523,
-0.01915012113749981,
0.2505916953086853,
-0.10710655152797699,
-0.29970312118530273,
0.33878660202026367,
0.16145193576812744,
-0.07552003115415573,
0.28023532032966614,
0.14168286323547363,
0.33272889256477356,
-0.15109333395957947,
0.02152770571410656,
0.21141411364078522,
0.3508692979812622,
0.1427527368068695,
-0.1889166682958603,
0.2852964997291565,
0.38088497519493103,
-0.29010745882987976,
0.37947648763656616,
0.004945568740367889,
0.2021842747926712,
0.4133449196815491,
0.014029902406036854,
-0.0563509501516819,
-0.13603860139846802,
-0.20948557555675507,
-0.064550019800663,
0.09686216711997986,
-0.5591400265693665,
0.07488440722227097,
-0.33069682121276855,
-0.23094837367534637,
-0.3336360454559326,
0.19585750997066498,
-0.04561883956193924,
-0.18980564177036285,
-0.3087564706802368,
0.5337559580802917,
0.19788114726543427,
-0.015596753917634487,
-0.06808283925056458,
0.10716955363750458,
-0.2461315542459488,
-0.2705366611480713,
-0.22471018135547638,
-0.08556108921766281,
-0.18690931797027588,
-0.04157790541648865,
0.23943348228931427,
0.0679078996181488,
0.12814298272132874,
-0.14713390171527863,
-0.34750130772590637,
-0.5005231499671936,
-0.02583344466984272,
-0.012016266584396362,
0.33623871207237244,
0.35994845628738403,
0.1549183577299118,
0.5422621369361877,
0.010140819475054741,
-0.2701672315597534,
0.052814118564128876,
0.0025791001971811056,
-0.036984626203775406,
-0.08012502640485764,
-0.04448889195919037,
-0.06252652406692505,
0.15917401015758514,
-0.376953125,
-0.4660073220729828,
-0.27272945642471313,
0.07425602525472641,
-0.12927787005901337,
0.4784609079360962,
0.04077224060893059,
-0.0397597998380661,
0.08248227089643478,
0.017104798927903175,
0.2734912633895874,
-0.10422225296497345,
-0.6493800282478333,
0.18825340270996094,
-0.24758121371269226,
-0.2464488446712494,
0.07086636871099472,
0.16610702872276306,
0.3669279217720032,
-0.10302754491567612,
-0.7127377390861511,
-0.38052675127983093,
0.12475571781396866,
0.4643067419528961,
-0.2653201222419739,
0.16847412288188934,
0.2085428535938263,
-0.01380271464586258,
0.06225935369729996,
-0.01912781037390232,
-0.12404747307300568,
0.17226533591747284,
0.247281014919281,
0.28268393874168396,
0.08265653997659683,
0.43936416506767273,
-0.3292029798030853,
0.4117838144302368,
0.2907211184501648,
0.052050959318876266,
0.6116375923156738,
-0.06879919767379761,
0.34170448780059814,
-0.18813934922218323,
-0.2586170434951782,
0.11631442606449127,
0.017352858558297157,
-0.25534436106681824,
-0.08442854881286621,
-0.18971523642539978,
0.22596752643585205,
-0.2243671715259552,
-0.47296297550201416,
-0.3650861084461212,
-0.4024696350097656,
-0.011671537533402443,
-0.09442239254713058,
0.08460143953561783,
-0.00724268052726984,
0.10347308218479156,
0.059679802507162094,
-0.16069047152996063,
0.26210159063339233,
0.5211012959480286,
-0.15599744021892548,
0.114259272813797,
-0.1473681777715683,
-0.1331167370080948,
-0.35091450810432434,
0.2465466558933258,
-0.0877440944314003,
0.38877278566360474,
-0.3745870292186737,
0.31518998742103577,
0.01841038651764393,
-0.26345762610435486,
0.7598446011543274,
-0.340820848941803,
0.24583660066127777,
-0.018597187474370003,
0.0526481494307518,
-0.21405963599681854,
0.05621989071369171,
0.1495470404624939,
-0.09197208285331726,
-0.018582738935947418,
0.37419065833091736,
-0.11345506459474564,
-0.15003281831741333,
0.033463254570961,
0.21973752975463867,
-0.15227587521076202,
-0.05921020731329918,
0.08574306219816208,
-0.3991430103778839,
-0.21362854540348053,
-0.2902211546897888,
-0.3151867389678955,
0.015274149365723133,
-0.10557699203491211,
-0.13244441151618958,
0.0001829436223488301,
0.0047284928150475025,
0.05931740626692772,
-0.21915294229984283,
0.3563084602355957,
-0.15309473872184753,
0.298458069562912,
0.08968886733055115,
0.0829966813325882,
0.7660003900527954,
0.5066100358963013,
-0.32617977261543274,
0.23304739594459534,
0.028867490589618683,
-0.018078168854117393,
0.3309479057788849,
0.44704577326774597,
-0.0877508595585823,
-0.018732551485300064,
0.20512866973876953,
-0.01347543764859438,
0.03375306725502014,
-0.20551541447639465,
-0.03257331997156143,
0.04332678020000458,
-0.12047406286001205,
-0.4945744276046753,
0.3498409688472748,
0.021859439089894295,
-0.10243041068315506,
-0.0798325389623642,
0.1540108621120453,
-0.2283494919538498,
0.42397433519363403,
0.1683761328458786,
1.1728324890136719,
-0.008593464270234108,
0.4076620936393738,
-0.04646102711558342,
-0.3239516615867615,
0.03291892260313034,
-0.3433544635772705,
-0.058077286928892136,
-0.566009521484375,
-0.24526545405387878,
-0.09236003458499908,
-0.20515219867229462,
-0.10081197321414948,
0.01981443725526333,
-0.2067544311285019,
0.6651973128318787,
-0.4083107113838196,
-0.13877685368061066,
-0.12611578404903412,
0.385576456785202,
-0.20233683288097382,
-0.052632201462984085,
-0.23618248105049133,
0.05269969254732132,
-0.22787000238895416,
0.14616438746452332,
-0.0807887613773346,
-0.047577500343322754,
-0.028518803417682648,
-0.2451549917459488,
-0.10608287155628204,
0.11139338463544846,
-0.6149665117263794,
0.27293768525123596,
-0.21949182450771332,
-0.32678884267807007,
0.1695641130208969,
0.18552598357200623,
0.25944578647613525,
0.25202009081840515,
-0.0014896704815328121,
0.11977533251047134,
0.03588799759745598,
0.09641571342945099,
0.0441536083817482,
-0.03089049831032753,
0.1161925420165062,
-0.0914623960852623,
-0.3058593273162842,
-0.04514358937740326,
-0.019382117316126823,
-0.045269060879945755,
0.023077011108398438,
-0.321988970041275,
0.20400580763816833,
-0.3108043074607849,
-0.2169771045446396,
-0.12276574969291687,
-0.16701193153858185,
-0.2081407606601715,
-0.021959949284791946,
0.03329799324274063,
-0.0036612136755138636,
0.3311714828014374,
0.2592054307460785,
-0.09841261804103851,
-0.04004275053739548,
0.7084529399871826,
0.024739839136600494,
0.03716697916388512,
0.6152188181877136,
0.018047112971544266,
-0.19181694090366364,
-0.14208060503005981,
0.3525810241699219,
0.01125668827444315,
-0.11410990357398987,
0.0025600579101592302,
-0.20957142114639282,
0.09172923117876053,
-0.018081538379192352,
0.2597586214542389,
0.036362241953611374,
0.3591597080230713,
-0.19684702157974243,
-0.41360926628112793,
-0.39472395181655884,
0.04991108551621437,
0.08780165761709213,
0.17325836420059204,
0.25967711210250854,
-0.25106099247932434,
-0.18068504333496094,
-0.18927983939647675,
-0.19606879353523254,
0.08685216307640076,
-0.24065446853637695,
-0.052801985293626785,
0.3912682831287384,
-0.23522904515266418,
0.21912781894207,
-0.2918091416358948,
0.06697388738393784,
-0.21923717856407166,
-0.12101151049137115,
-0.058663446456193924,
-0.20077604055404663,
0.22314658761024475,
-0.1096743643283844,
-0.09288846701383591,
-0.2505301535129547,
-0.5493828654289246,
-0.06484964489936829,
0.14584630727767944,
0.12041334062814713,
0.1669929474592209,
0.04967930167913437,
-0.10415976494550705,
-0.2347138375043869,
-0.26888319849967957,
-0.41030746698379517,
0.1611327975988388,
0.12407832592725754,
0.17316138744354248,
-0.15624132752418518,
0.2550908327102661,
-0.08340184390544891,
-0.2990102171897888,
-0.20212949812412262,
-0.041537441313266754,
-0.016547512263059616,
0.11945043504238129,
0.292372465133667,
-0.16195042431354523,
-0.31034329533576965,
0.1313701719045639,
0.19141623377799988,
0.5632073879241943,
-0.15096159279346466,
-0.055734679102897644,
0.17531169950962067,
0.046131107956171036,
-0.004943820647895336,
-0.1973169595003128,
0.039436109364032745,
-0.2136092185974121,
-0.08143104612827301,
0.20990754663944244,
0.09703463315963745,
-0.1612500250339508,
-0.2320544570684433,
-0.029647082090377808,
0.5801810622215271,
-0.2229619175195694,
0.06608199328184128,
0.13481783866882324,
-0.05857882648706436,
-0.05232337489724159,
-0.04074690118432045,
0.25098392367362976,
0.16001050174236298,
0.3742898106575012,
-0.39781150221824646,
0.18511764705181122,
0.26107242703437805,
0.24131637811660767,
0.09028666466474533,
-0.41891148686408997,
-0.00023834877356421202,
-0.17068444192409515,
-0.1442527174949646,
-0.006130029447376728,
-0.04747684299945831,
0.20744994282722473,
0.12139055877923965,
-0.40800097584724426,
0.13268119096755981,
0.2399294674396515,
-0.09195245057344437,
-0.18119633197784424,
-0.08142180740833282,
-0.23401248455047607,
-0.09085065126419067,
-0.012155627831816673,
-0.2507009506225586,
-0.0693347305059433,
0.1566045582294464,
0.4984639585018158,
0.16587874293327332,
-0.2415311336517334,
0.24048082530498505,
0.054487310349941254,
-0.006441217847168446,
-0.14616084098815918,
0.5727663040161133,
0.22540657222270966,
0.06449584662914276,
-0.10212566703557968,
0.29840871691703796,
0.6130154132843018,
0.34514120221138,
0.24109777808189392,
0.38349106907844543,
0.23948028683662415,
-0.018109917640686035,
0.18655817210674286,
-0.49490886926651,
0.33609333634376526,
0.31353065371513367,
0.40997713804244995,
0.055938854813575745,
0.0829232707619667,
0.2300325334072113,
-0.002567530144006014,
0.1394113153219223,
-0.07115719467401505,
0.09366714954376221,
0.23146528005599976,
-0.21528960764408112,
-0.3713240325450897,
0.005285200197249651,
-0.33116039633750916,
-0.07675435394048691,
0.5433688759803772,
-0.11164986342191696,
0.20257402956485748,
0.026869358494877815,
0.00554348761215806,
-0.0697944238781929,
0.5532210469245911,
0.26623818278312683,
0.1484849750995636,
-0.43723663687705994,
0.11658181250095367,
-0.4312412142753601,
-0.11771199107170105,
0.08138227462768555,
0.12809458374977112,
-0.1398504674434662,
0.11438683420419693,
-0.07234472781419754,
-0.13621735572814941,
0.4376222789287567,
0.1402815282344818,
0.06918090581893921,
0.3971473276615143,
-0.1524437963962555,
-0.07323210686445236,
0.17138895392417908,
0.12652957439422607,
-0.08548331260681152,
-0.30330750346183777,
0.3095443844795227,
-0.05729122459888458,
-0.06260639429092407,
0.011707669124007225,
0.005547432694584131,
-0.00628177635371685,
-0.2815605700016022,
0.36045458912849426,
-0.033192023634910583,
0.37410545349121094,
-0.061289604753255844,
-0.05976542830467224,
0.11815755814313889,
-0.26161304116249084,
-0.10632099956274033,
0.08532972633838654,
0.33836451172828674,
0.14405454695224762,
0.011456520296633244,
-0.14576783776283264,
-0.5411683320999146,
0.02517852745950222,
-0.15093018114566803,
0.017187604680657387,
0.058127012103796005,
-0.17217496037483215,
0.04900100827217102,
0.07290764898061752,
0.12035281211137772,
0.1281689554452896,
-0.04889267310500145,
0.2641177177429199,
-0.4909190535545349,
-0.352048397064209,
0.6163316369056702,
0.06611477583646774,
0.0947723463177681,
-0.2561664879322052,
0.5273270010948181,
-0.04757670685648918,
0.12637732923030853,
-0.47384390234947205,
0.10052518546581268,
0.2954452335834503,
-0.24731853604316711,
-0.1833803951740265,
0.23094643652439117,
-0.14373713731765747,
0.34419387578964233,
-0.01712820492684841,
0.0471278540790081,
0.03496374189853668,
-0.20779801905155182,
-0.21209147572517395,
-0.16067369282245636
] |
https://github.com/huggingface/datasets/issues/1671 | connection issue | > `
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/glue/glue.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7ff6d6c60a20>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)'))`
Do you have an internet connection on the machine ? Is there a proxy that might block requests to aws ?
> I tried to do read the data, save it to a path and then set HF_HOME, which does not work and this is still not reading from the old set path, could you assist me how to save the datasets in a path, and let dataset library read from this path to avoid connection issue. thanks
HF_HOME is used to specify the directory for the cache files of this library.
You can use save_to_disk and load_from_disk without changing the HF_HOME:
```python
imdb = datasets.load_dataset("imdb")
imdb.save_to_disk("/idiap/temp/rkarimi/hf_datasets/imdb")
imdb = datasets.load_from_disk("/idiap/temp/rkarimi/hf_datasets/imdb")
```
> could you tell me how I can make the two datastes the same format
Indeed they returns different things:
- `load_dataset` returns a `Dataset` object if the split is specified, or a `DatasetDict` if no split is given. Therefore `load_datasets("imdb", split="train[10]")` returns a `Dataset` object containing 10 elements.
- doing `d["train"][:10]` on a DatasetDict "d" gets the train split `d["train"]` as a `Dataset` object and then gets the first 10 elements as a dictionary | Hi
I am getting this connection issue, resulting in large failure on cloud, @lhoestq I appreciate your help on this.
If I want to keep the codes the same, so not using save_to_disk, load_from_disk, but save the datastes in the way load_dataset reads from and copy the files in the same folder the datasets library reads from, could you assist me how this can be done, thanks
I tried to do read the data, save it to a path and then set HF_HOME, which does not work and this is still not reading from the old set path, could you assist me how to save the datasets in a path, and let dataset library read from this path to avoid connection issue. thanks
```
imdb = datasets.load_dataset("imdb")
imdb.save_to_disk("/idiap/temp/rkarimi/hf_datasets/imdb")
>>> os.environ["HF_HOME"]="/idiap/temp/rkarimi/hf_datasets/"
>>> imdb = datasets.load_dataset("imdb")
Reusing dataset imdb (/idiap/temp/rkarimi/cache_home_2/datasets/imdb/plain_text/1.0.0/90099cb476936b753383ba2ae6ab2eae419b2e87f71cd5189cb9c8e5814d12a3)
```
I tried afterwards to set HF_HOME in bash, this makes it read from it, but it cannot let dataset library load from the saved path and still downloading data. could you tell me how to fix this issue @lhoestq thanks
Also this is on cloud, so I save them in a path, copy it to "another machine" to load the data
### Error stack
```
Traceback (most recent call last):
File "./finetune_t5_trainer.py", line 344, in <module>
main()
File "./finetune_t5_trainer.py", line 232, in main
for task in data_args.eval_tasks} if training_args.do_test else None
File "./finetune_t5_trainer.py", line 232, in <dictcomp>
for task in data_args.eval_tasks} if training_args.do_test else None
File "/workdir/seq2seq/data/tasks.py", line 136, in get_dataset
split = self.get_sampled_split(split, n_obs)
File "/workdir/seq2seq/data/tasks.py", line 64, in get_sampled_split
dataset = self.load_dataset(split)
File "/workdir/seq2seq/data/tasks.py", line 454, in load_dataset
split=split, script_version="master")
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 589, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 263, in prepare_module
head_hf_s3(path, filename=name, dataset=dataset)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 200, in head_hf_s3
return http_head(hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset))
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 403, in http_head
url, proxies=proxies, headers=headers, cookies=cookies, allow_redirects=allow_redirects, timeout=timeout
File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 104, in head
return request('head', url, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 504, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/glue/glue.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7ff6d6c60a20>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)'))
```
| 210 | connection issue
Hi
I am getting this connection issue, resulting in large failure on cloud, @lhoestq I appreciate your help on this.
If I want to keep the codes the same, so not using save_to_disk, load_from_disk, but save the datastes in the way load_dataset reads from and copy the files in the same folder the datasets library reads from, could you assist me how this can be done, thanks
I tried to do read the data, save it to a path and then set HF_HOME, which does not work and this is still not reading from the old set path, could you assist me how to save the datasets in a path, and let dataset library read from this path to avoid connection issue. thanks
```
imdb = datasets.load_dataset("imdb")
imdb.save_to_disk("/idiap/temp/rkarimi/hf_datasets/imdb")
>>> os.environ["HF_HOME"]="/idiap/temp/rkarimi/hf_datasets/"
>>> imdb = datasets.load_dataset("imdb")
Reusing dataset imdb (/idiap/temp/rkarimi/cache_home_2/datasets/imdb/plain_text/1.0.0/90099cb476936b753383ba2ae6ab2eae419b2e87f71cd5189cb9c8e5814d12a3)
```
I tried afterwards to set HF_HOME in bash, this makes it read from it, but it cannot let dataset library load from the saved path and still downloading data. could you tell me how to fix this issue @lhoestq thanks
Also this is on cloud, so I save them in a path, copy it to "another machine" to load the data
### Error stack
```
Traceback (most recent call last):
File "./finetune_t5_trainer.py", line 344, in <module>
main()
File "./finetune_t5_trainer.py", line 232, in main
for task in data_args.eval_tasks} if training_args.do_test else None
File "./finetune_t5_trainer.py", line 232, in <dictcomp>
for task in data_args.eval_tasks} if training_args.do_test else None
File "/workdir/seq2seq/data/tasks.py", line 136, in get_dataset
split = self.get_sampled_split(split, n_obs)
File "/workdir/seq2seq/data/tasks.py", line 64, in get_sampled_split
dataset = self.load_dataset(split)
File "/workdir/seq2seq/data/tasks.py", line 454, in load_dataset
split=split, script_version="master")
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 589, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/usr/local/lib/python3.6/dist-packages/datasets/load.py", line 263, in prepare_module
head_hf_s3(path, filename=name, dataset=dataset)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 200, in head_hf_s3
return http_head(hf_bucket_url(identifier=identifier, filename=filename, use_cdn=use_cdn, dataset=dataset))
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 403, in http_head
url, proxies=proxies, headers=headers, cookies=cookies, allow_redirects=allow_redirects, timeout=timeout
File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 104, in head
return request('head', url, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 504, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/glue/glue.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7ff6d6c60a20>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)'))
```
> `
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='s3.amazonaws.com', port=443): Max retries exceeded with url: /datasets.huggingface.co/datasets/datasets/glue/glue.py (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7ff6d6c60a20>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)'))`
Do you have an internet connection on the machine ? Is there a proxy that might block requests to aws ?
> I tried to do read the data, save it to a path and then set HF_HOME, which does not work and this is still not reading from the old set path, could you assist me how to save the datasets in a path, and let dataset library read from this path to avoid connection issue. thanks
HF_HOME is used to specify the directory for the cache files of this library.
You can use save_to_disk and load_from_disk without changing the HF_HOME:
```python
imdb = datasets.load_dataset("imdb")
imdb.save_to_disk("/idiap/temp/rkarimi/hf_datasets/imdb")
imdb = datasets.load_from_disk("/idiap/temp/rkarimi/hf_datasets/imdb")
```
> could you tell me how I can make the two datastes the same format
Indeed they returns different things:
- `load_dataset` returns a `Dataset` object if the split is specified, or a `DatasetDict` if no split is given. Therefore `load_datasets("imdb", split="train[10]")` returns a `Dataset` object containing 10 elements.
- doing `d["train"][:10]` on a DatasetDict "d" gets the train split `d["train"]` as a `Dataset` object and then gets the first 10 elements as a dictionary | [
-0.4165682792663574,
0.23384031653404236,
0.011721443384885788,
0.3550441563129425,
0.43614086508750916,
-0.18401682376861572,
0.17185884714126587,
0.20301806926727295,
-0.19610540568828583,
0.011228928342461586,
-0.2930116653442383,
0.1609506756067276,
0.14485131204128265,
0.2955973446369171,
0.06459133327007294,
-0.023586973547935486,
-0.17819586396217346,
0.02357584238052368,
-0.40690189599990845,
-0.19521057605743408,
0.01637071557343006,
0.15114952623844147,
0.19486010074615479,
0.11425281316041946,
-0.16872474551200867,
-0.20251627266407013,
0.03320096433162689,
0.3280470669269562,
0.07365027070045471,
-0.19919230043888092,
0.2894151210784912,
0.22295638918876648,
0.17900043725967407,
0.49325457215309143,
-0.0001225406740559265,
-0.05496964231133461,
0.13379354774951935,
-0.17346061766147614,
-0.40726667642593384,
-0.46312808990478516,
-0.006432876922190189,
0.14843222498893738,
0.22454164922237396,
-0.31054502725601196,
-0.03860260546207428,
0.13047140836715698,
-0.020976470783352852,
-0.4665897488594055,
0.42201951146125793,
0.3426235616207123,
0.1340467482805252,
-0.05101495236158371,
0.15193600952625275,
0.11344205588102341,
0.23710733652114868,
0.1746753454208374,
0.09390375763177872,
0.2888200581073761,
0.22435355186462402,
0.07397481054067612,
0.1331331878900528,
-0.23804496228694916,
-0.2881765365600586,
-0.259524405002594,
0.38108131289482117,
0.018502509221434593,
0.05582009628415108,
-0.19206127524375916,
0.16280993819236755,
0.3489704430103302,
0.6868797540664673,
-0.29393470287323,
-0.3240503668785095,
0.12964622676372528,
-0.10571690648794174,
-0.10060935467481613,
0.24731260538101196,
0.11190100759267807,
-0.16966649889945984,
0.23623187839984894,
-0.10598822683095932,
-0.25549912452697754,
-0.5657851696014404,
0.36494436860084534,
0.23361922800540924,
-0.13680125772953033,
-0.015188244171440601,
0.03245168179273605,
0.06855800747871399,
-0.16946592926979065,
0.5728231072425842,
-0.2556985914707184,
0.14739890396595,
-0.09524086862802505,
-0.21888606250286102,
0.04667231813073158,
-0.30668899416923523,
0.07193707674741745,
0.24277152121067047,
0.08973510563373566,
0.10540227591991425,
0.15549615025520325,
-0.22940999269485474,
0.10136277973651886,
0.18103687465190887,
-0.035397887229919434,
-0.02666390687227249,
0.10021411627531052,
0.5406510829925537,
0.37214934825897217,
-0.1249256506562233,
-0.1294812709093094,
0.056866902858018875,
-0.03678762540221214,
0.12277774512767792,
0.031188642606139183,
0.21479138731956482,
-0.3598896861076355,
-0.11316914856433868,
0.0711493119597435,
0.09170743823051453,
-0.13932053744792938,
0.14154918491840363,
0.721583366394043,
-0.1206657886505127,
0.1398361474275589,
0.047195371240377426,
0.14834369719028473,
-0.19074757397174835,
0.025149552151560783,
-0.06534372270107269,
-0.025322696194052696,
0.17327667772769928,
0.13654111325740814,
0.1921578049659729,
-0.1690635085105896,
0.22075629234313965,
0.1226692646741867,
0.2670639455318451,
-0.2381128966808319,
0.08719881623983383,
-0.3716702461242676,
0.16136868298053741,
0.20536379516124725,
0.13925565779209137,
0.25506293773651123,
-0.0422038771212101,
-0.045265886932611465,
-0.025193145498633385,
0.0961955338716507,
-0.3489895761013031,
-0.3657597601413727,
-0.2603071928024292,
0.0855560228228569,
-0.018598029389977455,
-0.15193909406661987,
-0.515561044216156,
-0.45766836404800415,
-0.013505661860108376,
-0.27570661902427673,
-0.11528576165437698,
-0.11204417049884796,
0.036160096526145935,
-0.4071180522441864,
0.44327908754348755,
0.4497462809085846,
-0.36293408274650574,
0.097495436668396,
-0.01116436067968607,
0.00044889759737998247,
0.044256579130887985,
0.3351145386695862,
-0.19482116401195526,
0.090844064950943,
-0.3700459599494934,
-0.14709530770778656,
0.4817885458469391,
-0.6308916211128235,
-0.5266735553741455,
0.46918630599975586,
-0.01561580691486597,
-0.17479349672794342,
0.18737970292568207,
0.18402276933193207,
0.2436394840478897,
-0.024795979261398315,
0.015740061178803444,
0.27710774540901184,
0.15997222065925598,
-0.019377317279577255,
-0.21067073941230774,
-0.3089703321456909,
0.03600308671593666,
0.11183106154203415,
0.13598977029323578,
0.0014544249279424548,
0.46254536509513855,
-0.026096880435943604,
0.37869927287101746,
-0.14643274247646332,
0.15244224667549133,
0.3833593726158142,
0.4820324778556824,
0.20731918513774872,
-0.13406860828399658,
0.24573831260204315,
-0.47306275367736816,
-0.04789320379495621,
0.10754738748073578,
-0.440232515335083,
-0.20942838490009308,
-0.16221769154071808,
-0.005717217922210693,
-0.15840484201908112,
-0.23688095808029175,
0.1601702868938446,
-0.014038905501365662,
0.061092011630535126,
-0.1786530315876007,
-0.1449938267469406,
-0.19149529933929443,
0.3710280954837799,
-0.1508069634437561,
0.03461674228310585,
-0.13326039910316467,
0.6925700306892395,
-0.31966978311538696,
-0.08033068478107452,
0.09777210652828217,
-0.1760411113500595,
0.2887408137321472,
-0.2172832041978836,
-0.22290746867656708,
0.3530240058898926,
-0.2944038510322571,
0.58603835105896,
-0.1928032487630844,
0.3995565176010132,
0.1996215581893921,
-0.17994412779808044,
0.3573046326637268,
-0.061142582446336746,
0.24290356040000916,
0.005107921548187733,
-0.06655397266149521,
0.22250215709209442,
-0.3444161117076874,
0.36576688289642334,
0.44511711597442627,
-0.16584394872188568,
0.14748425781726837,
-0.051502104848623276,
0.11959318071603775,
-0.010837357491254807,
0.2701350152492523,
-0.01915012113749981,
0.2505916953086853,
-0.10710655152797699,
-0.29970312118530273,
0.33878660202026367,
0.16145193576812744,
-0.07552003115415573,
0.28023532032966614,
0.14168286323547363,
0.33272889256477356,
-0.15109333395957947,
0.02152770571410656,
0.21141411364078522,
0.3508692979812622,
0.1427527368068695,
-0.1889166682958603,
0.2852964997291565,
0.38088497519493103,
-0.29010745882987976,
0.37947648763656616,
0.004945568740367889,
0.2021842747926712,
0.4133449196815491,
0.014029902406036854,
-0.0563509501516819,
-0.13603860139846802,
-0.20948557555675507,
-0.064550019800663,
0.09686216711997986,
-0.5591400265693665,
0.07488440722227097,
-0.33069682121276855,
-0.23094837367534637,
-0.3336360454559326,
0.19585750997066498,
-0.04561883956193924,
-0.18980564177036285,
-0.3087564706802368,
0.5337559580802917,
0.19788114726543427,
-0.015596753917634487,
-0.06808283925056458,
0.10716955363750458,
-0.2461315542459488,
-0.2705366611480713,
-0.22471018135547638,
-0.08556108921766281,
-0.18690931797027588,
-0.04157790541648865,
0.23943348228931427,
0.0679078996181488,
0.12814298272132874,
-0.14713390171527863,
-0.34750130772590637,
-0.5005231499671936,
-0.02583344466984272,
-0.012016266584396362,
0.33623871207237244,
0.35994845628738403,
0.1549183577299118,
0.5422621369361877,
0.010140819475054741,
-0.2701672315597534,
0.052814118564128876,
0.0025791001971811056,
-0.036984626203775406,
-0.08012502640485764,
-0.04448889195919037,
-0.06252652406692505,
0.15917401015758514,
-0.376953125,
-0.4660073220729828,
-0.27272945642471313,
0.07425602525472641,
-0.12927787005901337,
0.4784609079360962,
0.04077224060893059,
-0.0397597998380661,
0.08248227089643478,
0.017104798927903175,
0.2734912633895874,
-0.10422225296497345,
-0.6493800282478333,
0.18825340270996094,
-0.24758121371269226,
-0.2464488446712494,
0.07086636871099472,
0.16610702872276306,
0.3669279217720032,
-0.10302754491567612,
-0.7127377390861511,
-0.38052675127983093,
0.12475571781396866,
0.4643067419528961,
-0.2653201222419739,
0.16847412288188934,
0.2085428535938263,
-0.01380271464586258,
0.06225935369729996,
-0.01912781037390232,
-0.12404747307300568,
0.17226533591747284,
0.247281014919281,
0.28268393874168396,
0.08265653997659683,
0.43936416506767273,
-0.3292029798030853,
0.4117838144302368,
0.2907211184501648,
0.052050959318876266,
0.6116375923156738,
-0.06879919767379761,
0.34170448780059814,
-0.18813934922218323,
-0.2586170434951782,
0.11631442606449127,
0.017352858558297157,
-0.25534436106681824,
-0.08442854881286621,
-0.18971523642539978,
0.22596752643585205,
-0.2243671715259552,
-0.47296297550201416,
-0.3650861084461212,
-0.4024696350097656,
-0.011671537533402443,
-0.09442239254713058,
0.08460143953561783,
-0.00724268052726984,
0.10347308218479156,
0.059679802507162094,
-0.16069047152996063,
0.26210159063339233,
0.5211012959480286,
-0.15599744021892548,
0.114259272813797,
-0.1473681777715683,
-0.1331167370080948,
-0.35091450810432434,
0.2465466558933258,
-0.0877440944314003,
0.38877278566360474,
-0.3745870292186737,
0.31518998742103577,
0.01841038651764393,
-0.26345762610435486,
0.7598446011543274,
-0.340820848941803,
0.24583660066127777,
-0.018597187474370003,
0.0526481494307518,
-0.21405963599681854,
0.05621989071369171,
0.1495470404624939,
-0.09197208285331726,
-0.018582738935947418,
0.37419065833091736,
-0.11345506459474564,
-0.15003281831741333,
0.033463254570961,
0.21973752975463867,
-0.15227587521076202,
-0.05921020731329918,
0.08574306219816208,
-0.3991430103778839,
-0.21362854540348053,
-0.2902211546897888,
-0.3151867389678955,
0.015274149365723133,
-0.10557699203491211,
-0.13244441151618958,
0.0001829436223488301,
0.0047284928150475025,
0.05931740626692772,
-0.21915294229984283,
0.3563084602355957,
-0.15309473872184753,
0.298458069562912,
0.08968886733055115,
0.0829966813325882,
0.7660003900527954,
0.5066100358963013,
-0.32617977261543274,
0.23304739594459534,
0.028867490589618683,
-0.018078168854117393,
0.3309479057788849,
0.44704577326774597,
-0.0877508595585823,
-0.018732551485300064,
0.20512866973876953,
-0.01347543764859438,
0.03375306725502014,
-0.20551541447639465,
-0.03257331997156143,
0.04332678020000458,
-0.12047406286001205,
-0.4945744276046753,
0.3498409688472748,
0.021859439089894295,
-0.10243041068315506,
-0.0798325389623642,
0.1540108621120453,
-0.2283494919538498,
0.42397433519363403,
0.1683761328458786,
1.1728324890136719,
-0.008593464270234108,
0.4076620936393738,
-0.04646102711558342,
-0.3239516615867615,
0.03291892260313034,
-0.3433544635772705,
-0.058077286928892136,
-0.566009521484375,
-0.24526545405387878,
-0.09236003458499908,
-0.20515219867229462,
-0.10081197321414948,
0.01981443725526333,
-0.2067544311285019,
0.6651973128318787,
-0.4083107113838196,
-0.13877685368061066,
-0.12611578404903412,
0.385576456785202,
-0.20233683288097382,
-0.052632201462984085,
-0.23618248105049133,
0.05269969254732132,
-0.22787000238895416,
0.14616438746452332,
-0.0807887613773346,
-0.047577500343322754,
-0.028518803417682648,
-0.2451549917459488,
-0.10608287155628204,
0.11139338463544846,
-0.6149665117263794,
0.27293768525123596,
-0.21949182450771332,
-0.32678884267807007,
0.1695641130208969,
0.18552598357200623,
0.25944578647613525,
0.25202009081840515,
-0.0014896704815328121,
0.11977533251047134,
0.03588799759745598,
0.09641571342945099,
0.0441536083817482,
-0.03089049831032753,
0.1161925420165062,
-0.0914623960852623,
-0.3058593273162842,
-0.04514358937740326,
-0.019382117316126823,
-0.045269060879945755,
0.023077011108398438,
-0.321988970041275,
0.20400580763816833,
-0.3108043074607849,
-0.2169771045446396,
-0.12276574969291687,
-0.16701193153858185,
-0.2081407606601715,
-0.021959949284791946,
0.03329799324274063,
-0.0036612136755138636,
0.3311714828014374,
0.2592054307460785,
-0.09841261804103851,
-0.04004275053739548,
0.7084529399871826,
0.024739839136600494,
0.03716697916388512,
0.6152188181877136,
0.018047112971544266,
-0.19181694090366364,
-0.14208060503005981,
0.3525810241699219,
0.01125668827444315,
-0.11410990357398987,
0.0025600579101592302,
-0.20957142114639282,
0.09172923117876053,
-0.018081538379192352,
0.2597586214542389,
0.036362241953611374,
0.3591597080230713,
-0.19684702157974243,
-0.41360926628112793,
-0.39472395181655884,
0.04991108551621437,
0.08780165761709213,
0.17325836420059204,
0.25967711210250854,
-0.25106099247932434,
-0.18068504333496094,
-0.18927983939647675,
-0.19606879353523254,
0.08685216307640076,
-0.24065446853637695,
-0.052801985293626785,
0.3912682831287384,
-0.23522904515266418,
0.21912781894207,
-0.2918091416358948,
0.06697388738393784,
-0.21923717856407166,
-0.12101151049137115,
-0.058663446456193924,
-0.20077604055404663,
0.22314658761024475,
-0.1096743643283844,
-0.09288846701383591,
-0.2505301535129547,
-0.5493828654289246,
-0.06484964489936829,
0.14584630727767944,
0.12041334062814713,
0.1669929474592209,
0.04967930167913437,
-0.10415976494550705,
-0.2347138375043869,
-0.26888319849967957,
-0.41030746698379517,
0.1611327975988388,
0.12407832592725754,
0.17316138744354248,
-0.15624132752418518,
0.2550908327102661,
-0.08340184390544891,
-0.2990102171897888,
-0.20212949812412262,
-0.041537441313266754,
-0.016547512263059616,
0.11945043504238129,
0.292372465133667,
-0.16195042431354523,
-0.31034329533576965,
0.1313701719045639,
0.19141623377799988,
0.5632073879241943,
-0.15096159279346466,
-0.055734679102897644,
0.17531169950962067,
0.046131107956171036,
-0.004943820647895336,
-0.1973169595003128,
0.039436109364032745,
-0.2136092185974121,
-0.08143104612827301,
0.20990754663944244,
0.09703463315963745,
-0.1612500250339508,
-0.2320544570684433,
-0.029647082090377808,
0.5801810622215271,
-0.2229619175195694,
0.06608199328184128,
0.13481783866882324,
-0.05857882648706436,
-0.05232337489724159,
-0.04074690118432045,
0.25098392367362976,
0.16001050174236298,
0.3742898106575012,
-0.39781150221824646,
0.18511764705181122,
0.26107242703437805,
0.24131637811660767,
0.09028666466474533,
-0.41891148686408997,
-0.00023834877356421202,
-0.17068444192409515,
-0.1442527174949646,
-0.006130029447376728,
-0.04747684299945831,
0.20744994282722473,
0.12139055877923965,
-0.40800097584724426,
0.13268119096755981,
0.2399294674396515,
-0.09195245057344437,
-0.18119633197784424,
-0.08142180740833282,
-0.23401248455047607,
-0.09085065126419067,
-0.012155627831816673,
-0.2507009506225586,
-0.0693347305059433,
0.1566045582294464,
0.4984639585018158,
0.16587874293327332,
-0.2415311336517334,
0.24048082530498505,
0.054487310349941254,
-0.006441217847168446,
-0.14616084098815918,
0.5727663040161133,
0.22540657222270966,
0.06449584662914276,
-0.10212566703557968,
0.29840871691703796,
0.6130154132843018,
0.34514120221138,
0.24109777808189392,
0.38349106907844543,
0.23948028683662415,
-0.018109917640686035,
0.18655817210674286,
-0.49490886926651,
0.33609333634376526,
0.31353065371513367,
0.40997713804244995,
0.055938854813575745,
0.0829232707619667,
0.2300325334072113,
-0.002567530144006014,
0.1394113153219223,
-0.07115719467401505,
0.09366714954376221,
0.23146528005599976,
-0.21528960764408112,
-0.3713240325450897,
0.005285200197249651,
-0.33116039633750916,
-0.07675435394048691,
0.5433688759803772,
-0.11164986342191696,
0.20257402956485748,
0.026869358494877815,
0.00554348761215806,
-0.0697944238781929,
0.5532210469245911,
0.26623818278312683,
0.1484849750995636,
-0.43723663687705994,
0.11658181250095367,
-0.4312412142753601,
-0.11771199107170105,
0.08138227462768555,
0.12809458374977112,
-0.1398504674434662,
0.11438683420419693,
-0.07234472781419754,
-0.13621735572814941,
0.4376222789287567,
0.1402815282344818,
0.06918090581893921,
0.3971473276615143,
-0.1524437963962555,
-0.07323210686445236,
0.17138895392417908,
0.12652957439422607,
-0.08548331260681152,
-0.30330750346183777,
0.3095443844795227,
-0.05729122459888458,
-0.06260639429092407,
0.011707669124007225,
0.005547432694584131,
-0.00628177635371685,
-0.2815605700016022,
0.36045458912849426,
-0.033192023634910583,
0.37410545349121094,
-0.061289604753255844,
-0.05976542830467224,
0.11815755814313889,
-0.26161304116249084,
-0.10632099956274033,
0.08532972633838654,
0.33836451172828674,
0.14405454695224762,
0.011456520296633244,
-0.14576783776283264,
-0.5411683320999146,
0.02517852745950222,
-0.15093018114566803,
0.017187604680657387,
0.058127012103796005,
-0.17217496037483215,
0.04900100827217102,
0.07290764898061752,
0.12035281211137772,
0.1281689554452896,
-0.04889267310500145,
0.2641177177429199,
-0.4909190535545349,
-0.352048397064209,
0.6163316369056702,
0.06611477583646774,
0.0947723463177681,
-0.2561664879322052,
0.5273270010948181,
-0.04757670685648918,
0.12637732923030853,
-0.47384390234947205,
0.10052518546581268,
0.2954452335834503,
-0.24731853604316711,
-0.1833803951740265,
0.23094643652439117,
-0.14373713731765747,
0.34419387578964233,
-0.01712820492684841,
0.0471278540790081,
0.03496374189853668,
-0.20779801905155182,
-0.21209147572517395,
-0.16067369282245636
] |
https://github.com/huggingface/datasets/issues/1670 | wiki_dpr pre-processing performance | Hi ! And thanks for the tips :)
Indeed currently `wiki_dpr` takes some time to be processed.
Multiprocessing for dataset generation is definitely going to speed up things.
Regarding the index note that for the default configurations, the index is downloaded instead of being built, which avoid spending time on constructing the index. However in other cases it would be awesome to make the construction faster.
Any contribution that can help things faster are welcome. In particular in you have some code that can build a wiki_dpr IVF PQ index in a sharded GPU setup and would like to share it, we can add it to an `examples` folder. In particular since faiss is becoming the library of reference for dataset indexing for tasks like Open Domain Question Answering.
| I've been working with wiki_dpr and noticed that the dataset processing is seriously impaired in performance [1]. It takes about 12h to process the entire dataset. Most of this time is simply loading and processing the data, but the actual indexing is also quite slow (3h).
I won't repeat the concerns around multiprocessing as they are addressed in other issues (#786), but this is the first obvious thing to do. Using cython to speed up the text manipulation may be also help. Loading and processing a dataset of this size in under 15 minutes does not seem unreasonable on a modern multi-core machine. I have hit such targets myself on similar tasks. Would love to see this improve.
The other issue is that it takes 3h to construct the FAISS index. If only we could use GPUs with HNSW, but we can't. My sharded GPU indexing code can build an IVF + PQ index in 10 minutes on 20 million vectors. Still, 3h seems slow even for the CPU.
It looks like HF is adding only 1000 vectors at a time by default [2], whereas the faiss benchmarks adds 1 million vectors at a time (effectively) [3]. It's possible the runtime could be reduced with a larger batch. Also, it looks like project dependencies ultimately use OpenBLAS, but this is known to have issues when combined with OpenMP, which HNSW does [3]. A workaround is to set the environment variable `OMP_WAIT_POLICY=PASSIVE` via `os.environ` or similar.
References:
[1] https://github.com/huggingface/datasets/blob/master/datasets/wiki_dpr/wiki_dpr.py
[2] https://github.com/huggingface/datasets/blob/master/src/datasets/search.py
[3] https://github.com/facebookresearch/faiss/blob/master/benchs/bench_hnsw.py
[4] https://github.com/facebookresearch/faiss/issues/422 | 129 | wiki_dpr pre-processing performance
I've been working with wiki_dpr and noticed that the dataset processing is seriously impaired in performance [1]. It takes about 12h to process the entire dataset. Most of this time is simply loading and processing the data, but the actual indexing is also quite slow (3h).
I won't repeat the concerns around multiprocessing as they are addressed in other issues (#786), but this is the first obvious thing to do. Using cython to speed up the text manipulation may be also help. Loading and processing a dataset of this size in under 15 minutes does not seem unreasonable on a modern multi-core machine. I have hit such targets myself on similar tasks. Would love to see this improve.
The other issue is that it takes 3h to construct the FAISS index. If only we could use GPUs with HNSW, but we can't. My sharded GPU indexing code can build an IVF + PQ index in 10 minutes on 20 million vectors. Still, 3h seems slow even for the CPU.
It looks like HF is adding only 1000 vectors at a time by default [2], whereas the faiss benchmarks adds 1 million vectors at a time (effectively) [3]. It's possible the runtime could be reduced with a larger batch. Also, it looks like project dependencies ultimately use OpenBLAS, but this is known to have issues when combined with OpenMP, which HNSW does [3]. A workaround is to set the environment variable `OMP_WAIT_POLICY=PASSIVE` via `os.environ` or similar.
References:
[1] https://github.com/huggingface/datasets/blob/master/datasets/wiki_dpr/wiki_dpr.py
[2] https://github.com/huggingface/datasets/blob/master/src/datasets/search.py
[3] https://github.com/facebookresearch/faiss/blob/master/benchs/bench_hnsw.py
[4] https://github.com/facebookresearch/faiss/issues/422
Hi ! And thanks for the tips :)
Indeed currently `wiki_dpr` takes some time to be processed.
Multiprocessing for dataset generation is definitely going to speed up things.
Regarding the index note that for the default configurations, the index is downloaded instead of being built, which avoid spending time on constructing the index. However in other cases it would be awesome to make the construction faster.
Any contribution that can help things faster are welcome. In particular in you have some code that can build a wiki_dpr IVF PQ index in a sharded GPU setup and would like to share it, we can add it to an `examples` folder. In particular since faiss is becoming the library of reference for dataset indexing for tasks like Open Domain Question Answering.
| [
-0.21966484189033508,
-0.18326736986637115,
-0.11372299492359161,
0.08813261985778809,
-0.11355595290660858,
-0.08153735846281052,
0.022308815270662308,
0.3311193585395813,
0.18954695761203766,
0.07095278799533844,
0.020521165803074837,
-0.10259182751178741,
0.32460537552833557,
0.1452309787273407,
-0.3447282910346985,
-0.272011935710907,
0.20554789900779724,
0.061085253953933716,
0.15369117259979248,
0.0085713230073452,
-0.23364365100860596,
-0.04783060774207115,
-0.40425410866737366,
-0.09887731075286865,
-0.13022330403327942,
-0.2336065173149109,
-0.0790710598230362,
-0.11594965308904648,
-0.1927480697631836,
-0.4908297061920166,
0.22955322265625,
0.4961722195148468,
0.15210941433906555,
0.1528983861207962,
-0.00010802900942508131,
-0.11490517109632492,
0.20217983424663544,
0.22886304557323456,
0.11972320079803467,
0.6329679489135742,
0.07363489270210266,
-0.13880322873592377,
0.16864503920078278,
-0.2438189536333084,
0.016067523509263992,
-0.3819813132286072,
-0.1399826556444168,
0.16759184002876282,
0.21927665174007416,
-0.15538731217384338,
0.14052429795265198,
0.052383676171302795,
-0.12070463597774506,
0.1294270157814026,
-0.05144166946411133,
-0.11345726996660233,
-0.19750872254371643,
-0.273482084274292,
0.18389888107776642,
-0.19710245728492737,
-0.19780495762825012,
0.580102801322937,
-0.21477648615837097,
0.07439763844013214,
0.2620585262775421,
0.1684107482433319,
0.20453594624996185,
-0.2048112452030182,
0.1987677812576294,
0.5227434635162354,
0.2674142122268677,
0.12520533800125122,
-0.21637260913848877,
-0.2284141331911087,
-0.03924037143588066,
-0.3450887203216553,
0.27618804574012756,
-0.244888573884964,
-0.17836755514144897,
0.07150711119174957,
0.04935361072421074,
0.016227617859840393,
0.004791442770510912,
-0.04393836483359337,
0.00871084351092577,
0.4345320761203766,
0.1707943230867386,
-0.018357284367084503,
0.21148715913295746,
-0.17358995974063873,
-0.1470002382993698,
-0.19796395301818848,
-0.0012502382742241025,
0.2027684897184372,
-0.39302578568458557,
-0.04958918318152428,
0.10501548647880554,
-0.16479429602622986,
0.10577854514122009,
-0.17226295173168182,
-0.350741982460022,
0.4661412239074707,
0.18529167771339417,
-0.08955197781324387,
0.13667792081832886,
-0.0003284394333604723,
-0.30728182196617126,
-0.12810663878917694,
0.36415237188339233,
0.054113175719976425,
-0.13699549436569214,
0.20235438644886017,
0.2030724138021469,
-0.11067967861890793,
-0.16706214845180511,
-0.3106614649295807,
-0.2953488230705261,
-0.10637293756008148,
0.28866878151893616,
0.15195582807064056,
0.11505098640918732,
-0.24847641587257385,
-0.014887149445712566,
0.5208368301391602,
-0.16472893953323364,
0.5626704692840576,
0.15044498443603516,
-0.15781867504119873,
-0.3267689645290375,
0.2533043622970581,
-0.034738510847091675,
-0.17328397929668427,
-0.1848648637533188,
0.2981394827365875,
0.0767064243555069,
0.0865778774023056,
-0.07972124963998795,
0.09529706835746765,
0.17077182233333588,
-0.025691552087664604,
-0.019863901659846306,
-0.055364400148391724,
0.23633262515068054,
0.263355553150177,
-0.10757238417863846,
0.12068170309066772,
-0.2376253306865692,
-0.040030453354120255,
-0.2965538203716278,
-0.12106040120124817,
-0.064070925116539,
-0.37177610397338867,
-0.11622066795825958,
0.20386876165866852,
0.15346664190292358,
0.009802889078855515,
-0.024111809208989143,
0.32528141140937805,
0.05090203136205673,
0.007237941958010197,
-0.0024149988312274218,
0.005753810051828623,
-0.15139000117778778,
-0.10151875019073486,
0.49974325299263,
0.25141510367393494,
-0.084732286632061,
0.17472665011882782,
0.02534881979227066,
0.1252770721912384,
0.16693058609962463,
0.4507262110710144,
-0.11140173673629761,
0.16187447309494019,
0.039500243961811066,
0.25503912568092346,
0.019526468589901924,
-0.32038575410842896,
-0.22728917002677917,
0.3782850205898285,
0.163028284907341,
0.01857653446495533,
0.15532836318016052,
0.015250335447490215,
0.21766944229602814,
0.009175581857562065,
-0.06528691947460175,
0.4854987859725952,
0.17503045499324799,
0.1409177929162979,
-0.47254711389541626,
-0.48326191306114197,
-0.0594814233481884,
0.34618115425109863,
0.11977433413267136,
-0.2265678346157074,
-0.20471854507923126,
-0.1846185177564621,
0.3050084412097931,
-0.3265383541584015,
0.09859353303909302,
0.10260302573442459,
0.10754132270812988,
0.2157730609178543,
0.28963786363601685,
-0.04590088129043579,
-0.13460421562194824,
0.27872148156166077,
-0.3080231547355652,
0.3445783257484436,
0.2770591974258423,
-0.28941401839256287,
0.12092418968677521,
0.030659588053822517,
-0.10569178313016891,
-0.134190171957016,
0.14023087918758392,
-0.11292453855276108,
0.019297108054161072,
0.03915507346391678,
-0.10060621798038483,
-0.0919622927904129,
-0.21199087798595428,
-0.018185902386903763,
0.0214297566562891,
-0.015541807748377323,
-0.32079964876174927,
0.057352397590875626,
0.08925354480743408,
0.20413748919963837,
0.08665093034505844,
0.14442291855812073,
-0.02173011563718319,
0.05496225506067276,
0.08683526515960693,
-0.006681919563561678,
0.5205858945846558,
0.2361232489347458,
0.061384499073028564,
-0.19061295688152313,
-0.063287153840065,
-0.06094401702284813,
0.011432409286499023,
-0.23040197789669037,
-0.2520047128200531,
0.508336067199707,
0.09671027213335037,
0.672421932220459,
0.0362221822142601,
-0.15137740969657898,
0.1983901411294937,
-0.09280995279550552,
0.32362228631973267,
0.16214819252490997,
0.09676703065633774,
0.08617792278528214,
-0.1542334407567978,
0.1096741110086441,
-0.24700868129730225,
0.3957996368408203,
0.08477124571800232,
-0.13900846242904663,
-0.14604610204696655,
0.34550029039382935,
0.1476966142654419,
-0.40268927812576294,
0.12037216871976852,
-0.32505854964256287,
-0.11673573404550552,
0.23402157425880432,
0.0778975784778595,
-0.09327484667301178,
-0.061206914484500885,
-0.19058382511138916,
0.25610098242759705,
0.06262385845184326,
-0.15068259835243225,
0.1598196029663086,
0.04841161519289017,
0.17126546800136566,
-0.09741819649934769,
-0.2836388647556305,
-0.13963192701339722,
0.06320773810148239,
-0.0014032754115760326,
0.019849808886647224,
-0.0967806726694107,
-0.03670604154467583,
0.4275030493736267,
0.02640465460717678,
-0.4450348913669586,
-0.35905855894088745,
0.23959757387638092,
-0.1972917914390564,
-0.1552642285823822,
0.26937660574913025,
-0.009930985979735851,
0.047862373292446136,
-0.10507886856794357,
-0.2813078761100769,
-0.45333829522132874,
-0.3079472482204437,
-0.2773776948451996,
0.013023166917264462,
0.189239963889122,
0.6149395704269409,
0.2304699867963791,
0.20741181075572968,
-0.2322351038455963,
-0.047332439571619034,
-0.41370338201522827,
0.14326657354831696,
-0.09474924206733704,
0.07487261295318604,
0.062012601643800735,
0.10434982925653458,
-0.2676287293434143,
-0.2927015423774719,
0.09634340554475784,
-0.18459941446781158,
0.07378131151199341,
-0.10743391513824463,
-0.25970974564552307,
-0.0023873131722211838,
0.07520944625139236,
-0.3678361177444458,
-0.09818769991397858,
-0.27225273847579956,
0.12361237406730652,
-0.12374996393918991,
0.14889369904994965,
-0.24180908501148224,
0.06430056691169739,
0.1365862935781479,
-0.12273208051919937,
0.09699008613824844,
-0.15947680175304413,
-0.07402282953262329,
0.33615344762802124,
0.05026679486036301,
-0.2920595407485962,
-0.09976627677679062,
-0.14210942387580872,
-0.026073038578033447,
0.058399271219968796,
-0.49869078397750854,
0.10200613737106323,
-0.44663718342781067,
0.43757179379463196,
0.12353561818599701,
0.2664428651332855,
0.3579047918319702,
0.09058971703052521,
-0.22388648986816406,
0.00393458129838109,
-0.013812171295285225,
0.07720256596803665,
-0.26984912157058716,
-0.025780856609344482,
-0.08996652066707611,
0.02762020379304886,
-0.20299232006072998,
1.1685945987701416,
0.18036849796772003,
0.060284461826086044,
0.25785207748413086,
0.27490997314453125,
0.10213813185691833,
-0.15250013768672943,
0.07821249961853027,
0.1474122256040573,
-0.1481909602880478,
0.24208252131938934,
0.29131242632865906,
0.05301663652062416,
-0.33290332555770874,
-0.07645675539970398,
0.034734874963760376,
-0.18521901965141296,
-0.3656599521636963,
0.2082989662885666,
0.40824094414711,
0.34892475605010986,
-0.0001843816280597821,
0.11109904944896698,
-0.218386709690094,
-0.2367400974035263,
0.2086194008588791,
0.2917194366455078,
0.029960503801703453,
-0.2430802285671234,
-0.0582614429295063,
0.06305257230997086,
-0.7865274548530579,
0.23133336007595062,
0.1303323656320572,
0.10139480978250504,
-0.04236368089914322,
0.21953432261943817,
0.3353595733642578,
-0.3801005482673645,
0.3456803858280182,
-0.49505847692489624,
-0.03317243233323097,
0.3131640553474426,
-0.2899520695209503,
-0.04764896258711815,
0.09948982298374176,
-0.20290598273277283,
-0.5299878120422363,
0.37352603673934937,
0.27605342864990234,
-0.426197350025177,
-0.3881302773952484,
0.14811067283153534,
-0.09573780000209808,
-0.15055610239505768,
-0.36415761709213257,
-0.18206852674484253,
-0.37870171666145325,
-0.11263995617628098,
0.2456609159708023,
-0.07587282359600067,
0.1786433756351471,
-0.14383843541145325,
0.06832415610551834,
-0.224725142121315,
0.3002112805843353,
-0.024844782426953316,
0.30016446113586426,
0.0009158289176411927,
-0.023906666785478592,
0.32779377698898315,
0.08941705524921417,
-0.13702203333377838,
0.20201294124126434,
-0.036044761538505554,
0.04795350506901741,
0.33394405245780945,
-0.22931653261184692,
0.03986365720629692,
0.03430122882127762,
0.44064846634864807,
0.09311003237962723,
0.33881285786628723,
-0.00968293659389019,
0.4912429749965668,
-0.49760961532592773,
0.011288613080978394,
0.32639849185943604,
0.010954095982015133,
-0.3418413996696472,
-0.2849179208278656,
0.5926831364631653,
0.09814131259918213,
-0.28269705176353455,
0.24031983315944672,
0.6242871284484863,
-0.04578162357211113,
0.7988659739494324,
0.437902569770813,
0.9731780886650085,
-0.32360193133354187,
0.18294714391231537,
0.051698360592126846,
-0.11415086686611176,
0.17721593379974365,
-0.5803911685943604,
0.013279853388667107,
-0.34412792325019836,
-0.060809362679719925,
0.14572252333164215,
0.06609351187944412,
0.09981570392847061,
0.07905023545026779,
-0.21126651763916016,
0.056532617658376694,
0.2663474380970001,
-0.3910271227359772,
-0.10337419807910919,
0.6442168951034546,
0.26427870988845825,
-0.5839915871620178,
-0.06889816373586655,
0.09406477212905884,
0.10492346435785294,
-0.007052629720419645,
-0.0335589237511158,
-0.14997731149196625,
0.0058964211493730545,
-0.01575426757335663,
-0.42638829350471497,
-0.07884320616722107,
0.2132333666086197,
0.09510780870914459,
-0.14423926174640656,
-0.10158006846904755,
0.32895055413246155,
0.19949619472026825,
0.044621553272008896,
0.08282162249088287,
-0.3486490547657013,
0.47963035106658936,
-0.23257498443126678,
-0.05256090685725212,
0.06448497623205185,
-0.2691117525100708,
0.036886073648929596,
-0.10211192071437836,
-0.39961880445480347,
-0.3449292778968811,
-0.17267689108848572,
-0.13182450830936432,
-0.3958914577960968,
-0.1175529807806015,
-0.12868155539035797,
0.027743354439735413,
0.17468439042568207,
0.11597879976034164,
-0.321233868598938,
-0.15710408985614777,
0.16899563372135162,
-0.008478323929011822,
-0.11465023458003998,
0.5580576062202454,
0.14565378427505493,
-0.11813777685165405,
-0.14472755789756775,
0.24133829772472382,
0.22185447812080383,
-0.12614914774894714,
0.17111563682556152,
0.33068960905075073,
-0.3781174123287201,
-0.25394248962402344,
-0.2330629676580429,
0.16131384670734406,
0.09130404889583588,
-0.04629925638437271,
0.1414880007505417,
-0.4187161922454834,
0.13230785727500916,
0.18597474694252014,
-0.04518575593829155,
-0.3899756073951721,
-0.1491931676864624,
-0.07786976546049118,
-0.15376710891723633,
0.13331787288188934,
-0.11493285745382309,
0.14781421422958374,
-0.12762326002120972,
-0.07189493626356125,
-0.076959989964962,
0.5021987557411194,
-0.3233354687690735,
-0.0379970446228981,
-0.36581262946128845,
0.11540349572896957,
-0.20465074479579926,
-0.24954316020011902,
0.14500205218791962,
0.11774696409702301,
0.0801377072930336,
0.047430362552404404,
-0.11149565130472183,
-0.22686804831027985,
-0.11655821651220322,
0.1802140325307846,
-0.027892088517546654,
-0.21743276715278625,
0.23006412386894226,
0.054106030613183975,
-0.47737911343574524,
-0.5050480365753174,
0.1447993963956833,
-0.059866636991500854,
-0.10007593035697937,
0.018010759726166725,
0.025268303230404854,
0.09783681482076645,
-0.15353094041347504,
0.2102258801460266,
0.041049931198358536,
0.35047420859336853,
0.07088173925876617,
-0.028214024379849434,
0.10943403095006943,
-0.25752583146095276,
0.2309643179178238,
0.12667624652385712,
0.25368762016296387,
0.03175198286771774,
0.4446635842323303,
0.06964663416147232,
-0.3849516808986664,
0.019600091502070427,
0.43303167819976807,
0.4753473103046417,
0.14118696749210358,
-0.016759587451815605,
0.19324859976768494,
0.1791667342185974,
-0.2137446403503418,
-0.13017132878303528,
0.3691512942314148,
-0.1887834370136261,
0.17370325326919556,
0.04340777546167374,
0.45898300409317017,
0.17460517585277557,
-0.15960945188999176,
0.053206928074359894,
-0.0747285857796669,
-0.361865371465683,
-0.1350298821926117,
0.06540586054325104,
0.29459652304649353,
-0.01547278743237257,
0.18134498596191406,
0.14803235232830048,
0.22063209116458893,
0.4996940493583679,
0.1271933764219284,
0.44123607873916626,
-0.08164045959711075,
0.5757461190223694,
-0.03706321865320206,
-0.1976613849401474,
0.3342176377773285,
0.22814635932445526,
0.03818529471755028,
0.053329866379499435,
-0.05877584218978882,
-0.10672663897275925,
0.15673565864562988,
-0.3506700396537781,
-0.13947968184947968,
0.2525767385959625,
-0.14143358170986176,
-0.3310839533805847,
0.17895998060703278,
-0.003086258191615343,
0.12122493237257004,
0.2332032173871994,
0.0462859645485878,
-0.010201211087405682,
0.20232394337654114,
0.14364539086818695,
-0.10630087554454803,
-0.31076687574386597,
0.05031369999051094,
-0.07704868167638779,
0.6449183821678162,
0.039930280297994614,
-0.21194465458393097,
0.13703837990760803,
-0.15988212823867798,
-0.07369162887334824,
0.20658992230892181,
0.26973631978034973,
0.1512991189956665,
-0.6558001041412354,
0.07927842438220978,
0.04817017540335655,
0.09430715441703796,
0.015902899205684662,
0.26950404047966003,
0.012386242859065533,
0.3510619103908539,
0.21356093883514404,
0.007044380530714989,
-0.24836106598377228,
-0.7480024099349976,
-0.11762937903404236,
0.22163471579551697,
0.03053789772093296,
-0.038206517696380615,
0.13563300669193268,
-0.12583816051483154,
0.027958206832408905,
0.11130211502313614,
-0.253218412399292,
0.36493760347366333,
0.24341072142124176,
-0.08197085559368134,
0.031524889171123505,
-0.047742508351802826,
0.09998280555009842,
-0.056748662143945694,
0.8836595416069031,
0.19419807195663452,
0.18045790493488312,
-0.2134256362915039,
-0.15100155770778656,
-0.5924731492996216,
-0.019074564799666405,
-0.3248521685600281,
-0.09119001030921936,
0.5681340098381042,
0.36244913935661316,
0.004030875861644745,
0.17476150393486023,
0.21949322521686554,
-0.010798927396535873,
0.11198682337999344,
0.40597039461135864,
-0.27753326296806335,
0.21019725501537323,
-0.26910653710365295,
-0.14093197882175446,
-0.0756237655878067,
-0.305385023355484,
0.42512062191963196,
0.23091170191764832,
-0.006682306528091431,
-0.009121458046138287,
0.1979621797800064,
0.13587737083435059,
0.11231238394975662,
0.2765578329563141,
0.2952304482460022,
0.1052662804722786,
-0.18179889023303986,
-0.10903149098157883,
-0.20365780591964722,
0.055028822273015976,
-0.07328955084085464,
0.04699767380952835,
-0.06691466271877289,
0.08668269217014313,
-0.12951599061489105,
-0.30516520142555237,
-0.2181548923254013,
0.1757831573486328,
-0.07414055615663528,
0.13698768615722656,
-0.20450639724731445,
-0.10232264548540115,
0.26492491364479065,
0.3677133619785309,
0.08781386911869049,
0.2704731523990631,
-0.0025312977377325296,
-0.017363380640745163,
-0.45230308175086975,
-0.32067403197288513,
0.32381486892700195,
-0.37162765860557556,
-0.16304147243499756,
-0.0864439383149147,
0.06703881919384003,
0.1396895796060562,
0.2970750331878662,
-0.5577392578125,
-0.09709455817937851,
0.10174991935491562,
0.1856280267238617,
-0.4030952453613281,
0.015873601660132408,
-0.045470479875802994,
-0.23678337037563324,
-0.21569682657718658,
-0.04110950604081154,
0.065671406686306,
-0.1367792785167694,
-0.29754820466041565,
-0.22281016409397125
] |
https://github.com/huggingface/datasets/issues/1670 | wiki_dpr pre-processing performance | I'd be happy to contribute something when I get the time, probably adding multiprocessing and / or cython support to wiki_dpr. I've written cythonized apache beam code before as well.
For sharded index building, I used the FAISS example code for indexing 1 billion vectors as a start. I'm sure you're aware that the documentation isn't great, but the source code is fairly easy to follow. | I've been working with wiki_dpr and noticed that the dataset processing is seriously impaired in performance [1]. It takes about 12h to process the entire dataset. Most of this time is simply loading and processing the data, but the actual indexing is also quite slow (3h).
I won't repeat the concerns around multiprocessing as they are addressed in other issues (#786), but this is the first obvious thing to do. Using cython to speed up the text manipulation may be also help. Loading and processing a dataset of this size in under 15 minutes does not seem unreasonable on a modern multi-core machine. I have hit such targets myself on similar tasks. Would love to see this improve.
The other issue is that it takes 3h to construct the FAISS index. If only we could use GPUs with HNSW, but we can't. My sharded GPU indexing code can build an IVF + PQ index in 10 minutes on 20 million vectors. Still, 3h seems slow even for the CPU.
It looks like HF is adding only 1000 vectors at a time by default [2], whereas the faiss benchmarks adds 1 million vectors at a time (effectively) [3]. It's possible the runtime could be reduced with a larger batch. Also, it looks like project dependencies ultimately use OpenBLAS, but this is known to have issues when combined with OpenMP, which HNSW does [3]. A workaround is to set the environment variable `OMP_WAIT_POLICY=PASSIVE` via `os.environ` or similar.
References:
[1] https://github.com/huggingface/datasets/blob/master/datasets/wiki_dpr/wiki_dpr.py
[2] https://github.com/huggingface/datasets/blob/master/src/datasets/search.py
[3] https://github.com/facebookresearch/faiss/blob/master/benchs/bench_hnsw.py
[4] https://github.com/facebookresearch/faiss/issues/422 | 66 | wiki_dpr pre-processing performance
I've been working with wiki_dpr and noticed that the dataset processing is seriously impaired in performance [1]. It takes about 12h to process the entire dataset. Most of this time is simply loading and processing the data, but the actual indexing is also quite slow (3h).
I won't repeat the concerns around multiprocessing as they are addressed in other issues (#786), but this is the first obvious thing to do. Using cython to speed up the text manipulation may be also help. Loading and processing a dataset of this size in under 15 minutes does not seem unreasonable on a modern multi-core machine. I have hit such targets myself on similar tasks. Would love to see this improve.
The other issue is that it takes 3h to construct the FAISS index. If only we could use GPUs with HNSW, but we can't. My sharded GPU indexing code can build an IVF + PQ index in 10 minutes on 20 million vectors. Still, 3h seems slow even for the CPU.
It looks like HF is adding only 1000 vectors at a time by default [2], whereas the faiss benchmarks adds 1 million vectors at a time (effectively) [3]. It's possible the runtime could be reduced with a larger batch. Also, it looks like project dependencies ultimately use OpenBLAS, but this is known to have issues when combined with OpenMP, which HNSW does [3]. A workaround is to set the environment variable `OMP_WAIT_POLICY=PASSIVE` via `os.environ` or similar.
References:
[1] https://github.com/huggingface/datasets/blob/master/datasets/wiki_dpr/wiki_dpr.py
[2] https://github.com/huggingface/datasets/blob/master/src/datasets/search.py
[3] https://github.com/facebookresearch/faiss/blob/master/benchs/bench_hnsw.py
[4] https://github.com/facebookresearch/faiss/issues/422
I'd be happy to contribute something when I get the time, probably adding multiprocessing and / or cython support to wiki_dpr. I've written cythonized apache beam code before as well.
For sharded index building, I used the FAISS example code for indexing 1 billion vectors as a start. I'm sure you're aware that the documentation isn't great, but the source code is fairly easy to follow. | [
-0.22649028897285461,
-0.15619109570980072,
-0.12017626315355301,
0.06685486435890198,
-0.1370592713356018,
-0.08907434344291687,
0.025616968050599098,
0.3342381715774536,
0.19152718782424927,
0.06897865235805511,
0.03954366222023964,
-0.09713640064001083,
0.3024311363697052,
0.1471911072731018,
-0.3419130742549896,
-0.27862870693206787,
0.20231957733631134,
0.06131855770945549,
0.14840832352638245,
0.029778899624943733,
-0.24281646311283112,
-0.05474378168582916,
-0.4051637351512909,
-0.12120114266872406,
-0.11950617283582687,
-0.2362726628780365,
-0.0799640491604805,
-0.12658824026584625,
-0.17690737545490265,
-0.5026081204414368,
0.22070777416229248,
0.5021684169769287,
0.1483299881219864,
0.1311970055103302,
-0.00010815418499987572,
-0.11954500526189804,
0.1936885267496109,
0.22716942429542542,
0.12244381755590439,
0.6476593017578125,
0.0664062574505806,
-0.15026149153709412,
0.16504834592342377,
-0.23878507316112518,
0.03324101120233536,
-0.3853895664215088,
-0.12205351889133453,
0.1576741337776184,
0.21022826433181763,
-0.1659054458141327,
0.13240937888622284,
0.05799148976802826,
-0.12575136125087738,
0.1390795111656189,
-0.06180192157626152,
-0.09084033221006393,
-0.21006964147090912,
-0.27913740277290344,
0.1850634515285492,
-0.20456738770008087,
-0.20201240479946136,
0.5718426704406738,
-0.23050937056541443,
0.08298642188310623,
0.2626013159751892,
0.15674954652786255,
0.20920774340629578,
-0.2050277143716812,
0.1888362169265747,
0.5338252186775208,
0.2658001482486725,
0.12251782417297363,
-0.22753940522670746,
-0.237063929438591,
-0.027646686881780624,
-0.33449146151542664,
0.2790989875793457,
-0.23981444537639618,
-0.18164657056331635,
0.08779086917638779,
0.059006884694099426,
0.016767004504799843,
-0.0018294993788003922,
-0.048296328634023666,
0.010347087867558002,
0.4794563353061676,
0.17628176510334015,
-0.024131817743182182,
0.20759475231170654,
-0.16378024220466614,
-0.1426846832036972,
-0.18572120368480682,
0.005633646622300148,
0.20056016743183136,
-0.3916047215461731,
-0.05917361378669739,
0.08716513961553574,
-0.1771809607744217,
0.10877285897731781,
-0.16245423257350922,
-0.34007036685943604,
0.46013182401657104,
0.16892170906066895,
-0.08505186438560486,
0.13263599574565887,
-0.011087452061474323,
-0.3062151074409485,
-0.14711256325244904,
0.376203715801239,
0.052295368164777756,
-0.11764836311340332,
0.2342725694179535,
0.2008638083934784,
-0.1009126827120781,
-0.16558192670345306,
-0.3135615885257721,
-0.29785144329071045,
-0.09255129843950272,
0.2849408984184265,
0.16055627167224884,
0.11777324229478836,
-0.2563348710536957,
-0.020705286413431168,
0.506527841091156,
-0.16217197477817535,
0.5769705176353455,
0.14745967090129852,
-0.1734805554151535,
-0.3040226101875305,
0.23229865729808807,
-0.027100665494799614,
-0.1695578396320343,
-0.16490371525287628,
0.2978242039680481,
0.06797554343938828,
0.10474636405706406,
-0.07754609733819962,
0.07523159682750702,
0.17360948026180267,
-0.009536470286548138,
-0.007220129016786814,
-0.03193607181310654,
0.25665125250816345,
0.26845136284828186,
-0.1274978369474411,
0.09694183617830276,
-0.23418723046779633,
-0.031004030257463455,
-0.309194952249527,
-0.11368828266859055,
-0.052766501903533936,
-0.37019792199134827,
-0.1326065957546234,
0.1966400295495987,
0.148009791970253,
-0.007523370441049337,
-0.023163290694355965,
0.3451903164386749,
0.04421301186084747,
-0.004465831909328699,
0.03045077808201313,
0.003930703736841679,
-0.16938936710357666,
-0.10586661100387573,
0.508374810218811,
0.24764874577522278,
-0.08408354222774506,
0.16020473837852478,
0.026820432394742966,
0.12791071832180023,
0.16021771728992462,
0.4359186589717865,
-0.1009853333234787,
0.1620684564113617,
0.05515384301543236,
0.24389518797397614,
0.018809553235769272,
-0.33108794689178467,
-0.23648428916931152,
0.36775317788124084,
0.167493537068367,
0.01780872792005539,
0.1697305142879486,
0.03382329270243645,
0.22242531180381775,
-0.000777838344220072,
-0.06356159597635269,
0.5007226467132568,
0.16899530589580536,
0.14480267465114594,
-0.4762885868549347,
-0.5098893642425537,
-0.05421165004372597,
0.3578077256679535,
0.12606045603752136,
-0.234633207321167,
-0.18795673549175262,
-0.17842036485671997,
0.30206915736198425,
-0.310278981924057,
0.10198653489351273,
0.08988865464925766,
0.1041046604514122,
0.19451360404491425,
0.2758500874042511,
-0.049319107085466385,
-0.12819983065128326,
0.2644067406654358,
-0.31057536602020264,
0.3434852063655853,
0.2918091416358948,
-0.2907407581806183,
0.13538509607315063,
0.044496022164821625,
-0.09078613668680191,
-0.14519675076007843,
0.13016533851623535,
-0.10105212032794952,
0.023438960313796997,
0.044451650232076645,
-0.10511833429336548,
-0.08826768398284912,
-0.22044658660888672,
-0.017461063340306282,
0.03751127049326897,
-0.02154429815709591,
-0.2987060248851776,
0.05317825451493263,
0.09029927104711533,
0.2185138612985611,
0.06567477434873581,
0.14211596548557281,
-0.014804012142121792,
0.05672178789973259,
0.08496081084012985,
-0.003672479884698987,
0.5223876237869263,
0.26269450783729553,
0.0666324570775032,
-0.17891043424606323,
-0.05650404840707779,
-0.054586660116910934,
-0.010275440290570259,
-0.20951907336711884,
-0.27213865518569946,
0.5150547027587891,
0.09931951016187668,
0.6663001179695129,
0.03356010094285011,
-0.14112262427806854,
0.19107146561145782,
-0.08005411177873611,
0.2929946780204773,
0.16128619015216827,
0.09089019149541855,
0.08388777077198029,
-0.15543945133686066,
0.1086617261171341,
-0.24579142034053802,
0.39859727025032043,
0.08871980011463165,
-0.14188644289970398,
-0.12382161617279053,
0.34102198481559753,
0.15186147391796112,
-0.43174880743026733,
0.13784553110599518,
-0.3139723539352417,
-0.1318144053220749,
0.23961739242076874,
0.07603055983781815,
-0.09338509291410446,
-0.06432992219924927,
-0.17953868210315704,
0.25570932030677795,
0.06872408092021942,
-0.16040700674057007,
0.1599915325641632,
0.0489683635532856,
0.18973137438297272,
-0.1004808247089386,
-0.3037284016609192,
-0.15035806596279144,
0.054747965186834335,
0.015806937590241432,
0.011437288485467434,
-0.09457667171955109,
-0.032972291111946106,
0.43622833490371704,
0.027771195396780968,
-0.44274213910102844,
-0.36159127950668335,
0.2546585500240326,
-0.2031911462545395,
-0.17404045164585114,
0.2699272632598877,
-0.033337827771902084,
0.07388560473918915,
-0.11609839648008347,
-0.3093850612640381,
-0.46880537271499634,
-0.3147059679031372,
-0.2602572441101074,
0.012199540622532368,
0.18355320394039154,
0.6119241714477539,
0.24368394911289215,
0.2118457555770874,
-0.23683124780654907,
-0.04728182032704353,
-0.419897198677063,
0.1470544934272766,
-0.07971833646297455,
0.0652085393667221,
0.07605823129415512,
0.09878252446651459,
-0.2667643427848816,
-0.30647844076156616,
0.0766439214348793,
-0.20065733790397644,
0.08647753298282623,
-0.12770123779773712,
-0.25471433997154236,
0.015578770078718662,
0.08177168667316437,
-0.3525174856185913,
-0.09941583126783371,
-0.28115028142929077,
0.1316223293542862,
-0.12530462443828583,
0.14718030393123627,
-0.24705123901367188,
0.06999289989471436,
0.1486903429031372,
-0.13756565749645233,
0.09456081688404083,
-0.14603736996650696,
-0.07998643070459366,
0.3313511312007904,
0.04473389312624931,
-0.2690943777561188,
-0.12046626955270767,
-0.13549251854419708,
-0.019803175702691078,
0.05919232964515686,
-0.5038508772850037,
0.09041570872068405,
-0.4313817620277405,
0.4464227855205536,
0.10893738269805908,
0.26792532205581665,
0.3700769543647766,
0.10718334466218948,
-0.22812260687351227,
0.017460528761148453,
-0.005721100606024265,
0.05289214476943016,
-0.26386114954948425,
-0.04901391640305519,
-0.086794413626194,
0.008586155250668526,
-0.19584035873413086,
1.1640779972076416,
0.16697022318840027,
0.06632575392723083,
0.25715968012809753,
0.284044474363327,
0.10981766879558563,
-0.14246511459350586,
0.10167697072029114,
0.15369261801242828,
-0.14403419196605682,
0.24496062099933624,
0.29130059480667114,
0.04644427448511124,
-0.340487003326416,
-0.06584469228982925,
0.009132207371294498,
-0.17905864119529724,
-0.36280786991119385,
0.1982974410057068,
0.4147169589996338,
0.3583085834980011,
-0.013202576898038387,
0.10477801412343979,
-0.21626046299934387,
-0.23084582388401031,
0.22718334197998047,
0.2939751446247101,
0.036180704832077026,
-0.23758035898208618,
-0.045625317841768265,
0.07037944346666336,
-0.7937566637992859,
0.22714801132678986,
0.13520579040050507,
0.10624241083860397,
-0.0449315682053566,
0.20499874651432037,
0.31818702816963196,
-0.3824547827243805,
0.3311474919319153,
-0.5110364556312561,
-0.03422408923506737,
0.310538113117218,
-0.26851126551628113,
-0.026773015037178993,
0.10107069462537766,
-0.19879667460918427,
-0.5399521589279175,
0.36623117327690125,
0.27304211258888245,
-0.40418463945388794,
-0.39463141560554504,
0.16380488872528076,
-0.10568568855524063,
-0.14116835594177246,
-0.34991973638534546,
-0.1689429134130478,
-0.374313622713089,
-0.1158241555094719,
0.2541351020336151,
-0.07302246242761612,
0.16178497672080994,
-0.1162709891796112,
0.07576769590377808,
-0.24037617444992065,
0.3053179681301117,
-0.03594415634870529,
0.29971930384635925,
-0.020390013232827187,
-0.020666390657424927,
0.321292519569397,
0.0841277465224266,
-0.15932442247867584,
0.20034478604793549,
-0.0690935030579567,
0.04272616654634476,
0.3371324837207794,
-0.2086457759141922,
0.053932130336761475,
0.041836291551589966,
0.4395437240600586,
0.09431587159633636,
0.3287374675273895,
0.006421899888664484,
0.4958716630935669,
-0.4995759427547455,
0.01861630380153656,
0.31672412157058716,
0.005829770117998123,
-0.35243454575538635,
-0.3060562014579773,
0.6003254652023315,
0.11249228566884995,
-0.2819768786430359,
0.2517494857311249,
0.637944757938385,
-0.0435171015560627,
0.8059245944023132,
0.4664427936077118,
0.9706414937973022,
-0.313597172498703,
0.20171338319778442,
0.05783078819513321,
-0.10529804229736328,
0.186831533908844,
-0.5955253839492798,
0.010622512549161911,
-0.3307253122329712,
-0.05078700929880142,
0.13858574628829956,
0.07174708694219589,
0.10708767175674438,
0.06962036341428757,
-0.21083654463291168,
0.040856439620256424,
0.28925904631614685,
-0.3912501931190491,
-0.08884356915950775,
0.6510117650032043,
0.2506239116191864,
-0.5994691252708435,
-0.06271924823522568,
0.08649653196334839,
0.11037175357341766,
-0.029935773462057114,
-0.033121660351753235,
-0.14771997928619385,
0.03123057819902897,
-0.0010649488540366292,
-0.4338218569755554,
-0.09248416870832443,
0.21500585973262787,
0.09376342594623566,
-0.14252978563308716,
-0.09799455106258392,
0.33626100420951843,
0.20082759857177734,
0.037769269198179245,
0.08918298035860062,
-0.35036176443099976,
0.47328078746795654,
-0.22885632514953613,
-0.05205623060464859,
0.0807797759771347,
-0.27165549993515015,
0.06370916962623596,
-0.0979204922914505,
-0.3850010931491852,
-0.3434790372848511,
-0.17169314622879028,
-0.1527830958366394,
-0.38542503118515015,
-0.12453078478574753,
-0.13095752894878387,
0.04314272850751877,
0.1877596080303192,
0.1281508058309555,
-0.3271596133708954,
-0.16819486021995544,
0.16408714652061462,
-0.014130502939224243,
-0.11198224872350693,
0.5528222322463989,
0.13495300710201263,
-0.1208631694316864,
-0.1516038030385971,
0.22805169224739075,
0.22843407094478607,
-0.12558157742023468,
0.15460942685604095,
0.3147464394569397,
-0.3647041916847229,
-0.2627890110015869,
-0.22499220073223114,
0.15481749176979065,
0.10121035575866699,
-0.03644821047782898,
0.13303086161613464,
-0.43344631791114807,
0.129983589053154,
0.19569236040115356,
-0.045575857162475586,
-0.3782908320426941,
-0.16495518386363983,
-0.07189595699310303,
-0.14491158723831177,
0.1371910572052002,
-0.12023518234491348,
0.159111887216568,
-0.10991638898849487,
-0.07993980497121811,
-0.08741241693496704,
0.48489910364151,
-0.3216121792793274,
-0.07501183450222015,
-0.35071855783462524,
0.07844394445419312,
-0.2023090273141861,
-0.23455412685871124,
0.14319820702075958,
0.1367759257555008,
0.07175664603710175,
0.04955516383051872,
-0.10065590590238571,
-0.22168424725532532,
-0.13469107449054718,
0.18366019427776337,
-0.02822137624025345,
-0.21050992608070374,
0.23551161587238312,
0.058502864092588425,
-0.48991745710372925,
-0.5152709484100342,
0.14235256612300873,
-0.06616093963384628,
-0.09582404047250748,
0.0199265219271183,
0.0216851606965065,
0.13067154586315155,
-0.1422114074230194,
0.22075000405311584,
0.05530443415045738,
0.3395250141620636,
0.057459644973278046,
-0.008523153141140938,
0.11686568707227707,
-0.24955707788467407,
0.24082496762275696,
0.1467067450284958,
0.25635093450546265,
0.01920914649963379,
0.4395844042301178,
0.08629050850868225,
-0.4105631411075592,
0.019777843728661537,
0.4301701784133911,
0.45587602257728577,
0.1562860757112503,
-0.029309973120689392,
0.1915709674358368,
0.17530016601085663,
-0.2196451723575592,
-0.13987618684768677,
0.3598822057247162,
-0.1931513547897339,
0.1824481189250946,
0.0544717013835907,
0.47743549942970276,
0.18100763857364655,
-0.14716766774654388,
0.04374576359987259,
-0.07296417653560638,
-0.3672821819782257,
-0.12625625729560852,
0.0754418596625328,
0.30414679646492004,
-0.019646432250738144,
0.17808938026428223,
0.15228518843650818,
0.2421380877494812,
0.4696978032588959,
0.13467533886432648,
0.4433131217956543,
-0.06146099045872688,
0.5766788125038147,
-0.034728579223155975,
-0.1724632978439331,
0.34633880853652954,
0.2108275145292282,
0.03944015130400658,
0.07578863948583603,
-0.05669579282402992,
-0.11771547049283981,
0.15036381781101227,
-0.3285142779350281,
-0.14731618762016296,
0.2560689449310303,
-0.12535153329372406,
-0.3405517339706421,
0.1767049878835678,
-0.014707849361002445,
0.1190313920378685,
0.23884646594524384,
0.050136588513851166,
-0.015960123389959335,
0.20086318254470825,
0.13526631891727448,
-0.08821947872638702,
-0.3003576993942261,
0.06683409959077835,
-0.07217240333557129,
0.6491082310676575,
0.025875095278024673,
-0.2342168390750885,
0.1350669264793396,
-0.17062436044216156,
-0.08794038742780685,
0.21005617082118988,
0.27354806661605835,
0.13262797892093658,
-0.6634916067123413,
0.08663638681173325,
0.021494921296834946,
0.1066218838095665,
0.0001622895651962608,
0.2667885720729828,
0.01299979630857706,
0.3445982336997986,
0.19350427389144897,
0.006566161289811134,
-0.23924396932125092,
-0.7350768446922302,
-0.1268932819366455,
0.197494775056839,
0.019403375685214996,
-0.02778657339513302,
0.15130475163459778,
-0.12155359983444214,
0.03807776793837547,
0.13098539412021637,
-0.24168618023395538,
0.34936952590942383,
0.2266615778207779,
-0.07303433120250702,
0.026520149782299995,
-0.03344491124153137,
0.09960110485553741,
-0.055462438613176346,
0.8809109926223755,
0.19003908336162567,
0.1785147488117218,
-0.19361820816993713,
-0.14429782330989838,
-0.5910931825637817,
-0.02528090588748455,
-0.2965448200702667,
-0.11201224476099014,
0.5680955648422241,
0.3571702539920807,
0.01062585599720478,
0.1882096529006958,
0.2214713841676712,
-0.008969147689640522,
0.11646263301372528,
0.3898642659187317,
-0.2631460428237915,
0.2222467064857483,
-0.2608744204044342,
-0.13772700726985931,
-0.077122762799263,
-0.3192451298236847,
0.4159128963947296,
0.23604361712932587,
-0.017201440408825874,
-0.024835221469402313,
0.17681443691253662,
0.14545013010501862,
0.11425749957561493,
0.2799149751663208,
0.29693448543548584,
0.07682423293590546,
-0.18396049737930298,
-0.12511412799358368,
-0.23279355466365814,
0.0658806711435318,
-0.08315905928611755,
0.029332084581255913,
-0.07467455416917801,
0.08470404148101807,
-0.14309263229370117,
-0.3185124397277832,
-0.2177843451499939,
0.18278880417346954,
-0.07213319838047028,
0.13686278462409973,
-0.19847463071346283,
-0.10875008255243301,
0.2646813988685608,
0.3724132180213928,
0.08555693924427032,
0.2582962214946747,
0.016159385442733765,
-0.023719200864434242,
-0.44866350293159485,
-0.30017125606536865,
0.30091407895088196,
-0.3872108459472656,
-0.16100646555423737,
-0.10634198039770126,
0.05419783666729927,
0.13995030522346497,
0.2979111969470978,
-0.548587441444397,
-0.11437450349330902,
0.09987429529428482,
0.20493824779987335,
-0.3972117602825165,
0.014841354452073574,
-0.04558975249528885,
-0.23270335793495178,
-0.22682905197143555,
-0.0411338247358799,
0.04796020686626434,
-0.13731886446475983,
-0.31262287497520447,
-0.23363974690437317
] |
https://github.com/huggingface/datasets/issues/1662 | Arrow file is too large when saving vector data | Hi !
The arrow file size is due to the embeddings. Indeed if they're stored as float32 then the total size of the embeddings is
20 000 000 vectors * 768 dimensions * 4 bytes per dimension ~= 60GB
If you want to reduce the size you can consider using quantization for example, or maybe using dimension reduction techniques.
| I computed the sentence embedding of each sentence of bookcorpus data using bert base and saved them to disk. I used 20M sentences and the obtained arrow file is about 59GB while the original text file is only about 1.3GB. Are there any ways to reduce the size of the arrow file? | 59 | Arrow file is too large when saving vector data
I computed the sentence embedding of each sentence of bookcorpus data using bert base and saved them to disk. I used 20M sentences and the obtained arrow file is about 59GB while the original text file is only about 1.3GB. Are there any ways to reduce the size of the arrow file?
Hi !
The arrow file size is due to the embeddings. Indeed if they're stored as float32 then the total size of the embeddings is
20 000 000 vectors * 768 dimensions * 4 bytes per dimension ~= 60GB
If you want to reduce the size you can consider using quantization for example, or maybe using dimension reduction techniques.
| [
0.11372185498476028,
-0.33165597915649414,
-0.05896599590778351,
0.45345360040664673,
0.13431209325790405,
-0.11615707725286484,
-0.17864489555358887,
0.46086549758911133,
-0.40809890627861023,
0.33289843797683716,
0.1982359141111374,
-0.08847441524267197,
-0.12217715382575989,
-0.18767298758029938,
-0.10288333892822266,
-0.1468024104833603,
0.12065241485834122,
0.40423744916915894,
0.046336278319358826,
-0.06683221459388733,
0.2086952030658722,
0.23050366342067719,
0.08898163586854935,
0.05838323384523392,
-0.3092937469482422,
-0.2625987231731415,
-0.15499863028526306,
0.03155278041958809,
-0.3289453387260437,
-0.18412253260612488,
-0.1933375746011734,
-0.16470448672771454,
0.38716983795166016,
0.4107967019081116,
-0.00012929298100061715,
-0.16636840999126434,
-0.006786702200770378,
-0.08002428710460663,
-0.12759731709957123,
0.36736851930618286,
0.07736052572727203,
-0.3972460627555847,
0.012807918712496758,
-0.2621864676475525,
0.2411109358072281,
-0.3113116919994354,
-0.18069441616535187,
-0.24908603727817535,
0.5573139190673828,
0.004265396390110254,
0.06892836838960648,
-0.23041576147079468,
0.09214352071285248,
0.3472113609313965,
0.25350072979927063,
-0.06352054327726364,
-0.07132580876350403,
0.15292897820472717,
0.47154560685157776,
0.2860766053199768,
-0.18238824605941772,
0.3631991446018219,
0.11010348051786423,
-0.2088293880224228,
0.3755970001220703,
-0.234185591340065,
0.6091358065605164,
-0.0399567149579525,
0.2837224304676056,
0.32558393478393555,
0.6376830339431763,
-0.13708075881004333,
0.05124419555068016,
0.07818350195884705,
0.3942011594772339,
-0.07222779095172882,
0.06601987034082413,
0.29711052775382996,
-0.013959094882011414,
-0.011379951611161232,
-0.03768263757228851,
-0.6596640944480896,
-0.34867385029792786,
0.018688824027776718,
0.14985784888267517,
-0.22961370646953583,
-0.16085770726203918,
-0.13075651228427887,
0.3024175763130188,
-0.3091191053390503,
0.01808813028037548,
0.0056582349352538586,
-0.19443431496620178,
-0.03266594186425209,
-0.21659468114376068,
-0.2044764757156372,
-0.6254197955131531,
-0.05339482054114342,
-0.07576537132263184,
-0.19329099357128143,
0.6419787406921387,
-0.15030096471309662,
0.023994242772459984,
0.02405800297856331,
0.1890588253736496,
0.40344178676605225,
-0.15622471272945404,
0.2484547197818756,
0.03522181138396263,
0.07530944049358368,
-0.03379584848880768,
-0.14936573803424835,
-0.4900304675102234,
-0.14984238147735596,
0.20521894097328186,
-0.38698503375053406,
-0.28067246079444885,
-0.07325921207666397,
0.29340660572052,
0.1845790445804596,
-0.48405200242996216,
0.2669830620288849,
0.09754446148872375,
0.15592393279075623,
0.10788017511367798,
0.291014164686203,
-0.00111859489697963,
0.09231632947921753,
-0.06593018770217896,
0.009485369548201561,
0.02776310406625271,
-0.09813237190246582,
-0.1420457363128662,
0.006058309227228165,
-0.07829434424638748,
-0.0065727089531719685,
0.148331880569458,
-0.33391129970550537,
-0.007267674431204796,
-0.35099098086357117,
0.02876238524913788,
-0.3294258415699005,
0.24987496435642242,
-0.00012946697825100273,
-0.12088978290557861,
0.10712285339832306,
-0.27286043763160706,
0.1755198985338211,
-0.19964870810508728,
0.2861882150173187,
-0.35469186305999756,
-0.19925466179847717,
-0.4079979956150055,
0.002083254512399435,
-0.07025855779647827,
0.23426635563373566,
-0.07665622979402542,
0.07827305048704147,
0.2531574070453644,
-0.1458364725112915,
0.06396285444498062,
-0.19476020336151123,
0.019837675616145134,
-0.1918916404247284,
0.20368456840515137,
0.005958272144198418,
-0.582638680934906,
0.011303524486720562,
-0.21321618556976318,
0.25904667377471924,
0.23568576574325562,
0.617472231388092,
-0.03638971969485283,
0.05852175131440163,
0.1287311166524887,
0.40634244680404663,
0.13569015264511108,
0.04808323085308075,
-0.5367757081985474,
0.21711866557598114,
0.2386545091867447,
-0.10116926580667496,
0.18592196702957153,
0.292955219745636,
0.08929509669542313,
0.007152287755161524,
-0.2879393696784973,
0.1310659945011139,
0.17176450788974762,
0.16368184983730316,
-0.25648221373558044,
-0.4411570131778717,
-0.21642112731933594,
-0.0965438038110733,
-0.3174477815628052,
-0.6281601786613464,
-0.06820730119943619,
0.025035323575139046,
0.2728004455566406,
-0.25770705938339233,
0.22523421049118042,
0.49284759163856506,
0.2753369212150574,
-0.0006954905693419278,
0.2238852083683014,
0.16690178215503693,
-0.12122747302055359,
-0.1580062061548233,
-0.24811391532421112,
-0.4369778633117676,
-0.2673236131668091,
-0.1983465701341629,
-0.01275514904409647,
-0.11553802341222763,
0.08474771678447723,
0.20975825190544128,
-0.0684809759259224,
-0.43388622999191284,
-0.2588706910610199,
-0.2044484168291092,
-0.002829819219186902,
-0.16498343646526337,
-0.17411088943481445,
0.02261805720627308,
-0.08137689530849457,
-0.0307601410895586,
-0.03843987360596657,
-0.2457408457994461,
0.24725547432899475,
0.13475850224494934,
-0.14844734966754913,
0.11645235121250153,
-0.24074898660182953,
0.15980088710784912,
-0.1675875186920166,
0.4313785433769226,
0.1129629835486412,
0.03867080435156822,
-0.020548928529024124,
-0.6437349915504456,
0.7238842844963074,
0.15460629761219025,
0.1889219582080841,
0.1275748759508133,
-0.2429233193397522,
-0.349194198846817,
0.08008352667093277,
0.2482021152973175,
0.09398806840181351,
-0.22779057919979095,
-0.183920755982399,
0.0678190290927887,
-0.10575796663761139,
-0.14848016202449799,
0.11977327615022659,
0.26034846901893616,
0.34256964921951294,
0.41013678908348083,
0.11276595294475555,
-0.1909983605146408,
0.34335750341415405,
0.01984691247344017,
0.1349349468946457,
0.5249638557434082,
-0.6002116203308105,
-0.3416874408721924,
0.05182170122861862,
-0.17722098529338837,
-0.09396148473024368,
0.12630291283130646,
0.06251226365566254,
-0.1255117803812027,
0.489676296710968,
-0.00785553827881813,
0.3011787235736847,
0.3242175877094269,
0.41923975944519043,
0.17674681544303894,
-0.010845755226910114,
0.08377321809530258,
-0.1029767319560051,
0.06266321986913681,
-0.21923814713954926,
0.04661652818322182,
-0.24519522488117218,
0.24246104061603546,
-0.2749292552471161,
-0.23449106514453888,
-0.19218696653842926,
-0.017311619594693184,
-0.10194631665945053,
0.05158690735697746,
0.24512077867984772,
-0.18806345760822296,
-0.15914860367774963,
-0.21170398592948914,
0.18177220225334167,
0.44036662578582764,
0.20608064532279968,
0.09186679869890213,
0.15351231396198273,
-0.03513123095035553,
-0.15023891627788544,
-0.010964823886752129,
0.043887168169021606,
-0.014695223420858383,
0.1125262901186943,
0.12600815296173096,
0.10708440095186234,
-0.1678997427225113,
-0.12430574744939804,
-0.015339575707912445,
-0.03618733584880829,
-0.16620340943336487,
-0.13032813370227814,
0.0919688493013382,
-0.7869038581848145,
-0.03987006098031998,
-0.27343225479125977,
-0.08555144816637039,
-0.14637543261051178,
0.1608956754207611,
-0.2135520577430725,
-0.06538548320531845,
0.13123521208763123,
-0.15470391511917114,
-0.03691824525594711,
-0.23395994305610657,
0.21785669028759003,
-0.022298766300082207,
0.17680862545967102,
-0.044219810515642166,
0.38820070028305054,
0.15451645851135254,
0.0012795687653124332,
0.0640716478228569,
0.235992431640625,
-0.3928714692592621,
0.38502657413482666,
0.021498210728168488,
-0.18015524744987488,
0.07997026294469833,
0.045731641352176666,
0.11416826397180557,
0.02096628211438656,
-0.3639512062072754,
0.20302267372608185,
-0.2756900191307068,
-0.27859610319137573,
-0.34337902069091797,
0.20263022184371948,
0.09118133038282394,
0.05497158691287041,
-0.10604722797870636,
0.1742752194404602,
0.11059683561325073,
0.29409193992614746,
0.4214515686035156,
0.47461169958114624,
-0.16923893988132477,
-0.2786594331264496,
0.0714133083820343,
0.3714796006679535,
0.6862314343452454,
0.10741385817527771,
0.16819754242897034,
0.3925539255142212,
0.11685961484909058,
-0.054836973547935486,
0.26494982838630676,
-0.03908192366361618,
0.018812965601682663,
0.052135538309812546,
0.3258904814720154,
0.44531330466270447,
0.20133185386657715,
0.48607659339904785,
-0.5145963430404663,
-0.10845980048179626,
-0.3140789270401001,
0.5424492955207825,
-0.34098711609840393,
0.30151641368865967,
-0.2817586362361908,
-0.35491126775741577,
-0.013319598510861397,
-0.2670258581638336,
-0.07331455498933792,
-0.08859114348888397,
0.17361105978488922,
0.16173604130744934,
0.1939891129732132,
-0.17586210370063782,
-0.4150087833404541,
0.2750554084777832,
0.13528169691562653,
-0.2880968153476715,
0.15493564307689667,
0.13379324972629547,
0.2831844389438629,
0.04827413707971573,
-0.03585723042488098,
0.11663220822811127,
-0.27476292848587036,
-0.11583900451660156,
0.2354985922574997,
-0.3694681227207184,
0.31243082880973816,
-0.0899733230471611,
-0.006795953027904034,
0.08796293288469315,
0.06530842930078506,
-0.1585932821035385,
0.0240450669080019,
0.009952770546078682,
0.47064971923828125,
-0.15097995102405548,
-0.03761450946331024,
-0.1293760985136032,
0.08603298664093018,
-0.46331334114074707,
-0.010738760232925415,
0.1371355652809143,
0.17054259777069092,
0.33867231011390686,
-0.3994382321834564,
-0.01276241336017847,
-0.4001532793045044,
0.10635972768068314,
0.05595974996685982,
0.5959635376930237,
-0.3194730281829834,
-0.05724669247865677,
0.1228642612695694,
0.2665352523326874,
0.279819518327713,
0.1751796454191208,
0.03328500688076019,
-0.25184178352355957,
-0.04981868341565132,
-0.20809854567050934,
0.45214152336120605,
0.3885681927204132,
-0.18700939416885376,
0.009359530173242092,
0.19440938532352448,
0.12606710195541382,
0.19109900295734406,
-0.0013707773759961128,
0.04598762094974518,
0.24452082812786102,
-0.17825761437416077,
0.1882915049791336,
-0.06445348262786865,
0.12916386127471924,
0.030457353219389915,
0.09237392991781235,
0.5049013495445251,
0.05113846808671951,
0.42281490564346313,
0.22553899884223938,
1.2819315195083618,
-0.13444389402866364,
0.21384188532829285,
-0.19064857065677643,
0.031561702489852905,
0.11712183058261871,
-0.0890495777130127,
0.23199354112148285,
-0.07866165041923523,
0.12645931541919708,
0.07362281531095505,
-0.0634128600358963,
0.013623307459056377,
0.031883738934993744,
-0.39419040083885193,
0.13726018369197845,
-0.30309775471687317,
-0.30746108293533325,
-0.3690080940723419,
0.1829669177532196,
-0.02087630145251751,
-0.2820616662502289,
-0.18074364960193634,
-0.06627367436885834,
-0.047712989151477814,
-0.15064261853694916,
0.014617782086133957,
0.06922293454408646,
-0.26817411184310913,
-0.09856248646974564,
-0.09799899160861969,
-0.10273387283086777,
-0.2832161784172058,
0.11159615963697433,
-0.23696115612983704,
-0.3864509165287018,
0.3440916836261749,
0.414867103099823,
-0.13062818348407745,
0.26024430990219116,
-0.13675162196159363,
0.17210276424884796,
-0.05933240056037903,
-0.2699756920337677,
-0.0435660220682621,
-0.12525275349617004,
-0.12579387426376343,
-0.08440160751342773,
0.012108182534575462,
0.037338245660066605,
0.16379724442958832,
-0.29501932859420776,
0.36025047302246094,
-0.17482034862041473,
0.7085214257240295,
0.05469703674316406,
-0.08321890234947205,
-0.12737959623336792,
-0.5596514344215393,
0.01133146695792675,
0.041306909173727036,
0.3711182773113251,
0.18368855118751526,
0.23826225101947784,
0.39101073145866394,
-0.3079727590084076,
0.09752440452575684,
0.06286688148975372,
0.32143038511276245,
-0.01935146562755108,
0.7334330677986145,
-0.16694298386573792,
-0.24656975269317627,
-0.2655656635761261,
0.3216528594493866,
0.03262071684002876,
-0.4623302221298218,
0.19766786694526672,
0.0064530083909630775,
-0.30596259236335754,
-0.10309474170207977,
0.23555220663547516,
0.28189292550086975,
0.011501561850309372,
-0.30244338512420654,
0.006058018188923597,
-0.3865140378475189,
0.4225132167339325,
-0.13884909451007843,
0.24326394498348236,
-0.03661612048745155,
-0.40121856331825256,
-0.0374314971268177,
0.335360050201416,
-0.1049783006310463,
0.35959750413894653,
-0.11377070099115372,
0.07964902371168137,
-0.16024313867092133,
-0.04591468349099159,
0.04980344697833061,
-0.30033692717552185,
-0.08745115995407104,
0.22917748987674713,
0.12414277344942093,
-0.09896738827228546,
-0.1797982156276703,
0.17817232012748718,
-0.05404139682650566,
-0.0590905137360096,
0.050346869975328445,
-0.4137825071811676,
-0.09276071935892105,
-0.2805050313472748,
-0.1733575314283371,
-0.2545129656791687,
0.3050200939178467,
-0.26176515221595764,
-0.12812986969947815,
-0.16997607052326202,
-0.1282244622707367,
0.15675882995128632,
0.14404767751693726,
0.28881677985191345,
0.08271754533052444,
-0.04548143222928047,
0.2363322228193283,
-0.3123508393764496,
-0.21366412937641144,
0.29701927304267883,
0.43244990706443787,
0.20685450732707977,
0.10901353508234024,
0.35136377811431885,
-0.10136911273002625,
-0.1990477442741394,
-0.1625293493270874,
0.13729344308376312,
-0.06279709190130234,
-0.09207592904567719,
0.2627415955066681,
0.0169004388153553,
-0.10337291657924652,
-0.20439237356185913,
-0.12128052115440369,
-0.47361132502555847,
-0.46729180216789246,
0.014250332489609718,
0.05978250131011009,
0.27344202995300293,
-0.21328988671302795,
-0.02730865404009819,
-0.21142800152301788,
0.12402912229299545,
0.0010521437507122755,
0.33755525946617126,
0.059806350618600845,
-0.12982246279716492,
0.0006453089881688356,
-0.025792572647333145,
0.5211462378501892,
0.2667187750339508,
-0.3445761203765869,
-0.023766305297613144,
0.49869218468666077,
0.3806132674217224,
0.0009742136462591588,
0.10937828570604324,
-0.1961464285850525,
0.22603324055671692,
0.2355390340089798,
0.18194566667079926,
0.1937902718782425,
0.5880278944969177,
0.31571120023727417,
-0.08744974434375763,
-0.1110389456152916,
0.03681912645697594,
-0.1495424062013626,
0.03119109943509102,
0.04409007355570793,
0.074632428586483,
-0.053097743541002274,
0.008255605585873127,
-0.3844769597053528,
0.02052203193306923,
0.041540008038282394,
0.3682129383087158,
0.03056509420275688,
-0.09381885081529617,
0.19307436048984528,
0.04380129277706146,
0.2861435115337372,
-0.2255738526582718,
0.02767237462103367,
-0.1405596137046814,
0.30027875304222107,
-0.11590462177991867,
0.2977316379547119,
0.15087412297725677,
0.09794572740793228,
0.14544036984443665,
0.15473845601081848,
0.23534098267555237,
0.038775768131017685,
-0.037978675216436386,
-0.26866480708122253,
0.43101778626441956,
0.013100463896989822,
-0.08107669651508331,
-0.07710152119398117,
-0.02399146370589733,
-0.12850421667099,
0.0003869752981700003,
0.3382589519023895,
0.04465847089886665,
-0.20852214097976685,
-0.07495056837797165,
-0.34178391098976135,
-0.37791937589645386,
-0.06871374696493149,
-0.2507586181163788,
0.4585435688495636,
0.16655685007572174,
-0.127735897898674,
-0.0884363129734993,
-0.020141858607530594,
-0.0298001691699028,
-0.30915340781211853,
0.47824540734291077,
0.3961677551269531,
-0.07927499711513519,
-0.24405255913734436,
-0.21506011486053467,
-0.2994367778301239,
0.047486789524555206,
-0.08219660073518753,
0.17788082361221313,
0.21189561486244202,
0.20398516952991486,
0.04666255787014961,
0.19770745933055878,
0.34318241477012634,
0.09310518205165863,
-0.3775732219219208,
-0.045984745025634766,
-0.20145557820796967,
0.039785612374544144,
0.5905769467353821,
0.062300216406583786,
0.11775442957878113,
-0.24675293266773224,
0.25140878558158875,
0.20528845489025116,
-0.14120322465896606,
0.1503601372241974,
-0.13232256472110748,
-0.2257356196641922,
0.22982490062713623,
0.547130823135376,
-0.03827514499425888,
-0.2566401958465576,
-0.023335270583629608,
-0.17932334542274475,
0.07769452035427094,
0.14796702563762665,
-0.027735374867916107,
0.2186078280210495,
0.36639833450317383,
0.2814728617668152,
-0.47009721398353577,
0.30408716201782227,
-0.005760909989476204,
-0.09435408562421799,
-0.10129083693027496,
0.012115898542106152,
-0.17029468715190887,
-0.0032215032260864973,
0.18029819428920746,
0.3396618962287903,
-0.09550968557596207,
0.0863412395119667,
-0.22265686094760895,
-0.33816635608673096,
-0.1471145749092102,
-0.08936261385679245,
0.3378700911998749,
0.3517475724220276,
0.04877595975995064,
0.15463759005069733,
0.33327773213386536,
0.8088231682777405,
0.14672110974788666,
-0.8357333540916443,
0.1606568694114685,
0.11016245931386948,
0.03416147455573082,
-0.2272118330001831,
0.3260710537433624,
-0.08112733066082001,
0.12496113032102585,
-0.10218480974435806,
0.6838571429252625,
-0.0438782274723053,
0.010233430191874504,
-0.3169231712818146,
-0.49511343240737915
] |
https://github.com/huggingface/datasets/issues/1662 | Arrow file is too large when saving vector data | Thanks for your reply @lhoestq.
I want to save original embedding for these sentences for subsequent calculations. So does arrow have a way to save in a compressed format to reduce the size of the file? | I computed the sentence embedding of each sentence of bookcorpus data using bert base and saved them to disk. I used 20M sentences and the obtained arrow file is about 59GB while the original text file is only about 1.3GB. Are there any ways to reduce the size of the arrow file? | 36 | Arrow file is too large when saving vector data
I computed the sentence embedding of each sentence of bookcorpus data using bert base and saved them to disk. I used 20M sentences and the obtained arrow file is about 59GB while the original text file is only about 1.3GB. Are there any ways to reduce the size of the arrow file?
Thanks for your reply @lhoestq.
I want to save original embedding for these sentences for subsequent calculations. So does arrow have a way to save in a compressed format to reduce the size of the file? | [
0.06726440787315369,
-0.28253623843193054,
-0.06414582580327988,
0.4023742973804474,
0.08083552867174149,
-0.05377655848860741,
-0.2692088782787323,
0.47933995723724365,
-0.5607516169548035,
0.3315005898475647,
0.10898430645465851,
0.1340748518705368,
-0.11804646998643875,
-0.21160976588726044,
0.04858511686325073,
-0.09614641964435577,
0.05952688306570053,
0.4329224228858948,
0.08931811898946762,
0.013346570543944836,
0.26312464475631714,
0.35597893595695496,
0.0939316600561142,
0.006786319427192211,
-0.3308284282684326,
-0.15690667927265167,
-0.14612574875354767,
0.010834623128175735,
-0.19759418070316315,
-0.24368159472942352,
-0.1117495447397232,
-0.16281403601169586,
0.36647555232048035,
0.2997961938381195,
-0.00012824335135519505,
-0.15534032881259918,
0.07998774945735931,
-0.132487490773201,
-0.15435948967933655,
0.3506382703781128,
0.09551157802343369,
-0.5090036988258362,
0.08739839494228363,
-0.30858689546585083,
0.1737431287765503,
-0.402608186006546,
-0.10413531213998795,
-0.2626853883266449,
0.6798274517059326,
-0.04057028889656067,
0.05813421681523323,
-0.18769113719463348,
0.04524311050772667,
0.23618438839912415,
0.19475391507148743,
-0.07821352034807205,
-0.11307498812675476,
0.19380037486553192,
0.35747385025024414,
0.36292970180511475,
-0.10653132200241089,
0.29192131757736206,
0.19148774445056915,
-0.28000327944755554,
0.2227589637041092,
-0.2258036583662033,
0.44734638929367065,
0.0007932344451546669,
0.22543199360370636,
0.3514636158943176,
0.5140762329101562,
-0.17594705522060394,
-0.060361992567777634,
0.06379315257072449,
0.47578543424606323,
-0.21099720895290375,
0.017483733594417572,
0.2864497900009155,
-0.02659502811729908,
0.05798767879605293,
0.04277021810412407,
-0.6632640361785889,
-0.3350251615047455,
-0.012956141494214535,
0.15660585463047028,
-0.23248043656349182,
-0.2434770166873932,
-0.2268909215927124,
0.33950120210647583,
-0.2392471879720688,
0.029350902885198593,
-0.06886187195777893,
-0.1880544275045395,
-0.030901823192834854,
-0.17633752524852753,
-0.2596205770969391,
-0.7745302319526672,
-0.17861643433570862,
-0.07960452884435654,
-0.23447635769844055,
0.6635528206825256,
-0.07209978997707367,
0.1642228066921234,
-0.007216217461973429,
0.176632359623909,
0.3590497076511383,
0.014003154821693897,
0.2010473906993866,
0.07120201736688614,
0.039676643908023834,
0.017117971554398537,
-0.16180717945098877,
-0.5301879048347473,
-0.039662837982177734,
0.19442033767700195,
-0.37968820333480835,
-0.32801949977874756,
-0.03121037222445011,
0.31874942779541016,
0.13005463778972626,
-0.3357056975364685,
0.2288838028907776,
0.02956668846309185,
0.04923667386174202,
0.10427873581647873,
0.3126410245895386,
-0.02088543213903904,
0.04031762853264809,
0.05444198101758957,
0.0019850539974868298,
0.03942924737930298,
-0.13439618051052094,
-0.07810330390930176,
0.02593991346657276,
-0.027511345222592354,
-0.21902525424957275,
0.2604769468307495,
-0.3533632755279541,
-0.00775720551609993,
-0.2964891195297241,
0.04080776870250702,
-0.2585967183113098,
0.20160560309886932,
-0.030253363773226738,
0.0025414484553039074,
0.07522878795862198,
-0.3014022409915924,
0.16103364527225494,
-0.12456012517213821,
0.3366653323173523,
-0.4297148585319519,
-0.16500099003314972,
-0.3299641013145447,
-0.01799784228205681,
-0.10477213561534882,
0.17425185441970825,
0.00038655209937132895,
0.12559384107589722,
0.22573314607143402,
-0.1661270558834076,
0.09931425005197525,
-0.12966851890087128,
0.049407828599214554,
-0.23124225437641144,
0.2432984709739685,
-0.09237413108348846,
-0.673177182674408,
-0.08575761318206787,
-0.2777484357357025,
0.1920730024576187,
0.14007341861724854,
0.6400223970413208,
-0.07441771030426025,
-0.032201457768678665,
0.07835830003023148,
0.35849687457084656,
0.32603058218955994,
0.06675345450639725,
-0.47916093468666077,
0.17747369408607483,
0.2246379405260086,
-0.07861797511577606,
0.10379791259765625,
0.2265959233045578,
0.14926669001579285,
-0.06044440716505051,
-0.22856715321540833,
0.0938979834318161,
0.1577383130788803,
0.039923787117004395,
-0.194121316075325,
-0.3479955196380615,
-0.187404602766037,
-0.16160044074058533,
-0.37043821811676025,
-0.5568658113479614,
-0.05731795355677605,
0.09939084947109222,
0.2825314700603485,
-0.22716017067432404,
0.22523054480552673,
0.4774555265903473,
0.1413949579000473,
-0.07607125490903854,
0.3271077871322632,
0.14161737263202667,
-0.0021056542173027992,
-0.1257631778717041,
-0.362192302942276,
-0.5235087275505066,
-0.1756138801574707,
-0.19057297706604004,
0.029315559193491936,
-0.12132657319307327,
0.09392546862363815,
0.15421408414840698,
-0.08501087874174118,
-0.41766202449798584,
-0.16658799350261688,
-0.19457398355007172,
-0.12121813744306564,
-0.1485399603843689,
-0.16256459057331085,
0.043575312942266464,
-0.009354439564049244,
-0.09294367581605911,
0.03508755937218666,
-0.2618328928947449,
0.16857577860355377,
0.049347173422575,
-0.21109406650066376,
0.03348555043339729,
-0.22191312909126282,
0.16857744753360748,
-0.11883971840143204,
0.47821304202079773,
0.07668864727020264,
-0.15079879760742188,
0.023645566776394844,
-0.5871307849884033,
0.5806176662445068,
0.10161992907524109,
0.16395393013954163,
0.1385890543460846,
-0.40029376745224,
-0.23578862845897675,
0.16551163792610168,
0.08654765784740448,
0.1155843585729599,
-0.20473140478134155,
-0.15760622918605804,
0.02999391034245491,
-0.1912250518798828,
-0.2066262662410736,
0.011387621983885765,
0.25258567929267883,
0.3043104112148285,
0.2930156886577606,
0.13265980780124664,
-0.23424409329891205,
0.3456522822380066,
0.012760105542838573,
0.1384347677230835,
0.5068286061286926,
-0.5909457206726074,
-0.30254456400871277,
-0.00112676911521703,
-0.11281835287809372,
-0.09761157631874084,
0.13133099675178528,
0.06983283907175064,
-0.16972975432872772,
0.5162373781204224,
-0.0031066718511283398,
0.39382871985435486,
0.2708298861980438,
0.5881364941596985,
0.248215451836586,
0.013091704808175564,
0.12249956279993057,
-0.1683843582868576,
0.20596280694007874,
-0.12365739792585373,
-0.11461988091468811,
-0.13433021306991577,
0.1422504484653473,
-0.36043640971183777,
-0.19740086793899536,
-0.18861721456050873,
0.08232693374156952,
-0.032736726105213165,
0.05082995444536209,
0.22755660116672516,
-0.2626129686832428,
-0.09504810720682144,
-0.17463819682598114,
0.1507801115512848,
0.3636559545993805,
0.19134943187236786,
-0.016335375607013702,
0.20368249714374542,
-0.05911983922123909,
-0.11443673819303513,
0.013647682964801788,
-0.06459541618824005,
-0.13140617311000824,
0.042002853006124496,
0.04265899211168289,
0.10853682458400726,
-0.14222215116024017,
-0.14452263712882996,
0.08462771028280258,
0.008274374529719353,
-0.2499076873064041,
-0.1291319876909256,
0.0014616313856095076,
-0.7448285222053528,
0.12197229266166687,
-0.2711540758609772,
-0.1041727215051651,
-0.218789204955101,
0.07208582013845444,
-0.14981341361999512,
-0.051730792969465256,
0.14375530183315277,
-0.11570655554533005,
-0.028391916304826736,
-0.17558220028877258,
0.29197821021080017,
0.03404388576745987,
0.13025833666324615,
-0.0711231455206871,
0.3743301331996918,
0.2452193945646286,
-0.0035662357695400715,
-0.018908517435193062,
0.2167961299419403,
-0.34781613945961,
0.48534780740737915,
-0.02477395534515381,
-0.22983264923095703,
0.000007626038950547809,
0.03391158580780029,
0.07554027438163757,
0.11556607484817505,
-0.24314703047275543,
0.2363767921924591,
-0.10750698298215866,
-0.27256596088409424,
-0.3093041181564331,
0.1789790391921997,
0.12444506585597992,
-0.05832767114043236,
-0.11500359326601028,
0.07736652344465256,
0.11024481803178787,
0.38351836800575256,
0.4883323907852173,
0.5294556021690369,
-0.13332049548625946,
-0.2417306900024414,
0.042266830801963806,
0.3603094816207886,
0.6346898674964905,
0.12090324610471725,
0.14449720084667206,
0.28172731399536133,
0.19290784001350403,
0.039199098944664,
0.4585181176662445,
-0.10666272044181824,
0.05483907833695412,
0.1623660773038864,
0.2848106622695923,
0.46916553378105164,
0.18286442756652832,
0.44998812675476074,
-0.5186034440994263,
-0.03674256056547165,
-0.18537169694900513,
0.48566392064094543,
-0.3974144160747528,
0.38093796372413635,
-0.19534523785114288,
-0.2994413375854492,
0.0846298560500145,
-0.23049232363700867,
0.0070985727943480015,
-0.09645222127437592,
0.2605334222316742,
0.045173630118370056,
0.2662026286125183,
-0.1417333036661148,
-0.4890056550502777,
0.1582086682319641,
0.13105760514736176,
-0.24406592547893524,
0.19716739654541016,
0.04741741716861725,
0.15484558045864105,
-0.020117158070206642,
-0.04140331596136093,
0.13159163296222687,
-0.394490122795105,
-0.086326465010643,
0.18395940959453583,
-0.4335390627384186,
0.2960476577281952,
-0.06947064399719238,
-0.01648850366473198,
0.02420477569103241,
0.1298883855342865,
-0.1280747950077057,
-0.08045709133148193,
-0.03567656874656677,
0.49607333540916443,
-0.24249637126922607,
0.018064435571432114,
-0.048942748457193375,
0.10101188719272614,
-0.43817147612571716,
-0.08984748274087906,
0.10292834043502808,
0.04892795905470848,
0.30257943272590637,
-0.41520655155181885,
-0.09375221282243729,
-0.28964075446128845,
0.033268336206674576,
0.036753371357917786,
0.6221725940704346,
-0.3188769221305847,
-0.041837237775325775,
0.09824108332395554,
0.12287528067827225,
0.2350890040397644,
0.17149880528450012,
0.13393659889698029,
-0.2176385074853897,
0.021334871649742126,
-0.1492290198802948,
0.4313940107822418,
0.2597920596599579,
-0.2377801090478897,
-0.058934107422828674,
0.10891272872686386,
0.07413329929113388,
0.17574912309646606,
-0.16561132669448853,
0.08665528148412704,
0.1817600429058075,
-0.19171728193759918,
0.2376740276813507,
-0.006408157758414745,
0.22625340521335602,
0.12447644770145416,
0.14281579852104187,
0.32528120279312134,
0.07124000042676926,
0.40242141485214233,
0.310407817363739,
1.0934171676635742,
-0.128782257437706,
0.28784576058387756,
-0.1855240911245346,
-0.03148207068443298,
0.1677294373512268,
-0.07758151739835739,
0.22070284187793732,
-0.05072478950023651,
0.13509126007556915,
0.048908207565546036,
-0.011002512648701668,
0.03768463432788849,
0.093529112637043,
-0.40082284808158875,
0.14166505634784698,
-0.24950771033763885,
-0.34550127387046814,
-0.2802385687828064,
0.2644983232021332,
-0.011948326602578163,
-0.30631718039512634,
-0.161443829536438,
-0.05568443983793259,
0.032553788274526596,
-0.16075387597084045,
0.09738419950008392,
-0.04657401517033577,
-0.22763396799564362,
-0.0740782767534256,
-0.05395085737109184,
0.03793778270483017,
-0.21119098365306854,
0.10524708032608032,
-0.2001100331544876,
-0.503358006477356,
0.32862046360969543,
0.3860141932964325,
-0.17740382254123688,
0.15047502517700195,
-0.09881453961133957,
0.18095815181732178,
0.022999873384833336,
-0.262450248003006,
-0.06340039521455765,
-0.12645460665225983,
-0.16686999797821045,
-0.11706184595823288,
0.12839145958423615,
0.0339486226439476,
0.09108201414346695,
-0.29947397112846375,
0.5842025876045227,
-0.2078562080860138,
0.5878828763961792,
0.0970589816570282,
-0.1030643954873085,
-0.11625169962644577,
-0.5892646908760071,
-0.009627190418541431,
0.03824184462428093,
0.35655122995376587,
0.18283921480178833,
0.18422846496105194,
0.43917229771614075,
-0.1612730324268341,
0.1305127888917923,
0.07401183992624283,
0.38579800724983215,
-0.012079130858182907,
0.7654305696487427,
-0.19273753464221954,
-0.16421087086200714,
-0.26334312558174133,
0.26448819041252136,
-0.08467194437980652,
-0.47236916422843933,
0.3465474545955658,
-0.060011643916368484,
-0.24791757762432098,
-0.0745706558227539,
0.20442171394824982,
0.23022469878196716,
0.08355595916509628,
-0.43693801760673523,
0.01628389209508896,
-0.46468502283096313,
0.32390034198760986,
-0.1200578436255455,
0.27298808097839355,
-0.00410674000158906,
-0.31419700384140015,
-0.01861799694597721,
0.3333197236061096,
-0.1124105378985405,
0.3276800811290741,
0.00840707030147314,
0.07496265321969986,
-0.18307247757911682,
0.04973107576370239,
0.10535403341054916,
-0.25978848338127136,
-0.08919823914766312,
0.38048556447029114,
0.14720013737678528,
-0.10427173227071762,
-0.19402462244033813,
0.18544432520866394,
-0.10577788203954697,
-0.0335896760225296,
0.029096510261297226,
-0.31541305780410767,
-0.1044459268450737,
-0.21838396787643433,
-0.1982859969139099,
-0.28354260325431824,
0.2915593683719635,
-0.31415316462516785,
-0.0030919143464416265,
-0.20737577974796295,
-0.1813281923532486,
0.11567871272563934,
0.12847581505775452,
0.3049496114253998,
0.03716680407524109,
0.06126440688967705,
0.19112373888492584,
-0.3139711022377014,
-0.30120545625686646,
0.1760341227054596,
0.43891462683677673,
0.09998974949121475,
0.11993232369422913,
0.25177207589149475,
-0.2074713110923767,
-0.2415664941072464,
-0.17881913483142853,
0.18899822235107422,
-0.06644400954246521,
-0.06809981912374496,
0.2118319869041443,
-0.01754286140203476,
-0.1619875431060791,
-0.15444110333919525,
-0.23562826216220856,
-0.40703850984573364,
-0.5107868909835815,
-0.05058804526925087,
0.09153065830469131,
0.24923056364059448,
-0.20557013154029846,
-0.02257438376545906,
-0.31799352169036865,
0.11004166305065155,
0.10956811159849167,
0.3319493532180786,
0.22893738746643066,
-0.09584639966487885,
0.04984742030501366,
-0.0874892994761467,
0.512218713760376,
-0.017932480201125145,
-0.3362065553665161,
-0.042669977992773056,
0.6188859939575195,
0.37666672468185425,
0.059020280838012695,
0.10076292604207993,
-0.1343936175107956,
0.17746604979038239,
0.21420320868492126,
0.23799726366996765,
0.23950563371181488,
0.659151017665863,
0.39928579330444336,
-0.08307451009750366,
-0.1581907570362091,
0.19431231915950775,
-0.12055610120296478,
-0.03828277438879013,
0.04329502582550049,
0.09451036155223846,
0.010962322354316711,
0.03420791029930115,
-0.3181351125240326,
0.08442279696464539,
0.04973285272717476,
0.40670245885849,
0.1238241046667099,
0.028505459427833557,
0.18041783571243286,
0.056975290179252625,
0.3310374915599823,
-0.20362630486488342,
0.08313238620758057,
-0.10413584113121033,
0.27972105145454407,
-0.1739206463098526,
0.3154941499233246,
0.16876380145549774,
-0.007606751285493374,
0.19977189600467682,
0.18973636627197266,
0.2928084433078766,
0.025732308626174927,
0.11262055486440659,
-0.23407183587551117,
0.5015305280685425,
-0.1101214736700058,
-0.03845508396625519,
-0.04517454281449318,
-0.02037239633500576,
-0.08145703375339508,
-0.015971440821886063,
0.1981266736984253,
0.028814207762479782,
-0.16257475316524506,
0.061857160180807114,
-0.25498318672180176,
-0.36998096108436584,
-0.11744210869073868,
-0.14369520545005798,
0.4433274567127228,
0.19816699624061584,
-0.15358516573905945,
-0.1786169856786728,
0.004129221197217703,
-0.022522417828440666,
-0.26838117837905884,
0.5162472128868103,
0.29655471444129944,
-0.2051628977060318,
-0.07711070775985718,
-0.2799362242221832,
-0.20560386776924133,
0.027926944196224213,
-0.12773610651493073,
0.1398623138666153,
0.2190641462802887,
0.23992416262626648,
0.054504599422216415,
0.2773200571537018,
0.3435634970664978,
0.09854954481124878,
-0.3065314292907715,
-0.0582890585064888,
-0.19809843599796295,
0.04256513714790344,
0.667746365070343,
0.1645658314228058,
0.1425885707139969,
-0.25012487173080444,
0.18922923505306244,
0.20200781524181366,
-0.16479481756687164,
0.12942875921726227,
-0.17725414037704468,
-0.12512770295143127,
0.1388530135154724,
0.5862324833869934,
-0.11961513757705688,
-0.3609256148338318,
-0.12061350792646408,
-0.16351991891860962,
0.18638913333415985,
0.2066582441329956,
-0.01595856435596943,
0.1790754348039627,
0.40321165323257446,
0.23696918785572052,
-0.39835724234580994,
0.24443776905536652,
0.006341887637972832,
-0.10690590739250183,
-0.16950950026512146,
-0.08912350982427597,
-0.04455448314547539,
-0.04497138038277626,
0.12375311553478241,
0.2627575099468231,
0.05137499049305916,
0.11326165497303009,
-0.293410986661911,
-0.33521854877471924,
-0.21353879570960999,
-0.1042337492108345,
0.2608758211135864,
0.3320404291152954,
0.10468132048845291,
0.2116079479455948,
0.26188430190086365,
0.7541189789772034,
0.12688590586185455,
-0.7142349481582642,
0.22707894444465637,
0.16794569790363312,
0.0354759506881237,
-0.13942410051822662,
0.24233272671699524,
-0.0989554151892662,
0.18499422073364258,
-0.10645411908626556,
0.6509245038032532,
-0.0033635266590863466,
-0.09710267931222916,
-0.4538101255893707,
-0.47358977794647217
] |
https://github.com/huggingface/datasets/issues/1647 | NarrativeQA fails to load with `load_dataset` | Hi @eric-mitchell,
I think the issue might be that this dataset was added during the community sprint and has not been released yet. It will be available with the v2 of `datasets`.
For now, you should be able to load the datasets after installing the latest (master) version of `datasets` using pip:
`pip install git+https://github.com/huggingface/datasets.git@master` | When loading the NarrativeQA dataset with `load_dataset('narrativeqa')` as given in the documentation [here](https://huggingface.co/datasets/narrativeqa), I receive a cascade of exceptions, ending with
FileNotFoundError: Couldn't find file locally at narrativeqa/narrativeqa.py, or remotely at
https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/narrativeqa/narrativeqa.py or
https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/narrativeqa/narrativeqa.py
Workaround: manually copy the `narrativeqa.py` builder into my local directory with
curl https://raw.githubusercontent.com/huggingface/datasets/master/datasets/narrativeqa/narrativeqa.py -o narrativeqa.py
and load the dataset as `load_dataset('narrativeqa.py')` everything works fine. I'm on datasets v1.1.3 using Python 3.6.10. | 55 | NarrativeQA fails to load with `load_dataset`
When loading the NarrativeQA dataset with `load_dataset('narrativeqa')` as given in the documentation [here](https://huggingface.co/datasets/narrativeqa), I receive a cascade of exceptions, ending with
FileNotFoundError: Couldn't find file locally at narrativeqa/narrativeqa.py, or remotely at
https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/narrativeqa/narrativeqa.py or
https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/narrativeqa/narrativeqa.py
Workaround: manually copy the `narrativeqa.py` builder into my local directory with
curl https://raw.githubusercontent.com/huggingface/datasets/master/datasets/narrativeqa/narrativeqa.py -o narrativeqa.py
and load the dataset as `load_dataset('narrativeqa.py')` everything works fine. I'm on datasets v1.1.3 using Python 3.6.10.
Hi @eric-mitchell,
I think the issue might be that this dataset was added during the community sprint and has not been released yet. It will be available with the v2 of `datasets`.
For now, you should be able to load the datasets after installing the latest (master) version of `datasets` using pip:
`pip install git+https://github.com/huggingface/datasets.git@master` | [
-0.28219372034072876,
0.1054384857416153,
0.03263697028160095,
0.24390918016433716,
0.19000594317913055,
0.17991851270198822,
0.13333983719348907,
0.041288990527391434,
-0.1444730907678604,
0.04415304586291313,
-0.014136065728962421,
-0.07569536566734314,
-0.06875282526016235,
0.3853095769882202,
0.08387662470340729,
-0.17096127569675446,
0.04429173097014427,
0.01635804772377014,
0.0471324548125267,
0.0996936485171318,
-0.22753320634365082,
0.6004677414894104,
-0.306018203496933,
0.020467955619096756,
-0.316291868686676,
-0.021489756181836128,
-0.16066330671310425,
0.3630984127521515,
-0.18690679967403412,
-0.39987239241600037,
0.6071942448616028,
-0.07123070955276489,
0.22323556244373322,
0.5504923462867737,
-0.00011022001126548275,
0.06081555411219597,
0.41069212555885315,
-0.14009632170200348,
-0.2848302721977234,
-0.5453554391860962,
0.2669922113418579,
-0.21122980117797852,
0.21293498575687408,
0.13926807045936584,
-0.16716793179512024,
-0.3874748945236206,
0.20789329707622528,
-0.057246167212724686,
0.32172632217407227,
0.08583492040634155,
0.1936790496110916,
0.33496755361557007,
0.21892714500427246,
-0.18601857125759125,
-0.10067257285118103,
0.42172473669052124,
-0.2878892719745636,
0.5078809261322021,
0.30554935336112976,
-0.42175137996673584,
0.12467475235462189,
0.1989540457725525,
-0.03144022449851036,
-0.005937593523412943,
0.37513014674186707,
-0.001223106635734439,
0.05010698363184929,
-0.287636399269104,
0.10676499456167221,
0.36261722445487976,
0.6540006399154663,
-0.3735687732696533,
-0.545014500617981,
-0.18335461616516113,
0.10103676468133926,
-0.08469673991203308,
0.24124185740947723,
0.2746925950050354,
-0.2394716590642929,
0.1392698884010315,
-0.15002521872520447,
-0.11605939269065857,
-0.13322016596794128,
0.22484004497528076,
-0.10420780628919601,
-0.16514763236045837,
-0.28650814294815063,
0.03562386333942413,
0.03483773395419121,
-0.22215035557746887,
-0.15960019826889038,
0.12802347540855408,
-0.2268225997686386,
0.295512855052948,
-0.2854911983013153,
0.10194894671440125,
0.01554765086621046,
0.2254265546798706,
0.16592423617839813,
-0.2129213809967041,
0.028150830417871475,
-0.04905884712934494,
-0.07644262909889221,
0.1599113792181015,
0.24911564588546753,
0.10459446907043457,
0.32804247736930847,
0.01667262241244316,
0.0025241030380129814,
0.45323628187179565,
-0.06477213650941849,
-0.22193224728107452,
-0.09025737643241882,
-0.14600034058094025,
-0.4528244733810425,
-0.2933597266674042,
0.47186514735221863,
-0.30325815081596375,
-0.3878253102302551,
-0.10834439843893051,
-0.18742111325263977,
0.037494733929634094,
0.07710658758878708,
0.498104989528656,
0.012154598720371723,
0.1539299190044403,
0.01557448972016573,
0.3006160855293274,
-0.2579491436481476,
0.10185970366001129,
-0.24806569516658783,
0.005652886349707842,
-0.03198559209704399,
0.13716623187065125,
0.29975205659866333,
-0.33521634340286255,
0.3940819203853607,
-0.028888041153550148,
-0.06164661422371864,
0.1528032422065735,
-0.006292367819696665,
0.09569542109966278,
-0.20000165700912476,
0.22495853900909424,
-0.12317398190498352,
0.030555032193660736,
0.2513721287250519,
-0.003910974133759737,
-0.06306905299425125,
-0.06099535897374153,
-0.14913134276866913,
-0.297441303730011,
-0.03988680988550186,
0.14900396764278412,
-0.1069888100028038,
-0.2064622938632965,
-0.07543639093637466,
0.18058812618255615,
0.012838251888751984,
-0.12774431705474854,
-0.08843094110488892,
0.06612145900726318,
-0.004902756307274103,
-0.09034941345453262,
0.202471062541008,
0.670397937297821,
-0.26596683263778687,
-0.3223658502101898,
0.06657364964485168,
-0.2062627375125885,
-0.002002172637730837,
0.20517820119857788,
-0.25988951325416565,
0.07638461887836456,
-0.20339113473892212,
-0.13997386395931244,
0.05940984934568405,
-0.44686293601989746,
-0.21692833304405212,
0.24210338294506073,
-0.05525979772210121,
0.40913742780685425,
0.025211473926901817,
-0.052910707890987396,
-0.0884343832731247,
-0.19379033148288727,
0.11791021376848221,
0.24772197008132935,
0.04141038656234741,
-0.18074731528759003,
-0.07693827897310257,
-0.17321093380451202,
0.16435252130031586,
0.2965086102485657,
-0.25609126687049866,
0.07532308995723724,
0.14433719217777252,
-0.18223422765731812,
0.19343511760234833,
-0.023951392620801926,
-0.07918491959571838,
0.2923217713832855,
0.20212702453136444,
0.12441224604845047,
0.08606161177158356,
0.19877229630947113,
-0.5315414667129517,
0.27514922618865967,
-0.2863558828830719,
-0.03498334810137749,
-0.19519266486167908,
-0.07629160583019257,
-0.10199331492185593,
0.07273678481578827,
-0.3476806581020355,
-0.3338474929332733,
0.030302317813038826,
0.22317327558994293,
0.05106518790125847,
0.10070841759443283,
-0.37038540840148926,
0.3647747337818146,
-0.21497111022472382,
0.17424644529819489,
-0.545767605304718,
0.0198502279818058,
0.059093814343214035,
-0.10951996594667435,
0.12249638885259628,
0.24372784793376923,
0.05300084501504898,
-0.2464805692434311,
0.08971584588289261,
0.4100809097290039,
-0.2697845697402954,
0.4130953550338745,
0.053389161825180054,
0.0024119759909808636,
0.18783769011497498,
-0.3031235337257385,
0.14049598574638367,
-0.05391853302717209,
0.04285383224487305,
0.00916517898440361,
-0.09333925694227219,
0.22324921190738678,
-0.1476234495639801,
0.36391010880470276,
0.03492864593863487,
0.1885385513305664,
0.22452101111412048,
0.08392003923654556,
-0.203825443983078,
-0.23475338518619537,
0.43418195843696594,
-0.13142885267734528,
0.39606839418411255,
-0.09287288039922714,
-0.31048235297203064,
0.019739484414458275,
0.13951769471168518,
0.10801426321268082,
-0.06247420608997345,
0.06291410326957703,
-0.34001481533050537,
0.12289835512638092,
0.08733732998371124,
-0.14928175508975983,
0.4034079313278198,
0.12853816151618958,
-0.0878840759396553,
0.12766772508621216,
-0.015185304917395115,
-0.3860323429107666,
0.17122003436088562,
0.035890597850084305,
-0.2886980473995209,
0.030272847041487694,
0.09782334417104721,
0.01870432123541832,
-0.3614237606525421,
0.12839622795581818,
-0.012185030616819859,
0.08790899813175201,
-0.29804500937461853,
0.25514575839042664,
-0.07762681692838669,
-0.3964500427246094,
-0.11996898055076599,
-0.4994732737541199,
-0.2983440160751343,
-0.22586482763290405,
-0.1354239135980606,
0.11348599195480347,
-0.026937607675790787,
0.20174869894981384,
0.307323157787323,
0.06790716201066971,
-0.23411768674850464,
-0.190666064620018,
-0.07233250886201859,
-0.2339591681957245,
-0.18846535682678223,
0.09553805738687515,
0.2967679500579834,
-0.11695534735918045,
0.24038198590278625,
-0.39853495359420776,
0.001997263403609395,
-0.2876361906528473,
-0.27068865299224854,
0.10073991119861603,
-0.286325603723526,
0.4284830689430237,
0.012971804477274418,
0.2201460897922516,
-0.08363185822963715,
0.02307271957397461,
0.43985822796821594,
-0.022172586992383003,
-0.1318080574274063,
0.1779702603816986,
-0.18674588203430176,
-0.13512182235717773,
-0.14101199805736542,
-0.19607104361057281,
-0.3078111708164215,
-0.40545180439949036,
0.3266366422176361,
0.05240888148546219,
-0.13964258134365082,
0.6374402046203613,
-0.0049183303490281105,
0.11098232120275497,
-0.4007153809070587,
0.06911733001470566,
-0.03324538469314575,
-0.5922861695289612,
0.23850657045841217,
-0.3008894920349121,
-0.2814718186855316,
0.30230820178985596,
0.18878448009490967,
0.152756929397583,
0.2165239006280899,
-0.41294386982917786,
-0.18287576735019684,
0.020898476243019104,
0.059623297303915024,
0.12382401525974274,
0.11983682215213776,
0.26800984144210815,
-0.1689152717590332,
0.05834202095866203,
0.004957446828484535,
-0.16306202113628387,
0.05730539560317993,
-0.09543111175298691,
0.2994500398635864,
-0.1553695946931839,
0.43280529975891113,
-0.09932070225477219,
0.5152155756950378,
0.40102535486221313,
0.08935118466615677,
0.46762946248054504,
-0.05746104195713997,
0.5533754229545593,
-0.1913192868232727,
-0.38684818148612976,
0.14342258870601654,
0.008641041815280914,
0.21907639503479004,
0.2548014521598816,
0.10879982262849808,
0.22400453686714172,
-0.2882218062877655,
-0.23322413861751556,
-0.17902418971061707,
-0.10511757433414459,
-0.08856451511383057,
-0.22266408801078796,
0.5598247647285461,
0.042296238243579865,
0.18394948542118073,
0.11729518324136734,
-0.1711973249912262,
0.07927016168832779,
0.4047594964504242,
0.30631116032600403,
0.15322330594062805,
0.08551976084709167,
-0.020550038665533066,
-0.5750070214271545,
0.200240820646286,
-0.10059764236211777,
0.2336292266845703,
-0.14937423169612885,
-0.09454796463251114,
0.07582448422908783,
-0.05332990363240242,
0.5612581372261047,
0.16974574327468872,
-0.22686614096164703,
0.0816912055015564,
-0.09930229187011719,
-0.7485926747322083,
-0.0011171114165335894,
0.07118719071149826,
0.5246652960777283,
-0.29835253953933716,
0.45509979128837585,
-0.3250732421875,
-0.10377639532089233,
-0.004916638135910034,
0.2801154553890228,
-0.02879769541323185,
-0.2050732970237732,
-0.41593223810195923,
-0.1526644080877304,
-0.3211812973022461,
-0.13928289711475372,
-0.20789296925067902,
0.2848508954048157,
0.050026845186948776,
0.10920104384422302,
-0.023377947509288788,
-0.08250872045755386,
0.1994105577468872,
0.19007888436317444,
0.3466508388519287,
-0.11188409477472305,
0.31907913088798523,
0.37283438444137573,
0.18101170659065247,
0.18777649104595184,
0.7771444916725159,
0.15043260157108307,
-0.6387344598770142,
-0.12013961374759674,
0.19998380541801453,
0.15083546936511993,
0.24160869419574738,
-0.03574881702661514,
0.006625307258218527,
0.13594861328601837,
-0.15263284742832184,
-0.33395910263061523,
-0.030100226402282715,
0.2143164575099945,
-0.07884812355041504,
-0.27959519624710083,
-0.19930940866470337,
0.5535471439361572,
-0.14648212492465973,
0.22645509243011475,
0.15385165810585022,
0.19674061238765717,
-0.07328122854232788,
0.0016760238213464618,
-0.15736007690429688,
0.6390519142150879,
-0.040313221514225006,
0.1748255044221878,
0.36791449785232544,
0.15314409136772156,
0.27591708302497864,
-0.017313217744231224,
0.025616854429244995,
-0.3230859339237213,
0.23385779559612274,
-0.058319151401519775,
-0.15537749230861664,
0.2595308721065521,
0.02562134526669979,
-0.1812218427658081,
0.34640854597091675,
-0.03828637674450874,
0.2396208792924881,
0.034796301275491714,
0.1220933198928833,
-0.2781033515930176,
-0.27708449959754944,
-0.47022488713264465,
0.1231396421790123,
0.04213690757751465,
0.38071784377098083,
-0.23014520108699799,
-0.06410946696996689,
0.006954503245651722,
-0.06811002641916275,
-0.1549336165189743,
0.10490504652261734,
-0.4039309620857239,
-0.0393744558095932,
0.4102816581726074,
-0.42391735315322876,
0.1326034665107727,
0.32183539867401123,
0.29660606384277344,
-0.1543130874633789,
-0.4461572766304016,
0.253877192735672,
-0.32929882407188416,
-0.40462416410446167,
0.08336412161588669,
-0.061009153723716736,
0.16300596296787262,
-0.015094993636012077,
0.05073215067386627,
0.12752695381641388,
-0.1174858957529068,
-0.0183891449123621,
-0.18438880145549774,
-0.0077182697132229805,
-0.06758303940296173,
-0.11120084673166275,
-0.21887627243995667,
-0.18598432838916779,
0.2508605718612671,
-0.1036205142736435,
0.1100483164191246,
0.2406914234161377,
-0.05879001319408417,
-0.19244220852851868,
-0.29306530952453613,
-0.11085478216409683,
-0.1738734096288681,
0.20273904502391815,
-0.32403573393821716,
0.00012628850527107716,
0.5568036437034607,
0.39613106846809387,
0.07189728319644928,
-0.07728134840726852,
-0.16106583178043365,
0.3245169222354889,
-0.4137248396873474,
0.10496978461742401,
0.5443441867828369,
0.12437405437231064,
0.11509978026151657,
0.5972672700881958,
0.008532095700502396,
-0.4886225759983063,
-0.037653446197509766,
-0.3821844160556793,
-0.4004567265510559,
0.3767912685871124,
-0.039223458617925644,
-0.003506180364638567,
0.10438787937164307,
0.36388054490089417,
0.14849621057510376,
-0.10867352783679962,
-0.2812003195285797,
0.014460761100053787,
0.026091553270816803,
0.06659605354070663,
0.34811827540397644,
0.08312351256608963,
0.2603159248828888,
0.12968774139881134,
0.05480938404798508,
0.058567117899656296,
-0.1510331779718399,
-0.15643823146820068,
0.06369294226169586,
0.10974066704511642,
0.08390633761882782,
-0.12602804601192474,
0.030984019860625267,
-0.09641565382480621,
-0.16209125518798828,
-0.2794078588485718,
0.29130738973617554,
0.1293536126613617,
-0.0418577566742897,
0.048164982348680496,
-0.0309828482568264,
0.20610781013965607,
-0.10048762708902359,
0.12863217294216156,
-0.0037094552535563707,
0.13892170786857605,
0.06461112201213837,
-0.15889844298362732,
-0.2791423499584198,
-0.06995023787021637,
0.16894245147705078,
0.18857869505882263,
0.018845999613404274,
0.06427916139364243,
0.22250419855117798,
-0.24091766774654388,
0.08084326237440109,
0.08804546296596527,
0.1194436326622963,
0.3508835434913635,
-0.2469257116317749,
0.21672365069389343,
0.1472095251083374,
0.12624840438365936,
-0.20349103212356567,
-0.0014665961498394608,
-0.18178898096084595,
0.14710336923599243,
-0.01471093948930502,
0.06561081111431122,
0.19217531383037567,
-0.15251752734184265,
0.10163392126560211,
0.16483628749847412,
0.25515079498291016,
0.0291611198335886,
0.21118418872356415,
-0.018463118001818657,
0.08264234662055969,
0.012167706154286861,
0.10496417433023453,
0.1006319597363472,
0.28943488001823425,
0.26161545515060425,
-0.3571736216545105,
-0.03594039008021355,
-0.10557375848293304,
0.27497923374176025,
-0.05007052421569824,
-0.4363563358783722,
-0.009242942556738853,
-0.010962103493511677,
0.23462195694446564,
0.055012382566928864,
-0.2336057871580124,
0.6237165927886963,
-0.3811262249946594,
0.20543059706687927,
-0.29122084379196167,
0.07956945896148682,
-0.15037575364112854,
-0.19136649370193481,
-0.01974315755069256,
-0.16615509986877441,
0.19800332188606262,
-0.07514125853776932,
-0.18107400834560394,
-0.21116629242897034,
0.060777585953474045,
-0.09838302433490753,
-0.1694711297750473,
-0.42213767766952515,
0.12171099334955215,
0.39712539315223694,
0.055069681257009506,
-0.03998781740665436,
0.522487461566925,
0.2919904589653015,
-0.07469143718481064,
0.2625926434993744,
0.42738521099090576,
0.5418921709060669,
0.16530659794807434,
-0.08316438645124435,
0.23541317880153656,
-0.3207216262817383,
-0.10763666778802872,
0.08704661577939987,
0.337073415517807,
-0.14402170479297638,
0.1476312279701233,
0.21056461334228516,
0.15276017785072327,
-0.08158993721008301,
-0.07995624095201492,
-0.013794146478176117,
0.43284091353416443,
-0.39311522245407104,
0.09174540638923645,
-0.5244231224060059,
0.06563915312290192,
-0.22229355573654175,
0.14472196996212006,
-0.5138552188873291,
0.12624001502990723,
0.18071655929088593,
0.161751389503479,
-0.16037745773792267,
-0.1651047021150589,
0.07189261168241501,
-0.04026651754975319,
0.48895490169525146,
0.5259318351745605,
0.24987684190273285,
-0.16651451587677002,
-0.3199683427810669,
-0.7123634219169617,
0.06421469151973724,
-0.06898754835128784,
0.02150539681315422,
0.01602555438876152,
0.18567410111427307,
0.14658880233764648,
0.1642283946275711,
-0.1459350734949112,
0.23766383528709412,
0.028610825538635254,
-0.29536572098731995,
-0.21879801154136658,
-0.23168116807937622,
-0.0019515976309776306,
-0.05326658859848976,
-0.06079963594675064,
0.039126407355070114,
0.08422347158193588,
-0.19315840303897858,
-0.052538786083459854,
-0.08143430203199387,
0.02314566634595394,
0.02695840410888195,
-0.33415666222572327,
0.25521501898765564,
0.03744007274508476,
-0.08598187565803528,
0.0870680883526802,
-0.280971497297287,
-0.4722728729248047,
-0.3770330548286438,
-0.08239684998989105,
0.20438341796398163,
-0.11286997050046921,
0.48906493186950684,
-0.3747427463531494,
-0.11706538498401642,
-0.21433080732822418,
0.12863153219223022,
0.05705295875668526,
-0.0012536527356132865,
-0.13212215900421143,
0.20015424489974976,
0.009750480763614178,
-0.0023392189759761095,
0.08580215275287628,
0.4958353340625763,
0.05868569388985634,
0.06483884900808334,
-0.2739212214946747,
-0.28336256742477417,
0.4915396571159363,
-0.36662182211875916,
-0.0029919042717665434,
0.29700860381126404,
0.06307551264762878,
0.062123607844114304,
-0.22944976389408112,
-0.77983558177948,
0.3636755049228668,
0.23817691206932068,
0.10487106442451477,
-0.037592269480228424,
0.0724145919084549,
0.0000908384972717613,
0.07711296528577805,
-0.14794933795928955,
0.22189253568649292,
0.19366006553173065,
0.009501957334578037,
0.27594298124313354,
0.0431864932179451
] |
https://github.com/huggingface/datasets/issues/1647 | NarrativeQA fails to load with `load_dataset` | Update: HuggingFace did an intermediate release yesterday just before the v2.0.
To load it you can just update `datasets`
`pip install --upgrade datasets` | When loading the NarrativeQA dataset with `load_dataset('narrativeqa')` as given in the documentation [here](https://huggingface.co/datasets/narrativeqa), I receive a cascade of exceptions, ending with
FileNotFoundError: Couldn't find file locally at narrativeqa/narrativeqa.py, or remotely at
https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/narrativeqa/narrativeqa.py or
https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/narrativeqa/narrativeqa.py
Workaround: manually copy the `narrativeqa.py` builder into my local directory with
curl https://raw.githubusercontent.com/huggingface/datasets/master/datasets/narrativeqa/narrativeqa.py -o narrativeqa.py
and load the dataset as `load_dataset('narrativeqa.py')` everything works fine. I'm on datasets v1.1.3 using Python 3.6.10. | 23 | NarrativeQA fails to load with `load_dataset`
When loading the NarrativeQA dataset with `load_dataset('narrativeqa')` as given in the documentation [here](https://huggingface.co/datasets/narrativeqa), I receive a cascade of exceptions, ending with
FileNotFoundError: Couldn't find file locally at narrativeqa/narrativeqa.py, or remotely at
https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/narrativeqa/narrativeqa.py or
https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/narrativeqa/narrativeqa.py
Workaround: manually copy the `narrativeqa.py` builder into my local directory with
curl https://raw.githubusercontent.com/huggingface/datasets/master/datasets/narrativeqa/narrativeqa.py -o narrativeqa.py
and load the dataset as `load_dataset('narrativeqa.py')` everything works fine. I'm on datasets v1.1.3 using Python 3.6.10.
Update: HuggingFace did an intermediate release yesterday just before the v2.0.
To load it you can just update `datasets`
`pip install --upgrade datasets` | [
-0.21995525062084198,
0.04800880700349808,
0.06081918627023697,
0.31242308020591736,
0.19409379363059998,
0.1517978012561798,
0.14009970426559448,
0.021162137389183044,
-0.11976555734872818,
0.0751328244805336,
0.006081794388592243,
-0.10550099611282349,
-0.028470121324062347,
0.32878392934799194,
0.11288241297006607,
-0.17496299743652344,
0.08489304035902023,
0.000028253174605197273,
-0.013289057649672031,
0.10112929344177246,
-0.24777938425540924,
0.5799880027770996,
-0.3045036196708679,
0.049542661756277084,
-0.3111799955368042,
0.04009278118610382,
-0.18272008001804352,
0.41434285044670105,
-0.13449858129024506,
-0.3618728518486023,
0.595512330532074,
-0.09017661213874817,
0.16288624703884125,
0.5966635942459106,
-0.00011595908290473744,
0.08450114727020264,
0.39324456453323364,
-0.12010852992534637,
-0.2960405647754669,
-0.5694469213485718,
0.26160919666290283,
-0.19807694852352142,
0.214833065867424,
0.13697031140327454,
-0.13914301991462708,
-0.380994975566864,
0.20642395317554474,
-0.015644250437617302,
0.3636641204357147,
0.03110525943338871,
0.15028978884220123,
0.35515832901000977,
0.19134394824504852,
-0.1960781067609787,
-0.12323301285505295,
0.45348671078681946,
-0.27781403064727783,
0.5499460101127625,
0.30911538004875183,
-0.4308944642543793,
0.09272143244743347,
0.1659911572933197,
-0.07540272176265717,
-0.05367608740925789,
0.39754951000213623,
-0.024482842534780502,
0.03166339546442032,
-0.22009867429733276,
0.12943057715892792,
0.3337748944759369,
0.5657203197479248,
-0.3766568899154663,
-0.5654234886169434,
-0.2516538202762604,
0.08289807289838791,
-0.05219072103500366,
0.3052113652229309,
0.2050047367811203,
-0.27222582697868347,
0.1463727056980133,
-0.20359978079795837,
-0.17536933720111847,
-0.12672527134418488,
0.19358591735363007,
-0.11127347499132156,
-0.24348977208137512,
-0.2949477732181549,
0.04355916008353233,
0.07194497436285019,
-0.19504818320274353,
-0.16173674166202545,
0.05340563505887985,
-0.2384522259235382,
0.27822232246398926,
-0.25449541211128235,
0.11044466495513916,
0.009540863335132599,
0.2557700574398041,
0.15535493195056915,
-0.23424212634563446,
0.03596910834312439,
-0.06223714351654053,
-0.08567365258932114,
0.1938934475183487,
0.279336541891098,
0.14823614060878754,
0.3574495017528534,
-0.025306103751063347,
-0.009561030194163322,
0.44058936834335327,
-0.06952990591526031,
-0.20829643309116364,
-0.07651388645172119,
-0.16826064884662628,
-0.4591740071773529,
-0.3255857825279236,
0.43185341358184814,
-0.3057953417301178,
-0.40527331829071045,
-0.07225406169891357,
-0.23975974321365356,
0.08622264117002487,
0.13741415739059448,
0.4865347445011139,
0.008157928474247456,
0.15827563405036926,
0.005874439142644405,
0.28659749031066895,
-0.26451531052589417,
0.087150439620018,
-0.24189743399620056,
-0.0022811414673924446,
-0.0693872943520546,
0.157014861702919,
0.239871546626091,
-0.36122533679008484,
0.3871786296367645,
-0.017591146752238274,
-0.044973358511924744,
0.08161113411188126,
-0.09847428649663925,
0.10817927122116089,
-0.20233580470085144,
0.2186916619539261,
-0.16243940591812134,
0.03172855079174042,
0.2772151231765747,
-0.03268743306398392,
-0.0554952435195446,
-0.062233202159404755,
-0.1377471387386322,
-0.3022780120372772,
-0.010477593168616295,
0.10691370069980621,
-0.09468047320842743,
-0.16991856694221497,
-0.11256524175405502,
0.1576726734638214,
-0.013035250827670097,
-0.1991378515958786,
-0.07389882951974869,
0.07068806141614914,
0.010617525316774845,
-0.07341007888317108,
0.2454289346933365,
0.758002519607544,
-0.20567023754119873,
-0.31255871057510376,
0.07113789021968842,
-0.18935072422027588,
0.0001482715888414532,
0.261522501707077,
-0.23175083100795746,
0.06809819489717484,
-0.25314173102378845,
-0.16076239943504333,
0.09355027228593826,
-0.4468417763710022,
-0.1955767273902893,
0.27993908524513245,
-0.05560418590903282,
0.45672208070755005,
0.05812367796897888,
-0.08012373745441437,
-0.12730972468852997,
-0.24143949151039124,
0.12309723347425461,
0.18933327496051788,
0.024408990517258644,
-0.20651738345623016,
-0.07820901274681091,
-0.15715494751930237,
0.12860722839832306,
0.2847904860973358,
-0.2935616672039032,
0.0772203728556633,
0.14565880596637726,
-0.16466926038265228,
0.1315746307373047,
-0.01659928821027279,
-0.13602042198181152,
0.2849666178226471,
0.1409730762243271,
0.13292862474918365,
0.018208550289273262,
0.2053837925195694,
-0.5579436421394348,
0.2882402241230011,
-0.25707119703292847,
-0.08205951005220413,
-0.16592440009117126,
-0.08407308161258698,
-0.07733096182346344,
0.09831490367650986,
-0.33955657482147217,
-0.32176828384399414,
-0.012640280649065971,
0.20454172790050507,
0.019432779401540756,
0.14643020927906036,
-0.3868193030357361,
0.3574391305446625,
-0.24727123975753784,
0.2067178189754486,
-0.5592114925384521,
-0.030288616195321083,
0.07477211207151413,
-0.11336316168308258,
0.03758947178721428,
0.2636702060699463,
0.09724786132574081,
-0.24822017550468445,
0.0932326540350914,
0.4593619108200073,
-0.29425016045570374,
0.44029325246810913,
0.019773608073592186,
-0.0383593887090683,
0.23089592158794403,
-0.2425243854522705,
0.049642324447631836,
-0.05453411489725113,
-0.009617440402507782,
0.00931880809366703,
-0.11851993203163147,
0.17284908890724182,
-0.13329185545444489,
0.407351016998291,
0.04596293345093727,
0.18105840682983398,
0.17978288233280182,
0.06619779765605927,
-0.1818438172340393,
-0.2293710708618164,
0.49124622344970703,
-0.11801844090223312,
0.4162701666355133,
-0.0020718800369650126,
-0.3156050741672516,
-0.01753431372344494,
0.13788153231143951,
0.06923973560333252,
-0.05395101010799408,
0.07907338440418243,
-0.30967408418655396,
0.12290947884321213,
0.11918981373310089,
-0.14013665914535522,
0.3699491024017334,
0.09570342302322388,
-0.08479012548923492,
0.15238822996616364,
-0.05094996094703674,
-0.39680683612823486,
0.20814284682273865,
0.02154936082661152,
-0.3026609420776367,
0.04898592084646225,
0.06660212576389313,
0.036916378885507584,
-0.334504634141922,
0.09313149005174637,
-0.038407716900110245,
0.04603723809123039,
-0.33747613430023193,
0.25506576895713806,
-0.10034147650003433,
-0.4144649803638458,
-0.1569959968328476,
-0.4590073227882385,
-0.3220495283603668,
-0.21677890419960022,
-0.14217832684516907,
0.19984465837478638,
-0.05571220442652702,
0.1832413524389267,
0.3134799599647522,
0.08836822956800461,
-0.2705669701099396,
-0.22839747369289398,
-0.1064610704779625,
-0.17799195647239685,
-0.20534130930900574,
0.022298341616988182,
0.3676598072052002,
-0.14731596410274506,
0.2259960025548935,
-0.4360031187534332,
-0.07156043499708176,
-0.2555084824562073,
-0.21752788126468658,
0.1356738954782486,
-0.2151544839143753,
0.4311245083808899,
0.04412791132926941,
0.19513870775699615,
-0.10989896953105927,
-0.005534866359084845,
0.5068662166595459,
0.04205409064888954,
-0.1580023467540741,
0.207781583070755,
-0.1208438128232956,
-0.1133536696434021,
-0.15437832474708557,
-0.10718389600515366,
-0.23484642803668976,
-0.42260685563087463,
0.3171221911907196,
-0.04506136476993561,
-0.11614672094583511,
0.6448139548301697,
0.03878503292798996,
0.1422765552997589,
-0.46841487288475037,
0.08476774394512177,
0.009107246994972229,
-0.5962802767753601,
0.21819892525672913,
-0.23055121302604675,
-0.23289524018764496,
0.25918450951576233,
0.24475029110908508,
0.0769030824303627,
0.2677275240421295,
-0.39392489194869995,
-0.2405206561088562,
0.06836991757154465,
0.046251121908426285,
0.11191775649785995,
0.1560758501291275,
0.24833399057388306,
-0.13630852103233337,
0.0755937248468399,
0.04320666193962097,
-0.15722540020942688,
0.09813662618398666,
-0.10035066306591034,
0.31371745467185974,
-0.15382863581180573,
0.45821839570999146,
-0.1005096435546875,
0.5343382358551025,
0.41177600622177124,
0.09670618921518326,
0.4817892611026764,
-0.02645227313041687,
0.5818594694137573,
-0.24759861826896667,
-0.4075125455856323,
0.09397266060113907,
0.01791863888502121,
0.16710907220840454,
0.22580894827842712,
0.1407610923051834,
0.2846946716308594,
-0.30216729640960693,
-0.3092946708202362,
-0.18816417455673218,
-0.12357164919376373,
-0.08529161661863327,
-0.2234610766172409,
0.5553430914878845,
0.011273007839918137,
0.21709880232810974,
0.1922619640827179,
-0.12640643119812012,
0.08760488778352737,
0.43254971504211426,
0.3353118300437927,
0.1522742658853531,
0.08593151718378067,
-0.027514660730957985,
-0.5519150495529175,
0.1919887363910675,
-0.05151020735502243,
0.27280619740486145,
-0.18160757422447205,
-0.08228112012147903,
0.0650087520480156,
-0.04053930938243866,
0.6027065515518188,
0.20035620033740997,
-0.23879772424697876,
0.01105618104338646,
-0.14183363318443298,
-0.7813397645950317,
0.027684932574629784,
0.1436467170715332,
0.5761941075325012,
-0.21538665890693665,
0.4796074330806732,
-0.35315728187561035,
-0.14385855197906494,
-0.04964907094836235,
0.30804747343063354,
0.00009986355871660635,
-0.22613056004047394,
-0.4201824367046356,
-0.16256628930568695,
-0.2803269624710083,
-0.14164365828037262,
-0.1996253877878189,
0.247637540102005,
0.0932939201593399,
0.09944774955511093,
-0.04371361434459686,
-0.09130772948265076,
0.19259332120418549,
0.18240933120250702,
0.34721970558166504,
-0.21033866703510284,
0.28969284892082214,
0.38696566224098206,
0.23201631009578705,
0.20815378427505493,
0.7227818965911865,
0.16464439034461975,
-0.5916882157325745,
-0.15344254672527313,
0.26968079805374146,
0.18320472538471222,
0.2895330786705017,
-0.028702018782496452,
0.004534410312771797,
0.11956385523080826,
-0.1513383835554123,
-0.33129099011421204,
-0.0692974328994751,
0.25108781456947327,
-0.07247693836688995,
-0.2780545949935913,
-0.19712425768375397,
0.5810288190841675,
-0.1712816059589386,
0.21244081854820251,
0.1725044697523117,
0.25660568475723267,
-0.06070815771818161,
0.013822676613926888,
-0.19728237390518188,
0.6852065324783325,
-0.0016982469242066145,
0.22767406702041626,
0.34905827045440674,
0.17400304973125458,
0.3668687045574188,
0.04132983461022377,
0.055834293365478516,
-0.3259001076221466,
0.21429164707660675,
-0.06215493381023407,
-0.1550910323858261,
0.2504830062389374,
0.014320673421025276,
-0.14382021129131317,
0.4169290065765381,
-0.04920095577836037,
0.2519984245300293,
0.05123231187462807,
0.05850623920559883,
-0.30359533429145813,
-0.28668832778930664,
-0.49859100580215454,
0.06551547348499298,
0.08613281697034836,
0.3852565586566925,
-0.229000985622406,
-0.055278610438108444,
0.04340697079896927,
-0.06505902111530304,
-0.18226280808448792,
0.0976705551147461,
-0.4539613425731659,
-0.08523418009281158,
0.445353627204895,
-0.42277392745018005,
0.13243933022022247,
0.30798715353012085,
0.27703166007995605,
-0.13529618084430695,
-0.4182511568069458,
0.190522238612175,
-0.3107002079486847,
-0.33526796102523804,
0.10889105498790741,
-0.06736498326063156,
0.12501968443393707,
0.01808290183544159,
0.096185602247715,
0.09507367014884949,
-0.1389361023902893,
-0.025964759290218353,
-0.17204274237155914,
0.018917502835392952,
-0.11682892590761185,
-0.09131433069705963,
-0.26450785994529724,
-0.20006009936332703,
0.26476696133613586,
-0.11329109966754913,
0.07373516261577606,
0.18067003786563873,
-0.04128866642713547,
-0.2020787000656128,
-0.31558406352996826,
-0.1137930303812027,
-0.1568177342414856,
0.24475207924842834,
-0.4322889745235443,
0.02914242073893547,
0.5220115184783936,
0.31197884678840637,
0.09030402451753616,
-0.03781065344810486,
-0.14198237657546997,
0.3267268240451813,
-0.43894413113594055,
0.08693443238735199,
0.4958401918411255,
0.08713722974061966,
0.08123739808797836,
0.6029363870620728,
0.08884362876415253,
-0.5001254081726074,
-0.02959837205708027,
-0.3501311242580414,
-0.3667312264442444,
0.3960725665092468,
0.05447014048695564,
-0.03504081442952156,
0.11302127689123154,
0.36756303906440735,
0.12757644057273865,
-0.1201762780547142,
-0.2314169853925705,
-0.00222658459097147,
0.007011428941041231,
0.023715011775493622,
0.36081990599632263,
0.134532630443573,
0.26971206068992615,
0.09716340899467468,
0.025893980637192726,
0.06918784230947495,
-0.12983651459217072,
-0.11089600622653961,
0.06621552258729935,
0.12978971004486084,
0.08175980299711227,
-0.1085815355181694,
0.01880301907658577,
-0.08335046470165253,
-0.06603218615055084,
-0.2945558428764343,
0.2419247031211853,
0.1824626326560974,
-0.04054326191544533,
-0.026347700506448746,
-0.09775325655937195,
0.3069409132003784,
-0.16080684959888458,
0.1492481678724289,
0.0016985276015475392,
0.1742997169494629,
0.06667162477970123,
-0.21063433587551117,
-0.2734610438346863,
-0.07732272893190384,
0.1642082780599594,
0.1716504693031311,
0.007536047138273716,
0.02811911702156067,
0.2046603560447693,
-0.19684584438800812,
0.06569450348615646,
0.11000312864780426,
0.13708361983299255,
0.39608773589134216,
-0.23151323199272156,
0.2100994884967804,
0.18426388502120972,
0.09292666614055634,
-0.12741482257843018,
-0.003855594666674733,
-0.11394620686769485,
0.1378069818019867,
-0.026008348912000656,
0.10684102773666382,
0.17584984004497528,
-0.22368162870407104,
0.1428067833185196,
0.13270914554595947,
0.2636273503303528,
0.10223808139562607,
0.16594639420509338,
0.006060217972844839,
0.1174132376909256,
0.053704988211393356,
0.08714228123426437,
0.06809898465871811,
0.3419530689716339,
0.2420550286769867,
-0.34536656737327576,
-0.07669077068567276,
-0.1559666246175766,
0.33271658420562744,
-0.07342061400413513,
-0.42636945843696594,
-0.0034758788533508778,
0.028362741693854332,
0.3028203248977661,
0.05206392705440521,
-0.30997657775878906,
0.6268872618675232,
-0.47048231959342957,
0.18069066107273102,
-0.23355427384376526,
0.10005919635295868,
-0.17392562329769135,
-0.2023801952600479,
-0.03508590906858444,
-0.16010943055152893,
0.1972406804561615,
-0.06918232142925262,
-0.19015827775001526,
-0.20091372728347778,
0.08846115320920944,
-0.06841951608657837,
-0.11633618921041489,
-0.3947869837284088,
0.049818556755781174,
0.3899998664855957,
0.0864819884300232,
-0.06085298955440521,
0.572434663772583,
0.3500395119190216,
-0.096419557929039,
0.23737339675426483,
0.4372105896472931,
0.5460041761398315,
0.2139691263437271,
-0.09593286365270615,
0.17949873208999634,
-0.34105539321899414,
-0.052088040858507156,
0.06284898519515991,
0.30291056632995605,
-0.19706346094608307,
0.16113246977329254,
0.21856355667114258,
0.11025338619947433,
-0.06317156553268433,
-0.031335607171058655,
-0.05289320647716522,
0.3784722089767456,
-0.4556915760040283,
0.1444169580936432,
-0.5341814160346985,
0.06135227158665657,
-0.21888937056064606,
0.13975925743579865,
-0.507959246635437,
0.11947311460971832,
0.17345744371414185,
0.13819004595279694,
-0.17878976464271545,
-0.1093846932053566,
0.04467885568737984,
0.04174375161528587,
0.48345404863357544,
0.5565122961997986,
0.23548351228237152,
-0.19387087225914001,
-0.33906427025794983,
-0.7109739780426025,
0.10042942315340042,
-0.06442316621541977,
0.08360542356967926,
0.03716285899281502,
0.18259239196777344,
0.1044420450925827,
0.15170584619045258,
-0.154849573969841,
0.2474972903728485,
0.07491996884346008,
-0.25473982095718384,
-0.1842653751373291,
-0.2168314903974533,
-0.032844915986061096,
-0.11984226107597351,
-0.06345944851636887,
0.012260177172720432,
0.1356174200773239,
-0.21941779553890228,
-0.08621890842914581,
-0.011336090043187141,
0.10025101155042648,
-0.018153833225369453,
-0.3268488049507141,
0.2521868944168091,
0.044870443642139435,
-0.11176811158657074,
0.10691063106060028,
-0.35880059003829956,
-0.3740371763706207,
-0.33773499727249146,
-0.07800811529159546,
0.19165655970573425,
-0.13865022361278534,
0.42626214027404785,
-0.3807387351989746,
-0.12615083158016205,
-0.2059415727853775,
0.17163537442684174,
0.09460505098104477,
-0.015034318901598454,
-0.16386106610298157,
0.14818555116653442,
0.002383242826908827,
-0.06771684437990189,
0.11838424205780029,
0.5463752150535583,
0.030455870553851128,
0.11109230667352676,
-0.31672853231430054,
-0.25823724269866943,
0.5261226892471313,
-0.3973473012447357,
0.03538447991013527,
0.3021903336048126,
0.09528477489948273,
0.1364232450723648,
-0.24032805860042572,
-0.7155961990356445,
0.26558953523635864,
0.22153183817863464,
0.12628549337387085,
-0.03461176156997681,
0.0403747595846653,
-0.06206519529223442,
0.06971140950918198,
-0.12738922238349915,
0.22380027174949646,
0.22039668262004852,
-0.02280331961810589,
0.35935255885124207,
0.046281930059194565
] |
https://github.com/huggingface/datasets/issues/1644 | HoVeR dataset fails to load | Hover was added recently, that's why it wasn't available yet.
To load it you can just update `datasets`
```
pip install --upgrade datasets
```
and then you can load `hover` with
```python
from datasets import load_dataset
dataset = load_dataset("hover")
``` | Hi! I'm getting an error when trying to load **HoVeR** dataset. Another one (**SQuAD**) does work for me. I'm using the latest (1.1.3) version of the library.
Steps to reproduce the error:
```python
>>> from datasets import load_dataset
>>> dataset = load_dataset("hover")
Traceback (most recent call last):
File "/Users/urikz/anaconda/envs/mentionmemory/lib/python3.7/site-packages/datasets/load.py", line 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/urikz/anaconda/envs/mentionmemory/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/urikz/anaconda/envs/mentionmemory/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/hover/hover.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/urikz/anaconda/envs/mentionmemory/lib/python3.7/site-packages/datasets/load.py", line 278, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/urikz/anaconda/envs/mentionmemory/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/urikz/anaconda/envs/mentionmemory/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/hover/hover.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/urikz/anaconda/envs/mentionmemory/lib/python3.7/site-packages/datasets/load.py", line 589, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/Users/urikz/anaconda/envs/mentionmemory/lib/python3.7/site-packages/datasets/load.py", line 282, in prepare_module
combined_path, github_file_path, file_path
FileNotFoundError: Couldn't find file locally at hover/hover.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/hover/hover.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/hover/hover.py
``` | 40 | HoVeR dataset fails to load
Hi! I'm getting an error when trying to load **HoVeR** dataset. Another one (**SQuAD**) does work for me. I'm using the latest (1.1.3) version of the library.
Steps to reproduce the error:
```python
>>> from datasets import load_dataset
>>> dataset = load_dataset("hover")
Traceback (most recent call last):
File "/Users/urikz/anaconda/envs/mentionmemory/lib/python3.7/site-packages/datasets/load.py", line 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/urikz/anaconda/envs/mentionmemory/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/urikz/anaconda/envs/mentionmemory/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/hover/hover.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/urikz/anaconda/envs/mentionmemory/lib/python3.7/site-packages/datasets/load.py", line 278, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/Users/urikz/anaconda/envs/mentionmemory/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/Users/urikz/anaconda/envs/mentionmemory/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 486, in get_from_cache
raise FileNotFoundError("Couldn't find file at {}".format(url))
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/hover/hover.py
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/urikz/anaconda/envs/mentionmemory/lib/python3.7/site-packages/datasets/load.py", line 589, in load_dataset
path, script_version=script_version, download_config=download_config, download_mode=download_mode, dataset=True
File "/Users/urikz/anaconda/envs/mentionmemory/lib/python3.7/site-packages/datasets/load.py", line 282, in prepare_module
combined_path, github_file_path, file_path
FileNotFoundError: Couldn't find file locally at hover/hover.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/hover/hover.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/hover/hover.py
```
Hover was added recently, that's why it wasn't available yet.
To load it you can just update `datasets`
```
pip install --upgrade datasets
```
and then you can load `hover` with
```python
from datasets import load_dataset
dataset = load_dataset("hover")
``` | [
-0.22146938741207123,
0.05883113667368889,
0.017389489337801933,
0.2946338355541229,
0.2871960699558258,
0.1036292165517807,
0.2778085768222809,
0.21131351590156555,
0.05538627505302429,
0.04410192742943764,
-0.16387644410133362,
-0.02589070051908493,
0.0066258725710213184,
-0.1750875562429428,
0.32385122776031494,
-0.17255853116512299,
-0.11271791160106659,
-0.013588137924671173,
-0.21223843097686768,
0.1584804207086563,
-0.031967874616384506,
0.23312446475028992,
-0.151284322142601,
0.28551390767097473,
-0.03493834659457207,
0.1885472536087036,
-0.047654733061790466,
0.11020880192518234,
-0.001344831194728613,
-0.5571442246437073,
0.6485422849655151,
0.19645248353481293,
0.2534165382385254,
0.6113677620887756,
-0.00011303117935312912,
0.18799449503421783,
0.4276314675807953,
0.07109387218952179,
-0.4378684461116791,
-0.4516071081161499,
0.1970401406288147,
-0.0665753185749054,
0.40127110481262207,
0.08863149583339691,
-0.19163812696933746,
-0.1743660271167755,
-0.04820222780108452,
-0.35645902156829834,
0.11996080726385117,
0.151565283536911,
0.23709717392921448,
0.552400529384613,
-0.018182530999183655,
-0.23221665620803833,
0.2086298167705536,
-0.09328968822956085,
-0.16180743277072906,
0.4859960079193115,
0.27792590856552124,
0.00001816243093344383,
0.04152873903512955,
0.12543490529060364,
-0.17838788032531738,
0.16099436581134796,
0.44853487610816956,
-0.025384170934557915,
-0.12751580774784088,
-0.07787000387907028,
0.1246725395321846,
0.235318124294281,
0.5451820492744446,
-0.25347721576690674,
-0.3022956848144531,
-0.17338159680366516,
0.07655584812164307,
0.13636207580566406,
0.29443272948265076,
-0.21262109279632568,
-0.07162695378065109,
0.18038378655910492,
-0.10281405597925186,
-0.18874268233776093,
-0.060759902000427246,
0.21072527766227722,
0.1004539281129837,
-0.1589737981557846,
-0.23086951673030853,
0.20977739989757538,
0.16375373303890228,
-0.052275724709033966,
0.016059046611189842,
-0.01538226567208767,
0.053557753562927246,
0.21146266162395477,
-0.39631733298301697,
0.05930512025952339,
0.036626312881708145,
0.13476620614528656,
0.24338911473751068,
0.30892178416252136,
0.3861991763114929,
-0.03970962017774582,
-0.24996794760227203,
0.1359071582555771,
0.418765664100647,
0.07825425267219543,
-0.026812009513378143,
-0.3456532061100006,
0.43914681673049927,
0.2833789885044098,
0.1257048398256302,
-0.04637893661856651,
-0.07630638778209686,
-0.051699526607990265,
-0.13375695049762726,
-0.16971027851104736,
0.2196265608072281,
-0.2770831882953644,
-0.20520144701004028,
0.1551860272884369,
-0.11020230501890182,
-0.061932627111673355,
0.17055994272232056,
0.3384835422039032,
-0.1790274828672409,
0.2826484143733978,
0.27994194626808167,
0.2793717682361603,
0.009706966578960419,
-0.13910500705242157,
-0.23068463802337646,
0.3470251262187958,
-0.11351927369832993,
0.16846701502799988,
0.46366795897483826,
-0.37088239192962646,
0.21464137732982635,
0.052715834230184555,
0.2620733976364136,
0.011849763803184032,
-0.06401636451482773,
-0.13088007271289825,
-0.28608420491218567,
0.2620019018650055,
0.037562426179647446,
0.3730461895465851,
0.3032679557800293,
-0.3780882656574249,
-0.07859799265861511,
0.13033632934093475,
-0.10469702631235123,
-0.27367401123046875,
-0.11318397521972656,
0.14070260524749756,
-0.5425637364387512,
-0.16900169849395752,
-0.7952097058296204,
-0.11589571088552475,
-0.03740306943655014,
-0.1901673972606659,
-0.1757316291332245,
-0.25212353467941284,
0.11311192065477371,
-0.18449321389198303,
0.25694379210472107,
0.5731606483459473,
-0.46837320923805237,
-0.14176315069198608,
-0.3210858404636383,
-0.24505046010017395,
-0.18950770795345306,
0.04993898421525955,
-0.22909851372241974,
0.014584957621991634,
-0.37598326802253723,
0.23424845933914185,
0.2016320675611496,
-0.5678402185440063,
-0.3043699562549591,
0.18814492225646973,
-0.27375394105911255,
0.13914167881011963,
-0.10961520671844482,
-0.043116264045238495,
0.03428199142217636,
-0.12984973192214966,
-0.27513501048088074,
0.3710015118122101,
0.055258724838495255,
-0.12522482872009277,
-0.15262576937675476,
-0.08761238306760788,
0.02427014708518982,
0.4814234972000122,
-0.005068657919764519,
-0.03461971506476402,
0.11126364022493362,
0.40483009815216064,
0.12384776771068573,
0.00824030116200447,
-0.0026465945411473513,
0.2363562285900116,
0.15572810173034668,
0.06606703251600266,
0.02659868635237217,
-0.22053216397762299,
-0.5138401985168457,
0.2790479362010956,
0.28049570322036743,
0.09340235590934753,
-0.052098583430051804,
0.10988036543130875,
-0.35604363679885864,
-0.06235713139176369,
-0.46877580881118774,
-0.2576204836368561,
0.0420774444937706,
0.26402783393859863,
-0.11192851513624191,
-0.013955501839518547,
-0.2272300124168396,
0.13177752494812012,
-0.14926747977733612,
0.22084826231002808,
-0.2036614865064621,
0.35157260298728943,
-0.12741993367671967,
-0.13949526846408844,
0.11260893940925598,
0.19097788631916046,
0.012746322900056839,
-0.20368485152721405,
-0.11205876618623734,
0.5353550910949707,
-0.19174467027187347,
-0.1702147275209427,
0.1466425657272339,
-0.05164777860045433,
0.18556877970695496,
-0.33245471119880676,
0.019998867064714432,
0.022505134344100952,
0.05274641513824463,
0.009319648146629333,
-0.17551754415035248,
-0.04286056011915207,
-0.0302117969840765,
0.4222051203250885,
0.1818196326494217,
0.11835093796253204,
0.3142017722129822,
0.06899954378604889,
-0.06767450273036957,
-0.18293394148349762,
0.3034828007221222,
0.06229203939437866,
0.4900856614112854,
-0.012033797800540924,
-0.19772617518901825,
0.03603333234786987,
-0.04019564762711525,
-0.007314740680158138,
0.1719881147146225,
0.22158482670783997,
-0.21881574392318726,
-0.04188147187232971,
-0.07633666694164276,
0.10089723020792007,
0.54815673828125,
0.09765245020389557,
-0.06733868271112442,
-0.1769089698791504,
0.05829553306102753,
-0.10676582902669907,
0.17593549191951752,
-0.10828275978565216,
-0.07814968377351761,
0.0818074569106102,
0.16082945466041565,
-0.03287378326058388,
-0.26207730174064636,
-0.41196393966674805,
-0.03287101536989212,
0.18526847660541534,
-0.2394345998764038,
0.10622306168079376,
-0.3376258909702301,
-0.18779850006103516,
-0.037802617996931076,
0.05686371028423309,
-0.49069470167160034,
-0.33848801255226135,
-0.2438511848449707,
0.2719506025314331,
0.30346086621284485,
0.052015986293554306,
-0.0791253000497818,
0.23713243007659912,
0.05419221147894859,
0.00879854615777731,
-0.10036200284957886,
0.02277739904820919,
-0.2968292832374573,
0.032164327800273895,
0.12512923777103424,
-0.16560575366020203,
0.12944914400577545,
0.04445955902338028,
0.10594550520181656,
-0.38428133726119995,
-0.1393769532442093,
0.28939464688301086,
-0.09439586102962494,
0.48044177889823914,
0.22285079956054688,
0.35564354062080383,
0.04326876625418663,
0.009782077744603157,
0.554004430770874,
-0.09708248823881149,
-0.024785904213786125,
0.1292893886566162,
0.06143243983387947,
0.039257291704416275,
-0.12322146445512772,
-0.07998602092266083,
-0.4014397859573364,
-0.31761419773101807,
-0.0031221131794154644,
-0.011920164339244366,
-0.16679275035858154,
0.49039754271507263,
-0.026162227615714073,
0.2140633761882782,
-0.10699542611837387,
0.19027329981327057,
-0.2419167160987854,
-0.48929616808891296,
0.20020791888237,
-0.22619594633579254,
-0.23582206666469574,
-0.07731124013662338,
0.2203533798456192,
0.3298977017402649,
-0.16584405303001404,
-0.5135374069213867,
-0.1725964993238449,
-0.03670905530452728,
0.1087120771408081,
-0.02199549414217472,
0.11469651013612747,
0.011017664335668087,
-0.051428988575935364,
-0.05250371992588043,
-0.14490312337875366,
-0.17511771619319916,
-0.14603891968727112,
-0.1188499704003334,
0.26082706451416016,
0.06878183037042618,
0.07319516688585281,
0.12249445170164108,
0.6985933184623718,
-0.11896573752164841,
-0.2699798345565796,
0.5415757298469543,
0.04279959574341774,
0.49274787306785583,
-0.011632946319878101,
-0.5201570391654968,
0.09555890411138535,
-0.09930915385484695,
0.30075743794441223,
-0.04713672399520874,
0.054455921053886414,
0.13665781915187836,
-0.2283729761838913,
0.1179620772600174,
-0.14673371613025665,
-0.1641770452260971,
-0.0845772996544838,
0.13791784644126892,
0.043621569871902466,
0.1699548214673996,
0.01980683207511902,
0.015024460852146149,
-0.2037184238433838,
0.14520251750946045,
0.5837774276733398,
0.1453823745250702,
0.10660292208194733,
-0.11395177990198135,
-0.1601521521806717,
-0.30590736865997314,
0.2898319363594055,
-0.16678890585899353,
0.38802996277809143,
-0.083302341401577,
0.08692716062068939,
0.07758455723524094,
0.1479598432779312,
0.44340673089027405,
-0.32870423793792725,
0.15855257213115692,
0.13365225493907928,
-0.08577615022659302,
-0.6703965067863464,
-0.09366621822118759,
0.09940862655639648,
0.3416181206703186,
-0.009650681167840958,
0.06181935966014862,
-0.26409217715263367,
-0.30577579140663147,
0.4000411927700043,
0.3831835687160492,
-0.08750297129154205,
-0.36357393860816956,
-0.20491446554660797,
-0.2763393521308899,
-0.2349279820919037,
-0.33256664872169495,
-0.15484295785427094,
0.23142509162425995,
0.0645105168223381,
0.07273610681295395,
0.07040810585021973,
-0.20614555478096008,
0.22632496058940887,
0.04808148741722107,
0.32620003819465637,
0.22283396124839783,
0.11299701035022736,
0.2624374032020569,
0.0505172535777092,
0.08083939552307129,
0.2764735817909241,
-0.0935816764831543,
-0.040748231112957,
0.42851102352142334,
0.04154353216290474,
0.1869731992483139,
0.2135007381439209,
-0.29700177907943726,
0.26223671436309814,
0.0712648555636406,
0.06138894706964493,
-0.09120427072048187,
0.12177135795354843,
0.21872101724147797,
-0.18002401292324066,
0.03821786493062973,
-0.6317686438560486,
0.5229839086532593,
0.25323939323425293,
0.08200791478157043,
0.10123960673809052,
0.051872581243515015,
-0.026396119967103004,
0.1271335929632187,
-0.012430151924490929,
0.8495197296142578,
-0.21155771613121033,
0.2392897754907608,
0.18633510172367096,
0.36003926396369934,
0.5700750350952148,
-0.1596253663301468,
0.026181932538747787,
-0.3569958806037903,
-0.24089151620864868,
-0.047278884798288345,
-0.3012675642967224,
0.10716967284679413,
0.09684248268604279,
-0.049771323800086975,
0.2951699495315552,
-0.21449631452560425,
0.17860382795333862,
0.07607998698949814,
0.2879981994628906,
-0.29316389560699463,
-0.30461955070495605,
-0.25906914472579956,
0.16649293899536133,
-0.3988604247570038,
0.4500925540924072,
-0.12434779107570648,
0.16044291853904724,
-0.09893705695867538,
-0.07843665033578873,
-0.4062736928462982,
0.16231200098991394,
-0.022279582917690277,
0.29182955622673035,
-0.15713846683502197,
-0.4060108959674835,
0.2369614839553833,
0.15660011768341064,
0.08258529007434845,
0.2131320834159851,
-0.13534218072891235,
0.24159027636051178,
-0.28054079413414,
-0.1442270427942276,
0.0009851763024926186,
-0.039839062839746475,
0.18980342149734497,
-0.053352780640125275,
-0.11391109973192215,
0.0885142832994461,
-0.028068240731954575,
-0.21077950298786163,
0.11506945639848709,
0.10505616664886475,
0.015026312321424484,
-0.20308572053909302,
-0.26193785667419434,
-0.14957857131958008,
0.11536623537540436,
-0.21473534405231476,
0.08468379825353622,
0.38000619411468506,
-0.040746260434389114,
-0.08720950037240982,
0.06375809013843536,
-0.1531887799501419,
0.02903567999601364,
0.5284175276756287,
-0.03791217878460884,
-0.2446856051683426,
0.49417799711227417,
0.43841367959976196,
-0.18833540380001068,
-0.10685950517654419,
0.1098426878452301,
0.27747583389282227,
-0.5570069551467896,
0.09444791823625565,
-0.07627058774232864,
0.10072982311248779,
-0.08168216049671173,
0.287708580493927,
0.21531960368156433,
-0.043845050036907196,
-0.06911510229110718,
-0.6689063310623169,
-0.12253428250551224,
0.2263718694448471,
-0.21361103653907776,
-0.009167932905256748,
-0.12617327272891998,
0.08236150443553925,
0.03989129140973091,
-0.3140803277492523,
-0.2577999234199524,
0.19322426617145538,
-0.3386511504650116,
-0.15773671865463257,
0.39977067708969116,
0.015368548221886158,
0.26953187584877014,
-0.17941227555274963,
0.12437263876199722,
0.013405630365014076,
-0.1539355367422104,
-0.13917392492294312,
-0.1338413953781128,
0.15006320178508759,
0.024988405406475067,
-0.08219974488019943,
-0.0661347284913063,
-0.1386975347995758,
0.04268233850598335,
-0.09688007831573486,
0.19718706607818604,
0.11370875686407089,
0.11650875955820084,
-0.2642098069190979,
-0.231144979596138,
0.01928429678082466,
-0.08963373303413391,
0.16840311884880066,
-0.000908383633941412,
0.30300813913345337,
0.29468393325805664,
-0.11768496036529541,
0.07761438935995102,
-0.0906430333852768,
0.017833640798926353,
0.12155689299106598,
-0.068728968501091,
0.1031278446316719,
0.171562060713768,
-0.3984608054161072,
-0.018745172768831253,
0.4810520112514496,
0.38515546917915344,
0.4579802453517914,
-0.1927492320537567,
0.17853520810604095,
-0.060203779488801956,
0.13917359709739685,
-0.1916448324918747,
-0.10173611342906952,
0.10528295487165451,
0.053213588893413544,
-0.036951858550310135,
0.2517876625061035,
-0.07648500055074692,
0.09793581068515778,
0.13440386950969696,
0.19432376325130463,
0.6998496055603027,
0.0628596618771553,
0.10143142938613892,
0.043677881360054016,
-0.02851741388440132,
-0.023717740550637245,
0.2893112897872925,
0.04610472172498703,
0.1912948489189148,
0.20213206112384796,
-0.3849469721317291,
0.12160167098045349,
-0.10055072605609894,
0.021011866629123688,
0.07958619296550751,
-0.4592588245868683,
0.22044523060321808,
0.2550879120826721,
0.35013294219970703,
-0.10386911779642105,
-0.1861911118030548,
0.6454374194145203,
-0.3548584282398224,
0.036370690912008286,
-0.06158910319209099,
-0.051592085510492325,
-0.14585596323013306,
0.11762895435094833,
-0.21804486215114594,
-0.27931541204452515,
-0.29966408014297485,
-0.05026097223162651,
-0.16365128755569458,
-0.28269219398498535,
0.14230968058109283,
0.07826005667448044,
-0.018792342394590378,
-0.5962902903556824,
-0.20873470604419708,
0.30287763476371765,
-0.20057819783687592,
-0.025480616837739944,
0.25607627630233765,
0.45210960507392883,
-0.003176838858053088,
0.18493054807186127,
0.34444403648376465,
0.4056626260280609,
0.1872996985912323,
-0.16985133290290833,
0.021056298166513443,
-0.26167944073677063,
-0.020968114957213402,
0.06746238470077515,
-0.040786419063806534,
0.07808195054531097,
-0.03112025558948517,
0.30416810512542725,
0.16811951994895935,
-0.1418997347354889,
0.13467752933502197,
0.07212955504655838,
0.2286481112241745,
-0.43090546131134033,
0.21872971951961517,
-0.3335321843624115,
0.11128288507461548,
-0.27313292026519775,
0.06531548500061035,
-0.5620747208595276,
0.11581039428710938,
0.4431759715080261,
0.20904909074306488,
-0.2461424320936203,
-0.33714208006858826,
0.06588249653577805,
0.17458805441856384,
0.29244545102119446,
0.5197386741638184,
0.07688457518815994,
-0.3513479232788086,
-0.2063230574131012,
-0.9277207851409912,
0.18797427415847778,
0.06292305886745453,
0.029270552098751068,
0.05614814534783363,
0.2212740033864975,
0.12573903799057007,
0.28558653593063354,
0.5260551571846008,
-0.11642778664827347,
0.24581100046634674,
-0.14916755259037018,
-0.15902206301689148,
-0.3091537654399872,
-0.02921067364513874,
0.06684204190969467,
-0.1883629858493805,
-0.03897732496261597,
-0.06569620221853256,
-0.09145311266183853,
0.014677456580102444,
-0.3132791221141815,
-0.28599363565444946,
0.09902011603116989,
-0.21077880263328552,
0.4215118885040283,
-0.24977697432041168,
0.3580862283706665,
0.18157348036766052,
-0.2679288983345032,
-0.24540461599826813,
-0.4185310900211334,
0.05158174782991409,
0.34902775287628174,
-0.17137694358825684,
0.32019710540771484,
-0.14541389048099518,
-0.1534007340669632,
-0.5415127873420715,
0.0478428490459919,
0.012916212901473045,
0.08876499533653259,
-0.389116108417511,
0.06315790861845016,
-0.15045176446437836,
0.14373105764389038,
0.017026180401444435,
0.009068303741514683,
-0.12329060584306717,
0.37486031651496887,
-0.2689986228942871,
-0.4195798337459564,
0.6745831370353699,
-0.16998864710330963,
-0.0913294181227684,
-0.09274520725011826,
0.15410944819450378,
-0.4061703681945801,
-0.12399493902921677,
-0.3438661992549896,
-0.007431609556078911,
0.26358726620674133,
0.2550988793373108,
-0.34527722001075745,
-0.10306863486766815,
-0.27103471755981445,
0.06844855099916458,
-0.06514076888561249,
0.28637707233428955,
0.0968330129981041,
-0.15598845481872559,
0.03868400678038597,
0.08216923475265503
] |
https://github.com/huggingface/datasets/issues/1641 | muchocine dataset cannot be dowloaded | I have encountered the same error with `v1.0.1` and `v1.0.2` on both Windows and Linux environments. However, cloning the repo and using the path to the dataset's root directory worked for me. Even after having the dataset cached - passing the path is the only way (for now) to load the dataset.
```python
from datasets import load_dataset
dataset = load_dataset("squad") # Works
dataset = load_dataset("code_search_net", "python") # Error
dataset = load_dataset("covid_qa_deepset") # Error
path = "/huggingface/datasets/datasets/{}/"
dataset = load_dataset(path.format("code_search_net"), "python") # Works
dataset = load_dataset(path.format("covid_qa_deepset")) # Works
```
| ```python
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
7 frames
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/muchocine/muchocine.py
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/muchocine/muchocine.py
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
281 raise FileNotFoundError(
282 "Couldn't find file locally at {}, or remotely at {} or {}".format(
--> 283 combined_path, github_file_path, file_path
284 )
285 )
FileNotFoundError: Couldn't find file locally at muchocine/muchocine.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/muchocine/muchocine.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/muchocine/muchocine.py
``` | 88 | muchocine dataset cannot be dowloaded
```python
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
267 try:
--> 268 local_path = cached_path(file_path, download_config=download_config)
269 except FileNotFoundError:
7 frames
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/muchocine/muchocine.py
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/muchocine/muchocine.py
During handling of the above exception, another exception occurred:
FileNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/datasets/load.py in prepare_module(path, script_version, download_config, download_mode, dataset, force_local_path, **download_kwargs)
281 raise FileNotFoundError(
282 "Couldn't find file locally at {}, or remotely at {} or {}".format(
--> 283 combined_path, github_file_path, file_path
284 )
285 )
FileNotFoundError: Couldn't find file locally at muchocine/muchocine.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.0.2/datasets/muchocine/muchocine.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/muchocine/muchocine.py
```
I have encountered the same error with `v1.0.1` and `v1.0.2` on both Windows and Linux environments. However, cloning the repo and using the path to the dataset's root directory worked for me. Even after having the dataset cached - passing the path is the only way (for now) to load the dataset.
```python
from datasets import load_dataset
dataset = load_dataset("squad") # Works
dataset = load_dataset("code_search_net", "python") # Error
dataset = load_dataset("covid_qa_deepset") # Error
path = "/huggingface/datasets/datasets/{}/"
dataset = load_dataset(path.format("code_search_net"), "python") # Works
dataset = load_dataset(path.format("covid_qa_deepset")) # Works
```
| [
-0.36579957604408264,
-0.1491081863641739,
-0.053581614047288895,
0.33292171359062195,
0.43087688088417053,
0.12308886647224426,
0.3599627912044525,
0.3173547089099884,
0.3176315128803253,
0.06259830296039581,
-0.2380271553993225,
0.001200711471028626,
-0.088910311460495,
0.06104418262839317,
0.0386018231511116,
0.019657684490084648,
-0.09693706780672073,
0.042084939777851105,
-0.09131118655204773,
0.01834588684141636,
-0.21038296818733215,
0.09538739919662476,
-0.03541985899209976,
-0.10084499418735504,
-0.11070404201745987,
-0.13737156987190247,
-0.0456293448805809,
0.34292447566986084,
-0.46381625533103943,
-0.24751435220241547,
0.3933924436569214,
-0.059747543185949326,
0.23428143560886383,
0.43292948603630066,
-0.00011035521310986951,
0.14106671512126923,
0.3332575559616089,
-0.13182632625102997,
-0.4365813732147217,
-0.5427045822143555,
-0.234031543135643,
-0.24828098714351654,
0.12176068127155304,
-0.13929733633995056,
-0.08604885637760162,
-0.2626754343509674,
0.07573146373033524,
-0.16159480810165405,
0.32599514722824097,
0.4596896767616272,
0.2739565968513489,
0.3807639479637146,
0.1729074865579605,
-0.2033826857805252,
0.42296990752220154,
-0.02471400797367096,
-0.12362467497587204,
0.468458890914917,
0.06930433958768845,
-0.024407703429460526,
0.07985053956508636,
0.07080817967653275,
-0.1889914721250534,
0.13675791025161743,
0.1010279729962349,
-0.1283799409866333,
-0.09865717589855194,
-0.39185550808906555,
0.19865873456001282,
0.20604999363422394,
0.2593170404434204,
-0.14491991698741913,
-0.45171087980270386,
-0.06364661455154419,
0.09429237991571426,
-0.478838175535202,
0.09187652915716171,
0.23962600529193878,
0.15926483273506165,
0.10965557396411896,
0.0373004674911499,
-0.2497657835483551,
-0.13812655210494995,
0.36695802211761475,
-0.11735158413648605,
0.06643383949995041,
-0.24606318771839142,
-0.10646997392177582,
0.06806283444166183,
-0.16471175849437714,
-0.15108995139598846,
0.11550130695104599,
-0.2062196433544159,
0.10286734998226166,
-0.2802644371986389,
-0.05666463449597359,
-0.07721170783042908,
-0.0013286899775266647,
0.09711158275604248,
0.2565971612930298,
0.04051337018609047,
-0.005387736950069666,
0.09776834398508072,
0.0714683085680008,
0.05524398759007454,
0.19629515707492828,
-0.0038631479255855083,
0.1495792120695114,
0.09311418235301971,
0.36998942494392395,
-0.02032574638724327,
-0.059886373579502106,
-0.4647662341594696,
-0.25023308396339417,
-0.22430525720119476,
-0.22755661606788635,
0.3014703094959259,
-0.285625696182251,
-0.3109281659126282,
-0.06509079039096832,
-0.06925864517688751,
-0.017305441200733185,
0.2589639723300934,
0.5917766094207764,
-0.21996137499809265,
0.1064363345503807,
0.0758354440331459,
0.30288535356521606,
-0.0017311297124251723,
0.24293090403079987,
-0.24847492575645447,
0.4639941453933716,
-0.14294832944869995,
-0.05643404647707939,
0.251064658164978,
-0.4133734703063965,
0.4145965874195099,
-0.11814077198505402,
0.010998091660439968,
-0.13539893925189972,
-0.03779160603880882,
-0.16318541765213013,
0.1514473557472229,
0.2247883826494217,
-0.0626438558101654,
0.07585766166448593,
0.24539826810359955,
0.003351835999637842,
-0.19456255435943604,
-0.2132004052400589,
-0.14824506640434265,
-0.4352898895740509,
-0.1609935760498047,
0.25830093026161194,
-0.008988563902676105,
-0.17365305125713348,
-0.13581323623657227,
-0.36661288142204285,
0.10695355385541916,
-0.05935042351484299,
-0.08983669430017471,
-0.20576678216457367,
-0.13394507765769958,
-0.21237808465957642,
0.4348730742931366,
0.6249145865440369,
0.05776350945234299,
-0.1927991807460785,
-0.1481887549161911,
0.1223762035369873,
0.10117405652999878,
0.18794886767864227,
-0.25693753361701965,
0.1325681507587433,
-0.30404168367385864,
-0.24839600920677185,
0.5892071723937988,
-0.4786575138568878,
-0.3480914235115051,
0.4911937415599823,
-0.24455486238002777,
0.0593724362552166,
0.14396384358406067,
-0.10011865943670273,
0.23851875960826874,
0.048515599220991135,
0.5149019360542297,
0.1525220423936844,
0.006027720402926207,
-0.0757717490196228,
-0.20675219595432281,
-0.354843407869339,
-0.1694713979959488,
0.26682519912719727,
0.24731527268886566,
0.12034070491790771,
0.245199516415596,
0.311021625995636,
0.05816752463579178,
-0.023575063794851303,
-0.041332051157951355,
0.25166329741477966,
0.22446204721927643,
0.051154837012290955,
-0.20826101303100586,
-0.060526903718709946,
-0.3732617497444153,
0.2185179591178894,
-0.001984083792194724,
0.09431574493646622,
-0.1907484531402588,
0.10804998129606247,
-0.525334358215332,
-0.04145796224474907,
-0.24759207665920258,
-0.16388806700706482,
0.16385096311569214,
0.21254681050777435,
0.25645676255226135,
0.13565091788768768,
-0.21326357126235962,
0.35099878907203674,
-0.12664727866649628,
0.06779813766479492,
-0.21359236538410187,
0.04864185303449631,
-0.1698085069656372,
-0.15370310842990875,
0.1298380196094513,
0.18434549868106842,
0.2591021656990051,
-0.2886408269405365,
0.04659491032361984,
0.24315360188484192,
-0.04690796881914139,
-0.24771448969841003,
0.04052778333425522,
0.23633348941802979,
0.23930279910564423,
-0.04645639657974243,
0.1544015258550644,
-0.06361373513936996,
0.16308484971523285,
0.050527460873126984,
0.15601253509521484,
0.34761327505111694,
-0.11604451388120651,
0.26532819867134094,
0.29604166746139526,
-0.12879155576229095,
0.30483242869377136,
0.03710374981164932,
0.10481875389814377,
-0.23037371039390564,
0.2754019796848297,
0.11039191484451294,
0.45323991775512695,
0.08788570761680603,
-0.24465370178222656,
-0.03625781461596489,
0.1542770266532898,
0.1417570859193802,
-0.1004246398806572,
0.08807116746902466,
-0.10780791938304901,
0.050314370542764664,
-0.1643218994140625,
0.1259833127260208,
0.43945685029029846,
0.3152253329753876,
-0.0030138553120195866,
-0.13074307143688202,
0.1457129567861557,
-0.19011707603931427,
0.22852414846420288,
0.0828295648097992,
0.13192686438560486,
0.0903954729437828,
0.24315236508846283,
0.06040961295366287,
-0.2865851819515228,
-0.4136483073234558,
0.060415856540203094,
0.21754847466945648,
-0.12337228655815125,
0.05431215092539787,
-0.34158045053482056,
-0.435030072927475,
-0.18323084712028503,
-0.08125624805688858,
-0.11896157264709473,
-0.2224486917257309,
-0.10931117832660675,
0.3850283920764923,
0.08202604204416275,
0.17434881627559662,
-0.36163029074668884,
0.13116614520549774,
0.0034897997975349426,
-0.46367552876472473,
-0.020846927538514137,
-0.049859631806612015,
0.023863259702920914,
0.09164664149284363,
0.31019625067710876,
-0.3293977975845337,
0.298920214176178,
-0.2584397792816162,
-0.3787849247455597,
-0.34379148483276367,
-0.05244996398687363,
0.16397833824157715,
0.041643962264060974,
0.29193222522735596,
0.05848158523440361,
0.2683335244655609,
-0.04782230779528618,
-0.1814962923526764,
0.27852076292037964,
-0.03338044881820679,
-0.10167861729860306,
-0.056819599121809006,
-0.015225484035909176,
0.004720334429293871,
0.11111345887184143,
-0.34845975041389465,
-0.3846932351589203,
-0.5702341794967651,
0.0012285166885703802,
0.02410964109003544,
0.09762856364250183,
0.16337424516677856,
0.08231838792562485,
0.1395435333251953,
-0.27713528275489807,
0.2637176811695099,
0.0028179013170301914,
-0.6356605291366577,
0.3077562749385834,
-0.33546727895736694,
-0.4740186035633087,
0.06365479528903961,
0.07190579921007156,
0.14831165969371796,
0.05984374135732651,
-0.32552090287208557,
-0.11848762631416321,
-0.29353225231170654,
0.0969749391078949,
0.01131787896156311,
0.14888018369674683,
0.15640363097190857,
-0.06274893134832382,
-0.15237866342067719,
-0.039482153952121735,
-0.07441665232181549,
0.02842177450656891,
0.07555380463600159,
0.195220485329628,
-0.15567053854465485,
0.30543917417526245,
-0.18728013336658478,
0.8105009198188782,
-0.04469076544046402,
-0.2567236125469208,
0.6232311725616455,
-0.326362669467926,
0.5438457727432251,
-0.19529561698436737,
-0.5162586569786072,
-0.08893710374832153,
0.0012896050466224551,
0.2168818563222885,
0.04743512347340584,
-0.12295443564653397,
-0.06915967911481857,
-0.3882329761981964,
-0.17522774636745453,
-0.34401360154151917,
-0.14675891399383545,
0.025492381304502487,
-0.05593496561050415,
-0.006919543724507093,
-0.0019944070372730494,
-0.13490061461925507,
0.07629251480102539,
-0.04484500735998154,
0.10676799714565277,
0.4677460789680481,
0.10589715838432312,
0.13387833535671234,
0.26996636390686035,
-0.1259079873561859,
-0.31538236141204834,
0.22928860783576965,
0.09900783747434616,
0.18408049643039703,
-0.02635122463107109,
-0.1844695657491684,
-0.07650572061538696,
-0.1125786080956459,
0.5402205586433411,
0.023271651938557625,
0.11169787496328354,
0.3033771216869354,
-0.3210597634315491,
-0.4074938893318176,
-0.009445864707231522,
-0.1867675632238388,
0.07283791899681091,
0.4294906258583069,
0.18135394155979156,
-0.3219101130962372,
-0.167559415102005,
0.3808235824108124,
0.2768896520137787,
-0.1648254096508026,
-0.03698546066880226,
-0.31961119174957275,
-0.2903357744216919,
-0.38006454706192017,
-0.0481722429394722,
0.10762757807970047,
0.4150269627571106,
0.034086886793375015,
0.10116919875144958,
-0.2938578128814697,
-0.026018653064966202,
-0.017252154648303986,
0.07507804036140442,
0.32958662509918213,
-0.0051775239408016205,
0.2987498641014099,
0.00012736897042486817,
0.47902950644493103,
0.5336916446685791,
0.6083146929740906,
-0.07907753437757492,
-0.16824880242347717,
0.17423726618289948,
0.23881879448890686,
0.056849777698516846,
0.09113775193691254,
-0.1643013060092926,
-0.0760752335190773,
0.10035008937120438,
0.12371669709682465,
0.07576368004083633,
0.4928695261478424,
0.1997983306646347,
-0.10172156989574432,
-0.30607935786247253,
-0.28481432795524597,
0.37999528646469116,
0.005959674250334501,
0.18399734795093536,
0.3617464601993561,
0.17350275814533234,
-0.17937913537025452,
0.15781939029693604,
-0.2865612804889679,
0.8279552459716797,
-0.0883014053106308,
0.18634387850761414,
0.20349207520484924,
-0.17070499062538147,
0.42709776759147644,
0.004430556669831276,
0.26083770394325256,
-0.30660900473594666,
-0.191794291138649,
0.10685531795024872,
-0.21963268518447876,
-0.0452396385371685,
0.037217799574136734,
-0.0017499630339443684,
0.2464991807937622,
-0.17162030935287476,
-0.2535549998283386,
-0.17528140544891357,
0.41424211859703064,
-0.06009157747030258,
-0.12735600769519806,
-0.29728639125823975,
0.12330023944377899,
0.06364689022302628,
0.4764903783798218,
-0.26412272453308105,
-0.022815603762865067,
-0.12270313501358032,
-0.27866998314857483,
-0.2843521535396576,
0.2614375352859497,
-0.09231782704591751,
0.3194982409477234,
-0.3142412602901459,
-0.19946075975894928,
-0.011724782176315784,
-0.14107248187065125,
0.01199787575751543,
-0.01218254491686821,
-0.11364471912384033,
0.09910382330417633,
0.025367755442857742,
-0.43136751651763916,
-0.012650285847485065,
0.10936332494020462,
0.46064114570617676,
-0.17485329508781433,
-0.05696027725934982,
-0.043952323496341705,
-0.12093311548233032,
-0.07641363143920898,
0.0666377991437912,
0.06065085902810097,
-0.17042943835258484,
-0.28525984287261963,
-0.3929138481616974,
0.005713790655136108,
-0.019215082749724388,
-0.286083459854126,
0.14950382709503174,
0.0541304312646389,
-0.14893285930156708,
-0.1410055309534073,
0.06313356012105942,
-0.3694744408130646,
-0.26144734025001526,
0.5848151445388794,
-0.22904758155345917,
-0.16726578772068024,
0.475572407245636,
0.13893383741378784,
-0.24537457525730133,
-0.2389470487833023,
-0.05775671452283859,
0.21422836184501648,
-0.37690073251724243,
0.19337275624275208,
0.1458587646484375,
0.21041043102741241,
0.09942834824323654,
0.4053390920162201,
0.22381693124771118,
-0.06555341184139252,
0.16352614760398865,
-0.5226732492446899,
-0.2048824578523636,
0.2629172205924988,
-0.07548350095748901,
0.16751883924007416,
0.08345036208629608,
0.03237425535917282,
0.11394178867340088,
-0.04111475870013237,
-0.358166366815567,
0.02797061763703823,
-0.2944270968437195,
0.0520220622420311,
0.18176870048046112,
-0.0211626049131155,
0.357322096824646,
0.21044360101222992,
0.24124771356582642,
-0.09528647363185883,
-0.10117139667272568,
-0.28111565113067627,
-0.10542961210012436,
0.13714922964572906,
-0.03518548980355263,
-0.0646681860089302,
-0.1630118191242218,
-0.1591409146785736,
-0.13305054605007172,
-0.06426867842674255,
0.2809073030948639,
0.16473260521888733,
0.011762737296521664,
-0.28477680683135986,
0.09815333038568497,
-0.04212063550949097,
-0.1719222068786621,
0.22524261474609375,
0.10759983211755753,
0.05092579498887062,
0.2489595115184784,
0.20512042939662933,
0.031697314232587814,
-0.1099841371178627,
0.13872350752353668,
-0.2905347943305969,
0.06813342869281769,
-0.02409280650317669,
0.21761785447597504,
-0.2760124206542969,
-0.27414196729660034,
0.15381845831871033,
0.2745254635810852,
0.40746402740478516,
0.008172920905053616,
0.04703879356384277,
0.21613776683807373,
0.2668984532356262,
-0.3773314356803894,
0.018923809751868248,
0.028564702719449997,
-0.1256910115480423,
0.24689625203609467,
0.2550736963748932,
-0.10685679316520691,
0.04810294881463051,
0.13607944548130035,
0.22310085594654083,
0.42109614610671997,
-0.0778731182217598,
0.21608814597129822,
-0.1783437430858612,
0.048966191709041595,
-0.1044895201921463,
0.33434271812438965,
0.28297609090805054,
0.43287956714630127,
0.2902895212173462,
-0.15966001152992249,
0.34076255559921265,
-0.1692943423986435,
0.16619674861431122,
-0.04292881861329079,
-0.40893709659576416,
0.34319183230400085,
0.15553340315818787,
0.11816788464784622,
-0.05459054559469223,
-0.28554654121398926,
-0.008487793616950512,
-0.06949358433485031,
0.20134525001049042,
-0.11921340972185135,
0.2931377589702606,
-0.18208815157413483,
-0.10907024890184402,
0.09341491758823395,
-0.4112876355648041,
0.0798894613981247,
0.04610744118690491,
0.18347690999507904,
-0.1655808836221695,
0.14624729752540588,
0.2682878077030182,
-0.16758351027965546,
-0.07779637724161148,
-0.018054174259305,
0.33321449160575867,
0.1199544295668602,
-0.21091550588607788,
0.20816780626773834,
0.22058697044849396,
-0.11674771457910538,
-0.12161768227815628,
0.35573524236679077,
0.5909679532051086,
0.32303139567375183,
0.196694016456604,
0.006357158068567514,
0.15227743983268738,
-0.12971042096614838,
-0.10763002187013626,
0.1393263339996338,
-0.07135557383298874,
0.23523153364658356,
0.17580562829971313,
0.27562829852104187,
-0.29158836603164673,
0.051382552832365036,
-0.0899239331483841,
-0.03411882743239403,
-0.05829475075006485,
0.2172851264476776,
-0.046996161341667175,
-0.12632235884666443,
-0.3412037193775177,
0.21555142104625702,
-0.584312915802002,
0.44568678736686707,
0.2231093943119049,
0.010193495079874992,
0.11928391456604004,
0.03430100902915001,
0.11734749376773834,
0.11047759652137756,
0.45906585454940796,
0.3333301246166229,
0.2629757821559906,
-0.37811002135276794,
-0.0899779424071312,
-0.5046920776367188,
0.21310575306415558,
-0.13435181975364685,
0.005426466464996338,
0.0841841846704483,
0.2369559407234192,
-0.05534794554114342,
0.0025014388374984264,
0.1508083939552307,
0.21839244663715363,
0.09023423492908478,
-0.017541898414492607,
-0.2637941241264343,
-0.0161258727312088,
0.07066178321838379,
0.017755674198269844,
0.12976475059986115,
-0.33055928349494934,
0.002430524444207549,
-0.4772561192512512,
0.09521675109863281,
-0.14542801678180695,
-0.22486752271652222,
-0.18893027305603027,
-0.342071533203125,
0.3520759642124176,
-0.12084974348545074,
0.1590472161769867,
-0.19753636419773102,
-0.19275352358818054,
-0.2993260622024536,
-0.45228472352027893,
-0.19793863594532013,
0.33988139033317566,
0.3392878770828247,
0.2523286044597626,
-0.2662300765514374,
-0.17875269055366516,
-0.43738293647766113,
0.28318843245506287,
-0.015629256144165993,
-0.2114795744419098,
0.13195639848709106,
-0.08780592679977417,
0.029406365007162094,
-0.027512183412909508,
0.05758863687515259,
0.11311151087284088,
0.030456112697720528,
0.024222902953624725,
-0.35245200991630554,
-0.32144877314567566,
0.5321993827819824,
-0.1855505257844925,
-0.0950867161154747,
-0.07175104320049286,
0.2673279643058777,
0.040588319301605225,
-0.0020062557887285948,
-0.5231082439422607,
0.5159051418304443,
0.4153164029121399,
0.06819526106119156,
-0.15660028159618378,
0.18991635739803314,
-0.2691124379634857,
0.046572715044021606,
-0.0812959223985672,
0.17667508125305176,
-0.006289235316216946,
-0.2810448110103607,
-0.1985643059015274,
-0.02665916085243225
] |
Subsets and Splits