html_url
stringlengths
48
51
title
stringlengths
5
268
comment
stringlengths
70
51.8k
body
stringlengths
0
29.8k
comment_length
int64
16
1.52k
text
stringlengths
164
54.1k
embeddings
listlengths
768
768
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.28426721692085266, -0.27147695422172546, -0.1463160663843155, 0.46084803342819214, 0.30196812748908997, 0.2408367097377777, 0.08345627784729004, 0.5121127963066101, 0.07644923031330109, 0.05858122929930687, -0.00045457761734724045, -0.2665966749191284, -0.10810249298810959, 0.25363534688949585, -0.03370365872979164, 0.03520509973168373, -0.03316422551870346, 0.1680261641740799, -0.09462113678455353, 0.01938607171177864, -0.26840394735336304, 0.25903618335723877, -0.09573866426944733, 0.08946006745100021, -0.003512163180857897, -0.12193456292152405, 0.09926381707191467, 0.2603842616081238, -0.29758110642433167, -0.36872681975364685, 0.3527502417564392, -0.17652195692062378, 0.367129921913147, 0.2056521326303482, -0.00011003285180777311, 0.10972266644239426, 0.4414515197277069, -0.22223785519599915, -0.22730451822280884, -0.2782837748527527, -0.3186439275741577, -0.5255686044692993, -0.042417075484991074, -0.2519207000732422, -0.0720900297164917, -0.1986108273267746, -0.11861749738454819, -0.3585054576396942, 0.19687588512897491, 0.48390471935272217, 0.3277645707130432, -0.2024364173412323, -0.07729664444923401, -0.21825918555259705, 0.1736675649881363, 0.08253654092550278, 0.017782049253582954, 0.09850020706653595, 0.038321804255247116, 0.1259898990392685, 0.5457249879837036, 0.224815234541893, -0.08710285276174545, 0.06227684020996094, 0.1328178495168686, -0.06502913683652878, 0.220179945230484, -0.32685282826423645, 0.18521201610565186, 0.18939049541950226, 0.8423662185668945, -0.1272006630897522, -0.1620606929063797, -0.14171713590621948, 0.12303351610898972, -0.30957895517349243, 0.003566899336874485, 0.3891051113605499, -0.15926234424114227, 0.15572859346866608, -0.19616150856018066, 0.02263542264699936, -0.05632797256112099, 0.14394627511501312, 0.19916699826717377, -0.12764310836791992, -0.25663474202156067, 0.22655326128005981, -0.06645036488771439, -0.09688008576631546, 0.0019843175541609526, -0.06348375976085663, -0.13181157410144806, 0.22007732093334198, -0.30619364976882935, -0.005990009754896164, -0.08652720600366592, -0.04749845713376999, 0.13054899871349335, 0.019128162413835526, 0.20573025941848755, -0.36225396394729614, 0.14165562391281128, 0.10292823612689972, 0.3085204064846039, 0.3533761501312256, -0.09663514047861099, 0.018619107082486153, 0.046876922249794006, 0.1750161498785019, 0.0544099435210228, -0.2243264764547348, -0.1458095759153366, -0.4689761698246002, 0.2325955033302307, 0.24888676404953003, 0.3317735195159912, -0.1506778597831726, -0.2495943307876587, 0.13419610261917114, -0.055104758590459824, 0.23648421466350555, 0.12058329582214355, 0.515311062335968, -0.30711880326271057, 0.16840648651123047, -0.06295699626207352, 0.025601200759410858, -0.02680618315935135, -0.22164341807365417, -0.29560938477516174, 0.02400895394384861, -0.18466119468212128, -0.13959436118602753, 0.20676331222057343, -0.21105076372623444, 0.24458210170269012, 0.07953564077615738, 0.040838271379470825, -0.3071094751358032, 0.053825441747903824, -0.35373538732528687, -0.023229951038956642, 0.46439915895462036, 0.09005239605903625, 0.13243500888347626, 0.25970959663391113, -0.08393073827028275, -0.21899384260177612, 0.17716822028160095, -0.3590294420719147, -0.5951447486877441, -0.011071780696511269, 0.26149898767471313, -0.11406552046537399, 0.11934996396303177, -0.42464661598205566, 0.07000132650136948, 0.16095446050167084, -0.0954991951584816, -0.05181649699807167, -0.17874911427497864, -0.26141631603240967, -0.34765297174453735, 0.1499708890914917, 0.31075194478034973, -0.5323675870895386, 0.16871929168701172, -0.3266533315181732, -0.27322855591773987, 0.29768893122673035, 0.2120356261730194, -0.1209665983915329, 0.3310963809490204, -0.2531271278858185, 0.05921584367752075, 0.3152407109737396, -0.30058979988098145, -0.399997740983963, 0.3908519446849823, 0.016318077221512794, 0.13098686933517456, 0.0034013958647847176, 0.00981072336435318, 0.33078739047050476, 0.00786967296153307, 0.11023348569869995, 0.21269665658473969, -0.14865563809871674, -0.03148634731769562, -0.26205727458000183, -0.16417831182479858, -0.050914522260427475, 0.15648265182971954, 0.13965725898742676, 0.11094529926776886, 0.16915328800678253, -0.3006531596183777, -0.051882874220609665, -0.06556784361600876, 0.2696268856525421, 0.3614276945590973, 0.2116636335849762, 0.1624414622783661, 0.1707906872034073, 0.08129359036684036, -0.5355841517448425, 0.32568061351776123, 0.01159278117120266, -0.19988183677196503, -0.09194441139698029, -0.1241050437092781, -0.5685520172119141, -0.01644550822675228, -0.1286691427230835, -0.0026958046946674585, 0.10941404104232788, -0.10544653236865997, -0.024302737787365913, -0.09215341508388519, -0.03021720051765442, 0.5924555659294128, -0.12620225548744202, -0.15244388580322266, -0.1371082067489624, 0.27827098965644836, 0.012458065524697304, 0.05533112958073616, 0.02121296152472496, 0.09945810586214066, 0.1813472956418991, -0.10147439688444138, -0.3069879710674286, 0.30993738770484924, 0.0669189840555191, -0.059800636023283005, -0.03909987583756447, -0.08811860531568527, -0.12910544872283936, -0.14014126360416412, -0.013778500258922577, 0.1573585718870163, 0.24772308766841888, -0.04692976176738739, 0.11266450583934784, 0.14883366227149963, -0.29803237318992615, 0.003696893807500601, -0.11846067756414413, 0.06277871876955032, 0.5067976117134094, 0.04009642079472542, 0.07035893946886063, -0.36937814950942993, 0.2232138067483902, -0.16622942686080933, 0.31089457869529724, -0.022393496707081795, -0.21733927726745605, -0.3514198958873749, 0.1450289636850357, 0.07821642607450485, -0.09746821224689484, 0.4313170611858368, -0.09091309458017349, -0.10653728991746902, -0.08405429869890213, 0.3009827136993408, 0.5254252552986145, 0.08345615863800049, -0.16754800081253052, 0.20547601580619812, 0.2845366597175598, -0.0061824084259569645, 0.2890947163105011, -0.10242421180009842, 0.32829663157463074, 0.27267134189605713, -0.09580278396606445, -0.15619564056396484, -0.10693810880184174, -0.15120133757591248, 0.18099015951156616, 0.48027679324150085, -0.29616039991378784, 0.007690396159887314, -0.03929782286286354, -0.12936744093894958, -0.02632686123251915, -0.1259983479976654, 0.048574674874544144, -0.058025699108839035, -0.10105416178703308, 0.1505693793296814, 0.04104255884885788, -0.13403964042663574, -0.17710597813129425, 0.2878234386444092, 0.13591036200523376, -0.23670901358127594, -0.10920145362615585, -0.15593655407428741, -0.2683488428592682, 0.11954820156097412, 0.03503183275461197, 0.01967683993279934, 0.25854599475860596, -0.19974106550216675, 0.09140341728925705, -0.10302381217479706, -0.049859412014484406, -0.04471593722701073, -0.0019537925254553556, 0.3377046287059784, 0.1962084025144577, 0.2400907278060913, 0.08995860815048218, 0.05166466534137726, 0.22368794679641724, -0.05026843398809433, -0.05306351184844971, 0.34988728165626526, -0.14861300587654114, -0.09878438711166382, -0.06121513620018959, -0.43781325221061707, -0.5983155965805054, -0.3591509163379669, 0.0012706281850114465, 0.04373799264431, 0.04523642733693123, 0.21582622826099396, 0.22802123427391052, -0.12759286165237427, 0.39820560812950134, -0.07740292698144913, -0.3031054139137268, -0.5205017924308777, 0.23767665028572083, -0.3503073453903198, -0.1679314225912094, 0.008150757290422916, -0.029173828661441803, 0.1761378049850464, 0.06755553185939789, -0.5610894560813904, 0.35672739148139954, -0.23838050663471222, 0.06498968601226807, -0.23086142539978027, -0.31748339533805847, 0.22041969001293182, -0.13813136518001556, -0.061910420656204224, -0.2480172961950302, -0.15417122840881348, -0.030452482402324677, 0.06112731248140335, 0.12303300946950912, -0.06772228330373764, 0.5385037660598755, 0.050266243517398834, 0.5127770304679871, 0.3299146592617035, -0.0016047044191509485, 0.4850446581840515, 0.06830371916294098, 0.3586147427558899, -0.2322537899017334, -0.3839130401611328, -0.04484133422374725, -0.09056095778942108, -0.27245742082595825, 0.1639660745859146, -0.06622304022312164, -0.1001957356929779, -0.1565471589565277, -0.04777969792485237, -0.333280473947525, 0.053940318524837494, 0.10474246740341187, -0.16281065344810486, 0.31257879734039307, 0.08870520442724228, -0.12076373398303986, -0.3875430226325989, -0.1475301831960678, -0.2114035189151764, 0.358305960893631, -0.03124423883855343, 0.21290616691112518, -0.357620507478714, 0.08544058352708817, -0.37564772367477417, 0.4200849235057831, 0.10934785008430481, 0.4523635506629944, -0.12905025482177734, 0.21277184784412384, 0.03788602724671364, 0.053479041904211044, 0.7103988528251648, -0.4645586311817169, 0.03588135913014412, 0.16599434614181519, 0.02756902389228344, -0.3042505383491516, -0.2851872742176056, -0.008480269461870193, 0.31785205006599426, 0.3141334056854248, 0.5803292989730835, -0.03612130507826805, 0.000745067314710468, -0.046496108174324036, 0.1986040323972702, -0.2785795032978058, -0.37961846590042114, -0.3453673720359802, -0.2140883505344391, -0.24124985933303833, -0.0628151223063469, 0.10356156527996063, 0.46642425656318665, -0.05241311341524124, -0.11790727078914642, -0.15774992108345032, 0.015348766930401325, 0.14270345866680145, 0.08803685009479523, 0.36294931173324585, -0.014422931708395481, 0.3649487793445587, 0.07446860522031784, 0.08856171369552612, 0.19705088436603546, 0.6999531388282776, 0.1273982673883438, -0.5392553210258484, -0.12615716457366943, 0.06966835260391235, 0.09543740749359131, -0.08110228180885315, -0.2950466275215149, -0.16156914830207825, -0.036108922213315964, 0.25401490926742554, -0.1686350405216217, 0.2842818796634674, 0.27416256070137024, -0.09369363635778427, -0.5076520442962646, -0.48670822381973267, 0.2544368505477905, 0.07475396990776062, -0.04898657649755478, 0.27865877747535706, -0.21352648735046387, -0.22847996652126312, 0.04306741803884506, 0.037637412548065186, 0.6544897556304932, -0.058919694274663925, -0.10743924230337143, 0.16741715371608734, -0.2733142375946045, 0.24323201179504395, -0.4013943076133728, 0.08022426813840866, -0.3252430558204651, -0.43112948536872864, -0.018983682617545128, -0.2221658080816269, 0.092374786734581, 0.18450772762298584, -0.13606618344783783, 0.3313303589820862, -0.24764369428157806, 0.33809933066368103, -0.04327351227402687, 0.05705515667796135, 0.013291357085108757, -0.1616699993610382, -0.11277195811271667, 0.20041058957576752, -0.221342995762825, 0.2725210189819336, -0.23051303625106812, -0.0070638093166053295, 0.034944720566272736, -0.21167464554309845, -0.35809603333473206, 0.08955740183591843, -0.0012527341023087502, 0.33205997943878174, -0.1337655484676361, -0.21419483423233032, 0.026465311646461487, 0.3820577561855316, 0.27739694714546204, 0.2747625410556793, -0.16808168590068817, 0.17628979682922363, 0.007890578359365463, -0.02278042957186699, -0.0677933320403099, 0.15924087166786194, 0.057432789355516434, -0.07007577270269394, -0.2695402204990387, 0.17292983829975128, -0.15125977993011475, -0.1990176886320114, 0.07428295910358429, -0.05520065501332283, -0.043974220752716064, -0.37888503074645996, -0.4944431781768799, -0.2080950140953064, 0.18062704801559448, -0.06996352970600128, 0.1461120843887329, -0.011700741946697235, -0.05629582330584526, 0.2779739201068878, 0.009877322241663933, -0.49346840381622314, -0.09345792979001999, 0.23585940897464752, 0.15044647455215454, 0.04230804368853569, 0.5770394802093506, -0.022746078670024872, -0.12676449120044708, -0.20606522262096405, 0.15691426396369934, 0.15249526500701904, -0.4153023064136505, 0.2984950840473175, 0.006565889343619347, 0.22829240560531616, -0.056433532387018204, 0.10670468211174011, 0.2867482900619507, -0.013790409080684185, 0.26963478326797485, -0.6932896375656128, -0.2438652664422989, 0.05203348770737648, -0.22527287900447845, 0.18040302395820618, 0.16515491902828217, 0.04282686486840248, -0.08825048059225082, -0.04949986934661865, -0.3103483021259308, 0.19515593349933624, -0.2436412125825882, -0.012771913781762123, 0.11711439490318298, 0.024687284603714943, 0.10249915719032288, -0.050766151398420334, 0.12298080325126648, 0.05686900019645691, -0.2471609264612198, -0.29580220580101013, -0.11205966025590897, 0.12982849776744843, -0.014499383978545666, -0.12319708615541458, 0.05956803634762764, -0.2221885472536087, -0.2636023163795471, -0.07550851255655289, 0.06329966336488724, 0.22922728955745697, 0.0596439465880394, 0.15095831453800201, -0.17560464143753052, 0.07458353787660599, -0.30018919706344604, 0.3205665946006775, 0.06790873408317566, 0.20823606848716736, -0.007541466038674116, 0.23153991997241974, 0.13621871173381805, -0.08701241761445999, -0.4957455098628998, -0.1165442243218422, 0.14861688017845154, 0.031106214970350266, 0.3345162868499756, -0.284158319234848, 0.46776649355888367, 0.18599487841129303, 0.1772845983505249, 0.2053658813238144, -0.18433710932731628, 0.13665609061717987, 0.27926647663116455, 0.24595612287521362, -0.3412807285785675, -0.03600519150495529, -0.027183035388588905, 0.26453569531440735, -0.15160994231700897, 0.019273575395345688, 0.30530279874801636, -0.03358939290046692, -0.023904813453555107, 0.08172078430652618, 0.36084476113319397, 0.1403881460428238, 0.19851352274417877, 0.4787994623184204, 0.05508975312113762, 0.1043439507484436, 0.14739395678043365, 0.15296776592731476, 0.14865398406982422, 0.8432775735855103, -0.08708468824625015, 0.04750557616353035, 0.21901077032089233, 0.19414588809013367, -0.2537887990474701, -0.7259439826011658, 0.20994193851947784, 0.23180057108402252, -0.1292058527469635, 0.06368744373321533, 0.051589641720056534, 0.015477214939892292, -0.05689280852675438, 0.028710607439279556, -0.3996517062187195, -0.11233831197023392, -0.1974150389432907, -0.04390465468168259, -0.11456622183322906, -0.09350872784852982, -0.09504608064889908, 0.09067637473344803, -0.10258373618125916, -0.051763035356998444, -0.05326974391937256, 0.08045698702335358, -0.2873501777648926, -0.31595882773399353, 0.17760924994945526, 0.4647834599018097, -0.06347576528787613, -0.31968042254447937, 0.2313065528869629, 0.19589678943157196, 0.057013195008039474, 0.15993724763393402, 0.11801336705684662, 0.5215352773666382, 0.5515783429145813, -0.03060709312558174, 0.10694717615842819, 0.15771877765655518, -0.11335080116987228, -0.04089666157960892, 0.1973382532596588, 0.3230094611644745, 0.34323835372924805, 0.20134995877742767, 0.23229122161865234, -0.12374656647443771, 0.3629772365093231, 0.13532811403274536, 0.238619863986969, -0.15822561085224152, 0.06278117746114731, -0.13218863308429718, 0.08538682758808136, -0.2960374057292938, 0.16927586495876312, -0.23227009177207947, 0.07238496094942093, 0.5374069213867188, 0.1737913191318512, 0.1843814104795456, 0.028195301070809364, 0.08190511912107468, -0.17947262525558472, 0.3207801580429077, 0.1872992217540741, -0.00460409838706255, -0.44734707474708557, -0.1420501321554184, -0.4908002018928528, 0.15742574632167816, -0.36432021856307983, -0.1044754907488823, 0.14511071145534515, 0.11769967526197433, -0.07114718109369278, 0.011568207293748856, 0.033162493258714676, -0.03909958153963089, -0.1048869788646698, 0.2687350809574127, -0.15997599065303802, -0.39865612983703613, -0.057615675032138824, 0.10793127119541168, 0.11563103646039963, -0.5605536699295044, -0.015595805831253529, -0.11823666840791702, 0.1090889424085617, -0.24126918613910675, -0.15598629415035248, 0.07161896675825119, -0.059863343834877014, 0.47974810004234314, 0.027387503534555435, 0.4527481198310852, -0.029472267255187035, 0.14985503256320953, -0.3443857729434967, -0.3039679229259491, -0.04688454046845436, 0.32532063126564026, 0.19390633702278137, 0.2710704505443573, -0.28286969661712646, 0.11237452179193497, -0.16498443484306335, -0.0021796380169689655, 0.05963755398988724, 0.18521009385585785, -0.09659427404403687, -0.08174683153629303, -0.13646353781223297, 0.18578709661960602, 0.13313493132591248, 0.24675004184246063, -0.1912277340888977, 0.07239513099193573, -0.005328706931322813, -0.3337087333202362, 0.5975270867347717, -0.07901070266962051, -0.2732948362827301, 0.0007330056978389621, 0.09648209065198898, 0.2757698595523834, -0.18670833110809326, -0.20421826839447021, 0.19913822412490845, 0.4787467420101166, -0.13322338461875916, -0.048858754336833954, 0.17193157970905304, 0.08619315177202225, 0.11117780208587646, -0.005996845196932554, 0.18565000593662262, 0.016313429921865463, -0.1944556087255478, 0.10227903723716736, -0.36592867970466614 ]
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.28426721692085266, -0.27147695422172546, -0.1463160663843155, 0.46084803342819214, 0.30196812748908997, 0.2408367097377777, 0.08345627784729004, 0.5121127963066101, 0.07644923031330109, 0.05858122929930687, -0.00045457761734724045, -0.2665966749191284, -0.10810249298810959, 0.25363534688949585, -0.03370365872979164, 0.03520509973168373, -0.03316422551870346, 0.1680261641740799, -0.09462113678455353, 0.01938607171177864, -0.26840394735336304, 0.25903618335723877, -0.09573866426944733, 0.08946006745100021, -0.003512163180857897, -0.12193456292152405, 0.09926381707191467, 0.2603842616081238, -0.29758110642433167, -0.36872681975364685, 0.3527502417564392, -0.17652195692062378, 0.367129921913147, 0.2056521326303482, -0.00011003285180777311, 0.10972266644239426, 0.4414515197277069, -0.22223785519599915, -0.22730451822280884, -0.2782837748527527, -0.3186439275741577, -0.5255686044692993, -0.042417075484991074, -0.2519207000732422, -0.0720900297164917, -0.1986108273267746, -0.11861749738454819, -0.3585054576396942, 0.19687588512897491, 0.48390471935272217, 0.3277645707130432, -0.2024364173412323, -0.07729664444923401, -0.21825918555259705, 0.1736675649881363, 0.08253654092550278, 0.017782049253582954, 0.09850020706653595, 0.038321804255247116, 0.1259898990392685, 0.5457249879837036, 0.224815234541893, -0.08710285276174545, 0.06227684020996094, 0.1328178495168686, -0.06502913683652878, 0.220179945230484, -0.32685282826423645, 0.18521201610565186, 0.18939049541950226, 0.8423662185668945, -0.1272006630897522, -0.1620606929063797, -0.14171713590621948, 0.12303351610898972, -0.30957895517349243, 0.003566899336874485, 0.3891051113605499, -0.15926234424114227, 0.15572859346866608, -0.19616150856018066, 0.02263542264699936, -0.05632797256112099, 0.14394627511501312, 0.19916699826717377, -0.12764310836791992, -0.25663474202156067, 0.22655326128005981, -0.06645036488771439, -0.09688008576631546, 0.0019843175541609526, -0.06348375976085663, -0.13181157410144806, 0.22007732093334198, -0.30619364976882935, -0.005990009754896164, -0.08652720600366592, -0.04749845713376999, 0.13054899871349335, 0.019128162413835526, 0.20573025941848755, -0.36225396394729614, 0.14165562391281128, 0.10292823612689972, 0.3085204064846039, 0.3533761501312256, -0.09663514047861099, 0.018619107082486153, 0.046876922249794006, 0.1750161498785019, 0.0544099435210228, -0.2243264764547348, -0.1458095759153366, -0.4689761698246002, 0.2325955033302307, 0.24888676404953003, 0.3317735195159912, -0.1506778597831726, -0.2495943307876587, 0.13419610261917114, -0.055104758590459824, 0.23648421466350555, 0.12058329582214355, 0.515311062335968, -0.30711880326271057, 0.16840648651123047, -0.06295699626207352, 0.025601200759410858, -0.02680618315935135, -0.22164341807365417, -0.29560938477516174, 0.02400895394384861, -0.18466119468212128, -0.13959436118602753, 0.20676331222057343, -0.21105076372623444, 0.24458210170269012, 0.07953564077615738, 0.040838271379470825, -0.3071094751358032, 0.053825441747903824, -0.35373538732528687, -0.023229951038956642, 0.46439915895462036, 0.09005239605903625, 0.13243500888347626, 0.25970959663391113, -0.08393073827028275, -0.21899384260177612, 0.17716822028160095, -0.3590294420719147, -0.5951447486877441, -0.011071780696511269, 0.26149898767471313, -0.11406552046537399, 0.11934996396303177, -0.42464661598205566, 0.07000132650136948, 0.16095446050167084, -0.0954991951584816, -0.05181649699807167, -0.17874911427497864, -0.26141631603240967, -0.34765297174453735, 0.1499708890914917, 0.31075194478034973, -0.5323675870895386, 0.16871929168701172, -0.3266533315181732, -0.27322855591773987, 0.29768893122673035, 0.2120356261730194, -0.1209665983915329, 0.3310963809490204, -0.2531271278858185, 0.05921584367752075, 0.3152407109737396, -0.30058979988098145, -0.399997740983963, 0.3908519446849823, 0.016318077221512794, 0.13098686933517456, 0.0034013958647847176, 0.00981072336435318, 0.33078739047050476, 0.00786967296153307, 0.11023348569869995, 0.21269665658473969, -0.14865563809871674, -0.03148634731769562, -0.26205727458000183, -0.16417831182479858, -0.050914522260427475, 0.15648265182971954, 0.13965725898742676, 0.11094529926776886, 0.16915328800678253, -0.3006531596183777, -0.051882874220609665, -0.06556784361600876, 0.2696268856525421, 0.3614276945590973, 0.2116636335849762, 0.1624414622783661, 0.1707906872034073, 0.08129359036684036, -0.5355841517448425, 0.32568061351776123, 0.01159278117120266, -0.19988183677196503, -0.09194441139698029, -0.1241050437092781, -0.5685520172119141, -0.01644550822675228, -0.1286691427230835, -0.0026958046946674585, 0.10941404104232788, -0.10544653236865997, -0.024302737787365913, -0.09215341508388519, -0.03021720051765442, 0.5924555659294128, -0.12620225548744202, -0.15244388580322266, -0.1371082067489624, 0.27827098965644836, 0.012458065524697304, 0.05533112958073616, 0.02121296152472496, 0.09945810586214066, 0.1813472956418991, -0.10147439688444138, -0.3069879710674286, 0.30993738770484924, 0.0669189840555191, -0.059800636023283005, -0.03909987583756447, -0.08811860531568527, -0.12910544872283936, -0.14014126360416412, -0.013778500258922577, 0.1573585718870163, 0.24772308766841888, -0.04692976176738739, 0.11266450583934784, 0.14883366227149963, -0.29803237318992615, 0.003696893807500601, -0.11846067756414413, 0.06277871876955032, 0.5067976117134094, 0.04009642079472542, 0.07035893946886063, -0.36937814950942993, 0.2232138067483902, -0.16622942686080933, 0.31089457869529724, -0.022393496707081795, -0.21733927726745605, -0.3514198958873749, 0.1450289636850357, 0.07821642607450485, -0.09746821224689484, 0.4313170611858368, -0.09091309458017349, -0.10653728991746902, -0.08405429869890213, 0.3009827136993408, 0.5254252552986145, 0.08345615863800049, -0.16754800081253052, 0.20547601580619812, 0.2845366597175598, -0.0061824084259569645, 0.2890947163105011, -0.10242421180009842, 0.32829663157463074, 0.27267134189605713, -0.09580278396606445, -0.15619564056396484, -0.10693810880184174, -0.15120133757591248, 0.18099015951156616, 0.48027679324150085, -0.29616039991378784, 0.007690396159887314, -0.03929782286286354, -0.12936744093894958, -0.02632686123251915, -0.1259983479976654, 0.048574674874544144, -0.058025699108839035, -0.10105416178703308, 0.1505693793296814, 0.04104255884885788, -0.13403964042663574, -0.17710597813129425, 0.2878234386444092, 0.13591036200523376, -0.23670901358127594, -0.10920145362615585, -0.15593655407428741, -0.2683488428592682, 0.11954820156097412, 0.03503183275461197, 0.01967683993279934, 0.25854599475860596, -0.19974106550216675, 0.09140341728925705, -0.10302381217479706, -0.049859412014484406, -0.04471593722701073, -0.0019537925254553556, 0.3377046287059784, 0.1962084025144577, 0.2400907278060913, 0.08995860815048218, 0.05166466534137726, 0.22368794679641724, -0.05026843398809433, -0.05306351184844971, 0.34988728165626526, -0.14861300587654114, -0.09878438711166382, -0.06121513620018959, -0.43781325221061707, -0.5983155965805054, -0.3591509163379669, 0.0012706281850114465, 0.04373799264431, 0.04523642733693123, 0.21582622826099396, 0.22802123427391052, -0.12759286165237427, 0.39820560812950134, -0.07740292698144913, -0.3031054139137268, -0.5205017924308777, 0.23767665028572083, -0.3503073453903198, -0.1679314225912094, 0.008150757290422916, -0.029173828661441803, 0.1761378049850464, 0.06755553185939789, -0.5610894560813904, 0.35672739148139954, -0.23838050663471222, 0.06498968601226807, -0.23086142539978027, -0.31748339533805847, 0.22041969001293182, -0.13813136518001556, -0.061910420656204224, -0.2480172961950302, -0.15417122840881348, -0.030452482402324677, 0.06112731248140335, 0.12303300946950912, -0.06772228330373764, 0.5385037660598755, 0.050266243517398834, 0.5127770304679871, 0.3299146592617035, -0.0016047044191509485, 0.4850446581840515, 0.06830371916294098, 0.3586147427558899, -0.2322537899017334, -0.3839130401611328, -0.04484133422374725, -0.09056095778942108, -0.27245742082595825, 0.1639660745859146, -0.06622304022312164, -0.1001957356929779, -0.1565471589565277, -0.04777969792485237, -0.333280473947525, 0.053940318524837494, 0.10474246740341187, -0.16281065344810486, 0.31257879734039307, 0.08870520442724228, -0.12076373398303986, -0.3875430226325989, -0.1475301831960678, -0.2114035189151764, 0.358305960893631, -0.03124423883855343, 0.21290616691112518, -0.357620507478714, 0.08544058352708817, -0.37564772367477417, 0.4200849235057831, 0.10934785008430481, 0.4523635506629944, -0.12905025482177734, 0.21277184784412384, 0.03788602724671364, 0.053479041904211044, 0.7103988528251648, -0.4645586311817169, 0.03588135913014412, 0.16599434614181519, 0.02756902389228344, -0.3042505383491516, -0.2851872742176056, -0.008480269461870193, 0.31785205006599426, 0.3141334056854248, 0.5803292989730835, -0.03612130507826805, 0.000745067314710468, -0.046496108174324036, 0.1986040323972702, -0.2785795032978058, -0.37961846590042114, -0.3453673720359802, -0.2140883505344391, -0.24124985933303833, -0.0628151223063469, 0.10356156527996063, 0.46642425656318665, -0.05241311341524124, -0.11790727078914642, -0.15774992108345032, 0.015348766930401325, 0.14270345866680145, 0.08803685009479523, 0.36294931173324585, -0.014422931708395481, 0.3649487793445587, 0.07446860522031784, 0.08856171369552612, 0.19705088436603546, 0.6999531388282776, 0.1273982673883438, -0.5392553210258484, -0.12615716457366943, 0.06966835260391235, 0.09543740749359131, -0.08110228180885315, -0.2950466275215149, -0.16156914830207825, -0.036108922213315964, 0.25401490926742554, -0.1686350405216217, 0.2842818796634674, 0.27416256070137024, -0.09369363635778427, -0.5076520442962646, -0.48670822381973267, 0.2544368505477905, 0.07475396990776062, -0.04898657649755478, 0.27865877747535706, -0.21352648735046387, -0.22847996652126312, 0.04306741803884506, 0.037637412548065186, 0.6544897556304932, -0.058919694274663925, -0.10743924230337143, 0.16741715371608734, -0.2733142375946045, 0.24323201179504395, -0.4013943076133728, 0.08022426813840866, -0.3252430558204651, -0.43112948536872864, -0.018983682617545128, -0.2221658080816269, 0.092374786734581, 0.18450772762298584, -0.13606618344783783, 0.3313303589820862, -0.24764369428157806, 0.33809933066368103, -0.04327351227402687, 0.05705515667796135, 0.013291357085108757, -0.1616699993610382, -0.11277195811271667, 0.20041058957576752, -0.221342995762825, 0.2725210189819336, -0.23051303625106812, -0.0070638093166053295, 0.034944720566272736, -0.21167464554309845, -0.35809603333473206, 0.08955740183591843, -0.0012527341023087502, 0.33205997943878174, -0.1337655484676361, -0.21419483423233032, 0.026465311646461487, 0.3820577561855316, 0.27739694714546204, 0.2747625410556793, -0.16808168590068817, 0.17628979682922363, 0.007890578359365463, -0.02278042957186699, -0.0677933320403099, 0.15924087166786194, 0.057432789355516434, -0.07007577270269394, -0.2695402204990387, 0.17292983829975128, -0.15125977993011475, -0.1990176886320114, 0.07428295910358429, -0.05520065501332283, -0.043974220752716064, -0.37888503074645996, -0.4944431781768799, -0.2080950140953064, 0.18062704801559448, -0.06996352970600128, 0.1461120843887329, -0.011700741946697235, -0.05629582330584526, 0.2779739201068878, 0.009877322241663933, -0.49346840381622314, -0.09345792979001999, 0.23585940897464752, 0.15044647455215454, 0.04230804368853569, 0.5770394802093506, -0.022746078670024872, -0.12676449120044708, -0.20606522262096405, 0.15691426396369934, 0.15249526500701904, -0.4153023064136505, 0.2984950840473175, 0.006565889343619347, 0.22829240560531616, -0.056433532387018204, 0.10670468211174011, 0.2867482900619507, -0.013790409080684185, 0.26963478326797485, -0.6932896375656128, -0.2438652664422989, 0.05203348770737648, -0.22527287900447845, 0.18040302395820618, 0.16515491902828217, 0.04282686486840248, -0.08825048059225082, -0.04949986934661865, -0.3103483021259308, 0.19515593349933624, -0.2436412125825882, -0.012771913781762123, 0.11711439490318298, 0.024687284603714943, 0.10249915719032288, -0.050766151398420334, 0.12298080325126648, 0.05686900019645691, -0.2471609264612198, -0.29580220580101013, -0.11205966025590897, 0.12982849776744843, -0.014499383978545666, -0.12319708615541458, 0.05956803634762764, -0.2221885472536087, -0.2636023163795471, -0.07550851255655289, 0.06329966336488724, 0.22922728955745697, 0.0596439465880394, 0.15095831453800201, -0.17560464143753052, 0.07458353787660599, -0.30018919706344604, 0.3205665946006775, 0.06790873408317566, 0.20823606848716736, -0.007541466038674116, 0.23153991997241974, 0.13621871173381805, -0.08701241761445999, -0.4957455098628998, -0.1165442243218422, 0.14861688017845154, 0.031106214970350266, 0.3345162868499756, -0.284158319234848, 0.46776649355888367, 0.18599487841129303, 0.1772845983505249, 0.2053658813238144, -0.18433710932731628, 0.13665609061717987, 0.27926647663116455, 0.24595612287521362, -0.3412807285785675, -0.03600519150495529, -0.027183035388588905, 0.26453569531440735, -0.15160994231700897, 0.019273575395345688, 0.30530279874801636, -0.03358939290046692, -0.023904813453555107, 0.08172078430652618, 0.36084476113319397, 0.1403881460428238, 0.19851352274417877, 0.4787994623184204, 0.05508975312113762, 0.1043439507484436, 0.14739395678043365, 0.15296776592731476, 0.14865398406982422, 0.8432775735855103, -0.08708468824625015, 0.04750557616353035, 0.21901077032089233, 0.19414588809013367, -0.2537887990474701, -0.7259439826011658, 0.20994193851947784, 0.23180057108402252, -0.1292058527469635, 0.06368744373321533, 0.051589641720056534, 0.015477214939892292, -0.05689280852675438, 0.028710607439279556, -0.3996517062187195, -0.11233831197023392, -0.1974150389432907, -0.04390465468168259, -0.11456622183322906, -0.09350872784852982, -0.09504608064889908, 0.09067637473344803, -0.10258373618125916, -0.051763035356998444, -0.05326974391937256, 0.08045698702335358, -0.2873501777648926, -0.31595882773399353, 0.17760924994945526, 0.4647834599018097, -0.06347576528787613, -0.31968042254447937, 0.2313065528869629, 0.19589678943157196, 0.057013195008039474, 0.15993724763393402, 0.11801336705684662, 0.5215352773666382, 0.5515783429145813, -0.03060709312558174, 0.10694717615842819, 0.15771877765655518, -0.11335080116987228, -0.04089666157960892, 0.1973382532596588, 0.3230094611644745, 0.34323835372924805, 0.20134995877742767, 0.23229122161865234, -0.12374656647443771, 0.3629772365093231, 0.13532811403274536, 0.238619863986969, -0.15822561085224152, 0.06278117746114731, -0.13218863308429718, 0.08538682758808136, -0.2960374057292938, 0.16927586495876312, -0.23227009177207947, 0.07238496094942093, 0.5374069213867188, 0.1737913191318512, 0.1843814104795456, 0.028195301070809364, 0.08190511912107468, -0.17947262525558472, 0.3207801580429077, 0.1872992217540741, -0.00460409838706255, -0.44734707474708557, -0.1420501321554184, -0.4908002018928528, 0.15742574632167816, -0.36432021856307983, -0.1044754907488823, 0.14511071145534515, 0.11769967526197433, -0.07114718109369278, 0.011568207293748856, 0.033162493258714676, -0.03909958153963089, -0.1048869788646698, 0.2687350809574127, -0.15997599065303802, -0.39865612983703613, -0.057615675032138824, 0.10793127119541168, 0.11563103646039963, -0.5605536699295044, -0.015595805831253529, -0.11823666840791702, 0.1090889424085617, -0.24126918613910675, -0.15598629415035248, 0.07161896675825119, -0.059863343834877014, 0.47974810004234314, 0.027387503534555435, 0.4527481198310852, -0.029472267255187035, 0.14985503256320953, -0.3443857729434967, -0.3039679229259491, -0.04688454046845436, 0.32532063126564026, 0.19390633702278137, 0.2710704505443573, -0.28286969661712646, 0.11237452179193497, -0.16498443484306335, -0.0021796380169689655, 0.05963755398988724, 0.18521009385585785, -0.09659427404403687, -0.08174683153629303, -0.13646353781223297, 0.18578709661960602, 0.13313493132591248, 0.24675004184246063, -0.1912277340888977, 0.07239513099193573, -0.005328706931322813, -0.3337087333202362, 0.5975270867347717, -0.07901070266962051, -0.2732948362827301, 0.0007330056978389621, 0.09648209065198898, 0.2757698595523834, -0.18670833110809326, -0.20421826839447021, 0.19913822412490845, 0.4787467420101166, -0.13322338461875916, -0.048858754336833954, 0.17193157970905304, 0.08619315177202225, 0.11117780208587646, -0.005996845196932554, 0.18565000593662262, 0.016313429921865463, -0.1944556087255478, 0.10227903723716736, -0.36592867970466614 ]
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.0955534279346466, -0.20197567343711853, -0.18235313892364502, 0.0995747521519661, 0.1923648864030838, -0.011418198235332966, 0.2810024619102478, 0.18599048256874084, 0.25373393297195435, 0.2542527914047241, 0.08921854197978973, -0.19674772024154663, 0.23854666948318481, 0.09402366727590561, 0.2848534882068634, 0.005463022273033857, 0.06139397993683815, 0.18277189135551453, -0.05480051785707474, 0.0738353431224823, -0.2219044715166092, 0.16121713817119598, -0.07704656571149826, 0.24066859483718872, 0.1830083280801773, -0.04382408782839775, -0.018339265137910843, 0.24996742606163025, -0.15532921254634857, -0.6863783001899719, 0.5335745811462402, -0.08772053569555283, 0.08723915368318558, 0.38096851110458374, -0.00012196241732453927, 0.17848725616931915, 0.22665205597877502, 0.060089804232120514, -0.3041371703147888, -0.43029987812042236, -0.2043628990650177, -0.4646513760089874, 0.2093786895275116, -0.08814801275730133, -0.11163072288036346, 0.08465094119310379, 0.0986051857471466, -0.06798958778381348, 0.5056242346763611, 0.2571098506450653, 0.12533846497535706, 0.4090690314769745, 0.16111154854297638, -0.023710468783974648, 0.07973095029592514, -0.27803030610084534, 0.03831099346280098, 0.6396936178207397, 0.250608891248703, 0.07917878031730652, 0.18632559478282928, 0.0641188696026802, 0.021892646327614784, 0.036901094019412994, 0.047299500554800034, -0.18821357190608978, -0.12584412097930908, -0.4115507900714874, 0.1586071401834488, 0.18412867188453674, 0.41877245903015137, -0.03934067115187645, -0.4462421238422394, -0.1533680111169815, -0.10582830756902695, -0.2536846399307251, 0.23975645005702972, 0.23562727868556976, -0.18766890466213226, 0.38941657543182373, -0.3782464265823364, -0.4112769365310669, -0.2539043724536896, 0.07960071414709091, 0.15027189254760742, -0.12256839126348495, -0.2733919620513916, 0.27182039618492126, -0.05340888351202011, 0.25797712802886963, -0.1241605132818222, -0.20640689134597778, 0.23852747678756714, 0.25582385063171387, -0.13349807262420654, 0.07678909599781036, 0.06507597863674164, 0.17736446857452393, 0.07278352975845337, 0.020289894193410873, -0.15726754069328308, -0.06840205192565918, 0.08706558495759964, 0.2111351639032364, 0.2821728587150574, 0.03349088504910469, -0.21210327744483948, 0.2013406604528427, 0.4550288915634155, 0.06910105794668198, 0.2622924745082855, -0.010266948491334915, -0.10291777551174164, -0.21077975630760193, -0.27038535475730896, 0.030791301280260086, 0.3211866021156311, -0.2815462350845337, -0.3093489706516266, 0.06590179353952408, 0.03904812037944794, -0.010402499698102474, -0.1799646019935608, 0.25815969705581665, -0.285920649766922, -0.06789331883192062, -0.27219510078430176, 0.20002640783786774, 0.021411344408988953, 0.27538853883743286, -0.11196903139352798, -0.0004640725674107671, 0.006016988307237625, -0.0009933972032740712, 0.03407585248351097, -0.43727540969848633, 0.39148685336112976, 0.09343966096639633, 0.04807821288704872, -0.09877584129571915, 0.11283459514379501, -0.06410609930753708, -0.043066173791885376, 0.684948205947876, 0.17444472014904022, 0.17528946697711945, 0.2168380469083786, -0.18099060654640198, -0.1927260458469391, -0.09094896912574768, -0.3817344903945923, -0.5966471433639526, 0.12521986663341522, 0.09144697338342667, -0.21696537733078003, 0.08713687211275101, -0.29842761158943176, -0.22513790428638458, 0.1321949064731598, -0.11716055870056152, 0.028683245182037354, -0.09015615284442902, 0.10952326655387878, -0.26761287450790405, 0.1917382925748825, 0.3740244209766388, -0.31533119082450867, 0.049448318779468536, -0.0734253004193306, -0.21355094015598297, 0.17627520859241486, 0.3705994188785553, -0.3056226372718811, 0.05918431654572487, -0.3774474263191223, -0.13621249794960022, 0.23829515278339386, -0.5621117353439331, -0.4215042293071747, 0.599270761013031, -0.5369249582290649, 0.1284998059272766, 0.374898225069046, -0.09433933347463608, 0.050116296857595444, -0.1642112284898758, -0.0010983075480908155, 0.20051681995391846, -0.1767103523015976, -0.08590807765722275, -0.06470037996768951, -0.23050664365291595, 0.14962266385555267, 0.05122408643364906, 0.1470542699098587, 0.24752269685268402, 0.4015808403491974, -0.34375378489494324, 0.22497886419296265, 0.07983926683664322, 0.059337202459573746, 0.3031332790851593, 0.1127038523554802, 0.1874867081642151, 0.05764772370457649, -0.06780925393104553, -0.018060749396681786, 0.14332246780395508, 0.09691542387008667, 0.13317272067070007, -0.45443007349967957, -0.2827014923095703, -0.3851605951786041, 0.05970747396349907, -0.2557542622089386, -0.19764654338359833, -0.07292245328426361, 0.16202425956726074, 0.19894269108772278, 0.06297072023153305, -0.13943825662136078, 0.2614644169807434, -0.24170733988285065, 0.1346646398305893, -0.3927440047264099, -0.005286922212690115, -0.3166240453720093, 0.2521168887615204, 0.06287337094545364, 0.22508005797863007, 0.10262584686279297, -0.3936484158039093, 0.038877956569194794, 0.34714868664741516, -0.16367469727993011, 0.24594709277153015, 0.44713351130485535, -0.07682954519987106, 0.1481197327375412, -0.2535529136657715, -0.001922469586133957, 0.02073746919631958, 0.16529271006584167, 0.09957930445671082, 0.24450232088565826, 0.41896873712539673, -0.13817808032035828, 0.35343366861343384, 0.243063285946846, 0.10181476920843124, 0.49705418944358826, 0.18469074368476868, -0.1638277918100357, -0.05491088330745697, 0.16274607181549072, 0.2569490373134613, 0.24402382969856262, 0.05105806514620781, -0.30632099509239197, 0.03585892170667648, 0.3714107275009155, -0.2061372995376587, -0.10453609377145767, 0.21989785134792328, -0.03754619508981705, -0.15411193668842316, 0.26895609498023987, 0.32543250918388367, 0.23970738053321838, 0.12873443961143494, 0.0073768808506429195, 0.008486238308250904, 0.024522576481103897, -0.27580222487449646, 0.21783563494682312, 0.02252432517707348, -0.0848594456911087, -0.09973090142011642, -0.157792866230011, 0.02390485256910324, -0.2462339699268341, -0.25998908281326294, -0.08188633620738983, 0.10035254806280136, -0.2951280474662781, 0.09568376839160919, -0.17913943529129028, -0.21060648560523987, 0.030550189316272736, -0.12782542407512665, -0.07087758183479309, -0.02446555905044079, -0.25416406989097595, -0.07687736302614212, 0.0034974440932273865, 0.054340556263923645, -0.11770788580179214, 0.08089020848274231, -0.00008132989751175046, -0.2572309672832489, 0.01492003258317709, -0.18221944570541382, -0.11670396476984024, 0.08023391664028168, 0.07353410869836807, -0.24600420892238617, 0.3860698640346527, -0.316051721572876, -0.1374780684709549, -0.26470205187797546, -0.2660464942455292, -0.0025325166061520576, -0.29278361797332764, 0.1916857808828354, 0.19712041318416595, 0.570370614528656, -0.07276399433612823, 0.11119942367076874, 0.10098858922719955, 0.1587013155221939, -0.0927199274301529, 0.09472399950027466, -0.17937880754470825, -0.30524876713752747, -0.029363585636019707, -0.41127049922943115, -0.6069239974021912, -0.24141691625118256, 0.5490328669548035, 0.05945512279868126, 0.16991865634918213, 0.1289372742176056, 0.12875118851661682, 0.2001081258058548, -0.09497776627540588, 0.18969140946865082, -0.10985011607408524, -0.7366929650306702, 0.18654057383537292, -0.21872352063655853, -0.42083877325057983, 0.09485650807619095, 0.17421209812164307, 0.1525001972913742, 0.1145445927977562, -0.4824325740337372, -0.043542299419641495, -0.27324622869491577, 0.5928393006324768, 0.22868382930755615, 0.268168568611145, 0.25910425186157227, -0.10834046453237534, -0.019077321514487267, 0.05818141624331474, -0.10925321280956268, -0.12054014205932617, -0.03300416097044945, 0.07995771616697311, 0.23737940192222595, 0.6281406283378601, 0.0022581403609365225, 0.8966246247291565, 0.14333954453468323, 0.28094878792762756, 0.33665719628334045, -0.16724713146686554, 0.6787810325622559, -0.11222581565380096, -0.36959800124168396, 0.18284820020198822, -0.18430070579051971, -0.03417470306158066, -0.034952495247125626, 0.011392236687242985, 0.18264558911323547, -0.3542371392250061, -0.21724452078342438, -0.45472848415374756, -0.013186520896852016, -0.25129953026771545, -0.04394643381237984, 0.30334362387657166, 0.32130324840545654, -0.25429707765579224, -0.04454552382230759, -0.046572860330343246, -0.13929735124111176, 0.5175527334213257, 0.304370641708374, 0.10670769959688187, -0.19374117255210876, -0.41475698351860046, -0.46551015973091125, 0.18503905832767487, 0.1652391105890274, 0.30336499214172363, -0.20392292737960815, 0.1496022492647171, 0.14518356323242188, -0.026494178920984268, 0.46340811252593994, -0.08555404096841812, 0.26087048649787903, -0.25030118227005005, -0.21432103216648102, -0.24217642843723297, 0.08599048852920532, 0.13580691814422607, 0.3931615948677063, 0.402170330286026, 0.3111838400363922, -0.25175660848617554, -0.06343159079551697, 0.2403285950422287, 0.4169410467147827, 0.03608302026987076, 0.032294321805238724, -0.43898963928222656, -0.46714210510253906, -0.3043815493583679, 0.04434765502810478, 0.07504820078611374, -0.032740991562604904, -0.07963646948337555, -0.38013342022895813, 0.13979119062423706, 0.04957583174109459, -0.08493220061063766, 0.01086710300296545, -0.17567110061645508, -0.16398312151432037, -0.08814229816198349, 0.02929227240383625, -0.011989688500761986, 0.2336801439523697, 0.8473027944564819, -0.05433021858334541, -0.4416356086730957, 0.10694091022014618, -0.0873418003320694, 0.2426247000694275, 0.42874839901924133, -0.3434513807296753, 0.22481472790241241, 0.2938660979270935, 0.19414038956165314, 0.02787207067012787, -0.08899874985218048, 0.22786031663417816, 0.25609517097473145, -0.26863929629325867, -0.5812894105911255, 0.2368519902229309, -0.19235247373580933, -0.0798066183924675, 0.16165296733379364, 0.3225768506526947, -0.023152275010943413, 0.0887569859623909, -0.326608270406723, 0.9755812883377075, -0.061897117644548416, 0.15997059643268585, 0.2736925184726715, -0.20490548014640808, 0.6905874013900757, -0.07529241591691971, -0.026011094450950623, -0.0312338899821043, 0.012163050472736359, -0.21386666595935822, -0.18364687263965607, 0.30758407711982727, -0.10755841434001923, 0.1308744251728058, 0.5412428379058838, 0.10515708476305008, 0.27938112616539, 0.28185799717903137, 0.4345102310180664, -0.13703015446662903, 0.15180768072605133, -0.2523866891860962, 0.011293535120785236, 0.08900410681962967, 0.34921008348464966, -0.09679853171110153, -0.1812426745891571, -0.2169571965932846, -0.46354940533638, -0.31590965390205383, 0.0770949199795723, -0.17001603543758392, 0.28355008363723755, -0.26185616850852966, -0.38190868496894836, 0.03947649523615837, 0.21562446653842926, 0.3661673665046692, 0.1271672397851944, -0.34837180376052856, 0.10416950285434723, -0.03258098289370537, -0.2253565639257431, 0.11939812451601028, 0.21962644159793854, 0.05850939452648163, -0.2676692605018616, -0.16314609348773956, 0.09123333543539047, -0.383705198764801, -0.4753277003765106, 0.11651702225208282, 0.16068321466445923, -0.0886342003941536, 0.028558388352394104, -0.2594718337059021, -0.3641320466995239, -0.1353178322315216, -0.22345589101314545, 0.022192249074578285, 0.03325732797384262, 0.08554066717624664, -0.15956814587116241, 0.10008557885885239, -0.4792573153972626, -0.30833184719085693, 0.29619595408439636, 0.10111137479543686, 0.008664610795676708, 0.30086037516593933, -0.02548406273126602, -0.29784178733825684, -0.07300577312707901, -0.10705418884754181, 0.11287181079387665, -0.3831177353858948, -0.0554385632276535, 0.009306449443101883, 0.19030383229255676, -0.2904720604419708, 0.12139958143234253, 0.34540942311286926, -0.1291719228029251, -0.14018718898296356, -0.7301220297813416, -0.2574651837348938, -0.04406991973519325, -0.08601953834295273, -0.04678741842508316, 0.2605709135532379, 0.18841157853603363, 0.21910011768341064, -0.11213794350624084, -0.1931421011686325, -0.035206813365221024, -0.11890769004821777, 0.18934355676174164, 0.39817216992378235, 0.12806838750839233, 0.40426334738731384, -0.04180965945124626, 0.09633516520261765, -0.23983225226402283, -0.27789103984832764, -0.09380045533180237, 0.12725330889225006, 0.19371958076953888, -0.015986256301403046, -0.21133406460285187, -0.13743634521961212, -0.18943823873996735, -0.030295012518763542, 0.13731558620929718, 0.19108723104000092, 0.08851496875286102, 0.07684589177370071, -0.2128351926803589, -0.32464343309402466, 0.03265322372317314, -0.15140300989151, 0.2506735324859619, -0.40529316663742065, 0.29313671588897705, 0.0419883094727993, 0.1846664398908615, -0.054700154811143875, -0.06284719705581665, -0.17902958393096924, -0.17479823529720306, -0.001028232742100954, -0.015644943341612816, 0.4725162386894226, -0.3057200312614441, 0.12173625081777573, 0.12381912022829056, 0.3870132565498352, 0.3176061511039734, -0.07647164911031723, 0.1636551022529602, 0.09201278537511826, 0.05286012962460518, -0.29820385575294495, 0.1763182431459427, 0.019855894148349762, -0.01249612495303154, -0.08693774789571762, 0.0836995542049408, 0.3969009220600128, -0.05113867297768593, 0.2406802773475647, -0.00740413274616003, 0.7359588146209717, -0.03520010784268379, 0.09865231066942215, 0.311661958694458, 0.20281916856765747, 0.290183424949646, -0.007414724212139845, 0.391814649105072, -0.09617929905653, 0.2838304042816162, -0.27927905321121216, -0.06495223194360733, -0.006627567578107119, 0.2520180344581604, -0.21608489751815796, -0.49893414974212646, 0.5282220244407654, 0.14050588011741638, -0.41288986802101135, -0.2227042019367218, 0.2649851441383362, 0.4716646075248718, -0.3868047297000885, 0.16174286603927612, 0.002884093439206481, 0.13966263830661774, 0.000856917118653655, 0.05485663563013077, 0.08676494657993317, -0.052874792367219925, 0.05365031212568283, -0.013852558098733425, 0.04971779137849808, -0.14998771250247955, 0.07322664558887482, 0.0829768106341362, -0.16601073741912842, -0.49014660716056824, 0.09852132946252823, -0.06117686629295349, 0.06406064331531525, -0.10503989458084106, 0.2438177764415741, 0.04413655772805214, -0.11993492394685745, -0.05645886808633804, 0.25294631719589233, 0.6069970726966858, 0.2839484214782715, 0.1196369156241417, 0.043891098350286484, 0.11748799681663513, -0.2431916892528534, -0.03095470927655697, 0.23853912949562073, -0.022695371881127357, 0.3810308873653412, 0.22823473811149597, 0.13632039725780487, -0.033324625343084335, 0.2987481355667114, 0.032363250851631165, -0.007972982712090015, -0.29007503390312195, 0.259725421667099, -0.2596827745437622, -0.37663015723228455, -0.11755644530057907, 0.16496910154819489, -0.512031614780426, 0.1394949108362198, 0.2924077808856964, -0.19793419539928436, 0.01573030650615692, -0.4259530305862427, 0.03493968024849892, 0.027818454429507256, 0.2674638628959656, 0.7155248522758484, 0.4606136083602905, -0.33487647771835327, -0.10985177010297775, -0.538165271282196, 0.17058956623077393, -0.22217029333114624, -0.19827388226985931, 0.05119644105434418, 0.01143275573849678, -0.10574102401733398, 0.3257557451725006, -0.04629718139767647, 0.10873617231845856, 0.07592412829399109, 0.05742201581597328, 0.17897027730941772, -0.02082071453332901, -0.10787677764892578, 0.17535074055194855, -0.1996839940547943, -0.31561338901519775, 0.42496931552886963, -0.39579057693481445, -0.047964178025722504, -0.11121634393930435, 0.23410174250602722, 0.17206329107284546, -0.3405567705631256, 0.4727349281311035, 0.098747618496418, 0.4923418462276459, -0.15602341294288635, -0.1178596094250679, -0.15192559361457825, -0.09380452334880829, -0.16159550845623016, 0.24554312229156494, -0.016790619120001793, 0.006898326799273491, -0.18592840433120728, -0.2319275289773941, -0.241997629404068, 0.31041964888572693, 0.0172111913561821, 0.05640706419944763, 0.28821977972984314, -0.16374410688877106, -0.09385286271572113, 0.014067773707211018, 0.2250904142856598, 0.013341407291591167, 0.06279903650283813, -0.03550109639763832, -0.2181970477104187, -0.30199673771858215, 0.4021441340446472, -0.4057479202747345, -0.03964289650321007, 0.13205629587173462, 0.34935513138771057, 0.17191173136234283, -0.2641627788543701, -0.2059081494808197, 0.18025198578834534, 0.37418875098228455, 0.11971322447061539, -0.35470864176750183, 0.2156611979007721, -0.25295522809028625, 0.18796683847904205, -0.04456111788749695, 0.3003159165382385, -0.17059576511383057, -0.3227387070655823, 0.005977638065814972, -0.28934937715530396 ]
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.36180901527404785, -0.4964473247528076, -0.06872211396694183, 0.12176034599542618, 0.06972818821668625, 0.3581107556819916, -0.09224609285593033, 0.2210623323917389, -0.03528451919555664, 0.013870439492166042, -0.32467490434646606, 0.40964949131011963, 0.06939122080802917, 0.7398913502693176, 0.1613287478685379, -0.24788174033164978, 0.07894863933324814, 0.1294560730457306, -0.4716945290565491, 0.19841334223747253, 0.012885193340480328, 0.004259028937667608, -0.02468312717974186, -0.08492660522460938, -0.09843898564577103, 0.2673225402832031, -0.23301076889038086, -0.19929960370063782, -0.15733401477336884, 0.023566491901874542, 0.3827173709869385, 0.2693842351436615, -0.0531158521771431, 0.20278097689151764, -0.00011157678090967238, 0.07223214209079742, -0.04602256044745445, -0.12087608128786087, 0.10778344422578812, -0.4201942980289459, -0.03929178789258003, -0.5601702332496643, -0.10746689140796661, -0.01812589541077614, -0.17815656960010529, -0.2882150411605835, -0.2893860936164856, -0.21740815043449402, 0.3418450355529785, -0.16900354623794556, 0.10799653828144073, 0.10246630012989044, 0.1639198213815689, -0.06358064711093903, 0.2932226061820984, 0.4440600872039795, -0.08761970698833466, -0.06964817643165588, 0.45623257756233215, 0.049285948276519775, 0.5520349144935608, 0.19697052240371704, -0.019790304824709892, 0.0005695797153748572, 0.2822973430156708, 0.15903225541114807, -0.22059886157512665, -0.20029617846012115, -0.012147625908255577, 0.3940688669681549, 0.43855011463165283, -0.28571808338165283, -0.31858351826667786, -0.189652681350708, 0.14208528399467468, -0.17152151465415955, -0.1700831800699234, 0.3176003694534302, 0.021134598180651665, 0.023208627477288246, -0.46664169430732727, -0.39880725741386414, 0.07614893466234207, 0.15480941534042358, -0.08895736187696457, 0.10690584778785706, -0.08454757183790207, 0.15409046411514282, -0.05781180411577225, -0.24932366609573364, 0.11128155887126923, -0.4102555215358734, -0.08917383849620819, 0.2716377377510071, -0.2897038757801056, -0.3540630638599396, -0.25800570845603943, -0.20534148812294006, 0.7211528420448303, 0.19219209253787994, -0.12443997710943222, -0.13140302896499634, -0.4426640272140503, 0.2014520913362503, 0.26479125022888184, 0.2856196165084839, 0.23403742909431458, 0.018587889149785042, 0.042790818959474564, -0.22738303244113922, -0.1311996877193451, -0.05836164951324463, 0.44230231642723083, -0.13620159029960632, -0.18928690254688263, -0.2544163465499878, 0.4779634475708008, -0.22231903672218323, 0.1482374370098114, -0.4064990282058716, 0.05267166718840599, -0.21322380006313324, -0.17341496050357819, -0.05093098804354668, 0.06986205279827118, -0.00801202654838562, -0.20465673506259918, 0.2878873348236084, 0.27491164207458496, -0.2954859733581543, -0.10598695278167725, -0.07378961145877838, 0.12062904238700867, 0.19112499058246613, -0.012508290819823742, -0.38625943660736084, 0.14507199823856354, 0.6239691376686096, -0.14066752791404724, 0.2539277970790863, 0.31244006752967834, -0.14262400567531586, -0.13763174414634705, -0.1937665194272995, 0.32407718896865845, 0.1543084681034088, 0.09615819901227951, 0.14415021240711212, -0.2133415788412094, -0.0007745508337393403, -0.3544189929962158, -0.11909205466508865, 0.051128093153238297, 0.17202641069889069, -0.133826345205307, -0.1185324415564537, -0.3662884533405304, 0.6697054505348206, -0.04504004865884781, -0.19638454914093018, -0.16011488437652588, 0.4825182855129242, -0.34605872631073, -0.17293083667755127, 0.12489096820354462, 0.04669375345110893, -0.23567870259284973, -0.40603333711624146, 0.11284155398607254, -0.040867358446121216, -0.27360042929649353, 0.4258359670639038, -0.25478509068489075, 0.01484629325568676, -0.29205307364463806, 0.02543909288942814, 0.4448812007904053, -0.07069412618875504, -0.23938341438770294, 0.416638046503067, -0.033869825303554535, -0.02628614380955696, -0.07960580289363861, 0.1589788794517517, 0.15786905586719513, 0.19732819497585297, 0.052820704877376556, 0.5103903412818909, -0.24518397450447083, -0.2101137638092041, 0.017105376347899437, -0.4156888425350189, 0.40635523200035095, -0.07693131268024445, -0.08200801908969879, 0.021560875698924065, 0.02771669253706932, -0.42189353704452515, 0.14452199637889862, -0.15991081297397614, 0.2335323542356491, 0.11525712162256241, 0.034292880445718765, 0.05049722269177437, -0.08905423432588577, -0.4413537383079529, -0.48222219944000244, -0.016451366245746613, -0.1436118483543396, -0.19107750058174133, 0.16157761216163635, -0.42832595109939575, -0.008051487617194653, -0.36663663387298584, -0.0625191256403923, -0.1186317428946495, 0.0343080535531044, 0.018757356330752373, 0.12525948882102966, -0.17578041553497314, -0.27223268151283264, 0.22418539226055145, 0.5275171995162964, 0.04910985007882118, -0.3530469834804535, 0.595149040222168, 0.24012833833694458, 0.012692264281213284, -0.04702021926641464, 0.11353975534439087, 0.08244230598211288, -0.015471433289349079, 0.10046735405921936, 0.012580144219100475, -0.536268949508667, 0.3304073214530945, 0.445141077041626, -0.19008390605449677, 0.26597851514816284, -0.24250325560569763, 0.13632698357105255, -0.025202054530382156, 0.016454454511404037, -0.24923324584960938, -0.3427087068557739, 0.30715519189834595, 0.03626209869980812, 0.2554854452610016, 0.11608964949846268, 0.08266045153141022, 0.1574559360742569, -0.13646867871284485, 0.047817450016736984, 0.006343930959701538, -0.011840395629405975, 0.012124311178922653, 0.37190669775009155, 0.29062366485595703, -0.18913687765598297, 0.1635441929101944, 0.25408345460891724, 0.000637516553979367, 0.023400327190756798, 0.0033062424045056105, -0.37108010053634644, 0.048701267689466476, 0.07334567606449127, -0.045792341232299805, 0.5803030133247375, 0.31189319491386414, -0.013846984133124352, 0.1654970943927765, 0.1007256731390953, 0.16088369488716125, -0.010884643532335758, -0.020466744899749756, -0.08091286569833755, 0.17549292743206024, 0.3073768615722656, 0.1203598603606224, -0.04187721386551857, 0.21538987755775452, 0.13845142722129822, -0.19830504059791565, -0.03390917554497719, -0.2077614814043045, -0.23050327599048615, -0.22065776586532593, -0.3354877233505249, -0.1023767739534378, -0.4055417478084564, 0.00589021435007453, -0.09672366827726364, 0.18897904455661774, 0.06752640008926392, 0.0023474853951483965, 0.28304269909858704, 0.24024587869644165, -0.17671501636505127, -0.12945665419101715, -0.037017572671175, 0.2873997986316681, 0.20327070355415344, 0.1446809470653534, 0.1542169451713562, 0.10148124396800995, 0.38425594568252563, -0.0276639387011528, -0.0555931031703949, -0.656178891658783, -0.390545129776001, 0.10564075410366058, -0.18663270771503448, 0.16265100240707397, -0.013269594870507717, 0.06125693768262863, 0.03171722963452339, -0.21503767371177673, 0.29022425413131714, 0.368069052696228, -0.14537523686885834, -0.15255817770957947, -0.07114242017269135, 0.04242194443941116, -0.15349319577217102, -0.2626846730709076, -0.25501492619514465, -0.1307687908411026, 0.4938807785511017, -0.21221283078193665, 0.025391710922122, -0.33888769149780273, 0.05905843526124954, -0.1455034613609314, -0.03813963755965233, -0.03733408823609352, -0.2105335146188736, -0.4417388439178467, 0.36334744095802307, -0.10190644860267639, -0.12325141578912735, -0.06221913918852806, -0.11851917952299118, 0.012973564676940441, 0.058217864483594894, -0.08506934344768524, -0.111394003033638, -0.37981200218200684, 0.29918402433395386, -0.05814473330974579, 0.3092566132545471, 0.2840956449508667, 0.06220727413892746, 0.1154545471072197, 0.028177587315440178, -0.4375103712081909, 0.023682551458477974, 0.07762590795755386, 0.29535919427871704, 0.08617234975099564, 0.0952162891626358, -0.18478308618068695, 0.5392610430717468, 0.48551419377326965, 0.20699790120124817, 0.31481075286865234, -0.020761637017130852, 0.2014722377061844, -0.11382999271154404, -0.33594176173210144, -0.15461701154708862, 0.005229635629802942, 0.2537074387073517, 0.0774519294500351, 0.1430758535861969, 0.11399029940366745, -0.363984078168869, -0.30129098892211914, -0.019032061100006104, -0.10521789640188217, -0.09616560488939285, 0.07649645954370499, 0.023400403559207916, -0.10477816313505173, -0.4167272746562958, -0.22125375270843506, 0.07018885016441345, 0.11137054860591888, 0.3068464994430542, -0.030121902003884315, 0.07630772888660431, -0.4565533697605133, -0.19594278931617737, -0.21962961554527283, 0.2435431182384491, 0.11353577673435211, -0.34526526927948, 0.14352142810821533, 0.08393175899982452, -0.2891015410423279, -0.046175744384527206, 0.4688130021095276, 0.004427902866154909, -0.16575706005096436, -0.24155238270759583, -0.33371618390083313, -0.15962043404579163, -0.15414001047611237, 0.2101828157901764, -0.12237987667322159, -0.04281063750386238, 0.7450351715087891, -0.4150358736515045, -0.10631140321493149, 0.21444763243198395, 0.30936896800994873, -0.034021370112895966, -0.28585726022720337, 0.22487588226795197, -0.12651999294757843, -0.2038756012916565, -0.3736381232738495, -0.09187698364257812, -0.09465984255075455, -0.0005783818778581917, -0.31231316924095154, -0.2255401760339737, -0.11069383472204208, 0.41224169731140137, 0.09313317388296127, 0.19797731935977936, 0.0016145308036357164, 0.30679380893707275, 0.10920758545398712, 0.10543737560510635, -0.11847856640815735, 0.7144662737846375, 0.09237371385097504, -0.5906246304512024, -0.3595559895038605, -0.14147458970546722, 0.4458455741405487, -0.15412166714668274, -0.033014435321092606, 0.4973277449607849, -0.39804986119270325, -0.031287819147109985, -0.15360136330127716, 0.0443197526037693, 0.2229011058807373, 0.3378208875656128, -0.351452112197876, -0.20781119167804718, 0.6163510680198669, 0.41502508521080017, -0.0853637158870697, 0.27412769198417664, -0.15440182387828827, -0.08531221747398376, -0.06103382632136345, -0.4421524107456207, 0.7151215672492981, 0.0019197812071070075, 0.22351565957069397, -0.16181562840938568, 0.05170086398720741, 0.42235589027404785, -0.014193414710462093, -0.14071449637413025, 0.044534508138895035, -0.4924369156360626, -0.1345442682504654, -0.03608344867825508, -0.012755438685417175, 0.2731684148311615, -0.364845335483551, 0.38754239678382874, 0.02794768661260605, 0.38135647773742676, -0.18128171563148499, 0.19140473008155823, 0.035678841173648834, 0.0019294635858386755, -0.2923053205013275, 0.07740308344364166, -0.3082008361816406, 0.20188124477863312, 0.03185734152793884, -0.18157711625099182, -0.039376143366098404, -0.2110561728477478, -0.17164765298366547, 0.11502053588628769, 0.021513203158974648, 0.18499383330345154, 0.21588833630084991, -0.1307341456413269, 0.08616150170564651, 0.12181320041418076, 0.17738227546215057, 0.14797644317150116, -0.1574462354183197, -0.18549975752830505, -0.05233733355998993, 0.10658834129571915, -0.3663008511066437, -0.11259089410305023, -0.047898780554533005, 0.018519790843129158, -0.10673173516988754, 0.2390480488538742, 0.254841685295105, 0.0043044802732765675, -0.14859463274478912, -0.020375492051243782, -0.07571833580732346, -0.3721711039543152, -0.3067667484283447, 0.4104665219783783, 0.27653154730796814, -0.1722235530614853, 0.014911497011780739, 0.12024524807929993, -0.15590409934520721, 0.14473257958889008, 0.05854616314172745, -0.11853089183568954, -0.10873626172542572, 0.0966590940952301, 0.21150831878185272, 0.007776046171784401, 0.1847676783800125, -0.06562674790620804, 0.23680491745471954, 0.03243855759501457, 0.10787039995193481, 0.18530255556106567, -0.08266061544418335, 0.0941469669342041, -0.052857302129268646, 0.08648809045553207, -0.0487324558198452, 0.20200930535793304, 0.1860225796699524, 0.3130829334259033, 0.24210983514785767, -0.16591767966747284, -0.3828410804271698, 0.19426976144313812, 0.146808460354805, 0.28599485754966736, 0.0524926520884037, 0.2371545135974884, -0.07722988724708557, 0.586580753326416, -0.24350962042808533, 0.12179674208164215, 0.29389286041259766, 0.16963797807693481, 0.46790462732315063, 0.09200344234704971, -0.14098438620567322, -0.05143183097243309, 0.07164005935192108, -0.11168735474348068, -0.023784317076206207, -0.20983454585075378, -0.19934682548046112, 0.08402425795793533, 0.13052161037921906, -0.03602202609181404, -0.004290057811886072, -0.048514459282159805, 0.33714956045150757, -0.18928459286689758, 0.408326655626297, 0.03165299817919731, 0.05197179317474365, 0.04411053657531738, 0.13563662767410278, -0.160020649433136, -0.4557380676269531, 0.30197572708129883, 0.08251935243606567, -0.08559056371450424, 0.03405795618891716, -0.042730990797281265, -0.11791288107633591, -0.1373351812362671, -0.2232820838689804, -0.19552673399448395, 0.42753180861473083, -0.06267000734806061, 0.004800575785338879, 0.20373331010341644, -0.04068989306688309, 0.15619008243083954, 0.16113746166229248, -0.007436404004693031, -0.13300782442092896, 0.4312368929386139, 0.019197087734937668, 0.1314159482717514, -0.28104832768440247, -0.17228378355503082, 0.21215201914310455, 0.00018405495211482048, 0.11629392951726913, 0.04455407336354256, -0.016912339255213737, 0.38161700963974, -0.11874589323997498, -0.0249924473464489, 0.06805402785539627, 0.2002498060464859, 0.185152068734169, 0.4368988871574402, 0.119672030210495, -0.07754607498645782, 0.08550291508436203, 0.34470105171203613, 0.15283489227294922, -0.06284374743700027, -0.22311486303806305, 0.09509307891130447, -0.035555604845285416, 0.009563303552567959, 0.6225681304931641, -0.18610095977783203, 0.006754503585398197, 0.1668470799922943, 0.02660490944981575, -0.0159047469496727, 0.1713169515132904, 0.3761454224586487, 0.021212056279182434, -0.43073806166648865, 0.1032133400440216, 0.5190815329551697, 0.14202767610549927, -0.21558548510074615, 0.12408602237701416, -0.2345857471227646, -0.1258777678012848, 0.14488404989242554, 0.11144920438528061, -0.5025010108947754, 0.727030336856842, -0.08557729423046112, 0.05867191031575203, 0.020524872466921806, 0.3626759350299835, 0.3423205018043518, 0.0683147981762886, 0.03190002217888832, 0.1234927773475647, 0.2584231495857239, -0.3591666519641876, -0.012800713069736958, 0.42880526185035706, 0.13115987181663513, 0.06507737189531326, 0.11561061441898346, 0.36479681730270386, -0.039297349750995636, -0.11338282376527786, 0.15241676568984985, -0.14056681096553802, -0.14834433794021606, -0.2890031635761261, 0.1610238403081894, 0.1670106053352356, -0.0702814906835556, 0.05207709223031998, -0.5179768204689026, 0.13584300875663757, -0.6229061484336853, 0.22714152932167053, 0.00512093398720026, -0.26636314392089844, -0.12378427386283875, -0.12382691353559494, -0.2615605890750885, -0.4799642562866211, 0.537386953830719, 0.12918990850448608, -0.031378623098134995, -0.08031024038791656, 0.09652043133974075, -0.06292015314102173, 0.07929281890392303, 0.3690899908542633, -0.072423554956913, -0.24623730778694153, -0.12022125720977783, -0.4041546583175659, -0.020199455320835114, 0.05932632088661194, -0.056592442095279694, -0.26894673705101013, 0.0749182477593422, 0.10753463208675385, 0.09451993554830551, 0.14191584289073944, 0.059348493814468384, 0.36132529377937317, 0.01939309574663639, -0.3074984848499298, -0.18176154792308807, 0.08813086152076721, 0.07710626721382141, 0.2435367852449417, -0.14723417162895203, 0.3143063187599182, 0.15377002954483032, -0.0558648519217968, -0.13731259107589722, 0.24518002569675446, 0.06641009449958801, -0.35039350390434265, 0.16851910948753357, 0.12776227295398712, 0.3754202425479889, -0.35414835810661316, 0.1319279670715332, 0.44462525844573975, 0.03218049928545952, -0.32054421305656433, 0.24907414615154266, 0.15029741823673248, 0.08395077288150787, -0.43840673565864563, 0.13903950154781342, 0.13228072226047516, -0.07076054811477661, -0.046399060636758804, -0.4495658576488495, -0.233536034822464, 0.18508625030517578, 0.024340873584151268, -0.05965311452746391, 0.16904258728027344, 0.5240694880485535, -0.07948878407478333, -0.028158780187368393, 0.14598813652992249, -0.19592292606830597, 0.435680627822876, 0.06277246028184891, -0.1813950091600418, -0.18251177668571472, -0.2807185649871826, 0.20144744217395782, -0.14357233047485352, -0.4898807108402252, -0.16365018486976624, 0.2929658889770508, -0.004986489191651344, 0.304071843624115, 0.3011699318885803, 0.027486151084303856, -0.11438196897506714, -0.2004225105047226, 0.35415735840797424, 0.21502627432346344, -0.23493540287017822, 0.04300811141729355, -0.2074889838695526 ]
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.3885657787322998, -0.4940948486328125, -0.14069369435310364, 0.018540741875767708, -0.022465642541646957, 0.27985066175460815, -0.1746797114610672, 0.32268837094306946, -0.051088202744722366, 0.008893209509551525, -0.1925199180841446, 0.6096801161766052, 0.09996660053730011, 0.5465124249458313, 0.0698016881942749, -0.11272229254245758, 0.07456491887569427, 0.16883504390716553, -0.4552707076072693, 0.17784929275512695, 0.06204509362578392, -0.059489380568265915, -0.03345848619937897, -0.0982746109366417, -0.0798538476228714, 0.28181201219558716, -0.1274133175611496, -0.2967354357242584, -0.23587776720523834, 0.014507855288684368, 0.27743276953697205, 0.2345999926328659, -0.1273668259382248, 0.252355694770813, -0.00010824967466760427, 0.11773358285427094, 0.051377542316913605, -0.1531064808368683, 0.25233373045921326, -0.4381471872329712, -0.19703291356563568, -0.4797194302082062, -0.16011394560337067, -0.12727993726730347, -0.10807549208402634, -0.18715202808380127, -0.2989044189453125, -0.32432785630226135, 0.2503192722797394, -0.12710356712341309, 0.13258519768714905, -0.08802048861980438, 0.1223926767706871, -0.01371406577527523, 0.2999749481678009, 0.3637711703777313, -0.060215771198272705, -0.1029030829668045, 0.5676068663597107, 0.009276804514229298, 0.4451415538787842, 0.21750466525554657, -0.12305141985416412, -0.007324976846575737, 0.3124162256717682, 0.048622094094753265, -0.03804168105125427, -0.26310694217681885, 0.07100063562393188, 0.24786290526390076, 0.5259120464324951, -0.1586417704820633, -0.09918215125799179, 0.06219327822327614, 0.03165120631456375, -0.005968267098069191, -0.1653365194797516, 0.2786554992198944, 0.04105747863650322, 0.04462433233857155, -0.5148202180862427, -0.44294849038124084, 0.09489524364471436, 0.16568534076213837, -0.07675599306821823, 0.2319711148738861, 0.03222639486193657, 0.1849225014448166, -0.21627728641033173, -0.24057935178279877, 0.2670074701309204, -0.4301859140396118, -0.05719533935189247, 0.33269622921943665, -0.2123255729675293, -0.35012516379356384, -0.25114956498146057, -0.44392359256744385, 0.6490116715431213, -0.020099390298128128, 0.09902235120534897, -0.03403981402516365, -0.3805943429470062, 0.2804829478263855, 0.23750117421150208, 0.291718989610672, 0.31732773780822754, 0.1898629367351532, -0.00871057529002428, -0.41774114966392517, -0.30304887890815735, 0.0329582653939724, 0.4209113121032715, -0.2382076233625412, -0.15695127844810486, -0.1717442125082016, 0.4447453022003174, -0.3677543103694916, 0.21030834317207336, -0.520278811454773, -0.08816394209861755, -0.14208044111728668, -0.22620519995689392, -0.09582187980413437, 0.17505386471748352, 0.048922568559646606, -0.2405046671628952, 0.16767072677612305, 0.3340085446834564, -0.29386723041534424, -0.03701800853013992, -0.04225120320916176, 0.16030339896678925, 0.047182075679302216, -0.001543526304885745, -0.17712415754795074, 0.0949380174279213, 0.5621641278266907, -0.3058844208717346, 0.18299107253551483, 0.3147556185722351, -0.10400085151195526, -0.019523557275533676, -0.2901398539543152, 0.36351948976516724, 0.08827025443315506, 0.034552499651908875, 0.27110737562179565, -0.20682455599308014, 0.12997041642665863, -0.4372510015964508, -0.14487431943416595, 0.1334376037120819, 0.23797711730003357, 0.019179563969373703, -0.06719204038381577, -0.20394368469715118, 0.5709991455078125, 0.046818748116493225, -0.27144497632980347, -0.1705268770456314, 0.5460542440414429, -0.23745538294315338, -0.24886645376682281, -0.0948711410164833, -0.034384358674287796, -0.3212694823741913, -0.33358973264694214, 0.06428550183773041, -0.027408016845583916, -0.22870856523513794, 0.33756881952285767, -0.362452894449234, 0.057128895074129105, -0.13923946022987366, 0.04103904217481613, 0.5528926849365234, -0.09430970996618271, -0.3914400339126587, 0.5118290185928345, -0.00719803711399436, -0.14657999575138092, -0.11569869518280029, 0.2643766403198242, 0.20044775307178497, 0.17186172306537628, 0.10766509175300598, 0.5094727277755737, -0.2747670114040375, -0.09660899639129639, -0.018908219411969185, -0.4181537628173828, 0.4239625036716461, -0.13488918542861938, -0.057522065937519073, -0.047415491193532944, 0.15437395870685577, -0.4866878390312195, 0.15419664978981018, -0.10801968723535538, 0.26453229784965515, 0.10894681513309479, 0.017614467069506645, -0.17334184050559998, -0.07625520974397659, -0.3590361773967743, -0.39846092462539673, -0.10789448767900467, -0.3227749466896057, -0.1823049932718277, 0.08472677320241928, -0.3686957061290741, -0.011087623424828053, -0.48264452815055847, -0.04005775973200798, 0.008872834034264088, 0.09025639295578003, -0.026337463408708572, 0.005043848417699337, -0.23659111559391022, -0.15609188377857208, 0.13329264521598816, 0.5647340416908264, -0.04983135685324669, -0.20557966828346252, 0.562694787979126, 0.21064558625221252, 0.03366062045097351, 0.02257283590734005, -0.047239482402801514, 0.1355433613061905, -0.022467005997896194, -0.049245066940784454, 0.05923071131110191, -0.4545077085494995, 0.301439493894577, 0.38400280475616455, -0.2035786509513855, 0.2649068236351013, -0.3029325604438782, 0.14293771982192993, 0.06987889856100082, 0.06611151993274689, -0.2787415683269501, -0.29386764764785767, 0.23005416989326477, 0.11717178672552109, 0.20257052779197693, 0.08605656772851944, 0.08408969640731812, 0.11745914071798325, -0.17694391310214996, 0.06895434856414795, -0.04743165895342827, -0.11712953448295593, -0.03028010204434395, 0.2370966076850891, 0.4099990427494049, 0.02552291750907898, 0.23721946775913239, 0.24713589251041412, 0.0381258986890316, 0.13965924084186554, -0.07458315789699554, -0.3314549922943115, -0.0346246212720871, -0.018752694129943848, -0.0686756893992424, 0.5103158354759216, 0.2540941834449768, -0.163612961769104, 0.11038988083600998, 0.24925640225410461, 0.23758859932422638, -0.014033499173820019, -0.10935363173484802, 0.09522417187690735, 0.13630405068397522, 0.3759465515613556, 0.16348880529403687, 0.10283530503511429, 0.11592118442058563, 0.28558146953582764, -0.16649502515792847, 0.11353392153978348, -0.3573133647441864, -0.22308357059955597, -0.12970693409442902, -0.2990349531173706, -0.019895950332283974, -0.28569185733795166, -0.017876027151942253, -0.042325522750616074, 0.07605763524770737, 0.08207990229129791, 0.05328797549009323, 0.30128413438796997, 0.09082622826099396, -0.12701089680194855, -0.1823030710220337, 0.045442845672369, 0.12710127234458923, 0.188129723072052, 0.18795551359653473, 0.14355552196502686, 0.15824882686138153, 0.3156921863555908, 0.04458007588982582, -0.018411381170153618, -0.4888227581977844, -0.39234504103660583, 0.12438158690929413, -0.000012847990547015797, -0.02143384888768196, -0.05143493041396141, -0.06979500502347946, 0.040310900658369064, -0.16143855452537537, 0.11528824269771576, 0.2696067988872528, -0.16471847891807556, -0.23731572926044464, -0.15650755167007446, -0.011466898955404758, -0.11034050583839417, -0.3104778230190277, -0.2459210753440857, -0.20527784526348114, 0.1822141706943512, -0.21876412630081177, 0.08298464864492416, -0.5726177096366882, 0.08957940340042114, -0.25237926840782166, 0.04196227714419365, -0.07522118091583252, -0.13153263926506042, -0.36839619278907776, 0.38467836380004883, -0.13100716471672058, -0.18365974724292755, -0.0639636367559433, -0.07959235459566116, 0.13819006085395813, 0.13391412794589996, -0.023351304233074188, 0.015228167176246643, -0.2839077413082123, 0.23967598378658295, -0.10257383435964584, 0.1269344985485077, 0.24588952958583832, 0.22177529335021973, 0.053256768733263016, 0.01953442208468914, -0.32573482394218445, -0.010171019472181797, 0.12430467456579208, 0.25866812467575073, 0.1649141013622284, -0.0023142569698393345, -0.12664125859737396, 0.47597092390060425, 0.41021060943603516, 0.0864422619342804, 0.2461431920528412, 0.06902658939361572, -0.031046368181705475, -0.07208462804555893, -0.2650803327560425, -0.1932799369096756, -0.027061766013503075, 0.2228744477033615, 0.007795106619596481, -0.02002280205488205, -0.2028656005859375, -0.4187779128551483, -0.38878902792930603, -0.10321763157844543, -0.09018294513225555, -0.02483624406158924, 0.022597797214984894, 0.11729281395673752, -0.08445551246404648, -0.42406654357910156, -0.26812005043029785, 0.0643288865685463, 0.17871889472007751, 0.1185799390077591, -0.01686345785856247, 0.0371461920440197, -0.4187367558479309, -0.16159778833389282, -0.037583500146865845, 0.2943127155303955, 0.20559260249137878, -0.34507685899734497, 0.18807674944400787, 0.09888236969709396, -0.3641398549079895, -0.07528836280107498, 0.3639462888240814, -0.006733431946486235, -0.027220433577895164, -0.2934649884700775, -0.15505653619766235, -0.01819378137588501, -0.1162450835108757, 0.2589885890483856, 0.012160721234977245, -0.041890889406204224, 0.6412329077720642, -0.3157120645046234, -0.03949708864092827, 0.1368405669927597, 0.18561352789402008, -0.0850633755326271, -0.24687734246253967, 0.27098220586776733, -0.07775934040546417, -0.24211041629314423, -0.4657278060913086, -0.06929346919059753, -0.14973460137844086, 0.06149262562394142, -0.4079432487487793, -0.21143120527267456, -0.04600793868303299, 0.33544376492500305, 0.12442318350076675, 0.17652617394924164, -0.1636611521244049, 0.1690291166305542, -0.045660149306058884, 0.10655594617128372, -0.14330418407917023, 0.627271294593811, 0.267029345035553, -0.4620830714702606, -0.2423049658536911, -0.25832226872444153, 0.4511784613132477, -0.12596125900745392, 0.05801989138126373, 0.4277215600013733, -0.4641081690788269, -0.1543423980474472, 0.05129801854491234, -0.09327070415019989, 0.09504421055316925, 0.25460919737815857, -0.4261365830898285, -0.15742728114128113, 0.5728216767311096, 0.3493756055831909, -0.15676745772361755, 0.31155258417129517, -0.44691985845565796, -0.08284921199083328, 0.1440858691930771, -0.30159980058670044, 0.8176680207252502, 0.03916803002357483, 0.06796561181545258, -0.3305320143699646, 0.10541541874408722, 0.18367528915405273, -0.10539715737104416, -0.0440063439309597, 0.052738022059202194, -0.3161376416683197, -0.13744038343429565, 0.02658020704984665, -0.055686235427856445, 0.4730745255947113, -0.4407375454902649, 0.34858134388923645, 0.04691682755947113, 0.3959118723869324, -0.12656770646572113, 0.2334700971841812, 0.19052959978580475, 0.12814342975616455, -0.150176540017128, 0.08955755084753036, -0.3499033451080322, 0.09662623703479767, 0.06048932671546936, -0.30201590061187744, -0.0989617258310318, -0.12326429784297943, -0.08569678664207458, 0.12039171904325485, 0.04271560534834862, 0.36161714792251587, 0.029958289116621017, -0.06614352762699127, 0.04789404198527336, 0.09816049784421921, -0.10541609674692154, 0.12613831460475922, -0.08190584182739258, -0.15356484055519104, 0.19321982562541962, 0.1397264152765274, -0.24613383412361145, -0.05195457488298416, -0.07115498185157776, -0.08343569189310074, -0.19910813868045807, 0.3462420403957367, 0.13200031220912933, -0.08131999522447586, -0.15922319889068604, -0.05245915427803993, 0.0770973339676857, -0.29198867082595825, -0.2979786992073059, 0.5363788604736328, 0.08958813548088074, -0.07240334898233414, 0.05676351860165596, 0.0446150042116642, -0.10539396107196808, 0.234903022646904, 0.09379618614912033, -0.2018086165189743, -0.05449381098151207, 0.11763729155063629, 0.4531322121620178, 0.04683804139494896, 0.08286593109369278, -0.16549062728881836, 0.2697141468524933, -0.02224837988615036, 0.10739263892173767, 0.053289156407117844, -0.057648707181215286, 0.05454323813319206, -0.23324979841709137, 0.06948208063840866, 0.09103028476238251, 0.12022822350263596, 0.16066840291023254, 0.5604799389839172, 0.13232725858688354, -0.11575967073440552, -0.3453601896762848, 0.12372791022062302, 0.23957648873329163, 0.24707123637199402, -0.03657421097159386, 0.19851920008659363, -0.07935594767332077, 0.6873183846473694, -0.29691511392593384, 0.13182930648326874, 0.3975127935409546, 0.3426423966884613, 0.31987547874450684, 0.17962540686130524, -0.37512537837028503, -0.0741947814822197, 0.12799708545207977, -0.06545943021774292, -0.02951750159263611, -0.2420738786458969, -0.06778416037559509, 0.08260176330804825, 0.09089513123035431, 0.05789623782038689, -0.11341345310211182, -0.22659465670585632, 0.26894187927246094, -0.08601852506399155, 0.33764997124671936, 0.010787167586386204, 0.059125300496816635, 0.04666956886649132, 0.14435389637947083, -0.27343177795410156, -0.43161678314208984, 0.34972572326660156, -0.02072182297706604, -0.08650156855583191, -0.03906244412064552, -0.010906119830906391, -0.02804049476981163, -0.12534934282302856, -0.16890862584114075, -0.28588002920150757, 0.37225061655044556, 0.07131377607584, 0.05683908611536026, 0.16907331347465515, 0.019676227122545242, 0.18266309797763824, -0.06164766475558281, -0.09133557230234146, -0.23691897094249725, 0.39421743154525757, -0.12189726531505585, 0.20070011913776398, -0.2924509048461914, -0.23480668663978577, 0.29317742586135864, -0.025979897007346153, 0.14501479268074036, -0.06361392140388489, 0.010319621302187443, 0.36020365357398987, -0.08894633501768112, 0.06619424372911453, 0.13044090569019318, 0.09126190841197968, 0.18413984775543213, 0.4665001332759857, 0.1780335009098053, -0.05508682504296303, 0.013653457164764404, 0.20357617735862732, 0.1864256113767624, -0.004826988093554974, -0.17009440064430237, 0.161171555519104, 0.17105357348918915, -0.051001083105802536, 0.7275786995887756, -0.011687571182847023, -0.0057892389595508575, 0.24974440038204193, -0.09122857451438904, 0.06941230595111847, 0.44474348425865173, 0.1390615552663803, 0.09929905831813812, -0.43902772665023804, 0.13377892971038818, 0.4352567493915558, 0.1393813192844391, -0.06998206675052643, -0.04233398288488388, -0.2399268001317978, -0.1427190899848938, 0.13668985664844513, 0.06974770873785019, -0.28331348299980164, 0.8152461647987366, 0.043185826390981674, 0.10117479413747787, 0.20259904861450195, 0.44243690371513367, 0.30671897530555725, 0.21695566177368164, 0.0006864701281301677, 0.007977264001965523, 0.2020900994539261, -0.4203091263771057, -0.06748440116643906, 0.34938570857048035, 0.026832934468984604, 0.18260295689105988, 0.0041169230826199055, 0.3164588510990143, 0.06586913019418716, -0.18194226920604706, 0.1106707900762558, -0.15675613284111023, -0.0701431930065155, -0.34885111451148987, 0.0923331156373024, 0.21508245170116425, -0.07967456430196762, 0.0480160228908062, -0.38530415296554565, 0.144950732588768, -0.36667123436927795, 0.14610303938388824, 0.08953791111707687, -0.30512794852256775, -0.04725918173789978, -0.13268080353736877, -0.17274701595306396, -0.6433354020118713, 0.5588116645812988, 0.11138682812452316, -0.03298620879650116, -0.11048591136932373, 0.11036182194948196, -0.1595531553030014, 0.09113143384456635, 0.2793372571468353, -0.12911847233772278, -0.22310557961463928, -0.12688179314136505, -0.37206295132637024, 0.11552105844020844, 0.04549280181527138, -0.022807998582720757, -0.22744667530059814, 0.14291705191135406, 0.2188253551721573, 0.18879102170467377, 0.11715371906757355, -0.026593588292598724, 0.32924798130989075, 0.1265396922826767, -0.33002862334251404, -0.0987650528550148, 0.11611510813236237, 0.09715553373098373, 0.27599504590034485, -0.24988703429698944, 0.3398551344871521, 0.025644216686487198, 0.02599477954208851, -0.25971925258636475, 0.0440509207546711, 0.2548988461494446, -0.20906291902065277, 0.23958054184913635, 0.07023695111274719, 0.24903754889965057, -0.45707741379737854, 0.13630226254463196, 0.5659577250480652, 0.10625403374433517, -0.24466998875141144, 0.2806098759174347, 0.30504801869392395, -0.03164977207779884, -0.4182460606098175, 0.3034989535808563, 0.19393323361873627, -0.11936569958925247, -0.20736496150493622, -0.35726839303970337, -0.20853184163570404, 0.03877716884016991, -0.0009304896811954677, -0.010252781212329865, 0.033276766538619995, 0.3955831229686737, -0.015534402802586555, -0.05191901698708534, 0.13677167892456055, -0.13027174770832062, 0.35348042845726013, 0.132119283080101, -0.23963288962841034, -0.1321885734796524, -0.288209468126297, 0.13608600199222565, -0.03683069720864296, -0.34843888878822327, -0.24284282326698303, 0.345930814743042, -0.011685727164149284, 0.3151520788669586, 0.2930344343185425, 0.02311183325946331, -0.0914192795753479, -0.20506222546100616, 0.19213008880615234, 0.13763383030891418, -0.2124319076538086, -0.1246582418680191, -0.25917142629623413 ]
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.29035985469818115, -0.29742860794067383, 0.11324416846036911, 0.19037167727947235, 0.1661582738161087, -0.05221062898635864, 0.3321135342121124, 0.23036378622055054, 0.29939576983451843, 0.2801509499549866, 0.016716644167900085, 0.33768630027770996, -0.11104466766119003, 0.21741409599781036, 0.0041828160174191, -0.1060657650232315, -0.11580175161361694, -0.1348116248846054, -0.3830088675022125, 0.010605622082948685, -0.2922792136669159, 0.32952985167503357, -0.3364180326461792, 0.17858149111270905, -0.644775927066803, -0.09804922342300415, -0.048073314130306244, 0.2914251983165741, 0.0867961049079895, -0.08384139090776443, 0.09129629284143448, -0.03556610643863678, 0.012487753294408321, 0.4959757924079895, -0.00011002035171259195, 0.0433959998190403, 0.20303772389888763, -0.082920141518116, -0.06672537326812744, -0.4173734784126282, 0.07137882709503174, -0.03901207074522972, 0.07075818628072739, -0.05480744689702988, 0.15044915676116943, 0.17994895577430725, 0.1406906247138977, -0.08047185838222504, 0.2613462507724762, 0.11551515012979507, 0.1944083720445633, 0.5661993622779846, 0.11443610489368439, -0.07613557577133179, -0.1252591460943222, 0.21574826538562775, -0.032217249274253845, 0.26608607172966003, 0.11582949757575989, -0.16647401452064514, -0.2567041516304016, 0.2081437110900879, -0.009197346866130829, 0.28516969084739685, -0.15535292029380798, 0.3262344002723694, 0.09002940356731415, -0.2589210569858551, 0.1284051239490509, 0.39797309041023254, 0.07846304774284363, -0.23205654323101044, -0.32317182421684265, -0.068021759390831, -0.08543535321950912, -0.17135865986347198, 0.08775380998849869, 0.16609154641628265, -0.1176939606666565, 0.08516815304756165, -0.20291674137115479, 0.13196930289268494, 0.22070392966270447, 0.10398423671722412, 0.23207604885101318, 0.3622334897518158, -0.03134199231863022, 0.36862102150917053, 0.2795688211917877, -0.1373411864042282, -0.2073918879032135, -0.18688896298408508, 0.07206884026527405, 0.06321791559457779, -0.04581987485289574, -0.14083833992481232, 0.04550755396485329, -0.09475620090961456, 0.07365652918815613, -0.17858247458934784, -0.17664660513401031, 0.1712975949048996, -0.2389744520187378, 0.3193744719028473, 0.3000167906284332, -0.127212792634964, -0.09902681410312653, 0.20270320773124695, 0.4027111828327179, -0.07397212833166122, -0.2251327782869339, 0.11599518358707428, 0.3312562108039856, -0.3447967767715454, -0.10419414192438126, 0.15643316507339478, 0.32922351360321045, -0.11150743067264557, -0.14969752728939056, -0.19455048441886902, -0.13399115204811096, -0.17258426547050476, -0.010302082635462284, 0.29037463665008545, 0.059274058789014816, 0.34611940383911133, 0.05660810321569443, 0.1878039538860321, -0.5467138290405273, -0.08292911946773529, -0.33981087803840637, 0.21892674267292023, -0.1916935294866562, 0.06260725110769272, 0.22208309173583984, 0.26731303334236145, 0.3550165593624115, 0.19946978986263275, -0.03712690249085426, -0.15231116116046906, 0.23511949181556702, -0.24940448999404907, -0.1287899762392044, 0.19256317615509033, 0.16525523364543915, 0.28869855403900146, 0.2680864632129669, -0.30802521109580994, -0.06359369307756424, 0.07830500602722168, -0.23705454170703888, -0.2890693247318268, -0.0729566439986229, 0.13964979350566864, -0.014290773309767246, 0.12578906118869781, -0.16990919411182404, 0.04475569352507591, 0.4315927028656006, -0.04975840821862221, -0.1882437914609909, -0.29772740602493286, -0.3939261734485626, -0.2207493782043457, -0.0378478579223156, 0.37622082233428955, -0.23416541516780853, -0.1520397961139679, 0.19775886833667755, -0.12353719770908356, 0.5048840045928955, 0.5401946902275085, -0.24759256839752197, -0.08227613568305969, -0.1492328941822052, 0.6606737971305847, 0.03607159107923508, 0.10968562960624695, -0.2572185695171356, 0.20260918140411377, -0.09889473021030426, -0.11149969696998596, -0.08419258892536163, 0.03705037012696266, -0.3572830855846405, -0.03266756981611252, 0.4061434864997864, 0.13512355089187622, 0.05737420916557312, 0.19235679507255554, -0.2711721658706665, -0.3141677677631378, 0.1697528213262558, -0.05447738617658615, 0.06852931529283524, -0.2757887542247772, -0.1262003779411316, -0.08963224291801453, 0.43805524706840515, -0.22410741448402405, 0.07926025986671448, -0.0038886757101863623, 0.16275878250598907, -0.051540471613407135, -0.020110655575990677, -0.23383797705173492, -0.5796083807945251, 0.2878185212612152, -0.22332996129989624, 0.2118987739086151, -0.0640440508723259, -0.13443537056446075, 0.2768062353134155, -0.01697929948568344, -0.32596978545188904, -0.0686185359954834, 0.07566086947917938, 0.07221771031618118, 0.05090346559882164, -0.18227259814739227, -0.08427759259939194, -0.11655879020690918, -0.10495425015687943, -0.014996705576777458, -0.4686056673526764, 0.04257364198565483, -0.40373295545578003, -0.4181523621082306, -0.1895165592432022, 0.2076246589422226, 0.10675142705440521, -0.00686262734234333, -0.11716973781585693, 0.13696670532226562, 0.15026162564754486, -0.04611055552959442, -0.049514561891555786, 0.05626532807946205, -0.019087351858615875, -0.09612823277711868, 0.021798549219965935, 0.21985651552677155, 0.1103200763463974, -0.1780937761068344, -0.21470580995082855, 0.4751459062099457, 0.028406508266925812, 0.26987338066101074, 0.04167736694216728, 0.09579913318157196, 0.2242286652326584, 0.041359588503837585, 0.13225431740283966, -0.17092716693878174, 0.16770946979522705, 0.17140649259090424, 0.16703228652477264, 0.09132000803947449, -0.23927146196365356, 0.03952169790863991, 0.5964305996894836, 0.20254947245121002, 0.41198477149009705, 0.008131231181323528, -0.20590661466121674, -0.13738863170146942, -0.19424565136432648, 0.0325799286365509, 0.6064074635505676, 0.16130051016807556, 0.06438589096069336, 0.0018841034034267068, -0.12506930530071259, -0.11863698810338974, 0.012187284417450428, -0.015713313594460487, 0.038368985056877136, 0.13910681009292603, 0.11017747223377228, -0.0765564814209938, -0.3033149242401123, -0.103117935359478, 0.010304509662091732, 0.31846776604652405, -0.3177975118160248, 0.014538937248289585, -0.33260488510131836, 0.47298163175582886, -0.23475025594234467, 0.00974515825510025, -0.19180360436439514, -0.2922724485397339, -0.17370353639125824, 0.36885297298431396, -0.22110958397388458, 0.1546906977891922, 0.12780895829200745, -0.2074626237154007, -0.10400570183992386, 0.23589089512825012, 0.07289507240056992, -0.07714338600635529, -0.2809195816516876, -0.001913728192448616, 0.4048877954483032, -0.04306638240814209, 0.047123830765485764, 0.15361228585243225, -0.25862544775009155, -0.055387310683727264, -0.13959863781929016, 0.07913249731063843, -0.07616765052080154, 0.22843550145626068, 0.29757434129714966, 0.2531302869319916, -0.020326292142271996, -0.30279040336608887, 0.27819889783859253, -0.29911670088768005, -0.1905633509159088, -0.0421643927693367, 0.07795358449220657, -0.11819015443325043, -0.36455008387565613, -0.3952236771583557, -0.459189772605896, -0.33458802103996277, 0.40666335821151733, -0.059952262789011, 0.16278167068958282, 0.2841714322566986, 0.17496515810489655, 0.2511923313140869, 0.12706580758094788, -0.17673218250274658, -0.288362592458725, 0.1619468629360199, 0.22296682000160217, 0.0186423622071743, -0.2608918249607086, -0.04888389632105827, -0.16836223006248474, -0.04116702452301979, -0.20991860330104828, -0.161953866481781, 0.06790860742330551, -0.41853711009025574, 0.25062233209609985, 0.10129481554031372, 0.29873356223106384, 0.6218903660774231, 0.2733479142189026, -0.1571442037820816, -0.04585862159729004, -0.26764217019081116, 0.17666848003864288, 0.20726755261421204, 0.2516288757324219, -0.004411990754306316, 0.1994469165802002, -0.009048694744706154, 0.7935587167739868, 0.25887659192085266, -0.2274356484413147, 0.2747081220149994, 0.0024312324821949005, -0.17757776379585266, -0.08380817621946335, -0.15732985734939575, -0.0635199025273323, -0.32327085733413696, 0.10696811228990555, 0.22163324058055878, -0.11394830048084259, -0.17900824546813965, 0.05172136425971985, 0.15031282603740692, -0.09146176278591156, -0.29321035742759705, 0.49177733063697815, 0.20861589908599854, -0.10759876668453217, 0.057407934218645096, -0.0566323958337307, -0.12717470526695251, 0.04057282581925392, -0.08755914121866226, 0.014341583475470543, 0.011015718802809715, -0.10769937932491302, -0.17657533288002014, -0.2057752013206482, -0.5075409412384033, 0.5035902261734009, 0.1288684904575348, 0.30688878893852234, -0.10782173275947571, -0.20956951379776, -0.0616324283182621, -0.08288523554801941, 0.8502634167671204, -0.385090172290802, 0.010038291104137897, 0.11936957389116287, -0.23916266858577728, -0.25144144892692566, -0.2370394915342331, -0.27663224935531616, 0.37880468368530273, 0.32121074199676514, 0.49166223406791687, -0.23725968599319458, -0.10248997807502747, 0.3546542525291443, 0.01738756150007248, -0.13819268345832825, -0.30413389205932617, -0.34893229603767395, -0.24448177218437195, -0.45699745416641235, -0.07686236500740051, 0.2236947864294052, 0.14624644815921783, -0.17811381816864014, 0.05691760405898094, -0.0031950913835316896, -0.24901369214057922, 0.2492816299200058, 0.025196025148034096, 0.15518029034137726, 0.20632697641849518, 0.006600942928344011, -0.0015974091365933418, 0.2242501825094223, -0.162924125790596, 0.2497965395450592, -0.1691094934940338, 0.007037966046482325, 0.294501394033432, -0.25296786427497864, 0.30812275409698486, 0.1772133857011795, 0.05884689465165138, 0.32149067521095276, 0.21851696074008942, 0.3157068192958832, -0.07874738425016403, 0.11289696395397186, 0.321444571018219, 0.2550255060195923, -0.15212233364582062, -0.27017295360565186, 0.5763701796531677, 0.20699132978916168, 0.07110727578401566, 0.2796458899974823, -0.28950875997543335, -0.2001238614320755, 0.19523926079273224, -0.08531101793050766, 0.8592362403869629, -0.033453568816185, 0.13657523691654205, 0.10396295040845871, 0.040141765028238297, 0.39631548523902893, 0.18848726153373718, 0.1457999050617218, -0.4285918176174164, 0.019971946254372597, 0.0063636633567512035, -0.15615858137607574, 0.06998034566640854, 0.1950126737356186, -0.47181108593940735, 0.39893755316734314, -0.15402467548847198, -0.1372060626745224, -0.020968882367014885, 0.260549396276474, 0.04448738694190979, -0.2674718499183655, 0.09877457469701767, 0.10683055967092514, -0.09737308323383331, 0.25099825859069824, 0.09816917777061462, -0.015407628379762173, 0.07682665437459946, -0.3066435754299164, -0.3827337920665741, 0.11944496631622314, -0.21196617186069489, 0.5681124329566956, 0.26543015241622925, 0.11764320731163025, 0.33497539162635803, 0.14744317531585693, 0.004299052059650421, 0.12446627020835876, -0.12848712503910065, -0.013692967593669891, 0.030049724504351616, 0.12238268554210663, -0.21383342146873474, -0.01973154954612255, 0.2193782478570938, 0.03805423527956009, -0.39367958903312683, -0.1613597571849823, -0.08267194777727127, 0.06409497559070587, -0.14606615900993347, 0.028433917090296745, 0.023979805409908295, -0.22338220477104187, -0.4673129916191101, 0.060595009475946426, -0.35974252223968506, -0.23938950896263123, 0.10978494584560394, -0.025140296667814255, -0.42065998911857605, 0.23207128047943115, 0.09840693324804306, -0.2648564875125885, 0.09744785726070404, 0.4654234051704407, 0.14275766909122467, 0.393829882144928, 0.6578121781349182, 0.48163267970085144, -0.1619137078523636, -0.21772810816764832, -0.13783332705497742, 0.2559014558792114, -0.5192019939422607, 0.26362496614456177, 0.1261717677116394, -0.15654295682907104, -0.024752939119935036, 0.366733193397522, 0.04229258745908737, 0.2563857436180115, -0.2222348302602768, -0.28466033935546875, -0.43234172463417053, 0.041218314319849014, -0.012456133961677551, 0.15849082171916962, 0.037732768803834915, 0.4392099678516388, 0.07252226024866104, 0.3446776866912842, -0.31660282611846924, 0.10158953070640564, -0.4592559039592743, 0.1270502209663391, 0.08695463091135025, -0.38849902153015137, 0.007179941050708294, 0.10283990949392319, 0.10863649100065231, 0.3090004324913025, -0.2994247078895569, -0.2348470836877823, -0.2264029085636139, 0.07228893786668777, -0.06925470381975174, -0.05940123647451401, 0.2124277502298355, 0.2266753613948822, -0.032950907945632935, -0.17607331275939941, -0.007588061038404703, 0.0521184466779232, -0.01044590026140213, 0.14747920632362366, 0.21945546567440033, 0.019567614421248436, -0.11889573186635971, 0.004781033843755722, -0.24073916673660278, 0.030295200645923615, 0.14272671937942505, 0.012420101091265678, 0.14593854546546936, 0.06743402779102325, -0.13457927107810974, -0.17718173563480377, 0.08095507323741913, 0.13594475388526917, -0.19076523184776306, -0.35520434379577637, -0.21116535365581512, -0.1962963491678238, 0.2878005802631378, 0.17502157390117645, -0.1338813155889511, 0.04252936318516731, 0.07110781967639923, 0.22949397563934326, -0.3894510567188263, 0.10095968097448349, 0.31593477725982666, -0.08129806816577911, 0.24176357686519623, 0.23468075692653656, -0.10673296451568604, 0.1655511111021042, -0.2935243248939514, 0.12670879065990448, 0.002271557692438364, -0.4911995530128479, -0.009272472001612186, 0.09050729125738144, -0.12721151113510132, 0.1393159180879593, 0.3981228172779083, -0.043810829520225525, 0.218008890748024, 0.1734301745891571, -0.029528586193919182, 0.28618666529655457, -0.3371935784816742, 0.1603487879037857, 0.04284459352493286, -0.61673903465271, 0.2229510247707367, 0.30427178740501404, -0.15452806651592255, 0.21044577658176422, -0.03072505258023739, 0.3675806522369385, -0.5919649004936218, -0.19598495960235596, -0.08513803035020828, 0.2790292501449585, -0.3977418839931488, -0.4198273718357086, -0.03246704861521721, -0.05472412332892418, -0.21797960996627808, 0.057403381913900375, -0.07103037089109421, 0.13673201203346252, 0.34713152050971985, 0.021596234291791916, -0.14455582201480865, -0.348792165517807, -0.12606829404830933, -0.012695420533418655, 0.1340654194355011, -0.295692503452301, 0.06823643296957016, 0.2749168276786804, -0.04596341401338577, -0.5047228336334229, 0.22283637523651123, 0.5591912269592285, 0.39883583784103394, -0.3692152202129364, 0.07257484644651413, -0.039594218134880066, 0.061885662376880646, -0.10447011142969131, 0.07688053697347641, 0.09609455615282059, 0.1491696834564209, 0.22303076088428497, 0.1165979728102684, -0.20960406959056854, -0.08218834549188614, 0.12267943471670151, 0.3338046371936798, 0.05177924782037735, 0.4257688522338867, -0.09363184124231339, -0.22333115339279175, -0.047188594937324524, 0.1381971687078476, -0.41848599910736084, 0.21530601382255554, 0.5088739395141602, -0.21763522922992706, 0.27338120341300964, -0.039126019924879074, 0.09814465790987015, -0.001267801271751523, 0.6340997815132141, 0.14958924055099487, 0.023732217028737068, -0.435790091753006, 0.24684330821037292, -0.5064614415168762, 0.034148380160331726, -0.2610829472541809, 0.14380735158920288, -0.3708485960960388, 0.3476603925228119, 0.12029224634170532, -0.06318739801645279, -0.009628282859921455, 0.32590314745903015, 0.21645131707191467, 0.35385259985923767, -0.31523701548576355, -0.1542019248008728, -0.27258041501045227, -0.21140292286872864, 0.3093428909778595, -0.43705734610557556, 0.012966427020728588, 0.16912202537059784, 0.052018649876117706, -0.36216458678245544, 0.03534339368343353, 0.005555643700063229, 0.15972858667373657, -0.008220009505748749, 0.2578548491001129, 0.48936477303504944, -0.2150481939315796, -0.014704047702252865, -0.09395705163478851, -0.034873951226472855, -0.16505418717861176, 0.024585865437984467, 0.09823736548423767, 0.5375683903694153, -0.23324446380138397, 0.3349667489528656, -0.42916586995124817, 0.10686072707176208, 0.0017593465745449066, 0.0730229914188385, -0.11257250607013702, 0.1844567209482193, 0.14451654255390167, 0.015393120236694813, 0.004370109178125858, 0.3746376633644104, 0.012434943579137325, -0.05912378057837486, -0.1960199624300003, -0.2834498882293701, 0.6401272416114807, -0.2923007011413574, -0.453993022441864, -0.42327550053596497, 0.1518883854150772, -0.22872932255268097, -0.07128623127937317, -0.5009855031967163, 0.04145117104053497, 0.13671040534973145, -0.024167001247406006, -0.4582684338092804, 0.23896393179893494, 0.01220758818089962, -0.21940965950489044, -0.09121991693973541, 0.32443055510520935, 0.14234276115894318, -0.29269132018089294, 0.1541830152273178, -0.3422253131866455 ]
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.29035985469818115, -0.29742860794067383, 0.11324416846036911, 0.19037167727947235, 0.1661582738161087, -0.05221062898635864, 0.3321135342121124, 0.23036378622055054, 0.29939576983451843, 0.2801509499549866, 0.016716644167900085, 0.33768630027770996, -0.11104466766119003, 0.21741409599781036, 0.0041828160174191, -0.1060657650232315, -0.11580175161361694, -0.1348116248846054, -0.3830088675022125, 0.010605622082948685, -0.2922792136669159, 0.32952985167503357, -0.3364180326461792, 0.17858149111270905, -0.644775927066803, -0.09804922342300415, -0.048073314130306244, 0.2914251983165741, 0.0867961049079895, -0.08384139090776443, 0.09129629284143448, -0.03556610643863678, 0.012487753294408321, 0.4959757924079895, -0.00011002035171259195, 0.0433959998190403, 0.20303772389888763, -0.082920141518116, -0.06672537326812744, -0.4173734784126282, 0.07137882709503174, -0.03901207074522972, 0.07075818628072739, -0.05480744689702988, 0.15044915676116943, 0.17994895577430725, 0.1406906247138977, -0.08047185838222504, 0.2613462507724762, 0.11551515012979507, 0.1944083720445633, 0.5661993622779846, 0.11443610489368439, -0.07613557577133179, -0.1252591460943222, 0.21574826538562775, -0.032217249274253845, 0.26608607172966003, 0.11582949757575989, -0.16647401452064514, -0.2567041516304016, 0.2081437110900879, -0.009197346866130829, 0.28516969084739685, -0.15535292029380798, 0.3262344002723694, 0.09002940356731415, -0.2589210569858551, 0.1284051239490509, 0.39797309041023254, 0.07846304774284363, -0.23205654323101044, -0.32317182421684265, -0.068021759390831, -0.08543535321950912, -0.17135865986347198, 0.08775380998849869, 0.16609154641628265, -0.1176939606666565, 0.08516815304756165, -0.20291674137115479, 0.13196930289268494, 0.22070392966270447, 0.10398423671722412, 0.23207604885101318, 0.3622334897518158, -0.03134199231863022, 0.36862102150917053, 0.2795688211917877, -0.1373411864042282, -0.2073918879032135, -0.18688896298408508, 0.07206884026527405, 0.06321791559457779, -0.04581987485289574, -0.14083833992481232, 0.04550755396485329, -0.09475620090961456, 0.07365652918815613, -0.17858247458934784, -0.17664660513401031, 0.1712975949048996, -0.2389744520187378, 0.3193744719028473, 0.3000167906284332, -0.127212792634964, -0.09902681410312653, 0.20270320773124695, 0.4027111828327179, -0.07397212833166122, -0.2251327782869339, 0.11599518358707428, 0.3312562108039856, -0.3447967767715454, -0.10419414192438126, 0.15643316507339478, 0.32922351360321045, -0.11150743067264557, -0.14969752728939056, -0.19455048441886902, -0.13399115204811096, -0.17258426547050476, -0.010302082635462284, 0.29037463665008545, 0.059274058789014816, 0.34611940383911133, 0.05660810321569443, 0.1878039538860321, -0.5467138290405273, -0.08292911946773529, -0.33981087803840637, 0.21892674267292023, -0.1916935294866562, 0.06260725110769272, 0.22208309173583984, 0.26731303334236145, 0.3550165593624115, 0.19946978986263275, -0.03712690249085426, -0.15231116116046906, 0.23511949181556702, -0.24940448999404907, -0.1287899762392044, 0.19256317615509033, 0.16525523364543915, 0.28869855403900146, 0.2680864632129669, -0.30802521109580994, -0.06359369307756424, 0.07830500602722168, -0.23705454170703888, -0.2890693247318268, -0.0729566439986229, 0.13964979350566864, -0.014290773309767246, 0.12578906118869781, -0.16990919411182404, 0.04475569352507591, 0.4315927028656006, -0.04975840821862221, -0.1882437914609909, -0.29772740602493286, -0.3939261734485626, -0.2207493782043457, -0.0378478579223156, 0.37622082233428955, -0.23416541516780853, -0.1520397961139679, 0.19775886833667755, -0.12353719770908356, 0.5048840045928955, 0.5401946902275085, -0.24759256839752197, -0.08227613568305969, -0.1492328941822052, 0.6606737971305847, 0.03607159107923508, 0.10968562960624695, -0.2572185695171356, 0.20260918140411377, -0.09889473021030426, -0.11149969696998596, -0.08419258892536163, 0.03705037012696266, -0.3572830855846405, -0.03266756981611252, 0.4061434864997864, 0.13512355089187622, 0.05737420916557312, 0.19235679507255554, -0.2711721658706665, -0.3141677677631378, 0.1697528213262558, -0.05447738617658615, 0.06852931529283524, -0.2757887542247772, -0.1262003779411316, -0.08963224291801453, 0.43805524706840515, -0.22410741448402405, 0.07926025986671448, -0.0038886757101863623, 0.16275878250598907, -0.051540471613407135, -0.020110655575990677, -0.23383797705173492, -0.5796083807945251, 0.2878185212612152, -0.22332996129989624, 0.2118987739086151, -0.0640440508723259, -0.13443537056446075, 0.2768062353134155, -0.01697929948568344, -0.32596978545188904, -0.0686185359954834, 0.07566086947917938, 0.07221771031618118, 0.05090346559882164, -0.18227259814739227, -0.08427759259939194, -0.11655879020690918, -0.10495425015687943, -0.014996705576777458, -0.4686056673526764, 0.04257364198565483, -0.40373295545578003, -0.4181523621082306, -0.1895165592432022, 0.2076246589422226, 0.10675142705440521, -0.00686262734234333, -0.11716973781585693, 0.13696670532226562, 0.15026162564754486, -0.04611055552959442, -0.049514561891555786, 0.05626532807946205, -0.019087351858615875, -0.09612823277711868, 0.021798549219965935, 0.21985651552677155, 0.1103200763463974, -0.1780937761068344, -0.21470580995082855, 0.4751459062099457, 0.028406508266925812, 0.26987338066101074, 0.04167736694216728, 0.09579913318157196, 0.2242286652326584, 0.041359588503837585, 0.13225431740283966, -0.17092716693878174, 0.16770946979522705, 0.17140649259090424, 0.16703228652477264, 0.09132000803947449, -0.23927146196365356, 0.03952169790863991, 0.5964305996894836, 0.20254947245121002, 0.41198477149009705, 0.008131231181323528, -0.20590661466121674, -0.13738863170146942, -0.19424565136432648, 0.0325799286365509, 0.6064074635505676, 0.16130051016807556, 0.06438589096069336, 0.0018841034034267068, -0.12506930530071259, -0.11863698810338974, 0.012187284417450428, -0.015713313594460487, 0.038368985056877136, 0.13910681009292603, 0.11017747223377228, -0.0765564814209938, -0.3033149242401123, -0.103117935359478, 0.010304509662091732, 0.31846776604652405, -0.3177975118160248, 0.014538937248289585, -0.33260488510131836, 0.47298163175582886, -0.23475025594234467, 0.00974515825510025, -0.19180360436439514, -0.2922724485397339, -0.17370353639125824, 0.36885297298431396, -0.22110958397388458, 0.1546906977891922, 0.12780895829200745, -0.2074626237154007, -0.10400570183992386, 0.23589089512825012, 0.07289507240056992, -0.07714338600635529, -0.2809195816516876, -0.001913728192448616, 0.4048877954483032, -0.04306638240814209, 0.047123830765485764, 0.15361228585243225, -0.25862544775009155, -0.055387310683727264, -0.13959863781929016, 0.07913249731063843, -0.07616765052080154, 0.22843550145626068, 0.29757434129714966, 0.2531302869319916, -0.020326292142271996, -0.30279040336608887, 0.27819889783859253, -0.29911670088768005, -0.1905633509159088, -0.0421643927693367, 0.07795358449220657, -0.11819015443325043, -0.36455008387565613, -0.3952236771583557, -0.459189772605896, -0.33458802103996277, 0.40666335821151733, -0.059952262789011, 0.16278167068958282, 0.2841714322566986, 0.17496515810489655, 0.2511923313140869, 0.12706580758094788, -0.17673218250274658, -0.288362592458725, 0.1619468629360199, 0.22296682000160217, 0.0186423622071743, -0.2608918249607086, -0.04888389632105827, -0.16836223006248474, -0.04116702452301979, -0.20991860330104828, -0.161953866481781, 0.06790860742330551, -0.41853711009025574, 0.25062233209609985, 0.10129481554031372, 0.29873356223106384, 0.6218903660774231, 0.2733479142189026, -0.1571442037820816, -0.04585862159729004, -0.26764217019081116, 0.17666848003864288, 0.20726755261421204, 0.2516288757324219, -0.004411990754306316, 0.1994469165802002, -0.009048694744706154, 0.7935587167739868, 0.25887659192085266, -0.2274356484413147, 0.2747081220149994, 0.0024312324821949005, -0.17757776379585266, -0.08380817621946335, -0.15732985734939575, -0.0635199025273323, -0.32327085733413696, 0.10696811228990555, 0.22163324058055878, -0.11394830048084259, -0.17900824546813965, 0.05172136425971985, 0.15031282603740692, -0.09146176278591156, -0.29321035742759705, 0.49177733063697815, 0.20861589908599854, -0.10759876668453217, 0.057407934218645096, -0.0566323958337307, -0.12717470526695251, 0.04057282581925392, -0.08755914121866226, 0.014341583475470543, 0.011015718802809715, -0.10769937932491302, -0.17657533288002014, -0.2057752013206482, -0.5075409412384033, 0.5035902261734009, 0.1288684904575348, 0.30688878893852234, -0.10782173275947571, -0.20956951379776, -0.0616324283182621, -0.08288523554801941, 0.8502634167671204, -0.385090172290802, 0.010038291104137897, 0.11936957389116287, -0.23916266858577728, -0.25144144892692566, -0.2370394915342331, -0.27663224935531616, 0.37880468368530273, 0.32121074199676514, 0.49166223406791687, -0.23725968599319458, -0.10248997807502747, 0.3546542525291443, 0.01738756150007248, -0.13819268345832825, -0.30413389205932617, -0.34893229603767395, -0.24448177218437195, -0.45699745416641235, -0.07686236500740051, 0.2236947864294052, 0.14624644815921783, -0.17811381816864014, 0.05691760405898094, -0.0031950913835316896, -0.24901369214057922, 0.2492816299200058, 0.025196025148034096, 0.15518029034137726, 0.20632697641849518, 0.006600942928344011, -0.0015974091365933418, 0.2242501825094223, -0.162924125790596, 0.2497965395450592, -0.1691094934940338, 0.007037966046482325, 0.294501394033432, -0.25296786427497864, 0.30812275409698486, 0.1772133857011795, 0.05884689465165138, 0.32149067521095276, 0.21851696074008942, 0.3157068192958832, -0.07874738425016403, 0.11289696395397186, 0.321444571018219, 0.2550255060195923, -0.15212233364582062, -0.27017295360565186, 0.5763701796531677, 0.20699132978916168, 0.07110727578401566, 0.2796458899974823, -0.28950875997543335, -0.2001238614320755, 0.19523926079273224, -0.08531101793050766, 0.8592362403869629, -0.033453568816185, 0.13657523691654205, 0.10396295040845871, 0.040141765028238297, 0.39631548523902893, 0.18848726153373718, 0.1457999050617218, -0.4285918176174164, 0.019971946254372597, 0.0063636633567512035, -0.15615858137607574, 0.06998034566640854, 0.1950126737356186, -0.47181108593940735, 0.39893755316734314, -0.15402467548847198, -0.1372060626745224, -0.020968882367014885, 0.260549396276474, 0.04448738694190979, -0.2674718499183655, 0.09877457469701767, 0.10683055967092514, -0.09737308323383331, 0.25099825859069824, 0.09816917777061462, -0.015407628379762173, 0.07682665437459946, -0.3066435754299164, -0.3827337920665741, 0.11944496631622314, -0.21196617186069489, 0.5681124329566956, 0.26543015241622925, 0.11764320731163025, 0.33497539162635803, 0.14744317531585693, 0.004299052059650421, 0.12446627020835876, -0.12848712503910065, -0.013692967593669891, 0.030049724504351616, 0.12238268554210663, -0.21383342146873474, -0.01973154954612255, 0.2193782478570938, 0.03805423527956009, -0.39367958903312683, -0.1613597571849823, -0.08267194777727127, 0.06409497559070587, -0.14606615900993347, 0.028433917090296745, 0.023979805409908295, -0.22338220477104187, -0.4673129916191101, 0.060595009475946426, -0.35974252223968506, -0.23938950896263123, 0.10978494584560394, -0.025140296667814255, -0.42065998911857605, 0.23207128047943115, 0.09840693324804306, -0.2648564875125885, 0.09744785726070404, 0.4654234051704407, 0.14275766909122467, 0.393829882144928, 0.6578121781349182, 0.48163267970085144, -0.1619137078523636, -0.21772810816764832, -0.13783332705497742, 0.2559014558792114, -0.5192019939422607, 0.26362496614456177, 0.1261717677116394, -0.15654295682907104, -0.024752939119935036, 0.366733193397522, 0.04229258745908737, 0.2563857436180115, -0.2222348302602768, -0.28466033935546875, -0.43234172463417053, 0.041218314319849014, -0.012456133961677551, 0.15849082171916962, 0.037732768803834915, 0.4392099678516388, 0.07252226024866104, 0.3446776866912842, -0.31660282611846924, 0.10158953070640564, -0.4592559039592743, 0.1270502209663391, 0.08695463091135025, -0.38849902153015137, 0.007179941050708294, 0.10283990949392319, 0.10863649100065231, 0.3090004324913025, -0.2994247078895569, -0.2348470836877823, -0.2264029085636139, 0.07228893786668777, -0.06925470381975174, -0.05940123647451401, 0.2124277502298355, 0.2266753613948822, -0.032950907945632935, -0.17607331275939941, -0.007588061038404703, 0.0521184466779232, -0.01044590026140213, 0.14747920632362366, 0.21945546567440033, 0.019567614421248436, -0.11889573186635971, 0.004781033843755722, -0.24073916673660278, 0.030295200645923615, 0.14272671937942505, 0.012420101091265678, 0.14593854546546936, 0.06743402779102325, -0.13457927107810974, -0.17718173563480377, 0.08095507323741913, 0.13594475388526917, -0.19076523184776306, -0.35520434379577637, -0.21116535365581512, -0.1962963491678238, 0.2878005802631378, 0.17502157390117645, -0.1338813155889511, 0.04252936318516731, 0.07110781967639923, 0.22949397563934326, -0.3894510567188263, 0.10095968097448349, 0.31593477725982666, -0.08129806816577911, 0.24176357686519623, 0.23468075692653656, -0.10673296451568604, 0.1655511111021042, -0.2935243248939514, 0.12670879065990448, 0.002271557692438364, -0.4911995530128479, -0.009272472001612186, 0.09050729125738144, -0.12721151113510132, 0.1393159180879593, 0.3981228172779083, -0.043810829520225525, 0.218008890748024, 0.1734301745891571, -0.029528586193919182, 0.28618666529655457, -0.3371935784816742, 0.1603487879037857, 0.04284459352493286, -0.61673903465271, 0.2229510247707367, 0.30427178740501404, -0.15452806651592255, 0.21044577658176422, -0.03072505258023739, 0.3675806522369385, -0.5919649004936218, -0.19598495960235596, -0.08513803035020828, 0.2790292501449585, -0.3977418839931488, -0.4198273718357086, -0.03246704861521721, -0.05472412332892418, -0.21797960996627808, 0.057403381913900375, -0.07103037089109421, 0.13673201203346252, 0.34713152050971985, 0.021596234291791916, -0.14455582201480865, -0.348792165517807, -0.12606829404830933, -0.012695420533418655, 0.1340654194355011, -0.295692503452301, 0.06823643296957016, 0.2749168276786804, -0.04596341401338577, -0.5047228336334229, 0.22283637523651123, 0.5591912269592285, 0.39883583784103394, -0.3692152202129364, 0.07257484644651413, -0.039594218134880066, 0.061885662376880646, -0.10447011142969131, 0.07688053697347641, 0.09609455615282059, 0.1491696834564209, 0.22303076088428497, 0.1165979728102684, -0.20960406959056854, -0.08218834549188614, 0.12267943471670151, 0.3338046371936798, 0.05177924782037735, 0.4257688522338867, -0.09363184124231339, -0.22333115339279175, -0.047188594937324524, 0.1381971687078476, -0.41848599910736084, 0.21530601382255554, 0.5088739395141602, -0.21763522922992706, 0.27338120341300964, -0.039126019924879074, 0.09814465790987015, -0.001267801271751523, 0.6340997815132141, 0.14958924055099487, 0.023732217028737068, -0.435790091753006, 0.24684330821037292, -0.5064614415168762, 0.034148380160331726, -0.2610829472541809, 0.14380735158920288, -0.3708485960960388, 0.3476603925228119, 0.12029224634170532, -0.06318739801645279, -0.009628282859921455, 0.32590314745903015, 0.21645131707191467, 0.35385259985923767, -0.31523701548576355, -0.1542019248008728, -0.27258041501045227, -0.21140292286872864, 0.3093428909778595, -0.43705734610557556, 0.012966427020728588, 0.16912202537059784, 0.052018649876117706, -0.36216458678245544, 0.03534339368343353, 0.005555643700063229, 0.15972858667373657, -0.008220009505748749, 0.2578548491001129, 0.48936477303504944, -0.2150481939315796, -0.014704047702252865, -0.09395705163478851, -0.034873951226472855, -0.16505418717861176, 0.024585865437984467, 0.09823736548423767, 0.5375683903694153, -0.23324446380138397, 0.3349667489528656, -0.42916586995124817, 0.10686072707176208, 0.0017593465745449066, 0.0730229914188385, -0.11257250607013702, 0.1844567209482193, 0.14451654255390167, 0.015393120236694813, 0.004370109178125858, 0.3746376633644104, 0.012434943579137325, -0.05912378057837486, -0.1960199624300003, -0.2834498882293701, 0.6401272416114807, -0.2923007011413574, -0.453993022441864, -0.42327550053596497, 0.1518883854150772, -0.22872932255268097, -0.07128623127937317, -0.5009855031967163, 0.04145117104053497, 0.13671040534973145, -0.024167001247406006, -0.4582684338092804, 0.23896393179893494, 0.01220758818089962, -0.21940965950489044, -0.09121991693973541, 0.32443055510520935, 0.14234276115894318, -0.29269132018089294, 0.1541830152273178, -0.3422253131866455 ]
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.29035985469818115, -0.29742860794067383, 0.11324416846036911, 0.19037167727947235, 0.1661582738161087, -0.05221062898635864, 0.3321135342121124, 0.23036378622055054, 0.29939576983451843, 0.2801509499549866, 0.016716644167900085, 0.33768630027770996, -0.11104466766119003, 0.21741409599781036, 0.0041828160174191, -0.1060657650232315, -0.11580175161361694, -0.1348116248846054, -0.3830088675022125, 0.010605622082948685, -0.2922792136669159, 0.32952985167503357, -0.3364180326461792, 0.17858149111270905, -0.644775927066803, -0.09804922342300415, -0.048073314130306244, 0.2914251983165741, 0.0867961049079895, -0.08384139090776443, 0.09129629284143448, -0.03556610643863678, 0.012487753294408321, 0.4959757924079895, -0.00011002035171259195, 0.0433959998190403, 0.20303772389888763, -0.082920141518116, -0.06672537326812744, -0.4173734784126282, 0.07137882709503174, -0.03901207074522972, 0.07075818628072739, -0.05480744689702988, 0.15044915676116943, 0.17994895577430725, 0.1406906247138977, -0.08047185838222504, 0.2613462507724762, 0.11551515012979507, 0.1944083720445633, 0.5661993622779846, 0.11443610489368439, -0.07613557577133179, -0.1252591460943222, 0.21574826538562775, -0.032217249274253845, 0.26608607172966003, 0.11582949757575989, -0.16647401452064514, -0.2567041516304016, 0.2081437110900879, -0.009197346866130829, 0.28516969084739685, -0.15535292029380798, 0.3262344002723694, 0.09002940356731415, -0.2589210569858551, 0.1284051239490509, 0.39797309041023254, 0.07846304774284363, -0.23205654323101044, -0.32317182421684265, -0.068021759390831, -0.08543535321950912, -0.17135865986347198, 0.08775380998849869, 0.16609154641628265, -0.1176939606666565, 0.08516815304756165, -0.20291674137115479, 0.13196930289268494, 0.22070392966270447, 0.10398423671722412, 0.23207604885101318, 0.3622334897518158, -0.03134199231863022, 0.36862102150917053, 0.2795688211917877, -0.1373411864042282, -0.2073918879032135, -0.18688896298408508, 0.07206884026527405, 0.06321791559457779, -0.04581987485289574, -0.14083833992481232, 0.04550755396485329, -0.09475620090961456, 0.07365652918815613, -0.17858247458934784, -0.17664660513401031, 0.1712975949048996, -0.2389744520187378, 0.3193744719028473, 0.3000167906284332, -0.127212792634964, -0.09902681410312653, 0.20270320773124695, 0.4027111828327179, -0.07397212833166122, -0.2251327782869339, 0.11599518358707428, 0.3312562108039856, -0.3447967767715454, -0.10419414192438126, 0.15643316507339478, 0.32922351360321045, -0.11150743067264557, -0.14969752728939056, -0.19455048441886902, -0.13399115204811096, -0.17258426547050476, -0.010302082635462284, 0.29037463665008545, 0.059274058789014816, 0.34611940383911133, 0.05660810321569443, 0.1878039538860321, -0.5467138290405273, -0.08292911946773529, -0.33981087803840637, 0.21892674267292023, -0.1916935294866562, 0.06260725110769272, 0.22208309173583984, 0.26731303334236145, 0.3550165593624115, 0.19946978986263275, -0.03712690249085426, -0.15231116116046906, 0.23511949181556702, -0.24940448999404907, -0.1287899762392044, 0.19256317615509033, 0.16525523364543915, 0.28869855403900146, 0.2680864632129669, -0.30802521109580994, -0.06359369307756424, 0.07830500602722168, -0.23705454170703888, -0.2890693247318268, -0.0729566439986229, 0.13964979350566864, -0.014290773309767246, 0.12578906118869781, -0.16990919411182404, 0.04475569352507591, 0.4315927028656006, -0.04975840821862221, -0.1882437914609909, -0.29772740602493286, -0.3939261734485626, -0.2207493782043457, -0.0378478579223156, 0.37622082233428955, -0.23416541516780853, -0.1520397961139679, 0.19775886833667755, -0.12353719770908356, 0.5048840045928955, 0.5401946902275085, -0.24759256839752197, -0.08227613568305969, -0.1492328941822052, 0.6606737971305847, 0.03607159107923508, 0.10968562960624695, -0.2572185695171356, 0.20260918140411377, -0.09889473021030426, -0.11149969696998596, -0.08419258892536163, 0.03705037012696266, -0.3572830855846405, -0.03266756981611252, 0.4061434864997864, 0.13512355089187622, 0.05737420916557312, 0.19235679507255554, -0.2711721658706665, -0.3141677677631378, 0.1697528213262558, -0.05447738617658615, 0.06852931529283524, -0.2757887542247772, -0.1262003779411316, -0.08963224291801453, 0.43805524706840515, -0.22410741448402405, 0.07926025986671448, -0.0038886757101863623, 0.16275878250598907, -0.051540471613407135, -0.020110655575990677, -0.23383797705173492, -0.5796083807945251, 0.2878185212612152, -0.22332996129989624, 0.2118987739086151, -0.0640440508723259, -0.13443537056446075, 0.2768062353134155, -0.01697929948568344, -0.32596978545188904, -0.0686185359954834, 0.07566086947917938, 0.07221771031618118, 0.05090346559882164, -0.18227259814739227, -0.08427759259939194, -0.11655879020690918, -0.10495425015687943, -0.014996705576777458, -0.4686056673526764, 0.04257364198565483, -0.40373295545578003, -0.4181523621082306, -0.1895165592432022, 0.2076246589422226, 0.10675142705440521, -0.00686262734234333, -0.11716973781585693, 0.13696670532226562, 0.15026162564754486, -0.04611055552959442, -0.049514561891555786, 0.05626532807946205, -0.019087351858615875, -0.09612823277711868, 0.021798549219965935, 0.21985651552677155, 0.1103200763463974, -0.1780937761068344, -0.21470580995082855, 0.4751459062099457, 0.028406508266925812, 0.26987338066101074, 0.04167736694216728, 0.09579913318157196, 0.2242286652326584, 0.041359588503837585, 0.13225431740283966, -0.17092716693878174, 0.16770946979522705, 0.17140649259090424, 0.16703228652477264, 0.09132000803947449, -0.23927146196365356, 0.03952169790863991, 0.5964305996894836, 0.20254947245121002, 0.41198477149009705, 0.008131231181323528, -0.20590661466121674, -0.13738863170146942, -0.19424565136432648, 0.0325799286365509, 0.6064074635505676, 0.16130051016807556, 0.06438589096069336, 0.0018841034034267068, -0.12506930530071259, -0.11863698810338974, 0.012187284417450428, -0.015713313594460487, 0.038368985056877136, 0.13910681009292603, 0.11017747223377228, -0.0765564814209938, -0.3033149242401123, -0.103117935359478, 0.010304509662091732, 0.31846776604652405, -0.3177975118160248, 0.014538937248289585, -0.33260488510131836, 0.47298163175582886, -0.23475025594234467, 0.00974515825510025, -0.19180360436439514, -0.2922724485397339, -0.17370353639125824, 0.36885297298431396, -0.22110958397388458, 0.1546906977891922, 0.12780895829200745, -0.2074626237154007, -0.10400570183992386, 0.23589089512825012, 0.07289507240056992, -0.07714338600635529, -0.2809195816516876, -0.001913728192448616, 0.4048877954483032, -0.04306638240814209, 0.047123830765485764, 0.15361228585243225, -0.25862544775009155, -0.055387310683727264, -0.13959863781929016, 0.07913249731063843, -0.07616765052080154, 0.22843550145626068, 0.29757434129714966, 0.2531302869319916, -0.020326292142271996, -0.30279040336608887, 0.27819889783859253, -0.29911670088768005, -0.1905633509159088, -0.0421643927693367, 0.07795358449220657, -0.11819015443325043, -0.36455008387565613, -0.3952236771583557, -0.459189772605896, -0.33458802103996277, 0.40666335821151733, -0.059952262789011, 0.16278167068958282, 0.2841714322566986, 0.17496515810489655, 0.2511923313140869, 0.12706580758094788, -0.17673218250274658, -0.288362592458725, 0.1619468629360199, 0.22296682000160217, 0.0186423622071743, -0.2608918249607086, -0.04888389632105827, -0.16836223006248474, -0.04116702452301979, -0.20991860330104828, -0.161953866481781, 0.06790860742330551, -0.41853711009025574, 0.25062233209609985, 0.10129481554031372, 0.29873356223106384, 0.6218903660774231, 0.2733479142189026, -0.1571442037820816, -0.04585862159729004, -0.26764217019081116, 0.17666848003864288, 0.20726755261421204, 0.2516288757324219, -0.004411990754306316, 0.1994469165802002, -0.009048694744706154, 0.7935587167739868, 0.25887659192085266, -0.2274356484413147, 0.2747081220149994, 0.0024312324821949005, -0.17757776379585266, -0.08380817621946335, -0.15732985734939575, -0.0635199025273323, -0.32327085733413696, 0.10696811228990555, 0.22163324058055878, -0.11394830048084259, -0.17900824546813965, 0.05172136425971985, 0.15031282603740692, -0.09146176278591156, -0.29321035742759705, 0.49177733063697815, 0.20861589908599854, -0.10759876668453217, 0.057407934218645096, -0.0566323958337307, -0.12717470526695251, 0.04057282581925392, -0.08755914121866226, 0.014341583475470543, 0.011015718802809715, -0.10769937932491302, -0.17657533288002014, -0.2057752013206482, -0.5075409412384033, 0.5035902261734009, 0.1288684904575348, 0.30688878893852234, -0.10782173275947571, -0.20956951379776, -0.0616324283182621, -0.08288523554801941, 0.8502634167671204, -0.385090172290802, 0.010038291104137897, 0.11936957389116287, -0.23916266858577728, -0.25144144892692566, -0.2370394915342331, -0.27663224935531616, 0.37880468368530273, 0.32121074199676514, 0.49166223406791687, -0.23725968599319458, -0.10248997807502747, 0.3546542525291443, 0.01738756150007248, -0.13819268345832825, -0.30413389205932617, -0.34893229603767395, -0.24448177218437195, -0.45699745416641235, -0.07686236500740051, 0.2236947864294052, 0.14624644815921783, -0.17811381816864014, 0.05691760405898094, -0.0031950913835316896, -0.24901369214057922, 0.2492816299200058, 0.025196025148034096, 0.15518029034137726, 0.20632697641849518, 0.006600942928344011, -0.0015974091365933418, 0.2242501825094223, -0.162924125790596, 0.2497965395450592, -0.1691094934940338, 0.007037966046482325, 0.294501394033432, -0.25296786427497864, 0.30812275409698486, 0.1772133857011795, 0.05884689465165138, 0.32149067521095276, 0.21851696074008942, 0.3157068192958832, -0.07874738425016403, 0.11289696395397186, 0.321444571018219, 0.2550255060195923, -0.15212233364582062, -0.27017295360565186, 0.5763701796531677, 0.20699132978916168, 0.07110727578401566, 0.2796458899974823, -0.28950875997543335, -0.2001238614320755, 0.19523926079273224, -0.08531101793050766, 0.8592362403869629, -0.033453568816185, 0.13657523691654205, 0.10396295040845871, 0.040141765028238297, 0.39631548523902893, 0.18848726153373718, 0.1457999050617218, -0.4285918176174164, 0.019971946254372597, 0.0063636633567512035, -0.15615858137607574, 0.06998034566640854, 0.1950126737356186, -0.47181108593940735, 0.39893755316734314, -0.15402467548847198, -0.1372060626745224, -0.020968882367014885, 0.260549396276474, 0.04448738694190979, -0.2674718499183655, 0.09877457469701767, 0.10683055967092514, -0.09737308323383331, 0.25099825859069824, 0.09816917777061462, -0.015407628379762173, 0.07682665437459946, -0.3066435754299164, -0.3827337920665741, 0.11944496631622314, -0.21196617186069489, 0.5681124329566956, 0.26543015241622925, 0.11764320731163025, 0.33497539162635803, 0.14744317531585693, 0.004299052059650421, 0.12446627020835876, -0.12848712503910065, -0.013692967593669891, 0.030049724504351616, 0.12238268554210663, -0.21383342146873474, -0.01973154954612255, 0.2193782478570938, 0.03805423527956009, -0.39367958903312683, -0.1613597571849823, -0.08267194777727127, 0.06409497559070587, -0.14606615900993347, 0.028433917090296745, 0.023979805409908295, -0.22338220477104187, -0.4673129916191101, 0.060595009475946426, -0.35974252223968506, -0.23938950896263123, 0.10978494584560394, -0.025140296667814255, -0.42065998911857605, 0.23207128047943115, 0.09840693324804306, -0.2648564875125885, 0.09744785726070404, 0.4654234051704407, 0.14275766909122467, 0.393829882144928, 0.6578121781349182, 0.48163267970085144, -0.1619137078523636, -0.21772810816764832, -0.13783332705497742, 0.2559014558792114, -0.5192019939422607, 0.26362496614456177, 0.1261717677116394, -0.15654295682907104, -0.024752939119935036, 0.366733193397522, 0.04229258745908737, 0.2563857436180115, -0.2222348302602768, -0.28466033935546875, -0.43234172463417053, 0.041218314319849014, -0.012456133961677551, 0.15849082171916962, 0.037732768803834915, 0.4392099678516388, 0.07252226024866104, 0.3446776866912842, -0.31660282611846924, 0.10158953070640564, -0.4592559039592743, 0.1270502209663391, 0.08695463091135025, -0.38849902153015137, 0.007179941050708294, 0.10283990949392319, 0.10863649100065231, 0.3090004324913025, -0.2994247078895569, -0.2348470836877823, -0.2264029085636139, 0.07228893786668777, -0.06925470381975174, -0.05940123647451401, 0.2124277502298355, 0.2266753613948822, -0.032950907945632935, -0.17607331275939941, -0.007588061038404703, 0.0521184466779232, -0.01044590026140213, 0.14747920632362366, 0.21945546567440033, 0.019567614421248436, -0.11889573186635971, 0.004781033843755722, -0.24073916673660278, 0.030295200645923615, 0.14272671937942505, 0.012420101091265678, 0.14593854546546936, 0.06743402779102325, -0.13457927107810974, -0.17718173563480377, 0.08095507323741913, 0.13594475388526917, -0.19076523184776306, -0.35520434379577637, -0.21116535365581512, -0.1962963491678238, 0.2878005802631378, 0.17502157390117645, -0.1338813155889511, 0.04252936318516731, 0.07110781967639923, 0.22949397563934326, -0.3894510567188263, 0.10095968097448349, 0.31593477725982666, -0.08129806816577911, 0.24176357686519623, 0.23468075692653656, -0.10673296451568604, 0.1655511111021042, -0.2935243248939514, 0.12670879065990448, 0.002271557692438364, -0.4911995530128479, -0.009272472001612186, 0.09050729125738144, -0.12721151113510132, 0.1393159180879593, 0.3981228172779083, -0.043810829520225525, 0.218008890748024, 0.1734301745891571, -0.029528586193919182, 0.28618666529655457, -0.3371935784816742, 0.1603487879037857, 0.04284459352493286, -0.61673903465271, 0.2229510247707367, 0.30427178740501404, -0.15452806651592255, 0.21044577658176422, -0.03072505258023739, 0.3675806522369385, -0.5919649004936218, -0.19598495960235596, -0.08513803035020828, 0.2790292501449585, -0.3977418839931488, -0.4198273718357086, -0.03246704861521721, -0.05472412332892418, -0.21797960996627808, 0.057403381913900375, -0.07103037089109421, 0.13673201203346252, 0.34713152050971985, 0.021596234291791916, -0.14455582201480865, -0.348792165517807, -0.12606829404830933, -0.012695420533418655, 0.1340654194355011, -0.295692503452301, 0.06823643296957016, 0.2749168276786804, -0.04596341401338577, -0.5047228336334229, 0.22283637523651123, 0.5591912269592285, 0.39883583784103394, -0.3692152202129364, 0.07257484644651413, -0.039594218134880066, 0.061885662376880646, -0.10447011142969131, 0.07688053697347641, 0.09609455615282059, 0.1491696834564209, 0.22303076088428497, 0.1165979728102684, -0.20960406959056854, -0.08218834549188614, 0.12267943471670151, 0.3338046371936798, 0.05177924782037735, 0.4257688522338867, -0.09363184124231339, -0.22333115339279175, -0.047188594937324524, 0.1381971687078476, -0.41848599910736084, 0.21530601382255554, 0.5088739395141602, -0.21763522922992706, 0.27338120341300964, -0.039126019924879074, 0.09814465790987015, -0.001267801271751523, 0.6340997815132141, 0.14958924055099487, 0.023732217028737068, -0.435790091753006, 0.24684330821037292, -0.5064614415168762, 0.034148380160331726, -0.2610829472541809, 0.14380735158920288, -0.3708485960960388, 0.3476603925228119, 0.12029224634170532, -0.06318739801645279, -0.009628282859921455, 0.32590314745903015, 0.21645131707191467, 0.35385259985923767, -0.31523701548576355, -0.1542019248008728, -0.27258041501045227, -0.21140292286872864, 0.3093428909778595, -0.43705734610557556, 0.012966427020728588, 0.16912202537059784, 0.052018649876117706, -0.36216458678245544, 0.03534339368343353, 0.005555643700063229, 0.15972858667373657, -0.008220009505748749, 0.2578548491001129, 0.48936477303504944, -0.2150481939315796, -0.014704047702252865, -0.09395705163478851, -0.034873951226472855, -0.16505418717861176, 0.024585865437984467, 0.09823736548423767, 0.5375683903694153, -0.23324446380138397, 0.3349667489528656, -0.42916586995124817, 0.10686072707176208, 0.0017593465745449066, 0.0730229914188385, -0.11257250607013702, 0.1844567209482193, 0.14451654255390167, 0.015393120236694813, 0.004370109178125858, 0.3746376633644104, 0.012434943579137325, -0.05912378057837486, -0.1960199624300003, -0.2834498882293701, 0.6401272416114807, -0.2923007011413574, -0.453993022441864, -0.42327550053596497, 0.1518883854150772, -0.22872932255268097, -0.07128623127937317, -0.5009855031967163, 0.04145117104053497, 0.13671040534973145, -0.024167001247406006, -0.4582684338092804, 0.23896393179893494, 0.01220758818089962, -0.21940965950489044, -0.09121991693973541, 0.32443055510520935, 0.14234276115894318, -0.29269132018089294, 0.1541830152273178, -0.3422253131866455 ]
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.36117488145828247, -0.1505351960659027, -0.043187763541936874, 0.38722318410873413, 0.2670585811138153, -0.10684021562337875, 0.08155050128698349, 0.30455511808395386, -0.1409013718366623, 0.2166147530078888, -0.3760768473148346, -0.013459084555506706, 0.0852673351764679, 0.005194996949285269, -0.18599987030029297, -0.04606260731816292, 0.00347131653688848, -0.009413536638021469, 0.07728108018636703, -0.001064852112904191, -0.2850641906261444, 0.2279987782239914, 0.016346247866749763, 0.25543251633644104, -0.10162372142076492, -0.1028563529253006, -0.013552292250096798, -0.12158862501382828, -0.08570241928100586, -0.47428983449935913, 0.43568459153175354, 0.02818651683628559, -0.16046474874019623, 0.7841004133224487, -0.00011886379070347175, 0.09906422346830368, 0.24837186932563782, 0.025843709707260132, -0.07039535045623779, -0.371635764837265, 0.030529208481311798, -0.0560125894844532, 0.15529298782348633, -0.2752094268798828, 0.08796313405036926, -0.1430901736021042, 0.095548115670681, -0.5427469611167908, 0.38012510538101196, 0.16474346816539764, 0.15466754138469696, 0.5314356088638306, -0.48682156205177307, -0.1824195384979248, 0.12838569283485413, -0.057949114590883255, -0.050340306013822556, 0.5445218086242676, 0.0008055915823206306, 0.20440776646137238, 0.023588180541992188, 0.4144548177719116, -0.11863989382982254, 0.2631288766860962, 0.05707796290516853, 0.09715510159730911, 0.40603357553482056, -0.015864165499806404, 0.16569429636001587, -0.1240437775850296, 0.25705811381340027, -0.3838197588920593, -0.22552843391895294, 0.13827811181545258, -0.1987217366695404, -0.5372881293296814, 0.18510311841964722, 0.1369587779045105, -0.17830149829387665, -0.17635686695575714, -0.2779461443424225, 0.07205715030431747, -0.21210482716560364, -0.19637121260166168, 0.08150085061788559, -0.26872628927230835, -0.15741223096847534, 0.16433215141296387, 0.16940103471279144, 0.3121427893638611, 0.12401282787322998, 0.0018434829544276, -0.15531349182128906, -0.008267310447990894, -0.4027785062789917, 0.05425635352730751, -0.30371278524398804, -0.3437739312648773, -0.09539120644330978, 0.28829073905944824, 0.37896978855133057, -0.045193932950496674, 0.28402459621429443, 0.2224457859992981, 0.030922554433345795, 0.7004976868629456, 0.14985033869743347, 0.2902032136917114, 0.2009001523256302, 0.1810625195503235, -0.31000620126724243, -0.19136227667331696, 0.19901156425476074, -0.5310232639312744, 0.2414141297340393, 0.22001491487026215, -0.013255856931209564, -0.3235708475112915, -0.4480680823326111, 0.061548035591840744, 0.1938803642988205, -0.04671443998813629, 0.1330564022064209, 0.31950339674949646, 0.03391409292817116, 0.012323172762989998, 0.12787465751171112, 0.4262721538543701, -0.22094179689884186, 0.21000561118125916, -0.2910304665565491, 0.1002696305513382, -0.4435732662677765, 0.3646082878112793, 0.04746641963720322, -0.08391419053077698, 0.22430458664894104, -0.03204613924026489, 0.40319332480430603, -0.3089312016963959, 0.36521247029304504, -0.4421766400337219, -0.0029985904693603516, 0.09540858864784241, 0.07820145040750504, 0.2251213639974594, 0.29957130551338196, -0.09814009070396423, -0.08110471814870834, -0.07388950139284134, -0.18721053004264832, -0.14911121129989624, 0.5365411043167114, 0.15635830163955688, -0.013178639113903046, 0.4289543926715851, -0.34624189138412476, -0.07321064919233322, 0.3937605023384094, -0.21730969846248627, 0.06996887922286987, 0.006571530364453793, -0.4017104506492615, -0.3470822274684906, 0.14707478880882263, 0.35514378547668457, -0.2117377370595932, -0.07382579892873764, 0.292949914932251, 0.12982849776744843, -0.010282623581588268, 0.4685420095920563, -0.22015516459941864, 0.16263487935066223, -0.2866153419017792, -0.024594781920313835, 0.5620943903923035, -0.8298751711845398, -0.3216197192668915, 0.11762519180774689, -0.1634722501039505, -0.33326882123947144, 0.08252249658107758, 0.042998623102903366, 0.3266255259513855, -0.08760514110326767, 0.08907226473093033, -0.22432605922222137, 0.139523446559906, -0.15095290541648865, -0.3216230273246765, -0.3151450455188751, -0.0638335645198822, -0.2678596079349518, 0.2974456250667572, -0.04714018106460571, 0.2434973567724228, -0.20637503266334534, -0.06006806716322899, -0.12155701965093613, 0.020031780004501343, 0.24389292299747467, 0.18840819597244263, -0.028605233877897263, 0.09913501143455505, -0.28509095311164856, 0.29250290989875793, 0.14487344026565552, -0.5383439064025879, -0.2961367070674896, 0.16910579800605774, -0.2005109339952469, -0.1927506923675537, -0.08577693998813629, -0.07063968479633331, -0.1958032101392746, 0.06590215116739273, 0.1360589861869812, 0.22092165052890778, 0.2780214846134186, -0.057627834379673004, 0.3118055760860443, -0.05844737961888313, 0.07076796889305115, -0.09735005348920822, 0.07383131980895996, -0.12322819977998734, -0.2663716673851013, -0.09806004166603088, 0.07870817929506302, 0.376360684633255, -0.02260410413146019, -0.1681242287158966, 0.3127586841583252, -0.11685357987880707, 0.2160871922969818, 0.17923060059547424, 0.11884117871522903, 0.17213162779808044, -0.2322578877210617, 0.0048483130522072315, -0.0386071652173996, 0.19459374248981476, -0.09877978265285492, 0.40154939889907837, 0.2953324019908905, -0.022891314700245857, 0.12966197729110718, 0.27550292015075684, 0.017033865675330162, -0.10075195878744125, 0.028555694967508316, 0.17278636991977692, -0.19013085961341858, 0.30239129066467285, -0.0971512570977211, 0.0521637387573719, -0.11248904466629028, 0.09680274873971939, -0.10436510294675827, 0.13555823266506195, 0.1627228856086731, -0.0012204304803162813, -0.16955441236495972, -0.03695094212889671, 0.07328815013170242, -0.2711121439933777, 0.28890085220336914, 0.7128484845161438, 0.02290361560881138, 0.15263091027736664, 0.133012056350708, 0.018837736919522285, -0.17603260278701782, 0.14531636238098145, 0.20944295823574066, -0.1075589656829834, 0.09937924146652222, 0.16622214019298553, -0.08168710768222809, -0.036457162350416183, 0.09034089744091034, 0.03812244534492493, -0.02139546349644661, -0.16473916172981262, 0.3923787772655487, -0.02197176218032837, 0.07535526156425476, -0.535993218421936, 0.014177210628986359, -0.028815099969506264, -0.16891758143901825, -0.10039366036653519, 0.3601456582546234, 0.049968987703323364, 0.07074559479951859, -0.23019379377365112, 0.5003122091293335, -0.27543768286705017, 0.25755003094673157, 0.021313345059752464, -0.15510378777980804, -0.3020188510417938, -0.07128044217824936, 0.16850553452968597, 0.06055092439055443, 0.3412753641605377, -0.17549487948417664, -0.06994977593421936, -0.2088635265827179, -0.186923548579216, -0.044957228004932404, 0.28860005736351013, 0.48889490962028503, -0.0525457039475441, -0.13934838771820068, -0.3070414960384369, -0.3469008505344391, 0.31383270025253296, -0.404836505651474, -0.20791848003864288, -0.13243183493614197, 0.015043530613183975, -0.228984072804451, -0.18729467689990997, -0.10687609761953354, -0.024507541209459305, -0.2213674783706665, 0.20838622748851776, -0.20012491941452026, 0.03607257455587387, 0.0712471455335617, -0.17405597865581512, 0.11427585780620575, 0.07485555112361908, 0.11120127141475677, -0.27788200974464417, -0.19417481124401093, 0.022259481251239777, -0.40089547634124756, -0.19502823054790497, -0.04202103614807129, 0.13637769222259521, 0.459974467754364, 0.23688451945781708, -0.42594894766807556, -0.4368482828140259, -0.1682194322347641, -0.11737605929374695, 0.10201491415500641, -0.04186118021607399, 0.05511821433901787, -0.06822989881038666, -0.13354361057281494, -0.1503501534461975, -0.19333133101463318, 0.5020683407783508, -0.2520495653152466, 0.06857389211654663, -0.16039596498012543, -0.12222671508789062, 0.04429991543292999, 0.8054541349411011, 0.41464361548423767, 0.08388224989175797, 0.314287394285202, 0.20357175171375275, 0.3654494285583496, 0.003969226498156786, -0.38868626952171326, 0.1884920597076416, 0.02006565034389496, -0.2714679539203644, 0.12796363234519958, -0.08590023964643478, 0.10546611249446869, -0.14740020036697388, -0.11587455868721008, -0.21376630663871765, -0.09552493691444397, -0.14897111058235168, -0.2166229486465454, 0.23570625483989716, 0.08295609056949615, 0.09117264300584793, -0.3216690719127655, 0.027716243639588356, 0.22083109617233276, 0.23617978394031525, -0.2803718149662018, 0.024319475516676903, -0.14500795304775238, -0.1817695051431656, -0.22255423665046692, 0.5148032903671265, 0.08916252851486206, 0.24469976127147675, -0.2091464400291443, 0.14087972044944763, 0.0523320697247982, -0.07097116857767105, 0.6638153791427612, -0.07394711673259735, -0.08686624467372894, -0.11098024249076843, -0.019375506788492203, -0.40940409898757935, -0.14190232753753662, 0.055074386298656464, 0.13664263486862183, 0.17982029914855957, 0.4839473366737366, -0.12085965275764465, -0.005179452244192362, -0.015305510722100735, 0.012095251120626926, -0.185464546084404, -0.2006290704011917, -0.3357679545879364, -0.3831157088279724, 0.07327698916196823, 0.073748379945755, -0.019512876868247986, 0.04521404951810837, -0.09378624707460403, 0.09406886249780655, -0.17311277985572815, 0.047434426844120026, 0.24365657567977905, -0.013380341231822968, 0.5679038166999817, -0.36991024017333984, 0.11976199597120285, 0.27744317054748535, 0.08131673187017441, 0.2905482351779938, 0.2618482708930969, -0.14876170456409454, -0.414673775434494, 0.11547940969467163, 0.08396829664707184, -0.006802045740187168, 0.4959113895893097, -0.17064692080020905, 0.19981133937835693, -0.0143731152638793, -0.05250658467411995, 0.12229172885417938, 0.07163924723863602, 0.2608550488948822, 0.30125734210014343, -0.08179699629545212, -0.18036063015460968, 0.0001942750532180071, 0.4088630676269531, -0.11109624803066254, 0.4448743164539337, -0.3718874752521515, -0.13043071329593658, 0.18317405879497528, 0.20753970742225647, 1.1415232419967651, 0.10962042212486267, 0.09404259920120239, 0.3654055893421173, -0.378801167011261, 0.144881010055542, -0.13388323783874512, 0.35212278366088867, -0.2913301885128021, -0.426279217004776, 0.044398728758096695, -0.4234817326068878, 0.0784720778465271, -0.25822606682777405, -0.09879375994205475, 0.29940247535705566, -0.25757095217704773, 0.022853810340166092, -0.16757504642009735, -0.009479978121817112, -0.17644596099853516, 0.1637747436761856, 0.27844056487083435, 0.11873915791511536, -0.13473764061927795, 0.1918259859085083, -0.19577939808368683, -0.20621971786022186, -0.2727334201335907, -0.12412827461957932, -0.19990989565849304, 0.12547586858272552, -0.3591463267803192, 0.5477300882339478, -0.028982384130358696, -0.1873503178358078, -0.05643811821937561, 0.31791722774505615, 1.0567493438720703, -0.03375102952122688, -0.05322730913758278, 0.11152058839797974, 0.13227452337741852, 0.0769810751080513, 0.0788673460483551, -0.4823548495769501, 0.12167885154485703, -0.16219937801361084, -0.20465870201587677, -0.010240554809570312, 0.17127420008182526, 0.05454825609922409, 0.14362303912639618, 0.006503721699118614, -0.04427111893892288, -0.1453597992658615, 0.07130785286426544, 0.053824059665203094, -0.038230810314416885, -0.14293991029262543, 0.03658600524067879, -0.050325505435466766, -0.20491711795330048, 0.12930935621261597, -0.21363919973373413, -0.35866299271583557, 0.1601787507534027, 0.23918204009532928, 0.3221605718135834, -0.3406069874763489, 0.5207621455192566, -0.4181827902793884, -0.16472090780735016, -0.12292814999818802, -0.4281485974788666, -0.10484544932842255, -0.48585638403892517, 0.35194823145866394, -0.32848307490348816, -0.02303829789161682, -0.12904176115989685, 0.42358720302581787, 0.369601845741272, 0.20826371014118195, -0.051432982087135315, -0.25757384300231934, -0.3079735040664673, 0.06654221564531326, -0.2560640573501587, 0.20943613350391388, -0.06678129732608795, 0.20331713557243347, -0.11510539799928665, 0.24687740206718445, -0.2290826439857483, 0.14910809695720673, -0.22358091175556183, -0.05786173790693283, -0.023992707952857018, -0.3083403706550598, 0.2739686071872711, 0.058367010205984116, -0.08296166360378265, 0.24497470259666443, -0.41506773233413696, -0.10257475078105927, -0.17030708491802216, 0.16700199246406555, -0.201088085770607, -0.16634498536586761, -0.1639757603406906, -0.08493876457214355, 0.2917103171348572, -0.0966840609908104, 0.03852374479174614, 0.49527543783187866, -0.004726850893348455, -0.18257082998752594, -0.08010133355855942, 0.3579127788543701, 0.07604140788316727, 0.3112907409667969, 0.0722690299153328, -0.08911830186843872, 0.045570600777864456, 0.2249443382024765, -0.17519783973693848, -0.1544536054134369, -0.21517489850521088, -0.10359588265419006, 0.1023811548948288, 0.11730197817087173, -0.23846924304962158, -0.37893059849739075, -0.2773681879043579, 0.04926227778196335, 0.23944377899169922, 0.1593896746635437, -0.022152937948703766, -0.16762755811214447, 0.04527246579527855, 0.12178033590316772, 0.0035551050677895546, 0.010083211585879326, 0.07127999514341354, -0.06657139211893082, -0.26974382996559143, 0.2501278519630432, 0.43670418858528137, -0.059540022164583206, 0.2153591513633728, 0.0835733711719513, 0.3153460919857025, -0.3591233193874359, 0.4809868037700653, -0.30798059701919556, 0.25621452927589417, 0.229185089468956, 0.28968188166618347, 0.14021649956703186, 0.1642453819513321, -0.1615498661994934, -0.2578156292438507, 0.32888272404670715, 0.10091406852006912, -0.06562463939189911, -0.1758926808834076, -0.1831425130367279, -0.1239006295800209, -0.1155414879322052, -0.1164172813296318, 0.15365499258041382, -0.07425270974636078, 0.4652304947376251, -0.2960206866264343, -0.33967629075050354, -0.23517285287380219, 0.0977838858962059, -0.2720487415790558, -0.1077881008386612, 0.031488966196775436, -0.3171122074127197, 0.22783496975898743, 0.04680374264717102, 0.24422097206115723, 0.21211117506027222, 0.2209782600402832, 0.04652194306254387, -0.24910114705562592, 0.06072074547410011, -0.2737988531589508, 0.6104682087898254, 0.05761893093585968, -0.1199752539396286, 0.3298228979110718, 0.22804585099220276, -0.041748955845832825, 0.04150988534092903, 0.6623179912567139, 0.5221057534217834, 0.36180028319358826, 0.09108168631792068, -0.11469390243291855, 0.23420697450637817, 0.1228305846452713, -0.014761806465685368, 0.17361007630825043, 0.2521832585334778, -0.1960245966911316, 0.24716860055923462, 0.15071071684360504, -0.11467941105365753, 0.3636131286621094, -0.06445358693599701, 0.20040011405944824, -0.29094600677490234, 0.28443190455436707, -0.17783167958259583, 0.020577942952513695, -0.19672881066799164, -0.04218315705657005, -0.5328440070152283, 0.10240025818347931, 0.2991536259651184, -0.17903633415699005, 0.23910987377166748, -0.09700704365968704, 0.07179578393697739, 0.1840808093547821, 0.24527636170387268, 0.4780631959438324, 0.1257418692111969, -0.5874687433242798, 0.05412142723798752, -0.4772074222564697, 0.4764416813850403, 0.05921095609664917, 0.4164784252643585, -0.29253825545310974, 0.25833824276924133, -0.2482534945011139, -0.1623588651418686, 0.4818674325942993, 0.1885397881269455, -0.030882207676768303, 0.06821559369564056, -0.5626354217529297, 0.17880582809448242, 0.041029367595911026, -0.3143726885318756, 0.2532072365283966, -0.3407101333141327, 0.02912459522485733, 0.0009239783394150436, 0.03304683417081833, 0.22925694286823273, 0.0543099045753479, 0.07945362478494644, -0.09888015687465668, 0.3397127389907837, 0.1724281758069992, 0.38383594155311584, 0.0864267349243164, 0.01527230255305767, -0.06338399648666382, -0.11083226650953293, -0.2412475347518921, -0.11479862034320831, 0.03567245230078697, 0.22264473140239716, -0.5101047158241272, 0.054422587156295776, -0.38176530599594116, 0.20330505073070526, 0.24251295626163483, -0.21945400536060333, 0.05287982523441315, -0.09754300862550735, 0.019845249131321907, 0.016312386840581894, 0.4529065787792206, 0.40420830249786377, 0.09369044750928879, 0.4554375410079956, -0.3360859453678131, -0.1296241134405136, 0.5763474702835083, -0.5234946012496948, -0.2780390977859497, 0.11900371313095093, 0.44339126348495483, 0.3934995234012604, 0.0013255540980026126, -0.6530662775039673, -0.06597751379013062, 0.27898529171943665, -0.16010797023773193, -0.052802227437496185, 0.1729203760623932, -0.3497530519962311, -0.009456458501517773, 0.10649672150611877, 0.014876363798975945, 0.026049232110381126, -0.3596184253692627, 0.0831904485821724, -0.2089136242866516 ]
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.36117488145828247, -0.1505351960659027, -0.043187763541936874, 0.38722318410873413, 0.2670585811138153, -0.10684021562337875, 0.08155050128698349, 0.30455511808395386, -0.1409013718366623, 0.2166147530078888, -0.3760768473148346, -0.013459084555506706, 0.0852673351764679, 0.005194996949285269, -0.18599987030029297, -0.04606260731816292, 0.00347131653688848, -0.009413536638021469, 0.07728108018636703, -0.001064852112904191, -0.2850641906261444, 0.2279987782239914, 0.016346247866749763, 0.25543251633644104, -0.10162372142076492, -0.1028563529253006, -0.013552292250096798, -0.12158862501382828, -0.08570241928100586, -0.47428983449935913, 0.43568459153175354, 0.02818651683628559, -0.16046474874019623, 0.7841004133224487, -0.00011886379070347175, 0.09906422346830368, 0.24837186932563782, 0.025843709707260132, -0.07039535045623779, -0.371635764837265, 0.030529208481311798, -0.0560125894844532, 0.15529298782348633, -0.2752094268798828, 0.08796313405036926, -0.1430901736021042, 0.095548115670681, -0.5427469611167908, 0.38012510538101196, 0.16474346816539764, 0.15466754138469696, 0.5314356088638306, -0.48682156205177307, -0.1824195384979248, 0.12838569283485413, -0.057949114590883255, -0.050340306013822556, 0.5445218086242676, 0.0008055915823206306, 0.20440776646137238, 0.023588180541992188, 0.4144548177719116, -0.11863989382982254, 0.2631288766860962, 0.05707796290516853, 0.09715510159730911, 0.40603357553482056, -0.015864165499806404, 0.16569429636001587, -0.1240437775850296, 0.25705811381340027, -0.3838197588920593, -0.22552843391895294, 0.13827811181545258, -0.1987217366695404, -0.5372881293296814, 0.18510311841964722, 0.1369587779045105, -0.17830149829387665, -0.17635686695575714, -0.2779461443424225, 0.07205715030431747, -0.21210482716560364, -0.19637121260166168, 0.08150085061788559, -0.26872628927230835, -0.15741223096847534, 0.16433215141296387, 0.16940103471279144, 0.3121427893638611, 0.12401282787322998, 0.0018434829544276, -0.15531349182128906, -0.008267310447990894, -0.4027785062789917, 0.05425635352730751, -0.30371278524398804, -0.3437739312648773, -0.09539120644330978, 0.28829073905944824, 0.37896978855133057, -0.045193932950496674, 0.28402459621429443, 0.2224457859992981, 0.030922554433345795, 0.7004976868629456, 0.14985033869743347, 0.2902032136917114, 0.2009001523256302, 0.1810625195503235, -0.31000620126724243, -0.19136227667331696, 0.19901156425476074, -0.5310232639312744, 0.2414141297340393, 0.22001491487026215, -0.013255856931209564, -0.3235708475112915, -0.4480680823326111, 0.061548035591840744, 0.1938803642988205, -0.04671443998813629, 0.1330564022064209, 0.31950339674949646, 0.03391409292817116, 0.012323172762989998, 0.12787465751171112, 0.4262721538543701, -0.22094179689884186, 0.21000561118125916, -0.2910304665565491, 0.1002696305513382, -0.4435732662677765, 0.3646082878112793, 0.04746641963720322, -0.08391419053077698, 0.22430458664894104, -0.03204613924026489, 0.40319332480430603, -0.3089312016963959, 0.36521247029304504, -0.4421766400337219, -0.0029985904693603516, 0.09540858864784241, 0.07820145040750504, 0.2251213639974594, 0.29957130551338196, -0.09814009070396423, -0.08110471814870834, -0.07388950139284134, -0.18721053004264832, -0.14911121129989624, 0.5365411043167114, 0.15635830163955688, -0.013178639113903046, 0.4289543926715851, -0.34624189138412476, -0.07321064919233322, 0.3937605023384094, -0.21730969846248627, 0.06996887922286987, 0.006571530364453793, -0.4017104506492615, -0.3470822274684906, 0.14707478880882263, 0.35514378547668457, -0.2117377370595932, -0.07382579892873764, 0.292949914932251, 0.12982849776744843, -0.010282623581588268, 0.4685420095920563, -0.22015516459941864, 0.16263487935066223, -0.2866153419017792, -0.024594781920313835, 0.5620943903923035, -0.8298751711845398, -0.3216197192668915, 0.11762519180774689, -0.1634722501039505, -0.33326882123947144, 0.08252249658107758, 0.042998623102903366, 0.3266255259513855, -0.08760514110326767, 0.08907226473093033, -0.22432605922222137, 0.139523446559906, -0.15095290541648865, -0.3216230273246765, -0.3151450455188751, -0.0638335645198822, -0.2678596079349518, 0.2974456250667572, -0.04714018106460571, 0.2434973567724228, -0.20637503266334534, -0.06006806716322899, -0.12155701965093613, 0.020031780004501343, 0.24389292299747467, 0.18840819597244263, -0.028605233877897263, 0.09913501143455505, -0.28509095311164856, 0.29250290989875793, 0.14487344026565552, -0.5383439064025879, -0.2961367070674896, 0.16910579800605774, -0.2005109339952469, -0.1927506923675537, -0.08577693998813629, -0.07063968479633331, -0.1958032101392746, 0.06590215116739273, 0.1360589861869812, 0.22092165052890778, 0.2780214846134186, -0.057627834379673004, 0.3118055760860443, -0.05844737961888313, 0.07076796889305115, -0.09735005348920822, 0.07383131980895996, -0.12322819977998734, -0.2663716673851013, -0.09806004166603088, 0.07870817929506302, 0.376360684633255, -0.02260410413146019, -0.1681242287158966, 0.3127586841583252, -0.11685357987880707, 0.2160871922969818, 0.17923060059547424, 0.11884117871522903, 0.17213162779808044, -0.2322578877210617, 0.0048483130522072315, -0.0386071652173996, 0.19459374248981476, -0.09877978265285492, 0.40154939889907837, 0.2953324019908905, -0.022891314700245857, 0.12966197729110718, 0.27550292015075684, 0.017033865675330162, -0.10075195878744125, 0.028555694967508316, 0.17278636991977692, -0.19013085961341858, 0.30239129066467285, -0.0971512570977211, 0.0521637387573719, -0.11248904466629028, 0.09680274873971939, -0.10436510294675827, 0.13555823266506195, 0.1627228856086731, -0.0012204304803162813, -0.16955441236495972, -0.03695094212889671, 0.07328815013170242, -0.2711121439933777, 0.28890085220336914, 0.7128484845161438, 0.02290361560881138, 0.15263091027736664, 0.133012056350708, 0.018837736919522285, -0.17603260278701782, 0.14531636238098145, 0.20944295823574066, -0.1075589656829834, 0.09937924146652222, 0.16622214019298553, -0.08168710768222809, -0.036457162350416183, 0.09034089744091034, 0.03812244534492493, -0.02139546349644661, -0.16473916172981262, 0.3923787772655487, -0.02197176218032837, 0.07535526156425476, -0.535993218421936, 0.014177210628986359, -0.028815099969506264, -0.16891758143901825, -0.10039366036653519, 0.3601456582546234, 0.049968987703323364, 0.07074559479951859, -0.23019379377365112, 0.5003122091293335, -0.27543768286705017, 0.25755003094673157, 0.021313345059752464, -0.15510378777980804, -0.3020188510417938, -0.07128044217824936, 0.16850553452968597, 0.06055092439055443, 0.3412753641605377, -0.17549487948417664, -0.06994977593421936, -0.2088635265827179, -0.186923548579216, -0.044957228004932404, 0.28860005736351013, 0.48889490962028503, -0.0525457039475441, -0.13934838771820068, -0.3070414960384369, -0.3469008505344391, 0.31383270025253296, -0.404836505651474, -0.20791848003864288, -0.13243183493614197, 0.015043530613183975, -0.228984072804451, -0.18729467689990997, -0.10687609761953354, -0.024507541209459305, -0.2213674783706665, 0.20838622748851776, -0.20012491941452026, 0.03607257455587387, 0.0712471455335617, -0.17405597865581512, 0.11427585780620575, 0.07485555112361908, 0.11120127141475677, -0.27788200974464417, -0.19417481124401093, 0.022259481251239777, -0.40089547634124756, -0.19502823054790497, -0.04202103614807129, 0.13637769222259521, 0.459974467754364, 0.23688451945781708, -0.42594894766807556, -0.4368482828140259, -0.1682194322347641, -0.11737605929374695, 0.10201491415500641, -0.04186118021607399, 0.05511821433901787, -0.06822989881038666, -0.13354361057281494, -0.1503501534461975, -0.19333133101463318, 0.5020683407783508, -0.2520495653152466, 0.06857389211654663, -0.16039596498012543, -0.12222671508789062, 0.04429991543292999, 0.8054541349411011, 0.41464361548423767, 0.08388224989175797, 0.314287394285202, 0.20357175171375275, 0.3654494285583496, 0.003969226498156786, -0.38868626952171326, 0.1884920597076416, 0.02006565034389496, -0.2714679539203644, 0.12796363234519958, -0.08590023964643478, 0.10546611249446869, -0.14740020036697388, -0.11587455868721008, -0.21376630663871765, -0.09552493691444397, -0.14897111058235168, -0.2166229486465454, 0.23570625483989716, 0.08295609056949615, 0.09117264300584793, -0.3216690719127655, 0.027716243639588356, 0.22083109617233276, 0.23617978394031525, -0.2803718149662018, 0.024319475516676903, -0.14500795304775238, -0.1817695051431656, -0.22255423665046692, 0.5148032903671265, 0.08916252851486206, 0.24469976127147675, -0.2091464400291443, 0.14087972044944763, 0.0523320697247982, -0.07097116857767105, 0.6638153791427612, -0.07394711673259735, -0.08686624467372894, -0.11098024249076843, -0.019375506788492203, -0.40940409898757935, -0.14190232753753662, 0.055074386298656464, 0.13664263486862183, 0.17982029914855957, 0.4839473366737366, -0.12085965275764465, -0.005179452244192362, -0.015305510722100735, 0.012095251120626926, -0.185464546084404, -0.2006290704011917, -0.3357679545879364, -0.3831157088279724, 0.07327698916196823, 0.073748379945755, -0.019512876868247986, 0.04521404951810837, -0.09378624707460403, 0.09406886249780655, -0.17311277985572815, 0.047434426844120026, 0.24365657567977905, -0.013380341231822968, 0.5679038166999817, -0.36991024017333984, 0.11976199597120285, 0.27744317054748535, 0.08131673187017441, 0.2905482351779938, 0.2618482708930969, -0.14876170456409454, -0.414673775434494, 0.11547940969467163, 0.08396829664707184, -0.006802045740187168, 0.4959113895893097, -0.17064692080020905, 0.19981133937835693, -0.0143731152638793, -0.05250658467411995, 0.12229172885417938, 0.07163924723863602, 0.2608550488948822, 0.30125734210014343, -0.08179699629545212, -0.18036063015460968, 0.0001942750532180071, 0.4088630676269531, -0.11109624803066254, 0.4448743164539337, -0.3718874752521515, -0.13043071329593658, 0.18317405879497528, 0.20753970742225647, 1.1415232419967651, 0.10962042212486267, 0.09404259920120239, 0.3654055893421173, -0.378801167011261, 0.144881010055542, -0.13388323783874512, 0.35212278366088867, -0.2913301885128021, -0.426279217004776, 0.044398728758096695, -0.4234817326068878, 0.0784720778465271, -0.25822606682777405, -0.09879375994205475, 0.29940247535705566, -0.25757095217704773, 0.022853810340166092, -0.16757504642009735, -0.009479978121817112, -0.17644596099853516, 0.1637747436761856, 0.27844056487083435, 0.11873915791511536, -0.13473764061927795, 0.1918259859085083, -0.19577939808368683, -0.20621971786022186, -0.2727334201335907, -0.12412827461957932, -0.19990989565849304, 0.12547586858272552, -0.3591463267803192, 0.5477300882339478, -0.028982384130358696, -0.1873503178358078, -0.05643811821937561, 0.31791722774505615, 1.0567493438720703, -0.03375102952122688, -0.05322730913758278, 0.11152058839797974, 0.13227452337741852, 0.0769810751080513, 0.0788673460483551, -0.4823548495769501, 0.12167885154485703, -0.16219937801361084, -0.20465870201587677, -0.010240554809570312, 0.17127420008182526, 0.05454825609922409, 0.14362303912639618, 0.006503721699118614, -0.04427111893892288, -0.1453597992658615, 0.07130785286426544, 0.053824059665203094, -0.038230810314416885, -0.14293991029262543, 0.03658600524067879, -0.050325505435466766, -0.20491711795330048, 0.12930935621261597, -0.21363919973373413, -0.35866299271583557, 0.1601787507534027, 0.23918204009532928, 0.3221605718135834, -0.3406069874763489, 0.5207621455192566, -0.4181827902793884, -0.16472090780735016, -0.12292814999818802, -0.4281485974788666, -0.10484544932842255, -0.48585638403892517, 0.35194823145866394, -0.32848307490348816, -0.02303829789161682, -0.12904176115989685, 0.42358720302581787, 0.369601845741272, 0.20826371014118195, -0.051432982087135315, -0.25757384300231934, -0.3079735040664673, 0.06654221564531326, -0.2560640573501587, 0.20943613350391388, -0.06678129732608795, 0.20331713557243347, -0.11510539799928665, 0.24687740206718445, -0.2290826439857483, 0.14910809695720673, -0.22358091175556183, -0.05786173790693283, -0.023992707952857018, -0.3083403706550598, 0.2739686071872711, 0.058367010205984116, -0.08296166360378265, 0.24497470259666443, -0.41506773233413696, -0.10257475078105927, -0.17030708491802216, 0.16700199246406555, -0.201088085770607, -0.16634498536586761, -0.1639757603406906, -0.08493876457214355, 0.2917103171348572, -0.0966840609908104, 0.03852374479174614, 0.49527543783187866, -0.004726850893348455, -0.18257082998752594, -0.08010133355855942, 0.3579127788543701, 0.07604140788316727, 0.3112907409667969, 0.0722690299153328, -0.08911830186843872, 0.045570600777864456, 0.2249443382024765, -0.17519783973693848, -0.1544536054134369, -0.21517489850521088, -0.10359588265419006, 0.1023811548948288, 0.11730197817087173, -0.23846924304962158, -0.37893059849739075, -0.2773681879043579, 0.04926227778196335, 0.23944377899169922, 0.1593896746635437, -0.022152937948703766, -0.16762755811214447, 0.04527246579527855, 0.12178033590316772, 0.0035551050677895546, 0.010083211585879326, 0.07127999514341354, -0.06657139211893082, -0.26974382996559143, 0.2501278519630432, 0.43670418858528137, -0.059540022164583206, 0.2153591513633728, 0.0835733711719513, 0.3153460919857025, -0.3591233193874359, 0.4809868037700653, -0.30798059701919556, 0.25621452927589417, 0.229185089468956, 0.28968188166618347, 0.14021649956703186, 0.1642453819513321, -0.1615498661994934, -0.2578156292438507, 0.32888272404670715, 0.10091406852006912, -0.06562463939189911, -0.1758926808834076, -0.1831425130367279, -0.1239006295800209, -0.1155414879322052, -0.1164172813296318, 0.15365499258041382, -0.07425270974636078, 0.4652304947376251, -0.2960206866264343, -0.33967629075050354, -0.23517285287380219, 0.0977838858962059, -0.2720487415790558, -0.1077881008386612, 0.031488966196775436, -0.3171122074127197, 0.22783496975898743, 0.04680374264717102, 0.24422097206115723, 0.21211117506027222, 0.2209782600402832, 0.04652194306254387, -0.24910114705562592, 0.06072074547410011, -0.2737988531589508, 0.6104682087898254, 0.05761893093585968, -0.1199752539396286, 0.3298228979110718, 0.22804585099220276, -0.041748955845832825, 0.04150988534092903, 0.6623179912567139, 0.5221057534217834, 0.36180028319358826, 0.09108168631792068, -0.11469390243291855, 0.23420697450637817, 0.1228305846452713, -0.014761806465685368, 0.17361007630825043, 0.2521832585334778, -0.1960245966911316, 0.24716860055923462, 0.15071071684360504, -0.11467941105365753, 0.3636131286621094, -0.06445358693599701, 0.20040011405944824, -0.29094600677490234, 0.28443190455436707, -0.17783167958259583, 0.020577942952513695, -0.19672881066799164, -0.04218315705657005, -0.5328440070152283, 0.10240025818347931, 0.2991536259651184, -0.17903633415699005, 0.23910987377166748, -0.09700704365968704, 0.07179578393697739, 0.1840808093547821, 0.24527636170387268, 0.4780631959438324, 0.1257418692111969, -0.5874687433242798, 0.05412142723798752, -0.4772074222564697, 0.4764416813850403, 0.05921095609664917, 0.4164784252643585, -0.29253825545310974, 0.25833824276924133, -0.2482534945011139, -0.1623588651418686, 0.4818674325942993, 0.1885397881269455, -0.030882207676768303, 0.06821559369564056, -0.5626354217529297, 0.17880582809448242, 0.041029367595911026, -0.3143726885318756, 0.2532072365283966, -0.3407101333141327, 0.02912459522485733, 0.0009239783394150436, 0.03304683417081833, 0.22925694286823273, 0.0543099045753479, 0.07945362478494644, -0.09888015687465668, 0.3397127389907837, 0.1724281758069992, 0.38383594155311584, 0.0864267349243164, 0.01527230255305767, -0.06338399648666382, -0.11083226650953293, -0.2412475347518921, -0.11479862034320831, 0.03567245230078697, 0.22264473140239716, -0.5101047158241272, 0.054422587156295776, -0.38176530599594116, 0.20330505073070526, 0.24251295626163483, -0.21945400536060333, 0.05287982523441315, -0.09754300862550735, 0.019845249131321907, 0.016312386840581894, 0.4529065787792206, 0.40420830249786377, 0.09369044750928879, 0.4554375410079956, -0.3360859453678131, -0.1296241134405136, 0.5763474702835083, -0.5234946012496948, -0.2780390977859497, 0.11900371313095093, 0.44339126348495483, 0.3934995234012604, 0.0013255540980026126, -0.6530662775039673, -0.06597751379013062, 0.27898529171943665, -0.16010797023773193, -0.052802227437496185, 0.1729203760623932, -0.3497530519962311, -0.009456458501517773, 0.10649672150611877, 0.014876363798975945, 0.026049232110381126, -0.3596184253692627, 0.0831904485821724, -0.2089136242866516 ]
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.04567089304327965, 0.2057337909936905, 0.1531793475151062, 0.00014115771045908332, 0.7921323180198669, 0.3068524897098541, 0.021130815148353577, 0.15271292626857758, 0.046794962137937546, 0.23042605817317963, -0.2809545397758484, -0.24164363741874695, -0.09022644907236099, -0.06045003980398178, -0.07645385712385178, 0.07907016575336456, -0.12242265045642853, 0.03289417922496796, -0.14354032278060913, -0.08672990649938583, -0.19259749352931976, 0.031935546547174454, -0.2509390115737915, -0.13227036595344543, -0.10359150171279907, -0.09470786154270172, -0.33412468433380127, -0.5228334665298462, 0.2897118031978607, 0.11794889718294144, 0.42384856939315796, 0.6812456846237183, -0.00011708560487022623, 0.05326547846198082, 0.12049674987792969, -0.12161436676979065, -0.26418158411979675, -0.2320631444454193, 0.13923360407352448, -0.05162208527326584, 0.03367460146546364, -0.3547694683074951, 0.26055940985679626, -0.3312714993953705, -0.0172064621001482, -0.22358369827270508, 0.19873757660388947, 0.2407110035419464, 0.1273106187582016, 0.4878687262535095, -0.013065815903246403, 0.06860614567995071, 0.045241862535476685, 0.25054386258125305, -0.019511977210640907, 0.19714337587356567, 0.1916247010231018, 0.010228564031422138, -0.3597646951675415, 0.1168685108423233, -0.1690705418586731, 0.047523487359285355, 0.1359681636095047, -0.11273828893899918, -0.21776032447814941, -0.1320606917142868, -0.032683901488780975, -0.07962965220212936, 0.5732843279838562, -0.24739810824394226, -0.33389028906822205, -0.16551539301872253, -0.22152981162071228, -0.26730310916900635, 0.3192119598388672, -0.16507220268249512, -0.15860408544540405, -0.21398991346359253, 0.1157575249671936, 0.24057111144065857, -0.2040269374847412, 0.13671420514583588, -0.25915947556495667, 0.20869003236293793, -0.04985048994421959, 0.3045004904270172, 0.2167702615261078, -0.2556965947151184, 0.3407103419303894, 0.10055146366357803, 0.044049255549907684, 0.27522891759872437, -0.5098055601119995, -0.25157198309898376, 0.09336508065462112, -0.4813282787799835, -0.08895178884267807, 0.18174661695957184, 0.2512759566307068, 0.06592321395874023, -0.02672155387699604, 0.24206528067588806, 0.4608970582485199, 0.18674716353416443, 0.16861023008823395, 0.3430076837539673, 0.05600236356258392, -0.10084076970815659, 0.11158206313848495, -0.06283756345510483, -0.3309631645679474, -0.3040354251861572, 0.22978706657886505, 0.10076110064983368, 0.23551498353481293, 0.06380417197942734, -0.24075189232826233, -0.001041248207911849, -0.2854395806789398, -0.14088380336761475, 0.11154261231422424, 0.14669738709926605, 0.21548189222812653, 0.07846413552761078, -0.021196546033024788, 0.04944770038127899, -0.029459156095981598, -0.10105536878108978, -0.06310301274061203, 0.12259082496166229, -0.23600396513938904, 0.006233151536434889, 0.26921290159225464, -0.04495226964354515, -0.0005978822591714561, 0.13793183863162994, -0.01634957641363144, 0.10649406164884567, 0.1838306188583374, -0.167745903134346, 0.27512115240097046, -0.0668303593993187, 0.0526379756629467, 0.32590755820274353, 0.24278868734836578, 0.052704159170389175, -0.15170423686504364, 0.006441814359277487, -0.42523664236068726, -0.08540847152471542, -0.07113044708967209, 0.13438493013381958, -0.06572739034891129, -0.059654802083969116, -0.40290170907974243, -0.1930614560842514, 0.34761130809783936, -0.15928401052951813, 0.09902108460664749, -0.2618940770626068, 0.06796486675739288, -0.09494339674711227, 0.07169940322637558, 0.3785114288330078, -0.4588417410850525, -0.1389314979314804, 0.1558687537908554, 0.1005789116024971, 0.26835396885871887, 0.28002801537513733, -0.2775183916091919, 0.5750994682312012, -0.40414103865623474, 0.31461501121520996, 0.3382754623889923, -0.4575731158256531, -0.30107253789901733, 0.30232399702072144, -0.17285874485969543, 0.18284395337104797, 0.13110622763633728, 0.02209637127816677, 0.4072543680667877, -0.21179884672164917, 0.12621451914310455, 0.13122238218784332, -0.17541393637657166, -0.08449865132570267, -0.018889958038926125, 0.407356858253479, 0.5204416513442993, 0.05792117491364479, 0.189907968044281, 0.09117452800273895, -0.25631245970726013, 0.18665476143360138, 0.04072454944252968, -0.16240176558494568, 0.07528019696474075, 0.1461818814277649, 0.0872931107878685, 0.1154017299413681, 0.204713374376297, -0.15413381159305573, -0.24141459167003632, 0.017452934756875038, 0.0847349613904953, 0.11033988744020462, -0.15696179866790771, 0.10110823065042496, 0.01562909036874771, 0.18338891863822937, -0.40930411219596863, -0.14764469861984253, 0.10579892247915268, 0.33917737007141113, -0.10850515216588974, -0.22628001868724823, -0.27825722098350525, 0.010197220370173454, -0.15022414922714233, 0.1229051798582077, -0.317707359790802, 0.07564622163772583, 0.0731084793806076, -0.16212080419063568, -0.11099260300397873, 0.0012572618434205651, 0.21855385601520538, -0.23059546947479248, -0.01987609639763832, 0.15274372696876526, 0.07335060089826584, 0.08376605808734894, -0.14092054963111877, 0.08403639495372772, 0.20277543365955353, -0.08059154450893402, -0.03504219278693199, 0.02632446400821209, 0.06335418671369553, -0.24634669721126556, 0.286027193069458, 0.35574236512184143, -0.04151236638426781, 0.5438953042030334, -0.18461467325687408, 0.18655680119991302, 0.08548327535390854, 0.14296309649944305, -0.2297750562429428, 0.12143771350383759, 0.29159480333328247, 0.16527892649173737, 0.2727050185203552, -0.07423806190490723, -0.10618755966424942, -0.016254672780632973, 0.13578644394874573, 0.03465661033987999, -0.16728940606117249, 0.06450590491294861, -0.20232929289340973, 0.07873270660638809, 0.14318856596946716, -0.358334481716156, 0.29362568259239197, -0.04196467250585556, 0.13556282222270966, -0.22973184287548065, 0.10938747972249985, 0.05487809330224991, -0.006824130192399025, 0.13736703991889954, 0.050109509378671646, 0.1365746259689331, -0.01798888109624386, 0.03299111872911453, -0.19934488832950592, -0.26190370321273804, -0.03216375783085823, 0.40304750204086304, -0.20175045728683472, 0.4200816750526428, -0.22512324154376984, -0.08061444014310837, -0.13573716580867767, -0.4637429416179657, -0.12441511452198029, -0.48858314752578735, -0.2934890389442444, 0.4377201795578003, -0.05235600098967552, 0.2884226143360138, 0.1593029946088791, 0.06599413603544235, 0.6007108688354492, -0.1201820820569992, -0.12993401288986206, -0.1651609092950821, -0.14348657429218292, 0.0020232941024005413, 0.3916655480861664, -0.3905925452709198, 0.3192390501499176, -0.148573100566864, -0.036440324038267136, -0.49318209290504456, -0.1713028848171234, 0.23434658348560333, -0.25151029229164124, -0.10610954463481903, 0.25012311339378357, 0.16031186282634735, -0.12767457962036133, -0.34623590111732483, 0.23602226376533508, -0.09714049100875854, -0.05986059829592705, 0.3538428843021393, -0.01785856857895851, 0.1648852527141571, 0.19423776865005493, -0.16180571913719177, -0.11437458544969559, -0.2210422307252884, 0.14889411628246307, -0.024225687608122826, 0.3098035454750061, 0.1279519945383072, 0.050877295434474945, 0.06881891191005707, 0.05388644337654114, -0.08853526413440704, -0.052917711436748505, -0.4608558118343353, 0.4211563467979431, -0.31889814138412476, -0.29355135560035706, -0.0610978901386261, -0.0051951222121715546, 0.3583405613899231, 0.37487897276878357, -0.2954477071762085, -0.001978724729269743, 0.19680263102054596, 0.09606010466814041, -0.1780666708946228, 0.013301009312272072, 0.1617017537355423, 0.11657120287418365, -0.052686143666505814, -0.05286724865436554, 0.14581717550754547, 0.17108054459095, -0.18763349950313568, 0.25809866189956665, 0.15930265188217163, 0.47653642296791077, 0.26140469312667847, 0.660686731338501, 0.03890707343816757, -0.38583680987358093, 0.3321019113063812, -0.14006444811820984, -0.0007828244124539196, 0.08665741980075836, -0.6534717679023743, 0.18306638300418854, -0.28974252939224243, -0.026324165984988213, -0.10860789567232132, -0.36375224590301514, -0.20201383531093597, -0.16557028889656067, 0.16914470493793488, -0.027160707861185074, -0.3952350914478302, 0.46571069955825806, -0.43040141463279724, 0.28384560346603394, -0.0792965218424797, 0.13681206107139587, -0.617990255355835, -0.01597028411924839, 0.13402876257896423, 0.0014621308073401451, 0.2550835609436035, -0.08203312754631042, -0.3944140374660492, 0.07718772441148758, -0.46588826179504395, 0.23202817142009735, 0.08530648797750473, 0.7238261103630066, 0.18516764044761658, -0.2038860321044922, -0.160545215010643, -0.03389395773410797, 0.7261366844177246, 0.2351623922586441, -0.013185759074985981, 0.09821507334709167, -0.3114112913608551, -0.43812569975852966, -0.0794287696480751, -0.27742698788642883, 0.6424893140792847, 0.1563342958688736, 0.2806638479232788, -0.23284605145454407, -0.1301862895488739, 0.11599079519510269, 0.10674482583999634, -0.21584412455558777, -0.27482280135154724, -0.07602405548095703, -0.06804362684488297, -0.3532243072986603, -0.01409108191728592, 0.04383956640958786, 0.2820526361465454, 0.09236977249383926, 0.022060725837945938, -0.3040834367275238, -0.02766602672636509, 0.3623531460762024, -0.042786143720149994, 0.06607011705636978, -0.16148130595684052, 0.15831466019153595, 0.19364042580127716, 0.24007706344127655, 0.6411281824111938, 0.3070533573627472, 0.2450912594795227, -0.45245179533958435, 0.3747631311416626, 0.056793056428432465, 0.2789524793624878, 0.12668153643608093, -0.11202562600374222, -0.04638410732150078, -0.3257368206977844, 0.05009138211607933, -0.4352756142616272, 0.5216373801231384, 0.5002294182777405, 0.1470029503107071, -0.5732988715171814, -0.34037792682647705, 0.20203836262226105, 0.11379589885473251, 0.18212959170341492, 0.7328401207923889, -0.1325458139181137, -0.138323113322258, 0.13051991164684296, 0.13689595460891724, 0.7372883558273315, 0.05995900556445122, 0.12415503710508347, 0.4110814929008484, 0.5742582082748413, 0.28740355372428894, -0.5326947569847107, 0.09997884184122086, -0.22785119712352753, -0.04776019603013992, -0.16294699907302856, -0.25533148646354675, 0.03875837102532387, 0.17045800387859344, -0.05964883789420128, 0.1802619844675064, -0.03505523502826691, 0.5183289051055908, 0.0984523594379425, 0.06107664853334427, -0.31106215715408325, -0.29220253229141235, 0.09589289128780365, 0.11329385638237, -0.16429783403873444, 0.1464625597000122, -0.07750992476940155, -0.07499731332063675, 0.1822143942117691, -0.282629132270813, -0.2507401406764984, -0.025755662471055984, -0.22850854694843292, 0.10249354690313339, 0.03291673585772514, -0.4766199588775635, 0.10104285925626755, 0.013342461548745632, 0.05072798952460289, -0.09035956114530563, 0.07236344367265701, -0.22122687101364136, -0.04071774333715439, -0.13065050542354584, -0.13286234438419342, -0.08464262634515762, 0.40968599915504456, 0.12493743002414703, 0.13089628517627716, 0.28170639276504517, 0.23024597764015198, -0.34945499897003174, 0.08346489816904068, 0.22286628186702728, 0.23815323412418365, -0.5538778901100159, 0.10674888640642166, -0.11697680503129959, -0.20017221570014954, -0.2225140482187271, 0.07512723654508591, 0.0035707345232367516, -0.32643207907676697, 0.006172455847263336, -0.15819565951824188, -0.0941702201962471, 0.09128479659557343, 0.41936710476875305, 0.09900692850351334, -0.4401392340660095, 0.7563033103942871, 0.18333357572555542, -0.23787526786327362, -0.16016051173210144, 0.130414679646492, 0.455411821603775, -0.26989614963531494, 0.10516224056482315, -0.36811673641204834, 0.19371268153190613, -0.20565113425254822, 0.09545373916625977, 0.0749826729297638, 0.001124754548072815, -0.08470624685287476, -0.31852927803993225, -0.37638553977012634, 0.06417270749807358, -0.1275971233844757, 0.2709618806838989, 0.06571456789970398, 0.14424102008342743, -0.24248671531677246, 0.10846815258264542, -0.22840870916843414, -0.05996079742908478, -0.13040697574615479, 0.2170202136039734, 0.06876563280820847, -0.11554941534996033, -0.029965637251734734, 0.1643117517232895, 0.08759868144989014, 0.36493200063705444, 0.07729557901620865, -0.21717284619808197, -0.11241094022989273, 0.10818671435117722, 0.12695473432540894, -0.2696899473667145, 0.0701320469379425, -0.021665183827280998, -0.010612446814775467, -0.31688517332077026, 0.09200885891914368, 0.059307921677827835, -0.03379911929368973, 0.28279075026512146, 0.3835870027542114, 0.045311927795410156, 0.10487302392721176, 0.020299162715673447, 0.2444036900997162, 0.26442813873291016, 0.18606127798557281, 0.32218509912490845, -0.03469788655638695, -0.06147909164428711, -0.250739187002182, 0.3639916181564331, 0.37819868326187134, -0.11715089529752731, 0.15625885128974915, -0.4842175543308258, 0.13589715957641602, -0.13094840943813324, 0.25355204939842224, 0.6113283038139343, -0.35448983311653137, -0.15539126098155975, 0.1691133677959442, 0.11266239732503891, -0.00454839039593935, 0.03866642713546753, 0.06095290556550026, -0.057821184396743774, -0.005827321670949459, 0.19322985410690308, -0.057136863470077515, -0.061165377497673035, 0.13544191420078278, -0.08294590562582016, 0.2889593541622162, -0.16346599161624908, 0.1883114129304886, 0.06417734175920486, -0.4278976619243622, -0.08586549758911133, 0.3677486777305603, 0.2824949622154236, 0.10133559256792068, 0.27844250202178955, -0.10787998139858246, 0.42732128500938416, 0.0708392783999443, -0.24930402636528015, -0.01658814214169979, -0.4929736852645874, -0.3299539387226105, 0.1111973226070404, 0.24633602797985077, 0.19480201601982117, 0.048969071358442307, 0.32001936435699463, -0.07998964935541153, -0.1117727980017662, -0.021363943815231323, 0.1956695020198822, -0.2775018811225891, 0.0963105708360672, -0.3862150013446808, -0.22133511304855347, -0.20778825879096985, -0.10474865883588791, -0.07726956903934479, -0.18061235547065735, 0.0019157897913828492, 0.11878765374422073, -0.1874994933605194, -0.4298027455806732, 0.06275037676095963, -0.004547113552689552, -0.11235172301530838, -0.3342284858226776, 0.21795985102653503, 0.16026324033737183, 0.11708470433950424, 0.034908801317214966, 0.2651888132095337, 0.5087575316429138, 0.4610845744609833, -0.149446040391922, 0.1769152134656906, -0.5010873079299927, -0.19116173684597015, -0.06311257183551788, 0.11251812428236008, -0.41489025950431824, -0.10147624462842941, 0.3867385685443878, 0.08408328890800476, -0.11434445530176163, -0.21536731719970703, 0.13407421112060547, 0.07359402626752853, 0.00014806838589720428, 0.12479186803102493, -0.08155675232410431, 0.04142782837152481, -0.08147518336772919, -0.04416905716061592, -0.4062020778656006, -0.11823376268148422, 0.46783486008644104, 0.11666380614042282, 0.19685938954353333, 0.02075382135808468, 0.05896227806806564, -0.25033921003341675, 0.4257992208003998, 0.4754779636859894, 0.2222498655319214, -0.40928971767425537, -0.2357502430677414, -0.29587048292160034, 0.3727259635925293, -0.12138864398002625, -0.19496488571166992, -0.019623028114438057, 0.16514822840690613, 0.3228282332420349, 0.26910972595214844, 0.24353010952472687, -0.14532318711280823, -0.07103787362575531, 0.3360806107521057, -0.3235667049884796, -0.3320513367652893, 0.0356336310505867, 0.23942996561527252, -0.06713168323040009, -0.2778092324733734, 0.23340687155723572, -0.10086072236299515, 0.13328294456005096, -0.20465685427188873, -0.300801157951355, 0.08007332682609558, 0.044445574283599854, 0.4428640902042389, 0.18970048427581787, 0.4272846281528473, 0.09459996223449707, 0.06287752091884613, -0.27842122316360474, -0.23615741729736328, -0.1914743334054947, 0.0452256016433239, 0.044853631407022476, 0.21423564851284027, -0.032453011721372604, -0.1344611942768097, -0.5011917352676392, 0.21689610183238983, -0.10915246605873108, -0.29114118218421936, -0.3574865162372589, 0.27954575419425964, 0.003716742852702737, 0.07022737711668015, -0.07147300243377686, 0.2456233948469162, 0.21205797791481018, 0.5372602939605713, -0.36727648973464966, -0.2944159209728241, 0.42163291573524475, -0.6915376782417297, -0.490726500749588, 0.02503477968275547, -0.19890600442886353, 0.1786554753780365, 0.2703247368335724, -0.5640617609024048, 0.0031028210651129484, 0.317204087972641, -0.16942070424556732, -0.1327282190322876, 0.0034335588570684195, 0.09697714447975159, 0.024015173316001892, -0.16893544793128967, 0.38899511098861694, 0.10353585332632065, -0.035018157213926315, -0.017749004065990448, -0.2236272245645523 ]
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.04567089304327965, 0.2057337909936905, 0.1531793475151062, 0.00014115771045908332, 0.7921323180198669, 0.3068524897098541, 0.021130815148353577, 0.15271292626857758, 0.046794962137937546, 0.23042605817317963, -0.2809545397758484, -0.24164363741874695, -0.09022644907236099, -0.06045003980398178, -0.07645385712385178, 0.07907016575336456, -0.12242265045642853, 0.03289417922496796, -0.14354032278060913, -0.08672990649938583, -0.19259749352931976, 0.031935546547174454, -0.2509390115737915, -0.13227036595344543, -0.10359150171279907, -0.09470786154270172, -0.33412468433380127, -0.5228334665298462, 0.2897118031978607, 0.11794889718294144, 0.42384856939315796, 0.6812456846237183, -0.00011708560487022623, 0.05326547846198082, 0.12049674987792969, -0.12161436676979065, -0.26418158411979675, -0.2320631444454193, 0.13923360407352448, -0.05162208527326584, 0.03367460146546364, -0.3547694683074951, 0.26055940985679626, -0.3312714993953705, -0.0172064621001482, -0.22358369827270508, 0.19873757660388947, 0.2407110035419464, 0.1273106187582016, 0.4878687262535095, -0.013065815903246403, 0.06860614567995071, 0.045241862535476685, 0.25054386258125305, -0.019511977210640907, 0.19714337587356567, 0.1916247010231018, 0.010228564031422138, -0.3597646951675415, 0.1168685108423233, -0.1690705418586731, 0.047523487359285355, 0.1359681636095047, -0.11273828893899918, -0.21776032447814941, -0.1320606917142868, -0.032683901488780975, -0.07962965220212936, 0.5732843279838562, -0.24739810824394226, -0.33389028906822205, -0.16551539301872253, -0.22152981162071228, -0.26730310916900635, 0.3192119598388672, -0.16507220268249512, -0.15860408544540405, -0.21398991346359253, 0.1157575249671936, 0.24057111144065857, -0.2040269374847412, 0.13671420514583588, -0.25915947556495667, 0.20869003236293793, -0.04985048994421959, 0.3045004904270172, 0.2167702615261078, -0.2556965947151184, 0.3407103419303894, 0.10055146366357803, 0.044049255549907684, 0.27522891759872437, -0.5098055601119995, -0.25157198309898376, 0.09336508065462112, -0.4813282787799835, -0.08895178884267807, 0.18174661695957184, 0.2512759566307068, 0.06592321395874023, -0.02672155387699604, 0.24206528067588806, 0.4608970582485199, 0.18674716353416443, 0.16861023008823395, 0.3430076837539673, 0.05600236356258392, -0.10084076970815659, 0.11158206313848495, -0.06283756345510483, -0.3309631645679474, -0.3040354251861572, 0.22978706657886505, 0.10076110064983368, 0.23551498353481293, 0.06380417197942734, -0.24075189232826233, -0.001041248207911849, -0.2854395806789398, -0.14088380336761475, 0.11154261231422424, 0.14669738709926605, 0.21548189222812653, 0.07846413552761078, -0.021196546033024788, 0.04944770038127899, -0.029459156095981598, -0.10105536878108978, -0.06310301274061203, 0.12259082496166229, -0.23600396513938904, 0.006233151536434889, 0.26921290159225464, -0.04495226964354515, -0.0005978822591714561, 0.13793183863162994, -0.01634957641363144, 0.10649406164884567, 0.1838306188583374, -0.167745903134346, 0.27512115240097046, -0.0668303593993187, 0.0526379756629467, 0.32590755820274353, 0.24278868734836578, 0.052704159170389175, -0.15170423686504364, 0.006441814359277487, -0.42523664236068726, -0.08540847152471542, -0.07113044708967209, 0.13438493013381958, -0.06572739034891129, -0.059654802083969116, -0.40290170907974243, -0.1930614560842514, 0.34761130809783936, -0.15928401052951813, 0.09902108460664749, -0.2618940770626068, 0.06796486675739288, -0.09494339674711227, 0.07169940322637558, 0.3785114288330078, -0.4588417410850525, -0.1389314979314804, 0.1558687537908554, 0.1005789116024971, 0.26835396885871887, 0.28002801537513733, -0.2775183916091919, 0.5750994682312012, -0.40414103865623474, 0.31461501121520996, 0.3382754623889923, -0.4575731158256531, -0.30107253789901733, 0.30232399702072144, -0.17285874485969543, 0.18284395337104797, 0.13110622763633728, 0.02209637127816677, 0.4072543680667877, -0.21179884672164917, 0.12621451914310455, 0.13122238218784332, -0.17541393637657166, -0.08449865132570267, -0.018889958038926125, 0.407356858253479, 0.5204416513442993, 0.05792117491364479, 0.189907968044281, 0.09117452800273895, -0.25631245970726013, 0.18665476143360138, 0.04072454944252968, -0.16240176558494568, 0.07528019696474075, 0.1461818814277649, 0.0872931107878685, 0.1154017299413681, 0.204713374376297, -0.15413381159305573, -0.24141459167003632, 0.017452934756875038, 0.0847349613904953, 0.11033988744020462, -0.15696179866790771, 0.10110823065042496, 0.01562909036874771, 0.18338891863822937, -0.40930411219596863, -0.14764469861984253, 0.10579892247915268, 0.33917737007141113, -0.10850515216588974, -0.22628001868724823, -0.27825722098350525, 0.010197220370173454, -0.15022414922714233, 0.1229051798582077, -0.317707359790802, 0.07564622163772583, 0.0731084793806076, -0.16212080419063568, -0.11099260300397873, 0.0012572618434205651, 0.21855385601520538, -0.23059546947479248, -0.01987609639763832, 0.15274372696876526, 0.07335060089826584, 0.08376605808734894, -0.14092054963111877, 0.08403639495372772, 0.20277543365955353, -0.08059154450893402, -0.03504219278693199, 0.02632446400821209, 0.06335418671369553, -0.24634669721126556, 0.286027193069458, 0.35574236512184143, -0.04151236638426781, 0.5438953042030334, -0.18461467325687408, 0.18655680119991302, 0.08548327535390854, 0.14296309649944305, -0.2297750562429428, 0.12143771350383759, 0.29159480333328247, 0.16527892649173737, 0.2727050185203552, -0.07423806190490723, -0.10618755966424942, -0.016254672780632973, 0.13578644394874573, 0.03465661033987999, -0.16728940606117249, 0.06450590491294861, -0.20232929289340973, 0.07873270660638809, 0.14318856596946716, -0.358334481716156, 0.29362568259239197, -0.04196467250585556, 0.13556282222270966, -0.22973184287548065, 0.10938747972249985, 0.05487809330224991, -0.006824130192399025, 0.13736703991889954, 0.050109509378671646, 0.1365746259689331, -0.01798888109624386, 0.03299111872911453, -0.19934488832950592, -0.26190370321273804, -0.03216375783085823, 0.40304750204086304, -0.20175045728683472, 0.4200816750526428, -0.22512324154376984, -0.08061444014310837, -0.13573716580867767, -0.4637429416179657, -0.12441511452198029, -0.48858314752578735, -0.2934890389442444, 0.4377201795578003, -0.05235600098967552, 0.2884226143360138, 0.1593029946088791, 0.06599413603544235, 0.6007108688354492, -0.1201820820569992, -0.12993401288986206, -0.1651609092950821, -0.14348657429218292, 0.0020232941024005413, 0.3916655480861664, -0.3905925452709198, 0.3192390501499176, -0.148573100566864, -0.036440324038267136, -0.49318209290504456, -0.1713028848171234, 0.23434658348560333, -0.25151029229164124, -0.10610954463481903, 0.25012311339378357, 0.16031186282634735, -0.12767457962036133, -0.34623590111732483, 0.23602226376533508, -0.09714049100875854, -0.05986059829592705, 0.3538428843021393, -0.01785856857895851, 0.1648852527141571, 0.19423776865005493, -0.16180571913719177, -0.11437458544969559, -0.2210422307252884, 0.14889411628246307, -0.024225687608122826, 0.3098035454750061, 0.1279519945383072, 0.050877295434474945, 0.06881891191005707, 0.05388644337654114, -0.08853526413440704, -0.052917711436748505, -0.4608558118343353, 0.4211563467979431, -0.31889814138412476, -0.29355135560035706, -0.0610978901386261, -0.0051951222121715546, 0.3583405613899231, 0.37487897276878357, -0.2954477071762085, -0.001978724729269743, 0.19680263102054596, 0.09606010466814041, -0.1780666708946228, 0.013301009312272072, 0.1617017537355423, 0.11657120287418365, -0.052686143666505814, -0.05286724865436554, 0.14581717550754547, 0.17108054459095, -0.18763349950313568, 0.25809866189956665, 0.15930265188217163, 0.47653642296791077, 0.26140469312667847, 0.660686731338501, 0.03890707343816757, -0.38583680987358093, 0.3321019113063812, -0.14006444811820984, -0.0007828244124539196, 0.08665741980075836, -0.6534717679023743, 0.18306638300418854, -0.28974252939224243, -0.026324165984988213, -0.10860789567232132, -0.36375224590301514, -0.20201383531093597, -0.16557028889656067, 0.16914470493793488, -0.027160707861185074, -0.3952350914478302, 0.46571069955825806, -0.43040141463279724, 0.28384560346603394, -0.0792965218424797, 0.13681206107139587, -0.617990255355835, -0.01597028411924839, 0.13402876257896423, 0.0014621308073401451, 0.2550835609436035, -0.08203312754631042, -0.3944140374660492, 0.07718772441148758, -0.46588826179504395, 0.23202817142009735, 0.08530648797750473, 0.7238261103630066, 0.18516764044761658, -0.2038860321044922, -0.160545215010643, -0.03389395773410797, 0.7261366844177246, 0.2351623922586441, -0.013185759074985981, 0.09821507334709167, -0.3114112913608551, -0.43812569975852966, -0.0794287696480751, -0.27742698788642883, 0.6424893140792847, 0.1563342958688736, 0.2806638479232788, -0.23284605145454407, -0.1301862895488739, 0.11599079519510269, 0.10674482583999634, -0.21584412455558777, -0.27482280135154724, -0.07602405548095703, -0.06804362684488297, -0.3532243072986603, -0.01409108191728592, 0.04383956640958786, 0.2820526361465454, 0.09236977249383926, 0.022060725837945938, -0.3040834367275238, -0.02766602672636509, 0.3623531460762024, -0.042786143720149994, 0.06607011705636978, -0.16148130595684052, 0.15831466019153595, 0.19364042580127716, 0.24007706344127655, 0.6411281824111938, 0.3070533573627472, 0.2450912594795227, -0.45245179533958435, 0.3747631311416626, 0.056793056428432465, 0.2789524793624878, 0.12668153643608093, -0.11202562600374222, -0.04638410732150078, -0.3257368206977844, 0.05009138211607933, -0.4352756142616272, 0.5216373801231384, 0.5002294182777405, 0.1470029503107071, -0.5732988715171814, -0.34037792682647705, 0.20203836262226105, 0.11379589885473251, 0.18212959170341492, 0.7328401207923889, -0.1325458139181137, -0.138323113322258, 0.13051991164684296, 0.13689595460891724, 0.7372883558273315, 0.05995900556445122, 0.12415503710508347, 0.4110814929008484, 0.5742582082748413, 0.28740355372428894, -0.5326947569847107, 0.09997884184122086, -0.22785119712352753, -0.04776019603013992, -0.16294699907302856, -0.25533148646354675, 0.03875837102532387, 0.17045800387859344, -0.05964883789420128, 0.1802619844675064, -0.03505523502826691, 0.5183289051055908, 0.0984523594379425, 0.06107664853334427, -0.31106215715408325, -0.29220253229141235, 0.09589289128780365, 0.11329385638237, -0.16429783403873444, 0.1464625597000122, -0.07750992476940155, -0.07499731332063675, 0.1822143942117691, -0.282629132270813, -0.2507401406764984, -0.025755662471055984, -0.22850854694843292, 0.10249354690313339, 0.03291673585772514, -0.4766199588775635, 0.10104285925626755, 0.013342461548745632, 0.05072798952460289, -0.09035956114530563, 0.07236344367265701, -0.22122687101364136, -0.04071774333715439, -0.13065050542354584, -0.13286234438419342, -0.08464262634515762, 0.40968599915504456, 0.12493743002414703, 0.13089628517627716, 0.28170639276504517, 0.23024597764015198, -0.34945499897003174, 0.08346489816904068, 0.22286628186702728, 0.23815323412418365, -0.5538778901100159, 0.10674888640642166, -0.11697680503129959, -0.20017221570014954, -0.2225140482187271, 0.07512723654508591, 0.0035707345232367516, -0.32643207907676697, 0.006172455847263336, -0.15819565951824188, -0.0941702201962471, 0.09128479659557343, 0.41936710476875305, 0.09900692850351334, -0.4401392340660095, 0.7563033103942871, 0.18333357572555542, -0.23787526786327362, -0.16016051173210144, 0.130414679646492, 0.455411821603775, -0.26989614963531494, 0.10516224056482315, -0.36811673641204834, 0.19371268153190613, -0.20565113425254822, 0.09545373916625977, 0.0749826729297638, 0.001124754548072815, -0.08470624685287476, -0.31852927803993225, -0.37638553977012634, 0.06417270749807358, -0.1275971233844757, 0.2709618806838989, 0.06571456789970398, 0.14424102008342743, -0.24248671531677246, 0.10846815258264542, -0.22840870916843414, -0.05996079742908478, -0.13040697574615479, 0.2170202136039734, 0.06876563280820847, -0.11554941534996033, -0.029965637251734734, 0.1643117517232895, 0.08759868144989014, 0.36493200063705444, 0.07729557901620865, -0.21717284619808197, -0.11241094022989273, 0.10818671435117722, 0.12695473432540894, -0.2696899473667145, 0.0701320469379425, -0.021665183827280998, -0.010612446814775467, -0.31688517332077026, 0.09200885891914368, 0.059307921677827835, -0.03379911929368973, 0.28279075026512146, 0.3835870027542114, 0.045311927795410156, 0.10487302392721176, 0.020299162715673447, 0.2444036900997162, 0.26442813873291016, 0.18606127798557281, 0.32218509912490845, -0.03469788655638695, -0.06147909164428711, -0.250739187002182, 0.3639916181564331, 0.37819868326187134, -0.11715089529752731, 0.15625885128974915, -0.4842175543308258, 0.13589715957641602, -0.13094840943813324, 0.25355204939842224, 0.6113283038139343, -0.35448983311653137, -0.15539126098155975, 0.1691133677959442, 0.11266239732503891, -0.00454839039593935, 0.03866642713546753, 0.06095290556550026, -0.057821184396743774, -0.005827321670949459, 0.19322985410690308, -0.057136863470077515, -0.061165377497673035, 0.13544191420078278, -0.08294590562582016, 0.2889593541622162, -0.16346599161624908, 0.1883114129304886, 0.06417734175920486, -0.4278976619243622, -0.08586549758911133, 0.3677486777305603, 0.2824949622154236, 0.10133559256792068, 0.27844250202178955, -0.10787998139858246, 0.42732128500938416, 0.0708392783999443, -0.24930402636528015, -0.01658814214169979, -0.4929736852645874, -0.3299539387226105, 0.1111973226070404, 0.24633602797985077, 0.19480201601982117, 0.048969071358442307, 0.32001936435699463, -0.07998964935541153, -0.1117727980017662, -0.021363943815231323, 0.1956695020198822, -0.2775018811225891, 0.0963105708360672, -0.3862150013446808, -0.22133511304855347, -0.20778825879096985, -0.10474865883588791, -0.07726956903934479, -0.18061235547065735, 0.0019157897913828492, 0.11878765374422073, -0.1874994933605194, -0.4298027455806732, 0.06275037676095963, -0.004547113552689552, -0.11235172301530838, -0.3342284858226776, 0.21795985102653503, 0.16026324033737183, 0.11708470433950424, 0.034908801317214966, 0.2651888132095337, 0.5087575316429138, 0.4610845744609833, -0.149446040391922, 0.1769152134656906, -0.5010873079299927, -0.19116173684597015, -0.06311257183551788, 0.11251812428236008, -0.41489025950431824, -0.10147624462842941, 0.3867385685443878, 0.08408328890800476, -0.11434445530176163, -0.21536731719970703, 0.13407421112060547, 0.07359402626752853, 0.00014806838589720428, 0.12479186803102493, -0.08155675232410431, 0.04142782837152481, -0.08147518336772919, -0.04416905716061592, -0.4062020778656006, -0.11823376268148422, 0.46783486008644104, 0.11666380614042282, 0.19685938954353333, 0.02075382135808468, 0.05896227806806564, -0.25033921003341675, 0.4257992208003998, 0.4754779636859894, 0.2222498655319214, -0.40928971767425537, -0.2357502430677414, -0.29587048292160034, 0.3727259635925293, -0.12138864398002625, -0.19496488571166992, -0.019623028114438057, 0.16514822840690613, 0.3228282332420349, 0.26910972595214844, 0.24353010952472687, -0.14532318711280823, -0.07103787362575531, 0.3360806107521057, -0.3235667049884796, -0.3320513367652893, 0.0356336310505867, 0.23942996561527252, -0.06713168323040009, -0.2778092324733734, 0.23340687155723572, -0.10086072236299515, 0.13328294456005096, -0.20465685427188873, -0.300801157951355, 0.08007332682609558, 0.044445574283599854, 0.4428640902042389, 0.18970048427581787, 0.4272846281528473, 0.09459996223449707, 0.06287752091884613, -0.27842122316360474, -0.23615741729736328, -0.1914743334054947, 0.0452256016433239, 0.044853631407022476, 0.21423564851284027, -0.032453011721372604, -0.1344611942768097, -0.5011917352676392, 0.21689610183238983, -0.10915246605873108, -0.29114118218421936, -0.3574865162372589, 0.27954575419425964, 0.003716742852702737, 0.07022737711668015, -0.07147300243377686, 0.2456233948469162, 0.21205797791481018, 0.5372602939605713, -0.36727648973464966, -0.2944159209728241, 0.42163291573524475, -0.6915376782417297, -0.490726500749588, 0.02503477968275547, -0.19890600442886353, 0.1786554753780365, 0.2703247368335724, -0.5640617609024048, 0.0031028210651129484, 0.317204087972641, -0.16942070424556732, -0.1327282190322876, 0.0034335588570684195, 0.09697714447975159, 0.024015173316001892, -0.16893544793128967, 0.38899511098861694, 0.10353585332632065, -0.035018157213926315, -0.017749004065990448, -0.2236272245645523 ]
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.04567089304327965, 0.2057337909936905, 0.1531793475151062, 0.00014115771045908332, 0.7921323180198669, 0.3068524897098541, 0.021130815148353577, 0.15271292626857758, 0.046794962137937546, 0.23042605817317963, -0.2809545397758484, -0.24164363741874695, -0.09022644907236099, -0.06045003980398178, -0.07645385712385178, 0.07907016575336456, -0.12242265045642853, 0.03289417922496796, -0.14354032278060913, -0.08672990649938583, -0.19259749352931976, 0.031935546547174454, -0.2509390115737915, -0.13227036595344543, -0.10359150171279907, -0.09470786154270172, -0.33412468433380127, -0.5228334665298462, 0.2897118031978607, 0.11794889718294144, 0.42384856939315796, 0.6812456846237183, -0.00011708560487022623, 0.05326547846198082, 0.12049674987792969, -0.12161436676979065, -0.26418158411979675, -0.2320631444454193, 0.13923360407352448, -0.05162208527326584, 0.03367460146546364, -0.3547694683074951, 0.26055940985679626, -0.3312714993953705, -0.0172064621001482, -0.22358369827270508, 0.19873757660388947, 0.2407110035419464, 0.1273106187582016, 0.4878687262535095, -0.013065815903246403, 0.06860614567995071, 0.045241862535476685, 0.25054386258125305, -0.019511977210640907, 0.19714337587356567, 0.1916247010231018, 0.010228564031422138, -0.3597646951675415, 0.1168685108423233, -0.1690705418586731, 0.047523487359285355, 0.1359681636095047, -0.11273828893899918, -0.21776032447814941, -0.1320606917142868, -0.032683901488780975, -0.07962965220212936, 0.5732843279838562, -0.24739810824394226, -0.33389028906822205, -0.16551539301872253, -0.22152981162071228, -0.26730310916900635, 0.3192119598388672, -0.16507220268249512, -0.15860408544540405, -0.21398991346359253, 0.1157575249671936, 0.24057111144065857, -0.2040269374847412, 0.13671420514583588, -0.25915947556495667, 0.20869003236293793, -0.04985048994421959, 0.3045004904270172, 0.2167702615261078, -0.2556965947151184, 0.3407103419303894, 0.10055146366357803, 0.044049255549907684, 0.27522891759872437, -0.5098055601119995, -0.25157198309898376, 0.09336508065462112, -0.4813282787799835, -0.08895178884267807, 0.18174661695957184, 0.2512759566307068, 0.06592321395874023, -0.02672155387699604, 0.24206528067588806, 0.4608970582485199, 0.18674716353416443, 0.16861023008823395, 0.3430076837539673, 0.05600236356258392, -0.10084076970815659, 0.11158206313848495, -0.06283756345510483, -0.3309631645679474, -0.3040354251861572, 0.22978706657886505, 0.10076110064983368, 0.23551498353481293, 0.06380417197942734, -0.24075189232826233, -0.001041248207911849, -0.2854395806789398, -0.14088380336761475, 0.11154261231422424, 0.14669738709926605, 0.21548189222812653, 0.07846413552761078, -0.021196546033024788, 0.04944770038127899, -0.029459156095981598, -0.10105536878108978, -0.06310301274061203, 0.12259082496166229, -0.23600396513938904, 0.006233151536434889, 0.26921290159225464, -0.04495226964354515, -0.0005978822591714561, 0.13793183863162994, -0.01634957641363144, 0.10649406164884567, 0.1838306188583374, -0.167745903134346, 0.27512115240097046, -0.0668303593993187, 0.0526379756629467, 0.32590755820274353, 0.24278868734836578, 0.052704159170389175, -0.15170423686504364, 0.006441814359277487, -0.42523664236068726, -0.08540847152471542, -0.07113044708967209, 0.13438493013381958, -0.06572739034891129, -0.059654802083969116, -0.40290170907974243, -0.1930614560842514, 0.34761130809783936, -0.15928401052951813, 0.09902108460664749, -0.2618940770626068, 0.06796486675739288, -0.09494339674711227, 0.07169940322637558, 0.3785114288330078, -0.4588417410850525, -0.1389314979314804, 0.1558687537908554, 0.1005789116024971, 0.26835396885871887, 0.28002801537513733, -0.2775183916091919, 0.5750994682312012, -0.40414103865623474, 0.31461501121520996, 0.3382754623889923, -0.4575731158256531, -0.30107253789901733, 0.30232399702072144, -0.17285874485969543, 0.18284395337104797, 0.13110622763633728, 0.02209637127816677, 0.4072543680667877, -0.21179884672164917, 0.12621451914310455, 0.13122238218784332, -0.17541393637657166, -0.08449865132570267, -0.018889958038926125, 0.407356858253479, 0.5204416513442993, 0.05792117491364479, 0.189907968044281, 0.09117452800273895, -0.25631245970726013, 0.18665476143360138, 0.04072454944252968, -0.16240176558494568, 0.07528019696474075, 0.1461818814277649, 0.0872931107878685, 0.1154017299413681, 0.204713374376297, -0.15413381159305573, -0.24141459167003632, 0.017452934756875038, 0.0847349613904953, 0.11033988744020462, -0.15696179866790771, 0.10110823065042496, 0.01562909036874771, 0.18338891863822937, -0.40930411219596863, -0.14764469861984253, 0.10579892247915268, 0.33917737007141113, -0.10850515216588974, -0.22628001868724823, -0.27825722098350525, 0.010197220370173454, -0.15022414922714233, 0.1229051798582077, -0.317707359790802, 0.07564622163772583, 0.0731084793806076, -0.16212080419063568, -0.11099260300397873, 0.0012572618434205651, 0.21855385601520538, -0.23059546947479248, -0.01987609639763832, 0.15274372696876526, 0.07335060089826584, 0.08376605808734894, -0.14092054963111877, 0.08403639495372772, 0.20277543365955353, -0.08059154450893402, -0.03504219278693199, 0.02632446400821209, 0.06335418671369553, -0.24634669721126556, 0.286027193069458, 0.35574236512184143, -0.04151236638426781, 0.5438953042030334, -0.18461467325687408, 0.18655680119991302, 0.08548327535390854, 0.14296309649944305, -0.2297750562429428, 0.12143771350383759, 0.29159480333328247, 0.16527892649173737, 0.2727050185203552, -0.07423806190490723, -0.10618755966424942, -0.016254672780632973, 0.13578644394874573, 0.03465661033987999, -0.16728940606117249, 0.06450590491294861, -0.20232929289340973, 0.07873270660638809, 0.14318856596946716, -0.358334481716156, 0.29362568259239197, -0.04196467250585556, 0.13556282222270966, -0.22973184287548065, 0.10938747972249985, 0.05487809330224991, -0.006824130192399025, 0.13736703991889954, 0.050109509378671646, 0.1365746259689331, -0.01798888109624386, 0.03299111872911453, -0.19934488832950592, -0.26190370321273804, -0.03216375783085823, 0.40304750204086304, -0.20175045728683472, 0.4200816750526428, -0.22512324154376984, -0.08061444014310837, -0.13573716580867767, -0.4637429416179657, -0.12441511452198029, -0.48858314752578735, -0.2934890389442444, 0.4377201795578003, -0.05235600098967552, 0.2884226143360138, 0.1593029946088791, 0.06599413603544235, 0.6007108688354492, -0.1201820820569992, -0.12993401288986206, -0.1651609092950821, -0.14348657429218292, 0.0020232941024005413, 0.3916655480861664, -0.3905925452709198, 0.3192390501499176, -0.148573100566864, -0.036440324038267136, -0.49318209290504456, -0.1713028848171234, 0.23434658348560333, -0.25151029229164124, -0.10610954463481903, 0.25012311339378357, 0.16031186282634735, -0.12767457962036133, -0.34623590111732483, 0.23602226376533508, -0.09714049100875854, -0.05986059829592705, 0.3538428843021393, -0.01785856857895851, 0.1648852527141571, 0.19423776865005493, -0.16180571913719177, -0.11437458544969559, -0.2210422307252884, 0.14889411628246307, -0.024225687608122826, 0.3098035454750061, 0.1279519945383072, 0.050877295434474945, 0.06881891191005707, 0.05388644337654114, -0.08853526413440704, -0.052917711436748505, -0.4608558118343353, 0.4211563467979431, -0.31889814138412476, -0.29355135560035706, -0.0610978901386261, -0.0051951222121715546, 0.3583405613899231, 0.37487897276878357, -0.2954477071762085, -0.001978724729269743, 0.19680263102054596, 0.09606010466814041, -0.1780666708946228, 0.013301009312272072, 0.1617017537355423, 0.11657120287418365, -0.052686143666505814, -0.05286724865436554, 0.14581717550754547, 0.17108054459095, -0.18763349950313568, 0.25809866189956665, 0.15930265188217163, 0.47653642296791077, 0.26140469312667847, 0.660686731338501, 0.03890707343816757, -0.38583680987358093, 0.3321019113063812, -0.14006444811820984, -0.0007828244124539196, 0.08665741980075836, -0.6534717679023743, 0.18306638300418854, -0.28974252939224243, -0.026324165984988213, -0.10860789567232132, -0.36375224590301514, -0.20201383531093597, -0.16557028889656067, 0.16914470493793488, -0.027160707861185074, -0.3952350914478302, 0.46571069955825806, -0.43040141463279724, 0.28384560346603394, -0.0792965218424797, 0.13681206107139587, -0.617990255355835, -0.01597028411924839, 0.13402876257896423, 0.0014621308073401451, 0.2550835609436035, -0.08203312754631042, -0.3944140374660492, 0.07718772441148758, -0.46588826179504395, 0.23202817142009735, 0.08530648797750473, 0.7238261103630066, 0.18516764044761658, -0.2038860321044922, -0.160545215010643, -0.03389395773410797, 0.7261366844177246, 0.2351623922586441, -0.013185759074985981, 0.09821507334709167, -0.3114112913608551, -0.43812569975852966, -0.0794287696480751, -0.27742698788642883, 0.6424893140792847, 0.1563342958688736, 0.2806638479232788, -0.23284605145454407, -0.1301862895488739, 0.11599079519510269, 0.10674482583999634, -0.21584412455558777, -0.27482280135154724, -0.07602405548095703, -0.06804362684488297, -0.3532243072986603, -0.01409108191728592, 0.04383956640958786, 0.2820526361465454, 0.09236977249383926, 0.022060725837945938, -0.3040834367275238, -0.02766602672636509, 0.3623531460762024, -0.042786143720149994, 0.06607011705636978, -0.16148130595684052, 0.15831466019153595, 0.19364042580127716, 0.24007706344127655, 0.6411281824111938, 0.3070533573627472, 0.2450912594795227, -0.45245179533958435, 0.3747631311416626, 0.056793056428432465, 0.2789524793624878, 0.12668153643608093, -0.11202562600374222, -0.04638410732150078, -0.3257368206977844, 0.05009138211607933, -0.4352756142616272, 0.5216373801231384, 0.5002294182777405, 0.1470029503107071, -0.5732988715171814, -0.34037792682647705, 0.20203836262226105, 0.11379589885473251, 0.18212959170341492, 0.7328401207923889, -0.1325458139181137, -0.138323113322258, 0.13051991164684296, 0.13689595460891724, 0.7372883558273315, 0.05995900556445122, 0.12415503710508347, 0.4110814929008484, 0.5742582082748413, 0.28740355372428894, -0.5326947569847107, 0.09997884184122086, -0.22785119712352753, -0.04776019603013992, -0.16294699907302856, -0.25533148646354675, 0.03875837102532387, 0.17045800387859344, -0.05964883789420128, 0.1802619844675064, -0.03505523502826691, 0.5183289051055908, 0.0984523594379425, 0.06107664853334427, -0.31106215715408325, -0.29220253229141235, 0.09589289128780365, 0.11329385638237, -0.16429783403873444, 0.1464625597000122, -0.07750992476940155, -0.07499731332063675, 0.1822143942117691, -0.282629132270813, -0.2507401406764984, -0.025755662471055984, -0.22850854694843292, 0.10249354690313339, 0.03291673585772514, -0.4766199588775635, 0.10104285925626755, 0.013342461548745632, 0.05072798952460289, -0.09035956114530563, 0.07236344367265701, -0.22122687101364136, -0.04071774333715439, -0.13065050542354584, -0.13286234438419342, -0.08464262634515762, 0.40968599915504456, 0.12493743002414703, 0.13089628517627716, 0.28170639276504517, 0.23024597764015198, -0.34945499897003174, 0.08346489816904068, 0.22286628186702728, 0.23815323412418365, -0.5538778901100159, 0.10674888640642166, -0.11697680503129959, -0.20017221570014954, -0.2225140482187271, 0.07512723654508591, 0.0035707345232367516, -0.32643207907676697, 0.006172455847263336, -0.15819565951824188, -0.0941702201962471, 0.09128479659557343, 0.41936710476875305, 0.09900692850351334, -0.4401392340660095, 0.7563033103942871, 0.18333357572555542, -0.23787526786327362, -0.16016051173210144, 0.130414679646492, 0.455411821603775, -0.26989614963531494, 0.10516224056482315, -0.36811673641204834, 0.19371268153190613, -0.20565113425254822, 0.09545373916625977, 0.0749826729297638, 0.001124754548072815, -0.08470624685287476, -0.31852927803993225, -0.37638553977012634, 0.06417270749807358, -0.1275971233844757, 0.2709618806838989, 0.06571456789970398, 0.14424102008342743, -0.24248671531677246, 0.10846815258264542, -0.22840870916843414, -0.05996079742908478, -0.13040697574615479, 0.2170202136039734, 0.06876563280820847, -0.11554941534996033, -0.029965637251734734, 0.1643117517232895, 0.08759868144989014, 0.36493200063705444, 0.07729557901620865, -0.21717284619808197, -0.11241094022989273, 0.10818671435117722, 0.12695473432540894, -0.2696899473667145, 0.0701320469379425, -0.021665183827280998, -0.010612446814775467, -0.31688517332077026, 0.09200885891914368, 0.059307921677827835, -0.03379911929368973, 0.28279075026512146, 0.3835870027542114, 0.045311927795410156, 0.10487302392721176, 0.020299162715673447, 0.2444036900997162, 0.26442813873291016, 0.18606127798557281, 0.32218509912490845, -0.03469788655638695, -0.06147909164428711, -0.250739187002182, 0.3639916181564331, 0.37819868326187134, -0.11715089529752731, 0.15625885128974915, -0.4842175543308258, 0.13589715957641602, -0.13094840943813324, 0.25355204939842224, 0.6113283038139343, -0.35448983311653137, -0.15539126098155975, 0.1691133677959442, 0.11266239732503891, -0.00454839039593935, 0.03866642713546753, 0.06095290556550026, -0.057821184396743774, -0.005827321670949459, 0.19322985410690308, -0.057136863470077515, -0.061165377497673035, 0.13544191420078278, -0.08294590562582016, 0.2889593541622162, -0.16346599161624908, 0.1883114129304886, 0.06417734175920486, -0.4278976619243622, -0.08586549758911133, 0.3677486777305603, 0.2824949622154236, 0.10133559256792068, 0.27844250202178955, -0.10787998139858246, 0.42732128500938416, 0.0708392783999443, -0.24930402636528015, -0.01658814214169979, -0.4929736852645874, -0.3299539387226105, 0.1111973226070404, 0.24633602797985077, 0.19480201601982117, 0.048969071358442307, 0.32001936435699463, -0.07998964935541153, -0.1117727980017662, -0.021363943815231323, 0.1956695020198822, -0.2775018811225891, 0.0963105708360672, -0.3862150013446808, -0.22133511304855347, -0.20778825879096985, -0.10474865883588791, -0.07726956903934479, -0.18061235547065735, 0.0019157897913828492, 0.11878765374422073, -0.1874994933605194, -0.4298027455806732, 0.06275037676095963, -0.004547113552689552, -0.11235172301530838, -0.3342284858226776, 0.21795985102653503, 0.16026324033737183, 0.11708470433950424, 0.034908801317214966, 0.2651888132095337, 0.5087575316429138, 0.4610845744609833, -0.149446040391922, 0.1769152134656906, -0.5010873079299927, -0.19116173684597015, -0.06311257183551788, 0.11251812428236008, -0.41489025950431824, -0.10147624462842941, 0.3867385685443878, 0.08408328890800476, -0.11434445530176163, -0.21536731719970703, 0.13407421112060547, 0.07359402626752853, 0.00014806838589720428, 0.12479186803102493, -0.08155675232410431, 0.04142782837152481, -0.08147518336772919, -0.04416905716061592, -0.4062020778656006, -0.11823376268148422, 0.46783486008644104, 0.11666380614042282, 0.19685938954353333, 0.02075382135808468, 0.05896227806806564, -0.25033921003341675, 0.4257992208003998, 0.4754779636859894, 0.2222498655319214, -0.40928971767425537, -0.2357502430677414, -0.29587048292160034, 0.3727259635925293, -0.12138864398002625, -0.19496488571166992, -0.019623028114438057, 0.16514822840690613, 0.3228282332420349, 0.26910972595214844, 0.24353010952472687, -0.14532318711280823, -0.07103787362575531, 0.3360806107521057, -0.3235667049884796, -0.3320513367652893, 0.0356336310505867, 0.23942996561527252, -0.06713168323040009, -0.2778092324733734, 0.23340687155723572, -0.10086072236299515, 0.13328294456005096, -0.20465685427188873, -0.300801157951355, 0.08007332682609558, 0.044445574283599854, 0.4428640902042389, 0.18970048427581787, 0.4272846281528473, 0.09459996223449707, 0.06287752091884613, -0.27842122316360474, -0.23615741729736328, -0.1914743334054947, 0.0452256016433239, 0.044853631407022476, 0.21423564851284027, -0.032453011721372604, -0.1344611942768097, -0.5011917352676392, 0.21689610183238983, -0.10915246605873108, -0.29114118218421936, -0.3574865162372589, 0.27954575419425964, 0.003716742852702737, 0.07022737711668015, -0.07147300243377686, 0.2456233948469162, 0.21205797791481018, 0.5372602939605713, -0.36727648973464966, -0.2944159209728241, 0.42163291573524475, -0.6915376782417297, -0.490726500749588, 0.02503477968275547, -0.19890600442886353, 0.1786554753780365, 0.2703247368335724, -0.5640617609024048, 0.0031028210651129484, 0.317204087972641, -0.16942070424556732, -0.1327282190322876, 0.0034335588570684195, 0.09697714447975159, 0.024015173316001892, -0.16893544793128967, 0.38899511098861694, 0.10353585332632065, -0.035018157213926315, -0.017749004065990448, -0.2236272245645523 ]
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.22562195360660553, -0.4427930414676666, -0.07967905700206757, 0.18397223949432373, 0.5433492660522461, 0.3885733187198639, 0.5336815118789673, 0.3345811069011688, -0.009671110659837723, 0.1427573710680008, -0.08334510773420334, 0.24232394993305206, -0.2235850840806961, 0.09736350923776627, 0.1539929211139679, -0.37384921312332153, 0.2507273554801941, -0.15454161167144775, -0.06615797430276871, 0.07548578828573227, -0.18340401351451874, 0.013290699571371078, -0.1419779658317566, -0.2985787093639374, -0.23014043271541595, -0.17566289007663727, -0.004209525417536497, -0.3617505431175232, -0.16283787786960602, -0.07049886137247086, 0.2917994558811188, 0.06723296642303467, 0.27077019214630127, 0.47809669375419617, -0.00012292481551412493, -0.02461804449558258, -0.06422638148069382, -0.09742778539657593, -0.12295738607645035, -0.32449671626091003, 0.09515857696533203, -0.3088735044002533, 0.32647672295570374, -0.23375527560710907, -0.417043000459671, 0.16387531161308289, 0.02458934299647808, -0.3956412672996521, 0.23142391443252563, 0.5253639221191406, 0.11989268660545349, 0.19244696199893951, 0.23941177129745483, 0.024094108492136, -0.17405875027179718, 0.37660688161849976, -0.35423535108566284, 0.02548605017364025, 0.16958007216453552, 0.15832923352718353, 0.28816840052604675, 0.1371888816356659, -0.1417471468448639, 0.03765348717570305, 0.28016307950019836, 0.013186001218855381, -0.38051727414131165, -0.34324097633361816, 0.021551214158535004, 0.11267836391925812, 0.6594463586807251, -0.34228435158729553, -0.35644039511680603, 0.09587583690881729, 0.09355062991380692, -0.38333916664123535, -0.2534756064414978, 0.6357645392417908, -0.3619588017463684, 0.0637378841638565, -0.364902526140213, -0.006093498319387436, -0.24501709640026093, 0.11993541568517685, -0.2295878380537033, 0.009074686095118523, -0.1717318445444107, 0.010839655995368958, 0.05078619718551636, 0.15694619715213776, 0.3423224985599518, 0.12478816509246826, 0.22258633375167847, 0.17064233124256134, -0.4807887375354767, -0.08028434216976166, -0.5487518906593323, -0.137480691075325, 0.15841872990131378, 0.07926810532808304, 0.1561616212129593, 0.009416226297616959, -0.1356777548789978, 0.03107936680316925, -0.23664578795433044, 0.28482064604759216, 0.0388164184987545, 0.22376930713653564, -0.05030915513634682, -0.2578219175338745, 0.345011830329895, -0.06949935853481293, -0.2909884750843048, -0.5439590811729431, -0.3113086223602295, 0.24849195778369904, 0.06475573033094406, -0.09519998729228973, -0.274898499250412, -0.09430693089962006, -0.0721350759267807, 0.16599434614181519, -0.21771574020385742, 0.2759564518928528, 0.013892659917473793, 0.14293956756591797, 0.4675443768501282, 0.19580066204071045, 0.038767021149396896, 0.03511656075716019, -0.018357066437602043, 0.14948958158493042, -0.2646298408508301, -0.12567193806171417, 0.0721445381641388, -0.4210522472858429, -0.02334814891219139, 0.11398818343877792, 0.009613103233277798, 0.03158945590257645, -0.105162613093853, 0.13687755167484283, 0.4796118140220642, 0.12302163988351822, -0.015810133889317513, 0.3791804611682892, 0.23039411008358002, 0.24798233807086945, -0.18121084570884705, 0.11484931409358978, -0.47549930214881897, -0.1314101219177246, -0.4951545000076294, 0.004849099088460207, 0.20565548539161682, 0.01648681052029133, -0.2150605320930481, 0.18204258382320404, 0.21012184023857117, 0.18329328298568726, 0.09544215351343155, -0.12384437769651413, -0.1386018991470337, -0.315253347158432, 0.49409207701683044, 0.08943621069192886, -0.3502276837825775, 0.034580864012241364, 0.44068989157676697, -0.04636875167489052, 0.22610105574131012, 0.2932242155075073, 0.1481197476387024, -0.08550820499658585, -0.11102744191884995, -0.3296704888343811, 0.4267118573188782, -0.423920601606369, -0.052338313311338425, -0.19578541815280914, 0.13238267600536346, -0.2657715678215027, -0.09770829975605011, 0.13032567501068115, 0.2611168920993805, 0.09109954535961151, 0.17693501710891724, 0.21446895599365234, -0.016698043793439865, -0.02554449997842312, -0.011030426248908043, -0.01663201116025448, 0.5035649538040161, -0.07188525795936584, -0.14881707727909088, 0.3139475882053375, -0.25492990016937256, -0.05588515102863312, 0.1944795846939087, -0.0787511020898819, -0.04557812213897705, 0.06986977905035019, 0.22039668262004852, 0.021500760689377785, -0.13938435912132263, 0.05784701555967331, -0.455105185508728, -0.051870282739400864, 0.37654152512550354, 0.20906531810760498, 0.0017812285805121064, -0.15419937670230865, -0.009212627075612545, 0.01742447540163994, -0.03164143115282059, -0.04232785850763321, -0.005731377750635147, -0.34129437804222107, -0.01052903849631548, -0.12431985884904861, -0.2345956265926361, 0.28322574496269226, -0.2481105923652649, 0.18150615692138672, -0.3356839716434479, 0.06832893937826157, 0.029970906674861908, -0.09160677343606949, 0.10929425060749054, 0.21457162499427795, 0.030875932425260544, -0.26100876927375793, 0.06714089959859848, 0.10181227326393127, 0.16453170776367188, -0.058131419122219086, -0.4233419597148895, 0.21278658509254456, 0.22285807132720947, -0.03677614405751228, -0.074598528444767, 0.12345115095376968, -0.03329415246844292, -0.14306654036045074, -0.36164599657058716, 0.3625272214412689, -0.010839834809303284, 0.18663841485977173, -0.3714399039745331, 0.435088574886322, 0.16893352568149567, 0.12013807892799377, -0.05248980224132538, 0.0288173109292984, 0.017816247418522835, 0.15896084904670715, 0.14900991320610046, -0.08305466175079346, -0.8168120980262756, -0.043747786432504654, 0.04409298300743103, 0.005620309617370367, 0.07371361553668976, 0.061521515250205994, -0.18063731491565704, 0.1289304494857788, 0.2762051820755005, -0.3633996546268463, -0.1357690989971161, 0.08352982252836227, 0.1757231503725052, 0.06016481667757034, 0.07107384502887726, -0.16419917345046997, 0.02826949954032898, -0.08121084421873093, -0.06600192189216614, -0.12476685643196106, 0.11955530196428299, -0.026937713846564293, 0.05009578913450241, 0.2913752794265747, -0.02988860197365284, 0.11662999540567398, -0.48488447070121765, -0.006564388517290354, -0.3681721091270447, 0.06706399470567703, -0.4132387340068817, -0.36648258566856384, 0.010741768404841423, -0.031096572056412697, -0.15773051977157593, 0.1503382921218872, 0.3468295633792877, 0.2500934302806854, 0.2051340788602829, 0.16085074841976166, 0.21197186410427094, -0.14267437160015106, -0.17581306397914886, -0.2458101212978363, 0.11050631105899811, 0.03284963592886925, 0.3166612982749939, -0.16410097479820251, 0.24304276704788208, -0.23754720389842987, 0.19298478960990906, -0.3415488004684448, 0.07825770974159241, -0.124257393181324, -0.1230958104133606, -0.11523693799972534, 0.09813328832387924, 0.3823610246181488, 0.00023615386453457177, -0.025126399472355843, 0.12492720782756805, 0.17943914234638214, -0.04764920100569725, 0.018080558627843857, -0.315351277589798, -0.041940245777368546, -0.19577771425247192, -0.2927687466144562, -0.24477891623973846, -0.21225327253341675, 0.21929225325584412, -0.017944907769560814, 0.12607155740261078, -0.3188106119632721, 0.37605977058410645, -0.13121290504932404, 0.08544714748859406, -0.0370536632835865, 0.036618612706661224, -0.5210586786270142, 0.613680362701416, -0.2563225030899048, -0.5021973848342896, 0.15690451860427856, 0.17868897318840027, 0.4287461042404175, 0.40222665667533875, -0.009297975338995457, 0.17884251475334167, 0.17368881404399872, 0.000151837186422199, 0.037547361105680466, 0.04061918333172798, 0.293846070766449, 0.005161494016647339, 0.12085095793008804, 0.10787726193666458, -0.11077145487070084, -0.06399420648813248, 0.04574751481413841, 0.32605788111686707, 0.1296527087688446, 0.5017369389533997, 0.09555535018444061, 0.7273525595664978, 0.1096760705113411, -0.5754067897796631, 0.025087615475058556, -0.23931102454662323, 0.30881524085998535, -0.10564286261796951, -0.3586210310459137, 0.2695139944553375, -0.049989309161901474, 0.1267051249742508, -0.008507450111210346, -0.12918230891227722, -0.006732138805091381, -0.1740822046995163, 0.18637627363204956, -0.326107382774353, -0.13494925200939178, 0.13826057314872742, -0.3389180302619934, 0.23865842819213867, -0.3227369487285614, 0.32022613286972046, -0.04967282712459564, -0.17634359002113342, 0.25263217091560364, 0.30944502353668213, 0.2343839854001999, 0.13021650910377502, -0.07782184332609177, 0.01521345879882574, -0.6871010065078735, 0.29092973470687866, -0.13839375972747803, 0.4108788073062897, -0.08452308177947998, 0.23190075159072876, 0.1422143280506134, 0.2238975167274475, 0.7626746296882629, 0.1783870905637741, -0.462843120098114, -0.005535000469535589, -0.09016662836074829, -0.48898735642433167, -0.14169715344905853, 0.03796367719769478, 0.19729121029376984, -0.05237122252583504, 0.06909077614545822, -0.1246236264705658, -0.24335218966007233, -0.03211098164319992, 0.28178083896636963, -0.29917094111442566, 0.05570093169808388, -0.11038122326135635, -0.0708337128162384, -0.11248014122247696, 0.07603171467781067, 0.22848328948020935, 0.2087957262992859, 0.049377117305994034, -0.2428571879863739, -0.256250262260437, 0.12930923700332642, 0.429092139005661, -0.14352922141551971, 0.19164235889911652, 0.2431153655052185, -0.12289857119321823, 0.15850578248500824, 0.24743664264678955, 0.2909747064113617, -0.07480780780315399, -0.16565032303333282, -0.1268554925918579, -0.01575367897748947, -0.07947424799203873, 0.4617820382118225, -0.0818624198436737, 0.03433458134531975, -0.11740752309560776, -0.24188579618930817, -0.059698592871427536, -0.33348867297172546, 0.24952395260334015, 0.2493164986371994, 0.2935779392719269, -0.7081372737884521, -0.5079487562179565, 0.26714223623275757, 0.1704099476337433, 0.2011549025774002, 0.5503249764442444, 0.27551305294036865, -0.09372586011886597, 0.18175499141216278, 0.5460436940193176, 0.7262747883796692, -0.43736907839775085, 0.08832874894142151, 0.1695210486650467, -0.18520128726959229, 0.4915035665035248, -0.49520862102508545, 0.26784294843673706, -0.34904173016548157, -0.012941994704306126, -0.3435453772544861, -0.1704234629869461, 0.09236837178468704, 0.15473519265651703, 0.06938984990119934, 0.24673104286193848, -0.47926244139671326, 0.13293258845806122, -0.07656735181808472, -0.06402894109487534, 0.16869673132896423, -0.27460741996765137, 0.04590344801545143, 0.07356611639261246, -0.22130213677883148, 0.16330274939537048, 0.038777727633714676, 0.007824089378118515, -0.08207982033491135, 0.25808781385421753, -0.24441580474376678, -0.10088551789522171, -0.33946651220321655, 0.06628544628620148, 0.004360497463494539, -0.9245504140853882, 0.3079778254032135, 0.6653314828872681, 0.6603673696517944, -0.011560242623090744, -0.16965235769748688, -0.05743939429521561, -0.12453815340995789, -0.15327870845794678, -0.16869598627090454, 0.024165520444512367, 0.2793961465358734, 0.07624030858278275, 0.05644243583083153, 0.3012825548648834, 0.26932546496391296, -0.07937627285718918, 0.015616780146956444, 0.03296038508415222, 0.05154436454176903, -0.354284405708313, -0.5156933665275574, 0.07781147956848145, 0.3148762285709381, 0.034728433936834335, 0.04761531203985214, 0.133649080991745, -0.1509750932455063, 0.20085997879505157, -0.0868733748793602, -0.13679271936416626, 0.09857247769832611, 0.22535865008831024, -0.004861481487751007, -0.2825201451778412, 0.3255106508731842, 0.46674537658691406, -0.23352785408496857, -0.07200706005096436, -0.045254141092300415, 0.541231632232666, -0.15099962055683136, 0.06996286660432816, -0.14862416684627533, 0.30619797110557556, -0.14621078968048096, 0.25237417221069336, -0.2261345386505127, 0.020429780706763268, -0.024901121854782104, -0.10997558385133743, -0.28746381402015686, -0.1830468624830246, -0.22173359990119934, 0.34711307287216187, 0.2211429923772812, 0.10990457236766815, 0.03477991372346878, -0.21169058978557587, -0.15497390925884247, 0.04992713779211044, 0.029290681704878807, 0.2112971693277359, 0.1265251785516739, 0.31239935755729675, -0.07720605283975601, -0.2509690821170807, 0.013780231587588787, 0.07579819858074188, 0.07604485005140305, -0.13550624251365662, -0.1599959284067154, 0.1292593777179718, 0.024947119876742363, 0.12854963541030884, 0.15133339166641235, -0.03172778710722923, -0.27596616744995117, -0.29571107029914856, 0.276357501745224, 0.5281383991241455, -0.03341953456401825, 0.5064695477485657, -0.04318523406982422, 0.1148931235074997, -0.11242188513278961, -0.11232162266969681, 0.27804213762283325, -0.010091024450957775, 0.10514364391565323, 0.03773805499076843, 0.07683733105659485, -0.06679445505142212, -0.3280542194843292, 0.23378315567970276, 0.13342706859111786, -0.2346499264240265, 0.11914051324129105, -0.0016483089420944452, 0.21648375689983368, -0.04824935644865036, 0.09028248488903046, -0.03377450257539749, -0.08176842331886292, 0.31443673372268677, 0.26363813877105713, 0.051253244280815125, -0.0015749047743156552, 0.09053710103034973, -0.015250448137521744, -0.028163792565464973, -0.13183535635471344, 0.07699757069349289, 0.1474350243806839, -0.019124027341604233, -0.2113032191991806, -0.17674346268177032, 0.12216625362634659, -0.35728585720062256, 0.26314854621887207, 0.060050319880247116, 0.2629466950893402, 0.030052339658141136, 0.2148791253566742, 0.01083294115960598, -0.01881592907011509, -0.1008995771408081, 0.16979382932186127, 0.4328993260860443, 0.39644408226013184, -0.12267135083675385, 0.2822858393192291, -0.12447725236415863, -0.2815711200237274, -0.3143923580646515, 0.0735897496342659, 0.2375870943069458, -0.00607113866135478, 0.3808272182941437, -0.11854182183742523, -0.3919457495212555, -0.1549636423587799, 0.17336852848529816, -0.31003570556640625, 0.031670328229665756, -0.1686139702796936, 0.1180940493941307, 0.27387428283691406, 0.0992388054728508, -0.026752863079309464, -0.44985342025756836, 0.23406252264976501, 0.11827481538057327, -0.02483828365802765, 0.24662697315216064, 0.11771873384714127, 0.2841743230819702, 0.04475487396121025, 0.0399523563683033, -0.15344399213790894, -0.23462626338005066, -0.11177210509777069, -0.09163162112236023, 0.20858199894428253, 0.32708606123924255, 0.1454715132713318, 0.1321721374988556, 0.1781025230884552, -0.09220041334629059, -0.0760667696595192, 0.31734463572502136, 0.20294725894927979, -0.010971201583743095, -0.03936382010579109, 0.0972820445895195, 0.1139339730143547, 0.09001266211271286, -0.07895999401807785, -0.013251714408397675, 0.26963937282562256, -0.2736494839191437, -0.16617532074451447, -0.3909126818180084, -0.34259432554244995, -0.41845035552978516, -0.0018121696775779128, -0.17652270197868347, 0.05780757591128349, 0.37809500098228455, 0.06903702020645142, -0.1483125388622284, 0.04841093346476555, -0.0011281064944341779, 0.01682129316031933, 0.37577345967292786, 0.02642793208360672, 0.3644813597202301, -0.10243512690067291, -0.3040476441383362, -0.10690555721521378, 0.07795991748571396, 0.2708781361579895, 0.16561387479305267, -0.12999758124351501, -0.09768731147050858, 0.13291575014591217, 0.06388905644416809, -0.20482660830020905, -0.144483745098114, 0.17467838525772095, 0.4526618719100952, -0.07795730978250504, -0.053757984191179276, -0.4576846659183502, 0.04748031497001648, 0.0657893493771553, 0.018835529685020447, 0.05243963375687599, -0.07369853556156158, -0.09826290607452393, -0.254946231842041, 0.4785962700843811, -0.0774042159318924, 0.2852928936481476, 0.19149036705493927, -0.0014077778905630112, 0.33934909105300903, 0.2105213701725006, 0.2949739098548889, -0.08814334869384766, 0.1394769698381424, -0.08941315114498138, 0.3484446406364441, -0.17450283467769623, 0.13163159787654877, -0.12189122289419174, -0.434378981590271, -0.17674453556537628, 0.5815299153327942, 0.13642632961273193, -0.1919688731431961, -0.13351766765117645, 0.21310266852378845, -0.2032686322927475, -0.24811896681785583, 0.6295926570892334, 0.3496636748313904, 0.062995545566082, 0.17789044976234436, -0.2997426986694336, -0.005398716311901808, 0.2633986175060272, -0.2851150333881378, -0.1775718778371811, 0.026792757213115692, -0.2837468683719635, 0.36433157324790955, 0.12852373719215393, -1.004215955734253, -0.05081469938158989, 0.04311010241508484, -0.29690805077552795, -0.1156274601817131, 0.2367578148841858, 0.0655912235379219, 0.15663951635360718, -0.17509503662586212, 0.3621436357498169, 0.1089463084936142, 0.05322112515568733, -0.45031973719596863, -0.34426626563072205 ]
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.1914243996143341, -0.4953547418117523, -0.0635155737400055, 0.14305174350738525, 0.5737576484680176, 0.3578244745731354, 0.6109960675239563, 0.37510186433792114, -0.006468790117651224, 0.09331316500902176, -0.1843096762895584, 0.23856474459171295, -0.18889379501342773, 0.20827436447143555, 0.18554726243019104, -0.35509923100471497, 0.234822079539299, -0.15433844923973083, -0.03766348212957382, 0.0704861581325531, -0.2085147500038147, -0.024109166115522385, -0.15626350045204163, -0.2900007665157318, -0.194991335272789, -0.16171886026859283, 0.020171314477920532, -0.44003233313560486, -0.10248078405857086, -0.06419365853071213, 0.29132911562919617, 0.10488858073949814, 0.3066851496696472, 0.4878615140914917, -0.00012565638462547213, -0.0178645309060812, -0.049795038998126984, -0.1510571837425232, -0.12282459437847137, -0.26639705896377563, 0.013186527416110039, -0.27952849864959717, 0.32731759548187256, -0.26975059509277344, -0.36169034242630005, 0.13513311743736267, 0.0503896027803421, -0.3767496943473816, 0.20086434483528137, 0.5606643557548523, 0.0873323455452919, 0.15674243867397308, 0.2239820808172226, 0.03131289780139923, -0.1401108205318451, 0.47426530718803406, -0.3869951367378235, 0.032136451452970505, 0.12391446530818939, 0.23134231567382812, 0.2390955090522766, 0.12194743752479553, -0.11706201732158661, 0.03669368475675583, 0.2436487227678299, 0.0068774838000535965, -0.3590632677078247, -0.2845258116722107, 0.04157538339495659, 0.23167875409126282, 0.735641360282898, -0.30583691596984863, -0.4198349714279175, 0.08012965321540833, 0.03840760886669159, -0.39574652910232544, -0.1968509405851364, 0.6596472859382629, -0.3205678462982178, 0.06708034873008728, -0.31857940554618835, 0.11471504718065262, -0.2370993047952652, 0.12597545981407166, -0.26309752464294434, 0.02285049855709076, -0.2386256456375122, -0.005282319616526365, 0.013435941189527512, 0.13735920190811157, 0.29155609011650085, 0.10848204046487808, 0.18640999495983124, 0.17297057807445526, -0.49683627486228943, -0.1123952642083168, -0.5637848973274231, -0.17507366836071014, 0.14551375806331635, 0.07509321719408035, 0.18898352980613708, 0.047055065631866455, -0.15271535515785217, 0.04568235203623772, -0.16893552243709564, 0.22416889667510986, 0.03230881690979004, 0.159371480345726, -0.052119266241788864, -0.26830095052719116, 0.33937421441078186, -0.06395114213228226, -0.2907775342464447, -0.500096321105957, -0.2944853901863098, 0.18284732103347778, 0.09360329061746597, -0.07467831671237946, -0.25507280230522156, -0.11885767430067062, -0.024816928431391716, 0.10760533064603806, -0.266612708568573, 0.2495332658290863, 0.02532110922038555, 0.30207860469818115, 0.39458176493644714, 0.1859082281589508, 0.06243724003434181, 0.0885026752948761, 0.04599941894412041, 0.09767573326826096, -0.22496001422405243, -0.20465917885303497, 0.05031990632414818, -0.34944266080856323, -0.052041247487068176, 0.1319436877965927, -0.02984432876110077, -0.005022769793868065, -0.11016416549682617, 0.08496388047933578, 0.4755416214466095, 0.11982394009828568, -0.10784044861793518, 0.4093899428844452, 0.21080535650253296, 0.2150566428899765, -0.2697775959968567, 0.16336314380168915, -0.4828791618347168, -0.050340134650468826, -0.49777209758758545, -0.0458526685833931, 0.27820318937301636, -0.0052364603616297245, -0.20896531641483307, 0.20634008944034576, 0.26744309067726135, 0.1263456493616104, 0.11633003503084183, -0.1863854080438614, -0.1187283918261528, -0.2959933280944824, 0.48397213220596313, 0.0943366140127182, -0.34624144434928894, -0.013565056957304478, 0.5384868383407593, -0.04938841611146927, 0.22865501046180725, 0.3445948660373688, 0.1999177187681198, -0.15582750737667084, -0.11615302413702011, -0.30762889981269836, 0.5141445994377136, -0.33276453614234924, 0.06209186837077141, -0.20462869107723236, 0.23859480023384094, -0.23974120616912842, -0.030693471431732178, 0.09010303765535355, 0.2652626633644104, 0.04171355441212654, 0.17193603515625, 0.24469400942325592, -0.025607533752918243, 0.006252275314182043, -0.02020179107785225, 0.05640261992812157, 0.4594363272190094, -0.09072887897491455, -0.19937364757061005, 0.3107618987560272, -0.26337966322898865, -0.11514092236757278, 0.16215138137340546, -0.09875208139419556, -0.062277160584926605, 0.012385247275233269, 0.20490115880966187, 0.030500732362270355, -0.13591061532497406, 0.035894278436899185, -0.49508723616600037, -0.12879736721515656, 0.39697808027267456, 0.16877134144306183, 0.12177697569131851, -0.17474806308746338, -0.003075918648391962, -0.009914915077388287, 0.007943006232380867, 0.04481727257370949, -0.04640953987836838, -0.24932663142681122, -0.0874042734503746, -0.06157628819346428, -0.37236452102661133, 0.18128329515457153, -0.2245948314666748, 0.15824712812900543, -0.2071211189031601, -0.12473717331886292, 0.059253692626953125, -0.07163326442241669, 0.06302905082702637, 0.23526190221309662, 0.013181175105273724, -0.21248434484004974, 0.02842036448419094, 0.08193610608577728, 0.21833746135234833, -0.05589238554239273, -0.5166805982589722, 0.2893252968788147, 0.2828787863254547, 0.10455059260129929, -0.11550693213939667, 0.031122498214244843, 0.005508747883141041, -0.16298328340053558, -0.370915025472641, 0.4067362844944, 0.05993179976940155, 0.23095420002937317, -0.35542652010917664, 0.37591612339019775, 0.18661509454250336, 0.10953213274478912, -0.08151204138994217, 0.06284970045089722, -0.030695470049977303, 0.1543327271938324, 0.12423025071620941, -0.02691948600113392, -0.872309684753418, -0.08261246979236603, 0.08933597803115845, -0.05247161537408829, 0.1247091069817543, 0.08510790020227432, -0.15958550572395325, 0.1669849455356598, 0.2630161643028259, -0.39782705903053284, -0.13760586082935333, 0.041425641626119614, 0.19408664107322693, -0.04857076704502106, 0.0565149188041687, -0.23356373608112335, 0.018663562834262848, -0.09824318438768387, -0.09157916158437729, -0.07277721166610718, 0.10715167969465256, -0.01840251125395298, 0.03373314067721367, 0.36950308084487915, -0.030523261055350304, 0.019054818898439407, -0.5362111330032349, -0.015856711193919182, -0.3519631624221802, 0.09774715453386307, -0.3491000533103943, -0.35213199257850647, 0.12913548946380615, -0.0189523808658123, -0.16112816333770752, 0.05347561091184616, 0.3019583523273468, 0.2789478600025177, 0.16807019710540771, 0.27210646867752075, 0.17984096705913544, -0.12249614298343658, -0.2118985652923584, -0.24022740125656128, 0.12413729727268219, 0.0009448534692637622, 0.44000548124313354, -0.21657541394233704, 0.21785148978233337, -0.2075910121202469, 0.1460314840078354, -0.27339664101600647, 0.045116204768419266, -0.1020594909787178, -0.11125901341438293, -0.11894404888153076, 0.08324462920427322, 0.39037585258483887, 0.021829191595315933, -0.028824467211961746, 0.1350192278623581, 0.182379812002182, -0.021163737401366234, 0.02350064553320408, -0.32996007800102234, -0.037377797067165375, -0.254559725522995, -0.20030099153518677, -0.2329908311367035, -0.24436962604522705, 0.24784816801548004, -0.041619133204221725, 0.14786839485168457, -0.31237998604774475, 0.3225722908973694, -0.1367618292570114, -0.05159809812903404, 0.04162834212183952, 0.054570816457271576, -0.45840927958488464, 0.6442712545394897, -0.27757468819618225, -0.49756377935409546, 0.19162143766880035, 0.16856291890144348, 0.3659406304359436, 0.4488728642463684, 0.0472363643348217, 0.11433162540197372, 0.1473895013332367, -0.11060142517089844, 0.05620957165956497, 0.07604168355464935, 0.23533384501934052, -0.022662630304694176, 0.1571553647518158, 0.11755345016717911, -0.07409685850143433, -0.010389856062829494, 0.05458952486515045, 0.22116287052631378, 0.2090298980474472, 0.4589603841304779, 0.07631427049636841, 0.6128472089767456, 0.06709931045770645, -0.6483485102653503, 0.057989493012428284, -0.2046816200017929, 0.3649871349334717, -0.11801856756210327, -0.2335183173418045, 0.32664379477500916, -0.016942515969276428, 0.1533862203359604, 0.02917025052011013, -0.1508011817932129, -0.09526562690734863, -0.19704215228557587, 0.2728225588798523, -0.3071233928203583, -0.15409311652183533, 0.26966536045074463, -0.3257262408733368, 0.25776293873786926, -0.3124799430370331, 0.2771003246307373, -0.06721063703298569, -0.16107700765132904, 0.25389835238456726, 0.33993619680404663, 0.26574262976646423, 0.14257414638996124, -0.15450212359428406, -0.0029825090896338224, -0.5467545986175537, 0.259888619184494, -0.07410596311092377, 0.4347226023674011, -0.0868903249502182, 0.13990432024002075, 0.09342269599437714, 0.24146120250225067, 0.7726776599884033, 0.20273275673389435, -0.5556979775428772, -0.011865568347275257, -0.08352120965719223, -0.482852041721344, -0.12135475873947144, 0.006544946692883968, 0.13868044316768646, -0.13538758456707, 0.19088557362556458, -0.21867147088050842, -0.2697863280773163, -0.0511346198618412, 0.26687946915626526, -0.21818944811820984, 0.026883883401751518, -0.08293546736240387, -0.051273997873067856, -0.06738162785768509, 0.09949029982089996, 0.2984826862812042, 0.1287567913532257, 0.021568726748228073, -0.2902403175830841, -0.3583562672138214, 0.14387176930904388, 0.44087013602256775, -0.19629357755184174, 0.19311124086380005, 0.2548775374889374, -0.21164213120937347, 0.08775383979082108, 0.2692279815673828, 0.23539026081562042, -0.1807316392660141, -0.16844551265239716, -0.0917920395731926, 0.06575548648834229, -0.06015314161777496, 0.45419615507125854, -0.04473651573061943, 0.037375908344984055, -0.11459774523973465, -0.2269798219203949, -0.10908172279596329, -0.32349979877471924, 0.21260309219360352, 0.2521572411060333, 0.3025757670402527, -0.7884055376052856, -0.544299304485321, 0.2448839694261551, 0.15127666294574738, 0.20365944504737854, 0.49671000242233276, 0.3014931082725525, -0.08931101113557816, 0.133183553814888, 0.5167667865753174, 0.7235730290412903, -0.4403665065765381, 0.2087448090314865, 0.15286073088645935, -0.13520555198192596, 0.4863540828227997, -0.46839651465415955, 0.2737191915512085, -0.3209708034992218, -0.03335079923272133, -0.40797436237335205, -0.24025793373584747, 0.09103817492723465, 0.14531418681144714, 0.10421019047498703, 0.17466315627098083, -0.4771815836429596, 0.2962512671947479, -0.002069817390292883, -0.10513656586408615, 0.06221765652298927, -0.30067482590675354, 0.02425716444849968, 0.04470323398709297, -0.23823975026607513, 0.06198860704898834, 0.05130761116743088, -0.04984503984451294, -0.042767252773046494, 0.2735273540019989, -0.2546391785144806, -0.14871235191822052, -0.3635270297527313, -0.024081656709313393, 0.08029179275035858, -0.9106847047805786, 0.33142656087875366, 0.6718668937683105, 0.6400456428527832, -0.029920175671577454, -0.11608227342367172, -0.12339113652706146, -0.08240184187889099, -0.11754747480154037, -0.14996172487735748, 0.05989685282111168, 0.24630630016326904, 0.10090320557355881, 0.12225576490163803, 0.3658825159072876, 0.2592412829399109, -0.08992572128772736, -0.0198990348726511, 0.008575624786317348, -0.0084144352003932, -0.39364093542099, -0.6244143843650818, 0.006045153364539146, 0.32281166315078735, 0.08910008519887924, 0.027946464717388153, 0.12683874368667603, -0.12331388890743256, 0.27057063579559326, -0.10165577381849289, -0.10501909255981445, 0.13362616300582886, 0.15311597287654877, 0.006571252830326557, -0.21788181364536285, 0.33959126472473145, 0.3549002707004547, -0.25397711992263794, -0.036724161356687546, -0.03279663622379303, 0.48724377155303955, -0.11750874668359756, 0.08984380215406418, -0.12113162130117416, 0.18238355219364166, -0.19155995547771454, 0.31415921449661255, -0.2143554985523224, 0.05060017108917236, -0.03046690858900547, -0.11681672930717468, -0.16960151493549347, -0.0866607278585434, -0.22238565981388092, 0.3939134180545807, 0.19307345151901245, 0.14748001098632812, 0.0428566075861454, -0.2638680934906006, -0.12461911141872406, -0.0007997107459232211, 0.02465270832180977, 0.21864664554595947, 0.03738619387149811, 0.34223613142967224, -0.07445856183767319, -0.18571564555168152, 0.004725887440145016, 0.12638472020626068, 0.09883309155702591, -0.12558886408805847, -0.18602052330970764, 0.15718308091163635, 0.08856663852930069, 0.1546735316514969, 0.19220344722270966, -0.029055042192339897, -0.3014986515045166, -0.29980742931365967, 0.20541676878929138, 0.47492432594299316, -0.08227953314781189, 0.5092021822929382, -0.03951646760106087, 0.15364283323287964, -0.03764825314283371, -0.011223360896110535, 0.27956435084342957, -0.026845373213291168, 0.15633124113082886, 0.0051206848584115505, 0.04819798097014427, -0.0066690584644675255, -0.30123579502105713, 0.30353212356567383, 0.22089122235774994, -0.24159763753414154, 0.03474407643079758, -0.016291912645101547, 0.16150067746639252, 0.011128491722047329, 0.0818251520395279, 0.02726956270635128, -0.07982346415519714, 0.33883726596832275, 0.23706920444965363, -0.0012149926042184234, 0.037492938339710236, 0.12511087954044342, 0.06854186952114105, -0.0216484647244215, -0.05958959832787514, 0.13064266741275787, 0.15587003529071808, -0.1192539632320404, -0.10880840569734573, -0.244717076420784, 0.0351114347577095, -0.36084407567977905, 0.27795466780662537, 0.07823270559310913, 0.29046258330345154, 0.06496386229991913, 0.19319339096546173, 0.011961853131651878, -0.03224227949976921, -0.27289289236068726, 0.2033381462097168, 0.3375242352485657, 0.39242011308670044, -0.11422409862279892, 0.3086027503013611, -0.21244332194328308, -0.25209543108940125, -0.2953304648399353, 0.09576427936553955, 0.3000324070453644, 0.05209739878773689, 0.4198814928531647, -0.08451283723115921, -0.40073269605636597, -0.15737786889076233, 0.10226428508758545, -0.3023596405982971, 0.006012648809701204, -0.2600743770599365, 0.12816227972507477, 0.2903256118297577, 0.05165841057896614, -0.08670566231012344, -0.3957052528858185, 0.25724565982818604, 0.18434813618659973, 0.09140939265489578, 0.2649305462837219, 0.14339523017406464, 0.2192564606666565, 0.06524642556905746, 0.0689195841550827, -0.05405893549323082, -0.21414965391159058, -0.09969817847013474, -0.04149307310581207, 0.2261919230222702, 0.264382928609848, 0.20510224997997284, 0.149602010846138, 0.1185399666428566, -0.12864255905151367, -0.0508817583322525, 0.3582123816013336, 0.18059547245502472, 0.08653567731380463, -0.06618306785821915, 0.1045110747218132, 0.08722145110368729, 0.1204349547624588, -0.029785718768835068, -0.062543123960495, 0.1956665813922882, -0.2986261248588562, -0.18398027122020721, -0.38200071454048157, -0.298616886138916, -0.34546855092048645, -0.025027429684996605, -0.19504107534885406, 0.03979169949889183, 0.34293439984321594, 0.07483379542827606, -0.12234755605459213, 0.11729926615953445, -0.01892041228711605, 0.06898593157529831, 0.32520443201065063, -0.02865910902619362, 0.3553133010864258, -0.02472534216940403, -0.22976307570934296, -0.12274903059005737, 0.07837630063295364, 0.30535194277763367, 0.20919078588485718, -0.12961770594120026, -0.09332745522260666, 0.1991821676492691, 0.08901932835578918, -0.1796438843011856, -0.17548324167728424, 0.14526288211345673, 0.4372386932373047, -0.08524789661169052, -0.12611529231071472, -0.4263879656791687, 0.09975741803646088, 0.016285957768559456, -0.05521843954920769, 0.04478400945663452, -0.04662064462900162, -0.11090946197509766, -0.2146400362253189, 0.46596992015838623, -0.07415703684091568, 0.3106866478919983, 0.12527254223823547, 0.004640741273760796, 0.29907703399658203, 0.21990913152694702, 0.22128747403621674, -0.08248114585876465, 0.14761650562286377, -0.1360059529542923, 0.2829577624797821, -0.20252123475074768, 0.10332360118627548, -0.209032341837883, -0.3423646092414856, -0.13384169340133667, 0.5338135361671448, 0.07488220185041428, -0.21114619076251984, -0.07289964705705643, 0.18708287179470062, -0.19916749000549316, -0.3507274389266968, 0.6488540172576904, 0.3711217939853668, 0.06720593571662903, 0.19064024090766907, -0.2452266663312912, 0.03795529156923294, 0.24805821478366852, -0.34065353870391846, -0.18918746709823608, 0.08417506515979767, -0.33199983835220337, 0.3432600498199463, 0.20481103658676147, -0.9493136405944824, -0.020699862390756607, 0.041689928621053696, -0.2652866542339325, -0.0787377804517746, 0.231191024184227, 0.07804466038942337, 0.06430867314338684, -0.22882331907749176, 0.3666214942932129, 0.16641037166118622, 0.050181400030851364, -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.23399728536605835, -0.4713834524154663, -0.058725956827402115, 0.14542780816555023, 0.5945413708686829, 0.38139984011650085, 0.5536247491836548, 0.3486228287220001, 0.02040262147784233, 0.08473756909370422, -0.13874004781246185, 0.34072279930114746, -0.175779327750206, 0.14769130945205688, 0.17231906950473785, -0.37784674763679504, 0.30846890807151794, -0.08804305642843246, -0.04872497543692589, 0.07291479408740997, -0.24024462699890137, -0.008995633572340012, -0.13229665160179138, -0.2712599039077759, -0.17395378649234772, -0.22400687634944916, -0.03734033554792404, -0.36398184299468994, -0.12426722794771194, -0.08157865703105927, 0.2801266312599182, 0.04255641624331474, 0.26847270131111145, 0.4797206521034241, -0.00012504284677561373, -0.038065098226070404, -0.037614334374666214, -0.11308140307664871, -0.08157970011234283, -0.33088263869285583, 0.14338622987270355, -0.3101421892642975, 0.31452229619026184, -0.23096086084842682, -0.4044009745121002, 0.10086019337177277, 0.004184936638921499, -0.3171211779117584, 0.2870211899280548, 0.5416359901428223, 0.10367077589035034, 0.1582946926355362, 0.2337701916694641, 0.05700387433171272, -0.2884038984775543, 0.35082247853279114, -0.3622894883155823, 0.029086114838719368, 0.10623637586832047, 0.09897896647453308, 0.2423042356967926, 0.1262858361005783, -0.1447201371192932, -0.009932837449014187, 0.3419010639190674, -0.011704567819833755, -0.33001184463500977, -0.34304603934288025, 0.028955191373825073, 0.17491137981414795, 0.5755481719970703, -0.3697308301925659, -0.3937678039073944, 0.047625213861465454, 0.10242240875959396, -0.46207931637763977, -0.23093560338020325, 0.6167898178100586, -0.35677966475486755, 0.10831551253795624, -0.3492465019226074, 0.036721307784318924, -0.2219846546649933, 0.11479809880256653, -0.23694272339344025, -0.012934786267578602, -0.19366362690925598, -0.019067276269197464, 0.11135341972112656, 0.12375441193580627, 0.3501030206680298, 0.11340208351612091, 0.2030443400144577, 0.1549074351787567, -0.4486974775791168, -0.09801767021417618, -0.5485568642616272, -0.16816969215869904, 0.13751642405986786, 0.04020633548498154, 0.13041925430297852, 0.007959249429404736, -0.12788665294647217, 0.005656161345541477, -0.22420743107795715, 0.34718307852745056, 0.06690867990255356, 0.16434386372566223, -0.04320122301578522, -0.269573450088501, 0.3038640320301056, -0.056413888931274414, -0.23167403042316437, -0.5269579291343689, -0.3164825737476349, 0.18811258673667908, 0.05350024998188019, -0.05370388925075531, -0.2678459584712982, -0.12505708634853363, -0.024798402562737465, 0.20733799040317535, -0.23674821853637695, 0.30646783113479614, 0.026695696637034416, 0.17560291290283203, 0.41726359724998474, 0.24028919637203217, 0.08842536807060242, 0.11471161991357803, 0.00825638696551323, 0.18305639922618866, -0.2545359134674072, -0.16197431087493896, 0.018234308809041977, -0.4084235727787018, -0.000009232687261828687, 0.11447779089212418, -0.014623315073549747, 0.03693294897675514, -0.17126347124576569, 0.10971696674823761, 0.48067110776901245, 0.15008708834648132, -0.05557285621762276, 0.31689879298210144, 0.2587449848651886, 0.1715788096189499, -0.17937277257442474, 0.12781600654125214, -0.43339821696281433, -0.05245765298604965, -0.49587181210517883, -0.03925398737192154, 0.19065196812152863, 0.020578419789671898, -0.26810362935066223, 0.2509728670120239, 0.19777657091617584, 0.1804838478565216, 0.10702246427536011, -0.16016294062137604, -0.1691140979528427, -0.33876219391822815, 0.4698263108730316, 0.08423907309770584, -0.3453785181045532, 0.02973584458231926, 0.4349886476993561, 0.00040815750253386796, 0.2666269540786743, 0.31809431314468384, 0.17470486462116241, -0.13623782992362976, -0.05826778709888458, -0.30671972036361694, 0.5030121803283691, -0.38117077946662903, -0.0021101748570799828, -0.11774299293756485, 0.18078657984733582, -0.20469030737876892, -0.11610882729291916, 0.07915003597736359, 0.21617825329303741, 0.05981260910630226, 0.13826243579387665, 0.24328714609146118, -0.02626081183552742, -0.029442239552736282, -0.011663636192679405, -0.043762512505054474, 0.555407702922821, -0.10150232911109924, -0.147030770778656, 0.33180826902389526, -0.250763475894928, -0.11310527473688126, 0.17606458067893982, -0.08090873062610626, -0.0702734962105751, 0.06364645808935165, 0.20800504088401794, 0.023251060396432877, -0.11838194727897644, 0.06959043443202972, -0.42079269886016846, -0.08125081658363342, 0.3631964921951294, 0.1965857446193695, -0.0006355706136673689, -0.12818802893161774, -0.06710075587034225, 0.01569843851029873, 0.0038445251993834972, -0.0556035079061985, -0.015543538145720959, -0.38849523663520813, -0.02553030103445053, -0.029872339218854904, -0.276423841714859, 0.25452470779418945, -0.2664066255092621, 0.17234662175178528, -0.2724769711494446, 0.0402165912091732, 0.057476479560136795, -0.13148725032806396, 0.1593993753194809, 0.23209550976753235, 0.06383118778467178, -0.24902088940143585, 0.04840634763240814, 0.14101549983024597, 0.17529383301734924, -0.021081650629639626, -0.40797165036201477, 0.2039380669593811, 0.2236025035381317, 0.017494788393378258, -0.06829759478569031, 0.14139504730701447, -0.03048759326338768, -0.16485591232776642, -0.40904998779296875, 0.3825002610683441, -0.025721468031406403, 0.21203292906284332, -0.36238110065460205, 0.4157850742340088, 0.20953810214996338, 0.08521991223096848, -0.037051260471343994, 0.07534502446651459, -0.022805964574217796, 0.08234499394893646, 0.177343487739563, -0.07552176713943481, -0.84297776222229, -0.0377751961350441, 0.08810444176197052, 0.003272340865805745, 0.09828587621450424, 0.10125616937875748, -0.1349601298570633, 0.0992465615272522, 0.29310736060142517, -0.3925173878669739, -0.13158278167247772, 0.058647461235523224, 0.16302438080310822, 0.07026088982820511, 0.05519580841064453, -0.16240157186985016, 0.028401946648955345, -0.06881680339574814, -0.03662069886922836, -0.17232643067836761, 0.1315053105354309, -0.05442069098353386, 0.0410272441804409, 0.33361905813217163, -0.02180478535592556, 0.13820303976535797, -0.46335190534591675, 0.04508339241147041, -0.4018612802028656, -0.017923960462212563, -0.3308517038822174, -0.32822299003601074, 0.04917289316654205, -0.03659413009881973, -0.24194543063640594, 0.13144324719905853, 0.3399288058280945, 0.3103055953979492, 0.23228292167186737, 0.140580952167511, 0.22552059590816498, -0.09868297725915909, -0.2828424870967865, -0.25501319766044617, 0.12666082382202148, 0.023345593363046646, 0.36921560764312744, -0.12413375079631805, 0.17337191104888916, -0.19539491832256317, 0.21282117068767548, -0.3078770935535431, 0.07725471258163452, -0.13897736370563507, -0.16885477304458618, -0.030745968222618103, 0.12552933394908905, 0.39944756031036377, -0.11662670224905014, -0.021317563951015472, 0.12724602222442627, 0.1648903787136078, 0.027348538860678673, 0.025696832686662674, -0.29784828424453735, -0.0583030991256237, -0.18600809574127197, -0.21474261581897736, -0.22172507643699646, -0.2360038310289383, 0.2539243996143341, -0.0015278137288987637, 0.10121913999319077, -0.270393967628479, 0.4285290539264679, -0.12148620188236237, 0.09366444498300552, -0.0723857656121254, 0.09459777176380157, -0.49328556656837463, 0.6376006603240967, -0.25055432319641113, -0.5051740407943726, 0.175052672624588, 0.16696876287460327, 0.40394672751426697, 0.35992956161499023, -0.0157580878585577, 0.12108485400676727, 0.1616237759590149, -0.026471329852938652, 0.062337733805179596, 0.03719675540924072, 0.23683500289916992, -0.02307322435081005, 0.1312926858663559, 0.10761900246143341, -0.07475448399782181, -0.048899516463279724, 0.09959770739078522, 0.30013659596443176, 0.1771593689918518, 0.5592434406280518, 0.09301614761352539, 0.6866160035133362, 0.1286585032939911, -0.5674315094947815, 0.010749082081019878, -0.2740855813026428, 0.3683095872402191, -0.11805052310228348, -0.34109923243522644, 0.2362455129623413, -0.03753028064966202, 0.17968498170375824, 0.019972313195466995, -0.11563728004693985, -0.02445199340581894, -0.18771088123321533, 0.10297318547964096, -0.30499163269996643, -0.11817272752523422, 0.1908492147922516, -0.3305312693119049, 0.16518090665340424, -0.3155163526535034, 0.3517721891403198, -0.06922506541013718, -0.18026846647262573, 0.23913778364658356, 0.36207470297813416, 0.2759834825992584, 0.18264992535114288, -0.04662272706627846, -0.006592000834643841, -0.6597190499305725, 0.2536439299583435, -0.14832070469856262, 0.4231066107749939, -0.08791164308786392, 0.2414025515317917, 0.13232655823230743, 0.23634687066078186, 0.8280130624771118, 0.19685283303260803, -0.5567102432250977, 0.019037803635001183, -0.10753308981657028, -0.5107789635658264, -0.11072017252445221, 0.07239166647195816, 0.14274881780147552, -0.07743857055902481, 0.09410179406404495, -0.13572412729263306, -0.25693491101264954, -0.08631718903779984, 0.311913400888443, -0.2843702733516693, 0.023993657901883125, -0.1211046501994133, -0.10736063122749329, -0.10288175940513611, 0.09147072583436966, 0.23088425397872925, 0.14899790287017822, 0.0312935933470726, -0.23969648778438568, -0.2657477557659149, 0.09349872916936874, 0.4447600841522217, -0.10398004949092865, 0.19375410676002502, 0.24020175635814667, -0.15886379778385162, 0.05638879910111427, 0.17618051171302795, 0.2523499131202698, -0.13006263971328735, -0.22162595391273499, -0.13753122091293335, -0.07664932310581207, -0.10140977799892426, 0.4849339425563812, -0.06769994646310806, -0.031449928879737854, -0.12944427132606506, -0.23150160908699036, -0.059891171753406525, -0.27506449818611145, 0.19623978435993195, 0.21767133474349976, 0.29212746024131775, -0.6761098504066467, -0.500591516494751, 0.30805161595344543, 0.13609670102596283, 0.21733736991882324, 0.5419604778289795, 0.31161051988601685, -0.07332545518875122, 0.20434539020061493, 0.4828854501247406, 0.7467308640480042, -0.44846877455711365, 0.0871138721704483, 0.22865542769432068, -0.2027856856584549, 0.5286082625389099, -0.45835259556770325, 0.2617253363132477, -0.3106415569782257, -0.046829305589199066, -0.35948383808135986, -0.16608616709709167, 0.11217664927244186, 0.15606005489826202, 0.030176427215337753, 0.27585968375205994, -0.46926653385162354, 0.11992809176445007, -0.04167253524065018, -0.03964469954371452, 0.1339372843503952, -0.2912847101688385, -0.06380949914455414, 0.05224476754665375, -0.1875176578760147, 0.11367229372262955, 0.07890140265226364, -0.06239056587219238, -0.1171053946018219, 0.2801485061645508, -0.20945210754871368, -0.09150982648134232, -0.2913130521774292, 0.03511783480644226, 0.04448416456580162, -0.946085512638092, 0.287838876247406, 0.6920862197875977, 0.6729735136032104, -0.0539446622133255, -0.16225285828113556, -0.09288347512483597, -0.11926737427711487, -0.1274367719888687, -0.17472833395004272, 0.054855238646268845, 0.30427560210227966, 0.09115580469369888, 0.11327317357063293, 0.2836304306983948, 0.24067141115665436, -0.04393448680639267, -0.00020262373436708003, 0.0242043137550354, -0.046582866460084915, -0.35493144392967224, -0.542656660079956, 0.0033764818217605352, 0.27082884311676025, 0.037426214665174484, 0.02897791936993599, 0.12652060389518738, -0.07382162660360336, 0.2401248663663864, -0.11891502141952515, -0.1349518895149231, 0.07924456894397736, 0.14226308465003967, -0.013510524295270443, -0.23536154627799988, 0.31125277280807495, 0.4385105073451996, -0.25639966130256653, -0.022135291248559952, -0.08899141848087311, 0.49139514565467834, -0.07469796389341354, 0.1575944870710373, -0.16272284090518951, 0.2984328866004944, -0.16704025864601135, 0.23340128362178802, -0.20549114048480988, 0.054350245743989944, -0.05569382384419441, -0.10907525569200516, -0.279104083776474, -0.17233151197433472, -0.18873487412929535, 0.32043352723121643, 0.20893646776676178, 0.1702374666929245, 0.08257664740085602, -0.19307655096054077, -0.14431756734848022, 0.017290251329541206, 0.0009174451697617769, 0.2042655050754547, 0.10811407119035721, 0.30624720454216003, -0.10176301747560501, -0.23826423287391663, 0.00021592105622403324, 0.09640222787857056, 0.0771973580121994, -0.11649225652217865, -0.1810883730649948, 0.14457735419273376, 0.0485256053507328, 0.12016026675701141, 0.16599223017692566, -0.0196218341588974, -0.2690391540527344, -0.3319350779056549, 0.22133372724056244, 0.5063855648040771, -0.05209193378686905, 0.5310236811637878, 0.015691712498664856, 0.1246667131781578, -0.04674531891942024, -0.1051020547747612, 0.22836245596408844, 0.0009690375882200897, 0.06900116056203842, 0.03986087068915367, 0.12662264704704285, -0.04824662581086159, -0.257553368806839, 0.1838671863079071, 0.11033923178911209, -0.2583170533180237, 0.1548946499824524, 0.06881231814622879, 0.17193178832530975, -0.03132915496826172, 0.024329321458935738, 0.060848504304885864, -0.0913807824254036, 0.3637610375881195, 0.27780789136886597, 0.009463255293667316, -0.021956250071525574, 0.12750466167926788, 0.0253047663718462, -0.02991931512951851, -0.10487852990627289, 0.09501167386770248, 0.1831587553024292, -0.10085418820381165, -0.17035448551177979, -0.21469955146312714, 0.18381957709789276, -0.4327240586280823, 0.19028201699256897, 0.11702795326709747, 0.25387054681777954, 0.05563506856560707, 0.21168743073940277, 0.039943695068359375, -0.04207266867160797, -0.08495871722698212, 0.17831990122795105, 0.3768419325351715, 0.38276347517967224, -0.12037011235952377, 0.30994418263435364, -0.105523020029068, -0.28332653641700745, -0.27088725566864014, 0.005258035380393267, 0.21140125393867493, 0.03841939568519592, 0.3883092999458313, -0.09094271808862686, -0.35263127088546753, -0.10377209633588791, 0.20786432921886444, -0.29987969994544983, 0.03487749397754669, -0.1480349898338318, 0.1560298502445221, 0.3107510209083557, 0.0497477650642395, -0.043105605989694595, -0.4737071692943573, 0.196872279047966, 0.13566428422927856, 0.034019432961940765, 0.377285897731781, 0.08544357866048813, 0.23622693121433258, 0.0820140540599823, 0.009649078361690044, -0.2035851627588272, -0.16317640244960785, -0.10276278108358383, -0.11565546691417694, 0.1711791604757309, 0.3749372065067291, 0.15429891645908356, 0.1124267652630806, 0.15369579195976257, -0.05061614513397217, -0.09662695229053497, 0.3804791569709778, 0.24381262063980103, 0.012849662452936172, 0.04839067906141281, 0.06193636357784271, 0.0990794450044632, 0.1020309329032898, -0.09455592185258865, -0.053029511123895645, 0.22165487706661224, -0.2926774322986603, -0.13107481598854065, -0.3994079530239105, -0.3589654564857483, -0.38508737087249756, -0.018152525648474693, -0.15140409767627716, 0.10215066373348236, 0.34588027000427246, 0.0406319685280323, -0.147754967212677, 0.06733955442905426, -0.01604059338569641, 0.05649062246084213, 0.35833221673965454, 0.013549169525504112, 0.3651581406593323, -0.062467701733112335, -0.24868857860565186, -0.13336527347564697, 0.03950747475028038, 0.2420816570520401, 0.16703030467033386, -0.12538930773735046, -0.11927306652069092, 0.11325755715370178, 0.06010613590478897, -0.24929726123809814, -0.13585105538368225, 0.14731085300445557, 0.43460676074028015, -0.051164209842681885, -0.11231499165296555, -0.466806560754776, 0.058228932321071625, 0.0485127791762352, 0.03288931027054787, 0.11925789713859558, -0.07989270240068436, -0.10707122087478638, -0.22860008478164673, 0.511403501033783, -0.08231107890605927, 0.3495625853538513, 0.11860398203134537, 0.005926228128373623, 0.3164982199668884, 0.23208238184452057, 0.29436516761779785, -0.05984731763601303, 0.156662717461586, -0.08232209831476212, 0.3606933355331421, -0.1621674746274948, 0.10245884954929352, -0.1270543485879898, -0.48811712861061096, -0.16486245393753052, 0.5384291410446167, 0.11123640090227127, -0.17530016601085663, -0.08734530955553055, 0.2083650529384613, -0.20336773991584778, -0.28475549817085266, 0.6637995839118958, 0.3430192768573761, 0.046937692910432816, 0.15813463926315308, -0.2644056975841522, -0.019473766908049583, 0.2774273753166199, -0.33322298526763916, -0.25801607966423035, 0.04286660626530647, -0.3855658173561096, 0.36430278420448303, 0.12722592055797577, -0.9844721555709839, -0.05032945051789284, 0.01650979369878769, -0.24294818937778473, -0.11023297905921936, 0.21021828055381775, 0.014381064102053642, 0.12927910685539246, -0.18881447613239288, 0.28011947870254517, 0.10042662918567657, 0.05050500109791756, -0.5019506216049194, -0.3692333996295929 ]
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.2076086699962616, -0.4493275582790375, -0.08087828010320663, 0.1429595649242401, 0.5672457218170166, 0.3796423077583313, 0.531069278717041, 0.33096665143966675, -0.018164722248911858, 0.140957310795784, -0.07886847108602524, 0.2365311086177826, -0.2230985462665558, 0.13259823620319366, 0.17031143605709076, -0.3306938111782074, 0.257310688495636, -0.09791487455368042, -0.037962641566991806, 0.0790335088968277, -0.13591836392879486, -0.01285621803253889, -0.10507534444332123, -0.31055957078933716, -0.23593832552433014, -0.1902671903371811, 0.05615867301821709, -0.3857472240924835, -0.19675298035144806, -0.057616665959358215, 0.19551941752433777, 0.10024567693471909, 0.2974630296230316, 0.44190773367881775, -0.00012571117258630693, -0.04053869843482971, -0.07637081295251846, -0.10638744384050369, -0.08023122698068619, -0.2797967791557312, 0.10085292160511017, -0.26195940375328064, 0.35209476947784424, -0.19315123558044434, -0.41677868366241455, 0.15886014699935913, 0.03766973316669464, -0.33669623732566833, 0.22111643850803375, 0.5201236605644226, 0.10554628819227219, 0.20198221504688263, 0.2504805326461792, 0.024019265547394753, -0.1411982774734497, 0.4127923846244812, -0.4059522747993469, 0.059383004903793335, 0.18688379228115082, 0.14194773137569427, 0.23614150285720825, 0.19561609625816345, -0.10180380940437317, 0.036722708493471146, 0.2884666919708252, -0.007952793501317501, -0.39253368973731995, -0.3323217034339905, 0.022508302703499794, 0.1464354395866394, 0.7426344156265259, -0.3099432587623596, -0.3527885675430298, 0.10354647785425186, 0.07862906903028488, -0.38191062211990356, -0.23601169884204865, 0.607379674911499, -0.33573228120803833, 0.1058313399553299, -0.31759706139564514, -0.02527785860002041, -0.21145540475845337, 0.11352469027042389, -0.20103779435157776, -0.021082429215312004, -0.21688809990882874, -0.013413144275546074, 0.08003563433885574, 0.15097583830356598, 0.34543144702911377, 0.2128305584192276, 0.20728838443756104, 0.1462777853012085, -0.45731261372566223, -0.10751986503601074, -0.5549707412719727, -0.13731837272644043, 0.1715206503868103, 0.09198401123285294, 0.1974625587463379, -0.002513352781534195, -0.13473652303218842, 0.014733918942511082, -0.2574053704738617, 0.2582010328769684, 0.0727013349533081, 0.21643252670764923, -0.03819772228598595, -0.2039446234703064, 0.32640540599823, -0.05225668102502823, -0.3161255121231079, -0.5621760487556458, -0.31392037868499756, 0.22406752407550812, 0.07097253203392029, -0.1325157880783081, -0.2899281084537506, -0.06305834650993347, -0.020323701202869415, 0.1519993394613266, -0.1952330470085144, 0.32590022683143616, 0.04246760532259941, 0.1394875943660736, 0.45178645849227905, 0.19386263191699982, 0.010500575415790081, 0.03388344869017601, 0.005043207202106714, 0.16968905925750732, -0.30449944734573364, -0.0738300010561943, 0.031079545617103577, -0.33893120288848877, -0.047170598059892654, 0.07432356476783752, -0.021770713850855827, -0.007043562363833189, -0.1374230980873108, 0.15929266810417175, 0.5288164019584656, 0.14859463274478912, -0.05669332668185234, 0.31778308749198914, 0.21659348905086517, 0.23407921195030212, -0.20230884850025177, 0.11907057464122772, -0.442716509103775, -0.13292106986045837, -0.5485052466392517, -0.02079159952700138, 0.2262340486049652, 0.008071811869740486, -0.17920245230197906, 0.20978987216949463, 0.24655656516551971, 0.13048657774925232, 0.10137073695659637, -0.08268367499113083, -0.13238029181957245, -0.30940577387809753, 0.498271107673645, 0.15358684957027435, -0.3233241140842438, 0.03163609653711319, 0.4733228087425232, -0.04352470859885216, 0.20701175928115845, 0.34176936745643616, 0.19740527868270874, -0.05036491900682449, -0.12042193859815598, -0.30957287549972534, 0.45860087871551514, -0.40097281336784363, -0.024446235969662666, -0.18579071760177612, 0.11774226278066635, -0.2924160957336426, -0.07877451181411743, 0.08995217084884644, 0.27810966968536377, 0.0961889922618866, 0.15394064784049988, 0.16230586171150208, -0.011931207031011581, 0.0019589553121477365, -0.027278942987322807, -0.011946364305913448, 0.4723081588745117, -0.09964601695537567, -0.19392652809619904, 0.3507115840911865, -0.22162652015686035, -0.06640684604644775, 0.18247076869010925, -0.09202216565608978, -0.04421274736523628, 0.0883370116353035, 0.26010406017303467, 0.027874281629920006, -0.14926432073116302, 0.062236689031124115, -0.46463900804519653, -0.12677957117557526, 0.4345216453075409, 0.21471937000751495, 0.07348062098026276, -0.17251992225646973, -0.02750321291387081, 0.0007657475653104484, -0.020172331482172012, -0.08455657958984375, -0.02856564149260521, -0.35601574182510376, -0.05885210633277893, -0.11671268939971924, -0.2934113144874573, 0.22823797166347504, -0.3179709017276764, 0.21134424209594727, -0.3106464147567749, 0.008449421264231205, 0.05475658178329468, -0.09878356754779816, 0.05938659608364105, 0.23880016803741455, 0.013986173085868359, -0.25569283962249756, 0.061043880879879, 0.08806617558002472, 0.16654059290885925, -0.061691947281360626, -0.372415691614151, 0.2719934284687042, 0.2509317100048065, -0.06388721615076065, -0.1255132257938385, 0.03958764299750328, -0.0599651113152504, -0.13796207308769226, -0.4441957175731659, 0.333382248878479, 0.009531713090837002, 0.18334026634693146, -0.37802284955978394, 0.39142534136772156, 0.16075396537780762, 0.11271177977323532, -0.09410157799720764, 0.019278276711702347, 0.012938500382006168, 0.17888286709785461, 0.10638660192489624, -0.09390690922737122, -0.8347510695457458, -0.03460438922047615, 0.009974533692002296, -0.00935277994722128, 0.10383020341396332, 0.09021241217851639, -0.08894225209951401, 0.15638971328735352, 0.2987089455127716, -0.38358092308044434, -0.14632976055145264, 0.06979824602603912, 0.19326770305633545, 0.053692299872636795, 0.09002875536680222, -0.17241308093070984, -0.006565100513398647, -0.14951005578041077, -0.06291202455759048, -0.11087831109762192, 0.10530506819486618, -0.026862533763051033, 0.01981530338525772, 0.3037306070327759, -0.032922208309173584, 0.12077229470014572, -0.526821494102478, -0.08210588246583939, -0.34647661447525024, 0.09703481942415237, -0.364433228969574, -0.3428700566291809, 0.01659313775599003, 0.010352755896747112, -0.14448924362659454, 0.15347810089588165, 0.3193199634552002, 0.253152996301651, 0.26241105794906616, 0.17821986973285675, 0.19323770701885223, -0.09990814328193665, -0.1598992794752121, -0.22999785840511322, 0.18158255517482758, 0.011940531432628632, 0.34749719500541687, -0.15609128773212433, 0.20444773137569427, -0.3022928833961487, 0.1655818670988083, -0.38410866260528564, 0.020667918026447296, -0.09328722953796387, -0.10448510199785233, -0.11262422055006027, 0.1318238079547882, 0.4242881238460541, -0.006745345890522003, 0.01334269717335701, 0.10773905366659164, 0.14083720743656158, -0.028689203783869743, -0.028262905776500702, -0.3399512767791748, -0.04495525360107422, -0.21763581037521362, -0.28190556168556213, -0.19108761847019196, -0.25679051876068115, 0.25686317682266235, -0.015286656096577644, 0.15547029674053192, -0.33966875076293945, 0.3959319293498993, -0.12996181845664978, 0.004628361202776432, -0.02347647026181221, 0.028850575909018517, -0.534770667552948, 0.6057139039039612, -0.2924809753894806, -0.532359778881073, 0.19576942920684814, 0.1842225193977356, 0.3844265043735504, 0.3929900527000427, 0.0005281900521367788, 0.19037187099456787, 0.17102216184139252, -0.07116466015577316, 0.04338131844997406, 0.07370296865701675, 0.3059949576854706, -0.01407641265541315, 0.14992409944534302, 0.12253221124410629, -0.1269405037164688, -0.0466797761619091, 0.08883754909038544, 0.2946564853191376, 0.11531393229961395, 0.48374661803245544, 0.061436668038368225, 0.6757722496986389, 0.08866927772760391, -0.5966693162918091, 0.07480765879154205, -0.27575233578681946, 0.3746645152568817, -0.1389729380607605, -0.2873619496822357, 0.295644074678421, -0.031816545873880386, 0.10922485589981079, 0.022996125742793083, -0.12118355184793472, 0.039766255766153336, -0.14700943231582642, 0.22818905115127563, -0.348196804523468, -0.12248671054840088, 0.20938114821910858, -0.33852389454841614, 0.18097610771656036, -0.3129071593284607, 0.304558664560318, -0.05841749534010887, -0.15167485177516937, 0.19676774740219116, 0.38917267322540283, 0.3139391541481018, 0.11892866343259811, -0.10168373584747314, 0.07036397606134415, -0.6821164488792419, 0.24818263947963715, -0.1574200689792633, 0.3805268108844757, -0.15121306478977203, 0.20292460918426514, 0.1421329528093338, 0.2285236120223999, 0.787183403968811, 0.16394539177417755, -0.5181645154953003, -0.060919564217329025, -0.06351365894079208, -0.4389629662036896, -0.11758161336183548, 0.05923271179199219, 0.17372943460941315, -0.11416207998991013, 0.15684308111667633, -0.1653032749891281, -0.2418534904718399, -0.012508708983659744, 0.2245446741580963, -0.2485744059085846, 0.04289218783378601, -0.11514150351285934, -0.06530643254518509, -0.14277736842632294, 0.12664899230003357, 0.30156004428863525, 0.1439417451620102, 0.0740274116396904, -0.27820324897766113, -0.21069054305553436, 0.1488359272480011, 0.4324984550476074, -0.13545657694339752, 0.1918824017047882, 0.23676833510398865, -0.15412311255931854, 0.15876533091068268, 0.22914089262485504, 0.29652923345565796, -0.059935349971055984, -0.20784130692481995, -0.10693460702896118, 0.04631830379366875, -0.07800284773111343, 0.477435439825058, -0.019223904237151146, 0.0863267108798027, -0.13395912945270538, -0.19644539058208466, -0.05291920155286789, -0.3171692192554474, 0.2225014865398407, 0.2268722653388977, 0.3045932948589325, -0.7227415442466736, -0.46593549847602844, 0.27879390120506287, 0.16245493292808533, 0.2051006555557251, 0.5931312441825867, 0.3560987412929535, -0.05792570859193802, 0.14737702906131744, 0.5321176648139954, 0.7870186567306519, -0.4854315221309662, 0.11152240633964539, 0.16901014745235443, -0.20266446471214294, 0.4901745617389679, -0.5520537495613098, 0.21403424441814423, -0.3513670861721039, -0.018512733280658722, -0.33782389760017395, -0.20042681694030762, 0.12047871202230453, 0.1363207995891571, 0.07245030999183655, 0.20748932659626007, -0.48449239134788513, 0.21365438401699066, -0.04385213553905487, -0.06625629961490631, 0.1448487788438797, -0.30373185873031616, 0.08005952090024948, 0.035920269787311554, -0.22243568301200867, 0.14975184202194214, 0.007113708648830652, 0.0018472092924639583, -0.09078959375619888, 0.240952730178833, -0.24584972858428955, -0.11437962204217911, -0.334763765335083, -0.04008111357688904, 0.04036206007003784, -0.8884330987930298, 0.3341015577316284, 0.6728865504264832, 0.6103255748748779, -0.02939796634018421, -0.183183491230011, -0.07584970444440842, -0.10741876065731049, -0.14762134850025177, -0.21664613485336304, 0.04439380392432213, 0.23397353291511536, 0.06904669851064682, 0.05514157563447952, 0.24889802932739258, 0.24396386742591858, -0.08115801960229874, -0.019442973658442497, 0.019079547375440598, 0.04437967389822006, -0.4064258337020874, -0.5095793008804321, 0.07069125771522522, 0.29182323813438416, 0.04282446205615997, 0.033473532646894455, 0.1449057012796402, -0.16944995522499084, 0.1561664640903473, -0.03555820882320404, -0.11281058937311172, 0.08772432059049606, 0.2027309387922287, -0.04606768116354942, -0.23523443937301636, 0.2552711069583893, 0.4344189167022705, -0.23227976262569427, -0.07194611430168152, -0.06106046587228775, 0.606114387512207, -0.1389586180448532, 0.03653089702129364, -0.1724817007780075, 0.19282199442386627, -0.15965330600738525, 0.23875243961811066, -0.19756728410720825, 0.027772000059485435, 0.005369425751268864, -0.0947650894522667, -0.2900635004043579, -0.15973499417304993, -0.2699226438999176, 0.3686089813709259, 0.17354661226272583, 0.15528234839439392, 0.055823761969804764, -0.2245466411113739, -0.13428354263305664, 0.06327275186777115, 0.051847103983163834, 0.22016054391860962, 0.12189580500125885, 0.29951807856559753, -0.07510989904403687, -0.2628996670246124, -0.0003999676264356822, 0.11265309154987335, 0.066086545586586, -0.11651433259248734, -0.15660013258457184, 0.14532892405986786, 0.0634855404496193, 0.14472346007823944, 0.15795263648033142, 0.0045553152449429035, -0.29167917370796204, -0.32062262296676636, 0.2610509395599365, 0.5018329620361328, -0.02619601972401142, 0.5026637315750122, 0.0075257765129208565, 0.07919175922870636, -0.07731474936008453, -0.09660245478153229, 0.29399237036705017, 0.0002708571555558592, 0.06005725637078285, 0.0017511515179648995, 0.04300616309046745, -0.06449461728334427, -0.29759466648101807, 0.25001809000968933, 0.21008974313735962, -0.21926163136959076, 0.07570171356201172, 0.04388144612312317, 0.2049112170934677, -0.07950171828269958, 0.11201129108667374, -0.01276416052132845, -0.07537677884101868, 0.33903685212135315, 0.2564387023448944, 0.02051289565861225, 0.041529200971126556, 0.13028095662593842, 0.03482704237103462, -0.04347722977399826, -0.10719985514879227, 0.08413178473711014, 0.16254423558712006, -0.023662319406867027, -0.19653263688087463, -0.2139080911874771, 0.08816489577293396, -0.3737870752811432, 0.2155647873878479, 0.037412747740745544, 0.213949054479599, 0.06402258574962616, 0.25108757615089417, 0.0048767440021038055, -0.029145807027816772, -0.12081176787614822, 0.19243364036083221, 0.419201135635376, 0.36367562413215637, -0.09857108443975449, 0.28450509905815125, -0.1430579423904419, -0.2455265074968338, -0.3108021318912506, 0.15044677257537842, 0.2094428390264511, -0.01651572994887829, 0.3741382360458374, -0.045217834413051605, -0.4020019769668579, -0.13959041237831116, 0.15651534497737885, -0.3509286642074585, 0.014773749746382236, -0.17180097103118896, 0.12919940054416656, 0.3239372670650482, 0.06256263703107834, -0.06671714037656784, -0.4656112492084503, 0.2416134476661682, 0.11075413227081299, 0.03724502772092819, 0.2784291207790375, 0.10986282676458359, 0.23688840866088867, 0.060493603348731995, 0.032940447330474854, -0.09338287264108658, -0.27926310896873474, -0.09873027354478836, -0.07737293094396591, 0.21191951632499695, 0.31340622901916504, 0.1710139513015747, 0.1951712667942047, 0.17252492904663086, -0.11214257776737213, -0.06688463687896729, 0.33307093381881714, 0.20092007517814636, 0.020565057173371315, -0.038724157959222794, 0.06291097402572632, 0.091338612139225, 0.08678645640611649, -0.07607428729534149, -0.04806742072105408, 0.23584634065628052, -0.24898333847522736, -0.2699624001979828, -0.38985535502433777, -0.3758755624294281, -0.3808152973651886, -0.0015235677128657699, -0.17872704565525055, 0.10032640397548676, 0.36580660939216614, 0.033629901707172394, -0.14601576328277588, 0.08231011778116226, -0.021311361342668533, 0.058329612016677856, 0.3585035502910614, -0.001569507410749793, 0.3383730351924896, -0.07027588784694672, -0.29230719804763794, -0.14474166929721832, 0.12557685375213623, 0.27029353380203247, 0.16379423439502716, -0.10627535730600357, -0.08355618268251419, 0.15262238681316376, 0.09803104400634766, -0.18127989768981934, -0.20747995376586914, 0.14957894384860992, 0.448621928691864, -0.09120152145624161, -0.06466405838727951, -0.4672205150127411, 0.09055165946483612, 0.07184230536222458, 0.03195924684405327, 0.07672761380672455, -0.021879099309444427, -0.11413133144378662, -0.2506004571914673, 0.5121708512306213, -0.11048448085784912, 0.31391164660453796, 0.17581747472286224, -0.007905052043497562, 0.3140561580657959, 0.19377176463603973, 0.21471820771694183, -0.09859213978052139, 0.12596076726913452, -0.09712149202823639, 0.3895471394062042, -0.14747613668441772, 0.0831448957324028, -0.16476327180862427, -0.3862554728984833, -0.18342489004135132, 0.5290042161941528, 0.12013022601604462, -0.13729628920555115, -0.13721120357513428, 0.22733710706233978, -0.13246457278728485, -0.26550599932670593, 0.6308999061584473, 0.3584330379962921, 0.08226220309734344, 0.18223004043102264, -0.30896440148353577, -0.0003801766724791378, 0.3028072416782379, -0.25665128231048584, -0.14606520533561707, 0.12070935219526291, -0.2959152162075043, 0.427427738904953, 0.09672211855649948, -1.0665239095687866, -0.031447406858205795, -0.00329125439748168, -0.30788522958755493, -0.13592390716075897, 0.2489355206489563, 0.03948686271905899, 0.12630538642406464, -0.18350964784622192, 0.3833092749118805, 0.1133226826786995, 0.07156772911548615, -0.4916667640209198, -0.3911876678466797 ]
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.1241120770573616, 0.09065619856119156, -0.0648522600531578, 0.4390100836753845, -0.1451857089996338, 0.13518136739730835, 0.14004367589950562, -0.09932774305343628, 0.3315924108028412, 0.17427171766757965, 0.18785680830478668, -0.05558544024825096, 0.3833339512348175, -0.37142813205718994, 0.02137637697160244, -0.2188200056552887, 0.13571353256702423, 0.18676628172397614, -0.3536699414253235, -0.29928794503211975, -0.12052903324365616, 0.4303141236305237, -0.29729267954826355, -0.3738270401954651, 0.004158101510256529, 0.19129212200641632, 0.042398981750011444, -0.02656501531600952, -0.03989701718091965, -0.2545050382614136, 0.07189562171697617, -0.12893009185791016, 0.023215850815176964, 0.2944532036781311, -0.00012120634346501902, -0.20768295228481293, 0.18299119174480438, 0.032717783004045486, -0.5496042370796204, -0.07042191177606583, -0.31867411732673645, -0.3378351032733917, -0.05534914508461952, -0.3048531711101532, 0.3356398046016693, 0.12569449841976166, 0.23537901043891907, 0.028540078550577164, -0.04302896559238434, -0.19880595803260803, 0.10993711650371552, -0.30889347195625305, 0.17182059586048126, 0.01933612860739231, 0.3870486617088318, 0.5492722988128662, 0.12996910512447357, 0.4180333912372589, -0.00869571603834629, -0.13117702305316925, 0.002548764692619443, 0.5580909252166748, 0.11516767740249634, -0.08448857069015503, 0.15158787369728088, -0.08533342182636261, 0.04866321012377739, -0.32073894143104553, 0.4474423825740814, 0.43267709016799927, 0.7783443331718445, 0.03877915441989899, -0.2873821556568146, -0.23016823828220367, -0.02556424029171467, 0.06071219593286514, 0.4423190951347351, 0.09541834890842438, -0.0011089250911027193, 0.08618226647377014, 0.017480500042438507, -0.3801381587982178, 0.08367924392223358, 0.2865537703037262, -0.2406730055809021, 0.6932732462882996, -0.05220801383256912, 0.1574099361896515, -0.11127468943595886, 0.03836622089147568, -0.5061627626419067, -0.17510533332824707, -0.11951307952404022, 0.6439183354377747, -0.01200039777904749, 0.15314465761184692, 0.11288580298423767, 0.05467035621404648, 0.374463826417923, -0.12401410192251205, -0.3182378113269806, -0.10555977374315262, -0.4076491892337799, 0.08684711158275604, 0.4266243875026703, -0.0020247166976332664, 0.3739507794380188, -0.2473476082086563, 0.24851761758327484, 0.03157785162329674, 0.050976868718862534, 0.25372159481048584, 0.11150510609149933, -0.24432684481143951, -0.07423315942287445, -0.023027759045362473, 0.09758914262056351, -0.20076929032802582, 0.010422668419778347, 0.4637048840522766, -0.22067447006702423, -0.25251305103302, -0.18578743934631348, 0.02295370027422905, -0.19247259199619293, 0.3144132196903229, 0.046167708933353424, -0.015052592381834984, -0.32744237780570984, -0.3958062529563904, 0.041113805025815964, 0.04603689908981323, -0.07173554599285126, -0.10202885419130325, -0.13238735496997833, -0.22799818217754364, 0.36397650837898254, 0.06871148943901062, -0.0924399346113205, -0.1216062605381012, 0.025019565597176552, -0.30075502395629883, 0.040126506239175797, 0.12443013489246368, 0.20845243334770203, 0.2604511082172394, -0.11597926169633865, -0.6150654554367065, 0.018996305763721466, 0.05944409966468811, -0.33990898728370667, -0.11130648851394653, -0.714305579662323, 0.13141435384750366, -0.19117149710655212, -0.0315861850976944, -0.296134889125824, 0.11985020339488983, 0.20133163034915924, -0.40839919447898865, 0.11676673591136932, 0.05573521926999092, -0.14017583429813385, -0.03294503688812256, 0.34431523084640503, 0.5783538222312927, -0.18094338476657867, -0.2524645924568176, -0.20874878764152527, 0.0897931307554245, 0.3532007038593292, 0.42280611395835876, -0.011845661327242851, 0.37365302443504333, -0.17512990534305573, 0.16062931716442108, 0.037403881549835205, 0.07629896700382233, -0.44937536120414734, 0.02959110401570797, 0.12741658091545105, 0.012836718931794167, -0.3067499101161957, 0.03436736389994621, 0.025888647884130478, 0.30428794026374817, 0.06710528582334518, 0.14695918560028076, 0.3602670431137085, -0.07202651351690292, -0.3002053201198578, -0.16942967474460602, 0.5182992815971375, -0.03934839367866516, 0.1673225313425064, 0.02780553698539734, 0.227499857544899, 0.13956254720687866, 0.603378176689148, 0.10704288631677628, 0.3978744447231293, 0.7896962761878967, 0.026264045387506485, 0.2337707132101059, 0.21180512011051178, -0.010621467605233192, -0.25731661915779114, -0.00867522694170475, -0.016420194879174232, 0.36413830518722534, 0.15434618294239044, -0.09906712174415588, -0.1662701815366745, -0.013633957132697105, 0.01959216222167015, -0.13728797435760498, 0.014181380160152912, 0.14564432203769684, -0.03172657638788223, 0.06265360862016678, 0.1838211715221405, -0.33711642026901245, -0.2549689710140228, -0.07836993038654327, -0.6629974842071533, 0.3918362259864807, -0.14175871014595032, 0.09924338012933731, -0.3523252010345459, 0.162143737077713, -0.01178948674350977, -0.14205193519592285, -0.1318245530128479, 0.007983610965311527, 0.3144644796848297, -0.07846109569072723, 0.4909595549106598, 0.0006880257278680801, 0.1212991327047348, -0.3434096574783325, -0.06582570821046829, 0.10464958846569061, 0.029857585206627846, 0.07522476464509964, -0.6009045839309692, -0.1981949657201767, 0.24855905771255493, 0.2267448604106903, -0.22696448862552643, 0.22831593453884125, 0.5967854261398315, 0.14583784341812134, 0.08363373577594757, -0.44019243121147156, 0.3865240514278412, 0.20976267755031586, 0.10510553419589996, 0.06930375099182129, -0.2616161108016968, 0.029254410415887833, -0.019567355513572693, 0.11314591765403748, 0.3585664629936218, 0.3546280860900879, -0.293587327003479, -0.30395206809043884, 0.26483869552612305, -0.23474551737308502, -0.1661771982908249, 0.17547455430030823, 0.3176703453063965, -0.19199144840240479, 0.38712671399116516, 0.02238316647708416, 0.11802732944488525, 0.200311541557312, 0.1394442915916443, 0.17726260423660278, 0.15259496867656708, 0.18204337358474731, -0.3302627503871918, -0.13290995359420776, -0.07103805243968964, 0.37562596797943115, -0.03055395931005478, -0.06495052576065063, -0.05406930297613144, -0.011312284506857395, 0.0340094193816185, 0.03964078426361084, -0.8664522767066956, -0.17904962599277496, 0.03036518022418022, -0.0061957743018865585, -0.15164092183113098, 0.21641896665096283, -0.0783858448266983, -0.12520663440227509, -0.2134806215763092, 0.1640908122062683, -0.1619291603565216, -0.18736521899700165, -0.2594035267829895, -0.008393201045691967, 0.002093865070492029, -0.06856812536716461, 0.11455828696489334, -0.4670071601867676, -0.49885472655296326, -0.6564536690711975, -0.3859996795654297, 0.27229243516921997, 0.0006186093087308109, 0.03363444656133652, 0.19477346539497375, 0.4568447768688202, -0.4254082441329956, 0.10165506601333618, 0.13104082643985748, -0.04507668316364288, 0.027340514585375786, 0.035740140825510025, -0.28803136944770813, 0.009588440880179405, -0.07109734416007996, -0.12753520905971527, -0.2320469468832016, 0.06711821258068085, 0.14658589661121368, 0.35589373111724854, 0.24039015173912048, 0.3179807960987091, 0.042869243770837784, -0.24076347053050995, -0.07850963622331619, -0.14289838075637817, -0.3738861382007599, -0.4261969327926636, 0.08930084109306335, -0.25739821791648865, -0.2928772270679474, 0.035693373531103134, -0.0971708819270134, -0.03744523972272873, -0.1153741180896759, -0.5714577436447144, 0.08455759286880493, -0.15955980122089386, 0.18992586433887482, -0.3796055316925049, 0.1761976033449173, 0.4080468714237213, -0.013770882971584797, 0.11595365405082703, -0.08973439037799835, -0.16030776500701904, -0.002428272273391485, 0.30956944823265076, 0.625623345375061, -0.14491356909275055, 0.11373597383499146, 0.04432399943470955, 0.6312341690063477, 0.45652979612350464, 0.4432747960090637, 0.11865545064210892, 0.014065664261579514, 0.22301779687404633, -0.18473809957504272, -0.011887619271874428, 0.14252470433712006, -0.0815666913986206, -0.09561481326818466, 0.4853444993495941, 0.16880697011947632, 0.02984786592423916, -0.04986684396862984, -0.11894407868385315, -0.5683524012565613, -0.1573641002178192, 0.10965367406606674, 0.2222977578639984, 0.4297429025173187, 0.07246878743171692, 0.004268105141818523, -0.45467063784599304, -0.30104368925094604, -0.01734985038638115, 0.09975102543830872, 0.40438053011894226, 0.20553456246852875, -0.255973756313324, -0.055205825716257095, -0.34359145164489746, 0.2963934540748596, 0.19675086438655853, -0.11616509407758713, -0.04314528405666351, 0.24808703362941742, 0.19203300774097443, 0.05996287241578102, 0.2783239781856537, -0.3235575258731842, 0.33075475692749023, 0.06306542456150055, 0.3061443567276001, -0.195238396525383, 0.12433701753616333, -0.007675639353692532, 0.07808440923690796, 0.38351091742515564, -0.14589904248714447, -0.39413607120513916, 0.00682119419798255, 0.1317756474018097, 0.3869909942150116, -0.4159858226776123, -0.16280533373355865, -0.15026669204235077, -0.09559250622987747, -0.07438317686319351, -0.2400767207145691, 0.1050749123096466, 0.1407230943441391, 0.4571059048175812, 0.21247979998588562, 0.2755671739578247, 0.31508851051330566, -0.027887411415576935, 0.1234164610505104, 0.3730914890766144, 0.52267986536026, -0.19587303698062897, 0.09502322971820831, 0.18478088080883026, 0.2306089699268341, 0.6488134860992432, -0.08112934976816177, -0.204132542014122, 0.22369380295276642, -0.22765016555786133, 0.28513211011886597, 0.04819667711853981, 0.15412811934947968, 0.1433597207069397, 0.3147251605987549, 0.01762094534933567, -0.20845384895801544, -0.0019106456311419606, 0.07305740565061569, 0.21918244659900665, -0.19458967447280884, -0.2165077179670334, 0.40074431896209717, -0.1713000386953354, -0.21891148388385773, 0.159372940659523, 0.3846012353897095, -0.28094643354415894, 0.2617727220058441, 0.1700272113084793, 1.0994685888290405, 0.3411225974559784, 0.09656539559364319, -0.04951174557209015, 0.007064427714794874, 0.3117265999317169, -0.1347489058971405, 0.10216987878084183, -0.39826953411102295, 0.17212337255477905, 0.0311944168061018, 0.14713944494724274, -0.08758396655321121, 0.16795997321605682, -0.011610526591539383, 0.03798661753535271, -0.3027438223361969, 0.1452638953924179, -0.1494728922843933, 0.5097946524620056, 0.2185714989900589, -0.06462965160608292, 0.09433353692293167, 0.06366205215454102, -0.07375433295965195, 0.5269142985343933, -0.3921828866004944, 0.13093310594558716, -0.02168232388794422, -0.0639725849032402, -0.4623465836048126, -0.10992338508367538, 0.16342303156852722, 0.2898716628551483, 0.07406073063611984, -0.3698219954967499, 0.06294161081314087, 0.34483930468559265, -0.042482636868953705, 0.2795947194099426, -0.16653120517730713, 0.26789748668670654, -0.12253214418888092, 0.08907439559698105, 0.25368309020996094, 0.2560855746269226, -0.09571946412324905, -0.1574678122997284, -0.2887418866157532, 0.06071466952562332, -0.2990490198135376, -0.18586403131484985, -0.28780555725097656, -0.2203773707151413, -0.20344863831996918, -0.2111726701259613, 0.23746098577976227, 0.057825200259685516, 0.03270125016570091, -0.2778078317642212, 0.04058406129479408, 0.32655370235443115, -0.0773850604891777, -0.032852545380592346, 0.040016449987888336, -0.27500951290130615, -0.055742401629686356, 0.248349130153656, 0.0966595783829689, 0.04332008957862854, 0.5435919761657715, 0.33836084604263306, -0.255790114402771, -0.08802048861980438, 0.04234864562749863, -0.24994748830795288, -0.3204171359539032, -0.1307283341884613, -0.13732965290546417, 0.31068646907806396, -0.5650641322135925, 0.05348137393593788, 0.25276097655296326, -0.07836403697729111, -0.2076030969619751, -0.49115970730781555, -0.28660738468170166, 0.18360956013202667, 0.04662008211016655, -0.06911380589008331, 0.09869116544723511, -0.32896679639816284, 0.11772600561380386, 0.1879466474056244, -0.207576185464859, -0.2144394814968109, -0.16280631721019745, 0.24855582416057587, 0.08002817630767822, 0.07069297134876251, -0.203568696975708, -0.17124128341674805, 0.008263984695076942, -0.4229907691478729, 0.20902955532073975, -0.10921452194452286, 0.007071749772876501, 0.21640074253082275, 0.004040584433823824, -0.25753331184387207, 0.15364216268062592, -0.14625893533229828, 0.007274358533322811, -0.2359381914138794, -0.17999723553657532, 0.06270911544561386, 0.16075821220874786, 0.37905412912368774, -0.011361383832991123, 0.23513056337833405, -0.34363892674446106, 0.23613885045051575, 0.20886315405368805, 0.10108290612697601, 0.012287373654544353, 0.20786218345165253, 0.4228381812572479, -0.037135276943445206, -0.0647035539150238, 0.03042449615895748, -0.08753087371587753, -0.07146249711513519, 0.014039305038750172, -0.26210153102874756, 0.41723644733428955, 0.41053447127342224, 0.15696124732494354, 0.019444173201918602, -0.1367606222629547, 0.12763991951942444, 0.13222764432430267, 0.19447115063667297, -0.5206782221794128, -0.07531709223985672, 0.36232876777648926, 0.13867802917957306, -0.06036371737718582, 0.027306850999593735, -0.07277291268110275, -0.09958887100219727, 0.009118881076574326, 0.09467191994190216, -0.002942433347925544, -0.07118931412696838, 0.044344253838062286, 0.2746727764606476, -0.01351138111203909, 0.11590859293937683, -0.27801278233528137, 0.20606471598148346, 0.029139433056116104, 0.28860965371131897, 0.2312512844800949, -0.005334523040801287, -0.07401631772518158, -0.016195544973015785, 0.028975052759051323, -0.15425536036491394, 0.2203480303287506, 0.21418677270412445, -0.09432392567396164, 0.1877342313528061, 0.20880195498466492, -0.046815868467092514, 0.10824229568243027, -0.01263248361647129, -0.3118574321269989, 0.151006817817688, -0.17385107278823853, -0.0970473662018776, -0.5045151710510254, -0.1496814787387848, 0.12216511368751526, -0.021242478862404823, -0.0276517141610384, -0.34956806898117065, 0.05850468575954437, 0.14485307037830353, -0.3765435218811035, -0.5085455179214478, 0.00452625984326005, 0.1714479923248291, 0.27909085154533386, -0.24931316077709198, 0.04157397896051407, 0.19247950613498688, -0.15472181141376495, -0.24632102251052856, 0.5353744626045227, 0.22187307476997375, -0.09334878623485565, -0.08470533043146133, -0.08812986314296722, 0.0008309152326546609, -0.03538515046238899, -0.21919430792331696, 0.1410607099533081, 0.015490380115807056, -0.21043658256530762, 0.0953918993473053, 0.03741689398884773, -0.11080560088157654, -0.08785779774188995, 0.29286426305770874, 0.17172187566757202, 0.048125285655260086, -0.3466184735298157, -0.14486163854599, -0.23814383149147034, -0.10546814650297165, -0.07195895165205002, 0.04355684295296669, -0.061014797538518906, 0.3149775564670563, 0.3373503088951111, 0.07071657478809357, -0.1007738932967186, 0.02375212125480175, -0.014904316514730453, 0.13001255691051483, 0.23929139971733093, 0.05573181062936783, -0.08921629190444946, -0.41693687438964844, -0.48504480719566345, 0.28067636489868164, -0.44431471824645996, -0.4358857274055481, 0.1570366770029068, 0.17744547128677368, 0.05885462462902069, 0.1095634251832962, 0.1656244546175003, 0.37735769152641296, -0.20043648779392242, 0.5021959543228149, -0.16422168910503387, -0.06992214173078537, 0.04627740755677223, 0.19594666361808777, -0.10628977417945862, -0.21045851707458496, 0.32615816593170166, 0.22631847858428955, -0.11302056163549423, -0.20873922109603882, 0.014973878860473633, 0.013991867192089558, 0.3081989288330078, 0.29711630940437317, 0.22443588078022003, 0.24094700813293457, -0.32510074973106384, -0.21935345232486725, -0.08294747769832611, -0.29327186942100525, -0.06315550953149796, 0.7308726906776428, 0.004191972315311432, 0.0557401143014431, -0.17406676709651947, -0.1332307606935501, 0.05223957449197769, 0.3003106415271759, 0.10838983207941055, 0.19318169355392456, -0.5772889256477356, -0.04731731489300728, 0.03243136778473854, 0.19265243411064148, 0.04990041255950928, -0.07506567984819412, 0.12494409829378128, -0.24923257529735565, -0.4154948890209198, -0.23982766270637512, 0.023705685511231422, -0.4101729094982147, -0.23189805448055267, -0.632062554359436, 0.04067070409655571, 0.08724118769168854, -0.328866571187973, -0.20460589230060577, -0.16943657398223877, 0.4141494631767273, 0.18587370216846466, -0.028733333572745323, -0.36913740634918213, -0.1478298157453537, 0.049878574907779694, -0.13128778338432312, 0.3941733241081238, 0.09589822590351105, -0.42427486181259155, 0.06945262849330902, -0.29675790667533875 ]
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.06431538611650467, 0.08949486166238785, -0.059720952063798904, 0.44191062450408936, -0.13233743607997894, 0.10839993506669998, 0.15771611034870148, -0.12213170528411865, 0.27500781416893005, 0.15894284844398499, 0.173833966255188, -0.13584257662296295, 0.40387681126594543, -0.40707096457481384, 0.014494188129901886, -0.2074822038412094, 0.1505153626203537, 0.1527748703956604, -0.3166963756084442, -0.30213555693626404, -0.11335383355617523, 0.4350937008857727, -0.3123498260974884, -0.37748026847839355, 0.04378502443432808, 0.2163703739643097, 0.033568572252988815, -0.08158198744058609, -0.011925390921533108, -0.21831052005290985, 0.0533052496612072, -0.14862734079360962, 0.044364847242832184, 0.28224313259124756, -0.00012187469837954268, -0.21250638365745544, 0.14406806230545044, 0.030698325484991074, -0.5327081084251404, -0.07560252398252487, -0.32060497999191284, -0.30694183707237244, -0.08979420363903046, -0.3360280394554138, 0.32747986912727356, 0.11988858133554459, 0.25815707445144653, 0.03442828729748726, -0.029453912749886513, -0.16841883957386017, 0.11059724539518356, -0.3508922755718231, 0.16841347515583038, 0.000639084551949054, 0.35648494958877563, 0.5651249289512634, 0.12218991667032242, 0.3544342517852783, -0.011750675737857819, -0.17912021279335022, 0.03421533480286598, 0.5692535042762756, 0.04896867647767067, -0.08313608914613724, 0.15748344361782074, -0.083978071808815, 0.05019492655992508, -0.344497412443161, 0.5438238382339478, 0.42372995615005493, 0.7482107877731323, 0.007644662167876959, -0.26567474007606506, -0.21402142941951752, -0.04731069505214691, 0.08734346181154251, 0.4619983732700348, 0.11520464718341827, -0.0019729763735085726, 0.10316570103168488, -0.007770792581140995, -0.3689872920513153, 0.06876348704099655, 0.3272411823272705, -0.3060210049152374, 0.6822800636291504, -0.08614049851894379, 0.14212365448474884, -0.15089480578899384, 0.03874751552939415, -0.4797340929508209, -0.21501925587654114, -0.11078271269798279, 0.6301542520523071, -0.011760855093598366, 0.15365049242973328, 0.12119418382644653, 0.05643480271100998, 0.3472960293292999, -0.1567850410938263, -0.3279046416282654, -0.10556744784116745, -0.3150280714035034, 0.08514155447483063, 0.43955788016319275, 0.022350072860717773, 0.39213451743125916, -0.25812220573425293, 0.26944205164909363, 0.029308611527085304, 0.025640001520514488, 0.23394499719142914, 0.10454466938972473, -0.21025563776493073, -0.00322060682810843, -0.013292637653648853, 0.14469729363918304, -0.23220263421535492, 0.05439627915620804, 0.459573358297348, -0.21296638250350952, -0.25901496410369873, -0.1943206787109375, 0.07142922282218933, -0.18482592701911926, 0.3223711848258972, 0.04886982962489128, 0.0114348866045475, -0.3538564145565033, -0.38101115822792053, 0.06483759731054306, 0.03866002708673477, -0.040085192769765854, -0.09608014672994614, -0.12245439738035202, -0.1822866052389145, 0.2952708303928375, 0.019727420061826706, -0.07036381959915161, -0.13898615539073944, 0.03447161242365837, -0.3196362257003784, 0.0993143618106842, 0.11807745695114136, 0.24334728717803955, 0.2680313289165497, -0.13009341061115265, -0.6249833703041077, 0.036271292716264725, 0.09635472297668457, -0.2753041684627533, -0.135343536734581, -0.70366370677948, 0.1318921595811844, -0.2303454726934433, -0.01756337657570839, -0.2686016261577606, 0.15423502027988434, 0.2390296906232834, -0.377412348985672, 0.11949462443590164, 0.0705108642578125, -0.13709323108196259, -0.03095020353794098, 0.38591673970222473, 0.5811340808868408, -0.1503591239452362, -0.24101760983467102, -0.17847025394439697, 0.09952370822429657, 0.30835098028182983, 0.39311009645462036, -0.009717264212667942, 0.3673400282859802, -0.12320580333471298, 0.06893397867679596, 0.04784303903579712, 0.11040851473808289, -0.4387204647064209, 0.05026133731007576, 0.1064196452498436, -0.002491924213245511, -0.3263649046421051, 0.06071764975786209, 0.06810040771961212, 0.32258012890815735, 0.05006806552410126, 0.1457120180130005, 0.35620439052581787, -0.03805888444185257, -0.30220404267311096, -0.16616152226924896, 0.5067034363746643, -0.024381252005696297, 0.23999318480491638, 0.0606650710105896, 0.21523211896419525, 0.1761249452829361, 0.585397481918335, 0.09009598195552826, 0.4497518539428711, 0.8086161613464355, 0.041014257818460464, 0.25995898246765137, 0.23173381388187408, -0.01861645095050335, -0.2249162346124649, -0.01966857723891735, 0.008512447588145733, 0.3689698278903961, 0.15359273552894592, -0.12520155310630798, -0.11379438638687134, -0.034259747713804245, 0.04280969500541687, -0.13272413611412048, 0.013787904754281044, 0.12447577714920044, 0.013954930938780308, 0.10332343727350235, 0.195652037858963, -0.3357091248035431, -0.18713338673114777, -0.10045818984508514, -0.6284239292144775, 0.4010474681854248, -0.1259019821882248, 0.12131674587726593, -0.35179346799850464, 0.15365462005138397, -0.006244998890906572, -0.09916452318429947, -0.1660703420639038, 0.023120230063796043, 0.24434851109981537, -0.09342318773269653, 0.4642219841480255, 0.0366496704518795, 0.1356387585401535, -0.32894355058670044, -0.014046495780348778, 0.09522859752178192, 0.006533754523843527, 0.11359881609678268, -0.6195908784866333, -0.2180342823266983, 0.30332356691360474, 0.26151299476623535, -0.20239503681659698, 0.2310914397239685, 0.6155297756195068, 0.10416706651449203, 0.11858823150396347, -0.4379398226737976, 0.3753536343574524, 0.1786496490240097, 0.030893852934241295, 0.04568132758140564, -0.2653457820415497, 0.08388710021972656, -0.07871343940496445, 0.14102984964847565, 0.35485565662384033, 0.32767364382743835, -0.3154008686542511, -0.27691102027893066, 0.2495279759168625, -0.20541515946388245, -0.1864505410194397, 0.17179988324642181, 0.2963219881057739, -0.18580937385559082, 0.4059668183326721, 0.028181616216897964, 0.126870259642601, 0.24853664636611938, 0.11924878507852554, 0.11186091601848602, 0.1804567128419876, 0.1863766610622406, -0.356338769197464, -0.13387571275234222, -0.05496515706181526, 0.3730306923389435, -0.032012712210416794, -0.0760616660118103, -0.021412789821624756, -0.08003232628107071, 0.06578674167394638, 0.08110857754945755, -0.891703724861145, -0.1627465784549713, 0.05679251626133919, -0.005559932440519333, -0.17351999878883362, 0.22100156545639038, -0.05866198614239693, -0.1721418797969818, -0.23477090895175934, 0.11379700154066086, -0.12918594479560852, -0.2169315069913864, -0.24437472224235535, -0.0020234191324561834, -0.03281712532043457, -0.05973702669143677, 0.15630578994750977, -0.4442388415336609, -0.49885353446006775, -0.6673251986503601, -0.3995530605316162, 0.24938814342021942, 0.03300224617123604, -0.00585787370800972, 0.15187613666057587, 0.4192478060722351, -0.46256718039512634, 0.1145000085234642, 0.16809114813804626, -0.09098854660987854, 0.07930153608322144, 0.05233162268996239, -0.2788630425930023, -0.01287755835801363, -0.10351259261369705, -0.11173810809850693, -0.20859354734420776, 0.07707158476114273, 0.15152598917484283, 0.35916846990585327, 0.24185660481452942, 0.2694680988788605, 0.04678788781166077, -0.27207356691360474, -0.10891909897327423, -0.13766825199127197, -0.3673330843448639, -0.4052077531814575, 0.1023062914609909, -0.2623264491558075, -0.31534069776535034, 0.06017126515507698, -0.07122091203927994, -0.048824332654476166, -0.06013838201761246, -0.6084827780723572, 0.03568335250020027, -0.1298268437385559, 0.12296322733163834, -0.3658175766468048, 0.1698867827653885, 0.3927968740463257, -0.03394106775522232, 0.10768036544322968, -0.06735754013061523, -0.10495664179325104, 0.013230484910309315, 0.302868127822876, 0.5987232327461243, -0.17783455550670624, 0.11948717385530472, 0.05199168249964714, 0.5267829895019531, 0.4268624484539032, 0.5182896852493286, 0.07355861365795135, -0.011333859525620937, 0.2064494639635086, -0.18934191763401031, -0.02631123922765255, 0.16096480190753937, -0.07318762689828873, -0.1525498628616333, 0.5049316883087158, 0.1899755895137787, -0.0368412509560585, -0.08402234315872192, -0.14014698565006256, -0.5720710754394531, -0.18057243525981903, 0.10143059492111206, 0.24879388511180878, 0.5083107352256775, 0.09699147939682007, 0.03787350282073021, -0.4973713755607605, -0.33540135622024536, -0.02515041083097458, 0.0841030552983284, 0.38704606890678406, 0.17601540684700012, -0.26639702916145325, -0.0613655261695385, -0.40508905053138733, 0.3238603472709656, 0.1768580675125122, -0.14957158267498016, -0.04018155112862587, 0.2509102523326874, 0.15891258418560028, 0.024787643924355507, 0.2293138951063156, -0.35805901885032654, 0.3446398079395294, 0.08436506986618042, 0.2656252682209015, -0.2265176773071289, 0.13044993579387665, -0.013092461973428726, -0.0009668658603914082, 0.41357293725013733, -0.1608138531446457, -0.37603068351745605, -0.004971971735358238, 0.14771462976932526, 0.3667697310447693, -0.4045116901397705, -0.13161659240722656, -0.12843570113182068, -0.10677018761634827, -0.12582021951675415, -0.2567432224750519, 0.1178538054227829, 0.12755991518497467, 0.45973607897758484, 0.20200249552726746, 0.3096124529838562, 0.37507370114326477, -0.02227129228413105, 0.1082206442952156, 0.3880186378955841, 0.5211096405982971, -0.16804450750350952, 0.0485164076089859, 0.196456640958786, 0.2341529279947281, 0.582450807094574, -0.05696864426136017, -0.2218940407037735, 0.22660188376903534, -0.22829832136631012, 0.30592718720436096, 0.047170061618089676, 0.09865555912256241, 0.14587977528572083, 0.34567418694496155, 0.10336016863584518, -0.21088045835494995, -0.005325533915311098, 0.03371979668736458, 0.21307888627052307, -0.1709383875131607, -0.22212740778923035, 0.3496198058128357, -0.15166765451431274, -0.17455574870109558, 0.13002926111221313, 0.3755861818790436, -0.27402520179748535, 0.2951129376888275, 0.14863522350788116, 1.0607918500900269, 0.3447885811328888, 0.07889794558286667, -0.12363582849502563, 0.00921512208878994, 0.2861768305301666, -0.151820570230484, 0.11728700250387192, -0.392943412065506, 0.14852872490882874, 0.05497211962938309, 0.16714514791965485, -0.08045504242181778, 0.18597207963466644, -0.019875718280673027, 0.025939635932445526, -0.25549325346946716, 0.27647602558135986, -0.16210994124412537, 0.4707963168621063, 0.22574660181999207, -0.07835899293422699, 0.08182157576084137, 0.0511322095990181, -0.021281780675053596, 0.48808398842811584, -0.37429481744766235, 0.15395915508270264, -0.007318731863051653, -0.06682492047548294, -0.4324820041656494, -0.14012667536735535, 0.1286015510559082, 0.29188716411590576, 0.010149101726710796, -0.3536897897720337, 0.05818174034357071, 0.3371962010860443, 0.004206326324492693, 0.2881407141685486, -0.20009909570217133, 0.2276306003332138, -0.1306280940771103, 0.11454105377197266, 0.2848280072212219, 0.24747733771800995, -0.15159133076667786, -0.14204607903957367, -0.28530967235565186, 0.0626690536737442, -0.2895977199077606, -0.14105293154716492, -0.3069055378437042, -0.2553827166557312, -0.2306336909532547, -0.211629718542099, 0.357406884431839, 0.07233262062072754, 0.030395930632948875, -0.3096146583557129, 0.046345215290784836, 0.31270313262939453, -0.06260664016008377, 0.008687788620591164, -0.019081562757492065, -0.2581133544445038, -0.056103430688381195, 0.2872316837310791, 0.09078962355852127, -0.023630723357200623, 0.4977654218673706, 0.35143935680389404, -0.22644968330860138, -0.08145274221897125, 0.006770172156393528, -0.30213668942451477, -0.32602614164352417, -0.11222894489765167, -0.1603141874074936, 0.30059948563575745, -0.5272343158721924, 0.02220199815928936, 0.20553359389305115, -0.07068909704685211, -0.17595943808555603, -0.48525092005729675, -0.27405449748039246, 0.211482971906662, 0.10443897545337677, -0.10649590194225311, 0.10586810111999512, -0.32440119981765747, 0.13233104348182678, 0.1528981626033783, -0.21197213232517242, -0.20774394273757935, -0.1508578658103943, 0.2941682040691376, -0.011810424737632275, 0.05046255141496658, -0.20467998087406158, -0.16774120926856995, 0.008592594414949417, -0.40539121627807617, 0.22348903119564056, -0.11432953923940659, 0.0449705496430397, 0.23205362260341644, -0.05075304955244064, -0.2713609039783478, 0.1506618857383728, -0.1844351589679718, -0.03526878356933594, -0.24125762283802032, -0.15945138037204742, 0.07486163824796677, 0.11083557456731796, 0.29669806361198425, -0.06482475996017456, 0.22215412557125092, -0.3317207992076874, 0.2220243662595749, 0.20991931855678558, 0.11521268635988235, -0.024220440536737442, 0.2436477243900299, 0.41474953293800354, -0.02416985295712948, -0.052400700747966766, 0.02701539359986782, -0.10874320566654205, -0.07679565995931625, 0.05690516158938408, -0.25349846482276917, 0.37840887904167175, 0.4685862362384796, 0.1953286975622177, 0.013525009155273438, -0.10679300129413605, 0.1757260411977768, 0.08823380619287491, 0.19096647202968597, -0.5340115427970886, -0.06935982406139374, 0.3859982192516327, 0.10831461101770401, -0.04038916155695915, 0.08166000247001648, -0.03185354545712471, -0.15376164019107819, 0.04824122413992882, 0.10646291822195053, 0.054036904126405716, -0.08893419057130814, 0.046596232801675797, 0.27804434299468994, -0.020542122423648834, 0.11601407080888748, -0.323804646730423, 0.25559836626052856, 0.024991139769554138, 0.3017576038837433, 0.2887009084224701, -0.05451514571905136, -0.052835166454315186, 0.02320103719830513, 0.025722593069076538, -0.12218542397022247, 0.19852907955646515, 0.16860836744308472, -0.07387395203113556, 0.1862119734287262, 0.16523370146751404, -0.14270226657390594, 0.1433383673429489, 0.02470683492720127, -0.30946654081344604, 0.16901202499866486, -0.15093117952346802, -0.025826523080468178, -0.5115845799446106, -0.1569618433713913, 0.130171999335289, -0.03231159597635269, -0.0002208911464549601, -0.39702245593070984, 0.046469155699014664, 0.15438097715377808, -0.33063507080078125, -0.44342175126075745, 0.04110536351799965, 0.18189752101898193, 0.28387451171875, -0.2849944233894348, -0.003563951700925827, 0.1924332231283188, -0.1421489417552948, -0.26729679107666016, 0.557753324508667, 0.22763848304748535, -0.09584756195545197, -0.11662767827510834, -0.05311144143342972, -0.0016035014996305108, -0.03559776395559311, -0.23801565170288086, 0.126737579703331, 0.03155393898487091, -0.14476972818374634, 0.10870762914419174, 0.02585357427597046, -0.096485435962677, -0.1042916551232338, 0.27096104621887207, 0.1727030724287033, 0.06689853966236115, -0.31429171562194824, -0.10215561836957932, -0.25695377588272095, -0.06567442417144775, -0.11267827451229095, 0.05647590383887291, -0.10305854678153992, 0.3124273717403412, 0.32620546221733093, 0.09185466170310974, -0.12637238204479218, 0.019298331812024117, -0.024265775457024574, 0.11044859886169434, 0.20066477358341217, 0.05781511962413788, -0.06270131468772888, -0.49035388231277466, -0.518862247467041, 0.24147699773311615, -0.44770288467407227, -0.3777930736541748, 0.19428054988384247, 0.18930254876613617, 0.05753140524029732, 0.10874434560537338, 0.1562175452709198, 0.40241706371307373, -0.20734699070453644, 0.5081560611724854, -0.18278858065605164, -0.06039838865399361, 0.05349380522966385, 0.25803419947624207, -0.086274154484272, -0.21084655821323395, 0.35704562067985535, 0.17987041175365448, -0.11490105837583542, -0.18221983313560486, -0.002985534956678748, -0.008147037588059902, 0.28277087211608887, 0.2995382249355316, 0.20440243184566498, 0.1713007241487503, -0.3087407648563385, -0.21293757855892181, -0.04854114353656769, -0.26211974024772644, -0.027041234076023102, 0.7471522688865662, 0.03979296609759331, 0.033885497599840164, -0.16924259066581726, -0.16321662068367004, 0.09096422791481018, 0.245641827583313, 0.11317397654056549, 0.1881648153066635, -0.5572513937950134, -0.039621517062187195, 0.05529499053955078, 0.2511410117149353, 0.006098868325352669, -0.08725383132696152, 0.12384726852178574, -0.21100178360939026, -0.4428652226924896, -0.2427511066198349, 0.014089278876781464, -0.39844274520874023, -0.26589706540107727, -0.7156363725662231, 0.11142413318157196, 0.0852637067437172, -0.3103727102279663, -0.20072847604751587, -0.1691341996192932, 0.41912928223609924, 0.17351210117340088, -0.013966579921543598, -0.37957972288131714, -0.1692909598350525, 0.025811288505792618, -0.1268438696861267, 0.3520096242427826, 0.1013597771525383, -0.4374333620071411, 0.0498603880405426, -0.27523118257522583 ]
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.14578303694725037, 0.1651308685541153, -0.06042136624455452, 0.45129746198654175, -0.1779649257659912, 0.1422894299030304, 0.1325674206018448, -0.059977348893880844, 0.2211332768201828, 0.13739407062530518, 0.14837226271629333, -0.06448545306921005, 0.40383630990982056, -0.470753937959671, -0.02474101446568966, -0.19649054110050201, 0.16876372694969177, 0.1441209763288498, -0.3371724486351013, -0.28330090641975403, -0.15047067403793335, 0.4101848304271698, -0.30185428261756897, -0.3771209120750427, 0.000988209736533463, 0.1730693131685257, 0.02940058335661888, -0.10994893312454224, 0.03885454684495926, -0.25510212779045105, 0.037092726677656174, -0.12344767153263092, 0.017135316506028175, 0.26948320865631104, -0.00012111631804145873, -0.19795401394367218, 0.1709194928407669, 0.07847266644239426, -0.4775887131690979, -0.01293237041682005, -0.285772442817688, -0.3218947947025299, -0.06401292979717255, -0.3470282256603241, 0.3659268915653229, 0.14415471255779266, 0.20301517844200134, 0.05851904675364494, -0.017004556953907013, -0.13809674978256226, 0.12412095069885254, -0.3913940489292145, 0.20059184730052948, 0.06550874561071396, 0.4258060157299042, 0.5858445763587952, 0.12699764966964722, 0.27198606729507446, -0.004845010582357645, -0.17620441317558289, 0.017658725380897522, 0.5391579866409302, 0.005750239361077547, -0.061609335243701935, 0.19032269716262817, -0.09775758534669876, 0.04172590747475624, -0.3754291832447052, 0.5308151245117188, 0.4282436966896057, 0.6989922523498535, 0.060914937406778336, -0.29560723900794983, -0.21080382168293, -0.04467904567718506, 0.12717102468013763, 0.4841122031211853, 0.1465960294008255, 0.015895148739218712, 0.058162856847047806, -0.01730453222990036, -0.31010177731513977, 0.054886844009160995, 0.2982158958911896, -0.240204319357872, 0.7044157385826111, -0.03012078069150448, 0.1586301624774933, -0.1816011369228363, 0.043845031410455704, -0.3793129026889801, -0.28267186880111694, -0.09487399458885193, 0.6344090700149536, 0.04430961236357689, 0.1643257737159729, 0.07513679563999176, 0.07724355161190033, 0.36111485958099365, -0.2755669057369232, -0.36788517236709595, -0.1502041071653366, -0.32003191113471985, 0.05749887600541115, 0.436973512172699, -0.029573829844594002, 0.36065182089805603, -0.20094934105873108, 0.260379821062088, 0.027401776984333992, 0.007645404897630215, 0.2808775007724762, 0.14643266797065735, -0.1832093894481659, 0.004789486061781645, -0.06156105175614357, 0.06897814571857452, -0.21875324845314026, 0.043222568929195404, 0.5090510249137878, -0.25505340099334717, -0.23546911776065826, -0.23055817186832428, -0.05719244107604027, -0.17184849083423615, 0.35875803232192993, 0.015574228018522263, 0.0492519810795784, -0.345634400844574, -0.328867644071579, 0.05481724441051483, 0.06843437999486923, -0.014953922480344772, -0.0760117918252945, -0.12180139869451523, -0.1956169754266739, 0.3033376932144165, 0.0875605046749115, -0.16140076518058777, -0.14394594728946686, 0.005945019423961639, -0.3173174262046814, 0.05132199451327324, 0.11712563782930374, 0.22500325739383698, 0.2758551239967346, -0.15709465742111206, -0.6372513175010681, 0.04436647891998291, 0.10009786486625671, -0.30138227343559265, -0.03643415495753288, -0.6779916882514954, 0.14296308159828186, -0.21411092579364777, -0.038094524294137955, -0.20950151979923248, 0.1293664425611496, 0.2918628454208374, -0.3391783833503723, 0.09006015211343765, 0.05389651656150818, -0.14801818132400513, -0.0453011617064476, 0.34239450097084045, 0.5277431607246399, -0.07260700315237045, -0.21315322816371918, -0.24006237089633942, 0.18565519154071808, 0.3504779636859894, 0.4081873595714569, 0.03367350995540619, 0.3773185908794403, -0.04450124874711037, 0.09234753251075745, -0.053638678044080734, 0.12963640689849854, -0.409477561712265, 0.02759547159075737, 0.1863749921321869, 0.09085603803396225, -0.3522016704082489, 0.03428306430578232, 0.008339883759617805, 0.28944486379623413, 0.02800902910530567, 0.14491233229637146, 0.3542480170726776, -0.030477454885840416, -0.3212766647338867, -0.1869344264268875, 0.4860834777355194, -0.0571015328168869, 0.24960176646709442, 0.01950189471244812, 0.19941829144954681, 0.1431904137134552, 0.5697171092033386, 0.09645739942789078, 0.43541213870048523, 0.7665310502052307, 0.05108858272433281, 0.24897409975528717, 0.2217184603214264, -0.04091063141822815, -0.14059092104434967, -0.048674095422029495, 0.02153935842216015, 0.3681214153766632, 0.15804541110992432, -0.16565193235874176, -0.11937149614095688, 0.004317618440836668, 0.054583217948675156, -0.16348430514335632, 0.06016247719526291, 0.1263921707868576, 0.003624232253059745, 0.1342674046754837, 0.2368517816066742, -0.4029856324195862, -0.24505652487277985, -0.10030032694339752, -0.5714448094367981, 0.4301275908946991, -0.15744037926197052, 0.08662939816713333, -0.31124573945999146, 0.15443381667137146, -0.04698295146226883, -0.08627774566411972, -0.15972796082496643, -0.019246781244874, 0.2688751220703125, -0.09000568091869354, 0.5272319912910461, 0.058688417077064514, 0.13024668395519257, -0.35224759578704834, -0.06220874562859535, 0.10572559386491776, 0.024569537490606308, 0.10132908076047897, -0.6246503591537476, -0.22315484285354614, 0.1938694268465042, 0.28697142004966736, -0.23904521763324738, 0.23742356896400452, 0.5918765664100647, 0.1011636033654213, 0.14326247572898865, -0.40773358941078186, 0.3371964395046234, 0.1860397309064865, -0.02326670102775097, 0.0664844661951065, -0.19989176094532013, 0.07101565599441528, -0.0652066096663475, 0.15243342518806458, 0.34099143743515015, 0.3338630795478821, -0.2944651246070862, -0.3108474314212799, 0.23184119164943695, -0.2295028567314148, -0.20389702916145325, 0.14749334752559662, 0.2784411907196045, -0.21458843350410461, 0.39058810472488403, 0.015475403517484665, 0.18066179752349854, 0.2805580198764801, 0.11750151962041855, 0.11103658378124237, 0.1559876650571823, 0.2408442497253418, -0.3074937164783478, -0.07120300829410553, -0.09856992214918137, 0.37040701508522034, -0.023684637621045113, -0.07268241047859192, -0.03772122040390968, -0.032417457550764084, 0.038955796509981155, 0.07511945068836212, -0.8128610849380493, -0.2056320160627365, 0.037233445793390274, -0.013046624138951302, -0.18828003108501434, 0.1903686374425888, -0.07591398060321808, -0.19740696251392365, -0.19648218154907227, 0.20409804582595825, -0.1688506007194519, -0.22016863524913788, -0.2426237314939499, 0.014934557490050793, 0.027710745111107826, -0.03964655473828316, 0.08039093762636185, -0.44452667236328125, -0.5066567063331604, -0.6288629174232483, -0.4411584734916687, 0.20372503995895386, 0.012816847302019596, 0.05924813449382782, 0.08562877774238586, 0.3786284625530243, -0.4475950002670288, 0.040135905146598816, 0.1387776881456375, -0.04541655257344246, 0.10660538822412491, 0.09988696128129959, -0.2520989775657654, -0.12217777222394943, -0.05138826370239258, -0.10389181971549988, -0.15403562784194946, 0.11187909543514252, 0.09492689371109009, 0.33990564942359924, 0.23249974846839905, 0.24521011114120483, 0.07538437098264694, -0.28407588601112366, -0.08402842283248901, -0.10733509808778763, -0.32888129353523254, -0.27408912777900696, 0.13635382056236267, -0.23220929503440857, -0.3054615259170532, 0.07129769027233124, -0.08984231948852539, -0.07070572674274445, -0.05832088366150856, -0.5821249485015869, 0.08865337073802948, -0.13678540289402008, 0.1188967376947403, -0.3265385925769806, 0.16833147406578064, 0.3140135109424591, 0.031309206038713455, 0.10924725979566574, -0.02344844490289688, -0.09732037037611008, -0.023141352459788322, 0.2916719913482666, 0.5615308880805969, -0.15699590742588043, 0.12712199985980988, 0.061406902968883514, 0.5506907105445862, 0.522111713886261, 0.48045310378074646, 0.0566067136824131, 0.05433938279747963, 0.17983944714069366, -0.15285544097423553, 0.009224406443536282, 0.19978570938110352, -0.13747161626815796, -0.13884888589382172, 0.5862258672714233, 0.1349094659090042, -0.08199851214885712, -0.03992466256022453, -0.1424119919538498, -0.6010256409645081, -0.1871097832918167, 0.08409460633993149, 0.2459486424922943, 0.5408470630645752, 0.11825978010892868, 0.025625810027122498, -0.4206116199493408, -0.3877405822277069, -0.032578155398368835, 0.04697909578680992, 0.4023584723472595, 0.22332227230072021, -0.2932407557964325, -0.1286982297897339, -0.35333871841430664, 0.2833375334739685, 0.1879226416349411, -0.1200777217745781, 0.014287253841757774, 0.22710178792476654, 0.14210987091064453, 0.05593724921345711, 0.1480303257703781, -0.3797408938407898, 0.2764492630958557, 0.03463046997785568, 0.29371562600135803, -0.24677972495555878, 0.14072607457637787, -0.048014260828495026, 0.05273568630218506, 0.3260185420513153, -0.15939398109912872, -0.3618435859680176, 0.040627919137477875, 0.11571872234344482, 0.3878139555454254, -0.36191824078559875, -0.1815866380929947, -0.06941727548837662, -0.08287815004587173, -0.09231644123792648, -0.2579602301120758, 0.09764517098665237, 0.1278560608625412, 0.35210156440734863, 0.15466775000095367, 0.266594797372818, 0.3562869429588318, -0.0003060215385630727, 0.13492558896541595, 0.3300662040710449, 0.48204198479652405, -0.16212496161460876, 0.01017677877098322, 0.14321520924568176, 0.2127491682767868, 0.5548614263534546, -0.0642775222659111, -0.1784166395664215, 0.14296165108680725, -0.2956860363483429, 0.25264012813568115, 0.01686275191605091, 0.1204582080245018, 0.11716349422931671, 0.35445067286491394, 0.012252163141965866, -0.17340199649333954, -0.05701810494065285, 0.07921084016561508, 0.19543366134166718, -0.09709237515926361, -0.16709670424461365, 0.3800337016582489, -0.13467489182949066, -0.17459730803966522, 0.1131974309682846, 0.3719499111175537, -0.29532763361930847, 0.28916117548942566, 0.26993328332901, 1.0011184215545654, 0.3788384199142456, 0.012155705131590366, -0.1793261021375656, -0.05296051874756813, 0.29727286100387573, -0.10714834928512573, 0.10844551771879196, -0.3848913609981537, 0.15846601128578186, 0.06865434348583221, 0.19115252792835236, -0.09177564084529877, 0.23768135905265808, 0.0016854568384587765, 0.037454891949892044, -0.28670570254325867, 0.22562886774539948, -0.1718365103006363, 0.5127310156822205, 0.27117791771888733, -0.08953635394573212, 0.15353575348854065, 0.06530765444040298, -0.05092134699225426, 0.4138067960739136, -0.3755309581756592, 0.17474304139614105, -0.041213780641555786, 0.00889088585972786, -0.4454420506954193, -0.14186903834342957, 0.13689163327217102, 0.2824139893054962, 0.05497722700238228, -0.32395461201667786, 0.10390040278434753, 0.3498433232307434, -0.04668812453746796, 0.29005932807922363, -0.1569158285856247, 0.22963255643844604, -0.1612827628850937, 0.08590327948331833, 0.32058823108673096, 0.23949970304965973, -0.12808385491371155, -0.13204579055309296, -0.2758931815624237, -0.004475213121622801, -0.27832913398742676, -0.13232804834842682, -0.2475748509168625, -0.27592337131500244, -0.15435029566287994, -0.19186969101428986, 0.312267541885376, 0.06561583280563354, -0.03260229527950287, -0.31623443961143494, 0.07951238751411438, 0.28674790263175964, -0.04262813925743103, 0.10130968689918518, -0.038517069071531296, -0.2451888918876648, -0.04341525956988335, 0.2008706033229828, 0.09430793672800064, 0.044078610837459564, 0.491882860660553, 0.3106238842010498, -0.30431777238845825, -0.0675351694226265, 0.007316184230148792, -0.3844091296195984, -0.31086722016334534, -0.1408267617225647, -0.19061926007270813, 0.29426074028015137, -0.5391881465911865, 0.043111443519592285, 0.20964448153972626, -0.06226707622408867, -0.1616135835647583, -0.45570114254951477, -0.2316179871559143, 0.19327212870121002, 0.15171650052070618, -0.12421232461929321, 0.044209402054548264, -0.3824682831764221, 0.11845672875642776, 0.23892000317573547, -0.20956841111183167, -0.24842692911624908, -0.14066636562347412, 0.2769829332828522, 0.012534478679299355, 0.047387175261974335, -0.3052440285682678, -0.14837752282619476, 0.019752901047468185, -0.3925028443336487, 0.3026615381240845, -0.13688693940639496, 0.05549496412277222, 0.2028740644454956, -0.034963175654411316, -0.2961302101612091, 0.19078446924686432, -0.1808454692363739, -0.028047729283571243, -0.2980056703090668, -0.21925686299800873, -0.03511820361018181, 0.09564611315727234, 0.3528514802455902, -0.046889033168554306, 0.19061335921287537, -0.30217161774635315, 0.22362400591373444, 0.14461033046245575, 0.09075301885604858, -0.012357348576188087, 0.2586514949798584, 0.520139753818512, -0.005280151031911373, -0.06173538789153099, 0.0004933637101203203, -0.15915817022323608, -0.041790105402469635, 0.10353410989046097, -0.24291115999221802, 0.3560656011104584, 0.5593590140342712, 0.13135315477848053, 0.072664774954319, -0.11821897327899933, 0.10672960430383682, 0.0877896323800087, 0.22839945554733276, -0.5155935287475586, -0.09810610860586166, 0.3583304286003113, 0.14456483721733093, -0.06942570954561234, 0.10601980239152908, -0.0033224087674170732, -0.20094813406467438, 0.01525377668440342, 0.10815520584583282, 0.05748988687992096, -0.08946899324655533, 0.04169652238488197, 0.27082177996635437, 0.03549184650182724, 0.10848894715309143, -0.34122467041015625, 0.17124785482883453, 0.029204867780208588, 0.2962409257888794, 0.3516983091831207, -0.08769930899143219, -0.00020433093595784158, -0.015600362792611122, 0.07860942929983139, 0.021556319668889046, 0.22413159906864166, 0.13091768324375153, -0.07513859868049622, 0.20601336658000946, 0.21624350547790527, -0.13994883000850677, 0.18835006654262543, 0.006536330562084913, -0.3409821093082428, 0.1340712606906891, -0.13091817498207092, -0.018452730029821396, -0.509868860244751, -0.16932062804698944, 0.13877028226852417, -0.07410707324743271, -0.0382842980325222, -0.3801875114440918, 0.08561347424983978, 0.17625468969345093, -0.34435194730758667, -0.4727267920970917, 0.11520705372095108, 0.17712126672267914, 0.35418519377708435, -0.3139343857765198, -0.03193991258740425, 0.200804203748703, -0.15500448644161224, -0.31277233362197876, 0.5225101113319397, 0.22651033103466034, -0.07422424852848053, -0.16093172132968903, -0.08731709420681, -0.02641741931438446, -0.035702235996723175, -0.17785784602165222, 0.18595430254936218, -0.016436172649264336, -0.16892513632774353, 0.09979250282049179, 0.0280409287661314, -0.10428190231323242, -0.17336393892765045, 0.27083346247673035, 0.1868916153907776, 0.062100283801555634, -0.363344669342041, -0.10731443017721176, -0.2540302276611328, -0.025505777448415756, -0.142660990357399, 0.15475618839263916, -0.07092366367578506, 0.2788181006908417, 0.277556836605072, 0.05547058954834938, -0.12057342380285263, 0.027389641851186752, -0.06354939937591553, 0.10310833156108856, 0.20896616578102112, 0.00986767653375864, -0.06181387975811958, -0.46424537897109985, -0.48114895820617676, 0.212197944521904, -0.4761247932910919, -0.41545209288597107, 0.2206805944442749, 0.18045999109745026, -0.01163442898541689, 0.110713429749012, 0.09777231514453888, 0.3260553777217865, -0.23385372757911682, 0.5221573114395142, -0.1762700378894806, -0.06631308048963547, 0.027283651754260063, 0.17129062116146088, -0.08827716112136841, -0.184808611869812, 0.3778129518032074, 0.19325271248817444, -0.11623197048902512, -0.16123980283737183, -0.035833388566970825, 0.08425764739513397, 0.371041476726532, 0.25092846155166626, 0.28294476866722107, 0.14939512312412262, -0.3115498721599579, -0.17446063458919525, -0.04403366148471832, -0.2770475149154663, -0.05493692308664322, 0.7693365216255188, -0.026698091998696327, 0.044849056750535965, -0.1694968044757843, -0.14296166598796844, 0.133308544754982, 0.25831523537635803, 0.09214968234300613, 0.17607305943965912, -0.5699794292449951, -0.08606316149234772, 0.005149177275598049, 0.24076208472251892, 0.05495072901248932, -0.058049291372299194, 0.1391151249408722, -0.21826042234897614, -0.43846574425697327, -0.3041391372680664, -0.038278236985206604, -0.3999016582965851, -0.28512853384017944, -0.6288003325462341, 0.06306802481412888, 0.109244205057621, -0.32545775175094604, -0.14309141039848328, -0.2490011304616928, 0.44757381081581116, 0.15686507523059845, 0.0031939528416842222, -0.4028247594833374, -0.13814610242843628, 0.02740713767707348, -0.09073618054389954, 0.2588895261287689, 0.07970824837684631, -0.412421852350235, 0.02940443903207779, -0.285369336605072 ]
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.2319188416004181, -0.018110837787389755, -0.12120535224676132, 0.16620662808418274, 0.15398113429546356, -0.32754918932914734, -0.12402646243572235, 0.11519451439380646, -0.2562255561351776, 0.22354361414909363, -0.09199963510036469, -0.018561871722340584, -0.062076203525066376, -0.5503265857696533, -0.21199068427085876, 0.047404076904058456, -0.12461034953594208, 0.1536925733089447, 0.03214670345187187, -0.3201378583908081, -0.06274617463350296, 0.004378055687993765, -0.2288944572210312, 0.02118701860308647, -0.489949494600296, -0.03261696547269821, -0.010674912482500076, 0.05976079776883125, -0.269268274307251, -0.22868406772613525, 0.522303581237793, 0.00616028904914856, -0.044891588389873505, 0.35661542415618896, -0.00012147361121606082, 0.049664247781038284, 0.17783679068088531, -0.10519061237573624, -0.19697938859462738, -0.31120726466178894, -0.10390059649944305, 0.020872266963124275, 0.25024986267089844, -0.12072882056236267, -0.29940518736839294, -0.03137490153312683, 0.016231779009103775, -0.47222384810447693, 0.4968918263912201, 0.14089754223823547, 0.1539391428232193, 0.07946977764368057, -0.24739566445350647, -0.0978696420788765, 0.5316760540008545, 0.14919881522655487, 0.06354561448097229, -0.5371028780937195, 0.35723263025283813, 0.04666782170534134, -0.16733123362064362, 0.25931262969970703, -0.01304290909320116, 0.12799474596977234, 0.026933513581752777, 0.3127305209636688, -0.4903319478034973, -0.10857851058244705, 0.1012372151017189, 0.05669987201690674, 0.294866144657135, 0.10656508803367615, -0.5151872038841248, -0.17371028661727905, 0.025848207995295525, 0.13467136025428772, 0.045390259474515915, -0.0322912223637104, 0.03849861025810242, -0.04539443179965019, -0.36518922448158264, 0.07452648878097534, -0.11903552711009979, 0.2235455960035324, -0.3281968832015991, 0.35864678025245667, 0.02170627750456333, -0.08257211744785309, 0.15646091103553772, -0.23322486877441406, 0.33541616797447205, 0.19290994107723236, 0.08280369639396667, 0.21118083596229553, -0.3941690921783447, 0.014127065427601337, 0.1393803060054779, -0.3425760269165039, 0.1961892992258072, -0.17444315552711487, 0.13559742271900177, 0.21523310244083405, -0.11078731715679169, -0.13297215104103088, 0.14020965993404388, 0.35499128699302673, 0.07156092673540115, 0.6889235377311707, 0.056293752044439316, -0.3481678366661072, -0.48052161931991577, -0.1533404290676117, 0.06401976943016052, 0.1087690070271492, 0.328248530626297, -0.1395198106765747, -0.15129633247852325, -0.27159348130226135, -0.3633502721786499, 0.2554885447025299, -0.7213667631149292, -0.2695731222629547, 0.10873834788799286, 0.21016009151935577, 0.007519214414060116, -0.22764763236045837, 0.27532103657722473, 0.1703203320503235, -0.0937599316239357, -0.016595475375652313, -0.2273169755935669, -0.27559107542037964, -0.17443467676639557, 0.12649966776371002, 0.29306358098983765, -0.3172924816608429, 0.30597013235092163, -0.017256414517760277, 0.3794793486595154, -0.2384912222623825, 0.22754888236522675, -0.16424092650413513, 0.5017401576042175, -0.049719713628292084, -0.06224270164966583, 0.10196728259325027, -0.2309202402830124, -0.0008204382611438632, 0.08036939799785614, -0.05311461165547371, -0.377399206161499, -0.14012949168682098, 0.09508858621120453, 0.16302254796028137, 0.018906857818365097, 0.06353149563074112, 0.05705071613192558, 0.14381052553653717, -0.03202398493885994, 0.22869832813739777, 0.03166753426194191, -0.2421649843454361, -0.02838796377182007, 0.12483519315719604, 0.2620406448841095, 0.08381380885839462, 0.07661193609237671, 0.047805361449718475, -0.2097923457622528, 0.5392239689826965, -0.19374758005142212, 0.5320913195610046, -0.35193443298339844, 0.3588712215423584, -0.1959841549396515, 0.45321032404899597, 0.34387898445129395, -0.3066941797733307, -0.4178411662578583, -0.007061989512294531, 0.07014673948287964, 0.08185067027807236, -0.1956535130739212, -0.07720009982585907, 0.585078775882721, 0.058446113020181656, 0.16849443316459656, -0.10581258684396744, -0.014751011505723, -0.17984290421009064, -0.20579944550991058, 0.07930813729763031, -0.13240168988704681, 0.12253681570291519, 0.36505845189094543, -0.31907644867897034, 0.20595456659793854, 0.20020167529582977, 0.10337931662797928, 0.1383926421403885, 0.13096660375595093, 0.1993982344865799, 0.12902724742889404, 0.24512435495853424, 0.10098148137331009, -0.017646649852395058, -0.10456973314285278, 0.3578745722770691, -0.11393028497695923, -0.175818532705307, -0.11872445046901703, 0.07894691079854965, -0.03784629702568054, -0.17964616417884827, -0.3683217465877533, 0.11061833798885345, 0.07995793223381042, -0.0667584016919136, -0.1576189547777176, 0.12521734833717346, 0.03738689422607422, 0.09110735356807709, -0.10360053181648254, -0.023947320878505707, -0.13463759422302246, 0.587319016456604, 0.14017413556575775, 0.061847198754549026, -0.1289612054824829, 0.06820507347583771, 0.33235910534858704, 0.14089451730251312, -0.028824152424931526, 0.2554713785648346, -0.09504148364067078, -0.09535878896713257, 0.2429700493812561, 0.06212658807635307, 0.0064201862551271915, -0.45695769786834717, 0.09028848260641098, 0.18203265964984894, -0.04534619674086571, -0.10434579849243164, -0.18936142325401306, 0.21333113312721252, -0.10961391776800156, 0.2979291081428528, -0.10061284154653549, -0.33570775389671326, 0.0486055351793766, 0.0263255313038826, -0.3719773292541504, -0.1223490759730339, 0.17104771733283997, -0.23740190267562866, 0.09279541671276093, -0.16224566102027893, -0.29919424653053284, -0.11543016135692596, 0.3506649136543274, 0.029858456924557686, 0.007000147830694914, 0.23595313727855682, 0.18959678709506989, 0.10179433226585388, -0.22244112193584442, -0.09805716574192047, 0.19624856114387512, 0.18834024667739868, 0.1611739844083786, -0.1316043585538864, -0.1498192399740219, 0.08842399716377258, -0.1882997453212738, 0.18649525940418243, 0.07519340515136719, 0.3247424066066742, 0.35571402311325073, 0.13535264134407043, -0.1519443243741989, -0.023997314274311066, 0.07586811482906342, -0.10024438798427582, -0.06024269759654999, 0.08862911909818649, -0.5449983477592468, 0.18387137353420258, -0.25929614901542664, -0.06969098746776581, -0.06945449113845825, -0.06868711858987808, 0.07900170981884003, 0.04176866635680199, 0.19694733619689941, -0.009485941380262375, -0.19131235778331757, -0.040425192564725876, 0.36009612679481506, -0.17868643999099731, 0.02086743153631687, 0.09504213184118271, -0.1861405372619629, -0.005319562740623951, -0.25317642092704773, 0.12268571555614471, 0.2429986447095871, 0.1191352978348732, 0.026354020461440086, -0.39714327454566956, -0.23325657844543457, 0.2191590964794159, 0.2508251667022705, -0.0781756266951561, -0.03176974132657051, -0.3412438631057739, -0.7546483874320984, -0.2112504094839096, 0.1506485641002655, -0.08914195746183395, -0.22728681564331055, 0.17671476304531097, 0.04780271649360657, 0.15998099744319916, 0.20626181364059448, -0.2788510322570801, -0.008380004204809666, 0.15967388451099396, -0.1973225176334381, -0.11820580810308456, -0.1904224008321762, 0.23776045441627502, -0.21373456716537476, 0.04600782319903374, -0.30163878202438354, -0.09457062929868698, -0.36055058240890503, -0.23014485836029053, 0.3662579655647278, -0.0772942379117012, -0.0925503596663475, -0.3487820029258728, -0.24288983643054962, -0.34984782338142395, 0.6523885130882263, -0.33803245425224304, 0.13257372379302979, 0.18873454630374908, -0.08744584023952484, -0.3462240695953369, 0.18925955891609192, 0.21276046335697174, -0.22672098875045776, -0.0007452465943060815, -0.15762914717197418, -0.00016089844575617462, 0.2392987459897995, 0.4229534864425659, 0.4874306619167328, -0.14830122888088226, 0.16313034296035767, 0.31414759159088135, 0.9544954299926758, 0.11823044717311859, -0.04694978520274162, 0.0025968095287680626, 0.23375315964221954, 0.04973340779542923, -0.16283366084098816, -0.22316764295101166, -0.0578451044857502, -0.08236879855394363, -0.07778050750494003, 0.13657793402671814, 0.019490310922265053, -0.014459308236837387, -0.0024006913881748915, 0.2149401605129242, -0.42643922567367554, -0.24907322227954865, -0.019530825316905975, -0.012616661377251148, 0.34403374791145325, 0.26696348190307617, 0.6866025328636169, 0.21552333235740662, -0.27187979221343994, -0.41539308428764343, -0.4057594835758209, 0.09809958189725876, 0.06870809942483902, 0.2006712108850479, -0.22297529876232147, -0.3778168857097626, 0.17561739683151245, 0.15010464191436768, 0.4039022624492645, 0.3343915343284607, 0.12570659816265106, 0.2573730945587158, 0.32250308990478516, 0.4669124186038971, 0.07206345349550247, 0.0438123382627964, -0.13280540704727173, -0.3340667188167572, -0.025649696588516235, -0.1807626187801361, -0.3394309878349304, 0.28155842423439026, -0.11005668342113495, 0.48212429881095886, -0.2550405263900757, -0.04811679199337959, -0.20625442266464233, -0.07974519580602646, -0.17338106036186218, -0.15707562863826752, -0.12628044188022614, -0.02243240922689438, 0.40375834703445435, 0.17922343313694, 0.12378521263599396, 0.12464926391839981, -0.07019338011741638, -0.19759604334831238, -0.20332391560077667, 0.015826530754566193, 0.1126537099480629, -0.06866985559463501, 0.5717352032661438, -0.06295264512300491, 0.3072260022163391, 0.7875509262084961, -0.02419053576886654, 0.11520126461982727, 0.3683217167854309, -0.21917451918125153, 0.4279125928878784, -0.005038851872086525, -0.12561766803264618, -0.06973522156476974, 0.34116753935813904, -0.0148837361484766, 0.014201484620571136, -0.00789340678602457, 0.030054818838834763, 0.03978220745921135, -0.08776365220546722, 0.5422752499580383, -0.30864831805229187, -0.38926947116851807, -0.022105911746621132, 0.36512160301208496, -0.35440438985824585, -0.009997103363275528, 0.06898678094148636, 0.5028804540634155, -0.39593011140823364, 0.2949845492839813, 0.2928878962993622, 0.556958019733429, -0.025505371391773224, -0.11783308535814285, -0.14321669936180115, 0.14552713930606842, 0.37443652749061584, -0.2167758345603943, 0.4011743366718292, -0.17903612554073334, -0.45354899764060974, -0.11556483805179596, -0.06766709685325623, -0.27436894178390503, 0.4145791530609131, -0.139535054564476, 0.3018554449081421, 0.21847482025623322, 0.11984878033399582, -0.11080090701580048, 0.3054763972759247, 0.38888537883758545, -0.048404838889837265, -0.07168404012918472, 0.09750138968229294, 0.04521044343709946, 0.3173339366912842, 0.004534983541816473, 0.03311006352305412, 0.1601293534040451, -0.20460951328277588, -0.21563120186328888, 0.07157838344573975, -0.3322104811668396, 0.3397744297981262, 0.501197874546051, -0.41891059279441833, 0.15536604821681976, -0.3061590790748596, 0.09585205465555191, 0.09763564169406891, -0.1372385025024414, 0.1370796412229538, 0.30239880084991455, 0.13338619470596313, 0.3347477912902832, -0.11240055412054062, 0.10553833097219467, 0.16096830368041992, -0.2286621332168579, -0.11769908666610718, 0.21839375793933868, -0.47884413599967957, -0.28225669264793396, 0.18978464603424072, -0.12041763961315155, -0.15703323483467102, 0.07032839208841324, 0.20564430952072144, -0.005478361621499062, -0.022385140880942345, 0.0564022958278656, 0.30853474140167236, -0.012982931919395924, 0.501436710357666, 0.4594120383262634, -0.20574450492858887, -0.03841863572597504, 0.6241495013237, -0.039246827363967896, 0.08016078919172287, 0.15557058155536652, -0.01220247894525528, -0.28648483753204346, -0.028406037017703056, 0.24353641271591187, 0.2989923655986786, -0.13581344485282898, -0.248971626162529, -0.5415050983428955, 0.3340107798576355, 0.4406496286392212, 0.13849090039730072, 0.19853831827640533, -0.3680627942085266, -0.3013123571872711, -0.057669498026371, 0.29069966077804565, 0.2671513557434082, 0.41643574833869934, -0.04268805310130119, -0.21285076439380646, 0.06979602575302124, -0.06510447710752487, 0.10529899597167969, -0.24581149220466614, 0.12887784838676453, -0.06637588143348694, 0.18092265725135803, -0.6103875041007996, -0.16027316451072693, 0.31176701188087463, -0.019063126295804977, 0.053106699138879776, 0.1648203283548355, -0.13338682055473328, -0.10447729378938675, 0.02192208543419838, 0.127399280667305, 0.005721366498619318, 0.23001863062381744, -0.23667247593402863, -0.38099607825279236, -0.01915658451616764, -0.2873550057411194, -0.1722269058227539, 0.5963314771652222, 0.3391684591770172, 0.12851503491401672, 0.16073094308376312, -0.26845359802246094, 0.15955935418605804, -0.05204247683286667, 0.04002796486020088, -0.028035324066877365, 0.08019395172595978, 0.21924562752246857, 0.26710808277130127, -0.04579422250390053, -0.20764850080013275, 0.07152309268712997, -0.008029133081436157, 0.007021547760814428, 0.3336581289768219, -0.3741811215877533, -0.05415283888578415, 0.21275407075881958, 0.5488231778144836, 0.4308081567287445, -0.26402607560157776, -0.541085422039032, 0.12405560165643692, 0.17170052230358124, -0.12713530659675598, -0.3978881537914276, 0.0317801833152771, 0.34139835834503174, -0.08805125951766968, 0.22197751700878143, -0.1419970989227295, -0.25041383504867554, 0.1384323090314865, 0.23444218933582306, 0.38538113236427307, -0.2593212425708771, 0.019423658028244972, -0.05698106065392494, 0.1952122151851654, -0.2900905907154083, 0.2023240625858307, -0.174220472574234, 0.18535679578781128, 0.3222077190876007, 0.22210435569286346, 0.42815935611724854, -0.17031943798065186, 0.1965894252061844, 0.14644910395145416, -0.17154963314533234, -0.09592503309249878, 0.38683512806892395, -0.16530156135559082, 0.1305285394191742, -0.2231542468070984, 0.3798943758010864, -0.04637383669614792, -0.08689404278993607, -0.3670886754989624, -0.17134638130664825, -0.0548604354262352, 0.20069964230060577, 0.2769947052001953, -0.35929450392723083, -0.21135738492012024, -0.21305087208747864, -0.1868738830089569, 0.13796065747737885, -0.16875673830509186, 0.088329017162323, 0.01466181967407465, -0.18091677129268646, -0.18281953036785126, -0.12643958628177643, 0.20193298161029816, -0.2738083600997925, 0.30664151906967163, 0.17076975107192993, 0.01243089884519577, 0.25884810090065, 0.19475330412387848, -0.15595370531082153, 0.28563928604125977, -0.4338255524635315, 0.26359015703201294, -0.09022580832242966, -0.24581466615200043, -0.011425561271607876, 0.08805149048566818, -0.04400705173611641, -0.7379403114318848, 0.26534324884414673, 0.02176710218191147, -0.04547419399023056, 0.07602627575397491, 0.17092858254909515, 0.32331153750419617, -0.24152889847755432, -0.07464959472417831, 0.07793818414211273, 0.36147037148475647, 0.07547936588525772, -0.13792157173156738, -0.3765068054199219, -0.024517713114619255, -0.1823035478591919, -0.03797321021556854, 0.18869541585445404, 0.08247372508049011, 0.059412091970443726, -0.22056464850902557, 0.11726140230894089, 0.19972217082977295, -0.08214814215898514, -0.1809232234954834, -0.15685807168483734, -0.48604705929756165, 0.06633048504590988, -0.34496575593948364, 0.20420153439044952, 0.4468434154987335, 0.5287172198295593, -0.1400744765996933, -0.10253460705280304, 0.38784244656562805, -0.486992746591568, -0.1354861557483673, 0.22837378084659576, -0.22585202753543854, -0.16659697890281677, -0.27002575993537903, -0.00039706824463792145, -0.04445517063140869, -0.06980961561203003, 0.04326696693897247, -0.13074108958244324, 0.06774478405714035, 0.03805840387940407, 0.02044701762497425, 0.0603121779859066, -0.0367266908288002, 0.2781239449977875, 0.11483202874660492, -0.06582605093717575, 0.1099119633436203, 0.1881408989429474, 0.07094468921422958, -0.21031932532787323, -0.06286022812128067, -0.005470860283821821, 0.0735882893204689, 0.2926044762134552, -0.06586593389511108, -0.37738844752311707, -0.14980633556842804, 0.005906945094466209, -0.01391235925257206, -0.06267101317644119, -0.46968069672584534, 0.009010674431920052, -0.14258252084255219, 0.0877598449587822, -0.312969446182251, 0.3146187365055084, -0.005582728888839483, 0.3284255862236023, -0.13330742716789246, -0.2391645759344101, 0.769241988658905, -0.3602597713470459, -0.05665048584342003, -0.3632574677467346, 0.2906862199306488, 0.5245928168296814, 0.056452881544828415, -0.342684805393219, -0.1364874243736267, 0.4094575047492981, -0.050062332302331924, 0.003527877852320671, -0.2560938000679016, 0.16435493528842926, 0.05860326439142227, -0.13324163854122162, -0.03743010014295578, 0.2646918296813965, -0.03712477535009384, -0.04441298916935921, -0.03410392999649048 ]
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.2319188416004181, -0.018110837787389755, -0.12120535224676132, 0.16620662808418274, 0.15398113429546356, -0.32754918932914734, -0.12402646243572235, 0.11519451439380646, -0.2562255561351776, 0.22354361414909363, -0.09199963510036469, -0.018561871722340584, -0.062076203525066376, -0.5503265857696533, -0.21199068427085876, 0.047404076904058456, -0.12461034953594208, 0.1536925733089447, 0.03214670345187187, -0.3201378583908081, -0.06274617463350296, 0.004378055687993765, -0.2288944572210312, 0.02118701860308647, -0.489949494600296, -0.03261696547269821, -0.010674912482500076, 0.05976079776883125, -0.269268274307251, -0.22868406772613525, 0.522303581237793, 0.00616028904914856, -0.044891588389873505, 0.35661542415618896, -0.00012147361121606082, 0.049664247781038284, 0.17783679068088531, -0.10519061237573624, -0.19697938859462738, -0.31120726466178894, -0.10390059649944305, 0.020872266963124275, 0.25024986267089844, -0.12072882056236267, -0.29940518736839294, -0.03137490153312683, 0.016231779009103775, -0.47222384810447693, 0.4968918263912201, 0.14089754223823547, 0.1539391428232193, 0.07946977764368057, -0.24739566445350647, -0.0978696420788765, 0.5316760540008545, 0.14919881522655487, 0.06354561448097229, -0.5371028780937195, 0.35723263025283813, 0.04666782170534134, -0.16733123362064362, 0.25931262969970703, -0.01304290909320116, 0.12799474596977234, 0.026933513581752777, 0.3127305209636688, -0.4903319478034973, -0.10857851058244705, 0.1012372151017189, 0.05669987201690674, 0.294866144657135, 0.10656508803367615, -0.5151872038841248, -0.17371028661727905, 0.025848207995295525, 0.13467136025428772, 0.045390259474515915, -0.0322912223637104, 0.03849861025810242, -0.04539443179965019, -0.36518922448158264, 0.07452648878097534, -0.11903552711009979, 0.2235455960035324, -0.3281968832015991, 0.35864678025245667, 0.02170627750456333, -0.08257211744785309, 0.15646091103553772, -0.23322486877441406, 0.33541616797447205, 0.19290994107723236, 0.08280369639396667, 0.21118083596229553, -0.3941690921783447, 0.014127065427601337, 0.1393803060054779, -0.3425760269165039, 0.1961892992258072, -0.17444315552711487, 0.13559742271900177, 0.21523310244083405, -0.11078731715679169, -0.13297215104103088, 0.14020965993404388, 0.35499128699302673, 0.07156092673540115, 0.6889235377311707, 0.056293752044439316, -0.3481678366661072, -0.48052161931991577, -0.1533404290676117, 0.06401976943016052, 0.1087690070271492, 0.328248530626297, -0.1395198106765747, -0.15129633247852325, -0.27159348130226135, -0.3633502721786499, 0.2554885447025299, -0.7213667631149292, -0.2695731222629547, 0.10873834788799286, 0.21016009151935577, 0.007519214414060116, -0.22764763236045837, 0.27532103657722473, 0.1703203320503235, -0.0937599316239357, -0.016595475375652313, -0.2273169755935669, -0.27559107542037964, -0.17443467676639557, 0.12649966776371002, 0.29306358098983765, -0.3172924816608429, 0.30597013235092163, -0.017256414517760277, 0.3794793486595154, -0.2384912222623825, 0.22754888236522675, -0.16424092650413513, 0.5017401576042175, -0.049719713628292084, -0.06224270164966583, 0.10196728259325027, -0.2309202402830124, -0.0008204382611438632, 0.08036939799785614, -0.05311461165547371, -0.377399206161499, -0.14012949168682098, 0.09508858621120453, 0.16302254796028137, 0.018906857818365097, 0.06353149563074112, 0.05705071613192558, 0.14381052553653717, -0.03202398493885994, 0.22869832813739777, 0.03166753426194191, -0.2421649843454361, -0.02838796377182007, 0.12483519315719604, 0.2620406448841095, 0.08381380885839462, 0.07661193609237671, 0.047805361449718475, -0.2097923457622528, 0.5392239689826965, -0.19374758005142212, 0.5320913195610046, -0.35193443298339844, 0.3588712215423584, -0.1959841549396515, 0.45321032404899597, 0.34387898445129395, -0.3066941797733307, -0.4178411662578583, -0.007061989512294531, 0.07014673948287964, 0.08185067027807236, -0.1956535130739212, -0.07720009982585907, 0.585078775882721, 0.058446113020181656, 0.16849443316459656, -0.10581258684396744, -0.014751011505723, -0.17984290421009064, -0.20579944550991058, 0.07930813729763031, -0.13240168988704681, 0.12253681570291519, 0.36505845189094543, -0.31907644867897034, 0.20595456659793854, 0.20020167529582977, 0.10337931662797928, 0.1383926421403885, 0.13096660375595093, 0.1993982344865799, 0.12902724742889404, 0.24512435495853424, 0.10098148137331009, -0.017646649852395058, -0.10456973314285278, 0.3578745722770691, -0.11393028497695923, -0.175818532705307, -0.11872445046901703, 0.07894691079854965, -0.03784629702568054, -0.17964616417884827, -0.3683217465877533, 0.11061833798885345, 0.07995793223381042, -0.0667584016919136, -0.1576189547777176, 0.12521734833717346, 0.03738689422607422, 0.09110735356807709, -0.10360053181648254, -0.023947320878505707, -0.13463759422302246, 0.587319016456604, 0.14017413556575775, 0.061847198754549026, -0.1289612054824829, 0.06820507347583771, 0.33235910534858704, 0.14089451730251312, -0.028824152424931526, 0.2554713785648346, -0.09504148364067078, -0.09535878896713257, 0.2429700493812561, 0.06212658807635307, 0.0064201862551271915, -0.45695769786834717, 0.09028848260641098, 0.18203265964984894, -0.04534619674086571, -0.10434579849243164, -0.18936142325401306, 0.21333113312721252, -0.10961391776800156, 0.2979291081428528, -0.10061284154653549, -0.33570775389671326, 0.0486055351793766, 0.0263255313038826, -0.3719773292541504, -0.1223490759730339, 0.17104771733283997, -0.23740190267562866, 0.09279541671276093, -0.16224566102027893, -0.29919424653053284, -0.11543016135692596, 0.3506649136543274, 0.029858456924557686, 0.007000147830694914, 0.23595313727855682, 0.18959678709506989, 0.10179433226585388, -0.22244112193584442, -0.09805716574192047, 0.19624856114387512, 0.18834024667739868, 0.1611739844083786, -0.1316043585538864, -0.1498192399740219, 0.08842399716377258, -0.1882997453212738, 0.18649525940418243, 0.07519340515136719, 0.3247424066066742, 0.35571402311325073, 0.13535264134407043, -0.1519443243741989, -0.023997314274311066, 0.07586811482906342, -0.10024438798427582, -0.06024269759654999, 0.08862911909818649, -0.5449983477592468, 0.18387137353420258, -0.25929614901542664, -0.06969098746776581, -0.06945449113845825, -0.06868711858987808, 0.07900170981884003, 0.04176866635680199, 0.19694733619689941, -0.009485941380262375, -0.19131235778331757, -0.040425192564725876, 0.36009612679481506, -0.17868643999099731, 0.02086743153631687, 0.09504213184118271, -0.1861405372619629, -0.005319562740623951, -0.25317642092704773, 0.12268571555614471, 0.2429986447095871, 0.1191352978348732, 0.026354020461440086, -0.39714327454566956, -0.23325657844543457, 0.2191590964794159, 0.2508251667022705, -0.0781756266951561, -0.03176974132657051, -0.3412438631057739, -0.7546483874320984, -0.2112504094839096, 0.1506485641002655, -0.08914195746183395, -0.22728681564331055, 0.17671476304531097, 0.04780271649360657, 0.15998099744319916, 0.20626181364059448, -0.2788510322570801, -0.008380004204809666, 0.15967388451099396, -0.1973225176334381, -0.11820580810308456, -0.1904224008321762, 0.23776045441627502, -0.21373456716537476, 0.04600782319903374, -0.30163878202438354, -0.09457062929868698, -0.36055058240890503, -0.23014485836029053, 0.3662579655647278, -0.0772942379117012, -0.0925503596663475, -0.3487820029258728, -0.24288983643054962, -0.34984782338142395, 0.6523885130882263, -0.33803245425224304, 0.13257372379302979, 0.18873454630374908, -0.08744584023952484, -0.3462240695953369, 0.18925955891609192, 0.21276046335697174, -0.22672098875045776, -0.0007452465943060815, -0.15762914717197418, -0.00016089844575617462, 0.2392987459897995, 0.4229534864425659, 0.4874306619167328, -0.14830122888088226, 0.16313034296035767, 0.31414759159088135, 0.9544954299926758, 0.11823044717311859, -0.04694978520274162, 0.0025968095287680626, 0.23375315964221954, 0.04973340779542923, -0.16283366084098816, -0.22316764295101166, -0.0578451044857502, -0.08236879855394363, -0.07778050750494003, 0.13657793402671814, 0.019490310922265053, -0.014459308236837387, -0.0024006913881748915, 0.2149401605129242, -0.42643922567367554, -0.24907322227954865, -0.019530825316905975, -0.012616661377251148, 0.34403374791145325, 0.26696348190307617, 0.6866025328636169, 0.21552333235740662, -0.27187979221343994, -0.41539308428764343, -0.4057594835758209, 0.09809958189725876, 0.06870809942483902, 0.2006712108850479, -0.22297529876232147, -0.3778168857097626, 0.17561739683151245, 0.15010464191436768, 0.4039022624492645, 0.3343915343284607, 0.12570659816265106, 0.2573730945587158, 0.32250308990478516, 0.4669124186038971, 0.07206345349550247, 0.0438123382627964, -0.13280540704727173, -0.3340667188167572, -0.025649696588516235, -0.1807626187801361, -0.3394309878349304, 0.28155842423439026, -0.11005668342113495, 0.48212429881095886, -0.2550405263900757, -0.04811679199337959, -0.20625442266464233, -0.07974519580602646, -0.17338106036186218, -0.15707562863826752, -0.12628044188022614, -0.02243240922689438, 0.40375834703445435, 0.17922343313694, 0.12378521263599396, 0.12464926391839981, -0.07019338011741638, -0.19759604334831238, -0.20332391560077667, 0.015826530754566193, 0.1126537099480629, -0.06866985559463501, 0.5717352032661438, -0.06295264512300491, 0.3072260022163391, 0.7875509262084961, -0.02419053576886654, 0.11520126461982727, 0.3683217167854309, -0.21917451918125153, 0.4279125928878784, -0.005038851872086525, -0.12561766803264618, -0.06973522156476974, 0.34116753935813904, -0.0148837361484766, 0.014201484620571136, -0.00789340678602457, 0.030054818838834763, 0.03978220745921135, -0.08776365220546722, 0.5422752499580383, -0.30864831805229187, -0.38926947116851807, -0.022105911746621132, 0.36512160301208496, -0.35440438985824585, -0.009997103363275528, 0.06898678094148636, 0.5028804540634155, -0.39593011140823364, 0.2949845492839813, 0.2928878962993622, 0.556958019733429, -0.025505371391773224, -0.11783308535814285, -0.14321669936180115, 0.14552713930606842, 0.37443652749061584, -0.2167758345603943, 0.4011743366718292, -0.17903612554073334, -0.45354899764060974, -0.11556483805179596, -0.06766709685325623, -0.27436894178390503, 0.4145791530609131, -0.139535054564476, 0.3018554449081421, 0.21847482025623322, 0.11984878033399582, -0.11080090701580048, 0.3054763972759247, 0.38888537883758545, -0.048404838889837265, -0.07168404012918472, 0.09750138968229294, 0.04521044343709946, 0.3173339366912842, 0.004534983541816473, 0.03311006352305412, 0.1601293534040451, -0.20460951328277588, -0.21563120186328888, 0.07157838344573975, -0.3322104811668396, 0.3397744297981262, 0.501197874546051, -0.41891059279441833, 0.15536604821681976, -0.3061590790748596, 0.09585205465555191, 0.09763564169406891, -0.1372385025024414, 0.1370796412229538, 0.30239880084991455, 0.13338619470596313, 0.3347477912902832, -0.11240055412054062, 0.10553833097219467, 0.16096830368041992, -0.2286621332168579, -0.11769908666610718, 0.21839375793933868, -0.47884413599967957, -0.28225669264793396, 0.18978464603424072, -0.12041763961315155, -0.15703323483467102, 0.07032839208841324, 0.20564430952072144, -0.005478361621499062, -0.022385140880942345, 0.0564022958278656, 0.30853474140167236, -0.012982931919395924, 0.501436710357666, 0.4594120383262634, -0.20574450492858887, -0.03841863572597504, 0.6241495013237, -0.039246827363967896, 0.08016078919172287, 0.15557058155536652, -0.01220247894525528, -0.28648483753204346, -0.028406037017703056, 0.24353641271591187, 0.2989923655986786, -0.13581344485282898, -0.248971626162529, -0.5415050983428955, 0.3340107798576355, 0.4406496286392212, 0.13849090039730072, 0.19853831827640533, -0.3680627942085266, -0.3013123571872711, -0.057669498026371, 0.29069966077804565, 0.2671513557434082, 0.41643574833869934, -0.04268805310130119, -0.21285076439380646, 0.06979602575302124, -0.06510447710752487, 0.10529899597167969, -0.24581149220466614, 0.12887784838676453, -0.06637588143348694, 0.18092265725135803, -0.6103875041007996, -0.16027316451072693, 0.31176701188087463, -0.019063126295804977, 0.053106699138879776, 0.1648203283548355, -0.13338682055473328, -0.10447729378938675, 0.02192208543419838, 0.127399280667305, 0.005721366498619318, 0.23001863062381744, -0.23667247593402863, -0.38099607825279236, -0.01915658451616764, -0.2873550057411194, -0.1722269058227539, 0.5963314771652222, 0.3391684591770172, 0.12851503491401672, 0.16073094308376312, -0.26845359802246094, 0.15955935418605804, -0.05204247683286667, 0.04002796486020088, -0.028035324066877365, 0.08019395172595978, 0.21924562752246857, 0.26710808277130127, -0.04579422250390053, -0.20764850080013275, 0.07152309268712997, -0.008029133081436157, 0.007021547760814428, 0.3336581289768219, -0.3741811215877533, -0.05415283888578415, 0.21275407075881958, 0.5488231778144836, 0.4308081567287445, -0.26402607560157776, -0.541085422039032, 0.12405560165643692, 0.17170052230358124, -0.12713530659675598, -0.3978881537914276, 0.0317801833152771, 0.34139835834503174, -0.08805125951766968, 0.22197751700878143, -0.1419970989227295, -0.25041383504867554, 0.1384323090314865, 0.23444218933582306, 0.38538113236427307, -0.2593212425708771, 0.019423658028244972, -0.05698106065392494, 0.1952122151851654, -0.2900905907154083, 0.2023240625858307, -0.174220472574234, 0.18535679578781128, 0.3222077190876007, 0.22210435569286346, 0.42815935611724854, -0.17031943798065186, 0.1965894252061844, 0.14644910395145416, -0.17154963314533234, -0.09592503309249878, 0.38683512806892395, -0.16530156135559082, 0.1305285394191742, -0.2231542468070984, 0.3798943758010864, -0.04637383669614792, -0.08689404278993607, -0.3670886754989624, -0.17134638130664825, -0.0548604354262352, 0.20069964230060577, 0.2769947052001953, -0.35929450392723083, -0.21135738492012024, -0.21305087208747864, -0.1868738830089569, 0.13796065747737885, -0.16875673830509186, 0.088329017162323, 0.01466181967407465, -0.18091677129268646, -0.18281953036785126, -0.12643958628177643, 0.20193298161029816, -0.2738083600997925, 0.30664151906967163, 0.17076975107192993, 0.01243089884519577, 0.25884810090065, 0.19475330412387848, -0.15595370531082153, 0.28563928604125977, -0.4338255524635315, 0.26359015703201294, -0.09022580832242966, -0.24581466615200043, -0.011425561271607876, 0.08805149048566818, -0.04400705173611641, -0.7379403114318848, 0.26534324884414673, 0.02176710218191147, -0.04547419399023056, 0.07602627575397491, 0.17092858254909515, 0.32331153750419617, -0.24152889847755432, -0.07464959472417831, 0.07793818414211273, 0.36147037148475647, 0.07547936588525772, -0.13792157173156738, -0.3765068054199219, -0.024517713114619255, -0.1823035478591919, -0.03797321021556854, 0.18869541585445404, 0.08247372508049011, 0.059412091970443726, -0.22056464850902557, 0.11726140230894089, 0.19972217082977295, -0.08214814215898514, -0.1809232234954834, -0.15685807168483734, -0.48604705929756165, 0.06633048504590988, -0.34496575593948364, 0.20420153439044952, 0.4468434154987335, 0.5287172198295593, -0.1400744765996933, -0.10253460705280304, 0.38784244656562805, -0.486992746591568, -0.1354861557483673, 0.22837378084659576, -0.22585202753543854, -0.16659697890281677, -0.27002575993537903, -0.00039706824463792145, -0.04445517063140869, -0.06980961561203003, 0.04326696693897247, -0.13074108958244324, 0.06774478405714035, 0.03805840387940407, 0.02044701762497425, 0.0603121779859066, -0.0367266908288002, 0.2781239449977875, 0.11483202874660492, -0.06582605093717575, 0.1099119633436203, 0.1881408989429474, 0.07094468921422958, -0.21031932532787323, -0.06286022812128067, -0.005470860283821821, 0.0735882893204689, 0.2926044762134552, -0.06586593389511108, -0.37738844752311707, -0.14980633556842804, 0.005906945094466209, -0.01391235925257206, -0.06267101317644119, -0.46968069672584534, 0.009010674431920052, -0.14258252084255219, 0.0877598449587822, -0.312969446182251, 0.3146187365055084, -0.005582728888839483, 0.3284255862236023, -0.13330742716789246, -0.2391645759344101, 0.769241988658905, -0.3602597713470459, -0.05665048584342003, -0.3632574677467346, 0.2906862199306488, 0.5245928168296814, 0.056452881544828415, -0.342684805393219, -0.1364874243736267, 0.4094575047492981, -0.050062332302331924, 0.003527877852320671, -0.2560938000679016, 0.16435493528842926, 0.05860326439142227, -0.13324163854122162, -0.03743010014295578, 0.2646918296813965, -0.03712477535009384, -0.04441298916935921, -0.03410392999649048 ]
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.1948350965976715, -0.034424200654029846, -0.10161424428224564, 0.12685374915599823, -0.05827877297997475, -0.12504953145980835, 0.43154120445251465, 0.17082099616527557, 0.10607096552848816, 0.1873810738325119, -0.431226521730423, 0.07661671191453934, -0.030573289841413498, -0.3551284074783325, 0.20791752636432648, -0.11944609880447388, -0.01372903399169445, 0.22139744460582733, 0.014430094510316849, -0.2777482867240906, -0.20851634442806244, 0.24179621040821075, 0.06161658838391304, -0.11089558899402618, -0.25688838958740234, -0.35043084621429443, -0.279140830039978, 0.21262915432453156, -0.23462840914726257, -0.32582592964172363, 0.31270235776901245, 0.34234821796417236, 0.23608586192131042, 0.4270275831222534, -0.00010264104639645666, -0.11684296280145645, 0.15046554803848267, -0.02276540733873844, 0.23003487288951874, 0.06522798538208008, 0.246184304356575, -0.5815306901931763, 0.022001417353749275, -0.27044621109962463, -0.06932169944047928, -0.3054873049259186, -0.05930785834789276, -0.06598442047834396, 0.3989914059638977, 0.2640658915042877, 0.304537296295166, -0.025696083903312683, 0.23297788202762604, -0.41503214836120605, 0.025186000391840935, 0.057934295386075974, -0.13751362264156342, 0.3970346748828888, 0.4069150984287262, -0.04848238080739975, -0.04120485857129097, -0.05031707137823105, 0.12643614411354065, -0.10193965584039688, 0.3068544566631317, -0.009881168603897095, -0.07304410636425018, -0.5875656604766846, 0.03554023802280426, 0.4702458083629608, 0.30359408259391785, 0.1698893904685974, -0.2683257758617401, 0.10418988764286041, -0.03091183677315712, -0.15469245612621307, -0.1621079444885254, -0.09017686545848846, -0.08144498616456985, 0.09009657055139542, -0.009567759931087494, -0.10536054521799088, -0.35690489411354065, 0.2582896649837494, -0.11994115263223648, 0.18730352818965912, -0.11280079185962677, -0.07551106065511703, 0.10008017718791962, -0.029959408566355705, -0.2914911210536957, 0.054713454097509384, -0.024872077628970146, 0.22628584504127502, -0.14936357736587524, -0.29859134554862976, 0.045109156519174576, 0.2989327609539032, 0.5806900858879089, 0.2920946776866913, -0.13492682576179504, -0.002011956414207816, -0.024432681500911713, 0.17380119860172272, -0.005068381782621145, 0.06208109110593796, 0.10717993974685669, -0.09761817753314972, 0.21539771556854248, 0.09766057878732681, 0.11535715311765671, 0.136045902967453, -0.3167729079723358, 0.031733352690935135, -0.09467347711324692, -0.26568031311035156, -0.26861491799354553, -0.18731319904327393, 0.014102726243436337, 0.30912673473358154, -0.1353948563337326, 0.10398322343826294, -0.10421346873044968, 0.3705095052719116, -0.14152801036834717, 0.3739585280418396, -0.1348126083612442, 0.045948177576065063, 0.12948554754257202, 0.0374455451965332, -0.23653191328048706, 0.26920726895332336, -0.09966792166233063, -0.16876079142093658, 0.16251936554908752, 0.05858245864510536, 0.2478320151567459, -0.2568918764591217, 0.07486019283533096, 0.06781413406133652, -0.05047813430428505, -0.16283543407917023, 0.3042086958885193, 0.15417885780334473, -0.17405568063259125, -0.0858001783490181, 0.07154852896928787, -0.23082789778709412, -0.3051965832710266, -0.16492298245429993, -0.0587768591940403, 0.02518792264163494, -0.26545464992523193, 0.25467607378959656, -0.09197888523340225, -0.16816973686218262, 0.10786370187997818, 0.4329470992088318, -0.11623021215200424, 0.031074730679392815, -0.021580606698989868, 0.17584563791751862, -0.23660556972026825, -0.09126737713813782, 0.20167018473148346, 0.27091673016548157, -0.4070509374141693, -0.08166203647851944, -0.24957191944122314, -0.03524773567914963, 0.16477985680103302, 0.1570713371038437, -0.19579830765724182, 0.11448984593153, 0.020055929198861122, 0.07572049647569656, 0.4357154965400696, -0.13560959696769714, -0.3292348086833954, 0.5616942048072815, -0.14286640286445618, 0.043966494500637054, 0.1381474733352661, 0.30596640706062317, 0.3618834316730499, -0.07293743640184402, 0.07673419266939163, 0.26168614625930786, -0.20144817233085632, -0.11641265451908112, -0.1320563405752182, -0.37849968671798706, -0.3847472369670868, -0.09448383003473282, 0.5402752757072449, 0.16102875769138336, 0.3405369818210602, -0.15140627324581146, 0.30014482140541077, 0.1266355812549591, 0.20243756473064423, 0.1396227478981018, 0.5302114486694336, 0.19008754193782806, -0.03589608892798424, -0.2318316251039505, -0.1146017387509346, 0.05895047262310982, -0.03957594186067581, 0.195592001080513, 0.18032236397266388, -0.1537187248468399, -0.24107734858989716, -0.13565823435783386, -0.056296784430742264, -0.3382452428340912, 0.1935909539461136, 0.23857048153877258, 0.1584203988313675, -0.20778219401836395, -0.10734905302524567, 0.29926708340644836, 0.17888180911540985, -0.12131131440401077, -0.03689631447196007, 0.2745828926563263, -0.4515458047389984, 0.1772141009569168, 0.006860815454274416, 0.2530304491519928, 0.0016308584017679095, -0.2303432673215866, 0.38060447573661804, 0.35636043548583984, -0.10538356006145477, -0.20450778305530548, 0.4283846616744995, -0.06217220798134804, 0.1458105742931366, -0.2260710448026657, 0.12040997296571732, -0.1315041482448578, 0.09092588722705841, 0.24489983916282654, -0.0000738393355277367, 0.5810732245445251, 0.2931465804576874, 0.02855226770043373, 0.11402416974306107, -0.007064674980938435, 0.11903736740350723, 0.009545129723846912, 0.1411259025335312, -0.3736826777458191, 0.08731330931186676, 0.30772626399993896, -0.020356575027108192, -0.10981594771146774, -0.4671921730041504, 0.14836320281028748, -0.10707730799913406, -0.03077508509159088, 0.011304676532745361, 0.1671341210603714, 0.109192855656147, -0.07877262681722641, -0.14232182502746582, 0.33216333389282227, 0.2356979250907898, 0.4182388484477997, -0.06498116999864578, -0.0916895791888237, -0.004393355920910835, -0.028738534078001976, 0.06832567602396011, 0.2646046280860901, 0.3027413487434387, 0.06631141901016235, 0.24821710586547852, 0.26643094420433044, -0.22295737266540527, -0.2070310264825821, -0.06581510603427887, 0.1552608758211136, 0.007750880438834429, 0.16954506933689117, 0.1440909057855606, 0.21449114382266998, -0.2617093622684479, 0.022862659767270088, -0.0659872367978096, -0.25646212697029114, 0.21158617734909058, -0.14288358390331268, 0.20908842980861664, 0.32924121618270874, -0.48158392310142517, 0.22734826803207397, -0.40663373470306396, 0.3680804371833801, 0.09833213686943054, -0.07847586274147034, -0.30232468247413635, 0.27221211791038513, 0.13020189106464386, -0.22106170654296875, 0.5940272808074951, 0.04883788898587227, -0.11436621844768524, -0.4036484658718109, -0.7340561747550964, 0.3076917827129364, -0.230906143784523, 0.4652509093284607, 0.12930601835250854, -0.011328006163239479, -0.03475474566221237, -0.10148517787456512, 0.061307393014431, -0.5267003178596497, -0.29774197936058044, -0.25055328011512756, -0.3947783410549164, 0.01632142998278141, 0.025612203404307365, -0.43425002694129944, -0.34705767035484314, -0.24294224381446838, 0.24716158211231232, 0.1174124926328659, 0.16062773764133453, 0.2522358298301697, -0.0767192617058754, -0.013117264024913311, 0.011211207136511803, 0.09198293089866638, -0.18836025893688202, -0.16305820643901825, 0.2885798215866089, -0.4790603816509247, -0.5077259540557861, 0.10037628561258316, -0.1816784292459488, -0.048965781927108765, -0.09484256058931351, -0.16559836268424988, -0.4807663559913635, -0.0752694308757782, 0.30068308115005493, 0.21413849294185638, -0.08995267748832703, 0.2338051050901413, -0.30375388264656067, -0.3084404170513153, 0.008515216410160065, 0.20257128775119781, 0.40285724401474, -0.42105814814567566, 0.1648033708333969, -0.0959569439291954, 0.5690163969993591, -0.10912114381790161, 0.35692891478538513, 0.03501933068037033, -0.32913434505462646, -0.03785308822989464, -0.11667512357234955, 0.422153115272522, 0.025836076587438583, -0.15197519958019257, 0.2515668272972107, -0.1604846715927124, 0.09713910520076752, 0.32577139139175415, -0.15277700126171112, -0.4096333086490631, -0.16080938279628754, 0.1710214763879776, -0.25143399834632874, 0.10082250088453293, -0.19815152883529663, -0.14851310849189758, 0.19921983778476715, -0.13566134870052338, -0.3192771077156067, -0.027362801134586334, -0.1692507266998291, -0.009562202729284763, 0.35840660333633423, -0.09112512320280075, 0.01962241344153881, -0.6412314772605896, 0.10024788975715637, -0.3555575907230377, 0.3508533537387848, 0.32636454701423645, 0.08465631306171417, -0.14040789008140564, -0.3038264811038971, -0.028098339214920998, -0.14468663930892944, 0.3904830813407898, -0.40321624279022217, -0.24896566569805145, -0.07554464042186737, 0.24108122289180756, -0.23216044902801514, 0.192473903298378, -0.2888326048851013, 0.028145361691713333, 0.03788488358259201, 0.19593213498592377, -0.17643672227859497, -0.2767356336116791, 0.574640691280365, -0.011869394220411777, -0.061881985515356064, 0.006038587540388107, -0.16431546211242676, -0.11779804527759552, -0.0228790994733572, -0.0069785513915121555, -0.1040869653224945, 0.051410920917987823, 0.006076012272387743, 0.03819919005036354, 0.005098532885313034, 0.045702919363975525, 0.3633349537849426, 0.09008915722370148, -0.0893748551607132, 0.23354685306549072, 0.20895731449127197, 0.04484542831778526, 0.16863714158535004, 0.5208560824394226, 0.07734319567680359, -0.43420517444610596, 0.009228714741766453, 0.22453828155994415, -0.18995308876037598, 0.42330271005630493, 0.15240581333637238, 0.0886671170592308, -0.09193084388971329, 0.20434410870075226, 0.10738888382911682, 0.10878053307533264, 0.10678377747535706, 0.36497125029563904, -0.17674537003040314, -0.291492223739624, -0.19946764409542084, 0.2086280882358551, 0.11367285996675491, -0.044760312885046005, -0.2344740927219391, 0.23813745379447937, 0.06139490753412247, -0.20160655677318573, 0.1958923041820526, 0.793867826461792, 0.053536489605903625, 0.05644478276371956, 0.07176341116428375, -0.5559244751930237, 0.46286845207214355, -0.1370227336883545, -0.01521388255059719, -0.34941011667251587, -0.12744887173175812, -0.19139817357063293, 0.03013351745903492, 0.12316563725471497, 0.12100224941968918, 0.01596631295979023, 0.002143382327631116, -0.04956722632050514, -0.08446848392486572, 0.029321283102035522, 0.20752903819084167, 0.3125423192977905, -0.17441384494304657, -0.034544091671705246, 0.2706570625305176, 0.21491354703903198, -0.04261014610528946, -0.001628616824746132, -0.06166654825210571, -0.5263210535049438, -0.06783477216959, -0.08181440085172653, -0.09195055812597275, -0.11335849016904831, 0.25909048318862915, 0.3719117045402527, -0.6455813050270081, 0.0334828719496727, -0.027561446651816368, 0.20992842316627502, -0.17693963646888733, -0.06506790220737457, 0.08977746218442917, -0.15602795779705048, -0.30266448855400085, 0.22493860125541687, -0.14176182448863983, 0.25542566180229187, -0.16795112192630768, -0.07380235940217972, 0.3642200529575348, -0.07283062487840652, 0.06573139131069183, -0.26589804887771606, 0.06910311430692673, -0.029681162908673286, 0.11947792023420334, 0.02317798137664795, 0.22265319526195526, -0.05332496017217636, -0.2640284597873688, 0.1794905662536621, 0.05960426479578018, -0.19770289957523346, -0.15845368802547455, -0.04306449741125107, -0.0344812273979187, -0.08065072447061539, 0.41473010182380676, 0.14294037222862244, 0.030522197484970093, 0.24012626707553864, 0.16840516030788422, -0.2359340935945511, -0.345275342464447, -0.10835380852222443, 0.5156991481781006, -0.5914092063903809, -0.2685300409793854, -0.03909548372030258, -0.2759580910205841, 0.341372013092041, 0.5564912557601929, 0.17938752472400665, -0.19128060340881348, -0.15301206707954407, -0.203197181224823, -0.5415034294128418, 0.14733976125717163, -0.505675733089447, 0.2357795685529709, -0.072716623544693, 0.37712806463241577, -0.019701791927218437, 0.26414376497268677, -0.4471135139465332, 0.007140009198337793, -0.1296507865190506, -0.00451928423717618, -0.19922177493572235, -0.2223634570837021, 0.13537472486495972, 0.03978751227259636, 0.13241368532180786, -0.03202936798334122, -0.3486909568309784, -0.21732819080352783, -0.16696874797344208, 0.062190860509872437, -0.06844541430473328, 0.12507888674736023, 0.15265317261219025, 0.19059234857559204, -0.44274917244911194, 0.20421309769153595, 0.2229612171649933, -0.10538902878761292, 0.029223499819636345, -0.15034782886505127, -0.10815979540348053, -0.23339524865150452, -0.03131423518061638, -0.15617507696151733, 0.22937005758285522, 0.06959483027458191, 0.2426782250404358, 0.023576291278004646, -0.14779320359230042, -0.2319275438785553, -0.049496471881866455, 0.49655622243881226, 0.12772111594676971, -0.1563826948404312, 0.33152762055397034, -0.18267354369163513, -0.10781335085630417, 0.6040503978729248, 0.46466776728630066, 0.08683629333972931, 0.11458177119493484, 0.12853901088237762, -0.09047532081604004, 0.2801990211009979, -0.40795785188674927, -0.1464691013097763, -0.2841684818267822, -0.3106571137905121, 0.19865697622299194, 0.3563953638076782, 0.37666651606559753, 0.07812182605266571, 0.11184945702552795, 0.1665922999382019, 0.46975263953208923, -0.27064594626426697, -0.011369483545422554, 0.11318270117044449, 0.22229620814323425, 0.2097020298242569, 0.4822480380535126, 0.13309450447559357, 0.3767605423927307, -0.020560266450047493, 0.029365599155426025, 0.21219362318515778, 0.0055864970199763775, 0.40021833777427673, 0.41635483503341675, -0.1765599250793457, 0.23933058977127075, 0.06998814642429352, 0.07050512731075287, -0.2296883761882782, -0.12675155699253082, 0.5943980813026428, 0.10865741968154907, 0.1331961750984192, -0.13615834712982178, 0.2083374261856079, 0.018406877294182777, -0.07114311307668686, -0.061222173273563385, -0.3688547909259796, -0.2815541625022888, -0.1877399981021881, 0.01143338531255722, -0.04469281807541847, 0.3664059042930603, -0.16550397872924805, -0.10931867361068726, -0.33797627687454224, -0.09854148328304291, 0.09707891941070557, 0.31799861788749695, -0.1744045615196228, 0.26708129048347473, -0.14243856072425842, -0.22000591456890106, 0.1298738420009613, 0.35073399543762207, 0.38331976532936096, -0.037086572498083115, 0.2647232413291931, -0.05804718658328056, 0.010274137370288372, -0.319122314453125, -0.17357385158538818, 0.08456607162952423, 0.22511674463748932, -0.2941148281097412, 0.09965004026889801, 0.20317596197128296, -0.2700674533843994, 0.17510986328125, 0.19860593974590302, 0.18319547176361084, 0.07217704504728317, 0.24442078173160553, 0.04107629135251045, -0.21692340075969696, -0.04346805810928345, 0.18952278792858124, -0.32230913639068604, 0.18358269333839417, -0.021936364471912384, -0.09630829840898514, -0.05674385279417038, -0.09555412828922272, 0.1596498191356659, -0.10570134222507477, 0.2242295742034912, 0.1842159926891327, -0.06982637196779251, -0.1372906118631363, -0.2968899607658386, -0.4947141706943512, 0.1266508400440216, 0.05867418646812439, -0.19294212758541107, -0.09742733091115952, 0.25455835461616516, 0.14454324543476105, -0.07402178645133972, 0.011314460076391697, -0.19538313150405884, 0.06585847586393356, -0.04776734858751297, -0.2914223372936249, 0.06887366622686386, 0.04076864942908287, 0.2265983521938324, 0.12906673550605774, -0.1045510396361351, -0.2551732361316681, -0.10462129861116409, 0.08587555587291718, -0.08532263338565826, -0.27747830748558044, -0.024385830387473106, 0.15114660561084747, 0.23024076223373413, 0.08737815171480179, 0.49352627992630005, -0.13585157692432404, -0.25040948390960693, -0.27340206503868103, -0.12176191806793213, -0.3229374587535858, 0.3654838502407074, 0.23278845846652985, 0.2945103049278259, -0.10164682567119598, -0.007540685124695301, 0.1279548555612564, -0.11886592954397202, 0.28191933035850525, 0.13794337213039398, -0.342303991317749, 0.04868261143565178, -0.028927991166710854, -0.19136326014995575, 0.3845244348049164, 0.3300604522228241, 0.23391571640968323, -0.0888853594660759, -0.21917347609996796, -0.34651046991348267, 0.4386173486709595, 0.1318143606185913, 0.06660428643226624, -0.16357822716236115, 0.2013247013092041, 0.027791129425168037, -0.17994770407676697, -0.3909990191459656, 0.058928001672029495, 0.4154227674007416, -0.0094553017988801, -0.2802797555923462, 0.2262725681066513, -0.04704250022768974, -0.1045423224568367, -0.08623592555522919, -0.06812175363302231, 0.0298428013920784, -0.18701650202274323, -0.13494540750980377, -0.015928400680422783 ]
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.2229691743850708, 0.24770191311836243, -0.01386845950037241, -0.10007116198539734, -0.003329143626615405, -0.14651012420654297, -0.0916018858551979, 0.1460769921541214, -0.3497586250305176, 0.10942153632640839, -0.2728045880794525, 0.38738924264907837, 0.21265386044979095, -0.19921822845935822, -0.061310064047575, -0.0526454821228981, -0.1135229840874672, 0.000003132849769826862, -0.0314253531396389, -0.09378708899021149, -0.10050846636295319, -0.34849226474761963, -0.3477396070957184, -0.14554363489151, -0.2218254953622818, -0.16036918759346008, 0.05497482419013977, 0.3512454032897949, -0.12604616582393646, -0.3404074013233185, 0.09777936339378357, 0.5284637212753296, -0.06014317274093628, 0.3460890054702759, -0.0001203739084303379, -0.11406295001506805, -0.3013566732406616, -0.05909836292266846, -0.49368956685066223, 0.0832119956612587, -0.06971550732851028, -0.043839164078235626, -0.1616152822971344, 0.07797492295503616, -0.12168576568365097, -0.11298152804374695, -0.05491142347455025, -0.36396151781082153, 0.4560748040676117, -0.0008512964705005288, 0.12085182219743729, 0.22048209607601166, -0.5714426040649414, -0.2556701600551605, 0.167040154337883, 0.01624189503490925, -0.09538312256336212, -0.03658028692007065, 0.4183204174041748, 0.1212792694568634, -0.11408738791942596, 0.3431175947189331, -0.09504422545433044, -0.15067876875400543, 0.24512335658073425, 0.12945041060447693, -0.26991206407546997, 0.12562741339206696, 0.005174937658011913, 0.022279702126979828, 0.20266962051391602, -0.11320409178733826, -0.5826919078826904, -0.37192627787590027, 0.3417555093765259, -0.012738402932882309, 0.20491670072078705, -0.2810363173484802, 0.4607764482498169, -0.041623804718256, -0.306301474571228, 0.2016848772764206, 0.03589004650712013, 0.02143687568604946, 0.16131943464279175, 0.22619104385375977, 0.0236476082354784, -0.010698438622057438, -0.01923150196671486, -0.1237981766462326, 0.19316264986991882, -0.18774659931659698, 0.045831117779016495, 0.33856022357940674, -0.48510581254959106, -0.21021752059459686, -0.11098926514387131, -0.2480476051568985, 0.03092484548687935, 0.19534647464752197, 0.09914015978574753, 0.4193669557571411, 0.07935909181833267, -0.3105548918247223, 0.19269613921642303, 0.294391930103302, -0.0932469442486763, 0.33540481328964233, 0.06616529822349548, -0.05582968890666962, -0.06709437817335129, -0.02726270630955696, 0.05751935765147209, -0.3548845946788788, -0.11530502140522003, 0.06213110685348511, -0.41689005494117737, -0.1396673321723938, -0.4675743281841278, 0.010128644295036793, -0.236788809299469, 0.026424448937177658, 0.3597140610218048, 0.3569381833076477, -0.13391180336475372, -0.12309637665748596, 0.02047390304505825, 0.15109094977378845, -0.38277798891067505, 0.11942803859710693, -0.1549316942691803, -0.180751770734787, -0.12825976312160492, 0.49811282753944397, 0.06820101290941238, 0.010568157769739628, -0.04452694207429886, 0.14791227877140045, 0.6504570245742798, 0.1346215307712555, 0.17897412180900574, -0.06256019324064255, 0.3049420416355133, 0.13300307095050812, -0.16442090272903442, 0.028439434245228767, -0.06938418745994568, -0.08285964280366898, -0.2640683054924011, 0.24049632251262665, -0.4224533438682556, -0.1730773150920868, 0.27386003732681274, 0.14264945685863495, 0.053241461515426636, -0.13243721425533295, -0.02617032639682293, 0.11525693535804749, 0.07007265836000443, -0.32718074321746826, 0.03344552591443062, -0.2640089988708496, 0.05803820118308067, 0.041754450649023056, 0.10551874339580536, 0.2644105553627014, -0.46621811389923096, -0.08052165061235428, 0.09471984952688217, 0.5643763542175293, 0.2235664427280426, 0.3344971835613251, -0.29511675238609314, 0.07749283313751221, 0.06231274455785751, 0.21906207501888275, 0.44857630133628845, -0.1682100147008896, -0.4064481258392334, 0.07931681722402573, -0.3333147466182709, 0.13018105924129486, 0.11000434309244156, 0.29874998331069946, 0.40874192118644714, -0.14379069209098816, -0.0917467474937439, 0.2847898602485657, 0.0783124566078186, -0.0005589413340203464, -0.2430841624736786, -0.14943882822990417, -0.14602746069431305, 0.24939246475696564, -0.08547189831733704, 0.00045363869867287576, 0.06587523221969604, 0.2544439733028412, 0.09367745369672775, -0.21243709325790405, -0.15691372752189636, 0.14409597218036652, -0.04870815947651863, 0.236146941781044, 0.009082998149096966, -0.2017510086297989, -0.2624250650405884, 0.25423213839530945, -0.1482541412115097, -0.08744555711746216, 0.13528475165367126, -0.24905921518802643, -0.2674170136451721, -0.22432450950145721, -0.3613678812980652, -0.084128737449646, -0.032693393528461456, -0.00004944235479342751, 0.2648525536060333, -0.37430137395858765, -0.13582350313663483, 0.2545193135738373, -0.2980075180530548, 0.11255493015050888, 0.18673495948314667, 0.3353077471256256, 0.09426412731409073, -0.08367177098989487, -0.17538145184516907, 0.22317974269390106, 0.04138003662228584, -0.010259783826768398, -0.04253247752785683, 0.481607049703598, -0.0305576603859663, -0.20105955004692078, 0.30034521222114563, 0.19190353155136108, 0.11892565339803696, -0.004834043327718973, 0.18485331535339355, -0.05676471069455147, -0.10385854542255402, -0.08572178333997726, -0.4112774133682251, 0.7307941317558289, -0.6390345096588135, 0.390663206577301, -0.008189383894205093, -0.39149194955825806, -0.13644465804100037, 0.23396985232830048, -0.06718473136425018, 0.02808964252471924, 0.1946617215871811, 0.06922410428524017, 0.3068406283855438, 0.021923208609223366, -0.17089426517486572, 0.11481718719005585, 0.3807355761528015, 0.11161015927791595, -0.11619139462709427, 0.059331342577934265, 0.19338612258434296, 0.05811556056141853, -0.15266315639019012, -0.43810421228408813, 0.2674150764942169, 0.2144746631383896, -0.009813080541789532, -0.07380306720733643, -0.08768545836210251, -0.08992598950862885, -0.061719708144664764, -0.04509992524981499, -0.025745896622538567, 0.39694392681121826, 0.3169577717781067, 0.2558148503303528, -0.2715602517127991, -0.04619010165333748, 0.04976474866271019, -0.026953591033816338, -0.3187941312789917, 0.3653796315193176, -0.265547513961792, 0.32622554898262024, -0.09957209974527359, 0.09953222423791885, -0.23394885659217834, -0.1894756704568863, 0.29989033937454224, -0.053245630115270615, 0.042035188525915146, 0.22804659605026245, 0.008249734528362751, 0.25100162625312805, 0.19362257421016693, -0.40150296688079834, 0.04864586517214775, 0.1283145397901535, -0.08533958345651627, -0.03868485242128372, 0.179298996925354, 0.23403851687908173, 0.29964154958724976, 0.16312621533870697, -0.20645904541015625, -0.07068178057670593, -0.3488861620426178, -0.05851207301020622, 0.09015108644962311, 0.14988334476947784, -0.09478678554296494, -0.1986880600452423, -0.5059835314750671, -0.33610761165618896, -0.09678824245929718, 0.1074071004986763, -0.1892315000295639, 0.004753658082336187, -0.21010033786296844, 0.06903684139251709, 0.1734793782234192, -0.4781155288219452, 0.01683848537504673, 0.016256198287010193, 0.03444977104663849, 0.00983778852969408, 0.06695491820573807, 0.14761139452457428, -0.16101565957069397, -0.11166231334209442, -0.1796439290046692, 0.08806876093149185, -0.353863924741745, -0.2686775028705597, 0.2319987267255783, -0.10557743161916733, -0.008286369033157825, -0.4196914732456207, -0.07657632976770401, -0.576568603515625, 0.25387799739837646, 0.016037708148360252, -0.1266457885503769, -0.09158100187778473, -0.09845859557390213, -0.36536237597465515, 0.2959350645542145, 0.33224642276763916, -0.21093934774398804, 0.03213929757475853, 0.11028186231851578, -0.07740156352519989, 0.06234275549650192, 0.5486825704574585, 0.046228811144828796, -0.4003954231739044, 0.12395232170820236, 0.11098529398441315, 1.1333427429199219, -0.014180793426930904, 0.11144615709781647, -0.0653466060757637, 0.16985659301280975, 0.06900596618652344, -0.3496229350566864, -0.16720077395439148, 0.2396913468837738, -0.006079715210944414, 0.06313116103410721, 0.35857534408569336, 0.0024382544215768576, 0.21972590684890747, 0.36135420203208923, 0.47137612104415894, -0.12103793025016785, -0.1453617811203003, 0.1049267053604126, 0.12416664510965347, 0.1314239501953125, 0.2344905138015747, 0.3305239975452423, -0.254545658826828, -0.18995900452136993, -0.021791953593492508, -0.21384519338607788, 0.24153879284858704, -0.1783566027879715, -0.48205554485321045, 0.017616309225559235, -0.08873535692691803, 0.10386695712804794, 0.12115926295518875, 0.031036801636219025, 0.30657196044921875, -0.08949412405490875, 0.4382140636444092, -0.15524420142173767, 0.6033061146736145, 0.01032821461558342, -0.07484562695026398, 0.20947039127349854, -0.30213016271591187, 0.031764671206474304, -0.002844209084287286, -0.31031736731529236, 0.13811467587947845, 0.02803846076130867, 0.2992963194847107, -0.39559686183929443, -0.14685969054698944, 0.23749098181724548, 0.013685714453458786, 0.018269389867782593, 0.016800589859485626, -0.15742559731006622, 0.04574913904070854, 0.07693339139223099, 0.4116097390651703, -0.2768588066101074, 0.1689108908176422, 0.049989715218544006, 0.15340538322925568, -0.20582734048366547, 0.0772603303194046, 0.10899005830287933, 0.09788385033607483, 0.2320636510848999, 0.3968155086040497, 0.29682081937789917, 0.5759827494621277, -0.08200138807296753, 0.2667076885700226, 0.3654347360134125, -0.040562648326158524, -0.03208056837320328, 0.1777070313692093, 0.02137530967593193, 0.12450888007879257, 0.7451140880584717, 0.1889922022819519, 0.1802191436290741, -0.009155642241239548, 0.3382091820240021, -0.2709099054336548, -0.057021934539079666, 0.3755321502685547, -0.1951368749141693, -0.15412794053554535, -0.24984793365001678, 0.32884612679481506, 0.00893391016870737, -0.036588896065950394, -0.11355762928724289, 0.5571151375770569, -0.11694804579019547, 0.3699226379394531, 0.6643732190132141, 1.1539640426635742, -0.3158577084541321, 0.2839166522026062, 0.08572441339492798, -0.0627593994140625, 0.2783324122428894, -0.45719996094703674, 0.3110561966896057, -0.3608015477657318, -0.5183974504470825, 0.12710154056549072, -0.2768591344356537, 0.17806170880794525, 0.3513532280921936, 0.04872488975524902, 0.23529398441314697, -0.38277238607406616, 0.07795896381139755, -0.36643075942993164, 0.20860712230205536, 0.10528704524040222, -0.5642210841178894, -0.0995810478925705, 0.03420807793736458, 0.08514861762523651, -0.16150489449501038, -0.1026570275425911, 0.17781294882297516, -0.07760028541088104, 0.23192888498306274, -0.05661310628056526, -0.14086861908435822, -0.3118816614151001, -0.023459648713469505, -0.04957365617156029, -0.3439304530620575, 0.604779064655304, -0.041518405079841614, 0.1774512380361557, 0.13722074031829834, 0.20339122414588928, 0.17463143169879913, 0.17084376513957977, 0.4651057720184326, 0.456569641828537, -0.10608074814081192, 0.05089614912867546, 0.16571979224681854, 0.1711331605911255, -0.11482428759336472, 0.19439618289470673, -0.43183043599128723, -0.38545918464660645, 0.11506576091051102, 0.09803891181945801, -0.19468317925930023, -0.02035192772746086, 0.28045976161956787, 0.1253666877746582, -0.20019087195396423, 0.05037353187799454, 0.038236573338508606, -0.02835700288414955, 0.548647403717041, 0.16353976726531982, -0.2518388330936432, -0.26089560985565186, 0.6345752477645874, 0.09655269980430603, -0.08347372710704803, 0.4297219216823578, -0.04877505451440811, -0.3911806046962738, -0.10197065770626068, 0.21287216246128082, 0.2624305784702301, -0.3412110209465027, -0.08727511763572693, -0.18792875111103058, -0.27944186329841614, 0.15877492725849152, 0.201829195022583, 0.1933792531490326, -0.07011011242866516, -0.2999260723590851, 0.12440677732229233, 0.3185892403125763, 0.020122218877077103, 0.604616105556488, 0.03986010327935219, -0.3336842358112335, 0.22270359098911285, -0.5289214253425598, 0.3563677966594696, -0.26161903142929077, -0.10699807107448578, -0.2482592910528183, 0.2899225354194641, -0.5045490264892578, -0.14837844669818878, 0.25868555903434753, -0.11637237668037415, 0.004872103221714497, -0.06017644330859184, -0.19830818474292755, -0.14482522010803223, -0.19700174033641815, 0.09802648425102234, -0.19970637559890747, 0.12431803345680237, -0.01880394108593464, -0.25076353549957275, -0.2704801559448242, -0.40962594747543335, 0.20145514607429504, 0.3396628797054291, 0.25175192952156067, -0.07944852113723755, 0.201530322432518, -0.2823919355869293, 0.12247281521558762, -0.0024236226454377174, 0.16811460256576538, -0.16676418483257294, 0.0411641001701355, 0.24534247815608978, -0.1037382036447525, -0.1357145607471466, -0.06975226104259491, 0.2789185643196106, 0.5007082223892212, 0.0211986992508173, 0.21533310413360596, -0.298462837934494, -0.054540447890758514, 0.4007706642150879, 0.41864803433418274, 0.6963027715682983, 0.29698294401168823, -0.6313237547874451, 0.08922269195318222, 0.04358790069818497, -0.0628519207239151, -0.3881578743457794, 0.021162351593375206, -0.10073342174291611, 0.010000916197896004, 0.18118341267108917, -0.18661130964756012, 0.33414092659950256, 0.11532766371965408, 0.14217312633991241, -0.08103784173727036, -0.06331612914800644, 0.10963050276041031, 0.22109653055667877, 0.2158699780702591, -0.1135801151394844, 0.38455235958099365, -0.19541403651237488, 0.10968005657196045, 0.0798889547586441, 0.17930881679058075, 0.4664369523525238, -0.04113020375370979, 0.30828434228897095, -0.3080219328403473, -0.2969987094402313, -0.24217164516448975, 0.44425779581069946, 0.19909648597240448, -0.046932343393564224, 0.06939097493886948, 0.13856661319732666, -0.06661977618932724, -0.5457813143730164, -0.09161986410617828, 0.10645885020494461, -0.08491065353155136, -0.11991939693689346, -0.056628815829753876, -0.19385991990566254, -0.1650538593530655, -0.1094779297709465, -0.31080111861228943, 0.1294764280319214, 0.039264529943466187, -0.1247124895453453, 0.4548829197883606, -0.3548502027988434, -0.07787789404392242, -0.2523677349090576, 0.36073094606399536, -0.17505162954330444, -0.019874846562743187, -0.06900927424430847, 0.304578572511673, 0.3067359924316406, 0.05529778078198433, -0.1740988790988922, 0.10504932701587677, -0.395231693983078, -0.0766807496547699, -0.07274423539638519, 0.06887318193912506, 0.2560727894306183, -0.04558257386088371, -0.2837682366371155, -0.39336350560188293, 0.42062267661094666, -0.01837375946342945, -0.16518838703632355, -0.6061074733734131, 0.22668583691120148, 0.055594999343156815, -0.27185094356536865, 0.03166061267256737, 0.28606048226356506, 0.04706500098109245, 0.4065898656845093, -0.03230841085314751, 0.06134762614965439, -0.0003602079232223332, -0.29306760430336, -0.15416640043258667, 0.05008551478385925, 0.23896101117134094, 0.06267496198415756, 0.1489727795124054, 0.5292369723320007, 0.18476000428199768, -0.07450783252716064, -0.3575546145439148, 0.005656855180859566, -0.5157692432403564, -0.07460083812475204, -0.014650464057922363, 0.05197523534297943, 0.4381360113620758, 0.4754742980003357, 0.13728021085262299, 0.054925739765167236, 0.1292782723903656, -0.5943349599838257, 0.05651811882853508, 0.08937176316976547, -0.1599143147468567, -0.006351682357490063, -0.2795817255973816, -0.09287702292203903, -0.25248560309410095, -0.2728760242462158, 0.11006510257720947, 0.330058217048645, -0.0536876805126667, 0.12985341250896454, 0.028091035783290863, 0.05613693594932556, 0.21141168475151062, 0.04523009806871414, -0.09331439435482025, -0.021087365224957466, 0.04840214550495148, 0.10927452147006989, 0.11353471875190735, -0.21382035315036774, -0.21780739724636078, 0.09989035129547119, -0.2642329931259155, 0.32019004225730896, -0.11372703313827515, -0.17145027220249176, -0.14608748257160187, 0.11755411326885223, -0.02235623635351658, 0.19536609947681427, -0.5066768527030945, 0.1262378990650177, 0.1293938308954239, 0.5172359347343445, -0.23423615097999573, 0.44830557703971863, 0.0020684045739471912, 0.4348352253437042, -0.244737908244133, -0.05306661128997803, 0.4661423861980438, 0.05716157332062721, -0.15673816204071045, -0.017867375165224075, 0.3398120403289795, 0.27817457914352417, 0.07953687012195587, 0.19539973139762878, -0.10078559070825577, 0.3035782277584076, -0.09313608705997467, -0.018462946638464928, 0.1331178843975067, -0.05431777983903885, -0.14237892627716064, -0.26937586069107056, -0.027488483116030693, -0.06851579248905182, -0.1467152237892151, -0.2096288651227951, -0.2694692313671112 ]
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.009546998888254166, -0.6955251097679138, -0.1016981303691864, 0.10608437657356262, 0.28879687190055847, -0.05544726923108101, 0.08338549733161926, 0.06347417831420898, -0.1392805278301239, 0.6284061074256897, -0.04679088667035103, 0.09934744238853455, -0.1830732226371765, 0.7351148724555969, 0.15613535046577454, -0.382853239774704, 0.12370902299880981, -0.21804289519786835, 0.3468194901943207, -0.1670893281698227, -0.14873963594436646, -0.04308251664042473, -0.2222316563129425, -0.14831489324569702, -0.24107706546783447, -0.21858222782611847, -0.17684756219387054, 0.18849319219589233, -0.11707471311092377, -0.06758919358253479, -0.0007685149321332574, 0.01909533701837063, 0.21828290820121765, 0.2653714418411255, -0.0001224412553710863, -0.17007526755332947, 0.0218276996165514, 0.0203416608273983, 0.05277957394719124, -0.049563102424144745, -0.2632193863391876, 0.29186466336250305, -0.11742622405290604, -0.12123335152864456, -0.40697038173675537, -0.006834928411990404, 0.06588330864906311, -0.15430901944637299, 0.03972626477479935, -0.19730433821678162, 0.05446600168943405, 0.042116496711969376, -0.019203517585992813, -0.10661493241786957, 0.32570794224739075, 0.6462307572364807, -0.05144130811095238, -0.17939099669456482, 0.09448613971471786, 0.45456165075302124, 0.31255432963371277, -0.0050220610573887825, 0.10667679458856583, 0.15817047655582428, 0.05301406607031822, 0.08908719569444656, -0.39179104566574097, -0.46168264746665955, 0.03101315349340439, 0.4272671639919281, 0.4352065324783325, 0.07329656928777695, -0.3272958993911743, -0.2401060312986374, -0.013762114569544792, -0.30036425590515137, -0.26831552386283875, 0.5809771418571472, -0.14368192851543427, -0.08454408496618271, -0.043180398643016815, -0.05145323649048805, -0.13034994900226593, 0.1159755066037178, 0.2786250114440918, 0.6345119476318359, -0.12474643439054489, 0.1643838733434677, 0.4493524432182312, -0.062266673892736435, -0.07862988114356995, -0.0007802873733453453, -0.04121643304824829, 0.23739032447338104, 0.024266935884952545, -0.24841322004795074, -0.4149947464466095, 0.7269172072410583, 0.4642120897769928, 0.14874881505966187, -0.19184434413909912, 0.0850188285112381, -0.07670358568429947, -0.08691796660423279, 0.3397686183452606, -0.3440192937850952, 0.15064291656017303, 0.3478372097015381, 0.030341992154717445, -0.07131055742502213, 0.15798582136631012, 0.024999238550662994, 0.1558549702167511, 0.12135118246078491, -0.2965347468852997, -0.2008724808692932, -0.07057362794876099, 0.010081741958856583, 0.01927691511809826, -0.5419003367424011, -0.13418275117874146, -0.363921195268631, -0.033303018659353256, 0.2046198695898056, -0.019308187067508698, -0.3753112256526947, -0.2521534562110901, 0.052992597222328186, -0.14275726675987244, -0.3852551281452179, -0.2759346663951874, 0.10756421089172363, 0.0617532804608345, 0.09679127484560013, -0.12463149428367615, -0.27756810188293457, 0.18231548368930817, 0.12783923745155334, 0.11883485317230225, -0.022149914875626564, -0.3988848924636841, 0.25359460711479187, -0.14874938130378723, 0.11611428111791611, 0.14565177261829376, -0.13536450266838074, 0.15682724118232727, 0.14402265846729279, -0.1639460176229477, -0.027622755616903305, -0.10597685724496841, -0.10072434693574905, 0.10960986465215683, -0.02289402484893799, 0.10343193262815475, 0.020629268139600754, -0.5214865803718567, 0.28180578351020813, -0.16032978892326355, 0.08189187198877335, -0.03454473242163658, 0.24683190882205963, -0.3699518144130707, -0.2161037027835846, 0.35086584091186523, 0.012297035194933414, -0.1378551870584488, -0.3832710385322571, 0.0940643772482872, 0.014768148772418499, 0.3416876494884491, 0.3521433174610138, -0.1484609693288803, -0.18123312294483185, -0.13292430341243744, 0.2817605137825012, 0.08354419469833374, 0.35241612792015076, -0.12196346372365952, 0.144170880317688, -0.03111214190721512, -0.11351191252470016, 0.18052999675273895, 0.18576446175575256, 0.12821082770824432, 0.018274560570716858, -0.09823603183031082, 0.15580014884471893, -0.4006546139717102, 0.10393758118152618, -0.15215474367141724, -0.23103010654449463, 0.16099008917808533, 0.22374211251735687, 0.04793860763311386, -0.08441658318042755, 0.25445061922073364, -0.28220826387405396, 0.4949573874473572, 0.06420302391052246, 0.10980591177940369, -0.020525971427559853, 0.11607769131660461, 0.32392486929893494, 0.05676525458693504, -0.34338250756263733, -0.10448704659938812, 0.05085771903395653, 0.021488897502422333, -0.03721227869391441, 0.17314830422401428, -0.2949847877025604, -0.07905565947294235, -0.06708770990371704, -0.007347765378654003, -0.041552361100912094, -0.115839883685112, -0.03440874442458153, 0.5063345432281494, 0.11775394529104233, -0.18358071148395538, -0.048893410712480545, -0.10261207818984985, 0.13796237111091614, -0.7429705858230591, 0.3961392641067505, 0.05988304316997528, -0.22514675557613373, 0.012345108203589916, -0.044243454933166504, 0.06402702629566193, -0.10306365042924881, 0.046967990696430206, 0.398373544216156, 0.2964779734611511, -0.08602122962474823, 0.12612418830394745, 0.13685327768325806, 0.2491815984249115, -0.20317690074443817, 0.0765051618218422, -0.20569422841072083, 0.11388476192951202, -0.08489185571670532, -0.15474534034729004, 0.3523131310939789, -0.4909174144268036, 0.06386684626340866, -0.12608589231967926, -0.10076630860567093, -0.03474603220820427, 0.1185101568698883, -0.15441864728927612, -0.017878727987408638, 0.12842190265655518, -0.22241248190402985, 0.07876741141080856, -0.07382223755121231, -0.5414640307426453, 0.11569689214229584, 0.06328769028186798, -0.373178094625473, 0.05036984011530876, 0.09075047820806503, 0.07631982862949371, 0.2655424177646637, 0.047290004789829254, 0.13054195046424866, 0.14474937319755554, 0.33528849482536316, 0.10103011876344681, -0.19442133605480194, 0.3914383351802826, -0.1287425309419632, 0.05414514243602753, 0.19078972935676575, -0.031200213357806206, -0.15423694252967834, -0.2791147232055664, -0.17434284090995789, -0.039801500737667084, 0.29938629269599915, -0.17209751904010773, 0.1142062172293663, -0.11024633795022964, -0.21329057216644287, -0.3585129678249359, -0.035897694528102875, -0.17691510915756226, -0.5306726694107056, -0.2908896505832672, -0.1259758174419403, 0.10573375225067139, 0.3068062663078308, 0.10822603106498718, 0.15519273281097412, 0.09262371063232422, 0.09656422585248947, -0.15419581532478333, 0.45549508929252625, -0.2244458943605423, 0.06990276277065277, 0.034239981323480606, 0.050551705062389374, -0.049116164445877075, 0.6051316261291504, 0.28258317708969116, -0.1961040496826172, -0.2100275754928589, -0.13353820145130157, 0.04475179687142372, 0.028057752177119255, -0.2764386534690857, 0.6539111137390137, 0.3125840127468109, 0.21148964762687683, -0.3241724371910095, -0.12671297788619995, 0.3424210846424103, -0.1622323989868164, 0.0195049699395895, -0.08339051157236099, 0.21678511798381805, -0.1330219805240631, 0.25171220302581787, -0.01212354376912117, -0.46407338976860046, -0.09539374709129333, 0.23033666610717773, -0.03901289775967598, -0.12469679862260818, -0.09435548633337021, 0.03838297724723816, -0.3634665608406067, -0.009080118499696255, -0.33869245648384094, -0.05428101867437363, -0.5055668950080872, 0.05048298463225365, -0.19021230936050415, -0.16624893248081207, 0.09197589755058289, -0.010683082044124603, -0.29682227969169617, 0.08372025191783905, 0.06976260244846344, 0.5544328689575195, -0.09501077979803085, 0.09565113484859467, -0.16175325214862823, 0.16159804165363312, 0.5859106183052063, -0.2568829357624054, 0.22664818167686462, -0.03403095901012421, -0.0718514695763588, -0.09216728806495667, -0.31897762417793274, 0.2888514995574951, 0.368716299533844, 0.34786269068717957, -0.07041589170694351, 0.7969764471054077, 0.06616630405187607, 0.21587054431438446, -0.0724329799413681, -0.026447325944900513, -0.00028517853934317827, 0.054149605333805084, -0.3065517842769623, 0.3096853494644165, 0.4177292585372925, -0.3327261805534363, 0.3756396770477295, 0.17265255749225616, 0.24352769553661346, -0.005420620087534189, -0.39246779680252075, -0.13620725274085999, -0.14769256114959717, -0.02671942301094532, 0.10893823206424713, -0.06086043268442154, -0.29266366362571716, -0.10871763527393341, -0.09691239893436432, -0.08777768164873123, -0.3429718017578125, 0.3228105902671814, 0.6068430542945862, 0.04654858261346817, -0.5338971018791199, -0.32146093249320984, -0.36458972096443176, 0.1100877895951271, 0.3704572916030884, -0.18802881240844727, -0.05318642035126686, -0.14042066037654877, 0.4958546459674835, 0.28463613986968994, 0.8806201815605164, -0.08341643959283829, -0.15121455490589142, -0.26130467653274536, -0.3685555160045624, -0.13620661199092865, 0.24583421647548676, -0.16907328367233276, -0.1273728907108307, -0.0875445082783699, 0.02949105016887188, -0.5456348061561584, -0.3812653422355652, 0.23681247234344482, 0.01628868095576763, -0.040197089314460754, -0.1685621589422226, -0.0815599113702774, 0.17583248019218445, -0.054602865129709244, 0.12318893522024155, 0.06440092623233795, 0.04456750303506851, -0.13556808233261108, 0.02182929590344429, -0.012006132863461971, -0.2656206786632538, 0.061825498938560486, -0.12802329659461975, 0.18294617533683777, 0.12339714169502258, 0.07731299102306366, 0.3261015713214874, 0.09461437910795212, 0.2468683421611786, 0.04240899160504341, -0.09067532420158386, -0.06036679446697235, -0.1720474511384964, 0.010589420795440674, 0.4419584572315216, 0.09123443067073822, 0.008301965892314911, 0.07955247908830643, -0.01387636549770832, 0.20055225491523743, -0.3427177369594574, -0.3676571846008301, 0.22332707047462463, -0.16881383955478668, -0.3760846257209778, -0.32936686277389526, 0.3520815670490265, 0.07321944087743759, -0.19386105239391327, 0.5608247518539429, 0.4099505841732025, -0.0569726824760437, 0.10359499603509903, 0.04062007740139961, 0.775285005569458, -0.010372755117714405, -0.09199679642915726, 0.1127665713429451, 0.2219063937664032, 0.2127152532339096, 0.5584778189659119, 0.21371741592884064, -0.3080771863460541, -0.49929875135421753, -0.20188766717910767, 0.15801037847995758, 0.06382787972688675, 0.1913166344165802, -0.05726918578147888, 0.1850072145462036, -0.054765280336141586, -0.10056047141551971, -0.3885398805141449, -0.19395610690116882, -0.22488003969192505, -0.0032209334895014763, -0.14300768077373505, -0.03366829454898834, -0.2274886667728424, 0.25901657342910767, 0.05892930179834366, 0.18901628255844116, -0.060945022851228714, -0.22779901325702667, -0.23390820622444153, -0.07599476724863052, -0.3006739616394043, -0.14162059128284454, 0.043192993849515915, -0.13641302287578583, 0.0026113337371498346, 0.32020673155784607, 0.2756868600845337, 0.08584535121917725, 0.01374036818742752, 0.28386908769607544, -0.09237807244062424, -0.22399172186851501, -0.28970110416412354, 0.2096972018480301, 0.01997830905020237, 0.1456446647644043, -0.4162997007369995, -0.13926126062870026, 0.06845949590206146, -0.447493314743042, -0.8403374552726746, 0.0033898968249559402, 0.1823565810918808, -0.5605267286300659, -0.16719754040241241, -0.1617659479379654, 0.25846993923187256, -0.022580618038773537, -0.011090832762420177, 0.13779371976852417, 0.05473530292510986, 0.2562353014945984, 0.19476090371608734, 0.08497274667024612, -0.26787513494491577, 0.20987580716609955, 0.08784812688827515, 0.41051390767097473, 0.1986333280801773, 0.11490986496210098, -0.16425393521785736, -0.19732122123241425, 0.5678086876869202, 0.1755658984184265, 0.0983540415763855, 0.07725328952074051, 0.07832861691713333, 0.32182812690734863, 0.14003872871398926, 0.34591251611709595, 0.09773651510477066, -0.059180039912462234, 0.10468769818544388, -0.3396759033203125, 0.09341014176607132, 0.3857943117618561, 0.12441620975732803, 0.30202803015708923, 0.17528821527957916, 0.23732808232307434, -0.25974512100219727, 0.26163962483406067, -0.14735166728496552, 0.23379920423030853, 0.2653432786464691, 0.04661988094449043, 0.170777827501297, 0.31702879071235657, 0.3241878151893616, 0.10057557374238968, 0.01665908843278885, 0.09417774528265, 0.11934864521026611, 0.006749728228896856, -0.11226289719343185, 0.1422741711139679, -0.09047114849090576, -0.02798733487725258, -0.04735064506530762, -0.05878888815641403, -0.1873570829629898, -0.09229757636785507, 0.14190717041492462, 0.3153977394104004, 0.27076539397239685, 0.08614195883274078, 1.2160905599594116, 0.0939439982175827, -0.1745883822441101, 0.3296562731266022, -0.15305538475513458, 0.2653255760669708, -0.11190875619649887, -0.05094302445650101, -0.02973712421953678, -0.11179451644420624, -0.18851681053638458, 0.03228282928466797, 0.5101655125617981, 0.01541693415492773, 0.1380632072687149, 0.07369133830070496, -0.015725264325737953, 0.08045641332864761, 0.24900612235069275, 0.005805412773042917, 0.24029357731342316, 0.2699507176876068, 0.18494971096515656, 0.06728484481573105, 0.009254887700080872, -0.20495595037937164, 0.09014663100242615, 0.2932855784893036, 0.08051397651433945, 0.5057778358459473, -0.4518730938434601, 0.2890129089355469, 0.05916927009820938, -0.07990553230047226, 0.4291379451751709, -0.18153555691242218, 0.2624649107456207, 0.21342703700065613, -0.1114843338727951, -0.3146130442619324, 0.04641152545809746, 0.09685255587100983, 0.1788671463727951, -0.0478866882622242, -0.3192079961299896, 0.41518378257751465, -0.40280553698539734, -0.0699220523238182, 0.19299033284187317, -0.19151245057582855, -0.2740604281425476, 0.4229438602924347, -0.13458210229873657, 0.10367351770401001, 0.059858426451683044, 0.5918383598327637, -0.4613356292247772, 0.03730202466249466, -0.13542689383029938, 0.4274474084377289, 0.2274971306324005, -0.07888088375329971, -0.4201168119907379, -0.25466060638427734, -0.05462300404906273, -0.07654111087322235, 0.07222341746091843, -0.1821104735136032, 0.4113157391548157, 0.0849752202630043, -0.004829031880944967, -0.23814994096755981, -0.09827388823032379, 0.11705165356397629, 0.18219584226608276, -0.096947580575943, 0.029395433142781258, -0.31423231959342957, -0.08252178132534027, 0.419038325548172, -0.01955622248351574, -0.04951463267207146, -0.2980828583240509, 0.08160055428743362, -0.19108007848262787, -0.31405872106552124, -0.17019803822040558, 0.1534588783979416, 0.24650965631008148, -0.16682569682598114, 0.11213132739067078, 0.143365740776062, 0.06453397870063782, -0.02709251269698143, -0.08337702602148056, 0.13514652848243713, 0.4787386655807495, -0.4653780460357666, 0.23779654502868652, -0.4024116098880768, 0.0649111196398735, -0.19065521657466888, -0.083527110517025, -0.2828068435192108, 0.4337543547153473, -0.7622528672218323, -0.31807252764701843, -0.13218006491661072, 0.17538362741470337, 0.017973992973566055, -0.09868112206459045, 0.22096186876296997, 0.14979217946529388, -0.40159115195274353, -0.11540487408638, -0.3428229093551636, 0.18600188195705414, -0.2979775667190552, -0.13063813745975494, -0.03826426714658737, -0.02055068500339985, -0.06264109164476395, 0.09335755556821823, -0.020548632368445396, -0.03714321181178093, 0.11727626621723175, -0.04904124140739441, 0.5686754584312439, 0.0801253691315651, -0.25030648708343506, -0.3237127661705017, 0.2560370862483978, 0.06510952115058899, 0.027907835319638252, 0.07508751004934311, 0.2733117341995239, -0.20289510488510132, -0.10348875820636749, 0.2581918239593506, -0.03247382491827011, -0.5140298008918762, -0.1780579388141632, 0.2874123454093933, 0.06112510710954666, -0.1079595759510994, -0.00913128163665533, 0.07125693559646606, -0.11192827671766281, -0.3790038228034973, 0.27717894315719604, 0.06659062951803207, 0.6011492609977722, -0.03424492105841637, -0.4451882839202881, -0.24683037400245667, 0.07837974280118942, -0.10159584879875183, 0.16808778047561646, 0.03009347803890705, 0.22694361209869385, -0.15311066806316376, 0.02793162502348423, 0.28498995304107666, 0.2729867994785309, -0.21871158480644226, 0.037007369101047516, 0.31460022926330566, -0.023903043940663338, 0.42141714692115784, -0.3195379674434662, 0.051087766885757446, -0.2341628223657608, -0.1059204712510109, 0.16149979829788208, -0.4090161621570587, 0.009146646596491337, -0.05982115492224693, 0.16225190460681915, 0.15627917647361755, 0.4829614758491516, 0.06942465901374817, 0.3323288857936859, -0.27311253547668457, 0.10714691877365112, 0.5657526254653931, 0.3125075399875641, -0.04318966343998909, 0.37012049555778503, -0.15036587417125702 ]
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 <notifications@github.com> 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 <notifications@github.com> 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.024270830675959587, -0.5800485014915466, -0.10250278562307358, 0.09017733484506607, 0.3337324857711792, -0.03135509788990021, 0.08624241501092911, 0.0778437927365303, -0.15558983385562897, 0.661540150642395, -0.03578101843595505, 0.11593512445688248, -0.14227496087551117, 0.6808799505233765, 0.13325783610343933, -0.32284826040267944, 0.0889168307185173, -0.19759392738342285, 0.2540709376335144, -0.14923560619354248, -0.08098850399255753, -0.004985736217349768, -0.18722274899482727, -0.1387483924627304, -0.2912379205226898, -0.25599950551986694, -0.17107002437114716, 0.22264879941940308, -0.14194715023040771, -0.009559464640915394, 0.07384148240089417, 0.05761841684579849, 0.20524120330810547, 0.158816859126091, -0.00011813898163381964, -0.13910458981990814, 0.025798559188842773, 0.03769410029053688, 0.017954491078853607, -0.05293514207005501, -0.2801004946231842, 0.3696421980857849, -0.17114831507205963, -0.10281556844711304, -0.4033966362476349, 0.03928425908088684, 0.11335532367229462, -0.20766586065292358, 0.014694697223603725, -0.19156299531459808, 0.09851785004138947, 0.050631333142519, 0.028484849259257317, -0.1905965507030487, 0.2813763916492462, 0.6558920741081238, -0.08947049826383591, -0.11638904362916946, 0.06313179433345795, 0.5073198676109314, 0.22693608701229095, 0.00023822493676561862, 0.1760692149400711, 0.17143197357654572, 0.03346698731184006, 0.09561626613140106, -0.3726246654987335, -0.43603092432022095, 0.05088401958346367, 0.4526309669017792, 0.4963741898536682, 0.10732440650463104, -0.31822139024734497, -0.19370225071907043, -0.0015614036237820983, -0.2984301745891571, -0.2344820201396942, 0.5080903768539429, -0.11298143118619919, -0.020773207768797874, -0.03424869105219841, 0.023994198068976402, -0.10833171010017395, 0.09608695656061172, 0.3298550248146057, 0.45527613162994385, -0.12645021080970764, 0.14009539783000946, 0.45776185393333435, -0.08610586076974869, -0.09095145761966705, 0.0599520243704319, -0.14163155853748322, 0.21373799443244934, -0.03882455825805664, -0.23716363310813904, -0.3499301075935364, 0.7325923442840576, 0.5226101279258728, 0.13432660698890686, -0.1152162030339241, 0.13859856128692627, -0.07510747015476227, -0.1247144415974617, 0.31471043825149536, -0.3212531805038452, 0.18678489327430725, 0.2914985716342926, -0.027766823768615723, -0.07674679160118103, 0.15103690326213837, 0.035016417503356934, 0.16555672883987427, 0.18508712947368622, -0.3834685683250427, -0.19948053359985352, -0.08577028661966324, -0.01480407640337944, -0.0018433602526783943, -0.584266185760498, -0.14034776389598846, -0.3088262677192688, -0.019821811467409134, 0.1910838931798935, 0.0416996031999588, -0.4040740132331848, -0.2972889542579651, -0.0018220393685624003, -0.10559316724538803, -0.4199664890766144, -0.3290484845638275, 0.10518234223127365, 0.015805231407284737, 0.11100393533706665, -0.07129823416471481, -0.30144014954566956, 0.1724165678024292, 0.11046712845563889, 0.15354342758655548, 0.0028015694115310907, -0.4736948609352112, 0.23480314016342163, -0.1354743242263794, 0.13308881223201752, 0.11706679314374924, -0.12575601041316986, 0.10663104802370071, 0.13077881932258606, -0.10339194536209106, -0.039400264620780945, -0.13143114745616913, -0.06521660834550858, 0.12417743355035782, 0.01273723877966404, 0.06953664869070053, 0.0033161432947963476, -0.4873546361923218, 0.3118910789489746, -0.20892730355262756, 0.04770475998520851, -0.07737654447555542, 0.3150750994682312, -0.34177327156066895, -0.2146976888179779, 0.36133965849876404, 0.013793857768177986, -0.2427794337272644, -0.35677820444107056, 0.029072273522615433, 0.029606636613607407, 0.3583241403102875, 0.35382896661758423, -0.13593167066574097, -0.2312391847372055, -0.16698557138442993, 0.399363249540329, 0.008052309975028038, 0.3812059462070465, -0.14863255620002747, 0.13419601321220398, -0.10414253920316696, -0.16679318249225616, 0.1973543018102646, 0.11767403781414032, 0.15747158229351044, -0.009929731488227844, -0.07796158641576767, 0.05083344131708145, -0.3968096077442169, 0.04896294325590134, -0.16580195724964142, -0.2540096044540405, 0.055411551147699356, 0.202668696641922, 0.03436616063117981, -0.09204895049333572, 0.2964073419570923, -0.21918810904026031, 0.4803551733493805, 0.04003017395734787, 0.10400181263685226, 0.04237035661935806, 0.15169674158096313, 0.24548856914043427, 0.03787102922797203, -0.2893223762512207, -0.15093477070331573, 0.07310159504413605, 0.0028923668432980776, -0.015661634504795074, 0.20783740282058716, -0.2937500476837158, -0.06101187318563461, -0.029858950525522232, 0.057158228009939194, -0.04560837522149086, -0.05139739066362381, 0.00002213838706666138, 0.48711317777633667, 0.10235901921987534, -0.12338798493146896, -0.037518590688705444, -0.16147540509700775, 0.09740760922431946, -0.7664037346839905, 0.3914417624473572, 0.03887505456805229, -0.22324733436107635, 0.07569529116153717, -0.03448919206857681, 0.06207240745425224, -0.11025187373161316, 0.05923190712928772, 0.36259400844573975, 0.2247781604528427, -0.017806943506002426, 0.142962247133255, 0.138200581073761, 0.2544495761394501, -0.1579795479774475, 0.007787922862917185, -0.29793310165405273, 0.10911598801612854, -0.05851605907082558, -0.2237074375152588, 0.3307849168777466, -0.421964555978775, 0.015234281308948994, -0.12382497638463974, -0.1087067499756813, -0.014564227312803268, 0.08680382370948792, -0.1273786574602127, -0.0657801628112793, 0.1646883338689804, -0.21678221225738525, 0.056831903755664825, -0.049625370651483536, -0.508201003074646, 0.2045111507177353, 0.11525837332010269, -0.3140590488910675, -0.027163445949554443, 0.059923410415649414, 0.08683151006698608, 0.23231260478496552, 0.057823359966278076, 0.13669615983963013, 0.1389484852552414, 0.3809364438056946, 0.13067080080509186, -0.27102380990982056, 0.3954223692417145, -0.16042719781398773, 0.06312548369169235, 0.15739430487155914, 0.04636275768280029, -0.15127679705619812, -0.23652823269367218, -0.19281357526779175, -0.1225321963429451, 0.2646411955356598, -0.08715864270925522, 0.12770713865756989, -0.09905700385570526, -0.2676282823085785, -0.42114678025245667, -0.012832997366786003, -0.1435074806213379, -0.46766236424446106, -0.25518953800201416, -0.12882362306118011, 0.11967086791992188, 0.3570859134197235, 0.0584842823445797, 0.15400582551956177, 0.11720562726259232, 0.10353071987628937, -0.19245721399784088, 0.48562541604042053, -0.3060843348503113, 0.09565168619155884, 0.01592387817800045, 0.10823298990726471, 0.005215574987232685, 0.5828422904014587, 0.2883782982826233, -0.16319242119789124, -0.21679513156414032, -0.15148942172527313, -0.03171881288290024, 0.07424471527338028, -0.2648348808288574, 0.6869401931762695, 0.2674883008003235, 0.17403745651245117, -0.3678112030029297, -0.12607595324516296, 0.2882694900035858, -0.18119560182094574, -0.025333622470498085, -0.11454128473997116, 0.1908082515001297, -0.1281624287366867, 0.2003384679555893, -0.0837971419095993, -0.37598279118537903, -0.10471512377262115, 0.25603458285331726, -0.09707793593406677, -0.14021152257919312, -0.02185378409922123, 0.03142756223678589, -0.3185783326625824, -0.04465209320187569, -0.3788212835788727, -0.138982355594635, -0.5120397210121155, 0.0317755825817585, -0.2471352517604828, -0.21915026009082794, 0.09380647540092468, -0.009916878305375576, -0.2453136146068573, 0.07941247522830963, 0.07800883799791336, 0.5433701276779175, -0.03631380572915077, 0.12346962094306946, -0.11150001734495163, 0.013857215642929077, 0.6331727504730225, -0.3010632395744324, 0.16405089199543, -0.03991358354687691, -0.12218701839447021, -0.051704227924346924, -0.2836703956127167, 0.3046170771121979, 0.32748785614967346, 0.3123355507850647, -0.045157041400671005, 0.7688193321228027, 0.03233547508716583, 0.22760319709777832, -0.05857684463262558, -0.05264526233077049, 0.018153121694922447, 0.04969269037246704, -0.2660490572452545, 0.39465653896331787, 0.3597624897956848, -0.36428359150886536, 0.3904450237751007, 0.1737828403711319, 0.18335627019405365, 0.05290831997990608, -0.3258448839187622, -0.1548328399658203, -0.17759209871292114, 0.007639960385859013, 0.12336572259664536, -0.11382538825273514, -0.19100262224674225, -0.10768166929483414, -0.08728920668363571, -0.06863313913345337, -0.34745895862579346, 0.2767558991909027, 0.6086887717247009, 0.035308901220560074, -0.5521410703659058, -0.2775803208351135, -0.4109008014202118, 0.09258294105529785, 0.3612717092037201, -0.14485220611095428, -0.13160884380340576, -0.08996842056512833, 0.4575630724430084, 0.2928393483161926, 0.9118690490722656, -0.0480397529900074, -0.07646248489618301, -0.2678028345108032, -0.33676624298095703, -0.06988058984279633, 0.2615610957145691, -0.16753819584846497, -0.16044001281261444, -0.09778201580047607, 0.008009053766727448, -0.5629234910011292, -0.3688340485095978, 0.22347521781921387, -0.04239440709352493, -0.01193997636437416, -0.1646346002817154, -0.037597887217998505, 0.13036197423934937, -0.08185641467571259, 0.1148419976234436, 0.099727101624012, 0.1194930300116539, -0.1351354420185089, -0.00929686427116394, 0.01610000990331173, -0.3069126307964325, 0.054706186056137085, -0.161573126912117, 0.19884741306304932, 0.17034776508808136, 0.09215563535690308, 0.31747227907180786, 0.08637857437133789, 0.3073699176311493, 0.0350334569811821, 0.010566264390945435, -0.035581137984991074, -0.1031765267252922, -0.0827481597661972, 0.40012919902801514, 0.11283279955387115, -0.020663859322667122, 0.05765596032142639, 0.03136490285396576, 0.17609165608882904, -0.3059203624725342, -0.3526521921157837, 0.22568504512310028, -0.20405256748199463, -0.36642882227897644, -0.2355867326259613, 0.3317004144191742, 0.11746346950531006, -0.16952960193157196, 0.569517195224762, 0.3859548568725586, -0.049919430166482925, 0.038243331015110016, 0.09243128448724747, 0.7290909290313721, 0.0294327549636364, -0.13819420337677002, 0.14641539752483368, 0.25817596912384033, 0.25351661443710327, 0.5658349990844727, 0.26633596420288086, -0.321319580078125, -0.5609060525894165, -0.18018189072608948, 0.19454346597194672, 0.07013797760009766, 0.28834930062294006, -0.029966048896312714, 0.10478449612855911, 0.08623475581407547, -0.03199157863855362, -0.309224009513855, -0.21462921798229218, -0.24653418362140656, -0.07684244215488434, -0.15477366745471954, 0.020551688969135284, -0.20519408583641052, 0.19904762506484985, 0.04733961820602417, 0.12711957097053528, -0.08263503760099411, -0.24825875461101532, -0.22052466869354248, -0.03954217955470085, -0.32709312438964844, -0.1997731328010559, 0.0493607223033905, -0.09381793439388275, -0.01733413338661194, 0.28395769000053406, 0.2538839876651764, 0.10050230473279953, -0.04612564295530319, 0.29691991209983826, -0.18704728782176971, -0.22147007286548615, -0.30227404832839966, 0.14340953528881073, 0.023875124752521515, 0.0939171090722084, -0.3886096179485321, -0.228482186794281, 0.051929034292697906, -0.4402867555618286, -0.7552895545959473, -0.034323692321777344, 0.1560230851173401, -0.49874812364578247, -0.15972867608070374, -0.17542918026447296, 0.2033156305551529, -0.05858754366636276, 0.017104612663388252, 0.10490893572568893, 0.05874492973089218, 0.1825893223285675, 0.2684275209903717, 0.14313441514968872, -0.2712363004684448, 0.2703585922718048, 0.08826740831136703, 0.44584527611732483, 0.16895510256290436, 0.14855945110321045, -0.1471712589263916, -0.2188887894153595, 0.5108019709587097, 0.18868981301784515, 0.012151012197136879, 0.05190449580550194, 0.11680818349123001, 0.2932378649711609, 0.15330100059509277, 0.3414404094219208, 0.07364948838949203, -0.06610994786024094, 0.09010157734155655, -0.38650527596473694, 0.07077894359827042, 0.41376420855522156, 0.0008949689217843115, 0.30829840898513794, 0.1829468160867691, 0.2645629942417145, -0.24610383808612823, 0.25808006525039673, -0.1961766630411148, 0.2095336765050888, 0.20557057857513428, 0.01048774179071188, 0.15571190416812897, 0.2658090591430664, 0.3691784739494324, 0.05341612547636032, 0.05387111380696297, 0.2029086798429489, 0.08688599616289139, -0.04156939685344696, -0.08165661990642548, 0.10966350883245468, -0.09309500455856323, 0.08008261024951935, -0.014889837242662907, -0.011802817694842815, -0.23030051589012146, -0.07525091618299484, 0.18976952135562897, 0.2808617055416107, 0.2509467899799347, 0.02984393946826458, 1.1711050271987915, 0.17386876046657562, -0.17178766429424286, 0.34096577763557434, -0.1159718781709671, 0.2363985776901245, -0.14392675459384918, -0.052729588001966476, -0.10908402502536774, -0.10645824670791626, -0.16608615219593048, 0.004481122829020023, 0.4357908070087433, 0.05570439249277115, 0.1303510069847107, 0.05454006418585777, -0.08734128624200821, 0.10374335944652557, 0.21036562323570251, -0.05728459358215332, 0.27559205889701843, 0.2576659023761749, 0.11252887547016144, 0.11592278629541397, 0.0014912355691194534, -0.16738396883010864, 0.09194610267877579, 0.27762332558631897, 0.09239427000284195, 0.4643506407737732, -0.4044194221496582, 0.2489086538553238, 0.1218206062912941, -0.04403667151927948, 0.41205474734306335, -0.16482943296432495, 0.24245236814022064, 0.19357040524482727, -0.16345420479774475, -0.26826685667037964, 0.11224456131458282, 0.04827945679426193, 0.1798916757106781, -0.0163143090903759, -0.3425213694572449, 0.4168279469013214, -0.41916412115097046, 0.0038342445623129606, 0.2048427164554596, -0.25091537833213806, -0.2212837189435959, 0.48510247468948364, -0.10650969296693802, 0.1006891205906868, 0.0395355150103569, 0.5624911189079285, -0.4088311195373535, 0.05379340052604675, -0.16283054649829865, 0.38419681787490845, 0.17373472452163696, -0.05783895403146744, -0.47031787037849426, -0.26018843054771423, -0.035604964941740036, -0.08077080547809601, 0.04479076713323593, -0.1512192189693451, 0.40771356225013733, 0.022788608446717262, -0.07480281591415405, -0.250210165977478, -0.15704171359539032, 0.1276269257068634, 0.12964434921741486, -0.07334057241678238, 0.06844654679298401, -0.3397678732872009, -0.09033656120300293, 0.420060396194458, -0.009048284031450748, -0.04511897638440132, -0.388708233833313, 0.20302341878414154, -0.24169331789016724, -0.29774197936058044, -0.19508367776870728, 0.14291538298130035, 0.2987179160118103, -0.1367262452840805, 0.05605870857834816, 0.16783612966537476, 0.1176629588007927, -0.05045798048377037, -0.08407340198755264, 0.15558792650699615, 0.5019219517707825, -0.4701639711856842, 0.1706540435552597, -0.36872315406799316, 0.0971888080239296, -0.1885649710893631, -0.08681027591228485, -0.21281448006629944, 0.4047727882862091, -0.7692506313323975, -0.3894670009613037, -0.11744250357151031, 0.1612357646226883, 0.04905092343688011, -0.12579046189785004, 0.24927067756652832, 0.11202054470777512, -0.4836620092391968, -0.11409571021795273, -0.33215078711509705, 0.18945425748825073, -0.23856142163276672, -0.10815242677927017, 0.05177897587418556, -0.005042366683483124, -0.04952342063188553, 0.1552313268184662, -0.047309864312410355, -0.057629168033599854, 0.07684391736984253, -0.053682439029216766, 0.5405686497688293, 0.016731953248381615, -0.2378338873386383, -0.2922285199165344, 0.20264120399951935, 0.0832480788230896, 0.02925764210522175, 0.14036107063293457, 0.3057782053947449, -0.16531197726726532, -0.1385955661535263, 0.2969423234462738, -0.059509847313165665, -0.5467324256896973, -0.1643442064523697, 0.3374175727367401, 0.013830297626554966, -0.1412118673324585, -0.047776009887456894, -0.005280798766762018, -0.11055899411439896, -0.3598603308200836, 0.25654223561286926, 0.08935828506946564, 0.6455032825469971, -0.013388595543801785, -0.4323679208755493, -0.22703832387924194, 0.05553143098950386, -0.06812715530395508, 0.2774093747138977, -0.03897899389266968, 0.30337610840797424, -0.18282844126224518, 0.03226310387253761, 0.2802877128124237, 0.25846990942955017, -0.18282026052474976, 0.02367263101041317, 0.3140506446361542, -0.09186847507953644, 0.43997058272361755, -0.29994240403175354, 0.11694594472646713, -0.2075861394405365, -0.11335168778896332, 0.17664217948913574, -0.4431571960449219, 0.0033023126889020205, -0.03139470890164375, 0.1449699103832245, 0.13140036165714264, 0.5045562982559204, 0.07957255095243454, 0.28058525919914246, -0.2539156377315521, 0.10616602748632431, 0.5807651877403259, 0.34826841950416565, -0.09091723710298538, 0.3747265338897705, -0.15336522459983826 ]
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.11650547385215759, -0.4438873827457428, 0.0426134318113327, -0.33684393763542175, -0.06028617173433304, -0.3824755549430847, 0.4176892638206482, -0.25194087624549866, -0.10315022617578506, 0.05448637902736664, 0.19692429900169373, -0.1466963142156601, 0.10971937328577042, 0.19315890967845917, 0.09836069494485855, -0.24503742158412933, 0.33701807260513306, -0.029705138877034187, 0.21839061379432678, -0.09730164706707001, -0.28827664256095886, -0.06607948243618011, -0.4690125584602356, -0.012935937382280827, -0.6201686263084412, -0.04052501171827316, -0.04617572948336601, -0.020975608378648758, -0.2024466097354889, -0.25185689330101013, 0.5749294757843018, 0.3391045331954956, 0.3738512694835663, -0.03979398310184479, -0.00011580879800021648, -0.19982264935970306, 0.5318868160247803, 0.0798770934343338, 0.3641521632671356, 0.4048221707344055, -0.4408574104309082, -0.4927155673503876, -0.09752780944108963, -0.08588679879903793, 0.16817942261695862, 0.24931120872497559, -0.16763965785503387, -0.34789732098579407, 0.18044893443584442, -0.19443196058273315, 0.13128069043159485, -0.022810161113739014, 0.013768712989985943, -0.15479573607444763, -0.00835332740098238, -0.22383460402488708, -0.13931913673877716, 0.2698025703430176, 0.3193904459476471, 0.042723286896944046, 0.19246713817119598, 0.4580572843551636, -0.22610338032245636, -0.08962160348892212, 0.159139946103096, 0.01183618325740099, -0.5829799175262451, -0.0270522627979517, 0.06131824851036072, 0.4081569015979767, 0.4068092107772827, 0.025167033076286316, -0.4480763077735901, -0.05242746323347092, -0.033293217420578, 0.11668707430362701, 0.19522978365421295, 0.32187774777412415, 0.32271867990493774, 0.16193367540836334, -0.40815454721450806, -0.02402208186686039, 0.14078868925571442, -0.41497522592544556, -0.38531002402305603, 0.30583083629608154, -0.12305272370576859, 0.2891024053096771, -0.12233584374189377, 0.07708098739385605, 0.24885211884975433, -0.0006779919494874775, -0.16619525849819183, -0.030021023005247116, -0.49516403675079346, -0.2110799252986908, -0.21712347865104675, 0.20300829410552979, -0.15957051515579224, 0.26857972145080566, 0.145361065864563, 0.05403784662485123, 0.17270873486995697, -0.07467816770076752, -0.08765630424022675, 0.189046710729599, 0.08041655272245407, -0.07152290642261505, 0.16650062799453735, -0.12435474246740341, -0.24513161182403564, 0.06171368062496185, 0.4321228563785553, -0.3441910445690155, -0.23330533504486084, -0.0550079308450222, 0.3404223620891571, -0.11668742448091507, -0.2876278758049011, 0.18181051313877106, -0.001512116752564907, -0.469473272562027, -0.03720248118042946, 0.21170136332511902, 0.07837111502885818, 0.273603618144989, -0.015857739374041557, 0.25282031297683716, -0.04674617946147919, -0.220869243144989, -0.16820687055587769, 0.027532381936907768, 0.06477159261703491, 0.21101979911327362, -0.12169750779867172, -0.45394307374954224, -0.03394310176372528, 0.4554691016674042, -0.5253102779388428, -0.13984572887420654, -0.4471263587474823, -0.17492245137691498, 0.023840896785259247, -0.14584438502788544, -0.2342795580625534, 0.16478261351585388, -0.06497414410114288, 0.09672878682613373, 0.08237190544605255, 0.08464617282152176, -0.05997072905302048, -0.08259285986423492, -0.1808081567287445, 0.08687160164117813, -0.09789366275072098, -0.27885618805885315, 0.48344042897224426, 0.2546776533126831, -0.15378621220588684, 0.08867407590150833, 0.2153271585702896, -0.0972263440489769, -0.10825516283512115, -0.21270905435085297, 0.04790231212973595, 0.12309484928846359, -0.6595552563667297, -0.018003877252340317, 0.17971482872962952, -0.07619639486074448, 0.318920373916626, 0.09765539318323135, 0.13469798862934113, -0.2406012862920761, -0.05222753435373306, 0.2427646666765213, -0.007020446006208658, 0.0770990401506424, -0.5214027166366577, 0.23092864453792572, 0.46723464131355286, 0.06275647133588791, 0.07588961720466614, 0.026850908994674683, 0.20876774191856384, -0.0016142170643433928, -0.332206130027771, -0.2706950306892395, -0.07216588407754898, -0.222654789686203, -0.286724716424942, 0.009101604111492634, 0.2818877100944519, -0.1519312560558319, 0.013629637658596039, 0.01607459783554077, 0.06333823502063751, -0.0027112835086882114, 0.23296836018562317, 0.12872633337974548, 0.01502817589789629, -0.1269882470369339, -0.06846407055854797, 0.1541462391614914, -0.04695339873433113, -0.3897002637386322, -0.3581688106060028, -0.10798138380050659, -0.2921338975429535, -0.04662690684199333, 0.2770763039588928, -0.06087075173854828, -0.059548765420913696, 0.11479344218969345, 0.2504430115222931, -0.1975950002670288, -0.014917368069291115, 0.11250380426645279, -0.02620096318423748, -0.40902283787727356, -0.41729316115379333, 0.03712381795048714, -0.20610207319259644, 0.1091817244887352, 0.23017114400863647, 0.27167221903800964, -0.0824756994843483, -0.3303683400154114, 0.15881942212581635, 0.32815903425216675, 0.19956137239933014, 0.13265569508075714, -0.271526575088501, 0.6245142221450806, -0.33465680480003357, 0.20807459950447083, -0.19885821640491486, -0.14127084612846375, 0.1792333424091339, -0.5478560328483582, 0.3255387842655182, 0.11015281081199646, 0.1726592779159546, -0.035335227847099304, -0.2805926203727722, 0.26576855778694153, 0.15343311429023743, -0.048033300787210464, -0.0009915272239595652, -0.054968059062957764, -0.04925524443387985, -0.2937418818473816, -0.05472967401146889, -0.06953194737434387, -0.05774634703993797, -0.014912161976099014, 0.27723345160484314, 0.06309409439563751, -0.5504786968231201, 0.14910924434661865, 0.7143081426620483, -0.27406835556030273, 0.04351188614964485, 0.16542935371398926, -0.3776520788669586, -0.24860404431819916, -0.139463871717453, 0.2809595763683319, 0.3068526089191437, 0.013718599453568459, 0.05690830945968628, 0.0276712067425251, -0.018871845677495003, -0.0925220474600792, 0.4488801062107086, -0.17776280641555786, -0.46825748682022095, -0.06999485939741135, -0.15013502538204193, 0.04505214840173721, 0.025218011811375618, 0.3341429531574249, -0.5453557968139648, -0.20401448011398315, 0.08252020925283432, -0.44827091693878174, -0.32981112599372864, -0.10523393750190735, -0.4454069137573242, -0.06355007737874985, -0.27899110317230225, -0.08947847783565521, -0.13123971223831177, -0.41731566190719604, -0.13895520567893982, 0.2662660777568817, -0.06603152304887772, 0.570204496383667, -0.2510119676589966, 0.7024802565574646, -0.24716593325138092, 0.03242494910955429, -0.23563016951084137, 0.04177698865532875, -0.043781667947769165, -0.15812735259532928, -0.07230688631534576, 0.12605637311935425, 0.3512498736381531, -0.16403958201408386, -0.3056471347808838, 0.026242811232805252, -0.017732739448547363, 0.12306341528892517, 0.34807825088500977, 0.1450391262769699, 0.11193225532770157, -0.12250388413667679, 0.10850253701210022, -0.5787020325660706, 0.3448265492916107, -0.22227267920970917, 0.26465991139411926, 0.07964982837438583, -0.01948377676308155, -0.26248565316200256, -0.25680774450302124, -0.12455454468727112, -0.11764323711395264, -0.3266422152519226, -0.10796557366847992, -0.16183005273342133, -0.16266249120235443, 0.021960323676466942, 0.40687277913093567, 0.12685835361480713, -0.11895287036895752, -0.36314094066619873, 0.266343891620636, 0.20022225379943848, -0.321440190076828, 0.032453715801239014, -0.23886731266975403, -0.21393556892871857, -0.21205942332744598, -0.05019763484597206, 0.30938053131103516, -0.31112679839134216, -0.41039708256721497, 0.322242796421051, 0.27006542682647705, 0.26283687353134155, -0.11621105670928955, -0.07049079984426498, -0.35374727845191956, -0.3785710036754608, -0.2535008490085602, -0.09694567322731018, 0.21459747850894928, 0.34553849697113037, -0.09148342907428741, -0.04528036341071129, 0.11817213892936707, 0.2031232714653015, 0.05223914980888367, 0.26943615078926086, 0.32561689615249634, -0.14114953577518463, 0.09115821868181229, -0.10265959799289703, 0.3240300416946411, -0.06135369464755058, 0.3414689302444458, 0.33434322476387024, 0.2504620850086212, 0.2113291621208191, 0.3287370502948761, 0.07305576652288437, -0.2365054339170456, -0.041286468505859375, -0.20084966719150543, 0.18370626866817474, 0.11386851966381073, 0.11859168112277985, 0.11399773508310318, 0.19170916080474854, 0.03203299269080162, 0.08973697572946548, 0.3430534601211548, 0.372032105922699, -0.15096963942050934, -0.5998119115829468, -0.0014673644909635186, -0.05102234333753586, 0.5443957448005676, 0.16764701902866364, 0.15147534012794495, 0.12542884051799774, -0.2022339552640915, -0.0010720487916842103, 0.07421477884054184, 0.2895820140838623, -0.2946629822254181, -0.21947135031223297, -0.28213703632354736, 0.14963310956954956, -0.13764473795890808, -0.37369048595428467, 0.07859759777784348, -0.011649249121546745, 0.30059635639190674, 0.019900690764188766, 0.16654466092586517, -0.09052080661058426, 0.3712955415248871, 0.09892033040523529, -0.2228340357542038, -0.10651613026857376, 0.12001975625753403, -0.1837923377752304, 0.23338109254837036, -0.16394421458244324, -0.33740752935409546, 0.10498949885368347, -0.14252983033657074, -0.01962892897427082, -0.4854215383529663, -0.16210702061653137, 0.1448291540145874, -0.07154388725757599, 0.4643676280975342, -0.07476451247930527, -0.13231973350048065, -0.04175494983792305, 0.31513872742652893, -0.19647181034088135, 0.3328529894351959, -0.041520848870277405, 0.12772096693515778, 0.05660155415534973, -0.14745071530342102, 0.3766089975833893, 0.07272395491600037, -0.05168095603585243, 0.09497615694999695, 0.27852556109428406, 0.06651067733764648, -0.7334272861480713, -0.11425581574440002, 0.015277469530701637, 0.36762696504592896, -0.4343622922897339, -0.4931991398334503, 0.4126252233982086, 0.2666192054748535, -0.13805438578128815, 0.07345495373010635, 0.22093291580677032, -0.049146488308906555, 0.20814046263694763, 0.05057315528392792, 0.9365339875221252, 0.19806909561157227, -0.2469339370727539, -0.10196241736412048, -0.2741842567920685, 0.3697301149368286, 0.04059556871652603, 0.04321939870715141, -0.3002444803714752, -0.4480794370174408, -0.08526980876922607, -0.1426514834165573, 0.1508604884147644, -0.00206941831856966, -0.38916444778442383, 0.2941821217536926, 0.22018402814865112, 0.14182612299919128, 0.08523070812225342, 0.032553866505622864, -0.06982611119747162, 0.21768450736999512, 0.36136162281036377, 0.0449690967798233, -0.037014804780483246, -0.055239152163267136, -0.1562981754541397, 0.1887686550617218, 0.24732118844985962, -0.3652144968509674, -0.5746686458587646, 0.025322044268250465, -0.023266073316335678, -0.25870802998542786, 0.30164679884910583, -0.32515859603881836, 0.321735143661499, 0.30930671095848083, 0.14264751970767975, -0.03707187622785568, 0.09894564002752304, 0.20273971557617188, 0.07561061531305313, 0.48271968960762024, 0.13813921809196472, 0.22854554653167725, 0.14223559200763702, 0.04024267569184303, -0.17787647247314453, -0.14074113965034485, -0.11741477996110916, -0.11117619276046753, -0.3783487379550934, 0.15051601827144623, 0.027444355189800262, -0.38265517354011536, 0.09169492870569229, 0.06963716447353363, 0.4628213942050934, -0.3492789566516876, 0.08518103510141373, -0.17075243592262268, 0.14371338486671448, 0.3847946226596832, -0.03246758505702019, -0.18171527981758118, -0.13885416090488434, 0.012783657759428024, 0.2796836197376251, 0.006539653521031141, -0.01108406763523817, 0.1339949518442154, -0.27595725655555725, -0.15333101153373718, -0.08543355762958527, -0.15199968218803406, -0.2181311398744583, 0.17884787917137146, -0.30363282561302185, -0.13109110295772552, 0.1493568867444992, 0.24211673438549042, 0.013480267487466335, 0.4598402678966522, -0.20122142136096954, -0.07954972237348557, -0.2525120973587036, -0.12916530668735504, 0.04688926786184311, 0.3807412087917328, -0.14648528397083282, 0.07731305062770844, 0.14584669470787048, 0.41784968972206116, -0.23001979291439056, 0.10930659621953964, 0.08912746608257294, -0.03819328919053078, -0.2304634004831314, 0.1413818597793579, -0.06141998991370201, -0.016003470867872238, 0.04631170257925987, 0.15187090635299683, 0.1652253121137619, -0.11437905579805374, -0.06022757291793823, 0.1549898386001587, -0.04312410578131676, -0.4361822009086609, -0.05797695741057396, 0.3159969747066498, 0.5292286276817322, -0.01795683614909649, 0.18523845076560974, 0.12827496230602264, 0.05767011642456055, 0.4169338643550873, -0.0482059009373188, 0.0880250334739685, -0.2638806700706482, 0.05226799473166466, -0.04354097321629524, 0.7487371563911438, -0.0017942473059520125, 0.19360870122909546, 0.2278984934091568, -0.031666100025177, 0.10522595047950745, 0.07799909263849258, 0.27658548951148987, 0.3018423616886139, -0.015957310795783997, 0.0317956916987896, -0.001721809385344386, -0.012168316170573235, 0.3045690059661865, 0.05129751190543175, -0.026431506499648094, -0.17512235045433044, -0.05879773572087288, 0.19524040818214417, -0.1160692349076271, 0.11368259787559509, 0.0659976378083229, -0.001576351234689355, -0.03876831755042076, 0.12218055874109268, 0.22164122760295868, -0.046220485121011734, -0.2587597668170929, -0.07789713144302368, 0.8659669756889343, -0.06548582017421722, 0.4197644591331482, 0.2804834246635437, 0.23668618500232697, 0.00508184963837266, 0.31508737802505493, -0.17646557092666626, -0.14081400632858276, -0.007937300018966198, 0.32370725274086, 0.1673199087381363, 0.2659129202365875, 0.19550864398479462, 0.1513555347919464, 0.016841841861605644, -0.00601485650986433, 0.39886873960494995, -0.43640074133872986, 0.04410325735807419, -0.04718711972236633, 0.04666788503527641, -0.08007851988077164, -0.3324151039123535, 0.08831861615180969, 0.11278313398361206, -0.00034375107497908175, -0.6063647270202637, -0.2023254781961441, -0.0830753967165947, 0.08239006251096725, 0.14363454282283783, 0.01923106051981449, 0.2930009961128235, 0.39537549018859863, -0.11282233893871307, 0.060915764421224594, 0.061829011887311935, 0.1219063252210617, -0.03338161110877991, 0.18901203572750092, -0.10182909667491913, 0.08951093256473541, 0.40697982907295227, 0.5108786225318909, 0.6194592118263245, 0.6993111968040466, 0.3045000433921814, 0.14657209813594818, -0.15288439393043518, 0.102447010576725, 0.06402534991502762, 0.1051127016544342, 0.0857810229063034, 0.015170935541391373, -0.22311696410179138, -0.04104103147983551, 0.2151513695716858, 0.14848549664020538, -0.05403175204992294, 0.47279247641563416, -0.28690141439437866, 0.021714625880122185, -0.35673022270202637, 0.1425771564245224, -0.09460911899805069, -0.02453458495438099, 0.15757523477077484, 0.12107660621404648, -0.2551405429840088, -0.1617349088191986, 0.25099465250968933, -0.205513134598732, 0.030044402927160263, -0.05692270025610924, 0.057596541941165924, 0.16094377636909485, 0.42230015993118286, 0.3717050850391388, 0.3308536112308502, 0.12628844380378723, -0.3960306644439697, 0.16806189715862274, -0.20947599411010742, 0.42196688055992126, 0.10945209860801697, -0.10221431404352188, 0.010940651409327984, -0.2573261260986328, -0.4651075601577759, 0.3291643261909485, 0.3728495240211487, -0.01817336119711399, 0.3111792802810669, -0.035310689359903336, 0.2168148308992386, 0.4290095865726471, 0.11496423929929733, -0.13678698241710663, -0.04339957609772682, -0.025573160499334335, -0.15158650279045105, -0.020764391869306564, -0.0036243395879864693, 0.014714686200022697, 0.2758744955062866, -0.2911987602710724, 0.5122094750404358, 0.3826967775821686, 0.035149428993463516, -0.28886160254478455, 0.05216917768120766, -0.22412744164466858, -0.10433223098516464, -0.29185593128204346, 0.14599810540676117, -0.15135975182056427, 0.25869864225387573, 0.07150135189294815, 0.07580149173736572, -0.0526810847222805, -0.09115717560052872, -0.17677448689937592, 0.5641878843307495, -0.35113343596458435, -0.09152863174676895, -0.09210949391126633, -0.3570479452610016, 0.23900893330574036, 0.20441116392612457, -0.04530223831534386, 0.45514294505119324, -0.17896726727485657, -0.23615744709968567, 0.09216584265232086, 0.10198457539081573, -0.04918423295021057, -0.17321763932704926, 0.036849066615104675, 0.034657254815101624, 0.4055052399635315, -0.6999348402023315, -0.32973653078079224, 0.1721244752407074, 0.1971316784620285, -0.02302013896405697, 0.012448704801499844, 0.48548540472984314, -0.20804288983345032, 0.08449505269527435, -0.2390797883272171, 0.3287641704082489, -0.08392538875341415, 0.011058596894145012, -0.19547134637832642 ]
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.23883582651615143, -0.30202096700668335, -0.14578406512737274, 0.1864612102508545, 0.4193509817123413, -0.03841852396726608, 0.10693006962537766, 0.19828622043132782, 0.05182906240224838, 0.29978302121162415, -0.055740661919116974, 0.2383321225643158, -0.17814309895038605, 0.14064034819602966, -0.014340146444737911, -0.14151540398597717, -0.3350708782672882, 0.14713707566261292, 0.3345438838005066, -0.034563519060611725, -0.3107743561267853, 0.16063274443149567, -0.06958820670843124, 0.12169699370861053, -0.23558494448661804, -0.09332277625799179, 0.236688494682312, -0.015912948176264763, -0.41248542070388794, -0.30415356159210205, 0.09906452149152756, 0.05134166404604912, -0.14960037171840668, 0.5381689667701721, -0.00009855693497229367, 0.06951489299535751, 0.2994541525840759, -0.04661032184958458, -0.03413117304444313, -0.1648349016904831, 0.08993452787399292, -0.0930587574839592, -0.0194854773581028, -0.3661293089389801, -0.36561551690101624, -0.25277990102767944, -0.3794955611228943, -0.20565329492092133, 0.1416984647512436, 0.5694255232810974, 0.34650540351867676, 0.21773144602775574, -0.05145099014043808, -0.4145723879337311, -0.03202102705836296, -0.2802484929561615, -0.2366337776184082, 0.18620605766773224, -0.33020833134651184, -0.14220136404037476, -0.02901388891041279, 0.2373676747083664, 0.09773875772953033, 0.2280803769826889, 0.46035584807395935, 0.07473291456699371, 0.46409982442855835, -0.028845148161053658, -0.06390596926212311, 0.09932813793420792, -0.03483056649565697, -0.22912898659706116, -0.13892829418182373, -0.08650481700897217, -0.04356854781508446, -0.6063226461410522, 0.0008666843641549349, 0.04129816219210625, -0.14012841880321503, 0.07085813581943512, -0.21372359991073608, 0.24481062591075897, -0.24251629412174225, 0.1692856401205063, -0.20686021447181702, 0.27597007155418396, -0.1333460956811905, -0.012931796722114086, 0.22901953756809235, 0.013792711310088634, 0.0881575345993042, -0.12530530989170074, 0.1343977302312851, -0.030086776241660118, -0.08646014332771301, -0.1028655543923378, 0.03229663521051407, -0.249929279088974, 0.07128963619470596, -0.06085936725139618, 0.15716588497161865, -0.013550546951591969, 0.09318149834871292, -0.025477334856987, -0.23976737260818481, 0.41072824597358704, -0.15839652717113495, 0.1640750616788864, 0.07188570499420166, 0.28344643115997314, -0.100168377161026, -0.07665656507015228, 0.24614015221595764, -0.24524375796318054, 0.09418434649705887, 0.16831788420677185, 0.08268352597951889, 0.054937127977609634, -0.4134443402290344, 0.12244567275047302, 0.0171105545014143, 0.06224411353468895, 0.36320409178733826, 0.1792101413011551, -0.047546353191137314, -0.057801999151706696, -0.07457753270864487, 0.18069835007190704, -0.30360671877861023, 0.13232478499412537, -0.3576909601688385, 0.18681246042251587, -0.282222181558609, 0.20944999158382416, 0.1023089587688446, 0.3251950442790985, 0.4162549078464508, -0.08296804875135422, 0.2864035665988922, -0.43593400716781616, 0.014811144210398197, -0.11648533493280411, 0.014677723869681358, -0.03769863769412041, -0.11694668978452682, -0.09069260209798813, 0.2322409600019455, -0.3248179852962494, -0.032556045800447464, -0.012775885872542858, -0.07720466703176498, -0.26128077507019043, -0.0464593730866909, 0.36552080512046814, -0.10332131385803223, 0.08837957680225372, 0.10662321001291275, 0.27831557393074036, 0.12532609701156616, 0.18914443254470825, 0.06390128284692764, 0.08773496001958847, -0.6182098984718323, -0.14975666999816895, 0.20723648369312286, -0.04061254486441612, -0.07074812799692154, 0.01597210392355919, 0.03745479881763458, 0.052967097610235214, 0.08536528050899506, 0.125797301530838, 0.0015913641545921564, 0.5011472702026367, -0.12312361598014832, 0.07151761651039124, 0.4473976194858551, -0.39015671610832214, -0.2748815417289734, -0.06951465457677841, -0.26040396094322205, -0.18268276751041412, -0.04020235314965248, 0.11342568695545197, 0.2639745771884918, -0.0010210495674982667, 0.3351180851459503, -0.033249009400606155, 0.06727787107229233, -0.08196310698986053, -0.3366433084011078, -0.05507844313979149, -0.11013754457235336, 0.012899809516966343, 0.2926904857158661, 0.11667406558990479, 0.11568046361207962, 0.059045955538749695, -0.07904835790395737, -0.06979270279407501, -0.04620329663157463, 0.2923021912574768, 0.17049427330493927, -0.13821206986904144, -0.1373235285282135, -0.3439498245716095, 0.07734604179859161, 0.10636481642723083, -0.14827744662761688, 0.10295356810092926, 0.15864336490631104, -0.16416282951831818, -0.773286759853363, -0.03398061916232109, -0.13525259494781494, -0.13568148016929626, 0.33239245414733887, -0.06626947969198227, 0.05123231187462807, -0.023342665284872055, -0.11969972401857376, -0.0865134447813034, -0.43742701411247253, -0.038774892687797546, 0.040911391377449036, 0.14444565773010254, -0.07766864448785782, -0.15234920382499695, 0.23208054900169373, 0.6334591507911682, 0.31426483392715454, 0.24310848116874695, -0.1536220908164978, 0.41819578409194946, 0.19287478923797607, -0.09666092693805695, 0.07094958424568176, 0.2647993862628937, 0.14438843727111816, -0.41763797402381897, 0.08230485767126083, 0.08358388394117355, 0.038093023002147675, -0.10411667823791504, -0.17188464105129242, 0.44966110587120056, -0.05952729657292366, -0.018856631591916084, -0.08731971681118011, -0.03776352107524872, 0.035623446106910706, -0.013333753682672977, -0.22621993720531464, -0.3605847954750061, 0.10408132523298264, -0.26491373777389526, -0.07441811263561249, -0.15127809345722198, 0.01402212306857109, -0.0469471737742424, 0.5437560677528381, 0.08594398200511932, 0.020997848361730576, -0.001873318455182016, 0.09272580593824387, -0.06723109632730484, -0.40878865122795105, -0.13900506496429443, 0.3537844121456146, 0.23741623759269714, 0.07890887558460236, 0.30560266971588135, -0.18165263533592224, -0.28991812467575073, 0.12074334919452667, 0.16821129620075226, -0.20013390481472015, 0.16401779651641846, 0.11742287129163742, -0.12010371685028076, -0.08369100838899612, 0.08532900363206863, -0.13676868379116058, 0.18603011965751648, -0.3435228765010834, -0.06316779553890228, -0.11560239642858505, 0.13283801078796387, -0.07782434672117233, -0.3552173376083374, 0.04780695587396622, -0.3057577311992645, 0.07570749521255493, 0.18287347257137299, 0.16416402161121368, 0.27444326877593994, 0.15962772071361542, 0.14974938333034515, 0.25172004103660583, -0.010264227166771889, 0.08257538825273514, -0.222039133310318, 0.013128400780260563, 0.20608660578727722, -0.1667337864637375, 0.03213298320770264, 0.37871474027633667, 0.06302060931921005, 0.21295514702796936, -0.16413868963718414, -0.3228054642677307, 0.016739048063755035, -0.08555836975574493, 0.36829158663749695, 0.21061334013938904, -0.08688757568597794, -0.1201217770576477, 0.020215477794408798, 0.4172615110874176, -0.07206828147172928, -0.0597001388669014, 0.05723007023334503, -0.1489233821630478, -0.03935003653168678, -0.15123805403709412, -0.09861482679843903, 0.10861258208751678, -0.3211776614189148, -0.18536345660686493, 0.2116488516330719, -0.016287215054035187, 0.24039269983768463, 0.17723150551319122, 0.27004432678222656, 0.38330018520355225, -0.11966891586780548, -0.41492173075675964, -0.27283161878585815, 0.3139652609825134, -0.49653974175453186, -0.1606486737728119, 0.010552197694778442, -0.20406067371368408, 0.3531622588634491, -0.06595192849636078, -0.47691887617111206, -0.4896349608898163, 0.020047705620527267, 0.20115485787391663, -0.06795711070299149, -0.13745848834514618, 0.12579379975795746, -0.13896679878234863, -0.2248544692993164, -0.2828623056411743, -0.3725358843803406, 0.0969548374414444, -0.1559913009405136, 0.07673608511686325, -0.16799771785736084, 0.2963863015174866, 0.07961904257535934, 0.5379868149757385, 0.3091508746147156, -0.09590141475200653, 0.153762087225914, -0.1665041595697403, 0.17022687196731567, -0.21961313486099243, -0.2937709391117096, 0.040027327835559845, 0.2761959135532379, -0.009206481277942657, 0.3007909655570984, 0.012519513256847858, 0.06558720022439957, -0.08216742426156998, -0.016346363350749016, -0.1726575344800949, -0.09032782167196274, -0.2720508873462677, 0.026846250519156456, 0.27560654282569885, -0.016657443717122078, 0.29431962966918945, -0.30797743797302246, -0.0173058919608593, 0.1736268401145935, 0.12400434166193008, -0.2654493749141693, -0.2161286622285843, -0.20268681645393372, 0.09797782450914383, -0.1469540297985077, 0.11269757896661758, -0.00434634555131197, 0.031983621418476105, 0.025315195322036743, 0.2781990170478821, 0.02605634368956089, 0.05839187651872635, 0.3026016354560852, -0.2847101092338562, -0.07212593406438828, 0.1879701316356659, 0.029912997037172318, -0.261220782995224, 0.020733825862407684, 0.0607772096991539, 0.2170858234167099, -0.07661868631839752, 0.7068263292312622, -0.31403836607933044, -0.20157390832901, 0.36776119470596313, -0.08668418228626251, -0.11567886918783188, -0.24555207788944244, -0.20797044038772583, -0.4916189908981323, 0.08665968477725983, 0.11188329011201859, 0.03454024717211723, 0.40622031688690186, 0.20882359147071838, -0.11823265999555588, 0.002123624552041292, -0.22551056742668152, 0.14327532052993774, -0.05095768719911575, 0.21054993569850922, 0.11230313032865524, 0.09160106629133224, 0.042800549417734146, -0.1372719556093216, -0.11029373109340668, 0.08961261063814163, -0.06227193772792816, -0.25469425320625305, -0.009431968443095684, -0.17433865368366241, 0.13789452612400055, 0.143188938498497, -0.1240520104765892, -0.00867784395813942, -0.008558538742363453, 0.3078181743621826, -0.1836652308702469, 0.23942354321479797, 0.2416369467973709, -0.0930785983800888, -0.045649029314517975, -0.3316991627216339, 0.4245659410953522, 0.0737658441066742, 0.02029014378786087, 0.3158130645751953, -0.029164664447307587, -0.22234418988227844, -0.022650564089417458, 0.19943241775035858, 0.6062900424003601, 0.16033044457435608, -0.3175842761993408, 0.5252519845962524, -0.1469670981168747, 0.08878826349973679, -0.27536264061927795, 0.0864621102809906, -0.21389997005462646, -0.10809554159641266, 0.010371523909270763, -0.02060556784272194, -0.0015154210850596428, -0.0870497077703476, -0.04052649810910225, 0.1582222431898117, 0.006419030949473381, 0.12797807157039642, 0.012380198575556278, 0.1309281587600708, 0.2566305994987488, -0.22430993616580963, -0.25649550557136536, 0.30847403407096863, -0.15857946872711182, -0.05297592282295227, -0.032853469252586365, -0.07897622138261795, -0.1387607306241989, -0.10881725698709488, 0.06636183708906174, -0.25996750593185425, -0.33530890941619873, -0.05548425018787384, 0.004833009093999863, -0.25212031602859497, 0.003799601923674345, 0.0339764729142189, 0.6332522630691528, 0.17638371884822845, -0.19337575137615204, 0.14618048071861267, -0.21488121151924133, 0.021160049363970757, -0.15438589453697205, 0.035421401262283325, -0.028258850798010826, -0.16563549637794495, -0.1136280968785286, 0.08321162313222885, 0.1465192586183548, -0.104013592004776, -0.05239081382751465, -0.2039104402065277, 0.059229835867881775, -0.23867441713809967, 0.038863927125930786, -0.1454927921295166, -0.03328048437833786, -0.2638089060783386, 0.29388532042503357, -0.13834266364574432, -0.15215080976486206, 0.19054730236530304, 0.16268710792064667, -0.3084416687488556, -0.026202678680419922, 0.06292297691106796, 0.05598347261548042, 0.07396161556243896, 0.1647738218307495, -0.15616028010845184, -0.15341754257678986, -0.32111215591430664, -0.051261287182569504, -0.15141519904136658, 0.014503146521747112, 0.3607534170150757, 0.0004536696069408208, -0.016628535464406013, 0.23184427618980408, 0.4143946170806885, 0.19991746544837952, 0.22558030486106873, 0.13163580000400543, -0.13004787266254425, -0.3161062002182007, -0.1467147320508957, -0.08926702290773392, 0.24830563366413116, -0.26683783531188965, 0.653588056564331, -0.11026028543710709, -0.025816628709435463, -0.5168285965919495, 0.021098578348755836, -0.32191258668899536, 0.0016519364435225725, -0.08778028935194016, -0.23574140667915344, -0.025789950042963028, 0.21999207139015198, 0.2234496921300888, 0.20002499222755432, -0.41370734572410583, -0.3525778353214264, -0.22975407540798187, 0.04748011752963066, 0.05192122980952263, -0.05441388487815857, 0.020512675866484642, 0.11324883252382278, -0.41505977511405945, -0.08948787301778793, -0.10216869413852692, 0.32011085748672485, 0.1548328995704651, 0.15410029888153076, -0.2030617892742157, 0.330471009016037, 0.194476917386055, -0.22780482470989227, 0.13550852239131927, 0.39451074600219727, 0.05600917339324951, -0.059425875544548035, -0.05356462672352791, -0.02577062137424946, -0.06788939982652664, -0.02506120316684246, 0.11764737218618393, 0.09666800498962402, 0.23620346188545227, -0.08588197827339172, -0.10942433029413223, 0.3337861895561218, 0.23334915935993195, -0.01745145209133625, -0.2696904242038727, -0.18541571497917175, -0.09128904342651367, 0.38085150718688965, -0.16177785396575928, 0.11386974900960922, 0.11466722935438156, 0.0822911337018013, 0.45968949794769287, 0.371005117893219, 0.16962596774101257, -0.03288159519433975, -0.12560223042964935, 0.06068652123212814, 0.31493493914604187, -0.2551383376121521, -0.031055185943841934, 0.0309933889657259, 0.08489280194044113, 0.011314913630485535, 0.4787461459636688, 0.11046543717384338, 0.18770994246006012, 0.46509045362472534, -0.02484666369855404, 0.2866053879261017, 0.11356057971715927, 0.025637393817305565, -0.1688525229692459, 0.24639885127544403, -0.10974648594856262, 0.14166370034217834, -0.04370419308543205, -0.16014140844345093, -0.21726974844932556, -0.05533982440829277, -0.1343202143907547, 0.147478386759758, -0.16341033577919006, -0.003555036848410964, -0.030031301081180573, -0.08438554406166077, -0.4169696867465973, -0.19881319999694824, -0.08742323517799377, -0.17859792709350586, 0.13603001832962036, 0.22873669862747192, 0.0039018618408590555, -0.299652636051178, 0.024534013122320175, 0.10270392894744873, 0.05216066911816597, 0.24227268993854523, 0.2836425006389618, -0.25553038716316223, 0.20373861491680145, 0.25079479813575745, 0.3229714632034302, -0.08332803100347519, 0.31954219937324524, 0.10420802980661392, 0.17333732545375824, -0.3330543637275696, -0.26132932305336, 0.029952971264719963, -0.2656732201576233, 0.02196047082543373, 0.1441769301891327, 0.3015914559364319, -0.15412384271621704, 0.40297752618789673, 0.28827449679374695, -0.4048210382461548, 0.29843810200691223, 0.1974194496870041, -0.013380282558500767, -0.4324813485145569, 0.3722928464412689, -0.004262660164386034, -0.0333426296710968, -0.01842878945171833, -0.05647404119372368, -0.14634943008422852, -0.09184427559375763, 0.188768669962883, 0.02473353035748005, 0.34456196427345276, -0.11978974938392639, 0.16970743238925934, -0.08211875706911087, 0.34263694286346436, -0.03985481336712837, 0.0763789713382721, -0.4161767065525055, -0.13557219505310059, -0.4027673602104187, 0.16092514991760254, -0.00989911425858736, 0.11584638804197311, 0.034113530069589615, 0.2473648637533188, -0.24587245285511017, 0.2662314772605896, 0.13092535734176636, 0.043718960136175156, -0.03596094623208046, 0.08300519734621048, -0.34445154666900635, 0.04566336050629616, -0.24243862926959991, -0.113956980407238, 0.24534878134727478, -0.13676074147224426, -0.17526841163635254, -0.1287553906440735, 0.2528264820575714, -0.1321386694908142, 0.16158923506736755, 0.12474891543388367, 0.4439769983291626, 0.2961936593055725, 0.06820573657751083, 0.17735673487186432, -0.10893550515174866, 0.10173310339450836, -0.09917709231376648, 0.031704213470220566, -0.05732395127415657, 0.2549753785133362, 0.11167611181735992, 0.35846832394599915, -0.019524162635207176, -0.18641327321529388, -0.22273392975330353, 0.2448716163635254, 0.32980018854141235, -0.2393915355205536, -0.03452654555439949, 0.2742844820022583, -0.1462460458278656, -0.10390754789113998, 0.04260461777448654, 0.2757705748081207, 0.04537944495677948, 0.47976064682006836, -0.10387071967124939, -0.44498902559280396, 0.5055987238883972, 0.0036411588080227375, -0.37418514490127563, 0.20254123210906982, 0.315913587808609, 0.33651190996170044, -0.12872706353664398, -0.4725494086742401, 0.12506216764450073, 0.493655800819397, -0.1135324016213417, -0.09477460384368896, 0.28265464305877686, -0.25214749574661255, 0.02807689644396305, 0.19828122854232788, -0.1538529098033905, 0.027901144698262215, -0.07740592211484909, 0.09540288895368576, -0.06942862272262573 ]
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.23883582651615143, -0.30202096700668335, -0.14578406512737274, 0.1864612102508545, 0.4193509817123413, -0.03841852396726608, 0.10693006962537766, 0.19828622043132782, 0.05182906240224838, 0.29978302121162415, -0.055740661919116974, 0.2383321225643158, -0.17814309895038605, 0.14064034819602966, -0.014340146444737911, -0.14151540398597717, -0.3350708782672882, 0.14713707566261292, 0.3345438838005066, -0.034563519060611725, -0.3107743561267853, 0.16063274443149567, -0.06958820670843124, 0.12169699370861053, -0.23558494448661804, -0.09332277625799179, 0.236688494682312, -0.015912948176264763, -0.41248542070388794, -0.30415356159210205, 0.09906452149152756, 0.05134166404604912, -0.14960037171840668, 0.5381689667701721, -0.00009855693497229367, 0.06951489299535751, 0.2994541525840759, -0.04661032184958458, -0.03413117304444313, -0.1648349016904831, 0.08993452787399292, -0.0930587574839592, -0.0194854773581028, -0.3661293089389801, -0.36561551690101624, -0.25277990102767944, -0.3794955611228943, -0.20565329492092133, 0.1416984647512436, 0.5694255232810974, 0.34650540351867676, 0.21773144602775574, -0.05145099014043808, -0.4145723879337311, -0.03202102705836296, -0.2802484929561615, -0.2366337776184082, 0.18620605766773224, -0.33020833134651184, -0.14220136404037476, -0.02901388891041279, 0.2373676747083664, 0.09773875772953033, 0.2280803769826889, 0.46035584807395935, 0.07473291456699371, 0.46409982442855835, -0.028845148161053658, -0.06390596926212311, 0.09932813793420792, -0.03483056649565697, -0.22912898659706116, -0.13892829418182373, -0.08650481700897217, -0.04356854781508446, -0.6063226461410522, 0.0008666843641549349, 0.04129816219210625, -0.14012841880321503, 0.07085813581943512, -0.21372359991073608, 0.24481062591075897, -0.24251629412174225, 0.1692856401205063, -0.20686021447181702, 0.27597007155418396, -0.1333460956811905, -0.012931796722114086, 0.22901953756809235, 0.013792711310088634, 0.0881575345993042, -0.12530530989170074, 0.1343977302312851, -0.030086776241660118, -0.08646014332771301, -0.1028655543923378, 0.03229663521051407, -0.249929279088974, 0.07128963619470596, -0.06085936725139618, 0.15716588497161865, -0.013550546951591969, 0.09318149834871292, -0.025477334856987, -0.23976737260818481, 0.41072824597358704, -0.15839652717113495, 0.1640750616788864, 0.07188570499420166, 0.28344643115997314, -0.100168377161026, -0.07665656507015228, 0.24614015221595764, -0.24524375796318054, 0.09418434649705887, 0.16831788420677185, 0.08268352597951889, 0.054937127977609634, -0.4134443402290344, 0.12244567275047302, 0.0171105545014143, 0.06224411353468895, 0.36320409178733826, 0.1792101413011551, -0.047546353191137314, -0.057801999151706696, -0.07457753270864487, 0.18069835007190704, -0.30360671877861023, 0.13232478499412537, -0.3576909601688385, 0.18681246042251587, -0.282222181558609, 0.20944999158382416, 0.1023089587688446, 0.3251950442790985, 0.4162549078464508, -0.08296804875135422, 0.2864035665988922, -0.43593400716781616, 0.014811144210398197, -0.11648533493280411, 0.014677723869681358, -0.03769863769412041, -0.11694668978452682, -0.09069260209798813, 0.2322409600019455, -0.3248179852962494, -0.032556045800447464, -0.012775885872542858, -0.07720466703176498, -0.26128077507019043, -0.0464593730866909, 0.36552080512046814, -0.10332131385803223, 0.08837957680225372, 0.10662321001291275, 0.27831557393074036, 0.12532609701156616, 0.18914443254470825, 0.06390128284692764, 0.08773496001958847, -0.6182098984718323, -0.14975666999816895, 0.20723648369312286, -0.04061254486441612, -0.07074812799692154, 0.01597210392355919, 0.03745479881763458, 0.052967097610235214, 0.08536528050899506, 0.125797301530838, 0.0015913641545921564, 0.5011472702026367, -0.12312361598014832, 0.07151761651039124, 0.4473976194858551, -0.39015671610832214, -0.2748815417289734, -0.06951465457677841, -0.26040396094322205, -0.18268276751041412, -0.04020235314965248, 0.11342568695545197, 0.2639745771884918, -0.0010210495674982667, 0.3351180851459503, -0.033249009400606155, 0.06727787107229233, -0.08196310698986053, -0.3366433084011078, -0.05507844313979149, -0.11013754457235336, 0.012899809516966343, 0.2926904857158661, 0.11667406558990479, 0.11568046361207962, 0.059045955538749695, -0.07904835790395737, -0.06979270279407501, -0.04620329663157463, 0.2923021912574768, 0.17049427330493927, -0.13821206986904144, -0.1373235285282135, -0.3439498245716095, 0.07734604179859161, 0.10636481642723083, -0.14827744662761688, 0.10295356810092926, 0.15864336490631104, -0.16416282951831818, -0.773286759853363, -0.03398061916232109, -0.13525259494781494, -0.13568148016929626, 0.33239245414733887, -0.06626947969198227, 0.05123231187462807, -0.023342665284872055, -0.11969972401857376, -0.0865134447813034, -0.43742701411247253, -0.038774892687797546, 0.040911391377449036, 0.14444565773010254, -0.07766864448785782, -0.15234920382499695, 0.23208054900169373, 0.6334591507911682, 0.31426483392715454, 0.24310848116874695, -0.1536220908164978, 0.41819578409194946, 0.19287478923797607, -0.09666092693805695, 0.07094958424568176, 0.2647993862628937, 0.14438843727111816, -0.41763797402381897, 0.08230485767126083, 0.08358388394117355, 0.038093023002147675, -0.10411667823791504, -0.17188464105129242, 0.44966110587120056, -0.05952729657292366, -0.018856631591916084, -0.08731971681118011, -0.03776352107524872, 0.035623446106910706, -0.013333753682672977, -0.22621993720531464, -0.3605847954750061, 0.10408132523298264, -0.26491373777389526, -0.07441811263561249, -0.15127809345722198, 0.01402212306857109, -0.0469471737742424, 0.5437560677528381, 0.08594398200511932, 0.020997848361730576, -0.001873318455182016, 0.09272580593824387, -0.06723109632730484, -0.40878865122795105, -0.13900506496429443, 0.3537844121456146, 0.23741623759269714, 0.07890887558460236, 0.30560266971588135, -0.18165263533592224, -0.28991812467575073, 0.12074334919452667, 0.16821129620075226, -0.20013390481472015, 0.16401779651641846, 0.11742287129163742, -0.12010371685028076, -0.08369100838899612, 0.08532900363206863, -0.13676868379116058, 0.18603011965751648, -0.3435228765010834, -0.06316779553890228, -0.11560239642858505, 0.13283801078796387, -0.07782434672117233, -0.3552173376083374, 0.04780695587396622, -0.3057577311992645, 0.07570749521255493, 0.18287347257137299, 0.16416402161121368, 0.27444326877593994, 0.15962772071361542, 0.14974938333034515, 0.25172004103660583, -0.010264227166771889, 0.08257538825273514, -0.222039133310318, 0.013128400780260563, 0.20608660578727722, -0.1667337864637375, 0.03213298320770264, 0.37871474027633667, 0.06302060931921005, 0.21295514702796936, -0.16413868963718414, -0.3228054642677307, 0.016739048063755035, -0.08555836975574493, 0.36829158663749695, 0.21061334013938904, -0.08688757568597794, -0.1201217770576477, 0.020215477794408798, 0.4172615110874176, -0.07206828147172928, -0.0597001388669014, 0.05723007023334503, -0.1489233821630478, -0.03935003653168678, -0.15123805403709412, -0.09861482679843903, 0.10861258208751678, -0.3211776614189148, -0.18536345660686493, 0.2116488516330719, -0.016287215054035187, 0.24039269983768463, 0.17723150551319122, 0.27004432678222656, 0.38330018520355225, -0.11966891586780548, -0.41492173075675964, -0.27283161878585815, 0.3139652609825134, -0.49653974175453186, -0.1606486737728119, 0.010552197694778442, -0.20406067371368408, 0.3531622588634491, -0.06595192849636078, -0.47691887617111206, -0.4896349608898163, 0.020047705620527267, 0.20115485787391663, -0.06795711070299149, -0.13745848834514618, 0.12579379975795746, -0.13896679878234863, -0.2248544692993164, -0.2828623056411743, -0.3725358843803406, 0.0969548374414444, -0.1559913009405136, 0.07673608511686325, -0.16799771785736084, 0.2963863015174866, 0.07961904257535934, 0.5379868149757385, 0.3091508746147156, -0.09590141475200653, 0.153762087225914, -0.1665041595697403, 0.17022687196731567, -0.21961313486099243, -0.2937709391117096, 0.040027327835559845, 0.2761959135532379, -0.009206481277942657, 0.3007909655570984, 0.012519513256847858, 0.06558720022439957, -0.08216742426156998, -0.016346363350749016, -0.1726575344800949, -0.09032782167196274, -0.2720508873462677, 0.026846250519156456, 0.27560654282569885, -0.016657443717122078, 0.29431962966918945, -0.30797743797302246, -0.0173058919608593, 0.1736268401145935, 0.12400434166193008, -0.2654493749141693, -0.2161286622285843, -0.20268681645393372, 0.09797782450914383, -0.1469540297985077, 0.11269757896661758, -0.00434634555131197, 0.031983621418476105, 0.025315195322036743, 0.2781990170478821, 0.02605634368956089, 0.05839187651872635, 0.3026016354560852, -0.2847101092338562, -0.07212593406438828, 0.1879701316356659, 0.029912997037172318, -0.261220782995224, 0.020733825862407684, 0.0607772096991539, 0.2170858234167099, -0.07661868631839752, 0.7068263292312622, -0.31403836607933044, -0.20157390832901, 0.36776119470596313, -0.08668418228626251, -0.11567886918783188, -0.24555207788944244, -0.20797044038772583, -0.4916189908981323, 0.08665968477725983, 0.11188329011201859, 0.03454024717211723, 0.40622031688690186, 0.20882359147071838, -0.11823265999555588, 0.002123624552041292, -0.22551056742668152, 0.14327532052993774, -0.05095768719911575, 0.21054993569850922, 0.11230313032865524, 0.09160106629133224, 0.042800549417734146, -0.1372719556093216, -0.11029373109340668, 0.08961261063814163, -0.06227193772792816, -0.25469425320625305, -0.009431968443095684, -0.17433865368366241, 0.13789452612400055, 0.143188938498497, -0.1240520104765892, -0.00867784395813942, -0.008558538742363453, 0.3078181743621826, -0.1836652308702469, 0.23942354321479797, 0.2416369467973709, -0.0930785983800888, -0.045649029314517975, -0.3316991627216339, 0.4245659410953522, 0.0737658441066742, 0.02029014378786087, 0.3158130645751953, -0.029164664447307587, -0.22234418988227844, -0.022650564089417458, 0.19943241775035858, 0.6062900424003601, 0.16033044457435608, -0.3175842761993408, 0.5252519845962524, -0.1469670981168747, 0.08878826349973679, -0.27536264061927795, 0.0864621102809906, -0.21389997005462646, -0.10809554159641266, 0.010371523909270763, -0.02060556784272194, -0.0015154210850596428, -0.0870497077703476, -0.04052649810910225, 0.1582222431898117, 0.006419030949473381, 0.12797807157039642, 0.012380198575556278, 0.1309281587600708, 0.2566305994987488, -0.22430993616580963, -0.25649550557136536, 0.30847403407096863, -0.15857946872711182, -0.05297592282295227, -0.032853469252586365, -0.07897622138261795, -0.1387607306241989, -0.10881725698709488, 0.06636183708906174, -0.25996750593185425, -0.33530890941619873, -0.05548425018787384, 0.004833009093999863, -0.25212031602859497, 0.003799601923674345, 0.0339764729142189, 0.6332522630691528, 0.17638371884822845, -0.19337575137615204, 0.14618048071861267, -0.21488121151924133, 0.021160049363970757, -0.15438589453697205, 0.035421401262283325, -0.028258850798010826, -0.16563549637794495, -0.1136280968785286, 0.08321162313222885, 0.1465192586183548, -0.104013592004776, -0.05239081382751465, -0.2039104402065277, 0.059229835867881775, -0.23867441713809967, 0.038863927125930786, -0.1454927921295166, -0.03328048437833786, -0.2638089060783386, 0.29388532042503357, -0.13834266364574432, -0.15215080976486206, 0.19054730236530304, 0.16268710792064667, -0.3084416687488556, -0.026202678680419922, 0.06292297691106796, 0.05598347261548042, 0.07396161556243896, 0.1647738218307495, -0.15616028010845184, -0.15341754257678986, -0.32111215591430664, -0.051261287182569504, -0.15141519904136658, 0.014503146521747112, 0.3607534170150757, 0.0004536696069408208, -0.016628535464406013, 0.23184427618980408, 0.4143946170806885, 0.19991746544837952, 0.22558030486106873, 0.13163580000400543, -0.13004787266254425, -0.3161062002182007, -0.1467147320508957, -0.08926702290773392, 0.24830563366413116, -0.26683783531188965, 0.653588056564331, -0.11026028543710709, -0.025816628709435463, -0.5168285965919495, 0.021098578348755836, -0.32191258668899536, 0.0016519364435225725, -0.08778028935194016, -0.23574140667915344, -0.025789950042963028, 0.21999207139015198, 0.2234496921300888, 0.20002499222755432, -0.41370734572410583, -0.3525778353214264, -0.22975407540798187, 0.04748011752963066, 0.05192122980952263, -0.05441388487815857, 0.020512675866484642, 0.11324883252382278, -0.41505977511405945, -0.08948787301778793, -0.10216869413852692, 0.32011085748672485, 0.1548328995704651, 0.15410029888153076, -0.2030617892742157, 0.330471009016037, 0.194476917386055, -0.22780482470989227, 0.13550852239131927, 0.39451074600219727, 0.05600917339324951, -0.059425875544548035, -0.05356462672352791, -0.02577062137424946, -0.06788939982652664, -0.02506120316684246, 0.11764737218618393, 0.09666800498962402, 0.23620346188545227, -0.08588197827339172, -0.10942433029413223, 0.3337861895561218, 0.23334915935993195, -0.01745145209133625, -0.2696904242038727, -0.18541571497917175, -0.09128904342651367, 0.38085150718688965, -0.16177785396575928, 0.11386974900960922, 0.11466722935438156, 0.0822911337018013, 0.45968949794769287, 0.371005117893219, 0.16962596774101257, -0.03288159519433975, -0.12560223042964935, 0.06068652123212814, 0.31493493914604187, -0.2551383376121521, -0.031055185943841934, 0.0309933889657259, 0.08489280194044113, 0.011314913630485535, 0.4787461459636688, 0.11046543717384338, 0.18770994246006012, 0.46509045362472534, -0.02484666369855404, 0.2866053879261017, 0.11356057971715927, 0.025637393817305565, -0.1688525229692459, 0.24639885127544403, -0.10974648594856262, 0.14166370034217834, -0.04370419308543205, -0.16014140844345093, -0.21726974844932556, -0.05533982440829277, -0.1343202143907547, 0.147478386759758, -0.16341033577919006, -0.003555036848410964, -0.030031301081180573, -0.08438554406166077, -0.4169696867465973, -0.19881319999694824, -0.08742323517799377, -0.17859792709350586, 0.13603001832962036, 0.22873669862747192, 0.0039018618408590555, -0.299652636051178, 0.024534013122320175, 0.10270392894744873, 0.05216066911816597, 0.24227268993854523, 0.2836425006389618, -0.25553038716316223, 0.20373861491680145, 0.25079479813575745, 0.3229714632034302, -0.08332803100347519, 0.31954219937324524, 0.10420802980661392, 0.17333732545375824, -0.3330543637275696, -0.26132932305336, 0.029952971264719963, -0.2656732201576233, 0.02196047082543373, 0.1441769301891327, 0.3015914559364319, -0.15412384271621704, 0.40297752618789673, 0.28827449679374695, -0.4048210382461548, 0.29843810200691223, 0.1974194496870041, -0.013380282558500767, -0.4324813485145569, 0.3722928464412689, -0.004262660164386034, -0.0333426296710968, -0.01842878945171833, -0.05647404119372368, -0.14634943008422852, -0.09184427559375763, 0.188768669962883, 0.02473353035748005, 0.34456196427345276, -0.11978974938392639, 0.16970743238925934, -0.08211875706911087, 0.34263694286346436, -0.03985481336712837, 0.0763789713382721, -0.4161767065525055, -0.13557219505310059, -0.4027673602104187, 0.16092514991760254, -0.00989911425858736, 0.11584638804197311, 0.034113530069589615, 0.2473648637533188, -0.24587245285511017, 0.2662314772605896, 0.13092535734176636, 0.043718960136175156, -0.03596094623208046, 0.08300519734621048, -0.34445154666900635, 0.04566336050629616, -0.24243862926959991, -0.113956980407238, 0.24534878134727478, -0.13676074147224426, -0.17526841163635254, -0.1287553906440735, 0.2528264820575714, -0.1321386694908142, 0.16158923506736755, 0.12474891543388367, 0.4439769983291626, 0.2961936593055725, 0.06820573657751083, 0.17735673487186432, -0.10893550515174866, 0.10173310339450836, -0.09917709231376648, 0.031704213470220566, -0.05732395127415657, 0.2549753785133362, 0.11167611181735992, 0.35846832394599915, -0.019524162635207176, -0.18641327321529388, -0.22273392975330353, 0.2448716163635254, 0.32980018854141235, -0.2393915355205536, -0.03452654555439949, 0.2742844820022583, -0.1462460458278656, -0.10390754789113998, 0.04260461777448654, 0.2757705748081207, 0.04537944495677948, 0.47976064682006836, -0.10387071967124939, -0.44498902559280396, 0.5055987238883972, 0.0036411588080227375, -0.37418514490127563, 0.20254123210906982, 0.315913587808609, 0.33651190996170044, -0.12872706353664398, -0.4725494086742401, 0.12506216764450073, 0.493655800819397, -0.1135324016213417, -0.09477460384368896, 0.28265464305877686, -0.25214749574661255, 0.02807689644396305, 0.19828122854232788, -0.1538529098033905, 0.027901144698262215, -0.07740592211484909, 0.09540288895368576, -0.06942862272262573 ]
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.055291540920734406, 0.011868702247738838, -0.042774051427841187, 0.29938605427742004, 0.3010598123073578, -0.2684806287288666, 0.2035403698682785, 0.08158136159181595, 0.11228996515274048, 0.12633681297302246, 0.06428904086351395, -0.06481540203094482, 0.26324379444122314, 0.19455578923225403, 0.20058375597000122, -0.012912669219076633, -0.11071061342954636, -0.0857953205704689, -0.37909388542175293, 0.06953778862953186, -0.2274179756641388, 0.1339353322982788, -0.256957083940506, 0.15409336984157562, -0.2331767976284027, -0.018227029591798782, -0.24089406430721283, 0.14167551696300507, -0.1169196143746376, -0.31146982312202454, 0.24588613212108612, 0.27225327491760254, 0.01576956920325756, 0.2451801300048828, -0.0001094537801691331, -0.08543212711811066, 0.4476228952407837, 0.05186529830098152, -0.08572398126125336, -0.09633295238018036, -0.41443029046058655, -0.15834785997867584, 0.12988394498825073, -0.20394624769687653, -0.17282064259052277, 0.4333640933036804, 0.14084883034229279, -0.32253143191337585, 0.18614347279071808, 0.1474582999944687, 0.22558249533176422, 0.3084518015384674, 0.23736558854579926, 0.037910450249910355, 0.3510051369667053, -0.2436029613018036, 0.1521848887205124, 0.45938554406166077, 0.32645857334136963, -0.17348246276378632, 0.11336076259613037, 0.10722099244594574, 0.13780204951763153, -0.0038305027410387993, -0.07072757929563522, 0.09609987586736679, -0.22171936929225922, -0.33291518688201904, 0.07002522051334381, 0.3006029725074768, 0.3522768020629883, -0.14569473266601562, -0.28705647587776184, 0.06235933303833008, -0.1634308099746704, 0.36140045523643494, 0.3465099334716797, 0.2372860610485077, 0.0861450657248497, 0.28204208612442017, -0.17816075682640076, -0.23609215021133423, -0.25361374020576477, 0.29707545042037964, 0.05053899809718132, -0.0471997894346714, -0.2656106650829315, 0.2072950154542923, -0.006123581901192665, -0.2143401801586151, -0.07645915448665619, -0.14810708165168762, -0.037476129829883575, 0.1016431525349617, -0.18903256952762604, -0.12317011505365372, -0.1298283487558365, 0.5392323732376099, 0.37875133752822876, 0.044204577803611755, 0.027442822232842445, 0.03632160276174545, -0.13519245386123657, 0.2267664521932602, 0.45347559452056885, -0.12656337022781372, 0.1274651288986206, -0.07498552650213242, 0.5586509108543396, 0.13273058831691742, -0.16170568764209747, -0.23156344890594482, 0.07218118757009506, -0.2383846789598465, -0.19695961475372314, -0.18526364862918854, 0.4247690439224243, -0.3179551064968109, -0.01804628223180771, -0.020721817389130592, -0.23009470105171204, 0.02160830982029438, 0.08703699707984924, 0.3594592213630676, -0.32937413454055786, 0.03288255259394646, -0.007936852984130383, -0.11254957318305969, -0.16148486733436584, -0.1475437879562378, -0.17004260420799255, 0.038752153515815735, -0.23266340792179108, 0.07955943048000336, 0.02920037880539894, -0.2172812521457672, 0.08851812034845352, 0.07191973924636841, -0.16321513056755066, -0.08566222339868546, 0.01725735142827034, -0.1295018345117569, 0.13281233608722687, 0.17236189544200897, 0.1386321485042572, 0.21625255048274994, -0.11344477534294128, -0.309835284948349, -0.0390172004699707, -0.10241716355085373, -0.33649688959121704, -0.07334920763969421, -0.014145907945930958, 0.16981863975524902, -0.44614216685295105, 0.061476435512304306, -0.050491269677877426, -0.1832023710012436, -0.3620132803916931, 0.05070026218891144, 0.06762585043907166, 0.036198001354932785, 0.07717074453830719, -0.47203660011291504, 0.3285970091819763, 0.4581771492958069, -0.20453566312789917, 0.02998884953558445, 0.20473775267601013, -0.28998082876205444, -0.16105231642723083, 0.24461789429187775, -0.027542339637875557, -0.2317216545343399, -0.3104974031448364, 0.3071650266647339, 0.20974744856357574, -0.453799843788147, -0.542052686214447, 0.5876681804656982, -0.17910164594650269, -0.20680059492588043, -0.012593104504048824, 0.18525367975234985, 0.1498967409133911, 0.05112148076295853, 0.008908174932003021, 0.5321074724197388, -0.0603233277797699, -0.1297144889831543, -0.2670768201351166, -0.2808823585510254, 0.011254879646003246, 0.07508500665426254, -0.1924654096364975, -0.1969621181488037, 0.3012692928314209, -0.3112698197364807, 0.25840216875076294, 0.2315501719713211, -0.0003220982907805592, 0.2314707338809967, 0.4709131717681885, 0.1136934906244278, 0.1910986304283142, 0.014615360647439957, -0.3011435866355896, 0.06701530516147614, 0.08953648805618286, 0.016155391931533813, -0.13451489806175232, -0.1280483901500702, -0.04052652046084404, 0.0316537506878376, -0.05196456238627434, -0.03668792545795441, 0.16407182812690735, -0.09813930839300156, 0.1427847445011139, 0.2040521502494812, -0.09565334022045135, 0.5069953799247742, 0.044909775257110596, 0.20549100637435913, -0.34765130281448364, 0.7957619428634644, -0.06284575164318085, -0.08313635736703873, 0.16797490417957306, 0.15812988579273224, 0.3577303886413574, -0.24062204360961914, -0.07933647185564041, 0.5479313731193542, 0.0030468786135315895, 0.20872017741203308, 0.46481356024742126, 0.3619553744792938, 0.2616002857685089, -0.26795604825019836, 0.17669102549552917, 0.12348324060440063, 0.13185922801494598, 0.052885670214891434, 0.2697492241859436, 0.056530341506004333, -0.09291083365678787, 0.39335426688194275, 0.2558865249156952, 0.25351929664611816, -0.08854938298463821, -0.23069921135902405, -0.33751702308654785, 0.025789521634578705, 0.18212316930294037, -0.01028173603117466, 0.3197616636753082, 0.06655632704496384, -0.19680890440940857, 0.03436516225337982, 0.2283060997724533, -0.21394088864326477, 0.14770479500293732, -0.1218862310051918, -0.24277004599571228, -0.053395334631204605, 0.09494377672672272, 0.4247903525829315, 0.39730891585350037, 0.1556915044784546, -0.15717022120952606, 0.12785568833351135, -0.10300946980714798, -0.1715966761112213, 0.15714547038078308, 0.012075607664883137, -0.19706286489963531, -0.2106170356273651, -0.17563645541667938, -0.1759062558412552, -0.06281988322734833, -0.04010700806975365, -0.26090893149375916, 0.004922899417579174, -0.4890073835849762, -0.1162075400352478, -0.4256090521812439, -0.468354731798172, -0.2294396311044693, -0.24131515622138977, -0.4593430459499359, -0.42354872822761536, -0.21111956238746643, -0.13150978088378906, 0.040494468063116074, 0.041947733610868454, -0.0451749712228775, 0.22961178421974182, -0.16447129845619202, 0.016780856996774673, -0.044278182089328766, -0.15988628566265106, -0.30168214440345764, 0.09086892753839493, 0.0384640097618103, 0.3077387809753418, 0.3564952611923218, -0.1310596466064453, 0.20437785983085632, -0.3110786974430084, -0.1825403869152069, 0.003388917539268732, 0.11272992938756943, 0.572273313999176, 0.43031227588653564, 0.3833504617214203, 0.38120022416114807, 0.010215136222541332, 0.3864468038082123, -0.0884324237704277, 0.1346811056137085, -0.1440848410129547, 0.18376962840557098, -0.1304992288351059, 0.12906798720359802, -0.14684250950813293, -0.37783220410346985, -0.09452784806489944, 0.22019852697849274, -0.30476611852645874, 0.08804072439670563, -0.1557004600763321, -0.04841258004307747, 0.23648765683174133, -0.3831409513950348, -0.10400190949440002, -0.231082484126091, -0.5189398527145386, 0.16454710066318512, -0.09067276865243912, -0.47402065992355347, -0.007620675023645163, 0.05136542022228241, 0.1766810417175293, 0.05590793117880821, -0.3993256986141205, -0.5216788649559021, -0.09293705224990845, 0.022144293412566185, 0.3070882558822632, 0.3270324468612671, 0.14750199019908905, -0.20898348093032837, 0.030443523079156876, -0.1695890724658966, -0.24739670753479004, 0.1664072424173355, 0.00205629738047719, 0.2740550935268402, 0.5102779269218445, 0.2605575919151306, 0.04841237515211105, 0.19508638978004456, 0.16777828335762024, -0.133078470826149, 0.2533990740776062, -0.18154975771903992, 0.47701627016067505, 0.31293150782585144, -0.32739782333374023, -0.0628942921757698, -0.01546398550271988, -0.04862889274954796, 0.032786909490823746, 0.2938302755355835, 0.15858207643032074, -0.3641508221626282, -0.11144912987947464, -0.3802970349788666, -0.37380358576774597, -0.1508471667766571, 0.0350637324154377, 0.1327313929796219, 0.0921054407954216, -0.04862320423126221, 0.141505628824234, -0.14455418288707733, 0.09769675880670547, 0.40922510623931885, 0.0653705820441246, -0.14417022466659546, -0.37919849157333374, -0.45379430055618286, -0.34304770827293396, 0.4417438805103302, -0.04031800106167793, 0.5260640978813171, -0.23941129446029663, 0.24214230477809906, 0.19496215879917145, 0.022884130477905273, 0.625714898109436, -0.8164905309677124, -0.007050512358546257, 0.09283468127250671, 0.03289109095931053, -0.3561481535434723, 0.12840399146080017, -0.11575481295585632, -0.027278341352939606, 0.39376482367515564, 0.24051086604595184, -0.2447444498538971, -0.1883091926574707, 0.13865764439105988, 0.00543406093493104, -0.11283747106790543, -0.24779604375362396, 0.0030014130752533674, -0.2437552958726883, -0.054995518177747726, -0.1995411217212677, -0.1693078726530075, -0.08941249549388885, 0.24246081709861755, -0.09165551513433456, -0.021637454628944397, -0.046458423137664795, 0.062142789363861084, -0.13632629811763763, 0.1105244979262352, -0.15540684759616852, 0.2256641536951065, 0.4375842213630676, 0.2917262315750122, -0.19477547705173492, 0.22322332859039307, -0.26686951518058777, 0.12804116308689117, -0.045473165810108185, -0.022896818816661835, 0.565299928188324, 0.3047218322753906, -0.1275053769350052, 0.2242005616426468, 0.012050866149365902, 0.09398981928825378, -0.2646259069442749, 0.05655651539564133, 0.3686782717704773, 0.17568886280059814, -0.29533421993255615, -0.3789604902267456, 0.29471373558044434, 0.08369553089141846, -0.24959030747413635, 0.19244995713233948, 0.31778013706207275, -0.1595836728811264, 0.20432204008102417, -0.1447805017232895, 1.0169451236724854, 0.03493916988372803, -0.08453869819641113, -0.06150263547897339, -0.49951422214508057, 0.3972768485546112, 0.05363267660140991, -0.09969579428434372, -0.4945429563522339, -0.22772055864334106, -0.20829729735851288, -0.26429447531700134, 0.20486633479595184, -0.038323983550071716, -0.19435164332389832, 0.5626398921012878, -0.15560488402843475, 0.2548731863498688, -0.05579803138971329, 0.39831098914146423, -0.04340221360325813, 0.12834906578063965, -0.2900545001029968, 0.20980021357536316, -0.10406318306922913, 0.3654930591583252, -0.050055839121341705, -0.14200876653194427, 0.1566402167081833, -0.24940034747123718, -0.36689794063568115, 0.02662491425871849, -0.7568398714065552, -0.04917362332344055, 0.2383575737476349, 0.04572335258126259, -0.1346176266670227, 0.05372454226016998, 0.149638369679451, 0.46057167649269104, -0.26929575204849243, 0.111642986536026, -0.02483302168548107, -0.18194150924682617, 0.2858271896839142, 0.24632565677165985, 0.026792263612151146, -0.10778150707483292, -0.3296508491039276, 0.009688456542789936, 0.15517877042293549, -0.19514082372188568, -0.04317291080951691, -0.061803050339221954, -0.01395371463149786, -0.3604123592376709, -0.15865309536457062, -0.12690414488315582, 0.21360260248184204, 0.07613322883844376, 0.14275579154491425, 0.21272799372673035, 0.04237929731607437, 0.29804059863090515, 0.25408264994621277, -0.12879666686058044, -0.09476765245199203, 0.4355381727218628, -0.30867522954940796, 0.0063706208020448685, 0.03789395093917847, -0.03396621346473694, -0.22203627228736877, -0.1452682614326477, 0.2257876843214035, 0.2803982198238373, -0.18415957689285278, -0.15706279873847961, -0.13352788984775543, 0.21812452375888824, -0.222334086894989, -0.23380333185195923, 0.21388651430606842, 0.1519245058298111, -0.0702139139175415, -0.5190097093582153, 0.05076375976204872, 0.3575645685195923, 0.19582499563694, 0.13841666281223297, -0.06748393177986145, -0.2428606003522873, 0.19875212013721466, -0.13099311292171478, -0.3228834569454193, 0.20709244906902313, -0.25093165040016174, 0.03429892659187317, 0.5042774677276611, -0.12795428931713104, 0.3872489333152771, -0.15079334378242493, 0.15160450339317322, -0.23296929895877838, -0.18978865444660187, -0.13673940300941467, -0.09134344756603241, 0.1242058202624321, -0.05183611437678337, -0.19873955845832825, -0.1399904042482376, -0.5320919752120972, 0.08676020801067352, 0.06536080688238144, -0.04127192869782448, 0.1310143619775772, -0.0736202672123909, -0.19852527976036072, -0.11118639260530472, -0.1988471895456314, -0.23440004885196686, 0.5295155644416809, -0.05174003913998604, 0.428867906332016, 0.022047845646739006, -0.007559365127235651, -0.1291712075471878, -0.29686859250068665, -0.01578795723617077, 0.14752361178398132, -0.15459513664245605, -0.049559976905584335, 0.2362097203731537, -0.06820471584796906, -0.1005275771021843, 0.24182650446891785, 0.46605512499809265, 0.08941900730133057, -0.2641599476337433, 0.1111510619521141, 0.1586788296699524, 0.1903085857629776, 0.09852001816034317, 0.08053610473871231, 0.2481311857700348, 0.05098220705986023, 0.06279918551445007, 0.07102739065885544, 0.11048965156078339, 0.16089828312397003, 0.07997715473175049, -0.02799941599369049, 0.6018795967102051, -0.01247489545494318, -0.15342062711715698, -0.04284687340259552, -0.11308613419532776, -0.02451857551932335, 0.13924959301948547, 0.1599649041891098, -0.029767250642180443, -0.15574175119400024, 0.02459508553147316, 0.05814014747738838, 0.3666989803314209, 0.1528995782136917, 0.25316429138183594, 0.0034275222569704056, -0.16081254184246063, 0.15761469304561615, -0.25789207220077515, -0.10133971273899078, -0.18507273495197296, 0.751437246799469, -0.33545783162117004, -0.019785990938544273, 0.04220394045114517, 0.21924351155757904, 0.1011175736784935, -0.18908536434173584, 0.035526033490896225, -0.021101251244544983, -0.4360966980457306, -0.23702192306518555, 0.023533785715699196, -0.23582510650157928, 0.2895054221153259, 0.04768006503582001, 0.20705266296863556, -0.30420491099357605, 0.07687965780496597, 0.0670948177576065, 0.13679540157318115, -0.16746166348457336, 0.2207109034061432, -0.2710684537887573, 0.5232747793197632, 0.24782179296016693, 0.43615591526031494, 0.410905122756958, 0.24752463400363922, -0.08985435962677002, 0.08241736143827438, 0.013576815836131573, -0.08780554682016373, 0.07347027957439423, 0.1821490228176117, -0.012920706532895565, 0.054477524012327194, 0.4246552586555481, 0.208585724234581, -0.07417748123407364, 0.005021050106734037, -0.26702672243118286, 0.26475790143013, -0.17590518295764923, 0.4376745820045471, -0.30280524492263794, -0.04409705474972725, -0.4799283742904663, -0.12685556709766388, -0.5758996605873108, -0.12652522325515747, 0.3075520992279053, -0.3345973491668701, 0.11557075381278992, -0.2402161806821823, 0.08436521887779236, -0.07558438181877136, 0.46132054924964905, 0.492343932390213, 0.6064275503158569, -0.37034568190574646, -0.3879164755344391, -0.5264346599578857, -0.11737067252397537, -0.11295022070407867, -0.10752475261688232, -0.09769933670759201, 0.05654088780283928, -0.23802758753299713, 0.24431432783603668, 0.15630587935447693, 0.359322190284729, -0.18740366399288177, -0.07644149661064148, -0.17413076758384705, -0.033634331077337265, -0.15416215360164642, 0.014357918873429298, 0.030783571302890778, -0.20106838643550873, 0.25964805483818054, -0.05009622871875763, 0.02870575711131096, 0.06353990733623505, 0.07633145898580551, -0.06952109932899475, -0.3577854335308075, 0.26023566722869873, 0.17729471623897552, 0.4283648133277893, 0.1720939427614212, 0.07872509956359863, -0.3032378554344177, -0.33022540807724, 0.04901881143450737, -0.05780239403247833, -0.13502857089042664, -0.17041781544685364, 0.18712566792964935, -0.19007821381092072, -0.2916153073310852, 0.0989706739783287, -0.16068388521671295, 0.5082808136940002, 0.2039378136396408, -0.2726275622844696, 0.13248372077941895, 0.03226906433701515, 0.14106303453445435, -0.0009936903370544314, -0.1701030731201172, 0.12906478345394135, 0.15952149033546448, -0.24602198600769043, 0.34639212489128113, -0.26441091299057007, 0.07832224667072296, -0.15266883373260498, 0.41589057445526123, -0.021640164777636528, -0.03340091183781624, -0.33381468057632446, -0.19115833938121796, 0.43942418694496155, 0.041840698570013046, -0.1830800473690033, 0.3604089915752411, 0.04289551079273224, 0.2880266010761261, 0.15442223846912384, 0.11374393850564957, 0.14436079561710358, -0.1935797780752182, 0.06948552280664444, -0.06323131173849106 ]
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.23621447384357452, -0.3874819278717041, -0.15831837058067322, -0.004699616692960262, 0.36150306463241577, -0.02269969880580902, -0.06851668655872345, 0.2251034528017044, 0.026333140209317207, 0.21840469539165497, -0.12052105367183685, -0.007295709569007158, 0.009890412911772728, 0.3339485228061676, -0.014037900604307652, -0.22543320059776306, 0.05091455578804016, 0.031312838196754456, -0.25643181800842285, 0.07756002992391586, 0.020203109830617905, 0.325912207365036, -0.15540626645088196, 0.22974497079849243, -0.11346945911645889, -0.0685829296708107, -0.020157882943749428, -0.07753215730190277, -0.1757894605398178, -0.43627244234085083, 0.5638247132301331, 0.19272184371948242, 0.12568295001983643, 0.3472214937210083, -0.00010076377657242119, -0.0771246924996376, 0.41861990094184875, -0.0503709614276886, -0.17551571130752563, -0.309874564409256, 0.04975911229848862, -0.18408392369747162, 0.21234898269176483, 0.11466443538665771, -0.27635619044303894, -0.3036896884441376, 0.12725205719470978, -0.09631598740816116, 0.42074501514434814, 0.04467072710394859, 0.36894741654396057, 0.26894569396972656, 0.4838216304779053, -0.4246513247489929, -0.09245374798774719, 0.12341847270727158, -0.08215480297803879, 0.24427665770053864, 0.060573652386665344, -0.07621882855892181, 0.1396976113319397, 0.3529838025569916, 0.13052688539028168, -0.0450914092361927, 0.30117180943489075, -0.04528024420142174, -0.1961439996957779, -0.23429617285728455, 0.2390601485967636, 0.1528019905090332, 0.5129558444023132, -0.260868638753891, -0.44490769505500793, -0.01177440769970417, 0.0631321594119072, 0.023145144805312157, 0.16061362624168396, -0.01628369465470314, -0.15441329777240753, 0.1218491867184639, -0.09560521692037582, -0.08663386851549149, -0.12898258864879608, 0.1462022215127945, 0.11540194600820541, 0.030599690973758698, -0.2691112160682678, 0.0719907209277153, 0.2066192924976349, -0.3192817270755768, 0.05281032249331474, 0.19596560299396515, -0.1088821068406105, 0.24424833059310913, -0.1789723038673401, 0.06871699541807175, 0.06100999936461449, -0.015078417025506496, 0.3950168788433075, 0.08057601004838943, -0.1344839185476303, 0.011904599145054817, 0.05855870991945267, 0.05153418332338333, 0.1297624409198761, 0.04346780106425285, 0.016532931476831436, -0.3237159848213196, 0.26773858070373535, 0.26977360248565674, 0.1876416653394699, -0.23959100246429443, -0.01043117418885231, -0.25712481141090393, -0.31821075081825256, -0.30376020073890686, 0.26175251603126526, -0.2514616847038269, -0.11706681549549103, 0.051981113851070404, -0.06325763463973999, -0.009885051287710667, 0.08482059836387634, 0.4707404375076294, 0.025866778567433357, 0.029520833864808083, 0.18081358075141907, 0.24895624816417694, 0.0418969951570034, 0.25369954109191895, -0.335582435131073, -0.02286784164607525, -0.09630593657493591, -0.040075551718473434, 0.1465430110692978, -0.2771797478199005, 0.32200801372528076, -0.08527214825153351, 0.03941546380519867, -0.006283517461270094, -0.20699529349803925, 0.17217771708965302, -0.06381873041391373, 0.36161595582962036, 0.13843463361263275, 0.10343195497989655, 0.11529707908630371, 0.06059286370873451, -0.09697795659303665, -0.2377069741487503, -0.19383850693702698, -0.2642822265625, -0.24582284688949585, 0.26621752977371216, -0.06626682728528976, 0.08334140479564667, -0.10183218121528625, 0.07107612490653992, -0.18630366027355194, -0.10656285285949707, -0.08158446103334427, 0.033406082540750504, 0.026401789858937263, -0.14126843214035034, 0.33963891863822937, 0.31641528010368347, -0.22434242069721222, -0.13302941620349884, 0.21903932094573975, -0.3956376910209656, -0.0767417773604393, 0.20203834772109985, -0.23443540930747986, -0.03629603981971741, -0.2745138704776764, 0.07625477761030197, 0.23868699371814728, -0.2935952842235565, -0.4345349371433258, 0.01808106154203415, -0.0682203471660614, -0.14563396573066711, 0.0590168759226799, -0.012017409317195415, -0.17742902040481567, 0.1605425477027893, 0.030852023512125015, 0.04776059091091156, -0.03053997829556465, -0.08099734783172607, 0.012489104643464088, -0.2905764579772949, -0.10291029512882233, 0.04548794776201248, -0.008516845293343067, 0.128953218460083, 0.17678529024124146, -0.044749170541763306, 0.2707518935203552, 0.00934546533972025, 0.044685568660497665, 0.21540682017803192, 0.27828726172447205, 0.33029788732528687, -0.0016545476391911507, -0.24914397299289703, -0.22282490134239197, 0.05630651116371155, 0.10598038882017136, 0.18170833587646484, -0.24027329683303833, -0.150859996676445, -0.23148326575756073, 0.077670156955719, 0.02724185585975647, -0.20849665999412537, 0.27492251992225647, 0.04678783193230629, 0.4856113791465759, 0.29131582379341125, -0.21611736714839935, 0.28940898180007935, -0.07068128138780594, 0.20305831730365753, -0.31418710947036743, 0.31327947974205017, -0.1704617738723755, -0.0810314416885376, 0.2489071488380432, 0.3151203393936157, -0.006789797451347113, -0.15101733803749084, -0.0285711158066988, 0.23794348537921906, -0.3230611979961395, 0.06750369071960449, 0.275999516248703, 0.060895711183547974, 0.006859264336526394, -0.3545849025249481, 0.06617100536823273, -0.034722860902547836, 0.10702965408563614, 0.07501862198114395, -0.006089892238378525, 0.23461385071277618, -0.040536198765039444, 0.11805547028779984, 0.08640819042921066, 0.2939912974834442, 0.5806784629821777, 0.1721525639295578, -0.14514966309070587, -0.08391334116458893, 0.07111234962940216, -0.342520147562027, 0.27903425693511963, -0.21934403479099274, -0.1918272227048874, 0.029558906331658363, 0.29697543382644653, -0.010613076388835907, -0.06165732070803642, 0.23798827826976776, -0.2565307915210724, 0.04164866730570793, 0.03657979890704155, 0.21313907206058502, 0.2801843583583832, 0.30618685483932495, -0.014422734268009663, 0.15214519202709198, -0.020785991102457047, -0.1786590963602066, 0.12682266533374786, 0.03319745510816574, 0.0013126719277352095, -0.046808257699012756, 0.00022140714281704277, -0.02613949030637741, -0.40861696004867554, -0.15476243197917938, -0.44983214139938354, 0.1796073168516159, -0.012142875231802464, -0.057635292410850525, -0.2008182853460312, -0.42852914333343506, -0.06395497173070908, -0.3473840355873108, -0.43214496970176697, -0.3055020868778229, -0.08693013340234756, 0.12304022163152695, 0.05128946155309677, 0.25037211179733276, -0.034496285021305084, 0.22765925526618958, 0.05683562159538269, 0.12651021778583527, -0.22859226167201996, -0.06262874603271484, -0.09758024662733078, 0.15788808465003967, 0.07499779760837555, 0.1486073136329651, 0.46976593136787415, -0.17266517877578735, 0.2427733689546585, -0.30780863761901855, -0.38389554619789124, -0.06816097348928452, -0.11700202524662018, 0.1350693702697754, 0.4359380900859833, 0.26067739725112915, 0.10730880498886108, -0.30654534697532654, 0.37730515003204346, -0.39650267362594604, -0.22219347953796387, -0.17472055554389954, -0.13981232047080994, -0.1904292106628418, -0.13566909730434418, -0.0715867206454277, -0.3290017247200012, -0.32163262367248535, 0.44328591227531433, 0.0032819632906466722, 0.013870440423488617, -0.11503101140260696, 0.1491568684577942, 0.35480859875679016, -0.31912192702293396, 0.09547777473926544, -0.24157540500164032, -0.5166893601417542, 0.13731005787849426, -0.245636448264122, -0.5283468961715698, 0.2935695946216583, 0.06827293336391449, 0.35084235668182373, -0.3473398685455322, -0.31842324137687683, -0.2784534692764282, -0.2883038818836212, 0.0639864131808281, 0.05376021936535835, 0.1304263025522232, 0.36733800172805786, -0.05544450506567955, -0.15850067138671875, -0.04018541797995567, -0.3671458065509796, 0.023588979616761208, -0.27360060811042786, 0.2128952592611313, -0.011548798531293869, 0.5309565663337708, 0.003997566644102335, 0.3552597463130951, 0.25606706738471985, -0.01791764609515667, 0.22434671223163605, -0.08521230518817902, 0.36942511796951294, -0.16416315734386444, -0.44510161876678467, 0.14526304602622986, -0.016321538016200066, 0.3346744775772095, 0.15859100222587585, 0.2155844271183014, 0.23095698654651642, -0.28645059466362, -0.22611606121063232, -0.2300139218568802, -0.15614299476146698, -0.2680589556694031, 0.09966052323579788, -0.10239755362272263, -0.01052030362188816, -0.0012384213041514158, -0.15582714974880219, -0.080050028860569, 0.05618804693222046, 0.4081973433494568, -0.016664212569594383, 0.20635327696800232, -0.4561302363872528, 0.01648484729230404, -0.6440911293029785, 0.29026851058006287, -0.10891877114772797, 0.11691422015428543, -0.19101747870445251, -0.06484171003103256, 0.10818655788898468, -0.11425080895423889, 0.7474418878555298, 0.21497829258441925, -0.04583342745900154, -0.03717263787984848, -0.2370026707649231, -0.21696659922599792, 0.017552901059389114, 0.10226535052061081, 0.001834715367294848, 0.1910148561000824, 0.26419469714164734, -0.16336140036582947, -0.27797943353652954, 0.22712303698062897, -0.0633484497666359, -0.08076822012662888, -0.11961646378040314, -0.1826634258031845, -0.3779202997684479, -0.22931210696697235, -0.010689198970794678, -0.08028165996074677, 0.3667842447757721, 0.03757390007376671, -0.1185256615281105, -0.09724941104650497, -0.2570376992225647, 0.09077662974596024, 0.2076939046382904, 0.06610212475061417, 0.024723058566451073, 0.12022353708744049, 0.3205240070819855, 0.2657817602157593, 0.2866649627685547, 0.3943687081336975, 0.1303098052740097, -0.37600111961364746, -0.027702249586582184, 0.0071175601333379745, 0.23202748596668243, 0.13901790976524353, -0.22314992547035217, 0.27718424797058105, 0.07515737414360046, 0.31670546531677246, -0.3357447683811188, -0.02480580098927021, 0.36931294202804565, 0.22166875004768372, -0.11890894919633865, -0.11890142410993576, 0.21032989025115967, 0.010755583643913269, 0.09943336993455887, 0.19749335944652557, 0.586467444896698, -0.05037442967295647, 0.14079321920871735, -0.12893223762512207, 0.8587400913238525, -0.17299191653728485, 0.05969277396798134, 0.10392340272665024, -0.18045297265052795, 0.7909545302391052, 0.07505948096513748, -0.010505332611501217, -0.19663284718990326, -0.18600068986415863, 0.03896705061197281, -0.08275306224822998, 0.33745214343070984, -0.27286794781684875, -0.006035391706973314, 0.14844352006912231, 0.07439621537923813, 0.2465982884168625, -0.09035329520702362, 0.12256326526403427, -0.11506973206996918, -0.13506194949150085, -0.4238065481185913, 0.2955786883831024, 0.052546050399541855, 0.5171601176261902, -0.04675403982400894, -0.23806366324424744, -0.1474393904209137, -0.31924521923065186, -0.2377869337797165, 0.06776878237724304, 0.0275909211486578, -0.011949810199439526, 0.2533755302429199, -0.1183493360877037, 0.04178052023053169, 0.3251810371875763, 0.37420421838760376, 0.13076478242874146, -0.39356139302253723, 0.07356732338666916, -0.26846882700920105, -0.22331558167934418, -0.15342241525650024, 0.2687028646469116, 0.09000774472951889, -0.21402199566364288, -0.13471458852291107, 0.19692735373973846, 0.16106528043746948, -0.16610999405384064, -0.12854647636413574, -0.11348679661750793, -0.328635036945343, -0.18341435492038727, -0.10634499043226242, -0.10686294734477997, 0.06094559654593468, -0.23376604914665222, 0.2167896181344986, 0.17592544853687286, -0.19009751081466675, -0.15611253678798676, 0.27555546164512634, -0.0521453432738781, -0.03953253850340843, 0.5391180515289307, -0.1666143834590912, -0.19350667297840118, 0.3695308268070221, 0.18419149518013, -0.19761894643306732, -0.20241239666938782, -0.23599134385585785, 0.36322513222694397, -0.47159543633461, -0.03297889232635498, 0.1850079894065857, -0.018784701824188232, 0.003776077413931489, 0.1230328232049942, 0.21246948838233948, -0.20785029232501984, 0.11336423456668854, -0.38539382815361023, -0.5158320665359497, 0.2861064672470093, -0.049859315156936646, 0.21165597438812256, -0.04265768826007843, 0.43337056040763855, 0.06293539702892303, 0.08440959453582764, -0.4175317585468292, 0.038126297295093536, -0.2708234488964081, -0.1602281630039215, -0.024316903203725815, -0.21466177701950073, 0.3230578601360321, 0.04370448365807533, 0.2889898419380188, -0.008658196777105331, -0.4189891517162323, -0.2767118513584137, -0.04248860105872154, 0.025452567264437675, -0.05070515349507332, -0.13358034193515778, 0.13503722846508026, -0.16418783366680145, -0.16903111338615417, -0.020243775099515915, 0.13858886063098907, 0.24168004095554352, 0.026136841624975204, -0.08398522436618805, 0.13958033919334412, -0.05284702777862549, -0.0023200211580842733, 0.04827648773789406, 0.14499928057193756, 0.14125975966453552, -0.0748835876584053, -0.07461653649806976, -0.30474212765693665, -0.0873737633228302, 0.024252893403172493, 0.10728167742490768, 0.02478569746017456, -0.03895273432135582, 0.2696346640586853, -0.08751853555440903, -0.11884541809558868, 0.17329293489456177, 0.6467874050140381, 0.09918508678674698, -0.10121608525514603, 0.3181515336036682, 0.2585600018501282, 0.24811440706253052, -0.4696612060070038, -0.051695749163627625, 0.04335315153002739, 0.06584500521421432, -0.07240956276655197, 0.003456552280113101, 0.015744997188448906, -0.0013173121260479093, 0.08479374647140503, 0.039455346763134, 0.36806008219718933, -0.15251684188842773, 0.2127612978219986, 0.2981661558151245, 0.061551500111818314, -0.021719692274928093, 0.2573697865009308, 0.20607100427150726, 0.1557854413986206, 0.4488223195075989, -0.3339228630065918, 0.20983797311782837, -0.3700530529022217, 0.21861089766025543, 0.004590385127812624, -0.267455130815506, -0.18446233868598938, 0.04442954808473587, -0.03078306093811989, -0.23940907418727875, -0.24904154241085052, 0.4403612017631531, -0.23647089302539825, -0.19678042829036713, -0.3007940351963043, 0.27219995856285095, -0.09363167732954025, -0.31230098009109497, 0.0833822637796402, -0.21142154932022095, 0.1632489413022995, -0.13420377671718597, 0.09230124950408936, -0.2154894322156906, 0.29866883158683777, -0.19105340540409088, 0.030688781291246414, -0.3790189325809479, -0.34175291657447815, 0.10061755031347275, 0.0817706435918808, 0.10279867053031921, 0.13981515169143677, 0.1021653413772583, -0.07742007076740265, 0.1495228111743927, 0.4495648741722107, 0.4510253965854645, 0.13565491139888763, 0.2426738142967224, 0.16984666883945465, -0.22726501524448395, -0.12598803639411926, -0.010740511119365692, 0.3142695128917694, 0.2791312634944916, 0.04532472416758537, 0.2673904299736023, 0.25463610887527466, -0.21563030779361725, 0.07089287787675858, -0.15342918038368225, 0.3682321310043335, -0.1705944538116455, 0.19544106721878052, -0.44654926657676697, -0.008283759467303753, -0.3041037619113922, 0.2065589278936386, -0.39229393005371094, 0.030347557738423347, 0.011593044735491276, -0.13884460926055908, 0.03248651698231697, -0.3460274040699005, 0.15928129851818085, -0.045587360858917236, 0.5311891436576843, 0.24245503544807434, 0.34542739391326904, 0.07570694386959076, -0.33408719301223755, -0.45188695192337036, 0.023365523666143417, -0.03879302740097046, 0.18904858827590942, -0.20422707498073578, -0.04236875846982002, -0.028080202639102936, -0.04440680518746376, 0.1455201953649521, -0.05603765696287155, 0.020711489021778107, -0.22696341574192047, -0.16576039791107178, -0.07350197434425354, -0.2578940689563751, -0.08304323256015778, 0.11162662506103516, 0.03629780933260918, 0.1515350341796875, -0.2637992203235626, 0.10115332901477814, 0.07036654651165009, 0.5182721614837646, -0.19159375131130219, -0.12131746858358383, 0.1917877197265625, 0.10847931355237961, 0.22774893045425415, 0.02843092940747738, 0.012832993641495705, -0.30241650342941284, -0.4064076840877533, -0.1753896176815033, 0.20508916676044464, 0.05179552361369133, 0.3251958191394806, -0.18190503120422363, -0.25654467940330505, -0.15854386985301971, 0.19496986269950867, 0.01098276861011982, 0.2420242875814438, -0.22205685079097748, 0.3535386025905609, -0.03861386701464653, 0.0018601847114041448, 0.38704854249954224, 0.12967532873153687, -0.09725518524646759, 0.10255440324544907, -0.12590502202510834, -0.2123662680387497, 0.6435744762420654, -0.24124902486801147, 0.051718857139348984, -0.0005437976215034723, 0.0938073992729187, 0.2518312931060791, -0.41032570600509644, -0.48379963636398315, 0.29610514640808105, 0.14209316670894623, 0.17741748690605164, -0.09353005141019821, 0.34571489691734314, -0.22208964824676514, -0.11391142755746841, 0.0008393891621381044, 0.38056471943855286, 0.037309423089027405, -0.020748816430568695, 0.22429534792900085, -0.05143855884671211 ]
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.24644477665424347, -0.07323822379112244, -0.23498935997486115, -0.09773342311382294, 0.2804592549800873, 0.03026401810348034, 0.22501859068870544, 0.08640434592962265, 0.08424624055624008, 0.24715185165405273, -0.017077792435884476, 0.028118740767240524, -0.3046906590461731, 0.34195053577423096, 0.29326024651527405, -0.1668529510498047, 0.30303874611854553, 0.029771512374281883, 0.11244635283946991, -0.18834884464740753, -0.10116666555404663, -0.062098193913698196, -0.17911717295646667, -0.32009369134902954, -0.1909743696451187, -0.07780307531356812, -0.26754409074783325, -0.2924897074699402, -0.23476006090641022, -0.2387123703956604, 0.3272106349468231, 0.03727879002690315, 0.25753748416900635, 0.6088258028030396, -0.0001094965627999045, 0.09360058605670929, 0.18885233998298645, 0.03449992462992668, 0.19021937251091003, -0.24890528619289398, -0.4143953025341034, -0.35012951493263245, -0.09920106083154678, -0.16305114328861237, -0.14173747599124908, -0.16599637269973755, 0.3405521512031555, -0.09209103137254715, 0.21361835300922394, 0.1095004454255104, 0.1909378468990326, 0.02865326777100563, 0.15268659591674805, -0.012451301328837872, 0.12591443955898285, 0.46376124024391174, -0.41924649477005005, 0.07872731238603592, 0.36351248621940613, -0.08408663421869278, 0.30616477131843567, 0.3910602033138275, -0.04155600816011429, -0.07817727327346802, 0.0574287585914135, 0.12046514451503754, 0.00957214180380106, -0.6005351543426514, -0.06937155872583389, 0.34556806087493896, 0.42735278606414795, 0.16948942840099335, -0.4737812578678131, -0.27420562505722046, 0.113530732691288, -0.3056730628013611, -0.3639112412929535, 0.33758455514907837, 0.08543694764375687, -0.02748408354818821, -0.5430431962013245, -0.550498366355896, -0.17162270843982697, 0.3525955080986023, 0.0071946922689676285, 0.1653156876564026, 0.03432845696806908, 0.059622872620821, 0.027578655630350113, -0.04640178754925728, -0.035012390464544296, -0.12185114622116089, -0.03548598289489746, 0.18907207250595093, -0.37490323185920715, -0.3790492117404938, -0.38404279947280884, -0.0489446297287941, 0.37863945960998535, 0.1953839212656021, 0.026817897334694862, 0.07275993376970291, -0.5005356669425964, 0.19832150638103485, 0.277609258890152, -0.048788148909807205, -0.5262482166290283, 0.23842599987983704, 0.4992910921573639, -0.10259616374969482, 0.2686314284801483, 0.018273213878273964, -0.2126108556985855, 0.034590285271406174, -0.09597741812467575, -0.3556539714336395, 0.08203370869159698, 0.05551387742161751, 0.24504829943180084, -0.30799657106399536, -0.2041282057762146, -0.16344960033893585, -0.0028693045023828745, -0.0029008255805820227, -0.02996557205915451, -0.0549222007393837, -0.07716020941734314, 0.31015074253082275, 0.004946405533701181, -0.20315760374069214, -0.007723189424723387, 0.14468474686145782, -0.3078574240207672, 0.15878210961818695, 0.15611609816551208, -0.03484015166759491, 0.1697465479373932, -0.3572026789188385, 0.27491647005081177, 0.12190596014261246, 0.16739872097969055, -0.18886959552764893, 0.01842767931520939, 0.4009965658187866, -0.17805399000644684, -0.3972986042499542, -0.09998118877410889, 0.16938096284866333, -0.10833870619535446, 0.06791505217552185, -0.40451571345329285, 0.0720817968249321, -0.2208465337753296, 0.11230116337537766, -0.026545988395810127, -0.3100791871547699, -0.5300800204277039, 0.46082234382629395, -0.14732544124126434, -0.10776188969612122, 0.14823849499225616, -0.05100565031170845, -0.33305054903030396, -0.16780772805213928, 0.300789475440979, -0.0945541113615036, -0.16570931673049927, -0.11411582678556442, -0.3624177575111389, 0.29762908816337585, -0.00952141173183918, 0.18031758069992065, -0.10277599096298218, -0.14705023169517517, -0.01564982533454895, 0.14191396534442902, 0.4793451428413391, -0.11607593297958374, -0.18220099806785583, -0.09772545099258423, 0.39836645126342773, -0.34024208784103394, -0.21297815442085266, 0.4864848554134369, 0.20055299997329712, 0.07317177951335907, -0.27010202407836914, 0.32755181193351746, -0.14038455486297607, -0.18258598446846008, 0.1647539734840393, -0.2831166088581085, -0.23802512884140015, 0.46023908257484436, 0.4331446588039398, -0.012694221921265125, 0.3475661873817444, -0.21914468705654144, -0.16257430613040924, -0.006863890681415796, 0.08314166218042374, -0.019910357892513275, 0.6625745892524719, 0.12918876111507416, 0.1037045270204544, -0.3360143005847931, -0.09761607646942139, 0.27039819955825806, 0.2004423290491104, 0.4144095182418823, 0.09118695557117462, 0.011906559579074383, 0.27502575516700745, 0.20267252624034882, -0.08726983517408371, -0.1572868674993515, 0.007864203304052353, -0.10884540528059006, 0.10644173622131348, 0.030888155102729797, -0.3539695739746094, 0.03721024841070175, -0.09234067797660828, 0.2923873960971832, -0.21964532136917114, 0.6330334544181824, -0.10565280169248581, -0.015470304526388645, 0.07860225439071655, 0.19630569219589233, -0.18792326748371124, -0.10498316586017609, 0.2716379463672638, 0.05107828602194786, -0.015254423022270203, -0.06815248727798462, 0.3380047380924225, 0.47098636627197266, 0.5233401656150818, -0.6096271872520447, 0.14756964147090912, 0.012997932732105255, 0.022964952513575554, 0.01838245615363121, -0.2231992483139038, 0.2636466920375824, -0.06077870726585388, 0.2634526193141937, -0.08059827238321304, 0.05522585287690163, 0.24242979288101196, -0.017649931833148003, -0.18630221486091614, 0.03401736542582512, -0.13547180593013763, -0.23175454139709473, 0.0777992382645607, -0.31334933638572693, -0.32910579442977905, -0.4214867651462555, -0.03250124305486679, -0.07556667178869247, 0.1321129947900772, 0.2652240991592407, -0.14665177464485168, 0.13609592616558075, 0.28101208806037903, 0.4580809772014618, 0.27892738580703735, 0.2799293100833893, -0.1267128437757492, -0.20049993693828583, -0.08994043618440628, 0.011151306331157684, -0.006855204701423645, 0.23191669583320618, 0.44145718216896057, -0.09220736473798752, 0.25563308596611023, 0.08631937950849533, -0.22163201868534088, -0.17619608342647552, -0.09464149177074432, -0.056655485183000565, 0.23196205496788025, -0.060315363109111786, -0.09358729422092438, -0.4871145188808441, 0.13307270407676697, 0.1424444317817688, -0.3022172152996063, -0.07202646136283875, 0.03892078250646591, -0.2811455726623535, 0.31091055274009705, 0.25047558546066284, -0.18767468631267548, 0.526249349117279, -0.11410625278949738, 0.16866055130958557, -0.3002621531486511, 0.021966272965073586, 0.09948069602251053, 0.16732408106327057, 0.10265422612428665, -0.3192414939403534, 0.39416444301605225, 0.4315929412841797, -0.0025456142611801624, -0.2596161365509033, -0.6218698024749756, 0.344294935464859, -0.19615575671195984, 0.1873709261417389, -0.0038361053448170424, 0.038286689668893814, 0.11278345435857773, 0.31848248839378357, 0.18265993893146515, -0.211643785238266, -0.1564263105392456, -0.3393566310405731, 0.03482995554804802, -0.12658317387104034, -0.12625814974308014, 0.28304025530815125, -0.42996957898139954, -0.019820569083094597, 0.17550033330917358, 0.20039287209510803, -0.07571685314178467, 0.36030277609825134, 0.4419174790382385, -0.19685623049736023, 0.015354247763752937, -0.13859909772872925, -0.014558018185198307, -0.2842704653739929, 0.44481655955314636, -0.13992227613925934, -0.25317081809043884, 0.36714041233062744, -0.07292619347572327, 0.08277339488267899, 0.2562757730484009, -0.6753510236740112, -0.11125362664461136, -0.2079392820596695, 0.03386727720499039, 0.21405161917209625, 0.06287933886051178, -0.009219705127179623, -0.2110794335603714, -0.057974789291620255, -0.07090189307928085, -0.26267117261886597, -0.1191508024930954, 0.23778685927391052, 0.33084210753440857, 0.3337480425834656, 0.3474175035953522, -0.050826575607061386, 0.2955160439014435, 0.04184653237462044, -0.30430901050567627, 0.5080932974815369, 0.17084555327892303, 0.3578544855117798, -0.0822673961520195, -0.0730770155787468, 0.15497276186943054, -0.01399752963334322, -0.12584051489830017, -0.1660052239894867, 0.30112555623054504, -0.20826365053653717, -0.38100653886795044, 0.19943062961101532, -0.23395173251628876, 0.2077825367450714, -0.2149607092142105, -0.3136374056339264, 0.3180965185165405, -0.29000288248062134, -0.24641378223896027, -0.013235476799309254, -0.05523548647761345, -0.2524011731147766, 0.3302033543586731, 0.3994358479976654, -0.0875256285071373, -0.4125702679157257, -0.06416674703359604, -0.3355797231197357, 0.13413359224796295, -0.14401549100875854, 0.12939004600048065, -0.24952298402786255, 0.5356867909431458, 0.048614829778671265, 0.10782674700021744, 0.43286314606666565, -0.4323400855064392, -0.45858144760131836, -0.24890628457069397, -0.28406599164009094, 0.24904635548591614, 0.01378305908292532, 0.03225097432732582, -0.08042898029088974, -0.12851394712924957, 0.4602344334125519, 0.1161305159330368, -0.05634487047791481, 0.5523473620414734, -0.24045518040657043, -0.22365906834602356, -0.2206932008266449, 0.07540980726480484, -0.0589250810444355, -0.1352556049823761, -0.2169574797153473, -0.012717926874756813, -0.21579879522323608, 0.19387412071228027, -0.3250816762447357, -0.21726657450199127, -0.2820430397987366, 0.08357762545347214, -0.1445721685886383, -0.0860549807548523, 0.205826997756958, 0.07759758830070496, -0.04323767498135567, 0.24649640917778015, 0.49060991406440735, 0.32851284742355347, -0.20362021028995514, -0.350789338350296, 0.10243077576160431, 0.05131002143025398, 0.32661375403404236, -0.0016985733527690172, 0.11388515681028366, -0.028848979622125626, 0.0664544552564621, 0.08316478133201599, -0.29916322231292725, 0.007961872033774853, 0.5065008997917175, 0.20991314947605133, -0.34406793117523193, -0.41110384464263916, 0.3037996292114258, -0.08035372197628021, 0.14578740298748016, 0.060341641306877136, 0.2356189787387848, -0.09858255833387375, 0.19969670474529266, 0.21827010810375214, 0.7865892052650452, -0.36613017320632935, 0.021723143756389618, -0.16995584964752197, -0.027645137161016464, 0.6699272394180298, -0.10178891569375992, 0.1004905104637146, 0.1860993653535843, -0.06974857300519943, -0.1985662877559662, -0.028191866353154182, 0.0019202593248337507, 0.07110459357500076, 0.1636195033788681, 0.22250956296920776, 0.5093077421188354, 0.061502546072006226, -0.09865926206111908, 0.13907887041568756, 0.22852756083011627, -0.1587287187576294, -0.11399189382791519, 0.2322118729352951, -0.11731746047735214, -0.014721312560141087, -0.16918732225894928, -0.12790635228157043, -0.16675293445587158, 0.33247825503349304, -0.46153610944747925, -0.17303693294525146, 0.08758318424224854, 0.1277988851070404, 0.12440469115972519, -0.4775347113609314, 0.3379829227924347, 0.35412898659706116, 0.35768216848373413, -0.005958754103630781, -0.27729979157447815, 0.25427496433258057, -0.18211522698402405, -0.20671354234218597, -0.2546045184135437, -0.1713719218969345, 0.12316705286502838, -0.028339684009552002, -0.26739758253097534, -0.003028550650924444, 0.15654605627059937, -0.5180778503417969, -0.48214080929756165, 0.06988325715065002, 0.2820660471916199, 0.34806638956069946, 0.035098399966955185, 0.19544795155525208, -0.09000800549983978, -0.0028622043319046497, 0.174632728099823, 0.2746792137622833, 0.21252022683620453, 0.19042764604091644, 0.2809980809688568, 0.006460989359766245, -0.2811047434806824, 0.14418381452560425, 0.16613955795764923, -0.04005701467394829, 0.20799453556537628, 0.09245728701353073, -0.06520174443721771, -0.11442657560110092, 0.24074405431747437, 0.3130514621734619, -0.06806600093841553, -0.12127543985843658, -0.18047867715358734, 0.17008931934833527, 0.036851637065410614, -0.025044752284884453, 0.18447111546993256, -0.3268200755119324, -0.13324490189552307, -0.3180110454559326, 0.11260627210140228, 0.21356040239334106, -0.4756160080432892, 0.45112982392311096, -0.12478591501712799, -0.0726485550403595, 0.14553886651992798, 0.07091038674116135, -0.25728827714920044, -0.07325427234172821, -0.1358044296503067, -0.12266656756401062, 0.18987689912319183, 0.17702172696590424, -0.07779207825660706, -0.2803283631801605, 0.001958887092769146, -0.13295878469944, -0.1806691288948059, -0.12558649480342865, 0.3036164939403534, 0.11598715931177139, 0.24534018337726593, -0.15406496822834015, -0.11418048292398453, -0.09836193919181824, -0.3798805773258209, -0.02916821837425232, -0.08696460723876953, -0.03181155025959015, -0.0399775356054306, 0.14036913216114044, 0.2658541798591614, -0.07295011729001999, 0.13833336532115936, 0.21483172476291656, 0.0143397506326437, 0.4625806510448456, 0.3712095618247986, -0.06501798331737518, 0.48891687393188477, -0.07548831403255463, -0.17432801425457, 0.09028986841440201, -0.13493268191814423, -0.2563120126724243, 0.7665199637413025, -0.10004658252000809, 0.2560344338417053, 0.09462539851665497, 0.37290993332862854, -0.03192867711186409, -0.29492664337158203, 0.36987414956092834, 0.24965126812458038, 0.16527406871318817, -0.17048311233520508, -0.1848822981119156, 0.0436837375164032, 0.2250020056962967, -0.0009228759445250034, 0.17805346846580505, 0.2021026760339737, 0.38231876492500305, -0.1252906322479248, 0.12187689542770386, 0.40009480714797974, -0.19586651027202606, 0.32910045981407166, -0.1569524109363556, 0.16400915384292603, 0.19832617044448853, 0.01274049561470747, 0.22786913812160492, 0.06347988545894623, 0.2766057848930359, -0.0325789637863636, 0.5885314345359802, 0.12908664345741272, 0.05676770582795143, 0.5713605284690857, -0.13182476162910461, 0.06873831152915955, 0.11271664500236511, -0.027413958683609962, 0.021077467128634453, -0.141095370054245, 0.11856061965227127, -0.09486465901136398, -0.10927776247262955, -0.15502768754959106, 0.07047407329082489, 0.10490814596414566, 0.12729163467884064, -0.5323840975761414, -0.01676473766565323, -0.16563625633716583, 0.121939517557621, -0.002404099563136697, -0.23314908146858215, 0.013463320210576057, 0.0971711128950119, -0.1814596951007843, 0.08354710042476654, 0.02969825267791748, 0.21491554379463196, 0.07937973737716675, -0.003422195091843605, 0.22481901943683624, 0.049024391919374466, -0.2759841978549957, 0.09761358052492142, 0.489669531583786, 0.12539176642894745, 0.051601726561784744, 0.03713343292474747, 0.02263048104941845, 0.014388171024620533, -0.18557150661945343, 0.12901033461093903, 0.04613613337278366, -0.01681317202746868, -0.13573575019836426, -0.05820368230342865, 0.11247497797012329, 0.06054117903113365, 0.25606653094291687, -0.17245186865329742, 0.12309818714857101, -0.34395766258239746, -0.12880133092403412, -0.16975687444210052, -0.07529416680335999, -0.10728868097066879, 0.1784677356481552, -0.3433592915534973, 0.04913885518908501, 0.38563892245292664, -0.4856765866279602, -0.18871833384037018, 0.1320594996213913, 0.05755438655614853, -0.4405556321144104, 0.2636920213699341, 0.437385231256485, 0.07807017862796783, -0.0032714090775698423, -0.36522725224494934, -0.10106527805328369, -0.16277574002742767, -0.28627726435661316, 0.038408536463975906, -0.058350272476673126, 0.07664397358894348, 0.24143166840076447, 0.1381833255290985, 0.12782788276672363, -0.3685331344604492, 0.15562713146209717, 0.046025600284338, -0.2545473277568817, -0.16933991014957428, -0.061937905848026276, 0.2793898284435272, 0.003531382419168949, 0.20721301436424255, 0.2506820559501648, -0.2790721654891968, -0.09127113968133926, 0.026761703193187714, 0.11747834086418152, -0.24658919870853424, 0.06167074292898178, 0.33847054839134216, 0.05654536560177803, 0.19378997385501862, -0.14571130275726318, 0.039125796407461166, 0.014571534469723701, -0.22869394719600677, -0.09868855774402618, 0.10570527613162994, -0.15361450612545013, 0.297862708568573, -0.2515072822570801, -0.1778135895729065, 0.04292494058609009, -0.1701204776763916, -0.15728570520877838, -0.2763388454914093, -0.03532857075333595, -0.12039557844400406, -0.0496346652507782, -0.09830048680305481, 0.29217958450317383, -0.10227841138839722, -0.03851194307208061, -0.3568788468837738, -0.04759276658296585, 0.03850538656115532, 0.14550301432609558, -0.21581301093101501, 0.16055315732955933, -0.17482031881809235, -0.34517040848731995, -0.01888970285654068, 0.24825097620487213, -0.44029682874679565, -0.19686999917030334, 0.2989647686481476, 0.21308059990406036, -0.15647724270820618, 0.40722450613975525, 0.5054081678390503, -0.1011885479092598, 0.018135473132133484, 0.14272408187389374, -0.11180762946605682, 0.010719985701143742, -0.20218735933303833, -0.11477208882570267 ]
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.11834941804409027, 0.12276779860258102, -0.05486100912094116, -0.021853217855095863, 0.19739338755607605, 0.30988243222236633, 0.1708175241947174, -0.16403837502002716, -0.08370093256235123, -0.05052769556641579, 0.2646115720272064, 0.5609713196754456, -0.20104451477527618, 0.09169819951057434, 0.335185706615448, -0.29628798365592957, 0.11421406269073486, 0.043710656464099884, -0.29227468371391296, -0.027993114665150642, 0.0021192622371017933, -0.1372905671596527, 0.20075631141662598, -0.03173212334513664, -0.27671653032302856, -0.11822151392698288, -0.13797080516815186, -0.2123788744211197, -0.13848842680454254, -0.5027132630348206, 0.008783220313489437, -0.027224577963352203, 0.059072308242321014, 0.33765020966529846, -0.00011704199278028682, 0.09203437715768814, 0.27275320887565613, 0.16274747252464294, -0.5811180472373962, -0.3001934885978699, -0.31583601236343384, -0.575020968914032, 0.17637524008750916, -0.1296512931585312, 0.1810118556022644, -0.34057095646858215, 0.16821922361850739, -0.5160611271858215, 0.3616969585418701, 0.14408256113529205, 0.1551562398672104, 0.004857286345213652, 0.3422512710094452, -0.15878790616989136, 0.1316576600074768, 0.2934299111366272, -0.1651611328125, 0.0660049170255661, 0.0775923952460289, 0.1870582401752472, 0.21077243983745575, 0.143306165933609, 0.23212678730487823, -0.18394744396209717, 0.5127685070037842, 0.2322128713130951, -0.09621835500001907, -0.17912057042121887, -0.19252239167690277, 0.198466494679451, 0.647589921951294, -0.4157203435897827, -0.7800764441490173, -0.3988768458366394, 0.5506303906440735, -0.16825293004512787, -0.24457864463329315, 0.23281274735927582, 0.02390211634337902, 0.11698506772518158, 0.06966014951467514, -0.4716576635837555, -0.19214965403079987, 0.20137561857700348, 0.04457727447152138, 0.23647062480449677, 0.023394310846924782, 0.09984616935253143, 0.035571664571762085, -0.11985830217599869, 0.25992801785469055, 0.0791538655757904, -0.12345963716506958, 0.23875880241394043, -0.30969080328941345, 0.035170745104551315, -0.25275757908821106, -0.12681739032268524, 0.06635579466819763, -0.029791895300149918, 0.48541954159736633, -0.10988118499517441, -0.3336724638938904, 0.07906820625066757, 0.20006151497364044, -0.03427338972687721, 0.14301013946533203, 0.06871882826089859, -0.3912687599658966, -0.3791763484477997, -0.10968049615621567, -0.2170020192861557, -0.15509510040283203, -0.17133519053459167, 0.24242417514324188, -0.16731056571006775, 0.14737161993980408, 0.31368353962898254, 0.06299694627523422, -0.0935472920536995, -0.3020162582397461, 0.05912476032972336, -0.2725585699081421, 0.06127547100186348, 0.4182109832763672, 0.10915282368659973, 0.1732093095779419, 0.4408244788646698, 0.3726045787334442, -0.15664394199848175, 0.02531658299267292, 0.051332052797079086, -0.0543770007789135, 0.3669016659259796, -0.24234996736049652, -0.04771847650408745, 0.03711305558681488, -0.12068086862564087, 0.145605206489563, -0.19200056791305542, 0.08283083885908127, -0.040451351553201675, 0.20583868026733398, 0.007623688783496618, -0.044606130570173264, 0.14925386011600494, 0.11501529067754745, -0.16961193084716797, -0.043095387518405914, 0.20460231602191925, -0.08266695588827133, -0.06495236605405807, -0.45459163188934326, 0.08804486691951752, -0.02759086899459362, -0.33354565501213074, -0.033348627388477325, 0.4336046874523163, -0.015134620480239391, 0.0004987799329683185, 0.14149433374404907, 0.009133778512477875, -0.2703198492527008, -0.1619902104139328, -0.020642511546611786, 0.15514414012432098, -0.5128889679908752, -0.4108780026435852, -0.24300020933151245, 0.09050363302230835, -0.549209475517273, -0.08543113619089127, -0.16585619747638702, 0.4677473306655884, 0.005220837891101837, 0.04772007465362549, 0.523332417011261, -0.11151009798049927, -0.16723892092704773, -0.12993651628494263, -0.34282514452934265, 0.08339692652225494, -0.006448145490139723, 0.44393035769462585, 0.16471955180168152, 0.23401154577732086, 0.02834193781018257, 0.22014465928077698, 0.08269759267568588, -0.33592429757118225, 0.2786372900009155, 0.001565800979733467, 0.20651063323020935, -0.10582081973552704, -0.3012520968914032, -0.025425584986805916, 0.12613822519779205, -0.18214617669582367, 0.12163859605789185, -0.21946746110916138, 0.23752424120903015, 0.30601486563682556, 0.1686583310365677, 0.20523671805858612, -0.1291639804840088, -0.12267272174358368, -0.2524813115596771, -0.018561702221632004, 0.18102513253688812, 0.05294682830572128, -0.05523890256881714, -0.24196727573871613, -0.032254088670015335, 0.3225962817668915, -0.061045389622449875, 0.014851951040327549, 0.03180833160877228, 0.07586377114057541, -0.08194522559642792, -0.2782066762447357, -0.39028602838516235, 0.4074024260044098, -0.00876510888338089, 0.20476682484149933, -0.22962315380573273, 0.1660541146993637, 0.23639842867851257, 0.0036827095318585634, -0.32408279180526733, 0.21221357583999634, -0.16403181850910187, 0.0895010232925415, 0.07894472777843475, 0.1134711503982544, -0.11950530111789703, 0.23410366475582123, 0.1487378031015396, 0.03274901211261749, 0.10801781713962555, -0.36625880002975464, 0.07632781565189362, -0.03757353127002716, 0.09542755782604218, -0.09139963239431381, -0.35405445098876953, 0.24171650409698486, 0.1802264302968979, 0.358039915561676, -0.1495782732963562, 0.2765897214412689, 0.10721202939748764, -0.030082475394010544, -0.42797690629959106, -0.2050340324640274, -0.16185297071933746, 0.015943313017487526, 0.27998459339141846, -0.17489102482795715, -0.13895808160305023, 0.00675901398062706, -0.025944067165255547, -0.11930443346500397, 0.10130488127470016, 0.1819259524345398, -0.568472146987915, 0.28963229060173035, -0.0735921710729599, 0.3036421835422516, 0.3615446388721466, 0.2742058336734772, -0.03760089352726936, 0.1356423795223236, 0.14205525815486908, 0.05175745487213135, 0.05228031799197197, 0.1145404726266861, 0.44172951579093933, 0.007775492500513792, 0.4800368845462799, 0.12656813859939575, -0.058053966611623764, -0.00966431014239788, -0.03277561813592911, -0.030246388167142868, -0.33401596546173096, -0.01684475876390934, -0.051850102841854095, -0.14167681336402893, -0.5122775435447693, -0.19673675298690796, -0.03119894117116928, -0.3337014317512512, -0.05323928967118263, -0.22858957946300507, -0.07176327705383301, 0.10767754167318344, 0.10495060682296753, 0.249781996011734, -0.07660003006458282, -0.08390911668539047, 0.1579046994447708, -0.16967712342739105, 0.25820857286453247, -0.012193473987281322, -0.04313020408153534, 0.041412558406591415, 0.3619517683982849, 0.09937892109155655, 0.10870959609746933, -0.34334173798561096, -0.17978979647159576, 0.034875549376010895, -0.04590563476085663, 0.10334108024835587, 0.0131804458796978, 0.07263841480016708, -0.14977949857711792, -0.2909359335899353, 0.08168748766183853, 0.023718303069472313, -0.17799702286720276, -0.19264957308769226, -0.053252458572387695, -0.054007384926080704, 0.04589967802166939, -0.04408370330929756, -0.5674847364425659, -0.19447003304958344, 0.459941029548645, 0.16785088181495667, -0.058245107531547546, 0.16135916113853455, 0.20734626054763794, 0.2443644255399704, -0.026929602026939392, -0.054094478487968445, 0.04410012811422348, -0.10644534975290298, 0.424024760723114, -0.19461175799369812, -0.19155405461788177, -0.030255168676376343, -0.32986775040626526, 0.03444870561361313, 0.09874454885721207, -0.21502451598644257, 0.0016394311096519232, -0.14541363716125488, 0.2108084261417389, -0.15218795835971832, 0.10879162698984146, 0.3900875151157379, 0.04943086579442024, -0.07479660958051682, -0.13808098435401917, -0.4104960858821869, 0.18764115869998932, 0.26971742510795593, 0.13815967738628387, -0.039736922830343246, 0.2633516192436218, 0.012613375671207905, 0.38055679202079773, 0.19199424982070923, -0.3043586313724518, 0.046021632850170135, -0.3049997389316559, 0.2573343813419342, -0.06797835230827332, -0.30932891368865967, -0.29278630018234253, -0.31058865785598755, -0.19266434013843536, -0.2148534655570984, 0.14295805990695953, 0.03145698085427284, 0.114893339574337, 0.05997825041413307, -0.29405051469802856, -0.16675037145614624, 0.26528069376945496, -0.5815131664276123, 0.26346462965011597, -0.15130677819252014, -0.21372176706790924, -0.45624199509620667, 0.057024579495191574, 0.017246531322598457, 0.011931225657463074, 0.20964281260967255, -0.13022255897521973, -0.5189204812049866, -0.10526994615793228, -0.18256035447120667, 0.18704411387443542, 0.2848895788192749, 0.04092962294816971, 0.21111668646335602, -0.12809960544109344, -0.054487232118844986, 0.12863264977931976, 0.4015105962753296, -0.21011710166931152, -0.5021842122077942, 0.31088656187057495, 0.13007983565330505, -0.5276562571525574, 0.135731041431427, 0.00011564324813662097, 0.34174421429634094, 0.027972836047410965, 0.10776814818382263, -0.20611649751663208, 0.3304411470890045, 0.21485476195812225, 0.2868596017360687, -0.267498642206192, -0.17860491573810577, 0.09590549021959305, 0.008099357597529888, -0.3620225191116333, -0.2194250524044037, 0.03323487192392349, 0.07828644663095474, 0.4012644588947296, -0.16483542323112488, -0.30286070704460144, 0.07894153147935867, 0.19017809629440308, -0.10190927237272263, 0.1642749160528183, 0.36303937435150146, 0.09847574681043625, 0.22405114769935608, 0.1412561982870102, 0.08414855599403381, 0.5798236727714539, -0.005579354707151651, -0.5680823922157288, -0.3137512505054474, -0.23845307528972626, 0.617396354675293, 0.10119286924600601, 0.3702188730239868, 0.5125347375869751, 0.07211211323738098, -0.16071754693984985, -0.0868125855922699, 0.03162730112671852, 0.16694077849388123, 0.12390738725662231, -0.4113566279411316, -0.4321609437465668, 0.5005102753639221, 0.036260467022657394, -0.01686440035700798, 0.26406729221343994, 0.2928216755390167, -0.40012097358703613, 0.48604562878608704, 0.12194936722517014, 0.9126860499382019, -0.11458777636289597, 0.3797573745250702, 0.02325834333896637, -0.3634341359138489, 0.6220882534980774, 0.1060950830578804, -0.10807442665100098, -0.10139525681734085, -0.12340675294399261, -0.05260138213634491, -0.29971686005592346, 0.075495645403862, 0.12754493951797485, -0.42125019431114197, -0.15734679996967316, -0.38438963890075684, 0.06472993642091751, 0.00131786719430238, 0.28703996539115906, 0.020765483379364014, -0.3447219431400299, -0.2162037491798401, 0.1235492080450058, 0.22556062042713165, -0.17490114271640778, -0.1564711183309555, -0.20462608337402344, -0.31682509183883667, 0.05993415415287018, -0.6070044040679932, -0.289614200592041, -0.1706380546092987, -0.150121808052063, 0.22765594720840454, -0.5194817781448364, 0.29855427145957947, 0.48069316148757935, 0.24221545457839966, -0.1505766659975052, 0.010035928338766098, 0.20476984977722168, -0.06755171716213226, 0.21477220952510834, 0.11308611184358597, -0.34052810072898865, 0.26289957761764526, 0.22042980790138245, -0.22001905739307404, 0.3842209279537201, 0.10541678220033646, -0.59122633934021, 0.24023005366325378, 0.044469159096479416, 0.02964349277317524, -0.28970545530319214, -0.27574583888053894, 0.420380562543869, 0.022382011637091637, -0.18841467797756195, 0.08962828665971756, 0.14984507858753204, -0.15828044712543488, -0.08486764878034592, 0.3082495927810669, -0.21288129687309265, 0.13401184976100922, 0.0668448954820633, -0.01615515537559986, 0.08984324336051941, 0.6236746907234192, 0.14867472648620605, 0.0013383064651861787, -0.06695206463336945, 0.18510204553604126, 0.3109862804412842, -0.3935837745666504, -0.0033088831696659327, 0.11223126202821732, 0.01951732486486435, -0.3946281969547272, -0.10750485956668854, 0.17110851407051086, 0.23161450028419495, -0.3769899904727936, -0.25382789969444275, -0.383040189743042, 0.32056376338005066, -0.05764797702431679, 0.20320190489292145, -0.20920848846435547, 0.22757355868816376, -0.05032595247030258, 0.4206256866455078, -0.2381621152162552, -0.03825979679822922, 0.13449259102344513, 0.012354986742138863, 0.23491278290748596, 0.17588235437870026, -0.13896390795707703, -0.2987452447414398, 0.09553603827953339, 0.13829725980758667, 0.3021371364593506, -0.16507558524608612, -0.21459728479385376, 0.14360877871513367, 0.10847455263137817, -0.05491994693875313, -0.07088062167167664, -0.14403681457042694, 0.3611431419849396, -0.3057287335395813, -0.2458440661430359, 0.20380407571792603, -0.07542542368173599, 0.10357943922281265, 0.40345728397369385, 0.24245743453502655, -0.1424100697040558, 0.02497728541493416, 0.2437244951725006, 0.1948850452899933, 0.0925835371017456, 0.20050865411758423, 0.16766925156116486, 0.12462002784013748, -0.11072574555873871, 0.30399268865585327, 0.40958699584007263, 0.0034350266214460135, 0.030754761770367622, -0.214852437376976, 0.1017242968082428, -0.010052143596112728, 0.20326340198516846, 0.1487463116645813, -0.32353702187538147, 0.4601850211620331, 0.0889047160744667, 0.18340928852558136, -0.22152283787727356, 0.049205441027879715, 0.28628137707710266, -0.15712957084178925, -0.01849699765443802, 0.14389276504516602, -0.0952475294470787, 0.32414010167121887, -0.30166852474212646, -0.033654384315013885, -0.2822113335132599, 0.06781364232301712, 0.20132572948932648, 0.18109898269176483, 0.2624465227127075, -0.08671791851520538, 0.10899501293897629, 0.1661403328180313, 0.21741914749145508, 0.1549297720193863, -0.17978517711162567, 0.23214493691921234, 0.4300881028175354, -0.03747742250561714, 0.2956375181674957, 0.21659041941165924, 0.20320285856723785, 0.0660923644900322, 0.3515615165233612, 0.0029339639004319906, 0.33703431487083435, 0.40482255816459656, 0.3064148426055908, -0.23241804540157318, 0.08841477334499359, 0.2514283061027527, 0.12402675300836563, -0.2480948120355606, -0.09324309974908829, 0.03660013899207115, -0.02848413772881031, -0.11214648932218552, 0.002653157338500023, -0.577165961265564, 0.15579907596111298, -0.04570269212126732, 0.13068978488445282, -0.38079777359962463, 0.35489869117736816, 0.269854336977005, 0.08290033042430878, -0.15741460025310516, -0.06421004235744476, -0.13299809396266937, 0.20971213281154633, 0.28740420937538147, 0.4605228304862976, 0.14550596475601196, 0.09012982994318008, -0.09371600300073624, 0.6465049386024475, -0.2929745316505432, -0.13884925842285156, 0.014124790206551552, -0.11155514419078827, -0.06822766363620758, -0.13553930819034576, 0.24333126842975616, 0.16713422536849976, -0.07678575068712234, 0.1482759565114975, 0.08290999382734299, 0.29425641894340515, -0.5951107740402222, 0.192540243268013, -0.05413385480642319, -0.1810988336801529, -0.15055565536022186, 0.22174470126628876, -0.14824572205543518, 0.033593714237213135, 0.5801292061805725, -0.22209212183952332, -0.0291155893355608, 0.16278114914894104, 0.03062167949974537, 0.03702076897025108, 0.3156173527240753, 0.40716856718063354, 0.5021682381629944, -0.08574482053518295, -0.14386069774627686, -0.5734360814094543, -0.06594151258468628, -0.07921233028173447, -0.15244056284427643, -0.03745727986097336, 0.009376419708132744, 0.31010347604751587, 0.3368242681026459, 0.30971184372901917, -0.1413751244544983, -0.3536224067211151, 0.17103448510169983, -0.19504785537719727, -0.342510461807251, 0.33375948667526245, 0.341886967420578, 0.08028978854417801, 0.11117054522037506, -0.22852808237075806, 0.16027919948101044, 0.00439494987949729, -0.03516850993037224, -0.08192149549722672, -0.15063318610191345, -0.07124520093202591, 0.5276613831520081, -0.11534027010202408, 0.36956775188446045, -0.09022757411003113, 0.08221276849508286, -0.19224968552589417, -0.4513828158378601, -0.44873490929603577, 0.4448745846748352, -0.07231494039297104, 0.3471497893333435, -0.3197874128818512, 0.011493292637169361, 0.16203506290912628, -0.26627108454704285, -0.07950105518102646, -0.1420758217573166, -0.4082280397415161, 0.3657556176185608, -0.1145637258887291, -0.02504485659301281, -0.14239183068275452, 0.1617487370967865, 0.017602480947971344, 0.2556729018688202, 0.07242535799741745, -0.1503092348575592, 0.2750251293182373, -0.30982688069343567, -0.13333843648433685, 0.22922645509243011, -0.030589403584599495, 0.1441349983215332, -0.16572630405426025, -0.7632924318313599, -0.17663872241973877, 0.3928306996822357, -0.07945005595684052, 0.07216605544090271, 0.17348012328147888, 0.06610774993896484, 0.09233040362596512, -0.1821918934583664, 0.5891472697257996, -0.1789296418428421, 0.05422123894095421, -0.4637472927570343, -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.0949397161602974, 0.27810609340667725, -0.03920426592230797, 0.023058241233229637, 0.24360939860343933, 0.37788695096969604, 0.2803979218006134, -0.15852844715118408, -0.2577434480190277, -0.07451794296503067, 0.3132958710193634, 0.5345354676246643, -0.15967917442321777, 0.000742740579880774, 0.21608322858810425, -0.24428188800811768, 0.13670668005943298, 0.10007959604263306, -0.19503509998321533, 0.019685113802552223, -0.04713178053498268, -0.14778968691825867, 0.08823782950639725, -0.03745603188872337, -0.335025817155838, -0.03344400227069855, -0.19994011521339417, -0.15000872313976288, -0.11337204277515411, -0.4348909258842468, -0.0019856388680636883, -0.03709760308265686, 0.0035895835608243942, 0.34100237488746643, -0.00012016267282888293, 0.1059938371181488, 0.29288986325263977, 0.12394345551729202, -0.5508258938789368, -0.19715052843093872, -0.34577107429504395, -0.5728427767753601, 0.11229110509157181, -0.1652759462594986, 0.25427135825157166, -0.5107665061950684, 0.05927529186010361, -0.5218868255615234, 0.1629171520471573, 0.23372898995876312, 0.13914266228675842, 0.04114655405282974, 0.4349202513694763, -0.1688043624162674, 0.11749064922332764, 0.23635882139205933, -0.18145784735679626, 0.014709833078086376, -0.01716119796037674, 0.1729213148355484, 0.3916803002357483, 0.04699813202023506, 0.24330836534500122, -0.2264605611562729, 0.4740357995033264, 0.28063973784446716, -0.06069143861532211, -0.1978563815355301, -0.04758167266845703, 0.1038510873913765, 0.6565676331520081, -0.41953304409980774, -0.7511698603630066, -0.35298603773117065, 0.6070224642753601, -0.17421115934848785, -0.18564392626285553, 0.1261359304189682, 0.06255359947681427, 0.09051733464002609, 0.09799932688474655, -0.5244420170783997, -0.19202031195163727, 0.17561554908752441, 0.04871649295091629, 0.20535117387771606, 0.08919034153223038, 0.13118255138397217, -0.0858902856707573, -0.11794713884592056, 0.3495790660381317, -0.04923572391271591, -0.10293730348348618, 0.17755894362926483, -0.2410249263048172, 0.0938495397567749, -0.26556459069252014, -0.377748966217041, -0.042680785059928894, -0.004562691785395145, 0.414227157831192, -0.15843842923641205, -0.16479027271270752, 0.1298503279685974, 0.23617127537727356, 0.006069095805287361, 0.03514513373374939, 0.2194174826145172, -0.42754560708999634, -0.4441646337509155, -0.05183450132608414, -0.12919339537620544, -0.2086058259010315, -0.2535246014595032, 0.2992110848426819, -0.12391622364521027, 0.2640658915042877, 0.3124903738498688, 0.01770339161157608, -0.06373368948698044, -0.3315076529979706, 0.09472545236349106, -0.17982500791549683, 0.006159115582704544, 0.3212430477142334, 0.09173876792192459, 0.1746663600206375, 0.37852123379707336, 0.4458308815956116, -0.08895286917686462, 0.0020018289797008038, 0.09829436242580414, -0.08522927016019821, 0.19052396714687347, -0.2227182686328888, -0.02006516605615616, -0.01675204001367092, -0.14746813476085663, 0.16227981448173523, -0.1375240832567215, 0.0615992434322834, -0.04303857684135437, 0.16725635528564453, 0.01393013633787632, 0.023175880312919617, 0.10484950244426727, 0.09476087242364883, -0.2394232153892517, -0.06345727294683456, 0.2614070177078247, -0.09714926034212112, -0.14946933090686798, -0.5945221781730652, 0.09583815932273865, -0.027996229007840157, -0.21578243374824524, -0.04640102759003639, 0.3512549102306366, 0.1539970487356186, -0.02717389166355133, 0.05578463897109032, -0.06569787114858627, -0.18242231011390686, -0.15912719070911407, 0.05504174530506134, 0.11933674663305283, -0.48665711283683777, -0.33389928936958313, -0.1635718047618866, 0.1480283886194229, -0.4304981827735901, -0.11392378807067871, -0.15929748117923737, 0.4569556415081024, -0.037204381078481674, -0.08564329892396927, 0.6153529286384583, -0.08492562174797058, -0.15003737807273865, -0.14382590353488922, -0.26872754096984863, 0.05428845435380936, 0.056582409888505936, 0.3473593592643738, 0.06860806792974472, 0.18727049231529236, 0.16017121076583862, 0.17123103141784668, 0.04136039689183235, -0.4098116159439087, 0.2447950839996338, -0.07351291924715042, 0.36545297503471375, -0.14919202029705048, -0.17088021337985992, 0.07408495992422104, 0.10035476088523865, -0.13557930290699005, 0.020767921581864357, -0.2471001297235489, 0.23222053050994873, 0.32816702127456665, 0.20380349457263947, 0.12480638921260834, -0.1473127156496048, -0.060930196195840836, -0.25259387493133545, 0.02104622684419155, 0.29679420590400696, 0.006020009517669678, -0.007876642048358917, -0.2195042073726654, -0.08109360188245773, 0.30166351795196533, -0.05022921785712242, 0.053865592926740646, 0.04001478850841522, 0.16480959951877594, -0.12117379158735275, -0.30051618814468384, -0.4174990653991699, 0.4620878994464874, -0.005294082686305046, 0.13807648420333862, -0.2056005895137787, 0.17915399372577667, 0.10181526094675064, -0.04546935111284256, -0.25378140807151794, 0.2562505602836609, -0.07626773416996002, 0.17405717074871063, 0.012955599464476109, 0.09005822241306305, -0.22050711512565613, 0.12777815759181976, 0.16491183638572693, -0.010082067921757698, 0.0791926458477974, -0.2740038335323334, 0.012812834233045578, -0.011099031195044518, 0.14490878582000732, -0.11383812874555588, -0.29444587230682373, 0.14845313131809235, 0.13599954545497894, 0.4129467308521271, -0.026986924931406975, 0.2385406345129013, 0.1496562510728836, -0.007858699187636375, -0.4193468987941742, -0.22932901978492737, -0.21277084946632385, 0.012888575904071331, 0.3095219135284424, -0.155227392911911, -0.13882341980934143, 0.09761535376310349, -0.009185702539980412, -0.009540058672428131, 0.062060095369815826, 0.17180919647216797, -0.5074899792671204, 0.23286978900432587, -0.08098115026950836, 0.28832951188087463, 0.4779852330684662, 0.262775719165802, -0.041958488523960114, 0.2053913176059723, 0.042105745524168015, 0.08936400711536407, 0.0841003879904747, 0.1871209591627121, 0.3860478103160858, 0.14317728579044342, 0.4335135817527771, 0.11573455482721329, 0.05733095109462738, -0.16723847389221191, 0.06266413629055023, 0.05766090378165245, -0.3890415132045746, -0.010809590108692646, -0.052741654217243195, -0.009630798362195492, -0.3886744976043701, -0.2951344847679138, 0.023007111623883247, -0.3966550827026367, -0.07378650456666946, -0.13562026619911194, -0.06715502589941025, 0.0733819231390953, -0.08730235695838928, 0.19718283414840698, 0.04498367756605148, -0.12644070386886597, 0.1811293065547943, -0.08129129558801651, 0.16928303241729736, -0.02780023217201233, -0.054672032594680786, -0.020606467500329018, 0.2912626564502716, 0.17871859669685364, 0.19991889595985413, -0.26102519035339355, -0.1668778955936432, 0.013386672362685204, 0.0031255066860467196, 0.12125469744205475, 0.011451964266598225, -0.0469479002058506, -0.10821382701396942, -0.4225561320781708, 0.054674889892339706, 0.19603732228279114, -0.10948096215724945, -0.09962275624275208, 0.024214349687099457, -0.22067014873027802, 0.05930172652006149, -0.12589454650878906, -0.5891421437263489, -0.21578176319599152, 0.2873731851577759, 0.17454494535923004, -0.08030110597610474, 0.21166527271270752, 0.30831626057624817, 0.31072038412094116, 0.19657154381275177, -0.047543782740831375, -0.009916289709508419, -0.030319364741444588, 0.5247276425361633, -0.19515684247016907, -0.22515493631362915, 0.04676482453942299, -0.41356217861175537, 0.11016862839460373, 0.12353111058473587, -0.15743477642536163, 0.13875538110733032, -0.058001503348350525, 0.17637479305267334, -0.2004726678133011, 0.0811585783958435, 0.3056039810180664, 0.150597482919693, -0.08414456993341446, -0.08475286513566971, -0.40997350215911865, 0.13573375344276428, 0.300432413816452, 0.22789013385772705, -0.10914281755685806, 0.1362154334783554, -0.06730672717094421, 0.45046743750572205, 0.10689472407102585, -0.2593744695186615, 0.04322045296430588, -0.27512258291244507, 0.38260433077812195, -0.04023418948054314, -0.4448501169681549, -0.32427453994750977, -0.3273378312587738, -0.24523930251598358, -0.20404283702373505, 0.07929299026727676, 0.023794084787368774, 0.041927509009838104, 0.1391569823026657, -0.15694521367549896, -0.1752619594335556, 0.21278278529644012, -0.6013412475585938, 0.29567286372184753, -0.1307012438774109, -0.2297116219997406, -0.48188167810440063, 0.09930674731731415, -0.04490109160542488, 0.07699720561504364, 0.04795526713132858, -0.13112328946590424, -0.5606605410575867, -0.15558767318725586, -0.18801873922348022, 0.10974912345409393, 0.22040195763111115, 0.26592758297920227, 0.21456588804721832, -0.09779983013868332, -0.1470441371202469, 0.10063403844833374, 0.3842468857765198, -0.21254761517047882, -0.5697070360183716, 0.4248265027999878, 0.23412378132343292, -0.44420677423477173, 0.014243576675653458, 0.009996205568313599, 0.3804399371147156, -0.01140797883272171, 0.10199171304702759, -0.13364990055561066, 0.36162906885147095, 0.20967091619968414, 0.24136006832122803, -0.3181270658969879, -0.11248583346605301, 0.030746856704354286, -0.05671503022313118, -0.35921719670295715, -0.3129602074623108, 0.020504755899310112, 0.14320915937423706, 0.3045032322406769, -0.16186484694480896, -0.4555439352989197, -0.021911337971687317, 0.23879089951515198, -0.11754873394966125, 0.1498008370399475, 0.3454281687736511, 0.1717686802148819, 0.03341429680585861, 0.12799623608589172, 0.18134960532188416, 0.5413859486579895, 0.11003510653972626, -0.5896154046058655, -0.2115224450826645, -0.37175601720809937, 0.6812925338745117, 0.025258367881178856, 0.17498111724853516, 0.436909556388855, -0.04572627693414688, -0.11101754009723663, 0.00848688930273056, 0.05018210783600807, 0.22715367376804352, 0.04829668253660202, -0.47184431552886963, -0.4662942886352539, 0.3843889534473419, 0.006795654073357582, 0.054086629301309586, 0.28951025009155273, 0.20819970965385437, -0.45735859870910645, 0.4454084634780884, 0.0764070451259613, 0.9311355948448181, 0.04582791402935982, 0.305708110332489, 0.07189777493476868, -0.39164629578590393, 0.5683717727661133, 0.11818736046552658, -0.07615971565246582, -0.10813312232494354, -0.2594335079193115, -0.041350677609443665, -0.2849694490432739, 0.14933302998542786, 0.11071895807981491, -0.47170737385749817, -0.12157481163740158, -0.42971763014793396, 0.08615659177303314, 0.0397169291973114, 0.3061501383781433, 0.15863703191280365, -0.28751733899116516, -0.2091754674911499, 0.084949791431427, 0.2206137329339981, -0.23847351968288422, -0.08679787814617157, -0.17070847749710083, -0.481887549161911, 0.05096643045544624, -0.5248125195503235, -0.18666213750839233, -0.15441890060901642, -0.02190234512090683, 0.17813171446323395, -0.5238458514213562, 0.32838237285614014, 0.38980633020401, 0.278761088848114, -0.1245281919836998, -0.0041829850524663925, 0.11625634133815765, -0.035959284752607346, 0.15504391491413116, 0.05139114335179329, -0.34948599338531494, 0.2678329646587372, 0.19640374183654785, -0.20331300795078278, 0.47843843698501587, 0.06785697489976883, -0.5774132609367371, 0.216476708650589, 0.06504495441913605, 0.13055789470672607, -0.3340483009815216, -0.35304754972457886, 0.4331819713115692, 0.011124437674880028, -0.2080412656068802, 0.06322192400693893, 0.03321125730872154, -0.2652072310447693, -0.0405534990131855, 0.2443288266658783, -0.18198253214359283, 0.1550500988960266, 0.05029866844415665, 0.08926202356815338, 0.15331384539604187, 0.689982533454895, 0.016998833045363426, 0.03862936049699783, 0.028053056448698044, 0.1391945630311966, 0.27704283595085144, -0.3112420439720154, -0.08528964221477509, 0.06534728407859802, -0.0030738431960344315, -0.3808889091014862, -0.132685124874115, 0.16940782964229584, 0.3222756087779999, -0.3416878283023834, -0.28422656655311584, -0.4303428530693054, 0.2670711874961853, 0.0678493082523346, 0.23155052959918976, -0.25646063685417175, 0.19637219607830048, -0.08291658014059067, 0.38269472122192383, -0.2058662623167038, -0.14670979976654053, 0.07241033017635345, 0.060188502073287964, 0.22613085806369781, 0.13469932973384857, -0.17330493032932281, -0.2768844962120056, 0.09399457275867462, 0.04038514941930771, 0.3214467167854309, -0.13581658899784088, -0.16242241859436035, 0.14889861643314362, 0.22498872876167297, -0.046423863619565964, -0.10005587339401245, -0.16432838141918182, 0.2909638583660126, -0.2527958154678345, -0.31242835521698, 0.24802176654338837, -0.07477162033319473, 0.10959428548812866, 0.22409921884536743, 0.25882524251937866, -0.1933652013540268, 0.03635711967945099, 0.2598108649253845, 0.25243839621543884, 0.13452084362506866, 0.25130710005760193, 0.14657710492610931, 0.15585675835609436, -0.25235047936439514, 0.27444443106651306, 0.17754510045051575, 0.04167209565639496, 0.05493298918008804, -0.2907543480396271, 0.1783408224582672, -0.09740504622459412, 0.09515276551246643, 0.2716445028781891, -0.3596317768096924, 0.4081239402294159, 0.08373785018920898, 0.1162090003490448, -0.28698933124542236, 0.04726646840572357, 0.24098752439022064, -0.1543053835630417, -0.034492127597332, 0.18016543984413147, -0.09356026351451874, 0.22192031145095825, -0.42233502864837646, 0.028025444597005844, -0.29771482944488525, 0.11743532866239548, 0.24663838744163513, 0.2686142027378082, 0.20326557755470276, 0.06596613675355911, 0.054995905607938766, 0.23477981984615326, 0.13740898668766022, 0.2698476016521454, -0.09229841828346252, 0.21265488862991333, 0.6340630054473877, -0.08870935440063477, 0.3224455416202545, 0.23169344663619995, 0.23311984539031982, -0.016710171476006508, 0.40930062532424927, -0.03344689682126045, 0.3525483012199402, 0.26043203473091125, 0.2266252636909485, -0.18089433014392853, 0.11434459686279297, 0.1710263192653656, 0.09695574641227722, -0.19436442852020264, 0.06993385404348373, 0.023859158158302307, -0.10638745129108429, -0.15685828030109406, 0.09023633599281311, -0.5656858682632446, 0.06349388509988785, -0.1466244012117386, 0.05560464784502983, -0.27163419127464294, 0.5452591180801392, 0.3046427071094513, -0.04584750160574913, -0.14109207689762115, -0.06803042441606522, -0.0762576013803482, 0.19922609627246857, 0.30871114134788513, 0.4064924120903015, 0.23436424136161804, 0.23405961692333221, -0.08941557258367538, 0.4733199179172516, -0.11988368630409241, -0.2696188688278198, 0.04619055613875389, -0.08207681775093079, -0.0833967924118042, -0.1651281863451004, 0.23092013597488403, 0.13667257130146027, -0.0681317001581192, 0.19529372453689575, 0.1488000750541687, 0.2619010806083679, -0.5672978162765503, 0.36572808027267456, -0.026823513209819794, -0.2480602115392685, -0.018157660961151123, 0.21508465707302094, -0.1077648252248764, -0.20429657399654388, 0.6744126081466675, -0.14078333973884583, 0.03372988477349281, 0.16029609739780426, 0.02528868429362774, 0.03533386066555977, 0.3453667461872101, 0.377351313829422, 0.4509744346141815, -0.08885183930397034, -0.0016575775807723403, -0.5564727783203125, -0.039256662130355835, -0.03738359734416008, -0.21617788076400757, -0.01393662579357624, 0.07440929859876633, 0.207365483045578, 0.28141117095947266, 0.3518778085708618, -0.04979719594120979, -0.26261574029922485, 0.14647327363491058, -0.21917568147182465, -0.4201037287712097, 0.2965901494026184, 0.3462181091308594, 0.10360541194677353, -0.0007776141283102334, -0.14395028352737427, 0.19841165840625763, 0.0009390796767547727, -0.03382984176278114, -0.19280871748924255, -0.06118064001202583, 0.07509578764438629, 0.4989214539527893, -0.15437883138656616, 0.46888378262519836, -0.07693753391504288, 0.0583556666970253, -0.172182098031044, -0.4284752905368805, -0.46071088314056396, 0.5446795225143433, 0.045815687626600266, 0.21894162893295288, -0.3439551889896393, 0.050886012613773346, 0.10712391883134842, -0.22858798503875732, -0.011119929142296314, -0.12291139364242554, -0.40915992856025696, 0.4311237335205078, -0.06313210725784302, 0.09715760499238968, -0.13250990211963654, 0.027226896956562996, -0.031444717198610306, 0.343938410282135, 0.062411993741989136, -0.16124753654003143, 0.36245569586753845, -0.18641391396522522, -0.21183471381664276, 0.20204393565654755, -0.06474225968122482, 0.29630064964294434, -0.06873342394828796, -0.7376134991645813, -0.22768379747867584, 0.42144671082496643, -0.17648743093013763, 0.04613032564520836, 0.14300814270973206, -0.1273701936006546, 0.1318133920431137, -0.1200210303068161, 0.5443983674049377, -0.3239012658596039, -0.020789317786693573, -0.44935142993927, -0.19880537688732147 ]
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.11457165330648422, 0.2276228368282318, -0.06840589642524719, -0.02512284554541111, 0.15373165905475616, 0.2710108458995819, 0.2267978936433792, -0.10380753874778748, 0.01638696901500225, -0.052759479731321335, 0.30326253175735474, 0.5584481358528137, -0.28912925720214844, 0.04707682132720947, 0.36571165919303894, -0.28052419424057007, 0.08732884377241135, 0.03961796313524246, -0.2587963938713074, -0.07906921207904816, -0.018086494877934456, -0.2019384503364563, 0.22858582437038422, -0.03260155767202377, -0.228647381067276, -0.12322380393743515, -0.09939409792423248, -0.2629573345184326, -0.14776009321212769, -0.4609299302101135, 0.061837535351514816, -0.09373173117637634, 0.03619713708758354, 0.2516758441925049, -0.00011855689808726311, 0.11188315600156784, 0.2736070454120636, 0.14261026680469513, -0.5661508440971375, -0.2433645874261856, -0.2592470347881317, -0.5845744609832764, 0.2074289321899414, -0.18653710186481476, 0.22075429558753967, -0.34954869747161865, 0.1405089944601059, -0.5783146619796753, 0.2560049593448639, 0.22113139927387238, 0.15158076584339142, -0.009261120110750198, 0.24897758662700653, -0.12238829582929611, 0.2697334885597229, 0.2970869541168213, -0.16883842647075653, 0.016113324090838432, 0.09526330232620239, 0.20360738039016724, 0.18663638830184937, 0.04338672012090683, 0.1943320631980896, -0.19954468309879303, 0.4199502468109131, 0.2216571867465973, -0.11024408787488937, -0.1197422593832016, -0.12061513215303421, 0.15855465829372406, 0.7166867852210999, -0.337650865316391, -0.7637709379196167, -0.38330596685409546, 0.47166913747787476, -0.20022176206111908, -0.27193745970726013, 0.22917786240577698, 0.032228343188762665, 0.10015928745269775, 0.05784193053841591, -0.5695366859436035, -0.16894325613975525, 0.1344405561685562, -0.07132072746753693, 0.26621100306510925, 0.12829364836215973, 0.14290614426136017, -0.029444588348269463, 0.04960589110851288, 0.444947212934494, 0.07186385244131088, -0.08500498533248901, 0.2023865282535553, -0.27542224526405334, -0.011199304834008217, -0.20097030699253082, -0.15550166368484497, 0.022890442982316017, -0.02644950896501541, 0.4322568476200104, -0.09772717952728271, -0.34914976358413696, 0.006252259016036987, 0.23159055411815643, -0.09026730805635452, 0.0625157430768013, 0.16395947337150574, -0.36664754152297974, -0.517290472984314, -0.09594445675611496, -0.21363970637321472, -0.1333697885274887, -0.10836148262023926, 0.27430275082588196, -0.1353411078453064, 0.11140932887792587, 0.28892743587493896, 0.009679177775979042, -0.101847805082798, -0.3424539268016815, 0.01088688988238573, -0.2589617371559143, -0.017643969506025314, 0.42888590693473816, 0.12404316663742065, 0.10307728499174118, 0.46954789757728577, 0.31528744101524353, -0.2198575884103775, 0.004845550749450922, 0.09217269718647003, -0.06951576471328735, 0.27487635612487793, -0.18772907555103302, 0.06366695463657379, -0.05308837071061134, -0.2365313619375229, 0.04882737249135971, -0.16730548441410065, 0.1473577320575714, -0.08122839778661728, 0.18974635004997253, 0.04589194804430008, -0.027626875787973404, 0.17269492149353027, 0.17452067136764526, -0.16220572590827942, -0.10533952713012695, 0.26714572310447693, -0.07654249668121338, -0.21060286462306976, -0.38161009550094604, 0.0947098657488823, -0.03195997700095177, -0.31378114223480225, -0.06760983914136887, 0.3853580057621002, 0.028178853914141655, 0.07440219074487686, 0.14191168546676636, -0.15033099055290222, -0.29727283120155334, -0.14959973096847534, -0.025413163006305695, 0.06462937593460083, -0.6223893165588379, -0.33020898699760437, -0.36232125759124756, 0.047130849212408066, -0.47136032581329346, -0.042886681854724884, -0.18175345659255981, 0.6620757579803467, -0.013825650326907635, -0.09142643958330154, 0.5936517715454102, -0.0985187292098999, -0.2818261384963989, -0.19232705235481262, -0.2987496256828308, 0.053020935505628586, 0.0030412222258746624, 0.524549126625061, 0.2708129584789276, 0.2221018522977829, 0.01333955954760313, 0.18857267498970032, 0.0027448132168501616, -0.2894114851951599, 0.25835326313972473, -0.03934575617313385, 0.2655002772808075, -0.019055090844631195, -0.12005240470170975, 0.0276349987834692, 0.21072804927825928, -0.06631802022457123, 0.1436348855495453, -0.20566004514694214, 0.22516079246997833, 0.08479426801204681, 0.20022912323474884, 0.156226247549057, -0.17841534316539764, -0.11164092272520065, -0.26889756321907043, 0.002133373636752367, 0.22223222255706787, 0.00032732056570239365, 0.06356208026409149, -0.22767169773578644, -0.02829151414334774, 0.363438218832016, 0.0011587892659008503, 0.04367595165967941, 0.033929336816072464, -0.019351541996002197, -0.09790954738855362, -0.2692066431045532, -0.39940735697746277, 0.4055218994617462, -0.06630388647317886, 0.15457870066165924, -0.21014125645160675, 0.23638483881950378, 0.258198618888855, 0.002144567435607314, -0.31616804003715515, 0.24855712056159973, -0.2150736302137375, 0.07239758968353271, 0.09163277596235275, 0.0036373392213135958, -0.042056605219841, 0.20557771623134613, 0.1146872341632843, 0.00662743067368865, 0.06574085354804993, -0.3981013894081116, 0.2017662525177002, 0.008633019402623177, 0.07445493340492249, -0.1684645414352417, -0.3035770058631897, 0.2037474811077118, 0.08761290460824966, 0.3461202383041382, -0.13057319819927216, 0.26280319690704346, 0.029508410021662712, 0.006605899892747402, -0.44811931252479553, -0.16948792338371277, -0.16740363836288452, -0.012895588763058186, 0.31512224674224854, -0.2133641093969345, -0.039449308067560196, -0.021272869780659676, 0.06905506551265717, -0.12291877716779709, 0.164433091878891, 0.13883252441883087, -0.49025779962539673, 0.2081882506608963, -0.07127553224563599, 0.37395867705345154, 0.3999241888523102, 0.25875124335289, 0.030625950545072556, 0.09537102282047272, 0.14118927717208862, 0.017081696540117264, 0.11530374735593796, 0.17241384088993073, 0.37826427817344666, 0.0006370047340169549, 0.39763143658638, 0.10099557042121887, -0.03653169795870781, -0.03233816474676132, -0.05551407113671303, 0.015507591888308525, -0.30345988273620605, -0.07774735242128372, -0.035102587193250656, -0.04241254925727844, -0.46222546696662903, -0.21902833878993988, 0.07560549676418304, -0.4277580976486206, -0.024082493036985397, -0.22057488560676575, -0.07495390623807907, 0.04495834931731224, -0.04075021669268608, 0.2646929919719696, -0.11343102157115936, -0.07501672208309174, 0.18739797174930573, -0.21554780006408691, 0.25057706236839294, 0.011259582825005054, -0.07217907905578613, 0.007608138956129551, 0.4727572202682495, 0.16811469197273254, 0.1057901382446289, -0.31630218029022217, -0.12120403349399567, 0.009463407099246979, -0.02594095841050148, 0.1020842045545578, 0.06647519767284393, 0.02123160846531391, -0.088280089199543, -0.2201033979654312, 0.0009325422579422593, -0.008592327125370502, -0.12769396603107452, -0.21658855676651, -0.030045652762055397, 0.039777472615242004, 0.06768326461315155, -0.11831995099782944, -0.6376335620880127, -0.1809842735528946, 0.31804147362709045, 0.17663107812404633, -0.054810602217912674, 0.09399919211864471, 0.15494127571582794, 0.3043791949748993, 0.07760067284107208, -0.1957985758781433, 0.03465525433421135, -0.030267927795648575, 0.4247758090496063, -0.1688501089811325, -0.13420350849628448, -0.02971394546329975, -0.3406839370727539, 0.09084808081388474, 0.12222053855657578, -0.2838965058326721, 0.16039533913135529, -0.15056811273097992, 0.21986834704875946, -0.12774541974067688, 0.027366505935788155, 0.3573591709136963, 0.06029824912548065, -0.029778877273201942, -0.10337771475315094, -0.34014683961868286, 0.11372790485620499, 0.25121068954467773, 0.07336597144603729, -0.09790101647377014, 0.2904841899871826, 0.009495123289525509, 0.4994261860847473, 0.08531926572322845, -0.23911044001579285, 0.014283336699008942, -0.22478103637695312, 0.20571479201316833, -0.14491792023181915, -0.3179526925086975, -0.3026531934738159, -0.31834086775779724, -0.33109036087989807, -0.18006592988967896, 0.1134009137749672, -0.028571873903274536, 0.1375083327293396, 0.0903942808508873, -0.19871917366981506, -0.20269259810447693, 0.2708092927932739, -0.6740233302116394, 0.18133971095085144, -0.08914978802204132, -0.12582945823669434, -0.404538094997406, 0.09849599003791809, -0.07019180804491043, -0.03845870494842529, 0.26551327109336853, -0.12658527493476868, -0.5840796232223511, -0.11192040145397186, -0.22784610092639923, 0.11935154348611832, 0.20903360843658447, -0.02728709951043129, 0.2653866708278656, -0.12205422669649124, -0.0045998780988156796, 0.2067835032939911, 0.37255150079727173, -0.2080983966588974, -0.4580451548099518, 0.28520259261131287, 0.14734254777431488, -0.46165356040000916, 0.11518808454275131, -0.07962432503700256, 0.4444972574710846, -0.06138012930750847, 0.005146712530404329, -0.1397315263748169, 0.4023556113243103, 0.23057855665683746, 0.2341126948595047, -0.3104240298271179, -0.14495889842510223, 0.13115443289279938, 0.0012800039257854223, -0.24865449965000153, -0.13493122160434723, -0.00986895989626646, 0.02133963070809841, 0.2452438622713089, -0.23266083002090454, -0.36763790249824524, 0.029967695474624634, 0.20068998634815216, -0.13986295461654663, 0.1253408044576645, 0.2870238721370697, 0.12197419255971909, 0.13496071100234985, 0.13992398977279663, 0.11214456707239151, 0.5952416658401489, -0.020247673615813255, -0.47991257905960083, -0.2391507476568222, -0.2915227711200714, 0.6086896061897278, 0.10367044806480408, 0.336112380027771, 0.45948609709739685, 0.0016222341218963265, -0.23520970344543457, -0.012035101652145386, -0.0177956223487854, 0.09192528575658798, 0.012325023300945759, -0.43336471915245056, -0.5076605677604675, 0.47291383147239685, -0.07693538814783096, -0.030795998871326447, 0.22084955871105194, 0.26148688793182373, -0.46579164266586304, 0.6054718494415283, 0.19985464215278625, 0.8932751417160034, -0.14690589904785156, 0.3738090991973877, 0.03481141850352287, -0.3326677978038788, 0.6814112663269043, 0.07786816358566284, -0.135481059551239, -0.12880951166152954, -0.13335512578487396, -0.03701674938201904, -0.2810206115245819, 0.022582631558179855, 0.24654217064380646, -0.3567446172237396, -0.10296040773391724, -0.25158655643463135, 0.0648588165640831, 0.0022844166960567236, 0.3220762610435486, 0.0512564517557621, -0.2604305148124695, -0.17493097484111786, 0.11279543489217758, 0.19399619102478027, -0.2546723484992981, -0.18195077776908875, -0.06885170191526413, -0.35328948497772217, 0.02652856893837452, -0.5213058590888977, -0.3650173842906952, -0.07013852149248123, -0.1139119416475296, 0.14871810376644135, -0.6611776947975159, 0.3467841148376465, 0.46164754033088684, 0.18794097006320953, -0.12859486043453217, -0.0037235100753605366, 0.17696508765220642, -0.006800352595746517, 0.308960497379303, 0.18857675790786743, -0.33462098240852356, 0.2705007791519165, 0.2735407054424286, -0.23887315392494202, 0.3515395522117615, 0.043898552656173706, -0.6558928489685059, 0.1967587023973465, 0.06417728960514069, 0.21773792803287506, -0.30886176228523254, -0.25966784358024597, 0.425555557012558, 0.003527522087097168, -0.1987575888633728, 0.08076583594083786, 0.1387982815504074, -0.07539965212345123, -0.03208402916789055, 0.28486716747283936, -0.23187898099422455, 0.06083230674266815, -0.01472644042223692, 0.06935343891382217, 0.14500145614147186, 0.6772648692131042, 0.12835250794887543, 0.026139209046959877, -0.06613229215145111, 0.2625184953212738, 0.3511837124824524, -0.40613648295402527, -0.08217772841453552, 0.040854424238204956, 0.07795631140470505, -0.3869830369949341, -0.22242356836795807, 0.16107052564620972, 0.22943824529647827, -0.4493671953678131, -0.2168513387441635, -0.31772762537002563, 0.3808577060699463, -0.050406549125909805, 0.23924942314624786, -0.1872778981924057, 0.15892840921878815, -0.13431037962436676, 0.4010477662086487, -0.21589943766593933, -0.08591035008430481, 0.21086983382701874, 0.07594006508588791, 0.16406667232513428, 0.18527911603450775, -0.21075671911239624, -0.2444540411233902, 0.08367597311735153, 0.04231583699584007, 0.3284807503223419, -0.16887108981609344, -0.1297982633113861, 0.15420442819595337, 0.13820531964302063, -0.017347335815429688, -0.07159759849309921, -0.14145344495773315, 0.3030010163784027, -0.25386542081832886, -0.21277540922164917, 0.2620382010936737, -0.03312818333506584, 0.1737252026796341, 0.5312667489051819, 0.3376062512397766, -0.2378084510564804, 0.1164616197347641, 0.22202952206134796, 0.27711358666419983, 0.0760803148150444, 0.2996048331260681, 0.2779511511325836, 0.12261873483657837, -0.11880508810281754, 0.2885478138923645, 0.3634536564350128, 0.13762207329273224, 0.09040415287017822, -0.17531663179397583, 0.19301636517047882, -0.06090867891907692, 0.1542159616947174, 0.13338948786258698, -0.2916927933692932, 0.36975347995758057, 0.10691136121749878, 0.179208904504776, -0.18148691952228546, 0.12085405737161636, 0.2839512228965759, -0.11115942895412445, -0.04741920158267021, 0.20336106419563293, -0.12619614601135254, 0.34262019395828247, -0.2981075644493103, -0.09938202798366547, -0.13716436922550201, 0.09462025761604309, 0.1641956865787506, 0.31736883521080017, 0.18732276558876038, -0.08663790673017502, 0.06265266239643097, 0.06388575583696365, 0.14505815505981445, 0.33196794986724854, -0.14064888656139374, 0.31461116671562195, 0.4648492932319641, -0.02083384245634079, 0.3508610427379608, 0.2495756894350052, 0.14095903933048248, 0.030788784846663475, 0.31761547923088074, -0.02332167699933052, 0.36644935607910156, 0.22102031111717224, 0.28426167368888855, -0.10868526250123978, -0.00910487025976181, 0.10752677917480469, 0.1083621233701706, -0.21185769140720367, -0.12247464805841446, 0.036499928683042526, -0.020546207204461098, -0.0741017609834671, -0.1425173431634903, -0.5123052000999451, -0.03415825963020325, -0.0853702649474144, 0.14042352139949799, -0.28056561946868896, 0.4928233027458191, 0.17217807471752167, -0.00949918758124113, -0.16336382925510406, -0.07689541578292847, -0.20771744847297668, 0.28285181522369385, 0.3363245725631714, 0.38153496384620667, -0.0006950746173970401, 0.13330228626728058, -0.12265331298112869, 0.5888962745666504, -0.23673100769519806, -0.17628809809684753, -0.06598834693431854, -0.04547695070505142, -0.15976831316947937, -0.06158430874347687, 0.27443334460258484, 0.16911882162094116, -0.04492508992552757, 0.18684859573841095, 0.11611245572566986, 0.20913012325763702, -0.6766970157623291, 0.2686007618904114, 0.03236154839396477, -0.2752901315689087, -0.06386011838912964, 0.27903687953948975, -0.06058841198682785, -0.03823643922805786, 0.5366308689117432, -0.2183661162853241, -0.012867781333625317, 0.1525655835866928, 0.021435590460896492, -0.06379692256450653, 0.311146080493927, 0.34497275948524475, 0.5670555830001831, -0.07855106145143509, -0.032922640442848206, -0.5537804961204529, 0.012705940753221512, -0.12544941902160645, -0.07874010503292084, -0.10237156599760056, 0.02039126306772232, 0.35428792238235474, 0.3510191738605499, 0.3150632977485657, -0.13622376322746277, -0.3740842938423157, 0.1765361875295639, -0.034362148493528366, -0.4440453350543976, 0.2825784981250763, 0.33619001507759094, -0.013196947984397411, 0.04228929057717323, -0.16691918671131134, 0.2616892457008362, -0.025923851877450943, -0.08732055872678757, -0.1772269308567047, -0.006423499435186386, 0.05342288315296173, 0.5239657163619995, -0.015132351778447628, 0.39188602566719055, -0.006440104451030493, 0.12702986598014832, -0.269611656665802, -0.4526207745075226, -0.44143208861351013, 0.4491156041622162, -0.11818744987249374, 0.30534791946411133, -0.22898250818252563, -0.0073042516596615314, 0.17793142795562744, -0.23732838034629822, -0.11899563670158386, -0.07340157777070999, -0.43117475509643555, 0.3442457318305969, -0.22554050385951996, -0.0031988683622330427, -0.13255254924297333, 0.11859957128763199, 0.03939458355307579, 0.2314164638519287, 0.06917945295572281, -0.06132305786013603, 0.12860386073589325, -0.26952823996543884, -0.048255063593387604, 0.20092128217220306, 0.0318993479013443, 0.16560637950897217, -0.16829894483089447, -0.7034357190132141, -0.24809151887893677, 0.44269946217536926, -0.17340219020843506, 0.1599380075931549, 0.09338618069887161, 0.15480497479438782, 0.10761924088001251, -0.20355799794197083, 0.5827000737190247, -0.2855379581451416, 0.06553921103477478, -0.40069299936294556, -0.2868952751159668 ]
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.14892277121543884, 0.20325042307376862, -0.0536700040102005, 0.0051247854717075825, 0.11115974187850952, 0.07312679290771484, 0.27373015880584717, -0.08799485862255096, 0.08768031001091003, 0.021720491349697113, 0.34229975938796997, 0.47249823808670044, -0.3235459327697754, 0.07456579059362411, 0.33236268162727356, -0.273358017206192, 0.06256602704524994, 0.056474220007658005, -0.26278817653656006, -0.14078488945960999, -0.1624131053686142, -0.1628737449645996, 0.2530602514743805, 0.05636298283934593, -0.21902120113372803, -0.1572359949350357, -0.033966172486543655, -0.26090624928474426, -0.16848701238632202, -0.4851483702659607, 0.10645093023777008, -0.07251518964767456, 0.12096226960420609, 0.18166233599185944, -0.00012080306623829529, 0.13512785732746124, 0.29794642329216003, 0.10878564417362213, -0.649517297744751, -0.34817788004875183, -0.21266715228557587, -0.5955250263214111, 0.3207843005657196, -0.23337000608444214, 0.17560724914073944, -0.3336722254753113, 0.2961089611053467, -0.5603640079498291, 0.18425780534744263, 0.16384562849998474, 0.1235806941986084, 0.06447060406208038, 0.1811811476945877, -0.05149008333683014, 0.3474482595920563, 0.29326769709587097, -0.2006342113018036, -0.056374210864305496, 0.1106199324131012, 0.29128891229629517, 0.2085750550031662, 0.03713485971093178, 0.20392335951328278, -0.17556039988994598, 0.44474977254867554, 0.2522762715816498, -0.10143526643514633, -0.20497900247573853, -0.20783676207065582, 0.2939836084842682, 0.6473255157470703, -0.21769976615905762, -0.7484701871871948, -0.4845063388347626, 0.436674565076828, -0.18222297728061676, -0.1971815824508667, 0.23274098336696625, -0.04996194690465927, 0.1590690314769745, -0.021406996995210648, -0.5370787382125854, -0.12129537016153336, 0.19978836178779602, -0.07814108580350876, 0.21044926345348358, 0.0671582743525505, 0.18751147389411926, -0.07435519993305206, 0.09809847921133041, 0.4603866934776306, -0.12180105596780777, 0.0015310744056478143, 0.0952746719121933, -0.24151794612407684, -0.035928916186094284, -0.16787075996398926, -0.0899106115102768, -0.04889130964875221, -0.011519153602421284, 0.4208758771419525, -0.064767986536026, -0.3213694989681244, -0.044710446149110794, 0.3120787441730499, -0.13627387583255768, 0.015599190257489681, 0.12336688488721848, -0.31040090322494507, -0.5604986548423767, -0.0376199409365654, -0.17760069668293, -0.07526833564043045, -0.0327274464070797, 0.24707111716270447, -0.04883772134780884, 0.2522360384464264, 0.2627444863319397, 0.014061066322028637, -0.1079394593834877, -0.38753417134284973, -0.017984826117753983, -0.26596662402153015, -0.04143282026052475, 0.3194258213043213, 0.22282017767429352, 0.12183184921741486, 0.500029981136322, 0.2188776135444641, -0.2792986333370209, 0.0607987716794014, 0.00012936099665239453, -0.03176090866327286, 0.2036893516778946, -0.17201301455497742, 0.14257048070430756, -0.1238768920302391, -0.2613934278488159, -0.05651307478547096, -0.1344764679670334, 0.19106554985046387, -0.10476559400558472, 0.25067245960235596, 0.06353287398815155, -0.12675830721855164, 0.202816903591156, 0.0935416966676712, -0.15171577036380768, -0.1709180474281311, 0.216399148106575, -0.15918311476707458, -0.3000667989253998, -0.2653229236602783, 0.05987891927361488, -0.018110908567905426, -0.1914282888174057, -0.0541083849966526, 0.3932877779006958, -0.052760470658540726, 0.12179551273584366, 0.06359917670488358, -0.22714436054229736, -0.3002100884914398, -0.20596177875995636, -0.18106678128242493, 0.06524658203125, -0.5810014605522156, -0.32308846712112427, -0.39651942253112793, -0.0007040328928269446, -0.4486544728279114, -0.030775263905525208, -0.22604073584079742, 0.7877781391143799, 0.038225043565034866, -0.20322975516319275, 0.6214315295219421, -0.05109964311122894, -0.2825565040111542, -0.17583340406417847, -0.2715049386024475, 0.17073026299476624, 0.10534913092851639, 0.5825031399726868, 0.3470580577850342, 0.17949140071868896, -0.0493711456656456, 0.1778186857700348, -0.10281779617071152, -0.2526225745677948, 0.21193626523017883, -0.2013576775789261, 0.2867559790611267, -0.04415794089436531, -0.007679780013859272, 0.10506925731897354, 0.1689327359199524, -0.039999570697546005, 0.11172784119844437, -0.14996372163295746, 0.12676934897899628, -0.02332448400557041, 0.28417402505874634, 0.1198534369468689, -0.15779754519462585, -0.11196045577526093, -0.4319218397140503, -0.01669175736606121, 0.1539253294467926, -0.0039006571751087904, 0.07901289314031601, -0.25086507201194763, 0.005550343543291092, 0.35835981369018555, -0.026922093704342842, 0.16218219697475433, -0.006097468547523022, 0.020040707662701607, -0.04974614083766937, -0.23038184642791748, -0.34204357862472534, 0.3552739918231964, -0.10197094827890396, 0.2033831775188446, -0.2506049871444702, 0.2522016763687134, 0.2995469570159912, 0.10081873089075089, -0.2877720892429352, 0.1638198345899582, -0.2433374971151352, -0.038514602929353714, 0.10706302523612976, 0.001113385776989162, 0.055711183696985245, 0.10991614311933517, 0.041193220764398575, 0.1264183074235916, 0.09435771405696869, -0.28188613057136536, 0.16263796389102936, 0.038365062326192856, 0.12233533710241318, -0.08929949253797531, -0.2213628888130188, 0.3601260781288147, 0.1634073704481125, 0.38066020607948303, -0.15373621881008148, 0.22212305665016174, -0.006139639299362898, 0.11205913126468658, -0.4190375506877899, -0.18334846198558807, -0.28572988510131836, 0.03519117087125778, 0.3241584300994873, -0.119849793612957, -0.0863562673330307, -0.08431211858987808, 0.31140682101249695, -0.07877352833747864, 0.22047710418701172, 0.08285839110612869, -0.33832913637161255, 0.16026659309864044, -0.021583061665296555, 0.37916234135627747, 0.4297642409801483, 0.24667443335056305, -0.03129677101969719, -0.003432944416999817, 0.056831616908311844, -0.0030324843246489763, 0.10571750998497009, 0.2794114947319031, 0.41547563672065735, -0.08432211726903915, 0.22710087895393372, 0.051754385232925415, -0.009096674621105194, -0.025655098259449005, -0.05989450216293335, -0.06867621093988419, -0.2929497957229614, -0.056763552129268646, -0.08129045367240906, 0.05813315138220787, -0.45578816533088684, -0.20343250036239624, 0.0852363258600235, -0.5229114294052124, 0.08225201815366745, -0.2457781434059143, -0.14310644567012787, 0.04557710513472557, 0.028442177921533585, 0.370821088552475, -0.2270679473876953, -0.060422059148550034, 0.22605225443840027, -0.15695905685424805, 0.1129835993051529, -0.01949663646519184, -0.04908551648259163, -0.08998475223779678, 0.4903205633163452, 0.07725761085748672, 0.09644712507724762, -0.3023451268672943, -0.2243509441614151, 0.10436778515577316, 0.04842233285307884, 0.14972050487995148, 0.11329805105924606, 0.060402482748031616, 0.026831043884158134, -0.23281197249889374, -0.08542237430810928, -0.02791915461421013, -0.16923190653324127, -0.2233995795249939, -0.02238531969487667, 0.0732140988111496, 0.024980051442980766, -0.2803650498390198, -0.5676981210708618, -0.1390211284160614, 0.3047088384628296, 0.17168936133384705, -0.05622571334242821, -0.00788838416337967, 0.18257851898670197, 0.1792975515127182, 0.05477806553244591, -0.11933137476444244, 0.04666940122842789, 0.013216322287917137, 0.3442361056804657, -0.17038127779960632, -0.11637953668832779, -0.12664413452148438, -0.44455817341804504, 0.05528927594423294, 0.21237792074680328, -0.30786997079849243, 0.12862390279769897, -0.1602940410375595, 0.267995148897171, -0.030495524406433105, 0.0031084055081009865, 0.37988346815109253, 0.10259926319122314, 0.025320107117295265, -0.05569072440266609, -0.2710004150867462, 0.19265013933181763, 0.17747008800506592, 0.08507446199655533, 0.012516551651060581, 0.30008694529533386, -0.004461055621504784, 0.6486832499504089, -0.0794268324971199, -0.3330712616443634, -0.0649881586432457, -0.11476702988147736, 0.3267973065376282, -0.23373936116695404, -0.22219505906105042, -0.32672837376594543, -0.31865179538726807, -0.3132207691669464, -0.0835191011428833, 0.0052926382049918175, -0.07770343869924545, 0.08870711177587509, 0.21142102777957916, -0.2691895663738251, -0.26781073212623596, 0.3111070990562439, -0.6298690438270569, 0.07717078179121017, -0.07433108985424042, -0.001397708896547556, -0.3483344614505768, 0.12998007237911224, -0.15909621119499207, 0.05149097740650177, 0.28913864493370056, -0.07696881890296936, -0.669984757900238, -0.08707039803266525, -0.13980966806411743, 0.18904653191566467, 0.172538623213768, -0.010478070005774498, 0.2996673583984375, -0.14787937700748444, 0.012093295343220234, 0.2610083818435669, 0.28441980481147766, -0.2166794389486313, -0.560238778591156, 0.13958193361759186, 0.05434173718094826, -0.36612793803215027, 0.045346833765506744, -0.1699523627758026, 0.4356377124786377, -0.08615166693925858, -0.004641555715352297, -0.24748580157756805, 0.3057096004486084, 0.22887074947357178, 0.1961977481842041, -0.3520727753639221, -0.08052370697259903, 0.08247540146112442, 0.09049617499113083, -0.2369978129863739, -0.0938408225774765, -0.01674039661884308, -0.010890834964811802, 0.05945821851491928, -0.329802930355072, -0.3788066804409027, 0.01479113195091486, 0.3197605013847351, -0.09164604544639587, 0.14164887368679047, 0.27135005593299866, 0.05019713193178177, 0.1301240473985672, 0.3078262507915497, 0.14000838994979858, 0.592258095741272, -0.09192775189876556, -0.4606243968009949, -0.10384977608919144, -0.21059955656528473, 0.5864296555519104, 0.31680431962013245, 0.24846774339675903, 0.3790534734725952, 0.03535190224647522, -0.19127494096755981, -0.06314482539892197, -0.02088267169892788, 0.20255938172340393, -0.03738080710172653, -0.4521545469760895, -0.561229944229126, 0.46183744072914124, -0.1597912609577179, -0.11302801221609116, 0.19084696471691132, 0.33380672335624695, -0.47756704688072205, 0.6409643888473511, 0.2579962909221649, 0.9893675446510315, -0.21116480231285095, 0.3801468312740326, 0.035041891038417816, -0.4579184651374817, 0.7528196573257446, 0.0060922494158148766, -0.1959104984998703, -0.14990296959877014, -0.023904651403427124, -0.07281992584466934, -0.2540905177593231, 0.1052182987332344, 0.4096458852291107, -0.27878519892692566, -0.05758342891931534, -0.15193969011306763, 0.07429185509681702, -0.04880160093307495, 0.48917609453201294, 0.03629783168435097, -0.26094168424606323, -0.1551222801208496, 0.049585338681936264, 0.14892369508743286, -0.16762079298496246, -0.20564010739326477, -0.03641853481531143, -0.35384348034858704, -0.017790528014302254, -0.38537994027137756, -0.45761555433273315, -0.05454395338892937, -0.06210144981741905, 0.1572805643081665, -0.6312533020973206, 0.2773566246032715, 0.43168699741363525, 0.17701616883277893, -0.08189680427312851, 0.06122838705778122, 0.11430051177740097, 0.009382294490933418, 0.3079130947589874, 0.2511935532093048, -0.2919280230998993, 0.35070908069610596, 0.2755837142467499, -0.2182198315858841, 0.3583343029022217, -0.03128599002957344, -0.5524535775184631, 0.07907039672136307, 0.026932543143630028, 0.2787880599498749, -0.40255796909332275, -0.2808547019958496, 0.3540418744087219, -0.007313884329050779, -0.14340855181217194, 0.045306116342544556, 0.12063520401716232, 0.05379468947649002, -0.0208728164434433, 0.3707679510116577, -0.3586660325527191, -0.0569194070994854, -0.14605477452278137, 0.12363921105861664, 0.1889639049768448, 0.6302037239074707, -0.03637531027197838, 0.01737148128449917, -0.06639718264341354, 0.3725515604019165, 0.4095950424671173, -0.47453072667121887, -0.05759719759225845, 0.0810806155204773, 0.007069366984069347, -0.37310007214546204, -0.14831805229187012, 0.16199685633182526, 0.155482679605484, -0.44411787390708923, -0.1573478728532791, -0.18143635988235474, 0.411798894405365, -0.08802811056375504, 0.2797035276889801, -0.1598336100578308, 0.11936448514461517, -0.12064909189939499, 0.3268212676048279, -0.19238999485969543, -0.22084172070026398, 0.20836852490901947, 0.13986270129680634, 0.047286707907915115, 0.26722151041030884, -0.19418364763259888, -0.1489669680595398, 0.01885170489549637, -0.12732543051242828, 0.18146245181560516, -0.11432857066392899, -0.08846944570541382, 0.19073471426963806, 0.08823221176862717, 0.09033657610416412, -0.09102383255958557, -0.1595667600631714, 0.2966214120388031, -0.25909557938575745, -0.22678713500499725, 0.27518996596336365, -0.0027093966491520405, 0.23929083347320557, 0.5310444831848145, 0.3237859606742859, -0.21161045134067535, 0.2079463005065918, 0.14570677280426025, 0.34642186760902405, 0.027884360402822495, 0.3013665974140167, 0.2141534835100174, 0.08510696142911911, -0.07978256791830063, 0.2289358526468277, 0.3354944884777069, 0.1972944736480713, 0.06976813822984695, -0.17167215049266815, 0.3238377869129181, -0.06864383071660995, 0.03105950355529785, 0.21950265765190125, -0.25050097703933716, 0.2719678282737732, 0.09045357257127762, 0.1206582635641098, -0.09148595482110977, 0.19813653826713562, 0.2981039881706238, -0.15899494290351868, -0.08502476662397385, 0.3534737825393677, -0.020117750391364098, 0.42794638872146606, -0.17907559871673584, -0.18071356415748596, -0.1604132503271103, 0.028933724388480186, 0.23645232617855072, 0.29933539032936096, 0.09815172851085663, -0.006422993261367083, 0.15607239305973053, -0.007265863940119743, 0.11733249574899673, 0.3177243173122406, -0.0918361246585846, 0.2884966731071472, 0.4079053997993469, 0.013046995736658573, 0.44217556715011597, 0.20730319619178772, 0.18019288778305054, 0.016459554433822632, 0.19490006566047668, 0.06047976389527321, 0.4181520640850067, 0.16892534494400024, 0.17713116109371185, -0.07979435473680496, -0.15186913311481476, -0.03396417945623398, 0.06540931761264801, -0.14034226536750793, -0.16851715743541718, 0.01925046369433403, -0.04697905108332634, -0.1040010154247284, -0.23517799377441406, -0.5446066856384277, -0.03154292702674866, -0.034672245383262634, 0.24358916282653809, -0.2146822065114975, 0.5122624635696411, -0.009606027975678444, 0.07985561341047287, -0.15525880455970764, -0.056593142449855804, -0.3192979097366333, 0.3565749228000641, 0.42166391015052795, 0.30809342861175537, -0.06804931163787842, 0.2205008864402771, -0.10896732658147812, 0.4040500819683075, -0.15600836277008057, -0.12158212065696716, -0.14829953014850616, -0.04752688854932785, -0.08103367686271667, -0.030634881928563118, 0.3937811851501465, 0.13374552130699158, -0.013532547280192375, 0.15610754489898682, 0.1313365250825882, 0.13060881197452545, -0.6683189868927002, 0.37251606583595276, 0.02662513591349125, -0.24533945322036743, -0.017380883917212486, 0.3169882595539093, -0.0643003061413765, -0.07832351326942444, 0.44939133524894714, -0.26333087682724, -0.01767526939511299, 0.04697583615779877, 0.015429128892719746, -0.03355317935347557, 0.29381442070007324, 0.27398350834846497, 0.5760570168495178, -0.055935654789209366, 0.11096607148647308, -0.5531089901924133, -0.035432979464530945, -0.16219548881053925, -0.055752355605363846, -0.06690090894699097, 0.06589516997337341, 0.3969283401966095, 0.4664539098739624, 0.22426621615886688, -0.16359330713748932, -0.38491228222846985, 0.13852964341640472, -0.09767673164606094, -0.4929007291793823, 0.22188504040241241, 0.318191260099411, -0.013246756047010422, -0.026799028739333153, -0.1311633586883545, 0.269961953163147, -0.09993626177310944, -0.08041387051343918, -0.08809372782707214, 0.08241502940654755, 0.1394571214914322, 0.5118867754936218, 0.06024974584579468, 0.4006279706954956, 0.00861092284321785, 0.04068883880972862, -0.23007769882678986, -0.4782165586948395, -0.43233636021614075, 0.5042680501937866, -0.15932072699069977, 0.35901811718940735, -0.22119583189487457, 0.05512784421443939, 0.1431579440832138, -0.23440076410770416, -0.0636250451207161, 0.015012744814157486, -0.43178999423980713, 0.28105542063713074, -0.2680623233318329, 0.057837795466184616, -0.07306210696697235, 0.17711515724658966, 0.08145340532064438, 0.18462218344211578, 0.11289943009614944, -0.0336080826818943, 0.1386214792728424, -0.14762581884860992, -0.0028351391665637493, 0.1786113977432251, -0.00010515413305256516, 0.19862785935401917, -0.16069160401821136, -0.7023425102233887, -0.27937811613082886, 0.5140499472618103, -0.2919909358024597, 0.2940155565738678, 0.010688336566090584, 0.1839272826910019, 0.07353505492210388, -0.2659798562526703, 0.5728678703308105, -0.35779884457588196, 0.07436201721429825, -0.3251979947090149, -0.32737600803375244 ]
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.329912394285202, -0.39836767315864563, 0.04140733182430267, 0.4000958502292633, 0.3001839518547058, -0.22759142518043518, 0.2741972506046295, 0.2562867999076843, 0.005499670747667551, 0.2942807972431183, -0.01227353885769844, 0.022469723597168922, -0.08508621156215668, 0.04614228755235672, -0.28178730607032776, 0.12844955921173096, -0.20951272547245026, -0.07703845947980881, 0.42174503207206726, 0.08553607761859894, -0.3209673762321472, 0.19018305838108063, -0.11296103894710541, -0.182755708694458, -0.31205472350120544, 0.01896643079817295, 0.3288895785808563, -0.0016792763490229845, -0.13102926313877106, -0.2663411498069763, 0.11802905797958374, -0.19675496220588684, 0.11216538399457932, 0.5339969396591187, -0.00011421440285630524, -0.16619136929512024, 0.13908377289772034, -0.18148864805698395, -0.17730845510959625, -0.1401205211877823, -0.034272342920303345, -0.2571435868740082, -0.11226260662078857, -0.24260535836219788, 0.04414965584874153, 0.1876821219921112, -0.16063348948955536, -0.012286441400647163, 0.18435943126678467, 0.39791178703308105, 0.1449996531009674, 0.1509120762348175, 0.07810544967651367, 0.07784484326839447, -0.13811346888542175, -0.3425806760787964, -0.15217991173267365, 0.3253556787967682, -0.06692495197057724, 0.03162774816155434, -0.20974288880825043, 0.22105464339256287, 0.16179384291172028, 0.2145262062549591, 0.28306686878204346, -0.11133354902267456, 0.37664636969566345, -0.04792313650250435, 0.2515905499458313, 0.19776217639446259, -0.09956903010606766, -0.20138996839523315, -0.21858562529087067, 0.1886240839958191, 0.12778699398040771, -0.6358426809310913, -0.05380062758922577, -0.060971878468990326, -0.1685432642698288, -0.381120890378952, -0.37570613622665405, -0.10144820064306259, -0.10101772099733353, -0.13524316251277924, -0.15136058628559113, 0.17876118421554565, -0.3350166380405426, 0.10107947885990143, 0.06650024652481079, 0.037248395383358, 0.22743988037109375, 0.09554264694452286, 0.10291211307048798, 0.22068233788013458, -0.49903279542922974, -0.10536181926727295, 0.016087273135781288, -0.18885453045368195, -0.01623479276895523, -0.03253645822405815, 0.246625617146492, -0.01586129702627659, -0.05601885914802551, 0.1580466777086258, -0.15706780552864075, 0.5400378704071045, 0.17008081078529358, 0.084213487803936, 0.39336955547332764, 0.5855422616004944, 0.09295296669006348, -0.004057584796100855, -0.005678009707480669, -0.5385406613349915, 0.23224183917045593, 0.07332007586956024, -0.17841242253780365, -0.18943004310131073, -0.49301469326019287, 0.0014657845022156835, -0.06099320575594902, 0.031279947608709335, 0.2731883227825165, 0.45163002610206604, -0.3899911940097809, -0.2442987710237503, 0.24233894050121307, -0.0518198125064373, -0.04410034790635109, -0.048507414758205414, -0.27872997522354126, 0.06354299932718277, -0.02964348904788494, 0.19078247249126434, 0.08794595301151276, -0.6552606225013733, 0.3337697684764862, -0.15722696483135223, 0.2568185031414032, -0.21716518700122833, 0.08466146141290665, -0.2342723309993744, -0.014011673629283905, 0.029247689992189407, -0.05533605441451073, -0.3133432865142822, 0.32569336891174316, -0.2782122790813446, 0.09636637568473816, 0.07499852031469345, -0.05072852224111557, -0.40880286693573, 0.059635769575834274, 0.11786741018295288, -0.13852457702159882, 0.05862799286842346, -0.14546780288219452, 0.20553068816661835, 0.3106638193130493, -0.05174217373132706, 0.060774873942136765, -0.14683379232883453, -0.18841062486171722, -0.13215504586696625, 0.5624072551727295, -0.029652463272213936, -0.22556230425834656, -0.049947936087846756, -0.033021438866853714, 0.021450607106089592, 0.36092066764831543, 0.33226218819618225, 0.04741419479250908, 0.13746923208236694, -0.10439547896385193, -0.10682222247123718, 0.2952236831188202, -0.35572347044944763, -0.18236643075942993, -0.1604953557252884, 0.041174765676259995, -0.18272998929023743, 0.05327286198735237, -0.14260563254356384, -0.02611360140144825, -0.15446297824382782, 0.4189426302909851, 0.0851457267999649, -0.17665551602840424, -0.11907237768173218, -0.48140838742256165, -0.3502425253391266, -0.09127014875411987, 0.05895428732037544, 0.5071213245391846, -0.07625406235456467, 0.1716110110282898, 0.26421037316322327, 0.05545499548316002, -0.07773410528898239, 0.0007423357455991209, 0.13575896620750427, 0.26041027903556824, -0.24531902372837067, 0.1736733615398407, -0.18391552567481995, 0.19437849521636963, 0.2270917445421219, 0.14800696074962616, 0.13269220292568207, 0.0645507201552391, -0.09578727185726166, -0.3693140745162964, 0.011740914545953274, 0.04087328910827637, -0.09064234793186188, 0.1942007839679718, -0.023632599040865898, 0.02007315866649151, -0.04626062139868736, -0.17795726656913757, 0.019060995429754257, -0.6478567123413086, 0.057779520750045776, 0.24215508997440338, -0.011923534795641899, 0.009530909359455109, -0.11172331124544144, 0.07775720953941345, 0.3475858271121979, 0.18648134171962738, 0.07951164990663528, -0.1525598168373108, 0.3241608738899231, 0.14699526131153107, -0.21066901087760925, 0.0685732290148735, -0.12138339877128601, -0.025995831936597824, 0.31581243872642517, -0.04526841640472412, 0.08326788991689682, 0.09919486194849014, -0.1209593117237091, 0.24413147568702698, 0.09364616125822067, -0.07940492033958435, 0.17948268353939056, 0.2946685552597046, -0.08058574050664902, -0.07273472100496292, 0.1661313772201538, 0.14957833290100098, -0.17806027829647064, 0.17246203124523163, -0.1364564299583435, 0.06643970310688019, -0.2640101909637451, 0.027136294171214104, -0.2498510777950287, 0.4172479212284088, 0.07080957293510437, 0.06458041816949844, 0.19377872347831726, -0.02596040442585945, -0.058947157114744186, -0.03500710427761078, 0.08320687711238861, 0.20399129390716553, -0.049956753849983215, 0.2260345220565796, 0.07168998569250107, -0.16681738197803497, -0.13714641332626343, 0.010470805689692497, 0.06624455749988556, 0.24011361598968506, 0.3439277410507202, 0.16824062168598175, -0.1599612534046173, -0.2710844576358795, -0.1610841453075409, 0.2464815378189087, 0.2385193556547165, -0.150637686252594, -0.056851908564567566, 0.07569365203380585, 0.1517331302165985, -0.28765642642974854, -0.2880500257015228, -0.25335001945495605, -0.15971893072128296, 0.08838333934545517, 0.29258909821510315, 0.2578849494457245, -0.001451060175895691, 0.3952111005783081, 0.4617104232311249, 0.05935929715633392, -0.05133714899420738, 0.050237495452165604, -0.21538560092449188, -0.3148037791252136, 0.08866844326257706, 0.06497024744749069, -0.10161416232585907, 0.2333037406206131, -0.10219592601060867, -0.19489997625350952, -0.3437848389148712, -0.4103054106235504, 0.01005693431943655, -0.21031904220581055, 0.4719873368740082, 0.18166297674179077, -0.004250767175108194, -0.3588896095752716, -0.1189144104719162, 0.14626827836036682, 0.12110825628042221, -0.03983285650610924, -0.019685711711645126, -0.14938358962535858, 0.03914763033390045, -0.07081405818462372, -0.22209809720516205, 0.16400282084941864, -0.3041471242904663, 0.2409517914056778, 0.0763135626912117, 0.030652333050966263, -0.0612245537340641, 0.05230997875332832, 0.5045962929725647, 0.5048167109489441, -0.03792325034737587, -0.2633744478225708, 0.09040706604719162, 0.13802002370357513, -0.33669066429138184, -0.3102613389492035, 0.02160954661667347, 0.016284193843603134, 0.5390126705169678, 0.16476057469844818, -0.457992821931839, -0.3172895908355713, -0.08158464729785919, -0.20542101562023163, -0.24346813559532166, 0.10444780439138412, 0.10456062853336334, 0.04537154734134674, -0.016684021800756454, -0.12195263803005219, -0.12123064696788788, 0.033526916056871414, -0.22951267659664154, 0.6499079465866089, -0.27618181705474854, 0.28033483028411865, 0.32706132531166077, 0.8638538718223572, 0.171412855386734, -0.02713315561413765, 0.08198857307434082, 0.12086945027112961, 0.04165523871779442, -0.007302220445126295, -0.054565150290727615, 0.6279388070106506, -0.2941345274448395, -0.17788955569267273, 0.14976400136947632, -0.1594054400920868, 0.2452189177274704, -0.057221535593271255, -0.021892838180065155, 0.1148410215973854, -0.16917067766189575, -0.15252043306827545, 0.14203491806983948, 0.22616685926914215, 0.08441024273633957, 0.011643420904874802, -0.28704702854156494, -0.04396989941596985, 0.026011575013399124, 0.22015923261642456, -0.0691913366317749, -0.008999313227832317, 0.24852116405963898, 0.004199643153697252, -0.5446140766143799, 0.4457462430000305, 0.2141600102186203, 0.13161346316337585, 0.033500414341688156, 0.13207317888736725, -0.0986366719007492, -0.16176116466522217, 0.22191371023654938, -0.2070654034614563, 0.04139078035950661, -0.03885748237371445, -0.08244606107473373, -0.5960404276847839, 0.031793177127838135, -0.061952754855155945, -0.28777414560317993, 0.4565439820289612, 0.375179260969162, -0.25940459966659546, 0.13725623488426208, 0.22994856536388397, 0.24744665622711182, -0.004891037009656429, 0.01772783137857914, -0.5006988644599915, -0.40969938039779663, -0.15691927075386047, 0.12795935571193695, 0.13802535831928253, 0.285532146692276, -0.03175197169184685, 0.04163845255970955, -0.16453763842582703, -0.1756138652563095, 0.04856983572244644, 0.2861669361591339, 0.0373409204185009, -0.09882093220949173, 0.14866763353347778, -0.19388693571090698, -0.3395833969116211, 0.20055551826953888, 0.12169962376356125, -0.041294749826192856, -0.9286243319511414, 0.039742786437273026, 0.027219336479902267, 0.24921539425849915, 0.13508853316307068, -0.15889954566955566, 0.20742149651050568, -0.16972577571868896, 0.4346752166748047, 0.07449284195899963, 0.277113676071167, 0.16090410947799683, 0.3366522490978241, -0.0105164535343647, -0.12534286081790924, 0.3105500042438507, 0.2530328333377838, 0.22151769697666168, 0.5469452142715454, -0.09156457334756851, -0.11807259172201157, 0.12478761374950409, 0.6157292127609253, 0.6351816654205322, 0.019563358277082443, -0.2783789038658142, 0.36204028129577637, -0.048477936536073685, 0.4466262757778168, -0.4077377915382385, 0.4081351161003113, -0.300152987241745, -0.5378542542457581, 0.09860271215438843, 0.01668892800807953, 0.02945530042052269, -0.25062236189842224, -0.1074843779206276, 0.3304615020751953, -0.15858183801174164, -0.2208050787448883, 0.033050548285245895, 0.07572650909423828, -0.3909947872161865, -0.08136982470750809, -0.015905482694506645, 0.18097072839736938, -0.1984892189502716, 0.15307006239891052, -0.23911260068416595, 0.22615133225917816, -0.026902474462985992, -0.0777365192770958, -0.21889938414096832, 0.0008699241443537176, -0.455926775932312, 0.18233950436115265, -0.06680197268724442, -0.06951751559972763, 0.03761729225516319, 0.2896285653114319, 0.8918436169624329, 0.13067542016506195, -0.07761867344379425, 0.1159060001373291, -0.014726703986525536, -0.0918249636888504, -0.08558529615402222, 0.0643569752573967, 0.2934022545814514, -0.2617603838443756, -0.16873934864997864, -0.08115091174840927, 0.09257656335830688, -0.16079185903072357, 0.36256447434425354, -0.046711042523384094, -0.07486790418624878, 0.15066668391227722, 0.020216571167111397, 0.026631413027644157, -0.06784187257289886, -0.17309914529323578, 0.11561629176139832, -0.16313716769218445, -0.25148171186447144, -0.011650501750409603, 0.013960801064968109, -0.3538234233856201, 0.07691981643438339, 0.18481573462486267, 0.09635576605796814, -0.1526750922203064, 0.4362224042415619, -0.1270214468240738, -0.06890548765659332, -0.08265196532011032, -0.482875257730484, 0.09407865256071091, -0.06158195808529854, 0.32770276069641113, -0.039193686097860336, -0.1508190929889679, 0.10884677618741989, 0.8712247014045715, 0.2959720194339752, 0.15337903797626495, -0.22971461713314056, -0.3328501284122467, -0.3247039318084717, 0.014475670643150806, 0.005240412428975105, 0.09894164651632309, -0.16323663294315338, 0.36495494842529297, -0.11459783464670181, 0.30880308151245117, -0.24895928800106049, 0.11808548122644424, -0.4077553153038025, 0.11900582909584045, -0.14777611196041107, -0.16000448167324066, 0.30077022314071655, 0.3664519786834717, 0.011363101191818714, 0.44244226813316345, -0.24321076273918152, -0.18150530755519867, -0.18888258934020996, 0.11997123807668686, 0.23678503930568695, -0.037302546203136444, -0.15523099899291992, -0.04593363776803017, -0.3102085292339325, -0.17679321765899658, 0.21192464232444763, 0.2571958899497986, -0.06610944867134094, 0.06374484300613403, -0.24947039783000946, 0.42239096760749817, 0.2251347154378891, -0.29633960127830505, 0.3116737902164459, 0.2022937834262848, 0.13051213324069977, 0.09952474385499954, 0.14368653297424316, 0.07203052192926407, 0.08040915429592133, -0.25977224111557007, -0.009854595176875591, 0.008554366417229176, 0.19674013555049896, -0.2309921234846115, -0.15612062811851501, -0.3708263039588928, 0.051718175411224365, 0.36357563734054565, 0.007451995741575956, -0.27410921454429626, 0.1914915293455124, 0.1322607845067978, -0.32511866092681885, 0.11903277784585953, -0.25706642866134644, 0.05392811819911003, 0.08568443357944489, 0.2737962603569031, 0.004499911796301603, 0.023140372708439827, 0.03706132993102074, -0.04047619551420212, -0.19417200982570648, -0.5982769131660461, -0.042334817349910736, -0.14811702072620392, -0.23137401044368744, 0.24175205826759338, 0.3802970051765442, -0.10069047659635544, 0.3059272766113281, 0.06069716811180115, -0.1094730794429779, 0.25705716013908386, -0.6360198855400085, 0.09245958924293518, 0.09076344966888428, -0.05721915513277054, 0.30935099720954895, 0.058656539767980576, -0.0854964554309845, -0.018470624461770058, -0.23897479474544525, 0.34029802680015564, -0.3041667938232422, 0.09762687981128693, -0.2271212637424469, 0.03301034867763519, -0.1078648641705513, 0.005203265696763992, 0.1080247014760971, -0.07958842813968658, 0.13740018010139465, -0.07346179336309433, 0.2036413997411728, 0.11403769999742508, -0.22369103133678436, 0.22999300062656403, -0.11681875586509705, 0.0737467035651207, -0.6453621983528137, 0.5514606237411499, 0.36343416571617126, -0.09826972335577011, 0.016763849183917046, 0.26537638902664185, 0.015223085880279541, -0.18764853477478027, 0.32546770572662354, 0.20124958455562592, 0.47875553369522095, -0.043281156569719315, -0.07363351434469223, 0.12418095022439957, 0.07404666393995285, -0.09110697358846664, 0.2807721793651581, 0.5041822195053101, 0.07197098433971405, 0.45485612750053406, 0.055684905499219894, -0.2469399869441986, 0.10967070609331131, -0.06710435450077057, 0.0015858309343457222, -0.10189862549304962, 0.44226768612861633, -0.08225822448730469, 0.008662515319883823, -0.3223492503166199, -0.11045507341623306, -0.3370458483695984, 0.34383392333984375, 0.05582086369395256, -0.047978926450014114, 0.25152572989463806, 0.011278579011559486, 0.08349252492189407, -0.03462924063205719, 0.252555787563324, 0.13496330380439758, -0.16710183024406433, -0.3239261507987976, -0.1811329424381256, -0.5610324144363403, 0.22686520218849182, 0.13356775045394897, 0.18415087461471558, -0.031348418444395065, 0.16959236562252045, -0.25292789936065674, -0.11920035630464554, -0.046325329691171646, -0.19636182487010956, 0.25092318654060364, 0.02480761520564556, -0.27682963013648987, -0.35299140214920044, -0.24162499606609344, -0.4227740168571472, 0.17088355123996735, -0.2491312325000763, 0.009029804728925228, -0.15369486808776855, -0.0019237141823396087, -0.04553566500544548, -0.03631981089711189, 0.26113560795783997, 0.3332712948322296, 0.23745225369930267, 0.0346149206161499, 0.5644974112510681, -0.037853457033634186, -0.07344843447208405, 0.015899017453193665, 0.14021718502044678, -0.22526420652866364, 0.23529499769210815, 0.14536689221858978, 0.3947981297969818, -0.03567277267575264, -0.1783241331577301, -0.4293416738510132, 0.7531890273094177, 0.2873353064060211, -0.22657160460948944, -0.07930842787027359, -0.04111136868596077, 0.10832646489143372, 0.0716213583946228, 0.31292563676834106, 0.36380138993263245, -0.14062896370887756, 0.33080342411994934, -0.3588162958621979, -0.20751157402992249, 0.5828332304954529, -0.4029484987258911, -0.29715126752853394, -0.00830060988664627, 0.34023991227149963, 0.5178589224815369, -0.43535465002059937, -0.8319966793060303, -0.006671222858130932, 0.22144325077533722, 0.11133048683404922, -0.2993389070034027, 0.08498091995716095, -0.16652971506118774, 0.26736411452293396, -0.08180557191371918, 0.3439674973487854, -0.07568918168544769, -0.12148640304803848, 0.03911024332046509, -0.24258269369602203 ]
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.329912394285202, -0.39836767315864563, 0.04140733182430267, 0.4000958502292633, 0.3001839518547058, -0.22759142518043518, 0.2741972506046295, 0.2562867999076843, 0.005499670747667551, 0.2942807972431183, -0.01227353885769844, 0.022469723597168922, -0.08508621156215668, 0.04614228755235672, -0.28178730607032776, 0.12844955921173096, -0.20951272547245026, -0.07703845947980881, 0.42174503207206726, 0.08553607761859894, -0.3209673762321472, 0.19018305838108063, -0.11296103894710541, -0.182755708694458, -0.31205472350120544, 0.01896643079817295, 0.3288895785808563, -0.0016792763490229845, -0.13102926313877106, -0.2663411498069763, 0.11802905797958374, -0.19675496220588684, 0.11216538399457932, 0.5339969396591187, -0.00011421440285630524, -0.16619136929512024, 0.13908377289772034, -0.18148864805698395, -0.17730845510959625, -0.1401205211877823, -0.034272342920303345, -0.2571435868740082, -0.11226260662078857, -0.24260535836219788, 0.04414965584874153, 0.1876821219921112, -0.16063348948955536, -0.012286441400647163, 0.18435943126678467, 0.39791178703308105, 0.1449996531009674, 0.1509120762348175, 0.07810544967651367, 0.07784484326839447, -0.13811346888542175, -0.3425806760787964, -0.15217991173267365, 0.3253556787967682, -0.06692495197057724, 0.03162774816155434, -0.20974288880825043, 0.22105464339256287, 0.16179384291172028, 0.2145262062549591, 0.28306686878204346, -0.11133354902267456, 0.37664636969566345, -0.04792313650250435, 0.2515905499458313, 0.19776217639446259, -0.09956903010606766, -0.20138996839523315, -0.21858562529087067, 0.1886240839958191, 0.12778699398040771, -0.6358426809310913, -0.05380062758922577, -0.060971878468990326, -0.1685432642698288, -0.381120890378952, -0.37570613622665405, -0.10144820064306259, -0.10101772099733353, -0.13524316251277924, -0.15136058628559113, 0.17876118421554565, -0.3350166380405426, 0.10107947885990143, 0.06650024652481079, 0.037248395383358, 0.22743988037109375, 0.09554264694452286, 0.10291211307048798, 0.22068233788013458, -0.49903279542922974, -0.10536181926727295, 0.016087273135781288, -0.18885453045368195, -0.01623479276895523, -0.03253645822405815, 0.246625617146492, -0.01586129702627659, -0.05601885914802551, 0.1580466777086258, -0.15706780552864075, 0.5400378704071045, 0.17008081078529358, 0.084213487803936, 0.39336955547332764, 0.5855422616004944, 0.09295296669006348, -0.004057584796100855, -0.005678009707480669, -0.5385406613349915, 0.23224183917045593, 0.07332007586956024, -0.17841242253780365, -0.18943004310131073, -0.49301469326019287, 0.0014657845022156835, -0.06099320575594902, 0.031279947608709335, 0.2731883227825165, 0.45163002610206604, -0.3899911940097809, -0.2442987710237503, 0.24233894050121307, -0.0518198125064373, -0.04410034790635109, -0.048507414758205414, -0.27872997522354126, 0.06354299932718277, -0.02964348904788494, 0.19078247249126434, 0.08794595301151276, -0.6552606225013733, 0.3337697684764862, -0.15722696483135223, 0.2568185031414032, -0.21716518700122833, 0.08466146141290665, -0.2342723309993744, -0.014011673629283905, 0.029247689992189407, -0.05533605441451073, -0.3133432865142822, 0.32569336891174316, -0.2782122790813446, 0.09636637568473816, 0.07499852031469345, -0.05072852224111557, -0.40880286693573, 0.059635769575834274, 0.11786741018295288, -0.13852457702159882, 0.05862799286842346, -0.14546780288219452, 0.20553068816661835, 0.3106638193130493, -0.05174217373132706, 0.060774873942136765, -0.14683379232883453, -0.18841062486171722, -0.13215504586696625, 0.5624072551727295, -0.029652463272213936, -0.22556230425834656, -0.049947936087846756, -0.033021438866853714, 0.021450607106089592, 0.36092066764831543, 0.33226218819618225, 0.04741419479250908, 0.13746923208236694, -0.10439547896385193, -0.10682222247123718, 0.2952236831188202, -0.35572347044944763, -0.18236643075942993, -0.1604953557252884, 0.041174765676259995, -0.18272998929023743, 0.05327286198735237, -0.14260563254356384, -0.02611360140144825, -0.15446297824382782, 0.4189426302909851, 0.0851457267999649, -0.17665551602840424, -0.11907237768173218, -0.48140838742256165, -0.3502425253391266, -0.09127014875411987, 0.05895428732037544, 0.5071213245391846, -0.07625406235456467, 0.1716110110282898, 0.26421037316322327, 0.05545499548316002, -0.07773410528898239, 0.0007423357455991209, 0.13575896620750427, 0.26041027903556824, -0.24531902372837067, 0.1736733615398407, -0.18391552567481995, 0.19437849521636963, 0.2270917445421219, 0.14800696074962616, 0.13269220292568207, 0.0645507201552391, -0.09578727185726166, -0.3693140745162964, 0.011740914545953274, 0.04087328910827637, -0.09064234793186188, 0.1942007839679718, -0.023632599040865898, 0.02007315866649151, -0.04626062139868736, -0.17795726656913757, 0.019060995429754257, -0.6478567123413086, 0.057779520750045776, 0.24215508997440338, -0.011923534795641899, 0.009530909359455109, -0.11172331124544144, 0.07775720953941345, 0.3475858271121979, 0.18648134171962738, 0.07951164990663528, -0.1525598168373108, 0.3241608738899231, 0.14699526131153107, -0.21066901087760925, 0.0685732290148735, -0.12138339877128601, -0.025995831936597824, 0.31581243872642517, -0.04526841640472412, 0.08326788991689682, 0.09919486194849014, -0.1209593117237091, 0.24413147568702698, 0.09364616125822067, -0.07940492033958435, 0.17948268353939056, 0.2946685552597046, -0.08058574050664902, -0.07273472100496292, 0.1661313772201538, 0.14957833290100098, -0.17806027829647064, 0.17246203124523163, -0.1364564299583435, 0.06643970310688019, -0.2640101909637451, 0.027136294171214104, -0.2498510777950287, 0.4172479212284088, 0.07080957293510437, 0.06458041816949844, 0.19377872347831726, -0.02596040442585945, -0.058947157114744186, -0.03500710427761078, 0.08320687711238861, 0.20399129390716553, -0.049956753849983215, 0.2260345220565796, 0.07168998569250107, -0.16681738197803497, -0.13714641332626343, 0.010470805689692497, 0.06624455749988556, 0.24011361598968506, 0.3439277410507202, 0.16824062168598175, -0.1599612534046173, -0.2710844576358795, -0.1610841453075409, 0.2464815378189087, 0.2385193556547165, -0.150637686252594, -0.056851908564567566, 0.07569365203380585, 0.1517331302165985, -0.28765642642974854, -0.2880500257015228, -0.25335001945495605, -0.15971893072128296, 0.08838333934545517, 0.29258909821510315, 0.2578849494457245, -0.001451060175895691, 0.3952111005783081, 0.4617104232311249, 0.05935929715633392, -0.05133714899420738, 0.050237495452165604, -0.21538560092449188, -0.3148037791252136, 0.08866844326257706, 0.06497024744749069, -0.10161416232585907, 0.2333037406206131, -0.10219592601060867, -0.19489997625350952, -0.3437848389148712, -0.4103054106235504, 0.01005693431943655, -0.21031904220581055, 0.4719873368740082, 0.18166297674179077, -0.004250767175108194, -0.3588896095752716, -0.1189144104719162, 0.14626827836036682, 0.12110825628042221, -0.03983285650610924, -0.019685711711645126, -0.14938358962535858, 0.03914763033390045, -0.07081405818462372, -0.22209809720516205, 0.16400282084941864, -0.3041471242904663, 0.2409517914056778, 0.0763135626912117, 0.030652333050966263, -0.0612245537340641, 0.05230997875332832, 0.5045962929725647, 0.5048167109489441, -0.03792325034737587, -0.2633744478225708, 0.09040706604719162, 0.13802002370357513, -0.33669066429138184, -0.3102613389492035, 0.02160954661667347, 0.016284193843603134, 0.5390126705169678, 0.16476057469844818, -0.457992821931839, -0.3172895908355713, -0.08158464729785919, -0.20542101562023163, -0.24346813559532166, 0.10444780439138412, 0.10456062853336334, 0.04537154734134674, -0.016684021800756454, -0.12195263803005219, -0.12123064696788788, 0.033526916056871414, -0.22951267659664154, 0.6499079465866089, -0.27618181705474854, 0.28033483028411865, 0.32706132531166077, 0.8638538718223572, 0.171412855386734, -0.02713315561413765, 0.08198857307434082, 0.12086945027112961, 0.04165523871779442, -0.007302220445126295, -0.054565150290727615, 0.6279388070106506, -0.2941345274448395, -0.17788955569267273, 0.14976400136947632, -0.1594054400920868, 0.2452189177274704, -0.057221535593271255, -0.021892838180065155, 0.1148410215973854, -0.16917067766189575, -0.15252043306827545, 0.14203491806983948, 0.22616685926914215, 0.08441024273633957, 0.011643420904874802, -0.28704702854156494, -0.04396989941596985, 0.026011575013399124, 0.22015923261642456, -0.0691913366317749, -0.008999313227832317, 0.24852116405963898, 0.004199643153697252, -0.5446140766143799, 0.4457462430000305, 0.2141600102186203, 0.13161346316337585, 0.033500414341688156, 0.13207317888736725, -0.0986366719007492, -0.16176116466522217, 0.22191371023654938, -0.2070654034614563, 0.04139078035950661, -0.03885748237371445, -0.08244606107473373, -0.5960404276847839, 0.031793177127838135, -0.061952754855155945, -0.28777414560317993, 0.4565439820289612, 0.375179260969162, -0.25940459966659546, 0.13725623488426208, 0.22994856536388397, 0.24744665622711182, -0.004891037009656429, 0.01772783137857914, -0.5006988644599915, -0.40969938039779663, -0.15691927075386047, 0.12795935571193695, 0.13802535831928253, 0.285532146692276, -0.03175197169184685, 0.04163845255970955, -0.16453763842582703, -0.1756138652563095, 0.04856983572244644, 0.2861669361591339, 0.0373409204185009, -0.09882093220949173, 0.14866763353347778, -0.19388693571090698, -0.3395833969116211, 0.20055551826953888, 0.12169962376356125, -0.041294749826192856, -0.9286243319511414, 0.039742786437273026, 0.027219336479902267, 0.24921539425849915, 0.13508853316307068, -0.15889954566955566, 0.20742149651050568, -0.16972577571868896, 0.4346752166748047, 0.07449284195899963, 0.277113676071167, 0.16090410947799683, 0.3366522490978241, -0.0105164535343647, -0.12534286081790924, 0.3105500042438507, 0.2530328333377838, 0.22151769697666168, 0.5469452142715454, -0.09156457334756851, -0.11807259172201157, 0.12478761374950409, 0.6157292127609253, 0.6351816654205322, 0.019563358277082443, -0.2783789038658142, 0.36204028129577637, -0.048477936536073685, 0.4466262757778168, -0.4077377915382385, 0.4081351161003113, -0.300152987241745, -0.5378542542457581, 0.09860271215438843, 0.01668892800807953, 0.02945530042052269, -0.25062236189842224, -0.1074843779206276, 0.3304615020751953, -0.15858183801174164, -0.2208050787448883, 0.033050548285245895, 0.07572650909423828, -0.3909947872161865, -0.08136982470750809, -0.015905482694506645, 0.18097072839736938, -0.1984892189502716, 0.15307006239891052, -0.23911260068416595, 0.22615133225917816, -0.026902474462985992, -0.0777365192770958, -0.21889938414096832, 0.0008699241443537176, -0.455926775932312, 0.18233950436115265, -0.06680197268724442, -0.06951751559972763, 0.03761729225516319, 0.2896285653114319, 0.8918436169624329, 0.13067542016506195, -0.07761867344379425, 0.1159060001373291, -0.014726703986525536, -0.0918249636888504, -0.08558529615402222, 0.0643569752573967, 0.2934022545814514, -0.2617603838443756, -0.16873934864997864, -0.08115091174840927, 0.09257656335830688, -0.16079185903072357, 0.36256447434425354, -0.046711042523384094, -0.07486790418624878, 0.15066668391227722, 0.020216571167111397, 0.026631413027644157, -0.06784187257289886, -0.17309914529323578, 0.11561629176139832, -0.16313716769218445, -0.25148171186447144, -0.011650501750409603, 0.013960801064968109, -0.3538234233856201, 0.07691981643438339, 0.18481573462486267, 0.09635576605796814, -0.1526750922203064, 0.4362224042415619, -0.1270214468240738, -0.06890548765659332, -0.08265196532011032, -0.482875257730484, 0.09407865256071091, -0.06158195808529854, 0.32770276069641113, -0.039193686097860336, -0.1508190929889679, 0.10884677618741989, 0.8712247014045715, 0.2959720194339752, 0.15337903797626495, -0.22971461713314056, -0.3328501284122467, -0.3247039318084717, 0.014475670643150806, 0.005240412428975105, 0.09894164651632309, -0.16323663294315338, 0.36495494842529297, -0.11459783464670181, 0.30880308151245117, -0.24895928800106049, 0.11808548122644424, -0.4077553153038025, 0.11900582909584045, -0.14777611196041107, -0.16000448167324066, 0.30077022314071655, 0.3664519786834717, 0.011363101191818714, 0.44244226813316345, -0.24321076273918152, -0.18150530755519867, -0.18888258934020996, 0.11997123807668686, 0.23678503930568695, -0.037302546203136444, -0.15523099899291992, -0.04593363776803017, -0.3102085292339325, -0.17679321765899658, 0.21192464232444763, 0.2571958899497986, -0.06610944867134094, 0.06374484300613403, -0.24947039783000946, 0.42239096760749817, 0.2251347154378891, -0.29633960127830505, 0.3116737902164459, 0.2022937834262848, 0.13051213324069977, 0.09952474385499954, 0.14368653297424316, 0.07203052192926407, 0.08040915429592133, -0.25977224111557007, -0.009854595176875591, 0.008554366417229176, 0.19674013555049896, -0.2309921234846115, -0.15612062811851501, -0.3708263039588928, 0.051718175411224365, 0.36357563734054565, 0.007451995741575956, -0.27410921454429626, 0.1914915293455124, 0.1322607845067978, -0.32511866092681885, 0.11903277784585953, -0.25706642866134644, 0.05392811819911003, 0.08568443357944489, 0.2737962603569031, 0.004499911796301603, 0.023140372708439827, 0.03706132993102074, -0.04047619551420212, -0.19417200982570648, -0.5982769131660461, -0.042334817349910736, -0.14811702072620392, -0.23137401044368744, 0.24175205826759338, 0.3802970051765442, -0.10069047659635544, 0.3059272766113281, 0.06069716811180115, -0.1094730794429779, 0.25705716013908386, -0.6360198855400085, 0.09245958924293518, 0.09076344966888428, -0.05721915513277054, 0.30935099720954895, 0.058656539767980576, -0.0854964554309845, -0.018470624461770058, -0.23897479474544525, 0.34029802680015564, -0.3041667938232422, 0.09762687981128693, -0.2271212637424469, 0.03301034867763519, -0.1078648641705513, 0.005203265696763992, 0.1080247014760971, -0.07958842813968658, 0.13740018010139465, -0.07346179336309433, 0.2036413997411728, 0.11403769999742508, -0.22369103133678436, 0.22999300062656403, -0.11681875586509705, 0.0737467035651207, -0.6453621983528137, 0.5514606237411499, 0.36343416571617126, -0.09826972335577011, 0.016763849183917046, 0.26537638902664185, 0.015223085880279541, -0.18764853477478027, 0.32546770572662354, 0.20124958455562592, 0.47875553369522095, -0.043281156569719315, -0.07363351434469223, 0.12418095022439957, 0.07404666393995285, -0.09110697358846664, 0.2807721793651581, 0.5041822195053101, 0.07197098433971405, 0.45485612750053406, 0.055684905499219894, -0.2469399869441986, 0.10967070609331131, -0.06710435450077057, 0.0015858309343457222, -0.10189862549304962, 0.44226768612861633, -0.08225822448730469, 0.008662515319883823, -0.3223492503166199, -0.11045507341623306, -0.3370458483695984, 0.34383392333984375, 0.05582086369395256, -0.047978926450014114, 0.25152572989463806, 0.011278579011559486, 0.08349252492189407, -0.03462924063205719, 0.252555787563324, 0.13496330380439758, -0.16710183024406433, -0.3239261507987976, -0.1811329424381256, -0.5610324144363403, 0.22686520218849182, 0.13356775045394897, 0.18415087461471558, -0.031348418444395065, 0.16959236562252045, -0.25292789936065674, -0.11920035630464554, -0.046325329691171646, -0.19636182487010956, 0.25092318654060364, 0.02480761520564556, -0.27682963013648987, -0.35299140214920044, -0.24162499606609344, -0.4227740168571472, 0.17088355123996735, -0.2491312325000763, 0.009029804728925228, -0.15369486808776855, -0.0019237141823396087, -0.04553566500544548, -0.03631981089711189, 0.26113560795783997, 0.3332712948322296, 0.23745225369930267, 0.0346149206161499, 0.5644974112510681, -0.037853457033634186, -0.07344843447208405, 0.015899017453193665, 0.14021718502044678, -0.22526420652866364, 0.23529499769210815, 0.14536689221858978, 0.3947981297969818, -0.03567277267575264, -0.1783241331577301, -0.4293416738510132, 0.7531890273094177, 0.2873353064060211, -0.22657160460948944, -0.07930842787027359, -0.04111136868596077, 0.10832646489143372, 0.0716213583946228, 0.31292563676834106, 0.36380138993263245, -0.14062896370887756, 0.33080342411994934, -0.3588162958621979, -0.20751157402992249, 0.5828332304954529, -0.4029484987258911, -0.29715126752853394, -0.00830060988664627, 0.34023991227149963, 0.5178589224815369, -0.43535465002059937, -0.8319966793060303, -0.006671222858130932, 0.22144325077533722, 0.11133048683404922, -0.2993389070034027, 0.08498091995716095, -0.16652971506118774, 0.26736411452293396, -0.08180557191371918, 0.3439674973487854, -0.07568918168544769, -0.12148640304803848, 0.03911024332046509, -0.24258269369602203 ]
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.329912394285202, -0.39836767315864563, 0.04140733182430267, 0.4000958502292633, 0.3001839518547058, -0.22759142518043518, 0.2741972506046295, 0.2562867999076843, 0.005499670747667551, 0.2942807972431183, -0.01227353885769844, 0.022469723597168922, -0.08508621156215668, 0.04614228755235672, -0.28178730607032776, 0.12844955921173096, -0.20951272547245026, -0.07703845947980881, 0.42174503207206726, 0.08553607761859894, -0.3209673762321472, 0.19018305838108063, -0.11296103894710541, -0.182755708694458, -0.31205472350120544, 0.01896643079817295, 0.3288895785808563, -0.0016792763490229845, -0.13102926313877106, -0.2663411498069763, 0.11802905797958374, -0.19675496220588684, 0.11216538399457932, 0.5339969396591187, -0.00011421440285630524, -0.16619136929512024, 0.13908377289772034, -0.18148864805698395, -0.17730845510959625, -0.1401205211877823, -0.034272342920303345, -0.2571435868740082, -0.11226260662078857, -0.24260535836219788, 0.04414965584874153, 0.1876821219921112, -0.16063348948955536, -0.012286441400647163, 0.18435943126678467, 0.39791178703308105, 0.1449996531009674, 0.1509120762348175, 0.07810544967651367, 0.07784484326839447, -0.13811346888542175, -0.3425806760787964, -0.15217991173267365, 0.3253556787967682, -0.06692495197057724, 0.03162774816155434, -0.20974288880825043, 0.22105464339256287, 0.16179384291172028, 0.2145262062549591, 0.28306686878204346, -0.11133354902267456, 0.37664636969566345, -0.04792313650250435, 0.2515905499458313, 0.19776217639446259, -0.09956903010606766, -0.20138996839523315, -0.21858562529087067, 0.1886240839958191, 0.12778699398040771, -0.6358426809310913, -0.05380062758922577, -0.060971878468990326, -0.1685432642698288, -0.381120890378952, -0.37570613622665405, -0.10144820064306259, -0.10101772099733353, -0.13524316251277924, -0.15136058628559113, 0.17876118421554565, -0.3350166380405426, 0.10107947885990143, 0.06650024652481079, 0.037248395383358, 0.22743988037109375, 0.09554264694452286, 0.10291211307048798, 0.22068233788013458, -0.49903279542922974, -0.10536181926727295, 0.016087273135781288, -0.18885453045368195, -0.01623479276895523, -0.03253645822405815, 0.246625617146492, -0.01586129702627659, -0.05601885914802551, 0.1580466777086258, -0.15706780552864075, 0.5400378704071045, 0.17008081078529358, 0.084213487803936, 0.39336955547332764, 0.5855422616004944, 0.09295296669006348, -0.004057584796100855, -0.005678009707480669, -0.5385406613349915, 0.23224183917045593, 0.07332007586956024, -0.17841242253780365, -0.18943004310131073, -0.49301469326019287, 0.0014657845022156835, -0.06099320575594902, 0.031279947608709335, 0.2731883227825165, 0.45163002610206604, -0.3899911940097809, -0.2442987710237503, 0.24233894050121307, -0.0518198125064373, -0.04410034790635109, -0.048507414758205414, -0.27872997522354126, 0.06354299932718277, -0.02964348904788494, 0.19078247249126434, 0.08794595301151276, -0.6552606225013733, 0.3337697684764862, -0.15722696483135223, 0.2568185031414032, -0.21716518700122833, 0.08466146141290665, -0.2342723309993744, -0.014011673629283905, 0.029247689992189407, -0.05533605441451073, -0.3133432865142822, 0.32569336891174316, -0.2782122790813446, 0.09636637568473816, 0.07499852031469345, -0.05072852224111557, -0.40880286693573, 0.059635769575834274, 0.11786741018295288, -0.13852457702159882, 0.05862799286842346, -0.14546780288219452, 0.20553068816661835, 0.3106638193130493, -0.05174217373132706, 0.060774873942136765, -0.14683379232883453, -0.18841062486171722, -0.13215504586696625, 0.5624072551727295, -0.029652463272213936, -0.22556230425834656, -0.049947936087846756, -0.033021438866853714, 0.021450607106089592, 0.36092066764831543, 0.33226218819618225, 0.04741419479250908, 0.13746923208236694, -0.10439547896385193, -0.10682222247123718, 0.2952236831188202, -0.35572347044944763, -0.18236643075942993, -0.1604953557252884, 0.041174765676259995, -0.18272998929023743, 0.05327286198735237, -0.14260563254356384, -0.02611360140144825, -0.15446297824382782, 0.4189426302909851, 0.0851457267999649, -0.17665551602840424, -0.11907237768173218, -0.48140838742256165, -0.3502425253391266, -0.09127014875411987, 0.05895428732037544, 0.5071213245391846, -0.07625406235456467, 0.1716110110282898, 0.26421037316322327, 0.05545499548316002, -0.07773410528898239, 0.0007423357455991209, 0.13575896620750427, 0.26041027903556824, -0.24531902372837067, 0.1736733615398407, -0.18391552567481995, 0.19437849521636963, 0.2270917445421219, 0.14800696074962616, 0.13269220292568207, 0.0645507201552391, -0.09578727185726166, -0.3693140745162964, 0.011740914545953274, 0.04087328910827637, -0.09064234793186188, 0.1942007839679718, -0.023632599040865898, 0.02007315866649151, -0.04626062139868736, -0.17795726656913757, 0.019060995429754257, -0.6478567123413086, 0.057779520750045776, 0.24215508997440338, -0.011923534795641899, 0.009530909359455109, -0.11172331124544144, 0.07775720953941345, 0.3475858271121979, 0.18648134171962738, 0.07951164990663528, -0.1525598168373108, 0.3241608738899231, 0.14699526131153107, -0.21066901087760925, 0.0685732290148735, -0.12138339877128601, -0.025995831936597824, 0.31581243872642517, -0.04526841640472412, 0.08326788991689682, 0.09919486194849014, -0.1209593117237091, 0.24413147568702698, 0.09364616125822067, -0.07940492033958435, 0.17948268353939056, 0.2946685552597046, -0.08058574050664902, -0.07273472100496292, 0.1661313772201538, 0.14957833290100098, -0.17806027829647064, 0.17246203124523163, -0.1364564299583435, 0.06643970310688019, -0.2640101909637451, 0.027136294171214104, -0.2498510777950287, 0.4172479212284088, 0.07080957293510437, 0.06458041816949844, 0.19377872347831726, -0.02596040442585945, -0.058947157114744186, -0.03500710427761078, 0.08320687711238861, 0.20399129390716553, -0.049956753849983215, 0.2260345220565796, 0.07168998569250107, -0.16681738197803497, -0.13714641332626343, 0.010470805689692497, 0.06624455749988556, 0.24011361598968506, 0.3439277410507202, 0.16824062168598175, -0.1599612534046173, -0.2710844576358795, -0.1610841453075409, 0.2464815378189087, 0.2385193556547165, -0.150637686252594, -0.056851908564567566, 0.07569365203380585, 0.1517331302165985, -0.28765642642974854, -0.2880500257015228, -0.25335001945495605, -0.15971893072128296, 0.08838333934545517, 0.29258909821510315, 0.2578849494457245, -0.001451060175895691, 0.3952111005783081, 0.4617104232311249, 0.05935929715633392, -0.05133714899420738, 0.050237495452165604, -0.21538560092449188, -0.3148037791252136, 0.08866844326257706, 0.06497024744749069, -0.10161416232585907, 0.2333037406206131, -0.10219592601060867, -0.19489997625350952, -0.3437848389148712, -0.4103054106235504, 0.01005693431943655, -0.21031904220581055, 0.4719873368740082, 0.18166297674179077, -0.004250767175108194, -0.3588896095752716, -0.1189144104719162, 0.14626827836036682, 0.12110825628042221, -0.03983285650610924, -0.019685711711645126, -0.14938358962535858, 0.03914763033390045, -0.07081405818462372, -0.22209809720516205, 0.16400282084941864, -0.3041471242904663, 0.2409517914056778, 0.0763135626912117, 0.030652333050966263, -0.0612245537340641, 0.05230997875332832, 0.5045962929725647, 0.5048167109489441, -0.03792325034737587, -0.2633744478225708, 0.09040706604719162, 0.13802002370357513, -0.33669066429138184, -0.3102613389492035, 0.02160954661667347, 0.016284193843603134, 0.5390126705169678, 0.16476057469844818, -0.457992821931839, -0.3172895908355713, -0.08158464729785919, -0.20542101562023163, -0.24346813559532166, 0.10444780439138412, 0.10456062853336334, 0.04537154734134674, -0.016684021800756454, -0.12195263803005219, -0.12123064696788788, 0.033526916056871414, -0.22951267659664154, 0.6499079465866089, -0.27618181705474854, 0.28033483028411865, 0.32706132531166077, 0.8638538718223572, 0.171412855386734, -0.02713315561413765, 0.08198857307434082, 0.12086945027112961, 0.04165523871779442, -0.007302220445126295, -0.054565150290727615, 0.6279388070106506, -0.2941345274448395, -0.17788955569267273, 0.14976400136947632, -0.1594054400920868, 0.2452189177274704, -0.057221535593271255, -0.021892838180065155, 0.1148410215973854, -0.16917067766189575, -0.15252043306827545, 0.14203491806983948, 0.22616685926914215, 0.08441024273633957, 0.011643420904874802, -0.28704702854156494, -0.04396989941596985, 0.026011575013399124, 0.22015923261642456, -0.0691913366317749, -0.008999313227832317, 0.24852116405963898, 0.004199643153697252, -0.5446140766143799, 0.4457462430000305, 0.2141600102186203, 0.13161346316337585, 0.033500414341688156, 0.13207317888736725, -0.0986366719007492, -0.16176116466522217, 0.22191371023654938, -0.2070654034614563, 0.04139078035950661, -0.03885748237371445, -0.08244606107473373, -0.5960404276847839, 0.031793177127838135, -0.061952754855155945, -0.28777414560317993, 0.4565439820289612, 0.375179260969162, -0.25940459966659546, 0.13725623488426208, 0.22994856536388397, 0.24744665622711182, -0.004891037009656429, 0.01772783137857914, -0.5006988644599915, -0.40969938039779663, -0.15691927075386047, 0.12795935571193695, 0.13802535831928253, 0.285532146692276, -0.03175197169184685, 0.04163845255970955, -0.16453763842582703, -0.1756138652563095, 0.04856983572244644, 0.2861669361591339, 0.0373409204185009, -0.09882093220949173, 0.14866763353347778, -0.19388693571090698, -0.3395833969116211, 0.20055551826953888, 0.12169962376356125, -0.041294749826192856, -0.9286243319511414, 0.039742786437273026, 0.027219336479902267, 0.24921539425849915, 0.13508853316307068, -0.15889954566955566, 0.20742149651050568, -0.16972577571868896, 0.4346752166748047, 0.07449284195899963, 0.277113676071167, 0.16090410947799683, 0.3366522490978241, -0.0105164535343647, -0.12534286081790924, 0.3105500042438507, 0.2530328333377838, 0.22151769697666168, 0.5469452142715454, -0.09156457334756851, -0.11807259172201157, 0.12478761374950409, 0.6157292127609253, 0.6351816654205322, 0.019563358277082443, -0.2783789038658142, 0.36204028129577637, -0.048477936536073685, 0.4466262757778168, -0.4077377915382385, 0.4081351161003113, -0.300152987241745, -0.5378542542457581, 0.09860271215438843, 0.01668892800807953, 0.02945530042052269, -0.25062236189842224, -0.1074843779206276, 0.3304615020751953, -0.15858183801174164, -0.2208050787448883, 0.033050548285245895, 0.07572650909423828, -0.3909947872161865, -0.08136982470750809, -0.015905482694506645, 0.18097072839736938, -0.1984892189502716, 0.15307006239891052, -0.23911260068416595, 0.22615133225917816, -0.026902474462985992, -0.0777365192770958, -0.21889938414096832, 0.0008699241443537176, -0.455926775932312, 0.18233950436115265, -0.06680197268724442, -0.06951751559972763, 0.03761729225516319, 0.2896285653114319, 0.8918436169624329, 0.13067542016506195, -0.07761867344379425, 0.1159060001373291, -0.014726703986525536, -0.0918249636888504, -0.08558529615402222, 0.0643569752573967, 0.2934022545814514, -0.2617603838443756, -0.16873934864997864, -0.08115091174840927, 0.09257656335830688, -0.16079185903072357, 0.36256447434425354, -0.046711042523384094, -0.07486790418624878, 0.15066668391227722, 0.020216571167111397, 0.026631413027644157, -0.06784187257289886, -0.17309914529323578, 0.11561629176139832, -0.16313716769218445, -0.25148171186447144, -0.011650501750409603, 0.013960801064968109, -0.3538234233856201, 0.07691981643438339, 0.18481573462486267, 0.09635576605796814, -0.1526750922203064, 0.4362224042415619, -0.1270214468240738, -0.06890548765659332, -0.08265196532011032, -0.482875257730484, 0.09407865256071091, -0.06158195808529854, 0.32770276069641113, -0.039193686097860336, -0.1508190929889679, 0.10884677618741989, 0.8712247014045715, 0.2959720194339752, 0.15337903797626495, -0.22971461713314056, -0.3328501284122467, -0.3247039318084717, 0.014475670643150806, 0.005240412428975105, 0.09894164651632309, -0.16323663294315338, 0.36495494842529297, -0.11459783464670181, 0.30880308151245117, -0.24895928800106049, 0.11808548122644424, -0.4077553153038025, 0.11900582909584045, -0.14777611196041107, -0.16000448167324066, 0.30077022314071655, 0.3664519786834717, 0.011363101191818714, 0.44244226813316345, -0.24321076273918152, -0.18150530755519867, -0.18888258934020996, 0.11997123807668686, 0.23678503930568695, -0.037302546203136444, -0.15523099899291992, -0.04593363776803017, -0.3102085292339325, -0.17679321765899658, 0.21192464232444763, 0.2571958899497986, -0.06610944867134094, 0.06374484300613403, -0.24947039783000946, 0.42239096760749817, 0.2251347154378891, -0.29633960127830505, 0.3116737902164459, 0.2022937834262848, 0.13051213324069977, 0.09952474385499954, 0.14368653297424316, 0.07203052192926407, 0.08040915429592133, -0.25977224111557007, -0.009854595176875591, 0.008554366417229176, 0.19674013555049896, -0.2309921234846115, -0.15612062811851501, -0.3708263039588928, 0.051718175411224365, 0.36357563734054565, 0.007451995741575956, -0.27410921454429626, 0.1914915293455124, 0.1322607845067978, -0.32511866092681885, 0.11903277784585953, -0.25706642866134644, 0.05392811819911003, 0.08568443357944489, 0.2737962603569031, 0.004499911796301603, 0.023140372708439827, 0.03706132993102074, -0.04047619551420212, -0.19417200982570648, -0.5982769131660461, -0.042334817349910736, -0.14811702072620392, -0.23137401044368744, 0.24175205826759338, 0.3802970051765442, -0.10069047659635544, 0.3059272766113281, 0.06069716811180115, -0.1094730794429779, 0.25705716013908386, -0.6360198855400085, 0.09245958924293518, 0.09076344966888428, -0.05721915513277054, 0.30935099720954895, 0.058656539767980576, -0.0854964554309845, -0.018470624461770058, -0.23897479474544525, 0.34029802680015564, -0.3041667938232422, 0.09762687981128693, -0.2271212637424469, 0.03301034867763519, -0.1078648641705513, 0.005203265696763992, 0.1080247014760971, -0.07958842813968658, 0.13740018010139465, -0.07346179336309433, 0.2036413997411728, 0.11403769999742508, -0.22369103133678436, 0.22999300062656403, -0.11681875586509705, 0.0737467035651207, -0.6453621983528137, 0.5514606237411499, 0.36343416571617126, -0.09826972335577011, 0.016763849183917046, 0.26537638902664185, 0.015223085880279541, -0.18764853477478027, 0.32546770572662354, 0.20124958455562592, 0.47875553369522095, -0.043281156569719315, -0.07363351434469223, 0.12418095022439957, 0.07404666393995285, -0.09110697358846664, 0.2807721793651581, 0.5041822195053101, 0.07197098433971405, 0.45485612750053406, 0.055684905499219894, -0.2469399869441986, 0.10967070609331131, -0.06710435450077057, 0.0015858309343457222, -0.10189862549304962, 0.44226768612861633, -0.08225822448730469, 0.008662515319883823, -0.3223492503166199, -0.11045507341623306, -0.3370458483695984, 0.34383392333984375, 0.05582086369395256, -0.047978926450014114, 0.25152572989463806, 0.011278579011559486, 0.08349252492189407, -0.03462924063205719, 0.252555787563324, 0.13496330380439758, -0.16710183024406433, -0.3239261507987976, -0.1811329424381256, -0.5610324144363403, 0.22686520218849182, 0.13356775045394897, 0.18415087461471558, -0.031348418444395065, 0.16959236562252045, -0.25292789936065674, -0.11920035630464554, -0.046325329691171646, -0.19636182487010956, 0.25092318654060364, 0.02480761520564556, -0.27682963013648987, -0.35299140214920044, -0.24162499606609344, -0.4227740168571472, 0.17088355123996735, -0.2491312325000763, 0.009029804728925228, -0.15369486808776855, -0.0019237141823396087, -0.04553566500544548, -0.03631981089711189, 0.26113560795783997, 0.3332712948322296, 0.23745225369930267, 0.0346149206161499, 0.5644974112510681, -0.037853457033634186, -0.07344843447208405, 0.015899017453193665, 0.14021718502044678, -0.22526420652866364, 0.23529499769210815, 0.14536689221858978, 0.3947981297969818, -0.03567277267575264, -0.1783241331577301, -0.4293416738510132, 0.7531890273094177, 0.2873353064060211, -0.22657160460948944, -0.07930842787027359, -0.04111136868596077, 0.10832646489143372, 0.0716213583946228, 0.31292563676834106, 0.36380138993263245, -0.14062896370887756, 0.33080342411994934, -0.3588162958621979, -0.20751157402992249, 0.5828332304954529, -0.4029484987258911, -0.29715126752853394, -0.00830060988664627, 0.34023991227149963, 0.5178589224815369, -0.43535465002059937, -0.8319966793060303, -0.006671222858130932, 0.22144325077533722, 0.11133048683404922, -0.2993389070034027, 0.08498091995716095, -0.16652971506118774, 0.26736411452293396, -0.08180557191371918, 0.3439674973487854, -0.07568918168544769, -0.12148640304803848, 0.03911024332046509, -0.24258269369602203 ]
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.329912394285202, -0.39836767315864563, 0.04140733182430267, 0.4000958502292633, 0.3001839518547058, -0.22759142518043518, 0.2741972506046295, 0.2562867999076843, 0.005499670747667551, 0.2942807972431183, -0.01227353885769844, 0.022469723597168922, -0.08508621156215668, 0.04614228755235672, -0.28178730607032776, 0.12844955921173096, -0.20951272547245026, -0.07703845947980881, 0.42174503207206726, 0.08553607761859894, -0.3209673762321472, 0.19018305838108063, -0.11296103894710541, -0.182755708694458, -0.31205472350120544, 0.01896643079817295, 0.3288895785808563, -0.0016792763490229845, -0.13102926313877106, -0.2663411498069763, 0.11802905797958374, -0.19675496220588684, 0.11216538399457932, 0.5339969396591187, -0.00011421440285630524, -0.16619136929512024, 0.13908377289772034, -0.18148864805698395, -0.17730845510959625, -0.1401205211877823, -0.034272342920303345, -0.2571435868740082, -0.11226260662078857, -0.24260535836219788, 0.04414965584874153, 0.1876821219921112, -0.16063348948955536, -0.012286441400647163, 0.18435943126678467, 0.39791178703308105, 0.1449996531009674, 0.1509120762348175, 0.07810544967651367, 0.07784484326839447, -0.13811346888542175, -0.3425806760787964, -0.15217991173267365, 0.3253556787967682, -0.06692495197057724, 0.03162774816155434, -0.20974288880825043, 0.22105464339256287, 0.16179384291172028, 0.2145262062549591, 0.28306686878204346, -0.11133354902267456, 0.37664636969566345, -0.04792313650250435, 0.2515905499458313, 0.19776217639446259, -0.09956903010606766, -0.20138996839523315, -0.21858562529087067, 0.1886240839958191, 0.12778699398040771, -0.6358426809310913, -0.05380062758922577, -0.060971878468990326, -0.1685432642698288, -0.381120890378952, -0.37570613622665405, -0.10144820064306259, -0.10101772099733353, -0.13524316251277924, -0.15136058628559113, 0.17876118421554565, -0.3350166380405426, 0.10107947885990143, 0.06650024652481079, 0.037248395383358, 0.22743988037109375, 0.09554264694452286, 0.10291211307048798, 0.22068233788013458, -0.49903279542922974, -0.10536181926727295, 0.016087273135781288, -0.18885453045368195, -0.01623479276895523, -0.03253645822405815, 0.246625617146492, -0.01586129702627659, -0.05601885914802551, 0.1580466777086258, -0.15706780552864075, 0.5400378704071045, 0.17008081078529358, 0.084213487803936, 0.39336955547332764, 0.5855422616004944, 0.09295296669006348, -0.004057584796100855, -0.005678009707480669, -0.5385406613349915, 0.23224183917045593, 0.07332007586956024, -0.17841242253780365, -0.18943004310131073, -0.49301469326019287, 0.0014657845022156835, -0.06099320575594902, 0.031279947608709335, 0.2731883227825165, 0.45163002610206604, -0.3899911940097809, -0.2442987710237503, 0.24233894050121307, -0.0518198125064373, -0.04410034790635109, -0.048507414758205414, -0.27872997522354126, 0.06354299932718277, -0.02964348904788494, 0.19078247249126434, 0.08794595301151276, -0.6552606225013733, 0.3337697684764862, -0.15722696483135223, 0.2568185031414032, -0.21716518700122833, 0.08466146141290665, -0.2342723309993744, -0.014011673629283905, 0.029247689992189407, -0.05533605441451073, -0.3133432865142822, 0.32569336891174316, -0.2782122790813446, 0.09636637568473816, 0.07499852031469345, -0.05072852224111557, -0.40880286693573, 0.059635769575834274, 0.11786741018295288, -0.13852457702159882, 0.05862799286842346, -0.14546780288219452, 0.20553068816661835, 0.3106638193130493, -0.05174217373132706, 0.060774873942136765, -0.14683379232883453, -0.18841062486171722, -0.13215504586696625, 0.5624072551727295, -0.029652463272213936, -0.22556230425834656, -0.049947936087846756, -0.033021438866853714, 0.021450607106089592, 0.36092066764831543, 0.33226218819618225, 0.04741419479250908, 0.13746923208236694, -0.10439547896385193, -0.10682222247123718, 0.2952236831188202, -0.35572347044944763, -0.18236643075942993, -0.1604953557252884, 0.041174765676259995, -0.18272998929023743, 0.05327286198735237, -0.14260563254356384, -0.02611360140144825, -0.15446297824382782, 0.4189426302909851, 0.0851457267999649, -0.17665551602840424, -0.11907237768173218, -0.48140838742256165, -0.3502425253391266, -0.09127014875411987, 0.05895428732037544, 0.5071213245391846, -0.07625406235456467, 0.1716110110282898, 0.26421037316322327, 0.05545499548316002, -0.07773410528898239, 0.0007423357455991209, 0.13575896620750427, 0.26041027903556824, -0.24531902372837067, 0.1736733615398407, -0.18391552567481995, 0.19437849521636963, 0.2270917445421219, 0.14800696074962616, 0.13269220292568207, 0.0645507201552391, -0.09578727185726166, -0.3693140745162964, 0.011740914545953274, 0.04087328910827637, -0.09064234793186188, 0.1942007839679718, -0.023632599040865898, 0.02007315866649151, -0.04626062139868736, -0.17795726656913757, 0.019060995429754257, -0.6478567123413086, 0.057779520750045776, 0.24215508997440338, -0.011923534795641899, 0.009530909359455109, -0.11172331124544144, 0.07775720953941345, 0.3475858271121979, 0.18648134171962738, 0.07951164990663528, -0.1525598168373108, 0.3241608738899231, 0.14699526131153107, -0.21066901087760925, 0.0685732290148735, -0.12138339877128601, -0.025995831936597824, 0.31581243872642517, -0.04526841640472412, 0.08326788991689682, 0.09919486194849014, -0.1209593117237091, 0.24413147568702698, 0.09364616125822067, -0.07940492033958435, 0.17948268353939056, 0.2946685552597046, -0.08058574050664902, -0.07273472100496292, 0.1661313772201538, 0.14957833290100098, -0.17806027829647064, 0.17246203124523163, -0.1364564299583435, 0.06643970310688019, -0.2640101909637451, 0.027136294171214104, -0.2498510777950287, 0.4172479212284088, 0.07080957293510437, 0.06458041816949844, 0.19377872347831726, -0.02596040442585945, -0.058947157114744186, -0.03500710427761078, 0.08320687711238861, 0.20399129390716553, -0.049956753849983215, 0.2260345220565796, 0.07168998569250107, -0.16681738197803497, -0.13714641332626343, 0.010470805689692497, 0.06624455749988556, 0.24011361598968506, 0.3439277410507202, 0.16824062168598175, -0.1599612534046173, -0.2710844576358795, -0.1610841453075409, 0.2464815378189087, 0.2385193556547165, -0.150637686252594, -0.056851908564567566, 0.07569365203380585, 0.1517331302165985, -0.28765642642974854, -0.2880500257015228, -0.25335001945495605, -0.15971893072128296, 0.08838333934545517, 0.29258909821510315, 0.2578849494457245, -0.001451060175895691, 0.3952111005783081, 0.4617104232311249, 0.05935929715633392, -0.05133714899420738, 0.050237495452165604, -0.21538560092449188, -0.3148037791252136, 0.08866844326257706, 0.06497024744749069, -0.10161416232585907, 0.2333037406206131, -0.10219592601060867, -0.19489997625350952, -0.3437848389148712, -0.4103054106235504, 0.01005693431943655, -0.21031904220581055, 0.4719873368740082, 0.18166297674179077, -0.004250767175108194, -0.3588896095752716, -0.1189144104719162, 0.14626827836036682, 0.12110825628042221, -0.03983285650610924, -0.019685711711645126, -0.14938358962535858, 0.03914763033390045, -0.07081405818462372, -0.22209809720516205, 0.16400282084941864, -0.3041471242904663, 0.2409517914056778, 0.0763135626912117, 0.030652333050966263, -0.0612245537340641, 0.05230997875332832, 0.5045962929725647, 0.5048167109489441, -0.03792325034737587, -0.2633744478225708, 0.09040706604719162, 0.13802002370357513, -0.33669066429138184, -0.3102613389492035, 0.02160954661667347, 0.016284193843603134, 0.5390126705169678, 0.16476057469844818, -0.457992821931839, -0.3172895908355713, -0.08158464729785919, -0.20542101562023163, -0.24346813559532166, 0.10444780439138412, 0.10456062853336334, 0.04537154734134674, -0.016684021800756454, -0.12195263803005219, -0.12123064696788788, 0.033526916056871414, -0.22951267659664154, 0.6499079465866089, -0.27618181705474854, 0.28033483028411865, 0.32706132531166077, 0.8638538718223572, 0.171412855386734, -0.02713315561413765, 0.08198857307434082, 0.12086945027112961, 0.04165523871779442, -0.007302220445126295, -0.054565150290727615, 0.6279388070106506, -0.2941345274448395, -0.17788955569267273, 0.14976400136947632, -0.1594054400920868, 0.2452189177274704, -0.057221535593271255, -0.021892838180065155, 0.1148410215973854, -0.16917067766189575, -0.15252043306827545, 0.14203491806983948, 0.22616685926914215, 0.08441024273633957, 0.011643420904874802, -0.28704702854156494, -0.04396989941596985, 0.026011575013399124, 0.22015923261642456, -0.0691913366317749, -0.008999313227832317, 0.24852116405963898, 0.004199643153697252, -0.5446140766143799, 0.4457462430000305, 0.2141600102186203, 0.13161346316337585, 0.033500414341688156, 0.13207317888736725, -0.0986366719007492, -0.16176116466522217, 0.22191371023654938, -0.2070654034614563, 0.04139078035950661, -0.03885748237371445, -0.08244606107473373, -0.5960404276847839, 0.031793177127838135, -0.061952754855155945, -0.28777414560317993, 0.4565439820289612, 0.375179260969162, -0.25940459966659546, 0.13725623488426208, 0.22994856536388397, 0.24744665622711182, -0.004891037009656429, 0.01772783137857914, -0.5006988644599915, -0.40969938039779663, -0.15691927075386047, 0.12795935571193695, 0.13802535831928253, 0.285532146692276, -0.03175197169184685, 0.04163845255970955, -0.16453763842582703, -0.1756138652563095, 0.04856983572244644, 0.2861669361591339, 0.0373409204185009, -0.09882093220949173, 0.14866763353347778, -0.19388693571090698, -0.3395833969116211, 0.20055551826953888, 0.12169962376356125, -0.041294749826192856, -0.9286243319511414, 0.039742786437273026, 0.027219336479902267, 0.24921539425849915, 0.13508853316307068, -0.15889954566955566, 0.20742149651050568, -0.16972577571868896, 0.4346752166748047, 0.07449284195899963, 0.277113676071167, 0.16090410947799683, 0.3366522490978241, -0.0105164535343647, -0.12534286081790924, 0.3105500042438507, 0.2530328333377838, 0.22151769697666168, 0.5469452142715454, -0.09156457334756851, -0.11807259172201157, 0.12478761374950409, 0.6157292127609253, 0.6351816654205322, 0.019563358277082443, -0.2783789038658142, 0.36204028129577637, -0.048477936536073685, 0.4466262757778168, -0.4077377915382385, 0.4081351161003113, -0.300152987241745, -0.5378542542457581, 0.09860271215438843, 0.01668892800807953, 0.02945530042052269, -0.25062236189842224, -0.1074843779206276, 0.3304615020751953, -0.15858183801174164, -0.2208050787448883, 0.033050548285245895, 0.07572650909423828, -0.3909947872161865, -0.08136982470750809, -0.015905482694506645, 0.18097072839736938, -0.1984892189502716, 0.15307006239891052, -0.23911260068416595, 0.22615133225917816, -0.026902474462985992, -0.0777365192770958, -0.21889938414096832, 0.0008699241443537176, -0.455926775932312, 0.18233950436115265, -0.06680197268724442, -0.06951751559972763, 0.03761729225516319, 0.2896285653114319, 0.8918436169624329, 0.13067542016506195, -0.07761867344379425, 0.1159060001373291, -0.014726703986525536, -0.0918249636888504, -0.08558529615402222, 0.0643569752573967, 0.2934022545814514, -0.2617603838443756, -0.16873934864997864, -0.08115091174840927, 0.09257656335830688, -0.16079185903072357, 0.36256447434425354, -0.046711042523384094, -0.07486790418624878, 0.15066668391227722, 0.020216571167111397, 0.026631413027644157, -0.06784187257289886, -0.17309914529323578, 0.11561629176139832, -0.16313716769218445, -0.25148171186447144, -0.011650501750409603, 0.013960801064968109, -0.3538234233856201, 0.07691981643438339, 0.18481573462486267, 0.09635576605796814, -0.1526750922203064, 0.4362224042415619, -0.1270214468240738, -0.06890548765659332, -0.08265196532011032, -0.482875257730484, 0.09407865256071091, -0.06158195808529854, 0.32770276069641113, -0.039193686097860336, -0.1508190929889679, 0.10884677618741989, 0.8712247014045715, 0.2959720194339752, 0.15337903797626495, -0.22971461713314056, -0.3328501284122467, -0.3247039318084717, 0.014475670643150806, 0.005240412428975105, 0.09894164651632309, -0.16323663294315338, 0.36495494842529297, -0.11459783464670181, 0.30880308151245117, -0.24895928800106049, 0.11808548122644424, -0.4077553153038025, 0.11900582909584045, -0.14777611196041107, -0.16000448167324066, 0.30077022314071655, 0.3664519786834717, 0.011363101191818714, 0.44244226813316345, -0.24321076273918152, -0.18150530755519867, -0.18888258934020996, 0.11997123807668686, 0.23678503930568695, -0.037302546203136444, -0.15523099899291992, -0.04593363776803017, -0.3102085292339325, -0.17679321765899658, 0.21192464232444763, 0.2571958899497986, -0.06610944867134094, 0.06374484300613403, -0.24947039783000946, 0.42239096760749817, 0.2251347154378891, -0.29633960127830505, 0.3116737902164459, 0.2022937834262848, 0.13051213324069977, 0.09952474385499954, 0.14368653297424316, 0.07203052192926407, 0.08040915429592133, -0.25977224111557007, -0.009854595176875591, 0.008554366417229176, 0.19674013555049896, -0.2309921234846115, -0.15612062811851501, -0.3708263039588928, 0.051718175411224365, 0.36357563734054565, 0.007451995741575956, -0.27410921454429626, 0.1914915293455124, 0.1322607845067978, -0.32511866092681885, 0.11903277784585953, -0.25706642866134644, 0.05392811819911003, 0.08568443357944489, 0.2737962603569031, 0.004499911796301603, 0.023140372708439827, 0.03706132993102074, -0.04047619551420212, -0.19417200982570648, -0.5982769131660461, -0.042334817349910736, -0.14811702072620392, -0.23137401044368744, 0.24175205826759338, 0.3802970051765442, -0.10069047659635544, 0.3059272766113281, 0.06069716811180115, -0.1094730794429779, 0.25705716013908386, -0.6360198855400085, 0.09245958924293518, 0.09076344966888428, -0.05721915513277054, 0.30935099720954895, 0.058656539767980576, -0.0854964554309845, -0.018470624461770058, -0.23897479474544525, 0.34029802680015564, -0.3041667938232422, 0.09762687981128693, -0.2271212637424469, 0.03301034867763519, -0.1078648641705513, 0.005203265696763992, 0.1080247014760971, -0.07958842813968658, 0.13740018010139465, -0.07346179336309433, 0.2036413997411728, 0.11403769999742508, -0.22369103133678436, 0.22999300062656403, -0.11681875586509705, 0.0737467035651207, -0.6453621983528137, 0.5514606237411499, 0.36343416571617126, -0.09826972335577011, 0.016763849183917046, 0.26537638902664185, 0.015223085880279541, -0.18764853477478027, 0.32546770572662354, 0.20124958455562592, 0.47875553369522095, -0.043281156569719315, -0.07363351434469223, 0.12418095022439957, 0.07404666393995285, -0.09110697358846664, 0.2807721793651581, 0.5041822195053101, 0.07197098433971405, 0.45485612750053406, 0.055684905499219894, -0.2469399869441986, 0.10967070609331131, -0.06710435450077057, 0.0015858309343457222, -0.10189862549304962, 0.44226768612861633, -0.08225822448730469, 0.008662515319883823, -0.3223492503166199, -0.11045507341623306, -0.3370458483695984, 0.34383392333984375, 0.05582086369395256, -0.047978926450014114, 0.25152572989463806, 0.011278579011559486, 0.08349252492189407, -0.03462924063205719, 0.252555787563324, 0.13496330380439758, -0.16710183024406433, -0.3239261507987976, -0.1811329424381256, -0.5610324144363403, 0.22686520218849182, 0.13356775045394897, 0.18415087461471558, -0.031348418444395065, 0.16959236562252045, -0.25292789936065674, -0.11920035630464554, -0.046325329691171646, -0.19636182487010956, 0.25092318654060364, 0.02480761520564556, -0.27682963013648987, -0.35299140214920044, -0.24162499606609344, -0.4227740168571472, 0.17088355123996735, -0.2491312325000763, 0.009029804728925228, -0.15369486808776855, -0.0019237141823396087, -0.04553566500544548, -0.03631981089711189, 0.26113560795783997, 0.3332712948322296, 0.23745225369930267, 0.0346149206161499, 0.5644974112510681, -0.037853457033634186, -0.07344843447208405, 0.015899017453193665, 0.14021718502044678, -0.22526420652866364, 0.23529499769210815, 0.14536689221858978, 0.3947981297969818, -0.03567277267575264, -0.1783241331577301, -0.4293416738510132, 0.7531890273094177, 0.2873353064060211, -0.22657160460948944, -0.07930842787027359, -0.04111136868596077, 0.10832646489143372, 0.0716213583946228, 0.31292563676834106, 0.36380138993263245, -0.14062896370887756, 0.33080342411994934, -0.3588162958621979, -0.20751157402992249, 0.5828332304954529, -0.4029484987258911, -0.29715126752853394, -0.00830060988664627, 0.34023991227149963, 0.5178589224815369, -0.43535465002059937, -0.8319966793060303, -0.006671222858130932, 0.22144325077533722, 0.11133048683404922, -0.2993389070034027, 0.08498091995716095, -0.16652971506118774, 0.26736411452293396, -0.08180557191371918, 0.3439674973487854, -0.07568918168544769, -0.12148640304803848, 0.03911024332046509, -0.24258269369602203 ]
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.329912394285202, -0.39836767315864563, 0.04140733182430267, 0.4000958502292633, 0.3001839518547058, -0.22759142518043518, 0.2741972506046295, 0.2562867999076843, 0.005499670747667551, 0.2942807972431183, -0.01227353885769844, 0.022469723597168922, -0.08508621156215668, 0.04614228755235672, -0.28178730607032776, 0.12844955921173096, -0.20951272547245026, -0.07703845947980881, 0.42174503207206726, 0.08553607761859894, -0.3209673762321472, 0.19018305838108063, -0.11296103894710541, -0.182755708694458, -0.31205472350120544, 0.01896643079817295, 0.3288895785808563, -0.0016792763490229845, -0.13102926313877106, -0.2663411498069763, 0.11802905797958374, -0.19675496220588684, 0.11216538399457932, 0.5339969396591187, -0.00011421440285630524, -0.16619136929512024, 0.13908377289772034, -0.18148864805698395, -0.17730845510959625, -0.1401205211877823, -0.034272342920303345, -0.2571435868740082, -0.11226260662078857, -0.24260535836219788, 0.04414965584874153, 0.1876821219921112, -0.16063348948955536, -0.012286441400647163, 0.18435943126678467, 0.39791178703308105, 0.1449996531009674, 0.1509120762348175, 0.07810544967651367, 0.07784484326839447, -0.13811346888542175, -0.3425806760787964, -0.15217991173267365, 0.3253556787967682, -0.06692495197057724, 0.03162774816155434, -0.20974288880825043, 0.22105464339256287, 0.16179384291172028, 0.2145262062549591, 0.28306686878204346, -0.11133354902267456, 0.37664636969566345, -0.04792313650250435, 0.2515905499458313, 0.19776217639446259, -0.09956903010606766, -0.20138996839523315, -0.21858562529087067, 0.1886240839958191, 0.12778699398040771, -0.6358426809310913, -0.05380062758922577, -0.060971878468990326, -0.1685432642698288, -0.381120890378952, -0.37570613622665405, -0.10144820064306259, -0.10101772099733353, -0.13524316251277924, -0.15136058628559113, 0.17876118421554565, -0.3350166380405426, 0.10107947885990143, 0.06650024652481079, 0.037248395383358, 0.22743988037109375, 0.09554264694452286, 0.10291211307048798, 0.22068233788013458, -0.49903279542922974, -0.10536181926727295, 0.016087273135781288, -0.18885453045368195, -0.01623479276895523, -0.03253645822405815, 0.246625617146492, -0.01586129702627659, -0.05601885914802551, 0.1580466777086258, -0.15706780552864075, 0.5400378704071045, 0.17008081078529358, 0.084213487803936, 0.39336955547332764, 0.5855422616004944, 0.09295296669006348, -0.004057584796100855, -0.005678009707480669, -0.5385406613349915, 0.23224183917045593, 0.07332007586956024, -0.17841242253780365, -0.18943004310131073, -0.49301469326019287, 0.0014657845022156835, -0.06099320575594902, 0.031279947608709335, 0.2731883227825165, 0.45163002610206604, -0.3899911940097809, -0.2442987710237503, 0.24233894050121307, -0.0518198125064373, -0.04410034790635109, -0.048507414758205414, -0.27872997522354126, 0.06354299932718277, -0.02964348904788494, 0.19078247249126434, 0.08794595301151276, -0.6552606225013733, 0.3337697684764862, -0.15722696483135223, 0.2568185031414032, -0.21716518700122833, 0.08466146141290665, -0.2342723309993744, -0.014011673629283905, 0.029247689992189407, -0.05533605441451073, -0.3133432865142822, 0.32569336891174316, -0.2782122790813446, 0.09636637568473816, 0.07499852031469345, -0.05072852224111557, -0.40880286693573, 0.059635769575834274, 0.11786741018295288, -0.13852457702159882, 0.05862799286842346, -0.14546780288219452, 0.20553068816661835, 0.3106638193130493, -0.05174217373132706, 0.060774873942136765, -0.14683379232883453, -0.18841062486171722, -0.13215504586696625, 0.5624072551727295, -0.029652463272213936, -0.22556230425834656, -0.049947936087846756, -0.033021438866853714, 0.021450607106089592, 0.36092066764831543, 0.33226218819618225, 0.04741419479250908, 0.13746923208236694, -0.10439547896385193, -0.10682222247123718, 0.2952236831188202, -0.35572347044944763, -0.18236643075942993, -0.1604953557252884, 0.041174765676259995, -0.18272998929023743, 0.05327286198735237, -0.14260563254356384, -0.02611360140144825, -0.15446297824382782, 0.4189426302909851, 0.0851457267999649, -0.17665551602840424, -0.11907237768173218, -0.48140838742256165, -0.3502425253391266, -0.09127014875411987, 0.05895428732037544, 0.5071213245391846, -0.07625406235456467, 0.1716110110282898, 0.26421037316322327, 0.05545499548316002, -0.07773410528898239, 0.0007423357455991209, 0.13575896620750427, 0.26041027903556824, -0.24531902372837067, 0.1736733615398407, -0.18391552567481995, 0.19437849521636963, 0.2270917445421219, 0.14800696074962616, 0.13269220292568207, 0.0645507201552391, -0.09578727185726166, -0.3693140745162964, 0.011740914545953274, 0.04087328910827637, -0.09064234793186188, 0.1942007839679718, -0.023632599040865898, 0.02007315866649151, -0.04626062139868736, -0.17795726656913757, 0.019060995429754257, -0.6478567123413086, 0.057779520750045776, 0.24215508997440338, -0.011923534795641899, 0.009530909359455109, -0.11172331124544144, 0.07775720953941345, 0.3475858271121979, 0.18648134171962738, 0.07951164990663528, -0.1525598168373108, 0.3241608738899231, 0.14699526131153107, -0.21066901087760925, 0.0685732290148735, -0.12138339877128601, -0.025995831936597824, 0.31581243872642517, -0.04526841640472412, 0.08326788991689682, 0.09919486194849014, -0.1209593117237091, 0.24413147568702698, 0.09364616125822067, -0.07940492033958435, 0.17948268353939056, 0.2946685552597046, -0.08058574050664902, -0.07273472100496292, 0.1661313772201538, 0.14957833290100098, -0.17806027829647064, 0.17246203124523163, -0.1364564299583435, 0.06643970310688019, -0.2640101909637451, 0.027136294171214104, -0.2498510777950287, 0.4172479212284088, 0.07080957293510437, 0.06458041816949844, 0.19377872347831726, -0.02596040442585945, -0.058947157114744186, -0.03500710427761078, 0.08320687711238861, 0.20399129390716553, -0.049956753849983215, 0.2260345220565796, 0.07168998569250107, -0.16681738197803497, -0.13714641332626343, 0.010470805689692497, 0.06624455749988556, 0.24011361598968506, 0.3439277410507202, 0.16824062168598175, -0.1599612534046173, -0.2710844576358795, -0.1610841453075409, 0.2464815378189087, 0.2385193556547165, -0.150637686252594, -0.056851908564567566, 0.07569365203380585, 0.1517331302165985, -0.28765642642974854, -0.2880500257015228, -0.25335001945495605, -0.15971893072128296, 0.08838333934545517, 0.29258909821510315, 0.2578849494457245, -0.001451060175895691, 0.3952111005783081, 0.4617104232311249, 0.05935929715633392, -0.05133714899420738, 0.050237495452165604, -0.21538560092449188, -0.3148037791252136, 0.08866844326257706, 0.06497024744749069, -0.10161416232585907, 0.2333037406206131, -0.10219592601060867, -0.19489997625350952, -0.3437848389148712, -0.4103054106235504, 0.01005693431943655, -0.21031904220581055, 0.4719873368740082, 0.18166297674179077, -0.004250767175108194, -0.3588896095752716, -0.1189144104719162, 0.14626827836036682, 0.12110825628042221, -0.03983285650610924, -0.019685711711645126, -0.14938358962535858, 0.03914763033390045, -0.07081405818462372, -0.22209809720516205, 0.16400282084941864, -0.3041471242904663, 0.2409517914056778, 0.0763135626912117, 0.030652333050966263, -0.0612245537340641, 0.05230997875332832, 0.5045962929725647, 0.5048167109489441, -0.03792325034737587, -0.2633744478225708, 0.09040706604719162, 0.13802002370357513, -0.33669066429138184, -0.3102613389492035, 0.02160954661667347, 0.016284193843603134, 0.5390126705169678, 0.16476057469844818, -0.457992821931839, -0.3172895908355713, -0.08158464729785919, -0.20542101562023163, -0.24346813559532166, 0.10444780439138412, 0.10456062853336334, 0.04537154734134674, -0.016684021800756454, -0.12195263803005219, -0.12123064696788788, 0.033526916056871414, -0.22951267659664154, 0.6499079465866089, -0.27618181705474854, 0.28033483028411865, 0.32706132531166077, 0.8638538718223572, 0.171412855386734, -0.02713315561413765, 0.08198857307434082, 0.12086945027112961, 0.04165523871779442, -0.007302220445126295, -0.054565150290727615, 0.6279388070106506, -0.2941345274448395, -0.17788955569267273, 0.14976400136947632, -0.1594054400920868, 0.2452189177274704, -0.057221535593271255, -0.021892838180065155, 0.1148410215973854, -0.16917067766189575, -0.15252043306827545, 0.14203491806983948, 0.22616685926914215, 0.08441024273633957, 0.011643420904874802, -0.28704702854156494, -0.04396989941596985, 0.026011575013399124, 0.22015923261642456, -0.0691913366317749, -0.008999313227832317, 0.24852116405963898, 0.004199643153697252, -0.5446140766143799, 0.4457462430000305, 0.2141600102186203, 0.13161346316337585, 0.033500414341688156, 0.13207317888736725, -0.0986366719007492, -0.16176116466522217, 0.22191371023654938, -0.2070654034614563, 0.04139078035950661, -0.03885748237371445, -0.08244606107473373, -0.5960404276847839, 0.031793177127838135, -0.061952754855155945, -0.28777414560317993, 0.4565439820289612, 0.375179260969162, -0.25940459966659546, 0.13725623488426208, 0.22994856536388397, 0.24744665622711182, -0.004891037009656429, 0.01772783137857914, -0.5006988644599915, -0.40969938039779663, -0.15691927075386047, 0.12795935571193695, 0.13802535831928253, 0.285532146692276, -0.03175197169184685, 0.04163845255970955, -0.16453763842582703, -0.1756138652563095, 0.04856983572244644, 0.2861669361591339, 0.0373409204185009, -0.09882093220949173, 0.14866763353347778, -0.19388693571090698, -0.3395833969116211, 0.20055551826953888, 0.12169962376356125, -0.041294749826192856, -0.9286243319511414, 0.039742786437273026, 0.027219336479902267, 0.24921539425849915, 0.13508853316307068, -0.15889954566955566, 0.20742149651050568, -0.16972577571868896, 0.4346752166748047, 0.07449284195899963, 0.277113676071167, 0.16090410947799683, 0.3366522490978241, -0.0105164535343647, -0.12534286081790924, 0.3105500042438507, 0.2530328333377838, 0.22151769697666168, 0.5469452142715454, -0.09156457334756851, -0.11807259172201157, 0.12478761374950409, 0.6157292127609253, 0.6351816654205322, 0.019563358277082443, -0.2783789038658142, 0.36204028129577637, -0.048477936536073685, 0.4466262757778168, -0.4077377915382385, 0.4081351161003113, -0.300152987241745, -0.5378542542457581, 0.09860271215438843, 0.01668892800807953, 0.02945530042052269, -0.25062236189842224, -0.1074843779206276, 0.3304615020751953, -0.15858183801174164, -0.2208050787448883, 0.033050548285245895, 0.07572650909423828, -0.3909947872161865, -0.08136982470750809, -0.015905482694506645, 0.18097072839736938, -0.1984892189502716, 0.15307006239891052, -0.23911260068416595, 0.22615133225917816, -0.026902474462985992, -0.0777365192770958, -0.21889938414096832, 0.0008699241443537176, -0.455926775932312, 0.18233950436115265, -0.06680197268724442, -0.06951751559972763, 0.03761729225516319, 0.2896285653114319, 0.8918436169624329, 0.13067542016506195, -0.07761867344379425, 0.1159060001373291, -0.014726703986525536, -0.0918249636888504, -0.08558529615402222, 0.0643569752573967, 0.2934022545814514, -0.2617603838443756, -0.16873934864997864, -0.08115091174840927, 0.09257656335830688, -0.16079185903072357, 0.36256447434425354, -0.046711042523384094, -0.07486790418624878, 0.15066668391227722, 0.020216571167111397, 0.026631413027644157, -0.06784187257289886, -0.17309914529323578, 0.11561629176139832, -0.16313716769218445, -0.25148171186447144, -0.011650501750409603, 0.013960801064968109, -0.3538234233856201, 0.07691981643438339, 0.18481573462486267, 0.09635576605796814, -0.1526750922203064, 0.4362224042415619, -0.1270214468240738, -0.06890548765659332, -0.08265196532011032, -0.482875257730484, 0.09407865256071091, -0.06158195808529854, 0.32770276069641113, -0.039193686097860336, -0.1508190929889679, 0.10884677618741989, 0.8712247014045715, 0.2959720194339752, 0.15337903797626495, -0.22971461713314056, -0.3328501284122467, -0.3247039318084717, 0.014475670643150806, 0.005240412428975105, 0.09894164651632309, -0.16323663294315338, 0.36495494842529297, -0.11459783464670181, 0.30880308151245117, -0.24895928800106049, 0.11808548122644424, -0.4077553153038025, 0.11900582909584045, -0.14777611196041107, -0.16000448167324066, 0.30077022314071655, 0.3664519786834717, 0.011363101191818714, 0.44244226813316345, -0.24321076273918152, -0.18150530755519867, -0.18888258934020996, 0.11997123807668686, 0.23678503930568695, -0.037302546203136444, -0.15523099899291992, -0.04593363776803017, -0.3102085292339325, -0.17679321765899658, 0.21192464232444763, 0.2571958899497986, -0.06610944867134094, 0.06374484300613403, -0.24947039783000946, 0.42239096760749817, 0.2251347154378891, -0.29633960127830505, 0.3116737902164459, 0.2022937834262848, 0.13051213324069977, 0.09952474385499954, 0.14368653297424316, 0.07203052192926407, 0.08040915429592133, -0.25977224111557007, -0.009854595176875591, 0.008554366417229176, 0.19674013555049896, -0.2309921234846115, -0.15612062811851501, -0.3708263039588928, 0.051718175411224365, 0.36357563734054565, 0.007451995741575956, -0.27410921454429626, 0.1914915293455124, 0.1322607845067978, -0.32511866092681885, 0.11903277784585953, -0.25706642866134644, 0.05392811819911003, 0.08568443357944489, 0.2737962603569031, 0.004499911796301603, 0.023140372708439827, 0.03706132993102074, -0.04047619551420212, -0.19417200982570648, -0.5982769131660461, -0.042334817349910736, -0.14811702072620392, -0.23137401044368744, 0.24175205826759338, 0.3802970051765442, -0.10069047659635544, 0.3059272766113281, 0.06069716811180115, -0.1094730794429779, 0.25705716013908386, -0.6360198855400085, 0.09245958924293518, 0.09076344966888428, -0.05721915513277054, 0.30935099720954895, 0.058656539767980576, -0.0854964554309845, -0.018470624461770058, -0.23897479474544525, 0.34029802680015564, -0.3041667938232422, 0.09762687981128693, -0.2271212637424469, 0.03301034867763519, -0.1078648641705513, 0.005203265696763992, 0.1080247014760971, -0.07958842813968658, 0.13740018010139465, -0.07346179336309433, 0.2036413997411728, 0.11403769999742508, -0.22369103133678436, 0.22999300062656403, -0.11681875586509705, 0.0737467035651207, -0.6453621983528137, 0.5514606237411499, 0.36343416571617126, -0.09826972335577011, 0.016763849183917046, 0.26537638902664185, 0.015223085880279541, -0.18764853477478027, 0.32546770572662354, 0.20124958455562592, 0.47875553369522095, -0.043281156569719315, -0.07363351434469223, 0.12418095022439957, 0.07404666393995285, -0.09110697358846664, 0.2807721793651581, 0.5041822195053101, 0.07197098433971405, 0.45485612750053406, 0.055684905499219894, -0.2469399869441986, 0.10967070609331131, -0.06710435450077057, 0.0015858309343457222, -0.10189862549304962, 0.44226768612861633, -0.08225822448730469, 0.008662515319883823, -0.3223492503166199, -0.11045507341623306, -0.3370458483695984, 0.34383392333984375, 0.05582086369395256, -0.047978926450014114, 0.25152572989463806, 0.011278579011559486, 0.08349252492189407, -0.03462924063205719, 0.252555787563324, 0.13496330380439758, -0.16710183024406433, -0.3239261507987976, -0.1811329424381256, -0.5610324144363403, 0.22686520218849182, 0.13356775045394897, 0.18415087461471558, -0.031348418444395065, 0.16959236562252045, -0.25292789936065674, -0.11920035630464554, -0.046325329691171646, -0.19636182487010956, 0.25092318654060364, 0.02480761520564556, -0.27682963013648987, -0.35299140214920044, -0.24162499606609344, -0.4227740168571472, 0.17088355123996735, -0.2491312325000763, 0.009029804728925228, -0.15369486808776855, -0.0019237141823396087, -0.04553566500544548, -0.03631981089711189, 0.26113560795783997, 0.3332712948322296, 0.23745225369930267, 0.0346149206161499, 0.5644974112510681, -0.037853457033634186, -0.07344843447208405, 0.015899017453193665, 0.14021718502044678, -0.22526420652866364, 0.23529499769210815, 0.14536689221858978, 0.3947981297969818, -0.03567277267575264, -0.1783241331577301, -0.4293416738510132, 0.7531890273094177, 0.2873353064060211, -0.22657160460948944, -0.07930842787027359, -0.04111136868596077, 0.10832646489143372, 0.0716213583946228, 0.31292563676834106, 0.36380138993263245, -0.14062896370887756, 0.33080342411994934, -0.3588162958621979, -0.20751157402992249, 0.5828332304954529, -0.4029484987258911, -0.29715126752853394, -0.00830060988664627, 0.34023991227149963, 0.5178589224815369, -0.43535465002059937, -0.8319966793060303, -0.006671222858130932, 0.22144325077533722, 0.11133048683404922, -0.2993389070034027, 0.08498091995716095, -0.16652971506118774, 0.26736411452293396, -0.08180557191371918, 0.3439674973487854, -0.07568918168544769, -0.12148640304803848, 0.03911024332046509, -0.24258269369602203 ]
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.18040873110294342, 0.013499029912054539, -0.10371396690607071, -0.013033601455390453, 0.21346011757850647, 0.14708077907562256, 0.27002450823783875, 0.28800511360168457, 0.43632349371910095, 0.054482996463775635, 0.11620178818702698, 0.49470627307891846, -0.07456570118665695, 0.297450989484787, 0.2197878658771515, -0.12352494150400162, 0.05346718430519104, 0.21260885894298553, -0.20957820117473602, -0.2524622082710266, -0.12486211955547333, 0.06005868688225746, -0.006339223589748144, 0.11523940414190292, 0.02887842245399952, -0.1423298865556717, 0.09130533784627914, 0.5297983288764954, -0.11315147578716278, -0.35077545046806335, 0.19776226580142975, -0.12895900011062622, 0.4495815634727478, 0.23744980990886688, -0.00009963390766642988, 0.25851884484291077, 0.21927767992019653, -0.2029905617237091, -0.13976602256298065, -0.4289153218269348, -0.3890916705131531, -0.018218278884887695, 0.4359702467918396, -0.3825983703136444, -0.2413383275270462, -0.19366933405399323, 0.11227293312549591, -0.11406992375850677, 0.4548485279083252, 0.58528733253479, 0.26133108139038086, -0.08513335883617401, 0.07302133738994598, -0.016471203416585922, -0.12000536918640137, 0.23499633371829987, 0.12612852454185486, 0.5693174600601196, -0.03513525053858757, 0.023694375529885292, 0.16687029600143433, 0.1679307371377945, -0.004886589478701353, 0.17443233728408813, 0.2951231896877289, 0.15071164071559906, 0.20862828195095062, -0.188333198428154, 0.019429180771112442, -0.016647741198539734, 0.5430049300193787, -0.1054638922214508, -0.13570556044578552, 0.11128503829240799, -0.12664762139320374, -0.049179840832948685, -0.02903854288160801, 0.23294542729854584, -0.17782169580459595, 0.41978681087493896, 0.04249068722128868, -0.1539367437362671, -0.27152329683303833, 0.3597124516963959, 0.09523742645978928, 0.1745564192533493, -0.2555062174797058, 0.16595837473869324, 0.16801226139068604, 0.0616418793797493, -0.14967015385627747, -0.06426750868558884, 0.16973772644996643, 0.2835521697998047, -0.042945653200149536, 0.03601067140698433, 0.17831796407699585, -0.026647599413990974, 0.04292137548327446, -0.03362295404076576, 0.05976112186908722, 0.121523417532444, 0.015126854181289673, 0.4068184494972229, 0.1413222849369049, -0.060335922986269, 0.12022245675325394, 0.11936630308628082, 0.02463236078619957, 0.12884974479675293, -0.298427551984787, -0.15905636548995972, -0.3900529444217682, -0.237193763256073, -0.19747333228588104, 0.05387575179338455, 0.29851794242858887, -0.3917781412601471, 0.07061471790075302, -0.12777164578437805, -0.06620854139328003, -0.20959700644016266, 0.10452515631914139, 0.4595925807952881, -0.20426711440086365, 0.04490509256720543, 0.02419240027666092, 0.18388132750988007, -0.13637258112430573, -0.06996745616197586, -0.20464658737182617, 0.20127218961715698, -0.11797159910202026, -0.2125786542892456, 0.03785441815853119, 0.1141892671585083, 0.6578575968742371, -0.1471213549375534, -0.13447752594947815, -0.1377890408039093, 0.43526318669319153, 0.025790639221668243, 0.07696792483329773, 0.3557407855987549, 0.17752471566200256, -0.09398338943719864, 0.23354794085025787, -0.235428586602211, -0.3238987326622009, 0.25356727838516235, -0.4369353950023651, -0.3963066339492798, 0.03722354397177696, 0.28642573952674866, -0.0015862544532865286, -0.0293875802308321, -0.3729647099971771, 0.11935151368379593, -0.21977537870407104, 0.09262658655643463, -0.2116466462612152, -0.0017820975044742227, 0.026352226734161377, -0.2408631145954132, 0.44163912534713745, 0.2379220575094223, -0.5031756162643433, -0.019772490486502647, 0.08999375998973846, -0.23184612393379211, 0.17537657916545868, 0.033525656908750534, -0.6356111764907837, 0.576472818851471, -0.07851873338222504, 0.14430609345436096, 0.6426224708557129, -0.278113454580307, 0.05689537152647972, 0.4205004870891571, -0.20875857770442963, -0.17744679749011993, 0.044189222157001495, -0.02747337892651558, -0.41108784079551697, 0.19604536890983582, 0.24845047295093536, 0.5545179843902588, 0.029125984758138657, 0.02729647606611252, -0.12415960431098938, -0.0672423243522644, 0.008020291104912758, 0.29394662380218506, -0.18672265112400055, 0.21364863216876984, 0.13088053464889526, 0.0058618588373064995, 0.3009950816631317, -0.2669844925403595, -0.1808280497789383, 0.3929590582847595, 0.1529490053653717, -0.12765419483184814, 0.04714360460639, 0.2223425954580307, -0.25592315196990967, 0.04470597207546234, 0.003873430425301194, -0.22776219248771667, 0.00146449264138937, -0.06328987330198288, -0.2188645601272583, -0.052021563053131104, -0.3524467349052429, -0.01757149025797844, 0.19180360436439514, 0.09844131767749786, 0.24182680249214172, -0.04122665151953697, -0.3753809630870819, 0.017871027812361717, -0.416723370552063, 0.1365869641304016, -0.3241453468799591, 0.008096418343484402, -0.17091584205627441, -0.0025112431030720472, 0.08673732727766037, -0.17337597906589508, -0.008633021265268326, -0.25459474325180054, -0.1253511756658554, 0.3699711561203003, 0.2719966471195221, 0.11700421571731567, 0.1235615685582161, 0.18680578470230103, -0.13488031923770905, -0.049051448702812195, 0.08828678727149963, 0.1166786253452301, 0.25366801023483276, 0.09337850660085678, -0.3188491761684418, 0.33711645007133484, 0.06404157727956772, 0.06701494753360748, 0.16947734355926514, -0.13150015473365784, 0.43158748745918274, -0.1802595555782318, -0.23709101974964142, 0.09977339953184128, 0.012046455405652523, 0.07935034483671188, 0.1840074360370636, 0.021545127034187317, -0.4251135289669037, -0.1393193006515503, 0.27351412177085876, -0.11810361593961716, 0.00432457122951746, 0.04031052440404892, -0.19254063069820404, -0.016902178525924683, 0.11377882212400436, 0.23516890406608582, 0.37818801403045654, 0.279712975025177, 0.07502582669258118, 0.06649550050497055, -0.0970144048333168, -0.14055050909519196, -0.0004028927651233971, -0.031039264053106308, 0.10656554251909256, -0.05455135926604271, -0.1856287717819214, -0.31480807065963745, -0.16854582726955414, -0.079402856528759, -0.045636311173439026, 0.28585562109947205, -0.1693471521139145, 0.1779530793428421, -0.1955840140581131, -0.06270355731248856, -0.33878690004348755, -0.09705443680286407, 0.1272839456796646, 0.13691949844360352, -0.14040742814540863, -0.09686308354139328, -0.1612035185098648, 0.026802700012922287, 0.018563946709036827, 0.03781251981854439, -0.1304684728384018, -0.11973549425601959, 0.11984337121248245, -0.23145458102226257, -0.3636472523212433, 0.14042003452777863, 0.3530864119529724, 0.26725175976753235, 0.0838153213262558, -0.42581379413604736, -0.137434720993042, 0.3108004629611969, 0.027889061719179153, 0.1481628119945526, 0.10813106596469879, 0.4255306124687195, 0.02919972687959671, 0.41618648171424866, -0.09071562439203262, -0.15602225065231323, 0.3424636721611023, 0.0791393294930458, -0.05295130982995033, -0.11512189358472824, -0.013704092241823673, -0.07715427875518799, -0.1697348803281784, -0.836005449295044, -0.4267987310886383, -0.24372948706150055, 0.2515360713005066, 0.38131850957870483, 0.20332705974578857, 0.18783268332481384, 0.4112018346786499, 0.3307696282863617, -0.039242807775735855, 0.2694145143032074, -0.09493899345397949, -0.5751321315765381, 0.2998141944408417, -0.33641356229782104, -0.3522513210773468, 0.2509354054927826, -0.05765365809202194, 0.33639565110206604, -0.3029784858226776, -0.36474862694740295, -0.2921609878540039, 0.01850735954940319, -0.0856117233633995, -0.13143716752529144, 0.1504494547843933, 0.24292206764221191, -0.14194637537002563, -0.18636932969093323, -0.11531795561313629, -0.06386992335319519, 0.3799184560775757, 0.18026818335056305, 0.0839901939034462, 0.26817065477371216, 0.41324999928474426, -0.20547205209732056, 0.40350988507270813, -0.11922415345907211, -0.17391760647296906, 0.18241667747497559, -0.16650409996509552, 0.0020537013188004494, -0.10579574108123779, -0.04389234632253647, -0.0701344832777977, 0.014978615567088127, -0.2904992699623108, 0.251261830329895, 0.13968028128147125, -0.27734649181365967, -0.3615433871746063, -0.2635129392147064, -0.443204402923584, -0.11371076852083206, 0.3095839321613312, 0.07488047331571579, 0.07616504281759262, -0.031060609966516495, -0.1522822082042694, -0.126949742436409, 0.2882061004638672, 0.09854445606470108, 0.43528932332992554, 0.09141916036605835, 0.13122916221618652, -0.5301728248596191, -0.32880809903144836, -0.11666160076856613, 0.1134805753827095, -0.16476061940193176, 0.08124857395887375, -0.01705344393849373, -0.19163504242897034, 0.11340676248073578, -0.1743626743555069, 0.36036041378974915, -0.02529967576265335, 0.1332016885280609, -0.013377026654779911, -0.12367215007543564, -0.1057797372341156, 0.012246260419487953, -0.10681503266096115, 0.20053857564926147, -0.06311551481485367, 0.5251100063323975, -0.007377821486443281, -0.2924712300300598, 0.03356800973415375, 0.1961866170167923, -0.26153838634490967, 0.0514177642762661, -0.33438462018966675, -0.24548868834972382, -0.3385726511478424, -0.03703704848885536, -0.10531055927276611, 0.031816091388463974, 0.3588355481624603, -0.016174491494894028, 0.006436621770262718, 0.09487543255090714, -0.007107336539775133, 0.27216213941574097, 0.22972071170806885, 0.09505482017993927, -0.23946964740753174, 0.2546638250350952, 0.2845199704170227, 0.10325288027524948, 0.5296405553817749, -0.049223892390728, -0.11678044497966766, -0.1272139847278595, -0.01024741679430008, 0.45668908953666687, 0.029689248651266098, -0.10045967251062393, -0.12889669835567474, 0.3076189160346985, -0.1433253139257431, -0.08622507005929947, 0.4661807417869568, 0.027189316228032112, -0.002722829580307007, 0.12411122769117355, -0.6534736752510071, 0.32617712020874023, -0.07589911669492722, -0.06483499705791473, 0.18009337782859802, -0.30017146468162537, -0.1833600103855133, 0.2977045774459839, 0.07653956860303879, 0.6713836193084717, 0.06186886876821518, 0.15012259781360626, 0.1704765409231186, -0.28206518292427063, -0.026117488741874695, -0.3874356150627136, 0.002536260522902012, -0.09411352872848511, 0.14910387992858887, -0.041741933673620224, -0.20417948067188263, 0.2626311779022217, 0.4218595027923584, -0.18209323287010193, 0.1042778491973877, -0.10227976739406586, 0.15315602719783783, -0.08930812031030655, 0.2941606342792511, 0.29050296545028687, -0.12511944770812988, -0.44103702902793884, 0.1859496384859085, -0.07326105982065201, 0.06737411767244339, -0.03811245411634445, -0.27648821473121643, -0.04850279167294502, -0.16073907911777496, 0.4327569901943207, 0.1349501758813858, -0.28713178634643555, 0.0973241776227951, 0.02129185013473034, -0.16030791401863098, -0.3687707781791687, 0.2899450659751892, 0.05483008921146393, 0.1663360744714737, -0.21733295917510986, 0.0559353269636631, -0.2287343144416809, -0.05762852355837822, -0.3444235622882843, -0.04006971791386604, 0.2825510799884796, -0.17775367200374603, -0.2714882493019104, 0.09658189117908478, -0.2840973436832428, -0.28383293747901917, 0.05289468914270401, -0.043637242168188095, 0.12020588666200638, -0.04138795658946037, -0.6282685399055481, 0.19078701734542847, 0.04359009861946106, 0.011452209204435349, 0.2560286223888397, 0.14551174640655518, -0.351901113986969, 0.029904861003160477, 0.2597540020942688, -0.2880241572856903, -0.05603160709142685, 0.2329968363046646, 0.053673360496759415, 0.14735502004623413, 0.45003318786621094, 0.07067199051380157, 0.09574402123689651, -0.31910440325737, 0.11305633187294006, 0.5872126817703247, 0.03683081641793251, -0.00565367890521884, 0.1907365769147873, 0.15157024562358856, 0.07897964864969254, 0.184374138712883, 0.1533556580543518, -0.17104721069335938, -0.17170284688472748, -0.3371005654335022, -0.3974806070327759, 0.1489289253950119, 0.13091985881328583, 0.2080315351486206, 0.2528420686721802, 0.07441136240959167, 0.12967801094055176, -0.024293730035424232, -0.4086295962333679, 0.12309953570365906, -0.3641248047351837, 0.18000537157058716, 0.09820245951414108, 0.18510189652442932, 0.1832214593887329, 0.0067085763439536095, 0.20197270810604095, -0.28105634450912476, -0.18961139023303986, -0.3669371008872986, -0.041026145219802856, 0.04677705466747284, 0.07087960094213486, 0.046765804290771484, 0.06111620366573334, -0.19801585376262665, -0.12569615244865417, 0.11201278865337372, -0.05879615992307663, -0.19114886224269867, -0.09560365974903107, 0.3177489638328552, 0.03937292471528053, 0.00395000958815217, -0.1159156933426857, -0.13712053000926971, -0.30440083146095276, 0.018553154543042183, 0.0795813500881195, -0.0725390762090683, -0.13189035654067993, -0.14693965017795563, -0.029924916103482246, -0.0011668209917843342, 0.002177464310079813, 0.1928352415561676, 0.06676726788282394, -0.20163345336914062, 0.12642599642276764, -0.1851956695318222, 0.19180689752101898, 0.05812181159853935, -0.17815597355365753, 0.4482104778289795, 0.409309059381485, 0.2715812027454376, -0.12893907725811005, -0.11881059408187866, 0.32401448488235474, -0.26216766238212585, 0.11638153344392776, 0.06165381893515587, 0.10734037309885025, 0.15841428935527802, 0.026734882965683937, -0.01469180267304182, 0.22067882120609283, 0.10782506316900253, 0.027026047930121422, 0.3091075122356415, -0.27411431074142456, 0.028162183240056038, -0.09423915296792984, 0.3863436281681061, 0.400534987449646, 0.2741338610649109, -0.20543281733989716, 0.16528433561325073, 0.14519892632961273, 0.0937584936618805, -0.19126510620117188, -0.3903193771839142, 0.054081253707408905, 0.04979298636317253, -0.1352185755968094, 0.11280769854784012, -0.04781779646873474, 0.2078149914741516, 0.04679294675588608, -0.1704922318458557, 0.007286328822374344, 0.10584740340709686, -0.06365157663822174, -0.2617339491844177, -0.6350270509719849, -0.089080311357975, -0.12653905153274536, -0.014527813531458378, 0.08592117577791214, -0.08647506684064865, 0.061324089765548706, -0.08983305841684341, 0.02524934709072113, 0.06543758511543274, 0.12262529879808426, 0.014824171550571918, -0.18912628293037415, -0.033336225897073746, 0.15166684985160828, -0.09104742854833603, -0.02171899750828743, -0.006053157616406679, -0.10086611658334732, 0.14982102811336517, 0.30792537331581116, -0.017719993367791176, 0.006629534065723419, 0.14735959470272064, -0.19672642648220062, -0.16372086107730865, -0.008600041270256042, 0.0047015356831252575, 0.18416929244995117, 0.19156919419765472, 0.3222596347332001, -0.24323751032352448, 0.37560391426086426, -0.06182291358709335, 0.00917025189846754, -0.13497193157672882, -0.021199403330683708, 0.3499355614185333, -0.09028934687376022, -0.11061611026525497, 0.08448498696088791, -0.6342894434928894, -0.10731620341539383, 0.3021223247051239, 0.059554215520620346, 0.09793057292699814, -0.07127709686756134, 0.14236055314540863, -0.11844092607498169, 0.6424102783203125, -0.022991139441728592, 0.2567494809627533, -0.32260873913764954, -0.16979901492595673, -0.30668458342552185, -0.03731216490268707, -0.11201751232147217, -0.0475165918469429, 0.14259077608585358, 0.05052032694220543, 0.29332005977630615, 0.3095519244670868, -0.14057204127311707, -0.07036978751420975, -0.2856642007827759, 0.23194506764411926, -0.024950368329882622, -0.2608466148376465, -0.2296876460313797, 0.4074099659919739, 0.02339097112417221, -0.18775248527526855, -0.05458912253379822, -0.17733943462371826, 0.1422913819551468, -0.15381763875484467, -0.14754453301429749, 0.1166762039065361, 0.010281861759722233, 0.47137731313705444, -0.12231435626745224, 0.22158443927764893, -0.16482706367969513, 0.1500895470380783, 0.03916902095079422, 0.05108034238219261, -0.25661149621009827, 0.04327930137515068, -0.23739823698997498, 0.2677334249019623, -0.3237300217151642, 0.0017963380087167025, -0.37647950649261475, -0.21817253530025482, 0.06866829097270966, -0.3193565011024475, 0.036522895097732544, 0.07521357387304306, -0.021550970152020454, -0.13687372207641602, 0.18346121907234192, 0.2363169938325882, -0.06698288023471832, -0.1554829180240631, -0.21724654734134674, 0.10107284784317017, 0.4586861729621887, -0.33501124382019043, -0.1781710386276245, 0.09161399304866791, -0.036895573139190674, -0.08387286216020584, 0.030441932380199432, -0.26973992586135864, 0.21428517997264862, 0.19819375872612, -0.025694239884614944, -0.30898037552833557, 0.421819269657135, 0.2658836841583252, 0.09845546633005142, -0.10442933440208435, 0.027127766981720924, 0.005016868468374014, -0.09530265629291534, -0.49293267726898193, -0.40970364212989807 ]
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.06381996721029282, -0.09525933861732483, 0.07377032935619354, 0.11967416852712631, 0.15572357177734375, 0.1555570513010025, 0.3187200725078583, 0.5008643269538879, 0.06144654005765915, 0.16420195996761322, 0.43741610646247864, -0.12088136374950409, 0.48283183574676514, 0.3047555983066559, -0.16354748606681824, 0.07077660411596298, 0.2294308990240097, -0.27880704402923584, -0.24412395060062408, -0.13444451987743378, 0.07365217804908752, -0.08553877472877502, 0.11539061367511749, 0.12427341938018799, -0.08784946799278259, 0.06839512288570404, 0.4703996479511261, -0.10477224737405777, -0.3025948107242584, 0.23077253997325897, -0.17465920746326447, 0.4277437925338745, 0.2090979516506195, -0.0001064755633706227, 0.2021757960319519, 0.1668531447649002, -0.2235587239265442, -0.05435670539736748, -0.6375685930252075, -0.33981555700302124, 0.012243610806763172, 0.5199460387229919, -0.23984430730342865, -0.273579478263855, -0.3229025900363922, 0.07420309633016586, -0.242097407579422, 0.5297544002532959, 0.68113774061203, 0.16371993720531464, -0.11598091572523117, -0.027479000389575958, 0.07880926877260208, -0.10824798792600632, 0.19931071996688843, 0.042591724544763565, 0.48485568165779114, 0.21610714495182037, -0.1329415887594223, 0.12070391327142715, 0.06590276211500168, 0.05945027247071266, 0.14584699273109436, 0.30844372510910034, 0.10422161966562271, 0.10015129297971725, -0.3671630918979645, -0.03228813409805298, -0.006827984470874071, 0.6595657467842102, -0.15190887451171875, -0.06722685694694519, 0.19323578476905823, -0.136398047208786, 0.01880844123661518, 0.05147084221243858, 0.2040105164051056, -0.19852513074874878, 0.34189915657043457, -0.13958267867565155, -0.3033144772052765, -0.2920091152191162, 0.39299312233924866, 0.14361059665679932, 0.06309819221496582, -0.13615313172340393, 0.19198177754878998, 0.12326545268297195, 0.07735604792833328, -0.04763459786772728, -0.11235944926738739, 0.18109960854053497, 0.4176245927810669, -0.14701631665229797, 0.031889550387859344, 0.12045974284410477, -0.15833081305027008, -0.021216629073023796, 0.1425636261701584, -0.03519129008054733, 0.20763128995895386, -0.14132234454154968, 0.27976658940315247, 0.1994027942419052, 0.09054074436426163, 0.2510218322277069, 0.23011620342731476, -0.041372451931238174, 0.04519272223114967, -0.24752283096313477, -0.09282411634922028, -0.38418057560920715, -0.1468484103679657, -0.2581515908241272, 0.10968521982431412, 0.1985311508178711, -0.4896930754184723, 0.20115718245506287, -0.10367930680513382, -0.1590285748243332, -0.30061283707618713, 0.10271307080984116, 0.3576221764087677, -0.26373693346977234, 0.1756724715232849, 0.026358583942055702, 0.17596949636936188, -0.18183735013008118, -0.035548388957977295, -0.16976585984230042, 0.23909127712249756, -0.08772622793912888, -0.0803421139717102, 0.08814233541488647, 0.07373667508363724, 0.608170747756958, -0.1651267111301422, -0.018226539716124535, -0.07161623239517212, 0.5714465975761414, -0.0449615940451622, 0.10451202839612961, 0.3682505488395691, 0.1844320148229599, -0.10876945406198502, 0.15846985578536987, -0.16979584097862244, -0.30916500091552734, 0.26643335819244385, -0.4438110589981079, -0.4999341070652008, 0.08583898842334747, 0.2154587060213089, 0.0015291660092771053, -0.05791494995355606, -0.41730552911758423, 0.19196927547454834, -0.23477843403816223, 0.09920057654380798, -0.21220621466636658, -0.01676671952009201, -0.09493570029735565, -0.16028514504432678, 0.45251980423927307, 0.16268043220043182, -0.564744770526886, -0.06266149133443832, 0.2324700653553009, -0.18130165338516235, 0.14606331288814545, 0.0776854082942009, -0.6236312985420227, 0.5268675684928894, -0.08071110397577286, 0.1067868024110794, 0.7347128987312317, -0.3785436153411865, 0.15650714933872223, 0.4080643653869629, -0.10552464425563812, -0.2899027168750763, -0.14115606248378754, -0.08312401920557022, -0.40132957696914673, 0.1834561973810196, 0.2094925493001938, 0.7176536321640015, -0.039909373968839645, -0.03967350721359253, -0.08494839817285538, -0.1355522722005844, 0.08547569811344147, 0.39243456721305847, 0.0022942691575735807, 0.112396739423275, 0.07903280109167099, -0.056994128972291946, 0.2535618543624878, -0.2241218090057373, -0.23279455304145813, 0.34311169385910034, 0.20935875177383423, -0.18963386118412018, 0.09956526011228561, 0.16463564336299896, -0.22718527913093567, 0.08071044087409973, -0.0943082943558693, -0.09073975682258606, 0.06676625460386276, 0.009366371668875217, -0.22461599111557007, -0.10692284256219864, -0.3677225112915039, 0.022259028628468513, 0.05601247772574425, -0.012284884229302406, 0.21221302449703217, 0.08213541656732559, -0.441483736038208, -0.05977976694703102, -0.3856554627418518, 0.1207781434059143, -0.37410393357276917, 0.025861706584692, -0.08002421259880066, 0.012640116736292839, 0.08984799683094025, -0.1560720056295395, -0.013008099049329758, -0.3751972019672394, -0.1884448528289795, 0.3705158531665802, 0.3448435366153717, 0.1940326988697052, 0.12157051265239716, 0.2672255039215088, 0.029935183003544807, -0.04706719517707825, -0.017328161746263504, 0.10695060342550278, 0.23934589326381683, 0.001353997620753944, -0.34944504499435425, 0.33904582262039185, 0.03866507112979889, 0.0980391874909401, 0.21188844740390778, -0.10196873545646667, 0.3982227146625519, -0.10201212763786316, -0.14479388296604156, 0.14664140343666077, 0.03307318687438965, -0.02303844690322876, 0.26431235671043396, -0.011612936854362488, -0.32779794931411743, -0.1617976576089859, 0.18310505151748657, -0.1951007843017578, -0.0211485605686903, -0.0869821161031723, -0.15020082890987396, -0.12521153688430786, 0.20403237640857697, 0.14776313304901123, 0.3505551815032959, 0.17265036702156067, 0.08833320438861847, 0.12203030288219452, -0.021734997630119324, -0.08650638908147812, -0.008135415613651276, -0.05893198773264885, 0.12799085676670074, -0.04033634439110756, -0.2419559210538864, -0.29585838317871094, -0.14348474144935608, -0.056251153349876404, 0.04350627213716507, 0.2657513916492462, -0.1682799607515335, 0.13021618127822876, -0.1576896756887436, -0.08963316679000854, -0.33950984477996826, -0.17174726724624634, 0.1737678498029709, 0.13127020001411438, -0.07800252735614777, -0.2171970158815384, -0.10907506197690964, 0.0179331973195076, 0.03513020649552345, 0.12756980955600739, -0.12108509987592697, -0.12308529764413834, 0.11927265673875809, -0.24707871675491333, -0.4121357202529907, 0.12105152755975723, 0.4731254577636719, 0.3146320879459381, 0.22212548553943634, -0.36794281005859375, -0.16497114300727844, 0.39883697032928467, 0.04324386641383171, 0.2520950734615326, 0.1601749211549759, 0.44917169213294983, -0.047905974090099335, 0.2613448202610016, -0.07427158206701279, -0.13351690769195557, 0.28954043984413147, -0.06877800822257996, -0.09482216835021973, -0.13745753467082977, -0.0300967488437891, -0.014506669715046883, -0.1382259577512741, -0.8957133293151855, -0.4849817454814911, -0.09755416214466095, 0.26854121685028076, 0.3610462248325348, 0.205500066280365, 0.0800812691450119, 0.328675776720047, 0.3222784399986267, 0.06206875666975975, 0.19697515666484833, -0.09130548685789108, -0.6318545341491699, 0.15650418400764465, -0.30551761388778687, -0.37137672305107117, 0.18072544038295746, 0.027157627046108246, 0.255773663520813, -0.3386819064617157, -0.4009627103805542, -0.43909773230552673, 0.05416562035679817, 0.03949429467320442, -0.11064263433218002, 0.045680124312639236, 0.16861391067504883, -0.253950834274292, -0.038542523980140686, -0.009611055254936218, -0.029659489169716835, 0.33981773257255554, 0.2781493067741394, 0.0161296296864748, 0.25976306200027466, 0.3580315411090851, -0.25669732689857483, 0.5325694680213928, -0.05179877206683159, -0.14530327916145325, 0.10720984637737274, -0.16437678039073944, -0.16308777034282684, -0.17206953465938568, -0.03921633958816528, -0.032289158552885056, 0.015113436616957188, -0.2939653992652893, 0.20590810477733612, 0.14790470898151398, -0.324929416179657, -0.4695689380168915, -0.26555582880973816, -0.4256274998188019, -0.06920772790908813, 0.2413300722837448, -0.09292234480381012, 0.08912214636802673, -0.08385459333658218, -0.15269096195697784, -0.07418692111968994, 0.2159675657749176, 0.2643192708492279, 0.26578792929649353, 0.047366444021463394, 0.1414777934551239, -0.5233094096183777, -0.3210388422012329, -0.2115696668624878, 0.14465661346912384, -0.07361645251512527, 0.14460773766040802, -0.02459709532558918, -0.17500701546669006, 0.09578239172697067, -0.18682141602039337, 0.3129841387271881, -0.06241384521126747, 0.004438505042344332, 0.005075675901025534, -0.2586844563484192, -0.033684249967336655, 0.007562676444649696, -0.15498389303684235, 0.145494282245636, -0.01895867846906185, 0.5691065788269043, 0.1021943911910057, -0.37301895022392273, 0.010238819755613804, 0.16597218811511993, -0.3294258713722229, 0.06061109900474548, -0.1722373515367508, -0.2334904670715332, -0.17792615294456482, -0.044148921966552734, -0.18163469433784485, 0.07742970436811447, 0.27291959524154663, -0.0770239382982254, 0.09549255669116974, 0.10845564305782318, 0.058857545256614685, 0.20060820877552032, 0.15798205137252808, 0.09003708511590958, -0.12352411448955536, 0.27956071496009827, 0.22639602422714233, 0.09950998425483704, 0.5160393714904785, -0.12082204967737198, -0.09327439963817596, -0.09802109748125076, 0.013310285285115242, 0.45042940974235535, -0.04406295344233513, -0.06911160796880722, -0.18433226644992828, 0.15649165213108063, -0.18469034135341644, -0.1419912725687027, 0.5305549502372742, -0.05937160924077034, 0.08902710676193237, 0.18286104500293732, -0.7420046329498291, 0.3443666994571686, 0.02587200328707695, -0.1262061595916748, 0.3025677800178528, -0.3953068256378174, -0.1399770826101303, 0.35231098532676697, 0.14047184586524963, 0.6720982789993286, -0.1475028693675995, 0.06498358398675919, 0.11144034564495087, -0.2425687611103058, -0.02750961109995842, -0.4764206111431122, -0.09621722996234894, -0.16612958908081055, 0.14741382002830505, -0.10816400498151779, -0.1775088906288147, 0.20520871877670288, 0.2944382131099701, -0.07886525988578796, 0.21121858060359955, 0.06425921618938446, 0.17405229806900024, -0.15279144048690796, 0.37182849645614624, 0.2599756121635437, -0.06809544563293457, -0.4120950698852539, 0.14822308719158173, -0.056502096354961395, 0.03873071447014809, -0.04742118716239929, -0.1758592426776886, 0.07229151576757431, -0.11770687997341156, 0.43936556577682495, 0.1304592341184616, -0.3135419189929962, 0.21666842699050903, 0.018922587856650352, -0.20562686026096344, -0.29583442211151123, 0.44200044870376587, 0.04259549826383591, 0.050763554871082306, -0.3014819324016571, 0.08201263099908829, -0.20937508344650269, -0.0163178239017725, -0.24451398849487305, -0.04931022971868515, 0.3662237524986267, -0.2017059326171875, -0.2798500061035156, 0.12744323909282684, -0.30338358879089355, -0.18058174848556519, -0.014924954622983932, -0.062401480972766876, 0.21274693310260773, -0.02259037084877491, -0.6232087016105652, 0.2336682230234146, 0.18061548471450806, 0.07675957679748535, 0.17918936908245087, 0.21134956181049347, -0.3314855992794037, 0.1345979869365692, 0.263029009103775, -0.31291937828063965, 0.018692441284656525, 0.16604724526405334, 0.08998031169176102, 0.047643184661865234, 0.4621697664260864, 0.13697174191474915, 0.22401532530784607, -0.24554438889026642, 0.19233974814414978, 0.7654069066047668, -0.0014513786882162094, -0.08240032941102982, 0.11781897395849228, 0.15181602537631989, 0.16261598467826843, 0.3418766260147095, 0.16674594581127167, -0.266848623752594, -0.09904220700263977, -0.34961530566215515, -0.3968908190727234, 0.17710568010807037, 0.19893178343772888, 0.2853878140449524, 0.27664637565612793, -0.10203935950994492, 0.16062143445014954, 0.11170165985822678, -0.3113420009613037, 0.13783413171768188, -0.42483294010162354, 0.18765418231487274, 0.061788853257894516, 0.24192488193511963, 0.15758691728115082, -0.05953535810112953, 0.09131146967411041, -0.347011923789978, -0.20245492458343506, -0.2555352449417114, 0.015451540239155293, 0.07631116360425949, 0.036230575293302536, -0.030080940574407578, -0.0765475481748581, -0.28301459550857544, -0.09398031234741211, 0.11033044010400772, -0.017791161313652992, -0.24638843536376953, -0.13039012253284454, 0.39352378249168396, 0.06446126103401184, -0.07382714003324509, -0.251266211271286, 0.08191728591918945, -0.22467376291751862, -0.0700804740190506, 0.06678111106157303, -0.008628441952168941, -0.022822076454758644, -0.18065716326236725, 0.13974644243717194, -0.023292824625968933, 0.0865437313914299, 0.11997119337320328, 0.044362861663103104, -0.1638142168521881, 0.13420094549655914, -0.20236270129680634, 0.18006138503551483, 0.16753947734832764, -0.15333087742328644, 0.5118128061294556, 0.3545849621295929, 0.2145790010690689, -0.0705341175198555, -0.17114077508449554, 0.2912951707839966, -0.12173442542552948, -0.02487741969525814, -5.409575010162371e-7, 0.14631052315235138, 0.11665897071361542, 0.03469989076256752, 0.009909284301102161, 0.10582897067070007, 0.17096278071403503, -0.0028783688321709633, 0.21267621219158173, -0.3698403835296631, -0.05622553452849388, -0.23486120998859406, 0.33010345697402954, 0.2876144051551819, 0.16823887825012207, -0.14269597828388214, 0.2786860167980194, 0.14487972855567932, 0.16359704732894897, -0.15630216896533966, -0.5004978179931641, 0.05982862785458565, -0.030809927731752396, -0.19842879474163055, 0.09150135517120361, 0.05272800102829933, 0.3666588366031647, 0.12195496261119843, -0.29851630330085754, 0.04440906643867493, 0.09614532440900803, 0.04293583706021309, -0.2359735071659088, -0.6581161618232727, -0.04469954967498779, -0.08066502958536148, 0.05281837657094002, 0.1473626047372818, -0.14565163850784302, 0.05394425243139267, 0.003247425891458988, -0.029737209901213646, 0.2003258466720581, -0.022226624190807343, 0.13614307343959808, -0.23432806134223938, 0.0038964974228292704, 0.20267151296138763, -0.024980489164590836, -0.07909476011991501, -0.05922270566225052, -0.13848459720611572, 0.06973160803318024, 0.27480098605155945, -0.2765671908855438, 0.1134471595287323, 0.29999014735221863, -0.10863543301820755, -0.06606825441122055, 0.012889371253550053, -0.046764787286520004, 0.1701357215642929, 0.19168660044670105, 0.23179452121257782, -0.1066216304898262, 0.3731817603111267, -0.16481804847717285, 0.10588790476322174, -0.12583577632904053, 0.09501227736473083, 0.45019206404685974, -0.10583092272281647, -0.1437918245792389, 0.1536429524421692, -0.5023988485336304, -0.06230662763118744, 0.30937424302101135, 0.057024937123060226, 0.08986207842826843, -0.018228836357593536, 0.08927032351493835, -0.12304868549108505, 0.7096776962280273, 0.10120946168899536, 0.3367563486099243, -0.2881675362586975, -0.2534315884113312, -0.31085848808288574, -0.030583456158638, 0.020108994096517563, 0.014214335940778255, 0.15734173357486725, -0.019571678712964058, 0.38908785581588745, 0.33806300163269043, -0.21636377274990082, 0.00894008856266737, -0.21757429838180542, 0.24820028245449066, -0.11803656816482544, -0.19891390204429626, -0.2724529504776001, 0.3911564350128174, -0.005384164396673441, -0.14391717314720154, 0.006383675150573254, -0.2344985455274582, 0.02289510890841484, -0.08164744824171066, -0.1802421659231186, 0.19730207324028015, -0.11162271350622177, 0.5349854230880737, -0.1301763355731964, 0.34357860684394836, -0.10057755559682846, 0.35510900616645813, 0.21299941837787628, 0.06349167972803116, -0.1322525292634964, 0.02198033407330513, -0.3497192859649658, 0.21169345080852509, -0.28708094358444214, 0.029968874529004097, -0.3312670588493347, -0.19253230094909668, 0.01120929978787899, -0.2979675233364105, 0.035824451595544815, -0.09817811846733093, -0.12598247826099396, -0.16312657296657562, 0.2314465194940567, 0.369464248418808, -0.06166183203458786, -0.19805966317653656, -0.15906336903572083, 0.20303839445114136, 0.3930233418941498, -0.37369370460510254, -0.09792336076498032, -0.056745510548353195, -0.12067104876041412, -0.05573919415473938, -0.03547266125679016, -0.4181656539440155, 0.10173399746417999, 0.20130443572998047, -0.051119498908519745, -0.23963062465190887, 0.49714547395706177, 0.34144869446754456, 0.23521065711975098, -0.16380862891674042, 0.11140833050012589, -0.03915097191929817, -0.027840612456202507, -0.579643964767456, -0.40022382140159607 ]
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.22625832259655, 0.07263918966054916, -0.05076025798916817, 0.029831545427441597, 0.1185116246342659, 0.06380263715982437, 0.2788839638233185, 0.21063515543937683, 0.41184690594673157, 0.1336878538131714, 0.12616290152072906, 0.4746670722961426, 0.07140670716762543, 0.4720022678375244, 0.31708502769470215, -0.09843388944864273, 0.10315141826868057, 0.2740091383457184, -0.1861932873725891, -0.23668615520000458, -0.17937703430652618, 0.007089806254953146, -0.14797307550907135, 0.09822946041822433, 0.06650916486978531, -0.12814398109912872, 0.15537983179092407, 0.4630151391029358, -0.03246668726205826, -0.3530556857585907, 0.3163316249847412, -0.1135791763663292, 0.5149088501930237, 0.22203099727630615, -0.00011104821169283241, 0.31566566228866577, 0.2686827480792999, -0.17982205748558044, -0.1765814870595932, -0.4398925304412842, -0.33177489042282104, -0.08252643048763275, 0.5880651473999023, -0.3125266134738922, -0.3187117278575897, -0.165293887257576, 0.16798700392246246, -0.13425922393798828, 0.485185444355011, 0.520621657371521, 0.12772656977176666, -0.0649731233716011, -0.046564746648073196, 0.03195030242204666, -0.2079119086265564, 0.040976714342832565, 0.09147753566503525, 0.5332652926445007, -0.035872798413038254, -0.030658962205052376, 0.24458573758602142, 0.21696797013282776, 0.010146455839276314, 0.11086512356996536, 0.4078381061553955, 0.231299489736557, 0.18551088869571686, -0.27289047837257385, -0.010861625894904137, 0.029411517083644867, 0.6502360105514526, -0.03453045338392258, -0.06156868487596512, 0.14971205592155457, -0.17311273515224457, -0.05935990810394287, 0.08189836889505386, 0.1594638079404831, -0.15839354693889618, 0.47502008080482483, -0.06524883955717087, -0.2672055661678314, -0.35621407628059387, 0.5089409947395325, 0.10505328327417374, 0.14242461323738098, -0.20992130041122437, 0.1786520928144455, 0.22460611164569855, 0.08348339796066284, -0.023906981572508812, -0.10446078330278397, 0.2395537793636322, 0.320284366607666, -0.08810845762491226, 0.04946262389421463, 0.10824315249919891, -0.02180800400674343, -0.07923885434865952, -0.13709263503551483, 0.08320430666208267, 0.11100343614816666, -0.043099090456962585, 0.3450948894023895, 0.24400924146175385, -0.08050289005041122, 0.07789921760559082, 0.11469060927629471, 0.08272622525691986, 0.03437232971191406, -0.1902608424425125, -0.17882482707500458, -0.45201677083969116, -0.25758659839630127, -0.22106114029884338, 0.06941960006952286, 0.3887130916118622, -0.49433010816574097, 0.21367685496807098, -0.09972981363534927, -0.08029536157846451, -0.19206669926643372, 0.19162163138389587, 0.39945006370544434, -0.30890795588493347, 0.10412951558828354, -0.02226903848350048, 0.15742580592632294, -0.2376619279384613, -0.07658255100250244, -0.14938831329345703, 0.030434932559728622, -0.041888099163770676, -0.18592971563339233, 0.0700736790895462, 0.1622483730316162, 0.4741711914539337, -0.19783084094524384, -0.011063608340919018, -0.0682450532913208, 0.3981919288635254, -0.03631165623664856, 0.05248859152197838, 0.4357515275478363, 0.1996603161096573, -0.11758361011743546, 0.1381770372390747, -0.24588389694690704, -0.337339848279953, 0.3195277750492096, -0.40191060304641724, -0.4656975269317627, 0.10410519689321518, 0.15094003081321716, 0.041095953434705734, -0.1153838112950325, -0.3019273281097412, 0.10500697046518326, -0.2668139934539795, 0.03179977834224701, -0.2557739317417145, 0.054694369435310364, -0.16974930465221405, -0.13585443794727325, 0.5634303689002991, 0.3151138424873352, -0.5412465333938599, 0.020191777497529984, 0.0491376593708992, -0.27601560950279236, 0.2094731330871582, 0.13299016654491425, -0.6482588052749634, 0.5789046883583069, -0.021629922091960907, 0.053819820284843445, 0.685783863067627, -0.33551791310310364, -0.048075076192617416, 0.5132647752761841, -0.29599297046661377, -0.3279224932193756, 0.02628532610833645, 0.06089852750301361, -0.3787730932235718, 0.1456359177827835, 0.256785124540329, 0.799813449382782, -0.07439640164375305, -0.03237680718302727, -0.13786353170871735, -0.09691799432039261, 0.14677494764328003, 0.3137150704860687, -0.1266002357006073, 0.28385260701179504, 0.17520759999752045, -0.09331715106964111, 0.1890193521976471, -0.1494244933128357, -0.22038990259170532, 0.3022565245628357, 0.16217873990535736, -0.05722912773489952, 0.059097446501255035, 0.3509070873260498, -0.3783244490623474, 0.0031321877613663673, -0.04671905189752579, -0.33015260100364685, -0.0039016592781990767, -0.11007294803857803, -0.16143593192100525, -0.16131433844566345, -0.3629111051559448, 0.13279841840267181, 0.0395573154091835, 0.007861072197556496, 0.20772308111190796, -0.018034517765045166, -0.3729104995727539, 0.012225809507071972, -0.37246283888816833, 0.11112847924232483, -0.3929046392440796, 0.05750984326004982, -0.1297764927148819, 0.08457822352647781, 0.004242355469614267, -0.11506327986717224, 0.0015271279262378812, -0.30981478095054626, -0.13872748613357544, 0.33974286913871765, 0.15834307670593262, 0.22852805256843567, 0.1951049417257309, 0.1558130532503128, -0.03850197792053223, -0.27690714597702026, 0.08776811510324478, 0.04648944362998009, 0.21772165596485138, -0.037320952862501144, -0.3309567868709564, 0.3192175030708313, -0.14946052432060242, 0.139010488986969, 0.09394452720880508, -0.12139212340116501, 0.45285263657569885, -0.19523683190345764, -0.281757116317749, 0.12290037423372269, 0.011987811885774136, 0.12600062787532806, 0.20170016586780548, 0.08353880792856216, -0.4605385959148407, -0.1729709357023239, 0.14628027379512787, -0.1816801279783249, -0.003475535660982132, 0.05198923870921135, -0.05853820964694023, -0.053186677396297455, 0.1458411067724228, 0.15037807822227478, 0.4096992313861847, 0.2233097404241562, 0.13762949407100677, 0.2141469120979309, -0.017146136611700058, -0.14158514142036438, 0.0554385781288147, -0.022777315229177475, 0.11094435304403305, -0.06386584043502808, -0.2919035851955414, -0.24698588252067566, -0.11899393796920776, -0.062346190214157104, 0.02995770424604416, 0.2335619479417801, -0.18763920664787292, 0.23123414814472198, -0.22499287128448486, -0.24412089586257935, -0.23444147408008575, -0.1185712218284607, 0.11154844611883163, 0.20493821799755096, -0.15993666648864746, -0.1388334482908249, -0.12169840186834335, 0.08970282971858978, 0.007008158136159182, 0.1787004917860031, -0.10821205377578735, -0.2284964919090271, 0.13596485555171967, -0.31162071228027344, -0.4153097867965698, 0.008347423747181892, 0.3807966709136963, 0.2456948310136795, 0.13443051278591156, -0.4152356684207916, -0.1526012271642685, 0.38513752818107605, 0.08079484850168228, 0.1703094244003296, 0.23663954436779022, 0.41771596670150757, -0.0022945634555071592, 0.44681552052497864, -0.1556137651205063, -0.061343081295490265, 0.31155940890312195, 0.05885084718465805, -0.11946417391300201, -0.013561752624809742, -0.08807387202978134, -0.014325388707220554, -0.15114140510559082, -0.8512556552886963, -0.6334601044654846, -0.210143581032753, 0.3240516185760498, 0.3335135877132416, 0.28995200991630554, 0.2690639793872833, 0.34879693388938904, 0.31454190611839294, -0.10799024999141693, 0.18394041061401367, -0.07006420940160751, -0.6561447381973267, 0.26123589277267456, -0.22745276987552643, -0.3461759090423584, 0.2240779846906662, -0.048554424196481705, 0.33825457096099854, -0.3104381263256073, -0.4571041762828827, -0.2013510912656784, -0.07106507569551468, 0.09374482929706573, -0.18105828762054443, 0.21168535947799683, 0.25885850191116333, -0.2723751962184906, -0.0588332824409008, 0.039679646492004395, 0.04044073075056076, 0.3224669396877289, 0.21347300708293915, -0.0062859817408025265, 0.39554816484451294, 0.4657091796398163, -0.2823893427848816, 0.4909549355506897, -0.13521455228328705, -0.05888006091117859, 0.2291337549686432, -0.1228802427649498, 0.06020110473036766, -0.1580144464969635, -0.08537737280130386, -0.0694194957613945, 0.09336982667446136, -0.3961993455886841, 0.24847887456417084, 0.1691971868276596, -0.30918779969215393, -0.4658644199371338, -0.4788160026073456, -0.3670514225959778, -0.0959726870059967, 0.2645774185657501, 0.020575348287820816, 0.1205364465713501, -0.08466643840074539, -0.23913319408893585, -0.10461881756782532, 0.15496040880680084, 0.007125149480998516, 0.44537827372550964, 0.14941608905792236, 0.1911902129650116, -0.5017580986022949, -0.2629409432411194, -0.1663333922624588, 0.09944172948598862, -0.2479008138179779, 0.25195813179016113, -0.01617514342069626, -0.10069908201694489, 0.1460198014974594, 0.004523689858615398, 0.4230771064758301, -0.06036180630326271, 0.17071790993213654, 0.036334797739982605, -0.19721993803977966, -0.0440887026488781, 0.04593546688556671, -0.10496599227190018, 0.1431601494550705, -0.027001168578863144, 0.6064015030860901, 0.08330724388360977, -0.3359898626804352, 0.09136446565389633, 0.21192851662635803, -0.3059132695198059, -0.043977025896310806, -0.3621874451637268, -0.21264123916625977, -0.25129690766334534, 0.036748018115758896, -0.07003585249185562, -0.0012103678891435266, 0.3518465757369995, -0.04042277857661247, 0.021686410531401634, 0.03699309751391411, -0.12792626023292542, 0.19775249063968658, 0.15793482959270477, 0.1095932349562645, -0.15136969089508057, 0.31648316979408264, 0.2592553496360779, 0.016733769327402115, 0.5449084639549255, -0.04674361273646355, -0.10961268842220306, -0.11799700558185577, -0.011185797862708569, 0.6491314768791199, 0.0015008705668151379, -0.15443387627601624, -0.09763191640377045, 0.417254775762558, -0.08012258261442184, -0.16506800055503845, 0.34722214937210083, -0.12550728023052216, -0.07692509889602661, 0.11214817315340042, -0.6469172239303589, 0.47489309310913086, -0.043927568942308426, -0.07301875948905945, 0.28820180892944336, -0.3884676694869995, -0.10080627351999283, 0.21211384236812592, 0.05909605324268341, 0.8134881854057312, 0.03335791826248169, 0.19716782867908478, 0.05550846457481384, -0.2451765388250351, 0.0460708886384964, -0.4619615972042084, -0.009302431717514992, 0.002937898738309741, 0.16124366223812103, -0.07510365545749664, -0.21744227409362793, 0.2566373348236084, 0.2670463025569916, -0.26881325244903564, 0.18193593621253967, -0.10687889903783798, 0.053466908633708954, -0.09740644693374634, 0.32437223196029663, 0.3428748548030853, -0.1853102147579193, -0.3735671639442444, 0.044054314494132996, -0.08434111624956131, 0.12167289853096008, -0.09792439639568329, -0.2312127649784088, 0.06272263824939728, -0.19188092648983002, 0.6113892197608948, 0.12418550997972488, -0.2540839612483978, 0.07613160461187363, 0.08863809704780579, -0.13376137614250183, -0.38520821928977966, 0.41233348846435547, 0.10243142396211624, 0.11501635611057281, -0.2677456736564636, -0.03418789803981781, -0.22378075122833252, -0.015444553457200527, -0.37114784121513367, -0.0428788848221302, 0.18079398572444916, -0.22430561482906342, -0.3251650631427765, 0.051171548664569855, -0.3033103048801422, -0.25157588720321655, 0.012019424699246883, 0.017300689592957497, 0.14223076403141022, 0.044670842587947845, -0.4860932528972626, 0.1974077820777893, 0.0500839538872242, 0.11209985613822937, 0.14779122173786163, 0.27441591024398804, -0.429826557636261, 0.07342128455638885, 0.398538202047348, -0.41080623865127563, -0.007486924063414335, 0.3197145462036133, 0.03892672434449196, 0.2434503436088562, 0.44585201144218445, 0.07782486826181412, 0.08716652542352676, -0.2342289537191391, 0.24172556400299072, 0.5168814063072205, 0.05470729246735573, -0.0988064780831337, 0.14431916177272797, 0.22573496401309967, -0.026041824370622635, 0.18106640875339508, 0.10509749501943588, -0.20074571669101715, -0.13778701424598694, -0.430385947227478, -0.46171045303344727, 0.15708014369010925, 0.11939188092947006, 0.18809376657009125, 0.3091335594654083, 0.008786283433437347, 0.18880321085453033, 0.008066694252192974, -0.2785654067993164, 0.13353490829467773, -0.4279075264930725, 0.31178760528564453, 0.08136966079473495, 0.1686210036277771, 0.10733265429735184, -0.0807090774178505, 0.09801319986581802, -0.3277257978916168, -0.17216554284095764, -0.2063763290643692, -0.031037891283631325, 0.13719947636127472, 0.029015151783823967, -0.05204290524125099, 0.006006166338920593, -0.21387942135334015, -0.10516491532325745, 0.1937749981880188, -0.10810660570859909, -0.2283719927072525, -0.052022796124219894, 0.332204669713974, 0.007170343305915594, 0.03362281247973442, -0.1595483273267746, -0.009090010076761246, -0.3278471529483795, 0.0831662192940712, -0.006564797833561897, -0.04984499141573906, -0.06169477105140686, -0.15669988095760345, 0.021834351122379303, -0.11173046380281448, 0.08422278612852097, 0.0012762917904183269, 0.012031776830554008, -0.2264372706413269, 0.2103293091058731, -0.23620572686195374, 0.121559739112854, 0.1910003125667572, -0.13459590077400208, 0.40354034304618835, 0.5213242173194885, 0.15730802714824677, -0.12575051188468933, -0.15893562138080597, 0.40789395570755005, -0.1581020951271057, -0.014241139404475689, 0.056685082614421844, 0.11403296887874603, 0.15028859674930573, 0.012946189381182194, -0.06652700155973434, 0.13489830493927002, 0.08103404194116592, 0.05650797486305237, 0.30001455545425415, -0.28903141617774963, 0.023022623732686043, -0.24249304831027985, 0.46745842695236206, 0.2498481720685959, 0.3675684630870819, -0.2711753845214844, 0.08851906657218933, 0.15093086659908295, 0.24022939801216125, -0.255624920129776, -0.5581201910972595, 0.02582957036793232, 0.07398904860019684, -0.25375625491142273, 0.009695833548903465, -0.112188920378685, 0.11947707086801529, 0.015929728746414185, -0.10372655093669891, 0.09278374910354614, 0.1385786384344101, -0.06319298595190048, -0.2561335563659668, -0.7088010311126709, -0.0451972559094429, -0.09464375674724579, 0.042737480252981186, 0.13732072710990906, -0.11392511427402496, 0.007787866052240133, 0.09512316435575485, 0.05652386695146561, 0.10581353306770325, 0.22045695781707764, 0.04327531158924103, -0.21280889213085175, -0.04458668455481529, 0.2721942961215973, -0.16882126033306122, 0.02059062011539936, -0.0004447116516530514, -0.05942250043153763, -0.018607428297400475, 0.3385343849658966, -0.10256306082010269, 0.09490738064050674, 0.27015435695648193, -0.23610347509384155, -0.1904640942811966, -0.03181683272123337, 0.045788995921611786, 0.31636959314346313, 0.16743595898151398, 0.17003880441188812, -0.11839572340250015, 0.5580305457115173, -0.13143987953662872, -0.062224771827459335, -0.19642874598503113, 0.07103666663169861, 0.3899369537830353, -0.10377279669046402, -0.14898806810379028, 0.18410441279411316, -0.6802800893783569, -0.058534227311611176, 0.37122413516044617, 0.04396548867225647, 0.0981779620051384, -0.046278275549411774, 0.059023384004831314, -0.12476374953985214, 0.7835622429847717, 0.08759521692991257, 0.42122578620910645, -0.3404265344142914, -0.14094990491867065, -0.39280521869659424, -0.04327589273452759, -0.18322302401065826, 0.033254168927669525, 0.24282047152519226, 0.04079711437225342, 0.2119891345500946, 0.5221176743507385, -0.11355891078710556, -0.0735933929681778, -0.20890699326992035, 0.18006928265094757, 0.11021300405263901, -0.1890694797039032, -0.16416040062904358, 0.5195663571357727, -0.03979269787669182, -0.22091686725616455, 0.057446759194135666, -0.1535339653491974, 0.00747003685683012, -0.01614457555115223, -0.1233067512512207, 0.002290067495778203, 0.06416469812393188, 0.5476076006889343, -0.09579188376665115, 0.33853814005851746, -0.13602742552757263, 0.24834780395030975, 0.1215875893831253, 0.09807312488555908, -0.26918354630470276, -0.008615299127995968, -0.2382543981075287, 0.0336131677031517, -0.4011252224445343, -0.02359495684504509, -0.4043450653553009, -0.22162964940071106, -0.02624802105128765, -0.1667850762605667, 0.1563257873058319, -0.09041201323270798, -0.033118873834609985, -0.03551546856760979, 0.18229052424430847, 0.09381315857172012, -0.11040540039539337, -0.20384256541728973, -0.23951409757137299, 0.14438767731189728, 0.4357281029224396, -0.2469317615032196, -0.071120485663414, -0.07298970222473145, -0.03795241937041283, 0.009626118466258049, 0.08154822885990143, -0.17499184608459473, 0.24816009402275085, 0.29668670892715454, -0.08837317675352097, -0.19688135385513306, 0.4825160801410675, 0.3504330515861511, 0.08683893084526062, -0.14363938570022583, 0.0646013393998146, -0.048275187611579895, -0.04313226044178009, -0.5779153108596802, -0.4731281101703644 ]
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: ![image](https://user-images.githubusercontent.com/49967236/104276256-25a88600-546a-11eb-9776-8ec695dfa24e.png) 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: ![image](https://user-images.githubusercontent.com/49967236/104276256-25a88600-546a-11eb-9776-8ec695dfa24e.png) 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.05689340829849243, 0.04477803036570549, -0.033175114542245865, 0.33330008387565613, 0.3864111006259918, -0.0045956093817949295, 0.4649326205253601, 0.26927170157432556, -0.1353343278169632, 0.03177129104733467, 0.19226978719234467, 0.13543525338172913, -0.19810783863067627, 0.2756943702697754, 0.029139457270503044, -0.2823961079120636, -0.06425776332616806, 0.15135802328586578, -0.16091647744178772, -0.2264636605978012, 0.13867515325546265, -0.030477263033390045, -0.08095914125442505, 0.23653317987918854, -0.18698616325855255, -0.46197107434272766, 0.022512318566441536, 0.23901376128196716, -0.5007809996604919, -0.2214994877576828, 0.17166361212730408, -0.20949381589889526, 0.41898441314697266, 0.3880798816680908, -0.00012106131907785311, 0.095301553606987, -0.004567337688058615, -0.15956737101078033, -0.29704365134239197, -0.21031594276428223, 0.22375167906284332, -0.21770524978637695, 0.22774498164653778, -0.3331465721130371, 0.17635074257850647, 0.23506978154182434, 0.04994973540306091, -0.2093142569065094, 0.15999561548233032, 0.2205236852169037, 0.11110002547502518, 0.3654482066631317, 0.00415203720331192, -0.052991632372140884, -0.14168499410152435, 0.03365220129489899, -0.2613527774810791, 0.3368000090122223, -0.24960248172283173, -0.19327597320079803, 0.3615836799144745, 0.22672133147716522, -0.38464581966400146, 0.2377176582813263, 0.10712062567472458, -0.005931985564529896, 0.17349007725715637, -0.23601002991199493, 0.2626620829105377, 0.455459326505661, 0.13337743282318115, 0.060280878096818924, -0.11966756731271744, -0.17013348639011383, 0.11855719983577728, -0.3823777735233307, 0.18550090491771698, 0.415704607963562, -0.18654820322990417, 0.2766377627849579, -0.4178330600261688, -0.2676389515399933, -0.24417506158351898, 0.13262689113616943, 0.10153717547655106, 0.2954367697238922, -0.14058862626552582, 0.1240575835108757, 0.027160339057445526, -0.010755499824881554, -0.2150411158800125, -0.07047004252672195, 0.045831311494112015, -0.09303727746009827, -0.11459054052829742, 0.08241257816553116, -0.05272052064538002, 0.4119788408279419, -0.0158200915902853, 0.14776748418807983, 0.10829948633909225, -0.10338371247053146, 0.04691975563764572, 0.0857243537902832, 0.022664137184619904, 0.28961509466171265, -0.08096174895763397, -0.07617657631635666, 0.3698175549507141, 0.4719712734222412, -0.17492443323135376, -0.1006733626127243, -0.17151491343975067, -0.043068528175354004, -0.367474764585495, -0.12043625861406326, 0.1936536282300949, -0.287499338388443, 0.0668758749961853, -0.08990146964788437, -0.050740472972393036, 0.05512596666812897, 0.046324606984853745, 0.2603745460510254, -0.26191797852516174, -0.030094699934124947, 0.06081743538379669, 0.17933939397335052, -0.28961044549942017, -0.5131762027740479, 0.14656762778759003, -0.1178617775440216, -0.22100266814231873, 0.11166539788246155, 0.16933992505073547, -0.18912842869758606, 0.38093656301498413, -0.23273877799510956, 0.23364205658435822, -0.10928657650947571, 0.13846725225448608, -0.3832317888736725, 0.09962058812379837, 0.3830474317073822, 0.15160979330539703, 0.021221954375505447, 0.3603971302509308, 0.029300767928361893, 0.16177569329738617, 0.11892127245664597, -0.012713315896689892, -0.4248868525028229, 0.31300559639930725, 0.01687578856945038, -0.2212020456790924, -0.24221183359622955, -0.3803578317165375, 0.1152491644024849, 0.06942561268806458, -0.20000579953193665, 0.074297234416008, 0.11825848370790482, -0.16402819752693176, -0.1023329570889473, 0.5407956838607788, 0.5818744897842407, -0.6021806597709656, 0.27775731682777405, -0.29725733399391174, 0.0902724415063858, 0.20602887868881226, 0.2522561848163605, -0.20694109797477722, 0.5162286162376404, -0.19436411559581757, -0.2867465615272522, 0.2468043863773346, 0.05325473099946976, -0.0808427706360817, 0.2691389322280884, -0.1503319889307022, -0.258318156003952, 0.06462331116199493, -0.18967126309871674, 0.3683038353919983, 0.325849324464798, -0.15607620775699615, 0.1533571183681488, -0.075129933655262, -0.14700229465961456, -0.2901535928249359, -0.43897736072540283, 0.1768018752336502, 0.223463237285614, 0.26039937138557434, 0.24876254796981812, -0.0062577915377914906, -0.4477114677429199, 0.08631938695907593, 0.02987438440322876, -0.02396371401846409, 0.043469831347465515, 0.20156629383563995, 0.4506847560405731, -0.07051204890012741, -0.05832979083061218, -0.11009704321622849, 0.24619857966899872, -0.06673095375299454, 0.5235766172409058, -0.3406293988227844, 0.23551177978515625, 0.0231513399630785, -0.07209831476211548, -0.12168217450380325, 0.07676127552986145, -0.009662105701863766, -0.17457206547260284, 0.019608918577432632, 0.12608537077903748, -0.23610034584999084, 0.098664790391922, 0.049557242542505264, 0.1481170505285263, -0.15256249904632568, 0.27868276834487915, -0.2784131169319153, -0.10173468291759491, -0.17764416337013245, -0.2753502130508423, 0.12795090675354004, -0.08990269899368286, -0.1917276531457901, 0.3155953884124756, -0.27718886733055115, -0.035518161952495575, 0.44650840759277344, 0.1324353814125061, 0.1414649933576584, -0.02056216448545456, 0.5296023488044739, 0.22416764497756958, 0.17209506034851074, 0.1947709619998932, -0.05036194249987602, 0.5095843076705933, 0.0626385286450386, 0.4032295048236847, 0.008889371529221535, 0.20835858583450317, 0.31234079599380493, 0.12541267275810242, -0.07963541895151138, -0.1443970501422882, 0.3125234544277191, 0.48564794659614563, 0.02979392744600773, -0.33270663022994995, -0.17427973449230194, -0.11182232946157455, 0.17975081503391266, 0.143390491604805, 0.30359140038490295, -0.12783771753311157, -0.15226885676383972, 0.17763245105743408, 0.06332533806562424, 0.15377488732337952, 0.2748870551586151, 0.09919645637273788, -0.2230338603258133, 0.3310143053531647, -0.11837772279977798, -0.1956307590007782, 0.3147280514240265, 0.2974821627140045, 0.398683100938797, -0.03639461472630501, 0.07838987559080124, -0.22595073282718658, -0.3413810133934021, -0.24088004231452942, 0.09903530031442642, 0.2719103693962097, -0.15914180874824524, 0.36081990599632263, -0.5341259837150574, 0.10253974795341492, -0.19606700539588928, 0.06320879608392715, -0.7216084599494934, 0.18189993500709534, 0.07500684261322021, -0.0777052566409111, -0.06322196125984192, 0.23510880768299103, -0.051907431334257126, 0.38309016823768616, -0.10813833773136139, -0.15997076034545898, 0.11407049000263214, -0.28537726402282715, -0.34276440739631653, -0.08761189132928848, 0.2408560961484909, 0.1433362066745758, 0.33947959542274475, -0.0341622531414032, -0.29274845123291016, 0.11272822320461273, -0.24757784605026245, 0.02400459349155426, 0.11493948847055435, 0.08865605294704437, 0.19493943452835083, 0.4221845269203186, -0.09213274717330933, 0.25114163756370544, 0.4791591763496399, -0.3582127094268799, 0.15563105046749115, -0.14050117135047913, -0.16623716056346893, 0.10404220968484879, -0.20295697450637817, -0.4261447489261627, -0.4214297831058502, -0.15222132205963135, 0.31046992540359497, 0.3258913457393646, 0.16975758969783783, 0.05767318606376648, 0.37483707070350647, -0.08348070085048676, -0.2663258910179138, 0.1694478541612625, 0.045510828495025635, -0.6586939096450806, 0.2608664631843567, 0.05118078738451004, -0.22681479156017303, 0.34873801469802856, 0.23399941623210907, -0.11566507071256638, -0.0868992805480957, -0.5762642025947571, -0.06005532294511795, 0.2335474193096161, 0.12560369074344635, 0.1397910863161087, 0.17811396718025208, 0.49776431918144226, -0.10753004997968674, 0.06005391106009483, -0.10685054957866669, -0.20007197558879852, 0.19693796336650848, -0.12999384105205536, 0.16762644052505493, -0.012114732526242733, 0.79027259349823, 0.009235239587724209, 0.31429192423820496, -0.29030585289001465, 0.008418777026236057, 0.21282637119293213, -0.08712514489889145, 0.39448797702789307, -0.16267170011997223, -0.12470360845327377, -0.054658133536577225, -0.07177761197090149, -0.5755216479301453, 0.21326874196529388, 0.07284504175186157, -0.031192468479275703, -0.4914732575416565, 0.030375484377145767, 0.044148895889520645, -0.14808587729930878, 0.0771157443523407, 0.1659272462129593, 0.3032754361629486, 0.29891741275787354, 0.15412284433841705, -0.28257080912590027, 0.13776437938213348, 0.09481170773506165, 0.28943952918052673, 0.020441977307200432, 0.12121707946062088, -0.45985305309295654, -0.22579020261764526, 0.12098531424999237, 0.1304299384355545, -0.18285685777664185, 0.318651407957077, -0.1515050232410431, 0.04595664516091347, 0.25589632987976074, -0.03974751755595207, 0.37022653222084045, -0.10339167714118958, -0.05666320398449898, -0.038997918367385864, -0.05551978200674057, -0.20804254710674286, -0.3152333199977875, 0.05629488825798035, 0.056393079459667206, 0.3540608286857605, 0.1808842569589615, -0.06487825512886047, 0.10829591751098633, 0.08923705667257309, 0.1999557763338089, -0.3322054445743561, -0.11894063651561737, -0.6464851498603821, -0.16520506143569946, -0.4019239842891693, -0.006454772781580687, -0.3250182569026947, -0.08301858603954315, -0.054829344153404236, 0.21327272057533264, 0.09392192214727402, 0.28198081254959106, -0.27593713998794556, 0.2893921732902527, 0.14349377155303955, -0.30024346709251404, -0.028837665915489197, 0.3691067397594452, 0.35646897554397583, 0.3488221764564514, 0.300600528717041, -0.35581639409065247, 0.0463302806019783, 0.07484149932861328, 0.03579571843147278, 0.051264628767967224, 0.3899350166320801, -0.11187214404344559, -0.2598857879638672, 0.5852517485618591, 0.26023343205451965, -0.02520906925201416, -0.1555951088666916, 0.01522739790380001, -0.09606407582759857, 0.13735531270503998, -0.40636155009269714, 0.3523402512073517, -0.12273780256509781, 0.15768231451511383, -0.4403471052646637, 0.20643390715122223, -0.0335906483232975, 0.379354327917099, -0.06254067271947861, 1.1074082851409912, -0.00925388839095831, 0.144634410738945, 0.06919954717159271, -0.005933671724051237, 0.47999200224876404, -0.5333248972892761, 0.25356173515319824, -0.1294441819190979, -0.004621858708560467, -0.04619115591049194, -0.005067570134997368, 0.3399929404258728, 0.28366416692733765, -0.0960378348827362, 0.4485304057598114, -0.07013649493455887, 0.1649610549211502, -0.02554764598608017, -0.2019949108362198, 0.3052363097667694, -0.3106030225753784, -0.9818565249443054, 0.047871481627225876, 0.1462782621383667, 0.1332322359085083, -0.38025447726249695, -0.2694801390171051, 0.06877294927835464, -0.020563587546348572, -0.027057288214564323, -0.10348872095346451, -0.43767911195755005, 0.051596127450466156, -0.1494440734386444, 0.0368112213909626, -0.07216139882802963, 0.02943083830177784, 0.4105336666107178, 0.20966899394989014, -0.18132564425468445, -0.08831816166639328, 0.0033526550978422165, -0.3626655042171478, -0.1218234971165657, 0.2802734673023224, -0.056263282895088196, -0.2747870683670044, -0.31988441944122314, -0.22768321633338928, -0.23106233775615692, -0.02661491371691227, 0.360447496175766, -0.27868375182151794, 0.13381411135196686, 0.06802981346845627, 0.03526628389954567, -0.015546794980764389, 0.2715946137905121, -0.15276028215885162, 0.030909543856978416, 0.15016479790210724, -0.13813070952892303, 0.2089792788028717, 0.190932035446167, -0.03909758850932121, -0.21222712099552155, 0.3643263280391693, -0.09445541352033615, 0.21751192212104797, 0.3239700496196747, 0.37749165296554565, -0.2118939757347107, -0.20473793148994446, 0.20062202215194702, -0.31649044156074524, -0.3938560485839844, 0.19926489889621735, 0.18184444308280945, 0.11458507925271988, -0.13658280670642853, 0.0054976544342935085, 0.23341460525989532, -0.08531705290079117, -0.13762928545475006, -0.505522608757019, -0.42264920473098755, 0.10154484957456589, 0.05012877285480499, -0.2350701540708542, 0.3599450886249542, 0.11214209347963333, 0.25102508068084717, -0.1264875829219818, -0.1807381510734558, 0.09409031271934509, -0.1220691055059433, 0.020502379164099693, 0.3346766531467438, -0.08947104215621948, 0.29070064425468445, 0.13603201508522034, -0.02949129417538643, 0.006374192889779806, -0.13482293486595154, -0.0721663311123848, 0.021944092586636543, 0.2543151378631592, 0.11801782250404358, -0.46393728256225586, -0.10803215205669403, -0.46216660737991333, -0.448428213596344, -0.002629172056913376, -0.11758419871330261, 0.038451630622148514, 0.04955378547310829, -0.18550539016723633, 0.183100625872612, 0.17894622683525085, -0.474614679813385, 0.061750635504722595, -0.03899255394935608, 0.15639741718769073, 0.21871934831142426, -0.07390126585960388, 0.05833323672413826, 0.0015178038738667965, -0.12950624525547028, -0.09234141558408737, -0.029377702623605728, 0.1943141520023346, 0.6456201672554016, -0.3700989782810211, 0.2425406277179718, 0.2151111364364624, 0.2719471752643585, 0.2969438433647156, 0.14801396429538727, -0.03415023535490036, 0.40431395173072815, 0.060806479305028915, -0.5158957839012146, 0.03110395558178425, 0.2101081758737564, -0.047131456434726715, 0.014956672675907612, 0.1986985206604004, 0.24710655212402344, 0.09875781089067459, -0.1906709223985672, 0.19317933917045593, 0.30860015749931335, 0.01150395069271326, 0.08930487185716629, -0.054338134825229645, -0.09266417473554611, 0.18706177175045013, -0.09171760082244873, 0.0334027037024498, 0.049837108701467514, 0.3700135052204132, -0.2356918305158615, 0.08717173337936401, 0.05231659486889839, -0.1669752597808838, -0.029512958601117134, -0.35458946228027344, 0.03488180413842201, 0.28105413913726807, 0.40331006050109863, -0.11780957877635956, -0.44761723279953003, 0.28994205594062805, -0.35647931694984436, -0.16964112222194672, -0.2801986634731293, 0.1834980547428131, -0.005184335168451071, 0.037813857197761536, -0.4128588140010834, -0.1591300666332245, -0.034888457506895065, 0.21301114559173584, 0.18067479133605957, 0.06130122393369675, 0.2449626326560974, 0.3368619978427887, -0.1566210836172104, -0.4440946578979492, -0.4630816578865051, 0.2363448292016983, -0.03688344359397888, 0.01645287498831749, 0.09762037545442581, 0.4217371940612793, -0.2259596735239029, -0.08612167090177536, 0.12882579863071442, 0.3297291398048401, 0.09207884222269058, -0.02997536212205887, 0.03658394142985344, -0.008435764349997044, 0.10875507444143295, -0.09681804478168488, -0.23028111457824707, 0.4081577658653259, 0.4481622278690338, -0.09406476467847824, -0.05318355932831764, -0.04695771262049675, 0.5351567268371582, -0.172457754611969, 0.14498969912528992, -0.011190146207809448, 0.13820774853229523, 0.16812023520469666, -0.1573054939508438, -0.4443291127681732, -0.07262777537107468, -0.3360549509525299, 0.32787805795669556, 0.49973535537719727, 0.044153399765491486, -0.14084495604038239, -0.17662054300308228, -0.024137020111083984, -0.1380181908607483, 0.6954711079597473, 0.219635009765625, 0.01898481324315071, -0.2244929075241089, -0.059396203607320786, -0.36878493428230286, -0.17765681445598602, -0.32885557413101196, -0.007252137642353773, -0.09826647490262985, 0.0550447441637516, 0.3538893163204193, 0.16909083724021912, 0.2330790013074875, -0.26913875341415405, 0.01780882105231285, 0.09218941628932953, -0.14488376677036285, -0.0735686868429184, -0.3350899815559387, 0.21414953470230103, 0.04458176717162132, -0.19820576906204224, 0.09028790146112442, -0.24453513324260712, -0.07797642797231674, -0.06334937363862991, 0.0008509748731739819, -0.3760928511619568, 0.09046410769224167, 0.28970322012901306, 0.07290028780698776, 0.44669708609580994, 0.3902716338634491, -0.3010512888431549, -0.2946251928806305, 0.1509019285440445, -0.2258811593055725, 0.17172594368457794, 0.2802492380142212, 0.39366045594215393, -0.20180954039096832, 0.0658830925822258, -0.5258013010025024, 0.22101013362407684, 0.15931974351406097, -0.1110810860991478, -0.2012760192155838, -0.304313987493515, 0.22398151457309723, 0.06330255419015884, 0.19596081972122192, 0.043917618691921234, 0.06895449012517929, 0.012397046200931072, -0.584463894367218, 0.12275145202875137, 0.4918968081474304, -0.2912524938583374, -0.15941907465457916, -0.532843828201294, 0.24307700991630554, 0.011793379671871662, 0.07759897410869598, -0.7704245448112488, 0.03683922439813614, 0.09503556042909622, 0.07393453270196915, -0.14356139302253723, 0.223837748169899, 0.0500984750688076, -0.060288410633802414, 0.014288685284554958, 0.2476169317960739, -0.41361942887306213, -0.4147634506225586, -0.34149178862571716, -0.032872188836336136 ]
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: ![image](https://user-images.githubusercontent.com/49967236/104276256-25a88600-546a-11eb-9776-8ec695dfa24e.png) 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: ![image](https://user-images.githubusercontent.com/49967236/104276256-25a88600-546a-11eb-9776-8ec695dfa24e.png) 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.10603678226470947, 0.09221526980400085, -0.046883635222911835, 0.38953572511672974, 0.38657742738723755, 0.005909154191613197, 0.4341854155063629, 0.30958470702171326, -0.1331244707107544, 0.08171985298395157, 0.2425641417503357, 0.16543638706207275, -0.22832150757312775, 0.1497393697500229, -0.017087575048208237, -0.29909747838974, -0.059258878231048584, 0.18289785087108612, -0.1974503993988037, -0.2429981678724289, 0.1269831657409668, -0.05812865123152733, -0.044166870415210724, 0.23018549382686615, -0.21554823219776154, -0.42567139863967896, 0.04234848916530609, 0.19005590677261353, -0.5258660912513733, -0.1492343693971634, 0.17435608804225922, -0.25952452421188354, 0.40959876775741577, 0.26068440079689026, -0.00012327948934398592, 0.15777839720249176, -0.026151351630687714, -0.16186557710170746, -0.1889200657606125, -0.16803303360939026, 0.2139277458190918, -0.15001659095287323, 0.2031959891319275, -0.34308573603630066, 0.16639290750026703, 0.2027679830789566, 0.08825167268514633, -0.22625327110290527, 0.18198621273040771, 0.22253485023975372, 0.0811530128121376, 0.3456406891345978, -0.008061359636485577, -0.05168578028678894, -0.08946928381919861, -0.027025943621993065, -0.2824188470840454, 0.35965967178344727, -0.19250550866127014, -0.16915932297706604, 0.39596879482269287, 0.2600801885128021, -0.3926524519920349, 0.2729838490486145, 0.07244724780321121, -0.022985516116023064, 0.26455575227737427, -0.2598528265953064, 0.3517809510231018, 0.4191642999649048, 0.12689003348350525, 0.14977680146694183, -0.03865967318415642, -0.07042723894119263, 0.12310454249382019, -0.3096097707748413, 0.18177290260791779, 0.5108632445335388, -0.24658669531345367, 0.3363569378852844, -0.4833444058895111, -0.25108200311660767, -0.31495749950408936, 0.10096327215433121, 0.06261742115020752, 0.35045474767684937, -0.09848122298717499, 0.12371420115232468, 0.002420815173536539, 0.0537840873003006, -0.13070280849933624, -0.11266401410102844, 0.05073704943060875, -0.0992247611284256, 0.006535767111927271, 0.10168256610631943, -0.06495916843414307, 0.4636523127555847, -0.07911881059408188, 0.15698763728141785, 0.08288048207759857, -0.1005580946803093, 0.13953736424446106, 0.14616698026657104, 0.00426738103851676, 0.21603959798812866, -0.09779605269432068, -0.08208389580249786, 0.32640859484672546, 0.3431952893733978, -0.23578360676765442, -0.1277749091386795, -0.20113731920719147, -0.005039297044277191, -0.3550633490085602, -0.12340414524078369, 0.08343838155269623, -0.2681812644004822, 0.12479554116725922, -0.03645021840929985, -0.08263435959815979, 0.07571786642074585, -0.016459912061691284, 0.2262730449438095, -0.24331757426261902, -0.13618092238903046, 0.005148632451891899, 0.12214887142181396, -0.262883722782135, -0.528869092464447, 0.1647808700799942, -0.11305098235607147, -0.2026740312576294, 0.0002782238298095763, 0.12478853762149811, -0.13367491960525513, 0.3475121259689331, -0.27600038051605225, 0.22436724603176117, -0.07590336352586746, 0.2380291074514389, -0.4224008023738861, 0.20491135120391846, 0.48136746883392334, 0.07587472349405289, -0.08118843287229538, 0.34870389103889465, -0.019417941570281982, 0.14536090195178986, 0.17221473157405853, 0.03938646242022514, -0.4563671350479126, 0.28074949979782104, 0.0020649333018809557, -0.20782755315303802, -0.1681113988161087, -0.2502409815788269, 0.0999002531170845, 0.03617623820900917, -0.18313880264759064, 0.054416537284851074, 0.13221828639507294, -0.1089424341917038, -0.052202291786670685, 0.5060940384864807, 0.4959048628807068, -0.679165780544281, 0.3387344181537628, -0.31621676683425903, 0.101921446621418, 0.2148049771785736, 0.2621177136898041, -0.22648371756076813, 0.6079883575439453, -0.2353295087814331, -0.38911348581314087, 0.26550135016441345, 0.04331570863723755, -0.055142853409051895, 0.3054029941558838, -0.12460624426603317, -0.36385127902030945, 0.05187419429421425, -0.14354851841926575, 0.33617258071899414, 0.3802534341812134, -0.18065589666366577, 0.16943024098873138, -0.13150423765182495, -0.18062572181224823, -0.2857099771499634, -0.45044177770614624, 0.17948949337005615, 0.23460626602172852, 0.3742854595184326, 0.26418939232826233, 0.012557540088891983, -0.5038225054740906, 0.028028495609760284, 0.03637147694826126, -0.029347168281674385, -0.04391757771372795, 0.16640853881835938, 0.30824247002601624, -0.09197244793176651, -0.06447480618953705, -0.11276058852672577, 0.19638493657112122, -0.11449351161718369, 0.509864091873169, -0.3852124810218811, 0.2672775685787201, 0.05711231008172035, -0.007992581464350224, -0.12965472042560577, 0.07686372101306915, -0.025873025879263878, -0.21264106035232544, 0.016152702271938324, 0.1104288324713707, -0.20514477789402008, 0.052175480872392654, 0.052711810916662216, 0.12148598581552505, -0.06953208148479462, 0.29519692063331604, -0.2672996520996094, -0.10248692333698273, -0.21097411215305328, -0.299235999584198, 0.06341197341680527, -0.07165534049272537, -0.186723530292511, 0.23574481904506683, -0.21272790431976318, -0.08058223873376846, 0.4685864746570587, 0.13208338618278503, 0.12546277046203613, -0.09213093668222427, 0.48632240295410156, 0.20748154819011688, 0.09906193614006042, 0.17516210675239563, -0.1444108635187149, 0.544581949710846, 0.10179980099201202, 0.42483365535736084, 0.000019884690118487924, 0.20990528166294098, 0.31926947832107544, 0.0931876003742218, -0.05276161804795265, -0.19902083277702332, 0.24919253587722778, 0.5976501703262329, 0.045131534337997437, -0.2945418357849121, -0.15762072801589966, -0.13522738218307495, 0.12079345434904099, 0.17145009338855743, 0.2262713760137558, -0.2169027328491211, -0.08065830171108246, 0.14905434846878052, 0.16721786558628082, 0.1669871062040329, 0.2008853405714035, 0.11798691004514694, -0.23055268824100494, 0.3015749156475067, -0.16425691545009613, -0.20378918945789337, 0.2730614244937897, 0.29576507210731506, 0.3667027950286865, 0.022805549204349518, 0.01611674763262272, -0.25699442625045776, -0.3741300106048584, -0.2441597878932953, 0.08415249735116959, 0.22698740661144257, -0.050147946923971176, 0.37662798166275024, -0.5777348279953003, 0.0765165388584137, -0.18497532606124878, 0.12367643415927887, -0.729586660861969, 0.20354023575782776, 0.11810234934091568, -0.1463213711977005, -0.11824764311313629, 0.22642508149147034, -0.045369330793619156, 0.4255076050758362, -0.1549137532711029, -0.14088858664035797, 0.1204848438501358, -0.3105557858943939, -0.35845401883125305, -0.0728733167052269, 0.29518061876296997, 0.11457915604114532, 0.4369494616985321, -0.07185830920934677, -0.2679246664047241, 0.16721297800540924, -0.2344251275062561, 0.07721107453107834, 0.2278926521539688, 0.12818874418735504, 0.17195504903793335, 0.3319920003414154, -0.11414282023906708, 0.2252655327320099, 0.4916745126247406, -0.25789085030555725, 0.21106483042240143, -0.17133478820323944, -0.1653003841638565, 0.07249689102172852, -0.2208411544561386, -0.3486712872982025, -0.3932994604110718, -0.12538142502307892, 0.22653165459632874, 0.3537362515926361, 0.1589217633008957, -0.044509708881378174, 0.4573681056499481, -0.09290588647127151, -0.2593953311443329, 0.14913171529769897, 0.10314074158668518, -0.728396475315094, 0.28299593925476074, 0.034937988966703415, -0.22152405977249146, 0.327079713344574, 0.18208976089954376, -0.031835395842790604, -0.09480863064527512, -0.5988150835037231, 0.00970727950334549, 0.24861815571784973, 0.10190911591053009, 0.157126322388649, 0.11139945685863495, 0.5097565650939941, -0.14246860146522522, 0.06749038398265839, -0.11661426723003387, -0.10631975531578064, 0.19101053476333618, -0.16791558265686035, 0.18070195615291595, -0.04886239022016525, 0.6888192892074585, 0.0007345416233874857, 0.3086839020252228, -0.3905961215496063, 0.016634797677397728, 0.17128366231918335, -0.029993798583745956, 0.4084724187850952, -0.1971958875656128, -0.043968744575977325, 0.014222674071788788, 0.0347863994538784, -0.7397348880767822, 0.18260502815246582, 0.09577327966690063, -0.07428174465894699, -0.47230640053749084, 0.1330195814371109, 0.08960235863924026, -0.11515969038009644, 0.09158368408679962, 0.1975882351398468, 0.2886814773082733, 0.30316343903541565, 0.14006423950195312, -0.27301135659217834, 0.16310858726501465, 0.1285751312971115, 0.2771199643611908, 0.018931521102786064, 0.10966145992279053, -0.4963163435459137, -0.3320196866989136, 0.20836740732192993, 0.07105593383312225, -0.1494295448064804, 0.220266655087471, -0.14202862977981567, 0.04986767843365669, 0.28503215312957764, -0.0757780522108078, 0.2722771465778351, -0.16470633447170258, -0.013476537540555, 0.07755163311958313, -0.023991383612155914, -0.18550743162631989, -0.35415056347846985, 0.1425022929906845, 0.004003747366368771, 0.33864399790763855, 0.1648261845111847, 0.03264718875288963, 0.11597513407468796, 0.06809078902006149, 0.1314377784729004, -0.36294516921043396, -0.1577286720275879, -0.6153286099433899, -0.08345485478639603, -0.3465631604194641, -0.013314462266862392, -0.308272123336792, -0.12708421051502228, -0.003951905760914087, 0.13009662926197052, 0.06823869794607162, 0.31793341040611267, -0.3118049204349518, 0.2789812684059143, 0.11376699060201645, -0.3539094626903534, -0.08152119070291519, 0.33058324456214905, 0.3893927037715912, 0.328368216753006, 0.21852770447731018, -0.38057637214660645, 0.1686001569032669, 0.0959165096282959, -0.05790343135595322, 0.06897740066051483, 0.3452132046222687, -0.070200115442276, -0.40406450629234314, 0.5173207521438599, 0.26329195499420166, -0.03301431983709335, -0.09834107011556625, -0.02954971231520176, -0.19798526167869568, 0.2581472396850586, -0.34644079208374023, 0.3385016620159149, -0.13651782274246216, 0.13399000465869904, -0.460964173078537, 0.12613821029663086, 0.003955578897148371, 0.42264413833618164, 0.11080636829137802, 1.1008731126785278, -0.030226517468690872, 0.1513024866580963, -0.03051656298339367, -0.08311544358730316, 0.44233453273773193, -0.5608235597610474, 0.20426277816295624, -0.06276781111955643, 0.09945832192897797, -0.06654639542102814, -0.008409174159169197, 0.39090466499328613, 0.3260168135166168, -0.043114617466926575, 0.2976328134536743, -0.11207376420497894, 0.23293747007846832, -0.029206788167357445, -0.2955096662044525, 0.33638718724250793, -0.27084118127822876, -0.9013370871543884, 0.04465680196881294, 0.2037176489830017, 0.054090533405542374, -0.43900686502456665, -0.2603439688682556, 0.15098953247070312, 0.07317331433296204, -0.00940223690122366, -0.14408086240291595, -0.38198772072792053, 0.0011641893070191145, -0.1484067142009735, 0.08726314455270767, -0.16684187948703766, 0.10296031832695007, 0.3616219460964203, 0.2291160523891449, -0.19450248777866364, -0.09273019433021545, 0.026132535189390182, -0.3629100024700165, -0.1293327510356903, 0.2659469246864319, -0.08407317101955414, -0.30294546484947205, -0.23416131734848022, -0.23723888397216797, -0.2614692449569702, -0.006025908514857292, 0.3813216984272003, -0.25964757800102234, 0.15718859434127808, 0.15749098360538483, 0.04799564927816391, 0.00012448165216483176, 0.26209232211112976, -0.08747059106826782, 0.02412865124642849, 0.11280358582735062, -0.12450940907001495, 0.2401946783065796, 0.1556718945503235, -0.07317069172859192, -0.17267988622188568, 0.3328467309474945, -0.05878465250134468, 0.21051070094108582, 0.23976711928844452, 0.30093610286712646, -0.18430808186531067, -0.22760078310966492, 0.2428060919046402, -0.2906494736671448, -0.3334817886352539, 0.21157781779766083, 0.137134850025177, 0.088889941573143, -0.15801551938056946, -0.029570579528808594, 0.30035319924354553, -0.1638621836900711, -0.17929503321647644, -0.4880007207393646, -0.5016864538192749, 0.07502423971891403, 0.053311966359615326, -0.24108868837356567, 0.23876041173934937, 0.12362875044345856, 0.30612707138061523, -0.09186837822198868, -0.1614236831665039, 0.08257712423801422, -0.1390298455953598, 0.0727650448679924, 0.23254521191120148, -0.011684892699122429, 0.18082331120967865, 0.14040392637252808, -0.053612902760505676, 0.005633757449686527, -0.21289001405239105, -0.07848723232746124, 0.0008781020878814161, 0.26170814037323, 0.18030080199241638, -0.45469388365745544, -0.08955612778663635, -0.494114488363266, -0.4025229811668396, 0.06438937038183212, -0.13248315453529358, -0.045347653329372406, 0.015240432694554329, -0.18266823887825012, 0.274590402841568, 0.20820175111293793, -0.4284772276878357, 0.03575515002012253, 0.030566586181521416, 0.33809617161750793, 0.17767643928527832, -0.1456727683544159, 0.10343929380178452, -0.0515710711479187, 0.055282529443502426, -0.08827105164527893, -0.15820622444152832, 0.19315071403980255, 0.7184299826622009, -0.3177257478237152, 0.3302542567253113, 0.18193168938159943, 0.24215425550937653, 0.271263986825943, 0.15152767300605774, -0.053972549736499786, 0.4231826066970825, 0.050509266555309296, -0.45651620626449585, -0.01952526345849037, 0.1728263944387436, 0.00987321138381958, -0.009175408631563187, 0.1225518062710762, 0.2617381513118744, 0.09807191789150238, -0.15155832469463348, 0.19952483475208282, 0.2672562301158905, -0.05353201553225517, -0.01753598265349865, -0.035231754183769226, -0.11840266734361649, 0.23474910855293274, -0.15253974497318268, 0.007196412887424231, 0.06024341657757759, 0.3606818616390228, -0.16607531905174255, 0.06552699953317642, 0.11313625425100327, -0.1095702201128006, 0.006458280608057976, -0.31950291991233826, 0.052809178829193115, 0.3226979076862335, 0.4446420669555664, -0.06976054608821869, -0.44157156348228455, 0.20105697214603424, -0.20875269174575806, -0.20130737125873566, -0.20866701006889343, 0.18090127408504486, -0.0036264662630856037, 0.0665348544716835, -0.5100694298744202, -0.16639773547649384, -0.027970530092716217, 0.3207264840602875, 0.22054800391197205, 0.13671992719173431, 0.1971614956855774, 0.3423578441143036, -0.13193868100643158, -0.29462310671806335, -0.44488444924354553, 0.17998972535133362, -0.07566077262163162, -0.03901044279336929, 0.08985744416713715, 0.40780872106552124, -0.20822201669216156, -0.03876378387212753, 0.07970236241817474, 0.2462129443883896, 0.12287640571594238, -0.13564255833625793, -0.005663936957716942, -0.05461572855710983, 0.11341872811317444, -0.2144869565963745, -0.15701338648796082, 0.39729368686676025, 0.43492284417152405, -0.06395156681537628, -0.07274402678012848, -0.02893935702741146, 0.6289816498756409, -0.2289356291294098, 0.1649324744939804, 0.04541510343551636, 0.13179229199886322, 0.2369408756494522, -0.21300089359283447, -0.35240069031715393, -0.11878744512796402, -0.3009313642978668, 0.29174208641052246, 0.4879900813102722, 0.005711154080927372, -0.1250530332326889, -0.1439054310321808, -0.0292714424431324, -0.17079435288906097, 0.7764107584953308, 0.19714508950710297, 0.05381905287504196, -0.221629798412323, -0.15338531136512756, -0.30168214440345764, -0.16517749428749084, -0.3652285635471344, 0.0504460409283638, -0.046437688171863556, 0.06988932192325592, 0.3945058584213257, 0.21953433752059937, 0.24615244567394257, -0.25787684321403503, 0.008698178455233574, 0.16286681592464447, -0.12578999996185303, -0.017967212945222855, -0.29082468152046204, 0.2275855988264084, 0.008560349233448505, -0.2548983097076416, 0.1419040560722351, -0.23468682169914246, -0.07558249682188034, -0.03172239288687706, -0.08177831023931503, -0.3402711749076843, 0.1852441281080246, 0.34056946635246277, 0.11344770342111588, 0.4145272672176361, 0.37415531277656555, -0.23671841621398926, -0.24118871986865997, 0.2530452609062195, -0.21215470135211945, 0.07135002315044403, 0.26497846841812134, 0.3803725838661194, -0.24363145232200623, 0.15856529772281647, -0.4597676396369934, 0.16702818870544434, 0.15437117218971252, -0.0887928381562233, -0.23228086531162262, -0.3850862979888916, 0.18651840090751648, 0.05266483873128891, 0.15408869087696075, 0.05946315452456474, 0.12759636342525482, -0.03845610469579697, -0.5950489044189453, 0.1850040853023529, 0.45752575993537903, -0.2326512336730957, -0.22620177268981934, -0.49280911684036255, 0.15268057584762573, 0.012173289433121681, 0.1016603335738182, -0.6858367323875427, -0.012666568160057068, 0.10802184790372849, 0.03674517944455147, -0.09204725176095963, 0.20513857901096344, 0.17611239850521088, -0.04728149250149727, -0.019660886377096176, 0.21329857409000397, -0.4040832221508026, -0.3638869822025299, -0.4775114357471466, -0.09225881844758987 ]
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: ![image](https://user-images.githubusercontent.com/49967236/104276256-25a88600-546a-11eb-9776-8ec695dfa24e.png) 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: ![image](https://user-images.githubusercontent.com/49967236/104276256-25a88600-546a-11eb-9776-8ec695dfa24e.png) 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.06882036477327347, 0.10156817734241486, -0.06698914617300034, 0.35111004114151, 0.37677568197250366, -0.008631927892565727, 0.43615591526031494, 0.28940171003341675, -0.13996031880378723, 0.0760934129357338, 0.23463977873325348, 0.16088607907295227, -0.22747235000133514, 0.17787277698516846, -0.03255235776305199, -0.3421507775783539, -0.04547370970249176, 0.17925721406936646, -0.19100557267665863, -0.258551687002182, 0.11184314638376236, -0.06748449057340622, -0.07586143910884857, 0.22480438649654388, -0.1727478951215744, -0.4493911564350128, 0.02859443798661232, 0.1861250102519989, -0.5378691554069519, -0.15890741348266602, 0.17513124644756317, -0.2850407660007477, 0.4374854564666748, 0.25654464960098267, -0.00012158123718108982, 0.13608697056770325, -0.024604810401797295, -0.1551845818758011, -0.202125683426857, -0.2065090388059616, 0.24519923329353333, -0.20611386001110077, 0.27914705872535706, -0.3414967954158783, 0.16877979040145874, 0.15800966322422028, 0.07052202522754669, -0.19887703657150269, 0.1477961391210556, 0.25221726298332214, 0.10068319737911224, 0.3377573490142822, -0.0068497792817652225, -0.03859587758779526, -0.15955312550067902, -0.04265805706381798, -0.26510730385780334, 0.37642335891723633, -0.19921864569187164, -0.21683910489082336, 0.3203282952308655, 0.18055155873298645, -0.40371832251548767, 0.2859344780445099, 0.047699205577373505, -0.0072090718895196915, 0.30592042207717896, -0.28145676851272583, 0.32828477025032043, 0.3897048234939575, 0.09288295358419418, 0.1497502624988556, -0.035320647060871124, -0.09964524209499359, 0.0985235646367073, -0.31897133588790894, 0.16269361972808838, 0.48709961771965027, -0.23804670572280884, 0.3007386028766632, -0.40028202533721924, -0.2382671982049942, -0.28364041447639465, 0.14294743537902832, 0.06977633386850357, 0.4067316949367523, -0.10669746994972229, 0.09307826310396194, -0.025015193969011307, 0.0395159088075161, -0.13321802020072937, -0.11888881772756577, 0.08779861778020859, -0.09540334343910217, -0.0036218271125108004, 0.10379647463560104, -0.024491095915436745, 0.43701091408729553, -0.1175319105386734, 0.1676563024520874, 0.10175853967666626, -0.10334374755620956, 0.11697373539209366, 0.09555929154157639, 0.017314255237579346, 0.23717007040977478, -0.14970679581165314, -0.0764172300696373, 0.3308125436306, 0.3549761474132538, -0.22802215814590454, -0.10400324314832687, -0.1588994711637497, -0.02806098386645317, -0.37151235342025757, -0.10642864555120468, 0.14624711871147156, -0.22321859002113342, 0.12764796614646912, -0.017074741423130035, -0.1228606253862381, 0.04491446912288666, 0.004385495558381081, 0.20184607803821564, -0.25995421409606934, -0.061470068991184235, 0.014838145114481449, 0.13984890282154083, -0.2758603096008301, -0.5037813782691956, 0.15863807499408722, -0.10600914061069489, -0.16904456913471222, -0.01417419034987688, 0.15288808941841125, -0.14253932237625122, 0.3483363091945648, -0.23217779397964478, 0.24163703620433807, -0.09998665004968643, 0.20834718644618988, -0.4021797478199005, 0.16854919493198395, 0.45232582092285156, 0.12665246427059174, -0.05994582921266556, 0.3684246242046356, -0.046919483691453934, 0.15186281502246857, 0.17029757797718048, 0.054954588413238525, -0.4641091525554657, 0.2862648367881775, 0.02260320447385311, -0.18375396728515625, -0.20051199197769165, -0.2791652977466583, 0.12015792727470398, 0.019234495237469673, -0.14713667333126068, 0.0545244924724102, 0.14391624927520752, -0.10153552889823914, -0.06372836977243423, 0.5197239518165588, 0.4969882667064667, -0.6513738632202148, 0.34349051117897034, -0.3135574460029602, 0.13477830588817596, 0.2270345687866211, 0.2421966791152954, -0.2208394557237625, 0.5864219665527344, -0.20818324387073517, -0.4126339256763458, 0.2668759822845459, 0.0500163733959198, -0.06295116990804672, 0.29160770773887634, -0.12123921513557434, -0.3211035132408142, 0.06139250844717026, -0.20344652235507965, 0.33117568492889404, 0.37578412890434265, -0.15757474303245544, 0.16725532710552216, -0.13239338994026184, -0.17242971062660217, -0.313381552696228, -0.4422491192817688, 0.1823088824748993, 0.23325598239898682, 0.3950192928314209, 0.2591550946235657, -0.0004779921437148005, -0.49045729637145996, 0.08228357136249542, 0.07508138567209244, -0.030376210808753967, -0.037341952323913574, 0.173589289188385, 0.3226998746395111, -0.08713274449110031, -0.0504002720117569, -0.10069062560796738, 0.18448251485824585, -0.07689685374498367, 0.5632582902908325, -0.37066566944122314, 0.2933450937271118, 0.03152358904480934, -0.03848135098814964, -0.1228802353143692, 0.0736035481095314, 0.006431964226067066, -0.25156542658805847, 0.029792703688144684, 0.15202128887176514, -0.2159968763589859, 0.04006362706422806, 0.040139030665159225, 0.11421503126621246, -0.08143406361341476, 0.3241582214832306, -0.2643062174320221, -0.10235178470611572, -0.19395381212234497, -0.30514803528785706, 0.08105888962745667, -0.05740173161029816, -0.21488045156002045, 0.2094392031431198, -0.21240641176700592, -0.04329308494925499, 0.44408366084098816, 0.13992281258106232, 0.14076773822307587, -0.03123820759356022, 0.4789825677871704, 0.24908508360385895, 0.11854447424411774, 0.18449661135673523, -0.09861588478088379, 0.542445182800293, 0.06343743950128555, 0.4350108802318573, 0.004844277165830135, 0.2102130949497223, 0.32626691460609436, 0.13051621615886688, -0.07818494737148285, -0.20406273007392883, 0.2826857566833496, 0.5560103058815002, 0.08142425864934921, -0.2923344671726227, -0.1697801947593689, -0.1641298234462738, 0.09655647724866867, 0.1423976719379425, 0.2526114881038666, -0.22130626440048218, -0.08061780035495758, 0.15425826609134674, 0.12936484813690186, 0.1689741462469101, 0.22082245349884033, 0.09849980473518372, -0.24078693985939026, 0.3263256251811981, -0.1443658024072647, -0.2146844118833542, 0.2925771176815033, 0.3399423360824585, 0.3933574855327606, 0.016940340399742126, 0.04893333092331886, -0.23144537210464478, -0.3556242287158966, -0.22724097967147827, 0.09434887021780014, 0.25468772649765015, -0.06779162585735321, 0.36282333731651306, -0.5687305927276611, 0.11820843070745468, -0.14789341390132904, 0.02908247523009777, -0.7140899300575256, 0.19349506497383118, 0.0739194005727768, -0.11158902198076248, -0.13125373423099518, 0.2420380562543869, -0.07913274317979813, 0.3908625841140747, -0.11662808805704117, -0.15475721657276154, 0.11952444911003113, -0.29078686237335205, -0.3274572491645813, -0.061150386929512024, 0.2906639277935028, 0.11778946965932846, 0.3798549175262451, -0.04139115661382675, -0.2935427725315094, 0.17423316836357117, -0.23677276074886322, 0.0490829199552536, 0.18828721344470978, 0.10585910826921463, 0.16788610816001892, 0.33479541540145874, -0.11217953264713287, 0.2350146770477295, 0.49162980914115906, -0.2610316276550293, 0.22564570605754852, -0.16429395973682404, -0.168124258518219, 0.1103273555636406, -0.18717116117477417, -0.38006189465522766, -0.4347549080848694, -0.14565438032150269, 0.25354528427124023, 0.3769817650318146, 0.16900727152824402, -0.05151750519871712, 0.43200719356536865, -0.11715658009052277, -0.20626945793628693, 0.154619500041008, 0.1036776751279831, -0.701668918132782, 0.2701808512210846, 0.034740548580884933, -0.2287966012954712, 0.2957940399646759, 0.17565086483955383, -0.0413082093000412, -0.1743878275156021, -0.5842974185943604, -0.013588948175311089, 0.25187039375305176, 0.13866585493087769, 0.15207037329673767, 0.09823027998209, 0.49518102407455444, -0.12660960853099823, 0.06809230893850327, -0.09096526354551315, -0.09516922384500504, 0.18547776341438293, -0.1201188787817955, 0.11452730000019073, -0.05711571127176285, 0.7429929971694946, -0.03561486303806305, 0.2881915271282196, -0.39349743723869324, 0.0458829328417778, 0.1955244392156601, -0.02192971482872963, 0.36477524042129517, -0.21712732315063477, -0.07753153145313263, -0.042231153696775436, -0.020811419934034348, -0.7154505848884583, 0.17659778892993927, 0.05695607513189316, -0.0636512041091919, -0.49524933099746704, 0.07712644338607788, 0.0867151990532875, -0.13230372965335846, 0.08278324455022812, 0.14210474491119385, 0.2872105836868286, 0.32124432921409607, 0.17482134699821472, -0.2716972827911377, 0.16779467463493347, 0.08964058011770248, 0.23228225111961365, 0.00982470903545618, 0.09073426574468613, -0.4119897484779358, -0.2953495681285858, 0.16114848852157593, 0.07007860392332077, -0.1605788618326187, 0.27108290791511536, -0.09384307265281677, 0.038630176335573196, 0.27718156576156616, -0.04494236782193184, 0.2524915635585785, -0.13910958170890808, -0.03809162229299545, 0.06028859689831734, -0.03531229496002197, -0.21768997609615326, -0.34493783116340637, 0.11839915066957474, 0.020013779401779175, 0.3473464846611023, 0.18504619598388672, 0.06767292320728302, 0.0962410718202591, 0.06828711926937103, 0.13524071872234344, -0.3547174632549286, -0.15493930876255035, -0.6495376825332642, -0.09560274332761765, -0.3129655420780182, 0.014558043330907822, -0.3000567853450775, -0.10787197947502136, -0.03517378494143486, 0.16793401539325714, 0.09002344310283661, 0.28151512145996094, -0.32344740629196167, 0.2786957621574402, 0.0911790058016777, -0.3535846471786499, -0.07314164191484451, 0.30055543780326843, 0.3768797516822815, 0.32579532265663147, 0.20441651344299316, -0.41175445914268494, 0.11526943743228912, 0.12144581228494644, -0.020198125392198563, 0.06884845346212387, 0.32748863101005554, -0.07728371769189835, -0.36510181427001953, 0.5494982004165649, 0.2760516405105591, -0.0480094850063324, -0.14429901540279388, -0.01864122413098812, -0.1724538952112198, 0.21756716072559357, -0.3638169765472412, 0.3758825957775116, -0.16246867179870605, 0.15532660484313965, -0.49260011315345764, 0.15203994512557983, -0.010199891403317451, 0.44266724586486816, 0.06946218758821487, 1.0599322319030762, 0.022853640839457512, 0.1284063309431076, 0.004717190284281969, -0.09448347985744476, 0.4703821539878845, -0.5697625279426575, 0.23204758763313293, -0.053957656025886536, 0.06948541104793549, -0.05717619135975838, -0.0019678231328725815, 0.37329673767089844, 0.293067067861557, -0.04844428971409798, 0.31986311078071594, -0.11001639068126678, 0.20094811916351318, -0.023304510861635208, -0.23442083597183228, 0.3120013177394867, -0.26534032821655273, -0.9842763543128967, 0.04830700159072876, 0.192552849650383, 0.06278528273105621, -0.42231327295303345, -0.2704302668571472, 0.12384925782680511, 0.05860490724444389, -0.0010956936748698354, -0.1663840115070343, -0.3592170476913452, 0.052413515746593475, -0.16389437019824982, 0.0338292270898819, -0.17585457861423492, 0.07360844314098358, 0.3699014484882355, 0.191572904586792, -0.19558997452259064, -0.0991084948182106, 0.021502304822206497, -0.349521279335022, -0.11592094600200653, 0.2825847566127777, -0.07249248772859573, -0.29288020730018616, -0.28651702404022217, -0.20550841093063354, -0.26019129157066345, -0.006637054029852152, 0.3399692475795746, -0.2427627295255661, 0.14768505096435547, 0.1373732089996338, 0.07448957860469818, -0.0076545365154743195, 0.2890256345272064, -0.10795383900403976, 0.04150070250034332, 0.10841111838817596, -0.10262314230203629, 0.2344985157251358, 0.15010033547878265, -0.07398876547813416, -0.22787722945213318, 0.3479825556278229, -0.042665619403123856, 0.2574881613254547, 0.2616276144981384, 0.3537602424621582, -0.20055213570594788, -0.21209050714969635, 0.26224052906036377, -0.318527489900589, -0.3099796175956726, 0.20887300372123718, 0.14581355452537537, 0.12541164457798004, -0.15612071752548218, -0.01937934011220932, 0.30103349685668945, -0.12321621924638748, -0.16362425684928894, -0.4854910671710968, -0.5012037754058838, 0.10141929239034653, 0.0857825055718422, -0.2803421914577484, 0.2758430540561676, 0.14054296910762787, 0.3010767996311188, -0.09948037564754486, -0.16975924372673035, 0.08914140611886978, -0.1296376734972, 0.05470745265483856, 0.25399768352508545, -0.059935785830020905, 0.21033281087875366, 0.15262655913829803, -0.02536625787615776, -0.00542360357940197, -0.141876220703125, -0.09563196450471878, 0.008754037320613861, 0.25179219245910645, 0.18560364842414856, -0.474793940782547, -0.1154046356678009, -0.48138192296028137, -0.41807645559310913, 0.05287965014576912, -0.15776751935482025, -0.00887288711965084, 0.03653022274374962, -0.17166443169116974, 0.25725457072257996, 0.20176951587200165, -0.4307260513305664, 0.03970026969909668, 0.004972635768353939, 0.3044845759868622, 0.18152765929698944, -0.1100684255361557, 0.15268442034721375, 0.003295862814411521, 0.017178891226649284, -0.10922547429800034, -0.15701548755168915, 0.17873027920722961, 0.7193292379379272, -0.3075021207332611, 0.3063840866088867, 0.19317694008350372, 0.23084656894207, 0.30151093006134033, 0.18034470081329346, -0.053685806691646576, 0.4138595461845398, 0.07025463879108429, -0.488284170627594, 0.00694695208221674, 0.17693112790584564, 0.047249261289834976, 0.010485890321433544, 0.1354900598526001, 0.2199316918849945, 0.05529144033789635, -0.17203998565673828, 0.2299410104751587, 0.2734174132347107, -0.03377257660031319, 0.031966935843229294, -0.016645869240164757, -0.0856805369257927, 0.22497327625751495, -0.16288889944553375, 0.008539678528904915, 0.04743267595767975, 0.3475341796875, -0.17183992266654968, 0.04067040607333183, 0.08257244527339935, -0.1506282538175583, -0.004627962596714497, -0.29096975922584534, 0.06629104912281036, 0.2990261912345886, 0.35140541195869446, -0.10131923109292984, -0.43931975960731506, 0.22470252215862274, -0.2592659592628479, -0.16474145650863647, -0.24746093153953552, 0.18163403868675232, -0.026035994291305542, 0.055425796657800674, -0.4503200352191925, -0.16862376034259796, -0.0023025735281407833, 0.2909688949584961, 0.23730799555778503, 0.11730454117059708, 0.16438645124435425, 0.3563942015171051, -0.14178921282291412, -0.32378101348876953, -0.45958417654037476, 0.1912473738193512, -0.06139542907476425, -0.02222641557455063, 0.042274847626686096, 0.4373605251312256, -0.2647351920604706, -0.11466428637504578, 0.06416773051023483, 0.2666686475276947, 0.12267270684242249, -0.1760978102684021, 0.0033136801794171333, 0.005031643435359001, 0.0997147262096405, -0.1578691154718399, -0.17104093730449677, 0.41750863194465637, 0.48181089758872986, -0.08374489098787308, -0.05134802311658859, -0.03970511630177498, 0.613924503326416, -0.18125125765800476, 0.1471344232559204, -0.005205248016864061, 0.1477610170841217, 0.23926196992397308, -0.20178504288196564, -0.3352894186973572, -0.12340817600488663, -0.2997220456600189, 0.2940623462200165, 0.44733595848083496, 0.029534414410591125, -0.12199002504348755, -0.14942654967308044, -0.02333728037774563, -0.157922625541687, 0.7504982948303223, 0.19711722433567047, 0.04823825880885124, -0.21237348020076752, -0.1313580870628357, -0.2958158254623413, -0.18189850449562073, -0.36050790548324585, 0.03532731533050537, -0.07972978055477142, 0.05014187842607498, 0.38830816745758057, 0.20886768400669098, 0.21886247396469116, -0.24281910061836243, -0.04234018176794052, 0.17098115384578705, -0.12176771461963654, -0.026069769635796547, -0.3417569100856781, 0.225714311003685, 0.003664593677967787, -0.24110053479671478, 0.11201521009206772, -0.24784007668495178, -0.05127034708857536, -0.058782245963811874, -0.0926593467593193, -0.318901002407074, 0.24737054109573364, 0.3093873858451843, 0.12698954343795776, 0.40913712978363037, 0.3795034885406494, -0.26975390315055847, -0.25584641098976135, 0.23803621530532837, -0.214943528175354, 0.12118839472532272, 0.22409260272979736, 0.340770959854126, -0.2189384549856186, 0.0882968157529831, -0.4573327898979187, 0.19090884923934937, 0.14789074659347534, -0.10578617453575134, -0.2481839954853058, -0.3945685029029846, 0.24609710276126862, 0.034381382167339325, 0.149189293384552, 0.05014169588685036, 0.11053494364023209, 0.01701403222978115, -0.5854980945587158, 0.19513429701328278, 0.4119100868701935, -0.2618516683578491, -0.1984441578388214, -0.5416539907455444, 0.15604931116104126, -0.002372100716456771, 0.15550094842910767, -0.6582352519035339, -0.025205139070749283, 0.12952828407287598, 0.04511026293039322, -0.08927106857299805, 0.18910947442054749, 0.18306919932365417, -0.05694533884525299, -0.027693824842572212, 0.1851198971271515, -0.39977383613586426, -0.3908599615097046, -0.42782169580459595, -0.08411785960197449 ]
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: ![image](https://user-images.githubusercontent.com/49967236/104276256-25a88600-546a-11eb-9776-8ec695dfa24e.png) 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: ![image](https://user-images.githubusercontent.com/49967236/104276256-25a88600-546a-11eb-9776-8ec695dfa24e.png) 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.07060008496046066, 0.08184191584587097, -0.06738726049661636, 0.34848976135253906, 0.36553308367729187, -0.0059060524217784405, 0.41930273175239563, 0.29427188634872437, -0.14892569184303284, 0.07161758095026016, 0.22947894036769867, 0.15837135910987854, -0.2269313484430313, 0.17349934577941895, -0.037111200392246246, -0.3469003736972809, -0.039455339312553406, 0.17744827270507812, -0.1939219981431961, -0.25783222913742065, 0.09907202422618866, -0.061965782195329666, -0.08073709905147552, 0.22306501865386963, -0.1615166962146759, -0.4670542776584625, 0.027667200192809105, 0.18421386182308197, -0.5382241010665894, -0.17008374631404877, 0.16586579382419586, -0.2837142050266266, 0.43755120038986206, 0.2521187663078308, -0.0001213945506606251, 0.12778842449188232, -0.02480732835829258, -0.15005424618721008, -0.21176709234714508, -0.21673206984996796, 0.25220823287963867, -0.21248088777065277, 0.2840506136417389, -0.34078431129455566, 0.1697346419095993, 0.17420615255832672, 0.07568967342376709, -0.19665193557739258, 0.16078956425189972, 0.25451263785362244, 0.10274269431829453, 0.34566599130630493, -0.0017496943473815918, -0.04268443584442139, -0.1672261506319046, -0.06222386658191681, -0.25512465834617615, 0.3821849226951599, -0.2034250795841217, -0.2088378667831421, 0.3286895751953125, 0.1911965012550354, -0.3957902491092682, 0.2868015170097351, 0.04462743550539017, 0.000041731647797860205, 0.3129136264324188, -0.2795213758945465, 0.32386213541030884, 0.3837929964065552, 0.09836477786302567, 0.14570680260658264, -0.05039524286985397, -0.09339029341936111, 0.09467913955450058, -0.3246627151966095, 0.1679435670375824, 0.482340008020401, -0.2290005087852478, 0.3012806475162506, -0.39650672674179077, -0.24334530532360077, -0.2756936252117157, 0.14333005249500275, 0.07315210998058319, 0.40215468406677246, -0.11458306759595871, 0.09039843827486038, -0.028576940298080444, 0.039334021508693695, -0.14204327762126923, -0.1136842593550682, 0.0838162750005722, -0.0864124521613121, -0.003615997266024351, 0.1033836156129837, -0.03194836527109146, 0.43325406312942505, -0.11960209161043167, 0.1626172810792923, 0.10861772298812866, -0.1116887629032135, 0.11942137032747269, 0.08742965012788773, 0.029407085850834846, 0.22106041014194489, -0.15835924446582794, -0.07854225486516953, 0.3308573365211487, 0.36419612169265747, -0.22702692449092865, -0.11020497232675552, -0.14998236298561096, -0.026156460866332054, -0.34989815950393677, -0.10139773041009903, 0.1574402004480362, -0.22327512502670288, 0.13267798721790314, -0.029115812852978706, -0.12864959239959717, 0.040270861238241196, -0.00500599155202508, 0.2086392194032669, -0.2704688608646393, -0.04780345410108566, 0.020017441362142563, 0.13025642931461334, -0.28419259190559387, -0.5011146068572998, 0.15869438648223877, -0.10972954332828522, -0.16844899952411652, -0.0036694398149847984, 0.14572235941886902, -0.14741511642932892, 0.34157419204711914, -0.2266688495874405, 0.22930409014225006, -0.11615865677595139, 0.2034098505973816, -0.3967210054397583, 0.16686558723449707, 0.45414504408836365, 0.13402073085308075, -0.05591960623860359, 0.3632279932498932, -0.04357853904366493, 0.14273525774478912, 0.17526750266551971, 0.056850071996450424, -0.46208256483078003, 0.29757022857666016, 0.024398425593972206, -0.1721847653388977, -0.2028438299894333, -0.26063552498817444, 0.12292910367250443, 0.019639456644654274, -0.16367273032665253, 0.054811157286167145, 0.14660727977752686, -0.10686788707971573, -0.07568802684545517, 0.5186444520950317, 0.5003826022148132, -0.6551418900489807, 0.3357146680355072, -0.31090041995048523, 0.12951253354549408, 0.2178945392370224, 0.23542420566082, -0.2067967802286148, 0.5655162334442139, -0.2079126089811325, -0.42689186334609985, 0.2711893320083618, 0.0439608208835125, -0.07325538992881775, 0.28407254815101624, -0.1325540691614151, -0.31944653391838074, 0.07354182004928589, -0.19861261546611786, 0.32781243324279785, 0.3712579905986786, -0.17275355756282806, 0.15635009109973907, -0.13457243144512177, -0.17394007742404938, -0.3187617361545563, -0.44107988476753235, 0.18349824845790863, 0.2193382829427719, 0.394084095954895, 0.266560822725296, 0.00748013099655509, -0.4645364582538605, 0.09094773232936859, 0.09136597067117691, -0.03805343061685562, -0.036485567688941956, 0.17783428728580475, 0.33477911353111267, -0.08728960901498795, -0.051835544407367706, -0.1034802570939064, 0.1783381551504135, -0.06639818102121353, 0.5493108034133911, -0.35020849108695984, 0.2871764302253723, 0.024194130674004555, -0.04075038060545921, -0.11216992884874344, 0.07319429516792297, 0.005238343495875597, -0.25018298625946045, 0.0480814054608345, 0.15265300869941711, -0.2161729484796524, 0.05414431914687157, 0.042806729674339294, 0.11167282611131668, -0.089042529463768, 0.32690903544425964, -0.2754416763782501, -0.1051764264702797, -0.18786433339118958, -0.30955660343170166, 0.08901912719011307, -0.05655840039253235, -0.21266447007656097, 0.20832964777946472, -0.20541222393512726, -0.04813000187277794, 0.4253845512866974, 0.1450350433588028, 0.13701540231704712, -0.017995251342654228, 0.48207318782806396, 0.260534405708313, 0.11789441108703613, 0.18727995455265045, -0.08230392634868622, 0.5436934232711792, 0.06771031767129898, 0.4257638454437256, 0.018265021964907646, 0.21276786923408508, 0.32301270961761475, 0.13547708094120026, -0.06748762726783752, -0.21297003328800201, 0.27419087290763855, 0.5513845682144165, 0.09166570007801056, -0.3043956160545349, -0.17124590277671814, -0.15302497148513794, 0.1117720827460289, 0.13627979159355164, 0.2543840706348419, -0.22061556577682495, -0.08681629598140717, 0.15204249322414398, 0.11271864920854568, 0.17533521354198456, 0.22322525084018707, 0.09894488006830215, -0.2311035543680191, 0.34217092394828796, -0.12968415021896362, -0.2052716612815857, 0.2963407635688782, 0.34063807129859924, 0.3999180197715759, 0.0022240453399717808, 0.0476665273308754, -0.22820906341075897, -0.33989641070365906, -0.21502314507961273, 0.09606924653053284, 0.2548365890979767, -0.07187896966934204, 0.3595646619796753, -0.5689228773117065, 0.12253394722938538, -0.1531619429588318, 0.02716250717639923, -0.7147390842437744, 0.19709531962871552, 0.07181835919618607, -0.09032148122787476, -0.11703815311193466, 0.2428571730852127, -0.07877970486879349, 0.37325188517570496, -0.11719518154859543, -0.14909259974956512, 0.12662158906459808, -0.28358814120292664, -0.33159229159355164, -0.05915515869855881, 0.2754870653152466, 0.107123464345932, 0.37863078713417053, -0.04680677503347397, -0.2891300320625305, 0.17163074016571045, -0.2428635209798813, 0.04211966693401337, 0.18956495821475983, 0.10237422585487366, 0.17736221849918365, 0.33913007378578186, -0.1183864176273346, 0.24227802455425262, 0.4870123863220215, -0.28770071268081665, 0.20761536061763763, -0.17388348281383514, -0.1704435795545578, 0.11787267029285431, -0.17923322319984436, -0.3962235450744629, -0.4508720934391022, -0.15110443532466888, 0.2607576251029968, 0.37160637974739075, 0.17263077199459076, -0.040032148361206055, 0.42054811120033264, -0.11834046989679337, -0.20451988279819489, 0.1578620821237564, 0.09937769174575806, -0.6965703964233398, 0.2649092376232147, 0.04032096639275551, -0.23314273357391357, 0.30887556076049805, 0.17262563109397888, -0.05311641842126846, -0.18186236917972565, -0.5868797898292542, -0.021421456709504128, 0.25613948702812195, 0.14775554835796356, 0.14912079274654388, 0.0979863628745079, 0.5046488046646118, -0.123177669942379, 0.0652974471449852, -0.08950479328632355, -0.0938141793012619, 0.17842136323451996, -0.12067367881536484, 0.10799024999141693, -0.05657172575592995, 0.7600347995758057, -0.032836854457855225, 0.2919984757900238, -0.3816136121749878, 0.04865824431180954, 0.1910073459148407, -0.022488228976726532, 0.36836153268814087, -0.21885089576244354, -0.07789041846990585, -0.05681175738573074, -0.030396440997719765, -0.7145963311195374, 0.17752932012081146, 0.05911539867520332, -0.06278318911790848, -0.4945371747016907, 0.05944662541151047, 0.07917598634958267, -0.12800411880016327, 0.07861486822366714, 0.1506466418504715, 0.28307896852493286, 0.3220365643501282, 0.16926467418670654, -0.27065062522888184, 0.16407574713230133, 0.08382643759250641, 0.2446201741695404, 0.007387714926153421, 0.10240918397903442, -0.4074575901031494, -0.29344847798347473, 0.16930043697357178, 0.077125683426857, -0.1476093977689743, 0.27682560682296753, -0.09258424490690231, 0.03614138439297676, 0.2758321464061737, -0.04374588653445244, 0.2513381540775299, -0.1297474056482315, -0.02515409141778946, 0.06293833255767822, -0.049212828278541565, -0.20244115591049194, -0.34321728348731995, 0.10950831323862076, 0.017467569559812546, 0.363153338432312, 0.1710251122713089, 0.06963438540697098, 0.0981343612074852, 0.06424213945865631, 0.14484146237373352, -0.35548946261405945, -0.14859674870967865, -0.6650862693786621, -0.09097587317228317, -0.3191147446632385, 0.014842076227068901, -0.28761959075927734, -0.10672947764396667, -0.037826377898454666, 0.16997534036636353, 0.09271283447742462, 0.27277761697769165, -0.3351677358150482, 0.2794821858406067, 0.09891164302825928, -0.34887513518333435, -0.06904193758964539, 0.2968815267086029, 0.37517666816711426, 0.32030391693115234, 0.2065785527229309, -0.4071086347103119, 0.11509106308221817, 0.11515753716230392, -0.0066588399931788445, 0.07058838754892349, 0.3163332939147949, -0.08446629345417023, -0.351790189743042, 0.5517026782035828, 0.27745234966278076, -0.03880392387509346, -0.16167281568050385, -0.025816883891820908, -0.1697947233915329, 0.21100081503391266, -0.3693971633911133, 0.37058305740356445, -0.15263889729976654, 0.15218310058116913, -0.48623842000961304, 0.15421803295612335, -0.004506710916757584, 0.4191432595252991, 0.05223904922604561, 1.0550307035446167, 0.02579963393509388, 0.1309542953968048, 0.005135022569447756, -0.10594572871923447, 0.47935599088668823, -0.5588304400444031, 0.23746217787265778, -0.0598277822136879, 0.05120587721467018, -0.0542149618268013, -0.0002919921826105565, 0.3729056715965271, 0.28976383805274963, -0.06629958003759384, 0.3334059715270996, -0.10742247849702835, 0.19652040302753448, -0.024539876729249954, -0.22881105542182922, 0.3103705644607544, -0.2573017477989197, -1.0110770463943481, 0.04811280593276024, 0.20087844133377075, 0.06858257949352264, -0.4254419505596161, -0.2625386118888855, 0.1260497272014618, 0.05178514122962952, -0.003778902580961585, -0.171861931681633, -0.37107914686203003, 0.06073133647441864, -0.15980197489261627, 0.040076784789562225, -0.181150421500206, 0.06833123415708542, 0.3599056005477905, 0.19489280879497528, -0.18126824498176575, -0.1069084107875824, 0.026983069255948067, -0.3582988679409027, -0.11355152726173401, 0.29854312539100647, -0.06037871167063713, -0.30181363224983215, -0.29276055097579956, -0.19947609305381775, -0.26347750425338745, -0.002765200100839138, 0.34102484583854675, -0.2400842308998108, 0.1370643675327301, 0.14346949756145477, 0.07436709851026535, -0.00867051724344492, 0.28095775842666626, -0.11254648119211197, 0.04092235118150711, 0.1026950478553772, -0.10810989886522293, 0.2284509241580963, 0.1589972823858261, -0.07879721373319626, -0.22423484921455383, 0.3580930829048157, -0.04334278032183647, 0.26582854986190796, 0.2737147808074951, 0.3521726727485657, -0.2044050097465515, -0.21405479311943054, 0.271183043718338, -0.32275277376174927, -0.30328232049942017, 0.21435262262821198, 0.1450778692960739, 0.1296999752521515, -0.15169702470302582, -0.01949448697268963, 0.3032153248786926, -0.11524751037359238, -0.1638212352991104, -0.4914748966693878, -0.5047600865364075, 0.103902667760849, 0.08342453837394714, -0.294182687997818, 0.2828805148601532, 0.1400383561849594, 0.3092043399810791, -0.09381764382123947, -0.17202375829219818, 0.0793830081820488, -0.1266283094882965, 0.052220508456230164, 0.2538008689880371, -0.07009413838386536, 0.2072627693414688, 0.15040895342826843, -0.02507382445037365, -0.007144432980567217, -0.14298281073570251, -0.09629373997449875, 0.01380074117332697, 0.25270602107048035, 0.1756492257118225, -0.470689982175827, -0.12299501150846481, -0.46903279423713684, -0.41694176197052, 0.057868584990501404, -0.16292297840118408, -0.0034409970976412296, 0.05618998408317566, -0.16885679960250854, 0.2602783143520355, 0.20261250436306, -0.4410691559314728, 0.04013030603528023, -0.0016460181213915348, 0.30586960911750793, 0.17664718627929688, -0.11000769585371017, 0.1643211394548416, 0.00534464418888092, -0.0037490492686629295, -0.1174778863787651, -0.14871174097061157, 0.1736081838607788, 0.7176589965820312, -0.3057674169540405, 0.29964086413383484, 0.19407011568546295, 0.22468461096286774, 0.2971045672893524, 0.1905905157327652, -0.05415843799710274, 0.41237977147102356, 0.07041265070438385, -0.4994434714317322, 0.012596056796610355, 0.18367266654968262, 0.04844222217798233, 0.012150759808719158, 0.14100675284862518, 0.20819400250911713, 0.05720149353146553, -0.1602872610092163, 0.2355942577123642, 0.2667347490787506, -0.0423884317278862, 0.04782382398843765, -0.005551606882363558, -0.07023625075817108, 0.22599153220653534, -0.16069155931472778, 0.012424956075847149, 0.035801518708467484, 0.33689969778060913, -0.1761815845966339, 0.04266520217061043, 0.08807212114334106, -0.15174122154712677, -0.000007090183771651937, -0.28700941801071167, 0.04928840696811676, 0.2996184825897217, 0.348785936832428, -0.09954296052455902, -0.44061869382858276, 0.20841974020004272, -0.26265883445739746, -0.165848046541214, -0.24557146430015564, 0.17646414041519165, -0.030663462355732918, 0.05247059836983681, -0.4268799424171448, -0.15893520414829254, -0.006081298924982548, 0.2915116250514984, 0.23970797657966614, 0.11187130957841873, 0.16912944614887238, 0.3600481450557709, -0.1350092738866806, -0.3335420787334442, -0.4597848951816559, 0.1924862265586853, -0.05447271466255188, -0.02433629333972931, 0.04183182865381241, 0.43905097246170044, -0.2516792118549347, -0.11133570969104767, 0.06509535759687424, 0.26306018233299255, 0.1216089278459549, -0.17371973395347595, 0.010897674597799778, 0.009825281798839569, 0.09507564455270767, -0.14982499182224274, -0.17643359303474426, 0.41725820302963257, 0.48481109738349915, -0.09078502655029297, -0.05145388841629028, -0.03667676821351051, 0.6268964409828186, -0.1798519492149353, 0.13801537454128265, -0.017595479264855385, 0.15843269228935242, 0.23347048461437225, -0.20391835272312164, -0.33645644783973694, -0.10632851719856262, -0.3092361092567444, 0.3028317987918854, 0.44667884707450867, 0.02317957580089569, -0.12343708425760269, -0.14738239347934723, -0.02287391386926174, -0.15048444271087646, 0.7381178140640259, 0.19739003479480743, 0.05205933377146721, -0.20328104496002197, -0.12009277194738388, -0.29821357131004333, -0.18743889033794403, -0.3620198667049408, 0.033789340406656265, -0.08238022029399872, 0.050546225160360336, 0.38197848200798035, 0.21844281256198883, 0.23135097324848175, -0.2517598271369934, -0.049650926142930984, 0.17278382182121277, -0.1262926161289215, -0.03470379486680031, -0.3399159014225006, 0.2288375198841095, 0.004691021051257849, -0.23961986601352692, 0.10629484802484512, -0.25553736090660095, -0.05176537483930588, -0.06678076833486557, -0.09105494618415833, -0.3211207687854767, 0.26611563563346863, 0.3059481382369995, 0.12870849668979645, 0.40716004371643066, 0.38069117069244385, -0.27518850564956665, -0.259237676858902, 0.23454682528972626, -0.22055868804454803, 0.13603085279464722, 0.22047513723373413, 0.3391208350658417, -0.21499550342559814, 0.08690250664949417, -0.45551156997680664, 0.19788941740989685, 0.1485186070203781, -0.10883869230747223, -0.23961016535758972, -0.39074838161468506, 0.25673654675483704, 0.0355462022125721, 0.15163294970989227, 0.05205913633108139, 0.10542993247509003, 0.02144508995115757, -0.589558482170105, 0.18796227872371674, 0.403672456741333, -0.2699081599712372, -0.1935710310935974, -0.5413036346435547, 0.16405442357063293, -0.00486554903909564, 0.15076707303524017, -0.6646757125854492, -0.017838312312960625, 0.13822954893112183, 0.04616380110383034, -0.08582157641649246, 0.1881660670042038, 0.17737777531147003, -0.062231920659542084, -0.026746924966573715, 0.2104135900735855, -0.4070436954498291, -0.3941551148891449, -0.42298203706741333, -0.08877695351839066 ]
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.19303973019123077, 0.12105359137058258, 0.05009523034095764, 0.1900940090417862, 0.007696408312767744, 0.036920804530382156, -0.016854621469974518, 0.230349600315094, 0.016732875257730484, -0.10844355076551437, 0.10299794375896454, 0.4139721691608429, 0.22491168975830078, -0.11172354966402054, -0.0011101675918325782, 0.24461309611797333, 0.30746155977249146, 0.3216938376426697, -0.15340007841587067, -0.20887596905231476, -0.2891753613948822, 0.1171131432056427, -0.3328206539154053, -0.09242883324623108, -0.4170508086681366, 0.21232815086841583, -0.01687738299369812, -0.4208398163318634, 0.11226102709770203, -0.2555868923664093, 0.31771525740623474, 0.08582885563373566, 0.1992190182209015, 0.5570233464241028, -0.00012582034105435014, -0.2676018178462982, 0.35409557819366455, -0.06947381794452667, -0.20524652302265167, 0.07682114094495773, -0.2844763696193695, 0.03804450482130051, -0.11269354075193405, 0.023366780951619148, 0.05843912065029144, 0.05870900675654411, 0.03796575218439102, -0.651489794254303, 0.3060208261013031, 0.16291067004203796, 0.10259272158145905, 0.03327663615345955, -0.0953422263264656, 0.23458071053028107, 0.05020353943109512, -0.012024977244436741, -0.03874331712722778, -0.3330446481704712, 0.16303810477256775, -0.35232001543045044, 0.062147341668605804, 0.5163406133651733, -0.17574386298656464, -0.14190331101417542, 0.38706666231155396, -0.011780300177633762, 0.017935479059815407, -0.26469945907592773, 0.30206117033958435, -0.06447049975395203, 0.5929009318351746, -0.37321269512176514, -0.44535815715789795, -0.22181451320648193, -0.21839658915996552, -0.1797122061252594, 0.3478952944278717, -0.28142228722572327, 0.11512474715709686, 0.13677744567394257, -0.5952906608581543, -0.3717098534107208, 0.2665029466152191, 0.12685056030750275, -0.01260343100875616, 0.11883042752742767, -0.044264815747737885, 0.1275973916053772, -0.2583602964878082, 0.030563021078705788, 0.27869293093681335, -0.5107079744338989, -0.020412225276231766, 0.4761812090873718, -0.4573768079280853, -0.11419951170682907, -0.08139645308256149, 0.04445686191320419, 0.031320422887802124, 0.2521776556968689, -0.10787035524845123, 0.08482912182807922, -0.10457468777894974, -0.0248277448117733, 0.1717996895313263, 0.3819054365158081, 0.1599486917257309, 0.39592838287353516, -0.04663252830505371, -0.2572211027145386, -0.4361523687839508, -0.14235122501850128, 0.10150948166847229, 0.0623168870806694, 0.5376326441764832, 0.02919928915798664, -0.26707160472869873, -0.15271909534931183, 0.13509275019168854, 0.11047417670488358, -0.11315091699361801, -0.15427255630493164, 0.02068694867193699, 0.18612311780452728, -0.2187199592590332, 0.5657739043235779, -0.04890294745564461, 0.011322748847305775, -0.22690710425376892, -0.07549546658992767, -0.2520526945590973, -0.19494126737117767, -0.27974095940589905, 0.42401155829429626, 0.10798024386167526, -0.008758087642490864, 0.19316472113132477, 0.11374605447053909, 0.14129090309143066, -0.24853108823299408, 0.24508054554462433, -0.19523505866527557, 0.14468862116336823, 0.03134084492921829, -0.12242688983678818, 0.5588545203208923, 0.023827478289604187, 0.08207148313522339, -0.05783001706004143, 0.27935072779655457, -0.3909233510494232, -0.0032500524539500475, 0.2678493857383728, 0.07660143822431564, -0.10498792678117752, -0.051326628774404526, -0.13654571771621704, -0.047727588564157486, 0.6230668425559998, -0.35340210795402527, 0.0028585020918399096, -0.13695408403873444, -0.21816031634807587, -0.35522353649139404, 0.19640220701694489, 0.4151434600353241, -0.2202998548746109, -0.12714450061321259, -0.28924858570098877, 0.426225483417511, 0.34562963247299194, 0.19041231274604797, -0.09975980967283249, 0.22389723360538483, -0.24362346529960632, 0.25334683060646057, 0.3463950753211975, -0.3264118731021881, -0.7522772550582886, -0.06231728941202164, 0.23955361545085907, 0.21382352709770203, -0.2641489505767822, 0.009117872454226017, 0.05857640877366066, 0.022013159468770027, -0.04730687662959099, 0.12475962191820145, 0.07109547406435013, 0.04794073849916458, -0.19342058897018433, -0.32378387451171875, 0.3307865262031555, -0.15344908833503723, 0.37343546748161316, 0.2039111852645874, -0.27863258123397827, -0.06542805582284927, 0.18977905809879303, -0.07331205159425735, 0.20456774532794952, 0.21111206710338593, 0.08593940734863281, 0.09632904827594757, 0.3425366282463074, -0.14452601969242096, -0.2208445817232132, 0.23615960776805878, -0.007498647551983595, -0.40805086493492126, 0.05238057300448418, -0.06938178837299347, 0.03421018645167351, -0.175143763422966, -0.23687277734279633, -0.25076767802238464, 0.04695954918861389, 0.2982925772666931, 0.21583321690559387, 0.049326181411743164, -0.06285553425550461, 0.4346974194049835, 0.22479590773582458, -0.04744863137602806, -0.13699758052825928, 0.23143866658210754, 0.13785360753536224, -0.07235319167375565, -0.2622562646865845, -0.00778931612148881, 0.3865087926387787, 0.20507778227329254, -0.17280897498130798, 0.19992296397686005, 0.2821436822414398, 0.1305399239063263, -0.15808667242527008, 0.03777472674846649, -0.09649782627820969, 0.07604570686817169, -0.1803533136844635, 0.018961267545819283, 0.09124242514371872, -0.20247383415699005, 0.33897078037261963, -0.09822407364845276, 0.04353908449411392, 0.17285247147083282, -0.17387163639068604, -0.11649678647518158, -0.019416239112615585, -0.0575413778424263, 0.1215716078877449, -0.2605114281177521, -0.12677477300167084, -0.10074332356452942, 0.401877224445343, 0.14800004661083221, 0.31708675622940063, 0.143103688955307, 0.5319448709487915, 0.16380399465560913, 0.07024995237588882, -0.0754965990781784, -0.5950475931167603, -0.15330524742603302, 0.04206778481602669, 0.10673371702432632, 0.4031670391559601, 0.014067539013922215, 0.13723479211330414, -0.1065349131822586, 0.1262340545654297, 0.053673528134822845, 0.08399113267660141, 0.05157450959086418, 0.0034556027967482805, 0.16232971847057343, 0.08191739767789841, 0.12391875684261322, -0.15448541939258575, 0.3739548623561859, 0.2223702222108841, 0.02240816131234169, -0.12013319879770279, -0.00478295749053359, -0.4614659547805786, 0.261646568775177, -0.009416875429451466, -0.1877424418926239, -0.10895342379808426, -0.324039489030838, -0.029372170567512512, 0.1750340610742569, 0.2323509305715561, 0.17026571929454803, -0.10677231103181839, 0.16378827393054962, -0.09658548980951309, -0.06340805441141129, -0.2861727774143219, -0.044225990772247314, -0.35160255432128906, -0.10436893999576569, 0.027629343792796135, -0.33324286341667175, 0.10926838964223862, -0.19780008494853973, 0.0448768176138401, -0.33049559593200684, -0.24961456656455994, 0.06872592121362686, 0.14242184162139893, -0.19136133790016174, -0.1454962193965912, -0.13314539194107056, -0.34062281250953674, -0.07776247709989548, 0.10528567433357239, -0.37550318241119385, -0.05899621918797493, -0.19424261152744293, 0.2268970012664795, -0.0732838585972786, 0.06139051169157028, -0.09878186881542206, 0.04506326839327812, 0.05235729739069939, -0.09228051453828812, -0.12052027136087418, -0.0991954654455185, -0.10735233873128891, -0.17789514362812042, -0.14736923575401306, -0.2940424978733063, -0.12250339984893799, -0.5240328907966614, -0.299807071685791, 0.5365321040153503, -0.12470094859600067, -0.07930242270231247, -0.10533624142408371, -0.029494427144527435, 0.30539819598197937, 0.4665095806121826, -0.5257645845413208, -0.06458020210266113, -0.20277529954910278, -0.18987318873405457, -0.14755605161190033, 0.304158478975296, 0.39526307582855225, 0.1911337524652481, 0.12846551835536957, -0.42857128381729126, -0.20330052077770233, 0.02070465125143528, 0.001100255991332233, 0.4422146677970886, -0.03273020684719086, 0.20218324661254883, -0.08188968896865845, 0.8030891418457031, 0.6181529760360718, -0.21779575943946838, 0.2308453619480133, 0.11477848142385483, 0.32557910680770874, -0.14092764258384705, -0.1978883594274521, -0.13673223555088043, -0.3422302007675171, 0.0949932411313057, 0.1833510845899582, 0.14252431690692902, -0.31204643845558167, -0.15705417096614838, 0.0919291153550148, -0.31127041578292847, -0.329712837934494, -0.08052355796098709, -0.24852938950061798, 0.30680644512176514, 0.3510836064815521, 0.3141096830368042, -0.7173698544502258, -0.12203852087259293, 0.25282853841781616, -0.21448294818401337, 0.4689779281616211, 0.11479673534631729, -0.21096202731132507, -0.13886485993862152, -0.34431955218315125, 0.32094505429267883, 0.2275707721710205, 0.36690187454223633, 0.21778446435928345, 0.017415648326277733, -0.15085691213607788, 0.10885700583457947, 0.43157047033309937, -0.7976596355438232, -0.3380016088485718, -0.11149260401725769, -0.0554739348590374, -0.02103247307240963, -0.04060234874486923, 0.35104095935821533, 0.22571174800395966, 0.04130096361041069, 0.27442067861557007, 0.038552675396203995, 0.007579803001135588, -0.3233845829963684, 0.17293350398540497, -0.2346343696117401, -0.31523340940475464, -0.09866069257259369, 0.2701245844364166, -0.09006103873252869, -0.29964253306388855, 0.028633303940296173, -0.1689184010028839, 0.05742347985506058, -0.17377318441867828, -0.3051755428314209, 0.057997025549411774, 0.10664684325456619, 0.02927418425679207, 0.5556051731109619, -0.028239179402589798, 0.32085102796554565, 0.1760169118642807, 0.01832975633442402, 0.07111623883247375, 0.28076955676078796, -0.14288769662380219, -0.23373715579509735, -0.08970503509044647, -0.09232740104198456, 0.25708985328674316, -0.03196338564157486, -0.20561115443706512, -0.0013496690662577748, -0.25531965494155884, 0.0258849635720253, -0.21138550341129303, 0.13468845188617706, 0.3652513027191162, 0.3597349226474762, -0.4407241940498352, -0.47052425146102905, 0.17312708497047424, 0.27375149726867676, -0.18334776163101196, 0.5526416897773743, -0.08299677819013596, -0.2301500290632248, 0.1558230221271515, 0.04462812468409538, 1.0017775297164917, 0.029243089258670807, 0.09188635647296906, -0.24999116361141205, 0.05647746101021767, 0.6650124192237854, -0.37294575572013855, 0.33067646622657776, -0.285880982875824, -0.21053071320056915, -0.18871095776557922, -0.22684414684772491, -0.08356181532144547, 0.2917119860649109, -0.19944006204605103, 0.49630892276763916, 0.05405128374695778, 0.5679222941398621, 0.2249377965927124, 0.0703192949295044, 0.19062358140945435, -0.11996658891439438, 0.26166588068008423, 0.07315398007631302, 0.17532464861869812, 0.393557608127594, -0.09098991006612778, 0.11189216375350952, 0.09075026214122772, -0.09879778325557709, -0.28079530596733093, 0.10617554932832718, -0.3655882775783539, 0.25313207507133484, -0.0505572184920311, 0.1743306666612625, 0.10042348504066467, 0.35758069157600403, 0.5060390830039978, 0.2082124948501587, -0.18855232000350952, 0.1358560174703598, 0.15580900013446808, 0.2617044150829315, -0.14115628600120544, -0.22638298571109772, 0.02807364985346794, 0.0002936705423053354, -0.2079179286956787, -0.010965985246002674, 0.03262742981314659, -0.4142286777496338, -0.35285744071006775, -0.027025887742638588, 0.3227243721485138, -0.2036619931459427, 0.070591501891613, 0.18813110888004303, 0.06304744631052017, -0.04375726729631424, 0.038056690245866776, -0.02218334563076496, 0.07383871078491211, 0.5688586831092834, -0.2717239260673523, -0.13928799331188202, -0.013238893821835518, 0.4597800076007843, 0.33614450693130493, -0.17775198817253113, 0.5680022835731506, -0.22002509236335754, -0.24020403623580933, -0.0472225546836853, -0.4798617959022522, 0.05840074270963669, -0.3148992657661438, -0.03784684091806412, -0.396668940782547, 0.06053059920668602, 0.1406709849834442, -0.05752182751893997, -0.03074604831635952, -0.199377179145813, -0.12169604003429413, -0.22992053627967834, -0.20371492207050323, 0.042194485664367676, 0.04360345005989075, 0.1631641387939453, 0.22557637095451355, 0.06447148323059082, -0.04053133726119995, 0.41898590326309204, -0.15359550714492798, 0.044402819126844406, 0.15069988369941711, 0.12219623476266861, -0.2109905183315277, -0.08776349574327469, -0.058692555874586105, -0.1046082004904747, -0.11376239359378815, 0.3114519715309143, -0.06390204280614853, -0.052166905254125595, 0.09888438880443573, 0.20194390416145325, 0.20774732530117035, -0.023915570229291916, -0.045702915638685226, -0.01833011768758297, 0.07870081812143326, -0.36523544788360596, 0.09147040545940399, 0.05968493968248367, -0.022996453568339348, 0.23533862829208374, 0.3357808589935303, -0.08331224322319031, -0.27876830101013184, 0.15750175714492798, -0.06761046499013901, 0.049658458679914474, -0.029231136664748192, 0.2691747844219208, 0.3636682331562042, 0.01982947438955307, -0.08000478148460388, -0.0291807409375906, 0.11315710842609406, 0.03275543451309204, 0.3520667254924774, -0.41420498490333557, 0.01714087277650833, 0.26187101006507874, -0.09400047361850739, 0.3780740201473236, -0.12554894387722015, -0.3512200713157654, 0.2893674969673157, 0.1102728322148323, -0.2677422761917114, -0.3457256853580475, 0.2865927219390869, 0.09862171113491058, -0.13123877346515656, 0.08572669327259064, 0.03362097591161728, -0.175693541765213, 0.3264602720737457, 0.10745001584291458, 0.40467289090156555, -0.4351034462451935, 0.35029444098472595, 0.26154080033302307, 0.28422534465789795, 0.14601637423038483, 0.17856799066066742, 0.21875332295894623, -0.23821283876895905, 0.16903115808963776, 0.11954767256975174, 0.26268380880355835, 0.1509535312652588, -0.08613228797912598, 0.06701529771089554, -0.29401710629463196, -0.019944211468100548, 0.32583969831466675, -0.10453639179468155, 0.37784793972969055, -0.056529201567173004, -0.1261495053768158, 0.18448041379451752, -0.0648224949836731, -0.28930339217185974, 0.1713668256998062, -0.257716566324234, -0.13739502429962158, 0.21688225865364075, -0.1606339067220688, -0.019861264154314995, -0.1444624960422516, 0.13803264498710632, 0.0017324393847957253, 0.520885169506073, 0.01909313164651394, -0.1504763811826706, -0.1149391308426857, -0.2739807069301605, 0.1826746165752411, 0.574524998664856, -0.18680262565612793, 0.09266521036624908, -0.2138541042804718, -0.023913895711302757, -0.09012360125780106, 0.3141933083534241, 0.17926965653896332, 0.4027068316936493, -0.14731566607952118, 0.08058671653270721, 0.2573627531528473, 0.09969516843557358, -0.03672872856259346, 0.4875115752220154, -0.17633211612701416, -0.39671391248703003, 0.052170850336551666, 0.06903262436389923, -0.03182893991470337, -0.159878209233284, -0.27112552523612976, 0.3679018020629883, -0.42208197712898254, 0.3023286759853363, -0.09546459466218948, 0.07348054647445679, -0.06744948029518127, 0.18109828233718872, -0.3221401572227478, 0.19769415259361267, 0.5176383852958679, -0.11355473101139069, 0.10175769776105881, -0.2707715630531311, 0.028198402374982834, -0.04055848345160484, 0.28504478931427, 0.4347328245639801, -0.25262537598609924, -0.20765456557273865, -0.2799331545829773, -0.46174946427345276, 0.37353914976119995, -0.14974632859230042, 0.28673529624938965, 0.023985834792256355, 0.10445927828550339, -0.05198587477207184, -0.0491727851331234, 0.3006143569946289, 0.1457592397928238, -0.2279878556728363, 0.30767202377319336, -0.347115695476532, -0.04059436917304993, -0.3000045418739319, 0.006751266308128834, 0.17163145542144775, -0.3455074727535248, 0.44448962807655334, 0.19556088745594025, 0.027293695136904716, -0.023400302976369858, 0.0678270012140274, 0.21913067996501923, -0.061096955090761185, 0.5450428128242493, 0.34657686948776245, 0.23694084584712982, -0.02093307487666607, -0.0934210866689682, -0.09495307505130768, -0.021004680544137955, -0.12074213474988937, 0.04701237007975578, -0.12103481590747833, 0.08204299956560135, -0.4738933742046356, 0.06515903770923615, -0.3022506833076477, -0.19563764333724976, 0.285624235868454, -0.0026553526986390352, -0.1738128811120987, -0.15563978254795074, -0.061037540435791016, 0.12765274941921234, 0.1668204516172409, 0.4713125228881836, -0.22909852862358093, 0.40365123748779297, -0.24905607104301453, -0.19765469431877136, 0.332988440990448, -0.6163411736488342, -0.45503005385398865, -0.22393643856048584, 0.13753284513950348, 0.11766275018453598, -0.33500033617019653, -0.6715467572212219, -0.18104346096515656, 0.31741300225257874, 0.0883677676320076, -0.0337381549179554, 0.1405462920665741, 0.04441051185131073, 0.248387411236763, -0.14568957686424255, 0.562300443649292, 0.05505119636654854, 0.029516639187932014, 0.22771422564983368, -0.1859033703804016 ]
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.19303973019123077, 0.12105359137058258, 0.05009523034095764, 0.1900940090417862, 0.007696408312767744, 0.036920804530382156, -0.016854621469974518, 0.230349600315094, 0.016732875257730484, -0.10844355076551437, 0.10299794375896454, 0.4139721691608429, 0.22491168975830078, -0.11172354966402054, -0.0011101675918325782, 0.24461309611797333, 0.30746155977249146, 0.3216938376426697, -0.15340007841587067, -0.20887596905231476, -0.2891753613948822, 0.1171131432056427, -0.3328206539154053, -0.09242883324623108, -0.4170508086681366, 0.21232815086841583, -0.01687738299369812, -0.4208398163318634, 0.11226102709770203, -0.2555868923664093, 0.31771525740623474, 0.08582885563373566, 0.1992190182209015, 0.5570233464241028, -0.00012582034105435014, -0.2676018178462982, 0.35409557819366455, -0.06947381794452667, -0.20524652302265167, 0.07682114094495773, -0.2844763696193695, 0.03804450482130051, -0.11269354075193405, 0.023366780951619148, 0.05843912065029144, 0.05870900675654411, 0.03796575218439102, -0.651489794254303, 0.3060208261013031, 0.16291067004203796, 0.10259272158145905, 0.03327663615345955, -0.0953422263264656, 0.23458071053028107, 0.05020353943109512, -0.012024977244436741, -0.03874331712722778, -0.3330446481704712, 0.16303810477256775, -0.35232001543045044, 0.062147341668605804, 0.5163406133651733, -0.17574386298656464, -0.14190331101417542, 0.38706666231155396, -0.011780300177633762, 0.017935479059815407, -0.26469945907592773, 0.30206117033958435, -0.06447049975395203, 0.5929009318351746, -0.37321269512176514, -0.44535815715789795, -0.22181451320648193, -0.21839658915996552, -0.1797122061252594, 0.3478952944278717, -0.28142228722572327, 0.11512474715709686, 0.13677744567394257, -0.5952906608581543, -0.3717098534107208, 0.2665029466152191, 0.12685056030750275, -0.01260343100875616, 0.11883042752742767, -0.044264815747737885, 0.1275973916053772, -0.2583602964878082, 0.030563021078705788, 0.27869293093681335, -0.5107079744338989, -0.020412225276231766, 0.4761812090873718, -0.4573768079280853, -0.11419951170682907, -0.08139645308256149, 0.04445686191320419, 0.031320422887802124, 0.2521776556968689, -0.10787035524845123, 0.08482912182807922, -0.10457468777894974, -0.0248277448117733, 0.1717996895313263, 0.3819054365158081, 0.1599486917257309, 0.39592838287353516, -0.04663252830505371, -0.2572211027145386, -0.4361523687839508, -0.14235122501850128, 0.10150948166847229, 0.0623168870806694, 0.5376326441764832, 0.02919928915798664, -0.26707160472869873, -0.15271909534931183, 0.13509275019168854, 0.11047417670488358, -0.11315091699361801, -0.15427255630493164, 0.02068694867193699, 0.18612311780452728, -0.2187199592590332, 0.5657739043235779, -0.04890294745564461, 0.011322748847305775, -0.22690710425376892, -0.07549546658992767, -0.2520526945590973, -0.19494126737117767, -0.27974095940589905, 0.42401155829429626, 0.10798024386167526, -0.008758087642490864, 0.19316472113132477, 0.11374605447053909, 0.14129090309143066, -0.24853108823299408, 0.24508054554462433, -0.19523505866527557, 0.14468862116336823, 0.03134084492921829, -0.12242688983678818, 0.5588545203208923, 0.023827478289604187, 0.08207148313522339, -0.05783001706004143, 0.27935072779655457, -0.3909233510494232, -0.0032500524539500475, 0.2678493857383728, 0.07660143822431564, -0.10498792678117752, -0.051326628774404526, -0.13654571771621704, -0.047727588564157486, 0.6230668425559998, -0.35340210795402527, 0.0028585020918399096, -0.13695408403873444, -0.21816031634807587, -0.35522353649139404, 0.19640220701694489, 0.4151434600353241, -0.2202998548746109, -0.12714450061321259, -0.28924858570098877, 0.426225483417511, 0.34562963247299194, 0.19041231274604797, -0.09975980967283249, 0.22389723360538483, -0.24362346529960632, 0.25334683060646057, 0.3463950753211975, -0.3264118731021881, -0.7522772550582886, -0.06231728941202164, 0.23955361545085907, 0.21382352709770203, -0.2641489505767822, 0.009117872454226017, 0.05857640877366066, 0.022013159468770027, -0.04730687662959099, 0.12475962191820145, 0.07109547406435013, 0.04794073849916458, -0.19342058897018433, -0.32378387451171875, 0.3307865262031555, -0.15344908833503723, 0.37343546748161316, 0.2039111852645874, -0.27863258123397827, -0.06542805582284927, 0.18977905809879303, -0.07331205159425735, 0.20456774532794952, 0.21111206710338593, 0.08593940734863281, 0.09632904827594757, 0.3425366282463074, -0.14452601969242096, -0.2208445817232132, 0.23615960776805878, -0.007498647551983595, -0.40805086493492126, 0.05238057300448418, -0.06938178837299347, 0.03421018645167351, -0.175143763422966, -0.23687277734279633, -0.25076767802238464, 0.04695954918861389, 0.2982925772666931, 0.21583321690559387, 0.049326181411743164, -0.06285553425550461, 0.4346974194049835, 0.22479590773582458, -0.04744863137602806, -0.13699758052825928, 0.23143866658210754, 0.13785360753536224, -0.07235319167375565, -0.2622562646865845, -0.00778931612148881, 0.3865087926387787, 0.20507778227329254, -0.17280897498130798, 0.19992296397686005, 0.2821436822414398, 0.1305399239063263, -0.15808667242527008, 0.03777472674846649, -0.09649782627820969, 0.07604570686817169, -0.1803533136844635, 0.018961267545819283, 0.09124242514371872, -0.20247383415699005, 0.33897078037261963, -0.09822407364845276, 0.04353908449411392, 0.17285247147083282, -0.17387163639068604, -0.11649678647518158, -0.019416239112615585, -0.0575413778424263, 0.1215716078877449, -0.2605114281177521, -0.12677477300167084, -0.10074332356452942, 0.401877224445343, 0.14800004661083221, 0.31708675622940063, 0.143103688955307, 0.5319448709487915, 0.16380399465560913, 0.07024995237588882, -0.0754965990781784, -0.5950475931167603, -0.15330524742603302, 0.04206778481602669, 0.10673371702432632, 0.4031670391559601, 0.014067539013922215, 0.13723479211330414, -0.1065349131822586, 0.1262340545654297, 0.053673528134822845, 0.08399113267660141, 0.05157450959086418, 0.0034556027967482805, 0.16232971847057343, 0.08191739767789841, 0.12391875684261322, -0.15448541939258575, 0.3739548623561859, 0.2223702222108841, 0.02240816131234169, -0.12013319879770279, -0.00478295749053359, -0.4614659547805786, 0.261646568775177, -0.009416875429451466, -0.1877424418926239, -0.10895342379808426, -0.324039489030838, -0.029372170567512512, 0.1750340610742569, 0.2323509305715561, 0.17026571929454803, -0.10677231103181839, 0.16378827393054962, -0.09658548980951309, -0.06340805441141129, -0.2861727774143219, -0.044225990772247314, -0.35160255432128906, -0.10436893999576569, 0.027629343792796135, -0.33324286341667175, 0.10926838964223862, -0.19780008494853973, 0.0448768176138401, -0.33049559593200684, -0.24961456656455994, 0.06872592121362686, 0.14242184162139893, -0.19136133790016174, -0.1454962193965912, -0.13314539194107056, -0.34062281250953674, -0.07776247709989548, 0.10528567433357239, -0.37550318241119385, -0.05899621918797493, -0.19424261152744293, 0.2268970012664795, -0.0732838585972786, 0.06139051169157028, -0.09878186881542206, 0.04506326839327812, 0.05235729739069939, -0.09228051453828812, -0.12052027136087418, -0.0991954654455185, -0.10735233873128891, -0.17789514362812042, -0.14736923575401306, -0.2940424978733063, -0.12250339984893799, -0.5240328907966614, -0.299807071685791, 0.5365321040153503, -0.12470094859600067, -0.07930242270231247, -0.10533624142408371, -0.029494427144527435, 0.30539819598197937, 0.4665095806121826, -0.5257645845413208, -0.06458020210266113, -0.20277529954910278, -0.18987318873405457, -0.14755605161190033, 0.304158478975296, 0.39526307582855225, 0.1911337524652481, 0.12846551835536957, -0.42857128381729126, -0.20330052077770233, 0.02070465125143528, 0.001100255991332233, 0.4422146677970886, -0.03273020684719086, 0.20218324661254883, -0.08188968896865845, 0.8030891418457031, 0.6181529760360718, -0.21779575943946838, 0.2308453619480133, 0.11477848142385483, 0.32557910680770874, -0.14092764258384705, -0.1978883594274521, -0.13673223555088043, -0.3422302007675171, 0.0949932411313057, 0.1833510845899582, 0.14252431690692902, -0.31204643845558167, -0.15705417096614838, 0.0919291153550148, -0.31127041578292847, -0.329712837934494, -0.08052355796098709, -0.24852938950061798, 0.30680644512176514, 0.3510836064815521, 0.3141096830368042, -0.7173698544502258, -0.12203852087259293, 0.25282853841781616, -0.21448294818401337, 0.4689779281616211, 0.11479673534631729, -0.21096202731132507, -0.13886485993862152, -0.34431955218315125, 0.32094505429267883, 0.2275707721710205, 0.36690187454223633, 0.21778446435928345, 0.017415648326277733, -0.15085691213607788, 0.10885700583457947, 0.43157047033309937, -0.7976596355438232, -0.3380016088485718, -0.11149260401725769, -0.0554739348590374, -0.02103247307240963, -0.04060234874486923, 0.35104095935821533, 0.22571174800395966, 0.04130096361041069, 0.27442067861557007, 0.038552675396203995, 0.007579803001135588, -0.3233845829963684, 0.17293350398540497, -0.2346343696117401, -0.31523340940475464, -0.09866069257259369, 0.2701245844364166, -0.09006103873252869, -0.29964253306388855, 0.028633303940296173, -0.1689184010028839, 0.05742347985506058, -0.17377318441867828, -0.3051755428314209, 0.057997025549411774, 0.10664684325456619, 0.02927418425679207, 0.5556051731109619, -0.028239179402589798, 0.32085102796554565, 0.1760169118642807, 0.01832975633442402, 0.07111623883247375, 0.28076955676078796, -0.14288769662380219, -0.23373715579509735, -0.08970503509044647, -0.09232740104198456, 0.25708985328674316, -0.03196338564157486, -0.20561115443706512, -0.0013496690662577748, -0.25531965494155884, 0.0258849635720253, -0.21138550341129303, 0.13468845188617706, 0.3652513027191162, 0.3597349226474762, -0.4407241940498352, -0.47052425146102905, 0.17312708497047424, 0.27375149726867676, -0.18334776163101196, 0.5526416897773743, -0.08299677819013596, -0.2301500290632248, 0.1558230221271515, 0.04462812468409538, 1.0017775297164917, 0.029243089258670807, 0.09188635647296906, -0.24999116361141205, 0.05647746101021767, 0.6650124192237854, -0.37294575572013855, 0.33067646622657776, -0.285880982875824, -0.21053071320056915, -0.18871095776557922, -0.22684414684772491, -0.08356181532144547, 0.2917119860649109, -0.19944006204605103, 0.49630892276763916, 0.05405128374695778, 0.5679222941398621, 0.2249377965927124, 0.0703192949295044, 0.19062358140945435, -0.11996658891439438, 0.26166588068008423, 0.07315398007631302, 0.17532464861869812, 0.393557608127594, -0.09098991006612778, 0.11189216375350952, 0.09075026214122772, -0.09879778325557709, -0.28079530596733093, 0.10617554932832718, -0.3655882775783539, 0.25313207507133484, -0.0505572184920311, 0.1743306666612625, 0.10042348504066467, 0.35758069157600403, 0.5060390830039978, 0.2082124948501587, -0.18855232000350952, 0.1358560174703598, 0.15580900013446808, 0.2617044150829315, -0.14115628600120544, -0.22638298571109772, 0.02807364985346794, 0.0002936705423053354, -0.2079179286956787, -0.010965985246002674, 0.03262742981314659, -0.4142286777496338, -0.35285744071006775, -0.027025887742638588, 0.3227243721485138, -0.2036619931459427, 0.070591501891613, 0.18813110888004303, 0.06304744631052017, -0.04375726729631424, 0.038056690245866776, -0.02218334563076496, 0.07383871078491211, 0.5688586831092834, -0.2717239260673523, -0.13928799331188202, -0.013238893821835518, 0.4597800076007843, 0.33614450693130493, -0.17775198817253113, 0.5680022835731506, -0.22002509236335754, -0.24020403623580933, -0.0472225546836853, -0.4798617959022522, 0.05840074270963669, -0.3148992657661438, -0.03784684091806412, -0.396668940782547, 0.06053059920668602, 0.1406709849834442, -0.05752182751893997, -0.03074604831635952, -0.199377179145813, -0.12169604003429413, -0.22992053627967834, -0.20371492207050323, 0.042194485664367676, 0.04360345005989075, 0.1631641387939453, 0.22557637095451355, 0.06447148323059082, -0.04053133726119995, 0.41898590326309204, -0.15359550714492798, 0.044402819126844406, 0.15069988369941711, 0.12219623476266861, -0.2109905183315277, -0.08776349574327469, -0.058692555874586105, -0.1046082004904747, -0.11376239359378815, 0.3114519715309143, -0.06390204280614853, -0.052166905254125595, 0.09888438880443573, 0.20194390416145325, 0.20774732530117035, -0.023915570229291916, -0.045702915638685226, -0.01833011768758297, 0.07870081812143326, -0.36523544788360596, 0.09147040545940399, 0.05968493968248367, -0.022996453568339348, 0.23533862829208374, 0.3357808589935303, -0.08331224322319031, -0.27876830101013184, 0.15750175714492798, -0.06761046499013901, 0.049658458679914474, -0.029231136664748192, 0.2691747844219208, 0.3636682331562042, 0.01982947438955307, -0.08000478148460388, -0.0291807409375906, 0.11315710842609406, 0.03275543451309204, 0.3520667254924774, -0.41420498490333557, 0.01714087277650833, 0.26187101006507874, -0.09400047361850739, 0.3780740201473236, -0.12554894387722015, -0.3512200713157654, 0.2893674969673157, 0.1102728322148323, -0.2677422761917114, -0.3457256853580475, 0.2865927219390869, 0.09862171113491058, -0.13123877346515656, 0.08572669327259064, 0.03362097591161728, -0.175693541765213, 0.3264602720737457, 0.10745001584291458, 0.40467289090156555, -0.4351034462451935, 0.35029444098472595, 0.26154080033302307, 0.28422534465789795, 0.14601637423038483, 0.17856799066066742, 0.21875332295894623, -0.23821283876895905, 0.16903115808963776, 0.11954767256975174, 0.26268380880355835, 0.1509535312652588, -0.08613228797912598, 0.06701529771089554, -0.29401710629463196, -0.019944211468100548, 0.32583969831466675, -0.10453639179468155, 0.37784793972969055, -0.056529201567173004, -0.1261495053768158, 0.18448041379451752, -0.0648224949836731, -0.28930339217185974, 0.1713668256998062, -0.257716566324234, -0.13739502429962158, 0.21688225865364075, -0.1606339067220688, -0.019861264154314995, -0.1444624960422516, 0.13803264498710632, 0.0017324393847957253, 0.520885169506073, 0.01909313164651394, -0.1504763811826706, -0.1149391308426857, -0.2739807069301605, 0.1826746165752411, 0.574524998664856, -0.18680262565612793, 0.09266521036624908, -0.2138541042804718, -0.023913895711302757, -0.09012360125780106, 0.3141933083534241, 0.17926965653896332, 0.4027068316936493, -0.14731566607952118, 0.08058671653270721, 0.2573627531528473, 0.09969516843557358, -0.03672872856259346, 0.4875115752220154, -0.17633211612701416, -0.39671391248703003, 0.052170850336551666, 0.06903262436389923, -0.03182893991470337, -0.159878209233284, -0.27112552523612976, 0.3679018020629883, -0.42208197712898254, 0.3023286759853363, -0.09546459466218948, 0.07348054647445679, -0.06744948029518127, 0.18109828233718872, -0.3221401572227478, 0.19769415259361267, 0.5176383852958679, -0.11355473101139069, 0.10175769776105881, -0.2707715630531311, 0.028198402374982834, -0.04055848345160484, 0.28504478931427, 0.4347328245639801, -0.25262537598609924, -0.20765456557273865, -0.2799331545829773, -0.46174946427345276, 0.37353914976119995, -0.14974632859230042, 0.28673529624938965, 0.023985834792256355, 0.10445927828550339, -0.05198587477207184, -0.0491727851331234, 0.3006143569946289, 0.1457592397928238, -0.2279878556728363, 0.30767202377319336, -0.347115695476532, -0.04059436917304993, -0.3000045418739319, 0.006751266308128834, 0.17163145542144775, -0.3455074727535248, 0.44448962807655334, 0.19556088745594025, 0.027293695136904716, -0.023400302976369858, 0.0678270012140274, 0.21913067996501923, -0.061096955090761185, 0.5450428128242493, 0.34657686948776245, 0.23694084584712982, -0.02093307487666607, -0.0934210866689682, -0.09495307505130768, -0.021004680544137955, -0.12074213474988937, 0.04701237007975578, -0.12103481590747833, 0.08204299956560135, -0.4738933742046356, 0.06515903770923615, -0.3022506833076477, -0.19563764333724976, 0.285624235868454, -0.0026553526986390352, -0.1738128811120987, -0.15563978254795074, -0.061037540435791016, 0.12765274941921234, 0.1668204516172409, 0.4713125228881836, -0.22909852862358093, 0.40365123748779297, -0.24905607104301453, -0.19765469431877136, 0.332988440990448, -0.6163411736488342, -0.45503005385398865, -0.22393643856048584, 0.13753284513950348, 0.11766275018453598, -0.33500033617019653, -0.6715467572212219, -0.18104346096515656, 0.31741300225257874, 0.0883677676320076, -0.0337381549179554, 0.1405462920665741, 0.04441051185131073, 0.248387411236763, -0.14568957686424255, 0.562300443649292, 0.05505119636654854, 0.029516639187932014, 0.22771422564983368, -0.1859033703804016 ]
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.19303973019123077, 0.12105359137058258, 0.05009523034095764, 0.1900940090417862, 0.007696408312767744, 0.036920804530382156, -0.016854621469974518, 0.230349600315094, 0.016732875257730484, -0.10844355076551437, 0.10299794375896454, 0.4139721691608429, 0.22491168975830078, -0.11172354966402054, -0.0011101675918325782, 0.24461309611797333, 0.30746155977249146, 0.3216938376426697, -0.15340007841587067, -0.20887596905231476, -0.2891753613948822, 0.1171131432056427, -0.3328206539154053, -0.09242883324623108, -0.4170508086681366, 0.21232815086841583, -0.01687738299369812, -0.4208398163318634, 0.11226102709770203, -0.2555868923664093, 0.31771525740623474, 0.08582885563373566, 0.1992190182209015, 0.5570233464241028, -0.00012582034105435014, -0.2676018178462982, 0.35409557819366455, -0.06947381794452667, -0.20524652302265167, 0.07682114094495773, -0.2844763696193695, 0.03804450482130051, -0.11269354075193405, 0.023366780951619148, 0.05843912065029144, 0.05870900675654411, 0.03796575218439102, -0.651489794254303, 0.3060208261013031, 0.16291067004203796, 0.10259272158145905, 0.03327663615345955, -0.0953422263264656, 0.23458071053028107, 0.05020353943109512, -0.012024977244436741, -0.03874331712722778, -0.3330446481704712, 0.16303810477256775, -0.35232001543045044, 0.062147341668605804, 0.5163406133651733, -0.17574386298656464, -0.14190331101417542, 0.38706666231155396, -0.011780300177633762, 0.017935479059815407, -0.26469945907592773, 0.30206117033958435, -0.06447049975395203, 0.5929009318351746, -0.37321269512176514, -0.44535815715789795, -0.22181451320648193, -0.21839658915996552, -0.1797122061252594, 0.3478952944278717, -0.28142228722572327, 0.11512474715709686, 0.13677744567394257, -0.5952906608581543, -0.3717098534107208, 0.2665029466152191, 0.12685056030750275, -0.01260343100875616, 0.11883042752742767, -0.044264815747737885, 0.1275973916053772, -0.2583602964878082, 0.030563021078705788, 0.27869293093681335, -0.5107079744338989, -0.020412225276231766, 0.4761812090873718, -0.4573768079280853, -0.11419951170682907, -0.08139645308256149, 0.04445686191320419, 0.031320422887802124, 0.2521776556968689, -0.10787035524845123, 0.08482912182807922, -0.10457468777894974, -0.0248277448117733, 0.1717996895313263, 0.3819054365158081, 0.1599486917257309, 0.39592838287353516, -0.04663252830505371, -0.2572211027145386, -0.4361523687839508, -0.14235122501850128, 0.10150948166847229, 0.0623168870806694, 0.5376326441764832, 0.02919928915798664, -0.26707160472869873, -0.15271909534931183, 0.13509275019168854, 0.11047417670488358, -0.11315091699361801, -0.15427255630493164, 0.02068694867193699, 0.18612311780452728, -0.2187199592590332, 0.5657739043235779, -0.04890294745564461, 0.011322748847305775, -0.22690710425376892, -0.07549546658992767, -0.2520526945590973, -0.19494126737117767, -0.27974095940589905, 0.42401155829429626, 0.10798024386167526, -0.008758087642490864, 0.19316472113132477, 0.11374605447053909, 0.14129090309143066, -0.24853108823299408, 0.24508054554462433, -0.19523505866527557, 0.14468862116336823, 0.03134084492921829, -0.12242688983678818, 0.5588545203208923, 0.023827478289604187, 0.08207148313522339, -0.05783001706004143, 0.27935072779655457, -0.3909233510494232, -0.0032500524539500475, 0.2678493857383728, 0.07660143822431564, -0.10498792678117752, -0.051326628774404526, -0.13654571771621704, -0.047727588564157486, 0.6230668425559998, -0.35340210795402527, 0.0028585020918399096, -0.13695408403873444, -0.21816031634807587, -0.35522353649139404, 0.19640220701694489, 0.4151434600353241, -0.2202998548746109, -0.12714450061321259, -0.28924858570098877, 0.426225483417511, 0.34562963247299194, 0.19041231274604797, -0.09975980967283249, 0.22389723360538483, -0.24362346529960632, 0.25334683060646057, 0.3463950753211975, -0.3264118731021881, -0.7522772550582886, -0.06231728941202164, 0.23955361545085907, 0.21382352709770203, -0.2641489505767822, 0.009117872454226017, 0.05857640877366066, 0.022013159468770027, -0.04730687662959099, 0.12475962191820145, 0.07109547406435013, 0.04794073849916458, -0.19342058897018433, -0.32378387451171875, 0.3307865262031555, -0.15344908833503723, 0.37343546748161316, 0.2039111852645874, -0.27863258123397827, -0.06542805582284927, 0.18977905809879303, -0.07331205159425735, 0.20456774532794952, 0.21111206710338593, 0.08593940734863281, 0.09632904827594757, 0.3425366282463074, -0.14452601969242096, -0.2208445817232132, 0.23615960776805878, -0.007498647551983595, -0.40805086493492126, 0.05238057300448418, -0.06938178837299347, 0.03421018645167351, -0.175143763422966, -0.23687277734279633, -0.25076767802238464, 0.04695954918861389, 0.2982925772666931, 0.21583321690559387, 0.049326181411743164, -0.06285553425550461, 0.4346974194049835, 0.22479590773582458, -0.04744863137602806, -0.13699758052825928, 0.23143866658210754, 0.13785360753536224, -0.07235319167375565, -0.2622562646865845, -0.00778931612148881, 0.3865087926387787, 0.20507778227329254, -0.17280897498130798, 0.19992296397686005, 0.2821436822414398, 0.1305399239063263, -0.15808667242527008, 0.03777472674846649, -0.09649782627820969, 0.07604570686817169, -0.1803533136844635, 0.018961267545819283, 0.09124242514371872, -0.20247383415699005, 0.33897078037261963, -0.09822407364845276, 0.04353908449411392, 0.17285247147083282, -0.17387163639068604, -0.11649678647518158, -0.019416239112615585, -0.0575413778424263, 0.1215716078877449, -0.2605114281177521, -0.12677477300167084, -0.10074332356452942, 0.401877224445343, 0.14800004661083221, 0.31708675622940063, 0.143103688955307, 0.5319448709487915, 0.16380399465560913, 0.07024995237588882, -0.0754965990781784, -0.5950475931167603, -0.15330524742603302, 0.04206778481602669, 0.10673371702432632, 0.4031670391559601, 0.014067539013922215, 0.13723479211330414, -0.1065349131822586, 0.1262340545654297, 0.053673528134822845, 0.08399113267660141, 0.05157450959086418, 0.0034556027967482805, 0.16232971847057343, 0.08191739767789841, 0.12391875684261322, -0.15448541939258575, 0.3739548623561859, 0.2223702222108841, 0.02240816131234169, -0.12013319879770279, -0.00478295749053359, -0.4614659547805786, 0.261646568775177, -0.009416875429451466, -0.1877424418926239, -0.10895342379808426, -0.324039489030838, -0.029372170567512512, 0.1750340610742569, 0.2323509305715561, 0.17026571929454803, -0.10677231103181839, 0.16378827393054962, -0.09658548980951309, -0.06340805441141129, -0.2861727774143219, -0.044225990772247314, -0.35160255432128906, -0.10436893999576569, 0.027629343792796135, -0.33324286341667175, 0.10926838964223862, -0.19780008494853973, 0.0448768176138401, -0.33049559593200684, -0.24961456656455994, 0.06872592121362686, 0.14242184162139893, -0.19136133790016174, -0.1454962193965912, -0.13314539194107056, -0.34062281250953674, -0.07776247709989548, 0.10528567433357239, -0.37550318241119385, -0.05899621918797493, -0.19424261152744293, 0.2268970012664795, -0.0732838585972786, 0.06139051169157028, -0.09878186881542206, 0.04506326839327812, 0.05235729739069939, -0.09228051453828812, -0.12052027136087418, -0.0991954654455185, -0.10735233873128891, -0.17789514362812042, -0.14736923575401306, -0.2940424978733063, -0.12250339984893799, -0.5240328907966614, -0.299807071685791, 0.5365321040153503, -0.12470094859600067, -0.07930242270231247, -0.10533624142408371, -0.029494427144527435, 0.30539819598197937, 0.4665095806121826, -0.5257645845413208, -0.06458020210266113, -0.20277529954910278, -0.18987318873405457, -0.14755605161190033, 0.304158478975296, 0.39526307582855225, 0.1911337524652481, 0.12846551835536957, -0.42857128381729126, -0.20330052077770233, 0.02070465125143528, 0.001100255991332233, 0.4422146677970886, -0.03273020684719086, 0.20218324661254883, -0.08188968896865845, 0.8030891418457031, 0.6181529760360718, -0.21779575943946838, 0.2308453619480133, 0.11477848142385483, 0.32557910680770874, -0.14092764258384705, -0.1978883594274521, -0.13673223555088043, -0.3422302007675171, 0.0949932411313057, 0.1833510845899582, 0.14252431690692902, -0.31204643845558167, -0.15705417096614838, 0.0919291153550148, -0.31127041578292847, -0.329712837934494, -0.08052355796098709, -0.24852938950061798, 0.30680644512176514, 0.3510836064815521, 0.3141096830368042, -0.7173698544502258, -0.12203852087259293, 0.25282853841781616, -0.21448294818401337, 0.4689779281616211, 0.11479673534631729, -0.21096202731132507, -0.13886485993862152, -0.34431955218315125, 0.32094505429267883, 0.2275707721710205, 0.36690187454223633, 0.21778446435928345, 0.017415648326277733, -0.15085691213607788, 0.10885700583457947, 0.43157047033309937, -0.7976596355438232, -0.3380016088485718, -0.11149260401725769, -0.0554739348590374, -0.02103247307240963, -0.04060234874486923, 0.35104095935821533, 0.22571174800395966, 0.04130096361041069, 0.27442067861557007, 0.038552675396203995, 0.007579803001135588, -0.3233845829963684, 0.17293350398540497, -0.2346343696117401, -0.31523340940475464, -0.09866069257259369, 0.2701245844364166, -0.09006103873252869, -0.29964253306388855, 0.028633303940296173, -0.1689184010028839, 0.05742347985506058, -0.17377318441867828, -0.3051755428314209, 0.057997025549411774, 0.10664684325456619, 0.02927418425679207, 0.5556051731109619, -0.028239179402589798, 0.32085102796554565, 0.1760169118642807, 0.01832975633442402, 0.07111623883247375, 0.28076955676078796, -0.14288769662380219, -0.23373715579509735, -0.08970503509044647, -0.09232740104198456, 0.25708985328674316, -0.03196338564157486, -0.20561115443706512, -0.0013496690662577748, -0.25531965494155884, 0.0258849635720253, -0.21138550341129303, 0.13468845188617706, 0.3652513027191162, 0.3597349226474762, -0.4407241940498352, -0.47052425146102905, 0.17312708497047424, 0.27375149726867676, -0.18334776163101196, 0.5526416897773743, -0.08299677819013596, -0.2301500290632248, 0.1558230221271515, 0.04462812468409538, 1.0017775297164917, 0.029243089258670807, 0.09188635647296906, -0.24999116361141205, 0.05647746101021767, 0.6650124192237854, -0.37294575572013855, 0.33067646622657776, -0.285880982875824, -0.21053071320056915, -0.18871095776557922, -0.22684414684772491, -0.08356181532144547, 0.2917119860649109, -0.19944006204605103, 0.49630892276763916, 0.05405128374695778, 0.5679222941398621, 0.2249377965927124, 0.0703192949295044, 0.19062358140945435, -0.11996658891439438, 0.26166588068008423, 0.07315398007631302, 0.17532464861869812, 0.393557608127594, -0.09098991006612778, 0.11189216375350952, 0.09075026214122772, -0.09879778325557709, -0.28079530596733093, 0.10617554932832718, -0.3655882775783539, 0.25313207507133484, -0.0505572184920311, 0.1743306666612625, 0.10042348504066467, 0.35758069157600403, 0.5060390830039978, 0.2082124948501587, -0.18855232000350952, 0.1358560174703598, 0.15580900013446808, 0.2617044150829315, -0.14115628600120544, -0.22638298571109772, 0.02807364985346794, 0.0002936705423053354, -0.2079179286956787, -0.010965985246002674, 0.03262742981314659, -0.4142286777496338, -0.35285744071006775, -0.027025887742638588, 0.3227243721485138, -0.2036619931459427, 0.070591501891613, 0.18813110888004303, 0.06304744631052017, -0.04375726729631424, 0.038056690245866776, -0.02218334563076496, 0.07383871078491211, 0.5688586831092834, -0.2717239260673523, -0.13928799331188202, -0.013238893821835518, 0.4597800076007843, 0.33614450693130493, -0.17775198817253113, 0.5680022835731506, -0.22002509236335754, -0.24020403623580933, -0.0472225546836853, -0.4798617959022522, 0.05840074270963669, -0.3148992657661438, -0.03784684091806412, -0.396668940782547, 0.06053059920668602, 0.1406709849834442, -0.05752182751893997, -0.03074604831635952, -0.199377179145813, -0.12169604003429413, -0.22992053627967834, -0.20371492207050323, 0.042194485664367676, 0.04360345005989075, 0.1631641387939453, 0.22557637095451355, 0.06447148323059082, -0.04053133726119995, 0.41898590326309204, -0.15359550714492798, 0.044402819126844406, 0.15069988369941711, 0.12219623476266861, -0.2109905183315277, -0.08776349574327469, -0.058692555874586105, -0.1046082004904747, -0.11376239359378815, 0.3114519715309143, -0.06390204280614853, -0.052166905254125595, 0.09888438880443573, 0.20194390416145325, 0.20774732530117035, -0.023915570229291916, -0.045702915638685226, -0.01833011768758297, 0.07870081812143326, -0.36523544788360596, 0.09147040545940399, 0.05968493968248367, -0.022996453568339348, 0.23533862829208374, 0.3357808589935303, -0.08331224322319031, -0.27876830101013184, 0.15750175714492798, -0.06761046499013901, 0.049658458679914474, -0.029231136664748192, 0.2691747844219208, 0.3636682331562042, 0.01982947438955307, -0.08000478148460388, -0.0291807409375906, 0.11315710842609406, 0.03275543451309204, 0.3520667254924774, -0.41420498490333557, 0.01714087277650833, 0.26187101006507874, -0.09400047361850739, 0.3780740201473236, -0.12554894387722015, -0.3512200713157654, 0.2893674969673157, 0.1102728322148323, -0.2677422761917114, -0.3457256853580475, 0.2865927219390869, 0.09862171113491058, -0.13123877346515656, 0.08572669327259064, 0.03362097591161728, -0.175693541765213, 0.3264602720737457, 0.10745001584291458, 0.40467289090156555, -0.4351034462451935, 0.35029444098472595, 0.26154080033302307, 0.28422534465789795, 0.14601637423038483, 0.17856799066066742, 0.21875332295894623, -0.23821283876895905, 0.16903115808963776, 0.11954767256975174, 0.26268380880355835, 0.1509535312652588, -0.08613228797912598, 0.06701529771089554, -0.29401710629463196, -0.019944211468100548, 0.32583969831466675, -0.10453639179468155, 0.37784793972969055, -0.056529201567173004, -0.1261495053768158, 0.18448041379451752, -0.0648224949836731, -0.28930339217185974, 0.1713668256998062, -0.257716566324234, -0.13739502429962158, 0.21688225865364075, -0.1606339067220688, -0.019861264154314995, -0.1444624960422516, 0.13803264498710632, 0.0017324393847957253, 0.520885169506073, 0.01909313164651394, -0.1504763811826706, -0.1149391308426857, -0.2739807069301605, 0.1826746165752411, 0.574524998664856, -0.18680262565612793, 0.09266521036624908, -0.2138541042804718, -0.023913895711302757, -0.09012360125780106, 0.3141933083534241, 0.17926965653896332, 0.4027068316936493, -0.14731566607952118, 0.08058671653270721, 0.2573627531528473, 0.09969516843557358, -0.03672872856259346, 0.4875115752220154, -0.17633211612701416, -0.39671391248703003, 0.052170850336551666, 0.06903262436389923, -0.03182893991470337, -0.159878209233284, -0.27112552523612976, 0.3679018020629883, -0.42208197712898254, 0.3023286759853363, -0.09546459466218948, 0.07348054647445679, -0.06744948029518127, 0.18109828233718872, -0.3221401572227478, 0.19769415259361267, 0.5176383852958679, -0.11355473101139069, 0.10175769776105881, -0.2707715630531311, 0.028198402374982834, -0.04055848345160484, 0.28504478931427, 0.4347328245639801, -0.25262537598609924, -0.20765456557273865, -0.2799331545829773, -0.46174946427345276, 0.37353914976119995, -0.14974632859230042, 0.28673529624938965, 0.023985834792256355, 0.10445927828550339, -0.05198587477207184, -0.0491727851331234, 0.3006143569946289, 0.1457592397928238, -0.2279878556728363, 0.30767202377319336, -0.347115695476532, -0.04059436917304993, -0.3000045418739319, 0.006751266308128834, 0.17163145542144775, -0.3455074727535248, 0.44448962807655334, 0.19556088745594025, 0.027293695136904716, -0.023400302976369858, 0.0678270012140274, 0.21913067996501923, -0.061096955090761185, 0.5450428128242493, 0.34657686948776245, 0.23694084584712982, -0.02093307487666607, -0.0934210866689682, -0.09495307505130768, -0.021004680544137955, -0.12074213474988937, 0.04701237007975578, -0.12103481590747833, 0.08204299956560135, -0.4738933742046356, 0.06515903770923615, -0.3022506833076477, -0.19563764333724976, 0.285624235868454, -0.0026553526986390352, -0.1738128811120987, -0.15563978254795074, -0.061037540435791016, 0.12765274941921234, 0.1668204516172409, 0.4713125228881836, -0.22909852862358093, 0.40365123748779297, -0.24905607104301453, -0.19765469431877136, 0.332988440990448, -0.6163411736488342, -0.45503005385398865, -0.22393643856048584, 0.13753284513950348, 0.11766275018453598, -0.33500033617019653, -0.6715467572212219, -0.18104346096515656, 0.31741300225257874, 0.0883677676320076, -0.0337381549179554, 0.1405462920665741, 0.04441051185131073, 0.248387411236763, -0.14568957686424255, 0.562300443649292, 0.05505119636654854, 0.029516639187932014, 0.22771422564983368, -0.1859033703804016 ]
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.19303973019123077, 0.12105359137058258, 0.05009523034095764, 0.1900940090417862, 0.007696408312767744, 0.036920804530382156, -0.016854621469974518, 0.230349600315094, 0.016732875257730484, -0.10844355076551437, 0.10299794375896454, 0.4139721691608429, 0.22491168975830078, -0.11172354966402054, -0.0011101675918325782, 0.24461309611797333, 0.30746155977249146, 0.3216938376426697, -0.15340007841587067, -0.20887596905231476, -0.2891753613948822, 0.1171131432056427, -0.3328206539154053, -0.09242883324623108, -0.4170508086681366, 0.21232815086841583, -0.01687738299369812, -0.4208398163318634, 0.11226102709770203, -0.2555868923664093, 0.31771525740623474, 0.08582885563373566, 0.1992190182209015, 0.5570233464241028, -0.00012582034105435014, -0.2676018178462982, 0.35409557819366455, -0.06947381794452667, -0.20524652302265167, 0.07682114094495773, -0.2844763696193695, 0.03804450482130051, -0.11269354075193405, 0.023366780951619148, 0.05843912065029144, 0.05870900675654411, 0.03796575218439102, -0.651489794254303, 0.3060208261013031, 0.16291067004203796, 0.10259272158145905, 0.03327663615345955, -0.0953422263264656, 0.23458071053028107, 0.05020353943109512, -0.012024977244436741, -0.03874331712722778, -0.3330446481704712, 0.16303810477256775, -0.35232001543045044, 0.062147341668605804, 0.5163406133651733, -0.17574386298656464, -0.14190331101417542, 0.38706666231155396, -0.011780300177633762, 0.017935479059815407, -0.26469945907592773, 0.30206117033958435, -0.06447049975395203, 0.5929009318351746, -0.37321269512176514, -0.44535815715789795, -0.22181451320648193, -0.21839658915996552, -0.1797122061252594, 0.3478952944278717, -0.28142228722572327, 0.11512474715709686, 0.13677744567394257, -0.5952906608581543, -0.3717098534107208, 0.2665029466152191, 0.12685056030750275, -0.01260343100875616, 0.11883042752742767, -0.044264815747737885, 0.1275973916053772, -0.2583602964878082, 0.030563021078705788, 0.27869293093681335, -0.5107079744338989, -0.020412225276231766, 0.4761812090873718, -0.4573768079280853, -0.11419951170682907, -0.08139645308256149, 0.04445686191320419, 0.031320422887802124, 0.2521776556968689, -0.10787035524845123, 0.08482912182807922, -0.10457468777894974, -0.0248277448117733, 0.1717996895313263, 0.3819054365158081, 0.1599486917257309, 0.39592838287353516, -0.04663252830505371, -0.2572211027145386, -0.4361523687839508, -0.14235122501850128, 0.10150948166847229, 0.0623168870806694, 0.5376326441764832, 0.02919928915798664, -0.26707160472869873, -0.15271909534931183, 0.13509275019168854, 0.11047417670488358, -0.11315091699361801, -0.15427255630493164, 0.02068694867193699, 0.18612311780452728, -0.2187199592590332, 0.5657739043235779, -0.04890294745564461, 0.011322748847305775, -0.22690710425376892, -0.07549546658992767, -0.2520526945590973, -0.19494126737117767, -0.27974095940589905, 0.42401155829429626, 0.10798024386167526, -0.008758087642490864, 0.19316472113132477, 0.11374605447053909, 0.14129090309143066, -0.24853108823299408, 0.24508054554462433, -0.19523505866527557, 0.14468862116336823, 0.03134084492921829, -0.12242688983678818, 0.5588545203208923, 0.023827478289604187, 0.08207148313522339, -0.05783001706004143, 0.27935072779655457, -0.3909233510494232, -0.0032500524539500475, 0.2678493857383728, 0.07660143822431564, -0.10498792678117752, -0.051326628774404526, -0.13654571771621704, -0.047727588564157486, 0.6230668425559998, -0.35340210795402527, 0.0028585020918399096, -0.13695408403873444, -0.21816031634807587, -0.35522353649139404, 0.19640220701694489, 0.4151434600353241, -0.2202998548746109, -0.12714450061321259, -0.28924858570098877, 0.426225483417511, 0.34562963247299194, 0.19041231274604797, -0.09975980967283249, 0.22389723360538483, -0.24362346529960632, 0.25334683060646057, 0.3463950753211975, -0.3264118731021881, -0.7522772550582886, -0.06231728941202164, 0.23955361545085907, 0.21382352709770203, -0.2641489505767822, 0.009117872454226017, 0.05857640877366066, 0.022013159468770027, -0.04730687662959099, 0.12475962191820145, 0.07109547406435013, 0.04794073849916458, -0.19342058897018433, -0.32378387451171875, 0.3307865262031555, -0.15344908833503723, 0.37343546748161316, 0.2039111852645874, -0.27863258123397827, -0.06542805582284927, 0.18977905809879303, -0.07331205159425735, 0.20456774532794952, 0.21111206710338593, 0.08593940734863281, 0.09632904827594757, 0.3425366282463074, -0.14452601969242096, -0.2208445817232132, 0.23615960776805878, -0.007498647551983595, -0.40805086493492126, 0.05238057300448418, -0.06938178837299347, 0.03421018645167351, -0.175143763422966, -0.23687277734279633, -0.25076767802238464, 0.04695954918861389, 0.2982925772666931, 0.21583321690559387, 0.049326181411743164, -0.06285553425550461, 0.4346974194049835, 0.22479590773582458, -0.04744863137602806, -0.13699758052825928, 0.23143866658210754, 0.13785360753536224, -0.07235319167375565, -0.2622562646865845, -0.00778931612148881, 0.3865087926387787, 0.20507778227329254, -0.17280897498130798, 0.19992296397686005, 0.2821436822414398, 0.1305399239063263, -0.15808667242527008, 0.03777472674846649, -0.09649782627820969, 0.07604570686817169, -0.1803533136844635, 0.018961267545819283, 0.09124242514371872, -0.20247383415699005, 0.33897078037261963, -0.09822407364845276, 0.04353908449411392, 0.17285247147083282, -0.17387163639068604, -0.11649678647518158, -0.019416239112615585, -0.0575413778424263, 0.1215716078877449, -0.2605114281177521, -0.12677477300167084, -0.10074332356452942, 0.401877224445343, 0.14800004661083221, 0.31708675622940063, 0.143103688955307, 0.5319448709487915, 0.16380399465560913, 0.07024995237588882, -0.0754965990781784, -0.5950475931167603, -0.15330524742603302, 0.04206778481602669, 0.10673371702432632, 0.4031670391559601, 0.014067539013922215, 0.13723479211330414, -0.1065349131822586, 0.1262340545654297, 0.053673528134822845, 0.08399113267660141, 0.05157450959086418, 0.0034556027967482805, 0.16232971847057343, 0.08191739767789841, 0.12391875684261322, -0.15448541939258575, 0.3739548623561859, 0.2223702222108841, 0.02240816131234169, -0.12013319879770279, -0.00478295749053359, -0.4614659547805786, 0.261646568775177, -0.009416875429451466, -0.1877424418926239, -0.10895342379808426, -0.324039489030838, -0.029372170567512512, 0.1750340610742569, 0.2323509305715561, 0.17026571929454803, -0.10677231103181839, 0.16378827393054962, -0.09658548980951309, -0.06340805441141129, -0.2861727774143219, -0.044225990772247314, -0.35160255432128906, -0.10436893999576569, 0.027629343792796135, -0.33324286341667175, 0.10926838964223862, -0.19780008494853973, 0.0448768176138401, -0.33049559593200684, -0.24961456656455994, 0.06872592121362686, 0.14242184162139893, -0.19136133790016174, -0.1454962193965912, -0.13314539194107056, -0.34062281250953674, -0.07776247709989548, 0.10528567433357239, -0.37550318241119385, -0.05899621918797493, -0.19424261152744293, 0.2268970012664795, -0.0732838585972786, 0.06139051169157028, -0.09878186881542206, 0.04506326839327812, 0.05235729739069939, -0.09228051453828812, -0.12052027136087418, -0.0991954654455185, -0.10735233873128891, -0.17789514362812042, -0.14736923575401306, -0.2940424978733063, -0.12250339984893799, -0.5240328907966614, -0.299807071685791, 0.5365321040153503, -0.12470094859600067, -0.07930242270231247, -0.10533624142408371, -0.029494427144527435, 0.30539819598197937, 0.4665095806121826, -0.5257645845413208, -0.06458020210266113, -0.20277529954910278, -0.18987318873405457, -0.14755605161190033, 0.304158478975296, 0.39526307582855225, 0.1911337524652481, 0.12846551835536957, -0.42857128381729126, -0.20330052077770233, 0.02070465125143528, 0.001100255991332233, 0.4422146677970886, -0.03273020684719086, 0.20218324661254883, -0.08188968896865845, 0.8030891418457031, 0.6181529760360718, -0.21779575943946838, 0.2308453619480133, 0.11477848142385483, 0.32557910680770874, -0.14092764258384705, -0.1978883594274521, -0.13673223555088043, -0.3422302007675171, 0.0949932411313057, 0.1833510845899582, 0.14252431690692902, -0.31204643845558167, -0.15705417096614838, 0.0919291153550148, -0.31127041578292847, -0.329712837934494, -0.08052355796098709, -0.24852938950061798, 0.30680644512176514, 0.3510836064815521, 0.3141096830368042, -0.7173698544502258, -0.12203852087259293, 0.25282853841781616, -0.21448294818401337, 0.4689779281616211, 0.11479673534631729, -0.21096202731132507, -0.13886485993862152, -0.34431955218315125, 0.32094505429267883, 0.2275707721710205, 0.36690187454223633, 0.21778446435928345, 0.017415648326277733, -0.15085691213607788, 0.10885700583457947, 0.43157047033309937, -0.7976596355438232, -0.3380016088485718, -0.11149260401725769, -0.0554739348590374, -0.02103247307240963, -0.04060234874486923, 0.35104095935821533, 0.22571174800395966, 0.04130096361041069, 0.27442067861557007, 0.038552675396203995, 0.007579803001135588, -0.3233845829963684, 0.17293350398540497, -0.2346343696117401, -0.31523340940475464, -0.09866069257259369, 0.2701245844364166, -0.09006103873252869, -0.29964253306388855, 0.028633303940296173, -0.1689184010028839, 0.05742347985506058, -0.17377318441867828, -0.3051755428314209, 0.057997025549411774, 0.10664684325456619, 0.02927418425679207, 0.5556051731109619, -0.028239179402589798, 0.32085102796554565, 0.1760169118642807, 0.01832975633442402, 0.07111623883247375, 0.28076955676078796, -0.14288769662380219, -0.23373715579509735, -0.08970503509044647, -0.09232740104198456, 0.25708985328674316, -0.03196338564157486, -0.20561115443706512, -0.0013496690662577748, -0.25531965494155884, 0.0258849635720253, -0.21138550341129303, 0.13468845188617706, 0.3652513027191162, 0.3597349226474762, -0.4407241940498352, -0.47052425146102905, 0.17312708497047424, 0.27375149726867676, -0.18334776163101196, 0.5526416897773743, -0.08299677819013596, -0.2301500290632248, 0.1558230221271515, 0.04462812468409538, 1.0017775297164917, 0.029243089258670807, 0.09188635647296906, -0.24999116361141205, 0.05647746101021767, 0.6650124192237854, -0.37294575572013855, 0.33067646622657776, -0.285880982875824, -0.21053071320056915, -0.18871095776557922, -0.22684414684772491, -0.08356181532144547, 0.2917119860649109, -0.19944006204605103, 0.49630892276763916, 0.05405128374695778, 0.5679222941398621, 0.2249377965927124, 0.0703192949295044, 0.19062358140945435, -0.11996658891439438, 0.26166588068008423, 0.07315398007631302, 0.17532464861869812, 0.393557608127594, -0.09098991006612778, 0.11189216375350952, 0.09075026214122772, -0.09879778325557709, -0.28079530596733093, 0.10617554932832718, -0.3655882775783539, 0.25313207507133484, -0.0505572184920311, 0.1743306666612625, 0.10042348504066467, 0.35758069157600403, 0.5060390830039978, 0.2082124948501587, -0.18855232000350952, 0.1358560174703598, 0.15580900013446808, 0.2617044150829315, -0.14115628600120544, -0.22638298571109772, 0.02807364985346794, 0.0002936705423053354, -0.2079179286956787, -0.010965985246002674, 0.03262742981314659, -0.4142286777496338, -0.35285744071006775, -0.027025887742638588, 0.3227243721485138, -0.2036619931459427, 0.070591501891613, 0.18813110888004303, 0.06304744631052017, -0.04375726729631424, 0.038056690245866776, -0.02218334563076496, 0.07383871078491211, 0.5688586831092834, -0.2717239260673523, -0.13928799331188202, -0.013238893821835518, 0.4597800076007843, 0.33614450693130493, -0.17775198817253113, 0.5680022835731506, -0.22002509236335754, -0.24020403623580933, -0.0472225546836853, -0.4798617959022522, 0.05840074270963669, -0.3148992657661438, -0.03784684091806412, -0.396668940782547, 0.06053059920668602, 0.1406709849834442, -0.05752182751893997, -0.03074604831635952, -0.199377179145813, -0.12169604003429413, -0.22992053627967834, -0.20371492207050323, 0.042194485664367676, 0.04360345005989075, 0.1631641387939453, 0.22557637095451355, 0.06447148323059082, -0.04053133726119995, 0.41898590326309204, -0.15359550714492798, 0.044402819126844406, 0.15069988369941711, 0.12219623476266861, -0.2109905183315277, -0.08776349574327469, -0.058692555874586105, -0.1046082004904747, -0.11376239359378815, 0.3114519715309143, -0.06390204280614853, -0.052166905254125595, 0.09888438880443573, 0.20194390416145325, 0.20774732530117035, -0.023915570229291916, -0.045702915638685226, -0.01833011768758297, 0.07870081812143326, -0.36523544788360596, 0.09147040545940399, 0.05968493968248367, -0.022996453568339348, 0.23533862829208374, 0.3357808589935303, -0.08331224322319031, -0.27876830101013184, 0.15750175714492798, -0.06761046499013901, 0.049658458679914474, -0.029231136664748192, 0.2691747844219208, 0.3636682331562042, 0.01982947438955307, -0.08000478148460388, -0.0291807409375906, 0.11315710842609406, 0.03275543451309204, 0.3520667254924774, -0.41420498490333557, 0.01714087277650833, 0.26187101006507874, -0.09400047361850739, 0.3780740201473236, -0.12554894387722015, -0.3512200713157654, 0.2893674969673157, 0.1102728322148323, -0.2677422761917114, -0.3457256853580475, 0.2865927219390869, 0.09862171113491058, -0.13123877346515656, 0.08572669327259064, 0.03362097591161728, -0.175693541765213, 0.3264602720737457, 0.10745001584291458, 0.40467289090156555, -0.4351034462451935, 0.35029444098472595, 0.26154080033302307, 0.28422534465789795, 0.14601637423038483, 0.17856799066066742, 0.21875332295894623, -0.23821283876895905, 0.16903115808963776, 0.11954767256975174, 0.26268380880355835, 0.1509535312652588, -0.08613228797912598, 0.06701529771089554, -0.29401710629463196, -0.019944211468100548, 0.32583969831466675, -0.10453639179468155, 0.37784793972969055, -0.056529201567173004, -0.1261495053768158, 0.18448041379451752, -0.0648224949836731, -0.28930339217185974, 0.1713668256998062, -0.257716566324234, -0.13739502429962158, 0.21688225865364075, -0.1606339067220688, -0.019861264154314995, -0.1444624960422516, 0.13803264498710632, 0.0017324393847957253, 0.520885169506073, 0.01909313164651394, -0.1504763811826706, -0.1149391308426857, -0.2739807069301605, 0.1826746165752411, 0.574524998664856, -0.18680262565612793, 0.09266521036624908, -0.2138541042804718, -0.023913895711302757, -0.09012360125780106, 0.3141933083534241, 0.17926965653896332, 0.4027068316936493, -0.14731566607952118, 0.08058671653270721, 0.2573627531528473, 0.09969516843557358, -0.03672872856259346, 0.4875115752220154, -0.17633211612701416, -0.39671391248703003, 0.052170850336551666, 0.06903262436389923, -0.03182893991470337, -0.159878209233284, -0.27112552523612976, 0.3679018020629883, -0.42208197712898254, 0.3023286759853363, -0.09546459466218948, 0.07348054647445679, -0.06744948029518127, 0.18109828233718872, -0.3221401572227478, 0.19769415259361267, 0.5176383852958679, -0.11355473101139069, 0.10175769776105881, -0.2707715630531311, 0.028198402374982834, -0.04055848345160484, 0.28504478931427, 0.4347328245639801, -0.25262537598609924, -0.20765456557273865, -0.2799331545829773, -0.46174946427345276, 0.37353914976119995, -0.14974632859230042, 0.28673529624938965, 0.023985834792256355, 0.10445927828550339, -0.05198587477207184, -0.0491727851331234, 0.3006143569946289, 0.1457592397928238, -0.2279878556728363, 0.30767202377319336, -0.347115695476532, -0.04059436917304993, -0.3000045418739319, 0.006751266308128834, 0.17163145542144775, -0.3455074727535248, 0.44448962807655334, 0.19556088745594025, 0.027293695136904716, -0.023400302976369858, 0.0678270012140274, 0.21913067996501923, -0.061096955090761185, 0.5450428128242493, 0.34657686948776245, 0.23694084584712982, -0.02093307487666607, -0.0934210866689682, -0.09495307505130768, -0.021004680544137955, -0.12074213474988937, 0.04701237007975578, -0.12103481590747833, 0.08204299956560135, -0.4738933742046356, 0.06515903770923615, -0.3022506833076477, -0.19563764333724976, 0.285624235868454, -0.0026553526986390352, -0.1738128811120987, -0.15563978254795074, -0.061037540435791016, 0.12765274941921234, 0.1668204516172409, 0.4713125228881836, -0.22909852862358093, 0.40365123748779297, -0.24905607104301453, -0.19765469431877136, 0.332988440990448, -0.6163411736488342, -0.45503005385398865, -0.22393643856048584, 0.13753284513950348, 0.11766275018453598, -0.33500033617019653, -0.6715467572212219, -0.18104346096515656, 0.31741300225257874, 0.0883677676320076, -0.0337381549179554, 0.1405462920665741, 0.04441051185131073, 0.248387411236763, -0.14568957686424255, 0.562300443649292, 0.05505119636654854, 0.029516639187932014, 0.22771422564983368, -0.1859033703804016 ]
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.19303973019123077, 0.12105359137058258, 0.05009523034095764, 0.1900940090417862, 0.007696408312767744, 0.036920804530382156, -0.016854621469974518, 0.230349600315094, 0.016732875257730484, -0.10844355076551437, 0.10299794375896454, 0.4139721691608429, 0.22491168975830078, -0.11172354966402054, -0.0011101675918325782, 0.24461309611797333, 0.30746155977249146, 0.3216938376426697, -0.15340007841587067, -0.20887596905231476, -0.2891753613948822, 0.1171131432056427, -0.3328206539154053, -0.09242883324623108, -0.4170508086681366, 0.21232815086841583, -0.01687738299369812, -0.4208398163318634, 0.11226102709770203, -0.2555868923664093, 0.31771525740623474, 0.08582885563373566, 0.1992190182209015, 0.5570233464241028, -0.00012582034105435014, -0.2676018178462982, 0.35409557819366455, -0.06947381794452667, -0.20524652302265167, 0.07682114094495773, -0.2844763696193695, 0.03804450482130051, -0.11269354075193405, 0.023366780951619148, 0.05843912065029144, 0.05870900675654411, 0.03796575218439102, -0.651489794254303, 0.3060208261013031, 0.16291067004203796, 0.10259272158145905, 0.03327663615345955, -0.0953422263264656, 0.23458071053028107, 0.05020353943109512, -0.012024977244436741, -0.03874331712722778, -0.3330446481704712, 0.16303810477256775, -0.35232001543045044, 0.062147341668605804, 0.5163406133651733, -0.17574386298656464, -0.14190331101417542, 0.38706666231155396, -0.011780300177633762, 0.017935479059815407, -0.26469945907592773, 0.30206117033958435, -0.06447049975395203, 0.5929009318351746, -0.37321269512176514, -0.44535815715789795, -0.22181451320648193, -0.21839658915996552, -0.1797122061252594, 0.3478952944278717, -0.28142228722572327, 0.11512474715709686, 0.13677744567394257, -0.5952906608581543, -0.3717098534107208, 0.2665029466152191, 0.12685056030750275, -0.01260343100875616, 0.11883042752742767, -0.044264815747737885, 0.1275973916053772, -0.2583602964878082, 0.030563021078705788, 0.27869293093681335, -0.5107079744338989, -0.020412225276231766, 0.4761812090873718, -0.4573768079280853, -0.11419951170682907, -0.08139645308256149, 0.04445686191320419, 0.031320422887802124, 0.2521776556968689, -0.10787035524845123, 0.08482912182807922, -0.10457468777894974, -0.0248277448117733, 0.1717996895313263, 0.3819054365158081, 0.1599486917257309, 0.39592838287353516, -0.04663252830505371, -0.2572211027145386, -0.4361523687839508, -0.14235122501850128, 0.10150948166847229, 0.0623168870806694, 0.5376326441764832, 0.02919928915798664, -0.26707160472869873, -0.15271909534931183, 0.13509275019168854, 0.11047417670488358, -0.11315091699361801, -0.15427255630493164, 0.02068694867193699, 0.18612311780452728, -0.2187199592590332, 0.5657739043235779, -0.04890294745564461, 0.011322748847305775, -0.22690710425376892, -0.07549546658992767, -0.2520526945590973, -0.19494126737117767, -0.27974095940589905, 0.42401155829429626, 0.10798024386167526, -0.008758087642490864, 0.19316472113132477, 0.11374605447053909, 0.14129090309143066, -0.24853108823299408, 0.24508054554462433, -0.19523505866527557, 0.14468862116336823, 0.03134084492921829, -0.12242688983678818, 0.5588545203208923, 0.023827478289604187, 0.08207148313522339, -0.05783001706004143, 0.27935072779655457, -0.3909233510494232, -0.0032500524539500475, 0.2678493857383728, 0.07660143822431564, -0.10498792678117752, -0.051326628774404526, -0.13654571771621704, -0.047727588564157486, 0.6230668425559998, -0.35340210795402527, 0.0028585020918399096, -0.13695408403873444, -0.21816031634807587, -0.35522353649139404, 0.19640220701694489, 0.4151434600353241, -0.2202998548746109, -0.12714450061321259, -0.28924858570098877, 0.426225483417511, 0.34562963247299194, 0.19041231274604797, -0.09975980967283249, 0.22389723360538483, -0.24362346529960632, 0.25334683060646057, 0.3463950753211975, -0.3264118731021881, -0.7522772550582886, -0.06231728941202164, 0.23955361545085907, 0.21382352709770203, -0.2641489505767822, 0.009117872454226017, 0.05857640877366066, 0.022013159468770027, -0.04730687662959099, 0.12475962191820145, 0.07109547406435013, 0.04794073849916458, -0.19342058897018433, -0.32378387451171875, 0.3307865262031555, -0.15344908833503723, 0.37343546748161316, 0.2039111852645874, -0.27863258123397827, -0.06542805582284927, 0.18977905809879303, -0.07331205159425735, 0.20456774532794952, 0.21111206710338593, 0.08593940734863281, 0.09632904827594757, 0.3425366282463074, -0.14452601969242096, -0.2208445817232132, 0.23615960776805878, -0.007498647551983595, -0.40805086493492126, 0.05238057300448418, -0.06938178837299347, 0.03421018645167351, -0.175143763422966, -0.23687277734279633, -0.25076767802238464, 0.04695954918861389, 0.2982925772666931, 0.21583321690559387, 0.049326181411743164, -0.06285553425550461, 0.4346974194049835, 0.22479590773582458, -0.04744863137602806, -0.13699758052825928, 0.23143866658210754, 0.13785360753536224, -0.07235319167375565, -0.2622562646865845, -0.00778931612148881, 0.3865087926387787, 0.20507778227329254, -0.17280897498130798, 0.19992296397686005, 0.2821436822414398, 0.1305399239063263, -0.15808667242527008, 0.03777472674846649, -0.09649782627820969, 0.07604570686817169, -0.1803533136844635, 0.018961267545819283, 0.09124242514371872, -0.20247383415699005, 0.33897078037261963, -0.09822407364845276, 0.04353908449411392, 0.17285247147083282, -0.17387163639068604, -0.11649678647518158, -0.019416239112615585, -0.0575413778424263, 0.1215716078877449, -0.2605114281177521, -0.12677477300167084, -0.10074332356452942, 0.401877224445343, 0.14800004661083221, 0.31708675622940063, 0.143103688955307, 0.5319448709487915, 0.16380399465560913, 0.07024995237588882, -0.0754965990781784, -0.5950475931167603, -0.15330524742603302, 0.04206778481602669, 0.10673371702432632, 0.4031670391559601, 0.014067539013922215, 0.13723479211330414, -0.1065349131822586, 0.1262340545654297, 0.053673528134822845, 0.08399113267660141, 0.05157450959086418, 0.0034556027967482805, 0.16232971847057343, 0.08191739767789841, 0.12391875684261322, -0.15448541939258575, 0.3739548623561859, 0.2223702222108841, 0.02240816131234169, -0.12013319879770279, -0.00478295749053359, -0.4614659547805786, 0.261646568775177, -0.009416875429451466, -0.1877424418926239, -0.10895342379808426, -0.324039489030838, -0.029372170567512512, 0.1750340610742569, 0.2323509305715561, 0.17026571929454803, -0.10677231103181839, 0.16378827393054962, -0.09658548980951309, -0.06340805441141129, -0.2861727774143219, -0.044225990772247314, -0.35160255432128906, -0.10436893999576569, 0.027629343792796135, -0.33324286341667175, 0.10926838964223862, -0.19780008494853973, 0.0448768176138401, -0.33049559593200684, -0.24961456656455994, 0.06872592121362686, 0.14242184162139893, -0.19136133790016174, -0.1454962193965912, -0.13314539194107056, -0.34062281250953674, -0.07776247709989548, 0.10528567433357239, -0.37550318241119385, -0.05899621918797493, -0.19424261152744293, 0.2268970012664795, -0.0732838585972786, 0.06139051169157028, -0.09878186881542206, 0.04506326839327812, 0.05235729739069939, -0.09228051453828812, -0.12052027136087418, -0.0991954654455185, -0.10735233873128891, -0.17789514362812042, -0.14736923575401306, -0.2940424978733063, -0.12250339984893799, -0.5240328907966614, -0.299807071685791, 0.5365321040153503, -0.12470094859600067, -0.07930242270231247, -0.10533624142408371, -0.029494427144527435, 0.30539819598197937, 0.4665095806121826, -0.5257645845413208, -0.06458020210266113, -0.20277529954910278, -0.18987318873405457, -0.14755605161190033, 0.304158478975296, 0.39526307582855225, 0.1911337524652481, 0.12846551835536957, -0.42857128381729126, -0.20330052077770233, 0.02070465125143528, 0.001100255991332233, 0.4422146677970886, -0.03273020684719086, 0.20218324661254883, -0.08188968896865845, 0.8030891418457031, 0.6181529760360718, -0.21779575943946838, 0.2308453619480133, 0.11477848142385483, 0.32557910680770874, -0.14092764258384705, -0.1978883594274521, -0.13673223555088043, -0.3422302007675171, 0.0949932411313057, 0.1833510845899582, 0.14252431690692902, -0.31204643845558167, -0.15705417096614838, 0.0919291153550148, -0.31127041578292847, -0.329712837934494, -0.08052355796098709, -0.24852938950061798, 0.30680644512176514, 0.3510836064815521, 0.3141096830368042, -0.7173698544502258, -0.12203852087259293, 0.25282853841781616, -0.21448294818401337, 0.4689779281616211, 0.11479673534631729, -0.21096202731132507, -0.13886485993862152, -0.34431955218315125, 0.32094505429267883, 0.2275707721710205, 0.36690187454223633, 0.21778446435928345, 0.017415648326277733, -0.15085691213607788, 0.10885700583457947, 0.43157047033309937, -0.7976596355438232, -0.3380016088485718, -0.11149260401725769, -0.0554739348590374, -0.02103247307240963, -0.04060234874486923, 0.35104095935821533, 0.22571174800395966, 0.04130096361041069, 0.27442067861557007, 0.038552675396203995, 0.007579803001135588, -0.3233845829963684, 0.17293350398540497, -0.2346343696117401, -0.31523340940475464, -0.09866069257259369, 0.2701245844364166, -0.09006103873252869, -0.29964253306388855, 0.028633303940296173, -0.1689184010028839, 0.05742347985506058, -0.17377318441867828, -0.3051755428314209, 0.057997025549411774, 0.10664684325456619, 0.02927418425679207, 0.5556051731109619, -0.028239179402589798, 0.32085102796554565, 0.1760169118642807, 0.01832975633442402, 0.07111623883247375, 0.28076955676078796, -0.14288769662380219, -0.23373715579509735, -0.08970503509044647, -0.09232740104198456, 0.25708985328674316, -0.03196338564157486, -0.20561115443706512, -0.0013496690662577748, -0.25531965494155884, 0.0258849635720253, -0.21138550341129303, 0.13468845188617706, 0.3652513027191162, 0.3597349226474762, -0.4407241940498352, -0.47052425146102905, 0.17312708497047424, 0.27375149726867676, -0.18334776163101196, 0.5526416897773743, -0.08299677819013596, -0.2301500290632248, 0.1558230221271515, 0.04462812468409538, 1.0017775297164917, 0.029243089258670807, 0.09188635647296906, -0.24999116361141205, 0.05647746101021767, 0.6650124192237854, -0.37294575572013855, 0.33067646622657776, -0.285880982875824, -0.21053071320056915, -0.18871095776557922, -0.22684414684772491, -0.08356181532144547, 0.2917119860649109, -0.19944006204605103, 0.49630892276763916, 0.05405128374695778, 0.5679222941398621, 0.2249377965927124, 0.0703192949295044, 0.19062358140945435, -0.11996658891439438, 0.26166588068008423, 0.07315398007631302, 0.17532464861869812, 0.393557608127594, -0.09098991006612778, 0.11189216375350952, 0.09075026214122772, -0.09879778325557709, -0.28079530596733093, 0.10617554932832718, -0.3655882775783539, 0.25313207507133484, -0.0505572184920311, 0.1743306666612625, 0.10042348504066467, 0.35758069157600403, 0.5060390830039978, 0.2082124948501587, -0.18855232000350952, 0.1358560174703598, 0.15580900013446808, 0.2617044150829315, -0.14115628600120544, -0.22638298571109772, 0.02807364985346794, 0.0002936705423053354, -0.2079179286956787, -0.010965985246002674, 0.03262742981314659, -0.4142286777496338, -0.35285744071006775, -0.027025887742638588, 0.3227243721485138, -0.2036619931459427, 0.070591501891613, 0.18813110888004303, 0.06304744631052017, -0.04375726729631424, 0.038056690245866776, -0.02218334563076496, 0.07383871078491211, 0.5688586831092834, -0.2717239260673523, -0.13928799331188202, -0.013238893821835518, 0.4597800076007843, 0.33614450693130493, -0.17775198817253113, 0.5680022835731506, -0.22002509236335754, -0.24020403623580933, -0.0472225546836853, -0.4798617959022522, 0.05840074270963669, -0.3148992657661438, -0.03784684091806412, -0.396668940782547, 0.06053059920668602, 0.1406709849834442, -0.05752182751893997, -0.03074604831635952, -0.199377179145813, -0.12169604003429413, -0.22992053627967834, -0.20371492207050323, 0.042194485664367676, 0.04360345005989075, 0.1631641387939453, 0.22557637095451355, 0.06447148323059082, -0.04053133726119995, 0.41898590326309204, -0.15359550714492798, 0.044402819126844406, 0.15069988369941711, 0.12219623476266861, -0.2109905183315277, -0.08776349574327469, -0.058692555874586105, -0.1046082004904747, -0.11376239359378815, 0.3114519715309143, -0.06390204280614853, -0.052166905254125595, 0.09888438880443573, 0.20194390416145325, 0.20774732530117035, -0.023915570229291916, -0.045702915638685226, -0.01833011768758297, 0.07870081812143326, -0.36523544788360596, 0.09147040545940399, 0.05968493968248367, -0.022996453568339348, 0.23533862829208374, 0.3357808589935303, -0.08331224322319031, -0.27876830101013184, 0.15750175714492798, -0.06761046499013901, 0.049658458679914474, -0.029231136664748192, 0.2691747844219208, 0.3636682331562042, 0.01982947438955307, -0.08000478148460388, -0.0291807409375906, 0.11315710842609406, 0.03275543451309204, 0.3520667254924774, -0.41420498490333557, 0.01714087277650833, 0.26187101006507874, -0.09400047361850739, 0.3780740201473236, -0.12554894387722015, -0.3512200713157654, 0.2893674969673157, 0.1102728322148323, -0.2677422761917114, -0.3457256853580475, 0.2865927219390869, 0.09862171113491058, -0.13123877346515656, 0.08572669327259064, 0.03362097591161728, -0.175693541765213, 0.3264602720737457, 0.10745001584291458, 0.40467289090156555, -0.4351034462451935, 0.35029444098472595, 0.26154080033302307, 0.28422534465789795, 0.14601637423038483, 0.17856799066066742, 0.21875332295894623, -0.23821283876895905, 0.16903115808963776, 0.11954767256975174, 0.26268380880355835, 0.1509535312652588, -0.08613228797912598, 0.06701529771089554, -0.29401710629463196, -0.019944211468100548, 0.32583969831466675, -0.10453639179468155, 0.37784793972969055, -0.056529201567173004, -0.1261495053768158, 0.18448041379451752, -0.0648224949836731, -0.28930339217185974, 0.1713668256998062, -0.257716566324234, -0.13739502429962158, 0.21688225865364075, -0.1606339067220688, -0.019861264154314995, -0.1444624960422516, 0.13803264498710632, 0.0017324393847957253, 0.520885169506073, 0.01909313164651394, -0.1504763811826706, -0.1149391308426857, -0.2739807069301605, 0.1826746165752411, 0.574524998664856, -0.18680262565612793, 0.09266521036624908, -0.2138541042804718, -0.023913895711302757, -0.09012360125780106, 0.3141933083534241, 0.17926965653896332, 0.4027068316936493, -0.14731566607952118, 0.08058671653270721, 0.2573627531528473, 0.09969516843557358, -0.03672872856259346, 0.4875115752220154, -0.17633211612701416, -0.39671391248703003, 0.052170850336551666, 0.06903262436389923, -0.03182893991470337, -0.159878209233284, -0.27112552523612976, 0.3679018020629883, -0.42208197712898254, 0.3023286759853363, -0.09546459466218948, 0.07348054647445679, -0.06744948029518127, 0.18109828233718872, -0.3221401572227478, 0.19769415259361267, 0.5176383852958679, -0.11355473101139069, 0.10175769776105881, -0.2707715630531311, 0.028198402374982834, -0.04055848345160484, 0.28504478931427, 0.4347328245639801, -0.25262537598609924, -0.20765456557273865, -0.2799331545829773, -0.46174946427345276, 0.37353914976119995, -0.14974632859230042, 0.28673529624938965, 0.023985834792256355, 0.10445927828550339, -0.05198587477207184, -0.0491727851331234, 0.3006143569946289, 0.1457592397928238, -0.2279878556728363, 0.30767202377319336, -0.347115695476532, -0.04059436917304993, -0.3000045418739319, 0.006751266308128834, 0.17163145542144775, -0.3455074727535248, 0.44448962807655334, 0.19556088745594025, 0.027293695136904716, -0.023400302976369858, 0.0678270012140274, 0.21913067996501923, -0.061096955090761185, 0.5450428128242493, 0.34657686948776245, 0.23694084584712982, -0.02093307487666607, -0.0934210866689682, -0.09495307505130768, -0.021004680544137955, -0.12074213474988937, 0.04701237007975578, -0.12103481590747833, 0.08204299956560135, -0.4738933742046356, 0.06515903770923615, -0.3022506833076477, -0.19563764333724976, 0.285624235868454, -0.0026553526986390352, -0.1738128811120987, -0.15563978254795074, -0.061037540435791016, 0.12765274941921234, 0.1668204516172409, 0.4713125228881836, -0.22909852862358093, 0.40365123748779297, -0.24905607104301453, -0.19765469431877136, 0.332988440990448, -0.6163411736488342, -0.45503005385398865, -0.22393643856048584, 0.13753284513950348, 0.11766275018453598, -0.33500033617019653, -0.6715467572212219, -0.18104346096515656, 0.31741300225257874, 0.0883677676320076, -0.0337381549179554, 0.1405462920665741, 0.04441051185131073, 0.248387411236763, -0.14568957686424255, 0.562300443649292, 0.05505119636654854, 0.029516639187932014, 0.22771422564983368, -0.1859033703804016 ]
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.19303973019123077, 0.12105359137058258, 0.05009523034095764, 0.1900940090417862, 0.007696408312767744, 0.036920804530382156, -0.016854621469974518, 0.230349600315094, 0.016732875257730484, -0.10844355076551437, 0.10299794375896454, 0.4139721691608429, 0.22491168975830078, -0.11172354966402054, -0.0011101675918325782, 0.24461309611797333, 0.30746155977249146, 0.3216938376426697, -0.15340007841587067, -0.20887596905231476, -0.2891753613948822, 0.1171131432056427, -0.3328206539154053, -0.09242883324623108, -0.4170508086681366, 0.21232815086841583, -0.01687738299369812, -0.4208398163318634, 0.11226102709770203, -0.2555868923664093, 0.31771525740623474, 0.08582885563373566, 0.1992190182209015, 0.5570233464241028, -0.00012582034105435014, -0.2676018178462982, 0.35409557819366455, -0.06947381794452667, -0.20524652302265167, 0.07682114094495773, -0.2844763696193695, 0.03804450482130051, -0.11269354075193405, 0.023366780951619148, 0.05843912065029144, 0.05870900675654411, 0.03796575218439102, -0.651489794254303, 0.3060208261013031, 0.16291067004203796, 0.10259272158145905, 0.03327663615345955, -0.0953422263264656, 0.23458071053028107, 0.05020353943109512, -0.012024977244436741, -0.03874331712722778, -0.3330446481704712, 0.16303810477256775, -0.35232001543045044, 0.062147341668605804, 0.5163406133651733, -0.17574386298656464, -0.14190331101417542, 0.38706666231155396, -0.011780300177633762, 0.017935479059815407, -0.26469945907592773, 0.30206117033958435, -0.06447049975395203, 0.5929009318351746, -0.37321269512176514, -0.44535815715789795, -0.22181451320648193, -0.21839658915996552, -0.1797122061252594, 0.3478952944278717, -0.28142228722572327, 0.11512474715709686, 0.13677744567394257, -0.5952906608581543, -0.3717098534107208, 0.2665029466152191, 0.12685056030750275, -0.01260343100875616, 0.11883042752742767, -0.044264815747737885, 0.1275973916053772, -0.2583602964878082, 0.030563021078705788, 0.27869293093681335, -0.5107079744338989, -0.020412225276231766, 0.4761812090873718, -0.4573768079280853, -0.11419951170682907, -0.08139645308256149, 0.04445686191320419, 0.031320422887802124, 0.2521776556968689, -0.10787035524845123, 0.08482912182807922, -0.10457468777894974, -0.0248277448117733, 0.1717996895313263, 0.3819054365158081, 0.1599486917257309, 0.39592838287353516, -0.04663252830505371, -0.2572211027145386, -0.4361523687839508, -0.14235122501850128, 0.10150948166847229, 0.0623168870806694, 0.5376326441764832, 0.02919928915798664, -0.26707160472869873, -0.15271909534931183, 0.13509275019168854, 0.11047417670488358, -0.11315091699361801, -0.15427255630493164, 0.02068694867193699, 0.18612311780452728, -0.2187199592590332, 0.5657739043235779, -0.04890294745564461, 0.011322748847305775, -0.22690710425376892, -0.07549546658992767, -0.2520526945590973, -0.19494126737117767, -0.27974095940589905, 0.42401155829429626, 0.10798024386167526, -0.008758087642490864, 0.19316472113132477, 0.11374605447053909, 0.14129090309143066, -0.24853108823299408, 0.24508054554462433, -0.19523505866527557, 0.14468862116336823, 0.03134084492921829, -0.12242688983678818, 0.5588545203208923, 0.023827478289604187, 0.08207148313522339, -0.05783001706004143, 0.27935072779655457, -0.3909233510494232, -0.0032500524539500475, 0.2678493857383728, 0.07660143822431564, -0.10498792678117752, -0.051326628774404526, -0.13654571771621704, -0.047727588564157486, 0.6230668425559998, -0.35340210795402527, 0.0028585020918399096, -0.13695408403873444, -0.21816031634807587, -0.35522353649139404, 0.19640220701694489, 0.4151434600353241, -0.2202998548746109, -0.12714450061321259, -0.28924858570098877, 0.426225483417511, 0.34562963247299194, 0.19041231274604797, -0.09975980967283249, 0.22389723360538483, -0.24362346529960632, 0.25334683060646057, 0.3463950753211975, -0.3264118731021881, -0.7522772550582886, -0.06231728941202164, 0.23955361545085907, 0.21382352709770203, -0.2641489505767822, 0.009117872454226017, 0.05857640877366066, 0.022013159468770027, -0.04730687662959099, 0.12475962191820145, 0.07109547406435013, 0.04794073849916458, -0.19342058897018433, -0.32378387451171875, 0.3307865262031555, -0.15344908833503723, 0.37343546748161316, 0.2039111852645874, -0.27863258123397827, -0.06542805582284927, 0.18977905809879303, -0.07331205159425735, 0.20456774532794952, 0.21111206710338593, 0.08593940734863281, 0.09632904827594757, 0.3425366282463074, -0.14452601969242096, -0.2208445817232132, 0.23615960776805878, -0.007498647551983595, -0.40805086493492126, 0.05238057300448418, -0.06938178837299347, 0.03421018645167351, -0.175143763422966, -0.23687277734279633, -0.25076767802238464, 0.04695954918861389, 0.2982925772666931, 0.21583321690559387, 0.049326181411743164, -0.06285553425550461, 0.4346974194049835, 0.22479590773582458, -0.04744863137602806, -0.13699758052825928, 0.23143866658210754, 0.13785360753536224, -0.07235319167375565, -0.2622562646865845, -0.00778931612148881, 0.3865087926387787, 0.20507778227329254, -0.17280897498130798, 0.19992296397686005, 0.2821436822414398, 0.1305399239063263, -0.15808667242527008, 0.03777472674846649, -0.09649782627820969, 0.07604570686817169, -0.1803533136844635, 0.018961267545819283, 0.09124242514371872, -0.20247383415699005, 0.33897078037261963, -0.09822407364845276, 0.04353908449411392, 0.17285247147083282, -0.17387163639068604, -0.11649678647518158, -0.019416239112615585, -0.0575413778424263, 0.1215716078877449, -0.2605114281177521, -0.12677477300167084, -0.10074332356452942, 0.401877224445343, 0.14800004661083221, 0.31708675622940063, 0.143103688955307, 0.5319448709487915, 0.16380399465560913, 0.07024995237588882, -0.0754965990781784, -0.5950475931167603, -0.15330524742603302, 0.04206778481602669, 0.10673371702432632, 0.4031670391559601, 0.014067539013922215, 0.13723479211330414, -0.1065349131822586, 0.1262340545654297, 0.053673528134822845, 0.08399113267660141, 0.05157450959086418, 0.0034556027967482805, 0.16232971847057343, 0.08191739767789841, 0.12391875684261322, -0.15448541939258575, 0.3739548623561859, 0.2223702222108841, 0.02240816131234169, -0.12013319879770279, -0.00478295749053359, -0.4614659547805786, 0.261646568775177, -0.009416875429451466, -0.1877424418926239, -0.10895342379808426, -0.324039489030838, -0.029372170567512512, 0.1750340610742569, 0.2323509305715561, 0.17026571929454803, -0.10677231103181839, 0.16378827393054962, -0.09658548980951309, -0.06340805441141129, -0.2861727774143219, -0.044225990772247314, -0.35160255432128906, -0.10436893999576569, 0.027629343792796135, -0.33324286341667175, 0.10926838964223862, -0.19780008494853973, 0.0448768176138401, -0.33049559593200684, -0.24961456656455994, 0.06872592121362686, 0.14242184162139893, -0.19136133790016174, -0.1454962193965912, -0.13314539194107056, -0.34062281250953674, -0.07776247709989548, 0.10528567433357239, -0.37550318241119385, -0.05899621918797493, -0.19424261152744293, 0.2268970012664795, -0.0732838585972786, 0.06139051169157028, -0.09878186881542206, 0.04506326839327812, 0.05235729739069939, -0.09228051453828812, -0.12052027136087418, -0.0991954654455185, -0.10735233873128891, -0.17789514362812042, -0.14736923575401306, -0.2940424978733063, -0.12250339984893799, -0.5240328907966614, -0.299807071685791, 0.5365321040153503, -0.12470094859600067, -0.07930242270231247, -0.10533624142408371, -0.029494427144527435, 0.30539819598197937, 0.4665095806121826, -0.5257645845413208, -0.06458020210266113, -0.20277529954910278, -0.18987318873405457, -0.14755605161190033, 0.304158478975296, 0.39526307582855225, 0.1911337524652481, 0.12846551835536957, -0.42857128381729126, -0.20330052077770233, 0.02070465125143528, 0.001100255991332233, 0.4422146677970886, -0.03273020684719086, 0.20218324661254883, -0.08188968896865845, 0.8030891418457031, 0.6181529760360718, -0.21779575943946838, 0.2308453619480133, 0.11477848142385483, 0.32557910680770874, -0.14092764258384705, -0.1978883594274521, -0.13673223555088043, -0.3422302007675171, 0.0949932411313057, 0.1833510845899582, 0.14252431690692902, -0.31204643845558167, -0.15705417096614838, 0.0919291153550148, -0.31127041578292847, -0.329712837934494, -0.08052355796098709, -0.24852938950061798, 0.30680644512176514, 0.3510836064815521, 0.3141096830368042, -0.7173698544502258, -0.12203852087259293, 0.25282853841781616, -0.21448294818401337, 0.4689779281616211, 0.11479673534631729, -0.21096202731132507, -0.13886485993862152, -0.34431955218315125, 0.32094505429267883, 0.2275707721710205, 0.36690187454223633, 0.21778446435928345, 0.017415648326277733, -0.15085691213607788, 0.10885700583457947, 0.43157047033309937, -0.7976596355438232, -0.3380016088485718, -0.11149260401725769, -0.0554739348590374, -0.02103247307240963, -0.04060234874486923, 0.35104095935821533, 0.22571174800395966, 0.04130096361041069, 0.27442067861557007, 0.038552675396203995, 0.007579803001135588, -0.3233845829963684, 0.17293350398540497, -0.2346343696117401, -0.31523340940475464, -0.09866069257259369, 0.2701245844364166, -0.09006103873252869, -0.29964253306388855, 0.028633303940296173, -0.1689184010028839, 0.05742347985506058, -0.17377318441867828, -0.3051755428314209, 0.057997025549411774, 0.10664684325456619, 0.02927418425679207, 0.5556051731109619, -0.028239179402589798, 0.32085102796554565, 0.1760169118642807, 0.01832975633442402, 0.07111623883247375, 0.28076955676078796, -0.14288769662380219, -0.23373715579509735, -0.08970503509044647, -0.09232740104198456, 0.25708985328674316, -0.03196338564157486, -0.20561115443706512, -0.0013496690662577748, -0.25531965494155884, 0.0258849635720253, -0.21138550341129303, 0.13468845188617706, 0.3652513027191162, 0.3597349226474762, -0.4407241940498352, -0.47052425146102905, 0.17312708497047424, 0.27375149726867676, -0.18334776163101196, 0.5526416897773743, -0.08299677819013596, -0.2301500290632248, 0.1558230221271515, 0.04462812468409538, 1.0017775297164917, 0.029243089258670807, 0.09188635647296906, -0.24999116361141205, 0.05647746101021767, 0.6650124192237854, -0.37294575572013855, 0.33067646622657776, -0.285880982875824, -0.21053071320056915, -0.18871095776557922, -0.22684414684772491, -0.08356181532144547, 0.2917119860649109, -0.19944006204605103, 0.49630892276763916, 0.05405128374695778, 0.5679222941398621, 0.2249377965927124, 0.0703192949295044, 0.19062358140945435, -0.11996658891439438, 0.26166588068008423, 0.07315398007631302, 0.17532464861869812, 0.393557608127594, -0.09098991006612778, 0.11189216375350952, 0.09075026214122772, -0.09879778325557709, -0.28079530596733093, 0.10617554932832718, -0.3655882775783539, 0.25313207507133484, -0.0505572184920311, 0.1743306666612625, 0.10042348504066467, 0.35758069157600403, 0.5060390830039978, 0.2082124948501587, -0.18855232000350952, 0.1358560174703598, 0.15580900013446808, 0.2617044150829315, -0.14115628600120544, -0.22638298571109772, 0.02807364985346794, 0.0002936705423053354, -0.2079179286956787, -0.010965985246002674, 0.03262742981314659, -0.4142286777496338, -0.35285744071006775, -0.027025887742638588, 0.3227243721485138, -0.2036619931459427, 0.070591501891613, 0.18813110888004303, 0.06304744631052017, -0.04375726729631424, 0.038056690245866776, -0.02218334563076496, 0.07383871078491211, 0.5688586831092834, -0.2717239260673523, -0.13928799331188202, -0.013238893821835518, 0.4597800076007843, 0.33614450693130493, -0.17775198817253113, 0.5680022835731506, -0.22002509236335754, -0.24020403623580933, -0.0472225546836853, -0.4798617959022522, 0.05840074270963669, -0.3148992657661438, -0.03784684091806412, -0.396668940782547, 0.06053059920668602, 0.1406709849834442, -0.05752182751893997, -0.03074604831635952, -0.199377179145813, -0.12169604003429413, -0.22992053627967834, -0.20371492207050323, 0.042194485664367676, 0.04360345005989075, 0.1631641387939453, 0.22557637095451355, 0.06447148323059082, -0.04053133726119995, 0.41898590326309204, -0.15359550714492798, 0.044402819126844406, 0.15069988369941711, 0.12219623476266861, -0.2109905183315277, -0.08776349574327469, -0.058692555874586105, -0.1046082004904747, -0.11376239359378815, 0.3114519715309143, -0.06390204280614853, -0.052166905254125595, 0.09888438880443573, 0.20194390416145325, 0.20774732530117035, -0.023915570229291916, -0.045702915638685226, -0.01833011768758297, 0.07870081812143326, -0.36523544788360596, 0.09147040545940399, 0.05968493968248367, -0.022996453568339348, 0.23533862829208374, 0.3357808589935303, -0.08331224322319031, -0.27876830101013184, 0.15750175714492798, -0.06761046499013901, 0.049658458679914474, -0.029231136664748192, 0.2691747844219208, 0.3636682331562042, 0.01982947438955307, -0.08000478148460388, -0.0291807409375906, 0.11315710842609406, 0.03275543451309204, 0.3520667254924774, -0.41420498490333557, 0.01714087277650833, 0.26187101006507874, -0.09400047361850739, 0.3780740201473236, -0.12554894387722015, -0.3512200713157654, 0.2893674969673157, 0.1102728322148323, -0.2677422761917114, -0.3457256853580475, 0.2865927219390869, 0.09862171113491058, -0.13123877346515656, 0.08572669327259064, 0.03362097591161728, -0.175693541765213, 0.3264602720737457, 0.10745001584291458, 0.40467289090156555, -0.4351034462451935, 0.35029444098472595, 0.26154080033302307, 0.28422534465789795, 0.14601637423038483, 0.17856799066066742, 0.21875332295894623, -0.23821283876895905, 0.16903115808963776, 0.11954767256975174, 0.26268380880355835, 0.1509535312652588, -0.08613228797912598, 0.06701529771089554, -0.29401710629463196, -0.019944211468100548, 0.32583969831466675, -0.10453639179468155, 0.37784793972969055, -0.056529201567173004, -0.1261495053768158, 0.18448041379451752, -0.0648224949836731, -0.28930339217185974, 0.1713668256998062, -0.257716566324234, -0.13739502429962158, 0.21688225865364075, -0.1606339067220688, -0.019861264154314995, -0.1444624960422516, 0.13803264498710632, 0.0017324393847957253, 0.520885169506073, 0.01909313164651394, -0.1504763811826706, -0.1149391308426857, -0.2739807069301605, 0.1826746165752411, 0.574524998664856, -0.18680262565612793, 0.09266521036624908, -0.2138541042804718, -0.023913895711302757, -0.09012360125780106, 0.3141933083534241, 0.17926965653896332, 0.4027068316936493, -0.14731566607952118, 0.08058671653270721, 0.2573627531528473, 0.09969516843557358, -0.03672872856259346, 0.4875115752220154, -0.17633211612701416, -0.39671391248703003, 0.052170850336551666, 0.06903262436389923, -0.03182893991470337, -0.159878209233284, -0.27112552523612976, 0.3679018020629883, -0.42208197712898254, 0.3023286759853363, -0.09546459466218948, 0.07348054647445679, -0.06744948029518127, 0.18109828233718872, -0.3221401572227478, 0.19769415259361267, 0.5176383852958679, -0.11355473101139069, 0.10175769776105881, -0.2707715630531311, 0.028198402374982834, -0.04055848345160484, 0.28504478931427, 0.4347328245639801, -0.25262537598609924, -0.20765456557273865, -0.2799331545829773, -0.46174946427345276, 0.37353914976119995, -0.14974632859230042, 0.28673529624938965, 0.023985834792256355, 0.10445927828550339, -0.05198587477207184, -0.0491727851331234, 0.3006143569946289, 0.1457592397928238, -0.2279878556728363, 0.30767202377319336, -0.347115695476532, -0.04059436917304993, -0.3000045418739319, 0.006751266308128834, 0.17163145542144775, -0.3455074727535248, 0.44448962807655334, 0.19556088745594025, 0.027293695136904716, -0.023400302976369858, 0.0678270012140274, 0.21913067996501923, -0.061096955090761185, 0.5450428128242493, 0.34657686948776245, 0.23694084584712982, -0.02093307487666607, -0.0934210866689682, -0.09495307505130768, -0.021004680544137955, -0.12074213474988937, 0.04701237007975578, -0.12103481590747833, 0.08204299956560135, -0.4738933742046356, 0.06515903770923615, -0.3022506833076477, -0.19563764333724976, 0.285624235868454, -0.0026553526986390352, -0.1738128811120987, -0.15563978254795074, -0.061037540435791016, 0.12765274941921234, 0.1668204516172409, 0.4713125228881836, -0.22909852862358093, 0.40365123748779297, -0.24905607104301453, -0.19765469431877136, 0.332988440990448, -0.6163411736488342, -0.45503005385398865, -0.22393643856048584, 0.13753284513950348, 0.11766275018453598, -0.33500033617019653, -0.6715467572212219, -0.18104346096515656, 0.31741300225257874, 0.0883677676320076, -0.0337381549179554, 0.1405462920665741, 0.04441051185131073, 0.248387411236763, -0.14568957686424255, 0.562300443649292, 0.05505119636654854, 0.029516639187932014, 0.22771422564983368, -0.1859033703804016 ]
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.19303973019123077, 0.12105359137058258, 0.05009523034095764, 0.1900940090417862, 0.007696408312767744, 0.036920804530382156, -0.016854621469974518, 0.230349600315094, 0.016732875257730484, -0.10844355076551437, 0.10299794375896454, 0.4139721691608429, 0.22491168975830078, -0.11172354966402054, -0.0011101675918325782, 0.24461309611797333, 0.30746155977249146, 0.3216938376426697, -0.15340007841587067, -0.20887596905231476, -0.2891753613948822, 0.1171131432056427, -0.3328206539154053, -0.09242883324623108, -0.4170508086681366, 0.21232815086841583, -0.01687738299369812, -0.4208398163318634, 0.11226102709770203, -0.2555868923664093, 0.31771525740623474, 0.08582885563373566, 0.1992190182209015, 0.5570233464241028, -0.00012582034105435014, -0.2676018178462982, 0.35409557819366455, -0.06947381794452667, -0.20524652302265167, 0.07682114094495773, -0.2844763696193695, 0.03804450482130051, -0.11269354075193405, 0.023366780951619148, 0.05843912065029144, 0.05870900675654411, 0.03796575218439102, -0.651489794254303, 0.3060208261013031, 0.16291067004203796, 0.10259272158145905, 0.03327663615345955, -0.0953422263264656, 0.23458071053028107, 0.05020353943109512, -0.012024977244436741, -0.03874331712722778, -0.3330446481704712, 0.16303810477256775, -0.35232001543045044, 0.062147341668605804, 0.5163406133651733, -0.17574386298656464, -0.14190331101417542, 0.38706666231155396, -0.011780300177633762, 0.017935479059815407, -0.26469945907592773, 0.30206117033958435, -0.06447049975395203, 0.5929009318351746, -0.37321269512176514, -0.44535815715789795, -0.22181451320648193, -0.21839658915996552, -0.1797122061252594, 0.3478952944278717, -0.28142228722572327, 0.11512474715709686, 0.13677744567394257, -0.5952906608581543, -0.3717098534107208, 0.2665029466152191, 0.12685056030750275, -0.01260343100875616, 0.11883042752742767, -0.044264815747737885, 0.1275973916053772, -0.2583602964878082, 0.030563021078705788, 0.27869293093681335, -0.5107079744338989, -0.020412225276231766, 0.4761812090873718, -0.4573768079280853, -0.11419951170682907, -0.08139645308256149, 0.04445686191320419, 0.031320422887802124, 0.2521776556968689, -0.10787035524845123, 0.08482912182807922, -0.10457468777894974, -0.0248277448117733, 0.1717996895313263, 0.3819054365158081, 0.1599486917257309, 0.39592838287353516, -0.04663252830505371, -0.2572211027145386, -0.4361523687839508, -0.14235122501850128, 0.10150948166847229, 0.0623168870806694, 0.5376326441764832, 0.02919928915798664, -0.26707160472869873, -0.15271909534931183, 0.13509275019168854, 0.11047417670488358, -0.11315091699361801, -0.15427255630493164, 0.02068694867193699, 0.18612311780452728, -0.2187199592590332, 0.5657739043235779, -0.04890294745564461, 0.011322748847305775, -0.22690710425376892, -0.07549546658992767, -0.2520526945590973, -0.19494126737117767, -0.27974095940589905, 0.42401155829429626, 0.10798024386167526, -0.008758087642490864, 0.19316472113132477, 0.11374605447053909, 0.14129090309143066, -0.24853108823299408, 0.24508054554462433, -0.19523505866527557, 0.14468862116336823, 0.03134084492921829, -0.12242688983678818, 0.5588545203208923, 0.023827478289604187, 0.08207148313522339, -0.05783001706004143, 0.27935072779655457, -0.3909233510494232, -0.0032500524539500475, 0.2678493857383728, 0.07660143822431564, -0.10498792678117752, -0.051326628774404526, -0.13654571771621704, -0.047727588564157486, 0.6230668425559998, -0.35340210795402527, 0.0028585020918399096, -0.13695408403873444, -0.21816031634807587, -0.35522353649139404, 0.19640220701694489, 0.4151434600353241, -0.2202998548746109, -0.12714450061321259, -0.28924858570098877, 0.426225483417511, 0.34562963247299194, 0.19041231274604797, -0.09975980967283249, 0.22389723360538483, -0.24362346529960632, 0.25334683060646057, 0.3463950753211975, -0.3264118731021881, -0.7522772550582886, -0.06231728941202164, 0.23955361545085907, 0.21382352709770203, -0.2641489505767822, 0.009117872454226017, 0.05857640877366066, 0.022013159468770027, -0.04730687662959099, 0.12475962191820145, 0.07109547406435013, 0.04794073849916458, -0.19342058897018433, -0.32378387451171875, 0.3307865262031555, -0.15344908833503723, 0.37343546748161316, 0.2039111852645874, -0.27863258123397827, -0.06542805582284927, 0.18977905809879303, -0.07331205159425735, 0.20456774532794952, 0.21111206710338593, 0.08593940734863281, 0.09632904827594757, 0.3425366282463074, -0.14452601969242096, -0.2208445817232132, 0.23615960776805878, -0.007498647551983595, -0.40805086493492126, 0.05238057300448418, -0.06938178837299347, 0.03421018645167351, -0.175143763422966, -0.23687277734279633, -0.25076767802238464, 0.04695954918861389, 0.2982925772666931, 0.21583321690559387, 0.049326181411743164, -0.06285553425550461, 0.4346974194049835, 0.22479590773582458, -0.04744863137602806, -0.13699758052825928, 0.23143866658210754, 0.13785360753536224, -0.07235319167375565, -0.2622562646865845, -0.00778931612148881, 0.3865087926387787, 0.20507778227329254, -0.17280897498130798, 0.19992296397686005, 0.2821436822414398, 0.1305399239063263, -0.15808667242527008, 0.03777472674846649, -0.09649782627820969, 0.07604570686817169, -0.1803533136844635, 0.018961267545819283, 0.09124242514371872, -0.20247383415699005, 0.33897078037261963, -0.09822407364845276, 0.04353908449411392, 0.17285247147083282, -0.17387163639068604, -0.11649678647518158, -0.019416239112615585, -0.0575413778424263, 0.1215716078877449, -0.2605114281177521, -0.12677477300167084, -0.10074332356452942, 0.401877224445343, 0.14800004661083221, 0.31708675622940063, 0.143103688955307, 0.5319448709487915, 0.16380399465560913, 0.07024995237588882, -0.0754965990781784, -0.5950475931167603, -0.15330524742603302, 0.04206778481602669, 0.10673371702432632, 0.4031670391559601, 0.014067539013922215, 0.13723479211330414, -0.1065349131822586, 0.1262340545654297, 0.053673528134822845, 0.08399113267660141, 0.05157450959086418, 0.0034556027967482805, 0.16232971847057343, 0.08191739767789841, 0.12391875684261322, -0.15448541939258575, 0.3739548623561859, 0.2223702222108841, 0.02240816131234169, -0.12013319879770279, -0.00478295749053359, -0.4614659547805786, 0.261646568775177, -0.009416875429451466, -0.1877424418926239, -0.10895342379808426, -0.324039489030838, -0.029372170567512512, 0.1750340610742569, 0.2323509305715561, 0.17026571929454803, -0.10677231103181839, 0.16378827393054962, -0.09658548980951309, -0.06340805441141129, -0.2861727774143219, -0.044225990772247314, -0.35160255432128906, -0.10436893999576569, 0.027629343792796135, -0.33324286341667175, 0.10926838964223862, -0.19780008494853973, 0.0448768176138401, -0.33049559593200684, -0.24961456656455994, 0.06872592121362686, 0.14242184162139893, -0.19136133790016174, -0.1454962193965912, -0.13314539194107056, -0.34062281250953674, -0.07776247709989548, 0.10528567433357239, -0.37550318241119385, -0.05899621918797493, -0.19424261152744293, 0.2268970012664795, -0.0732838585972786, 0.06139051169157028, -0.09878186881542206, 0.04506326839327812, 0.05235729739069939, -0.09228051453828812, -0.12052027136087418, -0.0991954654455185, -0.10735233873128891, -0.17789514362812042, -0.14736923575401306, -0.2940424978733063, -0.12250339984893799, -0.5240328907966614, -0.299807071685791, 0.5365321040153503, -0.12470094859600067, -0.07930242270231247, -0.10533624142408371, -0.029494427144527435, 0.30539819598197937, 0.4665095806121826, -0.5257645845413208, -0.06458020210266113, -0.20277529954910278, -0.18987318873405457, -0.14755605161190033, 0.304158478975296, 0.39526307582855225, 0.1911337524652481, 0.12846551835536957, -0.42857128381729126, -0.20330052077770233, 0.02070465125143528, 0.001100255991332233, 0.4422146677970886, -0.03273020684719086, 0.20218324661254883, -0.08188968896865845, 0.8030891418457031, 0.6181529760360718, -0.21779575943946838, 0.2308453619480133, 0.11477848142385483, 0.32557910680770874, -0.14092764258384705, -0.1978883594274521, -0.13673223555088043, -0.3422302007675171, 0.0949932411313057, 0.1833510845899582, 0.14252431690692902, -0.31204643845558167, -0.15705417096614838, 0.0919291153550148, -0.31127041578292847, -0.329712837934494, -0.08052355796098709, -0.24852938950061798, 0.30680644512176514, 0.3510836064815521, 0.3141096830368042, -0.7173698544502258, -0.12203852087259293, 0.25282853841781616, -0.21448294818401337, 0.4689779281616211, 0.11479673534631729, -0.21096202731132507, -0.13886485993862152, -0.34431955218315125, 0.32094505429267883, 0.2275707721710205, 0.36690187454223633, 0.21778446435928345, 0.017415648326277733, -0.15085691213607788, 0.10885700583457947, 0.43157047033309937, -0.7976596355438232, -0.3380016088485718, -0.11149260401725769, -0.0554739348590374, -0.02103247307240963, -0.04060234874486923, 0.35104095935821533, 0.22571174800395966, 0.04130096361041069, 0.27442067861557007, 0.038552675396203995, 0.007579803001135588, -0.3233845829963684, 0.17293350398540497, -0.2346343696117401, -0.31523340940475464, -0.09866069257259369, 0.2701245844364166, -0.09006103873252869, -0.29964253306388855, 0.028633303940296173, -0.1689184010028839, 0.05742347985506058, -0.17377318441867828, -0.3051755428314209, 0.057997025549411774, 0.10664684325456619, 0.02927418425679207, 0.5556051731109619, -0.028239179402589798, 0.32085102796554565, 0.1760169118642807, 0.01832975633442402, 0.07111623883247375, 0.28076955676078796, -0.14288769662380219, -0.23373715579509735, -0.08970503509044647, -0.09232740104198456, 0.25708985328674316, -0.03196338564157486, -0.20561115443706512, -0.0013496690662577748, -0.25531965494155884, 0.0258849635720253, -0.21138550341129303, 0.13468845188617706, 0.3652513027191162, 0.3597349226474762, -0.4407241940498352, -0.47052425146102905, 0.17312708497047424, 0.27375149726867676, -0.18334776163101196, 0.5526416897773743, -0.08299677819013596, -0.2301500290632248, 0.1558230221271515, 0.04462812468409538, 1.0017775297164917, 0.029243089258670807, 0.09188635647296906, -0.24999116361141205, 0.05647746101021767, 0.6650124192237854, -0.37294575572013855, 0.33067646622657776, -0.285880982875824, -0.21053071320056915, -0.18871095776557922, -0.22684414684772491, -0.08356181532144547, 0.2917119860649109, -0.19944006204605103, 0.49630892276763916, 0.05405128374695778, 0.5679222941398621, 0.2249377965927124, 0.0703192949295044, 0.19062358140945435, -0.11996658891439438, 0.26166588068008423, 0.07315398007631302, 0.17532464861869812, 0.393557608127594, -0.09098991006612778, 0.11189216375350952, 0.09075026214122772, -0.09879778325557709, -0.28079530596733093, 0.10617554932832718, -0.3655882775783539, 0.25313207507133484, -0.0505572184920311, 0.1743306666612625, 0.10042348504066467, 0.35758069157600403, 0.5060390830039978, 0.2082124948501587, -0.18855232000350952, 0.1358560174703598, 0.15580900013446808, 0.2617044150829315, -0.14115628600120544, -0.22638298571109772, 0.02807364985346794, 0.0002936705423053354, -0.2079179286956787, -0.010965985246002674, 0.03262742981314659, -0.4142286777496338, -0.35285744071006775, -0.027025887742638588, 0.3227243721485138, -0.2036619931459427, 0.070591501891613, 0.18813110888004303, 0.06304744631052017, -0.04375726729631424, 0.038056690245866776, -0.02218334563076496, 0.07383871078491211, 0.5688586831092834, -0.2717239260673523, -0.13928799331188202, -0.013238893821835518, 0.4597800076007843, 0.33614450693130493, -0.17775198817253113, 0.5680022835731506, -0.22002509236335754, -0.24020403623580933, -0.0472225546836853, -0.4798617959022522, 0.05840074270963669, -0.3148992657661438, -0.03784684091806412, -0.396668940782547, 0.06053059920668602, 0.1406709849834442, -0.05752182751893997, -0.03074604831635952, -0.199377179145813, -0.12169604003429413, -0.22992053627967834, -0.20371492207050323, 0.042194485664367676, 0.04360345005989075, 0.1631641387939453, 0.22557637095451355, 0.06447148323059082, -0.04053133726119995, 0.41898590326309204, -0.15359550714492798, 0.044402819126844406, 0.15069988369941711, 0.12219623476266861, -0.2109905183315277, -0.08776349574327469, -0.058692555874586105, -0.1046082004904747, -0.11376239359378815, 0.3114519715309143, -0.06390204280614853, -0.052166905254125595, 0.09888438880443573, 0.20194390416145325, 0.20774732530117035, -0.023915570229291916, -0.045702915638685226, -0.01833011768758297, 0.07870081812143326, -0.36523544788360596, 0.09147040545940399, 0.05968493968248367, -0.022996453568339348, 0.23533862829208374, 0.3357808589935303, -0.08331224322319031, -0.27876830101013184, 0.15750175714492798, -0.06761046499013901, 0.049658458679914474, -0.029231136664748192, 0.2691747844219208, 0.3636682331562042, 0.01982947438955307, -0.08000478148460388, -0.0291807409375906, 0.11315710842609406, 0.03275543451309204, 0.3520667254924774, -0.41420498490333557, 0.01714087277650833, 0.26187101006507874, -0.09400047361850739, 0.3780740201473236, -0.12554894387722015, -0.3512200713157654, 0.2893674969673157, 0.1102728322148323, -0.2677422761917114, -0.3457256853580475, 0.2865927219390869, 0.09862171113491058, -0.13123877346515656, 0.08572669327259064, 0.03362097591161728, -0.175693541765213, 0.3264602720737457, 0.10745001584291458, 0.40467289090156555, -0.4351034462451935, 0.35029444098472595, 0.26154080033302307, 0.28422534465789795, 0.14601637423038483, 0.17856799066066742, 0.21875332295894623, -0.23821283876895905, 0.16903115808963776, 0.11954767256975174, 0.26268380880355835, 0.1509535312652588, -0.08613228797912598, 0.06701529771089554, -0.29401710629463196, -0.019944211468100548, 0.32583969831466675, -0.10453639179468155, 0.37784793972969055, -0.056529201567173004, -0.1261495053768158, 0.18448041379451752, -0.0648224949836731, -0.28930339217185974, 0.1713668256998062, -0.257716566324234, -0.13739502429962158, 0.21688225865364075, -0.1606339067220688, -0.019861264154314995, -0.1444624960422516, 0.13803264498710632, 0.0017324393847957253, 0.520885169506073, 0.01909313164651394, -0.1504763811826706, -0.1149391308426857, -0.2739807069301605, 0.1826746165752411, 0.574524998664856, -0.18680262565612793, 0.09266521036624908, -0.2138541042804718, -0.023913895711302757, -0.09012360125780106, 0.3141933083534241, 0.17926965653896332, 0.4027068316936493, -0.14731566607952118, 0.08058671653270721, 0.2573627531528473, 0.09969516843557358, -0.03672872856259346, 0.4875115752220154, -0.17633211612701416, -0.39671391248703003, 0.052170850336551666, 0.06903262436389923, -0.03182893991470337, -0.159878209233284, -0.27112552523612976, 0.3679018020629883, -0.42208197712898254, 0.3023286759853363, -0.09546459466218948, 0.07348054647445679, -0.06744948029518127, 0.18109828233718872, -0.3221401572227478, 0.19769415259361267, 0.5176383852958679, -0.11355473101139069, 0.10175769776105881, -0.2707715630531311, 0.028198402374982834, -0.04055848345160484, 0.28504478931427, 0.4347328245639801, -0.25262537598609924, -0.20765456557273865, -0.2799331545829773, -0.46174946427345276, 0.37353914976119995, -0.14974632859230042, 0.28673529624938965, 0.023985834792256355, 0.10445927828550339, -0.05198587477207184, -0.0491727851331234, 0.3006143569946289, 0.1457592397928238, -0.2279878556728363, 0.30767202377319336, -0.347115695476532, -0.04059436917304993, -0.3000045418739319, 0.006751266308128834, 0.17163145542144775, -0.3455074727535248, 0.44448962807655334, 0.19556088745594025, 0.027293695136904716, -0.023400302976369858, 0.0678270012140274, 0.21913067996501923, -0.061096955090761185, 0.5450428128242493, 0.34657686948776245, 0.23694084584712982, -0.02093307487666607, -0.0934210866689682, -0.09495307505130768, -0.021004680544137955, -0.12074213474988937, 0.04701237007975578, -0.12103481590747833, 0.08204299956560135, -0.4738933742046356, 0.06515903770923615, -0.3022506833076477, -0.19563764333724976, 0.285624235868454, -0.0026553526986390352, -0.1738128811120987, -0.15563978254795074, -0.061037540435791016, 0.12765274941921234, 0.1668204516172409, 0.4713125228881836, -0.22909852862358093, 0.40365123748779297, -0.24905607104301453, -0.19765469431877136, 0.332988440990448, -0.6163411736488342, -0.45503005385398865, -0.22393643856048584, 0.13753284513950348, 0.11766275018453598, -0.33500033617019653, -0.6715467572212219, -0.18104346096515656, 0.31741300225257874, 0.0883677676320076, -0.0337381549179554, 0.1405462920665741, 0.04441051185131073, 0.248387411236763, -0.14568957686424255, 0.562300443649292, 0.05505119636654854, 0.029516639187932014, 0.22771422564983368, -0.1859033703804016 ]
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.19303973019123077, 0.12105359137058258, 0.05009523034095764, 0.1900940090417862, 0.007696408312767744, 0.036920804530382156, -0.016854621469974518, 0.230349600315094, 0.016732875257730484, -0.10844355076551437, 0.10299794375896454, 0.4139721691608429, 0.22491168975830078, -0.11172354966402054, -0.0011101675918325782, 0.24461309611797333, 0.30746155977249146, 0.3216938376426697, -0.15340007841587067, -0.20887596905231476, -0.2891753613948822, 0.1171131432056427, -0.3328206539154053, -0.09242883324623108, -0.4170508086681366, 0.21232815086841583, -0.01687738299369812, -0.4208398163318634, 0.11226102709770203, -0.2555868923664093, 0.31771525740623474, 0.08582885563373566, 0.1992190182209015, 0.5570233464241028, -0.00012582034105435014, -0.2676018178462982, 0.35409557819366455, -0.06947381794452667, -0.20524652302265167, 0.07682114094495773, -0.2844763696193695, 0.03804450482130051, -0.11269354075193405, 0.023366780951619148, 0.05843912065029144, 0.05870900675654411, 0.03796575218439102, -0.651489794254303, 0.3060208261013031, 0.16291067004203796, 0.10259272158145905, 0.03327663615345955, -0.0953422263264656, 0.23458071053028107, 0.05020353943109512, -0.012024977244436741, -0.03874331712722778, -0.3330446481704712, 0.16303810477256775, -0.35232001543045044, 0.062147341668605804, 0.5163406133651733, -0.17574386298656464, -0.14190331101417542, 0.38706666231155396, -0.011780300177633762, 0.017935479059815407, -0.26469945907592773, 0.30206117033958435, -0.06447049975395203, 0.5929009318351746, -0.37321269512176514, -0.44535815715789795, -0.22181451320648193, -0.21839658915996552, -0.1797122061252594, 0.3478952944278717, -0.28142228722572327, 0.11512474715709686, 0.13677744567394257, -0.5952906608581543, -0.3717098534107208, 0.2665029466152191, 0.12685056030750275, -0.01260343100875616, 0.11883042752742767, -0.044264815747737885, 0.1275973916053772, -0.2583602964878082, 0.030563021078705788, 0.27869293093681335, -0.5107079744338989, -0.020412225276231766, 0.4761812090873718, -0.4573768079280853, -0.11419951170682907, -0.08139645308256149, 0.04445686191320419, 0.031320422887802124, 0.2521776556968689, -0.10787035524845123, 0.08482912182807922, -0.10457468777894974, -0.0248277448117733, 0.1717996895313263, 0.3819054365158081, 0.1599486917257309, 0.39592838287353516, -0.04663252830505371, -0.2572211027145386, -0.4361523687839508, -0.14235122501850128, 0.10150948166847229, 0.0623168870806694, 0.5376326441764832, 0.02919928915798664, -0.26707160472869873, -0.15271909534931183, 0.13509275019168854, 0.11047417670488358, -0.11315091699361801, -0.15427255630493164, 0.02068694867193699, 0.18612311780452728, -0.2187199592590332, 0.5657739043235779, -0.04890294745564461, 0.011322748847305775, -0.22690710425376892, -0.07549546658992767, -0.2520526945590973, -0.19494126737117767, -0.27974095940589905, 0.42401155829429626, 0.10798024386167526, -0.008758087642490864, 0.19316472113132477, 0.11374605447053909, 0.14129090309143066, -0.24853108823299408, 0.24508054554462433, -0.19523505866527557, 0.14468862116336823, 0.03134084492921829, -0.12242688983678818, 0.5588545203208923, 0.023827478289604187, 0.08207148313522339, -0.05783001706004143, 0.27935072779655457, -0.3909233510494232, -0.0032500524539500475, 0.2678493857383728, 0.07660143822431564, -0.10498792678117752, -0.051326628774404526, -0.13654571771621704, -0.047727588564157486, 0.6230668425559998, -0.35340210795402527, 0.0028585020918399096, -0.13695408403873444, -0.21816031634807587, -0.35522353649139404, 0.19640220701694489, 0.4151434600353241, -0.2202998548746109, -0.12714450061321259, -0.28924858570098877, 0.426225483417511, 0.34562963247299194, 0.19041231274604797, -0.09975980967283249, 0.22389723360538483, -0.24362346529960632, 0.25334683060646057, 0.3463950753211975, -0.3264118731021881, -0.7522772550582886, -0.06231728941202164, 0.23955361545085907, 0.21382352709770203, -0.2641489505767822, 0.009117872454226017, 0.05857640877366066, 0.022013159468770027, -0.04730687662959099, 0.12475962191820145, 0.07109547406435013, 0.04794073849916458, -0.19342058897018433, -0.32378387451171875, 0.3307865262031555, -0.15344908833503723, 0.37343546748161316, 0.2039111852645874, -0.27863258123397827, -0.06542805582284927, 0.18977905809879303, -0.07331205159425735, 0.20456774532794952, 0.21111206710338593, 0.08593940734863281, 0.09632904827594757, 0.3425366282463074, -0.14452601969242096, -0.2208445817232132, 0.23615960776805878, -0.007498647551983595, -0.40805086493492126, 0.05238057300448418, -0.06938178837299347, 0.03421018645167351, -0.175143763422966, -0.23687277734279633, -0.25076767802238464, 0.04695954918861389, 0.2982925772666931, 0.21583321690559387, 0.049326181411743164, -0.06285553425550461, 0.4346974194049835, 0.22479590773582458, -0.04744863137602806, -0.13699758052825928, 0.23143866658210754, 0.13785360753536224, -0.07235319167375565, -0.2622562646865845, -0.00778931612148881, 0.3865087926387787, 0.20507778227329254, -0.17280897498130798, 0.19992296397686005, 0.2821436822414398, 0.1305399239063263, -0.15808667242527008, 0.03777472674846649, -0.09649782627820969, 0.07604570686817169, -0.1803533136844635, 0.018961267545819283, 0.09124242514371872, -0.20247383415699005, 0.33897078037261963, -0.09822407364845276, 0.04353908449411392, 0.17285247147083282, -0.17387163639068604, -0.11649678647518158, -0.019416239112615585, -0.0575413778424263, 0.1215716078877449, -0.2605114281177521, -0.12677477300167084, -0.10074332356452942, 0.401877224445343, 0.14800004661083221, 0.31708675622940063, 0.143103688955307, 0.5319448709487915, 0.16380399465560913, 0.07024995237588882, -0.0754965990781784, -0.5950475931167603, -0.15330524742603302, 0.04206778481602669, 0.10673371702432632, 0.4031670391559601, 0.014067539013922215, 0.13723479211330414, -0.1065349131822586, 0.1262340545654297, 0.053673528134822845, 0.08399113267660141, 0.05157450959086418, 0.0034556027967482805, 0.16232971847057343, 0.08191739767789841, 0.12391875684261322, -0.15448541939258575, 0.3739548623561859, 0.2223702222108841, 0.02240816131234169, -0.12013319879770279, -0.00478295749053359, -0.4614659547805786, 0.261646568775177, -0.009416875429451466, -0.1877424418926239, -0.10895342379808426, -0.324039489030838, -0.029372170567512512, 0.1750340610742569, 0.2323509305715561, 0.17026571929454803, -0.10677231103181839, 0.16378827393054962, -0.09658548980951309, -0.06340805441141129, -0.2861727774143219, -0.044225990772247314, -0.35160255432128906, -0.10436893999576569, 0.027629343792796135, -0.33324286341667175, 0.10926838964223862, -0.19780008494853973, 0.0448768176138401, -0.33049559593200684, -0.24961456656455994, 0.06872592121362686, 0.14242184162139893, -0.19136133790016174, -0.1454962193965912, -0.13314539194107056, -0.34062281250953674, -0.07776247709989548, 0.10528567433357239, -0.37550318241119385, -0.05899621918797493, -0.19424261152744293, 0.2268970012664795, -0.0732838585972786, 0.06139051169157028, -0.09878186881542206, 0.04506326839327812, 0.05235729739069939, -0.09228051453828812, -0.12052027136087418, -0.0991954654455185, -0.10735233873128891, -0.17789514362812042, -0.14736923575401306, -0.2940424978733063, -0.12250339984893799, -0.5240328907966614, -0.299807071685791, 0.5365321040153503, -0.12470094859600067, -0.07930242270231247, -0.10533624142408371, -0.029494427144527435, 0.30539819598197937, 0.4665095806121826, -0.5257645845413208, -0.06458020210266113, -0.20277529954910278, -0.18987318873405457, -0.14755605161190033, 0.304158478975296, 0.39526307582855225, 0.1911337524652481, 0.12846551835536957, -0.42857128381729126, -0.20330052077770233, 0.02070465125143528, 0.001100255991332233, 0.4422146677970886, -0.03273020684719086, 0.20218324661254883, -0.08188968896865845, 0.8030891418457031, 0.6181529760360718, -0.21779575943946838, 0.2308453619480133, 0.11477848142385483, 0.32557910680770874, -0.14092764258384705, -0.1978883594274521, -0.13673223555088043, -0.3422302007675171, 0.0949932411313057, 0.1833510845899582, 0.14252431690692902, -0.31204643845558167, -0.15705417096614838, 0.0919291153550148, -0.31127041578292847, -0.329712837934494, -0.08052355796098709, -0.24852938950061798, 0.30680644512176514, 0.3510836064815521, 0.3141096830368042, -0.7173698544502258, -0.12203852087259293, 0.25282853841781616, -0.21448294818401337, 0.4689779281616211, 0.11479673534631729, -0.21096202731132507, -0.13886485993862152, -0.34431955218315125, 0.32094505429267883, 0.2275707721710205, 0.36690187454223633, 0.21778446435928345, 0.017415648326277733, -0.15085691213607788, 0.10885700583457947, 0.43157047033309937, -0.7976596355438232, -0.3380016088485718, -0.11149260401725769, -0.0554739348590374, -0.02103247307240963, -0.04060234874486923, 0.35104095935821533, 0.22571174800395966, 0.04130096361041069, 0.27442067861557007, 0.038552675396203995, 0.007579803001135588, -0.3233845829963684, 0.17293350398540497, -0.2346343696117401, -0.31523340940475464, -0.09866069257259369, 0.2701245844364166, -0.09006103873252869, -0.29964253306388855, 0.028633303940296173, -0.1689184010028839, 0.05742347985506058, -0.17377318441867828, -0.3051755428314209, 0.057997025549411774, 0.10664684325456619, 0.02927418425679207, 0.5556051731109619, -0.028239179402589798, 0.32085102796554565, 0.1760169118642807, 0.01832975633442402, 0.07111623883247375, 0.28076955676078796, -0.14288769662380219, -0.23373715579509735, -0.08970503509044647, -0.09232740104198456, 0.25708985328674316, -0.03196338564157486, -0.20561115443706512, -0.0013496690662577748, -0.25531965494155884, 0.0258849635720253, -0.21138550341129303, 0.13468845188617706, 0.3652513027191162, 0.3597349226474762, -0.4407241940498352, -0.47052425146102905, 0.17312708497047424, 0.27375149726867676, -0.18334776163101196, 0.5526416897773743, -0.08299677819013596, -0.2301500290632248, 0.1558230221271515, 0.04462812468409538, 1.0017775297164917, 0.029243089258670807, 0.09188635647296906, -0.24999116361141205, 0.05647746101021767, 0.6650124192237854, -0.37294575572013855, 0.33067646622657776, -0.285880982875824, -0.21053071320056915, -0.18871095776557922, -0.22684414684772491, -0.08356181532144547, 0.2917119860649109, -0.19944006204605103, 0.49630892276763916, 0.05405128374695778, 0.5679222941398621, 0.2249377965927124, 0.0703192949295044, 0.19062358140945435, -0.11996658891439438, 0.26166588068008423, 0.07315398007631302, 0.17532464861869812, 0.393557608127594, -0.09098991006612778, 0.11189216375350952, 0.09075026214122772, -0.09879778325557709, -0.28079530596733093, 0.10617554932832718, -0.3655882775783539, 0.25313207507133484, -0.0505572184920311, 0.1743306666612625, 0.10042348504066467, 0.35758069157600403, 0.5060390830039978, 0.2082124948501587, -0.18855232000350952, 0.1358560174703598, 0.15580900013446808, 0.2617044150829315, -0.14115628600120544, -0.22638298571109772, 0.02807364985346794, 0.0002936705423053354, -0.2079179286956787, -0.010965985246002674, 0.03262742981314659, -0.4142286777496338, -0.35285744071006775, -0.027025887742638588, 0.3227243721485138, -0.2036619931459427, 0.070591501891613, 0.18813110888004303, 0.06304744631052017, -0.04375726729631424, 0.038056690245866776, -0.02218334563076496, 0.07383871078491211, 0.5688586831092834, -0.2717239260673523, -0.13928799331188202, -0.013238893821835518, 0.4597800076007843, 0.33614450693130493, -0.17775198817253113, 0.5680022835731506, -0.22002509236335754, -0.24020403623580933, -0.0472225546836853, -0.4798617959022522, 0.05840074270963669, -0.3148992657661438, -0.03784684091806412, -0.396668940782547, 0.06053059920668602, 0.1406709849834442, -0.05752182751893997, -0.03074604831635952, -0.199377179145813, -0.12169604003429413, -0.22992053627967834, -0.20371492207050323, 0.042194485664367676, 0.04360345005989075, 0.1631641387939453, 0.22557637095451355, 0.06447148323059082, -0.04053133726119995, 0.41898590326309204, -0.15359550714492798, 0.044402819126844406, 0.15069988369941711, 0.12219623476266861, -0.2109905183315277, -0.08776349574327469, -0.058692555874586105, -0.1046082004904747, -0.11376239359378815, 0.3114519715309143, -0.06390204280614853, -0.052166905254125595, 0.09888438880443573, 0.20194390416145325, 0.20774732530117035, -0.023915570229291916, -0.045702915638685226, -0.01833011768758297, 0.07870081812143326, -0.36523544788360596, 0.09147040545940399, 0.05968493968248367, -0.022996453568339348, 0.23533862829208374, 0.3357808589935303, -0.08331224322319031, -0.27876830101013184, 0.15750175714492798, -0.06761046499013901, 0.049658458679914474, -0.029231136664748192, 0.2691747844219208, 0.3636682331562042, 0.01982947438955307, -0.08000478148460388, -0.0291807409375906, 0.11315710842609406, 0.03275543451309204, 0.3520667254924774, -0.41420498490333557, 0.01714087277650833, 0.26187101006507874, -0.09400047361850739, 0.3780740201473236, -0.12554894387722015, -0.3512200713157654, 0.2893674969673157, 0.1102728322148323, -0.2677422761917114, -0.3457256853580475, 0.2865927219390869, 0.09862171113491058, -0.13123877346515656, 0.08572669327259064, 0.03362097591161728, -0.175693541765213, 0.3264602720737457, 0.10745001584291458, 0.40467289090156555, -0.4351034462451935, 0.35029444098472595, 0.26154080033302307, 0.28422534465789795, 0.14601637423038483, 0.17856799066066742, 0.21875332295894623, -0.23821283876895905, 0.16903115808963776, 0.11954767256975174, 0.26268380880355835, 0.1509535312652588, -0.08613228797912598, 0.06701529771089554, -0.29401710629463196, -0.019944211468100548, 0.32583969831466675, -0.10453639179468155, 0.37784793972969055, -0.056529201567173004, -0.1261495053768158, 0.18448041379451752, -0.0648224949836731, -0.28930339217185974, 0.1713668256998062, -0.257716566324234, -0.13739502429962158, 0.21688225865364075, -0.1606339067220688, -0.019861264154314995, -0.1444624960422516, 0.13803264498710632, 0.0017324393847957253, 0.520885169506073, 0.01909313164651394, -0.1504763811826706, -0.1149391308426857, -0.2739807069301605, 0.1826746165752411, 0.574524998664856, -0.18680262565612793, 0.09266521036624908, -0.2138541042804718, -0.023913895711302757, -0.09012360125780106, 0.3141933083534241, 0.17926965653896332, 0.4027068316936493, -0.14731566607952118, 0.08058671653270721, 0.2573627531528473, 0.09969516843557358, -0.03672872856259346, 0.4875115752220154, -0.17633211612701416, -0.39671391248703003, 0.052170850336551666, 0.06903262436389923, -0.03182893991470337, -0.159878209233284, -0.27112552523612976, 0.3679018020629883, -0.42208197712898254, 0.3023286759853363, -0.09546459466218948, 0.07348054647445679, -0.06744948029518127, 0.18109828233718872, -0.3221401572227478, 0.19769415259361267, 0.5176383852958679, -0.11355473101139069, 0.10175769776105881, -0.2707715630531311, 0.028198402374982834, -0.04055848345160484, 0.28504478931427, 0.4347328245639801, -0.25262537598609924, -0.20765456557273865, -0.2799331545829773, -0.46174946427345276, 0.37353914976119995, -0.14974632859230042, 0.28673529624938965, 0.023985834792256355, 0.10445927828550339, -0.05198587477207184, -0.0491727851331234, 0.3006143569946289, 0.1457592397928238, -0.2279878556728363, 0.30767202377319336, -0.347115695476532, -0.04059436917304993, -0.3000045418739319, 0.006751266308128834, 0.17163145542144775, -0.3455074727535248, 0.44448962807655334, 0.19556088745594025, 0.027293695136904716, -0.023400302976369858, 0.0678270012140274, 0.21913067996501923, -0.061096955090761185, 0.5450428128242493, 0.34657686948776245, 0.23694084584712982, -0.02093307487666607, -0.0934210866689682, -0.09495307505130768, -0.021004680544137955, -0.12074213474988937, 0.04701237007975578, -0.12103481590747833, 0.08204299956560135, -0.4738933742046356, 0.06515903770923615, -0.3022506833076477, -0.19563764333724976, 0.285624235868454, -0.0026553526986390352, -0.1738128811120987, -0.15563978254795074, -0.061037540435791016, 0.12765274941921234, 0.1668204516172409, 0.4713125228881836, -0.22909852862358093, 0.40365123748779297, -0.24905607104301453, -0.19765469431877136, 0.332988440990448, -0.6163411736488342, -0.45503005385398865, -0.22393643856048584, 0.13753284513950348, 0.11766275018453598, -0.33500033617019653, -0.6715467572212219, -0.18104346096515656, 0.31741300225257874, 0.0883677676320076, -0.0337381549179554, 0.1405462920665741, 0.04441051185131073, 0.248387411236763, -0.14568957686424255, 0.562300443649292, 0.05505119636654854, 0.029516639187932014, 0.22771422564983368, -0.1859033703804016 ]
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.19303973019123077, 0.12105359137058258, 0.05009523034095764, 0.1900940090417862, 0.007696408312767744, 0.036920804530382156, -0.016854621469974518, 0.230349600315094, 0.016732875257730484, -0.10844355076551437, 0.10299794375896454, 0.4139721691608429, 0.22491168975830078, -0.11172354966402054, -0.0011101675918325782, 0.24461309611797333, 0.30746155977249146, 0.3216938376426697, -0.15340007841587067, -0.20887596905231476, -0.2891753613948822, 0.1171131432056427, -0.3328206539154053, -0.09242883324623108, -0.4170508086681366, 0.21232815086841583, -0.01687738299369812, -0.4208398163318634, 0.11226102709770203, -0.2555868923664093, 0.31771525740623474, 0.08582885563373566, 0.1992190182209015, 0.5570233464241028, -0.00012582034105435014, -0.2676018178462982, 0.35409557819366455, -0.06947381794452667, -0.20524652302265167, 0.07682114094495773, -0.2844763696193695, 0.03804450482130051, -0.11269354075193405, 0.023366780951619148, 0.05843912065029144, 0.05870900675654411, 0.03796575218439102, -0.651489794254303, 0.3060208261013031, 0.16291067004203796, 0.10259272158145905, 0.03327663615345955, -0.0953422263264656, 0.23458071053028107, 0.05020353943109512, -0.012024977244436741, -0.03874331712722778, -0.3330446481704712, 0.16303810477256775, -0.35232001543045044, 0.062147341668605804, 0.5163406133651733, -0.17574386298656464, -0.14190331101417542, 0.38706666231155396, -0.011780300177633762, 0.017935479059815407, -0.26469945907592773, 0.30206117033958435, -0.06447049975395203, 0.5929009318351746, -0.37321269512176514, -0.44535815715789795, -0.22181451320648193, -0.21839658915996552, -0.1797122061252594, 0.3478952944278717, -0.28142228722572327, 0.11512474715709686, 0.13677744567394257, -0.5952906608581543, -0.3717098534107208, 0.2665029466152191, 0.12685056030750275, -0.01260343100875616, 0.11883042752742767, -0.044264815747737885, 0.1275973916053772, -0.2583602964878082, 0.030563021078705788, 0.27869293093681335, -0.5107079744338989, -0.020412225276231766, 0.4761812090873718, -0.4573768079280853, -0.11419951170682907, -0.08139645308256149, 0.04445686191320419, 0.031320422887802124, 0.2521776556968689, -0.10787035524845123, 0.08482912182807922, -0.10457468777894974, -0.0248277448117733, 0.1717996895313263, 0.3819054365158081, 0.1599486917257309, 0.39592838287353516, -0.04663252830505371, -0.2572211027145386, -0.4361523687839508, -0.14235122501850128, 0.10150948166847229, 0.0623168870806694, 0.5376326441764832, 0.02919928915798664, -0.26707160472869873, -0.15271909534931183, 0.13509275019168854, 0.11047417670488358, -0.11315091699361801, -0.15427255630493164, 0.02068694867193699, 0.18612311780452728, -0.2187199592590332, 0.5657739043235779, -0.04890294745564461, 0.011322748847305775, -0.22690710425376892, -0.07549546658992767, -0.2520526945590973, -0.19494126737117767, -0.27974095940589905, 0.42401155829429626, 0.10798024386167526, -0.008758087642490864, 0.19316472113132477, 0.11374605447053909, 0.14129090309143066, -0.24853108823299408, 0.24508054554462433, -0.19523505866527557, 0.14468862116336823, 0.03134084492921829, -0.12242688983678818, 0.5588545203208923, 0.023827478289604187, 0.08207148313522339, -0.05783001706004143, 0.27935072779655457, -0.3909233510494232, -0.0032500524539500475, 0.2678493857383728, 0.07660143822431564, -0.10498792678117752, -0.051326628774404526, -0.13654571771621704, -0.047727588564157486, 0.6230668425559998, -0.35340210795402527, 0.0028585020918399096, -0.13695408403873444, -0.21816031634807587, -0.35522353649139404, 0.19640220701694489, 0.4151434600353241, -0.2202998548746109, -0.12714450061321259, -0.28924858570098877, 0.426225483417511, 0.34562963247299194, 0.19041231274604797, -0.09975980967283249, 0.22389723360538483, -0.24362346529960632, 0.25334683060646057, 0.3463950753211975, -0.3264118731021881, -0.7522772550582886, -0.06231728941202164, 0.23955361545085907, 0.21382352709770203, -0.2641489505767822, 0.009117872454226017, 0.05857640877366066, 0.022013159468770027, -0.04730687662959099, 0.12475962191820145, 0.07109547406435013, 0.04794073849916458, -0.19342058897018433, -0.32378387451171875, 0.3307865262031555, -0.15344908833503723, 0.37343546748161316, 0.2039111852645874, -0.27863258123397827, -0.06542805582284927, 0.18977905809879303, -0.07331205159425735, 0.20456774532794952, 0.21111206710338593, 0.08593940734863281, 0.09632904827594757, 0.3425366282463074, -0.14452601969242096, -0.2208445817232132, 0.23615960776805878, -0.007498647551983595, -0.40805086493492126, 0.05238057300448418, -0.06938178837299347, 0.03421018645167351, -0.175143763422966, -0.23687277734279633, -0.25076767802238464, 0.04695954918861389, 0.2982925772666931, 0.21583321690559387, 0.049326181411743164, -0.06285553425550461, 0.4346974194049835, 0.22479590773582458, -0.04744863137602806, -0.13699758052825928, 0.23143866658210754, 0.13785360753536224, -0.07235319167375565, -0.2622562646865845, -0.00778931612148881, 0.3865087926387787, 0.20507778227329254, -0.17280897498130798, 0.19992296397686005, 0.2821436822414398, 0.1305399239063263, -0.15808667242527008, 0.03777472674846649, -0.09649782627820969, 0.07604570686817169, -0.1803533136844635, 0.018961267545819283, 0.09124242514371872, -0.20247383415699005, 0.33897078037261963, -0.09822407364845276, 0.04353908449411392, 0.17285247147083282, -0.17387163639068604, -0.11649678647518158, -0.019416239112615585, -0.0575413778424263, 0.1215716078877449, -0.2605114281177521, -0.12677477300167084, -0.10074332356452942, 0.401877224445343, 0.14800004661083221, 0.31708675622940063, 0.143103688955307, 0.5319448709487915, 0.16380399465560913, 0.07024995237588882, -0.0754965990781784, -0.5950475931167603, -0.15330524742603302, 0.04206778481602669, 0.10673371702432632, 0.4031670391559601, 0.014067539013922215, 0.13723479211330414, -0.1065349131822586, 0.1262340545654297, 0.053673528134822845, 0.08399113267660141, 0.05157450959086418, 0.0034556027967482805, 0.16232971847057343, 0.08191739767789841, 0.12391875684261322, -0.15448541939258575, 0.3739548623561859, 0.2223702222108841, 0.02240816131234169, -0.12013319879770279, -0.00478295749053359, -0.4614659547805786, 0.261646568775177, -0.009416875429451466, -0.1877424418926239, -0.10895342379808426, -0.324039489030838, -0.029372170567512512, 0.1750340610742569, 0.2323509305715561, 0.17026571929454803, -0.10677231103181839, 0.16378827393054962, -0.09658548980951309, -0.06340805441141129, -0.2861727774143219, -0.044225990772247314, -0.35160255432128906, -0.10436893999576569, 0.027629343792796135, -0.33324286341667175, 0.10926838964223862, -0.19780008494853973, 0.0448768176138401, -0.33049559593200684, -0.24961456656455994, 0.06872592121362686, 0.14242184162139893, -0.19136133790016174, -0.1454962193965912, -0.13314539194107056, -0.34062281250953674, -0.07776247709989548, 0.10528567433357239, -0.37550318241119385, -0.05899621918797493, -0.19424261152744293, 0.2268970012664795, -0.0732838585972786, 0.06139051169157028, -0.09878186881542206, 0.04506326839327812, 0.05235729739069939, -0.09228051453828812, -0.12052027136087418, -0.0991954654455185, -0.10735233873128891, -0.17789514362812042, -0.14736923575401306, -0.2940424978733063, -0.12250339984893799, -0.5240328907966614, -0.299807071685791, 0.5365321040153503, -0.12470094859600067, -0.07930242270231247, -0.10533624142408371, -0.029494427144527435, 0.30539819598197937, 0.4665095806121826, -0.5257645845413208, -0.06458020210266113, -0.20277529954910278, -0.18987318873405457, -0.14755605161190033, 0.304158478975296, 0.39526307582855225, 0.1911337524652481, 0.12846551835536957, -0.42857128381729126, -0.20330052077770233, 0.02070465125143528, 0.001100255991332233, 0.4422146677970886, -0.03273020684719086, 0.20218324661254883, -0.08188968896865845, 0.8030891418457031, 0.6181529760360718, -0.21779575943946838, 0.2308453619480133, 0.11477848142385483, 0.32557910680770874, -0.14092764258384705, -0.1978883594274521, -0.13673223555088043, -0.3422302007675171, 0.0949932411313057, 0.1833510845899582, 0.14252431690692902, -0.31204643845558167, -0.15705417096614838, 0.0919291153550148, -0.31127041578292847, -0.329712837934494, -0.08052355796098709, -0.24852938950061798, 0.30680644512176514, 0.3510836064815521, 0.3141096830368042, -0.7173698544502258, -0.12203852087259293, 0.25282853841781616, -0.21448294818401337, 0.4689779281616211, 0.11479673534631729, -0.21096202731132507, -0.13886485993862152, -0.34431955218315125, 0.32094505429267883, 0.2275707721710205, 0.36690187454223633, 0.21778446435928345, 0.017415648326277733, -0.15085691213607788, 0.10885700583457947, 0.43157047033309937, -0.7976596355438232, -0.3380016088485718, -0.11149260401725769, -0.0554739348590374, -0.02103247307240963, -0.04060234874486923, 0.35104095935821533, 0.22571174800395966, 0.04130096361041069, 0.27442067861557007, 0.038552675396203995, 0.007579803001135588, -0.3233845829963684, 0.17293350398540497, -0.2346343696117401, -0.31523340940475464, -0.09866069257259369, 0.2701245844364166, -0.09006103873252869, -0.29964253306388855, 0.028633303940296173, -0.1689184010028839, 0.05742347985506058, -0.17377318441867828, -0.3051755428314209, 0.057997025549411774, 0.10664684325456619, 0.02927418425679207, 0.5556051731109619, -0.028239179402589798, 0.32085102796554565, 0.1760169118642807, 0.01832975633442402, 0.07111623883247375, 0.28076955676078796, -0.14288769662380219, -0.23373715579509735, -0.08970503509044647, -0.09232740104198456, 0.25708985328674316, -0.03196338564157486, -0.20561115443706512, -0.0013496690662577748, -0.25531965494155884, 0.0258849635720253, -0.21138550341129303, 0.13468845188617706, 0.3652513027191162, 0.3597349226474762, -0.4407241940498352, -0.47052425146102905, 0.17312708497047424, 0.27375149726867676, -0.18334776163101196, 0.5526416897773743, -0.08299677819013596, -0.2301500290632248, 0.1558230221271515, 0.04462812468409538, 1.0017775297164917, 0.029243089258670807, 0.09188635647296906, -0.24999116361141205, 0.05647746101021767, 0.6650124192237854, -0.37294575572013855, 0.33067646622657776, -0.285880982875824, -0.21053071320056915, -0.18871095776557922, -0.22684414684772491, -0.08356181532144547, 0.2917119860649109, -0.19944006204605103, 0.49630892276763916, 0.05405128374695778, 0.5679222941398621, 0.2249377965927124, 0.0703192949295044, 0.19062358140945435, -0.11996658891439438, 0.26166588068008423, 0.07315398007631302, 0.17532464861869812, 0.393557608127594, -0.09098991006612778, 0.11189216375350952, 0.09075026214122772, -0.09879778325557709, -0.28079530596733093, 0.10617554932832718, -0.3655882775783539, 0.25313207507133484, -0.0505572184920311, 0.1743306666612625, 0.10042348504066467, 0.35758069157600403, 0.5060390830039978, 0.2082124948501587, -0.18855232000350952, 0.1358560174703598, 0.15580900013446808, 0.2617044150829315, -0.14115628600120544, -0.22638298571109772, 0.02807364985346794, 0.0002936705423053354, -0.2079179286956787, -0.010965985246002674, 0.03262742981314659, -0.4142286777496338, -0.35285744071006775, -0.027025887742638588, 0.3227243721485138, -0.2036619931459427, 0.070591501891613, 0.18813110888004303, 0.06304744631052017, -0.04375726729631424, 0.038056690245866776, -0.02218334563076496, 0.07383871078491211, 0.5688586831092834, -0.2717239260673523, -0.13928799331188202, -0.013238893821835518, 0.4597800076007843, 0.33614450693130493, -0.17775198817253113, 0.5680022835731506, -0.22002509236335754, -0.24020403623580933, -0.0472225546836853, -0.4798617959022522, 0.05840074270963669, -0.3148992657661438, -0.03784684091806412, -0.396668940782547, 0.06053059920668602, 0.1406709849834442, -0.05752182751893997, -0.03074604831635952, -0.199377179145813, -0.12169604003429413, -0.22992053627967834, -0.20371492207050323, 0.042194485664367676, 0.04360345005989075, 0.1631641387939453, 0.22557637095451355, 0.06447148323059082, -0.04053133726119995, 0.41898590326309204, -0.15359550714492798, 0.044402819126844406, 0.15069988369941711, 0.12219623476266861, -0.2109905183315277, -0.08776349574327469, -0.058692555874586105, -0.1046082004904747, -0.11376239359378815, 0.3114519715309143, -0.06390204280614853, -0.052166905254125595, 0.09888438880443573, 0.20194390416145325, 0.20774732530117035, -0.023915570229291916, -0.045702915638685226, -0.01833011768758297, 0.07870081812143326, -0.36523544788360596, 0.09147040545940399, 0.05968493968248367, -0.022996453568339348, 0.23533862829208374, 0.3357808589935303, -0.08331224322319031, -0.27876830101013184, 0.15750175714492798, -0.06761046499013901, 0.049658458679914474, -0.029231136664748192, 0.2691747844219208, 0.3636682331562042, 0.01982947438955307, -0.08000478148460388, -0.0291807409375906, 0.11315710842609406, 0.03275543451309204, 0.3520667254924774, -0.41420498490333557, 0.01714087277650833, 0.26187101006507874, -0.09400047361850739, 0.3780740201473236, -0.12554894387722015, -0.3512200713157654, 0.2893674969673157, 0.1102728322148323, -0.2677422761917114, -0.3457256853580475, 0.2865927219390869, 0.09862171113491058, -0.13123877346515656, 0.08572669327259064, 0.03362097591161728, -0.175693541765213, 0.3264602720737457, 0.10745001584291458, 0.40467289090156555, -0.4351034462451935, 0.35029444098472595, 0.26154080033302307, 0.28422534465789795, 0.14601637423038483, 0.17856799066066742, 0.21875332295894623, -0.23821283876895905, 0.16903115808963776, 0.11954767256975174, 0.26268380880355835, 0.1509535312652588, -0.08613228797912598, 0.06701529771089554, -0.29401710629463196, -0.019944211468100548, 0.32583969831466675, -0.10453639179468155, 0.37784793972969055, -0.056529201567173004, -0.1261495053768158, 0.18448041379451752, -0.0648224949836731, -0.28930339217185974, 0.1713668256998062, -0.257716566324234, -0.13739502429962158, 0.21688225865364075, -0.1606339067220688, -0.019861264154314995, -0.1444624960422516, 0.13803264498710632, 0.0017324393847957253, 0.520885169506073, 0.01909313164651394, -0.1504763811826706, -0.1149391308426857, -0.2739807069301605, 0.1826746165752411, 0.574524998664856, -0.18680262565612793, 0.09266521036624908, -0.2138541042804718, -0.023913895711302757, -0.09012360125780106, 0.3141933083534241, 0.17926965653896332, 0.4027068316936493, -0.14731566607952118, 0.08058671653270721, 0.2573627531528473, 0.09969516843557358, -0.03672872856259346, 0.4875115752220154, -0.17633211612701416, -0.39671391248703003, 0.052170850336551666, 0.06903262436389923, -0.03182893991470337, -0.159878209233284, -0.27112552523612976, 0.3679018020629883, -0.42208197712898254, 0.3023286759853363, -0.09546459466218948, 0.07348054647445679, -0.06744948029518127, 0.18109828233718872, -0.3221401572227478, 0.19769415259361267, 0.5176383852958679, -0.11355473101139069, 0.10175769776105881, -0.2707715630531311, 0.028198402374982834, -0.04055848345160484, 0.28504478931427, 0.4347328245639801, -0.25262537598609924, -0.20765456557273865, -0.2799331545829773, -0.46174946427345276, 0.37353914976119995, -0.14974632859230042, 0.28673529624938965, 0.023985834792256355, 0.10445927828550339, -0.05198587477207184, -0.0491727851331234, 0.3006143569946289, 0.1457592397928238, -0.2279878556728363, 0.30767202377319336, -0.347115695476532, -0.04059436917304993, -0.3000045418739319, 0.006751266308128834, 0.17163145542144775, -0.3455074727535248, 0.44448962807655334, 0.19556088745594025, 0.027293695136904716, -0.023400302976369858, 0.0678270012140274, 0.21913067996501923, -0.061096955090761185, 0.5450428128242493, 0.34657686948776245, 0.23694084584712982, -0.02093307487666607, -0.0934210866689682, -0.09495307505130768, -0.021004680544137955, -0.12074213474988937, 0.04701237007975578, -0.12103481590747833, 0.08204299956560135, -0.4738933742046356, 0.06515903770923615, -0.3022506833076477, -0.19563764333724976, 0.285624235868454, -0.0026553526986390352, -0.1738128811120987, -0.15563978254795074, -0.061037540435791016, 0.12765274941921234, 0.1668204516172409, 0.4713125228881836, -0.22909852862358093, 0.40365123748779297, -0.24905607104301453, -0.19765469431877136, 0.332988440990448, -0.6163411736488342, -0.45503005385398865, -0.22393643856048584, 0.13753284513950348, 0.11766275018453598, -0.33500033617019653, -0.6715467572212219, -0.18104346096515656, 0.31741300225257874, 0.0883677676320076, -0.0337381549179554, 0.1405462920665741, 0.04441051185131073, 0.248387411236763, -0.14568957686424255, 0.562300443649292, 0.05505119636654854, 0.029516639187932014, 0.22771422564983368, -0.1859033703804016 ]
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.19303973019123077, 0.12105359137058258, 0.05009523034095764, 0.1900940090417862, 0.007696408312767744, 0.036920804530382156, -0.016854621469974518, 0.230349600315094, 0.016732875257730484, -0.10844355076551437, 0.10299794375896454, 0.4139721691608429, 0.22491168975830078, -0.11172354966402054, -0.0011101675918325782, 0.24461309611797333, 0.30746155977249146, 0.3216938376426697, -0.15340007841587067, -0.20887596905231476, -0.2891753613948822, 0.1171131432056427, -0.3328206539154053, -0.09242883324623108, -0.4170508086681366, 0.21232815086841583, -0.01687738299369812, -0.4208398163318634, 0.11226102709770203, -0.2555868923664093, 0.31771525740623474, 0.08582885563373566, 0.1992190182209015, 0.5570233464241028, -0.00012582034105435014, -0.2676018178462982, 0.35409557819366455, -0.06947381794452667, -0.20524652302265167, 0.07682114094495773, -0.2844763696193695, 0.03804450482130051, -0.11269354075193405, 0.023366780951619148, 0.05843912065029144, 0.05870900675654411, 0.03796575218439102, -0.651489794254303, 0.3060208261013031, 0.16291067004203796, 0.10259272158145905, 0.03327663615345955, -0.0953422263264656, 0.23458071053028107, 0.05020353943109512, -0.012024977244436741, -0.03874331712722778, -0.3330446481704712, 0.16303810477256775, -0.35232001543045044, 0.062147341668605804, 0.5163406133651733, -0.17574386298656464, -0.14190331101417542, 0.38706666231155396, -0.011780300177633762, 0.017935479059815407, -0.26469945907592773, 0.30206117033958435, -0.06447049975395203, 0.5929009318351746, -0.37321269512176514, -0.44535815715789795, -0.22181451320648193, -0.21839658915996552, -0.1797122061252594, 0.3478952944278717, -0.28142228722572327, 0.11512474715709686, 0.13677744567394257, -0.5952906608581543, -0.3717098534107208, 0.2665029466152191, 0.12685056030750275, -0.01260343100875616, 0.11883042752742767, -0.044264815747737885, 0.1275973916053772, -0.2583602964878082, 0.030563021078705788, 0.27869293093681335, -0.5107079744338989, -0.020412225276231766, 0.4761812090873718, -0.4573768079280853, -0.11419951170682907, -0.08139645308256149, 0.04445686191320419, 0.031320422887802124, 0.2521776556968689, -0.10787035524845123, 0.08482912182807922, -0.10457468777894974, -0.0248277448117733, 0.1717996895313263, 0.3819054365158081, 0.1599486917257309, 0.39592838287353516, -0.04663252830505371, -0.2572211027145386, -0.4361523687839508, -0.14235122501850128, 0.10150948166847229, 0.0623168870806694, 0.5376326441764832, 0.02919928915798664, -0.26707160472869873, -0.15271909534931183, 0.13509275019168854, 0.11047417670488358, -0.11315091699361801, -0.15427255630493164, 0.02068694867193699, 0.18612311780452728, -0.2187199592590332, 0.5657739043235779, -0.04890294745564461, 0.011322748847305775, -0.22690710425376892, -0.07549546658992767, -0.2520526945590973, -0.19494126737117767, -0.27974095940589905, 0.42401155829429626, 0.10798024386167526, -0.008758087642490864, 0.19316472113132477, 0.11374605447053909, 0.14129090309143066, -0.24853108823299408, 0.24508054554462433, -0.19523505866527557, 0.14468862116336823, 0.03134084492921829, -0.12242688983678818, 0.5588545203208923, 0.023827478289604187, 0.08207148313522339, -0.05783001706004143, 0.27935072779655457, -0.3909233510494232, -0.0032500524539500475, 0.2678493857383728, 0.07660143822431564, -0.10498792678117752, -0.051326628774404526, -0.13654571771621704, -0.047727588564157486, 0.6230668425559998, -0.35340210795402527, 0.0028585020918399096, -0.13695408403873444, -0.21816031634807587, -0.35522353649139404, 0.19640220701694489, 0.4151434600353241, -0.2202998548746109, -0.12714450061321259, -0.28924858570098877, 0.426225483417511, 0.34562963247299194, 0.19041231274604797, -0.09975980967283249, 0.22389723360538483, -0.24362346529960632, 0.25334683060646057, 0.3463950753211975, -0.3264118731021881, -0.7522772550582886, -0.06231728941202164, 0.23955361545085907, 0.21382352709770203, -0.2641489505767822, 0.009117872454226017, 0.05857640877366066, 0.022013159468770027, -0.04730687662959099, 0.12475962191820145, 0.07109547406435013, 0.04794073849916458, -0.19342058897018433, -0.32378387451171875, 0.3307865262031555, -0.15344908833503723, 0.37343546748161316, 0.2039111852645874, -0.27863258123397827, -0.06542805582284927, 0.18977905809879303, -0.07331205159425735, 0.20456774532794952, 0.21111206710338593, 0.08593940734863281, 0.09632904827594757, 0.3425366282463074, -0.14452601969242096, -0.2208445817232132, 0.23615960776805878, -0.007498647551983595, -0.40805086493492126, 0.05238057300448418, -0.06938178837299347, 0.03421018645167351, -0.175143763422966, -0.23687277734279633, -0.25076767802238464, 0.04695954918861389, 0.2982925772666931, 0.21583321690559387, 0.049326181411743164, -0.06285553425550461, 0.4346974194049835, 0.22479590773582458, -0.04744863137602806, -0.13699758052825928, 0.23143866658210754, 0.13785360753536224, -0.07235319167375565, -0.2622562646865845, -0.00778931612148881, 0.3865087926387787, 0.20507778227329254, -0.17280897498130798, 0.19992296397686005, 0.2821436822414398, 0.1305399239063263, -0.15808667242527008, 0.03777472674846649, -0.09649782627820969, 0.07604570686817169, -0.1803533136844635, 0.018961267545819283, 0.09124242514371872, -0.20247383415699005, 0.33897078037261963, -0.09822407364845276, 0.04353908449411392, 0.17285247147083282, -0.17387163639068604, -0.11649678647518158, -0.019416239112615585, -0.0575413778424263, 0.1215716078877449, -0.2605114281177521, -0.12677477300167084, -0.10074332356452942, 0.401877224445343, 0.14800004661083221, 0.31708675622940063, 0.143103688955307, 0.5319448709487915, 0.16380399465560913, 0.07024995237588882, -0.0754965990781784, -0.5950475931167603, -0.15330524742603302, 0.04206778481602669, 0.10673371702432632, 0.4031670391559601, 0.014067539013922215, 0.13723479211330414, -0.1065349131822586, 0.1262340545654297, 0.053673528134822845, 0.08399113267660141, 0.05157450959086418, 0.0034556027967482805, 0.16232971847057343, 0.08191739767789841, 0.12391875684261322, -0.15448541939258575, 0.3739548623561859, 0.2223702222108841, 0.02240816131234169, -0.12013319879770279, -0.00478295749053359, -0.4614659547805786, 0.261646568775177, -0.009416875429451466, -0.1877424418926239, -0.10895342379808426, -0.324039489030838, -0.029372170567512512, 0.1750340610742569, 0.2323509305715561, 0.17026571929454803, -0.10677231103181839, 0.16378827393054962, -0.09658548980951309, -0.06340805441141129, -0.2861727774143219, -0.044225990772247314, -0.35160255432128906, -0.10436893999576569, 0.027629343792796135, -0.33324286341667175, 0.10926838964223862, -0.19780008494853973, 0.0448768176138401, -0.33049559593200684, -0.24961456656455994, 0.06872592121362686, 0.14242184162139893, -0.19136133790016174, -0.1454962193965912, -0.13314539194107056, -0.34062281250953674, -0.07776247709989548, 0.10528567433357239, -0.37550318241119385, -0.05899621918797493, -0.19424261152744293, 0.2268970012664795, -0.0732838585972786, 0.06139051169157028, -0.09878186881542206, 0.04506326839327812, 0.05235729739069939, -0.09228051453828812, -0.12052027136087418, -0.0991954654455185, -0.10735233873128891, -0.17789514362812042, -0.14736923575401306, -0.2940424978733063, -0.12250339984893799, -0.5240328907966614, -0.299807071685791, 0.5365321040153503, -0.12470094859600067, -0.07930242270231247, -0.10533624142408371, -0.029494427144527435, 0.30539819598197937, 0.4665095806121826, -0.5257645845413208, -0.06458020210266113, -0.20277529954910278, -0.18987318873405457, -0.14755605161190033, 0.304158478975296, 0.39526307582855225, 0.1911337524652481, 0.12846551835536957, -0.42857128381729126, -0.20330052077770233, 0.02070465125143528, 0.001100255991332233, 0.4422146677970886, -0.03273020684719086, 0.20218324661254883, -0.08188968896865845, 0.8030891418457031, 0.6181529760360718, -0.21779575943946838, 0.2308453619480133, 0.11477848142385483, 0.32557910680770874, -0.14092764258384705, -0.1978883594274521, -0.13673223555088043, -0.3422302007675171, 0.0949932411313057, 0.1833510845899582, 0.14252431690692902, -0.31204643845558167, -0.15705417096614838, 0.0919291153550148, -0.31127041578292847, -0.329712837934494, -0.08052355796098709, -0.24852938950061798, 0.30680644512176514, 0.3510836064815521, 0.3141096830368042, -0.7173698544502258, -0.12203852087259293, 0.25282853841781616, -0.21448294818401337, 0.4689779281616211, 0.11479673534631729, -0.21096202731132507, -0.13886485993862152, -0.34431955218315125, 0.32094505429267883, 0.2275707721710205, 0.36690187454223633, 0.21778446435928345, 0.017415648326277733, -0.15085691213607788, 0.10885700583457947, 0.43157047033309937, -0.7976596355438232, -0.3380016088485718, -0.11149260401725769, -0.0554739348590374, -0.02103247307240963, -0.04060234874486923, 0.35104095935821533, 0.22571174800395966, 0.04130096361041069, 0.27442067861557007, 0.038552675396203995, 0.007579803001135588, -0.3233845829963684, 0.17293350398540497, -0.2346343696117401, -0.31523340940475464, -0.09866069257259369, 0.2701245844364166, -0.09006103873252869, -0.29964253306388855, 0.028633303940296173, -0.1689184010028839, 0.05742347985506058, -0.17377318441867828, -0.3051755428314209, 0.057997025549411774, 0.10664684325456619, 0.02927418425679207, 0.5556051731109619, -0.028239179402589798, 0.32085102796554565, 0.1760169118642807, 0.01832975633442402, 0.07111623883247375, 0.28076955676078796, -0.14288769662380219, -0.23373715579509735, -0.08970503509044647, -0.09232740104198456, 0.25708985328674316, -0.03196338564157486, -0.20561115443706512, -0.0013496690662577748, -0.25531965494155884, 0.0258849635720253, -0.21138550341129303, 0.13468845188617706, 0.3652513027191162, 0.3597349226474762, -0.4407241940498352, -0.47052425146102905, 0.17312708497047424, 0.27375149726867676, -0.18334776163101196, 0.5526416897773743, -0.08299677819013596, -0.2301500290632248, 0.1558230221271515, 0.04462812468409538, 1.0017775297164917, 0.029243089258670807, 0.09188635647296906, -0.24999116361141205, 0.05647746101021767, 0.6650124192237854, -0.37294575572013855, 0.33067646622657776, -0.285880982875824, -0.21053071320056915, -0.18871095776557922, -0.22684414684772491, -0.08356181532144547, 0.2917119860649109, -0.19944006204605103, 0.49630892276763916, 0.05405128374695778, 0.5679222941398621, 0.2249377965927124, 0.0703192949295044, 0.19062358140945435, -0.11996658891439438, 0.26166588068008423, 0.07315398007631302, 0.17532464861869812, 0.393557608127594, -0.09098991006612778, 0.11189216375350952, 0.09075026214122772, -0.09879778325557709, -0.28079530596733093, 0.10617554932832718, -0.3655882775783539, 0.25313207507133484, -0.0505572184920311, 0.1743306666612625, 0.10042348504066467, 0.35758069157600403, 0.5060390830039978, 0.2082124948501587, -0.18855232000350952, 0.1358560174703598, 0.15580900013446808, 0.2617044150829315, -0.14115628600120544, -0.22638298571109772, 0.02807364985346794, 0.0002936705423053354, -0.2079179286956787, -0.010965985246002674, 0.03262742981314659, -0.4142286777496338, -0.35285744071006775, -0.027025887742638588, 0.3227243721485138, -0.2036619931459427, 0.070591501891613, 0.18813110888004303, 0.06304744631052017, -0.04375726729631424, 0.038056690245866776, -0.02218334563076496, 0.07383871078491211, 0.5688586831092834, -0.2717239260673523, -0.13928799331188202, -0.013238893821835518, 0.4597800076007843, 0.33614450693130493, -0.17775198817253113, 0.5680022835731506, -0.22002509236335754, -0.24020403623580933, -0.0472225546836853, -0.4798617959022522, 0.05840074270963669, -0.3148992657661438, -0.03784684091806412, -0.396668940782547, 0.06053059920668602, 0.1406709849834442, -0.05752182751893997, -0.03074604831635952, -0.199377179145813, -0.12169604003429413, -0.22992053627967834, -0.20371492207050323, 0.042194485664367676, 0.04360345005989075, 0.1631641387939453, 0.22557637095451355, 0.06447148323059082, -0.04053133726119995, 0.41898590326309204, -0.15359550714492798, 0.044402819126844406, 0.15069988369941711, 0.12219623476266861, -0.2109905183315277, -0.08776349574327469, -0.058692555874586105, -0.1046082004904747, -0.11376239359378815, 0.3114519715309143, -0.06390204280614853, -0.052166905254125595, 0.09888438880443573, 0.20194390416145325, 0.20774732530117035, -0.023915570229291916, -0.045702915638685226, -0.01833011768758297, 0.07870081812143326, -0.36523544788360596, 0.09147040545940399, 0.05968493968248367, -0.022996453568339348, 0.23533862829208374, 0.3357808589935303, -0.08331224322319031, -0.27876830101013184, 0.15750175714492798, -0.06761046499013901, 0.049658458679914474, -0.029231136664748192, 0.2691747844219208, 0.3636682331562042, 0.01982947438955307, -0.08000478148460388, -0.0291807409375906, 0.11315710842609406, 0.03275543451309204, 0.3520667254924774, -0.41420498490333557, 0.01714087277650833, 0.26187101006507874, -0.09400047361850739, 0.3780740201473236, -0.12554894387722015, -0.3512200713157654, 0.2893674969673157, 0.1102728322148323, -0.2677422761917114, -0.3457256853580475, 0.2865927219390869, 0.09862171113491058, -0.13123877346515656, 0.08572669327259064, 0.03362097591161728, -0.175693541765213, 0.3264602720737457, 0.10745001584291458, 0.40467289090156555, -0.4351034462451935, 0.35029444098472595, 0.26154080033302307, 0.28422534465789795, 0.14601637423038483, 0.17856799066066742, 0.21875332295894623, -0.23821283876895905, 0.16903115808963776, 0.11954767256975174, 0.26268380880355835, 0.1509535312652588, -0.08613228797912598, 0.06701529771089554, -0.29401710629463196, -0.019944211468100548, 0.32583969831466675, -0.10453639179468155, 0.37784793972969055, -0.056529201567173004, -0.1261495053768158, 0.18448041379451752, -0.0648224949836731, -0.28930339217185974, 0.1713668256998062, -0.257716566324234, -0.13739502429962158, 0.21688225865364075, -0.1606339067220688, -0.019861264154314995, -0.1444624960422516, 0.13803264498710632, 0.0017324393847957253, 0.520885169506073, 0.01909313164651394, -0.1504763811826706, -0.1149391308426857, -0.2739807069301605, 0.1826746165752411, 0.574524998664856, -0.18680262565612793, 0.09266521036624908, -0.2138541042804718, -0.023913895711302757, -0.09012360125780106, 0.3141933083534241, 0.17926965653896332, 0.4027068316936493, -0.14731566607952118, 0.08058671653270721, 0.2573627531528473, 0.09969516843557358, -0.03672872856259346, 0.4875115752220154, -0.17633211612701416, -0.39671391248703003, 0.052170850336551666, 0.06903262436389923, -0.03182893991470337, -0.159878209233284, -0.27112552523612976, 0.3679018020629883, -0.42208197712898254, 0.3023286759853363, -0.09546459466218948, 0.07348054647445679, -0.06744948029518127, 0.18109828233718872, -0.3221401572227478, 0.19769415259361267, 0.5176383852958679, -0.11355473101139069, 0.10175769776105881, -0.2707715630531311, 0.028198402374982834, -0.04055848345160484, 0.28504478931427, 0.4347328245639801, -0.25262537598609924, -0.20765456557273865, -0.2799331545829773, -0.46174946427345276, 0.37353914976119995, -0.14974632859230042, 0.28673529624938965, 0.023985834792256355, 0.10445927828550339, -0.05198587477207184, -0.0491727851331234, 0.3006143569946289, 0.1457592397928238, -0.2279878556728363, 0.30767202377319336, -0.347115695476532, -0.04059436917304993, -0.3000045418739319, 0.006751266308128834, 0.17163145542144775, -0.3455074727535248, 0.44448962807655334, 0.19556088745594025, 0.027293695136904716, -0.023400302976369858, 0.0678270012140274, 0.21913067996501923, -0.061096955090761185, 0.5450428128242493, 0.34657686948776245, 0.23694084584712982, -0.02093307487666607, -0.0934210866689682, -0.09495307505130768, -0.021004680544137955, -0.12074213474988937, 0.04701237007975578, -0.12103481590747833, 0.08204299956560135, -0.4738933742046356, 0.06515903770923615, -0.3022506833076477, -0.19563764333724976, 0.285624235868454, -0.0026553526986390352, -0.1738128811120987, -0.15563978254795074, -0.061037540435791016, 0.12765274941921234, 0.1668204516172409, 0.4713125228881836, -0.22909852862358093, 0.40365123748779297, -0.24905607104301453, -0.19765469431877136, 0.332988440990448, -0.6163411736488342, -0.45503005385398865, -0.22393643856048584, 0.13753284513950348, 0.11766275018453598, -0.33500033617019653, -0.6715467572212219, -0.18104346096515656, 0.31741300225257874, 0.0883677676320076, -0.0337381549179554, 0.1405462920665741, 0.04441051185131073, 0.248387411236763, -0.14568957686424255, 0.562300443649292, 0.05505119636654854, 0.029516639187932014, 0.22771422564983368, -0.1859033703804016 ]
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.15889401733875275, -0.19734807312488556, -0.06765351444482803, 0.14704017341136932, 0.14846521615982056, -0.10716113448143005, -0.20455001294612885, -0.04013678431510925, 0.08734124153852463, -0.0903792604804039, -0.082183338701725, 0.015894493088126183, -0.008538632653653622, 0.4948687255382538, 0.1395401656627655, -0.24667055904865265, 0.22985176742076874, -0.09968150407075882, -0.026661956682801247, -0.28331005573272705, -0.0561358779668808, 0.22723720967769623, 0.10436888784170151, -0.18677416443824768, -0.07000651210546494, -0.2488318234682083, -0.30255189538002014, 0.3253336548805237, -0.40198713541030884, -0.33362916111946106, -0.00904643815010786, 0.4374467730522156, 0.015300603583455086, 0.3517856001853943, -0.0001106163690565154, -0.15750280022621155, 0.3256411850452423, -0.0009350514737889171, -0.20851393043994904, -0.11260750144720078, -0.16208398342132568, -0.09640961140394211, 0.02182534523308277, 0.07152020186185837, -0.07105761021375656, -0.0761897936463356, -0.14830735325813293, -0.12420116364955902, 0.32085201144218445, 0.09930611401796341, 0.21830430626869202, 0.23325254023075104, 0.1796126365661621, -0.20709006488323212, -0.05115309730172157, 0.291259229183197, -0.04738204553723335, 0.3453991115093231, 0.16745829582214355, 0.3302258551120758, 0.02570095844566822, 0.46530088782310486, -0.03886324539780617, -0.17890998721122742, 0.6320387125015259, 0.02137310616672039, -0.3761972188949585, -0.48560160398483276, 0.14863751828670502, 0.27426713705062866, 0.57230544090271, -0.3517037034034729, -0.6798818707466125, -0.20793840289115906, 0.21444790065288544, -0.07356885820627213, -0.012221419252455235, 0.3161813020706177, 0.03813792020082474, 0.05118910223245621, 0.07102963328361511, -0.46680930256843567, -0.30956703424453735, -0.14198611676692963, 0.06204831600189209, 0.09055975824594498, -0.14064832031726837, 0.005107190925627947, 0.11248207837343216, -0.05005895718932152, -0.06964676082134247, -0.23054742813110352, -0.10120799392461777, 0.1105058565735817, -0.09963850677013397, -0.2565583884716034, -0.21765978634357452, 0.29765209555625916, 0.01865883357822895, 0.384271502494812, 0.0801839828491211, -0.006823277100920677, -0.20273178815841675, -0.07599502056837082, 0.32642069458961487, -0.0812566801905632, 0.02783985435962677, 0.14254243671894073, 0.2957105338573456, 0.18147321045398712, 0.41260743141174316, -0.14151063561439514, 0.17160040140151978, -0.15217986702919006, -0.47803404927253723, -0.1535409539937973, 0.1730053722858429, -0.18358564376831055, 0.1002785712480545, -0.0033963401801884174, 0.18500089645385742, -0.18529056012630463, -0.12254336476325989, 0.22183506190776825, -0.14193770289421082, -0.02476508915424347, -0.05911766737699509, 0.16480840742588043, 0.08598791807889938, -0.23178677260875702, -0.24155132472515106, 0.15704165399074554, 0.24643588066101074, 0.16840919852256775, 0.09720145910978317, 0.04392211511731148, 0.33023208379745483, -0.041666604578495026, 0.12209030240774155, 0.18692511320114136, 0.05194835364818573, 0.05920152738690376, -0.10779421031475067, 0.35860300064086914, -0.0418987050652504, 0.1905282586812973, 0.08029650896787643, 0.10389827936887741, -0.3220553994178772, 0.05917878821492195, 0.04099370166659355, -0.13178743422031403, -0.4527030289173126, 0.1883632391691208, -0.31850776076316833, -0.3556966781616211, -0.17261217534542084, 0.1786639243364334, -0.24162885546684265, 0.008096665143966675, 0.2086097151041031, 0.07573490589857101, -0.08612499386072159, -0.20844446122646332, 0.3299962878227234, 0.594476580619812, -0.16107960045337677, -0.09997428208589554, -0.21648792922496796, -0.13431866466999054, -0.04171130806207657, 0.21092551946640015, -0.05062522739171982, 0.05588759109377861, -0.020484771579504013, 0.10245415568351746, 0.010112488642334938, -0.3500713109970093, -0.2602940499782562, -0.0468192957341671, -0.15360762178897858, -0.035388290882110596, 0.07909353822469711, 0.18062351644039154, -0.10739544034004211, -0.09080806374549866, -0.035953033715486526, 0.030866781249642372, 0.0005210546660237014, -0.08524423837661743, -0.31256264448165894, -0.3891197443008423, 0.02606400102376938, 0.014307352714240551, -0.07390856742858887, 0.3470030128955841, 0.16222894191741943, -0.2902592420578003, 0.25839149951934814, -0.170203298330307, -0.03154122084379196, 0.4124395549297333, 0.5787882804870605, 0.07000671327114105, 0.015051881782710552, 0.043318185955286026, -0.449396550655365, 0.08136943727731705, -0.2138373702764511, 0.3823770582675934, -0.2618270814418793, -0.3103591203689575, -0.4003002345561981, -0.018641987815499306, 0.15003877878189087, -0.4743154048919678, 0.08419480174779892, -0.1355002075433731, 0.2801229655742645, 0.11533326655626297, -0.13895076513290405, 0.2992044985294342, 0.000631997303571552, 0.21379712224006653, -0.4291982352733612, 0.1492040455341339, -0.09508061408996582, -0.02135848067700863, 0.3690764307975769, 0.21451778709888458, 0.11851560324430466, -0.13792076706886292, 0.025445813313126564, 0.5660969018936157, -0.06930069625377655, 0.4441087543964386, 0.5638934373855591, 0.42578479647636414, 0.34725865721702576, -0.01077110692858696, 0.2729819416999817, -0.11934687197208405, 0.061352308839559555, 0.030493490397930145, -0.5344086289405823, 0.37124496698379517, -0.21149829030036926, 0.1566208451986313, 0.1573418229818344, 0.24639664590358734, 0.06298656761646271, 0.22652125358581543, -0.24913448095321655, -0.00399451470002532, -0.13616766035556793, 0.10068250447511673, 0.23121671378612518, 0.04165491461753845, -0.5127975344657898, 0.2248261719942093, 0.023750944063067436, -0.22644414007663727, -0.22227904200553894, 0.32702547311782837, -0.46303001046180725, -0.16366006433963776, 0.40586695075035095, 0.34806114435195923, 0.10470075160264969, 0.2272697538137436, -0.010912387631833553, 0.17178666591644287, 0.25240638852119446, -0.12329799681901932, 0.32181283831596375, 0.20352667570114136, -0.19048868119716644, -0.25538840889930725, 0.16928115487098694, 0.24280890822410583, -0.22870023548603058, 0.04554177075624466, -0.15821333229541779, 0.151236891746521, -0.2233806848526001, -0.08054760843515396, 0.06929261982440948, -0.4180278182029724, -0.25621405243873596, 0.12397777289152145, -0.4829692244529724, -0.31856676936149597, -0.137129545211792, 0.061620958149433136, -0.1055610254406929, 0.06788595765829086, -0.024172455072402954, 0.33429673314094543, -0.15433239936828613, -0.04044429212808609, -0.2764349579811096, -0.06945484131574631, -0.040300559252500534, 0.09620092809200287, 0.11969456821680069, 0.12546542286872864, 0.42615509033203125, -0.09772922098636627, 0.1262933611869812, -0.4863535463809967, -0.5364230275154114, 0.04319169372320175, -0.14060890674591064, 0.3586077094078064, 0.1961200088262558, 0.31005966663360596, -0.09805329144001007, 0.06480453908443451, 0.055187903344631195, -0.15142130851745605, 0.01591547578573227, -0.36293932795524597, -0.15264032781124115, -0.0399969220161438, -0.015327864326536655, -0.29277312755584717, -0.16027909517288208, -0.08987631648778915, 0.5506945848464966, 0.09373851865530014, 0.056484404951334, 0.20592394471168518, 0.11698905378580093, -0.09037747234106064, -0.12891130149364471, -0.07482092082500458, -0.10090924799442291, -0.3535020053386688, 0.318916380405426, -0.15540747344493866, -0.47751283645629883, 0.028470834717154503, 0.17396369576454163, 0.12532499432563782, -0.2889416515827179, -0.31940752267837524, -0.3141021728515625, -0.43867403268814087, 0.13854283094406128, 0.14243724942207336, 0.3768019378185272, 0.3760678172111511, -0.023670179769396782, -0.14282827079296112, -0.09600507467985153, -0.4281672239303589, -0.2592437267303467, 0.23070017993450165, 0.11899202316999435, -0.1817493587732315, -0.28125303983688354, -0.02797204814851284, 0.9298334121704102, 0.04009750112891197, -0.033875901252031326, -0.0956437811255455, -0.12998440861701965, 0.2708818018436432, 0.02019922435283661, -0.3125048577785492, 0.33708953857421875, -0.17424094676971436, 0.09798336774110794, 0.3018554151058197, 0.24312540888786316, 0.38184618949890137, -0.0008541311835870147, 0.06434211879968643, -0.3905080556869507, -0.1964021474123001, -0.16413189470767975, 0.011053359135985374, 0.10590845346450806, 0.16316011548042297, -0.14770402014255524, -0.24933815002441406, -0.068869449198246, 0.16901160776615143, 0.3093610107898712, 0.18120825290679932, 0.08564241975545883, -0.3147587776184082, 0.034592628479003906, -0.6594237089157104, 0.39339637756347656, -0.16518372297286987, -0.1826469600200653, -0.04258224368095398, -0.07539618760347366, 0.13122422993183136, 0.06514278799295425, 0.621967077255249, -0.22347046434879303, -0.21876609325408936, -0.01195564866065979, -0.007946629077196121, -0.2581498920917511, 0.16273988783359528, -0.1135919913649559, 0.09287996590137482, 0.4785265624523163, 0.22147925198078156, -0.2654494643211365, -0.3111006021499634, 0.11954988539218903, 0.11839316040277481, 0.09165600687265396, 0.23319494724273682, -0.10354282706975937, -0.29007306694984436, -0.1447438895702362, -0.26214420795440674, -0.016872186213731766, -0.03686850890517235, -0.10002176463603973, 0.19030603766441345, 0.13508327305316925, 0.0020793196745216846, 0.22890561819076538, 0.046097397804260254, 0.2442626804113388, 0.1829407513141632, -0.004651905037462711, 0.3893857002258301, 0.0968126729130745, 0.12807488441467285, 0.4356866180896759, -0.12518064677715302, -0.26303771138191223, -0.040979303419589996, -0.09783440083265305, 0.21725481748580933, 0.3517822027206421, 0.053720392286777496, 0.08562543988227844, 0.4536280632019043, 0.34002649784088135, -0.24035243690013885, 0.2815037667751312, 0.052769459784030914, 0.032578933984041214, -0.2642412483692169, -0.46184876561164856, 0.5030094385147095, 0.32606279850006104, -0.37012597918510437, 0.26313725113868713, 0.5139731764793396, -0.056577105075120926, 0.07873189449310303, 0.24330662190914154, 1.0592777729034424, -0.24372802674770355, 0.18101847171783447, 0.0664183646440506, -0.519305408000946, 0.7468013167381287, -0.0798197090625763, 0.002694169757887721, -0.2765863835811615, -0.06612265110015869, -0.03158813342452049, 0.015807481482625008, 0.333624005317688, -0.19078205525875092, -0.22129157185554504, 0.30609121918678284, 0.08671296387910843, -0.09218696504831314, 0.13334251940250397, 0.6834871768951416, -0.06376825273036957, -0.24514390528202057, 0.028883909806609154, 0.15437628328800201, 0.06770537048578262, 0.2733633518218994, -0.04693431034684181, -0.3334118723869324, -0.3033266067504883, -0.27840882539749146, -0.42365163564682007, -0.13758452236652374, -0.35815227031707764, -0.3926292359828949, 0.14990489184856415, -0.42802485823631287, 0.2272786945104599, 0.3937423825263977, 0.4124491810798645, 0.01803223416209221, -0.39483335614204407, 0.37546926736831665, -0.2419390082359314, 0.022324487566947937, 0.10059672594070435, 0.0764288455247879, -0.0017429045401513577, -0.08215443044900894, -0.0730198323726654, -0.20726940035820007, -0.05931059271097183, -0.052038464695215225, -0.2748452126979828, -0.27324366569519043, -0.19146040081977844, -0.21421052515506744, 0.1176781877875328, -0.019069146364927292, -0.029996542260050774, -0.30942901968955994, 0.14170704782009125, 0.0812365934252739, 0.18572890758514404, -0.09103211015462875, 0.20000164210796356, 0.004774474073201418, -0.25913310050964355, 0.3890470564365387, 0.09517234563827515, -0.2510613203048706, 0.3386106491088867, 0.22458405792713165, 0.08972562104463577, -0.2786561846733093, -0.2519182860851288, -0.34400275349617004, -0.4056316316127777, 0.2000596970319748, -0.04042486101388931, -0.04633398354053497, -0.30482223629951477, 0.42110568284988403, 0.1648300737142563, 0.11003727465867996, 0.2215455025434494, -0.17318561673164368, -0.10479549318552017, 0.18884839117527008, -0.25578898191452026, 0.14076431095600128, -0.1645471453666687, 0.2194361835718155, -0.017737077549099922, 0.0833321139216423, -0.367754727602005, 0.08208787441253662, 0.08238372951745987, -0.2298935204744339, 0.3981003761291504, 0.013068837113678455, 0.2936737537384033, -0.3772648870944977, 0.09880872815847397, -0.2523198127746582, -0.15761710703372955, -0.1331222504377365, -0.16556021571159363, 0.12149888277053833, -0.07293124496936798, -0.11028694361448288, -0.024581747129559517, 0.17274412512779236, -0.05783341825008392, 0.03352585807442665, 0.21651357412338257, 0.1390501856803894, 0.0039021261036396027, 0.1406804770231247, -0.36087727546691895, 0.22951076924800873, -0.06584930419921875, -0.1927155703306198, 0.15961919724941254, 0.1456410437822342, 0.24254979193210602, 0.1228315681219101, 0.03702295571565628, -0.041362930089235306, 0.18821874260902405, 0.18952947854995728, 0.016871506348252296, 0.01665748842060566, 0.31144726276397705, 0.05298418924212456, -0.21447163820266724, 0.257700651884079, 0.48604974150657654, 0.027837097644805908, -0.17350487411022186, -0.0748671144247055, 0.13740621507167816, 0.21627968549728394, -0.19057609140872955, 0.05821681022644043, 0.06521809846162796, -0.025575054809451103, -0.03864690661430359, 0.2975444495677948, 0.3883388340473175, 0.12564235925674438, -0.03529144451022148, 0.1612500548362732, 0.47126322984695435, 0.0164627805352211, 0.49307242035865784, -0.0657249167561531, -0.015901802107691765, -0.06779861450195312, 0.26399683952331543, 0.3475107252597809, -0.05134575814008713, -0.0434795506298542, 0.12197522073984146, -0.061114564538002014, -0.11851277947425842, 0.08737313747406006, 0.010692846029996872, -0.2702273726463318, 0.4897192120552063, 0.18187475204467773, 0.13253527879714966, 0.08787453174591064, -0.07569248229265213, 0.6670548915863037, -0.10761822760105133, -0.2506595849990845, -0.12327007949352264, 0.1698823869228363, 0.2341446876525879, -0.12496014684438705, 0.039322223514318466, -0.23669087886810303, 0.1775382161140442, -0.059915490448474884, 0.025425080209970474, -0.2656184732913971, 0.2926728129386902, -0.17548055946826935, -0.19497515261173248, -0.5111843347549438, -0.10313873738050461, 0.024130120873451233, 0.4765487015247345, 0.1010926142334938, -0.0011815667385235429, 0.09683968871831894, -0.2140396386384964, 0.17160452902317047, 0.33219534158706665, 0.3361049294471741, -0.0068269940093159676, -0.047303564846515656, 0.27664414048194885, -0.09356958419084549, -0.08333364129066467, 0.24413321912288666, -0.013773580081760883, 0.15231777727603912, -0.0012737741926684976, 0.15861839056015015, 0.1750171035528183, -0.08636657148599625, 0.09361729025840759, -0.06896776705980301, 0.4385336637496948, -0.3567748963832855, 0.29803895950317383, -0.3026975989341736, -0.30256080627441406, -0.015362151898443699, 0.015419496223330498, -0.2900398373603821, -0.021104471758008003, -0.19279558956623077, -0.05511949211359024, 0.0292347501963377, -0.11502820998430252, 0.08895188570022583, 0.12017085403203964, 0.44554755091667175, 0.4420092701911926, 0.19108706712722778, -0.12136906385421753, -0.22471272945404053, -0.35871148109436035, -0.22660255432128906, 0.14075948297977448, -0.030727317556738853, -0.041187215596437454, -0.003550937632098794, 0.003521015401929617, -0.10790323466062546, -0.003667291719466448, -0.21202419698238373, -0.33549484610557556, -0.11284689605236053, -0.15141963958740234, -0.011673558503389359, -0.4705742299556732, 0.1753567010164261, 0.13980978727340698, 0.20952823758125305, 0.09976421296596527, -0.06927558779716492, 0.004972648341208696, -0.10921347886323929, 0.17801329493522644, -0.015484902076423168, -0.21244052052497864, 0.3247259557247162, 0.27993065118789673, 0.1539989560842514, -0.1100379154086113, -0.407778263092041, -0.15918022394180298, -0.14237472414970398, -0.2861746847629547, 0.2387041300535202, -0.09795670211315155, 0.47088077664375305, 0.08859824389219284, -0.43003082275390625, -0.30811014771461487, 0.4030495882034302, 0.2242698073387146, -0.11819370836019516, -0.39333948493003845, 0.30887776613235474, 0.01921086758375168, -0.05556543171405792, 0.05423875153064728, 0.10773864388465881, -0.04226445406675339, 0.04869992285966873, -0.3787403702735901, -0.21906422078609467, 0.6983255743980408, -0.29181647300720215, 0.02755703032016754, 0.046120673418045044, 0.37474730610847473, -0.06571158021688461, -0.11710656434297562, -0.6519765257835388, 0.20626899600028992, 0.16335147619247437, 0.13097289204597473, -0.21182148158550262, 0.2152026891708374, -0.10695554316043854, -0.2190622240304947, -0.03844418749213219, 0.6719532608985901, -0.14423389732837677, -0.25238674879074097, 0.05403866246342659, -0.10742790997028351 ]
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.17509740591049194, -0.16272051632404327, -0.13827025890350342, 0.16952304542064667, 0.17160096764564514, -0.10548388957977295, -0.010720351710915565, 0.03397064283490181, 0.21871806681156158, 0.04157521203160286, -0.1746506690979004, 0.022154929116368294, -0.0037148864939808846, 0.5154717564582825, 0.16618196666240692, -0.22118978202342987, 0.20494119822978973, -0.149827778339386, -0.1490771621465683, -0.3085087835788727, -0.09342928975820541, 0.21772021055221558, 0.11056092381477356, -0.1985752135515213, -0.05390000715851784, -0.1465507298707962, -0.28765439987182617, 0.3299082815647125, -0.3410833775997162, -0.21850711107254028, 0.005986735224723816, 0.2872907221317291, -0.021381398662924767, 0.3150201439857483, -0.00010204507998423651, -0.10800743103027344, 0.30751141905784607, -0.07063110917806625, -0.2162955403327942, -0.026467861607670784, -0.10623964667320251, -0.0436013862490654, 0.04157555103302002, 0.0017975126393139362, -0.10290676355361938, 0.060106538236141205, -0.0751415565609932, -0.2309901863336563, 0.35546138882637024, -0.031992100179195404, 0.3132327198982239, 0.11853867769241333, 0.07791683077812195, -0.17766982316970825, 0.07264429330825806, 0.2887016832828522, -0.1335155963897705, 0.20084813237190247, 0.18987804651260376, 0.30683451890945435, -0.14473359286785126, 0.620488166809082, -0.021645357832312584, -0.14505110681056976, 0.5957476496696472, -0.03180774301290512, -0.31596657633781433, -0.40479013323783875, 0.14081606268882751, 0.3081870675086975, 0.44572848081588745, -0.2545994818210602, -0.6352859139442444, -0.22743314504623413, 0.11435852199792862, -0.10832618921995163, -0.018451938405632973, 0.28906360268592834, 0.06861674785614014, 0.05351242795586586, 0.024358337745070457, -0.4525243043899536, -0.35074153542518616, -0.10817502439022064, -0.04711281135678291, 0.10832642018795013, -0.16574719548225403, -0.044095758348703384, 0.09182514995336533, -0.002101507969200611, -0.0841013565659523, -0.18227259814739227, -0.052945349365472794, 0.09495998173952103, -0.18667466938495636, -0.2585340440273285, -0.1515844464302063, 0.2619611322879791, 0.050878215581178665, 0.36236265301704407, 0.15479004383087158, 0.08210675418376923, -0.11969956010580063, -0.11578734219074249, 0.2962256968021393, -0.036673471331596375, 0.02304055728018284, 0.015871893614530563, 0.2667606770992279, 0.060268498957157135, 0.34792664647102356, -0.09178118407726288, 0.15761712193489075, -0.13087454438209534, -0.5323857069015503, -0.168987438082695, 0.0656362846493721, -0.17061296105384827, -0.013179194182157516, -0.03496822714805603, 0.15276920795440674, -0.1324883997440338, -0.10009877383708954, 0.2938218414783478, -0.09781629592180252, -0.029559621587395668, -0.05761001631617546, 0.2187987118959427, 0.06095784157514572, -0.2394980639219284, -0.33418962359428406, 0.2026192843914032, 0.19005730748176575, 0.08271798491477966, 0.14758899807929993, 0.039083950221538544, 0.27589839696884155, -0.08575774729251862, 0.02152356319129467, 0.23377232253551483, 0.13757094740867615, -0.05560401454567909, -0.021001411601901054, 0.3844459652900696, -0.009799947962164879, 0.10583794116973877, 0.051801204681396484, 0.12024477124214172, -0.29563242197036743, -0.04098609462380409, 0.04162126034498215, -0.11079147458076477, -0.4523097574710846, 0.2638574540615082, -0.3114069700241089, -0.33106788992881775, -0.19129472970962524, 0.16484881937503815, -0.18096548318862915, 0.062451232224702835, 0.11148838698863983, 0.12202055752277374, -0.12122485041618347, -0.21555258333683014, 0.2229272574186325, 0.4181412160396576, -0.19548428058624268, -0.18826748430728912, -0.31584814190864563, -0.151160329580307, 0.014216178096830845, 0.21075965464115143, 0.04625526815652847, 0.02588815800845623, -0.13773982226848602, 0.14009785652160645, -0.007402941584587097, -0.30214637517929077, -0.24632512032985687, 0.04083117097616196, -0.10639332234859467, 0.03423828259110451, 0.11060020327568054, 0.16902613639831543, 0.009777332656085491, -0.03501572832465172, -0.0310888160020113, 0.16158202290534973, 0.008843617513775826, -0.07146242260932922, -0.27663668990135193, -0.49078622460365295, 0.04043269157409668, 0.026018373668193817, 0.06335309892892838, 0.1510116010904312, 0.18202084302902222, -0.2856176793575287, 0.302325040102005, -0.192609965801239, -0.018312711268663406, 0.40994539856910706, 0.5346351861953735, 0.04295645281672478, 0.02959739789366722, 0.03176780790090561, -0.5193300247192383, 0.1475839912891388, -0.21870717406272888, 0.4071364402770996, -0.28947117924690247, -0.24361778795719147, -0.2690867483615875, -0.054146505892276764, 0.05880081653594971, -0.40670374035835266, 0.2099786102771759, -0.11518999934196472, 0.20977751910686493, 0.0788099616765976, -0.049390118569135666, 0.2961055636405945, 0.0036826827563345432, 0.20468907058238983, -0.43476659059524536, 0.19596704840660095, -0.13531479239463806, 0.01745171844959259, 0.2929266095161438, 0.15855157375335693, 0.07956577837467194, -0.15011556446552277, 0.03403546288609505, 0.501692533493042, -0.02954208292067051, 0.47819334268569946, 0.5027614831924438, 0.3911726772785187, 0.40867218375205994, -0.010705620981752872, 0.2504282593727112, -0.03248317912220955, 0.02464558556675911, -0.057297483086586, -0.4910120368003845, 0.2947309613227844, -0.10370991379022598, 0.16604448854923248, 0.1834666132926941, 0.2979106307029724, 0.0980990082025528, 0.200826495885849, -0.2598770260810852, -0.15616585314273834, -0.09910662472248077, 0.0865389034152031, 0.20875458419322968, 0.05037905275821686, -0.4136373996734619, 0.29150497913360596, 0.0773959681391716, -0.23575714230537415, -0.09064523875713348, 0.23800617456436157, -0.4635382294654846, -0.24745091795921326, 0.4250991940498352, 0.30640703439712524, 0.04934568330645561, 0.3404054343700409, 0.06353534013032913, 0.04949832335114479, 0.18914952874183655, -0.15886949002742767, 0.4017777740955353, 0.1743435561656952, -0.039996519684791565, -0.1824599951505661, 0.18185502290725708, 0.09836699813604355, -0.37775880098342896, -0.04503082484006882, -0.2103864997625351, 0.07558455318212509, -0.2193053811788559, -0.11370707303285599, 0.007369096390902996, -0.3583333194255829, -0.1370747685432434, 0.09206574410200119, -0.41015881299972534, -0.4434760510921478, -0.05072188377380371, 0.07599696516990662, -0.24820570647716522, 0.03820687159895897, -0.1408386528491974, 0.3447820842266083, -0.032178547233343124, 0.0043005021288990974, -0.307826966047287, -0.08551906049251556, 0.003363635390996933, 0.19744613766670227, 0.1433517187833786, 0.11193446815013885, 0.4356255829334259, -0.08640484511852264, 0.1355842649936676, -0.41293567419052124, -0.6301929354667664, 0.17478542029857635, -0.20317386090755463, 0.3550868332386017, 0.2258833944797516, 0.2690954804420471, -0.046264100819826126, 0.027050985023379326, -0.01657256670296192, -0.17914575338363647, -0.04091102257370949, -0.30506283044815063, -0.14994840323925018, 0.035080984234809875, -0.08468034118413925, -0.28055769205093384, -0.1690347045660019, -0.06375862658023834, 0.48559868335723877, 0.09596972912549973, 0.1487470418214798, 0.23441468179225922, 0.10895571112632751, -0.02664332650601864, -0.10864396393299103, 0.011763013899326324, -0.23093630373477936, -0.380863219499588, 0.25648233294487, -0.17072440683841705, -0.45859959721565247, -0.03910896182060242, 0.0907641053199768, 0.19026082754135132, -0.24783268570899963, -0.3297806680202484, -0.20763513445854187, -0.41695713996887207, 0.09061494469642639, 0.11647430807352066, 0.2732023000717163, 0.32556745409965515, 0.006179702002555132, -0.18896131217479706, -0.1356033980846405, -0.21094563603401184, -0.14250896871089935, 0.18659977614879608, 0.09114626049995422, -0.29458847641944885, -0.35750043392181396, 0.08761599659919739, 0.822695791721344, -0.16086912155151367, 0.06034589186310768, -0.1181037575006485, -0.07386460155248642, 0.2442927062511444, -0.0199397224932909, -0.23848213255405426, 0.40083417296409607, -0.21816734969615936, 0.04166446998715401, 0.2813815176486969, 0.24240556359291077, 0.2349352240562439, 0.03669467195868492, 0.15700367093086243, -0.4096067249774933, -0.198417529463768, -0.20515024662017822, 0.07379806041717529, -0.016084255650639534, 0.14283552765846252, -0.07530461996793747, -0.10257492959499359, -0.0952812135219574, 0.18166635930538177, 0.17020833492279053, 0.1958918571472168, 0.005496789235621691, -0.2988997995853424, 0.02746771275997162, -0.6712701916694641, 0.35660311579704285, -0.18222010135650635, -0.307940810918808, -0.045030031353235245, -0.19912873208522797, 0.07338082790374756, 0.04785511642694473, 0.5412960052490234, -0.15631034970283508, -0.16679596900939941, 0.020733527839183807, 0.008410959504544735, -0.36200761795043945, 0.16128316521644592, -0.24754618108272552, -0.022024428471922874, 0.5003554821014404, 0.24896959960460663, -0.16389082372188568, -0.2980363667011261, 0.12684449553489685, 0.14875192940235138, 0.040381163358688354, 0.20642702281475067, -0.03524019941687584, -0.2939261496067047, -0.15005578100681305, -0.2607959508895874, -0.04508625343441963, -0.00828605331480503, -0.1854838728904724, 0.11894624680280685, 0.11849746853113174, -0.019108377397060394, 0.26959094405174255, 0.013015955686569214, 0.2740364372730255, 0.0582062304019928, 0.014728977344930172, 0.31838458776474, 0.22545993328094482, 0.10262034088373184, 0.45021894574165344, -0.034210026264190674, -0.12152321636676788, 0.06153017655014992, -0.19341720640659332, 0.15191255509853363, 0.4016210436820984, 0.05329195782542229, -0.034391555935144424, 0.28929007053375244, 0.27286994457244873, -0.31315094232559204, 0.23365412652492523, 0.01714199036359787, 0.009944240562617779, -0.13388784229755402, -0.4116717278957367, 0.5648616552352905, 0.27554866671562195, -0.3339824676513672, 0.2637110948562622, 0.45958176255226135, -0.1668815165758133, 0.2503574788570404, 0.34320151805877686, 1.051946759223938, -0.18231570720672607, 0.19156545400619507, 0.27231189608573914, -0.3975047469139099, 0.5669411420822144, -0.1354905366897583, 0.12016797065734863, -0.24443788826465607, -0.11133015900850296, -0.019899066537618637, 0.029467100277543068, 0.239744633436203, -0.06759364902973175, -0.18366768956184387, 0.24523517489433289, 0.06359630823135376, -0.07497226446866989, 0.048510704189538956, 0.5296383500099182, -0.18103627860546112, -0.24356678128242493, 0.1027202159166336, 0.24849523603916168, 0.10632359981536865, 0.24014665186405182, -0.048296261578798294, -0.25016841292381287, -0.2191310077905655, -0.2107003927230835, -0.3076818883419037, -0.04654933884739876, -0.31810110807418823, -0.16967898607254028, 0.008107392117381096, -0.3784959018230438, 0.06511805206537247, 0.2864230275154114, 0.3279702961444855, 0.01278787199407816, -0.3710653781890869, 0.298084557056427, -0.13204754889011383, -0.005805358290672302, 0.1807519495487213, 0.11454599350690842, 0.10048961639404297, -0.0866210088133812, -0.07683444023132324, -0.25265803933143616, -0.02265726588666439, -0.09012749046087265, -0.29806914925575256, -0.1858942210674286, -0.22807852923870087, -0.19899825751781464, 0.0638996809720993, 0.013800079934298992, -0.09039004892110825, -0.29501092433929443, 0.20604975521564484, 0.09223924577236176, 0.20219987630844116, 0.0057078474201262, 0.14397388696670532, -0.10624011605978012, -0.32032284140586853, 0.4124453663825989, 0.21024036407470703, -0.23545633256435394, 0.33480027318000793, 0.25156623125076294, 0.012159851379692554, -0.38200610876083374, -0.19194172322750092, -0.29653841257095337, -0.30452531576156616, 0.230550155043602, -0.13462401926517487, -0.1379665732383728, -0.31494906544685364, 0.42615634202957153, 0.12316091358661652, 0.10079305619001389, 0.14443999528884888, -0.16447024047374725, -0.0644594132900238, 0.3394774794578552, -0.2732056677341461, 0.27891355752944946, -0.1416907012462616, 0.16918545961380005, -0.08753611147403717, 0.005596974864602089, -0.47337979078292847, 0.08855348080396652, 0.11702416092157364, -0.28361019492149353, 0.34473860263824463, -0.023665955290198326, 0.2896566390991211, -0.35830196738243103, 0.21717572212219238, -0.29099276661872864, -0.16775746643543243, -0.23916006088256836, -0.0864441841840744, 0.07790426909923553, -0.05982871353626251, -0.07881329953670502, 0.040537554770708084, 0.18490655720233917, -0.09282243996858597, 0.008793010376393795, 0.3291766941547394, 0.2893907427787781, 0.07510817050933838, 0.22614090144634247, -0.40848904848098755, 0.14499948918819427, 0.10526695847511292, -0.15234659612178802, 0.15493713319301605, 0.15195785462856293, 0.12982197105884552, 0.13770097494125366, 0.05834087356925011, -0.060594286769628525, 0.2330094277858734, 0.192318394780159, -0.13660956919193268, 0.15162676572799683, 0.3314451575279236, 0.03947760909795761, -0.19391269981861115, 0.3143899738788605, 0.4291401207447052, -0.05370762571692467, -0.16325289011001587, -0.153448224067688, -0.01819758117198944, 0.35658442974090576, -0.2971993088722229, -0.08168453723192215, -0.10468502342700958, 0.018792543560266495, 0.05938700959086418, 0.27916163206100464, 0.29861557483673096, 0.043225619941949844, -0.012857292778789997, 0.2199672907590866, 0.43924975395202637, 0.028750542551279068, 0.4842645227909088, -0.0041241575963795185, -0.09003381431102753, -0.11075145751237869, 0.20438021421432495, 0.23568926751613617, 0.0502726212143898, 0.05561922863125801, 0.07248225808143616, -0.054303914308547974, -0.12269224971532822, 0.11646892130374908, 0.12265650182962418, -0.24032455682754517, 0.3531131446361542, 0.26548856496810913, -0.043174415826797485, 0.16608864068984985, -0.06417001038789749, 0.6414604187011719, -0.12589164078235626, -0.25795841217041016, -0.13851957023143768, 0.19554442167282104, 0.14993497729301453, -0.1286892592906952, -0.00210096244700253, -0.26243677735328674, 0.10952379554510117, -0.06814870983362198, -0.007744215428829193, -0.26216256618499756, 0.2859222888946533, -0.1656341403722763, -0.17003929615020752, -0.3744337856769562, 0.00536392442882061, 0.019186073914170265, 0.41657567024230957, 0.08137321472167969, 0.05586269497871399, 0.22203867137432098, -0.14569684863090515, 0.1433163732290268, 0.331025093793869, 0.2914978563785553, -0.02055373787879944, -0.10916590690612793, 0.1421901136636734, -0.10040411353111267, -0.15225470066070557, 0.09150655567646027, -0.03829598426818848, 0.1382106989622116, -0.0918608009815216, 0.32461968064308167, 0.24979843199253082, -0.14185741543769836, 0.13872817158699036, 0.08316700905561447, 0.4113084375858307, -0.22080031037330627, 0.3107292950153351, -0.24874712526798248, -0.21012400090694427, 0.01666885055601597, -0.046082235872745514, -0.4195704758167267, -0.1452127993106842, -0.1362057775259018, -0.0967140719294548, 0.10047473758459091, -0.11050621420145035, 0.14945507049560547, 0.05615289509296417, 0.4306780695915222, 0.44450271129608154, 0.06644006073474884, -0.08529043942689896, -0.19313403964042664, -0.269497275352478, -0.23049341142177582, 0.06910693645477295, 0.05027787387371063, -0.1349865347146988, 0.22316192090511322, 0.08941736817359924, -0.06839048862457275, 0.07513702660799026, -0.19295883178710938, -0.3643421530723572, -0.1695173680782318, -0.23208381235599518, 0.05050896108150482, -0.30012214183807373, 0.1985493004322052, 0.08231986314058304, 0.05449031665921211, 0.14483171701431274, -0.15974585711956024, 0.08277785778045654, -0.05868924409151077, 0.1942732036113739, -0.046525996178388596, -0.2598102390766144, 0.30935049057006836, 0.17889907956123352, 0.06176966056227684, -0.20876868069171906, -0.4297069013118744, -0.16143564879894257, -0.20235659182071686, -0.2559978663921356, 0.23288539052009583, -0.027144569903612137, 0.5041919946670532, 0.08602558821439743, -0.3409915268421173, -0.14156843721866608, 0.43445611000061035, 0.23167018592357635, -0.11495482176542282, -0.4775394797325134, 0.3527228534221649, -0.011172366328537464, -0.04033766686916351, -0.0579475574195385, 0.20952914655208588, -0.0992560163140297, 0.049090541899204254, -0.2914106249809265, -0.37994253635406494, 0.6491072177886963, -0.23039935529232025, -0.04010123759508133, -0.02369016595184803, 0.28935882449150085, 0.03232017531991005, 0.0021472626831382513, -0.629919707775116, 0.21459154784679413, 0.16571524739265442, 0.16490612924098969, -0.13981245458126068, 0.17875364422798157, 0.03409291058778763, -0.1925082802772522, -0.10096990317106247, 0.5130541920661926, -0.018323909491300583, -0.29095742106437683, -0.037920061498880386, -0.18677587807178497 ]
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.16592521965503693, -0.1632089614868164, -0.10140940546989441, 0.2528702914714813, 0.16676700115203857, -0.11696166545152664, -0.011767010204494, 0.06558112055063248, 0.25607725977897644, 0.053932808339595795, -0.1586155742406845, 0.03160080313682556, 0.022103874012827873, 0.42082470655441284, 0.1964261531829834, -0.16027586162090302, 0.169087216258049, -0.19126640260219574, -0.16925035417079926, -0.26437506079673767, -0.0958830937743187, 0.22509019076824188, 0.10938722640275955, -0.2362833172082901, -0.098846934735775, -0.12916159629821777, -0.33911243081092834, 0.33560436964035034, -0.24457818269729614, -0.20941632986068726, 0.09592697769403458, 0.2644593119621277, 0.005523743107914925, 0.3104955554008484, -0.00010090356227010489, -0.10705259442329407, 0.31211474537849426, -0.06702075898647308, -0.2641538977622986, 0.013934526592493057, -0.1189582422375679, -0.03079362027347088, 0.03534410148859024, -0.03418790176510811, -0.14677473902702332, 0.09207434952259064, -0.08427968621253967, -0.3005337119102478, 0.35774484276771545, -0.0076569425873458385, 0.3215497136116028, 0.1390487253665924, 0.033877551555633545, -0.10829818248748779, 0.02456468902528286, 0.20601581037044525, -0.09993746131658554, 0.2146812379360199, 0.17965474724769592, 0.34155428409576416, -0.15117621421813965, 0.6248747110366821, -0.013491295278072357, -0.06154191121459007, 0.6073557138442993, -0.0024975971318781376, -0.37291833758354187, -0.3723899722099304, 0.13245178759098053, 0.2662900984287262, 0.44392454624176025, -0.25536614656448364, -0.5880436897277832, -0.2767365872859955, 0.0677972063422203, -0.11805310845375061, 0.08021986484527588, 0.220879927277565, 0.10823046416044235, 0.11056063324213028, -0.0029326332733035088, -0.371955931186676, -0.28124722838401794, -0.09336821734905243, -0.05728868022561073, 0.08833286911249161, -0.23470856249332428, -0.006917452439665794, -0.02192062884569168, 0.05059332028031349, -0.08791396766901016, -0.18712568283081055, -0.05154045671224594, 0.06869731843471527, -0.21707092225551605, -0.22317782044410706, -0.1066395714879036, 0.2603144943714142, 0.04733923822641373, 0.3677634000778198, 0.21382659673690796, 0.04271029680967331, -0.10646136850118637, -0.0991126075387001, 0.30718299746513367, 0.0602351576089859, -0.033440180122852325, 0.009524267166852951, 0.20982235670089722, 0.07120123505592346, 0.2411022186279297, -0.1147153303027153, 0.14894519746303558, -0.08091828972101212, -0.4109901189804077, -0.1142464354634285, 0.12765924632549286, -0.21603290736675262, -0.02069202996790409, -0.03013424761593342, 0.16047890484333038, -0.1487124264240265, -0.10545827448368073, 0.2967299520969391, -0.19890186190605164, 0.021016495302319527, -0.06081250309944153, 0.13475312292575836, 0.02751988358795643, -0.2565930187702179, -0.35913926362991333, 0.13651929795742035, 0.18305043876171112, 0.16589199006557465, 0.1521860510110855, 0.026400873437523842, 0.26682451367378235, -0.10018178820610046, -0.05859865993261337, 0.09162261337041855, 0.19774162769317627, -0.11099915951490402, 0.0347115583717823, 0.41073668003082275, 0.020384160801768303, 0.16043362021446228, 0.10072644799947739, 0.13934406638145447, -0.32010865211486816, 0.028255978599190712, -0.03814101219177246, -0.18324622511863708, -0.3506278693675995, 0.267806738615036, -0.3660212457180023, -0.3243699371814728, -0.2245873212814331, 0.13785885274410248, -0.07282524555921555, 0.054739996790885925, 0.1099490150809288, 0.0779944658279419, -0.18059559166431427, -0.23245567083358765, 0.28966155648231506, 0.4897952377796173, -0.15473461151123047, -0.1970522254705429, -0.31706252694129944, -0.13099277019500732, -0.01372061762958765, 0.22989313304424286, 0.013720556162297726, 0.08710188418626785, -0.17306405305862427, 0.15071415901184082, -0.07376844435930252, -0.30534884333610535, -0.31503209471702576, 0.030927635729312897, -0.18640734255313873, 0.0680137425661087, 0.06838075071573257, 0.16496816277503967, 0.06058220937848091, -0.11094674468040466, 0.005871068686246872, 0.21090878546237946, 0.022301441058516502, -0.029438713565468788, -0.363143652677536, -0.5218736529350281, 0.0028265865985304117, 0.03559541329741478, 0.016076013445854187, 0.13263113796710968, 0.1774071753025055, -0.25172027945518494, 0.2485514134168625, -0.13640640676021576, 0.02552465721964836, 0.47756826877593994, 0.4186946153640747, 0.09622539579868317, 0.014295359142124653, 0.02251341938972473, -0.5479567646980286, 0.17483638226985931, -0.17049847543239594, 0.2987995147705078, -0.21260632574558258, -0.275569885969162, -0.279493510723114, -0.07678501307964325, 0.009192241355776787, -0.4557020366191864, 0.2026412934064865, -0.03961176797747612, 0.255536288022995, 0.047468576580286026, -0.05614541098475456, 0.4210195541381836, -0.0011727620149031281, 0.1512540727853775, -0.4600062966346741, 0.21111002564430237, -0.12664374709129333, -0.0034927178639918566, 0.2701091170310974, 0.1262539178133011, 0.12482605874538422, -0.1292126178741455, 0.01623321697115898, 0.5227898359298706, -0.045364540070295334, 0.4940958023071289, 0.45852625370025635, 0.3518594801425934, 0.3367432653903961, -0.04838940501213074, 0.3075611889362335, 0.048278432339429855, 0.06407081335783005, -0.03261565417051315, -0.4407792389392853, 0.31303882598876953, -0.14688365161418915, 0.15974751114845276, 0.17604690790176392, 0.24208734929561615, 0.09940661489963531, 0.14705510437488556, -0.2510010004043579, -0.15146850049495697, -0.05453866720199585, 0.08682341873645782, 0.1815587282180786, 0.13769911229610443, -0.4012315273284912, 0.3901737928390503, 0.18002980947494507, -0.17998765408992767, -0.07277316600084305, 0.2597627341747284, -0.4883367419242859, -0.2888486981391907, 0.3766419589519501, 0.312804639339447, 0.10281828790903091, 0.3079303801059723, 0.09666828066110611, 0.05932721868157387, 0.1894833892583847, -0.1529344618320465, 0.3611404597759247, 0.12560243904590607, 0.0013809995725750923, -0.20547382533550262, 0.18768952786922455, 0.14874348044395447, -0.2898738980293274, -0.0012727733701467514, -0.146223247051239, 0.06508148461580276, -0.28218889236450195, -0.028302015736699104, -0.06730396300554276, -0.33232736587524414, -0.2045758068561554, 0.14345355331897736, -0.41087812185287476, -0.4312388598918915, -0.05011291801929474, 0.06960039585828781, -0.23412533104419708, 0.010078010149300098, -0.1702421009540558, 0.3444335162639618, -0.08425106108188629, -0.08887926489114761, -0.31084978580474854, -0.11667612940073013, -0.07302506268024445, 0.16521672904491425, 0.12396108359098434, 0.12233252823352814, 0.4448601305484772, -0.11311643570661545, 0.11817358434200287, -0.39816784858703613, -0.5399101376533508, 0.1104147732257843, -0.17318950593471527, 0.3696749210357666, 0.08538952469825745, 0.2747535705566406, -0.06526729464530945, -0.016356367617845535, 0.01843937858939171, -0.20345531404018402, -0.04229128733277321, -0.314126193523407, -0.07594914734363556, 0.09652584791183472, -0.08527754992246628, -0.33943814039230347, -0.17581027746200562, -0.08716975897550583, 0.4697417616844177, 0.1129918172955513, 0.15229682624340057, 0.2350763976573944, 0.09476611018180847, 0.01543346792459488, -0.12389078736305237, -0.021146243438124657, -0.31385043263435364, -0.4614575207233429, 0.23334906995296478, -0.135736346244812, -0.44350677728652954, -0.029107820242643356, 0.09155430644750595, 0.17810402810573578, -0.22616100311279297, -0.37162190675735474, -0.25475072860717773, -0.4176281988620758, 0.09938990324735641, 0.1467263102531433, 0.16829133033752441, 0.4198369085788727, -0.048039283603429794, -0.20373332500457764, -0.1306311935186386, -0.22967781126499176, -0.06896653771400452, 0.15449577569961548, 0.12452684342861176, -0.2486182302236557, -0.3227529227733612, 0.11434376984834671, 0.9150581955909729, -0.12718309462070465, 0.033303406089544296, -0.03842853009700775, -0.003431330667808652, 0.28814446926116943, -0.05430540442466736, -0.18766239285469055, 0.43803805112838745, -0.23774422705173492, -0.013957534916698933, 0.2795526385307312, 0.2706630527973175, 0.22900880873203278, 0.0003978847817052156, 0.06202946603298187, -0.4552263915538788, -0.24273736774921417, -0.1421177238225937, 0.05537886172533035, 0.010233032517135143, 0.19229353964328766, -0.09752120077610016, -0.12007424235343933, -0.16998405754566193, 0.16814877092838287, 0.2204703539609909, 0.22048932313919067, 0.06112755835056305, -0.2955598831176758, 0.03810254856944084, -0.6430671811103821, 0.3647671639919281, -0.18194453418254852, -0.23964709043502808, -0.10972751677036285, -0.2054848074913025, 0.1155097708106041, -0.030318424105644226, 0.5701819658279419, -0.15146365761756897, -0.0734475776553154, 0.013718507252633572, -0.029101496562361717, -0.33523792028427124, 0.1464274525642395, -0.16879351437091827, -0.058174435049295425, 0.4786734879016876, 0.1987060308456421, -0.16542395949363708, -0.2544859051704407, 0.08978477120399475, 0.17460262775421143, -0.0013530281139537692, 0.2343287318944931, -0.08819226920604706, -0.37384387850761414, -0.17297206819057465, -0.24862509965896606, -0.0005551110371015966, -0.07441379874944687, -0.18334466218948364, 0.1432868391275406, 0.04032140597701073, 0.016846269369125366, 0.1693698614835739, -0.025496164336800575, 0.2929745018482208, 0.058832988142967224, 0.08622772246599197, 0.39187467098236084, 0.21549910306930542, 0.06291044503450394, 0.44922271370887756, -0.03860071673989296, -0.08048754185438156, 0.07850899547338486, -0.15237197279930115, 0.07217995077371597, 0.42110297083854675, 0.04375159367918968, -0.03888610750436783, 0.3254622519016266, 0.2381475865840912, -0.33178475499153137, 0.26680251955986023, -0.03109043277800083, 0.05077303946018219, -0.12068618088960648, -0.4809465706348419, 0.5317930579185486, 0.33235934376716614, -0.33954620361328125, 0.3411291539669037, 0.33440178632736206, -0.17513132095336914, 0.17916524410247803, 0.33075469732284546, 1.1044737100601196, -0.23962567746639252, 0.21839240193367004, 0.27138733863830566, -0.36751797795295715, 0.5915114879608154, -0.15889686346054077, 0.12155286222696304, -0.23505428433418274, -0.1532130241394043, -0.017821133136749268, 0.028863199055194855, 0.22043660283088684, -0.12501685321331024, -0.17212584614753723, 0.2953169643878937, 0.0236439760774374, -0.05867195501923561, 0.061116773635149, 0.5449425578117371, -0.2023494392633438, -0.23326002061367035, 0.030331077054142952, 0.27920734882354736, 0.024680066853761673, 0.3005790114402771, -0.04896519333124161, -0.18859528005123138, -0.2500050663948059, -0.1683742254972458, -0.29569536447525024, 0.022244129329919815, -0.29253408312797546, -0.1654127836227417, -0.03409402817487717, -0.34556496143341064, -0.03268378600478172, 0.28271710872650146, 0.32659581303596497, 0.011118514463305473, -0.36776384711265564, 0.36162328720092773, -0.1644006371498108, 0.049118686467409134, 0.2389022409915924, 0.04982612654566765, 0.21655182540416718, -0.07734445482492447, -0.05852336436510086, -0.2473369687795639, -0.033618513494729996, -0.1177690252661705, -0.2782158851623535, -0.14539603888988495, -0.18034812808036804, -0.191740483045578, 0.03842560946941376, 0.016757771372795105, -0.08608658611774445, -0.2852528989315033, 0.21134282648563385, 0.10218643397092819, 0.20834016799926758, 0.0009632832370698452, 0.08761730045080185, -0.15392149984836578, -0.30135631561279297, 0.4673456847667694, 0.1977533996105194, -0.19469478726387024, 0.35029178857803345, 0.20664672553539276, 0.024397874251008034, -0.35062527656555176, -0.1857435703277588, -0.3186752200126648, -0.3479623794555664, 0.21328356862068176, -0.18858380615711212, -0.08669397979974747, -0.2987441122531891, 0.4482697546482086, 0.10461090505123138, 0.0758935883641243, 0.11900702863931656, -0.21712641417980194, -0.05842243880033493, 0.29733604192733765, -0.25708115100860596, 0.20738771557807922, -0.07031811773777008, 0.1772557646036148, -0.0477294921875, 0.010927895084023476, -0.474107563495636, 0.11446429044008255, 0.017136044800281525, -0.2385255992412567, 0.35693803429603577, -0.07191270589828491, 0.3655003011226654, -0.3403908312320709, 0.19268368184566498, -0.23757149279117584, -0.16103631258010864, -0.2635538876056671, -0.11178756505250931, 0.07258691638708115, -0.062251877039670944, -0.0850163996219635, -0.0649641826748848, 0.07516848295927048, -0.029592016711831093, -0.035281408578157425, 0.27824828028678894, 0.2639962136745453, 0.08750712871551514, 0.12050872296094894, -0.4345666170120239, 0.15509265661239624, 0.06516733765602112, -0.08557602018117905, 0.06992386281490326, 0.14931990206241608, 0.053869329392910004, 0.1294625699520111, 0.024077069014310837, -0.010344075039029121, 0.16732341051101685, 0.12166635692119598, -0.0864688828587532, 0.15967294573783875, 0.3795126676559448, 0.013469867408275604, -0.2088519036769867, 0.24684379994869232, 0.41862165927886963, -0.05029631033539772, -0.19333773851394653, -0.2112448811531067, -0.042380109429359436, 0.3510414958000183, -0.18979410827159882, 0.011821655556559563, -0.07554303109645844, 0.01662260666489601, 0.0203545019030571, 0.28119707107543945, 0.2679568827152252, 0.08520308881998062, 0.0483853816986084, 0.2590617537498474, 0.5885546803474426, 0.026046697050333023, 0.41866806149482727, -0.013481189496815205, -0.038723789155483246, -0.03106515482068062, 0.26734092831611633, 0.28002458810806274, 0.06785837560892105, 0.060521554201841354, 0.12410949170589447, -0.041520923376083374, -0.11501169204711914, 0.15077349543571472, 0.017577707767486572, -0.3053460419178009, 0.3549683392047882, 0.23495815694332123, -0.09472327679395676, 0.18087100982666016, -0.08535280078649521, 0.6152284741401672, -0.16519270837306976, -0.26263099908828735, -0.131313756108284, 0.1952132135629654, 0.12577614188194275, -0.11310099065303802, 0.057150378823280334, -0.2251843363046646, 0.14472563564777374, -0.009965924546122551, 0.00005415355190052651, -0.3066886067390442, 0.33396264910697937, -0.11955659091472626, -0.24092252552509308, -0.4610395133495331, 0.019426971673965454, 0.05079745128750801, 0.4381595849990845, 0.033906664699316025, 0.1344054639339447, 0.15022341907024384, -0.10413482040166855, 0.14031311869621277, 0.30330690741539, 0.3024398982524872, -0.026797516271471977, -0.10261952131986618, 0.16786719858646393, -0.004271572455763817, -0.15266652405261993, 0.0363057404756546, -0.022542739287018776, 0.15877147018909454, -0.14401838183403015, 0.3165220022201538, 0.2696390748023987, -0.15813006460666656, 0.15107251703739166, 0.0617019459605217, 0.4713750183582306, -0.2484220266342163, 0.32480576634407043, -0.2868826985359192, -0.16457056999206543, -0.02742142789065838, -0.00886172242462635, -0.46132025122642517, -0.10995610803365707, -0.1738196760416031, -0.1194097027182579, 0.16117022931575775, -0.09613899886608124, 0.14788401126861572, 0.05839846655726433, 0.4296536147594452, 0.47561755776405334, 0.060196638107299805, -0.12308205664157867, -0.16936056315898895, -0.4051959216594696, -0.21418102085590363, 0.06677867472171783, -0.0001470154820708558, -0.12947270274162292, 0.2560292184352875, 0.03943999856710434, -0.07518091797828674, 0.012517879717051983, -0.12986372411251068, -0.2912449240684509, -0.17122139036655426, -0.20547662675380707, 0.017403526231646538, -0.37145549058914185, 0.229881152510643, 0.08863216638565063, -0.037756673991680145, 0.17393293976783752, -0.13483533263206482, 0.08825826644897461, -0.06561093032360077, 0.08633793890476227, 0.004494070541113615, -0.21291646361351013, 0.33469390869140625, 0.15693299472332, 0.06031723693013191, -0.14782491326332092, -0.39773550629615784, -0.20313909649848938, -0.18295331299304962, -0.23690049350261688, 0.20226679742336273, -0.08101724833250046, 0.4406939148902893, 0.02772863581776619, -0.27901363372802734, -0.21622934937477112, 0.40991121530532837, 0.24236567318439484, -0.04967086762189865, -0.40713998675346375, 0.31738734245300293, -0.052200060337781906, -0.01495545543730259, 0.04462733864784241, 0.2617962062358856, -0.09121715277433395, 0.07752944529056549, -0.3626377284526825, -0.2950991690158844, 0.5989772081375122, -0.23971888422966003, -0.019342241808772087, -0.03180116042494774, 0.3708549439907074, 0.03630175068974495, -0.07631606608629227, -0.5933427214622498, 0.20242293179035187, 0.23999446630477905, 0.16329751908779144, -0.1635061502456665, 0.16743870079517365, -0.00809559877961874, -0.14460182189941406, -0.08835203945636749, 0.492612361907959, -0.0399102158844471, -0.24025455117225647, 0.005329102277755737, -0.13683588802814484 ]
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.05395744740962982, -0.03765852004289627, -0.1801619678735733, 0.17618191242218018, 0.19111616909503937, -0.17411330342292786, 0.16255293786525726, -0.06701437383890152, -0.3270968496799469, -0.2211776226758957, -0.2294672429561615, 0.05975176766514778, -0.18898960947990417, 0.5104844570159912, 0.32974034547805786, -0.2775561809539795, 0.23368071019649506, 0.18604177236557007, -0.6403385996818542, -0.09712232649326324, 0.1160159707069397, 0.3619970977306366, -0.23954302072525024, -0.15642710030078888, -0.3490127921104431, -0.09342305362224579, -0.13800498843193054, -0.14151515066623688, -0.16762107610702515, -0.24645276367664337, 0.5433072447776794, 0.19907313585281372, 0.21373040974140167, 0.6924839615821838, -0.00011733339488273486, -0.24752648174762726, 0.2480921745300293, -0.0030497233383357525, -0.2502136528491974, -0.03998876363039017, -0.22816070914268494, -0.3681681454181671, 0.037783216685056686, 0.0528486967086792, -0.019863799214363098, 0.06767260283231735, -0.057624563574790955, -0.02612212300300598, 0.40121933817863464, -0.0857415571808815, 0.16772551834583282, 0.3654812276363373, 0.2736267149448395, -0.0947251096367836, -0.16737864911556244, 0.433835506439209, -0.38442763686180115, -0.17025506496429443, 0.25691989064216614, 0.08088205754756927, 0.4432746469974518, 0.06679607182741165, 0.047878507524728775, -0.21241532266139984, 0.33216771483421326, 0.198741614818573, -0.20674695074558258, -0.32781803607940674, -0.23501932621002197, 0.2532398998737335, 0.8008551597595215, -0.20844410359859467, -0.676014244556427, -0.20625503361225128, -0.13490350544452667, -0.0220964215695858, -0.08453875035047531, -0.12564806640148163, -0.12716171145439148, 0.15946123003959656, -0.328204482793808, -0.6029962301254272, -0.32839322090148926, 0.023430829867720604, -0.0905866026878357, 0.5560178756713867, -0.14072783291339874, -0.007334699388593435, 0.2014157474040985, -0.08118420839309692, 0.311642050743103, 0.011775855906307697, -0.08643339574337006, 0.2956630289554596, -0.07356978207826614, -0.3632637858390808, -0.17125177383422852, 0.33239322900772095, 0.2996617555618286, 0.24406856298446655, -0.37433433532714844, -0.08309263736009598, -0.1668810397386551, -0.191072016954422, 0.3662337064743042, 0.13677942752838135, 0.013464528135955334, 0.3916069269180298, 0.2731010615825653, -0.08278290927410126, 0.5417612791061401, -0.0868355855345726, 0.038928113877773285, 0.05356850475072861, -0.33000463247299194, -0.32090720534324646, -0.03403005003929138, -0.3715232312679291, 0.1857256144285202, -0.30581769347190857, 0.6140987277030945, -0.30563512444496155, 0.018126191571354866, 0.24750007688999176, -0.16498343646526337, 0.25722455978393555, 0.0021926765330135822, 0.19156871736049652, 0.2798495888710022, 0.201896533370018, -0.07062514126300812, -0.05439893901348114, -0.14380599558353424, 0.1062564104795456, 0.24309365451335907, -0.18900872766971588, 0.11644268035888672, -0.18185468018054962, 0.4081996977329254, 0.3598950207233429, -0.09979182481765747, 0.18337009847164154, -0.10327485203742981, 0.4986640214920044, -0.4198857247829437, 0.15442202985286713, -0.322546124458313, 0.15154486894607544, -0.2846423089504242, 0.061768539249897, 0.15927086770534515, -0.011685429140925407, -0.25676465034484863, 0.004603016655892134, -0.22044117748737335, -0.2602280080318451, -0.21127712726593018, -0.04649588465690613, -0.2655157744884491, -0.05556643754243851, -0.07407952100038528, 0.2384805977344513, 0.209283247590065, -0.0630938857793808, 0.12369351834058762, 0.2759687602519989, -0.350054532289505, -0.28525352478027344, 0.1542491912841797, -0.4082541763782501, -0.17956501245498657, 0.10583703964948654, -0.11412403732538223, -0.08694492280483246, -0.05793321877717972, -0.3439195454120636, 0.42506691813468933, -0.5070242285728455, -0.1991415023803711, 0.01302625797688961, 0.08352812379598618, 0.12365566194057465, -0.030773954465985298, 0.2835642993450165, 0.29912257194519043, -0.057977981865406036, -0.18867361545562744, 0.3549758195877075, 0.07314866036176682, -0.31443238258361816, 0.011868447996675968, -0.29864931106567383, 0.12097445875406265, 0.1903316229581833, 0.29205477237701416, 0.2932097315788269, -0.09729751199483871, -0.03046857751905918, 0.19069577753543854, 0.14255474507808685, 0.09835893660783768, 0.21626488864421844, 0.44234615564346313, 0.32993534207344055, 0.19884677231311798, -0.19869177043437958, -0.4077659547328949, 0.04727998748421669, 0.1282973438501358, 0.0997159332036972, -0.07272706925868988, -0.18812118470668793, 0.021818244829773903, 0.14005790650844574, 0.044939734041690826, -0.19369623064994812, -0.047278307378292084, -0.19081057608127594, 0.4457259178161621, -0.1792604923248291, -0.45184755325317383, 0.8676210045814514, 0.4596746861934662, 0.33495065569877625, -0.15564513206481934, 0.2536652386188507, -0.11426105350255966, 0.027368387207388878, -0.10458378493785858, 0.2058417797088623, -0.07777494937181473, -0.34909579157829285, 0.19659826159477234, 0.17905248701572418, -0.11737555265426636, -0.07381124049425125, 0.348585844039917, 0.20916922390460968, 0.4061685800552368, -0.03180793672800064, 0.2890356183052063, -0.20300668478012085, -0.007736536208540201, 0.10844434052705765, -0.1507154107093811, -0.1262257844209671, -0.20827370882034302, -0.05732709541916847, 0.1094205304980278, 0.13365021347999573, 0.34177976846694946, 0.1257273405790329, -0.28993871808052063, 0.002672128612175584, -0.04033597558736801, -0.003916419111192226, 0.142141193151474, -0.04936281964182854, -0.11593969911336899, -0.14465340971946716, 0.06481315940618515, -0.26779356598854065, -0.12726615369319916, 0.24685515463352203, -0.10778423398733139, 0.3799973428249359, 0.3027239739894867, 0.2017102986574173, 0.30153173208236694, 0.15533411502838135, 0.0641666129231453, -0.1555905044078827, -0.06441680341959, -0.004702686332166195, 0.019237646833062172, 0.1764000505208969, 0.026913302019238472, -0.1974037140607834, -0.2620179355144501, 0.1294235736131668, 0.00048052024794742465, -0.27593541145324707, -0.3955470323562622, -0.12323107570409775, 0.03886409476399422, -0.08891914784908295, -0.014214676804840565, -0.025791794061660767, -0.17412616312503815, -0.43351486325263977, -0.28506869077682495, 0.06180964782834053, -0.012849884107708931, -0.21157217025756836, 0.3294835090637207, 0.19632121920585632, -0.09358971565961838, 0.4006679654121399, -0.2807405889034271, -0.18985967338085175, -0.23903875052928925, 0.2319544553756714, -0.03242015838623047, 0.1155240535736084, 0.06650803238153458, -0.1564190834760666, 0.18686294555664062, -0.05079038441181183, 0.3589323163032532, -0.17144477367401123, -0.5654639601707458, 0.11696355044841766, -0.169511079788208, 0.33795174956321716, -0.022903677076101303, 0.15326082706451416, 0.11531458050012589, -0.13321711122989655, -0.09623462706804276, -0.17141713201999664, 0.08745741099119186, -0.3237070143222809, -0.078858882188797, -0.28404417634010315, -0.1743178814649582, -0.18603816628456116, -0.42516863346099854, -0.15087658166885376, 0.6054794192314148, 0.1938747614622116, -0.19332145154476166, 0.07012499868869781, 0.024651816114783287, 0.029738103970885277, -0.26099318265914917, 0.22174228727817535, 0.0211417805403471, -0.2042773813009262, 0.4779256582260132, -0.17091263830661774, -0.22929196059703827, 0.004092687275260687, -0.08357718586921692, 0.33451664447784424, -0.046315014362335205, -0.396955281496048, 0.1388852745294571, 0.004213688895106316, 0.041526418179273605, 0.18890789151191711, 0.24914905428886414, 0.5477529764175415, 0.05936554819345474, 0.1654091626405716, -0.013544273562729359, -0.3746860921382904, -0.2385661005973816, 0.013269234448671341, 0.2313840687274933, -0.018549920991063118, 0.02025047317147255, -0.28004351258277893, 0.3675196170806885, 0.2129458636045456, -0.0010249546030536294, 0.03911041468381882, 0.3218259811401367, 0.5508811473846436, 0.08006200939416885, -0.21013705432415009, -0.004351702053099871, 0.09927087277173996, 0.11643296480178833, -0.05257776379585266, 0.34054794907569885, -0.2252732813358307, -0.500848650932312, 0.1265861541032791, -0.24867044389247894, 0.09931814670562744, -0.14322327077388763, 0.05972345173358917, 0.1643364280462265, 0.05053498595952988, -0.01243365928530693, 0.014909227378666401, 0.044403742998838425, 0.02731453627347946, 0.2939193546772003, 0.15085870027542114, -0.018182530999183655, -0.2938578426837921, -0.036776378750801086, -0.42897284030914307, 0.05414460971951485, -0.12248637527227402, 0.03307098522782326, -0.05821887403726578, 0.07722245901823044, -0.06724197417497635, 0.009362745098769665, 0.8861724138259888, 0.03709729015827179, -0.625945508480072, -0.1034097895026207, -0.04538736864924431, -0.20858323574066162, 0.1288173347711563, -0.07197524607181549, -0.09697248041629791, 0.22364813089370728, 0.36097511649131775, -0.14248906075954437, -0.23810365796089172, 0.35527119040489197, 0.10138537734746933, -0.049237169325351715, -0.27472391724586487, -0.07550820708274841, -0.12563380599021912, -0.20780761539936066, -0.14242947101593018, -0.04314575716853142, -0.17830386757850647, -0.13769759237766266, -0.3707948923110962, -0.00912903156131506, -0.02581747993826866, 0.20595066249370575, 0.05827460065484047, 0.18967875838279724, -0.16779036819934845, 0.31849250197410583, 0.49297747015953064, 0.008496257476508617, 0.035025455057621, 0.12881261110305786, -0.1933206468820572, -0.15487928688526154, 0.03420396149158478, 0.05202724412083626, 0.4394579231739044, 0.24273313581943512, 0.004582361318171024, -0.2955551743507385, 0.022340761497616768, 0.07676255702972412, -0.13495789468288422, -0.348343163728714, 0.3332137167453766, 0.28004875779151917, -0.5669628977775574, -0.432941734790802, 0.35199660062789917, 0.3097459673881531, -0.04463837668299675, 0.4278447926044464, 0.41772979497909546, -0.04801369458436966, -0.02204371988773346, -0.020460449159145355, 1.0245962142944336, -0.3411808907985687, 0.2225026935338974, -0.05267580598592758, -0.271984338760376, 0.5038931965827942, -0.42345789074897766, -0.04857040196657181, -0.17727859318256378, -0.03355179727077484, -0.23660624027252197, -0.19371293485164642, 0.38741227984428406, 0.1829218864440918, -0.45593705773353577, 0.3584806025028229, -0.01750171184539795, 0.005553975235670805, -0.08838850259780884, 0.19981200993061066, 0.07866695523262024, -0.35547974705696106, -0.15255315601825714, 0.1492495983839035, 0.17975224554538727, 0.3967014253139496, -0.32279065251350403, -0.0522860586643219, -0.2029493898153305, -0.15124602615833282, -0.24409106373786926, 0.01484961062669754, 0.23281197249889374, 0.030546024441719055, 0.5970536470413208, -0.07765723019838333, 0.1234307661652565, 0.3457084000110626, 0.42432400584220886, 0.17357583343982697, -0.30656859278678894, 0.23443423211574554, -0.37201613187789917, -0.1590755134820938, 0.007473651319742203, 0.20299705862998962, 0.05713987722992897, -0.15797477960586548, -0.2544447183609009, -0.0921696126461029, -0.0892065018415451, -0.2849511206150055, -0.008586527779698372, 0.021522443741559982, 0.0655016303062439, -0.17759324610233307, 0.1331944763660431, 0.3783182203769684, 0.16340242326259613, 0.04403989389538765, 0.14530792832374573, 0.43198782205581665, -0.16457168757915497, 0.4580819010734558, 0.21185500919818878, 0.06540204584598541, -0.28801336884498596, 0.16928957402706146, 0.06013000011444092, -0.525613009929657, -0.06205036863684654, 0.050921905785799026, -0.4061180055141449, -0.14867977797985077, -0.25371304154396057, -0.14268451929092407, -0.16997528076171875, -0.18926848471164703, 0.15665467083454132, -0.24827995896339417, -0.1302250325679779, 0.09563429653644562, 0.18597717583179474, -0.2149001806974411, -0.31243765354156494, -0.16371823847293854, -0.34651535749435425, 0.29901421070098877, -0.08153827488422394, 0.36167511343955994, 0.027761925011873245, 0.07515572011470795, 0.3091573119163513, -0.012908073142170906, -0.2013930380344391, -0.1603129506111145, 0.11591333150863647, -0.12459208071231842, 0.44933199882507324, 0.0799330323934555, 0.20865678787231445, -0.08969058096408844, -0.004908855073153973, 0.05383004993200302, -0.14561758935451508, -0.05202892795205116, -0.06609700620174408, 0.15190014243125916, 0.07791044563055038, -0.2837522625923157, -0.09837419539690018, 0.015778372064232826, -0.12962038815021515, 0.033293671905994415, 0.045813653618097305, 0.05022028088569641, 0.1737285703420639, 0.0962413102388382, 0.24429111182689667, -0.02183716930449009, -0.055000707507133484, 0.28517645597457886, 0.49283450841903687, 0.11179664731025696, 0.37023985385894775, 0.22095149755477905, -0.03185305371880531, -0.018022235482931137, -0.06381949782371521, 0.32792896032333374, 0.13350702822208405, 0.10077288001775742, 0.34535762667655945, -0.14378131926059723, 0.1954507976770401, 0.2943040728569031, 0.40655651688575745, 0.15747132897377014, 0.05006157234311104, 0.13223013281822205, 0.37683817744255066, 0.11300572752952576, -0.14389623701572418, -0.4009779393672943, 0.05341446399688721, 0.22226198017597198, -0.21587979793548584, 0.39264991879463196, 0.057933058589696884, 0.12950608134269714, 0.6797930598258972, 0.19437870383262634, 0.22262617945671082, -0.09242713451385498, 0.5110800266265869, 0.15303373336791992, -0.01221970934420824, 0.02181469276547432, 0.3314876854419708, 0.37037739157676697, 0.04343625530600548, 0.31975460052490234, -0.3981621563434601, 0.0058656795881688595, -0.3019346296787262, 0.24942806363105774, 0.16401393711566925, -0.09501241892576218, -0.12127508223056793, -0.2490772157907486, 0.1495935320854187, -0.10245084017515182, -0.0966302677989006, 0.37264907360076904, -0.2006695419549942, -0.1357133388519287, -0.4122927784919739, 0.022608919069170952, -0.13762463629245758, -0.0967179611325264, 0.5791195034980774, -0.17890122532844543, 0.22597458958625793, -0.13297395408153534, 0.14260466396808624, -0.3491804897785187, 0.37587282061576843, -0.053137343376874924, 0.1682199239730835, -0.1773202121257782, 0.32109948992729187, 0.03251440078020096, -0.06887803971767426, 0.2382211536169052, 0.23181340098381042, 0.010833117179572582, -0.04224332049489021, -0.17970497906208038, 0.1846613585948944, 0.20922428369522095, 0.02704172395169735, 0.2010364979505539, 0.2089032679796219, -0.20733296871185303, -0.03912285715341568, 0.0013761930167675018, 0.41934075951576233, 0.002167564118281007, 0.11577974259853363, -0.12552770972251892, 0.12153816968202591, -0.0640328973531723, 0.03905928134918213, -0.13131073117256165, 0.29160812497138977, -0.3792620599269867, 0.42462074756622314, -0.19832025468349457, -0.2484908550977707, -0.2704584002494812, 0.08281973004341125, -0.3937569558620453, -0.0076762037351727486, 0.3037267029285431, -0.2559804916381836, -0.1656370311975479, -0.11141286790370941, 0.025609802454710007, 0.13602644205093384, 0.275667279958725, 0.04751112312078476, 0.6115579009056091, -0.05797412246465683, -0.33209899067878723, -0.3333337903022766, -0.21722741425037384, 0.04634026437997818, 0.2531872093677521, -0.1766960173845291, -0.06111719459295273, -0.03393247723579407, 0.19577434659004211, 0.1287049502134323, -0.2622009515762329, 0.056634627282619476, -0.3625941276550293, -0.156106099486351, 0.07386297732591629, -0.13695797324180603, 0.3464954197406769, 0.13734330236911774, -0.08832336962223053, -0.0758519172668457, 0.08456109464168549, -0.17943742871284485, -0.09959769994020462, 0.2675313353538513, -0.0915985256433487, -0.13050225377082825, 0.1973101794719696, -0.10030465573072433, 0.4405750632286072, 0.14122465252876282, -0.1319747120141983, -0.1559733897447586, -0.462007611989975, 0.015122957527637482, -0.03263881057500839, 0.03458387032151222, -0.058352384716272354, -0.4577644169330597, -0.1961345374584198, -0.1882941871881485, -0.0073617142625153065, -0.013591735623776913, 0.024683676660060883, -0.19159914553165436, -0.06960104405879974, -0.21554838120937347, -0.022857651114463806, 0.18137109279632568, 0.23163406550884247, -0.14429068565368652, 0.010661580599844456, -0.09160742163658142, 0.1752527952194214, 0.5658097863197327, 0.005552134942263365, -0.13277827203273773, -0.09998761117458344, -0.37898802757263184, 0.04435526207089424, -0.3548320531845093, -0.7770997285842896, 0.23197029531002045, 0.07482261955738068, 0.06853741407394409, 0.02352108620107174, 0.3077082931995392, 0.2624308466911316, -0.20737363398075104, -0.16779768466949463, 0.549264132976532, -0.058169033378362656, 0.025723788887262344, 0.10977021604776382, 0.04908791184425354 ]
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.014954010024666786, -0.04261304438114166, -0.12364757061004639, 0.15626990795135498, 0.2540781497955322, -0.009232915006577969, 0.12768565118312836, -0.13031861186027527, -0.29622745513916016, -0.21112625300884247, -0.23479042947292328, 0.08092276006937027, -0.14033794403076172, 0.6276572942733765, 0.4649847745895386, -0.18562853336334229, 0.19984830915927887, 0.22955241799354553, -0.5902294516563416, -0.06250683963298798, 0.1372847706079483, 0.2634812295436859, -0.1885325312614441, -0.19608432054519653, -0.35980871319770813, -0.059892021119594574, -0.11354638636112213, -0.1968572437763214, -0.0324530303478241, -0.2604272961616516, 0.5524132251739502, 0.15946607291698456, 0.24787168204784393, 0.5725996494293213, -0.00011832702875835821, -0.07961719483137131, 0.1754107028245926, -0.06487779319286346, -0.35437607765197754, 0.024801721796393394, -0.3400880694389343, -0.3828362226486206, -0.014648007228970528, 0.07582088559865952, -0.000012129743481636979, 0.04361813887953758, 0.005932637490332127, -0.08159622550010681, 0.3228549659252167, -0.013468177989125252, 0.16261173784732819, 0.3992321491241455, 0.209479421377182, -0.10163620114326477, -0.18310575187206268, 0.44713491201400757, -0.30127131938934326, -0.11411816626787186, 0.10770505666732788, 0.0791429653763771, 0.5704088807106018, 0.023409875109791756, 0.02213471010327339, -0.15810725092887878, 0.1740730255842209, 0.219776913523674, -0.22782965004444122, -0.27676504850387573, -0.1618102639913559, 0.23514193296432495, 0.7575777769088745, -0.3252033591270447, -0.6390732526779175, -0.24280692636966705, 0.0055803763680160046, -0.012706855311989784, -0.19008947908878326, -0.05981926992535591, -0.1736704260110855, 0.24468690156936646, -0.24710018932819366, -0.6649022102355957, -0.2245127260684967, 0.10409821569919586, -0.06167209893465042, 0.4285617470741272, -0.11064490675926208, 0.03213619068264961, 0.2054017037153244, 0.03258629888296127, 0.2649046778678894, -0.08499455451965332, -0.06784119457006454, 0.1405930370092392, -0.08552010357379913, -0.23672351241111755, -0.22319068014621735, 0.35593199729919434, 0.325263649225235, 0.16999348998069763, -0.37036117911338806, -0.1642533391714096, -0.20217348635196686, -0.18129311501979828, 0.2401762455701828, 0.08965673297643661, 0.08045311272144318, 0.48210573196411133, 0.13839878141880035, -0.12845824658870697, 0.49423274397850037, -0.062205564230680466, -0.025639818981289864, 0.0839991644024849, -0.20749928057193756, -0.35969051718711853, -0.10008198767900467, -0.27585020661354065, 0.050233520567417145, -0.3096506893634796, 0.5556647777557373, -0.14987482130527496, 0.12061192095279694, 0.21451660990715027, -0.013904079794883728, 0.11381977796554565, -0.011996716260910034, 0.3075074255466461, 0.36155956983566284, 0.033043038100004196, -0.07565049082040787, -0.12242159247398376, -0.03813822939991951, 0.16365903615951538, 0.2613060176372528, -0.24160629510879517, 0.14325907826423645, -0.22399389743804932, 0.3553827702999115, 0.33232271671295166, -0.06169574707746506, 0.221713125705719, -0.1798955649137497, 0.49006417393684387, -0.3739980161190033, 0.2030831128358841, -0.2409493625164032, 0.20284846425056458, -0.28403240442276, 0.010192010551691055, 0.04494546353816986, -0.037402473390102386, -0.16174887120723724, -0.03041943907737732, -0.12718428671360016, -0.34483838081359863, -0.3084506690502167, -0.055345915257930756, -0.28097012639045715, -0.14887800812721252, -0.06351206451654434, 0.24922877550125122, 0.16576357185840607, -0.03379557281732559, 0.18683141469955444, 0.3834112286567688, -0.41517695784568787, -0.37151235342025757, 0.10711848735809326, -0.45126602053642273, -0.12534570693969727, 0.019636301323771477, -0.048480499535799026, -0.037042342126369476, -0.12077108770608902, -0.34463322162628174, 0.43034523725509644, -0.48130255937576294, -0.2709694504737854, -0.035010308027267456, 0.04573098570108414, 0.1971786916255951, -0.11975225806236267, 0.3125366270542145, 0.23280221223831177, 0.03416316583752632, -0.030303556472063065, 0.3453214168548584, 0.007070503663271666, -0.35746827721595764, 0.18858702480793, -0.21123693883419037, 0.12069633603096008, 0.24602732062339783, 0.22266437113285065, 0.31942516565322876, -0.1441022902727127, -0.1359204798936844, 0.1034688875079155, 0.136240616440773, 0.1348315328359604, 0.24351856112480164, 0.37391170859336853, 0.32333195209503174, 0.16270288825035095, -0.2956458032131195, -0.4294295907020569, 0.068410225212574, 0.1442977339029312, 0.021106146275997162, -0.1536235809326172, -0.22095832228660583, -0.035228945314884186, 0.16795307397842407, 0.07123926281929016, -0.14382462203502655, -0.06198681518435478, -0.19338291883468628, 0.481826514005661, -0.1869962513446808, -0.383025586605072, 0.9310396313667297, 0.4141555726528168, 0.3214598000049591, 0.03356827050447464, 0.2666040062904358, -0.06733804941177368, 0.046187810599803925, -0.0373510979115963, 0.2509399652481079, -0.07178197801113129, -0.265928715467453, 0.21645841002464294, 0.16635076701641083, -0.17066311836242676, -0.1484292447566986, 0.38068562746047974, 0.1441076546907425, 0.2186954915523529, 0.016510991379618645, 0.1651923656463623, -0.17839819192886353, -0.08535045385360718, 0.07035818696022034, -0.08032406121492386, -0.24336707592010498, -0.11899655312299728, -0.05555155128240585, 0.06456878036260605, 0.2935169041156769, 0.36725619435310364, 0.2279912233352661, -0.18936292827129364, -0.160657599568367, -0.09337867051362991, -0.017838699743151665, 0.22252920269966125, -0.03404197096824646, -0.11807473748922348, -0.17977312207221985, -0.055330295115709305, -0.28796911239624023, 0.011368360370397568, 0.3001760244369507, -0.24511663615703583, 0.509658932685852, 0.2987684905529022, 0.2240203619003296, 0.30439314246177673, 0.21227917075157166, 0.10095705837011337, -0.20464149117469788, -0.07674535363912582, -0.006380851846188307, -0.02539781853556633, 0.17296691238880157, 0.0567828044295311, -0.2454535961151123, -0.24575728178024292, 0.05041251704096794, 0.027561470866203308, -0.29380500316619873, -0.38473257422447205, -0.09107781201601028, -0.10327810794115067, -0.1019805371761322, -0.17785219848155975, -0.03334581479430199, -0.21135400235652924, -0.29851022362709045, -0.17746426165103912, 0.0904579758644104, -0.027547385543584824, -0.2283669263124466, 0.3074948489665985, 0.1781066507101059, -0.18511474132537842, 0.42310500144958496, -0.29120007157325745, -0.3212718069553375, -0.12361428141593933, 0.23004138469696045, -0.07255875319242477, 0.08760657161474228, 0.06453555077314377, -0.1275731474161148, 0.1365978717803955, -0.14871442317962646, 0.42953357100486755, -0.2195650041103363, -0.46382954716682434, 0.1157689169049263, -0.12114498019218445, 0.36966678500175476, -0.051805686205625534, 0.17170758545398712, 0.07283787429332733, -0.05471652001142502, -0.03720548003911972, -0.0015676353359594941, 0.15163584053516388, -0.2317010462284088, 0.0019122571684420109, -0.30086103081703186, -0.20507411658763885, -0.10112170875072479, -0.544274628162384, -0.10781842470169067, 0.5183220505714417, 0.1308663785457611, -0.22030168771743774, -0.060864806175231934, 0.04152750223875046, 0.06096596270799637, -0.22251835465431213, 0.26331576704978943, 0.05442948639392853, -0.14337193965911865, 0.5334437489509583, -0.13558152318000793, -0.188820943236351, -0.051572754979133606, -0.1765880584716797, 0.3594615161418915, 0.07560750842094421, -0.4208945035934448, 0.20935818552970886, 0.07040169090032578, 0.11922994256019592, 0.18452107906341553, 0.1898520141839981, 0.5759535431861877, 0.036878060549497604, 0.23183436691761017, -0.03349457308650017, -0.3571570813655853, -0.1830798089504242, -0.06637104600667953, 0.20510707795619965, -0.07453015446662903, 0.07474203407764435, -0.3267485201358795, 0.2876836955547333, 0.18678446114063263, -0.05315535515546799, 0.10467123240232468, 0.21026168763637543, 0.6634019017219543, 0.1246425062417984, -0.19615982472896576, -0.07093217223882675, 0.10211394727230072, 0.13746091723442078, -0.0829867273569107, 0.34839990735054016, -0.16845183074474335, -0.4113776981830597, 0.0630342960357666, -0.2537767291069031, 0.11282225698232651, -0.19116510450839996, -0.00008163558959495276, 0.19220350682735443, 0.06698334962129593, -0.07011212408542633, -0.06747660040855408, 0.05279695987701416, -0.016312111169099808, 0.3288476765155792, 0.07690192759037018, -0.031542371958494186, -0.300746887922287, -0.10233274102210999, -0.3768813908100128, 0.012738269753754139, -0.06853244453668594, 0.18786461651325226, -0.136652871966362, 0.17297059297561646, -0.13718487322330475, 0.11107132583856583, 0.8732078075408936, -0.06081433966755867, -0.685209333896637, -0.21193616092205048, 0.1207321435213089, -0.3259774446487427, 0.07691933214664459, -0.05452067777514458, -0.07727114111185074, 0.1502991020679474, 0.374464213848114, -0.2502129375934601, -0.11537440866231918, 0.35106587409973145, 0.15230846405029297, -0.031096039339900017, -0.31219637393951416, -0.08447281271219254, -0.12662912905216217, -0.1468072235584259, -0.16615554690361023, -0.06065719947218895, -0.2059597223997116, -0.0625753104686737, -0.3869856595993042, -0.07855440676212311, 0.019412539899349213, 0.2817104160785675, 0.06504890322685242, 0.15919026732444763, -0.08884484320878983, 0.3104570806026459, 0.40424078702926636, 0.007245475891977549, 0.15043234825134277, 0.16849936544895172, -0.14282193779945374, -0.29788610339164734, -0.10263215005397797, 0.05005437508225441, 0.4498153030872345, 0.015660926699638367, -0.05868878960609436, -0.26250746846199036, 0.03500187397003174, 0.003744494868442416, -0.14597375690937042, -0.2563105821609497, 0.3563821613788605, 0.30560964345932007, -0.5959276556968689, -0.4213726818561554, 0.40661150217056274, 0.3207866847515106, -0.03493614122271538, 0.3828687071800232, 0.3980772793292999, -0.09528730809688568, -0.13340036571025848, -0.11306001991033554, 0.7541898488998413, -0.3667333424091339, 0.2954513132572174, 0.03711368888616562, -0.2931690216064453, 0.5418292284011841, -0.3917771577835083, -0.056568946689367294, 0.012272902764379978, -0.09468590468168259, -0.23481236398220062, -0.11592869460582733, 0.2900257706642151, 0.31450316309928894, -0.4339357912540436, 0.3982245922088623, -0.08986172080039978, 0.05778476595878601, -0.0038343637716025114, 0.061299994587898254, 0.16514714062213898, -0.31593430042266846, -0.08554410189390182, 0.13211508095264435, 0.13463811576366425, 0.4040137529373169, -0.33010804653167725, 0.050152167677879333, -0.24125106632709503, -0.14610564708709717, -0.25973016023635864, 0.04205276817083359, 0.19503459334373474, 0.0809166207909584, 0.609246015548706, -0.007830661721527576, 0.04228080436587334, 0.40764912962913513, 0.3599238991737366, 0.13512375950813293, -0.35795921087265015, 0.16330088675022125, -0.39228859543800354, -0.16849057376384735, 0.05495923012495041, 0.2180163860321045, -0.009660226292908192, -0.05501503869891167, -0.33423128724098206, 0.0008054848294705153, -0.029492495581507683, -0.26818928122520447, 0.0539923831820488, 0.02390766330063343, 0.023601289838552475, -0.11694801598787308, -0.016598643735051155, 0.4251258075237274, 0.28437942266464233, 0.025388330221176147, 0.104901522397995, 0.2831367254257202, -0.10612644255161285, 0.39617204666137695, 0.15564459562301636, 0.0899263545870781, -0.300647497177124, 0.16091443598270416, 0.035972777754068375, -0.4082324802875519, 0.05160737782716751, -0.042330142110586166, -0.36998212337493896, -0.12155753374099731, -0.2851470112800598, -0.1596383899450302, -0.04466952010989189, -0.24766480922698975, 0.18409913778305054, -0.21890141069889069, -0.2216070145368576, -0.11381161957979202, 0.13858456909656525, -0.29295265674591064, -0.2962222993373871, -0.2043328732252121, -0.367498517036438, 0.22212831676006317, -0.06788931787014008, 0.2909981608390808, 0.08430616557598114, 0.15161630511283875, 0.17190422117710114, 0.01394251361489296, -0.13818717002868652, -0.210238516330719, 0.08889289945363998, -0.14401055872440338, 0.5395703315734863, 0.2788923680782318, 0.25114890933036804, -0.07778305560350418, -0.006312191486358643, -0.044362328946590424, 0.05278598144650459, -0.010928886011242867, 0.034565337002277374, 0.15278510749340057, 0.08178576081991196, -0.25355464220046997, -0.040444206446409225, -0.00914140697568655, -0.12373732030391693, -0.08650219440460205, 0.05153806135058403, 0.06206762418150902, 0.14881645143032074, 0.1053900346159935, 0.18229858577251434, 0.002910854294896126, -0.11663558334112167, 0.31450000405311584, 0.3794337213039398, 0.037079110741615295, 0.295294851064682, 0.1985398530960083, -0.002233292441815138, 0.07928167283535004, -0.11642323434352875, 0.36072254180908203, 0.20533457398414612, 0.07796108722686768, 0.3609718680381775, -0.15400578081607819, 0.2633635401725769, 0.3500864505767822, 0.20618703961372375, 0.01671580597758293, 0.05208689719438553, 0.1677127331495285, 0.4607207179069519, 0.0702986940741539, -0.14475566148757935, -0.3850225508213043, 0.21374014019966125, 0.2892933487892151, -0.15527069568634033, 0.475191593170166, -0.059618234634399414, 0.17945347726345062, 0.5779323577880859, 0.1542578935623169, 0.10144456475973129, 0.005222985055297613, 0.5116177201271057, 0.1466655135154724, 0.1921703815460205, 0.096149742603302, 0.26618534326553345, 0.2873872220516205, 0.040882449597120285, 0.26617538928985596, -0.46697869896888733, 0.010627673007547855, -0.3258070647716522, 0.14984513819217682, 0.1935579925775528, -0.162645623087883, -0.17305965721607208, -0.22166433930397034, 0.2443469762802124, -0.0009265048429369926, -0.13467054069042206, 0.41993632912635803, -0.24466590583324432, -0.08258132636547089, -0.43583497405052185, -0.02764607034623623, -0.1879347562789917, -0.1162281483411789, 0.5522980093955994, -0.15286698937416077, 0.2951293885707855, -0.12902581691741943, 0.2824728190898895, -0.4773632287979126, 0.3376287519931793, -0.11060264706611633, 0.1252852976322174, -0.15944474935531616, 0.35579800605773926, 0.1588895469903946, -0.15236030519008636, 0.28739339113235474, 0.12300438433885574, -0.07856589555740356, -0.07966897636651993, -0.02362167276442051, 0.16023343801498413, 0.1859249323606491, 0.06332610547542572, 0.34895211458206177, 0.15197426080703735, -0.14368589222431183, -0.02843506634235382, -0.08212916553020477, 0.30141279101371765, -0.04045970365405083, 0.12270443141460419, -0.14538441598415375, 0.13888342678546906, -0.03281687945127487, -0.05587329715490341, -0.03316458687186241, 0.35009512305259705, -0.3557126522064209, 0.3076309263706207, -0.32553020119667053, -0.20901177823543549, -0.2750297486782074, 0.08530645817518234, -0.2894613444805145, 0.12061799317598343, 0.38486963510513306, -0.24470610916614532, -0.19134029746055603, -0.05276578664779663, 0.014120252802968025, 0.06586577743291855, 0.3058438003063202, 0.08390561491250992, 0.495221883058548, -0.04732974246144295, -0.23409639298915863, -0.34905898571014404, -0.23567020893096924, -0.15908297896385193, 0.02726282924413681, -0.13022631406784058, -0.14999158680438995, -0.011167129501700401, 0.11917172372341156, 0.07776092737913132, -0.08038533478975296, 0.03923492133617401, -0.437206894159317, -0.19034001231193542, -0.10895394533872604, -0.23775485157966614, 0.3689497411251068, 0.19631338119506836, -0.11960688978433609, -0.06473119556903839, 0.09641539305448532, -0.20484966039657593, -0.04128292575478554, 0.34415221214294434, -0.2105274647474289, -0.17691710591316223, 0.29142361879348755, -0.2044678032398224, 0.5206043720245361, 0.06564810872077942, -0.05735806003212929, -0.1465374380350113, -0.41697612404823303, -0.05283886566758156, 0.03702084720134735, -0.05839396268129349, -0.08957396447658539, -0.6124742031097412, -0.17273949086666107, -0.15074194967746735, 0.036789312958717346, 0.042364392429590225, -0.020199229940772057, -0.1375284641981125, 0.004137561656534672, -0.2497768998146057, -0.01351932529360056, 0.2383357733488083, 0.11182838678359985, -0.1766234040260315, 0.028508801013231277, 0.08099807053804398, 0.20657725632190704, 0.49095165729522705, -0.010552856139838696, -0.03226453438401222, -0.015570166520774364, -0.3327311873435974, 0.07789026200771332, -0.40097811818122864, -0.6961489915847778, 0.2136877030134201, 0.13574530184268951, 0.1262795627117157, 0.05788590386509895, 0.3085644245147705, 0.1707359254360199, -0.1396750956773758, -0.13162651658058167, 0.5406718254089355, -0.1637880951166153, -0.004967192653566599, 0.1489524394273758, 0.0853496715426445 ]
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.02960415557026863, -0.039974238723516464, -0.10899727791547775, 0.18604224920272827, 0.2394057959318161, -0.044519174844026566, 0.11317187547683716, -0.10590115934610367, -0.33142438530921936, -0.302870512008667, -0.26509347558021545, 0.10409101098775864, -0.13574792444705963, 0.5306630730628967, 0.368856281042099, -0.07582661509513855, 0.20950189232826233, 0.21151691675186157, -0.6172248125076294, -0.029879961162805557, 0.14325585961341858, 0.2838037610054016, -0.19708941876888275, -0.15030398964881897, -0.36426830291748047, 0.05629705265164375, -0.07382659614086151, -0.18423476815223694, 0.026697229593992233, -0.21157865226268768, 0.5577287077903748, 0.16359512507915497, 0.21851523220539093, 0.5203497409820557, -0.00012088738003512844, -0.03546029329299927, 0.21301525831222534, -0.07749738544225693, -0.33611446619033813, -0.010166843421757221, -0.3893676996231079, -0.27922725677490234, -0.0301753431558609, 0.05801618844270706, 0.009717694483697414, 0.0661546140909195, 0.021106058731675148, -0.13836421072483063, 0.3403489589691162, 0.05808083340525627, 0.15155549347400665, 0.35574933886528015, 0.2534596621990204, -0.024150457233190536, -0.16755512356758118, 0.490202397108078, -0.2422233670949936, -0.07130245119333267, 0.08695932477712631, 0.09850067645311356, 0.5578455924987793, 0.0065274606458842754, -0.03471358120441437, -0.10036870837211609, 0.299693763256073, 0.17451398074626923, -0.339900940656662, -0.2819993793964386, -0.051111917942762375, 0.2685140073299408, 0.758783221244812, -0.3713592290878296, -0.6890042424201965, -0.31221312284469604, -0.027915773913264275, 0.10895858705043793, -0.15259714424610138, -0.10763930529356003, -0.13563430309295654, 0.21491491794586182, -0.2901657223701477, -0.6198325753211975, -0.16219687461853027, 0.11244847625494003, -0.0005173689569346607, 0.3889233469963074, -0.16202238202095032, 0.07775042206048965, 0.21133990585803986, -0.055718861520290375, 0.17132657766342163, -0.09979473054409027, -0.032568663358688354, 0.17617350816726685, -0.1066201850771904, -0.17058460414409637, -0.25458139181137085, 0.40829214453697205, 0.29486849904060364, 0.2181311398744583, -0.4194556176662445, -0.1357574760913849, -0.23693136870861053, -0.1831275224685669, 0.19292406737804413, 0.06340479105710983, 0.10548702627420425, 0.49573343992233276, 0.08938475698232651, -0.14456844329833984, 0.43280738592147827, -0.03995335474610329, -0.0460185706615448, 0.016179539263248444, -0.273743212223053, -0.39932647347450256, -0.0891319066286087, -0.2870238721370697, 0.006404023617506027, -0.2886553704738617, 0.4500449001789093, -0.19299709796905518, 0.18218889832496643, 0.24036987125873566, 0.03207692503929138, 0.13225966691970825, -0.0038807764649391174, 0.2970759868621826, 0.3454446494579315, 0.06101224943995476, -0.08381384611129761, -0.0881425216794014, -0.019941620528697968, 0.11406086385250092, 0.2309090495109558, -0.31537961959838867, 0.18550819158554077, -0.2256009727716446, 0.43081411719322205, 0.341776043176651, -0.06384072452783585, 0.2185707539319992, -0.09551496803760529, 0.44557395577430725, -0.35126399993896484, 0.2501908242702484, -0.14072257280349731, 0.17618662118911743, -0.29221850633621216, -0.010903149843215942, 0.07058162242174149, -0.004938982892781496, -0.08553433418273926, -0.04918072745203972, -0.17088253796100616, -0.27392899990081787, -0.26536110043525696, -0.10155801475048065, -0.21993839740753174, -0.135084867477417, 0.028136225417256355, 0.22815553843975067, 0.19657129049301147, -0.02417779341340065, 0.2415093034505844, 0.4308133125305176, -0.32043546438217163, -0.4266451895236969, 0.07835889607667923, -0.43447145819664, -0.15416355431079865, -0.03254314139485359, -0.06737997382879257, -0.11045023798942566, -0.1799430400133133, -0.36620116233825684, 0.3999588191509247, -0.5274588465690613, -0.30119913816452026, 0.021751271560788155, 0.10337552428245544, 0.23968470096588135, -0.113210029900074, 0.24345648288726807, 0.15893074870109558, 0.08020176738500595, 0.027239525690674782, 0.244711235165596, 0.014504964463412762, -0.3280429542064667, 0.20432448387145996, -0.234998881816864, 0.10634277760982513, 0.22396861016750336, 0.19526153802871704, 0.3022701144218445, -0.1420414000749588, -0.09183347225189209, 0.15574854612350464, 0.13828927278518677, 0.15555131435394287, 0.2677217721939087, 0.3016328513622284, 0.2884354591369629, 0.08321662247180939, -0.3093566298484802, -0.37111666798591614, 0.1130676344037056, 0.15074579417705536, 0.0016272444045171142, -0.1291174739599228, -0.23517629504203796, -0.04628361761569977, 0.146178737282753, 0.09644580632448196, -0.1716502159833908, -0.07754046469926834, -0.09915084391832352, 0.464738667011261, -0.2203245609998703, -0.34219640493392944, 0.9912427067756653, 0.46889132261276245, 0.32778921723365784, -0.09093110263347626, 0.2403012067079544, -0.04750308766961098, 0.07405861467123032, -0.053222957998514175, 0.27778196334838867, -0.038689833134412766, -0.2761126458644867, 0.23256322741508484, 0.20868007838726044, -0.17584900557994843, -0.08121518045663834, 0.27738410234451294, 0.193504199385643, 0.18436117470264435, -0.003529532579705119, 0.12181531637907028, -0.22649535536766052, -0.0739818587899208, 0.05712505429983139, 0.031810373067855835, -0.22044870257377625, -0.12567581236362457, 0.019560158252716064, 0.0984862744808197, 0.31179100275039673, 0.31373387575149536, 0.21090228855609894, -0.26050058007240295, -0.2747131288051605, -0.07783607393503189, -0.06330257654190063, 0.26342716813087463, -0.013122599571943283, -0.05890069529414177, -0.22669553756713867, -0.11915075033903122, -0.18619361519813538, -0.021087098866701126, 0.312491774559021, -0.26409634947776794, 0.4855320155620575, 0.2817259132862091, 0.20359943807125092, 0.3454304039478302, 0.1963162124156952, 0.07885883748531342, -0.18513348698616028, -0.02954210340976715, 0.0008034627535380423, 0.015745317563414574, 0.20130294561386108, 0.015526212751865387, -0.30223986506462097, -0.3382849097251892, 0.053907375782728195, 0.07798311114311218, -0.2943550646305084, -0.4199882745742798, -0.08404374122619629, -0.1885017454624176, -0.05860105901956558, -0.20476864278316498, -0.03257311135530472, -0.25857603549957275, -0.37291792035102844, -0.23933234810829163, 0.049308404326438904, -0.16058766841888428, -0.23979003727436066, 0.29367002844810486, 0.16998755931854248, -0.2903739809989929, 0.3241264820098877, -0.30409547686576843, -0.40817132592201233, -0.15803630650043488, 0.2665276527404785, -0.061330199241638184, 0.06689602136611938, 0.05226975679397583, -0.08402419835329056, 0.12964263558387756, -0.16986747086048126, 0.45502421259880066, -0.16986025869846344, -0.4443706274032593, 0.10273910313844681, -0.14148548245429993, 0.36940449476242065, 0.02767874114215374, 0.10132282972335815, 0.09700770676136017, -0.08394641429185867, -0.010479231365025043, -0.00444655679166317, 0.1619691550731659, -0.24437348544597626, 0.007665612269192934, -0.2909049987792969, -0.1808827668428421, -0.021443335339426994, -0.5090833306312561, -0.11759701371192932, 0.5027700662612915, 0.13875173032283783, -0.21726715564727783, -0.029248671606183052, 0.01440836489200592, 0.14924615621566772, -0.19997264444828033, 0.2633720338344574, 0.03340085223317146, -0.08732049912214279, 0.5326377153396606, -0.10552028566598892, -0.11744945496320724, -0.026455702260136604, -0.15321707725524902, 0.4213305115699768, 0.09376737475395203, -0.3301803767681122, 0.19152186810970306, -0.011430537328124046, 0.056015465408563614, 0.18471235036849976, 0.1781051605939865, 0.5187994837760925, 0.03921381011605263, 0.2465079128742218, -0.023792127147316933, -0.3398370146751404, -0.17185209691524506, -0.16005417704582214, 0.20835299789905548, -0.07104131579399109, 0.06305428594350815, -0.2713458836078644, 0.28383857011795044, 0.21424712240695953, -0.11296549439430237, 0.04214540868997574, 0.18318964540958405, 0.6972616910934448, 0.17816239595413208, -0.28195080161094666, 0.013061330653727055, 0.13709869980812073, 0.14389248192310333, -0.054872654378414154, 0.32156163454055786, -0.02952803112566471, -0.44120708107948303, 0.09633459895849228, -0.27443233132362366, 0.052812788635492325, -0.25210386514663696, -0.10828994959592819, 0.19607117772102356, 0.08798859268426895, -0.0457800030708313, -0.003603293327614665, 0.05603116750717163, -0.013768992386758327, 0.3663777709007263, 0.08020853996276855, -0.002642950275912881, -0.3299095928668976, -0.07568857073783875, -0.41991886496543884, 0.06919024884700775, -0.05779562145471573, 0.2198611944913864, -0.11036975681781769, 0.11334226280450821, -0.16467678546905518, 0.10277968645095825, 0.8495221734046936, 0.0033575822599232197, -0.6551274061203003, -0.1627011001110077, 0.14939649403095245, -0.4111638367176056, 0.06710778921842575, -0.0011652366956695914, -0.06021333858370781, 0.2115541696548462, 0.41904109716415405, -0.2209344059228897, -0.11011818796396255, 0.26967722177505493, 0.12218841165304184, 0.039788953959941864, -0.22756077349185944, -0.1750163435935974, -0.1402866095304489, -0.15965062379837036, -0.18989023566246033, -0.04255785420536995, -0.16423045098781586, -0.03890640288591385, -0.30551013350486755, -0.08762127161026001, -0.04321875423192978, 0.3834269642829895, 0.08784008026123047, 0.18161261081695557, -0.10500781238079071, 0.3220688998699188, 0.480713814496994, -0.031069042161107063, 0.16528910398483276, 0.22426621615886688, -0.16922225058078766, -0.3239911198616028, -0.16587553918361664, 0.10070206224918365, 0.4438794255256653, -0.036525268107652664, -0.09407282620668411, -0.2365947812795639, 0.034346554428339005, -0.028723586350679398, -0.13148778676986694, -0.20292088389396667, 0.3194979727268219, 0.2787729501724243, -0.5626206994056702, -0.43467947840690613, 0.33675509691238403, 0.2931678295135498, -0.05571367219090462, 0.38457226753234863, 0.39173614978790283, -0.1271839588880539, -0.17879433929920197, -0.05765524134039879, 0.7378727793693542, -0.279371976852417, 0.3199295103549957, -0.015067217871546745, -0.35072702169418335, 0.5631985664367676, -0.32424262166023254, -0.09289778023958206, -0.003547470783814788, -0.09914723038673401, -0.22838793694972992, -0.1782836616039276, 0.34582892060279846, 0.3576587736606598, -0.4025152623653412, 0.33773380517959595, -0.04282442852854729, 0.08836765587329865, 0.027002684772014618, 0.005971603561192751, 0.1837414801120758, -0.2762792706489563, -0.006864842493087053, 0.11973138898611069, 0.1188790425658226, 0.4403024911880493, -0.2937503755092621, 0.07856930047273636, -0.29157453775405884, -0.19454291462898254, -0.30286940932273865, 0.02196153812110424, 0.12888075411319733, 0.031429167836904526, 0.7062222957611084, -0.007783244829624891, 0.13504256308078766, 0.4751850962638855, 0.43990081548690796, 0.13918854296207428, -0.3751457929611206, 0.19669035077095032, -0.36004194617271423, -0.1497928649187088, 0.05894938483834267, 0.1702253222465515, -0.06355328857898712, 0.018488891422748566, -0.30945903062820435, 0.029692262411117554, -0.022729501128196716, -0.27719759941101074, 0.0550495944917202, 0.059580303728580475, 0.006160176359117031, -0.08397170156240463, -0.07940345257520676, 0.44859567284584045, 0.27819329500198364, 0.01870756223797798, 0.07484836131334305, 0.2459593564271927, -0.09436309337615967, 0.3475072383880615, 0.06465737521648407, 0.032273076474666595, -0.2667601406574249, 0.2942606508731842, -0.08987987786531448, -0.37797585129737854, 0.08361701667308807, -0.10844767838716507, -0.3593871593475342, -0.06699368357658386, -0.28278055787086487, -0.18745189905166626, -0.07432863116264343, -0.30295002460479736, 0.24835900962352753, -0.23506607115268707, -0.18005946278572083, -0.1511823683977127, 0.08051975816488266, -0.21666684746742249, -0.20993991196155548, -0.17506349086761475, -0.41398441791534424, 0.21043284237384796, -0.11201351135969162, 0.2709079682826996, 0.084454245865345, 0.12680122256278992, 0.19094908237457275, 0.07396941632032394, -0.11193849891424179, -0.219850093126297, 0.12070530652999878, -0.2033243179321289, 0.5632283091545105, 0.20706859230995178, 0.2890426218509674, -0.11984197795391083, -0.016339268535375595, 0.020145943388342857, 0.051964838057756424, 0.015574636869132519, -0.008081397041678429, 0.17269228398799896, 0.12153889238834381, -0.31048583984375, -0.04912494122982025, -0.0010922302026301622, -0.09938343614339828, -0.1420760154724121, 0.11402653157711029, 0.1778160035610199, 0.13410858809947968, 0.0922241136431694, 0.08150380104780197, -0.03189228102564812, -0.18645232915878296, 0.23203045129776, 0.3301812708377838, 0.038717251271009445, 0.3300391137599945, 0.21742019057273865, -0.027683861553668976, 0.05366762727499008, -0.14365938305854797, 0.3325996398925781, 0.23576277494430542, 0.07204779237508774, 0.30162277817726135, -0.11899810284376144, 0.21524572372436523, 0.3758433163166046, 0.24863167107105255, 0.021829530596733093, 0.05313751846551895, 0.1425352543592453, 0.48355159163475037, 0.04875573143362999, -0.1327560544013977, -0.3614993393421173, 0.12823377549648285, 0.25274431705474854, -0.13299420475959778, 0.4360303580760956, -0.06524193286895752, 0.14868077635765076, 0.5753974914550781, 0.10462190955877304, 0.13972699642181396, 0.006667931564152241, 0.5112197399139404, 0.1781444400548935, 0.22389154136180878, 0.08526254445314407, 0.31254851818084717, 0.2670513093471527, 0.1331118643283844, 0.23726502060890198, -0.5011428594589233, 0.01695338636636734, -0.3879595398902893, 0.162153959274292, 0.18343442678451538, -0.20916004478931427, -0.2089093029499054, -0.18605650961399078, 0.1895494908094406, 0.02919546142220497, -0.17040671408176422, 0.4248940646648407, -0.22978733479976654, -0.07887813448905945, -0.36368194222450256, -0.014621256850659847, -0.16187754273414612, -0.19841837882995605, 0.6090624928474426, -0.18540506064891815, 0.23823916912078857, -0.16709083318710327, 0.24372504651546478, -0.5002301931381226, 0.31454965472221375, -0.1389513611793518, 0.14497172832489014, -0.20916995406150818, 0.2995735704898834, 0.14650240540504456, -0.1955227553844452, 0.23232486844062805, 0.06757812201976776, -0.06335502862930298, -0.07975529879331589, 0.045310210436582565, 0.12636379897594452, 0.2239428013563156, 0.04170845448970795, 0.4054318368434906, 0.13060028851032257, -0.17689870297908783, 0.03125665709376335, -0.10929612815380096, 0.3131624460220337, -0.06719454377889633, 0.08794622868299484, -0.08785060048103333, 0.12419167906045914, -0.046728525310754776, -0.08218208700418472, -0.039166077971458435, 0.38112205266952515, -0.4036625921726227, 0.3750119209289551, -0.3935612142086029, -0.20291471481323242, -0.22386784851551056, 0.15197715163230896, -0.2924765944480896, 0.13694968819618225, 0.3565065264701843, -0.25508102774620056, -0.1790161430835724, -0.07884195446968079, -0.0024691775906831026, 0.11638542264699936, 0.3421875238418579, 0.05149135738611221, 0.4953831732273102, -0.007195867598056793, -0.25861331820487976, -0.4099026322364807, -0.23291434347629547, -0.12033985555171967, 0.05467884987592697, -0.11331286281347275, -0.20078249275684357, 0.018547382205724716, 0.0036694167647510767, 0.05109149590134621, -0.10769352316856384, 0.060874082148075104, -0.43402400612831116, -0.06943755596876144, -0.09793775528669357, -0.3268861770629883, 0.3197922706604004, 0.24935981631278992, -0.12387116998434067, -0.09555958956480026, 0.1233992874622345, -0.2038436383008957, -0.09076695144176483, 0.2887510061264038, -0.14593301713466644, -0.13779433071613312, 0.30567601323127747, -0.18735377490520477, 0.5309550166130066, 0.06375814229249954, -0.02900209091603756, -0.13589392602443695, -0.3469364643096924, -0.02289816364645958, 0.055427588522434235, -0.1585589200258255, -0.056721657514572144, -0.6374250054359436, -0.18209639191627502, -0.19385433197021484, 0.04091288894414902, 0.07529699057340622, -0.0810214951634407, -0.1524123102426529, 0.03002835437655449, -0.3114018440246582, 0.02137196995317936, 0.20458675920963287, 0.17566360533237457, -0.16561786830425262, 0.05599845573306084, 0.0426127128303051, 0.18597090244293213, 0.5106598138809204, -0.09498601406812668, 0.02542917989194393, -0.006809520069509745, -0.2424939125776291, 0.056327491998672485, -0.4501659870147705, -0.665490984916687, 0.21032187342643738, 0.2145252674818039, 0.15542805194854736, 0.08289368450641632, 0.2265338897705078, 0.14862334728240967, -0.10021547228097916, -0.1532571166753769, 0.575879693031311, -0.1383216679096222, 0.02862200140953064, 0.26537612080574036, 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.2110017091035843, -0.016683075577020645, 0.002013717545196414, 0.2388128638267517, 0.30036211013793945, 0.011594397947192192, 0.08793160319328308, 0.2422638088464737, -0.10572288930416107, 0.09686101227998734, -0.19106751680374146, -0.09682248532772064, -0.3083796203136444, -0.037879280745983124, 0.04636843875050545, -0.07067396491765976, -0.17713916301727295, 0.24132652580738068, -0.4923984408378601, 0.1420898735523224, -0.014866669662296772, 0.41545355319976807, -0.1527778059244156, 0.024850577116012573, -0.0949137955904007, -0.10576222091913223, -0.044861629605293274, 0.23980745673179626, -0.004303596913814545, -0.43168166279792786, 0.601795494556427, 0.22954851388931274, 0.1245354562997818, 0.4874407947063446, -0.00012129637616453692, 0.29819703102111816, 0.31711992621421814, -0.13037611544132233, -0.3978927433490753, -0.29185932874679565, -0.06634539365768433, -0.038817837834358215, 0.3356323838233948, -0.17011719942092896, 0.13118107616901398, 0.0350823700428009, 0.08414055407047272, -0.37200185656547546, 0.2927708923816681, 0.24903953075408936, 0.15614749491214752, 0.40782472491264343, 0.2956758439540863, 0.04611319303512573, 0.1961449682712555, -0.07394551485776901, 0.025872474536299706, 0.3925039768218994, -0.32684335112571716, 0.2190614640712738, -0.10653869807720184, 0.15515366196632385, 0.06170422211289406, 0.0032200792338699102, 0.541359007358551, -0.20763853192329407, 0.18804609775543213, -0.030958188697695732, 0.14103509485721588, 0.03951539471745491, 0.6169290542602539, -0.3673051595687866, -0.22736510634422302, 0.022648192942142487, 0.0485326424241066, -0.04809644818305969, 0.5799100399017334, 0.02868928760290146, -0.19140979647636414, 0.15998731553554535, -0.31297531723976135, 0.055507414042949677, -0.25541630387306213, 0.1809701919555664, -0.2790951430797577, -0.2163829356431961, -0.1213221549987793, 0.16686668992042542, 0.3539421260356903, 0.15938356518745422, 0.07219012081623077, -0.15228833258152008, 0.09508801996707916, 0.10238964855670929, -0.32531923055648804, 0.13249550759792328, -0.07984177768230438, 0.44494661688804626, -0.05887486785650253, -0.13521414995193481, -0.032314006239175797, -0.08949507772922516, -0.15712575614452362, 0.07715153694152832, -0.09983599185943604, 0.5191352367401123, -0.17453859746456146, -0.05790199711918831, 0.19163420796394348, 0.12990163266658783, 0.025128744542598724, 0.09347870200872421, -0.06176472082734108, -0.29577434062957764, -0.3996471166610718, 0.1983495056629181, -0.030884668231010437, -0.14651566743850708, -0.5061496496200562, -0.05114739388227463, -0.6028213500976562, 0.061764270067214966, -0.04868749901652336, 0.4410618245601654, -0.2156829684972763, 0.2982058823108673, 0.42716455459594727, 0.11720196157693863, -0.0777520090341568, -0.16001732647418976, -0.04644741490483284, 0.1821562945842743, -0.33875608444213867, -0.21753983199596405, 0.14654572308063507, -0.306703120470047, 0.05651651695370674, -0.05725039169192314, 0.1242886483669281, 0.11984673142433167, -0.1313166469335556, 0.08329983055591583, -0.39624378085136414, 0.32495927810668945, -0.05691802129149437, 0.35333749651908875, 0.14195239543914795, -0.24760395288467407, -0.0419185645878315, -0.2503637969493866, -0.028892794623970985, -0.16892433166503906, -0.0059052505530416965, 0.06250009685754776, -0.26217377185821533, -0.01863926090300083, -0.023985838517546654, -0.37029096484184265, -0.08805631846189499, -0.02508743293583393, -0.3069539964199066, -0.3325372040271759, 0.04036550223827362, -0.3879479765892029, 0.28678643703460693, 0.7887265086174011, -0.3730821907520294, -0.06237279251217842, -0.39398515224456787, -0.3207285404205322, -0.08863745629787445, 0.15976768732070923, 0.008391810581088066, 0.468344122171402, -0.37158915400505066, -0.08177095651626587, 0.03499965742230415, -0.43087077140808105, -0.3826591372489929, 0.40310510993003845, -0.20261776447296143, 0.18142426013946533, 0.238769069314003, -0.1593857705593109, -0.037930928170681, -0.04915943741798401, 0.03923722729086876, 0.07379058748483658, 0.10099044442176819, -0.2146933525800705, -0.3035186529159546, -0.08597222715616226, 0.03479176387190819, 0.1836927980184555, 0.18899157643318176, 0.12380016595125198, 0.289042592048645, 0.02383679710328579, 0.42526739835739136, -0.15448658168315887, 0.12301196157932281, 0.4358842372894287, 0.3003917336463928, 0.08041592687368393, -0.22774222493171692, 0.28246864676475525, -0.7021702527999878, 0.13698914647102356, -0.06885498017072678, -0.05255778133869171, -0.18831610679626465, 0.05658910423517227, -0.37949293851852417, 0.10984737426042557, -0.2681514322757721, -0.050804030150175095, 0.04274052008986473, 0.21536868810653687, 0.025101620703935623, 0.22533422708511353, 0.05455536022782326, 0.9237927794456482, -0.029126355424523354, 0.24124571681022644, -0.11774278432130814, 0.28890153765678406, -0.12396082282066345, -0.0006953045376576483, 0.23601867258548737, 0.05909863859415054, 0.28105804324150085, -0.26035699248313904, -0.016431765630841255, 0.4496195316314697, -0.3032151758670807, 0.22570347785949707, -0.2356710433959961, 0.23740938305854797, 0.1409534364938736, -0.4850715398788452, 0.2437879741191864, 0.1826333850622177, 0.01555032841861248, 0.07949439436197281, 0.30245736241340637, 0.03739694133400917, -0.011102544143795967, 0.2944730520248413, 0.26111575961112976, 0.20772220194339752, 0.105131596326828, -0.16970594227313995, 0.18628162145614624, 0.005613146349787712, 0.45107173919677734, -0.08532623946666718, 0.6482313871383667, -0.2358092963695526, -0.04862135648727417, 0.07109810411930084, -0.02945038489997387, -0.08530273288488388, -0.24019725620746613, 0.16998912394046783, -0.19400228559970856, 0.1319158971309662, 0.3667604625225067, 0.22742769122123718, 0.32109472155570984, 0.13861219584941864, -0.0640738308429718, 0.1776348501443863, -0.0354287251830101, -0.09301082789897919, 0.1974644809961319, 0.014387708157300949, -0.1937514692544937, 0.1127513125538826, -0.03377348929643631, 0.07117738574743271, -0.22047491371631622, -0.3273620307445526, -0.10830152779817581, 0.09169061481952667, -0.5798996090888977, 0.08779947459697723, -0.3344517946243286, -0.15015307068824768, -0.42755982279777527, 0.1584719717502594, -0.13266395032405853, -0.3841993510723114, -0.2535531222820282, 0.39567506313323975, -0.1553421914577484, 0.07453946769237518, -0.052464984357357025, -0.3114857077598572, -0.042908769100904465, -0.34569287300109863, -0.2296130508184433, 0.11665332317352295, -0.3646845817565918, -0.01881323754787445, 0.28238558769226074, -0.16342559456825256, 0.14777733385562897, -0.38273635506629944, 0.19936729967594147, -0.3894248902797699, -0.19309374690055847, 0.31459689140319824, -0.10970603674650192, -0.1174803301692009, 0.2981436252593994, 0.20714198052883148, -0.18095526099205017, -0.3646039664745331, 0.0009785178117454052, 0.025534942746162415, -0.10153304785490036, 0.1881590336561203, 0.007153335493057966, -0.05302795022726059, -0.2206926792860031, -0.32394176721572876, -0.3468906879425049, -0.4373093843460083, 0.22802035510540009, -0.20747491717338562, -0.028940115123987198, 0.3682847321033478, 0.1105988621711731, 0.2621784210205078, -0.12509414553642273, 0.03555477038025856, 0.2126615047454834, 0.09515286237001419, 0.15807661414146423, 0.03094581887125969, -0.29598984122276306, 0.11056242138147354, -0.18838392198085785, 0.11259910464286804, 0.42327773571014404, -0.6604579091072083, 0.362188458442688, -0.16098856925964355, 0.23376375436782837, -0.11736004054546356, 0.23081950843334198, 0.3478412926197052, 0.05524624139070511, 0.047646570950746536, -0.1626114696264267, 0.032993167638778687, 0.05541795864701271, -0.24115999042987823, 0.3527897000312805, 0.020057758316397667, 0.14074824750423431, 0.10692062973976135, 0.7421916127204895, 0.1976419985294342, -0.3773145079612732, 0.5262425541877747, 0.22057484090328217, 0.5429062247276306, -0.023298313841223717, -0.18626603484153748, -0.03341138735413551, 0.049820877611637115, 0.08569512516260147, 0.1664590984582901, -0.04401401802897453, -0.0601375512778759, -0.21906305849552155, 0.15066668391227722, -0.38893964886665344, -0.28938204050064087, -0.10512477159500122, -0.015477637760341167, 0.3131747245788574, 0.08008304983377457, -0.0028596955817192793, 0.24765485525131226, -0.18077953159809113, 0.1971668303012848, 0.45200854539871216, -0.08933945000171661, 0.0726931020617485, 0.32285985350608826, -0.2642270624637604, -0.38160520792007446, 0.47945791482925415, 0.11055710166692734, 0.07210914045572281, 0.056923724710941315, -0.011796878650784492, -0.0023611660581082106, 0.09842324256896973, 0.5568621158599854, 0.1064324826002121, 0.12376154959201813, 0.12875671684741974, -0.11111927777528763, -0.5451622605323792, -0.08212780207395554, -0.13113781809806824, -0.04925486072897911, 0.18023966252803802, 0.09574369341135025, -0.518488347530365, -0.18002748489379883, 0.06255495548248291, 0.3143152892589569, -0.028527887538075447, -0.1551065891981125, -0.07412390410900116, -0.3765137195587158, -0.08482485264539719, -0.13245750963687897, -0.1140461191534996, 0.14280866086483002, 0.1670544594526291, 0.13414287567138672, 0.0762937068939209, -0.334487646818161, 0.15706324577331543, -0.15013228356838226, 0.2978228032588959, -0.024086831137537956, 0.21438714861869812, 0.22633156180381775, 0.33322325348854065, 0.1846712827682495, 0.26437318325042725, -0.15635153651237488, 0.2481517493724823, 0.14764584600925446, 0.08531705290079117, 0.07806664705276489, 0.2647041082382202, -0.1514923870563507, -0.12448736280202866, -0.15313352644443512, 0.10622886568307877, 0.002688430016860366, 0.4056755304336548, 0.11809300631284714, -0.20319373905658722, -0.16931918263435364, -0.05089864507317543, 0.2750614285469055, -0.33772116899490356, -0.1445809304714203, 0.1453637182712555, 0.45612022280693054, -0.17143569886684418, -0.05929161608219147, -0.0010154432384297252, 0.9429740905761719, -0.07491826266050339, 0.0995999127626419, 0.4034031927585602, -0.2098912000656128, -0.03257538005709648, -0.6176760792732239, -0.0989149734377861, -0.1444791853427887, 0.26075008511543274, -0.003959795460104942, -0.1388375461101532, -0.020516708493232727, 0.05324067920446396, -0.28295910358428955, 0.3608722388744354, 0.12141300737857819, 0.05404038354754448, 0.27243679761886597, 0.07291463017463684, -0.06147870048880577, -0.04849962517619133, -0.2734115421772003, 0.09394551068544388, 0.10574474930763245, 0.4314233958721161, -0.3022378087043762, -0.16294434666633606, 0.009724307805299759, -0.3524845242500305, -0.24097396433353424, 0.13568489253520966, -0.46104124188423157, 0.13960984349250793, -0.017098430544137955, -0.18496915698051453, 0.25073668360710144, 0.1617298424243927, 0.1663237363100052, 0.27267077565193176, -0.19780416786670685, 0.07398486882448196, -0.31889164447784424, -0.14787237346172333, 0.19638678431510925, 0.0669669434428215, 0.13577653467655182, -0.1648755967617035, 0.06871895492076874, 0.01543557271361351, -0.2353784590959549, -0.21152569353580475, 0.28920602798461914, -0.0497845858335495, -0.039707720279693604, -0.12744517624378204, 0.272211492061615, 0.1378648430109024, 0.11897628009319305, -0.04470808431506157, 0.05130106955766678, -0.08271263539791107, -0.05930706113576889, -0.0037939241155982018, -0.12421517819166183, -0.24379520118236542, 0.01639046147465706, 0.5655068755149841, -0.06920426338911057, -0.1749798208475113, 0.2817893326282501, 0.10252756625413895, -0.30696865916252136, -0.17838038504123688, -0.06492344290018082, 0.05740930140018463, -0.5497652888298035, 0.09124944359064102, -0.24430230259895325, 0.04841608554124832, -0.18361936509609222, 0.20628908276557922, 0.20452021062374115, 0.09748146682977676, 0.030248621478676796, -0.18795189261436462, -0.35079291462898254, 0.16644926369190216, -0.2784711420536041, 0.14199629426002502, -0.08138959854841232, 0.3665919303894043, 0.1949106603860855, -0.1860458105802536, -0.20325513184070587, -0.0742216408252716, -0.15852509438991547, -0.08748381584882736, 0.4411345422267914, 0.01499688159674406, 0.571311354637146, 0.16393695771694183, 0.15717977285385132, 0.1715364307165146, -0.3253117501735687, -0.049253109842538834, -0.07362042367458344, 0.187332421541214, 0.09404132515192032, 0.07912997901439667, 0.37533214688301086, -0.007754654623568058, -0.1374601274728775, 0.0473678857088089, 0.22244250774383545, 0.11462672799825668, -0.19913925230503082, 0.0036500284913927317, -0.07422696799039841, 0.39380624890327454, -0.36459335684776306, 0.027547508478164673, 0.05692926421761513, 0.2376089245080948, 0.08230478316545486, -0.005456923972815275, -0.14026843011379242, -0.10042455792427063, -0.008901575580239296, 0.027791807428002357, 0.06353085488080978, -0.059094496071338654, 0.16219209134578705, -0.1362016797065735, -0.08090997487306595, -0.22638876736164093, 0.18276119232177734, 0.021525317803025246, -0.12954092025756836, -0.07245146483182907, 0.3625151515007019, 0.09963324666023254, -0.05107572674751282, 0.31017595529556274, 0.13566860556602478, -0.02712983265519142, -0.027253316715359688, 0.0672796443104744, -0.0906958281993866, -0.24506601691246033, 0.49722662568092346, 0.20034535229206085, 0.31163880228996277, 0.2572146952152252, -0.13200952112674713, 0.25321993231773376, -0.035827986896038055, 0.09296409785747528, 0.10726388543844223, -0.15080589056015015, 0.2952389419078827, 0.47800344228744507, -0.6502729654312134, -0.019551822915673256, -0.43872177600860596, -0.08711468428373337, 0.17161430418491364, -0.3194359540939331, 0.021031735464930534, 0.2744731307029724, 0.24898219108581543, 0.17907297611236572, -0.03453918546438217, 0.5936599373817444, -0.17863111197948456, 0.028816640377044678, -0.3805065453052521, 0.1556335836648941, -0.04634317010641098, 0.1890692263841629, 0.03298904001712799, -0.3242679536342621, -0.3419365882873535, 0.1487339287996292, -0.06663474440574646, -0.25718361139297485, 0.5585408210754395, 0.3594282567501068, -0.009764098562300205, -0.4167912006378174, -0.004723686259239912, 0.07747060805559158, 0.07783129066228867, -0.1452454924583435, 0.14951220154762268, 0.25018301606178284, 0.004168910440057516, 0.06493858993053436, 0.13519807159900665, 0.3599376678466797, 0.04887738451361656, -0.02363293245434761, -0.1653163582086563, 0.05375653877854347, 0.017595263198018074, -0.11010994017124176, 0.2040824443101883, -0.04556962847709656, 0.4231407642364502, 0.3586808741092682, 0.0661216527223587, -0.22730599343776703, -0.013710856437683105, -0.08687379956245422, 0.2572360932826996, -0.29232680797576904, 0.2525452971458435, -0.3696078360080719, 0.022627966478466988, -0.09296209365129471, 0.011531693860888481, -0.5672212243080139, 0.1695985496044159, 0.14680850505828857, -0.01836027204990387, -0.00494783278554678, -0.028602300211787224, 0.04674477130174637, -0.1530151516199112, 0.441768079996109, 0.41945889592170715, 0.28565967082977295, -0.39299166202545166, -0.3780041038990021, -0.5556569695472717, 0.2937082350254059, -0.1813751757144928, 0.1456129401922226, -0.20256838202476501, 0.060171160846948624, 0.12347569316625595, 0.11001534014940262, 0.3431588411331177, 0.19594275951385498, 0.19138586521148682, -0.09961146116256714, -0.1689574271440506, -0.10985109955072403, 0.2226729393005371, -0.2226111888885498, 0.055213749408721924, -0.45272067189216614, -0.029663262888789177, -0.0800076350569725, 0.07211917638778687, -0.04833732172846794, 0.08720589429140091, 0.1102653294801712, -0.42627406120300293, 0.43385791778564453, 0.02669680304825306, 0.5156466960906982, 0.06752627342939377, -0.4733664095401764, -0.2356509119272232, -0.1582617610692978, -0.02807498537003994, -0.2784145772457123, -0.02480076625943184, 0.5825552344322205, -0.1524592638015747, -0.07134822010993958, -0.3878982961177826, 0.5314273238182068, 0.37240004539489746, 0.2315778285264969, -0.29523348808288574, 0.2969200611114502, -0.5836749076843262, 0.2754732668399811, 0.048080477863550186, 0.26408612728118896, 0.1151251345872879, 0.1423323154449463, -0.6405689716339111, -0.5447108149528503, 0.525124192237854, -0.6823344826698303, -0.11402514576911926, 0.2898881733417511, 0.24787090718746185, 0.03450233116745949, -0.12715451419353485, -0.5278384685516357, 0.1267157942056656, 0.17625847458839417, -0.10008420050144196, -0.3245916962623596, 0.0069526853039860725, -0.18208365142345428, -0.12201298028230667, 0.14656680822372437, 0.21752804517745972, 0.28761839866638184, -0.21722672879695892, 0.06934130936861038, -0.27372151613235474 ]
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.4910081624984741, 0.02783907577395439, -0.1026938185095787, 0.21930944919586182, 0.2197139859199524, 0.11000163853168488, 0.11827448755502701, 0.479827880859375, 0.05374180153012276, 0.005826801061630249, -0.16624754667282104, -0.10805188864469528, -0.020688319578766823, 0.09193431586027145, -0.22185146808624268, -0.11430979520082474, -0.33769169449806213, 0.2518782615661621, -0.1198234036564827, -0.013228659518063068, -0.2608826756477356, 0.10146362334489822, -0.14543183147907257, 0.09043639153242111, 0.028651347383856773, -0.1973610669374466, 0.28136783838272095, 0.09576325863599777, -0.32981690764427185, -0.32420387864112854, 0.11824977397918701, -0.07706168293952942, -0.15716980397701263, 0.19789204001426697, -0.00010390647366875783, 0.10978112369775772, 0.31978827714920044, -0.012775741517543793, -0.26225292682647705, -0.012641249224543571, -0.5175206065177917, -0.4060269892215729, -0.10653609037399292, -0.23283593356609344, 0.14296363294124603, -0.320547491312027, -0.03690459951758385, -0.4010327160358429, 0.20275133848190308, 0.34917834401130676, 0.3192968964576721, 0.41040128469467163, 0.2654625177383423, -0.15681283175945282, 0.29499176144599915, -0.3527446687221527, -0.14033351838588715, 0.024208545684814453, 0.09668200463056564, 0.18455372750759125, 0.015870986506342888, -0.02540602721273899, -0.09778255224227905, 0.3270842134952545, 0.08583696186542511, -0.1159043163061142, 0.13125883042812347, -0.14677497744560242, 0.2332092821598053, 0.3168918192386627, 0.6235705018043518, 0.11867997795343399, -0.20031441748142242, -0.09855346381664276, -0.13089598715305328, -0.055617496371269226, 0.15186019241809845, 0.3498481512069702, -0.2633350193500519, 0.16817089915275574, -0.09052712470293045, -0.19822199642658234, -0.1184895783662796, 0.13735537230968475, -0.23898977041244507, 0.20953543484210968, -0.11983051896095276, 0.16062122583389282, 0.08374714851379395, -0.034016646444797516, 0.18189550936222076, -0.2236413210630417, 0.005740744527429342, -0.01932804100215435, -0.3181532919406891, 0.08715283870697021, 0.15870724618434906, 0.007157372310757637, 0.15760578215122223, 0.15614628791809082, 0.18068450689315796, -0.08140503615140915, -0.145561084151268, 0.034328971058130264, 0.24852928519248962, 0.1881302446126938, -0.23942731320858002, -0.18370456993579865, 0.33698132634162903, 0.009760580956935883, 0.08635539561510086, -0.024598779156804085, -0.05611156299710274, -0.448053240776062, 0.06911792606115341, -0.06655948609113693, 0.4185087978839874, -0.05008156970143318, -0.6267595291137695, 0.08475927263498306, 0.017158599570393562, 0.09170177578926086, 0.09746237844228745, 0.13478296995162964, -0.3348257839679718, 0.17655049264431, 0.27555418014526367, -0.08549907058477402, -0.21780185401439667, -0.25561758875846863, -0.28757116198539734, -0.02482861652970314, -0.0003980716282967478, -0.15892928838729858, 0.08779022842645645, -0.05394948646426201, 0.19522975385189056, -0.14222471415996552, -0.09106077253818512, -0.05169563740491867, -0.011625226587057114, -0.27979910373687744, -0.04724132642149925, 0.42050886154174805, -0.1170835942029953, 0.21701323986053467, 0.0714031308889389, 0.06809581071138382, -0.16186553239822388, 0.09302140027284622, -0.14813943207263947, -0.5448237061500549, -0.2040136158466339, 0.2917512357234955, -0.1607726514339447, -0.11633627861738205, 0.06747248023748398, -0.17781810462474823, 0.060171566903591156, -0.0622049942612648, -0.23688170313835144, -0.13592509925365448, -0.3001933693885803, -0.06435202807188034, 0.17001725733280182, 0.4760253131389618, -0.1476186215877533, 0.11281190812587738, -0.15832364559173584, -0.09009701758623123, 0.10993759334087372, 0.3871324360370636, -0.2834579646587372, 0.3439686596393585, -0.16083012521266937, -0.03276807442307472, 0.4121805429458618, -0.20275849103927612, -0.4505094885826111, 0.4190317988395691, -0.21335172653198242, -0.017549587413668633, -0.015094442293047905, -0.015598719008266926, 0.2475588470697403, -0.24890181422233582, 0.06000868231058121, 0.4046271741390228, -0.22692108154296875, 0.18323253095149994, -0.287735253572464, -0.3469768464565277, 0.04459105059504509, 0.31404438614845276, 0.15437358617782593, -0.09752753376960754, 0.07386039197444916, 0.304122656583786, 0.10834785550832748, 0.24218593537807465, 0.18196061253547668, 0.2064589262008667, -0.013302884064614773, 0.012964901514351368, -0.2803219258785248, 0.09755673259496689, -0.2467363178730011, 0.22624067962169647, 0.200340136885643, 0.12436386197805405, -0.12025722116231918, 0.04992944002151489, -0.5512602925300598, -0.006460384000092745, -0.1038985326886177, 0.20975837111473083, 0.19603630900382996, -0.04587138444185257, 0.1451198160648346, 0.2851143181324005, 0.1329980045557022, 0.22758911550045013, 0.0520901158452034, -0.05024914816021919, -0.058003686368465424, 0.08377736061811447, -0.053193509578704834, 0.065542072057724, 0.355040043592453, -0.22054924070835114, -0.02920755371451378, -0.07982616871595383, -0.2772215008735657, 0.25788620114326477, -0.17337170243263245, 0.03562223166227341, -0.023228803649544716, 0.1471138596534729, 0.11603731662034988, -0.16420823335647583, 0.0679105743765831, 0.10627323389053345, 0.3960360288619995, -0.060612257570028305, 0.19692598283290863, -0.033859364688396454, 0.11030126363039017, -0.05911705642938614, 0.04357491806149483, 0.07123696804046631, 0.3167010247707367, -0.13126367330551147, 0.24266202747821808, 0.07664243131875992, 0.21932479739189148, 0.17953011393547058, 0.10726813226938248, -0.054201576858758926, 0.08306745439767838, 0.004685855936259031, 0.48411399126052856, -0.046497173607349396, 0.04741201549768448, 0.26763391494750977, 0.058658525347709656, -0.10773281753063202, -0.25262555480003357, 0.403022825717926, 0.4827992022037506, 0.08380011469125748, 0.25910815596580505, 0.045357175171375275, 0.126277893781662, -0.27975451946258545, 0.34924978017807007, 0.3568130433559418, 0.28744783997535706, 0.28964436054229736, 0.030118009075522423, -0.12305562198162079, -0.2845940887928009, -0.3535320460796356, 0.3476918339729309, 0.6082865595817566, -0.12310686707496643, -0.07094264775514603, -0.12473560869693756, -0.07888958603143692, 0.12088736146688461, 0.04402381554245949, -0.037757568061351776, -0.4296826124191284, -0.015417992137372494, 0.0485091432929039, -0.14344173669815063, 0.14397631585597992, -0.163838192820549, 0.22402895987033844, 0.41311147809028625, 0.09951657056808472, -0.12925006449222565, -0.1925099492073059, -0.1532573699951172, 0.11841192841529846, 0.36958128213882446, -0.018958766013383865, 0.23071196675300598, -0.23340843617916107, -0.07125795632600784, -0.33125442266464233, 0.12311363965272903, -0.018692081794142723, 0.04266282916069031, 0.010076486505568027, 0.2998989522457123, 0.445548415184021, 0.15326763689517975, -0.20301641523838043, 0.27088111639022827, -0.21019381284713745, 0.03256016597151756, 0.13564284145832062, 0.02612336352467537, 0.0646534413099289, 0.03099636174738407, -0.23894503712654114, -0.349954754114151, -0.6167092323303223, 0.1416400820016861, -0.17128042876720428, 0.14455559849739075, 0.01563403010368347, -0.11973801255226135, 0.124678835272789, 0.06425723433494568, 0.08570951968431473, -0.19349348545074463, -0.5720279216766357, 0.3628086745738983, -0.15449483692646027, -0.3471921980381012, -0.02742098458111286, 0.19020813703536987, 0.15653274953365326, -0.022584673017263412, -0.595326840877533, 0.07838933169841766, -0.4460567831993103, 0.0887937992811203, -0.2679096758365631, 0.06846310943365097, 0.11310356110334396, -0.09093649685382843, -0.2421571910381317, -0.03655233979225159, 0.060547154396772385, 0.10368534922599792, -0.04704825207591057, 0.16889621317386627, -0.11970319598913193, 0.38046926259994507, 0.1618497669696808, 0.08384300768375397, 0.23223884403705597, -0.0005098214605823159, 0.3763807713985443, 0.19728495180606842, 0.14737996459007263, -0.06270479410886765, -0.11184518039226532, -0.06378333270549774, -0.11939457058906555, 0.07315946370363235, 0.28535500168800354, 0.02056199684739113, -0.040165193378925323, -0.38216739892959595, -0.16347195208072662, -0.08309299498796463, -0.41750019788742065, -0.057931967079639435, -0.1260097473859787, 0.10068660229444504, 0.0835842713713646, -0.04980990290641785, -0.19368861615657806, -0.11251482367515564, -0.004255158361047506, 0.0742691159248352, -0.0459693968296051, -0.0927458181977272, 0.15160930156707764, 0.3976311981678009, -0.7130666375160217, 0.17379315197467804, -0.003727813484147191, 0.4163464605808258, 0.005201322492212057, 0.0776902288198471, 0.11224178224802017, -0.06666676700115204, 0.36296889185905457, -0.09771435707807541, 0.3858893811702728, 0.04328308627009392, 0.14552809298038483, -0.35210785269737244, -0.023699946701526642, -0.05610363185405731, 0.13757792115211487, 0.4362495243549347, -0.23925411701202393, -0.5605275630950928, -0.04021913930773735, 0.320128858089447, 0.12385997176170349, -0.1307426393032074, -0.23064935207366943, -0.028775831684470177, -0.6097217798233032, -0.21581126749515533, -0.15194742381572723, 0.23673805594444275, 0.23367536067962646, 0.137049600481987, -0.0550992377102375, -0.09798220545053482, 0.012120220810174942, 0.034802816808223724, -0.2681642770767212, -0.0824740082025528, -0.01905209571123123, 0.5001137256622314, -0.01271761767566204, 0.013765755109488964, 0.1625988483428955, 0.6605306267738342, 0.14514951407909393, -0.3008749783039093, 0.04131080210208893, 0.2078370749950409, -0.1393834948539734, 0.25651660561561584, -0.08011825382709503, -0.03042808547616005, -0.08601381629705429, 0.46448710560798645, -0.024819431826472282, 0.31331324577331543, 0.35652732849121094, -0.15735794603824615, -0.3542950749397278, -0.3228603005409241, 0.43649864196777344, -0.07546175271272659, 0.0638304203748703, 0.4427601397037506, 0.09642457216978073, 0.052406780421733856, 0.060200002044439316, -0.14925716817378998, 0.7682139873504639, -0.11165708303451538, -0.004783352371305227, 0.14781585335731506, -0.2076025903224945, 0.30531108379364014, -0.19137710332870483, 0.02569366805255413, -0.13359349966049194, -0.43220511078834534, 0.0787985622882843, -0.04268818721175194, 0.022836759686470032, 0.1223483756184578, -0.14776462316513062, 0.016965141519904137, 0.0007753229001536965, -0.21426863968372345, 0.03147376328706741, 0.4907337725162506, -0.5565980672836304, -0.11662781983613968, -0.1270235925912857, 0.22563649713993073, -0.2551422119140625, 0.30926060676574707, -0.12858448922634125, -0.0900934711098671, 0.1220007985830307, -0.21265481412410736, -0.41878849267959595, 0.03473253920674324, -0.22910845279693604, 0.40831831097602844, -0.2946038544178009, 0.06522031128406525, 0.3361540734767914, -0.06996145099401474, 0.03718661889433861, 0.19323644042015076, -0.29725947976112366, 0.33358222246170044, -0.269731342792511, -0.08724849671125412, 0.18527750670909882, 0.09799236804246902, 0.1624969094991684, -0.20262844860553741, -0.1656116247177124, 0.09420445561408997, -0.16516053676605225, -0.20598945021629333, 0.3227601945400238, 0.022929705679416656, 0.19065190851688385, -0.2575141489505768, -0.2088276594877243, -0.07848149538040161, -0.15303455293178558, -0.19436363875865936, 0.17327164113521576, 0.3055017292499542, -0.14999355375766754, 0.3735986351966858, -0.04565597325563431, -0.4248391389846802, -0.06517695635557175, 0.3925412893295288, -0.21787157654762268, 0.12653708457946777, 0.4035226106643677, 0.10352016240358353, -0.3173653483390808, -0.19183216989040375, 0.23141755163669586, -0.1202651709318161, -0.5844946503639221, 0.3571232557296753, -0.2624901235103607, 0.2845514416694641, 0.030675429850816727, 0.40459951758384705, 0.1726696938276291, 0.1268855333328247, 0.18246205151081085, -0.4925791621208191, -0.06164475902915001, -0.06797421723604202, -0.08234450221061707, 0.18015919625759125, -0.02528301067650318, 0.20499850809574127, 0.011921177618205547, 0.03580908477306366, -0.3645216226577759, 0.35331612825393677, -0.352183997631073, 0.047416556626558304, 0.08719208836555481, -0.3461463451385498, 0.36023664474487305, 0.10566872358322144, 0.15464983880519867, 0.05807557329535484, -0.30065444111824036, -0.2725975811481476, -0.08072687685489655, 0.14277592301368713, 0.017848454415798187, -0.43662160634994507, 0.2475481778383255, -0.3979852795600891, -0.24334239959716797, 0.17064036428928375, 0.03916017711162567, 0.07200635969638824, -0.10029452294111252, -0.240548774600029, 0.010566391050815582, -0.025236617773771286, -0.018758926540613174, 0.23667065799236298, -0.19873568415641785, 0.3995847702026367, 0.13087427616119385, 0.2940324544906616, 0.08738473057746887, -0.1530359387397766, -0.23704706132411957, 0.07446163147687912, 0.0038518228102475405, -0.10785512626171112, 0.5733606219291687, -0.3086605966091156, -0.0197152066975832, 0.1899845451116562, 0.3839210569858551, 0.3524329364299774, -0.011895604431629181, -0.14055056869983673, 0.17008019983768463, 0.26973217725753784, -0.24852043390274048, -0.1776457279920578, 0.06306175142526627, 0.12714675068855286, 0.11009372770786285, 0.018802396953105927, -0.016113560646772385, -0.09893345087766647, -0.3694089651107788, -0.0019300391431897879, 0.4117054045200348, 0.33020666241645813, -0.02875734493136406, 0.526247501373291, 0.0035629882477223873, -0.06398481875658035, 0.0594787672162056, 0.11783307045698166, 0.34836167097091675, 0.3944513499736786, -0.2472991645336151, 0.31838902831077576, -0.07963582873344421, 0.1970585435628891, -0.2897845506668091, -0.5639082789421082, 0.15553264319896698, 0.11428267508745193, -0.1137363463640213, 0.051859352737665176, 0.07507600635290146, 0.14442388713359833, -0.2696654200553894, 0.09642879664897919, -0.3930126130580902, 0.5118343830108643, 0.04613085091114044, -0.07318022102117538, 0.20719386637210846, -0.07552209496498108, -0.10881789773702621, 0.16452063620090485, -0.013795406557619572, -0.03833436965942383, 0.06553537398576736, 0.17506079375743866, 0.10093511641025543, -0.18918423354625702, -0.030468285083770752, -0.15904368460178375, 0.0775345042347908, -0.3614947497844696, 0.035659488290548325, 0.3301446735858917, -0.17943304777145386, -0.1093379482626915, 0.5390256643295288, 0.42031967639923096, 0.319334477186203, -0.005500711500644684, 0.0822540819644928, 0.020513741299510002, 0.027241678908467293, -0.17746083438396454, 0.06284961849451065, 0.19288744032382965, 0.2628742754459381, 0.49814966320991516, 0.09664041548967361, -0.2112581729888916, -0.21730363368988037, -0.011818702332675457, -0.1849782019853592, -0.04128692299127579, 0.18811210989952087, -0.013039927929639816, -0.05958545207977295, -0.3763495087623596, 0.03290613368153572, -0.0846477821469307, 0.08205322921276093, -0.0008932437049224973, -0.3523809611797333, 0.20535795390605927, -0.12162287533283234, 0.11467631161212921, -0.35055863857269287, 0.6454355716705322, 0.21025244891643524, 0.15615972876548767, -0.2387641966342926, -0.3794485330581665, -0.4723808467388153, 0.11779891699552536, -0.26688289642333984, -0.1449926197528839, 0.13560888171195984, 0.28983327746391296, -0.2254653424024582, 0.15015840530395508, 0.09571663290262222, 0.4053819179534912, -0.17343173921108246, 0.05575833469629288, -0.33635568618774414, -0.2513548731803894, 0.15098752081394196, -0.09583833068609238, -0.023181594908237457, -0.49008068442344666, 0.2447092980146408, -0.34840327501296997, 0.19981352984905243, -0.24019913375377655, -0.00766330910846591, -0.12589333951473236, 0.007981576025485992, 0.37057921290397644, 0.157887265086174, 0.20457811653614044, 0.07001815736293793, -0.14509354531764984, -0.08369315415620804, -0.25956565141677856, -0.12919358909130096, 0.19425632059574127, 0.15674057602882385, 0.016439953818917274, 0.06627382338047028, 0.16532012820243835, -0.12365562468767166, 0.34536585211753845, -0.19537290930747986, 0.39097777009010315, -0.21614119410514832, -0.15577761828899384, -0.1425403207540512, 0.23171137273311615, 0.2600627541542053, 0.011814640834927559, -0.10515524446964264, 0.0664014145731926, -0.37196946144104004, -0.4535047709941864, 0.5555465817451477, 0.10171278566122055, -0.25954610109329224, -0.166486456990242, 0.26196715235710144, 0.1153142973780632, 0.04943222552537918, -0.2518610656261444, 0.23960235714912415, 0.334798127412796, -0.04651429504156113, -0.40820035338401794, 0.23297232389450073, -0.014588397927582264, -0.16790799796581268, 0.11086685210466385, 0.2559417188167572, -0.06745468080043793, -0.4843252897262573, 0.009041602723300457, -0.03404585272073746 ]
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.13598956167697906, 0.27314943075180054, -0.04618392884731293, 0.2401544451713562, 0.285826712846756, 0.3439725935459137, 0.21809343993663788, 0.0033980151638388634, -0.04679141938686371, 0.03129333630204201, 0.19417788088321686, 0.06412965804338455, -0.007530303671956062, 0.1257329136133194, 0.12291663140058517, -0.003748761722818017, 0.31807729601860046, 0.15518362820148468, 0.08102821558713913, -0.30364546179771423, -0.6437276005744934, 0.28975287079811096, -0.2662016749382019, -0.2682592570781708, -0.36907076835632324, 0.2852799594402313, -0.16640938818454742, 0.10718527436256409, -0.07662016898393631, -0.25844067335128784, 0.13005667924880981, 0.06214407831430435, 0.12418290972709656, 0.2200271040201187, -0.00012188687833258882, -0.18352504074573517, 0.33589643239974976, -0.3184475600719452, -0.6375679969787598, 0.13917285203933716, -0.24617862701416016, -0.5139757394790649, -0.21165704727172852, -0.033794768154621124, 0.08507056534290314, -0.3283754587173462, 0.27605918049812317, -0.4367843568325043, 0.025255179032683372, 0.28785213828086853, 0.1385962963104248, 0.010871420614421368, 0.0054566096514463425, 0.019354525953531265, 0.4706360101699829, 0.5881885886192322, -0.03611545264720917, 0.02347046509385109, -0.030868100002408028, 0.18765802681446075, 0.16875767707824707, 0.3128630220890045, -0.000032381263736169785, -0.04294070228934288, 0.25649482011795044, 0.06671670079231262, -0.08036283403635025, -0.3139200806617737, 0.09290450066328049, 0.03678504005074501, 0.5615602135658264, -0.37028297781944275, -0.5764210224151611, -0.43741297721862793, 0.24429509043693542, -0.014152277261018753, 0.2991718649864197, 0.18978078663349152, 0.24583861231803894, -0.04968986660242081, -0.11338569968938828, -0.23677958548069, 0.23062807321548462, 0.11290466040372849, 0.27455875277519226, 0.3560737371444702, -0.013902452774345875, 0.13808239996433258, -0.3792671859264374, 0.050937213003635406, 0.5013102293014526, -0.6761806607246399, -0.07218830287456512, -0.03763800486922264, -0.04088948667049408, 0.001707518589682877, -0.2982960641384125, -0.032323624938726425, 0.012688374146819115, -0.028792070224881172, -0.05225677788257599, -0.0006025094189681113, -0.05761048197746277, 0.015918554738163948, -0.0656331330537796, 0.06392575055360794, 0.277788370847702, 0.4664532244205475, 0.09378226846456528, -0.21958506107330322, 0.274077445268631, -0.0936785340309143, -0.14244477450847626, -0.08495046198368073, -0.12786471843719482, 0.3348121643066406, -0.22487612068653107, 0.07161923497915268, -0.307481586933136, 0.020701806992292404, -0.19012752175331116, -0.1387445330619812, -0.13898316025733948, 0.020821386948227882, -0.09317225962877274, 0.5326829552650452, 0.05415092036128044, 0.15079398453235626, 0.057855017483234406, -0.4711914360523224, -0.14953039586544037, 0.0460512712597847, -0.24539577960968018, 0.2048984318971634, 0.2601966857910156, 0.268576443195343, 0.5244519114494324, -0.09943212568759918, -0.25921088457107544, 0.043417349457740784, 0.3255154490470886, 0.18513457477092743, -0.026836415752768517, 0.2875719666481018, 0.009490474127233028, 0.3180415630340576, -0.19787701964378357, 0.0012951032258570194, 0.0012154669966548681, 0.27541476488113403, -0.2969895005226135, -0.1893904060125351, -0.18476587533950806, 0.1388820856809616, -0.20816798508167267, 0.058415405452251434, -0.40759336948394775, 0.02729240618646145, 0.043688226491212845, -0.23901209235191345, 0.04373342916369438, -0.12279011309146881, 0.019876115024089813, -0.2703767418861389, 0.13944251835346222, 0.4934482276439667, -0.3240843117237091, -0.0644107237458229, -0.3538256585597992, 0.15647199749946594, 0.30936717987060547, -0.12110161036252975, 0.039110057055950165, 0.15856483578681946, -0.5670546889305115, -0.11003349721431732, 0.36499592661857605, -0.4209955930709839, 0.05156952887773514, -0.04617367684841156, 0.1696956753730774, 0.037889182567596436, 0.23270964622497559, 0.20333175361156464, -0.21294231712818146, -0.03238639235496521, -0.18977952003479004, -0.028006484732031822, -0.09735293686389923, -0.014574646949768066, -0.2613101899623871, -0.13723795115947723, 0.20122423768043518, 0.3041256368160248, 0.09365954250097275, 0.07708550989627838, -0.07928063720464706, -0.1432594656944275, 0.08901699632406235, -0.03581119701266289, 0.1986548751592636, 0.30759668350219727, -0.3370238244533539, 0.11967181414365768, 0.3427758514881134, 0.228958860039711, -0.9142349362373352, 0.13897140324115753, -0.047577545046806335, -0.13950324058532715, 0.027223698794841766, -0.3427240252494812, -0.06932498514652252, -0.2794783115386963, -0.04911353811621666, -0.2503945827484131, 0.008755148388445377, 0.4585575461387634, 0.25934091210365295, -0.13260026276111603, -0.2570732533931732, 0.030509427189826965, -0.17287787795066833, 0.25103744864463806, -0.5224632024765015, 0.3718426525592804, 0.004179291892796755, 0.10326088964939117, 0.1918184906244278, 0.1010749489068985, 0.12006266415119171, -0.17719122767448425, 0.0113639235496521, 0.3651759624481201, 0.137934148311615, 0.000906261324416846, 0.263371080160141, 0.2109716683626175, 0.08766456693410873, -0.07072854042053223, 0.19874687492847443, 0.11730795353651047, 0.05581572651863098, -0.14349406957626343, -0.008680518716573715, 0.2717200219631195, -0.11131545901298523, 0.01777317002415657, -0.1500585675239563, -0.026746448129415512, 0.235784113407135, 0.06850259006023407, 0.18844929337501526, -0.2720337212085724, 0.0574042871594429, 0.3031104803085327, 0.34980061650276184, 0.056503232568502426, -0.12954458594322205, 0.09569978713989258, 0.4859600067138672, -0.31836870312690735, -0.027658971026539803, -0.021237460896372795, -0.3904748260974884, -0.04451911151409149, 0.2228819876909256, 0.2744319438934326, 0.47919321060180664, 0.24561916291713715, -0.22152727842330933, -0.18029043078422546, 0.11413633078336716, -0.36484667658805847, 0.19159789383411407, 0.09797557443380356, -0.15539933741092682, 0.3336869478225708, 0.05213054269552231, 0.037467874586582184, -0.4076140224933624, -0.030065707862377167, 0.3921754062175751, 0.1541532278060913, -0.3328435719013214, -0.2906147837638855, -0.09372276812791824, -0.23018357157707214, -0.08030121773481369, 0.27704596519470215, -0.1640729457139969, -0.5771502256393433, 0.22778446972370148, 0.014821958728134632, -0.3227023482322693, 0.3482876718044281, 0.25427207350730896, 0.06878240406513214, -0.3534528613090515, 0.07685378193855286, -0.6138680577278137, -0.0036773995961993933, -0.2684161067008972, 0.030139215290546417, 0.13930051028728485, 0.10425977408885956, 0.12927205860614777, -0.7210157513618469, 0.16491086781024933, -0.5698044300079346, -0.2802165448665619, 0.058084987103939056, -0.007290725130587816, 0.18893000483512878, 0.2599307596683502, 0.09868590533733368, -0.0037969977129250765, -0.12080159038305283, 0.07121782004833221, 0.12653058767318726, -0.1768733114004135, 0.06779252737760544, -0.011406423524022102, -0.012121270410716534, -0.19999217987060547, -0.3856368362903595, -0.2595997154712677, -0.22407712042331696, -0.16738666594028473, -0.13622301816940308, 0.021226495504379272, 0.03383534774184227, -0.1363120973110199, -0.033358000218868256, 0.026315907016396523, -0.1303357183933258, -0.15729427337646484, -0.4554780125617981, 0.5669636130332947, -0.16288402676582336, -0.046244632452726364, 0.2096761018037796, -0.3875749409198761, 0.009236408397555351, -0.03415367379784584, -0.6006206274032593, -0.21453528106212616, 0.03656769171357155, 0.06061602383852005, -0.09029603749513626, 0.049714069813489914, 0.38131189346313477, 0.3126044273376465, 0.09705096483230591, -0.28820571303367615, -0.19562232494354248, -0.0677710697054863, -0.13741891086101532, 0.42223072052001953, -0.27938657999038696, -0.02241460233926773, -0.35710808634757996, 0.3981362581253052, 0.2477405071258545, -0.10565921664237976, 0.10831853747367859, 0.11538726836442947, 0.43755269050598145, -0.017189254984259605, 0.060518547892570496, 0.05672049894928932, -0.012634096667170525, 0.2005239874124527, 0.3110239505767822, 0.07854671031236649, 0.18356826901435852, -0.025675173848867416, 0.12847842276096344, -0.3604445159435272, -0.18204297125339508, 0.023263398557901382, -0.11964239925146103, 0.09113460034132004, 0.20045866072177887, 0.08881743252277374, -0.23280850052833557, -0.19619442522525787, 0.09465481340885162, 0.20797644555568695, 0.5585254430770874, 0.05035772547125816, -0.41743290424346924, -0.18665346503257751, -0.010708840563893318, 0.40251368284225464, 0.15004107356071472, 0.2676318883895874, 0.24017079174518585, 0.28747519850730896, -0.24475187063217163, 0.21707600355148315, 0.538394033908844, -1.0103071928024292, -0.2003462314605713, 0.046693459153175354, 0.6165087819099426, -0.25420790910720825, -0.11709258705377579, 0.025624364614486694, 0.08292406797409058, 0.013454930856823921, 0.18021313846111298, -0.2128814458847046, -0.16152982413768768, 0.26554033160209656, 0.4586070775985718, 0.017990680411458015, -0.2447167932987213, -0.07810711115598679, -0.055467769503593445, -0.2801629304885864, -0.48967859148979187, -0.0010652601486071944, -0.2761234939098358, -0.009053535759449005, -0.2039991319179535, 0.0277847982943058, -0.22883394360542297, 0.1820269674062729, -0.010014588944613934, 0.2276190221309662, 0.30380135774612427, 0.31693851947784424, 0.1177249401807785, 0.24443833529949188, 0.5586237907409668, 0.5635810494422913, -0.3033977448940277, -0.3029630184173584, 0.15038584172725677, -0.13437189161777496, 0.37724459171295166, 0.21454297006130219, 0.06837552040815353, -0.06931663304567337, -0.26527130603790283, -0.0362347811460495, -0.28459134697914124, 0.17707130312919617, 0.16456595063209534, 0.0534079447388649, -0.3091244697570801, -0.4064047634601593, 0.2014545053243637, 0.05411797761917114, -0.1248437687754631, 0.33890917897224426, 0.1346413642168045, -0.37465912103652954, 0.300740510225296, -0.11529067158699036, 1.0027081966400146, 0.12773382663726807, 0.08366724103689194, -0.0947585254907608, 0.011590385809540749, 0.6359565258026123, -0.31541040539741516, 0.12331873178482056, -0.12495262920856476, 0.07111912220716476, -0.010000111535191536, -0.00937770213931799, 0.14714781939983368, 0.37226539850234985, -0.03287360072135925, 0.5601642727851868, 0.0938754454255104, 0.4175243079662323, -0.05448956415057182, 0.2500453293323517, -0.25376173853874207, -0.18093283474445343, 0.2739742398262024, 0.016203027218580246, -0.04269526153802872, 0.0829453393816948, 0.05953504517674446, -0.024552196264266968, -0.14293774962425232, -0.007843158207833767, -0.24750226736068726, -0.02822539210319519, -0.33086252212524414, -0.12775419652462006, -0.028909532353281975, -0.07251088321208954, -0.006775671616196632, 0.16891729831695557, 0.5375506281852722, 0.2703065872192383, -0.06214350089430809, 0.2709711790084839, -0.08191969990730286, 0.09225382655858994, 0.041169170290231705, -0.07404226064682007, -0.10286898910999298, 0.056277625262737274, -0.07442454993724823, -0.007989942096173763, -0.4121248424053192, 0.005261870566755533, -0.40386441349983215, -0.46670854091644287, 0.2069481760263443, -0.1776045262813568, 0.26083648204803467, 0.09410469233989716, -0.21161092817783356, -0.32474762201309204, 0.06879366934299469, -0.02424943819642067, 0.21169953048229218, -0.020900877192616463, -0.3105009198188782, -0.1551172286272049, -0.47543227672576904, 0.12536591291427612, 0.17703992128372192, -0.10097981989383698, 0.40118643641471863, -0.17095965147018433, -0.1162765622138977, -0.16600602865219116, 0.26574257016181946, 0.12737101316452026, -0.2822157144546509, 0.0717788115143776, -0.0516415573656559, -0.2686134874820709, -0.04922226071357727, 0.060232263058423996, 0.22990477085113525, -0.021453997120261192, 0.16002702713012695, -0.44660282135009766, -0.2635630667209625, 0.18150006234645844, 0.16034425795078278, 0.1072433814406395, -0.19572219252586365, -0.1532733142375946, -0.03342209756374359, 0.023512180894613266, -0.2037298083305359, -0.0890057235956192, -0.018081797286868095, 0.31679868698120117, 0.08869485557079315, 0.27311691641807556, 0.15226520597934723, -0.13407781720161438, 0.005869414657354355, 0.024239400401711464, 0.020988140255212784, -0.0047080921940505505, 0.03209546580910683, 0.20493726432323456, 0.12477892637252808, -0.09576272964477539, 0.24379275739192963, -0.06669027358293533, -0.14847369492053986, -0.26590579748153687, -0.2623097896575928, -0.11231357604265213, -0.0013644781429320574, 0.49728357791900635, 0.1143820583820343, 0.0448693111538887, -0.07638785243034363, 0.057933442294597626, -0.06577852368354797, 0.5421605706214905, -0.1733846515417099, 0.20780745148658752, 0.31883126497268677, 0.042279988527297974, -0.18317437171936035, -0.09309718757867813, -0.23731619119644165, 0.10441369563341141, 0.4356825053691864, -0.27388474345207214, 0.1221458837389946, 0.2756364047527313, -0.007941708900034428, 0.3427305221557617, -0.24106654524803162, -0.06177876889705658, 0.27704307436943054, 0.1177263855934143, -0.37035274505615234, -0.17710664868354797, 0.24788206815719604, 0.30927547812461853, 0.06488315761089325, 0.15927602350711823, 0.13378460705280304, -0.24670098721981049, 0.25832223892211914, 0.1362844556570053, 0.3094521760940552, -0.06715091317892075, 0.3148544430732727, 0.22309012711048126, 0.19646312296390533, 0.2141840010881424, -0.04336990416049957, 0.014106979593634605, -0.0717177763581276, 0.5559014678001404, 0.14223703742027283, 0.6019524931907654, 0.19850851595401764, 0.07062516361474991, 0.07549580931663513, -0.3192094564437866, 0.3439367711544037, 0.5413249135017395, -0.0692232996225357, 0.29225122928619385, 0.18457366526126862, -0.01804194785654545, -0.12180246412754059, 0.14676403999328613, -0.18064582347869873, -0.002190004102885723, -0.17442037165164948, 0.04319896548986435, -0.21662582457065582, -0.0661897137761116, -0.2614695131778717, 0.02603454515337944, 0.04548444598913193, -0.22774823009967804, 0.20867645740509033, 0.006415236741304398, -0.15408813953399658, -0.1541653871536255, 0.4206673502922058, 0.11756505072116852, 0.3643222749233246, -0.2271987497806549, 0.2231372892856598, 0.38123735785484314, -0.3172610104084015, 0.40523600578308105, 0.333942174911499, 0.22213728725910187, 0.07244501262903214, -0.019690321758389473, -0.11729490756988525, 0.01456772442907095, -0.07873166352510452, 0.08019475638866425, 0.4763052761554718, -0.08631618320941925, -0.3060064911842346, 0.1655380129814148, 0.11671984195709229, -0.12390796095132828, -0.17518837749958038, 0.23723100125789642, -0.14472843706607819, -0.27332693338394165, 0.3208118677139282, -0.2983168363571167, -0.07900922745466232, -0.10847081243991852, -0.017568795010447502, -0.39553070068359375, -0.31624290347099304, 0.38002967834472656, 0.029680367559194565, -0.05071399360895157, -0.21181413531303406, 0.031688135117292404, -0.2614920735359192, 0.44478940963745117, 0.4153658449649811, -0.09510069340467453, -0.332218199968338, -0.2951558232307434, -0.2513737976551056, 0.04176586866378784, -0.05125972628593445, 0.005200578831136227, -0.1052703708410263, -0.12976610660552979, 0.16191326081752777, 0.012168182991445065, -0.10802362114191055, 0.3831092417240143, 0.10304323583841324, 0.2312246710062027, -0.43002596497535706, -0.33573558926582336, -0.08542400598526001, 0.09871847182512283, 0.081240713596344, -0.46914321184158325, 0.2824633717536926, 0.12354005873203278, -0.10034202039241791, 0.033389862626791, 0.0006551734986715019, 0.4899052083492279, 0.3778562843799591, 0.4759443998336792, 0.16564017534255981, 0.46706703305244446, -0.25720131397247314, -0.25809046626091003, 0.08035223931074142, -0.24683301150798798, -0.042141154408454895, 0.38375499844551086, 0.01604875549674034, 0.32034727931022644, -0.3290710747241974, 0.12578608095645905, -0.1664905846118927, -0.2041877955198288, -0.05952034890651703, 0.39033761620521545, -0.5664529800415039, 0.37646904587745667, -0.18354551494121552, 0.20386213064193726, 0.12118413299322128, -0.11356943845748901, 0.02199424058198929, 0.103354312479496, -0.214075967669487, -0.2290601134300232, 0.3075902760028839, -0.22178061306476593, -0.08555310219526291, -0.008398975245654583, 0.13462777435779572, -0.13755078613758087, 0.2028898000717163, -0.5929298996925354, -0.02109966240823269, 0.5168749690055847, 0.22467514872550964, 0.05593948811292648, -0.019706670194864273, 0.16010989248752594, -0.12290467321872711, -0.007344312034547329, 0.13207679986953735, 0.0531570203602314, -0.3395538330078125, 0.16376876831054688, -0.25399383902549744 ]
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.0918111577630043, -0.13298526406288147, -0.060103435069322586, 0.3179163932800293, 0.11598148196935654, 0.28523099422454834, 0.4842665493488312, 0.1040411964058876, 0.11709021776914597, -0.021073654294013977, 0.11989308148622513, -0.012207823805510998, 0.11281295120716095, 0.5723269581794739, -0.06620243936777115, -0.16418248414993286, -0.07059840857982635, 0.1487157940864563, 0.4008658528327942, -0.21728701889514923, -0.03505055978894234, -0.0796026736497879, -0.28389817476272583, 0.06978361308574677, -0.5201469659805298, 0.1602347195148468, -0.17046388983726501, 0.11482397466897964, 0.15875428915023804, -0.21717891097068787, 0.33595165610313416, 0.07911701500415802, 0.22340571880340576, 0.0951012372970581, -0.00011842324602184817, 0.07103226333856583, 0.4172881245613098, -0.10055634379386902, -0.5858287811279297, -0.051112305372953415, -0.49218660593032837, -0.2075810730457306, 0.25553980469703674, -0.3876206576824188, 0.11474490910768509, -0.030514078214764595, 0.01984022557735443, -0.38702520728111267, -0.13678567111492157, 0.04250231012701988, 0.09134670346975327, 0.2089172899723053, 0.07812485843896866, 0.12497561424970627, 0.4283178448677063, 0.44086983799934387, -0.0037689523305743933, -0.07384475320577621, 0.007728101685643196, 0.30800530314445496, 0.1272391825914383, 0.34235718846321106, -0.023212848231196404, 0.13375547528266907, 0.3417019248008728, 0.13278253376483917, 0.11550487577915192, -0.059151146560907364, 0.1476280242204666, 0.228366419672966, 0.7229964137077332, -0.14219634234905243, -0.501435399055481, -0.49065667390823364, 0.009536719880998135, -0.06058554723858833, 0.04519323259592056, 0.24987240135669708, 0.10051415860652924, 0.2560996413230896, -0.009632309898734093, -0.2655457556247711, 0.009118720889091492, 0.059093356132507324, -0.3169505000114441, 0.26606640219688416, -0.24200335144996643, 0.37247419357299805, -0.1499095857143402, 0.25805899500846863, 0.31940707564353943, -0.42239320278167725, -0.1593249887228012, -0.34876707196235657, 0.09910092502832413, -0.14850904047489166, -0.3174656331539154, 0.05856562405824661, 0.2237863540649414, 0.09283453971147537, -0.1094227284193039, 0.12333010882139206, -0.3389105200767517, 0.19740915298461914, 0.6273682117462158, -0.13405892252922058, 0.4555548429489136, 0.31317806243896484, 0.49286916851997375, -0.22067557275295258, -0.17825376987457275, -0.07309470325708389, 0.0329693965613842, 0.14715412259101868, 0.05989687889814377, -0.08459332585334778, 0.3374176025390625, -0.16482193768024445, -0.38359323143959045, -0.13048644363880157, -0.15275231003761292, -0.2434699982404709, 0.1898399144411087, -0.005065406206995249, 0.14008313417434692, 0.29325202107429504, -0.12798963487148285, 0.0353856086730957, 0.2271338701248169, -0.4226883053779602, -0.12937240302562714, -0.23589658737182617, -0.03858228772878647, 0.36732298135757446, -0.19748826324939728, -0.16806796193122864, 0.3483388423919678, -0.1482054889202118, -0.07173210382461548, -0.051119301468133926, 0.08086259663105011, -0.1957077980041504, 0.06543172895908356, 0.3250563442707062, -0.08243463188409805, 0.39034304022789, 0.10308392345905304, -0.13457007706165314, -0.26616939902305603, 0.15044507384300232, -0.6408159136772156, -0.46342629194259644, 0.2243555635213852, 0.05305030941963196, -0.1358695775270462, 0.22092413902282715, -0.11077574640512466, 0.2632288336753845, 0.3134666681289673, -0.09082639217376709, 0.15319663286209106, -0.13566431403160095, -0.29644128680229187, -0.1926671713590622, 0.283311128616333, 0.2104681134223938, -0.39708611369132996, -0.21362796425819397, -0.15044307708740234, -0.14361605048179626, 0.029990417882800102, 0.12126489728689194, -0.3859356641769409, 0.2841060757637024, -0.22482693195343018, -0.35348066687583923, 0.33479416370391846, -0.19461210072040558, -0.11446844041347504, 0.4579925835132599, 0.1861240416765213, 0.0381089448928833, 0.1050555482506752, 0.27368229627609253, -0.05854296684265137, 0.07131846994161606, 0.10393478721380234, 0.25837045907974243, -0.2353019118309021, -0.27409711480140686, 0.00029590248595923185, -0.11380733549594879, 0.31057748198509216, 0.21310929954051971, -0.11594437062740326, -0.038463931530714035, -0.23444819450378418, 0.21092672646045685, 0.36551281809806824, -0.027280787006020546, 0.09555843472480774, 0.014059755019843578, 0.10287206619977951, 0.4357922673225403, 0.2865956723690033, -0.284599632024765, -0.4904097616672516, 0.13116508722305298, 0.16550494730472565, -0.39547303318977356, 0.12041022628545761, -0.42007842659950256, 0.0800229087471962, -0.1782495677471161, -0.15725089609622955, -0.37464502453804016, -0.002230502665042877, -0.15081538259983063, -0.1624034345149994, -0.1777559071779251, -0.423555850982666, 0.4239546060562134, -0.24992136657238007, 0.11527545750141144, -0.22897684574127197, 0.2394699603319168, 0.0387866273522377, 0.2098432332277298, -0.19896438717842102, 0.2727719843387604, -0.06571904569864273, -0.049179285764694214, 0.11073607206344604, 0.30478599667549133, 0.5942283272743225, -0.2861338257789612, 0.10419615358114243, 0.020361002534627914, -0.01669313758611679, -0.11246223747730255, 0.1144101619720459, -0.061898816376924515, 0.07063940167427063, -0.29375898838043213, -0.10927137732505798, 0.1607099175453186, -0.15806908905506134, 0.3453456461429596, 0.054377611726522446, 0.17434175312519073, 0.16917353868484497, -0.040646765381097794, -0.21758510172367096, -0.3095989525318146, -0.2781991958618164, -0.28349587321281433, 0.33992019295692444, 0.3674309253692627, -0.14796483516693115, 0.1553952991962433, 0.22274565696716309, 0.05767670273780823, 0.14809738099575043, -0.18314747512340546, -0.4656176269054413, 0.025039751082658768, -0.08948884159326553, 0.17941303551197052, 0.3915223777294159, 0.1990482211112976, 0.15483525395393372, -0.0784715861082077, 0.33702003955841064, -0.19430343806743622, -0.07235417515039444, 0.4055975079536438, 0.1690889298915863, -0.12838737666606903, -0.2659928500652313, 0.09115547686815262, 0.16914525628089905, -0.13987460732460022, -0.07538986951112747, -0.1289142370223999, -0.25896748900413513, 0.1873491257429123, -0.2755746841430664, -0.15450376272201538, -0.2051548808813095, -0.14532990753650665, -0.3799344003200531, -0.48964792490005493, -0.0038616375532001257, -0.05419926717877388, -0.2509651780128479, 0.016710534691810608, -0.35415640473365784, 0.2501586973667145, -0.026181630790233612, -0.12556192278862, 0.027677860110998154, -0.34487852454185486, -0.0640549585223198, 0.01001411397010088, 0.06908514350652695, 0.48203280568122864, 0.15585100650787354, -0.22401107847690582, -0.0550539493560791, -0.402835875749588, -0.17288711667060852, -0.041476696729660034, -0.17496268451213837, 0.010377628728747368, 0.14275605976581573, 0.08353611081838608, 0.02805665321648121, -0.13471437990665436, 0.030028585344552994, 0.05228792503476143, -0.013128767721354961, -0.10291799902915955, 0.15307298302650452, -0.20470745861530304, -0.11258333921432495, -0.14195825159549713, -0.5771698951721191, -0.2368137091398239, 0.22380320727825165, -0.163504496216774, 0.05786371976137161, 0.11839602887630463, -0.2589976489543915, 0.08798283338546753, 0.03842535987496376, 0.2131529599428177, -0.1650424748659134, -0.15544135868549347, 0.12443393468856812, -0.09113837778568268, -0.07398056238889694, 0.0501791276037693, -0.1604054719209671, 0.0683869794011116, 0.10436643660068512, -0.4706961214542389, 0.26236897706985474, -0.3920532763004303, 0.012837461195886135, 0.09925713390111923, 0.20850467681884766, 0.2222806215286255, -0.0709310993552208, 0.14646026492118835, -0.06292840093374252, -0.2990627586841583, -0.0041917795315384865, -0.22043655812740326, -0.0384831465780735, 0.05797406658530235, -0.08156987279653549, -0.1445346474647522, 0.517314076423645, 0.18570218980312347, 0.030303312465548515, -0.13862961530685425, 0.15644127130508423, 0.4514402449131012, -0.2710137367248535, -0.24261292815208435, 0.10047271102666855, 0.07469901442527771, -0.23695220053195953, 0.2484898567199707, -0.0011772367870435119, 0.2600429058074951, -0.1933954805135727, -0.2747221291065216, 0.027401264756917953, -0.37841159105300903, 0.10797655582427979, -0.33942845463752747, 0.12288450449705124, -0.061063122004270554, 0.02792196162045002, 0.0699404776096344, 0.0313597172498703, -0.04730890691280365, 0.6869927644729614, 0.21254298090934753, -0.05445205792784691, -0.7601425647735596, -0.5233816504478455, 0.36294126510620117, 0.132927805185318, 0.06490418314933777, 0.37255868315696716, -0.05142361298203468, -0.1317770630121231, -0.13356761634349823, 0.2957068681716919, 0.3087267577648163, 0.0008379170321859419, -0.4387602210044861, 0.03204800933599472, -0.20633193850517273, -0.44289034605026245, -0.18685919046401978, -0.010660143569111824, 0.4096097946166992, -0.005681914743036032, 0.19891858100891113, -0.28739556670188904, -0.13823117315769196, 0.4776051938533783, 0.4554169476032257, -0.13399089872837067, -0.30331626534461975, -0.2195003181695938, 0.17716436088085175, 0.12136752158403397, -0.478410929441452, 0.020774109289050102, -0.2603871822357178, -0.1603538990020752, 0.04047085717320442, -0.04513229429721832, 0.017341433092951775, 0.18644483387470245, -0.0271521657705307, 0.14375893771648407, -0.1432807594537735, 0.10595003515481949, 0.34731823205947876, 0.27606725692749023, 0.2497081309556961, 0.6773896813392639, -0.12116935849189758, -0.6218708753585815, 0.0552469827234745, -0.21080532670021057, 0.6216728687286377, 0.15410315990447998, -0.08653436601161957, -0.005395003594458103, 0.006875644903630018, -0.28757768869400024, -0.31539806723594666, -0.0931711420416832, 0.08034712076187134, -0.0688418373465538, -0.5808678269386292, -0.7927828431129456, 0.310219943523407, 0.16766472160816193, -0.015881016850471497, 0.4327221214771271, 0.31557101011276245, -0.167229562997818, 0.2504059672355652, -0.43886125087738037, 0.6755129098892212, 0.14445455372333527, 0.1506434977054596, -0.27725207805633545, 0.2773188054561615, 0.5739867091178894, 0.03572644293308258, 0.08636076003313065, -0.31342586874961853, -0.47996294498443604, -0.07797122746706009, -0.2438890039920807, 0.14874647557735443, 0.15415321290493011, -0.04189501702785492, 0.21847087144851685, -0.1195213571190834, 0.0541674867272377, -0.182251438498497, 0.3473966419696808, 0.007619459182024002, 0.03965631499886513, 0.026031658053398132, -0.030402418226003647, 0.0507250539958477, 0.2001185119152069, 0.2681589722633362, 0.04718823730945587, -0.32819053530693054, -0.03868592157959938, -0.2291342318058014, -0.3129148781299591, 0.17777656018733978, 0.44349899888038635, 0.002486209385097027, -0.18920497596263885, 0.17151384055614471, 0.1304229497909546, 0.6694784760475159, 0.018758967518806458, -0.20688405632972717, 0.013062319718301296, -0.10048414021730423, 0.09973689913749695, 0.007351930718868971, 0.05864041671156883, 0.24922092258930206, 0.2794005870819092, -0.17245209217071533, 0.07201341539621353, -0.1735915094614029, -0.29883047938346863, -0.3996555507183075, 0.1061747744679451, 0.3400157392024994, -0.4496106803417206, 0.02724614366889, 0.09217225015163422, 0.07656890153884888, -0.2017681747674942, 0.01392005942761898, 0.18296533823013306, 0.03348439559340477, 0.2177864909172058, -0.06989602744579315, -0.3221413195133209, -0.12186368554830551, -0.07853645831346512, 0.31856587529182434, 0.00649220822378993, 0.24770626425743103, -0.21551555395126343, -0.2510911822319031, -0.06432651728391647, 0.5433021187782288, 0.10612320899963379, 0.23117227852344513, -0.06365422159433365, 0.18373854458332062, 0.15245044231414795, -0.24903884530067444, -0.07815166562795639, 0.009597290307283401, -0.0820404440164566, -0.2333274930715561, -0.24435164034366608, -0.28492170572280884, 0.5344142317771912, -0.12397029250860214, 0.3136836886405945, 0.09727363288402557, 0.11498954892158508, -0.02642151154577732, 0.25630632042884827, -0.1571940928697586, -0.1378161609172821, 0.3991798162460327, 0.2493343949317932, 0.13715708255767822, 0.20599299669265747, 0.16757610440254211, 0.042662911117076874, -0.009654144756495953, -0.3132183849811554, 0.2585716247558594, -0.07662031799554825, -0.021098226308822632, 0.2216658890247345, 0.18441839516162872, 0.15188689529895782, -0.057277433574199677, -0.26698392629623413, -0.02063327096402645, -0.2713763415813446, 0.42468026280403137, 0.36466920375823975, 0.15370182693004608, 0.6921369433403015, 0.22618429362773895, 0.26107823848724365, -0.2724524140357971, 0.4252398610115051, -0.03518645092844963, 0.32603609561920166, 0.06112726777791977, 0.10714641958475113, -0.25120723247528076, 0.12556546926498413, -0.27185219526290894, 0.009148403070867062, -0.21184881031513214, 0.05610672011971474, -0.19308799505233765, -0.07509729266166687, 0.40252140164375305, 0.08029474318027496, 0.10004407912492752, 0.7510892748832703, -0.21513938903808594, 0.16510941088199615, 0.13580910861492157, 0.03966929391026497, 0.020854758098721504, 0.12995445728302002, 0.33496710658073425, 0.046305879950523376, 0.05961866304278374, 0.2890661954879761, -0.049983911216259, 0.11846719682216644, 0.11005181074142456, -0.003877430222928524, 0.43585842847824097, 0.06542475521564484, 0.3864564001560211, 0.32603779435157776, 0.1769782155752182, 0.06647182255983353, 0.07233276963233948, 0.3067263662815094, 0.21183784306049347, 0.517410397529602, -0.04144899919629097, 0.04699050635099411, 0.3193524181842804, -0.11492811888456345, 0.42280012369155884, -0.07837508618831635, -0.11032256484031677, 0.14620444178581238, -0.03999776765704155, -0.3343278467655182, 0.008881551213562489, 0.285052627325058, -0.41102826595306396, -0.15612798929214478, 0.13675427436828613, -0.43790286779403687, -0.13163642585277557, 0.07498092204332352, 0.035477761179208755, -0.01405542902648449, 0.15067395567893982, -0.2756994664669037, -0.016030101105570793, -0.13914011418819427, 0.24997884035110474, -0.17852990329265594, -0.2056027352809906, -0.20833846926689148, 0.38193485140800476, 0.18373090028762817, 0.11918679624795914, -0.05170958861708641, -0.21242885291576385, -0.08640582114458084, 0.1472592055797577, 0.578441321849823, 0.04405539482831955, -0.05097566172480583, 0.30645453929901123, 0.22589237987995148, -0.17777587473392487, -0.07011064141988754, -0.2706613838672638, -0.0872594341635704, 0.21078693866729736, -0.26080986857414246, -0.12770427763462067, 0.29051655530929565, 0.14100272953510284, 0.07920597493648529, -0.006775298155844212, 0.36926546692848206, 0.33785903453826904, -0.5210636854171753, 0.35816362500190735, -0.04351005330681801, -0.20124731957912445, 0.2808782458305359, 0.011416327208280563, -0.21163742244243622, -0.35101109743118286, 0.15089227259159088, 0.06673303991556168, 0.046245235949754715, 0.04430490359663963, 0.01838712766766548, -0.04160261154174805, 0.08275285363197327, 0.4115051031112671, 0.1575249433517456, -0.14384539425373077, 0.08594473451375961, -0.45094242691993713, 0.06905774027109146, -0.24675968289375305, -0.27334049344062805, 0.12122202664613724, 0.1675492823123932, 0.14722682535648346, 0.22368326783180237, -0.088471420109272, 0.004635055083781481, 0.0026608556509017944, -0.4381083846092224, -0.18625660240650177, -0.4560618996620178, -0.24292410910129547, 0.11882737278938293, -0.007245754823088646, -0.3560098111629486, 0.19225549697875977, 0.16536802053451538, -0.14720208942890167, 0.013117524795234203, -0.12309424579143524, 0.5838451385498047, 0.6622901558876038, 0.10865256935358047, -0.0602964423596859, 0.5134750604629517, 0.13881506025791168, 0.008031439036130905, -0.23330071568489075, -0.3123196065425873, -0.181420236825943, 0.4386742115020752, 0.03611252084374428, -0.10867210477590561, -0.4148915708065033, -0.22177229821681976, -0.14126090705394745, 0.5059241056442261, -0.10265162587165833, -0.08806392550468445, -0.09339486807584763, 0.24474431574344635, -0.11110910773277283, 0.21835671365261078, 0.156142920255661, 0.0836762934923172, -0.06927098333835602, -0.26275748014450073, -0.007329274900257587, -0.03858156129717827, 0.3029504418373108, -0.03980850800871849, -0.13377532362937927, 0.10640639066696167, 0.22775611281394958, 0.17627356946468353, 0.0262921005487442, -0.4592280685901642, -0.22888636589050293, 0.6860066056251526, -0.08363502472639084, -0.021555421873927116, -0.28751859068870544, 0.16003327071666718, -0.14287415146827698, -0.23434042930603027, 0.20043300092220306, -0.10495279729366302, -0.3920251429080963, 0.045439399778842926, -0.11858929693698883 ]
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.10923419147729874, -0.18634112179279327, -0.05223243311047554, 0.32486438751220703, 0.10438520461320877, 0.23965102434158325, 0.4616636335849762, 0.018087012693285942, 0.07692941278219223, 0.019750280305743217, 0.16768674552440643, 0.0010693122167140245, 0.09683974087238312, 0.5461277961730957, -0.0978984460234642, -0.10379905998706818, -0.05942770838737488, 0.13888686895370483, 0.3905673027038574, -0.2515948712825775, -0.0007188208401203156, -0.0910816639661789, -0.2596041262149811, 0.0988151878118515, -0.5232897400856018, 0.19159838557243347, -0.18814407289028168, 0.09199200570583344, 0.1326064169406891, -0.28782203793525696, 0.36150598526000977, 0.1595393717288971, 0.1973744034767151, 0.113634392619133, -0.0001183565182145685, 0.02246101386845112, 0.4010705053806305, -0.06241511553525925, -0.5887026190757751, -0.05240574851632118, -0.48480501770973206, -0.2119036465883255, 0.3201884925365448, -0.3865298628807068, 0.12115630507469177, -0.06967870891094208, 0.001712729106657207, -0.41046544909477234, -0.25617486238479614, 0.02341271936893463, 0.08370333909988403, 0.2094850391149521, 0.07823868095874786, 0.11118495464324951, 0.37844425439834595, 0.4335745573043823, 0.009617418050765991, 0.0070683397352695465, 0.03207670897245407, 0.29607298970222473, 0.12554959952831268, 0.33084791898727417, -0.05339481309056282, 0.11169105768203735, 0.40696290135383606, 0.14609184861183167, 0.12548132240772247, -0.06380628794431686, 0.11056791990995407, 0.2188147008419037, 0.7944615483283997, -0.16077454388141632, -0.4864636957645416, -0.4499748945236206, 0.017187470570206642, -0.053866785019636154, 0.04818834364414215, 0.20490701496601105, 0.10582917183637619, 0.20542992651462555, -0.02941511757671833, -0.2366996705532074, -0.0012194209266453981, 0.08744312077760696, -0.31068912148475647, 0.23556378483772278, -0.2511019706726074, 0.367066353559494, -0.18468569219112396, 0.2112952172756195, 0.261773020029068, -0.469044029712677, -0.10363239049911499, -0.3024093508720398, 0.12253768742084503, -0.14473354816436768, -0.2677631378173828, 0.04108260199427605, 0.1964627355337143, 0.08164141327142715, -0.08824153989553452, 0.07868563383817673, -0.34593746066093445, 0.19825413823127747, 0.6331493258476257, -0.16915234923362732, 0.4581497311592102, 0.3049704134464264, 0.4819132685661316, -0.21129627525806427, -0.1644599288702011, -0.08885126560926437, 0.0035895302426069975, 0.1620989292860031, 0.11405524611473083, -0.0938204750418663, 0.3855839967727661, -0.17985568940639496, -0.35330867767333984, -0.06742428988218307, -0.16327297687530518, -0.26390066742897034, 0.2029370665550232, -0.022761015221476555, 0.10988534986972809, 0.2747848629951477, -0.08845020085573196, -0.032044678926467896, 0.20306316018104553, -0.3814782202243805, -0.14358317852020264, -0.2690337002277374, -0.06916995346546173, 0.35423994064331055, -0.20171092450618744, -0.1512511521577835, 0.36899226903915405, -0.14252275228500366, 0.011663153767585754, -0.05213913321495056, 0.05363636463880539, -0.15615801513195038, 0.06428326666355133, 0.3008129596710205, -0.15648172795772552, 0.4282224178314209, 0.09569364786148071, -0.16182029247283936, -0.27835115790367126, 0.18018829822540283, -0.6619877219200134, -0.4488368332386017, 0.2047547996044159, 0.06135885789990425, -0.15768440067768097, 0.1795574426651001, -0.14158658683300018, 0.24065443873405457, 0.25394243001937866, -0.07230434566736221, 0.190690279006958, -0.15919236838817596, -0.2682470977306366, -0.2610311210155487, 0.2825267016887665, 0.23375746607780457, -0.3897711932659149, -0.2297365665435791, -0.08047878742218018, -0.14729425311088562, -0.0020088949240744114, 0.06970912963151932, -0.4143722653388977, 0.2756820023059845, -0.2169334441423416, -0.31332430243492126, 0.3193618059158325, -0.25670838356018066, -0.12791581451892853, 0.4607938230037689, 0.21088111400604248, 0.08026521652936935, 0.12238757312297821, 0.3123604953289032, -0.10632245242595673, 0.045479901134967804, 0.15130384266376495, 0.2537454664707184, -0.18460993468761444, -0.2593036890029907, -0.04275576025247574, -0.04780001938343048, 0.31998535990715027, 0.21069489419460297, -0.17839734256267548, -0.06916381418704987, -0.21706585586071014, 0.1388736218214035, 0.42308977246284485, -0.046292293816804886, 0.05334557220339775, 0.05406699702143669, 0.19881989061832428, 0.44790366291999817, 0.29688289761543274, -0.23126469552516937, -0.4689640700817108, 0.15596508979797363, 0.1894425004720688, -0.35949236154556274, 0.1258038729429245, -0.42403391003608704, 0.0922379121184349, -0.14447131752967834, -0.18879665434360504, -0.38900911808013916, -0.008208136074244976, -0.13563644886016846, -0.22308725118637085, -0.17894649505615234, -0.43285688757896423, 0.40742430090904236, -0.2873840928077698, 0.10646466165781021, -0.2504110038280487, 0.2724054157733917, 0.043323542922735214, 0.21232430636882782, -0.18252931535243988, 0.28047001361846924, -0.06117641553282738, -0.0184206310659647, 0.11085641384124756, 0.32287919521331787, 0.5905712842941284, -0.25442519783973694, 0.0954381451010704, 0.08688387274742126, -0.0070469919592142105, -0.13137519359588623, 0.18718592822551727, -0.06393954157829285, 0.08439122140407562, -0.2608761191368103, -0.11197356134653091, 0.20042191445827484, -0.16594332456588745, 0.2659817636013031, 0.04716100916266441, 0.1501609832048416, 0.11416250467300415, 0.013063325546681881, -0.2590409517288208, -0.22807373106479645, -0.24095936119556427, -0.22004938125610352, 0.364449679851532, 0.3960297107696533, -0.19864162802696228, 0.1761414110660553, 0.22115056216716766, 0.036648672074079514, 0.09904144704341888, -0.1873278021812439, -0.43613460659980774, 0.04043227806687355, -0.10346328467130661, 0.18638819456100464, 0.42618393898010254, 0.18742462992668152, 0.13636299967765808, -0.056479714810848236, 0.2948387861251831, -0.16217036545276642, -0.056969694793224335, 0.36310097575187683, 0.18008072674274445, -0.1710113137960434, -0.2477538138628006, 0.10556687414646149, 0.1775999814271927, -0.2268296629190445, -0.11989539861679077, -0.11884848028421402, -0.2635376453399658, 0.19315552711486816, -0.22762776911258698, -0.12558013200759888, -0.22388316690921783, -0.16744112968444824, -0.4080664813518524, -0.470836877822876, -0.04124952107667923, -0.09149225056171417, -0.2265569418668747, 0.032430052757263184, -0.35026249289512634, 0.22023698687553406, -0.027290858328342438, -0.13701945543289185, 0.08497389405965805, -0.341106653213501, -0.06848554313182831, -0.001622786046937108, 0.01992187835276127, 0.4772365689277649, 0.1395869106054306, -0.14375092089176178, 0.02970615029335022, -0.3783167004585266, -0.237051323056221, -0.06765665858983994, -0.20399630069732666, 0.0427970364689827, 0.17393678426742554, 0.1056651622056961, 0.004605168476700783, -0.12119513005018234, 0.03630456700921059, 0.0951911211013794, -0.008557816036045551, -0.09600804001092911, 0.14499348402023315, -0.26099693775177, -0.07855433225631714, -0.1492263823747635, -0.5878079533576965, -0.20853538811206818, 0.25135093927383423, -0.14428044855594635, 0.060582827776670456, 0.18405306339263916, -0.18937061727046967, 0.07946231216192245, 0.08907351642847061, 0.2794896364212036, -0.1544048935174942, -0.22274601459503174, 0.10439147055149078, -0.08261661976575851, -0.08370822668075562, 0.03541402518749237, -0.14928556978702545, 0.11613023281097412, 0.06252487003803253, -0.5031928420066833, 0.19638723134994507, -0.3549003303050995, 0.04717002436518669, 0.08232177793979645, 0.2206001877784729, 0.22165825963020325, -0.04331626370549202, 0.13327652215957642, -0.07047761231660843, -0.3033604919910431, -0.03737696632742882, -0.20831114053726196, -0.058609869331121445, 0.0915665552020073, -0.11166596412658691, -0.1912146359682083, 0.47944164276123047, 0.19239333271980286, 0.03431925177574158, -0.15831752121448517, 0.14794689416885376, 0.4536726176738739, -0.22558929026126862, -0.25659286975860596, 0.0839337483048439, 0.11569345742464066, -0.23116524517536163, 0.20090000331401825, -0.007788693532347679, 0.3088766932487488, -0.19472818076610565, -0.30630776286125183, 0.038808006793260574, -0.3404155671596527, 0.10313534736633301, -0.3827611804008484, 0.14965321123600006, -0.09746391326189041, -0.01637640967965126, 0.02429906092584133, 0.05449294671416283, -0.06230514869093895, 0.6804863810539246, 0.1500380039215088, -0.0791746973991394, -0.7875330448150635, -0.5043081045150757, 0.3543512225151062, 0.11034548282623291, 0.03380071371793747, 0.36336854100227356, -0.047958023846149445, -0.08587000519037247, -0.1417989283800125, 0.2948874831199646, 0.30439692735671997, -0.015316767618060112, -0.4180925786495209, 0.042007360607385635, -0.18482984602451324, -0.47132155299186707, -0.20005637407302856, -0.02434413507580757, 0.3679110109806061, -0.03225233778357506, 0.18149276077747345, -0.26949548721313477, -0.17317666113376617, 0.45196619629859924, 0.4222107529640198, -0.1693473905324936, -0.3046565055847168, -0.26617908477783203, 0.17010247707366943, 0.12484830617904663, -0.5041342973709106, -0.0035557968076318502, -0.2079114317893982, -0.1949194073677063, 0.11030902713537216, -0.016112904995679855, 0.08829183876514435, 0.20644381642341614, -0.04234963655471802, 0.16365885734558105, -0.15934434533119202, 0.12321186065673828, 0.37568649649620056, 0.2779032588005066, 0.25834524631500244, 0.6850100159645081, -0.09845815598964691, -0.612130343914032, 0.007862262427806854, -0.24903340637683868, 0.686945915222168, 0.1279260367155075, -0.09002187848091125, -0.006744556128978729, -0.016008801758289337, -0.26972752809524536, -0.34944114089012146, -0.12171740084886551, 0.11198993027210236, -0.060516778379678726, -0.5644883513450623, -0.7933293581008911, 0.3231041729450226, 0.1790105104446411, -0.03285941109061241, 0.45600712299346924, 0.35599979758262634, -0.20111609995365143, 0.23514734208583832, -0.3832594156265259, 0.6913087368011475, 0.17690247297286987, 0.18618105351924896, -0.2361902892589569, 0.2525368630886078, 0.5729831457138062, 0.06311976164579391, 0.02768680639564991, -0.33700546622276306, -0.4901944398880005, -0.07378978282213211, -0.27072542905807495, 0.17269721627235413, 0.13074816763401031, -0.05573738366365433, 0.21151140332221985, -0.10618461668491364, 0.02924521639943123, -0.17815078794956207, 0.3440641164779663, 0.030605275183916092, 0.07394000887870789, 0.00629126001149416, -0.032398175448179245, 0.04846165329217911, 0.18836811184883118, 0.24160662293434143, 0.0242229625582695, -0.35673797130584717, -0.06991022080183029, -0.20140506327152252, -0.32207047939300537, 0.18406078219413757, 0.4327138066291809, 0.13498330116271973, -0.16797582805156708, 0.16621653735637665, 0.15722133219242096, 0.659218430519104, 0.02224244922399521, -0.23076345026493073, -0.021297361701726913, -0.1278986930847168, 0.11143270879983902, -0.014333890751004219, 0.016169346868991852, 0.2778159976005554, 0.27519428730010986, -0.19268199801445007, 0.10456157475709915, -0.176185742020607, -0.23309803009033203, -0.39024633169174194, 0.07419362664222717, 0.3489209711551666, -0.4822295904159546, 0.025033680722117424, 0.11011972278356552, 0.04087907820940018, -0.17839019000530243, 0.012004999443888664, 0.24668636918067932, -0.005420912057161331, 0.2095371037721634, -0.016370654106140137, -0.2943808436393738, -0.07409625500440598, -0.0691501721739769, 0.37586158514022827, -0.04443860426545143, 0.2839977443218231, -0.22569401562213898, -0.24689781665802002, -0.034586358815431595, 0.5593050122261047, 0.16109679639339447, 0.20066113770008087, -0.09099618345499039, 0.2291174829006195, 0.16007021069526672, -0.23703894019126892, -0.008789177052676678, -0.008673799224197865, -0.0612078420817852, -0.1965874880552292, -0.24283061921596527, -0.29285645484924316, 0.518500804901123, -0.10557057708501816, 0.36878249049186707, 0.010460760444402695, 0.09720363467931747, 0.021541176363825798, 0.19434627890586853, -0.170406311750412, -0.10123809427022934, 0.38571593165397644, 0.2459941804409027, 0.20750677585601807, 0.19779175519943237, 0.1395377814769745, 0.03458681330084801, 0.0011126245371997356, -0.3333178758621216, 0.21671248972415924, -0.060182418674230576, -0.07145881652832031, 0.22726072371006012, 0.1871926337480545, 0.12927046418190002, -0.04121273383498192, -0.2895897924900055, 0.0127090560272336, -0.24252541363239288, 0.36658525466918945, 0.37019386887550354, 0.14533010125160217, 0.7033872604370117, 0.21302025020122528, 0.2670080065727234, -0.2300630509853363, 0.4268026053905487, -0.005306572187691927, 0.32818472385406494, 0.11753841489553452, 0.06648726761341095, -0.30076292157173157, 0.11757070571184158, -0.2519349157810211, 0.06089372932910919, -0.25612571835517883, 0.09254554659128189, -0.17491395771503448, -0.09351132810115814, 0.4097733497619629, 0.07510295510292053, 0.1259773075580597, 0.7074720859527588, -0.26280391216278076, 0.15441976487636566, 0.06972746551036835, 0.05291748046875, 0.044489577412605286, 0.07541871815919876, 0.3436789810657501, 0.0936569795012474, 0.01550605520606041, 0.2582240700721741, -0.04606906697154045, 0.1242726519703865, 0.08246082812547684, -0.007602024357765913, 0.4043329954147339, 0.04790634661912918, 0.35482463240623474, 0.22162720561027527, 0.16963203251361847, 0.04629003629088402, 0.10066606104373932, 0.36538031697273254, 0.19095797836780548, 0.5154168009757996, -0.029335347935557365, 0.04514796659350395, 0.3739595115184784, -0.15801121294498444, 0.38264358043670654, -0.09606710076332092, -0.013546651229262352, 0.1442207396030426, -0.05749046429991722, -0.3808075487613678, 0.0007176546496339142, 0.1923139989376068, -0.3736926317214966, -0.11981740593910217, 0.1813124418258667, -0.4378449618816376, -0.15170086920261383, 0.037237074226140976, 0.04338296502828598, -0.040842149406671524, 0.16082942485809326, -0.26795336604118347, -0.01944463513791561, -0.16175970435142517, 0.2487407773733139, -0.2149018496274948, -0.18196099996566772, -0.24878287315368652, 0.38259661197662354, 0.19778212904930115, 0.1454019695520401, -0.06493901461362839, -0.22163930535316467, -0.05435289442539215, 0.1535513699054718, 0.5740052461624146, 0.07583576440811157, 0.005193822085857391, 0.3431333899497986, 0.20815685391426086, -0.11504704505205154, -0.0558258593082428, -0.2507984936237335, -0.05160762369632721, 0.1842871457338333, -0.24086932837963104, -0.11992701888084412, 0.2851548492908478, 0.1447785347700119, 0.07900336384773254, 0.014864569529891014, 0.3991677463054657, 0.31995972990989685, -0.5323265790939331, 0.3043728768825531, -0.05650072172284126, -0.22608384490013123, 0.26373234391212463, 0.04393531754612923, -0.2527671754360199, -0.3791944980621338, 0.23228152096271515, 0.14505808055400848, 0.05955125391483307, 0.013290179893374443, 0.019510898739099503, -0.058977462351322174, 0.0886099562048912, 0.487128347158432, 0.17571260035037994, -0.20868279039859772, 0.05017753317952156, -0.49109557271003723, 0.09629116207361221, -0.19974304735660553, -0.31587034463882446, 0.13602660596370697, 0.1735563725233078, 0.16286242008209229, 0.21085885167121887, -0.08238761126995087, 0.035960759967565536, -0.05851495638489723, -0.44259315729141235, -0.20302018523216248, -0.5107293725013733, -0.24585813283920288, 0.08232411742210388, -0.022978903725743294, -0.2609202265739441, 0.15121468901634216, 0.12735550105571747, -0.11514531821012497, -0.03066139854490757, -0.1179504320025444, 0.5505142211914062, 0.7200508713722229, 0.11105859279632568, -0.09581907838582993, 0.5151239037513733, 0.17961648106575012, -0.06435750424861908, -0.17982618510723114, -0.3064332604408264, -0.10490668565034866, 0.47209253907203674, -0.004038147162646055, -0.057627659291028976, -0.3662102520465851, -0.21385015547275543, -0.17617827653884888, 0.4629442095756531, -0.07400180399417877, -0.13507762551307678, -0.08802949637174606, 0.2622855305671692, -0.07070270925760269, 0.19252529740333557, 0.09889134019613266, 0.08817282319068909, -0.04897809773683548, -0.18411651253700256, 0.022720402106642723, -0.017323236912488937, 0.3316025733947754, -0.07444648444652557, -0.0924081802368164, 0.07562282681465149, 0.23436063528060913, 0.10368846356868744, 0.07048819214105606, -0.5209991335868835, -0.18570739030838013, 0.7407819032669067, -0.09805487096309662, -0.09452946484088898, -0.2407284379005432, 0.11908784508705139, -0.1634673774242401, -0.20998212695121765, 0.23389911651611328, -0.1494741439819336, -0.3507017195224762, 0.0544898584485054, -0.10846021771430969 ]
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.12326916307210922, -0.1505776345729828, -0.20778273046016693, -0.063422791659832, 0.27672022581100464, 0.13470715284347534, 0.3861129581928253, 0.34644943475723267, 0.22405380010604858, 0.25504904985427856, 0.14272932708263397, 0.24621222913265228, -0.10214092582464218, 0.12055447697639465, -0.0594550296664238, -0.18904347717761993, 0.07127445191144943, 0.23003703355789185, -0.21164833009243011, -0.21632714569568634, -0.15981288254261017, 0.05452762544155121, -0.2814101278781891, -0.0294994805008173, -0.25296974182128906, -0.008691849187016487, -0.07326894253492355, 0.0009034670074470341, -0.18156655132770538, -0.33936136960983276, 0.18758997321128845, 0.055338725447654724, -0.022188838571310043, 0.47224298119544983, -0.00009670975850895047, 0.035776033997535706, 0.27460044622421265, 0.00906536914408207, -0.2073470950126648, -0.18689259886741638, -0.2046438604593277, -0.10327474027872086, 0.01647670939564705, -0.2946449816226959, -0.09482752531766891, -0.11907920986413956, -0.12174680829048157, -0.25121352076530457, 0.2761531472206116, 0.37886783480644226, 0.35103243589401245, -0.02036057412624359, -0.11334061622619629, -0.2336069792509079, 0.09381276369094849, 0.018680967390537262, 0.006727189291268587, 0.008039209991693497, 0.11702860891819, -0.15800686180591583, 0.17154483497142792, 0.37331557273864746, -0.135658398270607, -0.0398966446518898, 0.13031445443630219, 0.07440229505300522, 0.35524246096611023, -0.39603495597839355, 0.12254682928323746, 0.1647951304912567, 0.47621840238571167, -0.23594669997692108, -0.20520059764385223, -0.09529365599155426, 0.09288249164819717, -0.34064099192619324, 0.027855778113007545, 0.08264818042516708, -0.18923088908195496, 0.13565757870674133, -0.1832282543182373, 0.125211700797081, -0.029616108164191246, 0.14067262411117554, -0.22200465202331543, 0.29244253039360046, 0.10406283289194107, 0.010555497370660305, 0.035256944596767426, -0.16169115900993347, -0.007254042662680149, -0.1755841225385666, -0.09924649447202682, 0.12622593343257904, -0.1759638637304306, -0.1781359612941742, 0.11043056100606918, -0.33207347989082336, 0.09222301095724106, 0.2341315895318985, 0.05492224916815758, -0.0728612169623375, 0.07247742265462875, 0.2050124853849411, 0.389006644487381, 0.15825960040092468, 0.11836066842079163, 0.1860063523054123, 0.04310034215450287, 0.039294105023145676, -0.07926467061042786, 0.06880901753902435, -0.030059142038226128, -0.39394447207450867, 0.21656067669391632, 0.07296261936426163, 0.1235315129160881, -0.032807476818561554, -0.3163636028766632, 0.14234447479248047, 0.05720917135477066, 0.10527758300304413, -0.009975015185773373, 0.3338148891925812, -0.0732828825712204, 0.19196867942810059, -0.029699210077524185, 0.10663492977619171, -0.13253673911094666, 0.08751258254051208, -0.33421066403388977, 0.14764121174812317, -0.19249899685382843, -0.48475080728530884, 0.13935096561908722, 0.1399337500333786, 0.2598893344402313, 0.11225689202547073, -0.08756683766841888, 0.04379936680197716, 0.2365788221359253, -0.22994832694530487, 0.15961003303527832, 0.27116796374320984, 0.20730021595954895, 0.1032983586192131, 0.10497312992811203, -0.3105356693267822, -0.09684929996728897, 0.19718337059020996, -0.2414347231388092, -0.12705738842487335, -0.23911195993423462, 0.44935745000839233, -0.019251396879553795, -0.13670191168785095, -0.35144007205963135, 0.15928050875663757, 0.022565599530935287, -0.19228395819664001, -0.07440341264009476, -0.12132579833269119, -0.09715378284454346, -0.14823022484779358, 0.31347909569740295, 0.28011590242385864, -0.3103973865509033, -0.14459021389484406, 0.03924374282360077, -0.18230511248111725, 0.16209132969379425, 0.258676141500473, -0.10533387213945389, 0.13413693010807037, -0.22975650429725647, 0.10658388584852219, 0.36050862073898315, -0.3388747572898865, -0.1952199637889862, 0.12348193675279617, -0.01899367943406105, -0.07159171998500824, -0.11977711319923401, -0.018919318914413452, 0.0368325300514698, 0.15001772344112396, 0.185410276055336, 0.2362964153289795, -0.050588130950927734, -0.024335073307156563, -0.1854708343744278, -0.0553225539624691, 0.28800955414772034, 0.14498576521873474, 0.0985293984413147, 0.03571242466568947, -0.14255785942077637, 0.14477121829986572, 0.2507314682006836, -0.07886260002851486, 0.005078292451798916, 0.4619206488132477, 0.4397905468940735, 0.02304205670952797, -0.008234073407948017, -0.09324106574058533, -0.17995135486125946, 0.030230993404984474, 0.12753641605377197, 0.24581004679203033, -0.012592117302119732, -0.1820111721754074, -0.2893087565898895, -0.14394448697566986, -0.21319903433322906, -0.15181340277194977, 0.3282751441001892, 0.014956127852201462, -0.09919564425945282, 0.05852563679218292, -0.2611054480075836, 0.17581707239151, -0.14643412828445435, 0.12125998735427856, -0.2127428650856018, 0.33944156765937805, -0.25131386518478394, 0.008036447688937187, -0.014948897063732147, 0.12998992204666138, 0.11788225919008255, 0.025139590725302696, -0.024143144488334656, 0.2596243917942047, 0.16667340695858002, -0.03319045156240463, 0.13012009859085083, -0.1600816696882248, 0.09455211460590363, -0.16833814978599548, -0.1287045031785965, 0.32378458976745605, 0.12938107550144196, -0.03260877728462219, -0.24797652661800385, 0.10319598019123077, 0.10673902928829193, 0.19042544066905975, 0.15384048223495483, 0.050383199006319046, 0.18572700023651123, -0.2024236023426056, 0.11656739562749863, -0.24066980183124542, 0.1367216855287552, -0.11522693186998367, 0.11161517351865768, -0.03300594910979271, -0.13941174745559692, -0.08110049366950989, 0.33976882696151733, 0.06977082788944244, 0.2045670449733734, 0.14777138829231262, -0.1715920865535736, 0.046652596443891525, 0.02446628361940384, 0.3108139932155609, 0.27993348240852356, 0.3105548620223999, 0.06698307394981384, 0.08633235841989517, 0.09670303761959076, -0.02595440484583378, 0.15240715444087982, 0.05763159319758415, -0.04884205758571625, 0.2677120864391327, 0.044927120208740234, 0.03684188798069954, -0.25521400570869446, -0.24408495426177979, 0.0002032349002547562, 0.3363625109195709, -0.17593947052955627, -0.02674070931971073, -0.3138722777366638, -0.12805797159671783, 0.014875448308885098, 0.19959385693073273, -0.07804146409034729, -0.31773850321769714, 0.22363318502902985, 0.004746597725898027, -0.3061590790748596, 0.29551687836647034, -0.01620745286345482, 0.09668219834566116, 0.1927611082792282, -0.02932560071349144, -0.16105449199676514, -0.26296859979629517, -0.23413735628128052, 0.2838200330734253, 0.08357256650924683, 0.292868047952652, 0.23474867641925812, -0.26354753971099854, -0.1672605723142624, -0.04392876476049423, -0.43469035625457764, 0.04926912114024162, -0.1462499499320984, 0.2544344663619995, 0.2226763367652893, 0.3057717978954315, -0.21775086224079132, -0.2630031108856201, 0.2211744487285614, -0.23908647894859314, -0.27747660875320435, 0.09022413194179535, 0.12394926697015762, -0.07325521111488342, -0.29615268111228943, -0.5132995843887329, -0.2596697509288788, -0.3618587553501129, -0.10578850656747818, 0.10254399478435516, -0.00047598336823284626, 0.09698931127786636, 0.32177817821502686, 0.01936114951968193, -0.02500033751130104, 0.028933415189385414, -0.16929899156093597, -0.26692619919776917, 0.3266661465167999, -0.27029404044151306, -0.3725546598434448, 0.13848061859607697, -0.18093827366828918, 0.2575159966945648, -0.2692219614982605, -0.4536554515361786, -0.13163506984710693, -0.01948811113834381, -0.01143913809210062, -0.05741312727332115, 0.037979770451784134, 0.1411522775888443, 0.13455167412757874, -0.27272146940231323, -0.1700938642024994, -0.07690984755754471, 0.01961306482553482, -0.1201300173997879, 0.24992822110652924, -0.27422666549682617, 0.32239770889282227, 0.016869977116584778, 0.2349819391965866, 0.2456391453742981, -0.17568479478359222, 0.0739307627081871, -0.18611346185207367, 0.26733654737472534, -0.13000905513763428, -0.39652445912361145, 0.04418802261352539, 0.059797804802656174, 0.029484190046787262, 0.10887178033590317, -0.0278629157692194, -0.1776438057422638, -0.24931398034095764, 0.1862986534833908, -0.18510723114013672, -0.18968302011489868, 0.02008342370390892, 0.01457396149635315, -0.013882661238312721, -0.030151670798659325, 0.12864577770233154, -0.3162183463573456, 0.009685322642326355, -0.03908246010541916, 0.19351232051849365, -0.04545450210571289, -0.052725836634635925, -0.5001699924468994, 0.25494346022605896, -0.3457235097885132, 0.1618807166814804, -0.06315162032842636, 0.059896908700466156, -0.0876946970820427, 0.044564299285411835, -0.10424639284610748, 0.001842706580646336, 0.5315636992454529, -0.3192271590232849, -0.07051800936460495, 0.09819836914539337, 0.20096257328987122, -0.17571793496608734, 0.0994819924235344, -0.33738476037979126, -0.10743019729852676, 0.296446293592453, 0.08239394426345825, -0.22765634953975677, -0.10902860760688782, 0.35783496499061584, 0.06792676448822021, -0.175082266330719, -0.11128652095794678, -0.3121809959411621, -0.3535667359828949, -0.35164034366607666, -0.0649886205792427, 0.2422627955675125, 0.17375531792640686, -0.21005761623382568, -0.21187813580036163, -0.05226872116327286, -0.06216412037611008, 0.3121020793914795, 0.11460146307945251, 0.4049684703350067, 0.05483533814549446, 0.16249427199363708, -0.1140967532992363, 0.13516229391098022, 0.3803839087486267, 0.46574389934539795, -0.0491911917924881, -0.2040521800518036, 0.12827979028224945, -0.18266864120960236, 0.313686728477478, 0.056962355971336365, -0.016924869269132614, 0.03378027305006981, -0.31384363770484924, 0.25001972913742065, -0.11377837508916855, 0.3845151662826538, 0.436315655708313, 0.1238587498664856, -0.2079487442970276, -0.35723283886909485, 0.2842608690261841, 0.05240212008357048, 0.029995853081345558, 0.1809982806444168, 0.05032911151647568, -0.30336812138557434, 0.4107028841972351, -0.013790613040328026, 0.8179678916931152, 0.22462552785873413, 0.09454778581857681, 0.2602618634700775, 0.02879524417221546, 0.22763952612876892, -0.1138884574174881, 0.09623110294342041, -0.2584109604358673, -0.058095384389162064, -0.022729260846972466, -0.03414364159107208, 0.07312307506799698, 0.30251309275627136, -0.35708510875701904, 0.13661883771419525, -0.17383117973804474, 0.16115817427635193, -0.14484548568725586, 0.20150193572044373, -0.020319106057286263, 0.03944365680217743, -0.12722225487232208, 0.33404359221458435, -0.013476715423166752, 0.101272352039814, -0.05982578545808792, -0.13001249730587006, -0.09543117880821228, -0.19655771553516388, -0.033576980233192444, 0.09275288879871368, 0.19770614802837372, 0.20409922301769257, -0.11115764826536179, -0.26271194219589233, 0.011058280244469643, 0.2847990393638611, 0.28769993782043457, 0.25325000286102295, 0.04565606266260147, 0.3643510341644287, 0.23675301671028137, 0.0686027780175209, 0.015424934215843678, 0.1436348408460617, 0.24378672242164612, -0.15748251974582672, -0.37938785552978516, 0.12413114309310913, -0.0492137111723423, -0.2387681007385254, -0.0866313949227333, -0.07656822353601456, 0.07071266323328018, -0.4695093035697937, -0.16924652457237244, 0.15638957917690277, -0.021886587142944336, -0.3271130919456482, 0.31781381368637085, 0.004369530826807022, -0.29891735315322876, 0.14412397146224976, 0.06388843059539795, -0.14072546362876892, -0.03777773678302765, 0.2160804569721222, 0.13021449744701385, -0.25454017519950867, 0.5490444898605347, -0.05384271964430809, -0.1450420469045639, -0.38906919956207275, 0.051537591964006424, 0.35088181495666504, -0.3129740059375763, 0.272747665643692, -0.014698030427098274, 0.015026531182229519, 0.13462913036346436, 0.18280109763145447, -0.013668952509760857, 0.04248977079987526, 0.06781119853258133, -0.21576111018657684, -0.4011372923851013, 0.2692798376083374, -0.03941635414958, 0.37815460562705994, 0.029361581429839134, 0.15487544238567352, -0.037505146116018295, -0.0215571578592062, -0.5434962511062622, 0.05682729557156563, -0.33893874287605286, 0.09992354363203049, -0.1396113485097885, -0.1531347781419754, -0.15976287424564362, -0.18502889573574066, 0.34478068351745605, 0.07668452709913254, -0.04548259824514389, -0.4464409649372101, -0.026720063760876656, 0.03717394918203354, -0.09555505216121674, -0.07477100193500519, 0.14846384525299072, 0.005172608885914087, -0.318141907453537, -0.05778687447309494, 0.08857323974370956, 0.08496878296136856, 0.07271125167608261, 0.3011941909790039, 0.18143033981323242, 0.16275742650032043, -0.08635207265615463, -0.17327895760536194, 0.10439128428697586, 0.11384209245443344, -0.005346561316400766, 0.0460275374352932, -0.07078301161527634, -0.029474733397364616, 0.2215912789106369, 0.02827952429652214, 0.024788202717900276, 0.10649614781141281, 0.30076155066490173, -0.4033622741699219, 0.1334037333726883, 0.03240014985203743, 0.22793039679527283, 0.21148879826068878, -0.4869913160800934, 0.12960700690746307, 0.2989041805267334, 0.45390793681144714, -0.49493223428726196, 0.0021944865584373474, 0.13489441573619843, 0.20981954038143158, 0.2141476720571518, -0.022702602669596672, -0.020529616624116898, 0.01910441555082798, -0.02429630234837532, 0.2847111225128174, 0.14921189844608307, -0.1837683767080307, 0.2255082130432129, 0.5618135333061218, -0.1565527766942978, -0.052099794149398804, -0.0835753008723259, 0.11970283836126328, 0.053214527666568756, 0.640916645526886, -0.021349173039197922, 0.5188958048820496, -0.020863281562924385, 0.053055405616760254, 0.017942266538739204, -0.19455395638942719, 0.024133749306201935, 0.11587374657392502, -0.15788504481315613, 0.17546065151691437, 0.17905458807945251, 0.12700775265693665, -0.15544943511486053, -0.32452520728111267, -0.24164055287837982, 0.06619831174612045, -0.3337954878807068, -0.04920874536037445, -0.44652384519577026, -0.05489671230316162, -0.23356573283672333, -0.07683878391981125, 0.10067633539438248, -0.24839439988136292, 0.03780093416571617, 0.027534807100892067, -0.16040317714214325, -0.1588706523180008, -0.13908587396144867, 0.04297405108809471, 0.18816353380680084, -0.0569794699549675, 0.10251615196466446, 0.443800151348114, -0.12851844727993011, 0.07981117069721222, 0.2866284251213074, 0.43947944045066833, 0.21188810467720032, -0.026080727577209473, 0.06071341410279274, 0.019935298711061478, -0.29018500447273254, -0.05702471360564232, 0.31671759486198425, 0.2316609025001526, 0.06527319550514221, 0.2854950428009033, 0.3337290585041046, -0.32656824588775635, 0.04260104149580002, 0.17560283839702606, 0.15069079399108887, -0.258655846118927, 0.25945383310317993, 0.04978296160697937, -0.058079615235328674, -0.40169575810432434, -0.16706952452659607, -0.3539692759513855, -0.13253341615200043, 0.52369225025177, 0.1074894368648529, 0.1265450268983841, -0.21045593917369843, 0.1851721554994583, -0.06094490736722946, 0.2532326579093933, 0.14998143911361694, 0.15763452649116516, -0.3179418444633484, -0.23239217698574066, -0.6231594085693359, 0.0902826189994812, -0.16516375541687012, -0.13864240050315857, -0.07924353331327438, 0.04113537445664406, -0.01587214320898056, 0.13608881831169128, -0.004347987938672304, 0.0932961106300354, 0.04313570261001587, 0.09181029349565506, -0.48636141419410706, -0.14562101662158966, -0.1995881050825119, 0.09007308632135391, 0.16565459966659546, -0.32192471623420715, -0.001983494497835636, -0.17304860055446625, 0.22411155700683594, 0.09280222654342651, -0.04315575584769249, 0.042192067950963974, 0.24340805411338806, 0.18962348997592926, 0.044014960527420044, 0.47351759672164917, -0.12554867565631866, 0.07087626308202744, -0.09931637346744537, -0.39054474234580994, -0.18660271167755127, 0.2100106030702591, 0.32522907853126526, 0.3909318447113037, -0.07346460223197937, 0.05942754074931145, -0.022949151694774628, 0.01770394667983055, 0.25305020809173584, -0.3288390338420868, -0.3871287703514099, 0.11729972809553146, 0.23031634092330933, 0.17718037962913513, 0.045012280344963074, 0.20787504315376282, -0.06942978501319885, -0.019121941179037094, -0.2118052840232849, -0.5480455756187439, 0.5345567464828491, -0.2942785322666168, -0.2483919858932495, -0.26667219400405884, 0.0752769336104393, 0.2875221073627472, -0.05744881555438042, -0.6307244300842285, 0.04872681573033333, 0.2257455289363861, 0.05036209896206856, -0.2204592227935791, 0.2630024552345276, -0.15387849509716034, 0.03207436203956604, -0.0350455567240715, 0.16976702213287354, 0.1194174736738205, -0.08986760675907135, 0.08524998277425766, -0.4025442600250244 ]
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.5113663673400879, -0.3407383859157562, -0.12627209722995758, 0.060850728303194046, 0.0776371955871582, 0.14176733791828156, -0.018711816519498825, 0.2698063552379608, -0.2622142732143402, 0.04919622465968132, 0.11080574989318848, 0.5883793234825134, -0.030782612040638924, -0.13176792860031128, -0.40389421582221985, -0.09057445824146271, -0.06165654957294464, 0.1219063475728035, 0.24245494604110718, -0.08993515372276306, -0.3668367564678192, 0.08831003308296204, -0.26999756693840027, -0.10032211989164352, -0.17185841500759125, -0.2321971207857132, 0.23139163851737976, -0.037714168429374695, 0.0033016607630997896, -0.6815318465232849, 0.6883978247642517, -0.29781848192214966, 0.2429685890674591, 0.1627679318189621, -0.00011839861690532416, 0.21314914524555206, 0.450001060962677, 0.011196920648217201, -0.006567114964127541, 0.08025778830051422, -0.24032513797283173, 0.1947777420282364, 0.08558442443609238, -0.16381974518299103, 0.08585629612207413, -0.03536902368068695, -0.04417866840958595, -0.42770883440971375, 0.38084593415260315, 0.19533520936965942, 0.10143116116523743, 0.21742229163646698, 0.0514749176800251, -0.015188065357506275, -0.06874430924654007, 0.1960492879152298, -0.13332965970039368, -0.22559218108654022, 0.27977102994918823, 0.18103791773319244, 0.1458377093076706, 0.5812523365020752, -0.04826204851269722, 0.26923978328704834, 0.15762794017791748, -0.19725759327411652, 0.05797480419278145, -0.33316510915756226, 0.19153837859630585, -0.11217346042394638, 0.20941872894763947, -0.22293782234191895, -0.25140658020973206, 0.13665683567523956, -0.19580252468585968, -0.3983703851699829, 0.16237014532089233, -0.13681630790233612, 0.05195700377225876, 0.03653531149029732, -0.14554156363010406, 0.1398390531539917, -0.2271481603384018, 0.24815063178539276, -0.15954861044883728, 0.15872883796691895, -0.0363636314868927, 0.3123632073402405, -0.01616533100605011, -0.1319194883108139, 0.17960384488105774, 0.12993468344211578, -0.12331309914588928, 0.09104674309492111, -0.2346750646829605, -0.15034358203411102, -0.27612677216529846, -0.3692835867404938, 0.021341072395443916, -0.15421439707279205, -0.10898692160844803, 0.18758642673492432, 0.5407524704933167, 0.14123106002807617, 0.08593694120645523, 0.11324235796928406, 0.2426157146692276, 0.8317351937294006, -0.05357115715742111, -0.653125524520874, 0.06781944632530212, 0.07014413923025131, -0.03380511328577995, -0.352408766746521, 0.2568630278110504, 0.15014223754405975, 0.14747188985347748, 0.03496725484728813, -0.2799457907676697, 0.14070965349674225, -0.43816542625427246, 0.0077406419441103935, -0.21342037618160248, 0.399895042181015, 0.2957148551940918, -0.14977379143238068, 0.22244074940681458, 0.1331147998571396, 0.14214801788330078, -0.10576984286308289, -0.005941753275692463, -0.08938556909561157, -0.18928708136081696, -0.14793536067008972, 0.14258000254631042, -0.19671620428562164, 0.21726904809474945, -0.22648797929286957, -0.011337938718497753, -0.08503974229097366, 0.33678507804870605, 0.06559501588344574, 0.4326564371585846, 0.21800924837589264, 0.02315162867307663, 0.22970502078533173, -0.010406243614852428, 0.1910955309867859, -0.11350608617067337, -0.07931885123252869, -0.1578672081232071, -0.33099135756492615, -0.3654824495315552, 0.1561720073223114, 0.3952357769012451, -0.028294945135712624, -0.07041207700967789, 0.00585964135825634, 0.5582669377326965, -0.012278568930923939, 0.3374222218990326, -0.237822026014328, 0.11931677907705307, 0.006035794038325548, -0.08632681518793106, 0.18486878275871277, -0.3499470055103302, -0.05250565707683563, 0.031724438071250916, 0.28067702054977417, 0.04824737086892128, 0.04913262650370598, -0.3638935685157776, 0.09155772626399994, -0.12234208732843399, 0.5995524525642395, 0.44064635038375854, -0.7461097240447998, -0.396071195602417, 0.5548931360244751, 0.000024084576580207795, -0.27478480339050293, -0.0202939473092556, -0.061233144253492355, 0.4194321930408478, -0.12865164875984192, 0.1339120864868164, 0.0815139040350914, -0.0028011403046548367, 0.06026787310838699, -0.07690494507551193, 0.0175308994948864, 0.20588882267475128, 0.13035409152507782, 0.08668608218431473, -0.01687208190560341, 0.2668991982936859, -0.033813074231147766, -0.08745872974395752, 0.013731117360293865, 0.3313802480697632, 0.4629955291748047, -0.11803075671195984, -0.10435319691896439, 0.25043410062789917, 0.016416877508163452, -0.34727925062179565, 0.1601375788450241, -0.16808335483074188, -0.016855835914611816, -0.34344282746315, -0.26923465728759766, -0.1579749435186386, 0.18760645389556885, -0.33793696761131287, -0.299413800239563, 0.05451061204075813, 0.02371022291481495, -0.023135412484407425, -0.1506967842578888, -0.23487545549869537, -0.31090474128723145, -0.0031266806181520224, 0.012928243726491928, -0.37103718519210815, -0.08105940371751785, -0.10287677496671677, -0.1666499674320221, -0.22295835614204407, -0.08238106966018677, 0.19442883133888245, -0.1868705004453659, -0.2059348076581955, 0.3810170292854309, -0.3576885163784027, 0.157522514462471, -0.2036375254392624, 0.03534383699297905, 0.09658704698085785, -0.7572340965270996, -0.1935378611087799, -0.08539292961359024, 0.02265605889260769, -0.14363697171211243, 0.29737356305122375, 0.03320390731096268, 0.45316585898399353, 0.3256349265575409, -0.23011404275894165, 0.04234161600470543, 0.10646083950996399, -0.06333598494529724, -0.16954171657562256, -0.23644483089447021, -0.1860893815755844, -0.19816283881664276, 0.1607278436422348, -0.028663337230682373, -0.10106252878904343, 0.03360024839639664, 0.10055148601531982, 0.032848283648490906, 0.051831405609846115, 0.08869332075119019, -0.3016301989555359, 0.11394110321998596, 0.21147359907627106, 0.11009586602449417, 0.14208392798900604, 0.07934126257896423, 0.08463890105485916, 0.058550674468278885, -0.040488630533218384, 0.07006888091564178, 0.36867570877075195, 0.21797135472297668, -0.02816653810441494, 0.25770509243011475, 0.01063326932489872, 0.31537893414497375, -0.25678563117980957, -0.22523082792758942, 0.2095833718776703, 0.07086202502250671, -0.2471289038658142, 0.17027205228805542, -0.10327888280153275, -0.12203291803598404, 0.03484498709440231, -0.17995864152908325, 0.2601117789745331, -0.09455399960279465, -0.050405312329530716, 0.010242465883493423, -0.06119365617632866, 0.4547736346721649, -0.05814064294099808, -0.07826384902000427, 0.3865163028240204, -0.18648558855056763, -0.2859801948070526, -0.18849894404411316, -0.2462264448404312, -0.10403512418270111, 0.050700366497039795, 0.009210227057337761, 0.250357061624527, 0.19130964577198029, 0.07216784358024597, -0.3318432867527008, -0.23221643269062042, 0.3374353349208832, -0.05109891667962074, -0.3957124948501587, 0.11377444118261337, -0.2494395524263382, -0.38292375206947327, -0.4515095055103302, 0.1395200490951538, 0.15347295999526978, -0.21974724531173706, 0.11521030962467194, -0.10876114666461945, -0.2230624407529831, 0.14892272651195526, -0.5410325527191162, -0.22870546579360962, -0.21455751359462738, -0.08288183063268661, -0.3405638337135315, -0.03867308050394058, 0.18274809420108795, 0.17747870087623596, 0.030876310542225838, -0.020929720252752304, -0.05060548707842827, -0.18196368217468262, 0.19959823787212372, 0.23291999101638794, -0.3783589005470276, 0.0198899544775486, -0.040855489671230316, -0.16200576722621918, 0.3158457279205322, 0.5299426913261414, -0.17420893907546997, 0.4087524116039276, -0.09358500689268112, 0.04158741608262062, -0.3694301247596741, 0.14195822179317474, 0.5250948071479797, 0.24354253709316254, -0.08899970352649689, -0.07979638874530792, 0.12145072966814041, 0.056560397148132324, -0.1646122932434082, 0.2331373691558838, -0.14329907298088074, 0.528208315372467, 0.023046376183629036, 0.7464094161987305, 0.18651089072227478, -0.6531713008880615, 0.34721386432647705, -0.00850732997059822, -0.027339380234479904, 0.08294974267482758, -0.1887923628091812, -0.0942966639995575, -0.183174267411232, 0.08020351082086563, -0.12024959176778793, -0.1443755328655243, -0.5767666697502136, 0.19312627613544464, 0.09031559526920319, -0.4708710312843323, 0.07252568751573563, 0.00989303644746542, -0.28978320956230164, 0.45279160141944885, 0.026333646848797798, 0.1306542158126831, -0.05303232744336128, 0.09122449904680252, 0.15451279282569885, -0.28869718313217163, 0.01478132139891386, -0.043786898255348206, -0.06545180827379227, -0.2173921763896942, -0.367125540971756, 0.4868406355381012, 0.2577666938304901, 0.34798216819763184, -0.11464368551969528, 0.16268354654312134, 0.05579955130815506, 0.18536683917045593, 0.45281293988227844, -0.4465717375278473, 0.10912122577428818, 0.007496835198253393, -0.1906963288784027, -0.272478312253952, 0.09426674246788025, -0.06056855618953705, 0.5769723653793335, 0.4145492613315582, 0.4333527982234955, -0.14631213247776031, -0.012142753228545189, 0.09913619607686996, -0.2778376638889313, 0.06149011850357056, -0.00918084941804409, 0.0020790945272892714, -0.1659400463104248, -0.2891864478588104, 0.07461656630039215, 0.5696232318878174, 0.04756125062704086, 0.3033527433872223, -0.3070925772190094, -0.5790475606918335, -0.03922314569354057, -0.22695648670196533, 0.0006705799605697393, 0.21060751378536224, -0.036458924412727356, 0.15299014747142792, -0.009676223620772362, 0.31274595856666565, 0.5661588907241821, 0.18932683765888214, -0.03595542907714844, -0.1788252890110016, 0.14386579394340515, -0.08968403190374374, 0.09971607476472855, 0.11434593051671982, -0.13535922765731812, -0.14749497175216675, 0.04935349524021149, -0.05271296948194504, -0.09715615957975388, -0.011167318560183048, 0.28104168176651, 0.1337306797504425, -0.3588031530380249, 0.02942800335586071, 0.2876637876033783, -0.10651326179504395, -0.02214740961790085, 0.5833796858787537, 0.12081760913133621, -0.3441377580165863, 0.58628249168396, 0.43612492084503174, 0.6721882820129395, 0.22871072590351105, -0.10585391521453857, -0.09882378578186035, 0.27961838245391846, -0.016794830560684204, -0.0684397891163826, 0.1613929718732834, -0.23415078222751617, 0.16170957684516907, -0.06677517294883728, -0.1077655628323555, -0.053299568593502045, 0.26544275879859924, -0.21071259677410126, -0.10097801685333252, 0.135330468416214, -0.22782956063747406, -0.09185034036636353, 0.09102751314640045, -0.03537760674953461, -0.2407880574464798, 0.26444607973098755, 0.07889243215322495, 0.13084723055362701, 0.19205030798912048, -0.11144381016492844, -0.14725878834724426, 0.06683632731437683, -0.3950740098953247, -0.2338782697916031, 0.06559450179338455, -0.4276455044746399, 0.6017544865608215, 0.19601304829120636, -0.18621784448623657, 0.24366135895252228, 0.2843478322029114, 0.27510273456573486, -0.22134432196617126, -0.09983165562152863, 0.29110440611839294, 0.4625082314014435, -0.21952247619628906, 0.08965756744146347, -0.11842230707406998, 0.1319420486688614, 0.017137398943305016, -0.08147942274808884, 0.22182674705982208, -0.11327473074197769, -0.3836539685726166, 0.1449817717075348, 0.013661094009876251, -0.11290168762207031, -0.2023651897907257, 0.00428078044205904, -0.06830517202615738, -0.3333328664302826, -0.17131966352462769, 0.02220933698117733, -0.19411024451255798, -0.16139432787895203, 0.11378740519285202, 0.08622396737337112, -0.3374767601490021, 0.25197380781173706, 0.6712554693222046, -0.15565001964569092, -0.32686248421669006, 0.474131315946579, -0.013779918663203716, -0.18991482257843018, -0.2256557196378708, 0.07543618232011795, 0.5069102048873901, -0.5794171690940857, 0.08277495205402374, -0.3235066831111908, 0.010248159058392048, 0.1571313887834549, 0.5728727579116821, 0.03564392402768135, 0.3189890384674072, -0.1937936544418335, -0.0653926432132721, -0.2630278468132019, 0.023028133437037468, -0.07552826404571533, 0.4225477874279022, -0.11403489112854004, 0.14035315811634064, -0.0659269243478775, 0.031065694987773895, -0.21264222264289856, -0.03435508534312248, -0.2249850034713745, 0.03714238479733467, -0.1169099286198616, 0.14963935315608978, 0.052056342363357544, 0.10606856644153595, -0.03316477686166763, 0.4258902668952942, -0.17060545086860657, -0.09957363456487656, 0.09344523400068283, 0.15738725662231445, 0.1690533459186554, -0.10386136919260025, -0.24773986637592316, -0.10660693794488907, -0.29699820280075073, -0.055474795401096344, 0.13365541398525238, 0.09641853719949722, -0.024532336741685867, 0.16795819997787476, -0.056005291640758514, 0.003104613861069083, 0.041717227548360825, -0.2056301236152649, 0.11201199889183044, 0.19130243360996246, -0.09874635189771652, 0.24295099079608917, 0.07120043784379959, -0.010221078060567379, -0.14999383687973022, -0.040738847106695175, 0.08042750507593155, 0.03914878889918327, 0.2788165509700775, -0.4909858703613281, -0.21658411622047424, 0.13409987092018127, 0.15859776735305786, 0.088575579226017, -0.5477798581123352, -0.23364345729351044, -0.02002336084842682, 0.21419432759284973, -0.05384739488363266, 0.03838207572698593, -0.11847217381000519, 0.1434013694524765, 0.045156627893447876, -0.028206106275320053, 0.16231901943683624, -0.09659913182258606, 0.15332604944705963, 0.2675468325614929, 0.38099125027656555, -0.4468240737915039, 0.057476408779621124, 0.24889574944972992, -0.11213504523038864, 0.06730642914772034, 0.1593645066022873, 0.3147461414337158, 0.59159255027771, 0.30264970660209656, -0.10688018053770065, 0.6875784993171692, 0.23599953949451447, 0.17130279541015625, 0.05905524641275406, -0.029609110206365585, 0.05596835911273956, -0.1344688981771469, 0.10468420386314392, 0.2520945966243744, 0.29096469283103943, 0.19313478469848633, -0.09825672209262848, -0.28240782022476196, 0.0062946900725364685, 0.02275247313082218, -0.15743005275726318, -0.14675676822662354, -0.37185949087142944, 0.03483472019433975, 0.023777291178703308, -0.04852195084095001, -0.1388552188873291, 0.30945920944213867, 0.281219482421875, 0.0936250388622284, -0.3840433657169342, -0.11808527261018753, 0.13152849674224854, -0.010584451258182526, 0.1634085476398468, -0.20398956537246704, 0.21023932099342346, 0.09128953516483307, -0.16292966902256012, 0.050825607031583786, 0.5249239802360535, 0.38738104701042175, 0.23209644854068756, -0.3360835313796997, 0.049642715603113174, 0.06347692012786865, -0.08558106422424316, 0.03243761137127876, 0.2687179446220398, 0.003970360849052668, -0.009940073825418949, 0.09813785552978516, 0.059378448873758316, -0.08467469364404678, -0.026116997003555298, 0.16434207558631897, 0.4864998161792755, 0.3900397717952728, -0.08449321985244751, -0.17988519370555878, -0.11793629080057144, 0.06088752672076225, 0.10914356261491776, -0.446412593126297, 0.1287887841463089, 0.4633156359195709, -0.1877119541168213, 0.0811704471707344, 0.012980078347027302, 0.0467701219022274, -0.1753971129655838, 0.4479137659072876, 0.47294795513153076, -0.13101045787334442, -0.24273435771465302, -0.12543125450611115, -0.11558935791254044, 0.45753300189971924, -0.10923826694488525, -0.027358530089259148, 0.364436537027359, 0.36412182450294495, 0.13504569232463837, 0.03122715651988983, 0.20693662762641907, 0.016116315498948097, -0.268807053565979, 0.4063851237297058, -0.00022542887018062174, -0.025077391415834427, -0.07817351073026657, 0.11124061048030853, 0.15478207170963287, -0.2695222795009613, 0.06357166171073914, 0.26078563928604126, 0.02671786956489086, -0.3894844949245453, -0.2669803500175476, 0.13523440062999725, -0.2595060467720032, 0.6943300366401672, 0.02994156815111637, 0.07025280594825745, -0.25117024779319763, 0.07539116591215134, -0.20620539784431458, -0.341365247964859, 0.009823180735111237, -0.008407551795244217, 0.2645088732242584, 0.27442851662635803, -0.09392721205949783, -0.09269503504037857, -0.32601937651634216, -0.2867220938205719, -0.06685177981853485, -0.21048477292060852, -0.2775947153568268, 0.30505019426345825, -0.29554951190948486, 0.17996326088905334, -0.1510106772184372, 0.17110703885555267, 0.26214516162872314, 0.24052558839321136, -0.3641987144947052, -0.5881092548370361, 0.5087841153144836, -0.33976614475250244, -0.3331581950187683, 0.303326278924942, 0.0289913397282362, 0.6112290620803833, 0.1801224946975708, -0.5372476577758789, 0.009710213169455528, 0.1904551088809967, -0.08976130187511444, -0.41891801357269287, -0.2174973040819168, 0.16010764241218567, 0.0964685007929802, -0.09957526624202728, 0.3238030672073364, 0.10502129048109055, 0.1133851483464241, -0.2556929290294647, -0.3263618052005768 ]
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.006654245778918266, -0.06125641614198685, -0.09929931163787842, 0.12845247983932495, 0.2658337354660034, 0.2934049069881439, 0.4646618366241455, 0.1487031877040863, 0.2840234339237213, 0.08272767066955566, 0.13032832741737366, 0.040858980268239975, -0.0920240730047226, -0.12458831071853638, 0.29717832803726196, -0.2793467342853546, 0.22021731734275818, 0.051297977566719055, 0.1837172508239746, -0.14759719371795654, -0.23699767887592316, 0.2542136311531067, -0.28885895013809204, -0.09003917872905731, -0.09242326021194458, 0.08238449692726135, -0.10188842564821243, 0.13978266716003418, -0.0649522989988327, -0.6014871001243591, 0.6427779197692871, 0.04177026450634003, 0.37911006808280945, 0.40242549777030945, -0.00011106581951025873, 0.054083142429590225, 0.24328435957431793, 0.023511501029133797, -0.4869871735572815, -0.3152090311050415, -0.6912312507629395, -0.47895586490631104, 0.16588813066482544, -0.14663618803024292, -0.0642055794596672, 0.13011734187602997, 0.07345525920391083, -0.4601002633571625, 0.04406996816396713, 0.20215734839439392, 0.2513066232204437, 0.09741199016571045, 0.1838606595993042, -0.25886401534080505, 0.030779559165239334, 0.26245734095573425, -0.1520385891199112, 0.15973664820194244, 0.18504633009433746, 0.1987578570842743, 0.34879493713378906, 0.30788472294807434, 0.14899449050426483, 0.01939472369849682, 0.2877073585987091, 0.15531407296657562, 0.28713488578796387, -0.16411536931991577, -0.007011307403445244, 0.06313686072826385, 0.6540951132774353, -0.14077413082122803, -0.7040757536888123, -0.3533010184764862, 0.14857400953769684, -0.3803819715976715, 0.1837787926197052, -0.13973644375801086, -0.12420277297496796, 0.1525917798280716, -0.22221322357654572, -0.24556736648082733, 0.029543118551373482, 0.26103925704956055, -0.29168984293937683, 0.3245619833469391, -0.13985013961791992, -0.02170693315565586, -0.20660950243473053, -0.05921002849936485, -0.024795301258563995, -0.11592105776071548, 0.11396341025829315, 0.2741013765335083, -0.2491636723279953, -0.06744708865880966, 0.11850011348724365, -0.2061501145362854, -0.03279917687177658, 0.1498192548751831, 0.01739388145506382, -0.17190511524677277, -0.0063731474801898, 0.10069736838340759, 0.35347893834114075, 0.24971067905426025, 0.19845063984394073, -0.015975221991539, 0.25751742720603943, 0.3605663478374481, 0.1864641308784485, -0.1657252311706543, -0.20603829622268677, -0.24009431898593903, 0.22699755430221558, 0.09620804339647293, 0.27032437920570374, -0.05759206414222717, -0.2305227816104889, -0.020862707868218422, 0.36524584889411926, -0.14992566406726837, -0.04393394663929939, 0.11242237687110901, -0.09773890674114227, 0.3643296957015991, -0.08032209426164627, 0.17358733713626862, -0.1319599151611328, 0.031080134212970734, -0.24839800596237183, -0.07314272224903107, -0.07619107514619827, -0.3178822696208954, 0.22059258818626404, -0.1794012039899826, 0.40296587347984314, -0.010443853214383125, -0.27018865942955017, 0.15504667162895203, -0.06781253218650818, 0.029077332466840744, -0.11389854550361633, 0.26729071140289307, -0.02183961682021618, 0.1548047959804535, 0.052253078669309616, -0.429195374250412, -0.1739235371351242, -0.05616340413689613, -0.25904446840286255, -0.18399183452129364, -0.5109384059906006, 0.2261652946472168, -0.18764998018741608, -0.3296753466129303, -0.4136557877063751, 0.17090106010437012, -0.08669707179069519, -0.2888185381889343, -0.03938920795917511, -0.14225620031356812, -0.30879825353622437, -0.16362996399402618, 0.3612365424633026, 0.42547401785850525, -0.3754040002822876, -0.22207710146903992, -0.2986678183078766, -0.1379341036081314, 0.05248292163014412, 0.03779979795217514, -0.18711000680923462, 0.12093806266784668, -0.2908604145050049, -0.1904943734407425, 0.577537477016449, -0.5136833190917969, -0.27384668588638306, 0.06129050254821777, 0.1417590081691742, 0.1254543513059616, 0.03902430087327957, -0.19629399478435516, 0.09341061115264893, -0.0833628699183464, 0.06033702939748764, 0.40866002440452576, 0.016741113737225533, -0.19155560433864594, 0.08782149106264114, -0.09139562398195267, -0.008583201095461845, 0.21262125670909882, 0.1517934501171112, 0.05690307915210724, 0.18128719925880432, 0.07667523622512817, 0.16004489362239838, 0.09151072055101395, 0.04946824163198471, 0.4845333993434906, 0.19557327032089233, 0.30658337473869324, 0.038520343601703644, -0.054906103760004044, -0.554267942905426, 0.42407411336898804, 0.3048112094402313, -0.13091230392456055, -0.15903304517269135, 0.03356754034757614, -0.2935141324996948, -0.003921127412468195, -0.26102331280708313, -0.1701720952987671, 0.09454519301652908, 0.217674121260643, 0.14620324969291687, 0.21579524874687195, -0.30230477452278137, 0.16239672899246216, 0.1202041357755661, 0.2067897468805313, -0.29113125801086426, 0.18847647309303284, -0.031173210591077805, 0.04432660713791847, 0.02203407883644104, 0.27097171545028687, 0.10228724777698517, -0.03300449624657631, -0.05594256520271301, 0.17774170637130737, 0.19012273848056793, 0.21248362958431244, 0.2953178584575653, -0.19234199821949005, 0.2499670386314392, -0.02797752059996128, 0.12962450087070465, 0.032872289419174194, 0.08249738812446594, 0.011545219458639622, -0.2562752068042755, 0.01559511013329029, 0.14737308025360107, 0.1286747306585312, 0.08729048818349838, 0.25362110137939453, 0.2938053011894226, -0.022227413952350616, 0.36962997913360596, -0.3660770356655121, 0.08226688206195831, -0.14616645872592926, 0.46109429001808167, -0.14353099465370178, -0.05179542675614357, 0.1415255218744278, 0.34314292669296265, -0.06484808772802353, 0.04883524775505066, 0.24751143157482147, -0.21299739181995392, 0.04666971042752266, 0.14239346981048584, 0.5272794365882874, 0.6025569438934326, 0.23554791510105133, 0.3136324882507324, -0.18582570552825928, 0.08779627829790115, -0.09847594797611237, 0.10367419570684433, 0.12134698778390884, 0.09155317395925522, -0.02368212305009365, 0.13333344459533691, 0.09049154072999954, -0.19854898750782013, -0.183240607380867, 0.05550466105341911, 0.13267135620117188, -0.07419407367706299, 0.06342630088329315, -0.3686581552028656, -0.03514121472835541, -0.1254175305366516, 0.1148931160569191, -0.24662044644355774, -0.446694552898407, -0.04645220935344696, -0.07945941388607025, 0.08446899056434631, 0.07107187807559967, -0.18705247342586517, 0.08092877268791199, -0.10142270475625992, -0.0842125192284584, -0.29597485065460205, -0.14883321523666382, -0.2996698021888733, 0.07205422222614288, 0.09461786597967148, -0.11815351247787476, 0.19330915808677673, -0.3682524263858795, 0.17600518465042114, -0.4141770303249359, -0.4692040681838989, -0.0031069458927959204, -0.08487185090780258, 0.3349466919898987, 0.4064878821372986, 0.026953868567943573, -0.21451187133789062, -0.1444421112537384, 0.2156670242547989, -0.2421429604291916, -0.18937285244464874, 0.09099629521369934, -0.04894805699586868, -0.004045706707984209, 0.05514845997095108, -0.2716001868247986, -0.5440986156463623, -0.21312475204467773, 0.08587870001792908, 0.2569321095943451, -0.061295025050640106, 0.1413230150938034, 0.04558262974023819, 0.1604280322790146, -0.05331691727042198, 0.3135327398777008, -0.20541638135910034, -0.4513523578643799, 0.35605475306510925, -0.2946031987667084, -0.25753524899482727, 0.28067174553871155, -0.1606239676475525, 0.4164978563785553, -0.2432584911584854, -0.5850544571876526, 0.3026736080646515, -0.1646488606929779, 0.2575054466724396, -0.060419220477342606, 0.18009547889232635, 0.3521589934825897, -0.016394570469856262, -0.06789635866880417, -0.26599952578544617, -0.33400318026542664, -0.23473700881004333, -0.01021970622241497, 0.46033772826194763, -0.09615486115217209, 0.38727086782455444, 0.039098259061574936, 0.5496217608451843, 0.1955944299697876, -0.055121295154094696, 0.1557844877243042, -0.07530438899993896, 0.34233999252319336, 0.012889810837805271, -0.32611411809921265, 0.17829665541648865, 0.0754665806889534, 0.20752207934856415, 0.0982222855091095, 0.27047204971313477, -0.21669282019138336, -0.30839741230010986, -0.08378393948078156, -0.16278916597366333, -0.13712410628795624, -0.2482924461364746, -0.18632638454437256, 0.1393478363752365, 0.10612425208091736, 0.16690300405025482, -0.4805334508419037, -0.1498393565416336, -0.08225582540035248, 0.4817947447299957, 0.28166115283966064, 0.20974086225032806, -0.17985495924949646, 0.1377663016319275, -0.6376329064369202, 0.17119695246219635, -0.09448128938674927, 0.48243430256843567, -0.026045963168144226, 0.04180844873189926, -0.037148911505937576, 0.22259078919887543, 0.4343492090702057, -0.4581444263458252, -0.09525653719902039, 0.11601339280605316, -0.17046746611595154, -0.3259860575199127, 0.00582320149987936, 0.08228904008865356, -0.12732651829719543, 0.12124643474817276, 0.31263965368270874, -0.0887567400932312, -0.20109772682189941, 0.36997076869010925, 0.12984003126621246, -0.20011737942695618, -0.21462905406951904, -0.32232460379600525, -0.26843202114105225, -0.19738678634166718, -0.3638211488723755, -0.11860684305429459, 0.06794281303882599, 0.14556477963924408, 0.0368240624666214, -0.28808391094207764, 0.10538160055875778, 0.0948701724410057, 0.15899744629859924, 0.2666437327861786, 0.24331524968147278, 0.1687091886997223, 0.40351974964141846, 0.11859909445047379, 0.1826074719429016, 0.48787903785705566, -0.108784519135952, -0.4713647961616516, 0.1359986960887909, 0.00085507205221802, 0.4082757532596588, 0.08062692731618881, -0.15432730317115784, -0.0314878486096859, 0.008495991118252277, 0.04522966966032982, -0.3203412592411041, -0.004698148928582668, 0.3944860100746155, 0.16070152819156647, -0.11583894491195679, -0.37084507942199707, 0.33124420046806335, 0.12041853368282318, 0.09846781194210052, 0.3976599872112274, 0.11055497080087662, -0.3682605028152466, 0.11731795966625214, -0.04342614859342575, 0.510953962802887, 0.051822271198034286, 0.2117452770471573, 0.17901773750782013, -0.19954591989517212, 0.46084609627723694, 0.20425741374492645, 0.06248884275555611, -0.07960495352745056, -0.05778879299759865, -0.15643125772476196, -0.14970800280570984, 0.24996140599250793, 0.14469514787197113, -0.09420857578516006, 0.36913272738456726, 0.07459869235754013, 0.25233399868011475, 0.0144617585465312, 0.2626575827598572, -0.18127688765525818, -0.1476721614599228, -0.28057461977005005, 0.17341965436935425, -0.030605332925915718, 0.45704784989356995, -0.17665144801139832, 0.01821838691830635, -0.026283662766218185, -0.06357086449861526, -0.22834062576293945, -0.1456354856491089, 0.08647027611732483, 0.36769965291023254, 0.02693958766758442, -0.6471759080886841, 0.2222999930381775, 0.36537042260169983, 0.48248693346977234, 0.01328130904585123, -0.3053210377693176, 0.38028568029403687, 0.08097770065069199, 0.14922977983951569, 0.04992637410759926, 0.09527917951345444, 0.27673327922821045, -0.08684919029474258, -0.25058990716934204, 0.11214636266231537, -0.201873317360878, -0.37739259004592896, -0.07069721072912216, -0.01718742772936821, -0.12374120950698853, -0.03890186548233032, -0.012936822138726711, -0.026111062616109848, 0.18247167766094208, -0.37377384305000305, 0.15262411534786224, 0.2982400059700012, 0.004371728282421827, -0.0554949976503849, -0.19572238624095917, -0.130329892039299, -0.13793101906776428, 0.4166834354400635, -0.09229298681020737, -0.40695565938949585, 0.5085172057151794, 0.1203412264585495, -0.17834392189979553, -0.14311474561691284, 0.17275738716125488, 0.06488072127103806, -0.18872956931591034, 0.002065069042146206, -0.19861385226249695, 0.26782095432281494, 0.08572821319103241, -0.017884207889437675, 0.10395249724388123, -0.48788580298423767, 0.06850847601890564, -0.5261346697807312, -0.3209863603115082, 0.20499803125858307, -0.21841174364089966, 0.13944825530052185, 0.029786674305796623, -0.21150386333465576, 0.04636650159955025, -0.26182758808135986, -0.3148193359375, 0.09663337469100952, -0.1712375283241272, -0.16769957542419434, -0.18002136051654816, 0.027401868253946304, 0.11571229994297028, -0.19356034696102142, 0.24238504469394684, -0.30699077248573303, 0.008360234089195728, -0.1954174041748047, -0.12883307039737701, 0.11487427353858948, -0.1486094444990158, -0.12685011327266693, 0.11865810304880142, -0.055526454001665115, -0.2969614565372467, -0.09200689941644669, 0.19062837958335876, 0.15117721259593964, -0.015638286247849464, 0.30369600653648376, 0.01220510620623827, 0.04713013395667076, 0.009030451998114586, -0.09792692959308624, 0.14983223378658295, 0.2871643304824829, 0.09778325259685516, 0.18789424002170563, 0.05805611237883568, 0.09730138629674911, 0.04982531815767288, 0.025132864713668823, -0.4133036732673645, 0.17369945347309113, 0.5069928765296936, -0.4505012631416321, 0.18444417417049408, 0.12849271297454834, 0.14113962650299072, 0.2169158160686493, -0.2787759602069855, 0.3034454584121704, 0.19044838845729828, 0.22459332644939423, -0.4017915427684784, -0.2237740010023117, 0.12786127626895905, 0.3568139970302582, 0.056692104786634445, 0.03967182710766792, 0.13266129791736603, -0.10311459004878998, -0.05634000897407532, 0.29001742601394653, 0.21053361892700195, -0.2017616629600525, 0.33085551857948303, 0.5534635186195374, 0.09512756764888763, 0.0724661722779274, 0.017759839072823524, 0.2613462805747986, -0.03229227662086487, 0.6142632365226746, -0.07032978534698486, 0.31351953744888306, -0.2665207087993622, 0.1789725124835968, 0.031190283596515656, -0.422634482383728, 0.14402015507221222, -0.11504615098237991, -0.18194074928760529, 0.01429892797023058, -0.0033614542335271835, 0.3601521849632263, -0.45058783888816833, -0.002872554585337639, -0.2931544780731201, -0.03644565865397453, -0.22290770709514618, 0.04856577143073082, -0.16775883734226227, -0.04638376459479332, -0.04063118249177933, -0.05405066907405853, -0.04211549460887909, -0.3212348222732544, 0.12755264341831207, 0.07585491240024567, -0.0539000928401947, -0.4687034785747528, 0.014499287120997906, 0.11126004904508591, 0.17540013790130615, -0.1473204642534256, 0.2805141508579254, 0.27022501826286316, -0.23246748745441437, 0.16336245834827423, 0.5229641795158386, 0.30317845940589905, -0.005832224618643522, 0.2003108561038971, -0.10275425761938095, 0.03872934728860855, -0.25821611285209656, -0.10505827516317368, 0.306708425283432, 0.026148676872253418, 0.2868359684944153, 0.14299586415290833, 0.19978971779346466, -0.020755240693688393, -0.010835055261850357, 0.140316441655159, 0.02922513335943222, -0.46822845935821533, 0.5080534815788269, -0.47751015424728394, 0.021062403917312622, -0.07228023558855057, 0.26863354444503784, -0.3505007326602936, -0.0773344561457634, 0.5598421096801758, 0.2219349443912506, 0.0016679530963301659, -0.16375304758548737, 0.07240087538957596, 0.029187794774770737, 0.17718423902988434, 0.26548174023628235, -0.08426833152770996, -0.18291409313678741, -0.2766018211841583, -0.6952945590019226, -0.0747816264629364, 0.029075637459754944, -0.3284605145454407, 0.17518433928489685, 0.051913224160671234, -0.04688253998756409, 0.05379839986562729, 0.2827131748199463, 0.17167064547538757, 0.02516057714819908, -0.006262517999857664, -0.42105114459991455, -0.5237382650375366, -0.0046752942726016045, -0.014330923557281494, -0.13159437477588654, -0.2026119828224182, 0.16788259148597717, -0.178652822971344, -0.022126561030745506, -0.1578681915998459, 0.07301394641399384, 0.15287591516971588, 0.15022538602352142, 0.2609071135520935, -0.01701384410262108, 0.26801520586013794, 0.015706749632954597, -0.09423214942216873, -0.2700977027416229, -0.34988248348236084, -0.1119915172457695, 0.3450043201446533, -0.30225756764411926, 0.465019553899765, -0.2893930673599243, -0.08774574846029282, -0.09730232506990433, 0.18853123486042023, 0.17593339085578918, -0.136310875415802, -0.31413471698760986, 0.3243114948272705, -0.1108170673251152, 0.24021543562412262, 0.5251004099845886, 0.1949777901172638, -0.10349466651678085, -0.030581284314393997, -0.16081400215625763, -0.21332421898841858, 0.3224259912967682, -0.34694725275039673, -0.197343647480011, -0.26579615473747253, -0.01633640192449093, 0.24874846637248993, -0.17274832725524902, -0.5405049324035645, 0.18578313291072845, 0.44512176513671875, 0.14556634426116943, -0.13685685396194458, 0.3280610740184784, 0.022510245442390442, 0.08004776388406754, 0.01729479245841503, 0.4166643023490906, -0.07152627408504486, -0.11977697163820267, -0.033553432673215866, 0.02914712391793728 ]
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.006654245778918266, -0.06125641614198685, -0.09929931163787842, 0.12845247983932495, 0.2658337354660034, 0.2934049069881439, 0.4646618366241455, 0.1487031877040863, 0.2840234339237213, 0.08272767066955566, 0.13032832741737366, 0.040858980268239975, -0.0920240730047226, -0.12458831071853638, 0.29717832803726196, -0.2793467342853546, 0.22021731734275818, 0.051297977566719055, 0.1837172508239746, -0.14759719371795654, -0.23699767887592316, 0.2542136311531067, -0.28885895013809204, -0.09003917872905731, -0.09242326021194458, 0.08238449692726135, -0.10188842564821243, 0.13978266716003418, -0.0649522989988327, -0.6014871001243591, 0.6427779197692871, 0.04177026450634003, 0.37911006808280945, 0.40242549777030945, -0.00011106581951025873, 0.054083142429590225, 0.24328435957431793, 0.023511501029133797, -0.4869871735572815, -0.3152090311050415, -0.6912312507629395, -0.47895586490631104, 0.16588813066482544, -0.14663618803024292, -0.0642055794596672, 0.13011734187602997, 0.07345525920391083, -0.4601002633571625, 0.04406996816396713, 0.20215734839439392, 0.2513066232204437, 0.09741199016571045, 0.1838606595993042, -0.25886401534080505, 0.030779559165239334, 0.26245734095573425, -0.1520385891199112, 0.15973664820194244, 0.18504633009433746, 0.1987578570842743, 0.34879493713378906, 0.30788472294807434, 0.14899449050426483, 0.01939472369849682, 0.2877073585987091, 0.15531407296657562, 0.28713488578796387, -0.16411536931991577, -0.007011307403445244, 0.06313686072826385, 0.6540951132774353, -0.14077413082122803, -0.7040757536888123, -0.3533010184764862, 0.14857400953769684, -0.3803819715976715, 0.1837787926197052, -0.13973644375801086, -0.12420277297496796, 0.1525917798280716, -0.22221322357654572, -0.24556736648082733, 0.029543118551373482, 0.26103925704956055, -0.29168984293937683, 0.3245619833469391, -0.13985013961791992, -0.02170693315565586, -0.20660950243473053, -0.05921002849936485, -0.024795301258563995, -0.11592105776071548, 0.11396341025829315, 0.2741013765335083, -0.2491636723279953, -0.06744708865880966, 0.11850011348724365, -0.2061501145362854, -0.03279917687177658, 0.1498192548751831, 0.01739388145506382, -0.17190511524677277, -0.0063731474801898, 0.10069736838340759, 0.35347893834114075, 0.24971067905426025, 0.19845063984394073, -0.015975221991539, 0.25751742720603943, 0.3605663478374481, 0.1864641308784485, -0.1657252311706543, -0.20603829622268677, -0.24009431898593903, 0.22699755430221558, 0.09620804339647293, 0.27032437920570374, -0.05759206414222717, -0.2305227816104889, -0.020862707868218422, 0.36524584889411926, -0.14992566406726837, -0.04393394663929939, 0.11242237687110901, -0.09773890674114227, 0.3643296957015991, -0.08032209426164627, 0.17358733713626862, -0.1319599151611328, 0.031080134212970734, -0.24839800596237183, -0.07314272224903107, -0.07619107514619827, -0.3178822696208954, 0.22059258818626404, -0.1794012039899826, 0.40296587347984314, -0.010443853214383125, -0.27018865942955017, 0.15504667162895203, -0.06781253218650818, 0.029077332466840744, -0.11389854550361633, 0.26729071140289307, -0.02183961682021618, 0.1548047959804535, 0.052253078669309616, -0.429195374250412, -0.1739235371351242, -0.05616340413689613, -0.25904446840286255, -0.18399183452129364, -0.5109384059906006, 0.2261652946472168, -0.18764998018741608, -0.3296753466129303, -0.4136557877063751, 0.17090106010437012, -0.08669707179069519, -0.2888185381889343, -0.03938920795917511, -0.14225620031356812, -0.30879825353622437, -0.16362996399402618, 0.3612365424633026, 0.42547401785850525, -0.3754040002822876, -0.22207710146903992, -0.2986678183078766, -0.1379341036081314, 0.05248292163014412, 0.03779979795217514, -0.18711000680923462, 0.12093806266784668, -0.2908604145050049, -0.1904943734407425, 0.577537477016449, -0.5136833190917969, -0.27384668588638306, 0.06129050254821777, 0.1417590081691742, 0.1254543513059616, 0.03902430087327957, -0.19629399478435516, 0.09341061115264893, -0.0833628699183464, 0.06033702939748764, 0.40866002440452576, 0.016741113737225533, -0.19155560433864594, 0.08782149106264114, -0.09139562398195267, -0.008583201095461845, 0.21262125670909882, 0.1517934501171112, 0.05690307915210724, 0.18128719925880432, 0.07667523622512817, 0.16004489362239838, 0.09151072055101395, 0.04946824163198471, 0.4845333993434906, 0.19557327032089233, 0.30658337473869324, 0.038520343601703644, -0.054906103760004044, -0.554267942905426, 0.42407411336898804, 0.3048112094402313, -0.13091230392456055, -0.15903304517269135, 0.03356754034757614, -0.2935141324996948, -0.003921127412468195, -0.26102331280708313, -0.1701720952987671, 0.09454519301652908, 0.217674121260643, 0.14620324969291687, 0.21579524874687195, -0.30230477452278137, 0.16239672899246216, 0.1202041357755661, 0.2067897468805313, -0.29113125801086426, 0.18847647309303284, -0.031173210591077805, 0.04432660713791847, 0.02203407883644104, 0.27097171545028687, 0.10228724777698517, -0.03300449624657631, -0.05594256520271301, 0.17774170637130737, 0.19012273848056793, 0.21248362958431244, 0.2953178584575653, -0.19234199821949005, 0.2499670386314392, -0.02797752059996128, 0.12962450087070465, 0.032872289419174194, 0.08249738812446594, 0.011545219458639622, -0.2562752068042755, 0.01559511013329029, 0.14737308025360107, 0.1286747306585312, 0.08729048818349838, 0.25362110137939453, 0.2938053011894226, -0.022227413952350616, 0.36962997913360596, -0.3660770356655121, 0.08226688206195831, -0.14616645872592926, 0.46109429001808167, -0.14353099465370178, -0.05179542675614357, 0.1415255218744278, 0.34314292669296265, -0.06484808772802353, 0.04883524775505066, 0.24751143157482147, -0.21299739181995392, 0.04666971042752266, 0.14239346981048584, 0.5272794365882874, 0.6025569438934326, 0.23554791510105133, 0.3136324882507324, -0.18582570552825928, 0.08779627829790115, -0.09847594797611237, 0.10367419570684433, 0.12134698778390884, 0.09155317395925522, -0.02368212305009365, 0.13333344459533691, 0.09049154072999954, -0.19854898750782013, -0.183240607380867, 0.05550466105341911, 0.13267135620117188, -0.07419407367706299, 0.06342630088329315, -0.3686581552028656, -0.03514121472835541, -0.1254175305366516, 0.1148931160569191, -0.24662044644355774, -0.446694552898407, -0.04645220935344696, -0.07945941388607025, 0.08446899056434631, 0.07107187807559967, -0.18705247342586517, 0.08092877268791199, -0.10142270475625992, -0.0842125192284584, -0.29597485065460205, -0.14883321523666382, -0.2996698021888733, 0.07205422222614288, 0.09461786597967148, -0.11815351247787476, 0.19330915808677673, -0.3682524263858795, 0.17600518465042114, -0.4141770303249359, -0.4692040681838989, -0.0031069458927959204, -0.08487185090780258, 0.3349466919898987, 0.4064878821372986, 0.026953868567943573, -0.21451187133789062, -0.1444421112537384, 0.2156670242547989, -0.2421429604291916, -0.18937285244464874, 0.09099629521369934, -0.04894805699586868, -0.004045706707984209, 0.05514845997095108, -0.2716001868247986, -0.5440986156463623, -0.21312475204467773, 0.08587870001792908, 0.2569321095943451, -0.061295025050640106, 0.1413230150938034, 0.04558262974023819, 0.1604280322790146, -0.05331691727042198, 0.3135327398777008, -0.20541638135910034, -0.4513523578643799, 0.35605475306510925, -0.2946031987667084, -0.25753524899482727, 0.28067174553871155, -0.1606239676475525, 0.4164978563785553, -0.2432584911584854, -0.5850544571876526, 0.3026736080646515, -0.1646488606929779, 0.2575054466724396, -0.060419220477342606, 0.18009547889232635, 0.3521589934825897, -0.016394570469856262, -0.06789635866880417, -0.26599952578544617, -0.33400318026542664, -0.23473700881004333, -0.01021970622241497, 0.46033772826194763, -0.09615486115217209, 0.38727086782455444, 0.039098259061574936, 0.5496217608451843, 0.1955944299697876, -0.055121295154094696, 0.1557844877243042, -0.07530438899993896, 0.34233999252319336, 0.012889810837805271, -0.32611411809921265, 0.17829665541648865, 0.0754665806889534, 0.20752207934856415, 0.0982222855091095, 0.27047204971313477, -0.21669282019138336, -0.30839741230010986, -0.08378393948078156, -0.16278916597366333, -0.13712410628795624, -0.2482924461364746, -0.18632638454437256, 0.1393478363752365, 0.10612425208091736, 0.16690300405025482, -0.4805334508419037, -0.1498393565416336, -0.08225582540035248, 0.4817947447299957, 0.28166115283966064, 0.20974086225032806, -0.17985495924949646, 0.1377663016319275, -0.6376329064369202, 0.17119695246219635, -0.09448128938674927, 0.48243430256843567, -0.026045963168144226, 0.04180844873189926, -0.037148911505937576, 0.22259078919887543, 0.4343492090702057, -0.4581444263458252, -0.09525653719902039, 0.11601339280605316, -0.17046746611595154, -0.3259860575199127, 0.00582320149987936, 0.08228904008865356, -0.12732651829719543, 0.12124643474817276, 0.31263965368270874, -0.0887567400932312, -0.20109772682189941, 0.36997076869010925, 0.12984003126621246, -0.20011737942695618, -0.21462905406951904, -0.32232460379600525, -0.26843202114105225, -0.19738678634166718, -0.3638211488723755, -0.11860684305429459, 0.06794281303882599, 0.14556477963924408, 0.0368240624666214, -0.28808391094207764, 0.10538160055875778, 0.0948701724410057, 0.15899744629859924, 0.2666437327861786, 0.24331524968147278, 0.1687091886997223, 0.40351974964141846, 0.11859909445047379, 0.1826074719429016, 0.48787903785705566, -0.108784519135952, -0.4713647961616516, 0.1359986960887909, 0.00085507205221802, 0.4082757532596588, 0.08062692731618881, -0.15432730317115784, -0.0314878486096859, 0.008495991118252277, 0.04522966966032982, -0.3203412592411041, -0.004698148928582668, 0.3944860100746155, 0.16070152819156647, -0.11583894491195679, -0.37084507942199707, 0.33124420046806335, 0.12041853368282318, 0.09846781194210052, 0.3976599872112274, 0.11055497080087662, -0.3682605028152466, 0.11731795966625214, -0.04342614859342575, 0.510953962802887, 0.051822271198034286, 0.2117452770471573, 0.17901773750782013, -0.19954591989517212, 0.46084609627723694, 0.20425741374492645, 0.06248884275555611, -0.07960495352745056, -0.05778879299759865, -0.15643125772476196, -0.14970800280570984, 0.24996140599250793, 0.14469514787197113, -0.09420857578516006, 0.36913272738456726, 0.07459869235754013, 0.25233399868011475, 0.0144617585465312, 0.2626575827598572, -0.18127688765525818, -0.1476721614599228, -0.28057461977005005, 0.17341965436935425, -0.030605332925915718, 0.45704784989356995, -0.17665144801139832, 0.01821838691830635, -0.026283662766218185, -0.06357086449861526, -0.22834062576293945, -0.1456354856491089, 0.08647027611732483, 0.36769965291023254, 0.02693958766758442, -0.6471759080886841, 0.2222999930381775, 0.36537042260169983, 0.48248693346977234, 0.01328130904585123, -0.3053210377693176, 0.38028568029403687, 0.08097770065069199, 0.14922977983951569, 0.04992637410759926, 0.09527917951345444, 0.27673327922821045, -0.08684919029474258, -0.25058990716934204, 0.11214636266231537, -0.201873317360878, -0.37739259004592896, -0.07069721072912216, -0.01718742772936821, -0.12374120950698853, -0.03890186548233032, -0.012936822138726711, -0.026111062616109848, 0.18247167766094208, -0.37377384305000305, 0.15262411534786224, 0.2982400059700012, 0.004371728282421827, -0.0554949976503849, -0.19572238624095917, -0.130329892039299, -0.13793101906776428, 0.4166834354400635, -0.09229298681020737, -0.40695565938949585, 0.5085172057151794, 0.1203412264585495, -0.17834392189979553, -0.14311474561691284, 0.17275738716125488, 0.06488072127103806, -0.18872956931591034, 0.002065069042146206, -0.19861385226249695, 0.26782095432281494, 0.08572821319103241, -0.017884207889437675, 0.10395249724388123, -0.48788580298423767, 0.06850847601890564, -0.5261346697807312, -0.3209863603115082, 0.20499803125858307, -0.21841174364089966, 0.13944825530052185, 0.029786674305796623, -0.21150386333465576, 0.04636650159955025, -0.26182758808135986, -0.3148193359375, 0.09663337469100952, -0.1712375283241272, -0.16769957542419434, -0.18002136051654816, 0.027401868253946304, 0.11571229994297028, -0.19356034696102142, 0.24238504469394684, -0.30699077248573303, 0.008360234089195728, -0.1954174041748047, -0.12883307039737701, 0.11487427353858948, -0.1486094444990158, -0.12685011327266693, 0.11865810304880142, -0.055526454001665115, -0.2969614565372467, -0.09200689941644669, 0.19062837958335876, 0.15117721259593964, -0.015638286247849464, 0.30369600653648376, 0.01220510620623827, 0.04713013395667076, 0.009030451998114586, -0.09792692959308624, 0.14983223378658295, 0.2871643304824829, 0.09778325259685516, 0.18789424002170563, 0.05805611237883568, 0.09730138629674911, 0.04982531815767288, 0.025132864713668823, -0.4133036732673645, 0.17369945347309113, 0.5069928765296936, -0.4505012631416321, 0.18444417417049408, 0.12849271297454834, 0.14113962650299072, 0.2169158160686493, -0.2787759602069855, 0.3034454584121704, 0.19044838845729828, 0.22459332644939423, -0.4017915427684784, -0.2237740010023117, 0.12786127626895905, 0.3568139970302582, 0.056692104786634445, 0.03967182710766792, 0.13266129791736603, -0.10311459004878998, -0.05634000897407532, 0.29001742601394653, 0.21053361892700195, -0.2017616629600525, 0.33085551857948303, 0.5534635186195374, 0.09512756764888763, 0.0724661722779274, 0.017759839072823524, 0.2613462805747986, -0.03229227662086487, 0.6142632365226746, -0.07032978534698486, 0.31351953744888306, -0.2665207087993622, 0.1789725124835968, 0.031190283596515656, -0.422634482383728, 0.14402015507221222, -0.11504615098237991, -0.18194074928760529, 0.01429892797023058, -0.0033614542335271835, 0.3601521849632263, -0.45058783888816833, -0.002872554585337639, -0.2931544780731201, -0.03644565865397453, -0.22290770709514618, 0.04856577143073082, -0.16775883734226227, -0.04638376459479332, -0.04063118249177933, -0.05405066907405853, -0.04211549460887909, -0.3212348222732544, 0.12755264341831207, 0.07585491240024567, -0.0539000928401947, -0.4687034785747528, 0.014499287120997906, 0.11126004904508591, 0.17540013790130615, -0.1473204642534256, 0.2805141508579254, 0.27022501826286316, -0.23246748745441437, 0.16336245834827423, 0.5229641795158386, 0.30317845940589905, -0.005832224618643522, 0.2003108561038971, -0.10275425761938095, 0.03872934728860855, -0.25821611285209656, -0.10505827516317368, 0.306708425283432, 0.026148676872253418, 0.2868359684944153, 0.14299586415290833, 0.19978971779346466, -0.020755240693688393, -0.010835055261850357, 0.140316441655159, 0.02922513335943222, -0.46822845935821533, 0.5080534815788269, -0.47751015424728394, 0.021062403917312622, -0.07228023558855057, 0.26863354444503784, -0.3505007326602936, -0.0773344561457634, 0.5598421096801758, 0.2219349443912506, 0.0016679530963301659, -0.16375304758548737, 0.07240087538957596, 0.029187794774770737, 0.17718423902988434, 0.26548174023628235, -0.08426833152770996, -0.18291409313678741, -0.2766018211841583, -0.6952945590019226, -0.0747816264629364, 0.029075637459754944, -0.3284605145454407, 0.17518433928489685, 0.051913224160671234, -0.04688253998756409, 0.05379839986562729, 0.2827131748199463, 0.17167064547538757, 0.02516057714819908, -0.006262517999857664, -0.42105114459991455, -0.5237382650375366, -0.0046752942726016045, -0.014330923557281494, -0.13159437477588654, -0.2026119828224182, 0.16788259148597717, -0.178652822971344, -0.022126561030745506, -0.1578681915998459, 0.07301394641399384, 0.15287591516971588, 0.15022538602352142, 0.2609071135520935, -0.01701384410262108, 0.26801520586013794, 0.015706749632954597, -0.09423214942216873, -0.2700977027416229, -0.34988248348236084, -0.1119915172457695, 0.3450043201446533, -0.30225756764411926, 0.465019553899765, -0.2893930673599243, -0.08774574846029282, -0.09730232506990433, 0.18853123486042023, 0.17593339085578918, -0.136310875415802, -0.31413471698760986, 0.3243114948272705, -0.1108170673251152, 0.24021543562412262, 0.5251004099845886, 0.1949777901172638, -0.10349466651678085, -0.030581284314393997, -0.16081400215625763, -0.21332421898841858, 0.3224259912967682, -0.34694725275039673, -0.197343647480011, -0.26579615473747253, -0.01633640192449093, 0.24874846637248993, -0.17274832725524902, -0.5405049324035645, 0.18578313291072845, 0.44512176513671875, 0.14556634426116943, -0.13685685396194458, 0.3280610740184784, 0.022510245442390442, 0.08004776388406754, 0.01729479245841503, 0.4166643023490906, -0.07152627408504486, -0.11977697163820267, -0.033553432673215866, 0.02914712391793728 ]
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.2749536633491516, -0.34881535172462463, -0.16288653016090393, 0.23452919721603394, 0.37639644742012024, 0.14574570953845978, 0.08866645395755768, 0.024639375507831573, 0.01588217355310917, 0.20677612721920013, -0.1255752295255661, 0.05841490253806114, 0.022705402225255966, 0.3194361925125122, 0.09838023781776428, -0.00540213892236352, 0.12964555621147156, 0.1373707801103592, -0.3452746272087097, 0.014620344154536724, -0.08077198266983032, 0.2495071291923523, -0.08530747145414352, -0.15742014348506927, -0.27537867426872253, -0.16415758430957794, -0.051401056349277496, 0.17963610589504242, -0.30125677585601807, -0.4615064561367035, 0.6025827527046204, 0.17900313436985016, 0.25572994351387024, 0.4899493455886841, -0.00010458071483299136, 0.04612276330590248, 0.377082496881485, 0.023994816467165947, -0.4418851137161255, -0.30795660614967346, -0.2751539349555969, -0.2639507055282593, 0.1835985779762268, -0.04366770386695862, -0.13475090265274048, 0.20198534429073334, -0.17788903415203094, -0.21380053460597992, 0.3010193705558777, 0.05000125989317894, 0.32660260796546936, 0.30595991015434265, 0.3633734881877899, -0.37479525804519653, 0.03416856750845909, 0.09371703863143921, 0.009400851093232632, 0.3512435853481293, 0.20632632076740265, 0.15145178139209747, 0.5028685331344604, 0.16747571527957916, -0.09557617455720901, -0.034065116196870804, 0.26598137617111206, -0.15896132588386536, -0.14394429326057434, -0.3668643832206726, 0.13855725526809692, 0.13507331907749176, 0.567377507686615, -0.22476036846637726, -0.34785282611846924, 0.00838652066886425, 0.11705745756626129, -0.59264075756073, 0.10501140356063843, 0.11030209064483643, 0.10895130038261414, 0.20879513025283813, -0.30874261260032654, -0.13901522755622864, -0.10133245587348938, 0.20982658863067627, -0.16498124599456787, -0.09335338324308395, -0.3200303316116333, -0.016647659242153168, 0.15437781810760498, -0.10730144381523132, -0.19808954000473022, 0.004462811630219221, -0.031595341861248016, 0.18192657828330994, -0.29331424832344055, 0.01862647384405136, 0.04268398880958557, 0.44547808170318604, 0.13272424042224884, 0.1679532825946808, 0.0847044587135315, -0.07972650229930878, 0.04441824555397034, 0.24424304068088531, 0.06437995284795761, 0.1364515870809555, -0.035519618541002274, 0.051716916263103485, 0.21950525045394897, 0.2635699510574341, -0.03471370041370392, -0.27017942070961, -0.13469038903713226, -0.2716608941555023, -0.04930131882429123, 0.022916359826922417, 0.3509492576122284, -0.20617151260375977, -0.2172696590423584, 0.05276832357048988, 0.23279383778572083, 0.04687270522117615, 0.136940598487854, 0.5143298506736755, -0.003946641460061073, 0.1669708639383316, -0.040505681186914444, 0.1405855417251587, -0.01133790984749794, -0.004586704075336456, -0.2370128482580185, 0.08642038702964783, -0.13661566376686096, -0.11190050840377808, 0.21775589883327484, -0.5572941303253174, 0.2780298888683319, 0.13831059634685516, 0.06463799625635147, 0.016570474952459335, -0.15411196649074554, 0.025098446756601334, -0.027469554916024208, 0.2688957750797272, 0.013119388371706009, 0.19079169631004333, 0.14121945202350616, -0.09056652337312698, -0.12070392072200775, -0.19801880419254303, -0.4211934208869934, -0.19776266813278198, -0.2723004221916199, 0.2675931453704834, -0.1505776345729828, -0.13185063004493713, -0.2584421932697296, -0.19191579520702362, -0.07686858624219894, -0.11781132966279984, -0.07706332951784134, -0.002725273137912154, -0.09632572531700134, -0.16001573204994202, 0.2762826979160309, 0.5209739208221436, -0.3317384719848633, -0.07157272100448608, -0.1817278265953064, -0.11961057037115097, 0.06289412826299667, 0.09690958261489868, -0.23972107470035553, -0.24978066980838776, -0.14684806764125824, -0.32615235447883606, -0.15674152970314026, -0.5559665560722351, -0.41817033290863037, 0.1911301165819168, -0.06772028654813766, 0.044503409415483475, 0.03099502995610237, -0.16534662246704102, -0.08567807078361511, -0.013637226074934006, -0.20486173033714294, 0.01221043523401022, -0.04992351308465004, -0.08789688348770142, -0.08929594606161118, -0.20329119265079498, 0.21633340418338776, -0.025971420109272003, -0.12030645459890366, -0.08417505025863647, 0.2792492210865021, -0.17842021584510803, 0.036098822951316833, -0.14729300141334534, -0.045506443828344345, 0.2831321358680725, 0.28106793761253357, 0.15009695291519165, -0.013132140040397644, -0.09660225361585617, -0.5498063564300537, 0.18404872715473175, 0.0591740608215332, 0.20701228082180023, -0.28009623289108276, -0.19013068079948425, -0.42126601934432983, 0.03533725067973137, -0.15008580684661865, -0.13843126595020294, 0.16220185160636902, -0.0023702646140009165, 0.2669641971588135, 0.05587366968393326, -0.1457955688238144, 0.3959622085094452, -0.019307691603899002, 0.20135150849819183, -0.2098924070596695, 0.1347908079624176, -0.14049775898456573, 0.1456402838230133, 0.18081577122211456, 0.2097274512052536, 0.16239461302757263, -0.16916382312774658, -0.046064745634794235, 0.3943285644054413, -0.1744181215763092, 0.5304549932479858, 0.02948276326060295, -0.08609076589345932, 0.3313724994659424, -0.47797465324401855, -0.02780902571976185, -0.14112254977226257, 0.2778269648551941, 0.06389208137989044, -0.041003018617630005, 0.13739125430583954, -0.134017214179039, 0.23161748051643372, 0.1290089339017868, 0.04269050061702728, 0.2338792234659195, 0.1133561059832573, -0.038037028163671494, -0.1478622704744339, 0.2096560299396515, 0.08805897831916809, 0.6122459769248962, 0.02246784046292305, -0.12588852643966675, -0.047209255397319794, 0.12047940492630005, 0.05736519396305084, -0.0698099359869957, 0.010902771726250648, -0.311082661151886, 0.2613326907157898, 0.22330991923809052, 0.2125793695449829, 0.14841392636299133, 0.2743110656738281, -0.17906750738620758, -0.0575949102640152, 0.08639171719551086, -0.11207715421915054, 0.2854097783565521, 0.07894619554281235, 0.18745937943458557, -0.04919435828924179, 0.13012835383415222, 0.030446341261267662, -0.25945845246315, -0.12717606127262115, -0.032300982624292374, 0.14682458341121674, -0.2639589309692383, 0.09030244499444962, -0.42937543988227844, -0.18145309388637543, -0.01667737402021885, -0.13300587236881256, -0.0983501672744751, -0.16504572331905365, -0.31258225440979004, 0.12234283983707428, 0.038300927728414536, 0.019328391179442406, -0.13766682147979736, 0.07251156121492386, -0.10195526480674744, -0.1644342988729477, -0.15683427453041077, -0.31019067764282227, 0.025382740423083305, 0.1606174111366272, 0.33455392718315125, -0.0981040969491005, 0.45257893204689026, -0.1812593936920166, 0.15741421282291412, 0.007995505817234516, -0.4218343198299408, 0.1091919019818306, -0.20608071982860565, 0.2028571218252182, 0.22152845561504364, 0.19299747049808502, -0.2877093553543091, -0.156740203499794, 0.303570032119751, -0.05037577822804451, -0.08714421838521957, 0.049205243587493896, -0.16168212890625, -0.33358147740364075, -0.029884539544582367, -0.29882216453552246, -0.5281749367713928, -0.325205534696579, 0.12626227736473083, 0.2590159475803375, -0.041726257652044296, 0.4280335605144501, 0.19628499448299408, 0.09064286202192307, 0.017983516678214073, 0.12301800400018692, -0.07733303308486938, -0.6638810634613037, 0.42075809836387634, -0.35923805832862854, -0.40820592641830444, 0.13539814949035645, 0.006699455436319113, 0.4727197289466858, -0.06716393679380417, -0.2308909147977829, 0.057505104690790176, -0.23749123513698578, 0.08382457494735718, 0.2534957826137543, 0.2734246253967285, 0.17507348954677582, -0.07350460439920425, -0.11038122326135635, -0.08989598602056503, -0.16558952629566193, -0.254547655582428, -0.16838020086288452, 0.183441624045372, -0.11091074347496033, 0.2447139024734497, -0.1323469579219818, 0.6540395617485046, 0.20993956923484802, -0.16498520970344543, 0.3992762267589569, -0.1709168702363968, 0.5142345428466797, -0.03518674150109291, -0.4970189034938812, -0.014623409137129784, -0.022113582119345665, 0.04871438071131706, 0.07950019836425781, 0.06450284272432327, -0.0016465350054204464, -0.46431830525398254, -0.2883177399635315, -0.34142929315567017, -0.15916897356510162, -0.3202176094055176, 0.19141708314418793, 0.2986223101615906, 0.08577296882867813, -0.13078439235687256, -0.018288645893335342, -0.2483210265636444, 0.057874154299497604, 0.32211238145828247, 0.010576416738331318, 0.07529785484075546, -0.41504859924316406, -0.3769325911998749, -0.5046011805534363, 0.35502493381500244, 0.027156861498951912, 0.07875034213066101, 0.0839344784617424, 0.021286653354763985, -0.029900142922997475, -0.07078447192907333, 0.299247145652771, 0.028608551248908043, -0.022257281467318535, 0.10229025781154633, -0.21247178316116333, -0.2089947611093521, 0.06117013096809387, -0.022946668788790703, 0.21341300010681152, -0.08911381661891937, -0.17130140960216522, -0.28487148880958557, -0.07105407863855362, 0.12262676656246185, 0.2774394154548645, -0.1200057789683342, -0.04625687003135681, -0.2615569829940796, -0.19374871253967285, -0.43826237320899963, -0.18526193499565125, -0.08855332434177399, 0.27867597341537476, -0.02428358420729637, -0.10725431889295578, -0.12753696739673615, -0.138521209359169, 0.3748285472393036, 0.32184934616088867, 0.36819708347320557, 0.14346937835216522, 0.1886385679244995, 0.10205075889825821, 0.13520966470241547, 0.42932307720184326, 0.7669637203216553, 0.02460269257426262, -0.27263763546943665, -0.043187256902456284, 0.004807295743376017, 0.2650558352470398, 0.04731089994311333, -0.1300264596939087, 0.06228448078036308, 0.2921977937221527, 0.1550607532262802, -0.31834179162979126, 0.03207601234316826, 0.17249542474746704, 0.12579578161239624, -0.38588571548461914, -0.16404961049556732, 0.4455743432044983, 0.08512195199728012, 0.140863835811615, 0.14787514507770538, 0.36992478370666504, -0.08309952914714813, -0.04917912930250168, -0.09024319797754288, 0.748786985874176, 0.0010088997660204768, -0.09924163669347763, 0.10676092654466629, -0.08728785812854767, 0.6782962083816528, 0.04004491865634918, -0.09089592099189758, -0.14550770819187164, 0.001408727839589119, 0.0021554301492869854, -0.1016373261809349, 0.2758304178714752, -0.059834498912096024, -0.2138643115758896, 0.29480448365211487, -0.20639152824878693, 0.31951048970222473, -0.10487312078475952, 0.2965540289878845, -0.19360975921154022, -0.16993162035942078, -0.07404987514019012, 0.2467353343963623, 0.04523255676031113, 0.4164867103099823, -0.20113155245780945, -0.01693565957248211, -0.1460292488336563, -0.33356034755706787, -0.09455764293670654, -0.016259673982858658, -0.4031122624874115, 0.14287899434566498, -0.05053483694791794, -0.4562126100063324, 0.35750001668930054, 0.2802865505218506, 0.2976776659488678, 0.19055785238742828, -0.36240440607070923, 0.16982725262641907, -0.05409340187907219, -0.2864757776260376, -0.13998544216156006, 0.2435581088066101, 0.2589794099330902, -0.15275119245052338, -0.1368124783039093, 0.2127375602722168, 0.06719394028186798, -0.0705488845705986, 0.2041623443365097, 0.07399100810289383, 0.026829654350876808, -0.17251138389110565, -0.21765020489692688, -0.11182094365358353, 0.036376677453517914, -0.18637649714946747, 0.19920696318149567, 0.060096997767686844, -0.04209614545106888, 0.021378008648753166, 0.26368072628974915, -0.12007659673690796, -0.25855129957199097, 0.3371782898902893, -0.0661526545882225, -0.18461762368679047, 0.3840765357017517, 0.37155917286872864, -0.22792808711528778, -0.23850364983081818, -0.11101214587688446, 0.11729216575622559, -0.4654300808906555, 0.11944899708032608, 0.315657377243042, 0.27696454524993896, -0.017440253868699074, 0.27756425738334656, 0.18053267896175385, -0.1019517332315445, 0.1772882640361786, -0.38012614846229553, -0.2860296666622162, 0.15856076776981354, -0.05672682076692581, 0.14501497149467468, 0.20073898136615753, 0.3208964467048645, 0.03065100871026516, 0.019682765007019043, -0.413036584854126, 0.08223028481006622, -0.1529962420463562, -0.03248686343431473, 0.6231768727302551, 0.1154286190867424, 0.19440993666648865, -0.25062480568885803, 0.2638087272644043, 0.1378495693206787, -0.15594518184661865, -0.33378955721855164, -0.1039377972483635, 0.09193004667758942, -0.04520916938781738, -0.22067531943321228, 0.18810638785362244, 0.08475276827812195, 0.06138984113931656, -0.04522762820124626, 0.08395116031169891, 0.10128646343946457, 0.10094264894723892, 0.06817715615034103, -0.10823601484298706, -0.010252955369651318, -0.26002877950668335, 0.1204632967710495, 0.1696050465106964, 0.22600452601909637, 0.09418656677007675, 0.04071686416864395, 0.09640052169561386, -0.08713475614786148, 0.13427045941352844, -0.1065201684832573, -0.10594339668750763, -0.03760300204157829, 0.4198015630245209, -0.2765182852745056, 0.09694182872772217, 0.34514379501342773, 0.2989561855792999, 0.23487403988838196, -0.15805093944072723, 0.28231513500213623, 0.22730018198490143, 0.2511667013168335, -0.30748993158340454, -0.009671790525317192, -0.09890056401491165, 0.1118575856089592, 0.08667175471782684, 0.11175096780061722, 0.3189949691295624, -0.11437252908945084, 0.11512120068073273, 0.1248406395316124, 0.4290117919445038, -0.09577669948339462, 0.48385345935821533, 0.34324827790260315, 0.20178087055683136, -0.008938034065067768, 0.058641184121370316, 0.28867650032043457, 0.015802323818206787, 0.21574875712394714, -0.4133888781070709, 0.022605719044804573, -0.14413075149059296, 0.15810024738311768, 0.15712487697601318, -0.2874077558517456, 0.2587369680404663, 0.18854288756847382, -0.07335215061903, -0.032290540635585785, -0.04363734647631645, 0.7672808170318604, -0.06327695399522781, 0.03354433551430702, -0.21818359196186066, 0.386080265045166, -0.08505117148160934, -0.051355063915252686, -0.17745761573314667, -0.23120969533920288, -0.10510530322790146, 0.0002877604274544865, -0.06912005692720413, -0.3398076891899109, 0.24126063287258148, 0.1286628097295761, -0.13830362260341644, -0.5828995108604431, 0.06258055567741394, 0.240213081240654, 0.1811666488647461, -0.14734937250614166, 0.30239635705947876, 0.3403143882751465, -0.213293194770813, 0.07839616388082504, 0.35818490386009216, 0.6212483048439026, 0.18759872019290924, 0.2288159728050232, 0.18304143846035004, 0.07333669811487198, -0.19540882110595703, 0.09723859280347824, 0.00004636176527128555, -0.14442665874958038, 0.21642635762691498, 0.09269195050001144, 0.27451375126838684, -0.23339441418647766, -0.30433157086372375, -0.00822353083640337, 0.11767833679914474, -0.36613181233406067, -0.055801160633563995, -0.25189149379730225, 0.05038832873106003, -0.2957031726837158, 0.129691943526268, -0.4416196048259735, 0.20580781996250153, 0.3274717330932617, -0.06151030585169792, 0.030269306153059006, -0.2500503361225128, 0.11464787274599075, -0.07765071094036102, 0.5049268007278442, 0.22323164343833923, 0.23623138666152954, -0.2586011290550232, -0.3236325681209564, -0.6043615341186523, -0.017658423632383347, -0.00009155455336440355, -0.03274775296449661, -0.1260683387517929, -0.03066650964319706, -0.05290766805410385, 0.18294766545295715, 0.25578927993774414, -0.12845632433891296, 0.0552978552877903, -0.14211826026439667, -0.09762002527713776, -0.02245546504855156, -0.2848817706108093, -0.12816627323627472, -0.0005144613096490502, -0.10043837130069733, 0.031089017167687416, -0.20983995497226715, 0.055607251822948456, -0.3399515748023987, 0.20748043060302734, -0.2634785771369934, -0.16940724849700928, 0.32231757044792175, 0.0923556312918663, 0.5297512412071228, -0.11282788962125778, 0.030364107340574265, -0.10911796241998672, -0.28375035524368286, -0.07537885010242462, 0.35847005248069763, 0.1657082438468933, 0.2871484160423279, -0.24160218238830566, -0.4416563808917999, -0.23811569809913635, 0.16242149472236633, 0.11155781894922256, 0.00392340449616313, -0.1397874355316162, -0.029072659090161324, -0.12458067387342453, 0.01175521407276392, 0.24535255134105682, 0.17383863031864166, -0.05607067421078682, 0.04467349871993065, -0.12643934786319733, -0.548205554485321, 0.3843713700771332, -0.2695598006248474, -0.04712218791246414, 0.05645504593849182, 0.1962689459323883, 0.34595030546188354, -0.22285139560699463, -0.38353365659713745, 0.341344952583313, 0.23275621235370636, 0.10568494349718094, -0.10489639639854431, 0.417034775018692, -0.050641316920518875, -0.10364540666341782, -0.018662862479686737, 0.39694470167160034, 0.15092039108276367, -0.23287996649742126, -0.05518514662981033, -0.16233178973197937 ]
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.32521528005599976, 0.213066965341568, -0.15067467093467712, 0.1371283084154129, 0.0009425294119864702, 0.25786712765693665, 0.14345280826091766, 0.24660328030586243, -0.030717501416802406, -0.06392906606197357, -0.15774545073509216, 0.14879484474658966, -0.5934292674064636, 0.18414360284805298, 0.20488736033439636, -0.022366002202033997, -0.007428253535181284, -0.12296351790428162, -0.04017737880349159, -0.07481202483177185, -0.016271336004137993, -0.09867513924837112, 0.06882472336292267, -0.38403668999671936, -0.21915367245674133, -0.07096430659294128, -0.1250043362379074, 0.014950282871723175, -0.3641268014907837, -0.2253902703523636, -0.23001088201999664, 0.09852652996778488, 0.39343276619911194, 0.554938018321991, -0.00010215368092758581, -0.12828010320663452, 0.14103852212429047, -0.13684998452663422, -0.3820018470287323, -0.20806650817394257, -0.07184142619371414, -0.3678528964519501, -0.3328627645969391, -0.03821973130106926, -0.1916806995868683, -0.17293189465999603, 0.11502590030431747, -0.35648787021636963, 0.0243455208837986, 0.3020796477794647, 0.24856992065906525, 0.13463030755519867, 0.006665624212473631, -0.11583887040615082, 0.3296722173690796, 0.07672377675771713, -0.19085393846035004, 0.30991581082344055, 0.35544463992118835, 0.13831909000873566, -0.08859182149171829, 0.444461852312088, 0.4074595868587494, -0.23305711150169373, 0.24455887079238892, 0.0294408667832613, -0.028867356479167938, -0.109051913022995, -0.23755274713039398, 0.3558652997016907, 0.277790367603302, -0.14943718910217285, -0.5054072737693787, -0.4087858200073242, -0.010018832981586456, -0.3937539756298065, -0.3037469983100891, 0.3672266900539398, 0.08213701844215393, 0.33149367570877075, 0.05219748988747597, -0.2601240873336792, -0.0611017569899559, 0.17735262215137482, 0.04851917549967766, 0.3551808297634125, -0.022327406331896782, -0.14455623924732208, 0.13929270207881927, 0.04024579003453255, -0.13185541331768036, 0.013809802010655403, -0.010685013607144356, -0.022793885320425034, -0.29309287667274475, -0.2389979213476181, 0.40979495644569397, 0.3443647623062134, 0.393076092004776, -0.22818520665168762, -0.06143052503466606, 0.006023705005645752, -0.007242551539093256, -0.050268661230802536, 0.4607633054256439, 0.0007303508464246988, -0.25953784584999084, -0.25746870040893555, 0.24387092888355255, 0.07297585904598236, 0.08239851146936417, 0.10979092866182327, -0.06641275435686111, -0.04151049628853798, -0.14914439618587494, -0.19014595448970795, -0.08083093166351318, 0.1290602684020996, 0.005519501399248838, -0.00885777361690998, 0.21125362813472748, -0.08982778340578079, 0.0002600074221845716, 0.00708136847242713, -0.027874885126948357, 0.25657105445861816, 0.040330566465854645, 0.2176802009344101, 0.1866188645362854, -0.583226203918457, -0.20478184521198273, 0.17698588967323303, -0.45849066972732544, -0.07573070377111435, 0.09861359745264053, -0.12888504564762115, 0.05499269813299179, -0.11994359642267227, 0.18104855716228485, 0.27512267231941223, 0.15212133526802063, 0.032103873789310455, 0.08747131377458572, -0.05814947187900543, -0.09814023226499557, -0.2579050362110138, 0.07638203352689743, 0.07062181830406189, -0.2920558750629425, 0.08013978600502014, -0.05356147140264511, -0.27156326174736023, -0.37574338912963867, 0.2224724441766739, -0.14840681850910187, 0.07171005755662918, -0.41745197772979736, 0.7332289814949036, -0.06639789789915085, 0.2488410621881485, 0.06031857058405876, -0.0827515497803688, 0.06722478568553925, 0.03452349454164505, 0.09809138625860214, 0.19669455289840698, -0.5776963233947754, -0.07731059193611145, -0.6373909115791321, 0.09141448885202408, -0.05826018750667572, 0.24476854503154755, -0.1526016741991043, 0.16313622891902924, -0.052485521882772446, 0.029916362836956978, 0.607837438583374, 0.15489238500595093, -0.18231506645679474, 0.15062275528907776, -0.058828216046094894, -0.016376646235585213, -0.010490966960787773, 0.17642486095428467, 0.04897431656718254, -0.06549905985593796, 0.2746489942073822, 0.37995445728302, -0.1648455560207367, -0.13374584913253784, -0.3065444231033325, -0.40345409512519836, 0.049499813467264175, 0.47629666328430176, 0.11664906144142151, -0.24228528141975403, 0.19842122495174408, 0.0635688453912735, 0.1890212893486023, 0.06247970089316368, 0.09298545867204666, -0.1868363469839096, 0.23899222910404205, 0.13905838131904602, -0.04020164906978607, -0.25883743166923523, -0.3763398826122284, 0.05640465393662453, 0.032551493495702744, 0.3952605128288269, 0.03914094343781471, -0.19044053554534912, 0.13322760164737701, 0.059421055018901825, 0.1557433307170868, -0.04270290210843086, 0.2095920443534851, 0.0314800888299942, -0.02330336533486843, -0.17124460637569427, -0.2686149477958679, -0.12574179470539093, -0.15359839797019958, -0.1023859977722168, -0.27967676520347595, -0.02851014770567417, -0.18506616353988647, -0.15355315804481506, 0.018731454387307167, 0.30444979667663574, -0.51616370677948, -0.1331959217786789, 0.20421814918518066, 0.08543793857097626, -0.17728984355926514, -0.20841769874095917, 0.23707222938537598, 0.6692658066749573, 0.20307272672653198, -0.11664725095033646, 0.20044457912445068, -0.14603807032108307, -0.08393807709217072, 0.026756981387734413, -0.1868273764848709, 0.39557918906211853, 0.3413766622543335, -0.03922908380627632, 0.09152473509311676, -0.10569389164447784, 0.10678710043430328, 0.0587482824921608, -0.006287434604018927, -0.24386776983737946, 0.2649516761302948, 0.05639825388789177, 0.23671101033687592, -0.04219166561961174, -0.36112180352211, 0.1217302531003952, 0.36095619201660156, 0.1336945742368698, 0.22786599397659302, 0.26811492443084717, -0.16852276027202606, -0.28207069635391235, 0.0066011641174554825, -0.27364280819892883, 0.2471926212310791, 0.4055267572402954, 0.23804302513599396, 0.11537278443574905, 0.20099923014640808, -0.13591881096363068, -0.017849033698439598, 0.034939512610435486, -0.08030474931001663, 0.19212038815021515, 0.40587684512138367, 0.09439962357282639, -0.261409729719162, -0.2708657681941986, -0.1733194887638092, 0.1677822768688202, 0.1304052472114563, -0.06078358739614487, 0.1282455176115036, -0.052466344088315964, 0.09566663950681686, 0.07547741383314133, -0.18079140782356262, -0.1974584460258484, 0.17266106605529785, -0.17685574293136597, -0.24447664618492126, 0.0030573944095522165, -0.1337910145521164, 0.5722123384475708, -0.07889370620250702, 0.18172122538089752, 0.03838251531124115, -0.2997009754180908, -0.09450845420360565, 0.2508624792098999, 0.3035568594932556, -0.28107044100761414, 0.3139437735080719, 0.05784119665622711, 0.16432973742485046, -0.04035545885562897, -0.5640272498130798, 0.18668599426746368, -0.08872552216053009, 0.38291144371032715, 0.251628577709198, -0.022000351920723915, 0.23246870934963226, -0.06405819207429886, -0.1304808259010315, -0.16181662678718567, -0.02813686616718769, -0.2053382396697998, 0.0447269007563591, 0.03563716262578964, -0.20122335851192474, -0.32368844747543335, -0.39103934168815613, -0.48391562700271606, 0.2440134584903717, 0.09155398607254028, -0.032990578562021255, -0.049641259014606476, 0.15287552773952484, 0.36345332860946655, -0.01625862717628479, 0.06747101992368698, -0.06387909501791, -0.3082839548587799, 0.31433457136154175, -0.03523297607898712, -0.215719074010849, -0.10528609156608582, -0.2631339132785797, -0.08490833640098572, 0.07102010399103165, -0.5801854729652405, 0.1611858308315277, -0.06928408145904541, 0.19047169387340546, 0.042588550597429276, 0.04206766560673714, 0.14554940164089203, -0.01733306795358658, -0.20728589594364166, -0.0365569069981575, -0.008287989534437656, 0.0741128996014595, 0.37883493304252625, 0.35029807686805725, -0.2368447333574295, 0.29645416140556335, 0.22260501980781555, 0.4703177809715271, -0.08832861483097076, -0.3011775016784668, 0.34102559089660645, 0.3796490430831909, 0.3692943751811981, -0.24382275342941284, -0.05456315353512764, 0.2698507010936737, 0.08953369408845901, -0.02645730972290039, 0.6250424981117249, 0.22731411457061768, -0.3611326515674591, 0.03282446786761284, 0.08349650353193283, 0.09007205814123154, -0.0908593013882637, 0.3243919312953949, -0.19372323155403137, -0.0023734013084322214, -0.08430369198322296, -0.592436671257019, -0.17678765952587128, -0.18972641229629517, 0.000686168612446636, 0.28177982568740845, 0.04615681618452072, 0.03394182026386261, -0.17562511563301086, 0.3312981128692627, -0.28710490465164185, 0.12083398550748825, -0.1268339604139328, -0.056357190012931824, -0.11318729817867279, -0.28721344470977783, -0.1494741588830948, 0.05432315915822983, 0.3943411707878113, -0.3943563997745514, -0.27681151032447815, -0.008240732364356518, 0.37082549929618835, -0.08014264702796936, -0.005325914826244116, -0.40478911995887756, -0.2548777759075165, 0.581070601940155, 0.5500800609588623, -0.2733108103275299, 0.10175816714763641, 0.18553601205348969, 0.27762430906295776, 0.10240694135427475, -0.23079971969127655, -0.15367518365383148, -0.16610795259475708, -0.09278155118227005, 0.1778390109539032, 0.27471745014190674, -0.006179546471685171, 0.12943781912326813, 0.11720425635576248, 0.06339237838983536, 0.06692904233932495, 0.25828418135643005, -0.005849909037351608, -0.06092331185936928, 0.2784724235534668, -0.09165114909410477, -0.17983493208885193, 0.40464913845062256, 0.19127129018306732, 0.3315366804599762, -0.18932616710662842, -0.24007028341293335, 0.13540911674499512, -0.41788268089294434, 0.31778958439826965, 0.183899387717247, 0.15543726086616516, 0.14185257256031036, -0.21268105506896973, 0.16536833345890045, -0.08789258450269699, 0.477979451417923, -0.041073836386203766, 0.048149991780519485, -0.5286176800727844, -0.34877273440361023, 0.3135923147201538, -0.011172829195857048, 0.09767715632915497, 0.2518344223499298, -0.06798598915338516, -0.42889609932899475, 0.3860783576965332, -0.03234075754880905, 0.9558489322662354, -0.02250325120985508, 0.35158780217170715, -0.21279914677143097, 0.1410273015499115, 0.418165385723114, -0.3968193233013153, 0.00735142407938838, 0.09296762943267822, -0.16121912002563477, 0.06938578933477402, -0.019300231710076332, 0.015580725856125355, 0.5426026582717896, -0.1792248636484146, 0.01645062118768692, -0.15534909069538116, -0.17002834379673004, 0.033966898918151855, 0.5154813528060913, 0.02220061421394348, -0.19577531516551971, -0.271030068397522, 0.27471017837524414, 0.02731417305767536, -0.18452394008636475, -0.228983074426651, -0.23214684426784515, -0.09699834138154984, 0.13437879085540771, -0.44394394755363464, -0.02583068236708641, -0.0906958281993866, 0.02081308141350746, 0.014224501326680183, -0.2122340351343155, 0.4201298654079437, -0.04187693074345589, 0.2150021344423294, 0.2508341372013092, -0.12588229775428772, -0.01598939672112465, -0.08294394612312317, -0.02482324279844761, 0.34197553992271423, -0.11276249587535858, 0.42515653371810913, -0.03431842476129532, -0.0647154375910759, 0.09746938943862915, 0.13022354245185852, -0.44470611214637756, -0.17789819836616516, -0.007265295367687941, 0.124974325299263, 0.09542665630578995, -0.25441956520080566, 0.3434923589229584, -0.16422104835510254, -0.1362990438938141, 0.21788044273853302, 0.17434050142765045, -0.08842843770980835, 0.030574152246117592, 0.08959853649139404, -0.17607645690441132, -0.2223832905292511, -0.012373978272080421, 0.047652553766965866, -0.015119045041501522, 0.027480067685246468, 0.4605935215950012, -0.1982065588235855, -0.29670459032058716, -0.1264919936656952, 0.26888665556907654, -0.178201362490654, 0.1364579200744629, 0.1329890936613083, -0.1882607340812683, -0.07756077498197556, -0.100669264793396, 0.4525683522224426, -0.023842396214604378, 0.02723056636750698, -0.07443566620349884, -0.17558033764362335, 0.11217175424098969, -0.06709851324558258, 0.20540998876094818, -0.27021557092666626, 0.030827367678284645, 0.04498264193534851, 0.1887654811143875, -0.45688003301620483, -0.03585441783070564, -0.09512028843164444, 0.17194698750972748, -0.042165398597717285, -0.08990998566150665, 0.04826978221535683, -0.03133657947182655, 0.12010305374860764, -0.15864694118499756, -0.257341206073761, -0.321176141500473, -0.101423479616642, 0.05505593493580818, 0.1992427259683609, -0.005339473020285368, 0.2748623192310333, -0.026385663077235222, -0.2926288843154907, -0.10353326797485352, 0.14934076368808746, -0.20907168090343475, 0.074857696890831, -0.001989746233448386, 0.35945674777030945, -0.009803236462175846, 0.26568904519081116, 0.033756326884031296, 0.17912225425243378, 0.04400147125124931, 0.28431034088134766, 0.10478880256414413, 0.35120198130607605, -0.06110193580389023, -0.11609195172786713, 0.32663893699645996, 0.013886602595448494, 0.36967945098876953, 0.09596844762563705, 0.10608374327421188, -0.004659298341721296, 0.40148380398750305, 0.24807105958461761, 0.00039111755904741585, -0.12120291590690613, 0.012756604701280594, 0.18622076511383057, 0.31459474563598633, -0.49054914712905884, 0.020182058215141296, 0.0709843635559082, 0.08969323337078094, 0.25649556517601013, 0.10131153464317322, 0.2407880574464798, 0.39833036065101624, -0.2662469744682312, 0.053579725325107574, 0.12836860120296478, -0.08327873796224594, 0.27893418073654175, 0.04398705065250397, 0.1234261691570282, 0.1276894509792328, 0.24979497492313385, 0.14476819336414337, 0.17707686126232147, -0.10792773216962814, -0.11219324916601181, 0.22333794832229614, 0.19686086475849152, -0.1436496078968048, 0.1544339954853058, -0.19144001603126526, 0.022636041045188904, 0.4870801568031311, 0.2763769030570984, 0.27096810936927795, -0.07518502324819565, 0.10601142048835754, 0.12777628004550934, -0.01810619980096817, 0.009732181206345558, -0.043401192873716354, 0.005022565368562937, -0.09978069365024567, 0.2557617127895355, -0.19359789788722992, -0.25489720702171326, 0.011568374000489712, -0.11406813561916351, -0.23911894857883453, -0.14529798924922943, 0.11146556586027145, 0.05334434658288956, -0.3808150887489319, 0.13279424607753754, 0.10216943919658661, 0.07701870799064636, -0.20443280041217804, 0.17312538623809814, 0.1261541247367859, -0.026119988411664963, 0.12898774445056915, 0.1516890972852707, -0.027304470539093018, 0.1524229645729065, -0.07883515954017639, 0.19626064598560333, -0.06500690430402756, -0.01211144682019949, -0.4677237868309021, 0.17356204986572266, 0.17557822167873383, 0.15633930265903473, 0.18745669722557068, 0.19843466579914093, -0.30665045976638794, 0.20089635252952576, -0.027094444260001183, -0.08888283371925354, -0.2535090446472168, 0.37094107270240784, 0.09927044808864594, -0.23117218911647797, -0.27804315090179443, 0.20986174046993256, -0.5753173828125, -0.14090536534786224, 0.7585264444351196, -0.3803826868534088, -0.012593081220984459, -0.2522755563259125, 0.1364707052707672, -0.15144142508506775, 0.44020983576774597, 0.6380355954170227, 0.14365221560001373, -0.04111121967434883, -0.07668350636959076, -0.42883527278900146, 0.03369612991809845, -0.11148511618375778, 0.34417322278022766, -0.17715618014335632, 0.4110722839832306, 0.2709232568740845, 0.23398296535015106, -0.20498420298099518, 0.18252027034759521, -0.43948128819465637, -0.10537508875131607, -0.4030182659626007, 0.0419507659971714, -0.11184537410736084, 0.4399302005767822, 0.07651213556528091, -0.01515189465135336, -0.036236051470041275, 0.02280362695455551, 0.14200857281684875, -0.46130698919296265, -0.007892604917287827, 0.10736165195703506, 0.2951258420944214, 0.27236995100975037, -0.07050620019435883, 0.1057792454957962, -0.10233903676271439, -0.2758899927139282, -0.5270482301712036, -0.1035614013671875, -0.22248037159442902, 0.06604599207639694, -0.01182499062269926, 0.22482351958751678, -0.3254528045654297, -0.08188675343990326, 0.03265747055411339, 0.038535259664058685, -0.0797874704003334, -0.19765888154506683, -0.23067840933799744, -0.07252685725688934, -0.0015487149357795715, -0.015014116652309895, -0.021138284355401993, 0.19853100180625916, -0.005917143076658249, -0.25636497139930725, -0.026242902502417564, -0.11971911042928696, 0.08359642326831818, -0.1887109875679016, -0.32577306032180786, -0.11024006456136703, -0.01602463237941265, 0.07088112086057663, 0.006761645898222923, -0.5428432822227478, 0.07606703788042068, 0.3034561574459076, 0.10149626433849335, -0.0819888487458229, 0.4366684854030609, 0.10280660539865494, -0.022638680413365364, -0.17135129868984222, 0.09762465208768845, -0.13317759335041046, -0.1530856341123581, -0.2508784234523773, -0.27925974130630493 ]
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.3054967224597931, 0.06998512148857117, -0.16041813790798187, 0.16122488677501678, 0.058334846049547195, 0.20564672350883484, 0.16649340093135834, 0.15289705991744995, 0.09870187193155289, 0.03799203410744667, -0.20994801819324493, -0.047400474548339844, -0.542698085308075, 0.11756394803524017, 0.1921425461769104, 0.01960715465247631, 0.016560297459363937, -0.12109455466270447, -0.12766587734222412, -0.0019259362015873194, 0.09349044412374496, 0.07069376111030579, 0.18677496910095215, -0.4521128535270691, -0.16692626476287842, -0.05795116350054741, -0.25153979659080505, 0.03879567235708237, -0.07551977783441544, -0.10173588991165161, -0.2362283617258072, 0.08685873448848724, 0.30878493189811707, 0.6071373820304871, -0.00010043329530162737, -0.06959792226552963, 0.008737345226109028, -0.22916793823242188, -0.328132301568985, -0.09249771386384964, 0.022334616631269455, -0.244897723197937, -0.32466843724250793, -0.08215470612049103, -0.25992968678474426, -0.14949801564216614, 0.0683986023068428, -0.4652230143547058, 0.07386784255504608, 0.293270081281662, 0.28457289934158325, 0.07137376070022583, -0.07947500050067902, 0.015526733361184597, 0.3248162567615509, -0.026318971067667007, -0.1482401192188263, 0.33437976241111755, 0.3295794725418091, 0.15831290185451508, -0.14249001443386078, 0.42263683676719666, 0.2748498022556305, 0.00032791803823783994, 0.2505572438240051, 0.08736448734998703, -0.05787343531847, -0.057058267295360565, -0.030590713024139404, 0.2280016988515854, 0.3887750506401062, -0.21949966251850128, -0.4567514657974243, -0.37183597683906555, -0.1433025449514389, -0.4234708249568939, -0.08505409210920334, 0.26803576946258545, 0.028477303683757782, 0.3589915335178375, -0.04449918493628502, -0.38197845220565796, -0.09595360606908798, 0.07995674014091492, -0.07774021476507187, 0.3094985783100128, -0.04801873117685318, -0.20496557652950287, 0.07198219746351242, -0.08213288336992264, -0.10877985507249832, 0.060807932168245316, -0.012986468151211739, 0.04723971337080002, -0.2522505521774292, -0.25639164447784424, 0.278788685798645, 0.23318253457546234, 0.3749370872974396, -0.10886750370264053, 0.08210786432027817, 0.08431635797023773, 0.035540975630283356, -0.026323718950152397, 0.3399214446544647, 0.20414017140865326, -0.3900618851184845, -0.25373485684394836, 0.274360328912735, -0.08919209986925125, -0.024911561980843544, 0.03817145898938179, -0.010435563512146473, -0.04466453939676285, 0.052415631711483, -0.17998304963111877, -0.2425098568201065, 0.02637241967022419, 0.10798919945955276, 0.000051844479457940906, 0.3417649567127228, -0.06099946051836014, 0.011981695890426636, 0.11200955510139465, 0.02191086672246456, 0.2458590865135193, 0.1014774739742279, 0.07015888392925262, 0.10304927080869675, -0.3814459443092346, -0.20738576352596283, 0.14036265015602112, -0.35218605399131775, 0.05425356328487396, 0.14130163192749023, -0.020738570019602776, 0.05820956453680992, -0.3302531838417053, 0.16057981550693512, 0.3598945736885071, 0.23650942742824554, -0.09152495115995407, 0.072378009557724, 0.028441177681088448, -0.05617887154221535, -0.2589198350906372, -0.018610889092087746, 0.11207970231771469, -0.34314262866973877, 0.06739499419927597, -0.031143944710493088, -0.3437916040420532, -0.3613591194152832, 0.22791120409965515, -0.18458017706871033, -0.04681035131216049, -0.37561172246932983, 0.611361026763916, 0.17054544389247894, 0.1302201747894287, -0.03160476312041283, 0.06821533292531967, -0.07857117056846619, -0.023968707770109177, 0.012664631009101868, 0.26187852025032043, -0.5343835949897766, -0.0026726198848336935, -0.48952385783195496, 0.12900957465171814, -0.24068616330623627, 0.3616556227207184, -0.08439995348453522, 0.023789972066879272, -0.12998926639556885, 0.07614938914775848, 0.3966333270072937, -0.015775080770254135, -0.2992018461227417, 0.2768249213695526, -0.1049596518278122, -0.14169199764728546, 0.07218363136053085, 0.18463335931301117, 0.11404000967741013, -0.032472360879182816, 0.2382095605134964, 0.452815979719162, -0.06047140434384346, -0.001630854676477611, -0.40455740690231323, -0.505178689956665, 0.04011496156454086, 0.4231112003326416, 0.12658436596393585, -0.18929417431354523, 0.2376396805047989, 0.08954261243343353, 0.05454077944159508, -0.04216568544507027, 0.1965838372707367, 0.021557407453656197, 0.2885720729827881, 0.14294247329235077, -0.029141409322619438, -0.3155580163002014, -0.587836742401123, 0.13033108413219452, -0.07994211465120316, 0.24857260286808014, -0.017827024683356285, -0.21652592718601227, 0.19824333488941193, -0.11490413546562195, 0.20457962155342102, 0.03191763535141945, 0.2385394126176834, 0.06549583375453949, 0.18399064242839813, -0.15924665331840515, -0.19788382947444916, -0.09963136166334152, 0.009645968675613403, -0.22456969320774078, -0.13091842830181122, 0.06937403231859207, -0.18223726749420166, -0.18544058501720428, -0.007662015035748482, 0.03890366852283478, -0.5003736019134521, -0.20845113694667816, 0.08602867275476456, 0.24115855991840363, -0.267214298248291, 0.01744990423321724, 0.22145704925060272, 0.6760435104370117, 0.2526562511920929, -0.03421149402856827, 0.2082219272851944, -0.030279379338026047, -0.0804123729467392, 0.03269144147634506, -0.26836898922920227, 0.268763929605484, 0.28353914618492126, -0.10742486268281937, 0.14301076531410217, -0.15960626304149628, 0.2392546534538269, 0.05504480376839638, 0.04419085010886192, -0.3280186951160431, 0.2263123095035553, 0.02501816116273403, 0.28876978158950806, 0.027550656348466873, -0.35367637872695923, 0.2340211570262909, 0.3536350727081299, 0.1528296023607254, 0.2986834645271301, 0.33782967925071716, -0.05473574250936508, -0.373426616191864, 0.12027041614055634, -0.21804453432559967, 0.33360791206359863, 0.3641207218170166, 0.2784276306629181, 0.039791449904441833, 0.2182825207710266, -0.14797593653202057, 0.019507909193634987, -0.1615646779537201, -0.027554791420698166, 0.27790775895118713, 0.4574327766895294, 0.03188787400722504, -0.24734754860401154, -0.1694091260433197, -0.030307814478874207, 0.16594518721103668, 0.08316680043935776, -0.023197844624519348, -0.06866658478975296, -0.14998961985111237, 0.1826803833246231, 0.17987363040447235, -0.2760940194129944, -0.08449606597423553, 0.2508695721626282, -0.008102606050670147, -0.3004891872406006, -0.05545221269130707, -0.03805072233080864, 0.5070258378982544, 0.016448533162474632, -0.019597690552473068, -0.008308295160531998, -0.316768079996109, -0.13739001750946045, 0.2386583834886551, 0.37098637223243713, -0.30096083879470825, 0.3809206187725067, 0.020106611773371696, 0.005393685773015022, -0.12100139260292053, -0.3262603282928467, 0.2334693968296051, -0.03030644915997982, 0.3070223927497864, 0.05832838639616966, 0.12415946274995804, 0.15147162973880768, 0.08208785951137543, -0.14390312135219574, -0.28249165415763855, -0.03578325733542442, -0.2636389434337616, 0.11827831715345383, 0.0336221344769001, -0.3632321059703827, -0.23564893007278442, -0.5376786589622498, -0.4607841968536377, 0.20937903225421906, 0.15172050893306732, 0.09350305050611496, -0.011470150202512741, 0.1578439325094223, 0.2768276631832123, 0.253630131483078, 0.015003024600446224, -0.2517329454421997, -0.3874279856681824, 0.35241392254829407, -0.227128267288208, -0.23348352313041687, -0.005417102016508579, -0.12511186301708221, -0.05041844770312309, 0.19017356634140015, -0.6092796921730042, -0.10031834244728088, -0.12454655766487122, 0.23177404701709747, -0.05535294860601425, 0.0214528851211071, 0.26842549443244934, -0.06603135913610458, -0.20081889629364014, -0.03309983015060425, 0.008981989696621895, 0.2427130937576294, 0.36335599422454834, 0.21990080177783966, -0.11621789634227753, 0.21752899885177612, 0.2947782278060913, 0.48911362886428833, -0.26789331436157227, -0.25193241238594055, 0.4020814597606659, 0.3352082371711731, 0.2886541485786438, -0.29380685091018677, 0.12234228104352951, 0.2924553155899048, 0.09164279699325562, -0.20988304913043976, 0.6140488386154175, 0.22620965540409088, -0.40918228030204773, -0.03786325082182884, 0.0658068135380745, 0.0875464528799057, -0.07008124142885208, 0.30820295214653015, -0.14082637429237366, 0.13220706582069397, -0.02813335880637169, -0.5833315849304199, -0.26491570472717285, -0.24992279708385468, -0.013789784163236618, 0.1876523196697235, 0.06876979023218155, 0.12641406059265137, -0.08548710495233536, 0.3438858687877655, -0.3455139696598053, 0.13234978914260864, 0.015998641029000282, -0.12273850291967392, -0.23809033632278442, -0.1587119698524475, -0.10479765385389328, -0.17112179100513458, 0.3415548503398895, -0.318534791469574, -0.11553720384836197, 0.032757122069597244, 0.23256324231624603, -0.048983898013830185, -0.01367098931223154, -0.2610039710998535, -0.22468672692775726, 0.4029814898967743, 0.5296341180801392, -0.3832053244113922, 0.03401251882314682, -0.04293961822986603, 0.3307129442691803, -0.10174905508756638, -0.23096510767936707, -0.11903003603219986, -0.2533494234085083, -0.1862160563468933, 0.1779833436012268, 0.2870962917804718, -0.012678058817982674, 0.19652681052684784, 0.16091349720954895, 0.12868838012218475, -0.020832447335124016, 0.1567949801683426, -0.004818699322640896, 0.12331171333789825, 0.13870255649089813, -0.13541074097156525, -0.22498945891857147, 0.24435779452323914, 0.1303788721561432, 0.37964117527008057, -0.12979647517204285, 0.14738930761814117, 0.1988915503025055, -0.3397558927536011, -0.0037409747019410133, 0.2533745765686035, 0.07392314076423645, 0.11502464860677719, -0.22852855920791626, 0.2516638934612274, -0.2066575586795807, 0.35218605399131775, -0.19465108215808868, 0.0684046596288681, -0.2621569335460663, -0.2607872188091278, 0.3508734405040741, 0.03766585513949394, 0.06560398638248444, 0.18091334402561188, -0.10792647302150726, -0.5786873698234558, 0.4100571870803833, 0.1836819350719452, 0.9564603567123413, -0.13326802849769592, 0.3486759066581726, -0.1356172412633896, 0.1329651176929474, 0.310085266828537, -0.47543981671333313, 0.0331927090883255, 0.10053401440382004, -0.10233233124017715, 0.06067664548754692, 0.09241845458745956, -0.007768649607896805, 0.4886501729488373, -0.2206036001443863, 0.10951464623212814, -0.15058572590351105, -0.08774615079164505, 0.0057053156197071075, 0.5700288414955139, -0.0039499737322330475, -0.281844824552536, -0.28811898827552795, 0.33342185616493225, 0.01955106295645237, -0.1422267109155655, -0.2530408501625061, -0.12526194751262665, -0.02845657989382744, 0.22780105471611023, -0.4362996220588684, -0.14140254259109497, -0.10209067910909653, 0.13765811920166016, -0.14833202958106995, -0.16091519594192505, 0.12763158977031708, -0.07754110544919968, 0.2671681046485901, 0.2540806829929352, -0.2023923546075821, -0.0340133011341095, -0.06970545649528503, 0.011488210409879684, 0.19464847445487976, -0.016860777512192726, 0.41022419929504395, -0.1721377968788147, -0.031318165361881256, 0.01912420056760311, 0.05559451878070831, -0.4859302043914795, -0.12357374280691147, -0.15892437100410461, -0.026978835463523865, 0.19211140275001526, -0.19677066802978516, 0.24761734902858734, -0.29985737800598145, 0.007869929075241089, 0.22874560952186584, 0.17894205451011658, -0.05797005444765091, 0.05367527902126312, -0.016571136191487312, -0.12262804061174393, -0.29018282890319824, 0.08061132580041885, 0.14696919918060303, -0.04485085979104042, 0.06971194595098495, 0.4147091209888458, -0.1879289746284485, -0.3427497446537018, -0.2588161826133728, -0.06837708503007889, -0.08410057425498962, 0.21286004781723022, 0.10635765641927719, -0.284214049577713, -0.17367060482501984, -0.12780319154262543, 0.487883061170578, 0.14432579278945923, -0.0150566715747118, 0.012542149052023888, -0.35840582847595215, 0.09621895104646683, 0.04391157999634743, 0.21520978212356567, -0.20827224850654602, -0.021009795367717743, 0.09889407455921173, 0.1707875281572342, -0.4913283586502075, 0.03730855882167816, -0.1312001645565033, 0.1306348294019699, -0.04919065162539482, -0.11894213408231735, 0.17154859006404877, -0.01405351608991623, 0.1218104436993599, -0.029335329309105873, -0.2440226972103119, -0.3242492377758026, -0.049363285303115845, 0.04771501570940018, 0.20570383965969086, -0.086519256234169, 0.22693853080272675, -0.12222899496555328, -0.16216610372066498, -0.07077015936374664, 0.2802381217479706, -0.017599020153284073, -0.024420324712991714, -0.0470491386950016, 0.2736540138721466, -0.05628979206085205, 0.222346231341362, 0.06670434772968292, 0.21543313562870026, 0.060223761945962906, 0.10738121718168259, 0.2274560034275055, 0.3288939297199249, -0.07912125438451767, -0.10176313668489456, 0.2705047130584717, 0.03720986470580101, 0.2520080804824829, 0.08311886340379715, 0.020268207415938377, -0.07962078601121902, 0.32697391510009766, 0.295521080493927, -0.11216303706169128, -0.15108422935009003, -0.07404829561710358, 0.25726908445358276, 0.35842084884643555, -0.3802071511745453, -0.017596501857042313, -0.03260704502463341, -0.02057279460132122, 0.3032342195510864, 0.20158541202545166, 0.3765600919723511, 0.2834504544734955, -0.13881918787956238, 0.21283186972141266, 0.2518252730369568, -0.08282008767127991, 0.0960177332162857, -0.11934654414653778, 0.07163701206445694, 0.08774661272764206, 0.14532595872879028, 0.09482753276824951, 0.24148429930210114, -0.08382934331893921, -0.09619205445051193, 0.1077280268073082, 0.16844618320465088, -0.07996376603841782, -0.026788245886564255, -0.28199949860572815, 0.050950787961483, 0.3446563184261322, 0.3080420196056366, 0.4171382486820221, -0.12557533383369446, 0.11186299473047256, 0.08436111360788345, -0.14555968344211578, 0.015085605904459953, 0.047189321368932724, -0.04154333099722862, -0.15346285700798035, 0.35843414068222046, -0.13297253847122192, -0.22132141888141632, 0.19730938971042633, -0.12275924533605576, -0.2807619571685791, -0.15095968544483185, 0.11849617213010788, 0.11869686096906662, -0.18194811046123505, 0.17908485233783722, 0.09028176218271255, 0.10498872399330139, -0.12729640305042267, 0.364661306142807, 0.20695321261882782, -0.07271896302700043, 0.06990271806716919, 0.08957674354314804, -0.04576319456100464, 0.1938200742006302, -0.17623154819011688, 0.2385973036289215, -0.0766310915350914, 0.07490864396095276, -0.4782012403011322, 0.14291952550411224, 0.09599870443344116, 0.0413338877260685, 0.24205505847930908, 0.18211647868156433, -0.3164461553096771, 0.40327778458595276, -0.06596101075410843, -0.043924182653427124, -0.16477620601654053, 0.18124133348464966, 0.1870896816253662, -0.14190800487995148, -0.15601831674575806, 0.14507479965686798, -0.6401212811470032, -0.2002984583377838, 0.608137309551239, -0.40788134932518005, 0.14531660079956055, -0.1463489681482315, 0.15373189747333527, -0.09973573684692383, 0.6128954291343689, 0.4654804468154907, 0.11164824664592743, -0.008595955558121204, -0.0731736347079277, -0.47490793466567993, 0.11110984534025192, -0.17303289473056793, 0.3495073914527893, -0.2958155870437622, 0.5248234272003174, 0.19971302151679993, 0.17496258020401, -0.19541236758232117, 0.2283545434474945, -0.4133356213569641, 0.01248380821198225, -0.4292393922805786, 0.157892644405365, -0.28185445070266724, 0.4780578911304474, 0.16795526444911957, -0.18546509742736816, 0.015809861943125725, 0.01716580241918564, 0.17927925288677216, -0.36985474824905396, 0.062451306730508804, 0.04492649435997009, 0.2174939662218094, 0.28620243072509766, -0.06210543215274811, 0.10565990954637527, -0.0976622924208641, -0.2774527668952942, -0.46454134583473206, -0.027356110513210297, -0.2737828493118286, -0.06678646057844162, 0.05827621743083, 0.23164869844913483, -0.29833847284317017, -0.14063771069049835, 0.0025607554707676172, 0.1681700348854065, -0.06445571780204773, -0.07055510580539703, -0.025632347911596298, -0.09013636410236359, 0.02262250892817974, -0.027726655825972557, 0.047957777976989746, 0.3123016059398651, -0.03942817449569702, -0.1671392321586609, -0.21336624026298523, -0.12239474803209305, 0.09562907367944717, -0.10321760177612305, -0.26854991912841797, 0.0022959818597882986, -0.002415517345070839, 0.21398425102233887, -0.16770710051059723, -0.5281786918640137, 0.12576086819171906, 0.23206086456775665, 0.10989659279584885, -0.08733942359685898, 0.33719661831855774, 0.0825015977025032, -0.11931764334440231, -0.16144080460071564, -0.016559427604079247, -0.06369821727275848, -0.09042343497276306, -0.36492547392845154, -0.2698543965816498 ]
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.4098339080810547, 0.12631109356880188, -0.16244123876094818, 0.15567898750305176, 0.017110737040638924, 0.17151407897472382, 0.08797779679298401, 0.2739045321941376, 0.011103378608822823, 0.019485047087073326, -0.1574602574110031, 0.1408568173646927, -0.5226858854293823, 0.19263027608394623, 0.16641558706760406, -0.0006091390387155116, -0.02272469364106655, -0.05481037124991417, -0.10180270671844482, -0.02839343622326851, -0.04255897179245949, -0.050599124282598495, 0.023018529638648033, -0.43053963780403137, -0.21519076824188232, -0.11030242592096329, -0.1426190584897995, -0.011051621288061142, -0.30418887734413147, -0.24186067283153534, -0.2696636915206909, 0.14718510210514069, 0.40149590373039246, 0.5093923807144165, -0.00009923088509822264, -0.18773305416107178, 0.18374645709991455, -0.1823870986700058, -0.3778294026851654, -0.140514075756073, -0.057961784303188324, -0.3062310814857483, -0.2828384339809418, -0.03625905141234398, -0.21384912729263306, -0.1490485668182373, 0.1165730431675911, -0.407560795545578, 0.08371501415967941, 0.3522394597530365, 0.28531986474990845, 0.12923091650009155, 0.02825813554227352, -0.11875602602958679, 0.3448965847492218, -0.03721768409013748, -0.1411595195531845, 0.21658967435359955, 0.3609105348587036, 0.19328629970550537, -0.13499583303928375, 0.4231758415699005, 0.39954936504364014, -0.13639850914478302, 0.20033720135688782, -0.013778747990727425, -0.013764027506113052, -0.11847858130931854, -0.09399455040693283, 0.3289187550544739, 0.33966612815856934, -0.19993411004543304, -0.41694676876068115, -0.3320502042770386, 0.0004095720069017261, -0.48618802428245544, -0.1864098310470581, 0.28023502230644226, 0.013002424500882626, 0.2654019594192505, 0.011849512346088886, -0.2891333997249603, -0.10230346769094467, 0.2159849852323532, 0.02641095407307148, 0.2852253019809723, -0.09167909622192383, -0.1814766526222229, 0.18472060561180115, -0.04524307698011398, -0.16850216686725616, 0.06201145052909851, -0.07015103846788406, 0.01693817786872387, -0.34137871861457825, -0.20530231297016144, 0.3815687894821167, 0.34797313809394836, 0.4029487371444702, -0.20131942629814148, -0.0007647888851352036, 0.09003230184316635, 0.007676195818930864, -0.036331575363874435, 0.4183674454689026, 0.022852761670947075, -0.25762784481048584, -0.24299895763397217, 0.3162671625614166, 0.061519019305706024, 0.08454976975917816, 0.07801838964223862, -0.08126010745763779, -0.109158955514431, -0.15461686253547668, -0.10373880714178085, -0.13117656111717224, 0.1341686099767685, 0.02499680034816265, -0.011035379022359848, 0.24734646081924438, -0.04063427075743675, -0.013262730091810226, 0.10605727136135101, -0.013259118422865868, 0.22374147176742554, 0.04622098058462143, 0.17908214032649994, 0.164591446518898, -0.5682690143585205, -0.21820884943008423, 0.10969124734401703, -0.4494858682155609, -0.05823627859354019, 0.17463219165802002, -0.09663184732198715, 0.09796670079231262, -0.09381592273712158, 0.21538540720939636, 0.2556801736354828, 0.15418478846549988, -0.03211188316345215, 0.08671119064092636, -0.020719343796372414, -0.0739554837346077, -0.2191067785024643, 0.02452692575752735, -0.020343540236353874, -0.2771775722503662, 0.06208764761686325, 0.008938430808484554, -0.2364458441734314, -0.37914788722991943, 0.24828828871250153, -0.10520876944065094, 0.06479153037071228, -0.39753004908561707, 0.6843147873878479, -0.051811620593070984, 0.23032620549201965, 0.029814472422003746, -0.07209646701812744, 0.12683910131454468, 0.009460926055908203, 0.054308533668518066, 0.18600547313690186, -0.5823346972465515, -0.06884163618087769, -0.6220436692237854, 0.13326480984687805, -0.04830196872353554, 0.23295727372169495, -0.11529596149921417, 0.03313514217734337, -0.10266567021608353, -0.003230819245800376, 0.550624668598175, 0.09032747894525528, -0.18966782093048096, 0.17845195531845093, -0.09434901922941208, -0.06667894124984741, 0.03603024408221245, 0.1663512885570526, 0.1789017617702484, -0.027667466551065445, 0.21251635253429413, 0.38313019275665283, -0.13188154995441437, -0.04584084078669548, -0.277342289686203, -0.34929394721984863, 0.006503706332296133, 0.44557803869247437, 0.09559421986341476, -0.3235456943511963, 0.2116486132144928, 0.0790046900510788, 0.2011425495147705, -0.03878588229417801, 0.16624891757965088, -0.09413453191518784, 0.32288864254951477, 0.0941024050116539, -0.03269205987453461, -0.25445428490638733, -0.4213951826095581, 0.01293076854199171, 0.06644420325756073, 0.39242297410964966, 0.03272384777665138, -0.20075736939907074, 0.11769650131464005, -0.03245382010936737, 0.07450591027736664, -0.06104122847318649, 0.24777501821517944, 0.044966790825128555, 0.01167596410959959, -0.16995736956596375, -0.2375015914440155, -0.022422194480895996, -0.08950965851545334, -0.13907256722450256, -0.204196959733963, -0.02771577797830105, -0.2113766074180603, -0.1865866631269455, 0.09919341653585434, 0.2034640908241272, -0.39316463470458984, -0.14387738704681396, 0.15428845584392548, 0.15646898746490479, -0.09952221810817719, -0.14837287366390228, 0.17391113936901093, 0.589935302734375, 0.2877260148525238, -0.13120318949222565, 0.2223944067955017, -0.09661252051591873, -0.0549188107252121, 0.052366387099027634, -0.16573093831539154, 0.3457506000995636, 0.28433841466903687, -0.06307044625282288, 0.15016169846057892, -0.1299118846654892, 0.21658159792423248, 0.04040132835507393, 0.011162817478179932, -0.3215337097644806, 0.2626163363456726, 0.017928078770637512, 0.2361108362674713, -0.028416652232408524, -0.3789524435997009, 0.16936834156513214, 0.3804478943347931, 0.17847619950771332, 0.22265677154064178, 0.28379735350608826, -0.20517149567604065, -0.2857947051525116, 0.04116397723555565, -0.2445848137140274, 0.17519818246364594, 0.42540255188941956, 0.26628339290618896, 0.09397149085998535, 0.1909112185239792, -0.14739234745502472, 0.047289710491895676, -0.04157966002821922, -0.014235815033316612, 0.20973533391952515, 0.3988669514656067, -0.011770660057663918, -0.3059682548046112, -0.2796696424484253, -0.08386865258216858, 0.17025990784168243, 0.12572236359119415, -0.10053634643554688, -0.02149585261940956, -0.11163961887359619, 0.10457929968833923, 0.031219832599163055, -0.20224453508853912, -0.1765327751636505, 0.188711017370224, -0.08442603051662445, -0.2668890058994293, 0.02071014791727066, -0.16011103987693787, 0.46095240116119385, 0.026985593140125275, 0.19901145994663239, 0.04624864459037781, -0.2685699462890625, -0.10236963629722595, 0.2859629690647125, 0.2906588912010193, -0.2565111815929413, 0.30593568086624146, 0.050784312188625336, 0.19751085340976715, -0.10869110375642776, -0.5585722327232361, 0.26518914103507996, -0.07126037031412125, 0.31642961502075195, 0.2004006803035736, 0.007792755961418152, 0.19003546237945557, -0.05816516652703285, -0.14728063344955444, -0.2070460468530655, -0.019379997625947, -0.15329189598560333, -0.04152308404445648, 0.03077506832778454, -0.2517191767692566, -0.33987078070640564, -0.4018906056880951, -0.5428562164306641, 0.26823535561561584, 0.07105664908885956, 0.07202784717082977, -0.004570509772747755, 0.14883723855018616, 0.3448062837123871, 0.027082808315753937, 0.05665825679898262, -0.12892119586467743, -0.3212645947933197, 0.3212067484855652, -0.1493118852376938, -0.2402818650007248, -0.07659319788217545, -0.20670446753501892, -0.02387482300400734, 0.08145887404680252, -0.5019994974136353, 0.15973186492919922, -0.11526813358068466, 0.2250426709651947, 0.029829954728484154, 0.039467811584472656, 0.16752836108207703, -0.022097554057836533, -0.24218548834323883, -0.0792156532406807, 0.04735063016414642, 0.11142820119857788, 0.35751786828041077, 0.3309479355812073, -0.24471122026443481, 0.29105228185653687, 0.20603223145008087, 0.3839908242225647, -0.042698632925748825, -0.2878247797489166, 0.40632182359695435, 0.3795236647129059, 0.3640131950378418, -0.20937927067279816, -0.0007671708590351045, 0.26358628273010254, 0.0807810053229332, -0.0966668650507927, 0.648715615272522, 0.16011518239974976, -0.4226076602935791, 0.03556818515062332, 0.09235009551048279, 0.028052417561411858, -0.10930919647216797, 0.3098233938217163, -0.15673428773880005, 0.037295665591955185, -0.10656990855932236, -0.5659018754959106, -0.20808178186416626, -0.22721879184246063, -0.0668066069483757, 0.24329233169555664, 0.015442770905792713, 0.037754084914922714, -0.16471818089485168, 0.29618504643440247, -0.30026018619537354, 0.1578608751296997, -0.08416421711444855, -0.006645461078733206, -0.10137811303138733, -0.2576543688774109, -0.1832226812839508, -0.037337347865104675, 0.43018510937690735, -0.3462502658367157, -0.21667516231536865, 0.050768863409757614, 0.3493839502334595, -0.11204206943511963, 0.060422223061323166, -0.4069739878177643, -0.20594020187854767, 0.6046839356422424, 0.46751484274864197, -0.30341511964797974, 0.02786978706717491, 0.13164488971233368, 0.26179757714271545, 0.11106424778699875, -0.21283863484859467, -0.17551563680171967, -0.1478179395198822, -0.17047613859176636, 0.17621645331382751, 0.2725251019001007, -0.002776435809209943, 0.07472407072782516, 0.06047428771853447, 0.13211333751678467, -0.03999384120106697, 0.2389424443244934, 0.0417570136487484, 0.01860790140926838, 0.22616799175739288, -0.08781804889440536, -0.14459054172039032, 0.33529189229011536, 0.2573809325695038, 0.3048613667488098, -0.12470930814743042, -0.15249325335025787, 0.15391351282596588, -0.37275323271751404, 0.2853822112083435, 0.17429478466510773, 0.13679614663124084, 0.18445280194282532, -0.2605433762073517, 0.21828916668891907, -0.12565754354000092, 0.48250967264175415, -0.06106599420309067, 0.09992676228284836, -0.48686152696609497, -0.2704676687717438, 0.31528377532958984, -0.06563051789999008, 0.07665443420410156, 0.25141608715057373, -0.0321720726788044, -0.45045843720436096, 0.2987641990184784, -0.028411854058504105, 0.9278070330619812, -0.005363732576370239, 0.2693886458873749, -0.20896759629249573, 0.09721444547176361, 0.3174710273742676, -0.4739419221878052, 0.05793744698166847, 0.04969247058033943, -0.14792358875274658, 0.07443760335445404, 0.0002512623032089323, 0.062332283705472946, 0.49722355604171753, -0.2921595871448517, 0.06210176274180412, -0.14691399037837982, -0.1745947301387787, -0.015955280512571335, 0.5426503419876099, -0.046114638447761536, -0.24454712867736816, -0.3036297559738159, 0.3129000961780548, -0.008784426376223564, -0.1782369613647461, -0.22757664322853088, -0.21711598336696625, -0.02769732102751732, 0.10866540670394897, -0.38826704025268555, 0.029907196760177612, -0.17457029223442078, 0.017036857083439827, -0.03961779549717903, -0.15599270164966583, 0.3619067966938019, -0.08592578023672104, 0.21054582297801971, 0.2843991816043854, -0.13569597899913788, 0.05902491882443428, -0.054257724434137344, -0.03519090637564659, 0.238589346408844, -0.06661152094602585, 0.35499757528305054, -0.07173207402229309, -0.10684523731470108, 0.14397165179252625, 0.1412450671195984, -0.40762293338775635, -0.063878133893013, -0.12376772612333298, 0.09536176174879074, 0.1801329106092453, -0.17633652687072754, 0.2990344166755676, -0.2307697832584381, -0.15593841671943665, 0.24346737563610077, 0.15245021879673004, -0.12377466261386871, 0.05622260272502899, 0.12810181081295013, -0.15169711410999298, -0.2540134787559509, 0.06884462386369705, 0.010480578057467937, -0.06954845041036606, 0.0541335865855217, 0.5405302047729492, -0.2351926565170288, -0.36176103353500366, -0.14629334211349487, 0.15538275241851807, -0.13331781327724457, 0.15627194941043854, 0.12094004452228546, -0.2216411978006363, -0.04384511709213257, -0.004106547683477402, 0.38097983598709106, 0.014676088467240334, 0.01832747645676136, -0.03936467319726944, -0.29087594151496887, 0.09855706244707108, -0.06751490384340286, 0.22889626026153564, -0.2520004212856293, 0.039372678846120834, 0.042781755328178406, 0.24264724552631378, -0.4967222213745117, -0.021715663373470306, -0.12451023608446121, 0.19229480624198914, 0.00892322976142168, -0.1470736712217331, 0.1024872362613678, 0.0160693246871233, 0.161940798163414, -0.10623515397310257, -0.26969289779663086, -0.3490371108055115, -0.11251611262559891, 0.04418228194117546, 0.17690661549568176, -0.032249290496110916, 0.2614035904407501, -0.08538524061441422, -0.27152183651924133, -0.10994809120893478, 0.2870599925518036, -0.2080381065607071, 0.050949446856975555, 0.043771497905254364, 0.32960209250450134, -0.126470685005188, 0.3109314739704132, -0.04496653750538826, 0.26046881079673767, 0.10113027691841125, 0.1784496158361435, 0.12438617646694183, 0.3225095272064209, -0.10567713528871536, -0.05662519112229347, 0.3306286633014679, 0.04243070259690285, 0.29172924160957336, 0.07951974868774414, 0.06307082623243332, -0.04542817920446396, 0.3690228760242462, 0.2322796732187271, -0.04187357425689697, -0.08019056171178818, -0.0635388195514679, 0.22899435460567474, 0.35264623165130615, -0.44415023922920227, 0.02614123560488224, -0.0003547238011378795, 0.06602989882230759, 0.3163897693157196, 0.07545346021652222, 0.20488609373569489, 0.30348753929138184, -0.21932514011859894, 0.10525568574666977, 0.1245332732796669, -0.06667760759592056, 0.2558589577674866, 0.010192892514169216, 0.07780946046113968, 0.08342684060335159, 0.25370311737060547, 0.1096559390425682, 0.21133147180080414, 0.02064824290573597, -0.1559852510690689, 0.21743617951869965, 0.2494317889213562, -0.12174160778522491, 0.1984143853187561, -0.270511656999588, 0.0142896743491292, 0.4408413767814636, 0.23049674928188324, 0.3348536789417267, -0.028080899268388748, 0.15817399322986603, 0.19116348028182983, -0.024297190830111504, -0.07474261522293091, -0.010518927127122879, -0.03250039741396904, -0.10612504929304123, 0.24864381551742554, -0.24321846663951874, -0.2727799117565155, 0.030513325706124306, -0.16036896407604218, -0.15901263058185577, -0.08420678228139877, 0.12487251311540604, 0.09604345262050629, -0.38799312710762024, 0.1526915580034256, 0.053903959691524506, 0.07142548263072968, -0.1914806365966797, 0.2814963757991791, 0.172250896692276, -0.037269096821546555, 0.09744637459516525, 0.06371839344501495, -0.01548249926418066, 0.19453954696655273, -0.13363797962665558, 0.1822952926158905, -0.06144145503640175, -0.04221433773636818, -0.4361591041088104, 0.18467479944229126, 0.21098363399505615, 0.1266734004020691, 0.1863870918750763, 0.20630410313606262, -0.34608420729637146, 0.17535442113876343, -0.032118212431669235, -0.11299332976341248, -0.15646851062774658, 0.2638242244720459, 0.09768455475568771, -0.18630221486091614, -0.26441410183906555, 0.1608150750398636, -0.6029189229011536, -0.1301613748073578, 0.7552970051765442, -0.41303303837776184, 0.000565306399948895, -0.26428332924842834, 0.15728336572647095, -0.16250286996364594, 0.5178133249282837, 0.4893508553504944, 0.16268320381641388, -0.03361198678612709, -0.1965467631816864, -0.4162892699241638, 0.11850912123918533, -0.15161694586277008, 0.30293169617652893, -0.20537829399108887, 0.4095592200756073, 0.289297878742218, 0.20666682720184326, -0.1066436916589737, 0.23663628101348877, -0.38029778003692627, -0.07137010991573334, -0.44236767292022705, 0.08585602790117264, -0.1462792605161667, 0.41890662908554077, 0.09466009587049484, -0.123228058218956, 0.020378680899739265, 0.01843259297311306, 0.18695470690727234, -0.45013877749443054, 0.07162733376026154, 0.08965688198804855, 0.20319506525993347, 0.2926833927631378, -0.04685664176940918, 0.18304748833179474, -0.1631486564874649, -0.2863163352012634, -0.463767945766449, -0.10181955993175507, -0.22867999970912933, -0.0029151751659810543, 0.04602564126253128, 0.2699051797389984, -0.23575395345687866, -0.0778399333357811, 0.0077005974017083645, 0.09376399219036102, -0.0757308155298233, -0.11776936054229736, -0.15929821133613586, -0.04841451346874237, -0.024180954322218895, -0.020181462168693542, -0.03093249909579754, 0.23834702372550964, -0.01535841729491949, -0.21961209177970886, -0.04136250913143158, -0.20708203315734863, 0.13713102042675018, -0.19752325117588043, -0.36897048354148865, -0.12583406269550323, 0.05632097274065018, 0.0922313928604126, -0.03581923991441727, -0.5341687798500061, 0.1531904935836792, 0.2678009867668152, 0.13220135867595673, -0.12330474704504013, 0.4166260063648224, 0.0848037526011467, -0.055964402854442596, -0.16724614799022675, 0.17956653237342834, -0.028002848848700523, -0.12601983547210693, -0.3196704387664795, -0.3176405727863312 ]
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.24625441431999207, 0.17856954038143158, -0.10752708464860916, 0.20753367245197296, -0.06281961500644684, 0.2498987317085266, 0.15014326572418213, 0.18070295453071594, 0.10750575363636017, -0.0014595802640542388, -0.3454727828502655, 0.09751696139574051, -0.4746159017086029, 0.25449568033218384, 0.19285568594932556, -0.06523967534303665, -0.0322023369371891, -0.207184836268425, -0.13703086972236633, -0.14940980076789856, -0.06065802276134491, -0.059810392558574677, 0.028212901204824448, -0.3862357437610626, -0.17230360209941864, 0.004146287217736244, -0.31393903493881226, 0.07422998547554016, -0.3200516104698181, -0.11774075031280518, -0.127354234457016, 0.18064528703689575, 0.4322112202644348, 0.5957204699516296, -0.00010316713451175019, -0.1962912231683731, 0.024264825507998466, -0.17369170486927032, -0.33335307240486145, -0.185763418674469, -0.003519591875374317, -0.34404256939888, -0.4653926491737366, 0.06849026679992676, -0.11775320023298264, -0.20501190423965454, 0.126770481467247, -0.3534979522228241, -0.09138771146535873, 0.15211813151836395, 0.22414526343345642, 0.1497839242219925, 0.05411778390407562, -0.16070863604545593, 0.4485837519168854, 0.1492418795824051, -0.13031557202339172, 0.27364587783813477, 0.30253148078918457, 0.04132721573114395, -0.041014619171619415, 0.38374194502830505, 0.4280635416507721, -0.19552427530288696, 0.27483582496643066, -0.003452819772064686, -0.03805345296859741, -0.13318151235580444, -0.15618541836738586, 0.3036523163318634, 0.3889547288417816, -0.10518914461135864, -0.4876391589641571, -0.3463980555534363, -0.1079883724451065, -0.3159961700439453, -0.25765615701675415, 0.4120887219905853, 0.06788616627454758, 0.24845461547374725, 0.1746348738670349, -0.30190837383270264, -0.11862486600875854, 0.23907926678657532, -0.04459097608923912, 0.31979817152023315, -0.04088924452662468, -0.1356084793806076, 0.19421109557151794, -0.0039510237984359264, -0.06055977940559387, -0.08251401036977768, -0.10603456199169159, 0.10612883418798447, -0.26174503564834595, -0.19709300994873047, 0.3398151993751526, 0.36020928621292114, 0.4732297658920288, -0.3438788652420044, -0.1671781837940216, 0.008010977879166603, -0.14772401750087738, -0.06487017869949341, 0.5987272262573242, -0.04233380779623985, -0.3046996593475342, -0.21907424926757812, 0.21827688813209534, 0.04773913696408272, 0.16072385013103485, 0.04478694498538971, -0.09939822554588318, -0.034844011068344116, -0.21748840808868408, -0.26025524735450745, -0.1236838549375534, -0.05556562542915344, 0.05192628130316734, -0.11721551418304443, 0.19946517050266266, -0.13820114731788635, -0.05063265562057495, 0.11086875200271606, 0.12733787298202515, 0.2053888738155365, -0.019200550392270088, 0.256858229637146, 0.12172485888004303, -0.47951754927635193, -0.18278126418590546, 0.11900000274181366, -0.44793498516082764, -0.10700130462646484, 0.10148900002241135, -0.15347564220428467, -0.05880707502365112, -0.09509721398353577, 0.293087899684906, 0.37046781182289124, 0.10022684186697006, 0.000038416397728724405, 0.180500328540802, 0.07455719262361526, -0.009878350421786308, -0.15546929836273193, 0.09541168063879013, 0.029835490509867668, -0.3180532157421112, 0.14659476280212402, -0.05322560667991638, -0.252659410238266, -0.41374891996383667, 0.19623857736587524, -0.10801507532596588, -0.0012856349349021912, -0.539801836013794, 0.656042218208313, -0.07448232918977737, 0.3185952603816986, 0.03790949657559395, -0.09387007355690002, 0.14586317539215088, -0.00649190554395318, 0.028007764369249344, 0.1340819150209427, -0.6778557896614075, -0.03603846952319145, -0.6665439605712891, 0.02318386361002922, -0.019984442740678787, 0.2567601799964905, -0.16941626369953156, 0.11293470859527588, -0.24318237602710724, -0.05249320715665817, 0.5646257996559143, 0.20667728781700134, -0.17688986659049988, 0.23585574328899384, -0.006137609016150236, 0.06155364215373993, -0.06775262951850891, 0.1928422749042511, 0.09979154169559479, -0.08965130150318146, 0.23068343102931976, 0.3897213637828827, -0.10449637472629547, -0.1538369357585907, -0.2931567430496216, -0.29793769121170044, 0.03028692863881588, 0.4772012531757355, 0.18618524074554443, -0.2131323516368866, 0.3239220082759857, 0.05398588627576828, 0.26104262471199036, -0.02705131098628044, 0.17403386533260345, -0.16879132390022278, 0.4095948338508606, 0.216510608792305, 0.04692663997411728, -0.193557009100914, -0.37105315923690796, 0.08832533657550812, -0.056485697627067566, 0.4205210208892822, 0.11463488638401031, -0.1526172012090683, 0.1053997352719307, -0.026051003485918045, 0.10933268815279007, -0.08517080545425415, 0.16989532113075256, 0.005304581951349974, -0.09367913007736206, -0.31166940927505493, -0.2342715561389923, 0.07727877795696259, -0.07544327527284622, -0.0829085186123848, -0.17378365993499756, 0.18616335093975067, -0.2260226011276245, -0.1404217779636383, -0.01345757395029068, 0.23566563427448273, -0.45202818512916565, -0.17362283170223236, 0.14702428877353668, 0.03586995229125023, -0.17188209295272827, -0.18050414323806763, 0.31252777576446533, 0.5936393141746521, 0.27007362246513367, -0.18957431614398956, 0.3841973841190338, -0.28264451026916504, -0.0948999673128128, -0.03711284324526787, -0.09776393324136734, 0.3466229736804962, 0.14182505011558533, -0.014307268895208836, 0.07123473286628723, -0.10379321128129959, 0.11142700910568237, 0.13575084507465363, 0.056571848690509796, -0.2372087836265564, 0.28476276993751526, 0.05842437222599983, 0.1625305563211441, -0.07347387075424194, -0.3168829083442688, 0.23085638880729675, 0.2888982594013214, 0.18828198313713074, 0.10373278707265854, 0.28623223304748535, -0.21105623245239258, -0.21415667235851288, 0.08279122412204742, -0.32010433077812195, 0.2933134138584137, 0.4313608705997467, 0.3334779739379883, 0.15071432292461395, 0.19235894083976746, -0.06780736893415451, -0.03381916508078575, 0.08870524168014526, -0.04186943545937538, 0.15495426952838898, 0.4150848984718323, 0.04936816543340683, -0.26228827238082886, -0.25631043314933777, -0.09964940696954727, 0.12017086893320084, 0.08270662277936935, -0.09659891575574875, 0.034244876354932785, -0.15377962589263916, 0.03915630653500557, -0.001521055935882032, -0.2632204294204712, -0.22559130191802979, 0.1800457239151001, -0.12162623554468155, -0.20890355110168457, 0.016817187890410423, -0.13688889145851135, 0.458244264125824, -0.14810872077941895, 0.2264864295721054, 0.07390840351581573, -0.298295795917511, -0.06810633838176727, 0.23945893347263336, 0.35144737362861633, -0.1933678537607193, 0.38383427262306213, 0.08327838778495789, 0.04361404851078987, -0.18881559371948242, -0.5572308897972107, 0.21483543515205383, -0.13148464262485504, 0.3213925063610077, 0.17181558907032013, -0.01375011820346117, 0.1581786721944809, -0.03389681503176689, -0.14304570853710175, -0.06543167680501938, -0.005740459077060223, -0.226183220744133, -0.07300052046775818, 0.02399647794663906, -0.21194122731685638, -0.2607227563858032, -0.4658946096897125, -0.4638243317604065, 0.24821200966835022, 0.08241302520036697, 0.05388927459716797, -0.024249089881777763, 0.05663258582353592, 0.29671943187713623, 0.013270004652440548, -0.15704789757728577, -0.19871652126312256, -0.34363964200019836, 0.34035724401474, -0.12297511845827103, -0.2107485681772232, 0.027855239808559418, -0.23958022892475128, -0.1833098828792572, 0.10864816606044769, -0.5946322679519653, 0.10739559680223465, -0.004869218450039625, 0.27586987614631653, 0.006991362199187279, 0.1516609489917755, 0.12419763952493668, -0.15188327431678772, -0.14212903380393982, -0.08157709240913391, -0.03774421289563179, 0.1081055998802185, 0.5077719688415527, 0.3683868944644928, -0.19689469039440155, 0.21549338102340698, 0.2673065662384033, 0.5058035254478455, -0.03796116262674332, -0.1533985584974289, 0.4270521104335785, 0.5014261603355408, 0.39253392815589905, -0.23844824731349945, -0.09388544410467148, 0.35843950510025024, 0.07302113622426987, -0.09428846091032028, 0.5424854159355164, 0.2252040058374405, -0.3714761734008789, 0.08633717894554138, 0.020791588351130486, 0.1657283455133438, -0.07368435710668564, 0.2951662242412567, -0.16288714110851288, 0.00004668428300647065, -0.00318764615803957, -0.6648693084716797, -0.2963985800743103, -0.22860604524612427, 0.05148443952202797, 0.3544841706752777, 0.1379663348197937, 0.09549923241138458, -0.23396526277065277, 0.3559132516384125, -0.2122381031513214, 0.17667710781097412, -0.12958966195583344, -0.08758760988712311, -0.0914657860994339, -0.1989501267671585, -0.05496859923005104, 0.10050027817487717, 0.5109842419624329, -0.3662700355052948, -0.31670284271240234, 0.11774708330631256, 0.3514559864997864, -0.08481297641992569, -0.059458304196596146, -0.4126615524291992, -0.21132595837116241, 0.5140800476074219, 0.5027024149894714, -0.33318445086479187, 0.023615241050720215, 0.19862663745880127, 0.25974780321121216, 0.032545022666454315, -0.3211187720298767, -0.04268784448504448, -0.20450924336910248, -0.10946271568536758, 0.1658124476671219, 0.28593823313713074, -0.05109916627407074, 0.003979601431638002, 0.16110078990459442, 0.11520859599113464, 0.08950142562389374, 0.20279866456985474, -0.11088429391384125, -0.03312905132770538, 0.2975570559501648, -0.029430631548166275, -0.1174037754535675, 0.4459315240383148, 0.3497481346130371, 0.41148605942726135, -0.24577279388904572, -0.16152381896972656, 0.26278889179229736, -0.4169076085090637, 0.33435001969337463, 0.22846615314483643, 0.2370268702507019, 0.04112682119011879, -0.24065038561820984, 0.10914424061775208, -0.1777590811252594, 0.3633454442024231, -0.0939069613814354, 0.027525320649147034, -0.5469817519187927, -0.23752187192440033, 0.3390762209892273, -0.07688248157501221, 0.07321709394454956, 0.27483493089675903, 0.18476513028144836, -0.4231986701488495, 0.5059283375740051, -0.11597311496734619, 1.0700719356536865, -0.0807696059346199, 0.3042263984680176, -0.21754439175128937, -0.02114257588982582, 0.2948873043060303, -0.4703841507434845, -0.04759712517261505, -0.013347183354198933, -0.227360799908638, 0.08088577538728714, -0.08679364621639252, 0.03449679911136627, 0.5482606887817383, -0.08452972024679184, 0.08408322185277939, -0.15089181065559387, -0.1704113781452179, 0.011511328630149364, 0.4651869535446167, -0.02621019259095192, -0.2943553626537323, -0.2766019105911255, 0.2728029489517212, 0.06224488839507103, -0.02742822654545307, -0.3297663629055023, -0.2247915267944336, -0.061526499688625336, 0.15784797072410583, -0.4502343535423279, -0.008067247457802296, -0.07858835905790329, -0.044062290340662, 0.01567469909787178, -0.19836968183517456, 0.46805912256240845, -0.13986589014530182, 0.3715139329433441, 0.15211015939712524, -0.056445084512233734, 0.024281172081828117, -0.0350763164460659, -0.025821762159466743, 0.31607508659362793, -0.07577383518218994, 0.4437020421028137, -0.04321600869297981, -0.14356529712677002, 0.01242688950151205, 0.07587637007236481, -0.41240426898002625, -0.22774340212345123, -0.06926370412111282, 0.12648950517177582, 0.11498870700597763, -0.19965507090091705, 0.3787500262260437, -0.05966906249523163, -0.11806166917085648, 0.20503805577754974, 0.22020681202411652, -0.107803575694561, 0.08489479124546051, 0.05878368392586708, -0.12830516695976257, -0.2801242172718048, 0.007198942359536886, 0.004552382975816727, -0.12257213890552521, 0.03230619058012962, 0.5429114699363708, -0.2912154495716095, -0.2394304722547531, -0.15063202381134033, 0.28427308797836304, -0.18538576364517212, 0.008623683825135231, 0.1156838908791542, -0.12421703338623047, -0.17383907735347748, -0.08193331211805344, 0.4243222773075104, -0.07078688591718674, -0.05404413491487503, -0.13483396172523499, -0.14710178971290588, 0.1369672268629074, -0.20050665736198425, 0.20996715128421783, -0.2749507427215576, 0.10143335163593292, 0.023629412055015564, 0.2915314733982086, -0.4439956843852997, 0.12282128632068634, 0.028277918696403503, 0.1778002679347992, -0.018176348879933357, -0.062403880059719086, 0.02162589691579342, -0.11042843759059906, 0.10797684639692307, -0.12272945791482925, -0.22407178580760956, -0.2821008861064911, -0.12861308455467224, 0.08718059211969376, 0.21679984033107758, -0.09829169511795044, 0.2894613742828369, -0.18141360580921173, -0.2590310275554657, -0.07965710014104843, 0.2726963460445404, -0.10385138541460037, 0.040088821202516556, 0.023555008694529533, 0.52159184217453, -0.06353488564491272, 0.21135291457176208, 0.18824315071105957, 0.35488858819007874, 0.12077382951974869, 0.19151800870895386, 0.08078697323799133, 0.2534691393375397, -0.08925065398216248, -0.12875378131866455, 0.3614579737186432, 0.06712181866168976, 0.3614724278450012, 0.09842274338006973, 0.06685470789670944, 0.04166066274046898, 0.355124294757843, 0.27388662099838257, -0.08252537250518799, -0.0077842483296990395, 0.012856930494308472, 0.20615817606449127, 0.27033448219299316, -0.4512038230895996, 0.008187615312635899, 0.10763991624116898, 0.0954563170671463, 0.17592428624629974, 0.11750298738479614, 0.3312571346759796, 0.4307405650615692, -0.22341306507587433, 0.11612630635499954, 0.09380046278238297, -0.09992517530918121, 0.20124903321266174, 0.00984745379537344, 0.018998024985194206, 0.11086924374103546, 0.17900687456130981, 0.07913538813591003, 0.10577894747257233, -0.10019681602716446, -0.18111276626586914, 0.16599951684474945, 0.2869561016559601, -0.16822221875190735, 0.2207467406988144, -0.3757110834121704, -0.026704194024205208, 0.5152187347412109, 0.4073397219181061, 0.22855854034423828, -0.085089772939682, 0.15734098851680756, 0.12107694149017334, -0.033667195588350296, 0.08434832096099854, -0.01813598722219467, -0.029282409697771072, -0.016293203458189964, 0.40088069438934326, -0.24167415499687195, -0.38859814405441284, -0.00673097837716341, -0.17278136312961578, -0.3297218084335327, -0.07397646456956863, 0.0763520672917366, 0.07976825535297394, -0.3823191821575165, 0.13557444512844086, 0.07606521993875504, -0.014450103044509888, -0.10724925994873047, 0.22975347936153412, 0.08302608877420425, -0.05122486129403114, 0.21221880614757538, 0.08011757582426071, -0.03746691718697548, 0.08518438041210175, -0.10672329366207123, 0.19896575808525085, -0.0075915600173175335, -0.017430465668439865, -0.36554259061813354, 0.11988656967878342, 0.060171112418174744, 0.10834310948848724, 0.20093464851379395, 0.1586287021636963, -0.2674550712108612, 0.05067979171872139, 0.006718509364873171, -0.07560286670923233, -0.20698480308055878, 0.4589695930480957, 0.08824813365936279, -0.20437845587730408, -0.14098666608333588, 0.12643834948539734, -0.4311346411705017, -0.22032098472118378, 0.7046805024147034, -0.3813631534576416, 0.036790356040000916, -0.11783730983734131, 0.12201432138681412, -0.19214414060115814, 0.3321496248245239, 0.6509479284286499, 0.03835045546293259, -0.11298811435699463, -0.09896136075258255, -0.5288543701171875, 0.0839565098285675, -0.13067194819450378, 0.3303051292896271, -0.2055206298828125, 0.42038238048553467, 0.4353748857975006, 0.12980777025222778, -0.05571422353386879, 0.08651619404554367, -0.29638251662254333, -0.005964397918432951, -0.44233468174934387, 0.04309442639350891, -0.0972343236207962, 0.47711989283561707, 0.022044122219085693, -0.030797302722930908, -0.042935196310281754, 0.183256596326828, 0.072495236992836, -0.3979877233505249, 0.021322831511497498, 0.1321706920862198, 0.09407172352075577, 0.18265537917613983, -0.07583986967802048, 0.20215138792991638, -0.07177808880805969, -0.26324647665023804, -0.4402865171432495, -0.2622804045677185, -0.17881035804748535, 0.039465975016355515, -0.16955280303955078, 0.2703266739845276, -0.3259005546569824, -0.2024618238210678, 0.012568077072501183, 0.04743525758385658, -0.17538772523403168, -0.07610718160867691, -0.27661824226379395, 0.06721749901771545, -0.07049059867858887, -0.028448134660720825, 0.05275597795844078, 0.22119730710983276, 0.12446939200162888, -0.16553635895252228, -0.07210970669984818, -0.0642666220664978, 0.12694257497787476, -0.08917989581823349, -0.3931092619895935, -0.11202368885278702, 0.030262339860200882, 0.049661602824926376, -0.09798148274421692, -0.5905724167823792, 0.10672183334827423, 0.3350078761577606, 0.05829482153058052, 0.04444575682282448, 0.32724472880363464, 0.12262759357690811, 0.01997656375169754, -0.1919022500514984, 0.09634532034397125, -0.09840640425682068, -0.1776346117258072, -0.2727275788784027, -0.22489942610263824 ]
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.3223578631877899, -0.04369255155324936, -0.1469397097826004, 0.041197992861270905, 0.2053310126066208, 0.0567982941865921, 0.11991982161998749, 0.2633153200149536, -0.04956824705004692, 0.10100379586219788, -0.25348135828971863, 0.14151713252067566, -0.45326054096221924, 0.19550761580467224, 0.15720830857753754, 0.01472532283514738, -0.09145721793174744, -0.051478710025548935, 0.03609400987625122, -0.027530716732144356, 0.14783725142478943, -0.060896601527929306, 0.13290807604789734, -0.3931403160095215, 0.12038934975862503, 0.05740395560860634, -0.10812115669250488, 0.03642277047038078, -0.3161756992340088, -0.2588159143924713, -0.26802679896354675, 0.08630433678627014, 0.33485424518585205, 0.5441962480545044, -0.00010110247239936143, -0.12119293957948685, 0.20587289333343506, -0.3016032576560974, -0.35172605514526367, -0.29130303859710693, 0.09039736539125443, -0.24203242361545563, -0.3066549599170685, -0.13035178184509277, -0.19663897156715393, -0.20780834555625916, 0.1834142953157425, -0.3442665636539459, 0.2845202684402466, 0.34153804183006287, 0.2460387796163559, 0.13150572776794434, -0.030451253056526184, 0.04255712404847145, 0.31564003229141235, -0.061337195336818695, -0.14091479778289795, 0.28796708583831787, 0.4384594261646271, 0.13122624158859253, -0.06950404495000839, 0.3906656801700592, 0.21015875041484833, -0.06909831613302231, 0.08791908621788025, -0.1028808057308197, 0.06033051013946533, -0.20379231870174408, -0.09023364633321762, 0.4779413640499115, 0.22589504718780518, -0.3107227683067322, -0.44184184074401855, -0.26651790738105774, -0.04852527752518654, -0.5264922976493835, -0.2674868106842041, 0.45362764596939087, -0.15785136818885803, 0.22630982100963593, 0.010685814544558525, -0.1838752031326294, -0.1374785602092743, 0.2025262862443924, 0.035160645842552185, 0.2958601713180542, -0.05016693100333214, -0.17497557401657104, 0.015317459590733051, -0.07113728672266006, -0.20222622156143188, 0.004630935378372669, -0.04531541094183922, 0.08508333563804626, -0.4025755524635315, -0.2481600046157837, 0.341523677110672, 0.16284310817718506, 0.3311097025871277, -0.10669375211000443, 0.2155119776725769, 0.14761702716350555, 0.07078259438276291, -0.028720438480377197, 0.450353741645813, 0.03205523639917374, -0.2049901783466339, -0.35808923840522766, 0.23925189673900604, 0.2649250328540802, 0.01627090945839882, 0.016631385311484337, -0.07517465949058533, 0.04016781225800514, -0.13653914630413055, -0.061071619391441345, -0.050299111753702164, -0.003503879066556692, -0.008677225559949875, -0.07724922150373459, 0.03235381841659546, 0.026596857234835625, -0.04997790977358818, 0.15622268617153168, -0.04960041865706444, 0.37940850853919983, -0.02185090258717537, 0.2079281508922577, 0.08826960623264313, -0.43636325001716614, -0.17960232496261597, 0.07894863933324814, -0.36630186438560486, -0.10882722586393356, 0.16387565433979034, -0.1643037647008896, 0.17024962604045868, -0.2545807361602783, 0.30233630537986755, 0.25812655687332153, 0.17643915116786957, -0.01981210522353649, 0.05137411504983902, 0.037718575447797775, 0.19776175916194916, -0.2589653432369232, 0.09896121174097061, -0.11918946355581284, -0.3118191361427307, 0.07597106695175171, 0.03077453188598156, -0.21655800938606262, -0.25957542657852173, 0.26300784945487976, -0.21954400837421417, 0.11944237351417542, -0.33920881152153015, 0.5862968564033508, 0.010650193318724632, 0.127605140209198, -0.07547464221715927, -0.05237598344683647, 0.08484713733196259, -0.03578808531165123, 0.029166152700781822, 0.13981691002845764, -0.5509942173957825, -0.1312367469072342, -0.5367783904075623, 0.1494327336549759, 0.09031838923692703, 0.1384189873933792, -0.08741914480924606, -0.04889826104044914, -0.045092251151800156, 0.04536861553788185, 0.5971066951751709, -0.039312832057476044, -0.3197210729122162, 0.19446684420108795, -0.21782776713371277, 0.0821220800280571, 0.15017585456371307, 0.14904114603996277, 0.3288448750972748, -0.07668399810791016, 0.1707683950662613, 0.41964298486709595, -0.08219098299741745, 0.03602493926882744, -0.2637164294719696, -0.44796222448349, -0.06194590404629707, 0.44850975275039673, -0.001191072165966034, -0.2839025855064392, 0.29762235283851624, 0.12810419499874115, 0.3932345509529114, -0.03072590008378029, 0.1780167669057846, -0.020906994119286537, 0.3714095950126648, 0.215556338429451, -0.10400372743606567, -0.24320386350154877, -0.3883213698863983, -0.00045189677621237934, 0.12566399574279785, 0.31752631068229675, -0.05761777609586716, -0.1768660545349121, 0.09959586709737778, -0.08971601724624634, -0.005421091802418232, -0.008334503509104252, 0.28427642583847046, 0.2152756303548813, -0.07200963795185089, -0.2058061808347702, -0.259653240442276, -0.01984468474984169, -0.2136233150959015, -0.19102191925048828, -0.2605651319026947, 0.07330384105443954, -0.21807178854942322, -0.2537570595741272, 0.15475241839885712, 0.051185183227062225, -0.35842975974082947, -0.07314253598451614, 0.09834474325180054, 0.17177502810955048, -0.1573740839958191, 0.05452439561486244, 0.2587207555770874, 0.6038353443145752, 0.2455320507287979, -0.25084006786346436, 0.15039627254009247, 0.17967171967029572, 0.05971215292811394, 0.07673581689596176, -0.32843315601348877, 0.2855483293533325, 0.24836978316307068, 0.05223207175731659, 0.2417668253183365, -0.12379128485918045, 0.3073286712169647, 0.07319565117359161, -0.28314071893692017, -0.16691677272319794, 0.30486297607421875, 0.045112885534763336, 0.07718171179294586, -0.16124610602855682, -0.4005177319049835, 0.26542001962661743, 0.4768967032432556, 0.11061005294322968, 0.15056264400482178, 0.31489381194114685, -0.15220364928245544, -0.28385767340660095, 0.005365587305277586, -0.20785216987133026, 0.1680811196565628, 0.39049842953681946, 0.3401857614517212, 0.050114549696445465, 0.190436452627182, -0.16682565212249756, 0.09356691688299179, -0.026690591126680374, -0.17836284637451172, 0.30812394618988037, 0.49292677640914917, -0.07848890870809555, -0.3999214172363281, -0.2444513738155365, -0.11034155637025833, 0.006199556868523359, 0.14269320666790009, -0.013393827714025974, 0.0114845996722579, -0.1119273379445076, -0.018237724900245667, -0.19146566092967987, -0.12080302834510803, -0.22235006093978882, 0.1170552521944046, 0.1016678735613823, -0.26242417097091675, 0.026934396475553513, -0.18416769802570343, 0.23507626354694366, 0.07114739716053009, 0.06955776363611221, 0.039869554340839386, -0.34716612100601196, -0.03659777715802193, 0.2696187496185303, 0.17164543271064758, -0.15588955581188202, 0.2812965512275696, -0.07418458163738251, 0.016682233661413193, -0.07818222790956497, -0.4989751875400543, 0.2668030261993408, -0.09051027148962021, 0.20219042897224426, 0.125956729054451, 0.23979735374450684, 0.19789540767669678, -0.0552804060280323, -0.07502823323011398, -0.36518722772598267, -0.011854593642055988, -0.05981224402785301, 0.03423750773072243, 0.09739742428064346, -0.28281599283218384, -0.3978763222694397, -0.44100919365882874, -0.5356473326683044, 0.21505819261074066, 0.17401503026485443, 0.14670376479625702, 0.06858085840940475, 0.1819940209388733, 0.2245604395866394, 0.16129229962825775, 0.12060998380184174, -0.15523935854434967, -0.4950096905231476, 0.3499085605144501, -0.1595918983221054, -0.30626270174980164, -0.004965936299413443, -0.014389857649803162, -0.03453662246465683, 0.16364659368991852, -0.44324156641960144, -0.04706227034330368, -0.01679091900587082, 0.08186472207307816, 0.01828937791287899, 0.1044619008898735, 0.11875273287296295, 0.02705586887896061, -0.2058410495519638, -0.09754310548305511, 0.179021418094635, 0.020946064963936806, 0.4673108756542206, 0.3781633675098419, -0.09892446547746658, 0.4266086518764496, 0.2625722587108612, 0.4059222340583801, -0.038182202726602554, -0.11384174227714539, 0.48300451040267944, 0.34695735573768616, 0.37609127163887024, -0.1459479182958603, 0.05999968573451042, 0.23700548708438873, 0.0022867517545819283, -0.07621811330318451, 0.5582517981529236, 0.1973240226507187, -0.40281447768211365, -0.03820241615176201, 0.2850155234336853, -0.09767451882362366, -0.07637707889080048, 0.25005465745925903, -0.05238476023077965, -0.07209570705890656, -0.07102999836206436, -0.4156258702278137, -0.12835051119327545, -0.2418668568134308, -0.05142589285969734, 0.2994117736816406, -0.042702168226242065, 0.17382584512233734, -0.17765307426452637, 0.2880130112171173, -0.3454490303993225, 0.06372666358947754, -0.08499124646186829, -0.047832150012254715, -0.08854053914546967, -0.31486937403678894, -0.0483546257019043, -0.17670805752277374, 0.32042837142944336, -0.15173907577991486, 0.03162182867527008, 0.04506037011742592, 0.36396488547325134, -0.09537907689809799, 0.02593868412077427, -0.5017440319061279, -0.24878144264221191, 0.5851414203643799, 0.3097582161426544, -0.42861121892929077, 0.10809409618377686, -0.06996531039476395, 0.28496649861335754, 0.08971060067415237, -0.02375422790646553, -0.28659680485725403, -0.330440491437912, -0.2712462544441223, 0.1759823113679886, 0.27707555890083313, 0.0879165455698967, -0.06823523342609406, 0.11066272854804993, 0.15590092539787292, 0.08525668829679489, 0.2094971388578415, 0.03706740215420723, 0.0897323414683342, 0.20090143382549286, -0.10011561959981918, -0.15304194390773773, 0.27776798605918884, 0.13194851577281952, 0.4925679862499237, 0.030724134296178818, -0.2574203610420227, 0.13744252920150757, -0.2497549057006836, 0.06395380198955536, 0.31317266821861267, 0.20767752826213837, 0.005386712029576302, -0.16232727468013763, 0.3597310483455658, -0.03014962375164032, 0.5377074480056763, -0.02591274492442608, -0.005732029210776091, -0.3113621771335602, -0.3881617486476898, 0.26940083503723145, -0.13361941277980804, 0.1377856433391571, 0.28737813234329224, -0.13773967325687408, -0.4819794297218323, 0.3508126735687256, 0.10153378546237946, 1.1574714183807373, 0.02250346727669239, 0.3382505774497986, -0.06846306473016739, -0.018751652911305428, 0.1488361954689026, -0.5433733463287354, 0.10532846301794052, -0.030576059594750404, -0.16215088963508606, 0.012047387659549713, 0.04881221801042557, -0.02411172352731228, 0.5330657362937927, -0.31051817536354065, 0.2377946674823761, -0.026320094242691994, -0.0531158484518528, 0.04889456927776337, 0.41329023241996765, -0.1325359344482422, -0.2765011787414551, -0.4921760857105255, 0.302573561668396, -0.09548059850931168, -0.10695240646600723, -0.11779345571994781, -0.3090369701385498, -0.003909143153578043, 0.05070235952734947, -0.32247933745384216, 0.1603115350008011, -0.118278868496418, 0.009211614727973938, -0.24972660839557648, -0.24396611750125885, 0.059625182300806046, -0.012450899928808212, 0.012352348305284977, 0.22815196216106415, -0.01701575145125389, 0.14120852947235107, 0.12102752178907394, -0.009968405589461327, 0.20407621562480927, 0.022562343627214432, 0.18585239350795746, -0.11747962236404419, -0.20160773396492004, 0.21293853223323822, 0.20234312117099762, -0.32567188143730164, -0.11885412037372589, -0.11527352780103683, 0.1606317162513733, 0.3437889814376831, -0.13969911634922028, 0.15348102152347565, -0.30632027983665466, -0.10264056921005249, 0.2062494307756424, 0.04494098201394081, -0.2539573013782501, -0.004173626657575369, 0.06369967013597488, -0.08734194189310074, -0.2450273036956787, 0.18109989166259766, -0.01501944474875927, 0.09910889714956284, 0.12014642357826233, 0.5236201882362366, -0.20867735147476196, -0.3327825367450714, -0.18038038909435272, -0.07648389786481857, -0.01185810286551714, 0.016510700806975365, 0.006874571554362774, -0.2667151689529419, -0.07841804623603821, 0.1140022724866867, 0.23600654304027557, 0.12397781014442444, -0.09089981019496918, -0.13762621581554413, -0.23854684829711914, 0.09864605963230133, 0.18604326248168945, 0.26001858711242676, -0.19468332827091217, -0.07572008669376373, 0.05155614763498306, 0.06708338111639023, -0.48718762397766113, -0.013796264305710793, -0.05477703735232353, 0.1994471400976181, -0.05572352930903435, -0.15161392092704773, 0.22965149581432343, -0.03277677297592163, 0.20047792792320251, -0.10239005833864212, -0.318490207195282, -0.343095600605011, -0.07568459212779999, 0.07063765823841095, 0.24558226764202118, -0.07926244288682938, 0.049038466066122055, -0.08997131884098053, -0.20215190947055817, -0.08739281445741653, 0.27220579981803894, -0.06952357292175293, 0.12856405973434448, -0.013423310592770576, 0.2994031310081482, 0.034952081739902496, 0.28770366311073303, 0.005434138234704733, 0.16296544671058655, 0.16272839903831482, 0.180144265294075, 0.06086748093366623, 0.34143078327178955, -0.09239933639764786, -0.10420876741409302, 0.17431633174419403, 0.1463618278503418, 0.3186543583869934, 0.17993991076946259, 0.03900438919663429, -0.048607807606458664, 0.20512664318084717, 0.36668282747268677, 0.17759251594543457, -0.11288487166166306, -0.1774238795042038, 0.2098619043827057, 0.35328108072280884, -0.4156755805015564, -0.05385339632630348, -0.03877515345811844, 0.009060073643922806, 0.3116805851459503, 0.06253185868263245, 0.026115233078598976, 0.21020622551441193, -0.26832637190818787, 0.12731216847896576, 0.2595115005970001, -0.0007231294293887913, 0.2829001843929291, 0.07193976640701294, 0.04047757759690285, 0.08948004245758057, -0.043745554983615875, 0.06705114990472794, 0.2175392359495163, -0.0213046595454216, -0.1862262636423111, 0.22454410791397095, 0.07996144145727158, -0.23854592442512512, 0.030330879613757133, -0.1407351791858673, -0.12644422054290771, 0.4498058259487152, 0.09822658449411392, 0.5478546619415283, 0.015965288504958153, 0.11711465567350388, 0.1456204503774643, -0.09172852337360382, -0.13694988191127777, 0.060320619493722916, 0.16226866841316223, -0.15304943919181824, 0.164295956492424, -0.20152802765369415, -0.27525022625923157, 0.1849634349346161, 0.04023640230298042, -0.08748972415924072, -0.18998156487941742, 0.19819732010364532, 0.15187445282936096, -0.3833715319633484, -0.14643260836601257, 0.10750395059585571, 0.14573515951633453, -0.2104998528957367, 0.23895001411437988, 0.4500502049922943, 0.020015235990285873, -0.005678961519151926, -0.0901041179895401, 0.05183883011341095, 0.15321296453475952, -0.1451708972454071, 0.23442962765693665, 0.028901251032948494, -0.0984187126159668, -0.3744083642959595, 0.06038683280348778, 0.12925007939338684, 0.05138035863637924, 0.23844221234321594, 0.25434204936027527, -0.3856630325317383, 0.23792949318885803, 0.039752643555402756, -0.2122364193201065, -0.07483261078596115, 0.3046327829360962, 0.08317063748836517, -0.055189114063978195, -0.24446581304073334, -0.009975031949579716, -0.77045077085495, -0.04145136848092079, 0.4132128953933716, -0.25347092747688293, 0.07857511937618256, -0.2475300431251526, 0.15189102292060852, -0.11631637066602707, 0.479945570230484, 0.38433876633644104, 0.026327507570385933, 0.035122599452733994, -0.1932332068681717, -0.5093247294425964, 0.07833845913410187, -0.1550767868757248, 0.1627618968486786, -0.27995073795318604, 0.46269866824150085, 0.23527467250823975, 0.2486165165901184, -0.23233948647975922, 0.22637221217155457, -0.33802273869514465, 0.125654399394989, -0.38799208402633667, -0.01444912888109684, -0.07283830642700195, 0.5229437351226807, 0.10072100907564163, -0.22183163464069366, -0.04772976413369179, -0.0742282122373581, 0.23764270544052124, -0.2841774523258209, 0.05212631821632385, -0.027314569801092148, 0.08852311968803406, 0.2240048199892044, -0.22031646966934204, 0.053960271179676056, -0.207657128572464, -0.45738521218299866, -0.3317117989063263, -0.028223782777786255, -0.3018079400062561, 0.0516992062330246, -0.10377433151006699, 0.40447184443473816, -0.15790320932865143, -0.0006494368426501751, -0.07949363440275192, 0.10150858759880066, -0.05910593643784523, -0.24134276807308197, -0.08027256280183792, -0.11763084679841995, 0.05694911628961563, 0.12579302489757538, -0.12275288254022598, 0.254725843667984, -0.07473982870578766, -0.1236216351389885, -0.12237098813056946, -0.3211069107055664, 0.37376338243484497, -0.24862852692604065, -0.3403843641281128, -0.0965089350938797, 0.040513742715120316, 0.07726877927780151, 0.07724753022193909, -0.5529170632362366, 0.32581865787506104, 0.20287339389324188, 0.06717029958963394, -0.14107149839401245, 0.35785120725631714, 0.03239552676677704, -0.05761035531759262, -0.1391894370317459, 0.10532625019550323, 0.11424195021390915, -0.15728963911533356, -0.2515867352485657, -0.32769346237182617 ]
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.2282577008008957, 0.1881413757801056, -0.06500154733657837, 0.12541267275810242, 0.012601182796061039, 0.258663147687912, 0.3119366466999054, 0.33223187923431396, 0.13761387765407562, 0.02713300846517086, -0.43867072463035583, 0.09038732200860977, -0.4766182601451874, 0.37805354595184326, 0.2840980887413025, -0.1374840885400772, -0.058718517422676086, -0.25013089179992676, -0.07472285628318787, -0.1796039491891861, 0.06733802706003189, -0.1525621861219406, 0.03138210251927376, -0.3628997504711151, -0.3110486567020416, 0.07654647529125214, -0.33124950528144836, 0.09868992865085602, -0.15489213168621063, -0.14286568760871887, -0.0868673324584961, 0.24830420315265656, 0.4204023778438568, 0.6430603265762329, -0.00010673239012248814, -0.129924476146698, -0.008342593908309937, -0.28329652547836304, -0.2589147984981537, -0.10792825371026993, 0.012994925491511822, -0.24748274683952332, -0.3683609068393707, -0.045585546642541885, -0.139143705368042, -0.1270541250705719, 0.18646986782550812, -0.3560501039028168, 0.0931275486946106, 0.1874840259552002, 0.15145407617092133, 0.10443487018346786, -0.027065211907029152, -0.04754021391272545, 0.42561158537864685, 0.11312533169984818, -0.08170070499181747, 0.371025025844574, 0.360198974609375, -0.03856942802667618, -0.1978456676006317, 0.4168071746826172, 0.4534837007522583, -0.2206372767686844, 0.1778476983308792, 0.037086308002471924, -0.05588683485984802, -0.31946277618408203, -0.20852284133434296, 0.3520069718360901, 0.18608859181404114, -0.22810111939907074, -0.5114621520042419, -0.3907682001590729, -0.06908339262008667, -0.2743437886238098, -0.2978232204914093, 0.4559566080570221, -0.04340092092752457, 0.27981308102607727, 0.16035552322864532, -0.304537296295166, -0.21279112994670868, 0.2923322319984436, 0.10321450233459473, 0.32659128308296204, 0.07325218617916107, -0.08420046418905258, 0.11509617418050766, 0.04254226014018059, -0.01869082637131214, -0.07605250924825668, 0.049914855509996414, 0.12920066714286804, -0.27617600560188293, -0.2716827690601349, 0.3116217255592346, 0.23787488043308258, 0.3485047221183777, -0.2937186360359192, -0.06906794011592865, 0.15737944841384888, -0.11045827716588974, -0.06586483865976334, 0.5716235637664795, 0.0531897135078907, -0.37699171900749207, -0.10462385416030884, 0.24887819588184357, 0.19030320644378662, 0.06616970151662827, 0.16934366524219513, -0.14359329640865326, -0.021048862487077713, -0.2816230058670044, -0.12464407086372375, -0.09982165694236755, 0.052964549511671066, 0.042696792632341385, -0.12872283160686493, 0.0037244283594191074, -0.11559782177209854, 0.05692069232463837, 0.12920816242694855, -0.0793144553899765, 0.3255782127380371, -0.027115924283862114, 0.33271491527557373, 0.058590807020664215, -0.3411449193954468, -0.15967215597629547, 0.25076770782470703, -0.439252108335495, -0.015933753922581673, 0.2574300765991211, -0.22271370887756348, -0.01541509386152029, -0.056562215089797974, 0.37499165534973145, 0.236502543091774, 0.1827097088098526, 0.033461108803749084, 0.082122802734375, 0.02658376283943653, 0.20380960404872894, -0.21238800883293152, 0.09974551945924759, -0.009567923843860626, -0.3655014634132385, 0.055502522736787796, -0.09039108455181122, -0.3846966326236725, -0.22940167784690857, 0.15502440929412842, -0.16465258598327637, 0.04373067989945412, -0.586287796497345, 0.5789597630500793, -0.11710861325263977, 0.3604905605316162, -0.00009467112977290526, -0.08417318016290665, 0.17853833734989166, 0.01567373424768448, 0.09604470431804657, 0.3012164235115051, -0.6603947877883911, -0.09253446757793427, -0.566701352596283, 0.10037060081958771, -0.018636658787727356, 0.28549933433532715, -0.14119039475917816, 0.08624810725450516, -0.19196411967277527, -0.017718857154250145, 0.5501359701156616, 0.05868818610906601, -0.1799052506685257, 0.232626274228096, 0.06636322289705276, 0.11499271541833878, 0.04437258094549179, 0.2501721978187561, 0.2186097949743271, -0.16733501851558685, 0.2972678244113922, 0.40129464864730835, -0.18190205097198486, -0.0803399607539177, -0.24138440191745758, -0.32394397258758545, -0.13278481364250183, 0.5722845196723938, 0.3206016421318054, -0.2686685621738434, 0.20411410927772522, 0.12437282502651215, 0.33943742513656616, -0.08482526242733002, 0.2756655812263489, -0.1774340718984604, 0.33957406878471375, 0.24430420994758606, 0.01928631216287613, -0.1585211157798767, -0.3723504841327667, 0.18656234443187714, -0.0838790163397789, 0.46945950388908386, 0.09424028545618057, -0.22876842319965363, 0.060102395713329315, -0.10539481043815613, 0.01433379016816616, -0.05987345427274704, 0.13795088231563568, -0.030385280027985573, -0.08539466559886932, -0.29685285687446594, -0.370471715927124, 0.09205979853868484, -0.161908358335495, -0.06885974854230881, -0.2895306348800659, 0.30396389961242676, -0.28228452801704407, -0.1348467469215393, -0.06685132533311844, 0.24328428506851196, -0.3899497389793396, -0.16268308460712433, 0.16217899322509766, 0.06920681893825531, -0.1194823682308197, -0.12313131242990494, 0.24506159126758575, 0.6768248081207275, 0.36652639508247375, -0.34805938601493835, 0.4001238942146301, -0.17310172319412231, -0.1120729073882103, -0.0535607784986496, -0.06805641204118729, 0.3849927484989166, 0.07891365885734558, 0.11819396913051605, 0.16230741143226624, -0.05909258872270584, 0.023969508707523346, 0.19128558039665222, -0.09038688242435455, -0.28393104672431946, 0.16188578307628632, 0.09319783002138138, 0.17469602823257446, -0.1144881471991539, -0.2631928324699402, 0.23898965120315552, 0.2992616295814514, 0.14401647448539734, 0.0741521492600441, 0.31392577290534973, -0.20242205262184143, -0.2755899727344513, 0.02268035151064396, -0.25848454236984253, 0.17074164748191833, 0.33570072054862976, 0.34219497442245483, 0.24550184607505798, 0.09081350266933441, -0.08977636694908142, 0.02643600106239319, 0.17777228355407715, -0.06335337460041046, 0.0865313857793808, 0.2897779643535614, 0.01806102879345417, -0.11325327306985855, -0.3876156508922577, 0.0010847634403035045, 0.03498241677880287, -0.09048891812562943, -0.07531296461820602, 0.04850701987743378, -0.11419785767793655, -0.01664431206882, -0.13631246984004974, -0.23346824944019318, -0.23003295063972473, 0.19646331667900085, -0.10779418796300888, -0.3001354932785034, 0.1516132354736328, -0.12137824296951294, 0.29161277413368225, -0.11801588535308838, 0.15913520753383636, 0.09065820276737213, -0.3925730288028717, -0.0302381981164217, 0.16868241131305695, 0.41476452350616455, -0.1740882694721222, 0.1542629897594452, -0.04538377746939659, -0.16259346902370453, -0.14507892727851868, -0.5141839981079102, 0.2893904745578766, -0.27780741453170776, 0.33175522089004517, 0.10515230149030685, 0.028910914435982704, 0.1600421816110611, -0.12311547994613647, -0.06834855675697327, 0.04521268978714943, 0.09946872293949127, -0.21181455254554749, -0.0526108480989933, 0.10331770777702332, -0.07153094559907913, -0.37497103214263916, -0.4768831431865692, -0.4420590400695801, 0.22742095589637756, 0.1049334779381752, 0.16888609528541565, -0.032990749925374985, 0.15170134603977203, 0.20418034493923187, 0.2857547104358673, -0.06604237854480743, -0.18923303484916687, -0.3686850368976593, 0.3979457914829254, -0.19615283608436584, -0.1966496706008911, 0.03849036991596222, -0.26321089267730713, -0.131286159157753, 0.13563641905784607, -0.5101800560951233, 0.02951984666287899, 0.012001017108559608, 0.1627224087715149, 0.013330262154340744, 0.19638529419898987, 0.11558479815721512, -0.05851510912179947, -0.055778175592422485, -0.03479567542672157, -0.01807897910475731, 0.150504931807518, 0.4623227119445801, 0.26256585121154785, -0.16894133388996124, 0.35104700922966003, 0.2542749345302582, 0.7276124358177185, 0.0030839506071060896, -0.05599335953593254, 0.40641558170318604, 0.4397122859954834, 0.3380444347858429, -0.17891110479831696, 0.003927694633603096, 0.3281747102737427, 0.018699634820222855, -0.14759521186351776, 0.5176528096199036, 0.14888903498649597, -0.42625120282173157, 0.0026978894602507353, 0.12420274317264557, 0.0983087420463562, -0.20254424214363098, 0.34853023290634155, -0.2985159158706665, 0.020003773272037506, -0.031200597062706947, -0.5389332175254822, -0.22158603370189667, -0.19537948071956635, 0.08849699050188065, 0.31201648712158203, 0.10957442969083786, 0.1018848866224289, -0.07638717442750931, 0.269313782453537, -0.18879806995391846, 0.1580258011817932, -0.04370030388236046, -0.1328924000263214, -0.04662257805466652, -0.250988632440567, 0.010764232836663723, 0.12534837424755096, 0.46813562512397766, -0.3941883444786072, -0.12353041023015976, 0.12128688395023346, 0.3260888457298279, -0.127686008810997, -0.03554343432188034, -0.5294525623321533, -0.40045425295829773, 0.5900315642356873, 0.34328493475914, -0.3308136761188507, -0.0361623615026474, 0.2174328714609146, 0.1503797173500061, 0.027911316603422165, -0.1188354566693306, -0.03957903012633324, -0.18053165078163147, -0.1694423109292984, 0.1693013310432434, 0.3705890476703644, -0.04055238515138626, -0.04704015329480171, 0.1441899687051773, 0.09308676421642303, 0.025358859449625015, 0.2950044870376587, -0.05409426614642143, -0.015955813229084015, 0.3271068334579468, 0.05998125299811363, -0.24744997918605804, 0.38729244470596313, 0.3461899161338806, 0.47497668862342834, -0.11691991984844208, -0.09055079519748688, 0.3398272395133972, -0.20360110700130463, 0.23062016069889069, 0.3679635226726532, 0.24846524000167847, -0.08864046633243561, -0.24347861111164093, 0.12120095640420914, -0.18807421624660492, 0.545125424861908, -0.09404721856117249, -0.02608160302042961, -0.529487669467926, -0.38036689162254333, 0.3644823431968689, -0.09921541810035706, 0.035473499447107315, 0.16745784878730774, 0.28139662742614746, -0.4829731583595276, 0.6364097595214844, -0.01685657538473606, 1.102523684501648, -0.06529179215431213, 0.35377970337867737, -0.12948554754257202, 0.003983837552368641, 0.22024671733379364, -0.511282205581665, -0.025365188717842102, -0.04582756385207176, -0.20036891102790833, 0.025134144350886345, -0.05758143961429596, -0.15982948243618011, 0.5191490650177002, -0.1203586682677269, 0.24861407279968262, -0.14800630509853363, -0.26513293385505676, 0.02020389400422573, 0.4700300693511963, -0.10563012212514877, -0.38542288541793823, -0.35971328616142273, 0.2270651012659073, 0.009806391783058643, 0.019385971128940582, -0.23365020751953125, -0.26443132758140564, -0.12413297593593597, 0.16911981999874115, -0.4793210029602051, 0.08963287621736526, -0.1576259732246399, 0.024814194068312645, -0.20186378061771393, -0.21023833751678467, 0.42352432012557983, -0.0873086228966713, 0.352370947599411, 0.12159249931573868, -0.08078941702842712, 0.15121877193450928, 0.04514196515083313, -0.05274031311273575, 0.3716471195220947, -0.0390886552631855, 0.5940957069396973, -0.00832190178334713, -0.23173102736473083, 0.07696732133626938, 0.14276976883411407, -0.3230774998664856, -0.19066284596920013, -0.1975679099559784, 0.25559213757514954, 0.13904084265232086, -0.16892731189727783, 0.30884677171707153, -0.1813964545726776, -0.06801740825176239, 0.16180889308452606, 0.13357138633728027, -0.20176701247692108, 0.05901847034692764, 0.01897040195763111, -0.13007810711860657, -0.25577858090400696, 0.018355922773480415, 0.05826956033706665, -0.1565392017364502, 0.1021987721323967, 0.5984773635864258, -0.19407615065574646, -0.1768919676542282, -0.09952966868877411, 0.28091925382614136, -0.20149445533752441, -0.09902661293745041, -0.021741202101111412, -0.1494954228401184, -0.22898389399051666, -0.14857041835784912, 0.45025479793548584, 0.1329183727502823, -0.030969996005296707, -0.10219035297632217, -0.2635548710823059, 0.21079497039318085, -0.023498233407735825, 0.3028508424758911, -0.36496442556381226, 0.06536311656236649, 0.022769806906580925, 0.24645914137363434, -0.4010448455810547, 0.11140652745962143, 0.006320333573967218, 0.1552128791809082, -0.11509823799133301, -0.06584034115076065, 0.15086466073989868, -0.09217895567417145, 0.08762384951114655, -0.19462187588214874, -0.2820921540260315, -0.21902646124362946, -0.20609742403030396, 0.10833897441625595, 0.20333988964557648, -0.12528802454471588, 0.1312318593263626, -0.08825232088565826, -0.2762528359889984, -0.1511940062046051, 0.34318360686302185, -0.018143868073821068, 0.10128333419561386, -0.004677932243794203, 0.5204720497131348, -0.07978028804063797, 0.11385726928710938, 0.09790100902318954, 0.3665079176425934, 0.20869970321655273, 0.294430673122406, 0.10233309864997864, 0.20335623621940613, -0.13384896516799927, -0.13995623588562012, 0.3338395357131958, 0.10926589369773865, 0.3891877233982086, 0.15124520659446716, 0.08683453500270844, -0.002340529812499881, 0.20029018819332123, 0.30978527665138245, -0.027638809755444527, -0.017639396712183952, -0.048152025789022446, 0.2271765023469925, 0.22723270952701569, -0.3550763726234436, 0.17561174929141998, -0.0071311211213469505, 0.01435534656047821, 0.2544667422771454, 0.22761128842830658, 0.2620123028755188, 0.5055466294288635, -0.26093634963035583, 0.16526634991168976, -0.009064320474863052, -0.019200829789042473, 0.3018050193786621, -0.026136890053749084, -0.07824958860874176, 0.13752251863479614, -0.0037860674783587456, 0.07977599650621414, 0.15332351624965668, -0.16078594326972961, -0.27814415097236633, 0.14631150662899017, 0.09511575847864151, -0.2183501273393631, 0.2714694142341614, -0.2726345360279083, -0.2061930000782013, 0.42488184571266174, 0.25328800082206726, 0.2978369891643524, -0.211204394698143, 0.1144416406750679, 0.07314135134220123, -0.03439146652817726, 0.07724819332361221, -0.0096372589468956, 0.048239078372716904, -0.0574837364256382, 0.2725502550601959, -0.18695589900016785, -0.5308095216751099, 0.021112900227308273, -0.1288432627916336, -0.37814876437187195, -0.17396099865436554, 0.25174179673194885, 0.044892434030771255, -0.18753188848495483, 0.029501471668481827, 0.1320827156305313, 0.13648447394371033, -0.08298100531101227, 0.21086297929286957, 0.12959979474544525, -0.090035580098629, 0.08255238831043243, -0.017804505303502083, -0.0014578407863155007, 0.051529042422771454, -0.2987751364707947, 0.3172318935394287, 0.19819869101047516, -0.014784174971282482, -0.20297376811504364, -0.0378420390188694, 0.09553733468055725, 0.14783398807048798, 0.19824060797691345, 0.12612661719322205, -0.2556394934654236, -0.1641162782907486, -0.05587158352136612, -0.026168985292315483, -0.114230215549469, 0.6312187314033508, 0.12539783120155334, -0.14345823228359222, -0.13132530450820923, 0.07200554013252258, -0.6766440868377686, -0.252522349357605, 0.6505017280578613, -0.3081343472003937, 0.06409785151481628, -0.10453762114048004, 0.08190399408340454, -0.2183975875377655, 0.4375668466091156, 0.5349724888801575, -0.08083738386631012, -0.17562603950500488, -0.0339161716401577, -0.41117018461227417, 0.04267093539237976, -0.0650845393538475, 0.13370411098003387, -0.20175327360630035, 0.42888888716697693, 0.327612042427063, 0.1650901734828949, -0.12945085763931274, 0.013897202908992767, -0.27665233612060547, 0.11417173594236374, -0.396660178899765, 0.028649933636188507, -0.18058960139751434, 0.5295403599739075, 0.06430526077747345, -0.09551282227039337, -0.14990802109241486, 0.12891539931297302, -0.01854289509356022, -0.21230192482471466, -0.037262123078107834, 0.19276688992977142, -0.06300897896289825, 0.21793723106384277, -0.15684004127979279, 0.31549522280693054, -0.07346989214420319, -0.2787444591522217, -0.5120803713798523, -0.3022732436656952, -0.17704787850379944, 0.023834679275751114, -0.2438126802444458, 0.37529075145721436, -0.25954678654670715, -0.2580471336841583, -0.09952418506145477, 0.05776560679078102, -0.12488029152154922, -0.202943354845047, -0.17911073565483093, -0.010774504393339157, -0.025950118899345398, 0.1387147307395935, 0.17481471598148346, 0.24421124160289764, 0.00987809244543314, -0.047894202172756195, -0.13465189933776855, -0.21200326085090637, 0.3039342164993286, -0.05884445458650589, -0.33729735016822815, -0.13903000950813293, 0.1060357615351677, 0.021788332611322403, 0.051223624497652054, -0.6042736768722534, 0.19636894762516022, 0.2461269646883011, 0.0073623149655759335, -0.12450618296861649, 0.2854454219341278, 0.05073830857872963, 0.0038660692516714334, -0.1812218427658081, -0.02813972905278206, -0.11320193111896515, -0.15979915857315063, -0.3635301887989044, -0.33300188183784485 ]
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.31402528285980225, 0.15608766674995422, -0.15775588154792786, 0.18204909563064575, -0.027712306007742882, 0.20849332213401794, 0.15764060616493225, 0.19064517319202423, 0.01268045511096716, -0.046364035457372665, -0.16548827290534973, 0.1902202069759369, -0.49646008014678955, 0.24471351504325867, 0.22647227346897125, -0.03629063814878464, -0.023985642939805984, -0.11791631579399109, -0.08870885521173477, -0.024424437433481216, -0.0195855014026165, -0.04176561161875725, 0.014450070448219776, -0.4073126018047333, -0.16705824434757233, -0.06016087159514427, -0.1501532942056656, 0.010431788861751556, -0.3633568584918976, -0.20030510425567627, -0.23764178156852722, 0.12322357296943665, 0.39640912413597107, 0.5024111866950989, -0.00010003992792917415, -0.16293199360370636, 0.12929201126098633, -0.1930176168680191, -0.3620665371417999, -0.2543432414531708, -0.10965745896100998, -0.3248434066772461, -0.34222954511642456, -0.03532794117927551, -0.183149054646492, -0.1879444122314453, 0.1316816806793213, -0.3572053909301758, 0.05664026364684105, 0.2555435597896576, 0.268505334854126, 0.2546115815639496, 0.0170969907194376, -0.11626168340444565, 0.3399563133716583, 0.06313895434141159, -0.1699291616678238, 0.25736159086227417, 0.3639288544654846, 0.17331849038600922, -0.0872359424829483, 0.4222865402698517, 0.45261502265930176, -0.2000395655632019, 0.25844693183898926, 0.017695892602205276, -0.06583981961011887, -0.12510663270950317, -0.19474433362483978, 0.3474358022212982, 0.38241374492645264, -0.19058021903038025, -0.528847336769104, -0.41030386090278625, -0.05648364871740341, -0.4034169018268585, -0.24250642955303192, 0.3445226848125458, 0.05753021687269211, 0.3328244388103485, 0.023351239040493965, -0.2500685155391693, -0.06920278072357178, 0.19120647013187408, 0.02713344432413578, 0.31450167298316956, -0.10067934542894363, -0.15689317882061005, 0.12023087590932846, 0.007531185168772936, -0.15771383047103882, 0.012118935585021973, -0.03870976343750954, -0.00014147542242426425, -0.3294302225112915, -0.21546216309070587, 0.3981151878833771, 0.35357552766799927, 0.4854927062988281, -0.13411518931388855, 0.0018766321009024978, 0.019346101209521294, -0.07718983292579651, -0.0032303184270858765, 0.519697904586792, 0.024914249777793884, -0.2072119414806366, -0.2758999764919281, 0.26869237422943115, 0.06380854547023773, 0.1761346161365509, 0.08687040954828262, -0.047158267349004745, -0.08095013350248337, -0.1676565259695053, -0.17736026644706726, -0.050785843282938004, 0.12723492085933685, -0.06323464959859848, -0.04462406784296036, 0.23582910001277924, -0.10354799032211304, -0.005090089049190283, 0.05582122504711151, 0.04385720193386078, 0.19192740321159363, 0.010402864776551723, 0.2573396861553192, 0.14595261216163635, -0.48945191502571106, -0.2063298374414444, 0.18373045325279236, -0.45276203751564026, -0.06918729841709137, 0.10317821055650711, -0.13751603662967682, 0.07831492274999619, -0.10207359492778778, 0.23452621698379517, 0.22925212979316711, 0.13465863466262817, 0.03063390962779522, 0.13717110455036163, -0.02695499360561371, -0.07390359044075012, -0.2033773958683014, 0.056888628751039505, 0.08508934080600739, -0.31389501690864563, 0.13170824944972992, 0.016372526064515114, -0.21961599588394165, -0.33828702569007874, 0.22841541469097137, -0.21763743460178375, 0.026434309780597687, -0.41541627049446106, 0.723119854927063, -0.032992515712976456, 0.25633901357650757, 0.07510155439376831, -0.05335893854498863, 0.03569669649004936, 0.008269737474620342, 0.073696568608284, 0.18633100390434265, -0.5746171474456787, -0.13194693624973297, -0.583482027053833, 0.04832577705383301, -0.10228732228279114, 0.26908910274505615, -0.1963120400905609, 0.1377876251935959, -0.14801934361457825, 0.05860593542456627, 0.5879371762275696, 0.16881604492664337, -0.15055327117443085, 0.14208576083183289, -0.10994988679885864, 0.009615656919777393, -0.010381326079368591, 0.1500779539346695, 0.1274714171886444, -0.05120166018605232, 0.26158562302589417, 0.39009207487106323, -0.13899298012256622, -0.1138649731874466, -0.26230883598327637, -0.37799015641212463, 0.0675954818725586, 0.3910391926765442, 0.10702751576900482, -0.27368149161338806, 0.21864940226078033, 0.05015305057168007, 0.16683943569660187, -0.012342995032668114, 0.19760426878929138, -0.12489134818315506, 0.28413328528404236, 0.11683263629674911, -0.017733445391058922, -0.32752442359924316, -0.41900771856307983, 0.0483478382229805, 0.04199586063623428, 0.3821237087249756, 0.07282372564077377, -0.20309460163116455, 0.05894388630986214, 0.005783578380942345, 0.13328540325164795, -0.12049122899770737, 0.21776463091373444, 0.04850153625011444, -0.030139897018671036, -0.22709141671657562, -0.3296844959259033, -0.06309191137552261, -0.08922312408685684, -0.08776628971099854, -0.2958342432975769, 0.006074323318898678, -0.18673132359981537, -0.14113478362560272, 0.027072861790657043, 0.2707054316997528, -0.4790116250514984, -0.18370075523853302, 0.24933576583862305, 0.08596067875623703, -0.1302107721567154, -0.18620523810386658, 0.245914489030838, 0.605351448059082, 0.2642044723033905, -0.12098410725593567, 0.20401260256767273, -0.20066910982131958, -0.04229840636253357, 0.021825307980179787, -0.1840439736843109, 0.40000441670417786, 0.2446717917919159, -0.061810046434402466, 0.10068684816360474, -0.10204201191663742, 0.13294896483421326, 0.055424127727746964, -0.07845570147037506, -0.2822146415710449, 0.25811460614204407, 0.10213371366262436, 0.2248965948820114, 0.023644136264920235, -0.3749105632305145, 0.11698697507381439, 0.2765381932258606, 0.1346704512834549, 0.2371220737695694, 0.26387467980384827, -0.172967329621315, -0.25269371271133423, -0.004354752600193024, -0.26839789748191833, 0.27638572454452515, 0.4303976893424988, 0.2711434066295624, 0.06451396644115448, 0.18417032063007355, -0.1474291831254959, 0.031766440719366074, 0.08132512122392654, -0.044762857258319855, 0.16892534494400024, 0.40215611457824707, 0.03537281975150108, -0.30779847502708435, -0.22236710786819458, -0.08007783442735672, 0.0917738527059555, 0.07413255423307419, -0.044929634779691696, 0.04487752541899681, -0.09523114562034607, 0.05479642376303673, 0.030001284554600716, -0.23472151160240173, -0.19940464198589325, 0.18586444854736328, -0.15036404132843018, -0.307403564453125, 0.046768102794885635, -0.1291738748550415, 0.5056377649307251, -0.0863482728600502, 0.18587028980255127, 0.09080813825130463, -0.2864457070827484, -0.07110755145549774, 0.2793170213699341, 0.2715527415275574, -0.2613438367843628, 0.4054001569747925, 0.0030314524192363024, 0.0979183092713356, -0.2049834281206131, -0.5722054243087769, 0.2662450075149536, -0.15637755393981934, 0.384033739566803, 0.23166829347610474, 0.004728370811790228, 0.1451893299818039, -0.03719174489378929, -0.12772680819034576, -0.1264144629240036, -0.032217711210250854, -0.28407713770866394, -0.006054708268493414, 0.07040417939424515, -0.26155179738998413, -0.35620224475860596, -0.39587971568107605, -0.5152437686920166, 0.3340538740158081, 0.0680241659283638, 0.03180769085884094, -0.0009966884972527623, 0.09404727816581726, 0.3164202868938446, -0.058039307594299316, -0.01213371753692627, -0.1471479833126068, -0.2930305600166321, 0.3443112373352051, -0.11529222130775452, -0.26080822944641113, -0.03801807016134262, -0.22164377570152283, -0.05075426027178764, 0.10410967469215393, -0.48493918776512146, 0.05809126794338226, -0.09005317836999893, 0.26856330037117004, 0.039625708013772964, 0.1388693004846573, 0.14413069188594818, -0.11444781720638275, -0.2215869277715683, -0.11445707827806473, -0.016323287039995193, 0.14494764804840088, 0.3994904160499573, 0.3285677134990692, -0.15401048958301544, 0.2489546835422516, 0.220805361866951, 0.4202841520309448, -0.02827785722911358, -0.23356646299362183, 0.42587223649024963, 0.350013792514801, 0.401177316904068, -0.18070681393146515, -0.019154777750372887, 0.29301121830940247, 0.07572312653064728, -0.08970031887292862, 0.6187446117401123, 0.20414893329143524, -0.2972595989704132, 0.0342048704624176, 0.06477837264537811, 0.04057677462697029, -0.10803192108869553, 0.32483017444610596, -0.12175711244344711, 0.049528732895851135, -0.06468995660543442, -0.6107588410377502, -0.2354193478822708, -0.1349540799856186, -0.044183120131492615, 0.32291558384895325, 0.09536753594875336, 0.05750491842627525, -0.25168952345848083, 0.3593747019767761, -0.31181544065475464, 0.11456573754549026, -0.08850839734077454, 0.015653228387236595, -0.1086447462439537, -0.2872968018054962, -0.13819126784801483, 0.06269463896751404, 0.42511045932769775, -0.33618828654289246, -0.2940460741519928, 0.015960216522216797, 0.3112528324127197, -0.11582246422767639, 0.0431155189871788, -0.39334678649902344, -0.19393055140972137, 0.5661797523498535, 0.46737587451934814, -0.37699636816978455, 0.06188911199569702, 0.193388894200325, 0.29669326543807983, 0.1495273858308792, -0.2640257775783539, -0.13401909172534943, -0.22975027561187744, -0.1849031299352646, 0.1448805034160614, 0.3940480947494507, 0.0007440778426826, 0.10378308594226837, 0.13927330076694489, 0.11360669881105423, 0.021490897983312607, 0.24780148267745972, -0.01233221311122179, -0.0011996105313301086, 0.2568437457084656, -0.11220800131559372, -0.15297093987464905, 0.35427647829055786, 0.21002793312072754, 0.39823806285858154, -0.15964223444461823, -0.27449318766593933, 0.1917804777622223, -0.38132113218307495, 0.30325809121131897, 0.2107837051153183, 0.14935463666915894, 0.1431998312473297, -0.21646453440189362, 0.12741471827030182, -0.1360333412885666, 0.4089285433292389, -0.07265562564134598, 0.06832309067249298, -0.4745437800884247, -0.31341126561164856, 0.3272925317287445, -0.0328475721180439, 0.07083189487457275, 0.2631409764289856, -0.024472838267683983, -0.4681372046470642, 0.35630562901496887, -0.04877582937479019, 0.9720842242240906, -0.03153827413916588, 0.3297247290611267, -0.1556224673986435, 0.12541994452476501, 0.4065484404563904, -0.3534584641456604, 0.005281745456159115, 0.06059796363115311, -0.1813679188489914, 0.05502114072442055, -0.05464984104037285, 0.04906695336103439, 0.5103415846824646, -0.18105514347553253, 0.05174994841217995, -0.1288798749446869, -0.13125289976596832, 0.0034572528675198555, 0.4824610650539398, -0.03699599206447601, -0.25979557633399963, -0.3652406930923462, 0.2879696190357208, 0.04208234325051308, -0.10934960842132568, -0.2554653286933899, -0.23795492947101593, -0.15094467997550964, 0.08356450498104095, -0.4433172345161438, -0.08079824596643448, -0.1639736145734787, 0.00772057194262743, 0.03648192435503006, -0.2103150486946106, 0.43226712942123413, -0.012836760841310024, 0.2519206404685974, 0.16709838807582855, -0.112791508436203, 0.01766965724527836, -0.11122743785381317, -0.01862715370953083, 0.273605614900589, -0.08214668184518814, 0.38782912492752075, -0.04043992981314659, -0.06241152808070183, 0.09686226397752762, 0.10574860870838165, -0.3731238543987274, -0.15210767090320587, -0.025292174890637398, 0.07445358484983444, 0.10056602954864502, -0.257914274930954, 0.2898917496204376, -0.12301669269800186, -0.1712997704744339, 0.22890174388885498, 0.23832322657108307, -0.07252442091703415, 0.005979865323752165, 0.06274566054344177, -0.16646170616149902, -0.2630993127822876, 0.02955660969018936, -0.015819890424609184, -0.08539552986621857, 0.025769414380192757, 0.5174474120140076, -0.24133600294589996, -0.3063097298145294, -0.12147261202335358, 0.2176188975572586, -0.15518979728221893, 0.09932222217321396, 0.17838160693645477, -0.18084415793418884, -0.1649971902370453, 0.003109089331701398, 0.3988017141819, -0.0037681316025555134, 0.012264328077435493, -0.09020043164491653, -0.16947510838508606, 0.1409018635749817, -0.07481120526790619, 0.23218318819999695, -0.23947760462760925, 0.05837847664952278, 0.06534887105226517, 0.19962623715400696, -0.47905880212783813, -0.017211200669407845, -0.1031075268983841, 0.19408266246318817, 0.025797102600336075, -0.11579840630292892, 0.08005376905202866, -0.049821507185697556, 0.14452601969242096, -0.1368616819381714, -0.27446672320365906, -0.336131751537323, -0.1224714070558548, 0.060224130749702454, 0.20105654001235962, -0.05057721585035324, 0.26001349091529846, -0.07517164945602417, -0.28054097294807434, -0.11754143983125687, 0.2650124728679657, -0.1448342353105545, 0.03907104954123497, -0.006453122943639755, 0.3172578513622284, -0.062328584492206573, 0.2591871917247772, 0.024976424872875214, 0.21092835068702698, 0.10001096874475479, 0.21514354646205902, 0.10836063325405121, 0.3262653946876526, -0.0670706257224083, -0.09640013426542282, 0.3150305449962616, 0.09212379902601242, 0.33517858386039734, -0.010292742401361465, 0.09199637919664383, -0.029537850990891457, 0.38191425800323486, 0.27981892228126526, -0.035553641617298126, -0.12999871373176575, 0.008471546694636345, 0.15862396359443665, 0.3344060182571411, -0.4310394823551178, 0.03421526029706001, 0.09247898310422897, 0.052894651889801025, 0.29819077253341675, 0.15847991406917572, 0.2950378656387329, 0.41879546642303467, -0.26169389486312866, 0.03627698868513107, 0.1286180317401886, -0.07247865200042725, 0.2660197615623474, 0.0010158156510442495, 0.08771160989999771, 0.1428157389163971, 0.2457890808582306, 0.13642436265945435, 0.21431954205036163, -0.09795651584863663, -0.10445363074541092, 0.23250526189804077, 0.21938428282737732, -0.08187171071767807, 0.18464620411396027, -0.3057025372982025, 0.05416208505630493, 0.4232194125652313, 0.3285285234451294, 0.254601389169693, -0.054099954664707184, 0.16484865546226501, 0.11537505686283112, 0.045973729342222214, 0.03881585970520973, 0.020447319373488426, -0.03559054434299469, -0.10788669437170029, 0.27130138874053955, -0.24855007231235504, -0.2481551170349121, -0.030102426186203957, -0.16086646914482117, -0.26404184103012085, -0.10024089366197586, 0.08026726543903351, 0.07519602030515671, -0.4136737287044525, 0.12681877613067627, 0.07428885996341705, 0.016285914927721024, -0.212529718875885, 0.2674424648284912, 0.09870307147502899, -0.056928250938653946, 0.14315830171108246, 0.17052558064460754, 0.0042512197978794575, 0.13289925456047058, -0.01274573989212513, 0.16446062922477722, -0.11379259824752808, 0.0115690678358078, -0.43549787998199463, 0.14488154649734497, 0.11398361623287201, 0.16609708964824677, 0.25589990615844727, 0.2096753567457199, -0.3054898679256439, 0.1138867512345314, 0.010847166180610657, -0.14922276139259338, -0.26900410652160645, 0.3347720205783844, 0.025991706177592278, -0.19212521612644196, -0.2373901903629303, 0.18151819705963135, -0.5247014760971069, -0.1559535264968872, 0.7176663279533386, -0.3689732849597931, 0.02992256172001362, -0.22939346730709076, 0.14651639759540558, -0.16444692015647888, 0.43013906478881836, 0.5728151798248291, 0.13414953649044037, -0.04988257586956024, -0.09743112325668335, -0.48568663001060486, 0.08766695111989975, -0.10415692627429962, 0.24734342098236084, -0.1461426317691803, 0.386512815952301, 0.3208930790424347, 0.24349278211593628, -0.1550247073173523, 0.23207531869411469, -0.36581090092658997, -0.033392053097486496, -0.41031864285469055, 0.016491981223225594, -0.09336522966623306, 0.43978601694107056, 0.10920829325914383, -0.011349383741617203, -0.010387900285422802, 0.02388896234333515, 0.13711446523666382, -0.49127650260925293, 0.06741765886545181, 0.08806110918521881, 0.1417618989944458, 0.27198994159698486, -0.037598636001348495, 0.20521655678749084, -0.11541154980659485, -0.26310092210769653, -0.4812108278274536, -0.12634825706481934, -0.22424444556236267, 0.10232694447040558, -0.05590338259935379, 0.24493008852005005, -0.31276482343673706, -0.12228430062532425, 0.025901174172759056, 0.08655337989330292, -0.1114766076207161, -0.10901204496622086, -0.15427453815937042, -0.012650961987674236, -0.057931650429964066, -0.03762153908610344, 0.015035241842269897, 0.26032713055610657, 0.0042968690395355225, -0.19166815280914307, -0.01623639650642872, -0.18273960053920746, 0.10518818348646164, -0.21344900131225586, -0.38954752683639526, -0.11333922296762466, 0.018783776089549065, 0.09921310096979141, -0.06017453223466873, -0.6072435975074768, 0.13068951666355133, 0.3180980086326599, 0.10822849720716476, -0.08029072731733322, 0.35248157382011414, 0.09051870554685593, -0.0578099824488163, -0.16083402931690216, 0.1676836609840393, -0.09851361066102982, -0.1351509839296341, -0.2600598633289337, -0.28521546721458435 ]
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.14401313662528992, -0.12778666615486145, -0.1560758352279663, 0.29339706897735596, 0.21679870784282684, -0.13488902151584625, -0.012058030813932419, 0.09374117851257324, 0.3958023488521576, -0.08629734069108963, -0.29413533210754395, -0.007835129275918007, 0.01967558264732361, -0.042146798223257065, 0.13732199370861053, 0.11360057443380356, 0.22467586398124695, 0.09364861249923706, 0.14461401104927063, -0.13795596361160278, -0.25548142194747925, 0.40843069553375244, 0.03647875785827637, 0.1195254698395729, 0.0535745732486248, 0.24329134821891785, -0.08378467708826065, 0.31918925046920776, -0.06338739395141602, -0.2948625683784485, 0.34699854254722595, 0.1354588270187378, 0.12170415371656418, 0.5947436094284058, -0.00012200587661936879, 0.015369707718491554, 0.4793721139431, -0.09341695159673691, -0.6241422891616821, -0.41021329164505005, 0.020561520010232925, -0.28277701139450073, 0.06464185565710068, -0.07204438000917435, -0.062249645590782166, -0.2690677344799042, -0.010533246211707592, -0.47449514269828796, 0.2986162304878235, 0.41659310460090637, 0.11147566884756088, -0.010823770426213741, 0.07612387090921402, -0.0746552124619484, 0.029588133096694946, 0.38348037004470825, 0.06954851001501083, 0.5175907015800476, 0.2559809386730194, 0.0191782359033823, 0.47579964995384216, 0.13931886851787567, -0.16365014016628265, -0.1841299682855606, 0.16824939846992493, -0.17723459005355835, -0.08079474419355392, -0.22218357026576996, 0.14762574434280396, -0.07496464252471924, 0.4582829773426056, -0.08868671208620071, -0.2649422883987427, -0.24246667325496674, 0.046123750507831573, 0.0547613762319088, 0.2765299677848816, 0.1222158670425415, -0.37785443663597107, 0.2942798137664795, -0.17582546174526215, -0.22104960680007935, -0.1348644644021988, 0.542472243309021, 0.06686287373304367, 0.05457637831568718, -0.19980306923389435, 0.09725624322891235, 0.24034124612808228, -0.140910342335701, -0.0025448808446526527, -0.17237161099910736, 0.18791168928146362, 0.27415338158607483, 0.04766218736767769, 0.2751695513725281, 0.10913386195898056, 0.12290440499782562, 0.012469800189137459, 0.2088608592748642, -0.008324647322297096, 0.06110401079058647, -0.2934056520462036, 0.2661072909832001, 0.14516066014766693, -0.06342997401952744, 0.16142138838768005, -0.05785994604229927, 0.1387721300125122, 0.27373719215393066, -0.2378375083208084, -0.02203536406159401, -0.5131181478500366, -0.226178377866745, -0.40476396679878235, -0.16271179914474487, 0.05269923433661461, -0.18874897062778473, -0.23926959931850433, -0.05375339090824127, 0.23835550248622894, 0.11248567700386047, 0.15007124841213226, 0.4265654683113098, -0.05684073269367218, 0.13092288374900818, 0.01575879380106926, 0.33482128381729126, -0.09720250219106674, 0.16252505779266357, 0.004387694876641035, 0.011590809561312199, -0.23950602114200592, -0.10330554842948914, 0.35648873448371887, -0.1404225379228592, 0.3913661539554596, -0.01331406645476818, 0.01939637027680874, -0.2262604683637619, -0.06517470628023148, -0.17231756448745728, -0.020800985395908356, 0.4110076427459717, -0.050402939319610596, 0.1848830133676529, 0.2301236093044281, -0.3826438784599304, -0.28561311960220337, 0.022011836990714073, -0.4266527593135834, -0.25796109437942505, -0.13708116114139557, 0.08650384843349457, -0.35764411091804504, -0.04830634221434593, -0.25187915563583374, 0.0720793753862381, -0.2459033876657486, -0.36086252331733704, -0.14236406981945038, -0.06262422353029251, 0.05692289397120476, -0.16356657445430756, 0.4047259986400604, 0.6451676487922668, -0.25956231355667114, -0.13386954367160797, -0.2519382834434509, -0.0979309007525444, 0.11668084561824799, 0.15493008494377136, -0.27746960520744324, 0.10031318664550781, -0.42179515957832336, -0.1295698881149292, 0.5071367025375366, -0.388183057308197, -0.10349542647600174, 0.04326895996928215, 0.044207461178302765, 0.43480849266052246, 0.06771790236234665, -0.0021926453337073326, -0.2236296385526657, 0.09360768646001816, 0.11779395490884781, 0.3654600977897644, 0.2958679497241974, -0.315116286277771, -0.043603215366601944, -0.08808918297290802, 0.21523989737033844, 0.43583396077156067, -0.078902468085289, -0.06527908146381378, 0.3209887146949768, -0.017974531278014183, 0.06766902655363083, -0.044331055134534836, -0.11221751570701599, 0.3995004892349243, -0.10023447126150131, 0.6040776371955872, -0.12015578150749207, 0.057932354509830475, -0.16157956421375275, 0.16202813386917114, 0.3629027009010315, -0.0949903279542923, -0.2131405621767044, 0.014591830782592297, -0.5914064645767212, 0.1086382120847702, -0.2440946400165558, -0.07960343360900879, 0.044240809977054596, 0.3385520875453949, 0.20978477597236633, 0.41880491375923157, -0.13033589720726013, 0.5874931812286377, -0.18200485408306122, -0.00044442020589485765, -0.1368412971496582, 0.3376151919364929, -0.07734154164791107, 0.0069123683497309685, -0.025883590802550316, 0.46404409408569336, 0.19163300096988678, -0.07536438852548599, 0.13065974414348602, 0.177581787109375, 0.27571019530296326, 0.14317333698272705, 0.3152179718017578, -0.14597178995609283, 0.013373963534832, -0.18512864410877228, 0.026444336399435997, 0.27511629462242126, 0.1668303906917572, -0.08805622905492783, -0.2502492070198059, 0.15575887262821198, -0.006282045040279627, 0.2842063307762146, 0.14522868394851685, 0.0032308087684214115, 0.2915840148925781, -0.0235693771392107, -0.04595784842967987, -0.16006283462047577, 0.3323229253292084, -0.17024333775043488, 0.5120022892951965, -0.006221594754606485, -0.2748080790042877, 0.1538008153438568, 0.013452607207000256, -0.11309819668531418, 0.06631837785243988, 0.266779363155365, -0.16949127614498138, 0.18209774792194366, 0.16494181752204895, 0.23063592612743378, 0.5306193828582764, 0.15017631649971008, 0.058415379375219345, -0.10424775630235672, 0.1984349489212036, -0.22638830542564392, 0.19611257314682007, 0.07796352356672287, 0.3595772385597229, 0.1046474501490593, 0.1316242814064026, 0.12274233251810074, -0.25726625323295593, -0.5361443161964417, -0.1495712548494339, 0.052208349108695984, -0.2917059361934662, 0.321731299161911, -0.18549475073814392, -0.4013980031013489, -0.3152748942375183, -0.13558493554592133, -0.24927443265914917, -0.363196462392807, -0.18291646242141724, 0.1399182230234146, 0.03793888911604881, -0.04919564723968506, -0.11677470803260803, 0.17152780294418335, -0.21307127177715302, -0.3847949504852295, -0.3287186622619629, -0.08700773864984512, -0.049715954810380936, -0.09377831965684891, 0.41129544377326965, 0.10011935979127884, 0.15648092329502106, -0.49329784512519836, 0.12152888625860214, 0.09445559233427048, -0.4239720404148102, -0.14593933522701263, -0.06582629680633545, 0.19508430361747742, -0.08139221370220184, 0.3485625684261322, -0.23511821031570435, -0.3012843132019043, 0.36197641491889954, -0.019668394699692726, -0.0797763243317604, 0.14906667172908783, 0.20290140807628632, -0.04209820181131363, -0.16451475024223328, -0.03642867133021355, -0.8044570088386536, -0.3288801908493042, 0.15707699954509735, 0.2175290882587433, 0.015412240289151669, 0.44263675808906555, 0.3873106837272644, 0.045233871787786484, -0.034810397773981094, 0.13032765686511993, -0.17641936242580414, -0.35315102338790894, 0.649878203868866, -0.3994513154029846, -0.28472641110420227, 0.11822333186864853, 0.2317681759595871, 0.21421396732330322, -0.3526262640953064, -0.48641765117645264, 0.08043470978736877, 0.07730691134929657, 0.28777337074279785, -0.044832516461610794, 0.14167197048664093, -0.08675435185432434, -0.06892842054367065, -0.04603879898786545, -0.13496142625808716, -0.01358407735824585, -0.11639150232076645, -0.3259769678115845, 0.2562922537326813, 0.0006419603596441448, 0.11283406615257263, -0.20480819046497345, 0.585080087184906, 0.1846076101064682, 0.12979012727737427, 0.3108220398426056, -0.0963970497250557, 0.6860241293907166, -0.10074719041585922, -0.49535682797431946, -0.01854616589844227, -0.04261016100645065, 0.06467726081609726, 0.11252280324697495, 0.30213555693626404, -0.17055097222328186, -0.4108614921569824, 0.05266503244638443, -0.601784884929657, -0.08143774420022964, 0.11225588619709015, -0.17888770997524261, 0.02572750486433506, 0.09258992969989777, -0.18985961377620697, -0.3393608331680298, -0.16956286132335663, 0.005545257590711117, 0.557510495185852, -0.050122544169425964, 0.3014127314090729, -0.5939540863037109, -0.2490042895078659, -0.15691101551055908, 0.19279034435749054, -0.1274878829717636, 0.255753755569458, -0.32643067836761475, 0.08634746074676514, 0.13260096311569214, -0.013539192266762257, 0.46682217717170715, -0.007301414851099253, -0.0018595909932628274, 0.21523511409759521, 0.21335993707180023, -0.6372413635253906, 0.13661155104637146, 0.185287207365036, 0.138809472322464, 0.46349194645881653, 0.31167301535606384, -0.186247318983078, -0.053309813141822815, -0.05283684283494949, 0.399260550737381, -0.09941200911998749, -0.14123855531215668, -0.43895187973976135, -0.5290262699127197, -0.33301788568496704, -0.3466005027294159, 0.041628558188676834, 0.30008941888809204, -0.11271893978118896, 0.14799484610557556, -0.03924702852964401, 0.08828102052211761, 0.19739563763141632, 0.2150367945432663, 0.3390176594257355, 0.20293836295604706, -0.15176795423030853, 0.21569208800792694, 0.20739203691482544, 0.18645773828029633, 0.8277194499969482, -0.028063734993338585, -0.4729880690574646, -0.06765052676200867, -0.16844451427459717, 0.2539023160934448, 0.2572746276855469, -0.052551042288541794, -0.2643865644931793, 0.08625253289937973, -0.061641521751880646, -0.10605087131261826, 0.2844645380973816, -0.0042867884039878845, 0.1814717948436737, -0.14841997623443604, -0.38328444957733154, 0.4944523870944977, -0.05227511376142502, -0.018716413527727127, 0.14876829087734222, 0.16030341386795044, -0.14534316956996918, 0.21555054187774658, -0.29603222012519836, 1.1821036338806152, 0.08365625888109207, 0.16198517382144928, 0.1922806203365326, -0.1424454301595688, 0.3413342833518982, -0.24916984140872955, -0.06682785600423813, -0.01653120666742325, 0.18411698937416077, -0.007436204701662064, -0.15055501461029053, 0.280647873878479, 0.18582695722579956, 0.020497098565101624, 0.00369789800606668, -0.09629606455564499, 0.029985373839735985, 0.09892542660236359, 0.4379954934120178, 0.12777762115001678, -0.018050096929073334, -0.5319260358810425, 0.1279686987400055, -0.007052876986563206, 0.6483984589576721, -0.05896453186869621, -0.15015554428100586, -0.621979832649231, 0.04173489287495613, -0.169757679104805, 0.05595102533698082, -0.17638397216796875, 0.30468830466270447, -0.024275463074445724, -0.45570266246795654, -0.13109727203845978, 0.38234633207321167, 0.41583943367004395, 0.06284881383180618, -0.21002747118473053, 0.19425180554389954, -0.0006200475036166608, -0.237875297665596, 0.14082558453083038, -0.2639215290546417, 0.09897492080926895, -0.16573560237884521, -0.3407818675041199, 0.2149273306131363, -0.05379492789506912, -0.3472226560115814, 0.1409187912940979, 0.0401330403983593, 0.2564258873462677, 0.04654894396662712, -0.43167468905448914, 0.0652010589838028, 0.24917221069335938, -0.12109971791505814, 0.0465644970536232, 0.032913655042648315, 0.047079697251319885, -0.20226120948791504, -0.22350989282131195, -0.07866798341274261, -0.09127803146839142, 0.4528016448020935, -0.2509528398513794, -0.1783558428287506, 0.37617093324661255, 0.13131111860275269, -0.29860207438468933, -0.09497149288654327, 0.1794079840183258, -0.0717819556593895, -0.4908859133720398, -0.34832215309143066, 0.025864046066999435, -0.03631587326526642, -0.3221878707408905, 0.16685117781162262, 0.26644203066825867, -0.2686610817909241, 0.13787983357906342, -0.7992357611656189, -0.009051716886460781, 0.21488426625728607, 0.0030065523460507393, 0.02401823177933693, 0.14952564239501953, -0.18887580931186676, 0.17739173769950867, -0.1492817997932434, -0.20867319405078888, 0.10378037393093109, -0.20426364243030548, -0.07088612020015717, 0.3645164668560028, 0.0797683596611023, 0.1445767879486084, -0.2587425708770752, 0.03317740559577942, -0.3906819820404053, 0.07116029411554337, -0.13811394572257996, -0.02324853651225567, 0.16778837144374847, -0.030742071568965912, -0.07363615185022354, -0.18448837101459503, -0.42346879839897156, 0.04950900375843048, -0.09760263562202454, -0.15040579438209534, -0.028670573607087135, 0.05166323110461235, -0.14117877185344696, -0.09389793127775192, 0.34864407777786255, -0.0014626977499574423, 0.21085165441036224, 0.0660797506570816, 0.5716878175735474, 0.036540575325489044, 0.025320790708065033, 0.10666025429964066, 0.010491264052689075, -0.05285651981830597, 0.11874201893806458, -0.1242651492357254, 0.17279449105262756, 0.3727683424949646, -0.3196752369403839, 0.32497355341911316, 0.12096458673477173, -0.003580913646146655, 0.507780909538269, -0.4413672983646393, 0.14628934860229492, 0.30294734239578247, 0.047582659870386124, -0.2808191776275635, -0.18597905337810516, 0.4009406268596649, 0.05550410971045494, -0.061602961272001266, 0.2878831923007965, 0.2537675201892853, -0.18906018137931824, 0.3890489935874939, 0.12931258976459503, 0.46279072761535645, 0.4501364529132843, 0.20297878980636597, 0.09399206936359406, 0.07953867316246033, 0.03933446854352951, -0.07040902972221375, 0.3201732337474823, -0.03206944093108177, 0.4540104568004608, -0.261349618434906, 0.10916947573423386, 0.04258519038558006, 0.17199280858039856, -0.19054676592350006, -0.22671537101268768, 0.16927236318588257, -0.16528227925300598, 0.03991096839308739, 0.04554226994514465, -0.16025763750076294, 0.41409388184547424, -0.4061875641345978, -0.11181540042161942, 0.019763275980949402, 0.24205473065376282, 0.04568236693739891, -0.048439670354127884, -0.22430163621902466, -0.2722089886665344, -0.13577435910701752, -0.18459199368953705, 0.13575409352779388, -0.523267388343811, 0.20458784699440002, 0.14819134771823883, -0.15736143290996552, -0.29575812816619873, -0.02270524390041828, 0.268961638212204, 0.07167605310678482, -0.11483655869960785, 0.3266045153141022, 0.2135400027036667, 0.0652032196521759, 0.11184713244438171, 0.2881090044975281, 0.46425798535346985, 0.2599305510520935, -0.11090307682752609, -0.005332025699317455, -0.005477248225361109, -0.15168750286102295, -0.25877952575683594, 0.26074957847595215, 0.07048045843839645, 0.05745333805680275, 0.3448995351791382, 0.16660787165164948, -0.09344498068094254, -0.10949575901031494, 0.2727864682674408, 0.014625842683017254, -0.17558111250400543, 0.1559969037771225, -0.4784344732761383, -0.010587578639388084, -0.30960893630981445, 0.0426061786711216, -0.3361673057079315, -0.011535695753991604, 0.2119975984096527, 0.02448013797402382, 0.14570076763629913, -0.20482772588729858, 0.024098942056298256, 0.03940718248486519, 0.4086044728755951, 0.3885653614997864, 0.2942710518836975, -0.26161471009254456, -0.5872484445571899, -0.8084725737571716, 0.13738061487674713, -0.20188991725444794, -0.48725348711013794, 0.03158675134181976, -0.10723846405744553, 0.07699425518512726, 0.2530306577682495, 0.01596764847636223, 0.3099043369293213, -0.08012750744819641, -0.10848497599363327, -0.26100242137908936, -0.2317066341638565, -0.2546117603778839, 0.0900811031460762, -0.19034631550312042, -0.1421099752187729, 0.19017857313156128, -0.5949852466583252, 0.0008111038478091359, 0.16394779086112976, -0.10576561093330383, -0.20820577442646027, -0.04787681996822357, 0.5655728578567505, -0.11495308578014374, 0.26843732595443726, 0.04792718216776848, -0.23052814602851868, -0.11256489157676697, -0.25216129422187805, 0.16323330998420715, 0.6077472567558289, 0.007040015421807766, 0.25515440106391907, -0.48122167587280273, 0.016991203650832176, -0.08850943297147751, -0.026374487206339836, 0.28126847743988037, -0.1549226939678192, 0.1070503443479538, -0.07855743169784546, -0.10624105483293533, 0.25990018248558044, 0.29369503259658813, 0.304879367351532, -0.2413356751203537, 0.1766888052225113, -0.1652909219264984, -0.112480528652668, 0.32345452904701233, -0.30523669719696045, -0.26124367117881775, 0.1704801768064499, 0.13559113442897797, 0.0898243859410286, 0.17520202696323395, -0.2406042069196701, 0.18920722603797913, 0.33137238025665283, 0.15251095592975616, -0.19498704373836517, 0.2746855616569519, -0.3622036576271057, -0.16525979340076447, -0.045217182487249374, 0.13301193714141846, 0.032342758029699326, 0.01082549151033163, 0.020679710432887077, -0.025502946227788925 ]
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.14401313662528992, -0.12778666615486145, -0.1560758352279663, 0.29339706897735596, 0.21679870784282684, -0.13488902151584625, -0.012058030813932419, 0.09374117851257324, 0.3958023488521576, -0.08629734069108963, -0.29413533210754395, -0.007835129275918007, 0.01967558264732361, -0.042146798223257065, 0.13732199370861053, 0.11360057443380356, 0.22467586398124695, 0.09364861249923706, 0.14461401104927063, -0.13795596361160278, -0.25548142194747925, 0.40843069553375244, 0.03647875785827637, 0.1195254698395729, 0.0535745732486248, 0.24329134821891785, -0.08378467708826065, 0.31918925046920776, -0.06338739395141602, -0.2948625683784485, 0.34699854254722595, 0.1354588270187378, 0.12170415371656418, 0.5947436094284058, -0.00012200587661936879, 0.015369707718491554, 0.4793721139431, -0.09341695159673691, -0.6241422891616821, -0.41021329164505005, 0.020561520010232925, -0.28277701139450073, 0.06464185565710068, -0.07204438000917435, -0.062249645590782166, -0.2690677344799042, -0.010533246211707592, -0.47449514269828796, 0.2986162304878235, 0.41659310460090637, 0.11147566884756088, -0.010823770426213741, 0.07612387090921402, -0.0746552124619484, 0.029588133096694946, 0.38348037004470825, 0.06954851001501083, 0.5175907015800476, 0.2559809386730194, 0.0191782359033823, 0.47579964995384216, 0.13931886851787567, -0.16365014016628265, -0.1841299682855606, 0.16824939846992493, -0.17723459005355835, -0.08079474419355392, -0.22218357026576996, 0.14762574434280396, -0.07496464252471924, 0.4582829773426056, -0.08868671208620071, -0.2649422883987427, -0.24246667325496674, 0.046123750507831573, 0.0547613762319088, 0.2765299677848816, 0.1222158670425415, -0.37785443663597107, 0.2942798137664795, -0.17582546174526215, -0.22104960680007935, -0.1348644644021988, 0.542472243309021, 0.06686287373304367, 0.05457637831568718, -0.19980306923389435, 0.09725624322891235, 0.24034124612808228, -0.140910342335701, -0.0025448808446526527, -0.17237161099910736, 0.18791168928146362, 0.27415338158607483, 0.04766218736767769, 0.2751695513725281, 0.10913386195898056, 0.12290440499782562, 0.012469800189137459, 0.2088608592748642, -0.008324647322297096, 0.06110401079058647, -0.2934056520462036, 0.2661072909832001, 0.14516066014766693, -0.06342997401952744, 0.16142138838768005, -0.05785994604229927, 0.1387721300125122, 0.27373719215393066, -0.2378375083208084, -0.02203536406159401, -0.5131181478500366, -0.226178377866745, -0.40476396679878235, -0.16271179914474487, 0.05269923433661461, -0.18874897062778473, -0.23926959931850433, -0.05375339090824127, 0.23835550248622894, 0.11248567700386047, 0.15007124841213226, 0.4265654683113098, -0.05684073269367218, 0.13092288374900818, 0.01575879380106926, 0.33482128381729126, -0.09720250219106674, 0.16252505779266357, 0.004387694876641035, 0.011590809561312199, -0.23950602114200592, -0.10330554842948914, 0.35648873448371887, -0.1404225379228592, 0.3913661539554596, -0.01331406645476818, 0.01939637027680874, -0.2262604683637619, -0.06517470628023148, -0.17231756448745728, -0.020800985395908356, 0.4110076427459717, -0.050402939319610596, 0.1848830133676529, 0.2301236093044281, -0.3826438784599304, -0.28561311960220337, 0.022011836990714073, -0.4266527593135834, -0.25796109437942505, -0.13708116114139557, 0.08650384843349457, -0.35764411091804504, -0.04830634221434593, -0.25187915563583374, 0.0720793753862381, -0.2459033876657486, -0.36086252331733704, -0.14236406981945038, -0.06262422353029251, 0.05692289397120476, -0.16356657445430756, 0.4047259986400604, 0.6451676487922668, -0.25956231355667114, -0.13386954367160797, -0.2519382834434509, -0.0979309007525444, 0.11668084561824799, 0.15493008494377136, -0.27746960520744324, 0.10031318664550781, -0.42179515957832336, -0.1295698881149292, 0.5071367025375366, -0.388183057308197, -0.10349542647600174, 0.04326895996928215, 0.044207461178302765, 0.43480849266052246, 0.06771790236234665, -0.0021926453337073326, -0.2236296385526657, 0.09360768646001816, 0.11779395490884781, 0.3654600977897644, 0.2958679497241974, -0.315116286277771, -0.043603215366601944, -0.08808918297290802, 0.21523989737033844, 0.43583396077156067, -0.078902468085289, -0.06527908146381378, 0.3209887146949768, -0.017974531278014183, 0.06766902655363083, -0.044331055134534836, -0.11221751570701599, 0.3995004892349243, -0.10023447126150131, 0.6040776371955872, -0.12015578150749207, 0.057932354509830475, -0.16157956421375275, 0.16202813386917114, 0.3629027009010315, -0.0949903279542923, -0.2131405621767044, 0.014591830782592297, -0.5914064645767212, 0.1086382120847702, -0.2440946400165558, -0.07960343360900879, 0.044240809977054596, 0.3385520875453949, 0.20978477597236633, 0.41880491375923157, -0.13033589720726013, 0.5874931812286377, -0.18200485408306122, -0.00044442020589485765, -0.1368412971496582, 0.3376151919364929, -0.07734154164791107, 0.0069123683497309685, -0.025883590802550316, 0.46404409408569336, 0.19163300096988678, -0.07536438852548599, 0.13065974414348602, 0.177581787109375, 0.27571019530296326, 0.14317333698272705, 0.3152179718017578, -0.14597178995609283, 0.013373963534832, -0.18512864410877228, 0.026444336399435997, 0.27511629462242126, 0.1668303906917572, -0.08805622905492783, -0.2502492070198059, 0.15575887262821198, -0.006282045040279627, 0.2842063307762146, 0.14522868394851685, 0.0032308087684214115, 0.2915840148925781, -0.0235693771392107, -0.04595784842967987, -0.16006283462047577, 0.3323229253292084, -0.17024333775043488, 0.5120022892951965, -0.006221594754606485, -0.2748080790042877, 0.1538008153438568, 0.013452607207000256, -0.11309819668531418, 0.06631837785243988, 0.266779363155365, -0.16949127614498138, 0.18209774792194366, 0.16494181752204895, 0.23063592612743378, 0.5306193828582764, 0.15017631649971008, 0.058415379375219345, -0.10424775630235672, 0.1984349489212036, -0.22638830542564392, 0.19611257314682007, 0.07796352356672287, 0.3595772385597229, 0.1046474501490593, 0.1316242814064026, 0.12274233251810074, -0.25726625323295593, -0.5361443161964417, -0.1495712548494339, 0.052208349108695984, -0.2917059361934662, 0.321731299161911, -0.18549475073814392, -0.4013980031013489, -0.3152748942375183, -0.13558493554592133, -0.24927443265914917, -0.363196462392807, -0.18291646242141724, 0.1399182230234146, 0.03793888911604881, -0.04919564723968506, -0.11677470803260803, 0.17152780294418335, -0.21307127177715302, -0.3847949504852295, -0.3287186622619629, -0.08700773864984512, -0.049715954810380936, -0.09377831965684891, 0.41129544377326965, 0.10011935979127884, 0.15648092329502106, -0.49329784512519836, 0.12152888625860214, 0.09445559233427048, -0.4239720404148102, -0.14593933522701263, -0.06582629680633545, 0.19508430361747742, -0.08139221370220184, 0.3485625684261322, -0.23511821031570435, -0.3012843132019043, 0.36197641491889954, -0.019668394699692726, -0.0797763243317604, 0.14906667172908783, 0.20290140807628632, -0.04209820181131363, -0.16451475024223328, -0.03642867133021355, -0.8044570088386536, -0.3288801908493042, 0.15707699954509735, 0.2175290882587433, 0.015412240289151669, 0.44263675808906555, 0.3873106837272644, 0.045233871787786484, -0.034810397773981094, 0.13032765686511993, -0.17641936242580414, -0.35315102338790894, 0.649878203868866, -0.3994513154029846, -0.28472641110420227, 0.11822333186864853, 0.2317681759595871, 0.21421396732330322, -0.3526262640953064, -0.48641765117645264, 0.08043470978736877, 0.07730691134929657, 0.28777337074279785, -0.044832516461610794, 0.14167197048664093, -0.08675435185432434, -0.06892842054367065, -0.04603879898786545, -0.13496142625808716, -0.01358407735824585, -0.11639150232076645, -0.3259769678115845, 0.2562922537326813, 0.0006419603596441448, 0.11283406615257263, -0.20480819046497345, 0.585080087184906, 0.1846076101064682, 0.12979012727737427, 0.3108220398426056, -0.0963970497250557, 0.6860241293907166, -0.10074719041585922, -0.49535682797431946, -0.01854616589844227, -0.04261016100645065, 0.06467726081609726, 0.11252280324697495, 0.30213555693626404, -0.17055097222328186, -0.4108614921569824, 0.05266503244638443, -0.601784884929657, -0.08143774420022964, 0.11225588619709015, -0.17888770997524261, 0.02572750486433506, 0.09258992969989777, -0.18985961377620697, -0.3393608331680298, -0.16956286132335663, 0.005545257590711117, 0.557510495185852, -0.050122544169425964, 0.3014127314090729, -0.5939540863037109, -0.2490042895078659, -0.15691101551055908, 0.19279034435749054, -0.1274878829717636, 0.255753755569458, -0.32643067836761475, 0.08634746074676514, 0.13260096311569214, -0.013539192266762257, 0.46682217717170715, -0.007301414851099253, -0.0018595909932628274, 0.21523511409759521, 0.21335993707180023, -0.6372413635253906, 0.13661155104637146, 0.185287207365036, 0.138809472322464, 0.46349194645881653, 0.31167301535606384, -0.186247318983078, -0.053309813141822815, -0.05283684283494949, 0.399260550737381, -0.09941200911998749, -0.14123855531215668, -0.43895187973976135, -0.5290262699127197, -0.33301788568496704, -0.3466005027294159, 0.041628558188676834, 0.30008941888809204, -0.11271893978118896, 0.14799484610557556, -0.03924702852964401, 0.08828102052211761, 0.19739563763141632, 0.2150367945432663, 0.3390176594257355, 0.20293836295604706, -0.15176795423030853, 0.21569208800792694, 0.20739203691482544, 0.18645773828029633, 0.8277194499969482, -0.028063734993338585, -0.4729880690574646, -0.06765052676200867, -0.16844451427459717, 0.2539023160934448, 0.2572746276855469, -0.052551042288541794, -0.2643865644931793, 0.08625253289937973, -0.061641521751880646, -0.10605087131261826, 0.2844645380973816, -0.0042867884039878845, 0.1814717948436737, -0.14841997623443604, -0.38328444957733154, 0.4944523870944977, -0.05227511376142502, -0.018716413527727127, 0.14876829087734222, 0.16030341386795044, -0.14534316956996918, 0.21555054187774658, -0.29603222012519836, 1.1821036338806152, 0.08365625888109207, 0.16198517382144928, 0.1922806203365326, -0.1424454301595688, 0.3413342833518982, -0.24916984140872955, -0.06682785600423813, -0.01653120666742325, 0.18411698937416077, -0.007436204701662064, -0.15055501461029053, 0.280647873878479, 0.18582695722579956, 0.020497098565101624, 0.00369789800606668, -0.09629606455564499, 0.029985373839735985, 0.09892542660236359, 0.4379954934120178, 0.12777762115001678, -0.018050096929073334, -0.5319260358810425, 0.1279686987400055, -0.007052876986563206, 0.6483984589576721, -0.05896453186869621, -0.15015554428100586, -0.621979832649231, 0.04173489287495613, -0.169757679104805, 0.05595102533698082, -0.17638397216796875, 0.30468830466270447, -0.024275463074445724, -0.45570266246795654, -0.13109727203845978, 0.38234633207321167, 0.41583943367004395, 0.06284881383180618, -0.21002747118473053, 0.19425180554389954, -0.0006200475036166608, -0.237875297665596, 0.14082558453083038, -0.2639215290546417, 0.09897492080926895, -0.16573560237884521, -0.3407818675041199, 0.2149273306131363, -0.05379492789506912, -0.3472226560115814, 0.1409187912940979, 0.0401330403983593, 0.2564258873462677, 0.04654894396662712, -0.43167468905448914, 0.0652010589838028, 0.24917221069335938, -0.12109971791505814, 0.0465644970536232, 0.032913655042648315, 0.047079697251319885, -0.20226120948791504, -0.22350989282131195, -0.07866798341274261, -0.09127803146839142, 0.4528016448020935, -0.2509528398513794, -0.1783558428287506, 0.37617093324661255, 0.13131111860275269, -0.29860207438468933, -0.09497149288654327, 0.1794079840183258, -0.0717819556593895, -0.4908859133720398, -0.34832215309143066, 0.025864046066999435, -0.03631587326526642, -0.3221878707408905, 0.16685117781162262, 0.26644203066825867, -0.2686610817909241, 0.13787983357906342, -0.7992357611656189, -0.009051716886460781, 0.21488426625728607, 0.0030065523460507393, 0.02401823177933693, 0.14952564239501953, -0.18887580931186676, 0.17739173769950867, -0.1492817997932434, -0.20867319405078888, 0.10378037393093109, -0.20426364243030548, -0.07088612020015717, 0.3645164668560028, 0.0797683596611023, 0.1445767879486084, -0.2587425708770752, 0.03317740559577942, -0.3906819820404053, 0.07116029411554337, -0.13811394572257996, -0.02324853651225567, 0.16778837144374847, -0.030742071568965912, -0.07363615185022354, -0.18448837101459503, -0.42346879839897156, 0.04950900375843048, -0.09760263562202454, -0.15040579438209534, -0.028670573607087135, 0.05166323110461235, -0.14117877185344696, -0.09389793127775192, 0.34864407777786255, -0.0014626977499574423, 0.21085165441036224, 0.0660797506570816, 0.5716878175735474, 0.036540575325489044, 0.025320790708065033, 0.10666025429964066, 0.010491264052689075, -0.05285651981830597, 0.11874201893806458, -0.1242651492357254, 0.17279449105262756, 0.3727683424949646, -0.3196752369403839, 0.32497355341911316, 0.12096458673477173, -0.003580913646146655, 0.507780909538269, -0.4413672983646393, 0.14628934860229492, 0.30294734239578247, 0.047582659870386124, -0.2808191776275635, -0.18597905337810516, 0.4009406268596649, 0.05550410971045494, -0.061602961272001266, 0.2878831923007965, 0.2537675201892853, -0.18906018137931824, 0.3890489935874939, 0.12931258976459503, 0.46279072761535645, 0.4501364529132843, 0.20297878980636597, 0.09399206936359406, 0.07953867316246033, 0.03933446854352951, -0.07040902972221375, 0.3201732337474823, -0.03206944093108177, 0.4540104568004608, -0.261349618434906, 0.10916947573423386, 0.04258519038558006, 0.17199280858039856, -0.19054676592350006, -0.22671537101268768, 0.16927236318588257, -0.16528227925300598, 0.03991096839308739, 0.04554226994514465, -0.16025763750076294, 0.41409388184547424, -0.4061875641345978, -0.11181540042161942, 0.019763275980949402, 0.24205473065376282, 0.04568236693739891, -0.048439670354127884, -0.22430163621902466, -0.2722089886665344, -0.13577435910701752, -0.18459199368953705, 0.13575409352779388, -0.523267388343811, 0.20458784699440002, 0.14819134771823883, -0.15736143290996552, -0.29575812816619873, -0.02270524390041828, 0.268961638212204, 0.07167605310678482, -0.11483655869960785, 0.3266045153141022, 0.2135400027036667, 0.0652032196521759, 0.11184713244438171, 0.2881090044975281, 0.46425798535346985, 0.2599305510520935, -0.11090307682752609, -0.005332025699317455, -0.005477248225361109, -0.15168750286102295, -0.25877952575683594, 0.26074957847595215, 0.07048045843839645, 0.05745333805680275, 0.3448995351791382, 0.16660787165164948, -0.09344498068094254, -0.10949575901031494, 0.2727864682674408, 0.014625842683017254, -0.17558111250400543, 0.1559969037771225, -0.4784344732761383, -0.010587578639388084, -0.30960893630981445, 0.0426061786711216, -0.3361673057079315, -0.011535695753991604, 0.2119975984096527, 0.02448013797402382, 0.14570076763629913, -0.20482772588729858, 0.024098942056298256, 0.03940718248486519, 0.4086044728755951, 0.3885653614997864, 0.2942710518836975, -0.26161471009254456, -0.5872484445571899, -0.8084725737571716, 0.13738061487674713, -0.20188991725444794, -0.48725348711013794, 0.03158675134181976, -0.10723846405744553, 0.07699425518512726, 0.2530306577682495, 0.01596764847636223, 0.3099043369293213, -0.08012750744819641, -0.10848497599363327, -0.26100242137908936, -0.2317066341638565, -0.2546117603778839, 0.0900811031460762, -0.19034631550312042, -0.1421099752187729, 0.19017857313156128, -0.5949852466583252, 0.0008111038478091359, 0.16394779086112976, -0.10576561093330383, -0.20820577442646027, -0.04787681996822357, 0.5655728578567505, -0.11495308578014374, 0.26843732595443726, 0.04792718216776848, -0.23052814602851868, -0.11256489157676697, -0.25216129422187805, 0.16323330998420715, 0.6077472567558289, 0.007040015421807766, 0.25515440106391907, -0.48122167587280273, 0.016991203650832176, -0.08850943297147751, -0.026374487206339836, 0.28126847743988037, -0.1549226939678192, 0.1070503443479538, -0.07855743169784546, -0.10624105483293533, 0.25990018248558044, 0.29369503259658813, 0.304879367351532, -0.2413356751203537, 0.1766888052225113, -0.1652909219264984, -0.112480528652668, 0.32345452904701233, -0.30523669719696045, -0.26124367117881775, 0.1704801768064499, 0.13559113442897797, 0.0898243859410286, 0.17520202696323395, -0.2406042069196701, 0.18920722603797913, 0.33137238025665283, 0.15251095592975616, -0.19498704373836517, 0.2746855616569519, -0.3622036576271057, -0.16525979340076447, -0.045217182487249374, 0.13301193714141846, 0.032342758029699326, 0.01082549151033163, 0.020679710432887077, -0.025502946227788925 ]
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.14401313662528992, -0.12778666615486145, -0.1560758352279663, 0.29339706897735596, 0.21679870784282684, -0.13488902151584625, -0.012058030813932419, 0.09374117851257324, 0.3958023488521576, -0.08629734069108963, -0.29413533210754395, -0.007835129275918007, 0.01967558264732361, -0.042146798223257065, 0.13732199370861053, 0.11360057443380356, 0.22467586398124695, 0.09364861249923706, 0.14461401104927063, -0.13795596361160278, -0.25548142194747925, 0.40843069553375244, 0.03647875785827637, 0.1195254698395729, 0.0535745732486248, 0.24329134821891785, -0.08378467708826065, 0.31918925046920776, -0.06338739395141602, -0.2948625683784485, 0.34699854254722595, 0.1354588270187378, 0.12170415371656418, 0.5947436094284058, -0.00012200587661936879, 0.015369707718491554, 0.4793721139431, -0.09341695159673691, -0.6241422891616821, -0.41021329164505005, 0.020561520010232925, -0.28277701139450073, 0.06464185565710068, -0.07204438000917435, -0.062249645590782166, -0.2690677344799042, -0.010533246211707592, -0.47449514269828796, 0.2986162304878235, 0.41659310460090637, 0.11147566884756088, -0.010823770426213741, 0.07612387090921402, -0.0746552124619484, 0.029588133096694946, 0.38348037004470825, 0.06954851001501083, 0.5175907015800476, 0.2559809386730194, 0.0191782359033823, 0.47579964995384216, 0.13931886851787567, -0.16365014016628265, -0.1841299682855606, 0.16824939846992493, -0.17723459005355835, -0.08079474419355392, -0.22218357026576996, 0.14762574434280396, -0.07496464252471924, 0.4582829773426056, -0.08868671208620071, -0.2649422883987427, -0.24246667325496674, 0.046123750507831573, 0.0547613762319088, 0.2765299677848816, 0.1222158670425415, -0.37785443663597107, 0.2942798137664795, -0.17582546174526215, -0.22104960680007935, -0.1348644644021988, 0.542472243309021, 0.06686287373304367, 0.05457637831568718, -0.19980306923389435, 0.09725624322891235, 0.24034124612808228, -0.140910342335701, -0.0025448808446526527, -0.17237161099910736, 0.18791168928146362, 0.27415338158607483, 0.04766218736767769, 0.2751695513725281, 0.10913386195898056, 0.12290440499782562, 0.012469800189137459, 0.2088608592748642, -0.008324647322297096, 0.06110401079058647, -0.2934056520462036, 0.2661072909832001, 0.14516066014766693, -0.06342997401952744, 0.16142138838768005, -0.05785994604229927, 0.1387721300125122, 0.27373719215393066, -0.2378375083208084, -0.02203536406159401, -0.5131181478500366, -0.226178377866745, -0.40476396679878235, -0.16271179914474487, 0.05269923433661461, -0.18874897062778473, -0.23926959931850433, -0.05375339090824127, 0.23835550248622894, 0.11248567700386047, 0.15007124841213226, 0.4265654683113098, -0.05684073269367218, 0.13092288374900818, 0.01575879380106926, 0.33482128381729126, -0.09720250219106674, 0.16252505779266357, 0.004387694876641035, 0.011590809561312199, -0.23950602114200592, -0.10330554842948914, 0.35648873448371887, -0.1404225379228592, 0.3913661539554596, -0.01331406645476818, 0.01939637027680874, -0.2262604683637619, -0.06517470628023148, -0.17231756448745728, -0.020800985395908356, 0.4110076427459717, -0.050402939319610596, 0.1848830133676529, 0.2301236093044281, -0.3826438784599304, -0.28561311960220337, 0.022011836990714073, -0.4266527593135834, -0.25796109437942505, -0.13708116114139557, 0.08650384843349457, -0.35764411091804504, -0.04830634221434593, -0.25187915563583374, 0.0720793753862381, -0.2459033876657486, -0.36086252331733704, -0.14236406981945038, -0.06262422353029251, 0.05692289397120476, -0.16356657445430756, 0.4047259986400604, 0.6451676487922668, -0.25956231355667114, -0.13386954367160797, -0.2519382834434509, -0.0979309007525444, 0.11668084561824799, 0.15493008494377136, -0.27746960520744324, 0.10031318664550781, -0.42179515957832336, -0.1295698881149292, 0.5071367025375366, -0.388183057308197, -0.10349542647600174, 0.04326895996928215, 0.044207461178302765, 0.43480849266052246, 0.06771790236234665, -0.0021926453337073326, -0.2236296385526657, 0.09360768646001816, 0.11779395490884781, 0.3654600977897644, 0.2958679497241974, -0.315116286277771, -0.043603215366601944, -0.08808918297290802, 0.21523989737033844, 0.43583396077156067, -0.078902468085289, -0.06527908146381378, 0.3209887146949768, -0.017974531278014183, 0.06766902655363083, -0.044331055134534836, -0.11221751570701599, 0.3995004892349243, -0.10023447126150131, 0.6040776371955872, -0.12015578150749207, 0.057932354509830475, -0.16157956421375275, 0.16202813386917114, 0.3629027009010315, -0.0949903279542923, -0.2131405621767044, 0.014591830782592297, -0.5914064645767212, 0.1086382120847702, -0.2440946400165558, -0.07960343360900879, 0.044240809977054596, 0.3385520875453949, 0.20978477597236633, 0.41880491375923157, -0.13033589720726013, 0.5874931812286377, -0.18200485408306122, -0.00044442020589485765, -0.1368412971496582, 0.3376151919364929, -0.07734154164791107, 0.0069123683497309685, -0.025883590802550316, 0.46404409408569336, 0.19163300096988678, -0.07536438852548599, 0.13065974414348602, 0.177581787109375, 0.27571019530296326, 0.14317333698272705, 0.3152179718017578, -0.14597178995609283, 0.013373963534832, -0.18512864410877228, 0.026444336399435997, 0.27511629462242126, 0.1668303906917572, -0.08805622905492783, -0.2502492070198059, 0.15575887262821198, -0.006282045040279627, 0.2842063307762146, 0.14522868394851685, 0.0032308087684214115, 0.2915840148925781, -0.0235693771392107, -0.04595784842967987, -0.16006283462047577, 0.3323229253292084, -0.17024333775043488, 0.5120022892951965, -0.006221594754606485, -0.2748080790042877, 0.1538008153438568, 0.013452607207000256, -0.11309819668531418, 0.06631837785243988, 0.266779363155365, -0.16949127614498138, 0.18209774792194366, 0.16494181752204895, 0.23063592612743378, 0.5306193828582764, 0.15017631649971008, 0.058415379375219345, -0.10424775630235672, 0.1984349489212036, -0.22638830542564392, 0.19611257314682007, 0.07796352356672287, 0.3595772385597229, 0.1046474501490593, 0.1316242814064026, 0.12274233251810074, -0.25726625323295593, -0.5361443161964417, -0.1495712548494339, 0.052208349108695984, -0.2917059361934662, 0.321731299161911, -0.18549475073814392, -0.4013980031013489, -0.3152748942375183, -0.13558493554592133, -0.24927443265914917, -0.363196462392807, -0.18291646242141724, 0.1399182230234146, 0.03793888911604881, -0.04919564723968506, -0.11677470803260803, 0.17152780294418335, -0.21307127177715302, -0.3847949504852295, -0.3287186622619629, -0.08700773864984512, -0.049715954810380936, -0.09377831965684891, 0.41129544377326965, 0.10011935979127884, 0.15648092329502106, -0.49329784512519836, 0.12152888625860214, 0.09445559233427048, -0.4239720404148102, -0.14593933522701263, -0.06582629680633545, 0.19508430361747742, -0.08139221370220184, 0.3485625684261322, -0.23511821031570435, -0.3012843132019043, 0.36197641491889954, -0.019668394699692726, -0.0797763243317604, 0.14906667172908783, 0.20290140807628632, -0.04209820181131363, -0.16451475024223328, -0.03642867133021355, -0.8044570088386536, -0.3288801908493042, 0.15707699954509735, 0.2175290882587433, 0.015412240289151669, 0.44263675808906555, 0.3873106837272644, 0.045233871787786484, -0.034810397773981094, 0.13032765686511993, -0.17641936242580414, -0.35315102338790894, 0.649878203868866, -0.3994513154029846, -0.28472641110420227, 0.11822333186864853, 0.2317681759595871, 0.21421396732330322, -0.3526262640953064, -0.48641765117645264, 0.08043470978736877, 0.07730691134929657, 0.28777337074279785, -0.044832516461610794, 0.14167197048664093, -0.08675435185432434, -0.06892842054367065, -0.04603879898786545, -0.13496142625808716, -0.01358407735824585, -0.11639150232076645, -0.3259769678115845, 0.2562922537326813, 0.0006419603596441448, 0.11283406615257263, -0.20480819046497345, 0.585080087184906, 0.1846076101064682, 0.12979012727737427, 0.3108220398426056, -0.0963970497250557, 0.6860241293907166, -0.10074719041585922, -0.49535682797431946, -0.01854616589844227, -0.04261016100645065, 0.06467726081609726, 0.11252280324697495, 0.30213555693626404, -0.17055097222328186, -0.4108614921569824, 0.05266503244638443, -0.601784884929657, -0.08143774420022964, 0.11225588619709015, -0.17888770997524261, 0.02572750486433506, 0.09258992969989777, -0.18985961377620697, -0.3393608331680298, -0.16956286132335663, 0.005545257590711117, 0.557510495185852, -0.050122544169425964, 0.3014127314090729, -0.5939540863037109, -0.2490042895078659, -0.15691101551055908, 0.19279034435749054, -0.1274878829717636, 0.255753755569458, -0.32643067836761475, 0.08634746074676514, 0.13260096311569214, -0.013539192266762257, 0.46682217717170715, -0.007301414851099253, -0.0018595909932628274, 0.21523511409759521, 0.21335993707180023, -0.6372413635253906, 0.13661155104637146, 0.185287207365036, 0.138809472322464, 0.46349194645881653, 0.31167301535606384, -0.186247318983078, -0.053309813141822815, -0.05283684283494949, 0.399260550737381, -0.09941200911998749, -0.14123855531215668, -0.43895187973976135, -0.5290262699127197, -0.33301788568496704, -0.3466005027294159, 0.041628558188676834, 0.30008941888809204, -0.11271893978118896, 0.14799484610557556, -0.03924702852964401, 0.08828102052211761, 0.19739563763141632, 0.2150367945432663, 0.3390176594257355, 0.20293836295604706, -0.15176795423030853, 0.21569208800792694, 0.20739203691482544, 0.18645773828029633, 0.8277194499969482, -0.028063734993338585, -0.4729880690574646, -0.06765052676200867, -0.16844451427459717, 0.2539023160934448, 0.2572746276855469, -0.052551042288541794, -0.2643865644931793, 0.08625253289937973, -0.061641521751880646, -0.10605087131261826, 0.2844645380973816, -0.0042867884039878845, 0.1814717948436737, -0.14841997623443604, -0.38328444957733154, 0.4944523870944977, -0.05227511376142502, -0.018716413527727127, 0.14876829087734222, 0.16030341386795044, -0.14534316956996918, 0.21555054187774658, -0.29603222012519836, 1.1821036338806152, 0.08365625888109207, 0.16198517382144928, 0.1922806203365326, -0.1424454301595688, 0.3413342833518982, -0.24916984140872955, -0.06682785600423813, -0.01653120666742325, 0.18411698937416077, -0.007436204701662064, -0.15055501461029053, 0.280647873878479, 0.18582695722579956, 0.020497098565101624, 0.00369789800606668, -0.09629606455564499, 0.029985373839735985, 0.09892542660236359, 0.4379954934120178, 0.12777762115001678, -0.018050096929073334, -0.5319260358810425, 0.1279686987400055, -0.007052876986563206, 0.6483984589576721, -0.05896453186869621, -0.15015554428100586, -0.621979832649231, 0.04173489287495613, -0.169757679104805, 0.05595102533698082, -0.17638397216796875, 0.30468830466270447, -0.024275463074445724, -0.45570266246795654, -0.13109727203845978, 0.38234633207321167, 0.41583943367004395, 0.06284881383180618, -0.21002747118473053, 0.19425180554389954, -0.0006200475036166608, -0.237875297665596, 0.14082558453083038, -0.2639215290546417, 0.09897492080926895, -0.16573560237884521, -0.3407818675041199, 0.2149273306131363, -0.05379492789506912, -0.3472226560115814, 0.1409187912940979, 0.0401330403983593, 0.2564258873462677, 0.04654894396662712, -0.43167468905448914, 0.0652010589838028, 0.24917221069335938, -0.12109971791505814, 0.0465644970536232, 0.032913655042648315, 0.047079697251319885, -0.20226120948791504, -0.22350989282131195, -0.07866798341274261, -0.09127803146839142, 0.4528016448020935, -0.2509528398513794, -0.1783558428287506, 0.37617093324661255, 0.13131111860275269, -0.29860207438468933, -0.09497149288654327, 0.1794079840183258, -0.0717819556593895, -0.4908859133720398, -0.34832215309143066, 0.025864046066999435, -0.03631587326526642, -0.3221878707408905, 0.16685117781162262, 0.26644203066825867, -0.2686610817909241, 0.13787983357906342, -0.7992357611656189, -0.009051716886460781, 0.21488426625728607, 0.0030065523460507393, 0.02401823177933693, 0.14952564239501953, -0.18887580931186676, 0.17739173769950867, -0.1492817997932434, -0.20867319405078888, 0.10378037393093109, -0.20426364243030548, -0.07088612020015717, 0.3645164668560028, 0.0797683596611023, 0.1445767879486084, -0.2587425708770752, 0.03317740559577942, -0.3906819820404053, 0.07116029411554337, -0.13811394572257996, -0.02324853651225567, 0.16778837144374847, -0.030742071568965912, -0.07363615185022354, -0.18448837101459503, -0.42346879839897156, 0.04950900375843048, -0.09760263562202454, -0.15040579438209534, -0.028670573607087135, 0.05166323110461235, -0.14117877185344696, -0.09389793127775192, 0.34864407777786255, -0.0014626977499574423, 0.21085165441036224, 0.0660797506570816, 0.5716878175735474, 0.036540575325489044, 0.025320790708065033, 0.10666025429964066, 0.010491264052689075, -0.05285651981830597, 0.11874201893806458, -0.1242651492357254, 0.17279449105262756, 0.3727683424949646, -0.3196752369403839, 0.32497355341911316, 0.12096458673477173, -0.003580913646146655, 0.507780909538269, -0.4413672983646393, 0.14628934860229492, 0.30294734239578247, 0.047582659870386124, -0.2808191776275635, -0.18597905337810516, 0.4009406268596649, 0.05550410971045494, -0.061602961272001266, 0.2878831923007965, 0.2537675201892853, -0.18906018137931824, 0.3890489935874939, 0.12931258976459503, 0.46279072761535645, 0.4501364529132843, 0.20297878980636597, 0.09399206936359406, 0.07953867316246033, 0.03933446854352951, -0.07040902972221375, 0.3201732337474823, -0.03206944093108177, 0.4540104568004608, -0.261349618434906, 0.10916947573423386, 0.04258519038558006, 0.17199280858039856, -0.19054676592350006, -0.22671537101268768, 0.16927236318588257, -0.16528227925300598, 0.03991096839308739, 0.04554226994514465, -0.16025763750076294, 0.41409388184547424, -0.4061875641345978, -0.11181540042161942, 0.019763275980949402, 0.24205473065376282, 0.04568236693739891, -0.048439670354127884, -0.22430163621902466, -0.2722089886665344, -0.13577435910701752, -0.18459199368953705, 0.13575409352779388, -0.523267388343811, 0.20458784699440002, 0.14819134771823883, -0.15736143290996552, -0.29575812816619873, -0.02270524390041828, 0.268961638212204, 0.07167605310678482, -0.11483655869960785, 0.3266045153141022, 0.2135400027036667, 0.0652032196521759, 0.11184713244438171, 0.2881090044975281, 0.46425798535346985, 0.2599305510520935, -0.11090307682752609, -0.005332025699317455, -0.005477248225361109, -0.15168750286102295, -0.25877952575683594, 0.26074957847595215, 0.07048045843839645, 0.05745333805680275, 0.3448995351791382, 0.16660787165164948, -0.09344498068094254, -0.10949575901031494, 0.2727864682674408, 0.014625842683017254, -0.17558111250400543, 0.1559969037771225, -0.4784344732761383, -0.010587578639388084, -0.30960893630981445, 0.0426061786711216, -0.3361673057079315, -0.011535695753991604, 0.2119975984096527, 0.02448013797402382, 0.14570076763629913, -0.20482772588729858, 0.024098942056298256, 0.03940718248486519, 0.4086044728755951, 0.3885653614997864, 0.2942710518836975, -0.26161471009254456, -0.5872484445571899, -0.8084725737571716, 0.13738061487674713, -0.20188991725444794, -0.48725348711013794, 0.03158675134181976, -0.10723846405744553, 0.07699425518512726, 0.2530306577682495, 0.01596764847636223, 0.3099043369293213, -0.08012750744819641, -0.10848497599363327, -0.26100242137908936, -0.2317066341638565, -0.2546117603778839, 0.0900811031460762, -0.19034631550312042, -0.1421099752187729, 0.19017857313156128, -0.5949852466583252, 0.0008111038478091359, 0.16394779086112976, -0.10576561093330383, -0.20820577442646027, -0.04787681996822357, 0.5655728578567505, -0.11495308578014374, 0.26843732595443726, 0.04792718216776848, -0.23052814602851868, -0.11256489157676697, -0.25216129422187805, 0.16323330998420715, 0.6077472567558289, 0.007040015421807766, 0.25515440106391907, -0.48122167587280273, 0.016991203650832176, -0.08850943297147751, -0.026374487206339836, 0.28126847743988037, -0.1549226939678192, 0.1070503443479538, -0.07855743169784546, -0.10624105483293533, 0.25990018248558044, 0.29369503259658813, 0.304879367351532, -0.2413356751203537, 0.1766888052225113, -0.1652909219264984, -0.112480528652668, 0.32345452904701233, -0.30523669719696045, -0.26124367117881775, 0.1704801768064499, 0.13559113442897797, 0.0898243859410286, 0.17520202696323395, -0.2406042069196701, 0.18920722603797913, 0.33137238025665283, 0.15251095592975616, -0.19498704373836517, 0.2746855616569519, -0.3622036576271057, -0.16525979340076447, -0.045217182487249374, 0.13301193714141846, 0.032342758029699326, 0.01082549151033163, 0.020679710432887077, -0.025502946227788925 ]
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.14401313662528992, -0.12778666615486145, -0.1560758352279663, 0.29339706897735596, 0.21679870784282684, -0.13488902151584625, -0.012058030813932419, 0.09374117851257324, 0.3958023488521576, -0.08629734069108963, -0.29413533210754395, -0.007835129275918007, 0.01967558264732361, -0.042146798223257065, 0.13732199370861053, 0.11360057443380356, 0.22467586398124695, 0.09364861249923706, 0.14461401104927063, -0.13795596361160278, -0.25548142194747925, 0.40843069553375244, 0.03647875785827637, 0.1195254698395729, 0.0535745732486248, 0.24329134821891785, -0.08378467708826065, 0.31918925046920776, -0.06338739395141602, -0.2948625683784485, 0.34699854254722595, 0.1354588270187378, 0.12170415371656418, 0.5947436094284058, -0.00012200587661936879, 0.015369707718491554, 0.4793721139431, -0.09341695159673691, -0.6241422891616821, -0.41021329164505005, 0.020561520010232925, -0.28277701139450073, 0.06464185565710068, -0.07204438000917435, -0.062249645590782166, -0.2690677344799042, -0.010533246211707592, -0.47449514269828796, 0.2986162304878235, 0.41659310460090637, 0.11147566884756088, -0.010823770426213741, 0.07612387090921402, -0.0746552124619484, 0.029588133096694946, 0.38348037004470825, 0.06954851001501083, 0.5175907015800476, 0.2559809386730194, 0.0191782359033823, 0.47579964995384216, 0.13931886851787567, -0.16365014016628265, -0.1841299682855606, 0.16824939846992493, -0.17723459005355835, -0.08079474419355392, -0.22218357026576996, 0.14762574434280396, -0.07496464252471924, 0.4582829773426056, -0.08868671208620071, -0.2649422883987427, -0.24246667325496674, 0.046123750507831573, 0.0547613762319088, 0.2765299677848816, 0.1222158670425415, -0.37785443663597107, 0.2942798137664795, -0.17582546174526215, -0.22104960680007935, -0.1348644644021988, 0.542472243309021, 0.06686287373304367, 0.05457637831568718, -0.19980306923389435, 0.09725624322891235, 0.24034124612808228, -0.140910342335701, -0.0025448808446526527, -0.17237161099910736, 0.18791168928146362, 0.27415338158607483, 0.04766218736767769, 0.2751695513725281, 0.10913386195898056, 0.12290440499782562, 0.012469800189137459, 0.2088608592748642, -0.008324647322297096, 0.06110401079058647, -0.2934056520462036, 0.2661072909832001, 0.14516066014766693, -0.06342997401952744, 0.16142138838768005, -0.05785994604229927, 0.1387721300125122, 0.27373719215393066, -0.2378375083208084, -0.02203536406159401, -0.5131181478500366, -0.226178377866745, -0.40476396679878235, -0.16271179914474487, 0.05269923433661461, -0.18874897062778473, -0.23926959931850433, -0.05375339090824127, 0.23835550248622894, 0.11248567700386047, 0.15007124841213226, 0.4265654683113098, -0.05684073269367218, 0.13092288374900818, 0.01575879380106926, 0.33482128381729126, -0.09720250219106674, 0.16252505779266357, 0.004387694876641035, 0.011590809561312199, -0.23950602114200592, -0.10330554842948914, 0.35648873448371887, -0.1404225379228592, 0.3913661539554596, -0.01331406645476818, 0.01939637027680874, -0.2262604683637619, -0.06517470628023148, -0.17231756448745728, -0.020800985395908356, 0.4110076427459717, -0.050402939319610596, 0.1848830133676529, 0.2301236093044281, -0.3826438784599304, -0.28561311960220337, 0.022011836990714073, -0.4266527593135834, -0.25796109437942505, -0.13708116114139557, 0.08650384843349457, -0.35764411091804504, -0.04830634221434593, -0.25187915563583374, 0.0720793753862381, -0.2459033876657486, -0.36086252331733704, -0.14236406981945038, -0.06262422353029251, 0.05692289397120476, -0.16356657445430756, 0.4047259986400604, 0.6451676487922668, -0.25956231355667114, -0.13386954367160797, -0.2519382834434509, -0.0979309007525444, 0.11668084561824799, 0.15493008494377136, -0.27746960520744324, 0.10031318664550781, -0.42179515957832336, -0.1295698881149292, 0.5071367025375366, -0.388183057308197, -0.10349542647600174, 0.04326895996928215, 0.044207461178302765, 0.43480849266052246, 0.06771790236234665, -0.0021926453337073326, -0.2236296385526657, 0.09360768646001816, 0.11779395490884781, 0.3654600977897644, 0.2958679497241974, -0.315116286277771, -0.043603215366601944, -0.08808918297290802, 0.21523989737033844, 0.43583396077156067, -0.078902468085289, -0.06527908146381378, 0.3209887146949768, -0.017974531278014183, 0.06766902655363083, -0.044331055134534836, -0.11221751570701599, 0.3995004892349243, -0.10023447126150131, 0.6040776371955872, -0.12015578150749207, 0.057932354509830475, -0.16157956421375275, 0.16202813386917114, 0.3629027009010315, -0.0949903279542923, -0.2131405621767044, 0.014591830782592297, -0.5914064645767212, 0.1086382120847702, -0.2440946400165558, -0.07960343360900879, 0.044240809977054596, 0.3385520875453949, 0.20978477597236633, 0.41880491375923157, -0.13033589720726013, 0.5874931812286377, -0.18200485408306122, -0.00044442020589485765, -0.1368412971496582, 0.3376151919364929, -0.07734154164791107, 0.0069123683497309685, -0.025883590802550316, 0.46404409408569336, 0.19163300096988678, -0.07536438852548599, 0.13065974414348602, 0.177581787109375, 0.27571019530296326, 0.14317333698272705, 0.3152179718017578, -0.14597178995609283, 0.013373963534832, -0.18512864410877228, 0.026444336399435997, 0.27511629462242126, 0.1668303906917572, -0.08805622905492783, -0.2502492070198059, 0.15575887262821198, -0.006282045040279627, 0.2842063307762146, 0.14522868394851685, 0.0032308087684214115, 0.2915840148925781, -0.0235693771392107, -0.04595784842967987, -0.16006283462047577, 0.3323229253292084, -0.17024333775043488, 0.5120022892951965, -0.006221594754606485, -0.2748080790042877, 0.1538008153438568, 0.013452607207000256, -0.11309819668531418, 0.06631837785243988, 0.266779363155365, -0.16949127614498138, 0.18209774792194366, 0.16494181752204895, 0.23063592612743378, 0.5306193828582764, 0.15017631649971008, 0.058415379375219345, -0.10424775630235672, 0.1984349489212036, -0.22638830542564392, 0.19611257314682007, 0.07796352356672287, 0.3595772385597229, 0.1046474501490593, 0.1316242814064026, 0.12274233251810074, -0.25726625323295593, -0.5361443161964417, -0.1495712548494339, 0.052208349108695984, -0.2917059361934662, 0.321731299161911, -0.18549475073814392, -0.4013980031013489, -0.3152748942375183, -0.13558493554592133, -0.24927443265914917, -0.363196462392807, -0.18291646242141724, 0.1399182230234146, 0.03793888911604881, -0.04919564723968506, -0.11677470803260803, 0.17152780294418335, -0.21307127177715302, -0.3847949504852295, -0.3287186622619629, -0.08700773864984512, -0.049715954810380936, -0.09377831965684891, 0.41129544377326965, 0.10011935979127884, 0.15648092329502106, -0.49329784512519836, 0.12152888625860214, 0.09445559233427048, -0.4239720404148102, -0.14593933522701263, -0.06582629680633545, 0.19508430361747742, -0.08139221370220184, 0.3485625684261322, -0.23511821031570435, -0.3012843132019043, 0.36197641491889954, -0.019668394699692726, -0.0797763243317604, 0.14906667172908783, 0.20290140807628632, -0.04209820181131363, -0.16451475024223328, -0.03642867133021355, -0.8044570088386536, -0.3288801908493042, 0.15707699954509735, 0.2175290882587433, 0.015412240289151669, 0.44263675808906555, 0.3873106837272644, 0.045233871787786484, -0.034810397773981094, 0.13032765686511993, -0.17641936242580414, -0.35315102338790894, 0.649878203868866, -0.3994513154029846, -0.28472641110420227, 0.11822333186864853, 0.2317681759595871, 0.21421396732330322, -0.3526262640953064, -0.48641765117645264, 0.08043470978736877, 0.07730691134929657, 0.28777337074279785, -0.044832516461610794, 0.14167197048664093, -0.08675435185432434, -0.06892842054367065, -0.04603879898786545, -0.13496142625808716, -0.01358407735824585, -0.11639150232076645, -0.3259769678115845, 0.2562922537326813, 0.0006419603596441448, 0.11283406615257263, -0.20480819046497345, 0.585080087184906, 0.1846076101064682, 0.12979012727737427, 0.3108220398426056, -0.0963970497250557, 0.6860241293907166, -0.10074719041585922, -0.49535682797431946, -0.01854616589844227, -0.04261016100645065, 0.06467726081609726, 0.11252280324697495, 0.30213555693626404, -0.17055097222328186, -0.4108614921569824, 0.05266503244638443, -0.601784884929657, -0.08143774420022964, 0.11225588619709015, -0.17888770997524261, 0.02572750486433506, 0.09258992969989777, -0.18985961377620697, -0.3393608331680298, -0.16956286132335663, 0.005545257590711117, 0.557510495185852, -0.050122544169425964, 0.3014127314090729, -0.5939540863037109, -0.2490042895078659, -0.15691101551055908, 0.19279034435749054, -0.1274878829717636, 0.255753755569458, -0.32643067836761475, 0.08634746074676514, 0.13260096311569214, -0.013539192266762257, 0.46682217717170715, -0.007301414851099253, -0.0018595909932628274, 0.21523511409759521, 0.21335993707180023, -0.6372413635253906, 0.13661155104637146, 0.185287207365036, 0.138809472322464, 0.46349194645881653, 0.31167301535606384, -0.186247318983078, -0.053309813141822815, -0.05283684283494949, 0.399260550737381, -0.09941200911998749, -0.14123855531215668, -0.43895187973976135, -0.5290262699127197, -0.33301788568496704, -0.3466005027294159, 0.041628558188676834, 0.30008941888809204, -0.11271893978118896, 0.14799484610557556, -0.03924702852964401, 0.08828102052211761, 0.19739563763141632, 0.2150367945432663, 0.3390176594257355, 0.20293836295604706, -0.15176795423030853, 0.21569208800792694, 0.20739203691482544, 0.18645773828029633, 0.8277194499969482, -0.028063734993338585, -0.4729880690574646, -0.06765052676200867, -0.16844451427459717, 0.2539023160934448, 0.2572746276855469, -0.052551042288541794, -0.2643865644931793, 0.08625253289937973, -0.061641521751880646, -0.10605087131261826, 0.2844645380973816, -0.0042867884039878845, 0.1814717948436737, -0.14841997623443604, -0.38328444957733154, 0.4944523870944977, -0.05227511376142502, -0.018716413527727127, 0.14876829087734222, 0.16030341386795044, -0.14534316956996918, 0.21555054187774658, -0.29603222012519836, 1.1821036338806152, 0.08365625888109207, 0.16198517382144928, 0.1922806203365326, -0.1424454301595688, 0.3413342833518982, -0.24916984140872955, -0.06682785600423813, -0.01653120666742325, 0.18411698937416077, -0.007436204701662064, -0.15055501461029053, 0.280647873878479, 0.18582695722579956, 0.020497098565101624, 0.00369789800606668, -0.09629606455564499, 0.029985373839735985, 0.09892542660236359, 0.4379954934120178, 0.12777762115001678, -0.018050096929073334, -0.5319260358810425, 0.1279686987400055, -0.007052876986563206, 0.6483984589576721, -0.05896453186869621, -0.15015554428100586, -0.621979832649231, 0.04173489287495613, -0.169757679104805, 0.05595102533698082, -0.17638397216796875, 0.30468830466270447, -0.024275463074445724, -0.45570266246795654, -0.13109727203845978, 0.38234633207321167, 0.41583943367004395, 0.06284881383180618, -0.21002747118473053, 0.19425180554389954, -0.0006200475036166608, -0.237875297665596, 0.14082558453083038, -0.2639215290546417, 0.09897492080926895, -0.16573560237884521, -0.3407818675041199, 0.2149273306131363, -0.05379492789506912, -0.3472226560115814, 0.1409187912940979, 0.0401330403983593, 0.2564258873462677, 0.04654894396662712, -0.43167468905448914, 0.0652010589838028, 0.24917221069335938, -0.12109971791505814, 0.0465644970536232, 0.032913655042648315, 0.047079697251319885, -0.20226120948791504, -0.22350989282131195, -0.07866798341274261, -0.09127803146839142, 0.4528016448020935, -0.2509528398513794, -0.1783558428287506, 0.37617093324661255, 0.13131111860275269, -0.29860207438468933, -0.09497149288654327, 0.1794079840183258, -0.0717819556593895, -0.4908859133720398, -0.34832215309143066, 0.025864046066999435, -0.03631587326526642, -0.3221878707408905, 0.16685117781162262, 0.26644203066825867, -0.2686610817909241, 0.13787983357906342, -0.7992357611656189, -0.009051716886460781, 0.21488426625728607, 0.0030065523460507393, 0.02401823177933693, 0.14952564239501953, -0.18887580931186676, 0.17739173769950867, -0.1492817997932434, -0.20867319405078888, 0.10378037393093109, -0.20426364243030548, -0.07088612020015717, 0.3645164668560028, 0.0797683596611023, 0.1445767879486084, -0.2587425708770752, 0.03317740559577942, -0.3906819820404053, 0.07116029411554337, -0.13811394572257996, -0.02324853651225567, 0.16778837144374847, -0.030742071568965912, -0.07363615185022354, -0.18448837101459503, -0.42346879839897156, 0.04950900375843048, -0.09760263562202454, -0.15040579438209534, -0.028670573607087135, 0.05166323110461235, -0.14117877185344696, -0.09389793127775192, 0.34864407777786255, -0.0014626977499574423, 0.21085165441036224, 0.0660797506570816, 0.5716878175735474, 0.036540575325489044, 0.025320790708065033, 0.10666025429964066, 0.010491264052689075, -0.05285651981830597, 0.11874201893806458, -0.1242651492357254, 0.17279449105262756, 0.3727683424949646, -0.3196752369403839, 0.32497355341911316, 0.12096458673477173, -0.003580913646146655, 0.507780909538269, -0.4413672983646393, 0.14628934860229492, 0.30294734239578247, 0.047582659870386124, -0.2808191776275635, -0.18597905337810516, 0.4009406268596649, 0.05550410971045494, -0.061602961272001266, 0.2878831923007965, 0.2537675201892853, -0.18906018137931824, 0.3890489935874939, 0.12931258976459503, 0.46279072761535645, 0.4501364529132843, 0.20297878980636597, 0.09399206936359406, 0.07953867316246033, 0.03933446854352951, -0.07040902972221375, 0.3201732337474823, -0.03206944093108177, 0.4540104568004608, -0.261349618434906, 0.10916947573423386, 0.04258519038558006, 0.17199280858039856, -0.19054676592350006, -0.22671537101268768, 0.16927236318588257, -0.16528227925300598, 0.03991096839308739, 0.04554226994514465, -0.16025763750076294, 0.41409388184547424, -0.4061875641345978, -0.11181540042161942, 0.019763275980949402, 0.24205473065376282, 0.04568236693739891, -0.048439670354127884, -0.22430163621902466, -0.2722089886665344, -0.13577435910701752, -0.18459199368953705, 0.13575409352779388, -0.523267388343811, 0.20458784699440002, 0.14819134771823883, -0.15736143290996552, -0.29575812816619873, -0.02270524390041828, 0.268961638212204, 0.07167605310678482, -0.11483655869960785, 0.3266045153141022, 0.2135400027036667, 0.0652032196521759, 0.11184713244438171, 0.2881090044975281, 0.46425798535346985, 0.2599305510520935, -0.11090307682752609, -0.005332025699317455, -0.005477248225361109, -0.15168750286102295, -0.25877952575683594, 0.26074957847595215, 0.07048045843839645, 0.05745333805680275, 0.3448995351791382, 0.16660787165164948, -0.09344498068094254, -0.10949575901031494, 0.2727864682674408, 0.014625842683017254, -0.17558111250400543, 0.1559969037771225, -0.4784344732761383, -0.010587578639388084, -0.30960893630981445, 0.0426061786711216, -0.3361673057079315, -0.011535695753991604, 0.2119975984096527, 0.02448013797402382, 0.14570076763629913, -0.20482772588729858, 0.024098942056298256, 0.03940718248486519, 0.4086044728755951, 0.3885653614997864, 0.2942710518836975, -0.26161471009254456, -0.5872484445571899, -0.8084725737571716, 0.13738061487674713, -0.20188991725444794, -0.48725348711013794, 0.03158675134181976, -0.10723846405744553, 0.07699425518512726, 0.2530306577682495, 0.01596764847636223, 0.3099043369293213, -0.08012750744819641, -0.10848497599363327, -0.26100242137908936, -0.2317066341638565, -0.2546117603778839, 0.0900811031460762, -0.19034631550312042, -0.1421099752187729, 0.19017857313156128, -0.5949852466583252, 0.0008111038478091359, 0.16394779086112976, -0.10576561093330383, -0.20820577442646027, -0.04787681996822357, 0.5655728578567505, -0.11495308578014374, 0.26843732595443726, 0.04792718216776848, -0.23052814602851868, -0.11256489157676697, -0.25216129422187805, 0.16323330998420715, 0.6077472567558289, 0.007040015421807766, 0.25515440106391907, -0.48122167587280273, 0.016991203650832176, -0.08850943297147751, -0.026374487206339836, 0.28126847743988037, -0.1549226939678192, 0.1070503443479538, -0.07855743169784546, -0.10624105483293533, 0.25990018248558044, 0.29369503259658813, 0.304879367351532, -0.2413356751203537, 0.1766888052225113, -0.1652909219264984, -0.112480528652668, 0.32345452904701233, -0.30523669719696045, -0.26124367117881775, 0.1704801768064499, 0.13559113442897797, 0.0898243859410286, 0.17520202696323395, -0.2406042069196701, 0.18920722603797913, 0.33137238025665283, 0.15251095592975616, -0.19498704373836517, 0.2746855616569519, -0.3622036576271057, -0.16525979340076447, -0.045217182487249374, 0.13301193714141846, 0.032342758029699326, 0.01082549151033163, 0.020679710432887077, -0.025502946227788925 ]
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. ![Code](https://user-images.githubusercontent.com/30871963/103437466-1f3a3300-4c4e-11eb-9d54-fc9601abfeec.png) ![Error](https://user-images.githubusercontent.com/30871963/103437407-7ee40e80-4c4d-11eb-8151-a86eb664e6be.png)
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. ![Code](https://user-images.githubusercontent.com/30871963/103437466-1f3a3300-4c4e-11eb-9d54-fc9601abfeec.png) ![Error](https://user-images.githubusercontent.com/30871963/103437407-7ee40e80-4c4d-11eb-8151-a86eb664e6be.png) 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.18463429808616638, 0.03730262070894241, -0.061119742691516876, 0.22921796143054962, 0.05320879444479942, 0.11538331210613251, -0.021660959348082542, 0.3467034101486206, 0.22220757603645325, 0.024645183235406876, 0.3987329304218292, 0.07446573674678802, 0.04668954759836197, 0.21727962791919708, 0.1481214314699173, -0.38319718837738037, 0.07112385332584381, -0.0032804920338094234, 0.04073704406619072, 0.12777848541736603, 0.07587764412164688, 0.2772662043571472, -0.27217745780944824, -0.00853106938302517, -0.5351595878601074, -0.014767791144549847, 0.20697757601737976, -0.10298150777816772, -0.3329058885574341, -0.3878406584262848, 0.4530768096446991, 0.07468613982200623, 0.32723087072372437, 0.28946223855018616, -0.00011792898294515908, 0.08400211483240128, 0.5217902064323425, -0.1599767655134201, -0.32098284363746643, -0.47473955154418945, -0.13403399288654327, -0.31257203221321106, 0.10334951430559158, -0.21502870321273804, -0.12813253700733185, 0.22583357989788055, 0.366932213306427, -0.2974429130554199, 0.13879290223121643, 0.1242172122001648, 0.1640719324350357, -0.12036383152008057, 0.3869454562664032, -0.14646825194358826, 0.20308157801628113, 0.2014705389738083, -0.05526391789317131, 0.29838111996650696, 0.05455067381262779, 0.10542643815279007, -0.07323823124170303, 0.18096193671226501, 0.044584959745407104, -0.12732528150081635, 0.3103475272655487, -0.30432483553886414, -0.24266952276229858, -0.42693427205085754, 0.47591346502304077, 0.3865126073360443, 1.1295323371887207, -0.3715824782848358, -0.16774766147136688, 0.1515149474143982, -0.044821128249168396, 0.2206411361694336, 0.4101848006248474, 0.4490494430065155, -0.24330618977546692, -0.012051607482135296, 0.17080317437648773, -0.37013038992881775, -0.15783365070819855, 0.36458608508110046, 0.03164472430944443, 0.2004285603761673, 0.00913910660892725, 0.1854781061410904, -0.030736077576875687, -0.21451248228549957, -0.025018341839313507, -0.05006484314799309, 0.12004560977220535, 0.3106352984905243, -0.2569943070411682, 0.1385982632637024, -0.12740281224250793, 0.13060228526592255, 0.09873641282320023, -0.15333451330661774, -0.04144659638404846, -0.0029111902695149183, -0.0950382873415947, -0.004144515376538038, 0.36192235350608826, -0.08065490424633026, 0.007814091630280018, 0.20962516963481903, 0.2564554214477539, 0.2671995759010315, -0.013993858359754086, -0.060756780207157135, 0.061120398342609406, -0.4209560751914978, -0.5915751457214355, -0.025980891659855843, -0.016263172030448914, -0.27650371193885803, -0.1287468671798706, 0.004456480965018272, -0.3457311689853668, -0.20750823616981506, 0.07371972501277924, 0.03343338146805763, 0.03131072595715523, 0.1312568485736847, 0.06193016842007637, 0.04917855188250542, -0.15019549429416656, -0.3245723843574524, -0.050696440041065216, 0.24132166802883148, -0.3002285957336426, 0.036185700446367264, 0.2658056914806366, -0.2571326792240143, 0.3741755485534668, 0.047697365283966064, -0.1977434903383255, 0.0010907159885391593, -0.06699538975954056, -0.24117133021354675, -0.30816909670829773, 0.19733880460262299, 0.18558144569396973, 0.44369059801101685, -0.20131924748420715, -0.10001202672719955, -0.038498517125844955, 0.148078054189682, -0.27256596088409424, -0.012922784313559532, 0.07058171182870865, 0.07452644407749176, -0.26662349700927734, -0.11878941208124161, 0.04800398275256157, 0.22053226828575134, -0.058259718120098114, -0.41375431418418884, 0.009202945046126842, -0.019255490973591805, -0.11509191989898682, -0.3171350061893463, 0.3101774752140045, 0.45626550912857056, -0.705531895160675, 0.08297263830900192, -0.12599468231201172, -0.004093557130545378, 0.08268319070339203, -0.05131915584206581, -0.23397700488567352, 0.5790063142776489, -0.291667103767395, 0.04421708732843399, 0.5752341747283936, -0.29362672567367554, -0.5257564187049866, -0.013343676924705505, -0.02399635501205921, 0.05788016319274902, 0.05567502602934837, 0.2580738067626953, 0.18375492095947266, 0.0063732825219631195, -0.1392727494239807, 0.34320253133773804, 0.09719134122133255, -0.13117292523384094, -0.28229978680610657, -0.09021647274494171, 0.3322114050388336, 0.1532903015613556, 0.24013377726078033, -0.11686532944440842, 0.1273598074913025, 0.4729164242744446, 0.3813782334327698, 0.035414326936006546, 0.16063851118087769, 0.36582285165786743, -0.2541012465953827, 0.09451758861541748, 0.22997519373893738, -0.08826453238725662, -0.051249273121356964, 0.2550356686115265, -0.02063383348286152, -0.07136578857898712, -0.12114661186933517, 0.019950799643993378, -0.4031449854373932, 0.011772415600717068, -0.2332560122013092, 0.1814035028219223, 0.0689978376030922, 0.01323765143752098, 0.11038775742053986, 0.35238441824913025, -0.055985793471336365, 0.17272081971168518, -0.27535349130630493, 0.030645372346043587, -0.3404829204082489, 0.4449908137321472, -0.10944589972496033, -0.08133553713560104, 0.03011397272348404, 0.14069154858589172, 0.17177559435367584, -0.0056821140460669994, -0.15162043273448944, 0.005304892547428608, 0.10934055596590042, 0.026414645835757256, 0.25054416060447693, -0.02756033092737198, 0.14904604852199554, -0.5346202254295349, 0.2565489709377289, 0.55134117603302, 0.037788230925798416, -0.015581417828798294, 0.039544329047203064, 0.05512423813343048, -0.23083315789699554, 0.06037655100226402, -0.06959058344364166, 0.19591496884822845, 0.35696402192115784, 0.09267920255661011, 0.005516136065125465, 0.012829901650547981, 0.2818462550640106, 0.41827860474586487, 0.22170831263065338, -0.016797970980405807, -0.09619475901126862, 0.04084092751145363, 0.5788993239402771, 0.05644698441028595, 0.01572396606206894, 0.12678219377994537, -0.25645750761032104, -0.0707024484872818, 0.10736940056085587, 0.13395829498767853, 0.03805655986070633, 0.1063373014330864, 0.01626550778746605, -0.20752663910388947, 0.07518346607685089, -0.1791907548904419, 0.20184387266635895, 0.1663946509361267, 0.2951565980911255, 0.15577708184719086, -0.16343289613723755, 0.07250245660543442, -0.18263372778892517, -0.07712120562791824, 0.04504992440342903, 0.32069316506385803, -0.17078721523284912, -0.05054519698023796, -0.34831714630126953, -0.5186845064163208, -0.34685084223747253, -0.3065918982028961, -0.4869229197502136, -0.2183825522661209, -0.07529518008232117, -0.1249905377626419, 0.01737738959491253, 0.04531716927886009, -0.038701627403497696, -0.12220679968595505, 0.04492289572954178, -0.333262175321579, -0.06711587309837341, -0.3668976426124573, -0.3348780572414398, -0.026407454162836075, 0.534121036529541, 0.06150565668940544, 0.2562445104122162, -0.26014313101768494, -0.05172295123338699, -0.6239214539527893, -0.2299995869398117, 0.09482063353061676, -0.04622948169708252, -0.10743416845798492, 0.07310522347688675, 0.6945295333862305, -0.1953706592321396, 0.0020849057473242283, 0.03590171039104462, 0.2028852105140686, -0.06501948833465576, -0.10635240375995636, -0.06440398842096329, 0.00372248119674623, 0.13782073557376862, -0.5049892067909241, -0.3756240904331207, -0.24455544352531433, -0.06489734351634979, 0.10171350836753845, 0.05605359748005867, -0.019914550706744194, 0.09311527013778687, 0.031091678887605667, 0.2679343819618225, 0.15189586579799652, -0.028338264673948288, -0.14199401438236237, 0.34710779786109924, -0.14320136606693268, -0.5207156538963318, 0.594902515411377, 0.007285706233233213, 0.1874607503414154, 0.08476006984710693, -0.3583528697490692, 0.34451502561569214, 0.07965169101953506, 0.2515493631362915, 0.17100930213928223, -0.0006896174745634198, 0.22844764590263367, -0.28054890036582947, 0.24481165409088135, 0.08502811938524246, -0.18368403613567352, 0.12682439386844635, -0.33862799406051636, 0.48291364312171936, 0.36866483092308044, 0.2770753502845764, -0.018770745024085045, 0.6054490208625793, 0.3167229890823364, 0.05847040191292763, 0.3383823335170746, 0.14329324662685394, 0.03491098806262016, -0.21719352900981903, -0.23732136189937592, 0.1322418600320816, -0.00008054271893342957, 0.07517160475254059, 0.14797312021255493, 0.08552941679954529, -0.19666530191898346, -0.26903989911079407, -0.3766615390777588, -0.2506539225578308, -0.34822016954421997, -0.06891471892595291, -0.27255380153656006, 0.33993563055992126, 0.11537658423185349, 0.044569626450538635, 0.0012764036655426025, -0.29172757267951965, 0.19449348747730255, 0.41445645689964294, -0.07436015456914902, 0.1778520941734314, 0.040314242243766785, -0.43578124046325684, -0.25943663716316223, 0.03527401015162468, 0.0874827653169632, 0.35190826654434204, -0.14061710238456726, 0.227702796459198, 0.24881279468536377, 0.05835210904479027, 0.538790762424469, -0.22992615401744843, 0.13556039333343506, 0.15916308760643005, 0.05053781345486641, -0.21741627156734467, -0.16308344900608063, -0.006016160827130079, 0.30070826411247253, 0.263597309589386, -0.11307326704263687, -0.4702242314815521, -0.1034754067659378, 0.37767305970191956, 0.3612947463989258, -0.002107050968334079, -0.09580795466899872, -0.23539303243160248, -0.20125077664852142, -0.27704155445098877, -0.24978667497634888, -0.18310163915157318, 0.4537198841571808, 0.18654823303222656, 0.17276306450366974, 0.05047803372144699, -0.0033693762961775064, -0.17201773822307587, -0.09689272940158844, 0.372106671333313, 0.23657162487506866, -0.05147138237953186, 0.34598061442375183, 0.2768329679965973, -0.2307363748550415, 0.3108760118484497, 0.20155705511569977, -0.19603940844535828, 0.06400449573993683, -0.036383356899023056, -0.09181036055088043, 0.0926520898938179, -0.10909561067819595, 0.05491477996110916, 0.034355051815509796, -0.392848938703537, 0.06954362243413925, -0.140404611825943, 0.14142252504825592, 0.1021881252527237, -0.5075058937072754, -0.48186051845550537, 0.5160724520683289, 0.20667481422424316, 0.1307383030653, 0.30502811074256897, 0.12191877514123917, -0.2265903353691101, 0.11873216181993484, 0.08712299168109894, 0.8414707779884338, -0.05885864049196243, 0.10461711138486862, -0.02353726141154766, 0.0664839819073677, 0.4696100354194641, -0.16480956971645355, 0.021394265815615654, -0.458095520734787, 0.06415574252605438, -0.125615194439888, 0.03951278701424599, 0.03412174805998802, -0.10108456015586853, -0.23952548205852509, 0.4299018085002899, 0.19624321162700653, 0.3532963693141937, 0.10658074915409088, 0.38243216276168823, 0.06144855543971062, -0.17836454510688782, -0.20096148550510406, 0.03732472285628319, -0.17506688833236694, 0.43602457642555237, -0.26244401931762695, -0.17218723893165588, -0.13086485862731934, -0.009746409952640533, -0.47354856133461, 0.11111672967672348, -0.28535985946655273, 0.3070909082889557, -0.17019812762737274, -0.476633220911026, 0.47966569662094116, 0.37463873624801636, 0.3110162913799286, 0.2961149215698242, -0.3534682095050812, 0.24135436117649078, -0.4690694510936737, -0.4751160144805908, 0.01490623876452446, 0.20510320365428925, 0.32963117957115173, -0.16232623159885406, -0.38067811727523804, 0.21400398015975952, -0.042922817170619965, -0.015504631213843822, -0.08984701335430145, -0.08403832465410233, 0.2972676455974579, 0.09851617366075516, -0.35344162583351135, -0.0484926663339138, -0.032228242605924606, -0.10685673356056213, 0.1144241988658905, 0.062496960163116455, 0.1496976613998413, -0.05416475236415863, 0.19901037216186523, -0.10921463370323181, 0.04804707691073418, 0.3589995801448822, 0.06233246996998787, -0.10016181319952011, 0.4084860682487488, 0.3789878487586975, -0.4220360815525055, -0.14291100203990936, -0.056616608053445816, -0.3723238706588745, -0.2568059265613556, -0.091807059943676, 0.039664603769779205, 0.23319010436534882, -0.17110206186771393, 0.2240113466978073, 0.062479469925165176, -0.27685603499412537, -0.07161594182252884, -0.4444006383419037, -0.23087230324745178, 0.2884558141231537, -0.24113576114177704, 0.010318254120647907, 0.02737618423998356, -0.2883630096912384, 0.4284649193286896, -0.264802485704422, -0.19159133732318878, -0.007547336630523205, -0.14053121209144592, -0.036487922072410583, 0.1321457177400589, 0.12010899931192398, -0.13272857666015625, -0.06462468951940536, 0.04312901571393013, -0.1425330489873886, -0.11693892627954483, -0.08161331713199615, 0.202577143907547, 0.1139761433005333, -0.002747057704254985, 0.05532800778746605, 0.010417327284812927, -0.5299057960510254, -0.10020953416824341, 0.027906322851777077, -0.11418431252241135, 0.038487520068883896, -0.024120593443512917, 0.1766667664051056, -0.017796142026782036, 0.03560907766222954, -0.4783553183078766, 0.3255084455013275, 0.032209426164627075, 0.20056110620498657, 0.09320233017206192, 0.324057012796402, 0.23939791321754456, -0.06643558293581009, -0.4538115859031677, 0.15503129363059998, -0.06256840378046036, -0.0609823614358902, 0.23376470804214478, -0.3372710049152374, 0.3416971266269684, 0.20210140943527222, 0.1301509588956833, 0.0836510956287384, -0.17865438759326935, -0.023160332813858986, 0.3648691475391388, 0.07752867043018341, -0.4618612825870514, 0.025622623041272163, 0.6571722626686096, 0.15929929912090302, -0.0764518603682518, 0.005208982620388269, 0.3300815522670746, -0.24233759939670563, -0.021062612533569336, 0.25718221068382263, 0.2027355432510376, -0.0896664559841156, 0.25789716839790344, 0.39421162009239197, 0.3652914762496948, 0.2093597799539566, 0.009370371699333191, 0.11456891149282455, -0.13525399565696716, 0.5476794242858887, -0.38806989789009094, 0.14809226989746094, 0.1981547325849533, -0.1265379786491394, -0.08371573686599731, -0.3219201862812042, 0.11543109267950058, 0.2119632363319397, -0.20543533563613892, -0.06951829791069031, -0.03382258489727974, 0.13775195181369781, 0.3002788722515106, -0.05748490244150162, -0.22262442111968994, 0.018533702939748764, -0.23652881383895874, 0.21473969519138336, -0.4541545808315277, -0.3500845730304718, -0.0530010387301445, 0.14816732704639435, 0.10768073052167892, -0.12826281785964966, 0.006644030567258596, 0.22269049286842346, -0.1914750635623932, -0.1691991239786148, 0.7468149065971375, -0.12852519750595093, 0.02567650005221367, -0.163995161652565, 0.06347592920064926, -0.23260970413684845, -0.0989580824971199, 0.04707087576389313, 0.23978950083255768, 0.19001807272434235, 0.24761202931404114, -0.2872254550457001, -0.01974617876112461, 0.04692539572715759, -0.01283599715679884, 0.12264211475849152, 0.14870427548885345, 0.09207466244697571, 0.006997356656938791, 0.298403263092041, 0.08658896386623383, -0.060349635779857635, -0.22432973980903625, 0.31491371989250183, 0.21645328402519226, -0.07902827858924866, -0.040114209055900574, -0.19060033559799194, 0.04081352800130844, -0.21159392595291138, -0.031770117580890656, -0.5151201486587524, -0.117286317050457, 0.3442644476890564, 0.15912026166915894, -0.002000875072553754, -0.38010066747665405, 0.02058255858719349, -0.20639319717884064, 0.3930344879627228, 0.31703224778175354, 0.18587854504585266, -0.3537284731864929, -0.35572877526283264, -0.5848138332366943, 0.1577872782945633, -0.11987532675266266, -0.13242068886756897, 0.09982603788375854, 0.09736666083335876, -0.11094693839550018, 0.13287875056266785, 0.318433552980423, 0.058560263365507126, 0.023185478523373604, 0.31475016474723816, -0.1297198235988617, -0.19782404601573944, -0.19401530921459198, -0.054220546036958694, -0.33121147751808167, -0.09082994610071182, 0.14074832201004028, -0.46362245082855225, -0.007864055223762989, -0.06429223716259003, -0.1705765277147293, 0.21816861629486084, -0.21655553579330444, 0.1140211969614029, -0.19797568023204803, 0.48427289724349976, 0.07999071478843689, -0.0016841059550642967, -0.2617826759815216, 0.17573894560337067, -0.04255923628807068, 0.4966684579849243, -0.08285372704267502, 0.39546453952789307, -0.1983480155467987, 0.30922430753707886, -0.18970179557800293, 0.38346925377845764, -0.16395090520381927, 0.34469959139823914, -0.23709526658058167, -0.09534763544797897, -0.0656840056180954, 0.38687804341316223, 0.06792785972356796, 0.19106926023960114, -0.18565155565738678, 0.05443444103002548, -0.3627995252609253, -0.1660844385623932, 0.21196268498897552, -0.4191950857639313, -0.18404829502105713, -0.06317711621522903, 0.08222468197345734, 0.17137016355991364, 0.10934291034936905, -0.2676990032196045, 0.12024849653244019, 0.14476528763771057, 0.020352020859718323, -0.05331069603562355, 0.08859218657016754, -0.1316295713186264, 0.16530375182628632, 0.019617469981312752, 0.006018614862114191, -0.10200682282447815, -0.2280564159154892, -0.15375792980194092, -0.3175719976425171 ]
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. ![Code](https://user-images.githubusercontent.com/30871963/103437466-1f3a3300-4c4e-11eb-9d54-fc9601abfeec.png) ![Error](https://user-images.githubusercontent.com/30871963/103437407-7ee40e80-4c4d-11eb-8151-a86eb664e6be.png)
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. ![Code](https://user-images.githubusercontent.com/30871963/103437466-1f3a3300-4c4e-11eb-9d54-fc9601abfeec.png) ![Error](https://user-images.githubusercontent.com/30871963/103437407-7ee40e80-4c4d-11eb-8151-a86eb664e6be.png) 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.1116192489862442, 0.13646340370178223, -0.08705778419971466, 0.25539568066596985, 0.0008564788149669766, 0.05895277485251427, -0.020084785297513008, 0.34757742285728455, 0.1966426968574524, -0.03118632733821869, 0.4182317554950714, 0.05353847146034241, 0.0738414004445076, 0.20705784857273102, 0.1762290894985199, -0.3135474920272827, 0.10876921564340591, 0.12005504965782166, 0.004203787539154291, 0.05926813930273056, 0.06836002320051193, 0.2611466646194458, -0.22986890375614166, -0.004863701295107603, -0.4776693284511566, 0.0012447776971384883, 0.22213944792747498, -0.05025215446949005, -0.2584410309791565, -0.3565155565738678, 0.4109676778316498, 0.04971718415617943, 0.29618290066719055, 0.368635892868042, -0.0001199416074086912, 0.13682280480861664, 0.4905961751937866, -0.1850731074810028, -0.2386738806962967, -0.460479736328125, -0.09245941787958145, -0.30302345752716064, 0.029632171615958214, -0.2857760488986969, -0.14976732432842255, 0.19272539019584656, 0.31245356798171997, -0.27823618054389954, 0.1295938938856125, 0.14157375693321228, 0.17010195553302765, -0.09602054208517075, 0.3933217525482178, -0.08455633372068405, 0.26636090874671936, 0.1897556185722351, 0.01952560991048813, 0.32790443301200867, -0.03069116175174713, 0.1860114485025406, -0.087955042719841, 0.22828610241413116, 0.1306128054857254, -0.12481103092432022, 0.2921600639820099, -0.2631487250328064, -0.23441161215305328, -0.3487634062767029, 0.4009367525577545, 0.2763458490371704, 1.0225696563720703, -0.32504403591156006, -0.22685940563678741, 0.17267034947872162, -0.08039922267198563, 0.15192818641662598, 0.463224321603775, 0.3294931948184967, -0.20094023644924164, -0.021352054551243782, 0.16336290538311005, -0.4233604371547699, -0.1424345225095749, 0.3965315520763397, -0.05827609449625015, 0.1761898696422577, -0.022496573626995087, 0.16392086446285248, -0.08488468080759048, -0.20163573324680328, 0.0008358196937479079, -0.11620445549488068, 0.12153205275535583, 0.22262431681156158, -0.19901271164417267, 0.11720671504735947, -0.10283230245113373, 0.15468905866146088, 0.054781246930360794, -0.194584921002388, 0.012395067140460014, 0.02117510326206684, -0.1147521361708641, -0.0663919597864151, 0.33939626812934875, -0.08755041658878326, -0.024643437936902046, 0.24180671572685242, 0.29413270950317383, 0.26723936200141907, -0.005310242064297199, -0.025179479271173477, 0.13589619100093842, -0.4400860071182251, -0.520577609539032, -0.00867865327745676, -0.010131792165338993, -0.31644394993782043, -0.11142925918102264, 0.08144643902778625, -0.29263168573379517, -0.28979364037513733, 0.046160876750946045, 0.04229101538658142, -0.038176029920578, 0.18502555787563324, 0.06707858294248581, 0.025176873430609703, -0.18392984569072723, -0.2609623670578003, -0.048474494367837906, 0.3083534836769104, -0.30887696146965027, 0.03741908818483353, 0.2097853720188141, -0.2037174552679062, 0.4332461357116699, 0.01597580499947071, -0.14860835671424866, 0.04103488847613335, -0.07188072800636292, -0.27218320965766907, -0.20531193912029266, 0.147637739777565, 0.14827203750610352, 0.4279990792274475, -0.25415360927581787, -0.04506607726216316, -0.04538903012871742, 0.16307662427425385, -0.18616154789924622, 0.02389075979590416, 0.19413821399211884, 0.08776239305734634, -0.3134615123271942, -0.08323623239994049, 0.09346494823694229, 0.18905211985111237, 0.00008327636169269681, -0.5406210422515869, -0.022042931988835335, -0.03613549470901489, -0.04324048385024071, -0.28137680888175964, 0.34449341893196106, 0.4325041174888611, -0.710776686668396, 0.13105398416519165, -0.11302458494901657, 0.03028854914009571, 0.04701375216245651, -0.030907051637768745, -0.26157376170158386, 0.6532415747642517, -0.3513750433921814, 0.02339242398738861, 0.6675363779067993, -0.3990439474582672, -0.470745712518692, -0.04785829037427902, -0.03677971288561821, 0.0960417166352272, 0.05606843903660774, 0.2257205992937088, 0.16612088680267334, -0.03869534283876419, -0.09580932557582855, 0.28017058968544006, 0.08462581038475037, -0.15134590864181519, -0.3334876596927643, -0.08930271118879318, 0.392962783575058, 0.12886592745780945, 0.2982831597328186, -0.12376963347196579, 0.09043266624212265, 0.44403430819511414, 0.3604438304901123, -0.0058932495303452015, 0.09433141350746155, 0.312465101480484, -0.2774244248867035, 0.07359090447425842, 0.15727004408836365, -0.10259352624416351, -0.030863404273986816, 0.18449781835079193, -0.013444984331727028, -0.14412051439285278, -0.07760445028543472, -0.012705092318356037, -0.46615996956825256, -0.05461088940501213, -0.2460792362689972, 0.19046764075756073, 0.08028958737850189, 0.05317485332489014, 0.15173080563545227, 0.28076180815696716, -0.08192642778158188, 0.16427487134933472, -0.24599283933639526, 0.03114011511206627, -0.40252745151519775, 0.5011732578277588, -0.1499488800764084, -0.08361776918172836, 0.0748700350522995, 0.12124014645814896, 0.1842389553785324, -0.047068528831005096, -0.18863411247730255, 0.015283995307981968, 0.03306403383612633, 0.05424970015883446, 0.18068921566009521, -0.1334831416606903, 0.21012480556964874, -0.4950482249259949, 0.2544276714324951, 0.5814877152442932, 0.0968514010310173, -0.026298746466636658, 0.08261021226644516, -0.0026077262591570616, -0.21059812605381012, 0.0477730929851532, 0.0073693194426596165, 0.05987255647778511, 0.31916967034339905, 0.10818269848823547, -0.02057395502924919, -0.016407521441578865, 0.21793481707572937, 0.4814140796661377, 0.2567296624183655, -0.00579615356400609, -0.13791440427303314, 0.03551393747329712, 0.6405727863311768, 0.04707334190607071, -0.03232821822166443, 0.07829540222883224, -0.15482020378112793, -0.06523749977350235, 0.11926738172769547, 0.11617795377969742, 0.12075917422771454, 0.10988090932369232, -0.03780770301818848, -0.2099817395210266, 0.07560224086046219, -0.18817751109600067, 0.19308669865131378, 0.20204384624958038, 0.3380412757396698, 0.2567359507083893, -0.18549491465091705, 0.07740014791488647, -0.17870889604091644, -0.08020707219839096, 0.05393226072192192, 0.26177364587783813, -0.19842186570167542, -0.018806109204888344, -0.3552401065826416, -0.5050311088562012, -0.4395573139190674, -0.335166871547699, -0.4656636118888855, -0.17120514810085297, -0.08706019073724747, -0.1600819230079651, -0.06532682478427887, 0.10619302093982697, -0.020081298425793648, -0.178348571062088, -0.036739226430654526, -0.3817265033721924, -0.013892168179154396, -0.32404428720474243, -0.37242236733436584, -0.029135387390851974, 0.5464526414871216, 0.09178028255701065, 0.27540868520736694, -0.3189612329006195, -0.0864538922905922, -0.6308427453041077, -0.28297126293182373, 0.12341570854187012, -0.025761732831597328, -0.11418908089399338, 0.14406119287014008, 0.6267019510269165, -0.11735430359840393, -0.06352033466100693, 0.08902332931756973, 0.1732279360294342, -0.04166026785969734, -0.20119929313659668, -0.033211492002010345, 0.06317640095949173, 0.14380094408988953, -0.5816696882247925, -0.38611435890197754, -0.2711098790168762, -0.10430123656988144, 0.1433047205209732, 0.07732363045215607, -0.12534940242767334, 0.04537748545408249, 0.049880124628543854, 0.338544636964798, 0.19597777724266052, -0.030515655875205994, -0.05566855147480965, 0.3645648658275604, -0.18907007575035095, -0.5188427567481995, 0.5080661773681641, -0.07944215834140778, 0.25105348229408264, 0.16737715899944305, -0.33689412474632263, 0.2751416563987732, 0.09620246291160583, 0.21453401446342468, 0.1793723851442337, 0.1414342075586319, 0.20753340423107147, -0.25475338101387024, 0.23437243700027466, 0.06853187084197998, -0.17304210364818573, 0.2150750756263733, -0.35712704062461853, 0.4659358859062195, 0.41945701837539673, 0.2468273788690567, -0.17785602807998657, 0.6441900134086609, 0.2383691817522049, -0.012193477712571621, 0.3310514986515045, 0.14441849291324615, 0.11757805943489075, -0.19172154366970062, -0.1829325407743454, 0.07245680689811707, 0.004951410461217165, 0.026777703315019608, 0.12718680500984192, 0.008724531158804893, -0.16070273518562317, -0.31844452023506165, -0.3897818326950073, -0.31693321466445923, -0.40878164768218994, -0.039039865136146545, -0.21505431830883026, 0.3358779549598694, 0.10237081348896027, 0.10537335276603699, -0.010439909063279629, -0.2369309365749359, 0.23278900980949402, 0.3670199513435364, -0.074543297290802, 0.1514536738395691, 0.01567421667277813, -0.4938836395740509, -0.2678684890270233, 0.10957647860050201, 0.15590263903141022, 0.3675430715084076, -0.037583936005830765, 0.10032396763563156, 0.14621657133102417, -0.13293111324310303, 0.5034659504890442, -0.21041767299175262, 0.07516776025295258, 0.1487036794424057, 0.03136009722948074, -0.1780390739440918, -0.17822051048278809, -0.020471787080168724, 0.34546607732772827, 0.2869383990764618, -0.16966159641742706, -0.5061259865760803, -0.12800617516040802, 0.40849965810775757, 0.4383275508880615, -0.052006129175424576, -0.05382585898041725, -0.27386337518692017, -0.2603926360607147, -0.2510301172733307, -0.27958741784095764, -0.2178499698638916, 0.4130968749523163, 0.21535895764827728, 0.15717343986034393, 0.020384429022669792, -0.04940582811832428, -0.1336662769317627, -0.02479562908411026, 0.46498608589172363, 0.1659039705991745, 0.009291701018810272, 0.3347705602645874, 0.2640928030014038, -0.19374288618564606, 0.3560101389884949, 0.17061379551887512, -0.09005064517259598, 0.09017882496118546, -0.0634823888540268, -0.09271223098039627, 0.1813059151172638, -0.12471328675746918, 0.07467146962881088, -0.004283747635781765, -0.42844343185424805, 0.10969716310501099, -0.11769037693738937, 0.055222298949956894, 0.13453802466392517, -0.4963890016078949, -0.5103204250335693, 0.4413459300994873, 0.23003876209259033, 0.08859030902385712, 0.28569185733795166, 0.10801385343074799, -0.29881051182746887, 0.0704561397433281, 0.08634848147630692, 0.8700007796287537, 0.03194819390773773, 0.15754447877407074, 0.046929650008678436, 0.020953496918082237, 0.49413082003593445, -0.16625626385211945, 0.019841773435473442, -0.4533281922340393, 0.10528847575187683, -0.08929568529129028, 0.026227889582514763, 0.07917745411396027, -0.10050845891237259, -0.21686778962612152, 0.5290191769599915, 0.26517343521118164, 0.3622131943702698, 0.01976279355585575, 0.42334723472595215, 0.06286848336458206, -0.15936313569545746, -0.2850794494152069, 0.013070313259959221, -0.13677315413951874, 0.4633347988128662, -0.31155306100845337, -0.15872113406658173, -0.2044159322977066, -0.10010276734828949, -0.3631282448768616, 0.05453939735889435, -0.2672950029373169, 0.2633305788040161, -0.22751998901367188, -0.568673849105835, 0.47096705436706543, 0.34369343519210815, 0.3785260319709778, 0.3357398808002472, -0.2580088973045349, 0.22184564173221588, -0.39467447996139526, -0.3821428418159485, 0.01960020698606968, 0.2535358667373657, 0.29882749915122986, -0.22331875562667847, -0.328641802072525, 0.2567251920700073, -0.07972505688667297, 0.02279733307659626, -0.13688011467456818, -0.10166026651859283, 0.27372050285339355, 0.032406557351350784, -0.363227903842926, 0.012234734371304512, -0.052208974957466125, -0.07889330387115479, 0.10357869416475296, 0.00271977880038321, 0.10116544365882874, -0.04091040790081024, 0.12356489896774292, -0.04330918565392494, -0.002265975344926119, 0.29453492164611816, 0.16778144240379333, -0.15831723809242249, 0.3771737217903137, 0.26597893238067627, -0.39431530237197876, -0.1178562194108963, -0.11526446789503098, -0.34693238139152527, -0.30148258805274963, -0.07580209523439407, 0.02942974865436554, 0.15621811151504517, -0.21240881085395813, 0.23154470324516296, 0.12007814645767212, -0.17024050652980804, 0.00031651469180360436, -0.35632678866386414, -0.2629666328430176, 0.3253132998943329, -0.023872368037700653, 0.07747761905193329, 0.04763401299715042, -0.23975233733654022, 0.31454572081565857, -0.2913704514503479, -0.19070066511631012, -0.04249006509780884, -0.12484253197908401, 0.041115522384643555, 0.06793384999036789, 0.11694306880235672, -0.1829066127538681, -0.03742772340774536, 0.043380528688430786, -0.06570261716842651, -0.09602326899766922, -0.06344432383775711, 0.2495621144771576, 0.1393841803073883, -0.022188544273376465, 0.04680626094341278, 0.0602465458214283, -0.4580155313014984, -0.01980646699666977, 0.061683181673288345, -0.12214479595422745, -0.038697730749845505, -0.018839644268155098, 0.17967785894870758, -0.045894805341959, -0.017405344173312187, -0.5574917197227478, 0.3837869167327881, 0.057664673775434494, 0.2761912941932678, 0.13307411968708038, 0.384361207485199, 0.20524951815605164, -0.06467914581298828, -0.4044157862663269, 0.09428832679986954, -0.1726573258638382, 0.01914658397436142, 0.18242907524108887, -0.36653611063957214, 0.35289138555526733, 0.22528567910194397, 0.16961944103240967, 0.21716725826263428, -0.19024574756622314, -0.03157712146639824, 0.36622992157936096, 0.08167358487844467, -0.5075834393501282, 0.08731155097484589, 0.5958001017570496, -0.007447227369993925, -0.020694609731435776, 0.08272667974233627, 0.31309932470321655, -0.20658650994300842, -0.025811852887272835, 0.28252846002578735, 0.14409373700618744, -0.018782101571559906, 0.2603685259819031, 0.3330649733543396, 0.3378622829914093, 0.25190871953964233, -0.013017939403653145, 0.08690807223320007, -0.19732517004013062, 0.5674136877059937, -0.4624262750148773, 0.20749060809612274, 0.19395574927330017, -0.09502878785133362, -0.10868114978075027, -0.303469717502594, 0.16815045475959778, 0.2585102915763855, -0.13550935685634613, -0.036233313381671906, 0.03528190404176712, 0.05170663073658943, 0.26713827252388, -0.16915400326251984, -0.12827956676483154, 0.04097588360309601, -0.1965315043926239, 0.2740447223186493, -0.4266400635242462, -0.3769046366214752, -0.08376255631446838, 0.1964242309331894, 0.07702666521072388, -0.09484385699033737, 0.006340393330901861, 0.28209438920021057, -0.18011492490768433, -0.18136060237884521, 0.7708128094673157, -0.25831669569015503, 0.06915362924337387, -0.1365056186914444, 0.18439282476902008, -0.1348945051431656, -0.19448426365852356, 0.09755770117044449, 0.260877788066864, 0.14805810153484344, 0.27694907784461975, -0.2119622379541397, -0.015836820006370544, 0.09528005123138428, 0.02450587972998619, 0.11417017132043839, 0.13544915616512299, 0.13436928391456604, 0.05501476302742958, 0.3164033889770508, 0.10580562055110931, -0.09450370073318481, -0.19320978224277496, 0.30635568499565125, 0.11150526255369186, -0.1694963425397873, 0.08685862272977829, -0.14423060417175293, 0.005742007866501808, -0.20128849148750305, -0.022590599954128265, -0.5413017272949219, -0.12065514922142029, 0.27947208285331726, 0.168634831905365, 0.00834045559167862, -0.3549894690513611, 0.01234798040241003, -0.20088355243206024, 0.37891048192977905, 0.23894740641117096, 0.2652486562728882, -0.39751580357551575, -0.3675658106803894, -0.6659092307090759, 0.15242630243301392, -0.10941486805677414, -0.1661461442708969, 0.03177695721387863, 0.09338420629501343, -0.08173192292451859, 0.16655781865119934, 0.4052269458770752, 0.06374000757932663, 0.00037636238266713917, 0.31491994857788086, -0.11845773458480835, -0.19611938297748566, -0.25162991881370544, -0.07192698866128922, -0.3258892297744751, -0.1477104276418686, 0.07254550606012344, -0.431522011756897, -0.006800523027777672, -0.04936349764466286, -0.19839400053024292, 0.23718860745429993, -0.26166120171546936, 0.10344014316797256, -0.157209575176239, 0.4954681098461151, 0.030281510204076767, -0.0985049456357956, -0.1353357434272766, 0.13754500448703766, -0.07231245189905167, 0.5550057291984558, -0.02993975207209587, 0.43243128061294556, -0.1629997193813324, 0.37046653032302856, -0.24831905961036682, 0.396675169467926, -0.10451430082321167, 0.35197824239730835, -0.161177858710289, -0.09055105596780777, -0.049982231110334396, 0.2990833818912506, 0.15290015935897827, 0.3317384123802185, -0.18460220098495483, 0.10339660942554474, -0.4474153518676758, -0.20450273156166077, 0.22561635076999664, -0.45894655585289, -0.14083223044872284, -0.107719786465168, 0.12489617615938187, 0.1781657338142395, 0.07445241510868073, -0.3265513777732849, 0.12418144941329956, 0.12458169460296631, 0.01420885045081377, -0.03455446660518646, 0.061868537217378616, -0.1609521061182022, 0.0698513612151146, -0.027772843837738037, -0.012687996961176395, -0.1279168426990509, -0.2843228876590729, -0.10380542278289795, -0.3264329135417938 ]
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 ![Error](https://user-images.githubusercontent.com/30871963/103479005-69f3b080-4df0-11eb-83ae-58d7bb56a90e.png)
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. ![Code](https://user-images.githubusercontent.com/30871963/103437466-1f3a3300-4c4e-11eb-9d54-fc9601abfeec.png) ![Error](https://user-images.githubusercontent.com/30871963/103437407-7ee40e80-4c4d-11eb-8151-a86eb664e6be.png)
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. ![Code](https://user-images.githubusercontent.com/30871963/103437466-1f3a3300-4c4e-11eb-9d54-fc9601abfeec.png) ![Error](https://user-images.githubusercontent.com/30871963/103437407-7ee40e80-4c4d-11eb-8151-a86eb664e6be.png) 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 ![Error](https://user-images.githubusercontent.com/30871963/103479005-69f3b080-4df0-11eb-83ae-58d7bb56a90e.png)
[ -0.1465507298707962, 0.06893245130777359, -0.06859826296567917, 0.2491661012172699, 0.09402187913656235, 0.09816175699234009, -0.010803455486893654, 0.30026480555534363, 0.20563086867332458, 0.01055306475609541, 0.39934003353118896, 0.12490364164113998, 0.09441303461790085, 0.17127469182014465, 0.20686854422092438, -0.34491387009620667, 0.0655948743224144, 0.10910080373287201, -0.0037667544092983007, 0.10991733521223068, 0.14113029837608337, 0.3182808458805084, -0.254585325717926, -0.02231612801551819, -0.46778228878974915, 0.020926570519804955, 0.18058499693870544, -0.12944316864013672, -0.32637596130371094, -0.39869195222854614, 0.4391389787197113, 0.05444307625293732, 0.25939851999282837, 0.3542148470878601, -0.00011938172247027978, 0.09857237339019775, 0.5011400580406189, -0.16283969581127167, -0.3172675669193268, -0.48802292346954346, -0.10994574427604675, -0.3709638714790344, 0.07774859666824341, -0.26360321044921875, -0.1019328162074089, 0.17797915637493134, 0.3313586115837097, -0.17153789103031158, 0.07503082603216171, 0.16680094599723816, 0.15847845375537872, -0.08959532529115677, 0.4187123477458954, -0.11091674864292145, 0.21555933356285095, 0.2446870505809784, -0.060799721628427505, 0.28808560967445374, 0.04875457286834717, 0.0981854647397995, -0.025601057335734367, 0.18521326780319214, 0.05088281258940697, -0.08271186053752899, 0.3174598217010498, -0.2934677302837372, -0.25737300515174866, -0.35739216208457947, 0.42138412594795227, 0.337917298078537, 1.0225015878677368, -0.39858344197273254, -0.2738867700099945, 0.11280214041471481, -0.005135129205882549, 0.18228648602962494, 0.4232432544231415, 0.41334661841392517, -0.25054216384887695, -0.015567493624985218, 0.07766593247652054, -0.3905901610851288, -0.13467679917812347, 0.37621334195137024, 0.08350867033004761, 0.10728377103805542, -0.04830736294388771, 0.15692771971225739, -0.01177465170621872, -0.19300198554992676, -0.02861923910677433, -0.09066922962665558, 0.1219884380698204, 0.32966843247413635, -0.2907237708568573, 0.17773498594760895, -0.11845467239618301, 0.15665791928768158, 0.09861483424901962, -0.18047206103801727, -0.01999307982623577, 0.024081898853182793, -0.10723960399627686, 0.02556326799094677, 0.34622159600257874, -0.0297966580837965, -0.031600598245859146, 0.2042374610900879, 0.2528339922428131, 0.34548887610435486, 0.037843070924282074, -0.057752303779125214, 0.06660786271095276, -0.35185858607292175, -0.5248504281044006, -0.055071912705898285, -0.06650513410568237, -0.27467289566993713, -0.18362215161323547, 0.016287079080939293, -0.24849507212638855, -0.19212602078914642, 0.10005804896354675, 0.0523054376244545, 0.0006562395137734711, 0.17179957032203674, 0.02455001138150692, 0.029280073940753937, -0.19518603384494781, -0.24482202529907227, -0.041518472135066986, 0.34070467948913574, -0.34169241786003113, 0.029413849115371704, 0.2804208993911743, -0.2680836617946625, 0.45138487219810486, 0.06202571466565132, -0.1783185750246048, 0.024919766932725906, -0.07757478952407837, -0.24942582845687866, -0.23913195729255676, 0.2149783819913864, 0.17169634997844696, 0.4294672906398773, -0.17782893776893616, -0.08995641022920609, -0.023065729066729546, 0.07995711266994476, -0.21606209874153137, 0.02275649458169937, 0.07057665288448334, 0.06495131552219391, -0.3262452185153961, -0.1010822281241417, -0.07285947352647781, 0.16522327065467834, -0.03622883930802345, -0.4435540735721588, 0.026736125349998474, -0.04158353805541992, -0.04824284091591835, -0.27891799807548523, 0.33090940117836, 0.4413667619228363, -0.6709667444229126, 0.05245177447795868, -0.1534167230129242, 0.00017242781177628785, 0.10143274068832397, 0.008436276577413082, -0.2476767748594284, 0.5937280058860779, -0.3557329773902893, 0.03638933226466179, 0.5849059224128723, -0.3862289786338806, -0.527080774307251, 0.009476455859839916, -0.004336047451943159, 0.08285719901323318, 0.07659174501895905, 0.24259741604328156, 0.169855535030365, 0.038708221167325974, -0.19012071192264557, 0.31344157457351685, 0.07148171216249466, -0.046893347054719925, -0.2660345435142517, -0.12860703468322754, 0.3043835461139679, 0.15952013432979584, 0.2136814296245575, -0.170625239610672, 0.16539563238620758, 0.4260922968387604, 0.345883309841156, -0.007689747493714094, 0.17911632359027863, 0.44678691029548645, -0.17614658176898956, 0.14053203165531158, 0.21313124895095825, -0.1383676379919052, -0.05268695577979088, 0.1961437612771988, 0.0010345070622861385, -0.04221303015947342, -0.2385883629322052, -0.007119704503566027, -0.4226629137992859, -0.06250644475221634, -0.28374508023262024, 0.11420197039842606, 0.06460005044937134, 0.034682247787714005, 0.1323760598897934, 0.28996485471725464, -0.07081885635852814, 0.2151220589876175, -0.23390410840511322, 0.045122504234313965, -0.4207122027873993, 0.406482070684433, -0.13210155069828033, -0.10839568078517914, 0.05494106188416481, 0.19688761234283447, 0.1279752254486084, -0.0218865554779768, -0.18314874172210693, 0.0394134521484375, 0.06950244307518005, 0.025119561702013016, 0.24002552032470703, -0.1205628365278244, 0.16849364340305328, -0.5526190400123596, 0.21127884089946747, 0.47900140285491943, 0.08039633929729462, 0.04796953499317169, -0.03373735025525093, -0.051685184240341187, -0.2463637888431549, 0.05472533777356148, -0.01897868700325489, 0.13436421751976013, 0.37303611636161804, 0.1178281307220459, -0.006696410942822695, -0.002312741708010435, 0.2520796060562134, 0.45055222511291504, 0.2667418122291565, 0.033175501972436905, -0.052322227507829666, 0.056404244154691696, 0.6210757493972778, 0.07231388986110687, 0.0047869388945400715, 0.1327172815799713, -0.23962527513504028, -0.10667352378368378, 0.07859804481267929, 0.128067746758461, 0.13467948138713837, 0.10670799016952515, 0.013132070191204548, -0.2335934191942215, 0.13730348646640778, -0.15482717752456665, 0.17483556270599365, 0.19629430770874023, 0.23684269189834595, 0.18712832033634186, -0.12339144945144653, 0.07611121982336044, -0.18631669878959656, -0.0816783607006073, 0.06594520807266235, 0.31907153129577637, -0.18995916843414307, -0.029923174530267715, -0.36847400665283203, -0.5022331476211548, -0.3432817757129669, -0.3228254020214081, -0.4344164729118347, -0.22184982895851135, -0.09495740383863449, -0.08813446760177612, 0.05372738465666771, 0.05005069822072983, 0.040601007640361786, -0.20148086547851562, 0.02361309342086315, -0.34075185656547546, -0.08307893574237823, -0.32543033361434937, -0.32072913646698, -0.05059988424181938, 0.5199857354164124, 0.1368110626935959, 0.30065762996673584, -0.3158458173274994, -0.09247569739818573, -0.6595547795295715, -0.2461898773908615, 0.100924052298069, -0.05307132378220558, -0.016033489257097244, 0.18561609089374542, 0.6253232359886169, -0.2144852578639984, 0.02816033735871315, 0.06580241769552231, 0.15119358897209167, -0.08174478262662888, -0.07505634427070618, -0.07509788125753403, -0.02485228329896927, 0.09200335294008255, -0.5493102669715881, -0.3699102997779846, -0.27264782786369324, -0.01649325154721737, 0.034428760409355164, 0.05883064121007919, -0.06581082195043564, 0.030434437096118927, 0.11518237739801407, 0.19855493307113647, 0.21378032863140106, -0.01256481371819973, -0.15781284868717194, 0.4093872010707855, -0.1883186548948288, -0.5284601449966431, 0.6092129945755005, -0.011941925622522831, 0.27324631810188293, 0.05326055362820625, -0.31306448578834534, 0.290449321269989, 0.01796741597354412, 0.2536846101284027, 0.16469749808311462, 0.13239172101020813, 0.18325941264629364, -0.298881471157074, 0.24729780852794647, 0.04792754352092743, -0.1605924367904663, 0.11974138021469116, -0.3451820909976959, 0.45369753241539, 0.3488166332244873, 0.2859296500682831, -0.02692265994846821, 0.6235117316246033, 0.3517341613769531, 0.04418162629008293, 0.401258647441864, 0.09014851599931717, 0.10086338222026825, -0.17462719976902008, -0.2704686224460602, 0.12104202061891556, 0.002657008357346058, 0.14523883163928986, 0.1305578500032425, 0.049768418073654175, -0.10580633580684662, -0.23216378688812256, -0.3345562517642975, -0.3322810232639313, -0.32498928904533386, -0.11720561981201172, -0.1760757565498352, 0.3473750054836273, 0.11119616031646729, 0.0025073825381696224, -0.000004974112016498111, -0.31060847640037537, 0.15433302521705627, 0.42841798067092896, -0.07138524949550629, 0.2148963361978531, 0.04589878022670746, -0.48857855796813965, -0.25915297865867615, -0.00912503432482481, 0.12512937188148499, 0.3944344222545624, -0.13150128722190857, 0.2689726948738098, 0.23658226430416107, 0.05122002959251404, 0.5420584082603455, -0.23511599004268646, 0.03451036661863327, 0.0849737673997879, 0.040355268865823746, -0.21707148849964142, -0.16072814166545868, -0.0016795630799606442, 0.3225405216217041, 0.23673726618289948, -0.06387579441070557, -0.560326099395752, -0.1590346395969391, 0.41870805621147156, 0.416723370552063, -0.0038898743223398924, -0.11832264810800552, -0.2904563546180725, -0.2515203058719635, -0.277849942445755, -0.28191307187080383, -0.1444505751132965, 0.4368577003479004, 0.19763685762882233, 0.13513392210006714, 0.08099573850631714, 0.06411056965589523, -0.16845858097076416, -0.12307633459568024, 0.3975960314273834, 0.22128447890281677, -0.032438915222883224, 0.29523202776908875, 0.25298237800598145, -0.1995544582605362, 0.3428431451320648, 0.1516624391078949, -0.19879788160324097, 0.06467201560735703, -0.06578411161899567, -0.052187729626894, 0.05210898444056511, -0.13396787643432617, 0.09743940830230713, 0.0062316907569766045, -0.32702314853668213, 0.10633376985788345, -0.1362154185771942, 0.12076646834611893, 0.1430390626192093, -0.47244083881378174, -0.5154544115066528, 0.44627347588539124, 0.20111830532550812, 0.17339366674423218, 0.2453349232673645, 0.1415679156780243, -0.21593226492404938, 0.06639284640550613, 0.00424832571297884, 0.766991138458252, -0.06089659035205841, 0.16526676714420319, 0.033288463950157166, 0.10047857463359833, 0.5030773878097534, -0.13884657621383667, 0.024730201810598373, -0.4496910274028778, 0.017535483464598656, -0.12471447139978409, 0.01734906993806362, 0.042438868433237076, -0.08994556218385696, -0.25322654843330383, 0.5594902038574219, 0.28339284658432007, 0.3509940505027771, 0.09592805057764053, 0.39102330803871155, 0.019871411845088005, -0.2344888299703598, -0.2341429889202118, 0.026188001036643982, -0.19983305037021637, 0.44165652990341187, -0.21832899749279022, -0.16599909961223602, -0.1723133623600006, -0.018236273899674416, -0.4293847978115082, 0.11233716458082199, -0.26185545325279236, 0.3072476387023926, -0.15226686000823975, -0.4519038498401642, 0.502482533454895, 0.3713587522506714, 0.27345770597457886, 0.3167135417461395, -0.3428612947463989, 0.1986534595489502, -0.47357890009880066, -0.42062610387802124, 0.041833121329545975, 0.20265495777130127, 0.3022678792476654, -0.1343313604593277, -0.3665069043636322, 0.1866331398487091, -0.08962137997150421, 0.03957375884056091, -0.025838419795036316, -0.08528484404087067, 0.26401275396347046, 0.03690415993332863, -0.43082183599472046, -0.11023619771003723, -0.05710942670702934, -0.13755588233470917, 0.0926743596792221, 0.08075860887765884, 0.05542072653770447, 0.03784484788775444, 0.1084170714020729, -0.10103818029165268, 0.06520427763462067, 0.33989688754081726, -0.04315929114818573, -0.19456492364406586, 0.3939538598060608, 0.34708091616630554, -0.4483509957790375, -0.14777998626232147, -0.09579131007194519, -0.3243698477745056, -0.31896474957466125, -0.0977712869644165, 0.08924727141857147, 0.25732842087745667, -0.13051308691501617, 0.16605150699615479, 0.0075246719643473625, -0.3035077750682831, -0.08587653189897537, -0.4674796164035797, -0.23153403401374817, 0.2842710018157959, -0.12374673038721085, 0.03326162323355675, 0.0810023620724678, -0.3440440595149994, 0.38554275035858154, -0.3068338632583618, -0.17453984916210175, 0.001987514551728964, -0.1550564020872116, 0.0048713646829128265, 0.13385406136512756, 0.11743391305208206, -0.1343637853860855, -0.07791588455438614, 0.05196008458733559, -0.10636209696531296, -0.049879252910614014, -0.08142058551311493, 0.2275128811597824, 0.1191379576921463, 0.001336720772087574, 0.08680296689271927, 0.05044453963637352, -0.4908798933029175, -0.09743600338697433, -0.00863092951476574, -0.016831431537866592, 0.010622541420161724, -0.04205532371997833, 0.2127014696598053, -0.07494272291660309, -0.003319678595289588, -0.4467357397079468, 0.3419922888278961, 0.01564224436879158, 0.18517917394638062, 0.09354129433631897, 0.3374811112880707, 0.25303223729133606, -0.03609959036111832, -0.4261893332004547, 0.13666994869709015, -0.08232810348272324, -0.03470226004719734, 0.24623414874076843, -0.3669513165950775, 0.367249071598053, 0.22439104318618774, 0.1517205834388733, 0.11613646149635315, -0.21073280274868011, 0.028262071311473846, 0.34786903858184814, 0.08370561897754669, -0.47586771845817566, 0.016556041315197945, 0.6047455072402954, 0.10224974900484085, -0.05329558998346329, 0.048984646797180176, 0.3269354999065399, -0.26050135493278503, -0.039825718849897385, 0.256674587726593, 0.22919586300849915, -0.020724276080727577, 0.2210005223751068, 0.3879460096359253, 0.3946743309497833, 0.20138277113437653, 0.028447838500142097, 0.06939726322889328, -0.20003251731395721, 0.6186944246292114, -0.4213268458843231, 0.19753138720989227, 0.16578876972198486, -0.03260823339223862, -0.12678299844264984, -0.2862219512462616, 0.11914578825235367, 0.16869410872459412, -0.09234151244163513, -0.05366203933954239, -0.038985684514045715, 0.19532862305641174, 0.26211822032928467, -0.037030041217803955, -0.1986600160598755, 0.08074319362640381, -0.24149897694587708, 0.26504942774772644, -0.42433762550354004, -0.30990150570869446, -0.09611589461565018, 0.15783296525478363, 0.09804212301969528, -0.09039872884750366, 0.004710082430392504, 0.28443998098373413, -0.15450623631477356, -0.2538585364818573, 0.7121480703353882, -0.08250340819358826, 0.05649730935692787, -0.16284751892089844, 0.09462074935436249, -0.16785374283790588, -0.10835132002830505, -0.053419385105371475, 0.2686804533004761, 0.21728554368019104, 0.2691024839878082, -0.2216741293668747, -0.0005257772281765938, 0.04626421257853508, -0.044005174189805984, 0.1139603778719902, 0.17941604554653168, 0.01539904996752739, 0.06347610801458359, 0.2147214710712433, 0.07824237644672394, -0.06384022533893585, -0.2578323185443878, 0.3082064390182495, 0.17744691669940948, -0.08481594920158386, 0.033944740891456604, -0.2267201691865921, 0.06193757802248001, -0.23826104402542114, 0.03975572809576988, -0.5503431558609009, -0.07265123724937439, 0.42017021775245667, 0.16713503003120422, -0.0077171167358756065, -0.42541036009788513, 0.01667974144220352, -0.195061594247818, 0.35283708572387695, 0.3148078918457031, 0.18616187572479248, -0.39988458156585693, -0.34069201350212097, -0.6655069589614868, 0.12757426500320435, -0.10366109013557434, -0.1927260011434555, 0.14702942967414856, 0.07254578173160553, -0.18722137808799744, 0.09502385556697845, 0.3276730477809906, 0.09891262650489807, 0.08049030601978302, 0.37176573276519775, -0.11003822833299637, -0.23679107427597046, -0.21630984544754028, -0.02963085286319256, -0.2719544768333435, -0.14400610327720642, 0.12140461802482605, -0.4027555584907532, -0.022294731810688972, -0.10110677778720856, -0.08475896716117859, 0.20494629442691803, -0.22550897300243378, 0.047050610184669495, -0.1775290071964264, 0.4820345938205719, 0.06123703718185425, -0.025944890454411507, -0.1860617846250534, 0.1464218646287918, -0.007571766618639231, 0.5809043645858765, -0.1022230014204979, 0.41034677624702454, -0.18639592826366425, 0.2700352072715759, -0.2632564902305603, 0.33783578872680664, -0.10884559154510498, 0.2931080758571625, -0.2034669667482376, -0.06979221105575562, -0.07849425822496414, 0.42201560735702515, 0.07478470355272293, 0.1694672703742981, -0.2019442915916443, 0.06271298229694366, -0.3818303942680359, -0.22245875000953674, 0.18965506553649902, -0.454994797706604, -0.19097498059272766, -0.05544634163379669, 0.10624706000089645, 0.14036786556243896, 0.012704837135970592, -0.31248438358306885, 0.13402780890464783, 0.15676158666610718, 0.07226191461086273, -0.0718388631939888, 0.1322748064994812, -0.15415461361408234, 0.20066222548484802, 0.035668231546878815, 0.007467131596058607, -0.09693068265914917, -0.20216970145702362, -0.11201390624046326, -0.28648197650909424 ]
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. ![Code](https://user-images.githubusercontent.com/30871963/103437466-1f3a3300-4c4e-11eb-9d54-fc9601abfeec.png) ![Error](https://user-images.githubusercontent.com/30871963/103437407-7ee40e80-4c4d-11eb-8151-a86eb664e6be.png)
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. ![Code](https://user-images.githubusercontent.com/30871963/103437466-1f3a3300-4c4e-11eb-9d54-fc9601abfeec.png) ![Error](https://user-images.githubusercontent.com/30871963/103437407-7ee40e80-4c4d-11eb-8151-a86eb664e6be.png) 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.11424624919891357, 0.011292239651083946, -0.08272907137870789, 0.1881921887397766, 0.050329141318798065, 0.20311011373996735, -0.021709537133574486, 0.4027992784976959, 0.20847217738628387, -0.005866351071745157, 0.29710033535957336, -0.010638026520609856, 0.10074156522750854, 0.11281653493642807, 0.11898080259561539, -0.3750506639480591, 0.06043180078268051, -0.07140570878982544, 0.12338143587112427, 0.07428497076034546, 0.012470140121877193, 0.25301089882850647, -0.29661476612091064, -0.0009149305988103151, -0.5076272487640381, 0.08119030296802521, 0.09296488761901855, -0.17468544840812683, -0.3081795871257782, -0.3290763199329376, 0.39469456672668457, 0.03202173486351967, 0.33803239464759827, 0.26783323287963867, -0.00011856272612931207, 0.049636442214250565, 0.5291933417320251, -0.173458069562912, -0.3872651159763336, -0.3783113360404968, -0.14021390676498413, -0.3079809546470642, 0.0476079024374485, -0.24496345221996307, -0.08171121776103973, 0.09958081692457199, 0.3573266267776489, -0.21651099622249603, 0.11970297247171402, 0.20802870392799377, 0.1690303236246109, -0.09814074635505676, 0.38335391879081726, -0.20024767518043518, 0.17897431552410126, 0.23496170341968536, -0.056192535907030106, 0.3583010733127594, -0.0010119156213477254, -0.0040530851110816, -0.03697890788316727, 0.1388840526342392, 0.046540435403585434, -0.13587889075279236, 0.21641777455806732, -0.2033798098564148, -0.10633599013090134, -0.38071995973587036, 0.4467657506465912, 0.29757413268089294, 1.0478886365890503, -0.31986063718795776, -0.2823241353034973, 0.21480388939380646, 0.025511400774121284, 0.16011540591716766, 0.37264713644981384, 0.3713811933994293, -0.254400372505188, 0.0224460382014513, 0.23289276659488678, -0.41393592953681946, -0.09356483072042465, 0.4551306962966919, 0.00045907581807114184, 0.1820249855518341, 0.03933239355683327, 0.11478552222251892, -0.018758343532681465, -0.2651476263999939, -0.029325110837817192, -0.10630442202091217, 0.15765757858753204, 0.38448566198349, -0.2153397798538208, 0.09578438848257065, -0.15523430705070496, 0.15057969093322754, 0.04827108234167099, -0.2602936327457428, -0.0801321491599083, -0.0422482043504715, -0.0851454809308052, -0.01829560287296772, 0.4143211543560028, -0.10231112688779831, 0.04363342374563217, 0.20536911487579346, 0.2462700605392456, 0.3137836456298828, 0.0165846087038517, -0.02248719520866871, 0.12462665885686874, -0.40934139490127563, -0.45077505707740784, -0.04205219820141792, 0.08052998781204224, -0.24137333035469055, -0.14524340629577637, 0.049471765756607056, -0.3812090754508972, -0.20450656116008759, -0.06513776630163193, 0.0024247970432043076, -0.015668312087655067, 0.10617023706436157, 0.1126059889793396, 0.052261028438806534, -0.14971250295639038, -0.31513819098472595, -0.08037620782852173, 0.19267770648002625, -0.33319714665412903, 0.11037402600049973, 0.21772651374340057, -0.2642214000225067, 0.2979156970977783, 0.1510026752948761, -0.2088242918252945, -0.039662353694438934, -0.15561766922473907, -0.2326008826494217, -0.3740476667881012, 0.15420137345790863, 0.17729103565216064, 0.4825563132762909, -0.14543524384498596, -0.12827929854393005, -0.00959283672273159, 0.11438541859388351, -0.35797885060310364, 0.03629409149289131, 0.03558993339538574, 0.08470027893781662, -0.26169663667678833, -0.08363281190395355, 0.06908978521823883, 0.17726513743400574, -0.034059107303619385, -0.4436787962913513, 0.022583838552236557, -0.05265389010310173, -0.1188790500164032, -0.2595073878765106, 0.30081862211227417, 0.43704524636268616, -0.5657997131347656, 0.013142438605427742, -0.2086281180381775, 0.02956695295870304, 0.054265279322862625, 0.01612069457769394, -0.2735316753387451, 0.669620931148529, -0.2844648063182831, -0.004577829036861658, 0.5243000984191895, -0.26639533042907715, -0.4838481843471527, -0.014880156144499779, -0.015125364065170288, 0.09028821438550949, -0.0813731849193573, 0.2021465301513672, 0.20868921279907227, -0.023769786581397057, 0.0005577956908382475, 0.31124141812324524, 0.09341501444578171, -0.19459481537342072, -0.2605806589126587, -0.09506767988204956, 0.4047929048538208, 0.11304716020822525, 0.26996323466300964, -0.04575759172439575, 0.1129862368106842, 0.6010671257972717, 0.40218642354011536, 0.13488446176052094, 0.14590540528297424, 0.3607161343097687, -0.24061846733093262, 0.17040149867534637, 0.24508139491081238, -0.1539524644613266, -0.0987963080406189, 0.24990533292293549, 0.0002755219757091254, 0.022465618327260017, -0.14399762451648712, -0.012586638331413269, -0.44327831268310547, 0.03133750706911087, -0.21764524281024933, 0.15272222459316254, 0.08911948651075363, -0.01598369888961315, 0.07168117165565491, 0.43037310242652893, 0.020728347823023796, 0.017246995121240616, -0.18069568276405334, 0.016177687793970108, -0.3506976366043091, 0.4398333430290222, -0.12033705413341522, -0.06019500270485878, -0.012008554302155972, 0.10215603560209274, 0.20028485357761383, 0.07234341651201248, -0.11720617860555649, -0.026403751224279404, 0.21866893768310547, 0.05578844994306564, 0.2651778757572174, -0.1387016475200653, 0.14834433794021606, -0.547291100025177, 0.2296736091375351, 0.598179280757904, 0.05417527258396149, -0.06340301036834717, 0.044930312782526016, 0.05716728791594505, -0.12944750487804413, 0.014599055983126163, -0.1710968166589737, 0.23129944503307343, 0.3597041666507721, 0.01774793677031994, 0.03329725190997124, -0.022608226165175438, 0.20050685107707977, 0.3880093991756439, 0.16047562658786774, 0.025718234479427338, -0.05175920948386192, -0.05018336698412895, 0.5676723718643188, 0.013027239590883255, 0.040476322174072266, 0.12144489586353302, -0.22767391800880432, -0.10600654035806656, 0.0722448080778122, -0.003508713562041521, 0.03727308660745621, 0.06252124160528183, 0.014578761532902718, -0.20795728266239166, 0.13756632804870605, -0.1434824913740158, 0.2105374038219452, 0.19330525398254395, 0.28953102231025696, 0.170334130525589, -0.11885793507099152, 0.09619583934545517, -0.12601670622825623, -0.0010039831977337599, 0.03230385109782219, 0.3559485077857971, -0.14235784113407135, -0.0748433992266655, -0.31416019797325134, -0.3821250796318054, -0.3466796278953552, -0.3569432199001312, -0.46469369530677795, -0.3202173411846161, -0.06652823090553284, -0.1526098996400833, 0.011852453462779522, 0.05953775718808174, -0.020108548924326897, -0.19330094754695892, 0.08287964016199112, -0.35023292899131775, -0.06728500127792358, -0.3931134343147278, -0.26383209228515625, -0.021901465952396393, 0.4575640559196472, 0.10358505696058273, 0.19101078808307648, -0.29446491599082947, -0.13936850428581238, -0.6602703928947449, -0.21317777037620544, 0.03331658989191055, -0.05532495677471161, -0.06938818842172623, 0.06117003411054611, 0.7040321230888367, -0.14481331408023834, -0.021932367235422134, 0.09306740015745163, 0.1253579705953598, -0.09222899377346039, -0.030883677303791046, -0.01881922036409378, 0.07058380544185638, 0.14346840977668762, -0.44466501474380493, -0.39008164405822754, -0.19722573459148407, -0.07932953536510468, 0.04656221717596054, 0.00044181980774737895, -0.009668933227658272, 0.1041196882724762, -0.0156586691737175, 0.2523650825023651, 0.07865334302186966, -0.0663234069943428, -0.029541313648223877, 0.40979957580566406, -0.11505715548992157, -0.4930724501609802, 0.5355675220489502, -0.03230452537536621, 0.0980370044708252, 0.08335473388433456, -0.34454911947250366, 0.3909447491168976, 0.11419699341058731, 0.34403398633003235, 0.1787695735692978, -0.06293851882219315, 0.11423102766275406, -0.3059740960597992, 0.2277785986661911, 0.1264757364988327, -0.09276103228330612, 0.02436886727809906, -0.2515072822570801, 0.5262633562088013, 0.35555922985076904, 0.23986777663230896, -0.09599631279706955, 0.6890127658843994, 0.3092787265777588, 0.09135159105062485, 0.3108576238155365, 0.11477543413639069, 0.04275583475828171, -0.14774322509765625, -0.3294082283973694, 0.0390821136534214, -0.001718273269943893, 0.060398731380701065, 0.12463899701833725, -0.008349088951945305, -0.17622889578342438, -0.26747408509254456, -0.3386889696121216, -0.3087988495826721, -0.4182576835155487, -0.031201401725411415, -0.18272878229618073, 0.380619615316391, 0.10196425765752792, 0.03986452892422676, 0.007680030539631844, -0.3526425361633301, 0.25159952044487, 0.37379059195518494, -0.06074420362710953, 0.15002484619617462, 0.12558816373348236, -0.3825126588344574, -0.2390325665473938, 0.02552284300327301, 0.07561032474040985, 0.3893580734729767, -0.1512792557477951, 0.2660033106803894, 0.18953362107276917, 0.13109631836414337, 0.47952932119369507, -0.19716495275497437, 0.18195310235023499, 0.17432071268558502, 0.09587741643190384, -0.206647127866745, -0.12982769310474396, -0.04947064071893692, 0.34322747588157654, 0.392009973526001, -0.03647957369685173, -0.4435786008834839, -0.096747487783432, 0.41161131858825684, 0.37212884426116943, -0.10319020599126816, -0.12850095331668854, -0.19717498123645782, -0.20750552415847778, -0.2654880881309509, -0.3012399673461914, -0.1196204125881195, 0.4736844003200531, 0.16390185058116913, 0.2059462070465088, 0.009673058986663818, 0.12017065286636353, -0.08089736849069595, -0.10954928398132324, 0.32448115944862366, 0.2624770402908325, -0.04979507997632027, 0.3203047215938568, 0.09541463106870651, -0.16093164682388306, 0.3310249149799347, 0.14151686429977417, -0.34419742226600647, 0.014633036218583584, -0.026818769052624702, -0.09486094117164612, 0.08269114047288895, -0.10759175568819046, 0.06487250328063965, 0.06901275366544724, -0.35166558623313904, 0.011054747737944126, -0.2043755054473877, 0.22439657151699066, 0.1059359610080719, -0.48957934975624084, -0.4795033037662506, 0.47677990794181824, 0.13617336750030518, 0.14658291637897491, 0.22238409519195557, 0.11836554855108261, -0.24880293011665344, 0.08121199160814285, 0.04179533198475838, 0.8113129138946533, -0.004197228699922562, 0.1299043446779251, -0.015967614948749542, 0.24201317131519318, 0.42248398065567017, -0.04337729141116142, -0.03159995749592781, -0.4124189019203186, 0.1048574447631836, -0.11950137466192245, 0.09277824312448502, 0.05673108622431755, -0.06835819780826569, -0.25285983085632324, 0.47125571966171265, 0.0911276638507843, 0.4095664918422699, 0.10207012295722961, 0.38470759987831116, 0.072476327419281, -0.09783373028039932, -0.23272988200187683, 0.06972159445285797, -0.16912516951560974, 0.49143296480178833, -0.21892166137695312, -0.18092575669288635, -0.15549173951148987, 0.013553406111896038, -0.4811657965183258, 0.07633646577596664, -0.2148294895887375, 0.37513720989227295, -0.19677110016345978, -0.431646466255188, 0.4250759780406952, 0.47117742896080017, 0.21861732006072998, 0.3196090757846832, -0.3090030550956726, 0.22684161365032196, -0.4928465783596039, -0.5243963003158569, -0.08519559353590012, 0.19994288682937622, 0.3339861035346985, -0.07116278260946274, -0.46073001623153687, 0.29904603958129883, -0.026466382667422295, -0.004543167073279619, -0.024585578590631485, -0.017521601170301437, 0.17578290402889252, -0.0199271347373724, -0.3917606770992279, -0.10232830792665482, -0.04405670613050461, -0.14400851726531982, 0.11565788835287094, 0.06692752987146378, 0.19606998562812805, -0.08412008732557297, 0.14454485476016998, -0.07602124661207199, 0.10629458725452423, 0.3669900596141815, 0.06860120594501495, -0.1909136325120926, 0.4533347487449646, 0.37843671441078186, -0.39258402585983276, -0.15477131307125092, -0.03746099770069122, -0.5030227899551392, -0.297540545463562, -0.045054350048303604, 0.010144083760678768, 0.3835778534412384, -0.20432747900485992, 0.14963726699352264, 0.0886121466755867, -0.29620176553726196, -0.03486053645610809, -0.4667870104312897, -0.1718701720237732, 0.31029632687568665, -0.09833420068025589, -0.016548775136470795, 0.07247310876846313, -0.34258735179901123, 0.39257994294166565, -0.23379488289356232, -0.1992262601852417, 0.04464271292090416, -0.10825357586145401, 0.012196584604680538, 0.10572740435600281, 0.06770563125610352, -0.11160831153392792, -0.1628441959619522, 0.08145935088396072, -0.1640479415655136, -0.013022621162235737, -0.09765059500932693, 0.14808987081050873, 0.12123734503984451, -0.011354069225490093, 0.09074065089225769, 0.018445642665028572, -0.5164158940315247, -0.009652523323893547, -0.022863665595650673, -0.16213805973529816, 0.09070868045091629, 0.08034398406744003, 0.24495376646518707, 0.1194220706820488, 0.0543583445250988, -0.3819982707500458, 0.3313153386116028, 0.09149231761693954, 0.26956436038017273, 0.08027604222297668, 0.33494460582733154, 0.3101983964443207, -0.014496972784399986, -0.5009623169898987, 0.17291158437728882, -0.1319597065448761, -0.0840190052986145, 0.2616022825241089, -0.3245725929737091, 0.33265453577041626, 0.23035992681980133, 0.08926684409379959, 0.17156466841697693, -0.21807658672332764, -0.008717745542526245, 0.32200732827186584, 0.09649750590324402, -0.47372907400131226, 0.049863167107105255, 0.6553481817245483, 0.16846196353435516, -0.14583241939544678, -0.04107615724205971, 0.188071146607399, -0.2683449983596802, -0.08889640867710114, 0.2554206848144531, 0.06801565736532211, -0.0005087430472485721, 0.2828110456466675, 0.39664146304130554, 0.4411618709564209, 0.2044316828250885, 0.062282416969537735, 0.10766865313053131, -0.1690012663602829, 0.4482857584953308, -0.36633074283599854, 0.0783502534031868, 0.12582862377166748, -0.08196614682674408, -0.07189647853374481, -0.31791985034942627, 0.1306098997592926, 0.2340448945760727, -0.28298988938331604, -0.006112420000135899, -0.05681885406374931, 0.1268402636051178, 0.28181713819503784, -0.004787216428667307, -0.26269400119781494, 0.0689862072467804, -0.2399251013994217, 0.23226973414421082, -0.3234381675720215, -0.32136428356170654, -0.051808807998895645, 0.12418495863676071, 0.14952126145362854, -0.22481581568717957, 0.05289193242788315, 0.2691707909107208, -0.2421862632036209, -0.1750229150056839, 0.6996934413909912, -0.12280505895614624, 0.07916034758090973, -0.2152734100818634, -0.06823146343231201, -0.17050231993198395, -0.11811532825231552, -0.014359218068420887, 0.2350204437971115, 0.21452690660953522, 0.23718123137950897, -0.3281450867652893, 0.030734853819012642, 0.047466687858104706, -0.015879206359386444, 0.13792137801647186, 0.1811312586069107, 0.11741837114095688, 0.04868132621049881, 0.26848992705345154, 0.10209093242883682, -0.07218825817108154, -0.3152775764465332, 0.37816184759140015, 0.3369344472885132, -0.08960555493831635, 0.007954811677336693, -0.14365556836128235, 0.016176966950297356, -0.2486831247806549, 0.034117382019758224, -0.4928398132324219, -0.15552490949630737, 0.30620327591896057, 0.19628393650054932, -0.01038112211972475, -0.34092777967453003, 0.024934599176049232, -0.25208500027656555, 0.3639443814754486, 0.4127922058105469, 0.15389935672283173, -0.4125400483608246, -0.31437283754348755, -0.6434619426727295, 0.1342369019985199, -0.19588220119476318, -0.10145284235477448, 0.15216177701950073, 0.10585716366767883, -0.14591670036315918, 0.19160544872283936, 0.3052423596382141, -0.04019295424222946, 0.01916763372719288, 0.3578115999698639, -0.14992904663085938, -0.2280530482530594, -0.1995408982038498, -0.03754858672618866, -0.2679669260978699, -0.0898638665676117, 0.1356256753206253, -0.5401662588119507, -0.0031083927024155855, -0.13435882329940796, -0.21719446778297424, 0.2494378238916397, -0.12762930989265442, 0.13847316801548004, -0.20625942945480347, 0.4088144302368164, 0.04221361130475998, -0.054847124963998795, -0.2488684207201004, 0.09788111597299576, 0.07757290452718735, 0.49868977069854736, -0.13901786506175995, 0.35505250096321106, -0.19746793806552887, 0.2864799201488495, -0.1888200342655182, 0.4310455620288849, -0.19397927820682526, 0.17193065583705902, -0.2592928409576416, -0.11349532753229141, -0.01738225668668747, 0.31723156571388245, 0.09001187235116959, 0.23363013565540314, -0.24475383758544922, 0.10312875360250473, -0.2843622863292694, -0.1764484941959381, 0.1598709225654602, -0.41072991490364075, -0.2433442622423172, -0.08454100042581558, 0.08895838260650635, 0.09718316793441772, 0.1263245791196823, -0.33526673913002014, 0.10431818664073944, 0.2328704595565796, 0.06635985523462296, -0.043089479207992554, 0.11599042266607285, -0.13868771493434906, 0.16048286855220795, 0.06468658149242401, 0.0074918936006724834, -0.0901331976056099, -0.21223501861095428, -0.15267722308635712, -0.3400038480758667 ]
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.30211612582206726, -0.02152133733034134, -0.08799496293067932, 0.17893639206886292, 0.5179886221885681, 0.14992569386959076, 0.5325866341590881, -0.03884629160165787, 0.01999579556286335, 0.004318054765462875, -0.2535489797592163, 0.25555741786956787, -0.010385257191956043, -0.1183210164308548, -0.09755617380142212, 0.035997360944747925, 0.09508960694074631, 0.10511753708124161, 0.08449345827102661, 0.1125975251197815, -0.023830151185393333, 0.42407330870628357, -0.3112899661064148, -0.23315760493278503, -0.7260752320289612, -0.072592593729496, 0.0726543739438057, 0.2130877822637558, -0.2689560651779175, -0.2011624425649643, 0.5048645734786987, 0.17905011773109436, 0.2133806198835373, 0.5419100522994995, -0.0001225751911988482, 0.05560755729675293, 0.23596693575382233, 0.035772621631622314, -0.25303909182548523, -0.2616367042064667, -0.27485617995262146, -0.2957790791988373, 0.18311089277267456, 0.012881746515631676, -0.17502206563949585, 0.7024009823799133, 0.17634782195091248, -0.4491307735443115, 0.45648831129074097, 0.2201068252325058, 0.14820356667041779, 0.37655770778656006, -0.06435944139957428, -0.2676064670085907, 0.13383018970489502, -0.14350499212741852, -0.2925020754337311, 0.48458051681518555, 0.4809320271015167, -0.1317543089389801, 0.11039792746305466, 0.15502431988716125, -0.01247171126306057, -0.16826166212558746, 0.06105855107307434, 0.049123797565698624, -0.20835117995738983, -0.4002082645893097, 0.4759039580821991, 0.15907463431358337, 0.4620736539363861, -0.14457152783870697, -0.27666619420051575, -0.0671943724155426, 0.3508065342903137, 0.11592996120452881, 0.5585263967514038, 0.24014265835285187, -0.09117353707551956, 0.15417158603668213, -0.07667545974254608, 0.15786108374595642, 0.024342525750398636, -0.062097929418087006, 0.08917103707790375, 0.2551719844341278, -0.08764521777629852, 0.05542987585067749, 0.1462421417236328, 0.05950797721743584, 0.09295925498008728, -0.026397032663226128, -0.04791274294257164, 0.11226451396942139, -0.5934709310531616, 0.13572850823402405, -0.3308302164077759, 0.33978456258773804, -0.16898295283317566, 0.02962968312203884, 0.008118879981338978, 0.12904666364192963, 0.3702774941921234, 0.17497767508029938, -0.008637281134724617, 0.060624390840530396, 0.1405554711818695, 0.020645786076784134, 0.3935607671737671, 0.12859953939914703, -0.3604631721973419, 0.14818447828292847, -0.38283154368400574, -0.3367050290107727, 0.1523142009973526, 0.06484770029783249, 0.17923583090305328, -0.2723607122898102, -0.2743980884552002, -0.08245322853326797, 0.09457090497016907, 0.0038922838866710663, 0.361434668302536, 0.5836241841316223, -0.06736650317907333, -0.02782217040657997, -0.1538958102464676, -0.038455985486507416, -0.3419780731201172, 0.17409396171569824, -0.12288905680179596, 0.01875978708267212, -0.15876638889312744, 0.11418988555669785, 0.41335394978523254, -0.44383135437965393, 0.3186841309070587, 0.06279102712869644, 0.13181781768798828, -0.003294008318334818, 0.062120143324136734, -0.2714747190475464, -0.20031878352165222, 0.33393624424934387, 0.08803436160087585, 0.26976045966148376, -0.05207407847046852, -0.43599361181259155, -0.11216284334659576, -0.012050083838403225, -0.17784014344215393, -0.06929671764373779, 0.0639466717839241, 0.10695137828588486, -0.28711146116256714, 0.012819875963032246, -0.18112564086914062, -0.016117515042424202, 0.1178002804517746, -0.061823923140764236, 0.10451340675354004, -0.2027830332517624, -0.2577010691165924, -0.1545438915491104, 0.1867072731256485, 0.6341583728790283, -0.450352281332016, 0.035372719168663025, 0.31560757756233215, -0.3282579779624939, -0.178909569978714, 0.24298563599586487, -0.10547757148742676, -0.19310958683490753, -0.41209280490875244, 0.011343534104526043, 0.22494809329509735, -0.5570040345191956, -0.7323583960533142, 0.2544720470905304, -0.2879524528980255, -0.10853322595357895, 0.3105343282222748, 0.24202975630760193, 0.3244639039039612, -0.11460941284894943, 0.14711444079875946, 0.06107728183269501, -0.06184941157698631, 0.04269722104072571, -0.14469581842422485, -0.18100294470787048, 0.0861840471625328, 0.21562451124191284, 0.07295946031808853, -0.06197931617498398, 0.12858232855796814, 0.62320876121521, 0.1470402181148529, 0.19337190687656403, -0.0859035849571228, 0.35545453429222107, 0.3095439672470093, -0.14193885028362274, -0.01242006290704012, -0.25398412346839905, -0.7716562151908875, 0.40255749225616455, -0.0649862214922905, 0.19903028011322021, -0.08980470895767212, -0.2064935714006424, -0.17426060140132904, 0.010830548591911793, -0.3812267780303955, -0.14274106919765472, 0.00509847654029727, -0.022316768765449524, 0.13405092060565948, -0.06190846487879753, 0.00027088544447906315, 0.6825729608535767, -0.05980958044528961, 0.10779131203889847, -0.2840503752231598, 0.12389718741178513, -0.2325548380613327, -0.2640244960784912, 0.0058736661449074745, -0.048649877309799194, 0.11465436220169067, -0.2998553216457367, -0.1581554412841797, 0.17800624668598175, -0.0178961381316185, 0.1784743070602417, 0.08754058182239532, -0.04027672857046127, 0.2334703803062439, -0.17069180309772491, -0.03942762315273285, -0.027121247723698616, 0.10674150288105011, -0.24557708203792572, -0.12535904347896576, 0.21619299054145813, -0.30880337953567505, -0.01802753657102585, -0.0053027840331196785, -0.14474405348300934, 0.1779075562953949, 0.14091487228870392, -0.02487201802432537, 0.02283729985356331, 0.2542491853237152, 0.36352092027664185, 0.5597585439682007, 0.21229341626167297, 0.2021743506193161, 0.16372674703598022, 0.6630069017410278, 0.04585372284054756, -0.14733350276947021, -0.09784670174121857, -0.08101219683885574, 0.0671534612774849, 0.10662636905908585, 0.042591553181409836, 0.5582996010780334, 0.125387504696846, 0.017652586102485657, 0.007103095296770334, -0.09177888929843903, -0.32375749945640564, 0.11061190068721771, 0.06515095382928848, 0.029952900484204292, 0.2512917220592499, 0.10345104336738586, 0.03319128602743149, -0.15680615603923798, -0.28466054797172546, 0.20542186498641968, 0.10006152838468552, -0.17846591770648956, 0.048389025032520294, -0.18301671743392944, 0.10561682283878326, -0.15699276328086853, 0.1695328950881958, -0.3918539881706238, -0.1113433912396431, -0.24960938096046448, 0.4572727680206299, 0.47096577286720276, 0.12107177078723907, -0.2346416860818863, 0.0072320629842579365, 0.1460646539926529, -0.3017832636833191, -0.10858185589313507, -0.09736142307519913, -0.08933494240045547, -0.05669461190700531, 0.6666871309280396, -0.1490594446659088, 0.22311905026435852, -0.033679381012916565, -0.07687149941921234, -0.003032538341358304, -0.25305449962615967, 0.12370755523443222, -0.13603082299232483, 0.4206448197364807, 0.0739687979221344, 0.19530989229679108, -0.26480650901794434, -0.06578947603702545, 0.22036659717559814, -0.15552164614200592, -0.1244606077671051, -0.18474693596363068, -0.05047423020005226, -0.19685021042823792, -0.04723348468542099, -0.17763665318489075, -0.43483418226242065, -0.3862982988357544, 0.020923063158988953, -0.24104516208171844, -0.1923210769891739, 0.34068700671195984, 0.021880902349948883, 0.3659327030181885, 0.12885263562202454, 0.0627441257238388, -0.13477344810962677, -0.6219171285629272, 0.26818305253982544, -0.011300332844257355, -0.35864701867103577, 0.17502477765083313, -0.020916251465678215, -0.1368207037448883, -0.08616314828395844, -0.3688414394855499, -0.20080383121967316, -0.2929190993309021, 0.3318697214126587, -0.11565081030130386, -0.09501511603593826, 0.38464412093162537, -0.1934526264667511, 0.07070997357368469, -0.07974559813737869, -0.2999754846096039, 0.05137944966554642, -0.03753339871764183, 0.181333526968956, -0.054361771792173386, 0.07557567954063416, -0.03184181824326515, 0.6378082633018494, 0.3464284837245941, -0.0828956589102745, 0.25035151839256287, 0.06165124475955963, 0.3179035186767578, -0.1055668443441391, -0.3772539496421814, 0.1237831637263298, 0.021782681345939636, 0.007042163051664829, 0.2305404543876648, 0.21599146723747253, 0.06574472784996033, -0.2100142538547516, -0.19338642060756683, -0.06919398158788681, -0.2989996075630188, 0.122077077627182, 0.24767225980758667, -0.14819759130477905, 0.117019884288311, 0.21346226334571838, 0.0193640049546957, -0.19912418723106384, -0.005506194196641445, 0.7495676279067993, -0.24785101413726807, 0.021237583830952644, -0.18948885798454285, -0.08060520887374878, -0.4696345627307892, 0.007456562481820583, 0.1202893853187561, 0.36061468720436096, -0.14366574585437775, 0.07141876220703125, 0.20872539281845093, -0.22599296271800995, 0.8764539361000061, 0.12217403203248978, 0.20588035881519318, 0.1052318662405014, -0.14616797864437103, -0.09111514687538147, -0.17079757153987885, -0.09223756194114685, 0.2615526020526886, 0.4532836973667145, 0.6301125288009644, -0.03858160600066185, -0.3543902039527893, -0.14349651336669922, -0.016723131760954857, -0.17221271991729736, -0.2208210974931717, -0.23027461767196655, -0.17174310982227325, -0.2692471444606781, 0.04758257418870926, 0.08817576617002487, 0.08419087529182434, -0.06331757456064224, -0.09083020687103271, -0.035193394869565964, -0.2652921676635742, 0.0685042217373848, 0.19331584870815277, -0.04764735326170921, 0.20609165728092194, 0.41859951615333557, 0.004798339679837227, 0.24827328324317932, -0.11245767772197723, 0.5424157381057739, -0.17028073966503143, -0.2747667133808136, 0.23527462780475616, -0.14035026729106903, -0.019913000985980034, 0.4306935966014862, -0.19723249971866608, -0.019794581457972527, 0.06966906040906906, 0.11210166662931442, -0.01691223680973053, 0.22317291796207428, 0.09807580709457397, 0.18410490453243256, -0.2574012577533722, -0.03318670764565468, 0.259570837020874, -0.05300343409180641, -0.012629805132746696, 0.14066874980926514, 0.03163375332951546, -0.16509701311588287, 0.11524663120508194, -0.06913089752197266, 0.8369379639625549, -0.4818115532398224, 0.18797747790813446, -0.012568771839141846, 0.03115774318575859, 0.6355473399162292, -0.15792730450630188, 0.07294553518295288, -0.26218318939208984, -0.576133668422699, 0.10167497396469116, -0.13094234466552734, 0.18848071992397308, 0.012095356360077858, -0.2257237732410431, 0.05851154774427414, 0.22670051455497742, 0.47083938121795654, -0.01117677427828312, 0.19812190532684326, -0.3919525444507599, -0.202849879860878, -0.5293010473251343, 0.11424590647220612, -0.013945547863841057, 0.3403407633304596, -0.22840726375579834, 0.02260364033281803, -0.13462592661380768, -0.09210802614688873, -0.27579793334007263, 0.1896315962076187, -0.5999915599822998, 0.1270861178636551, -0.10516063868999481, -0.5103439688682556, 0.26863184571266174, 0.3383282721042633, 0.24211226403713226, 0.18459069728851318, -0.13925369083881378, 0.2685423493385315, 0.007780109997838736, -0.15800325572490692, -0.07522895932197571, 0.03763676807284355, 0.30334386229515076, -0.07065846771001816, -0.19111089408397675, -0.18147876858711243, -0.046525392681360245, -0.16828081011772156, 0.025247912853956223, 0.09025347977876663, 0.015626801177859306, -0.10822087526321411, -0.28957632184028625, -0.2553250789642334, -0.13484317064285278, -0.1357504427433014, 0.06630570441484451, -0.047675106674432755, 0.0069889347068965435, 0.13411185145378113, 0.1573958545923233, -0.2546166479587555, -0.12583842873573303, 0.7812125086784363, -0.4224649667739868, -0.16739274561405182, 0.5317299962043762, 0.18218845129013062, -0.2767597734928131, -0.2578670382499695, 0.10537778586149216, -0.3079369068145752, -0.31724584102630615, -0.06272199749946594, 0.11542083323001862, -0.11040888726711273, 0.24179154634475708, 0.13007868826389313, 0.4141301214694977, -0.39004814624786377, 0.2213110476732254, -0.6019886136054993, -0.4822531044483185, -0.12067930400371552, -0.0000178442587639438, 0.22798609733581543, 0.15033294260501862, 0.1250682920217514, 0.1534169316291809, 0.06848571449518204, -0.20518536865711212, 0.13890065252780914, -0.34873726963996887, -0.044208306819200516, 0.34599441289901733, -0.2889597713947296, 0.24241669476032257, 0.01330014131963253, 0.03502745181322098, 0.3392173647880554, -0.13998636603355408, -0.2143963724374771, -0.11799847334623337, 0.1341082900762558, 0.04629170894622803, -0.054481618106365204, -0.1868453174829483, -0.2604011595249176, 0.047572165727615356, -0.029737772420048714, 0.35573261976242065, 0.26849833130836487, 0.13779501616954803, -0.029226524755358696, -0.14971917867660522, 0.35296469926834106, -0.1717209368944168, 0.22080804407596588, 0.013651382178068161, -0.0164805818349123, 0.3168192207813263, 0.11235678195953369, -0.027975447475910187, 0.15154877305030823, -0.30966055393218994, -0.11249496042728424, 0.10730011016130447, 0.19822227954864502, 0.047405894845724106, -0.3461591601371765, 0.011100228875875473, 0.2825097143650055, -0.012782021425664425, 0.2522982358932495, 0.04854288324713707, 0.02023382857441902, 0.26401641964912415, 0.10043662786483765, -0.18002818524837494, 0.12812916934490204, 0.2956608533859253, -0.024218758568167686, 0.06143396720290184, 0.17588691413402557, -0.027940575033426285, 0.11190943419933319, 0.12243380397558212, 0.16335484385490417, 0.8019189238548279, 0.40354374051094055, -0.03152738884091377, 0.16797779500484467, 0.2547034025192261, 0.2746587097644806, 0.17058239877223969, 0.10461084544658661, -0.06737525761127472, 0.22027543187141418, -0.30673643946647644, 0.32277050614356995, -0.563652515411377, 0.3911707401275635, 0.2394530475139618, -0.32810962200164795, -0.07888258248567581, 0.2526055872440338, -0.04846833273768425, 0.010743183083832264, -0.14047063887119293, 0.6839733719825745, -0.47519975900650024, -0.19970695674419403, -0.053599826991558075, 0.12367429584264755, -0.2316673845052719, -0.10221384465694427, 0.13474196195602417, 0.03097890317440033, 0.07774696499109268, 0.08725821226835251, 0.027468064799904823, -0.04368475079536438, 0.184294193983078, 0.3241148889064789, 0.05633906275033951, -0.08491691201925278, -0.012219484895467758, 0.13075850903987885, -0.1130598783493042, -0.09156327694654465, 0.32018914818763733, 0.07660944759845734, 0.15844976902008057, 0.10656355321407318, 0.05964846909046173, 0.3337254822254181, 0.22504392266273499, -0.09847582131624222, 0.0011576059041544795, 0.07037165760993958, 0.018704591318964958, -0.15843024849891663, 0.21942967176437378, 0.04790433496236801, -0.12942750751972198, 0.07554290443658829, 0.06100557744503021, -0.13006560504436493, -0.08362510800361633, 0.08094717562198639, -0.2034856379032135, -0.08169645071029663, 0.19323311746120453, -0.06506786495447159, -0.10193820297718048, -0.052704691886901855, 0.12759673595428467, -0.2227194756269455, 0.15104591846466064, 0.026678461581468582, -0.1832030564546585, 0.23263829946517944, -0.0965297520160675, 0.04902048036456108, 0.026061488315463066, 0.4137369692325592, 0.17403025925159454, 0.2699418067932129, -0.2857959270477295, 0.030656522139906883, -0.7201027870178223, 0.1451297551393509, 0.3006896674633026, -0.013330330140888691, -0.2248806357383728, 0.09974730759859085, -0.08229605853557587, 0.0449657216668129, 0.24123071134090424, -0.15396541357040405, 0.41910669207572937, 0.1802006959915161, -0.38931116461753845, -0.06772644817829132, 0.058126624673604965, -0.21054279804229736, -0.06334719061851501, -0.34473729133605957, 0.1205078586935997, 0.04953688755631447, -0.09427278488874435, -0.3394937515258789, -0.14679865539073944, -0.1389024555683136, -0.35857605934143066, 0.2288985550403595, -0.11449588090181351, 0.5724796056747437, -0.015105554834008217, -0.08873401582241058, -0.22340014576911926, 0.04604584723711014, 0.07667608559131622, -0.09178034216165543, 0.2714511752128601, 0.28998038172721863, -0.3411708474159241, -0.00539766252040863, -0.22186189889907837, 0.2548290193080902, -0.043339803814888, 0.03907424584031105, -0.33490580320358276, -0.08583151549100876, -0.07178955525159836, 0.22222304344177246, 0.11221867054700851, 0.4876583516597748, -0.08839580416679382, 0.1779198944568634, -0.41312527656555176, -0.20662197470664978, 0.30555278062820435, -0.5895524621009827, -0.2191733866930008, -0.008172946982085705, 0.14514201879501343, -0.008004747331142426, -0.10978060960769653, -0.39220908284187317, 0.24858708679676056, 0.04652508348226547, -0.17738351225852966, -0.2967154085636139, 0.35167640447616577, -0.015167886391282082, 0.05791373550891876, -0.1602027267217636, 0.16758158802986145, -0.0894692912697792, -0.06637199223041534, -0.12007422000169754, -0.20724037289619446 ]
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.41656824946403503, 0.23383985459804535, 0.011721068993210793, 0.35504409670829773, 0.4361400902271271, -0.18401728570461273, 0.17185865342617035, 0.2030174881219864, -0.19610470533370972, 0.01122909877449274, -0.29301193356513977, 0.16095106303691864, 0.14485140144824982, 0.29559728503227234, 0.06459107995033264, -0.023587146773934364, -0.17819549143314362, 0.02357638254761696, -0.4069024622440338, -0.1952105313539505, 0.016370918601751328, 0.15114940702915192, 0.1948600858449936, 0.11425308883190155, -0.1687246859073639, -0.20251639187335968, 0.03320115804672241, 0.3280472457408905, 0.07365047931671143, -0.19919221103191376, 0.2894151508808136, 0.2229558229446411, 0.1790001392364502, 0.4932543635368347, -0.00012254065950401127, -0.05496947467327118, 0.13379347324371338, -0.17346082627773285, -0.40726616978645325, -0.46312832832336426, -0.00643247039988637, 0.14843277633190155, 0.22454039752483368, -0.3105456829071045, -0.03860253840684891, 0.13047178089618683, -0.02097647450864315, -0.4665900468826294, 0.4220195412635803, 0.3426232933998108, 0.1340467631816864, -0.0510142482817173, 0.15193618834018707, 0.11344239860773087, 0.23710788786411285, 0.17467543482780457, 0.09390366822481155, 0.28882062435150146, 0.22435292601585388, 0.07397658377885818, 0.13313336670398712, -0.2380448281764984, -0.28817611932754517, -0.2595236301422119, 0.3810802400112152, 0.018502216786146164, 0.05582025274634361, -0.19206123054027557, 0.1628098338842392, 0.3489701747894287, 0.6868793964385986, -0.29393428564071655, -0.32405006885528564, 0.12964779138565063, -0.10571711510419846, -0.1006092056632042, 0.2473125159740448, 0.11190188676118851, -0.16966648399829865, 0.2362322062253952, -0.10598788410425186, -0.2554994225502014, -0.5657849907875061, 0.36494413018226624, 0.23362010717391968, -0.13680000603199005, -0.015189048834145069, 0.03245200961828232, 0.06855755299329758, -0.16946616768836975, 0.5728229284286499, -0.25569891929626465, 0.14739854633808136, -0.0952407494187355, -0.21888644993305206, 0.0466725155711174, -0.3066897988319397, 0.07193686813116074, 0.24277174472808838, 0.08973455429077148, 0.10540131479501724, 0.15549691021442413, -0.2294093668460846, 0.1013631671667099, 0.1810360699892044, -0.03539826348423958, -0.026664260774850845, 0.10021380335092545, 0.5406511425971985, 0.37214934825897217, -0.12492597103118896, -0.12948131561279297, 0.05686676502227783, -0.03678760677576065, 0.1227782741189003, 0.03118864819407463, 0.21479102969169617, -0.3598889708518982, -0.11316834390163422, 0.07114963233470917, 0.09170755743980408, -0.13932020962238312, 0.14154939353466034, 0.7215835452079773, -0.1206665113568306, 0.1398351639509201, 0.04719537869095802, 0.14834296703338623, -0.19074764847755432, 0.025150159373879433, -0.06534355133771896, -0.025322185829281807, 0.17327702045440674, 0.136540949344635, 0.1921571046113968, -0.1690635085105896, 0.2207564264535904, 0.12266935408115387, 0.26706355810165405, -0.2381136417388916, 0.08719968795776367, -0.37167084217071533, 0.1613684445619583, 0.20536361634731293, 0.13925637304782867, 0.25506243109703064, -0.04220426455140114, -0.04526546224951744, -0.025193369016051292, 0.09619548916816711, -0.34899044036865234, -0.36575987935066223, -0.260307639837265, 0.08555606007575989, -0.01859734021127224, -0.15193800628185272, -0.5155612826347351, -0.45766910910606384, -0.013505704700946808, -0.27570638060569763, -0.11528558284044266, -0.11204327642917633, 0.03615996986627579, -0.4071180522441864, 0.4432794153690338, 0.4497455656528473, -0.3629332482814789, 0.09749554842710495, -0.01116423960775137, 0.00044873938895761967, 0.044257279485464096, 0.33511433005332947, -0.19482079148292542, 0.09084440022706985, -0.3700462281703949, -0.1470957249403, 0.48178961873054504, -0.630890965461731, -0.5266735553741455, 0.469186395406723, -0.01561557874083519, -0.174794003367424, 0.1873801350593567, 0.1840233951807022, 0.24363858997821808, -0.02479579858481884, 0.015739107504487038, 0.2771075963973999, 0.15997321903705597, -0.019377119839191437, -0.21067024767398834, -0.30897057056427, 0.03600263223052025, 0.11183132231235504, 0.13598963618278503, 0.0014546167803928256, 0.46254613995552063, -0.026096953079104424, 0.3786993622779846, -0.14643310010433197, 0.15244224667549133, 0.38335973024368286, 0.48203298449516296, 0.2073187530040741, -0.1340680718421936, 0.2457374483346939, -0.473062127828598, -0.047893572598695755, 0.10754579305648804, -0.4402328431606293, -0.20942822098731995, -0.16221752762794495, -0.005717302206903696, -0.1584048867225647, -0.23688071966171265, 0.16017039120197296, -0.01403880212455988, 0.0610920675098896, -0.17865228652954102, -0.1449936181306839, -0.19149447977542877, 0.3710281252861023, -0.15080735087394714, 0.034616511315107346, -0.1332605630159378, 0.6925704479217529, -0.31966981291770935, -0.08033084869384766, 0.0977717936038971, -0.17604148387908936, 0.2887403666973114, -0.21728339791297913, -0.2229078710079193, 0.3530235290527344, -0.2944035530090332, 0.5860387682914734, -0.19280317425727844, 0.3995552957057953, 0.1996212899684906, -0.17994441092014313, 0.357304185628891, -0.061142873018980026, 0.2429034560918808, 0.005108291748911142, -0.06655337661504745, 0.2225019782781601, -0.34441614151000977, 0.3657665252685547, 0.44511717557907104, -0.16584470868110657, 0.1474839299917221, -0.05150198936462402, 0.11959373205900192, -0.010836835019290447, 0.2701345980167389, -0.019150391221046448, 0.25059187412261963, -0.10710635036230087, -0.29970329999923706, 0.33878445625305176, 0.16145239770412445, -0.07551980018615723, 0.28023654222488403, 0.1416826993227005, 0.33272892236709595, -0.15109312534332275, 0.021527713164687157, 0.21141348779201508, 0.35086968541145325, 0.14275237917900085, -0.18891698122024536, 0.28529655933380127, 0.3808859884738922, -0.29010677337646484, 0.3794766366481781, 0.004945151973515749, 0.20218434929847717, 0.41334474086761475, 0.014030054211616516, -0.05635115131735802, -0.13603903353214264, -0.20948542654514313, -0.06454986333847046, 0.0968618094921112, -0.5591394305229187, 0.0748848170042038, -0.3306966722011566, -0.23094810545444489, -0.3336368203163147, 0.195857435464859, -0.045617811381816864, -0.18980462849140167, -0.3087572157382965, 0.5337557792663574, 0.19788114726543427, -0.015596563927829266, -0.06808225810527802, 0.10716816037893295, -0.2461307942867279, -0.2705360949039459, -0.22471076250076294, -0.08556041121482849, -0.18690961599349976, -0.04157786816358566, 0.2394333779811859, 0.06790873408317566, 0.12814271450042725, -0.14713416993618011, -0.34750139713287354, -0.5005239248275757, -0.025833610445261, -0.012016083113849163, 0.33623987436294556, 0.35994866490364075, 0.15491867065429688, 0.5422624945640564, 0.010140182450413704, -0.2701677083969116, 0.05281427130103111, 0.0025790769141167402, -0.0369843915104866, -0.08012475818395615, -0.044490329921245575, -0.06252706050872803, 0.1591738611459732, -0.3769538402557373, -0.4660075306892395, -0.2727293074131012, 0.07425588369369507, -0.12927819788455963, 0.4784616529941559, 0.04077204316854477, -0.039760224521160126, 0.08248210698366165, 0.017104413360357285, 0.27349191904067993, -0.10422248393297195, -0.6493805646896362, 0.1882534623146057, -0.24758203327655792, -0.2464488446712494, 0.07086626440286636, 0.16610638797283173, 0.36692872643470764, -0.10302809625864029, -0.712737500667572, -0.3805267810821533, 0.12475597113370895, 0.4643062949180603, -0.2653200030326843, 0.16847418248653412, 0.20854219794273376, -0.013802807778120041, 0.062259651720523834, -0.01912744902074337, -0.12404666095972061, 0.1722649484872818, 0.24728083610534668, 0.28268420696258545, 0.08265749365091324, 0.43936431407928467, -0.3292028307914734, 0.41178396344184875, 0.2907211482524872, 0.05205068364739418, 0.6116378903388977, -0.0687994435429573, 0.34170371294021606, -0.1881391704082489, -0.258617103099823, 0.1163143441081047, 0.017353413626551628, -0.25534412264823914, -0.08442867547273636, -0.1897156685590744, 0.22596746683120728, -0.22436702251434326, -0.4729645550251007, -0.3650861084461212, -0.4024694859981537, -0.011672019958496094, -0.09442192316055298, 0.08460182696580887, -0.00724282069131732, 0.10347191989421844, 0.05967969819903374, -0.16068969666957855, 0.262101411819458, 0.5211019515991211, -0.15599781274795532, 0.11426004022359848, -0.14736811816692352, -0.13311713933944702, -0.3509138226509094, 0.2465464025735855, -0.08774387836456299, 0.38877224922180176, -0.3745866119861603, 0.31519100069999695, 0.018410710617899895, -0.26345744729042053, 0.7598442435264587, -0.34082043170928955, 0.2458367496728897, -0.018598252907395363, 0.05264865979552269, -0.21405957639217377, 0.056219909340143204, 0.14954692125320435, -0.09197244793176651, -0.018581273034214973, 0.3741905093193054, -0.11345552653074265, -0.15003259479999542, 0.033463262021541595, 0.21973730623722076, -0.15227578580379486, -0.05921107530593872, 0.08574242889881134, -0.39914292097091675, -0.21362945437431335, -0.29022017121315, -0.31518715620040894, 0.015273983590304852, -0.10557679831981659, -0.13244526088237762, 0.00018252215522807091, 0.0047294143587350845, 0.059316735714673996, -0.21915291249752045, 0.35630887746810913, -0.15309526026248932, 0.2984575033187866, 0.0896880254149437, 0.08299721777439117, 0.7660002708435059, 0.5066097974777222, -0.32617878913879395, 0.23304809629917145, 0.028867579996585846, -0.018078386783599854, 0.33094748854637146, 0.4470454156398773, -0.0877513661980629, -0.01873188465833664, 0.205129012465477, -0.013475192710757256, 0.03375355526804924, -0.20551539957523346, -0.03257337212562561, 0.04332737624645233, -0.12047425657510757, -0.49457401037216187, 0.34984153509140015, 0.021859295666217804, -0.1024305447936058, -0.07983309775590897, 0.15401025116443634, -0.22834959626197815, 0.42397430539131165, 0.16837652027606964, 1.1728320121765137, -0.008592311292886734, 0.4076613187789917, -0.04646124690771103, -0.3239515721797943, 0.03291924670338631, -0.3433544933795929, -0.05807766690850258, -0.5660093426704407, -0.24526527523994446, -0.09236015379428864, -0.20515257120132446, -0.10081122815608978, 0.019814588129520416, -0.20675529539585114, 0.6651973724365234, -0.4083099961280823, -0.13877679407596588, -0.12611684203147888, 0.38557735085487366, -0.20233669877052307, -0.05263226479291916, -0.2361825853586197, 0.05269968882203102, -0.22787019610404968, 0.14616486430168152, -0.08078911155462265, -0.04757711663842201, -0.028518080711364746, -0.24515536427497864, -0.10608211159706116, 0.11139300465583801, -0.6149657368659973, 0.27293798327445984, -0.21949131786823273, -0.3267880380153656, 0.1695638746023178, 0.18552622199058533, 0.2594459354877472, 0.2520209848880768, -0.0014895310159772635, 0.11977590620517731, 0.035888634622097015, 0.09641576558351517, 0.044152580201625824, -0.030890630558133125, 0.1161920353770256, -0.09146272391080856, -0.3058604598045349, -0.04514354094862938, -0.01938183419406414, -0.04526926949620247, 0.02307817153632641, -0.3219890594482422, 0.20400607585906982, -0.31080377101898193, -0.21697790920734406, -0.12276634573936462, -0.16701219975948334, -0.2081402689218521, -0.021959802135825157, 0.03329743444919586, -0.0036616651341319084, 0.3311716914176941, 0.2592054307460785, -0.09841243177652359, -0.04004292190074921, 0.7084525227546692, 0.024740813300013542, 0.03716782107949257, 0.6152188777923584, 0.018046634271740913, -0.19181735813617706, -0.14208044111728668, 0.3525809645652771, 0.01125594787299633, -0.11410994082689285, 0.0025593882892280817, -0.20957064628601074, 0.09172935038805008, -0.018081465736031532, 0.25975891947746277, 0.03636178374290466, 0.35916081070899963, -0.19684723019599915, -0.4136093854904175, -0.3947238624095917, 0.04991017282009125, 0.08780169486999512, 0.17325839400291443, 0.2596781551837921, -0.2510610520839691, -0.18068528175354004, -0.1892794370651245, -0.19606871902942657, 0.08685202151536942, -0.24065567553043365, -0.05280184745788574, 0.391267865896225, -0.23522868752479553, 0.21912722289562225, -0.2918085753917694, 0.0669737458229065, -0.21923676133155823, -0.1210113912820816, -0.05866364762187004, -0.20077621936798096, 0.22314633429050446, -0.10967469960451126, -0.09288813173770905, -0.2505303919315338, -0.5493830442428589, -0.06484931707382202, 0.145846888422966, 0.12041305750608444, 0.16699256002902985, 0.04967966303229332, -0.1041593924164772, -0.234713613986969, -0.26888394355773926, -0.41030848026275635, 0.16113261878490448, 0.12407760322093964, 0.17316026985645294, -0.15624156594276428, 0.2550911605358124, -0.08340155333280563, -0.299009770154953, -0.20212943851947784, -0.04153812676668167, -0.016547175124287605, 0.11944955587387085, 0.2923724055290222, -0.16195006668567657, -0.3103436827659607, 0.13136987388134003, 0.19141532480716705, 0.563206136226654, -0.1509614735841751, -0.05573517456650734, 0.1753115952014923, 0.046131230890750885, -0.00494398595765233, -0.19731679558753967, 0.039436012506484985, -0.21360935270786285, -0.08143090456724167, 0.20990696549415588, 0.09703518450260162, -0.16124926507472992, -0.23205414414405823, -0.029647119343280792, 0.5801807045936584, -0.22296194732189178, 0.06608159095048904, 0.13481728732585907, -0.058578383177518845, -0.052322957664728165, -0.04074666649103165, 0.25098395347595215, 0.16001002490520477, 0.37428927421569824, -0.39781129360198975, 0.1851181834936142, 0.2610727846622467, 0.24131625890731812, 0.09028664976358414, -0.4189107418060303, -0.0002375398762524128, -0.17068427801132202, -0.14425377547740936, -0.0061303856782615185, -0.04747695475816727, 0.20744991302490234, 0.12139143794775009, -0.4080001413822174, 0.13268111646175385, 0.23992964625358582, -0.09195248037576675, -0.1811966449022293, -0.08142270147800446, -0.23401227593421936, -0.09084994345903397, -0.012155815027654171, -0.25070029497146606, -0.06933403015136719, 0.15660454332828522, 0.4984644055366516, 0.16587887704372406, -0.24153055250644684, 0.24048106372356415, 0.0544881597161293, -0.0064415656961500645, -0.1461607813835144, 0.5727665424346924, 0.22540760040283203, 0.06449543684720993, -0.10212592035531998, 0.2984085977077484, 0.6130157113075256, 0.34514135122299194, 0.2410983294248581, 0.3834910988807678, 0.23948082327842712, -0.018110312521457672, 0.1865578591823578, -0.4949089586734772, 0.3360931873321533, 0.3135298192501068, 0.40997639298439026, 0.05593917891383171, 0.0829230472445488, 0.23003247380256653, -0.002567689400166273, 0.13941103219985962, -0.07115747034549713, 0.09366746246814728, 0.2314651608467102, -0.21528953313827515, -0.3713240623474121, 0.005285185761749744, -0.33116021752357483, -0.07675348222255707, 0.5433689951896667, -0.11165047436952591, 0.20257402956485748, 0.02686925418674946, 0.005543339066207409, -0.06979486346244812, 0.5532214045524597, 0.2662375271320343, 0.14848463237285614, -0.4372364282608032, 0.1165817603468895, -0.43124091625213623, -0.11771149933338165, 0.08138266950845718, 0.12809507548809052, -0.13985015451908112, 0.11438639461994171, -0.07234537601470947, -0.13621722161769867, 0.4376222491264343, 0.1402815282344818, 0.06918062269687653, 0.39714720845222473, -0.15244410932064056, -0.07323192059993744, 0.17138881981372833, 0.1265294849872589, -0.08548382669687271, -0.30330803990364075, 0.30954456329345703, -0.05729147419333458, -0.06260622292757034, 0.011706715449690819, 0.005547764711081982, -0.00628176424652338, -0.28156140446662903, 0.3604542315006256, -0.033192142844200134, 0.3741052448749542, -0.06129014119505882, -0.05976519361138344, 0.11815871298313141, -0.2616127133369446, -0.10632101446390152, 0.08532889187335968, 0.3383648991584778, 0.14405517280101776, 0.011456942185759544, -0.14576810598373413, -0.5411680936813354, 0.025179095566272736, -0.15092988312244415, 0.017186781391501427, 0.05812792479991913, -0.17217528820037842, 0.049001239240169525, 0.07290748506784439, 0.12035323679447174, 0.12816862761974335, -0.04889204353094101, 0.2641177773475647, -0.4909187853336334, -0.352048397064209, 0.6163308620452881, 0.06611524522304535, 0.0947720855474472, -0.2561669647693634, 0.5273268222808838, -0.04757704585790634, 0.1263771802186966, -0.4738438129425049, 0.10052570700645447, 0.29544562101364136, -0.24731853604316711, -0.18337984383106232, 0.23094655573368073, -0.14373692870140076, 0.34419485926628113, -0.01712852157652378, 0.047127772122621536, 0.03496377915143967, -0.20779810845851898, -0.21209192276000977, -0.16067375242710114 ]
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.41656824946403503, 0.23383985459804535, 0.011721068993210793, 0.35504409670829773, 0.4361400902271271, -0.18401728570461273, 0.17185865342617035, 0.2030174881219864, -0.19610470533370972, 0.01122909877449274, -0.29301193356513977, 0.16095106303691864, 0.14485140144824982, 0.29559728503227234, 0.06459107995033264, -0.023587146773934364, -0.17819549143314362, 0.02357638254761696, -0.4069024622440338, -0.1952105313539505, 0.016370918601751328, 0.15114940702915192, 0.1948600858449936, 0.11425308883190155, -0.1687246859073639, -0.20251639187335968, 0.03320115804672241, 0.3280472457408905, 0.07365047931671143, -0.19919221103191376, 0.2894151508808136, 0.2229558229446411, 0.1790001392364502, 0.4932543635368347, -0.00012254065950401127, -0.05496947467327118, 0.13379347324371338, -0.17346082627773285, -0.40726616978645325, -0.46312832832336426, -0.00643247039988637, 0.14843277633190155, 0.22454039752483368, -0.3105456829071045, -0.03860253840684891, 0.13047178089618683, -0.02097647450864315, -0.4665900468826294, 0.4220195412635803, 0.3426232933998108, 0.1340467631816864, -0.0510142482817173, 0.15193618834018707, 0.11344239860773087, 0.23710788786411285, 0.17467543482780457, 0.09390366822481155, 0.28882062435150146, 0.22435292601585388, 0.07397658377885818, 0.13313336670398712, -0.2380448281764984, -0.28817611932754517, -0.2595236301422119, 0.3810802400112152, 0.018502216786146164, 0.05582025274634361, -0.19206123054027557, 0.1628098338842392, 0.3489701747894287, 0.6868793964385986, -0.29393428564071655, -0.32405006885528564, 0.12964779138565063, -0.10571711510419846, -0.1006092056632042, 0.2473125159740448, 0.11190188676118851, -0.16966648399829865, 0.2362322062253952, -0.10598788410425186, -0.2554994225502014, -0.5657849907875061, 0.36494413018226624, 0.23362010717391968, -0.13680000603199005, -0.015189048834145069, 0.03245200961828232, 0.06855755299329758, -0.16946616768836975, 0.5728229284286499, -0.25569891929626465, 0.14739854633808136, -0.0952407494187355, -0.21888644993305206, 0.0466725155711174, -0.3066897988319397, 0.07193686813116074, 0.24277174472808838, 0.08973455429077148, 0.10540131479501724, 0.15549691021442413, -0.2294093668460846, 0.1013631671667099, 0.1810360699892044, -0.03539826348423958, -0.026664260774850845, 0.10021380335092545, 0.5406511425971985, 0.37214934825897217, -0.12492597103118896, -0.12948131561279297, 0.05686676502227783, -0.03678760677576065, 0.1227782741189003, 0.03118864819407463, 0.21479102969169617, -0.3598889708518982, -0.11316834390163422, 0.07114963233470917, 0.09170755743980408, -0.13932020962238312, 0.14154939353466034, 0.7215835452079773, -0.1206665113568306, 0.1398351639509201, 0.04719537869095802, 0.14834296703338623, -0.19074764847755432, 0.025150159373879433, -0.06534355133771896, -0.025322185829281807, 0.17327702045440674, 0.136540949344635, 0.1921571046113968, -0.1690635085105896, 0.2207564264535904, 0.12266935408115387, 0.26706355810165405, -0.2381136417388916, 0.08719968795776367, -0.37167084217071533, 0.1613684445619583, 0.20536361634731293, 0.13925637304782867, 0.25506243109703064, -0.04220426455140114, -0.04526546224951744, -0.025193369016051292, 0.09619548916816711, -0.34899044036865234, -0.36575987935066223, -0.260307639837265, 0.08555606007575989, -0.01859734021127224, -0.15193800628185272, -0.5155612826347351, -0.45766910910606384, -0.013505704700946808, -0.27570638060569763, -0.11528558284044266, -0.11204327642917633, 0.03615996986627579, -0.4071180522441864, 0.4432794153690338, 0.4497455656528473, -0.3629332482814789, 0.09749554842710495, -0.01116423960775137, 0.00044873938895761967, 0.044257279485464096, 0.33511433005332947, -0.19482079148292542, 0.09084440022706985, -0.3700462281703949, -0.1470957249403, 0.48178961873054504, -0.630890965461731, -0.5266735553741455, 0.469186395406723, -0.01561557874083519, -0.174794003367424, 0.1873801350593567, 0.1840233951807022, 0.24363858997821808, -0.02479579858481884, 0.015739107504487038, 0.2771075963973999, 0.15997321903705597, -0.019377119839191437, -0.21067024767398834, -0.30897057056427, 0.03600263223052025, 0.11183132231235504, 0.13598963618278503, 0.0014546167803928256, 0.46254613995552063, -0.026096953079104424, 0.3786993622779846, -0.14643310010433197, 0.15244224667549133, 0.38335973024368286, 0.48203298449516296, 0.2073187530040741, -0.1340680718421936, 0.2457374483346939, -0.473062127828598, -0.047893572598695755, 0.10754579305648804, -0.4402328431606293, -0.20942822098731995, -0.16221752762794495, -0.005717302206903696, -0.1584048867225647, -0.23688071966171265, 0.16017039120197296, -0.01403880212455988, 0.0610920675098896, -0.17865228652954102, -0.1449936181306839, -0.19149447977542877, 0.3710281252861023, -0.15080735087394714, 0.034616511315107346, -0.1332605630159378, 0.6925704479217529, -0.31966981291770935, -0.08033084869384766, 0.0977717936038971, -0.17604148387908936, 0.2887403666973114, -0.21728339791297913, -0.2229078710079193, 0.3530235290527344, -0.2944035530090332, 0.5860387682914734, -0.19280317425727844, 0.3995552957057953, 0.1996212899684906, -0.17994441092014313, 0.357304185628891, -0.061142873018980026, 0.2429034560918808, 0.005108291748911142, -0.06655337661504745, 0.2225019782781601, -0.34441614151000977, 0.3657665252685547, 0.44511717557907104, -0.16584470868110657, 0.1474839299917221, -0.05150198936462402, 0.11959373205900192, -0.010836835019290447, 0.2701345980167389, -0.019150391221046448, 0.25059187412261963, -0.10710635036230087, -0.29970329999923706, 0.33878445625305176, 0.16145239770412445, -0.07551980018615723, 0.28023654222488403, 0.1416826993227005, 0.33272892236709595, -0.15109312534332275, 0.021527713164687157, 0.21141348779201508, 0.35086968541145325, 0.14275237917900085, -0.18891698122024536, 0.28529655933380127, 0.3808859884738922, -0.29010677337646484, 0.3794766366481781, 0.004945151973515749, 0.20218434929847717, 0.41334474086761475, 0.014030054211616516, -0.05635115131735802, -0.13603903353214264, -0.20948542654514313, -0.06454986333847046, 0.0968618094921112, -0.5591394305229187, 0.0748848170042038, -0.3306966722011566, -0.23094810545444489, -0.3336368203163147, 0.195857435464859, -0.045617811381816864, -0.18980462849140167, -0.3087572157382965, 0.5337557792663574, 0.19788114726543427, -0.015596563927829266, -0.06808225810527802, 0.10716816037893295, -0.2461307942867279, -0.2705360949039459, -0.22471076250076294, -0.08556041121482849, -0.18690961599349976, -0.04157786816358566, 0.2394333779811859, 0.06790873408317566, 0.12814271450042725, -0.14713416993618011, -0.34750139713287354, -0.5005239248275757, -0.025833610445261, -0.012016083113849163, 0.33623987436294556, 0.35994866490364075, 0.15491867065429688, 0.5422624945640564, 0.010140182450413704, -0.2701677083969116, 0.05281427130103111, 0.0025790769141167402, -0.0369843915104866, -0.08012475818395615, -0.044490329921245575, -0.06252706050872803, 0.1591738611459732, -0.3769538402557373, -0.4660075306892395, -0.2727293074131012, 0.07425588369369507, -0.12927819788455963, 0.4784616529941559, 0.04077204316854477, -0.039760224521160126, 0.08248210698366165, 0.017104413360357285, 0.27349191904067993, -0.10422248393297195, -0.6493805646896362, 0.1882534623146057, -0.24758203327655792, -0.2464488446712494, 0.07086626440286636, 0.16610638797283173, 0.36692872643470764, -0.10302809625864029, -0.712737500667572, -0.3805267810821533, 0.12475597113370895, 0.4643062949180603, -0.2653200030326843, 0.16847418248653412, 0.20854219794273376, -0.013802807778120041, 0.062259651720523834, -0.01912744902074337, -0.12404666095972061, 0.1722649484872818, 0.24728083610534668, 0.28268420696258545, 0.08265749365091324, 0.43936431407928467, -0.3292028307914734, 0.41178396344184875, 0.2907211482524872, 0.05205068364739418, 0.6116378903388977, -0.0687994435429573, 0.34170371294021606, -0.1881391704082489, -0.258617103099823, 0.1163143441081047, 0.017353413626551628, -0.25534412264823914, -0.08442867547273636, -0.1897156685590744, 0.22596746683120728, -0.22436702251434326, -0.4729645550251007, -0.3650861084461212, -0.4024694859981537, -0.011672019958496094, -0.09442192316055298, 0.08460182696580887, -0.00724282069131732, 0.10347191989421844, 0.05967969819903374, -0.16068969666957855, 0.262101411819458, 0.5211019515991211, -0.15599781274795532, 0.11426004022359848, -0.14736811816692352, -0.13311713933944702, -0.3509138226509094, 0.2465464025735855, -0.08774387836456299, 0.38877224922180176, -0.3745866119861603, 0.31519100069999695, 0.018410710617899895, -0.26345744729042053, 0.7598442435264587, -0.34082043170928955, 0.2458367496728897, -0.018598252907395363, 0.05264865979552269, -0.21405957639217377, 0.056219909340143204, 0.14954692125320435, -0.09197244793176651, -0.018581273034214973, 0.3741905093193054, -0.11345552653074265, -0.15003259479999542, 0.033463262021541595, 0.21973730623722076, -0.15227578580379486, -0.05921107530593872, 0.08574242889881134, -0.39914292097091675, -0.21362945437431335, -0.29022017121315, -0.31518715620040894, 0.015273983590304852, -0.10557679831981659, -0.13244526088237762, 0.00018252215522807091, 0.0047294143587350845, 0.059316735714673996, -0.21915291249752045, 0.35630887746810913, -0.15309526026248932, 0.2984575033187866, 0.0896880254149437, 0.08299721777439117, 0.7660002708435059, 0.5066097974777222, -0.32617878913879395, 0.23304809629917145, 0.028867579996585846, -0.018078386783599854, 0.33094748854637146, 0.4470454156398773, -0.0877513661980629, -0.01873188465833664, 0.205129012465477, -0.013475192710757256, 0.03375355526804924, -0.20551539957523346, -0.03257337212562561, 0.04332737624645233, -0.12047425657510757, -0.49457401037216187, 0.34984153509140015, 0.021859295666217804, -0.1024305447936058, -0.07983309775590897, 0.15401025116443634, -0.22834959626197815, 0.42397430539131165, 0.16837652027606964, 1.1728320121765137, -0.008592311292886734, 0.4076613187789917, -0.04646124690771103, -0.3239515721797943, 0.03291924670338631, -0.3433544933795929, -0.05807766690850258, -0.5660093426704407, -0.24526527523994446, -0.09236015379428864, -0.20515257120132446, -0.10081122815608978, 0.019814588129520416, -0.20675529539585114, 0.6651973724365234, -0.4083099961280823, -0.13877679407596588, -0.12611684203147888, 0.38557735085487366, -0.20233669877052307, -0.05263226479291916, -0.2361825853586197, 0.05269968882203102, -0.22787019610404968, 0.14616486430168152, -0.08078911155462265, -0.04757711663842201, -0.028518080711364746, -0.24515536427497864, -0.10608211159706116, 0.11139300465583801, -0.6149657368659973, 0.27293798327445984, -0.21949131786823273, -0.3267880380153656, 0.1695638746023178, 0.18552622199058533, 0.2594459354877472, 0.2520209848880768, -0.0014895310159772635, 0.11977590620517731, 0.035888634622097015, 0.09641576558351517, 0.044152580201625824, -0.030890630558133125, 0.1161920353770256, -0.09146272391080856, -0.3058604598045349, -0.04514354094862938, -0.01938183419406414, -0.04526926949620247, 0.02307817153632641, -0.3219890594482422, 0.20400607585906982, -0.31080377101898193, -0.21697790920734406, -0.12276634573936462, -0.16701219975948334, -0.2081402689218521, -0.021959802135825157, 0.03329743444919586, -0.0036616651341319084, 0.3311716914176941, 0.2592054307460785, -0.09841243177652359, -0.04004292190074921, 0.7084525227546692, 0.024740813300013542, 0.03716782107949257, 0.6152188777923584, 0.018046634271740913, -0.19181735813617706, -0.14208044111728668, 0.3525809645652771, 0.01125594787299633, -0.11410994082689285, 0.0025593882892280817, -0.20957064628601074, 0.09172935038805008, -0.018081465736031532, 0.25975891947746277, 0.03636178374290466, 0.35916081070899963, -0.19684723019599915, -0.4136093854904175, -0.3947238624095917, 0.04991017282009125, 0.08780169486999512, 0.17325839400291443, 0.2596781551837921, -0.2510610520839691, -0.18068528175354004, -0.1892794370651245, -0.19606871902942657, 0.08685202151536942, -0.24065567553043365, -0.05280184745788574, 0.391267865896225, -0.23522868752479553, 0.21912722289562225, -0.2918085753917694, 0.0669737458229065, -0.21923676133155823, -0.1210113912820816, -0.05866364762187004, -0.20077621936798096, 0.22314633429050446, -0.10967469960451126, -0.09288813173770905, -0.2505303919315338, -0.5493830442428589, -0.06484931707382202, 0.145846888422966, 0.12041305750608444, 0.16699256002902985, 0.04967966303229332, -0.1041593924164772, -0.234713613986969, -0.26888394355773926, -0.41030848026275635, 0.16113261878490448, 0.12407760322093964, 0.17316026985645294, -0.15624156594276428, 0.2550911605358124, -0.08340155333280563, -0.299009770154953, -0.20212943851947784, -0.04153812676668167, -0.016547175124287605, 0.11944955587387085, 0.2923724055290222, -0.16195006668567657, -0.3103436827659607, 0.13136987388134003, 0.19141532480716705, 0.563206136226654, -0.1509614735841751, -0.05573517456650734, 0.1753115952014923, 0.046131230890750885, -0.00494398595765233, -0.19731679558753967, 0.039436012506484985, -0.21360935270786285, -0.08143090456724167, 0.20990696549415588, 0.09703518450260162, -0.16124926507472992, -0.23205414414405823, -0.029647119343280792, 0.5801807045936584, -0.22296194732189178, 0.06608159095048904, 0.13481728732585907, -0.058578383177518845, -0.052322957664728165, -0.04074666649103165, 0.25098395347595215, 0.16001002490520477, 0.37428927421569824, -0.39781129360198975, 0.1851181834936142, 0.2610727846622467, 0.24131625890731812, 0.09028664976358414, -0.4189107418060303, -0.0002375398762524128, -0.17068427801132202, -0.14425377547740936, -0.0061303856782615185, -0.04747695475816727, 0.20744991302490234, 0.12139143794775009, -0.4080001413822174, 0.13268111646175385, 0.23992964625358582, -0.09195248037576675, -0.1811966449022293, -0.08142270147800446, -0.23401227593421936, -0.09084994345903397, -0.012155815027654171, -0.25070029497146606, -0.06933403015136719, 0.15660454332828522, 0.4984644055366516, 0.16587887704372406, -0.24153055250644684, 0.24048106372356415, 0.0544881597161293, -0.0064415656961500645, -0.1461607813835144, 0.5727665424346924, 0.22540760040283203, 0.06449543684720993, -0.10212592035531998, 0.2984085977077484, 0.6130157113075256, 0.34514135122299194, 0.2410983294248581, 0.3834910988807678, 0.23948082327842712, -0.018110312521457672, 0.1865578591823578, -0.4949089586734772, 0.3360931873321533, 0.3135298192501068, 0.40997639298439026, 0.05593917891383171, 0.0829230472445488, 0.23003247380256653, -0.002567689400166273, 0.13941103219985962, -0.07115747034549713, 0.09366746246814728, 0.2314651608467102, -0.21528953313827515, -0.3713240623474121, 0.005285185761749744, -0.33116021752357483, -0.07675348222255707, 0.5433689951896667, -0.11165047436952591, 0.20257402956485748, 0.02686925418674946, 0.005543339066207409, -0.06979486346244812, 0.5532214045524597, 0.2662375271320343, 0.14848463237285614, -0.4372364282608032, 0.1165817603468895, -0.43124091625213623, -0.11771149933338165, 0.08138266950845718, 0.12809507548809052, -0.13985015451908112, 0.11438639461994171, -0.07234537601470947, -0.13621722161769867, 0.4376222491264343, 0.1402815282344818, 0.06918062269687653, 0.39714720845222473, -0.15244410932064056, -0.07323192059993744, 0.17138881981372833, 0.1265294849872589, -0.08548382669687271, -0.30330803990364075, 0.30954456329345703, -0.05729147419333458, -0.06260622292757034, 0.011706715449690819, 0.005547764711081982, -0.00628176424652338, -0.28156140446662903, 0.3604542315006256, -0.033192142844200134, 0.3741052448749542, -0.06129014119505882, -0.05976519361138344, 0.11815871298313141, -0.2616127133369446, -0.10632101446390152, 0.08532889187335968, 0.3383648991584778, 0.14405517280101776, 0.011456942185759544, -0.14576810598373413, -0.5411680936813354, 0.025179095566272736, -0.15092988312244415, 0.017186781391501427, 0.05812792479991913, -0.17217528820037842, 0.049001239240169525, 0.07290748506784439, 0.12035323679447174, 0.12816862761974335, -0.04889204353094101, 0.2641177773475647, -0.4909187853336334, -0.352048397064209, 0.6163308620452881, 0.06611524522304535, 0.0947720855474472, -0.2561669647693634, 0.5273268222808838, -0.04757704585790634, 0.1263771802186966, -0.4738438129425049, 0.10052570700645447, 0.29544562101364136, -0.24731853604316711, -0.18337984383106232, 0.23094655573368073, -0.14373692870140076, 0.34419485926628113, -0.01712852157652378, 0.047127772122621536, 0.03496377915143967, -0.20779810845851898, -0.21209192276000977, -0.16067375242710114 ]
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.21966534852981567, -0.1832670271396637, -0.11372319608926773, 0.08813290297985077, -0.11355596035718918, -0.08153760433197021, 0.02230875939130783, 0.3311190903186798, 0.18954791128635406, 0.07095251232385635, 0.020520450547337532, -0.10259194672107697, 0.3246056139469147, 0.1452311873435974, -0.3447283208370209, -0.27201172709465027, 0.20554837584495544, 0.06108507886528969, 0.15369024872779846, 0.008571128360927105, -0.2336435168981552, -0.04783056303858757, -0.40425318479537964, -0.09887736290693283, -0.1302243024110794, -0.23360641300678253, -0.07907109707593918, -0.1159496083855629, -0.192747101187706, -0.49083003401756287, 0.22955356538295746, 0.496172696352005, 0.15210910141468048, 0.15289868414402008, -0.00010802902397699654, -0.11490470916032791, 0.20217972993850708, 0.22886325418949127, 0.11972390115261078, 0.632968008518219, 0.07363556325435638, -0.13880300521850586, 0.16864553093910217, -0.24381934106349945, 0.016067344695329666, -0.38198143243789673, -0.1399831920862198, 0.16759102046489716, 0.21927610039710999, -0.15538741648197174, 0.1405240297317505, 0.05238484591245651, -0.12070491909980774, 0.12942716479301453, -0.051441047340631485, -0.11345671117305756, -0.19750846922397614, -0.27348142862319946, 0.18389903008937836, -0.19710226356983185, -0.1978055238723755, 0.580102264881134, -0.21477653086185455, 0.0743977278470993, 0.2620583772659302, 0.16841080784797668, 0.20453697443008423, -0.20481166243553162, 0.1987672746181488, 0.5227424502372742, 0.26741331815719604, 0.1252059042453766, -0.21637237071990967, -0.2284136563539505, -0.039240818470716476, -0.3450884222984314, 0.27618804574012756, -0.24488794803619385, -0.17836794257164001, 0.07150676846504211, 0.04935331642627716, 0.01622743532061577, 0.00479142926633358, -0.04393850639462471, 0.008712130598723888, 0.4345332086086273, 0.17079439759254456, -0.018357304856181145, 0.21148784458637238, -0.17358985543251038, -0.14700078964233398, -0.19796395301818848, -0.0012503359466791153, 0.20276819169521332, -0.393027126789093, -0.049589063972234726, 0.10501513630151749, -0.16479426622390747, 0.10577844828367233, -0.17226308584213257, -0.35074305534362793, 0.466141939163208, 0.1852923482656479, -0.08955161273479462, 0.13667739927768707, -0.0003282515681348741, -0.30728185176849365, -0.1281074732542038, 0.3641524612903595, 0.05411330237984657, -0.1369960904121399, 0.20235437154769897, 0.20307190716266632, -0.11068036407232285, -0.16706226766109467, -0.3106614947319031, -0.29534822702407837, -0.10637281090021133, 0.2886682152748108, 0.15195567905902863, 0.11505082249641418, -0.24847647547721863, -0.014886826276779175, 0.5208373665809631, -0.16472913324832916, 0.5626686811447144, 0.15044502913951874, -0.15781834721565247, -0.3267695903778076, 0.25330403447151184, -0.034738458693027496, -0.17328409850597382, -0.1848643571138382, 0.2981397211551666, 0.07670664042234421, 0.0865769311785698, -0.07972058653831482, 0.09529705345630646, 0.17077216506004333, -0.025692323222756386, -0.019863082095980644, -0.05536455661058426, 0.23633220791816711, 0.2633565664291382, -0.10757192969322205, 0.12068165838718414, -0.2376246154308319, -0.04002984240651131, -0.29655352234840393, -0.12106023728847504, -0.06407083570957184, -0.371776819229126, -0.11622102558612823, 0.2038683146238327, 0.15346655249595642, 0.009803248569369316, -0.024112191051244736, 0.32528117299079895, 0.050902124494314194, 0.007238190155476332, -0.0024156535509973764, 0.005754456855356693, -0.1513907015323639, -0.10151853412389755, 0.49974384903907776, 0.2514146566390991, -0.08473097532987595, 0.17472665011882782, 0.02534894086420536, 0.12527641654014587, 0.1669309139251709, 0.450726181268692, -0.11140172183513641, 0.16187526285648346, 0.03949994593858719, 0.25503888726234436, 0.019526468589901924, -0.32038581371307373, -0.22728869318962097, 0.3782855272293091, 0.1630285680294037, 0.01857673190534115, 0.15532857179641724, 0.01525031216442585, 0.21766863763332367, 0.009175673127174377, -0.06528773158788681, 0.48549944162368774, 0.17503145337104797, 0.14091815054416656, -0.47254762053489685, -0.4832615554332733, -0.05948081240057945, 0.3461809456348419, 0.11977361887693405, -0.2265673577785492, -0.2047184258699417, -0.1846192181110382, 0.30500921607017517, -0.32653844356536865, 0.09859335422515869, 0.10260337591171265, 0.10754208266735077, 0.21577291190624237, 0.28963807225227356, -0.045900728553533554, -0.1346040517091751, 0.27872133255004883, -0.30802416801452637, 0.3445782959461212, 0.2770591378211975, -0.289413720369339, 0.12092413753271103, 0.030659571290016174, -0.10569236427545547, -0.1341901421546936, 0.14023065567016602, -0.11292465776205063, 0.01929730921983719, 0.03915508836507797, -0.10060547292232513, -0.09196250885725021, -0.211991086602211, -0.018185412511229515, 0.021429918706417084, -0.015541233122348785, -0.32079994678497314, 0.05735201761126518, 0.08925385773181915, 0.20413672924041748, 0.08665106445550919, 0.14442212879657745, -0.02173101156949997, 0.054962389171123505, 0.08683595806360245, -0.006681324448436499, 0.5205861330032349, 0.23612314462661743, 0.06138459965586662, -0.19061245024204254, -0.06328801810741425, -0.060943566262722015, 0.011432330124080181, -0.2304018884897232, -0.25200530886650085, 0.50833660364151, 0.0967094823718071, 0.6724223494529724, 0.03622148931026459, -0.15137775242328644, 0.19839012622833252, -0.09280918538570404, 0.32362157106399536, 0.16214889287948608, 0.09676755219697952, 0.08617759495973587, -0.15423308312892914, 0.10967414081096649, -0.24700865149497986, 0.3957985043525696, 0.0847700759768486, -0.13900795578956604, -0.14604607224464417, 0.34550005197525024, 0.14769712090492249, -0.4026893377304077, 0.12037266045808792, -0.32505956292152405, -0.11673475056886673, 0.23402103781700134, 0.07789715379476547, -0.09327466785907745, -0.061206985265016556, -0.19058392941951752, 0.2561015784740448, 0.06262443959712982, -0.15068155527114868, 0.15981949865818024, 0.048412028700113297, 0.17126508057117462, -0.09741866588592529, -0.2836385667324066, -0.13963191211223602, 0.0632074624300003, -0.001403427915647626, 0.0198505986481905, -0.09678062051534653, -0.036706116050481796, 0.4275028705596924, 0.026404527947306633, -0.44503486156463623, -0.35905808210372925, 0.23959675431251526, -0.19729138910770416, -0.1552642583847046, 0.2693772315979004, -0.009930461645126343, 0.04786178842186928, -0.10507884621620178, -0.28130820393562317, -0.4533381462097168, -0.30794715881347656, -0.2773774564266205, 0.013022632338106632, 0.18924106657505035, 0.6149402856826782, 0.23047012090682983, 0.20741185545921326, -0.23223532736301422, -0.047333281487226486, -0.4137032926082611, 0.1432667076587677, -0.0947483703494072, 0.07487311214208603, 0.06201231852173805, 0.10434973239898682, -0.2676292657852173, -0.29270219802856445, 0.09634384512901306, -0.18459944427013397, 0.07378086447715759, -0.10743436962366104, -0.2597106099128723, -0.0023874195758253336, 0.07520955055952072, -0.367836058139801, -0.09818778187036514, -0.27225279808044434, 0.12361251562833786, -0.12375002354383469, 0.14889420568943024, -0.24180877208709717, 0.06430058926343918, 0.13658609986305237, -0.12273268401622772, 0.09699030965566635, -0.159476637840271, -0.07402344793081284, 0.33615341782569885, 0.05026613920927048, -0.2920595705509186, -0.09976638108491898, -0.142108753323555, -0.026073023676872253, 0.05839937925338745, -0.4986909031867981, 0.10200599581003189, -0.4466371238231659, 0.43757200241088867, 0.12353560328483582, 0.26644235849380493, 0.3579044044017792, 0.09058939665555954, -0.22388561069965363, 0.003934675827622414, -0.013811547309160233, 0.07720303535461426, -0.2698489725589752, -0.025781210511922836, -0.0899662971496582, 0.027620218694210052, -0.20299257338047028, 1.1685940027236938, 0.1803695261478424, 0.06028495356440544, 0.25785332918167114, 0.2749098539352417, 0.10213756561279297, -0.152500182390213, 0.07821254432201385, 0.1474124640226364, -0.1481914520263672, 0.2420823723077774, 0.2913121283054352, 0.053015775978565216, -0.3329032063484192, -0.07645656913518906, 0.03473440930247307, -0.1852184236049652, -0.3656603991985321, 0.20829856395721436, 0.4082409739494324, 0.34892499446868896, -0.00018462692969478667, 0.11109844595193863, -0.21838675439357758, -0.2367398589849472, 0.20861968398094177, 0.29171955585479736, 0.0299600251019001, -0.24307984113693237, -0.05826180800795555, 0.06305170804262161, -0.7865279912948608, 0.23133277893066406, 0.1303318291902542, 0.10139530897140503, -0.042363714426755905, 0.21953481435775757, 0.33536040782928467, -0.3801006078720093, 0.34568119049072266, -0.49505725502967834, -0.03317223861813545, 0.3131639063358307, -0.2899521589279175, -0.04764944314956665, 0.09948914498090744, -0.2029055804014206, -0.5299871563911438, 0.3735271394252777, 0.2760540544986725, -0.4261969327926636, -0.3881310224533081, 0.14810974895954132, -0.09573797881603241, -0.15055623650550842, -0.3641579747200012, -0.1820693016052246, -0.3787015378475189, -0.11264022439718246, 0.2456618994474411, -0.07587290555238724, 0.17864392697811127, -0.14383836090564728, 0.06832434982061386, -0.22472494840621948, 0.3002123236656189, -0.024845412001013756, 0.3001644015312195, 0.0009162700152955949, -0.023907024413347244, 0.3277941942214966, 0.0894167423248291, -0.13702213764190674, 0.20201228559017181, -0.036044687032699585, 0.04795413464307785, 0.33394381403923035, -0.2293161302804947, 0.03986355662345886, 0.034301627427339554, 0.4406484067440033, 0.09311075508594513, 0.33881324529647827, -0.009682443924248219, 0.49124327301979065, -0.4976099729537964, 0.011289067566394806, 0.3263992667198181, 0.010954253375530243, -0.341840535402298, -0.28491756319999695, 0.5926835536956787, 0.09814105927944183, -0.28269681334495544, 0.2403194010257721, 0.6242867708206177, -0.045781634747982025, 0.7988669276237488, 0.4379033148288727, 0.9731776714324951, -0.32360130548477173, 0.18294672667980194, 0.05169820040464401, -0.1141505315899849, 0.1772165447473526, -0.5803911685943604, 0.013279830105602741, -0.34412825107574463, -0.06080985069274902, 0.14572301506996155, 0.06609360873699188, 0.0998162031173706, 0.07905017584562302, -0.21126659214496613, 0.05653282627463341, 0.26634734869003296, -0.3910280168056488, -0.10337434709072113, 0.6442176699638367, 0.26427924633026123, -0.5839917659759521, -0.068898506462574, 0.09406440705060959, 0.10492271184921265, -0.007052029017359018, -0.03355912119150162, -0.1499769389629364, 0.0058964937925338745, -0.015754062682390213, -0.42638805508613586, -0.0788436308503151, 0.21323280036449432, 0.09510815143585205, -0.1442389041185379, -0.10157965123653412, 0.32895076274871826, 0.19949661195278168, 0.04462162405252457, 0.08282190561294556, -0.3486489951610565, 0.479630708694458, -0.232574462890625, -0.05256063863635063, 0.06448456645011902, -0.2691122591495514, 0.03688540309667587, -0.1021125391125679, -0.39961934089660645, -0.34493041038513184, -0.17267706990242004, -0.13182467222213745, -0.3958907425403595, -0.1175532266497612, -0.12868207693099976, 0.02774433232843876, 0.17468374967575073, 0.11597862839698792, -0.3212335407733917, -0.15710443258285522, 0.1689954698085785, -0.008478395640850067, -0.1146509125828743, 0.5580588579177856, 0.14565420150756836, -0.11813826113939285, -0.14472752809524536, 0.24133875966072083, 0.22185443341732025, -0.1261487454175949, 0.17111623287200928, 0.3306902348995209, -0.3781171143054962, -0.2539422810077667, -0.23306244611740112, 0.16131365299224854, 0.09130453318357468, -0.046299275010824203, 0.14148837327957153, -0.4187161326408386, 0.13230746984481812, 0.18597494065761566, -0.04518618434667587, -0.38997459411621094, -0.14919300377368927, -0.07786988466978073, -0.15376709401607513, 0.13331764936447144, -0.11493290215730667, 0.14781461656093597, -0.12762291729450226, -0.07189546525478363, -0.07696030288934708, 0.5021994709968567, -0.3233351707458496, -0.03799765557050705, -0.3658135235309601, 0.1154029369354248, -0.20465078949928284, -0.24954326450824738, 0.1450023204088211, 0.11774713546037674, 0.08013728260993958, 0.047430552542209625, -0.11149509251117706, -0.22686779499053955, -0.11655847728252411, 0.18021422624588013, -0.0278922151774168, -0.21743321418762207, 0.2300645411014557, 0.05410600081086159, -0.47737860679626465, -0.5050477981567383, 0.14479945600032806, -0.059866417199373245, -0.10007647424936295, 0.018009783700108528, 0.02526811696588993, 0.09783617407083511, -0.15353119373321533, 0.2102256417274475, 0.0410495325922966, 0.35047268867492676, 0.07088235020637512, -0.028213944286108017, 0.10943443328142166, -0.2575264573097229, 0.2309645265340805, 0.12667568027973175, 0.25368794798851013, 0.03175172954797745, 0.44466328620910645, 0.06964679062366486, -0.38495224714279175, 0.019599853083491325, 0.43303170800209045, 0.4753470718860626, 0.14118757843971252, -0.016759589314460754, 0.19324873387813568, 0.17916646599769592, -0.21374475955963135, -0.1301722228527069, 0.36915159225463867, -0.18878363072872162, 0.17370301485061646, 0.04340770095586777, 0.45898404717445374, 0.1746058613061905, -0.15960995852947235, 0.05320696905255318, -0.0747285708785057, -0.3618644177913666, -0.13503025472164154, 0.06540469080209732, 0.29459649324417114, -0.015472754836082458, 0.18134568631649017, 0.14803239703178406, 0.22063235938549042, 0.49969354271888733, 0.12719351053237915, 0.44123634696006775, -0.0816400945186615, 0.5757462978363037, -0.03706327825784683, -0.1976614147424698, 0.33421796560287476, 0.22814646363258362, 0.03818439319729805, 0.053329188376665115, -0.05877603963017464, -0.10672570765018463, 0.1567348837852478, -0.35067036747932434, -0.13948020339012146, 0.25257766246795654, -0.14143335819244385, -0.3310845196247101, 0.17895963788032532, -0.0030862062703818083, 0.1212247684597969, 0.23320357501506805, 0.04628574103116989, -0.010200854390859604, 0.20232363045215607, 0.1436454951763153, -0.10630108416080475, -0.3107662796974182, 0.05031304806470871, -0.07704831659793854, 0.6449186205863953, 0.03993043303489685, -0.21194443106651306, 0.13703863322734833, -0.15988226234912872, -0.07369215786457062, 0.20659005641937256, 0.26973670721054077, 0.15129944682121277, -0.6558004021644592, 0.0792783796787262, 0.04817040637135506, 0.09430718421936035, 0.01590324193239212, 0.26950353384017944, 0.012386388145387173, 0.3510611951351166, 0.21356074512004852, 0.00704379053786397, -0.2483607828617096, -0.7480029463768005, -0.11762929707765579, 0.22163474559783936, 0.030538149178028107, -0.03820690140128136, 0.1356324404478073, -0.12583859264850616, 0.027958376333117485, 0.11130215972661972, -0.2532182037830353, 0.3649372160434723, 0.24341019988059998, -0.08197139203548431, 0.03152470290660858, -0.04774235934019089, 0.09998266398906708, -0.05674915760755539, 0.8836598992347717, 0.1941969245672226, 0.18045806884765625, -0.21342627704143524, -0.15100160241127014, -0.5924734473228455, -0.01907440461218357, -0.3248520791530609, -0.09118864685297012, 0.5681345462799072, 0.36244863271713257, 0.004029908683151007, 0.17476139962673187, 0.21949325501918793, -0.010799258016049862, 0.11198723316192627, 0.4059706926345825, -0.27753379940986633, 0.21019794046878815, -0.26910698413848877, -0.14093206822872162, -0.07562437653541565, -0.3053847849369049, 0.42512109875679016, 0.23091132938861847, -0.006682815030217171, -0.009121653623878956, 0.1979617327451706, 0.13587741553783417, 0.11231231689453125, 0.2765577733516693, 0.29523029923439026, 0.10526667535305023, -0.18179872632026672, -0.10903123021125793, -0.20365731418132782, 0.05502893403172493, -0.07328949868679047, 0.04699684679508209, -0.06691468507051468, 0.0866830050945282, -0.12951615452766418, -0.30516520142555237, -0.21815477311611176, 0.17578430473804474, -0.07414054870605469, 0.1369871348142624, -0.20450551807880402, -0.1023222953081131, 0.2649247944355011, 0.367713063955307, 0.08781444281339645, 0.270472913980484, -0.0025312977377325296, -0.01736336015164852, -0.45230376720428467, -0.32067376375198364, 0.32381463050842285, -0.37162721157073975, -0.16304101049900055, -0.08644537627696991, 0.06703890860080719, 0.13968966901302338, 0.2970755696296692, -0.5577386021614075, -0.09709493070840836, 0.10174918919801712, 0.1856280416250229, -0.40309569239616394, 0.01587427221238613, -0.04547052085399628, -0.2367832511663437, -0.2156967669725418, -0.041109371930360794, 0.06567163020372391, -0.13677950203418732, -0.29754838347435, -0.22281049191951752 ]
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.22649092972278595, -0.1561903953552246, -0.12017633020877838, 0.06685474514961243, -0.13705919682979584, -0.0890742689371109, 0.025616873055696487, 0.3342381715774536, 0.19152799248695374, 0.06897801160812378, 0.03954260051250458, -0.09713605791330338, 0.30243125557899475, 0.14719095826148987, -0.34191301465034485, -0.27862849831581116, 0.20231960713863373, 0.061318185180425644, 0.14840735495090485, 0.029779095202684402, -0.24281643331050873, -0.0547436960041523, -0.4051627516746521, -0.12120075523853302, -0.11950697004795074, -0.23627278208732605, -0.07996378093957901, -0.12658819556236267, -0.17690683901309967, -0.5026084780693054, 0.22070787847042084, 0.5021686553955078, 0.14832988381385803, 0.13119696080684662, -0.00010815419955179095, -0.1195443645119667, 0.19368842244148254, 0.22717003524303436, 0.12244443595409393, 0.6476589441299438, 0.06640640646219254, -0.15026170015335083, 0.1650487631559372, -0.238785520195961, 0.03324076160788536, -0.3853893578052521, -0.12205412983894348, 0.15767334401607513, 0.210227832198143, -0.1659051775932312, 0.13240917026996613, 0.05799321085214615, -0.12575145065784454, 0.13907958567142487, -0.06180129945278168, -0.0908396989107132, -0.21006950736045837, -0.27913662791252136, 0.1850636899471283, -0.20456674695014954, -0.2020130753517151, 0.5718423128128052, -0.23050926625728607, 0.0829862505197525, 0.26260054111480713, 0.15675003826618195, 0.20920851826667786, -0.20502765476703644, 0.18883609771728516, 0.5338243842124939, 0.26579952239990234, 0.12251820415258408, -0.22753913700580597, -0.2370632141828537, -0.02764706127345562, -0.3344917297363281, 0.2790992259979248, -0.23981378972530365, -0.18164628744125366, 0.08779078722000122, 0.05900706350803375, 0.016766780987381935, -0.0018297011265531182, -0.0482967384159565, 0.010348031297326088, 0.4794568717479706, 0.17628178000450134, -0.024131538346409798, 0.20759540796279907, -0.16378004848957062, -0.14268498122692108, -0.18572136759757996, 0.005633545108139515, 0.2005605250597, -0.391605943441391, -0.05917325243353844, 0.0871647372841835, -0.1771811693906784, 0.1087726354598999, -0.16245432198047638, -0.3400706946849823, 0.46013233065605164, 0.1689217984676361, -0.08505135029554367, 0.13263574242591858, -0.01108716893941164, -0.3062152862548828, -0.14711306989192963, 0.37620389461517334, 0.05229565128684044, -0.11764896661043167, 0.23427259922027588, 0.20086346566677094, -0.10091394931077957, -0.1655818223953247, -0.31356149911880493, -0.29785090684890747, -0.09255138039588928, 0.28494060039520264, 0.16055624186992645, 0.1177731528878212, -0.2563350200653076, -0.020704668015241623, 0.5065280199050903, -0.16217179596424103, 0.5769688487052917, 0.14745958149433136, -0.17348021268844604, -0.30402296781539917, 0.2322985976934433, -0.027100687846541405, -0.16955776512622833, -0.1649036556482315, 0.2978241741657257, 0.0679757222533226, 0.10474572330713272, -0.07754555344581604, 0.07523157447576523, 0.17360995709896088, -0.009537349455058575, -0.007219575811177492, -0.031936515122652054, 0.25665080547332764, 0.2684521973133087, -0.12749771773815155, 0.09694191813468933, -0.23418648540973663, -0.03100339137017727, -0.30919453501701355, -0.11368760466575623, -0.052766669541597366, -0.370198518037796, -0.13260674476623535, 0.19663973152637482, 0.14800918102264404, -0.007522603031247854, -0.023163188248872757, 0.34519001841545105, 0.04421287402510643, -0.004465464968234301, 0.03045072965323925, 0.003931405954062939, -0.16938979923725128, -0.10586653649806976, 0.5083752274513245, 0.24764858186244965, -0.08408229798078537, 0.16020505130290985, 0.02682051807641983, 0.12790997326374054, 0.16021844744682312, 0.4359188377857208, -0.1009851023554802, 0.1620691418647766, 0.05515341833233833, 0.2438952475786209, 0.018809771165251732, -0.331087201833725, -0.2364838719367981, 0.36775317788124084, 0.1674937903881073, 0.01780879497528076, 0.16973060369491577, 0.033823445439338684, 0.22242471575737, -0.0007775500998832285, -0.06356189399957657, 0.5007233023643494, 0.16899585723876953, 0.14480306208133698, -0.47628843784332275, -0.5098891258239746, -0.0542113222181797, 0.3578072190284729, 0.12606042623519897, -0.23463274538516998, -0.1879567950963974, -0.1784210205078125, 0.30206987261772156, -0.3102785646915436, 0.10198648273944855, 0.0898890420794487, 0.10410551726818085, 0.19451311230659485, 0.27584993839263916, -0.04931933805346489, -0.1281997263431549, 0.26440680027008057, -0.310576468706131, 0.3434848189353943, 0.2918088436126709, -0.29074063897132874, 0.1353849470615387, 0.04449594020843506, -0.09078671783208847, -0.1451963633298874, 0.13016526401042938, -0.1010519489645958, 0.02343917079269886, 0.04445166885852814, -0.10511776804924011, -0.08826778084039688, -0.22044652700424194, -0.017460666596889496, 0.037511181086301804, -0.021543923765420914, -0.29870644211769104, 0.05317797139286995, 0.09029916673898697, 0.21851323544979095, 0.06567517668008804, 0.14211511611938477, -0.014804830774664879, 0.05672154575586319, 0.08496163040399551, -0.003671698272228241, 0.5223875045776367, 0.2626943588256836, 0.0666324719786644, -0.17890988290309906, -0.05650463327765465, -0.054586224257946014, -0.010275584645569324, -0.20951905846595764, -0.2721389830112457, 0.5150547623634338, 0.09931889921426773, 0.6663000583648682, 0.03355945274233818, -0.14112265408039093, 0.19107121229171753, -0.08005344122648239, 0.2929941415786743, 0.16128668189048767, 0.09089053422212601, 0.08388824760913849, -0.15543943643569946, 0.1086619645357132, -0.24579142034053802, 0.3985961079597473, 0.0887187123298645, -0.14188604056835175, -0.12382156401872635, 0.34102174639701843, 0.1518617570400238, -0.43174877762794495, 0.13784587383270264, -0.3139738142490387, -0.13181358575820923, 0.23961672186851501, 0.07603009790182114, -0.09338480234146118, -0.06432965397834778, -0.1795385479927063, 0.25570952892303467, 0.06872443854808807, -0.16040584444999695, 0.15999141335487366, 0.048968710005283356, 0.18973079323768616, -0.10048115998506546, -0.30372798442840576, -0.15035748481750488, 0.0547478161752224, 0.0158067774027586, 0.011437811888754368, -0.09457692503929138, -0.03297193720936775, 0.4362278878688812, 0.02777077443897724, -0.4427419602870941, -0.361590713262558, 0.2546575665473938, -0.2031908929347992, -0.17404085397720337, 0.26992762088775635, -0.033337756991386414, 0.07388478517532349, -0.11609823256731033, -0.30938512086868286, -0.46880510449409485, -0.31470590829849243, -0.2602573335170746, 0.012199167162179947, 0.183553546667099, 0.6119248867034912, 0.2436840683221817, 0.21184606850147247, -0.23683130741119385, -0.0472823865711689, -0.4198971688747406, 0.14705431461334229, -0.0797174721956253, 0.06520900875329971, 0.07605814933776855, 0.09878266602754593, -0.26676449179649353, -0.3064787983894348, 0.07664448767900467, -0.2006571739912033, 0.08647739142179489, -0.1277018040418625, -0.25471511483192444, 0.015578477643430233, 0.08177175372838974, -0.35251811146736145, -0.0994158685207367, -0.2811505198478699, 0.131622314453125, -0.12530513107776642, 0.14718076586723328, -0.24705080687999725, 0.06999267637729645, 0.14868997037410736, -0.1375662237405777, 0.09456060081720352, -0.14603717625141144, -0.07998696714639664, 0.3313508629798889, 0.04473297297954559, -0.26909446716308594, -0.12046642601490021, -0.1354922503232956, -0.01980261318385601, 0.059192199259996414, -0.5038503408432007, 0.090415820479393, -0.43138179183006287, 0.44642263650894165, 0.10893718153238297, 0.2679249048233032, 0.37007662653923035, 0.1071828305721283, -0.22812211513519287, 0.01746067963540554, -0.005720959510654211, 0.052892521023750305, -0.2638605833053589, -0.049014169722795486, -0.0867941826581955, 0.008586044423282146, -0.19584061205387115, 1.1640775203704834, 0.1669708788394928, 0.06632626801729202, 0.25716111063957214, 0.284044474363327, 0.10981719195842743, -0.14246521890163422, 0.10167639702558517, 0.1536925733089447, -0.14403460919857025, 0.24496036767959595, 0.2913002073764801, 0.04644375666975975, -0.34048718214035034, -0.06584470719099045, 0.009131133556365967, -0.1790582686662674, -0.36280861496925354, 0.198297917842865, 0.4147169589996338, 0.3583090901374817, -0.013202309608459473, 0.1047767773270607, -0.21626044809818268, -0.23084527254104614, 0.22718340158462524, 0.29397523403167725, 0.036180220544338226, -0.23758013546466827, -0.045625824481248856, 0.07037877291440964, -0.7937566637992859, 0.22714738547801971, 0.1352054923772812, 0.10624285042285919, -0.04493098333477974, 0.2049994021654129, 0.3181876540184021, -0.382454514503479, 0.3311483860015869, -0.5110350847244263, -0.03422402963042259, 0.31053850054740906, -0.26851150393486023, -0.0267737228423357, 0.10107021033763885, -0.19879649579524994, -0.5399514436721802, 0.36623260378837585, 0.2730425298213959, -0.40418440103530884, -0.39463210105895996, 0.16380447149276733, -0.10568559169769287, -0.14116838574409485, -0.3499203324317932, -0.1689435988664627, -0.37431350350379944, -0.11582423001527786, 0.25413620471954346, -0.0730222538113594, 0.16178549826145172, -0.11627082526683807, 0.07576783001422882, -0.24037569761276245, 0.305318683385849, -0.03594531863927841, 0.2997189462184906, -0.020389730110764503, -0.02066672593355179, 0.32129305601119995, 0.08412791788578033, -0.15932409465312958, 0.2003440260887146, -0.06909291446208954, 0.04272639378905296, 0.33713212609291077, -0.20864559710025787, 0.053931787610054016, 0.04183661565184593, 0.4395439922809601, 0.09431646019220352, 0.3287379741668701, 0.006422165781259537, 0.4958716332912445, -0.4995753765106201, 0.018616722896695137, 0.31672438979148865, 0.005830262787640095, -0.35243383049964905, -0.30605584383010864, 0.6003257632255554, 0.11249188333749771, -0.2819769084453583, 0.25174903869628906, 0.6379446983337402, -0.04351698234677315, 0.8059250116348267, 0.46644356846809387, 0.9706413149833679, -0.3135966360569, 0.2017129361629486, 0.05783020704984665, -0.10529778897762299, 0.18683187663555145, -0.5955250859260559, 0.010622535832226276, -0.3307257294654846, -0.050787296146154404, 0.1385863572359085, 0.07174688577651978, 0.10708867758512497, 0.06962002068758011, -0.21083705127239227, 0.04085657000541687, 0.28925883769989014, -0.3912505805492401, -0.08884362131357193, 0.6510120630264282, 0.25062403082847595, -0.5994693040847778, -0.06271946430206299, 0.08649621158838272, 0.11037104576826096, -0.029935063794255257, -0.033122073858976364, -0.14771977066993713, 0.031230811029672623, -0.0010647462913766503, -0.43382158875465393, -0.09248469024896622, 0.21500544250011444, 0.09376372396945953, -0.1425294131040573, -0.09799433499574661, 0.336261510848999, 0.20082765817642212, 0.03776932507753372, 0.08918307721614838, -0.3503609597682953, 0.4732806980609894, -0.22885598242282867, -0.05205604434013367, 0.08077966421842575, -0.27165576815605164, 0.06370878219604492, -0.09792079776525497, -0.38500192761421204, -0.3434796929359436, -0.17169317603111267, -0.1527828872203827, -0.3854239583015442, -0.12453079968690872, -0.13095760345458984, 0.04314321652054787, 0.18775877356529236, 0.1281503587961197, -0.3271593153476715, -0.16819554567337036, 0.16408702731132507, -0.01413046009838581, -0.11198284476995468, 0.5528236031532288, 0.13495281338691711, -0.1208636686205864, -0.15160365402698517, 0.22805218398571014, 0.22843435406684875, -0.1255815178155899, 0.15460969507694244, 0.314747154712677, -0.3647037446498871, -0.26278913021087646, -0.22499185800552368, 0.1548169106245041, 0.10121075809001923, -0.03644762933254242, 0.13303092122077942, -0.4334460496902466, 0.12998323142528534, 0.1956922858953476, -0.045576006174087524, -0.3782903552055359, -0.164955273270607, -0.07189589738845825, -0.1449120044708252, 0.13719052076339722, -0.12023526430130005, 0.1591121405363083, -0.10991635173559189, -0.07994009554386139, -0.08741232007741928, 0.48489999771118164, -0.32161200046539307, -0.07501231878995895, -0.35071948170661926, 0.07844403386116028, -0.20230922102928162, -0.2345542460680008, 0.14319822192192078, 0.1367758810520172, 0.0717562660574913, 0.04955551400780678, -0.1006554365158081, -0.22168415784835815, -0.13469135761260986, 0.18366028368473053, -0.028221726417541504, -0.21051029860973358, 0.235512375831604, 0.05850286781787872, -0.4899168908596039, -0.5152705907821655, 0.14235253632068634, -0.06616055965423584, -0.095824234187603, 0.019925877451896667, 0.021684665232896805, 0.13067036867141724, -0.14221154153347015, 0.22075007855892181, 0.05530373379588127, 0.33952367305755615, 0.05745965242385864, -0.008523054420948029, 0.11686579138040543, -0.24955734610557556, 0.24082550406455994, 0.14670610427856445, 0.2563514709472656, 0.01920890621840954, 0.4395843744277954, 0.0862906351685524, -0.4105634093284607, 0.01977739855647087, 0.4301701486110687, 0.45587557554244995, 0.15628699958324432, -0.029310140758752823, 0.19157136976718903, 0.17530018091201782, -0.21964548528194427, -0.1398765593767166, 0.3598822355270386, -0.19315166771411896, 0.182448148727417, 0.05447174608707428, 0.4774366021156311, 0.18100838363170624, -0.14716799557209015, 0.04374569654464722, -0.07296404242515564, -0.3672812581062317, -0.1262565404176712, 0.0754409208893776, 0.3041474521160126, -0.01964612491428852, 0.1780901402235031, 0.15228526294231415, 0.24213813245296478, 0.46969735622406006, 0.13467513024806976, 0.44331344962120056, -0.061460718512535095, 0.5766786932945251, -0.034728311002254486, -0.17246349155902863, 0.3463381230831146, 0.21082720160484314, 0.039439305663108826, 0.07578812539577484, -0.05669645592570305, -0.11771465837955475, 0.15036335587501526, -0.3285143971443176, -0.1473163366317749, 0.25607001781463623, -0.1253514438867569, -0.34055227041244507, 0.17670448124408722, -0.014707576483488083, 0.11903134733438492, 0.238846555352211, 0.05013645067811012, -0.015959598124027252, 0.20086310803890228, 0.13526654243469238, -0.08821972459554672, -0.30035749077796936, 0.06683333963155746, -0.0721721425652504, 0.6491076946258545, 0.025875553488731384, -0.23421679437160492, 0.1350674033164978, -0.17062480747699738, -0.08794081211090088, 0.21005673706531525, 0.27354827523231506, 0.13262797892093658, -0.6634916663169861, 0.08663623034954071, 0.021495003253221512, 0.10662178695201874, 0.00016229291213676333, 0.26678818464279175, 0.012999520637094975, 0.34459710121154785, 0.1935039609670639, 0.006565791554749012, -0.23924382030963898, -0.7350766062736511, -0.1268933266401291, 0.19749465584754944, 0.019403818994760513, -0.02778649888932705, 0.15130433440208435, -0.12155397981405258, 0.03807774931192398, 0.13098499178886414, -0.2416858673095703, 0.34936925768852234, 0.2266613394021988, -0.07303499430418015, 0.02652008645236492, -0.03344474360346794, 0.09960096329450607, -0.055463436990976334, 0.8809112906455994, 0.1900385618209839, 0.17851442098617554, -0.19361929595470428, -0.1442977786064148, -0.591093122959137, -0.025280529633164406, -0.29654452204704285, -0.11201117932796478, 0.568095862865448, 0.357169508934021, 0.010625042021274567, 0.18820922076702118, 0.22147156298160553, -0.008969157934188843, 0.11646285653114319, 0.3898642957210541, -0.26314711570739746, 0.22224697470664978, -0.26087453961372375, -0.13772688806056976, -0.07712320983409882, -0.31924495100975037, 0.4159136116504669, 0.2360430508852005, -0.01720181107521057, -0.024836061522364616, 0.17681442201137543, 0.14545030891895294, 0.11425779014825821, 0.2799147367477417, 0.29693442583084106, 0.0768245980143547, -0.18396012485027313, -0.1251138597726822, -0.2327931970357895, 0.06588061898946762, -0.08315888792276382, 0.029331153258681297, -0.07467443495988846, 0.0847044438123703, -0.14309310913085938, -0.31851232051849365, -0.217784583568573, 0.18278972804546356, -0.07213317602872849, 0.13686245679855347, -0.1984739750623703, -0.10874952375888824, 0.264681339263916, 0.37241309881210327, 0.08555757254362106, 0.2582961320877075, 0.016159499064087868, -0.023718880489468575, -0.44866427779197693, -0.30017146468162537, 0.30091404914855957, -0.3872104585170746, -0.16100651025772095, -0.10634329915046692, 0.05419785529375076, 0.13995063304901123, 0.297911673784256, -0.5485866665840149, -0.114374540746212, 0.09987378865480423, 0.20493806898593903, -0.3972122371196747, 0.0148416543379426, -0.045589543879032135, -0.23270335793495178, -0.22682876884937286, -0.04113383963704109, 0.047960761934518814, -0.137318953871727, -0.31262314319610596, -0.23363986611366272 ]
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.1137213334441185, -0.33165591955184937, -0.05896613374352455, 0.4534541666507721, 0.1343115270137787, -0.11615702509880066, -0.17864543199539185, 0.46086496114730835, -0.4080985188484192, 0.3328980505466461, 0.19823527336120605, -0.08847412467002869, -0.12217686325311661, -0.18767262995243073, -0.102883480489254, -0.14680278301239014, 0.1206526830792427, 0.40423712134361267, 0.04633559659123421, -0.0668322816491127, 0.2086947113275528, 0.2305036336183548, 0.08898190408945084, 0.05838320776820183, -0.3092939853668213, -0.2625987231731415, -0.15499868988990784, 0.031552594155073166, -0.3289452791213989, -0.184122234582901, -0.19333723187446594, -0.16470496356487274, 0.3871699273586273, 0.41079673171043396, -0.0001292929518967867, -0.1663682758808136, -0.00678688520565629, -0.08002452552318573, -0.12759652733802795, 0.36736807227134705, 0.07736045122146606, -0.3972456753253937, 0.01280717272311449, -0.26218700408935547, 0.24111080169677734, -0.3113113045692444, -0.18069444596767426, -0.2490861415863037, 0.5573139786720276, 0.004265802446752787, 0.06892862915992737, -0.23041540384292603, 0.09214401245117188, 0.34721145033836365, 0.2535007894039154, -0.06352034956216812, -0.07132573425769806, 0.1529289335012436, 0.47154510021209717, 0.28607743978500366, -0.1823883056640625, 0.36319929361343384, 0.1101033166050911, -0.20882970094680786, 0.3755967617034912, -0.23418591916561127, 0.6091356873512268, -0.03995697572827339, 0.2837226688861847, 0.32558366656303406, 0.6376827359199524, -0.13708016276359558, 0.05124499276280403, 0.07818439602851868, 0.39420071244239807, -0.07222764194011688, 0.0660194531083107, 0.2971108555793762, -0.013958956114947796, -0.011380315758287907, -0.03768245130777359, -0.6596645712852478, -0.3486740291118622, 0.01868871971964836, 0.1498582363128662, -0.22961300611495972, -0.1608574390411377, -0.1307564079761505, 0.30241772532463074, -0.3091191053390503, 0.01808759570121765, 0.005658572074025869, -0.19443418085575104, -0.03266599029302597, -0.2165946215391159, -0.20447582006454468, -0.625420331954956, -0.05339494347572327, -0.07576547563076019, -0.1932915598154068, 0.6419772505760193, -0.15030081570148468, 0.023994553834199905, 0.024058375507593155, 0.18905843794345856, 0.4034421443939209, -0.15622442960739136, 0.2484545260667801, 0.03522159159183502, 0.07530955970287323, -0.03379610553383827, -0.14936573803424835, -0.4900306761264801, -0.14984259009361267, 0.20521914958953857, -0.38698524236679077, -0.28067249059677124, -0.07325881719589233, 0.29340705275535583, 0.18457873165607452, -0.4840514063835144, 0.2669825851917267, 0.09754454344511032, 0.15592417120933533, 0.10787974298000336, 0.2910135090351105, -0.0011183364549651742, 0.09231545776128769, -0.06593025475740433, 0.00948587991297245, 0.02776295877993107, -0.09813159704208374, -0.14204543828964233, 0.006058381870388985, -0.07829456031322479, -0.0065730055794119835, 0.14833243191242218, -0.3339114785194397, -0.007267632521688938, -0.35099101066589355, 0.028762606903910637, -0.329426109790802, 0.2498750239610672, -0.000129619162180461, -0.12088971585035324, 0.1071227416396141, -0.2728607654571533, 0.17552001774311066, -0.19964854419231415, 0.2861882448196411, -0.3546921908855438, -0.19925493001937866, -0.4079982340335846, 0.002083368133753538, -0.07025846838951111, 0.23426653444766998, -0.07665680348873138, 0.07827288657426834, 0.2531574070453644, -0.14583627879619598, 0.06396277248859406, -0.19475993514060974, 0.01983656920492649, -0.19189171493053436, 0.20368513464927673, 0.005958051420748234, -0.5826377272605896, 0.01130360085517168, -0.21321555972099304, 0.2590464949607849, 0.2356860339641571, 0.6174731850624084, -0.036389466375112534, 0.05852188169956207, 0.128730908036232, 0.40634238719940186, 0.13569022715091705, 0.04808314889669418, -0.5367758870124817, 0.21711856126785278, 0.2386552393436432, -0.10116960108280182, 0.18592213094234467, 0.2929551899433136, 0.08929528295993805, 0.007151950150728226, -0.28793907165527344, 0.131066232919693, 0.17176437377929688, 0.16368216276168823, -0.25648233294487, -0.4411570727825165, -0.21642142534255981, -0.09654362499713898, -0.3174477219581604, -0.6281604766845703, -0.06820736080408096, 0.025035876780748367, 0.2728004455566406, -0.25770655274391174, 0.22523413598537445, 0.49284765124320984, 0.2753371000289917, -0.0006954469718039036, 0.22388555109500885, 0.16690129041671753, -0.12122739106416702, -0.15800614655017853, -0.24811488389968872, -0.43697792291641235, -0.2673233151435852, -0.198346346616745, -0.012755699455738068, -0.11553816497325897, 0.08474750816822052, 0.20975789427757263, -0.06848063319921494, -0.4338863492012024, -0.2588697373867035, -0.20444819331169128, -0.002829331671819091, -0.16498354077339172, -0.17411115765571594, 0.02261778898537159, -0.08137676864862442, -0.030759982764720917, -0.038440290838479996, -0.2457408457994461, 0.2472553849220276, 0.13475871086120605, -0.14844705164432526, 0.1164519414305687, -0.2407492846250534, 0.15980079770088196, -0.16758698225021362, 0.43137839436531067, 0.11296243965625763, 0.038670457899570465, -0.020548831671476364, -0.6437348127365112, 0.7238837480545044, 0.1546059250831604, 0.18892207741737366, 0.12757496535778046, -0.24292349815368652, -0.34919413924217224, 0.08008287847042084, 0.2482016235589981, 0.09398794174194336, -0.22779031097888947, -0.1839202493429184, 0.0678190141916275, -0.10575763881206512, -0.1484801322221756, 0.11977331340312958, 0.2603486180305481, 0.3425697982311249, 0.41013696789741516, 0.11276622116565704, -0.19099955260753632, 0.3433578908443451, 0.019847331568598747, 0.13493536412715912, 0.5249634385108948, -0.6002118587493896, -0.3416874408721924, 0.05182190239429474, -0.17722143232822418, -0.09396148473024368, 0.12630289793014526, 0.06251225620508194, -0.12551145255565643, 0.48967641592025757, -0.00785548985004425, 0.30117887258529663, 0.32421746850013733, 0.41923993825912476, 0.1767469048500061, -0.010845521464943886, 0.08377309143543243, -0.10297705978155136, 0.0626634806394577, -0.21923765540122986, 0.04661621153354645, -0.2451949268579483, 0.242461159825325, -0.27492859959602356, -0.234491765499115, -0.19218739867210388, -0.017311695963144302, -0.10194674134254456, 0.05158701166510582, 0.24512091279029846, -0.18806315958499908, -0.15914855897426605, -0.21170353889465332, 0.18177351355552673, 0.4403659999370575, 0.2060803771018982, 0.09186705946922302, 0.15351200103759766, -0.03513108938932419, -0.1502387970685959, -0.010964801535010338, 0.043886948376894, -0.014694550074636936, 0.11252707988023758, 0.1260078251361847, 0.10708426684141159, -0.16789992153644562, -0.12430616468191147, -0.015339510515332222, -0.03618684038519859, -0.1662033647298813, -0.13032816350460052, 0.0919690653681755, -0.7869036793708801, -0.039870139211416245, -0.2734318971633911, -0.08555179089307785, -0.14637507498264313, 0.1608954668045044, -0.21355277299880981, -0.06538567692041397, 0.13123515248298645, -0.15470488369464874, -0.03691868856549263, -0.23396040499210358, 0.2178567796945572, -0.02229887619614601, 0.17680896818637848, -0.04422028362751007, 0.3882007598876953, 0.1545165479183197, 0.0012789462925866246, 0.06407201290130615, 0.23599228262901306, -0.392871618270874, 0.3850267231464386, 0.02149801515042782, -0.18015515804290771, 0.07997062057256699, 0.04573187977075577, 0.11416831612586975, 0.020965488627552986, -0.3639508783817291, 0.203022301197052, -0.2756902277469635, -0.278595894575119, -0.34337884187698364, 0.20263047516345978, 0.09118153154850006, 0.0549718476831913, -0.10604706406593323, 0.17427535355091095, 0.11059693992137909, 0.2940920889377594, 0.4214520752429962, 0.47461190819740295, -0.16923882067203522, -0.2786591947078705, 0.07141350209712982, 0.37147942185401917, 0.6862310171127319, 0.10741432756185532, 0.16819775104522705, 0.3925535976886749, 0.11685961484909058, -0.05483734980225563, 0.2649500072002411, -0.03908134624361992, 0.018812717869877815, 0.05213572829961777, 0.3258899748325348, 0.4453132450580597, 0.20133182406425476, 0.4860764443874359, -0.514597475528717, -0.10845930874347687, -0.3140789568424225, 0.5424492955207825, -0.34098708629608154, 0.30151644349098206, -0.28175845742225647, -0.354911744594574, -0.01331925019621849, -0.26702573895454407, -0.07331449538469315, -0.08859030157327652, 0.1736103892326355, 0.16173630952835083, 0.19398875534534454, -0.17586250603199005, -0.4150085747241974, 0.2750549018383026, 0.13528183102607727, -0.2880965769290924, 0.15493543446063995, 0.1337941437959671, 0.28318464756011963, 0.048273965716362, -0.035856943577528, 0.11663249135017395, -0.27476295828819275, -0.11583887785673141, 0.23549893498420715, -0.36946842074394226, 0.31243082880973816, -0.08997329324483871, -0.006796330213546753, 0.08796426653862, 0.06530885398387909, -0.158593088388443, 0.024044938385486603, 0.009952557273209095, 0.47065016627311707, -0.15098001062870026, -0.037614841014146805, -0.129376620054245, 0.08603274822235107, -0.46331387758255005, -0.010738195851445198, 0.13713587820529938, 0.17054250836372375, 0.3386726975440979, -0.3994380235671997, -0.012762307189404964, -0.4001532196998596, 0.10635944455862045, 0.05595961958169937, 0.5959636569023132, -0.3194729685783386, -0.05724716931581497, 0.1228637620806694, 0.26653575897216797, 0.2798195481300354, 0.17517919838428497, 0.033285148441791534, -0.25184157490730286, -0.04981851577758789, -0.20809884369373322, 0.45214152336120605, 0.38856688141822815, -0.1870093047618866, 0.009359464980661869, 0.1944095492362976, 0.12606729567050934, 0.1910991370677948, -0.0013705802848562598, 0.04598786309361458, 0.2445210963487625, -0.17825762927532196, 0.18829159438610077, -0.06445357203483582, 0.12916383147239685, 0.030457735061645508, 0.09237323701381683, 0.504901111125946, 0.05113811790943146, 0.42281487584114075, 0.22553907334804535, 1.2819308042526245, -0.1344434916973114, 0.21384142339229584, -0.19064879417419434, 0.03156135976314545, 0.11712232232093811, -0.08904910087585449, 0.23199377954006195, -0.0786619633436203, 0.12645937502384186, 0.07362306118011475, -0.0634128600358963, 0.013623344711959362, 0.03188319876790047, -0.39419078826904297, 0.1372603327035904, -0.30309751629829407, -0.30746155977249146, -0.3690090775489807, 0.18296769261360168, -0.02087639458477497, -0.28206220269203186, -0.18074379861354828, -0.06627360731363297, -0.04771322011947632, -0.15064223110675812, 0.014617778360843658, 0.06922350823879242, -0.2681731581687927, -0.0985620766878128, -0.0979989767074585, -0.10273400694131851, -0.2832159101963043, 0.11159650981426239, -0.23696112632751465, -0.386449933052063, 0.34409183263778687, 0.41486766934394836, -0.1306278109550476, 0.2602444589138031, -0.13675111532211304, 0.1721031665802002, -0.059332139790058136, -0.26997584104537964, -0.043566182255744934, -0.12525269389152527, -0.12579426169395447, -0.0844017043709755, 0.012107712216675282, 0.03733815625309944, 0.16379714012145996, -0.2950190603733063, 0.36025047302246094, -0.1748204082250595, 0.7085214853286743, 0.05469710752367973, -0.0832187756896019, -0.12738008797168732, -0.5596516728401184, 0.011331078596413136, 0.041307125240564346, 0.3711176812648773, 0.18368849158287048, 0.23826299607753754, 0.3910103738307953, -0.3079729676246643, 0.09752478450536728, 0.0628669485449791, 0.3214311897754669, -0.019351530820131302, 0.7334332466125488, -0.16694258153438568, -0.24656987190246582, -0.2655659019947052, 0.321652889251709, 0.032620202749967575, -0.462330162525177, 0.1976674348115921, 0.006453759036958218, -0.30596238374710083, -0.10309475660324097, 0.23555238544940948, 0.28189292550086975, 0.011501363478600979, -0.30244335532188416, 0.006057955324649811, -0.3865145444869995, 0.4225131571292877, -0.1388484686613083, 0.24326416850090027, -0.03661543130874634, -0.4012187123298645, -0.03743133693933487, 0.3353612720966339, -0.10497844964265823, 0.3595973551273346, -0.11377144604921341, 0.07964909076690674, -0.16024290025234222, -0.045914508402347565, 0.0498037189245224, -0.3003367781639099, -0.08745115995407104, 0.2291775643825531, 0.12414266169071198, -0.09896767139434814, -0.17979834973812103, 0.17817211151123047, -0.0540415458381176, -0.05909047648310661, 0.05034715309739113, -0.4137825667858124, -0.09276068210601807, -0.28050509095191956, -0.17335744202136993, -0.25451305508613586, 0.305019736289978, -0.26176539063453674, -0.1281300187110901, -0.16997599601745605, -0.1282249093055725, 0.15675881505012512, 0.14404745399951935, 0.28881582617759705, 0.08271726965904236, -0.045481517910957336, 0.23633253574371338, -0.3123512864112854, -0.2136642038822174, 0.29701855778694153, 0.43245014548301697, 0.206854447722435, 0.10901346802711487, 0.35136404633522034, -0.10136875510215759, -0.19904783368110657, -0.16252990067005157, 0.1372927725315094, -0.06279676407575607, -0.09207573533058167, 0.262741357088089, 0.016900671645998955, -0.10337299108505249, -0.20439279079437256, -0.12128064036369324, -0.47361138463020325, -0.4672914445400238, 0.01424984261393547, 0.05978266894817352, 0.27344271540641785, -0.2132900506258011, -0.027308760210871696, -0.21142783761024475, 0.12402913719415665, 0.0010519704082980752, 0.3375547230243683, 0.059806324541568756, -0.12982216477394104, 0.0006454713293351233, -0.025792540982365608, 0.5211461782455444, 0.26671841740608215, -0.3445758521556854, -0.023765726014971733, 0.49869251251220703, 0.38061320781707764, 0.0009744909475557506, 0.10937901586294174, -0.19614657759666443, 0.2260330617427826, 0.23553863167762756, 0.18194562196731567, 0.19378957152366638, 0.5880281329154968, 0.31571078300476074, -0.08744972944259644, -0.11103888601064682, 0.036819569766521454, -0.14954258501529694, 0.031190933659672737, 0.04408997297286987, 0.07463260740041733, -0.053097259253263474, 0.008255347609519958, -0.38447660207748413, 0.02052256278693676, 0.041540250182151794, 0.36821308732032776, 0.030564868822693825, -0.09381825476884842, 0.1930740475654602, 0.0438016876578331, 0.28614306449890137, -0.22557371854782104, 0.027672801166772842, -0.14055931568145752, 0.30027830600738525, -0.11590494215488434, 0.2977313995361328, 0.15087419748306274, 0.09794604033231735, 0.14544068276882172, 0.15473869442939758, 0.23534101247787476, 0.03877585008740425, -0.037978462874889374, -0.26866522431373596, 0.4310181140899658, 0.013100164011120796, -0.08107704669237137, -0.07710140198469162, -0.023991672322154045, -0.12850427627563477, 0.00038662771112285554, 0.33825892210006714, 0.04465887323021889, -0.20852184295654297, -0.07495104521512985, -0.34178411960601807, -0.37791937589645386, -0.06871332228183746, -0.25075840950012207, 0.45854324102401733, 0.1665564626455307, -0.1277361512184143, -0.08843594044446945, -0.0201417189091444, -0.02980009652674198, -0.30915385484695435, 0.4782455265522003, 0.39616724848747253, -0.0792754516005516, -0.2440519779920578, -0.21506008505821228, -0.29943692684173584, 0.0474865697324276, -0.0821961909532547, 0.17788109183311462, 0.21189583837985992, 0.20398500561714172, 0.04666157066822052, 0.19770708680152893, 0.34318238496780396, 0.09310547262430191, -0.37757301330566406, -0.04598512500524521, -0.2014557421207428, 0.039785806089639664, 0.5905766487121582, 0.062300607562065125, 0.11775429546833038, -0.24675288796424866, 0.25140881538391113, 0.2052881121635437, -0.14120295643806458, 0.15035982429981232, -0.13232266902923584, -0.22573544085025787, 0.2298247516155243, 0.5471303462982178, -0.038275379687547684, -0.2566400170326233, -0.02333545684814453, -0.17932309210300446, 0.07769602537155151, 0.14796745777130127, -0.027734942734241486, 0.21860724687576294, 0.36639848351478577, 0.28147321939468384, -0.4700967073440552, 0.30408692359924316, -0.005760878790169954, -0.0943538174033165, -0.10129103064537048, 0.012115548364818096, -0.17029453814029694, -0.0032215407118201256, 0.18029876053333282, 0.3396618366241455, -0.09550950676202774, 0.08634126931428909, -0.2226569503545761, -0.33816689252853394, -0.14711476862430573, -0.08936244994401932, 0.3378693759441376, 0.35174745321273804, 0.04877582937479019, 0.15463662147521973, 0.33327725529670715, 0.8088222146034241, 0.14672157168388367, -0.8357331156730652, 0.16065713763237, 0.11016247421503067, 0.034161556512117386, -0.2272118777036667, 0.3260709345340729, -0.0811275914311409, 0.12496136873960495, -0.10218468308448792, 0.6838570833206177, -0.04387824609875679, 0.010233450680971146, -0.31692302227020264, -0.4951132833957672 ]
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.06726358830928802, -0.2825366258621216, -0.06414590775966644, 0.40237489342689514, 0.08083515614271164, -0.05377642437815666, -0.2692091464996338, 0.4793398678302765, -0.5607507228851318, 0.3315006494522095, 0.10898388922214508, 0.13407519459724426, -0.11804646998643875, -0.21160955727100372, 0.04858498275279999, -0.09614674746990204, 0.059526778757572174, 0.4329223036766052, 0.08931756764650345, 0.013346328400075436, 0.2631240785121918, 0.35597893595695496, 0.09393191337585449, 0.0067864032462239265, -0.3308286964893341, -0.15690667927265167, -0.14612558484077454, 0.01083444245159626, -0.19759421050548553, -0.2436816692352295, -0.11174938827753067, -0.16281452775001526, 0.3664754033088684, 0.2997964918613434, -0.00012824333680327982, -0.15534037351608276, 0.07998766005039215, -0.13248774409294128, -0.15435875952243805, 0.3506380319595337, 0.09551143646240234, -0.5090034008026123, 0.08739770948886871, -0.3085874617099762, 0.17374294996261597, -0.402607798576355, -0.10413528978824615, -0.2626856863498688, 0.6798274517059326, -0.04057008773088455, 0.058134548366069794, -0.18769119679927826, 0.04524335637688637, 0.2361847162246704, 0.1947542130947113, -0.07821319252252579, -0.11307486891746521, 0.19380024075508118, 0.3574736714363098, 0.3629307150840759, -0.10653163492679596, 0.2919212877750397, 0.19148780405521393, -0.28000369668006897, 0.22275854647159576, -0.22580364346504211, 0.44734641909599304, 0.0007937407935969532, 0.22543221712112427, 0.3514634966850281, 0.5140764713287354, -0.17594674229621887, -0.06036151573061943, 0.0637940987944603, 0.4757849872112274, -0.2109965682029724, 0.017483854666352272, 0.28644996881484985, -0.026594925671815872, 0.05798718333244324, 0.04277001693844795, -0.6632641553878784, -0.335025429725647, -0.012956087477505207, 0.15660615265369415, -0.23247943818569183, -0.24347688257694244, -0.22689054906368256, 0.33950075507164, -0.23924753069877625, 0.029350372031331062, -0.06886123865842819, -0.18805447220802307, -0.030901730060577393, -0.17633748054504395, -0.2596205174922943, -0.7745301723480225, -0.17861638963222504, -0.07960466295480728, -0.23447653651237488, 0.6635516285896301, -0.07209943979978561, 0.16422300040721893, -0.007215993944555521, 0.1766318678855896, 0.35904988646507263, 0.014003625139594078, 0.20104707777500153, 0.07120217382907867, 0.0396769642829895, 0.017117885872721672, -0.16180722415447235, -0.5301883816719055, -0.03966321051120758, 0.1944209784269333, -0.3796877861022949, -0.32801955938339233, -0.031210022047162056, 0.3187503218650818, 0.1300542652606964, -0.33570554852485657, 0.22888344526290894, 0.029567008838057518, 0.04923662915825844, 0.10427819192409515, 0.31264057755470276, -0.020885128527879715, 0.04031714051961899, 0.054441872984170914, 0.001985474955290556, 0.039429035037755966, -0.13439571857452393, -0.07810317724943161, 0.02593977563083172, -0.02751142904162407, -0.2190253734588623, 0.26047730445861816, -0.353363573551178, -0.007757462095469236, -0.29648905992507935, 0.040807466953992844, -0.2585970163345337, 0.20160524547100067, -0.030253486707806587, 0.002541398396715522, 0.07522863894701004, -0.301402747631073, 0.1610337197780609, -0.12456010282039642, 0.3366653621196747, -0.4297153055667877, -0.1650012731552124, -0.3299640715122223, -0.017997566610574722, -0.10477215051651001, 0.17425191402435303, 0.0003860809374600649, 0.1255936324596405, 0.2257334440946579, -0.16612659394741058, 0.09931426495313644, -0.12966838479042053, 0.04940696433186531, -0.23124225437641144, 0.2432989925146103, -0.09237419068813324, -0.6731764078140259, -0.08575768768787384, -0.2777479887008667, 0.19207294285297394, 0.1400740146636963, 0.6400235891342163, -0.07441763579845428, -0.03220135718584061, 0.07835791260004044, 0.35849684476852417, 0.326030969619751, 0.06675344705581665, -0.4791612923145294, 0.1774735152721405, 0.22463858127593994, -0.07861826568841934, 0.10379824042320251, 0.22659561038017273, 0.1492665708065033, -0.06044457480311394, -0.22856679558753967, 0.0938982218503952, 0.15773816406726837, 0.03992399200797081, -0.19412124156951904, -0.347995787858963, -0.18740497529506683, -0.161600261926651, -0.3704378604888916, -0.556865930557251, -0.057317983359098434, 0.0993909165263176, 0.282531201839447, -0.22715981304645538, 0.2252303808927536, 0.4774554967880249, 0.1413951814174652, -0.07607121020555496, 0.3271080553531647, 0.14161698520183563, -0.002105157822370529, -0.12576286494731903, -0.36219337582588196, -0.5235089063644409, -0.17561373114585876, -0.1905725747346878, 0.029314791783690453, -0.1213264912366867, 0.09392539411783218, 0.15421392023563385, -0.08501064032316208, -0.4176623523235321, -0.16658750176429749, -0.19457361102104187, -0.12121757864952087, -0.1485397070646286, -0.16256499290466309, 0.04357505962252617, -0.00935434177517891, -0.0929436981678009, 0.03508709371089935, -0.26183274388313293, 0.1685754954814911, 0.04934711009263992, -0.2110937088727951, 0.03348518908023834, -0.2219131588935852, 0.16857731342315674, -0.1188393086194992, 0.47821322083473206, 0.07668828964233398, -0.15079918503761292, 0.023645637556910515, -0.5871307253837585, 0.5806169509887695, 0.10161962360143661, 0.16395410895347595, 0.1385890692472458, -0.4002934992313385, -0.2357889860868454, 0.16551090776920319, 0.08654729276895523, 0.11558428406715393, -0.20473162829875946, -0.15760578215122223, 0.02999372035264969, -0.19122464954853058, -0.20662593841552734, 0.011387523263692856, 0.25258591771125793, 0.30431026220321655, 0.2930156886577606, 0.13266029953956604, -0.2342449128627777, 0.3456525504589081, 0.012760262936353683, 0.1384349763393402, 0.5068284273147583, -0.5909453630447388, -0.3025442659854889, -0.001126802759245038, -0.11281875520944595, -0.0976119115948677, 0.1313309669494629, 0.06983274966478348, -0.169729545712471, 0.5162375569343567, -0.0031066362280398607, 0.39382895827293396, 0.2708297669887543, 0.5881364941596985, 0.24821560084819794, 0.013091578148305416, 0.12249962985515594, -0.16838438808918, 0.2059629261493683, -0.12365680187940598, -0.11461981385946274, -0.134330153465271, 0.14225037395954132, -0.36043602228164673, -0.19740134477615356, -0.18861787021160126, 0.08232709765434265, -0.032736439257860184, 0.050830256193876266, 0.2275567203760147, -0.2626124620437622, -0.09504789859056473, -0.17463786900043488, 0.15078091621398926, 0.3636555075645447, 0.19134940207004547, -0.01633492484688759, 0.20368240773677826, -0.05911993980407715, -0.11443683505058289, 0.013647885993123055, -0.0645950436592102, -0.13140559196472168, 0.04200346767902374, 0.04265875741839409, 0.10853663831949234, -0.14222219586372375, -0.14452296495437622, 0.08462730050086975, 0.008274649269878864, -0.2499077469110489, -0.12913192808628082, 0.001461863867007196, -0.7448281049728394, 0.12197190523147583, -0.27115365862846375, -0.10417286306619644, -0.21878893673419952, 0.07208571583032608, -0.1498141884803772, -0.05173105746507645, 0.14375516772270203, -0.1157073974609375, -0.028391847386956215, -0.1755823940038681, 0.29197829961776733, 0.034043602645397186, 0.13025851547718048, -0.07112336903810501, 0.3743301331996918, 0.24521900713443756, -0.003566400846466422, -0.018908465281128883, 0.21679580211639404, -0.3478163778781891, 0.48534783720970154, -0.024774156510829926, -0.22983230650424957, 0.000007884074875619262, 0.03391188755631447, 0.07554060220718384, 0.11556579172611237, -0.2431468963623047, 0.2363768219947815, -0.10750702023506165, -0.27256593108177185, -0.3093039393424988, 0.1789790689945221, 0.12444575130939484, -0.058327607810497284, -0.11500366032123566, 0.07736672461032867, 0.1102449968457222, 0.38351839780807495, 0.48833250999450684, 0.5294559597969055, -0.13332054018974304, -0.2417299896478653, 0.04226670786738396, 0.3603094220161438, 0.6346896886825562, 0.12090367078781128, 0.1444973647594452, 0.2817269265651703, 0.1929071992635727, 0.039198894053697586, 0.4585179388523102, -0.10666236281394958, 0.05483897775411606, 0.16236615180969238, 0.28481003642082214, 0.46916526556015015, 0.1828644573688507, 0.44998788833618164, -0.5186040997505188, -0.03674213960766792, -0.1853715032339096, 0.4856637716293335, -0.39741450548171997, 0.38093772530555725, -0.1953451782464981, -0.2994418144226074, 0.08462979644536972, -0.23049205541610718, 0.007098734378814697, -0.09645173698663712, 0.2605327367782593, 0.045174069702625275, 0.26620224118232727, -0.14173340797424316, -0.48900526762008667, 0.15820810198783875, 0.13105778396129608, -0.24406558275222778, 0.1971672922372818, 0.047418102622032166, 0.15484577417373657, -0.02011742629110813, -0.04140327870845795, 0.13159212470054626, -0.3944898843765259, -0.08632642775774002, 0.1839594841003418, -0.4335392415523529, 0.2960476875305176, -0.06947030872106552, -0.016488738358020782, 0.02420571818947792, 0.1298885941505432, -0.1280742883682251, -0.08045706152915955, -0.0356767475605011, 0.49607327580451965, -0.2424962818622589, 0.018064085394144058, -0.048943258821964264, 0.10101184248924255, -0.4381713271141052, -0.08984695374965668, 0.10292849689722061, 0.048927828669548035, 0.302579790353775, -0.41520658135414124, -0.09375222772359848, -0.28964078426361084, 0.033267732709646225, 0.036753151565790176, 0.6221724152565002, -0.31887710094451904, -0.041837144643068314, 0.09824050217866898, 0.12287594377994537, 0.23508909344673157, 0.17149843275547028, 0.13393694162368774, -0.21763822436332703, 0.021334446966648102, -0.1492292881011963, 0.4313940107822418, 0.2597910165786743, -0.2377803474664688, -0.05893420800566673, 0.10891295224428177, 0.07413343340158463, 0.17574922740459442, -0.1656113713979721, 0.08665541559457779, 0.18176047503948212, -0.19171719253063202, 0.23767396807670593, -0.006408097688108683, 0.22625350952148438, 0.12447701394557953, 0.14281542599201202, 0.32528096437454224, 0.07123970985412598, 0.4024210572242737, 0.31040817499160767, 1.0934168100357056, -0.12878182530403137, 0.287845253944397, -0.18552443385124207, -0.03148235008120537, 0.16772966086864471, -0.0775815024971962, 0.2207028716802597, -0.050724901258945465, 0.13509126007556915, 0.04890856891870499, -0.011002709157764912, 0.037684570997953415, 0.09352882206439972, -0.40082329511642456, 0.14166513085365295, -0.24950772523880005, -0.34550169110298157, -0.28023961186408997, 0.2644985616207123, -0.011948213912546635, -0.30631715059280396, -0.16144415736198425, -0.05568423122167587, 0.03255370259284973, -0.1607535034418106, 0.09738418459892273, -0.04657356068491936, -0.22763356566429138, -0.07407829910516739, -0.0539509542286396, 0.03793768957257271, -0.21119089424610138, 0.10524769127368927, -0.20010988414287567, -0.503357470035553, 0.32862064242362976, 0.386014461517334, -0.17740322649478912, 0.15047524869441986, -0.09881452471017838, 0.18095853924751282, 0.02299990877509117, -0.2624504566192627, -0.0634007379412651, -0.1264546662569046, -0.1668701469898224, -0.1170617938041687, 0.1283903419971466, 0.03394884616136551, 0.09108176827430725, -0.2994738817214966, 0.584202229976654, -0.20785638689994812, 0.5878832340240479, 0.09705906361341476, -0.10306413471698761, -0.11625200510025024, -0.5892647504806519, -0.00962737575173378, 0.03824210166931152, 0.3565509617328644, 0.18283937871456146, 0.18422919511795044, 0.4391723573207855, -0.16127294301986694, 0.1305132508277893, 0.07401227951049805, 0.38579872250556946, -0.012079251930117607, 0.7654308676719666, -0.19273728132247925, -0.16421079635620117, -0.26334336400032043, 0.2644883692264557, -0.08467201143503189, -0.47236892580986023, 0.34654662013053894, -0.06001143157482147, -0.24791745841503143, -0.07457046210765839, 0.20442166924476624, 0.23022450506687164, 0.08355610072612762, -0.43693792819976807, 0.01628376543521881, -0.4646856188774109, 0.3239002227783203, -0.1200573518872261, 0.2729882597923279, -0.004106387961655855, -0.3141970634460449, -0.018618173897266388, 0.33332088589668274, -0.11241079866886139, 0.32768023014068604, 0.008406064473092556, 0.07496269792318344, -0.1830725520849228, 0.04973118007183075, 0.10535416007041931, -0.2597885727882385, -0.08919815719127655, 0.3804854452610016, 0.14719998836517334, -0.10427209734916687, -0.19402477145195007, 0.1854439526796341, -0.10577816516160965, -0.03358959034085274, 0.029096528887748718, -0.31541332602500916, -0.10444607585668564, -0.2183835655450821, -0.19828593730926514, -0.28354254364967346, 0.291559100151062, -0.31415292620658875, -0.003091799560934305, -0.20737624168395996, -0.18132862448692322, 0.1156785860657692, 0.12847544252872467, 0.30494919419288635, 0.037166718393564224, 0.06126471236348152, 0.19112393260002136, -0.31397128105163574, -0.3012058436870575, 0.1760336011648178, 0.4389146864414215, 0.09999001026153564, 0.11993256211280823, 0.25177231431007385, -0.20747102797031403, -0.24156685173511505, -0.1788194626569748, 0.1889978051185608, -0.06644352525472641, -0.06809984147548676, 0.21183167397975922, -0.017542585730552673, -0.16198767721652985, -0.15444119274616241, -0.23562803864479065, -0.40703848004341125, -0.5107863545417786, -0.05058855190873146, 0.09153017401695251, 0.24923089146614075, -0.20557039976119995, -0.022574497386813164, -0.31799325346946716, 0.11004162579774857, 0.109567791223526, 0.33194878697395325, 0.22893738746643066, -0.09584631770849228, 0.049847446382045746, -0.08748909831047058, 0.5122185945510864, -0.01793230138719082, -0.3362058103084564, -0.04266967996954918, 0.6188859939575195, 0.3766670227050781, 0.05902048572897911, 0.10076333582401276, -0.13439403474330902, 0.17746596038341522, 0.21420259773731232, 0.23799681663513184, 0.239505335688591, 0.6591513156890869, 0.3992859423160553, -0.08307446539402008, -0.15819059312343597, 0.19431261718273163, -0.12055616080760956, -0.03828302398324013, 0.04329455643892288, 0.09451058506965637, 0.01096272375434637, 0.03420751169323921, -0.3181348145008087, 0.08442322164773941, 0.04973277449607849, 0.40670228004455566, 0.12382406741380692, 0.028505543246865273, 0.18041753768920898, 0.05697542428970337, 0.331037312746048, -0.20362654328346252, 0.08313287049531937, -0.10413533449172974, 0.27972057461738586, -0.17392079532146454, 0.3154940903186798, 0.16876406967639923, -0.007606722880154848, 0.19977214932441711, 0.18973644077777863, 0.2928085923194885, 0.025732416659593582, 0.11262070387601852, -0.23407205939292908, 0.501530647277832, -0.11012206971645355, -0.03845541551709175, -0.04517436772584915, -0.020372683182358742, -0.08145693689584732, -0.01597137562930584, 0.1981268972158432, 0.028814731165766716, -0.1625746339559555, 0.06185690313577652, -0.2549835443496704, -0.3699812889099121, -0.11744201928377151, -0.14369477331638336, 0.4433271586894989, 0.1981666386127472, -0.15358535945415497, -0.17861667275428772, 0.004129287786781788, -0.022522296756505966, -0.26838165521621704, 0.5162474513053894, 0.2965542674064636, -0.20516283810138702, -0.0771104097366333, -0.27993619441986084, -0.20560365915298462, 0.02792673371732235, -0.12773576378822327, 0.13986223936080933, 0.21906419098377228, 0.2399235963821411, 0.0545039139688015, 0.27731946110725403, 0.3435635566711426, 0.09854985773563385, -0.3065311312675476, -0.058289095759391785, -0.19809851050376892, 0.04256502911448479, 0.6677460074424744, 0.16456590592861176, 0.1425885707139969, -0.2501246929168701, 0.1892295926809311, 0.2020077258348465, -0.16479431092739105, 0.12942835688591003, -0.17725412547588348, -0.12512777745723724, 0.13885276019573212, 0.5862314701080322, -0.11961553990840912, -0.3609248101711273, -0.120613694190979, -0.163519486784935, 0.18639019131660461, 0.2066582441329956, -0.015958037227392197, 0.17907525599002838, 0.40321215987205505, 0.23696927726268768, -0.398357093334198, 0.24443751573562622, 0.006342104636132717, -0.10690560936927795, -0.16950979828834534, -0.08912382274866104, -0.04455432668328285, -0.04497174546122551, 0.1237533837556839, 0.2627575099468231, 0.05137501284480095, 0.1132616251707077, -0.2934114336967468, -0.335219144821167, -0.2135387659072876, -0.10423360764980316, 0.2608753740787506, 0.3320409059524536, 0.10468144714832306, 0.2116069495677948, 0.2618836760520935, 0.7541182041168213, 0.12688647210597992, -0.714234471321106, 0.22707924246788025, 0.1679457426071167, 0.03547602891921997, -0.13942405581474304, 0.24233275651931763, -0.09895558655261993, 0.18499453365802765, -0.10645425319671631, 0.6509244441986084, -0.003363243071362376, -0.09710247814655304, -0.45381003618240356, -0.47358953952789307 ]
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.2821941673755646, 0.10543859750032425, 0.03263689577579498, 0.24390944838523865, 0.19000564515590668, 0.1799180507659912, 0.13333989679813385, 0.04128914326429367, -0.14447295665740967, 0.04415304586291313, -0.01413643080741167, -0.07569506764411926, -0.06875327229499817, 0.3853101134300232, 0.08387623727321625, -0.17096172273159027, 0.044291768223047256, 0.016357770189642906, 0.04713205620646477, 0.09969379007816315, -0.22753272950649261, 0.600468099117279, -0.3060179650783539, 0.020468400791287422, -0.31629231572151184, -0.0214893389493227, -0.16066350042819977, 0.3630985915660858, -0.18690718710422516, -0.3998728096485138, 0.6071945428848267, -0.07123049348592758, 0.2232360690832138, 0.5504926443099976, -0.00011021999671356753, 0.060815636068582535, 0.41069215536117554, -0.14009656012058258, -0.2848299741744995, -0.5453564524650574, 0.2669922411441803, -0.21122963726520538, 0.21293488144874573, 0.1392677128314972, -0.16716840863227844, -0.38747474551200867, 0.20789317786693573, -0.057245977222919464, 0.3217262923717499, 0.08583512902259827, 0.19367919862270355, 0.334968239068985, 0.21892821788787842, -0.18601827323436737, -0.10067172348499298, 0.42172500491142273, -0.2878890931606293, 0.507881224155426, 0.3055495619773865, -0.4217505156993866, 0.12467534095048904, 0.19895441830158234, -0.031439825892448425, -0.005937163718044758, 0.37513023614883423, -0.0012230026768520474, 0.05010666698217392, -0.2876364290714264, 0.10676450282335281, 0.3626168966293335, 0.6539997458457947, -0.37356895208358765, -0.5450146794319153, -0.18335366249084473, 0.10103680938482285, -0.08469707518815994, 0.241241917014122, 0.2746935486793518, -0.23947197198867798, 0.13926976919174194, -0.15002481639385223, -0.11605953425168991, -0.1332205981016159, 0.22483985126018524, -0.10420696437358856, -0.16514675319194794, -0.2865084409713745, 0.035623930394649506, 0.0348377451300621, -0.22215056419372559, -0.15960000455379486, 0.12802313268184662, -0.22682274878025055, 0.2955127954483032, -0.28549110889434814, 0.10194902867078781, 0.015547681599855423, 0.22542618215084076, 0.1659238487482071, -0.21292154490947723, 0.02814938873052597, -0.049058374017477036, -0.0764419212937355, 0.15991181135177612, 0.24911515414714813, 0.10459408909082413, 0.32804280519485474, 0.01667281799018383, 0.0025240860413759947, 0.45323631167411804, -0.06477268040180206, -0.22193217277526855, -0.09025807678699493, -0.146000936627388, -0.45282429456710815, -0.29335883259773254, 0.4718650281429291, -0.30325791239738464, -0.38782432675361633, -0.10834453999996185, -0.18742139637470245, 0.03749461844563484, 0.07710687071084976, 0.4981045722961426, 0.012154304422438145, 0.15392839908599854, 0.015574656426906586, 0.30061665177345276, -0.25794923305511475, 0.10186014324426651, -0.2480655461549759, 0.005653340369462967, -0.03198465332388878, 0.13716602325439453, 0.2997519075870514, -0.3352172076702118, 0.39408209919929504, -0.028887992724776268, -0.061646685004234314, 0.1528022587299347, -0.006292207632213831, 0.09569565951824188, -0.20000138878822327, 0.22495879232883453, -0.12317363917827606, 0.030555296689271927, 0.25137272477149963, -0.003911216743290424, -0.06306938081979752, -0.06099533289670944, -0.14913077652454376, -0.2974417209625244, -0.03988776355981827, 0.14900368452072144, -0.10698874294757843, -0.20646192133426666, -0.07543664425611496, 0.18058738112449646, 0.01283797062933445, -0.12774330377578735, -0.08843175321817398, 0.06612168997526169, -0.004902802407741547, -0.09034935384988785, 0.20247182250022888, 0.6703972220420837, -0.2659664452075958, -0.32236573100090027, 0.06657388061285019, -0.20626300573349, -0.0020017623901367188, 0.20517848432064056, -0.25989001989364624, 0.0763847678899765, -0.2033911496400833, -0.13997353613376617, 0.05941076949238777, -0.4468628764152527, -0.21692807972431183, 0.24210341274738312, -0.055259641259908676, 0.4091366231441498, 0.025211168453097343, -0.05291081964969635, -0.08843474090099335, -0.19378969073295593, 0.11790959537029266, 0.2477215826511383, 0.04141111671924591, -0.1807469129562378, -0.07693872600793839, -0.17321132123470306, 0.16435235738754272, 0.2965081036090851, -0.2560913860797882, 0.07532328367233276, 0.1443372219800949, -0.18223470449447632, 0.1934352070093155, -0.023951707407832146, -0.07918457686901093, 0.292322039604187, 0.2021278291940689, 0.12441253662109375, 0.08606109023094177, 0.19877192378044128, -0.5315403938293457, 0.27514898777008057, -0.28635653853416443, -0.03498309105634689, -0.1951935887336731, -0.0762915164232254, -0.10199392586946487, 0.07273674011230469, -0.34768107533454895, -0.3338474929332733, 0.03030245192348957, 0.22317270934581757, 0.0510655902326107, 0.10070852935314178, -0.37038454413414, 0.364774227142334, -0.21497070789337158, 0.17424650490283966, -0.5457678437232971, 0.01985124871134758, 0.05909260734915733, -0.10952036082744598, 0.1224965751171112, 0.24372707307338715, 0.05300094932317734, -0.24648089706897736, 0.08971556276082993, 0.4100804626941681, -0.2697845697402954, 0.4130953848361969, 0.053389087319374084, 0.002411534311249852, 0.18783730268478394, -0.3031233251094818, 0.14049561321735382, -0.0539187416434288, 0.04285375028848648, 0.009165721014142036, -0.09333925694227219, 0.22324997186660767, -0.14762336015701294, 0.36390990018844604, 0.03492850437760353, 0.18853867053985596, 0.2245209515094757, 0.083920419216156, -0.20382541418075562, -0.23475302755832672, 0.4341813325881958, -0.1314285397529602, 0.3960669934749603, -0.09287308156490326, -0.3104822039604187, 0.019738486036658287, 0.13951784372329712, 0.10801509767770767, -0.06247398629784584, 0.06291436403989792, -0.3400149345397949, 0.12289877235889435, 0.08733721822500229, -0.14928139746189117, 0.40340790152549744, 0.12853777408599854, -0.08788377791643143, 0.1276680827140808, -0.015185222961008549, -0.3860318660736084, 0.17122012376785278, 0.03589065000414848, -0.28869763016700745, 0.030272966250777245, 0.09782318770885468, 0.018704628571867943, -0.36142390966415405, 0.12839651107788086, -0.012185541912913322, 0.08790933340787888, -0.29804474115371704, 0.2551463842391968, -0.07762684673070908, -0.3964504301548004, -0.11996965855360031, -0.4994737207889557, -0.2983437478542328, -0.22586414217948914, -0.13542413711547852, 0.11348674446344376, -0.026937566697597504, 0.2017490118741989, 0.30732372403144836, 0.06790557503700256, -0.23411771655082703, -0.1906662881374359, -0.07233253121376038, -0.23395897448062897, -0.18846537172794342, 0.09553807228803635, 0.29676833748817444, -0.11695439368486404, 0.24038176238536835, -0.39853498339653015, 0.0019972815643996, -0.287636935710907, -0.27068889141082764, 0.10073938965797424, -0.28632527589797974, 0.42848363518714905, 0.01297199446707964, 0.22014594078063965, -0.08363228291273117, 0.023071637377142906, 0.4398590624332428, -0.022172581404447556, -0.131808340549469, 0.17796964943408966, -0.18674629926681519, -0.13512204587459564, -0.14101234078407288, -0.19607116281986237, -0.3078113794326782, -0.4054518938064575, 0.3266364336013794, 0.052409373223781586, -0.13964182138442993, 0.6374395489692688, -0.00491780461743474, 0.11098218709230423, -0.4007158577442169, 0.06911706179380417, -0.03324484825134277, -0.5922867059707642, 0.23850634694099426, -0.30088990926742554, -0.28147178888320923, 0.30230823159217834, 0.18878424167633057, 0.15275736153125763, 0.21652261912822723, -0.4129437208175659, -0.18287618458271027, 0.020898381248116493, 0.05962380766868591, 0.12382424622774124, 0.11983710527420044, 0.26800987124443054, -0.168914794921875, 0.05834236368536949, 0.0049577741883695126, -0.16306164860725403, 0.0573049820959568, -0.09543060511350632, 0.29945048689842224, -0.1553693413734436, 0.4328053295612335, -0.09932064265012741, 0.5152158141136169, 0.4010256230831146, 0.08935084939002991, 0.4676297605037689, -0.057461217045784, 0.553374707698822, -0.19131998717784882, -0.38684871792793274, 0.1434224396944046, 0.008640866726636887, 0.2190767526626587, 0.25480127334594727, 0.10879979282617569, 0.22400452196598053, -0.28822165727615356, -0.23322424292564392, -0.17902466654777527, -0.1051180362701416, -0.0885651558637619, -0.22266332805156708, 0.559824526309967, 0.04229611158370972, 0.18394853174686432, 0.117295041680336, -0.17119693756103516, 0.07927035540342331, 0.4047602117061615, 0.3063104748725891, 0.15322381258010864, 0.08551919460296631, -0.02055002562701702, -0.575006902217865, 0.2002400904893875, -0.10059747844934464, 0.2336290180683136, -0.14937371015548706, -0.09454744309186935, 0.07582494616508484, -0.05333007127046585, 0.5612577795982361, 0.16974583268165588, -0.2268664389848709, 0.08169174939393997, -0.09930205345153809, -0.7485930919647217, -0.0011175419203937054, 0.07118742167949677, 0.5246650576591492, -0.2983511984348297, 0.45509982109069824, -0.3250734210014343, -0.10377684980630875, -0.0049164434894919395, 0.28011518716812134, -0.028797749429941177, -0.2050735354423523, -0.4159327447414398, -0.15266484022140503, -0.32118237018585205, -0.13928230106830597, -0.20789246261119843, 0.28485122323036194, 0.05002656951546669, 0.1092008426785469, -0.02337772771716118, -0.08250783383846283, 0.1994093358516693, 0.19007863104343414, 0.346650630235672, -0.11188452690839767, 0.3190786838531494, 0.372834175825119, 0.18101193010807037, 0.18777602910995483, 0.7771444916725159, 0.1504335254430771, -0.638733983039856, -0.1201397255063057, 0.19998376071453094, 0.15083542466163635, 0.24160782992839813, -0.03574885427951813, 0.006625698413699865, 0.13594885170459747, -0.15263232588768005, -0.33395934104919434, -0.030099261552095413, 0.21431653201580048, -0.07884761691093445, -0.2795940935611725, -0.19930827617645264, 0.5535471439361572, -0.14648257195949554, 0.22645500302314758, 0.15385133028030396, 0.19674089550971985, -0.0732811838388443, 0.0016761746956035495, -0.15735985338687897, 0.6390524506568909, -0.040312740951776505, 0.17482538521289825, 0.3679141402244568, 0.1531427502632141, 0.2759173810482025, -0.017312660813331604, 0.025616437196731567, -0.32308661937713623, 0.2338576763868332, -0.05831918120384216, -0.15537776052951813, 0.25953158736228943, 0.02562079392373562, -0.18122245371341705, 0.3464081883430481, -0.038285672664642334, 0.2396203875541687, 0.034795887768268585, 0.12209346145391464, -0.27810341119766235, -0.27708426117897034, -0.4702244997024536, 0.12313968688249588, 0.04213699698448181, 0.3807189464569092, -0.23014527559280396, -0.06410930305719376, 0.006954874377697706, -0.06811049580574036, -0.1549338549375534, 0.10490496456623077, -0.4039306938648224, -0.03937425836920738, 0.41028183698654175, -0.4239167273044586, 0.13260391354560852, 0.3218359649181366, 0.29660657048225403, -0.15431256592273712, -0.4461571276187897, 0.2538774013519287, -0.329298198223114, -0.40462425351142883, 0.08336352556943893, -0.06100902333855629, 0.16300560534000397, -0.015095478855073452, 0.05073181167244911, 0.1275262087583542, -0.11748560518026352, -0.018388468772172928, -0.18438836932182312, -0.0077185058034956455, -0.06758271902799606, -0.1112007275223732, -0.21887587010860443, -0.1859842836856842, 0.25086021423339844, -0.10362081974744797, 0.1100483387708664, 0.2406914234161377, -0.05879046395421028, -0.19244180619716644, -0.2930651605129242, -0.1108546331524849, -0.17387312650680542, 0.20273973047733307, -0.3240357041358948, 0.0001271846704185009, 0.5568035840988159, 0.39613133668899536, 0.07189741730690002, -0.07728136330842972, -0.16106565296649933, 0.3245156407356262, -0.4137248694896698, 0.10496935993432999, 0.544344961643219, 0.12437368184328079, 0.11509998142719269, 0.597267210483551, 0.008531969971954823, -0.4886220097541809, -0.03765309602022171, -0.38218408823013306, -0.40045714378356934, 0.3767903745174408, -0.03922378644347191, -0.0035055684857070446, 0.10438796877861023, 0.36388057470321655, 0.14849621057510376, -0.10867294669151306, -0.2812004089355469, 0.014461071230471134, 0.02609044313430786, 0.06659595668315887, 0.3481180667877197, 0.08312342315912247, 0.26031598448753357, 0.12968818843364716, 0.05480904132127762, 0.05856718868017197, -0.15103353559970856, -0.1564384251832962, 0.06369252502918243, 0.10974045097827911, 0.08390632271766663, -0.12602859735488892, 0.030984485521912575, -0.09641551971435547, -0.16209104657173157, -0.2794073522090912, 0.2913075387477875, 0.12935352325439453, -0.04185786098241806, 0.048165448009967804, -0.03098261170089245, 0.20610706508159637, -0.10048799216747284, 0.12863129377365112, -0.003709654090926051, 0.13892123103141785, 0.06461144238710403, -0.158898264169693, -0.27914193272590637, -0.06995043158531189, 0.1689424067735672, 0.18857844173908234, 0.018846306949853897, 0.0642792209982872, 0.22250476479530334, -0.24091766774654388, 0.080842524766922, 0.088044673204422, 0.11944352090358734, 0.3508828282356262, -0.2469252496957779, 0.2167237550020218, 0.14720995724201202, 0.12624841928482056, -0.20349131524562836, -0.0014669977826997638, -0.1817888468503952, 0.14710287749767303, -0.014710744842886925, 0.06560993939638138, 0.19217512011528015, -0.15251664817333221, 0.101633220911026, 0.16483613848686218, 0.25515061616897583, 0.029160896316170692, 0.21118409931659698, -0.018463553860783577, 0.08264193683862686, 0.012167604640126228, 0.1049647107720375, 0.10063179582357407, 0.28943490982055664, 0.26161524653434753, -0.3571735620498657, -0.03594014421105385, -0.10557391494512558, 0.27497920393943787, -0.050070054829120636, -0.4363557994365692, -0.009242861531674862, -0.010962331667542458, 0.23462167382240295, 0.055012043565511703, -0.2336060255765915, 0.6237165927886963, -0.3811261057853699, 0.20543090999126434, -0.2912209630012512, 0.07957051694393158, -0.15037530660629272, -0.19136740267276764, -0.019743787124753, -0.16615469753742218, 0.19800347089767456, -0.07514094561338425, -0.18107369542121887, -0.2111656367778778, 0.060777172446250916, -0.09838307648897171, -0.16947077214717865, -0.42213812470436096, 0.12171068787574768, 0.39712557196617126, 0.05506967380642891, -0.039987705647945404, 0.522487461566925, 0.29199132323265076, -0.07469163835048676, 0.262592077255249, 0.4273848235607147, 0.541892945766449, 0.1653062254190445, -0.08316456526517868, 0.23541319370269775, -0.3207215964794159, -0.10763709992170334, 0.08704660832881927, 0.33707287907600403, -0.1440216302871704, 0.1476307511329651, 0.21056491136550903, 0.1527603417634964, -0.08159006386995316, -0.07995564490556717, -0.013794639147818089, 0.43284091353416443, -0.3931144177913666, 0.091745525598526, -0.5244233012199402, 0.06563856452703476, -0.22229377925395966, 0.14472220838069916, -0.5138547420501709, 0.12624017894268036, 0.18071690201759338, 0.16175134479999542, -0.16037702560424805, -0.16510534286499023, 0.07189255952835083, -0.040266551077365875, 0.48895537853240967, 0.5259316563606262, 0.2498772144317627, -0.16651439666748047, -0.31996843218803406, -0.712363600730896, 0.06421438604593277, -0.0689871683716774, 0.021506333723664284, 0.01602569781243801, 0.18567410111427307, 0.14658814668655396, 0.16422832012176514, -0.14593560993671417, 0.23766319453716278, 0.028610724955797195, -0.2953656315803528, -0.21879833936691284, -0.23168078064918518, -0.0019513573497533798, -0.053266335278749466, -0.060799721628427505, 0.03912653028964996, 0.084223672747612, -0.1931593120098114, -0.052538592368364334, -0.08143452554941177, 0.023145638406276703, 0.026958269998431206, -0.33415767550468445, 0.25521430373191833, 0.037440091371536255, -0.08598198741674423, 0.08706797659397125, -0.2809712290763855, -0.4722720682621002, -0.37703245878219604, -0.08239715546369553, 0.2043827772140503, -0.11286992579698563, 0.4890660345554352, -0.3747425675392151, -0.11706533282995224, -0.21433143317699432, 0.1286315768957138, 0.05705295875668526, -0.0012539966264739633, -0.13212133944034576, 0.2001541703939438, 0.009750768542289734, -0.0023390944115817547, 0.08580231666564941, 0.4958350360393524, 0.05868528410792351, 0.06483898311853409, -0.2739216685295105, -0.2833627462387085, 0.49153968691825867, -0.3666212856769562, -0.0029919231310486794, 0.29700782895088196, 0.06307539343833923, 0.06212332844734192, -0.22944967448711395, -0.7798353433609009, 0.363675981760025, 0.23817695677280426, 0.1048707515001297, -0.037592221051454544, 0.07241498678922653, 0.00009167248208541423, 0.077113077044487, -0.14794954657554626, 0.22189266979694366, 0.19365985691547394, 0.009502628818154335, 0.2759425938129425, 0.04318651184439659 ]
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.2199556827545166, 0.048009131103754044, 0.06081907078623772, 0.31242308020591736, 0.19409339129924774, 0.15179727971553802, 0.14009909331798553, 0.02116267941892147, -0.119765505194664, 0.07513239234685898, 0.006081786938011646, -0.10550092905759811, -0.028470687568187714, 0.32878392934799194, 0.11288224905729294, -0.17496386170387268, 0.08489342033863068, 0.000028143702365923673, -0.013289716094732285, 0.10112956911325455, -0.24777880311012268, 0.5799881219863892, -0.3045034408569336, 0.049543123692274094, -0.3111802041530609, 0.040093179792165756, -0.18272067606449127, 0.41434359550476074, -0.13449881970882416, -0.3618732690811157, 0.5955125093460083, -0.09017620235681534, 0.16288691759109497, 0.5966639518737793, -0.00011595906835282221, 0.08450121432542801, 0.3932446539402008, -0.12010865658521652, -0.2960398495197296, -0.5694479942321777, 0.26160958409309387, -0.1980762928724289, 0.2148331254720688, 0.13696998357772827, -0.13914315402507782, -0.380994975566864, 0.20642413198947906, -0.015643959864974022, 0.3636643588542938, 0.031105736270546913, 0.150289848446846, 0.35515928268432617, 0.19134508073329926, -0.19607773423194885, -0.12323273718357086, 0.4534870386123657, -0.2778141498565674, 0.5499461889266968, 0.3091154396533966, -0.430893212556839, 0.09272170811891556, 0.16599148511886597, -0.07540285587310791, -0.05367555096745491, 0.3975498080253601, -0.024482963606715202, 0.03166332468390465, -0.2200988382101059, 0.12943044304847717, 0.3337745666503906, 0.5657200217247009, -0.37665730714797974, -0.5654234886169434, -0.25165221095085144, 0.08289807289838791, -0.0521906316280365, 0.3052116334438324, 0.20500579476356506, -0.2722260057926178, 0.14637263119220734, -0.20359955728054047, -0.17536993324756622, -0.12672573328018188, 0.19358569383621216, -0.11127272993326187, -0.24348872900009155, -0.29494795203208923, 0.04355907812714577, 0.07194516807794571, -0.19504806399345398, -0.16173623502254486, 0.05340518802404404, -0.23845252394676208, 0.27822238206863403, -0.25449541211128235, 0.11044472455978394, 0.009540360420942307, 0.2557696998119354, 0.15535485744476318, -0.23424267768859863, 0.035967908799648285, -0.06223681569099426, -0.08567303419113159, 0.1938936561346054, 0.27933549880981445, 0.14823557436466217, 0.35744979977607727, -0.025305813178420067, -0.009560853242874146, 0.4405899941921234, -0.06953053921461105, -0.20829643309116364, -0.07651466131210327, -0.16826152801513672, -0.45917415618896484, -0.32558518648147583, 0.43185320496559143, -0.30579498410224915, -0.40527230501174927, -0.07225378602743149, -0.239760160446167, 0.08622236549854279, 0.13741421699523926, 0.4865342080593109, 0.008157383650541306, 0.15827390551567078, 0.0058748372830450535, 0.28659793734550476, -0.26451510190963745, 0.08715106546878815, -0.24189728498458862, -0.0022807708010077477, -0.06938649713993073, 0.15701481699943542, 0.239871546626091, -0.3612261712551117, 0.38717901706695557, -0.01759139634668827, -0.04497354477643967, 0.08161012828350067, -0.0984741672873497, 0.10817986726760864, -0.2023356854915619, 0.2186918556690216, -0.16243882477283478, 0.03172881901264191, 0.2772153317928314, -0.0326877124607563, -0.05549559369683266, -0.062233343720436096, -0.1377474069595337, -0.30227887630462646, -0.01047892402857542, 0.10691320151090622, -0.09468024969100952, -0.16991858184337616, -0.11256531625986099, 0.15767166018486023, -0.013035610318183899, -0.19913709163665771, -0.07389969378709793, 0.07068809121847153, 0.010617144405841827, -0.07341005653142929, 0.24542967975139618, 0.7580018639564514, -0.20567010343074799, -0.31255853176116943, 0.07113797217607498, -0.18935084342956543, 0.00014848749560769647, 0.2615227997303009, -0.23175117373466492, 0.06809836626052856, -0.25314199924468994, -0.1607619673013687, 0.09355130046606064, -0.446841835975647, -0.19557617604732513, 0.27993905544281006, -0.05560392141342163, 0.45672106742858887, 0.05812372267246246, -0.08012441545724869, -0.12731009721755981, -0.24143928289413452, 0.12309647351503372, 0.18933264911174774, 0.024409480392932892, -0.20651736855506897, -0.0782095193862915, -0.15715576708316803, 0.12860700488090515, 0.2847897410392761, -0.2935614287853241, 0.07722052931785583, 0.14565922319889069, -0.16466978192329407, 0.13157474994659424, -0.01659967005252838, -0.13602016866207123, 0.28496691584587097, 0.14097385108470917, 0.13292910158634186, 0.018208405002951622, 0.2053835690021515, -0.5579429864883423, 0.28824013471603394, -0.2570720613002777, -0.08205939829349518, -0.16592535376548767, -0.0840725526213646, -0.07733162492513657, 0.09831476956605911, -0.33955714106559753, -0.32176798582077026, -0.012640182860195637, 0.20454134047031403, 0.01943344436585903, 0.14643000066280365, -0.3868185579776764, 0.3574387729167938, -0.24727116525173187, 0.20671790838241577, -0.5592116117477417, -0.03028729371726513, 0.07477064430713654, -0.11336351931095123, 0.03758940100669861, 0.2636689841747284, 0.09724791347980499, -0.24822057783603668, 0.09323212504386902, 0.45936155319213867, -0.2942503094673157, 0.44029319286346436, 0.019773975014686584, -0.038360174745321274, 0.23089566826820374, -0.24252469837665558, 0.04964247718453407, -0.05453423783183098, -0.009617773815989494, 0.009319390170276165, -0.11851952970027924, 0.1728493571281433, -0.13329200446605682, 0.40735068917274475, 0.04596273601055145, 0.18105849623680115, 0.17978307604789734, 0.06619821488857269, -0.1818440556526184, -0.22937077283859253, 0.49124598503112793, -0.11801822483539581, 0.4162692129611969, -0.0020721103064715862, -0.3156048655509949, -0.01753583364188671, 0.137881338596344, 0.06924062222242355, -0.053950581699609756, 0.07907364517450333, -0.30967453122138977, 0.12290996313095093, 0.11918958276510239, -0.14013662934303284, 0.369949609041214, 0.09570280462503433, -0.08479012548923492, 0.15238866209983826, -0.05095022916793823, -0.39680641889572144, 0.20814284682273865, 0.021549561992287636, -0.3026603162288666, 0.04898584261536598, 0.06660216301679611, 0.036916665732860565, -0.3345049023628235, 0.09313158690929413, -0.0384073480963707, 0.046037353575229645, -0.33747637271881104, 0.2550663650035858, -0.10034152120351791, -0.41446492075920105, -0.156996488571167, -0.45900759100914, -0.32204940915107727, -0.21677780151367188, -0.14217878878116608, 0.19984525442123413, -0.055711764842271805, 0.18324141204357147, 0.31348082423210144, 0.08836629986763, -0.27056726813316345, -0.22839725017547607, -0.10646066814661026, -0.1779918074607849, -0.20534081757068634, 0.022298138588666916, 0.36766013503074646, -0.14731541275978088, 0.22599560022354126, -0.4360031187534332, -0.07156048715114594, -0.2555087208747864, -0.21752838790416718, 0.1356736421585083, -0.21515372395515442, 0.4311250150203705, 0.04412779584527016, 0.19513921439647675, -0.10989920794963837, -0.005535794422030449, 0.5068668127059937, 0.04205383360385895, -0.15800251066684723, 0.20778141915798187, -0.1208445280790329, -0.11335382610559464, -0.15437813103199005, -0.10718370974063873, -0.23484677076339722, -0.422606885433197, 0.3171221911907196, -0.04506051540374756, -0.11614590883255005, 0.6448132991790771, 0.03878561407327652, 0.14227652549743652, -0.46841543912887573, 0.08476743847131729, 0.00910787284374237, -0.5962813496589661, 0.21819880604743958, -0.23055142164230347, -0.23289507627487183, 0.259184867143631, 0.24474996328353882, 0.07690329104661942, 0.26772674918174744, -0.3939244747161865, -0.2405208945274353, 0.06836992502212524, 0.04625152796506882, 0.11191774904727936, 0.15607577562332153, 0.24833384156227112, -0.13630817830562592, 0.07559432089328766, 0.04320701211690903, -0.15722490847110748, 0.09813599288463593, -0.1003497764468193, 0.3137182295322418, -0.15382851660251617, 0.45821845531463623, -0.10050924867391586, 0.5343389511108398, 0.4117763340473175, 0.09670597314834595, 0.4817897379398346, -0.026451854035258293, 0.5818588137626648, -0.24759861826896667, -0.4075131118297577, 0.09397232532501221, 0.017918433994054794, 0.1671093851327896, 0.22580888867378235, 0.14076100289821625, 0.28469449281692505, -0.3021673560142517, -0.30929529666900635, -0.18816429376602173, -0.12357194721698761, -0.08529213815927505, -0.22346064448356628, 0.5553430318832397, 0.011273014359176159, 0.21709755063056946, 0.19226182997226715, -0.12640631198883057, 0.08760534226894379, 0.43255069851875305, 0.33531129360198975, 0.1522751748561859, 0.08593118190765381, -0.027514873072504997, -0.5519152879714966, 0.19198814034461975, -0.05150981619954109, 0.2728058397769928, -0.1816069483757019, -0.08228062838315964, 0.06500960141420364, -0.040539730340242386, 0.6027056574821472, 0.2003563940525055, -0.2387983202934265, 0.011056371964514256, -0.1418331414461136, -0.7813398241996765, 0.027684273198246956, 0.14364691078662872, 0.5761944651603699, -0.21538478136062622, 0.4796072244644165, -0.3531568646430969, -0.14385859668254852, -0.04964909330010414, 0.30804720520973206, 0.00009984439384425059, -0.2261309027671814, -0.4201831817626953, -0.1625669151544571, -0.2803279459476471, -0.14164301753044128, -0.1996254026889801, 0.24763770401477814, 0.09329377114772797, 0.09944771230220795, -0.043713077902793884, -0.0913076102733612, 0.19259217381477356, 0.18240885436534882, 0.3472195267677307, -0.21033897995948792, 0.28969255089759827, 0.38696566224098206, 0.2320166528224945, 0.20815351605415344, 0.7227816581726074, 0.16464544832706451, -0.5916875600814819, -0.15344293415546417, 0.2696807086467743, 0.18320487439632416, 0.2895323932170868, -0.028701910749077797, 0.0045353081077337265, 0.11956433206796646, -0.15133805572986603, -0.331290602684021, -0.06929702311754227, 0.2510879635810852, -0.0724765807390213, -0.2780531942844391, -0.1971234530210495, 0.5810283422470093, -0.1712818294763565, 0.21244075894355774, 0.1725044846534729, 0.2566056251525879, -0.06070849671959877, 0.013823100365698338, -0.197282075881958, 0.6852063536643982, -0.0016978939529508352, 0.2276737242937088, 0.34905773401260376, 0.17400188744068146, 0.36686933040618896, 0.04133066534996033, 0.0558345764875412, -0.32590094208717346, 0.21429136395454407, -0.06215497478842735, -0.1550915539264679, 0.25048398971557617, 0.014319973066449165, -0.14382120966911316, 0.41692838072776794, -0.04920056462287903, 0.2519978880882263, 0.051232293248176575, 0.058506324887275696, -0.30359500646591187, -0.2866881191730499, -0.4985901117324829, 0.06551530212163925, 0.0861324816942215, 0.38525810837745667, -0.229000985622406, -0.05527890473604202, 0.04340708628296852, -0.06505925208330154, -0.18226316571235657, 0.09767071902751923, -0.45396167039871216, -0.08523359894752502, 0.44535380601882935, -0.4227732717990875, 0.1324390470981598, 0.30798760056495667, 0.27703216671943665, -0.1352957934141159, -0.41825076937675476, 0.19052265584468842, -0.3106989860534668, -0.3352683186531067, 0.108890600502491, -0.06736468523740768, 0.1250193566083908, 0.018082473427057266, 0.09618543088436127, 0.09507341682910919, -0.13893601298332214, -0.025964653119444847, -0.1720426082611084, 0.01891699805855751, -0.11682838946580887, -0.09131373465061188, -0.26450809836387634, -0.20006009936332703, 0.26476678252220154, -0.11329132318496704, 0.07373518496751785, 0.18067005276679993, -0.04128929600119591, -0.20207813382148743, -0.3155842423439026, -0.11379292607307434, -0.15681718289852142, 0.24475210905075073, -0.4322889745235443, 0.02914336696267128, 0.5220116972923279, 0.3119792342185974, 0.09030447155237198, -0.03781050071120262, -0.1419820636510849, 0.32672548294067383, -0.4389442205429077, 0.08693377673625946, 0.49584075808525085, 0.08713758736848831, 0.08123761415481567, 0.6029366254806519, 0.08884330838918686, -0.5001248121261597, -0.029598576948046684, -0.35013070702552795, -0.36673179268836975, 0.3960716128349304, 0.054470036178827286, -0.03504057601094246, 0.11302144825458527, 0.36756348609924316, 0.12757648527622223, -0.12017536908388138, -0.23141691088676453, -0.002226336160674691, 0.007010527420789003, 0.023714637383818626, 0.36081966757774353, 0.1345328539609909, 0.2697119414806366, 0.09716419130563736, 0.025893598794937134, 0.0691879466176033, -0.12983638048171997, -0.11089600622653961, 0.0662149116396904, 0.12978951632976532, 0.08175978064537048, -0.10858173668384552, 0.018803464248776436, -0.08335046470165253, -0.06603191047906876, -0.2945551872253418, 0.24192458391189575, 0.18246260285377502, -0.04054318368434906, -0.026347247883677483, -0.09775303304195404, 0.30694013833999634, -0.16080723702907562, 0.14924807846546173, 0.0016979312058538198, 0.17429964244365692, 0.06667155772447586, -0.21063391864299774, -0.2734605669975281, -0.07732272148132324, 0.16420850157737732, 0.17165006697177887, 0.007536281365901232, 0.028119169175624847, 0.20466065406799316, -0.196846142411232, 0.06569385528564453, 0.1100020781159401, 0.137083500623703, 0.3960869312286377, -0.23151272535324097, 0.21009938418865204, 0.18426409363746643, 0.09292665868997574, -0.12741488218307495, -0.0038556780200451612, -0.11394624412059784, 0.13780684769153595, -0.02600894495844841, 0.10684007406234741, 0.1758500635623932, -0.22368134558200836, 0.14280639588832855, 0.13270927965641022, 0.26362714171409607, 0.10223773121833801, 0.16594615578651428, 0.006059510633349419, 0.11741315573453903, 0.05370481312274933, 0.08714277297258377, 0.06809839606285095, 0.3419532775878906, 0.24205410480499268, -0.3453660011291504, -0.07669101655483246, -0.15596669912338257, 0.33271634578704834, -0.07342009991407394, -0.4263690114021301, -0.0034759838599711657, 0.028362497687339783, 0.3028203845024109, 0.05206400528550148, -0.3099769055843353, 0.6268875598907471, -0.4704822599887848, 0.18069075047969818, -0.23355405032634735, 0.10006053000688553, -0.17392493784427643, -0.20238091051578522, -0.03508730232715607, -0.16010914742946625, 0.19724097847938538, -0.06918218731880188, -0.1901579350233078, -0.20091299712657928, 0.088460773229599, -0.0684191957116127, -0.11633637547492981, -0.3947874903678894, 0.04981827363371849, 0.3899998962879181, 0.08648136258125305, -0.06085292249917984, 0.5724350810050964, 0.35004040598869324, -0.0964202731847763, 0.23737293481826782, 0.43721047043800354, 0.5460047125816345, 0.21396934986114502, -0.09593281149864197, 0.17949862778186798, -0.341055691242218, -0.05208837613463402, 0.06284931302070618, 0.3029095232486725, -0.19706305861473083, 0.16113194823265076, 0.21856361627578735, 0.11025334894657135, -0.06317152827978134, -0.031335003674030304, -0.05289353057742119, 0.37847208976745605, -0.45569077134132385, 0.14441709220409393, -0.5341818928718567, 0.061351317912340164, -0.21888945996761322, 0.13975973427295685, -0.5079594850540161, 0.11947338283061981, 0.17345786094665527, 0.1381896436214447, -0.178789883852005, -0.10938513278961182, 0.04467884078621864, 0.04174329340457916, 0.4834546148777008, 0.5565122961997986, 0.23548372089862823, -0.19387087225914001, -0.3390645980834961, -0.7109741568565369, 0.10042939335107803, -0.06442303210496902, 0.08360592275857925, 0.037163034081459045, 0.18259282410144806, 0.10444112867116928, 0.1517055630683899, -0.154850035905838, 0.24749667942523956, 0.07491955161094666, -0.25473955273628235, -0.18426530063152313, -0.21683131158351898, -0.032844845205545425, -0.11984219402074814, -0.0634596049785614, 0.01226042490452528, 0.13561753928661346, -0.21941892802715302, -0.08621887117624283, -0.011336390860378742, 0.10025114566087723, -0.018153829500079155, -0.3268497884273529, 0.2521864175796509, 0.044869765639305115, -0.11176814138889313, 0.1069103479385376, -0.35880032181739807, -0.37403666973114014, -0.3377346098423004, -0.07800844311714172, 0.19165582954883575, -0.13865000009536743, 0.4262632429599762, -0.3807390630245209, -0.12615074217319489, -0.2059423178434372, 0.17163534462451935, 0.09460543096065521, -0.015034753829240799, -0.16386018693447113, 0.14818529784679413, 0.0023833622690290213, -0.06771650910377502, 0.11838483810424805, 0.5463747978210449, 0.03045588918030262, 0.11109241098165512, -0.31672874093055725, -0.258237361907959, 0.526123046875, -0.397346556186676, 0.03538456931710243, 0.3021896183490753, 0.09528453648090363, 0.13642293214797974, -0.2403278946876526, -0.715596079826355, 0.26558974385261536, 0.2215316891670227, 0.1262854039669037, -0.03461176156997681, 0.04037506878376007, -0.062064312398433685, 0.06971196085214615, -0.12738923728466034, 0.22380006313323975, 0.2203969955444336, -0.02280271239578724, 0.35935190320014954, 0.046281956136226654 ]
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.22146964073181152, 0.05883113667368889, 0.01738966815173626, 0.2946335971355438, 0.28719574213027954, 0.10362882912158966, 0.2778083086013794, 0.21131375432014465, 0.05538676306605339, 0.04410145431756973, -0.1638772338628769, -0.025890110060572624, 0.006625684909522533, -0.1750877946615219, 0.3238506317138672, -0.17255879938602448, -0.11271798610687256, -0.01358880940824747, -0.21223728358745575, 0.15848051011562347, -0.031967852264642715, 0.2331247627735138, -0.15128427743911743, 0.28551408648490906, -0.034938883036375046, 0.18854710459709167, -0.04765494167804718, 0.11020892858505249, -0.0013438942842185497, -0.5571446418762207, 0.6485423445701599, 0.19645237922668457, 0.2534169554710388, 0.6113677024841309, -0.00011303116480121389, 0.18799427151679993, 0.42763155698776245, 0.07109352946281433, -0.4378679692745209, -0.45160767436027527, 0.19704006612300873, -0.06657526642084122, 0.4012708067893982, 0.08863084018230438, -0.1916382908821106, -0.17436565458774567, -0.04820214584469795, -0.35645920038223267, 0.11996046453714371, 0.15156571567058563, 0.23709718883037567, 0.5524004101753235, -0.018182115629315376, -0.23221608996391296, 0.2086302638053894, -0.09329014271497726, -0.16180796921253204, 0.4859965145587921, 0.27792635560035706, 0.00001899944072647486, 0.04152889549732208, 0.12543535232543945, -0.178388312458992, 0.16099458932876587, 0.44853460788726807, -0.025383444502949715, -0.12751570343971252, -0.07787089794874191, 0.1246728003025055, 0.23531801998615265, 0.5451825261116028, -0.25347694754600525, -0.30229538679122925, -0.17338044941425323, 0.0765557587146759, 0.1363619714975357, 0.29443272948265076, -0.2126200795173645, -0.07162646949291229, 0.18038351833820343, -0.10281345993280411, -0.1887425035238266, -0.060760073363780975, 0.21072512865066528, 0.10045496374368668, -0.15897266566753387, -0.23086948692798615, 0.20977728068828583, 0.163753479719162, -0.05227584391832352, 0.01605962961912155, -0.015382416546344757, 0.053557850420475006, 0.2114631086587906, -0.3963182270526886, 0.059305138885974884, 0.03662595897912979, 0.1347658932209015, 0.24338898062705994, 0.30892133712768555, 0.3861989378929138, -0.03970915824174881, -0.24996735155582428, 0.13590727746486664, 0.4187644124031067, 0.07825514674186707, -0.02681173011660576, -0.3456534445285797, 0.43914666771888733, 0.2833789587020874, 0.12570366263389587, -0.04637857899069786, -0.0763067826628685, -0.051700007170438766, -0.13375602662563324, -0.16970978677272797, 0.2196265608072281, -0.2770830988883972, -0.20520062744617462, 0.1551857739686966, -0.11020269244909286, -0.061932727694511414, 0.17056021094322205, 0.33848410844802856, -0.17902828752994537, 0.28264743089675903, 0.2799417972564697, 0.27937182784080505, 0.009707427583634853, -0.1391039788722992, -0.23068472743034363, 0.34702539443969727, -0.113518625497818, 0.16846786439418793, 0.46366775035858154, -0.37088263034820557, 0.2146424651145935, 0.052715424448251724, 0.26207324862480164, 0.011848963797092438, -0.06401567161083221, -0.13088032603263855, -0.28608453273773193, 0.2620013654232025, 0.03756256401538849, 0.3730465769767761, 0.30326828360557556, -0.3780880272388458, -0.07859848439693451, 0.1303362101316452, -0.10469749569892883, -0.27367570996284485, -0.11318445205688477, 0.14070244133472443, -0.5425634384155273, -0.16900162398815155, -0.7952088713645935, -0.11589688807725906, -0.037402521818876266, -0.190166637301445, -0.17573204636573792, -0.25212329626083374, 0.11311101913452148, -0.1844940036535263, 0.25694456696510315, 0.5731604099273682, -0.46837207674980164, -0.14176279306411743, -0.3210853636264801, -0.24505046010017395, -0.18950684368610382, 0.04993891716003418, -0.22909864783287048, 0.014585318975150585, -0.3759835958480835, 0.23424874246120453, 0.2016332745552063, -0.5678407549858093, -0.3043697774410248, 0.188145250082016, -0.27375391125679016, 0.13914130628108978, -0.10961523652076721, -0.04311589524149895, 0.03428194671869278, -0.12984943389892578, -0.2751348912715912, 0.37100154161453247, 0.0552595853805542, -0.12522409856319427, -0.15262646973133087, -0.0876123234629631, 0.02427018992602825, 0.48142293095588684, -0.00506902439519763, -0.03461930528283119, 0.1112639456987381, 0.40482959151268005, 0.12384811788797379, 0.008240762166678905, -0.002646507928147912, 0.2363560050725937, 0.15572835505008698, 0.06606743484735489, 0.026599019765853882, -0.22053179144859314, -0.5138395428657532, 0.27904823422431946, 0.2804945707321167, 0.09340205788612366, -0.052099332213401794, 0.10988028347492218, -0.3560444712638855, -0.06235703453421593, -0.4687769114971161, -0.25762104988098145, 0.042077578604221344, 0.2640276849269867, -0.1119270846247673, -0.013955016620457172, -0.22722910344600677, 0.13177818059921265, -0.1492682248353958, 0.22084741294384003, -0.2036610245704651, 0.35157299041748047, -0.12742100656032562, -0.13949580490589142, 0.11260859668254852, 0.19097739458084106, 0.012746778316795826, -0.2036849856376648, -0.11205945163965225, 0.5353552103042603, -0.1917448788881302, -0.17021489143371582, 0.14664258062839508, -0.05164799094200134, 0.18556825816631317, -0.33245477080345154, 0.019999172538518906, 0.022504746913909912, 0.052746351808309555, 0.009319509379565716, -0.17551691830158234, -0.04286037012934685, -0.03021193854510784, 0.4222053289413452, 0.18181931972503662, 0.11835053563117981, 0.3142019808292389, 0.06899985671043396, -0.06767433136701584, -0.1829337328672409, 0.3034818470478058, 0.06229213997721672, 0.49008598923683167, -0.012034131214022636, -0.19772598147392273, 0.03603259101510048, -0.04019557312130928, -0.007314120884984732, 0.17198878526687622, 0.22158454358577728, -0.21881616115570068, -0.04188152775168419, -0.07633683830499649, 0.1008969098329544, 0.5481573343276978, 0.09765195101499557, -0.06733883917331696, -0.1769091635942459, 0.05829537287354469, -0.10676593333482742, 0.17593564093112946, -0.10828333348035812, -0.07814919948577881, 0.0818079262971878, 0.1608300358057022, -0.03287326917052269, -0.26207754015922546, -0.4119635820388794, -0.03287074342370033, 0.18526846170425415, -0.23943443596363068, 0.10622336715459824, -0.33762529492378235, -0.18779844045639038, -0.03780351206660271, 0.05686367675662041, -0.4906943142414093, -0.3384881615638733, -0.24385158717632294, 0.27195116877555847, 0.30346187949180603, 0.052016790956258774, -0.07912524044513702, 0.23713141679763794, 0.054192397743463516, 0.008797923102974892, -0.10036174952983856, 0.02277659811079502, -0.2968292832374573, 0.03216411918401718, 0.12512916326522827, -0.16560494899749756, 0.12944911420345306, 0.04445892944931984, 0.10594464838504791, -0.38428235054016113, -0.13937726616859436, 0.2893943786621094, -0.0943949744105339, 0.4804418087005615, 0.2228504717350006, 0.3556439280509949, 0.04326904937624931, 0.009781606495380402, 0.5540053248405457, -0.09708255529403687, -0.02478622831404209, 0.12928885221481323, 0.061431802809238434, 0.03925681486725807, -0.12322098761796951, -0.07998710125684738, -0.40144041180610657, -0.3176145851612091, -0.00312268128618598, -0.011920275166630745, -0.16679182648658752, 0.49039795994758606, -0.026162039488554, 0.21406365931034088, -0.10699595510959625, 0.19027400016784668, -0.24191685020923615, -0.48929673433303833, 0.20020808279514313, -0.2261964976787567, -0.23582176864147186, -0.07731073349714279, 0.2203531414270401, 0.3298979699611664, -0.1658444106578827, -0.5135371088981628, -0.17259667813777924, -0.03670954331755638, 0.10871269553899765, -0.02199525572359562, 0.11469627916812897, 0.011017895303666592, -0.05142918974161148, -0.05250341445207596, -0.14490260183811188, -0.17511692643165588, -0.14603888988494873, -0.11885027587413788, 0.26082751154899597, 0.06878263503313065, 0.07319490611553192, 0.1224949061870575, 0.6985937356948853, -0.11896567046642303, -0.269979864358902, 0.5415765643119812, 0.04279953986406326, 0.49274742603302, -0.011632982641458511, -0.5201572775840759, 0.09555899351835251, -0.09930967539548874, 0.3007577359676361, -0.04713686183094978, 0.0544559583067894, 0.1366569995880127, -0.22837324440479279, 0.11796217411756516, -0.1467335969209671, -0.16417723894119263, -0.08457773178815842, 0.1379184126853943, 0.04362212494015694, 0.16995473206043243, 0.019805537536740303, 0.015024207532405853, -0.20371869206428528, 0.1452026218175888, 0.5837786197662354, 0.14538174867630005, 0.10660350322723389, -0.11395198106765747, -0.16015200316905975, -0.30590760707855225, 0.28983160853385925, -0.16678820550441742, 0.38803017139434814, -0.08330201357603073, 0.08692757040262222, 0.07758533209562302, 0.1479598432779312, 0.44340652227401733, -0.328704297542572, 0.15855252742767334, 0.13365229964256287, -0.08577537536621094, -0.6703957915306091, -0.09366658329963684, 0.09940896183252335, 0.34161868691444397, -0.009649917483329773, 0.06182015687227249, -0.264091819524765, -0.3057757019996643, 0.4000409245491028, 0.3831832706928253, -0.0875031128525734, -0.36357390880584717, -0.20491516590118408, -0.2763393223285675, -0.23492825031280518, -0.33256644010543823, -0.1548430472612381, 0.23142553865909576, 0.06451036781072617, 0.07273608446121216, 0.07040861248970032, -0.20614507794380188, 0.22632348537445068, 0.04808123782277107, 0.3262002170085907, 0.2228340208530426, 0.11299687623977661, 0.26243728399276733, 0.05051719769835472, 0.0808391124010086, 0.27647313475608826, -0.0935821384191513, -0.04074834659695625, 0.428510457277298, 0.041543442755937576, 0.18697240948677063, 0.21350009739398956, -0.29700183868408203, 0.2622370719909668, 0.07126452028751373, 0.06138859689235687, -0.09120351076126099, 0.12177203595638275, 0.21872113645076752, -0.180023655295372, 0.03821876272559166, -0.6317685842514038, 0.522983968257904, 0.2532396614551544, 0.08200746029615402, 0.10123921185731888, 0.051871445029973984, -0.02639654092490673, 0.1271335631608963, -0.012429790571331978, 0.8495184779167175, -0.21155737340450287, 0.23928938806056976, 0.18633466958999634, 0.3600390553474426, 0.5700745582580566, -0.1596253216266632, 0.02618212066590786, -0.35699662566185, -0.24089224636554718, -0.04727878049015999, -0.30126824975013733, 0.10716956108808517, 0.09684180468320847, -0.049772318452596664, 0.2951703667640686, -0.21449585258960724, 0.1786036342382431, 0.07608029991388321, 0.28799811005592346, -0.2931632697582245, -0.30461931228637695, -0.2590691149234772, 0.1664930284023285, -0.3988610804080963, 0.45009368658065796, -0.12434764206409454, 0.16044379770755768, -0.09893671423196793, -0.07843649387359619, -0.4062737226486206, 0.16231219470500946, -0.02227989211678505, 0.2918304204940796, -0.15713904798030853, -0.4060104489326477, 0.2369610071182251, 0.1566009223461151, 0.08258544653654099, 0.21313218772411346, -0.13534186780452728, 0.241590216755867, -0.28053948283195496, -0.14422723650932312, 0.000984790618531406, -0.03983941674232483, 0.18980289995670319, -0.05335327610373497, -0.11391174048185349, 0.0885142982006073, -0.02806871570646763, -0.21077992022037506, 0.11506975442171097, 0.10505563765764236, 0.015026584267616272, -0.2030852884054184, -0.2619383931159973, -0.14957870543003082, 0.11536566913127899, -0.2147352546453476, 0.08468393981456757, 0.38000598549842834, -0.040746983140707016, -0.0872088149189949, 0.06375763565301895, -0.15318924188613892, 0.029035862535238266, 0.5284179449081421, -0.03791198506951332, -0.24468457698822021, 0.4941776990890503, 0.43841367959976196, -0.18833498656749725, -0.10685936361551285, 0.10984243452548981, 0.2774742543697357, -0.5570065975189209, 0.09444761276245117, -0.0762699618935585, 0.10072974860668182, -0.08168210834264755, 0.2877087891101837, 0.21531885862350464, -0.04384399205446243, -0.06911452114582062, -0.6689066290855408, -0.12253459542989731, 0.22637143731117249, -0.21361157298088074, -0.009167762473225594, -0.12617306411266327, 0.08236142247915268, 0.03989165276288986, -0.31407982110977173, -0.25779998302459717, 0.1932244896888733, -0.3386518657207489, -0.15773677825927734, 0.3997708261013031, 0.015368972904980183, 0.2695319950580597, -0.17941167950630188, 0.1243724450469017, 0.013405891135334969, -0.15393562614917755, -0.13917405903339386, -0.1338416039943695, 0.1500631719827652, 0.024988260120153427, -0.08219952881336212, -0.06613456457853317, -0.1386975198984146, 0.04268275573849678, -0.096879743039608, 0.19718684256076813, 0.11370895057916641, 0.1165090948343277, -0.2642097771167755, -0.23114486038684845, 0.01928384229540825, -0.0896342322230339, 0.1684032678604126, -0.0009093136759474874, 0.30300700664520264, 0.29468393325805664, -0.11768477410078049, 0.07761427015066147, -0.09064323455095291, 0.017834212630987167, 0.12155567854642868, -0.06872909516096115, 0.10312735289335251, 0.1715625375509262, -0.39846038818359375, -0.01874610409140587, 0.4810514748096466, 0.38515493273735046, 0.4579794704914093, -0.19274868071079254, 0.17853450775146484, -0.0602031908929348, 0.13917362689971924, -0.19164495170116425, -0.10173626989126205, 0.105283223092556, 0.05321291834115982, -0.036951687186956406, 0.2517871856689453, -0.07648443430662155, 0.09793680161237717, 0.1344040483236313, 0.19432413578033447, 0.6998500227928162, 0.06285879015922546, 0.10143118351697922, 0.04367721453309059, -0.028517020866274834, -0.02371772564947605, 0.2893116772174835, 0.04610435292124748, 0.19129444658756256, 0.20213130116462708, -0.3849470913410187, 0.12160224467515945, -0.10055044293403625, 0.021012162789702415, 0.079586461186409, -0.45925843715667725, 0.2204449474811554, 0.25508755445480347, 0.3501318097114563, -0.10386887937784195, -0.18619155883789062, 0.6454374194145203, -0.35485848784446716, 0.036371082067489624, -0.06158878654241562, -0.05159100890159607, -0.14585617184638977, 0.11762826889753342, -0.2180451899766922, -0.2793152332305908, -0.29966384172439575, -0.050261203199625015, -0.16365087032318115, -0.28269141912460327, 0.14230996370315552, 0.07826022058725357, -0.018793128430843353, -0.5962896943092346, -0.2087341845035553, 0.30287835001945496, -0.20057787001132965, -0.025480717420578003, 0.2560766041278839, 0.45210984349250793, -0.003177422098815441, 0.1849297136068344, 0.3444438576698303, 0.4056633710861206, 0.1873004138469696, -0.16985154151916504, 0.02105611003935337, -0.2616786062717438, -0.020968569442629814, 0.06746264547109604, -0.04078685864806175, 0.07808183878660202, -0.031122179701924324, 0.3041677474975586, 0.16811946034431458, -0.141899973154068, 0.13467876613140106, 0.07212916761636734, 0.22864866256713867, -0.43090417981147766, 0.21872980892658234, -0.3335319757461548, 0.11128260940313339, -0.2731330394744873, 0.06531646102666855, -0.5620747804641724, 0.11581137776374817, 0.4431757628917694, 0.20904861390590668, -0.24614211916923523, -0.33714208006858826, 0.06588253378868103, 0.1745881736278534, 0.2924462556838989, 0.5197384357452393, 0.07688423991203308, -0.35134807229042053, -0.20632274448871613, -0.9277209043502808, 0.18797455728054047, 0.0629233568906784, 0.02927054837346077, 0.05614744871854782, 0.22127442061901093, 0.1257377564907074, 0.28558677434921265, 0.5260549187660217, -0.11642811447381973, 0.24581176042556763, -0.14916782081127167, -0.15902236104011536, -0.30915406346321106, -0.02921094186604023, 0.06684224307537079, -0.18836313486099243, -0.03897726535797119, -0.06569605320692062, -0.09145395457744598, 0.014677906408905983, -0.31327947974205017, -0.2859943211078644, 0.09902039915323257, -0.2107793390750885, 0.42151129245758057, -0.24977712333202362, 0.3580866754055023, 0.18157324194908142, -0.26792845129966736, -0.2454044371843338, -0.41853126883506775, 0.05158209055662155, 0.3490266501903534, -0.1713765412569046, 0.3201974034309387, -0.14541421830654144, -0.15340091288089752, -0.5415136814117432, 0.04784335196018219, 0.012916412204504013, 0.08876396715641022, -0.3891150653362274, 0.06315755844116211, -0.1504513919353485, 0.14373093843460083, 0.01702664978802204, 0.009067962877452374, -0.12329080700874329, 0.37485989928245544, -0.2689991295337677, -0.4195801615715027, 0.6745828986167908, -0.16998766362667084, -0.09132883697748184, -0.09274571388959885, 0.1541094034910202, -0.4061714708805084, -0.12399488687515259, -0.3438659608364105, -0.0074311369098722935, 0.26358747482299805, 0.25509899854660034, -0.34527745842933655, -0.10306867957115173, -0.2710338830947876, 0.0684487447142601, -0.06514053791761398, 0.28637686371803284, 0.09683267772197723, -0.15598785877227783, 0.03868337348103523, 0.08216901868581772 ]
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.36579951643943787, -0.14910896122455597, -0.053581759333610535, 0.3329216241836548, 0.43087631464004517, 0.12308875471353531, 0.35996225476264954, 0.31735455989837646, 0.3176310360431671, 0.06259826570749283, -0.23802703619003296, 0.001200711471028626, -0.08891014009714127, 0.06104443594813347, 0.03860148414969444, 0.01965794339776039, -0.09693697839975357, 0.04208476468920708, -0.09131094068288803, 0.01834631711244583, -0.21038298308849335, 0.09538789093494415, -0.03541996330022812, -0.10084491223096848, -0.11070437729358673, -0.1373712718486786, -0.045629583299160004, 0.3429243564605713, -0.4638153910636902, -0.24751490354537964, 0.3933928608894348, -0.05974707752466202, 0.2342812716960907, 0.432929664850235, -0.00011035521310986951, 0.14106638729572296, 0.3332582116127014, -0.1318260133266449, -0.43658164143562317, -0.542705237865448, -0.23403087258338928, -0.2482803463935852, 0.12176088988780975, -0.139297753572464, -0.0860491693019867, -0.26267433166503906, 0.07573141157627106, -0.16159550845623016, 0.3259945809841156, 0.4596894383430481, 0.2739565968513489, 0.3807641565799713, 0.17290808260440826, -0.20338256657123566, 0.42297065258026123, -0.024713799357414246, -0.1236242949962616, 0.46845877170562744, 0.06930454075336456, -0.02440710738301277, 0.07985110580921173, 0.07080892473459244, -0.1889915019273758, 0.1367579847574234, 0.10102884471416473, -0.12837925553321838, -0.0986572802066803, -0.3918552100658417, 0.1986583173274994, 0.20604954659938812, 0.25931718945503235, -0.14492064714431763, -0.4517110586166382, -0.06364530324935913, 0.09429191052913666, -0.4788374900817871, 0.09187612682580948, 0.23962649703025818, 0.15926462411880493, 0.10965559631586075, 0.03730019927024841, -0.2497660517692566, -0.1381264626979828, 0.3669584393501282, -0.11735072731971741, 0.06643438339233398, -0.24606339633464813, -0.10646985471248627, 0.06806248426437378, -0.16471171379089355, -0.1510903537273407, 0.11550126224756241, -0.20621967315673828, 0.1028672456741333, -0.28026437759399414, -0.056664783507585526, -0.07721152156591415, -0.0013286422472447157, 0.09711175411939621, 0.25659680366516113, 0.04051250219345093, -0.005387444980442524, 0.0977691113948822, 0.0714690089225769, 0.05524326115846634, 0.19629551470279694, -0.0038623984437435865, 0.14957942068576813, 0.09311449527740479, 0.3699892461299896, -0.02032638154923916, -0.05988693982362747, -0.46476587653160095, -0.2502337694168091, -0.22430428862571716, -0.22755646705627441, 0.3014706075191498, -0.2856253981590271, -0.31092751026153564, -0.06509087234735489, -0.06925872713327408, -0.01730567030608654, 0.25896400213241577, 0.5917763710021973, -0.21996159851551056, 0.10643504559993744, 0.07583537697792053, 0.3028854727745056, -0.0017309555551037192, 0.24293208122253418, -0.24847522377967834, 0.4639940857887268, -0.14294742047786713, -0.05643340200185776, 0.25106385350227356, -0.41337430477142334, 0.4145970046520233, -0.11814077198505402, 0.010997800156474113, -0.13539940118789673, -0.03779086843132973, -0.16318544745445251, 0.15144701302051544, 0.2247888445854187, -0.06264333426952362, 0.07585753500461578, 0.2453986555337906, 0.0033515216782689095, -0.19456274807453156, -0.21320056915283203, -0.1482446789741516, -0.4352910816669464, -0.16099414229393005, 0.2583009600639343, -0.008988620713353157, -0.17365315556526184, -0.13581307232379913, -0.366613507270813, 0.10695439577102661, -0.05935036391019821, -0.08983687311410904, -0.2057662010192871, -0.13394571840763092, -0.21237845718860626, 0.43487364053726196, 0.624914824962616, 0.05776432901620865, -0.19279882311820984, -0.1481882631778717, 0.12237534672021866, 0.10117454826831818, 0.18794865906238556, -0.2569374740123749, 0.1325685977935791, -0.30404165387153625, -0.24839472770690918, 0.5892072916030884, -0.47865787148475647, -0.34809136390686035, 0.4911934733390808, -0.24455426633358002, 0.05937128886580467, 0.14396429061889648, -0.10011869668960571, 0.2385171353816986, 0.048515684902668, 0.5149008631706238, 0.1525215357542038, 0.006028003990650177, -0.07577145844697952, -0.2067526876926422, -0.35484370589256287, -0.16947156190872192, 0.2668251395225525, 0.24731482565402985, 0.12034071236848831, 0.2452000081539154, 0.31102055311203003, 0.05816783756017685, -0.02357494831085205, -0.04133228585124016, 0.25166383385658264, 0.2244623601436615, 0.051155269145965576, -0.20826031267642975, -0.060527555644512177, -0.37326210737228394, 0.2185179889202118, -0.0019849182572215796, 0.09431575238704681, -0.19074976444244385, 0.10804929584264755, -0.5253346562385559, -0.04145811125636101, -0.24759253859519958, -0.1638881266117096, 0.1638510376214981, 0.21254631876945496, 0.25645720958709717, 0.13565079867839813, -0.21326316893100739, 0.35099804401397705, -0.12664709985256195, 0.06779855489730835, -0.21359272301197052, 0.048642851412296295, -0.1698092669248581, -0.1537039577960968, 0.12983770668506622, 0.18434512615203857, 0.25910237431526184, -0.2886407673358917, 0.046595096588134766, 0.24315372109413147, -0.04690804332494736, -0.24771325290203094, 0.040527474135160446, 0.23633277416229248, 0.2393019050359726, -0.04645569995045662, 0.15440094470977783, -0.06361377984285355, 0.16308525204658508, 0.05052778869867325, 0.1560124158859253, 0.34761303663253784, -0.11604472249746323, 0.26532799005508423, 0.29604193568229675, -0.12879179418087006, 0.304831862449646, 0.037104006856679916, 0.10481872409582138, -0.23037363588809967, 0.27540186047554016, 0.11039159446954727, 0.45323997735977173, 0.08788518607616425, -0.2446531355381012, -0.03625842556357384, 0.15427713096141815, 0.14175750315189362, -0.10042403638362885, 0.08807121217250824, -0.10780830681324005, 0.05031420290470123, -0.16432176530361176, 0.12598435580730438, 0.43945738673210144, 0.3152252435684204, -0.0030139910522848368, -0.13074243068695068, 0.1457129269838333, -0.1901167333126068, 0.22852447628974915, 0.08282943069934845, 0.13192683458328247, 0.0903957262635231, 0.24315188825130463, 0.060409918427467346, -0.28658509254455566, -0.41364821791648865, 0.06041537597775459, 0.2175486832857132, -0.12337225675582886, 0.05431252717971802, -0.34158042073249817, -0.4350295662879944, -0.18323157727718353, -0.0812559723854065, -0.11896101385354996, -0.22244834899902344, -0.10931176692247391, 0.38502833247184753, 0.08202613145112991, 0.17434892058372498, -0.3616296947002411, 0.13116441667079926, 0.0034897178411483765, -0.4636762738227844, -0.020846843719482422, -0.04985962435603142, 0.023863114416599274, 0.09164648503065109, 0.3101964592933655, -0.32939696311950684, 0.2989206612110138, -0.258440226316452, -0.3787846863269806, -0.3437921702861786, -0.05245034769177437, 0.16397827863693237, 0.04164469987154007, 0.2919321358203888, 0.0584820881485939, 0.26833343505859375, -0.047822728753089905, -0.1814977377653122, 0.2785211503505707, -0.03338001295924187, -0.10167922079563141, -0.05681946873664856, -0.015226033516228199, 0.004719414282590151, 0.11111246794462204, -0.34846028685569763, -0.3846933841705322, -0.5702338218688965, 0.0012288077268749475, 0.024109553545713425, 0.09762897342443466, 0.1633748710155487, 0.08231877535581589, 0.13954375684261322, -0.2771361172199249, 0.26371750235557556, 0.002817729488015175, -0.6356606483459473, 0.307756245136261, -0.3354678153991699, -0.47401824593544006, 0.06365484744310379, 0.07190578430891037, 0.1483115255832672, 0.05984370782971382, -0.3255208730697632, -0.1184881329536438, -0.29353225231170654, 0.0969749391078949, 0.011317631229758263, 0.1488802582025528, 0.1564042568206787, -0.06274828314781189, -0.15237827599048615, -0.03948172926902771, -0.07441685348749161, 0.028421558439731598, 0.07555368542671204, 0.195220485329628, -0.15567025542259216, 0.3054393231868744, -0.18728035688400269, 0.8105012774467468, -0.04468990117311478, -0.2567230463027954, 0.6232312321662903, -0.3263629972934723, 0.5438452959060669, -0.1952957659959793, -0.5162591934204102, -0.08893700689077377, 0.0012896927073597908, 0.21688193082809448, 0.047435369342565536, -0.1229545921087265, -0.0691596046090126, -0.38823288679122925, -0.17522786557674408, -0.3440137207508087, -0.1467595398426056, 0.025491192936897278, -0.05593445152044296, -0.006919247098267078, -0.0019943141378462315, -0.13490083813667297, 0.07629203796386719, -0.04484473168849945, 0.10676825046539307, 0.46774664521217346, 0.10589597374200821, 0.13387878239154816, 0.2699654996395111, -0.12590792775154114, -0.31538304686546326, 0.2292887568473816, 0.09900855273008347, 0.18408021330833435, -0.02635069563984871, -0.18446868658065796, -0.07650528848171234, -0.11257857084274292, 0.5402201414108276, 0.023271257057785988, 0.11169803142547607, 0.3033772110939026, -0.3210594952106476, -0.40749359130859375, -0.009446420706808567, -0.18676680326461792, 0.07283822447061539, 0.42949092388153076, 0.18135496973991394, -0.3219102621078491, -0.16755983233451843, 0.38082319498062134, 0.27688881754875183, -0.1648251861333847, -0.036985963582992554, -0.31961172819137573, -0.29033592343330383, -0.3800649344921112, -0.0481722429394722, 0.10762740671634674, 0.4150274693965912, 0.03408750146627426, 0.10116861760616302, -0.2938576936721802, -0.026017822325229645, -0.017253035679459572, 0.07507774233818054, 0.32958683371543884, -0.005178670398890972, 0.2987496852874756, 0.0001275616668863222, 0.4790287911891937, 0.5336907505989075, 0.6083149909973145, -0.07907690852880478, -0.16824938356876373, 0.17423661053180695, 0.23881831765174866, 0.05684966966509819, 0.09113679826259613, -0.16430145502090454, -0.07607436925172806, 0.1003502681851387, 0.12371698021888733, 0.0757637768983841, 0.49286937713623047, 0.1997988373041153, -0.10172151774168015, -0.30607813596725464, -0.2848134934902191, 0.3799954652786255, 0.005959830712527037, 0.18399721384048462, 0.36174628138542175, 0.17350246012210846, -0.17937903106212616, 0.15781931579113007, -0.28656089305877686, 0.8279545307159424, -0.08830099552869797, 0.1863437443971634, 0.2034921944141388, -0.17070536315441132, 0.4270980954170227, 0.004430535715073347, 0.26083728671073914, -0.30660930275917053, -0.19179387390613556, 0.10685556381940842, -0.21963299810886383, -0.045239295810461044, 0.03721744567155838, -0.0017507115844637156, 0.24649956822395325, -0.1716199815273285, -0.25355440378189087, -0.1752818375825882, 0.4142422080039978, -0.060091856867074966, -0.12735557556152344, -0.2972858250141144, 0.12330031394958496, 0.06364715099334717, 0.4764910936355591, -0.26412272453308105, -0.022815177217125893, -0.12270278483629227, -0.27867045998573303, -0.28435203433036804, 0.2614373564720154, -0.09231820702552795, 0.3194985091686249, -0.3142406940460205, -0.19946056604385376, -0.011724946089088917, -0.14107100665569305, 0.011998475529253483, -0.012181813828647137, -0.1136443167924881, 0.09910327196121216, 0.02536730095744133, -0.4313674867153168, -0.012651371769607067, 0.10936341434717178, 0.46064063906669617, -0.1748538315296173, -0.05696091800928116, -0.043952833861112595, -0.1209326833486557, -0.07641393691301346, 0.06663811206817627, 0.06065075844526291, -0.1704292893409729, -0.285259872674942, -0.3929139971733093, 0.00571376271545887, -0.019215643405914307, -0.2860836386680603, 0.1495039165019989, 0.05413064360618591, -0.14893336594104767, -0.1410048007965088, 0.06313329935073853, -0.3694744110107422, -0.2614470422267914, 0.5848153829574585, -0.229047492146492, -0.1672656089067459, 0.475572794675827, 0.1389336735010147, -0.24537432193756104, -0.23894695937633514, -0.0577564463019371, 0.2142273187637329, -0.37690040469169617, 0.19337309896945953, 0.1458590030670166, 0.2104107141494751, 0.09942859411239624, 0.4053391218185425, 0.22381633520126343, -0.06555283814668655, 0.16352640092372894, -0.5226731896400452, -0.20488236844539642, 0.2629166543483734, -0.07548324763774872, 0.16751936078071594, 0.08345106244087219, 0.032374683767557144, 0.11394157260656357, -0.04111437126994133, -0.3581664562225342, 0.02797090634703636, -0.2944280803203583, 0.05202183499932289, 0.18176808953285217, -0.021162834018468857, 0.357322096824646, 0.21044375002384186, 0.24124757945537567, -0.09528616070747375, -0.10117145627737045, -0.281115859746933, -0.1054292619228363, 0.13714902102947235, -0.035185281187295914, -0.0646682158112526, -0.16301067173480988, -0.15914055705070496, -0.13305005431175232, -0.06426814943552017, 0.2809068262577057, 0.16473308205604553, 0.01176335010677576, -0.2847764194011688, 0.09815333038568497, -0.042121030390262604, -0.17192284762859344, 0.2252422273159027, 0.10759926587343216, 0.050925590097904205, 0.24895893037319183, 0.20511998236179352, 0.03169684112071991, -0.10998427122831345, 0.1387241780757904, -0.2905353009700775, 0.06813399493694305, -0.024093206971883774, 0.2176181823015213, -0.27601248025894165, -0.2741428315639496, 0.15381787717342377, 0.27452558279037476, 0.40746328234672546, 0.00817315373569727, 0.04703901708126068, 0.21613843739032745, 0.2668985426425934, -0.37733110785484314, 0.018923306837677956, 0.028564943000674248, -0.12569105625152588, 0.24689599871635437, 0.2550731599330902, -0.10685700923204422, 0.04810378700494766, 0.13607969880104065, 0.2231006622314453, 0.4210960268974304, -0.07787375897169113, 0.21608741581439972, -0.17834435403347015, 0.048966117203235626, -0.1044895201921463, 0.3343428075313568, 0.28297606110572815, 0.43287959694862366, 0.29028910398483276, -0.15966038405895233, 0.3407626152038574, -0.16929447650909424, 0.16619639098644257, -0.04292880743741989, -0.4089365303516388, 0.343191534280777, 0.15553341805934906, 0.11816716194152832, -0.054590433835983276, -0.2855471670627594, -0.008487031795084476, -0.06949348002672195, 0.20134572684764862, -0.11921321600675583, 0.29313841462135315, -0.18208830058574677, -0.10907086730003357, 0.09341421723365784, -0.41128695011138916, 0.07988931238651276, 0.04610736668109894, 0.18347656726837158, -0.16558052599430084, 0.14624720811843872, 0.26828745007514954, -0.16758310794830322, -0.07779587805271149, -0.018053852021694183, 0.3332144021987915, 0.11995478719472885, -0.21091561019420624, 0.20816779136657715, 0.22058767080307007, -0.11674779653549194, -0.12161870300769806, 0.35573557019233704, 0.5909686088562012, 0.32303205132484436, 0.1966938078403473, 0.006357472389936447, 0.1522769033908844, -0.12971019744873047, -0.10762984305620193, 0.1393260955810547, -0.07135552912950516, 0.23523087799549103, 0.17580574750900269, 0.27562838792800903, -0.2915884256362915, 0.05138286575675011, -0.08992425352334976, -0.03411902114748955, -0.05829484760761261, 0.21728549897670746, -0.04699664190411568, -0.12632279098033905, -0.34120339155197144, 0.21555165946483612, -0.5843133926391602, 0.445686936378479, 0.22310948371887207, 0.010193574242293835, 0.11928458511829376, 0.0343005545437336, 0.11734770983457565, 0.11047780513763428, 0.4590657651424408, 0.3333299160003662, 0.26297590136528015, -0.37811002135276794, -0.08997789770364761, -0.5046922564506531, 0.2131059318780899, -0.13435104489326477, 0.00542690884321928, 0.08418389409780502, 0.23695588111877441, -0.0553494393825531, 0.0025016365107148886, 0.15080858767032623, 0.21839182078838348, 0.09023471921682358, -0.01754150167107582, -0.2637939155101776, -0.016125507652759552, 0.07066108286380768, 0.017754757776856422, 0.1297653466463089, -0.33055952191352844, 0.0024298285134136677, -0.47725701332092285, 0.09521675109863281, -0.1454288363456726, -0.22486713528633118, -0.18892952799797058, -0.34207281470298767, 0.3520759046077728, -0.12085021287202835, 0.15904709696769714, -0.19753676652908325, -0.19275303184986115, -0.29932570457458496, -0.4522840082645416, -0.19793863594532013, 0.3398801386356354, 0.339287668466568, 0.25232890248298645, -0.26623061299324036, -0.1787528097629547, -0.4373832643032074, 0.28318852186203003, -0.015629269182682037, -0.21147963404655457, 0.13195784389972687, -0.08780598640441895, 0.02940690703690052, -0.027512554079294205, 0.057589177042245865, 0.11311155557632446, 0.03045576438307762, 0.024223437532782555, -0.3524525463581085, -0.3214491605758667, 0.5321995615959167, -0.1855495572090149, -0.09508641809225082, -0.07175172865390778, 0.26732805371284485, 0.04058897867798805, -0.0020063561387360096, -0.5231079459190369, 0.5159057974815369, 0.4153159558773041, 0.06819580495357513, -0.15660037100315094, 0.18991711735725403, -0.269111305475235, 0.046572525054216385, -0.08129565417766571, 0.17667508125305176, -0.006288931239396334, -0.2810441851615906, -0.19856420159339905, -0.02665949985384941 ]