html_url
stringlengths 48
51
| title
stringlengths 5
268
| comments
stringlengths 63
51.8k
| body
stringlengths 0
36.2k
⌀ | comment_length
int64 16
1.52k
| text
stringlengths 164
54.1k
| embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/1610 | shuffle does not accept seed | Hi Thomas
thanks for reponse, yes, I did checked it, but this does not work for me please see
```
(internship) rkarimi@italix17:/idiap/user/rkarimi/dev$ python
Python 3.7.9 (default, Aug 31 2020, 12:42:55)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import datasets
2020-12-20 01:48:50.766004: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2020-12-20 01:48:50.766029: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
>>> data = datasets.load_dataset("scitail", "snli_format")
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
Reusing dataset scitail (/idiap/temp/rkarimi/cache_home_1/datasets/scitail/snli_format/1.1.0/fd8ccdfc3134ce86eb4ef10ba7f21ee2a125c946e26bb1dd3625fe74f48d3b90)
>>> data.shuffle(seed=2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: shuffle() got an unexpected keyword argument 'seed'
```
datasets version
`datasets 1.1.2 <pip>
`
| Hi
I need to shuffle the dataset, but this needs to be based on epoch+seed to be consistent across the cores, when I pass seed to shuffle, this does not accept seed, could you assist me with this? thanks @lhoestq
| 134 | shuffle does not accept seed
Hi
I need to shuffle the dataset, but this needs to be based on epoch+seed to be consistent across the cores, when I pass seed to shuffle, this does not accept seed, could you assist me with this? thanks @lhoestq
Hi Thomas
thanks for reponse, yes, I did checked it, but this does not work for me please see
```
(internship) rkarimi@italix17:/idiap/user/rkarimi/dev$ python
Python 3.7.9 (default, Aug 31 2020, 12:42:55)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import datasets
2020-12-20 01:48:50.766004: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2020-12-20 01:48:50.766029: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
>>> data = datasets.load_dataset("scitail", "snli_format")
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
Reusing dataset scitail (/idiap/temp/rkarimi/cache_home_1/datasets/scitail/snli_format/1.1.0/fd8ccdfc3134ce86eb4ef10ba7f21ee2a125c946e26bb1dd3625fe74f48d3b90)
>>> data.shuffle(seed=2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: shuffle() got an unexpected keyword argument 'seed'
```
datasets version
`datasets 1.1.2 <pip>
`
| [
-0.3611407876,
-0.2253297567,
-0.0523425788,
0.1002613902,
0.2563579679,
-0.1110155135,
0.1722034067,
0.0852962434,
-0.005713487,
0.3612517715,
0.1441082954,
0.3828557432,
-0.2792430222,
0.4236414731,
-0.3170936108,
0.1824319661,
0.1758907735,
0.0246535353,
0.0966964886,
-0.2187659144,
-0.2138342261,
-0.1767715663,
-0.3849221468,
-0.3922268152,
-0.0966788009,
0.0997230336,
-0.0631700978,
-0.0549200326,
-0.2333818823,
0.0829104707,
0.0291080102,
0.4695258439,
0.2254399508,
0.5434179306,
-0.000118421,
0.0311073009,
0.1028728262,
-0.1222023144,
-0.162367925,
-0.2037842572,
-0.4092414677,
0.7001442313,
-0.2987083197,
-0.1451259404,
-0.4335156381,
0.0217808336,
-0.0585790351,
-0.3505460918,
0.2419649959,
0.0192642324,
0.0743440017,
-0.0877094194,
0.1874301583,
0.0450325012,
0.3148185909,
0.1693404019,
-0.0267273709,
0.1806757003,
0.1170013919,
0.1417715549,
0.1314725876,
-0.0136714429,
0.0271497015,
0.2115641087,
0.4446222484,
-0.2895049155,
0.0597489551,
-0.3515516222,
-0.022754088,
0.2394784391,
0.6474815011,
-0.1044926718,
-0.3328806758,
0.0272879191,
-0.121783033,
-0.7533954978,
-0.1434600949,
0.2448539883,
-0.265730828,
-0.0243243687,
0.0012275885,
0.0514395311,
-0.1524677277,
0.0673977584,
0.175434202,
0.6841990948,
0.0115247658,
0.1180580631,
0.4326362014,
-0.0639570802,
0.3201988041,
0.0323850624,
-0.0579378679,
0.1822149158,
-0.3543594182,
-0.1898200959,
-0.3696709275,
0.1263039708,
0.1526529193,
0.1987500638,
0.0989189819,
0.254350096,
-0.0179733075,
0.299031198,
-0.0273400508,
0.1894378662,
0.1938608289,
0.1103513613,
-0.0203144662,
-0.0033385921,
0.0162441265,
0.066670306,
-0.1197580025,
-0.1333676428,
-0.2709956765,
0.0655323341,
-0.1789511591,
-0.159733519,
-0.1167830899,
-0.4980919361,
-0.3183218837,
-0.3836850822,
0.4276823699,
0.3747380376,
-0.1726717353,
0.1342266202,
0.0090156784,
0.209682256,
0.0860618055,
-0.2013346851,
-0.2678601146,
0.0493236817,
-0.2658183873,
0.205308184,
0.0714609772,
-0.2550649941,
0.235953033,
0.2998141944,
0.1804525703,
-0.0260678809,
-0.0820801482,
0.0033826004,
-0.0434199236,
0.0275084097,
-0.0385249816,
0.0666899607,
0.1341363192,
-0.0235900115,
0.040777564,
0.4544702172,
-0.5137065053,
-0.0959363431,
0.1449236125,
0.0809496492,
-0.031148972,
-0.1751507372,
-0.5291621089,
0.0693709627,
0.0980643556,
0.0767356604,
-0.056719657,
-0.1430941373,
-0.2210717797,
-0.2535938919,
0.4845524132,
-0.2019007504,
-0.161118865,
-0.0025038505,
0.1482606828,
0.2340064943,
0.3288619518,
0.4299631119,
-0.0824121982,
-0.2007807791,
0.0891027302,
-0.0327075645,
0.2788096666,
-0.1118961722,
-0.2866579294,
-0.371278733,
0.0071838964,
-0.269979924,
-0.0005188972,
0.2127474993,
0.0968916938,
-0.3004897237,
0.2491333187,
0.4734849334,
-0.0651878119,
0.10626252,
-0.2993540466,
-0.0737843663,
0.0894061849,
0.5021672845,
-0.1099233851,
0.0021999087,
0.0911851227,
-0.1518817395,
0.4024085999,
-0.0993448719,
-0.0192168243,
0.0537743457,
0.4163767695,
0.1382254809,
0.0518616438,
0.0500767492,
0.0253954865,
0.0496201776,
0.4589374363,
0.0498934016,
0.3490513265,
0.0063808882,
-0.2450547814,
-0.2303170562,
-0.2283508331,
0.0235868637,
-0.0238638204,
0.0090240892,
0.1661867052,
-0.0394499227,
-0.1085366234,
0.0519923195,
-0.5093945265,
0.0178662855,
-0.3958615959,
0.1027715504,
-0.0856779069,
-0.3175868094,
0.0648342073,
0.0358290076,
0.1814566255,
0.0059542945,
-0.0573785305,
0.3696952462,
0.1335145831,
-0.2687819898,
-0.3451559246,
0.2437448204,
0.0348921493,
0.0060793399,
0.0194669906,
-0.3636286557,
0.1999338269,
-0.2298481166,
0.2633122504,
0.3140073419,
-0.2565154433,
-0.1147379354,
0.0411615558,
-0.2615282238,
0.2098860592,
0.0645642057,
-0.1613111794,
0.1803576648,
0.3249888122,
0.0004537041,
0.0708310455,
-0.036963284,
-0.3684689999,
-0.0874768719,
0.2278016359,
0.012238496,
-0.1194059029,
-0.1054247841,
-0.1213167757,
0.1060502306,
0.1194291413,
0.2121363282,
0.2475167215,
0.133479923,
0.0652238429,
-0.0148231117,
0.1242563277,
-0.3287729025,
-0.1415362209,
-0.1527760923,
0.3554347754,
-0.1534024775,
0.1107391268,
-0.0885215029,
-0.147829473,
-0.2959599793,
0.2944549918,
0.4305766225,
-0.1968328804,
-0.1009759679,
-0.3533163965,
-0.041873809,
-0.1448262185,
-0.3894091249,
-0.0849636272,
0.0953137651,
-0.0746298432,
0.7804244161,
0.2613788247,
0.1790023744,
0.4629912972,
0.2231986672,
-0.0111907963,
0.0086196568,
-0.1971977651,
-0.2141995281,
0.1154350489,
0.0944185555,
0.3093770146,
0.1184533611,
0.2321745604,
-0.0511790812,
-0.2368721664,
0.107824035,
-0.2652057111,
-0.1191260442,
-0.0676180646,
0.1537298858,
-0.5521233082,
0.2170709819,
-0.2828331292,
-0.4466588795,
0.3089568317,
-0.1998511851,
-0.1039061323,
0.0575458519,
0.0287180822,
-0.2272473872,
-0.229184106,
-0.1263974607,
-0.1747370064,
-0.3220350146,
0.1404099315,
0.1458328962,
-0.0682673156,
0.4388673007,
0.2785803974,
-0.382553637,
0.0910971388,
-0.2483301908,
-0.3010388911,
-0.5564925671,
0.3111884892,
-0.1494135708,
-0.1545509398,
-0.0209697001,
-0.1006932706,
0.2367001921,
0.71453017,
0.0014573971,
0.2914759815,
-0.0760951564,
-0.1483009905,
-0.038376011,
0.0375674218,
0.5418396592,
-0.2448952496,
0.2498479337,
0.1140444651,
-0.1856473088,
0.15970999,
0.2866009772,
0.4009351134,
0.2772110403,
0.6139820814,
0.1146800071,
0.8872410059,
-0.3230282366,
-0.3530130386,
0.2038477808,
0.0597049892,
0.0461012498,
-0.1533634663,
-0.0043422524,
0.428147316,
0.4057964981,
-0.2340337783,
0.0565506108,
-0.1704076231,
-0.2394574732,
-0.3695572317,
0.0714310184,
-0.3473472893,
-0.1121449545,
0.0824679509,
0.1314639896,
-0.0288002603,
-0.1044372246,
0.1211365014,
0.0069421008,
-0.1989905089,
-0.1880779862,
0.43544209,
0.0926445574,
0.0561245196,
-0.399730891,
-0.1434669346,
-0.3735191822,
0.093716532,
-0.1710083336,
0.2613597512,
-0.0232578572,
0.0718953758,
0.359639585,
0.0759318694,
0.416801393,
-0.0979147851,
0.1123273969,
-0.1094884351,
-0.0538834818,
-0.2615784109,
-0.1849399656,
-0.1586206555,
-0.4113395512,
-0.0098016672,
0.1744082868,
-0.2656903565,
0.0213017762,
-0.1195974573,
-0.2482984215,
-0.0566117615,
-0.1592421383,
-0.1936069876,
-0.2221120447,
-0.3232961893,
0.0619867221,
0.1619877815,
0.1035285443,
-0.1610773206,
0.0532952882,
0.0570745952,
-0.0148694925,
0.2875744104,
0.2513362765,
0.2465611398,
0.2588950098,
0.1504961848,
0.183682099,
-0.3022027016,
0.5362432003,
-0.1622436941,
0.2666840553,
-0.2363554686,
-0.0117458897,
-0.1167998165,
0.1234588921,
-0.0634184107,
0.0496845767,
0.0545563027,
0.0064279404,
-0.0274306182,
-0.1465011984,
-0.0108467741,
0.1814286411,
0.0382845178,
-0.5410439968,
-1.0802184343,
0.1903681606,
0.3028419912,
-0.1298502088,
0.7586438656,
-0.3035857081,
-0.0043945303,
0.423636049,
0.0830993056,
0.7637466192,
-0.2922926545,
-0.203382954,
0.4367136061,
0.2170624286,
0.1630805284,
0.0495185144,
0.5462755561,
-0.4061169922,
-0.4143505096,
-0.0269854497,
-0.1834916323,
0.0943831876,
0.4430632293,
-0.1552719921,
0.2226477563,
0.0186104011,
-0.1358989626,
-0.0702835545,
0.081049934,
-0.2048524916,
0.0815508366,
0.0058759595,
0.1108387634,
-0.2439636588,
0.2806295455,
0.0505445786,
-0.0571791157,
-0.3670105636,
-0.0800879449,
-0.2130448967,
0.1272125244,
-0.1728188097,
-0.1039245278,
-0.2816178203,
-0.1353350133,
0.0687900335,
0.2096083611,
0.5077688694,
0.1432937682,
0.0618175156,
0.2626111209,
0.0739549696,
-0.1254733354,
-0.0339667387,
-0.0409658663,
0.2043833286,
-0.0336339399,
-0.2631892562,
-0.0979689956,
0.3640576899,
-0.7248564959,
-0.4052668512,
-0.1746649444,
0.255079627,
0.179394275,
-0.1126199141,
0.2795416713,
-0.1132465899,
0.1159831136,
0.0910141021,
-0.0799324438,
0.0348879062,
0.251788646,
-0.0340331793,
-0.098007448,
-0.1022258326,
0.3270200789,
0.1678154618,
0.209769696,
0.3061736822,
0.0538999066,
-0.0496066585,
-0.0596297607,
-0.1551050097,
0.117859371,
-0.0458974317,
-0.0972239003,
0.0574453026,
-0.1233144775,
0.3824627399,
0.2345319241,
-0.0655934885,
0.2924665511,
0.2172477841,
-0.589725256,
-0.0509747565,
0.1335227489,
-0.3107297421,
0.1417051256,
0.1097966135,
0.0991507843,
-0.1965574473,
-0.0500787199,
-0.241461888,
-0.02853637,
0.2438213825,
0.1535171717,
0.1518405676,
0.0301707964,
0.07999295,
-0.0992932245,
0.0824376643,
0.1317383349,
-0.1655622125,
-0.0888627544,
0.0432297997,
0.0811357126,
0.2323165685,
0.1018949822,
-0.1587357819,
-0.5502097011,
-0.2331133485,
-0.1039925441,
0.0548733585,
0.4458006918,
0.0624444373,
0.153754279,
0.816564858,
0.4594485164,
-0.0468276776,
0.2826249301,
-0.303655535,
-0.1551716924,
0.0453592539,
-0.0843904614,
0.0835879147,
-0.0288568102,
-0.553083539,
-0.2456218004,
-0.1104246899,
-0.020863371,
0.2164393514,
-0.1118872613,
0.1159108058,
0.2026196867,
0.2151465714,
0.2977577746,
0.1507703364,
-0.2387459129,
0.3857280612,
0.1774681211,
0.0762747675,
0.0942931324,
0.087218143,
0.4449035227,
0.0488525182,
0.2637328207,
-0.2752607763,
-0.3965365291,
-0.3330910206,
0.0899169818,
0.4578505456,
-0.4908407331,
0.3078707159,
0.1843551993,
-0.0155404201,
-0.1607223004,
0.0816479176,
0.0181554668,
0.0323113054,
0.146474421,
0.0237532984,
0.2843397856,
0.1885382384,
-0.1568904817,
-0.0847818255,
-0.3486174643,
-0.2918938696,
0.7141582966,
-0.1767002791,
0.2091707885,
0.2977910638,
0.2677811682,
0.1328718811,
0.0064645526,
0.0997217447,
0.021624228,
-0.1695967019,
0.2545373142,
-0.4078199267,
-0.1922161281,
-0.1363783032,
-0.1428140849,
-0.1083565354,
0.0413888805,
0.3476502597,
0.0592193902,
-0.2778972387,
-0.0720924586,
-0.3138548434,
0.402662307,
0.0394626595,
0.0047958605,
0.1703039408,
-0.2112157345,
-0.2643458247,
0.6609690189,
0.0015210913,
0.1338515282,
0.4175255597,
0.12880449,
0.2596209049,
-0.0248108823,
-0.2193270624,
0.2074462324,
0.179984048,
0.5061831474,
0.0677462593,
-0.0868812203,
0.1744316369,
-0.0787592754,
0.0454316325,
0.0781333074,
0.5217010975,
-0.267285049,
0.0767547712,
0.0434464701,
0.1062495038,
0.1414201707,
0.0462317131,
-0.330640465,
0.1009453386,
-0.4752770364,
-0.0678263009,
0.0255445316,
0.0667861551,
-0.0065077986,
-0.0348792523,
0.0346263796,
0.0940331519,
-0.370652914,
-0.0032608714,
-0.3976332247,
-0.4175264239,
0.0983737707,
-0.0486317091,
0.0690124109,
-0.2239976078,
0.2311495543,
0.2991920412,
-0.0187727828,
-0.0545409285,
0.0081293806,
-0.0669474825,
0.3860739172,
-0.270565778,
0.0497124605,
-0.3704120517,
0.0301732179,
0.1646139175,
-0.1682937443,
0.198719576,
0.1453208923,
-0.0244066957,
-0.0999524742,
0.2395855188,
-0.0390979387,
-0.2174384445,
0.0375292413,
-0.0112724928,
0.3982434869,
-0.1108963266,
0.102721177,
-0.1268588006,
-0.1312952787,
-0.5119925737,
0.0857138559,
-0.081327185,
0.4255470335,
-0.0233871136,
-0.2648216188,
-0.397942245,
0.4278890491,
-0.2156172842,
-0.3002799749,
-0.2899360061,
0.3450370729,
0.1262329668,
0.3591562808,
-0.016963331,
0.0757392049,
-0.0092609115,
-0.0694119632,
-0.1976411939,
-0.1824422032,
0.6684948206,
-0.3057695031,
-0.0798937157,
-0.4659475088,
0.0939514264,
-0.0872720405,
0.0380333997,
-0.091117911,
0.1995577663,
0.0209581517,
0.1984917521,
0.1439947635,
0.2223772407,
0.1808537096,
0.0005034555,
-0.0991007909,
0.1144849211,
0.1380203366,
-0.3079783618,
-0.0292006917,
-0.2287410647
] |
https://github.com/huggingface/datasets/issues/1610 | shuffle does not accept seed | Thanks for reporting !
Indeed it looks like an issue with `suffle` on `DatasetDict`. We're going to fix that.
In the meantime you can shuffle each split (train, validation, test) separately:
```python
shuffled_train_dataset = data["train"].shuffle(seed=42)
```
| Hi
I need to shuffle the dataset, but this needs to be based on epoch+seed to be consistent across the cores, when I pass seed to shuffle, this does not accept seed, could you assist me with this? thanks @lhoestq
| 36 | shuffle does not accept seed
Hi
I need to shuffle the dataset, but this needs to be based on epoch+seed to be consistent across the cores, when I pass seed to shuffle, this does not accept seed, could you assist me with this? thanks @lhoestq
Thanks for reporting !
Indeed it looks like an issue with `suffle` on `DatasetDict`. We're going to fix that.
In the meantime you can shuffle each split (train, validation, test) separately:
```python
shuffled_train_dataset = data["train"].shuffle(seed=42)
```
| [
-0.1347802728,
-0.2200723886,
-0.072142154,
0.0236784965,
0.2914152741,
0.0666156635,
0.1913044006,
0.1325147003,
-0.1194048673,
0.3138945699,
0.1347433031,
0.3167940974,
-0.3220254481,
0.3731395304,
-0.2299949676,
0.0033440047,
0.112275131,
-0.0262984671,
0.1395088881,
-0.0770237297,
-0.2660178542,
-0.10385786,
-0.4424049258,
-0.3410610557,
-0.2854550481,
0.0956010818,
-0.1741221994,
0.1295313686,
-0.2702618539,
-0.0985723883,
-0.0670805126,
0.3628924489,
-0.0091067022,
0.5489265919,
-0.0001074182,
-0.0270826593,
-0.0419338271,
-0.1488699317,
-0.1034157947,
0.0203135908,
-0.3263736963,
0.5454819202,
-0.416084528,
-0.1584909409,
-0.4424955249,
-0.0373892374,
-0.1593661159,
-0.0691396073,
0.3702381551,
0.110146746,
0.2067460269,
0.0331087969,
0.0294009559,
-0.0273066778,
0.2497342825,
0.0464596115,
0.0437576994,
0.0516144261,
0.0109907379,
0.0839250311,
-0.0199914463,
-0.0127110351,
0.2320573032,
0.2207105756,
0.2102142721,
-0.2231945693,
0.0342872553,
-0.2530643642,
-0.0665040389,
0.1607749462,
0.2795596421,
-0.1354096383,
-0.369717747,
-0.1066209525,
-0.0143135116,
-0.6579857469,
-0.0505809486,
0.3136816025,
-0.024707349,
0.03235301,
-0.0712477863,
0.1344082952,
-0.0298695546,
-0.0848141164,
0.0765893906,
0.6997161508,
0.0725432783,
0.0611056834,
0.4235510528,
0.0133902896,
0.1375877261,
0.0112709515,
-0.0726984069,
0.1279780716,
-0.3236719668,
-0.2280355543,
-0.2975527346,
0.2766512334,
0.1149019077,
0.1078326628,
-0.0889403969,
0.2085073292,
0.086467661,
0.1739784628,
0.1651336551,
0.2276165336,
0.0355327949,
0.3068230748,
-0.0154892169,
0.096988529,
-0.1259658933,
0.1423597187,
0.0188585017,
-0.2953653038,
-0.0575612076,
0.1596961021,
-0.2405928224,
-0.1067027897,
-0.2917692959,
-0.3292224407,
-0.299562782,
-0.2655611932,
0.2093192339,
0.30327335,
-0.0809737742,
0.0591247492,
-0.0797597617,
0.113650769,
-0.0517724976,
-0.250048548,
-0.4315811694,
0.0078701954,
-0.3319697082,
0.1614773273,
0.0961487591,
-0.2158619165,
0.3259159029,
0.3171095252,
0.0427008197,
-0.1045704931,
-0.0938387215,
-0.0080860239,
0.0616392307,
0.0213755388,
0.0275104921,
-0.0125423828,
0.1469461024,
-0.0121894544,
0.1084213182,
0.2525427043,
-0.3640216589,
-0.2342911661,
0.4208705425,
0.2410046011,
-0.1537893116,
-0.0020531749,
-0.3313788474,
0.0717514083,
0.1327171624,
0.102040872,
-0.1301136911,
-0.1859662384,
-0.2507870197,
-0.1024176478,
0.4589521289,
-0.1903231144,
-0.0930916965,
-0.0459463745,
0.1666831523,
0.0458180718,
0.2529373467,
0.5030997992,
-0.0493667014,
-0.0394227318,
-0.0561050102,
0.059185002,
0.1244837791,
0.0668548793,
-0.2905213535,
-0.2616110742,
-0.1367257982,
-0.1420553923,
-0.0962352082,
0.0116052143,
0.1021193564,
-0.2010554671,
0.3246788681,
0.3828469813,
-0.2970030904,
0.1307126582,
-0.4009950757,
0.0544541627,
0.1685844362,
0.4805800021,
0.0144609297,
-0.0717337206,
-0.1493745297,
-0.1211036816,
0.4762870967,
0.0101420954,
-0.0293444116,
0.0018909702,
0.2415615469,
0.1914941519,
0.1795388609,
-0.0784265846,
0.2410699129,
0.1030149534,
0.3657624125,
0.052409485,
0.3203824461,
-0.1304527819,
-0.3920788467,
-0.2696311474,
-0.3058216274,
-0.1071615219,
0.1618438512,
-0.170145154,
0.2359348536,
-0.1054814979,
-0.0968540162,
-0.1355862916,
-0.2334573567,
0.0112656066,
-0.3087716997,
0.0612225123,
-0.1350716949,
-0.292390734,
0.0529397875,
0.1395293623,
0.1020693406,
0.0419108905,
-0.1187906489,
0.409160167,
0.3247663081,
-0.4278874099,
-0.3233826458,
0.0829121917,
-0.0699155182,
0.1035030112,
-0.1071639135,
-0.0716487393,
0.1234955192,
-0.2072859108,
0.1270311028,
0.4635506272,
-0.3934854865,
-0.1097530648,
0.0302340724,
-0.1540513635,
0.2201209664,
0.0589881949,
-0.2735132277,
0.0595620312,
0.3338585496,
-0.2367124707,
0.1785191596,
-0.0354736596,
-0.2713890374,
-0.1414782107,
0.3098218441,
-0.0125955641,
-0.1193341166,
-0.2523323894,
-0.1314132214,
0.1176526845,
-0.0989533514,
0.2911099195,
0.275636673,
0.2380651087,
-0.0021678673,
0.0973027647,
-0.0231641885,
-0.2529579699,
-0.2076811343,
-0.12586914,
0.2291232795,
0.0015446028,
0.0062873787,
-0.0961296409,
-0.1727614403,
-0.0996154025,
0.2327682525,
0.3319705129,
-0.2466631979,
-0.1438865066,
-0.3990577757,
0.1052869558,
-0.3117462993,
-0.2747050822,
-0.144182533,
-0.1001657397,
0.180894658,
0.4816630185,
-0.042436786,
0.2302292287,
0.2112179101,
0.0923640355,
0.0213203542,
0.2123742104,
-0.0577037856,
-0.2570916712,
0.0187982433,
0.1791385263,
0.2132531255,
0.1310416311,
0.3282648027,
-0.0926306471,
-0.2903422117,
0.1300689131,
-0.1519546509,
-0.1913876235,
-0.1818301976,
0.1780182719,
-0.3300057054,
0.1186375171,
-0.1865495294,
-0.305054605,
0.3582510948,
-0.2353467196,
-0.132714808,
0.0911905468,
0.1785440296,
-0.1751644611,
-0.1757030189,
-0.2797608972,
-0.1637221724,
-0.2218893021,
0.1413852572,
-0.1268425435,
-0.1260430366,
0.1422860175,
0.0657181069,
-0.4844718575,
-0.0367814563,
-0.3342332244,
-0.2686417401,
-0.4810954332,
0.1757562459,
-0.1975928694,
-0.1893900782,
0.0030246894,
-0.085168086,
0.0662165284,
0.4775413573,
0.0966282859,
0.2267087102,
-0.1116107851,
-0.1041983739,
-0.1159766093,
0.0072134132,
0.480600208,
-0.175493449,
0.1418780386,
0.0142325694,
-0.2586213052,
0.2727109194,
0.2904882133,
0.3311958909,
-0.0986542776,
0.4549438059,
0.173404932,
0.9153649211,
-0.2347605377,
-0.0158349648,
0.0745361894,
0.0564704612,
-0.0724045038,
-0.1511096209,
-0.0849985033,
0.3989591002,
0.2620503902,
-0.3004077673,
0.1801550984,
-0.0649494529,
-0.0543624274,
-0.153641507,
0.0852355585,
-0.1919071823,
-0.1828248203,
0.076291427,
0.0657035336,
0.0463275984,
-0.0170308184,
0.2455510646,
0.1083478928,
-0.0097481292,
-0.1477895826,
0.1956630498,
0.1891008168,
-0.0157258362,
-0.4418316782,
-0.2630489767,
-0.1869142354,
0.0048828307,
-0.0347099341,
0.1843192726,
0.0014081083,
-0.1263061762,
0.2360401899,
0.082239911,
0.5527575016,
-0.0894093663,
0.2011178732,
0.0401280932,
-0.0949511603,
-0.2554174066,
-0.4019103944,
-0.2634100616,
-0.378281951,
-0.0155930826,
0.2363536805,
-0.2493739426,
0.0023535427,
0.0031835199,
-0.0522734895,
-0.0939384699,
-0.2544519603,
-0.2734541595,
-0.1572751552,
-0.2095813602,
0.3014731407,
0.2451577336,
0.0709424615,
-0.3887239993,
0.2107310295,
0.0932001323,
0.0424989499,
0.1839704961,
0.2184978575,
0.3024267256,
0.0780555233,
0.2418815345,
0.2548442483,
-0.2479173243,
0.3776125312,
0.0538220406,
0.036332313,
-0.1269842833,
-0.0503965169,
-0.183057636,
0.077540271,
0.0398916081,
0.1088714823,
0.0034360175,
0.1038621888,
0.1826263815,
-0.3009644449,
0.1088772044,
0.2284184247,
-0.0530880168,
-0.4583853483,
-0.9026973844,
-0.0421937741,
0.2998147309,
-0.0727343187,
0.4875212014,
-0.1272338927,
-0.0758399367,
0.5407731533,
-0.0338573791,
0.5933588743,
-0.2362514138,
-0.0324079692,
0.3630939126,
0.273062259,
-0.093032755,
0.1895395517,
0.519641757,
-0.3974260688,
-0.5951381326,
0.0554495901,
-0.0291509517,
0.0199194178,
0.4732428193,
-0.1833690703,
0.3339937627,
0.1241818443,
-0.0870802402,
-0.2090522796,
0.0343967825,
-0.0963271633,
0.1541953534,
-0.1947225928,
0.232365191,
-0.0871944427,
0.2187416106,
0.0684456527,
-0.0216793194,
-0.2913122475,
-0.2065160871,
-0.1912406236,
0.0320256427,
-0.0968426391,
-0.0009725146,
-0.2653569579,
-0.0049359016,
-0.0882458985,
0.0100509571,
0.3758585155,
0.2907516658,
0.0881947055,
0.2946350873,
0.2940894663,
-0.0657180473,
-0.0618020594,
-0.0307536852,
0.2619324923,
-0.0523354746,
-0.2637942731,
-0.2150696963,
0.1631854624,
-0.6124824286,
-0.4894149899,
-0.150223881,
0.0032474285,
-0.1396194249,
-0.1096209064,
0.1575689167,
0.1193601266,
-0.1767696142,
0.1998735964,
0.0432941504,
-0.1546568125,
0.4796594679,
0.021159919,
-0.1229074299,
-0.156374082,
0.2903962433,
0.028807696,
0.2739140689,
0.3979179561,
0.0208079889,
0.0969828069,
-0.2394680679,
0.0971229598,
0.2445237488,
-0.0370603167,
0.1178648621,
0.0201309249,
0.0256517474,
0.2794485986,
0.1686087698,
0.0359275229,
0.1518794298,
0.1496251225,
-0.3598165512,
-0.1710111648,
0.1275084764,
0.0513405167,
0.2123152912,
0.041296687,
0.3212029636,
-0.2519977391,
0.1561410427,
-0.3886309564,
-0.0051877429,
0.0066386899,
0.2691411376,
-0.0974373594,
-0.1446210444,
-0.0377121978,
-0.0845918804,
0.2287063599,
0.0854055658,
-0.144792676,
-0.2572973073,
0.0149828903,
0.0022738914,
0.1695060432,
0.1784312874,
-0.0713164061,
-0.2094128579,
-0.3208102584,
-0.1243992299,
0.1283064336,
0.3556048274,
0.0702230334,
0.3206743598,
0.8912526965,
0.4156524241,
0.1616137177,
0.2012947947,
-0.2163656056,
-0.2438074797,
0.0597874485,
-0.0579314344,
0.0938091576,
0.0217380505,
-0.383736819,
-0.2344220728,
-0.0374069288,
0.026762573,
0.1878927499,
-0.2423617691,
0.1023166701,
0.1466930062,
0.5108510852,
0.4725431204,
0.1019660458,
-0.0770141929,
0.463763833,
0.3311003447,
-0.0307500456,
0.1320495754,
0.2979551256,
0.3410885036,
0.1816856563,
0.1704536676,
-0.3494712114,
-0.1290711313,
-0.4043286443,
0.1619679183,
0.2966356575,
-0.4832226932,
0.2506628633,
0.3737598658,
-0.0283313598,
-0.1797100902,
0.0534490198,
-0.2817391753,
0.0561127961,
0.0431376211,
0.1456337571,
0.4172181189,
0.1747665852,
-0.1647615433,
0.0128788864,
-0.3011213541,
-0.3469184041,
0.5019988418,
-0.155495882,
0.156652838,
0.1851504892,
0.3819939792,
-0.2040082216,
-0.2225101441,
-0.0756683722,
0.0416099615,
-0.1850989461,
0.1485216916,
-0.2696807384,
-0.1130307317,
-0.1673608422,
-0.0102917925,
-0.1045154557,
0.1405153275,
0.3648934066,
-0.0483915024,
-0.2564622164,
-0.2033609301,
-0.3666357696,
0.3606002331,
0.1531333178,
-0.0168157388,
-0.0943886638,
-0.0686605796,
-0.309145391,
0.8062518835,
-0.0120766601,
0.1151585728,
0.2985972166,
-0.1529328525,
0.1008981839,
-0.1636232287,
-0.2112579495,
0.049559541,
0.2045856118,
0.3445228338,
0.0160696935,
0.2288039029,
0.2510470748,
-0.1658211946,
0.0390936024,
0.017441636,
0.4443408847,
-0.2231723517,
0.2361671031,
0.2337808609,
0.055470936,
0.1201833561,
-0.0006372373,
-0.2975918353,
0.1300689131,
-0.5377177596,
0.0589532517,
0.0563984029,
-0.0056588748,
0.0871114209,
0.0090973154,
0.3264143467,
0.0765326992,
-0.3135472834,
-0.0910586715,
-0.248868838,
-0.5535825491,
0.0051720762,
-0.1529158056,
0.0167998094,
-0.169696182,
0.1382553279,
0.1882765889,
0.061384201,
0.0348904915,
-0.0258208625,
-0.0900949836,
0.5307038426,
-0.3389757276,
0.1713409424,
-0.1916726828,
-0.0322595537,
0.2219175547,
-0.1237614974,
0.1312694252,
0.283796221,
0.0880218446,
0.1741428822,
0.0920335576,
0.0519974232,
-0.124101229,
-0.0937303603,
0.0602676421,
0.3613374829,
-0.106892474,
0.2886893153,
-0.2155926973,
0.0198511388,
-0.618888855,
-0.0410013758,
0.0147863142,
0.4648216963,
0.0527440347,
-0.2882522345,
-0.3264466822,
0.4086206555,
-0.1227189973,
-0.1337551773,
-0.2514203787,
0.3094483316,
0.3073424697,
0.2038547993,
0.0057367845,
0.2329698801,
-0.0372580774,
-0.0484104827,
-0.054976631,
-0.1712822169,
0.6249597669,
-0.1791591197,
-0.1430868804,
-0.5323911309,
0.0688989535,
-0.019284321,
-0.0696749836,
-0.0515772142,
0.0550969876,
0.0012229146,
0.1214959621,
-0.0043942221,
0.2406890243,
0.0904306248,
-0.0547528788,
-0.0096147088,
0.1765804738,
0.108349137,
-0.3192109466,
0.1146694496,
-0.261470288
] |
https://github.com/huggingface/datasets/issues/1609 | Not able to use 'jigsaw_toxicity_pred' dataset | Hi @jassimran,
The `jigsaw_toxicity_pred` dataset has not been released yet, it will be available with version 2 of `datasets`, coming soon.
You can still access it by installing the master (unreleased) version of datasets directly :
`pip install git+https://github.com/huggingface/datasets.git@master`
Please let me know if this helps | When trying to use jigsaw_toxicity_pred dataset, like this in a [colab](https://colab.research.google.com/drive/1LwO2A5M2X5dvhkAFYE4D2CUT3WUdWnkn?usp=sharing):
```
from datasets import list_datasets, list_metrics, load_dataset, load_metric
ds = load_dataset("jigsaw_toxicity_pred")
```
I see below error:
> FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/jigsaw_toxicity_pred/jigsaw_toxicity_pred.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/jigsaw_toxicity_pred/jigsaw_toxicity_pred.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 jigsaw_toxicity_pred/jigsaw_toxicity_pred.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/jigsaw_toxicity_pred/jigsaw_toxicity_pred.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/jigsaw_toxicity_pred/jigsaw_toxicity_pred.py | 46 | Not able to use 'jigsaw_toxicity_pred' dataset
When trying to use jigsaw_toxicity_pred dataset, like this in a [colab](https://colab.research.google.com/drive/1LwO2A5M2X5dvhkAFYE4D2CUT3WUdWnkn?usp=sharing):
```
from datasets import list_datasets, list_metrics, load_dataset, load_metric
ds = load_dataset("jigsaw_toxicity_pred")
```
I see below error:
> FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/jigsaw_toxicity_pred/jigsaw_toxicity_pred.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/jigsaw_toxicity_pred/jigsaw_toxicity_pred.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 jigsaw_toxicity_pred/jigsaw_toxicity_pred.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/jigsaw_toxicity_pred/jigsaw_toxicity_pred.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/jigsaw_toxicity_pred/jigsaw_toxicity_pred.py
Hi @jassimran,
The `jigsaw_toxicity_pred` dataset has not been released yet, it will be available with version 2 of `datasets`, coming soon.
You can still access it by installing the master (unreleased) version of datasets directly :
`pip install git+https://github.com/huggingface/datasets.git@master`
Please let me know if this helps | [
-0.1765046716,
-0.0736372247,
-0.0608392805,
0.2410437912,
0.3765498102,
0.2648485005,
0.1960250586,
0.0077843121,
-0.1372361928,
0.1830357313,
-0.2765670419,
0.3002050519,
-0.095456101,
0.0872111395,
-0.1608524472,
0.153254047,
0.0479024798,
0.2332412302,
-0.1677390784,
0.2624705136,
-0.1808017939,
0.1098074913,
-0.2976607382,
0.1541488171,
-0.4638725817,
-0.1733399183,
0.0785698593,
0.4033994675,
-0.145351842,
-0.3795205951,
0.573025465,
-0.046871718,
0.1658123881,
0.7571411729,
-0.0001131657,
0.3079265952,
0.4039506018,
-0.0776424855,
-0.3698794842,
-0.582331717,
-0.5913625956,
-0.1218550727,
0.1567144841,
-0.1497647166,
-0.3388912976,
-0.0401688255,
0.1544191241,
-0.3331000805,
0.3245489001,
0.3865213692,
0.2066323459,
0.3872399032,
0.1222633421,
-0.3384931982,
-0.0258550886,
0.2666292489,
-0.1972865611,
0.6044800878,
0.3443885744,
-0.0438173711,
0.282027483,
0.0967955515,
-0.0518094413,
0.1000471339,
0.0944560915,
0.0319420807,
-0.1402040124,
-0.3953694999,
0.3337982893,
0.486774236,
0.288289398,
-0.395435214,
-0.2368729115,
-0.1654327214,
-0.0092284838,
-0.2622864544,
-0.0164641645,
0.0009510767,
0.0711011365,
0.1785692871,
-0.0229120143,
0.1373263747,
-0.1632054299,
0.2048935443,
0.2333354056,
0.3115941286,
-0.2750919461,
0.0986384675,
0.1140072346,
-0.4757561386,
0.1821380258,
0.0530637391,
-0.0555827469,
0.0987117887,
-0.359921962,
0.1672171354,
-0.1756780446,
0.2006392777,
0.2447078824,
-0.4047557414,
0.0635225177,
-0.1541945487,
-0.0503103919,
0.0883154795,
0.1189346686,
0.0482752584,
0.1448552161,
0.4108528495,
0.2634600401,
0.5451506376,
-0.2810817957,
-0.1524790525,
-0.1094568893,
-0.2906464636,
-0.0365779027,
-0.2321510762,
0.468872577,
-0.3515864313,
-0.4451786578,
-0.3080200553,
-0.1883711368,
0.1652938128,
0.3322094977,
0.4939047396,
0.1570606232,
-0.1572115868,
-0.0750434473,
0.3428778946,
-0.0558865778,
0.1293444335,
-0.2999330461,
0.2289604247,
-0.2291100323,
0.0647560954,
0.1287430376,
-0.4026709497,
0.4692713022,
-0.123079665,
0.1983291954,
-0.0562336408,
-0.1611507237,
-0.1195022091,
-0.138010636,
0.2486633509,
0.0260710418,
0.0224839803,
0.0836296752,
-0.0628133193,
-0.0675120875,
0.0591871142,
-0.3778593242,
-0.4255343378,
0.0368448794,
0.14833121,
-0.4374784827,
-0.1637426615,
0.0553642511,
-0.1182391346,
0.1565731615,
-0.1337582916,
-0.1645389348,
-0.0758991614,
-0.4998378158,
-0.2826629579,
0.1935236603,
0.4830062985,
-0.2996082008,
0.042469658,
-0.3080743253,
-0.0867860317,
0.1806526482,
0.1393010616,
-0.3239139915,
0.0703094527,
-0.2412338257,
-0.0015096541,
0.3545081019,
-0.5732679963,
-0.2533681393,
0.1079820395,
0.0063854582,
0.0841248482,
0.1747066677,
-0.3414483368,
-0.2044880986,
-0.1492322683,
0.1607512683,
0.0345813408,
-0.025169922,
-0.1039274484,
0.0745943114,
-0.300321579,
-0.0428004786,
0.2549881935,
-0.0014976624,
0.1789636761,
0.3371899724,
-0.0854068473,
0.1417763382,
-0.1695163101,
-0.0791049898,
0.1477522254,
0.0044922102,
0.0200522915,
-0.0354111008,
-0.0347733013,
-0.2954500616,
0.2822985947,
-0.1452668011,
-0.0098494906,
-0.3215233982,
-0.0616943017,
-0.56919837,
0.097144492,
-0.232628867,
-0.0552994534,
0.1148717478,
0.0202194396,
0.0741455629,
0.2099335194,
-0.0664540306,
0.3034049571,
-0.1201205999,
0.073621951,
-0.3704355061,
0.1775776893,
-0.1285681576,
-0.3357837498,
0.1636983752,
0.2939184308,
0.2214094102,
-0.1230491325,
-0.051559411,
0.2560582459,
0.0073536597,
0.0841374993,
0.2337303609,
0.2524306178,
0.1431985497,
-0.1125040874,
0.2018993795,
-0.0870920941,
0.3635495901,
-0.0120473169,
0.1510168463,
0.4019839168,
-0.2108748555,
0.2795546055,
0.0922547951,
-0.0128320875,
0.2691123486,
-0.0919804648,
0.039213039,
-0.3684936762,
0.1300257444,
-0.0169999823,
0.142750755,
0.1186894551,
-0.3156520426,
0.035344068,
0.1817990988,
0.0676590428,
0.0262174532,
0.0059772381,
-0.1093193814,
0.0335146263,
0.2066026777,
0.0760382861,
0.5343499184,
0.2244420201,
0.0346317217,
0.0732099265,
0.0326733887,
-0.3638686836,
0.0351182856,
0.1861790121,
0.4019531012,
0.1055076495,
0.1796161234,
-0.1125293002,
0.0497631393,
-0.0733932555,
0.0133890128,
0.3247943223,
-0.2611782849,
0.4062214494,
-0.6884022355,
-0.8490626216,
0.0187444948,
-0.1318324059,
-0.0035040884,
-0.1434836984,
-0.2425691634,
-0.0528351031,
0.0637289211,
0.259005934,
0.0430169925,
0.0015330311,
-0.1681164801,
-0.2226400524,
-0.0675635636,
-0.2243785858,
-0.2410757691,
0.1178558171,
0.2741014361,
0.0301817656,
0.3007186055,
-0.2623437643,
-0.0789949372,
-0.1063172892,
-0.0491985083,
0.1852879822,
0.0297127292,
0.5172260404,
0.2643104494,
0.0573488474,
-0.2321600765,
-0.3317304254,
0.3848646283,
-0.230598852,
0.0403686762,
-0.0265580192,
-0.4671977162,
-0.0780435875,
0.0726626515,
0.013414993,
-0.3836219609,
-0.3464674354,
-0.2247264981,
0.152038753,
-0.0058446079,
0.4043495953,
0.1393467635,
0.3607224226,
-0.0079635978,
0.1871720999,
-0.1175752953,
-0.7591183186,
0.3459429741,
-0.1522509158,
-0.1781123728,
0.2786599398,
-0.1888880283,
0.3604362905,
0.0063016801,
-0.2204870135,
-0.3749679029,
-0.0712205619,
0.0595394634,
0.2680720389,
0.1431832761,
-0.0766408816,
-0.2826040685,
0.029541336,
-0.2402923256,
-0.3323747814,
0.1549115032,
-0.0324948132,
0.4485780895,
0.2557004392,
0.2735060751,
0.0265373848,
0.5264338255,
0.2063238919,
-0.3104102314,
0.5608503222,
-0.2335515767,
0.5399403572,
-0.2854922712,
-0.3986565769,
-0.0295693371,
0.2363220751,
0.1110219955,
0.0497977957,
0.0686875954,
0.0622299761,
-0.371165365,
-0.2727767229,
-0.4604557455,
-0.220837146,
-0.1248243153,
0.0627702326,
0.0486790873,
0.1545644701,
-0.1930722147,
-0.0020580371,
-0.2547898293,
-0.1212506741,
0.5862548947,
0.0754127428,
0.0770377517,
0.4145720601,
-0.0855183452,
-0.4037939012,
0.4634937346,
-0.0040489533,
0.1948734373,
-0.1834439933,
0.0782376677,
0.110506773,
0.0581072159,
0.3156017661,
-0.1711796373,
0.2286424935,
0.2236149609,
-0.3791864514,
-0.1125553548,
-0.0982642919,
-0.0389822908,
0.218047142,
0.3534884751,
0.0354409888,
-0.1983341426,
-0.1873650402,
0.4676230848,
0.135023132,
-0.0776863769,
-0.228484273,
-0.3260592222,
-0.3493531644,
-0.3408051729,
-0.2839422822,
0.0043524955,
0.2995138764,
0.265326798,
0.0243892279,
-0.1407869458,
-0.1731911898,
0.0951181874,
0.362818867,
0.285458684,
0.0919266567,
0.2089342326,
0.266697228,
-0.0291622672,
0.4811290205,
0.7712756991,
-0.1457219571,
-0.6279445291,
-0.1264192611,
0.2441602647,
0.1976392269,
0.2365237623,
-0.1961035132,
-0.0069629662,
0.0578687713,
-0.1744997501,
0.0216789376,
0.397003293,
0.1860410571,
-0.0640664399,
-0.5427676439,
-0.3402173817,
0.2356944978,
0.1827406883,
-0.023855038,
0.1901600212,
0.1988546252,
-0.2527967989,
0.2567956746,
0.0346994549,
0.7595463395,
-0.174494192,
-0.0428737625,
0.1884582639,
0.1158022657,
0.5992562771,
0.1882606745,
-0.0707108974,
-0.2075581849,
-0.2978476882,
0.1058530509,
-0.1279861033,
0.398643434,
0.0456817485,
-0.1773798615,
0.5035871863,
-0.152117759,
0.169040814,
-0.0002238423,
0.2144716382,
0.2041130066,
-0.1077795029,
-0.2365302891,
0.1485312283,
-0.0898998529,
0.1902942955,
-0.222971499,
-0.1885848641,
-0.2068695724,
-0.0418124571,
-0.3231394589,
-0.0133276246,
-0.2607424259,
0.0772031173,
-0.0433274992,
-0.4872073829,
0.138526395,
0.2872035801,
0.279892683,
0.1584499776,
-0.2362881303,
0.2044304013,
0.038875021,
-0.3264046013,
-0.3186454177,
0.0816774592,
0.3960490227,
-0.0962191299,
-0.1998082548,
-0.0842521638,
0.1123977154,
-0.2109317034,
0.0993195549,
-0.0172653403,
-0.3980229795,
-0.2877752185,
-0.2272580415,
-0.1440539211,
0.2280878276,
-0.123833999,
0.109235473,
0.3238577247,
-0.1020536423,
-0.0421347693,
0.0472227186,
-0.3129553497,
-0.1615104824,
0.2259004414,
-0.0680495203,
0.1246454418,
0.2166643292,
0.1262737662,
-0.123975195,
-0.1283406019,
0.0159241967,
0.1105413064,
0.08091636,
0.1783045083,
0.3882919252,
0.1421784014,
0.0456433482,
0.1837658435,
0.2708907425,
-0.2175179124,
0.0005882954,
-0.600910008,
-0.3271937072,
0.0152040478,
-0.1389220953,
0.1773630083,
-0.1620714813,
0.3467488885,
0.0747588798,
-0.0876116902,
-0.2790809274,
0.1054971293,
-0.2524273694,
-0.0330541469,
0.3787258565,
0.0321674719,
0.188218236,
0.060491167,
0.1364926994,
-0.0075699631,
-0.1669652313,
-0.2190153301,
-0.0968083292,
0.1552595943,
0.0360926613,
-0.3246732056,
-0.1140928492,
-0.2800058722,
-0.109116897,
-0.1485864669,
0.2010943443,
0.2201133519,
0.0697048381,
-0.0142666493,
0.2874356508,
0.0023167641,
0.1829188764,
0.2478022426,
0.0227183085,
0.1067923084,
0.227969721,
0.0498297028,
0.0790782347,
-0.0503814183,
0.4414778352,
-0.276581496,
-0.1662035435,
-0.062241409,
0.2666521072,
-0.0797385275,
0.0001470329,
0.1708435565,
0.2072011828,
0.5527579188,
-0.0051489854,
0.2276041955,
0.2421131581,
0.060085386,
-0.268250227,
0.0043664942,
0.2005745322,
0.2052977085,
0.0675548986,
0.3758973181,
0.129562065,
0.2704565227,
0.0920098051,
-0.0519320145,
0.4057395458,
0.0340242535,
0.2595989704,
0.0937979966,
-0.0268633757,
0.0012689906,
0.27606529,
0.1775624454,
0.3242694438,
0.2217544466,
-0.3799787462,
0.4237820804,
-0.179727748,
0.245271191,
0.1152561307,
-0.4413738549,
0.2160059512,
0.1960760355,
-0.1192199811,
-0.1913730949,
-0.0185452998,
0.2208848596,
-0.2242120057,
0.173116073,
-0.1550617069,
0.1390931159,
-0.1601520032,
-0.1405976415,
0.037608508,
-0.2851134241,
0.0589859299,
-0.1458445936,
-0.0228641704,
-0.1104945615,
-0.1318606585,
-0.1499730647,
-0.1587032974,
-0.0365961343,
0.2429275364,
0.3049746156,
-0.0171865951,
0.0441879444,
0.3076302409,
0.0726318136,
0.0201909449,
0.211866051,
0.3601760268,
0.6329971552,
0.1458146721,
0.0199770853,
-0.0067219594,
-0.1254882216,
-0.2086035162,
-0.0578629933,
0.4039763212,
0.0339971483,
0.1046545729,
0.3079672754,
0.1693716794,
-0.1694275737,
0.0600411929,
0.0038522128,
0.0138386413,
-0.1192600876,
0.0365675166,
-0.0875125602,
0.0739950612,
-0.0295901354,
0.1677488834,
-0.3000259697,
0.3487206399,
0.1864138246,
-0.2913650274,
0.216750145,
-0.0426209047,
0.0767088905,
0.1015828699,
0.4885879755,
0.1608779579,
0.3075761497,
-0.3083045781,
-0.0974687859,
-0.6733788848,
0.0455203056,
-0.0631600395,
-0.1657151729,
0.0463937297,
-0.1422863156,
-0.2273872048,
0.1067601591,
0.325347811,
0.0365947075,
0.2370184511,
-0.0189557262,
-0.1790111512,
-0.4035905302,
-0.0597982928,
-0.4032367468,
0.0397740752,
-0.0347359851,
-0.017281713,
-0.2817718089,
-0.0508394502,
-0.1897327006,
-0.1833551675,
-0.0974666849,
-0.1760173738,
0.254519701,
0.1525192857,
0.4518978298,
-0.0744165108,
0.2492252588,
-0.3362925649,
-0.439593792,
-0.3038598001,
0.2104604989,
0.1770780832,
0.0404431783,
-0.3705195785,
-0.1775514781,
-0.2045306563,
-0.1834141761,
-0.1058305576,
-0.1154194549,
-0.1602140963,
0.1122980863,
-0.1001880765,
0.0281389486,
-0.0156753268,
0.2281955183,
-0.1216266379,
0.1054664105,
-0.0954064429,
-0.1676406562,
0.7022176385,
0.0512890331,
-0.0614528991,
-0.1471152455,
-0.0944871008,
-0.0570843071,
-0.1484264582,
-0.4888678193,
0.2672984302,
0.3948301971,
0.0416905619,
-0.1083307415,
0.2988126576,
-0.1936225593,
0.0061631347,
0.0363243371,
0.012170773,
0.0570546128,
-0.1334373951,
0.0273065455,
-0.0796208829
] |
https://github.com/huggingface/datasets/issues/1600 | AttributeError: 'DatasetDict' object has no attribute 'train_test_split' | Hi @david-waterworth!
As indicated in the error message, `load_dataset("csv")` returns a `DatasetDict` object, which is mapping of `str` to `Dataset` objects. I believe in this case the behavior is to return a `train` split with all the data.
`train_test_split` is a method of the `Dataset` object, so you will need to do something like this:
```python
dataset_dict = load_dataset(`'csv', data_files='data.txt')
dataset = dataset_dict['split name, eg train']
dataset.train_test_split(test_size=0.1)
```
Please let me know if this helps. 🙂 | The following code fails with "'DatasetDict' object has no attribute 'train_test_split'" - am I doing something wrong?
```
from datasets import load_dataset
dataset = load_dataset('csv', data_files='data.txt')
dataset = dataset.train_test_split(test_size=0.1)
```
> AttributeError: 'DatasetDict' object has no attribute 'train_test_split' | 76 | AttributeError: 'DatasetDict' object has no attribute 'train_test_split'
The following code fails with "'DatasetDict' object has no attribute 'train_test_split'" - am I doing something wrong?
```
from datasets import load_dataset
dataset = load_dataset('csv', data_files='data.txt')
dataset = dataset.train_test_split(test_size=0.1)
```
> AttributeError: 'DatasetDict' object has no attribute 'train_test_split'
Hi @david-waterworth!
As indicated in the error message, `load_dataset("csv")` returns a `DatasetDict` object, which is mapping of `str` to `Dataset` objects. I believe in this case the behavior is to return a `train` split with all the data.
`train_test_split` is a method of the `Dataset` object, so you will need to do something like this:
```python
dataset_dict = load_dataset(`'csv', data_files='data.txt')
dataset = dataset_dict['split name, eg train']
dataset.train_test_split(test_size=0.1)
```
Please let me know if this helps. 🙂 | [
-0.0721843392,
-0.132310912,
-0.0861677527,
0.2685682476,
0.3532629609,
0.1787520796,
0.4272958934,
0.3118065596,
0.3319099545,
0.1663208306,
0.2769959569,
0.183303237,
-0.2980107963,
0.3075741827,
-0.0338940583,
-0.2959111929,
0.0081044091,
0.1070962176,
0.123797603,
-0.0300345533,
-0.1895723939,
0.1840580255,
-0.219519943,
0.0997341275,
-0.3673036098,
0.0206729788,
-0.2920014262,
0.1307967156,
-0.0135354232,
-0.2515274584,
0.4045370221,
-0.1375558227,
0.1239312515,
0.4964111745,
-0.0001121337,
-0.0254926197,
0.0358923338,
-0.0644959062,
-0.2525277138,
-0.4415963888,
-0.2628272772,
-0.2395174503,
0.1976014972,
-0.3958486617,
-0.1714030355,
-0.0224700663,
-0.1365288943,
-0.4225862622,
0.3209576905,
0.5206329823,
0.2207773477,
-0.0021954558,
0.0334866159,
-0.1584514976,
0.1464579105,
0.1532027572,
0.0414272361,
0.1552955806,
-0.1339990944,
-0.0168722216,
0.2957565784,
0.0661466047,
-0.0692671463,
0.3163210452,
0.2319251597,
0.2917083502,
-0.2003950626,
-0.2420008332,
-0.1154677644,
0.1132736355,
0.5742335916,
-0.3167565763,
-0.3579136431,
-0.0600360185,
0.1263865381,
-0.5130981803,
-0.0208158661,
0.218510434,
-0.0335693173,
0.0874092206,
-0.1007624492,
-0.2014101595,
-0.1574537456,
0.0674096569,
-0.4065105915,
-0.0739222541,
-0.1161908805,
0.1030807719,
0.128317371,
0.096946381,
-0.0590990856,
-0.0893521905,
0.0394238532,
0.122555621,
-0.2608903348,
-0.1216240972,
-0.172581166,
-0.3684390187,
-0.0792471617,
0.1399980783,
0.1815392822,
-0.1973559707,
0.0081712296,
0.1937788874,
0.3508924544,
0.2967845798,
0.0391873159,
0.5758776665,
0.059238635,
-0.1832800061,
-0.3388325572,
-0.2924593389,
-0.0580883361,
-0.2673821151,
0.2529995739,
0.194809109,
0.4443727434,
-0.2247351855,
-0.3625485003,
0.2208097726,
-0.3055539727,
-0.0277324952,
-0.0909041986,
0.3527172804,
-0.0477380529,
0.1222979873,
0.1689248085,
0.0412398092,
-0.1388923377,
-0.2089308649,
-0.2548886836,
0.3821982145,
-0.1558442116,
-0.0423371792,
0.109929651,
-0.1273090392,
0.016545156,
-0.2022984624,
0.1279787272,
-0.2566147745,
-0.0368143618,
-0.2804855406,
0.0832359269,
0.197451055,
-0.0184955709,
0.2927272022,
0.3714339733,
-0.4367985129,
-0.1055995449,
0.2160592377,
-0.5006985068,
-0.4635075927,
-0.0402120873,
0.2280382514,
-0.2061605901,
-0.0872542858,
-0.3410852551,
0.0228507742,
0.1365406066,
0.0316791534,
-0.0430204719,
-0.3725332022,
-0.187078312,
-0.289393425,
0.3396978378,
0.3746134341,
-0.5248162746,
-0.0159843788,
0.0027711599,
-0.200794518,
0.1853206158,
0.0941375792,
-0.0391451791,
0.4101442695,
-0.128356576,
-0.0481364913,
0.365219593,
-0.2434015721,
-0.2943012118,
0.2787617445,
-0.0637714043,
-0.0336408429,
0.0105869099,
0.0398908295,
0.2003933787,
0.1239671335,
0.0806265995,
0.2507040799,
-0.120617494,
-0.0842707828,
-0.0462478101,
0.1164429411,
0.5629889965,
0.2923913598,
0.1966350377,
0.1795151532,
-0.0754685327,
-0.0262021013,
0.1159026772,
-0.0579622947,
0.0302032735,
0.0934660807,
0.3688443303,
0.1162689477,
-0.0223205518,
-0.40064767,
-0.1254467815,
0.0952938572,
0.4420138896,
0.0403984226,
-0.099010922,
-0.0385203995,
-0.2707168758,
0.010021992,
-0.3413083255,
-0.2407449633,
0.1200155988,
-0.1637161523,
0.0094287107,
-0.013194737,
-0.3408818841,
0.3551128209,
-0.2235885859,
0.1766072512,
-0.1674161851,
0.3753546178,
-0.1724621058,
-0.0743991956,
-0.1578890532,
0.1958105713,
0.0619019642,
-0.0317659676,
-0.1056192964,
0.3751666546,
0.2643582523,
-0.2826117575,
0.0902113989,
-0.0859475881,
0.1390046477,
-0.2407872379,
-0.1898607165,
0.2528320253,
0.2463708073,
-0.1360629797,
-0.0305194017,
0.4084880054,
-0.1322629601,
0.3659787178,
0.0389472283,
0.3024174571,
0.0064867479,
-0.0319372863,
-0.035936635,
-0.0593067817,
0.1365472227,
-0.417183876,
0.128504023,
-0.2234467268,
-0.2419033498,
-0.2094892561,
0.3478753567,
-0.0693052411,
-0.0220942274,
0.0216233898,
-0.2207667381,
0.2940609455,
-0.1583036184,
0.4630824625,
0.5181427002,
0.1379355937,
-0.199199304,
0.1414238065,
0.002180709,
0.0898431391,
0.2335760742,
0.05406712,
0.1229791641,
0.0310471561,
-0.2389369309,
0.0470310077,
-0.0537321828,
-0.5640877485,
-0.0717839524,
0.4171223044,
-0.4143366516,
0.064117834,
-0.12694408,
0.0092913555,
-0.2962951362,
-0.354958415,
-0.0284616966,
-0.3789286315,
-0.1835003048,
-0.1405201852,
-0.0239548776,
-0.1128614768,
-0.4261832237,
-0.0856426954,
0.0932451114,
-0.248656705,
0.2697196901,
-0.3531540036,
-0.0795386806,
0.1293802857,
0.0736549273,
0.1292053461,
0.1668205559,
-0.108960554,
0.0651179478,
0.0407076329,
0.0916743726,
-0.0229644179,
-0.2543025911,
0.1350829303,
0.2855050862,
0.2967993617,
-0.1143370494,
-0.2625091076,
0.3381905556,
-0.08779037,
-0.0605215691,
0.2434625924,
0.2757808566,
-0.2561478615,
-0.0971167684,
-0.6580391526,
-0.4108827412,
-0.2691026032,
0.0630403087,
0.0739006326,
0.159214884,
0.1093686074,
0.2830112875,
0.1262419671,
0.2075153887,
0.0419593044,
-0.0460016355,
-0.2564494908,
0.3345263302,
-0.2586974204,
-0.3425793946,
0.1432679296,
0.0259499587,
0.0694945306,
-0.0448086336,
-0.3738966286,
-0.0027366076,
-0.1055496335,
0.1427329034,
-0.1437898874,
0.0626068413,
0.2344850153,
0.1276386976,
-0.1057045832,
-0.0078381626,
-0.1594964564,
0.0380886048,
0.054023426,
0.101055108,
-0.1472780257,
0.2825528085,
-0.0749214515,
0.5764612556,
0.0969001874,
-0.1595267951,
0.0693654716,
-0.2750757039,
0.0639482886,
-0.0680162013,
-0.6389510632,
-0.0329335257,
-0.2159181833,
-0.2822297812,
0.1167115942,
-0.0733787492,
0.2000922561,
-0.3924252987,
-0.0912913755,
-0.2240172625,
-0.2448515147,
0.0542315356,
-0.2960801125,
0.1903050691,
-0.2482514083,
0.0775615349,
-0.1729651839,
0.0909666419,
-0.0160470419,
0.3166529834,
0.1189934909,
-0.0575214326,
-0.5402716398,
-0.3924871981,
-0.2511123121,
0.2855437994,
-0.0690764114,
0.2957162559,
-0.019741457,
-0.0272284411,
-0.0459332392,
0.1055564731,
0.6742486954,
0.0671970621,
-0.1452752203,
0.0725868195,
-0.1232425272,
-0.1783969104,
-0.0942355841,
-0.2604152262,
0.449637115,
-0.1186181307,
-0.0161083583,
0.0296086576,
-0.0199545268,
0.2992391586,
0.1922978461,
-0.2455413342,
-0.0722683445,
-0.1721978337,
-0.1288796067,
-0.1834924668,
0.0396890342,
-0.024290286,
0.2716978192,
-0.0691629425,
0.0858443379,
-0.1916062832,
-0.154989481,
0.5035323501,
0.0667254254,
0.2780405283,
-0.2251096517,
0.115466021,
0.0561303832,
0.1723071486,
0.225692153,
0.5942602158,
-0.0520954393,
-0.4422063828,
-0.091088675,
-0.2161379606,
0.6388924718,
-0.0520620681,
-0.2286678255,
-0.0079673016,
-0.141294688,
0.0992833897,
-0.2276451886,
0.0082800388,
0.3840449154,
0.0977489874,
-0.409817487,
-0.6983447671,
0.2479276657,
0.0678383559,
0.1709144413,
0.2534904182,
0.0964540541,
-0.2580842078,
0.4556397498,
-0.0939264596,
0.8387122154,
0.1053680554,
0.0990954638,
0.0341435894,
0.041157715,
0.4353802204,
-0.0145547343,
0.1437960565,
-0.2871620357,
-0.5176241994,
-0.2060648203,
-0.1592775881,
0.3610610366,
0.1694132388,
-0.1974155009,
0.4240471423,
-0.1379710436,
0.1385344118,
-0.1215623617,
0.1294139177,
0.155409947,
0.0039539137,
-0.2922898531,
0.1733406633,
-0.0998882875,
0.243577078,
0.1092957258,
0.0772562027,
-0.3266755044,
-0.1847036481,
-0.2942938507,
-0.071498543,
-0.0502400845,
0.1856252849,
0.0318280607,
-0.4340494871,
0.270871371,
0.2985517681,
0.2258131355,
0.151085481,
-0.073315382,
0.1236287355,
-0.0843472853,
0.0912761465,
-0.0423797071,
0.0655172542,
0.5445192456,
0.0768014714,
-0.2678834796,
0.396612972,
-0.0029901862,
-0.1281082481,
0.1212414056,
0.2293199003,
0.0765842423,
-0.6178491712,
-0.3464154601,
0.0288610719,
0.0228960551,
-0.1572952271,
0.163443014,
0.1338636726,
-0.4194946587,
0.3092004657,
0.0632802621,
-0.2606849372,
-0.0963097066,
0.2163580656,
0.1629345119,
0.2465141863,
0.6398237944,
0.0925782472,
-0.0098999767,
-0.2739762366,
0.2244111001,
0.4415145218,
-0.2741951048,
0.2020125091,
-0.0221948903,
0.3782287538,
-0.0185006205,
0.2545010448,
0.0148526346,
0.1679700166,
0.013474239,
-0.5874106884,
-0.1785155237,
0.0299021751,
0.0678363219,
0.2657145858,
-0.0682325661,
0.3186633289,
0.0446554534,
0.1009659395,
-0.3291759193,
0.1294487864,
-0.1768713742,
0.1042379439,
0.1987218559,
0.22970514,
0.1792406738,
-0.2211221755,
0.1787108183,
-0.0331516899,
0.0672200024,
-0.2704760432,
-0.1381522864,
0.1154436544,
0.0779270232,
0.1170511618,
0.0263844095,
-0.0415176079,
-0.0412722193,
-0.1786633134,
-0.0748811737,
0.3920444548,
-0.1246787906,
0.6344898343,
0.1397086978,
0.0844432041,
-0.258295536,
0.127523154,
-0.0869966224,
0.320105046,
0.3684004843,
0.1254643053,
0.0744450837,
0.0658873767,
-0.3546423018,
0.0452727191,
-0.2939602435,
-0.1350599229,
0.309861213,
-0.4562228024,
0.2000416517,
0.0263527334,
0.4301760793,
0.4376136959,
-0.2431809604,
0.4377044439,
0.2264555395,
0.2433789819,
-0.2659002542,
0.1741055697,
0.3031704426,
-0.1066055372,
-0.024705207,
0.2842214704,
-0.1608767658,
0.0681732818,
-0.4807461202,
0.0944102332,
0.4180381894,
-0.1298871785,
0.387974292,
0.3791289032,
-0.0596058518,
0.0380721875,
0.0702854693,
0.1264149547,
-0.0031310015,
0.6698889732,
-0.0753339529,
0.2561288178,
0.2050173581,
0.0044150008,
0.1049538851,
-0.2050677389,
0.2074907571,
0.0519770496,
-0.1348827481,
-0.0753556937,
-0.0836349502,
0.4223738015,
-0.4901796281,
-0.0410119593,
0.0220181402,
0.0269429125,
-0.0455722399,
0.1274719983,
-0.0465647504,
-0.0742501169,
-0.2240781635,
-0.1356832832,
0.1360313296,
-0.3794767857,
0.1740127802,
-0.0083091054,
-0.051539205,
-0.294841677,
0.1352841705,
0.1303863674,
0.1709827632,
-0.3162543476,
-0.0131661408,
0.1555115432,
0.0070485882,
0.3802860379,
-0.0012929187,
0.3857504129,
0.2601333857,
-0.109043479,
-0.0563486628,
-0.1175310686,
-0.2950936556,
0.2205931395,
0.1814938337,
-0.1840784699,
0.1059239432,
0.3545348346,
0.2340081185,
-0.0747616813,
0.1698186398,
0.1993199736,
0.1871192157,
-0.4202072322,
0.627194643,
0.0535094291,
-0.2558230758,
-0.260298878,
-0.1061141491,
-0.382380873,
-0.308306545,
0.1675441861,
0.1097628847,
0.1084960774,
-0.0165265296,
0.0893462747,
0.0704537407,
0.2227945924,
0.2799639404,
0.4098479748,
-0.4884606898,
-0.0084738247,
-0.4700658917,
0.0326475315,
-0.1541024595,
-0.1359294802,
-0.1391153634,
0.0506294481,
-0.0652028397,
0.1427138895,
0.0248277821,
0.1623285264,
-0.0151282139,
0.2275578678,
-0.1682757735,
-0.4612594843,
-0.3252546787,
0.1680115759,
0.0045838654,
-0.0336373374,
-0.1374646425,
-0.0759001374,
0.0395972356,
-0.0020674712,
-0.0511302091,
0.0990498513,
-0.0323348977,
0.2202932388,
0.0572284535,
0.7479223013,
0.0703613237,
0.1436002851,
0.0226143599,
-0.1677642018,
-0.2627964616,
0.3687820137,
0.1317407489,
0.3843568563,
0.0259845629,
-0.207377553,
-0.2479705364,
0.2719692886,
0.0841690674,
-0.0938937441,
-0.2495507002,
0.153493315,
0.045817744,
0.0400985703,
0.2332105339,
0.302909255,
-0.2424893677,
0.209524557,
-0.1211484596,
-0.3196156025,
0.3894042373,
-0.3805126846,
-0.1750676185,
-0.1226034164,
0.1846762002,
0.1710367352,
0.0157215483,
-0.5626367927,
-0.0987637788,
0.4462661743,
-0.1658879668,
-0.2387491763,
0.2059509605,
-0.0196029227,
0.1822863817,
0.0629557669,
0.4821688831,
-0.0643890649,
-0.0762832537,
0.1273599416,
-0.217699632
] |
https://github.com/huggingface/datasets/issues/1600 | AttributeError: 'DatasetDict' object has no attribute 'train_test_split' | Thanks, that's working - the same issue also tripped me up with training.
I also agree https://github.com/huggingface/datasets/issues/767 would be a useful addition. | The following code fails with "'DatasetDict' object has no attribute 'train_test_split'" - am I doing something wrong?
```
from datasets import load_dataset
dataset = load_dataset('csv', data_files='data.txt')
dataset = dataset.train_test_split(test_size=0.1)
```
> AttributeError: 'DatasetDict' object has no attribute 'train_test_split' | 22 | AttributeError: 'DatasetDict' object has no attribute 'train_test_split'
The following code fails with "'DatasetDict' object has no attribute 'train_test_split'" - am I doing something wrong?
```
from datasets import load_dataset
dataset = load_dataset('csv', data_files='data.txt')
dataset = dataset.train_test_split(test_size=0.1)
```
> AttributeError: 'DatasetDict' object has no attribute 'train_test_split'
Thanks, that's working - the same issue also tripped me up with training.
I also agree https://github.com/huggingface/datasets/issues/767 would be a useful addition. | [
-0.1846861541,
-0.1984479278,
-0.0545879155,
0.2467513233,
0.395375073,
0.1030241624,
0.4267280102,
0.3831034005,
0.3261992931,
0.1956540197,
0.1507683545,
0.064065516,
-0.2686588764,
0.4507167339,
0.0584372878,
-0.3567761183,
0.0626722574,
0.1936276555,
0.0607812554,
0.0350720212,
-0.1242041588,
0.1890625209,
-0.291218251,
-0.0519425385,
-0.4734292924,
0.050304275,
-0.2243108749,
0.0437321886,
-0.0271128118,
-0.2051904202,
0.3840316534,
-0.1047578305,
0.0608505644,
0.5816097856,
-0.0001103236,
0.060649354,
0.1080932021,
-0.1068841293,
-0.2396588326,
-0.2753519118,
-0.1038392484,
-0.2271674573,
0.1324587017,
-0.2241392881,
-0.3628968,
0.0539404303,
-0.1217899472,
-0.2161207199,
0.4450167716,
0.461347878,
0.2605396211,
0.2811123431,
0.0929360166,
-0.284807086,
0.1258875579,
0.1839957833,
-0.1198848113,
0.1295716465,
-0.0749585778,
-0.0903259143,
0.2761043012,
0.2351314723,
0.0938192531,
0.26212129,
0.2497682571,
0.1438686401,
-0.3698176146,
-0.1744376868,
-0.112983644,
0.235953033,
0.3810487986,
-0.2765886188,
-0.5040436387,
-0.2638505101,
0.1536023319,
-0.5238579512,
0.0427222773,
0.1760727763,
0.0776900724,
0.1835557967,
-0.2419231832,
-0.1039563343,
-0.099191606,
0.0538913086,
-0.2837322056,
-0.0754010752,
-0.2382145524,
0.0181718413,
0.2245603055,
0.0913870484,
-0.2342690974,
0.0713994503,
0.0532812588,
0.0892883316,
-0.2784925699,
-0.1460760534,
-0.2125329822,
-0.1639085114,
0.1101793423,
0.2204521447,
0.0217937436,
-0.1837151796,
-0.0039264746,
0.1535111815,
0.2553352714,
0.3511751294,
0.1957253963,
0.4229305685,
0.223684907,
0.0411520861,
-0.2873188853,
-0.2798425257,
0.0130215874,
-0.3616333306,
0.000808194,
0.1058952436,
0.3911063671,
-0.1769421846,
-0.3389344513,
0.0766280517,
-0.204008773,
-0.0077172075,
0.0730952397,
0.3337321579,
-0.0573752522,
-0.0588306375,
0.1081149355,
0.1537032127,
-0.3166412413,
-0.3853552043,
-0.326241374,
0.2886959016,
-0.1831527054,
0.0292907078,
0.2001987249,
-0.200983718,
0.2049361616,
-0.2003572732,
0.2115934342,
-0.1807636619,
-0.0906949863,
-0.1443422884,
-0.0365465432,
0.3677013814,
0.0280803815,
0.1323037595,
0.298838973,
-0.2814489901,
-0.0717442334,
-0.017202517,
-0.3191325068,
-0.3248495758,
0.0714155883,
0.1977605224,
-0.2869441509,
-0.1072332188,
-0.316154629,
0.0980217531,
0.1598868519,
0.0231092144,
-0.0298052821,
-0.2496529371,
-0.2829376757,
-0.1383280605,
0.4462446272,
0.4211854041,
-0.3492747247,
-0.1563429385,
0.1918720305,
-0.2150984406,
0.067173779,
0.2506549656,
0.0235546641,
0.3546366096,
-0.0481558666,
0.1400210857,
0.1740015298,
-0.1990397722,
-0.2208687961,
0.2080299705,
-0.0268056244,
-0.0019285219,
-0.0054317438,
-0.1540682316,
0.0715041384,
0.0562886819,
0.1036762297,
0.2933609784,
-0.2000456601,
-0.0187267419,
-0.0270954799,
-0.0861535445,
0.3037680984,
0.2829179168,
0.1473237127,
0.018384533,
-0.1201268211,
0.0260268878,
0.1397975981,
-0.1667535007,
0.0329545066,
0.1168687642,
0.3362463713,
0.1048713028,
-0.0251497403,
-0.3535370529,
-0.1979877651,
0.1710968018,
0.456019491,
0.0625510439,
-0.0488095209,
-0.0994436219,
-0.2215574533,
-0.0261199698,
-0.2876886427,
-0.4046599865,
0.0574959293,
-0.255092144,
0.1605911702,
0.1340693533,
-0.3540807664,
0.3058652282,
-0.296333313,
0.3191066086,
-0.2286279052,
0.3604703844,
-0.1177027524,
-0.2119927108,
-0.0572769232,
0.2541784942,
-0.0181352999,
-0.1646514237,
-0.08418262,
0.3766160011,
0.1199674085,
-0.165721938,
0.0825531036,
-0.1099814922,
0.2615177333,
-0.1722088605,
-0.2904169858,
0.0505824424,
0.0591344237,
-0.1039415225,
-0.1310248971,
0.4590164125,
-0.0876017809,
0.2237430662,
0.042050682,
0.2742888033,
0.0848188847,
-0.0922286808,
-0.0446876809,
-0.1057679281,
0.2735310793,
-0.5087496042,
0.1001407504,
-0.2306526452,
-0.2755358815,
-0.0906736329,
0.415573746,
-0.0166743696,
0.0677956492,
-0.018137522,
-0.1673467755,
0.3644115329,
-0.0292870514,
0.409597218,
0.4842481315,
0.1815353483,
-0.204794392,
0.1650669575,
-0.0136250723,
-0.0591132082,
0.1353191435,
0.0115995863,
0.1306748092,
-0.027948048,
-0.2468857169,
-0.042242568,
-0.204516381,
-0.3201774955,
-0.0408041477,
0.2895835042,
-0.4424277842,
0.048531346,
-0.2430348545,
-0.0320067853,
-0.2458418906,
-0.263430655,
-0.1552668512,
-0.2756094038,
-0.0537179075,
-0.0249830261,
-0.0737601519,
0.0182747468,
-0.3404816091,
0.0271306317,
0.1059866101,
-0.0963923782,
0.1737786531,
-0.2227140069,
-0.0749432519,
0.1001498848,
0.2192963958,
0.0530370474,
0.2077374011,
-0.1844680458,
0.0754780173,
-0.0088193947,
-0.1656460613,
0.0247168858,
-0.3662692904,
0.2794273794,
0.2628708482,
0.2170627564,
-0.1536857784,
-0.1248968765,
0.4182597995,
-0.2302127779,
-0.0924311131,
0.0869577378,
0.3433734775,
-0.275480181,
-0.3146719038,
-0.5279150009,
-0.2542979419,
-0.2518593967,
0.283094734,
-0.0502454862,
-0.0180447306,
0.3214958608,
0.2813251019,
0.2104564309,
0.003024525,
0.0112943985,
-0.0526400842,
-0.3032212257,
0.2851372659,
-0.3910021484,
-0.4183829427,
0.0890901014,
0.110473074,
0.1094340831,
-0.0517444424,
-0.3512329161,
-0.0866657495,
-0.1428494304,
0.1426782906,
0.0041111461,
0.1272313148,
0.2416519374,
-0.1699459404,
-0.0425241739,
-0.0882616639,
-0.232317999,
0.170265764,
-0.0606295392,
0.1275812089,
-0.2310266048,
0.2783780992,
0.0382478312,
0.6902592778,
0.1376735568,
-0.0335254446,
0.1117489859,
-0.3114757538,
0.1596429944,
-0.1432042569,
-0.5476195812,
0.1341439784,
-0.0591217615,
-0.1061896756,
0.1755037308,
0.0977408886,
0.2639812529,
-0.2763018608,
-0.1354801953,
-0.1459864229,
-0.4110563099,
-0.0224737674,
-0.0475868024,
0.1665589809,
-0.2509227991,
0.1649674326,
0.0239429306,
0.125063628,
-0.0362159498,
0.2875621021,
0.0130773736,
-0.0930174291,
-0.4692692459,
-0.3524614275,
-0.4407601655,
0.2361113876,
-0.1203940883,
0.2364784032,
-0.0943086743,
-0.1046338677,
-0.0983236656,
0.1375366151,
0.7563707829,
-0.0219585318,
-0.1174661741,
-0.0697762966,
-0.2654164135,
-0.2875244319,
-0.1143937483,
-0.1660130918,
0.2816139162,
0.0405387469,
0.139906913,
-0.039557945,
-0.1005631909,
0.3904908895,
0.1394102722,
-0.0860415548,
-0.0941689312,
-0.1784465909,
-0.1805275977,
-0.2042565495,
0.0865899548,
0.152907446,
0.1488433629,
0.007223648,
0.1084180549,
-0.199100852,
-0.2399874479,
0.4517403841,
0.0708556771,
0.1966762692,
-0.1215073094,
0.2498877496,
0.2474306822,
0.0659676269,
0.1725644469,
0.6067811251,
-0.1809220165,
-0.5803415775,
-0.0645786971,
-0.2436721027,
0.5723364353,
0.1711204499,
-0.1206107959,
0.0035682772,
-0.0357525162,
0.1895623803,
-0.2105441242,
0.0060102614,
0.3294207752,
0.1648208201,
-0.2364551872,
-0.5567422509,
0.2764132917,
0.0994316116,
0.3125399351,
0.3097652495,
0.3089552224,
-0.2004815936,
0.2576603293,
-0.2299968153,
0.7025110126,
0.1212061197,
0.0765971765,
0.1732085943,
0.0672572404,
0.4859929979,
-0.0007581976,
0.145277977,
-0.2311035991,
-0.4378168285,
-0.0996713713,
-0.0695246533,
0.4050197005,
-0.0732660219,
-0.2276260257,
0.3836449385,
-0.0714425594,
0.1355580091,
-0.226663053,
0.050427679,
0.0069390973,
-0.174795419,
-0.4288176298,
0.1857797056,
0.0523426645,
0.3444145322,
0.1153296083,
-0.0189281981,
-0.2602659166,
-0.2005396187,
-0.2727979124,
-0.0671608374,
-0.1454301476,
0.1588486582,
0.3116421103,
-0.3745335937,
0.3346985281,
0.2419033349,
0.3966188431,
0.0982905179,
-0.1932194978,
0.1804069579,
-0.2654664218,
-0.0271423217,
-0.0957375839,
-0.0074777878,
0.5299159884,
-0.0249193627,
-0.2789431512,
0.0683566183,
-0.0169673935,
-0.1393125653,
0.1542786062,
0.1149237603,
-0.1036345288,
-0.5509044528,
-0.2589759827,
-0.020285055,
0.1251430959,
-0.2409959435,
0.1862432957,
0.1413004547,
-0.3067743778,
0.1170660108,
0.1744793952,
-0.2401873022,
-0.1974872053,
0.3025271595,
-0.0414188206,
0.1424269974,
0.59935534,
0.2066729516,
-0.0137996515,
-0.3160972297,
0.1751202941,
0.552639842,
-0.3977744281,
0.1992247403,
-0.0278252568,
0.2351664603,
0.038480062,
0.324749589,
0.000381785,
-0.0852936208,
0.0933174044,
-0.4125093222,
-0.1559259593,
0.1037857383,
0.0040018344,
0.279125154,
0.0261525437,
0.3407075107,
0.115254201,
0.0288769659,
-0.3290395141,
0.1591718048,
-0.1257725656,
0.0665451288,
0.2596563101,
0.0864379928,
0.3596301675,
-0.2830475271,
0.152535364,
0.0681308508,
-0.0249207858,
-0.2598586977,
-0.1910294592,
0.0989780053,
-0.0232917387,
0.1772613674,
0.1614653468,
0.0732410625,
-0.1714473516,
-0.2702186108,
0.0704903007,
0.2888210118,
-0.0642654076,
0.4903995693,
0.122585997,
0.1161265895,
-0.0744382069,
0.0421852805,
-0.0498993695,
0.261964798,
0.2407583147,
-0.0472237878,
-0.0636250973,
0.1204836965,
-0.2006854415,
0.0221742745,
-0.2818067968,
-0.1100153774,
0.2184883356,
-0.426500082,
0.1330871433,
0.1526702642,
0.4794741571,
0.3238245249,
-0.2561478317,
0.419452399,
0.3094591498,
0.2326133549,
-0.2462061197,
0.2292546779,
0.3853667676,
0.0372097678,
0.0800130591,
0.33984676,
-0.0205736645,
0.1317347586,
-0.3172642589,
0.2038924098,
0.2978072166,
-0.0991519764,
0.4517710507,
0.3082892895,
-0.1605488509,
0.0797767937,
0.140221253,
0.0540034771,
0.1489086598,
0.5775364041,
-0.2341187149,
0.2427432984,
0.0030863483,
0.0952906832,
0.1125718877,
-0.2341769189,
0.0753904879,
-0.0279167425,
-0.123877719,
-0.0927227885,
-0.2193617523,
0.7663371563,
-0.6305838227,
-0.1685506403,
-0.0913386568,
0.177331537,
-0.0440920591,
0.1119592935,
0.0201206021,
0.0009325704,
-0.1366670281,
-0.1476505101,
0.1166811734,
-0.2911384106,
0.2370643318,
-0.0175177772,
-0.0739101246,
-0.3109385073,
0.0810778439,
0.0583282225,
0.26959306,
-0.2086710334,
0.0049609351,
0.0519667268,
-0.0117209116,
0.2858560979,
0.2340135574,
0.4605005682,
0.1309823394,
0.0718592033,
-0.1021855772,
-0.1684698761,
-0.1850574315,
0.163655147,
0.2709510326,
-0.0707170069,
0.1986963451,
0.3202685714,
0.2055370659,
-0.1299635768,
0.1336036772,
0.0303094722,
0.1736452878,
-0.4789001346,
0.6228637099,
-0.1364358366,
-0.1323834658,
-0.3485613465,
-0.1829468906,
-0.4489801526,
-0.1026142761,
0.1511130482,
-0.0268435385,
0.0801586211,
-0.0825149789,
0.0809317753,
0.0874387473,
0.3327470422,
0.2745982409,
0.2439938933,
-0.3794063628,
-0.0223783273,
-0.481421113,
-0.1162691861,
-0.2013103366,
0.0326572247,
-0.1707203239,
0.0711299405,
-0.0923439786,
0.1257177293,
0.0916628093,
-0.1133765578,
0.1285655499,
-0.023835741,
-0.2652896047,
-0.3344784975,
-0.3479910493,
-0.0067153838,
0.1544411629,
0.0164717436,
-0.008365727,
-0.1240035519,
-0.0236130878,
0.1138251275,
0.0847188607,
-0.0404525958,
-0.1717934012,
0.1929931194,
-0.0098009491,
0.6767648458,
0.0883389786,
0.1176792011,
-0.180613637,
-0.2579259872,
-0.2844209075,
0.3459977806,
0.0008279299,
0.4123234749,
-0.1656767279,
-0.3102830946,
-0.2536060214,
0.3791851103,
0.1961629987,
-0.0965308324,
-0.1079355329,
0.2606865764,
0.0420686454,
0.0455177948,
0.3739994466,
0.3746080101,
-0.403980881,
0.1107294261,
-0.1688302159,
-0.3724431396,
0.5001776814,
-0.4634426236,
-0.1900967658,
-0.0587621853,
0.176822111,
0.4209758937,
-0.211111486,
-0.7313169837,
-0.0243653543,
0.2395710647,
-0.0905219689,
-0.3277501464,
0.3913856149,
0.0184691902,
0.1046296731,
0.1292187721,
0.565600574,
0.0339650512,
-0.2450903803,
0.35663715,
-0.1714496315
] |
https://github.com/huggingface/datasets/issues/1600 | AttributeError: 'DatasetDict' object has no attribute 'train_test_split' | > ```python
> dataset_dict = load_dataset(`'csv', data_files='data.txt')
> dataset = dataset_dict['split name, eg train']
> dataset.train_test_split(test_size=0.1)
> ```
I am getting error like
KeyError: 'split name, eg train'
Could you please tell me how to solve this? | The following code fails with "'DatasetDict' object has no attribute 'train_test_split'" - am I doing something wrong?
```
from datasets import load_dataset
dataset = load_dataset('csv', data_files='data.txt')
dataset = dataset.train_test_split(test_size=0.1)
```
> AttributeError: 'DatasetDict' object has no attribute 'train_test_split' | 37 | AttributeError: 'DatasetDict' object has no attribute 'train_test_split'
The following code fails with "'DatasetDict' object has no attribute 'train_test_split'" - am I doing something wrong?
```
from datasets import load_dataset
dataset = load_dataset('csv', data_files='data.txt')
dataset = dataset.train_test_split(test_size=0.1)
```
> AttributeError: 'DatasetDict' object has no attribute 'train_test_split'
> ```python
> dataset_dict = load_dataset(`'csv', data_files='data.txt')
> dataset = dataset_dict['split name, eg train']
> dataset.train_test_split(test_size=0.1)
> ```
I am getting error like
KeyError: 'split name, eg train'
Could you please tell me how to solve this? | [
-0.1205271408,
-0.2044598013,
-0.1178738698,
0.3427509964,
0.2748531103,
0.2128632963,
0.417621702,
0.2791912258,
0.3849132359,
0.1766942739,
0.2599658966,
0.2442349344,
-0.3558095098,
0.4015853703,
-0.1800406575,
-0.3566973209,
0.0676721632,
0.2050317228,
0.2042681426,
-0.0092860386,
-0.2286290079,
0.1024329811,
-0.3420260251,
0.0578030236,
-0.3522692025,
-0.0670246333,
-0.3373372853,
0.0235141385,
-0.0220200885,
-0.3306671977,
0.3673838973,
-0.1288263798,
0.063021265,
0.4926143587,
-0.0001131172,
0.0144109689,
0.0952198878,
-0.0939696357,
-0.3082745373,
-0.2538853288,
-0.4034256637,
-0.2025460601,
0.1784945726,
-0.509000659,
-0.1024450511,
-0.0878217444,
-0.1878920197,
-0.3301979005,
0.439042598,
0.4318706691,
0.2212600261,
-0.0175376497,
0.119953379,
-0.163423121,
0.0466199555,
0.1382143497,
0.0279128589,
0.1376452744,
-0.1803662628,
-0.0400673673,
0.3375970423,
0.0766584575,
-0.061620865,
0.3274954557,
0.2132836878,
0.1494387388,
-0.1793501377,
-0.3218157291,
-0.0956687927,
0.1868734807,
0.5323075056,
-0.277222991,
-0.4459287524,
-0.107207112,
0.1357376277,
-0.4340750575,
-0.0066018212,
0.0991731808,
0.10338673,
0.0961878076,
0.0116506675,
-0.2029305249,
-0.1861787736,
0.0810090825,
-0.3556638062,
0.0190072749,
-0.1421080828,
0.1209091023,
0.031417273,
-0.0176124703,
-0.0384899676,
-0.1144159734,
0.0046986211,
0.0224141218,
-0.237552911,
-0.2133390158,
-0.2970762551,
-0.2553685009,
-0.0192302987,
0.0633099824,
0.0608690418,
-0.2469668388,
0.1673274636,
0.2162225097,
0.3056081533,
0.2904830873,
0.2199984789,
0.5732903481,
0.0975121483,
-0.0957566947,
-0.329428941,
-0.2312822789,
-0.1072046235,
-0.2859933674,
0.252892077,
0.2763910592,
0.4462271631,
-0.098049216,
-0.3808515072,
0.0926916599,
-0.2468938231,
-0.0697228685,
-0.0113883596,
0.345574826,
-0.0857681483,
0.1073075756,
-0.0358100794,
0.0881660506,
-0.1349003613,
-0.2533355653,
-0.2457507253,
0.4074085653,
-0.0367095992,
-0.0669157803,
0.0501544029,
-0.0713480115,
0.1835675836,
-0.2005105466,
0.0712041259,
-0.2747605443,
-0.089260377,
-0.3202910125,
-0.1533062607,
0.2038681358,
0.0455180183,
0.1852237284,
0.2966268063,
-0.3811807036,
-0.101030156,
0.1024440154,
-0.4939914346,
-0.2768368423,
-0.0385556147,
0.2153871208,
-0.1205419526,
-0.1385892183,
-0.3266150653,
-0.0319312252,
0.1544392258,
-0.0379987583,
-0.0203255825,
-0.2732342184,
-0.1441248059,
-0.3367163539,
0.2728696465,
0.4427864254,
-0.4894807637,
-0.1112401709,
-0.0402710214,
-0.1182364374,
0.1037688255,
0.0835879967,
-0.0242835581,
0.4687136412,
-0.1057142541,
0.0184724703,
0.3932587206,
-0.3447048962,
-0.3340930045,
0.2828663886,
-0.014696354,
-0.0924783871,
0.120141387,
-0.0028033755,
0.2520149946,
0.0232441537,
0.0854703933,
0.2322945148,
-0.1012347639,
-0.0957083181,
0.0600432865,
-0.0599376336,
0.4805958569,
0.2306598872,
0.1884989887,
0.0880541727,
-0.0794906244,
0.0212222971,
0.0340898074,
-0.0553407855,
-0.0318098217,
0.1547145396,
0.3268212378,
0.0971263647,
0.0214631334,
-0.3522359729,
-0.2091628909,
0.1463080645,
0.4027759135,
-0.1277880669,
-0.1587320864,
-0.0898962468,
-0.3355984092,
0.0228167363,
-0.4687235653,
-0.2829132974,
0.1041633934,
-0.2288238108,
0.0968895704,
0.0673708469,
-0.3220145702,
0.3304784894,
-0.1484993994,
0.2350497544,
-0.0644603223,
0.3642423153,
-0.2054460049,
-0.0867249146,
-0.116843015,
0.1835989505,
0.1140002981,
-0.0121548725,
-0.1291651875,
0.4124435186,
0.2695293128,
-0.2655864358,
0.1130644158,
-0.1509929746,
0.1742066443,
-0.2123697251,
-0.119515799,
0.1874687374,
0.2570876181,
-0.0753559917,
0.0458246358,
0.4258393347,
-0.0667376891,
0.3461902142,
-0.0190857537,
0.2911888361,
0.0023088062,
-0.1240794435,
0.0372866392,
-0.0840158165,
0.1021377519,
-0.4604661763,
0.2323109657,
-0.2532215714,
-0.0918205976,
-0.2488135546,
0.4830529392,
0.0224957895,
0.1657025367,
-0.0495694838,
-0.2577196658,
0.3827395141,
-0.1473412067,
0.4524560869,
0.4888551831,
0.136345014,
-0.3093394339,
0.0952890515,
0.0685565621,
0.1056234911,
0.1944231093,
0.0804859772,
0.2588702738,
0.0855174139,
-0.3087683618,
0.0358708762,
-0.0276664477,
-0.553183794,
-0.0048057134,
0.3986997008,
-0.3466001153,
0.0871453509,
-0.1414719373,
-0.0603527874,
-0.1292677522,
-0.2361915708,
0.0036396889,
-0.3927212358,
-0.1627770811,
-0.1968061626,
0.0466181748,
-0.024774326,
-0.2414555848,
-0.2356128991,
0.1663376987,
-0.2057170421,
0.2398035973,
-0.3715010881,
-0.0335458219,
0.102884315,
0.0890769064,
0.0590357408,
0.1915900409,
-0.19594872,
0.0938037559,
0.1138881817,
0.0716953799,
0.0083816638,
-0.2420751154,
0.1781359911,
0.2741515636,
0.3571281731,
-0.0458537936,
-0.354401648,
0.3528322279,
-0.0043778233,
-0.0839072168,
0.1576316506,
0.2606352866,
-0.1917728186,
-0.0259464476,
-0.5728284121,
-0.4099222422,
-0.227138564,
0.0313870683,
0.0239048973,
0.1485965103,
0.1456316859,
0.3056468964,
0.1615991741,
0.2220597714,
0.1070795059,
0.0387222916,
-0.1193662286,
0.3027023673,
-0.2321110666,
-0.2960789502,
0.1044879854,
-0.069377549,
0.1490537077,
-0.1352608055,
-0.3425977826,
-0.0899215713,
-0.1535872817,
0.1381918937,
-0.1096959338,
0.0668884665,
0.1864420325,
0.1027306467,
-0.0582429431,
-0.0311722569,
-0.0990059078,
0.0555013195,
-0.0122257145,
0.0967249572,
-0.1267630756,
0.3843732476,
-0.1644407362,
0.5157354474,
0.1411610097,
-0.1086243391,
0.1097046286,
-0.3059409261,
0.014328029,
-0.0158297587,
-0.6153259277,
-0.0605163388,
-0.0618877374,
-0.210440129,
0.1313347369,
-0.1136220992,
0.1917753071,
-0.3463662267,
-0.284958899,
-0.285839349,
-0.2135687023,
-0.1259641349,
-0.3293182254,
0.1401885301,
-0.3368887305,
0.1928608268,
-0.1289025247,
0.1866606474,
-0.0011485144,
0.3112514913,
0.0087840166,
-0.1630610675,
-0.4543212354,
-0.4370807707,
-0.1529826671,
0.2652040124,
-0.0970757827,
0.3282499015,
-0.0340490863,
0.0941462442,
-0.0764284953,
0.0943192616,
0.7349425554,
-0.0714674518,
-0.1001703665,
-0.0332463272,
-0.0521328002,
-0.1900086105,
-0.1048294604,
-0.2299946398,
0.5030245185,
-0.0876662806,
0.0027427787,
-0.0310241319,
0.0344088189,
0.3113953471,
0.2398013473,
-0.2419745177,
-0.1511629075,
-0.1678676456,
-0.0941834077,
-0.3122291863,
-0.0014193822,
-0.0375217162,
0.218343839,
0.044848308,
0.0967202783,
-0.3013871908,
-0.2463021427,
0.4358212352,
0.1434435248,
0.2560600936,
-0.216516301,
0.1422138065,
0.0582226329,
0.0989068449,
0.2481689155,
0.4858222008,
-0.1307379901,
-0.5411930084,
-0.1599546522,
-0.2037207633,
0.6125227809,
-0.0984084755,
-0.1674027294,
0.1258667707,
-0.1521346122,
0.0942443013,
-0.1171961203,
-0.1505893022,
0.4400135279,
0.1157613471,
-0.4736855924,
-0.6331068873,
0.2424562126,
0.1834883392,
0.1777930707,
0.2150503248,
0.1933297664,
-0.1880037487,
0.4287165105,
-0.1920143068,
0.6609272361,
0.1043300405,
0.0495334193,
0.0827895924,
0.0691624358,
0.4578765631,
0.0339503475,
0.0691422895,
-0.2622514069,
-0.3694925308,
-0.1801964939,
-0.0797598809,
0.468080014,
0.0982968584,
-0.3375292718,
0.5543084145,
-0.3565012515,
0.1723981947,
-0.2492760718,
0.1135993376,
0.065487951,
0.002702368,
-0.2002150416,
0.12483529,
-0.027362112,
0.321528703,
0.0665845498,
0.0451519042,
-0.2416019589,
-0.177033484,
-0.30472821,
-0.0593622066,
-0.1201234087,
0.2717937827,
0.0178721864,
-0.4535508156,
0.368509829,
0.4197376966,
0.2819153666,
0.2263426483,
-0.1074004397,
0.2145712823,
-0.1238347888,
-0.0308245905,
-0.1158102378,
0.0609072074,
0.4535269141,
0.0621366762,
-0.3640812635,
0.3706392944,
-0.0544337928,
-0.0718914419,
0.1885050088,
0.193085134,
0.0826643482,
-0.6170632839,
-0.3145343065,
-0.0730236769,
0.0198249109,
-0.2023371905,
0.1379706115,
0.0599233247,
-0.3034594059,
0.3259062767,
0.0855779275,
-0.2349761575,
-0.0773344859,
0.1898123473,
0.1926246732,
0.279505223,
0.7549845576,
-0.0061505642,
-0.0099874251,
-0.3380097747,
0.2171350271,
0.3891825676,
-0.2369085848,
0.1518328041,
0.0105893007,
0.3085429668,
0.0520972498,
0.1962125748,
0.1046641618,
0.2140081525,
0.048670169,
-0.5679895282,
-0.2412711531,
0.0859394297,
0.0973169506,
0.1689919531,
-0.0799374133,
0.1694781333,
0.0183627456,
0.1771767437,
-0.2893379927,
0.1424962878,
-0.2494210154,
0.0450746454,
0.2369286269,
0.207551077,
0.1613522172,
-0.1639759392,
0.2104173303,
-0.0610003583,
0.0905997902,
-0.2415872365,
-0.1718022972,
0.1104259193,
0.0230546333,
0.1284043342,
-0.0357602164,
-0.1128592864,
-0.0447492003,
-0.1238842681,
-0.0921591744,
0.2925586104,
-0.0106437225,
0.693859756,
0.1533237547,
0.1420180649,
-0.2456718981,
0.1975132078,
-0.202973485,
0.266824156,
0.2879686356,
0.1317587942,
0.1380712986,
0.0665026009,
-0.4070839286,
-0.0571366698,
-0.3679024875,
-0.1692456901,
0.2420726269,
-0.4453577995,
0.2781388164,
0.1007577479,
0.3375289142,
0.4312362969,
-0.2580159009,
0.4187630713,
0.2723287642,
0.2146224082,
-0.2926924527,
0.1353315115,
0.3706128299,
-0.0750514045,
0.0406159014,
0.2696178555,
-0.146273151,
0.1138871089,
-0.4549006224,
0.1108093932,
0.2901774645,
-0.0216056462,
0.4056753516,
0.5363782048,
-0.0205578711,
-0.0157293417,
0.054084979,
0.1852173954,
0.0616680123,
0.7057477832,
-0.2238819599,
0.2516224384,
0.1817000657,
0.0022838323,
0.2152892649,
-0.1460402608,
0.2892876863,
0.0238014758,
-0.1140921786,
-0.2394762933,
-0.0767544955,
0.3388118446,
-0.4371719062,
0.0026953879,
0.0326135941,
0.065117076,
-0.0625538453,
0.1184768304,
-0.0029001385,
-0.0547839589,
-0.14093256,
-0.2161054611,
0.1037254855,
-0.4050589502,
0.0682862699,
0.050156951,
-0.09187188,
-0.3088479936,
0.3248209059,
0.2112972885,
0.2408237159,
-0.3704355359,
-0.0629428625,
0.2284307927,
0.0591783635,
0.3217910528,
0.1235972717,
0.4195919931,
0.2080785781,
-0.1655704081,
-0.1063492298,
-0.0696404055,
-0.345130682,
0.2758286297,
0.055869963,
-0.2152124792,
0.2649635077,
0.3252101839,
0.218501851,
-0.1124546602,
0.0673576146,
0.2014525086,
0.0604508817,
-0.370756954,
0.5706567168,
-0.0448758043,
-0.2099319547,
-0.2597060502,
-0.0337093361,
-0.4932357669,
-0.315705806,
0.1626574546,
0.0830753148,
0.0874733031,
0.0040430063,
0.0666709393,
-0.0347677469,
0.3119604886,
0.3699958622,
0.4473422766,
-0.4583413601,
0.0587361977,
-0.4064317644,
-0.0625116229,
-0.1706451923,
-0.2675934434,
-0.0750991106,
0.0279811099,
-0.2185123712,
0.1184738651,
0.0458286926,
0.1959799528,
0.0537382104,
0.2616840601,
-0.2815915346,
-0.3883524537,
-0.19441396,
0.1575338095,
0.0974522531,
-0.0869665593,
-0.0311086904,
-0.0532727204,
0.0260925647,
-0.0358331315,
-0.0239420682,
0.1411376446,
-0.1114036292,
0.1796397269,
-0.034229774,
0.8244968057,
0.0411319584,
0.1391931325,
0.1016959399,
-0.1549031883,
-0.2476407439,
0.3596129119,
0.2093881965,
0.3200775683,
-0.0601786934,
-0.1672213525,
-0.1139275134,
0.3152984083,
-0.0228557494,
-0.1258209348,
-0.2007559538,
0.1408030093,
0.1141411364,
0.030407941,
0.1940095574,
0.1550714374,
-0.2861590981,
0.1971876919,
-0.0772080347,
-0.2748169303,
0.3750345409,
-0.330802083,
-0.1739962697,
-0.0950515121,
0.178499952,
0.2217276841,
0.0613465533,
-0.4198966026,
-0.0326583758,
0.5135571361,
-0.1273701936,
-0.2425840497,
0.2391479313,
0.056944374,
0.1867637783,
0.1496243477,
0.4122320712,
-0.1797991991,
-0.1278125793,
0.1793389469,
-0.1812323779
] |
https://github.com/huggingface/datasets/issues/1594 | connection error | This happen quite often when they are too many concurrent requests to github.
i can understand it’s a bit cumbersome to handle on the user side. Maybe we should try a few times in the lib (eg with timeout) before failing, what do you think @lhoestq ? | Hi
I am hitting to this error, thanks
```
> Traceback (most recent call last):
File "finetune_t5_trainer.py", line 379, in <module>
main()
File "finetune_t5_trainer.py", line 208, in main
if training_args.do_eval or training_args.evaluation_strategy != EvaluationStrategy.NO
File "finetune_t5_trainer.py", line 207, in <dictcomp>
for task in data_args.eval_tasks}
File "/workdir/seq2seq/data/tasks.py", line 70, in get_dataset
dataset = self.load_dataset(split=split)
File "/workdir/seq2seq/data/tasks.py", line 66, in load_dataset
return datasets.load_dataset(self.task.name, 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 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 487, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/master/datasets/boolq/boolq.py
el/0 I1217 01:11:33.898849 354161 main shadow.py:210 Current job status: FINISHED
``` | 47 | connection error
Hi
I am hitting to this error, thanks
```
> Traceback (most recent call last):
File "finetune_t5_trainer.py", line 379, in <module>
main()
File "finetune_t5_trainer.py", line 208, in main
if training_args.do_eval or training_args.evaluation_strategy != EvaluationStrategy.NO
File "finetune_t5_trainer.py", line 207, in <dictcomp>
for task in data_args.eval_tasks}
File "/workdir/seq2seq/data/tasks.py", line 70, in get_dataset
dataset = self.load_dataset(split=split)
File "/workdir/seq2seq/data/tasks.py", line 66, in load_dataset
return datasets.load_dataset(self.task.name, 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 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 487, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/master/datasets/boolq/boolq.py
el/0 I1217 01:11:33.898849 354161 main shadow.py:210 Current job status: FINISHED
```
This happen quite often when they are too many concurrent requests to github.
i can understand it’s a bit cumbersome to handle on the user side. Maybe we should try a few times in the lib (eg with timeout) before failing, what do you think @lhoestq ? | [
-0.3293082416,
-0.1345845014,
-0.2016927004,
0.3231748044,
0.5001866817,
-0.1886006892,
0.160273701,
0.2997073829,
-0.3055783808,
0.1561733186,
0.0126572419,
-0.0056442851,
0.2251012176,
0.1642648578,
-0.0455742627,
-0.0660550222,
-0.2141919136,
0.0516920127,
-0.1668696553,
0.1017802507,
-0.0759900883,
0.0589255579,
-0.1356547028,
0.1066659987,
-0.0014335983,
-0.0925264955,
0.0482697412,
0.0914028808,
-0.1770410091,
-0.3981229961,
0.3847733736,
-0.0475314818,
-0.087820664,
0.2440321147,
-0.0001026008,
0.2239750624,
0.184070915,
0.0613851361,
-0.2191357166,
-0.1654971838,
-0.1825283766,
-0.1764971614,
0.3466189802,
-0.2045551986,
-0.3234609067,
0.1565369517,
0.0194416121,
0.0245129019,
0.6095240116,
0.5391378999,
0.3651292622,
0.1239328459,
0.2508781254,
-0.126358971,
0.0121593177,
-0.4649485648,
-0.0548876487,
0.2500354946,
0.2293920219,
-0.1382566988,
0.067775175,
0.0419031903,
0.0411456861,
-0.0182583369,
0.0719026625,
-0.1040175557,
0.1631600261,
-0.3608940244,
0.2469533384,
0.1152731553,
0.5638700128,
0.0516680367,
-0.1345328391,
0.243635729,
0.0145927602,
-0.2167295069,
0.2574055493,
0.0059996606,
-0.2366174459,
0.1825781316,
0.1746407449,
-0.1708103269,
-0.5097804666,
0.2297689319,
-0.0934129059,
0.2104026079,
-0.0483460464,
0.0594064854,
0.0371312872,
-0.2034061253,
0.323979795,
0.2822359502,
0.063996233,
0.0956026241,
-0.4873176515,
-0.0258342195,
-0.0517093837,
-0.1743867546,
-0.0484157056,
0.1437132508,
0.2108501643,
0.0826345161,
0.1433904618,
0.0551507771,
0.0877400786,
0.1378037184,
-0.1206299886,
0.2517747283,
0.2280284315,
0.3546996415,
-0.1444410235,
-0.0109688537,
-0.151702255,
-0.524537921,
0.0227189083,
0.3155860007,
0.3285773098,
-0.0800361186,
-0.2814172208,
0.160861969,
-0.0734795183,
0.0374101214,
-0.0147579648,
0.5862596631,
-0.4222015738,
0.1364524812,
-0.0385236256,
0.0206816327,
-0.1698475927,
0.0816257894,
-0.2103554308,
0.1286885291,
-0.1109865382,
-0.2046241462,
0.126740545,
-0.0979282409,
0.103681989,
-0.1254515052,
0.0796649754,
-0.1540385187,
0.2098279148,
-0.3071580529,
0.0403932519,
0.2144148499,
-0.0093315654,
-0.0397678651,
0.2562393546,
0.0868281871,
0.1426612288,
-0.0583049916,
-0.398639828,
-0.469907105,
-0.024636101,
0.3337433934,
0.1888819188,
-0.1018989235,
0.2425034195,
-0.2394428402,
0.1015265733,
-0.1859612167,
-0.1586313248,
-0.3791606426,
-0.189831391,
-0.2785963714,
0.3494769633,
0.241141066,
-0.2269230932,
-0.0555182993,
-0.0063574729,
-0.2299633473,
-0.0841930136,
0.109418951,
-0.1654982418,
0.185364455,
-0.2126497626,
-0.0556345358,
0.6239519119,
-0.6403183937,
-0.5884606242,
0.4518807232,
-0.2488525212,
-0.2172077298,
0.0026226537,
0.0128353955,
0.3157260716,
0.1871753186,
0.2534629703,
0.2531637251,
-0.096323058,
-0.037380971,
-0.1279286742,
-0.2783180475,
0.2104313821,
0.2529267967,
0.3383859694,
-0.0542285256,
0.1496918797,
-0.2224412113,
0.2122187465,
0.1233665571,
0.0551190972,
0.2695866823,
0.2858490646,
0.126641959,
-0.0151617723,
0.260918349,
-0.2238557637,
0.101138249,
-0.0823272318,
0.1316877753,
-0.4020650685,
0.2130478323,
-0.3046885431,
-0.0709668919,
-0.4243713915,
-0.1110656932,
0.3290538192,
0.0198726859,
0.1009849906,
0.0605012029,
-0.0466320179,
0.2943358123,
-0.1511770636,
0.1532867849,
-0.0333022624,
0.2780039012,
-0.326854825,
-0.0552035607,
0.0937718675,
0.003074799,
0.3442077935,
-0.1848725826,
-0.188628763,
0.2643788159,
-0.1593705863,
0.1300938278,
0.2049152553,
0.065729104,
0.1182719916,
-0.4483694136,
-0.023802869,
0.0437441878,
0.128538847,
-0.0440288521,
0.4191423655,
0.3036993444,
0.0296389125,
0.3536564708,
0.1969594806,
0.1627423167,
0.301146239,
0.0441379584,
-0.1183543652,
0.1699620634,
0.1193343475,
0.1104476303,
0.2826167941,
-0.2836559117,
-0.0844765306,
0.0332246535,
0.1643612832,
-0.0335938968,
0.0535358787,
0.0687817708,
0.2974517345,
-0.0559392758,
-0.1830290556,
0.1009351164,
0.4425369501,
0.0588133074,
-0.1450981945,
0.2595957518,
0.0428840965,
-0.1643869877,
0.3133172989,
0.0137784742,
0.2316976041,
0.3095139563,
0.0246754531,
-0.0696167573,
-0.1814825833,
-0.2767196298,
-0.1199273765,
0.3347522616,
-0.1648123264,
0.2214967459,
-0.0891915113,
-0.1461734921,
0.0719188973,
-0.1294409186,
-0.1530589908,
-0.2924025953,
-0.0076095033,
-0.0767283589,
0.1505486965,
0.2648813725,
-0.1862805188,
0.2516587973,
0.3692762554,
-0.1475119889,
0.0229871329,
-0.3701068759,
-0.1531624347,
0.203199029,
-0.0022341097,
-0.3685531616,
0.2077260762,
-0.192422241,
-0.2181379199,
-0.1249539033,
-0.1477751732,
0.0232449956,
0.0012744957,
0.0432975739,
0.2560489774,
0.3906776905,
0.1269904077,
-0.0520314015,
0.4064906538,
-0.0884208977,
-0.0913151428,
0.0280717947,
-0.0236179847,
0.0279099159,
0.0800112188,
-0.6284662485,
-0.586935401,
-0.2942396402,
0.1182904169,
0.1431986988,
0.1980279237,
0.2489210814,
0.1683933735,
0.1541634202,
0.0365751311,
0.3181300163,
-0.2569621503,
-0.5267907977,
0.177482143,
-0.1706408411,
-0.4868077636,
0.2212445736,
0.1338597387,
0.5196140409,
-0.039279826,
-0.4721222222,
-0.4179496765,
0.0700985566,
0.1188789085,
-0.3165242076,
-0.1002302095,
0.2164639533,
-0.0834572688,
-0.1960401088,
0.0654203072,
-0.027941063,
0.1786319762,
-0.0001166916,
0.2409600914,
-0.1367489994,
0.4993527234,
-0.0066891159,
0.4120450616,
-0.0015901272,
0.041638758,
0.1739621162,
-0.2517150342,
0.1825364977,
0.0320863724,
-0.3973609209,
0.1971777231,
-0.0506809428,
-0.1291240156,
0.0730499998,
-0.1645359248,
0.1909099966,
-0.5621136427,
0.04274901,
-0.391292721,
-0.2510992587,
-0.1200513169,
-0.2660154402,
0.2810435891,
0.0346741825,
0.0859909728,
-0.0982128009,
0.0313235223,
0.0420695692,
0.3615584671,
-0.1767035872,
0.0078709321,
0.0109080235,
-0.0729203969,
-0.3522169292,
0.2808560729,
-0.0276008658,
0.509087503,
-0.4446036518,
0.0221328568,
0.0861783475,
-0.0871060416,
0.6551519632,
-0.2658197284,
0.1087111011,
0.1216819584,
-0.0544464476,
-0.037087515,
-0.1218065545,
-0.1175647229,
0.0180061292,
0.1102117449,
0.0187625233,
-0.2171085179,
0.0363608971,
0.137686789,
-0.2447353005,
-0.3150655925,
0.0254312754,
-0.284810394,
-0.3694689274,
-0.0877859294,
0.0204958301,
-0.0204051938,
0.2766889036,
0.0878964141,
-0.1161070541,
0.0979300812,
-0.1133306623,
0.0173427928,
0.0017108484,
-0.0560510904,
-0.178709656,
0.0288763754,
0.1128018498,
0.1006798744,
0.2440427244,
0.4235986769,
-0.0448745415,
-0.4300361574,
0.107609719,
0.02847022,
0.2794891,
0.1612027884,
-0.162758857,
0.2013745159,
0.1291835308,
0.3139095902,
0.1362460852,
0.1027411297,
0.5461699367,
0.0042749946,
-0.2236461937,
-0.3965304196,
-0.0348815806,
-0.0644254386,
0.0113104274,
-0.027478952,
-0.2196493596,
-0.0800053924,
0.0886780918,
-0.1124988422,
0.8294604421,
0.0559740104,
0.1079067066,
0.3164258599,
-0.1620282531,
0.325257808,
-0.3066830933,
0.2736479044,
-0.3532902598,
-0.2786339521,
-0.0291732606,
-0.1496636122,
0.1126585528,
-0.1508235037,
-0.2704812884,
0.3974289596,
-0.1038568243,
-0.0151743842,
-0.0373828895,
0.0277133062,
-0.0563358627,
0.1403033286,
-0.3439784348,
0.2541300356,
-0.2757760882,
0.3824890852,
-0.2450357974,
-0.2291568667,
0.0792994425,
-0.368665725,
-0.0293781236,
0.2552646101,
-0.5707986951,
0.3553518355,
0.1545437127,
-0.2585824728,
-0.0773387924,
0.0948887989,
0.05522497,
0.0117141539,
-0.0373346694,
0.2538473904,
-0.1581550688,
0.030168375,
0.0315382667,
0.2192120999,
0.1645489335,
-0.2323610336,
-0.2736300528,
0.4664444923,
-0.060499277,
-0.1921819299,
0.1606217176,
0.0782429054,
0.1615361273,
-0.2441442758,
0.026364008,
-0.2938997746,
-0.280244112,
-0.1792213619,
0.2058231831,
-0.0246951245,
-0.213359192,
0.2009063661,
0.2296081334,
-0.2660566866,
-0.0023665614,
0.5637319088,
0.0339705609,
-0.103813611,
0.5721569061,
0.0662538409,
-0.078910552,
-0.3221278489,
0.0294784494,
-0.3145596385,
-0.1750092804,
-0.0270839334,
0.0321229622,
0.1296551824,
0.0526437089,
0.1740809828,
0.0958075821,
0.3109668195,
-0.0165244993,
-0.4803709984,
-0.3675085604,
-0.025188785,
-0.0307891481,
0.1159082577,
0.0154815055,
0.3045248687,
0.1293401718,
-0.1455639899,
-0.4137913287,
0.0382317118,
-0.4060225487,
-0.0250340998,
0.163233757,
-0.4319888949,
0.2081799954,
0.2303438634,
0.2680649757,
-0.1451089084,
-0.3038479388,
-0.29647246,
0.07549081,
0.0826491565,
0.0192131512,
-0.1086063236,
-0.1849853843,
-0.2091997266,
-0.0872025713,
0.219631359,
0.017261833,
-0.0529180355,
0.0027893959,
0.0397935882,
-0.2459591627,
0.0118428385,
-0.0590340719,
0.1182145849,
0.0088240914,
0.3148770332,
0.0764694363,
0.0935584009,
-0.2288633138,
-0.2149311602,
-0.0494593158,
0.0181146059,
0.1174893379,
-0.1726864874,
0.4006975889,
-0.2829343081,
-0.0837282911,
-0.1904571056,
0.2987388372,
0.4727965295,
-0.2473805994,
0.0802389383,
-0.0273024812,
0.3197718561,
-0.1681525856,
-0.0463616773,
-0.1242023408,
-0.0514261164,
-0.0253464803,
-0.0628125593,
-0.2026315331,
-0.1088778749,
0.0428656191,
0.1006500944,
0.312260747,
-0.1423396468,
0.0757190064,
0.2222026139,
-0.1228756905,
-0.0651843548,
0.1654011011,
-0.1106474698,
0.1571676433,
0.276772052,
-0.2756941915,
0.1414107382,
-0.2967182994,
-0.0063289925,
-0.0764336213,
-0.3028630912,
-0.1283048987,
0.0337628759,
-0.2258467078,
-0.2506490946,
-0.1360697597,
0.3380429745,
-0.0385780036,
-0.1033947691,
-0.3024476767,
0.1202887669,
-0.2053769529,
-0.2039034963,
0.0223923251,
-0.1146416813,
-0.1198230833,
-0.0627378374,
0.0718694776,
0.0012592379,
0.0875680745,
0.1861037165,
0.0112275025,
-0.0528696477,
-0.087360993,
0.2029919177,
-0.0180559885,
-0.1929121464,
0.288275212,
0.2056525201,
0.074729912,
-0.2149978578,
0.2968590856,
0.5699781775,
0.359492451,
-0.1515304297,
0.1315043718,
0.1248289347,
-0.0330186561,
-0.0403571427,
-0.0303494502,
0.2941540182,
0.0763507634,
0.3400414288,
0.2877490222,
-0.1894125938,
0.3914564252,
-0.068606995,
0.111032784,
-0.0636678636,
0.1955820173,
0.1219097376,
-0.099311769,
-0.4362105429,
0.2374269366,
-0.6870331168,
0.0176416952,
0.1313974857,
0.0855285078,
0.273065567,
-0.2660716474,
0.1238822863,
-0.2409586012,
0.6968004704,
0.2872365117,
0.2240162045,
-0.3663333058,
-0.0454768203,
-0.4192793369,
0.3314242959,
0.0393612832,
0.0967451781,
-0.1452010423,
0.1707277745,
-0.1317277402,
0.1927180588,
0.3683381081,
-0.0617678799,
0.0475334004,
0.0752870291,
-0.3002041578,
-0.0893396437,
0.1133301705,
0.1212981716,
0.0776123926,
-0.187150836,
0.1649668962,
-0.4068343043,
0.225876689,
0.0177899264,
-0.2796663642,
0.0114735654,
-0.0562088117,
0.4100194275,
0.0544076785,
0.4602581263,
-0.0172595624,
0.0323368907,
-0.0638577044,
-0.39203462,
0.1263434142,
0.1834333986,
0.2198941559,
-0.033067733,
0.0796697363,
0.0409014933,
-0.3526592255,
0.1972060204,
-0.0334700905,
-0.0518280938,
-0.0524145626,
-0.001403147,
0.3012178242,
0.0876958221,
-0.0379098281,
-0.1161680296,
-0.0168766733,
-0.0071442625,
-0.5099962354,
-0.3519432545,
0.4959526062,
0.1254886389,
-0.0674906969,
-0.2154364884,
0.3892977238,
-0.0426004119,
0.2377913445,
-0.3732433021,
0.3449621499,
0.3041447401,
-0.0472726487,
-0.3802527487,
0.3203732371,
-0.1481858492,
0.3062389493,
0.0021893,
-0.05636473,
-0.1056749374,
-0.0378375016,
-0.1125170514,
-0.1095813513
] |
https://github.com/huggingface/datasets/issues/1594 | connection error | Hi @lhoestq thank you for the modification, I will use`script_version="master"` for now :), to my experience, also setting timeout to a larger number like 3*60 which I normally use helps a lot on this.
| Hi
I am hitting to this error, thanks
```
> Traceback (most recent call last):
File "finetune_t5_trainer.py", line 379, in <module>
main()
File "finetune_t5_trainer.py", line 208, in main
if training_args.do_eval or training_args.evaluation_strategy != EvaluationStrategy.NO
File "finetune_t5_trainer.py", line 207, in <dictcomp>
for task in data_args.eval_tasks}
File "/workdir/seq2seq/data/tasks.py", line 70, in get_dataset
dataset = self.load_dataset(split=split)
File "/workdir/seq2seq/data/tasks.py", line 66, in load_dataset
return datasets.load_dataset(self.task.name, 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 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 487, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/master/datasets/boolq/boolq.py
el/0 I1217 01:11:33.898849 354161 main shadow.py:210 Current job status: FINISHED
``` | 34 | connection error
Hi
I am hitting to this error, thanks
```
> Traceback (most recent call last):
File "finetune_t5_trainer.py", line 379, in <module>
main()
File "finetune_t5_trainer.py", line 208, in main
if training_args.do_eval or training_args.evaluation_strategy != EvaluationStrategy.NO
File "finetune_t5_trainer.py", line 207, in <dictcomp>
for task in data_args.eval_tasks}
File "/workdir/seq2seq/data/tasks.py", line 70, in get_dataset
dataset = self.load_dataset(split=split)
File "/workdir/seq2seq/data/tasks.py", line 66, in load_dataset
return datasets.load_dataset(self.task.name, 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 267, in prepare_module
local_path = cached_path(file_path, download_config=download_config)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 487, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/master/datasets/boolq/boolq.py
el/0 I1217 01:11:33.898849 354161 main shadow.py:210 Current job status: FINISHED
```
Hi @lhoestq thank you for the modification, I will use`script_version="master"` for now :), to my experience, also setting timeout to a larger number like 3*60 which I normally use helps a lot on this.
| [
-0.3293082416,
-0.1345845014,
-0.2016927004,
0.3231748044,
0.5001866817,
-0.1886006892,
0.160273701,
0.2997073829,
-0.3055783808,
0.1561733186,
0.0126572419,
-0.0056442851,
0.2251012176,
0.1642648578,
-0.0455742627,
-0.0660550222,
-0.2141919136,
0.0516920127,
-0.1668696553,
0.1017802507,
-0.0759900883,
0.0589255579,
-0.1356547028,
0.1066659987,
-0.0014335983,
-0.0925264955,
0.0482697412,
0.0914028808,
-0.1770410091,
-0.3981229961,
0.3847733736,
-0.0475314818,
-0.087820664,
0.2440321147,
-0.0001026008,
0.2239750624,
0.184070915,
0.0613851361,
-0.2191357166,
-0.1654971838,
-0.1825283766,
-0.1764971614,
0.3466189802,
-0.2045551986,
-0.3234609067,
0.1565369517,
0.0194416121,
0.0245129019,
0.6095240116,
0.5391378999,
0.3651292622,
0.1239328459,
0.2508781254,
-0.126358971,
0.0121593177,
-0.4649485648,
-0.0548876487,
0.2500354946,
0.2293920219,
-0.1382566988,
0.067775175,
0.0419031903,
0.0411456861,
-0.0182583369,
0.0719026625,
-0.1040175557,
0.1631600261,
-0.3608940244,
0.2469533384,
0.1152731553,
0.5638700128,
0.0516680367,
-0.1345328391,
0.243635729,
0.0145927602,
-0.2167295069,
0.2574055493,
0.0059996606,
-0.2366174459,
0.1825781316,
0.1746407449,
-0.1708103269,
-0.5097804666,
0.2297689319,
-0.0934129059,
0.2104026079,
-0.0483460464,
0.0594064854,
0.0371312872,
-0.2034061253,
0.323979795,
0.2822359502,
0.063996233,
0.0956026241,
-0.4873176515,
-0.0258342195,
-0.0517093837,
-0.1743867546,
-0.0484157056,
0.1437132508,
0.2108501643,
0.0826345161,
0.1433904618,
0.0551507771,
0.0877400786,
0.1378037184,
-0.1206299886,
0.2517747283,
0.2280284315,
0.3546996415,
-0.1444410235,
-0.0109688537,
-0.151702255,
-0.524537921,
0.0227189083,
0.3155860007,
0.3285773098,
-0.0800361186,
-0.2814172208,
0.160861969,
-0.0734795183,
0.0374101214,
-0.0147579648,
0.5862596631,
-0.4222015738,
0.1364524812,
-0.0385236256,
0.0206816327,
-0.1698475927,
0.0816257894,
-0.2103554308,
0.1286885291,
-0.1109865382,
-0.2046241462,
0.126740545,
-0.0979282409,
0.103681989,
-0.1254515052,
0.0796649754,
-0.1540385187,
0.2098279148,
-0.3071580529,
0.0403932519,
0.2144148499,
-0.0093315654,
-0.0397678651,
0.2562393546,
0.0868281871,
0.1426612288,
-0.0583049916,
-0.398639828,
-0.469907105,
-0.024636101,
0.3337433934,
0.1888819188,
-0.1018989235,
0.2425034195,
-0.2394428402,
0.1015265733,
-0.1859612167,
-0.1586313248,
-0.3791606426,
-0.189831391,
-0.2785963714,
0.3494769633,
0.241141066,
-0.2269230932,
-0.0555182993,
-0.0063574729,
-0.2299633473,
-0.0841930136,
0.109418951,
-0.1654982418,
0.185364455,
-0.2126497626,
-0.0556345358,
0.6239519119,
-0.6403183937,
-0.5884606242,
0.4518807232,
-0.2488525212,
-0.2172077298,
0.0026226537,
0.0128353955,
0.3157260716,
0.1871753186,
0.2534629703,
0.2531637251,
-0.096323058,
-0.037380971,
-0.1279286742,
-0.2783180475,
0.2104313821,
0.2529267967,
0.3383859694,
-0.0542285256,
0.1496918797,
-0.2224412113,
0.2122187465,
0.1233665571,
0.0551190972,
0.2695866823,
0.2858490646,
0.126641959,
-0.0151617723,
0.260918349,
-0.2238557637,
0.101138249,
-0.0823272318,
0.1316877753,
-0.4020650685,
0.2130478323,
-0.3046885431,
-0.0709668919,
-0.4243713915,
-0.1110656932,
0.3290538192,
0.0198726859,
0.1009849906,
0.0605012029,
-0.0466320179,
0.2943358123,
-0.1511770636,
0.1532867849,
-0.0333022624,
0.2780039012,
-0.326854825,
-0.0552035607,
0.0937718675,
0.003074799,
0.3442077935,
-0.1848725826,
-0.188628763,
0.2643788159,
-0.1593705863,
0.1300938278,
0.2049152553,
0.065729104,
0.1182719916,
-0.4483694136,
-0.023802869,
0.0437441878,
0.128538847,
-0.0440288521,
0.4191423655,
0.3036993444,
0.0296389125,
0.3536564708,
0.1969594806,
0.1627423167,
0.301146239,
0.0441379584,
-0.1183543652,
0.1699620634,
0.1193343475,
0.1104476303,
0.2826167941,
-0.2836559117,
-0.0844765306,
0.0332246535,
0.1643612832,
-0.0335938968,
0.0535358787,
0.0687817708,
0.2974517345,
-0.0559392758,
-0.1830290556,
0.1009351164,
0.4425369501,
0.0588133074,
-0.1450981945,
0.2595957518,
0.0428840965,
-0.1643869877,
0.3133172989,
0.0137784742,
0.2316976041,
0.3095139563,
0.0246754531,
-0.0696167573,
-0.1814825833,
-0.2767196298,
-0.1199273765,
0.3347522616,
-0.1648123264,
0.2214967459,
-0.0891915113,
-0.1461734921,
0.0719188973,
-0.1294409186,
-0.1530589908,
-0.2924025953,
-0.0076095033,
-0.0767283589,
0.1505486965,
0.2648813725,
-0.1862805188,
0.2516587973,
0.3692762554,
-0.1475119889,
0.0229871329,
-0.3701068759,
-0.1531624347,
0.203199029,
-0.0022341097,
-0.3685531616,
0.2077260762,
-0.192422241,
-0.2181379199,
-0.1249539033,
-0.1477751732,
0.0232449956,
0.0012744957,
0.0432975739,
0.2560489774,
0.3906776905,
0.1269904077,
-0.0520314015,
0.4064906538,
-0.0884208977,
-0.0913151428,
0.0280717947,
-0.0236179847,
0.0279099159,
0.0800112188,
-0.6284662485,
-0.586935401,
-0.2942396402,
0.1182904169,
0.1431986988,
0.1980279237,
0.2489210814,
0.1683933735,
0.1541634202,
0.0365751311,
0.3181300163,
-0.2569621503,
-0.5267907977,
0.177482143,
-0.1706408411,
-0.4868077636,
0.2212445736,
0.1338597387,
0.5196140409,
-0.039279826,
-0.4721222222,
-0.4179496765,
0.0700985566,
0.1188789085,
-0.3165242076,
-0.1002302095,
0.2164639533,
-0.0834572688,
-0.1960401088,
0.0654203072,
-0.027941063,
0.1786319762,
-0.0001166916,
0.2409600914,
-0.1367489994,
0.4993527234,
-0.0066891159,
0.4120450616,
-0.0015901272,
0.041638758,
0.1739621162,
-0.2517150342,
0.1825364977,
0.0320863724,
-0.3973609209,
0.1971777231,
-0.0506809428,
-0.1291240156,
0.0730499998,
-0.1645359248,
0.1909099966,
-0.5621136427,
0.04274901,
-0.391292721,
-0.2510992587,
-0.1200513169,
-0.2660154402,
0.2810435891,
0.0346741825,
0.0859909728,
-0.0982128009,
0.0313235223,
0.0420695692,
0.3615584671,
-0.1767035872,
0.0078709321,
0.0109080235,
-0.0729203969,
-0.3522169292,
0.2808560729,
-0.0276008658,
0.509087503,
-0.4446036518,
0.0221328568,
0.0861783475,
-0.0871060416,
0.6551519632,
-0.2658197284,
0.1087111011,
0.1216819584,
-0.0544464476,
-0.037087515,
-0.1218065545,
-0.1175647229,
0.0180061292,
0.1102117449,
0.0187625233,
-0.2171085179,
0.0363608971,
0.137686789,
-0.2447353005,
-0.3150655925,
0.0254312754,
-0.284810394,
-0.3694689274,
-0.0877859294,
0.0204958301,
-0.0204051938,
0.2766889036,
0.0878964141,
-0.1161070541,
0.0979300812,
-0.1133306623,
0.0173427928,
0.0017108484,
-0.0560510904,
-0.178709656,
0.0288763754,
0.1128018498,
0.1006798744,
0.2440427244,
0.4235986769,
-0.0448745415,
-0.4300361574,
0.107609719,
0.02847022,
0.2794891,
0.1612027884,
-0.162758857,
0.2013745159,
0.1291835308,
0.3139095902,
0.1362460852,
0.1027411297,
0.5461699367,
0.0042749946,
-0.2236461937,
-0.3965304196,
-0.0348815806,
-0.0644254386,
0.0113104274,
-0.027478952,
-0.2196493596,
-0.0800053924,
0.0886780918,
-0.1124988422,
0.8294604421,
0.0559740104,
0.1079067066,
0.3164258599,
-0.1620282531,
0.325257808,
-0.3066830933,
0.2736479044,
-0.3532902598,
-0.2786339521,
-0.0291732606,
-0.1496636122,
0.1126585528,
-0.1508235037,
-0.2704812884,
0.3974289596,
-0.1038568243,
-0.0151743842,
-0.0373828895,
0.0277133062,
-0.0563358627,
0.1403033286,
-0.3439784348,
0.2541300356,
-0.2757760882,
0.3824890852,
-0.2450357974,
-0.2291568667,
0.0792994425,
-0.368665725,
-0.0293781236,
0.2552646101,
-0.5707986951,
0.3553518355,
0.1545437127,
-0.2585824728,
-0.0773387924,
0.0948887989,
0.05522497,
0.0117141539,
-0.0373346694,
0.2538473904,
-0.1581550688,
0.030168375,
0.0315382667,
0.2192120999,
0.1645489335,
-0.2323610336,
-0.2736300528,
0.4664444923,
-0.060499277,
-0.1921819299,
0.1606217176,
0.0782429054,
0.1615361273,
-0.2441442758,
0.026364008,
-0.2938997746,
-0.280244112,
-0.1792213619,
0.2058231831,
-0.0246951245,
-0.213359192,
0.2009063661,
0.2296081334,
-0.2660566866,
-0.0023665614,
0.5637319088,
0.0339705609,
-0.103813611,
0.5721569061,
0.0662538409,
-0.078910552,
-0.3221278489,
0.0294784494,
-0.3145596385,
-0.1750092804,
-0.0270839334,
0.0321229622,
0.1296551824,
0.0526437089,
0.1740809828,
0.0958075821,
0.3109668195,
-0.0165244993,
-0.4803709984,
-0.3675085604,
-0.025188785,
-0.0307891481,
0.1159082577,
0.0154815055,
0.3045248687,
0.1293401718,
-0.1455639899,
-0.4137913287,
0.0382317118,
-0.4060225487,
-0.0250340998,
0.163233757,
-0.4319888949,
0.2081799954,
0.2303438634,
0.2680649757,
-0.1451089084,
-0.3038479388,
-0.29647246,
0.07549081,
0.0826491565,
0.0192131512,
-0.1086063236,
-0.1849853843,
-0.2091997266,
-0.0872025713,
0.219631359,
0.017261833,
-0.0529180355,
0.0027893959,
0.0397935882,
-0.2459591627,
0.0118428385,
-0.0590340719,
0.1182145849,
0.0088240914,
0.3148770332,
0.0764694363,
0.0935584009,
-0.2288633138,
-0.2149311602,
-0.0494593158,
0.0181146059,
0.1174893379,
-0.1726864874,
0.4006975889,
-0.2829343081,
-0.0837282911,
-0.1904571056,
0.2987388372,
0.4727965295,
-0.2473805994,
0.0802389383,
-0.0273024812,
0.3197718561,
-0.1681525856,
-0.0463616773,
-0.1242023408,
-0.0514261164,
-0.0253464803,
-0.0628125593,
-0.2026315331,
-0.1088778749,
0.0428656191,
0.1006500944,
0.312260747,
-0.1423396468,
0.0757190064,
0.2222026139,
-0.1228756905,
-0.0651843548,
0.1654011011,
-0.1106474698,
0.1571676433,
0.276772052,
-0.2756941915,
0.1414107382,
-0.2967182994,
-0.0063289925,
-0.0764336213,
-0.3028630912,
-0.1283048987,
0.0337628759,
-0.2258467078,
-0.2506490946,
-0.1360697597,
0.3380429745,
-0.0385780036,
-0.1033947691,
-0.3024476767,
0.1202887669,
-0.2053769529,
-0.2039034963,
0.0223923251,
-0.1146416813,
-0.1198230833,
-0.0627378374,
0.0718694776,
0.0012592379,
0.0875680745,
0.1861037165,
0.0112275025,
-0.0528696477,
-0.087360993,
0.2029919177,
-0.0180559885,
-0.1929121464,
0.288275212,
0.2056525201,
0.074729912,
-0.2149978578,
0.2968590856,
0.5699781775,
0.359492451,
-0.1515304297,
0.1315043718,
0.1248289347,
-0.0330186561,
-0.0403571427,
-0.0303494502,
0.2941540182,
0.0763507634,
0.3400414288,
0.2877490222,
-0.1894125938,
0.3914564252,
-0.068606995,
0.111032784,
-0.0636678636,
0.1955820173,
0.1219097376,
-0.099311769,
-0.4362105429,
0.2374269366,
-0.6870331168,
0.0176416952,
0.1313974857,
0.0855285078,
0.273065567,
-0.2660716474,
0.1238822863,
-0.2409586012,
0.6968004704,
0.2872365117,
0.2240162045,
-0.3663333058,
-0.0454768203,
-0.4192793369,
0.3314242959,
0.0393612832,
0.0967451781,
-0.1452010423,
0.1707277745,
-0.1317277402,
0.1927180588,
0.3683381081,
-0.0617678799,
0.0475334004,
0.0752870291,
-0.3002041578,
-0.0893396437,
0.1133301705,
0.1212981716,
0.0776123926,
-0.187150836,
0.1649668962,
-0.4068343043,
0.225876689,
0.0177899264,
-0.2796663642,
0.0114735654,
-0.0562088117,
0.4100194275,
0.0544076785,
0.4602581263,
-0.0172595624,
0.0323368907,
-0.0638577044,
-0.39203462,
0.1263434142,
0.1834333986,
0.2198941559,
-0.033067733,
0.0796697363,
0.0409014933,
-0.3526592255,
0.1972060204,
-0.0334700905,
-0.0518280938,
-0.0524145626,
-0.001403147,
0.3012178242,
0.0876958221,
-0.0379098281,
-0.1161680296,
-0.0168766733,
-0.0071442625,
-0.5099962354,
-0.3519432545,
0.4959526062,
0.1254886389,
-0.0674906969,
-0.2154364884,
0.3892977238,
-0.0426004119,
0.2377913445,
-0.3732433021,
0.3449621499,
0.3041447401,
-0.0472726487,
-0.3802527487,
0.3203732371,
-0.1481858492,
0.3062389493,
0.0021893,
-0.05636473,
-0.1056749374,
-0.0378375016,
-0.1125170514,
-0.1095813513
] |
https://github.com/huggingface/datasets/issues/1593 | Access to key in DatasetDict map | Indeed that would be cool
Also FYI right now the easiest way to do this is
```python
dataset_dict["train"] = dataset_dict["train"].map(my_transform_for_the_train_set)
dataset_dict["test"] = dataset_dict["test"].map(my_transform_for_the_test_set)
``` | It is possible that we want to do different things in the `map` function (and possibly other functions too) of a `DatasetDict`, depending on the key. I understand that `DatasetDict.map` is a really thin wrapper of `Dataset.map`, so it is easy to directly implement this functionality in the client code. Still, it'd be nice if there can be a flag, similar to `with_indices`, that allows the callable to know the key inside `DatasetDict`. | 24 | Access to key in DatasetDict map
It is possible that we want to do different things in the `map` function (and possibly other functions too) of a `DatasetDict`, depending on the key. I understand that `DatasetDict.map` is a really thin wrapper of `Dataset.map`, so it is easy to directly implement this functionality in the client code. Still, it'd be nice if there can be a flag, similar to `with_indices`, that allows the callable to know the key inside `DatasetDict`.
Indeed that would be cool
Also FYI right now the easiest way to do this is
```python
dataset_dict["train"] = dataset_dict["train"].map(my_transform_for_the_train_set)
dataset_dict["test"] = dataset_dict["test"].map(my_transform_for_the_test_set)
``` | [
0.0123614157,
-0.0980539173,
-0.1504415125,
0.0315881483,
0.1485254765,
0.0519787185,
0.2157811671,
0.1856267899,
0.2782225013,
0.1137607694,
0.0187769849,
0.6971396804,
-0.194628343,
0.3624712825,
0.007596151,
0.1261142492,
-0.0822672322,
0.1726017892,
0.2597609758,
0.0200804379,
-0.500708282,
-0.2413183302,
-0.2991088331,
0.1724796891,
0.1813094169,
-0.0581900403,
-0.0412484556,
-0.1254831553,
0.0863484591,
-0.4971494675,
0.3150214255,
0.3500139415,
-0.071342282,
0.0319678485,
-0.0001151014,
0.1653413177,
0.1797240376,
-0.0615740418,
-0.2317579985,
-0.2660993934,
-0.4753483832,
-0.2223521471,
-0.0665306374,
-0.6481957436,
0.0736430585,
-0.2658875287,
0.0899402797,
-0.3869358301,
0.1715967506,
0.1491446346,
0.1471835375,
0.1689082831,
-0.0654481873,
0.2037468702,
-0.0100794611,
0.0594719313,
-0.0677718297,
-0.125158146,
0.0909936056,
-0.1609251499,
0.1930095851,
0.0897945911,
-0.0347213,
-0.1856620461,
0.4800028205,
0.196226716,
-0.2003140152,
-0.2015484124,
-0.0350127406,
0.1073154286,
0.2576013803,
-0.4645333588,
-0.4607771635,
-0.349897027,
0.0422464646,
0.0605239235,
0.1202887669,
-0.1899610907,
0.1220525801,
0.2078466713,
-0.0567755587,
-0.0148760881,
-0.1210495532,
0.0696347505,
-0.1026101932,
0.3232738674,
0.0501521528,
0.3766309619,
0.1448031962,
0.1034577042,
-0.0507291406,
-0.170942992,
0.0642509013,
0.4460493624,
-0.0070258202,
-0.1497471929,
0.252393961,
-0.1559844017,
0.2075985819,
-0.3478933573,
0.1729162037,
0.1256628036,
-0.466278106,
0.3151428699,
0.3825658262,
0.1909717619,
0.3423774838,
0.4960177839,
0.4341561496,
-0.2414717674,
-0.1015852392,
0.0000162431,
0.0529405624,
-0.0984008685,
0.3259885609,
0.4494172335,
0.4494538903,
0.1942176521,
-0.0887198448,
-0.1422718316,
-0.1836029291,
-0.2230858356,
0.2525044978,
0.1441774219,
0.1953484416,
0.1295473129,
-0.0843949169,
-0.1063770354,
0.1183463037,
0.0830748454,
-0.1132614017,
-0.1972926855,
0.1457879543,
-0.0385117568,
0.0284650065,
-0.0229256507,
0.047910884,
-0.1424473971,
0.1269005239,
0.1206092387,
0.2216485739,
-0.1108534634,
0.4448649287,
0.0949501246,
-0.3591144085,
-0.0233875737,
0.1648881435,
-0.2535074949,
-0.5074763894,
0.0631086901,
-0.2506266236,
-0.3553038836,
0.5641081929,
0.1127248332,
0.1348875761,
0.0448333882,
-0.1656802446,
0.4262410402,
0.0385417938,
-0.1489328593,
0.292441994,
-0.1452793181,
-0.635440886,
-0.4432381094,
-0.1224961057,
0.0715211555,
-0.4225708544,
-0.2193415165,
0.1936888695,
-0.2955152988,
-0.2337775528,
-0.1400130689,
-0.4305416644,
0.1845207959,
-0.1133115962,
0.0842302367,
0.5983130336,
-0.5417663455,
-0.7054085135,
-0.0194748677,
-0.0734467432,
-0.0909808725,
0.1061513945,
0.1983311176,
0.3027151227,
-0.1075788811,
0.3345132172,
0.2482724488,
0.0704047605,
0.0739822388,
0.3476859927,
-0.0775432959,
0.0440013967,
-0.1386538893,
-0.2733569443,
0.0123964604,
-0.0209335554,
-0.1570061594,
0.1605325788,
-0.0444433875,
0.1319594979,
-0.0316114798,
0.1468591094,
-0.0147864418,
0.0897356272,
-0.0011812814,
-0.1574278027,
0.4363515973,
-0.068803899,
-0.1161405221,
-0.3282231987,
-0.5135016441,
0.0457429625,
0.337620914,
-0.1675524116,
0.0446508899,
0.1876632422,
-0.0961414203,
0.0183245707,
-0.0490371846,
-0.3668047786,
0.0269408673,
-0.0686387271,
-0.1688913703,
0.0345468707,
-0.1081573367,
0.2327878475,
0.2283021659,
0.0057083718,
0.1308419406,
0.1189313009,
0.1284096092,
-0.1436490268,
-0.0352757573,
0.3456194103,
-0.0780207291,
-0.135810256,
0.4973070323,
0.1956261992,
0.0363543071,
0.0547040254,
0.2495283633,
0.1709623784,
-0.1297853738,
-0.1426120102,
0.5926753283,
0.0285717454,
0.5155331492,
-0.0098349946,
0.0482869446,
0.0550443679,
0.0576744266,
-0.4270041883,
-0.3303964138,
-0.4731333256,
-0.191827327,
0.2141079009,
0.0192025118,
0.1139842868,
0.1446618587,
0.6021999121,
0.0569201894,
0.1399385482,
-0.2470756024,
-0.1606609821,
0.1173474565,
-0.0280297827,
0.0974751785,
0.2293156981,
0.1352887154,
-0.0288376603,
0.093540512,
-0.1350359768,
0.131369099,
0.1300599277,
0.3321389258,
-0.1751943082,
-0.2858266532,
0.0560935289,
-0.0637324676,
-0.0282835551,
-0.3308683932,
-0.055825185,
-0.09748815,
-0.1905636787,
0.2413426042,
-0.0426224656,
-0.0978619084,
0.0608878434,
-0.2186290324,
0.0325923823,
-0.3761591017,
-0.0131311193,
0.0083223525,
-0.2312106192,
0.1049046814,
-0.1630043387,
0.1837063134,
0.13999933,
-0.3912051618,
0.031725429,
-0.4720563591,
0.0369169414,
0.0322631635,
0.0279490184,
-0.3296684921,
0.3956873715,
0.2419892848,
0.0166118611,
-0.1163707599,
-0.2459561378,
-0.0053216163,
-0.1730001718,
-0.2134753168,
0.3398188055,
0.1414761543,
-0.1757378578,
0.1314514279,
0.128494069,
0.033068791,
-0.2387270182,
-0.1916491538,
0.0559132993,
-0.0331564918,
0.005646633,
-0.0744239837,
-0.2525496483,
-0.3577527404,
0.5741580725,
-0.1613997072,
0.246769011,
-0.0077677681,
-0.0785116255,
0.1846994609,
0.1403213888,
0.1610546559,
-0.2782911062,
0.2995184362,
0.1700736433,
-0.1171785071,
-0.1032218188,
-0.111433126,
-0.232827723,
0.23137559,
0.1477987468,
-0.1864002943,
-0.1199131757,
-0.0949170142,
0.3826447725,
-0.1426099837,
0.0625524744,
0.3247350454,
0.3371560872,
0.0288054328,
-0.1656000465,
-0.2728475332,
-0.1100338697,
0.3427270949,
-0.3026394248,
0.4693035483,
0.3372186124,
-0.0239044745,
0.4323867857,
-0.028121911,
-0.0266242679,
0.0863450766,
-0.0989652798,
0.0983519033,
0.0146524347,
-0.3411610126,
-0.2429898828,
0.1172860712,
0.015698038,
0.0947756916,
-0.1910481304,
-0.1910979599,
-0.0792386383,
-0.5995087624,
-0.0115666026,
-0.1916850358,
0.2917587459,
-0.1449210048,
0.0565014519,
0.038561184,
0.2522509396,
-0.3942566812,
0.1860197932,
0.0070532556,
-0.2436262518,
0.3206493258,
-0.2016778588,
-0.1346746832,
-0.4841747284,
-0.2913573384,
0.2284653038,
0.1066893563,
0.1826999485,
0.1247131079,
-0.186144501,
0.0424535125,
0.03515907,
0.6711299419,
-0.090237692,
-0.0433976352,
0.1302248985,
-0.1705901325,
-0.4726112187,
0.1933230162,
0.0955843404,
0.6799286604,
-0.4885376096,
0.4142967761,
-0.2821063399,
0.1681351066,
-0.2788060308,
0.1424883902,
-0.279293716,
-0.237033397,
-0.1003671288,
0.0329026058,
-0.3489789069,
0.1554313898,
0.0556014441,
-0.2057236284,
-0.0410666727,
0.0037353439,
-0.1011340544,
-0.0587355606,
-0.0257111471,
0.2758452296,
0.181714192,
0.0462847501,
0.1480604261,
0.3917503059,
-0.0673685074,
0.001990329,
0.4635417163,
0.090064995,
-0.6185466647,
-0.2677066624,
0.2093935311,
0.3605561554,
0.0001382645,
0.0508037098,
0.3652797639,
0.2122524977,
-0.3647410572,
-0.2920520902,
-0.0912644938,
0.1370172799,
0.1409703493,
-0.62269032,
-0.8021764755,
0.5334591269,
0.1424504369,
-0.4570408762,
0.5476125479,
0.1369370222,
-0.5080650449,
0.6939815283,
0.0317472965,
0.8180795908,
0.0909689665,
0.2459730804,
-0.1142298579,
-0.2517317533,
0.3870452642,
-0.0805382431,
-0.0942550898,
-0.1135751083,
-0.2276619971,
-0.1473880261,
-0.0596043505,
-0.1450409889,
0.2415319681,
-0.4093052149,
0.1480800658,
-0.088365376,
0.1170582473,
-0.1651402265,
0.0385307893,
0.0123298094,
-0.219859302,
-0.1952332109,
0.0750326142,
0.1890080124,
0.1283807009,
0.1366225481,
-0.0801974609,
-0.2220902294,
-0.1737526655,
0.0364483744,
-0.382232666,
-0.5194311738,
0.4279228747,
-0.2492381036,
0.2181687802,
0.0673160627,
0.2284745574,
0.420968622,
0.2316120118,
-0.0853806064,
0.1967365742,
0.5073006749,
0.2895572186,
-0.0951860771,
-0.1096270308,
0.3067341447,
0.2380429804,
-0.3285780847,
0.3536570668,
0.0079675261,
-0.3847068846,
-0.4506923556,
0.4155708849,
-0.0181307178,
-0.200257495,
-0.0622828417,
-0.1920294464,
-0.1150190607,
-0.0430937335,
0.0938726217,
-0.0051015625,
0.0501457751,
0.3668040335,
-0.0498032644,
-0.2165305316,
0.1042747423,
0.5097555518,
0.2294659615,
0.3759140968,
0.3757971227,
-0.4711034,
-0.0614988804,
-0.100853093,
-0.0579061285,
0.2963011265,
0.1827337891,
0.0935973674,
0.1716171503,
0.0842453465,
-0.3170439899,
0.3108109832,
-0.0857545659,
0.2972810566,
-0.3940303624,
-0.2748644352,
-0.7087803483,
0.3164020777,
0.2487421483,
0.2865432501,
0.1933686882,
-0.0142205041,
-0.2886121869,
-0.0271039195,
-0.2733269334,
-0.3420169652,
0.0181576945,
-0.0102349045,
0.3442179859,
0.4479814172,
0.1761234254,
0.09331204,
0.0755361244,
0.0744339824,
0.0688587427,
-0.223502472,
-0.1801406592,
0.1493206024,
0.0245126747,
0.2308112383,
-0.3096633554,
-0.4354639053,
-0.0078960266,
-0.279878974,
0.1082426831,
0.4523067474,
0.1347953081,
0.295373112,
0.2547713518,
0.0669466108,
-0.0244195666,
0.2991224825,
0.0422926061,
0.0645177886,
0.1117195338,
0.3623962104,
-0.3781584203,
0.0310487431,
-0.068853721,
0.1380793303,
-0.0055244341,
-0.1330182999,
0.0332079604,
0.3281263113,
0.1403975785,
0.2353490442,
0.0820998922,
0.2767203152,
-0.1882339716,
0.1560408026,
0.1065795198,
0.1200828478,
-0.1776867658,
-0.2091616541,
0.2155865878,
-0.1703971177,
0.1577079594,
0.1870662719,
-0.0103388419,
0.1187839359,
-0.139482975,
-0.2212406099,
0.1681767553,
-0.279155612,
0.1245210916,
0.4301838875,
0.0467430428,
-0.1407843679,
0.2656864822,
0.3378235698,
0.4944859445,
0.2655312121,
-0.3144283593,
0.1665555686,
0.0808336586,
-0.1713612527,
0.437055558,
0.0694447532,
0.1463283896,
0.1456018537,
-0.0595268607,
0.1259956211,
0.282830745,
0.0892844796,
-0.1263162643,
0.0973942056,
-0.0245555937,
0.1320466101,
-0.0004669667,
-0.2421217263,
-0.2539232671,
-0.0854688212,
0.1972646713,
-0.2781001329,
0.1593439728,
-0.1881106645,
0.1652384102,
-0.0784463137,
0.1206080914,
0.2307352871,
0.0284564272,
0.0906466767,
0.36250934,
-0.0431695096,
-0.4325214624,
-0.0575028732,
0.3947230279,
0.4380665123,
-0.0266025439,
0.0425505675,
-0.0863506868,
-0.2363497913,
0.2195478678,
-0.0105041759,
-0.2339508981,
-0.3468416035,
0.1312462986,
-0.2367574126,
-0.0248990562,
0.2180726975,
0.107202433,
-0.0457145944,
-0.1069402993,
0.0581418946,
0.2435548604,
0.0644962043,
0.0964431316,
0.1433322877,
-0.5415208936,
0.2290747464,
0.0276763402,
0.0710886866,
-0.2556730509,
0.1122743115,
0.2078501284,
0.268995285,
-0.0512940958,
0.0678158477,
0.092856735,
0.1738771945,
0.0270609334,
0.0502626486,
-0.0984315798,
0.2000484467,
-0.3773203492,
-0.0089050485,
0.0027763646,
-0.2553079128,
0.0847193748,
-0.0904904529,
0.1383440942,
-0.0266532693,
0.2075952291,
-0.3855064809,
-0.1019360125,
0.0522674918,
-0.0027396609,
-0.5162889957,
-0.0027053978,
0.0192057528,
0.136153549,
-0.2607425451,
0.0488841198,
0.0608717985,
0.0216411036,
-0.4746631384,
0.2268772721,
0.0428195931,
0.352204591,
0.5298020244,
0.0421160199,
0.3925609589,
-0.1250882,
0.3032931387,
-0.0094707673,
0.1285091937,
-0.1753817052,
0.22152628,
-0.2331989855,
-0.0719528049,
-0.2032156289,
-0.3315402269,
-0.0679725334,
-0.0388558507,
-0.0194206946,
-0.3444190323,
-0.0503281616,
0.1241626814,
-0.3433807194,
-0.1627360582,
-0.3086560071,
0.1701327711,
0.0229631476,
-0.0601676144,
0.1718800068,
-0.2669448853,
0.5446510315,
-0.3649507761,
-0.1904858798,
0.4018334448,
0.0341417044,
-0.3851488233,
0.1420312971,
-0.3323297501,
-0.0212921835,
0.4848424494,
-0.1330298036,
-0.1877273619,
-0.0205650218,
0.2040703595,
0.4866793454,
-0.3850893378,
0.407771796,
-0.0966903865,
-0.0449476466,
0.0255767312,
-0.1758654863
] |
https://github.com/huggingface/datasets/issues/1591 | IWSLT-17 Link Broken | Sorry, this is a duplicate of #1287. Not sure why it didn't come up when I searched `iwslt` in the issues list. | ```
FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnmted//texts/DeEnItNlRo/DeEnItNlRo/DeEnItNlRo-DeEnItNlRo.tgz
``` | 22 | IWSLT-17 Link Broken
```
FileNotFoundError: Couldn't find file at https://wit3.fbk.eu/archive/2017-01-trnmted//texts/DeEnItNlRo/DeEnItNlRo/DeEnItNlRo-DeEnItNlRo.tgz
```
Sorry, this is a duplicate of #1287. Not sure why it didn't come up when I searched `iwslt` in the issues list. | [
0.0006845954,
-0.4732923508,
-0.0473029763,
-0.0252456423,
-0.0723720342,
-0.1377998739,
0.4260438383,
0.2196720093,
0.0861582309,
-0.0510081835,
0.1014911309,
0.011178067,
0.2341247052,
0.1399887949,
0.068584688,
0.331543684,
0.1696379036,
-0.059176974,
-0.2145910114,
0.0649078861,
-0.2930266559,
0.4922837615,
-0.1860421896,
-0.0230991114,
-0.4022634923,
0.1943531185,
-0.054675743,
0.3688049018,
0.0660202652,
-0.3180561364,
0.092824243,
-0.2664249837,
-0.1155584753,
0.0801597461,
-0.0001027269,
0.0725964233,
0.3312965631,
0.0182314347,
-0.0397244506,
0.0038762172,
-0.4141124487,
-0.3607583642,
-0.3401449919,
-0.267991662,
0.0831960142,
-0.1541736126,
0.0127536058,
0.4328044057,
0.45940274,
0.2857708335,
0.2857936025,
0.0177024901,
0.3464302421,
-0.2142922431,
-0.0337762684,
-0.1964152455,
-0.1482025981,
0.0175152346,
-0.0572562031,
-0.0490617156,
0.0739294812,
0.4202606976,
-0.001497613,
-0.0906917229,
0.0832032487,
-0.1663056612,
0.6395932436,
-0.2843969464,
0.3459231853,
0.0326455422,
0.3625126779,
0.095614329,
-0.0246902779,
0.2391916364,
-0.0066233031,
0.1453071684,
0.4166468978,
-0.0576202646,
-0.108288981,
0.147946462,
0.0997013152,
-0.122925438,
0.0443260856,
0.1056376025,
0.0061143292,
0.7098026276,
-0.0680118725,
-0.004250112,
0.2167513371,
-0.2968642414,
-0.0850266591,
0.3304435313,
-0.2750074565,
0.0375192724,
0.030532524,
-0.1025231853,
0.1772164702,
0.0931899622,
-0.1566491723,
-0.1070364639,
-0.1556742489,
0.007566181,
-0.0228826124,
-0.0098471949,
-0.1456733644,
0.0217750743,
0.0329333842,
-0.1880738884,
0.3502299786,
0.2299732715,
-0.0562807061,
0.0538174622,
0.0640301704,
-0.2839126587,
-0.2731636167,
0.080090493,
0.0603783242,
0.0148913907,
-0.3269965649,
-0.0366401188,
-0.0750796944,
0.1032089517,
0.0396601856,
0.105227612,
0.1486853063,
0.1083868966,
0.0737454295,
-0.1670611501,
-0.1456929296,
-0.1165533662,
-0.0839784816,
0.0587393157,
-0.0097533911,
0.075446032,
0.1167549863,
0.2683939636,
0.1553175449,
-0.0396598317,
-0.3994239867,
-0.347097218,
-0.3023121655,
0.2189498395,
0.093286559,
0.2179436237,
-0.1534745395,
0.195998475,
0.1381668597,
-0.2337031364,
0.0915543512,
0.1750638932,
-0.2198528796,
-0.3070572913,
-0.3303204179,
0.3187909424,
-0.0890317336,
-0.0620586313,
0.5920008421,
0.1136389524,
-0.2392680794,
-0.2184087336,
-0.0538382642,
0.2799763083,
-0.535616219,
-0.0395275205,
0.1645094454,
0.2866093218,
-0.4959422946,
-0.2172527462,
-0.1570359021,
-0.0450783595,
0.0142991981,
0.2759906054,
-0.0980982408,
0.2701854408,
-0.3180531561,
0.3719316423,
0.2111760527,
-0.1238323078,
-0.3806767464,
0.2075425088,
-0.2282714248,
-0.1047443375,
-0.1508664638,
0.1886082441,
-0.0305273756,
-0.2770004272,
-0.2378555983,
0.0236511398,
0.1344768852,
0.1217093021,
-0.425208509,
-0.4194176197,
0.1552658379,
-0.1698850691,
0.0007901067,
-0.2586679161,
0.1822279096,
0.4247026742,
0.1566957235,
-0.0342613086,
-0.0651528314,
0.179021135,
0.4760876298,
0.1283302456,
0.3319919407,
0.0866797864,
-0.0711059719,
0.1365968436,
0.2252643853,
0.1361791193,
0.1692945659,
0.0621550418,
-0.2857598066,
-0.0129034808,
-0.2341261655,
-0.2812821567,
0.2995090187,
0.1546765864,
-0.1314084679,
0.0246639606,
-0.1131094173,
-0.035298124,
-0.3365404606,
-0.0846760944,
0.039561566,
0.321364224,
-0.3308697045,
-0.1463459134,
-0.0502647981,
0.2350211889,
0.3047766387,
-0.0263919309,
-0.1382348984,
0.1381836832,
-0.2247166634,
0.1046341807,
0.0036259757,
0.3050382733,
0.109500967,
-0.6218364835,
-0.1884238124,
0.5265055895,
0.0109667117,
-0.0426730514,
0.1724848747,
-0.3564173579,
0.1630454212,
0.1086341739,
-0.0718906671,
-0.0120032197,
-0.0416827276,
-0.3572948277,
0.0865870193,
-0.1812561899,
0.1133782119,
-0.189123258,
-0.3709328771,
-0.105827406,
0.2016044408,
0.2312986404,
0.3363113999,
0.0031457318,
0.2152812034,
0.1793354154,
0.0183637105,
-0.0158058964,
-0.15733926,
0.1023870707,
0.220796138,
0.0757260695,
-0.0401558913,
-0.0022349225,
-0.0290194415,
-0.1879841536,
0.339009732,
0.0486642756,
-0.0258561336,
0.3497512639,
0.1588128358,
0.126173377,
-0.2462340593,
0.1571486145,
0.0975354984,
0.0104041547,
-0.2005770504,
-0.091855906,
-0.3729521036,
-0.617749393,
-0.2585010827,
0.1413276941,
-0.1600208879,
-0.2828131914,
0.2161186635,
0.0731553882,
-0.1082732454,
0.3150975406,
0.278067261,
0.4048837721,
0.0364425108,
0.5076468587,
-0.2202725559,
-0.0938653722,
-0.3835861087,
0.1270001084,
0.4048328102,
-0.0528041981,
0.14833574,
-0.1700390726,
-0.0775311068,
-0.6530387402,
-0.5673178434,
0.0489850901,
0.0108167846,
0.2896000147,
0.0804565847,
0.3780204654,
-0.1454790682,
-0.3218048811,
0.3558205366,
-0.0894986838,
0.1128537282,
-0.2790139318,
-0.0816810131,
0.0054652411,
-0.2410790026,
-0.0255386997,
-0.1625330448,
-0.4413508475,
0.1885261536,
-0.3920692503,
0.0677083284,
0.109562926,
0.0386846773,
-0.0286508147,
0.0545983538,
-0.0528111756,
-0.0466455854,
0.2581878901,
0.2488072664,
-0.1049058512,
-0.315659523,
0.2583634853,
0.2335176617,
0.1036950126,
-0.5245771408,
-0.5797258019,
-0.1467758864,
0.0488852374,
0.0952192172,
-0.1783046573,
0.0995090827,
0.049223695,
0.0556759685,
-0.2419971228,
-0.158261627,
-0.088932246,
0.0653964952,
-0.0556306764,
0.4127617478,
0.1255223155,
0.1134703457,
0.155067414,
0.1015896797,
0.1160728782,
0.0212456882,
0.1573705524,
-0.0480965897,
-0.0487802364,
0.0341102146,
-0.3927622736,
0.2581160665,
-0.0589645021,
0.0655067787,
0.4092421532,
0.0354207829,
-0.0891520381,
-0.0291423015,
-0.0985528231,
-0.1568245441,
-0.3099569678,
-0.0777266398,
0.5121833682,
0.0831045285,
0.120271273,
-0.0283231754,
-0.0700540841,
-0.2511939704,
0.3918587267,
0.3374733627,
-0.2671716213,
-0.0110456301,
0.4114724696,
-0.3707739115,
-0.1234089881,
0.0122502297,
0.1930213273,
0.1237204671,
-0.2686844468,
-0.2343184203,
0.0099315755,
-0.220082894,
0.5752212405,
-0.0396775566,
0.2547217011,
0.1274151802,
0.3419206142,
0.2140265703,
-0.0659978315,
0.0977600366,
0.1244033799,
0.7113206983,
0.3554585874,
-0.0087934779,
0.0870208368,
0.2661789954,
0.1590252966,
-0.113954924,
-0.3886223435,
-0.0166430604,
-0.3141435683,
-0.3908329904,
-0.3156843185,
0.0792692676,
-0.0788985267,
-0.0519410111,
0.0826051012,
0.2171732336,
-0.3817944527,
-0.0929284468,
0.1053539291,
-0.0473163314,
0.2801975608,
0.0733592585,
0.0461424924,
0.1459242105,
-0.5549023747,
-0.0152230076,
0.3242752254,
-0.0138773704,
0.0529940128,
-0.0627307594,
-0.219022274,
0.3730342984,
0.0389321521,
0.0311075449,
-0.021949511,
0.1446039379,
-0.0320434794,
-0.1585566103,
0.3358008564,
-0.046682924,
-0.0937906131,
0.2446248829,
0.4014316201,
-0.2614632845,
0.0688646138,
0.3759871423,
0.1437219977,
-0.1075921282,
-0.0036889967,
-0.1040745899,
0.8769705892,
0.5410658717,
-0.1670459062,
0.179672569,
0.1805565208,
0.422065407,
-0.1025897786,
0.1661439538,
-0.0592160001,
0.1265648007,
0.0549817681,
0.2576269209,
-0.1995965093,
0.1188715771,
-0.1496516019,
0.0614206344,
0.3874852657,
-0.0402340405,
0.164379701,
0.2193496525,
0.0151951239,
-0.0196009409,
-0.1709965914,
0.2933666408,
0.0980628282,
0.3090147078,
-0.1907307357,
-0.133744657,
0.2583158016,
-0.0971658528,
-0.4179594815,
0.2403561175,
-0.3239870667,
0.5455453992,
0.1046035588,
0.2023059875,
0.1196500137,
-0.0137770604,
0.2258883417,
0.1009833515,
-0.3179384172,
0.3280114233,
0.2294308543,
-0.1505614817,
-0.3033997715,
0.1024808437,
0.0019913821,
-0.3366168141,
-0.4029809237,
-0.1634421945,
-0.0276880395,
0.1027880833,
-0.0655170456,
-0.0362564586,
0.2170413882,
0.1709930152,
0.0847848505,
0.211387068,
-0.1790823191,
-0.2219302207,
0.2504844368,
-0.272733897,
-0.166269213,
-0.0086998856,
-0.2595970631,
-0.0586969033,
0.0802595839,
0.3711562455,
-0.4774599969,
0.0836863816,
0.5087408423,
0.3086292148,
-0.2049725056,
-0.2534295321,
0.053838402,
-0.5083845258,
-0.5010903478,
-0.0978129953,
0.0397713669,
-0.0769956261,
0.0426667184,
0.7937258482,
0.0808823034,
0.1489166766,
-0.1989449859,
-0.2461435348,
0.0864527375,
0.2057929933,
0.201405406,
0.1129091233,
-0.4223165214,
0.2567223012,
0.1314023882,
-0.3457980454,
-0.4207064807,
0.1900728345,
-0.1318683028,
-0.1235417128,
0.0241345409,
-0.1946233362,
0.2517682016,
0.2267448753,
0.1914000064,
0.257119894,
0.067325443,
-0.3255093098,
-0.2029976696,
0.0958786756,
0.1198633313,
-0.3343101442,
-0.0767674968,
-0.1505730599,
0.133425042,
0.3163568377,
-0.0953295231,
-0.1780117899,
0.0482163951,
-0.1081423759,
-0.0137935374,
0.0125730475,
0.1259265244,
0.1934919953,
0.3097811639,
0.6810583472,
-0.0056447177,
0.0859885663,
0.0470950194,
0.0795345008,
0.1490432024,
0.0681174919,
0.00558546,
-0.0693297386,
0.0836987719,
-0.2331850678,
-0.0160217434,
0.1874293685,
-0.0854950845,
0.2330174744,
-0.3215361536,
-0.1663142294,
0.2321324199,
0.2929688096,
-0.1608546525,
0.0125252726,
0.0311918668,
-0.1262881905,
0.0330007896,
0.0258744527,
0.0692846105,
-0.2237232178,
0.3405430913,
0.1852992177,
0.2580707669,
-0.4347943366,
-0.1857514083,
-0.0469818451,
-0.0594797842,
0.0724555776,
-0.3675898314,
-0.2700929046,
0.2561876178,
0.1028907895,
-0.1038204208,
-0.0006868325,
-0.0012101413,
0.3537601829,
0.1350402385,
-0.0775282532,
0.1472008973,
-0.201428622,
0.0481888093,
-0.1448142976,
-0.0977465361,
-0.0273426231,
-0.160637185,
-0.1517384499,
-0.2279827148,
0.4944892526,
-0.1046969667,
0.0031333659,
-0.2525528967,
0.0089334203,
-0.340775609,
0.0217197165,
-0.0995985344,
0.1278249025,
-0.1337428093,
0.1325182766,
-0.1817139238,
0.0401826538,
-0.3725851178,
-0.0080488995,
0.3462357223,
-0.1691352725,
0.4039767087,
0.2556936443,
-0.0111857438,
0.0878765061,
0.4890319407,
0.3612071872,
0.2412550747,
0.0626912192,
0.084457241,
-0.08793661,
-0.2101276517,
-0.0667084605,
0.2262799442,
0.0728761628,
0.1894912124,
0.102754958,
0.1991946548,
-0.2840888798,
-0.1034410074,
-0.0921615735,
0.0008311658,
0.1463597417,
-0.1153680906,
-0.4012371004,
0.1403784007,
-0.264659971,
0.0403610989,
-0.4237563312,
0.1678453088,
0.2200509906,
0.0891448632,
0.170536831,
0.0166039169,
0.1612883359,
-0.2782755196,
0.4427600801,
0.2120135576,
-0.1959428489,
-0.1066594124,
-0.4702950418,
-0.3975894153,
0.1634076983,
-0.1076744497,
0.1429192722,
-0.1334155053,
0.0323048048,
-0.2335059047,
-0.0915647745,
0.0825940445,
-0.136957556,
-0.1162932962,
0.0918511823,
-0.1264709234,
-0.1245793551,
0.1015844569,
0.0530878007,
-0.0182603262,
-0.1163271815,
0.0951018184,
0.0089900745,
0.1616519988,
0.1846159995,
-0.4957474172,
-0.3013751209,
-0.068071261,
-0.0670576468,
0.1549976915,
0.1991531402,
-0.234957695,
-0.3818876445,
-0.2930977345,
-0.3963511586,
-0.0302288141,
0.2401719689,
0.0433717333,
0.1921049803,
0.0443052426,
0.4203980863,
-0.2631630599,
-0.1371115595,
-0.1592001021,
0.2826227248,
-0.2275378108,
0.1362792403,
-0.1149272472,
0.121718049,
0.2010374367,
0.2671242654,
-0.1260782033,
-0.1371559054,
-0.2957426906,
-0.4097741842,
0.4783670902,
-0.430197835,
-0.1116485596,
-0.0150299035,
0.2523160577,
-0.0244041756,
0.2548392415,
-0.3287776709,
-0.1161009222,
0.2193019837,
0.2975828052,
-0.0058920071,
0.0242540184,
0.0652040243,
-0.1835383773,
0.0413879752,
-0.2219199687,
0.4128296971,
-0.0829785988,
0.3143582344,
0.1022474095
] |
https://github.com/huggingface/datasets/issues/1590 | Add helper to resolve namespace collision | I was thinking about using something like [importlib](https://docs.python.org/3/library/importlib.html#importing-a-source-file-directly) to over-ride the collision.
**Reason requested**: I use the [following template](https://github.com/jramapuram/ml_base/) repo where I house all my datasets as a submodule. | Many projects use a module called `datasets`, however this is incompatible with huggingface datasets. It would be great if there if there was some helper or similar function to resolve such a common conflict. | 29 | Add helper to resolve namespace collision
Many projects use a module called `datasets`, however this is incompatible with huggingface datasets. It would be great if there if there was some helper or similar function to resolve such a common conflict.
I was thinking about using something like [importlib](https://docs.python.org/3/library/importlib.html#importing-a-source-file-directly) to over-ride the collision.
**Reason requested**: I use the [following template](https://github.com/jramapuram/ml_base/) repo where I house all my datasets as a submodule. | [
-0.1569453329,
0.0858053789,
-0.0459536798,
0.27503708,
0.1614482105,
-0.047106944,
0.1879467666,
0.2351544946,
0.139972806,
0.0676214769,
-0.1060151979,
0.072631672,
-0.3794683814,
0.365108341,
0.1478729546,
-0.0800851658,
0.1018499359,
0.0871385857,
-0.1015022993,
0.2270358056,
-0.2017203867,
0.1321814805,
-0.1773250699,
0.069250688,
-0.1361085922,
0.2808800936,
0.2181896418,
0.0411923639,
0.0783123076,
-0.3763767779,
0.6635093689,
0.2178043723,
0.3690734506,
0.6192414761,
-0.0001174822,
0.1117216051,
0.3730974495,
-0.0607053898,
-0.1470484138,
-0.1178855076,
-0.0896528661,
-0.398647964,
0.1572783887,
-0.0462405272,
-0.1469106376,
-0.1982926577,
-0.2507446706,
-0.3956302404,
0.2224410176,
0.1046415716,
0.1570375413,
0.3138191104,
0.3482826352,
0.1955198199,
0.4042696059,
0.0580364689,
-0.1030702889,
0.2518258095,
0.3102468252,
-0.2774201035,
0.1863787621,
0.2999762297,
-0.4233089387,
-0.1609923691,
0.5737732649,
0.0806407258,
-0.1335424781,
-0.1649819762,
-0.3388841748,
0.2239957452,
0.320566684,
-0.3809452951,
-0.2733332813,
-0.662520051,
-0.0953680873,
-0.3431422114,
0.3581662178,
-0.2587685585,
-0.0489987358,
0.1162643582,
-0.0102238022,
-0.3572150171,
-0.2172231227,
0.1401234716,
0.0621521324,
0.2654326856,
-0.1182449237,
0.0382895209,
0.4718240798,
-0.0413219742,
0.1391023546,
-0.1224653497,
0.1292886734,
0.0249685831,
-0.3898668885,
-0.2220893204,
-0.0659957677,
0.1947241724,
-0.0027466393,
0.09278889,
-0.121487841,
0.1434392631,
-0.246982336,
0.0891369805,
0.1438131332,
-0.0759094656,
0.0228995122,
-0.0074789389,
0.7173024416,
0.2782005072,
0.0356226042,
0.1428510696,
-0.030919414,
-0.2796593904,
-0.1277397424,
-0.0557539314,
0.3128401935,
-0.0837224275,
-0.1144184843,
0.131054908,
-0.0295073297,
-0.0102422042,
0.311997056,
-0.067457065,
-0.1261173934,
0.2743069828,
0.200934872,
-0.0147869512,
-0.0914756954,
-0.3621775806,
0.0768509656,
-0.0200125556,
-0.1118421555,
-0.1172182858,
-0.0236464292,
0.148734197,
-0.1232322678,
-0.1212413609,
0.426692903,
0.0588857085,
0.122761555,
0.2128575146,
-0.0646678582,
0.1308255494,
-0.1384952515,
0.0264551211,
0.0455059037,
-0.2981047034,
-0.2503243387,
0.0837170854,
-0.281640619,
-0.110515438,
0.01687406,
0.1137431413,
0.0872916952,
0.098320134,
-0.3846320808,
0.0660320744,
-0.1101952568,
-0.3452206254,
0.045744326,
0.0482117087,
-0.1743209809,
-0.259737879,
0.2053054124,
0.1476271898,
-0.3792135119,
-0.0783923715,
-0.3599066138,
0.0991626754,
-0.1537530571,
-0.015715424,
0.0686497986,
-0.10130281,
-0.3450179696,
-0.1573766768,
0.1345911473,
-0.4595771432,
-0.4601137638,
-0.0651673377,
-0.0054256325,
0.1478836983,
0.1906595975,
0.5217304826,
-0.3122330308,
-0.2124905735,
0.0728031397,
0.5595840216,
-0.2102899849,
-0.030966077,
0.1056248248,
-0.1280074418,
0.1873517334,
0.1757756025,
0.0800942034,
-0.1775848418,
-0.0847341046,
0.0296685211,
0.0435902849,
-0.2440780699,
0.0962436348,
0.2909340262,
0.3882430792,
0.2304109335,
-0.048839543,
-0.4740619659,
-0.5224718451,
0.0260037743,
0.0659543425,
0.1904853731,
-0.1272552311,
-0.1919792891,
0.1316480786,
0.0562363751,
-0.0914119557,
0.1116883382,
-0.0234638564,
-0.1359507143,
0.335786432,
-0.2117333114,
-0.2838371098,
0.3958898187,
-0.1835468709,
0.4851572216,
-0.4734922051,
0.3816848397,
0.165819779,
-0.0012577029,
0.0393794477,
0.5233588219,
-0.0207727198,
-0.0889603272,
0.095660463,
0.3063693941,
0.0091870865,
0.2391798645,
-0.0697519109,
0.3499190211,
0.1179017052,
-0.0932849199,
-0.1358382702,
0.0945345983,
-0.0933087692,
0.1238582134,
0.1265601516,
0.4233870804,
-0.2325823456,
0.2775105834,
0.0566694923,
0.0093643004,
-0.0860438198,
-0.1140573621,
-0.1919592917,
-0.0608414039,
0.2643044591,
-0.0066965912,
0.5013025403,
0.1276096851,
-0.0960035995,
-0.0228631739,
0.1501437873,
0.0308487043,
0.1486244947,
0.1569750011,
-0.3729524612,
0.3065494895,
-0.0669652373,
0.395264864,
0.219280526,
0.1973305196,
-0.2224755585,
0.3172093034,
-0.0031694842,
-0.0333980806,
0.204475984,
0.107196115,
-0.0041246843,
-0.1295863092,
0.1589461416,
-0.0098832566,
0.0117808972,
0.1770438254,
-0.3526941836,
0.1459255219,
-0.3981363475,
0.0595041923,
-0.3560389578,
-0.5332534313,
-0.3027792275,
-0.3312538862,
-0.6207665205,
-0.2648797631,
0.0466145426,
0.3321267664,
-0.3618957102,
0.1726866066,
0.2153974771,
0.3085460067,
0.01495222,
-0.2485611439,
0.2147979438,
-0.2350462079,
-0.2394420654,
0.0423846394,
0.4659856558,
-0.1626088023,
0.293795228,
-0.1141605526,
-0.0810242295,
-0.2225544006,
-0.6898429394,
0.0872550607,
-0.0175347738,
0.2277435064,
0.3318362534,
0.1090879068,
0.3108027577,
-0.1535186917,
-0.0013422244,
-0.2860572338,
-0.0153261777,
-0.0740685016,
0.1047860235,
0.2111226469,
-0.0123377247,
0.1076952219,
-0.2220643163,
-0.4446206689,
0.1081410795,
-0.1349276751,
-0.0310644843,
0.2012320012,
-0.0743325949,
0.1763150841,
-0.2543158531,
-0.0639795214,
0.1600048244,
-0.3523983955,
0.1451934576,
-0.0190420318,
-0.0227383878,
-0.0986842737,
-0.0657072887,
0.0990855619,
-0.0748305023,
-0.2034686208,
-0.4110995531,
-0.1161354631,
0.2301383615,
0.3544765115,
0.2806234956,
0.0717645884,
0.1521117538,
0.1068639681,
-0.2129293233,
-0.088851057,
0.0074363714,
0.0716134012,
0.017175708,
0.4399721324,
0.0482329503,
-0.2288438678,
0.2650897205,
0.1216906309,
-0.1875741482,
0.3132732511,
0.198444739,
0.5431448221,
0.1646975279,
-0.2474231124,
-0.1733193099,
-0.0199510362,
-0.0514639914,
0.2102977335,
0.1896425188,
0.3960992396,
-0.3102764189,
-0.2964319587,
-0.0569039658,
-0.4034616053,
-0.0248370189,
0.1067197472,
0.0819285437,
-0.1414048374,
-0.596658349,
-0.171910882,
-0.2243926674,
0.2201675028,
0.4008527696,
0.194034785,
0.0167095698,
-0.6984471679,
-0.0778704658,
-0.2181309313,
0.2828422487,
0.0598681271,
-0.117099382,
0.1309957206,
-0.0083761159,
-0.2977271676,
0.0910977051,
0.5523028374,
-0.220906049,
-0.3059738576,
-0.4303900003,
0.0762129053,
-0.1707991511,
-0.0047951397,
0.130035609,
0.0926482081,
0.0008676291,
0.4298419058,
-0.1858716011,
-0.0650006905,
0.0752332136,
0.5129585266,
0.0454750806,
0.0409822352,
-0.1126866788,
-0.0259395391,
-0.4455137551,
-0.0904300436,
0.1137191281,
0.0034028543,
0.1350713223,
-0.078412734,
0.0346183404,
-0.1736754775,
0.3371177614,
-0.0142901614,
0.2323846668,
-0.1093479395,
0.1724033803,
0.1334080398,
0.3156101406,
0.3287726939,
0.4573604167,
-0.4361445904,
-0.7642878294,
-0.0867231861,
0.1944636852,
0.7389245629,
0.2048787326,
-0.1225194633,
0.3060644865,
0.0474012606,
0.0907474384,
-0.4908665121,
-0.0169038475,
-0.0246185679,
0.462595582,
-0.3601631522,
-0.4996225238,
0.4395854771,
0.4005668163,
0.1093071476,
0.1701035798,
0.6332281828,
-0.3743682206,
-0.0511950031,
-0.1848616153,
0.9142547846,
0.1587294936,
0.2362565398,
0.091577217,
0.0089891134,
1.0984019041,
-0.2501583099,
0.1661791354,
-0.1380211711,
-0.1625463367,
-0.0547798164,
-0.0590360798,
0.076841794,
-0.228873834,
0.0413755551,
0.4591515958,
0.0121200737,
0.3413610458,
-0.2457136214,
0.098590605,
0.3570761085,
-0.3516692519,
-0.6398151517,
-0.008994502,
-0.0716336891,
0.0040830341,
-0.0708283931,
0.0169755872,
-0.0489107445,
-0.0213698559,
-0.2332993895,
-0.0892181545,
0.1305247098,
-0.2368200421,
0.3903692365,
-0.0991279855,
0.1750014424,
0.1735315174,
0.6006445885,
0.2176595479,
-0.0340734795,
-0.0452483371,
-0.308811605,
0.1927152276,
-0.0972942635,
-0.1421902329,
0.2157853395,
0.0186983738,
0.0276928768,
-0.0319660716,
0.1370046288,
-0.5409184098,
-0.0854680166,
-0.0652297512,
0.0633703247,
-0.1768950373,
-0.1592891514,
-0.1832461506,
0.1586176455,
-0.2548708618,
0.0855117813,
-0.0772723481,
-0.2614859343,
-0.0641115233,
0.1224675402,
-0.1924478561,
-0.1129997894,
0.186141327,
0.1958609372,
-0.0698000267,
0.3000409603,
0.3983029127,
-0.0896994174,
0.0027385734,
-0.0739802718,
0.3805938065,
0.0014836671,
0.2747153342,
-0.0524310395,
-0.1981113553,
0.0061166538,
-0.0309930611,
0.0871139318,
-0.1627963781,
0.0946490914,
-0.4005631208,
-0.2875578105,
0.398167789,
-0.1293739229,
0.2608492374,
0.344178319,
0.021709023,
-0.279240936,
0.0087305829,
-0.2015839815,
-0.0921011865,
-0.053237807,
-0.0650861785,
0.3431398571,
0.1689759791,
-0.0307398215,
-0.1561992019,
-0.0663722157,
0.2169062197,
0.1314414591,
-0.0688232183,
-0.2563328147,
0.1673840284,
-0.0377694927,
-0.2141343653,
0.265029043,
-0.2362390161,
0.097401455,
-0.2687415481,
0.0230752006,
-0.0017983657,
0.0086686285,
0.0040366403,
-0.0032620106,
-0.1228564978,
0.013244858,
0.5187289715,
-0.0651388839,
0.1203401014,
0.2021674365,
0.143051967,
-0.0020974095,
0.0071393643,
0.2849826813,
0.1805706322,
0.3072296381,
-0.2070938051,
0.224576667,
-0.045945365,
-0.2484914809,
0.475443393,
0.3130013049,
0.2250480503,
-0.1340695918,
-0.0308162812,
0.2520121336,
0.0511239655,
-0.4314864874,
-0.4235870838,
0.4019428492,
-0.2347674519,
0.1546394378,
0.3005871177,
0.2775349617,
0.2926279306,
0.0977240279,
0.214934662,
0.270715028,
0.3168257475,
0.4239743948,
0.3118393421,
-0.0848891735,
-0.0783631057,
0.2291678488,
0.0989614353,
0.1355859786,
0.4182702899,
-0.2440087497,
0.3526083529,
-0.1801424325,
-0.1247174814,
0.1538200378,
-0.3897274733,
0.188909024,
0.1089881882,
0.0265674461,
0.0866496488,
0.0747827068,
0.2063041627,
-0.2038426399,
0.1101153791,
0.1600790471,
0.390501231,
-0.1938619316,
-0.1050226092,
0.12259949,
-0.2557954192,
-0.1593946069,
0.0323055014,
0.0722958446,
-0.294713378,
0.2978245616,
-0.0655349046,
0.2978476882,
-0.1992425323,
-0.0010344477,
0.1497364789,
0.1076389328,
-0.0917862579,
0.0447564162,
0.1118976474,
-0.0225154962,
0.2294861078,
0.0245753918,
0.3366087973,
0.1335034221,
-0.2941165864,
-0.0256587043,
-0.1241122633,
0.0392421,
-0.3147286177,
-0.0958594903,
-0.2602224052,
0.139274478,
-0.0068138391,
0.1106345281,
-0.0508339405,
-0.1520018578,
-0.2369689941,
-0.0735136122,
-0.6723149419,
0.1920061111,
-0.0660831481,
0.0562680662,
-0.3296039701,
0.1361303478,
-0.2355739325,
-0.1586048752,
0.7526232004,
0.0516195856,
-0.0734773055,
-0.0743598789,
0.0441377722,
0.0399628803,
0.5922054648,
0.4784471989,
-0.0028787639,
-0.0771369562,
-0.2362503111,
-0.7712085843,
0.3004340231,
-0.2263000309,
-0.0103529356,
-0.0312571004,
-0.5115122795,
0.258251071,
0.2290484458,
0.1962855458,
0.0668908283,
0.1850356758,
-0.4785359204,
-0.4799031913,
-0.3376754522,
-0.0363709033,
-0.3446259797,
0.0911800638,
-0.094687812,
0.0666483715,
0.2947548032,
-0.0861896798,
-0.2589503229,
0.2926545441,
0.0432743803,
0.1321381032,
0.331413269,
0.2384776622,
0.4119384289,
-0.1003861427,
-0.3274397254,
-0.0184661448,
0.0076049594,
-0.4604477286,
0.0969593078,
-0.3055747747,
0.1370219439,
-0.471842736,
-0.1260855496,
-0.5198674798,
0.0302558206,
0.1490970254,
0.0618251674,
-0.4667411447,
0.0181366112,
-0.2338247895,
0.0921582803,
0.0501262918,
0.211086005,
-0.0013972563,
0.2109669596,
-0.1268209666,
-0.0309892017,
0.2041132599,
-0.2729180157,
-0.1864511967,
-0.2045778632,
-0.0682546347,
-0.0898664817,
-0.1786536425,
-0.536721766,
-0.1130989417,
0.1399762481,
-0.003818925,
0.1610141695,
0.2622501552,
0.0091803987,
0.1546239704,
0.003901931,
0.0273159482,
0.3570763767,
-0.1450828165,
0.3185431957,
0.0174271259
] |
https://github.com/huggingface/datasets/issues/1590 | Add helper to resolve namespace collision | Alternatively huggingface could consider some submodule type structure like:
`import huggingface.datasets`
`import huggingface.transformers`
`datasets` is a very common module in ML and should be an end-user decision and not scope all of python ¯\_(ツ)_/¯
| Many projects use a module called `datasets`, however this is incompatible with huggingface datasets. It would be great if there if there was some helper or similar function to resolve such a common conflict. | 34 | Add helper to resolve namespace collision
Many projects use a module called `datasets`, however this is incompatible with huggingface datasets. It would be great if there if there was some helper or similar function to resolve such a common conflict.
Alternatively huggingface could consider some submodule type structure like:
`import huggingface.datasets`
`import huggingface.transformers`
`datasets` is a very common module in ML and should be an end-user decision and not scope all of python ¯\_(ツ)_/¯
| [
-0.0202238001,
-0.265224427,
-0.0927192569,
0.1554597616,
0.3644936383,
-0.1625666618,
0.2206047922,
0.1671949625,
0.0891769454,
0.2554261684,
-0.2716358304,
0.1697729081,
-0.2384688258,
0.2573795915,
0.0592854209,
-0.2396575809,
0.0753817186,
0.1970057487,
-0.3191303611,
0.0870095342,
-0.2288309336,
0.1971454173,
-0.1359620541,
0.058976654,
-0.277067095,
0.0928416923,
0.2053652406,
-0.086593613,
0.05949907,
-0.3789722025,
0.4213657081,
0.1152877957,
0.0546916686,
0.5897498727,
-0.0001011381,
0.1318943053,
0.337694943,
-0.0408484042,
-0.0935961455,
-0.0902452767,
0.0646302402,
-0.2467928529,
0.2434569746,
-0.0631533787,
-0.2757800221,
-0.1726579666,
-0.0201396514,
-0.1908739507,
0.4177950323,
0.0541871265,
0.3463647664,
0.5181911588,
0.2339333296,
0.0629722551,
0.2500139177,
0.1026623175,
-0.166095525,
0.1153994352,
0.1911911517,
-0.1256438494,
0.0923161656,
0.4077007771,
-0.2057330757,
-0.1077073067,
0.4733324349,
0.1147728041,
-0.1144272313,
-0.3207323551,
-0.1828877628,
0.2236240059,
0.1393294483,
-0.4643294811,
-0.3387850821,
-0.488634944,
-0.1247691587,
-0.1406295598,
0.3330661356,
-0.1330353916,
-0.0438274965,
0.1750165969,
-0.0336098708,
-0.0629158244,
-0.1290286481,
0.0887392834,
0.0112889037,
0.3285009563,
-0.2876746655,
0.0572052523,
0.2873639166,
-0.1634870321,
-0.1059212461,
0.0114280097,
0.1962402761,
-0.0631787479,
-0.2303733677,
-0.2078414112,
0.0271329191,
0.2500012517,
0.040067438,
0.0164242238,
-0.1680963784,
0.2096388638,
0.1057276279,
0.1243798286,
0.0933450833,
-0.0037209999,
-0.1013074964,
-0.1184757501,
0.5116112232,
0.1034830511,
-0.0130221909,
0.016830219,
0.0172491129,
-0.2249016017,
-0.1072271094,
-0.1891675144,
0.3918105066,
-0.000087817,
-0.1438303143,
-0.0983921662,
0.0842554122,
0.1389579177,
0.2741028965,
0.3232208788,
-0.0582580641,
0.1231167018,
0.1442246139,
0.0509360656,
-0.1939394027,
-0.1619465798,
-0.0936442092,
-0.089082785,
-0.253567636,
-0.1062750444,
0.0218150709,
0.1464740187,
0.1363384128,
-0.0820871145,
0.3387711644,
0.0901668146,
0.122593537,
0.2884991765,
0.0387654491,
0.2551600337,
-0.098101154,
0.0819575712,
0.0615826361,
-0.1290497482,
-0.2916732728,
-0.2555926144,
-0.2272691876,
-0.0853663832,
-0.085270077,
0.2785583436,
0.0571320727,
0.1005707234,
-0.0861964151,
0.0224285834,
-0.0613556542,
-0.2259918898,
0.0058092633,
0.095429115,
-0.1373122633,
-0.2678747177,
0.1736905724,
0.1147438884,
0.0881103352,
-0.2211496979,
-0.1986532956,
-0.1133028045,
-0.0881041139,
0.1867655963,
-0.0536876991,
-0.1450605094,
-0.2509948611,
-0.1305902451,
0.0392691195,
-0.347871691,
-0.4469207525,
0.003473287,
-0.0512948334,
0.0921062678,
0.2216733545,
0.2875139415,
-0.2845282555,
-0.1318760216,
0.1497126073,
0.334582448,
-0.1078120247,
0.1419368088,
-0.0702397898,
-0.1103660837,
0.0854813159,
0.0956270397,
-0.0715066493,
-0.0109137893,
-0.156185925,
0.0679796711,
0.0651495159,
-0.1832592636,
0.0120150633,
0.3451627195,
0.4077174366,
0.2324432135,
0.0379565135,
-0.3982564211,
-0.5612101555,
0.0323275886,
-0.2237791866,
0.131736055,
-0.1021728516,
-0.381174773,
-0.0273609869,
-0.0074822968,
-0.1012431383,
-0.057998579,
0.2481877059,
-0.0331848823,
0.2494136989,
-0.1152245924,
-0.1502000839,
0.2772934139,
0.0269082822,
0.293605715,
-0.5201867819,
0.2467376441,
-0.0133098708,
-0.0575286858,
0.1687585413,
0.4031573236,
-0.0246707592,
-0.1086484566,
0.0968589261,
0.3235655725,
0.020621771,
0.2406050563,
-0.1278147846,
0.3849268258,
0.0608321093,
-0.1427497417,
-0.0769748539,
0.2066702247,
-0.0725474209,
0.1762764454,
0.0158787575,
0.4241329134,
-0.1905091852,
0.1394428462,
0.1381800473,
0.0197807904,
0.1021702886,
-0.1923258007,
-0.3133115768,
-0.239437893,
0.087439023,
-0.0588203259,
0.5211868882,
0.2794668376,
-0.2153865397,
-0.1565447003,
0.3494953513,
0.1497508585,
0.2577458322,
0.1061117277,
-0.4559355378,
0.251517117,
-0.035912022,
0.2682376802,
0.1603031456,
0.3987915516,
-0.1590256095,
0.2306381762,
-0.0639001578,
-0.1053709611,
0.1615658402,
0.2154637873,
-0.0500359312,
-0.0688727349,
0.0756261721,
-0.0285417438,
-0.222474575,
0.0728973895,
-0.3403607309,
-0.0364853069,
-0.3240096569,
0.1397471875,
-0.2611643672,
-0.3896705806,
-0.4315492809,
-0.1077601612,
-0.5112164617,
-0.1372929513,
0.0964359865,
0.1642341614,
-0.3801087439,
0.3237051368,
0.2867607474,
0.2110138237,
-0.0020324783,
-0.1493341327,
-0.0526552498,
-0.1076907367,
-0.215449065,
0.1281557232,
0.2769772708,
-0.0305295996,
0.3913136423,
-0.1259329319,
0.0550007075,
-0.1950948685,
-0.6819354892,
0.0630113482,
-0.0705565661,
0.1962784678,
0.3726924062,
0.0421329476,
0.3110900223,
-0.3523676395,
0.1790611595,
-0.2390557677,
-0.166848883,
-0.0133357588,
-0.0222008396,
-0.0204770844,
-0.1409690678,
-0.0746179,
-0.1765636206,
-0.5822031498,
0.3250769079,
-0.179723829,
-0.0627537444,
0.3977241218,
-0.068952471,
0.1572035253,
-0.3618355095,
0.2050260901,
0.0232383311,
-0.2114359587,
0.2111343294,
-0.1115908921,
-0.114184998,
-0.1968888193,
-0.1522675306,
0.283388257,
-0.1439308971,
-0.1671085507,
-0.3801899254,
-0.2101474404,
0.0034127207,
0.327508986,
0.2715934217,
0.1351824403,
0.2047848552,
-0.1520046741,
-0.2211491764,
-0.1301622242,
-0.0582690015,
-0.0515992492,
0.1095563024,
0.1124328077,
0.12364503,
-0.2242598534,
0.278770715,
0.2801971138,
-0.2398185283,
0.2524948418,
0.0529357567,
0.4887326956,
-0.0350752324,
-0.362917155,
-0.0896552578,
-0.0427205898,
0.0346949659,
0.2865268886,
0.0250555445,
0.2448739558,
-0.1581247747,
-0.1891272962,
-0.0824506655,
-0.4748337865,
-0.0026112967,
0.1852331311,
0.1192946658,
-0.0933777168,
-0.3426040411,
-0.1773271412,
-0.0428628363,
0.278026998,
0.2471113652,
-0.0930534303,
-0.0193600319,
-0.5284513235,
-0.0593464784,
-0.2361169308,
0.2037993968,
-0.0679994449,
-0.0176142361,
0.0776783228,
-0.1631178558,
-0.1769984663,
0.2165578753,
0.6753463149,
-0.049990911,
-0.283318311,
-0.2240955383,
-0.0680460557,
-0.327496171,
0.1146275103,
-0.0210919362,
0.1283043772,
0.0931737125,
0.4130400121,
-0.3220467269,
-0.2418492883,
0.0810479596,
0.2850703597,
0.0428887606,
0.0029532942,
-0.3901439905,
-0.0289211795,
-0.3902353644,
-0.114488408,
0.1473126411,
-0.2407577783,
0.1469938904,
-0.140834704,
-0.0414870903,
-0.2923748493,
0.2965859473,
0.23875539,
0.3894859254,
-0.0658738762,
0.1300344616,
0.2103616744,
0.4148670733,
0.203213796,
0.4545966685,
-0.4082916081,
-0.6085439324,
0.0584279224,
0.1521504819,
0.464703083,
0.2070520073,
0.0766123161,
0.352866739,
0.0812071264,
0.2780637741,
-0.4330650568,
0.1400017589,
0.2168093771,
0.334644407,
-0.2016722709,
-0.2722820938,
0.4416020513,
0.0900621265,
0.0070569571,
0.170114547,
0.6453773975,
-0.3645780683,
0.1618509591,
-0.0969084501,
0.9009618163,
0.0809038654,
0.2035183609,
0.1620769054,
-0.029331306,
0.9161872268,
-0.1057751924,
0.1829102933,
-0.1810830534,
0.0233983248,
0.0717686936,
-0.0271748174,
0.0593393818,
-0.1545617729,
-0.2843588591,
0.3082264066,
0.0685515329,
0.213279143,
-0.2964934111,
0.2089804709,
0.1228098795,
-0.4371926188,
-0.5631973147,
0.1779292375,
0.0335509293,
0.2441460937,
-0.0881636739,
-0.1733074933,
0.0018390249,
-0.0984584019,
0.0139707662,
-0.1171323061,
-0.0323284864,
0.0407738984,
0.441595763,
0.0378802381,
0.2005826533,
0.2026889026,
0.5129508972,
0.2344174683,
-0.2630611658,
0.126295954,
-0.2502364516,
0.1097509488,
-0.2437957376,
-0.0091929389,
0.2004680783,
-0.0229762774,
-0.0851151645,
-0.135488674,
0.1242028847,
-0.2236681432,
-0.2185150832,
0.026558727,
0.0029757358,
-0.2992796302,
0.0492849648,
-0.1533479244,
0.104587622,
-0.2569080293,
0.228613317,
-0.1673400998,
-0.1289892048,
0.0257410146,
0.2801823318,
-0.2060458958,
-0.1072905585,
0.138248235,
0.1594893336,
-0.0734928995,
0.2619615495,
0.1753439754,
-0.1808309257,
-0.2089405656,
-0.1262278408,
0.3283753991,
-0.2221452892,
0.3311888576,
0.0556369871,
-0.2929077744,
0.0798501894,
0.0831326991,
0.18657884,
-0.1984476745,
-0.1031375453,
-0.0254354607,
-0.4370604753,
0.491654247,
-0.065067105,
0.3749508858,
0.1244236529,
0.3562999368,
-0.133006379,
0.078196682,
-0.4297305942,
-0.109643206,
-0.3257800639,
0.0809884444,
0.2810423374,
-0.1770667732,
0.105929032,
0.0081504872,
0.1589881927,
0.18069686,
-0.1761990935,
-0.2516177297,
-0.2799303532,
0.0567981862,
-0.1202952787,
0.0320822895,
0.2483465523,
0.0161119681,
0.0384874754,
-0.2850758433,
0.1489433497,
0.1143900454,
0.1309932023,
0.0645132884,
0.030673191,
-0.1078484505,
0.0968005061,
0.0926952958,
-0.0895818248,
-0.0007835918,
0.1598466039,
-0.0319492258,
-0.2284416258,
-0.0313014947,
0.2267944664,
0.1584986001,
0.3250286281,
-0.1643188149,
0.0868046135,
0.0367914177,
-0.3148101568,
0.3681903481,
0.2952308357,
0.1874501258,
-0.1608653963,
0.0955853313,
0.2768038511,
0.2737600207,
-0.4097084105,
-0.1916367859,
0.2237168401,
-0.2172231227,
0.3088392317,
0.3486174941,
0.1564534307,
0.4141765237,
0.326906234,
0.1284357607,
0.3097160161,
0.1166205704,
0.3002032936,
0.0921416804,
-0.0174398106,
-0.0431229584,
0.3794750869,
0.1942278892,
0.3303910196,
0.4142695069,
-0.2103561908,
0.3748689294,
-0.4779455066,
-0.029490402,
0.2914589047,
-0.1085097194,
-0.0213151779,
-0.0218522102,
0.0324621312,
0.207752645,
-0.0438361913,
0.2561399937,
-0.2644206285,
0.0026097517,
-0.0429599546,
0.2710441351,
-0.2268694788,
-0.2666249275,
0.2371622324,
-0.1558846086,
-0.0860588998,
-0.1094590873,
0.1541881859,
-0.1426192075,
0.2459130138,
-0.0812176093,
0.1960867196,
-0.2910277843,
-0.0773117542,
0.2626054585,
0.2931148112,
-0.1907210946,
0.086776711,
0.1322950572,
-0.151399672,
-0.0454269797,
0.1123116761,
0.391833812,
0.1082318574,
-0.2031150162,
-0.0421200804,
-0.0660859868,
-0.0447557159,
-0.3440142274,
-0.0971743464,
-0.0816090703,
0.304880619,
0.0610509738,
0.2392600775,
-0.2412862927,
-0.3084827363,
-0.2968115211,
0.0002042931,
-0.4568958879,
0.1837311536,
-0.2699302137,
0.0193446912,
-0.387252152,
0.0133885751,
-0.5692488551,
-0.1178880036,
0.4266919196,
-0.0584460683,
-0.008873797,
-0.2350171208,
0.1313992292,
0.1579084545,
0.6225569844,
0.2383092046,
0.2647869289,
-0.0916321352,
-0.2467314154,
-0.6086646914,
0.3137169778,
-0.1753587723,
0.0879138857,
0.003958778,
-0.2102924436,
0.1343161017,
0.093010366,
0.0652890354,
-0.1212890148,
0.0376514718,
-0.4913036823,
-0.4235429466,
-0.1050195247,
-0.2243244797,
-0.2587661445,
0.3489260077,
-0.1268954575,
0.0430241786,
0.2042161226,
0.0871863887,
-0.3307678103,
0.3949810863,
0.0761258602,
0.138752684,
0.2521379888,
0.106461525,
0.3198620677,
-0.2111984342,
-0.3475876749,
-0.0720264316,
-0.2325622439,
-0.3384209275,
-0.0668737441,
-0.055873394,
0.2629168928,
-0.357022047,
-0.3147630394,
-0.3939546347,
0.0479572378,
0.2586735189,
0.0014333103,
-0.2825325429,
0.1819227189,
-0.061868526,
0.1458429098,
0.0404774807,
0.3666268885,
0.0287963059,
0.1150920466,
-0.1892727315,
-0.2648578584,
0.491445452,
-0.212813586,
-0.2221872956,
-0.0923756436,
0.1810764819,
-0.0729141906,
-0.224048093,
-0.6383807063,
-0.0246796217,
0.0754348859,
0.0113522243,
-0.0957604945,
0.2912734747,
0.0606009103,
-0.093527399,
-0.0304582678,
0.0751857981,
0.2853314579,
-0.1355644614,
0.3221635818,
-0.10545028
] |
https://github.com/huggingface/datasets/issues/1590 | Add helper to resolve namespace collision | It also wasn't initially obvious to me that the samples which contain `import datasets` were in fact importing a huggingface library (in fact all the huggingface imports are very generic - transformers, tokenizers, datasets...) | Many projects use a module called `datasets`, however this is incompatible with huggingface datasets. It would be great if there if there was some helper or similar function to resolve such a common conflict. | 34 | Add helper to resolve namespace collision
Many projects use a module called `datasets`, however this is incompatible with huggingface datasets. It would be great if there if there was some helper or similar function to resolve such a common conflict.
It also wasn't initially obvious to me that the samples which contain `import datasets` were in fact importing a huggingface library (in fact all the huggingface imports are very generic - transformers, tokenizers, datasets...) | [
-0.1716235131,
-0.0543319136,
-0.1060905978,
0.1661169231,
0.320076555,
-0.2631008923,
0.2233147621,
0.2214925885,
0.115214631,
0.3468361497,
-0.217707321,
0.0769942552,
-0.2270480245,
0.2291831821,
0.0510891974,
-0.0967996046,
0.1414093822,
0.1882733256,
-0.3230444789,
0.0956740603,
-0.2504669726,
0.3676362336,
-0.1152619123,
0.0489350036,
-0.2631994188,
0.1357954144,
0.1781102717,
0.0242971592,
-0.103120409,
-0.3912401795,
0.488809973,
0.2592075169,
0.0982600749,
0.5347704887,
-0.0001008511,
0.0321503468,
0.332905978,
-0.0276503637,
0.0007689896,
-0.047589276,
0.0364770256,
-0.1708829552,
0.230613187,
-0.0239404961,
-0.1686528325,
-0.2056215554,
-0.1198738962,
-0.2970337868,
0.2763867974,
0.0841662213,
0.3598595858,
0.4617400467,
0.1313859373,
-0.0768034607,
0.3627571166,
0.0963326469,
-0.2227724344,
0.0577249974,
0.3163789213,
-0.1041611806,
0.046818018,
0.3070699871,
-0.19918935,
-0.0762047321,
0.4549306631,
0.0259640031,
-0.3586928844,
-0.3287332952,
-0.1528098285,
0.1908171326,
0.2731131911,
-0.2819491625,
-0.15366292,
-0.4264020622,
-0.1069418043,
-0.0959381536,
0.3473281264,
-0.303699404,
-0.010770862,
0.1086406782,
-0.1284350157,
-0.1054661423,
-0.2067372352,
0.0488113165,
0.1202849895,
0.18204467,
-0.2933819592,
0.0484390035,
0.370420754,
-0.1188665032,
-0.1089810729,
0.0120949801,
0.0670722276,
-0.1090288088,
-0.3166462481,
-0.1150622591,
0.0921505541,
0.2377534211,
0.1597696543,
0.1767260134,
-0.2038029134,
0.21822083,
0.0010577048,
0.0623377338,
-0.0008598835,
0.0542276129,
-0.0342779793,
-0.1986034065,
0.5527968407,
0.2132431567,
0.0499672182,
0.0854637325,
-0.0799072832,
-0.2244857848,
-0.1833884418,
-0.2480137646,
0.2999301255,
-0.1290077716,
-0.0830083042,
-0.0633310154,
0.249946028,
0.1599762738,
0.1670508385,
0.2875518501,
-0.107081227,
0.092492111,
0.1625742465,
-0.0009792319,
-0.1402504146,
-0.2982374132,
-0.1280474365,
-0.0877860785,
-0.2294623852,
-0.1101400182,
0.0930651575,
0.0016777528,
0.1425855011,
-0.073021844,
0.327442497,
0.1099218652,
0.1255503744,
0.3876736164,
0.1581719071,
0.2085346729,
-0.1047996059,
0.1603887826,
0.0640212148,
-0.1535740346,
-0.2043193579,
-0.1815988272,
-0.3285945058,
-0.1244390458,
-0.2427880466,
0.2783994377,
-0.0005783939,
0.0742764547,
-0.1776988208,
0.0787391886,
-0.2354187965,
-0.301548183,
-0.0025793849,
0.0898353606,
-0.1285717785,
-0.1933571845,
0.2595250607,
0.1862837672,
-0.0397231989,
-0.1515720934,
-0.2312023342,
-0.2090188116,
-0.0258403867,
0.1009815857,
-0.0768339261,
-0.0912898257,
-0.4290795326,
0.0888910592,
0.036323864,
-0.3410758674,
-0.3444640934,
-0.0266798828,
-0.1220721751,
0.0966458693,
0.1180794537,
0.2478372604,
-0.0789282471,
-0.0897480994,
0.0506903827,
0.3743131757,
-0.0806016922,
0.1113693193,
-0.0837376267,
-0.1473537236,
0.0619591214,
0.149637118,
0.0322676413,
-0.0506880209,
0.0818425566,
0.0967353433,
0.0244631954,
-0.2688741386,
0.051268775,
0.3549135625,
0.2928168476,
0.1757863909,
0.0566871092,
-0.2884206176,
-0.5094380975,
0.0490484834,
-0.1337140352,
0.1777653843,
0.0579019897,
-0.2778175175,
-0.1193549037,
-0.0210709348,
-0.1724147052,
-0.1329304427,
0.2425020337,
0.0880358592,
0.2063602209,
-0.1213767305,
-0.1532642096,
0.3962277174,
-0.0709771067,
0.2890957594,
-0.5446173549,
0.1360165775,
-0.0133890416,
-0.0801834241,
0.2109013945,
0.3362109065,
-0.0737625286,
-0.1314788014,
0.0128514618,
0.4666207731,
0.0387999564,
0.2169881761,
-0.0610321872,
0.3250129223,
0.0382032245,
-0.0809076279,
-0.1348626316,
-0.0163694397,
-0.1158624664,
0.1263955534,
0.0752325207,
0.323456645,
-0.1517748237,
0.1348324269,
0.1206175908,
0.0085514607,
0.0611655377,
-0.1266064048,
-0.2937130034,
-0.2063526064,
0.1784843355,
-0.0399725214,
0.5010520816,
0.2095856965,
-0.1630302668,
-0.0904015675,
0.300650537,
0.1256809235,
0.169094339,
0.1850463748,
-0.3328074515,
0.12355268,
0.0621024109,
0.312305063,
0.1769827157,
0.3749835789,
-0.1040770859,
0.1340055466,
-0.0802903399,
-0.1943261474,
0.1071154848,
0.0810022876,
-0.0310399942,
-0.0732615814,
0.0953732878,
-0.0209311415,
-0.4374803901,
0.0044064708,
-0.3678159118,
-0.012350806,
-0.3567405343,
0.0487862565,
-0.3243841529,
-0.4119808078,
-0.2333052158,
-0.0788863227,
-0.4529622197,
-0.2149645388,
0.2001778185,
0.184445858,
-0.3822813928,
0.3398863971,
0.2563820183,
0.3452129364,
-0.157773912,
0.0183631033,
-0.0960311592,
-0.0979338884,
-0.2653640807,
0.1727078557,
0.2459770143,
0.0696050525,
0.448915273,
-0.188003242,
0.2625867724,
-0.2494304776,
-0.7585302591,
0.0928098485,
-0.0113037927,
0.2021748424,
0.3293006122,
0.058558166,
0.2586822808,
-0.3670681715,
0.0069152387,
-0.33434093,
-0.1845337451,
0.0125686219,
-0.1436915845,
-0.1622942686,
-0.1993565261,
-0.1186819077,
-0.0368571728,
-0.5511010289,
0.2229227722,
-0.20394741,
-0.1150982603,
0.3167093694,
-0.0235492587,
0.2907905281,
-0.4422486126,
0.1673291028,
-0.0310628973,
-0.4098862708,
0.2175301909,
-0.2191779464,
-0.2563720047,
-0.0489579961,
0.0027546843,
0.2813414335,
-0.1618330032,
-0.2381231189,
-0.2436077297,
-0.1488198191,
0.1200850606,
0.3816464245,
0.1798689663,
0.2096940577,
0.1286327839,
-0.1689210385,
-0.2520649433,
-0.1157062203,
0.0651170164,
-0.2026276886,
0.019757688,
0.0236344114,
-0.0603589229,
-0.2330672592,
0.2046264261,
0.1164688468,
-0.1896941364,
0.3827631772,
0.080948174,
0.6727416515,
-0.100657016,
-0.2928420603,
0.0680517629,
-0.0194775071,
0.1335469782,
0.3965210617,
0.0475236773,
0.2117362022,
-0.20931077,
-0.0853884071,
-0.0438356325,
-0.3954040706,
-0.1390276551,
0.1724426895,
0.0150356591,
-0.0690045878,
-0.4618407488,
-0.1063503474,
-0.079430066,
0.3416060507,
0.2545204461,
-0.0045327293,
0.0160312243,
-0.6660509706,
0.0851227865,
-0.2873131335,
0.2038645744,
-0.0358025841,
-0.0691056103,
-0.0643520653,
-0.1157972515,
-0.180015862,
0.2391929924,
0.6643899679,
-0.0601363406,
-0.3686955273,
-0.2361993641,
-0.0007077639,
-0.3068974912,
0.0636752695,
-0.0611852892,
-0.1025839821,
0.1228526905,
0.4552625418,
-0.2801756263,
-0.1845311224,
0.1217530519,
0.2923199236,
0.1544239074,
0.0998879224,
-0.2492327094,
-0.1559449732,
-0.4418148398,
-0.1102469862,
0.0781987533,
-0.1388851106,
0.0660434887,
-0.2089810073,
-0.0043864227,
-0.166554153,
0.2741231322,
0.2290883511,
0.3621068001,
-0.0192533825,
0.1066804007,
0.2744947374,
0.3847664595,
0.197849676,
0.3844273984,
-0.4340297282,
-0.6006055474,
0.2385068089,
0.0832806826,
0.4434194565,
0.2322690934,
-0.0080617145,
0.2868750989,
-0.0273061916,
0.3315167129,
-0.3384515047,
0.247152552,
0.1939100027,
0.2923812568,
-0.1095433161,
-0.1528540999,
0.3241996765,
0.2008041292,
-0.032092575,
0.3843851984,
0.6873425245,
-0.2957416177,
0.0732722953,
-0.1591493636,
0.889182806,
0.1530973464,
0.1167260408,
0.2754867375,
-0.0570453927,
0.9147969484,
-0.1653276831,
-0.012580215,
-0.1258676499,
-0.1136027202,
0.0887029022,
0.0125504136,
0.0921702161,
-0.2225003392,
-0.2066340148,
0.1720072478,
0.1576690227,
0.2362180501,
-0.2536675632,
0.2309844196,
0.2133425176,
-0.4571327567,
-0.2572704554,
0.2119068503,
-0.1044952571,
0.2102667391,
-0.1652732342,
-0.0287873559,
0.0403510444,
-0.1484419554,
-0.0739228278,
-0.0127682881,
0.053322278,
0.0021358558,
0.466296345,
0.1825070828,
0.1402402967,
0.3002676964,
0.6629228592,
0.1969093531,
-0.3239459395,
0.1812439561,
-0.2685645819,
0.1098472551,
-0.1346363574,
-0.0887999311,
0.2029492557,
-0.0634367093,
-0.0337745473,
-0.1287308335,
0.0737041086,
-0.2807864547,
-0.1892188638,
-0.0564695336,
-0.0368615687,
-0.2680021524,
0.0537570752,
-0.0889051929,
0.1657796949,
-0.2806427181,
0.2254054397,
-0.206907317,
-0.0022463375,
0.0168897994,
0.3366632462,
-0.2985761464,
-0.1466330141,
0.175427258,
0.0110225296,
-0.2779268026,
0.1927542537,
0.2056206912,
-0.1907161325,
-0.1894995868,
-0.114094995,
0.4079244435,
-0.268070817,
0.2316064686,
0.0067962334,
-0.3190087974,
0.1115990281,
0.1799425781,
0.1409952641,
-0.2611151934,
0.0276526213,
-0.0929687098,
-0.3116621673,
0.4535995424,
-0.222319752,
0.4007025361,
0.1895670742,
0.025183484,
-0.102494739,
0.0864615515,
-0.4182650745,
-0.0864679068,
-0.2789539993,
0.0182403903,
0.3211548626,
-0.041928906,
0.0900924653,
-0.0578940958,
0.1070771217,
0.1915730536,
-0.1554875374,
-0.2392192334,
-0.3062343299,
0.0637635663,
-0.0972102359,
-0.0153372651,
0.2928592563,
0.0228651762,
-0.0140388142,
-0.2541782558,
0.178435117,
0.0603082515,
-0.0205014404,
0.0031804652,
0.1131245196,
-0.0742529705,
0.1106414422,
0.1956302971,
0.0138043212,
0.1485376507,
0.0268243626,
-0.1076999754,
-0.2043929547,
-0.1640634984,
0.2915218771,
0.3105291426,
0.376398623,
-0.07431335,
0.0403739065,
0.0356444642,
-0.1852061898,
0.3360452652,
0.3035388887,
0.0763062984,
-0.1580764651,
-0.0090236701,
0.250944227,
0.2672972381,
-0.2801641822,
-0.31400612,
0.1554102898,
-0.1322544217,
0.1599821448,
0.1995125711,
0.2533137202,
0.2555075586,
0.3761177361,
0.1835837811,
0.3712929487,
0.1086525545,
0.3857232034,
0.0714862794,
-0.1753881723,
-0.07579799,
0.3299856186,
0.0942315385,
0.2346593589,
0.420524478,
-0.2518232167,
0.4789218903,
-0.352927953,
0.0927991793,
0.2049230188,
-0.2354158759,
0.1524895579,
-0.0175276361,
0.0026285481,
0.1835930794,
0.0110215684,
0.3121459484,
-0.239510715,
-0.0141944587,
-0.1060039923,
0.3352073729,
-0.196884051,
-0.1233880669,
0.0529494919,
-0.246617645,
-0.1814152151,
0.0332603678,
0.0691590458,
-0.0349599347,
0.3456926644,
-0.0826915354,
0.10445375,
-0.339196682,
-0.0489678383,
0.0682279095,
0.1889819056,
-0.1521362811,
0.1890358478,
0.1043093204,
-0.1827583313,
0.2095459998,
0.2704188824,
0.4066828489,
0.1755352169,
-0.0343750864,
-0.0935191736,
-0.1054313704,
-0.0592622198,
-0.3675794303,
0.0433288366,
-0.0585069284,
0.1019843742,
0.0710637793,
0.2339399606,
-0.2674206793,
-0.231008172,
-0.2215323299,
0.0321755745,
-0.4046781361,
0.1092637405,
-0.2300729007,
0.0373566635,
-0.3563765585,
0.0359812565,
-0.495816201,
-0.0656960309,
0.3878441155,
-0.0793618187,
-0.0656024516,
-0.3321760893,
0.1231692731,
0.1516618282,
0.6866531968,
0.261967957,
0.1190717146,
-0.1069375575,
-0.5023651123,
-0.7254449725,
0.3800844252,
-0.0637718663,
0.1848856807,
-0.0030618121,
-0.314466089,
0.1168699414,
0.1347700357,
0.1403687894,
-0.0114431567,
0.0391354747,
-0.5646092892,
-0.5288473964,
0.0057918043,
-0.0229796618,
-0.3092225492,
0.2121956497,
-0.1331289709,
0.1813654006,
0.1206870526,
0.068502225,
-0.2805920839,
0.268782258,
0.0800033882,
0.130830884,
0.270914197,
0.182731092,
0.3108758926,
-0.2353726625,
-0.2521845698,
-0.1005694121,
-0.2863895595,
-0.2737155259,
0.041569747,
-0.0826508999,
0.2577749193,
-0.3124461174,
-0.3013809621,
-0.3488101959,
0.0015419702,
0.2928627729,
0.2274935395,
-0.4342719018,
0.1474638879,
-0.0541693531,
0.2132264227,
0.0837322101,
0.2255559117,
0.0721460208,
0.1237297803,
-0.2248808742,
-0.283495754,
0.4166068733,
-0.1089395955,
-0.1908558458,
-0.1489651799,
0.1179046854,
-0.079196237,
-0.3435352147,
-0.5919113755,
0.0233602114,
0.0869258568,
0.1290535778,
-0.0486895256,
0.3910192847,
-0.0909188166,
0.0499210283,
-0.0145058967,
0.2419301271,
0.4145047367,
-0.1119273603,
0.3631418049,
-0.046698112
] |
https://github.com/huggingface/datasets/issues/1585 | FileNotFoundError for `amazon_polarity` | Hi @phtephanx , the `amazon_polarity` dataset has not been released yet. It will be available in the coming soon v2of `datasets` :)
You can still access it now if you want, but you will need to install datasets via the master branch:
`pip install git+https://github.com/huggingface/datasets.git@master` | Version: `datasets==v1.1.3`
### Reproduction
```python
from datasets import load_dataset
data = load_dataset("amazon_polarity")
```
crashes with
```bash
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/amazon_polarity/amazon_polarity.py
```
and
```bash
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/amazon_polarity/amazon_polarity.py
```
and
```bash
FileNotFoundError: Couldn't find file locally at amazon_polarity/amazon_polarity.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/amazon_polarity/amazon_polarity.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/amazon_polarity/amazon_polarity.py
``` | 45 | FileNotFoundError for `amazon_polarity`
Version: `datasets==v1.1.3`
### Reproduction
```python
from datasets import load_dataset
data = load_dataset("amazon_polarity")
```
crashes with
```bash
FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/amazon_polarity/amazon_polarity.py
```
and
```bash
FileNotFoundError: Couldn't find file at https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/amazon_polarity/amazon_polarity.py
```
and
```bash
FileNotFoundError: Couldn't find file locally at amazon_polarity/amazon_polarity.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/amazon_polarity/amazon_polarity.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/amazon_polarity/amazon_polarity.py
```
Hi @phtephanx , the `amazon_polarity` dataset has not been released yet. It will be available in the coming soon v2of `datasets` :)
You can still access it now if you want, but you will need to install datasets via the master branch:
`pip install git+https://github.com/huggingface/datasets.git@master` | [
-0.3479878008,
-0.4079696238,
-0.159430027,
0.1468011439,
0.3409613073,
0.1245035976,
0.1368295699,
0.0708825141,
-0.0147827342,
0.2100148648,
-0.0304769687,
-0.085696727,
-0.2752963305,
0.0079954779,
-0.083372511,
-0.1797064096,
0.0836885422,
0.1474184245,
-0.1062063351,
0.1448369771,
-0.185741514,
0.36767748,
-0.2011100799,
-0.0363304876,
-0.1535673887,
0.0321415961,
-0.1244172528,
0.2561987936,
-0.3571482301,
-0.1719462872,
0.6051848531,
-0.143815279,
0.1166466698,
0.4674166441,
-0.0001094239,
0.1218399331,
0.2970666587,
0.1170055792,
-0.2840384245,
-0.6816429496,
0.1893185824,
-0.1137112379,
0.1002504304,
-0.0300902147,
-0.172427699,
-0.4273683727,
0.3060815334,
0.0662669167,
0.4094983339,
0.0599563234,
0.261125356,
0.4023950696,
0.4682298601,
-0.1297982931,
0.4718747139,
0.3050640523,
-0.1289897263,
0.115215905,
0.0195888113,
-0.0436789915,
0.2055605799,
0.3719209731,
0.0113056479,
-0.0789837986,
0.2118725777,
-0.0042476663,
0.1750299037,
-0.1100075021,
0.0232834946,
0.21480304,
0.2996560633,
-0.3209212422,
-0.5227026343,
-0.0029204448,
0.0117154429,
-0.3397396505,
0.1643905789,
0.1410714239,
-0.0013033786,
-0.1067063659,
0.0194247421,
-0.2168498337,
-0.3099758625,
0.3946346343,
-0.0742103606,
0.5269247293,
-0.3228906393,
0.0313689671,
0.1816494763,
-0.4286198318,
-0.3890158832,
0.1138274521,
-0.1071815863,
0.1441518217,
-0.289942205,
-0.0756336004,
-0.1392738968,
0.0748888627,
0.1399794966,
0.2753765583,
-0.0740214735,
-0.0055774013,
-0.0317996144,
0.1708824784,
0.077100873,
0.0341317095,
0.1519278139,
0.3041285276,
0.1158186719,
0.3378839791,
0.1673317552,
-0.0622062609,
-0.002753481,
-0.3101992309,
-0.0584131107,
-0.1008437499,
0.4976037145,
-0.193555519,
-0.4300059974,
-0.0161388535,
-0.2263166308,
0.1012488678,
0.1638520211,
0.4274003506,
0.0445426367,
-0.0289206617,
0.1809093207,
0.1616845876,
-0.2305803597,
0.2029233873,
-0.2381457835,
0.2560457587,
-0.1458519399,
-0.00511193,
0.1202390343,
-0.1230171323,
0.4229933918,
-0.1286457032,
-0.090387024,
0.0102751972,
0.135865882,
0.04730222,
0.0937855691,
0.3426356018,
-0.1503620744,
-0.075940147,
0.1274424642,
0.092833139,
-0.1470046937,
-0.1799183488,
0.0203041397,
-0.0959177017,
-0.2991913557,
0.2074980438,
-0.2199322134,
-0.1230286062,
0.0789894238,
-0.0249362513,
-0.1744741797,
-0.3944457769,
0.0188545827,
-0.0501720309,
-0.1533359289,
-0.1192640513,
0.2974748909,
0.685293138,
-0.2487233132,
-0.2089464664,
-0.3055853248,
-0.253297776,
0.1533033848,
0.0427143574,
-0.0661377087,
-0.1310852021,
-0.3379170299,
-0.2395651937,
0.1273251325,
-0.3422109783,
-0.219497785,
0.1425999999,
-0.3919649422,
0.1090526804,
0.2609381974,
0.1072731316,
-0.4844021201,
-0.0023040345,
0.0727548897,
-0.2347022295,
0.1089569032,
0.0022043323,
-0.0262718424,
-0.3088285923,
-0.0118464166,
0.168712005,
-0.0103525557,
-0.1097879261,
0.2394641787,
0.1723673195,
0.1868828088,
-0.0150903901,
-0.132980749,
0.4036780894,
0.4300980568,
0.1812000275,
-0.0438669361,
-0.4173111916,
-0.5634763837,
0.0696374029,
-0.1297066361,
-0.0143242218,
-0.1950019747,
-0.1236343607,
-0.1820708513,
-0.1635347307,
-0.05306511,
-0.1849987805,
0.1603652686,
0.1631918401,
0.3020810783,
0.0290636048,
-0.1731581986,
0.1303824931,
-0.2044850439,
0.2718699276,
-0.5783799887,
0.0628572255,
-0.1096293032,
-0.0123150563,
0.1489763707,
0.1735640317,
0.0894440636,
-0.2606091499,
0.2154635042,
0.4597683549,
-0.2463008761,
0.4114009738,
0.1603759676,
0.1741542816,
0.2682318389,
-0.0960376337,
-0.0961562768,
-0.0080651622,
0.0273450054,
0.1278960258,
-0.0698078424,
0.3851479888,
-0.1351649463,
0.1483461857,
0.1445955038,
0.0045580305,
0.1259079278,
0.2072738111,
-0.2886957824,
-0.3195877075,
0.3829948008,
-0.0956359953,
0.2078198344,
-0.2757168412,
-0.3405964077,
-0.0480873436,
0.1322781742,
-0.0102750016,
0.1642767042,
-0.0990091264,
-0.2142268568,
0.1930592656,
0.1184574515,
0.4621919394,
0.4799411893,
0.3050817251,
-0.085537672,
0.0466701351,
-0.1272158027,
-0.1605950147,
0.4043017626,
0.2406166345,
0.0038169159,
0.0504071675,
-0.133630082,
-0.0189381018,
-0.2433245033,
-0.3935015202,
-0.253362745,
0.130610317,
-0.2505779266,
-0.0321469866,
-0.4261734784,
-0.225895673,
-0.3069345951,
0.127816081,
-0.1757677495,
-0.17792207,
-0.1088572666,
0.2513080239,
-0.1686685383,
0.0835058242,
-0.0559362322,
0.0933207348,
-0.0435148142,
-0.3251520693,
-0.2229113877,
-0.1641746759,
-0.0613542832,
0.1425081342,
0.2137885094,
-0.1246764585,
0.4876343012,
-0.2830375433,
0.0688864291,
-0.3899003267,
-0.4924219847,
0.018963404,
-0.2072215676,
0.094928965,
0.4582247436,
0.1032193601,
-0.2475159317,
-0.0739437416,
0.1684569567,
-0.1575737,
-0.2392314821,
-0.0062982575,
-0.0697321147,
-0.1733553857,
-0.0253236275,
-0.4028541744,
-0.150860548,
-0.3371180594,
0.2300269157,
0.1486730129,
-0.0006277661,
0.1806944758,
0.1901656687,
0.367695123,
-0.3491110504,
0.2490089685,
0.0143668177,
-0.2989017069,
0.2959594131,
-0.2435079664,
-0.2643981278,
0.2790342271,
0.1617137939,
0.0167358145,
0.04994151,
-0.283600837,
-0.0630581975,
-0.1218455285,
-0.1174791902,
0.0111598466,
0.3160513341,
0.3380798399,
0.0302937422,
-0.1007644087,
0.04671406,
-0.1240636557,
-0.1301065832,
-0.2254655808,
0.3550338447,
-0.2552394271,
0.0767049119,
-0.2182061821,
0.6340255737,
0.0623795949,
-0.1936589181,
0.0910416469,
-0.148314476,
0.490023911,
-0.1918850094,
-0.289442867,
-0.2767000794,
0.2572788,
0.3088662922,
0.1075014472,
0.0433205701,
0.2568732798,
-0.3664236665,
-0.0917699486,
-0.3213227987,
-0.2131361514,
-0.338303268,
0.1778075248,
0.157036975,
-0.0186243821,
-0.0073519801,
0.0493265204,
-0.1662913412,
-0.0711469725,
0.4121950567,
-0.1035990715,
0.0997329801,
-0.0668365657,
-0.3051211536,
-0.1988099962,
0.4756161571,
0.0304131564,
0.0509606674,
-0.0937960297,
-0.1918788701,
0.0009239666,
-0.108131595,
0.4818147123,
0.0903182179,
-0.0801214427,
0.0228535011,
-0.1577993333,
-0.4005215168,
-0.0274780188,
-0.2612532377,
0.4249590337,
0.0342729166,
0.5901089907,
-0.3759630024,
-0.2228932977,
0.2796902061,
0.1097373217,
-0.0025949106,
-0.0770177543,
-0.2817255855,
0.0272907764,
-0.0402560644,
0.0364876017,
-0.0845620185,
0.2202618569,
-0.175040856,
0.1786637157,
0.0618276335,
-0.1259282082,
0.0754037946,
0.0294999462,
0.3922424316,
-0.2385633439,
0.0622895733,
0.2503084838,
-0.0664569438,
0.2658133209,
0.6059348583,
0.2176028192,
-0.2775726616,
0.1582262963,
0.10052903,
-0.1520285457,
0.3247642815,
-0.039204251,
0.0130163692,
0.3081916273,
0.1735007912,
-0.1358237416,
-0.3210609555,
0.3936968446,
0.1134107485,
0.0918205306,
-0.0360336676,
0.2441852391,
0.0196915343,
0.1410987377,
0.3212391734,
0.5112131834,
-0.1586907059,
0.2731305957,
0.0461118035,
0.8052712083,
0.0167238936,
0.2628681362,
0.130410105,
-0.0347269624,
0.9862419963,
-0.1025055721,
0.1490566432,
-0.3020689189,
0.1934921145,
0.1081602052,
-0.0407785438,
0.4197333157,
-0.2651717961,
-0.1427743435,
0.3299351335,
0.2675994337,
0.0835018679,
-0.2166481018,
-0.0107499994,
-0.4383027852,
0.0878247246,
-0.1916678697,
0.1452477127,
0.0791354328,
0.4863109589,
-0.2161917686,
0.007214013,
-0.162604332,
-0.3805138469,
-0.3852405548,
-0.0912894011,
-0.1410881728,
0.2592481375,
0.1741278023,
-0.0907113254,
-0.0190737545,
0.3718284369,
0.2497217655,
0.0609981567,
-0.3964705765,
0.0922153369,
-0.2150303274,
-0.3787035644,
-0.1657681614,
0.1121569201,
0.2095564008,
-0.0374904275,
-0.2007804811,
-0.035363473,
0.0470259935,
-0.0080675241,
-0.3303602934,
-0.0268964674,
-0.2138498127,
0.0041925665,
-0.1896992475,
-0.0082469732,
-0.2543064952,
-0.1578424126,
0.1775464416,
0.1121900901,
-0.2231850773,
-0.2031596005,
0.1021465361,
-0.0587706938,
-0.1308756471,
0.5322408676,
-0.1828395277,
0.0836191326,
0.4300753176,
0.2786897123,
-0.097161971,
-0.3899721503,
0.186609596,
0.2124700248,
-0.4469738603,
0.0227388218,
0.1510966122,
0.1917633861,
0.1680827588,
0.1403882951,
0.2693327069,
-0.0948629305,
0.0875575766,
-0.3882387578,
-0.0769424513,
0.3205411434,
0.033259593,
0.1899959743,
0.1736543924,
-0.2284807116,
0.097549893,
-0.2836913168,
-0.3788015842,
0.0786602423,
-0.2254061401,
-0.0939113274,
0.019245781,
-0.0073984354,
0.5711521506,
0.1018612683,
0.2320117354,
0.2181946933,
-0.3243472278,
-0.2544845343,
-0.108425498,
0.09456826,
-0.0346430987,
-0.012521551,
-0.0249571353,
-0.022222124,
0.0687841997,
0.1524952799,
0.1734758466,
0.3341302276,
0.1582514048,
0.1446084976,
-0.1194519997,
0.1690199524,
0.0117785949,
0.0195733197,
-0.0719887912,
0.1289560944,
0.1779896915,
0.0775706917,
0.0067384611,
-0.1191647425,
0.0373141132,
-0.0810108334,
-0.1880479306,
0.1136234254,
0.3063573539,
-0.0758864582,
-0.2214574963,
-0.1626740396,
0.4580842555,
0.3845558465,
-0.2183555663,
0.1248594299,
0.2854146957,
0.2142764926,
-0.2931696177,
0.0103998426,
0.0190625507,
0.176082477,
0.1890485287,
0.1412041336,
-0.2063533962,
-0.0167125985,
0.2385962307,
0.3029820919,
0.3455757797,
-0.3921844661,
0.2276840657,
0.1078590006,
0.0631873086,
0.0041161785,
0.0418092906,
0.2804657817,
0.2554585636,
0.1395145208,
-0.2539013922,
0.2305682898,
-0.4177190959,
0.2897433937,
0.053615272,
-0.2980118394,
0.1886995435,
0.1838293672,
-0.1125129089,
0.0073550781,
-0.1999333352,
0.743419826,
-0.3424643874,
0.2930617034,
-0.2554728091,
0.0252122059,
-0.1385475844,
-0.1526788771,
-0.2909661233,
-0.2425522655,
-0.0798392519,
-0.2007224411,
0.1263447106,
-0.2806013525,
-0.0877750367,
0.058793623,
-0.0349418595,
-0.3793418109,
0.0086648911,
0.0944184288,
0.2072146982,
-0.1528531015,
0.0437525213,
0.4355441332,
-0.0391813256,
0.0630143434,
0.3242608309,
0.4316122234,
0.0738173425,
-0.0038448505,
0.1545882523,
-0.0941184163,
-0.2815186083,
0.1010152176,
0.1761722267,
-0.0095715513,
0.0294629224,
0.3469565511,
0.2939644158,
-0.2292863131,
0.3707338572,
0.1491947025,
0.2623644769,
-0.1603526324,
0.258839041,
-0.5671658516,
-0.002688346,
-0.2175390422,
0.1489082873,
-0.7439576983,
-0.0749540478,
-0.0734463036,
0.1557803005,
-0.0134731987,
-0.0751894042,
0.11844147,
0.1225306764,
0.3655390441,
0.4004965127,
0.1081302762,
-0.0999228507,
-0.0020385524,
-0.3938159645,
0.0723532885,
-0.0834049657,
0.117395021,
-0.2401402891,
0.2559217513,
-0.1104334965,
0.0697371736,
0.2139818668,
-0.3945614994,
0.0260398444,
0.1659133434,
-0.1430792958,
-0.0883519873,
0.2128640413,
-0.1136934385,
0.1055825949,
-0.1475958377,
-0.0868248716,
-0.1874763817,
0.0144138671,
-0.1302591264,
0.0870230347,
-0.177309379,
-0.302231431,
0.2704398632,
-0.0357648917,
0.0042449897,
-0.1206801683,
-0.2427916676,
-0.4267439842,
-0.1690507829,
0.0312250275,
0.0688579828,
0.1093187183,
0.6689347029,
-0.2943125367,
-0.6157665253,
-0.2046462297,
0.2288288027,
-0.1594865173,
-0.1637366116,
-0.0575523674,
0.1553613096,
-0.0737827197,
-0.0551080182,
-0.1251991093,
0.2218606323,
0.0011762204,
-0.0023419636,
-0.2762534022,
-0.2309860438,
0.5606697202,
-0.2987104654,
0.0917576998,
0.1425620317,
0.3285605013,
0.5192726254,
-0.1770680994,
-0.4749753177,
0.5117942095,
0.1641483009,
0.2177816927,
0.1199835092,
0.2224525213,
-0.1886865348,
0.0596453249,
0.0232480373,
0.1988115758,
0.0254375301,
-0.0106476666,
0.1978363991,
-0.1795610636
] |
https://github.com/huggingface/datasets/issues/1581 | Installing datasets and transformers in a tensorflow docker image throws Permission Error on 'import transformers' | Thanks for reporting !
You can override the directory in which cache file are stored using for example
```
ENV HF_HOME="/root/cache/hf_cache_home"
```
This way both `transformers` and `datasets` will use this directory instead of the default `.cache` | I am using a docker container, based on latest tensorflow-gpu image, to run transformers and datasets (4.0.1 and 1.1.3 respectively - Dockerfile attached below). Importing transformers throws a Permission Error to access `/.cache`:
```
$ docker run --gpus=all --rm -it -u $(id -u):$(id -g) -v $(pwd)/data:/root/data -v $(pwd):/root -v $(pwd)/models/:/root/models -v $(pwd)/saved_models/:/root/saved_models -e "HOST_HOSTNAME=$(hostname)" hf-error:latest /bin/bash
________ _______________
___ __/__________________________________ ____/__ /________ __
__ / _ _ \_ __ \_ ___/ __ \_ ___/_ /_ __ /_ __ \_ | /| / /
_ / / __/ / / /(__ )/ /_/ / / _ __/ _ / / /_/ /_ |/ |/ /
/_/ \___//_/ /_//____/ \____//_/ /_/ /_/ \____/____/|__/
You are running this container as user with ID 1000 and group 1000,
which should map to the ID and group for your user on the Docker host. Great!
tf-docker /root > python
Python 3.6.9 (default, Oct 8 2020, 12:12:24)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import transformers
2020-12-15 23:53:21.165827: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/transformers/__init__.py", line 22, in <module>
from .integrations import ( # isort:skip
File "/usr/local/lib/python3.6/dist-packages/transformers/integrations.py", line 5, in <module>
from .trainer_utils import EvaluationStrategy
File "/usr/local/lib/python3.6/dist-packages/transformers/trainer_utils.py", line 25, in <module>
from .file_utils import is_tf_available, is_torch_available, is_torch_tpu_available
File "/usr/local/lib/python3.6/dist-packages/transformers/file_utils.py", line 88, in <module>
import datasets # noqa: F401
File "/usr/local/lib/python3.6/dist-packages/datasets/__init__.py", line 26, in <module>
from .arrow_dataset import Dataset, concatenate_datasets
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_dataset.py", line 40, in <module>
from .arrow_reader import ArrowReader
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 31, in <module>
from .utils import cached_path, logging
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/__init__.py", line 20, in <module>
from .download_manager import DownloadManager, GenerateMode
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/download_manager.py", line 25, in <module>
from .file_utils import HF_DATASETS_CACHE, cached_path, get_from_cache, hash_url_to_filename
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 118, in <module>
os.makedirs(HF_MODULES_CACHE, exist_ok=True)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/.cache'
```
I've pinned the problem to `RUN pip install datasets`, and by commenting it you can actually import transformers correctly. Another workaround I've found is creating the directory and giving permissions to it directly on the Dockerfile.
```
FROM tensorflow/tensorflow:latest-gpu-jupyter
WORKDIR /root
EXPOSE 80
EXPOSE 8888
EXPOSE 6006
ENV SHELL /bin/bash
ENV PATH="/root/.local/bin:${PATH}"
ENV CUDA_CACHE_PATH="/root/cache/cuda"
ENV CUDA_CACHE_MAXSIZE="4294967296"
ENV TFHUB_CACHE_DIR="/root/cache/tfhub"
RUN pip install --upgrade pip
RUN apt update -y && apt upgrade -y
RUN pip install transformers
#Installing datasets will throw the error, try commenting and rebuilding
RUN pip install datasets
#Another workaround is creating the directory and give permissions explicitly
#RUN mkdir /.cache
#RUN chmod 777 /.cache
```
| 37 | Installing datasets and transformers in a tensorflow docker image throws Permission Error on 'import transformers'
I am using a docker container, based on latest tensorflow-gpu image, to run transformers and datasets (4.0.1 and 1.1.3 respectively - Dockerfile attached below). Importing transformers throws a Permission Error to access `/.cache`:
```
$ docker run --gpus=all --rm -it -u $(id -u):$(id -g) -v $(pwd)/data:/root/data -v $(pwd):/root -v $(pwd)/models/:/root/models -v $(pwd)/saved_models/:/root/saved_models -e "HOST_HOSTNAME=$(hostname)" hf-error:latest /bin/bash
________ _______________
___ __/__________________________________ ____/__ /________ __
__ / _ _ \_ __ \_ ___/ __ \_ ___/_ /_ __ /_ __ \_ | /| / /
_ / / __/ / / /(__ )/ /_/ / / _ __/ _ / / /_/ /_ |/ |/ /
/_/ \___//_/ /_//____/ \____//_/ /_/ /_/ \____/____/|__/
You are running this container as user with ID 1000 and group 1000,
which should map to the ID and group for your user on the Docker host. Great!
tf-docker /root > python
Python 3.6.9 (default, Oct 8 2020, 12:12:24)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import transformers
2020-12-15 23:53:21.165827: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/transformers/__init__.py", line 22, in <module>
from .integrations import ( # isort:skip
File "/usr/local/lib/python3.6/dist-packages/transformers/integrations.py", line 5, in <module>
from .trainer_utils import EvaluationStrategy
File "/usr/local/lib/python3.6/dist-packages/transformers/trainer_utils.py", line 25, in <module>
from .file_utils import is_tf_available, is_torch_available, is_torch_tpu_available
File "/usr/local/lib/python3.6/dist-packages/transformers/file_utils.py", line 88, in <module>
import datasets # noqa: F401
File "/usr/local/lib/python3.6/dist-packages/datasets/__init__.py", line 26, in <module>
from .arrow_dataset import Dataset, concatenate_datasets
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_dataset.py", line 40, in <module>
from .arrow_reader import ArrowReader
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 31, in <module>
from .utils import cached_path, logging
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/__init__.py", line 20, in <module>
from .download_manager import DownloadManager, GenerateMode
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/download_manager.py", line 25, in <module>
from .file_utils import HF_DATASETS_CACHE, cached_path, get_from_cache, hash_url_to_filename
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 118, in <module>
os.makedirs(HF_MODULES_CACHE, exist_ok=True)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/.cache'
```
I've pinned the problem to `RUN pip install datasets`, and by commenting it you can actually import transformers correctly. Another workaround I've found is creating the directory and giving permissions to it directly on the Dockerfile.
```
FROM tensorflow/tensorflow:latest-gpu-jupyter
WORKDIR /root
EXPOSE 80
EXPOSE 8888
EXPOSE 6006
ENV SHELL /bin/bash
ENV PATH="/root/.local/bin:${PATH}"
ENV CUDA_CACHE_PATH="/root/cache/cuda"
ENV CUDA_CACHE_MAXSIZE="4294967296"
ENV TFHUB_CACHE_DIR="/root/cache/tfhub"
RUN pip install --upgrade pip
RUN apt update -y && apt upgrade -y
RUN pip install transformers
#Installing datasets will throw the error, try commenting and rebuilding
RUN pip install datasets
#Another workaround is creating the directory and give permissions explicitly
#RUN mkdir /.cache
#RUN chmod 777 /.cache
```
Thanks for reporting !
You can override the directory in which cache file are stored using for example
```
ENV HF_HOME="/root/cache/hf_cache_home"
```
This way both `transformers` and `datasets` will use this directory instead of the default `.cache` | [
-0.2601942718,
0.1537580043,
-0.0879162699,
0.1361189336,
0.0533820763,
0.0593198873,
0.6560067534,
0.1960314214,
0.1612776518,
-0.0136701129,
-0.3051158786,
-0.1683907062,
-0.0324438885,
-0.5109063387,
-0.025965713,
-0.2055932879,
0.0551736914,
-0.067634657,
-0.310154736,
-0.1253345013,
-0.0913535208,
-0.0168973021,
-0.0075821532,
0.1020796672,
-0.3513801396,
0.023547899,
0.3338410258,
-0.097983487,
0.0049277837,
-0.1136810929,
0.3865941763,
0.1387622058,
0.1959901303,
0.8908077478,
-0.0001138685,
0.3646986187,
0.1204627678,
0.0754131228,
0.086639598,
-0.2086411119,
-0.1387083083,
-0.2477506995,
-0.1201191619,
-0.0817604661,
0.0790471882,
0.0090727061,
0.0140740955,
-0.121402815,
0.6044268012,
0.3587147892,
0.2027943879,
0.4903939962,
0.0908188447,
0.1236842275,
0.2537279725,
-0.0316033736,
-0.2483435869,
-0.0738283843,
-0.124327831,
-0.2798892856,
-0.0047014267,
0.2760696113,
-0.054042194,
0.1426954567,
0.2170645595,
-0.194056645,
0.1225121394,
-0.3570999801,
-0.0412273556,
0.0453185029,
0.5151112676,
-0.0656427369,
-0.5028498769,
-0.1864658147,
-0.1189290434,
0.0584087446,
0.3026320934,
0.3046843708,
-0.0361773409,
0.2790160477,
-0.2144558281,
-0.15145123,
-0.4730089903,
0.0950545147,
-0.2394709885,
0.351374507,
0.0620448291,
0.1947924644,
-0.0911417827,
-0.0715903044,
0.6296563148,
-0.0060652182,
0.1474890113,
0.2979934514,
-0.3239393532,
0.2316237688,
0.0331778005,
-0.5658236146,
-0.3128331006,
0.0865983069,
-0.231440872,
-0.0924053714,
-0.0704432577,
0.3829042017,
-0.2021470666,
0.4120386839,
-0.3363805711,
0.7340714931,
0.3856593072,
-0.3047207892,
0.0332622603,
-0.0432148501,
-0.0374101177,
-0.0881388932,
-0.1260697246,
-0.0319222733,
0.1457728297,
0.0939133689,
-0.0984338894,
-0.0346814096,
0.0868969187,
-0.0100169135,
0.1854214221,
0.3815257847,
0.1036053821,
0.0991567299,
0.3901362121,
0.1196967959,
-0.0152243311,
0.0574717857,
-0.2500607371,
0.0720265061,
-0.0946180299,
-0.0641497225,
0.1987672001,
0.0866812393,
0.0298913214,
-0.103701137,
0.2303164899,
-0.1406199038,
0.4395030439,
-0.207735762,
0.1142413467,
0.7253698707,
0.1236807927,
0.0405826718,
0.3252631724,
-0.1411765218,
0.0385677405,
0.111526981,
-0.3354059756,
-0.192932725,
0.0483056344,
0.1385355294,
-0.1338279247,
0.2708506286,
-0.2460407317,
-0.1343727261,
0.3796409965,
-0.0594126694,
-0.038740471,
-0.256891638,
0.0189277697,
-0.1345493048,
-0.099491857,
0.2476491481,
-0.1799387485,
-0.1785383821,
-0.0476371795,
0.0107343197,
-0.0975554734,
0.4373539686,
-0.1490976214,
0.3612089157,
-0.012258294,
0.1215737909,
0.0213420298,
-0.5040406585,
-0.4507938325,
-0.065841116,
-0.0317620039,
0.055245176,
0.0770502314,
0.0080057736,
0.3263445795,
-0.2391066998,
-0.2724587917,
0.3224855661,
0.2141268104,
0.0887086391,
0.2297955155,
-0.1883957833,
-0.0167391412,
0.0299264416,
0.5327506065,
0.2355926931,
0.0445309058,
0.4013051093,
-0.1830300689,
-0.3429356217,
0.1383526623,
0.4372716844,
0.3134893775,
0.0098210583,
0.0195715223,
-0.0359986871,
-0.3422744572,
0.3768793046,
-0.1361482441,
0.1983709484,
-0.0884067491,
-0.0013438347,
-0.1373444051,
0.304296881,
-0.0974788591,
-0.0624618791,
0.1574099362,
0.0914990678,
-0.0297620445,
-0.0523539633,
0.2131537497,
0.4122339189,
0.0303781182,
0.1924374551,
-0.0138118714,
0.4103768766,
-0.2020864487,
-0.0439702198,
-0.0946269855,
-0.0713000074,
0.1517298073,
-0.1395328641,
-0.2055128068,
0.1627991349,
-0.0285274703,
0.1827243716,
-0.5095715523,
0.4273615181,
0.2366540432,
-0.0472979806,
0.0571587086,
0.1110840291,
-0.0023627228,
-0.0089512579,
-0.0438571312,
0.0467416681,
0.0703112409,
0.0665784404,
-0.0663855523,
0.1159162819,
0.2043630183,
0.0928915218,
0.0580299832,
-0.0351179801,
0.0987337977,
0.1005919948,
-0.0032763158,
-0.126206249,
0.3256448507,
-0.2848219872,
0.2149300724,
0.1594937444,
0.0941945612,
0.0378742404,
-0.0761303976,
0.1714248806,
0.3254772723,
0.3470334113,
0.2231841534,
0.0314969569,
0.0246457085,
-0.0549993254,
-0.054925397,
-0.0206401031,
-0.1116270944,
0.1299438924,
0.1952213794,
0.073209092,
0.0617153011,
0.0350542814,
-0.1838504374,
-0.27961272,
0.0911720246,
0.3946084082,
-0.3553253412,
0.1200244799,
-0.0396862142,
0.0555185117,
0.1301531494,
0.0189668089,
-0.4570339024,
-0.2215031832,
-0.2029656023,
0.4210834205,
-0.1194585636,
0.1644148082,
-0.0810747743,
0.0509673432,
0.29632622,
-0.1255414188,
-0.259331286,
0.1043352112,
0.0625971183,
0.0425716937,
0.1925005019,
-0.5198510289,
0.1900203079,
0.1750376076,
0.1842621565,
-0.0083787143,
-0.5007292628,
0.0480753779,
-0.1537053287,
0.1523055434,
-0.145580411,
0.2838714421,
0.0492252968,
-0.2909570336,
-0.0210789144,
-0.1372648031,
-0.0680155754,
-0.0453204513,
-0.0619839542,
-0.2530843019,
-0.1954329461,
-0.06982214,
-0.2933194935,
-0.4212829471,
0.1225007698,
0.3711088002,
0.2529851198,
0.4407688379,
0.1377105564,
0.0921131149,
0.269069314,
0.0994601399,
-0.0383630581,
-0.1074214876,
0.2451767027,
-0.3104767203,
-0.2563969195,
0.0066131917,
0.0111053567,
0.2837287486,
0.3374520242,
-0.3564889133,
-0.1421991289,
-0.312304616,
-0.00418738,
-0.0811960474,
0.1192050278,
0.0453978553,
-0.0257925522,
0.1307450086,
-0.1638922095,
0.0347886048,
-0.0795595497,
0.1042244807,
-0.0728222057,
0.0976094157,
0.099784337,
0.2115110159,
0.6869983673,
-0.1291377395,
0.1413398683,
0.0183090065,
0.215124324,
0.4513023198,
0.0434457809,
-0.296793431,
0.0668855831,
0.083708711,
-0.2062212527,
-0.1333540976,
0.0458997823,
-0.1497393698,
0.0206685681,
0.1178895682,
-0.0471883826,
-0.2259910256,
0.1134366393,
-0.0898844153,
0.3340996206,
0.1879189163,
0.0507018529,
-0.4434090257,
-0.1077165008,
-0.0562808998,
0.3804533482,
0.0898378268,
0.1508090794,
-0.3076764345,
-0.0904265642,
-0.2749194503,
0.0611351877,
-0.0811376795,
0.5575758219,
-0.1852125078,
0.3113375306,
-0.0447096489,
0.1809080988,
0.4595345557,
-0.2760759294,
0.0053931843,
-0.1066812649,
-0.281932056,
-0.3433836699,
-0.239083752,
-0.0859025791,
-0.0639394522,
0.1136863604,
0.1906845868,
-0.0791468024,
-0.0084777204,
-0.142874375,
-0.2193471044,
-0.1370998174,
-0.2479740083,
-0.1115663573,
-0.2691839635,
-0.4986166358,
-0.1251070201,
0.3895350695,
-0.1092314795,
-0.122588329,
0.1031750217,
-0.2260033339,
0.0671980157,
0.1904065162,
0.1915993989,
0.0266412552,
-0.0095666014,
-0.1999969333,
0.2065167427,
-0.5022633672,
0.0626923665,
0.1973261386,
-0.1263119578,
-0.3567326963,
-0.0163293462,
0.155930832,
-0.1357991099,
0.0637564138,
-0.1743563712,
-0.0275261384,
0.0254740771,
-0.050441511,
-0.071854502,
0.3104914129,
-0.0558904819,
0.1956608891,
-0.1012474,
-0.4688995779,
0.1968586147,
0.2237326354,
-0.0757482052,
0.1689157188,
0.0943679959,
-0.398968339,
0.4668301046,
0.158380568,
0.5565392375,
-0.3599163592,
0.0974434763,
0.3196150064,
0.06722451,
0.6953793764,
-0.655544579,
0.3161600232,
-0.2079333067,
-0.3527633846,
-0.1493600011,
-0.381749332,
0.1816309243,
0.0691902712,
-0.0273421574,
0.0941419378,
-0.0852651745,
0.3506407738,
0.1797597557,
0.2020633221,
0.0884776488,
-0.4448314905,
0.1528819501,
0.2294976562,
-0.2720117271,
0.3177683651,
-0.1780315787,
-0.0277536586,
-0.291852653,
0.0254853256,
-0.2747629881,
0.1161500141,
-0.2991319597,
0.5190945268,
0.1113138348,
0.0464834124,
0.2879340947,
0.2445801795,
0.2088552117,
0.2620199025,
-0.2269391567,
0.0637964681,
-0.130311504,
-0.0931611806,
-0.0392174721,
0.0066591511,
0.3359817266,
0.0596250556,
-0.0585411489,
-0.0665249303,
-0.1696171016,
-0.3609890342,
0.0174029842,
0.2294079214,
0.202417478,
0.006458113,
-0.0510127284,
-0.0119281393,
-0.3825114667,
0.0726772547,
0.1492640227,
0.0109345466,
-0.2534067929,
0.2334101796,
-0.0454860404,
-0.2722891271,
0.0967669114,
0.3703704774,
0.1194976792,
-0.1971344352,
0.559756577,
0.2043306381,
-0.2898310721,
-0.0391660072,
-0.2040650994,
0.0931313336,
-0.4541437924,
-0.0446450152,
-0.4564749897,
-0.4141295552,
-0.0188432913,
-0.4614748359,
0.3459786773,
-0.0074620107,
-0.1736587286,
-0.4079885483,
-0.3153897226,
-0.0964627713,
-0.3273632526,
-0.0001220496,
-0.0069627296,
-0.0182453487,
-0.0710389391,
0.1626551002,
-0.259177804,
-0.2372058481,
-0.3444596827,
0.006200572,
0.3342398703,
-0.2212559879,
0.0436340682,
-0.1810939014,
0.0256802011,
0.1466896087,
-0.3872323334,
-0.1846113354,
-0.2641799748,
0.1107682511,
0.2623436153,
-0.3276491165,
-0.0680266991,
-0.3471539915,
-0.0914151818,
-0.1358476281,
0.1620069891,
0.2643098831,
-0.1182676777,
0.1854375303,
-0.1474617124,
0.2718784213,
-0.0195026137,
0.1773811579,
-0.0268761665,
0.0644539967,
0.0384419337,
0.38233459,
0.132679373,
0.0603220388,
-0.622834146,
0.1132024899,
0.0375845246,
0.1517112851,
0.3931129575,
-0.3460861444,
0.3375229537,
-0.0362393558,
0.0605528466,
-0.1529015601,
-0.3420252502,
-0.0691743866,
0.1160456464,
0.1642259508,
0.0276591815,
-0.0963030979,
0.0548699945,
0.0327197909,
0.098761633,
0.2690494955,
0.2619536817,
-0.040633671,
-0.0124456342,
0.3720313609,
0.6341761947,
-0.2661921084,
0.2063339055,
0.2476852983,
-0.2334973961,
0.1992757618,
0.2232562602,
-0.0020315622,
0.0001360713,
0.1990370303,
0.1524527073,
-0.0540716387,
0.0205249526,
-0.1834712625,
0.3360916078,
-0.2124367952,
-0.1275314838,
-0.0399634242,
0.1181048453,
0.2308099568,
-0.0397054181,
-0.324921906,
0.0261874199,
-0.0104646664,
-0.2011927664,
0.1950682104,
-0.1402629316,
0.0443250127,
0.0428521372,
0.2038141042,
0.0132805007,
-0.2877650559,
0.1271376908,
-0.4779741764,
-0.305870384,
0.364051044,
-0.1340832561,
0.0985850021,
0.0616866611,
0.2978545427,
-0.2202401012,
-0.1968926489,
0.0838606283,
0.10720516,
-0.1116497442,
-0.0825736374,
0.0934758037,
0.5431834459,
0.2893398404,
0.159965694,
0.2631548345,
0.0980714783,
-0.0594068468,
-0.0906575993,
0.3076895177,
-0.2290301472,
0.1799557656,
0.1197363958,
0.0925129279,
-0.212679714,
-0.280603677,
0.0932360515,
0.0901549384,
-0.0003150952,
0.2890576422,
-0.2614881396,
-0.2587867677,
0.0748262182,
-0.0476369895,
-0.1973498464,
0.1740466207,
0.8346322775,
-0.1961343884,
0.2542149425,
-0.0428734384,
0.0120078884,
-0.1633708626,
0.3853301704,
0.3202113211,
0.0207923129,
-0.2639084458,
0.299623549,
-0.2990523279,
0.1200066581,
-0.1916532367,
-0.0139932754,
0.1818583757,
0.1701569706,
-0.061395213,
-0.0301432889,
0.1060567945,
-0.4536414444,
-0.0028724272,
0.0240875073,
-0.2195231766,
-0.1286706477,
0.121633403,
0.029588135,
0.0657106712,
-0.3943276703,
0.0754954666,
0.0724964514,
0.0972358733,
-0.3166574538,
0.0166931897,
0.2151393145,
0.252650857,
0.2539836764,
0.2079444379,
0.3316451013,
0.070369333,
0.0958233252,
-0.3994336426,
-0.3495732546,
-0.3445079029,
0.0160422362,
-0.156950593,
0.5965114236,
-0.2879592478,
-0.5061557889,
-0.3620114625,
0.0960138664,
0.10511785,
-0.2808552682,
-0.2017897815,
0.1834329069,
-0.4025208056,
0.3427906036,
0.2535628974,
-0.0980608687,
0.2448209673,
0.3333666325,
-0.3015104234,
-0.3771390319,
0.5819666386,
-0.4455088675,
-0.4940266907,
0.2248335034,
0.0352741815,
-0.1100793853,
-0.0267486125,
-0.4583680332,
0.2484730035,
0.1376976967,
-0.3479514122,
-0.3160352111,
0.0086387312,
0.1702649444,
0.2086644918,
-0.055956617,
0.1456702054,
-0.0756857544,
-0.3460895121,
0.118468076,
-0.0319123529
] |
https://github.com/huggingface/datasets/issues/1581 | Installing datasets and transformers in a tensorflow docker image throws Permission Error on 'import transformers' | > Thanks for reporting !
> You can override the directory in which cache file are stored using for example
>
> ```
> ENV HF_HOME="/root/cache/hf_cache_home"
> ```
>
> This way both `transformers` and `datasets` will use this directory instead of the default `.cache`
can we disable caching directly? | I am using a docker container, based on latest tensorflow-gpu image, to run transformers and datasets (4.0.1 and 1.1.3 respectively - Dockerfile attached below). Importing transformers throws a Permission Error to access `/.cache`:
```
$ docker run --gpus=all --rm -it -u $(id -u):$(id -g) -v $(pwd)/data:/root/data -v $(pwd):/root -v $(pwd)/models/:/root/models -v $(pwd)/saved_models/:/root/saved_models -e "HOST_HOSTNAME=$(hostname)" hf-error:latest /bin/bash
________ _______________
___ __/__________________________________ ____/__ /________ __
__ / _ _ \_ __ \_ ___/ __ \_ ___/_ /_ __ /_ __ \_ | /| / /
_ / / __/ / / /(__ )/ /_/ / / _ __/ _ / / /_/ /_ |/ |/ /
/_/ \___//_/ /_//____/ \____//_/ /_/ /_/ \____/____/|__/
You are running this container as user with ID 1000 and group 1000,
which should map to the ID and group for your user on the Docker host. Great!
tf-docker /root > python
Python 3.6.9 (default, Oct 8 2020, 12:12:24)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import transformers
2020-12-15 23:53:21.165827: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/transformers/__init__.py", line 22, in <module>
from .integrations import ( # isort:skip
File "/usr/local/lib/python3.6/dist-packages/transformers/integrations.py", line 5, in <module>
from .trainer_utils import EvaluationStrategy
File "/usr/local/lib/python3.6/dist-packages/transformers/trainer_utils.py", line 25, in <module>
from .file_utils import is_tf_available, is_torch_available, is_torch_tpu_available
File "/usr/local/lib/python3.6/dist-packages/transformers/file_utils.py", line 88, in <module>
import datasets # noqa: F401
File "/usr/local/lib/python3.6/dist-packages/datasets/__init__.py", line 26, in <module>
from .arrow_dataset import Dataset, concatenate_datasets
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_dataset.py", line 40, in <module>
from .arrow_reader import ArrowReader
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 31, in <module>
from .utils import cached_path, logging
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/__init__.py", line 20, in <module>
from .download_manager import DownloadManager, GenerateMode
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/download_manager.py", line 25, in <module>
from .file_utils import HF_DATASETS_CACHE, cached_path, get_from_cache, hash_url_to_filename
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 118, in <module>
os.makedirs(HF_MODULES_CACHE, exist_ok=True)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/.cache'
```
I've pinned the problem to `RUN pip install datasets`, and by commenting it you can actually import transformers correctly. Another workaround I've found is creating the directory and giving permissions to it directly on the Dockerfile.
```
FROM tensorflow/tensorflow:latest-gpu-jupyter
WORKDIR /root
EXPOSE 80
EXPOSE 8888
EXPOSE 6006
ENV SHELL /bin/bash
ENV PATH="/root/.local/bin:${PATH}"
ENV CUDA_CACHE_PATH="/root/cache/cuda"
ENV CUDA_CACHE_MAXSIZE="4294967296"
ENV TFHUB_CACHE_DIR="/root/cache/tfhub"
RUN pip install --upgrade pip
RUN apt update -y && apt upgrade -y
RUN pip install transformers
#Installing datasets will throw the error, try commenting and rebuilding
RUN pip install datasets
#Another workaround is creating the directory and give permissions explicitly
#RUN mkdir /.cache
#RUN chmod 777 /.cache
```
| 50 | Installing datasets and transformers in a tensorflow docker image throws Permission Error on 'import transformers'
I am using a docker container, based on latest tensorflow-gpu image, to run transformers and datasets (4.0.1 and 1.1.3 respectively - Dockerfile attached below). Importing transformers throws a Permission Error to access `/.cache`:
```
$ docker run --gpus=all --rm -it -u $(id -u):$(id -g) -v $(pwd)/data:/root/data -v $(pwd):/root -v $(pwd)/models/:/root/models -v $(pwd)/saved_models/:/root/saved_models -e "HOST_HOSTNAME=$(hostname)" hf-error:latest /bin/bash
________ _______________
___ __/__________________________________ ____/__ /________ __
__ / _ _ \_ __ \_ ___/ __ \_ ___/_ /_ __ /_ __ \_ | /| / /
_ / / __/ / / /(__ )/ /_/ / / _ __/ _ / / /_/ /_ |/ |/ /
/_/ \___//_/ /_//____/ \____//_/ /_/ /_/ \____/____/|__/
You are running this container as user with ID 1000 and group 1000,
which should map to the ID and group for your user on the Docker host. Great!
tf-docker /root > python
Python 3.6.9 (default, Oct 8 2020, 12:12:24)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import transformers
2020-12-15 23:53:21.165827: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/transformers/__init__.py", line 22, in <module>
from .integrations import ( # isort:skip
File "/usr/local/lib/python3.6/dist-packages/transformers/integrations.py", line 5, in <module>
from .trainer_utils import EvaluationStrategy
File "/usr/local/lib/python3.6/dist-packages/transformers/trainer_utils.py", line 25, in <module>
from .file_utils import is_tf_available, is_torch_available, is_torch_tpu_available
File "/usr/local/lib/python3.6/dist-packages/transformers/file_utils.py", line 88, in <module>
import datasets # noqa: F401
File "/usr/local/lib/python3.6/dist-packages/datasets/__init__.py", line 26, in <module>
from .arrow_dataset import Dataset, concatenate_datasets
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_dataset.py", line 40, in <module>
from .arrow_reader import ArrowReader
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 31, in <module>
from .utils import cached_path, logging
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/__init__.py", line 20, in <module>
from .download_manager import DownloadManager, GenerateMode
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/download_manager.py", line 25, in <module>
from .file_utils import HF_DATASETS_CACHE, cached_path, get_from_cache, hash_url_to_filename
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 118, in <module>
os.makedirs(HF_MODULES_CACHE, exist_ok=True)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/.cache'
```
I've pinned the problem to `RUN pip install datasets`, and by commenting it you can actually import transformers correctly. Another workaround I've found is creating the directory and giving permissions to it directly on the Dockerfile.
```
FROM tensorflow/tensorflow:latest-gpu-jupyter
WORKDIR /root
EXPOSE 80
EXPOSE 8888
EXPOSE 6006
ENV SHELL /bin/bash
ENV PATH="/root/.local/bin:${PATH}"
ENV CUDA_CACHE_PATH="/root/cache/cuda"
ENV CUDA_CACHE_MAXSIZE="4294967296"
ENV TFHUB_CACHE_DIR="/root/cache/tfhub"
RUN pip install --upgrade pip
RUN apt update -y && apt upgrade -y
RUN pip install transformers
#Installing datasets will throw the error, try commenting and rebuilding
RUN pip install datasets
#Another workaround is creating the directory and give permissions explicitly
#RUN mkdir /.cache
#RUN chmod 777 /.cache
```
> Thanks for reporting !
> You can override the directory in which cache file are stored using for example
>
> ```
> ENV HF_HOME="/root/cache/hf_cache_home"
> ```
>
> This way both `transformers` and `datasets` will use this directory instead of the default `.cache`
can we disable caching directly? | [
-0.2601942718,
0.1537580043,
-0.0879162699,
0.1361189336,
0.0533820763,
0.0593198873,
0.6560067534,
0.1960314214,
0.1612776518,
-0.0136701129,
-0.3051158786,
-0.1683907062,
-0.0324438885,
-0.5109063387,
-0.025965713,
-0.2055932879,
0.0551736914,
-0.067634657,
-0.310154736,
-0.1253345013,
-0.0913535208,
-0.0168973021,
-0.0075821532,
0.1020796672,
-0.3513801396,
0.023547899,
0.3338410258,
-0.097983487,
0.0049277837,
-0.1136810929,
0.3865941763,
0.1387622058,
0.1959901303,
0.8908077478,
-0.0001138685,
0.3646986187,
0.1204627678,
0.0754131228,
0.086639598,
-0.2086411119,
-0.1387083083,
-0.2477506995,
-0.1201191619,
-0.0817604661,
0.0790471882,
0.0090727061,
0.0140740955,
-0.121402815,
0.6044268012,
0.3587147892,
0.2027943879,
0.4903939962,
0.0908188447,
0.1236842275,
0.2537279725,
-0.0316033736,
-0.2483435869,
-0.0738283843,
-0.124327831,
-0.2798892856,
-0.0047014267,
0.2760696113,
-0.054042194,
0.1426954567,
0.2170645595,
-0.194056645,
0.1225121394,
-0.3570999801,
-0.0412273556,
0.0453185029,
0.5151112676,
-0.0656427369,
-0.5028498769,
-0.1864658147,
-0.1189290434,
0.0584087446,
0.3026320934,
0.3046843708,
-0.0361773409,
0.2790160477,
-0.2144558281,
-0.15145123,
-0.4730089903,
0.0950545147,
-0.2394709885,
0.351374507,
0.0620448291,
0.1947924644,
-0.0911417827,
-0.0715903044,
0.6296563148,
-0.0060652182,
0.1474890113,
0.2979934514,
-0.3239393532,
0.2316237688,
0.0331778005,
-0.5658236146,
-0.3128331006,
0.0865983069,
-0.231440872,
-0.0924053714,
-0.0704432577,
0.3829042017,
-0.2021470666,
0.4120386839,
-0.3363805711,
0.7340714931,
0.3856593072,
-0.3047207892,
0.0332622603,
-0.0432148501,
-0.0374101177,
-0.0881388932,
-0.1260697246,
-0.0319222733,
0.1457728297,
0.0939133689,
-0.0984338894,
-0.0346814096,
0.0868969187,
-0.0100169135,
0.1854214221,
0.3815257847,
0.1036053821,
0.0991567299,
0.3901362121,
0.1196967959,
-0.0152243311,
0.0574717857,
-0.2500607371,
0.0720265061,
-0.0946180299,
-0.0641497225,
0.1987672001,
0.0866812393,
0.0298913214,
-0.103701137,
0.2303164899,
-0.1406199038,
0.4395030439,
-0.207735762,
0.1142413467,
0.7253698707,
0.1236807927,
0.0405826718,
0.3252631724,
-0.1411765218,
0.0385677405,
0.111526981,
-0.3354059756,
-0.192932725,
0.0483056344,
0.1385355294,
-0.1338279247,
0.2708506286,
-0.2460407317,
-0.1343727261,
0.3796409965,
-0.0594126694,
-0.038740471,
-0.256891638,
0.0189277697,
-0.1345493048,
-0.099491857,
0.2476491481,
-0.1799387485,
-0.1785383821,
-0.0476371795,
0.0107343197,
-0.0975554734,
0.4373539686,
-0.1490976214,
0.3612089157,
-0.012258294,
0.1215737909,
0.0213420298,
-0.5040406585,
-0.4507938325,
-0.065841116,
-0.0317620039,
0.055245176,
0.0770502314,
0.0080057736,
0.3263445795,
-0.2391066998,
-0.2724587917,
0.3224855661,
0.2141268104,
0.0887086391,
0.2297955155,
-0.1883957833,
-0.0167391412,
0.0299264416,
0.5327506065,
0.2355926931,
0.0445309058,
0.4013051093,
-0.1830300689,
-0.3429356217,
0.1383526623,
0.4372716844,
0.3134893775,
0.0098210583,
0.0195715223,
-0.0359986871,
-0.3422744572,
0.3768793046,
-0.1361482441,
0.1983709484,
-0.0884067491,
-0.0013438347,
-0.1373444051,
0.304296881,
-0.0974788591,
-0.0624618791,
0.1574099362,
0.0914990678,
-0.0297620445,
-0.0523539633,
0.2131537497,
0.4122339189,
0.0303781182,
0.1924374551,
-0.0138118714,
0.4103768766,
-0.2020864487,
-0.0439702198,
-0.0946269855,
-0.0713000074,
0.1517298073,
-0.1395328641,
-0.2055128068,
0.1627991349,
-0.0285274703,
0.1827243716,
-0.5095715523,
0.4273615181,
0.2366540432,
-0.0472979806,
0.0571587086,
0.1110840291,
-0.0023627228,
-0.0089512579,
-0.0438571312,
0.0467416681,
0.0703112409,
0.0665784404,
-0.0663855523,
0.1159162819,
0.2043630183,
0.0928915218,
0.0580299832,
-0.0351179801,
0.0987337977,
0.1005919948,
-0.0032763158,
-0.126206249,
0.3256448507,
-0.2848219872,
0.2149300724,
0.1594937444,
0.0941945612,
0.0378742404,
-0.0761303976,
0.1714248806,
0.3254772723,
0.3470334113,
0.2231841534,
0.0314969569,
0.0246457085,
-0.0549993254,
-0.054925397,
-0.0206401031,
-0.1116270944,
0.1299438924,
0.1952213794,
0.073209092,
0.0617153011,
0.0350542814,
-0.1838504374,
-0.27961272,
0.0911720246,
0.3946084082,
-0.3553253412,
0.1200244799,
-0.0396862142,
0.0555185117,
0.1301531494,
0.0189668089,
-0.4570339024,
-0.2215031832,
-0.2029656023,
0.4210834205,
-0.1194585636,
0.1644148082,
-0.0810747743,
0.0509673432,
0.29632622,
-0.1255414188,
-0.259331286,
0.1043352112,
0.0625971183,
0.0425716937,
0.1925005019,
-0.5198510289,
0.1900203079,
0.1750376076,
0.1842621565,
-0.0083787143,
-0.5007292628,
0.0480753779,
-0.1537053287,
0.1523055434,
-0.145580411,
0.2838714421,
0.0492252968,
-0.2909570336,
-0.0210789144,
-0.1372648031,
-0.0680155754,
-0.0453204513,
-0.0619839542,
-0.2530843019,
-0.1954329461,
-0.06982214,
-0.2933194935,
-0.4212829471,
0.1225007698,
0.3711088002,
0.2529851198,
0.4407688379,
0.1377105564,
0.0921131149,
0.269069314,
0.0994601399,
-0.0383630581,
-0.1074214876,
0.2451767027,
-0.3104767203,
-0.2563969195,
0.0066131917,
0.0111053567,
0.2837287486,
0.3374520242,
-0.3564889133,
-0.1421991289,
-0.312304616,
-0.00418738,
-0.0811960474,
0.1192050278,
0.0453978553,
-0.0257925522,
0.1307450086,
-0.1638922095,
0.0347886048,
-0.0795595497,
0.1042244807,
-0.0728222057,
0.0976094157,
0.099784337,
0.2115110159,
0.6869983673,
-0.1291377395,
0.1413398683,
0.0183090065,
0.215124324,
0.4513023198,
0.0434457809,
-0.296793431,
0.0668855831,
0.083708711,
-0.2062212527,
-0.1333540976,
0.0458997823,
-0.1497393698,
0.0206685681,
0.1178895682,
-0.0471883826,
-0.2259910256,
0.1134366393,
-0.0898844153,
0.3340996206,
0.1879189163,
0.0507018529,
-0.4434090257,
-0.1077165008,
-0.0562808998,
0.3804533482,
0.0898378268,
0.1508090794,
-0.3076764345,
-0.0904265642,
-0.2749194503,
0.0611351877,
-0.0811376795,
0.5575758219,
-0.1852125078,
0.3113375306,
-0.0447096489,
0.1809080988,
0.4595345557,
-0.2760759294,
0.0053931843,
-0.1066812649,
-0.281932056,
-0.3433836699,
-0.239083752,
-0.0859025791,
-0.0639394522,
0.1136863604,
0.1906845868,
-0.0791468024,
-0.0084777204,
-0.142874375,
-0.2193471044,
-0.1370998174,
-0.2479740083,
-0.1115663573,
-0.2691839635,
-0.4986166358,
-0.1251070201,
0.3895350695,
-0.1092314795,
-0.122588329,
0.1031750217,
-0.2260033339,
0.0671980157,
0.1904065162,
0.1915993989,
0.0266412552,
-0.0095666014,
-0.1999969333,
0.2065167427,
-0.5022633672,
0.0626923665,
0.1973261386,
-0.1263119578,
-0.3567326963,
-0.0163293462,
0.155930832,
-0.1357991099,
0.0637564138,
-0.1743563712,
-0.0275261384,
0.0254740771,
-0.050441511,
-0.071854502,
0.3104914129,
-0.0558904819,
0.1956608891,
-0.1012474,
-0.4688995779,
0.1968586147,
0.2237326354,
-0.0757482052,
0.1689157188,
0.0943679959,
-0.398968339,
0.4668301046,
0.158380568,
0.5565392375,
-0.3599163592,
0.0974434763,
0.3196150064,
0.06722451,
0.6953793764,
-0.655544579,
0.3161600232,
-0.2079333067,
-0.3527633846,
-0.1493600011,
-0.381749332,
0.1816309243,
0.0691902712,
-0.0273421574,
0.0941419378,
-0.0852651745,
0.3506407738,
0.1797597557,
0.2020633221,
0.0884776488,
-0.4448314905,
0.1528819501,
0.2294976562,
-0.2720117271,
0.3177683651,
-0.1780315787,
-0.0277536586,
-0.291852653,
0.0254853256,
-0.2747629881,
0.1161500141,
-0.2991319597,
0.5190945268,
0.1113138348,
0.0464834124,
0.2879340947,
0.2445801795,
0.2088552117,
0.2620199025,
-0.2269391567,
0.0637964681,
-0.130311504,
-0.0931611806,
-0.0392174721,
0.0066591511,
0.3359817266,
0.0596250556,
-0.0585411489,
-0.0665249303,
-0.1696171016,
-0.3609890342,
0.0174029842,
0.2294079214,
0.202417478,
0.006458113,
-0.0510127284,
-0.0119281393,
-0.3825114667,
0.0726772547,
0.1492640227,
0.0109345466,
-0.2534067929,
0.2334101796,
-0.0454860404,
-0.2722891271,
0.0967669114,
0.3703704774,
0.1194976792,
-0.1971344352,
0.559756577,
0.2043306381,
-0.2898310721,
-0.0391660072,
-0.2040650994,
0.0931313336,
-0.4541437924,
-0.0446450152,
-0.4564749897,
-0.4141295552,
-0.0188432913,
-0.4614748359,
0.3459786773,
-0.0074620107,
-0.1736587286,
-0.4079885483,
-0.3153897226,
-0.0964627713,
-0.3273632526,
-0.0001220496,
-0.0069627296,
-0.0182453487,
-0.0710389391,
0.1626551002,
-0.259177804,
-0.2372058481,
-0.3444596827,
0.006200572,
0.3342398703,
-0.2212559879,
0.0436340682,
-0.1810939014,
0.0256802011,
0.1466896087,
-0.3872323334,
-0.1846113354,
-0.2641799748,
0.1107682511,
0.2623436153,
-0.3276491165,
-0.0680266991,
-0.3471539915,
-0.0914151818,
-0.1358476281,
0.1620069891,
0.2643098831,
-0.1182676777,
0.1854375303,
-0.1474617124,
0.2718784213,
-0.0195026137,
0.1773811579,
-0.0268761665,
0.0644539967,
0.0384419337,
0.38233459,
0.132679373,
0.0603220388,
-0.622834146,
0.1132024899,
0.0375845246,
0.1517112851,
0.3931129575,
-0.3460861444,
0.3375229537,
-0.0362393558,
0.0605528466,
-0.1529015601,
-0.3420252502,
-0.0691743866,
0.1160456464,
0.1642259508,
0.0276591815,
-0.0963030979,
0.0548699945,
0.0327197909,
0.098761633,
0.2690494955,
0.2619536817,
-0.040633671,
-0.0124456342,
0.3720313609,
0.6341761947,
-0.2661921084,
0.2063339055,
0.2476852983,
-0.2334973961,
0.1992757618,
0.2232562602,
-0.0020315622,
0.0001360713,
0.1990370303,
0.1524527073,
-0.0540716387,
0.0205249526,
-0.1834712625,
0.3360916078,
-0.2124367952,
-0.1275314838,
-0.0399634242,
0.1181048453,
0.2308099568,
-0.0397054181,
-0.324921906,
0.0261874199,
-0.0104646664,
-0.2011927664,
0.1950682104,
-0.1402629316,
0.0443250127,
0.0428521372,
0.2038141042,
0.0132805007,
-0.2877650559,
0.1271376908,
-0.4779741764,
-0.305870384,
0.364051044,
-0.1340832561,
0.0985850021,
0.0616866611,
0.2978545427,
-0.2202401012,
-0.1968926489,
0.0838606283,
0.10720516,
-0.1116497442,
-0.0825736374,
0.0934758037,
0.5431834459,
0.2893398404,
0.159965694,
0.2631548345,
0.0980714783,
-0.0594068468,
-0.0906575993,
0.3076895177,
-0.2290301472,
0.1799557656,
0.1197363958,
0.0925129279,
-0.212679714,
-0.280603677,
0.0932360515,
0.0901549384,
-0.0003150952,
0.2890576422,
-0.2614881396,
-0.2587867677,
0.0748262182,
-0.0476369895,
-0.1973498464,
0.1740466207,
0.8346322775,
-0.1961343884,
0.2542149425,
-0.0428734384,
0.0120078884,
-0.1633708626,
0.3853301704,
0.3202113211,
0.0207923129,
-0.2639084458,
0.299623549,
-0.2990523279,
0.1200066581,
-0.1916532367,
-0.0139932754,
0.1818583757,
0.1701569706,
-0.061395213,
-0.0301432889,
0.1060567945,
-0.4536414444,
-0.0028724272,
0.0240875073,
-0.2195231766,
-0.1286706477,
0.121633403,
0.029588135,
0.0657106712,
-0.3943276703,
0.0754954666,
0.0724964514,
0.0972358733,
-0.3166574538,
0.0166931897,
0.2151393145,
0.252650857,
0.2539836764,
0.2079444379,
0.3316451013,
0.070369333,
0.0958233252,
-0.3994336426,
-0.3495732546,
-0.3445079029,
0.0160422362,
-0.156950593,
0.5965114236,
-0.2879592478,
-0.5061557889,
-0.3620114625,
0.0960138664,
0.10511785,
-0.2808552682,
-0.2017897815,
0.1834329069,
-0.4025208056,
0.3427906036,
0.2535628974,
-0.0980608687,
0.2448209673,
0.3333666325,
-0.3015104234,
-0.3771390319,
0.5819666386,
-0.4455088675,
-0.4940266907,
0.2248335034,
0.0352741815,
-0.1100793853,
-0.0267486125,
-0.4583680332,
0.2484730035,
0.1376976967,
-0.3479514122,
-0.3160352111,
0.0086387312,
0.1702649444,
0.2086644918,
-0.055956617,
0.1456702054,
-0.0756857544,
-0.3460895121,
0.118468076,
-0.0319123529
] |
https://github.com/huggingface/datasets/issues/1581 | Installing datasets and transformers in a tensorflow docker image throws Permission Error on 'import transformers' | Hi ! Unfortunately no since we need this directory to load datasets.
When you load a dataset, it downloads the raw data files in the cache directory inside <cache_dir>/downloads. Then it builds the dataset and saves it as arrow data inside <cache_dir>/<dataset_name>.
However you can specify the directory of your choice, and it can be a temporary directory if you want to clean everything up at one point. | I am using a docker container, based on latest tensorflow-gpu image, to run transformers and datasets (4.0.1 and 1.1.3 respectively - Dockerfile attached below). Importing transformers throws a Permission Error to access `/.cache`:
```
$ docker run --gpus=all --rm -it -u $(id -u):$(id -g) -v $(pwd)/data:/root/data -v $(pwd):/root -v $(pwd)/models/:/root/models -v $(pwd)/saved_models/:/root/saved_models -e "HOST_HOSTNAME=$(hostname)" hf-error:latest /bin/bash
________ _______________
___ __/__________________________________ ____/__ /________ __
__ / _ _ \_ __ \_ ___/ __ \_ ___/_ /_ __ /_ __ \_ | /| / /
_ / / __/ / / /(__ )/ /_/ / / _ __/ _ / / /_/ /_ |/ |/ /
/_/ \___//_/ /_//____/ \____//_/ /_/ /_/ \____/____/|__/
You are running this container as user with ID 1000 and group 1000,
which should map to the ID and group for your user on the Docker host. Great!
tf-docker /root > python
Python 3.6.9 (default, Oct 8 2020, 12:12:24)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import transformers
2020-12-15 23:53:21.165827: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/transformers/__init__.py", line 22, in <module>
from .integrations import ( # isort:skip
File "/usr/local/lib/python3.6/dist-packages/transformers/integrations.py", line 5, in <module>
from .trainer_utils import EvaluationStrategy
File "/usr/local/lib/python3.6/dist-packages/transformers/trainer_utils.py", line 25, in <module>
from .file_utils import is_tf_available, is_torch_available, is_torch_tpu_available
File "/usr/local/lib/python3.6/dist-packages/transformers/file_utils.py", line 88, in <module>
import datasets # noqa: F401
File "/usr/local/lib/python3.6/dist-packages/datasets/__init__.py", line 26, in <module>
from .arrow_dataset import Dataset, concatenate_datasets
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_dataset.py", line 40, in <module>
from .arrow_reader import ArrowReader
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 31, in <module>
from .utils import cached_path, logging
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/__init__.py", line 20, in <module>
from .download_manager import DownloadManager, GenerateMode
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/download_manager.py", line 25, in <module>
from .file_utils import HF_DATASETS_CACHE, cached_path, get_from_cache, hash_url_to_filename
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 118, in <module>
os.makedirs(HF_MODULES_CACHE, exist_ok=True)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/.cache'
```
I've pinned the problem to `RUN pip install datasets`, and by commenting it you can actually import transformers correctly. Another workaround I've found is creating the directory and giving permissions to it directly on the Dockerfile.
```
FROM tensorflow/tensorflow:latest-gpu-jupyter
WORKDIR /root
EXPOSE 80
EXPOSE 8888
EXPOSE 6006
ENV SHELL /bin/bash
ENV PATH="/root/.local/bin:${PATH}"
ENV CUDA_CACHE_PATH="/root/cache/cuda"
ENV CUDA_CACHE_MAXSIZE="4294967296"
ENV TFHUB_CACHE_DIR="/root/cache/tfhub"
RUN pip install --upgrade pip
RUN apt update -y && apt upgrade -y
RUN pip install transformers
#Installing datasets will throw the error, try commenting and rebuilding
RUN pip install datasets
#Another workaround is creating the directory and give permissions explicitly
#RUN mkdir /.cache
#RUN chmod 777 /.cache
```
| 68 | Installing datasets and transformers in a tensorflow docker image throws Permission Error on 'import transformers'
I am using a docker container, based on latest tensorflow-gpu image, to run transformers and datasets (4.0.1 and 1.1.3 respectively - Dockerfile attached below). Importing transformers throws a Permission Error to access `/.cache`:
```
$ docker run --gpus=all --rm -it -u $(id -u):$(id -g) -v $(pwd)/data:/root/data -v $(pwd):/root -v $(pwd)/models/:/root/models -v $(pwd)/saved_models/:/root/saved_models -e "HOST_HOSTNAME=$(hostname)" hf-error:latest /bin/bash
________ _______________
___ __/__________________________________ ____/__ /________ __
__ / _ _ \_ __ \_ ___/ __ \_ ___/_ /_ __ /_ __ \_ | /| / /
_ / / __/ / / /(__ )/ /_/ / / _ __/ _ / / /_/ /_ |/ |/ /
/_/ \___//_/ /_//____/ \____//_/ /_/ /_/ \____/____/|__/
You are running this container as user with ID 1000 and group 1000,
which should map to the ID and group for your user on the Docker host. Great!
tf-docker /root > python
Python 3.6.9 (default, Oct 8 2020, 12:12:24)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import transformers
2020-12-15 23:53:21.165827: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/transformers/__init__.py", line 22, in <module>
from .integrations import ( # isort:skip
File "/usr/local/lib/python3.6/dist-packages/transformers/integrations.py", line 5, in <module>
from .trainer_utils import EvaluationStrategy
File "/usr/local/lib/python3.6/dist-packages/transformers/trainer_utils.py", line 25, in <module>
from .file_utils import is_tf_available, is_torch_available, is_torch_tpu_available
File "/usr/local/lib/python3.6/dist-packages/transformers/file_utils.py", line 88, in <module>
import datasets # noqa: F401
File "/usr/local/lib/python3.6/dist-packages/datasets/__init__.py", line 26, in <module>
from .arrow_dataset import Dataset, concatenate_datasets
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_dataset.py", line 40, in <module>
from .arrow_reader import ArrowReader
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_reader.py", line 31, in <module>
from .utils import cached_path, logging
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/__init__.py", line 20, in <module>
from .download_manager import DownloadManager, GenerateMode
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/download_manager.py", line 25, in <module>
from .file_utils import HF_DATASETS_CACHE, cached_path, get_from_cache, hash_url_to_filename
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/file_utils.py", line 118, in <module>
os.makedirs(HF_MODULES_CACHE, exist_ok=True)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/.cache'
```
I've pinned the problem to `RUN pip install datasets`, and by commenting it you can actually import transformers correctly. Another workaround I've found is creating the directory and giving permissions to it directly on the Dockerfile.
```
FROM tensorflow/tensorflow:latest-gpu-jupyter
WORKDIR /root
EXPOSE 80
EXPOSE 8888
EXPOSE 6006
ENV SHELL /bin/bash
ENV PATH="/root/.local/bin:${PATH}"
ENV CUDA_CACHE_PATH="/root/cache/cuda"
ENV CUDA_CACHE_MAXSIZE="4294967296"
ENV TFHUB_CACHE_DIR="/root/cache/tfhub"
RUN pip install --upgrade pip
RUN apt update -y && apt upgrade -y
RUN pip install transformers
#Installing datasets will throw the error, try commenting and rebuilding
RUN pip install datasets
#Another workaround is creating the directory and give permissions explicitly
#RUN mkdir /.cache
#RUN chmod 777 /.cache
```
Hi ! Unfortunately no since we need this directory to load datasets.
When you load a dataset, it downloads the raw data files in the cache directory inside <cache_dir>/downloads. Then it builds the dataset and saves it as arrow data inside <cache_dir>/<dataset_name>.
However you can specify the directory of your choice, and it can be a temporary directory if you want to clean everything up at one point. | [
-0.2601942718,
0.1537580043,
-0.0879162699,
0.1361189336,
0.0533820763,
0.0593198873,
0.6560067534,
0.1960314214,
0.1612776518,
-0.0136701129,
-0.3051158786,
-0.1683907062,
-0.0324438885,
-0.5109063387,
-0.025965713,
-0.2055932879,
0.0551736914,
-0.067634657,
-0.310154736,
-0.1253345013,
-0.0913535208,
-0.0168973021,
-0.0075821532,
0.1020796672,
-0.3513801396,
0.023547899,
0.3338410258,
-0.097983487,
0.0049277837,
-0.1136810929,
0.3865941763,
0.1387622058,
0.1959901303,
0.8908077478,
-0.0001138685,
0.3646986187,
0.1204627678,
0.0754131228,
0.086639598,
-0.2086411119,
-0.1387083083,
-0.2477506995,
-0.1201191619,
-0.0817604661,
0.0790471882,
0.0090727061,
0.0140740955,
-0.121402815,
0.6044268012,
0.3587147892,
0.2027943879,
0.4903939962,
0.0908188447,
0.1236842275,
0.2537279725,
-0.0316033736,
-0.2483435869,
-0.0738283843,
-0.124327831,
-0.2798892856,
-0.0047014267,
0.2760696113,
-0.054042194,
0.1426954567,
0.2170645595,
-0.194056645,
0.1225121394,
-0.3570999801,
-0.0412273556,
0.0453185029,
0.5151112676,
-0.0656427369,
-0.5028498769,
-0.1864658147,
-0.1189290434,
0.0584087446,
0.3026320934,
0.3046843708,
-0.0361773409,
0.2790160477,
-0.2144558281,
-0.15145123,
-0.4730089903,
0.0950545147,
-0.2394709885,
0.351374507,
0.0620448291,
0.1947924644,
-0.0911417827,
-0.0715903044,
0.6296563148,
-0.0060652182,
0.1474890113,
0.2979934514,
-0.3239393532,
0.2316237688,
0.0331778005,
-0.5658236146,
-0.3128331006,
0.0865983069,
-0.231440872,
-0.0924053714,
-0.0704432577,
0.3829042017,
-0.2021470666,
0.4120386839,
-0.3363805711,
0.7340714931,
0.3856593072,
-0.3047207892,
0.0332622603,
-0.0432148501,
-0.0374101177,
-0.0881388932,
-0.1260697246,
-0.0319222733,
0.1457728297,
0.0939133689,
-0.0984338894,
-0.0346814096,
0.0868969187,
-0.0100169135,
0.1854214221,
0.3815257847,
0.1036053821,
0.0991567299,
0.3901362121,
0.1196967959,
-0.0152243311,
0.0574717857,
-0.2500607371,
0.0720265061,
-0.0946180299,
-0.0641497225,
0.1987672001,
0.0866812393,
0.0298913214,
-0.103701137,
0.2303164899,
-0.1406199038,
0.4395030439,
-0.207735762,
0.1142413467,
0.7253698707,
0.1236807927,
0.0405826718,
0.3252631724,
-0.1411765218,
0.0385677405,
0.111526981,
-0.3354059756,
-0.192932725,
0.0483056344,
0.1385355294,
-0.1338279247,
0.2708506286,
-0.2460407317,
-0.1343727261,
0.3796409965,
-0.0594126694,
-0.038740471,
-0.256891638,
0.0189277697,
-0.1345493048,
-0.099491857,
0.2476491481,
-0.1799387485,
-0.1785383821,
-0.0476371795,
0.0107343197,
-0.0975554734,
0.4373539686,
-0.1490976214,
0.3612089157,
-0.012258294,
0.1215737909,
0.0213420298,
-0.5040406585,
-0.4507938325,
-0.065841116,
-0.0317620039,
0.055245176,
0.0770502314,
0.0080057736,
0.3263445795,
-0.2391066998,
-0.2724587917,
0.3224855661,
0.2141268104,
0.0887086391,
0.2297955155,
-0.1883957833,
-0.0167391412,
0.0299264416,
0.5327506065,
0.2355926931,
0.0445309058,
0.4013051093,
-0.1830300689,
-0.3429356217,
0.1383526623,
0.4372716844,
0.3134893775,
0.0098210583,
0.0195715223,
-0.0359986871,
-0.3422744572,
0.3768793046,
-0.1361482441,
0.1983709484,
-0.0884067491,
-0.0013438347,
-0.1373444051,
0.304296881,
-0.0974788591,
-0.0624618791,
0.1574099362,
0.0914990678,
-0.0297620445,
-0.0523539633,
0.2131537497,
0.4122339189,
0.0303781182,
0.1924374551,
-0.0138118714,
0.4103768766,
-0.2020864487,
-0.0439702198,
-0.0946269855,
-0.0713000074,
0.1517298073,
-0.1395328641,
-0.2055128068,
0.1627991349,
-0.0285274703,
0.1827243716,
-0.5095715523,
0.4273615181,
0.2366540432,
-0.0472979806,
0.0571587086,
0.1110840291,
-0.0023627228,
-0.0089512579,
-0.0438571312,
0.0467416681,
0.0703112409,
0.0665784404,
-0.0663855523,
0.1159162819,
0.2043630183,
0.0928915218,
0.0580299832,
-0.0351179801,
0.0987337977,
0.1005919948,
-0.0032763158,
-0.126206249,
0.3256448507,
-0.2848219872,
0.2149300724,
0.1594937444,
0.0941945612,
0.0378742404,
-0.0761303976,
0.1714248806,
0.3254772723,
0.3470334113,
0.2231841534,
0.0314969569,
0.0246457085,
-0.0549993254,
-0.054925397,
-0.0206401031,
-0.1116270944,
0.1299438924,
0.1952213794,
0.073209092,
0.0617153011,
0.0350542814,
-0.1838504374,
-0.27961272,
0.0911720246,
0.3946084082,
-0.3553253412,
0.1200244799,
-0.0396862142,
0.0555185117,
0.1301531494,
0.0189668089,
-0.4570339024,
-0.2215031832,
-0.2029656023,
0.4210834205,
-0.1194585636,
0.1644148082,
-0.0810747743,
0.0509673432,
0.29632622,
-0.1255414188,
-0.259331286,
0.1043352112,
0.0625971183,
0.0425716937,
0.1925005019,
-0.5198510289,
0.1900203079,
0.1750376076,
0.1842621565,
-0.0083787143,
-0.5007292628,
0.0480753779,
-0.1537053287,
0.1523055434,
-0.145580411,
0.2838714421,
0.0492252968,
-0.2909570336,
-0.0210789144,
-0.1372648031,
-0.0680155754,
-0.0453204513,
-0.0619839542,
-0.2530843019,
-0.1954329461,
-0.06982214,
-0.2933194935,
-0.4212829471,
0.1225007698,
0.3711088002,
0.2529851198,
0.4407688379,
0.1377105564,
0.0921131149,
0.269069314,
0.0994601399,
-0.0383630581,
-0.1074214876,
0.2451767027,
-0.3104767203,
-0.2563969195,
0.0066131917,
0.0111053567,
0.2837287486,
0.3374520242,
-0.3564889133,
-0.1421991289,
-0.312304616,
-0.00418738,
-0.0811960474,
0.1192050278,
0.0453978553,
-0.0257925522,
0.1307450086,
-0.1638922095,
0.0347886048,
-0.0795595497,
0.1042244807,
-0.0728222057,
0.0976094157,
0.099784337,
0.2115110159,
0.6869983673,
-0.1291377395,
0.1413398683,
0.0183090065,
0.215124324,
0.4513023198,
0.0434457809,
-0.296793431,
0.0668855831,
0.083708711,
-0.2062212527,
-0.1333540976,
0.0458997823,
-0.1497393698,
0.0206685681,
0.1178895682,
-0.0471883826,
-0.2259910256,
0.1134366393,
-0.0898844153,
0.3340996206,
0.1879189163,
0.0507018529,
-0.4434090257,
-0.1077165008,
-0.0562808998,
0.3804533482,
0.0898378268,
0.1508090794,
-0.3076764345,
-0.0904265642,
-0.2749194503,
0.0611351877,
-0.0811376795,
0.5575758219,
-0.1852125078,
0.3113375306,
-0.0447096489,
0.1809080988,
0.4595345557,
-0.2760759294,
0.0053931843,
-0.1066812649,
-0.281932056,
-0.3433836699,
-0.239083752,
-0.0859025791,
-0.0639394522,
0.1136863604,
0.1906845868,
-0.0791468024,
-0.0084777204,
-0.142874375,
-0.2193471044,
-0.1370998174,
-0.2479740083,
-0.1115663573,
-0.2691839635,
-0.4986166358,
-0.1251070201,
0.3895350695,
-0.1092314795,
-0.122588329,
0.1031750217,
-0.2260033339,
0.0671980157,
0.1904065162,
0.1915993989,
0.0266412552,
-0.0095666014,
-0.1999969333,
0.2065167427,
-0.5022633672,
0.0626923665,
0.1973261386,
-0.1263119578,
-0.3567326963,
-0.0163293462,
0.155930832,
-0.1357991099,
0.0637564138,
-0.1743563712,
-0.0275261384,
0.0254740771,
-0.050441511,
-0.071854502,
0.3104914129,
-0.0558904819,
0.1956608891,
-0.1012474,
-0.4688995779,
0.1968586147,
0.2237326354,
-0.0757482052,
0.1689157188,
0.0943679959,
-0.398968339,
0.4668301046,
0.158380568,
0.5565392375,
-0.3599163592,
0.0974434763,
0.3196150064,
0.06722451,
0.6953793764,
-0.655544579,
0.3161600232,
-0.2079333067,
-0.3527633846,
-0.1493600011,
-0.381749332,
0.1816309243,
0.0691902712,
-0.0273421574,
0.0941419378,
-0.0852651745,
0.3506407738,
0.1797597557,
0.2020633221,
0.0884776488,
-0.4448314905,
0.1528819501,
0.2294976562,
-0.2720117271,
0.3177683651,
-0.1780315787,
-0.0277536586,
-0.291852653,
0.0254853256,
-0.2747629881,
0.1161500141,
-0.2991319597,
0.5190945268,
0.1113138348,
0.0464834124,
0.2879340947,
0.2445801795,
0.2088552117,
0.2620199025,
-0.2269391567,
0.0637964681,
-0.130311504,
-0.0931611806,
-0.0392174721,
0.0066591511,
0.3359817266,
0.0596250556,
-0.0585411489,
-0.0665249303,
-0.1696171016,
-0.3609890342,
0.0174029842,
0.2294079214,
0.202417478,
0.006458113,
-0.0510127284,
-0.0119281393,
-0.3825114667,
0.0726772547,
0.1492640227,
0.0109345466,
-0.2534067929,
0.2334101796,
-0.0454860404,
-0.2722891271,
0.0967669114,
0.3703704774,
0.1194976792,
-0.1971344352,
0.559756577,
0.2043306381,
-0.2898310721,
-0.0391660072,
-0.2040650994,
0.0931313336,
-0.4541437924,
-0.0446450152,
-0.4564749897,
-0.4141295552,
-0.0188432913,
-0.4614748359,
0.3459786773,
-0.0074620107,
-0.1736587286,
-0.4079885483,
-0.3153897226,
-0.0964627713,
-0.3273632526,
-0.0001220496,
-0.0069627296,
-0.0182453487,
-0.0710389391,
0.1626551002,
-0.259177804,
-0.2372058481,
-0.3444596827,
0.006200572,
0.3342398703,
-0.2212559879,
0.0436340682,
-0.1810939014,
0.0256802011,
0.1466896087,
-0.3872323334,
-0.1846113354,
-0.2641799748,
0.1107682511,
0.2623436153,
-0.3276491165,
-0.0680266991,
-0.3471539915,
-0.0914151818,
-0.1358476281,
0.1620069891,
0.2643098831,
-0.1182676777,
0.1854375303,
-0.1474617124,
0.2718784213,
-0.0195026137,
0.1773811579,
-0.0268761665,
0.0644539967,
0.0384419337,
0.38233459,
0.132679373,
0.0603220388,
-0.622834146,
0.1132024899,
0.0375845246,
0.1517112851,
0.3931129575,
-0.3460861444,
0.3375229537,
-0.0362393558,
0.0605528466,
-0.1529015601,
-0.3420252502,
-0.0691743866,
0.1160456464,
0.1642259508,
0.0276591815,
-0.0963030979,
0.0548699945,
0.0327197909,
0.098761633,
0.2690494955,
0.2619536817,
-0.040633671,
-0.0124456342,
0.3720313609,
0.6341761947,
-0.2661921084,
0.2063339055,
0.2476852983,
-0.2334973961,
0.1992757618,
0.2232562602,
-0.0020315622,
0.0001360713,
0.1990370303,
0.1524527073,
-0.0540716387,
0.0205249526,
-0.1834712625,
0.3360916078,
-0.2124367952,
-0.1275314838,
-0.0399634242,
0.1181048453,
0.2308099568,
-0.0397054181,
-0.324921906,
0.0261874199,
-0.0104646664,
-0.2011927664,
0.1950682104,
-0.1402629316,
0.0443250127,
0.0428521372,
0.2038141042,
0.0132805007,
-0.2877650559,
0.1271376908,
-0.4779741764,
-0.305870384,
0.364051044,
-0.1340832561,
0.0985850021,
0.0616866611,
0.2978545427,
-0.2202401012,
-0.1968926489,
0.0838606283,
0.10720516,
-0.1116497442,
-0.0825736374,
0.0934758037,
0.5431834459,
0.2893398404,
0.159965694,
0.2631548345,
0.0980714783,
-0.0594068468,
-0.0906575993,
0.3076895177,
-0.2290301472,
0.1799557656,
0.1197363958,
0.0925129279,
-0.212679714,
-0.280603677,
0.0932360515,
0.0901549384,
-0.0003150952,
0.2890576422,
-0.2614881396,
-0.2587867677,
0.0748262182,
-0.0476369895,
-0.1973498464,
0.1740466207,
0.8346322775,
-0.1961343884,
0.2542149425,
-0.0428734384,
0.0120078884,
-0.1633708626,
0.3853301704,
0.3202113211,
0.0207923129,
-0.2639084458,
0.299623549,
-0.2990523279,
0.1200066581,
-0.1916532367,
-0.0139932754,
0.1818583757,
0.1701569706,
-0.061395213,
-0.0301432889,
0.1060567945,
-0.4536414444,
-0.0028724272,
0.0240875073,
-0.2195231766,
-0.1286706477,
0.121633403,
0.029588135,
0.0657106712,
-0.3943276703,
0.0754954666,
0.0724964514,
0.0972358733,
-0.3166574538,
0.0166931897,
0.2151393145,
0.252650857,
0.2539836764,
0.2079444379,
0.3316451013,
0.070369333,
0.0958233252,
-0.3994336426,
-0.3495732546,
-0.3445079029,
0.0160422362,
-0.156950593,
0.5965114236,
-0.2879592478,
-0.5061557889,
-0.3620114625,
0.0960138664,
0.10511785,
-0.2808552682,
-0.2017897815,
0.1834329069,
-0.4025208056,
0.3427906036,
0.2535628974,
-0.0980608687,
0.2448209673,
0.3333666325,
-0.3015104234,
-0.3771390319,
0.5819666386,
-0.4455088675,
-0.4940266907,
0.2248335034,
0.0352741815,
-0.1100793853,
-0.0267486125,
-0.4583680332,
0.2484730035,
0.1376976967,
-0.3479514122,
-0.3160352111,
0.0086387312,
0.1702649444,
0.2086644918,
-0.055956617,
0.1456702054,
-0.0756857544,
-0.3460895121,
0.118468076,
-0.0319123529
] |
https://github.com/huggingface/datasets/issues/1541 | connection issue while downloading data | could you tell me how I can avoid download, by pre-downloading the data first, put them in a folder so the code does not try to redownload? could you tell me the path to put the downloaded data, and how to do it? thanks
@lhoestq | Hi
I am running my codes on google cloud, and I am getting this error resulting in the failure of the codes when trying to download the data, could you assist me to solve this? also as a temporary solution, could you tell me how I can increase the number of retries and timeout to at least let the models run for now. thanks
```
Traceback (most recent call last):
File "finetune_t5_trainer.py", line 361, in <module>
main()
File "finetune_t5_trainer.py", line 269, in main
add_prefix=False if training_args.train_adapters else True)
File "/workdir/seq2seq/data/tasks.py", line 70, in get_dataset
dataset = self.load_dataset(split=split)
File "/workdir/seq2seq/data/tasks.py", line 306, in load_dataset
return datasets.load_dataset('glue', 'cola', split=split)
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 0x7f47db511e80>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)'))
``` | 45 | connection issue while downloading data
Hi
I am running my codes on google cloud, and I am getting this error resulting in the failure of the codes when trying to download the data, could you assist me to solve this? also as a temporary solution, could you tell me how I can increase the number of retries and timeout to at least let the models run for now. thanks
```
Traceback (most recent call last):
File "finetune_t5_trainer.py", line 361, in <module>
main()
File "finetune_t5_trainer.py", line 269, in main
add_prefix=False if training_args.train_adapters else True)
File "/workdir/seq2seq/data/tasks.py", line 70, in get_dataset
dataset = self.load_dataset(split=split)
File "/workdir/seq2seq/data/tasks.py", line 306, in load_dataset
return datasets.load_dataset('glue', 'cola', split=split)
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 0x7f47db511e80>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)'))
```
could you tell me how I can avoid download, by pre-downloading the data first, put them in a folder so the code does not try to redownload? could you tell me the path to put the downloaded data, and how to do it? thanks
@lhoestq | [
-0.2348406166,
-0.0264184196,
-0.1684959531,
0.3393735886,
0.4391575158,
-0.1407122761,
0.1563981771,
0.3509826064,
-0.2138077319,
0.0685085803,
-0.0208969619,
-0.1096859202,
0.0704353005,
0.536991179,
-0.1515040547,
-0.2388877273,
-0.1877328008,
0.0280614402,
-0.2314401865,
0.0420349725,
-0.1295739263,
0.2590336502,
-0.0621022955,
0.1730601341,
0.0358290151,
-0.1131440848,
0.1226591393,
0.1459690332,
-0.2801614702,
-0.3838598728,
0.1542088836,
0.1745482832,
-0.0517696179,
0.2062221467,
-0.0001088944,
0.1076902151,
0.3079466522,
-0.1070470065,
-0.2203331292,
-0.155958578,
0.0400471538,
0.0956174582,
0.1934549659,
-0.0438331813,
-0.1365974396,
0.434664011,
0.0030509143,
0.0237639323,
0.4515212476,
0.4471636117,
0.2572606206,
0.1820832789,
0.3130957484,
-0.1857014,
0.0406046584,
-0.4782784283,
0.0231447686,
0.3593070209,
0.2628660798,
-0.2473661453,
0.2174867243,
0.1215848103,
0.0678003132,
-0.1103274971,
0.0881749243,
-0.0993105322,
0.0909343213,
-0.3702736199,
0.0434349738,
0.1779975295,
0.6764321923,
0.0420954525,
-0.1345540434,
0.2067837417,
-0.0563100241,
-0.2022062689,
0.3282392919,
-0.0293239988,
-0.1838057041,
0.1603697389,
-0.045853395,
-0.0682924092,
-0.3555371165,
0.2799239159,
-0.0877682194,
0.0889925063,
0.0597959459,
0.1290601343,
-0.0441389121,
-0.0850264803,
0.1178375259,
0.119888626,
-0.0155313099,
-0.0139375273,
-0.4044619799,
-0.0382159203,
-0.0493908338,
-0.164900288,
0.0893065408,
0.19169873,
0.3861719668,
-0.1656157821,
0.1851051301,
0.1951489896,
0.3030421436,
0.0251456592,
-0.1535610706,
0.2802621126,
0.4853327274,
0.3582324088,
0.1091378778,
-0.1168527901,
-0.0793484449,
-0.4436264932,
-0.1070654392,
0.1931962371,
0.1481756568,
-0.1713294983,
-0.2580230832,
0.1838608682,
-0.1554704607,
0.224350825,
0.1914637834,
0.4051600993,
-0.2933757901,
-0.1206313297,
0.2053275853,
0.0556205399,
-0.134656921,
-0.2475842685,
-0.1776150316,
0.127014339,
0.0032318414,
-0.1961535066,
0.112988174,
-0.1806074083,
0.3181098402,
-0.1354435533,
0.1654636115,
-0.154795751,
-0.0770797506,
-0.3587573767,
-0.4265532792,
0.3428646922,
-0.0515848175,
-0.1006183475,
0.1217815056,
-0.0271782167,
0.1396224648,
-0.1921748072,
-0.2594860494,
-0.4317109287,
-0.2148143202,
0.3007486761,
0.0068478286,
-0.0460897647,
-0.0009697652,
-0.1341414005,
0.163511619,
-0.3907245398,
0.0341527238,
-0.3428097069,
0.0167954676,
-0.3032234013,
0.267264396,
0.5000351071,
-0.482247889,
0.0011324199,
-0.0824276507,
-0.2504618764,
0.191406101,
0.2989631891,
-0.2437186539,
0.1051214784,
-0.153578788,
0.0678502843,
0.3929644525,
-0.3507178724,
-0.4748891294,
0.3805268705,
-0.1470364481,
-0.2910524011,
-0.0379411615,
0.0643645898,
0.2132604122,
0.0781290382,
0.143229723,
0.301890552,
-0.0660441592,
-0.2896081209,
-0.276575774,
-0.2182384729,
0.085339509,
0.4488561451,
0.3002038598,
0.036587432,
0.3032761514,
-0.3245083392,
-0.0462649502,
0.0777713805,
0.0712761581,
0.3233809173,
0.344900012,
0.1176355407,
-0.0203551818,
0.3761107028,
-0.5498912334,
0.1730107069,
-0.4278171062,
0.2051831931,
-0.3752171099,
0.1459922343,
-0.1822524965,
-0.0354659259,
-0.1066940799,
-0.044170022,
0.2470875382,
-0.3118994534,
0.0967385545,
0.1461652666,
0.1997207552,
0.4978627563,
-0.2475583106,
0.1445532292,
-0.0677044913,
0.5404032469,
-0.3357788622,
-0.2070757151,
0.3209986091,
-0.2871186435,
0.2573587596,
-0.0747271404,
-0.2176730037,
0.3465881944,
-0.2453761101,
0.3602873981,
0.0862293169,
0.2653054595,
0.1509157121,
-0.1417223662,
-0.0060183234,
0.2202347219,
0.3463455737,
-0.1375163645,
0.2603260577,
0.2672843933,
0.0849164948,
0.1005877182,
0.1340837032,
0.1851222962,
0.2902145386,
0.0554238223,
-0.0036836322,
0.1190353259,
0.2799324393,
0.1297676116,
0.1541453004,
-0.2395039052,
-0.3208916783,
0.030442223,
0.1874472201,
-0.1364736557,
0.0050891601,
0.0955938026,
0.3231286407,
-0.2867569327,
-0.1466930211,
-0.0483226404,
0.3849932253,
-0.0679269657,
-0.218110472,
0.3391188383,
0.1424877048,
-0.35145244,
0.3687649369,
-0.0148209687,
0.1530312449,
0.4343568087,
0.019793449,
-0.1724937409,
-0.2720384002,
-0.5410823822,
0.1727050394,
0.5017489791,
-0.3676474988,
0.0284740161,
-0.0609806217,
-0.1288915128,
0.1670017987,
0.1663615853,
-0.2979946434,
-0.302639991,
0.0902757645,
0.138695851,
-0.1017940938,
0.0400374159,
0.0291712992,
0.2307891399,
0.3060730696,
-0.0174340643,
-0.1619217545,
-0.293936491,
-0.1299987137,
0.0691568404,
0.0803925395,
-0.2212888002,
0.14646402,
-0.0845270008,
-0.0798362494,
-0.1683975309,
-0.1975151747,
0.0711754709,
0.0564200431,
0.3333258629,
0.378125906,
0.4529694915,
-0.0027464645,
-0.0465431996,
0.2666623294,
-0.2010593861,
-0.1093118936,
0.0565121919,
-0.0399199352,
-0.0880909339,
-0.1407162547,
-0.4213066995,
-0.6614140272,
-0.2270001322,
-0.0187723581,
-0.1047683358,
0.2029765546,
0.2386620343,
0.1687424332,
0.0918303579,
0.2343427837,
-0.0431978293,
-0.3158206642,
-0.4506628811,
0.258895725,
-0.1679925621,
-0.2692595422,
0.1085925624,
0.318767935,
0.4288700521,
-0.0719963163,
-0.4718375206,
-0.2920771837,
-0.0196219906,
0.1315218359,
-0.2031793445,
-0.1841822267,
0.3288871944,
-0.1671674699,
-0.1352886707,
0.0198434982,
0.148632437,
0.3061670661,
0.3233553171,
0.1663649827,
-0.0350657366,
0.61655581,
-0.1657440215,
0.3962854147,
0.1998923272,
0.0060246093,
0.277749002,
-0.0252537075,
-0.0822134838,
-0.0938236862,
-0.0131384442,
0.3243090808,
-0.1069095582,
-0.2881341279,
0.1485265791,
-0.4488641918,
0.0011853521,
-0.4261850417,
-0.0540869869,
-0.4263955951,
-0.1368150413,
-0.0879222825,
0.0861333311,
0.2426281273,
-0.0162406657,
-0.0412734263,
0.0788467228,
0.0230742842,
0.0587048791,
0.3784456849,
-0.0227945726,
0.0318991542,
0.213758558,
-0.2503308058,
-0.3188169897,
0.3502262831,
0.0155303963,
0.3136873245,
-0.4380698204,
0.2704894245,
0.0670153126,
-0.1444278359,
0.513023138,
-0.4947700799,
0.0663479865,
-0.0227244906,
0.0036187593,
0.2418508828,
-0.2858090699,
-0.1581924856,
-0.2280466706,
0.0677399263,
0.0179836322,
-0.4608238041,
0.0354515016,
0.0661663637,
-0.2189418226,
-0.2123013735,
-0.0013238844,
-0.0605362207,
-0.4850713909,
-0.1683727205,
0.0531065427,
-0.0144177964,
0.2999939322,
-0.0625382885,
-0.0462604165,
0.214088425,
0.0120988563,
0.0838265792,
0.0084544737,
0.0792363286,
-0.2319022268,
0.2287389487,
0.1301506162,
-0.2059685737,
0.4853297472,
0.4809722006,
0.2270238847,
-0.1693282872,
0.1286837459,
0.032968875,
0.1585354954,
0.2000285834,
-0.2111002207,
0.2564334273,
0.085613966,
0.3613365889,
0.1694757193,
-0.1247671247,
0.2746267319,
-0.1899612099,
-0.335572809,
-0.3043576777,
0.0813344717,
-0.035494063,
-0.0266100504,
-0.004933612,
-0.1673105955,
-0.1212777123,
0.1352211833,
0.0712553412,
0.9138273001,
0.0209956318,
0.0808266774,
0.3139435947,
-0.3383993506,
0.151425764,
-0.361741811,
0.2639291286,
-0.3707274497,
-0.2160767168,
-0.0849530846,
-0.0661520213,
0.1525574028,
0.0710651949,
-0.3401982486,
0.4297799766,
-0.4042374194,
0.1665911227,
-0.178396672,
0.0652065352,
0.007496689,
0.0718432143,
-0.2217144966,
0.1884852052,
-0.3539246023,
0.3225488961,
-0.3001507521,
-0.2629717588,
0.0268249586,
-0.3401607275,
-0.1810241491,
0.1295183003,
-0.5444917083,
0.235148102,
-0.0711172372,
-0.2762077749,
0.3558162153,
0.0676487088,
0.1636478901,
0.208414793,
-0.1242886037,
0.3041797876,
-0.0570820533,
-0.0589085035,
-0.0961693078,
0.2220030576,
-0.0016728127,
-0.2251731902,
-0.3161200285,
0.227307573,
-0.0993589237,
-0.2042079568,
-0.0531468391,
-0.2324140519,
-0.5021011829,
-0.2361730039,
0.0360456258,
-0.1957387328,
-0.3002689779,
-0.1727750301,
0.1554189622,
0.1541724056,
-0.1244441196,
0.0952769294,
0.2707768977,
-0.1908459812,
-0.1712901294,
0.5571668744,
0.1096610352,
0.0587167181,
0.6863897443,
0.2083503604,
-0.2349706292,
-0.2707695365,
-0.1917541027,
0.0602438375,
-0.4200966656,
0.238308534,
-0.0531688482,
0.1985814273,
0.0607350804,
0.4470115602,
0.1206931099,
0.2824612558,
0.2208911628,
-0.5104774833,
-0.2640205026,
0.1446658522,
-0.2137593776,
0.2587621212,
-0.0870598778,
0.2654634714,
0.0221865643,
-0.0770348236,
-0.3624050319,
0.0866944641,
-0.6442698836,
-0.0238355305,
0.2712143362,
-0.524338603,
0.1725560427,
0.0610062592,
0.1990175694,
-0.0153147141,
-0.3990594149,
-0.195698902,
0.0424408615,
0.1484948844,
0.0466090664,
-0.1798487008,
-0.0302987956,
-0.1862840801,
-0.264475137,
0.3944398761,
0.2726379037,
-0.0735799149,
0.1721698642,
-0.0297065079,
-0.2637219727,
0.0076816757,
-0.0701319203,
0.0800345093,
0.1399912238,
0.1601366997,
0.0016735037,
0.0794281736,
-0.0097058322,
-0.1773547381,
-0.0999606922,
0.166943118,
-0.0649407953,
-0.0240602456,
0.4716749191,
-0.4384280741,
-0.0445469841,
-0.1281052381,
0.2768379748,
0.5457194448,
-0.2084848583,
0.0477337576,
0.17347458,
0.2687778771,
-0.147764802,
-0.1217351183,
-0.2008675486,
-0.0067310128,
-0.00935739,
0.0009222341,
0.1110900491,
0.0385774933,
-0.028606344,
0.0887348056,
0.470998317,
0.0415336713,
-0.0143642137,
0.2882628441,
0.0084491335,
-0.0822438821,
0.0564003922,
0.1108722016,
0.114278242,
0.0868124887,
-0.3503555059,
-0.2556735873,
-0.1168417558,
0.2562550604,
-0.1141982749,
-0.432972163,
-0.4023195207,
0.1917791665,
-0.3171722889,
-0.0475570373,
-0.1428561211,
0.2396065444,
0.0299906116,
-0.1882743388,
-0.2870418727,
0.307928592,
-0.1458004266,
-0.1753405035,
-0.2540184855,
-0.2020066828,
-0.3433498144,
0.1994731724,
0.0569151938,
0.1301016957,
0.1626047343,
0.1688880324,
-0.0059495443,
-0.1788110286,
-0.095714584,
0.2316542566,
0.0032802033,
-0.2984702885,
0.2564794123,
0.2168835253,
0.0045155128,
-0.0090246368,
0.3461565375,
0.6126072407,
0.1562513709,
-0.0602721088,
0.1735377312,
0.0777149126,
-0.0152060818,
0.1278727204,
-0.0035639913,
0.6596264243,
0.1281154454,
0.2581993639,
0.115066953,
-0.0949970633,
0.2833235562,
-0.0089167664,
-0.0268703867,
-0.1481949389,
0.0960937962,
0.0650027394,
0.0760132894,
-0.2816141546,
-0.0964303911,
-0.5803739429,
-0.0902788565,
0.128662318,
0.1684322357,
0.1892679036,
-0.0685637593,
0.0735562369,
-0.270065397,
0.7045840025,
0.3630315661,
0.3230108619,
-0.3515676558,
-0.0615593754,
-0.2411383241,
0.0012110051,
-0.1764067113,
0.2934836149,
0.0082157338,
0.2739604115,
-0.0044442308,
-0.0567476191,
0.3255105019,
0.0265487283,
-0.3016245365,
0.2652544081,
-0.1580958664,
0.012840895,
-0.1093130186,
-0.103370592,
0.0730004832,
-0.0646842346,
0.1205573231,
-0.1764977872,
0.1828398108,
-0.2580229938,
0.0219352338,
-0.0369345993,
-0.2141056657,
0.4725673497,
0.1146927625,
0.4608374834,
0.0695562363,
-0.0373114608,
-0.1260100603,
-0.3512316346,
0.0559628904,
0.1321921349,
0.2736310661,
0.1281116009,
0.2889137566,
-0.0422177911,
-0.3018303216,
0.2375253439,
-0.0987884849,
0.0442329906,
-0.0262363721,
-0.0956496149,
0.1066229567,
-0.0608498342,
0.0318220258,
0.0039757565,
0.0676225498,
-0.1332007647,
-0.5958691239,
-0.4013920724,
0.5534638166,
0.1308205277,
-0.0247522797,
-0.0356598496,
0.242716223,
0.1207465604,
0.2269697338,
-0.5182477236,
0.2293888181,
0.1252572685,
-0.2398462147,
-0.4368203878,
0.2778037488,
0.173206374,
0.0596357957,
0.0441513769,
-0.0060803914,
-0.0349971578,
-0.0930216238,
-0.1105713099,
-0.1281404942
] |
https://github.com/huggingface/datasets/issues/1541 | connection issue while downloading data | Does your instance have an internet connection ?
If you don't have an internet connection you'll need to have the dataset on the instance disk.
To do so first download the dataset on another machine using `load_dataset` and then you can save it in a folder using `my_dataset.save_to_disk("path/to/folder")`. Once the folder is copied on your instance you can reload the dataset with `datasets.load_from_disk("path/to/folder")` | Hi
I am running my codes on google cloud, and I am getting this error resulting in the failure of the codes when trying to download the data, could you assist me to solve this? also as a temporary solution, could you tell me how I can increase the number of retries and timeout to at least let the models run for now. thanks
```
Traceback (most recent call last):
File "finetune_t5_trainer.py", line 361, in <module>
main()
File "finetune_t5_trainer.py", line 269, in main
add_prefix=False if training_args.train_adapters else True)
File "/workdir/seq2seq/data/tasks.py", line 70, in get_dataset
dataset = self.load_dataset(split=split)
File "/workdir/seq2seq/data/tasks.py", line 306, in load_dataset
return datasets.load_dataset('glue', 'cola', split=split)
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 0x7f47db511e80>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)'))
``` | 63 | connection issue while downloading data
Hi
I am running my codes on google cloud, and I am getting this error resulting in the failure of the codes when trying to download the data, could you assist me to solve this? also as a temporary solution, could you tell me how I can increase the number of retries and timeout to at least let the models run for now. thanks
```
Traceback (most recent call last):
File "finetune_t5_trainer.py", line 361, in <module>
main()
File "finetune_t5_trainer.py", line 269, in main
add_prefix=False if training_args.train_adapters else True)
File "/workdir/seq2seq/data/tasks.py", line 70, in get_dataset
dataset = self.load_dataset(split=split)
File "/workdir/seq2seq/data/tasks.py", line 306, in load_dataset
return datasets.load_dataset('glue', 'cola', split=split)
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 0x7f47db511e80>, 'Connection to s3.amazonaws.com timed out. (connect timeout=10)'))
```
Does your instance have an internet connection ?
If you don't have an internet connection you'll need to have the dataset on the instance disk.
To do so first download the dataset on another machine using `load_dataset` and then you can save it in a folder using `my_dataset.save_to_disk("path/to/folder")`. Once the folder is copied on your instance you can reload the dataset with `datasets.load_from_disk("path/to/folder")` | [
-0.2348406166,
-0.0264184196,
-0.1684959531,
0.3393735886,
0.4391575158,
-0.1407122761,
0.1563981771,
0.3509826064,
-0.2138077319,
0.0685085803,
-0.0208969619,
-0.1096859202,
0.0704353005,
0.536991179,
-0.1515040547,
-0.2388877273,
-0.1877328008,
0.0280614402,
-0.2314401865,
0.0420349725,
-0.1295739263,
0.2590336502,
-0.0621022955,
0.1730601341,
0.0358290151,
-0.1131440848,
0.1226591393,
0.1459690332,
-0.2801614702,
-0.3838598728,
0.1542088836,
0.1745482832,
-0.0517696179,
0.2062221467,
-0.0001088944,
0.1076902151,
0.3079466522,
-0.1070470065,
-0.2203331292,
-0.155958578,
0.0400471538,
0.0956174582,
0.1934549659,
-0.0438331813,
-0.1365974396,
0.434664011,
0.0030509143,
0.0237639323,
0.4515212476,
0.4471636117,
0.2572606206,
0.1820832789,
0.3130957484,
-0.1857014,
0.0406046584,
-0.4782784283,
0.0231447686,
0.3593070209,
0.2628660798,
-0.2473661453,
0.2174867243,
0.1215848103,
0.0678003132,
-0.1103274971,
0.0881749243,
-0.0993105322,
0.0909343213,
-0.3702736199,
0.0434349738,
0.1779975295,
0.6764321923,
0.0420954525,
-0.1345540434,
0.2067837417,
-0.0563100241,
-0.2022062689,
0.3282392919,
-0.0293239988,
-0.1838057041,
0.1603697389,
-0.045853395,
-0.0682924092,
-0.3555371165,
0.2799239159,
-0.0877682194,
0.0889925063,
0.0597959459,
0.1290601343,
-0.0441389121,
-0.0850264803,
0.1178375259,
0.119888626,
-0.0155313099,
-0.0139375273,
-0.4044619799,
-0.0382159203,
-0.0493908338,
-0.164900288,
0.0893065408,
0.19169873,
0.3861719668,
-0.1656157821,
0.1851051301,
0.1951489896,
0.3030421436,
0.0251456592,
-0.1535610706,
0.2802621126,
0.4853327274,
0.3582324088,
0.1091378778,
-0.1168527901,
-0.0793484449,
-0.4436264932,
-0.1070654392,
0.1931962371,
0.1481756568,
-0.1713294983,
-0.2580230832,
0.1838608682,
-0.1554704607,
0.224350825,
0.1914637834,
0.4051600993,
-0.2933757901,
-0.1206313297,
0.2053275853,
0.0556205399,
-0.134656921,
-0.2475842685,
-0.1776150316,
0.127014339,
0.0032318414,
-0.1961535066,
0.112988174,
-0.1806074083,
0.3181098402,
-0.1354435533,
0.1654636115,
-0.154795751,
-0.0770797506,
-0.3587573767,
-0.4265532792,
0.3428646922,
-0.0515848175,
-0.1006183475,
0.1217815056,
-0.0271782167,
0.1396224648,
-0.1921748072,
-0.2594860494,
-0.4317109287,
-0.2148143202,
0.3007486761,
0.0068478286,
-0.0460897647,
-0.0009697652,
-0.1341414005,
0.163511619,
-0.3907245398,
0.0341527238,
-0.3428097069,
0.0167954676,
-0.3032234013,
0.267264396,
0.5000351071,
-0.482247889,
0.0011324199,
-0.0824276507,
-0.2504618764,
0.191406101,
0.2989631891,
-0.2437186539,
0.1051214784,
-0.153578788,
0.0678502843,
0.3929644525,
-0.3507178724,
-0.4748891294,
0.3805268705,
-0.1470364481,
-0.2910524011,
-0.0379411615,
0.0643645898,
0.2132604122,
0.0781290382,
0.143229723,
0.301890552,
-0.0660441592,
-0.2896081209,
-0.276575774,
-0.2182384729,
0.085339509,
0.4488561451,
0.3002038598,
0.036587432,
0.3032761514,
-0.3245083392,
-0.0462649502,
0.0777713805,
0.0712761581,
0.3233809173,
0.344900012,
0.1176355407,
-0.0203551818,
0.3761107028,
-0.5498912334,
0.1730107069,
-0.4278171062,
0.2051831931,
-0.3752171099,
0.1459922343,
-0.1822524965,
-0.0354659259,
-0.1066940799,
-0.044170022,
0.2470875382,
-0.3118994534,
0.0967385545,
0.1461652666,
0.1997207552,
0.4978627563,
-0.2475583106,
0.1445532292,
-0.0677044913,
0.5404032469,
-0.3357788622,
-0.2070757151,
0.3209986091,
-0.2871186435,
0.2573587596,
-0.0747271404,
-0.2176730037,
0.3465881944,
-0.2453761101,
0.3602873981,
0.0862293169,
0.2653054595,
0.1509157121,
-0.1417223662,
-0.0060183234,
0.2202347219,
0.3463455737,
-0.1375163645,
0.2603260577,
0.2672843933,
0.0849164948,
0.1005877182,
0.1340837032,
0.1851222962,
0.2902145386,
0.0554238223,
-0.0036836322,
0.1190353259,
0.2799324393,
0.1297676116,
0.1541453004,
-0.2395039052,
-0.3208916783,
0.030442223,
0.1874472201,
-0.1364736557,
0.0050891601,
0.0955938026,
0.3231286407,
-0.2867569327,
-0.1466930211,
-0.0483226404,
0.3849932253,
-0.0679269657,
-0.218110472,
0.3391188383,
0.1424877048,
-0.35145244,
0.3687649369,
-0.0148209687,
0.1530312449,
0.4343568087,
0.019793449,
-0.1724937409,
-0.2720384002,
-0.5410823822,
0.1727050394,
0.5017489791,
-0.3676474988,
0.0284740161,
-0.0609806217,
-0.1288915128,
0.1670017987,
0.1663615853,
-0.2979946434,
-0.302639991,
0.0902757645,
0.138695851,
-0.1017940938,
0.0400374159,
0.0291712992,
0.2307891399,
0.3060730696,
-0.0174340643,
-0.1619217545,
-0.293936491,
-0.1299987137,
0.0691568404,
0.0803925395,
-0.2212888002,
0.14646402,
-0.0845270008,
-0.0798362494,
-0.1683975309,
-0.1975151747,
0.0711754709,
0.0564200431,
0.3333258629,
0.378125906,
0.4529694915,
-0.0027464645,
-0.0465431996,
0.2666623294,
-0.2010593861,
-0.1093118936,
0.0565121919,
-0.0399199352,
-0.0880909339,
-0.1407162547,
-0.4213066995,
-0.6614140272,
-0.2270001322,
-0.0187723581,
-0.1047683358,
0.2029765546,
0.2386620343,
0.1687424332,
0.0918303579,
0.2343427837,
-0.0431978293,
-0.3158206642,
-0.4506628811,
0.258895725,
-0.1679925621,
-0.2692595422,
0.1085925624,
0.318767935,
0.4288700521,
-0.0719963163,
-0.4718375206,
-0.2920771837,
-0.0196219906,
0.1315218359,
-0.2031793445,
-0.1841822267,
0.3288871944,
-0.1671674699,
-0.1352886707,
0.0198434982,
0.148632437,
0.3061670661,
0.3233553171,
0.1663649827,
-0.0350657366,
0.61655581,
-0.1657440215,
0.3962854147,
0.1998923272,
0.0060246093,
0.277749002,
-0.0252537075,
-0.0822134838,
-0.0938236862,
-0.0131384442,
0.3243090808,
-0.1069095582,
-0.2881341279,
0.1485265791,
-0.4488641918,
0.0011853521,
-0.4261850417,
-0.0540869869,
-0.4263955951,
-0.1368150413,
-0.0879222825,
0.0861333311,
0.2426281273,
-0.0162406657,
-0.0412734263,
0.0788467228,
0.0230742842,
0.0587048791,
0.3784456849,
-0.0227945726,
0.0318991542,
0.213758558,
-0.2503308058,
-0.3188169897,
0.3502262831,
0.0155303963,
0.3136873245,
-0.4380698204,
0.2704894245,
0.0670153126,
-0.1444278359,
0.513023138,
-0.4947700799,
0.0663479865,
-0.0227244906,
0.0036187593,
0.2418508828,
-0.2858090699,
-0.1581924856,
-0.2280466706,
0.0677399263,
0.0179836322,
-0.4608238041,
0.0354515016,
0.0661663637,
-0.2189418226,
-0.2123013735,
-0.0013238844,
-0.0605362207,
-0.4850713909,
-0.1683727205,
0.0531065427,
-0.0144177964,
0.2999939322,
-0.0625382885,
-0.0462604165,
0.214088425,
0.0120988563,
0.0838265792,
0.0084544737,
0.0792363286,
-0.2319022268,
0.2287389487,
0.1301506162,
-0.2059685737,
0.4853297472,
0.4809722006,
0.2270238847,
-0.1693282872,
0.1286837459,
0.032968875,
0.1585354954,
0.2000285834,
-0.2111002207,
0.2564334273,
0.085613966,
0.3613365889,
0.1694757193,
-0.1247671247,
0.2746267319,
-0.1899612099,
-0.335572809,
-0.3043576777,
0.0813344717,
-0.035494063,
-0.0266100504,
-0.004933612,
-0.1673105955,
-0.1212777123,
0.1352211833,
0.0712553412,
0.9138273001,
0.0209956318,
0.0808266774,
0.3139435947,
-0.3383993506,
0.151425764,
-0.361741811,
0.2639291286,
-0.3707274497,
-0.2160767168,
-0.0849530846,
-0.0661520213,
0.1525574028,
0.0710651949,
-0.3401982486,
0.4297799766,
-0.4042374194,
0.1665911227,
-0.178396672,
0.0652065352,
0.007496689,
0.0718432143,
-0.2217144966,
0.1884852052,
-0.3539246023,
0.3225488961,
-0.3001507521,
-0.2629717588,
0.0268249586,
-0.3401607275,
-0.1810241491,
0.1295183003,
-0.5444917083,
0.235148102,
-0.0711172372,
-0.2762077749,
0.3558162153,
0.0676487088,
0.1636478901,
0.208414793,
-0.1242886037,
0.3041797876,
-0.0570820533,
-0.0589085035,
-0.0961693078,
0.2220030576,
-0.0016728127,
-0.2251731902,
-0.3161200285,
0.227307573,
-0.0993589237,
-0.2042079568,
-0.0531468391,
-0.2324140519,
-0.5021011829,
-0.2361730039,
0.0360456258,
-0.1957387328,
-0.3002689779,
-0.1727750301,
0.1554189622,
0.1541724056,
-0.1244441196,
0.0952769294,
0.2707768977,
-0.1908459812,
-0.1712901294,
0.5571668744,
0.1096610352,
0.0587167181,
0.6863897443,
0.2083503604,
-0.2349706292,
-0.2707695365,
-0.1917541027,
0.0602438375,
-0.4200966656,
0.238308534,
-0.0531688482,
0.1985814273,
0.0607350804,
0.4470115602,
0.1206931099,
0.2824612558,
0.2208911628,
-0.5104774833,
-0.2640205026,
0.1446658522,
-0.2137593776,
0.2587621212,
-0.0870598778,
0.2654634714,
0.0221865643,
-0.0770348236,
-0.3624050319,
0.0866944641,
-0.6442698836,
-0.0238355305,
0.2712143362,
-0.524338603,
0.1725560427,
0.0610062592,
0.1990175694,
-0.0153147141,
-0.3990594149,
-0.195698902,
0.0424408615,
0.1484948844,
0.0466090664,
-0.1798487008,
-0.0302987956,
-0.1862840801,
-0.264475137,
0.3944398761,
0.2726379037,
-0.0735799149,
0.1721698642,
-0.0297065079,
-0.2637219727,
0.0076816757,
-0.0701319203,
0.0800345093,
0.1399912238,
0.1601366997,
0.0016735037,
0.0794281736,
-0.0097058322,
-0.1773547381,
-0.0999606922,
0.166943118,
-0.0649407953,
-0.0240602456,
0.4716749191,
-0.4384280741,
-0.0445469841,
-0.1281052381,
0.2768379748,
0.5457194448,
-0.2084848583,
0.0477337576,
0.17347458,
0.2687778771,
-0.147764802,
-0.1217351183,
-0.2008675486,
-0.0067310128,
-0.00935739,
0.0009222341,
0.1110900491,
0.0385774933,
-0.028606344,
0.0887348056,
0.470998317,
0.0415336713,
-0.0143642137,
0.2882628441,
0.0084491335,
-0.0822438821,
0.0564003922,
0.1108722016,
0.114278242,
0.0868124887,
-0.3503555059,
-0.2556735873,
-0.1168417558,
0.2562550604,
-0.1141982749,
-0.432972163,
-0.4023195207,
0.1917791665,
-0.3171722889,
-0.0475570373,
-0.1428561211,
0.2396065444,
0.0299906116,
-0.1882743388,
-0.2870418727,
0.307928592,
-0.1458004266,
-0.1753405035,
-0.2540184855,
-0.2020066828,
-0.3433498144,
0.1994731724,
0.0569151938,
0.1301016957,
0.1626047343,
0.1688880324,
-0.0059495443,
-0.1788110286,
-0.095714584,
0.2316542566,
0.0032802033,
-0.2984702885,
0.2564794123,
0.2168835253,
0.0045155128,
-0.0090246368,
0.3461565375,
0.6126072407,
0.1562513709,
-0.0602721088,
0.1735377312,
0.0777149126,
-0.0152060818,
0.1278727204,
-0.0035639913,
0.6596264243,
0.1281154454,
0.2581993639,
0.115066953,
-0.0949970633,
0.2833235562,
-0.0089167664,
-0.0268703867,
-0.1481949389,
0.0960937962,
0.0650027394,
0.0760132894,
-0.2816141546,
-0.0964303911,
-0.5803739429,
-0.0902788565,
0.128662318,
0.1684322357,
0.1892679036,
-0.0685637593,
0.0735562369,
-0.270065397,
0.7045840025,
0.3630315661,
0.3230108619,
-0.3515676558,
-0.0615593754,
-0.2411383241,
0.0012110051,
-0.1764067113,
0.2934836149,
0.0082157338,
0.2739604115,
-0.0044442308,
-0.0567476191,
0.3255105019,
0.0265487283,
-0.3016245365,
0.2652544081,
-0.1580958664,
0.012840895,
-0.1093130186,
-0.103370592,
0.0730004832,
-0.0646842346,
0.1205573231,
-0.1764977872,
0.1828398108,
-0.2580229938,
0.0219352338,
-0.0369345993,
-0.2141056657,
0.4725673497,
0.1146927625,
0.4608374834,
0.0695562363,
-0.0373114608,
-0.1260100603,
-0.3512316346,
0.0559628904,
0.1321921349,
0.2736310661,
0.1281116009,
0.2889137566,
-0.0422177911,
-0.3018303216,
0.2375253439,
-0.0987884849,
0.0442329906,
-0.0262363721,
-0.0956496149,
0.1066229567,
-0.0608498342,
0.0318220258,
0.0039757565,
0.0676225498,
-0.1332007647,
-0.5958691239,
-0.4013920724,
0.5534638166,
0.1308205277,
-0.0247522797,
-0.0356598496,
0.242716223,
0.1207465604,
0.2269697338,
-0.5182477236,
0.2293888181,
0.1252572685,
-0.2398462147,
-0.4368203878,
0.2778037488,
0.173206374,
0.0596357957,
0.0441513769,
-0.0060803914,
-0.0349971578,
-0.0930216238,
-0.1105713099,
-0.1281404942
] |
https://github.com/huggingface/datasets/issues/1514 | how to get all the options of a property in datasets | In a dataset, labels correspond to the `ClassLabel` feature that has the `names` property that returns string represenation of the integer classes (or `num_classes` to get the number of different classes). | Hi
could you tell me how I can get all unique options of a property of dataset?
for instance in case of boolq, if the user wants to know which unique labels it has, is there a way to access unique labels without getting all training data lables and then forming a set i mean? thanks | 31 | how to get all the options of a property in datasets
Hi
could you tell me how I can get all unique options of a property of dataset?
for instance in case of boolq, if the user wants to know which unique labels it has, is there a way to access unique labels without getting all training data lables and then forming a set i mean? thanks
In a dataset, labels correspond to the `ClassLabel` feature that has the `names` property that returns string represenation of the integer classes (or `num_classes` to get the number of different classes). | [
-0.3508511782,
-0.527657032,
-0.0328901447,
0.3197905421,
-0.0088524371,
0.1327081621,
0.0669212714,
0.0627552643,
-0.1925354302,
0.2703047693,
-0.2775320411,
0.299058646,
-0.2552961409,
0.1220930293,
-0.0826282874,
0.2548772395,
-0.1904511601,
0.1400500089,
-0.0914770961,
-0.3434122801,
-0.486543119,
-0.2970269918,
-0.4581038952,
0.0147144077,
-0.183259055,
-0.4297352135,
-0.1620203555,
-0.3819603026,
-0.2474734783,
-0.4416975975,
-0.1803479195,
0.3577095568,
-0.0052557681,
-0.1465250254,
-0.0001120292,
-0.1863492727,
-0.087782301,
0.1195254251,
-0.2179148346,
-0.1170702204,
-0.2084095776,
0.0798478574,
0.0001603764,
-0.2902167141,
-0.2380120009,
-0.1694651842,
0.1302453578,
-0.3067198098,
-0.2818311155,
0.0357823297,
0.1677719355,
-0.1580676883,
-0.1943157315,
0.0313469544,
0.2919988334,
0.3407331407,
-0.1350932121,
-0.1522560269,
0.5592805147,
0.2760845125,
0.155392617,
0.1595229506,
0.1639226377,
-0.0653997436,
-0.1125929654,
0.060131371,
-0.0172086339,
-0.0513152704,
0.1700331122,
0.4939921796,
0.8889747262,
-0.0780143514,
-0.5552244186,
-0.2224727273,
0.3864815831,
-0.2008574158,
-0.0726846084,
0.4160017073,
-0.0215562973,
0.0239759814,
-0.5343720317,
-0.1047022119,
-0.2602105439,
0.0041007106,
0.0951180235,
0.4499122798,
-0.0597371981,
0.0480394401,
0.0435346216,
-0.1944859922,
0.3572511971,
0.0081246477,
-0.0555032678,
0.2131773978,
-0.180675596,
-0.1613456458,
-0.0790356919,
0.3115600348,
0.4610342383,
0.2292971462,
-0.0018092517,
-0.2025980204,
-0.2045289129,
0.0713877603,
0.1316975653,
0.1638015956,
0.2778801024,
0.43006441,
-0.0905245319,
-0.2591497302,
-0.5156909227,
-0.0436420888,
-0.1627068669,
0.5808579326,
0.098730661,
0.0906744823,
0.1428922713,
-0.0987818688,
0.0261775833,
-0.1224271581,
-0.5973360538,
-0.1279476434,
0.3690083325,
0.0653480813,
-0.1663044095,
-0.2808002532,
-0.1604656279,
-0.3047667742,
0.0698337704,
-0.5663421154,
-0.2455683202,
0.0211143419,
-0.0447987281,
0.0290549695,
0.1502797604,
0.0854733363,
0.2885453403,
0.2838989794,
-0.0270619635,
-0.0989094079,
0.1929653138,
-0.1295311898,
0.0735160038,
-0.2468221784,
-0.0755355284,
-0.1078967378,
-0.0959059075,
-0.032665696,
-0.4610234797,
-0.0920461938,
0.0755558833,
-0.3649212122,
0.0379905328,
0.1456155777,
-0.1221428737,
-0.1351410449,
-0.2340946794,
0.5512105227,
-0.1914867908,
0.2397636622,
0.1314301342,
-0.0985923931,
-0.2369735837,
-0.0555087365,
-0.1372011602,
0.1909398288,
-0.438187331,
-0.1115925163,
0.1313178092,
-0.1416653097,
-0.1695653349,
-0.0368137322,
-0.3678404391,
0.2495280653,
-0.1988593489,
-0.0420436673,
0.2656773627,
0.0845836848,
-0.4063234627,
-0.0453338772,
0.3962126076,
-0.3897978365,
0.2347951382,
0.3541616499,
0.5342296362,
0.1556030363,
0.0012969488,
-0.0104318187,
-0.1367513686,
-0.4786082208,
0.2135129273,
-0.2491566092,
0.055504594,
-0.127150327,
-0.2984972298,
0.0940546989,
0.2261769176,
0.0374371707,
0.1945085078,
0.000815069,
-0.2040579468,
0.3154876232,
0.1634715796,
0.3308371902,
-0.140871644,
-0.5227246881,
-0.4604742825,
0.2434816211,
-0.1847601533,
-0.1982658505,
0.2715197802,
-0.3839792907,
0.2311083078,
0.1584577709,
0.0020251565,
0.0699900389,
0.1261912733,
0.1834161431,
0.0030263513,
-0.2639646232,
-0.3475841284,
0.1739323288,
-0.1795780361,
-0.0859249085,
-0.0596415624,
-0.2804449499,
0.3700774312,
0.1967259049,
-0.0314778313,
0.0921082869,
0.155516237,
0.1380994022,
-0.0922475681,
-0.0289695431,
0.0102939978,
-0.0202157795,
0.1972584724,
0.2296960503,
0.1364672929,
-0.2346060872,
-0.105794929,
-0.0488552749,
0.0834585428,
0.0277629327,
-0.2555168271,
0.2668006122,
-0.1034756526,
0.2608881593,
-0.0779846534,
0.1833369285,
0.0540482849,
-0.045712918,
-0.0940095782,
-0.1271291673,
0.1622811556,
-0.1134364828,
0.4942336679,
0.3270045817,
-0.4405327439,
0.1776650101,
0.2505428493,
-0.1502175033,
0.0749085546,
-0.2717395127,
0.1221660376,
0.1219595224,
0.4038166702,
0.1231877133,
0.2708518803,
0.2157390267,
0.0594004616,
0.1966957003,
-0.1114785522,
0.1793222874,
0.214434281,
0.0014693413,
-0.2242042422,
-0.3802840412,
-0.0141309332,
0.1007096022,
-0.0320804231,
-0.3933856785,
0.2156145573,
0.0209180824,
-0.0542868003,
-0.0450573526,
-0.4118189514,
-0.0780548751,
0.1107791141,
-0.0728577003,
-0.0198099893,
-0.1078430489,
0.1396300048,
-0.0899961665,
0.0984444097,
0.1316859871,
-0.491966784,
0.4692616165,
-0.0703237876,
0.001736123,
0.3728186786,
-0.1602379233,
-0.3173577785,
0.0002689125,
-0.3346798122,
0.1726293117,
0.4815168083,
0.2825987041,
0.238795355,
-0.4937901199,
-0.0780085921,
0.1100170538,
0.1204598248,
-0.0002426197,
0.0564518869,
-0.1279258877,
-0.3248133361,
0.3949851096,
0.1154255643,
0.2966907024,
-0.0409833863,
-0.1411796361,
-0.1113705412,
-0.2185893059,
0.0414260253,
-0.4756487012,
-0.5091134906,
-0.0658929795,
0.1078628972,
-0.2145975977,
0.2966996431,
-0.0095515531,
-0.413385123,
0.1338648498,
0.0358330868,
0.4845368564,
-0.1738815755,
-0.4474417567,
0.0916537568,
0.0210225657,
0.0016240133,
-0.2051278204,
-0.2007147968,
0.0482302979,
0.2721458077,
-0.1739083678,
-0.2373667061,
-0.23174344,
0.0977826566,
-0.12277814,
0.0688815862,
0.1421618462,
0.1151314005,
0.0753470734,
-0.0545676202,
-0.3315777481,
0.1224296838,
-0.2906485498,
0.310084641,
0.3690904677,
-0.0175026637,
0.0651023984,
0.2933642566,
0.5332477093,
-0.0368296318,
-0.0299324933,
-0.4662998617,
0.1133902296,
0.4116413891,
-0.4543643892,
-0.1225720868,
0.3822773099,
-0.1244691089,
0.1978471875,
0.2040621489,
0.2663590014,
0.0306802504,
0.1350493431,
-0.2073507458,
-0.2362265438,
-0.3709765971,
-0.2445931435,
0.1783780009,
-0.1887316555,
0.0496793203,
-0.138253808,
0.0604830161,
-0.06679333,
-0.1624008566,
-0.1108362004,
0.0495774411,
-0.6374654174,
-0.2879968584,
0.5683387518,
0.1488939226,
0.1635273993,
0.2337236851,
-0.1037101299,
0.3242291808,
0.447689414,
0.3675517738,
0.6122739911,
-0.1161096767,
-0.0738220587,
0.0576056167,
-0.3960897923,
-0.0004854928,
-0.0506574139,
-0.3637343645,
-0.0429015011,
-0.1238819137,
0.4561240673,
-0.0572602078,
-0.137262702,
-0.1734611392,
0.3180660307,
-0.2492271364,
-0.3283992112,
0.2676925659,
-0.0034214477,
0.07758791,
0.1097714826,
-0.1344327331,
0.0195837747,
0.1759524047,
-0.1185563505,
-0.2799159288,
0.0346678644,
0.4038733244,
0.0199875459,
-0.0403880514,
-0.0033356587,
0.3267428279,
0.0396660194,
0.0282006301,
0.0530344024,
0.5687277317,
-0.1818539947,
-0.4036190212,
-0.3023501039,
-0.0770732313,
0.1083745882,
-0.0863682404,
-0.0439616404,
0.2125873417,
-0.1236133575,
-0.0481000319,
-0.1968958825,
0.0352678783,
0.0430281311,
-0.0405985974,
-0.2414752841,
-0.3577511311,
0.6491357088,
0.0748691261,
-0.4582130909,
0.2182477713,
0.3473542631,
-0.2755721211,
-0.1457882077,
0.1741807312,
0.7046633959,
0.0962942988,
-0.2293822318,
-0.2595245242,
0.0824263766,
0.585537076,
0.2945802212,
-0.0808785334,
-0.0581786148,
-0.3362274468,
-0.0368249975,
-0.0157252662,
0.0476302244,
0.3330001533,
0.0333089456,
0.2259674966,
0.0565392077,
0.2718308568,
0.1054318845,
0.0779375657,
-0.1414922476,
0.0247662514,
0.2523497939,
0.1107064411,
-0.1785779297,
0.2311085612,
0.1454966068,
0.1079131216,
0.2482428998,
0.2883224189,
-0.4448488355,
-0.0917814896,
-0.2850383818,
0.2031095624,
0.4126003683,
0.0605055764,
0.1747209281,
0.2170670033,
0.4050026536,
0.4423660636,
-0.17112872,
0.0804444999,
0.2109608054,
0.4124331176,
-0.2929897904,
0.1909174025,
0.3041490018,
0.1589385718,
-0.2294655144,
0.232384488,
0.2367487699,
0.3315259814,
-0.4917176962,
0.0268163774,
0.1548868418,
-0.3165372312,
0.2781930864,
-0.2163077891,
0.0856904536,
-0.0395415127,
0.0612801127,
0.1692212373,
-0.1062484756,
0.522518158,
0.1892318726,
-0.1523718089,
-0.1467067152,
-0.1819875836,
0.2093461752,
0.1074998975,
0.3382546902,
-0.1614838541,
-0.0882726163,
-0.1336887479,
0.4419904649,
-0.3051997125,
0.0378130153,
0.0915213972,
-0.019194413,
0.3036916256,
-0.007088454,
0.0418281406,
0.2091379166,
0.2866425812,
0.1424591541,
-0.1397881955,
-0.2146412283,
0.1631243825,
-0.0729962662,
0.4103819132,
0.0091071874,
-0.1632104069,
-0.277332902,
0.1723169982,
-0.2245133966,
0.0188674629,
-0.2755853236,
0.132480979,
0.0903899446,
0.3165179491,
-0.3393512964,
0.1298607439,
0.1120263785,
-0.1530304402,
0.1716083437,
-0.1140107438,
-0.3153394759,
0.0963241011,
0.24086909,
0.3602522314,
-0.2150143385,
-0.3067854345,
0.0383533463,
-0.0774379149,
-0.0664260536,
0.1932674795,
0.2258415967,
0.5054678321,
0.1278174073,
-0.2530192733,
-0.4976938963,
0.3159554005,
0.0121904835,
-0.0291654058,
0.1767423898,
0.1549793929,
0.0083196796,
-0.2764666677,
-0.6644697785,
-0.020938931,
-0.1368762851,
-0.3500553668,
-0.0383887962,
0.3078999221,
0.5481109023,
0.3904304504,
-0.1895968169,
0.0405787304,
0.0470067784,
0.0424425602,
0.4098187387,
0.1500734687,
-0.1682858318,
-0.0705758035,
-0.0809309334,
0.0962925926,
0.1378866732,
0.4272570908,
-0.1457204074,
0.2353933454,
-0.0750228688,
-0.4264288247,
0.2358673364,
-0.120594129,
0.0669382438,
0.3613484502,
-0.0428198688,
-0.2482873201,
0.2149003148,
0.6761203408,
0.1334040761,
0.1710667461,
-0.2072859555,
-0.0349559858,
0.0266257711,
0.0225430261,
0.6205438375,
-0.1656974554,
0.2913401127,
0.1755546331,
-0.2380996346,
-0.0714854598,
-0.230084762,
0.1034753397,
-0.3074238598,
0.0097688762,
0.1138043031,
0.2060406804,
0.1070101559,
-0.1604612917,
-0.3988546729,
-0.0769757628,
0.0729233399,
0.0950026512,
0.057196185,
-0.3662110865,
0.0002714114,
-0.0797159746,
0.1783392727,
-0.5269304514,
0.0930290967,
0.3318488896,
0.0669467151,
-0.2068777531,
0.098024115,
0.0045658383,
0.0911098495,
0.2443212569,
0.1618793607,
-0.121799998,
-0.0071254508,
0.0803607777,
0.1737850159,
-0.121786952,
-0.2072756737,
-0.0474166721,
-0.1494162083,
-0.0112560168,
-0.2534236014,
0.2478483468,
-0.0191509537,
0.0451480336,
0.3839637935,
-0.2259896696,
0.2885333598,
-0.2560209632,
0.3926223218,
0.3788810074,
-0.1923003197,
0.1074585319,
0.0872373134,
-0.119189024,
-0.4159932137,
0.5320668221,
0.2952248156,
0.2267305106,
0.1194131374,
0.0369840935,
-0.2051905841,
-0.0487761237,
0.4255404174,
-0.0299866758,
0.0174362585,
0.4553383291,
-0.2576415539,
-0.1752888262,
0.069510214,
-0.232802242,
0.4561756253,
-0.0199792255,
-0.1047269702,
-0.1117713973,
-0.0148595562,
-0.106788516,
0.0908095762,
0.1928243339,
-0.320789516,
-0.448330313,
0.2457564771,
0.0998103619,
-0.0045570349,
-0.2362706363,
0.2528702617,
-0.2717032433,
-0.0297286976,
-0.1352942139,
0.395984292,
0.1108513772,
-0.046965044,
-0.2839603722,
0.1314225495,
0.1565361023,
0.1620588452,
0.4353886843,
0.1063677818,
0.0358090252,
-0.1216436923,
0.0820018351,
0.1073436067,
0.1328492314,
-0.045052167,
-0.1714001149,
0.1947015077,
-0.0374759771,
-0.1566364467,
-0.2194828689,
-0.0624625348,
0.0988233611,
-0.2983466089,
0.0126312692,
0.3846226335,
-0.0683059096,
-0.1487447172,
0.1428327262,
0.1593284458,
-0.1901643425,
0.5893238187,
-0.0662159547,
-0.0594212748,
0.111293219,
0.3183358312,
0.2559441626,
0.0200314019,
-0.1685692519,
-0.0669981763,
0.8531076312,
-0.541578114,
-0.1140704527,
0.1884543002,
0.3835059106,
0.1347116381,
-0.0845647082,
0.151516214,
-0.0027910571,
-0.1205838025,
0.343354702,
0.0145806717
] |
https://github.com/huggingface/datasets/issues/1514 | how to get all the options of a property in datasets | I think the `features` attribute of the dataset object is what you are looking for:
```
>>> dataset.features
{'sentence1': Value(dtype='string', id=None),
'sentence2': Value(dtype='string', id=None),
'label': ClassLabel(num_classes=2, names=['not_equivalent', 'equivalent'], names_file=None, id=None),
'idx': Value(dtype='int32', id=None)
}
>>> dataset.features["label"].names
['not_equivalent', 'equivalent']
```
For reference: https://huggingface.co/docs/datasets/exploring.html | Hi
could you tell me how I can get all unique options of a property of dataset?
for instance in case of boolq, if the user wants to know which unique labels it has, is there a way to access unique labels without getting all training data lables and then forming a set i mean? thanks | 42 | how to get all the options of a property in datasets
Hi
could you tell me how I can get all unique options of a property of dataset?
for instance in case of boolq, if the user wants to know which unique labels it has, is there a way to access unique labels without getting all training data lables and then forming a set i mean? thanks
I think the `features` attribute of the dataset object is what you are looking for:
```
>>> dataset.features
{'sentence1': Value(dtype='string', id=None),
'sentence2': Value(dtype='string', id=None),
'label': ClassLabel(num_classes=2, names=['not_equivalent', 'equivalent'], names_file=None, id=None),
'idx': Value(dtype='int32', id=None)
}
>>> dataset.features["label"].names
['not_equivalent', 'equivalent']
```
For reference: https://huggingface.co/docs/datasets/exploring.html | [
-0.2287428975,
-0.7055011392,
0.0021906481,
0.3662376702,
0.0509749539,
0.1418877393,
0.026728237,
0.0608513542,
-0.1547131389,
0.269069165,
-0.4087379873,
0.2562119961,
-0.2511259615,
0.410497129,
-0.0019403531,
0.1533519179,
-0.1557466835,
0.1335606128,
-0.1536470056,
-0.2861344814,
-0.4006637633,
-0.1075736806,
-0.4153286815,
0.0467985533,
-0.1314853877,
-0.3693218529,
-0.2243346721,
-0.2647704482,
-0.3092389405,
-0.4690890908,
-0.1003359258,
0.4063610733,
-0.0191017967,
-0.0985035375,
-0.0001168393,
-0.0966575965,
-0.0851440281,
0.0530239679,
-0.1955064982,
-0.1642187089,
-0.0560530573,
0.0330163948,
0.0604155883,
-0.3104786873,
-0.2448531687,
-0.265960604,
0.0630950406,
-0.2815671563,
-0.096483402,
0.0834135711,
0.1124279946,
0.1228789389,
-0.1639302969,
0.0523827597,
0.2354940921,
0.3953168094,
-0.145285219,
-0.1424503177,
0.3674569428,
0.2163592875,
0.2054812163,
0.1736016273,
0.1753454804,
0.0197265334,
0.0648146644,
0.1097648069,
-0.1048912853,
-0.1086173877,
0.1151849106,
0.6177586913,
0.7410162091,
-0.080244869,
-0.6125473976,
-0.3371490836,
0.2651630044,
-0.2187313288,
-0.0421200469,
0.3485731184,
-0.0364706144,
0.0196287241,
-0.6166023016,
-0.1469852775,
-0.2099895477,
0.0341841653,
0.0878431946,
0.331430912,
-0.2299050391,
0.1070282608,
0.1994532049,
-0.2394706756,
0.1162181124,
-0.0532047562,
-0.1603349,
0.2908095717,
-0.2628743649,
-0.2033746988,
0.0598604754,
0.3661666811,
0.6192519069,
0.2419126481,
0.0272463616,
-0.2319880873,
-0.2885710597,
0.0393391401,
0.2170253247,
0.2005426884,
0.2487380356,
0.3153839111,
0.0167146996,
-0.0292648636,
-0.3435153961,
-0.075587973,
-0.0813130513,
0.4947544634,
-0.04878534,
0.049507793,
0.324234575,
-0.1381802112,
0.029928986,
-0.1983105987,
-0.5271272063,
-0.0954010785,
0.3363983035,
0.0749924108,
-0.1359928995,
-0.2295088321,
-0.0980430767,
-0.1476188749,
-0.006886425,
-0.4394294024,
-0.2158148885,
0.0091784401,
0.0450278856,
0.0627500266,
0.1190923676,
-0.1027022898,
0.3910482824,
0.2135318369,
-0.0078682322,
-0.1423300654,
0.0254099369,
-0.063754499,
0.0469572023,
-0.1330058426,
-0.0796601549,
-0.0924230069,
-0.0602715425,
-0.1388601363,
-0.4607556462,
-0.1905696094,
0.1057439223,
-0.4433944225,
-0.0289863553,
0.0971213803,
-0.3224669397,
-0.1415641159,
-0.4366815388,
0.6044268012,
-0.2416906059,
0.3500165939,
0.1379345655,
0.0179839414,
-0.3908008933,
-0.046833653,
-0.024016628,
0.3638699651,
-0.3369421065,
-0.2405357212,
0.1797439307,
-0.213223502,
-0.3713695109,
0.0807775781,
-0.3572638631,
0.2071001828,
-0.2416035682,
-0.0352622792,
0.2858684659,
0.0241244286,
-0.3314436078,
0.0052652792,
0.3683826029,
-0.220233947,
0.1870831996,
0.2353430092,
0.5210518241,
0.1221043766,
-0.0985232666,
0.1144929305,
-0.0286736935,
-0.3989963531,
0.2246577144,
-0.213347286,
0.0700229555,
-0.145232439,
-0.3617037833,
0.1528537273,
0.0965435281,
-0.1897109598,
0.2468204051,
0.0048563606,
-0.2093895823,
0.3276511133,
0.2211039513,
0.3890690506,
-0.1036694422,
-0.5267809629,
-0.6104334593,
0.3131172955,
0.0081159873,
-0.1598108411,
0.211265862,
-0.4473208487,
0.1214879751,
0.1537570208,
-0.0376694836,
-0.0609101951,
0.0337237567,
0.1989069879,
-0.0005063773,
-0.142908752,
-0.4254852235,
0.2721265852,
-0.1248877421,
0.0505877398,
-0.1900824308,
-0.1255628169,
0.4010557532,
0.2112405002,
0.0548179224,
0.0028915752,
0.2383452654,
-0.0103207622,
-0.0924654603,
0.0645671114,
-0.0335519165,
0.1128497943,
0.229469195,
0.2720685601,
0.249447614,
-0.2392003238,
-0.188691929,
-0.082871899,
0.1910862327,
0.0182579197,
-0.3324780762,
0.3907875717,
-0.0463840738,
0.3015038669,
-0.0743618459,
0.1733386815,
0.0144689213,
-0.0308820698,
-0.183641687,
-0.1196032241,
0.1472087353,
-0.0567025691,
0.3591712713,
0.3756245673,
-0.4823972583,
0.1143966168,
0.3670996428,
-0.1303096861,
-0.1336412132,
-0.2044651955,
0.0917299911,
0.0992020518,
0.3935649097,
0.0503238812,
0.2244661897,
0.1886150092,
0.0470327362,
0.2774072886,
0.0206081867,
0.2673249543,
0.159906581,
0.0343189463,
-0.1635111421,
-0.3330232501,
0.1298901737,
0.0677904636,
-0.1989119053,
-0.2625768483,
0.1614474952,
0.0883534551,
-0.1697712988,
0.023222439,
-0.3889833093,
-0.0831422657,
0.0753610358,
-0.0631955862,
-0.0673458353,
-0.0844077468,
0.0233298186,
0.0526539087,
0.1011320502,
0.0764356256,
-0.3535855711,
0.3924438655,
-0.0804618374,
0.0092263017,
0.2691922784,
-0.0380384587,
-0.205147624,
-0.0644437894,
-0.3056203723,
0.2183972001,
0.4517791867,
0.1415784508,
0.1047300994,
-0.5595071316,
-0.0770263821,
0.0939007476,
0.070304051,
0.2038979232,
0.1465808302,
-0.0607117116,
-0.2809715271,
0.3665856123,
0.1948536634,
0.2723930776,
-0.1599522829,
-0.1031920835,
-0.0639204159,
-0.1811522543,
0.0288369916,
-0.4219205379,
-0.4215580821,
-0.070749715,
0.3276552558,
-0.199959904,
0.2525435984,
-0.0054212152,
-0.2850005031,
0.0456598736,
-0.1100159138,
0.3793177605,
-0.1815900654,
-0.5349196792,
0.1260638684,
0.0119429911,
-0.0821236596,
-0.158540085,
-0.1444888413,
-0.1269701123,
0.1906873733,
-0.245241195,
-0.3869087696,
-0.3368158937,
0.2491072565,
-0.0860302523,
0.1027114242,
0.2500683665,
0.0352762789,
0.1486334801,
-0.0380932428,
-0.5036995411,
0.1496802568,
-0.0694486201,
0.2438973337,
0.3529320657,
0.0748310983,
0.0213787947,
0.3612084687,
0.5248460174,
0.0102342237,
0.0907139704,
-0.5891008973,
0.232133165,
0.3434921801,
-0.5600324869,
-0.0695581809,
0.305646807,
-0.0159538724,
0.1589617431,
0.249245882,
0.3992692828,
-0.0480948575,
0.1204540431,
-0.1722264588,
-0.247889027,
-0.4388038814,
-0.1080584228,
0.1012211889,
-0.144381538,
0.0406380929,
-0.0792640597,
0.0588061735,
-0.0376870148,
0.0627977327,
-0.0023787839,
0.1430986673,
-0.6517041922,
-0.2346114516,
0.3950177729,
0.1208138242,
0.1292470247,
0.1279474348,
-0.0468617529,
0.3369091153,
0.4993624985,
0.3162547052,
0.7801807523,
0.0260330737,
-0.1128735095,
-0.03573782,
-0.5820838213,
-0.0472147726,
-0.076356858,
-0.2561800182,
0.0139712906,
-0.1329511702,
0.5977632403,
-0.1236238107,
-0.3026720285,
-0.1031473875,
0.3476694226,
-0.3011568487,
-0.3065576553,
0.1594866663,
-0.074915871,
-0.0214037113,
0.0576467514,
-0.1002713814,
0.0472493991,
0.1667352915,
-0.1385364383,
-0.2284672111,
0.0289725512,
0.3732233346,
0.0631876215,
-0.036132846,
0.0028204862,
0.3145391047,
0.1896238476,
-0.0453874208,
-0.0175953228,
0.6283414364,
-0.0717597082,
-0.4086482823,
-0.5035917759,
0.0082438923,
0.1751672477,
-0.0565963984,
-0.0774244145,
0.1841045469,
-0.0997275785,
0.0023477888,
-0.2769598067,
0.1276541501,
0.2268239856,
0.0325888172,
-0.174928993,
-0.2764031589,
0.7093741298,
0.01635525,
-0.3961480856,
0.1268812716,
0.6459161043,
-0.2218307853,
-0.209988758,
-0.0077352221,
0.6521456838,
0.0345274098,
-0.1381370872,
-0.1319206953,
0.0166174602,
0.6354860663,
0.3060133159,
-0.0797810256,
-0.0553423017,
-0.3093679249,
-0.0541981757,
-0.0453265756,
0.0968268961,
0.145592466,
0.027609013,
0.324886471,
0.1116390452,
0.2808372974,
-0.0057665929,
0.1019057855,
-0.1137156561,
-0.000339961,
0.106956698,
0.0792502016,
-0.2261992991,
0.4505363107,
0.1749610305,
0.0701609775,
0.3037329614,
0.132996887,
-0.5052334666,
-0.2289663255,
-0.3203365505,
0.0170859043,
0.4922896624,
-0.0518638119,
0.183389917,
0.30561167,
0.3739117086,
0.3710639179,
-0.2079503387,
0.004276583,
0.0710262954,
0.3601532578,
-0.3773461878,
0.1411985606,
0.2795591354,
0.1284250766,
-0.2771087289,
0.1511866152,
0.246172145,
0.3247495592,
-0.3241711855,
-0.0185614005,
-0.0576823466,
-0.3309651613,
0.1711708605,
-0.1988738179,
0.1035679653,
-0.0958091542,
0.0093034431,
0.2089439631,
-0.2372795492,
0.3808006644,
0.2046244293,
-0.1594766974,
-0.0842826217,
-0.0232442636,
0.1244547665,
0.1620337367,
0.3429062963,
-0.0653318092,
-0.0637665167,
-0.0858424455,
0.3398193121,
-0.2361549884,
0.0771325678,
0.1924656034,
0.0288872253,
0.2318576574,
-0.1331950873,
0.1773480177,
0.2025744468,
0.2019980252,
0.205804646,
-0.2115896344,
-0.2841516733,
0.1425225884,
-0.0500175133,
0.3632566333,
-0.0028416382,
-0.0485503413,
-0.1789271384,
0.1734467745,
-0.1874321997,
0.1480181217,
-0.2888020277,
0.0832713693,
0.2191857994,
0.2625323236,
-0.2179456651,
0.0098098787,
0.0409735069,
-0.1540765762,
0.0811909512,
-0.0582364835,
-0.4584404826,
0.1241143122,
0.1723211557,
0.2276169062,
-0.0747316182,
-0.2618874311,
0.0364915915,
-0.1576021314,
0.0799202472,
0.3282822371,
0.2694258392,
0.5273607969,
0.1394504905,
-0.3102006912,
-0.3670921028,
0.2909502685,
0.0024576038,
-0.0613735765,
0.2268458158,
0.1074511036,
-0.0988561586,
-0.2987817228,
-0.5390706062,
-0.0315587036,
-0.0642850101,
-0.3648091257,
-0.0317705162,
0.3734407723,
0.3671706915,
0.3179033101,
-0.0042955792,
0.1758879423,
0.0637018159,
0.2036919743,
0.3741742074,
0.0896876678,
-0.2198188305,
-0.1027809605,
0.0574636348,
0.1007049829,
0.1698742956,
0.3659591675,
-0.1908158958,
0.2398905903,
-0.117077589,
-0.4271605313,
0.1381697208,
0.0387120582,
0.1131402552,
0.2040217668,
-0.1371590048,
-0.2020515501,
0.3019495606,
0.6552523971,
0.1903936267,
0.1541808993,
-0.2928784192,
-0.110585615,
-0.0413483828,
0.089472115,
0.7109921575,
-0.1782188267,
0.1906858832,
0.0730051398,
-0.102382943,
-0.1321013421,
-0.1981781572,
0.3249550164,
-0.2759928107,
-0.0703854039,
0.0229758155,
0.3993243277,
0.1270032376,
-0.3190346062,
-0.1811657995,
-0.08692462,
-0.0180614479,
0.1969266534,
-0.0030606736,
-0.5139039755,
0.1683695614,
-0.1095315963,
0.1652676612,
-0.5792858601,
0.0690938085,
0.2280594409,
0.149948895,
-0.1392503381,
0.0695120096,
0.102752775,
0.1299788505,
0.2193457484,
0.2406878471,
-0.1010679901,
-0.0733280629,
0.0974662974,
0.279014945,
-0.151263088,
-0.1866813451,
-0.0302195959,
-0.1159706935,
-0.1603492647,
-0.1726068407,
0.2221864611,
-0.0752003044,
0.0711882338,
0.3703365624,
-0.3475042284,
0.21749942,
-0.443282783,
0.377145201,
0.1857393086,
-0.1287379563,
-0.0365789235,
0.0839677081,
-0.0648310184,
-0.3235012591,
0.4672774673,
0.3401454687,
0.2324958295,
0.085623078,
0.0133122867,
-0.2151788324,
0.0051041953,
0.513584137,
0.0474880785,
0.005223033,
0.4486816525,
-0.390194267,
-0.338221699,
0.0740338117,
-0.2447769046,
0.4777835011,
0.0145511543,
-0.1510380805,
-0.1116698384,
-0.0144166267,
-0.0516226366,
0.1202389076,
0.1177458912,
-0.2833403051,
-0.4744014144,
0.0319926366,
0.0141879944,
0.0148383342,
-0.1975263357,
0.2254749388,
-0.2813906372,
-0.0948788002,
-0.1291197985,
0.4669205844,
-0.0685880631,
-0.1200570986,
-0.3512739241,
0.1876307577,
0.1087186411,
0.2251849174,
0.4164705873,
0.0754593685,
0.0582722016,
-0.1651851386,
0.0757235289,
0.0470710956,
0.1906224042,
-0.0528149307,
-0.1015419886,
0.1430753767,
0.0815636069,
-0.0329464525,
-0.3104360402,
-0.0263723228,
0.2088257074,
-0.2509789765,
-0.0839006901,
0.4362270236,
0.0926920921,
-0.2283172309,
0.0312081687,
0.0780949369,
-0.187164396,
0.7877022028,
-0.0610990748,
-0.0189593136,
0.1026378497,
0.2547628582,
0.5230178833,
-0.1736033857,
-0.3759200871,
-0.0495073274,
0.7507704496,
-0.4973526001,
-0.0682792068,
0.2854039967,
0.2297148556,
0.0863567665,
-0.0432122201,
0.2874249816,
0.0999554545,
-0.0676923469,
0.3426644206,
-0.0046432195
] |
https://github.com/huggingface/datasets/issues/1478 | Inconsistent argument names. | Also for the `Accuracy` metric the `accuracy_score` method should have its args in the opposite order so `accuracy_score(predictions, references,,,)`. | Just find it a wee bit odd that in the transformers library `predictions` are those made by the model:
https://github.com/huggingface/transformers/blob/master/src/transformers/trainer_utils.py#L51-L61
While in many datasets metrics they are the ground truth labels:
https://github.com/huggingface/datasets/blob/c3f53792a744ede18d748a1133b6597fdd2d8d18/metrics/accuracy/accuracy.py#L31-L40
Do you think predictions & references should be swapped? I'd be willing to do some refactoring here if you agree. | 19 | Inconsistent argument names.
Just find it a wee bit odd that in the transformers library `predictions` are those made by the model:
https://github.com/huggingface/transformers/blob/master/src/transformers/trainer_utils.py#L51-L61
While in many datasets metrics they are the ground truth labels:
https://github.com/huggingface/datasets/blob/c3f53792a744ede18d748a1133b6597fdd2d8d18/metrics/accuracy/accuracy.py#L31-L40
Do you think predictions & references should be swapped? I'd be willing to do some refactoring here if you agree.
Also for the `Accuracy` metric the `accuracy_score` method should have its args in the opposite order so `accuracy_score(predictions, references,,,)`. | [
0.2731815577,
-0.3669870198,
0.0105246622,
0.2615754008,
0.4064150751,
-0.2207672447,
0.2435522974,
-0.0329289772,
-0.1960492432,
0.0497914106,
-0.1712592095,
0.1103998572,
0.0239898134,
0.1010814384,
-0.013367963,
-0.3983659744,
0.0884955525,
-0.1208067462,
-0.2717052996,
-0.2669148743,
-0.0417978093,
0.3241396844,
-0.1340850145,
0.1431114674,
-0.3410863578,
0.1306582242,
0.0284887683,
-0.2280270904,
-0.1659615189,
-0.3751147687,
0.2316485345,
0.1122538075,
-0.2013057917,
0.5761032701,
-0.0001090249,
-0.098629348,
0.4503882229,
0.0429985151,
0.097953096,
-0.1389464289,
0.2040540725,
0.0040315017,
0.3800654709,
-0.2709211111,
-0.1811486483,
0.0455642529,
-0.16981861,
0.3196668029,
0.5733879209,
0.2023381144,
0.2764056623,
0.4994626641,
0.0267405007,
-0.182053715,
-0.0167505555,
0.3684444726,
-0.1435260028,
0.2194007486,
-0.0225852411,
0.1702656001,
-0.2521291375,
0.2552763224,
0.2196522057,
-0.0799880177,
0.4930859804,
0.0928412974,
0.0441888459,
0.0080637196,
-0.2042263597,
0.0753110051,
0.0980847925,
-0.2048591822,
-0.5751947165,
-0.1471260935,
-0.1671089679,
-0.2236676216,
0.0386005044,
-0.0628711805,
-0.0837080032,
-0.0743604749,
-0.3173149228,
0.066656217,
-0.2484065294,
-0.1054516956,
-0.0565713793,
0.3778788447,
-0.0511570908,
0.0255958531,
0.203597948,
-0.0259752721,
0.0071264845,
-0.0220369883,
0.0458586328,
0.2064844072,
-0.2466251999,
-0.2352696806,
0.0978798717,
0.334154278,
0.0830830559,
-0.0604762435,
-0.0509150513,
0.1332099587,
-0.0257562734,
-0.0544034839,
0.2670994699,
0.4839114249,
0.1295622587,
0.1448743343,
0.1113020629,
0.1941495985,
0.0352855474,
0.0035419702,
0.3475992978,
-0.0608535632,
0.195245564,
-0.037650574,
-0.2405876368,
-0.453814894,
0.0780746192,
-0.0467877984,
0.1735587418,
-0.2127190381,
0.308349967,
0.2447805852,
-0.4023402035,
0.1304411292,
0.100499548,
0.1457680464,
-0.1560168713,
0.0451314338,
-0.2794976234,
-0.0354639553,
-0.5579996705,
0.2265984416,
-0.0161454454,
0.1510370821,
0.4049932957,
0.0445042588,
0.4226754606,
-0.1160894707,
-0.2303496301,
0.0658565834,
0.1480444968,
0.0695278272,
-0.3464032114,
-0.0202822853,
0.0759002492,
-0.1423485428,
-0.1665619165,
-0.1238342524,
-0.191526413,
-0.2033850849,
0.082401745,
0.2798466384,
-0.3662950993,
-0.0239015743,
-0.1684895158,
0.1240848303,
0.0328052193,
-0.0052803257,
0.0329590105,
-0.1358793378,
-0.0155631453,
-0.1864934713,
0.2790563107,
0.2494156212,
0.1906177998,
-0.3905467987,
0.1428602934,
-0.1148654744,
-0.1832008958,
0.3622814417,
-0.236115098,
-0.0226185527,
-0.0717778653,
-0.0623342022,
0.1299927235,
-0.3559309542,
-0.1099892929,
0.0228485446,
0.2844338417,
0.1188532561,
-0.0488433205,
-0.0386589505,
-0.0623238683,
-0.24523516,
0.0481167696,
-0.133120507,
0.1778406948,
0.0154769141,
-0.5007194877,
-0.2730276883,
-0.1432958245,
0.0979719982,
0.12496268,
0.1286140978,
-0.2446161062,
0.1608840227,
0.3392627239,
-0.0987042338,
-0.3262061775,
0.102804549,
0.230823487,
-0.1984649301,
0.0530897081,
0.0304742046,
-0.4228442013,
-0.0428094678,
-0.2905336618,
0.4193037748,
0.2434007823,
-0.2294384688,
-0.1947894543,
0.0939319432,
-0.0211677682,
-0.1322896481,
0.2385232151,
-0.0693552643,
0.1061499119,
-0.0104012117,
-0.1873705089,
0.023417946,
-0.2420467138,
0.224582836,
-0.2961936891,
0.1095302925,
-0.1609721035,
-0.1399496347,
0.0054603969,
0.2729820609,
0.1944746077,
-0.1046130881,
-0.1219412312,
0.4222339988,
0.0230565201,
0.2150877416,
-0.1471576542,
0.5913028717,
0.3448304832,
-0.1929058582,
-0.0175549611,
0.1209851801,
-0.0283424389,
-0.2437529713,
-0.3149510324,
0.4001960158,
-0.0857330635,
0.1407818496,
0.333114922,
-0.1448750198,
-0.0783898234,
0.0735543072,
-0.3948217034,
-0.0057424107,
0.2205548435,
-0.1619673967,
0.2159051299,
0.1072520986,
-0.251216799,
-0.14854303,
0.3663342297,
-0.0666089505,
-0.1350832283,
0.2656883895,
-0.0148496367,
-0.0443813093,
-0.1563390642,
0.1039331406,
0.4005810022,
0.2021438181,
-0.0817385912,
0.1937269121,
-0.1493364573,
-0.1747567952,
0.146733135,
0.3263317943,
-0.3253340125,
-0.0154469423,
0.0735311732,
0.1794380546,
-0.3161492646,
-0.0564284101,
-0.3818184137,
0.0026231157,
-0.1877408028,
0.1746572256,
0.05610881,
0.0912809744,
-0.4408505857,
-0.4194332063,
-0.508570075,
-0.3730959892,
0.0834481269,
-0.0125853783,
-0.1168554574,
0.2910580039,
0.0102693485,
0.2725937068,
-0.2012781501,
0.3011481762,
-0.2318160236,
-0.1809812635,
-0.1449622363,
0.0649187267,
-0.000527984,
-0.1864448786,
0.3517943621,
-0.1220341995,
-0.0329940319,
0.1803675145,
-0.7035817504,
0.1564162374,
-0.0593431965,
0.4357471168,
0.2694192529,
-0.0466162302,
0.0246979948,
-0.21721825,
0.472784549,
-0.3604516983,
0.133821398,
-0.0346326008,
0.0381669141,
-0.3561862409,
-0.1619342119,
-0.2841194272,
-0.0231736396,
-0.2212373912,
0.1652252674,
0.0890470147,
0.0157860238,
0.646184206,
-0.0748783201,
-0.0009127448,
-0.1254454106,
0.2407365739,
-0.1744230688,
-0.3264143169,
0.3574676514,
-0.1375956535,
-0.3368233442,
-0.2210953832,
0.0389714763,
0.2903653383,
-0.2625150383,
-0.2988056839,
-0.5284349918,
-0.1652683765,
-0.2844393551,
0.1087452397,
0.2394402772,
0.0225935131,
0.0692534521,
-0.0820013434,
-0.0824646875,
-0.5388014913,
0.22796987,
0.0763644427,
0.3385047913,
-0.1704763025,
0.0478969477,
-0.0700189695,
0.6143708229,
0.2681388855,
-0.3585924506,
-0.022196997,
0.169596523,
0.0751660466,
-0.1357619017,
-0.3061010242,
0.0876460224,
0.0679085776,
-0.1022750363,
0.3983545899,
0.174719587,
0.0820221081,
-0.2248392552,
0.0019414395,
-0.0715103298,
-0.3880082667,
0.0747026801,
0.0903990194,
0.0090204552,
0.0017708574,
0.3643042445,
-0.2551612556,
-0.0260041188,
0.3872631788,
0.1652654409,
0.0230907556,
0.0596459396,
-0.3090394437,
-0.2635151446,
-0.3135915995,
0.0789282396,
-0.1081814468,
0.0101663787,
0.0114542227,
-0.2042497694,
0.0426031686,
0.0314126201,
0.3680110872,
0.1540135294,
-0.1849603653,
-0.0439780504,
-0.2024405152,
-0.1204513237,
-0.1366417855,
-0.0866006911,
-0.2303574234,
0.14417243,
0.5868595243,
-0.4578205347,
-0.2639003098,
0.1538532823,
-0.0666937903,
-0.2070074826,
-0.186527431,
-0.1079440862,
-0.0729937777,
0.1400526017,
-0.0854695663,
-0.065171279,
-0.1613923013,
-0.1461493075,
0.1129130349,
0.223585546,
0.1055684611,
0.2376545817,
0.4936466813,
0.2925415933,
-0.277631402,
0.0513537675,
0.2133577317,
0.171778515,
-0.0803302824,
0.2920028865,
-0.2146091908,
-0.1227953359,
-0.1981619298,
-0.1105415449,
0.2148973495,
0.2506075501,
0.1510547847,
0.0156920515,
-0.0063186446,
0.2994706333,
-0.1539943814,
0.0385587662,
0.4508612752,
0.0395734496,
-0.1558492333,
-0.1706236154,
0.6738685966,
-0.0601561517,
-0.2831740379,
0.1638412327,
0.4449318945,
-0.2272999138,
0.5194250941,
0.2175827175,
1.0889225006,
0.1069162413,
0.0494515486,
0.3158135712,
-0.27303496,
0.4263896644,
0.0115114022,
0.0828663111,
-0.3455778658,
-0.1167233959,
0.09765625,
-0.0800309032,
-0.0665786862,
0.0281957984,
-0.2774502635,
0.331679821,
-0.0596055798,
0.2070012242,
-0.1536545455,
0.0992833376,
0.2525375485,
-0.1773384362,
-0.3854652643,
0.224141717,
-0.0717901886,
0.2167674899,
-0.1630472392,
-0.1830933243,
-0.0060108737,
-0.2771734893,
-0.1023513973,
0.0304844603,
-0.0059709214,
-0.1198211238,
0.6014566422,
0.0198698547,
0.1522490978,
0.1620302796,
0.493783921,
0.1199935526,
-0.2232740372,
0.2148796767,
-0.3081081808,
0.2238100767,
-0.0079231029,
0.1512021124,
0.185440883,
-0.0896100849,
-0.1417719126,
-0.0066043297,
0.0774526,
-0.1209674031,
-0.336794585,
-0.2036024481,
0.0267845076,
-0.3191963434,
0.1342592239,
-0.0585561916,
-0.1731135696,
-0.064545691,
0.2134261131,
0.0138394246,
-0.1995618492,
0.4642744064,
0.310634017,
-0.0782203749,
-0.1932543367,
0.2929200828,
-0.0322320051,
-0.233281821,
0.0905378461,
0.0629581884,
-0.0986728668,
-0.15771088,
-0.4424431622,
0.0355702005,
-0.4661083817,
0.1386986226,
-0.1761012524,
-0.3279391229,
-0.0027028343,
0.4734793901,
0.551204443,
0.0011472373,
-0.0902010053,
-0.0343906097,
-0.3842214346,
0.2968619764,
0.2703804374,
0.2962862551,
-0.2652158141,
0.2663922012,
0.0294158962,
0.3402482271,
-0.4273925722,
-0.202805832,
-0.2410655916,
0.0717970952,
0.0532617047,
-0.3644261658,
0.1708068997,
-0.0033058305,
0.1121911705,
-0.0753500983,
-0.2686131597,
-0.1798395663,
-0.2429632097,
0.0790381655,
0.0719846636,
-0.0633974448,
-0.0843337923,
0.2383141667,
0.1235145926,
-0.2001894712,
0.0944143608,
0.2596894801,
0.1465180069,
0.500056684,
-0.0304104351,
0.2394501716,
0.0603537224,
-0.0846124664,
0.4427680969,
0.0116533823,
0.3352668285,
-0.0743969381,
-0.2876384854,
-0.2415058613,
0.1656608433,
0.3212960958,
0.0125829708,
0.1943300217,
0.2605949044,
-0.0097309323,
-0.1582774073,
0.2121721357,
0.3628946245,
0.3294596374,
-0.0170120429,
-0.1882124245,
-0.1788673252,
0.2839376032,
-0.18276003,
-0.1095077246,
0.0024617186,
0.2359220535,
0.0959532335,
0.2922530472,
0.0234674793,
-0.0353056826,
0.2685286999,
0.1122433096,
0.5112107992,
-0.3401263058,
0.2363714725,
0.1527334452,
-0.0366104245,
0.0856957212,
0.4524395466,
-0.0876651332,
0.3393714726,
-0.0827498436,
-0.2079925239,
0.2195243686,
-0.4933941066,
-0.0465505309,
0.2815237641,
0.3500542343,
-0.2611861527,
0.194048509,
0.1739082336,
0.1476290077,
-0.035783764,
0.4031771719,
-0.0133875394,
-0.4535731077,
-0.4093822539,
-0.0276818629,
-0.0757886991,
-0.2337374389,
-0.1527150571,
-0.2250811607,
-0.1819278002,
-0.1274144202,
-0.099888958,
-0.1553855091,
0.5217834711,
-0.0358607806,
0.0308544021,
-0.0640525818,
-0.3481563032,
0.1288259476,
0.4875503778,
-0.0767108947,
0.2586069405,
0.4656588435,
-0.047151871,
0.0578515865,
0.3424310684,
0.2485371381,
0.1830040812,
-0.054247912,
0.0547023118,
0.0416977741,
-0.0485284701,
0.0732840374,
0.3361124396,
0.0001354835,
-0.0086938702,
0.150936082,
0.2178556621,
-0.2653507888,
0.3153880835,
-0.5025448203,
0.1285455227,
-0.2653688192,
0.737208426,
-0.0105509777,
-0.2024536729,
-0.1395483464,
-0.194698289,
-0.3662179708,
0.0185859352,
0.055879619,
0.0265463069,
0.0848879591,
-0.1573364735,
0.1181368306,
0.1454442143,
0.5106710196,
0.3234312236,
0.2254028171,
-0.391756773,
0.0454439446,
-0.3647668362,
0.0143845621,
0.4444294274,
0.3885426521,
-0.1138792932,
-0.0852998272,
0.0599843897,
0.0212447774,
0.1439102739,
-0.3385239244,
-0.0759206936,
-0.1304984689,
-0.3831561208,
0.09574119,
-0.3658343852,
-0.27121979,
0.2466218919,
0.1024474874,
-0.0437814333,
-0.0287932251,
0.0867956504,
-0.0375149772,
0.1586440653,
0.1548334211,
0.2553787529,
0.1019794941,
0.1724389941,
0.326867491,
0.01413697,
-0.1190448776,
0.0525726452,
-0.1921420842,
-0.0984349176,
-0.0220790673,
-0.3004075587,
0.3137197196,
0.0419787653,
-0.1632678062,
-0.3625546992,
0.076294601,
0.1909287274,
-0.3590405881,
-0.3442988396,
0.1590269953,
-0.0391312651,
-0.2292038351,
0.2680912018,
0.5187250376,
0.0958219618,
0.2948409021,
-0.2352163643,
-0.1957510859,
0.6630078554,
-0.3643351495,
0.0121413032,
-0.0396219119,
0.2570452988,
-0.0394442677,
-0.2340293676,
-0.9655606151,
-0.0292498581,
0.0918551907,
-0.2649494112,
-0.2191562057,
0.2893411219,
-0.0328867435,
-0.1080774441,
-0.0495718047,
0.5406028628,
0.145881176,
-0.1375699937,
0.0589521751,
-0.0361502022
] |
https://github.com/huggingface/datasets/issues/1478 | Inconsistent argument names. | Thanks for pointing this out ! 🕵🏻
Predictions and references should indeed be swapped in the docstring.
However, the call to `accuracy_score` should not be changed, it [signature](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.accuracy_score.html#sklearn.metrics.accuracy_score) being:
```
sklearn.metrics.accuracy_score(y_true, y_pred, *, normalize=True, sample_weight=None)
```
Feel free to open a PR if you want to fix this :) | Just find it a wee bit odd that in the transformers library `predictions` are those made by the model:
https://github.com/huggingface/transformers/blob/master/src/transformers/trainer_utils.py#L51-L61
While in many datasets metrics they are the ground truth labels:
https://github.com/huggingface/datasets/blob/c3f53792a744ede18d748a1133b6597fdd2d8d18/metrics/accuracy/accuracy.py#L31-L40
Do you think predictions & references should be swapped? I'd be willing to do some refactoring here if you agree. | 49 | Inconsistent argument names.
Just find it a wee bit odd that in the transformers library `predictions` are those made by the model:
https://github.com/huggingface/transformers/blob/master/src/transformers/trainer_utils.py#L51-L61
While in many datasets metrics they are the ground truth labels:
https://github.com/huggingface/datasets/blob/c3f53792a744ede18d748a1133b6597fdd2d8d18/metrics/accuracy/accuracy.py#L31-L40
Do you think predictions & references should be swapped? I'd be willing to do some refactoring here if you agree.
Thanks for pointing this out ! 🕵🏻
Predictions and references should indeed be swapped in the docstring.
However, the call to `accuracy_score` should not be changed, it [signature](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.accuracy_score.html#sklearn.metrics.accuracy_score) being:
```
sklearn.metrics.accuracy_score(y_true, y_pred, *, normalize=True, sample_weight=None)
```
Feel free to open a PR if you want to fix this :) | [
0.2569318414,
-0.4395508468,
-0.0103001464,
0.1632705778,
0.4465913773,
-0.2115411907,
0.1434418559,
-0.0334952772,
0.0414285064,
0.0814789832,
-0.0405132025,
0.1803877652,
-0.0548594669,
0.1349071711,
0.0187774468,
-0.410030067,
0.1643258929,
-0.1507950127,
-0.2882173359,
-0.2812668383,
-0.0857050344,
0.3164679408,
-0.1572446674,
0.100551635,
-0.4445048571,
0.0573825948,
0.0731786266,
-0.2022774965,
-0.1855972856,
-0.3112766445,
0.2928377092,
0.0348810665,
-0.1435787976,
0.5684483647,
-0.0001043543,
-0.0801728591,
0.5083734989,
-0.004819945,
0.0420005731,
-0.1177940741,
0.1701011658,
0.0062207668,
0.291608721,
-0.3434051871,
-0.1939493418,
0.2135118693,
-0.1863262802,
0.1779735535,
0.4698331952,
0.2248387039,
0.3030235171,
0.440297097,
0.0646000654,
-0.1933781803,
-0.0585102402,
0.2556340694,
-0.0898000598,
0.184470579,
-0.1508144289,
0.104470551,
-0.2257789969,
0.3445388675,
0.1872503459,
-0.1968577057,
0.5687682033,
0.1029589325,
0.079935573,
-0.1289539784,
-0.091259025,
0.0444575883,
0.0709267184,
-0.2305464745,
-0.419395268,
-0.146227017,
-0.1154459417,
-0.2439675629,
0.0441443287,
-0.0038005435,
-0.1105912104,
-0.1083741561,
-0.3040138781,
0.0043422207,
-0.2384107709,
-0.0871794298,
-0.1200483665,
0.4932813048,
-0.044805143,
0.0596697144,
0.2030074745,
-0.0181639027,
0.075519152,
-0.0440237224,
-0.0175676383,
0.1420896351,
-0.2674140632,
-0.2524873614,
-0.0743410513,
0.2494469285,
0.0487836823,
-0.1247601956,
0.0182266124,
0.11762245,
-0.026474895,
-0.0782871097,
0.277472347,
0.5153082609,
0.0807188228,
0.2178991586,
0.0439517424,
0.2514873147,
0.092102848,
-0.0154797332,
0.2969270647,
-0.1088856384,
0.1562729776,
-0.045234099,
-0.1819579154,
-0.2827302516,
0.006398092,
0.0453012586,
0.0737396851,
-0.0733464435,
0.2071208656,
0.1893319935,
-0.3304439485,
0.213877961,
0.205552578,
0.1191919371,
-0.0907178223,
0.0011590321,
-0.31133008,
0.0857704356,
-0.5817628503,
0.2180777937,
0.0201008674,
0.213952288,
0.3889666498,
0.0482910201,
0.3449581563,
-0.1749674976,
-0.2742282152,
0.0641727522,
0.129664585,
0.0910408571,
-0.3719279468,
0.0573800281,
0.090433605,
-0.0964157283,
-0.1146554276,
-0.0022817622,
-0.2376354039,
-0.1269274056,
0.1172141284,
0.3066255748,
-0.3674983382,
-0.0712008402,
-0.1644514203,
0.1566269845,
0.0240527187,
0.1329241246,
0.0971585959,
-0.1436060816,
-0.0712373108,
-0.1228671148,
0.3704479039,
0.1328170747,
0.2067987472,
-0.3164632618,
0.1525973827,
-0.0030897127,
-0.2281823903,
0.2791340947,
-0.2480559647,
0.0794884712,
-0.0573106632,
-0.0417285785,
0.0855610967,
-0.433706522,
-0.1464654952,
-0.0239149854,
0.1614613235,
0.0178516507,
-0.1277335882,
-0.0667632073,
-0.0342099145,
-0.1476314813,
-0.0077673327,
-0.033803422,
0.174159348,
0.067770116,
-0.6005350947,
-0.3513385952,
-0.1266985834,
-0.0123307174,
0.200101465,
0.1121136695,
-0.2058455944,
0.3587808609,
0.3848201632,
-0.0606323183,
-0.2027908862,
0.2178660482,
0.3127883375,
-0.1990872324,
0.0022051237,
0.0562241524,
-0.430152297,
-0.0479109697,
-0.272061795,
0.4051238894,
0.1613991857,
-0.2514889836,
-0.2848739326,
0.1218405291,
-0.019459188,
-0.2196540385,
0.3248641491,
-0.072280094,
0.2226165682,
-0.011103644,
-0.0927922353,
-0.0237481594,
-0.2221786082,
0.1867496073,
-0.337233007,
0.286871016,
-0.2119273692,
-0.0809810758,
0.0009326788,
0.2739036083,
0.2689195275,
-0.0639837831,
-0.0738745779,
0.4159816206,
-0.100996308,
0.1458869278,
-0.1311033517,
0.3805530667,
0.3150109649,
-0.2862719297,
-0.010840469,
0.077669546,
-0.0136619397,
-0.1669188887,
-0.2959801555,
0.2807635367,
-0.2125170827,
0.1141027138,
0.1887627542,
-0.0884110183,
-0.1432166994,
0.0430113152,
-0.290368259,
-0.0789772123,
0.0140886875,
-0.2077497691,
0.1035241336,
0.0311890747,
-0.1021188796,
-0.1167835891,
0.4021647274,
-0.1101825386,
-0.171069935,
0.1190949306,
-0.1837715656,
-0.0675296634,
-0.1294608563,
0.1501443833,
0.3384485543,
0.1897509098,
-0.1371939927,
0.1450781375,
-0.1647855937,
-0.1246197447,
0.1545539498,
0.3616390526,
-0.2243348807,
0.0703090876,
0.1447582841,
0.1423943639,
-0.3193591833,
0.0456407703,
-0.2093980461,
0.064972721,
-0.1356942654,
0.1865711957,
0.0880623981,
0.2206481695,
-0.4930604398,
-0.3447499275,
-0.3960668445,
-0.4616572261,
0.0575412028,
0.0512602888,
-0.0770540312,
0.2703110576,
0.0260871612,
0.1901891232,
-0.0972844064,
0.1863816381,
-0.1831386983,
-0.2294820994,
-0.1294648349,
0.1167705879,
-0.0222529788,
-0.10219457,
0.2585439682,
-0.0462663285,
-0.004725771,
0.0898599923,
-0.6740862131,
0.0580762736,
-0.1147526652,
0.3619230688,
0.2027483135,
-0.0060334988,
-0.0771899968,
-0.3147088587,
0.4627212584,
-0.3848543465,
0.0855311453,
0.0152146835,
0.1265779287,
-0.248989284,
-0.1569399238,
-0.2826847136,
0.0228785463,
-0.1770999283,
0.0959239379,
0.09973602,
-0.1777560413,
0.6479946375,
0.095663704,
-0.0052459431,
-0.2033054531,
0.1182727739,
-0.2391465902,
-0.2335710973,
0.3564308584,
-0.0545613877,
-0.4124353528,
-0.2016922683,
-0.0423714444,
0.3321445882,
-0.2471006215,
-0.3998717964,
-0.485927999,
-0.1366321892,
-0.1886881739,
0.0765183493,
0.1889560372,
0.0413148589,
0.03904064,
-0.0667266026,
-0.1327355653,
-0.4137023091,
0.2914661169,
0.0208936073,
0.2645951807,
-0.1987656355,
0.0895242244,
-0.0390895754,
0.7449864149,
0.2926263511,
-0.3071356118,
-0.0790219903,
0.2613865733,
0.1781191677,
-0.0992986485,
-0.228846401,
0.0927715153,
0.0014607622,
-0.0256202184,
0.3370516896,
0.015388499,
0.111461699,
-0.1759307086,
0.0077855112,
-0.0346546136,
-0.4441074729,
0.0643238574,
0.1354659945,
-0.0013580072,
0.017356446,
0.3422451615,
-0.2973369956,
-0.113008216,
0.4060266912,
0.0941156968,
-0.0518896654,
0.0938119218,
-0.3671160936,
-0.3119593263,
-0.385248512,
-0.0452663563,
-0.147519365,
0.0864071399,
0.0665899962,
-0.199953258,
0.1263786554,
0.0075905016,
0.310939908,
0.174189955,
-0.0744168013,
-0.0606329739,
-0.1424402297,
-0.108878091,
-0.1683871299,
-0.1783251166,
-0.1928322166,
0.0903370902,
0.4623685479,
-0.4577734768,
-0.2010157704,
0.2234459817,
-0.0120538184,
-0.2121215165,
-0.1751926243,
-0.0460778698,
-0.0623126961,
0.089967981,
-0.0738731921,
0.1063748673,
-0.0004624811,
-0.260363102,
0.1670317948,
0.1651107669,
0.0645123422,
0.1582478583,
0.3301129043,
0.3451451957,
-0.1230528355,
0.0834308565,
0.1829056591,
0.2164637893,
-0.0981518552,
0.3613773286,
-0.182508409,
-0.1572303325,
-0.1379507035,
-0.0892180055,
0.0655861348,
0.2963194251,
0.1103033349,
0.0690541863,
0.0225028731,
0.236621052,
-0.1196968481,
0.0871278867,
0.359416008,
0.0525656193,
-0.1456013769,
-0.0958317444,
0.7624720931,
-0.0418550707,
-0.281208843,
0.0825650543,
0.3479248583,
-0.3535613716,
0.491542846,
0.3038063943,
0.9801297188,
0.1556284726,
0.1015793905,
0.2742385268,
-0.2376194894,
0.5145317316,
-0.1806177348,
0.1069841832,
-0.3739767373,
-0.0533209853,
0.1637926251,
-0.0009504093,
-0.1805529594,
0.0130475527,
-0.298977524,
0.2325779051,
-0.0967231914,
0.2205070704,
-0.1810118109,
0.1618667394,
0.3003579378,
-0.1440810114,
-0.2639052868,
0.2612042725,
-0.0236062352,
0.1913765967,
-0.1130197719,
-0.2304831147,
-0.1182728335,
-0.213836506,
-0.0463452712,
0.0372555852,
-0.0597799793,
-0.0808766633,
0.4814075232,
-0.0448386744,
0.1836670786,
0.181164071,
0.5718564391,
0.159443751,
-0.287166357,
0.2436347306,
-0.223919034,
0.1114661992,
-0.0298064891,
0.1648177058,
0.1402428001,
-0.0821543559,
-0.2135183662,
0.1373217255,
-0.0077697299,
-0.0537045039,
-0.4129835069,
-0.1863074005,
0.0327014476,
-0.3877937794,
0.075422667,
0.0081554661,
-0.0997477844,
-0.0771081448,
0.2453720123,
-0.0471380502,
-0.1394182146,
0.2702656388,
0.4160870314,
-0.0851859674,
-0.1407623291,
0.3222424984,
0.0007674414,
-0.2211218327,
0.1694960594,
-0.0562917665,
-0.1175068244,
-0.1953237653,
-0.4273694754,
0.038856905,
-0.5343939662,
0.0756659731,
-0.0311136954,
-0.2663200796,
0.1231164336,
0.538474977,
0.5222582817,
-0.0018296127,
-0.0101203285,
-0.0304522309,
-0.318957895,
0.3316345215,
0.0909777135,
0.2659344971,
-0.2274131775,
0.3254043758,
-0.0325060412,
0.3130789101,
-0.4708199501,
-0.1727944613,
-0.1393196434,
0.1091418415,
0.1204730794,
-0.4166150987,
0.0991411805,
0.0321755856,
0.1179072559,
-0.0295724478,
-0.2310784608,
-0.2092256397,
-0.1939097345,
0.0637801662,
0.1857424825,
-0.0329040587,
-0.1109314039,
0.2121654898,
0.1622436196,
-0.192219466,
0.119168207,
0.2229341716,
0.2008503973,
0.4330794811,
-0.0359403156,
0.3352215588,
0.0477250069,
-0.1254090071,
0.3776904941,
-0.01101497,
0.2012270391,
-0.0752760395,
-0.0959924981,
-0.1424957514,
0.0520472638,
0.2900217474,
-0.1264625192,
0.2532615364,
0.2303696573,
-0.1209506392,
-0.1893376708,
0.2340859175,
0.3229608834,
0.2558215261,
-0.1402050257,
-0.2384916544,
-0.1198649034,
0.3315635324,
-0.1774672717,
-0.0892364681,
0.0248328764,
0.1517831832,
0.1211132407,
0.2600542307,
0.0938527957,
-0.2307928354,
0.3086582422,
0.2216137797,
0.467012018,
-0.3117229939,
0.3354870975,
0.204652518,
-0.0056984904,
0.02241024,
0.4360670745,
-0.0458877124,
0.2789548934,
0.0891932026,
-0.1828469932,
0.1972230524,
-0.4349938035,
-0.0839251205,
0.2375444025,
0.3870135546,
-0.1375892162,
0.1356675029,
0.0856373757,
0.130125314,
-0.1282188594,
0.3575026393,
-0.0262752064,
-0.4033466578,
-0.4696719944,
-0.0326709785,
-0.1958778948,
-0.238110289,
-0.1704581231,
-0.1990294307,
-0.1440723687,
-0.1020295098,
-0.0963798761,
-0.1623238623,
0.443882972,
-0.0886593312,
-0.1972816139,
0.0583591461,
-0.2875339091,
0.267683953,
0.4577463865,
-0.0942044854,
0.3053968847,
0.3139284849,
-0.0677828342,
0.0710599944,
0.199914366,
0.1426867694,
0.2681038976,
-0.0580845177,
0.0186996311,
0.1312799752,
-0.095422253,
0.123498857,
0.3089661598,
0.1333377808,
-0.1635094881,
0.237604335,
0.2542571127,
-0.3229694963,
0.2580934763,
-0.3386290967,
0.2281220257,
-0.239528656,
0.4624903798,
0.0390588716,
-0.1340336055,
-0.1528574526,
-0.1531213522,
-0.3504594862,
0.043332871,
-0.0394207537,
0.034095414,
0.1457489729,
-0.2540511489,
0.144010365,
0.1248265654,
0.4362033904,
0.2979637682,
-0.0121713048,
-0.3062781096,
0.0834587142,
-0.3498923182,
0.0501787141,
0.3667323291,
0.366101414,
-0.166788578,
-0.1049026251,
0.0701215416,
0.0493787378,
0.0706793591,
-0.1864988208,
-0.056910973,
-0.1365020126,
-0.3562356234,
0.0285186078,
-0.3498354256,
-0.2375131845,
0.3309966922,
0.0615643375,
-0.0713768676,
-0.0111632338,
0.129048422,
-0.0126869446,
0.1184192896,
0.0774325877,
0.29081586,
0.078683883,
0.1582376212,
0.354888469,
0.0073336512,
-0.1421248466,
-0.0491092205,
-0.1930250078,
-0.1361328661,
0.0086777909,
-0.2023634166,
0.3826268613,
0.0849797502,
-0.2019888759,
-0.2672128081,
0.032714691,
0.2549817264,
-0.3714528084,
-0.3458367288,
0.1677334607,
-0.0547166355,
-0.1213577092,
0.3220866919,
0.4787114859,
0.0301893428,
0.253216058,
-0.1803781986,
-0.3619758785,
0.5924824476,
-0.4610415995,
-0.0664846972,
0.0346092805,
0.1938369125,
-0.0236743111,
-0.2490111142,
-1.0206305981,
0.0651258603,
0.0875695869,
-0.1691466421,
-0.1690047234,
0.1944059879,
-0.071814917,
-0.0802268088,
-0.0244348198,
0.5383816957,
0.1742250025,
-0.1455207467,
0.0278858766,
-0.0938529596
] |
https://github.com/huggingface/datasets/issues/1452 | SNLI dataset contains labels with value -1 | I believe the `-1` label is used for missing/NULL data as per HuggingFace Dataset conventions. If I recall correctly SNLI has some entries with no (gold) labels in the dataset. | ```
import datasets
nli_data = datasets.load_dataset("snli")
train_data = nli_data['train']
train_labels = train_data['label']
label_set = set(train_labels)
print(label_set)
```
**Output:**
`{0, 1, 2, -1}` | 30 | SNLI dataset contains labels with value -1
```
import datasets
nli_data = datasets.load_dataset("snli")
train_data = nli_data['train']
train_labels = train_data['label']
label_set = set(train_labels)
print(label_set)
```
**Output:**
`{0, 1, 2, -1}`
I believe the `-1` label is used for missing/NULL data as per HuggingFace Dataset conventions. If I recall correctly SNLI has some entries with no (gold) labels in the dataset. | [
0.235130012,
-0.490634501,
-0.1780145019,
0.3363342285,
0.2337825596,
0.0211007278,
0.3015909195,
0.2003284991,
0.0807730183,
0.2864295244,
-0.2351151109,
0.3536292911,
-0.2061206698,
0.278016597,
0.0497124344,
0.008970324,
0.2335755229,
0.3703632355,
0.062043298,
-0.4029215574,
-0.3136183918,
0.2042292207,
-0.319752723,
0.1720521748,
-0.4605438709,
0.2223434895,
-0.0642017126,
-0.0900374129,
-0.0218586549,
-0.4933303893,
0.1622598022,
-0.032130532,
-0.0364018194,
0.0682411864,
-0.000104066,
-0.2530910671,
0.0445109308,
-0.0277611502,
-0.4121538401,
-0.2150870264,
-0.1446632743,
-0.1115379259,
-0.0711200163,
-0.2451922596,
-0.226717934,
-0.1674474627,
0.1702844352,
-0.0743094832,
-0.0091540767,
0.2677805424,
0.2388068736,
0.2588722706,
-0.2726500332,
0.0377830192,
0.3642985821,
-0.2887420356,
0.1562073082,
-0.0347503796,
0.0894329175,
0.0672421381,
0.4728742242,
0.5562070012,
-0.1372867227,
-0.0182490293,
0.0932062715,
0.2765091062,
0.0019014189,
-0.3113328218,
0.1946131885,
0.3709360361,
0.1806555688,
-0.2979121804,
-0.2675396204,
-0.099670507,
0.088921085,
-0.4002163708,
-0.0638483167,
0.2426853031,
0.1563143283,
0.2327328026,
0.0338694267,
0.1923459321,
-0.2313924134,
0.1665084809,
-0.0847165361,
0.7823172808,
-0.1968449354,
0.1007971987,
0.1636365354,
0.083966665,
-0.455484122,
-0.0083740875,
0.1143381223,
0.4739840925,
-0.3202087581,
-0.0803487301,
-0.0371238403,
0.0814098269,
0.0021936267,
0.1008564085,
-0.0091489088,
0.000534336,
-0.0670996234,
0.2667036653,
-0.0283776969,
-0.0034565765,
0.3293763399,
0.1094890535,
0.150135681,
-0.180295229,
0.2476407737,
-0.051255893,
-0.2885899544,
-0.1748428494,
0.4545014799,
-0.0278987698,
0.1671318114,
-0.1204604432,
-0.4925310612,
0.112804614,
-0.2256963551,
0.078822203,
0.045817975,
0.1962346435,
-0.0339997858,
0.1010888666,
-0.0013509912,
0.0699645057,
-0.0285992529,
-0.2663109899,
-0.2864690125,
0.1551369578,
-0.0046353941,
-0.2554328144,
0.029597804,
-0.2740987241,
0.2123834491,
0.0571985841,
-0.2523682117,
-0.1367341578,
0.1693802774,
-0.0879597738,
0.3424260616,
0.3663025796,
-0.2240092605,
0.3934679031,
0.0625335872,
-0.2190618217,
-0.1465872675,
-0.0780826509,
-0.0950912312,
-0.1828198135,
-0.1656193137,
0.2921013236,
-0.1998000294,
-0.0757761151,
0.1041484326,
0.0385771058,
-0.0655756891,
0.1044516563,
0.2772589624,
-0.1649907976,
-0.0727410689,
-0.0392624326,
0.2582434714,
0.1227393746,
-0.3179700375,
-0.2274754345,
0.1154530197,
-0.3840162158,
0.2018667012,
0.2267108411,
0.1190627664,
-0.1606124789,
-0.1722414941,
0.2534026802,
0.3473179042,
-0.443572849,
-0.2762625813,
-0.0471900366,
-0.1614972055,
-0.3439723551,
0.1165288314,
0.4465345442,
-0.1905210763,
0.2841312587,
0.211020276,
-0.0879751518,
0.1887964457,
-0.0729886442,
-0.2380008101,
-0.0798482373,
0.3521510959,
0.1141523272,
0.0030626031,
-0.0117153656,
-0.2967056334,
-0.0361138247,
0.3701809347,
-0.0732100457,
0.1165821552,
0.1806010306,
0.3337184489,
0.1263370514,
-0.001026844,
-0.266611129,
-0.1928448975,
0.2538924515,
0.0759869516,
0.4210844934,
0.0298253056,
-0.1766709238,
-0.3001589179,
-0.080393821,
-0.3594005704,
-0.1270226985,
0.2832457721,
0.2410753667,
0.2093349993,
0.0433069356,
-0.2880729735,
0.1890070289,
-0.1809077561,
0.0934366509,
-0.3956656456,
0.1654047966,
0.046127554,
0.0933329016,
-0.1129260659,
0.4331927001,
0.2286771536,
0.1468737721,
0.2520022988,
0.2583920956,
-0.2196791917,
-0.1835344285,
0.2187639326,
0.27652964,
0.011653766,
-0.4192706048,
-0.075634785,
0.3144543469,
0.2531535625,
0.0568550192,
-0.1340446621,
0.4621799588,
-0.0223456565,
0.006658758,
-0.1698779464,
0.1676914096,
-0.0149602164,
-0.0020621649,
-0.2303065509,
-0.439937979,
0.0580247119,
-0.3916897178,
0.2669937611,
0.1903838366,
-0.6285805702,
0.0602434427,
0.3843153417,
-0.3520501554,
0.1174886152,
-0.0791907236,
-0.2204504758,
0.1179620996,
0.175914675,
0.1723509133,
0.0378967188,
0.3321823478,
-0.0567627959,
0.0690156147,
-0.3230641186,
-0.1077100039,
0.0968857631,
0.0975665152,
-0.0577553697,
-0.0542277358,
0.2304429114,
0.0467052497,
-0.2609629631,
-0.2921114862,
-0.2107823044,
0.2805334032,
-0.3731406629,
0.1426358968,
-0.073543027,
-0.2771181464,
-0.3835356832,
-0.1542981565,
-0.1928967535,
-0.2834325433,
0.0728440806,
-0.2848045528,
0.0335914791,
-0.0416482203,
0.0565037131,
0.1506259739,
0.0116781127,
-0.0249486174,
-0.3300714195,
-0.3428486884,
-0.2137783617,
0.1240368336,
-0.3182229698,
0.3774762154,
0.3344858587,
-0.3859688044,
-0.0977402553,
-0.0646957532,
-0.2464905232,
0.0238352027,
-0.2468110472,
-0.0295265857,
0.3473884463,
0.1475403309,
-0.1745039076,
0.2958402932,
0.1671310365,
-0.0695271194,
-0.1272734702,
0.0059844316,
-0.146356076,
-0.0574940443,
-0.3506549895,
-0.251824677,
-0.4022501409,
-0.0249264333,
0.1182145625,
-0.0469043776,
0.1613898277,
0.4060356617,
0.0036263058,
0.3636781573,
0.149114266,
0.2072499543,
-0.2078463733,
-0.2352871001,
0.2357078046,
0.0460596196,
-0.2393188626,
0.0106629906,
0.0943453908,
-0.00063003,
-0.2364697307,
-0.2919709384,
-0.121514082,
-0.0245992169,
0.0083644446,
0.1204762012,
0.10740152,
0.0959755108,
0.0974495038,
-0.0904043093,
-0.230564788,
0.0119007099,
0.2191185504,
-0.2883583307,
0.008227298,
-0.0812750161,
0.1632956415,
0.0013200924,
0.0399135128,
0.399507463,
-0.1092986614,
0.0766127259,
-0.2272636741,
0.2812046707,
0.0771832913,
-0.0067517851,
0.0989887342,
0.4109137654,
-0.0732339546,
0.2068363428,
-0.0151302405,
0.2142566442,
-0.0641548485,
0.1985785216,
-0.0919159576,
-0.0029182474,
-0.0905832201,
0.0777683482,
0.1036107242,
-0.1578300297,
-0.0772638395,
-0.1821530461,
-0.0799097717,
-0.1854282171,
0.0974825993,
-0.1388552785,
0.0557348914,
-0.5141432881,
-0.0829983875,
-0.3476417065,
0.0720675364,
0.1631192118,
0.158831194,
0.1256495267,
-0.094582364,
0.3085620701,
0.1368498951,
0.5765372515,
-0.3166084588,
0.1981487721,
0.2128036618,
0.2803310752,
-0.4869134128,
-0.1139676049,
-0.6099459529,
-0.172561422,
0.370669812,
0.3140949607,
-0.0789951608,
-0.4624697268,
0.3771748543,
0.1205485091,
-0.1256607175,
-0.142198965,
-0.3774521947,
-0.2581160367,
-0.0622942969,
0.0054922993,
0.1518619657,
0.1125732586,
-0.0510513932,
0.0586014241,
0.0383023284,
0.1489055753,
0.4121740162,
0.2228575498,
0.2234491259,
0.1637649983,
-0.1800129861,
0.2618965507,
0.1510831118,
-0.2314296365,
0.4501066804,
-0.0978882536,
-0.2910017371,
0.0848189071,
-0.2944494486,
0.3888796866,
0.0898754373,
0.0088281753,
0.0789894685,
-0.1120537147,
0.2361928821,
-0.2655684948,
0.1670555919,
0.3529891968,
0.2594587505,
-0.4387022853,
-0.3621270359,
0.6647837758,
0.0958044678,
-0.1892317384,
-0.0729786456,
0.2487383485,
-0.3200924993,
0.179499954,
0.2729800642,
0.9641375542,
-0.1005132049,
0.2129389942,
0.3113631606,
-0.3147004545,
0.6079534292,
0.1732766628,
-0.0148407388,
-0.3615510762,
0.0299905948,
-0.0505757853,
0.0933051556,
-0.193484962,
0.2853365242,
-0.0241359491,
0.320192188,
-0.1857814491,
0.1043142602,
0.0621880554,
-0.1088862419,
0.158569023,
0.0066224034,
-0.4599722028,
0.2189108878,
-0.0848496631,
0.2482394129,
-0.190828681,
0.0670366138,
-0.2170331329,
0.0169960372,
0.005934203,
-0.2288413048,
0.1517658234,
-0.0113799702,
0.2311855704,
-0.1229617596,
-0.3427264094,
0.4207296073,
0.6655425429,
0.0809032694,
0.0118341064,
-0.0321959555,
0.0452998318,
0.1970061064,
0.1671715975,
0.1227255613,
0.4367150664,
0.0465490967,
-0.3469098806,
0.1530185491,
0.1269420534,
0.1641941965,
-0.2171165347,
0.1008446515,
-0.3158277571,
0.065571852,
-0.146564126,
0.0275816247,
0.0687633753,
-0.0932064205,
0.1963315755,
0.036052376,
-0.281745851,
-0.1251500547,
-0.0924172401,
-0.4348124266,
-0.1411596239,
0.2630099654,
0.0323561653,
0.2662037313,
0.206687361,
0.0008499147,
-0.0056227907,
-0.2599627972,
-0.0178737808,
0.3614191413,
-0.4468576312,
0.0775832757,
0.1845692992,
-0.0173153896,
0.0059077139,
0.3781410754,
0.0668683499,
-0.0067955218,
0.0433618017,
-0.2623486221,
-0.3767209649,
-0.0460032597,
0.0937626734,
0.3868141174,
0.1167083085,
0.1600834876,
-0.07361947,
-0.339335829,
-0.4597358108,
-0.0735426173,
-0.4624359608,
0.2527550161,
0.2372573912,
0.0936301723,
0.0148801543,
0.0273295008,
0.2669509053,
-0.0802697763,
-0.0791354626,
-0.3020401895,
-0.2825826406,
0.061769776,
-0.0219959319,
-0.1211461276,
-0.0115226023,
0.175974831,
-0.0505349264,
-0.0988350585,
0.1627527028,
0.3250039518,
0.0983197466,
0.871897161,
-0.2352774888,
0.2100136578,
-0.0423877537,
-0.224173665,
0.0917411223,
-0.1011335403,
0.1130431816,
0.1086646244,
-0.0958103538,
0.0072399876,
-0.050846383,
0.1480249912,
-0.2378522009,
-0.0637738183,
-0.0144621301,
-0.3602892458,
0.2820595503,
0.1690961868,
0.3595200777,
0.1125517413,
-0.2995541394,
-0.1943113655,
0.1972058117,
0.3674288392,
-0.2160390615,
-0.0263515171,
0.1794310212,
0.1220032498,
0.2011297494,
0.3365056515,
0.0186137427,
-0.0376086496,
-0.0143328933,
-0.0522534251,
0.0955806896,
-0.2456499934,
0.0562469326,
0.264077574,
-0.0146672251,
-0.0296907462,
0.2569748461,
0.0768445805,
0.1075204238,
0.5465227962,
0.0581040904,
0.5124673843,
-0.0678064525,
0.1534053236,
-0.2671484947,
0.0794394612,
-0.0952102616,
0.2158265412,
-0.3798170388,
0.2653618455,
-0.0469481759,
0.238976419,
-0.2679865956,
-0.0305682607,
0.0572866909,
0.2600263357,
-0.2000266165,
-0.2792087495,
-0.5016419888,
0.0313143767,
-0.1620902568,
0.0636747926,
0.017742319,
-0.2343108058,
0.1490170062,
0.1415741444,
0.0570543557,
-0.4010357857,
-0.368958354,
0.3651338518,
0.3934511244,
-0.2435120046,
-0.0449132696,
0.2358347327,
-0.0070818616,
0.2254353464,
0.0187663641,
0.3661861122,
0.0601867698,
0.1167531386,
0.0989402458,
-0.2857355177,
-0.2569532692,
-0.0397980958,
-0.0538736768,
0.1812047511,
-0.008121443,
0.2478681952,
0.2175567001,
-0.2464453727,
0.2887549996,
-0.0403531268,
0.3590587974,
-0.340210259,
0.1050340012,
-0.1236346439,
-0.280896306,
-0.3866416216,
-0.0705359429,
-0.4358714521,
0.1042100415,
0.096325323,
0.2498169094,
0.2405854911,
-0.1760198921,
0.1389346868,
0.1296520382,
0.3520662487,
0.118273668,
0.1525217146,
-0.0864355192,
-0.1423438638,
-0.5975674391,
-0.0668219849,
0.1150037944,
-0.1433965862,
0.0620000139,
-0.0243960153,
-0.2969186306,
-0.2536073327,
0.0132276602,
0.1678115577,
0.0532697029,
-0.0115239564,
-0.1281198263,
-0.1661499441,
-0.1828193516,
-0.1082840413,
0.1383168995,
-0.0779635012,
-0.1140059829,
-0.2393927425,
0.1913026124,
-0.1337548047,
0.2242266089,
-0.2953460217,
0.0906503946,
0.1201318353,
-0.0305065084,
0.385979265,
-0.0153774573,
0.0834633783,
-0.0872382969,
0.0529302917,
-0.361212641,
0.1725239456,
-0.0918773338,
0.4230145514,
0.0075017782,
-0.0877738595,
0.0177339911,
0.1135898679,
0.2244577408,
-0.0923169926,
-0.2933937311,
0.3331452906,
-0.1683169305,
0.0176841635,
0.1092718393,
0.2193213701,
0.2135298401,
-0.0095569054,
-0.2414339185,
-0.3486393094,
0.3660675585,
-0.3710888922,
-0.2608676553,
-0.0415770561,
0.2282084674,
0.3876200914,
-0.105522722,
-0.6232709289,
0.1003511027,
0.3564749956,
-0.0327020623,
-0.590831995,
0.2276557684,
0.1633151025,
0.1289621592,
0.004858382,
-0.0563325472,
0.2881029248,
-0.1017462835,
0.2909035087,
-0.4343142211
] |
https://github.com/huggingface/datasets/issues/1444 | FileNotFound remotly, can't load a dataset | This dataset will be available in version-2 of the library. If you want to use this dataset now, install datasets from `master` branch rather.
Command to install datasets from `master` branch:
`!pip install git+https://github.com/huggingface/datasets.git@master` | ```py
!pip install datasets
import datasets as ds
corpus = ds.load_dataset('large_spanish_corpus')
```
gives the error
> FileNotFoundError: Couldn't find file locally at large_spanish_corpus/large_spanish_corpus.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/large_spanish_corpus/large_spanish_corpus.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/large_spanish_corpus/large_spanish_corpus.py
not just `large_spanish_corpus`, `zest` too, but `squad` is available.
this was using colab and localy | 34 | FileNotFound remotly, can't load a dataset
```py
!pip install datasets
import datasets as ds
corpus = ds.load_dataset('large_spanish_corpus')
```
gives the error
> FileNotFoundError: Couldn't find file locally at large_spanish_corpus/large_spanish_corpus.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/large_spanish_corpus/large_spanish_corpus.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/large_spanish_corpus/large_spanish_corpus.py
not just `large_spanish_corpus`, `zest` too, but `squad` is available.
this was using colab and localy
This dataset will be available in version-2 of the library. If you want to use this dataset now, install datasets from `master` branch rather.
Command to install datasets from `master` branch:
`!pip install git+https://github.com/huggingface/datasets.git@master` | [
-0.3270968795,
-0.3888711631,
-0.0211853217,
0.3421649337,
0.3611238599,
0.053929776,
-0.0934887081,
0.2128611505,
-0.0617656372,
0.2608965635,
-0.3553180397,
0.173086524,
0.0300489254,
-0.1594369411,
0.0316852219,
0.0206081849,
-0.0119563872,
0.0681065843,
0.0414807722,
-0.0984662026,
-0.1051174626,
0.3372923136,
-0.2512364388,
-0.0505932271,
-0.1271475405,
0.0490329638,
-0.1710328609,
0.1196060106,
-0.3393886685,
-0.1975400746,
0.3731850386,
-0.0539984927,
0.3303168714,
0.7346160412,
-0.0001053096,
0.0331304222,
0.302111268,
-0.1650725752,
-0.1891659349,
-0.5733721256,
0.2214241326,
-0.5341051221,
-0.0140154194,
-0.1214287728,
-0.3000083566,
-0.1858648807,
0.229208976,
-0.0646847934,
0.4581915736,
0.1389927566,
0.276067704,
0.1265491098,
0.1662910432,
-0.3696483076,
0.2097803801,
0.195646286,
-0.1781927794,
0.2711289525,
0.5124984384,
0.0008452901,
0.3474408686,
0.2254718244,
-0.1975985914,
-0.0633729547,
0.0224848054,
-0.0391208529,
-0.1415902078,
-0.3971590698,
0.262912035,
0.2328354567,
0.3422174156,
-0.3914037645,
-0.2908688486,
-0.127082929,
0.0680985823,
-0.018070342,
-0.0308836531,
0.1951567531,
-0.0137036471,
0.1463203579,
0.1868035197,
-0.1229998842,
-0.047104869,
0.3313314319,
-0.0886648223,
0.2586907148,
-0.3090185821,
0.009939285,
0.1905122101,
-0.1789248884,
-0.2507301569,
0.0302960891,
-0.018317705,
0.4132654369,
-0.067069754,
0.0363561027,
0.1135700122,
0.030876752,
0.3723825216,
-0.1460779011,
-0.095340468,
0.0370078757,
-0.1044246331,
0.2302516997,
0.2692062259,
0.0457408279,
0.1354755014,
0.1478244364,
0.1838282198,
0.2538388968,
-0.0949297696,
-0.1023403332,
-0.2020094395,
-0.2282735705,
-0.3279547989,
-0.109914951,
0.4180825055,
-0.3683942854,
-0.152036503,
-0.1110242829,
-0.0217321999,
0.0358548425,
0.2241003364,
0.6009094715,
-0.1057141349,
0.0214474294,
-0.2264179289,
0.1999211907,
-0.1387857497,
-0.0065258024,
-0.2208008766,
0.1473015994,
-0.2257982492,
-0.0462417491,
0.2515357435,
-0.557882905,
0.3935385942,
-0.047270827,
0.1960407943,
-0.0681860149,
-0.1338360012,
-0.3017458618,
0.0997984037,
0.2297630459,
0.101318948,
0.0338175967,
0.2995766103,
-0.2491470724,
-0.2520235479,
0.0262055807,
-0.2204841077,
-0.1265046149,
-0.3007336855,
0.1876773387,
-0.3505805731,
-0.0759403929,
-0.3589549065,
0.2076334208,
-0.0608201511,
-0.4315317571,
-0.0000361292,
-0.0217530057,
-0.2501894534,
-0.1095411628,
0.4257395566,
0.7670354247,
-0.286598742,
-0.1230977401,
0.0340255089,
-0.126667127,
0.1011060476,
0.126527518,
-0.1167584062,
-0.0218856204,
-0.2653756738,
0.1027910113,
0.2992964983,
-0.6153359413,
-0.3468685448,
0.2056127787,
-0.0500280745,
0.1586270034,
-0.0413158499,
-0.1025640965,
-0.0431876518,
0.0503470376,
0.0029875175,
0.0049371459,
0.0312956683,
0.0295400824,
-0.0962504297,
-0.1457026601,
-0.1982444823,
0.3119064867,
0.1383857876,
0.06754224,
0.3202099204,
0.087634854,
0.0316904224,
0.0958210975,
-0.0984544307,
0.2816779912,
0.3037552536,
0.1534380317,
0.0837894157,
-0.2247745246,
-0.3634956181,
0.2498725206,
0.0457061119,
0.2284104675,
-0.2949457467,
-0.1885020286,
-0.1586821973,
-0.0201387946,
-0.2509638965,
-0.156437397,
0.1302568614,
0.0791028142,
0.1900040805,
0.1363538653,
-0.2076636702,
0.1021806896,
-0.1985591501,
0.0608883835,
-0.3810702562,
0.0536024533,
-0.1443720013,
-0.0908583254,
0.0266819298,
0.3134472966,
-0.0061013657,
-0.2961698174,
0.1275135279,
0.2339980453,
-0.0410703942,
0.0831169337,
0.0651022196,
-0.1028956994,
0.149284333,
-0.1187014356,
0.1305787116,
0.0326568335,
0.1909238994,
-0.0021715271,
-0.1348508,
0.1387980878,
0.0411251634,
0.0962453336,
0.1917947978,
-0.2008482814,
0.3672036827,
0.112716645,
-0.2047110796,
-0.1698099524,
0.3535319567,
0.096996136,
0.1955728084,
0.0430091619,
-0.3212144077,
-0.1043165103,
0.3177224398,
0.1372815371,
0.1213168055,
0.2048686743,
-0.2800177336,
0.1868979484,
0.0034494789,
0.0588296205,
0.4702049792,
0.3391546905,
-0.0764482319,
0.0293208156,
0.173082754,
-0.0994681716,
0.0943908319,
0.105555132,
0.1211163923,
0.2762359977,
0.0952636674,
0.1110552698,
-0.3392531276,
-0.1590595394,
-0.243227765,
0.2127061933,
-0.0921131521,
0.0312307794,
-0.1918959022,
-0.5405957103,
-0.2883022428,
-0.1157424599,
-0.3506482542,
0.1294650584,
-0.0584439039,
-0.021182742,
0.2439409941,
0.1399308592,
0.0428653285,
0.13735798,
-0.1882005781,
-0.4878156185,
-0.0153018879,
-0.2103478462,
-0.1267768741,
0.0949553996,
0.373341471,
-0.0983638465,
0.3098772168,
-0.2427176684,
0.0662057921,
-0.1999077201,
-0.3183153272,
0.1207594275,
-0.1968372464,
0.2978354692,
0.0523590706,
0.20833157,
-0.318639487,
-0.0556890219,
0.3241013587,
-0.2407047898,
-0.1146928295,
-0.0510718711,
-0.217735365,
-0.2655117214,
-0.085950695,
-0.4589137435,
-0.5289610028,
-0.4479742646,
0.1381775439,
0.3176060617,
-0.0419271141,
0.4903950691,
0.2172505707,
0.4897035956,
-0.1627665609,
0.2261382639,
-0.1228662506,
-0.4091241956,
0.2950485647,
-0.2791323364,
-0.3444775045,
0.152246356,
0.0878731981,
0.244835183,
-0.3050947189,
-0.4055992365,
-0.2700469792,
-0.0187663268,
-0.0090883579,
-0.0477787554,
0.3289105296,
0.2568495274,
-0.2854101062,
-0.0629231632,
-0.0179240573,
-0.1917269081,
-0.1979180872,
0.0373477526,
0.3480445147,
-0.2784838676,
0.1747765243,
-0.0510751307,
0.5100221038,
0.1080511957,
-0.053968288,
0.4590837061,
-0.2125363201,
0.5354276896,
-0.2846104503,
-0.606803298,
0.1230490282,
0.1881648153,
0.1007851213,
0.4557538033,
0.2662450671,
-0.0571788065,
-0.4042778909,
-0.2535191178,
-0.1881132871,
-0.0671611205,
-0.0563627928,
0.3478082418,
-0.0905106366,
0.0250826143,
-0.04334056,
-0.0595118031,
-0.2525690794,
-0.1394325644,
0.3875396252,
-0.1102693602,
0.1785723716,
-0.1752705425,
-0.0578833558,
-0.1995628625,
0.3943424523,
0.0865486935,
-0.1424327046,
-0.1837641448,
-0.0137153342,
0.0978674665,
-0.1053805053,
0.5849303603,
0.2099871635,
-0.1671549529,
0.0606413633,
-0.1672186553,
-0.3760748506,
-0.0778245628,
0.0220038407,
0.2661766708,
0.3142609298,
0.533475399,
-0.3083975613,
-0.1032580659,
0.2534604371,
0.302359432,
0.0048126201,
-0.1182589382,
-0.5544283986,
-0.4240007401,
-0.4105861783,
-0.0481044687,
0.0090004802,
0.1661429256,
0.2040578723,
-0.0146057904,
0.0687737167,
0.0684202537,
0.2253905386,
0.299115628,
0.2291792482,
0.3138450086,
0.0650869161,
0.2294558138,
0.2484405935,
0.1432070583,
0.746024847,
-0.1061469465,
-0.491391629,
0.0051840814,
0.0553582236,
0.1756643504,
0.2071929723,
-0.0321509279,
0.0447968096,
0.0930326581,
-0.1065678895,
-0.0349838063,
0.0573668107,
0.2532098293,
0.1384340972,
-0.3063990176,
-0.3154130876,
0.3437561691,
0.1638237089,
0.2035822868,
0.2294927239,
0.1355137974,
0.0448231399,
0.2078258395,
-0.1876069307,
0.9075623751,
-0.2314327359,
0.0208019037,
0.083430469,
0.2398641407,
0.6653990149,
-0.2646844685,
0.0139116673,
-0.2222961038,
-0.2613443434,
0.0821414664,
-0.0289324075,
0.332262367,
-0.0175854098,
-0.3768773079,
0.3186190128,
0.1252051294,
0.3583047986,
-0.1640990376,
0.1369103044,
-0.1420589238,
-0.2050006539,
-0.4637774527,
0.2265390009,
-0.1797636747,
0.5575469136,
-0.1739385128,
0.0781851038,
-0.259552896,
-0.2640452683,
-0.2268749774,
0.1334367692,
-0.3323605657,
0.1006983444,
0.1577431262,
-0.3055327833,
0.0968876034,
0.5088332891,
0.2002819628,
0.0978937447,
-0.3811897933,
0.1110062301,
0.1457074285,
-0.4354255497,
-0.0231536422,
0.0302782748,
0.2411987931,
-0.1258544922,
-0.1988931298,
-0.0128451521,
0.1473237276,
-0.0558876991,
-0.0240392424,
0.1696568429,
-0.0047229417,
-0.0821274966,
-0.5319322348,
0.029423289,
0.1550681591,
-0.0894572213,
0.1784020066,
0.1721092463,
-0.1591102779,
0.0133760553,
0.2607853115,
-0.2644822896,
-0.0693474114,
0.4985607862,
-0.210544318,
-0.2688063383,
0.3399001956,
0.4278752208,
-0.1696824729,
-0.2209756076,
0.1368849128,
-0.0918853208,
-0.3659349978,
-0.0913230851,
0.2998314798,
0.0477570929,
0.1249718294,
0.411444664,
0.1034816206,
-0.3905793428,
0.0265021902,
-0.3580159545,
-0.233912617,
0.1635787189,
0.0341693684,
0.0446514152,
0.3250161409,
0.0347865261,
0.3023769557,
-0.0056314408,
-0.369738102,
0.1797963679,
-0.3807908893,
0.0691764876,
0.1513292491,
0.1309877485,
0.2864601016,
-0.0649408847,
0.1327304244,
0.1592631489,
-0.1887765527,
-0.3201287091,
0.0252339318,
0.131809026,
0.0088001965,
0.0407905243,
-0.0902462602,
-0.1275174916,
-0.1669250578,
-0.1647982001,
0.0729559436,
0.2761350274,
0.0528860465,
-0.0219789315,
-0.1367125213,
0.0181747042,
0.1757990569,
0.1120449901,
0.081919618,
0.0469870381,
0.2217237949,
-0.0142505579,
-0.042215772,
-0.0695018396,
-0.0026879192,
0.0092809834,
0.1468575448,
0.0915887728,
0.2012207061,
-0.1149232984,
0.2597363591,
0.2934651971,
0.1343340874,
0.1988356858,
-0.2045555264,
0.3173621297,
0.2910457253,
0.1649029553,
-0.4927279949,
0.0109484922,
0.3847284615,
-0.0523791201,
0.1156071872,
0.34335953,
-0.0403708927,
0.2120543569,
0.2202498466,
0.1148750335,
0.6210149527,
-0.0351020657,
0.2023151666,
0.2659614086,
0.0513976924,
0.0443710051,
0.0082496107,
0.1925213635,
0.1516176611,
0.2073233426,
-0.4689478874,
0.2712052166,
-0.2565207183,
0.1767780334,
0.1840637475,
-0.44826141,
0.2845285833,
0.275614202,
0.1606395245,
-0.1030306444,
-0.1849688441,
0.666118741,
-0.2973181009,
0.0942683294,
-0.2109470218,
0.1413546205,
-0.09347222,
-0.0145491157,
0.0580372885,
-0.2697333395,
0.0645316839,
-0.0911812484,
0.0593158342,
-0.2050245553,
-0.17743209,
0.0446233749,
-0.1793873906,
-0.1205455884,
0.0697875395,
-0.0349677503,
0.0536237955,
-0.0868523493,
0.3013351262,
-0.0068913461,
0.1842117757,
0.0858194977,
0.5155831575,
0.5716381073,
0.3280612826,
0.2361676246,
0.1018442214,
-0.1570678055,
-0.0988454819,
-0.1237168312,
0.2292480469,
-0.004943748,
0.0981469974,
0.271525234,
0.2406731099,
-0.191452086,
0.0523063987,
0.0405183956,
-0.0540992841,
-0.0939719528,
0.1424344927,
-0.3754617274,
-0.0407811366,
-0.3616987169,
0.1225064397,
-0.5747628808,
0.2454854101,
0.2230422944,
0.0232150834,
0.0817762241,
-0.2819141746,
0.1061741784,
0.0963527635,
0.287533015,
0.39224419,
0.418302983,
-0.1742405742,
-0.081474185,
-0.7985010743,
0.1864474565,
-0.0288855508,
0.0994036868,
-0.1754782647,
0.0637718365,
0.1289838701,
0.2351402044,
-0.1391021907,
-0.2754873037,
0.1332508624,
-0.130333513,
-0.2426571697,
-0.1969065815,
-0.1147123352,
0.086795494,
0.0514460206,
-0.1422480941,
-0.1107992157,
-0.3931452632,
0.023478942,
-0.1940938085,
-0.1383956075,
-0.3310094774,
-0.3074298501,
0.2228419036,
-0.1930964738,
0.3065576255,
-0.1752339453,
0.0472532474,
-0.2333417684,
-0.3475574255,
-0.0999897867,
0.3762137294,
0.2235004455,
0.1463290751,
-0.3078840673,
-0.2681341469,
-0.2025487423,
0.036611218,
0.0824190825,
0.022821581,
-0.1170493141,
-0.1455354393,
-0.0485010259,
-0.0175134223,
-0.1628394574,
0.2385034114,
-0.1185432896,
-0.0291284211,
-0.2439675629,
-0.1928910464,
0.6545351148,
-0.2642816603,
0.0807748362,
-0.1202555373,
0.0465954319,
0.1699084044,
-0.4187505841,
-0.5220376253,
0.3417110145,
0.2361605316,
0.1816195697,
-0.2510513365,
0.2188769728,
-0.291934669,
-0.0108345496,
-0.0916391239,
0.0521894731,
0.045144517,
0.0432632864,
0.2105446458,
-0.067932114
] |
https://github.com/huggingface/datasets/issues/1422 | Can't map dataset (loaded from csv) | Please could you post the whole script? I can't reproduce your issue. After updating the feature names/labels to match with the data, everything works fine for me. Try to update datasets/transformers to the newest version. | Hello! I am trying to load single csv file with two columns: ('label': str, 'text' str), where is label is str of two possible classes.
Below steps are similar with [this notebook](https://colab.research.google.com/drive/1-JIJlao4dI-Ilww_NnTc0rxtp-ymgDgM?usp=sharing), where bert model and tokenizer are used to classify lmdb loaded dataset. Only one difference it is the dataset loaded from .csv file.
Here is how I load it:
```python
data_path = 'data.csv'
data = pd.read_csv(data_path)
# process class name to indices
classes = ['neg', 'pos']
class_to_idx = { cl: i for i, cl in enumerate(classes) }
# now data is like {'label': int, 'text' str}
data['label'] = data['label'].apply(lambda x: class_to_idx[x])
# load dataset and map it with defined `tokenize` function
features = Features({
target: ClassLabel(num_classes=2, names=['neg', 'pos'], names_file=None, id=None),
feature: Value(dtype='string', id=None),
})
dataset = Dataset.from_pandas(data, features=features)
dataset.map(tokenize, batched=True, batch_size=len(dataset))
```
It ruins on the last line with following error:
```
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-112-32b6275ce418> in <module>()
9 })
10 dataset = Dataset.from_pandas(data, features=features)
---> 11 dataset.map(tokenizer, batched=True, batch_size=len(dataset))
2 frames
/usr/local/lib/python3.6/dist-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)
1237 test_inputs = self[:2] if batched else self[0]
1238 test_indices = [0, 1] if batched else 0
-> 1239 update_data = does_function_return_dict(test_inputs, test_indices)
1240 logger.info("Testing finished, running the mapping function on the dataset")
1241
/usr/local/lib/python3.6/dist-packages/datasets/arrow_dataset.py in does_function_return_dict(inputs, indices)
1208 fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns]
1209 processed_inputs = (
-> 1210 function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
1211 )
1212 does_return_dict = isinstance(processed_inputs, Mapping)
/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py in __call__(self, text, text_pair, add_special_tokens, padding, truncation, max_length, stride, is_split_into_words, pad_to_multiple_of, return_tensors, return_token_type_ids, return_attention_mask, return_overflowing_tokens, return_special_tokens_mask, return_offsets_mapping, return_length, verbose, **kwargs)
2281 )
2282 ), (
-> 2283 "text input must of type `str` (single example), `List[str]` (batch or single pretokenized example) "
2284 "or `List[List[str]]` (batch of pretokenized examples)."
2285 )
AssertionError: text input must of type `str` (single example), `List[str]` (batch or single pretokenized example) or `List[List[str]]` (batch of pretokenized examples).
```
which I think is not expected. I also tried the same steps using `Dataset.from_csv` which resulted in the same error.
For reproducing this, I used [this dataset from kaggle](https://www.kaggle.com/team-ai/spam-text-message-classification) | 35 | Can't map dataset (loaded from csv)
Hello! I am trying to load single csv file with two columns: ('label': str, 'text' str), where is label is str of two possible classes.
Below steps are similar with [this notebook](https://colab.research.google.com/drive/1-JIJlao4dI-Ilww_NnTc0rxtp-ymgDgM?usp=sharing), where bert model and tokenizer are used to classify lmdb loaded dataset. Only one difference it is the dataset loaded from .csv file.
Here is how I load it:
```python
data_path = 'data.csv'
data = pd.read_csv(data_path)
# process class name to indices
classes = ['neg', 'pos']
class_to_idx = { cl: i for i, cl in enumerate(classes) }
# now data is like {'label': int, 'text' str}
data['label'] = data['label'].apply(lambda x: class_to_idx[x])
# load dataset and map it with defined `tokenize` function
features = Features({
target: ClassLabel(num_classes=2, names=['neg', 'pos'], names_file=None, id=None),
feature: Value(dtype='string', id=None),
})
dataset = Dataset.from_pandas(data, features=features)
dataset.map(tokenize, batched=True, batch_size=len(dataset))
```
It ruins on the last line with following error:
```
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-112-32b6275ce418> in <module>()
9 })
10 dataset = Dataset.from_pandas(data, features=features)
---> 11 dataset.map(tokenizer, batched=True, batch_size=len(dataset))
2 frames
/usr/local/lib/python3.6/dist-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)
1237 test_inputs = self[:2] if batched else self[0]
1238 test_indices = [0, 1] if batched else 0
-> 1239 update_data = does_function_return_dict(test_inputs, test_indices)
1240 logger.info("Testing finished, running the mapping function on the dataset")
1241
/usr/local/lib/python3.6/dist-packages/datasets/arrow_dataset.py in does_function_return_dict(inputs, indices)
1208 fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns]
1209 processed_inputs = (
-> 1210 function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
1211 )
1212 does_return_dict = isinstance(processed_inputs, Mapping)
/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py in __call__(self, text, text_pair, add_special_tokens, padding, truncation, max_length, stride, is_split_into_words, pad_to_multiple_of, return_tensors, return_token_type_ids, return_attention_mask, return_overflowing_tokens, return_special_tokens_mask, return_offsets_mapping, return_length, verbose, **kwargs)
2281 )
2282 ), (
-> 2283 "text input must of type `str` (single example), `List[str]` (batch or single pretokenized example) "
2284 "or `List[List[str]]` (batch of pretokenized examples)."
2285 )
AssertionError: text input must of type `str` (single example), `List[str]` (batch or single pretokenized example) or `List[List[str]]` (batch of pretokenized examples).
```
which I think is not expected. I also tried the same steps using `Dataset.from_csv` which resulted in the same error.
For reproducing this, I used [this dataset from kaggle](https://www.kaggle.com/team-ai/spam-text-message-classification)
Please could you post the whole script? I can't reproduce your issue. After updating the feature names/labels to match with the data, everything works fine for me. Try to update datasets/transformers to the newest version. | [
-0.0363202319,
-0.0493307561,
0.0591483638,
0.1960301846,
0.3175802231,
0.1296345741,
0.6318863034,
0.3784268498,
0.2701598406,
-0.0147233317,
-0.2211088985,
0.2637647688,
-0.0631852672,
-0.0150064491,
-0.0317862108,
-0.2046317607,
0.1337798536,
0.2118779421,
-0.1829669178,
-0.0350302756,
-0.2907464802,
0.0249159411,
-0.1068115681,
0.2036804855,
0.019714145,
-0.2090111375,
-0.0746263489,
0.045983959,
-0.2114800513,
-0.2632807493,
0.2159733176,
-0.04936333,
0.5007880926,
0.4359369278,
-0.0001207136,
-0.0859811902,
-0.1823792011,
-0.1009574533,
-0.0814798623,
-0.3854593039,
-0.1374603212,
0.0300163981,
0.1163094044,
-0.2970100045,
-0.0744082406,
0.0227591079,
-0.0245813858,
-0.1638605148,
0.3432323337,
0.3329410553,
0.1156952158,
-0.0070005627,
0.1165171564,
-0.1090125144,
0.3139908016,
-0.0830128789,
-0.0401906893,
0.1678357571,
0.3154558837,
-0.48250857,
-0.0649223179,
0.1928551197,
-0.3011555076,
-0.0419437736,
0.4646372795,
0.2137138546,
0.1589563489,
-0.2898336351,
0.1365336478,
0.1331962645,
0.4657475948,
-0.1151480153,
-0.219532147,
0.0547607653,
0.0344040394,
-0.2702283561,
0.0283865165,
0.0456834286,
-0.113984026,
0.1086887717,
-0.102455616,
-0.1770986766,
-0.0279030558,
0.2061929852,
-0.4087247252,
0.2057971954,
-0.0557474606,
0.2325823605,
0.0402007364,
-0.2316696048,
-0.1552061588,
-0.0399333648,
0.2145068645,
0.5941804647,
-0.1974856406,
-0.1333900839,
0.0279573873,
-0.3895783126,
-0.1100074276,
-0.2322982401,
-0.1188438088,
-0.1543681026,
-0.1276848614,
0.2993397415,
0.2697301507,
0.5647978187,
0.0272392277,
0.5422592163,
0.2139974684,
0.1010002792,
-0.2506916523,
0.0377510414,
-0.1541897058,
-0.2827710807,
0.2870102525,
0.0581636615,
-0.064185448,
-0.0956935436,
-0.3294209838,
0.2402529716,
-0.415389508,
0.1328234822,
0.074305512,
0.6524128318,
0.2075127065,
-0.094245933,
0.2698750794,
0.2843062878,
0.1186544076,
0.0051627355,
-0.0669964105,
0.3031970859,
-0.3530657589,
-0.1006992906,
0.1698993891,
0.0514020994,
0.0464355275,
0.3085811138,
-0.0923374072,
-0.0356982425,
-0.0328731425,
-0.1898667216,
0.1616642922,
0.1182356104,
0.0726164058,
0.3539725542,
0.4711993635,
-0.3452655971,
-0.1083569825,
0.282863766,
-0.4599844515,
-0.0054729953,
-0.1010401025,
0.0946434736,
0.1262519062,
0.2099694312,
-0.4163969159,
0.1459005475,
0.3574433923,
-0.3219867647,
-0.1948045343,
-0.3051256239,
-0.0836992562,
-0.2269813269,
0.2432652563,
0.2348659039,
-0.5438092351,
0.1403558254,
0.0783429146,
0.3336326182,
0.2918048501,
0.3815694451,
-0.2207281739,
0.2234845161,
-0.2278954685,
0.3127995729,
0.2383134812,
-0.3298654556,
-0.3597225547,
0.312369585,
-0.0331654511,
-0.0880810097,
0.0080461595,
-0.0217953753,
0.4882385433,
-0.0339081809,
0.1162627861,
0.0372327082,
-0.1520987302,
0.0862340033,
-0.1676580459,
-0.0399071202,
0.4897910357,
-0.1700117588,
0.2294396013,
0.1159254834,
0.1349702477,
0.2924370766,
0.0103069227,
-0.2915748954,
0.1749005914,
-0.0661576465,
0.1333988458,
-0.0705087557,
0.0366533883,
-0.2851991951,
-0.4596106112,
0.0767472088,
0.0754318833,
0.1340250671,
-0.1838848144,
-0.11069341,
-0.2779103518,
-0.023251107,
-0.0741265714,
-0.1999335587,
0.029262362,
-0.0154440897,
-0.256698966,
-0.0556017235,
-0.0836826712,
-0.2426069379,
-0.0368228592,
0.1588586271,
-0.0782574341,
0.0076649049,
-0.1949113458,
0.0822894648,
-0.0772333965,
0.0439440422,
0.1950022131,
-0.0023533872,
-0.1986827403,
0.0559201054,
0.0518034361,
-0.0809341893,
-0.08118698,
-0.0375421308,
0.2180508524,
-0.1274512261,
-0.169051379,
-0.075065352,
0.2907109559,
-0.138086468,
-0.2525767684,
0.3186506927,
0.0168295484,
0.3122307956,
0.1154068932,
0.1145327538,
0.2599702775,
0.0418411903,
0.0865599737,
-0.3737350702,
-0.1926253736,
0.2935035229,
0.2589742541,
0.1546984911,
-0.0777677223,
-0.0609957874,
0.1426579058,
-0.1335909069,
0.030821722,
0.0094731124,
-0.1999715567,
-0.0852356553,
0.2894075215,
-0.0857500136,
0.1652875245,
0.0406219773,
0.0625381991,
-0.211549148,
-0.2276138216,
0.0822502747,
0.0605196357,
-0.2268908769,
-0.0607024133,
0.0529956669,
0.0683711097,
0.0882524699,
-0.0817595571,
-0.0190588851,
0.2863250971,
0.5847138762,
-0.3909920752,
-0.0683166608,
-0.2147161514,
0.117049709,
-0.1058594882,
-0.49630481,
-0.1311956495,
-0.1060911566,
-0.2085030228,
0.2625116408,
0.0616771504,
0.2166939229,
0.0551215336,
0.0939405859,
0.3615971804,
0.0393198244,
0.189931944,
-0.1743163615,
-0.2117992043,
0.0167030226,
0.2753627598,
0.0007117727,
0.1711568832,
-0.0011612875,
-0.2233863324,
-0.3630211055,
-0.4320555329,
0.0203377884,
-0.0752338618,
0.3070159554,
0.2079448402,
0.1353278011,
-0.3077078164,
-0.3446019292,
0.1428049207,
0.05898498,
-0.1098987013,
0.0713909715,
0.0034604939,
-0.3001105785,
0.1107849479,
-0.5560611486,
-0.1664139479,
-0.05220972,
-0.1271599233,
-0.2033300251,
0.2183382809,
-0.3293942809,
0.0247678477,
0.0507251695,
0.1594143063,
0.0182027817,
-0.1527703404,
-0.1177454218,
0.2939307988,
-0.1057841629,
-0.2996172011,
0.028303748,
-0.1588464975,
0.2352197915,
-0.0126871159,
-0.1893119663,
-0.180799216,
-0.0377764069,
0.0976353586,
-0.0214476846,
0.0710073411,
0.0548174419,
0.2307506651,
-0.0060729557,
0.0111753428,
-0.1993458122,
0.0773703456,
-0.0068609784,
0.3096444309,
-0.1190206781,
0.5365259647,
-0.0019561155,
0.9932542443,
0.0855754241,
-0.1577250063,
0.4048093855,
-0.0419140607,
0.1154535338,
-0.1302980036,
-0.7429162264,
-0.0135829896,
-0.1890585124,
-0.1387494951,
0.3288027644,
-0.192585066,
-0.3625996113,
-0.0441094562,
0.1770315021,
-0.2216780484,
-0.1894227415,
0.2895949483,
-0.2774531841,
0.0420526303,
0.1578042209,
-0.0477608666,
-0.3704251945,
-0.2133701146,
-0.1930532157,
0.261454016,
0.0047656172,
-0.0229738448,
0.0135732898,
-0.2664873004,
-0.521599412,
0.2433544993,
0.1242300719,
0.4188012779,
-0.2098044604,
0.1426521689,
0.0610149801,
0.1687997878,
0.6888324022,
-0.01955547,
0.1125068814,
0.139179498,
-0.151292026,
-0.0791227669,
0.067673333,
-0.1994968653,
0.0883934796,
0.3469319642,
0.5298927426,
-0.0986485928,
0.0164249968,
0.0190519057,
0.0271246284,
-0.2292004675,
-0.1593636274,
-0.1253410578,
0.1321070194,
-0.3919852674,
0.1279266626,
0.249739781,
0.2374413013,
0.0471080653,
-0.2645953596,
-0.0324908867,
-0.1234856769,
0.4109723568,
0.4043197334,
-0.0464399308,
0.2494562119,
0.0538209602,
-0.1417578906,
0.3292892575,
0.4081643522,
0.36005795,
-0.4821261466,
-0.6383062005,
0.0391046405,
0.0401061513,
0.3005614579,
0.0823300853,
-0.197397545,
0.1902043074,
-0.2747591138,
-0.0287715103,
-0.1576127559,
0.4213905036,
0.362438798,
0.2754832208,
-0.4533801377,
-0.486215502,
0.1569014788,
-0.0935743749,
-0.3375832736,
0.03565301,
0.1259554476,
-0.4417126477,
0.4667487144,
-0.018661337,
0.8538821936,
-0.4546051621,
0.0962254852,
0.1599949747,
0.2531591654,
0.7502361536,
-0.0199415125,
-0.0957794785,
-0.2133444995,
0.0240355711,
-0.1087244377,
0.11192099,
0.1089090183,
0.2536318898,
-0.2223073244,
0.4156000018,
0.0304189343,
0.4982372224,
0.1266561896,
0.0278674476,
0.4766608477,
-0.3088313639,
-0.3115210533,
0.0545617677,
-0.0697770715,
0.0356492624,
-0.0045599891,
-0.0352154709,
-0.1696331948,
-0.2989760339,
-0.2679093778,
0.0762703046,
-0.1809963137,
0.3267804086,
-0.3523544371,
-0.3634992838,
0.4128606915,
0.4410259426,
0.0437679924,
0.1301425248,
-0.1129652187,
0.0003237266,
0.0872351304,
0.0596230254,
-0.3403805494,
-0.0629584193,
0.3871629536,
0.0844536051,
-0.1124230698,
0.4013398588,
-0.0449007265,
-0.1486764401,
0.0666261837,
0.1748533696,
0.5714656115,
-0.5062838197,
-0.3370103538,
-0.2767021954,
0.0419973917,
-0.3917418122,
0.0281824972,
-0.1948964,
-0.1239198595,
0.0166914072,
0.0216485988,
-0.405557543,
0.1933334172,
0.6294293404,
-0.0493519604,
0.0708501115,
0.7852793336,
0.072830677,
-0.1149649769,
-0.1665184945,
0.0860117748,
0.5840913057,
-0.1486684233,
0.2338253856,
0.0933881104,
-0.0641300529,
0.0181239881,
0.4313964248,
0.5497336388,
-0.005731829,
0.1652353257,
-0.4803134203,
-0.4752927721,
0.011662161,
-0.0688420907,
0.1330046505,
0.4147025347,
0.1580656916,
-0.1791443974,
0.5363546014,
-0.1994546503,
0.047161106,
-0.1794731319,
0.2883888781,
0.2534250915,
0.1340295076,
-0.2279549688,
-0.05151169,
0.1157051101,
-0.1259234548,
0.0553602651,
-0.1513463855,
-0.1803105474,
0.162634328,
0.0242549721,
-0.0538025461,
-0.1285188943,
-0.3979251385,
0.093452774,
-0.4114849865,
0.200402379,
0.2641574144,
0.0309230816,
0.0558287241,
0.0943146795,
-0.2631492019,
-0.1857144684,
0.038532529,
-0.1030574068,
-0.114409022,
0.0192986857,
0.1908438355,
0.0535021424,
-0.0346861854,
-0.0253125243,
-0.030893432,
-0.0405473374,
-0.0744227022,
0.3435595632,
-0.1123955771,
0.2276648432,
0.2359963953,
0.1910889745,
0.0069905375,
-0.1660902351,
0.0699273944,
0.358218044,
0.0434756577,
-0.4803176224,
0.0895877108,
0.1368276477,
-0.0299052335,
0.0883752257,
0.1709181517,
-0.0528241806,
0.062941283,
-0.1101972163,
-0.236705184,
0.3873445094,
-0.0596084669,
0.117531687,
0.5157992244,
-0.1992426217,
0.2741679549,
0.4069994986,
0.2518593073,
0.1012815535,
0.5119723082,
-0.1945043653,
0.1665181965,
-0.207812041,
0.342659384,
0.0851848871,
-0.3729572296,
0.1948928684,
0.2040799111,
-0.1129730418,
0.13600339,
0.0149116823,
0.6207633018,
-0.4058400691,
-0.2460163683,
0.026069466,
0.3624696434,
-0.3382800817,
-0.2492059767,
-0.0257643089,
-0.2772207856,
0.1468815655,
-0.0313288197,
-0.3017632067,
-0.0870868564,
0.1407354474,
0.0974297002,
-0.0951556265,
-0.3882958591,
-0.3287883401,
0.1098491848,
-0.075437583,
-0.158184126,
0.4284528196,
-0.1495910734,
0.0571290404,
0.0845344067,
0.1054723635,
0.4288724363,
0.6453410983,
0.0887055919,
-0.1818569452,
0.1211570501,
-0.1629324406,
-0.0693931505,
0.0466386713,
0.0910193697,
0.0710615218,
0.2339628339,
0.0203047525,
-0.089083828,
0.206978783,
0.1943566352,
0.2529908717,
0.1798132509,
0.0852778256,
-0.1781770587,
-0.1139145195,
-0.1873798221,
0.0658743605,
-0.3288324475,
0.2687669396,
0.0924540013,
-0.1591731161,
0.2595169842,
0.0588991046,
0.0379386432,
0.2263921499,
0.1651692688,
0.2591685057,
-0.0928063989,
-0.6077034473,
0.1426294744,
-0.8178738952,
0.3019885719,
-0.2084608674,
-0.0313831344,
-0.2205667943,
0.0342903957,
0.2456473112,
-0.1272579581,
0.1502778977,
0.0239851065,
0.0380287096,
0.354809165,
-0.0126673616,
-0.0467086211,
-0.2404091805,
0.1079237834,
-0.173358649,
-0.3466695547,
0.2856393158,
0.122937493,
-0.1231835857,
-0.1955908388,
0.1786841899,
0.008346837,
0.0940718204,
0.4659880102,
0.1278938353,
0.7292601466,
-0.0321749635,
0.2721479237,
0.074085027,
-0.1821625978,
-0.1105567142,
0.0749446303,
0.202351585,
0.2000990212,
-0.1950016469,
-0.1445554197,
-0.2320062369,
-0.0755846724,
-0.0144240027,
-0.2899774015,
-0.6900330186,
0.1493443102,
-0.0430811681,
-0.0434928276,
-0.0186568815,
0.2625667453,
-0.0919617862,
0.1879256219,
-0.0971287712,
-0.4130039513,
0.3670979738,
-0.554874301,
-0.4784334302,
-0.0241995994,
-0.1244091168,
0.1122572944,
-0.0611880273,
-0.6009423137,
-0.0534127466,
0.2493424118,
-0.0713381842,
-0.4005270898,
-0.0427324064,
-0.053449396,
0.0576558821,
-0.1844070405,
0.4424073994,
0.1898755133,
-0.1703062356,
-0.0935345218,
-0.456405431
] |
https://github.com/huggingface/datasets/issues/1422 | Can't map dataset (loaded from csv) | Actually, the problem was how `tokenize` function was defined. This was completely my side mistake, so there are really no needs in this issue anymore | Hello! I am trying to load single csv file with two columns: ('label': str, 'text' str), where is label is str of two possible classes.
Below steps are similar with [this notebook](https://colab.research.google.com/drive/1-JIJlao4dI-Ilww_NnTc0rxtp-ymgDgM?usp=sharing), where bert model and tokenizer are used to classify lmdb loaded dataset. Only one difference it is the dataset loaded from .csv file.
Here is how I load it:
```python
data_path = 'data.csv'
data = pd.read_csv(data_path)
# process class name to indices
classes = ['neg', 'pos']
class_to_idx = { cl: i for i, cl in enumerate(classes) }
# now data is like {'label': int, 'text' str}
data['label'] = data['label'].apply(lambda x: class_to_idx[x])
# load dataset and map it with defined `tokenize` function
features = Features({
target: ClassLabel(num_classes=2, names=['neg', 'pos'], names_file=None, id=None),
feature: Value(dtype='string', id=None),
})
dataset = Dataset.from_pandas(data, features=features)
dataset.map(tokenize, batched=True, batch_size=len(dataset))
```
It ruins on the last line with following error:
```
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-112-32b6275ce418> in <module>()
9 })
10 dataset = Dataset.from_pandas(data, features=features)
---> 11 dataset.map(tokenizer, batched=True, batch_size=len(dataset))
2 frames
/usr/local/lib/python3.6/dist-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)
1237 test_inputs = self[:2] if batched else self[0]
1238 test_indices = [0, 1] if batched else 0
-> 1239 update_data = does_function_return_dict(test_inputs, test_indices)
1240 logger.info("Testing finished, running the mapping function on the dataset")
1241
/usr/local/lib/python3.6/dist-packages/datasets/arrow_dataset.py in does_function_return_dict(inputs, indices)
1208 fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns]
1209 processed_inputs = (
-> 1210 function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
1211 )
1212 does_return_dict = isinstance(processed_inputs, Mapping)
/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py in __call__(self, text, text_pair, add_special_tokens, padding, truncation, max_length, stride, is_split_into_words, pad_to_multiple_of, return_tensors, return_token_type_ids, return_attention_mask, return_overflowing_tokens, return_special_tokens_mask, return_offsets_mapping, return_length, verbose, **kwargs)
2281 )
2282 ), (
-> 2283 "text input must of type `str` (single example), `List[str]` (batch or single pretokenized example) "
2284 "or `List[List[str]]` (batch of pretokenized examples)."
2285 )
AssertionError: text input must of type `str` (single example), `List[str]` (batch or single pretokenized example) or `List[List[str]]` (batch of pretokenized examples).
```
which I think is not expected. I also tried the same steps using `Dataset.from_csv` which resulted in the same error.
For reproducing this, I used [this dataset from kaggle](https://www.kaggle.com/team-ai/spam-text-message-classification) | 25 | Can't map dataset (loaded from csv)
Hello! I am trying to load single csv file with two columns: ('label': str, 'text' str), where is label is str of two possible classes.
Below steps are similar with [this notebook](https://colab.research.google.com/drive/1-JIJlao4dI-Ilww_NnTc0rxtp-ymgDgM?usp=sharing), where bert model and tokenizer are used to classify lmdb loaded dataset. Only one difference it is the dataset loaded from .csv file.
Here is how I load it:
```python
data_path = 'data.csv'
data = pd.read_csv(data_path)
# process class name to indices
classes = ['neg', 'pos']
class_to_idx = { cl: i for i, cl in enumerate(classes) }
# now data is like {'label': int, 'text' str}
data['label'] = data['label'].apply(lambda x: class_to_idx[x])
# load dataset and map it with defined `tokenize` function
features = Features({
target: ClassLabel(num_classes=2, names=['neg', 'pos'], names_file=None, id=None),
feature: Value(dtype='string', id=None),
})
dataset = Dataset.from_pandas(data, features=features)
dataset.map(tokenize, batched=True, batch_size=len(dataset))
```
It ruins on the last line with following error:
```
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-112-32b6275ce418> in <module>()
9 })
10 dataset = Dataset.from_pandas(data, features=features)
---> 11 dataset.map(tokenizer, batched=True, batch_size=len(dataset))
2 frames
/usr/local/lib/python3.6/dist-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)
1237 test_inputs = self[:2] if batched else self[0]
1238 test_indices = [0, 1] if batched else 0
-> 1239 update_data = does_function_return_dict(test_inputs, test_indices)
1240 logger.info("Testing finished, running the mapping function on the dataset")
1241
/usr/local/lib/python3.6/dist-packages/datasets/arrow_dataset.py in does_function_return_dict(inputs, indices)
1208 fn_args = [inputs] if input_columns is None else [inputs[col] for col in input_columns]
1209 processed_inputs = (
-> 1210 function(*fn_args, indices, **fn_kwargs) if with_indices else function(*fn_args, **fn_kwargs)
1211 )
1212 does_return_dict = isinstance(processed_inputs, Mapping)
/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py in __call__(self, text, text_pair, add_special_tokens, padding, truncation, max_length, stride, is_split_into_words, pad_to_multiple_of, return_tensors, return_token_type_ids, return_attention_mask, return_overflowing_tokens, return_special_tokens_mask, return_offsets_mapping, return_length, verbose, **kwargs)
2281 )
2282 ), (
-> 2283 "text input must of type `str` (single example), `List[str]` (batch or single pretokenized example) "
2284 "or `List[List[str]]` (batch of pretokenized examples)."
2285 )
AssertionError: text input must of type `str` (single example), `List[str]` (batch or single pretokenized example) or `List[List[str]]` (batch of pretokenized examples).
```
which I think is not expected. I also tried the same steps using `Dataset.from_csv` which resulted in the same error.
For reproducing this, I used [this dataset from kaggle](https://www.kaggle.com/team-ai/spam-text-message-classification)
Actually, the problem was how `tokenize` function was defined. This was completely my side mistake, so there are really no needs in this issue anymore | [
-0.0363202319,
-0.0493307561,
0.0591483638,
0.1960301846,
0.3175802231,
0.1296345741,
0.6318863034,
0.3784268498,
0.2701598406,
-0.0147233317,
-0.2211088985,
0.2637647688,
-0.0631852672,
-0.0150064491,
-0.0317862108,
-0.2046317607,
0.1337798536,
0.2118779421,
-0.1829669178,
-0.0350302756,
-0.2907464802,
0.0249159411,
-0.1068115681,
0.2036804855,
0.019714145,
-0.2090111375,
-0.0746263489,
0.045983959,
-0.2114800513,
-0.2632807493,
0.2159733176,
-0.04936333,
0.5007880926,
0.4359369278,
-0.0001207136,
-0.0859811902,
-0.1823792011,
-0.1009574533,
-0.0814798623,
-0.3854593039,
-0.1374603212,
0.0300163981,
0.1163094044,
-0.2970100045,
-0.0744082406,
0.0227591079,
-0.0245813858,
-0.1638605148,
0.3432323337,
0.3329410553,
0.1156952158,
-0.0070005627,
0.1165171564,
-0.1090125144,
0.3139908016,
-0.0830128789,
-0.0401906893,
0.1678357571,
0.3154558837,
-0.48250857,
-0.0649223179,
0.1928551197,
-0.3011555076,
-0.0419437736,
0.4646372795,
0.2137138546,
0.1589563489,
-0.2898336351,
0.1365336478,
0.1331962645,
0.4657475948,
-0.1151480153,
-0.219532147,
0.0547607653,
0.0344040394,
-0.2702283561,
0.0283865165,
0.0456834286,
-0.113984026,
0.1086887717,
-0.102455616,
-0.1770986766,
-0.0279030558,
0.2061929852,
-0.4087247252,
0.2057971954,
-0.0557474606,
0.2325823605,
0.0402007364,
-0.2316696048,
-0.1552061588,
-0.0399333648,
0.2145068645,
0.5941804647,
-0.1974856406,
-0.1333900839,
0.0279573873,
-0.3895783126,
-0.1100074276,
-0.2322982401,
-0.1188438088,
-0.1543681026,
-0.1276848614,
0.2993397415,
0.2697301507,
0.5647978187,
0.0272392277,
0.5422592163,
0.2139974684,
0.1010002792,
-0.2506916523,
0.0377510414,
-0.1541897058,
-0.2827710807,
0.2870102525,
0.0581636615,
-0.064185448,
-0.0956935436,
-0.3294209838,
0.2402529716,
-0.415389508,
0.1328234822,
0.074305512,
0.6524128318,
0.2075127065,
-0.094245933,
0.2698750794,
0.2843062878,
0.1186544076,
0.0051627355,
-0.0669964105,
0.3031970859,
-0.3530657589,
-0.1006992906,
0.1698993891,
0.0514020994,
0.0464355275,
0.3085811138,
-0.0923374072,
-0.0356982425,
-0.0328731425,
-0.1898667216,
0.1616642922,
0.1182356104,
0.0726164058,
0.3539725542,
0.4711993635,
-0.3452655971,
-0.1083569825,
0.282863766,
-0.4599844515,
-0.0054729953,
-0.1010401025,
0.0946434736,
0.1262519062,
0.2099694312,
-0.4163969159,
0.1459005475,
0.3574433923,
-0.3219867647,
-0.1948045343,
-0.3051256239,
-0.0836992562,
-0.2269813269,
0.2432652563,
0.2348659039,
-0.5438092351,
0.1403558254,
0.0783429146,
0.3336326182,
0.2918048501,
0.3815694451,
-0.2207281739,
0.2234845161,
-0.2278954685,
0.3127995729,
0.2383134812,
-0.3298654556,
-0.3597225547,
0.312369585,
-0.0331654511,
-0.0880810097,
0.0080461595,
-0.0217953753,
0.4882385433,
-0.0339081809,
0.1162627861,
0.0372327082,
-0.1520987302,
0.0862340033,
-0.1676580459,
-0.0399071202,
0.4897910357,
-0.1700117588,
0.2294396013,
0.1159254834,
0.1349702477,
0.2924370766,
0.0103069227,
-0.2915748954,
0.1749005914,
-0.0661576465,
0.1333988458,
-0.0705087557,
0.0366533883,
-0.2851991951,
-0.4596106112,
0.0767472088,
0.0754318833,
0.1340250671,
-0.1838848144,
-0.11069341,
-0.2779103518,
-0.023251107,
-0.0741265714,
-0.1999335587,
0.029262362,
-0.0154440897,
-0.256698966,
-0.0556017235,
-0.0836826712,
-0.2426069379,
-0.0368228592,
0.1588586271,
-0.0782574341,
0.0076649049,
-0.1949113458,
0.0822894648,
-0.0772333965,
0.0439440422,
0.1950022131,
-0.0023533872,
-0.1986827403,
0.0559201054,
0.0518034361,
-0.0809341893,
-0.08118698,
-0.0375421308,
0.2180508524,
-0.1274512261,
-0.169051379,
-0.075065352,
0.2907109559,
-0.138086468,
-0.2525767684,
0.3186506927,
0.0168295484,
0.3122307956,
0.1154068932,
0.1145327538,
0.2599702775,
0.0418411903,
0.0865599737,
-0.3737350702,
-0.1926253736,
0.2935035229,
0.2589742541,
0.1546984911,
-0.0777677223,
-0.0609957874,
0.1426579058,
-0.1335909069,
0.030821722,
0.0094731124,
-0.1999715567,
-0.0852356553,
0.2894075215,
-0.0857500136,
0.1652875245,
0.0406219773,
0.0625381991,
-0.211549148,
-0.2276138216,
0.0822502747,
0.0605196357,
-0.2268908769,
-0.0607024133,
0.0529956669,
0.0683711097,
0.0882524699,
-0.0817595571,
-0.0190588851,
0.2863250971,
0.5847138762,
-0.3909920752,
-0.0683166608,
-0.2147161514,
0.117049709,
-0.1058594882,
-0.49630481,
-0.1311956495,
-0.1060911566,
-0.2085030228,
0.2625116408,
0.0616771504,
0.2166939229,
0.0551215336,
0.0939405859,
0.3615971804,
0.0393198244,
0.189931944,
-0.1743163615,
-0.2117992043,
0.0167030226,
0.2753627598,
0.0007117727,
0.1711568832,
-0.0011612875,
-0.2233863324,
-0.3630211055,
-0.4320555329,
0.0203377884,
-0.0752338618,
0.3070159554,
0.2079448402,
0.1353278011,
-0.3077078164,
-0.3446019292,
0.1428049207,
0.05898498,
-0.1098987013,
0.0713909715,
0.0034604939,
-0.3001105785,
0.1107849479,
-0.5560611486,
-0.1664139479,
-0.05220972,
-0.1271599233,
-0.2033300251,
0.2183382809,
-0.3293942809,
0.0247678477,
0.0507251695,
0.1594143063,
0.0182027817,
-0.1527703404,
-0.1177454218,
0.2939307988,
-0.1057841629,
-0.2996172011,
0.028303748,
-0.1588464975,
0.2352197915,
-0.0126871159,
-0.1893119663,
-0.180799216,
-0.0377764069,
0.0976353586,
-0.0214476846,
0.0710073411,
0.0548174419,
0.2307506651,
-0.0060729557,
0.0111753428,
-0.1993458122,
0.0773703456,
-0.0068609784,
0.3096444309,
-0.1190206781,
0.5365259647,
-0.0019561155,
0.9932542443,
0.0855754241,
-0.1577250063,
0.4048093855,
-0.0419140607,
0.1154535338,
-0.1302980036,
-0.7429162264,
-0.0135829896,
-0.1890585124,
-0.1387494951,
0.3288027644,
-0.192585066,
-0.3625996113,
-0.0441094562,
0.1770315021,
-0.2216780484,
-0.1894227415,
0.2895949483,
-0.2774531841,
0.0420526303,
0.1578042209,
-0.0477608666,
-0.3704251945,
-0.2133701146,
-0.1930532157,
0.261454016,
0.0047656172,
-0.0229738448,
0.0135732898,
-0.2664873004,
-0.521599412,
0.2433544993,
0.1242300719,
0.4188012779,
-0.2098044604,
0.1426521689,
0.0610149801,
0.1687997878,
0.6888324022,
-0.01955547,
0.1125068814,
0.139179498,
-0.151292026,
-0.0791227669,
0.067673333,
-0.1994968653,
0.0883934796,
0.3469319642,
0.5298927426,
-0.0986485928,
0.0164249968,
0.0190519057,
0.0271246284,
-0.2292004675,
-0.1593636274,
-0.1253410578,
0.1321070194,
-0.3919852674,
0.1279266626,
0.249739781,
0.2374413013,
0.0471080653,
-0.2645953596,
-0.0324908867,
-0.1234856769,
0.4109723568,
0.4043197334,
-0.0464399308,
0.2494562119,
0.0538209602,
-0.1417578906,
0.3292892575,
0.4081643522,
0.36005795,
-0.4821261466,
-0.6383062005,
0.0391046405,
0.0401061513,
0.3005614579,
0.0823300853,
-0.197397545,
0.1902043074,
-0.2747591138,
-0.0287715103,
-0.1576127559,
0.4213905036,
0.362438798,
0.2754832208,
-0.4533801377,
-0.486215502,
0.1569014788,
-0.0935743749,
-0.3375832736,
0.03565301,
0.1259554476,
-0.4417126477,
0.4667487144,
-0.018661337,
0.8538821936,
-0.4546051621,
0.0962254852,
0.1599949747,
0.2531591654,
0.7502361536,
-0.0199415125,
-0.0957794785,
-0.2133444995,
0.0240355711,
-0.1087244377,
0.11192099,
0.1089090183,
0.2536318898,
-0.2223073244,
0.4156000018,
0.0304189343,
0.4982372224,
0.1266561896,
0.0278674476,
0.4766608477,
-0.3088313639,
-0.3115210533,
0.0545617677,
-0.0697770715,
0.0356492624,
-0.0045599891,
-0.0352154709,
-0.1696331948,
-0.2989760339,
-0.2679093778,
0.0762703046,
-0.1809963137,
0.3267804086,
-0.3523544371,
-0.3634992838,
0.4128606915,
0.4410259426,
0.0437679924,
0.1301425248,
-0.1129652187,
0.0003237266,
0.0872351304,
0.0596230254,
-0.3403805494,
-0.0629584193,
0.3871629536,
0.0844536051,
-0.1124230698,
0.4013398588,
-0.0449007265,
-0.1486764401,
0.0666261837,
0.1748533696,
0.5714656115,
-0.5062838197,
-0.3370103538,
-0.2767021954,
0.0419973917,
-0.3917418122,
0.0281824972,
-0.1948964,
-0.1239198595,
0.0166914072,
0.0216485988,
-0.405557543,
0.1933334172,
0.6294293404,
-0.0493519604,
0.0708501115,
0.7852793336,
0.072830677,
-0.1149649769,
-0.1665184945,
0.0860117748,
0.5840913057,
-0.1486684233,
0.2338253856,
0.0933881104,
-0.0641300529,
0.0181239881,
0.4313964248,
0.5497336388,
-0.005731829,
0.1652353257,
-0.4803134203,
-0.4752927721,
0.011662161,
-0.0688420907,
0.1330046505,
0.4147025347,
0.1580656916,
-0.1791443974,
0.5363546014,
-0.1994546503,
0.047161106,
-0.1794731319,
0.2883888781,
0.2534250915,
0.1340295076,
-0.2279549688,
-0.05151169,
0.1157051101,
-0.1259234548,
0.0553602651,
-0.1513463855,
-0.1803105474,
0.162634328,
0.0242549721,
-0.0538025461,
-0.1285188943,
-0.3979251385,
0.093452774,
-0.4114849865,
0.200402379,
0.2641574144,
0.0309230816,
0.0558287241,
0.0943146795,
-0.2631492019,
-0.1857144684,
0.038532529,
-0.1030574068,
-0.114409022,
0.0192986857,
0.1908438355,
0.0535021424,
-0.0346861854,
-0.0253125243,
-0.030893432,
-0.0405473374,
-0.0744227022,
0.3435595632,
-0.1123955771,
0.2276648432,
0.2359963953,
0.1910889745,
0.0069905375,
-0.1660902351,
0.0699273944,
0.358218044,
0.0434756577,
-0.4803176224,
0.0895877108,
0.1368276477,
-0.0299052335,
0.0883752257,
0.1709181517,
-0.0528241806,
0.062941283,
-0.1101972163,
-0.236705184,
0.3873445094,
-0.0596084669,
0.117531687,
0.5157992244,
-0.1992426217,
0.2741679549,
0.4069994986,
0.2518593073,
0.1012815535,
0.5119723082,
-0.1945043653,
0.1665181965,
-0.207812041,
0.342659384,
0.0851848871,
-0.3729572296,
0.1948928684,
0.2040799111,
-0.1129730418,
0.13600339,
0.0149116823,
0.6207633018,
-0.4058400691,
-0.2460163683,
0.026069466,
0.3624696434,
-0.3382800817,
-0.2492059767,
-0.0257643089,
-0.2772207856,
0.1468815655,
-0.0313288197,
-0.3017632067,
-0.0870868564,
0.1407354474,
0.0974297002,
-0.0951556265,
-0.3882958591,
-0.3287883401,
0.1098491848,
-0.075437583,
-0.158184126,
0.4284528196,
-0.1495910734,
0.0571290404,
0.0845344067,
0.1054723635,
0.4288724363,
0.6453410983,
0.0887055919,
-0.1818569452,
0.1211570501,
-0.1629324406,
-0.0693931505,
0.0466386713,
0.0910193697,
0.0710615218,
0.2339628339,
0.0203047525,
-0.089083828,
0.206978783,
0.1943566352,
0.2529908717,
0.1798132509,
0.0852778256,
-0.1781770587,
-0.1139145195,
-0.1873798221,
0.0658743605,
-0.3288324475,
0.2687669396,
0.0924540013,
-0.1591731161,
0.2595169842,
0.0588991046,
0.0379386432,
0.2263921499,
0.1651692688,
0.2591685057,
-0.0928063989,
-0.6077034473,
0.1426294744,
-0.8178738952,
0.3019885719,
-0.2084608674,
-0.0313831344,
-0.2205667943,
0.0342903957,
0.2456473112,
-0.1272579581,
0.1502778977,
0.0239851065,
0.0380287096,
0.354809165,
-0.0126673616,
-0.0467086211,
-0.2404091805,
0.1079237834,
-0.173358649,
-0.3466695547,
0.2856393158,
0.122937493,
-0.1231835857,
-0.1955908388,
0.1786841899,
0.008346837,
0.0940718204,
0.4659880102,
0.1278938353,
0.7292601466,
-0.0321749635,
0.2721479237,
0.074085027,
-0.1821625978,
-0.1105567142,
0.0749446303,
0.202351585,
0.2000990212,
-0.1950016469,
-0.1445554197,
-0.2320062369,
-0.0755846724,
-0.0144240027,
-0.2899774015,
-0.6900330186,
0.1493443102,
-0.0430811681,
-0.0434928276,
-0.0186568815,
0.2625667453,
-0.0919617862,
0.1879256219,
-0.0971287712,
-0.4130039513,
0.3670979738,
-0.554874301,
-0.4784334302,
-0.0241995994,
-0.1244091168,
0.1122572944,
-0.0611880273,
-0.6009423137,
-0.0534127466,
0.2493424118,
-0.0713381842,
-0.4005270898,
-0.0427324064,
-0.053449396,
0.0576558821,
-0.1844070405,
0.4424073994,
0.1898755133,
-0.1703062356,
-0.0935345218,
-0.456405431
] |
https://github.com/huggingface/datasets/issues/1324 | ❓ Sharing ElasticSearch indexed dataset | Hello @pietrolesci , I am not sure to understand what you are trying to do here.
If you're looking for ways to save a dataset on disk, you can you the `save_to_disk` method:
```python
>>> import datasets
>>> loaded_dataset = datasets.load("dataset_name")
>>> loaded_dataset.save_to_disk("/path/on/your/disk")
```
The saved dataset can later be retrieved using:
```python
>>> loaded_dataset = datasets.Dataset.load_from_disk("/path/on/your/disk")
```
Also, I'd recommend posting your question directly in the issue section of the [elasticsearch repo](https://github.com/elastic/elasticsearch) | Hi there,
First of all, thank you very much for this amazing library. Datasets have become my preferred data structure for basically everything I am currently doing.
**Question:** I'm working with a dataset and I have an elasticsearch container running at localhost:9200. I added an elasticsearch index and I was wondering
- how can I know where it has been saved?
- how can I share the indexed dataset with others?
I tried to dig into the docs, but could not find anything about that.
Thank you very much for your help.
Best,
Pietro
Edit: apologies for the wrong label | 73 | ❓ Sharing ElasticSearch indexed dataset
Hi there,
First of all, thank you very much for this amazing library. Datasets have become my preferred data structure for basically everything I am currently doing.
**Question:** I'm working with a dataset and I have an elasticsearch container running at localhost:9200. I added an elasticsearch index and I was wondering
- how can I know where it has been saved?
- how can I share the indexed dataset with others?
I tried to dig into the docs, but could not find anything about that.
Thank you very much for your help.
Best,
Pietro
Edit: apologies for the wrong label
Hello @pietrolesci , I am not sure to understand what you are trying to do here.
If you're looking for ways to save a dataset on disk, you can you the `save_to_disk` method:
```python
>>> import datasets
>>> loaded_dataset = datasets.load("dataset_name")
>>> loaded_dataset.save_to_disk("/path/on/your/disk")
```
The saved dataset can later be retrieved using:
```python
>>> loaded_dataset = datasets.Dataset.load_from_disk("/path/on/your/disk")
```
Also, I'd recommend posting your question directly in the issue section of the [elasticsearch repo](https://github.com/elastic/elasticsearch) | [
-0.1429359764,
-0.0638308078,
-0.1649869084,
0.1157821044,
-0.2390128821,
0.181620419,
0.2375487238,
0.0645312443,
0.1375181824,
0.2632859647,
-0.2542995811,
0.1102019921,
-0.0403490514,
-0.1499139369,
0.1162046567,
0.2783809602,
0.1407320052,
-0.0522754788,
0.160981223,
-0.1157198995,
-0.0960236341,
-0.1199989542,
0.0747436956,
-0.0017552481,
-0.0378026813,
-0.1324211955,
-0.4750578701,
-0.1286246479,
0.066004239,
-0.2219636291,
0.5905972719,
0.2281905264,
0.1744387448,
0.3492889404,
-0.00011476,
0.0371788107,
0.3044724166,
-0.1059915572,
-0.0600125007,
-0.3337875605,
-0.581566155,
-0.2153356522,
0.3577896655,
-0.5136822462,
-0.0529218726,
-0.2876567841,
0.2158804983,
-0.6586779356,
-0.0800798461,
-0.0880681649,
0.1715499759,
0.1409369409,
-0.1088334844,
-0.0197397787,
0.1892030388,
0.1232946366,
-0.0214467924,
-0.0853260159,
0.0034694511,
0.0862660632,
0.326864481,
0.1831185371,
-0.1671930104,
0.0605212897,
0.1701911092,
0.1723884642,
-0.521946609,
-0.2311166972,
-0.0714567527,
-0.0918339714,
0.8283689022,
-0.2656335235,
-0.2670589983,
0.0779279396,
-0.0186362863,
-0.136441648,
0.0233306289,
0.1480532736,
0.1877559125,
0.1393413842,
-0.2092096955,
-0.4387281835,
-0.4489779472,
0.1656545848,
-0.0322407819,
0.5990272164,
-0.121645689,
0.1211188138,
-0.1504865587,
0.0379112326,
0.3560680449,
-0.0478121564,
0.1332059503,
0.1248655096,
0.2179223597,
-0.1643846184,
-0.1523071378,
-0.3114429712,
-0.0014167298,
0.1400370747,
-0.1719857156,
-0.2091900259,
0.2432663441,
0.3475385308,
0.354847312,
0.2206201255,
0.1119063497,
0.3693481386,
0.2211707681,
-0.3995964229,
-0.1336418539,
-0.3954397142,
-0.002177953,
0.2996360064,
0.4795612097,
-0.3841778636,
0.118394725,
-0.1556715816,
-0.0499291457,
-0.1355163604,
-0.2635775208,
-0.2346782088,
0.1576256603,
0.2230811566,
-0.0426804721,
-0.4526024163,
0.0704218298,
0.053011205,
0.0606581196,
0.0951057449,
-0.1951247454,
-0.182751283,
0.101450935,
0.3022235036,
0.1282163709,
-0.431622684,
0.1091163084,
-0.2733574212,
0.2553038299,
-0.0140677057,
0.4297310412,
0.1854223758,
0.2484382093,
0.3468280435,
0.3137483597,
0.1941063106,
0.0212834384,
-0.1582435519,
-0.4444417655,
-0.0081882607,
-0.2976225615,
-0.4269988537,
-0.2789045572,
0.079681322,
-0.14677082,
0.1225126758,
-0.2636529505,
0.1629919857,
0.0278553199,
0.1676827222,
0.0675706863,
0.3594224751,
-0.3890075684,
-0.3475761712,
0.4555888474,
-0.1132136062,
-0.148366794,
-0.1401284188,
-0.43947649,
0.3204069436,
-0.1318344027,
-0.0364208817,
-0.2487838864,
0.1561017036,
0.0096518267,
0.3899398446,
0.3576793969,
-0.2793354988,
-0.4653578103,
0.0308837164,
-0.0632725656,
-0.4568526447,
-0.0906426981,
0.2196330279,
0.5229578614,
-0.169196412,
-0.0543146096,
0.5200253725,
0.1303071529,
-0.1105513945,
-0.2245105505,
-0.1053704321,
-0.1006018892,
-0.0674334839,
-0.2246748507,
-0.0784223825,
0.4058630764,
0.0837954059,
-0.133144483,
0.3465712667,
0.2486116439,
0.2592423856,
0.6578141451,
0.3961039484,
0.0544920936,
-0.0001921543,
-0.1552844495,
-0.0264301598,
0.1335356832,
-0.325779289,
-0.0197525155,
-0.4639934003,
-0.1371488273,
0.2006536126,
-0.0217944365,
0.0898777395,
0.1105010659,
0.029188484,
0.0281216241,
0.3715512455,
-0.2713481784,
-0.1345423907,
0.0544305891,
-0.1252728999,
-0.1900708526,
0.4088028967,
-0.0426318273,
0.0551506504,
-0.1099949405,
-0.040512003,
0.2740745544,
-0.0997938439,
-0.1949898005,
0.4314918816,
-0.4871738553,
0.4711261988,
0.3968754709,
0.4983278811,
0.0694005787,
-0.6583536863,
0.5281495452,
-0.0021940274,
-0.1115331054,
0.1143556982,
-0.3864211142,
0.2820075452,
-0.3749864399,
0.1623956114,
-0.1657327116,
-0.070358403,
-0.1311716884,
0.0095266476,
-0.3378591537,
0.0164271332,
-0.1932199597,
-0.2723452449,
-0.1785283089,
0.1191431433,
-0.1280248016,
0.303145051,
0.0438921452,
-0.006656765,
0.2137629241,
0.1184216291,
0.0445461571,
-0.2419224679,
-0.0614569224,
-0.0233432744,
0.380097121,
0.1158344224,
0.3460181057,
-0.1429547071,
0.2170417458,
0.1167357191,
0.2452484667,
0.1727613211,
0.0757871494,
-0.31228742,
0.1125929728,
0.0014004118,
0.39426893,
-0.1093651131,
-0.294611156,
-0.0856120214,
0.0685099587,
0.426007241,
0.0198854711,
-0.0122362068,
-0.0640037432,
-0.1772958487,
-0.204941228,
-0.2950290143,
-0.0858225524,
0.3247537911,
0.1016407385,
-0.1656904072,
-0.4062297046,
0.3377702534,
0.0262661465,
-0.1283358932,
-0.1021929011,
-0.0353151746,
0.0038676306,
-0.0308063384,
0.1300442368,
0.32773,
0.4591416121,
0.3788122833,
0.3379552066,
-0.0890284106,
0.0154949054,
-0.1455992609,
0.1245420128,
0.0834666118,
-0.0886010081,
0.1689881235,
-0.7019358277,
-0.2014825642,
-0.0496284999,
0.030467581,
0.0253385268,
-0.1356608272,
0.1490632743,
0.1728923619,
0.3836010098,
-0.3591673672,
-0.452755779,
-0.0289976224,
0.1434898227,
-0.1384408325,
0.1597138643,
-0.26114586,
-0.2167720497,
0.066126138,
0.2811371088,
-0.2025663108,
0.0066707558,
-0.6452114582,
0.1128074899,
-0.4477563202,
-0.000235214,
0.2146391571,
0.0456144884,
0.0255772006,
0.0032442834,
-0.3282506466,
0.3077257872,
0.130164668,
-0.003139111,
0.0891866237,
0.2140130252,
0.3354147077,
0.0677712932,
0.0188868344,
0.0027592175,
-0.2675279379,
-0.0721447766,
0.4280086756,
0.1089504212,
0.2220332623,
-0.0767014772,
0.0200659335,
0.7137883306,
0.1559155732,
-0.0385168307,
0.1857175082,
0.1338334829,
0.2979232967,
-0.0266187489,
-0.3098939657,
-0.244805336,
0.2814116478,
-0.3961248994,
0.0849683136,
0.1135467663,
-0.152442053,
-0.1195737869,
-0.5609035492,
-0.3739665151,
0.0048774877,
0.0110408524,
0.2319191545,
0.360576272,
-0.2060416341,
-0.4837605655,
-0.0038879216,
-0.3766239583,
-0.3294093907,
0.3415915668,
0.1157603711,
0.1399448514,
-0.1882134378,
-0.2318635881,
-0.1870824099,
0.1716303676,
-0.1504940987,
-0.0476327054,
-0.0803432167,
0.1951390654,
0.4556746781,
0.2745219469,
0.1774973571,
-0.1910549104,
-0.3307287991,
-0.2974389195,
-0.0213379022,
-0.2842193544,
0.0587757826,
0.0432241112,
0.3016092181,
-0.3704271019,
0.3083721399,
0.098903738,
-0.0571460128,
-0.0637231618,
-0.026549302,
-0.4934936166,
-0.0928098857,
-0.2640779316,
-0.3566976786,
0.219266817,
0.1003525406,
-0.0361858755,
0.0916431099,
0.0977054387,
0.1210555583,
-0.1716819704,
0.0780134723,
0.0592730902,
-0.0973032787,
0.2781715095,
0.1711910069,
0.1679457426,
0.7190204859,
0.1496732682,
0.2815488279,
0.3120745718,
-0.0907714367,
0.4290623069,
-0.0787078366,
0.084224917,
0.4779812694,
-0.0657039508,
0.0993304774,
-0.1357586086,
-0.0922008082,
-0.1045400873,
-0.2849585414,
-0.2307433486,
0.090451777,
0.0187980309,
-0.2011896372,
-0.4521870911,
0.4708428383,
-0.1084275693,
-0.1266343296,
0.4583643377,
0.3381694555,
-0.1887977868,
0.3753179014,
0.1698601991,
0.9062936902,
-0.1186842769,
0.0228275284,
-0.2764090002,
0.1808333546,
0.3432734609,
-0.4557622969,
0.0925635025,
-0.0950533226,
-0.4550405145,
-0.0503502674,
-0.1456653923,
-0.043145936,
-0.1382170469,
-0.3969092071,
-0.2094336003,
-0.2419342995,
-0.1358187646,
-0.297174871,
0.2549381256,
0.089232862,
-0.2151840478,
0.0032021673,
0.0994381607,
-0.0560692549,
0.316200763,
0.1561443061,
-0.0820659176,
-0.0567036979,
0.1120546758,
-0.2932803631,
-0.2888520062,
0.3653300703,
0.3622820079,
-0.137337029,
-0.1008215025,
0.0408041365,
0.1724921912,
0.1358179003,
0.0985698476,
-0.1121765599,
-0.2138381153,
-0.2195039392,
-0.0197746288,
0.1174193621,
-0.1770550907,
0.1229786798,
0.1347723454,
-0.348243773,
0.1154665872,
0.3369025588,
-0.1293962002,
-0.2612892985,
0.174984917,
0.0769294575,
-0.2425855249,
0.0109510617,
-0.0012126014,
-0.1433362514,
0.0580405407,
0.0989300907,
0.299749583,
-0.1633689404,
0.3388217092,
0.2223602831,
-0.1853237897,
0.0945520401,
0.5310109258,
0.2706599236,
-0.1918645501,
0.2153998166,
-0.2635298073,
-0.1084837765,
-0.0033485817,
0.6778517962,
0.392275095,
0.4330100119,
-0.2178931087,
-0.3760695159,
0.6171232462,
-0.0813296959,
-0.1064815223,
0.146391958,
0.0585174896,
-0.5026090741,
-0.1749238521,
0.099242568,
0.2952952683,
0.2668550313,
0.3551172316,
-0.2838896811,
-0.6877216101,
0.0752504468,
-0.078638345,
-0.2646252215,
-0.0151812453,
-0.2381042242,
-0.1330009401,
0.3729129136,
0.3742669821,
0.2937636673,
-0.3062366843,
0.0346295759,
-0.1212887838,
0.0635518283,
-0.0984663144,
-0.0472079776,
0.1676335335,
0.0018580732,
-0.0642297342,
-0.294347465,
-0.627630651,
0.0924841315,
-0.0185317136,
-0.2699894607,
0.2725458145,
0.2530997396,
-0.0331858397,
0.1095571816,
-0.1364644915,
0.025469359,
0.1434610933,
0.3007855713,
0.2595260143,
-0.1352570206,
0.2295942605,
0.1930015981,
-0.1594735682,
-0.2823138535,
0.0256350581,
0.0973564908,
0.1198134571,
0.080988273,
0.1485731453,
0.1498057991,
0.2380694598,
0.3956743181,
-0.0017426183,
-0.1991378069,
0.069133155,
0.0027164295,
0.1522466242,
0.1693267375,
0.0266509894,
0.1461409926,
0.2341640592,
-0.3637000322,
0.2730686069,
0.1167217046,
0.1973478049,
-0.3014604449,
0.0286567751,
0.5244449973,
0.0212018248,
0.0693770647,
-0.2014271319,
-0.041722469,
0.0697334856,
0.1569465995,
0.52018857,
0.4039347172,
0.2948313355,
0.1010183021,
0.4887934029,
0.3322431743,
-0.2144628912,
0.419493854,
-0.0409088843,
0.1117509902,
-0.1217950433,
0.3228589594,
0.1213341579,
-0.0352261737,
0.3501559198,
-0.1719778776,
-0.1148759648,
0.0394032784,
0.0711809993,
0.0735250264,
-0.0129790399,
0.1209478155,
-0.0950404555,
0.0616101138,
-0.2645798028,
0.1729438156,
-0.3572736382,
-0.2551341355,
0.0647481829,
0.1035546958,
0.0677630752,
0.2595199943,
0.1986861378,
0.0589179918,
-0.0807162598,
-0.142108202,
0.0400519185,
0.2084173709,
-0.1009969264,
0.0228559095,
-0.0579557046,
-0.100758113,
0.0253017582,
0.6263266802,
0.0562479235,
-0.314404726,
0.049678728,
-0.2114910185,
-0.2944132388,
-0.4331620634,
-0.1437260956,
0.1286887079,
0.1327508688,
0.201591447,
0.2349303067,
0.2720308006,
-0.0070946184,
-0.3087901175,
-0.0508812368,
-0.1066232696,
0.0405168161,
-0.0261624865,
-0.3537276983,
-0.1799958646,
0.5780174732,
0.1312901676,
-0.012127216,
0.0221167039,
0.0324428827,
-0.0481942184,
0.1600106806,
0.3391344547,
-0.1215309203,
-0.0368461907,
-0.2133181989,
-0.2488235682,
0.1263718009,
-0.2509037554,
-0.0169711374,
0.2048122585,
0.4461944997,
-0.0847687423,
0.0112572461,
-0.0300210007,
-0.0601798818,
-0.0930339992,
0.1181418374,
0.2180832028,
-0.3541246653,
-0.1416831762,
0.2230700999,
-0.0088978698,
0.1475787461,
0.1561981142,
-0.2323432416,
0.0083542159,
-0.4974648058,
0.0556205995,
0.065412946,
0.2187638432,
0.1594605297,
-0.309605509,
0.1000326127,
0.0664421469,
0.0703705028,
0.1690435112,
-0.0246862844,
-0.0373538584,
0.2794216573,
-0.0495902635,
-0.1328598559,
-0.5643982887,
-0.342243582,
-0.3078686297,
-0.1439307034,
-0.2064444423,
-0.2464855462,
0.1733019054,
-0.4317348897,
-0.2348001897,
0.0973135456,
0.4112352729,
0.050333865,
-0.0008298484,
0.0538169183,
-0.1150372103,
-0.0675030053,
0.1778492481,
-0.3819768727,
0.0685225353,
-0.0919140652,
0.1249926314,
0.235566631,
0.1645408124,
-0.1812951267,
0.0762331039,
0.6318386793,
-0.2289966792,
0.1625600606,
0.0231882874,
0.3164771199,
0.2281891108,
-0.1420790404,
0.0780964792,
0.0015666272,
0.1062560156,
-0.067743361,
-0.0993952379
] |
https://github.com/huggingface/datasets/issues/1324 | ❓ Sharing ElasticSearch indexed dataset | Hi @SBrandeis,
Thanks a lot for picking up my request.
Maybe I can clarify my use-case with a bit of context. Say I have the IMDb dataset. I create an ES index on it. Now I can save and reload the dataset from disk normally. Once I reload the dataset, it is easy to retrieve the ES index on my machine. I was wondering: is there a way I can share the (now) indexed version of the IMDb dataset with my colleagues without requiring them to re-index it?
Thanks a lot in advance for your consideration.
Best,
Pietro | Hi there,
First of all, thank you very much for this amazing library. Datasets have become my preferred data structure for basically everything I am currently doing.
**Question:** I'm working with a dataset and I have an elasticsearch container running at localhost:9200. I added an elasticsearch index and I was wondering
- how can I know where it has been saved?
- how can I share the indexed dataset with others?
I tried to dig into the docs, but could not find anything about that.
Thank you very much for your help.
Best,
Pietro
Edit: apologies for the wrong label | 98 | ❓ Sharing ElasticSearch indexed dataset
Hi there,
First of all, thank you very much for this amazing library. Datasets have become my preferred data structure for basically everything I am currently doing.
**Question:** I'm working with a dataset and I have an elasticsearch container running at localhost:9200. I added an elasticsearch index and I was wondering
- how can I know where it has been saved?
- how can I share the indexed dataset with others?
I tried to dig into the docs, but could not find anything about that.
Thank you very much for your help.
Best,
Pietro
Edit: apologies for the wrong label
Hi @SBrandeis,
Thanks a lot for picking up my request.
Maybe I can clarify my use-case with a bit of context. Say I have the IMDb dataset. I create an ES index on it. Now I can save and reload the dataset from disk normally. Once I reload the dataset, it is easy to retrieve the ES index on my machine. I was wondering: is there a way I can share the (now) indexed version of the IMDb dataset with my colleagues without requiring them to re-index it?
Thanks a lot in advance for your consideration.
Best,
Pietro | [
-0.1988600045,
0.1247479841,
-0.1196777523,
0.0339190513,
-0.399158448,
0.1631871909,
0.268971175,
0.0641193911,
0.0988282338,
0.2021004409,
-0.2281738371,
0.158411473,
0.0233796742,
-0.0414418913,
-0.0148404278,
0.3394413888,
0.0893098637,
0.0631406233,
0.1103469133,
-0.1242944375,
0.0559723899,
-0.2349128574,
0.0433594026,
-0.0645675436,
-0.0652778521,
-0.0618319921,
-0.4033027291,
-0.1812633574,
0.043665614,
-0.211949572,
0.5912086964,
0.3010911942,
0.2538352907,
0.2416609675,
-0.0001154477,
0.059577994,
0.276427716,
-0.0930101499,
-0.1243459359,
-0.3499154747,
-0.6613681316,
-0.1312085688,
0.2852574289,
-0.4554821849,
-0.0966447368,
-0.3421034813,
0.240293622,
-0.7295073271,
-0.045042973,
-0.2401281595,
0.1476607919,
0.04121859,
-0.1752973497,
-0.0152987717,
0.1940663159,
0.1136573702,
0.0129570216,
-0.1093859673,
0.1031236202,
0.1652024984,
0.2054191828,
0.1775830686,
-0.0940437466,
0.0174309891,
0.1710149795,
0.082367897,
-0.5242794156,
-0.1088331118,
-0.0281778164,
0.0563651472,
0.9450516701,
-0.1793228537,
-0.4199526906,
0.0407503508,
0.0339219496,
-0.0398223475,
-0.0109039666,
-0.0083921338,
0.260844022,
0.1329612732,
-0.2057775706,
-0.4527465701,
-0.3319207132,
0.0893897936,
0.0239442978,
0.5131620765,
-0.054501228,
0.0551777519,
-0.166106075,
-0.0404137298,
0.4516312182,
-0.0163609833,
0.0697255582,
0.1077306271,
0.2860758007,
-0.1387108713,
-0.1411641091,
-0.290079236,
-0.0777226537,
0.1675432473,
-0.1779171824,
-0.1583890766,
0.2291654944,
0.2637394369,
0.4209388793,
0.2178203613,
0.1772520393,
0.3229677379,
0.1465880126,
-0.3529279232,
-0.1640386283,
-0.3661540151,
-0.0132501218,
0.3466746509,
0.4428036511,
-0.3139208257,
0.0692414343,
-0.1900915354,
-0.074898608,
-0.2175788134,
-0.2848868668,
-0.1972458959,
0.1211082786,
0.0965385959,
-0.030947797,
-0.3720716238,
0.021453958,
-0.0606539585,
-0.0201938953,
-0.0292200316,
-0.1957125217,
-0.2964937985,
0.0171736069,
0.3570492566,
0.1961146593,
-0.4609553516,
0.0394111685,
-0.2448516488,
0.2231204659,
0.0160481036,
0.3973346055,
0.2916307151,
0.2900520265,
0.1884034872,
0.2577614486,
0.2254976779,
-0.0337670706,
-0.2146921754,
-0.4397146106,
0.0227636546,
-0.2895738184,
-0.4273772836,
-0.202657938,
0.0500163101,
-0.111169897,
0.1029623076,
-0.1753641516,
0.2210798115,
-0.0205311365,
0.0416542664,
0.0754984394,
0.3739998639,
-0.3952652514,
-0.2210345566,
0.4148869812,
0.0035592476,
-0.2440735251,
-0.2064420283,
-0.5053337216,
0.3462718129,
-0.2634890676,
0.0357699245,
-0.2802568674,
0.0588378757,
0.0382042564,
0.3766161203,
0.3078477085,
-0.2098412812,
-0.6120324135,
0.0018122328,
-0.0938806981,
-0.3875822723,
-0.0048304121,
0.2987864614,
0.5886089206,
-0.1760360003,
-0.0411492288,
0.4830718637,
0.0590427779,
-0.088521421,
-0.1775693148,
-0.1968393922,
-0.0563885309,
-0.1380815357,
-0.0941394866,
-0.0182278622,
0.3711377978,
0.1541197598,
-0.1286542863,
0.3143365979,
0.2648583949,
0.1926955432,
0.4861017466,
0.4271421731,
0.0616723709,
0.0193929151,
-0.2588897645,
0.0219210908,
0.0880433246,
-0.3332215548,
0.1101872995,
-0.5423186421,
-0.1321733445,
0.1099899933,
0.0572945699,
0.0492970645,
0.0710488409,
0.0199015979,
-0.01256142,
0.3137130439,
-0.2198411673,
-0.1813592613,
0.1798434258,
-0.1857518703,
-0.3203568459,
0.3934901655,
-0.0204349868,
0.0663025528,
-0.1220834181,
0.0164792091,
0.1915435195,
-0.1148839667,
-0.1754525006,
0.3342702687,
-0.5194675326,
0.4946863353,
0.357843101,
0.5002108812,
0.0858269706,
-0.6622853279,
0.5527700782,
-0.0361747965,
-0.1229288131,
0.0886339992,
-0.3847315609,
0.2940209508,
-0.4438501894,
0.1080005765,
-0.1244282871,
-0.1022991613,
-0.1508058757,
-0.0758101866,
-0.351790458,
-0.0726293549,
-0.245898217,
-0.3034411669,
-0.2077300996,
0.1918957978,
-0.0563428141,
0.3178857863,
-0.0210099723,
0.1341428608,
0.1603892893,
0.0969604477,
-0.0385722369,
-0.2863001823,
-0.0457846411,
-0.1007415429,
0.2109858096,
0.1735739857,
0.3986305594,
-0.102357693,
0.3224241734,
0.0732468888,
0.1670354009,
0.0395460501,
0.1103516221,
-0.2544103861,
0.107952401,
0.04026898,
0.3734402061,
-0.0160952285,
-0.1876024157,
-0.1289634407,
0.0510354564,
0.3918850422,
-0.0940180272,
-0.0854631066,
-0.0150619242,
-0.1260552108,
-0.1579373479,
-0.2407259792,
-0.0270369798,
0.4399487078,
0.0583891608,
-0.0824674219,
-0.4287157357,
0.3352513611,
-0.0003865063,
-0.1406268328,
-0.0541078523,
-0.1411373764,
0.0395006277,
-0.0201628469,
0.162198782,
0.3113372028,
0.4181270897,
0.3823671937,
0.3871316314,
-0.18328017,
-0.0685770735,
-0.1460178494,
0.1803923696,
0.1241778955,
-0.1363325417,
0.0545502566,
-0.6782448888,
-0.2409546375,
-0.1003123671,
-0.0597913302,
0.0098854387,
-0.2054485083,
0.126937449,
0.1847613156,
0.4511447549,
-0.482272923,
-0.2808843255,
0.0073809489,
0.2037153244,
-0.2172987908,
0.0744237155,
-0.1621913761,
-0.1661676168,
-0.0636928231,
0.3251668215,
-0.2484375536,
-0.0824172944,
-0.6632472277,
0.0341142341,
-0.4512144029,
0.0057523046,
0.087301679,
-0.0184706487,
-0.0174823105,
0.1385415792,
-0.3052282035,
0.4069462717,
0.1929591894,
0.0120888669,
0.0669231415,
0.0891933069,
0.3754009902,
0.0703557357,
-0.0106692892,
0.0324439406,
-0.2659997046,
-0.0522959568,
0.4143593311,
0.1227934659,
0.1801628619,
-0.0679912716,
0.0717384815,
0.7623035908,
0.116471827,
-0.1460178941,
0.1448875368,
0.1330836117,
0.3890994489,
-0.0884662941,
-0.233131513,
-0.2329469174,
0.3048665226,
-0.3906288445,
0.0088463137,
0.0799925998,
-0.2279766947,
-0.1015563682,
-0.5722392201,
-0.2830637395,
-0.0507570207,
0.0366559587,
0.123034142,
0.3523518145,
0.0107648885,
-0.4227391183,
-0.0648379996,
-0.4604938924,
-0.3073161244,
0.22991997,
0.2506480217,
0.1428651959,
-0.1529065967,
-0.132389456,
-0.0686790124,
0.1539707184,
-0.0410751142,
0.0654677302,
-0.0034509304,
0.1661797166,
0.4228127897,
0.3001914024,
0.1424070448,
-0.2715088129,
-0.2307692021,
-0.2508727908,
0.0491177775,
-0.2428728342,
0.0660157278,
0.0827064142,
0.358506918,
-0.3965246081,
0.2971864939,
0.1547400504,
0.0060442952,
-0.0213040393,
-0.085267663,
-0.4650020003,
-0.0787567943,
-0.2405432314,
-0.2119165361,
0.2239191681,
0.1603489518,
-0.0894416645,
-0.0315391794,
0.0900232494,
0.1248381361,
-0.2611793876,
0.1337644309,
-0.0053244191,
-0.0403088443,
0.2585462034,
0.3238075972,
0.264446795,
0.7711285949,
0.1207397729,
0.3748750389,
0.3539182842,
-0.0917024165,
0.4947232902,
-0.1578242034,
0.0938215107,
0.3423296809,
0.0029235783,
0.1041040868,
-0.1784411967,
-0.0110088354,
-0.1501690447,
-0.3299858272,
-0.2239180505,
0.0409729667,
-0.0595216453,
-0.2411113232,
-0.440823704,
0.4113923311,
-0.0485620126,
-0.1598932892,
0.4277383387,
0.3819778562,
-0.1581191421,
0.3384889662,
0.215145871,
0.7895467877,
-0.1535993218,
0.0697660074,
-0.3745652437,
0.2819422483,
0.4274345338,
-0.3671249151,
0.152298823,
-0.1027529165,
-0.5429016352,
-0.0907827467,
-0.093506366,
-0.0923124626,
-0.0650365278,
-0.2687838972,
-0.1713568419,
-0.1788931042,
-0.125943318,
-0.2673235536,
0.3235789835,
0.1354747117,
-0.156559974,
0.1838376522,
0.0625623763,
0.026070876,
0.2199364901,
0.1365504712,
-0.0409247577,
-0.0357430205,
0.1524200737,
-0.3662886322,
-0.2778862417,
0.3187921047,
0.4105171561,
-0.1524473429,
-0.1143145934,
0.14011617,
0.0055303634,
0.1207771674,
0.1060691476,
-0.0635835752,
-0.1557034999,
-0.1551446766,
-0.048989106,
0.0908606574,
-0.1937016994,
0.2439703643,
0.2436433434,
-0.4006450474,
0.0392424278,
0.3353356123,
-0.1123578027,
-0.2934344113,
0.1053279266,
0.0497862324,
-0.2370604724,
0.1523442268,
0.0401247665,
-0.0984497294,
0.1003219858,
0.0716195181,
0.1845346391,
-0.0219404567,
0.232446894,
0.3536521494,
-0.2250642478,
0.1306174099,
0.7560181618,
0.3011769652,
-0.1902535707,
0.2914907634,
-0.2839083672,
-0.0618214309,
0.0344611555,
0.5927827358,
0.4039459527,
0.378546536,
-0.2801947892,
-0.4006794691,
0.6040413976,
0.0050994917,
-0.1403527409,
0.1100047529,
0.1292929053,
-0.4848046899,
-0.0552798137,
0.1767627299,
0.3700094223,
0.1789283305,
0.3861180544,
-0.32935673,
-0.6366778016,
0.0367073715,
-0.0532692894,
-0.2445711792,
0.039337106,
-0.1165655404,
-0.0479987413,
0.3074911535,
0.3928636312,
0.2351216078,
-0.3611122966,
-0.0121807242,
-0.115855217,
0.0772442669,
-0.0817570463,
-0.0255222879,
0.1632354558,
0.0478631817,
-0.0336270072,
-0.3351221979,
-0.6004697084,
0.0131639522,
-0.0295976978,
-0.2250586301,
0.3415969014,
0.2611823976,
-0.0255072787,
0.079208456,
-0.1520787627,
0.0596675165,
0.2393161803,
0.3122385442,
0.3275754154,
-0.1785262376,
0.280726403,
0.1692123711,
-0.0819033533,
-0.2514820993,
-0.0153169297,
0.1791562885,
0.1710136533,
0.0182963479,
0.099786438,
0.1434958875,
0.3075678945,
0.3659248352,
0.0741651431,
-0.1473126113,
-0.0506462976,
0.0160374977,
0.1272451282,
0.1177116781,
0.0958657786,
0.1720527858,
0.214163363,
-0.3437948227,
0.2365577817,
0.2027547807,
0.1931519657,
-0.2582728863,
-0.0245820731,
0.3759482205,
0.0024667438,
0.1191953719,
-0.2864243686,
-0.0343850143,
0.0204692688,
0.1288377941,
0.5339486599,
0.4390486479,
0.287253648,
0.1947348714,
0.4252045751,
0.3265963495,
-0.095254384,
0.2823247612,
-0.1295139641,
0.0875481963,
-0.0259351172,
0.463529855,
0.1435150802,
0.003431445,
0.2549615502,
0.0141067598,
-0.1103917658,
0.0870043039,
0.023413239,
0.0990672857,
-0.1082647145,
0.1965470016,
-0.1438850164,
-0.0461318903,
-0.2504723072,
0.1138725206,
-0.214341104,
-0.2665428817,
0.025266014,
0.1398299634,
-0.057694979,
0.1907278895,
0.1885736138,
0.0953208134,
-0.0905576497,
-0.144854039,
0.0238224659,
0.1769090146,
0.0349897109,
0.1057827771,
-0.1384926438,
-0.2238200158,
-0.0477362648,
0.6414459348,
0.0690553561,
-0.2220046222,
0.0221628956,
-0.2016859502,
-0.2219018042,
-0.5017578006,
-0.1355537474,
0.0744631663,
0.1801432818,
0.2477641851,
0.2241043746,
0.2597485185,
-0.0983474851,
-0.3767016232,
0.0423207842,
-0.0012834264,
0.0804955512,
-0.0712691993,
-0.2423617393,
-0.1729291081,
0.5879148245,
0.0399132781,
-0.0257999841,
-0.0133590763,
0.0198876038,
-0.0317280777,
0.2002616674,
0.3906555176,
-0.1158633232,
0.0656955242,
-0.1754960567,
-0.3162514865,
0.2365530282,
-0.2546004951,
0.1089093536,
0.1835514903,
0.4819939435,
-0.004810126,
0.0258815344,
-0.0044521485,
-0.0784696862,
-0.0661040768,
0.108461462,
0.2437613606,
-0.4186977744,
-0.1691355854,
0.0946248397,
-0.0129648671,
0.1304557174,
0.0540059581,
-0.1932361275,
-0.0159188882,
-0.479165554,
-0.0254827868,
0.0818018839,
0.216873318,
0.207945779,
-0.2851437628,
0.0684060529,
0.0941852704,
0.037405245,
0.0386182442,
-0.0879770443,
-0.1031292751,
0.3056050539,
0.0441690013,
-0.187226668,
-0.6146064401,
-0.2730353177,
-0.3219206631,
-0.2103547603,
-0.1793845445,
-0.1831953079,
-0.0646426231,
-0.3975068331,
-0.2768534422,
0.1195991039,
0.2697784603,
0.1655709743,
0.0162617937,
0.1240481585,
-0.0733272061,
-0.0481566824,
0.1637557,
-0.3931721151,
0.1680310816,
-0.1358807087,
0.1666196734,
0.2945103347,
0.046022363,
-0.0858488828,
0.2235161066,
0.6327006817,
-0.2470053434,
0.2508888543,
-0.1537610292,
0.2452572435,
0.2626225352,
-0.2423038185,
0.1168690845,
0.0135354754,
0.1160091758,
-0.0772313029,
-0.0991739407
] |
https://github.com/huggingface/datasets/issues/1324 | ❓ Sharing ElasticSearch indexed dataset | Thanks for the clarification.
I am not familiar with ElasticSearch, but if I understand well you're trying to migrate your data along with the ES index.
My advice would be to check out ES documentation, for instance, this might help you: https://www.elastic.co/guide/en/cloud/current/ec-migrate-data.html
Let me know if it helps | Hi there,
First of all, thank you very much for this amazing library. Datasets have become my preferred data structure for basically everything I am currently doing.
**Question:** I'm working with a dataset and I have an elasticsearch container running at localhost:9200. I added an elasticsearch index and I was wondering
- how can I know where it has been saved?
- how can I share the indexed dataset with others?
I tried to dig into the docs, but could not find anything about that.
Thank you very much for your help.
Best,
Pietro
Edit: apologies for the wrong label | 48 | ❓ Sharing ElasticSearch indexed dataset
Hi there,
First of all, thank you very much for this amazing library. Datasets have become my preferred data structure for basically everything I am currently doing.
**Question:** I'm working with a dataset and I have an elasticsearch container running at localhost:9200. I added an elasticsearch index and I was wondering
- how can I know where it has been saved?
- how can I share the indexed dataset with others?
I tried to dig into the docs, but could not find anything about that.
Thank you very much for your help.
Best,
Pietro
Edit: apologies for the wrong label
Thanks for the clarification.
I am not familiar with ElasticSearch, but if I understand well you're trying to migrate your data along with the ES index.
My advice would be to check out ES documentation, for instance, this might help you: https://www.elastic.co/guide/en/cloud/current/ec-migrate-data.html
Let me know if it helps | [
-0.1457760334,
-0.0453470536,
-0.1310749203,
0.0862376317,
-0.3029542267,
0.144063279,
0.1689628363,
0.0394940749,
0.0905101523,
0.1678370684,
-0.224799633,
0.1182385683,
0.03831679,
-0.0483014174,
0.0813873634,
0.2858946323,
0.2005698383,
-0.0846780986,
0.1571805328,
-0.1761489809,
-0.0924895331,
-0.1813903302,
0.0924830809,
0.0360959433,
-0.0428277925,
-0.0231427345,
-0.4308625758,
-0.1304083914,
0.0299439915,
-0.1795431674,
0.4697048664,
0.1927622408,
0.2758397162,
0.349252522,
-0.0001151063,
0.0133274272,
0.2313717157,
-0.131344229,
-0.0700165108,
-0.3784715235,
-0.7095400691,
-0.1439014375,
0.3159016669,
-0.4703966677,
-0.0717967227,
-0.3100254834,
0.1885521263,
-0.7246236205,
-0.0082337214,
0.0296246205,
0.1764687002,
0.007374967,
-0.0613890216,
-0.0677639619,
0.2456240207,
0.0809687674,
-0.0013590744,
-0.1211189032,
0.0571739674,
0.1488158256,
0.2379550636,
0.1580674946,
-0.0959754288,
-0.0015729368,
0.1735459417,
0.1030582711,
-0.4810885787,
-0.170882374,
-0.0100433948,
-0.0526018776,
0.7975549102,
-0.1531260759,
-0.2209455818,
0.1287151277,
-0.0147748599,
-0.0849734172,
0.0635086,
0.0574336983,
0.2169609517,
0.1254876405,
-0.2365811467,
-0.4179345369,
-0.4528799057,
0.0952968895,
-0.1337144375,
0.639708519,
-0.1087927893,
0.0641463548,
-0.1296016872,
0.0166653283,
0.5582042933,
0.0055195796,
0.1231709048,
0.17790398,
0.2077919543,
-0.1689666808,
-0.1721054018,
-0.3097270727,
-0.0356603302,
0.1470439583,
-0.1803040057,
-0.1733401716,
0.2875545323,
0.3189652562,
0.3117190897,
0.2659611106,
0.1532385647,
0.2794010341,
0.0862537995,
-0.4532052279,
-0.0932767987,
-0.365529865,
-0.0941489711,
0.2714435756,
0.2927917838,
-0.3570107222,
0.056986548,
-0.2542730272,
-0.0886998177,
-0.167835921,
-0.1851098537,
-0.2368091941,
0.1837714463,
0.1748079956,
0.0455109924,
-0.4377540052,
0.0412702784,
-0.0090105487,
0.065793097,
-0.0398496725,
-0.2080462724,
-0.1812650114,
-0.0013804145,
0.2258407921,
0.0353706554,
-0.3625751138,
0.0773464292,
-0.2569188178,
0.2154799253,
-0.0168705564,
0.4023522437,
0.1661075503,
0.315842241,
0.2647253275,
0.2203660458,
0.1481296271,
0.0576662719,
-0.1004641131,
-0.4170542061,
-0.0847445205,
-0.2948835492,
-0.4469674826,
-0.3006443083,
0.0753790885,
-0.12192747,
0.0232306588,
-0.1892863065,
0.320092231,
-0.0489174873,
0.091942288,
0.0651450753,
0.4297693372,
-0.3482821286,
-0.2637747526,
0.4185819924,
-0.0818902031,
-0.2158022821,
-0.1309785992,
-0.4038163424,
0.3640605807,
-0.0214127265,
0.0175250322,
-0.2373890132,
0.0326794237,
0.0393477641,
0.4336854815,
0.2714957893,
-0.1292856187,
-0.4007877707,
0.0380569957,
-0.1345509887,
-0.5735340714,
0.0136669744,
0.182325393,
0.5256354213,
-0.2968570292,
-0.0718127787,
0.5366873145,
0.0097737322,
-0.0651436821,
-0.2112267166,
-0.080355756,
-0.055281844,
-0.1397624761,
-0.2261261493,
-0.1280879527,
0.3995249569,
0.1132633686,
-0.2694826722,
0.3338492811,
0.271224618,
0.2352000177,
0.577110827,
0.3885475099,
0.0084545445,
0.1116840765,
-0.1991683692,
-0.0603858046,
0.0679597706,
-0.3469827473,
0.060708832,
-0.4277480245,
-0.228638649,
0.1216202676,
-0.0791683644,
0.0404196121,
0.1097251698,
0.0403866842,
-0.0493520908,
0.3112529814,
-0.2652312219,
-0.2971453965,
0.0204566587,
-0.1574490815,
-0.2572398186,
0.4892599285,
0.0032497433,
0.0899047628,
-0.149574846,
-0.0277398545,
0.2485860586,
-0.1627816558,
-0.3001867831,
0.3699036837,
-0.5102571249,
0.4789198339,
0.4329916835,
0.5023628473,
0.0516017787,
-0.7361004949,
0.6079819202,
-0.0727888867,
-0.1887969822,
0.0689285025,
-0.4780113697,
0.1741655171,
-0.5054830909,
0.1937195361,
-0.1432693601,
-0.0824298784,
-0.1361821443,
-0.0746349692,
-0.2095845193,
0.0672514215,
-0.1215949059,
-0.2308928519,
-0.196415633,
0.2698986232,
-0.0475252829,
0.3268632591,
0.0483638979,
0.1000006124,
0.1638963521,
0.0939931199,
-0.0661065355,
-0.3816813827,
0.0605911463,
-0.0777859241,
0.3368869722,
0.1360582709,
0.446349442,
-0.1025031582,
0.2812379301,
0.0636643171,
0.2965093851,
0.0862450674,
0.0999866873,
-0.3449761868,
0.0289297923,
0.0542094782,
0.3567811251,
-0.0990596339,
-0.228716135,
-0.0068726647,
0.0799517855,
0.4823934436,
0.018127596,
-0.0609980896,
-0.0829005837,
-0.1063558757,
-0.1488536,
-0.2547788322,
0.0012725991,
0.3403763175,
0.0274672322,
-0.1734494269,
-0.4013464451,
0.3015753925,
0.0434719324,
-0.0818884894,
-0.186839819,
-0.1730015427,
-0.0350470133,
-0.016575722,
0.2086959183,
0.3489988148,
0.3991431892,
0.4420817792,
0.3904938996,
-0.1034115925,
-0.1730883271,
-0.1159181073,
0.1397185773,
0.015473905,
-0.2044384778,
0.1714711785,
-0.6772081256,
-0.190022558,
-0.0780403987,
-0.0399350226,
-0.0449577309,
-0.0345216729,
0.0807470083,
0.1899697781,
0.517871201,
-0.4853644073,
-0.4031349719,
-0.0117790876,
0.1045270488,
-0.223405391,
0.1328675598,
-0.2687134743,
-0.1638318002,
-0.0073704068,
0.2812464833,
-0.2817285359,
-0.0349924713,
-0.6651855707,
0.0611877106,
-0.4426785111,
0.0827700868,
0.2310271561,
0.067174226,
0.0836089253,
0.0312217623,
-0.2561571002,
0.3837642074,
0.2040836364,
0.0096309632,
0.0569280796,
0.1633331329,
0.410043031,
0.0706087649,
-0.0192181412,
0.078329742,
-0.1890737265,
-0.0556714088,
0.482140094,
0.1648231745,
0.1613212377,
-0.0689432323,
0.0577242263,
0.7453505397,
0.1732262373,
-0.1152819842,
0.1567568481,
0.2003349364,
0.197094366,
-0.0396702178,
-0.2998002172,
-0.0960259959,
0.3181844056,
-0.3749888241,
0.1859309822,
0.0552678183,
-0.179635942,
-0.1480714232,
-0.5336787701,
-0.2598905265,
0.05022889,
0.0916063339,
0.198126629,
0.3708255887,
-0.1932541579,
-0.5065413117,
0.0072858375,
-0.4207777381,
-0.3672536612,
0.228542611,
0.1188807562,
0.1398947984,
-0.208595708,
-0.1644082814,
-0.1218949184,
0.2319168299,
-0.1496206522,
-0.1080238149,
-0.1033152267,
0.166457355,
0.4637420177,
0.3541481197,
0.0455256999,
-0.224246636,
-0.3911665976,
-0.3795756698,
0.0313667208,
-0.1973667294,
0.0807818994,
0.0721734092,
0.3277916908,
-0.2468868643,
0.1882663369,
0.0223067906,
-0.0436862856,
0.0979661718,
-0.0825465769,
-0.3813144565,
-0.0678573623,
-0.1511031836,
-0.2786831856,
0.2273042351,
0.2290168852,
0.0225728657,
-0.0241477564,
0.0265187975,
0.126731053,
-0.1894013435,
0.1069187894,
0.0395646393,
-0.0802997947,
0.1730446815,
0.2275229692,
0.1138884574,
0.8261783719,
0.2076791227,
0.3811038136,
0.3793133795,
-0.1029414237,
0.3582112789,
-0.1079954207,
0.1141337305,
0.4698264599,
-0.0042549302,
0.1704633385,
-0.0857632309,
-0.0289557055,
-0.1451046318,
-0.1974020153,
-0.1476943642,
0.005857808,
0.0794495046,
-0.179049328,
-0.3474205434,
0.4356648624,
-0.1267923713,
-0.1528053284,
0.3582466841,
0.2564387918,
-0.260520339,
0.2792615592,
0.1858707517,
0.9290238023,
-0.0519202314,
-0.0397883952,
-0.3440650105,
0.2581505179,
0.3788028955,
-0.5314869881,
-0.019441653,
-0.0580633171,
-0.5285538435,
-0.0637201816,
-0.0934447125,
-0.0235430785,
-0.0735016838,
-0.3854604363,
-0.1883979887,
-0.1638096273,
-0.0478342399,
-0.159484297,
0.2797237933,
0.1993722469,
-0.1660590023,
0.0671452433,
0.0898783654,
-0.1467743069,
0.242086336,
0.1903403252,
-0.1246159524,
-0.0721092597,
0.1775363982,
-0.3136198223,
-0.2241410464,
0.2794346511,
0.3773970604,
-0.2146372944,
-0.1604980975,
0.1585400254,
0.0062597813,
0.2064766735,
0.0457426608,
-0.0918214172,
-0.1513353735,
-0.1130280197,
-0.0509921238,
0.1414049864,
-0.2398776412,
0.1609659344,
0.1948280632,
-0.3241443336,
0.2213177383,
0.3517825603,
-0.1224722862,
-0.3239692152,
0.1079274938,
0.0976788178,
-0.237669915,
0.0775835887,
0.0970031023,
-0.1314311326,
0.0492526516,
0.0934396759,
0.3093386292,
-0.1214596704,
0.2844890952,
0.2661387026,
-0.1769097745,
0.0404784828,
0.5570266843,
0.2246734947,
-0.2920644283,
0.2079243362,
-0.2699432373,
-0.0589591041,
0.0366438739,
0.6599254012,
0.5156420469,
0.3183205426,
-0.316065073,
-0.3338962793,
0.5548592806,
-0.047683347,
-0.1209006906,
0.1960237324,
0.0707604438,
-0.4755548239,
-0.0214262344,
0.1016723216,
0.2840726674,
0.2609851658,
0.383582592,
-0.3919516802,
-0.6248452663,
0.110467501,
-0.0119401077,
-0.2682051361,
-0.009565278,
-0.177636534,
-0.0691405386,
0.439955622,
0.3236010969,
0.1586662084,
-0.3802182972,
0.0243613105,
-0.1664457023,
0.0887472853,
-0.0843417495,
0.006804442,
0.15144521,
0.0892767757,
-0.0574726537,
-0.4319678247,
-0.6510105133,
0.0220577437,
-0.0257921927,
-0.3172127008,
0.198432982,
0.2094598413,
-0.0439779162,
0.0845169947,
-0.2157480717,
0.0832350329,
0.1431357712,
0.3438168764,
0.3215334713,
-0.2229131758,
0.2338875383,
0.1753682643,
-0.1830294281,
-0.2176286876,
0.0401378982,
0.1843347996,
0.1131012589,
0.0319416001,
0.145863384,
0.176474154,
0.2464813441,
0.1897222251,
0.0596832447,
-0.1466868967,
-0.0125312265,
0.0494463779,
0.1684556454,
0.1212231368,
0.0886722207,
0.0933919102,
0.2917614877,
-0.3603587747,
0.1656334251,
0.197126016,
0.2134276778,
-0.0954940021,
0.0658893287,
0.4099614322,
0.1071258187,
0.0901237503,
-0.3227034509,
-0.0585172549,
0.0760971606,
0.1667948067,
0.5549880862,
0.4529892802,
0.2450198829,
0.1695381999,
0.5373660922,
0.2956967056,
-0.1101276651,
0.3896270096,
-0.1359583735,
-0.0248860959,
-0.1249077469,
0.3491644561,
0.1191425771,
0.0707086921,
0.3210743368,
-0.0247133952,
-0.2048635185,
0.0466395244,
0.151205644,
0.1134105697,
-0.0306052621,
0.0082231164,
-0.1360277534,
0.0073530474,
-0.2749245465,
0.0991618857,
-0.3227593899,
-0.244267568,
0.0788003132,
0.1789405495,
-0.0337311849,
0.2129301429,
0.2452938259,
0.0286624841,
-0.0275925566,
0.0212368015,
0.0430193208,
0.1435916871,
0.0164046902,
0.025344247,
-0.169868201,
-0.1757555455,
0.0151038887,
0.6578931212,
0.0672675148,
-0.3307160437,
0.0559035279,
-0.1781045943,
-0.2360548973,
-0.4900830984,
-0.1800142229,
0.1053707302,
0.1492769718,
0.1928829104,
0.1296409667,
0.2398086637,
0.0768742785,
-0.411614418,
0.0720796362,
-0.0667611286,
0.0655935705,
-0.1078820154,
-0.3489000797,
-0.1794062108,
0.4989194572,
0.0881646872,
-0.065588139,
0.0781548768,
0.029258782,
0.0218475237,
0.1311134845,
0.3386645317,
-0.0239717104,
-0.1400453746,
-0.322285533,
-0.2095173895,
0.2118899077,
-0.187455222,
0.0887031183,
0.2236837,
0.4133698642,
-0.0065190243,
-0.0283101536,
0.0297665391,
-0.0905526578,
-0.0517754816,
0.150862053,
0.1846236885,
-0.3065721393,
-0.0720716044,
0.2092582881,
-0.0009830588,
0.3000796437,
0.2042939514,
-0.1220891252,
-0.0033513957,
-0.5728544593,
0.0765559375,
0.0602839403,
0.1637622863,
0.0912499875,
-0.3142157793,
0.1307993233,
0.0859453604,
0.2388210893,
0.2297324836,
-0.0563217029,
-0.0285835229,
0.3390567601,
0.0303543285,
-0.1852874756,
-0.4962014854,
-0.4122148752,
-0.2655915022,
-0.198162064,
-0.1734671444,
-0.2189137787,
0.0473860055,
-0.4242605269,
-0.266305238,
0.1756478846,
0.3380907774,
0.0397033319,
0.0451990813,
0.0734678134,
-0.1010466963,
-0.0787754133,
0.1480127424,
-0.305606395,
0.097636126,
-0.068724893,
0.1028550491,
0.2726202905,
0.1440493912,
-0.0303101745,
0.0846570358,
0.5821899772,
-0.2577876151,
0.1556805223,
-0.0446350314,
0.2648152411,
0.2533209324,
-0.2322275192,
0.085444577,
0.0414165929,
0.1609148234,
-0.0746956915,
-0.103395775
] |
https://github.com/huggingface/datasets/issues/1299 | can't load "german_legal_entity_recognition" dataset | Please if you could tell me more about the error?
1. Please check the directory you've been working on
2. Check for any typos | FileNotFoundError: Couldn't find file locally at german_legal_entity_recognition/german_legal_entity_recognition.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/german_legal_entity_recognition/german_legal_entity_recognition.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/german_legal_entity_recognition/german_legal_entity_recognition.py
| 24 | can't load "german_legal_entity_recognition" dataset
FileNotFoundError: Couldn't find file locally at german_legal_entity_recognition/german_legal_entity_recognition.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/german_legal_entity_recognition/german_legal_entity_recognition.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/german_legal_entity_recognition/german_legal_entity_recognition.py
Please if you could tell me more about the error?
1. Please check the directory you've been working on
2. Check for any typos | [
-0.2461107671,
-0.2954850793,
-0.0401218869,
0.4629744887,
0.1347416043,
0.0751199275,
0.1829095036,
0.2415545732,
0.2743230462,
0.0843391716,
-0.1621889174,
-0.2467780411,
-0.0410385393,
0.2271581441,
0.1816770732,
-0.3239539564,
-0.0226875953,
0.043106284,
0.1395510584,
-0.2421330661,
-0.183792159,
0.3086111844,
-0.1309448034,
0.2035575807,
-0.2785854042,
0.1524156034,
-0.1371283233,
0.4542097151,
-0.3045519292,
-0.206193909,
0.2433123738,
-0.2026709914,
0.3079296649,
0.499183476,
-0.0001100421,
0.0578923672,
0.2836088538,
-0.0098898765,
-0.2552670836,
-0.4077284932,
-0.0006732176,
-0.2990614474,
-0.186430186,
-0.1148854122,
-0.2259488255,
-0.2796554565,
0.1619675606,
0.1354248524,
0.2634930909,
0.119135201,
0.2091218531,
0.2212061882,
0.2193622887,
-0.3371452689,
-0.1168961078,
0.2205760926,
-0.0645755231,
0.5331407189,
0.1345074028,
-0.2835018337,
0.2549847364,
0.2270915955,
-0.0557183959,
-0.0208476912,
0.3751373589,
-0.0840707272,
0.3238506615,
-0.3081604242,
0.2847311199,
0.2343875617,
0.580249846,
-0.0297925454,
-0.4290721714,
-0.0293353666,
0.2880425155,
0.0057342658,
0.2407149523,
0.3006297648,
-0.0669368804,
0.1814678907,
-0.1373806745,
-0.4443279803,
-0.3213984966,
0.286062181,
-0.2091827989,
0.0494362414,
-0.2200018466,
-0.0653784722,
0.2275342941,
-0.2309977412,
-0.467282176,
0.0200571734,
0.0080822753,
0.5115163326,
-0.1440295726,
0.0268188603,
-0.0979866013,
0.3844966292,
0.1937473416,
0.1407543272,
-0.022037033,
-0.081481345,
-0.1746383309,
0.4402427375,
0.059413366,
0.3439053893,
0.1706577688,
0.2345794439,
0.1332698315,
0.1937056333,
-0.110321559,
0.0529636592,
-0.4952788651,
-0.3095990419,
-0.3519347012,
-0.2179228663,
0.3497494459,
-0.3086476922,
-0.2129980773,
0.0519942716,
-0.1881489903,
-0.0218674596,
0.3461876512,
0.5144167542,
-0.0649780631,
-0.2256058455,
-0.113426283,
0.173306942,
-0.194989562,
-0.0240161493,
-0.2273390591,
0.2044349909,
-0.2663425505,
0.1077499837,
0.1484901607,
-0.482388407,
0.4201613963,
-0.2502061129,
0.0515127219,
0.0119270869,
-0.1076057479,
-0.0798525363,
-0.194585219,
0.2724862695,
-0.2817015946,
-0.1495464742,
0.2713319659,
-0.2432876378,
-0.1272885203,
-0.0838614032,
-0.2914427817,
-0.3538346887,
-0.3816325068,
0.1404941082,
-0.1598207504,
-0.1504812688,
-0.1611047536,
0.1011338085,
-0.1878175586,
-0.3983781636,
0.003076992,
0.0209351573,
-0.1749327779,
-0.1412835121,
0.3550229669,
0.6601877809,
-0.1571729332,
-0.1841327548,
0.0235802121,
-0.2447862327,
0.1131006405,
0.7056496143,
-0.2335671782,
0.0617509782,
-0.4061589837,
0.2985375524,
0.2582637072,
-0.5748143196,
-0.242414251,
0.3591728508,
-0.2599226832,
0.055071678,
-0.0022606936,
-0.0761055872,
-0.2731066048,
-0.117046155,
-0.0694172084,
0.1008341461,
0.0887653455,
-0.2138916105,
-0.173162058,
-0.1359586269,
0.1755654961,
0.3268745542,
0.1123138815,
0.1029796153,
0.2103890777,
-0.0414949395,
-0.027623171,
-0.039374426,
-0.1953698546,
0.303104341,
0.24081631,
0.3216601014,
0.0204128269,
-0.1257188171,
-0.3142146766,
0.3031443059,
-0.3899180591,
0.216175735,
-0.2050554603,
-0.1065889895,
-0.255569756,
-0.0077495119,
-0.3642154634,
-0.1737732887,
0.0880403742,
0.0162561238,
0.2212071866,
0.173100546,
-0.0889186859,
0.1511778682,
-0.0848261788,
0.1308609992,
-0.3367918432,
0.2155640721,
-0.2358353734,
0.1930099726,
-0.0413666777,
0.1421066225,
0.1962637454,
-0.2131726444,
-0.0544220284,
0.3109878004,
-0.2180805206,
0.2646737099,
0.4681869745,
0.3286007941,
0.2611549497,
-0.2683805227,
0.3497460186,
-0.0667925999,
0.1807489544,
0.1038900167,
-0.1683860123,
0.08307302,
0.1250578463,
0.0417993106,
0.0687510222,
-0.0625738725,
0.0969751179,
-0.0657417402,
-0.0689738244,
-0.0130343279,
0.4850594103,
0.0714360103,
0.3537174463,
-0.0129300198,
-0.3759190738,
-0.2800388038,
0.2990941405,
-0.1732295007,
0.1164983585,
0.2613544166,
-0.2369161844,
0.0857466385,
0.0461429469,
0.0166964028,
0.3218719959,
0.1582998037,
-0.1274441183,
0.0714790002,
-0.0126153463,
-0.1146035716,
0.0880261138,
-0.000369,
0.0651853681,
0.240394026,
-0.107860975,
0.0802324191,
-0.4135641158,
-0.3385948241,
-0.0826896578,
0.2061853111,
-0.2287418246,
0.0982241854,
-0.2093148679,
-0.4781646729,
-0.2285081893,
0.0613499917,
-0.5594629645,
0.0963180512,
0.0660312176,
-0.0332560912,
0.030885363,
0.1123057306,
0.0394927934,
0.2607883513,
-0.1847756058,
-0.2399192601,
-0.2281207889,
-0.1024244428,
-0.2071870565,
0.0067288755,
0.5578662157,
0.196609199,
0.4304195642,
-0.2647412717,
0.0509954616,
-0.3066093326,
-0.4186324775,
0.04063344,
-0.1041646451,
0.2540676892,
0.0432719626,
0.2298956662,
-0.3527811468,
-0.1797481626,
0.5061764717,
-0.1521885693,
-0.2286913395,
0.0058346638,
-0.0436437726,
-0.2822234333,
0.0267801508,
-0.1938975751,
-0.4402248561,
-0.3264965713,
0.4318302274,
0.0639394894,
0.0518775173,
0.3492005169,
-0.0634192601,
0.3247578144,
-0.1961458623,
0.1281206012,
-0.1535875201,
-0.4176025391,
0.2414851338,
-0.3585350513,
-0.3183609545,
0.0801432952,
0.1686857939,
0.2564222515,
-0.0917545632,
-0.1730032265,
-0.212599054,
0.0053229467,
-0.0363130905,
-0.0836631283,
0.1677424461,
0.1912682354,
-0.1686706394,
-0.0399982929,
0.1529936641,
-0.0419997163,
0.0001618374,
0.1548138559,
0.198603943,
-0.0571862347,
0.2133802176,
-0.1873624027,
0.670863986,
0.1992785931,
0.0671118423,
0.4373434186,
-0.0646627843,
0.2162336409,
-0.1551834643,
-0.4231316447,
-0.0120132053,
0.1890663654,
-0.0339830518,
0.3280709982,
0.2138602436,
0.071221821,
-0.330556035,
-0.5055472255,
-0.382047832,
-0.0762636811,
-0.0656915829,
0.0381206907,
0.3100766242,
-0.0659813806,
-0.1583649814,
-0.0825098455,
-0.029363513,
0.3220580816,
0.664301455,
0.1655017436,
0.1561715156,
-0.3311133385,
-0.267855525,
-0.2221658826,
0.437594831,
0.0761237293,
0.017362956,
-0.4497064948,
0.1185975224,
0.156029731,
-0.1163383499,
0.5943130851,
-0.0935925543,
0.1053122357,
-0.1405808628,
-0.1460761279,
0.0205051657,
0.0110443197,
0.2064359486,
0.2797383666,
0.060689982,
0.3156530559,
-0.072266385,
-0.1791740358,
0.131268084,
0.1703109592,
-0.1624179184,
-0.3358234465,
-0.3524512649,
-0.1666994691,
-0.411965549,
-0.1022677943,
0.0257703476,
0.1470804513,
0.1410584599,
0.1852917373,
0.0059482055,
0.1003394723,
0.1731916964,
0.1170116067,
0.2713026404,
-0.0170246474,
-0.0409971513,
0.5033999085,
0.3873664737,
0.3642574251,
0.8100682497,
0.0326409079,
-0.6243075132,
-0.079253532,
0.1536629051,
0.1142803282,
0.3046543598,
0.0781555399,
-0.1562289745,
0.381531924,
0.1248528585,
-0.309608072,
-0.1216217056,
0.2300990671,
0.0362180471,
-0.2854737043,
-0.1932156533,
0.463452965,
-0.0314116068,
0.1584514678,
0.1678155214,
0.3962771893,
0.0294213295,
0.1493307352,
-0.2323091179,
1.117785573,
-0.2501132488,
-0.033606302,
0.0783223957,
0.0794315115,
0.3679837286,
-0.2429525256,
-0.0302173551,
-0.2846555412,
-0.0506035984,
-0.096674107,
-0.0900377333,
0.3480011225,
0.1589498967,
0.0190859344,
0.3904221654,
-0.0050295694,
0.0213307161,
-0.1037061885,
0.5435556173,
-0.1875600219,
0.048376888,
-0.3811618984,
0.1587077677,
0.1709782779,
0.9175262451,
-0.240570426,
-0.2204126716,
-0.1932107806,
-0.1632934958,
-0.251178205,
0.123275049,
-0.1716749668,
0.1912445277,
0.0557747632,
-0.1219134331,
0.2083792835,
0.3882265985,
0.1826113313,
-0.0764015839,
-0.522998929,
0.0537902042,
0.0085394606,
-0.4368181229,
-0.1741905361,
0.0277116355,
0.3646517098,
-0.1686218679,
-0.2650585175,
0.0080520408,
-0.0954896584,
-0.0469616465,
-0.1545540988,
-0.2065621912,
-0.0931533724,
0.1195601597,
-0.2204087079,
-0.1327030212,
-0.0482054278,
0.0758237243,
0.1079421788,
0.2924997211,
-0.1208828092,
-0.3240250647,
0.1940034628,
-0.1589921117,
0.0031825963,
0.5526268482,
-0.2241658866,
-0.2374398112,
0.5092985034,
0.0583983697,
-0.0459434278,
-0.2427572012,
-0.0855867341,
0.2943687737,
-0.6377722621,
-0.127904892,
0.4180641174,
0.1766911447,
0.1304136813,
0.3004825711,
0.3793400228,
-0.4835891128,
0.0352338068,
-0.440759033,
-0.0572316721,
0.2066505551,
-0.0869094431,
0.0205386858,
0.1090743318,
0.16552791,
0.269416213,
-0.0816536248,
-0.3106639087,
0.1539815813,
-0.2633129954,
-0.1432813704,
0.2972682714,
0.0894587561,
0.3182830215,
0.0721745417,
0.1589401513,
-0.0666903183,
-0.2371603549,
-0.1986877471,
0.0156593528,
0.1709642112,
0.0193709638,
-0.0964493006,
-0.013118675,
-0.2603688836,
-0.0547046065,
0.1063846126,
-0.0237938017,
0.1455268413,
0.0162387341,
0.0693523511,
0.0125745879,
0.0340334065,
0.0533115305,
0.2057836205,
0.0302573331,
0.0266190041,
0.0853227973,
-0.1340539157,
-0.047376249,
0.0088501582,
-0.1550017744,
-0.0149423415,
-0.004498004,
-0.0131073436,
0.2423473448,
-0.2492472231,
0.127038911,
0.0687044486,
0.1330343336,
0.1983101815,
-0.3698761463,
0.2482249588,
0.5175196528,
0.2364891768,
-0.4058772027,
-0.1334459484,
0.1320764124,
-0.2481375039,
-0.1152818352,
0.1054714844,
0.2399092019,
0.2900754511,
-0.0831426084,
0.0457253009,
0.2982505262,
-0.1296289116,
0.1374137849,
0.2040880024,
-0.1495702714,
0.073447533,
0.0053796838,
0.3130519092,
0.2019226253,
0.2272086442,
-0.2314146459,
-0.110761039,
-0.5035057664,
0.550996244,
0.1265519559,
-0.4464384615,
0.0432432927,
0.2720761001,
0.122960493,
0.0511234477,
-0.2502062023,
0.5838781595,
-0.2880881727,
0.0189934038,
-0.2728718221,
0.3538153768,
-0.1155234799,
0.0331159271,
-0.2132674009,
-0.2617602944,
-0.079226315,
-0.1460850239,
0.0441377871,
-0.1830737144,
-0.182291314,
0.1761895716,
-0.1251686364,
-0.129970938,
-0.1938257068,
0.3341679275,
0.1599289328,
-0.162025407,
0.2216958702,
0.1497135162,
-0.0616782121,
0.2485285848,
0.3011994362,
0.5545665026,
0.1641006917,
-0.0174192078,
0.0392232724,
-0.0806010962,
-0.0786468834,
0.0641746148,
0.3036928773,
0.0605676509,
0.1531079561,
0.3303850591,
0.1298681945,
-0.1067740321,
0.0841729641,
-0.2326614857,
0.1154814363,
-0.1030601114,
0.3758990169,
-0.4738540947,
0.0834748149,
-0.4334075749,
-0.0123319197,
-0.5144889951,
-0.0108927842,
0.1059369817,
0.1479997188,
0.0318012424,
-0.0529206172,
0.0680522621,
0.0072844238,
0.4513623714,
0.7064884901,
0.2970289886,
-0.3031172156,
-0.1937816441,
-0.6371818185,
0.1546566933,
-0.0132892765,
0.006350433,
0.0004408143,
-0.0258286465,
0.0355732702,
-0.0980793014,
-0.032897342,
-0.1459824443,
0.1888632327,
0.1436650902,
-0.0407387987,
0.1399945021,
-0.1291050911,
0.1612913758,
0.0439979732,
-0.1437496841,
0.1138734519,
-0.1729670763,
-0.0409158543,
-0.2266374081,
0.334297508,
-0.4176323116,
-0.3125064671,
0.2645229995,
0.0058602076,
0.469394207,
0.0195388794,
-0.1019147709,
-0.0850111321,
-0.1184913069,
-0.1584528536,
0.3720182478,
0.1502698958,
0.2475241274,
-0.1619668752,
-0.2581016123,
-0.2843650281,
0.0392008983,
-0.1302444041,
0.1434406191,
-0.2634319067,
-0.1647255421,
0.020895388,
-0.1051235422,
0.1348496974,
0.0568221994,
-0.0135658216,
-0.1285773665,
-0.2913080752,
0.0122209368,
0.8393105865,
-0.3831661046,
0.0767080039,
0.1538663357,
0.2517726123,
0.1479534209,
-0.1441241056,
-0.6370152235,
0.2956529558,
0.3046898246,
0.2823692858,
-0.0643470064,
0.2194415182,
-0.1137197539,
-0.0924817547,
0.0013686114,
-0.0549183115,
-0.0685568824,
-0.1624987721,
0.1161104292,
-0.0317008719
] |
https://github.com/huggingface/datasets/issues/1299 | can't load "german_legal_entity_recognition" dataset | > Please if you could tell me more about the error?
>
> 1. Please check the directory you've been working on
> 2. Check for any typos
Error happens during the execution of this line:
dataset = load_dataset("german_legal_entity_recognition")
Also, when I try to open mentioned links via Opera I have errors "404: Not Found" and "This XML file does not appear to have any style information associated with it. The document tree is shown below." respectively. | FileNotFoundError: Couldn't find file locally at german_legal_entity_recognition/german_legal_entity_recognition.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/german_legal_entity_recognition/german_legal_entity_recognition.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/german_legal_entity_recognition/german_legal_entity_recognition.py
| 77 | can't load "german_legal_entity_recognition" dataset
FileNotFoundError: Couldn't find file locally at german_legal_entity_recognition/german_legal_entity_recognition.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/german_legal_entity_recognition/german_legal_entity_recognition.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/german_legal_entity_recognition/german_legal_entity_recognition.py
> Please if you could tell me more about the error?
>
> 1. Please check the directory you've been working on
> 2. Check for any typos
Error happens during the execution of this line:
dataset = load_dataset("german_legal_entity_recognition")
Also, when I try to open mentioned links via Opera I have errors "404: Not Found" and "This XML file does not appear to have any style information associated with it. The document tree is shown below." respectively. | [
-0.1284619421,
-0.0970662758,
-0.0301718768,
0.5242336988,
0.2877425849,
0.1380865574,
0.1956094354,
0.2292720228,
0.187809214,
0.180879578,
-0.3449554145,
-0.1354648471,
0.0454050004,
0.2386659682,
0.110738188,
-0.3510171175,
-0.101647675,
0.00415419,
0.1530085355,
-0.1696584225,
-0.1890911311,
0.3157928884,
-0.1670922935,
0.2493719906,
-0.12845397,
0.2280393243,
-0.1583691835,
0.5008804202,
-0.2672370076,
-0.346473366,
0.1775413752,
-0.1727831513,
0.1381817311,
0.5028778911,
-0.0001160817,
0.1684518903,
0.3584830761,
0.0463053472,
-0.3028357923,
-0.4721885622,
-0.0444824547,
0.011027107,
-0.1089339107,
-0.1386526823,
-0.1597967148,
-0.2255039811,
0.0787684098,
0.0283093192,
0.1838007867,
0.3876415789,
0.1323370039,
0.2076338679,
0.2036081403,
-0.2399345338,
0.1124395728,
0.0694763586,
-0.0881246105,
0.3908724487,
0.1431784332,
0.0015838188,
0.3734642267,
0.2545948029,
-0.2144558281,
0.0117632011,
0.3610551655,
-0.0947231948,
0.2621241212,
-0.4173002243,
0.3253713846,
0.3081181943,
0.8236356974,
-0.0829196274,
-0.4649603367,
-0.0205962267,
0.1881636381,
-0.0181167051,
0.3648924232,
0.2760865092,
-0.0488727912,
0.1934262365,
-0.1533076167,
-0.3488997817,
-0.28968364,
0.299082458,
-0.1846627891,
0.0604276061,
-0.1255749464,
-0.0613286868,
0.3649989367,
-0.1658501625,
-0.3809630573,
-0.1153134927,
0.0675976351,
0.5025035143,
-0.0852104127,
0.1173982248,
-0.0282754954,
0.3216753602,
0.1948664784,
0.1033322215,
0.0905860886,
0.0120886629,
-0.2064002752,
0.4004950523,
0.0734973028,
0.2989101112,
0.0305727534,
0.0062635988,
0.2821765542,
0.1956744492,
-0.0332636014,
0.122443229,
-0.4561716616,
-0.3617556989,
-0.4565532804,
-0.1500507593,
0.4977906048,
-0.4203482866,
-0.38183406,
0.1402863115,
-0.2901340723,
-0.1732572913,
0.3358167112,
0.6531697512,
-0.2122738063,
-0.1192943677,
-0.1761870384,
0.186192289,
-0.3083972037,
-0.0409368388,
-0.123385407,
0.1253172159,
-0.2456344962,
0.2390462458,
0.1448632777,
-0.3951354921,
0.2847658992,
-0.2692219913,
0.0242200419,
-0.1080350801,
-0.1189616024,
-0.2255273759,
-0.2493809164,
0.3539411426,
-0.1349593401,
-0.1933987439,
0.2049237192,
-0.3587965965,
-0.1289899498,
0.0766789168,
-0.3272723556,
-0.4347090721,
-0.2450085133,
0.1028734893,
-0.3333546817,
-0.1754339039,
-0.1302227229,
0.0702585354,
-0.1435455978,
-0.3391147554,
-0.0810111761,
0.0006705245,
-0.2801930308,
-0.1255635023,
0.3089604378,
0.6876110435,
-0.0440481566,
-0.1589181274,
0.1731986851,
-0.2280241549,
0.1038121581,
0.6274728775,
-0.1911311448,
0.140375793,
-0.3197529018,
0.187517792,
0.4359925687,
-0.6256731749,
-0.2637547553,
0.2893291414,
-0.1598046422,
0.0991235897,
-0.0657156333,
-0.1781256497,
-0.1597519815,
0.0743452832,
-0.0614380166,
0.0533806868,
0.1809495389,
-0.0987010375,
-0.154208228,
-0.1613450646,
-0.0043836515,
0.353250742,
0.1352612972,
0.0834900513,
0.2695771754,
-0.2861846983,
0.0958965421,
-0.1564671248,
-0.1349138618,
0.4070649147,
0.13093777,
0.5612077713,
0.153534919,
-0.1372200996,
-0.1892555207,
0.26057145,
-0.2483996004,
0.2505263388,
-0.1847563833,
-0.1427256316,
-0.3887182176,
-0.0137940114,
-0.4441560209,
-0.1686795056,
-0.009632769,
0.0590867251,
0.1441983432,
0.2651414275,
-0.1881757975,
0.1842205226,
0.0520941876,
0.2091675997,
-0.4159222841,
0.3306802213,
-0.2947821617,
0.1462972462,
-0.1381468624,
0.2533887029,
0.1048904806,
-0.2019876391,
-0.1726144701,
0.3779193461,
0.025042424,
0.1596823931,
0.3278084099,
0.4717627168,
0.2786514461,
-0.446546495,
0.2497557104,
0.0216960851,
0.2192717791,
0.1120481268,
-0.2551672459,
-0.0079793427,
0.1175501347,
0.1259960681,
0.2405892313,
-0.0571399033,
0.0639625564,
-0.0355956927,
-0.1666633785,
0.0263211057,
0.5831592679,
-0.0020468992,
0.4861435294,
-0.0022118278,
-0.4058575034,
-0.2668929994,
0.2205025107,
-0.1580257714,
0.1402620524,
0.2830581665,
-0.2300816923,
0.087642543,
-0.0906662866,
0.1340228915,
0.2167289853,
0.1192999557,
-0.1595409662,
0.2266146392,
0.0307771731,
-0.1857213825,
0.07788717,
0.1208225712,
0.1685412973,
0.1628403068,
-0.0735763162,
0.1814068258,
-0.3839357197,
-0.4361386001,
-0.066782929,
0.0940122232,
-0.2802444994,
0.2051864266,
-0.16720815,
-0.3744662702,
-0.1607936323,
0.0722546503,
-0.4851954877,
0.0286909174,
0.0245608054,
0.1296550483,
-0.0376227014,
0.051522091,
-0.1298659742,
0.238703981,
-0.1413996071,
-0.26142627,
-0.0420087203,
-0.0587312691,
-0.201417461,
-0.0789256543,
0.4222655892,
0.1445726752,
0.1790547818,
-0.3623305857,
0.1587977111,
-0.2472375333,
-0.3430611491,
0.1865043938,
0.0980219021,
0.1405785233,
-0.1274770796,
0.1020633131,
-0.290225625,
-0.1084145159,
0.5380043387,
0.0940812677,
-0.1029300541,
0.0803396106,
0.0083399871,
-0.2383140177,
0.0861875042,
-0.2965486944,
-0.5001029968,
-0.3831173778,
0.2841569781,
-0.1005475149,
0.2432358414,
0.4525517523,
-0.0493821464,
0.3326977789,
-0.0926734358,
0.2460080683,
-0.1583628803,
-0.4093947709,
0.3129260838,
-0.4540615976,
-0.3857224286,
0.0652322844,
0.1502109915,
0.250266403,
-0.0103783617,
-0.3031934798,
-0.0848821774,
-0.067302011,
-0.0191878974,
-0.1619921327,
-0.0187125839,
0.2730546594,
-0.0279465895,
-0.0371687599,
0.0137553802,
-0.0009872422,
-0.0250708405,
0.1494062096,
0.2231205553,
0.0141203767,
0.2424312085,
-0.1294842511,
0.6173746586,
0.1517213434,
0.1059065983,
0.5841576457,
-0.1702136546,
0.2498150468,
-0.0573807582,
-0.3522948027,
-0.0659814626,
-0.026593551,
-0.1344116032,
0.3559340537,
0.3191931844,
-0.0453873202,
-0.4974300861,
-0.2689445019,
-0.2581541836,
-0.0719562545,
-0.0121801579,
0.0068366793,
0.2516332269,
-0.0952538922,
0.099375017,
0.0060831476,
0.029429622,
0.2890434265,
0.6507745385,
0.1626077145,
0.0567376949,
-0.2106281966,
-0.2528007925,
-0.3029285371,
0.3592166603,
0.0446705595,
-0.0879450142,
-0.400431931,
0.0914235339,
0.165691331,
-0.1491179317,
0.6489863992,
-0.1175705269,
0.0423879102,
0.0016183663,
0.0530688763,
-0.1806641221,
-0.0166645441,
0.173881948,
0.2548446059,
0.0215675291,
0.3470989466,
-0.0611727349,
-0.171343714,
0.0787482783,
0.1619401574,
-0.169298023,
-0.2994203269,
-0.3161098659,
-0.2759823799,
-0.4376219809,
-0.1102141514,
-0.0771077126,
0.1999566108,
0.0320084579,
0.0508131832,
0.1499729007,
0.1454234123,
0.1553144306,
0.1777426302,
0.2041409761,
-0.0463153236,
-0.0611937977,
0.5820174217,
0.3182826638,
0.449958086,
0.9425213337,
0.0126377931,
-0.6109730005,
-0.0634973347,
0.1455767155,
-0.0340407863,
0.2525067627,
0.1000835672,
-0.3182468116,
0.3501461744,
0.0220130961,
-0.3123276234,
0.0172681101,
0.2669472694,
0.1146987155,
-0.2009669244,
-0.3476184607,
0.5151137114,
-0.0492200702,
-0.0451108925,
0.2192752212,
0.456425339,
0.0591212995,
0.1847097725,
-0.1947249323,
1.10070467,
-0.2717574537,
-0.0526265576,
0.2020339221,
-0.0166125726,
0.076052621,
-0.2747386694,
0.0693778247,
-0.1266991347,
-0.0832685009,
-0.1203598827,
-0.2141696364,
0.2875409424,
0.1524731517,
-0.0292159338,
0.377109468,
-0.0020619824,
-0.1013652906,
0.0334239751,
0.2994055152,
-0.152493,
-0.0252191685,
-0.2375164479,
0.100933671,
0.0430851616,
1.074002862,
-0.1547463387,
-0.1891570836,
-0.2770196497,
-0.1850478202,
-0.2150517702,
0.3156625926,
-0.2351906896,
0.1516550779,
-0.2011398375,
-0.1391523778,
0.0346123315,
0.5869804621,
0.0920319855,
-0.1826556921,
-0.4452541769,
0.1263450086,
0.0421454385,
-0.3262607157,
-0.0945374817,
-0.0742373616,
0.4136694074,
-0.1770841181,
-0.3557671309,
0.0859501287,
-0.0714366958,
-0.1525382549,
0.0953514725,
-0.3138722777,
-0.2005224973,
0.1050697789,
-0.1540893167,
-0.1175806001,
-0.092776686,
0.0422038846,
0.0258594435,
0.1876174361,
-0.1187158227,
-0.1854837686,
0.1494341195,
-0.2381453812,
0.0512903444,
0.5888020992,
-0.2491496205,
-0.2321004122,
0.4923300445,
0.1366748661,
-0.1005727425,
-0.1319220662,
-0.1162577495,
0.1764930934,
-0.3826815188,
-0.0913547054,
0.022586884,
0.1735225171,
-0.109182924,
0.0852931216,
0.272891134,
-0.3769964874,
-0.023333801,
-0.5408443809,
-0.1972013861,
0.3759461343,
0.2348799258,
0.036441721,
-0.0130627686,
0.0862955302,
0.3445602655,
-0.3093903661,
-0.2339531928,
0.1378258765,
-0.2675617337,
-0.1870753616,
0.4149502218,
0.02349752,
0.2746325731,
-0.1204059124,
0.0425670333,
-0.2816510201,
-0.2967320085,
-0.0935778916,
-0.0209884439,
0.1799410731,
-0.0201436095,
-0.1855712533,
-0.0260274205,
-0.279674381,
0.0380659476,
0.0263078418,
0.0986681432,
0.254188925,
-0.0806546882,
-0.1497013569,
-0.0389991775,
0.1606203467,
-0.0285038166,
0.1658859551,
-0.0250783935,
0.2170051485,
0.1362273991,
-0.1153361797,
-0.0526596978,
-0.0563001707,
-0.2351648659,
-0.135174796,
0.119687207,
-0.1064521447,
0.3019509315,
-0.3200262487,
0.2494129688,
0.2363190055,
0.1513903141,
0.2151633352,
-0.3591762185,
0.2953814268,
0.3524013758,
0.1845539957,
-0.2272461802,
-0.1679021269,
0.0308033694,
-0.1785125136,
-0.086349532,
0.0024556408,
0.272993654,
0.3457306027,
-0.1994324327,
0.0774598941,
0.4343310297,
0.1456989795,
0.198540017,
0.2813809514,
-0.2331499457,
0.1715178341,
-0.0026488455,
0.1979811788,
0.2629508972,
0.4025628269,
-0.3038870692,
0.1397801787,
-0.079085812,
0.6005097032,
0.1578242183,
-0.4051304758,
-0.0515118279,
0.0737068951,
0.2421595156,
0.0153267793,
-0.1426183879,
0.2035050988,
-0.2709721029,
-0.0616923273,
-0.3238831162,
0.355550766,
0.0263442732,
-0.0678499267,
-0.1990638226,
-0.3584108055,
-0.0612693094,
-0.0829784796,
-0.0345828459,
-0.1905530393,
-0.1526881754,
0.0129220821,
-0.1009120941,
-0.1997891068,
-0.2719909847,
0.2633300126,
0.2288672328,
-0.1135563999,
0.3110856116,
0.2184486091,
-0.105943501,
0.1514742672,
0.3076581657,
0.5152639151,
0.2543148994,
-0.1152788252,
0.0155462371,
-0.209123686,
-0.0948870033,
0.1704778522,
0.1511591077,
0.1068282947,
0.0460996293,
0.2802453637,
0.0151049467,
-0.0751339048,
0.1925441623,
-0.2286162227,
0.2965639532,
-0.1104431152,
0.2212409228,
-0.3549803495,
0.0751563087,
-0.3543500006,
-0.065316692,
-0.5037232041,
0.170441404,
0.2489494681,
0.0723913684,
0.0488215126,
0.0041601579,
0.0330382921,
0.1352713257,
0.3764226735,
0.6063408256,
0.5643180609,
-0.2107000798,
-0.0940882489,
-0.6297900081,
0.2138062567,
-0.1053329483,
0.0101098903,
0.1011176929,
-0.0779326409,
-0.1457159519,
0.0350366496,
0.0920499712,
-0.1372901052,
0.3103253841,
0.1286797673,
-0.1351249665,
0.0758845806,
-0.1106579676,
0.2553895116,
-0.0463653803,
-0.2306017578,
0.1476123035,
-0.0851736441,
-0.1164185181,
-0.1416278481,
0.2353748828,
-0.4128288329,
-0.5597078204,
0.4009498954,
-0.0996348187,
0.575242579,
-0.0311707426,
-0.098959744,
-0.0761374012,
-0.252761513,
0.0294086989,
0.3914283514,
0.1576299071,
0.1113569811,
-0.1932998002,
-0.2572247386,
-0.2031803429,
0.2207049727,
-0.1014236063,
0.0736485124,
-0.2639420629,
-0.2942398489,
0.0518652648,
-0.0410700366,
0.0597423837,
0.0186678562,
-0.0547695309,
-0.083488822,
-0.1638528258,
-0.0529188365,
0.945766449,
-0.2903816402,
0.1950923353,
-0.0955957249,
0.2677004039,
0.2320232242,
0.0235325694,
-0.5080150366,
0.222443074,
0.2420265079,
0.1784067005,
-0.289301157,
0.0993579403,
-0.0520635135,
-0.1598247141,
-0.0468340665,
0.0172137134,
-0.155177325,
-0.0938546881,
0.0368308835,
-0.1078802124
] |
https://github.com/huggingface/datasets/issues/1299 | can't load "german_legal_entity_recognition" dataset | Hello @nataly-obr, the `german_legal_entity_recognition` dataset has not yet been released (it is part of the coming soon v2 release).
You can still access it now if you want, but you will need to install `datasets` via the master branch:
`pip install git+https://github.com/huggingface/datasets.git@master`
Please let me know if it solves the issue :) | FileNotFoundError: Couldn't find file locally at german_legal_entity_recognition/german_legal_entity_recognition.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/german_legal_entity_recognition/german_legal_entity_recognition.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/german_legal_entity_recognition/german_legal_entity_recognition.py
| 52 | can't load "german_legal_entity_recognition" dataset
FileNotFoundError: Couldn't find file locally at german_legal_entity_recognition/german_legal_entity_recognition.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.3/datasets/german_legal_entity_recognition/german_legal_entity_recognition.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/german_legal_entity_recognition/german_legal_entity_recognition.py
Hello @nataly-obr, the `german_legal_entity_recognition` dataset has not yet been released (it is part of the coming soon v2 release).
You can still access it now if you want, but you will need to install `datasets` via the master branch:
`pip install git+https://github.com/huggingface/datasets.git@master`
Please let me know if it solves the issue :) | [
-0.2871352732,
-0.2293046415,
-0.0558741987,
0.3209627271,
0.1926872432,
0.1035038307,
0.1227493882,
0.2395579368,
0.2547087669,
-0.0033333669,
-0.1283260584,
-0.1231846437,
-0.0620686263,
0.3180631995,
0.1877842396,
-0.3089743853,
0.0005010169,
0.0151750203,
0.0721769184,
-0.12928693,
-0.1097699702,
0.3460336924,
-0.0871674791,
0.1794842631,
-0.2606522739,
0.1178172007,
-0.0188959595,
0.2385765165,
-0.4208890498,
-0.3372545838,
0.2726186216,
-0.0110957613,
0.2925595045,
0.3714254498,
-0.0001043722,
0.0022046235,
0.3241094351,
-0.0111569287,
-0.283960551,
-0.3169112206,
-0.0197812635,
-0.3420847952,
-0.1262251735,
-0.0518513285,
-0.3168027997,
-0.2389599085,
0.1567600667,
0.1090816259,
0.2710790038,
0.1588665992,
0.2833470404,
0.1991868615,
0.2706200778,
-0.3600015342,
-0.0701992139,
0.0936059728,
-0.1158883497,
0.4267019928,
0.1928993762,
-0.2007415891,
0.2586779594,
0.2370306998,
0.1169379279,
0.002174943,
0.3039173484,
-0.0247055441,
0.3294274211,
-0.2710103691,
0.2744707167,
0.2596639097,
0.4311147332,
-0.1231462806,
-0.4543121159,
-0.101801157,
0.2980352044,
-0.0944480076,
0.2075906098,
0.2430977523,
-0.0850079507,
0.2237718999,
-0.1252356321,
-0.312150538,
-0.2083557695,
0.2568843365,
-0.2121197879,
0.1033428684,
-0.2279233187,
-0.0638153404,
0.3051751554,
-0.2178628296,
-0.4415861964,
0.1774000674,
-0.0384148061,
0.5027362108,
-0.096736528,
0.1253809333,
0.0440344475,
0.3489573896,
0.2817170322,
0.1656107306,
-0.0340987854,
0.0228380617,
-0.0802758411,
0.4368698895,
0.0577679425,
0.3527480662,
0.0837925151,
0.2032633871,
0.1320183128,
0.2804408669,
0.0159927532,
0.0769498274,
-0.4701925814,
-0.1706162989,
-0.3189519346,
-0.155945912,
0.2127623558,
-0.2779734135,
-0.2171692252,
0.0097237593,
-0.0927770883,
0.0084326193,
0.3076979518,
0.4883948267,
-0.0327313803,
-0.2342409045,
-0.0934840366,
0.1717044711,
-0.1615848988,
0.0802364126,
-0.2343034893,
0.0346787646,
-0.2837478518,
-0.0286613461,
0.253397584,
-0.4500762522,
0.4466096163,
-0.1697287709,
0.0600390621,
0.1076342091,
-0.0652890354,
0.0629625991,
-0.1449685991,
0.2517570257,
-0.1662921906,
-0.173326388,
0.1900542378,
-0.305560708,
-0.1252636909,
-0.1787100732,
-0.2166444361,
-0.3605930209,
-0.375292778,
0.225964278,
-0.2043680102,
-0.1870166212,
-0.1884664595,
0.1423493773,
-0.1045725644,
-0.4150547683,
-0.0911059529,
-0.0156216985,
-0.0996253416,
-0.0927586779,
0.3819972277,
0.4307042956,
-0.17533122,
-0.2079687864,
-0.0456434228,
-0.2844349742,
0.1065342203,
0.4751934707,
-0.2280705869,
-0.0386948138,
-0.3968612552,
0.2115335464,
0.1432289481,
-0.4533611834,
-0.342143476,
0.2101934552,
-0.1873479933,
0.074940227,
0.0014124773,
-0.1085761562,
-0.2418074608,
-0.0224311184,
-0.1778214872,
0.1832606792,
0.1322079599,
-0.13875857,
-0.0946836695,
-0.1494646966,
0.0830515698,
0.1617780328,
0.0679193735,
0.118340224,
0.1734059751,
0.0127753504,
0.0263375323,
0.0217664856,
-0.1108658016,
0.2096812576,
0.22481969,
0.346761167,
0.0571014993,
-0.1895009279,
-0.2203349471,
0.3077058494,
-0.4281443059,
0.2901536524,
-0.3179880679,
-0.2025408596,
-0.3226410747,
0.0154768415,
-0.3389261961,
-0.2649019659,
0.1795158535,
0.1342782974,
0.2389127463,
0.1872341484,
-0.0360570587,
0.0982853174,
0.1055334583,
0.1050727814,
-0.4029990435,
0.130363062,
-0.2962357402,
0.142717123,
0.0135176247,
0.1573442817,
0.0837548971,
-0.193358317,
-0.0413602106,
0.2911371887,
-0.2500875294,
0.3001389802,
0.2884073555,
0.3958920538,
0.2157092839,
-0.2101271003,
0.2361977398,
-0.1107798517,
0.1215830743,
0.0962873027,
-0.254693687,
0.1321816742,
0.0794701651,
0.0011697868,
0.051285848,
0.0437036753,
0.199201405,
0.0104949744,
-0.0914535671,
-0.1404322982,
0.2713915408,
-0.0491027385,
0.3081579804,
-0.1044256315,
-0.2544832826,
-0.1351487339,
0.3878353834,
-0.0205893144,
0.1426637322,
0.2112209648,
-0.273679018,
0.0250285733,
0.1215228438,
0.0918622613,
0.2886164486,
0.2752538919,
-0.0311058648,
0.0427798629,
-0.0110769188,
-0.0889172554,
0.0887090713,
-0.0508764088,
-0.0482560433,
0.1743099838,
-0.0122374808,
0.0207013432,
-0.4914884269,
-0.1776544899,
-0.0759708136,
0.2441278845,
-0.1945658028,
0.0935320035,
-0.2653295994,
-0.4106265903,
-0.1424118131,
-0.0438924022,
-0.5049237013,
0.0443079919,
0.1313377768,
0.0712518319,
0.0490947925,
0.1290505379,
0.0700279921,
0.191643849,
-0.1662603021,
-0.1349238753,
-0.3105835915,
-0.0739902332,
-0.2353852689,
0.1117407903,
0.354511559,
0.2079514265,
0.4717745483,
-0.1894608885,
0.132489264,
-0.3272039294,
-0.6006327271,
0.0623444691,
-0.2352684885,
0.3087223172,
0.154649049,
0.1451973319,
-0.3562119007,
-0.1046804413,
0.4863612354,
-0.189858973,
-0.247560963,
-0.0297016073,
-0.1127689779,
-0.3060137331,
-0.0410856232,
-0.1921433955,
-0.4251384735,
-0.3843832016,
0.548238337,
0.1713630557,
-0.0013480929,
0.3274293244,
-0.088318266,
0.2806096971,
-0.1597568542,
0.1602458358,
-0.2694222927,
-0.3390866518,
0.2167554051,
-0.4446285963,
-0.3358724117,
0.0180750694,
0.1143525094,
0.3700516522,
-0.0964455232,
-0.1132556722,
-0.2231543958,
-0.0799966529,
-0.0062226951,
-0.0623165891,
0.1297810972,
0.2979499698,
-0.0672559738,
-0.0971205309,
0.0130105773,
-0.0781472251,
-0.0373249538,
0.0681314394,
0.2425167561,
-0.0593306981,
0.1630977243,
0.0247507207,
0.663618505,
0.2198715806,
0.0549552366,
0.3495465815,
-0.1756159663,
0.2357827574,
-0.1428212374,
-0.4567850828,
-0.019316772,
0.1067794412,
0.1134361103,
0.3309993148,
0.2169081271,
0.1099374145,
-0.2286786288,
-0.2032388896,
-0.2612338364,
-0.0527687892,
-0.1159264967,
0.0216248948,
0.3059683442,
0.027698271,
-0.0514889993,
-0.1710951179,
-0.1610161662,
0.2887642384,
0.4294678569,
0.0548806451,
0.2797006965,
-0.3239164352,
-0.2092678696,
-0.2900284529,
0.4059995413,
0.0260000955,
-0.0143817132,
-0.3674526811,
0.0639026985,
0.2022510469,
-0.0671822503,
0.5411589146,
-0.0151448334,
0.1318533272,
-0.1551017016,
-0.1166050062,
-0.0568031445,
0.0321312547,
0.068148002,
0.1473081708,
0.0709409639,
0.2918483615,
-0.197303459,
-0.2109268159,
0.1356881261,
0.0536989607,
-0.1384831071,
-0.2008592337,
-0.3638657928,
-0.1265243143,
-0.464353025,
-0.0363945626,
0.0795841664,
0.1581551731,
-0.0118485028,
0.0888735652,
-0.00551131,
0.0582235791,
0.1181043163,
0.2581230104,
0.2853507102,
0.061050266,
-0.0329073779,
0.49623698,
0.2412016243,
0.2928659022,
0.9030959606,
0.0374444909,
-0.5974396467,
-0.0672144741,
0.1330417693,
0.0157624967,
0.2243541181,
-0.0302627701,
-0.1523291171,
0.3946191072,
0.1091536507,
-0.3597809374,
0.0396909341,
0.3105778098,
0.0445697568,
-0.1691171676,
-0.1938365996,
0.4223769605,
-0.0063674273,
0.0590271205,
0.1012547538,
0.4643965662,
-0.100591071,
0.222247377,
-0.2440687716,
0.9018836617,
-0.1857051998,
-0.016332211,
0.0905328095,
0.018946616,
0.29556638,
-0.2095985711,
0.0179672725,
-0.1722638458,
-0.0136423307,
-0.0671151131,
-0.0457917266,
0.2570757568,
0.1821769327,
-0.0685170293,
0.2682504356,
0.0485043675,
0.020605484,
-0.0939892977,
0.5839897394,
-0.2126606256,
-0.0314422213,
-0.2790809572,
0.2627639174,
0.0663986877,
0.8657303452,
-0.134908542,
-0.2178677619,
-0.1672909856,
-0.1910547912,
-0.2989360392,
0.0837853476,
-0.1352348328,
0.2562927902,
-0.0097759645,
-0.1183075681,
0.1514931172,
0.3210024238,
0.1314983666,
0.0574069656,
-0.5936902165,
0.1421041042,
0.1098855883,
-0.4285565019,
-0.150179565,
0.0605324395,
0.3860785961,
-0.1960682571,
-0.265594393,
-0.0198907964,
0.0448563285,
-0.0204233974,
-0.2480599582,
-0.1849879771,
-0.0516316406,
0.0376828872,
-0.0638323873,
-0.0995159894,
-0.0327226743,
-0.0414390452,
0.1771371365,
0.2839223444,
-0.2054968327,
-0.2806947827,
0.2618796825,
-0.1227718666,
-0.0083152065,
0.5535974503,
-0.2329238504,
-0.235673517,
0.4879066944,
0.1241212487,
-0.0839794502,
-0.2452079058,
-0.1700540036,
0.2742604315,
-0.701043427,
-0.1427642852,
0.4160336256,
0.0046224748,
0.2194000036,
0.2663266063,
0.2969088554,
-0.5169304013,
0.0058193118,
-0.4191861749,
-0.1297296882,
0.1292421967,
-0.1462569386,
0.0867163539,
0.1373933703,
0.203243047,
0.1536356658,
0.0081005702,
-0.3894358575,
0.1659612358,
-0.2964890897,
-0.1010630876,
0.2427745759,
0.0080075199,
0.2464226633,
0.0020825355,
0.2410345227,
0.0490951538,
-0.3328875005,
-0.249859795,
-0.0370020345,
0.1327316612,
0.0028102908,
-0.1149382666,
-0.0287480578,
-0.1482412964,
-0.1678068042,
0.0718369186,
0.1362449825,
0.1104843915,
0.0671192482,
0.1133618578,
0.0027968583,
-0.0251711402,
0.2837285399,
0.0395059623,
0.0127467588,
-0.0555572063,
0.0868739486,
-0.0207445808,
-0.0904875398,
0.0127008939,
-0.0977361426,
0.0426983684,
0.1011067852,
0.0205862131,
0.3517746925,
-0.265571624,
0.1165341213,
0.0739995241,
0.1853933632,
0.1270459294,
-0.2866699994,
0.2289478779,
0.4426571131,
0.2985440195,
-0.47711128,
-0.1298859119,
-0.000636228,
-0.1966403127,
-0.0282346364,
-0.0132611003,
0.3188251257,
0.2837528884,
-0.0767359361,
0.1066012681,
0.3333191574,
-0.2685655653,
0.1106190085,
0.1932327598,
-0.2465141565,
-0.008546046,
0.0113199782,
0.2905161083,
0.1318643838,
0.3088471591,
-0.226524353,
-0.0315659605,
-0.4782330096,
0.5385353565,
0.2666293383,
-0.3581577539,
-0.0909716487,
0.0968582407,
0.0712719709,
0.1364170015,
-0.1544253826,
0.7230105996,
-0.3374549747,
0.0211152136,
-0.3394334316,
0.2355689257,
-0.0821216032,
-0.0698985159,
-0.1313727349,
-0.2217417955,
-0.067011103,
-0.18699494,
0.017649021,
-0.2153773159,
-0.1389424503,
0.0830588713,
-0.069219701,
-0.3543565273,
-0.2979282439,
0.2269869745,
0.203716442,
-0.131247431,
0.2813127935,
0.1106144562,
-0.0874740332,
0.2627348602,
0.301726222,
0.5873757601,
0.0351852439,
0.0740016326,
0.0617891476,
-0.2088029832,
-0.0921295881,
-0.1095647439,
0.3769291937,
0.2304142118,
0.1554087698,
0.260345906,
0.185782671,
-0.1731240153,
-0.0711419955,
-0.2792945504,
0.0958353132,
-0.0564154722,
0.4539794028,
-0.4521650672,
0.0627572834,
-0.3875874579,
0.0286675412,
-0.5222898126,
-0.0055030994,
0.1947348863,
0.1312918067,
0.0624885932,
-0.2410089821,
0.1104957983,
0.0426303111,
0.4625756741,
0.5706765652,
0.2936344445,
-0.146177277,
-0.0949210376,
-0.6033201814,
0.1542590857,
0.0418440215,
0.0344363227,
-0.0132869054,
-0.0234465543,
0.0551851727,
-0.0365120731,
-0.0200041682,
-0.229578048,
0.1678573042,
0.0440307856,
-0.0148839783,
0.1499328613,
-0.142604813,
0.1320007443,
0.0895938501,
-0.0728233084,
0.0851183459,
-0.1527347267,
0.0326882973,
-0.2568892539,
0.3353640139,
-0.3484840989,
-0.2517909706,
0.2978446186,
0.135117963,
0.3951489031,
-0.044462245,
-0.034925852,
-0.2083925307,
-0.1573613435,
-0.2170387357,
0.3865811825,
0.0789020136,
0.2669254243,
-0.1007363424,
-0.4330462217,
-0.264643997,
0.0012698695,
-0.0981018841,
-0.01154505,
-0.30785653,
-0.0789810047,
-0.0546492189,
0.0014903977,
0.1194020137,
0.1274342984,
0.0348051749,
-0.1514233798,
-0.1979456097,
-0.1850957721,
0.8110969663,
-0.3621263504,
0.0602042265,
0.166053772,
0.1678345799,
0.1487138718,
-0.317625165,
-0.6711131334,
0.2956937253,
0.2326420695,
0.1906609386,
-0.0689329505,
0.2591881156,
-0.1669405252,
-0.0353297628,
-0.0263393577,
0.1093061268,
0.0340027176,
-0.1503759772,
0.1687023491,
-0.0347635709
] |
https://github.com/huggingface/datasets/issues/1290 | imdb dataset cannot be downloaded | Hi @rabeehk , I am unable to reproduce your problem locally.
Can you try emptying the cache (removing the content of `/idiap/temp/rkarimi/cache_home_1/datasets`) and retry ? | hi
please find error below getting imdb train spli:
thanks
`
datasets.load_dataset>>> datasets.load_dataset("imdb", split="train")`
errors
```
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
Downloading and preparing dataset imdb/plain_text (download: 80.23 MiB, generated: 127.06 MiB, post-processed: Unknown size, total: 207.28 MiB) to /idiap/temp/rkarimi/cache_home_1/datasets/imdb/plain_text/1.0.0/90099cb476936b753383ba2ae6ab2eae419b2e87f71cd5189cb9c8e5814d12a3...
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets/downloads
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=7486451, num_examples=5628, dataset_name='imdb')}]
``` | 25 | imdb dataset cannot be downloaded
hi
please find error below getting imdb train spli:
thanks
`
datasets.load_dataset>>> datasets.load_dataset("imdb", split="train")`
errors
```
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
Downloading and preparing dataset imdb/plain_text (download: 80.23 MiB, generated: 127.06 MiB, post-processed: Unknown size, total: 207.28 MiB) to /idiap/temp/rkarimi/cache_home_1/datasets/imdb/plain_text/1.0.0/90099cb476936b753383ba2ae6ab2eae419b2e87f71cd5189cb9c8e5814d12a3...
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets/downloads
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=7486451, num_examples=5628, dataset_name='imdb')}]
```
Hi @rabeehk , I am unable to reproduce your problem locally.
Can you try emptying the cache (removing the content of `/idiap/temp/rkarimi/cache_home_1/datasets`) and retry ? | [
-0.4860098064,
0.0299126841,
-0.1837319434,
0.2636172473,
0.3486503363,
0.3077560961,
0.315705359,
0.4439667165,
0.2162811905,
0.0212678369,
-0.0990766212,
-0.0724211708,
-0.0315421484,
0.1580999941,
-0.0292216484,
-0.1209030524,
-0.1767853349,
0.0127702858,
-0.1587821096,
0.0179681815,
-0.1283203214,
0.2383502871,
-0.1618405133,
-0.0335200392,
-0.4301397502,
-0.3121138513,
0.1392010748,
0.0827980787,
-0.3193939626,
-0.4591374993,
0.3921332955,
-0.008236995,
0.2423053384,
0.2826942205,
-0.0001035062,
-0.0365675129,
0.5334969163,
-0.1074084118,
-0.3835623264,
-0.28779459,
-0.3273851573,
0.0555790439,
-0.002763791,
-0.2751792669,
0.0047643417,
-0.025385635,
0.0113665788,
-0.3959701061,
0.0374141186,
0.494140923,
0.2971444726,
-0.12976484,
0.24519521,
-0.2180918455,
0.2423910052,
0.0137037141,
0.0529720038,
0.248845458,
0.1408812106,
0.2723529041,
0.2486404628,
0.1801099926,
-0.3034389019,
-0.0220964998,
0.2865756154,
-0.0972825065,
0.1653278917,
-0.4706071019,
0.1722738445,
0.2280537188,
0.738275528,
-0.2388616949,
-0.3810375929,
0.144750759,
0.377194345,
-0.1702629924,
0.1000009924,
0.2182768732,
-0.1827754527,
0.1017387956,
-0.2199491411,
-0.0662822649,
-0.1369592398,
0.1590717286,
0.0886127353,
-0.1605072618,
0.0495886952,
-0.0400304273,
0.0987493768,
-0.1344027072,
0.2517718673,
0.0384323411,
-0.0021125725,
0.2361703664,
-0.2602401078,
-0.1002122164,
-0.223758325,
0.0192961209,
0.0649494752,
0.2488009185,
-0.153493315,
-0.1331483722,
0.016815152,
0.1392868608,
0.1821449548,
0.1841434836,
-0.0582514778,
0.3144682348,
0.1950908005,
0.4538915157,
-0.1490833312,
-0.1017043367,
-0.2541643381,
-0.1346600652,
-0.0824787542,
0.1436087936,
0.0311762337,
-0.1240339503,
-0.4782602191,
0.044835221,
-0.2012894601,
0.1291314662,
0.2305187434,
0.3140895069,
-0.1347791255,
0.1046991646,
0.2271656543,
0.2528128028,
0.1159727648,
-0.1042450443,
-0.2461475581,
0.3043957949,
-0.0936460122,
-0.0565775596,
0.3721652925,
-0.1996798515,
0.3377609849,
0.0696252882,
0.003638559,
-0.2105990499,
0.2095434219,
-0.3007853329,
0.0287867002,
0.358466506,
0.2556398809,
0.2001561224,
-0.0840682164,
0.1235396191,
-0.0588882565,
0.0461489893,
-0.2743841112,
-0.319922924,
-0.0881594941,
0.3507597148,
0.12622796,
-0.1656851023,
-0.3235685825,
-0.1998393983,
0.0913968757,
-0.2130100131,
0.0047631166,
-0.1729652584,
-0.0258702282,
-0.1337609142,
0.3516485989,
0.491371274,
-0.2694046795,
0.0458031669,
-0.4400697649,
-0.1443545073,
0.0440969728,
0.3456625938,
-0.1699271351,
0.3116581142,
-0.3299518824,
0.1360128224,
0.2640050948,
-0.6436081529,
-0.5091255903,
0.3254257441,
-0.0387007557,
-0.1184329465,
0.2331248522,
0.2476874888,
0.344224751,
0.0431958921,
0.1554581523,
0.3124529719,
-0.1530663371,
-0.095645085,
-0.157430917,
-0.280697614,
-0.0521221347,
0.185750708,
0.3627321422,
0.1378489882,
0.114368856,
0.2967047095,
0.288788259,
0.1775025278,
0.104183346,
0.3223491013,
0.2164292336,
0.1731068939,
-0.1532248259,
-0.1303547919,
-0.2971838415,
0.0807353035,
0.219082728,
-0.0312120896,
-0.2718612552,
-0.2509310842,
-0.3407042623,
-0.2066207975,
-0.1483214796,
0.0180349406,
0.2382639945,
-0.0485069975,
-0.0493649319,
-0.0633317977,
-0.2919753194,
0.4999571443,
-0.2259842753,
0.0901969299,
-0.2923012674,
0.158874467,
-0.2442295253,
-0.1025530547,
0.1246490777,
-0.0284795966,
0.1251574457,
-0.0823222324,
-0.063702926,
0.3320345283,
0.0375415124,
0.0506806523,
0.0673419014,
-0.0951316431,
0.1241535395,
-0.3400786817,
0.1844294965,
-0.2295354307,
0.0710090771,
-0.0017824797,
-0.0044874591,
-0.0572310202,
-0.2801706493,
0.0628419667,
0.2860817313,
0.0964288339,
0.2981427014,
-0.1603612006,
0.0415814482,
-0.4865526259,
0.0784965754,
0.0981656834,
0.2395066917,
-0.0675735176,
-0.2537471056,
0.0527260415,
0.3675585985,
0.1426953524,
0.0361453481,
0.1218582839,
-0.093949534,
0.045111265,
-0.1279809773,
0.2976514399,
0.1854217947,
0.1711167842,
0.0062499084,
-0.1330318898,
0.2280556262,
-0.216543749,
0.2388890684,
-0.0532694981,
0.0778327435,
0.3355534375,
-0.0925417021,
0.0923875198,
-0.1577504426,
-0.3601543605,
0.0853880346,
0.2455344498,
-0.2284464389,
-0.2190803289,
-0.3301953077,
-0.2610277236,
-0.058480233,
-0.1618005186,
0.0648658201,
-0.1739551574,
-0.1136663854,
0.3175643682,
0.2524274588,
0.0781725645,
-0.2875870466,
-0.088435173,
0.0608518422,
-0.2129152715,
-0.1243226454,
-0.1231793314,
-0.0458455421,
0.2266673744,
0.334953934,
-0.0211353526,
0.2578158379,
-0.4402718842,
-0.0080835214,
-0.2770046294,
0.0826188102,
0.0398203284,
0.0108163198,
0.0953361765,
0.1249909326,
0.4773277938,
0.1202945411,
-0.3079589307,
0.0788394287,
-0.0808624029,
-0.1750845611,
-0.0007008439,
-0.0925776362,
-0.0714500397,
0.0025722333,
-0.4792707562,
-0.4157939553,
-0.3165062368,
-0.0713699013,
0.0571880862,
0.0436631143,
0.097731553,
0.2333915681,
0.2032423615,
0.3070596755,
0.1822698712,
-0.0370334163,
-0.3868348897,
0.3021570444,
-0.2015401274,
-0.2068995386,
0.2725224495,
-0.0110129872,
0.3213930726,
0.0716894418,
-0.6101093292,
0.101669319,
-0.0240966566,
0.3465479612,
-0.098723419,
-0.1096187308,
0.0603595972,
-0.0655681789,
-0.1339581162,
-0.0619546771,
-0.0375207737,
-0.0004059091,
-0.0901715681,
0.1974920481,
-0.2317511588,
0.5183965564,
-0.0380554758,
0.393609643,
0.3272313774,
-0.1218414828,
0.4882547855,
-0.0589161776,
0.2292048186,
-0.2034322768,
-0.4554421604,
0.0337610319,
-0.0116053149,
-0.1714818627,
-0.1340015531,
-0.1392357051,
-0.2006167322,
-0.0880588368,
0.0487593263,
-0.3500269055,
-0.0818260163,
-0.0632224828,
-0.1893381774,
0.1761306524,
-0.0381603017,
0.1182603389,
-0.023634512,
-0.2639211118,
0.1144764572,
0.383240968,
0.0313139372,
0.1572652459,
0.0041668378,
-0.2751963437,
-0.1234830394,
0.1956592947,
0.0952751264,
0.258146584,
-0.2238431722,
0.2099878788,
0.1383151263,
0.1370848715,
0.6306633949,
-0.3738166988,
0.1606443077,
0.1012415662,
0.1247325316,
-0.0850959346,
-0.0353818983,
-0.1879750192,
0.0969592035,
0.462435931,
0.3138142824,
-0.2233280838,
-0.0177923441,
0.4466826022,
0.1704705358,
0.0012418757,
-0.10440851,
-0.029760845,
-0.2990216315,
-0.3173525631,
-0.0554822162,
0.0616682805,
0.1670001596,
-0.0458417684,
-0.1391414106,
-0.0763727725,
0.0589558333,
-0.0352789983,
0.00625824,
0.4235683382,
0.1951741427,
0.2749031782,
0.1604066789,
-0.1231247708,
0.7554836273,
0.5446822047,
-0.3073402345,
0.0237259679,
0.0381548591,
-0.108909376,
-0.005878021,
0.1639740765,
-0.1571989805,
-0.3096760213,
0.1150086671,
-0.050280273,
0.1761643738,
0.0670875907,
0.4062772393,
-0.0849895999,
-0.2734709084,
-0.6353532672,
0.2006478459,
0.2205906808,
0.075873442,
0.1138358712,
0.0014417244,
-0.2162542343,
0.1600410491,
0.1431049258,
0.6717503667,
-0.0306910109,
-0.1283621788,
-0.07372839,
0.2314274013,
0.1600269675,
-0.3901944458,
0.2138736546,
-0.248378545,
-0.2130274177,
-0.051533334,
-0.1116769165,
-0.1148252413,
0.3104115129,
-0.3014478683,
0.2266769707,
-0.3166172206,
-0.1173049286,
-0.1931753159,
0.5951211452,
-0.4062134922,
0.0443439782,
0.093339555,
0.2500636876,
-0.08033932,
0.2330947369,
0.0176276416,
-0.0059866607,
-0.1392315924,
-0.0871680453,
-0.5714968443,
0.0955902413,
-0.3902880251,
0.4118309915,
-0.2546888292,
-0.1696925163,
0.0545233339,
0.0963135511,
0.1940549016,
0.1400993764,
-0.0896285772,
0.1585940868,
0.3080501556,
-0.3198868632,
0.1317541599,
0.1286299229,
0.5172041655,
-0.1429077089,
-0.1903926879,
0.128124699,
0.0822041854,
-0.0944058299,
0.2196157873,
-0.1130357012,
0.1230944768,
-0.2164568454,
-0.3051657081,
-0.1710219532,
-0.0309378915,
-0.1239987537,
0.1908608228,
-0.1052556485,
0.0750177726,
0.1135816723,
0.2069985271,
-0.2609422505,
-0.069976151,
0.547329247,
0.0353881456,
-0.0399465114,
0.4528160393,
0.1376163512,
-0.2352596968,
-0.2972405255,
0.0628512427,
-0.0171452574,
-0.2241663933,
0.1007650718,
-0.0658694133,
0.2046488523,
-0.0330080055,
-0.0393611863,
0.2021429986,
0.0797477439,
-0.1549254954,
-0.5466322899,
-0.3308158815,
0.2572829425,
-0.0040127249,
0.1021021381,
-0.2261444032,
-0.0044909474,
0.1607135236,
-0.2122685313,
-0.3538897932,
0.080905214,
-0.2972685099,
0.0604099222,
0.3226785958,
-0.0839446336,
0.1275470555,
-0.0507344715,
0.2604579926,
-0.0283882674,
-0.0389638171,
-0.2842151523,
0.0097504565,
0.0598693378,
-0.042060513,
-0.0928149968,
-0.1324001551,
-0.3429486752,
-0.3393505514,
0.014878137,
-0.0271453355,
0.1792006195,
0.1183890849,
0.1375852078,
-0.1262246519,
-0.0520075895,
-0.1079087555,
0.1508830935,
-0.0076591517,
0.0836495534,
0.0269262511,
0.1733348072,
0.1669806242,
-0.0562456101,
-0.1608995795,
-0.0270906985,
-0.1440098584,
0.0731732473,
0.3145098388,
-0.228022337,
0.1771390289,
0.2457535416,
0.0589398593,
0.4200528562,
-0.1652677953,
-0.1035108045,
-0.0913867727,
0.3593564332,
-0.2875732183,
0.0594158173,
0.1363567114,
0.0103493501,
-0.0321373753,
0.0257977713,
0.0927986428,
-0.03307366,
0.1518529356,
0.1289413422,
0.5847817659,
-0.0939862505,
0.228310436,
0.1213586777,
0.0341576412,
-0.0537567399,
0.0660597384,
0.2479736656,
0.1333171874,
0.6074610353,
-0.3323965967,
0.0216967948,
-0.0137875499,
0.0380410403,
0.043070592,
-0.3360207975,
0.0479255356,
0.0449728332,
-0.0241370071,
-0.1163444296,
-0.0760936216,
0.1558951885,
-0.0984016955,
-0.0509513095,
-0.2309979647,
0.0863994136,
-0.2810724676,
0.1381594986,
-0.2467105836,
-0.1639962494,
-0.2269251794,
0.0585487224,
-0.0784548149,
0.0134898424,
0.0897026584,
0.3838813007,
-0.2677738965,
-0.3388092816,
0.113134332,
0.101529263,
0.2099556029,
-0.3549322188,
0.2294829339,
0.1947606504,
0.0789525062,
0.1714925468,
0.2270051539,
0.4746426642,
0.4007493258,
-0.0522253998,
0.0508304089,
0.0979079306,
-0.2286951989,
-0.0948865563,
0.1375479251,
0.3165975213,
0.199182272,
0.1111145914,
0.2761751115,
-0.2056591958,
0.0442580394,
0.0271603763,
0.3460956514,
-0.0298097543,
0.188867569,
-0.1929422319,
-0.1620157063,
-0.3676904142,
0.0509316325,
-0.3131986856,
-0.1232886165,
0.3973478973,
-0.2198224515,
-0.030769581,
-0.122024864,
0.114908129,
-0.170416221,
0.3895864189,
0.4077182114,
0.0223240312,
-0.4315786362,
-0.0374502949,
-0.5283248425,
-0.0234984066,
-0.1055567712,
0.0213448703,
0.0183605663,
0.3473742306,
-0.309630394,
0.0190831069,
0.3375187516,
0.1437057257,
0.0124575114,
0.3879180253,
-0.1668469459,
-0.0650721714,
-0.1635156125,
-0.0045005553,
-0.0164064709,
-0.2656364143,
0.0661238432,
-0.5669975877,
0.1465959847,
-0.0391402766,
-0.3743071258,
0.2084971964,
0.3640378416,
0.408188343,
-0.1317992359,
0.6865521073,
-0.139113158,
-0.1931460202,
-0.2702289224,
-0.2662593722,
-0.2637102902,
0.2612062395,
0.2799526751,
0.2722637057,
-0.094001472,
-0.1878318787,
-0.248357296,
0.3727861941,
0.0062564313,
-0.239690125,
-0.3305549324,
-0.2087530494,
-0.1693935245,
0.0842130482,
0.1114842147,
0.035393253,
0.0012896012,
0.0618679225,
-0.3388711214,
-0.4206546247,
0.459205538,
-0.0953676328,
0.0193862878,
-0.1915462911,
0.2458006442,
0.2035214454,
-0.0267860256,
-0.4084339142,
0.213635847,
0.3001482487,
-0.1244567782,
-0.1870332509,
0.1222755536,
0.0408129916,
0.2679309249,
-0.0382403508,
-0.0211120304,
0.0068065976,
-0.1896326691,
-0.2512020171,
-0.1015277728
] |
https://github.com/huggingface/datasets/issues/1290 | imdb dataset cannot be downloaded | Hi,
thanks, I did remove the cache and still the same error here
```
>>> a = datasets.load_dataset("imdb", split="train")
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
Downloading and preparing dataset imdb/plain_text (download: 80.23 MiB, generated: 127.06 MiB, post-processed: Unknown size, total: 207.28 MiB) to /idiap/temp/rkarimi/cache_home_1/datasets/imdb/plain_text/1.0.0/90099cb476936b753383ba2ae6ab2eae419b2e87f71cd5189cb9c8e5814d12a3...
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets/downloads
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=4902716, num_examples=3680, dataset_name='imdb')}]
```
datasets version
```
datasets 1.1.2 <pip>
tensorflow-datasets 4.1.0 <pip>
``` | hi
please find error below getting imdb train spli:
thanks
`
datasets.load_dataset>>> datasets.load_dataset("imdb", split="train")`
errors
```
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
Downloading and preparing dataset imdb/plain_text (download: 80.23 MiB, generated: 127.06 MiB, post-processed: Unknown size, total: 207.28 MiB) to /idiap/temp/rkarimi/cache_home_1/datasets/imdb/plain_text/1.0.0/90099cb476936b753383ba2ae6ab2eae419b2e87f71cd5189cb9c8e5814d12a3...
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets/downloads
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=7486451, num_examples=5628, dataset_name='imdb')}]
``` | 115 | imdb dataset cannot be downloaded
hi
please find error below getting imdb train spli:
thanks
`
datasets.load_dataset>>> datasets.load_dataset("imdb", split="train")`
errors
```
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
Downloading and preparing dataset imdb/plain_text (download: 80.23 MiB, generated: 127.06 MiB, post-processed: Unknown size, total: 207.28 MiB) to /idiap/temp/rkarimi/cache_home_1/datasets/imdb/plain_text/1.0.0/90099cb476936b753383ba2ae6ab2eae419b2e87f71cd5189cb9c8e5814d12a3...
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets/downloads
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=7486451, num_examples=5628, dataset_name='imdb')}]
```
Hi,
thanks, I did remove the cache and still the same error here
```
>>> a = datasets.load_dataset("imdb", split="train")
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
Downloading and preparing dataset imdb/plain_text (download: 80.23 MiB, generated: 127.06 MiB, post-processed: Unknown size, total: 207.28 MiB) to /idiap/temp/rkarimi/cache_home_1/datasets/imdb/plain_text/1.0.0/90099cb476936b753383ba2ae6ab2eae419b2e87f71cd5189cb9c8e5814d12a3...
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets/downloads
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 558, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 73, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=4902716, num_examples=3680, dataset_name='imdb')}]
```
datasets version
```
datasets 1.1.2 <pip>
tensorflow-datasets 4.1.0 <pip>
``` | [
-0.4860098064,
0.0299126841,
-0.1837319434,
0.2636172473,
0.3486503363,
0.3077560961,
0.315705359,
0.4439667165,
0.2162811905,
0.0212678369,
-0.0990766212,
-0.0724211708,
-0.0315421484,
0.1580999941,
-0.0292216484,
-0.1209030524,
-0.1767853349,
0.0127702858,
-0.1587821096,
0.0179681815,
-0.1283203214,
0.2383502871,
-0.1618405133,
-0.0335200392,
-0.4301397502,
-0.3121138513,
0.1392010748,
0.0827980787,
-0.3193939626,
-0.4591374993,
0.3921332955,
-0.008236995,
0.2423053384,
0.2826942205,
-0.0001035062,
-0.0365675129,
0.5334969163,
-0.1074084118,
-0.3835623264,
-0.28779459,
-0.3273851573,
0.0555790439,
-0.002763791,
-0.2751792669,
0.0047643417,
-0.025385635,
0.0113665788,
-0.3959701061,
0.0374141186,
0.494140923,
0.2971444726,
-0.12976484,
0.24519521,
-0.2180918455,
0.2423910052,
0.0137037141,
0.0529720038,
0.248845458,
0.1408812106,
0.2723529041,
0.2486404628,
0.1801099926,
-0.3034389019,
-0.0220964998,
0.2865756154,
-0.0972825065,
0.1653278917,
-0.4706071019,
0.1722738445,
0.2280537188,
0.738275528,
-0.2388616949,
-0.3810375929,
0.144750759,
0.377194345,
-0.1702629924,
0.1000009924,
0.2182768732,
-0.1827754527,
0.1017387956,
-0.2199491411,
-0.0662822649,
-0.1369592398,
0.1590717286,
0.0886127353,
-0.1605072618,
0.0495886952,
-0.0400304273,
0.0987493768,
-0.1344027072,
0.2517718673,
0.0384323411,
-0.0021125725,
0.2361703664,
-0.2602401078,
-0.1002122164,
-0.223758325,
0.0192961209,
0.0649494752,
0.2488009185,
-0.153493315,
-0.1331483722,
0.016815152,
0.1392868608,
0.1821449548,
0.1841434836,
-0.0582514778,
0.3144682348,
0.1950908005,
0.4538915157,
-0.1490833312,
-0.1017043367,
-0.2541643381,
-0.1346600652,
-0.0824787542,
0.1436087936,
0.0311762337,
-0.1240339503,
-0.4782602191,
0.044835221,
-0.2012894601,
0.1291314662,
0.2305187434,
0.3140895069,
-0.1347791255,
0.1046991646,
0.2271656543,
0.2528128028,
0.1159727648,
-0.1042450443,
-0.2461475581,
0.3043957949,
-0.0936460122,
-0.0565775596,
0.3721652925,
-0.1996798515,
0.3377609849,
0.0696252882,
0.003638559,
-0.2105990499,
0.2095434219,
-0.3007853329,
0.0287867002,
0.358466506,
0.2556398809,
0.2001561224,
-0.0840682164,
0.1235396191,
-0.0588882565,
0.0461489893,
-0.2743841112,
-0.319922924,
-0.0881594941,
0.3507597148,
0.12622796,
-0.1656851023,
-0.3235685825,
-0.1998393983,
0.0913968757,
-0.2130100131,
0.0047631166,
-0.1729652584,
-0.0258702282,
-0.1337609142,
0.3516485989,
0.491371274,
-0.2694046795,
0.0458031669,
-0.4400697649,
-0.1443545073,
0.0440969728,
0.3456625938,
-0.1699271351,
0.3116581142,
-0.3299518824,
0.1360128224,
0.2640050948,
-0.6436081529,
-0.5091255903,
0.3254257441,
-0.0387007557,
-0.1184329465,
0.2331248522,
0.2476874888,
0.344224751,
0.0431958921,
0.1554581523,
0.3124529719,
-0.1530663371,
-0.095645085,
-0.157430917,
-0.280697614,
-0.0521221347,
0.185750708,
0.3627321422,
0.1378489882,
0.114368856,
0.2967047095,
0.288788259,
0.1775025278,
0.104183346,
0.3223491013,
0.2164292336,
0.1731068939,
-0.1532248259,
-0.1303547919,
-0.2971838415,
0.0807353035,
0.219082728,
-0.0312120896,
-0.2718612552,
-0.2509310842,
-0.3407042623,
-0.2066207975,
-0.1483214796,
0.0180349406,
0.2382639945,
-0.0485069975,
-0.0493649319,
-0.0633317977,
-0.2919753194,
0.4999571443,
-0.2259842753,
0.0901969299,
-0.2923012674,
0.158874467,
-0.2442295253,
-0.1025530547,
0.1246490777,
-0.0284795966,
0.1251574457,
-0.0823222324,
-0.063702926,
0.3320345283,
0.0375415124,
0.0506806523,
0.0673419014,
-0.0951316431,
0.1241535395,
-0.3400786817,
0.1844294965,
-0.2295354307,
0.0710090771,
-0.0017824797,
-0.0044874591,
-0.0572310202,
-0.2801706493,
0.0628419667,
0.2860817313,
0.0964288339,
0.2981427014,
-0.1603612006,
0.0415814482,
-0.4865526259,
0.0784965754,
0.0981656834,
0.2395066917,
-0.0675735176,
-0.2537471056,
0.0527260415,
0.3675585985,
0.1426953524,
0.0361453481,
0.1218582839,
-0.093949534,
0.045111265,
-0.1279809773,
0.2976514399,
0.1854217947,
0.1711167842,
0.0062499084,
-0.1330318898,
0.2280556262,
-0.216543749,
0.2388890684,
-0.0532694981,
0.0778327435,
0.3355534375,
-0.0925417021,
0.0923875198,
-0.1577504426,
-0.3601543605,
0.0853880346,
0.2455344498,
-0.2284464389,
-0.2190803289,
-0.3301953077,
-0.2610277236,
-0.058480233,
-0.1618005186,
0.0648658201,
-0.1739551574,
-0.1136663854,
0.3175643682,
0.2524274588,
0.0781725645,
-0.2875870466,
-0.088435173,
0.0608518422,
-0.2129152715,
-0.1243226454,
-0.1231793314,
-0.0458455421,
0.2266673744,
0.334953934,
-0.0211353526,
0.2578158379,
-0.4402718842,
-0.0080835214,
-0.2770046294,
0.0826188102,
0.0398203284,
0.0108163198,
0.0953361765,
0.1249909326,
0.4773277938,
0.1202945411,
-0.3079589307,
0.0788394287,
-0.0808624029,
-0.1750845611,
-0.0007008439,
-0.0925776362,
-0.0714500397,
0.0025722333,
-0.4792707562,
-0.4157939553,
-0.3165062368,
-0.0713699013,
0.0571880862,
0.0436631143,
0.097731553,
0.2333915681,
0.2032423615,
0.3070596755,
0.1822698712,
-0.0370334163,
-0.3868348897,
0.3021570444,
-0.2015401274,
-0.2068995386,
0.2725224495,
-0.0110129872,
0.3213930726,
0.0716894418,
-0.6101093292,
0.101669319,
-0.0240966566,
0.3465479612,
-0.098723419,
-0.1096187308,
0.0603595972,
-0.0655681789,
-0.1339581162,
-0.0619546771,
-0.0375207737,
-0.0004059091,
-0.0901715681,
0.1974920481,
-0.2317511588,
0.5183965564,
-0.0380554758,
0.393609643,
0.3272313774,
-0.1218414828,
0.4882547855,
-0.0589161776,
0.2292048186,
-0.2034322768,
-0.4554421604,
0.0337610319,
-0.0116053149,
-0.1714818627,
-0.1340015531,
-0.1392357051,
-0.2006167322,
-0.0880588368,
0.0487593263,
-0.3500269055,
-0.0818260163,
-0.0632224828,
-0.1893381774,
0.1761306524,
-0.0381603017,
0.1182603389,
-0.023634512,
-0.2639211118,
0.1144764572,
0.383240968,
0.0313139372,
0.1572652459,
0.0041668378,
-0.2751963437,
-0.1234830394,
0.1956592947,
0.0952751264,
0.258146584,
-0.2238431722,
0.2099878788,
0.1383151263,
0.1370848715,
0.6306633949,
-0.3738166988,
0.1606443077,
0.1012415662,
0.1247325316,
-0.0850959346,
-0.0353818983,
-0.1879750192,
0.0969592035,
0.462435931,
0.3138142824,
-0.2233280838,
-0.0177923441,
0.4466826022,
0.1704705358,
0.0012418757,
-0.10440851,
-0.029760845,
-0.2990216315,
-0.3173525631,
-0.0554822162,
0.0616682805,
0.1670001596,
-0.0458417684,
-0.1391414106,
-0.0763727725,
0.0589558333,
-0.0352789983,
0.00625824,
0.4235683382,
0.1951741427,
0.2749031782,
0.1604066789,
-0.1231247708,
0.7554836273,
0.5446822047,
-0.3073402345,
0.0237259679,
0.0381548591,
-0.108909376,
-0.005878021,
0.1639740765,
-0.1571989805,
-0.3096760213,
0.1150086671,
-0.050280273,
0.1761643738,
0.0670875907,
0.4062772393,
-0.0849895999,
-0.2734709084,
-0.6353532672,
0.2006478459,
0.2205906808,
0.075873442,
0.1138358712,
0.0014417244,
-0.2162542343,
0.1600410491,
0.1431049258,
0.6717503667,
-0.0306910109,
-0.1283621788,
-0.07372839,
0.2314274013,
0.1600269675,
-0.3901944458,
0.2138736546,
-0.248378545,
-0.2130274177,
-0.051533334,
-0.1116769165,
-0.1148252413,
0.3104115129,
-0.3014478683,
0.2266769707,
-0.3166172206,
-0.1173049286,
-0.1931753159,
0.5951211452,
-0.4062134922,
0.0443439782,
0.093339555,
0.2500636876,
-0.08033932,
0.2330947369,
0.0176276416,
-0.0059866607,
-0.1392315924,
-0.0871680453,
-0.5714968443,
0.0955902413,
-0.3902880251,
0.4118309915,
-0.2546888292,
-0.1696925163,
0.0545233339,
0.0963135511,
0.1940549016,
0.1400993764,
-0.0896285772,
0.1585940868,
0.3080501556,
-0.3198868632,
0.1317541599,
0.1286299229,
0.5172041655,
-0.1429077089,
-0.1903926879,
0.128124699,
0.0822041854,
-0.0944058299,
0.2196157873,
-0.1130357012,
0.1230944768,
-0.2164568454,
-0.3051657081,
-0.1710219532,
-0.0309378915,
-0.1239987537,
0.1908608228,
-0.1052556485,
0.0750177726,
0.1135816723,
0.2069985271,
-0.2609422505,
-0.069976151,
0.547329247,
0.0353881456,
-0.0399465114,
0.4528160393,
0.1376163512,
-0.2352596968,
-0.2972405255,
0.0628512427,
-0.0171452574,
-0.2241663933,
0.1007650718,
-0.0658694133,
0.2046488523,
-0.0330080055,
-0.0393611863,
0.2021429986,
0.0797477439,
-0.1549254954,
-0.5466322899,
-0.3308158815,
0.2572829425,
-0.0040127249,
0.1021021381,
-0.2261444032,
-0.0044909474,
0.1607135236,
-0.2122685313,
-0.3538897932,
0.080905214,
-0.2972685099,
0.0604099222,
0.3226785958,
-0.0839446336,
0.1275470555,
-0.0507344715,
0.2604579926,
-0.0283882674,
-0.0389638171,
-0.2842151523,
0.0097504565,
0.0598693378,
-0.042060513,
-0.0928149968,
-0.1324001551,
-0.3429486752,
-0.3393505514,
0.014878137,
-0.0271453355,
0.1792006195,
0.1183890849,
0.1375852078,
-0.1262246519,
-0.0520075895,
-0.1079087555,
0.1508830935,
-0.0076591517,
0.0836495534,
0.0269262511,
0.1733348072,
0.1669806242,
-0.0562456101,
-0.1608995795,
-0.0270906985,
-0.1440098584,
0.0731732473,
0.3145098388,
-0.228022337,
0.1771390289,
0.2457535416,
0.0589398593,
0.4200528562,
-0.1652677953,
-0.1035108045,
-0.0913867727,
0.3593564332,
-0.2875732183,
0.0594158173,
0.1363567114,
0.0103493501,
-0.0321373753,
0.0257977713,
0.0927986428,
-0.03307366,
0.1518529356,
0.1289413422,
0.5847817659,
-0.0939862505,
0.228310436,
0.1213586777,
0.0341576412,
-0.0537567399,
0.0660597384,
0.2479736656,
0.1333171874,
0.6074610353,
-0.3323965967,
0.0216967948,
-0.0137875499,
0.0380410403,
0.043070592,
-0.3360207975,
0.0479255356,
0.0449728332,
-0.0241370071,
-0.1163444296,
-0.0760936216,
0.1558951885,
-0.0984016955,
-0.0509513095,
-0.2309979647,
0.0863994136,
-0.2810724676,
0.1381594986,
-0.2467105836,
-0.1639962494,
-0.2269251794,
0.0585487224,
-0.0784548149,
0.0134898424,
0.0897026584,
0.3838813007,
-0.2677738965,
-0.3388092816,
0.113134332,
0.101529263,
0.2099556029,
-0.3549322188,
0.2294829339,
0.1947606504,
0.0789525062,
0.1714925468,
0.2270051539,
0.4746426642,
0.4007493258,
-0.0522253998,
0.0508304089,
0.0979079306,
-0.2286951989,
-0.0948865563,
0.1375479251,
0.3165975213,
0.199182272,
0.1111145914,
0.2761751115,
-0.2056591958,
0.0442580394,
0.0271603763,
0.3460956514,
-0.0298097543,
0.188867569,
-0.1929422319,
-0.1620157063,
-0.3676904142,
0.0509316325,
-0.3131986856,
-0.1232886165,
0.3973478973,
-0.2198224515,
-0.030769581,
-0.122024864,
0.114908129,
-0.170416221,
0.3895864189,
0.4077182114,
0.0223240312,
-0.4315786362,
-0.0374502949,
-0.5283248425,
-0.0234984066,
-0.1055567712,
0.0213448703,
0.0183605663,
0.3473742306,
-0.309630394,
0.0190831069,
0.3375187516,
0.1437057257,
0.0124575114,
0.3879180253,
-0.1668469459,
-0.0650721714,
-0.1635156125,
-0.0045005553,
-0.0164064709,
-0.2656364143,
0.0661238432,
-0.5669975877,
0.1465959847,
-0.0391402766,
-0.3743071258,
0.2084971964,
0.3640378416,
0.408188343,
-0.1317992359,
0.6865521073,
-0.139113158,
-0.1931460202,
-0.2702289224,
-0.2662593722,
-0.2637102902,
0.2612062395,
0.2799526751,
0.2722637057,
-0.094001472,
-0.1878318787,
-0.248357296,
0.3727861941,
0.0062564313,
-0.239690125,
-0.3305549324,
-0.2087530494,
-0.1693935245,
0.0842130482,
0.1114842147,
0.035393253,
0.0012896012,
0.0618679225,
-0.3388711214,
-0.4206546247,
0.459205538,
-0.0953676328,
0.0193862878,
-0.1915462911,
0.2458006442,
0.2035214454,
-0.0267860256,
-0.4084339142,
0.213635847,
0.3001482487,
-0.1244567782,
-0.1870332509,
0.1222755536,
0.0408129916,
0.2679309249,
-0.0382403508,
-0.0211120304,
0.0068065976,
-0.1896326691,
-0.2512020171,
-0.1015277728
] |
https://github.com/huggingface/datasets/issues/1287 | 'iwslt2017-ro-nl', cannot be downloaded | Looks like the data has been moved from its original location to google drive
New url: https://drive.google.com/u/0/uc?id=12ycYSzLIG253AFN35Y6qoyf9wtkOjakp&export=download | Hi
I am trying
`>>> datasets.load_dataset("iwslt2017", 'iwslt2017-ro-nl', split="train")`
getting this error thank you for your help
```
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
Downloading and preparing dataset iwsl_t217/iwslt2017-ro-nl (download: 314.07 MiB, generated: 39.92 MiB, post-processed: Unknown size, total: 354.00 MiB) to /idiap/temp/rkarimi/cache_home_1/datasets/iwsl_t217/iwslt2017-ro-nl/1.0.0/cca6935a0851a8ceac1202a62c958738bdfa23c57a51bc52ac1c5ebd2aa172cd...
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets/downloads
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/iwslt2017/cca6935a0851a8ceac1202a62c958738bdfa23c57a51bc52ac1c5ebd2aa172cd/iwslt2017.py", line 118, in _split_generators
dl_dir = dl_manager.download_and_extract(MULTI_URL)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/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 "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 216, in map_nested
return function(data_struct)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 477, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://wit3.fbk.eu/archive/2017-01-trnmted//texts/DeEnItNlRo/DeEnItNlRo/DeEnItNlRo-DeEnItNlRo.tgz
``` | 17 | 'iwslt2017-ro-nl', cannot be downloaded
Hi
I am trying
`>>> datasets.load_dataset("iwslt2017", 'iwslt2017-ro-nl', split="train")`
getting this error thank you for your help
```
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
Downloading and preparing dataset iwsl_t217/iwslt2017-ro-nl (download: 314.07 MiB, generated: 39.92 MiB, post-processed: Unknown size, total: 354.00 MiB) to /idiap/temp/rkarimi/cache_home_1/datasets/iwsl_t217/iwslt2017-ro-nl/1.0.0/cca6935a0851a8ceac1202a62c958738bdfa23c57a51bc52ac1c5ebd2aa172cd...
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets/downloads
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/iwslt2017/cca6935a0851a8ceac1202a62c958738bdfa23c57a51bc52ac1c5ebd2aa172cd/iwslt2017.py", line 118, in _split_generators
dl_dir = dl_manager.download_and_extract(MULTI_URL)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/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 "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 179, in download
num_proc=download_config.num_proc,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/py_utils.py", line 216, in map_nested
return function(data_struct)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 308, in cached_path
use_etag=download_config.use_etag,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 477, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://wit3.fbk.eu/archive/2017-01-trnmted//texts/DeEnItNlRo/DeEnItNlRo/DeEnItNlRo-DeEnItNlRo.tgz
```
Looks like the data has been moved from its original location to google drive
New url: https://drive.google.com/u/0/uc?id=12ycYSzLIG253AFN35Y6qoyf9wtkOjakp&export=download | [
-0.3419766724,
-0.3006092608,
-0.1523726732,
0.2706140578,
0.2139090449,
0.21579656,
0.2569400966,
0.365054369,
0.1976392716,
-0.020129649,
-0.0654520616,
-0.1176216304,
0.1440993994,
-0.0291721784,
-0.151821062,
-0.269972682,
-0.0663300306,
0.1131049097,
-0.1293237656,
0.0422330797,
-0.3337649703,
0.2209875137,
-0.1799143553,
0.0285911597,
-0.3148557842,
-0.215824753,
-0.1557891965,
0.0668195486,
-0.3765223026,
-0.3967734277,
0.4967110753,
0.0440177433,
0.3563045561,
0.3447470963,
-0.0001073461,
0.0428798944,
0.3648749292,
-0.1117400527,
-0.2904238105,
-0.1810607761,
-0.5819841027,
-0.3666989207,
-0.1755939871,
-0.3403346837,
0.0163972974,
-0.402205497,
-0.1394960284,
-0.1585927308,
0.3906441033,
0.3888226449,
0.2995845675,
0.1232837513,
0.2581681907,
-0.2987954319,
-0.0361347087,
-0.2832289338,
-0.0201402809,
0.2171179503,
-0.0970924199,
-0.0205893088,
0.2999320626,
0.2079218626,
-0.1322474927,
0.0845833793,
0.094516933,
-0.1371855587,
0.2849366069,
-0.4758991003,
0.3063420653,
0.141992867,
0.6968967915,
-0.1230085045,
-0.2451380491,
0.1330754459,
0.0477134325,
-0.1949056238,
0.125654906,
0.3085879087,
-0.1431123316,
0.1953271925,
-0.1524961293,
-0.0715679079,
-0.1325484067,
0.2132599801,
-0.1820757389,
0.3298110664,
-0.0642742589,
0.1544099301,
0.3366715014,
-0.0729811788,
0.2190582901,
-0.0332602821,
-0.1243837848,
0.3861819506,
-0.3388732374,
0.0024499714,
-0.2990519702,
0.0185882542,
-0.1256581247,
0.0470615923,
-0.221941486,
-0.2800482213,
0.1643056273,
0.1297832578,
0.043955043,
0.2667299509,
-0.0249501318,
0.2557565868,
-0.0295449793,
0.3510740101,
0.0903157219,
-0.1288419068,
-0.183530882,
-0.3094525933,
-0.1967951506,
0.0998695791,
0.0631503165,
-0.1231369153,
-0.4885298908,
-0.1932272166,
-0.054463394,
-0.0670502633,
0.0719541609,
0.4097504914,
-0.088690348,
0.3924999833,
0.1638992131,
0.2355046868,
0.0368228741,
-0.2544770837,
-0.2585568428,
0.3158783019,
-0.185773164,
-0.0204415135,
0.2934001088,
0.0800529867,
0.1012566388,
0.0159879178,
-0.2408085167,
-0.1507219672,
0.157250911,
-0.2279165983,
0.048316028,
0.3992284238,
0.1482196152,
0.3353997171,
0.070655413,
0.0414651185,
-0.1198901683,
0.1366241425,
-0.2916612327,
-0.2356133014,
-0.0833063275,
0.2989495397,
-0.0838591084,
-0.1165731251,
0.0086516114,
-0.0890580043,
0.2176488042,
-0.0663131773,
-0.1008106023,
-0.0856411159,
-0.2119235098,
-0.3296176493,
0.2840552926,
0.3511957824,
-0.3999693394,
-0.1349373758,
-0.2301706672,
-0.2683900297,
0.319188416,
0.2966544628,
-0.1974267364,
0.3559429049,
-0.2710107565,
0.1405539662,
0.4296114743,
-0.3251669109,
-0.5949856043,
0.3352684677,
0.0314205252,
-0.1941060275,
0.2613492906,
0.1419058442,
0.0988268927,
-0.0779609904,
-0.0219252687,
0.332218349,
-0.0165831018,
-0.0974436849,
-0.1484278738,
-0.4670133293,
0.268525064,
0.2582082748,
0.2376426756,
0.1317264885,
0.0829868764,
0.2184660435,
0.3316059113,
0.0024229859,
0.2145044953,
0.1683982015,
0.2144214213,
-0.012079346,
-0.0896463618,
-0.0160230622,
-0.2915898561,
0.2323364168,
0.0352541991,
-0.1178123131,
-0.1290829927,
0.0036253436,
-0.4926201701,
-0.1394286752,
-0.4215623438,
-0.0569161288,
0.1909102499,
0.1853033006,
0.079397656,
-0.1578583419,
-0.0775967687,
0.5676693916,
-0.3102144897,
-0.0721077919,
-0.2714799643,
0.2507628202,
-0.1448059678,
-0.0085445279,
0.0757113695,
0.0322705656,
0.31833902,
-0.0350675136,
-0.1745739877,
0.2032274306,
-0.1742769182,
0.1249076948,
0.0113037955,
-0.018387055,
0.0161140151,
-0.4125339091,
0.1873713136,
-0.023024777,
0.1227754951,
-0.0164506566,
0.0431448258,
0.0571188517,
0.0457892641,
0.1377023906,
0.0710879862,
0.001113601,
0.3079360425,
-0.316311866,
0.091454491,
-0.1924465448,
0.126333952,
-0.0542970859,
0.0092260623,
-0.0536241457,
0.152814433,
-0.0957079828,
0.4249426723,
0.0955038965,
0.0690917298,
0.0036232977,
0.0028496888,
0.1753264219,
-0.2760488689,
0.5185391307,
0.3655530512,
0.0751130134,
0.0784044191,
-0.1150380149,
0.1288040429,
-0.1084229127,
0.224770382,
0.047650557,
-0.0041816407,
0.2197390497,
-0.0676041245,
-0.0982573181,
-0.0923170671,
-0.0493152477,
0.2656355798,
0.3520204723,
-0.1040191054,
0.0060476153,
-0.2463855892,
-0.2953219414,
-0.2787031233,
-0.1008474007,
-0.0477195829,
-0.15356341,
-0.237837851,
0.1771687865,
0.2375487536,
0.1192682162,
-0.236026451,
0.114716202,
0.0258135367,
-0.0294525139,
-0.1604108661,
0.0218827557,
-0.1970061362,
0.2072577775,
0.3102042079,
0.0527939685,
0.5148776174,
-0.296562463,
-0.0328367986,
-0.260762006,
0.0909983665,
-0.0588744991,
-0.010622343,
0.0126678636,
0.1085724756,
0.5615016818,
0.18836914,
-0.2239588648,
0.311609,
-0.0666208938,
-0.0488946922,
-0.1512009948,
-0.1495621353,
-0.0486636758,
-0.0859782845,
-0.4663746655,
-0.6394461393,
-0.4285476804,
-0.1054908857,
-0.1299044639,
0.0185631439,
0.1035202965,
0.1360278726,
-0.0806236193,
0.1401033401,
-0.1422324777,
-0.1530723274,
-0.1259031296,
0.488340497,
-0.1384136677,
-0.2780930698,
0.2463521957,
0.0517431162,
0.3558726013,
0.1222596243,
-0.4612591863,
0.2047154307,
-0.1789456755,
0.2339014411,
-0.1233344674,
0.187535122,
0.1291775256,
-0.1215791553,
-0.0701693669,
-0.0898955315,
-0.0077213333,
-0.0767804682,
0.0147696277,
0.5862772465,
0.0112554645,
0.3250548244,
-0.0636337921,
0.5221001506,
0.3522050381,
-0.115782842,
0.5259754062,
0.0313490368,
0.0135138482,
-0.0820039734,
-0.6337786317,
0.0230405685,
-0.1061980426,
0.0868646428,
0.2244167775,
-0.1441634595,
-0.2223572731,
-0.1677296311,
-0.0043811682,
-0.1488209814,
-0.0474476963,
0.0343092233,
0.3830761909,
0.4424400032,
0.0338992663,
-0.0480400026,
-0.2091472745,
-0.1317838281,
0.0974780396,
0.2961212695,
-0.1347297728,
0.2479328066,
-0.0165554732,
-0.1964795291,
-0.258847326,
0.1430328339,
0.2360539436,
0.329819411,
-0.2033842057,
0.1699990779,
0.1397538632,
0.028266158,
0.5790625215,
-0.195694223,
0.1182055697,
0.2313866913,
0.2583264709,
-0.0488121398,
-0.1092301458,
-0.1493158937,
0.2338515371,
0.3252852857,
0.2348413765,
-0.2585186362,
-0.1194622666,
0.2451256514,
0.3395390213,
-0.2977319062,
-0.3928256333,
-0.3186825216,
-0.4542880356,
-0.4696659446,
-0.1589414626,
0.0924780667,
0.3104876578,
-0.2088989317,
0.0657574683,
-0.0496008061,
-0.1515219063,
0.0941470712,
0.1550451815,
0.3905796111,
0.268471837,
0.1671625525,
0.2203496546,
0.1206485778,
0.0937274173,
0.5806071758,
-0.0820144713,
-0.1815620363,
0.1683235466,
-0.0675855428,
-0.0086017996,
0.1252848506,
-0.1580294818,
0.0009671682,
0.0902220309,
0.0446868651,
0.128166005,
0.1415164471,
0.3960202634,
-0.1422024518,
-0.569852829,
-0.539401114,
0.4596919417,
0.0626788959,
0.0551530123,
0.2357878536,
-0.0408795103,
-0.1155172437,
-0.1661673337,
-0.1388941109,
0.8912358284,
-0.0221585128,
-0.1548424065,
0.1937687695,
0.1800163835,
0.3420312703,
-0.2002803683,
0.1621748954,
-0.2236507237,
0.0076993643,
-0.0533527285,
-0.1299176514,
0.0873079896,
0.2866202295,
-0.2430065721,
0.33707726,
-0.1529808193,
0.0282464903,
0.1536391526,
0.4686250687,
-0.2369806468,
-0.1234861985,
-0.2134871781,
0.2599333823,
-0.06979049,
0.2494766414,
-0.2205188423,
-0.1804307997,
0.0077852556,
-0.1079011559,
-0.228769809,
0.1813033074,
-0.2994196713,
0.592789948,
-0.1998259127,
0.004269212,
0.2811474502,
0.1610229313,
0.3320010602,
0.0170545056,
-0.2426313609,
0.2426299006,
-0.0703170374,
-0.2951051295,
-0.2690461576,
0.1414596736,
0.1052305698,
-0.1932797581,
-0.3641048968,
0.152430594,
-0.0982601643,
-0.1537450105,
0.1027298495,
-0.0649384633,
0.4251008928,
-0.222038269,
-0.1376626641,
-0.1038455218,
0.0651886314,
-0.1359352767,
0.1879300922,
-0.0017164201,
-0.1478772163,
0.0615536682,
-0.1109071672,
-0.2153672427,
-0.0525975861,
0.433675915,
0.0625074282,
0.0277479794,
0.6179627776,
0.09153945,
-0.1221233755,
-0.3233801126,
-0.0919288397,
-0.0856465176,
-0.4771236181,
0.0789747015,
0.1139000058,
0.0712305829,
-0.1859558523,
0.4050692022,
0.2536170781,
0.0127550028,
0.0016874782,
-0.654889226,
-0.3016879857,
-0.0393075757,
-0.0212147869,
0.15945746,
-0.1859032065,
0.0273678992,
0.179420948,
-0.1460598111,
-0.350672543,
0.0116716325,
-0.220564425,
0.0751530528,
0.4576438963,
-0.1315952986,
0.1161370501,
0.1173948124,
0.2125161886,
0.0765647963,
-0.1298948824,
-0.3067094684,
-0.1219614744,
0.1114021614,
-0.0835445747,
-0.1904914826,
-0.0903213099,
-0.3495314419,
-0.1241814643,
0.1055314243,
-0.1069640592,
0.0205262359,
0.0696954876,
0.0964208767,
0.1702430546,
-0.0221590213,
-0.2776297629,
0.2832119167,
0.0862474069,
0.1938599646,
0.0527244806,
0.2906712592,
0.1994039118,
0.0168560091,
-0.1140230075,
-0.1711847633,
0.2523235977,
-0.1742708385,
0.0158358086,
-0.3120676577,
0.2289431244,
0.1822359711,
0.0388923995,
0.5452495813,
-0.1949207187,
0.1702247858,
0.1145872623,
0.2919920981,
-0.3564123809,
0.0131856529,
0.1363897771,
-0.0121409949,
-0.1282096505,
0.0647351444,
0.191334039,
-0.1645384431,
0.1727175862,
0.0361659341,
0.4443295002,
-0.1137610525,
0.0333958864,
0.3205937743,
0.1102306694,
0.0073839487,
0.1503522247,
0.0869142488,
0.1049037129,
0.3699614108,
-0.3519084752,
0.334184438,
-0.0292459019,
0.1960639805,
-0.0807115883,
-0.4635887146,
-0.0132801132,
-0.0271062255,
-0.0280077495,
-0.0641295537,
-0.0836860985,
0.2307622284,
-0.0578369424,
-0.2075791508,
-0.3942587972,
0.2716930807,
-0.1383716315,
-0.0168739967,
-0.2087453455,
-0.1575704664,
-0.3138842285,
0.0200665463,
0.0944762602,
-0.2163675278,
0.2768873274,
0.1739005297,
-0.067418538,
-0.2864429951,
-0.0354460292,
0.3620599806,
0.007548546,
-0.3814492524,
0.2536883354,
0.2413001657,
-0.1637511998,
0.1019425914,
0.2105300426,
0.3905054033,
0.3419497907,
0.0518309772,
0.1003483161,
0.0410619378,
-0.175566867,
-0.0525477864,
0.2474571466,
0.1228799969,
0.2133717984,
0.3228824139,
0.2559883893,
-0.2055214345,
-0.2537413836,
-0.1055226848,
0.1573280245,
-0.0536225252,
0.3031085134,
-0.332768321,
-0.0193310678,
-0.3722389042,
0.1489564478,
-0.5131070018,
0.0265103932,
0.3228520751,
-0.1077061892,
0.1639062911,
0.0533328578,
0.0815824196,
-0.3227348924,
0.5315329432,
0.3320508897,
0.1947544068,
-0.4337193072,
-0.3740607798,
-0.7417868972,
-0.0608784445,
-0.206008777,
0.0245662201,
-0.1929232776,
0.1862427443,
-0.1321681887,
0.0375400968,
0.1825463772,
0.2190938592,
0.2363611609,
0.2899665833,
-0.2522948682,
-0.2005007416,
0.0371853001,
0.2285677046,
0.0390392765,
-0.4399994612,
0.1195399612,
-0.3286368847,
0.1335947812,
-0.0845857188,
-0.2835856974,
0.14017573,
0.0447461195,
0.3270392418,
0.1665534824,
0.654297173,
-0.0836462975,
-0.1344574541,
-0.3480278552,
-0.1684509069,
-0.1131032109,
0.1500906944,
0.210629642,
0.354398191,
-0.1114973351,
0.3759312332,
-0.3795743585,
0.0954520926,
-0.0690873116,
-0.1211291477,
-0.2700437903,
-0.1315341294,
-0.1551491618,
0.1941407025,
0.2851370871,
0.1061911136,
-0.0925375819,
-0.0111997686,
-0.1500885934,
-0.2279428989,
0.5045259595,
-0.3369370401,
-0.3883256316,
-0.0437306464,
0.1152145118,
0.0646310449,
0.2162812203,
-0.2958244383,
0.2166942507,
0.3361884058,
-0.0963059142,
-0.1000958234,
0.2369075269,
0.0455229618,
0.1424681544,
0.0629596561,
-0.0166320577,
0.0973838493,
-0.2265191525,
-0.0544898137,
-0.2047988325
] |
https://github.com/huggingface/datasets/issues/1286 | [libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): Aborted | I remember also getting the same issue for several other translation datasets like all the iwslt2017 group, this is blokcing me and I really need to fix it and I was wondering if you have an idea on this. @lhoestq thanks,. | Hi
I am getting this error when evaluating on wmt16-ro-en using finetune_trainer.py of huggingface repo. thank for your help
{'epoch': 20.0}
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:16<00:00, 1.22it/s]
12/08/2020 10:41:19 - INFO - seq2seq.trainers.trainer - Saving model checkpoint to outputs/experiment/joint/finetune/lr-2e-5
12/08/2020 10:41:24 - INFO - __main__ - {'wmt16-en-ro': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 1998), 'qnli': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 5462), 'scitail': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 1303)}
12/08/2020 10:41:24 - INFO - __main__ - *** Evaluate ***
12/08/2020 10:41:24 - INFO - seq2seq.utils.utils - using task specific params for wmt16-en-ro: {'max_length': 300, 'num_beams': 4}
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - ***** Running Evaluation *****
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - Num examples = 1998
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - Batch size = 64
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 32/32 [00:37<00:00, 1.19s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
Aborted
| 41 | [libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): Aborted
Hi
I am getting this error when evaluating on wmt16-ro-en using finetune_trainer.py of huggingface repo. thank for your help
{'epoch': 20.0}
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:16<00:00, 1.22it/s]
12/08/2020 10:41:19 - INFO - seq2seq.trainers.trainer - Saving model checkpoint to outputs/experiment/joint/finetune/lr-2e-5
12/08/2020 10:41:24 - INFO - __main__ - {'wmt16-en-ro': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 1998), 'qnli': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 5462), 'scitail': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 1303)}
12/08/2020 10:41:24 - INFO - __main__ - *** Evaluate ***
12/08/2020 10:41:24 - INFO - seq2seq.utils.utils - using task specific params for wmt16-en-ro: {'max_length': 300, 'num_beams': 4}
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - ***** Running Evaluation *****
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - Num examples = 1998
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - Batch size = 64
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 32/32 [00:37<00:00, 1.19s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
Aborted
I remember also getting the same issue for several other translation datasets like all the iwslt2017 group, this is blokcing me and I really need to fix it and I was wondering if you have an idea on this. @lhoestq thanks,. | [
-0.0197354052,
-0.7191826701,
0.0039324821,
0.349367857,
0.4842422307,
0.0076736747,
0.242444396,
0.1216882989,
-0.2513459325,
0.3279395998,
-0.0821482614,
-0.1225549281,
-0.121334061,
0.3986017108,
0.0242617242,
-0.255679369,
-0.0995946005,
0.0782152489,
-0.3232805729,
0.1850418895,
-0.0975959972,
0.2666341066,
-0.3790645301,
0.2954922318,
-0.0773467645,
0.0884473473,
0.1073487177,
0.0845447555,
-0.0165825766,
-0.3517344296,
0.0590411983,
-0.0919297561,
-0.308915168,
0.3623275459,
-0.0001231714,
-0.1029600054,
0.2742361128,
0.0443344228,
-0.0298559424,
-0.1064274013,
0.2643368244,
0.5919190645,
-0.1285632849,
0.1556288749,
-0.1199963391,
0.0390062593,
0.1319609135,
-0.0262200981,
0.2547328472,
0.2040432692,
0.1139890328,
0.3572777212,
0.407677114,
0.0077054151,
-0.0644371808,
-0.0471210517,
-0.2066649497,
0.1545077413,
0.065721117,
-0.1996355504,
0.1090155989,
-0.0004498525,
0.1906786114,
-0.0334957726,
-0.2198649943,
-0.3123976588,
-0.0370122492,
-0.457115531,
0.0150994239,
0.4477548301,
-0.0995780975,
-0.298966974,
-0.1321323365,
0.2411862314,
0.0361542441,
-0.7871572971,
0.0136454264,
0.1679368466,
-0.0502243154,
0.2885324359,
-0.1375089288,
0.1263263524,
-0.2918358445,
0.016448753,
-0.0907558501,
0.296466291,
-0.198556304,
0.2684499919,
0.3229809105,
0.1940049231,
-0.3849183917,
0.1892253906,
0.0081452243,
0.1069087535,
-0.3058025837,
-0.2175876647,
0.1347347945,
0.0532117821,
0.2911433578,
0.1250616908,
-0.0492139086,
0.0266519003,
-0.0314312242,
0.1974626184,
0.2514951527,
-0.0322243311,
0.0891962573,
0.1261574328,
0.1575365365,
0.5037890673,
0.0537348054,
0.2031766921,
0.0966271758,
-0.2018551826,
0.0816627443,
-0.0702102333,
0.5441355109,
-0.1696139127,
-0.596849978,
0.4957830012,
-0.4942745268,
-0.008591448,
0.2324091345,
0.4670404792,
-0.1604337692,
0.0753959194,
0.2514837682,
-0.1050435752,
0.0336376503,
0.0345130786,
-0.0803705901,
0.2207056582,
0.1228924021,
0.2221152633,
-0.1487662196,
-0.4933038354,
0.1599143296,
-0.1897885352,
0.290317446,
-0.6953831911,
-0.2288499027,
-0.3666120768,
-0.0604083315,
0.1137856469,
-0.1019290462,
-0.1594460011,
0.2681771219,
0.0848984197,
-0.0130575234,
0.0232957918,
0.233474642,
-0.3981199861,
0.1256913841,
0.1727492511,
-0.1056276262,
0.1610926688,
0.0997461751,
-0.0547136739,
-0.0375443473,
0.211003527,
0.081784986,
-0.0233551003,
-0.5620620847,
0.0634884685,
0.2465738505,
0.3047663867,
0.0822413266,
-0.0770294815,
0.1512784362,
-0.0502389893,
0.0543233082,
0.4209914505,
-0.0538989827,
0.4664916992,
-0.2711000443,
0.177083075,
0.2772977054,
-0.3652854562,
-0.0003141716,
0.1826031059,
-0.2375143319,
0.1117426604,
-0.2652017176,
-0.4663341045,
-0.1654589772,
-0.1183406636,
0.1349782348,
-0.0789417624,
-0.2356957793,
-0.0736635104,
-0.3157055974,
-0.0500991046,
0.2459150404,
0.1108271182,
0.0505060554,
-0.2129728794,
0.1019256189,
-0.0896833763,
0.2275956571,
0.00584776,
-0.2316600978,
0.1115673557,
0.440787524,
-0.0369519182,
-0.0522976443,
-0.1141530871,
-0.1167193949,
0.1146955714,
-0.0951113477,
0.2058558464,
0.2640617788,
-0.0140006356,
-0.2227888256,
0.3215105534,
-0.2788104117,
-0.2408591956,
0.1297050714,
-0.0126401894,
-0.117405735,
0.0466667414,
0.0669542849,
-0.0052325125,
-0.5102659464,
0.1701667309,
0.1292891949,
0.0479548089,
-0.4098981023,
-0.0345079154,
-0.0219769347,
0.1678377688,
0.0930052027,
-0.2305414826,
-0.0614777543,
0.4744261801,
-0.0609406345,
0.1962463409,
-0.0178824365,
-0.2281218022,
-0.0191678982,
-0.6979165673,
-0.3184908926,
-0.0092400555,
0.182344839,
-0.1330953538,
0.4334766567,
0.2950306237,
0.1894214302,
-0.0313177817,
0.1306532621,
-0.1452958286,
-0.1054136306,
-0.0241775773,
-0.1970707774,
-0.0412809066,
0.4775481522,
0.0791637748,
-0.0833146051,
-0.0907502174,
-0.5611175299,
-0.1841320246,
0.3183329701,
-0.2006357461,
0.0832457691,
0.2185397893,
0.298620522,
-0.1066378504,
-0.1744055301,
-0.2389481813,
0.4070248008,
-0.0666785762,
-0.0943468288,
0.3965405226,
-0.18294397,
0.1772943437,
0.3061523736,
0.1469934732,
0.2547307312,
0.3355362713,
0.0759045035,
0.054832235,
-0.340634048,
0.1482568681,
-0.1149554774,
0.2089341134,
-0.204527393,
0.2236367315,
-0.2222566903,
0.1700030714,
-0.2625822723,
-0.2926513553,
-0.1523293853,
-0.0743207857,
0.0207593273,
0.3121845126,
0.1147069633,
0.2348940969,
0.3013082147,
0.2710024118,
0.1796742231,
0.2460693121,
0.0581643805,
0.1148112267,
-0.2809874415,
-0.0713953152,
0.4093819857,
-0.3983356953,
0.4378203452,
0.0031492212,
-0.3976992071,
-0.1845487207,
-0.3869083822,
0.2667298913,
-0.3574427962,
0.4122445285,
0.2349895239,
0.0989026502,
0.2883793414,
-0.0820785835,
0.2549665868,
-0.1147716865,
-0.2736464143,
0.1317068338,
0.0489209034,
-0.050488878,
-0.1470927894,
-0.1372157037,
-0.0760080367,
-0.1587285548,
0.4361135662,
0.0166942701,
0.2049041837,
0.3152821064,
0.0969092399,
0.2270753086,
-0.0253572408,
0.1294410378,
-0.3533501029,
-0.2036491036,
-0.0627005547,
0.0351994708,
-0.2237658203,
-0.0332904495,
0.0955418572,
0.3138405681,
-0.115697898,
-0.3986231387,
-0.253906399,
0.2589060962,
-0.401181668,
0.0286345314,
-0.0587615855,
0.2250743508,
-0.0227606203,
0.0023585733,
0.1034688503,
-0.1657689214,
0.2917425931,
0.001456417,
0.4208349884,
-0.058271151,
0.4073517025,
0.1907380521,
0.2507789433,
0.221879214,
-0.1074184552,
0.2332934737,
-0.0760881677,
0.2300226241,
0.062693432,
-0.2186153382,
0.1225990802,
-0.1815153658,
-0.0678679496,
0.2153836638,
-0.2848356366,
0.1016196609,
-0.2425626069,
0.3786379695,
-0.392598182,
-0.2305805534,
-0.0728004426,
0.0848510489,
0.2980444431,
-0.2183032483,
-0.1612261236,
0.3346332014,
0.1729969531,
0.164960742,
0.1857610047,
-0.0097198989,
-0.2947641909,
0.1768288761,
-0.4341130555,
-0.1974517405,
0.2037676275,
0.1779194474,
0.3842517138,
-0.1591309905,
-0.1912720054,
0.0965436921,
-0.3532339036,
0.2157045007,
-0.1090003178,
0.1710741371,
-0.019114323,
-0.2454839498,
0.0143332975,
-0.1819862276,
-0.2506859004,
-0.1394033283,
-0.0508335717,
0.2705191374,
-0.4435863793,
-0.0580345392,
0.9266170263,
-0.0307042487,
-0.202793628,
-0.0545090586,
-0.3822517395,
-0.3325397968,
-0.2178064138,
0.3268853128,
0.0803601071,
0.1595795006,
-0.2594972551,
0.0547468141,
0.1613204032,
-0.0796453133,
0.1856284738,
0.018070193,
-0.1477719694,
-0.2234718055,
-0.0046392563,
-0.0809063688,
-0.2214634567,
0.3577401042,
0.0663454458,
0.1223880574,
0.0403789692,
-0.14503254,
0.2732551992,
0.2892642319,
0.4261301458,
-0.2185796201,
0.2583727241,
-0.1215012744,
0.2301147282,
-0.2938075364,
0.1149602234,
0.55774647,
0.1897826046,
-0.3376103938,
0.3320046067,
0.180674687,
-0.336096257,
0.1217750609,
0.473772347,
0.2906241119,
-0.0346816294,
0.0033716885,
0.0544297658,
1.076791048,
-0.1063170508,
-0.1410202831,
0.3265562057,
-0.2886446714,
-0.0629898682,
0.1711464524,
0.0744692981,
-0.3738824725,
-0.2014197856,
-0.1141920015,
-0.09973149,
0.182915628,
-0.5049664974,
-0.4686191678,
0.2706862688,
0.2902288437,
0.0473941229,
0.1362041533,
0.0351534374,
0.0513240583,
0.0296752322,
-0.1473929286,
0.0757581666,
-0.1771011204,
0.4955220819,
-0.3521039784,
0.0060893632,
0.142514348,
-0.2339376211,
-0.548982203,
0.1974164546,
-0.7597703338,
-0.2172416002,
0.1435347199,
-0.0956568271,
0.2164646834,
-0.0425303169,
0.1211303324,
0.236987412,
-0.0984940231,
-0.0710495338,
-0.0660434365,
-0.2263093591,
-0.2782444358,
0.0803147927,
0.148842901,
-0.1012303382,
-0.392250061,
0.2363768071,
-0.0378924496,
-0.1245237142,
0.2563017607,
-0.1621964276,
0.0216448382,
-0.1495988667,
-0.2880113125,
0.1166076809,
-0.4050697088,
-0.3859924078,
0.0441254713,
-0.084271051,
-0.6793956757,
-0.0104839364,
0.2277967483,
-0.2703295052,
0.0709383041,
0.3031379282,
-0.4074923098,
0.4476475716,
0.2836991251,
0.3070382774,
-0.045653332,
-0.2508760691,
-0.2475801557,
-0.0962148011,
-0.2398614585,
0.1254097223,
-0.1179651022,
0.0117819961,
-0.0179662164,
0.3521891236,
0.2009032965,
0.1305581778,
-0.04211393,
-0.1326913983,
-0.4322312772,
0.1133478656,
0.0895268396,
0.3084597588,
0.0070491941,
0.8161122203,
0.0050010807,
0.1381086409,
-0.2168498039,
0.1537142545,
-0.547508955,
0.1356403679,
0.5144498348,
-0.3967115283,
0.2740749419,
0.1211526543,
0.1307330281,
0.3177926242,
-0.2503612638,
-0.1576968879,
-0.0281465948,
0.146455735,
0.1394555569,
-0.2126523405,
0.0227945242,
0.1708484739,
0.0856937766,
0.1691996008,
0.014253418,
-0.1359176934,
0.0720581934,
0.0227147583,
0.517164886,
0.0662892684,
-0.1335105151,
-0.3067294955,
-0.0594980754,
0.2850827575,
0.1547495276,
-0.0466247015,
-0.0049139634,
-0.3229971528,
-0.0157681461,
0.0993028581,
0.2712794244,
-0.0949809626,
0.1953768432,
-0.2645510435,
-0.3805356622,
-0.2151184976,
0.5645757318,
0.3280045986,
-0.3266963959,
0.0865276009,
-0.0304162242,
0.0183897465,
-0.2668766081,
0.1713371426,
-0.1892540753,
-0.1514425576,
-0.0306953993,
0.5003802776,
-0.104754895,
0.2028654367,
0.0371595994,
0.2137016058,
-0.0002260201,
-0.1407930255,
-0.0896460116,
0.031013323,
-0.2003611624,
0.1695739329,
0.1094608009,
-0.1566505134,
0.3708168864,
-0.3239771426,
-0.0258682072,
0.3565203846,
-0.5007629991,
0.3787527978,
0.1755800247,
-0.2727210224,
0.0502876304,
0.2554656863,
0.0517260954,
0.1064758822,
0.05746378,
0.5036069155,
0.0453849025,
-0.303970933,
-0.0631593764,
0.4623817205,
-0.160701558,
-0.2788871527,
0.1073018909,
-0.0637272149,
-0.3115139902,
0.1346605718,
0.1420977712,
-0.0270741004,
0.0633941889,
0.0979785398,
-0.3087844551,
-0.1646399498,
-0.401157409,
0.220776543,
0.236518234,
-0.2379700989,
0.5151308179,
0.2662870288,
-0.0371029265,
-0.2489866614,
0.7079609036,
0.3704006076,
-0.044673983,
-0.1711801142,
0.1376730502,
-0.2246431112,
0.1120397449,
0.2599116564,
-0.0763737261,
0.0478594378,
-0.0139042344,
0.1707176566,
0.0092954617,
-0.0898856446,
0.1108519286,
0.133969456,
-0.3126705587,
-0.2695254683,
0.1654574126,
0.0147745386,
-0.0065953466,
-0.488879323,
0.3813575804,
-0.2600223124,
0.6083683968,
0.3633645773,
-0.0167718884,
0.1414656937,
0.2023962438,
0.042767372,
0.2453742325,
0.3704007864,
0.2853345573,
-0.1474466175,
-0.3849027455,
-0.331081152,
-0.3185828328,
0.2492610216,
-0.0115357172,
0.4620016515,
0.2291845679,
0.1349524707,
-0.228945002,
0.0339673609,
0.4562624693,
0.2448747158,
0.064800851,
0.126974985,
-0.2102719247,
0.0880673602,
-0.1616376489,
-0.2616664171,
0.0603455752,
-0.1920471489,
0.1918264925,
-0.2449935824,
-0.038589485,
-0.0182408467,
0.0576571375,
-0.4193947315,
-0.0711655989,
0.1217799187,
-0.071778059,
-0.0353247225,
-0.147437349,
-0.3151299655,
0.0292597357,
-0.0187703446,
-0.0378770865,
0.2944748998,
0.077545844,
-0.0054252287,
0.1476281732,
-0.4997341037,
-0.2743058801,
0.0258235019,
0.440697968,
-0.2658596933,
-0.2488071471,
0.181184411,
0.0307604168,
-0.2400043309,
0.1320653111,
0.3002212048,
0.0648869127,
0.0918277279,
-0.5590920448,
-0.1621072292,
0.6869650483,
0.3171428144,
0.0053970381,
-0.1448840052,
0.10809692,
0.2140951157,
-0.2759186327,
-0.8308288455,
0.0773528069,
0.1110791489,
0.0343417041,
-0.3358498812,
0.4130387008,
-0.3965507746,
0.0305419955,
0.1469562352,
0.2626536191,
0.2095077485,
0.0917729065,
0.3162973523,
-0.1423852295
] |
https://github.com/huggingface/datasets/issues/1286 | [libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): Aborted | maybe there is an empty line or something inside these datasets? could you tell me why this is happening? thanks | Hi
I am getting this error when evaluating on wmt16-ro-en using finetune_trainer.py of huggingface repo. thank for your help
{'epoch': 20.0}
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:16<00:00, 1.22it/s]
12/08/2020 10:41:19 - INFO - seq2seq.trainers.trainer - Saving model checkpoint to outputs/experiment/joint/finetune/lr-2e-5
12/08/2020 10:41:24 - INFO - __main__ - {'wmt16-en-ro': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 1998), 'qnli': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 5462), 'scitail': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 1303)}
12/08/2020 10:41:24 - INFO - __main__ - *** Evaluate ***
12/08/2020 10:41:24 - INFO - seq2seq.utils.utils - using task specific params for wmt16-en-ro: {'max_length': 300, 'num_beams': 4}
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - ***** Running Evaluation *****
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - Num examples = 1998
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - Batch size = 64
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 32/32 [00:37<00:00, 1.19s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
Aborted
| 20 | [libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): Aborted
Hi
I am getting this error when evaluating on wmt16-ro-en using finetune_trainer.py of huggingface repo. thank for your help
{'epoch': 20.0}
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:16<00:00, 1.22it/s]
12/08/2020 10:41:19 - INFO - seq2seq.trainers.trainer - Saving model checkpoint to outputs/experiment/joint/finetune/lr-2e-5
12/08/2020 10:41:24 - INFO - __main__ - {'wmt16-en-ro': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 1998), 'qnli': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 5462), 'scitail': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 1303)}
12/08/2020 10:41:24 - INFO - __main__ - *** Evaluate ***
12/08/2020 10:41:24 - INFO - seq2seq.utils.utils - using task specific params for wmt16-en-ro: {'max_length': 300, 'num_beams': 4}
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - ***** Running Evaluation *****
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - Num examples = 1998
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - Batch size = 64
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 32/32 [00:37<00:00, 1.19s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
Aborted
maybe there is an empty line or something inside these datasets? could you tell me why this is happening? thanks | [
-0.0197354052,
-0.7191826701,
0.0039324821,
0.349367857,
0.4842422307,
0.0076736747,
0.242444396,
0.1216882989,
-0.2513459325,
0.3279395998,
-0.0821482614,
-0.1225549281,
-0.121334061,
0.3986017108,
0.0242617242,
-0.255679369,
-0.0995946005,
0.0782152489,
-0.3232805729,
0.1850418895,
-0.0975959972,
0.2666341066,
-0.3790645301,
0.2954922318,
-0.0773467645,
0.0884473473,
0.1073487177,
0.0845447555,
-0.0165825766,
-0.3517344296,
0.0590411983,
-0.0919297561,
-0.308915168,
0.3623275459,
-0.0001231714,
-0.1029600054,
0.2742361128,
0.0443344228,
-0.0298559424,
-0.1064274013,
0.2643368244,
0.5919190645,
-0.1285632849,
0.1556288749,
-0.1199963391,
0.0390062593,
0.1319609135,
-0.0262200981,
0.2547328472,
0.2040432692,
0.1139890328,
0.3572777212,
0.407677114,
0.0077054151,
-0.0644371808,
-0.0471210517,
-0.2066649497,
0.1545077413,
0.065721117,
-0.1996355504,
0.1090155989,
-0.0004498525,
0.1906786114,
-0.0334957726,
-0.2198649943,
-0.3123976588,
-0.0370122492,
-0.457115531,
0.0150994239,
0.4477548301,
-0.0995780975,
-0.298966974,
-0.1321323365,
0.2411862314,
0.0361542441,
-0.7871572971,
0.0136454264,
0.1679368466,
-0.0502243154,
0.2885324359,
-0.1375089288,
0.1263263524,
-0.2918358445,
0.016448753,
-0.0907558501,
0.296466291,
-0.198556304,
0.2684499919,
0.3229809105,
0.1940049231,
-0.3849183917,
0.1892253906,
0.0081452243,
0.1069087535,
-0.3058025837,
-0.2175876647,
0.1347347945,
0.0532117821,
0.2911433578,
0.1250616908,
-0.0492139086,
0.0266519003,
-0.0314312242,
0.1974626184,
0.2514951527,
-0.0322243311,
0.0891962573,
0.1261574328,
0.1575365365,
0.5037890673,
0.0537348054,
0.2031766921,
0.0966271758,
-0.2018551826,
0.0816627443,
-0.0702102333,
0.5441355109,
-0.1696139127,
-0.596849978,
0.4957830012,
-0.4942745268,
-0.008591448,
0.2324091345,
0.4670404792,
-0.1604337692,
0.0753959194,
0.2514837682,
-0.1050435752,
0.0336376503,
0.0345130786,
-0.0803705901,
0.2207056582,
0.1228924021,
0.2221152633,
-0.1487662196,
-0.4933038354,
0.1599143296,
-0.1897885352,
0.290317446,
-0.6953831911,
-0.2288499027,
-0.3666120768,
-0.0604083315,
0.1137856469,
-0.1019290462,
-0.1594460011,
0.2681771219,
0.0848984197,
-0.0130575234,
0.0232957918,
0.233474642,
-0.3981199861,
0.1256913841,
0.1727492511,
-0.1056276262,
0.1610926688,
0.0997461751,
-0.0547136739,
-0.0375443473,
0.211003527,
0.081784986,
-0.0233551003,
-0.5620620847,
0.0634884685,
0.2465738505,
0.3047663867,
0.0822413266,
-0.0770294815,
0.1512784362,
-0.0502389893,
0.0543233082,
0.4209914505,
-0.0538989827,
0.4664916992,
-0.2711000443,
0.177083075,
0.2772977054,
-0.3652854562,
-0.0003141716,
0.1826031059,
-0.2375143319,
0.1117426604,
-0.2652017176,
-0.4663341045,
-0.1654589772,
-0.1183406636,
0.1349782348,
-0.0789417624,
-0.2356957793,
-0.0736635104,
-0.3157055974,
-0.0500991046,
0.2459150404,
0.1108271182,
0.0505060554,
-0.2129728794,
0.1019256189,
-0.0896833763,
0.2275956571,
0.00584776,
-0.2316600978,
0.1115673557,
0.440787524,
-0.0369519182,
-0.0522976443,
-0.1141530871,
-0.1167193949,
0.1146955714,
-0.0951113477,
0.2058558464,
0.2640617788,
-0.0140006356,
-0.2227888256,
0.3215105534,
-0.2788104117,
-0.2408591956,
0.1297050714,
-0.0126401894,
-0.117405735,
0.0466667414,
0.0669542849,
-0.0052325125,
-0.5102659464,
0.1701667309,
0.1292891949,
0.0479548089,
-0.4098981023,
-0.0345079154,
-0.0219769347,
0.1678377688,
0.0930052027,
-0.2305414826,
-0.0614777543,
0.4744261801,
-0.0609406345,
0.1962463409,
-0.0178824365,
-0.2281218022,
-0.0191678982,
-0.6979165673,
-0.3184908926,
-0.0092400555,
0.182344839,
-0.1330953538,
0.4334766567,
0.2950306237,
0.1894214302,
-0.0313177817,
0.1306532621,
-0.1452958286,
-0.1054136306,
-0.0241775773,
-0.1970707774,
-0.0412809066,
0.4775481522,
0.0791637748,
-0.0833146051,
-0.0907502174,
-0.5611175299,
-0.1841320246,
0.3183329701,
-0.2006357461,
0.0832457691,
0.2185397893,
0.298620522,
-0.1066378504,
-0.1744055301,
-0.2389481813,
0.4070248008,
-0.0666785762,
-0.0943468288,
0.3965405226,
-0.18294397,
0.1772943437,
0.3061523736,
0.1469934732,
0.2547307312,
0.3355362713,
0.0759045035,
0.054832235,
-0.340634048,
0.1482568681,
-0.1149554774,
0.2089341134,
-0.204527393,
0.2236367315,
-0.2222566903,
0.1700030714,
-0.2625822723,
-0.2926513553,
-0.1523293853,
-0.0743207857,
0.0207593273,
0.3121845126,
0.1147069633,
0.2348940969,
0.3013082147,
0.2710024118,
0.1796742231,
0.2460693121,
0.0581643805,
0.1148112267,
-0.2809874415,
-0.0713953152,
0.4093819857,
-0.3983356953,
0.4378203452,
0.0031492212,
-0.3976992071,
-0.1845487207,
-0.3869083822,
0.2667298913,
-0.3574427962,
0.4122445285,
0.2349895239,
0.0989026502,
0.2883793414,
-0.0820785835,
0.2549665868,
-0.1147716865,
-0.2736464143,
0.1317068338,
0.0489209034,
-0.050488878,
-0.1470927894,
-0.1372157037,
-0.0760080367,
-0.1587285548,
0.4361135662,
0.0166942701,
0.2049041837,
0.3152821064,
0.0969092399,
0.2270753086,
-0.0253572408,
0.1294410378,
-0.3533501029,
-0.2036491036,
-0.0627005547,
0.0351994708,
-0.2237658203,
-0.0332904495,
0.0955418572,
0.3138405681,
-0.115697898,
-0.3986231387,
-0.253906399,
0.2589060962,
-0.401181668,
0.0286345314,
-0.0587615855,
0.2250743508,
-0.0227606203,
0.0023585733,
0.1034688503,
-0.1657689214,
0.2917425931,
0.001456417,
0.4208349884,
-0.058271151,
0.4073517025,
0.1907380521,
0.2507789433,
0.221879214,
-0.1074184552,
0.2332934737,
-0.0760881677,
0.2300226241,
0.062693432,
-0.2186153382,
0.1225990802,
-0.1815153658,
-0.0678679496,
0.2153836638,
-0.2848356366,
0.1016196609,
-0.2425626069,
0.3786379695,
-0.392598182,
-0.2305805534,
-0.0728004426,
0.0848510489,
0.2980444431,
-0.2183032483,
-0.1612261236,
0.3346332014,
0.1729969531,
0.164960742,
0.1857610047,
-0.0097198989,
-0.2947641909,
0.1768288761,
-0.4341130555,
-0.1974517405,
0.2037676275,
0.1779194474,
0.3842517138,
-0.1591309905,
-0.1912720054,
0.0965436921,
-0.3532339036,
0.2157045007,
-0.1090003178,
0.1710741371,
-0.019114323,
-0.2454839498,
0.0143332975,
-0.1819862276,
-0.2506859004,
-0.1394033283,
-0.0508335717,
0.2705191374,
-0.4435863793,
-0.0580345392,
0.9266170263,
-0.0307042487,
-0.202793628,
-0.0545090586,
-0.3822517395,
-0.3325397968,
-0.2178064138,
0.3268853128,
0.0803601071,
0.1595795006,
-0.2594972551,
0.0547468141,
0.1613204032,
-0.0796453133,
0.1856284738,
0.018070193,
-0.1477719694,
-0.2234718055,
-0.0046392563,
-0.0809063688,
-0.2214634567,
0.3577401042,
0.0663454458,
0.1223880574,
0.0403789692,
-0.14503254,
0.2732551992,
0.2892642319,
0.4261301458,
-0.2185796201,
0.2583727241,
-0.1215012744,
0.2301147282,
-0.2938075364,
0.1149602234,
0.55774647,
0.1897826046,
-0.3376103938,
0.3320046067,
0.180674687,
-0.336096257,
0.1217750609,
0.473772347,
0.2906241119,
-0.0346816294,
0.0033716885,
0.0544297658,
1.076791048,
-0.1063170508,
-0.1410202831,
0.3265562057,
-0.2886446714,
-0.0629898682,
0.1711464524,
0.0744692981,
-0.3738824725,
-0.2014197856,
-0.1141920015,
-0.09973149,
0.182915628,
-0.5049664974,
-0.4686191678,
0.2706862688,
0.2902288437,
0.0473941229,
0.1362041533,
0.0351534374,
0.0513240583,
0.0296752322,
-0.1473929286,
0.0757581666,
-0.1771011204,
0.4955220819,
-0.3521039784,
0.0060893632,
0.142514348,
-0.2339376211,
-0.548982203,
0.1974164546,
-0.7597703338,
-0.2172416002,
0.1435347199,
-0.0956568271,
0.2164646834,
-0.0425303169,
0.1211303324,
0.236987412,
-0.0984940231,
-0.0710495338,
-0.0660434365,
-0.2263093591,
-0.2782444358,
0.0803147927,
0.148842901,
-0.1012303382,
-0.392250061,
0.2363768071,
-0.0378924496,
-0.1245237142,
0.2563017607,
-0.1621964276,
0.0216448382,
-0.1495988667,
-0.2880113125,
0.1166076809,
-0.4050697088,
-0.3859924078,
0.0441254713,
-0.084271051,
-0.6793956757,
-0.0104839364,
0.2277967483,
-0.2703295052,
0.0709383041,
0.3031379282,
-0.4074923098,
0.4476475716,
0.2836991251,
0.3070382774,
-0.045653332,
-0.2508760691,
-0.2475801557,
-0.0962148011,
-0.2398614585,
0.1254097223,
-0.1179651022,
0.0117819961,
-0.0179662164,
0.3521891236,
0.2009032965,
0.1305581778,
-0.04211393,
-0.1326913983,
-0.4322312772,
0.1133478656,
0.0895268396,
0.3084597588,
0.0070491941,
0.8161122203,
0.0050010807,
0.1381086409,
-0.2168498039,
0.1537142545,
-0.547508955,
0.1356403679,
0.5144498348,
-0.3967115283,
0.2740749419,
0.1211526543,
0.1307330281,
0.3177926242,
-0.2503612638,
-0.1576968879,
-0.0281465948,
0.146455735,
0.1394555569,
-0.2126523405,
0.0227945242,
0.1708484739,
0.0856937766,
0.1691996008,
0.014253418,
-0.1359176934,
0.0720581934,
0.0227147583,
0.517164886,
0.0662892684,
-0.1335105151,
-0.3067294955,
-0.0594980754,
0.2850827575,
0.1547495276,
-0.0466247015,
-0.0049139634,
-0.3229971528,
-0.0157681461,
0.0993028581,
0.2712794244,
-0.0949809626,
0.1953768432,
-0.2645510435,
-0.3805356622,
-0.2151184976,
0.5645757318,
0.3280045986,
-0.3266963959,
0.0865276009,
-0.0304162242,
0.0183897465,
-0.2668766081,
0.1713371426,
-0.1892540753,
-0.1514425576,
-0.0306953993,
0.5003802776,
-0.104754895,
0.2028654367,
0.0371595994,
0.2137016058,
-0.0002260201,
-0.1407930255,
-0.0896460116,
0.031013323,
-0.2003611624,
0.1695739329,
0.1094608009,
-0.1566505134,
0.3708168864,
-0.3239771426,
-0.0258682072,
0.3565203846,
-0.5007629991,
0.3787527978,
0.1755800247,
-0.2727210224,
0.0502876304,
0.2554656863,
0.0517260954,
0.1064758822,
0.05746378,
0.5036069155,
0.0453849025,
-0.303970933,
-0.0631593764,
0.4623817205,
-0.160701558,
-0.2788871527,
0.1073018909,
-0.0637272149,
-0.3115139902,
0.1346605718,
0.1420977712,
-0.0270741004,
0.0633941889,
0.0979785398,
-0.3087844551,
-0.1646399498,
-0.401157409,
0.220776543,
0.236518234,
-0.2379700989,
0.5151308179,
0.2662870288,
-0.0371029265,
-0.2489866614,
0.7079609036,
0.3704006076,
-0.044673983,
-0.1711801142,
0.1376730502,
-0.2246431112,
0.1120397449,
0.2599116564,
-0.0763737261,
0.0478594378,
-0.0139042344,
0.1707176566,
0.0092954617,
-0.0898856446,
0.1108519286,
0.133969456,
-0.3126705587,
-0.2695254683,
0.1654574126,
0.0147745386,
-0.0065953466,
-0.488879323,
0.3813575804,
-0.2600223124,
0.6083683968,
0.3633645773,
-0.0167718884,
0.1414656937,
0.2023962438,
0.042767372,
0.2453742325,
0.3704007864,
0.2853345573,
-0.1474466175,
-0.3849027455,
-0.331081152,
-0.3185828328,
0.2492610216,
-0.0115357172,
0.4620016515,
0.2291845679,
0.1349524707,
-0.228945002,
0.0339673609,
0.4562624693,
0.2448747158,
0.064800851,
0.126974985,
-0.2102719247,
0.0880673602,
-0.1616376489,
-0.2616664171,
0.0603455752,
-0.1920471489,
0.1918264925,
-0.2449935824,
-0.038589485,
-0.0182408467,
0.0576571375,
-0.4193947315,
-0.0711655989,
0.1217799187,
-0.071778059,
-0.0353247225,
-0.147437349,
-0.3151299655,
0.0292597357,
-0.0187703446,
-0.0378770865,
0.2944748998,
0.077545844,
-0.0054252287,
0.1476281732,
-0.4997341037,
-0.2743058801,
0.0258235019,
0.440697968,
-0.2658596933,
-0.2488071471,
0.181184411,
0.0307604168,
-0.2400043309,
0.1320653111,
0.3002212048,
0.0648869127,
0.0918277279,
-0.5590920448,
-0.1621072292,
0.6869650483,
0.3171428144,
0.0053970381,
-0.1448840052,
0.10809692,
0.2140951157,
-0.2759186327,
-0.8308288455,
0.0773528069,
0.1110791489,
0.0343417041,
-0.3358498812,
0.4130387008,
-0.3965507746,
0.0305419955,
0.1469562352,
0.2626536191,
0.2095077485,
0.0917729065,
0.3162973523,
-0.1423852295
] |
https://github.com/huggingface/datasets/issues/1286 | [libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): Aborted | I just checked and the wmt16 en-ro doesn't have empty lines
```python
from datasets import load_dataset
d = load_dataset("wmt16", "ro-en", split="train")
len(d) # 610320
len(d.filter(lambda x: len(x["translation"]["en"].strip()) > 0)) # 610320
len(d.filter(lambda x: len(x["translation"]["ro"].strip()) > 0)) # 610320
# also tested for split="validation" and "test"
```
Can you open an issue on the `transformers` repo ? also cc @sgugger | Hi
I am getting this error when evaluating on wmt16-ro-en using finetune_trainer.py of huggingface repo. thank for your help
{'epoch': 20.0}
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:16<00:00, 1.22it/s]
12/08/2020 10:41:19 - INFO - seq2seq.trainers.trainer - Saving model checkpoint to outputs/experiment/joint/finetune/lr-2e-5
12/08/2020 10:41:24 - INFO - __main__ - {'wmt16-en-ro': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 1998), 'qnli': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 5462), 'scitail': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 1303)}
12/08/2020 10:41:24 - INFO - __main__ - *** Evaluate ***
12/08/2020 10:41:24 - INFO - seq2seq.utils.utils - using task specific params for wmt16-en-ro: {'max_length': 300, 'num_beams': 4}
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - ***** Running Evaluation *****
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - Num examples = 1998
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - Batch size = 64
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 32/32 [00:37<00:00, 1.19s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
Aborted
| 59 | [libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): Aborted
Hi
I am getting this error when evaluating on wmt16-ro-en using finetune_trainer.py of huggingface repo. thank for your help
{'epoch': 20.0}
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:16<00:00, 1.22it/s]
12/08/2020 10:41:19 - INFO - seq2seq.trainers.trainer - Saving model checkpoint to outputs/experiment/joint/finetune/lr-2e-5
12/08/2020 10:41:24 - INFO - __main__ - {'wmt16-en-ro': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 1998), 'qnli': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 5462), 'scitail': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 1303)}
12/08/2020 10:41:24 - INFO - __main__ - *** Evaluate ***
12/08/2020 10:41:24 - INFO - seq2seq.utils.utils - using task specific params for wmt16-en-ro: {'max_length': 300, 'num_beams': 4}
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - ***** Running Evaluation *****
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - Num examples = 1998
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - Batch size = 64
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 32/32 [00:37<00:00, 1.19s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
Aborted
I just checked and the wmt16 en-ro doesn't have empty lines
```python
from datasets import load_dataset
d = load_dataset("wmt16", "ro-en", split="train")
len(d) # 610320
len(d.filter(lambda x: len(x["translation"]["en"].strip()) > 0)) # 610320
len(d.filter(lambda x: len(x["translation"]["ro"].strip()) > 0)) # 610320
# also tested for split="validation" and "test"
```
Can you open an issue on the `transformers` repo ? also cc @sgugger | [
-0.0197354052,
-0.7191826701,
0.0039324821,
0.349367857,
0.4842422307,
0.0076736747,
0.242444396,
0.1216882989,
-0.2513459325,
0.3279395998,
-0.0821482614,
-0.1225549281,
-0.121334061,
0.3986017108,
0.0242617242,
-0.255679369,
-0.0995946005,
0.0782152489,
-0.3232805729,
0.1850418895,
-0.0975959972,
0.2666341066,
-0.3790645301,
0.2954922318,
-0.0773467645,
0.0884473473,
0.1073487177,
0.0845447555,
-0.0165825766,
-0.3517344296,
0.0590411983,
-0.0919297561,
-0.308915168,
0.3623275459,
-0.0001231714,
-0.1029600054,
0.2742361128,
0.0443344228,
-0.0298559424,
-0.1064274013,
0.2643368244,
0.5919190645,
-0.1285632849,
0.1556288749,
-0.1199963391,
0.0390062593,
0.1319609135,
-0.0262200981,
0.2547328472,
0.2040432692,
0.1139890328,
0.3572777212,
0.407677114,
0.0077054151,
-0.0644371808,
-0.0471210517,
-0.2066649497,
0.1545077413,
0.065721117,
-0.1996355504,
0.1090155989,
-0.0004498525,
0.1906786114,
-0.0334957726,
-0.2198649943,
-0.3123976588,
-0.0370122492,
-0.457115531,
0.0150994239,
0.4477548301,
-0.0995780975,
-0.298966974,
-0.1321323365,
0.2411862314,
0.0361542441,
-0.7871572971,
0.0136454264,
0.1679368466,
-0.0502243154,
0.2885324359,
-0.1375089288,
0.1263263524,
-0.2918358445,
0.016448753,
-0.0907558501,
0.296466291,
-0.198556304,
0.2684499919,
0.3229809105,
0.1940049231,
-0.3849183917,
0.1892253906,
0.0081452243,
0.1069087535,
-0.3058025837,
-0.2175876647,
0.1347347945,
0.0532117821,
0.2911433578,
0.1250616908,
-0.0492139086,
0.0266519003,
-0.0314312242,
0.1974626184,
0.2514951527,
-0.0322243311,
0.0891962573,
0.1261574328,
0.1575365365,
0.5037890673,
0.0537348054,
0.2031766921,
0.0966271758,
-0.2018551826,
0.0816627443,
-0.0702102333,
0.5441355109,
-0.1696139127,
-0.596849978,
0.4957830012,
-0.4942745268,
-0.008591448,
0.2324091345,
0.4670404792,
-0.1604337692,
0.0753959194,
0.2514837682,
-0.1050435752,
0.0336376503,
0.0345130786,
-0.0803705901,
0.2207056582,
0.1228924021,
0.2221152633,
-0.1487662196,
-0.4933038354,
0.1599143296,
-0.1897885352,
0.290317446,
-0.6953831911,
-0.2288499027,
-0.3666120768,
-0.0604083315,
0.1137856469,
-0.1019290462,
-0.1594460011,
0.2681771219,
0.0848984197,
-0.0130575234,
0.0232957918,
0.233474642,
-0.3981199861,
0.1256913841,
0.1727492511,
-0.1056276262,
0.1610926688,
0.0997461751,
-0.0547136739,
-0.0375443473,
0.211003527,
0.081784986,
-0.0233551003,
-0.5620620847,
0.0634884685,
0.2465738505,
0.3047663867,
0.0822413266,
-0.0770294815,
0.1512784362,
-0.0502389893,
0.0543233082,
0.4209914505,
-0.0538989827,
0.4664916992,
-0.2711000443,
0.177083075,
0.2772977054,
-0.3652854562,
-0.0003141716,
0.1826031059,
-0.2375143319,
0.1117426604,
-0.2652017176,
-0.4663341045,
-0.1654589772,
-0.1183406636,
0.1349782348,
-0.0789417624,
-0.2356957793,
-0.0736635104,
-0.3157055974,
-0.0500991046,
0.2459150404,
0.1108271182,
0.0505060554,
-0.2129728794,
0.1019256189,
-0.0896833763,
0.2275956571,
0.00584776,
-0.2316600978,
0.1115673557,
0.440787524,
-0.0369519182,
-0.0522976443,
-0.1141530871,
-0.1167193949,
0.1146955714,
-0.0951113477,
0.2058558464,
0.2640617788,
-0.0140006356,
-0.2227888256,
0.3215105534,
-0.2788104117,
-0.2408591956,
0.1297050714,
-0.0126401894,
-0.117405735,
0.0466667414,
0.0669542849,
-0.0052325125,
-0.5102659464,
0.1701667309,
0.1292891949,
0.0479548089,
-0.4098981023,
-0.0345079154,
-0.0219769347,
0.1678377688,
0.0930052027,
-0.2305414826,
-0.0614777543,
0.4744261801,
-0.0609406345,
0.1962463409,
-0.0178824365,
-0.2281218022,
-0.0191678982,
-0.6979165673,
-0.3184908926,
-0.0092400555,
0.182344839,
-0.1330953538,
0.4334766567,
0.2950306237,
0.1894214302,
-0.0313177817,
0.1306532621,
-0.1452958286,
-0.1054136306,
-0.0241775773,
-0.1970707774,
-0.0412809066,
0.4775481522,
0.0791637748,
-0.0833146051,
-0.0907502174,
-0.5611175299,
-0.1841320246,
0.3183329701,
-0.2006357461,
0.0832457691,
0.2185397893,
0.298620522,
-0.1066378504,
-0.1744055301,
-0.2389481813,
0.4070248008,
-0.0666785762,
-0.0943468288,
0.3965405226,
-0.18294397,
0.1772943437,
0.3061523736,
0.1469934732,
0.2547307312,
0.3355362713,
0.0759045035,
0.054832235,
-0.340634048,
0.1482568681,
-0.1149554774,
0.2089341134,
-0.204527393,
0.2236367315,
-0.2222566903,
0.1700030714,
-0.2625822723,
-0.2926513553,
-0.1523293853,
-0.0743207857,
0.0207593273,
0.3121845126,
0.1147069633,
0.2348940969,
0.3013082147,
0.2710024118,
0.1796742231,
0.2460693121,
0.0581643805,
0.1148112267,
-0.2809874415,
-0.0713953152,
0.4093819857,
-0.3983356953,
0.4378203452,
0.0031492212,
-0.3976992071,
-0.1845487207,
-0.3869083822,
0.2667298913,
-0.3574427962,
0.4122445285,
0.2349895239,
0.0989026502,
0.2883793414,
-0.0820785835,
0.2549665868,
-0.1147716865,
-0.2736464143,
0.1317068338,
0.0489209034,
-0.050488878,
-0.1470927894,
-0.1372157037,
-0.0760080367,
-0.1587285548,
0.4361135662,
0.0166942701,
0.2049041837,
0.3152821064,
0.0969092399,
0.2270753086,
-0.0253572408,
0.1294410378,
-0.3533501029,
-0.2036491036,
-0.0627005547,
0.0351994708,
-0.2237658203,
-0.0332904495,
0.0955418572,
0.3138405681,
-0.115697898,
-0.3986231387,
-0.253906399,
0.2589060962,
-0.401181668,
0.0286345314,
-0.0587615855,
0.2250743508,
-0.0227606203,
0.0023585733,
0.1034688503,
-0.1657689214,
0.2917425931,
0.001456417,
0.4208349884,
-0.058271151,
0.4073517025,
0.1907380521,
0.2507789433,
0.221879214,
-0.1074184552,
0.2332934737,
-0.0760881677,
0.2300226241,
0.062693432,
-0.2186153382,
0.1225990802,
-0.1815153658,
-0.0678679496,
0.2153836638,
-0.2848356366,
0.1016196609,
-0.2425626069,
0.3786379695,
-0.392598182,
-0.2305805534,
-0.0728004426,
0.0848510489,
0.2980444431,
-0.2183032483,
-0.1612261236,
0.3346332014,
0.1729969531,
0.164960742,
0.1857610047,
-0.0097198989,
-0.2947641909,
0.1768288761,
-0.4341130555,
-0.1974517405,
0.2037676275,
0.1779194474,
0.3842517138,
-0.1591309905,
-0.1912720054,
0.0965436921,
-0.3532339036,
0.2157045007,
-0.1090003178,
0.1710741371,
-0.019114323,
-0.2454839498,
0.0143332975,
-0.1819862276,
-0.2506859004,
-0.1394033283,
-0.0508335717,
0.2705191374,
-0.4435863793,
-0.0580345392,
0.9266170263,
-0.0307042487,
-0.202793628,
-0.0545090586,
-0.3822517395,
-0.3325397968,
-0.2178064138,
0.3268853128,
0.0803601071,
0.1595795006,
-0.2594972551,
0.0547468141,
0.1613204032,
-0.0796453133,
0.1856284738,
0.018070193,
-0.1477719694,
-0.2234718055,
-0.0046392563,
-0.0809063688,
-0.2214634567,
0.3577401042,
0.0663454458,
0.1223880574,
0.0403789692,
-0.14503254,
0.2732551992,
0.2892642319,
0.4261301458,
-0.2185796201,
0.2583727241,
-0.1215012744,
0.2301147282,
-0.2938075364,
0.1149602234,
0.55774647,
0.1897826046,
-0.3376103938,
0.3320046067,
0.180674687,
-0.336096257,
0.1217750609,
0.473772347,
0.2906241119,
-0.0346816294,
0.0033716885,
0.0544297658,
1.076791048,
-0.1063170508,
-0.1410202831,
0.3265562057,
-0.2886446714,
-0.0629898682,
0.1711464524,
0.0744692981,
-0.3738824725,
-0.2014197856,
-0.1141920015,
-0.09973149,
0.182915628,
-0.5049664974,
-0.4686191678,
0.2706862688,
0.2902288437,
0.0473941229,
0.1362041533,
0.0351534374,
0.0513240583,
0.0296752322,
-0.1473929286,
0.0757581666,
-0.1771011204,
0.4955220819,
-0.3521039784,
0.0060893632,
0.142514348,
-0.2339376211,
-0.548982203,
0.1974164546,
-0.7597703338,
-0.2172416002,
0.1435347199,
-0.0956568271,
0.2164646834,
-0.0425303169,
0.1211303324,
0.236987412,
-0.0984940231,
-0.0710495338,
-0.0660434365,
-0.2263093591,
-0.2782444358,
0.0803147927,
0.148842901,
-0.1012303382,
-0.392250061,
0.2363768071,
-0.0378924496,
-0.1245237142,
0.2563017607,
-0.1621964276,
0.0216448382,
-0.1495988667,
-0.2880113125,
0.1166076809,
-0.4050697088,
-0.3859924078,
0.0441254713,
-0.084271051,
-0.6793956757,
-0.0104839364,
0.2277967483,
-0.2703295052,
0.0709383041,
0.3031379282,
-0.4074923098,
0.4476475716,
0.2836991251,
0.3070382774,
-0.045653332,
-0.2508760691,
-0.2475801557,
-0.0962148011,
-0.2398614585,
0.1254097223,
-0.1179651022,
0.0117819961,
-0.0179662164,
0.3521891236,
0.2009032965,
0.1305581778,
-0.04211393,
-0.1326913983,
-0.4322312772,
0.1133478656,
0.0895268396,
0.3084597588,
0.0070491941,
0.8161122203,
0.0050010807,
0.1381086409,
-0.2168498039,
0.1537142545,
-0.547508955,
0.1356403679,
0.5144498348,
-0.3967115283,
0.2740749419,
0.1211526543,
0.1307330281,
0.3177926242,
-0.2503612638,
-0.1576968879,
-0.0281465948,
0.146455735,
0.1394555569,
-0.2126523405,
0.0227945242,
0.1708484739,
0.0856937766,
0.1691996008,
0.014253418,
-0.1359176934,
0.0720581934,
0.0227147583,
0.517164886,
0.0662892684,
-0.1335105151,
-0.3067294955,
-0.0594980754,
0.2850827575,
0.1547495276,
-0.0466247015,
-0.0049139634,
-0.3229971528,
-0.0157681461,
0.0993028581,
0.2712794244,
-0.0949809626,
0.1953768432,
-0.2645510435,
-0.3805356622,
-0.2151184976,
0.5645757318,
0.3280045986,
-0.3266963959,
0.0865276009,
-0.0304162242,
0.0183897465,
-0.2668766081,
0.1713371426,
-0.1892540753,
-0.1514425576,
-0.0306953993,
0.5003802776,
-0.104754895,
0.2028654367,
0.0371595994,
0.2137016058,
-0.0002260201,
-0.1407930255,
-0.0896460116,
0.031013323,
-0.2003611624,
0.1695739329,
0.1094608009,
-0.1566505134,
0.3708168864,
-0.3239771426,
-0.0258682072,
0.3565203846,
-0.5007629991,
0.3787527978,
0.1755800247,
-0.2727210224,
0.0502876304,
0.2554656863,
0.0517260954,
0.1064758822,
0.05746378,
0.5036069155,
0.0453849025,
-0.303970933,
-0.0631593764,
0.4623817205,
-0.160701558,
-0.2788871527,
0.1073018909,
-0.0637272149,
-0.3115139902,
0.1346605718,
0.1420977712,
-0.0270741004,
0.0633941889,
0.0979785398,
-0.3087844551,
-0.1646399498,
-0.401157409,
0.220776543,
0.236518234,
-0.2379700989,
0.5151308179,
0.2662870288,
-0.0371029265,
-0.2489866614,
0.7079609036,
0.3704006076,
-0.044673983,
-0.1711801142,
0.1376730502,
-0.2246431112,
0.1120397449,
0.2599116564,
-0.0763737261,
0.0478594378,
-0.0139042344,
0.1707176566,
0.0092954617,
-0.0898856446,
0.1108519286,
0.133969456,
-0.3126705587,
-0.2695254683,
0.1654574126,
0.0147745386,
-0.0065953466,
-0.488879323,
0.3813575804,
-0.2600223124,
0.6083683968,
0.3633645773,
-0.0167718884,
0.1414656937,
0.2023962438,
0.042767372,
0.2453742325,
0.3704007864,
0.2853345573,
-0.1474466175,
-0.3849027455,
-0.331081152,
-0.3185828328,
0.2492610216,
-0.0115357172,
0.4620016515,
0.2291845679,
0.1349524707,
-0.228945002,
0.0339673609,
0.4562624693,
0.2448747158,
0.064800851,
0.126974985,
-0.2102719247,
0.0880673602,
-0.1616376489,
-0.2616664171,
0.0603455752,
-0.1920471489,
0.1918264925,
-0.2449935824,
-0.038589485,
-0.0182408467,
0.0576571375,
-0.4193947315,
-0.0711655989,
0.1217799187,
-0.071778059,
-0.0353247225,
-0.147437349,
-0.3151299655,
0.0292597357,
-0.0187703446,
-0.0378770865,
0.2944748998,
0.077545844,
-0.0054252287,
0.1476281732,
-0.4997341037,
-0.2743058801,
0.0258235019,
0.440697968,
-0.2658596933,
-0.2488071471,
0.181184411,
0.0307604168,
-0.2400043309,
0.1320653111,
0.3002212048,
0.0648869127,
0.0918277279,
-0.5590920448,
-0.1621072292,
0.6869650483,
0.3171428144,
0.0053970381,
-0.1448840052,
0.10809692,
0.2140951157,
-0.2759186327,
-0.8308288455,
0.0773528069,
0.1110791489,
0.0343417041,
-0.3358498812,
0.4130387008,
-0.3965507746,
0.0305419955,
0.1469562352,
0.2626536191,
0.2095077485,
0.0917729065,
0.3162973523,
-0.1423852295
] |
https://github.com/huggingface/datasets/issues/1286 | [libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): Aborted | Hi @lhoestq
I am not really sure which part is causing this, to me this is more related to dataset library as this is happening for some of the datassets below please find the information to reprodcue the bug, this is really blocking me and I appreciate your help
## Environment info
- `transformers` version: 3.5.1
- Platform: GPU
- Python version: 3.7
- PyTorch version (GPU?): 1.0.4
- Tensorflow version (GPU?): -
- Using GPU in script?: -
- Using distributed or parallel set-up in script?: -
### Who can help
tokenizers: @mfuntowicz
Trainer: @sgugger
TextGeneration: @TevenLeScao
nlp datasets: [different repo](https://github.com/huggingface/nlp)
rust tokenizers: [different repo](https://github.com/huggingface/tokenizers)
examples/seq2seq: @patil-suraj
## Information
Hi
I am testing seq2seq model with T5 on different datasets and this is always getting the following bug, this is really blocking me as this fails for many datasets. could you have a look please? thanks
```
[libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
Aborted
```
To reproduce the error please run on 1 GPU:
```
git clone [email protected]:rabeehk/debug-seq2seq.git
python setup.py develop
cd seq2seq
python finetune_t5_trainer.py temp.json
```
Full output of the program:
```
(internship) rkarimi@vgnh008:/idiap/user/rkarimi/dev/debug-seq2seq/seq2seq$ python finetune_t5_trainer.py temp.json
2020-12-12 15:38:16.234542: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2020-12-12 15:38:16.234598: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
12/12/2020 15:38:32 - WARNING - __main__ - Process rank: -1, device: cuda:0, n_gpu: 1, distributed training: False, 16-bits training: False
12/12/2020 15:38:32 - INFO - __main__ - Training/evaluation parameters Seq2SeqTrainingArguments(output_dir='outputs/test', overwrite_output_dir=True, do_train=True, do_eval=True, do_predict=False, evaluate_during_training=False, evaluation_strategy=<EvaluationStrategy.NO: 'no'>, prediction_loss_only=False, per_device_train_batch_size=64, per_device_eval_batch_size=64, per_gpu_train_batch_size=None, per_gpu_eval_batch_size=None, gradient_accumulation_steps=1, eval_accumulation_steps=None, learning_rate=0.01, weight_decay=0.0, adam_beta1=0.9, adam_beta2=0.999, adam_epsilon=1e-08, max_grad_norm=1.0, num_train_epochs=2, max_steps=-1, warmup_steps=500, logging_dir='runs/Dec12_15-38-32_vgnh008', logging_first_step=True, logging_steps=200, save_steps=200, save_total_limit=1, no_cuda=False, seed=42, fp16=False, fp16_opt_level='O1', local_rank=-1, tpu_num_cores=None, tpu_metrics_debug=False, debug=False, dataloader_drop_last=False, eval_steps=200, dataloader_num_workers=0, past_index=-1, run_name='outputs/test', disable_tqdm=False, remove_unused_columns=True, label_names=None, load_best_model_at_end=False, metric_for_best_model=None, greater_is_better=None, label_smoothing=0.1, sortish_sampler=False, predict_with_generate=True, adafactor=False, encoder_layerdrop=None, decoder_layerdrop=None, dropout=None, attention_dropout=None, lr_scheduler='linear', fixed_length_emb=None, encoder_projection=None, encoder_pooling=None, projection_length=None, only_projection_bottleneck=False, concat_projection_token=False, gcs_bucket='ruse-xcloud-bucket', temperature=10, train_adapters=True, do_finetune=True, parametric_task_embedding=False, eval_output_dir='outputs/finetune-adapter/test-n-1-lr-1e-02-e-20')
Some weights of T5ForConditionalGeneration were not initialized from the model checkpoint at t5-small and are newly initialized: ['encoder.block.0.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.0.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.0.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.0.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.0.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.0.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.0.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.0.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.0.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.0.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.0.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.0.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.0.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.0.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.0.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.0.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.0.layer.0.adapter_controller.post_layer_norm.weight', 'encoder.block.0.layer.0.adapter_controller.post_layer_norm.bias', 'encoder.block.0.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.0.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.0.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.0.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.0.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.0.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.0.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.0.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.0.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.0.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.0.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.0.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.0.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.0.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.0.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.0.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.0.layer.1.adapter_controller.post_layer_norm.weight', 'encoder.block.0.layer.1.adapter_controller.post_layer_norm.bias', 'encoder.block.1.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.1.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.1.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.1.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.1.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.1.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.1.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.1.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.1.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.1.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.1.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.1.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.1.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.1.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.1.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.1.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.1.layer.0.adapter_controller.post_layer_norm.weight', 'encoder.block.1.layer.0.adapter_controller.post_layer_norm.bias', 'encoder.block.1.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.1.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.1.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.1.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.1.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.1.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.1.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.1.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.1.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.1.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.1.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.1.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.1.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.1.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.1.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.1.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.1.layer.1.adapter_controller.post_layer_norm.weight', 'encoder.block.1.layer.1.adapter_controller.post_layer_norm.bias', 'encoder.block.2.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.2.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.2.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.2.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.2.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.2.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.2.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.2.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.2.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.2.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.2.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.2.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.2.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.2.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.2.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.2.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.2.layer.0.adapter_controller.post_layer_norm.weight', 'encoder.block.2.layer.0.adapter_controller.post_layer_norm.bias', 'encoder.block.2.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.2.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.2.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.2.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.2.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.2.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.2.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.2.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.2.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.2.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.2.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.2.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.2.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.2.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.2.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.2.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.2.layer.1.adapter_controller.post_layer_norm.weight', 'encoder.block.2.layer.1.adapter_controller.post_layer_norm.bias', 'encoder.block.3.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.3.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.3.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.3.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.3.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.3.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.3.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.3.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.3.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.3.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.3.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.3.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.3.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.3.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.3.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.3.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.3.layer.0.adapter_controller.post_layer_norm.weight', 'encoder.block.3.layer.0.adapter_controller.post_layer_norm.bias', 'encoder.block.3.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.3.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.3.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.3.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.3.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.3.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.3.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.3.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.3.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.3.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.3.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.3.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.3.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.3.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.3.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.3.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.3.layer.1.adapter_controller.post_layer_norm.weight', 'encoder.block.3.layer.1.adapter_controller.post_layer_norm.bias', 'encoder.block.4.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.4.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.4.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.4.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.4.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.4.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.4.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.4.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.4.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.4.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.4.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.4.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.4.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.4.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.4.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.4.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.4.layer.0.adapter_controller.post_layer_norm.weight', 'encoder.block.4.layer.0.adapter_controller.post_layer_norm.bias', 'encoder.block.4.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.4.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.4.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.4.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.4.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.4.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.4.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.4.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.4.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.4.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.4.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.4.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.4.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.4.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.4.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.4.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.4.layer.1.adapter_controller.post_layer_norm.weight', 'encoder.block.4.layer.1.adapter_controller.post_layer_norm.bias', 'encoder.block.5.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.5.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.5.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.5.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.5.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.5.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.5.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.5.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.5.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.5.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.5.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.5.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.5.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.5.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.5.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.5.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.5.layer.0.adapter_controller.post_layer_norm.weight', 'encoder.block.5.layer.0.adapter_controller.post_layer_norm.bias', 'encoder.block.5.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.5.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.5.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.5.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.5.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.5.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.5.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.5.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.5.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.5.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.5.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.5.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.5.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.5.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.5.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.5.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.5.layer.1.adapter_controller.post_layer_norm.weight', 'encoder.block.5.layer.1.adapter_controller.post_layer_norm.bias', 'decoder.block.0.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.0.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.0.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.0.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.0.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.0.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.0.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.0.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.0.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.0.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.0.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.0.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.0.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.0.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.0.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.0.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.0.layer.0.adapter_controller.post_layer_norm.weight', 'decoder.block.0.layer.0.adapter_controller.post_layer_norm.bias', 'decoder.block.0.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.0.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.0.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.0.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.0.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.0.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.0.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.0.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.0.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.0.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.0.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.0.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.0.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.0.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.0.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.0.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.0.layer.2.adapter_controller.post_layer_norm.weight', 'decoder.block.0.layer.2.adapter_controller.post_layer_norm.bias', 'decoder.block.1.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.1.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.1.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.1.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.1.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.1.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.1.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.1.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.1.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.1.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.1.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.1.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.1.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.1.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.1.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.1.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.1.layer.0.adapter_controller.post_layer_norm.weight', 'decoder.block.1.layer.0.adapter_controller.post_layer_norm.bias', 'decoder.block.1.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.1.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.1.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.1.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.1.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.1.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.1.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.1.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.1.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.1.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.1.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.1.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.1.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.1.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.1.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.1.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.1.layer.2.adapter_controller.post_layer_norm.weight', 'decoder.block.1.layer.2.adapter_controller.post_layer_norm.bias', 'decoder.block.2.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.2.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.2.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.2.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.2.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.2.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.2.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.2.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.2.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.2.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.2.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.2.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.2.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.2.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.2.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.2.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.2.layer.0.adapter_controller.post_layer_norm.weight', 'decoder.block.2.layer.0.adapter_controller.post_layer_norm.bias', 'decoder.block.2.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.2.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.2.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.2.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.2.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.2.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.2.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.2.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.2.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.2.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.2.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.2.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.2.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.2.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.2.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.2.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.2.layer.2.adapter_controller.post_layer_norm.weight', 'decoder.block.2.layer.2.adapter_controller.post_layer_norm.bias', 'decoder.block.3.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.3.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.3.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.3.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.3.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.3.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.3.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.3.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.3.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.3.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.3.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.3.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.3.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.3.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.3.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.3.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.3.layer.0.adapter_controller.post_layer_norm.weight', 'decoder.block.3.layer.0.adapter_controller.post_layer_norm.bias', 'decoder.block.3.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.3.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.3.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.3.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.3.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.3.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.3.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.3.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.3.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.3.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.3.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.3.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.3.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.3.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.3.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.3.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.3.layer.2.adapter_controller.post_layer_norm.weight', 'decoder.block.3.layer.2.adapter_controller.post_layer_norm.bias', 'decoder.block.4.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.4.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.4.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.4.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.4.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.4.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.4.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.4.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.4.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.4.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.4.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.4.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.4.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.4.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.4.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.4.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.4.layer.0.adapter_controller.post_layer_norm.weight', 'decoder.block.4.layer.0.adapter_controller.post_layer_norm.bias', 'decoder.block.4.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.4.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.4.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.4.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.4.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.4.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.4.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.4.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.4.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.4.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.4.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.4.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.4.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.4.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.4.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.4.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.4.layer.2.adapter_controller.post_layer_norm.weight', 'decoder.block.4.layer.2.adapter_controller.post_layer_norm.bias', 'decoder.block.5.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.5.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.5.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.5.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.5.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.5.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.5.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.5.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.5.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.5.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.5.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.5.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.5.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.5.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.5.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.5.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.5.layer.0.adapter_controller.post_layer_norm.weight', 'decoder.block.5.layer.0.adapter_controller.post_layer_norm.bias', 'decoder.block.5.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.5.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.5.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.5.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.5.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.5.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.5.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.5.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.5.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.5.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.5.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.5.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.5.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.5.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.5.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.5.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.5.layer.2.adapter_controller.post_layer_norm.weight', 'decoder.block.5.layer.2.adapter_controller.post_layer_norm.bias']
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
12/12/2020 15:38:44 - INFO - filelock - Lock 140079090376272 acquired on /idiap/home/rkarimi/.cache/huggingface/datasets/4c7b1146606607c193d1ef601d8d0c134521b2ac59f61ee98c09119be925ee16.7ad892de9d7f1b4f9dfc598ef31e4a398a7224176bc9a3110e0e2075ff943e8f.py.lock
12/12/2020 15:38:44 - INFO - filelock - Lock 140079090376272 released on /idiap/home/rkarimi/.cache/huggingface/datasets/4c7b1146606607c193d1ef601d8d0c134521b2ac59f61ee98c09119be925ee16.7ad892de9d7f1b4f9dfc598ef31e4a398a7224176bc9a3110e0e2075ff943e8f.py.lock
Using custom data configuration default
12/12/2020 15:38:44 - INFO - filelock - Lock 140082549312272 acquired on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
12/12/2020 15:38:44 - INFO - filelock - Lock 140082549312272 released on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
12/12/2020 15:38:44 - INFO - filelock - Lock 140082549365648 acquired on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
Reusing dataset boolq (/idiap/temp/rkarimi/cache_home_1/datasets/boolq/default/0.1.0/1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534)
12/12/2020 15:38:44 - INFO - filelock - Lock 140082549365648 released on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
Loading cached processed dataset at /idiap/temp/rkarimi/cache_home_1/datasets/boolq/default/0.1.0/1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534/cache-6810ece2a440c3be.arrow
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
12/12/2020 15:38:45 - INFO - filelock - Lock 140082549560848 acquired on /idiap/home/rkarimi/.cache/huggingface/datasets/4c7b1146606607c193d1ef601d8d0c134521b2ac59f61ee98c09119be925ee16.7ad892de9d7f1b4f9dfc598ef31e4a398a7224176bc9a3110e0e2075ff943e8f.py.lock
12/12/2020 15:38:45 - INFO - filelock - Lock 140082549560848 released on /idiap/home/rkarimi/.cache/huggingface/datasets/4c7b1146606607c193d1ef601d8d0c134521b2ac59f61ee98c09119be925ee16.7ad892de9d7f1b4f9dfc598ef31e4a398a7224176bc9a3110e0e2075ff943e8f.py.lock
Using custom data configuration default
12/12/2020 15:38:45 - INFO - filelock - Lock 140082549560848 acquired on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
12/12/2020 15:38:45 - INFO - filelock - Lock 140082549560848 released on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
12/12/2020 15:38:45 - INFO - filelock - Lock 140082549365200 acquired on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
Reusing dataset boolq (/idiap/temp/rkarimi/cache_home_1/datasets/boolq/default/0.1.0/1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534)
12/12/2020 15:38:45 - INFO - filelock - Lock 140082549365200 released on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
Loading cached processed dataset at /idiap/temp/rkarimi/cache_home_1/datasets/boolq/default/0.1.0/1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534/cache-9a2822394a3a4e34.arrow
12/12/2020 15:38:45 - INFO - seq2seq.metrics.metrics - selected metric <function build_compute_metrics_fn.<locals>.classification_metrics at 0x7f66b464cc20> for task boolq
12/12/2020 15:38:45 - INFO - seq2seq.trainers.trainer - ***** Running training *****
12/12/2020 15:38:45 - INFO - seq2seq.trainers.trainer - Num examples = 10
12/12/2020 15:38:45 - INFO - seq2seq.trainers.trainer - Num Epochs = 2
12/12/2020 15:38:45 - INFO - seq2seq.trainers.trainer - Instantaneous batch size per device = 64
12/12/2020 15:38:45 - INFO - seq2seq.trainers.trainer - Total train batch size (w. parallel, distributed & accumulation) = 64
12/12/2020 15:38:45 - INFO - seq2seq.trainers.trainer - Gradient Accumulation steps = 1
12/12/2020 15:38:45 - INFO - seq2seq.trainers.trainer - Total optimization steps = 2
{'loss': 529.79443359375, 'learning_rate': 2e-05, 'epoch': 1.0}
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 2.37it/s]12/12/2020 15:38:46 - INFO - seq2seq.trainers.trainer -
Training completed. Do not forget to share your model on huggingface.co/models =)
{'epoch': 2.0}
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 2.43it/s]
12/12/2020 15:38:46 - INFO - seq2seq.trainers.trainer - Saving model checkpoint to outputs/test
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
12/12/2020 15:38:59 - INFO - filelock - Lock 140079084929680 acquired on /idiap/home/rkarimi/.cache/huggingface/datasets/4c7b1146606607c193d1ef601d8d0c134521b2ac59f61ee98c09119be925ee16.7ad892de9d7f1b4f9dfc598ef31e4a398a7224176bc9a3110e0e2075ff943e8f.py.lock
12/12/2020 15:38:59 - INFO - filelock - Lock 140079084929680 released on /idiap/home/rkarimi/.cache/huggingface/datasets/4c7b1146606607c193d1ef601d8d0c134521b2ac59f61ee98c09119be925ee16.7ad892de9d7f1b4f9dfc598ef31e4a398a7224176bc9a3110e0e2075ff943e8f.py.lock
Using custom data configuration default
12/12/2020 15:38:59 - INFO - filelock - Lock 140079084929360 acquired on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
12/12/2020 15:38:59 - INFO - filelock - Lock 140079084929360 released on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
12/12/2020 15:38:59 - INFO - filelock - Lock 140079085355216 acquired on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
Reusing dataset boolq (/idiap/temp/rkarimi/cache_home_1/datasets/boolq/default/0.1.0/1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534)
12/12/2020 15:38:59 - INFO - filelock - Lock 140079085355216 released on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
Loading cached processed dataset at /idiap/temp/rkarimi/cache_home_1/datasets/boolq/default/0.1.0/1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534/cache-164dd1d57e9fa69a.arrow
12/12/2020 15:38:59 - INFO - seq2seq.metrics.metrics - selected metric <function build_compute_metrics_fn.<locals>.classification_metrics at 0x7f66b40c67a0> for task boolq
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - ***** Running training *****
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Num examples = 1
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Num Epochs = 2
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Instantaneous batch size per device = 64
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Total train batch size (w. parallel, distributed & accumulation) = 64
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Gradient Accumulation steps = 1
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Total optimization steps = 2
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Continuing training from checkpoint, will skip to saved global_step
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Continuing training from epoch 2
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Continuing training from global step 2
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Will skip the first 0 steps in the first epoch
0%| | 0/2 [00:00<?, ?it/s]12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer -
Training completed. Do not forget to share your model on huggingface.co/models =)
{'epoch': 2.0}
0%| | 0/2 [00:00<?, ?it/s]
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Saving model checkpoint to outputs/finetune-adapter/test-n-1-lr-1e-02-e-20/boolq
12/12/2020 15:39:07 - INFO - seq2seq.utils.utils - using task specific params for boolq: {'max_length': 3}
12/12/2020 15:39:07 - INFO - seq2seq.trainers.trainer - ***** Running Evaluation *****
12/12/2020 15:39:07 - INFO - seq2seq.trainers.trainer - Num examples = 3269
12/12/2020 15:39:07 - INFO - seq2seq.trainers.trainer - Batch size = 64
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 52/52 [00:12<00:00, 4.86it/s][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
Aborted
```
| Hi
I am getting this error when evaluating on wmt16-ro-en using finetune_trainer.py of huggingface repo. thank for your help
{'epoch': 20.0}
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:16<00:00, 1.22it/s]
12/08/2020 10:41:19 - INFO - seq2seq.trainers.trainer - Saving model checkpoint to outputs/experiment/joint/finetune/lr-2e-5
12/08/2020 10:41:24 - INFO - __main__ - {'wmt16-en-ro': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 1998), 'qnli': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 5462), 'scitail': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 1303)}
12/08/2020 10:41:24 - INFO - __main__ - *** Evaluate ***
12/08/2020 10:41:24 - INFO - seq2seq.utils.utils - using task specific params for wmt16-en-ro: {'max_length': 300, 'num_beams': 4}
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - ***** Running Evaluation *****
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - Num examples = 1998
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - Batch size = 64
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 32/32 [00:37<00:00, 1.19s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
Aborted
| 1,524 | [libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (index) >= (0): Aborted
Hi
I am getting this error when evaluating on wmt16-ro-en using finetune_trainer.py of huggingface repo. thank for your help
{'epoch': 20.0}
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:16<00:00, 1.22it/s]
12/08/2020 10:41:19 - INFO - seq2seq.trainers.trainer - Saving model checkpoint to outputs/experiment/joint/finetune/lr-2e-5
12/08/2020 10:41:24 - INFO - __main__ - {'wmt16-en-ro': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 1998), 'qnli': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 5462), 'scitail': Dataset(features: {'src_texts': Value(dtype='string', id=None), 'task': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 1303)}
12/08/2020 10:41:24 - INFO - __main__ - *** Evaluate ***
12/08/2020 10:41:24 - INFO - seq2seq.utils.utils - using task specific params for wmt16-en-ro: {'max_length': 300, 'num_beams': 4}
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - ***** Running Evaluation *****
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - Num examples = 1998
12/08/2020 10:41:24 - INFO - seq2seq.trainers.trainer - Batch size = 64
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 32/32 [00:37<00:00, 1.19s/it][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
Aborted
Hi @lhoestq
I am not really sure which part is causing this, to me this is more related to dataset library as this is happening for some of the datassets below please find the information to reprodcue the bug, this is really blocking me and I appreciate your help
## Environment info
- `transformers` version: 3.5.1
- Platform: GPU
- Python version: 3.7
- PyTorch version (GPU?): 1.0.4
- Tensorflow version (GPU?): -
- Using GPU in script?: -
- Using distributed or parallel set-up in script?: -
### Who can help
tokenizers: @mfuntowicz
Trainer: @sgugger
TextGeneration: @TevenLeScao
nlp datasets: [different repo](https://github.com/huggingface/nlp)
rust tokenizers: [different repo](https://github.com/huggingface/tokenizers)
examples/seq2seq: @patil-suraj
## Information
Hi
I am testing seq2seq model with T5 on different datasets and this is always getting the following bug, this is really blocking me as this fails for many datasets. could you have a look please? thanks
```
[libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
Aborted
```
To reproduce the error please run on 1 GPU:
```
git clone [email protected]:rabeehk/debug-seq2seq.git
python setup.py develop
cd seq2seq
python finetune_t5_trainer.py temp.json
```
Full output of the program:
```
(internship) rkarimi@vgnh008:/idiap/user/rkarimi/dev/debug-seq2seq/seq2seq$ python finetune_t5_trainer.py temp.json
2020-12-12 15:38:16.234542: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2020-12-12 15:38:16.234598: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
12/12/2020 15:38:32 - WARNING - __main__ - Process rank: -1, device: cuda:0, n_gpu: 1, distributed training: False, 16-bits training: False
12/12/2020 15:38:32 - INFO - __main__ - Training/evaluation parameters Seq2SeqTrainingArguments(output_dir='outputs/test', overwrite_output_dir=True, do_train=True, do_eval=True, do_predict=False, evaluate_during_training=False, evaluation_strategy=<EvaluationStrategy.NO: 'no'>, prediction_loss_only=False, per_device_train_batch_size=64, per_device_eval_batch_size=64, per_gpu_train_batch_size=None, per_gpu_eval_batch_size=None, gradient_accumulation_steps=1, eval_accumulation_steps=None, learning_rate=0.01, weight_decay=0.0, adam_beta1=0.9, adam_beta2=0.999, adam_epsilon=1e-08, max_grad_norm=1.0, num_train_epochs=2, max_steps=-1, warmup_steps=500, logging_dir='runs/Dec12_15-38-32_vgnh008', logging_first_step=True, logging_steps=200, save_steps=200, save_total_limit=1, no_cuda=False, seed=42, fp16=False, fp16_opt_level='O1', local_rank=-1, tpu_num_cores=None, tpu_metrics_debug=False, debug=False, dataloader_drop_last=False, eval_steps=200, dataloader_num_workers=0, past_index=-1, run_name='outputs/test', disable_tqdm=False, remove_unused_columns=True, label_names=None, load_best_model_at_end=False, metric_for_best_model=None, greater_is_better=None, label_smoothing=0.1, sortish_sampler=False, predict_with_generate=True, adafactor=False, encoder_layerdrop=None, decoder_layerdrop=None, dropout=None, attention_dropout=None, lr_scheduler='linear', fixed_length_emb=None, encoder_projection=None, encoder_pooling=None, projection_length=None, only_projection_bottleneck=False, concat_projection_token=False, gcs_bucket='ruse-xcloud-bucket', temperature=10, train_adapters=True, do_finetune=True, parametric_task_embedding=False, eval_output_dir='outputs/finetune-adapter/test-n-1-lr-1e-02-e-20')
Some weights of T5ForConditionalGeneration were not initialized from the model checkpoint at t5-small and are newly initialized: ['encoder.block.0.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.0.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.0.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.0.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.0.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.0.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.0.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.0.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.0.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.0.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.0.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.0.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.0.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.0.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.0.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.0.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.0.layer.0.adapter_controller.post_layer_norm.weight', 'encoder.block.0.layer.0.adapter_controller.post_layer_norm.bias', 'encoder.block.0.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.0.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.0.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.0.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.0.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.0.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.0.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.0.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.0.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.0.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.0.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.0.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.0.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.0.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.0.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.0.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.0.layer.1.adapter_controller.post_layer_norm.weight', 'encoder.block.0.layer.1.adapter_controller.post_layer_norm.bias', 'encoder.block.1.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.1.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.1.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.1.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.1.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.1.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.1.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.1.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.1.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.1.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.1.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.1.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.1.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.1.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.1.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.1.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.1.layer.0.adapter_controller.post_layer_norm.weight', 'encoder.block.1.layer.0.adapter_controller.post_layer_norm.bias', 'encoder.block.1.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.1.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.1.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.1.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.1.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.1.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.1.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.1.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.1.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.1.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.1.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.1.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.1.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.1.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.1.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.1.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.1.layer.1.adapter_controller.post_layer_norm.weight', 'encoder.block.1.layer.1.adapter_controller.post_layer_norm.bias', 'encoder.block.2.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.2.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.2.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.2.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.2.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.2.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.2.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.2.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.2.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.2.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.2.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.2.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.2.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.2.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.2.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.2.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.2.layer.0.adapter_controller.post_layer_norm.weight', 'encoder.block.2.layer.0.adapter_controller.post_layer_norm.bias', 'encoder.block.2.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.2.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.2.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.2.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.2.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.2.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.2.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.2.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.2.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.2.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.2.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.2.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.2.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.2.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.2.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.2.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.2.layer.1.adapter_controller.post_layer_norm.weight', 'encoder.block.2.layer.1.adapter_controller.post_layer_norm.bias', 'encoder.block.3.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.3.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.3.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.3.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.3.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.3.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.3.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.3.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.3.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.3.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.3.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.3.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.3.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.3.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.3.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.3.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.3.layer.0.adapter_controller.post_layer_norm.weight', 'encoder.block.3.layer.0.adapter_controller.post_layer_norm.bias', 'encoder.block.3.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.3.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.3.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.3.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.3.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.3.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.3.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.3.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.3.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.3.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.3.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.3.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.3.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.3.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.3.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.3.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.3.layer.1.adapter_controller.post_layer_norm.weight', 'encoder.block.3.layer.1.adapter_controller.post_layer_norm.bias', 'encoder.block.4.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.4.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.4.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.4.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.4.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.4.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.4.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.4.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.4.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.4.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.4.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.4.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.4.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.4.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.4.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.4.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.4.layer.0.adapter_controller.post_layer_norm.weight', 'encoder.block.4.layer.0.adapter_controller.post_layer_norm.bias', 'encoder.block.4.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.4.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.4.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.4.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.4.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.4.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.4.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.4.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.4.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.4.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.4.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.4.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.4.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.4.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.4.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.4.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.4.layer.1.adapter_controller.post_layer_norm.weight', 'encoder.block.4.layer.1.adapter_controller.post_layer_norm.bias', 'encoder.block.5.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.5.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.5.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.5.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.5.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.5.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.5.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.5.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.5.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.5.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.5.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.5.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.5.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.5.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.5.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.5.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.5.layer.0.adapter_controller.post_layer_norm.weight', 'encoder.block.5.layer.0.adapter_controller.post_layer_norm.bias', 'encoder.block.5.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'encoder.block.5.layer.1.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'encoder.block.5.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'encoder.block.5.layer.1.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'encoder.block.5.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'encoder.block.5.layer.1.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'encoder.block.5.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'encoder.block.5.layer.1.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'encoder.block.5.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'encoder.block.5.layer.1.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'encoder.block.5.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'encoder.block.5.layer.1.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'encoder.block.5.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'encoder.block.5.layer.1.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'encoder.block.5.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'encoder.block.5.layer.1.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'encoder.block.5.layer.1.adapter_controller.post_layer_norm.weight', 'encoder.block.5.layer.1.adapter_controller.post_layer_norm.bias', 'decoder.block.0.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.0.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.0.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.0.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.0.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.0.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.0.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.0.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.0.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.0.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.0.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.0.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.0.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.0.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.0.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.0.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.0.layer.0.adapter_controller.post_layer_norm.weight', 'decoder.block.0.layer.0.adapter_controller.post_layer_norm.bias', 'decoder.block.0.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.0.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.0.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.0.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.0.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.0.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.0.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.0.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.0.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.0.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.0.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.0.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.0.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.0.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.0.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.0.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.0.layer.2.adapter_controller.post_layer_norm.weight', 'decoder.block.0.layer.2.adapter_controller.post_layer_norm.bias', 'decoder.block.1.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.1.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.1.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.1.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.1.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.1.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.1.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.1.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.1.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.1.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.1.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.1.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.1.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.1.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.1.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.1.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.1.layer.0.adapter_controller.post_layer_norm.weight', 'decoder.block.1.layer.0.adapter_controller.post_layer_norm.bias', 'decoder.block.1.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.1.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.1.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.1.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.1.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.1.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.1.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.1.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.1.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.1.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.1.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.1.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.1.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.1.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.1.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.1.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.1.layer.2.adapter_controller.post_layer_norm.weight', 'decoder.block.1.layer.2.adapter_controller.post_layer_norm.bias', 'decoder.block.2.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.2.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.2.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.2.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.2.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.2.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.2.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.2.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.2.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.2.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.2.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.2.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.2.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.2.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.2.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.2.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.2.layer.0.adapter_controller.post_layer_norm.weight', 'decoder.block.2.layer.0.adapter_controller.post_layer_norm.bias', 'decoder.block.2.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.2.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.2.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.2.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.2.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.2.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.2.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.2.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.2.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.2.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.2.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.2.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.2.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.2.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.2.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.2.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.2.layer.2.adapter_controller.post_layer_norm.weight', 'decoder.block.2.layer.2.adapter_controller.post_layer_norm.bias', 'decoder.block.3.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.3.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.3.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.3.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.3.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.3.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.3.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.3.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.3.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.3.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.3.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.3.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.3.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.3.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.3.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.3.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.3.layer.0.adapter_controller.post_layer_norm.weight', 'decoder.block.3.layer.0.adapter_controller.post_layer_norm.bias', 'decoder.block.3.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.3.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.3.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.3.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.3.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.3.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.3.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.3.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.3.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.3.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.3.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.3.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.3.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.3.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.3.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.3.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.3.layer.2.adapter_controller.post_layer_norm.weight', 'decoder.block.3.layer.2.adapter_controller.post_layer_norm.bias', 'decoder.block.4.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.4.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.4.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.4.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.4.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.4.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.4.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.4.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.4.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.4.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.4.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.4.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.4.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.4.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.4.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.4.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.4.layer.0.adapter_controller.post_layer_norm.weight', 'decoder.block.4.layer.0.adapter_controller.post_layer_norm.bias', 'decoder.block.4.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.4.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.4.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.4.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.4.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.4.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.4.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.4.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.4.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.4.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.4.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.4.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.4.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.4.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.4.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.4.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.4.layer.2.adapter_controller.post_layer_norm.weight', 'decoder.block.4.layer.2.adapter_controller.post_layer_norm.bias', 'decoder.block.5.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.5.layer.0.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.5.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.5.layer.0.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.5.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.5.layer.0.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.5.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.5.layer.0.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.5.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.5.layer.0.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.5.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.5.layer.0.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.5.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.5.layer.0.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.5.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.5.layer.0.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.5.layer.0.adapter_controller.post_layer_norm.weight', 'decoder.block.5.layer.0.adapter_controller.post_layer_norm.bias', 'decoder.block.5.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.weight', 'decoder.block.5.layer.2.adapter_controller.meta_up_sampler.weight_generator.0.bias', 'decoder.block.5.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.weight', 'decoder.block.5.layer.2.adapter_controller.meta_up_sampler.weight_generator.1.bias', 'decoder.block.5.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.weight', 'decoder.block.5.layer.2.adapter_controller.meta_up_sampler.bias_generator.0.bias', 'decoder.block.5.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.weight', 'decoder.block.5.layer.2.adapter_controller.meta_up_sampler.bias_generator.1.bias', 'decoder.block.5.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.weight', 'decoder.block.5.layer.2.adapter_controller.meta_down_sampler.weight_generator.0.bias', 'decoder.block.5.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.weight', 'decoder.block.5.layer.2.adapter_controller.meta_down_sampler.weight_generator.1.bias', 'decoder.block.5.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.weight', 'decoder.block.5.layer.2.adapter_controller.meta_down_sampler.bias_generator.0.bias', 'decoder.block.5.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.weight', 'decoder.block.5.layer.2.adapter_controller.meta_down_sampler.bias_generator.1.bias', 'decoder.block.5.layer.2.adapter_controller.post_layer_norm.weight', 'decoder.block.5.layer.2.adapter_controller.post_layer_norm.bias']
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
12/12/2020 15:38:44 - INFO - filelock - Lock 140079090376272 acquired on /idiap/home/rkarimi/.cache/huggingface/datasets/4c7b1146606607c193d1ef601d8d0c134521b2ac59f61ee98c09119be925ee16.7ad892de9d7f1b4f9dfc598ef31e4a398a7224176bc9a3110e0e2075ff943e8f.py.lock
12/12/2020 15:38:44 - INFO - filelock - Lock 140079090376272 released on /idiap/home/rkarimi/.cache/huggingface/datasets/4c7b1146606607c193d1ef601d8d0c134521b2ac59f61ee98c09119be925ee16.7ad892de9d7f1b4f9dfc598ef31e4a398a7224176bc9a3110e0e2075ff943e8f.py.lock
Using custom data configuration default
12/12/2020 15:38:44 - INFO - filelock - Lock 140082549312272 acquired on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
12/12/2020 15:38:44 - INFO - filelock - Lock 140082549312272 released on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
12/12/2020 15:38:44 - INFO - filelock - Lock 140082549365648 acquired on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
Reusing dataset boolq (/idiap/temp/rkarimi/cache_home_1/datasets/boolq/default/0.1.0/1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534)
12/12/2020 15:38:44 - INFO - filelock - Lock 140082549365648 released on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
Loading cached processed dataset at /idiap/temp/rkarimi/cache_home_1/datasets/boolq/default/0.1.0/1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534/cache-6810ece2a440c3be.arrow
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
12/12/2020 15:38:45 - INFO - filelock - Lock 140082549560848 acquired on /idiap/home/rkarimi/.cache/huggingface/datasets/4c7b1146606607c193d1ef601d8d0c134521b2ac59f61ee98c09119be925ee16.7ad892de9d7f1b4f9dfc598ef31e4a398a7224176bc9a3110e0e2075ff943e8f.py.lock
12/12/2020 15:38:45 - INFO - filelock - Lock 140082549560848 released on /idiap/home/rkarimi/.cache/huggingface/datasets/4c7b1146606607c193d1ef601d8d0c134521b2ac59f61ee98c09119be925ee16.7ad892de9d7f1b4f9dfc598ef31e4a398a7224176bc9a3110e0e2075ff943e8f.py.lock
Using custom data configuration default
12/12/2020 15:38:45 - INFO - filelock - Lock 140082549560848 acquired on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
12/12/2020 15:38:45 - INFO - filelock - Lock 140082549560848 released on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
12/12/2020 15:38:45 - INFO - filelock - Lock 140082549365200 acquired on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
Reusing dataset boolq (/idiap/temp/rkarimi/cache_home_1/datasets/boolq/default/0.1.0/1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534)
12/12/2020 15:38:45 - INFO - filelock - Lock 140082549365200 released on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
Loading cached processed dataset at /idiap/temp/rkarimi/cache_home_1/datasets/boolq/default/0.1.0/1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534/cache-9a2822394a3a4e34.arrow
12/12/2020 15:38:45 - INFO - seq2seq.metrics.metrics - selected metric <function build_compute_metrics_fn.<locals>.classification_metrics at 0x7f66b464cc20> for task boolq
12/12/2020 15:38:45 - INFO - seq2seq.trainers.trainer - ***** Running training *****
12/12/2020 15:38:45 - INFO - seq2seq.trainers.trainer - Num examples = 10
12/12/2020 15:38:45 - INFO - seq2seq.trainers.trainer - Num Epochs = 2
12/12/2020 15:38:45 - INFO - seq2seq.trainers.trainer - Instantaneous batch size per device = 64
12/12/2020 15:38:45 - INFO - seq2seq.trainers.trainer - Total train batch size (w. parallel, distributed & accumulation) = 64
12/12/2020 15:38:45 - INFO - seq2seq.trainers.trainer - Gradient Accumulation steps = 1
12/12/2020 15:38:45 - INFO - seq2seq.trainers.trainer - Total optimization steps = 2
{'loss': 529.79443359375, 'learning_rate': 2e-05, 'epoch': 1.0}
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 2.37it/s]12/12/2020 15:38:46 - INFO - seq2seq.trainers.trainer -
Training completed. Do not forget to share your model on huggingface.co/models =)
{'epoch': 2.0}
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 2.43it/s]
12/12/2020 15:38:46 - INFO - seq2seq.trainers.trainer - Saving model checkpoint to outputs/test
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
12/12/2020 15:38:59 - INFO - filelock - Lock 140079084929680 acquired on /idiap/home/rkarimi/.cache/huggingface/datasets/4c7b1146606607c193d1ef601d8d0c134521b2ac59f61ee98c09119be925ee16.7ad892de9d7f1b4f9dfc598ef31e4a398a7224176bc9a3110e0e2075ff943e8f.py.lock
12/12/2020 15:38:59 - INFO - filelock - Lock 140079084929680 released on /idiap/home/rkarimi/.cache/huggingface/datasets/4c7b1146606607c193d1ef601d8d0c134521b2ac59f61ee98c09119be925ee16.7ad892de9d7f1b4f9dfc598ef31e4a398a7224176bc9a3110e0e2075ff943e8f.py.lock
Using custom data configuration default
12/12/2020 15:38:59 - INFO - filelock - Lock 140079084929360 acquired on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
12/12/2020 15:38:59 - INFO - filelock - Lock 140079084929360 released on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
12/12/2020 15:38:59 - INFO - filelock - Lock 140079085355216 acquired on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
Reusing dataset boolq (/idiap/temp/rkarimi/cache_home_1/datasets/boolq/default/0.1.0/1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534)
12/12/2020 15:38:59 - INFO - filelock - Lock 140079085355216 released on /idiap/temp/rkarimi/cache_home_1/datasets/_idiap_temp_rkarimi_cache_home_1_datasets_boolq_default_0.1.0_1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534.lock
Loading cached processed dataset at /idiap/temp/rkarimi/cache_home_1/datasets/boolq/default/0.1.0/1fcfdc6f36dc89a2245ffbbd5248ab33890594b50396731ebc78411bdd2ca534/cache-164dd1d57e9fa69a.arrow
12/12/2020 15:38:59 - INFO - seq2seq.metrics.metrics - selected metric <function build_compute_metrics_fn.<locals>.classification_metrics at 0x7f66b40c67a0> for task boolq
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - ***** Running training *****
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Num examples = 1
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Num Epochs = 2
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Instantaneous batch size per device = 64
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Total train batch size (w. parallel, distributed & accumulation) = 64
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Gradient Accumulation steps = 1
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Total optimization steps = 2
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Continuing training from checkpoint, will skip to saved global_step
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Continuing training from epoch 2
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Continuing training from global step 2
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Will skip the first 0 steps in the first epoch
0%| | 0/2 [00:00<?, ?it/s]12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer -
Training completed. Do not forget to share your model on huggingface.co/models =)
{'epoch': 2.0}
0%| | 0/2 [00:00<?, ?it/s]
12/12/2020 15:38:59 - INFO - seq2seq.trainers.trainer - Saving model checkpoint to outputs/finetune-adapter/test-n-1-lr-1e-02-e-20/boolq
12/12/2020 15:39:07 - INFO - seq2seq.utils.utils - using task specific params for boolq: {'max_length': 3}
12/12/2020 15:39:07 - INFO - seq2seq.trainers.trainer - ***** Running Evaluation *****
12/12/2020 15:39:07 - INFO - seq2seq.trainers.trainer - Num examples = 3269
12/12/2020 15:39:07 - INFO - seq2seq.trainers.trainer - Batch size = 64
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 52/52 [00:12<00:00, 4.86it/s][libprotobuf FATAL /sentencepiece/src/../third_party/protobuf-lite/google/protobuf/repeated_field.h:1505] CHECK failed: (index) >= (0):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: (index) >= (0):
Aborted
```
| [
-0.0197354052,
-0.7191826701,
0.0039324821,
0.349367857,
0.4842422307,
0.0076736747,
0.242444396,
0.1216882989,
-0.2513459325,
0.3279395998,
-0.0821482614,
-0.1225549281,
-0.121334061,
0.3986017108,
0.0242617242,
-0.255679369,
-0.0995946005,
0.0782152489,
-0.3232805729,
0.1850418895,
-0.0975959972,
0.2666341066,
-0.3790645301,
0.2954922318,
-0.0773467645,
0.0884473473,
0.1073487177,
0.0845447555,
-0.0165825766,
-0.3517344296,
0.0590411983,
-0.0919297561,
-0.308915168,
0.3623275459,
-0.0001231714,
-0.1029600054,
0.2742361128,
0.0443344228,
-0.0298559424,
-0.1064274013,
0.2643368244,
0.5919190645,
-0.1285632849,
0.1556288749,
-0.1199963391,
0.0390062593,
0.1319609135,
-0.0262200981,
0.2547328472,
0.2040432692,
0.1139890328,
0.3572777212,
0.407677114,
0.0077054151,
-0.0644371808,
-0.0471210517,
-0.2066649497,
0.1545077413,
0.065721117,
-0.1996355504,
0.1090155989,
-0.0004498525,
0.1906786114,
-0.0334957726,
-0.2198649943,
-0.3123976588,
-0.0370122492,
-0.457115531,
0.0150994239,
0.4477548301,
-0.0995780975,
-0.298966974,
-0.1321323365,
0.2411862314,
0.0361542441,
-0.7871572971,
0.0136454264,
0.1679368466,
-0.0502243154,
0.2885324359,
-0.1375089288,
0.1263263524,
-0.2918358445,
0.016448753,
-0.0907558501,
0.296466291,
-0.198556304,
0.2684499919,
0.3229809105,
0.1940049231,
-0.3849183917,
0.1892253906,
0.0081452243,
0.1069087535,
-0.3058025837,
-0.2175876647,
0.1347347945,
0.0532117821,
0.2911433578,
0.1250616908,
-0.0492139086,
0.0266519003,
-0.0314312242,
0.1974626184,
0.2514951527,
-0.0322243311,
0.0891962573,
0.1261574328,
0.1575365365,
0.5037890673,
0.0537348054,
0.2031766921,
0.0966271758,
-0.2018551826,
0.0816627443,
-0.0702102333,
0.5441355109,
-0.1696139127,
-0.596849978,
0.4957830012,
-0.4942745268,
-0.008591448,
0.2324091345,
0.4670404792,
-0.1604337692,
0.0753959194,
0.2514837682,
-0.1050435752,
0.0336376503,
0.0345130786,
-0.0803705901,
0.2207056582,
0.1228924021,
0.2221152633,
-0.1487662196,
-0.4933038354,
0.1599143296,
-0.1897885352,
0.290317446,
-0.6953831911,
-0.2288499027,
-0.3666120768,
-0.0604083315,
0.1137856469,
-0.1019290462,
-0.1594460011,
0.2681771219,
0.0848984197,
-0.0130575234,
0.0232957918,
0.233474642,
-0.3981199861,
0.1256913841,
0.1727492511,
-0.1056276262,
0.1610926688,
0.0997461751,
-0.0547136739,
-0.0375443473,
0.211003527,
0.081784986,
-0.0233551003,
-0.5620620847,
0.0634884685,
0.2465738505,
0.3047663867,
0.0822413266,
-0.0770294815,
0.1512784362,
-0.0502389893,
0.0543233082,
0.4209914505,
-0.0538989827,
0.4664916992,
-0.2711000443,
0.177083075,
0.2772977054,
-0.3652854562,
-0.0003141716,
0.1826031059,
-0.2375143319,
0.1117426604,
-0.2652017176,
-0.4663341045,
-0.1654589772,
-0.1183406636,
0.1349782348,
-0.0789417624,
-0.2356957793,
-0.0736635104,
-0.3157055974,
-0.0500991046,
0.2459150404,
0.1108271182,
0.0505060554,
-0.2129728794,
0.1019256189,
-0.0896833763,
0.2275956571,
0.00584776,
-0.2316600978,
0.1115673557,
0.440787524,
-0.0369519182,
-0.0522976443,
-0.1141530871,
-0.1167193949,
0.1146955714,
-0.0951113477,
0.2058558464,
0.2640617788,
-0.0140006356,
-0.2227888256,
0.3215105534,
-0.2788104117,
-0.2408591956,
0.1297050714,
-0.0126401894,
-0.117405735,
0.0466667414,
0.0669542849,
-0.0052325125,
-0.5102659464,
0.1701667309,
0.1292891949,
0.0479548089,
-0.4098981023,
-0.0345079154,
-0.0219769347,
0.1678377688,
0.0930052027,
-0.2305414826,
-0.0614777543,
0.4744261801,
-0.0609406345,
0.1962463409,
-0.0178824365,
-0.2281218022,
-0.0191678982,
-0.6979165673,
-0.3184908926,
-0.0092400555,
0.182344839,
-0.1330953538,
0.4334766567,
0.2950306237,
0.1894214302,
-0.0313177817,
0.1306532621,
-0.1452958286,
-0.1054136306,
-0.0241775773,
-0.1970707774,
-0.0412809066,
0.4775481522,
0.0791637748,
-0.0833146051,
-0.0907502174,
-0.5611175299,
-0.1841320246,
0.3183329701,
-0.2006357461,
0.0832457691,
0.2185397893,
0.298620522,
-0.1066378504,
-0.1744055301,
-0.2389481813,
0.4070248008,
-0.0666785762,
-0.0943468288,
0.3965405226,
-0.18294397,
0.1772943437,
0.3061523736,
0.1469934732,
0.2547307312,
0.3355362713,
0.0759045035,
0.054832235,
-0.340634048,
0.1482568681,
-0.1149554774,
0.2089341134,
-0.204527393,
0.2236367315,
-0.2222566903,
0.1700030714,
-0.2625822723,
-0.2926513553,
-0.1523293853,
-0.0743207857,
0.0207593273,
0.3121845126,
0.1147069633,
0.2348940969,
0.3013082147,
0.2710024118,
0.1796742231,
0.2460693121,
0.0581643805,
0.1148112267,
-0.2809874415,
-0.0713953152,
0.4093819857,
-0.3983356953,
0.4378203452,
0.0031492212,
-0.3976992071,
-0.1845487207,
-0.3869083822,
0.2667298913,
-0.3574427962,
0.4122445285,
0.2349895239,
0.0989026502,
0.2883793414,
-0.0820785835,
0.2549665868,
-0.1147716865,
-0.2736464143,
0.1317068338,
0.0489209034,
-0.050488878,
-0.1470927894,
-0.1372157037,
-0.0760080367,
-0.1587285548,
0.4361135662,
0.0166942701,
0.2049041837,
0.3152821064,
0.0969092399,
0.2270753086,
-0.0253572408,
0.1294410378,
-0.3533501029,
-0.2036491036,
-0.0627005547,
0.0351994708,
-0.2237658203,
-0.0332904495,
0.0955418572,
0.3138405681,
-0.115697898,
-0.3986231387,
-0.253906399,
0.2589060962,
-0.401181668,
0.0286345314,
-0.0587615855,
0.2250743508,
-0.0227606203,
0.0023585733,
0.1034688503,
-0.1657689214,
0.2917425931,
0.001456417,
0.4208349884,
-0.058271151,
0.4073517025,
0.1907380521,
0.2507789433,
0.221879214,
-0.1074184552,
0.2332934737,
-0.0760881677,
0.2300226241,
0.062693432,
-0.2186153382,
0.1225990802,
-0.1815153658,
-0.0678679496,
0.2153836638,
-0.2848356366,
0.1016196609,
-0.2425626069,
0.3786379695,
-0.392598182,
-0.2305805534,
-0.0728004426,
0.0848510489,
0.2980444431,
-0.2183032483,
-0.1612261236,
0.3346332014,
0.1729969531,
0.164960742,
0.1857610047,
-0.0097198989,
-0.2947641909,
0.1768288761,
-0.4341130555,
-0.1974517405,
0.2037676275,
0.1779194474,
0.3842517138,
-0.1591309905,
-0.1912720054,
0.0965436921,
-0.3532339036,
0.2157045007,
-0.1090003178,
0.1710741371,
-0.019114323,
-0.2454839498,
0.0143332975,
-0.1819862276,
-0.2506859004,
-0.1394033283,
-0.0508335717,
0.2705191374,
-0.4435863793,
-0.0580345392,
0.9266170263,
-0.0307042487,
-0.202793628,
-0.0545090586,
-0.3822517395,
-0.3325397968,
-0.2178064138,
0.3268853128,
0.0803601071,
0.1595795006,
-0.2594972551,
0.0547468141,
0.1613204032,
-0.0796453133,
0.1856284738,
0.018070193,
-0.1477719694,
-0.2234718055,
-0.0046392563,
-0.0809063688,
-0.2214634567,
0.3577401042,
0.0663454458,
0.1223880574,
0.0403789692,
-0.14503254,
0.2732551992,
0.2892642319,
0.4261301458,
-0.2185796201,
0.2583727241,
-0.1215012744,
0.2301147282,
-0.2938075364,
0.1149602234,
0.55774647,
0.1897826046,
-0.3376103938,
0.3320046067,
0.180674687,
-0.336096257,
0.1217750609,
0.473772347,
0.2906241119,
-0.0346816294,
0.0033716885,
0.0544297658,
1.076791048,
-0.1063170508,
-0.1410202831,
0.3265562057,
-0.2886446714,
-0.0629898682,
0.1711464524,
0.0744692981,
-0.3738824725,
-0.2014197856,
-0.1141920015,
-0.09973149,
0.182915628,
-0.5049664974,
-0.4686191678,
0.2706862688,
0.2902288437,
0.0473941229,
0.1362041533,
0.0351534374,
0.0513240583,
0.0296752322,
-0.1473929286,
0.0757581666,
-0.1771011204,
0.4955220819,
-0.3521039784,
0.0060893632,
0.142514348,
-0.2339376211,
-0.548982203,
0.1974164546,
-0.7597703338,
-0.2172416002,
0.1435347199,
-0.0956568271,
0.2164646834,
-0.0425303169,
0.1211303324,
0.236987412,
-0.0984940231,
-0.0710495338,
-0.0660434365,
-0.2263093591,
-0.2782444358,
0.0803147927,
0.148842901,
-0.1012303382,
-0.392250061,
0.2363768071,
-0.0378924496,
-0.1245237142,
0.2563017607,
-0.1621964276,
0.0216448382,
-0.1495988667,
-0.2880113125,
0.1166076809,
-0.4050697088,
-0.3859924078,
0.0441254713,
-0.084271051,
-0.6793956757,
-0.0104839364,
0.2277967483,
-0.2703295052,
0.0709383041,
0.3031379282,
-0.4074923098,
0.4476475716,
0.2836991251,
0.3070382774,
-0.045653332,
-0.2508760691,
-0.2475801557,
-0.0962148011,
-0.2398614585,
0.1254097223,
-0.1179651022,
0.0117819961,
-0.0179662164,
0.3521891236,
0.2009032965,
0.1305581778,
-0.04211393,
-0.1326913983,
-0.4322312772,
0.1133478656,
0.0895268396,
0.3084597588,
0.0070491941,
0.8161122203,
0.0050010807,
0.1381086409,
-0.2168498039,
0.1537142545,
-0.547508955,
0.1356403679,
0.5144498348,
-0.3967115283,
0.2740749419,
0.1211526543,
0.1307330281,
0.3177926242,
-0.2503612638,
-0.1576968879,
-0.0281465948,
0.146455735,
0.1394555569,
-0.2126523405,
0.0227945242,
0.1708484739,
0.0856937766,
0.1691996008,
0.014253418,
-0.1359176934,
0.0720581934,
0.0227147583,
0.517164886,
0.0662892684,
-0.1335105151,
-0.3067294955,
-0.0594980754,
0.2850827575,
0.1547495276,
-0.0466247015,
-0.0049139634,
-0.3229971528,
-0.0157681461,
0.0993028581,
0.2712794244,
-0.0949809626,
0.1953768432,
-0.2645510435,
-0.3805356622,
-0.2151184976,
0.5645757318,
0.3280045986,
-0.3266963959,
0.0865276009,
-0.0304162242,
0.0183897465,
-0.2668766081,
0.1713371426,
-0.1892540753,
-0.1514425576,
-0.0306953993,
0.5003802776,
-0.104754895,
0.2028654367,
0.0371595994,
0.2137016058,
-0.0002260201,
-0.1407930255,
-0.0896460116,
0.031013323,
-0.2003611624,
0.1695739329,
0.1094608009,
-0.1566505134,
0.3708168864,
-0.3239771426,
-0.0258682072,
0.3565203846,
-0.5007629991,
0.3787527978,
0.1755800247,
-0.2727210224,
0.0502876304,
0.2554656863,
0.0517260954,
0.1064758822,
0.05746378,
0.5036069155,
0.0453849025,
-0.303970933,
-0.0631593764,
0.4623817205,
-0.160701558,
-0.2788871527,
0.1073018909,
-0.0637272149,
-0.3115139902,
0.1346605718,
0.1420977712,
-0.0270741004,
0.0633941889,
0.0979785398,
-0.3087844551,
-0.1646399498,
-0.401157409,
0.220776543,
0.236518234,
-0.2379700989,
0.5151308179,
0.2662870288,
-0.0371029265,
-0.2489866614,
0.7079609036,
0.3704006076,
-0.044673983,
-0.1711801142,
0.1376730502,
-0.2246431112,
0.1120397449,
0.2599116564,
-0.0763737261,
0.0478594378,
-0.0139042344,
0.1707176566,
0.0092954617,
-0.0898856446,
0.1108519286,
0.133969456,
-0.3126705587,
-0.2695254683,
0.1654574126,
0.0147745386,
-0.0065953466,
-0.488879323,
0.3813575804,
-0.2600223124,
0.6083683968,
0.3633645773,
-0.0167718884,
0.1414656937,
0.2023962438,
0.042767372,
0.2453742325,
0.3704007864,
0.2853345573,
-0.1474466175,
-0.3849027455,
-0.331081152,
-0.3185828328,
0.2492610216,
-0.0115357172,
0.4620016515,
0.2291845679,
0.1349524707,
-0.228945002,
0.0339673609,
0.4562624693,
0.2448747158,
0.064800851,
0.126974985,
-0.2102719247,
0.0880673602,
-0.1616376489,
-0.2616664171,
0.0603455752,
-0.1920471489,
0.1918264925,
-0.2449935824,
-0.038589485,
-0.0182408467,
0.0576571375,
-0.4193947315,
-0.0711655989,
0.1217799187,
-0.071778059,
-0.0353247225,
-0.147437349,
-0.3151299655,
0.0292597357,
-0.0187703446,
-0.0378770865,
0.2944748998,
0.077545844,
-0.0054252287,
0.1476281732,
-0.4997341037,
-0.2743058801,
0.0258235019,
0.440697968,
-0.2658596933,
-0.2488071471,
0.181184411,
0.0307604168,
-0.2400043309,
0.1320653111,
0.3002212048,
0.0648869127,
0.0918277279,
-0.5590920448,
-0.1621072292,
0.6869650483,
0.3171428144,
0.0053970381,
-0.1448840052,
0.10809692,
0.2140951157,
-0.2759186327,
-0.8308288455,
0.0773528069,
0.1110791489,
0.0343417041,
-0.3358498812,
0.4130387008,
-0.3965507746,
0.0305419955,
0.1469562352,
0.2626536191,
0.2095077485,
0.0917729065,
0.3162973523,
-0.1423852295
] |
https://github.com/huggingface/datasets/issues/1285 | boolq does not work | here is the minimal code to reproduce
`datasets>>> datasets.load_dataset("boolq", "train")
the errors
```
`cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
Using custom data configuration train
Downloading and preparing dataset boolq/train (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /idiap/temp/rkarimi/cache_home_1/datasets/boolq/train/0.1.0/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11...
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets/downloads
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 149, in download_custom
custom_download(url, path)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/tensorflow/python/lib/io/file_io.py", line 516, in copy_v2
compat.path_to_bytes(src), compat.path_to_bytes(dst), overwrite)
``` | Hi
I am getting this error when trying to load boolq, thanks for your help
ts_boolq_default_0.1.0_2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11.lock
Traceback (most recent call last):
File "finetune_t5_trainer.py", line 274, in <module>
main()
File "finetune_t5_trainer.py", line 147, in main
for task in data_args.tasks]
File "finetune_t5_trainer.py", line 147, in <listcomp>
for task in data_args.tasks]
File "/remote/idiap.svm/user.active/rkarimi/dev/ruse/seq2seq/tasks/tasks.py", line 58, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/ruse/seq2seq/tasks/tasks.py", line 54, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 149, in download_custom
custom_download(url, path)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/tensorflow/python/lib/io/file_io.py", line 516, in copy_v2
compat.path_to_bytes(src), compat.path_to_bytes(dst), overwrite)
tensorflow.python.framework.errors_impl.AlreadyExistsError: file already exists
| 115 | boolq does not work
Hi
I am getting this error when trying to load boolq, thanks for your help
ts_boolq_default_0.1.0_2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11.lock
Traceback (most recent call last):
File "finetune_t5_trainer.py", line 274, in <module>
main()
File "finetune_t5_trainer.py", line 147, in main
for task in data_args.tasks]
File "finetune_t5_trainer.py", line 147, in <listcomp>
for task in data_args.tasks]
File "/remote/idiap.svm/user.active/rkarimi/dev/ruse/seq2seq/tasks/tasks.py", line 58, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/ruse/seq2seq/tasks/tasks.py", line 54, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 149, in download_custom
custom_download(url, path)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/tensorflow/python/lib/io/file_io.py", line 516, in copy_v2
compat.path_to_bytes(src), compat.path_to_bytes(dst), overwrite)
tensorflow.python.framework.errors_impl.AlreadyExistsError: file already exists
here is the minimal code to reproduce
`datasets>>> datasets.load_dataset("boolq", "train")
the errors
```
`cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
Using custom data configuration train
Downloading and preparing dataset boolq/train (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /idiap/temp/rkarimi/cache_home_1/datasets/boolq/train/0.1.0/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11...
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets
cahce dir /idiap/temp/rkarimi/cache_home_1/datasets/downloads
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 149, in download_custom
custom_download(url, path)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/tensorflow/python/lib/io/file_io.py", line 516, in copy_v2
compat.path_to_bytes(src), compat.path_to_bytes(dst), overwrite)
``` | [
-0.2191430479,
-0.2052229494,
-0.1021826491,
0.0568044744,
0.0433856957,
0.0777706653,
0.3575465381,
0.2529197633,
0.2545485198,
-0.0290935487,
-0.1371182948,
0.3180468678,
-0.2989821732,
0.435960114,
-0.0375268608,
-0.010443829,
-0.2001053989,
0.0617069043,
0.0194577407,
0.1253175586,
-0.3767190278,
0.4527184665,
-0.3950283527,
0.171727255,
0.0397919044,
-0.1584230661,
0.0690807626,
0.2183279842,
-0.3045057356,
-0.3676795363,
0.1875552386,
-0.0160977878,
0.1602541059,
0.1953684986,
-0.000100287,
0.012421798,
0.3434243798,
0.0293649379,
-0.1709916741,
-0.3191274405,
-0.1750644147,
-0.3502523899,
0.289655298,
-0.0837972462,
-0.0092109498,
0.0844621882,
-0.0403605737,
0.1825930774,
0.3829546869,
0.3910406828,
0.3393366933,
0.0961863995,
0.1874352992,
-0.2147233486,
0.2771983743,
-0.5643307567,
0.0346739367,
0.1041202694,
0.271356076,
-0.1368378997,
0.0666279942,
0.1479776055,
-0.2208093703,
-0.216298461,
-0.1051367521,
-0.208123669,
-0.077954866,
-0.3245047927,
0.1794873923,
0.0790973455,
0.6055166721,
-0.0848833472,
-0.0521296114,
0.1929169148,
0.2385607362,
-0.1072738245,
0.1638335586,
0.0137316249,
0.0599496923,
0.0544821434,
0.2340848893,
-0.3852245212,
-0.0247663502,
0.041360952,
-0.0779065862,
0.2063309848,
-0.0665245801,
0.0390985124,
0.2114245743,
-0.2090815753,
0.1663435996,
0.508505702,
-0.1096580327,
-0.0038653391,
-0.6627802849,
0.0247673821,
0.2779555321,
0.107672736,
-0.052720882,
0.0032312151,
-0.2658789754,
0.0674195364,
0.1694181263,
0.1585513949,
-0.1650961936,
0.3916866779,
0.2289467901,
0.2797164321,
0.0727468431,
0.2224865854,
-0.2273651659,
0.2074245363,
-0.2910068929,
-0.4921385944,
-0.0160817169,
0.1348415315,
0.3629409671,
-0.0850621536,
-0.2391541004,
-0.1036298349,
-0.1959224641,
-0.0248907749,
0.3913450241,
0.7891895771,
0.1488986015,
-0.3131634295,
0.1699920595,
0.0756846294,
-0.2671212852,
-0.1868344694,
-0.3410372734,
0.2802950144,
0.0750982761,
-0.189259991,
0.1544687003,
-0.349321723,
0.1605903208,
0.1638124287,
-0.0757628158,
-0.1015296578,
0.2639564574,
-0.1807930619,
-0.279619664,
0.2034140229,
-0.1660431623,
0.041230455,
0.2221715152,
0.0821634829,
-0.0637341887,
0.2537775934,
-0.344266504,
-0.4547120929,
-0.1617781371,
0.330104053,
0.189420566,
-0.27367872,
0.1826007068,
0.2261169255,
0.1871689707,
-0.1125650778,
-0.1956936568,
-0.3212908804,
-0.2962063253,
-0.1822831929,
0.2448648065,
0.3433957398,
-0.4542225301,
-0.0933893323,
-0.2166291922,
-0.2461132854,
-0.0540442839,
0.1466912925,
-0.219743073,
0.3986424804,
-0.1403478235,
0.0188561473,
0.1012148187,
-0.2950315475,
-0.4969398677,
0.263355732,
-0.2121251076,
-0.1468688995,
-0.2692810297,
0.0484414026,
0.1941549331,
0.1539274305,
0.0051377988,
0.0565572791,
0.205061093,
-0.2150690109,
-0.1294436008,
-0.0946027711,
0.2298942208,
0.3611729443,
0.1907627881,
-0.099623248,
-0.0038342243,
0.0660987794,
0.0545600466,
0.2124177963,
-0.2959646583,
0.2606881559,
0.2629834116,
-0.1679647118,
0.0497376099,
0.0490054414,
-0.3281365633,
0.1711829007,
-0.1773874462,
0.1284162998,
0.0088680023,
0.2201398015,
-0.3857022524,
0.1247909442,
-0.2456311435,
0.056833785,
0.2308734655,
-0.2148274928,
-0.0974920839,
0.0471500345,
-0.1539621651,
0.2841615975,
-0.1739642918,
0.0556316599,
-0.0711447299,
-0.0564676672,
-0.3174750507,
-0.1609033197,
0.2278516591,
0.1587960422,
0.1742808074,
0.0216860808,
0.005052296,
0.3554825783,
0.0803117603,
-0.0317421742,
-0.211149469,
-0.4885710478,
-0.0345931947,
-0.11390616,
0.0384385549,
0.1027314216,
0.107028842,
0.1205409989,
0.4304289818,
0.2363622636,
-0.1677543074,
-0.0515251309,
-0.063364327,
0.1917680651,
0.1616194546,
0.0279593971,
-0.0829842612,
-0.0570025221,
0.4093348384,
0.0435369499,
-0.0650577396,
-0.05906526,
-0.0195259601,
0.0147133311,
0.4898831844,
0.134473443,
0.0625173524,
-0.1088180169,
0.251729697,
0.1401916742,
0.0302504711,
0.1328374594,
0.2777490318,
0.1064231917,
-0.4235243499,
-0.0366860777,
-0.0264515299,
-0.2671247125,
0.0989146456,
-0.3150693774,
-0.1128065661,
0.1915854514,
-0.0246157236,
-0.1628467292,
-0.1511110663,
-0.2533967495,
0.1131062806,
0.3443556428,
-0.1373841465,
-0.0577376112,
-0.1854239702,
-0.2737465203,
0.3402544558,
-0.0682004765,
0.0371056385,
-0.3164016604,
0.2217025608,
-0.0770749301,
0.1387632042,
0.3388940692,
-0.0285247955,
0.1094074696,
0.3005985022,
-0.2708337307,
-0.0180829987,
-0.2160333693,
-0.1804675162,
0.1515996903,
0.1119724959,
-0.2137088478,
0.03052992,
-0.1087110266,
-0.016914092,
-0.0048224027,
-0.3049965799,
-0.1138394549,
-0.3007990122,
0.3057751656,
0.2515810132,
0.0596837364,
-0.3211916685,
-0.0032179796,
0.1792203635,
-0.2130447626,
-0.0801893547,
0.1580678672,
0.1449143291,
-0.0205490571,
-0.2047990859,
-0.4926877022,
-0.5303478837,
-0.4888478518,
-0.0292073544,
-0.0471294001,
0.1707665771,
0.3728385568,
-0.0082200933,
0.3335874379,
0.1069247127,
0.1427055299,
-0.0587091781,
-0.2668077648,
0.272117734,
0.0249678623,
-0.3096512556,
0.1576292366,
0.1298579872,
0.3517139554,
-0.2375918925,
-0.1885916889,
0.1306703389,
0.0096214535,
0.0643239319,
-0.220901221,
-0.1836156547,
0.0529981591,
-0.0396088958,
-0.0411025025,
0.0912000686,
-0.206922695,
0.2017318904,
0.0643190369,
0.1448443234,
0.0772932693,
0.2657336295,
-0.0761377066,
0.5265427232,
0.0392807052,
0.185573414,
0.2640740573,
0.130462423,
0.1349706501,
-0.0506645441,
-0.5398094058,
-0.0671862289,
0.4233142138,
-0.1721684784,
-0.0361371003,
-0.3168297112,
0.1760748178,
-0.2813006043,
-0.086335808,
-0.1637950987,
-0.1836040765,
-0.1436770856,
-0.2176190168,
0.0036787619,
-0.022784641,
0.3067979515,
0.1663011611,
-0.0702659562,
0.0677279532,
0.3873063028,
-0.1091512293,
-0.0157410502,
-0.2296460867,
-0.2658674419,
-0.2586577237,
0.3157221973,
-0.2792375386,
0.3146839738,
-0.1532649547,
-0.0428508744,
0.1665741801,
-0.0807462782,
0.4986982942,
0.0501148477,
-0.0191346481,
0.1252700239,
-0.2378568351,
-0.0747509003,
-0.130784601,
-0.1986891329,
0.1724560708,
-0.101912044,
0.2336884141,
-0.2286940068,
0.1395972669,
-0.1511369646,
-0.140082255,
-0.2261395007,
-0.4447715878,
-0.4023569524,
-0.2775967717,
-0.3293207586,
0.0714740008,
-0.0625685304,
0.3856148422,
-0.0554290265,
0.0615477301,
-0.0310035478,
-0.3100098968,
0.0927903503,
0.0753412321,
0.3129447401,
-0.1278228611,
0.0731346235,
-0.1084556803,
0.0209049974,
0.0822388902,
0.2575199902,
-0.1618361622,
-0.1628742218,
0.0495074876,
0.0791191235,
0.1855979264,
0.0263857972,
-0.4029696286,
0.258600384,
0.0187966861,
0.0338426642,
0.3420663774,
-0.1090375558,
0.1140785366,
0.0074261911,
0.1009621173,
-0.2298307717,
-0.0616123118,
-0.0583052002,
0.0528999716,
0.1004932001,
-0.0807931796,
-0.029965207,
0.2240549475,
-0.1453296542,
0.5065832734,
-0.4068636298,
-0.0270503927,
0.3145807087,
0.1090787947,
0.449596405,
-0.0112946453,
0.3527524471,
-0.5087307692,
-0.3376004398,
0.1896849573,
-0.0802516863,
-0.0203108266,
-0.4732179046,
-0.5903365612,
0.2061622739,
-0.3476193249,
0.2962290645,
-0.0182413682,
0.1656644046,
-0.112688303,
0.1834343523,
-0.2206295431,
0.2286557853,
-0.1790465862,
0.2479861528,
-0.2823167443,
-0.003389294,
0.1613984257,
-0.1582825184,
-0.124928683,
0.2858260274,
-0.1620239317,
0.2359033674,
0.2030139267,
-0.1350349933,
0.1564133465,
0.4539045691,
-0.1938337088,
0.2831211388,
-0.0773665756,
0.0888468772,
0.078004092,
-0.1140511557,
-0.1461127549,
0.2270627022,
0.4083353281,
-0.0326151401,
-0.1881403476,
0.6344338655,
0.0801861137,
0.0685990006,
-0.2457524389,
0.1895561814,
-0.0615426973,
-0.234183386,
-0.2373738885,
-0.3077602088,
-0.0010706966,
-0.1609264612,
0.1954805404,
-0.0249682218,
-0.1262477189,
0.0540264063,
-0.0867679566,
-0.4619656801,
-0.0013348697,
0.3493008018,
0.0624582097,
0.2341093719,
0.7029870152,
0.3712259829,
-0.0397966243,
-0.3196719885,
-0.0188004002,
-0.0711911917,
0.0093133412,
0.2136899531,
0.1183322296,
0.0440301448,
0.3165583611,
0.288967669,
-0.0132552236,
0.0372629836,
0.0755372345,
-0.380962044,
-0.3957485557,
0.2548047602,
-0.2124713808,
0.0100133512,
-0.1032280624,
0.1452223957,
0.0724799559,
0.1129649729,
-0.4067445099,
0.0197545122,
-0.5416102409,
-0.1763852984,
-0.0903903395,
-0.1376824975,
0.0024855442,
0.2650109231,
0.2780073285,
0.1707058251,
-0.2160604298,
-0.3226588666,
-0.061407797,
0.0523256771,
0.1314619631,
0.1478698254,
-0.2413244694,
-0.3203827739,
-0.0740059987,
0.3170636296,
-0.1286108792,
-0.0382289439,
0.0708729848,
0.3496510684,
0.0035032574,
0.025289258,
-0.0936607271,
0.2850466967,
-0.1372587234,
-0.0343023352,
0.0765367597,
0.1217169017,
0.1666173637,
-0.0452564098,
-0.3469083607,
0.0563662462,
0.1295735687,
0.0026259769,
-0.0309156906,
-0.153149724,
0.0734743476,
-0.1278026998,
0.1320957839,
0.5306504369,
-0.2250747532,
-0.2179570794,
0.0909497142,
0.3123807013,
-0.2310646772,
0.2480466068,
-0.2824625969,
0.0132379159,
-0.0537812263,
0.1957370788,
-0.21509552,
-0.1293255091,
-0.0300090872,
0.1327186078,
0.1368074268,
0.1238770261,
0.0107434839,
0.3166517913,
-0.2526704073,
-0.1326472461,
0.2524023652,
0.1837850958,
-0.057935711,
0.4016676247,
-0.3799147904,
0.042769108,
-0.1585953981,
0.3562552035,
0.1159766316,
-0.3820241988,
-0.0618342124,
0.3805196881,
0.0734973997,
-0.4506345391,
-0.3727972209,
0.4307152331,
0.1382678747,
-0.0312945023,
0.0918879434,
0.2125878185,
-0.4361152351,
-0.2103605717,
-0.1892080158,
-0.0458008274,
-0.1491173506,
-0.0098614115,
0.0262135454,
0.0587635078,
0.123958908,
0.219406113,
-0.0067832768,
-0.3287951946,
0.2241203338,
0.2449514866,
-0.3615394533,
-0.2153164595,
0.2987223864,
0.0637277216,
0.2853658199,
0.3019365072,
-0.1928013265,
0.281584084,
0.4341526926,
-0.3539812863,
0.0686115772,
-0.0249796174,
-0.0522809774,
0.0304843727,
0.3618320227,
0.3311665654,
0.4536408782,
0.3099972606,
0.1705660969,
-0.1611032486,
0.1405385733,
0.1924779117,
0.0576294959,
-0.0661226213,
0.5304341316,
0.041904401,
0.0930425674,
-0.1055201069,
0.2225124687,
-0.400580734,
-0.1301392466,
0.1982860714,
0.262513876,
0.1857814342,
-0.234247461,
0.1494354308,
-0.2071269006,
0.3105294704,
0.3286705017,
0.500690043,
-0.4303506017,
0.1608487219,
-0.4329150915,
0.2768634558,
0.1256213933,
-0.130792141,
-0.1068228111,
0.119424589,
-0.1111040786,
-0.0143293273,
0.1969832927,
-0.0060374062,
0.1079829782,
-0.154990375,
-0.2892764211,
0.1259484589,
0.0802689195,
0.0460335277,
0.0018901075,
-0.0472124107,
0.0844696313,
-0.4870573878,
0.1282547861,
-0.3443618119,
-0.3882578909,
0.201964274,
-0.0433561169,
0.2446193397,
-0.0467390642,
0.1558376253,
-0.0514057502,
0.0405547246,
-0.0031451194,
-0.1967607737,
-0.1437195539,
-0.0071742209,
0.2906821072,
-0.0417028442,
-0.1355443597,
0.2434596121,
-0.2620758116,
0.2542634308,
-0.1207382753,
-0.0912979022,
-0.2947991192,
-0.0520456657,
0.1674501151,
-0.0951960012,
0.1116770357,
0.2294795662,
0.0491243452,
0.2940322161,
-0.5586980581,
-0.1086154282,
0.515243113,
0.0938158855,
-0.0625305548,
0.0418021679,
0.1600453109,
0.0820968002,
0.0147418613,
-0.264685452,
0.1551653296,
0.2506594658,
-0.0373105891,
0.0082780002,
0.3977274895,
0.1739771515,
0.1924736351,
-0.1579852104,
-0.1946326196,
0.2570955455,
0.1329276264,
-0.0124456184,
0.0632943958
] |
https://github.com/huggingface/datasets/issues/1285 | boolq does not work | This has been fixed by #881
this fix will be available in the next release soon.
If you don't want to wait for the release you can actually load the latest version of boolq by specifying `script_version="master"` in `load_dataset` | Hi
I am getting this error when trying to load boolq, thanks for your help
ts_boolq_default_0.1.0_2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11.lock
Traceback (most recent call last):
File "finetune_t5_trainer.py", line 274, in <module>
main()
File "finetune_t5_trainer.py", line 147, in main
for task in data_args.tasks]
File "finetune_t5_trainer.py", line 147, in <listcomp>
for task in data_args.tasks]
File "/remote/idiap.svm/user.active/rkarimi/dev/ruse/seq2seq/tasks/tasks.py", line 58, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/ruse/seq2seq/tasks/tasks.py", line 54, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 149, in download_custom
custom_download(url, path)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/tensorflow/python/lib/io/file_io.py", line 516, in copy_v2
compat.path_to_bytes(src), compat.path_to_bytes(dst), overwrite)
tensorflow.python.framework.errors_impl.AlreadyExistsError: file already exists
| 39 | boolq does not work
Hi
I am getting this error when trying to load boolq, thanks for your help
ts_boolq_default_0.1.0_2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11.lock
Traceback (most recent call last):
File "finetune_t5_trainer.py", line 274, in <module>
main()
File "finetune_t5_trainer.py", line 147, in main
for task in data_args.tasks]
File "finetune_t5_trainer.py", line 147, in <listcomp>
for task in data_args.tasks]
File "/remote/idiap.svm/user.active/rkarimi/dev/ruse/seq2seq/tasks/tasks.py", line 58, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/ruse/seq2seq/tasks/tasks.py", line 54, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 149, in download_custom
custom_download(url, path)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/tensorflow/python/lib/io/file_io.py", line 516, in copy_v2
compat.path_to_bytes(src), compat.path_to_bytes(dst), overwrite)
tensorflow.python.framework.errors_impl.AlreadyExistsError: file already exists
This has been fixed by #881
this fix will be available in the next release soon.
If you don't want to wait for the release you can actually load the latest version of boolq by specifying `script_version="master"` in `load_dataset` | [
-0.2191430479,
-0.2052229494,
-0.1021826491,
0.0568044744,
0.0433856957,
0.0777706653,
0.3575465381,
0.2529197633,
0.2545485198,
-0.0290935487,
-0.1371182948,
0.3180468678,
-0.2989821732,
0.435960114,
-0.0375268608,
-0.010443829,
-0.2001053989,
0.0617069043,
0.0194577407,
0.1253175586,
-0.3767190278,
0.4527184665,
-0.3950283527,
0.171727255,
0.0397919044,
-0.1584230661,
0.0690807626,
0.2183279842,
-0.3045057356,
-0.3676795363,
0.1875552386,
-0.0160977878,
0.1602541059,
0.1953684986,
-0.000100287,
0.012421798,
0.3434243798,
0.0293649379,
-0.1709916741,
-0.3191274405,
-0.1750644147,
-0.3502523899,
0.289655298,
-0.0837972462,
-0.0092109498,
0.0844621882,
-0.0403605737,
0.1825930774,
0.3829546869,
0.3910406828,
0.3393366933,
0.0961863995,
0.1874352992,
-0.2147233486,
0.2771983743,
-0.5643307567,
0.0346739367,
0.1041202694,
0.271356076,
-0.1368378997,
0.0666279942,
0.1479776055,
-0.2208093703,
-0.216298461,
-0.1051367521,
-0.208123669,
-0.077954866,
-0.3245047927,
0.1794873923,
0.0790973455,
0.6055166721,
-0.0848833472,
-0.0521296114,
0.1929169148,
0.2385607362,
-0.1072738245,
0.1638335586,
0.0137316249,
0.0599496923,
0.0544821434,
0.2340848893,
-0.3852245212,
-0.0247663502,
0.041360952,
-0.0779065862,
0.2063309848,
-0.0665245801,
0.0390985124,
0.2114245743,
-0.2090815753,
0.1663435996,
0.508505702,
-0.1096580327,
-0.0038653391,
-0.6627802849,
0.0247673821,
0.2779555321,
0.107672736,
-0.052720882,
0.0032312151,
-0.2658789754,
0.0674195364,
0.1694181263,
0.1585513949,
-0.1650961936,
0.3916866779,
0.2289467901,
0.2797164321,
0.0727468431,
0.2224865854,
-0.2273651659,
0.2074245363,
-0.2910068929,
-0.4921385944,
-0.0160817169,
0.1348415315,
0.3629409671,
-0.0850621536,
-0.2391541004,
-0.1036298349,
-0.1959224641,
-0.0248907749,
0.3913450241,
0.7891895771,
0.1488986015,
-0.3131634295,
0.1699920595,
0.0756846294,
-0.2671212852,
-0.1868344694,
-0.3410372734,
0.2802950144,
0.0750982761,
-0.189259991,
0.1544687003,
-0.349321723,
0.1605903208,
0.1638124287,
-0.0757628158,
-0.1015296578,
0.2639564574,
-0.1807930619,
-0.279619664,
0.2034140229,
-0.1660431623,
0.041230455,
0.2221715152,
0.0821634829,
-0.0637341887,
0.2537775934,
-0.344266504,
-0.4547120929,
-0.1617781371,
0.330104053,
0.189420566,
-0.27367872,
0.1826007068,
0.2261169255,
0.1871689707,
-0.1125650778,
-0.1956936568,
-0.3212908804,
-0.2962063253,
-0.1822831929,
0.2448648065,
0.3433957398,
-0.4542225301,
-0.0933893323,
-0.2166291922,
-0.2461132854,
-0.0540442839,
0.1466912925,
-0.219743073,
0.3986424804,
-0.1403478235,
0.0188561473,
0.1012148187,
-0.2950315475,
-0.4969398677,
0.263355732,
-0.2121251076,
-0.1468688995,
-0.2692810297,
0.0484414026,
0.1941549331,
0.1539274305,
0.0051377988,
0.0565572791,
0.205061093,
-0.2150690109,
-0.1294436008,
-0.0946027711,
0.2298942208,
0.3611729443,
0.1907627881,
-0.099623248,
-0.0038342243,
0.0660987794,
0.0545600466,
0.2124177963,
-0.2959646583,
0.2606881559,
0.2629834116,
-0.1679647118,
0.0497376099,
0.0490054414,
-0.3281365633,
0.1711829007,
-0.1773874462,
0.1284162998,
0.0088680023,
0.2201398015,
-0.3857022524,
0.1247909442,
-0.2456311435,
0.056833785,
0.2308734655,
-0.2148274928,
-0.0974920839,
0.0471500345,
-0.1539621651,
0.2841615975,
-0.1739642918,
0.0556316599,
-0.0711447299,
-0.0564676672,
-0.3174750507,
-0.1609033197,
0.2278516591,
0.1587960422,
0.1742808074,
0.0216860808,
0.005052296,
0.3554825783,
0.0803117603,
-0.0317421742,
-0.211149469,
-0.4885710478,
-0.0345931947,
-0.11390616,
0.0384385549,
0.1027314216,
0.107028842,
0.1205409989,
0.4304289818,
0.2363622636,
-0.1677543074,
-0.0515251309,
-0.063364327,
0.1917680651,
0.1616194546,
0.0279593971,
-0.0829842612,
-0.0570025221,
0.4093348384,
0.0435369499,
-0.0650577396,
-0.05906526,
-0.0195259601,
0.0147133311,
0.4898831844,
0.134473443,
0.0625173524,
-0.1088180169,
0.251729697,
0.1401916742,
0.0302504711,
0.1328374594,
0.2777490318,
0.1064231917,
-0.4235243499,
-0.0366860777,
-0.0264515299,
-0.2671247125,
0.0989146456,
-0.3150693774,
-0.1128065661,
0.1915854514,
-0.0246157236,
-0.1628467292,
-0.1511110663,
-0.2533967495,
0.1131062806,
0.3443556428,
-0.1373841465,
-0.0577376112,
-0.1854239702,
-0.2737465203,
0.3402544558,
-0.0682004765,
0.0371056385,
-0.3164016604,
0.2217025608,
-0.0770749301,
0.1387632042,
0.3388940692,
-0.0285247955,
0.1094074696,
0.3005985022,
-0.2708337307,
-0.0180829987,
-0.2160333693,
-0.1804675162,
0.1515996903,
0.1119724959,
-0.2137088478,
0.03052992,
-0.1087110266,
-0.016914092,
-0.0048224027,
-0.3049965799,
-0.1138394549,
-0.3007990122,
0.3057751656,
0.2515810132,
0.0596837364,
-0.3211916685,
-0.0032179796,
0.1792203635,
-0.2130447626,
-0.0801893547,
0.1580678672,
0.1449143291,
-0.0205490571,
-0.2047990859,
-0.4926877022,
-0.5303478837,
-0.4888478518,
-0.0292073544,
-0.0471294001,
0.1707665771,
0.3728385568,
-0.0082200933,
0.3335874379,
0.1069247127,
0.1427055299,
-0.0587091781,
-0.2668077648,
0.272117734,
0.0249678623,
-0.3096512556,
0.1576292366,
0.1298579872,
0.3517139554,
-0.2375918925,
-0.1885916889,
0.1306703389,
0.0096214535,
0.0643239319,
-0.220901221,
-0.1836156547,
0.0529981591,
-0.0396088958,
-0.0411025025,
0.0912000686,
-0.206922695,
0.2017318904,
0.0643190369,
0.1448443234,
0.0772932693,
0.2657336295,
-0.0761377066,
0.5265427232,
0.0392807052,
0.185573414,
0.2640740573,
0.130462423,
0.1349706501,
-0.0506645441,
-0.5398094058,
-0.0671862289,
0.4233142138,
-0.1721684784,
-0.0361371003,
-0.3168297112,
0.1760748178,
-0.2813006043,
-0.086335808,
-0.1637950987,
-0.1836040765,
-0.1436770856,
-0.2176190168,
0.0036787619,
-0.022784641,
0.3067979515,
0.1663011611,
-0.0702659562,
0.0677279532,
0.3873063028,
-0.1091512293,
-0.0157410502,
-0.2296460867,
-0.2658674419,
-0.2586577237,
0.3157221973,
-0.2792375386,
0.3146839738,
-0.1532649547,
-0.0428508744,
0.1665741801,
-0.0807462782,
0.4986982942,
0.0501148477,
-0.0191346481,
0.1252700239,
-0.2378568351,
-0.0747509003,
-0.130784601,
-0.1986891329,
0.1724560708,
-0.101912044,
0.2336884141,
-0.2286940068,
0.1395972669,
-0.1511369646,
-0.140082255,
-0.2261395007,
-0.4447715878,
-0.4023569524,
-0.2775967717,
-0.3293207586,
0.0714740008,
-0.0625685304,
0.3856148422,
-0.0554290265,
0.0615477301,
-0.0310035478,
-0.3100098968,
0.0927903503,
0.0753412321,
0.3129447401,
-0.1278228611,
0.0731346235,
-0.1084556803,
0.0209049974,
0.0822388902,
0.2575199902,
-0.1618361622,
-0.1628742218,
0.0495074876,
0.0791191235,
0.1855979264,
0.0263857972,
-0.4029696286,
0.258600384,
0.0187966861,
0.0338426642,
0.3420663774,
-0.1090375558,
0.1140785366,
0.0074261911,
0.1009621173,
-0.2298307717,
-0.0616123118,
-0.0583052002,
0.0528999716,
0.1004932001,
-0.0807931796,
-0.029965207,
0.2240549475,
-0.1453296542,
0.5065832734,
-0.4068636298,
-0.0270503927,
0.3145807087,
0.1090787947,
0.449596405,
-0.0112946453,
0.3527524471,
-0.5087307692,
-0.3376004398,
0.1896849573,
-0.0802516863,
-0.0203108266,
-0.4732179046,
-0.5903365612,
0.2061622739,
-0.3476193249,
0.2962290645,
-0.0182413682,
0.1656644046,
-0.112688303,
0.1834343523,
-0.2206295431,
0.2286557853,
-0.1790465862,
0.2479861528,
-0.2823167443,
-0.003389294,
0.1613984257,
-0.1582825184,
-0.124928683,
0.2858260274,
-0.1620239317,
0.2359033674,
0.2030139267,
-0.1350349933,
0.1564133465,
0.4539045691,
-0.1938337088,
0.2831211388,
-0.0773665756,
0.0888468772,
0.078004092,
-0.1140511557,
-0.1461127549,
0.2270627022,
0.4083353281,
-0.0326151401,
-0.1881403476,
0.6344338655,
0.0801861137,
0.0685990006,
-0.2457524389,
0.1895561814,
-0.0615426973,
-0.234183386,
-0.2373738885,
-0.3077602088,
-0.0010706966,
-0.1609264612,
0.1954805404,
-0.0249682218,
-0.1262477189,
0.0540264063,
-0.0867679566,
-0.4619656801,
-0.0013348697,
0.3493008018,
0.0624582097,
0.2341093719,
0.7029870152,
0.3712259829,
-0.0397966243,
-0.3196719885,
-0.0188004002,
-0.0711911917,
0.0093133412,
0.2136899531,
0.1183322296,
0.0440301448,
0.3165583611,
0.288967669,
-0.0132552236,
0.0372629836,
0.0755372345,
-0.380962044,
-0.3957485557,
0.2548047602,
-0.2124713808,
0.0100133512,
-0.1032280624,
0.1452223957,
0.0724799559,
0.1129649729,
-0.4067445099,
0.0197545122,
-0.5416102409,
-0.1763852984,
-0.0903903395,
-0.1376824975,
0.0024855442,
0.2650109231,
0.2780073285,
0.1707058251,
-0.2160604298,
-0.3226588666,
-0.061407797,
0.0523256771,
0.1314619631,
0.1478698254,
-0.2413244694,
-0.3203827739,
-0.0740059987,
0.3170636296,
-0.1286108792,
-0.0382289439,
0.0708729848,
0.3496510684,
0.0035032574,
0.025289258,
-0.0936607271,
0.2850466967,
-0.1372587234,
-0.0343023352,
0.0765367597,
0.1217169017,
0.1666173637,
-0.0452564098,
-0.3469083607,
0.0563662462,
0.1295735687,
0.0026259769,
-0.0309156906,
-0.153149724,
0.0734743476,
-0.1278026998,
0.1320957839,
0.5306504369,
-0.2250747532,
-0.2179570794,
0.0909497142,
0.3123807013,
-0.2310646772,
0.2480466068,
-0.2824625969,
0.0132379159,
-0.0537812263,
0.1957370788,
-0.21509552,
-0.1293255091,
-0.0300090872,
0.1327186078,
0.1368074268,
0.1238770261,
0.0107434839,
0.3166517913,
-0.2526704073,
-0.1326472461,
0.2524023652,
0.1837850958,
-0.057935711,
0.4016676247,
-0.3799147904,
0.042769108,
-0.1585953981,
0.3562552035,
0.1159766316,
-0.3820241988,
-0.0618342124,
0.3805196881,
0.0734973997,
-0.4506345391,
-0.3727972209,
0.4307152331,
0.1382678747,
-0.0312945023,
0.0918879434,
0.2125878185,
-0.4361152351,
-0.2103605717,
-0.1892080158,
-0.0458008274,
-0.1491173506,
-0.0098614115,
0.0262135454,
0.0587635078,
0.123958908,
0.219406113,
-0.0067832768,
-0.3287951946,
0.2241203338,
0.2449514866,
-0.3615394533,
-0.2153164595,
0.2987223864,
0.0637277216,
0.2853658199,
0.3019365072,
-0.1928013265,
0.281584084,
0.4341526926,
-0.3539812863,
0.0686115772,
-0.0249796174,
-0.0522809774,
0.0304843727,
0.3618320227,
0.3311665654,
0.4536408782,
0.3099972606,
0.1705660969,
-0.1611032486,
0.1405385733,
0.1924779117,
0.0576294959,
-0.0661226213,
0.5304341316,
0.041904401,
0.0930425674,
-0.1055201069,
0.2225124687,
-0.400580734,
-0.1301392466,
0.1982860714,
0.262513876,
0.1857814342,
-0.234247461,
0.1494354308,
-0.2071269006,
0.3105294704,
0.3286705017,
0.500690043,
-0.4303506017,
0.1608487219,
-0.4329150915,
0.2768634558,
0.1256213933,
-0.130792141,
-0.1068228111,
0.119424589,
-0.1111040786,
-0.0143293273,
0.1969832927,
-0.0060374062,
0.1079829782,
-0.154990375,
-0.2892764211,
0.1259484589,
0.0802689195,
0.0460335277,
0.0018901075,
-0.0472124107,
0.0844696313,
-0.4870573878,
0.1282547861,
-0.3443618119,
-0.3882578909,
0.201964274,
-0.0433561169,
0.2446193397,
-0.0467390642,
0.1558376253,
-0.0514057502,
0.0405547246,
-0.0031451194,
-0.1967607737,
-0.1437195539,
-0.0071742209,
0.2906821072,
-0.0417028442,
-0.1355443597,
0.2434596121,
-0.2620758116,
0.2542634308,
-0.1207382753,
-0.0912979022,
-0.2947991192,
-0.0520456657,
0.1674501151,
-0.0951960012,
0.1116770357,
0.2294795662,
0.0491243452,
0.2940322161,
-0.5586980581,
-0.1086154282,
0.515243113,
0.0938158855,
-0.0625305548,
0.0418021679,
0.1600453109,
0.0820968002,
0.0147418613,
-0.264685452,
0.1551653296,
0.2506594658,
-0.0373105891,
0.0082780002,
0.3977274895,
0.1739771515,
0.1924736351,
-0.1579852104,
-0.1946326196,
0.2570955455,
0.1329276264,
-0.0124456184,
0.0632943958
] |
https://github.com/huggingface/datasets/issues/1167 | ❓ On-the-fly tokenization with datasets, tokenizers, and torch Datasets and Dataloaders | We're working on adding on-the-fly transforms in datasets.
Currently the only on-the-fly functions that can be applied are in `set_format` in which we transform the data in either numpy/torch/tf tensors or pandas.
For example
```python
dataset.set_format("torch")
```
applies `torch.Tensor` to the dataset entries on-the-fly.
We plan to extend this to user-defined formatting transforms.
For example
```python
dataset.set_format(transform=tokenize)
```
What do you think ? | Hi there,
I have a question regarding "on-the-fly" tokenization. This question was elicited by reading the "How to train a new language model from scratch using Transformers and Tokenizers" [here](https://huggingface.co/blog/how-to-train). Towards the end there is this sentence: "If your dataset is very large, you can opt to load and tokenize examples on the fly, rather than as a preprocessing step". I've tried coming up with a solution that would combine both `datasets` and `tokenizers`, but did not manage to find a good pattern.
I guess the solution would entail wrapping a dataset into a Pytorch dataset.
As a concrete example from the [docs](https://huggingface.co/transformers/custom_datasets.html)
```python
import torch
class SquadDataset(torch.utils.data.Dataset):
def __init__(self, encodings):
# instead of doing this beforehand, I'd like to do tokenization on the fly
self.encodings = encodings
def __getitem__(self, idx):
return {key: torch.tensor(val[idx]) for key, val in self.encodings.items()}
def __len__(self):
return len(self.encodings.input_ids)
train_dataset = SquadDataset(train_encodings)
```
How would one implement this with "on-the-fly" tokenization exploiting the vectorized capabilities of tokenizers?
----
Edit: I have come up with this solution. It does what I want, but I feel it's not very elegant
```python
class CustomPytorchDataset(Dataset):
def __init__(self):
self.dataset = some_hf_dataset(...)
self.tokenizer = BertTokenizerFast.from_pretrained("bert-base-uncased")
def __getitem__(self, batch_idx):
instance = self.dataset[text_col][batch_idx]
tokenized_text = self.tokenizer(instance, truncation=True, padding=True)
return tokenized_text
def __len__(self):
return len(self.dataset)
@staticmethod
def collate_fn(batch):
# batch is a list, however it will always contain 1 item because we should not use the
# batch_size argument as batch_size is controlled by the sampler
return {k: torch.tensor(v) for k, v in batch[0].items()}
torch_ds = CustomPytorchDataset()
# NOTE: batch_sampler returns list of integers and since here we have SequentialSampler
# it returns: [1, 2, 3], [4, 5, 6], etc. - check calling `list(batch_sampler)`
batch_sampler = BatchSampler(SequentialSampler(torch_ds), batch_size=3, drop_last=True)
# NOTE: no `batch_size` as now the it is controlled by the sampler!
dl = DataLoader(dataset=torch_ds, sampler=batch_sampler, collate_fn=torch_ds.collate_fn)
``` | 63 | ❓ On-the-fly tokenization with datasets, tokenizers, and torch Datasets and Dataloaders
Hi there,
I have a question regarding "on-the-fly" tokenization. This question was elicited by reading the "How to train a new language model from scratch using Transformers and Tokenizers" [here](https://huggingface.co/blog/how-to-train). Towards the end there is this sentence: "If your dataset is very large, you can opt to load and tokenize examples on the fly, rather than as a preprocessing step". I've tried coming up with a solution that would combine both `datasets` and `tokenizers`, but did not manage to find a good pattern.
I guess the solution would entail wrapping a dataset into a Pytorch dataset.
As a concrete example from the [docs](https://huggingface.co/transformers/custom_datasets.html)
```python
import torch
class SquadDataset(torch.utils.data.Dataset):
def __init__(self, encodings):
# instead of doing this beforehand, I'd like to do tokenization on the fly
self.encodings = encodings
def __getitem__(self, idx):
return {key: torch.tensor(val[idx]) for key, val in self.encodings.items()}
def __len__(self):
return len(self.encodings.input_ids)
train_dataset = SquadDataset(train_encodings)
```
How would one implement this with "on-the-fly" tokenization exploiting the vectorized capabilities of tokenizers?
----
Edit: I have come up with this solution. It does what I want, but I feel it's not very elegant
```python
class CustomPytorchDataset(Dataset):
def __init__(self):
self.dataset = some_hf_dataset(...)
self.tokenizer = BertTokenizerFast.from_pretrained("bert-base-uncased")
def __getitem__(self, batch_idx):
instance = self.dataset[text_col][batch_idx]
tokenized_text = self.tokenizer(instance, truncation=True, padding=True)
return tokenized_text
def __len__(self):
return len(self.dataset)
@staticmethod
def collate_fn(batch):
# batch is a list, however it will always contain 1 item because we should not use the
# batch_size argument as batch_size is controlled by the sampler
return {k: torch.tensor(v) for k, v in batch[0].items()}
torch_ds = CustomPytorchDataset()
# NOTE: batch_sampler returns list of integers and since here we have SequentialSampler
# it returns: [1, 2, 3], [4, 5, 6], etc. - check calling `list(batch_sampler)`
batch_sampler = BatchSampler(SequentialSampler(torch_ds), batch_size=3, drop_last=True)
# NOTE: no `batch_size` as now the it is controlled by the sampler!
dl = DataLoader(dataset=torch_ds, sampler=batch_sampler, collate_fn=torch_ds.collate_fn)
```
We're working on adding on-the-fly transforms in datasets.
Currently the only on-the-fly functions that can be applied are in `set_format` in which we transform the data in either numpy/torch/tf tensors or pandas.
For example
```python
dataset.set_format("torch")
```
applies `torch.Tensor` to the dataset entries on-the-fly.
We plan to extend this to user-defined formatting transforms.
For example
```python
dataset.set_format(transform=tokenize)
```
What do you think ? | [
-0.0571535118,
-0.0378621221,
0.0511645451,
-0.0909031034,
0.1780219972,
-0.0221669544,
0.5987791419,
0.0828894153,
-0.3151783347,
-0.0732152686,
0.1041464582,
0.2624969184,
-0.2840219736,
0.0880035758,
0.1834014356,
-0.0820700675,
0.2904807925,
0.0297531877,
0.1173341498,
0.1771769375,
0.1671276093,
-0.3500301242,
-0.2116544545,
0.0744798779,
-0.4641672671,
-0.3110950589,
-0.2085752338,
-0.3593769968,
-0.1359571368,
-0.4139527678,
0.1105542183,
0.3210943937,
0.5333425403,
0.5197012424,
-0.0001220133,
0.0060743792,
-0.0021984659,
-0.0038486887,
-0.2255192995,
-0.0814791024,
0.5955740213,
-0.208648175,
0.0416742153,
-0.1967038065,
0.1241503581,
-0.3029718697,
-0.0499144122,
-0.3180964291,
0.4491653144,
-0.1373938322,
0.050225284,
0.3842610121,
-0.1409322619,
0.1993174255,
-0.0296620186,
0.234947145,
-0.0849568397,
-0.296664983,
0.3195875883,
-0.1833722442,
-0.2352820337,
0.0610688552,
-0.1143953353,
-0.3018169701,
0.3582297564,
-0.0890046284,
-0.4720636606,
-0.2796251476,
-0.1780115366,
0.0847610012,
0.1383999884,
-0.4279211164,
-0.5727865696,
-0.4943037331,
-0.0471202508,
0.0320062935,
-0.3290809691,
0.0610616729,
-0.0465174504,
-0.0024524403,
-0.4008657336,
-0.1909391284,
-0.0380677767,
0.1802808046,
-0.1636808962,
0.37746346,
-0.0297227334,
0.2500402629,
-0.1865843534,
-0.2411310971,
0.3104635179,
-0.3286827803,
0.1768819541,
0.4461231828,
-0.2475444078,
-0.1767546386,
-0.0567022972,
-0.3885207772,
0.2258033454,
-0.0604092218,
-0.111022152,
0.1192574799,
-0.1659701169,
-0.0158330034,
0.0752695352,
0.2692530155,
0.1779617816,
0.2152024359,
0.1101557091,
-0.417388916,
0.0087661175,
0.0452199392,
-0.3886713982,
0.2294881642,
0.0866203159,
0.0366171673,
-0.3295237422,
0.1210334077,
0.1942293197,
-0.0327315703,
-0.3979843557,
0.0642561913,
0.0989569426,
-0.0077738971,
-0.1188002154,
0.0148154143,
-0.0021531349,
0.1808407903,
0.0536758862,
-0.0783504993,
0.0499115996,
0.0043776412,
-0.1358769536,
0.0813596696,
-0.0152884023,
0.1048123688,
-0.036640849,
0.1655039638,
0.19090949,
0.0099895578,
0.2136274278,
-0.0565728284,
0.1137496457,
-0.1060927212,
-0.0452968031,
0.1164472103,
0.1570578516,
0.0914213881,
-0.2916375399,
0.2853477597,
-0.0932709649,
-0.2645078599,
0.2515755594,
0.033204414,
-0.3945994675,
-0.2396768183,
-0.3217058778,
0.3632384837,
0.1968056113,
0.0486056842,
0.0922084972,
-0.0612006187,
0.1684159935,
0.0173153132,
0.3184633255,
0.2123428285,
-0.2312633544,
-0.3678818941,
0.6276066303,
0.1510906667,
0.3359798491,
0.0259947889,
-0.4712958336,
0.4807202518,
0.0094877305,
0.2042943388,
0.3170518875,
-0.3109451532,
-0.0012996825,
0.2392291129,
-0.1839887947,
-0.0250469279,
-0.0423633233,
0.0214186441,
0.4540835917,
0.0961506367,
0.0890528113,
0.5082173347,
-0.0558253899,
0.074590832,
-0.0885537341,
-0.2710236907,
0.3134453893,
0.0899351537,
0.1590591818,
0.0109739043,
-0.087145485,
0.2193922698,
-0.0712974072,
-0.1872736365,
0.1785725653,
-0.1451716572,
-0.1254775226,
0.1383183897,
0.0199397821,
-0.0620584711,
-0.1841976047,
0.201585874,
-0.0898047462,
0.1972801983,
-0.1764646471,
-0.2715863585,
-0.0019045915,
0.1634164602,
-0.0177417807,
-0.0604433827,
-0.0342267044,
-0.2171965092,
-0.0614100099,
0.0688111633,
-0.4198592603,
-0.0446388125,
-0.3517663479,
0.1824168414,
-0.0726609007,
0.1820559651,
0.178625077,
-0.0246585645,
-0.2389157414,
0.1298801005,
0.0365734547,
-0.2153057307,
0.0737865269,
0.2548118234,
0.0257012155,
0.0530785136,
-0.1508051157,
0.4075115621,
0.2054134905,
0.2179681808,
0.064851664,
0.0144562637,
0.022805443,
-0.0111624608,
-0.0500634201,
0.6243647933,
0.1738142222,
0.4188342094,
0.0587215535,
-0.0847590864,
0.1361265779,
0.1478971392,
-0.2176664472,
0.1060156822,
-0.1907913536,
0.1404688805,
0.6474382877,
-0.0946734473,
-0.0212152861,
-0.041849196,
-0.1164316535,
-0.19203116,
0.0326263271,
0.0857618675,
-0.4482502341,
-0.1540812403,
0.0124113979,
-0.2460064441,
-0.0396871045,
0.0382440612,
0.1952546984,
-0.0384143628,
0.0311053544,
0.0237773545,
0.119640246,
0.2907429338,
-0.0952783823,
-0.0264542848,
0.0945419669,
0.3982780874,
-0.1978991032,
-0.2764561474,
0.1561106145,
0.0813876912,
-0.0881063864,
0.2645244002,
-0.1462127715,
0.0312482882,
-0.0986714065,
-0.5169736743,
-0.4592523575,
-0.0376530215,
0.0611966625,
-0.1395253092,
0.1332173645,
0.3374575377,
-0.1167317182,
0.6314310431,
0.0603884682,
-0.2420098484,
0.2137721181,
-0.2343091369,
-0.0964061618,
-0.084143497,
0.2045978308,
-0.3338747621,
0.2849548161,
0.2845368981,
0.1369120479,
-0.1833367199,
-0.4072170556,
0.3090747297,
0.0721439123,
0.1843275726,
-0.0469126962,
-0.3485415578,
-0.0848901868,
-0.2920383215,
-0.0587292798,
-0.2009663135,
-0.0947478339,
-0.0253327005,
-0.077039063,
0.0565333702,
0.0295353718,
0.0890285373,
-0.3233363032,
0.0183351748,
0.0809078291,
-0.0283999257,
0.0759999678,
-0.0228996091,
-0.2220891118,
0.1977064908,
-0.2201232612,
-0.0618929714,
0.0560034551,
-0.4251794219,
0.3280377984,
0.0323305055,
-0.1505910307,
-0.2655515075,
-0.275026679,
0.1464088559,
0.45226717,
-0.2196104676,
-0.0494643413,
-0.1388581693,
0.1196651757,
-0.2595692277,
0.1129313186,
0.326393038,
0.0525321923,
0.1158334464,
0.0058208038,
0.2495070845,
-0.0138156842,
-0.2552536726,
0.052987434,
0.2193771899,
0.32254076,
0.2826948166,
1.0907585621,
-0.2653214931,
-0.4417158961,
0.1172583103,
-0.0038027528,
0.083106555,
-0.0358709507,
-0.2238187045,
-0.1119771823,
-0.3827898502,
-0.042990569,
0.208730042,
0.1094156876,
-0.0801463798,
-0.002027767,
-0.0019529322,
-0.0970237851,
-0.2663556933,
0.2293045968,
-0.4422942698,
0.4132720232,
-0.094194144,
0.2549637258,
-0.4347328246,
-0.0247465055,
0.0848490223,
0.2052981108,
0.409935236,
0.0938754678,
-0.5661997199,
0.2353844196,
-0.2332431972,
0.1201213375,
0.0206239503,
0.7507365346,
0.3363955617,
-0.2519696951,
0.1290067732,
-0.1288744658,
0.3085367978,
0.3416006267,
-0.163487941,
0.1156840101,
-0.2812086344,
-0.2312755287,
-0.0179707762,
-0.1686774343,
0.2481060028,
0.1464393139,
0.455340147,
-0.225369215,
-0.2425400913,
-0.3524318039,
0.2437627017,
0.0014686633,
-0.2186923176,
0.057122834,
0.2255404592,
-0.5106266141,
0.3068699539,
0.2126398385,
0.0954996049,
-0.0619948544,
0.0917518139,
-0.4535752833,
-0.0850201249,
0.0770282298,
0.0725759417,
-0.1561037898,
0.0679717883,
0.2716445625,
0.096051842,
-0.1259211153,
-0.0133092683,
-0.0631098971,
0.1258787662,
-0.6170737743,
0.0007484597,
0.2541422844,
0.4118501544,
0.1819607764,
0.0240558162,
0.48595801,
-0.3031938672,
-0.0094070723,
-0.3962802887,
0.5464118719,
0.0242228825,
-0.0252989791,
-0.5309439301,
-0.4034655392,
0.3645170629,
0.1773572266,
-0.189682126,
0.322804302,
0.0861281827,
-0.3093383014,
0.4607324004,
0.3549748361,
0.8964496255,
-0.023643421,
0.3979175687,
-0.2223598957,
0.2455899566,
0.3934747279,
-0.4777960777,
0.0300306883,
-0.3676273525,
0.1046173126,
-0.0831756666,
-0.0768413395,
0.0131578548,
0.3261484504,
0.0544816926,
0.005042505,
-0.0008295811,
0.4058941305,
0.0635088459,
0.1367976964,
-0.0398490094,
-0.4966394007,
0.0374903828,
0.0334416926,
-0.0647485256,
0.2863084078,
-0.1428420544,
0.2848938704,
0.1318842024,
-0.1304993033,
-0.056355387,
-0.1178942397,
-0.2638393641,
0.1771227717,
-0.0635790825,
-0.3627168536,
0.2256927043,
0.1014466658,
0.3591662347,
0.3173240125,
0.1744780093,
0.0409537964,
-0.176188007,
0.0043443735,
-0.1403594464,
-0.2208966762,
0.3551126719,
0.1750168651,
0.1721566916,
0.0201685783,
-0.0730723366,
-0.0931453705,
-0.3597795963,
0.089561604,
0.7337260842,
-0.2959561944,
0.1770381927,
0.1553661674,
0.2993139327,
-0.0336978398,
-0.0082002217,
0.1381344795,
-0.2139063478,
0.1079950258,
-0.0951232389,
-0.0639025718,
0.0267542992,
0.2608215213,
-0.1543871909,
-0.4901171923,
0.2969225049,
0.0133026112,
-0.1729752272,
0.0567418896,
0.5062626004,
0.4875361919,
-0.2112669498,
-0.1471052766,
-0.0453535095,
0.0765919015,
-0.0697291419,
0.3390695751,
0.238278389,
-0.2658874094,
-0.1052817777,
-0.1975066364,
-0.5801360011,
0.0118161291,
0.1268418133,
0.2358638197,
0.3718903959,
0.322717458,
-0.2153470814,
0.2921596467,
-0.1673696935,
0.0981534198,
0.1467701346,
0.3098250926,
-0.096134685,
-0.1994108409,
-0.2798695266,
0.0072559961,
-0.076161705,
0.1189479008,
0.1027219221,
-0.1377083063,
-0.3678581715,
0.224845469,
0.4112251997,
-0.1652943939,
0.0293414369,
0.1079044417,
-0.083822988,
-0.3125032187,
0.2672369778,
0.258184433,
-0.0553497933,
0.0948166996,
0.4142945707,
0.4423991442,
-0.4079291523,
-0.101942569,
0.2915416658,
0.2471210063,
0.34785676,
0.1327594519,
0.1289528459,
0.0092223808,
-0.062277101,
0.3119685352,
0.6525683999,
0.1479202211,
0.0786887035,
-0.048220139,
0.3042081594,
-0.0931297615,
0.0728726983,
0.367718935,
-0.0939883441,
-0.200684011,
0.8060769439,
0.0840584859,
-0.0009938724,
-0.2954791486,
0.0068539227,
-0.3402723372,
-0.017260015,
0.2794939578,
0.2354650199,
0.4467674494,
-0.2362061292,
-0.1310013384,
0.5702824593,
-0.0704080686,
0.1065292805,
0.2691483498,
-0.1352083683,
0.0443967544,
0.2258825898,
0.2633190155,
0.1828677654,
-0.002569905,
-0.1095884368,
0.7173181176,
0.155457601,
-0.0087365704,
0.1039082184,
-0.3417071402,
-0.1907453239,
-0.1912742853,
0.4870997667,
0.250733763,
-0.2644145489,
0.4150306582,
-0.0215167385,
-0.0567134731,
0.1600337178,
0.3881201148,
-0.0895277932,
-0.1384504437,
-0.1139995307,
-0.0830820799,
-0.2152477801,
-0.0731720105,
-0.0566965453,
-0.3669995666,
-0.3092120588,
-0.0178291164,
0.0673564747,
-0.1642955393,
0.078245461,
0.2478358001,
0.222284466,
-0.2409061342,
0.0247605573,
-0.0885447338,
0.2468531579,
-0.1093228012,
-0.0642322898,
0.074765034,
0.1818752438,
-0.3244398236,
0.0828918591,
-0.3606891036,
0.2744426131,
0.0858665258,
0.1658400148,
-0.2622158229,
-0.1543387473,
0.1312733293,
-0.0612488203,
-0.0922188908,
-0.1838852465,
0.0922470316,
-0.3349149823,
-0.1584738195,
0.5190864205,
0.1012964994,
-0.0951880366,
-0.028184833,
0.151673004,
-0.2014424354,
0.1195522994,
0.3971822858,
-0.1025987715,
-0.0166331977,
-0.0552158877,
0.0153925596,
0.0182228573,
0.3347091079,
0.2925766706,
0.0867860094,
-0.1991383433,
0.0263312031,
-0.3334692121,
0.001762278,
0.2479096949,
-0.0928166881,
-0.267165184,
-0.1437852681,
0.159813419,
0.2196347415,
-0.3998705149,
0.0179352518,
-0.2632225156,
0.1405720562,
-0.1145294681,
0.1985364556,
-0.2804020643,
0.2988178432,
0.0378650352,
-0.0321964733,
-0.1026837677,
0.2618410885,
-0.1494311839,
0.1269628555,
-0.2775554955,
0.0672770813,
-0.4449778497,
0.4623492956,
0.0617385954,
0.5032163858,
0.0640156865,
0.1754671484,
-0.024874106,
-0.0034250421,
-0.3323584795,
0.1869721413,
-0.202745676,
0.0324720927,
-0.1831372678,
-0.4176795781,
-0.207297653,
-0.3010693192,
0.0893361121,
-0.4719411135,
-0.4294627011,
0.1154171079,
-0.3035819829,
0.0210232325,
-0.034586411,
0.5569844842,
0.0185218509,
0.3111115694,
-0.2615815401,
-0.1516498178,
0.3447656631,
-0.4638012052,
-0.2019293457,
-0.2953724861,
-0.2560541034,
0.3270574212,
0.1150665134,
-0.4861241281,
-0.0298657268,
0.4179374278,
-0.1744672656,
0.1982422769,
0.0635632202,
0.1041087061,
-0.234990567,
-0.3590207994,
0.5853843689,
-0.1504395157,
0.1299425662,
-0.0261252597,
-0.3002536893
] |
https://github.com/huggingface/datasets/issues/1110 | Using a feature named "_type" fails with certain operations | Thanks for reporting !
Indeed this is a keyword in the library that is used to encode/decode features to a python dictionary that we can save/load to json.
We can probably change `_type` to something that is less likely to collide with user feature names.
In this case we would want something backward compatible though.
Feel free to try a fix and open a PR, and to ping me if I can help :) | A column named `_type` leads to a `TypeError: unhashable type: 'dict'` for certain operations:
```python
from datasets import Dataset, concatenate_datasets
ds = Dataset.from_dict({"_type": ["whatever"]}).map()
concatenate_datasets([ds])
# or simply
Dataset(ds._data)
```
Context: We are using datasets to persist data coming from elasticsearch to feed to our pipeline, and elasticsearch has a `_type` field, hence the strange name of the column.
Not sure if you wish to support this specific column name, but if you do i would be happy to try a fix and provide a PR. I already had a look into it and i think the culprit is the `datasets.features.generate_from_dict` function. It uses the hard coded `_type` string to figure out if it reached the end of the nested feature object from a serialized dict.
Best wishes and keep up the awesome work! | 74 | Using a feature named "_type" fails with certain operations
A column named `_type` leads to a `TypeError: unhashable type: 'dict'` for certain operations:
```python
from datasets import Dataset, concatenate_datasets
ds = Dataset.from_dict({"_type": ["whatever"]}).map()
concatenate_datasets([ds])
# or simply
Dataset(ds._data)
```
Context: We are using datasets to persist data coming from elasticsearch to feed to our pipeline, and elasticsearch has a `_type` field, hence the strange name of the column.
Not sure if you wish to support this specific column name, but if you do i would be happy to try a fix and provide a PR. I already had a look into it and i think the culprit is the `datasets.features.generate_from_dict` function. It uses the hard coded `_type` string to figure out if it reached the end of the nested feature object from a serialized dict.
Best wishes and keep up the awesome work!
Thanks for reporting !
Indeed this is a keyword in the library that is used to encode/decode features to a python dictionary that we can save/load to json.
We can probably change `_type` to something that is less likely to collide with user feature names.
In this case we would want something backward compatible though.
Feel free to try a fix and open a PR, and to ping me if I can help :) | [
0.0078380601,
-0.2019328624,
0.0335743465,
-0.0459200665,
0.3190199137,
0.1368781477,
0.4551842809,
0.4090700746,
0.1596743315,
0.0305587463,
0.4140093327,
0.4669059217,
0.0361164957,
0.5192950368,
-0.3772079647,
-0.0860041454,
0.1542394161,
-0.056000717,
-0.0117229205,
0.2065546513,
-0.4115030766,
0.1005300134,
-0.1578255594,
0.3828087747,
-0.1612657011,
0.1273504645,
0.2941845059,
-0.1226473972,
-0.1234724745,
-0.1726846248,
0.2820241749,
-0.1374553591,
-0.1186064035,
0.4063170552,
-0.0001096195,
-0.0599152781,
0.4927602112,
0.0518485159,
-0.2427798957,
-0.6010842323,
-0.2757982612,
-0.370813787,
0.3751625717,
-0.4024412036,
0.1444877237,
-0.0466071256,
-0.000531358,
-0.4921486974,
0.1850105524,
0.2458362877,
0.2882340848,
0.0291188043,
0.2679186165,
-0.2092796862,
0.3826480806,
0.5050954819,
-0.3839738071,
-0.2925158441,
-0.0465638116,
-0.1764738411,
0.5520855784,
0.1724974066,
-0.1376741678,
-0.1723727435,
0.3057538569,
0.1554477513,
-0.2008393854,
-0.2484652996,
0.1735779941,
0.2742729783,
0.4289374053,
-0.1145281047,
-0.2597035766,
0.0091513284,
-0.1126080006,
-0.2941512465,
0.2335267365,
-0.2032428831,
0.0832204223,
-0.0831840187,
0.0906341746,
-0.0753071532,
-0.0665573552,
0.2105641365,
-0.3794057071,
-0.1487881392,
-0.1780241728,
0.258420229,
-0.1497170329,
-0.4512357414,
0.0153091839,
0.0681742206,
0.0999334082,
-0.0704966635,
-0.3838433921,
-0.0258023776,
-0.1406578571,
-0.4826210141,
0.1313471794,
-0.1265292019,
-0.1564218998,
0.0742508024,
0.0907493979,
0.3832582831,
0.0959514454,
0.1200558022,
0.2974462807,
0.2780846059,
0.2569692433,
-0.0820533559,
-0.2062656581,
-0.2184763551,
0.0611145943,
0.0515847318,
-0.0175608099,
-0.3705219328,
0.5927597284,
-0.211349681,
-0.3760259748,
0.1572353542,
-0.1641096175,
0.0052229413,
-0.013390555,
0.2600544393,
0.056404531,
0.1037955061,
0.1861784011,
0.3259424269,
0.2374455184,
0.1141864508,
-0.1411480159,
-0.0845823586,
-0.151991114,
-0.1330148429,
-0.1320184022,
0.1743546873,
-0.046156548,
-0.0614384748,
-0.0201133024,
-0.0935074836,
0.0563109443,
0.0819186941,
-0.2206216007,
0.1292036325,
-0.2331810892,
0.1043689102,
0.2374669909,
-0.2826280296,
-0.1736217588,
-0.1181725785,
-0.3802201152,
-0.1871345639,
-0.5376912355,
0.236394614,
0.0096822185,
-0.0684195906,
-0.1012083068,
0.0138348686,
0.3974410594,
-0.106271252,
0.004360449,
-0.0051319236,
0.0021377038,
-0.266171813,
-0.1595338136,
-0.0022620405,
-0.2039353549,
-0.0401689783,
-0.2703148127,
0.3082982898,
0.2345616519,
0.2524323165,
-0.0577438138,
-0.1316458136,
0.0179065038,
0.2042623758,
0.5040897727,
0.0275671296,
0.1945368797,
0.2862775326,
0.0232302174,
0.1791194528,
0.0600975566,
-0.1893274188,
0.1734788716,
-0.215635106,
0.1905262172,
0.1097171232,
-0.020564029,
-0.2330801785,
-0.0655528978,
-0.1836002618,
0.4098138809,
-0.0864174962,
-0.1034861133,
0.2569859922,
0.1207135022,
-0.1224276498,
-0.1491521448,
-0.1833722293,
-0.0162976142,
-0.1180430278,
0.4970185459,
0.346054107,
0.039282281,
-0.2998207808,
-0.4126475155,
0.1512793601,
0.0616788939,
0.1455200464,
-0.3251561522,
-0.3413262665,
-0.2021329254,
0.1106057465,
0.0596766472,
0.3594357073,
0.1491473019,
-0.0784466863,
-0.2967397273,
0.1645858288,
-0.3081687987,
0.0445618816,
-0.0911243334,
-0.0029060442,
-0.4897044599,
0.0612494089,
-0.0507760644,
-0.0232211724,
-0.3492098153,
0.1185406744,
0.2980419695,
0.1508869231,
-0.1748881936,
0.2337076664,
-0.0989083201,
0.0889997408,
-0.1473781466,
0.2635781467,
-0.0428376868,
-0.0335712358,
-0.0107725859,
0.0466815047,
0.177820608,
-0.1940224171,
-0.0110004507,
0.3024354279,
0.4619300365,
0.3414459527,
-0.1291919053,
0.3411836028,
0.1077325866,
-0.1361241639,
-0.221174255,
-0.3081471622,
0.1069939658,
-0.1612019539,
-0.6002208591,
-0.1709657758,
-0.303319037,
0.0033322594,
0.4463394582,
0.0418111347,
0.38683635,
0.2647478878,
0.0387373231,
0.1389839798,
-0.311075598,
-0.0370216779,
0.4198586047,
0.0198577903,
-0.1243729964,
0.0913058668,
-0.1662595719,
-0.0383374132,
0.2877165079,
0.1083024144,
0.007992724,
-0.0387190394,
0.2290230244,
0.016844552,
-0.0823422819,
-0.1836354882,
0.1096567512,
0.0418762565,
-0.2699270248,
0.3570947647,
-0.3549265862,
0.2029598206,
0.0300162826,
-0.0922259986,
-0.1036200747,
-0.4741550684,
-0.0895493925,
0.4128105044,
-0.1608475447,
0.1376711279,
-0.0822685286,
0.0875166506,
0.1381705254,
-0.311317116,
-0.1339860857,
-0.2423391044,
-0.0953630358,
0.0726689771,
0.1683611423,
-0.0640013143,
0.2009730786,
0.2082196921,
-0.1990566552,
-0.4550853372,
-0.4419570565,
-0.0097706104,
-0.3552285135,
0.2507648468,
0.4034195244,
-0.0415576547,
-0.2243296951,
-0.205441907,
0.2690586448,
-0.094388552,
-0.137415722,
0.4114759266,
0.0861621946,
-0.0328209214,
-0.1460817009,
-0.3563121259,
-0.1373303831,
-0.3598008156,
0.3746549189,
-0.1349002421,
0.1130202636,
0.0065148529,
-0.1802770644,
-0.0881613344,
0.2241379172,
-0.0194159672,
-0.4994115233,
0.0871524066,
0.2874121666,
-0.1887971461,
-0.1905929446,
0.0700725764,
-0.0170534458,
-0.2108182311,
0.2952625751,
-0.1421576738,
0.0074794032,
-0.178519696,
0.1600125879,
0.03585333,
0.0128938602,
0.0746346489,
0.261131227,
-0.1116136536,
-0.0501779765,
-0.0688648298,
0.1660798788,
0.4550358355,
0.267175287,
0.3056824803,
0.4348926246,
-0.1675059497,
0.0459151343,
-0.0589107014,
-0.194531545,
0.4369630218,
-0.0955307782,
-0.0594442636,
-0.1465326995,
-0.2718069553,
-0.2213055342,
-0.3195913136,
-0.0297861416,
-0.0941235572,
-0.2576061487,
-0.1811710447,
-0.1336783171,
0.0806878731,
0.0154538872,
-0.2368083149,
0.1843158156,
-0.180285722,
0.1941886991,
-0.0336317793,
-0.0165208764,
-0.0621150993,
-0.0999419615,
0.0031907819,
0.0962002948,
-0.1880305409,
-0.2310651243,
-0.4673824906,
-0.3416423798,
-0.2804400623,
0.6000745893,
-0.1661687642,
0.3577219546,
-0.0791718289,
-0.2142571807,
-0.0344756134,
0.2675848305,
0.5227480531,
-0.3478592932,
-0.3228452504,
0.1956055015,
-0.121750012,
-0.1594739109,
-0.0842685699,
-0.1011982486,
0.2628878653,
-0.2334237546,
0.4302036762,
-0.2847669721,
-0.0198168419,
0.1237879843,
0.1419467628,
-0.1319364756,
0.0143825933,
-0.1187298968,
-0.3412689865,
-0.1650188565,
-0.2368632853,
0.1955194175,
0.1813246757,
-0.15218997,
-0.1367296129,
-0.5841813684,
0.0194472857,
0.3518447578,
0.1724546701,
0.1786124408,
-0.4430754483,
0.1557588279,
-0.0179377813,
0.3297302127,
0.1664588302,
0.381391108,
0.2173554152,
-0.2755932808,
0.0208717454,
-0.1797061414,
0.2482610047,
0.1482815146,
-0.1059617177,
0.4874867499,
-0.1478769183,
0.127898559,
-0.1236968189,
-0.244906202,
0.5630016327,
0.1281274855,
-0.2554308176,
-0.3126143217,
0.5425534248,
0.2307956815,
0.0061522443,
0.1921420693,
0.2555726171,
-0.3521589041,
0.6077805758,
-0.0389152654,
0.9458512664,
0.1161482036,
-0.0305244084,
0.0317024812,
0.1691476852,
0.5663942099,
-0.1443420798,
-0.056498602,
-0.2901567221,
-0.2272482067,
-0.1399279684,
-0.0785671175,
0.4586825073,
-0.1653611809,
-0.4343217909,
0.3294342756,
-0.5950176716,
0.480612129,
-0.0699771643,
0.0144303972,
-0.0347237848,
-0.181963712,
-0.0143154254,
0.1080075055,
0.0628187805,
0.1485926956,
0.1438821554,
-0.0821315125,
-0.0015155033,
-0.1846722364,
-0.4210828543,
-0.0368769988,
0.3110012114,
0.4263424575,
0.1029005647,
0.0560738184,
0.3445006609,
0.0459111743,
0.3193941712,
0.0747066736,
-0.1326286495,
0.1109391525,
0.2535713613,
0.0141704734,
0.0445939749,
0.0104792537,
0.1669879258,
-0.0419621393,
-0.2480621338,
0.2486106008,
0.2197609544,
0.1183565781,
-0.1384520978,
0.072887376,
-0.0461134501,
-0.5918127894,
-0.314491719,
-0.2867547274,
-0.0953658894,
-0.319306165,
0.1779659986,
0.0198971722,
-0.3198500872,
0.5103647113,
0.0105290236,
-0.0948977321,
-0.0597016886,
0.0650437474,
0.1726640016,
0.0704752132,
0.2992475927,
-0.0189853925,
-0.1513273567,
-0.1551011801,
0.269523412,
0.1913006157,
-0.1429396868,
0.2461663783,
-0.1132730693,
-0.4089079797,
-0.1264113635,
0.4697762728,
-0.0649932846,
0.3313154578,
-0.242182672,
-0.3201698661,
0.0758780986,
0.2685354352,
0.3235093057,
0.0573448054,
-0.4495087564,
0.0709634721,
-0.2450018376,
-0.162945807,
-0.3492008746,
0.1159221306,
-0.2193782181,
0.2333666086,
0.0386609323,
-0.0823003352,
0.4548918009,
-0.1379772872,
0.2539155781,
0.1826851964,
-0.0597854331,
-0.2311907113,
-0.1873538494,
0.1350815296,
0.0328930579,
0.0615718216,
-0.1360835582,
-0.2783342004,
-0.114605695,
-0.0336247198,
-0.0390357226,
0.418695271,
-0.1318441778,
0.154529959,
-0.1778192818,
0.0494907312,
0.1851139665,
0.208556667,
-0.0868913159,
0.0844725519,
-0.1604660451,
0.0181880109,
-0.0597076565,
-0.0194264576,
-0.247619167,
0.155608058,
-0.2354657352,
0.1066052765,
0.3695609868,
-0.1048661172,
-0.2147058696,
0.0280265026,
0.2179191113,
0.7123603225,
-0.1586175263,
-0.1734548956,
0.2851214111,
0.1771648377,
-0.1732672602,
-0.2116283625,
0.2943561077,
-0.0705119222,
0.1391908526,
0.3272453845,
0.1691938192,
0.0255917124,
-0.4620864689,
-0.0384216942,
0.1326922625,
-0.090857476,
0.2415946871,
0.2752797306,
0.0864610747,
0.0974550545,
0.2127743214,
0.2671547234,
0.2359684557,
0.4340643287,
0.1615923494,
0.0765368938,
0.2801214755,
-0.0458559357,
0.438380748,
-0.0370012857,
0.6159648895,
0.1756715626,
-0.2650682628,
0.2208493501,
0.1655958444,
-0.0081437426,
-0.230191946,
-0.1368785203,
-0.2479958683,
0.1035615355,
0.0234740842,
-0.2508147657,
0.0629109293,
-0.1710420698,
-0.3035826981,
-0.4562502205,
-0.0010045778,
0.1679894179,
0.484347105,
-0.1335962862,
0.2562807798,
-0.1984513551,
0.3258995116,
-0.2088284343,
0.3876572251,
-0.0023021887,
-0.1747996658,
0.2231556475,
-0.1649704427,
0.1909561902,
0.0898348838,
0.3307889998,
0.3177857995,
-0.2704295218,
0.1409364939,
-0.1850464046,
-0.2600798607,
0.1971626282,
0.2103597075,
-0.0544073172,
0.0183525309,
0.1896164715,
0.1789620668,
-0.1571465135,
0.0658840463,
-0.0593708977,
0.3009969294,
-0.1975549012,
0.2622720003,
-0.1181360111,
-0.0158589501,
0.0726701692,
-0.0384611078,
-0.3148462474,
-0.4191497862,
0.501968503,
0.2499376088,
0.1965207458,
0.064788349,
0.1188405678,
-0.017960934,
0.2620568573,
0.1194233671,
0.032421466,
0.1013922244,
0.1399136037,
-0.1345527768,
0.3168330193,
-0.308635354,
-0.3098201156,
0.5548020005,
0.2416258454,
0.2531349659,
0.0350246616,
-0.0504590459,
-0.1541439742,
-0.4290824234,
0.1581781358,
-0.3153626621,
-0.4558658898,
0.1596485227,
0.0298871137,
0.0195900798,
-0.2860647142,
0.2710371017,
-0.0433870591,
0.079903461,
-0.3420715332,
-0.0643088818,
0.0267634559,
-0.1564316452,
0.323613137,
0.2117213458,
0.1048997566,
-0.0461544096,
-0.1595768631,
0.1725399345,
-0.3265887499,
-0.2769678831,
0.3132359684,
0.2126340121,
0.1480473131,
-0.0744597539,
0.1867534518,
-0.1731050014,
0.3277276754,
-0.1185578629,
-0.3846749067,
-0.3629051447,
0.2404213548,
0.1940721571,
-0.1020042822,
-0.2771927118,
0.2814822197,
-0.0630972907,
0.3445727229,
0.1085696965,
-0.4713976681,
0.7269508839,
0.1071698591,
-0.6315425038,
0.0681722686,
0.0471900441,
0.325397402,
0.0877634287,
-0.4373452961,
-0.1800642908,
0.2037196457,
-0.0663136467,
0.0399641916,
-0.1014612764,
-0.0084695732,
-0.1823563278,
-0.0703421384,
0.1706640124,
-0.1790299267,
0.1127607375,
0.1726849526,
-0.058183603
] |
https://github.com/huggingface/datasets/issues/1103 | Add support to download kaggle datasets | Hey, I think this is great idea. Any plan to integrate kaggle private datasets loading to `datasets`? | We can use API key | 17 | Add support to download kaggle datasets
We can use API key
Hey, I think this is great idea. Any plan to integrate kaggle private datasets loading to `datasets`? | [
-0.0929649994,
-0.053583961,
-0.3102498353,
-0.0035683082,
0.1154251322,
-0.0199873988,
0.2132153213,
0.1274613738,
0.4255772233,
0.1014181226,
-0.2042620778,
0.6420331597,
-0.0812082514,
0.8870471716,
0.0586068034,
0.035789147,
0.1376737207,
0.1102096364,
0.1666733325,
0.2018526047,
-0.1626318395,
0.0076733613,
-0.1302724779,
-0.1597166657,
0.135650903,
-0.2504243553,
0.0173656642,
-0.1539832652,
-0.3501517773,
-0.4008310735,
0.2865818441,
0.2992351353,
0.2788436115,
0.1203532964,
-0.0000982298,
-0.1139252856,
0.3490461111,
0.0557615645,
-0.2107278258,
0.174895972,
-0.5735139251,
-0.258805573,
0.0168662015,
-0.1636399031,
-0.1123947203,
-0.267808646,
-0.171374917,
-0.3603084981,
0.2351504415,
-0.1250746101,
0.2732907534,
0.0063844761,
0.0885759071,
-0.1921590865,
0.1979541332,
0.1911394745,
-0.1841082871,
-0.163920179,
0.4762830138,
0.0860297903,
0.0310167912,
0.2202866822,
0.2117950916,
-0.1668580472,
0.2060695589,
-0.0416041128,
-0.2298648953,
-0.5424910784,
0.0190904755,
0.022029506,
1.0136522055,
-0.1241829172,
-0.2577559054,
-0.3066718578,
0.0323763825,
0.0141824316,
-0.0678096041,
0.0927638113,
-0.0220896583,
0.179620564,
0.1324839145,
-0.6074898243,
-0.2174337059,
0.1237905845,
0.1043906435,
0.5533359051,
-0.0011595817,
-0.0430267677,
0.1158502251,
-0.165486753,
0.435977906,
-0.137193352,
-0.1044684201,
0.123497352,
-0.1767947972,
-0.2896084785,
-0.0022102394,
0.1693387181,
0.3592154384,
0.347861439,
0.0657123476,
0.3563125134,
-0.1603372991,
-0.0845620707,
0.4710318446,
0.0696585253,
0.2438336462,
-0.0263644475,
0.4169930518,
0.0564145185,
0.2899774015,
0.0078798598,
-0.0219124798,
0.0729434565,
-0.2757553756,
-0.1811765432,
0.0029457523,
-0.0364104919,
0.0814340934,
-0.1260786504,
0.1859477311,
-0.1600488722,
-0.1126902625,
0.1078308821,
-0.1048748791,
0.161776334,
-0.1908888221,
0.0438465625,
0.2076886743,
-0.0576503761,
-0.148518905,
0.005838166,
0.0369172394,
0.1093905196,
0.0658128858,
-0.1096902937,
0.1760619432,
-0.1862026751,
0.277864337,
0.1996491998,
0.1841577142,
0.3225198388,
-0.2182246,
0.064608179,
0.047977604,
-0.1586378068,
-0.3058878481,
-0.1642429978,
-0.0870171264,
0.1231408119,
-0.2252590358,
-0.2828970253,
-0.1214042306,
0.3159555197,
-0.3298625648,
-0.2243255824,
-0.5454106331,
0.3330480754,
-0.1434223801,
-0.1627181619,
0.0098493528,
0.3126564622,
-0.0290232673,
-0.1342368573,
0.0432073735,
-0.0810190961,
-0.1094806343,
-0.2283751369,
-0.1753742695,
-0.1984553784,
-0.0973823965,
0.0002353965,
-0.2214529961,
0.0940402821,
-0.299836129,
0.2068417817,
0.6396177411,
-0.4268698096,
-0.3617953062,
0.2395074815,
-0.1071418598,
-0.1990328431,
0.0805613622,
0.2385321558,
0.2538702786,
0.0339548178,
0.0562471114,
0.3365940452,
-0.0096011767,
-0.048179999,
-0.2135483772,
-0.4054668546,
-0.0370903537,
0.2970249951,
0.0025688128,
-0.0871418566,
0.3029794693,
-0.1463076323,
0.1826407611,
0.0095971748,
0.1907446384,
-0.1902963668,
0.4004259706,
-0.1466525644,
0.1918909252,
0.0919798687,
-0.3843578696,
0.1946883202,
-0.3316364586,
0.0416461155,
-0.0040100338,
-0.3451949656,
-0.1721147299,
0.0983396322,
-0.3835197091,
0.0261558201,
0.2060835361,
-0.296652019,
0.0946114361,
0.1269973367,
-0.2230923325,
0.2289735228,
0.2138631344,
0.0540140979,
-0.1750798076,
0.2178050429,
-0.2335839123,
0.2678090334,
0.0801348761,
0.0497056656,
-0.0649685785,
-0.1727432311,
0.2545925379,
-0.0741072074,
0.1624653041,
0.4052411616,
0.4697450399,
-0.0727108195,
0.4805855453,
-0.0431595221,
0.1689445823,
0.074814789,
0.1771880984,
-0.097950384,
-0.2475567758,
0.3408472836,
0.0691554919,
-0.0139366537,
-0.176381439,
-0.0046357284,
0.1185569614,
0.0576759353,
-0.1215806305,
-0.1760540605,
-0.0643195659,
-0.3711439669,
-0.0425795168,
-0.160427928,
-0.1076765954,
0.4074070454,
0.036618527,
-0.101471886,
0.1294517368,
0.0963314325,
-0.0978769511,
-0.1545976847,
0.3012616038,
0.2223403007,
0.2467841953,
0.3052209318,
-0.0063446271,
-0.1875217557,
0.4511365294,
-0.1555743515,
0.1747369468,
0.2000943571,
0.1127392873,
0.2868579924,
0.0697413161,
-0.2519514263,
0.0697324425,
0.0750758648,
0.1321228445,
0.1331679374,
-0.0068097385,
-0.1906317919,
-0.1050031558,
-0.417757988,
0.2547334433,
-0.0595767237,
0.2357585281,
-0.416906476,
0.188447237,
-0.0759595409,
-0.0838458538,
0.1074509323,
-0.215480864,
0.4759657979,
-0.1823239625,
-0.1267188191,
-0.2750765681,
-0.3052016497,
-0.1172132865,
0.3365139067,
0.27833727,
-0.212425679,
0.5011538267,
0.1310851276,
0.219776839,
-0.3135257065,
-0.5158464313,
0.0511485711,
0.0089594033,
-0.0700862333,
0.0539387576,
0.0763892755,
0.1957165152,
-0.0425219983,
-0.0450358875,
0.0193727482,
-0.333447814,
-0.3106678426,
-0.0499323234,
-0.0490734801,
-0.1771842986,
-0.3822339177,
-0.40568012,
-0.321492672,
0.385361135,
0.1132576242,
-0.0648359284,
-0.244399026,
0.1801358908,
0.0929390267,
0.0071949391,
-0.3171278238,
-0.2774168551,
-0.1570276022,
0.2855464518,
-0.2521854043,
-0.3377676606,
0.3224461377,
-0.1721736193,
0.1879162639,
-0.2725313604,
-0.3888730705,
-0.2476120889,
0.1317631453,
0.3319596648,
0.0334972516,
-0.038063895,
0.0672868118,
0.1975277215,
-0.0695057437,
-0.1006402746,
-0.2368371487,
-0.1417507231,
0.0269676875,
0.073337853,
0.0455344394,
-0.1579209566,
0.0893395096,
0.5135681629,
0.0981258303,
0.1407653838,
0.3335724771,
0.188679859,
0.1842942685,
0.0722925439,
-0.1296093017,
0.037107531,
-0.102124311,
0.1340878606,
0.1875052303,
0.093298465,
-0.4821219444,
-0.4905822873,
-0.2005351633,
0.0476922803,
-0.1638044566,
-0.2082971483,
0.0326474011,
-0.1167187467,
0.058851663,
-0.0233440064,
-0.0880274475,
-0.0061775534,
0.1972373724,
0.0132877855,
0.1718355268,
-0.0843719989,
-0.4658818245,
-0.1954051256,
-0.333422631,
0.36791116,
0.189756617,
-0.2230317444,
0.0708073229,
-0.0562013872,
0.0581814907,
-0.2285456955,
0.6534590125,
-0.306512177,
-0.257501334,
-0.1291678399,
0.2158357203,
-0.0918690041,
0.0106996447,
0.0724211931,
-0.0184761863,
-0.2127919495,
0.3907850385,
-0.1326831728,
-0.0177307576,
-0.1910139769,
-0.0287531149,
-0.0749338865,
-0.1725340486,
-0.0093584191,
-0.2202647477,
-0.4252130985,
-0.111115329,
-0.063771829,
0.0229962226,
-0.2125653327,
-0.2726648152,
0.0464069098,
0.078411907,
0.0158581957,
-0.0307467785,
0.1023208499,
0.1993188709,
0.1953766942,
-0.0578011498,
-0.026122896,
0.1510786563,
0.4679238796,
-0.0197306015,
-0.3996257782,
-0.1424737573,
-0.1883181185,
0.0556115396,
0.1531092077,
0.1956164986,
0.2850221992,
0.1155601516,
0.0761395916,
-0.1451361328,
0.0567435175,
0.0219500065,
-0.1884115785,
-0.2844205201,
-0.5027635694,
0.5110705495,
0.0027663184,
-0.1216210201,
0.3103559613,
0.2278689444,
-0.2142793089,
0.0076068691,
0.1378336102,
0.6620995402,
0.1231227443,
0.1892493069,
0.0632906705,
-0.2115329206,
0.4805819988,
-0.2955690026,
-0.0145667521,
-0.2645290494,
0.2212955803,
-0.1122010276,
0.0509037934,
-0.0191404708,
-0.2788565457,
-0.2523947954,
0.069706127,
0.016414782,
0.2677139342,
-0.1337601095,
0.3727674782,
-0.2736599147,
-0.1749031544,
0.04569453,
0.3062949181,
-0.1826333702,
0.1030724943,
-0.1702606976,
-0.3906963766,
-0.1565624177,
0.0879909694,
-0.0459346063,
0.1115318537,
0.0642603114,
0.2367165834,
-0.266813159,
-0.3333690166,
0.2618547976,
0.3045767844,
0.2474371642,
-0.0958678722,
-0.415881604,
0.0696763098,
-0.1493023932,
-0.2111489326,
-0.1502449661,
-0.0490393825,
0.0148764998,
-0.3142477572,
-0.3047282994,
0.2433125675,
0.0034379126,
-0.2426563352,
-0.4107019007,
0.3009027541,
0.1274307221,
-0.2916111946,
-0.0882865265,
0.2000097334,
-0.1119903177,
-0.1669713557,
0.2071652263,
0.3160639107,
-0.0326033048,
0.3302986026,
0.231081903,
0.1423495263,
-0.1722020656,
0.3114983141,
-0.0171103571,
-0.2345899194,
0.0796131641,
-0.1526952535,
-0.253898114,
-0.3289507329,
0.1357594281,
-0.0517471693,
0.1926959157,
-0.11814031,
0.2647686005,
-0.0805024281,
-0.0636778101,
0.1663479656,
0.0415414609,
-0.1377883106,
0.212413922,
-0.1667527556,
-0.3571164012,
0.441788286,
-0.3826162517,
0.28000018,
-0.0061104046,
-0.2197889984,
-0.0043857428,
-0.2295760512,
-0.4121131003,
0.0911055356,
0.033279106,
-0.2060199976,
0.3590272069,
-0.0143118957,
-0.0752698109,
-0.0123586524,
0.1216103807,
-0.1553171575,
-0.3481847644,
-0.3103875816,
0.2282620668,
0.0620973818,
0.2434818447,
0.0406569652,
-0.0201951135,
-0.2606167197,
-0.177194804,
0.139628455,
0.2344973087,
-0.1229177341,
0.0557386279,
0.1445404589,
-0.03915314,
0.107647866,
-0.0486271009,
0.4111312926,
0.2773841321,
0.0744771287,
0.0259286519,
-0.0422373377,
-0.0040137842,
-0.0055711153,
0.4392649829,
0.1945368946,
0.2255236059,
0.2343066335,
0.3847556114,
-0.2316570431,
0.1163101867,
0.2075440586,
0.0343275107,
0.2719964683,
-0.1921017021,
0.3829945624,
0.1658798754,
0.299035877,
-0.2118807882,
-0.3960695863,
0.1848539859,
0.0814827681,
-0.0197084937,
0.0571356826,
0.3609967232,
0.1662777811,
0.1145682782,
0.227498427,
0.2971511781,
-0.1147974283,
0.1020118371,
0.1916823089,
-0.0784907341,
-0.0491574518,
-0.1321175545,
0.3963245451,
-0.0050159497,
0.2574880719,
-0.4771891832,
0.388051331,
0.2483062893,
0.2273722589,
0.2867911756,
-0.4313170612,
0.1096467525,
-0.0853082761,
-0.1545748115,
0.1048180386,
0.3467980027,
0.3885997236,
-0.021978613,
-0.0655085742,
-0.0124448789,
-0.0012874105,
-0.0404918082,
0.1086619645,
-0.1578398645,
-0.2432584167,
0.2660824358,
-0.0331957787,
-0.0122044599,
-0.3073901534,
0.0549856946,
-0.0621818826,
-0.1678734869,
0.1594755948,
0.1848972589,
0.249762997,
0.3459223509,
0.068413049,
-0.1249388456,
0.0947978646,
-0.1988095641,
-0.0518655442,
-0.0745467842,
0.1415678263,
0.0313366205,
-0.3935880363,
0.0955513194,
0.1549430788,
-0.2667666674,
-0.1042864472,
0.1845570654,
0.3295751214,
-0.3697729111,
0.3326385617,
0.2323465943,
-0.2163150012,
0.0680006668,
0.330640316,
0.0061028213,
-0.1204653829,
0.079248324,
-0.0088942228,
-0.2567465305,
-0.0215250254,
0.1850333512,
-0.1867248118,
-0.1252340674,
0.0581540726,
0.0493300818,
0.0190479048,
-0.1451480687,
0.1632635593,
-0.1179369092,
0.3923141658,
-0.0112604816,
0.3060819209,
-0.0150121376,
0.0862744451,
-0.2546750307,
0.1000445783,
0.3030630052,
-0.1152528971,
-0.2710490525,
0.1032600999,
0.2051799893,
0.2681262493,
-0.0179239213,
-0.2057391256,
0.7407822013,
0.1356454641,
-0.2567977905,
0.1258152127,
0.3990848958,
0.1358110607,
0.1246816888,
-0.1193982065,
0.2117158473,
-0.3204466105,
0.1264895648,
-0.0846136063,
0.0422973,
0.1486831903,
-0.2377162129,
0.6299426556,
-0.2186714411,
0.4631662667,
-0.0844897926,
0.1559531242,
-0.1135102585,
-0.0303342901,
-0.1064900905,
-0.1322486103,
0.2037774622,
-0.1080566347,
-0.1990813613,
-0.0052767061,
0.0534866974,
0.0620472915,
0.1513766497,
0.3160066307,
-0.0170427728,
-0.0003461988,
-0.0172345415,
-0.2140434384,
0.1000686511,
0.0282968394,
-0.1393905133,
-0.3136105537,
-0.1487106234,
-0.2686769664,
0.2581804693,
0.0730011761,
-0.0763813406,
-0.032630723,
-0.1309961379,
0.1420153975,
-0.0084374985,
-0.3998369575,
0.1091043651,
0.2313683182,
-0.1604677141,
0.1279536039,
0.3397714198,
0.1807636768,
-0.0602819286,
-0.325039953,
0.3017231226,
0.0389069282,
0.0691495612,
-0.1928169727,
-0.2094547302
] |
https://github.com/huggingface/datasets/issues/1064 | Not support links with 302 redirect | > Hi !
> This kind of links is now supported by the library since #1316
I updated links in TLC datasets to be the github links in this pull request
https://github.com/huggingface/datasets/pull/1737
Everything works now. Thank you. | I have an issue adding this download link https://github.com/jitkapat/thailitcorpus/releases/download/v.2.0/tlc_v.2.0.tar.gz
it might be because it is not a direct link (it returns 302 and redirects to aws that returns 403 for head requests).
```
r.head("https://github.com/jitkapat/thailitcorpus/releases/download/v.2.0/tlc_v.2.0.tar.gz", allow_redirects=True)
# <Response [403]>
``` | 37 | Not support links with 302 redirect
I have an issue adding this download link https://github.com/jitkapat/thailitcorpus/releases/download/v.2.0/tlc_v.2.0.tar.gz
it might be because it is not a direct link (it returns 302 and redirects to aws that returns 403 for head requests).
```
r.head("https://github.com/jitkapat/thailitcorpus/releases/download/v.2.0/tlc_v.2.0.tar.gz", allow_redirects=True)
# <Response [403]>
```
> Hi !
> This kind of links is now supported by the library since #1316
I updated links in TLC datasets to be the github links in this pull request
https://github.com/huggingface/datasets/pull/1737
Everything works now. Thank you. | [
-0.088968657,
-0.2517875135,
-0.0088747125,
-0.1504717618,
0.1692059636,
-0.0146815926,
-0.0734716952,
0.3519242704,
0.0370437801,
-0.0853565633,
-0.1462336034,
0.1753970832,
-0.0085471682,
0.0927392766,
0.1950140148,
-0.2360425442,
-0.0524223633,
-0.0261494536,
-0.0826821402,
0.2028124481,
-0.0272722133,
0.5130645037,
-0.0248572193,
-0.0624031126,
-0.0686717704,
0.0774284974,
0.1210467666,
0.203179583,
0.0683746785,
-0.2401622832,
0.3030550778,
0.1178526133,
0.1594068706,
0.5492523909,
-0.0001215735,
0.1579647958,
0.3548881114,
0.0720561296,
-0.2901378572,
-0.5894255638,
-0.253668189,
-0.2439849377,
0.0339290388,
0.0324352831,
-0.1306389421,
0.5072250366,
-0.0778940469,
0.1441019028,
-0.0753324777,
0.176507622,
0.1485423148,
0.2375598401,
0.2008065879,
-0.0810440108,
0.9201810956,
0.0543803722,
-0.1180590615,
0.3259593844,
-0.0304331742,
0.1545787156,
0.3328635097,
0.1778523922,
0.095285885,
0.0808025077,
-0.1110312641,
-0.1084039807,
-0.04509997,
-0.2801686227,
-0.1507543325,
0.2552186549,
0.6863907576,
0.0206973143,
-0.5041068792,
0.1242093369,
-0.1229811832,
-0.2610159516,
0.3652245998,
0.2766008079,
0.1618135422,
0.0424438864,
0.022019593,
-0.4948575497,
-0.1582906097,
0.1913101226,
0.1813696921,
0.1272978187,
0.0797853619,
0.0317874327,
0.2093795687,
0.1482400596,
0.2320009321,
-0.1184865758,
-0.3121514618,
-0.0051235566,
-0.218573764,
-0.0790311247,
-0.1069960445,
0.1383846551,
0.2005694211,
0.3603542149,
0.0971247777,
0.0609981045,
-0.2779536843,
0.1389890909,
-0.1637239307,
0.045528885,
-0.4307020605,
0.1138570011,
0.5997730494,
0.1345745474,
0.1671669483,
-0.1014249846,
0.0258143246,
-0.3618372679,
-0.6406555176,
-0.0050231754,
0.0210186783,
0.0484001748,
-0.0703635365,
-0.0238337759,
-0.3518248796,
-0.1699011177,
-0.1177654266,
0.2023974657,
-0.0567760505,
0.0609711148,
0.5130021572,
0.0460669026,
0.0043177688,
0.1508778632,
-0.0211405028,
0.023146579,
-0.1301860362,
-0.1388562471,
0.0760848001,
-0.0486890823,
0.1044012457,
-0.0494076088,
0.2970650494,
-0.1429973692,
0.1065958738,
0.0482983217,
0.0091797709,
0.523886025,
0.0449465662,
0.254509747,
-0.1337096393,
-0.1347232461,
0.1427949071,
0.3535700738,
-0.6124939919,
-0.2109992504,
-0.1807134151,
0.0326903239,
-0.1545536965,
-0.2067752033,
-0.1573907137,
-0.0028979932,
-0.1474405825,
-0.5722490549,
-0.132248044,
0.0603689551,
-0.0241045803,
-0.1116487384,
0.0952815786,
0.3426846862,
-0.4351746738,
0.0094628641,
-0.0647439808,
0.2282376289,
-0.012002754,
0.3981321752,
-0.155646354,
-0.0729109645,
-0.3013798594,
-0.1341856271,
0.7303340435,
-0.4807989001,
-0.3789025843,
0.4282315671,
-0.2898423374,
-0.1877363026,
-0.1061224788,
0.2756073177,
-0.3474136591,
-0.1764630675,
-0.1268271953,
0.1685848832,
0.2764303982,
0.0358420797,
-0.2897285223,
-0.1738004237,
-0.0571223386,
-0.0227625892,
-0.0404704399,
0.1606974751,
0.1272217035,
-0.3260907233,
0.3235673904,
0.0820756555,
0.2460442632,
0.1628436148,
0.2186274976,
0.0830601081,
0.0801443532,
0.0311644059,
0.0336820967,
-0.0903037786,
0.0018229686,
0.3663537502,
-0.0354040414,
-0.0931598768,
-0.2621212304,
-0.2167805582,
0.0052463133,
0.1010595709,
-0.0144657521,
0.0691936091,
-0.0824375078,
0.3779102266,
-0.1585888714,
0.0074779917,
0.1893830001,
0.3136530519,
-0.086190179,
0.5394980311,
-0.2678464353,
0.1029391438,
0.1966938823,
-0.0428084135,
0.1874131262,
-0.1979303956,
-0.1212190092,
0.3034725785,
-0.3177320361,
0.1804009378,
0.6118975282,
0.0786384344,
0.2613998055,
-0.0922381654,
-0.3132672608,
0.3064296544,
0.2189106345,
0.1106882915,
-0.1312213093,
0.1056998074,
0.1801847667,
0.0462580249,
0.0018851276,
0.289460361,
0.2616716325,
0.0509677529,
-0.2270015031,
0.2264627665,
0.1595852673,
0.0993029922,
-0.7005439401,
-0.574280262,
-0.2411240488,
-0.0756929666,
0.2490631938,
-0.2395292073,
0.146895662,
0.1831812114,
-0.0438628867,
0.0771973133,
0.1577170342,
0.8859194517,
0.1208994538,
0.2381840646,
0.0884258822,
0.0439856127,
-0.0307358876,
-0.2622564733,
0.3470585644,
0.0624574386,
-0.2946637869,
0.1126285642,
0.1000953764,
0.0410519987,
-0.2012775391,
-0.4085432291,
0.2061424851,
0.1487218142,
-0.2893051803,
-0.0932016447,
-0.2989702821,
-0.2179990709,
0.1421817839,
-0.2177568227,
-0.0476184897,
-0.2104531527,
0.0829652101,
0.3161396384,
-0.177865535,
0.1747333854,
0.1694304645,
0.0775186643,
0.2099795341,
-0.441868484,
-0.2040365636,
-0.1694380641,
-0.1004688591,
0.0818064734,
0.1153392419,
-0.5353221893,
0.1564160883,
-0.138467893,
0.2705562115,
-0.2036029696,
-0.349552542,
-0.0268721581,
-0.088732563,
-0.1053683832,
0.1825295538,
0.1798855513,
-0.1700100005,
0.0821449086,
0.2354916036,
0.1940149963,
0.1734009981,
-0.1229033694,
0.160156101,
-0.1496063769,
-0.2317112833,
-0.3762665987,
0.0774015635,
-0.347966522,
-0.0618768744,
0.1576521546,
0.1705690622,
-0.0462142415,
0.209929958,
-0.0879656151,
0.2394792289,
-0.2012472004,
-0.1868758649,
-0.4467814863,
0.5848566294,
-0.4474653006,
-0.4877685308,
0.4066587389,
0.0196295716,
0.2492923439,
0.0825685263,
-0.4886932075,
-0.1169574559,
-0.0007146496,
-0.2425424159,
0.0936520994,
0.4416883588,
0.198534444,
0.2711292505,
-0.1463365704,
0.0718560964,
-0.6122390628,
-0.043818105,
0.2205578834,
0.2329091877,
0.1641923785,
0.3945307434,
0.2477853894,
0.4924860895,
0.0896543264,
0.1346900463,
0.5550949574,
0.0060132165,
0.2173866183,
0.0753512532,
0.1182255596,
0.051743295,
0.0758493841,
0.1876439899,
0.1232974082,
0.3488506377,
-0.2544368505,
-0.5247750878,
-0.2646771967,
-0.1947949678,
-0.2648603916,
-0.1564064473,
-0.3417544067,
0.0060826032,
0.1678370684,
-0.2579475343,
-0.0370165408,
-0.0611165017,
0.2510454953,
0.3608328998,
0.4510361254,
0.000709909,
-0.2106646597,
-0.2279955298,
-0.0390671641,
0.2530309558,
0.190837875,
0.0448913015,
-0.1536709368,
0.0495476015,
0.0041149417,
-0.0442489423,
0.4536240399,
-0.5851214528,
0.1177212372,
-0.0885073468,
-0.0010409408,
-0.4180229902,
-0.007193041,
0.1050680429,
0.4362521172,
-0.1284872591,
-0.1862546653,
-0.3607245386,
0.0475915819,
-0.031188475,
-0.277404815,
0.0786438733,
-0.0558337234,
-0.0152128106,
-0.3150621653,
-0.5795226693,
0.0964531079,
0.1397799999,
0.0141184097,
-0.1541855931,
-0.5138261914,
0.2536278367,
-0.1545205861,
0.1522516012,
-0.3228797913,
0.1153495908,
0.1447960436,
-0.2176792771,
-0.0293695349,
-0.0311051365,
-0.1075264364,
0.3889835179,
0.002513886,
0.1795889735,
0.0742038935,
0.1656280309,
0.076689221,
0.2557784915,
0.1276846975,
0.106634587,
-0.0201174896,
-0.0473728813,
0.1491011381,
-0.1584910303,
0.3536530137,
-0.1017190441,
-0.3683064878,
-0.2712535262,
0.2432254851,
-0.2895278037,
-0.0264062043,
0.3046960533,
0.464310348,
0.0440706573,
-0.0107844714,
-0.2777217031,
1.1651054621,
0.0195687637,
0.1489716321,
0.2043875754,
-0.6890202165,
0.622634232,
-0.3744080961,
0.2987080216,
-0.0720069557,
0.36834234,
-0.2323258817,
-0.1634855419,
-0.2121368498,
-0.0576791614,
-0.2465138584,
0.2987428308,
-0.081492275,
-0.0231852531,
0.16972588,
0.191819042,
0.0351374634,
0.0958982855,
-0.0914277881,
0.1366749108,
-0.0447198823,
0.2567818463,
-0.0499422885,
-0.3706735075,
-0.1537327766,
-0.0821033195,
0.0061928011,
0.079600215,
-0.107432209,
-0.2448490858,
-0.2179084569,
-0.6740684509,
0.4979633391,
0.4169783592,
-0.0167949293,
0.2131243646,
-0.3809306324,
0.2791495919,
-0.3834370673,
0.1113097742,
0.0327411592,
0.2366838902,
0.0840963945,
-0.2209801972,
-0.2883395553,
0.078373149,
0.0814279467,
-0.2733280659,
0.4177577198,
-0.0521051027,
0.0164524149,
-0.1052111238,
-0.1408564448,
0.1241047904,
-0.4260389805,
-0.1168866381,
0.0737938657,
0.1023819223,
-0.2741330266,
-0.0857422054,
0.3911030591,
0.0816467404,
0.0292867199,
0.6203905344,
-0.2215275466,
0.3158130348,
0.0132891759,
0.1694729775,
-0.2366680205,
0.008969605,
-0.259752363,
-0.1960687637,
-0.6053311229,
0.268987,
-0.1052268818,
0.0188862123,
-0.3100353181,
0.0654426739,
-0.1169673055,
0.358350873,
0.0188780241,
-0.3829032183,
0.0224499013,
-0.0471162237,
-0.3808612823,
0.2462104857,
0.0276366193,
-0.0416686833,
0.4045988321,
-0.2615492344,
-0.2085304111,
0.4591498971,
-0.0382069573,
0.0686477423,
0.0407215245,
-0.0313896537,
0.6047626734,
-0.0192077924,
-0.0203946568,
0.0063334359,
-0.3603481948,
-0.0000543984,
-0.1368186027,
0.1400265545,
0.2005034834,
-0.1495242268,
-0.0763385147,
-0.356962949,
-0.003125086,
0.1024743095,
0.0521696396,
-0.1762252003,
-0.1822403818,
-0.0656518042,
-0.0509691611,
-0.5027394891,
-0.1036821082,
0.2012687474,
0.0270434413,
0.0134947663,
0.1688160747,
-0.1820066273,
-0.0273710154,
-0.222149536,
-0.352494061,
0.0822128356,
0.3399102092,
0.1501909196,
0.66255337,
-0.4900310636,
-0.1894515902,
0.0816828758,
0.3682280481,
-0.1697563678,
-0.0991650298,
0.0680606738,
0.1000918895,
0.0853439122,
-0.0724863708,
-0.1392831206,
0.0850873813,
0.1007645279,
0.116841644,
-0.1893632263,
0.1114646271,
-0.2744366825,
0.1228786632,
0.2569233179,
0.4700998664,
-0.3736876845,
-0.0202094112,
0.1007958576,
-0.1436973661,
0.2254037857,
-0.1036121845,
-0.2153598815,
-0.0235447902,
-0.024710875,
0.0115561225,
-0.2242947668,
0.6830970049,
-0.0913538933,
0.0311853327,
-0.0668265671,
-0.1223291755,
0.0060828305,
0.3291814923,
-0.153018713,
0.3240321875,
0.2617711723,
0.1593334079,
0.1860969961,
-0.1107602417,
0.0848558918,
0.2043668926,
0.0001790838,
-0.1979272068,
-0.081436269,
-0.0171644744,
-0.0715728849,
-0.119483985,
0.0869364664,
0.0831440315,
0.2113756388,
0.3685370982,
-0.1532916278,
-0.1742378175,
0.0122790262,
0.1659180969,
-0.0398956388,
0.1755870134,
0.2483381182,
-0.1321436763,
0.1575342566,
-0.0637355,
0.4261857271,
-0.1377833784,
-0.0574374571,
-0.0198077597,
0.0427991115,
-0.1093343496,
0.2672952712,
0.3388477862,
0.357583493,
0.2028677762,
0.1016946286,
0.0715594217,
-0.0871220976,
0.3904495239,
-0.2852380276,
0.0988244265,
-0.1897282898,
0.4406180382,
-0.2631390989,
-0.2630968094,
-0.3342835307,
-0.2541720569,
-0.1799211353,
0.0261031352,
0.3590553701,
-0.3362890482,
-0.1018822417,
-0.2251099646,
0.0400169156,
0.0043714261,
0.2992423177,
0.2549840808,
0.1867307276,
-0.1178342402,
-0.0454622135,
-0.0539559238,
0.142637074,
0.3550257385,
0.1628576219,
-0.2254790217,
0.0045334543,
0.015865149,
0.0830279738,
0.0428049266,
-0.6330804825,
0.1068466753,
0.1801847219,
0.0551549606,
0.0485305376,
-0.2542406023,
0.1518828571,
0.0600718968,
0.0303701852,
-0.0813530609,
-0.0359801538,
0.0045010895,
-0.2740027606,
0.0421615392,
-0.202282533,
-0.1776158959,
0.6491747499,
0.2948359251,
0.3487356603,
-0.0349289365,
-0.0001382457,
-0.1983118355,
-0.0706489682,
-0.060561344,
-0.2901892364,
0.0004363957,
0.4371775091,
-0.1068336591,
0.1789089292,
-0.1465786248,
0.0755387992,
-0.1912949979,
0.7068845034,
0.1473888904,
-0.1841674596,
-0.2230779678,
-0.0142894126,
0.1335862577,
-0.0381838977,
0.0524563715,
0.0219447743,
-0.4203706384,
-0.4358582199,
0.5019132495,
-0.1479956955,
0.0242779274,
0.4396550059,
0.2329086214,
0.1449549347,
-0.0581792183,
-0.1517628282,
0.0923013836,
0.1003260016,
0.2673759162,
-0.3939911425,
0.4566244781,
-0.0214208923,
0.1960993558,
0.0748509318,
0.1301732659,
0.0484582894,
-0.1997937858,
-0.2278057635,
-0.1962189376
] |
https://github.com/huggingface/datasets/issues/1046 | Dataset.map() turns tensors into lists? | A solution is to have the tokenizer return a list instead of a tensor, and then use `dataset_tok.set_format(type = 'torch')` to convert that list into a tensor. Still not sure if bug. | I apply `Dataset.map()` to a function that returns a dict of torch tensors (like a tokenizer from the repo transformers). However, in the mapped dataset, these tensors have turned to lists!
```import datasets
import torch
from datasets import load_dataset
print("version datasets", datasets.__version__)
dataset = load_dataset("snli", split='train[0:50]')
def tokenizer_fn(example):
# actually uses a tokenizer which does something like:
return {'input_ids': torch.tensor([[0, 1, 2]])}
print("First item in dataset:\n", dataset[0])
tokenized = tokenizer_fn(dataset[0])
print("Tokenized hyp:\n", tokenized)
dataset_tok = dataset.map(tokenizer_fn, batched=False,
remove_columns=['label', 'premise', 'hypothesis'])
print("Tokenized using map:\n", dataset_tok[0])
print(type(tokenized['input_ids']), type(dataset_tok[0]['input_ids']))
dataset_tok = dataset.map(tokenizer_fn, batched=False,
remove_columns=['label', 'premise', 'hypothesis'])
print("Tokenized using map:\n", dataset_tok[0])
print(type(tokenized['input_ids']), type(dataset_tok[0]['input_ids']))
```
The output is:
```
version datasets 1.1.3
Reusing dataset snli (/home/tom/.cache/huggingface/datasets/snli/plain_text/1.0.0/bb1102591c6230bd78813e229d5dd4c7fbf4fc478cec28f298761eb69e5b537c)
First item in dataset:
{'premise': 'A person on a horse jumps over a broken down airplane.', 'hypothesis': 'A person is training his horse for a competition.', 'label': 1}
Tokenized hyp:
{'input_ids': tensor([[0, 1, 2]])}
Loading cached processed dataset at /home/tom/.cache/huggingface/datasets/snli/plain_text/1.0.0/bb1102591c6230bd78813e229d5dd4c7fbf4fc478cec28f298761eb69e5b537c/cache-fe38f449fe9ac46f.arrow
Tokenized using map:
{'input_ids': [[0, 1, 2]]}
<class 'torch.Tensor'> <class 'list'>
```
Or am I doing something wrong?
| 32 | Dataset.map() turns tensors into lists?
I apply `Dataset.map()` to a function that returns a dict of torch tensors (like a tokenizer from the repo transformers). However, in the mapped dataset, these tensors have turned to lists!
```import datasets
import torch
from datasets import load_dataset
print("version datasets", datasets.__version__)
dataset = load_dataset("snli", split='train[0:50]')
def tokenizer_fn(example):
# actually uses a tokenizer which does something like:
return {'input_ids': torch.tensor([[0, 1, 2]])}
print("First item in dataset:\n", dataset[0])
tokenized = tokenizer_fn(dataset[0])
print("Tokenized hyp:\n", tokenized)
dataset_tok = dataset.map(tokenizer_fn, batched=False,
remove_columns=['label', 'premise', 'hypothesis'])
print("Tokenized using map:\n", dataset_tok[0])
print(type(tokenized['input_ids']), type(dataset_tok[0]['input_ids']))
dataset_tok = dataset.map(tokenizer_fn, batched=False,
remove_columns=['label', 'premise', 'hypothesis'])
print("Tokenized using map:\n", dataset_tok[0])
print(type(tokenized['input_ids']), type(dataset_tok[0]['input_ids']))
```
The output is:
```
version datasets 1.1.3
Reusing dataset snli (/home/tom/.cache/huggingface/datasets/snli/plain_text/1.0.0/bb1102591c6230bd78813e229d5dd4c7fbf4fc478cec28f298761eb69e5b537c)
First item in dataset:
{'premise': 'A person on a horse jumps over a broken down airplane.', 'hypothesis': 'A person is training his horse for a competition.', 'label': 1}
Tokenized hyp:
{'input_ids': tensor([[0, 1, 2]])}
Loading cached processed dataset at /home/tom/.cache/huggingface/datasets/snli/plain_text/1.0.0/bb1102591c6230bd78813e229d5dd4c7fbf4fc478cec28f298761eb69e5b537c/cache-fe38f449fe9ac46f.arrow
Tokenized using map:
{'input_ids': [[0, 1, 2]]}
<class 'torch.Tensor'> <class 'list'>
```
Or am I doing something wrong?
A solution is to have the tokenizer return a list instead of a tensor, and then use `dataset_tok.set_format(type = 'torch')` to convert that list into a tensor. Still not sure if bug. | [
-0.0905342847,
-0.17366229,
-0.1339070797,
0.2130297273,
0.2162035406,
0.2193656117,
0.4914948344,
0.3712694347,
0.2574450076,
-0.0263977516,
-0.1461350173,
0.6802523136,
-0.1003027707,
-0.4164583683,
0.1840577424,
0.0253589116,
0.2943930626,
0.0346807316,
-0.0507985279,
-0.2774466276,
-0.1831272095,
-0.0675767064,
-0.195776999,
0.0791180357,
-0.1412032247,
-0.1547507793,
0.1446098685,
-0.3113894165,
-0.0627615228,
-0.2368611991,
0.1946790516,
0.03357796,
0.1022555828,
0.4467197061,
-0.0001160152,
0.1183270514,
-0.0372344144,
0.2079561353,
-0.0176476166,
-0.1034470648,
0.0076182652,
-0.1327910721,
0.1470104605,
-0.1844789833,
-0.0054996861,
-0.1479553878,
-0.0391305387,
-0.6350415945,
0.1790962368,
0.3810080588,
0.1443395615,
0.2552902699,
-0.1439366937,
0.2130862474,
0.3324944377,
0.2167777121,
-0.2084973007,
-0.2550539374,
0.1627888232,
-0.0757924765,
0.0668916106,
0.1129240394,
-0.4984411895,
-0.0192025751,
0.2370799929,
0.2221134901,
-0.1869858801,
-0.5936378241,
0.0203762203,
0.1143102944,
0.3462294936,
-0.3974610567,
-0.1002948582,
-0.1565371901,
-0.2213945836,
0.0423910841,
-0.0511559956,
0.0539997816,
0.0545053668,
-0.0863510221,
-0.2528418899,
-0.0814964622,
0.0649672821,
0.2210163474,
-0.5532373786,
0.2875822186,
-0.0781859234,
0.2344747484,
0.1804771721,
-0.050585337,
0.1507670283,
-0.3792161047,
0.0853366554,
0.1579335481,
-0.3272641599,
-0.1862963587,
0.1454364657,
-0.4385434985,
0.0561809242,
-0.1962927878,
0.1501732767,
0.2216709256,
-0.3979544938,
0.1758711636,
0.1768118441,
0.1449907422,
-0.0155395055,
0.6800305247,
-0.0505109541,
-0.4166108668,
-0.0770037398,
0.1837558746,
0.0966394171,
-0.0125522465,
0.0351257436,
-0.0809562653,
0.1311855018,
0.0802533403,
-0.1056549698,
0.1230918765,
-0.5634175539,
0.109464705,
0.0026194488,
0.0384145044,
-0.1862229407,
0.1880779564,
0.0646292642,
-0.0047183642,
0.0791278481,
0.2578692436,
-0.0984068215,
-0.2119455487,
-0.1304917634,
-0.0817814544,
-0.0984929875,
-0.0916111618,
0.0619075224,
0.0923818871,
0.1118398458,
-0.0017337786,
0.2803901136,
-0.0927291662,
0.538523972,
0.17079252,
-0.1122144312,
0.4933412969,
0.223066777,
-0.0651283488,
-0.2487446964,
0.2211106867,
-0.3083319962,
0.1185799092,
0.0200918131,
0.1291927546,
-0.047202304,
-0.0984768346,
-0.2833485901,
0.1163359135,
0.2763035893,
-0.0582995079,
0.253223449,
-0.3349196613,
-0.1329491436,
-0.1963023245,
0.1043851599,
-0.0451546945,
-0.118641369,
-0.046728678,
0.0440929569,
0.0888608769,
0.0959444568,
0.3504171371,
-0.2296564281,
0.3976287842,
-0.1970898658,
0.3188100755,
0.3553223312,
-0.160584718,
-0.4590780437,
0.0325204358,
-0.0414367355,
0.2008673251,
-0.4211300015,
0.2581836879,
0.5175716281,
0.0115958489,
0.108131595,
-0.0138312727,
0.0394516401,
0.0712761581,
0.0759737566,
0.0893175229,
0.6063426137,
-0.1942306459,
0.09122587,
0.4368439317,
-0.0899205208,
0.1663244516,
0.2264936715,
-0.0353969783,
-0.0143849701,
0.256234169,
-0.098406069,
0.196491465,
0.0711436346,
-0.1331275254,
-0.3207590282,
-0.0673472062,
0.2024286687,
0.0814436451,
-0.0857605487,
-0.2460780293,
0.0505055189,
0.182400465,
-0.1853741258,
0.0724805817,
0.1081485376,
-0.040079549,
-0.2167151272,
0.030850051,
-0.0139183775,
-0.2510792315,
0.1745032668,
0.2046180665,
-0.4255836904,
0.2819702029,
0.1628722847,
0.137544781,
-0.4352928102,
0.1270136982,
-0.0553203858,
-0.083014071,
0.0987999588,
0.0349605754,
0.128052175,
0.026586784,
-0.0954572335,
0.5214629769,
0.2866053879,
-0.2311561704,
0.0751395822,
0.4937564433,
0.0238812119,
-0.2297711819,
0.19617939,
0.139500767,
0.2197048962,
0.3267370164,
-0.4468348026,
0.242346406,
0.0369450524,
0.2038595378,
-0.3506707847,
0.1286529452,
-0.4682188034,
0.2203539461,
0.1738941967,
0.1489115804,
-0.1910978407,
0.0657254979,
0.4890259504,
-0.1033507809,
0.0994027108,
-0.0586624667,
-0.5665890574,
-0.0065713972,
0.2327370495,
-0.295833379,
0.1299311072,
-0.0788211226,
0.3676331937,
0.0134283453,
-0.0215823911,
0.1092870608,
0.0924236625,
0.3519961536,
0.0202200208,
-0.0760968924,
0.0611620061,
0.0652810633,
-0.3260113001,
0.097708486,
-0.0819268897,
0.1087762564,
-0.1746969968,
0.2153778225,
-0.2485266179,
0.1146126464,
-0.077242963,
-0.4351756275,
-0.1941462904,
-0.1610158533,
-0.0932939202,
0.1621305943,
0.0375249125,
0.1928770542,
0.3247015476,
0.0016950821,
0.3418309689,
-0.2255835831,
-0.1251523942,
-0.2449374646,
-0.1197988391,
0.0738310739,
0.0181268826,
-0.4264043868,
0.0839835554,
-0.0697510391,
-0.0664161965,
-0.7368847728,
-0.2431030422,
0.1734051555,
-0.2962732911,
-0.2769446969,
0.3027133942,
0.2004775852,
-0.3066088557,
0.0971377715,
-0.0186878312,
0.1475964934,
0.0467990935,
0.0844613612,
-0.1103944033,
0.1160799712,
-0.130873993,
-0.3476417661,
-0.0094152791,
-0.0166207217,
0.2716757655,
0.0838908553,
0.1525644064,
0.0774168,
0.3029705286,
0.1268659532,
0.0299358778,
-0.1717901975,
-0.1643576473,
-0.2441186607,
0.3611246943,
-0.0520241037,
-0.2265445888,
-0.0212236214,
-0.0030596431,
0.1346481144,
0.5783624649,
-0.3174056113,
0.0344277509,
-0.0420032218,
0.2637941837,
0.0175750498,
0.1347254813,
0.3775299191,
0.2478034943,
0.1076653153,
-0.0430458225,
-0.0288082547,
-0.0538100153,
-0.016109908,
0.3160051107,
0.1498703063,
0.339720577,
0.1404834688,
0.6328850985,
0.0862663165,
-0.587051928,
-0.2141453773,
-0.3498601019,
0.2165559679,
-0.1520946026,
-0.3102630079,
-0.1093507633,
-0.2860082984,
-0.3008437157,
0.0750687495,
-0.131448999,
-0.2657193244,
0.2969169617,
0.446225822,
-0.0882329643,
-0.1677334607,
0.0572010651,
-0.622761786,
0.1875964999,
0.0649891049,
0.2781691253,
-0.3583348095,
-0.1568049639,
0.1168321967,
-0.1129731983,
0.3872702122,
-0.1263887733,
-0.7034637928,
0.0063642045,
-0.4204150736,
0.187398091,
0.0056883255,
0.1773735285,
0.1652297676,
-0.1125093326,
0.1744449735,
0.3250634372,
0.7036450505,
-0.0586118177,
-0.3005668521,
0.1336072236,
-0.0997835621,
-0.4846152067,
0.084625423,
-0.2593832612,
0.2423414886,
0.2093499452,
0.3109834194,
-0.0476544239,
-0.2322617769,
-0.3107507229,
0.1333295703,
-0.0532432571,
0.3153672516,
-0.1331275702,
-0.094195351,
-0.1271842867,
-0.1217166036,
0.1963417679,
-0.2370508462,
-0.0338919759,
-0.559225142,
-0.1888416409,
-0.0711830109,
0.1944615841,
0.0427112654,
0.2000722438,
0.131829828,
-0.2557498217,
0.2216894329,
0.1591055393,
0.1177558079,
0.07872504,
-0.1197153851,
-0.3400996625,
-0.0517674163,
0.2129711956,
0.1649908423,
-0.1602076441,
-0.1413624883,
0.1177052036,
-0.2446501702,
-0.1058982536,
-0.3997231126,
0.4764784276,
0.5671219826,
0.2579691708,
-0.3157424033,
-0.6125048399,
0.230214566,
0.3774286807,
-0.2791236341,
0.4521860182,
-0.5061216354,
-0.3920195699,
0.2071546614,
0.4282871783,
0.5739818811,
-0.4119098186,
0.2498637438,
0.0765872002,
0.2339152843,
0.4260097742,
-0.4805023968,
0.1393810809,
-0.3452284634,
0.152766183,
-0.2154874057,
-0.2566208243,
0.0636828765,
0.1887108982,
-0.031668704,
-0.1242907122,
-0.0239560045,
0.7876774073,
0.0780502036,
-0.1464799047,
0.3955986798,
-0.2671813965,
0.0892169178,
0.2036617845,
-0.121261172,
0.209936887,
0.0092976578,
0.0513107367,
-0.1965031177,
-0.1278708875,
0.0116997175,
-0.0130519485,
-0.2299929112,
0.2618727684,
0.1525952816,
-0.2011450082,
0.1392355263,
0.7396445274,
0.2234838903,
0.2516417801,
-0.0744043887,
-0.0381477401,
0.1769196391,
0.2847002447,
0.1070505232,
-0.1848677248,
0.0835150257,
0.230486691,
-0.011529346,
0.2355250269,
0.0631157309,
-0.2683453858,
-0.4846628904,
0.2600138485,
0.5671137571,
-0.3808259666,
0.2440676987,
0.1625116915,
-0.0416193157,
0.0013624061,
0.0675533265,
-0.1471410692,
-0.1325732917,
0.4093295038,
-0.1548149139,
-0.1608563662,
0.1107494012,
0.3674657941,
0.2076234072,
-0.1533612311,
0.2480869293,
0.0569404624,
-0.0848241225,
-0.291785717,
0.1096707657,
0.2019407004,
0.134980917,
0.2240549177,
-0.3578023911,
-0.1645011008,
-0.1746765524,
0.1499623507,
-0.2525675297,
-0.0387570485,
-0.3988035023,
-0.0235321261,
-0.3721064925,
-0.0252492782,
-0.0994726792,
0.4052251875,
0.133013621,
0.033004228,
-0.2353826463,
-0.284176439,
-0.2150232792,
0.0614063665,
0.1049757525,
0.3175125718,
-0.016171027,
0.1339099109,
-0.0781407654,
-0.2015334964,
0.0800732896,
0.1677752435,
-0.081593357,
-0.2401294112,
0.032487344,
0.0831724703,
0.1623702347,
-0.2706998885,
-0.0207832847,
0.0171219092,
-0.1772503555,
-0.3691254854,
0.2644967735,
0.3387386501,
-0.054842554,
0.2520480752,
0.1629131734,
0.1922450066,
0.0664828792,
-0.2389816195,
-0.0673394054,
-0.1235632077,
0.0767100677,
0.3552877903,
0.0898757353,
-0.0253588278,
-0.2356757969,
0.2498126477,
0.4343939722,
-0.1193521619,
0.5966323614,
-0.262219429,
0.107462272,
0.1145688742,
0.2363797873,
0.2327511609,
-0.3498209119,
-0.2978017628,
0.0976361111,
0.1566760242,
0.0503736101,
-0.205550313,
0.3785066009,
0.1290355623,
0.0085398359,
0.1384453028,
0.1084859595,
0.1346497685,
-0.0434604995,
-0.2603903413,
0.3331290781,
-0.3271980286,
0.4942011237,
0.3976086378,
0.0265156627,
0.0466423593,
0.1061059311,
-0.0197216794,
-0.0883842558,
0.4616709352,
0.2282726318,
0.5523837209,
0.302775681,
-0.0340123102,
0.507381916,
-0.0137490453,
0.0007739388,
-0.0157652963,
-0.2453914285,
0.2581064403,
0.1902956963,
0.0556503274,
-0.0475445464,
-0.2028522789,
0.0577836186,
0.194124341,
-0.3690660596,
-0.0328413323,
-0.1844905913,
-0.0099455202,
0.2395029366,
-0.2091047019,
-0.0376406536,
-0.2905727029,
0.1764779687,
-0.0967049524,
-0.0216087345,
-0.034052752,
-0.0009387644,
-0.0679468289,
-0.0062977201,
0.071740903,
-0.1286429763,
-0.4583577514,
0.0727507919,
-0.160646081,
0.1530969292,
0.0665913597,
0.2265328169,
-0.1436649263,
0.2057798952,
-0.0782432631,
-0.1337419748,
-0.0354567245,
0.171481058,
-0.2607646286,
-0.2001802772,
-0.0241285078,
0.0852906555,
-0.0528155938,
-0.1415355504,
-0.2138053328,
0.365047276,
0.0129366759,
0.2667193711,
-0.142458573,
-0.2983592749,
-0.144824788,
-0.1189551502,
-0.1608570516,
-0.1878197789,
0.6996370554,
-0.0350460596,
0.1697012335,
-0.1595542878,
0.0491680019,
0.0152547462,
0.261300236,
0.0646020323,
0.1442368478,
-0.008020957,
0.0412358493,
-0.1432538629,
0.3525063396,
0.2403378636,
0.12021707,
-0.0026342815,
0.0231717378,
0.0901695192,
0.2375984192,
-0.1209665388,
-0.4073792398,
0.0233072098,
0.1407173425,
0.0084183179,
-0.0124783134,
-0.5062529445,
0.279261142,
0.0773455054,
-0.1727737933,
0.2210198641,
0.0803735554,
-0.0051447386,
-0.3682465553,
0.0631456003,
-0.2415376157,
-0.0329704173,
0.4665830433,
0.285528481,
0.1157337055,
-0.0312678292,
0.0886830986,
-0.1312686354,
-0.082617797,
-0.1515827775,
0.1294197291,
-0.3124341369,
0.1052233875,
-0.2197998464,
-0.0723179951,
-0.2349601686,
-0.1989331841,
0.4463573694,
-0.3149095774,
-0.4419317544,
0.1768951565,
-0.2677645981,
0.0713505596,
0.054125756,
0.4623353481,
0.1842846125,
0.2511639297,
-0.0895965025,
-0.1723598689,
0.285271287,
-0.4563181102,
-0.358799547,
-0.0451803505,
-0.0680575743,
0.1567694694,
-0.2037457973,
-0.6132330298,
-0.3314445913,
0.4240122736,
-0.3604155779,
-0.1031687111,
-0.1472704411,
0.0790539309,
0.1174906865,
-0.3405920565,
0.194674775,
-0.0184211209,
0.0094521008,
0.2543966174,
-0.4694917202
] |
https://github.com/huggingface/datasets/issues/1046 | Dataset.map() turns tensors into lists? | It is expected behavior, you should set the format to `"torch"` as you mentioned to get pytorch tensors back.
By default datasets returns pure python objects. | I apply `Dataset.map()` to a function that returns a dict of torch tensors (like a tokenizer from the repo transformers). However, in the mapped dataset, these tensors have turned to lists!
```import datasets
import torch
from datasets import load_dataset
print("version datasets", datasets.__version__)
dataset = load_dataset("snli", split='train[0:50]')
def tokenizer_fn(example):
# actually uses a tokenizer which does something like:
return {'input_ids': torch.tensor([[0, 1, 2]])}
print("First item in dataset:\n", dataset[0])
tokenized = tokenizer_fn(dataset[0])
print("Tokenized hyp:\n", tokenized)
dataset_tok = dataset.map(tokenizer_fn, batched=False,
remove_columns=['label', 'premise', 'hypothesis'])
print("Tokenized using map:\n", dataset_tok[0])
print(type(tokenized['input_ids']), type(dataset_tok[0]['input_ids']))
dataset_tok = dataset.map(tokenizer_fn, batched=False,
remove_columns=['label', 'premise', 'hypothesis'])
print("Tokenized using map:\n", dataset_tok[0])
print(type(tokenized['input_ids']), type(dataset_tok[0]['input_ids']))
```
The output is:
```
version datasets 1.1.3
Reusing dataset snli (/home/tom/.cache/huggingface/datasets/snli/plain_text/1.0.0/bb1102591c6230bd78813e229d5dd4c7fbf4fc478cec28f298761eb69e5b537c)
First item in dataset:
{'premise': 'A person on a horse jumps over a broken down airplane.', 'hypothesis': 'A person is training his horse for a competition.', 'label': 1}
Tokenized hyp:
{'input_ids': tensor([[0, 1, 2]])}
Loading cached processed dataset at /home/tom/.cache/huggingface/datasets/snli/plain_text/1.0.0/bb1102591c6230bd78813e229d5dd4c7fbf4fc478cec28f298761eb69e5b537c/cache-fe38f449fe9ac46f.arrow
Tokenized using map:
{'input_ids': [[0, 1, 2]]}
<class 'torch.Tensor'> <class 'list'>
```
Or am I doing something wrong?
| 26 | Dataset.map() turns tensors into lists?
I apply `Dataset.map()` to a function that returns a dict of torch tensors (like a tokenizer from the repo transformers). However, in the mapped dataset, these tensors have turned to lists!
```import datasets
import torch
from datasets import load_dataset
print("version datasets", datasets.__version__)
dataset = load_dataset("snli", split='train[0:50]')
def tokenizer_fn(example):
# actually uses a tokenizer which does something like:
return {'input_ids': torch.tensor([[0, 1, 2]])}
print("First item in dataset:\n", dataset[0])
tokenized = tokenizer_fn(dataset[0])
print("Tokenized hyp:\n", tokenized)
dataset_tok = dataset.map(tokenizer_fn, batched=False,
remove_columns=['label', 'premise', 'hypothesis'])
print("Tokenized using map:\n", dataset_tok[0])
print(type(tokenized['input_ids']), type(dataset_tok[0]['input_ids']))
dataset_tok = dataset.map(tokenizer_fn, batched=False,
remove_columns=['label', 'premise', 'hypothesis'])
print("Tokenized using map:\n", dataset_tok[0])
print(type(tokenized['input_ids']), type(dataset_tok[0]['input_ids']))
```
The output is:
```
version datasets 1.1.3
Reusing dataset snli (/home/tom/.cache/huggingface/datasets/snli/plain_text/1.0.0/bb1102591c6230bd78813e229d5dd4c7fbf4fc478cec28f298761eb69e5b537c)
First item in dataset:
{'premise': 'A person on a horse jumps over a broken down airplane.', 'hypothesis': 'A person is training his horse for a competition.', 'label': 1}
Tokenized hyp:
{'input_ids': tensor([[0, 1, 2]])}
Loading cached processed dataset at /home/tom/.cache/huggingface/datasets/snli/plain_text/1.0.0/bb1102591c6230bd78813e229d5dd4c7fbf4fc478cec28f298761eb69e5b537c/cache-fe38f449fe9ac46f.arrow
Tokenized using map:
{'input_ids': [[0, 1, 2]]}
<class 'torch.Tensor'> <class 'list'>
```
Or am I doing something wrong?
It is expected behavior, you should set the format to `"torch"` as you mentioned to get pytorch tensors back.
By default datasets returns pure python objects. | [
-0.0905342847,
-0.17366229,
-0.1339070797,
0.2130297273,
0.2162035406,
0.2193656117,
0.4914948344,
0.3712694347,
0.2574450076,
-0.0263977516,
-0.1461350173,
0.6802523136,
-0.1003027707,
-0.4164583683,
0.1840577424,
0.0253589116,
0.2943930626,
0.0346807316,
-0.0507985279,
-0.2774466276,
-0.1831272095,
-0.0675767064,
-0.195776999,
0.0791180357,
-0.1412032247,
-0.1547507793,
0.1446098685,
-0.3113894165,
-0.0627615228,
-0.2368611991,
0.1946790516,
0.03357796,
0.1022555828,
0.4467197061,
-0.0001160152,
0.1183270514,
-0.0372344144,
0.2079561353,
-0.0176476166,
-0.1034470648,
0.0076182652,
-0.1327910721,
0.1470104605,
-0.1844789833,
-0.0054996861,
-0.1479553878,
-0.0391305387,
-0.6350415945,
0.1790962368,
0.3810080588,
0.1443395615,
0.2552902699,
-0.1439366937,
0.2130862474,
0.3324944377,
0.2167777121,
-0.2084973007,
-0.2550539374,
0.1627888232,
-0.0757924765,
0.0668916106,
0.1129240394,
-0.4984411895,
-0.0192025751,
0.2370799929,
0.2221134901,
-0.1869858801,
-0.5936378241,
0.0203762203,
0.1143102944,
0.3462294936,
-0.3974610567,
-0.1002948582,
-0.1565371901,
-0.2213945836,
0.0423910841,
-0.0511559956,
0.0539997816,
0.0545053668,
-0.0863510221,
-0.2528418899,
-0.0814964622,
0.0649672821,
0.2210163474,
-0.5532373786,
0.2875822186,
-0.0781859234,
0.2344747484,
0.1804771721,
-0.050585337,
0.1507670283,
-0.3792161047,
0.0853366554,
0.1579335481,
-0.3272641599,
-0.1862963587,
0.1454364657,
-0.4385434985,
0.0561809242,
-0.1962927878,
0.1501732767,
0.2216709256,
-0.3979544938,
0.1758711636,
0.1768118441,
0.1449907422,
-0.0155395055,
0.6800305247,
-0.0505109541,
-0.4166108668,
-0.0770037398,
0.1837558746,
0.0966394171,
-0.0125522465,
0.0351257436,
-0.0809562653,
0.1311855018,
0.0802533403,
-0.1056549698,
0.1230918765,
-0.5634175539,
0.109464705,
0.0026194488,
0.0384145044,
-0.1862229407,
0.1880779564,
0.0646292642,
-0.0047183642,
0.0791278481,
0.2578692436,
-0.0984068215,
-0.2119455487,
-0.1304917634,
-0.0817814544,
-0.0984929875,
-0.0916111618,
0.0619075224,
0.0923818871,
0.1118398458,
-0.0017337786,
0.2803901136,
-0.0927291662,
0.538523972,
0.17079252,
-0.1122144312,
0.4933412969,
0.223066777,
-0.0651283488,
-0.2487446964,
0.2211106867,
-0.3083319962,
0.1185799092,
0.0200918131,
0.1291927546,
-0.047202304,
-0.0984768346,
-0.2833485901,
0.1163359135,
0.2763035893,
-0.0582995079,
0.253223449,
-0.3349196613,
-0.1329491436,
-0.1963023245,
0.1043851599,
-0.0451546945,
-0.118641369,
-0.046728678,
0.0440929569,
0.0888608769,
0.0959444568,
0.3504171371,
-0.2296564281,
0.3976287842,
-0.1970898658,
0.3188100755,
0.3553223312,
-0.160584718,
-0.4590780437,
0.0325204358,
-0.0414367355,
0.2008673251,
-0.4211300015,
0.2581836879,
0.5175716281,
0.0115958489,
0.108131595,
-0.0138312727,
0.0394516401,
0.0712761581,
0.0759737566,
0.0893175229,
0.6063426137,
-0.1942306459,
0.09122587,
0.4368439317,
-0.0899205208,
0.1663244516,
0.2264936715,
-0.0353969783,
-0.0143849701,
0.256234169,
-0.098406069,
0.196491465,
0.0711436346,
-0.1331275254,
-0.3207590282,
-0.0673472062,
0.2024286687,
0.0814436451,
-0.0857605487,
-0.2460780293,
0.0505055189,
0.182400465,
-0.1853741258,
0.0724805817,
0.1081485376,
-0.040079549,
-0.2167151272,
0.030850051,
-0.0139183775,
-0.2510792315,
0.1745032668,
0.2046180665,
-0.4255836904,
0.2819702029,
0.1628722847,
0.137544781,
-0.4352928102,
0.1270136982,
-0.0553203858,
-0.083014071,
0.0987999588,
0.0349605754,
0.128052175,
0.026586784,
-0.0954572335,
0.5214629769,
0.2866053879,
-0.2311561704,
0.0751395822,
0.4937564433,
0.0238812119,
-0.2297711819,
0.19617939,
0.139500767,
0.2197048962,
0.3267370164,
-0.4468348026,
0.242346406,
0.0369450524,
0.2038595378,
-0.3506707847,
0.1286529452,
-0.4682188034,
0.2203539461,
0.1738941967,
0.1489115804,
-0.1910978407,
0.0657254979,
0.4890259504,
-0.1033507809,
0.0994027108,
-0.0586624667,
-0.5665890574,
-0.0065713972,
0.2327370495,
-0.295833379,
0.1299311072,
-0.0788211226,
0.3676331937,
0.0134283453,
-0.0215823911,
0.1092870608,
0.0924236625,
0.3519961536,
0.0202200208,
-0.0760968924,
0.0611620061,
0.0652810633,
-0.3260113001,
0.097708486,
-0.0819268897,
0.1087762564,
-0.1746969968,
0.2153778225,
-0.2485266179,
0.1146126464,
-0.077242963,
-0.4351756275,
-0.1941462904,
-0.1610158533,
-0.0932939202,
0.1621305943,
0.0375249125,
0.1928770542,
0.3247015476,
0.0016950821,
0.3418309689,
-0.2255835831,
-0.1251523942,
-0.2449374646,
-0.1197988391,
0.0738310739,
0.0181268826,
-0.4264043868,
0.0839835554,
-0.0697510391,
-0.0664161965,
-0.7368847728,
-0.2431030422,
0.1734051555,
-0.2962732911,
-0.2769446969,
0.3027133942,
0.2004775852,
-0.3066088557,
0.0971377715,
-0.0186878312,
0.1475964934,
0.0467990935,
0.0844613612,
-0.1103944033,
0.1160799712,
-0.130873993,
-0.3476417661,
-0.0094152791,
-0.0166207217,
0.2716757655,
0.0838908553,
0.1525644064,
0.0774168,
0.3029705286,
0.1268659532,
0.0299358778,
-0.1717901975,
-0.1643576473,
-0.2441186607,
0.3611246943,
-0.0520241037,
-0.2265445888,
-0.0212236214,
-0.0030596431,
0.1346481144,
0.5783624649,
-0.3174056113,
0.0344277509,
-0.0420032218,
0.2637941837,
0.0175750498,
0.1347254813,
0.3775299191,
0.2478034943,
0.1076653153,
-0.0430458225,
-0.0288082547,
-0.0538100153,
-0.016109908,
0.3160051107,
0.1498703063,
0.339720577,
0.1404834688,
0.6328850985,
0.0862663165,
-0.587051928,
-0.2141453773,
-0.3498601019,
0.2165559679,
-0.1520946026,
-0.3102630079,
-0.1093507633,
-0.2860082984,
-0.3008437157,
0.0750687495,
-0.131448999,
-0.2657193244,
0.2969169617,
0.446225822,
-0.0882329643,
-0.1677334607,
0.0572010651,
-0.622761786,
0.1875964999,
0.0649891049,
0.2781691253,
-0.3583348095,
-0.1568049639,
0.1168321967,
-0.1129731983,
0.3872702122,
-0.1263887733,
-0.7034637928,
0.0063642045,
-0.4204150736,
0.187398091,
0.0056883255,
0.1773735285,
0.1652297676,
-0.1125093326,
0.1744449735,
0.3250634372,
0.7036450505,
-0.0586118177,
-0.3005668521,
0.1336072236,
-0.0997835621,
-0.4846152067,
0.084625423,
-0.2593832612,
0.2423414886,
0.2093499452,
0.3109834194,
-0.0476544239,
-0.2322617769,
-0.3107507229,
0.1333295703,
-0.0532432571,
0.3153672516,
-0.1331275702,
-0.094195351,
-0.1271842867,
-0.1217166036,
0.1963417679,
-0.2370508462,
-0.0338919759,
-0.559225142,
-0.1888416409,
-0.0711830109,
0.1944615841,
0.0427112654,
0.2000722438,
0.131829828,
-0.2557498217,
0.2216894329,
0.1591055393,
0.1177558079,
0.07872504,
-0.1197153851,
-0.3400996625,
-0.0517674163,
0.2129711956,
0.1649908423,
-0.1602076441,
-0.1413624883,
0.1177052036,
-0.2446501702,
-0.1058982536,
-0.3997231126,
0.4764784276,
0.5671219826,
0.2579691708,
-0.3157424033,
-0.6125048399,
0.230214566,
0.3774286807,
-0.2791236341,
0.4521860182,
-0.5061216354,
-0.3920195699,
0.2071546614,
0.4282871783,
0.5739818811,
-0.4119098186,
0.2498637438,
0.0765872002,
0.2339152843,
0.4260097742,
-0.4805023968,
0.1393810809,
-0.3452284634,
0.152766183,
-0.2154874057,
-0.2566208243,
0.0636828765,
0.1887108982,
-0.031668704,
-0.1242907122,
-0.0239560045,
0.7876774073,
0.0780502036,
-0.1464799047,
0.3955986798,
-0.2671813965,
0.0892169178,
0.2036617845,
-0.121261172,
0.209936887,
0.0092976578,
0.0513107367,
-0.1965031177,
-0.1278708875,
0.0116997175,
-0.0130519485,
-0.2299929112,
0.2618727684,
0.1525952816,
-0.2011450082,
0.1392355263,
0.7396445274,
0.2234838903,
0.2516417801,
-0.0744043887,
-0.0381477401,
0.1769196391,
0.2847002447,
0.1070505232,
-0.1848677248,
0.0835150257,
0.230486691,
-0.011529346,
0.2355250269,
0.0631157309,
-0.2683453858,
-0.4846628904,
0.2600138485,
0.5671137571,
-0.3808259666,
0.2440676987,
0.1625116915,
-0.0416193157,
0.0013624061,
0.0675533265,
-0.1471410692,
-0.1325732917,
0.4093295038,
-0.1548149139,
-0.1608563662,
0.1107494012,
0.3674657941,
0.2076234072,
-0.1533612311,
0.2480869293,
0.0569404624,
-0.0848241225,
-0.291785717,
0.1096707657,
0.2019407004,
0.134980917,
0.2240549177,
-0.3578023911,
-0.1645011008,
-0.1746765524,
0.1499623507,
-0.2525675297,
-0.0387570485,
-0.3988035023,
-0.0235321261,
-0.3721064925,
-0.0252492782,
-0.0994726792,
0.4052251875,
0.133013621,
0.033004228,
-0.2353826463,
-0.284176439,
-0.2150232792,
0.0614063665,
0.1049757525,
0.3175125718,
-0.016171027,
0.1339099109,
-0.0781407654,
-0.2015334964,
0.0800732896,
0.1677752435,
-0.081593357,
-0.2401294112,
0.032487344,
0.0831724703,
0.1623702347,
-0.2706998885,
-0.0207832847,
0.0171219092,
-0.1772503555,
-0.3691254854,
0.2644967735,
0.3387386501,
-0.054842554,
0.2520480752,
0.1629131734,
0.1922450066,
0.0664828792,
-0.2389816195,
-0.0673394054,
-0.1235632077,
0.0767100677,
0.3552877903,
0.0898757353,
-0.0253588278,
-0.2356757969,
0.2498126477,
0.4343939722,
-0.1193521619,
0.5966323614,
-0.262219429,
0.107462272,
0.1145688742,
0.2363797873,
0.2327511609,
-0.3498209119,
-0.2978017628,
0.0976361111,
0.1566760242,
0.0503736101,
-0.205550313,
0.3785066009,
0.1290355623,
0.0085398359,
0.1384453028,
0.1084859595,
0.1346497685,
-0.0434604995,
-0.2603903413,
0.3331290781,
-0.3271980286,
0.4942011237,
0.3976086378,
0.0265156627,
0.0466423593,
0.1061059311,
-0.0197216794,
-0.0883842558,
0.4616709352,
0.2282726318,
0.5523837209,
0.302775681,
-0.0340123102,
0.507381916,
-0.0137490453,
0.0007739388,
-0.0157652963,
-0.2453914285,
0.2581064403,
0.1902956963,
0.0556503274,
-0.0475445464,
-0.2028522789,
0.0577836186,
0.194124341,
-0.3690660596,
-0.0328413323,
-0.1844905913,
-0.0099455202,
0.2395029366,
-0.2091047019,
-0.0376406536,
-0.2905727029,
0.1764779687,
-0.0967049524,
-0.0216087345,
-0.034052752,
-0.0009387644,
-0.0679468289,
-0.0062977201,
0.071740903,
-0.1286429763,
-0.4583577514,
0.0727507919,
-0.160646081,
0.1530969292,
0.0665913597,
0.2265328169,
-0.1436649263,
0.2057798952,
-0.0782432631,
-0.1337419748,
-0.0354567245,
0.171481058,
-0.2607646286,
-0.2001802772,
-0.0241285078,
0.0852906555,
-0.0528155938,
-0.1415355504,
-0.2138053328,
0.365047276,
0.0129366759,
0.2667193711,
-0.142458573,
-0.2983592749,
-0.144824788,
-0.1189551502,
-0.1608570516,
-0.1878197789,
0.6996370554,
-0.0350460596,
0.1697012335,
-0.1595542878,
0.0491680019,
0.0152547462,
0.261300236,
0.0646020323,
0.1442368478,
-0.008020957,
0.0412358493,
-0.1432538629,
0.3525063396,
0.2403378636,
0.12021707,
-0.0026342815,
0.0231717378,
0.0901695192,
0.2375984192,
-0.1209665388,
-0.4073792398,
0.0233072098,
0.1407173425,
0.0084183179,
-0.0124783134,
-0.5062529445,
0.279261142,
0.0773455054,
-0.1727737933,
0.2210198641,
0.0803735554,
-0.0051447386,
-0.3682465553,
0.0631456003,
-0.2415376157,
-0.0329704173,
0.4665830433,
0.285528481,
0.1157337055,
-0.0312678292,
0.0886830986,
-0.1312686354,
-0.082617797,
-0.1515827775,
0.1294197291,
-0.3124341369,
0.1052233875,
-0.2197998464,
-0.0723179951,
-0.2349601686,
-0.1989331841,
0.4463573694,
-0.3149095774,
-0.4419317544,
0.1768951565,
-0.2677645981,
0.0713505596,
0.054125756,
0.4623353481,
0.1842846125,
0.2511639297,
-0.0895965025,
-0.1723598689,
0.285271287,
-0.4563181102,
-0.358799547,
-0.0451803505,
-0.0680575743,
0.1567694694,
-0.2037457973,
-0.6132330298,
-0.3314445913,
0.4240122736,
-0.3604155779,
-0.1031687111,
-0.1472704411,
0.0790539309,
0.1174906865,
-0.3405920565,
0.194674775,
-0.0184211209,
0.0094521008,
0.2543966174,
-0.4694917202
] |
https://github.com/huggingface/datasets/issues/1004 | how large datasets are handled under the hood | This library uses Apache Arrow under the hood to store datasets on disk.
The advantage of Apache Arrow is that it allows to memory map the dataset. This allows to load datasets bigger than memory and with almost no RAM usage. It also offers excellent I/O speed.
For example when you access one element or one batch
```python
from datasets import load_dataset
squad = load_dataset("squad", split="train")
first_element = squad[0]
one_batch = squad[:8]
```
then only this element/batch is loaded in memory, while the rest of the dataset is memory mapped. | Hi
I want to use multiple large datasets with a mapping style dataloader, where they cannot fit into memory, could you tell me how you handled the datasets under the hood? is this you bring all in memory in case of mapping style ones? or is this some sharding under the hood and you bring in memory when necessary, thanks | 90 | how large datasets are handled under the hood
Hi
I want to use multiple large datasets with a mapping style dataloader, where they cannot fit into memory, could you tell me how you handled the datasets under the hood? is this you bring all in memory in case of mapping style ones? or is this some sharding under the hood and you bring in memory when necessary, thanks
This library uses Apache Arrow under the hood to store datasets on disk.
The advantage of Apache Arrow is that it allows to memory map the dataset. This allows to load datasets bigger than memory and with almost no RAM usage. It also offers excellent I/O speed.
For example when you access one element or one batch
```python
from datasets import load_dataset
squad = load_dataset("squad", split="train")
first_element = squad[0]
one_batch = squad[:8]
```
then only this element/batch is loaded in memory, while the rest of the dataset is memory mapped. | [
-0.0588864908,
-0.4006500542,
-0.0841394439,
0.4953400493,
-0.0051893401,
-0.041041296,
0.2562441826,
0.082638599,
0.4370154738,
0.1028492302,
-0.151943922,
0.0303451736,
-0.1056117117,
-0.0217183009,
0.1242288202,
0.0616417229,
0.0395505093,
-0.112102896,
-0.6995665431,
0.1022261381,
-0.2493336052,
-0.3557490706,
-0.1300131381,
-0.3272943497,
-0.3039338887,
-0.3051179945,
-0.182949096,
-0.0901295319,
0.0206643976,
-0.2042738348,
-0.0386583768,
-0.0815086141,
0.2003154159,
0.7517547607,
-0.0001189604,
-0.0367896929,
0.1360407174,
0.0017197368,
0.037643753,
0.2387627363,
-0.2333406657,
-0.3989805877,
-0.0278326198,
-0.1681381911,
0.2054622918,
-0.3424185812,
0.084858045,
-0.6162204146,
0.3852130175,
-0.1248324439,
0.1235423386,
-0.2621013522,
-0.092590034,
0.2763325274,
0.311193794,
0.1433324069,
0.0195622742,
-0.1486616284,
0.6805694699,
-0.0344122164,
-0.2302269787,
-0.1037611961,
0.1673597395,
-0.1966174692,
0.0919266418,
-0.2016808689,
0.1234458461,
-0.3608860672,
-0.0673592091,
0.1288553178,
0.5153528452,
-0.1416383833,
-0.3262239695,
-0.2012560368,
-0.2796249986,
-0.0023361139,
-0.1063352525,
0.4049005806,
-0.0822646394,
0.1108773053,
-0.3683154583,
-0.3405006528,
-0.3337823749,
-0.0366812833,
-0.3001170754,
0.1452178657,
-0.062937744,
0.0894538388,
0.1375582069,
-0.2816596925,
0.2963624895,
-0.4750455916,
0.1944922358,
0.2549039721,
-0.1021595523,
-0.2395148575,
-0.1099363044,
0.057047464,
0.4679744542,
0.1335094571,
0.2479613423,
0.1755760908,
-0.254727006,
0.0770525932,
0.3933934569,
0.1047821343,
-0.2252567559,
-0.0755658597,
0.4390207231,
-0.3594216704,
-0.141917333,
-0.106533885,
-0.0624140054,
-0.0423798785,
-0.0418436565,
-0.478564918,
-0.0784777328,
-0.2720263004,
0.2171857655,
-0.0676898062,
-0.1527037472,
-0.135527432,
0.1241801754,
0.3209930956,
-0.1514753252,
0.2444750071,
-0.0954090804,
-0.0181139559,
0.0559464991,
0.1219692603,
-0.0666994452,
0.0123050176,
-0.3038214147,
0.1711556613,
0.1640015393,
0.0028025033,
0.1232641265,
0.2098838389,
-0.0685094744,
-0.0771992952,
0.2681390941,
-0.2920343578,
0.349893719,
0.2049544901,
-0.0418094583,
0.1418164819,
-0.0727269948,
0.3579359651,
-0.2949612439,
0.4229599535,
-0.4347183704,
-0.2101901025,
0.4934933484,
0.0568362027,
-0.1956837028,
0.0365934595,
-0.5651931167,
0.0108644851,
0.1202701703,
0.0053388574,
0.0754906237,
0.1426695287,
-0.0617287308,
-0.3355421722,
-0.0220437553,
0.163993746,
-0.5725690722,
0.0951404721,
0.0164685231,
0.1323543787,
0.0292000789,
0.4890320897,
-0.2978396714,
0.0071915067,
-0.153446421,
-0.1786459088,
0.4220187366,
-0.2149097323,
-0.4589164555,
0.4631198347,
0.3623809516,
0.1702606231,
0.2086672187,
0.1883610487,
0.0513138548,
-0.1379453838,
-0.1611615419,
0.6018934846,
-0.1137397438,
0.1777110994,
-0.0230639149,
0.0201797485,
-0.0609262474,
0.0680005476,
0.0143555608,
-0.2378219962,
0.3191003203,
-0.2142079473,
0.1988715976,
-0.0789626241,
0.1503867209,
0.1449686587,
0.0309887826,
0.081658572,
0.0755419582,
-0.017064333,
-0.426179111,
0.2068162262,
-0.1172286272,
-0.3329841495,
0.028221732,
-0.0069537163,
0.2477512062,
0.075291127,
-0.0171729904,
0.1064271554,
-0.1028247997,
-0.1765659004,
-0.2068208456,
-0.0904373005,
-0.2467710376,
0.2182661742,
0.0694200993,
0.2246510834,
-0.3101905286,
0.1304000616,
0.295730114,
-0.11031387,
-0.1956483871,
-0.0994971618,
-0.1882495284,
-0.1264004707,
0.089818269,
0.0821366832,
0.2953769565,
-0.0338168368,
0.0958975554,
0.3368051648,
0.4200542569,
-0.1791237146,
0.461853385,
-0.0391623899,
0.1382339448,
-0.3454582393,
-0.211973086,
0.3631176949,
-0.2875338495,
0.5229014754,
0.1235606968,
-0.1351255029,
0.0095714256,
0.0218977295,
-0.0130684068,
0.2025155276,
0.1118587777,
0.2873813212,
0.6247630715,
0.2490034401,
0.0394605845,
-0.2190213352,
0.2453065366,
-0.0015912342,
0.2007400095,
0.0249183793,
-0.4273908138,
-0.0144782476,
0.2521751225,
-0.0906085745,
0.2695960701,
0.2748972178,
0.1174040064,
-0.1638918221,
0.4040957689,
-0.0336421914,
0.1366799027,
0.1346001327,
0.3476343751,
-0.0030692548,
0.0086475974,
-0.2951583862,
0.0046863453,
-0.2069446892,
0.0752809495,
-0.1986511797,
-0.1057803035,
0.1440145522,
-0.2291138619,
-0.2856045961,
-0.27441746,
-0.2355758846,
-0.4793236554,
-0.0293899756,
-0.2364706546,
0.0844095647,
0.0439961255,
0.0969998389,
0.0276756641,
0.6954139471,
-0.0482199676,
-0.1201424748,
0.0571185425,
-0.0296373367,
-0.091500327,
0.0601228476,
0.4931307733,
-0.2695901692,
0.3946199417,
0.4713742435,
0.0249746889,
-0.1320057809,
-0.0868252441,
0.0459545031,
0.0567708164,
0.0622709878,
-0.3290967941,
0.1470322311,
0.056165196,
0.3827185333,
-0.0509232655,
0.0700895488,
-0.0549868606,
0.0320941284,
0.0162869059,
0.3869161308,
0.2011215985,
-0.151705429,
-0.2286734283,
-0.3820272386,
0.3547497094,
0.1659954935,
0.1937939972,
0.0476234742,
0.1845692396,
-0.0287558362,
-0.0829227716,
-0.0636630431,
0.1533191353,
-0.4200548232,
0.4128157794,
-0.1698291153,
-0.0909518674,
-0.036824856,
0.1147507057,
0.0962602124,
0.4367293715,
-0.281888485,
0.1796188354,
-0.245902434,
-0.1230280623,
0.0438915454,
0.6782793403,
0.2842322588,
-0.1847536117,
-0.019374758,
-0.0482370034,
0.0945095047,
-0.2058207691,
-0.2530434132,
0.4445661008,
0.3438852131,
0.3572460711,
0.1479995698,
0.7315523028,
0.0413676985,
0.1667900831,
0.180787459,
0.2659291625,
0.0448405594,
-0.0270311087,
0.0593103692,
-0.2050998807,
0.0018670196,
0.0555118173,
0.2514945865,
0.408115536,
-0.0600084178,
-0.1175138131,
-0.3410617709,
0.1017528251,
-0.1194690391,
0.549380064,
-0.4264598787,
0.0512250662,
-0.2740890384,
-0.4009950757,
-0.2083832473,
-0.3367421031,
-0.0265997145,
-0.2223290205,
0.0735251755,
-0.0055069481,
-0.3459637165,
0.0601940826,
-0.3648680151,
0.4680426419,
-0.2491694987,
-0.1178681254,
0.2148750871,
-0.1595336199,
0.042881012,
0.1266006082,
0.2923493683,
0.0148009229,
-0.1493484825,
-0.2697578967,
-0.4613233209,
-0.3847882152,
0.1961254328,
-0.2139132917,
0.3192952573,
-0.0573560223,
0.3417535126,
-0.0771783143,
-0.2102857977,
-0.1526292264,
0.2417676896,
-0.1906874925,
-0.4075165391,
-0.1601243317,
0.0599456988,
-0.0553108118,
-0.0377537571,
0.2017259002,
-0.2686139047,
-0.0661660209,
-0.3019454181,
-0.2867476046,
-0.0922345817,
0.2089642435,
-0.1187000424,
-0.0252170078,
-0.2162247002,
0.0735464618,
0.1569158882,
0.5434239507,
0.3309316933,
0.689602375,
0.0474419743,
-0.1577115506,
-0.0407936014,
0.0503262468,
0.7631648183,
0.1033933163,
0.0692790523,
-0.0479912199,
-0.176078856,
-0.0175356343,
-0.3799073994,
0.0458385162,
0.0237212609,
0.0447605178,
-0.3666877449,
-0.4932942688,
0.7491471171,
0.4416845143,
-0.1586072594,
0.6419864297,
0.1175264791,
-0.3553230166,
0.2868680656,
0.0879770741,
1.0530867577,
-0.5129764676,
0.3421280384,
-0.4214242101,
0.1534470469,
0.2286805063,
-0.2978707254,
0.003878494,
-0.2961544394,
0.1843924969,
0.0075099138,
-0.2474555671,
0.1965354681,
0.3228403926,
-0.0341735743,
0.4432894588,
-0.0440060906,
-0.0497646406,
-0.101134032,
0.1013288423,
-0.214078784,
-0.2364329845,
-0.150103882,
0.043413654,
0.059269391,
-0.2337743342,
-0.3037475348,
0.2017507553,
0.0114064412,
0.0741860643,
0.1891054362,
-0.1522639692,
-0.2654874921,
0.2479359955,
-0.3341431916,
-0.3019462824,
0.3705098927,
0.1748020351,
-0.4805146754,
0.143681556,
0.1476093233,
0.0156083386,
-0.0116145527,
0.0454968326,
-0.0424077436,
0.0417146161,
0.2375320792,
0.0139355073,
-0.1776863188,
0.240274623,
-0.0407002233,
-0.3315975368,
-0.2111348361,
0.2733591795,
0.4035678804,
-0.2380139679,
-0.1234071478,
0.0345756598,
-0.0764060915,
0.2733541429,
0.071725361,
0.2668690979,
0.0065927138,
0.7183683515,
0.1413910836,
-0.2909386456,
-0.0997757688,
0.1619691551,
0.295493573,
-0.1225238293,
0.1843903065,
0.2407251447,
-0.0996516347,
-0.1255911738,
0.4894374609,
0.572158277,
0.006400167,
0.1267374456,
-0.1524839848,
0.0716017857,
-0.0288001616,
-0.067377165,
0.211921975,
-0.1597385705,
-0.1866056025,
-0.2719225287,
-0.3603438437,
0.4172886312,
-0.0010326384,
0.2916471958,
-0.2325252742,
-0.4795266688,
-0.1086047217,
0.2901133299,
-0.2042009234,
0.1051968336,
0.2014521062,
0.1602006406,
-0.0514423437,
0.326939553,
-0.1814512312,
0.1690796018,
-0.0361961797,
0.1177320927,
-0.0470619947,
-0.1597383767,
0.0736397877,
0.208408609,
0.1023757309,
-0.2409003079,
-0.061024379,
-0.4998577535,
0.1702679545,
-0.1786267757,
0.1662009209,
0.0231716055,
0.1309780926,
-0.1394671053,
0.2782176435,
-0.2474120855,
-0.2327938974,
0.5235773325,
0.1672571599,
0.3377897441,
0.1600791514,
0.152678147,
0.0924209729,
-0.3020654023,
-0.2376356423,
0.0810128376,
0.5221096277,
-0.0775746405,
0.2776814103,
-0.150626123,
0.0485768132,
0.3529633284,
0.1626309156,
0.2794004977,
-0.1803961396,
0.0967003927,
0.1010611728,
0.1215697452,
0.0658570603,
-0.0772055313,
-0.0332970731,
-0.0593745224,
-0.0464190356,
0.3802595735,
0.076511465,
0.2080685645,
-0.4234379828,
-0.1634893566,
0.2168817222,
0.0777116418,
-0.2301086485,
-0.0167401507,
0.0149097946,
-0.2354394197,
0.5816823244,
0.5420174599,
0.2874978483,
0.3710431755,
-0.0723343715,
0.3936845362,
0.0437641852,
-0.2661381066,
0.1471129507,
-0.509218514,
-0.0709938481,
0.5397108793,
-0.0892359093,
-0.0474880189,
-0.1384508312,
0.333666563,
0.1360916495,
-0.1799748689,
0.0582268983,
0.0999574289,
-0.1680314541,
-0.0200089123,
-0.0613547564,
-0.2377377152,
-0.0461173281,
0.1220202893,
-0.2352478057,
-0.3217305243,
0.5591570139,
0.1718376726,
0.266317606,
-0.0406024456,
0.3802275062,
0.225140661,
0.2252901793,
-0.2364737093,
0.1622787118,
-0.0555890054,
0.0773999095,
-0.0306830872,
0.0617592521,
0.1170411557,
0.0487934127,
-0.1427312642,
0.2462530285,
-0.2952972949,
-0.083124496,
-0.1168904752,
0.0976505801,
-0.0656141937,
-0.0480973497,
0.1170055345,
0.031498827,
-0.0452126674,
-0.0958298072,
-0.1793899536,
-0.1782425791,
-0.3034233451,
0.0829629302,
-0.0164642967,
-0.3817317784,
-0.026554225,
0.1691403389,
-0.3279438913,
-0.1619232893,
0.8945940733,
-0.42709741,
-0.0632164255,
0.0319750868,
0.0031155201,
-0.2406427264,
0.433824122,
0.4252314568,
0.3689441979,
-0.178540796,
-0.2688187659,
-0.2837274373,
0.1266159415,
-0.3786373734,
0.2014346868,
-0.2451911718,
0.3513480127,
0.1779810637,
0.1477286667,
0.1775556207,
-0.2818573713,
-0.029936349,
0.0541760772,
-0.2798924446,
-0.148405239,
0.050398577,
0.3968199193,
-0.0759714395,
-0.3497558832,
0.0906407237,
-0.2147782594,
-0.0670951083,
-0.1379138231,
0.1266918331,
0.2633191347,
0.1132460237,
0.43937397,
-0.005325479,
0.4129468203,
0.2855174541,
0.0577970669,
0.0514243767,
-0.0933447406,
0.1209213883,
0.0183625091,
-0.0268529281,
-0.1251741201,
-0.4177531004,
-0.1935306638,
0.0597540773,
-0.1311770529,
-0.3699882925,
-0.1227177754,
0.0791656747,
-0.4259047508,
-0.0719487965,
0.0059337742,
0.1723583341,
0.4510594308,
-0.1976388991,
-0.2763509154,
-0.2034578323,
0.0344838016,
0.0280853007,
-0.1240315288,
-0.219673112,
-0.0729816556,
0.2027069926,
0.0024569437,
0.0743601918,
-0.2780814171,
-0.0264942721,
0.4451417029,
0.0745477602,
-0.2586443126,
0.1050812081,
-0.0525456853,
-0.0332914367,
-0.2224710584,
0.2652714252,
-0.1851906478,
0.008716559,
-0.2955728769,
-0.1870116591
] |
https://github.com/huggingface/datasets/issues/1004 | how large datasets are handled under the hood | How can we change how much data is loaded to memory with Arrow? I think that I am having some performance issue with it. When Arrow loads the data from disk it does it in multiprocess? It's almost twice slower training with arrow than in memory.
EDIT:
My fault! I had not seen the `dataloader_num_workers` in `TrainingArguments` ! Now I can parallelize and go fast! Sorry, and thanks. | Hi
I want to use multiple large datasets with a mapping style dataloader, where they cannot fit into memory, could you tell me how you handled the datasets under the hood? is this you bring all in memory in case of mapping style ones? or is this some sharding under the hood and you bring in memory when necessary, thanks | 68 | how large datasets are handled under the hood
Hi
I want to use multiple large datasets with a mapping style dataloader, where they cannot fit into memory, could you tell me how you handled the datasets under the hood? is this you bring all in memory in case of mapping style ones? or is this some sharding under the hood and you bring in memory when necessary, thanks
How can we change how much data is loaded to memory with Arrow? I think that I am having some performance issue with it. When Arrow loads the data from disk it does it in multiprocess? It's almost twice slower training with arrow than in memory.
EDIT:
My fault! I had not seen the `dataloader_num_workers` in `TrainingArguments` ! Now I can parallelize and go fast! Sorry, and thanks. | [
-0.1215674952,
-0.4438161254,
-0.1115840226,
0.4983532131,
0.0678833053,
-0.1806739569,
0.1971503943,
-0.0075912951,
0.4332485795,
0.0732880235,
-0.1071145907,
0.2367631197,
-0.1338436753,
0.0458659716,
-0.0414700247,
-0.0014342527,
0.0602206364,
-0.0184701793,
-0.6697026491,
0.0676968098,
-0.1225022748,
-0.2739752829,
-0.2129991502,
-0.2707866728,
-0.4327627122,
-0.3156320751,
-0.0948930606,
-0.0439277738,
-0.0171792973,
-0.184811011,
0.0234304797,
-0.1452037841,
0.1936470121,
0.7684056759,
-0.0001201546,
-0.1148606315,
0.1988203377,
0.0495705269,
0.1518304944,
0.4270419478,
-0.2958094478,
-0.3880935907,
0.0579503961,
-0.1263777763,
0.1963099837,
-0.3373781443,
-0.0204912573,
-0.3247042894,
0.4007908404,
-0.0438232496,
0.1147308126,
-0.3078789115,
-0.0085199689,
0.2554510236,
0.1298279166,
0.0812880769,
-0.0228820294,
0.0341700055,
0.6602916718,
0.0674037561,
-0.3207935691,
0.0198223256,
0.3828053176,
-0.0876138061,
0.0810199156,
-0.2135653049,
0.1960026175,
-0.316054225,
-0.1036862284,
0.2220429182,
0.5307357907,
0.0745655596,
-0.2137931138,
-0.1574531049,
-0.1965858936,
-0.1126701981,
0.0260423962,
0.1900893152,
-0.1245141849,
0.0925197452,
-0.4205058217,
-0.384206146,
-0.3212275803,
-0.1058500409,
-0.1592168659,
0.0602540858,
-0.1440156102,
0.0976157561,
0.2512977421,
-0.244423911,
0.3467597961,
-0.2242794484,
0.0637843758,
0.2126438022,
-0.3167774975,
-0.3181912005,
-0.3145979643,
0.0072488706,
0.2140953094,
0.0262055211,
0.243201375,
0.2331735641,
-0.2770914733,
0.0579359904,
0.3730395734,
0.1893136501,
-0.2583975196,
-0.0292444415,
0.2394621372,
-0.3323385119,
-0.2076713294,
-0.0278386734,
-0.1254136711,
-0.192412734,
0.0290482286,
-0.4589645863,
-0.3164377809,
-0.22271806,
0.1845161617,
-0.1283957809,
-0.0210288391,
-0.2380318195,
0.1576437652,
0.3425008953,
-0.1521487087,
0.4732323587,
-0.190987289,
-0.1226955652,
0.0920949206,
0.0799300596,
-0.0951352865,
-0.0252471007,
-0.4440960288,
0.0891451612,
0.1055519283,
0.1422843635,
0.1316376179,
0.1794969738,
-0.2031679302,
-0.0553409532,
0.1711278856,
-0.3524623811,
0.2662959099,
0.085854046,
-0.1850572228,
0.0771693513,
-0.1993008256,
0.5173629522,
-0.1493873745,
0.3545511067,
-0.6022629738,
-0.2095151842,
0.3533728719,
0.0607272647,
0.0541065112,
-0.0319284275,
-0.5426734686,
0.0619983152,
0.1068785116,
0.0489878431,
0.1851809472,
0.0778619274,
0.0058570867,
-0.284833312,
-0.0387135074,
-0.0621045344,
-0.5078706145,
0.0839686841,
0.0214740615,
0.037901096,
0.3106988966,
0.5393095016,
-0.334410578,
0.055393286,
-0.1138812229,
-0.1326754987,
0.4459807277,
-0.2488921583,
-0.3662179708,
0.5615833402,
0.2141685188,
0.000485255,
0.2539958656,
0.1709321439,
-0.0130620794,
-0.0812170804,
-0.1040078849,
0.4598284066,
-0.0227195323,
0.1220832169,
0.0063936361,
-0.0546062626,
-0.188306883,
0.1092319787,
-0.0403846875,
-0.2716551423,
0.2416464686,
-0.208726421,
0.2332991213,
-0.0532250442,
0.0906443372,
0.1668754518,
-0.0179677512,
-0.0557856895,
0.0768467784,
0.1827199012,
-0.424836427,
0.1400218457,
-0.1323658675,
-0.4478211105,
0.2587943077,
0.1581347585,
0.246805802,
0.0421297438,
0.0565524884,
0.0603837855,
-0.1120463461,
-0.175315097,
-0.1937238127,
-0.2523959875,
-0.2292019278,
0.2160692364,
-0.0651036352,
0.1158561781,
-0.0814069808,
0.0038228359,
0.3082478046,
-0.1531686485,
-0.2304402441,
-0.1268642992,
-0.2324858159,
-0.1005855873,
-0.0570704378,
0.158271268,
0.2823880315,
0.0536020547,
0.2251096666,
0.2534129322,
0.3548588753,
-0.2406086177,
0.3344475329,
-0.0656130686,
0.0892828852,
-0.2817324698,
-0.2128620148,
0.1794788092,
-0.3186482191,
0.4223963022,
0.085099481,
-0.1555410922,
0.0558322445,
-0.0452407934,
0.0845044032,
0.2524229288,
0.1671894342,
0.1530893594,
0.5587379932,
0.3262903988,
-0.105988346,
-0.2656645775,
0.2755077779,
0.1176056042,
0.0361889414,
0.0962631926,
-0.4059446156,
-0.0126216589,
0.3432348967,
-0.057062611,
0.3225452006,
0.2703187466,
0.1609895527,
-0.2113859802,
0.4023597836,
-0.0841269195,
0.1532871276,
0.0433709137,
0.5052735209,
0.115746595,
-0.0274700541,
-0.3022119999,
0.0172642507,
-0.117532596,
0.1617854536,
-0.1426555812,
-0.0345933214,
0.0774320588,
-0.1431574076,
-0.1540316641,
-0.2296725214,
-0.2347115129,
-0.226842165,
0.1399942935,
-0.2304357588,
0.0682880133,
0.0375846103,
0.1580302268,
-0.0489987694,
0.6598152518,
-0.148091495,
0.0952270404,
0.0034784446,
0.0267199371,
-0.1317082047,
0.0593354292,
0.3570627272,
-0.3354428113,
0.2742569745,
0.4707393348,
-0.0013769157,
-0.0752436668,
0.0400802158,
0.0503907464,
0.1652083546,
-0.0751267821,
-0.330455184,
0.0211020764,
-0.1063795909,
0.2256069332,
-0.08764375,
-0.1321445554,
-0.1368319988,
-0.0243295301,
-0.0768870786,
0.3532197773,
0.2285235226,
-0.172168985,
-0.2935735583,
-0.3749924302,
0.5281121135,
0.1634027511,
0.1652740389,
0.0051039583,
0.2578337491,
0.0530494601,
-0.176707834,
-0.1510026455,
0.1319058537,
-0.4742542207,
0.314901799,
-0.081923224,
-0.0689846203,
-0.1042476296,
0.1330757737,
0.2088455856,
0.4882941246,
-0.2809641659,
0.1956725717,
-0.2383021861,
-0.1123151854,
-0.0271477476,
0.5863161683,
0.3647999465,
-0.2229545563,
-0.116202414,
-0.0678481534,
0.1707151979,
0.037697129,
-0.1658645272,
0.4770483077,
0.29287678,
0.2151964158,
0.0553327091,
0.7928885818,
0.0288616382,
0.0240357406,
0.211583361,
0.2363711447,
-0.0143145621,
0.0673247948,
0.054331053,
-0.0071295239,
-0.1185250655,
0.1347327828,
0.2699111402,
0.2387023419,
-0.2775373459,
-0.068346709,
-0.2236422598,
0.0654873326,
0.001261254,
0.6162108183,
-0.4705200493,
0.0677059218,
-0.3641808331,
-0.3642460108,
-0.2563404441,
-0.3372340202,
0.0286779217,
-0.4153473675,
0.0506316051,
-0.1354023516,
-0.3786631525,
0.0277163889,
-0.3058372736,
0.3697521389,
-0.2064964324,
0.0653838813,
0.2111523598,
-0.0974572599,
0.0683726668,
0.114317134,
0.3644964993,
0.0273178518,
-0.1912030727,
-0.3383255005,
-0.3897686601,
-0.3269129694,
0.1274353415,
-0.2958538234,
0.3514426649,
0.0417008437,
0.3639028072,
-0.0888681486,
-0.3185627162,
-0.202300787,
-0.0053316676,
-0.1367944181,
-0.3597982526,
-0.0470375754,
0.313675344,
-0.0042879703,
0.1570521742,
0.1793338358,
-0.2263773978,
-0.0278581269,
-0.3649967015,
-0.3292689919,
-0.0495651402,
0.1219875515,
-0.040801838,
0.0632386282,
-0.0552369244,
0.0639042109,
0.1632784903,
0.5767406225,
0.380877763,
0.6005831957,
-0.132429257,
-0.0862099305,
0.0495777838,
0.0185183231,
0.7553295493,
0.214344278,
0.1131466031,
-0.0358713642,
-0.0748907998,
0.0954967961,
-0.3298135996,
0.2255695313,
0.2111707926,
0.1128033176,
-0.2189624459,
-0.2797259986,
0.636716187,
0.4975313544,
-0.2060941309,
0.6815251708,
0.1078050137,
-0.311599791,
0.1510142386,
0.1986173987,
1.0732991695,
-0.3391585946,
0.2563872933,
-0.4001902044,
0.0107427957,
0.298006773,
-0.2192751467,
-0.0169279315,
-0.2645282745,
0.1219547093,
0.1109513342,
-0.2917240262,
0.0577325597,
0.4232114553,
0.0188758112,
0.3320443034,
-0.0719195902,
-0.2329232842,
-0.1749437898,
0.183175683,
0.0247572605,
-0.3504062891,
0.0221554991,
0.0375882834,
0.0225734673,
-0.2787263095,
-0.2484208345,
0.0610424206,
-0.0144862691,
0.1264961064,
0.1932105124,
-0.1726916879,
-0.4433507621,
0.2086645216,
-0.0599606149,
-0.2894450128,
0.2820927799,
0.1990354508,
-0.478054285,
-0.1115255654,
0.0340762436,
0.0615906119,
0.0477532707,
0.0596269742,
-0.0487138964,
-0.0240328256,
0.2609966099,
-0.0870551914,
-0.1830525845,
0.2442506999,
-0.1225934029,
-0.4327818453,
-0.0582565181,
0.2496168017,
0.3004876077,
-0.1192245781,
-0.2311588079,
0.0204099808,
-0.1511826664,
0.251745373,
0.0836271048,
0.2774946094,
-0.0500971861,
0.7909724116,
0.2494159043,
-0.2567225695,
0.0019730737,
0.130725801,
0.2735645175,
-0.0689036772,
0.2961666286,
0.1190427169,
-0.0571286678,
-0.1272889376,
0.2883100808,
0.7976258993,
-0.1685120016,
0.0926267505,
-0.0829770043,
-0.1534589678,
0.0405347347,
-0.0706321448,
0.3782194257,
0.0092465375,
-0.2428780347,
-0.1243839562,
-0.5275828242,
0.3954956234,
-0.1356111914,
0.2484891862,
-0.4305979908,
-0.499617964,
-0.0290931072,
0.5126156807,
-0.1911392957,
0.0985945091,
0.0381435603,
0.1594442129,
-0.0553248823,
0.1617839485,
-0.1339917183,
0.2139782608,
-0.0627116933,
0.1075632796,
-0.0651448146,
-0.1699530333,
0.0806180462,
0.1879485101,
0.1213322282,
-0.2216006815,
-0.0124038626,
-0.5101405978,
0.1077817827,
-0.1253048331,
-0.0457675122,
-0.1900533736,
0.1323084533,
-0.1343144476,
0.277882874,
-0.2167135626,
-0.2320334613,
0.5406056046,
0.291130513,
0.3465309441,
-0.0482354127,
0.0967058837,
0.235479638,
-0.3710891902,
-0.1831849813,
0.0099968426,
0.5146936178,
-0.0649755076,
0.0711034536,
-0.1131518781,
0.0666724145,
0.2207449228,
0.1693573296,
0.3511226177,
-0.1985306293,
-0.027674377,
0.1518447846,
0.1196761802,
0.1336817741,
-0.1367550045,
-0.0212048218,
-0.0366327614,
-0.0523800775,
0.2293813974,
0.174746424,
0.1164898276,
-0.3455790579,
-0.0876051784,
-0.1521981955,
-0.0900955349,
-0.3171083033,
0.0032006428,
-0.0952978507,
-0.1678312272,
0.7194026709,
0.4998330474,
0.2111172974,
0.3042778969,
0.0560458824,
0.3872671425,
0.1095197573,
-0.1552230716,
0.1879204512,
-0.4072279036,
-0.2156738937,
0.4330639839,
-0.163152799,
-0.085765928,
-0.1494223624,
0.4096544981,
0.1309775114,
-0.4170705378,
0.0842150375,
-0.0093058897,
-0.2595573366,
-0.0334638916,
-0.1247083321,
-0.2547793686,
-0.0632517636,
0.1400958151,
-0.3406804204,
-0.1436422467,
0.7731210589,
0.2533670664,
0.1256365925,
0.0517145917,
0.1903756261,
0.3081793785,
0.2620790005,
-0.205237031,
0.2533287704,
-0.1910855323,
0.0156279095,
-0.0730996579,
0.2836799026,
0.0875420049,
0.1881262064,
-0.0988175273,
0.1186789274,
-0.0183650982,
-0.0743386373,
-0.0485586748,
0.2628979385,
0.1105059087,
-0.1783750802,
0.0129785649,
0.03545231,
-0.1066148356,
-0.0415152982,
-0.2173058689,
-0.0954136997,
-0.1136343852,
0.0578150563,
0.1335176975,
-0.3826256096,
0.0070567001,
0.1573420018,
-0.291960448,
0.012727512,
0.6628473401,
-0.6076681614,
-0.042203974,
0.0380576588,
0.0058589987,
-0.2538718283,
0.6007272005,
0.3087891042,
0.4409825504,
-0.2053623796,
-0.291844964,
-0.3426281512,
0.196638003,
-0.2951281369,
0.185812071,
-0.1586431712,
0.4188534021,
0.1239367127,
0.0961687043,
0.2513201833,
-0.3321963847,
0.1066666171,
0.1493684798,
-0.4687699378,
0.0747145042,
0.2115774751,
0.428183943,
0.0526450947,
-0.3922711015,
0.2519934475,
-0.1400495768,
-0.1164678484,
0.0479284003,
0.1025737375,
0.1349617541,
0.2817673683,
0.4300048053,
-0.073496744,
0.3949262202,
0.2003696114,
0.0717503428,
0.091050975,
-0.0690016076,
0.0167735498,
-0.0334711075,
0.1069196686,
-0.0096135614,
-0.3980925083,
-0.0461170748,
0.0858107209,
-0.315244019,
-0.4286341369,
-0.0302793607,
0.0765183046,
-0.4270524383,
0.0555779859,
-0.0600569323,
0.3090156317,
0.4580043852,
-0.1033365056,
-0.4279010892,
-0.3046086729,
0.0688320547,
0.0634720325,
-0.1068474427,
-0.1119823456,
-0.1420947313,
0.2086121291,
0.1609278023,
0.1177036464,
-0.255045265,
-0.0825879946,
0.3437244892,
0.0126335146,
-0.2696296871,
0.1697090566,
-0.0544390269,
0.0863041282,
-0.1577997208,
0.3956688941,
-0.1610725671,
0.0231100321,
-0.4086104929,
-0.1885231733
] |
https://github.com/huggingface/datasets/issues/1004 | how large datasets are handled under the hood | > How can we change how much data is loaded to memory with Arrow? I think that I am having some performance issue with it. When Arrow loads the data from disk it does it in multiprocess? It's almost twice slower training with arrow than in memory.
Loading arrow data from disk is done with memory-mapping. This allows to load huge datasets without filling your RAM.
Memory mapping is almost instantaneous and is done within one process.
Then, the speed of querying examples from the dataset is I/O bounded depending on your disk. If it's an SSD then fetching examples from the dataset will be very fast.
But since the I/O speed of an SSD is lower than the one of RAM it's expected to be slower to fetch data from disk than from memory.
Still, if you load the dataset in different processes then it can be faster but there will still be the I/O bottleneck of the disk.
> EDIT:
> My fault! I had not seen the `dataloader_num_workers` in `TrainingArguments` ! Now I can parallelize and go fast! Sorry, and thanks.
Ok let me know if that helps !
| Hi
I want to use multiple large datasets with a mapping style dataloader, where they cannot fit into memory, could you tell me how you handled the datasets under the hood? is this you bring all in memory in case of mapping style ones? or is this some sharding under the hood and you bring in memory when necessary, thanks | 192 | how large datasets are handled under the hood
Hi
I want to use multiple large datasets with a mapping style dataloader, where they cannot fit into memory, could you tell me how you handled the datasets under the hood? is this you bring all in memory in case of mapping style ones? or is this some sharding under the hood and you bring in memory when necessary, thanks
> How can we change how much data is loaded to memory with Arrow? I think that I am having some performance issue with it. When Arrow loads the data from disk it does it in multiprocess? It's almost twice slower training with arrow than in memory.
Loading arrow data from disk is done with memory-mapping. This allows to load huge datasets without filling your RAM.
Memory mapping is almost instantaneous and is done within one process.
Then, the speed of querying examples from the dataset is I/O bounded depending on your disk. If it's an SSD then fetching examples from the dataset will be very fast.
But since the I/O speed of an SSD is lower than the one of RAM it's expected to be slower to fetch data from disk than from memory.
Still, if you load the dataset in different processes then it can be faster but there will still be the I/O bottleneck of the disk.
> EDIT:
> My fault! I had not seen the `dataloader_num_workers` in `TrainingArguments` ! Now I can parallelize and go fast! Sorry, and thanks.
Ok let me know if that helps !
| [
-0.1094140187,
-0.4308578372,
-0.0871282369,
0.4903816879,
0.0192652456,
-0.2002979517,
0.171061933,
0.0366568044,
0.4349530041,
0.0388859622,
-0.1141781434,
0.25518924,
-0.1232735738,
0.0230297893,
-0.0365433358,
-0.0497362167,
0.0786581859,
-0.0328219272,
-0.6193566322,
0.1037579477,
-0.1304109842,
-0.2858452499,
-0.1606624871,
-0.2703858316,
-0.3747414947,
-0.3324692547,
-0.0884396732,
-0.0381497331,
-0.0140345031,
-0.2108240128,
0.0616954975,
-0.0937615484,
0.2144099027,
0.7233290672,
-0.0001186684,
-0.0918642581,
0.1741972566,
0.0445404463,
0.0798386484,
0.3599436879,
-0.2897219062,
-0.3927341402,
0.0601457991,
-0.1590087712,
0.2115676105,
-0.3300989866,
0.0054532932,
-0.4068448246,
0.3743908405,
-0.0250436179,
0.0991554782,
-0.2730449736,
-0.058968477,
0.2336074114,
0.0868179575,
0.0922659561,
-0.0105053345,
0.0626732185,
0.6923474073,
0.052581884,
-0.3609701991,
0.0302440189,
0.3175124526,
0.0123819988,
0.1165362969,
-0.2114973813,
0.1849641353,
-0.2949662805,
-0.1062445492,
0.2516593635,
0.510558188,
0.0641360134,
-0.2390613854,
-0.2338179648,
-0.1869089305,
-0.1160809398,
0.0294370074,
0.200277701,
-0.1415208429,
0.0633398294,
-0.4293504357,
-0.359323889,
-0.2917678952,
-0.0438305475,
-0.0944025889,
0.0374130905,
-0.1127548143,
0.1373374015,
0.2806221843,
-0.2216243297,
0.3802334666,
-0.3126363754,
0.1021855697,
0.1682955027,
-0.3441885412,
-0.249354288,
-0.3483251035,
-0.0298016462,
0.2621190846,
0.0415900163,
0.2865474224,
0.256019026,
-0.2070029676,
0.0754498392,
0.3970376253,
0.1765202135,
-0.2426722795,
0.0066299387,
0.188120842,
-0.2431788445,
-0.1899866909,
0.0183487665,
-0.1382552236,
-0.16353257,
0.0175346266,
-0.4711620808,
-0.3381835818,
-0.1440288723,
0.1884439886,
-0.1743112803,
-0.0635788813,
-0.2412647009,
0.1829618067,
0.3198434711,
-0.1800625771,
0.4577943683,
-0.1897558421,
-0.0614737384,
0.0486690998,
0.0233898032,
-0.0542967953,
-0.0407356992,
-0.4293089211,
0.1759204715,
0.1483029276,
0.1976807266,
0.1073701456,
0.1569951326,
-0.2365114093,
-0.0819059461,
0.1956623793,
-0.3922348917,
0.2660461664,
0.0276158862,
-0.1685371846,
0.1142514944,
-0.1680119783,
0.4740413129,
-0.1923685372,
0.3742129207,
-0.5957951546,
-0.1878306121,
0.3516032994,
0.0461340994,
-0.0175210629,
-0.0504429489,
-0.6256650686,
0.1540377289,
0.123673901,
0.0126045235,
0.1617602557,
0.053695213,
-0.0882827416,
-0.2674566507,
0.0252440535,
-0.0110349478,
-0.4720748067,
0.0524095036,
-0.0068924148,
0.1041390151,
0.2835589647,
0.5517661572,
-0.4106474221,
0.1135396138,
-0.1192627177,
-0.1173924059,
0.4178118408,
-0.2137858123,
-0.4303640723,
0.5667304993,
0.2090753764,
0.1083020717,
0.2623873055,
0.1652846932,
0.0832059681,
-0.093070671,
-0.0598622262,
0.4544085562,
0.008070372,
0.1396607012,
-0.0041865087,
-0.0941513032,
-0.1595708579,
0.1432996392,
-0.0489725135,
-0.2116735876,
0.1907651871,
-0.2539233863,
0.2201650739,
-0.0919652954,
0.1123251468,
0.1764953434,
-0.0526341498,
-0.0457843989,
0.0468088351,
0.2086645663,
-0.4808406532,
0.2109634429,
-0.1099827439,
-0.4063665271,
0.2123640776,
0.1959594488,
0.2658375204,
0.0164992493,
0.0127256196,
0.0896876976,
-0.1028101817,
-0.1301658154,
-0.1081871912,
-0.2483936101,
-0.1687361747,
0.2720021009,
-0.0546696596,
0.0887359455,
-0.1681144983,
0.0489381365,
0.3127924204,
-0.1338701546,
-0.2315929234,
-0.15209575,
-0.2393630892,
-0.1030458808,
-0.0203981791,
0.185975194,
0.2361103743,
0.0516228452,
0.1734182388,
0.3300063312,
0.361798048,
-0.2407522202,
0.3316852748,
-0.0595704019,
0.1335674077,
-0.2932130694,
-0.1862156093,
0.2051853389,
-0.2873653471,
0.476977855,
0.0904596895,
-0.136891529,
0.0462921299,
-0.0474576205,
0.0434845313,
0.2562686503,
0.1648510695,
0.1016659141,
0.5824897885,
0.2923884988,
-0.1364486217,
-0.2872228622,
0.2512175441,
0.1232347265,
0.0444285683,
0.1085532308,
-0.3892177641,
-0.0254145097,
0.3360786438,
-0.0132311387,
0.3325226307,
0.2566536069,
0.1349618733,
-0.2326958477,
0.3514394164,
-0.0757606328,
0.1290673167,
0.1013589576,
0.5716060996,
0.0419179685,
-0.0346126445,
-0.3070818782,
0.0590893589,
-0.1795253903,
0.192303285,
-0.1513793766,
-0.0766240805,
0.1248510107,
-0.1251278371,
-0.1016535014,
-0.2586199939,
-0.2021535933,
-0.2168625742,
0.1597631276,
-0.2158705443,
0.1099503711,
0.029605506,
0.1242319942,
-0.0525165498,
0.5798898339,
-0.1888749301,
-0.0299105234,
0.0334783942,
-0.0032977297,
-0.1046979874,
0.0513124093,
0.4138848782,
-0.2695020139,
0.2428400666,
0.4030321836,
0.012897199,
-0.0930934474,
0.0647096112,
0.0429362729,
0.1651883274,
-0.0084680608,
-0.3586983979,
0.0244839787,
-0.153533712,
0.1645015031,
-0.0560687594,
-0.1228206456,
-0.0865569934,
-0.0029997248,
-0.0506533682,
0.3680098355,
0.2494109422,
-0.185035795,
-0.2905765772,
-0.3868480623,
0.4570652843,
0.131722793,
0.2138231993,
-0.0320351943,
0.3138577044,
0.0434482768,
-0.1027893424,
-0.0727143139,
0.1427300721,
-0.4498755634,
0.3469194174,
-0.0438543744,
-0.1049361154,
-0.1490645409,
0.06171057,
0.1873239577,
0.5508531332,
-0.3123833239,
0.2569413781,
-0.2491492927,
-0.1047138646,
-0.0540878437,
0.5024776459,
0.3338578343,
-0.2245718837,
-0.0651557222,
-0.0494263992,
0.1075890362,
0.0588985942,
-0.1344210953,
0.4623300433,
0.362972647,
0.2071983516,
0.1127268374,
0.8515408635,
0.0474618003,
-0.0225950666,
0.2076237351,
0.2847187221,
-0.0164004453,
0.0514184311,
0.0425162427,
-0.0239237379,
-0.1738158315,
0.1217252761,
0.2867703438,
0.1645157635,
-0.3466245532,
-0.0741962269,
-0.1795203984,
0.0329019614,
-0.0355860516,
0.6288306117,
-0.4904951155,
0.0746553838,
-0.3362239301,
-0.3155010343,
-0.2783938944,
-0.2954709232,
0.0321415588,
-0.4350833297,
0.0736292005,
-0.0972023085,
-0.414013803,
0.0775751546,
-0.3163493872,
0.3598527908,
-0.1669430137,
0.0803428143,
0.2238846123,
-0.1482656896,
0.0656243637,
0.1223183125,
0.4185762405,
0.0593040511,
-0.191244185,
-0.3322927058,
-0.3795842826,
-0.3738746941,
0.1434665471,
-0.2774184048,
0.3311067522,
0.0264465883,
0.3643664122,
-0.1758686602,
-0.2965620756,
-0.233797133,
0.0115198763,
-0.1195291355,
-0.4018986523,
-0.0110543491,
0.2433242202,
-0.0414344966,
0.1138631031,
0.1448015869,
-0.1673831791,
0.0252787881,
-0.3045031428,
-0.3236116767,
-0.0033875771,
0.1566357166,
-0.0510363355,
0.0762691945,
-0.033335764,
0.0881536379,
0.2125044912,
0.5491753817,
0.4417771399,
0.6041039824,
-0.1456148773,
-0.1475078166,
0.0422990359,
0.076743722,
0.6275826097,
0.1844049245,
0.1692970246,
-0.0458274372,
0.0028008048,
0.0699223354,
-0.3473648131,
0.2020463645,
0.1494477093,
0.1004864722,
-0.258121103,
-0.3264257014,
0.6474956274,
0.4854884148,
-0.2168368697,
0.6469346285,
0.0751322806,
-0.3495356441,
0.1484857947,
0.2040816396,
0.9574038386,
-0.3874421418,
0.2295378596,
-0.3754867613,
-0.0699313879,
0.2560861409,
-0.146265626,
-0.0042836019,
-0.2057726085,
0.0738185197,
0.1323815584,
-0.2957794368,
0.1023076773,
0.4680589139,
-0.0052510342,
0.3361814618,
-0.0461960211,
-0.2531684041,
-0.1590357423,
0.2207283229,
0.0578305423,
-0.4079688787,
-0.0023675787,
0.0437045693,
-0.0328822844,
-0.3417803645,
-0.1971240491,
0.0073160175,
-0.1261063814,
0.1556928307,
0.2336465865,
-0.1472526938,
-0.481909126,
0.2061094791,
-0.0214655176,
-0.2980782092,
0.3455940783,
0.1853112727,
-0.5106197596,
-0.1934552491,
0.0024700675,
0.0441159159,
0.0646186098,
0.0611228012,
-0.0074635139,
-0.0815528631,
0.2809120417,
-0.0454705022,
-0.1482222229,
0.2299866378,
-0.1194418818,
-0.4266665578,
-0.0451174602,
0.1846519262,
0.2980021238,
-0.0968152806,
-0.2881250381,
0.0538214222,
-0.163836807,
0.237815246,
0.0783949122,
0.2507178783,
-0.0493796542,
0.7692586184,
0.2077457458,
-0.2335700691,
0.0121914214,
0.1478606164,
0.2357035577,
-0.0680419728,
0.3137346804,
0.1327740401,
-0.0774321258,
-0.0974880382,
0.3043730557,
0.7953400016,
-0.169761613,
0.0399799049,
-0.1523757279,
-0.0817263797,
0.0579848029,
-0.0974019244,
0.3811483681,
0.0190897807,
-0.209711194,
-0.094410941,
-0.4866088927,
0.4007516503,
-0.1191909388,
0.1855312288,
-0.4160960317,
-0.5647237301,
-0.0367179327,
0.5318686366,
-0.1963837296,
0.0946611986,
0.0556867719,
0.1922025084,
-0.0515155643,
0.1955499947,
-0.1304434687,
0.2130134255,
-0.0663412809,
0.073248513,
-0.1183959544,
-0.1491827369,
0.1228653118,
0.1845218837,
0.1135307699,
-0.2815811038,
-0.0595923066,
-0.5127948523,
0.112890467,
-0.1944172084,
-0.0809628367,
-0.1357212812,
0.0704330504,
-0.1956107169,
0.2361651063,
-0.1930599362,
-0.2789947689,
0.506896615,
0.2091393322,
0.3058809936,
0.0017365771,
0.123503685,
0.2212914973,
-0.3678736985,
-0.1917041093,
0.0420166925,
0.4997467399,
-0.0878183767,
0.14131473,
-0.1559045762,
0.101866059,
0.3003263474,
0.207177937,
0.3266132176,
-0.2178707719,
-0.0989936367,
0.1522375494,
0.1160597429,
0.2051439136,
-0.1475692689,
0.0188561324,
-0.04595723,
-0.0052343034,
0.286713779,
0.1750594676,
0.1043875962,
-0.3770070076,
-0.0878646448,
-0.0629249439,
-0.0994722024,
-0.2742574513,
-0.0066033104,
-0.0984593332,
-0.1801306903,
0.7090312243,
0.4778489769,
0.2578676641,
0.2521960735,
0.0204008911,
0.4376076162,
0.1607919335,
-0.1186864898,
0.1933945268,
-0.3835194111,
-0.2017531693,
0.459551841,
-0.1625296175,
-0.0583282709,
-0.1901447326,
0.3574742377,
0.14638336,
-0.3823423386,
0.1063081771,
-0.0545989275,
-0.2116843313,
-0.0239792168,
-0.1792743206,
-0.261146307,
-0.0986673161,
0.1246709228,
-0.3771365881,
-0.2479952276,
0.7554060221,
0.2194464803,
0.1049710959,
0.0158772916,
0.196007356,
0.2868536711,
0.2450675964,
-0.2382166237,
0.244364202,
-0.2037656456,
-0.0478043593,
-0.0482902937,
0.2154529691,
0.0604507364,
0.2222894877,
-0.0795784444,
0.1138986945,
0.0227033049,
-0.0669763833,
-0.0135787679,
0.2710334063,
0.1326073259,
-0.1880734861,
0.1035916805,
0.0246735569,
-0.1113355458,
-0.0708182231,
-0.1593860388,
-0.0402798429,
-0.1572142541,
-0.01736941,
0.1063375026,
-0.3502472639,
0.0729996338,
0.1413803697,
-0.2973566055,
-0.0231424496,
0.6617960334,
-0.6750294566,
-0.0622530878,
0.0818927437,
0.0106996112,
-0.2685938179,
0.6212173104,
0.2621107996,
0.4459908903,
-0.2740020454,
-0.2401632667,
-0.3499606252,
0.1486312598,
-0.303134799,
0.1962334812,
-0.1214345321,
0.4490489662,
0.1144372523,
0.1519429982,
0.1392841786,
-0.32173118,
0.091225192,
0.158936128,
-0.4003048837,
0.0434236377,
0.1738899648,
0.4088529944,
0.0576846041,
-0.4208481908,
0.2522931695,
-0.1683634818,
-0.1276032627,
0.0830054283,
0.113126792,
0.1415846795,
0.2653017044,
0.4083061516,
-0.0353763774,
0.4078208208,
0.2056368887,
0.1028339267,
0.0268670209,
-0.0510273278,
-0.0313521735,
0.0229757596,
0.0817123652,
0.0683192089,
-0.4066523015,
-0.0133742755,
0.0460571609,
-0.2658315301,
-0.3916958869,
-0.0877720714,
0.0716308206,
-0.3862330616,
0.0770111084,
-0.04532931,
0.2807240188,
0.431735158,
-0.0866122916,
-0.3715318739,
-0.2835672796,
0.0814542025,
0.0554729141,
-0.131997481,
-0.1057250649,
-0.1213904768,
0.2079125345,
0.1666453481,
0.1442813873,
-0.2687599361,
-0.0869841129,
0.3934924901,
0.0091931578,
-0.2492116839,
0.1441193521,
-0.0894984603,
0.0986508355,
-0.1405496001,
0.353160888,
-0.1568919867,
-0.0214886311,
-0.4095468819,
-0.218459785
] |
https://github.com/huggingface/datasets/issues/996 | NotADirectoryError while loading the CNN/Dailymail dataset | Looks like the google drive download failed.
I'm getting a `Google Drive - Quota exceeded` error while looking at the downloaded file.
We should consider finding a better host than google drive for this dataset imo
related : #873 #864 |
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' | 40 | NotADirectoryError while loading the CNN/Dailymail dataset
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
Looks like the google drive download failed.
I'm getting a `Google Drive - Quota exceeded` error while looking at the downloaded file.
We should consider finding a better host than google drive for this dataset imo
related : #873 #864 | [
-0.1502869725,
0.0138756949,
0.0027154593,
0.2634352744,
0.477457583,
0.0598455593,
0.4901822805,
0.3076287508,
-0.2510555387,
0.2567768395,
-0.3245877326,
-0.0494808815,
-0.483774662,
-0.1979144365,
0.0145918233,
0.0012004753,
-0.1768812239,
0.1828713417,
-0.1539244801,
-0.0876943693,
-0.1727187037,
0.3210442364,
-0.0058408561,
0.147986114,
-0.5002063513,
-0.1975882351,
-0.0039213602,
0.5093349814,
-0.1271759123,
-0.2311133295,
0.2591029108,
-0.2564249635,
0.0552017726,
0.7316403389,
-0.0001171104,
0.3691131473,
0.305640161,
-0.0785469562,
-0.5518268347,
-0.4986004531,
0.2059126794,
-0.2117749304,
0.0436900035,
-0.2601814866,
-0.1276563257,
0.0635362789,
0.1162228882,
0.3141235113,
0.3930329978,
0.4601137638,
0.228523612,
0.2302972972,
0.2858365178,
0.0685346127,
-0.1296326518,
0.3916877806,
-0.1658728868,
0.5677594543,
-0.4966022074,
0.1812900156,
0.0389437713,
0.3057136238,
-0.1901416034,
-0.040190082,
0.0673791915,
0.0520444438,
0.2945783734,
-0.4586855769,
0.0862283483,
0.1943816096,
0.2952357531,
-0.3140711784,
-0.3520396948,
-0.0179470889,
0.1240581051,
-0.3361693621,
0.2545652092,
0.2885336876,
-0.2310854346,
0.0986495689,
-0.1670765132,
-0.1167313233,
-0.3022925258,
0.4389303923,
-0.184099853,
0.2932372093,
-0.1138127521,
0.0412948728,
0.1631835252,
-0.1387996823,
0.1639587134,
-0.075434424,
0.3370933533,
0.0137138385,
0.1517516226,
-0.1500611305,
0.0298328921,
-0.2463436723,
-0.1883453131,
0.1450429112,
-0.2204874009,
-0.3060173094,
-0.0318602398,
0.0074545559,
-0.0541748554,
0.0959954262,
-0.1966280043,
0.670101583,
0.2965374589,
0.5027937889,
0.032012973,
-0.0403409936,
-0.1909717172,
-0.2045387626,
-0.0870551169,
-0.0306531657,
0.6625393629,
-0.0383565575,
-0.3331960738,
-0.0131454328,
-0.4197603166,
0.0783915967,
0.3010307848,
0.5060918927,
0.0743205994,
-0.0245898627,
0.0031732854,
0.1511422992,
-0.0656605735,
0.3835741282,
-0.2604817152,
0.3102361262,
-0.1780567169,
-0.0055619478,
0.3036939204,
-0.3783837557,
0.2278979272,
-0.0782358572,
0.187908873,
-0.1120341048,
0.0400567055,
-0.1671947837,
-0.0153000504,
0.638967514,
-0.3143551946,
0.1221730635,
0.244889304,
-0.082311824,
-0.2242325693,
0.1375700831,
-0.1204493865,
-0.5571914315,
0.0483231507,
0.0999315679,
0.106215477,
-0.0634725317,
0.3532806039,
-0.3217018843,
0.0260888021,
-0.1006017104,
0.076735951,
-0.0643337443,
-0.1164475977,
-0.137327224,
0.3215055168,
0.5865561962,
-0.1676751822,
-0.1125146225,
-0.1753575355,
-0.1381155849,
0.2370169163,
0.4046928287,
-0.0672516674,
0.262378335,
-0.2830162942,
-0.2667838037,
0.3034884334,
-0.3377236724,
-0.4008954465,
0.0308544431,
-0.2147402465,
0.259899497,
0.0527489483,
0.1346766055,
-0.3762587607,
-0.029496653,
0.0617879108,
0.152097702,
-0.0357308052,
0.0904737636,
-0.2340042591,
-0.1187214255,
0.0879820883,
0.3039718568,
0.4382177889,
0.0894155502,
0.0313498303,
0.2227000594,
0.0503846444,
-0.2450428754,
-0.0719152689,
0.3450476825,
0.42852965,
-0.0693804249,
-0.1211158708,
0.1079737619,
-0.3771110177,
0.0220831204,
-0.0822665691,
0.31873703,
-0.2467509657,
0.0032258311,
-0.3451870978,
-0.1285057366,
-0.2752385139,
-0.1792377084,
0.1339012384,
0.190379709,
0.0196387097,
0.2382147312,
-0.2149540782,
0.2647374272,
-0.1341634393,
0.3000067174,
-0.3281888664,
0.3138390779,
-0.2469954044,
-0.0395055115,
-0.0923122466,
0.4096647501,
0.148641929,
-0.216705665,
-0.0633954555,
0.2275291681,
-0.0740629882,
-0.057676062,
0.0219568145,
-0.0339811817,
0.2657676339,
-0.090439789,
0.1729008257,
0.4206438959,
0.0139151895,
0.0184678473,
-0.0350023657,
0.4468703866,
0.0479336865,
-0.0523554198,
0.1870309114,
-0.0533488952,
0.0944571868,
-0.055123359,
-0.0113495402,
-0.0475617796,
0.227844581,
-0.1467843652,
0.5949152112,
-0.0756231695,
-0.2936545312,
-0.4982669055,
-0.0172997452,
-0.2320437133,
0.1143536642,
0.2787700295,
-0.2667390704,
0.0841671377,
-0.1810101867,
0.1811040789,
0.4754995704,
0.0569914095,
-0.0085046859,
0.1831956655,
-0.1056299135,
-0.1482228041,
0.3001135886,
0.122813262,
0.0768739507,
0.2936607003,
0.0724523216,
0.0703331605,
-0.5287975669,
-0.3453274667,
0.0061526606,
0.3515329063,
-0.3705407679,
-0.1018935367,
-0.113258414,
-0.2290439606,
-0.0317643806,
-0.4700884223,
-0.2261393219,
-0.1386553347,
0.04340408,
0.3248309493,
0.0040020151,
0.164022401,
-0.0215431135,
-0.0796543658,
0.1637671888,
-0.1426153928,
-0.2257553637,
0.1100874767,
0.1099091321,
0.0368248522,
0.4638560116,
-0.3609943688,
0.2450585216,
-0.050640177,
-0.0929015726,
-0.3026798069,
-0.4553116262,
-0.0650819466,
0.019609265,
0.2633846104,
0.1738889962,
0.3530098498,
-0.1059391052,
-0.3259161711,
0.2694614232,
0.1050129011,
-0.033388596,
0.4007443786,
-0.2799061835,
0.0285296105,
-0.0305284318,
-0.385605514,
-0.4965450466,
-0.266086638,
0.0952370316,
-0.0068392102,
0.1661556512,
0.6047116518,
0.1591120362,
0.1782281548,
-0.2618115544,
0.1731992364,
-0.0134631153,
-0.1314901114,
0.3829726577,
-0.3403705657,
-0.2306489795,
-0.0014361246,
-0.066587992,
0.2421356142,
-0.3139044642,
-0.5207077861,
-0.2967839539,
-0.0093215508,
-0.2617918253,
-0.044196859,
-0.1472935677,
0.1218886226,
-0.0831382573,
-0.06813851,
0.2673321068,
-0.134241432,
-0.1002490669,
0.0882345065,
0.0051638521,
-0.2591240704,
0.4475920796,
-0.0936798751,
0.7807013988,
0.0961856544,
0.0188386254,
0.4052088857,
-0.0160069671,
0.434135139,
-0.2269285172,
-0.403591156,
0.0421544611,
0.3586931527,
-0.0929746851,
0.1946215481,
0.1108986065,
-0.2174887657,
-0.1659695655,
-0.2698652148,
-0.40629825,
-0.1927654445,
0.2044939995,
0.0324252769,
0.044590272,
0.020426074,
-0.0603807271,
0.0829849765,
-0.2481531799,
-0.0666149259,
0.4942089319,
0.1149650961,
0.0863042474,
0.0322950631,
-0.3037803769,
-0.3901974857,
0.033883933,
0.0017106844,
0.081226714,
-0.2152148634,
0.0576921366,
0.1245849803,
0.0010683122,
0.3473905623,
0.0930740684,
-0.1501548737,
0.3155100644,
-0.3130576909,
-0.5068177581,
-0.1470018774,
-0.1153768674,
0.1861527711,
0.0638436526,
0.4790126085,
-0.3008005917,
-0.179009974,
0.5184321404,
0.0287058689,
-0.0732578263,
-0.2285503,
-0.3372282088,
-0.3872757852,
-0.4333272576,
0.1120528206,
-0.207911551,
0.1160895824,
0.073314704,
-0.1698254347,
0.1383423954,
0.1019180119,
0.1633891314,
-0.0997601822,
0.2785456777,
-0.1329899877,
0.1996033043,
0.2281344831,
0.2923978865,
0.3537791371,
0.3676195145,
-0.1571996361,
-0.117663227,
-0.0099628232,
0.1335530579,
-0.0225230288,
0.4273510575,
-0.156307444,
-0.3167839944,
0.0756198764,
0.3467938006,
0.1500737369,
-0.1691110581,
0.4981240034,
-0.0588796511,
-0.422113806,
-0.0062631504,
0.3730386496,
-0.1417731196,
0.207250163,
0.0918783098,
0.0032517368,
-0.0316045582,
0.0829577968,
-0.2496449649,
0.9348474741,
0.0290455539,
0.2436059564,
0.5999217033,
0.2633122504,
0.2116591334,
-0.3162897229,
0.1946510524,
-0.3441988826,
-0.1643299907,
-0.0195442233,
-0.1975622773,
0.0800099149,
0.2080589384,
-0.1675436944,
0.3500145376,
-0.0501819439,
-0.0432966501,
-0.2124762833,
0.2127785385,
-0.1947491467,
0.0912312418,
-0.2391409576,
0.106020771,
0.0028013296,
0.4187840819,
-0.3177286088,
-0.0307761449,
-0.1151657924,
-0.2349914759,
-0.0425483733,
0.014339162,
-0.3699414134,
0.2966135442,
0.2785765827,
-0.2126493454,
-0.3221946061,
0.1412675828,
0.1212886125,
-0.1909478605,
-0.1534513086,
0.0655236617,
-0.2706923783,
-0.1494623721,
-0.1236633435,
0.0520415381,
0.3858027756,
-0.2016159147,
-0.0922355801,
-0.0698345527,
-0.1452212334,
-0.2897568941,
0.221094057,
-0.0591009408,
0.1999624223,
-0.2618901432,
-0.2983108163,
-0.0748923868,
-0.2779406309,
-0.1450496316,
0.1157985404,
-0.0094907125,
-0.1632424891,
-0.0443022735,
-0.0702366754,
-0.3143126965,
-0.0948321,
0.1749743074,
-0.1100252643,
-0.0618415326,
0.6461936235,
0.0266935769,
-0.3503608704,
-0.1812145263,
0.1435994059,
-0.1017241031,
-0.462089479,
0.2607916892,
0.1379674822,
0.1905096173,
0.024513118,
0.0751046389,
0.2225317508,
-0.0063560335,
-0.227248311,
-0.422034204,
-0.1887054443,
0.2030885518,
0.1064959541,
0.337536782,
-0.0991909802,
0.1013696715,
0.2454852462,
-0.1607853472,
-0.2722640634,
0.1723113209,
-0.1976252347,
0.0331015252,
0.1233259439,
-0.1212877035,
0.6023902893,
0.152830869,
0.1659270972,
-0.0086321114,
-0.1814551651,
-0.2331736982,
-0.0539259538,
0.1537874937,
0.2020714283,
-0.1400084645,
0.1849013865,
0.1343209743,
-0.1158257499,
-0.0235449765,
0.0312282741,
0.1810221076,
-0.0009694389,
-0.1373784095,
0.0374223068,
-0.1362692416,
-0.051865913,
0.0387652218,
-0.0665325746,
0.2540252805,
0.168500185,
0.1101962626,
-0.1424625218,
-0.1031718403,
-0.284303695,
-0.0124080218,
0.022508353,
-0.0433384888,
0.3292865157,
-0.2255818397,
-0.1474163532,
-0.0153064989,
0.3085735142,
0.0639063641,
-0.3083704412,
0.0931775048,
0.1740080565,
0.156585902,
-0.2176669836,
-0.017072821,
0.2264404148,
-0.0404807292,
0.0061323005,
0.1918836832,
-0.1909845918,
0.059204787,
0.1142959073,
0.1501493007,
0.2236481756,
-0.2713267803,
-0.0109924078,
0.4282620847,
-0.1666843146,
0.0820704401,
0.3861885667,
-0.0831828862,
0.2314914614,
0.4109054804,
-0.303001076,
0.1395139545,
-0.3390324414,
0.056745138,
0.177060008,
-0.3423677981,
0.0567755662,
0.2707988024,
-0.0504278019,
0.0627739578,
-0.185645923,
0.3315945864,
-0.1513171345,
0.1580838561,
-0.3751069903,
0.4998324811,
-0.2893129885,
0.1727902144,
0.0603435449,
-0.1829627305,
-0.1121395975,
0.082131505,
-0.0408677161,
-0.1488432735,
0.1253467202,
0.4593401849,
-0.2215976417,
-0.0026671705,
0.2491139323,
0.2356097698,
-0.0787999034,
-0.2081490606,
0.2621291578,
0.5025695562,
-0.0162128434,
-0.1224961951,
0.6549657583,
0.5555666685,
0.2684942186,
0.0158878919,
0.3025695682,
0.0192759763,
-0.1680323482,
0.1025832295,
0.1173415706,
0.164689377,
0.4219742417,
0.1354043782,
0.1444705278,
-0.2612226009,
0.0850298703,
0.0644022897,
0.1566949487,
-0.0751102567,
0.5024010539,
-0.294659555,
-0.2122946978,
-0.3024600744,
-0.1719893813,
-0.4507957697,
0.2477429211,
0.3150810003,
-0.0316829681,
0.0680088773,
-0.0747671649,
0.0540815555,
-0.0236212518,
0.1517290622,
0.3406072557,
-0.0009295299,
-0.5548704267,
-0.0407997854,
-0.56422019,
0.304874748,
-0.2687524557,
0.1406701952,
-0.0807119012,
-0.0204130467,
-0.2169796228,
0.1230342463,
0.2206642628,
0.0039662314,
-0.1187179312,
0.0199881829,
-0.2343533486,
0.1120588854,
0.1332820356,
-0.1299860179,
0.0518983006,
-0.3918947577,
0.063695699,
-0.343334347,
-0.0343914479,
0.1496934444,
-0.0116277281,
-0.2407976836,
0.3184994161,
0.2625726461,
-0.0410650559,
0.4454625249,
-0.1143089458,
-0.2598306537,
-0.0583604202,
-0.2245171219,
-0.2071982622,
0.0214917697,
0.1680612117,
0.6819018126,
-0.1619596481,
-0.2586809099,
-0.3634818792,
0.4325463474,
-0.1076610684,
-0.2463700622,
-0.0665480271,
0.1007148102,
-0.135990262,
0.1650628597,
0.1683793366,
0.1788598597,
-0.0089131081,
0.109774068,
-0.4074540436,
-0.4818338156,
0.6003139615,
-0.2737824321,
-0.0969014168,
-0.0200533886,
0.1188861132,
-0.0998279154,
0.011676088,
-0.396060288,
0.3837618232,
0.2735112607,
0.143528372,
-0.1272130609,
0.0563927107,
0.1020403951,
0.0004618539,
0.0718717501,
0.3017480373,
0.1777069569,
-0.3659014702,
0.0227027591,
-0.2111168206
] |
https://github.com/huggingface/datasets/issues/996 | NotADirectoryError while loading the CNN/Dailymail dataset | It is working now, thank you.
Should I leave this issue open to address the Quota-exceeded error? |
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' | 17 | NotADirectoryError while loading the CNN/Dailymail dataset
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
It is working now, thank you.
Should I leave this issue open to address the Quota-exceeded error? | [
-0.1502869725,
0.0138756949,
0.0027154593,
0.2634352744,
0.477457583,
0.0598455593,
0.4901822805,
0.3076287508,
-0.2510555387,
0.2567768395,
-0.3245877326,
-0.0494808815,
-0.483774662,
-0.1979144365,
0.0145918233,
0.0012004753,
-0.1768812239,
0.1828713417,
-0.1539244801,
-0.0876943693,
-0.1727187037,
0.3210442364,
-0.0058408561,
0.147986114,
-0.5002063513,
-0.1975882351,
-0.0039213602,
0.5093349814,
-0.1271759123,
-0.2311133295,
0.2591029108,
-0.2564249635,
0.0552017726,
0.7316403389,
-0.0001171104,
0.3691131473,
0.305640161,
-0.0785469562,
-0.5518268347,
-0.4986004531,
0.2059126794,
-0.2117749304,
0.0436900035,
-0.2601814866,
-0.1276563257,
0.0635362789,
0.1162228882,
0.3141235113,
0.3930329978,
0.4601137638,
0.228523612,
0.2302972972,
0.2858365178,
0.0685346127,
-0.1296326518,
0.3916877806,
-0.1658728868,
0.5677594543,
-0.4966022074,
0.1812900156,
0.0389437713,
0.3057136238,
-0.1901416034,
-0.040190082,
0.0673791915,
0.0520444438,
0.2945783734,
-0.4586855769,
0.0862283483,
0.1943816096,
0.2952357531,
-0.3140711784,
-0.3520396948,
-0.0179470889,
0.1240581051,
-0.3361693621,
0.2545652092,
0.2885336876,
-0.2310854346,
0.0986495689,
-0.1670765132,
-0.1167313233,
-0.3022925258,
0.4389303923,
-0.184099853,
0.2932372093,
-0.1138127521,
0.0412948728,
0.1631835252,
-0.1387996823,
0.1639587134,
-0.075434424,
0.3370933533,
0.0137138385,
0.1517516226,
-0.1500611305,
0.0298328921,
-0.2463436723,
-0.1883453131,
0.1450429112,
-0.2204874009,
-0.3060173094,
-0.0318602398,
0.0074545559,
-0.0541748554,
0.0959954262,
-0.1966280043,
0.670101583,
0.2965374589,
0.5027937889,
0.032012973,
-0.0403409936,
-0.1909717172,
-0.2045387626,
-0.0870551169,
-0.0306531657,
0.6625393629,
-0.0383565575,
-0.3331960738,
-0.0131454328,
-0.4197603166,
0.0783915967,
0.3010307848,
0.5060918927,
0.0743205994,
-0.0245898627,
0.0031732854,
0.1511422992,
-0.0656605735,
0.3835741282,
-0.2604817152,
0.3102361262,
-0.1780567169,
-0.0055619478,
0.3036939204,
-0.3783837557,
0.2278979272,
-0.0782358572,
0.187908873,
-0.1120341048,
0.0400567055,
-0.1671947837,
-0.0153000504,
0.638967514,
-0.3143551946,
0.1221730635,
0.244889304,
-0.082311824,
-0.2242325693,
0.1375700831,
-0.1204493865,
-0.5571914315,
0.0483231507,
0.0999315679,
0.106215477,
-0.0634725317,
0.3532806039,
-0.3217018843,
0.0260888021,
-0.1006017104,
0.076735951,
-0.0643337443,
-0.1164475977,
-0.137327224,
0.3215055168,
0.5865561962,
-0.1676751822,
-0.1125146225,
-0.1753575355,
-0.1381155849,
0.2370169163,
0.4046928287,
-0.0672516674,
0.262378335,
-0.2830162942,
-0.2667838037,
0.3034884334,
-0.3377236724,
-0.4008954465,
0.0308544431,
-0.2147402465,
0.259899497,
0.0527489483,
0.1346766055,
-0.3762587607,
-0.029496653,
0.0617879108,
0.152097702,
-0.0357308052,
0.0904737636,
-0.2340042591,
-0.1187214255,
0.0879820883,
0.3039718568,
0.4382177889,
0.0894155502,
0.0313498303,
0.2227000594,
0.0503846444,
-0.2450428754,
-0.0719152689,
0.3450476825,
0.42852965,
-0.0693804249,
-0.1211158708,
0.1079737619,
-0.3771110177,
0.0220831204,
-0.0822665691,
0.31873703,
-0.2467509657,
0.0032258311,
-0.3451870978,
-0.1285057366,
-0.2752385139,
-0.1792377084,
0.1339012384,
0.190379709,
0.0196387097,
0.2382147312,
-0.2149540782,
0.2647374272,
-0.1341634393,
0.3000067174,
-0.3281888664,
0.3138390779,
-0.2469954044,
-0.0395055115,
-0.0923122466,
0.4096647501,
0.148641929,
-0.216705665,
-0.0633954555,
0.2275291681,
-0.0740629882,
-0.057676062,
0.0219568145,
-0.0339811817,
0.2657676339,
-0.090439789,
0.1729008257,
0.4206438959,
0.0139151895,
0.0184678473,
-0.0350023657,
0.4468703866,
0.0479336865,
-0.0523554198,
0.1870309114,
-0.0533488952,
0.0944571868,
-0.055123359,
-0.0113495402,
-0.0475617796,
0.227844581,
-0.1467843652,
0.5949152112,
-0.0756231695,
-0.2936545312,
-0.4982669055,
-0.0172997452,
-0.2320437133,
0.1143536642,
0.2787700295,
-0.2667390704,
0.0841671377,
-0.1810101867,
0.1811040789,
0.4754995704,
0.0569914095,
-0.0085046859,
0.1831956655,
-0.1056299135,
-0.1482228041,
0.3001135886,
0.122813262,
0.0768739507,
0.2936607003,
0.0724523216,
0.0703331605,
-0.5287975669,
-0.3453274667,
0.0061526606,
0.3515329063,
-0.3705407679,
-0.1018935367,
-0.113258414,
-0.2290439606,
-0.0317643806,
-0.4700884223,
-0.2261393219,
-0.1386553347,
0.04340408,
0.3248309493,
0.0040020151,
0.164022401,
-0.0215431135,
-0.0796543658,
0.1637671888,
-0.1426153928,
-0.2257553637,
0.1100874767,
0.1099091321,
0.0368248522,
0.4638560116,
-0.3609943688,
0.2450585216,
-0.050640177,
-0.0929015726,
-0.3026798069,
-0.4553116262,
-0.0650819466,
0.019609265,
0.2633846104,
0.1738889962,
0.3530098498,
-0.1059391052,
-0.3259161711,
0.2694614232,
0.1050129011,
-0.033388596,
0.4007443786,
-0.2799061835,
0.0285296105,
-0.0305284318,
-0.385605514,
-0.4965450466,
-0.266086638,
0.0952370316,
-0.0068392102,
0.1661556512,
0.6047116518,
0.1591120362,
0.1782281548,
-0.2618115544,
0.1731992364,
-0.0134631153,
-0.1314901114,
0.3829726577,
-0.3403705657,
-0.2306489795,
-0.0014361246,
-0.066587992,
0.2421356142,
-0.3139044642,
-0.5207077861,
-0.2967839539,
-0.0093215508,
-0.2617918253,
-0.044196859,
-0.1472935677,
0.1218886226,
-0.0831382573,
-0.06813851,
0.2673321068,
-0.134241432,
-0.1002490669,
0.0882345065,
0.0051638521,
-0.2591240704,
0.4475920796,
-0.0936798751,
0.7807013988,
0.0961856544,
0.0188386254,
0.4052088857,
-0.0160069671,
0.434135139,
-0.2269285172,
-0.403591156,
0.0421544611,
0.3586931527,
-0.0929746851,
0.1946215481,
0.1108986065,
-0.2174887657,
-0.1659695655,
-0.2698652148,
-0.40629825,
-0.1927654445,
0.2044939995,
0.0324252769,
0.044590272,
0.020426074,
-0.0603807271,
0.0829849765,
-0.2481531799,
-0.0666149259,
0.4942089319,
0.1149650961,
0.0863042474,
0.0322950631,
-0.3037803769,
-0.3901974857,
0.033883933,
0.0017106844,
0.081226714,
-0.2152148634,
0.0576921366,
0.1245849803,
0.0010683122,
0.3473905623,
0.0930740684,
-0.1501548737,
0.3155100644,
-0.3130576909,
-0.5068177581,
-0.1470018774,
-0.1153768674,
0.1861527711,
0.0638436526,
0.4790126085,
-0.3008005917,
-0.179009974,
0.5184321404,
0.0287058689,
-0.0732578263,
-0.2285503,
-0.3372282088,
-0.3872757852,
-0.4333272576,
0.1120528206,
-0.207911551,
0.1160895824,
0.073314704,
-0.1698254347,
0.1383423954,
0.1019180119,
0.1633891314,
-0.0997601822,
0.2785456777,
-0.1329899877,
0.1996033043,
0.2281344831,
0.2923978865,
0.3537791371,
0.3676195145,
-0.1571996361,
-0.117663227,
-0.0099628232,
0.1335530579,
-0.0225230288,
0.4273510575,
-0.156307444,
-0.3167839944,
0.0756198764,
0.3467938006,
0.1500737369,
-0.1691110581,
0.4981240034,
-0.0588796511,
-0.422113806,
-0.0062631504,
0.3730386496,
-0.1417731196,
0.207250163,
0.0918783098,
0.0032517368,
-0.0316045582,
0.0829577968,
-0.2496449649,
0.9348474741,
0.0290455539,
0.2436059564,
0.5999217033,
0.2633122504,
0.2116591334,
-0.3162897229,
0.1946510524,
-0.3441988826,
-0.1643299907,
-0.0195442233,
-0.1975622773,
0.0800099149,
0.2080589384,
-0.1675436944,
0.3500145376,
-0.0501819439,
-0.0432966501,
-0.2124762833,
0.2127785385,
-0.1947491467,
0.0912312418,
-0.2391409576,
0.106020771,
0.0028013296,
0.4187840819,
-0.3177286088,
-0.0307761449,
-0.1151657924,
-0.2349914759,
-0.0425483733,
0.014339162,
-0.3699414134,
0.2966135442,
0.2785765827,
-0.2126493454,
-0.3221946061,
0.1412675828,
0.1212886125,
-0.1909478605,
-0.1534513086,
0.0655236617,
-0.2706923783,
-0.1494623721,
-0.1236633435,
0.0520415381,
0.3858027756,
-0.2016159147,
-0.0922355801,
-0.0698345527,
-0.1452212334,
-0.2897568941,
0.221094057,
-0.0591009408,
0.1999624223,
-0.2618901432,
-0.2983108163,
-0.0748923868,
-0.2779406309,
-0.1450496316,
0.1157985404,
-0.0094907125,
-0.1632424891,
-0.0443022735,
-0.0702366754,
-0.3143126965,
-0.0948321,
0.1749743074,
-0.1100252643,
-0.0618415326,
0.6461936235,
0.0266935769,
-0.3503608704,
-0.1812145263,
0.1435994059,
-0.1017241031,
-0.462089479,
0.2607916892,
0.1379674822,
0.1905096173,
0.024513118,
0.0751046389,
0.2225317508,
-0.0063560335,
-0.227248311,
-0.422034204,
-0.1887054443,
0.2030885518,
0.1064959541,
0.337536782,
-0.0991909802,
0.1013696715,
0.2454852462,
-0.1607853472,
-0.2722640634,
0.1723113209,
-0.1976252347,
0.0331015252,
0.1233259439,
-0.1212877035,
0.6023902893,
0.152830869,
0.1659270972,
-0.0086321114,
-0.1814551651,
-0.2331736982,
-0.0539259538,
0.1537874937,
0.2020714283,
-0.1400084645,
0.1849013865,
0.1343209743,
-0.1158257499,
-0.0235449765,
0.0312282741,
0.1810221076,
-0.0009694389,
-0.1373784095,
0.0374223068,
-0.1362692416,
-0.051865913,
0.0387652218,
-0.0665325746,
0.2540252805,
0.168500185,
0.1101962626,
-0.1424625218,
-0.1031718403,
-0.284303695,
-0.0124080218,
0.022508353,
-0.0433384888,
0.3292865157,
-0.2255818397,
-0.1474163532,
-0.0153064989,
0.3085735142,
0.0639063641,
-0.3083704412,
0.0931775048,
0.1740080565,
0.156585902,
-0.2176669836,
-0.017072821,
0.2264404148,
-0.0404807292,
0.0061323005,
0.1918836832,
-0.1909845918,
0.059204787,
0.1142959073,
0.1501493007,
0.2236481756,
-0.2713267803,
-0.0109924078,
0.4282620847,
-0.1666843146,
0.0820704401,
0.3861885667,
-0.0831828862,
0.2314914614,
0.4109054804,
-0.303001076,
0.1395139545,
-0.3390324414,
0.056745138,
0.177060008,
-0.3423677981,
0.0567755662,
0.2707988024,
-0.0504278019,
0.0627739578,
-0.185645923,
0.3315945864,
-0.1513171345,
0.1580838561,
-0.3751069903,
0.4998324811,
-0.2893129885,
0.1727902144,
0.0603435449,
-0.1829627305,
-0.1121395975,
0.082131505,
-0.0408677161,
-0.1488432735,
0.1253467202,
0.4593401849,
-0.2215976417,
-0.0026671705,
0.2491139323,
0.2356097698,
-0.0787999034,
-0.2081490606,
0.2621291578,
0.5025695562,
-0.0162128434,
-0.1224961951,
0.6549657583,
0.5555666685,
0.2684942186,
0.0158878919,
0.3025695682,
0.0192759763,
-0.1680323482,
0.1025832295,
0.1173415706,
0.164689377,
0.4219742417,
0.1354043782,
0.1444705278,
-0.2612226009,
0.0850298703,
0.0644022897,
0.1566949487,
-0.0751102567,
0.5024010539,
-0.294659555,
-0.2122946978,
-0.3024600744,
-0.1719893813,
-0.4507957697,
0.2477429211,
0.3150810003,
-0.0316829681,
0.0680088773,
-0.0747671649,
0.0540815555,
-0.0236212518,
0.1517290622,
0.3406072557,
-0.0009295299,
-0.5548704267,
-0.0407997854,
-0.56422019,
0.304874748,
-0.2687524557,
0.1406701952,
-0.0807119012,
-0.0204130467,
-0.2169796228,
0.1230342463,
0.2206642628,
0.0039662314,
-0.1187179312,
0.0199881829,
-0.2343533486,
0.1120588854,
0.1332820356,
-0.1299860179,
0.0518983006,
-0.3918947577,
0.063695699,
-0.343334347,
-0.0343914479,
0.1496934444,
-0.0116277281,
-0.2407976836,
0.3184994161,
0.2625726461,
-0.0410650559,
0.4454625249,
-0.1143089458,
-0.2598306537,
-0.0583604202,
-0.2245171219,
-0.2071982622,
0.0214917697,
0.1680612117,
0.6819018126,
-0.1619596481,
-0.2586809099,
-0.3634818792,
0.4325463474,
-0.1076610684,
-0.2463700622,
-0.0665480271,
0.1007148102,
-0.135990262,
0.1650628597,
0.1683793366,
0.1788598597,
-0.0089131081,
0.109774068,
-0.4074540436,
-0.4818338156,
0.6003139615,
-0.2737824321,
-0.0969014168,
-0.0200533886,
0.1188861132,
-0.0998279154,
0.011676088,
-0.396060288,
0.3837618232,
0.2735112607,
0.143528372,
-0.1272130609,
0.0563927107,
0.1020403951,
0.0004618539,
0.0718717501,
0.3017480373,
0.1777069569,
-0.3659014702,
0.0227027591,
-0.2111168206
] |
https://github.com/huggingface/datasets/issues/996 | NotADirectoryError while loading the CNN/Dailymail dataset | I've looked into it and couldn't find a solution. This looks like a Google Drive limitation..
Please try to use other hosts when possible |
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' | 24 | NotADirectoryError while loading the CNN/Dailymail dataset
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
I've looked into it and couldn't find a solution. This looks like a Google Drive limitation..
Please try to use other hosts when possible | [
-0.1502869725,
0.0138756949,
0.0027154593,
0.2634352744,
0.477457583,
0.0598455593,
0.4901822805,
0.3076287508,
-0.2510555387,
0.2567768395,
-0.3245877326,
-0.0494808815,
-0.483774662,
-0.1979144365,
0.0145918233,
0.0012004753,
-0.1768812239,
0.1828713417,
-0.1539244801,
-0.0876943693,
-0.1727187037,
0.3210442364,
-0.0058408561,
0.147986114,
-0.5002063513,
-0.1975882351,
-0.0039213602,
0.5093349814,
-0.1271759123,
-0.2311133295,
0.2591029108,
-0.2564249635,
0.0552017726,
0.7316403389,
-0.0001171104,
0.3691131473,
0.305640161,
-0.0785469562,
-0.5518268347,
-0.4986004531,
0.2059126794,
-0.2117749304,
0.0436900035,
-0.2601814866,
-0.1276563257,
0.0635362789,
0.1162228882,
0.3141235113,
0.3930329978,
0.4601137638,
0.228523612,
0.2302972972,
0.2858365178,
0.0685346127,
-0.1296326518,
0.3916877806,
-0.1658728868,
0.5677594543,
-0.4966022074,
0.1812900156,
0.0389437713,
0.3057136238,
-0.1901416034,
-0.040190082,
0.0673791915,
0.0520444438,
0.2945783734,
-0.4586855769,
0.0862283483,
0.1943816096,
0.2952357531,
-0.3140711784,
-0.3520396948,
-0.0179470889,
0.1240581051,
-0.3361693621,
0.2545652092,
0.2885336876,
-0.2310854346,
0.0986495689,
-0.1670765132,
-0.1167313233,
-0.3022925258,
0.4389303923,
-0.184099853,
0.2932372093,
-0.1138127521,
0.0412948728,
0.1631835252,
-0.1387996823,
0.1639587134,
-0.075434424,
0.3370933533,
0.0137138385,
0.1517516226,
-0.1500611305,
0.0298328921,
-0.2463436723,
-0.1883453131,
0.1450429112,
-0.2204874009,
-0.3060173094,
-0.0318602398,
0.0074545559,
-0.0541748554,
0.0959954262,
-0.1966280043,
0.670101583,
0.2965374589,
0.5027937889,
0.032012973,
-0.0403409936,
-0.1909717172,
-0.2045387626,
-0.0870551169,
-0.0306531657,
0.6625393629,
-0.0383565575,
-0.3331960738,
-0.0131454328,
-0.4197603166,
0.0783915967,
0.3010307848,
0.5060918927,
0.0743205994,
-0.0245898627,
0.0031732854,
0.1511422992,
-0.0656605735,
0.3835741282,
-0.2604817152,
0.3102361262,
-0.1780567169,
-0.0055619478,
0.3036939204,
-0.3783837557,
0.2278979272,
-0.0782358572,
0.187908873,
-0.1120341048,
0.0400567055,
-0.1671947837,
-0.0153000504,
0.638967514,
-0.3143551946,
0.1221730635,
0.244889304,
-0.082311824,
-0.2242325693,
0.1375700831,
-0.1204493865,
-0.5571914315,
0.0483231507,
0.0999315679,
0.106215477,
-0.0634725317,
0.3532806039,
-0.3217018843,
0.0260888021,
-0.1006017104,
0.076735951,
-0.0643337443,
-0.1164475977,
-0.137327224,
0.3215055168,
0.5865561962,
-0.1676751822,
-0.1125146225,
-0.1753575355,
-0.1381155849,
0.2370169163,
0.4046928287,
-0.0672516674,
0.262378335,
-0.2830162942,
-0.2667838037,
0.3034884334,
-0.3377236724,
-0.4008954465,
0.0308544431,
-0.2147402465,
0.259899497,
0.0527489483,
0.1346766055,
-0.3762587607,
-0.029496653,
0.0617879108,
0.152097702,
-0.0357308052,
0.0904737636,
-0.2340042591,
-0.1187214255,
0.0879820883,
0.3039718568,
0.4382177889,
0.0894155502,
0.0313498303,
0.2227000594,
0.0503846444,
-0.2450428754,
-0.0719152689,
0.3450476825,
0.42852965,
-0.0693804249,
-0.1211158708,
0.1079737619,
-0.3771110177,
0.0220831204,
-0.0822665691,
0.31873703,
-0.2467509657,
0.0032258311,
-0.3451870978,
-0.1285057366,
-0.2752385139,
-0.1792377084,
0.1339012384,
0.190379709,
0.0196387097,
0.2382147312,
-0.2149540782,
0.2647374272,
-0.1341634393,
0.3000067174,
-0.3281888664,
0.3138390779,
-0.2469954044,
-0.0395055115,
-0.0923122466,
0.4096647501,
0.148641929,
-0.216705665,
-0.0633954555,
0.2275291681,
-0.0740629882,
-0.057676062,
0.0219568145,
-0.0339811817,
0.2657676339,
-0.090439789,
0.1729008257,
0.4206438959,
0.0139151895,
0.0184678473,
-0.0350023657,
0.4468703866,
0.0479336865,
-0.0523554198,
0.1870309114,
-0.0533488952,
0.0944571868,
-0.055123359,
-0.0113495402,
-0.0475617796,
0.227844581,
-0.1467843652,
0.5949152112,
-0.0756231695,
-0.2936545312,
-0.4982669055,
-0.0172997452,
-0.2320437133,
0.1143536642,
0.2787700295,
-0.2667390704,
0.0841671377,
-0.1810101867,
0.1811040789,
0.4754995704,
0.0569914095,
-0.0085046859,
0.1831956655,
-0.1056299135,
-0.1482228041,
0.3001135886,
0.122813262,
0.0768739507,
0.2936607003,
0.0724523216,
0.0703331605,
-0.5287975669,
-0.3453274667,
0.0061526606,
0.3515329063,
-0.3705407679,
-0.1018935367,
-0.113258414,
-0.2290439606,
-0.0317643806,
-0.4700884223,
-0.2261393219,
-0.1386553347,
0.04340408,
0.3248309493,
0.0040020151,
0.164022401,
-0.0215431135,
-0.0796543658,
0.1637671888,
-0.1426153928,
-0.2257553637,
0.1100874767,
0.1099091321,
0.0368248522,
0.4638560116,
-0.3609943688,
0.2450585216,
-0.050640177,
-0.0929015726,
-0.3026798069,
-0.4553116262,
-0.0650819466,
0.019609265,
0.2633846104,
0.1738889962,
0.3530098498,
-0.1059391052,
-0.3259161711,
0.2694614232,
0.1050129011,
-0.033388596,
0.4007443786,
-0.2799061835,
0.0285296105,
-0.0305284318,
-0.385605514,
-0.4965450466,
-0.266086638,
0.0952370316,
-0.0068392102,
0.1661556512,
0.6047116518,
0.1591120362,
0.1782281548,
-0.2618115544,
0.1731992364,
-0.0134631153,
-0.1314901114,
0.3829726577,
-0.3403705657,
-0.2306489795,
-0.0014361246,
-0.066587992,
0.2421356142,
-0.3139044642,
-0.5207077861,
-0.2967839539,
-0.0093215508,
-0.2617918253,
-0.044196859,
-0.1472935677,
0.1218886226,
-0.0831382573,
-0.06813851,
0.2673321068,
-0.134241432,
-0.1002490669,
0.0882345065,
0.0051638521,
-0.2591240704,
0.4475920796,
-0.0936798751,
0.7807013988,
0.0961856544,
0.0188386254,
0.4052088857,
-0.0160069671,
0.434135139,
-0.2269285172,
-0.403591156,
0.0421544611,
0.3586931527,
-0.0929746851,
0.1946215481,
0.1108986065,
-0.2174887657,
-0.1659695655,
-0.2698652148,
-0.40629825,
-0.1927654445,
0.2044939995,
0.0324252769,
0.044590272,
0.020426074,
-0.0603807271,
0.0829849765,
-0.2481531799,
-0.0666149259,
0.4942089319,
0.1149650961,
0.0863042474,
0.0322950631,
-0.3037803769,
-0.3901974857,
0.033883933,
0.0017106844,
0.081226714,
-0.2152148634,
0.0576921366,
0.1245849803,
0.0010683122,
0.3473905623,
0.0930740684,
-0.1501548737,
0.3155100644,
-0.3130576909,
-0.5068177581,
-0.1470018774,
-0.1153768674,
0.1861527711,
0.0638436526,
0.4790126085,
-0.3008005917,
-0.179009974,
0.5184321404,
0.0287058689,
-0.0732578263,
-0.2285503,
-0.3372282088,
-0.3872757852,
-0.4333272576,
0.1120528206,
-0.207911551,
0.1160895824,
0.073314704,
-0.1698254347,
0.1383423954,
0.1019180119,
0.1633891314,
-0.0997601822,
0.2785456777,
-0.1329899877,
0.1996033043,
0.2281344831,
0.2923978865,
0.3537791371,
0.3676195145,
-0.1571996361,
-0.117663227,
-0.0099628232,
0.1335530579,
-0.0225230288,
0.4273510575,
-0.156307444,
-0.3167839944,
0.0756198764,
0.3467938006,
0.1500737369,
-0.1691110581,
0.4981240034,
-0.0588796511,
-0.422113806,
-0.0062631504,
0.3730386496,
-0.1417731196,
0.207250163,
0.0918783098,
0.0032517368,
-0.0316045582,
0.0829577968,
-0.2496449649,
0.9348474741,
0.0290455539,
0.2436059564,
0.5999217033,
0.2633122504,
0.2116591334,
-0.3162897229,
0.1946510524,
-0.3441988826,
-0.1643299907,
-0.0195442233,
-0.1975622773,
0.0800099149,
0.2080589384,
-0.1675436944,
0.3500145376,
-0.0501819439,
-0.0432966501,
-0.2124762833,
0.2127785385,
-0.1947491467,
0.0912312418,
-0.2391409576,
0.106020771,
0.0028013296,
0.4187840819,
-0.3177286088,
-0.0307761449,
-0.1151657924,
-0.2349914759,
-0.0425483733,
0.014339162,
-0.3699414134,
0.2966135442,
0.2785765827,
-0.2126493454,
-0.3221946061,
0.1412675828,
0.1212886125,
-0.1909478605,
-0.1534513086,
0.0655236617,
-0.2706923783,
-0.1494623721,
-0.1236633435,
0.0520415381,
0.3858027756,
-0.2016159147,
-0.0922355801,
-0.0698345527,
-0.1452212334,
-0.2897568941,
0.221094057,
-0.0591009408,
0.1999624223,
-0.2618901432,
-0.2983108163,
-0.0748923868,
-0.2779406309,
-0.1450496316,
0.1157985404,
-0.0094907125,
-0.1632424891,
-0.0443022735,
-0.0702366754,
-0.3143126965,
-0.0948321,
0.1749743074,
-0.1100252643,
-0.0618415326,
0.6461936235,
0.0266935769,
-0.3503608704,
-0.1812145263,
0.1435994059,
-0.1017241031,
-0.462089479,
0.2607916892,
0.1379674822,
0.1905096173,
0.024513118,
0.0751046389,
0.2225317508,
-0.0063560335,
-0.227248311,
-0.422034204,
-0.1887054443,
0.2030885518,
0.1064959541,
0.337536782,
-0.0991909802,
0.1013696715,
0.2454852462,
-0.1607853472,
-0.2722640634,
0.1723113209,
-0.1976252347,
0.0331015252,
0.1233259439,
-0.1212877035,
0.6023902893,
0.152830869,
0.1659270972,
-0.0086321114,
-0.1814551651,
-0.2331736982,
-0.0539259538,
0.1537874937,
0.2020714283,
-0.1400084645,
0.1849013865,
0.1343209743,
-0.1158257499,
-0.0235449765,
0.0312282741,
0.1810221076,
-0.0009694389,
-0.1373784095,
0.0374223068,
-0.1362692416,
-0.051865913,
0.0387652218,
-0.0665325746,
0.2540252805,
0.168500185,
0.1101962626,
-0.1424625218,
-0.1031718403,
-0.284303695,
-0.0124080218,
0.022508353,
-0.0433384888,
0.3292865157,
-0.2255818397,
-0.1474163532,
-0.0153064989,
0.3085735142,
0.0639063641,
-0.3083704412,
0.0931775048,
0.1740080565,
0.156585902,
-0.2176669836,
-0.017072821,
0.2264404148,
-0.0404807292,
0.0061323005,
0.1918836832,
-0.1909845918,
0.059204787,
0.1142959073,
0.1501493007,
0.2236481756,
-0.2713267803,
-0.0109924078,
0.4282620847,
-0.1666843146,
0.0820704401,
0.3861885667,
-0.0831828862,
0.2314914614,
0.4109054804,
-0.303001076,
0.1395139545,
-0.3390324414,
0.056745138,
0.177060008,
-0.3423677981,
0.0567755662,
0.2707988024,
-0.0504278019,
0.0627739578,
-0.185645923,
0.3315945864,
-0.1513171345,
0.1580838561,
-0.3751069903,
0.4998324811,
-0.2893129885,
0.1727902144,
0.0603435449,
-0.1829627305,
-0.1121395975,
0.082131505,
-0.0408677161,
-0.1488432735,
0.1253467202,
0.4593401849,
-0.2215976417,
-0.0026671705,
0.2491139323,
0.2356097698,
-0.0787999034,
-0.2081490606,
0.2621291578,
0.5025695562,
-0.0162128434,
-0.1224961951,
0.6549657583,
0.5555666685,
0.2684942186,
0.0158878919,
0.3025695682,
0.0192759763,
-0.1680323482,
0.1025832295,
0.1173415706,
0.164689377,
0.4219742417,
0.1354043782,
0.1444705278,
-0.2612226009,
0.0850298703,
0.0644022897,
0.1566949487,
-0.0751102567,
0.5024010539,
-0.294659555,
-0.2122946978,
-0.3024600744,
-0.1719893813,
-0.4507957697,
0.2477429211,
0.3150810003,
-0.0316829681,
0.0680088773,
-0.0747671649,
0.0540815555,
-0.0236212518,
0.1517290622,
0.3406072557,
-0.0009295299,
-0.5548704267,
-0.0407997854,
-0.56422019,
0.304874748,
-0.2687524557,
0.1406701952,
-0.0807119012,
-0.0204130467,
-0.2169796228,
0.1230342463,
0.2206642628,
0.0039662314,
-0.1187179312,
0.0199881829,
-0.2343533486,
0.1120588854,
0.1332820356,
-0.1299860179,
0.0518983006,
-0.3918947577,
0.063695699,
-0.343334347,
-0.0343914479,
0.1496934444,
-0.0116277281,
-0.2407976836,
0.3184994161,
0.2625726461,
-0.0410650559,
0.4454625249,
-0.1143089458,
-0.2598306537,
-0.0583604202,
-0.2245171219,
-0.2071982622,
0.0214917697,
0.1680612117,
0.6819018126,
-0.1619596481,
-0.2586809099,
-0.3634818792,
0.4325463474,
-0.1076610684,
-0.2463700622,
-0.0665480271,
0.1007148102,
-0.135990262,
0.1650628597,
0.1683793366,
0.1788598597,
-0.0089131081,
0.109774068,
-0.4074540436,
-0.4818338156,
0.6003139615,
-0.2737824321,
-0.0969014168,
-0.0200533886,
0.1188861132,
-0.0998279154,
0.011676088,
-0.396060288,
0.3837618232,
0.2735112607,
0.143528372,
-0.1272130609,
0.0563927107,
0.1020403951,
0.0004618539,
0.0718717501,
0.3017480373,
0.1777069569,
-0.3659014702,
0.0227027591,
-0.2111168206
] |
https://github.com/huggingface/datasets/issues/996 | NotADirectoryError while loading the CNN/Dailymail dataset | The original links are google drive links. Would it be feasible for HF to maintain their own servers for this? Also, I think the same issue must also exist with TFDS. |
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' | 31 | NotADirectoryError while loading the CNN/Dailymail dataset
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
The original links are google drive links. Would it be feasible for HF to maintain their own servers for this? Also, I think the same issue must also exist with TFDS. | [
-0.1502869725,
0.0138756949,
0.0027154593,
0.2634352744,
0.477457583,
0.0598455593,
0.4901822805,
0.3076287508,
-0.2510555387,
0.2567768395,
-0.3245877326,
-0.0494808815,
-0.483774662,
-0.1979144365,
0.0145918233,
0.0012004753,
-0.1768812239,
0.1828713417,
-0.1539244801,
-0.0876943693,
-0.1727187037,
0.3210442364,
-0.0058408561,
0.147986114,
-0.5002063513,
-0.1975882351,
-0.0039213602,
0.5093349814,
-0.1271759123,
-0.2311133295,
0.2591029108,
-0.2564249635,
0.0552017726,
0.7316403389,
-0.0001171104,
0.3691131473,
0.305640161,
-0.0785469562,
-0.5518268347,
-0.4986004531,
0.2059126794,
-0.2117749304,
0.0436900035,
-0.2601814866,
-0.1276563257,
0.0635362789,
0.1162228882,
0.3141235113,
0.3930329978,
0.4601137638,
0.228523612,
0.2302972972,
0.2858365178,
0.0685346127,
-0.1296326518,
0.3916877806,
-0.1658728868,
0.5677594543,
-0.4966022074,
0.1812900156,
0.0389437713,
0.3057136238,
-0.1901416034,
-0.040190082,
0.0673791915,
0.0520444438,
0.2945783734,
-0.4586855769,
0.0862283483,
0.1943816096,
0.2952357531,
-0.3140711784,
-0.3520396948,
-0.0179470889,
0.1240581051,
-0.3361693621,
0.2545652092,
0.2885336876,
-0.2310854346,
0.0986495689,
-0.1670765132,
-0.1167313233,
-0.3022925258,
0.4389303923,
-0.184099853,
0.2932372093,
-0.1138127521,
0.0412948728,
0.1631835252,
-0.1387996823,
0.1639587134,
-0.075434424,
0.3370933533,
0.0137138385,
0.1517516226,
-0.1500611305,
0.0298328921,
-0.2463436723,
-0.1883453131,
0.1450429112,
-0.2204874009,
-0.3060173094,
-0.0318602398,
0.0074545559,
-0.0541748554,
0.0959954262,
-0.1966280043,
0.670101583,
0.2965374589,
0.5027937889,
0.032012973,
-0.0403409936,
-0.1909717172,
-0.2045387626,
-0.0870551169,
-0.0306531657,
0.6625393629,
-0.0383565575,
-0.3331960738,
-0.0131454328,
-0.4197603166,
0.0783915967,
0.3010307848,
0.5060918927,
0.0743205994,
-0.0245898627,
0.0031732854,
0.1511422992,
-0.0656605735,
0.3835741282,
-0.2604817152,
0.3102361262,
-0.1780567169,
-0.0055619478,
0.3036939204,
-0.3783837557,
0.2278979272,
-0.0782358572,
0.187908873,
-0.1120341048,
0.0400567055,
-0.1671947837,
-0.0153000504,
0.638967514,
-0.3143551946,
0.1221730635,
0.244889304,
-0.082311824,
-0.2242325693,
0.1375700831,
-0.1204493865,
-0.5571914315,
0.0483231507,
0.0999315679,
0.106215477,
-0.0634725317,
0.3532806039,
-0.3217018843,
0.0260888021,
-0.1006017104,
0.076735951,
-0.0643337443,
-0.1164475977,
-0.137327224,
0.3215055168,
0.5865561962,
-0.1676751822,
-0.1125146225,
-0.1753575355,
-0.1381155849,
0.2370169163,
0.4046928287,
-0.0672516674,
0.262378335,
-0.2830162942,
-0.2667838037,
0.3034884334,
-0.3377236724,
-0.4008954465,
0.0308544431,
-0.2147402465,
0.259899497,
0.0527489483,
0.1346766055,
-0.3762587607,
-0.029496653,
0.0617879108,
0.152097702,
-0.0357308052,
0.0904737636,
-0.2340042591,
-0.1187214255,
0.0879820883,
0.3039718568,
0.4382177889,
0.0894155502,
0.0313498303,
0.2227000594,
0.0503846444,
-0.2450428754,
-0.0719152689,
0.3450476825,
0.42852965,
-0.0693804249,
-0.1211158708,
0.1079737619,
-0.3771110177,
0.0220831204,
-0.0822665691,
0.31873703,
-0.2467509657,
0.0032258311,
-0.3451870978,
-0.1285057366,
-0.2752385139,
-0.1792377084,
0.1339012384,
0.190379709,
0.0196387097,
0.2382147312,
-0.2149540782,
0.2647374272,
-0.1341634393,
0.3000067174,
-0.3281888664,
0.3138390779,
-0.2469954044,
-0.0395055115,
-0.0923122466,
0.4096647501,
0.148641929,
-0.216705665,
-0.0633954555,
0.2275291681,
-0.0740629882,
-0.057676062,
0.0219568145,
-0.0339811817,
0.2657676339,
-0.090439789,
0.1729008257,
0.4206438959,
0.0139151895,
0.0184678473,
-0.0350023657,
0.4468703866,
0.0479336865,
-0.0523554198,
0.1870309114,
-0.0533488952,
0.0944571868,
-0.055123359,
-0.0113495402,
-0.0475617796,
0.227844581,
-0.1467843652,
0.5949152112,
-0.0756231695,
-0.2936545312,
-0.4982669055,
-0.0172997452,
-0.2320437133,
0.1143536642,
0.2787700295,
-0.2667390704,
0.0841671377,
-0.1810101867,
0.1811040789,
0.4754995704,
0.0569914095,
-0.0085046859,
0.1831956655,
-0.1056299135,
-0.1482228041,
0.3001135886,
0.122813262,
0.0768739507,
0.2936607003,
0.0724523216,
0.0703331605,
-0.5287975669,
-0.3453274667,
0.0061526606,
0.3515329063,
-0.3705407679,
-0.1018935367,
-0.113258414,
-0.2290439606,
-0.0317643806,
-0.4700884223,
-0.2261393219,
-0.1386553347,
0.04340408,
0.3248309493,
0.0040020151,
0.164022401,
-0.0215431135,
-0.0796543658,
0.1637671888,
-0.1426153928,
-0.2257553637,
0.1100874767,
0.1099091321,
0.0368248522,
0.4638560116,
-0.3609943688,
0.2450585216,
-0.050640177,
-0.0929015726,
-0.3026798069,
-0.4553116262,
-0.0650819466,
0.019609265,
0.2633846104,
0.1738889962,
0.3530098498,
-0.1059391052,
-0.3259161711,
0.2694614232,
0.1050129011,
-0.033388596,
0.4007443786,
-0.2799061835,
0.0285296105,
-0.0305284318,
-0.385605514,
-0.4965450466,
-0.266086638,
0.0952370316,
-0.0068392102,
0.1661556512,
0.6047116518,
0.1591120362,
0.1782281548,
-0.2618115544,
0.1731992364,
-0.0134631153,
-0.1314901114,
0.3829726577,
-0.3403705657,
-0.2306489795,
-0.0014361246,
-0.066587992,
0.2421356142,
-0.3139044642,
-0.5207077861,
-0.2967839539,
-0.0093215508,
-0.2617918253,
-0.044196859,
-0.1472935677,
0.1218886226,
-0.0831382573,
-0.06813851,
0.2673321068,
-0.134241432,
-0.1002490669,
0.0882345065,
0.0051638521,
-0.2591240704,
0.4475920796,
-0.0936798751,
0.7807013988,
0.0961856544,
0.0188386254,
0.4052088857,
-0.0160069671,
0.434135139,
-0.2269285172,
-0.403591156,
0.0421544611,
0.3586931527,
-0.0929746851,
0.1946215481,
0.1108986065,
-0.2174887657,
-0.1659695655,
-0.2698652148,
-0.40629825,
-0.1927654445,
0.2044939995,
0.0324252769,
0.044590272,
0.020426074,
-0.0603807271,
0.0829849765,
-0.2481531799,
-0.0666149259,
0.4942089319,
0.1149650961,
0.0863042474,
0.0322950631,
-0.3037803769,
-0.3901974857,
0.033883933,
0.0017106844,
0.081226714,
-0.2152148634,
0.0576921366,
0.1245849803,
0.0010683122,
0.3473905623,
0.0930740684,
-0.1501548737,
0.3155100644,
-0.3130576909,
-0.5068177581,
-0.1470018774,
-0.1153768674,
0.1861527711,
0.0638436526,
0.4790126085,
-0.3008005917,
-0.179009974,
0.5184321404,
0.0287058689,
-0.0732578263,
-0.2285503,
-0.3372282088,
-0.3872757852,
-0.4333272576,
0.1120528206,
-0.207911551,
0.1160895824,
0.073314704,
-0.1698254347,
0.1383423954,
0.1019180119,
0.1633891314,
-0.0997601822,
0.2785456777,
-0.1329899877,
0.1996033043,
0.2281344831,
0.2923978865,
0.3537791371,
0.3676195145,
-0.1571996361,
-0.117663227,
-0.0099628232,
0.1335530579,
-0.0225230288,
0.4273510575,
-0.156307444,
-0.3167839944,
0.0756198764,
0.3467938006,
0.1500737369,
-0.1691110581,
0.4981240034,
-0.0588796511,
-0.422113806,
-0.0062631504,
0.3730386496,
-0.1417731196,
0.207250163,
0.0918783098,
0.0032517368,
-0.0316045582,
0.0829577968,
-0.2496449649,
0.9348474741,
0.0290455539,
0.2436059564,
0.5999217033,
0.2633122504,
0.2116591334,
-0.3162897229,
0.1946510524,
-0.3441988826,
-0.1643299907,
-0.0195442233,
-0.1975622773,
0.0800099149,
0.2080589384,
-0.1675436944,
0.3500145376,
-0.0501819439,
-0.0432966501,
-0.2124762833,
0.2127785385,
-0.1947491467,
0.0912312418,
-0.2391409576,
0.106020771,
0.0028013296,
0.4187840819,
-0.3177286088,
-0.0307761449,
-0.1151657924,
-0.2349914759,
-0.0425483733,
0.014339162,
-0.3699414134,
0.2966135442,
0.2785765827,
-0.2126493454,
-0.3221946061,
0.1412675828,
0.1212886125,
-0.1909478605,
-0.1534513086,
0.0655236617,
-0.2706923783,
-0.1494623721,
-0.1236633435,
0.0520415381,
0.3858027756,
-0.2016159147,
-0.0922355801,
-0.0698345527,
-0.1452212334,
-0.2897568941,
0.221094057,
-0.0591009408,
0.1999624223,
-0.2618901432,
-0.2983108163,
-0.0748923868,
-0.2779406309,
-0.1450496316,
0.1157985404,
-0.0094907125,
-0.1632424891,
-0.0443022735,
-0.0702366754,
-0.3143126965,
-0.0948321,
0.1749743074,
-0.1100252643,
-0.0618415326,
0.6461936235,
0.0266935769,
-0.3503608704,
-0.1812145263,
0.1435994059,
-0.1017241031,
-0.462089479,
0.2607916892,
0.1379674822,
0.1905096173,
0.024513118,
0.0751046389,
0.2225317508,
-0.0063560335,
-0.227248311,
-0.422034204,
-0.1887054443,
0.2030885518,
0.1064959541,
0.337536782,
-0.0991909802,
0.1013696715,
0.2454852462,
-0.1607853472,
-0.2722640634,
0.1723113209,
-0.1976252347,
0.0331015252,
0.1233259439,
-0.1212877035,
0.6023902893,
0.152830869,
0.1659270972,
-0.0086321114,
-0.1814551651,
-0.2331736982,
-0.0539259538,
0.1537874937,
0.2020714283,
-0.1400084645,
0.1849013865,
0.1343209743,
-0.1158257499,
-0.0235449765,
0.0312282741,
0.1810221076,
-0.0009694389,
-0.1373784095,
0.0374223068,
-0.1362692416,
-0.051865913,
0.0387652218,
-0.0665325746,
0.2540252805,
0.168500185,
0.1101962626,
-0.1424625218,
-0.1031718403,
-0.284303695,
-0.0124080218,
0.022508353,
-0.0433384888,
0.3292865157,
-0.2255818397,
-0.1474163532,
-0.0153064989,
0.3085735142,
0.0639063641,
-0.3083704412,
0.0931775048,
0.1740080565,
0.156585902,
-0.2176669836,
-0.017072821,
0.2264404148,
-0.0404807292,
0.0061323005,
0.1918836832,
-0.1909845918,
0.059204787,
0.1142959073,
0.1501493007,
0.2236481756,
-0.2713267803,
-0.0109924078,
0.4282620847,
-0.1666843146,
0.0820704401,
0.3861885667,
-0.0831828862,
0.2314914614,
0.4109054804,
-0.303001076,
0.1395139545,
-0.3390324414,
0.056745138,
0.177060008,
-0.3423677981,
0.0567755662,
0.2707988024,
-0.0504278019,
0.0627739578,
-0.185645923,
0.3315945864,
-0.1513171345,
0.1580838561,
-0.3751069903,
0.4998324811,
-0.2893129885,
0.1727902144,
0.0603435449,
-0.1829627305,
-0.1121395975,
0.082131505,
-0.0408677161,
-0.1488432735,
0.1253467202,
0.4593401849,
-0.2215976417,
-0.0026671705,
0.2491139323,
0.2356097698,
-0.0787999034,
-0.2081490606,
0.2621291578,
0.5025695562,
-0.0162128434,
-0.1224961951,
0.6549657583,
0.5555666685,
0.2684942186,
0.0158878919,
0.3025695682,
0.0192759763,
-0.1680323482,
0.1025832295,
0.1173415706,
0.164689377,
0.4219742417,
0.1354043782,
0.1444705278,
-0.2612226009,
0.0850298703,
0.0644022897,
0.1566949487,
-0.0751102567,
0.5024010539,
-0.294659555,
-0.2122946978,
-0.3024600744,
-0.1719893813,
-0.4507957697,
0.2477429211,
0.3150810003,
-0.0316829681,
0.0680088773,
-0.0747671649,
0.0540815555,
-0.0236212518,
0.1517290622,
0.3406072557,
-0.0009295299,
-0.5548704267,
-0.0407997854,
-0.56422019,
0.304874748,
-0.2687524557,
0.1406701952,
-0.0807119012,
-0.0204130467,
-0.2169796228,
0.1230342463,
0.2206642628,
0.0039662314,
-0.1187179312,
0.0199881829,
-0.2343533486,
0.1120588854,
0.1332820356,
-0.1299860179,
0.0518983006,
-0.3918947577,
0.063695699,
-0.343334347,
-0.0343914479,
0.1496934444,
-0.0116277281,
-0.2407976836,
0.3184994161,
0.2625726461,
-0.0410650559,
0.4454625249,
-0.1143089458,
-0.2598306537,
-0.0583604202,
-0.2245171219,
-0.2071982622,
0.0214917697,
0.1680612117,
0.6819018126,
-0.1619596481,
-0.2586809099,
-0.3634818792,
0.4325463474,
-0.1076610684,
-0.2463700622,
-0.0665480271,
0.1007148102,
-0.135990262,
0.1650628597,
0.1683793366,
0.1788598597,
-0.0089131081,
0.109774068,
-0.4074540436,
-0.4818338156,
0.6003139615,
-0.2737824321,
-0.0969014168,
-0.0200533886,
0.1188861132,
-0.0998279154,
0.011676088,
-0.396060288,
0.3837618232,
0.2735112607,
0.143528372,
-0.1272130609,
0.0563927107,
0.1020403951,
0.0004618539,
0.0718717501,
0.3017480373,
0.1777069569,
-0.3659014702,
0.0227027591,
-0.2111168206
] |
https://github.com/huggingface/datasets/issues/996 | NotADirectoryError while loading the CNN/Dailymail dataset | It's possible to host data on our side but we should ask the authors. TFDS has the same issue and doesn't have a solution either afaik.
Otherwise you can use the google drive link, but it it's not that convenient because of this quota issue. |
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' | 45 | NotADirectoryError while loading the CNN/Dailymail dataset
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
It's possible to host data on our side but we should ask the authors. TFDS has the same issue and doesn't have a solution either afaik.
Otherwise you can use the google drive link, but it it's not that convenient because of this quota issue. | [
-0.1502869725,
0.0138756949,
0.0027154593,
0.2634352744,
0.477457583,
0.0598455593,
0.4901822805,
0.3076287508,
-0.2510555387,
0.2567768395,
-0.3245877326,
-0.0494808815,
-0.483774662,
-0.1979144365,
0.0145918233,
0.0012004753,
-0.1768812239,
0.1828713417,
-0.1539244801,
-0.0876943693,
-0.1727187037,
0.3210442364,
-0.0058408561,
0.147986114,
-0.5002063513,
-0.1975882351,
-0.0039213602,
0.5093349814,
-0.1271759123,
-0.2311133295,
0.2591029108,
-0.2564249635,
0.0552017726,
0.7316403389,
-0.0001171104,
0.3691131473,
0.305640161,
-0.0785469562,
-0.5518268347,
-0.4986004531,
0.2059126794,
-0.2117749304,
0.0436900035,
-0.2601814866,
-0.1276563257,
0.0635362789,
0.1162228882,
0.3141235113,
0.3930329978,
0.4601137638,
0.228523612,
0.2302972972,
0.2858365178,
0.0685346127,
-0.1296326518,
0.3916877806,
-0.1658728868,
0.5677594543,
-0.4966022074,
0.1812900156,
0.0389437713,
0.3057136238,
-0.1901416034,
-0.040190082,
0.0673791915,
0.0520444438,
0.2945783734,
-0.4586855769,
0.0862283483,
0.1943816096,
0.2952357531,
-0.3140711784,
-0.3520396948,
-0.0179470889,
0.1240581051,
-0.3361693621,
0.2545652092,
0.2885336876,
-0.2310854346,
0.0986495689,
-0.1670765132,
-0.1167313233,
-0.3022925258,
0.4389303923,
-0.184099853,
0.2932372093,
-0.1138127521,
0.0412948728,
0.1631835252,
-0.1387996823,
0.1639587134,
-0.075434424,
0.3370933533,
0.0137138385,
0.1517516226,
-0.1500611305,
0.0298328921,
-0.2463436723,
-0.1883453131,
0.1450429112,
-0.2204874009,
-0.3060173094,
-0.0318602398,
0.0074545559,
-0.0541748554,
0.0959954262,
-0.1966280043,
0.670101583,
0.2965374589,
0.5027937889,
0.032012973,
-0.0403409936,
-0.1909717172,
-0.2045387626,
-0.0870551169,
-0.0306531657,
0.6625393629,
-0.0383565575,
-0.3331960738,
-0.0131454328,
-0.4197603166,
0.0783915967,
0.3010307848,
0.5060918927,
0.0743205994,
-0.0245898627,
0.0031732854,
0.1511422992,
-0.0656605735,
0.3835741282,
-0.2604817152,
0.3102361262,
-0.1780567169,
-0.0055619478,
0.3036939204,
-0.3783837557,
0.2278979272,
-0.0782358572,
0.187908873,
-0.1120341048,
0.0400567055,
-0.1671947837,
-0.0153000504,
0.638967514,
-0.3143551946,
0.1221730635,
0.244889304,
-0.082311824,
-0.2242325693,
0.1375700831,
-0.1204493865,
-0.5571914315,
0.0483231507,
0.0999315679,
0.106215477,
-0.0634725317,
0.3532806039,
-0.3217018843,
0.0260888021,
-0.1006017104,
0.076735951,
-0.0643337443,
-0.1164475977,
-0.137327224,
0.3215055168,
0.5865561962,
-0.1676751822,
-0.1125146225,
-0.1753575355,
-0.1381155849,
0.2370169163,
0.4046928287,
-0.0672516674,
0.262378335,
-0.2830162942,
-0.2667838037,
0.3034884334,
-0.3377236724,
-0.4008954465,
0.0308544431,
-0.2147402465,
0.259899497,
0.0527489483,
0.1346766055,
-0.3762587607,
-0.029496653,
0.0617879108,
0.152097702,
-0.0357308052,
0.0904737636,
-0.2340042591,
-0.1187214255,
0.0879820883,
0.3039718568,
0.4382177889,
0.0894155502,
0.0313498303,
0.2227000594,
0.0503846444,
-0.2450428754,
-0.0719152689,
0.3450476825,
0.42852965,
-0.0693804249,
-0.1211158708,
0.1079737619,
-0.3771110177,
0.0220831204,
-0.0822665691,
0.31873703,
-0.2467509657,
0.0032258311,
-0.3451870978,
-0.1285057366,
-0.2752385139,
-0.1792377084,
0.1339012384,
0.190379709,
0.0196387097,
0.2382147312,
-0.2149540782,
0.2647374272,
-0.1341634393,
0.3000067174,
-0.3281888664,
0.3138390779,
-0.2469954044,
-0.0395055115,
-0.0923122466,
0.4096647501,
0.148641929,
-0.216705665,
-0.0633954555,
0.2275291681,
-0.0740629882,
-0.057676062,
0.0219568145,
-0.0339811817,
0.2657676339,
-0.090439789,
0.1729008257,
0.4206438959,
0.0139151895,
0.0184678473,
-0.0350023657,
0.4468703866,
0.0479336865,
-0.0523554198,
0.1870309114,
-0.0533488952,
0.0944571868,
-0.055123359,
-0.0113495402,
-0.0475617796,
0.227844581,
-0.1467843652,
0.5949152112,
-0.0756231695,
-0.2936545312,
-0.4982669055,
-0.0172997452,
-0.2320437133,
0.1143536642,
0.2787700295,
-0.2667390704,
0.0841671377,
-0.1810101867,
0.1811040789,
0.4754995704,
0.0569914095,
-0.0085046859,
0.1831956655,
-0.1056299135,
-0.1482228041,
0.3001135886,
0.122813262,
0.0768739507,
0.2936607003,
0.0724523216,
0.0703331605,
-0.5287975669,
-0.3453274667,
0.0061526606,
0.3515329063,
-0.3705407679,
-0.1018935367,
-0.113258414,
-0.2290439606,
-0.0317643806,
-0.4700884223,
-0.2261393219,
-0.1386553347,
0.04340408,
0.3248309493,
0.0040020151,
0.164022401,
-0.0215431135,
-0.0796543658,
0.1637671888,
-0.1426153928,
-0.2257553637,
0.1100874767,
0.1099091321,
0.0368248522,
0.4638560116,
-0.3609943688,
0.2450585216,
-0.050640177,
-0.0929015726,
-0.3026798069,
-0.4553116262,
-0.0650819466,
0.019609265,
0.2633846104,
0.1738889962,
0.3530098498,
-0.1059391052,
-0.3259161711,
0.2694614232,
0.1050129011,
-0.033388596,
0.4007443786,
-0.2799061835,
0.0285296105,
-0.0305284318,
-0.385605514,
-0.4965450466,
-0.266086638,
0.0952370316,
-0.0068392102,
0.1661556512,
0.6047116518,
0.1591120362,
0.1782281548,
-0.2618115544,
0.1731992364,
-0.0134631153,
-0.1314901114,
0.3829726577,
-0.3403705657,
-0.2306489795,
-0.0014361246,
-0.066587992,
0.2421356142,
-0.3139044642,
-0.5207077861,
-0.2967839539,
-0.0093215508,
-0.2617918253,
-0.044196859,
-0.1472935677,
0.1218886226,
-0.0831382573,
-0.06813851,
0.2673321068,
-0.134241432,
-0.1002490669,
0.0882345065,
0.0051638521,
-0.2591240704,
0.4475920796,
-0.0936798751,
0.7807013988,
0.0961856544,
0.0188386254,
0.4052088857,
-0.0160069671,
0.434135139,
-0.2269285172,
-0.403591156,
0.0421544611,
0.3586931527,
-0.0929746851,
0.1946215481,
0.1108986065,
-0.2174887657,
-0.1659695655,
-0.2698652148,
-0.40629825,
-0.1927654445,
0.2044939995,
0.0324252769,
0.044590272,
0.020426074,
-0.0603807271,
0.0829849765,
-0.2481531799,
-0.0666149259,
0.4942089319,
0.1149650961,
0.0863042474,
0.0322950631,
-0.3037803769,
-0.3901974857,
0.033883933,
0.0017106844,
0.081226714,
-0.2152148634,
0.0576921366,
0.1245849803,
0.0010683122,
0.3473905623,
0.0930740684,
-0.1501548737,
0.3155100644,
-0.3130576909,
-0.5068177581,
-0.1470018774,
-0.1153768674,
0.1861527711,
0.0638436526,
0.4790126085,
-0.3008005917,
-0.179009974,
0.5184321404,
0.0287058689,
-0.0732578263,
-0.2285503,
-0.3372282088,
-0.3872757852,
-0.4333272576,
0.1120528206,
-0.207911551,
0.1160895824,
0.073314704,
-0.1698254347,
0.1383423954,
0.1019180119,
0.1633891314,
-0.0997601822,
0.2785456777,
-0.1329899877,
0.1996033043,
0.2281344831,
0.2923978865,
0.3537791371,
0.3676195145,
-0.1571996361,
-0.117663227,
-0.0099628232,
0.1335530579,
-0.0225230288,
0.4273510575,
-0.156307444,
-0.3167839944,
0.0756198764,
0.3467938006,
0.1500737369,
-0.1691110581,
0.4981240034,
-0.0588796511,
-0.422113806,
-0.0062631504,
0.3730386496,
-0.1417731196,
0.207250163,
0.0918783098,
0.0032517368,
-0.0316045582,
0.0829577968,
-0.2496449649,
0.9348474741,
0.0290455539,
0.2436059564,
0.5999217033,
0.2633122504,
0.2116591334,
-0.3162897229,
0.1946510524,
-0.3441988826,
-0.1643299907,
-0.0195442233,
-0.1975622773,
0.0800099149,
0.2080589384,
-0.1675436944,
0.3500145376,
-0.0501819439,
-0.0432966501,
-0.2124762833,
0.2127785385,
-0.1947491467,
0.0912312418,
-0.2391409576,
0.106020771,
0.0028013296,
0.4187840819,
-0.3177286088,
-0.0307761449,
-0.1151657924,
-0.2349914759,
-0.0425483733,
0.014339162,
-0.3699414134,
0.2966135442,
0.2785765827,
-0.2126493454,
-0.3221946061,
0.1412675828,
0.1212886125,
-0.1909478605,
-0.1534513086,
0.0655236617,
-0.2706923783,
-0.1494623721,
-0.1236633435,
0.0520415381,
0.3858027756,
-0.2016159147,
-0.0922355801,
-0.0698345527,
-0.1452212334,
-0.2897568941,
0.221094057,
-0.0591009408,
0.1999624223,
-0.2618901432,
-0.2983108163,
-0.0748923868,
-0.2779406309,
-0.1450496316,
0.1157985404,
-0.0094907125,
-0.1632424891,
-0.0443022735,
-0.0702366754,
-0.3143126965,
-0.0948321,
0.1749743074,
-0.1100252643,
-0.0618415326,
0.6461936235,
0.0266935769,
-0.3503608704,
-0.1812145263,
0.1435994059,
-0.1017241031,
-0.462089479,
0.2607916892,
0.1379674822,
0.1905096173,
0.024513118,
0.0751046389,
0.2225317508,
-0.0063560335,
-0.227248311,
-0.422034204,
-0.1887054443,
0.2030885518,
0.1064959541,
0.337536782,
-0.0991909802,
0.1013696715,
0.2454852462,
-0.1607853472,
-0.2722640634,
0.1723113209,
-0.1976252347,
0.0331015252,
0.1233259439,
-0.1212877035,
0.6023902893,
0.152830869,
0.1659270972,
-0.0086321114,
-0.1814551651,
-0.2331736982,
-0.0539259538,
0.1537874937,
0.2020714283,
-0.1400084645,
0.1849013865,
0.1343209743,
-0.1158257499,
-0.0235449765,
0.0312282741,
0.1810221076,
-0.0009694389,
-0.1373784095,
0.0374223068,
-0.1362692416,
-0.051865913,
0.0387652218,
-0.0665325746,
0.2540252805,
0.168500185,
0.1101962626,
-0.1424625218,
-0.1031718403,
-0.284303695,
-0.0124080218,
0.022508353,
-0.0433384888,
0.3292865157,
-0.2255818397,
-0.1474163532,
-0.0153064989,
0.3085735142,
0.0639063641,
-0.3083704412,
0.0931775048,
0.1740080565,
0.156585902,
-0.2176669836,
-0.017072821,
0.2264404148,
-0.0404807292,
0.0061323005,
0.1918836832,
-0.1909845918,
0.059204787,
0.1142959073,
0.1501493007,
0.2236481756,
-0.2713267803,
-0.0109924078,
0.4282620847,
-0.1666843146,
0.0820704401,
0.3861885667,
-0.0831828862,
0.2314914614,
0.4109054804,
-0.303001076,
0.1395139545,
-0.3390324414,
0.056745138,
0.177060008,
-0.3423677981,
0.0567755662,
0.2707988024,
-0.0504278019,
0.0627739578,
-0.185645923,
0.3315945864,
-0.1513171345,
0.1580838561,
-0.3751069903,
0.4998324811,
-0.2893129885,
0.1727902144,
0.0603435449,
-0.1829627305,
-0.1121395975,
0.082131505,
-0.0408677161,
-0.1488432735,
0.1253467202,
0.4593401849,
-0.2215976417,
-0.0026671705,
0.2491139323,
0.2356097698,
-0.0787999034,
-0.2081490606,
0.2621291578,
0.5025695562,
-0.0162128434,
-0.1224961951,
0.6549657583,
0.5555666685,
0.2684942186,
0.0158878919,
0.3025695682,
0.0192759763,
-0.1680323482,
0.1025832295,
0.1173415706,
0.164689377,
0.4219742417,
0.1354043782,
0.1444705278,
-0.2612226009,
0.0850298703,
0.0644022897,
0.1566949487,
-0.0751102567,
0.5024010539,
-0.294659555,
-0.2122946978,
-0.3024600744,
-0.1719893813,
-0.4507957697,
0.2477429211,
0.3150810003,
-0.0316829681,
0.0680088773,
-0.0747671649,
0.0540815555,
-0.0236212518,
0.1517290622,
0.3406072557,
-0.0009295299,
-0.5548704267,
-0.0407997854,
-0.56422019,
0.304874748,
-0.2687524557,
0.1406701952,
-0.0807119012,
-0.0204130467,
-0.2169796228,
0.1230342463,
0.2206642628,
0.0039662314,
-0.1187179312,
0.0199881829,
-0.2343533486,
0.1120588854,
0.1332820356,
-0.1299860179,
0.0518983006,
-0.3918947577,
0.063695699,
-0.343334347,
-0.0343914479,
0.1496934444,
-0.0116277281,
-0.2407976836,
0.3184994161,
0.2625726461,
-0.0410650559,
0.4454625249,
-0.1143089458,
-0.2598306537,
-0.0583604202,
-0.2245171219,
-0.2071982622,
0.0214917697,
0.1680612117,
0.6819018126,
-0.1619596481,
-0.2586809099,
-0.3634818792,
0.4325463474,
-0.1076610684,
-0.2463700622,
-0.0665480271,
0.1007148102,
-0.135990262,
0.1650628597,
0.1683793366,
0.1788598597,
-0.0089131081,
0.109774068,
-0.4074540436,
-0.4818338156,
0.6003139615,
-0.2737824321,
-0.0969014168,
-0.0200533886,
0.1188861132,
-0.0998279154,
0.011676088,
-0.396060288,
0.3837618232,
0.2735112607,
0.143528372,
-0.1272130609,
0.0563927107,
0.1020403951,
0.0004618539,
0.0718717501,
0.3017480373,
0.1777069569,
-0.3659014702,
0.0227027591,
-0.2111168206
] |
https://github.com/huggingface/datasets/issues/996 | NotADirectoryError while loading the CNN/Dailymail dataset | Okay. I imagine asking every author who shares their dataset on Google Drive will also be cumbersome. |
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' | 17 | NotADirectoryError while loading the CNN/Dailymail dataset
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
Okay. I imagine asking every author who shares their dataset on Google Drive will also be cumbersome. | [
-0.1502869725,
0.0138756949,
0.0027154593,
0.2634352744,
0.477457583,
0.0598455593,
0.4901822805,
0.3076287508,
-0.2510555387,
0.2567768395,
-0.3245877326,
-0.0494808815,
-0.483774662,
-0.1979144365,
0.0145918233,
0.0012004753,
-0.1768812239,
0.1828713417,
-0.1539244801,
-0.0876943693,
-0.1727187037,
0.3210442364,
-0.0058408561,
0.147986114,
-0.5002063513,
-0.1975882351,
-0.0039213602,
0.5093349814,
-0.1271759123,
-0.2311133295,
0.2591029108,
-0.2564249635,
0.0552017726,
0.7316403389,
-0.0001171104,
0.3691131473,
0.305640161,
-0.0785469562,
-0.5518268347,
-0.4986004531,
0.2059126794,
-0.2117749304,
0.0436900035,
-0.2601814866,
-0.1276563257,
0.0635362789,
0.1162228882,
0.3141235113,
0.3930329978,
0.4601137638,
0.228523612,
0.2302972972,
0.2858365178,
0.0685346127,
-0.1296326518,
0.3916877806,
-0.1658728868,
0.5677594543,
-0.4966022074,
0.1812900156,
0.0389437713,
0.3057136238,
-0.1901416034,
-0.040190082,
0.0673791915,
0.0520444438,
0.2945783734,
-0.4586855769,
0.0862283483,
0.1943816096,
0.2952357531,
-0.3140711784,
-0.3520396948,
-0.0179470889,
0.1240581051,
-0.3361693621,
0.2545652092,
0.2885336876,
-0.2310854346,
0.0986495689,
-0.1670765132,
-0.1167313233,
-0.3022925258,
0.4389303923,
-0.184099853,
0.2932372093,
-0.1138127521,
0.0412948728,
0.1631835252,
-0.1387996823,
0.1639587134,
-0.075434424,
0.3370933533,
0.0137138385,
0.1517516226,
-0.1500611305,
0.0298328921,
-0.2463436723,
-0.1883453131,
0.1450429112,
-0.2204874009,
-0.3060173094,
-0.0318602398,
0.0074545559,
-0.0541748554,
0.0959954262,
-0.1966280043,
0.670101583,
0.2965374589,
0.5027937889,
0.032012973,
-0.0403409936,
-0.1909717172,
-0.2045387626,
-0.0870551169,
-0.0306531657,
0.6625393629,
-0.0383565575,
-0.3331960738,
-0.0131454328,
-0.4197603166,
0.0783915967,
0.3010307848,
0.5060918927,
0.0743205994,
-0.0245898627,
0.0031732854,
0.1511422992,
-0.0656605735,
0.3835741282,
-0.2604817152,
0.3102361262,
-0.1780567169,
-0.0055619478,
0.3036939204,
-0.3783837557,
0.2278979272,
-0.0782358572,
0.187908873,
-0.1120341048,
0.0400567055,
-0.1671947837,
-0.0153000504,
0.638967514,
-0.3143551946,
0.1221730635,
0.244889304,
-0.082311824,
-0.2242325693,
0.1375700831,
-0.1204493865,
-0.5571914315,
0.0483231507,
0.0999315679,
0.106215477,
-0.0634725317,
0.3532806039,
-0.3217018843,
0.0260888021,
-0.1006017104,
0.076735951,
-0.0643337443,
-0.1164475977,
-0.137327224,
0.3215055168,
0.5865561962,
-0.1676751822,
-0.1125146225,
-0.1753575355,
-0.1381155849,
0.2370169163,
0.4046928287,
-0.0672516674,
0.262378335,
-0.2830162942,
-0.2667838037,
0.3034884334,
-0.3377236724,
-0.4008954465,
0.0308544431,
-0.2147402465,
0.259899497,
0.0527489483,
0.1346766055,
-0.3762587607,
-0.029496653,
0.0617879108,
0.152097702,
-0.0357308052,
0.0904737636,
-0.2340042591,
-0.1187214255,
0.0879820883,
0.3039718568,
0.4382177889,
0.0894155502,
0.0313498303,
0.2227000594,
0.0503846444,
-0.2450428754,
-0.0719152689,
0.3450476825,
0.42852965,
-0.0693804249,
-0.1211158708,
0.1079737619,
-0.3771110177,
0.0220831204,
-0.0822665691,
0.31873703,
-0.2467509657,
0.0032258311,
-0.3451870978,
-0.1285057366,
-0.2752385139,
-0.1792377084,
0.1339012384,
0.190379709,
0.0196387097,
0.2382147312,
-0.2149540782,
0.2647374272,
-0.1341634393,
0.3000067174,
-0.3281888664,
0.3138390779,
-0.2469954044,
-0.0395055115,
-0.0923122466,
0.4096647501,
0.148641929,
-0.216705665,
-0.0633954555,
0.2275291681,
-0.0740629882,
-0.057676062,
0.0219568145,
-0.0339811817,
0.2657676339,
-0.090439789,
0.1729008257,
0.4206438959,
0.0139151895,
0.0184678473,
-0.0350023657,
0.4468703866,
0.0479336865,
-0.0523554198,
0.1870309114,
-0.0533488952,
0.0944571868,
-0.055123359,
-0.0113495402,
-0.0475617796,
0.227844581,
-0.1467843652,
0.5949152112,
-0.0756231695,
-0.2936545312,
-0.4982669055,
-0.0172997452,
-0.2320437133,
0.1143536642,
0.2787700295,
-0.2667390704,
0.0841671377,
-0.1810101867,
0.1811040789,
0.4754995704,
0.0569914095,
-0.0085046859,
0.1831956655,
-0.1056299135,
-0.1482228041,
0.3001135886,
0.122813262,
0.0768739507,
0.2936607003,
0.0724523216,
0.0703331605,
-0.5287975669,
-0.3453274667,
0.0061526606,
0.3515329063,
-0.3705407679,
-0.1018935367,
-0.113258414,
-0.2290439606,
-0.0317643806,
-0.4700884223,
-0.2261393219,
-0.1386553347,
0.04340408,
0.3248309493,
0.0040020151,
0.164022401,
-0.0215431135,
-0.0796543658,
0.1637671888,
-0.1426153928,
-0.2257553637,
0.1100874767,
0.1099091321,
0.0368248522,
0.4638560116,
-0.3609943688,
0.2450585216,
-0.050640177,
-0.0929015726,
-0.3026798069,
-0.4553116262,
-0.0650819466,
0.019609265,
0.2633846104,
0.1738889962,
0.3530098498,
-0.1059391052,
-0.3259161711,
0.2694614232,
0.1050129011,
-0.033388596,
0.4007443786,
-0.2799061835,
0.0285296105,
-0.0305284318,
-0.385605514,
-0.4965450466,
-0.266086638,
0.0952370316,
-0.0068392102,
0.1661556512,
0.6047116518,
0.1591120362,
0.1782281548,
-0.2618115544,
0.1731992364,
-0.0134631153,
-0.1314901114,
0.3829726577,
-0.3403705657,
-0.2306489795,
-0.0014361246,
-0.066587992,
0.2421356142,
-0.3139044642,
-0.5207077861,
-0.2967839539,
-0.0093215508,
-0.2617918253,
-0.044196859,
-0.1472935677,
0.1218886226,
-0.0831382573,
-0.06813851,
0.2673321068,
-0.134241432,
-0.1002490669,
0.0882345065,
0.0051638521,
-0.2591240704,
0.4475920796,
-0.0936798751,
0.7807013988,
0.0961856544,
0.0188386254,
0.4052088857,
-0.0160069671,
0.434135139,
-0.2269285172,
-0.403591156,
0.0421544611,
0.3586931527,
-0.0929746851,
0.1946215481,
0.1108986065,
-0.2174887657,
-0.1659695655,
-0.2698652148,
-0.40629825,
-0.1927654445,
0.2044939995,
0.0324252769,
0.044590272,
0.020426074,
-0.0603807271,
0.0829849765,
-0.2481531799,
-0.0666149259,
0.4942089319,
0.1149650961,
0.0863042474,
0.0322950631,
-0.3037803769,
-0.3901974857,
0.033883933,
0.0017106844,
0.081226714,
-0.2152148634,
0.0576921366,
0.1245849803,
0.0010683122,
0.3473905623,
0.0930740684,
-0.1501548737,
0.3155100644,
-0.3130576909,
-0.5068177581,
-0.1470018774,
-0.1153768674,
0.1861527711,
0.0638436526,
0.4790126085,
-0.3008005917,
-0.179009974,
0.5184321404,
0.0287058689,
-0.0732578263,
-0.2285503,
-0.3372282088,
-0.3872757852,
-0.4333272576,
0.1120528206,
-0.207911551,
0.1160895824,
0.073314704,
-0.1698254347,
0.1383423954,
0.1019180119,
0.1633891314,
-0.0997601822,
0.2785456777,
-0.1329899877,
0.1996033043,
0.2281344831,
0.2923978865,
0.3537791371,
0.3676195145,
-0.1571996361,
-0.117663227,
-0.0099628232,
0.1335530579,
-0.0225230288,
0.4273510575,
-0.156307444,
-0.3167839944,
0.0756198764,
0.3467938006,
0.1500737369,
-0.1691110581,
0.4981240034,
-0.0588796511,
-0.422113806,
-0.0062631504,
0.3730386496,
-0.1417731196,
0.207250163,
0.0918783098,
0.0032517368,
-0.0316045582,
0.0829577968,
-0.2496449649,
0.9348474741,
0.0290455539,
0.2436059564,
0.5999217033,
0.2633122504,
0.2116591334,
-0.3162897229,
0.1946510524,
-0.3441988826,
-0.1643299907,
-0.0195442233,
-0.1975622773,
0.0800099149,
0.2080589384,
-0.1675436944,
0.3500145376,
-0.0501819439,
-0.0432966501,
-0.2124762833,
0.2127785385,
-0.1947491467,
0.0912312418,
-0.2391409576,
0.106020771,
0.0028013296,
0.4187840819,
-0.3177286088,
-0.0307761449,
-0.1151657924,
-0.2349914759,
-0.0425483733,
0.014339162,
-0.3699414134,
0.2966135442,
0.2785765827,
-0.2126493454,
-0.3221946061,
0.1412675828,
0.1212886125,
-0.1909478605,
-0.1534513086,
0.0655236617,
-0.2706923783,
-0.1494623721,
-0.1236633435,
0.0520415381,
0.3858027756,
-0.2016159147,
-0.0922355801,
-0.0698345527,
-0.1452212334,
-0.2897568941,
0.221094057,
-0.0591009408,
0.1999624223,
-0.2618901432,
-0.2983108163,
-0.0748923868,
-0.2779406309,
-0.1450496316,
0.1157985404,
-0.0094907125,
-0.1632424891,
-0.0443022735,
-0.0702366754,
-0.3143126965,
-0.0948321,
0.1749743074,
-0.1100252643,
-0.0618415326,
0.6461936235,
0.0266935769,
-0.3503608704,
-0.1812145263,
0.1435994059,
-0.1017241031,
-0.462089479,
0.2607916892,
0.1379674822,
0.1905096173,
0.024513118,
0.0751046389,
0.2225317508,
-0.0063560335,
-0.227248311,
-0.422034204,
-0.1887054443,
0.2030885518,
0.1064959541,
0.337536782,
-0.0991909802,
0.1013696715,
0.2454852462,
-0.1607853472,
-0.2722640634,
0.1723113209,
-0.1976252347,
0.0331015252,
0.1233259439,
-0.1212877035,
0.6023902893,
0.152830869,
0.1659270972,
-0.0086321114,
-0.1814551651,
-0.2331736982,
-0.0539259538,
0.1537874937,
0.2020714283,
-0.1400084645,
0.1849013865,
0.1343209743,
-0.1158257499,
-0.0235449765,
0.0312282741,
0.1810221076,
-0.0009694389,
-0.1373784095,
0.0374223068,
-0.1362692416,
-0.051865913,
0.0387652218,
-0.0665325746,
0.2540252805,
0.168500185,
0.1101962626,
-0.1424625218,
-0.1031718403,
-0.284303695,
-0.0124080218,
0.022508353,
-0.0433384888,
0.3292865157,
-0.2255818397,
-0.1474163532,
-0.0153064989,
0.3085735142,
0.0639063641,
-0.3083704412,
0.0931775048,
0.1740080565,
0.156585902,
-0.2176669836,
-0.017072821,
0.2264404148,
-0.0404807292,
0.0061323005,
0.1918836832,
-0.1909845918,
0.059204787,
0.1142959073,
0.1501493007,
0.2236481756,
-0.2713267803,
-0.0109924078,
0.4282620847,
-0.1666843146,
0.0820704401,
0.3861885667,
-0.0831828862,
0.2314914614,
0.4109054804,
-0.303001076,
0.1395139545,
-0.3390324414,
0.056745138,
0.177060008,
-0.3423677981,
0.0567755662,
0.2707988024,
-0.0504278019,
0.0627739578,
-0.185645923,
0.3315945864,
-0.1513171345,
0.1580838561,
-0.3751069903,
0.4998324811,
-0.2893129885,
0.1727902144,
0.0603435449,
-0.1829627305,
-0.1121395975,
0.082131505,
-0.0408677161,
-0.1488432735,
0.1253467202,
0.4593401849,
-0.2215976417,
-0.0026671705,
0.2491139323,
0.2356097698,
-0.0787999034,
-0.2081490606,
0.2621291578,
0.5025695562,
-0.0162128434,
-0.1224961951,
0.6549657583,
0.5555666685,
0.2684942186,
0.0158878919,
0.3025695682,
0.0192759763,
-0.1680323482,
0.1025832295,
0.1173415706,
0.164689377,
0.4219742417,
0.1354043782,
0.1444705278,
-0.2612226009,
0.0850298703,
0.0644022897,
0.1566949487,
-0.0751102567,
0.5024010539,
-0.294659555,
-0.2122946978,
-0.3024600744,
-0.1719893813,
-0.4507957697,
0.2477429211,
0.3150810003,
-0.0316829681,
0.0680088773,
-0.0747671649,
0.0540815555,
-0.0236212518,
0.1517290622,
0.3406072557,
-0.0009295299,
-0.5548704267,
-0.0407997854,
-0.56422019,
0.304874748,
-0.2687524557,
0.1406701952,
-0.0807119012,
-0.0204130467,
-0.2169796228,
0.1230342463,
0.2206642628,
0.0039662314,
-0.1187179312,
0.0199881829,
-0.2343533486,
0.1120588854,
0.1332820356,
-0.1299860179,
0.0518983006,
-0.3918947577,
0.063695699,
-0.343334347,
-0.0343914479,
0.1496934444,
-0.0116277281,
-0.2407976836,
0.3184994161,
0.2625726461,
-0.0410650559,
0.4454625249,
-0.1143089458,
-0.2598306537,
-0.0583604202,
-0.2245171219,
-0.2071982622,
0.0214917697,
0.1680612117,
0.6819018126,
-0.1619596481,
-0.2586809099,
-0.3634818792,
0.4325463474,
-0.1076610684,
-0.2463700622,
-0.0665480271,
0.1007148102,
-0.135990262,
0.1650628597,
0.1683793366,
0.1788598597,
-0.0089131081,
0.109774068,
-0.4074540436,
-0.4818338156,
0.6003139615,
-0.2737824321,
-0.0969014168,
-0.0200533886,
0.1188861132,
-0.0998279154,
0.011676088,
-0.396060288,
0.3837618232,
0.2735112607,
0.143528372,
-0.1272130609,
0.0563927107,
0.1020403951,
0.0004618539,
0.0718717501,
0.3017480373,
0.1777069569,
-0.3659014702,
0.0227027591,
-0.2111168206
] |
https://github.com/huggingface/datasets/issues/996 | NotADirectoryError while loading the CNN/Dailymail dataset | Not as long as the data is stored on GG drive unfortunately.
Maybe we can ask if there's a mirror ?
Hi @JafferWilson is there a download link to get cnn dailymail from another host than GG drive ?
To give you some context, this library provides tools to download and process datasets. For CNN DailyMail the data are downloaded from the link you provide on your github repository. Unfortunately because of GG drive quotas, many users are not able to load this dataset. |
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' | 84 | NotADirectoryError while loading the CNN/Dailymail dataset
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
Not as long as the data is stored on GG drive unfortunately.
Maybe we can ask if there's a mirror ?
Hi @JafferWilson is there a download link to get cnn dailymail from another host than GG drive ?
To give you some context, this library provides tools to download and process datasets. For CNN DailyMail the data are downloaded from the link you provide on your github repository. Unfortunately because of GG drive quotas, many users are not able to load this dataset. | [
-0.1502869725,
0.0138756949,
0.0027154593,
0.2634352744,
0.477457583,
0.0598455593,
0.4901822805,
0.3076287508,
-0.2510555387,
0.2567768395,
-0.3245877326,
-0.0494808815,
-0.483774662,
-0.1979144365,
0.0145918233,
0.0012004753,
-0.1768812239,
0.1828713417,
-0.1539244801,
-0.0876943693,
-0.1727187037,
0.3210442364,
-0.0058408561,
0.147986114,
-0.5002063513,
-0.1975882351,
-0.0039213602,
0.5093349814,
-0.1271759123,
-0.2311133295,
0.2591029108,
-0.2564249635,
0.0552017726,
0.7316403389,
-0.0001171104,
0.3691131473,
0.305640161,
-0.0785469562,
-0.5518268347,
-0.4986004531,
0.2059126794,
-0.2117749304,
0.0436900035,
-0.2601814866,
-0.1276563257,
0.0635362789,
0.1162228882,
0.3141235113,
0.3930329978,
0.4601137638,
0.228523612,
0.2302972972,
0.2858365178,
0.0685346127,
-0.1296326518,
0.3916877806,
-0.1658728868,
0.5677594543,
-0.4966022074,
0.1812900156,
0.0389437713,
0.3057136238,
-0.1901416034,
-0.040190082,
0.0673791915,
0.0520444438,
0.2945783734,
-0.4586855769,
0.0862283483,
0.1943816096,
0.2952357531,
-0.3140711784,
-0.3520396948,
-0.0179470889,
0.1240581051,
-0.3361693621,
0.2545652092,
0.2885336876,
-0.2310854346,
0.0986495689,
-0.1670765132,
-0.1167313233,
-0.3022925258,
0.4389303923,
-0.184099853,
0.2932372093,
-0.1138127521,
0.0412948728,
0.1631835252,
-0.1387996823,
0.1639587134,
-0.075434424,
0.3370933533,
0.0137138385,
0.1517516226,
-0.1500611305,
0.0298328921,
-0.2463436723,
-0.1883453131,
0.1450429112,
-0.2204874009,
-0.3060173094,
-0.0318602398,
0.0074545559,
-0.0541748554,
0.0959954262,
-0.1966280043,
0.670101583,
0.2965374589,
0.5027937889,
0.032012973,
-0.0403409936,
-0.1909717172,
-0.2045387626,
-0.0870551169,
-0.0306531657,
0.6625393629,
-0.0383565575,
-0.3331960738,
-0.0131454328,
-0.4197603166,
0.0783915967,
0.3010307848,
0.5060918927,
0.0743205994,
-0.0245898627,
0.0031732854,
0.1511422992,
-0.0656605735,
0.3835741282,
-0.2604817152,
0.3102361262,
-0.1780567169,
-0.0055619478,
0.3036939204,
-0.3783837557,
0.2278979272,
-0.0782358572,
0.187908873,
-0.1120341048,
0.0400567055,
-0.1671947837,
-0.0153000504,
0.638967514,
-0.3143551946,
0.1221730635,
0.244889304,
-0.082311824,
-0.2242325693,
0.1375700831,
-0.1204493865,
-0.5571914315,
0.0483231507,
0.0999315679,
0.106215477,
-0.0634725317,
0.3532806039,
-0.3217018843,
0.0260888021,
-0.1006017104,
0.076735951,
-0.0643337443,
-0.1164475977,
-0.137327224,
0.3215055168,
0.5865561962,
-0.1676751822,
-0.1125146225,
-0.1753575355,
-0.1381155849,
0.2370169163,
0.4046928287,
-0.0672516674,
0.262378335,
-0.2830162942,
-0.2667838037,
0.3034884334,
-0.3377236724,
-0.4008954465,
0.0308544431,
-0.2147402465,
0.259899497,
0.0527489483,
0.1346766055,
-0.3762587607,
-0.029496653,
0.0617879108,
0.152097702,
-0.0357308052,
0.0904737636,
-0.2340042591,
-0.1187214255,
0.0879820883,
0.3039718568,
0.4382177889,
0.0894155502,
0.0313498303,
0.2227000594,
0.0503846444,
-0.2450428754,
-0.0719152689,
0.3450476825,
0.42852965,
-0.0693804249,
-0.1211158708,
0.1079737619,
-0.3771110177,
0.0220831204,
-0.0822665691,
0.31873703,
-0.2467509657,
0.0032258311,
-0.3451870978,
-0.1285057366,
-0.2752385139,
-0.1792377084,
0.1339012384,
0.190379709,
0.0196387097,
0.2382147312,
-0.2149540782,
0.2647374272,
-0.1341634393,
0.3000067174,
-0.3281888664,
0.3138390779,
-0.2469954044,
-0.0395055115,
-0.0923122466,
0.4096647501,
0.148641929,
-0.216705665,
-0.0633954555,
0.2275291681,
-0.0740629882,
-0.057676062,
0.0219568145,
-0.0339811817,
0.2657676339,
-0.090439789,
0.1729008257,
0.4206438959,
0.0139151895,
0.0184678473,
-0.0350023657,
0.4468703866,
0.0479336865,
-0.0523554198,
0.1870309114,
-0.0533488952,
0.0944571868,
-0.055123359,
-0.0113495402,
-0.0475617796,
0.227844581,
-0.1467843652,
0.5949152112,
-0.0756231695,
-0.2936545312,
-0.4982669055,
-0.0172997452,
-0.2320437133,
0.1143536642,
0.2787700295,
-0.2667390704,
0.0841671377,
-0.1810101867,
0.1811040789,
0.4754995704,
0.0569914095,
-0.0085046859,
0.1831956655,
-0.1056299135,
-0.1482228041,
0.3001135886,
0.122813262,
0.0768739507,
0.2936607003,
0.0724523216,
0.0703331605,
-0.5287975669,
-0.3453274667,
0.0061526606,
0.3515329063,
-0.3705407679,
-0.1018935367,
-0.113258414,
-0.2290439606,
-0.0317643806,
-0.4700884223,
-0.2261393219,
-0.1386553347,
0.04340408,
0.3248309493,
0.0040020151,
0.164022401,
-0.0215431135,
-0.0796543658,
0.1637671888,
-0.1426153928,
-0.2257553637,
0.1100874767,
0.1099091321,
0.0368248522,
0.4638560116,
-0.3609943688,
0.2450585216,
-0.050640177,
-0.0929015726,
-0.3026798069,
-0.4553116262,
-0.0650819466,
0.019609265,
0.2633846104,
0.1738889962,
0.3530098498,
-0.1059391052,
-0.3259161711,
0.2694614232,
0.1050129011,
-0.033388596,
0.4007443786,
-0.2799061835,
0.0285296105,
-0.0305284318,
-0.385605514,
-0.4965450466,
-0.266086638,
0.0952370316,
-0.0068392102,
0.1661556512,
0.6047116518,
0.1591120362,
0.1782281548,
-0.2618115544,
0.1731992364,
-0.0134631153,
-0.1314901114,
0.3829726577,
-0.3403705657,
-0.2306489795,
-0.0014361246,
-0.066587992,
0.2421356142,
-0.3139044642,
-0.5207077861,
-0.2967839539,
-0.0093215508,
-0.2617918253,
-0.044196859,
-0.1472935677,
0.1218886226,
-0.0831382573,
-0.06813851,
0.2673321068,
-0.134241432,
-0.1002490669,
0.0882345065,
0.0051638521,
-0.2591240704,
0.4475920796,
-0.0936798751,
0.7807013988,
0.0961856544,
0.0188386254,
0.4052088857,
-0.0160069671,
0.434135139,
-0.2269285172,
-0.403591156,
0.0421544611,
0.3586931527,
-0.0929746851,
0.1946215481,
0.1108986065,
-0.2174887657,
-0.1659695655,
-0.2698652148,
-0.40629825,
-0.1927654445,
0.2044939995,
0.0324252769,
0.044590272,
0.020426074,
-0.0603807271,
0.0829849765,
-0.2481531799,
-0.0666149259,
0.4942089319,
0.1149650961,
0.0863042474,
0.0322950631,
-0.3037803769,
-0.3901974857,
0.033883933,
0.0017106844,
0.081226714,
-0.2152148634,
0.0576921366,
0.1245849803,
0.0010683122,
0.3473905623,
0.0930740684,
-0.1501548737,
0.3155100644,
-0.3130576909,
-0.5068177581,
-0.1470018774,
-0.1153768674,
0.1861527711,
0.0638436526,
0.4790126085,
-0.3008005917,
-0.179009974,
0.5184321404,
0.0287058689,
-0.0732578263,
-0.2285503,
-0.3372282088,
-0.3872757852,
-0.4333272576,
0.1120528206,
-0.207911551,
0.1160895824,
0.073314704,
-0.1698254347,
0.1383423954,
0.1019180119,
0.1633891314,
-0.0997601822,
0.2785456777,
-0.1329899877,
0.1996033043,
0.2281344831,
0.2923978865,
0.3537791371,
0.3676195145,
-0.1571996361,
-0.117663227,
-0.0099628232,
0.1335530579,
-0.0225230288,
0.4273510575,
-0.156307444,
-0.3167839944,
0.0756198764,
0.3467938006,
0.1500737369,
-0.1691110581,
0.4981240034,
-0.0588796511,
-0.422113806,
-0.0062631504,
0.3730386496,
-0.1417731196,
0.207250163,
0.0918783098,
0.0032517368,
-0.0316045582,
0.0829577968,
-0.2496449649,
0.9348474741,
0.0290455539,
0.2436059564,
0.5999217033,
0.2633122504,
0.2116591334,
-0.3162897229,
0.1946510524,
-0.3441988826,
-0.1643299907,
-0.0195442233,
-0.1975622773,
0.0800099149,
0.2080589384,
-0.1675436944,
0.3500145376,
-0.0501819439,
-0.0432966501,
-0.2124762833,
0.2127785385,
-0.1947491467,
0.0912312418,
-0.2391409576,
0.106020771,
0.0028013296,
0.4187840819,
-0.3177286088,
-0.0307761449,
-0.1151657924,
-0.2349914759,
-0.0425483733,
0.014339162,
-0.3699414134,
0.2966135442,
0.2785765827,
-0.2126493454,
-0.3221946061,
0.1412675828,
0.1212886125,
-0.1909478605,
-0.1534513086,
0.0655236617,
-0.2706923783,
-0.1494623721,
-0.1236633435,
0.0520415381,
0.3858027756,
-0.2016159147,
-0.0922355801,
-0.0698345527,
-0.1452212334,
-0.2897568941,
0.221094057,
-0.0591009408,
0.1999624223,
-0.2618901432,
-0.2983108163,
-0.0748923868,
-0.2779406309,
-0.1450496316,
0.1157985404,
-0.0094907125,
-0.1632424891,
-0.0443022735,
-0.0702366754,
-0.3143126965,
-0.0948321,
0.1749743074,
-0.1100252643,
-0.0618415326,
0.6461936235,
0.0266935769,
-0.3503608704,
-0.1812145263,
0.1435994059,
-0.1017241031,
-0.462089479,
0.2607916892,
0.1379674822,
0.1905096173,
0.024513118,
0.0751046389,
0.2225317508,
-0.0063560335,
-0.227248311,
-0.422034204,
-0.1887054443,
0.2030885518,
0.1064959541,
0.337536782,
-0.0991909802,
0.1013696715,
0.2454852462,
-0.1607853472,
-0.2722640634,
0.1723113209,
-0.1976252347,
0.0331015252,
0.1233259439,
-0.1212877035,
0.6023902893,
0.152830869,
0.1659270972,
-0.0086321114,
-0.1814551651,
-0.2331736982,
-0.0539259538,
0.1537874937,
0.2020714283,
-0.1400084645,
0.1849013865,
0.1343209743,
-0.1158257499,
-0.0235449765,
0.0312282741,
0.1810221076,
-0.0009694389,
-0.1373784095,
0.0374223068,
-0.1362692416,
-0.051865913,
0.0387652218,
-0.0665325746,
0.2540252805,
0.168500185,
0.1101962626,
-0.1424625218,
-0.1031718403,
-0.284303695,
-0.0124080218,
0.022508353,
-0.0433384888,
0.3292865157,
-0.2255818397,
-0.1474163532,
-0.0153064989,
0.3085735142,
0.0639063641,
-0.3083704412,
0.0931775048,
0.1740080565,
0.156585902,
-0.2176669836,
-0.017072821,
0.2264404148,
-0.0404807292,
0.0061323005,
0.1918836832,
-0.1909845918,
0.059204787,
0.1142959073,
0.1501493007,
0.2236481756,
-0.2713267803,
-0.0109924078,
0.4282620847,
-0.1666843146,
0.0820704401,
0.3861885667,
-0.0831828862,
0.2314914614,
0.4109054804,
-0.303001076,
0.1395139545,
-0.3390324414,
0.056745138,
0.177060008,
-0.3423677981,
0.0567755662,
0.2707988024,
-0.0504278019,
0.0627739578,
-0.185645923,
0.3315945864,
-0.1513171345,
0.1580838561,
-0.3751069903,
0.4998324811,
-0.2893129885,
0.1727902144,
0.0603435449,
-0.1829627305,
-0.1121395975,
0.082131505,
-0.0408677161,
-0.1488432735,
0.1253467202,
0.4593401849,
-0.2215976417,
-0.0026671705,
0.2491139323,
0.2356097698,
-0.0787999034,
-0.2081490606,
0.2621291578,
0.5025695562,
-0.0162128434,
-0.1224961951,
0.6549657583,
0.5555666685,
0.2684942186,
0.0158878919,
0.3025695682,
0.0192759763,
-0.1680323482,
0.1025832295,
0.1173415706,
0.164689377,
0.4219742417,
0.1354043782,
0.1444705278,
-0.2612226009,
0.0850298703,
0.0644022897,
0.1566949487,
-0.0751102567,
0.5024010539,
-0.294659555,
-0.2122946978,
-0.3024600744,
-0.1719893813,
-0.4507957697,
0.2477429211,
0.3150810003,
-0.0316829681,
0.0680088773,
-0.0747671649,
0.0540815555,
-0.0236212518,
0.1517290622,
0.3406072557,
-0.0009295299,
-0.5548704267,
-0.0407997854,
-0.56422019,
0.304874748,
-0.2687524557,
0.1406701952,
-0.0807119012,
-0.0204130467,
-0.2169796228,
0.1230342463,
0.2206642628,
0.0039662314,
-0.1187179312,
0.0199881829,
-0.2343533486,
0.1120588854,
0.1332820356,
-0.1299860179,
0.0518983006,
-0.3918947577,
0.063695699,
-0.343334347,
-0.0343914479,
0.1496934444,
-0.0116277281,
-0.2407976836,
0.3184994161,
0.2625726461,
-0.0410650559,
0.4454625249,
-0.1143089458,
-0.2598306537,
-0.0583604202,
-0.2245171219,
-0.2071982622,
0.0214917697,
0.1680612117,
0.6819018126,
-0.1619596481,
-0.2586809099,
-0.3634818792,
0.4325463474,
-0.1076610684,
-0.2463700622,
-0.0665480271,
0.1007148102,
-0.135990262,
0.1650628597,
0.1683793366,
0.1788598597,
-0.0089131081,
0.109774068,
-0.4074540436,
-0.4818338156,
0.6003139615,
-0.2737824321,
-0.0969014168,
-0.0200533886,
0.1188861132,
-0.0998279154,
0.011676088,
-0.396060288,
0.3837618232,
0.2735112607,
0.143528372,
-0.1272130609,
0.0563927107,
0.1020403951,
0.0004618539,
0.0718717501,
0.3017480373,
0.1777069569,
-0.3659014702,
0.0227027591,
-0.2111168206
] |
https://github.com/huggingface/datasets/issues/996 | NotADirectoryError while loading the CNN/Dailymail dataset | Thanks for the link @mrazizi !
Apparently the original authors don't host the dataset themselves ("for legal reasons", source [here](https://github.com/abisee/cnn-dailymail/issues/9)). |
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories' | 20 | NotADirectoryError while loading the CNN/Dailymail dataset
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.28 GiB, post-processed: Unknown size, total: 1.82 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602...
---------------------------------------------------------------------------
NotADirectoryError Traceback (most recent call last)
<ipython-input-9-cd4bf8bea840> in <module>()
22
23
---> 24 train = load_dataset('cnn_dailymail', '3.0.0', split='train')
25 validation = load_dataset('cnn_dailymail', '3.0.0', split='validation')
26 test = load_dataset('cnn_dailymail', '3.0.0', split='test')
5 frames
/root/.cache/huggingface/modules/datasets_modules/datasets/cnn_dailymail/0128610a44e10f25b4af6689441c72af86205282d26399642f7db38fa7535602/cnn_dailymail.py in _find_files(dl_paths, publisher, url_dict)
132 else:
133 logging.fatal("Unsupported publisher: %s", publisher)
--> 134 files = sorted(os.listdir(top_dir))
135
136 ret_files = []
NotADirectoryError: [Errno 20] Not a directory: '/root/.cache/huggingface/datasets/downloads/1bc05d24fa6dda2468e83a73cf6dc207226e01e3c48a507ea716dc0421da583b/cnn/stories'
Thanks for the link @mrazizi !
Apparently the original authors don't host the dataset themselves ("for legal reasons", source [here](https://github.com/abisee/cnn-dailymail/issues/9)). | [
-0.1502869725,
0.0138756949,
0.0027154593,
0.2634352744,
0.477457583,
0.0598455593,
0.4901822805,
0.3076287508,
-0.2510555387,
0.2567768395,
-0.3245877326,
-0.0494808815,
-0.483774662,
-0.1979144365,
0.0145918233,
0.0012004753,
-0.1768812239,
0.1828713417,
-0.1539244801,
-0.0876943693,
-0.1727187037,
0.3210442364,
-0.0058408561,
0.147986114,
-0.5002063513,
-0.1975882351,
-0.0039213602,
0.5093349814,
-0.1271759123,
-0.2311133295,
0.2591029108,
-0.2564249635,
0.0552017726,
0.7316403389,
-0.0001171104,
0.3691131473,
0.305640161,
-0.0785469562,
-0.5518268347,
-0.4986004531,
0.2059126794,
-0.2117749304,
0.0436900035,
-0.2601814866,
-0.1276563257,
0.0635362789,
0.1162228882,
0.3141235113,
0.3930329978,
0.4601137638,
0.228523612,
0.2302972972,
0.2858365178,
0.0685346127,
-0.1296326518,
0.3916877806,
-0.1658728868,
0.5677594543,
-0.4966022074,
0.1812900156,
0.0389437713,
0.3057136238,
-0.1901416034,
-0.040190082,
0.0673791915,
0.0520444438,
0.2945783734,
-0.4586855769,
0.0862283483,
0.1943816096,
0.2952357531,
-0.3140711784,
-0.3520396948,
-0.0179470889,
0.1240581051,
-0.3361693621,
0.2545652092,
0.2885336876,
-0.2310854346,
0.0986495689,
-0.1670765132,
-0.1167313233,
-0.3022925258,
0.4389303923,
-0.184099853,
0.2932372093,
-0.1138127521,
0.0412948728,
0.1631835252,
-0.1387996823,
0.1639587134,
-0.075434424,
0.3370933533,
0.0137138385,
0.1517516226,
-0.1500611305,
0.0298328921,
-0.2463436723,
-0.1883453131,
0.1450429112,
-0.2204874009,
-0.3060173094,
-0.0318602398,
0.0074545559,
-0.0541748554,
0.0959954262,
-0.1966280043,
0.670101583,
0.2965374589,
0.5027937889,
0.032012973,
-0.0403409936,
-0.1909717172,
-0.2045387626,
-0.0870551169,
-0.0306531657,
0.6625393629,
-0.0383565575,
-0.3331960738,
-0.0131454328,
-0.4197603166,
0.0783915967,
0.3010307848,
0.5060918927,
0.0743205994,
-0.0245898627,
0.0031732854,
0.1511422992,
-0.0656605735,
0.3835741282,
-0.2604817152,
0.3102361262,
-0.1780567169,
-0.0055619478,
0.3036939204,
-0.3783837557,
0.2278979272,
-0.0782358572,
0.187908873,
-0.1120341048,
0.0400567055,
-0.1671947837,
-0.0153000504,
0.638967514,
-0.3143551946,
0.1221730635,
0.244889304,
-0.082311824,
-0.2242325693,
0.1375700831,
-0.1204493865,
-0.5571914315,
0.0483231507,
0.0999315679,
0.106215477,
-0.0634725317,
0.3532806039,
-0.3217018843,
0.0260888021,
-0.1006017104,
0.076735951,
-0.0643337443,
-0.1164475977,
-0.137327224,
0.3215055168,
0.5865561962,
-0.1676751822,
-0.1125146225,
-0.1753575355,
-0.1381155849,
0.2370169163,
0.4046928287,
-0.0672516674,
0.262378335,
-0.2830162942,
-0.2667838037,
0.3034884334,
-0.3377236724,
-0.4008954465,
0.0308544431,
-0.2147402465,
0.259899497,
0.0527489483,
0.1346766055,
-0.3762587607,
-0.029496653,
0.0617879108,
0.152097702,
-0.0357308052,
0.0904737636,
-0.2340042591,
-0.1187214255,
0.0879820883,
0.3039718568,
0.4382177889,
0.0894155502,
0.0313498303,
0.2227000594,
0.0503846444,
-0.2450428754,
-0.0719152689,
0.3450476825,
0.42852965,
-0.0693804249,
-0.1211158708,
0.1079737619,
-0.3771110177,
0.0220831204,
-0.0822665691,
0.31873703,
-0.2467509657,
0.0032258311,
-0.3451870978,
-0.1285057366,
-0.2752385139,
-0.1792377084,
0.1339012384,
0.190379709,
0.0196387097,
0.2382147312,
-0.2149540782,
0.2647374272,
-0.1341634393,
0.3000067174,
-0.3281888664,
0.3138390779,
-0.2469954044,
-0.0395055115,
-0.0923122466,
0.4096647501,
0.148641929,
-0.216705665,
-0.0633954555,
0.2275291681,
-0.0740629882,
-0.057676062,
0.0219568145,
-0.0339811817,
0.2657676339,
-0.090439789,
0.1729008257,
0.4206438959,
0.0139151895,
0.0184678473,
-0.0350023657,
0.4468703866,
0.0479336865,
-0.0523554198,
0.1870309114,
-0.0533488952,
0.0944571868,
-0.055123359,
-0.0113495402,
-0.0475617796,
0.227844581,
-0.1467843652,
0.5949152112,
-0.0756231695,
-0.2936545312,
-0.4982669055,
-0.0172997452,
-0.2320437133,
0.1143536642,
0.2787700295,
-0.2667390704,
0.0841671377,
-0.1810101867,
0.1811040789,
0.4754995704,
0.0569914095,
-0.0085046859,
0.1831956655,
-0.1056299135,
-0.1482228041,
0.3001135886,
0.122813262,
0.0768739507,
0.2936607003,
0.0724523216,
0.0703331605,
-0.5287975669,
-0.3453274667,
0.0061526606,
0.3515329063,
-0.3705407679,
-0.1018935367,
-0.113258414,
-0.2290439606,
-0.0317643806,
-0.4700884223,
-0.2261393219,
-0.1386553347,
0.04340408,
0.3248309493,
0.0040020151,
0.164022401,
-0.0215431135,
-0.0796543658,
0.1637671888,
-0.1426153928,
-0.2257553637,
0.1100874767,
0.1099091321,
0.0368248522,
0.4638560116,
-0.3609943688,
0.2450585216,
-0.050640177,
-0.0929015726,
-0.3026798069,
-0.4553116262,
-0.0650819466,
0.019609265,
0.2633846104,
0.1738889962,
0.3530098498,
-0.1059391052,
-0.3259161711,
0.2694614232,
0.1050129011,
-0.033388596,
0.4007443786,
-0.2799061835,
0.0285296105,
-0.0305284318,
-0.385605514,
-0.4965450466,
-0.266086638,
0.0952370316,
-0.0068392102,
0.1661556512,
0.6047116518,
0.1591120362,
0.1782281548,
-0.2618115544,
0.1731992364,
-0.0134631153,
-0.1314901114,
0.3829726577,
-0.3403705657,
-0.2306489795,
-0.0014361246,
-0.066587992,
0.2421356142,
-0.3139044642,
-0.5207077861,
-0.2967839539,
-0.0093215508,
-0.2617918253,
-0.044196859,
-0.1472935677,
0.1218886226,
-0.0831382573,
-0.06813851,
0.2673321068,
-0.134241432,
-0.1002490669,
0.0882345065,
0.0051638521,
-0.2591240704,
0.4475920796,
-0.0936798751,
0.7807013988,
0.0961856544,
0.0188386254,
0.4052088857,
-0.0160069671,
0.434135139,
-0.2269285172,
-0.403591156,
0.0421544611,
0.3586931527,
-0.0929746851,
0.1946215481,
0.1108986065,
-0.2174887657,
-0.1659695655,
-0.2698652148,
-0.40629825,
-0.1927654445,
0.2044939995,
0.0324252769,
0.044590272,
0.020426074,
-0.0603807271,
0.0829849765,
-0.2481531799,
-0.0666149259,
0.4942089319,
0.1149650961,
0.0863042474,
0.0322950631,
-0.3037803769,
-0.3901974857,
0.033883933,
0.0017106844,
0.081226714,
-0.2152148634,
0.0576921366,
0.1245849803,
0.0010683122,
0.3473905623,
0.0930740684,
-0.1501548737,
0.3155100644,
-0.3130576909,
-0.5068177581,
-0.1470018774,
-0.1153768674,
0.1861527711,
0.0638436526,
0.4790126085,
-0.3008005917,
-0.179009974,
0.5184321404,
0.0287058689,
-0.0732578263,
-0.2285503,
-0.3372282088,
-0.3872757852,
-0.4333272576,
0.1120528206,
-0.207911551,
0.1160895824,
0.073314704,
-0.1698254347,
0.1383423954,
0.1019180119,
0.1633891314,
-0.0997601822,
0.2785456777,
-0.1329899877,
0.1996033043,
0.2281344831,
0.2923978865,
0.3537791371,
0.3676195145,
-0.1571996361,
-0.117663227,
-0.0099628232,
0.1335530579,
-0.0225230288,
0.4273510575,
-0.156307444,
-0.3167839944,
0.0756198764,
0.3467938006,
0.1500737369,
-0.1691110581,
0.4981240034,
-0.0588796511,
-0.422113806,
-0.0062631504,
0.3730386496,
-0.1417731196,
0.207250163,
0.0918783098,
0.0032517368,
-0.0316045582,
0.0829577968,
-0.2496449649,
0.9348474741,
0.0290455539,
0.2436059564,
0.5999217033,
0.2633122504,
0.2116591334,
-0.3162897229,
0.1946510524,
-0.3441988826,
-0.1643299907,
-0.0195442233,
-0.1975622773,
0.0800099149,
0.2080589384,
-0.1675436944,
0.3500145376,
-0.0501819439,
-0.0432966501,
-0.2124762833,
0.2127785385,
-0.1947491467,
0.0912312418,
-0.2391409576,
0.106020771,
0.0028013296,
0.4187840819,
-0.3177286088,
-0.0307761449,
-0.1151657924,
-0.2349914759,
-0.0425483733,
0.014339162,
-0.3699414134,
0.2966135442,
0.2785765827,
-0.2126493454,
-0.3221946061,
0.1412675828,
0.1212886125,
-0.1909478605,
-0.1534513086,
0.0655236617,
-0.2706923783,
-0.1494623721,
-0.1236633435,
0.0520415381,
0.3858027756,
-0.2016159147,
-0.0922355801,
-0.0698345527,
-0.1452212334,
-0.2897568941,
0.221094057,
-0.0591009408,
0.1999624223,
-0.2618901432,
-0.2983108163,
-0.0748923868,
-0.2779406309,
-0.1450496316,
0.1157985404,
-0.0094907125,
-0.1632424891,
-0.0443022735,
-0.0702366754,
-0.3143126965,
-0.0948321,
0.1749743074,
-0.1100252643,
-0.0618415326,
0.6461936235,
0.0266935769,
-0.3503608704,
-0.1812145263,
0.1435994059,
-0.1017241031,
-0.462089479,
0.2607916892,
0.1379674822,
0.1905096173,
0.024513118,
0.0751046389,
0.2225317508,
-0.0063560335,
-0.227248311,
-0.422034204,
-0.1887054443,
0.2030885518,
0.1064959541,
0.337536782,
-0.0991909802,
0.1013696715,
0.2454852462,
-0.1607853472,
-0.2722640634,
0.1723113209,
-0.1976252347,
0.0331015252,
0.1233259439,
-0.1212877035,
0.6023902893,
0.152830869,
0.1659270972,
-0.0086321114,
-0.1814551651,
-0.2331736982,
-0.0539259538,
0.1537874937,
0.2020714283,
-0.1400084645,
0.1849013865,
0.1343209743,
-0.1158257499,
-0.0235449765,
0.0312282741,
0.1810221076,
-0.0009694389,
-0.1373784095,
0.0374223068,
-0.1362692416,
-0.051865913,
0.0387652218,
-0.0665325746,
0.2540252805,
0.168500185,
0.1101962626,
-0.1424625218,
-0.1031718403,
-0.284303695,
-0.0124080218,
0.022508353,
-0.0433384888,
0.3292865157,
-0.2255818397,
-0.1474163532,
-0.0153064989,
0.3085735142,
0.0639063641,
-0.3083704412,
0.0931775048,
0.1740080565,
0.156585902,
-0.2176669836,
-0.017072821,
0.2264404148,
-0.0404807292,
0.0061323005,
0.1918836832,
-0.1909845918,
0.059204787,
0.1142959073,
0.1501493007,
0.2236481756,
-0.2713267803,
-0.0109924078,
0.4282620847,
-0.1666843146,
0.0820704401,
0.3861885667,
-0.0831828862,
0.2314914614,
0.4109054804,
-0.303001076,
0.1395139545,
-0.3390324414,
0.056745138,
0.177060008,
-0.3423677981,
0.0567755662,
0.2707988024,
-0.0504278019,
0.0627739578,
-0.185645923,
0.3315945864,
-0.1513171345,
0.1580838561,
-0.3751069903,
0.4998324811,
-0.2893129885,
0.1727902144,
0.0603435449,
-0.1829627305,
-0.1121395975,
0.082131505,
-0.0408677161,
-0.1488432735,
0.1253467202,
0.4593401849,
-0.2215976417,
-0.0026671705,
0.2491139323,
0.2356097698,
-0.0787999034,
-0.2081490606,
0.2621291578,
0.5025695562,
-0.0162128434,
-0.1224961951,
0.6549657583,
0.5555666685,
0.2684942186,
0.0158878919,
0.3025695682,
0.0192759763,
-0.1680323482,
0.1025832295,
0.1173415706,
0.164689377,
0.4219742417,
0.1354043782,
0.1444705278,
-0.2612226009,
0.0850298703,
0.0644022897,
0.1566949487,
-0.0751102567,
0.5024010539,
-0.294659555,
-0.2122946978,
-0.3024600744,
-0.1719893813,
-0.4507957697,
0.2477429211,
0.3150810003,
-0.0316829681,
0.0680088773,
-0.0747671649,
0.0540815555,
-0.0236212518,
0.1517290622,
0.3406072557,
-0.0009295299,
-0.5548704267,
-0.0407997854,
-0.56422019,
0.304874748,
-0.2687524557,
0.1406701952,
-0.0807119012,
-0.0204130467,
-0.2169796228,
0.1230342463,
0.2206642628,
0.0039662314,
-0.1187179312,
0.0199881829,
-0.2343533486,
0.1120588854,
0.1332820356,
-0.1299860179,
0.0518983006,
-0.3918947577,
0.063695699,
-0.343334347,
-0.0343914479,
0.1496934444,
-0.0116277281,
-0.2407976836,
0.3184994161,
0.2625726461,
-0.0410650559,
0.4454625249,
-0.1143089458,
-0.2598306537,
-0.0583604202,
-0.2245171219,
-0.2071982622,
0.0214917697,
0.1680612117,
0.6819018126,
-0.1619596481,
-0.2586809099,
-0.3634818792,
0.4325463474,
-0.1076610684,
-0.2463700622,
-0.0665480271,
0.1007148102,
-0.135990262,
0.1650628597,
0.1683793366,
0.1788598597,
-0.0089131081,
0.109774068,
-0.4074540436,
-0.4818338156,
0.6003139615,
-0.2737824321,
-0.0969014168,
-0.0200533886,
0.1188861132,
-0.0998279154,
0.011676088,
-0.396060288,
0.3837618232,
0.2735112607,
0.143528372,
-0.1272130609,
0.0563927107,
0.1020403951,
0.0004618539,
0.0718717501,
0.3017480373,
0.1777069569,
-0.3659014702,
0.0227027591,
-0.2111168206
] |
https://github.com/huggingface/datasets/issues/993 | Problem downloading amazon_reviews_multi | Hi @hfawaz ! This is working fine for me. Is it a repeated occurence? Have you tried from the latest verion? | Thanks for adding the dataset.
After trying to load the dataset, I am getting the following error:
`ConnectionError: Couldn't reach https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_fr_train.json
`
I used the following code to load the dataset:
`load_dataset(
dataset_name,
"all_languages",
cache_dir=".data"
)`
I am using version 1.1.3 of `datasets`
Note that I can perform a successfull `wget https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_fr_train.json` | 21 | Problem downloading amazon_reviews_multi
Thanks for adding the dataset.
After trying to load the dataset, I am getting the following error:
`ConnectionError: Couldn't reach https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_fr_train.json
`
I used the following code to load the dataset:
`load_dataset(
dataset_name,
"all_languages",
cache_dir=".data"
)`
I am using version 1.1.3 of `datasets`
Note that I can perform a successfull `wget https://amazon-reviews-ml.s3-us-west-2.amazonaws.com/json/train/dataset_fr_train.json`
Hi @hfawaz ! This is working fine for me. Is it a repeated occurence? Have you tried from the latest verion? | [
-0.3760578334,
-0.0687170401,
-0.1512159258,
0.3995555639,
0.221829012,
0.0871828422,
0.2271227986,
0.0012162201,
-0.1954255253,
-0.1700541973,
-0.1386819631,
0.0604706407,
0.1707973182,
0.0332736149,
0.0018726948,
0.0242818333,
0.0877759531,
-0.1517890543,
-0.0853416994,
0.024763355,
-0.1652068049,
0.1678637415,
-0.1811462641,
-0.0880343765,
-0.2276555896,
-0.0458784252,
-0.0634081587,
-0.0876692683,
-0.3202601373,
-0.3831088543,
0.4728877544,
0.2383781075,
0.2648136318,
0.3811821342,
-0.0001174623,
-0.1535704285,
0.3675586581,
-0.1078282818,
-0.280818522,
-0.603990972,
-0.3533787727,
-0.2391919941,
0.280251056,
0.0287725627,
0.0832018331,
-0.0687335059,
-0.0326402262,
-0.2118873298,
0.1221734285,
0.2553085387,
0.1851304919,
0.1339329779,
0.4523338675,
-0.0434268937,
0.2750204206,
-0.156939283,
-0.0335237682,
0.3968007267,
0.0909881666,
-0.0359310247,
0.2279304862,
0.1416744441,
0.0797832161,
0.317247808,
0.1299240142,
-0.0447498597,
0.2263739258,
-0.1134044826,
0.0910876393,
0.4223779738,
1.0506269932,
-0.108502537,
-0.5078008771,
0.2045577019,
0.1587763727,
-0.0387851782,
0.1576091945,
0.2874034643,
-0.1353876144,
-0.1331921667,
-0.4298514724,
-0.3206475377,
-0.2886416912,
0.5616418123,
-0.0451896563,
0.3056509197,
-0.0740530789,
0.2216131538,
0.3126438856,
-0.0657329038,
0.5485726595,
-0.0852168202,
-0.0937302038,
0.2087666094,
-0.8067890406,
0.0056741526,
-0.2236729711,
-0.1762273014,
0.0434958935,
0.3128229976,
0.0840658024,
0.0621919371,
-0.028283488,
0.2298109978,
0.4412488639,
-0.1112851202,
-0.0073341895,
0.300162673,
0.0472344905,
0.4499187171,
0.1058042496,
-0.1061759219,
-0.2239827067,
-0.2136735469,
0.0520495251,
0.0940269977,
0.0255824216,
-0.2895093858,
-0.3205341101,
0.0411049873,
-0.5326039791,
-0.1666152328,
0.0506158099,
0.248078689,
-0.2394611537,
0.2531684339,
-0.0434301049,
0.3617751002,
-0.0829923004,
0.0746377334,
-0.112343967,
0.0865689889,
-0.1776818633,
-0.0614346229,
0.2400967628,
0.1313205659,
0.2572077513,
-0.1772683263,
0.0769184008,
-0.3000603318,
0.1120905653,
-0.1290096045,
-0.2409234345,
0.2902309895,
0.3096737862,
0.1613353789,
0.0355424918,
0.0597351491,
0.056611903,
0.0393190347,
-0.0957612023,
-0.1534670293,
-0.1657354236,
0.1485717297,
-0.2256351113,
-0.2716701031,
-0.2497367412,
-0.0944565907,
0.0449421555,
-0.1431611031,
-0.1663997918,
-0.0688499808,
0.1288470775,
-0.0877748728,
0.1445049942,
0.3304738104,
-0.3380999863,
0.0293947123,
-0.4909789562,
-0.1468683481,
0.0422963947,
0.3341830969,
-0.3259697556,
-0.0363803767,
-0.1774042845,
-0.0283073392,
0.3972612917,
-0.2358672172,
-0.3917027414,
0.5111749172,
-0.2891083062,
-0.1156887338,
-0.0255055539,
0.2173868865,
-0.114275001,
0.18922925,
-0.0317802653,
0.2984334528,
-0.0319018885,
-0.1459317207,
-0.05402546,
-0.2005338371,
0.2504792511,
0.309949249,
0.1478506923,
-0.0288839899,
0.1980211437,
0.1882624328,
0.3265378475,
0.2143275887,
0.0855997726,
0.352136761,
0.3539775908,
0.0481054969,
0.0110339178,
-0.0713914633,
-0.5713799596,
0.0172050968,
-0.0972927362,
-0.169823274,
-0.1361764222,
-0.0581826828,
-0.2476273626,
-0.054458864,
-0.2091050148,
0.1748754978,
0.0531648658,
0.1519450992,
-0.0390002578,
-0.0467892662,
-0.0379902944,
0.1853623688,
0.0951349065,
0.1475641429,
-0.2620978951,
0.2204958349,
-0.1911638081,
0.1527512521,
0.2753113508,
-0.1027090028,
0.2127269208,
-0.1334376782,
-0.0645938143,
0.3175308704,
0.0101141641,
0.1606999189,
0.2440330982,
0.1258071363,
-0.0531194843,
-0.1045052558,
0.0152933979,
0.2590874434,
0.2428424358,
-0.0996166691,
-0.2561762333,
0.1772405952,
0.1053445116,
0.2681093812,
0.0212710258,
0.0990922302,
0.2801516652,
0.0281585343,
-0.0041364846,
-0.0167241972,
0.3990072906,
-0.0466881581,
-0.1435842067,
-0.3875209093,
-0.0578991026,
0.0091580963,
0.1139792278,
-0.0975529104,
0.1503448188,
0.1097806841,
0.0100887958,
-0.2266486436,
-0.0137329381,
0.4280412197,
0.4721235037,
0.0101010483,
0.2151775211,
0.0595326051,
0.0701399073,
-0.1609265059,
0.1694000661,
0.0959653556,
0.3051458001,
0.3443481028,
-0.0558004864,
-0.0531794839,
-0.050225962,
-0.1583516151,
0.3277202249,
0.2827939987,
-0.2508953214,
0.1228306368,
-0.4824267626,
-0.0901071131,
-0.2425750941,
-0.1869427264,
-0.3196110427,
-0.3992122412,
-0.2374683022,
0.3306757212,
0.1338932663,
-0.0416912921,
0.0084601054,
-0.0954331979,
0.15099971,
-0.0372512154,
0.0951508358,
-0.216216132,
-0.2899645269,
0.1005892903,
0.2935490608,
-0.1091831848,
0.1274594665,
0.083115615,
0.1468356103,
-0.3079130352,
-0.1269356459,
-0.1508041173,
0.1781183481,
0.1312030256,
0.2316822112,
0.3100516498,
-0.1224840507,
0.0356896296,
0.0782066956,
0.111862734,
0.0035306341,
0.1255412698,
-0.0680984184,
-0.1754697859,
0.2824951708,
-0.546895206,
-0.1960801631,
-0.1828792989,
0.1689726263,
-0.2596385777,
0.0191160496,
-0.4372475743,
0.0934617966,
0.1319026202,
-0.1245442629,
0.0840194449,
-0.2682672143,
-0.2069097906,
0.2822829783,
-0.0779307708,
-0.356731385,
0.3560476303,
0.2730462849,
0.2037631422,
0.1154050753,
-0.727212131,
0.0916253105,
0.2344181985,
-0.2698008716,
0.1553618163,
0.0154134901,
0.1727868021,
-0.2322532833,
-0.0533686839,
0.1976914108,
-0.0629870445,
-0.1605479717,
0.1174264029,
0.7222900987,
-0.1894675493,
0.228844434,
0.1139832065,
0.3751297593,
0.2665195465,
-0.0288637243,
0.2219632864,
0.1663764864,
0.109567143,
0.2133682072,
-0.2673488557,
0.0439315178,
-0.3453875482,
0.27785483,
-0.0118746115,
-0.1510618329,
-0.5303329825,
-0.3466280103,
0.0501108356,
-0.2043253332,
-0.1051555127,
0.0215280261,
-0.4200638533,
0.0786086619,
0.1402591169,
-0.1143856198,
0.2780179977,
-0.2665727437,
-0.1785026491,
0.352551043,
-0.0871997997,
0.0359368362,
-0.4260106683,
-0.1308293492,
-0.0104480507,
0.3563356698,
-0.117931813,
0.7267028689,
-0.1333710551,
0.2489184439,
0.1951014698,
-0.2301184237,
0.7335608006,
-0.5869745612,
-0.0048659034,
0.0623429827,
0.0915307701,
-0.4636374712,
-0.1752258092,
-0.2895461023,
0.4296638072,
0.1251029968,
0.2294650972,
-0.2945984602,
0.0513651818,
0.1915206164,
0.0596604832,
-0.1192008555,
-0.4214911461,
-0.259973675,
-0.1756552011,
-0.3072968423,
-0.0393194035,
-0.2951027155,
0.3925750852,
-0.0786137655,
-0.0391158536,
0.1079356447,
0.0629971251,
-0.1717079133,
-0.169513151,
-0.1070078239,
0.0813387856,
0.1733440459,
0.1802344173,
0.0113701327,
0.3162176013,
0.7589714527,
0.0694132596,
-0.5596143007,
0.2590964437,
-0.1655557454,
0.12008176,
0.1197093055,
0.1849688143,
0.1255120933,
0.3726021349,
0.0107752727,
0.2102602124,
-0.0218319036,
0.3853051066,
0.0338166282,
-0.1196131334,
-0.3037390709,
0.2869790196,
-0.241419062,
0.0476065725,
0.0115101086,
-0.2778788209,
0.0368820243,
-0.1208557039,
0.1104169264,
0.9052500725,
0.1135665029,
0.0996832773,
-0.1198922023,
-0.2967719138,
0.2970978916,
-0.5791082978,
0.0438297354,
-0.3369164467,
0.0016261392,
-0.1806019396,
-0.1437614113,
0.1378141791,
0.3396266103,
0.0060510105,
0.3256646097,
-0.0057111387,
0.0431521758,
0.139962405,
0.3301215172,
-0.104115203,
-0.0245806538,
0.0014012663,
0.1184772998,
-0.2240978926,
0.2851725519,
-0.2016713023,
0.0011583845,
0.0076760799,
-0.2724420428,
-0.5300317407,
0.1021526381,
-0.2045398802,
0.3161267638,
-0.006251161,
-0.3018479645,
0.1849880219,
0.2600186169,
-0.090802744,
0.1287353039,
-0.2165050954,
0.1222103462,
-0.0555148907,
-0.2706001401,
-0.0241377801,
-0.2159352452,
0.0079905484,
-0.1819923222,
-0.597163856,
0.2154240906,
0.1920943707,
-0.1789527982,
0.1722553819,
0.1359445304,
-0.3334883153,
-0.1371560693,
-0.1769359857,
0.1274014413,
0.0828850791,
-0.0977430716,
0.0853427649,
0.236074388,
-0.3618899584,
0.1697365642,
0.2105908394,
0.049208492,
-0.0643647313,
0.8636331558,
0.0286202598,
-0.2775164247,
0.1623734683,
0.434479475,
-0.2526561916,
-0.3645712733,
0.1376474351,
0.1207157969,
-0.4923098981,
-0.1717733294,
-0.1336127073,
0.295249939,
0.0356934071,
-0.0159087628,
0.2574011981,
0.1399095654,
0.1712182611,
-0.7608025074,
0.2117219567,
0.1154404283,
-0.0505736619,
0.1819092631,
-0.1716829836,
-0.411667794,
0.2183817327,
0.2390037328,
-0.2321224213,
0.1472899914,
-0.4260748327,
0.029188985,
0.012977195,
-0.1817364097,
0.1943999529,
0.0441686809,
0.0744472966,
-0.0411588065,
-0.2427625358,
-0.1290088743,
0.0303494055,
0.1401368082,
0.1493047029,
-0.1141727939,
0.0454329476,
-0.3504355252,
-0.2139594704,
0.3077474833,
0.1034891531,
-0.1074510813,
-0.0044764332,
0.1552473605,
0.0591494665,
-0.1350942254,
-0.3512433767,
0.0180092473,
-0.0578515418,
0.1934488565,
0.1699364632,
0.1226351187,
0.4204262495,
0.0044743037,
-0.2742662132,
-0.0970612541,
-0.0810327902,
0.0194175411,
0.5168265104,
-0.3800702989,
0.1693313569,
-0.0673337728,
0.4852583706,
0.5258997679,
-0.2682289779,
0.0795679316,
0.3408382535,
0.182882145,
-0.3047326207,
-0.4977712333,
-0.0220141597,
0.1146615744,
-0.169106096,
-0.0814408585,
0.0267347321,
-0.1408559233,
0.2197677642,
0.1466979533,
0.3943866789,
-0.1000105366,
0.2413318157,
0.1268939227,
-0.2257246822,
0.1006754786,
0.2271493822,
0.1426258683,
-0.1209114566,
0.2855169177,
-0.0766797811,
0.0614098199,
0.0915949047,
0.3873987496,
-0.0108574871,
-0.3694124818,
0.1577727646,
0.1090786904,
-0.1153824627,
0.0297031365,
-0.0453184694,
0.2133300304,
-0.102414079,
0.1619337201,
-0.5594283938,
0.012213029,
-0.0585211664,
-0.1331549287,
-0.2422489971,
-0.202404052,
-0.2762753069,
0.0247439593,
-0.0607907362,
-0.2763909101,
0.1711341143,
0.2096410394,
0.0516681299,
-0.5944132209,
-0.0524071679,
0.0873768255,
-0.0601979345,
-0.34647578,
0.1010102928,
0.3304133117,
0.0336794555,
0.0459681563,
0.0191226304,
0.3294518888,
0.1732227802,
-0.127951622,
0.1771546453,
-0.0083386628,
-0.076791428,
0.1825034171,
0.2080484331,
0.5027756691,
-0.1009995118,
0.4242618084,
0.0497201942,
-0.0788147822,
0.7516394854,
0.1391801536,
0.2534102201,
-0.1906705946,
0.2152342498,
-0.2270899564,
0.0391908251,
-0.385459125,
0.1672207117,
-0.6156358719,
-0.0862332359,
0.3548777103,
-0.1562499404,
0.0931014344,
-0.2295363694,
0.0301775392,
-0.0798112154,
0.8588131666,
0.2599476278,
0.1833543777,
-0.2782602608,
-0.0734049156,
-0.4318868816,
0.139235884,
-0.2241561413,
0.1223363951,
0.0839166343,
0.3067053258,
-0.1299302131,
0.4181704521,
0.0848796591,
0.098685205,
-0.0958619267,
0.6857907772,
-0.2925006449,
-0.2643130124,
0.2988102734,
0.2186223865,
-0.0371114016,
-0.1455607712,
0.1634249836,
-0.1592040658,
-0.0946726725,
-0.2772417367,
-0.2932487428,
0.0870180652,
0.046037741,
0.1496984512,
-0.0614806823,
0.6655399799,
0.0549405664,
-0.153288126,
-0.3392358124,
-0.1613491029,
-0.0591120273,
0.2846422195,
0.3584504724,
0.4268788695,
-0.1081948951,
0.1689173132,
-0.1911164373,
-0.0041977172,
-0.168598935,
-0.0218932126,
0.0049288468,
-0.193994835,
0.150134787,
0.0093860598,
0.1331478804,
-0.0641480684,
0.0285329875,
-0.0743603855,
-0.1731967628,
-0.1396239102,
0.2915413082,
0.1399749219,
-0.024346808,
-0.1901144683,
0.2326487303,
-0.1780022532,
0.0122320401,
-0.4893912077,
0.381464839,
0.4427549243,
0.031332925,
-0.2681514323,
0.2902329266,
-0.0731366277,
-0.0090242345,
-0.0591964163,
0.2034934908,
-0.0358706154,
-0.2879577577,
-0.1622176766,
-0.2576024234
] |
https://github.com/huggingface/datasets/issues/988 | making sure datasets are not loaded in memory and distributed training of them | my implementation of sharding per TPU core: https://github.com/google-research/ruse/blob/d4dd58a2d8efe0ffb1a9e9e77e3228d6824d3c3c/seq2seq/trainers/t5_trainer.py#L316
my implementation of dataloader for this case https://github.com/google-research/ruse/blob/d4dd58a2d8efe0ffb1a9e9e77e3228d6824d3c3c/seq2seq/tasks/tasks.py#L496 | Hi
I am dealing with large-scale datasets which I need to train distributedly, I used the shard function to divide the dataset across the cores, without any sampler, this does not work for distributed training and does not become any faster than 1 TPU core. 1) how I can make sure data is not loaded in memory 2) in case of distributed training with iterative datasets which measures needs to be taken? Is this all sharding the data only. I was wondering if there can be possibility for me to discuss this with someone with distributed training with iterative datasets using dataset library. thanks | 16 | making sure datasets are not loaded in memory and distributed training of them
Hi
I am dealing with large-scale datasets which I need to train distributedly, I used the shard function to divide the dataset across the cores, without any sampler, this does not work for distributed training and does not become any faster than 1 TPU core. 1) how I can make sure data is not loaded in memory 2) in case of distributed training with iterative datasets which measures needs to be taken? Is this all sharding the data only. I was wondering if there can be possibility for me to discuss this with someone with distributed training with iterative datasets using dataset library. thanks
my implementation of sharding per TPU core: https://github.com/google-research/ruse/blob/d4dd58a2d8efe0ffb1a9e9e77e3228d6824d3c3c/seq2seq/trainers/t5_trainer.py#L316
my implementation of dataloader for this case https://github.com/google-research/ruse/blob/d4dd58a2d8efe0ffb1a9e9e77e3228d6824d3c3c/seq2seq/tasks/tasks.py#L496 | [
-0.2850976884,
-0.446924597,
-0.101640828,
0.2859597802,
0.0856815726,
-0.1491081566,
0.2383990735,
-0.1465864331,
0.0240799375,
0.4799138606,
0.0181804691,
-0.3488182425,
0.0343002304,
0.0275095385,
0.060448233,
0.0179704316,
0.1120214686,
0.3357721269,
-0.3774603009,
-0.2143626511,
0.0459746905,
-0.3006144464,
-0.2231130749,
-0.4654532373,
-0.2706236243,
-0.3876401186,
-0.3339642882,
0.1683359444,
0.0477673635,
-0.125773713,
0.0534128472,
0.3121864498,
0.1771171093,
0.3838864267,
-0.0001218972,
0.0222529471,
0.0042735399,
-0.2202749401,
0.0192181412,
0.2641945183,
-0.1913983226,
0.0063300328,
0.0003851278,
-0.3340351284,
0.0132984314,
0.4170167148,
0.1963105649,
0.0613025874,
0.3701332211,
-0.1553578526,
0.0558342673,
-0.0255189799,
-0.2354943007,
0.1314518005,
-0.153572306,
0.2047360092,
-0.0576477833,
0.0762738436,
0.1306767315,
0.2814642489,
-0.3883310854,
-0.0501433462,
0.0898797512,
0.3026072681,
-0.0810468197,
-0.0840715319,
-0.295624733,
-0.4764961004,
-0.136513263,
0.2408646047,
0.3387237489,
-0.1296499372,
-0.2632669806,
-0.0972089171,
-0.212354064,
-0.2463738173,
0.2450065017,
0.2494799346,
-0.1925619394,
0.1366340667,
-0.454307586,
-0.2199465632,
-0.0141444616,
0.0019955323,
-0.0769485459,
0.2673743069,
-0.010731806,
0.0682420507,
0.1199442372,
0.0490623973,
0.0894724727,
-0.1555408239,
0.1790194958,
0.1713035852,
-0.4141795039,
-0.3513465524,
-0.2705788016,
0.226299718,
0.3593382537,
0.2377802432,
0.2247720957,
-0.1068679988,
-0.0023741652,
0.0505557396,
0.2380448282,
0.1071519777,
-0.2517018914,
0.3409186304,
0.0513901934,
0.0400046557,
-0.2665717304,
0.0251007639,
0.0846538469,
-0.0536059774,
0.2762928903,
0.0320424214,
-0.3585416675,
-0.2263354361,
0.1232637241,
-0.3235216141,
0.3846230507,
-0.3293302655,
0.0101510445,
0.3466289043,
-0.0196163934,
0.2146201432,
-0.2132748216,
-0.1072797775,
-0.3988609314,
-0.3019174635,
-0.2076005638,
0.2741043568,
-0.2674981058,
0.4903125763,
0.2091442943,
-0.0299388207,
0.1844544262,
0.1069871411,
0.1533885747,
-0.0155791817,
-0.0933183879,
-0.5966618657,
0.4550486505,
0.2268832475,
-0.1433907747,
-0.2938841283,
-0.1485480219,
0.1741020083,
-0.1960165501,
0.2360368669,
-0.4523727298,
-0.2490268648,
0.5554456711,
-0.0028191826,
-0.3629246056,
0.1157255322,
-0.4995554984,
0.133221522,
0.2668932974,
-0.116127789,
0.1454331428,
-0.0052115959,
-0.2313589305,
-0.2011778206,
0.4455416799,
0.434268862,
-0.0924744159,
-0.1634875983,
-0.1232563406,
-0.2671783566,
0.3049456477,
0.5289577842,
-0.1256096065,
0.2426066846,
-0.1033517718,
0.1214641333,
0.4829788208,
-0.1648508608,
-0.5223399401,
0.3366287053,
-0.0895819217,
-0.0239743218,
0.350164026,
0.1028359085,
0.3634912372,
-0.2017166615,
-0.3693886399,
0.3324268758,
-0.0446622334,
0.0064766044,
-0.3000493944,
-0.3167114556,
0.0293718018,
0.3014538288,
0.2228058428,
0.3439861536,
0.3938889802,
0.13695544,
0.1571154594,
0.1752230674,
0.2316107899,
0.1442392468,
-0.0722372979,
-0.1870474517,
0.0008604188,
0.1804030389,
-0.3296205699,
0.1845466495,
0.2262246162,
-0.106459178,
0.1684903949,
-0.0674763098,
0.258564055,
-0.2612835765,
-0.0517381243,
0.1651481241,
-0.1074119359,
-0.0291460659,
0.2330951244,
-0.0241220873,
-0.2720945477,
0.1472539306,
-0.5785943866,
-0.0418074466,
-0.3138768673,
0.3831667006,
0.3711926341,
-0.2603052557,
0.0054375129,
-0.0081124334,
-0.3401142657,
-0.1454954296,
-0.0536570214,
0.3793816864,
0.1350978464,
0.2542770505,
0.2725789249,
0.4957118928,
0.2204966396,
-0.0001672951,
-0.1201721504,
-0.1857903302,
0.0326544829,
-0.2213969082,
0.1440978646,
0.3712818623,
-0.279176116,
0.0334158987,
0.3532110751,
-0.3868362606,
0.0125811454,
-0.2244393528,
0.0795873329,
-0.0474357232,
0.1515684277,
-0.164457798,
0.2237011939,
0.3324977458,
-0.3510330617,
-0.2701886296,
0.3463744521,
-0.0360679105,
0.1155008599,
-0.0303094573,
0.2549030185,
-0.1055501029,
0.4570453763,
0.1863234341,
0.5929903984,
0.029524751,
0.1714457721,
0.075578846,
0.4698833525,
-0.1659839451,
-0.1260811836,
0.1193939224,
0.0960817635,
0.1210763678,
-0.2539708316,
-0.0385595635,
-0.0428546667,
-0.2479242533,
0.1410573721,
0.0665938109,
-0.2223700583,
-0.3473723233,
-0.2748942077,
0.1711205393,
-0.1257773936,
0.5265752673,
-0.156970337,
0.2490984648,
-0.1757233739,
0.185936138,
0.1160793304,
0.0754176751,
0.1315280497,
0.5472944379,
-0.2812934816,
-0.1306926459,
-0.1015448719,
-0.0055975448,
0.0378922075,
-0.010305088,
0.0849506557,
0.0203345511,
0.3242630363,
-0.1828656048,
-0.1165828407,
0.0160062928,
0.2350926101,
0.0868620425,
-0.0110539058,
-0.1194674969,
-0.2694167793,
0.2036114335,
-0.3451443315,
0.0100246985,
-0.034343604,
-0.3875853419,
-0.2120894343,
0.0211279001,
0.2033813596,
0.0441892594,
0.1312756687,
-0.3102551103,
-0.551199913,
-0.1931800991,
0.0596586578,
0.0882994831,
0.2374938577,
-0.3693220317,
0.0009117614,
-0.215830192,
-0.1285566092,
0.0852250457,
0.0186597761,
-0.7339743376,
0.2251438349,
-0.1277547479,
-0.1065986902,
0.1969067007,
0.0439925902,
0.2969291508,
0.6327614784,
-0.6015492678,
0.0256650895,
-0.0054411842,
-0.048361212,
-0.0260074809,
0.3246159554,
0.3580392599,
-0.2550139427,
0.0929701924,
0.1729643345,
0.2414898872,
0.2181490809,
-0.2989732921,
0.2201258838,
0.2244485319,
0.3264578283,
0.0751108751,
1.0645372868,
0.1015434414,
-0.085382618,
0.1934487969,
-0.0542322472,
-0.2000162452,
-0.1311399192,
0.068760626,
0.4237138331,
0.2482778877,
-0.3482009768,
0.3478901386,
-0.0717024729,
0.0678381771,
-0.3110268414,
-0.2006594241,
-0.1890437007,
-0.1877676398,
0.1117292047,
-0.1849603802,
0.396399647,
-0.4010536373,
-0.1964779794,
0.1389082223,
-0.4262194633,
-0.318005383,
0.3682343364,
0.2384229749,
0.10311497,
-0.3052880466,
-0.0947434306,
-0.0156619865,
0.1499421448,
-0.0120916711,
0.3900531232,
-0.2108364552,
-0.1154823154,
0.2468061596,
0.2986289561,
0.2268299311,
-0.1457245797,
-0.0798827708,
-0.3076451421,
-0.7778623104,
0.3000766039,
-0.0271936916,
-0.1035114154,
-0.1390634328,
-0.029246714,
0.1339030415,
-0.3538063765,
-0.2225177288,
-0.0865319669,
-0.0404616334,
-0.2263624072,
-0.4271757901,
-0.2894739807,
0.0326933265,
-0.0461135097,
0.1753046662,
-0.0697797239,
-0.1096784547,
-0.163995415,
-0.0245053023,
-0.3207270205,
0.1230978146,
0.2537721395,
-0.0023327314,
-0.0198348016,
-0.0037335837,
0.1049825251,
0.0772400945,
0.1602942497,
0.4270335138,
0.3155895472,
0.0475324802,
0.1518764347,
0.1038218215,
0.1812532991,
0.3947944641,
0.1755103618,
-0.096386604,
0.1324895918,
0.0933345482,
0.1298796386,
-0.5946344137,
0.1252010763,
-0.206732437,
-0.1251223087,
-0.3810143173,
-0.3799036741,
0.5109302402,
0.2016144097,
-0.077260606,
0.2693001628,
-0.1859850734,
-0.2704082131,
0.0910875276,
0.2416856289,
1.194955945,
-0.2357975394,
0.001587539,
0.0235198028,
0.6256216168,
0.2952646613,
-0.1425606906,
0.0791511983,
-0.1567936093,
-0.5064915419,
-0.139677152,
-0.0914026201,
0.1993640214,
0.6071106791,
-0.2471410632,
0.5053639412,
0.097753197,
0.1230282784,
-0.0511083305,
0.2899983525,
-0.0255784653,
-0.2176858038,
-0.0754526407,
-0.0066129332,
-0.0861458778,
-0.0675921962,
0.0272291955,
0.1248535588,
0.070672594,
0.3435363173,
0.3692071438,
-0.0705787018,
-0.1748685837,
0.1539407969,
-0.0577234775,
-0.2397855073,
0.0510641113,
0.3057442605,
0.214362964,
-0.0646285042,
0.0794179514,
0.1858104616,
0.0110640507,
0.0627136976,
0.053873606,
0.1874875575,
0.3667630255,
-0.0420448929,
-0.1687343717,
0.1026157141,
-0.1083455682,
-0.3432528973,
-0.3397272229,
-0.2703557909,
0.2166688591,
-0.2415287644,
0.0034718369,
0.1015728787,
-0.1148641333,
0.2285503149,
0.0456752591,
0.1062353626,
-0.2522288859,
0.4409604669,
0.1434901506,
-0.2262578309,
-0.241060555,
0.3997337818,
0.2230372131,
-0.0317891836,
0.0558509976,
-0.3360227346,
-0.1159329787,
-0.2397971302,
0.1464858651,
0.255798012,
-0.2557869256,
0.0343993939,
-0.0327228606,
0.2196078598,
-0.0911340043,
0.2653229535,
0.34976542,
0.1494250894,
-0.1341982335,
-0.2132928669,
-0.3637443781,
0.1150749028,
-0.0284009334,
0.2755425274,
0.0413883924,
-0.1445616186,
0.0022590656,
0.5074510574,
-0.1924565881,
-0.3156137764,
-0.3064942658,
0.2280224413,
0.0856725127,
0.1686110944,
-0.1790864617,
0.0609551743,
-0.096979335,
0.0760205537,
-0.1741683483,
-0.0559945889,
0.2542455792,
0.2356891036,
0.1058015302,
0.2557395399,
-0.2457217574,
-0.2866534591,
-0.0609522499,
-0.2496189177,
0.3579747379,
-0.1908964217,
-0.0357806943,
0.0814170316,
0.5675019026,
-0.1763916016,
-0.5132970214,
0.3315226436,
-0.1228830293,
-0.0873665512,
-0.0473599844,
0.1017595455,
0.0947394073,
-0.0541583039,
-0.1167325005,
0.0673038661,
0.4573142231,
-0.2007618546,
0.0813217014,
-0.0831921026,
0.2025211602,
-0.1187139452,
0.2375453413,
0.2786086202,
-0.1989978254,
-0.1033812091,
0.3501415253,
0.0641592816,
0.1749478877,
0.1949368864,
0.0907965824,
0.4121890068,
-0.0727303475,
0.3976578712,
0.0841874853,
-0.1620189101,
-0.1039725244,
-0.0637229756,
0.3649160862,
-0.4576651156,
0.0706191063,
0.0527825281,
0.0701724589,
0.2187187374,
0.2454748899,
0.2847748697,
-0.1966038197,
-0.1076280624,
0.0905357599,
0.9374862909,
0.0294715147,
0.3309078217,
-0.0883603767,
-0.7197980881,
-0.180552125,
0.3365644813,
-0.2061481923,
-0.0665047541,
-0.2090163529,
0.1267828792,
0.156628266,
-0.3895665705,
-0.0767217726,
0.2007274628,
-0.0612219758,
0.0977809131,
-0.1993889958,
-0.0898598805,
-0.1976268739,
0.0342358537,
0.1126259714,
-0.106222257,
0.7192901373,
0.3560316563,
0.0974272564,
0.1140453443,
0.0710158199,
0.2500624657,
0.2436404973,
-0.2792297304,
0.2228552401,
-0.1764146388,
0.0562714525,
0.2046945244,
0.2707376778,
-0.1226152331,
0.277050823,
0.3466812372,
-0.201242432,
0.3650782406,
0.0360431001,
0.0999683291,
0.4576960504,
-0.0863892436,
0.2416488379,
0.1397782713,
0.0419722311,
0.046063073,
0.1136244237,
0.0232221633,
0.1060888469,
-0.3862359524,
0.3639750779,
0.2190269679,
-0.0323516056,
0.1867967099,
0.1043371186,
-0.3539729416,
0.2261860371,
0.2614781559,
-0.7350067496,
0.0536823384,
0.0051754857,
0.0006826266,
-0.1476235092,
0.4439833462,
0.2665703595,
0.0127032334,
-0.2566803098,
-0.4229549468,
-0.2817397714,
0.0209109802,
-0.0806218013,
-0.2530036569,
-0.0539068915,
0.2732561827,
0.011129342,
0.084235318,
-0.4803051949,
-0.3653131723,
-0.2499965578,
0.3177437782,
-0.1425903291,
-0.0580935441,
-0.6569173932,
0.199301511,
-0.0205475893,
-0.3092359304,
0.2699126005,
-0.0003712671,
-0.1959730536,
0.3814072907,
0.2007539868,
0.1624617875,
-0.0903099775,
0.2300459146,
-0.085375838,
0.2732613981,
-0.0545862578,
0.3909986615,
-0.1388930082,
-0.0620088242,
-0.1367462128,
0.0556105711,
-0.0775228813,
0.1302130818,
-0.1727822274,
0.2934637368,
-0.0388472378,
-0.1885390133,
-0.2850569785,
0.1546574831,
0.213529706,
-0.344077915,
0.2935582101,
0.2466167957,
0.5267215967,
0.3046106994,
-0.14508605,
-0.2472749054,
-0.14054434,
-0.060935609,
0.08722689,
-0.25707075,
0.099313587,
-0.366656065,
0.3546513915,
-0.0944079608,
-0.1182357371,
-0.5359985232,
-0.0756090656,
0.3408852816,
0.031013893,
-0.1221681535,
0.2784610689,
0.2851260006,
-0.1024947688,
0.0723017082,
-0.1669162363,
-0.3003566265,
-0.23553285,
-0.1274081469,
-0.3041149378
] |
https://github.com/huggingface/datasets/issues/961 | sample multiple datasets | here I share my dataloader currently for multiple tasks: https://gist.github.com/rabeehkarimimahabadi/39f9444a4fb6f53dcc4fca5d73bf8195
I need to train my model distributedly with this dataloader, "MultiTasksataloader", currently this does not work in distributed fasion,
to save on memory I tried to use iterative datasets, could you have a look in this dataloader and tell me if this is indeed the case? not sure how to make datasets being iterative to not load them in memory, then I remove the sampler for dataloader, and shard the data per core, could you tell me please how I should implement this case in datasets library? and how do you find my implementation in terms of correctness? thanks
| Hi
I am dealing with multiple datasets, I need to have a dataloader over them with a condition that in each batch data samples are coming from one of the datasets. My main question is:
- I need to have a way to sample the datasets first with some weights, lets say 2x dataset1 1x dataset2, could you point me how I can do it
sub-questions:
- I want to concat sampled datasets and define one dataloader on it, then I need a way to make sure batches come from 1 dataset in each iteration, could you assist me how I can do?
- I use iterative-type of datasets, but I need a method of shuffling still since it brings accuracy performance issues if not doing it, thanks for the help. | 109 | sample multiple datasets
Hi
I am dealing with multiple datasets, I need to have a dataloader over them with a condition that in each batch data samples are coming from one of the datasets. My main question is:
- I need to have a way to sample the datasets first with some weights, lets say 2x dataset1 1x dataset2, could you point me how I can do it
sub-questions:
- I want to concat sampled datasets and define one dataloader on it, then I need a way to make sure batches come from 1 dataset in each iteration, could you assist me how I can do?
- I use iterative-type of datasets, but I need a method of shuffling still since it brings accuracy performance issues if not doing it, thanks for the help.
here I share my dataloader currently for multiple tasks: https://gist.github.com/rabeehkarimimahabadi/39f9444a4fb6f53dcc4fca5d73bf8195
I need to train my model distributedly with this dataloader, "MultiTasksataloader", currently this does not work in distributed fasion,
to save on memory I tried to use iterative datasets, could you have a look in this dataloader and tell me if this is indeed the case? not sure how to make datasets being iterative to not load them in memory, then I remove the sampler for dataloader, and shard the data per core, could you tell me please how I should implement this case in datasets library? and how do you find my implementation in terms of correctness? thanks
| [
-0.3916405141,
-0.0641561598,
-0.071513541,
0.1802323163,
0.0308314264,
-0.1964397579,
0.3828042448,
-0.0021055916,
0.3755801618,
0.3051428795,
0.0210494213,
0.1671251804,
-0.1992869675,
0.2304516584,
-0.063853465,
-0.185749948,
0.1219989136,
0.1643289775,
-0.531196475,
0.0054709166,
-0.0241464321,
-0.1971098185,
-0.1702242792,
-0.2883293033,
-0.177111581,
-0.2674230039,
-0.4406118691,
-0.0727713928,
-0.1395245939,
-0.0913868397,
0.1153419092,
0.4905368388,
0.3580518067,
0.5394567251,
-0.000111204,
-0.1196053103,
-0.0444232188,
-0.1387528777,
-0.1061959937,
-0.1808308661,
-0.0781030431,
-0.0892329887,
0.0344420411,
-0.3380919695,
0.0083267456,
0.0254511628,
0.1565669626,
-0.3575609028,
0.2909743488,
-0.1612726897,
0.1276791692,
0.1199496835,
-0.1547262073,
0.0384347886,
-0.092531018,
0.3123205304,
0.0935155377,
0.4337083697,
0.5372365713,
-0.1591676921,
-0.3149557114,
0.0160150398,
-0.0044770315,
0.246170193,
0.0793832764,
-0.1820977181,
0.0218563564,
-0.3477078378,
-0.3850467503,
0.2288400233,
0.4140790105,
-0.279900074,
-0.3263224661,
-0.2925456166,
-0.0736808479,
0.2130670398,
-0.0283799749,
0.1663020402,
-0.2419202477,
-0.0525976494,
-0.1114866957,
-0.0543075427,
-0.1045179367,
0.1332089603,
-0.0238406621,
0.1524393559,
-0.1014346331,
0.1528571993,
0.3740716279,
0.0841335505,
0.2387399524,
-0.4104619026,
0.2212485373,
0.2202964574,
-0.4802782536,
-0.2056568265,
-0.2477678806,
-0.1046728566,
0.265036881,
0.2081968635,
0.121757403,
-0.134212926,
-0.106748037,
0.1430407912,
0.3041800261,
-0.0853131637,
-0.0716502368,
0.2037617266,
-0.0634064823,
0.2247582674,
-0.0819226429,
0.0488003269,
-0.313709408,
-0.0129537666,
-0.0031797981,
0.2531785965,
-0.2476242781,
0.0603042766,
0.2005781382,
-0.4978003502,
0.1361876428,
-0.3567000628,
0.236686036,
0.0747649968,
-0.1907100976,
0.328304857,
-0.1854240447,
0.2657663822,
-0.0532728247,
-0.2072142959,
-0.1880469769,
0.2148923129,
-0.3193079829,
0.2454108,
0.1908977777,
-0.0126185315,
0.1669197977,
0.3347460926,
0.0716237575,
0.0064518582,
0.3675650954,
-0.2884427011,
-0.2200203985,
-0.1544593424,
0.2525639832,
0.2033262849,
0.1435805857,
0.3965342045,
-0.2144622952,
0.090217717,
-0.4931748509,
-0.0262249298,
0.2761391997,
0.1008029804,
-0.1596167982,
0.0404095948,
-0.8439468145,
0.2114649266,
0.153543517,
0.0032145928,
0.0099206921,
0.0232033394,
0.1156397834,
-0.2657038271,
0.0627908334,
0.3633191288,
-0.2656928003,
-0.1372894347,
-0.0091386978,
-0.2979202867,
0.4705411792,
0.0035396887,
-0.4522489011,
0.3560404778,
-0.2815080881,
0.1066807359,
0.2924127579,
-0.4420186579,
-0.0656704158,
0.4262465537,
-0.1766885668,
-0.0041095456,
0.3303824365,
0.0544343069,
0.2620956004,
-0.1768240035,
-0.3654960096,
0.5972781777,
-0.2043524086,
0.1548202485,
-0.0525413938,
-0.2917996943,
0.1647378057,
0.4052251577,
0.1216878295,
0.0416776948,
-0.0769992918,
0.0828570575,
0.3132278621,
-0.2317798585,
0.3287110627,
0.0279813334,
0.0492678359,
-0.161675483,
-0.1748330593,
-0.0466453098,
-0.3390175998,
0.1256399006,
-0.2319261283,
-0.0970664546,
0.4011269212,
-0.0232186299,
0.3465251923,
-0.2669228911,
-0.3869841695,
0.0723769292,
0.0611794963,
0.2023777813,
0.108596094,
-0.3398438692,
-0.2768114507,
0.1908143163,
-0.2290110737,
0.0546375066,
-0.3565298915,
0.3841883242,
0.1405823678,
0.139380753,
-0.0097082574,
-0.1697504669,
-0.1182319075,
-0.306412667,
0.066783525,
0.2394202203,
0.1556430608,
0.1732924581,
0.1532120258,
0.0427239947,
0.2259370983,
0.041728273,
0.2905352414,
-0.2535176277,
0.1214324385,
-0.3226808012,
0.0727036968,
0.3777751625,
-0.4089927673,
0.3344213963,
-0.0807151422,
-0.1459089816,
0.1602964997,
-0.0955843031,
-0.0668595359,
0.0897980034,
0.0799410343,
-0.0394894071,
0.5106657743,
0.0334868692,
-0.2563399076,
-0.0866076797,
-0.3283579051,
0.0508657917,
0.0272155739,
-0.0320314728,
-0.0541128181,
-0.0881682411,
0.0534981228,
0.2296972126,
0.5622864366,
0.0916322321,
0.1222974062,
-0.3130416274,
0.3364981413,
-0.0595746078,
-0.0175773166,
-0.0588469058,
0.2014516145,
0.1984523535,
-0.2046965361,
-0.1562072486,
0.1088903472,
-0.3493086994,
0.4324038923,
-0.0105428332,
-0.0821600333,
-0.0819674805,
-0.1365519017,
-0.2113720328,
-0.3789574206,
-0.181582883,
-0.1165511459,
0.2115497589,
-0.1122414544,
0.4244527221,
0.1437133849,
0.0697334036,
0.0289149899,
0.4648035765,
-0.2581797242,
-0.1165133938,
0.1640329063,
0.0414403155,
-0.0891952515,
0.1470766664,
0.300647825,
0.2237675041,
0.2247205824,
0.0473096743,
-0.1249577254,
-0.1231020018,
0.393351078,
-0.0228143409,
0.0427180976,
0.1739189774,
0.05198659,
0.1862622947,
-0.0528642386,
-0.1905216575,
-0.0391823128,
0.0591021217,
-0.1496569812,
-0.1275011599,
-0.2147631347,
0.0657795444,
0.0686950237,
0.074998185,
-0.6593739986,
-0.2051497251,
-0.1912443787,
-0.0376746282,
0.2734798193,
-0.0044932808,
0.1117943153,
-0.1348207146,
-0.0110143386,
-0.0916980356,
0.0539694205,
-0.8185970187,
0.0981761813,
-0.0951286852,
-0.0645315722,
-0.3637395203,
-0.1193405688,
0.2723681629,
0.3621839583,
-0.2142648548,
-0.2822713554,
0.3100192249,
-0.014670901,
0.1291706711,
0.3735460043,
0.1150705591,
-0.1168298498,
0.1084925756,
-0.0514421798,
0.3031529784,
0.3980278373,
-0.1371179372,
0.4599197805,
0.2732170522,
0.0310575739,
-0.1509060413,
0.6859964728,
0.2674048543,
-0.1025427133,
0.3714950383,
0.2768208981,
-0.212712869,
0.223950237,
-0.3388918638,
0.241918385,
-0.0244662035,
-0.0515040495,
0.2720039189,
-0.2013649493,
-0.1227096543,
-0.2037570328,
-0.1127375439,
-0.2855710387,
-0.1201567203,
0.3364458978,
-0.4417081773,
0.1837795526,
-0.4353535473,
-0.4029156566,
-0.2996041775,
0.0606859252,
-0.1537038237,
0.145198822,
0.199125424,
-0.0662369356,
-0.758474052,
0.0372869894,
-0.1249939948,
0.0306951236,
0.0765899196,
0.2014193535,
0.3181450665,
0.1460334659,
-0.018023463,
0.1173704416,
0.6082803607,
-0.0661458224,
-0.1419581771,
-0.1396328956,
-0.2273281217,
0.0899068266,
-0.2605347931,
-0.212852627,
0.3071988821,
-0.1260774285,
0.1600034684,
-0.4796883762,
-0.2513051331,
-0.1834201515,
0.2079836726,
-0.1182785109,
-0.4122637212,
-0.0381336398,
0.083741039,
-0.0803013593,
0.0695662424,
-0.0831739455,
0.2337732166,
-0.0652957782,
-0.0486731194,
-0.1169731617,
0.1158372611,
0.2315759212,
-0.0874582827,
0.0555867292,
0.0780890286,
0.3457975388,
0.193434611,
-0.0737488717,
0.5183070302,
0.3417627215,
-0.4900233746,
-0.1208455339,
0.14753519,
0.0188254677,
0.2842288613,
-0.0302861724,
0.1082383692,
0.3041318655,
0.0835692883,
-0.1507168561,
-0.2274363637,
0.0888388008,
-0.0415251292,
0.0231992807,
-0.4876142442,
-0.666033864,
0.4684601128,
0.3520279527,
0.0157675799,
0.5351880193,
-0.5151383281,
-0.261973381,
0.1972192675,
0.2440882623,
0.6343527436,
-0.0645347983,
-0.0142660663,
-0.0526922829,
0.6073738933,
0.427647233,
-0.1701567173,
0.0359558873,
-0.2731942832,
-0.325997144,
-0.0899961069,
-0.2492548376,
0.1500124484,
0.6537644863,
-0.0752202198,
0.3147536218,
-0.0180113222,
0.0218273569,
-0.0847359225,
0.2518902719,
-0.0768449903,
-0.4026192427,
0.0569937527,
0.0568418801,
-0.1508844793,
0.1048472077,
-0.0717466474,
-0.1574086994,
0.1687269807,
0.2035701424,
0.0173582174,
0.1116111726,
-0.3153598309,
0.1035549119,
0.1064759567,
0.1456957012,
0.0690370277,
0.0525832325,
0.1457949281,
-0.120810464,
0.0828677937,
-0.0783259124,
0.0399508774,
0.0345097631,
-0.1295622438,
-0.1900818944,
0.4435195625,
0.0005732944,
-0.1457632184,
0.0637673289,
0.1457604021,
-0.1982661188,
-0.1122388989,
-0.0134080229,
0.2863934636,
-0.2633127272,
-0.2650087178,
0.2543338239,
0.19059439,
0.0370326899,
0.066878669,
0.2705124021,
-0.1904267222,
0.6262239814,
-0.187276572,
0.0930594802,
-0.1267870814,
0.0679336265,
0.3257102668,
-0.3565042615,
0.0873127207,
0.123131454,
0.0086446153,
-0.1919460148,
0.066783309,
0.4896386564,
-0.2254799455,
0.1107653975,
-0.1611425281,
0.1073138714,
0.1549788415,
0.3132694066,
0.2724295557,
0.1676061004,
0.0756263286,
-0.3852107525,
-0.3145556152,
0.1792339981,
-0.073198393,
0.3070868254,
0.0941194296,
-0.0287559163,
-0.0472241454,
0.4644151628,
-0.2387145907,
-0.073916547,
-0.0439637341,
0.1152406186,
0.2772043943,
0.1561949998,
-0.162152186,
0.3207269907,
-0.0046563046,
-0.0284530763,
-0.0849507153,
-0.1576072872,
0.0386969112,
0.1843990535,
0.0473490842,
-0.025396008,
0.1175850779,
-0.2932243645,
-0.0927732661,
-0.1650465727,
0.0020965976,
-0.2110261321,
-0.0389787741,
-0.048346743,
0.5077005029,
-0.1548280418,
-0.4957730174,
0.4022542536,
-0.0133390529,
-0.2609180808,
0.0047037955,
0.2325229794,
0.1736962348,
-0.3700740635,
-0.4503505826,
-0.0439996459,
0.4514318705,
0.1486092955,
-0.0588129424,
-0.0423281752,
0.0874571502,
0.2635793686,
0.3449196517,
0.2492964268,
-0.070613116,
0.0667749345,
0.3052441478,
0.1638261527,
-0.0456410348,
0.0237992834,
0.0184330288,
0.0652499348,
0.0710257515,
0.4253251255,
0.0888465345,
0.0350847095,
-0.1052873433,
-0.0379478298,
0.2695033252,
0.1630141884,
0.2150262743,
0.1660500616,
0.0464001782,
-0.1233062446,
0.438277483,
0.2847967446,
0.083029598,
-0.1347543895,
-0.2000862211,
0.6424167752,
0.2414993793,
-0.1970068514,
0.05689504,
-0.5968428254,
0.1614176184,
0.4746443033,
0.0026908184,
-0.0528022647,
-0.1341399699,
0.5436432958,
-0.4190956354,
-0.4090664685,
0.003626846,
0.4454928935,
0.0052999114,
-0.0089166742,
-0.5101047158,
-0.1802318394,
-0.2166269273,
-0.1497143507,
-0.026560707,
-0.2004609704,
0.4630521238,
0.0762898549,
-0.0038346783,
-0.3279164433,
-0.2256796807,
0.4454769492,
0.0086991116,
-0.336050421,
0.1276867688,
0.1430610418,
-0.1460706592,
0.0249371585,
0.3911397755,
0.1470084339,
0.4168980122,
0.2586801946,
-0.0381482653,
-0.1158528775,
-0.0226655286,
0.0162767824,
0.0359925292,
-0.1415431947,
-0.1696098894,
0.3932850361,
0.1120724902,
-0.1219298542,
0.1472967714,
0.287833631,
-0.1451050788,
-0.2953320742,
-0.0019895623,
0.364546299,
0.1936895549,
0.0502156764,
0.0415513813,
-0.5218903422,
-0.0013010857,
0.1949211806,
-0.4592625499,
-0.0127273388,
-0.0081414077,
0.0428718552,
-0.0895671695,
0.2777062654,
0.3190699816,
0.2470875531,
-0.5013748407,
-0.3431475759,
-0.3294942975,
-0.0038280918,
-0.1907374114,
-0.1383876801,
-0.3621275127,
0.274212569,
0.0922472328,
0.0791241676,
-0.2293827683,
0.1712639332,
0.020474162,
0.5848488808,
-0.4562461674,
-0.0630011484,
-0.1921027303,
0.4216590226,
0.1097043306,
-0.3497255445,
0.1359269619,
0.1766248047,
-0.0787556842,
-0.0335157737,
0.0060760984,
0.459400475,
-0.369648397,
0.2187574506,
-0.1088635325,
0.5026681423,
-0.0190915279,
0.2238156796,
0.0433432832,
0.1016316563,
-0.3354450464,
-0.2664397657,
0.263310045,
0.3186028004,
-0.185101822,
0.2326593548,
-0.2636697888,
-0.0721026435,
0.0876749605,
-0.0653567836,
-0.3314818144,
-0.1060245037,
0.0035361974,
-0.0961313769,
0.355563581,
0.2686102688,
-0.0257671904,
0.0629179925,
-0.2068599761,
-0.055605635,
0.0867586881,
-0.3383476138,
-0.011822666,
-0.4012132287,
0.0478533693,
-0.2957096398,
0.2436216027,
-0.3869486749,
0.1066706628,
0.4079364836,
-0.0373275019,
0.2124282867,
0.3201631904,
0.3638676107,
0.0808597058,
-0.2029714882,
-0.1619797796,
-0.0559313111,
-0.184864819,
-0.0263394602,
-0.233592689
] |
https://github.com/huggingface/datasets/issues/937 | Local machine/cluster Beam Datasets example/tutorial | I tried to make it run once on the SparkRunner but it seems that this runner has some issues when it is run locally.
From my experience the DirectRunner is fine though, even if it's clearly not memory efficient.
It would be awesome though to make it work locally on a SparkRunner !
Did you manage to make your processing work ? | Hi,
I'm wondering if https://huggingface.co/docs/datasets/beam_dataset.html has an non-GCP or non-Dataflow version example/tutorial? I tried to migrate it to run on DirectRunner and SparkRunner, however, there were way too many runtime errors that I had to fix during the process, and even so I wasn't able to get either runner correctly producing the desired output.
Thanks!
Shang | 62 | Local machine/cluster Beam Datasets example/tutorial
Hi,
I'm wondering if https://huggingface.co/docs/datasets/beam_dataset.html has an non-GCP or non-Dataflow version example/tutorial? I tried to migrate it to run on DirectRunner and SparkRunner, however, there were way too many runtime errors that I had to fix during the process, and even so I wasn't able to get either runner correctly producing the desired output.
Thanks!
Shang
I tried to make it run once on the SparkRunner but it seems that this runner has some issues when it is run locally.
From my experience the DirectRunner is fine though, even if it's clearly not memory efficient.
It would be awesome though to make it work locally on a SparkRunner !
Did you manage to make your processing work ? | [
-0.3029165864,
-0.2597850561,
-0.0041647139,
0.0888216719,
0.0611686856,
-0.22946015,
0.2730875015,
-0.1252959669,
0.1471408755,
0.2653597891,
0.179332301,
0.292142421,
-0.4641710222,
0.6944865584,
0.2492862642,
-0.527098,
0.3334581554,
-0.1199866384,
0.0216185246,
-0.2315687239,
0.2499718517,
0.3468073606,
-0.3306993246,
-0.052537784,
-0.0932483226,
-0.0328034796,
-0.1721201986,
0.2677878439,
-0.2200566232,
0.0841011256,
0.2658597529,
-0.1088841856,
0.186344713,
0.9052970409,
-0.0001201803,
-0.0497153811,
0.1546807885,
-0.0539858527,
0.0199466888,
-0.1867878735,
0.1566438377,
-0.0154151022,
0.1619347632,
-0.0727842972,
-0.212397933,
-0.0957707092,
0.0908535942,
-0.0055826488,
0.5885936618,
0.1696538478,
0.1072053835,
0.337879777,
-0.1923525333,
-0.1925454587,
-0.05446418,
0.3821780086,
-0.3049484789,
0.4146494269,
0.438208282,
-0.0001667088,
-0.2150046378,
0.2646874487,
-0.1692706496,
-0.1197134927,
0.274279356,
-0.178331852,
-0.4092795551,
-0.2647213638,
0.0094662821,
0.3803467751,
0.6444185972,
-0.3084756732,
-0.1788963825,
-0.1481506526,
0.0773814693,
0.0355664082,
0.166269511,
0.1155453101,
-0.251197964,
0.1777530611,
-0.7257138491,
-0.2467563152,
-0.2392482907,
-0.2115032375,
-0.1159090176,
0.3887886703,
-0.1884065121,
0.0926895887,
0.161362201,
0.0715747848,
0.4279716313,
0.0208771136,
0.1395016611,
-0.1157982498,
-0.4014289081,
-0.1895823926,
-0.0212008804,
0.6500037909,
-0.0850925446,
0.1844477206,
0.1049818993,
-0.1101930812,
0.0840259641,
0.1532220542,
-0.1201358363,
0.2642695606,
0.2677610517,
0.0173276104,
0.0258307885,
-0.2055126131,
0.205679372,
0.1432574838,
-0.451303035,
-0.1956638098,
-0.7054797411,
-0.0198633075,
-0.2233605385,
-0.1397652477,
-0.0853936151,
-0.0715432242,
-0.1140616834,
0.0226783454,
0.2285528034,
0.1604067087,
0.2587020099,
0.1301406026,
-0.0917088538,
0.0659472868,
-0.0490657054,
-0.3933477104,
-0.0686852932,
0.3721344769,
-0.5328848958,
-0.0297054593,
0.0960208699,
-0.0564034283,
0.0813703462,
-0.0479139052,
0.1972567886,
0.3849087656,
0.0602349676,
0.1320077926,
0.056842465,
0.1362745315,
0.0219948478,
0.1173636019,
0.1448403001,
0.1398748308,
-0.2038722187,
-0.1034590751,
-0.2237518728,
-0.3094115257,
0.0077485372,
-0.029571373,
-0.0920752957,
-0.2321793139,
-0.5076834559,
0.4833565354,
-0.2039633244,
0.0057094782,
0.2567743361,
-0.1527157873,
-0.280870229,
-0.2357541174,
0.3215935528,
0.4583264291,
-0.526817739,
0.0077191214,
0.0911976248,
-0.3155311942,
0.26186499,
0.2542577088,
0.071782589,
0.2218494266,
-0.3367226422,
-0.0444213003,
0.3111921549,
-0.7092143297,
0.1847455949,
0.6678612232,
-0.2511822581,
-0.1177573502,
-0.0484732091,
-0.1916435659,
0.0642124712,
-0.0097679505,
-0.0884432867,
0.239125073,
-0.1667369455,
0.1284684837,
-0.0637889281,
-0.2918200195,
-0.1378308833,
0.2049365491,
-0.013770272,
0.1322250962,
-0.008445994,
-0.1825431883,
0.2063751072,
-0.0425381623,
0.098614037,
0.4210446477,
0.0658788756,
-0.1860313863,
-0.0873796716,
-0.0554309972,
-0.0324145369,
0.1529461741,
0.2787356377,
-0.0447170883,
0.5172032118,
-0.1820724308,
-0.2667188942,
-0.0303762332,
0.0600624941,
-0.2148183286,
-0.0125032561,
-0.2500582337,
0.3179764152,
-0.1634431481,
-0.3365818262,
0.3091774583,
-0.2486629337,
-0.0815384984,
-0.2981157601,
0.4468592107,
0.1138236746,
-0.3273069561,
-0.0089704283,
-0.1782459617,
0.1134160981,
-0.3471774757,
-0.0641545877,
0.4955252111,
-0.2508575916,
0.4583966732,
0.3250457942,
0.5605686903,
0.3120706081,
-0.0244109798,
0.30259642,
-0.3043549657,
-0.1911412925,
0.2306415588,
-0.3735182583,
0.1239514723,
-0.0207572114,
0.1090439484,
0.2474950701,
0.4676243663,
-0.091564998,
0.0088481046,
-0.0071278214,
0.3194853067,
0.4472433925,
-0.1027064547,
0.1383282095,
-0.1776743829,
-0.5297766924,
0.1255434006,
0.247086674,
-0.1524431705,
0.0014618369,
0.0039344975,
-0.3945123851,
0.0936572328,
0.6196668148,
0.3489685655,
0.1256736368,
0.2109437734,
0.2386403531,
0.1326654851,
0.2032568157,
-0.3326339126,
0.1098637879,
-0.1469195485,
0.1641791016,
0.0269416068,
0.0126338005,
0.1349365413,
-0.2734868228,
-0.0991845727,
0.0476972386,
0.0586124919,
-0.1351986974,
0.2164726257,
-0.3170538545,
-0.3035809696,
-0.295327425,
0.3783074915,
-0.1633472592,
-0.1004699171,
-0.0179958325,
0.3528320491,
-0.0808839649,
0.1908667237,
0.3830771446,
0.3397630155,
-0.2224693745,
-0.1805755198,
-0.3251308501,
-0.1658746153,
-0.2335847467,
0.0170449726,
0.2264355123,
0.1227661073,
0.2665673494,
-0.1184480935,
0.0159027521,
-0.4890857637,
-0.2099978626,
0.4201817811,
-0.0344736315,
0.0625679418,
0.2083222121,
0.0580508001,
-0.7962209582,
-0.0000909646,
0.075833112,
-0.5537881255,
-0.2558654547,
-0.1597561687,
0.1086100563,
0.0087948674,
-0.205442965,
0.1148361266,
-0.4072744548,
-0.3363670111,
0.437892437,
0.0404327251,
0.2076619565,
-0.301160872,
0.092811197,
0.15405415,
-0.0330746137,
-0.2489912659,
0.1288289577,
-0.5100076199,
-0.0225220937,
-0.4240022302,
-0.3663930595,
0.0597418733,
0.1786955148,
0.0822688341,
0.2870673239,
-0.2168940753,
-0.2206921279,
0.0196218919,
-0.1551412046,
0.1982098073,
0.1966359764,
0.5560917258,
-0.2582685351,
0.1138669476,
0.0125355162,
-0.0091436589,
0.0828745216,
0.0091216723,
0.0329652652,
0.3433299065,
0.1300074607,
-0.0158588942,
0.7973926663,
-0.0741804019,
0.07281629,
-0.1025689021,
-0.12843813,
0.2782171071,
-0.1638893634,
0.0173639245,
0.4576422274,
0.1414342672,
-0.3600633442,
0.0164702479,
0.235842064,
0.0456861109,
-0.2341412306,
-0.3557845056,
-0.0880044103,
-0.036545001,
-0.1356155872,
-0.0463117883,
0.1652999371,
-0.1509041637,
0.1746187806,
0.100149624,
0.0543485209,
0.2127903998,
0.2468183339,
0.2273703218,
0.2215754241,
-0.1988703907,
0.204654187,
-0.4602738619,
0.1095661446,
-0.257612884,
-0.0133428387,
-0.3338284492,
-0.1322167814,
-0.0141463699,
-0.1376371533,
0.7230762839,
-0.3389848471,
-0.2621297836,
0.0545621999,
-0.3302977383,
-0.178172648,
-0.2556026578,
-0.1431460828,
0.0982778445,
0.2242470384,
0.3155582845,
0.1999568045,
-0.2803321481,
0.0975509435,
-0.0491104983,
0.1015605181,
0.0088231834,
0.089422971,
-0.1612181813,
-0.0853910968,
0.0859623253,
0.0370442607,
-0.117759794,
-0.2781383693,
0.1649896652,
0.008270395,
0.0751130432,
0.2309518009,
0.0013341653,
0.1580347717,
-0.1394094527,
-0.0957106054,
0.3423471153,
0.5169060826,
-0.0716210008,
0.133020252,
-0.0208777115,
0.1498575509,
0.4877235293,
0.0558790639,
0.266466707,
0.529610157,
-0.2160331756,
-0.1808892637,
0.0472263806,
-0.0519787185,
-0.2359546423,
0.0720975846,
-0.141836524,
0.0448876135,
-0.1412515342,
-0.0976257101,
0.4548662007,
0.4906438589,
-0.2670264244,
0.5127565861,
0.4088799357,
-0.1208226681,
0.1734757721,
0.013336231,
1.0554236174,
0.0016572424,
0.1177984923,
0.4885129631,
-0.1430190504,
0.5475767255,
-0.5305337906,
0.1182216704,
-0.3342902064,
-0.3852111101,
-0.1246420071,
-0.1634066403,
0.3275979161,
0.12424732,
-0.111297451,
0.2440289557,
-0.0172484703,
0.4491386414,
-0.2483259439,
0.1307477504,
-0.1545080841,
-0.1395362616,
-0.3024853766,
0.0793382004,
0.1973286569,
0.2672304511,
-0.2252736986,
-0.2027402073,
-0.1872765124,
-0.0034635875,
-0.3674547672,
0.1607038975,
-0.2660143375,
-0.2253268063,
0.2754976153,
-0.6139960885,
0.3639707267,
0.1783308387,
0.5937721133,
0.0112059908,
-0.4948187768,
0.2625652254,
0.0412664749,
0.0233648811,
0.0621085688,
-0.1079568565,
0.0566593222,
-0.1893241704,
0.0783523843,
0.0312812664,
0.023215916,
-0.073332645,
-0.0285961498,
-0.1311839372,
0.1109094992,
0.1184466928,
0.0129072843,
0.2325346619,
0.0766577646,
0.0967893228,
0.0373426676,
-0.110859178,
-0.0279592983,
-0.1504765898,
-0.0062421695,
0.3060943484,
-0.1080934033,
0.3110363781,
0.0753175467,
-0.5972084999,
0.0476560704,
0.3871473372,
-0.0092670433,
-0.2398850918,
0.0244052336,
0.5963466763,
-0.2447292954,
0.0229677241,
-0.2787952125,
-0.2756192386,
0.3374157548,
0.0833800435,
0.2540740371,
0.1235675439,
-0.1175527349,
0.1041909233,
-0.1384351552,
0.2461556643,
-0.0251328479,
0.0075643654,
-0.1641467959,
0.0277094077,
0.3490950465,
-0.3043750823,
-0.2110622525,
-0.0164433252,
-0.0269932486,
-0.2115585655,
0.4576095343,
0.2009391785,
0.1570960134,
-0.1562626511,
-0.0969046652,
0.0014306734,
-0.209106788,
-0.0618014485,
0.045136258,
0.1672241241,
0.0721901506,
-0.3176054358,
0.4395861924,
-0.0148166139,
-0.4041312635,
-0.1516282856,
0.1660757214,
0.1654159129,
-0.0450250134,
-0.1144682989,
-0.0547498874,
0.385751158,
-0.0112837926,
0.0029516828,
0.3871545494,
0.2254851013,
-0.0508905612,
0.0972597525,
0.328014493,
-0.1559068114,
0.0257742573,
0.1994374394,
0.0737902448,
0.0673021749,
0.1660429984,
-0.1132618338,
-0.0023468903,
-0.1303624064,
0.5203136206,
-0.1079601645,
-0.1523619592,
-0.0858543143,
0.5089148283,
0.0968808308,
-0.0511810631,
-0.0613839962,
0.5012267828,
0.2788023353,
-0.0215616822,
0.1282042265,
0.3890689015,
0.0611627698,
-0.289352566,
0.0949901044,
0.3582287133,
-0.1721314192,
0.2224831581,
0.02660737,
0.0430504307,
0.1875683814,
-0.1934006363,
0.039086923,
0.1262450218,
0.4716624022,
-0.1522824019,
0.3054493368,
0.1241916269,
0.2441394627,
0.3796722591,
-0.361520648,
-0.1002427861,
-0.0757726952,
0.0501618125,
0.0719821081,
-0.2617413998,
0.1345464587,
-0.2365345508,
-0.5163173079,
-0.3318723142,
0.3266516626,
-0.0773198754,
0.094966881,
-0.4300446808,
-0.1562929451,
-0.1127734259,
0.1372813582,
-0.0433886722,
-0.0536213294,
0.4022265375,
-0.0932581946,
0.3207629919,
-0.0274504423,
0.2587761879,
-0.0812923089,
0.2836807072,
-0.0014641557,
0.2012595683,
-0.0261023268,
-0.1364034861,
-0.1138671041,
0.2616128922,
0.2247044742,
0.1011151746,
0.0732353851,
-0.0518711954,
-0.1911330968,
0.2726093829,
0.130059436,
0.1860206276,
-0.0665593967,
0.0075511644,
0.0879278407,
0.0265276898,
-0.0052121934,
0.2739984095,
0.0494310148,
0.008194956,
-0.3530942202,
0.2339314818,
-0.2490141541,
0.0039736088,
-0.1353859603,
0.0845594555,
-0.3766196668,
0.0934635326,
0.3412465453,
0.3684312403,
0.0813929215,
-0.0443529636,
0.0228582583,
-0.022698123,
0.4235722721,
0.3718879223,
0.5538845658,
-0.1474138051,
-0.4206012487,
-0.3358656168,
-0.089187786,
0.0809984803,
0.1617309153,
-0.1413478553,
0.0174536817,
0.2189963758,
0.1168736741,
-0.1587518156,
0.054156933,
-0.2116027474,
0.1564370096,
-0.0711433142,
0.0294139162,
-0.323794812,
0.1154670715,
0.0720892325,
-0.1201972067,
0.2249583751,
-0.1654520631,
-0.1470863372,
0.1159337908,
-0.1225320399,
0.0044540893,
-0.4958155453,
0.024673041,
-0.0418885797,
0.2235883176,
0.0366985314,
-0.110981144,
-0.1840112805,
0.0573642626,
-0.3844521344,
0.0069518844,
-0.2657737136,
0.1360104978,
-0.3506760597,
0.0819670558,
-0.2572062314,
0.0514892079,
0.1000328735,
0.3314543664,
-0.456594646,
-0.0936172828,
-0.1509471834,
0.0737446025,
0.3138282299,
0.2484238893,
-0.0530745499,
-0.0278217122,
-0.5111494064,
0.2181858122,
0.503485322,
-0.8420352936,
-0.0022266067,
-0.3200293779,
0.09605176,
0.464060545,
-0.1636676639,
-0.430975467,
-0.1037837788,
-0.0181503687,
-0.0661021322,
0.3196086287,
0.1118425727,
-0.2095418274,
-0.0933536962,
-0.140607059,
-0.3227353096,
-0.0745261237,
-0.2794686258,
-0.0044081467,
-0.1557659507
] |
https://github.com/huggingface/datasets/issues/919 | wrong length with datasets | Also, I cannot first convert it to torch format, since huggingface seq2seq_trainer codes process the datasets afterwards during datacollector function to make it optimize for TPUs. | Hi
I have a MRPC dataset which I convert it to seq2seq format, then this is of this format:
`Dataset(features: {'src_texts': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 10)
`
I feed it to a dataloader:
```
dataloader = DataLoader(
train_dataset,
batch_size=self.args.train_batch_size,
sampler=train_sampler,
collate_fn=self.data_collator,
drop_last=self.args.dataloader_drop_last,
num_workers=self.args.dataloader_num_workers,
)
```
now if I type len(dataloader) this is 1, which is wrong, and this needs to be 10. could you assist me please? thanks
| 26 | wrong length with datasets
Hi
I have a MRPC dataset which I convert it to seq2seq format, then this is of this format:
`Dataset(features: {'src_texts': Value(dtype='string', id=None), 'tgt_texts': Value(dtype='string', id=None)}, num_rows: 10)
`
I feed it to a dataloader:
```
dataloader = DataLoader(
train_dataset,
batch_size=self.args.train_batch_size,
sampler=train_sampler,
collate_fn=self.data_collator,
drop_last=self.args.dataloader_drop_last,
num_workers=self.args.dataloader_num_workers,
)
```
now if I type len(dataloader) this is 1, which is wrong, and this needs to be 10. could you assist me please? thanks
Also, I cannot first convert it to torch format, since huggingface seq2seq_trainer codes process the datasets afterwards during datacollector function to make it optimize for TPUs. | [
-0.0898994133,
-0.3192078769,
-0.0323941521,
0.6070462465,
0.2765781581,
-0.0336131081,
0.4790801406,
0.07050246,
-0.5328692794,
0.2078111172,
0.1901033223,
-0.1201387122,
0.0139269419,
0.3443427086,
0.0675096288,
-0.2707992196,
0.0643084198,
0.1787357181,
-0.101614818,
-0.0089107947,
-0.2274375111,
0.1709844172,
-0.2598227561,
-0.0706525818,
-0.3126020432,
-0.073007524,
-0.1010054871,
-0.033303991,
-0.3462433517,
-0.3525759876,
0.0661083683,
-0.2506404221,
0.3544395864,
0.6040885448,
-0.0001265039,
-0.0722670406,
0.1824873686,
-0.1107040569,
-0.0911105946,
0.0975997299,
-0.2339131832,
-0.0103232469,
0.3017584682,
-0.2914408147,
-0.0674706846,
0.3816040456,
-0.3033183217,
-0.1190712079,
0.1697498858,
0.4160889387,
0.1491682678,
0.2589475513,
-0.1338306963,
-0.2041471452,
0.2666988373,
0.4192836285,
0.1898332834,
-0.1462620646,
0.0996486321,
0.4892362356,
-0.0897346959,
0.1494980603,
0.1966224611,
-0.1416448206,
0.1134944037,
-0.0658493787,
0.0303078834,
-0.0960001647,
0.3137546778,
0.3264621198,
0.6222060323,
-0.1899977922,
-0.0739828721,
-0.0441378988,
0.0826852843,
-0.5755810142,
0.1940186769,
0.2010028213,
0.067769818,
0.0129149603,
-0.6586114168,
0.0756472051,
0.0332968459,
0.114657253,
-0.3273516297,
-0.1786706448,
-0.2108797133,
0.1678254753,
-0.0765728205,
-0.3343459666,
0.2114919722,
0.1300550252,
0.1223514453,
0.1850350648,
-0.3168518543,
0.0040675192,
-0.3697817624,
0.3031201065,
0.1807914525,
-0.0312010385,
-0.0071850792,
-0.2769785821,
0.1659172326,
-0.1649955362,
-0.0832641199,
0.2409603596,
0.14715904,
0.0716319606,
-0.0593911,
-0.192050457,
-0.0746438205,
-0.1838715822,
-0.09415254,
-0.4005026519,
0.1571926326,
-0.0017076464,
-0.0728075281,
-0.1700953692,
-0.1529699862,
0.0509628095,
-0.0571982339,
0.0362971909,
0.1326601058,
0.1279756725,
-0.0890795588,
0.2195452154,
0.0168387368,
0.1168327481,
-0.3445404172,
-0.3399667442,
-0.2275849581,
-0.0942783728,
-0.203799352,
-0.0455155373,
0.0486441888,
-0.3687188923,
0.164327234,
-0.1625646204,
0.0464205183,
-0.2440049797,
-0.3857925534,
-0.0361461975,
0.0173318479,
-0.03011344,
-0.074030064,
0.1003652588,
0.0298842061,
-0.068250306,
-0.0919887424,
0.1005263701,
-0.7326492071,
0.0935458764,
-0.1725937426,
0.0720309168,
0.0175447855,
0.199268356,
-0.195620954,
0.1166815385,
0.5712838173,
-0.0981904566,
0.252555877,
-0.3171158731,
-0.1953942925,
-0.0876752287,
-0.0140132802,
0.0605666861,
-0.5668565631,
-0.299415946,
0.2563399971,
0.0627232715,
0.2786991894,
0.5221868753,
-0.0936205164,
0.0594691448,
-0.2201631963,
0.0260046441,
0.5655906796,
-0.1227827072,
-0.1180532724,
0.4563289583,
-0.1290665269,
-0.4169596434,
0.1042517424,
0.069957152,
0.4696897864,
0.1280136406,
0.2782407403,
-0.0381075069,
-0.0918010473,
0.0789654553,
-0.2886632383,
-0.179952845,
0.4170443714,
-0.0638005286,
0.0736436248,
0.024780076,
0.1782242954,
0.0828144774,
0.3927260935,
0.1072316542,
0.2317764312,
0.3984633088,
-0.1945097893,
-0.2083270848,
0.0948493555,
0.0719911978,
-0.2795375586,
-0.1646471471,
-0.1662301868,
0.1573645473,
0.3653209805,
0.1342683434,
-0.2184963822,
-0.0270043034,
0.0401605628,
-0.0757088363,
-0.047881972,
-0.2674985826,
0.133849442,
-0.168636322,
0.3453322947,
0.3576397002,
0.0782867819,
0.4306088984,
-0.5524818897,
0.2305596173,
0.1218418553,
-0.1312156469,
0.0046946076,
0.1191500053,
0.4328714013,
0.1964815706,
-0.284879595,
0.4029537141,
0.0604497828,
0.0718331262,
-0.0674023926,
0.0387815796,
0.392415911,
-0.3995310664,
0.3362595439,
0.0354070887,
0.1262162924,
-0.0613594688,
-0.4830280244,
0.189939186,
-0.0230089687,
0.3436664641,
-0.2495260239,
-0.026423743,
-0.0104308808,
0.2588882148,
-0.3581844568,
0.1657912433,
0.2824554443,
0.4498917162,
0.3601807356,
0.686760366,
-0.2321610749,
0.0525798425,
0.4373119473,
-0.2694605589,
-0.3443400264,
0.3847821951,
-0.2486212105,
-0.149791792,
0.1073854566,
-0.4560208321,
0.189721033,
0.1604328752,
0.0731343701,
-0.258939743,
0.0459695831,
-0.2219900936,
-0.0669613704,
0.000733979,
0.1374102384,
-0.0228541326,
0.3271224797,
-0.2202791125,
0.0269254148,
0.0608230308,
-0.0663886815,
0.2048643082,
-0.4285590649,
0.1715996712,
-0.4512307346,
-0.2724798322,
-0.3519098461,
-0.002168959,
-0.5320199728,
-0.0893992558,
-0.0661172867,
-0.3157936931,
0.3861307204,
0.0175727103,
-0.1127117127,
0.1099760905,
0.4287567437,
0.0776000842,
0.0759256259,
0.3114212453,
-0.2205257714,
-0.0305124335,
-0.0619392134,
-0.0093867863,
0.0510533154,
-0.2923031747,
0.0519285202,
-0.1027173027,
-0.4211385548,
0.0676885322,
0.0418813564,
0.1687708646,
0.3833268881,
0.0160386581,
0.0991702825,
0.0103294943,
0.0505601875,
0.1298251003,
-0.1057746038,
0.310292542,
-0.1964637339,
-0.0786108524,
0.0432804413,
-0.0585187301,
-0.2840176225,
0.0792289972,
0.4483124912,
0.2354336232,
0.1060387194,
0.0582650267,
0.169580251,
-0.4198345244,
0.1814239621,
0.1239700839,
-0.2222098857,
-0.8714920878,
0.1374485046,
-0.0258042291,
-0.1211957633,
-0.138343662,
-0.0529832058,
0.2503458858,
0.2581637502,
-0.2691625655,
0.1381452531,
-0.2374103516,
-0.1231586263,
-0.0599110685,
0.160579592,
0.3572884202,
-0.2368606478,
0.1117627397,
-0.018145537,
-0.2933221459,
0.3579674363,
0.0900376737,
0.4553971589,
-0.0026251164,
0.4152846634,
-0.0846628621,
0.2809687257,
0.3777346909,
-0.092954345,
0.0658729523,
-0.2463391423,
0.1668541431,
-0.1257378906,
0.0782257468,
0.4688602388,
0.0359247476,
-0.2177510858,
0.4141392708,
0.0334048346,
-0.1037971303,
0.151907295,
0.0047098869,
-0.4924769104,
-0.1021351591,
0.0319732018,
0.1428107619,
0.0719536543,
-0.05393143,
0.2238915414,
-0.268148154,
-0.2980817556,
-0.3863810003,
0.0775976181,
-0.1421799511,
0.3162002861,
-0.4841612577,
-0.1177312583,
-0.5206752419,
0.1896813065,
0.1766361892,
0.242706582,
0.2643309534,
-0.1345771104,
0.1728813201,
0.1135366634,
0.6000971794,
0.2969931662,
-0.2703235745,
0.1222209856,
-0.0502364859,
-0.2922779322,
-0.1250488311,
-0.0280729998,
0.2035723478,
0.0180918127,
0.3437695801,
-0.3671683967,
-0.1061791256,
0.1143214107,
0.0440745167,
-0.3028903604,
-0.2690802217,
0.0075234077,
0.0636343434,
0.1795833558,
-0.0644516498,
0.0369859263,
0.464184612,
-0.2313702404,
-0.2021681368,
-0.1667036712,
-0.3244054317,
0.2900684476,
-0.0469801687,
0.3544561863,
-0.0482901074,
0.1201770008,
0.0185981151,
0.3662228584,
0.4305936098,
0.2056293488,
-0.3145063818,
0.0388345495,
0.3624871671,
-0.3927771747,
0.6368681788,
0.4278538823,
-0.2170659751,
0.1135633662,
-0.1979177147,
0.6306791306,
-0.3744518757,
0.109483175,
0.2282313108,
0.0428594314,
-0.5182515383,
-0.1454638392,
0.0448169895,
0.1073277965,
0.1506494731,
-0.3658348918,
0.032211747,
-0.3529892862,
-0.1641677171,
0.1559334546,
1.1218010187,
-0.1575753689,
0.3598318398,
-0.0789337382,
0.1159817055,
0.3529956043,
-0.4284676015,
-0.0613411441,
-0.4853713512,
-0.2979167402,
-0.0348558873,
-0.1774213761,
-0.1271034926,
0.2593649924,
-0.2782276869,
0.532550931,
-0.158253938,
-0.143503949,
-0.256665647,
0.1430368423,
0.1784838587,
-0.4158130586,
-0.3069463968,
0.0833542198,
-0.1447822899,
0.1517046988,
-0.071432434,
0.0871072859,
0.0323588029,
-0.3796267509,
-0.0573394857,
-0.2712670267,
-0.5653036833,
-0.3887810409,
0.3015838861,
-0.1744167954,
-0.0060835565,
0.2656550109,
0.1588514447,
0.3715471327,
0.0437521115,
-0.0849589333,
-0.0386394821,
0.3667514324,
0.0405416563,
0.167837888,
0.0041149235,
0.1074031144,
0.1929983795,
0.1859679371,
-0.0139781674,
0.0839179233,
0.0472829193,
-0.3048877716,
-0.0860040784,
-0.630148828,
0.0714236274,
-0.2834019065,
0.139989242,
-0.0646583736,
-0.003421112,
0.3126317561,
-0.1089057475,
0.2990911603,
0.2489948273,
-0.3930515647,
-0.2548384666,
0.3060931265,
0.225319311,
-0.1371711195,
0.1721097678,
0.2746470571,
-0.1748772711,
-0.0772932842,
0.4727818072,
0.2911942005,
-0.3504842818,
-0.0853231624,
-0.0691032261,
0.2003544867,
-0.0938854814,
0.3242396116,
0.1417703629,
0.1458903849,
0.0826110989,
-0.0999901295,
-0.4517861605,
0.045084767,
0.1475599259,
0.3111536801,
0.1525838673,
0.2891602516,
0.0875791535,
0.0428051911,
-0.1588154286,
0.0802423432,
-0.1718360484,
0.2328821272,
0.0363062546,
-0.3175067306,
0.009058591,
0.1880316287,
0.0019686576,
0.2494702935,
0.126484558,
-0.1226277351,
-0.2269303054,
0.1617533714,
0.058963608,
-0.1850126833,
0.1396538615,
-0.0314573199,
-0.0331322215,
-0.2149240822,
0.0110800797,
0.1028548852,
0.3433351815,
0.1548292935,
0.4931419492,
0.0259573571,
-0.0572645143,
0.5009925961,
0.4072124064,
0.2850823998,
-0.0454070978,
0.2998176515,
-0.0715337768,
-0.022238167,
0.0152966129,
0.4587605298,
0.161438033,
-0.0692024305,
-0.1355178654,
-0.2911245227,
0.0823561549,
0.3094451427,
0.3856017888,
0.3570583463,
0.0173755791,
0.1095138714,
0.0526954755,
0.0544136725,
-0.0426372364,
0.0549728684,
-0.0183834173,
0.0882372633,
-0.2388877273,
0.5035162568,
-0.1174184605,
0.2689978182,
0.0345472507,
-0.0692776442,
0.2958171964,
0.0733756498,
-0.158529073,
0.2268846184,
0.0146327894,
0.1815701723,
0.3980833292,
0.2304408252,
-0.0904002041,
0.2487926483,
-0.1362535805,
0.2077599168,
-0.1028729677,
0.2748849094,
0.0996890515,
-0.174197495,
-0.4117305279,
0.3064742982,
0.0449562557,
-0.334857136,
-0.2127370983,
0.656185329,
0.3355272412,
-0.4087520242,
-0.3752571642,
0.3956864774,
-0.211883083,
-0.3872316778,
-0.1680448204,
-0.1247531995,
-0.4670372009,
-0.0503806807,
-0.328350395,
-0.1068388894,
0.279012531,
0.1475427449,
0.1368356496,
-0.412632823,
-0.3528133929,
0.1106697246,
-0.2719160318,
-0.2629650533,
0.417481333,
-0.0280831009,
0.0383490622,
0.5048878193,
-0.1395745873,
0.2498666048,
0.0499686375,
0.1436409205,
-0.2169837952,
0.073812291,
-0.0510925353,
0.0659633726,
0.0085652461,
0.1284970939,
0.2257042229,
0.2448484302,
0.0181404948,
-0.0416094139,
0.1521879137,
-0.255663693,
0.0173907336,
-0.5372475386,
-0.0638975725,
-0.1842152476,
0.1272341311,
-0.4959474504,
-0.0671940297,
-0.5162887573,
0.229467988,
0.234726131,
-0.0822367072,
0.3013239205,
0.1103516072,
0.0058020479,
-0.1481139213,
0.1696172208,
0.2570332289,
0.1164729446,
-0.4964764118,
-0.1613907516,
-0.2868891954,
0.0126977917,
-0.0468794629,
-0.0013178538,
0.0494356677,
0.2758057117,
0.0087070651,
-0.0306385718,
0.1666121483,
0.164487049,
-0.1197654232,
0.2888926566,
0.0099752797,
-0.091559723,
-0.037565887,
-0.031886775,
0.0673325285,
-0.0662943199,
0.3562544882,
0.075986132,
-0.1119589731,
-0.338055402,
0.2135429978,
-0.062508665,
0.1419488341,
-0.0070468681,
0.1377168894,
0.196476534,
0.1568264663,
0.1664333642,
-0.0800621957,
-0.1184218973,
-0.2754454017,
0.1171435043,
-0.1821976751,
0.2555267811,
-0.1760881245,
0.199950859,
-0.1618425697,
0.1166884229,
0.135652855,
-0.0746066868,
-0.3712223172,
0.090590775,
-0.2492760122,
0.0067340033,
0.3864868879,
0.1338510066,
0.1362560242,
0.2491206229,
0.1391143948,
-0.3154528737,
0.4479085505,
-0.4412989616,
0.073399201,
-0.2331732213,
-0.1476222873,
0.4630676508,
-0.0930573046,
-0.2554318011,
0.0355447866,
0.4829044342,
-0.1332328618,
-0.0240435842,
0.1865383089,
-0.2772262096,
0.0304165781,
-0.3819781244,
0.150335893,
0.1797605008,
0.011630225,
-0.0862033293,
-0.4198217392
] |
https://github.com/huggingface/datasets/issues/915 | Shall we change the hashing to encoding to reduce potential replicated cache files? | This is an interesting idea !
Do you have ideas about how to approach the decoding and the normalization ? | Hi there. For now, we are using `xxhash` to hash the transformations to fingerprint and we will save a copy of the processed dataset to disk if there is a new hash value. However, there are some transformations that are idempotent or commutative to each other. I think that encoding the transformation chain as the fingerprint may help in those cases, for example, use `base64.urlsafe_b64encode`. In this way, before we want to save a new copy, we can decode the transformation chain and normalize it to prevent omit potential reuse. As the main targets of this project are the really large datasets that cannot be loaded entirely in memory, I believe it would save a lot of time if we can avoid some write.
If you have interest in this, I'd love to help :). | 20 | Shall we change the hashing to encoding to reduce potential replicated cache files?
Hi there. For now, we are using `xxhash` to hash the transformations to fingerprint and we will save a copy of the processed dataset to disk if there is a new hash value. However, there are some transformations that are idempotent or commutative to each other. I think that encoding the transformation chain as the fingerprint may help in those cases, for example, use `base64.urlsafe_b64encode`. In this way, before we want to save a new copy, we can decode the transformation chain and normalize it to prevent omit potential reuse. As the main targets of this project are the really large datasets that cannot be loaded entirely in memory, I believe it would save a lot of time if we can avoid some write.
If you have interest in this, I'd love to help :).
This is an interesting idea !
Do you have ideas about how to approach the decoding and the normalization ? | [
0.0579879247,
0.1647049934,
-0.0206481833,
-0.0999957323,
0.2292942852,
-0.0559270233,
0.2166691571,
0.4347034693,
-0.2473880649,
-0.1617706418,
0.0097894771,
-0.0496321842,
-0.1669542789,
0.2896748483,
0.209227711,
0.1215444058,
0.1424437612,
0.1846171618,
-0.4095785618,
-0.0677633211,
-0.2962713242,
-0.0467053391,
0.2424419969,
-0.1144288778,
-0.3984662294,
-0.0129984943,
-0.2188078761,
0.2230953425,
0.0136245526,
-0.1821579635,
-0.3285970092,
0.3551392257,
0.1186942384,
0.0364235044,
-0.0001102374,
0.0145408176,
0.1038493738,
-0.0967332944,
0.1972917467,
0.2823076844,
-0.44159621,
-0.0208725799,
-0.3179779351,
-0.2204542756,
0.2632788122,
-0.1618581712,
0.2451176941,
-0.1386905313,
0.3337542713,
-0.2657234967,
0.2161936164,
-0.4380465448,
-0.2725082636,
0.3931819499,
0.1750296801,
0.1780483425,
-0.0581744574,
-0.0528199635,
0.1193541661,
0.3262678087,
-0.3176145852,
0.5141986012,
0.16873537,
-0.3415006399,
0.1522489637,
0.000400881,
0.3446983099,
-0.0906698331,
0.2288549393,
0.1792104542,
0.1403949857,
-0.2407236993,
-0.2909703851,
0.0616346709,
-0.2266465575,
-0.0471751466,
0.3117387295,
0.0513948575,
0.1743303388,
0.2972970605,
-0.8323916793,
-0.3791379333,
-0.0001250009,
-0.2025852054,
0.1313336343,
-0.1722706258,
0.0970594808,
-0.121142529,
0.2808828354,
-0.0671152696,
0.3315513134,
0.1234554723,
-0.0365064442,
-0.2305437326,
0.0620261431,
-0.1533106565,
-0.4224919677,
0.5188220739,
0.2395400256,
0.3001601398,
0.1627905518,
0.308688283,
0.1106369048,
-0.0680961609,
-0.0554916188,
0.3370960057,
-0.1553495824,
-0.0187082905,
0.2099352777,
-0.2234663963,
-0.3734848499,
0.1732572466,
-0.0504437983,
-0.2014850229,
0.3005167246,
0.3068947792,
-0.1599648297,
-0.2409576923,
0.556063056,
-0.1805861741,
-0.1228703037,
0.120452337,
0.1737582386,
0.0580149405,
0.0289725699,
0.3135021031,
0.0868719816,
-0.1348689497,
-0.0668145493,
-0.0665933862,
-0.1691817045,
-0.0237781797,
-0.3316342533,
0.2602968812,
-0.0459178686,
-0.2559428215,
0.0559979305,
-0.0472613834,
0.2711277604,
0.1667014956,
0.1988698542,
0.1367658228,
0.5526273847,
0.0959472731,
-0.1163152456,
-0.1382710487,
-0.1938533485,
0.0865324065,
-0.2359353602,
0.115888752,
-0.1936689019,
-0.2252525687,
0.3494837582,
0.1478483081,
-0.2709447742,
-0.0909557864,
-0.0795634836,
0.0610847957,
0.201108858,
-0.0352455154,
0.0708694905,
0.0607462265,
0.0380199328,
-0.337944299,
-0.0195823032,
0.2535013258,
0.0997975245,
-0.0000550888,
0.3916781247,
0.1493161023,
0.193778798,
0.4858621359,
-0.1002654657,
-0.1992476732,
-0.0508005284,
0.1779377609,
0.0069968728,
-0.3228586316,
-0.1532533169,
0.4586924016,
0.0817383677,
-0.0321363211,
0.2724074423,
0.2414173931,
0.1365740448,
-0.5183569789,
-0.3733368218,
0.0848890916,
-0.2265597582,
0.1455520093,
-0.4432270527,
-0.543217659,
0.2205471545,
-0.116850242,
0.1406555772,
0.0731805712,
0.0739094242,
0.092890054,
-0.025961563,
-0.4790360928,
0.1978312284,
-0.0261197817,
0.0933566764,
-0.1285910308,
0.1191431284,
0.4896506071,
0.0705785081,
-0.0535094924,
-0.4647885561,
-0.3019528091,
-0.2511304915,
-0.3260700405,
0.3761865497,
-0.4562109411,
-0.1690854728,
0.1202603802,
0.1046999693,
-0.0504512079,
0.0656179786,
-0.2368855327,
-0.1092493534,
0.2331489474,
-0.0064953538,
-0.1074652001,
-0.430880338,
-0.0559861436,
0.0417531803,
0.2098348141,
-0.0880726799,
0.1034949794,
0.0917726085,
-0.2685268819,
0.1405607313,
0.2021124214,
-0.2694948316,
0.4485937655,
0.4598624706,
0.7957428098,
0.2327310592,
-0.3012221456,
0.6026002169,
-0.0764035285,
-0.1474382728,
-0.0908513218,
0.1016918421,
0.3585920036,
-0.2511358559,
-0.0873587206,
0.0913749859,
-0.1395510584,
0.107802242,
-0.4175284207,
-0.3176831305,
-0.2821999788,
-0.1522038728,
-0.1216209754,
0.1933118701,
0.3982316852,
-0.0867921337,
0.2805510461,
0.2394745946,
-0.1773471683,
0.0103853848,
0.2432071716,
0.0836630911,
-0.4002475142,
-0.2816603482,
0.2078523785,
0.0816145539,
0.2223658711,
0.2411378771,
0.2849276364,
0.1991672367,
-0.1477100551,
0.1926002055,
-0.0074550915,
-0.0329274349,
-0.0549310781,
-0.1868717372,
-0.0027007291,
-0.2573950291,
-0.0729505196,
0.1149843782,
-0.1399638057,
-0.2359176725,
0.0989860967,
-0.4986061752,
-0.0223360434,
-0.1428444535,
-0.1923797429,
-0.0621933639,
-0.1301120222,
0.2478782833,
-0.1797425002,
-0.2955241501,
0.2282322049,
-0.121720463,
0.2037391663,
-0.0943713263,
0.0076095611,
-0.2146126181,
-0.2665742934,
-0.0174305029,
0.0581854284,
0.3697448075,
-0.2563673556,
0.1824270487,
-0.6005428433,
0.2252451181,
-0.4703187943,
-0.5034911036,
0.0603682548,
-0.103834331,
-0.1646051556,
0.1006129235,
-0.1556524187,
-0.372351706,
-0.1416885108,
-0.1298090369,
-0.2227980345,
-0.1721683145,
0.1530263871,
-0.0390136205,
-0.1300100684,
0.0559990183,
-0.1785854101,
-0.1654716134,
-0.0548215844,
0.1365208179,
-0.1140011847,
0.2393435687,
0.202237308,
-0.0854619443,
-0.1993618459,
-0.2033473104,
-0.1849958152,
-0.302269727,
-0.9126805663,
0.4630579352,
-0.2917786539,
-0.1275366247,
-0.0220047142,
-0.0933089554,
0.0496544428,
0.5415789485,
-0.2904461026,
-0.4510398805,
0.08010827,
0.015457782,
0.1255818009,
0.0304481443,
0.1202544123,
0.2174683809,
-0.1953012347,
-0.038136024,
0.3975358903,
0.3179325759,
0.0363827012,
0.3993935287,
0.2605867982,
0.023694884,
0.3085049093,
0.5524953604,
0.274290204,
-0.1558652222,
0.0450661294,
0.2183422893,
0.162577495,
0.1071577743,
-0.0146387443,
-0.0329931416,
-0.1554431468,
-0.0744493902,
0.4130130708,
0.1230946556,
-0.2062538117,
0.0986751094,
-0.1469075084,
-0.3558011651,
-0.4585825801,
0.4402855635,
-0.2552867532,
0.2209805697,
-0.1511287391,
-0.2410651296,
-0.1631074399,
-0.0763138756,
0.5368347168,
0.2171965688,
0.1238925308,
0.1359715313,
-0.0264737364,
-0.122263141,
-0.2475919127,
0.2743959427,
0.3565447927,
0.1777853072,
-0.0094025871,
-0.1717473716,
0.038613677,
-0.0493147522,
0.4291732907,
-0.2685380876,
-0.0485619828,
-0.1228232905,
-0.5765994787,
0.5129475594,
0.2474609911,
0.0935681388,
0.0458177514,
0.3048228621,
0.1030103117,
-0.0661198199,
-0.059135329,
-0.1869181395,
0.2788240016,
-0.1313560158,
-0.0274042748,
0.12778157,
-0.3672361672,
-0.0058548651,
-0.0968870223,
0.0139896367,
-0.3605833054,
0.1340368092,
-0.2099430412,
-0.335718751,
-0.1878920496,
0.270770967,
0.1370663792,
0.0335737765,
0.0128291314,
0.1681178212,
0.2732581794,
0.2485527247,
0.1062947959,
0.3191766739,
0.0693295002,
0.0574343801,
-0.2655366957,
-0.1567778736,
-0.1749814004,
0.4416707456,
-0.1119564623,
-0.3950530291,
0.3257454336,
0.113864027,
-0.1574764997,
-0.201982379,
-0.3884447515,
0.0846865922,
-0.4554487169,
-0.169298023,
0.3722611368,
0.1436460912,
-0.2350662351,
-0.0437314585,
-0.0209400058,
-0.3833578825,
0.1587499678,
0.5202268958,
1.2037163973,
-0.1498464644,
0.1079218537,
-0.2164001614,
0.0236982387,
-0.2174623013,
-0.241535008,
-0.0166028086,
-0.2205499113,
-0.4065415561,
-0.2070000619,
0.0081876414,
0.1574706137,
0.1322929561,
-0.3657613099,
0.2342297733,
0.1607878059,
-0.2798333764,
0.0522434004,
0.2037739903,
-0.1822733879,
-0.1449739784,
0.1952239722,
0.1249396279,
0.1137798056,
-0.3169345856,
0.0910162479,
-0.4105034173,
-0.0143835554,
0.1019920856,
0.4724985361,
-0.0261833556,
-0.4855642319,
0.2704307437,
-0.195126757,
0.0226760563,
-0.0404840186,
-0.1540573388,
0.6115784645,
-0.007008065,
-0.1267044246,
0.0630143583,
0.3266373873,
0.3293952942,
-0.0012059034,
-0.2020393908,
0.4494643807,
0.0397717766,
0.1162982583,
-0.3359428644,
0.2951098979,
-0.3244665265,
-0.1815898418,
-0.2578527331,
-0.2425233722,
-0.0376977399,
0.3148888648,
0.1724091321,
-0.4297754765,
0.1186882779,
0.1001664177,
0.350325793,
-0.0267001335,
0.6805773973,
0.2537071109,
-0.1376312822,
0.0074451473,
0.224480167,
0.3333895504,
-0.0904201493,
0.079044044,
-0.3230106533,
-0.3410331309,
-0.1152855605,
0.2726309299,
-0.2552444637,
-0.2441884279,
0.1347504109,
-0.2213785052,
-0.1266431808,
-0.0676680356,
-0.0748292357,
0.200532794,
0.1958204508,
-0.1287344098,
0.0309504438,
-0.4009747803,
0.3730385005,
0.0043662707,
0.3889572024,
-0.0117387678,
0.075485602,
-0.1265765727,
0.283572942,
-0.3309338093,
0.1714204848,
-0.0394417495,
0.2735460103,
-0.2536270618,
-0.3610472977,
0.2120083272,
-0.1412415504,
0.0559566803,
0.1845549941,
-0.2429117262,
-0.1468963772,
-0.1379623562,
0.1421196014,
0.0925693214,
-0.1376427412,
-0.0097230365,
0.2268533558,
0.0682702959,
-0.0792324916,
0.078493908,
0.2135465592,
0.0107647171,
0.003171525,
0.0671273246,
-0.4323629439,
0.0211172961,
-0.0780687407,
0.1021715403,
0.1335616559,
-0.0566441715,
0.1140898466,
-0.1146938056,
-0.2190974057,
0.1725096852,
0.3052980304,
0.1749487817,
-0.066363506,
0.3501422703,
0.2496856749,
0.0175915938,
0.5870925188,
-0.0496080816,
-0.0747157633,
-0.1433602571,
-0.4321394563,
0.3590958416,
0.1659307182,
-0.1730496287,
-0.1153542176,
0.0590396896,
-0.1240813881,
-0.3018915951,
0.3146197796,
0.4946981966,
-0.2148972899,
0.1783945709,
-0.1635510772,
0.2595251203,
-0.4596236646,
0.0658152699,
0.1165570468,
-0.2677549124,
-0.0403198823,
0.1498769522,
0.3782489598,
-0.0656573027,
0.2406570464,
-0.2567144036,
0.3606833518,
0.074513793,
0.3942447305,
-0.1373747587,
0.0727258697,
-0.1543374062,
0.2562470436,
0.0385162979,
0.320994705,
0.2127823681,
0.3322632313,
0.3905768991,
-0.2104561627,
-0.0217796341,
0.6193830967,
0.0776276663,
-0.2505093217,
0.1396137774,
-0.0036262206,
-0.4405718148,
0.0695887432,
-0.0663808957,
-0.1549733579,
0.4601646364,
0.5837762952,
0.3065888584,
0.0159227513,
0.1993260235,
-0.1872242391,
0.5381705761,
-0.4364182949,
0.1084175333,
0.343672514,
-0.1181030646,
0.3846259713,
0.1986016035,
0.1219826117,
0.041189339,
-0.179573223,
0.3040750921,
-0.0543879308,
0.0911794975,
-0.1364305913,
0.1980257034,
0.0535163358,
-0.1056821272,
0.0543945804,
0.0945076421,
-0.0241561849,
0.0730997622,
-0.1337468624,
0.0583430529,
0.3379212916,
0.3805819452,
0.3612345159,
0.0051964186,
0.0338188298,
0.0447301529,
-0.3965480626,
-0.1949442327,
0.1841636896,
-0.4594890177,
0.0011477262,
0.088309519,
0.0899412259,
-0.0223616604,
0.5009444356,
0.3568812907,
-0.2505385876,
-0.3136980236,
0.1042908281,
0.0779214054,
0.0152802775,
0.2501472831,
0.0461637042,
-0.077408649,
0.1467866451,
-0.0443831757,
0.236786902,
-0.0869133025,
0.0266541541,
-0.059994787,
0.197240293,
-0.0571919009,
0.5674792528,
0.1685573012,
0.3000091314,
0.1052268222,
-0.2551063895,
0.3098328114,
0.2597006559,
0.1014341637,
0.1046235934,
-0.1309177428,
-0.098682791,
0.0510914586,
0.1953151375,
0.2842185795,
-0.0392185599,
-0.2065332085,
-0.0410738625,
0.0114776921,
-0.2477718741,
-0.0681465417,
0.1450375915,
0.3426806331,
-0.0684211552,
-0.1583844423,
-0.1008011103,
-0.0749193951,
0.1233978271,
-0.2849738598,
0.1807682514,
-0.2097044736,
0.2057800144,
-0.1874546409,
-0.0099785086,
0.0302264094,
0.5391848683,
-0.0342179649,
0.0706416517,
-0.1243444309,
-0.4154354036,
0.4183196127,
-0.4434712827,
-0.0425948501,
0.1918369085,
0.2244072407,
0.3125602305,
0.0835567117,
-0.4205693603,
-0.0332430862,
-0.1036077216,
-0.0892923474,
-0.0221998598,
0.1637200564,
-0.1072975323,
-0.2310144156,
-0.1094600856,
-0.2687179148,
-0.0031998022,
-0.0363404304,
-0.2746324241,
-0.3152402043
] |
https://github.com/huggingface/datasets/issues/915 | Shall we change the hashing to encoding to reduce potential replicated cache files? | @lhoestq
I think we first need to save the transformation chain to a list in `self._fingerprint`. Then we can
- decode all the current saved datasets to see if there is already one that is equivalent to the transformation we need now.
- or, calculate all the possible hash value of the current chain for comparison so that we could continue to use hashing.
If we find one, we can adjust the list in `self._fingerprint` to it.
As for the transformation reordering rules, we can just start with some manual rules, like two sort on the same column should merge to one, filter and select can change orders.
And for encoding and decoding, we can just manually specify `sort` is 0, `shuffling` is 2 and create a base-n number or use some general algorithm like `base64.urlsafe_b64encode`.
Because we are not doing lazy evaluation now, we may not be able to normalize the transformation to its minimal form. If we want to support that, we can provde a `Sequential` api and let user input a list or transformation, so that user would not use the intermediate datasets. This would look like tf.data.Dataset. | Hi there. For now, we are using `xxhash` to hash the transformations to fingerprint and we will save a copy of the processed dataset to disk if there is a new hash value. However, there are some transformations that are idempotent or commutative to each other. I think that encoding the transformation chain as the fingerprint may help in those cases, for example, use `base64.urlsafe_b64encode`. In this way, before we want to save a new copy, we can decode the transformation chain and normalize it to prevent omit potential reuse. As the main targets of this project are the really large datasets that cannot be loaded entirely in memory, I believe it would save a lot of time if we can avoid some write.
If you have interest in this, I'd love to help :). | 191 | Shall we change the hashing to encoding to reduce potential replicated cache files?
Hi there. For now, we are using `xxhash` to hash the transformations to fingerprint and we will save a copy of the processed dataset to disk if there is a new hash value. However, there are some transformations that are idempotent or commutative to each other. I think that encoding the transformation chain as the fingerprint may help in those cases, for example, use `base64.urlsafe_b64encode`. In this way, before we want to save a new copy, we can decode the transformation chain and normalize it to prevent omit potential reuse. As the main targets of this project are the really large datasets that cannot be loaded entirely in memory, I believe it would save a lot of time if we can avoid some write.
If you have interest in this, I'd love to help :).
@lhoestq
I think we first need to save the transformation chain to a list in `self._fingerprint`. Then we can
- decode all the current saved datasets to see if there is already one that is equivalent to the transformation we need now.
- or, calculate all the possible hash value of the current chain for comparison so that we could continue to use hashing.
If we find one, we can adjust the list in `self._fingerprint` to it.
As for the transformation reordering rules, we can just start with some manual rules, like two sort on the same column should merge to one, filter and select can change orders.
And for encoding and decoding, we can just manually specify `sort` is 0, `shuffling` is 2 and create a base-n number or use some general algorithm like `base64.urlsafe_b64encode`.
Because we are not doing lazy evaluation now, we may not be able to normalize the transformation to its minimal form. If we want to support that, we can provde a `Sequential` api and let user input a list or transformation, so that user would not use the intermediate datasets. This would look like tf.data.Dataset. | [
0.1285302937,
0.0863640457,
-0.0490874611,
-0.0772109181,
0.1253058016,
-0.0536653697,
0.2214978635,
0.4482249916,
-0.1249616519,
-0.040037632,
-0.1387324631,
0.0334733538,
-0.1281397045,
0.3592910171,
0.2445241362,
-0.0045850147,
-0.0214299187,
0.1100232005,
-0.4076028764,
-0.0112219974,
-0.2559683919,
-0.0132378079,
0.1368179917,
-0.0337849669,
-0.2687934041,
-0.080639407,
-0.1797392666,
0.1853825003,
0.1048367396,
-0.133493796,
-0.3031499386,
0.4466129541,
0.1472112834,
0.2794190049,
-0.0001038101,
0.0562619641,
-0.2488043159,
-0.138645649,
0.2129290104,
0.0744410902,
-0.2611120045,
0.0785088912,
-0.320386827,
-0.2040928304,
0.0010413632,
-0.2220728844,
0.1788086146,
-0.0459422246,
0.374322772,
-0.0652714297,
0.2467909455,
-0.201398477,
-0.1129855961,
0.33123523,
0.2261062413,
0.1098317504,
-0.1199189723,
-0.188059032,
0.1244987994,
0.1867548078,
-0.2179486305,
0.5250280499,
0.1326778829,
-0.3111562133,
0.227359131,
-0.0156110842,
0.1431379616,
-0.1239110976,
0.0056162598,
0.464392215,
0.2228353769,
-0.2706632912,
-0.4482095242,
-0.0549165495,
-0.1963092387,
-0.0430081785,
0.2514185607,
-0.0189251006,
0.2822048068,
0.1687414944,
-0.5559619069,
-0.1699758321,
-0.0533310287,
-0.1100218594,
-0.0684076175,
-0.0438299812,
0.1227402613,
-0.1220794469,
0.0873714313,
-0.1470598131,
0.2502610981,
0.0586051233,
0.1833017617,
-0.1270232797,
-0.1814169735,
-0.3422724903,
-0.2197386622,
0.3131838143,
0.2802989781,
0.2581950426,
0.2559706271,
0.2266034484,
-0.0624803379,
-0.1181504875,
-0.1766682416,
0.3222265244,
-0.3438584208,
0.0889628753,
0.1337673962,
-0.2756943107,
-0.3974500597,
0.1466486156,
-0.0085866414,
-0.2518128455,
0.2226761132,
0.2822353542,
-0.1962133646,
-0.0995172933,
0.4083943367,
-0.200948745,
-0.0107698767,
0.130005613,
0.2449007928,
0.1339382976,
-0.0542051494,
0.2221429795,
0.2067652047,
-0.1895076334,
-0.0806852579,
0.110192135,
-0.1272462755,
-0.0858554915,
-0.2488649338,
0.187654987,
-0.0048877141,
-0.1962259263,
0.0158583224,
-0.0835492685,
0.274112314,
0.2346901894,
0.3042017519,
-0.0417357013,
0.4640485644,
0.1292724013,
-0.0601889677,
-0.2695891261,
-0.1872319132,
0.1579571813,
-0.3326707184,
0.1288958341,
-0.2424297333,
-0.2861660719,
0.2012262493,
0.2426214963,
-0.2469902784,
-0.1991753876,
-0.0448273532,
0.0969924778,
0.2532233596,
-0.1112781689,
0.0230899528,
0.0169688165,
-0.1419422328,
-0.3485346138,
-0.1842768341,
0.2687901258,
-0.1900322437,
0.1249149889,
0.3478445709,
0.1490198672,
-0.0905654728,
0.3433874249,
-0.1107638702,
0.0102248788,
-0.0510071106,
0.2945252061,
0.2158772945,
-0.341719389,
-0.0383224413,
0.343682915,
-0.159887448,
0.0314031392,
0.2459237725,
0.2952592075,
0.2183942944,
-0.6586910486,
-0.268019855,
0.1150486246,
-0.1457948238,
0.2035925835,
-0.3782375753,
-0.4893106222,
0.1551602781,
-0.1110205203,
0.2189464569,
-0.0219092965,
-0.0264859647,
-0.0243926998,
0.0211040173,
-0.3764764369,
-0.0096976366,
-0.0201760363,
0.0328956097,
0.1862111092,
0.1014086157,
0.2024673373,
-0.21860075,
0.1092705131,
-0.2190380692,
-0.2866871357,
0.0303831082,
-0.3408523202,
0.213596642,
-0.3898272812,
-0.0898485556,
0.2973104417,
0.1639083773,
0.0066266092,
0.0824808776,
-0.3306170404,
-0.2006497979,
0.1946838349,
-0.1601668298,
-0.1434936225,
-0.2852329314,
0.0684345216,
0.0442207418,
0.2410113513,
0.0413201787,
-0.0341022946,
0.0668013766,
-0.265801996,
0.129079625,
0.317902267,
-0.1664430946,
0.3309116066,
0.2668875754,
0.8330713511,
0.1407028586,
-0.1076699123,
0.3438844085,
-0.0846252367,
-0.1168703362,
-0.0055884901,
-0.0805219337,
0.4911958873,
-0.3341497481,
-0.1171827465,
0.1367956847,
-0.1599953473,
0.0559730828,
-0.3720174134,
-0.1977208704,
-0.2793740332,
-0.0932423621,
-0.1063024998,
0.1200076416,
0.3791050017,
-0.2798252106,
0.4305250943,
0.4273656905,
-0.1499263197,
0.0294488445,
0.2169587761,
0.2922957242,
-0.1389049292,
-0.2679867744,
0.2191866934,
0.1560050696,
0.3948583305,
0.1579460949,
0.0696535856,
0.1232546344,
-0.145330444,
0.2383617014,
-0.1427056789,
0.0940891579,
0.1048286781,
-0.0206778832,
0.1556963176,
-0.3001691997,
-0.1245945767,
0.1747217774,
-0.0403482094,
-0.336961925,
0.0005101409,
-0.3786219358,
0.0028126489,
-0.0328969657,
-0.2066301256,
-0.0539778769,
-0.1642453074,
0.4976656735,
-0.1089980379,
-0.3371108472,
0.2331420928,
-0.219454363,
0.1465769559,
-0.0242134146,
-0.1001764014,
-0.2513733208,
-0.1650530696,
-0.0147684626,
0.1514491141,
0.4425900578,
-0.1307713985,
0.3409083486,
-0.3635288179,
0.0824575946,
-0.3977572322,
-0.6287536621,
0.0700298101,
-0.231518358,
-0.0788374916,
0.1244050041,
-0.0712288916,
-0.225391075,
-0.0993881375,
-0.1441027969,
-0.222181201,
-0.3359171748,
0.0935993791,
0.0117352381,
-0.0142568788,
0.0353112146,
-0.2946576476,
-0.1908774376,
-0.1841778159,
0.0517574884,
0.1154504418,
0.3753774762,
0.1448077857,
-0.0652876943,
-0.2465346903,
0.0321272723,
-0.0179093778,
-0.3294396996,
-0.8471509218,
0.4723075032,
-0.3325078487,
-0.1874352545,
-0.0672625601,
-0.0376642123,
-0.1309808344,
0.5486730933,
-0.363874644,
-0.6462657452,
-0.0005098745,
0.1221547052,
-0.009284554,
-0.0365931578,
0.4072079062,
0.1895593405,
-0.2352835536,
-0.1316512376,
0.3807609677,
0.2739592791,
0.0604358986,
0.1967509985,
0.1090955213,
0.1610497981,
0.3650010526,
0.626478374,
0.1853602231,
-0.2784260511,
0.046613019,
0.0675859451,
0.1245016828,
-0.079821378,
-0.0123512577,
-0.0082909735,
-0.0154182184,
0.1357919723,
0.3944531977,
0.1157406345,
-0.0154707478,
0.1152288467,
0.1230581701,
-0.4963374138,
-0.5042803288,
0.3902655244,
-0.3113090396,
0.2560546398,
-0.0396401025,
-0.2495984137,
-0.3893634677,
-0.1653741151,
0.4180832505,
0.2367179245,
0.2869231105,
0.0459790528,
0.0231366642,
0.0878517479,
-0.1084380671,
0.2726275325,
0.3196282387,
0.0213305205,
0.043189168,
-0.2385328561,
-0.0072184023,
-0.227693215,
0.6021752357,
-0.1238815412,
0.0670820847,
-0.0665826499,
-0.541908741,
0.354178071,
0.2271941602,
0.1421806663,
-0.132171154,
0.1844020337,
0.3718283474,
-0.2227368355,
-0.2264917791,
-0.0839511529,
0.1937792748,
-0.1486982703,
-0.0568811297,
0.047533907,
-0.3485065699,
-0.0548110008,
0.0101912217,
-0.078989476,
-0.4550440907,
0.1056616604,
-0.2257419974,
-0.3692722917,
-0.2502520382,
0.235833928,
0.1980256289,
0.0366617627,
0.0707152784,
0.196815595,
0.2124984264,
0.1011148617,
0.0640043989,
0.2546141148,
-0.0368296392,
0.1430098414,
-0.3102515042,
0.0349279232,
-0.3283669949,
0.4785372913,
-0.1703670472,
-0.2068730146,
0.1241939217,
0.2493245155,
-0.1271364689,
-0.1288755983,
-0.2221636176,
-0.0225473251,
-0.3139001429,
-0.1667639911,
0.3888573647,
0.1422590911,
-0.2729965448,
0.0919476524,
0.1733011007,
-0.3826983571,
0.2560113072,
0.54201442,
1.1761382818,
-0.3763305545,
0.100510329,
0.069950752,
0.0234092958,
-0.0114783719,
-0.2966814935,
-0.0306505505,
-0.2049042284,
-0.4842042923,
-0.2232870758,
0.0384873673,
-0.0360252298,
0.2198576331,
-0.2503264248,
0.163620472,
0.1835587621,
-0.1190721616,
-0.04288169,
0.2936109602,
-0.1004270911,
-0.2144845724,
0.0220693294,
0.2072319686,
0.1814974397,
-0.3016627431,
0.0739468336,
-0.3371148109,
0.019694278,
0.1260946989,
0.3993550241,
-0.0989342332,
-0.5738696456,
0.190001905,
-0.1759685129,
0.0322091654,
-0.0943491533,
-0.0423774235,
0.4852935374,
0.0370613523,
-0.1211244389,
0.0495823734,
0.3662066758,
0.3474065661,
0.0016458849,
-0.2287258506,
0.5342910886,
-0.0292450059,
0.0950185433,
-0.3131177425,
0.3360681832,
-0.3367796242,
-0.2795269489,
-0.2785630226,
-0.1608467102,
-0.0802555084,
0.3283863664,
0.1880477518,
-0.4775863886,
0.0487527996,
0.1665291637,
0.1995811164,
-0.0874189809,
0.6254339814,
0.1361825615,
-0.064773567,
-0.0498281941,
0.234338969,
0.2947431505,
0.1202686504,
0.1588824391,
-0.0883422047,
-0.3206322193,
-0.2068022937,
0.1803951263,
-0.2727231383,
-0.2477397025,
0.2495170683,
-0.1612062305,
-0.1212344468,
0.1711608618,
0.1120505258,
0.3005470037,
0.0668954104,
-0.0554795265,
0.0352401063,
-0.3055221438,
0.367472589,
0.1737469733,
0.4600825608,
-0.1467989683,
0.4343432188,
-0.2452531606,
0.3762709498,
-0.450999856,
0.1424838603,
-0.1463260055,
0.3262871802,
-0.190070495,
-0.2824577689,
0.1221835613,
-0.1587539017,
0.1252050549,
0.1285539865,
-0.35768345,
-0.2642920017,
-0.1343511492,
0.123371847,
0.0929592475,
-0.0617203787,
-0.0241253339,
0.0406208038,
-0.0930191725,
-0.0773363784,
0.1555431634,
0.2089789063,
0.0028008809,
-0.0521773435,
0.0783908591,
-0.4736967087,
0.1600305736,
-0.0281406119,
0.1240977421,
-0.1041072756,
-0.0500571243,
0.2095998824,
-0.182531938,
-0.1774723977,
0.18903476,
0.3020364344,
0.2633101642,
-0.1904022247,
0.2855669558,
0.1765292436,
-0.1778230071,
0.4587363899,
0.1259511709,
0.0384654701,
0.0009793986,
-0.4334666729,
0.2604824901,
0.2351166308,
-0.4202829301,
-0.0899143443,
0.1205008626,
-0.0654693246,
-0.020490732,
0.2778394222,
0.2072884291,
-0.0317329876,
0.1610591114,
0.0001044197,
0.1213791966,
-0.5231859684,
0.0557381175,
0.1909552068,
-0.2242418975,
-0.0390820876,
0.08461418,
0.2472974807,
-0.0045037293,
0.1397806108,
-0.0607762523,
0.4106545746,
-0.2522779107,
0.2449947,
-0.0482310914,
-0.2053448856,
-0.0295085032,
0.2851451635,
0.0826418325,
0.2242778242,
0.3080560863,
0.0737212673,
0.4339234233,
-0.2171860635,
-0.0726331547,
0.6125526428,
0.0919123888,
-0.2435761392,
-0.0462824143,
-0.0841785371,
-0.2197407186,
0.0218677688,
-0.0159907956,
-0.1172395796,
0.329967767,
0.579895556,
0.3886066377,
-0.1233006045,
-0.003530001,
-0.2381328493,
0.5514829755,
-0.3509508371,
0.1697099209,
0.3621649444,
-0.2181715518,
0.2207413912,
0.2424248308,
-0.069631964,
-0.0261440706,
-0.1438599527,
0.3785847127,
-0.0473927669,
0.1139521226,
-0.0769383013,
0.1688649356,
-0.0400082469,
-0.1288122982,
0.2110712826,
0.1555361301,
-0.1085622311,
0.0934370607,
-0.1807086915,
0.0129307788,
0.09312433,
0.3506372869,
0.3761068285,
-0.0662325248,
0.0498137847,
0.0309408531,
-0.2851730883,
-0.0742973015,
0.1877623796,
-0.3989115655,
0.1143960953,
0.0720775127,
0.1303426325,
0.0716030523,
0.4829993546,
0.380651176,
-0.243248418,
-0.3473904133,
0.1224918738,
-0.1109221056,
-0.0021115963,
0.0821844339,
0.1023042277,
0.0373668633,
0.2220948339,
0.1007128134,
0.197487995,
-0.0495858975,
-0.0793671533,
-0.1267406642,
0.3335697651,
-0.1618366987,
0.3978962302,
-0.136989519,
0.1682547331,
0.0589109287,
-0.3917447031,
0.1069097668,
0.2157738209,
0.1770468503,
0.0063038794,
-0.0130822184,
0.0348608568,
0.1745428592,
0.1908225864,
0.1926883906,
-0.129795894,
-0.206440866,
0.1018957645,
0.0281657483,
-0.119716011,
-0.3270348012,
0.1273049563,
0.3439897895,
-0.0424508527,
-0.1253283173,
-0.2214301676,
-0.0630224571,
-0.1344344616,
-0.2100067139,
0.1930848658,
-0.1583123654,
0.1568441689,
-0.0833467022,
-0.01398258,
-0.0066034254,
0.6900026798,
0.0189207494,
0.2031870335,
-0.2757937312,
-0.3680399656,
0.5384500027,
-0.4374366403,
-0.0583667494,
0.1495702714,
0.2244145721,
0.2603411973,
-0.0162791107,
-0.3034521341,
0.0596203096,
0.0519406423,
-0.0623711459,
0.0690091699,
0.2875986099,
-0.0680379942,
-0.221459806,
-0.0995098725,
-0.1333296895,
0.0159841981,
-0.1004357561,
-0.3943922818,
-0.2757805288
] |
https://github.com/huggingface/datasets/issues/897 | Dataset viewer issues | Thanks for reporting !
cc @srush for the empty feature list issue and the encoding issue
cc @julien-c maybe we can update the url and just have a redirection from the old url to the new one ? | I was looking through the dataset viewer and I like it a lot. Version numbers, citation information, everything's there! I've spotted a few issues/bugs though:
- the URL is still under `nlp`, perhaps an alias for `datasets` can be made
- when I remove a **feature** (and the feature list is empty), I get an error. This is probably expected, but perhaps a better error message can be shown to the user
```bash
IndexError: list index out of range
Traceback:
File "/home/sasha/streamlit/lib/streamlit/ScriptRunner.py", line 322, in _run_script
exec(code, module.__dict__)
File "/home/sasha/nlp-viewer/run.py", line 316, in <module>
st.table(style)
File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 122, in wrapped_method
return dg._enqueue_new_element_delta(marshall_element, delta_type, last_index)
File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 367, in _enqueue_new_element_delta
rv = marshall_element(msg.delta.new_element)
File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 120, in marshall_element
return method(dg, element, *args, **kwargs)
File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 2944, in table
data_frame_proto.marshall_data_frame(data, element.table)
File "/home/sasha/streamlit/lib/streamlit/elements/data_frame_proto.py", line 54, in marshall_data_frame
_marshall_styles(proto_df.style, df, styler)
File "/home/sasha/streamlit/lib/streamlit/elements/data_frame_proto.py", line 73, in _marshall_styles
translated_style = styler._translate()
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/pandas/io/formats/style.py", line 351, in _translate
* (len(clabels[0]) - len(hidden_columns))
```
- there seems to be **an encoding issue** in the default view, the dataset examples are shown as raw monospace text, without a decent encoding. That makes it hard to read for languages that use a lot of special characters. Take for instance the [cs-en WMT19 set](https://huggingface.co/nlp/viewer/?dataset=wmt19&config=cs-en). This problem goes away when you enable "List view", because then some syntax highlighteris used, and the special characters are coded correctly.
| 38 | Dataset viewer issues
I was looking through the dataset viewer and I like it a lot. Version numbers, citation information, everything's there! I've spotted a few issues/bugs though:
- the URL is still under `nlp`, perhaps an alias for `datasets` can be made
- when I remove a **feature** (and the feature list is empty), I get an error. This is probably expected, but perhaps a better error message can be shown to the user
```bash
IndexError: list index out of range
Traceback:
File "/home/sasha/streamlit/lib/streamlit/ScriptRunner.py", line 322, in _run_script
exec(code, module.__dict__)
File "/home/sasha/nlp-viewer/run.py", line 316, in <module>
st.table(style)
File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 122, in wrapped_method
return dg._enqueue_new_element_delta(marshall_element, delta_type, last_index)
File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 367, in _enqueue_new_element_delta
rv = marshall_element(msg.delta.new_element)
File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 120, in marshall_element
return method(dg, element, *args, **kwargs)
File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 2944, in table
data_frame_proto.marshall_data_frame(data, element.table)
File "/home/sasha/streamlit/lib/streamlit/elements/data_frame_proto.py", line 54, in marshall_data_frame
_marshall_styles(proto_df.style, df, styler)
File "/home/sasha/streamlit/lib/streamlit/elements/data_frame_proto.py", line 73, in _marshall_styles
translated_style = styler._translate()
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/pandas/io/formats/style.py", line 351, in _translate
* (len(clabels[0]) - len(hidden_columns))
```
- there seems to be **an encoding issue** in the default view, the dataset examples are shown as raw monospace text, without a decent encoding. That makes it hard to read for languages that use a lot of special characters. Take for instance the [cs-en WMT19 set](https://huggingface.co/nlp/viewer/?dataset=wmt19&config=cs-en). This problem goes away when you enable "List view", because then some syntax highlighteris used, and the special characters are coded correctly.
Thanks for reporting !
cc @srush for the empty feature list issue and the encoding issue
cc @julien-c maybe we can update the url and just have a redirection from the old url to the new one ? | [
-0.218693465,
0.2789270282,
-0.0264326781,
0.2816512883,
-0.0023903761,
0.1115044877,
0.2981254458,
0.2988632917,
-0.1956239045,
0.064759165,
-0.0076386943,
0.2664062977,
-0.3950023353,
0.0988746807,
-0.1122843847,
-0.2007791549,
0.0220980067,
-0.0146626187,
0.0232192297,
-0.0943432227,
-0.1718726158,
-0.2318453193,
-0.3681102693,
0.0472465754,
0.1730450839,
-0.1287799329,
-0.0984151587,
-0.0248547904,
-0.1657537371,
-0.645848155,
0.0453228801,
0.2832351625,
0.130553484,
0.4277640581,
-0.0001141003,
-0.0952437371,
0.5284170508,
0.2207834572,
-0.4246528149,
-0.1656226814,
-0.1231054515,
-0.3184156418,
0.4010366201,
-0.187637195,
0.2975273728,
-0.3479120433,
0.0207551178,
-0.1845205724,
0.0901873708,
0.4696020782,
0.195632726,
0.1108127832,
-0.1084176153,
0.175213173,
0.3652738929,
0.249118939,
-0.279720068,
-0.101524815,
0.1632786542,
-0.0791655034,
-0.0257102232,
0.3140527904,
-0.1640224308,
-0.0861881226,
0.3573249876,
-0.188214764,
-0.0757905915,
-0.4510447085,
-0.0953089371,
0.2241512239,
0.7972299457,
-0.349524349,
-0.3797176182,
-0.360183686,
0.0131204352,
-0.1577009112,
0.1619468033,
0.0079304837,
-0.1782672405,
0.0668448657,
-0.2203084081,
-0.3423936367,
-0.1549729109,
0.096509397,
-0.2113792151,
0.6253470778,
0.1779183596,
0.0807629153,
0.1139027402,
-0.1835037172,
0.5544174314,
-0.1228947416,
-0.1087578908,
0.1986274421,
-0.2692964971,
-0.173706755,
0.461104393,
-0.1622397006,
-0.1637827903,
0.4153254032,
0.2714704573,
0.0435073562,
-0.3141143322,
0.0096326033,
0.4544062912,
0.167187199,
0.1473376155,
0.1572189331,
0.3739818037,
-0.038006179,
0.326033324,
0.1013468504,
0.0978918001,
-0.0086793983,
-0.2973323166,
-0.1162440032,
0.4545960724,
-0.2330590636,
-0.3032267988,
0.1526127905,
-0.1009674817,
-0.2630610764,
0.1532101035,
0.2191123515,
-0.0706102103,
0.0922882706,
-0.1988679916,
0.1861471087,
-0.2814709246,
-0.1896957904,
-0.1201233119,
-0.115708977,
-0.1896720231,
-0.3266671002,
0.1634650826,
-0.2876244187,
0.1197101697,
-0.1003619209,
-0.1547211111,
0.1945935637,
0.0908225179,
-0.1636738777,
-0.0009147825,
0.0688802972,
-0.2302839756,
0.1360697001,
0.119724609,
-0.2654081583,
0.0479442403,
0.2560566962,
0.2586601079,
-0.1782321483,
-0.1489070356,
0.1788306087,
-0.2246101499,
0.0703028589,
0.0440880395,
0.3644196987,
-0.2849556804,
-0.2395539582,
-0.1893163919,
-0.2350796759,
-0.1941616535,
-0.1878353804,
0.1720422953,
0.5530484915,
-0.4830775857,
-0.0465625636,
-0.4554140568,
-0.0557204485,
0.0420508385,
0.0599899553,
-0.1993477345,
0.1053988561,
-0.3029534817,
-0.0673144087,
0.5750006437,
-0.2191533297,
-0.4035134017,
0.2735556066,
-0.1726999134,
0.0276703667,
0.0239076726,
0.1319135278,
0.192535311,
-0.3088915348,
-0.387309283,
-0.0334398896,
-0.0646379441,
-0.2213611752,
-0.3128037751,
-0.1074301675,
0.5276129246,
0.0364881866,
0.1350301653,
-0.0540122651,
0.2751263678,
0.0094173579,
0.3650547564,
0.135838449,
0.0362212807,
0.0742884055,
-0.0089339837,
0.1816088706,
-0.0343148336,
-0.1788936853,
-0.3708628118,
0.0983278304,
0.1578836739,
0.0319678485,
0.0578100085,
-0.0395849422,
-0.0441823341,
0.1766234487,
-0.2002386302,
0.0091594951,
0.1059281081,
0.0371713936,
-0.2283865511,
0.1501712054,
-0.3601386249,
-0.335570544,
-0.0756465867,
0.1033101901,
-0.2184203714,
0.4458242655,
-0.0775558054,
-0.0546326339,
0.2532233596,
0.3302970827,
0.2176560014,
-0.1338982582,
-0.1547200531,
0.2255302668,
0.3120882511,
0.0964817926,
0.2038222849,
0.2202824056,
0.4631515741,
-0.4166272581,
0.4512766004,
0.424867779,
0.0157840773,
-0.0111361565,
-0.4655111134,
0.1208941489,
-0.4010038376,
0.3006584644,
0.1231235787,
0.0035363317,
0.3432374299,
0.0029790737,
0.0387484469,
-0.1294725835,
0.2690468132,
0.0817268267,
-0.0146122258,
-0.0484843925,
-0.4041111469,
0.2343583703,
-0.1110975146,
0.142692402,
-0.2079056799,
0.1828098893,
-0.2422181964,
-0.1872492433,
0.207843408,
0.1649780869,
0.1381795555,
0.197490111,
0.007713797,
0.1722228974,
0.1840901822,
-0.1922397316,
0.2213063389,
0.2634326816,
-0.2253489494,
0.1050514057,
0.1157467589,
0.065923579,
-0.2038090229,
-0.3943381011,
0.1596048474,
0.3535885215,
-0.2750310004,
-0.1722282618,
-0.3831972182,
-0.7089201808,
0.087865293,
-0.059456829,
-0.3682581186,
-0.5505609512,
0.1306333095,
0.31100896,
-0.3960460126,
0.2758716345,
-0.5261030197,
0.0930711553,
-0.0833636895,
0.3771485984,
0.0294830296,
-0.3150148988,
-0.149492681,
0.1138874665,
0.3704947233,
0.3368927836,
0.3391323388,
0.2285359055,
0.0902661085,
-0.5124881268,
-0.394664377,
0.182142362,
-0.0811307654,
0.3599926531,
0.0334616229,
-0.0304458179,
-0.0033653863,
-0.0145207988,
0.1848329455,
-0.0334528051,
0.0808227956,
0.0377499424,
0.2265970707,
-0.0568406545,
0.0043872572,
-0.2615485787,
-0.1642234325,
-0.5408260226,
0.0232084841,
0.177335158,
0.2984772325,
0.2128196061,
-0.110032171,
0.0811094344,
0.1700316966,
-0.1284519136,
0.0815923661,
0.2522671521,
0.2351939827,
-0.1482934952,
-0.3752675354,
0.1431308091,
0.1678873897,
-0.1806288362,
-0.0289232731,
-0.6907395124,
0.2365353107,
0.0004745367,
0.0933537111,
0.0852360427,
-0.119760029,
0.23464185,
0.3941364586,
-0.0285920128,
0.0604874976,
-0.1572940946,
-0.1623924226,
-0.0272980817,
0.2487438023,
0.0613061003,
0.2927386463,
-0.0788259953,
0.4196695983,
0.1608721912,
0.1330550909,
0.3300282657,
-0.1292560399,
0.3863183558,
0.0880507827,
-0.3644260764,
0.3801056147,
0.2277209014,
-0.2473004758,
0.3891533315,
-0.0468090698,
-0.2272367477,
-0.1322384775,
0.1118753105,
-0.0174207147,
-0.2235315293,
0.005479299,
-0.336617589,
0.0723111853,
0.1084829792,
0.1603693813,
-0.0875504985,
-0.4027020931,
-0.0639729723,
0.0354261808,
0.1260519922,
-0.397769779,
-0.6519765854,
-0.1440822929,
-0.4036369026,
0.336240977,
0.1335719675,
0.2592409849,
-0.1384123862,
-0.0428601801,
0.0075491741,
0.304600507,
0.3338586092,
-0.2926351428,
0.0308589004,
0.2173914909,
0.2529657185,
-0.3621835113,
-0.1252756715,
-0.1247661933,
0.4686269462,
-0.0056123515,
0.1088860855,
0.1177692935,
-0.1460491866,
0.1244101822,
0.0838260949,
-0.3346756101,
-0.0230384171,
0.0858210623,
-0.1470863521,
-0.1134800464,
-0.2595454752,
-0.2903987765,
-0.0807917118,
-0.1117306948,
-0.0160470866,
0.0051933103,
-0.171682626,
0.1276297271,
0.1367407292,
0.4477116764,
-0.0723015815,
0.2226012051,
0.2707371414,
0.2623255253,
0.3942559361,
0.3254238665,
0.1623781025,
-0.1076942012,
0.1056441888,
-0.1841580272,
0.3969782889,
0.2862307727,
0.0432808362,
0.0279178172,
-0.0078063658,
0.3893857896,
-0.198354423,
0.0260479525,
0.3512431979,
-0.0967421979,
-0.1660410911,
-0.654812932,
0.1735792011,
-0.1757689863,
-0.2077556849,
0.4948209524,
0.0051996903,
-0.1810276806,
0.5770657659,
0.0360413529,
0.933032155,
0.2672250867,
-0.1094427407,
0.278337568,
-0.1210115477,
0.6129655838,
0.015946161,
0.2773437798,
-0.3774957359,
-0.3241217136,
-0.024355717,
0.0032224802,
0.0388533361,
-0.1578303874,
-0.1630987525,
0.2387271821,
-0.2339897007,
-0.020033842,
-0.0329129882,
0.3232560754,
0.2424538583,
0.1481513232,
-0.1084034219,
0.114546746,
-0.0608154312,
-0.1897989661,
-0.1467810869,
0.0128430575,
0.1084814146,
0.0014939141,
-0.3961192071,
0.0321095064,
-0.1198762804,
0.1515936852,
-0.3794672489,
-0.332962662,
0.291803956,
0.2802639306,
-0.1389146894,
0.1128720194,
-0.1563886106,
0.1829785109,
0.0113461139,
0.1812898368,
0.0638163984,
0.2905875146,
0.2833430469,
-0.0767333582,
-0.2789281607,
0.1410661787,
0.0836604536,
-0.0352028273,
-0.2029492408,
-0.1858809143,
0.1857670993,
-0.2779078484,
0.1268285513,
-0.124329254,
-0.3048665226,
-0.1910583377,
0.1262686104,
0.2097571045,
-0.0669731721,
0.2531117797,
0.153732866,
-0.0372996777,
-0.1281878799,
0.2323104292,
0.047071591,
0.038812317,
0.5362432599,
0.4200659394,
-0.1564958096,
-0.1853557676,
0.135223642,
-0.1985569894,
-0.1128121987,
0.0336663537,
-0.4092645645,
0.0790370852,
0.0843419135,
0.1507215351,
0.1443125606,
0.1743269116,
-0.4357251525,
-0.2476723492,
-0.0197398774,
0.2915026844,
-0.1539634615,
0.1664570719,
-0.4321202636,
-0.1411085427,
0.124731347,
-0.1702900231,
-0.3006685376,
-0.1900260895,
0.0198922735,
0.1810432673,
0.0269482471,
0.1825225204,
-0.2085027248,
-0.4424798191,
0.0355271958,
-0.2638809681,
-0.0845436826,
-0.1637734622,
-0.0852389336,
0.1769665331,
0.0740289465,
-0.4416137934,
-0.3148103654,
-0.2439834177,
-0.0189494174,
-0.0631045252,
-0.3076319993,
-0.0478221178,
0.040485587,
0.0820249468,
-0.0307587758,
-0.2753333449,
-0.0077422587,
0.2412665039,
0.1193004474,
0.5414618254,
0.2563712597,
0.2153194994,
0.163913101,
-0.1250132173,
-0.2580588162,
0.1643505692,
-0.3087145686,
0.1652211547,
0.3549096882,
-0.3322288394,
0.2556834817,
0.380877912,
0.4932394326,
0.4313770533,
-0.143271029,
-0.2789637148,
0.4424251318,
0.1640634835,
-0.4123228192,
-0.1763325334,
0.2795855105,
0.2438190281,
0.0173585881,
0.1030138731,
0.1361975372,
-0.1607579589,
-0.2585866153,
0.0680327117,
0.4175924957,
-0.2039195597,
0.3002220392,
0.4241983593,
-0.2127173245,
-0.0639843196,
0.1778074503,
0.2166761011,
0.1435501426,
0.6396567822,
0.1417241693,
0.0758813024,
0.4841807783,
0.1691901386,
0.1241488084,
-0.2833168805,
-0.1818278879,
0.2028392702,
-0.0995019302,
0.093060337,
0.2592935264,
0.04682073,
0.0631556064,
-0.368814677,
0.0459527485,
0.2396120131,
-0.0075239772,
0.2120815963,
-0.3550188541,
-0.2509004474,
-0.0494612381,
-0.0261531156,
-0.0940734893,
-0.0751662776,
-0.1726797521,
-0.0033782613,
-0.3169006705,
-0.427523315,
0.3732615113,
0.1240851209,
0.2268956006,
-0.2028678507,
-0.0114721227,
0.326961726,
0.1735690385,
-0.024668999,
0.4546066821,
0.2917704284,
0.1306445748,
-0.2347611487,
0.0310385991,
-0.0664139241,
-0.1432176828,
-0.1319895238,
0.1322549731,
0.0302541852,
0.195159018,
0.180887714,
0.0768017173,
-0.0539622866,
0.4734231532,
0.2337246388,
0.0584051386,
-0.2925064266,
0.3399979472,
0.1458493769,
-0.504317224,
0.0774904042,
-0.3538137376,
-0.20017308,
0.1857924461,
0.7511017323,
0.0313023143,
0.1374645531,
-0.0585537963,
0.0618007332,
0.0923977196,
0.3376106918,
0.466843009,
0.035572812,
-0.1303792149,
-0.2312413007,
-0.8589650393,
0.0914340392,
-0.2171110064,
-0.2172402442,
0.5133661628,
0.1280392855,
-0.050247889,
0.2213604152,
0.3961091936,
-0.010215343,
0.0270924997,
0.0515249074,
-0.3876027465,
-0.1328260452,
-0.1321592927,
0.3818222582,
-0.3627648354,
-0.1248889118,
0.268745929,
-0.440066725,
-0.0286198054,
-0.0540297367,
0.037776228,
-0.0401771292,
0.1479731798,
0.1913587302,
0.134520188,
0.1358109862,
0.2102367431,
-0.0262314938,
-0.411026448,
-0.2733955979,
-0.2440469861,
0.2069381028,
0.0981763378,
0.310220927,
-0.3268451691,
0.0354864858,
-0.234317407,
0.2626629472,
-0.0487472378,
0.1925893873,
-0.4621897042,
-0.0339332782,
-0.1455091089,
0.2107551694,
0.0786110833,
0.160351336,
-0.011109421,
0.0877979621,
-0.1460529119,
-0.3017226756,
0.4168036282,
-0.3896631598,
-0.1787183881,
-0.0096130371,
0.1982848942,
0.3603423834,
0.0374180898,
-0.3271523714,
-0.1917618215,
0.2938881218,
-0.1424470246,
0.0055394722,
-0.0835717916,
-0.1831868291,
-0.0577190742,
0.1430441737,
-0.0101633212,
0.1501578391,
-0.2010466009,
0.1263784468,
0.0989649519
] |
https://github.com/huggingface/datasets/issues/897 | Dataset viewer issues | Ok, I redirected on our side to a new url. ⚠️ @srush: if you update the Streamlit config too to `/datasets/viewer`, let me know because I'll need to change our nginx config at the same time | I was looking through the dataset viewer and I like it a lot. Version numbers, citation information, everything's there! I've spotted a few issues/bugs though:
- the URL is still under `nlp`, perhaps an alias for `datasets` can be made
- when I remove a **feature** (and the feature list is empty), I get an error. This is probably expected, but perhaps a better error message can be shown to the user
```bash
IndexError: list index out of range
Traceback:
File "/home/sasha/streamlit/lib/streamlit/ScriptRunner.py", line 322, in _run_script
exec(code, module.__dict__)
File "/home/sasha/nlp-viewer/run.py", line 316, in <module>
st.table(style)
File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 122, in wrapped_method
return dg._enqueue_new_element_delta(marshall_element, delta_type, last_index)
File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 367, in _enqueue_new_element_delta
rv = marshall_element(msg.delta.new_element)
File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 120, in marshall_element
return method(dg, element, *args, **kwargs)
File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 2944, in table
data_frame_proto.marshall_data_frame(data, element.table)
File "/home/sasha/streamlit/lib/streamlit/elements/data_frame_proto.py", line 54, in marshall_data_frame
_marshall_styles(proto_df.style, df, styler)
File "/home/sasha/streamlit/lib/streamlit/elements/data_frame_proto.py", line 73, in _marshall_styles
translated_style = styler._translate()
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/pandas/io/formats/style.py", line 351, in _translate
* (len(clabels[0]) - len(hidden_columns))
```
- there seems to be **an encoding issue** in the default view, the dataset examples are shown as raw monospace text, without a decent encoding. That makes it hard to read for languages that use a lot of special characters. Take for instance the [cs-en WMT19 set](https://huggingface.co/nlp/viewer/?dataset=wmt19&config=cs-en). This problem goes away when you enable "List view", because then some syntax highlighteris used, and the special characters are coded correctly.
| 36 | Dataset viewer issues
I was looking through the dataset viewer and I like it a lot. Version numbers, citation information, everything's there! I've spotted a few issues/bugs though:
- the URL is still under `nlp`, perhaps an alias for `datasets` can be made
- when I remove a **feature** (and the feature list is empty), I get an error. This is probably expected, but perhaps a better error message can be shown to the user
```bash
IndexError: list index out of range
Traceback:
File "/home/sasha/streamlit/lib/streamlit/ScriptRunner.py", line 322, in _run_script
exec(code, module.__dict__)
File "/home/sasha/nlp-viewer/run.py", line 316, in <module>
st.table(style)
File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 122, in wrapped_method
return dg._enqueue_new_element_delta(marshall_element, delta_type, last_index)
File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 367, in _enqueue_new_element_delta
rv = marshall_element(msg.delta.new_element)
File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 120, in marshall_element
return method(dg, element, *args, **kwargs)
File "/home/sasha/streamlit/lib/streamlit/DeltaGenerator.py", line 2944, in table
data_frame_proto.marshall_data_frame(data, element.table)
File "/home/sasha/streamlit/lib/streamlit/elements/data_frame_proto.py", line 54, in marshall_data_frame
_marshall_styles(proto_df.style, df, styler)
File "/home/sasha/streamlit/lib/streamlit/elements/data_frame_proto.py", line 73, in _marshall_styles
translated_style = styler._translate()
File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/pandas/io/formats/style.py", line 351, in _translate
* (len(clabels[0]) - len(hidden_columns))
```
- there seems to be **an encoding issue** in the default view, the dataset examples are shown as raw monospace text, without a decent encoding. That makes it hard to read for languages that use a lot of special characters. Take for instance the [cs-en WMT19 set](https://huggingface.co/nlp/viewer/?dataset=wmt19&config=cs-en). This problem goes away when you enable "List view", because then some syntax highlighteris used, and the special characters are coded correctly.
Ok, I redirected on our side to a new url. ⚠️ @srush: if you update the Streamlit config too to `/datasets/viewer`, let me know because I'll need to change our nginx config at the same time | [
-0.218693465,
0.2789270282,
-0.0264326781,
0.2816512883,
-0.0023903761,
0.1115044877,
0.2981254458,
0.2988632917,
-0.1956239045,
0.064759165,
-0.0076386943,
0.2664062977,
-0.3950023353,
0.0988746807,
-0.1122843847,
-0.2007791549,
0.0220980067,
-0.0146626187,
0.0232192297,
-0.0943432227,
-0.1718726158,
-0.2318453193,
-0.3681102693,
0.0472465754,
0.1730450839,
-0.1287799329,
-0.0984151587,
-0.0248547904,
-0.1657537371,
-0.645848155,
0.0453228801,
0.2832351625,
0.130553484,
0.4277640581,
-0.0001141003,
-0.0952437371,
0.5284170508,
0.2207834572,
-0.4246528149,
-0.1656226814,
-0.1231054515,
-0.3184156418,
0.4010366201,
-0.187637195,
0.2975273728,
-0.3479120433,
0.0207551178,
-0.1845205724,
0.0901873708,
0.4696020782,
0.195632726,
0.1108127832,
-0.1084176153,
0.175213173,
0.3652738929,
0.249118939,
-0.279720068,
-0.101524815,
0.1632786542,
-0.0791655034,
-0.0257102232,
0.3140527904,
-0.1640224308,
-0.0861881226,
0.3573249876,
-0.188214764,
-0.0757905915,
-0.4510447085,
-0.0953089371,
0.2241512239,
0.7972299457,
-0.349524349,
-0.3797176182,
-0.360183686,
0.0131204352,
-0.1577009112,
0.1619468033,
0.0079304837,
-0.1782672405,
0.0668448657,
-0.2203084081,
-0.3423936367,
-0.1549729109,
0.096509397,
-0.2113792151,
0.6253470778,
0.1779183596,
0.0807629153,
0.1139027402,
-0.1835037172,
0.5544174314,
-0.1228947416,
-0.1087578908,
0.1986274421,
-0.2692964971,
-0.173706755,
0.461104393,
-0.1622397006,
-0.1637827903,
0.4153254032,
0.2714704573,
0.0435073562,
-0.3141143322,
0.0096326033,
0.4544062912,
0.167187199,
0.1473376155,
0.1572189331,
0.3739818037,
-0.038006179,
0.326033324,
0.1013468504,
0.0978918001,
-0.0086793983,
-0.2973323166,
-0.1162440032,
0.4545960724,
-0.2330590636,
-0.3032267988,
0.1526127905,
-0.1009674817,
-0.2630610764,
0.1532101035,
0.2191123515,
-0.0706102103,
0.0922882706,
-0.1988679916,
0.1861471087,
-0.2814709246,
-0.1896957904,
-0.1201233119,
-0.115708977,
-0.1896720231,
-0.3266671002,
0.1634650826,
-0.2876244187,
0.1197101697,
-0.1003619209,
-0.1547211111,
0.1945935637,
0.0908225179,
-0.1636738777,
-0.0009147825,
0.0688802972,
-0.2302839756,
0.1360697001,
0.119724609,
-0.2654081583,
0.0479442403,
0.2560566962,
0.2586601079,
-0.1782321483,
-0.1489070356,
0.1788306087,
-0.2246101499,
0.0703028589,
0.0440880395,
0.3644196987,
-0.2849556804,
-0.2395539582,
-0.1893163919,
-0.2350796759,
-0.1941616535,
-0.1878353804,
0.1720422953,
0.5530484915,
-0.4830775857,
-0.0465625636,
-0.4554140568,
-0.0557204485,
0.0420508385,
0.0599899553,
-0.1993477345,
0.1053988561,
-0.3029534817,
-0.0673144087,
0.5750006437,
-0.2191533297,
-0.4035134017,
0.2735556066,
-0.1726999134,
0.0276703667,
0.0239076726,
0.1319135278,
0.192535311,
-0.3088915348,
-0.387309283,
-0.0334398896,
-0.0646379441,
-0.2213611752,
-0.3128037751,
-0.1074301675,
0.5276129246,
0.0364881866,
0.1350301653,
-0.0540122651,
0.2751263678,
0.0094173579,
0.3650547564,
0.135838449,
0.0362212807,
0.0742884055,
-0.0089339837,
0.1816088706,
-0.0343148336,
-0.1788936853,
-0.3708628118,
0.0983278304,
0.1578836739,
0.0319678485,
0.0578100085,
-0.0395849422,
-0.0441823341,
0.1766234487,
-0.2002386302,
0.0091594951,
0.1059281081,
0.0371713936,
-0.2283865511,
0.1501712054,
-0.3601386249,
-0.335570544,
-0.0756465867,
0.1033101901,
-0.2184203714,
0.4458242655,
-0.0775558054,
-0.0546326339,
0.2532233596,
0.3302970827,
0.2176560014,
-0.1338982582,
-0.1547200531,
0.2255302668,
0.3120882511,
0.0964817926,
0.2038222849,
0.2202824056,
0.4631515741,
-0.4166272581,
0.4512766004,
0.424867779,
0.0157840773,
-0.0111361565,
-0.4655111134,
0.1208941489,
-0.4010038376,
0.3006584644,
0.1231235787,
0.0035363317,
0.3432374299,
0.0029790737,
0.0387484469,
-0.1294725835,
0.2690468132,
0.0817268267,
-0.0146122258,
-0.0484843925,
-0.4041111469,
0.2343583703,
-0.1110975146,
0.142692402,
-0.2079056799,
0.1828098893,
-0.2422181964,
-0.1872492433,
0.207843408,
0.1649780869,
0.1381795555,
0.197490111,
0.007713797,
0.1722228974,
0.1840901822,
-0.1922397316,
0.2213063389,
0.2634326816,
-0.2253489494,
0.1050514057,
0.1157467589,
0.065923579,
-0.2038090229,
-0.3943381011,
0.1596048474,
0.3535885215,
-0.2750310004,
-0.1722282618,
-0.3831972182,
-0.7089201808,
0.087865293,
-0.059456829,
-0.3682581186,
-0.5505609512,
0.1306333095,
0.31100896,
-0.3960460126,
0.2758716345,
-0.5261030197,
0.0930711553,
-0.0833636895,
0.3771485984,
0.0294830296,
-0.3150148988,
-0.149492681,
0.1138874665,
0.3704947233,
0.3368927836,
0.3391323388,
0.2285359055,
0.0902661085,
-0.5124881268,
-0.394664377,
0.182142362,
-0.0811307654,
0.3599926531,
0.0334616229,
-0.0304458179,
-0.0033653863,
-0.0145207988,
0.1848329455,
-0.0334528051,
0.0808227956,
0.0377499424,
0.2265970707,
-0.0568406545,
0.0043872572,
-0.2615485787,
-0.1642234325,
-0.5408260226,
0.0232084841,
0.177335158,
0.2984772325,
0.2128196061,
-0.110032171,
0.0811094344,
0.1700316966,
-0.1284519136,
0.0815923661,
0.2522671521,
0.2351939827,
-0.1482934952,
-0.3752675354,
0.1431308091,
0.1678873897,
-0.1806288362,
-0.0289232731,
-0.6907395124,
0.2365353107,
0.0004745367,
0.0933537111,
0.0852360427,
-0.119760029,
0.23464185,
0.3941364586,
-0.0285920128,
0.0604874976,
-0.1572940946,
-0.1623924226,
-0.0272980817,
0.2487438023,
0.0613061003,
0.2927386463,
-0.0788259953,
0.4196695983,
0.1608721912,
0.1330550909,
0.3300282657,
-0.1292560399,
0.3863183558,
0.0880507827,
-0.3644260764,
0.3801056147,
0.2277209014,
-0.2473004758,
0.3891533315,
-0.0468090698,
-0.2272367477,
-0.1322384775,
0.1118753105,
-0.0174207147,
-0.2235315293,
0.005479299,
-0.336617589,
0.0723111853,
0.1084829792,
0.1603693813,
-0.0875504985,
-0.4027020931,
-0.0639729723,
0.0354261808,
0.1260519922,
-0.397769779,
-0.6519765854,
-0.1440822929,
-0.4036369026,
0.336240977,
0.1335719675,
0.2592409849,
-0.1384123862,
-0.0428601801,
0.0075491741,
0.304600507,
0.3338586092,
-0.2926351428,
0.0308589004,
0.2173914909,
0.2529657185,
-0.3621835113,
-0.1252756715,
-0.1247661933,
0.4686269462,
-0.0056123515,
0.1088860855,
0.1177692935,
-0.1460491866,
0.1244101822,
0.0838260949,
-0.3346756101,
-0.0230384171,
0.0858210623,
-0.1470863521,
-0.1134800464,
-0.2595454752,
-0.2903987765,
-0.0807917118,
-0.1117306948,
-0.0160470866,
0.0051933103,
-0.171682626,
0.1276297271,
0.1367407292,
0.4477116764,
-0.0723015815,
0.2226012051,
0.2707371414,
0.2623255253,
0.3942559361,
0.3254238665,
0.1623781025,
-0.1076942012,
0.1056441888,
-0.1841580272,
0.3969782889,
0.2862307727,
0.0432808362,
0.0279178172,
-0.0078063658,
0.3893857896,
-0.198354423,
0.0260479525,
0.3512431979,
-0.0967421979,
-0.1660410911,
-0.654812932,
0.1735792011,
-0.1757689863,
-0.2077556849,
0.4948209524,
0.0051996903,
-0.1810276806,
0.5770657659,
0.0360413529,
0.933032155,
0.2672250867,
-0.1094427407,
0.278337568,
-0.1210115477,
0.6129655838,
0.015946161,
0.2773437798,
-0.3774957359,
-0.3241217136,
-0.024355717,
0.0032224802,
0.0388533361,
-0.1578303874,
-0.1630987525,
0.2387271821,
-0.2339897007,
-0.020033842,
-0.0329129882,
0.3232560754,
0.2424538583,
0.1481513232,
-0.1084034219,
0.114546746,
-0.0608154312,
-0.1897989661,
-0.1467810869,
0.0128430575,
0.1084814146,
0.0014939141,
-0.3961192071,
0.0321095064,
-0.1198762804,
0.1515936852,
-0.3794672489,
-0.332962662,
0.291803956,
0.2802639306,
-0.1389146894,
0.1128720194,
-0.1563886106,
0.1829785109,
0.0113461139,
0.1812898368,
0.0638163984,
0.2905875146,
0.2833430469,
-0.0767333582,
-0.2789281607,
0.1410661787,
0.0836604536,
-0.0352028273,
-0.2029492408,
-0.1858809143,
0.1857670993,
-0.2779078484,
0.1268285513,
-0.124329254,
-0.3048665226,
-0.1910583377,
0.1262686104,
0.2097571045,
-0.0669731721,
0.2531117797,
0.153732866,
-0.0372996777,
-0.1281878799,
0.2323104292,
0.047071591,
0.038812317,
0.5362432599,
0.4200659394,
-0.1564958096,
-0.1853557676,
0.135223642,
-0.1985569894,
-0.1128121987,
0.0336663537,
-0.4092645645,
0.0790370852,
0.0843419135,
0.1507215351,
0.1443125606,
0.1743269116,
-0.4357251525,
-0.2476723492,
-0.0197398774,
0.2915026844,
-0.1539634615,
0.1664570719,
-0.4321202636,
-0.1411085427,
0.124731347,
-0.1702900231,
-0.3006685376,
-0.1900260895,
0.0198922735,
0.1810432673,
0.0269482471,
0.1825225204,
-0.2085027248,
-0.4424798191,
0.0355271958,
-0.2638809681,
-0.0845436826,
-0.1637734622,
-0.0852389336,
0.1769665331,
0.0740289465,
-0.4416137934,
-0.3148103654,
-0.2439834177,
-0.0189494174,
-0.0631045252,
-0.3076319993,
-0.0478221178,
0.040485587,
0.0820249468,
-0.0307587758,
-0.2753333449,
-0.0077422587,
0.2412665039,
0.1193004474,
0.5414618254,
0.2563712597,
0.2153194994,
0.163913101,
-0.1250132173,
-0.2580588162,
0.1643505692,
-0.3087145686,
0.1652211547,
0.3549096882,
-0.3322288394,
0.2556834817,
0.380877912,
0.4932394326,
0.4313770533,
-0.143271029,
-0.2789637148,
0.4424251318,
0.1640634835,
-0.4123228192,
-0.1763325334,
0.2795855105,
0.2438190281,
0.0173585881,
0.1030138731,
0.1361975372,
-0.1607579589,
-0.2585866153,
0.0680327117,
0.4175924957,
-0.2039195597,
0.3002220392,
0.4241983593,
-0.2127173245,
-0.0639843196,
0.1778074503,
0.2166761011,
0.1435501426,
0.6396567822,
0.1417241693,
0.0758813024,
0.4841807783,
0.1691901386,
0.1241488084,
-0.2833168805,
-0.1818278879,
0.2028392702,
-0.0995019302,
0.093060337,
0.2592935264,
0.04682073,
0.0631556064,
-0.368814677,
0.0459527485,
0.2396120131,
-0.0075239772,
0.2120815963,
-0.3550188541,
-0.2509004474,
-0.0494612381,
-0.0261531156,
-0.0940734893,
-0.0751662776,
-0.1726797521,
-0.0033782613,
-0.3169006705,
-0.427523315,
0.3732615113,
0.1240851209,
0.2268956006,
-0.2028678507,
-0.0114721227,
0.326961726,
0.1735690385,
-0.024668999,
0.4546066821,
0.2917704284,
0.1306445748,
-0.2347611487,
0.0310385991,
-0.0664139241,
-0.1432176828,
-0.1319895238,
0.1322549731,
0.0302541852,
0.195159018,
0.180887714,
0.0768017173,
-0.0539622866,
0.4734231532,
0.2337246388,
0.0584051386,
-0.2925064266,
0.3399979472,
0.1458493769,
-0.504317224,
0.0774904042,
-0.3538137376,
-0.20017308,
0.1857924461,
0.7511017323,
0.0313023143,
0.1374645531,
-0.0585537963,
0.0618007332,
0.0923977196,
0.3376106918,
0.466843009,
0.035572812,
-0.1303792149,
-0.2312413007,
-0.8589650393,
0.0914340392,
-0.2171110064,
-0.2172402442,
0.5133661628,
0.1280392855,
-0.050247889,
0.2213604152,
0.3961091936,
-0.010215343,
0.0270924997,
0.0515249074,
-0.3876027465,
-0.1328260452,
-0.1321592927,
0.3818222582,
-0.3627648354,
-0.1248889118,
0.268745929,
-0.440066725,
-0.0286198054,
-0.0540297367,
0.037776228,
-0.0401771292,
0.1479731798,
0.1913587302,
0.134520188,
0.1358109862,
0.2102367431,
-0.0262314938,
-0.411026448,
-0.2733955979,
-0.2440469861,
0.2069381028,
0.0981763378,
0.310220927,
-0.3268451691,
0.0354864858,
-0.234317407,
0.2626629472,
-0.0487472378,
0.1925893873,
-0.4621897042,
-0.0339332782,
-0.1455091089,
0.2107551694,
0.0786110833,
0.160351336,
-0.011109421,
0.0877979621,
-0.1460529119,
-0.3017226756,
0.4168036282,
-0.3896631598,
-0.1787183881,
-0.0096130371,
0.1982848942,
0.3603423834,
0.0374180898,
-0.3271523714,
-0.1917618215,
0.2938881218,
-0.1424470246,
0.0055394722,
-0.0835717916,
-0.1831868291,
-0.0577190742,
0.1430441737,
-0.0101633212,
0.1501578391,
-0.2010466009,
0.1263784468,
0.0989649519
] |
https://github.com/huggingface/datasets/issues/888 | Nested lists are zipped unexpectedly | Yes following the Tensorflow Datasets convention, objects with type `Sequence of a Dict` are actually stored as a `dictionary of lists`.
See the [documentation](https://huggingface.co/docs/datasets/features.html?highlight=features) for more details | I might misunderstand something, but I expect that if I define:
```python
"top": datasets.features.Sequence({
"middle": datasets.features.Sequence({
"bottom": datasets.Value("int32")
})
})
```
And I then create an example:
```python
yield 1, {
"top": [{
"middle": [
{"bottom": 1},
{"bottom": 2}
]
}]
}
```
I then load my dataset:
```python
train = load_dataset("my dataset")["train"]
```
and expect to be able to access `data[0]["top"][0]["middle"][0]`.
That is not the case. Here is `data[0]` as JSON:
```json
{"top": {"middle": [{"bottom": [1, 2]}]}}
```
Clearly different than the thing I inputted.
```json
{"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]}
``` | 27 | Nested lists are zipped unexpectedly
I might misunderstand something, but I expect that if I define:
```python
"top": datasets.features.Sequence({
"middle": datasets.features.Sequence({
"bottom": datasets.Value("int32")
})
})
```
And I then create an example:
```python
yield 1, {
"top": [{
"middle": [
{"bottom": 1},
{"bottom": 2}
]
}]
}
```
I then load my dataset:
```python
train = load_dataset("my dataset")["train"]
```
and expect to be able to access `data[0]["top"][0]["middle"][0]`.
That is not the case. Here is `data[0]` as JSON:
```json
{"top": {"middle": [{"bottom": [1, 2]}]}}
```
Clearly different than the thing I inputted.
```json
{"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]}
```
Yes following the Tensorflow Datasets convention, objects with type `Sequence of a Dict` are actually stored as a `dictionary of lists`.
See the [documentation](https://huggingface.co/docs/datasets/features.html?highlight=features) for more details | [
0.2298386842,
-0.4676935375,
-0.1091863215,
0.3930574656,
0.0112236068,
-0.0073930719,
0.2414545119,
0.0436260849,
0.1704822779,
0.1277209073,
-0.1480690837,
0.4359345734,
0.2361755222,
0.2945677042,
-0.0669525713,
-0.0988029391,
0.2758643329,
-0.0747677311,
-0.193099767,
-0.114647381,
-0.3136228621,
0.2664880157,
-0.3605994284,
0.0551949441,
0.0843060911,
-0.0568166859,
-0.1831727177,
0.1451129317,
0.1657563746,
-0.0842648223,
0.5213045478,
0.0379809588,
-0.0886196569,
0.5056129694,
-0.0001140757,
0.2123833746,
0.1992181391,
-0.0585277565,
-0.249674961,
-0.3481116295,
0.0021731704,
-0.4233004451,
0.191058293,
-0.2739615142,
-0.0578964017,
-0.2668310404,
-0.0272843745,
-0.4505226314,
0.5443416834,
0.0647110045,
0.2045087963,
0.2837789357,
0.0236122292,
0.0481438339,
0.2327334583,
0.0205131341,
-0.1190873533,
0.0153835025,
0.1555834711,
0.0709386095,
0.1159701794,
-0.0186714958,
0.0423266217,
0.0694477782,
0.2614141405,
0.4643960297,
-0.295653671,
-0.4514954388,
-0.3163238168,
0.2530359626,
0.0560798831,
-0.1317224652,
-0.385786891,
-0.5079491735,
-0.3157913089,
-0.4794180095,
0.2364195138,
0.1448515356,
-0.0973741412,
0.2124939263,
-0.1825152189,
0.1744581163,
-0.0692018941,
0.321310401,
-0.174774453,
0.3411716819,
-0.2386369258,
0.1546943486,
-0.1007571965,
-0.1128669679,
0.1495954692,
-0.4561370611,
0.2408813238,
0.1273014992,
-0.1851059645,
-0.0407876149,
0.0541590452,
-0.3483130634,
0.0675065741,
0.1040366665,
-0.0081318347,
0.1614091545,
-0.3872077465,
-0.0663328394,
0.2979255319,
0.2695173323,
-0.0865094215,
-0.0295971539,
-0.148349613,
0.2968332171,
0.1175822541,
0.0159887876,
0.2882224023,
0.0699859709,
-0.137997821,
-0.0307002459,
0.3500604331,
0.1445538402,
-0.336206764,
0.1017609611,
-0.4738682508,
-0.0749656186,
-0.0336969756,
0.0638877898,
-0.3206650317,
0.1525017172,
-0.007156969,
0.2471444011,
-0.1345577836,
0.3446600735,
-0.2371741235,
-0.1904277802,
-0.065285027,
0.0663497075,
-0.04209828,
-0.0953789651,
0.1654870957,
0.2125787586,
0.1812340021,
-0.2676427662,
0.0392449349,
0.0152298314,
0.3261407614,
0.1474466473,
-0.1008215994,
0.3499749899,
0.2230876237,
-0.1812286377,
-0.1014809608,
0.0566560663,
-0.5195720196,
-0.0518508628,
0.1581280529,
0.1338202655,
-0.4378278852,
0.0968860611,
-0.0804308057,
0.1471619904,
0.330953002,
0.3669148684,
0.0343741551,
0.03424979,
-0.508404851,
-0.2293905318,
0.0003262859,
-0.0738938749,
-0.2071798146,
-0.0262299571,
-0.1019278318,
0.0716582686,
0.2804751396,
0.35139516,
-0.129599452,
0.2629665434,
-0.315141201,
0.2650035918,
0.1025326699,
0.017196415,
-0.3716728389,
0.2160806656,
-0.1512708366,
0.596480906,
0.0166996997,
0.0097156325,
0.0972162411,
-0.1860405654,
0.4022802413,
0.1987630576,
0.3353218436,
-0.2042614818,
-0.120448105,
-0.0844998509,
0.4401876032,
-0.2315005958,
-0.5066450834,
0.065812178,
-0.2022053599,
-0.0535657145,
0.2737058103,
-0.0846179575,
-0.022978982,
0.4262554348,
-0.0508766659,
0.1780267656,
0.0066016102,
0.0573433787,
-0.5211538076,
0.1728515625,
-0.1369977593,
-0.1579048038,
-0.3792927563,
-0.1082618758,
-0.1152308509,
0.3877605796,
-0.1813654006,
-0.0864764526,
0.1596706063,
0.150489226,
-0.0718192756,
-0.1262717396,
-0.1037981361,
0.1233524531,
0.0714028403,
0.0906175002,
-0.6953415275,
0.3920569122,
0.2789388895,
0.0548489578,
-0.2176357508,
0.2317310125,
-0.0456585996,
-0.2940308452,
0.0523777716,
0.2249439359,
0.2338958681,
-0.1588654369,
-0.4249765277,
0.0298047513,
0.3272550404,
-0.0199339893,
-0.1682196558,
0.4148457348,
-0.0735298246,
-0.0860977396,
-0.4220730066,
0.4835672379,
-0.0940233618,
0.4029451311,
-0.1599094868,
-0.0625058264,
0.0480616987,
0.1892825514,
-0.2036751956,
-0.2096896172,
-0.0529219471,
0.2995162904,
0.1877168715,
0.2752785683,
-0.2435819954,
0.447091043,
0.7448371053,
0.0350885168,
-0.072068058,
0.2781617045,
-0.0195395127,
-0.2479201406,
-0.0599323288,
0.0952595845,
0.3652763963,
0.0646612421,
0.2216392905,
0.115891844,
-0.1229742989,
-0.2536589503,
-0.0077808443,
0.2639901042,
0.1566016078,
-0.0100724986,
0.2818866074,
-0.0750233904,
-0.2509470284,
0.1176291034,
-0.0121422289,
0.0026536919,
-0.150961712,
0.3371889889,
-0.3686794341,
0.0113472929,
0.0587112457,
-0.5471535921,
-0.0946600735,
-0.3144319057,
-0.1246986017,
0.2293172777,
-0.03630393,
-0.0210860576,
0.5416873693,
0.0074515268,
0.2658097148,
0.0552181862,
-0.0712553412,
0.0766029432,
-0.2392053902,
0.0723665282,
-0.0737971067,
-0.2191994488,
-0.0197298769,
0.2536250055,
-0.2125405222,
-0.2188148648,
-0.2020043731,
0.0020514068,
-0.4176459312,
0.2868644595,
0.1244974658,
0.3577859402,
0.0863531232,
-0.1363050789,
0.0286891833,
0.7422841787,
-0.2904426455,
0.0333606526,
0.1572048515,
-0.0130647225,
-0.2704991102,
-0.3338179886,
-0.2083852589,
-0.0691349059,
0.6958269477,
0.2305348963,
0.1344954818,
0.1984083951,
-0.0606455952,
-0.201424852,
0.3159998059,
-0.1195727736,
-0.2812665105,
-0.3180607855,
0.2908923626,
-0.1502925158,
-0.4329235256,
-0.1716617495,
-0.2320411205,
0.1632245928,
-0.0522461124,
-0.2677069306,
-0.0519599356,
-0.3353413045,
0.2634573877,
0.1147338226,
-0.0183235332,
0.3230092525,
0.0054675448,
0.003128086,
-0.0969488919,
-0.0848344639,
0.2513019741,
0.0311409887,
0.1827375144,
0.1495403945,
0.2881785333,
0.0694666356,
0.3716078997,
0.448758781,
-0.0575880706,
0.0708739311,
-0.2050478607,
0.0590156876,
-0.3577527404,
-0.0285773389,
-0.3248990476,
-0.0913258344,
-0.1134556681,
0.1470745206,
-0.0445474721,
-0.1424789429,
0.2277162969,
0.2406811267,
0.0588043332,
-0.1793932319,
0.0593519099,
-0.1386317611,
-0.0676757917,
0.1251194626,
0.1005210206,
-0.2591460347,
-0.2106322348,
-0.1890940368,
-0.2704481781,
0.3228021562,
-0.1335510761,
-0.4832397997,
-0.3275098503,
-0.29353863,
0.0865741521,
0.0658592582,
0.3359498382,
0.1210124046,
-0.3332603872,
0.172048524,
0.0042105252,
0.6275282502,
0.1835336387,
-0.1038915217,
0.2392939478,
-0.3792848587,
-0.5593375564,
-0.2233466804,
-0.3037459552,
0.0582429953,
-0.0733968318,
0.701197207,
-0.4322920144,
-0.2735142112,
-0.1542565972,
0.0225945767,
-0.1823843569,
-0.1103193015,
-0.1726929694,
-0.0383674055,
-0.0809846669,
-0.3157396317,
0.1211032644,
0.0220623054,
-0.201371938,
-0.5030106902,
-0.0302702412,
-0.1497216076,
0.0327283181,
-0.1705442816,
0.2045018524,
0.1852382123,
-0.0533425473,
0.182963267,
0.3905874789,
-0.3235557973,
0.5041465163,
0.1633860618,
-0.4202215672,
-0.05676971,
-0.0522577055,
-0.0387411341,
0.1707345247,
-0.2789491415,
0.3413132727,
-0.2047440261,
0.1857426316,
-0.4233266413,
0.026190063,
0.5656719208,
0.1640045196,
-0.1857059598,
-0.4488421977,
0.4633073509,
-0.0362385139,
-0.236123845,
0.2130216509,
-0.4771499634,
-0.2249504775,
0.0851177499,
-0.0977166891,
0.6535151601,
-0.0141149629,
0.3276812136,
0.7303428054,
0.2532289624,
0.6516919136,
-0.2009021044,
0.1017260924,
-0.037871968,
-0.2553576529,
-0.2321522981,
-0.0990923867,
-0.2437692136,
0.0722094774,
-0.1671480536,
0.324919492,
-0.2017384171,
-0.0980901346,
-0.10916657,
-0.224654153,
0.3676774204,
-0.1916198879,
-0.2470278442,
0.0923594087,
0.1439548731,
0.2766925395,
-0.0290465821,
-0.1788527519,
-0.3586547375,
-0.0818019435,
0.0169009287,
0.0519190319,
-0.0419867933,
0.2930722535,
0.586974144,
-0.0869004503,
-0.1537225693,
0.3690273166,
0.1423906982,
-0.100472562,
-0.0946217701,
-0.1521722972,
-0.2162116766,
0.11407011,
0.1403345764,
-0.1992441565,
0.1869891733,
0.1408911198,
-0.0671957433,
-0.0583789311,
-0.1235269159,
-0.0281105936,
-0.1539423913,
0.3628603518,
-0.1732288301,
-0.3580103219,
-0.133551538,
0.1337677985,
-0.0743305087,
0.0093412139,
0.1406383365,
-0.0720639899,
-0.1272351891,
0.1793531477,
-0.1711454988,
-0.3843338192,
-0.1006318331,
0.4531825483,
0.3465635478,
0.2332885414,
0.5220939517,
0.2117369622,
-0.0131213842,
-0.0413363799,
0.1071977615,
0.2450933754,
0.0429083034,
0.2102356106,
-0.229663372,
0.0036052004,
-0.1185463443,
0.4313836098,
0.1401431859,
-0.0068081254,
-0.3198307753,
-0.2256007046,
-0.1199586987,
0.1146230847,
0.1380527318,
0.086932376,
-0.3789419234,
0.1209983379,
0.0172733665,
-0.2959542871,
-0.2442492992,
0.0440336987,
-0.1746988744,
0.0734404251,
0.1650624424,
-0.0672530234,
0.2527102232,
0.0798482075,
0.1422860026,
0.1194661185,
-0.2147550136,
-0.2483881116,
-0.0779387057,
0.024730945,
-0.1127660275,
-0.1158621684,
0.0402206369,
0.0732931569,
0.0024649377,
-0.2223987132,
0.0620979406,
0.0523648337,
0.1028144807,
0.0934443325,
0.1187893748,
0.1133369952,
-0.0887406468,
0.0219955016,
-0.1139063686,
0.3333355188,
-0.0880424902,
-0.0082743745,
-0.3272551894,
-0.0375974625,
-0.3286811709,
-0.004740932,
-0.0873388201,
0.0518624075,
0.386062026,
-0.1540907025,
-0.1757971644,
-0.1473935544,
0.3297917843,
0.4187699854,
-0.183976993,
-0.1148336828,
-0.3160580695,
0.1524475515,
-0.0430015288,
-0.1944518834,
0.2041417807,
0.4142587781,
0.0478669107,
0.3599617779,
0.0795382187,
0.1255007833,
0.0107441321,
-0.2078154832,
0.0908521041,
-0.0719287992,
0.3282034397,
0.2948704958,
-0.012539763,
0.1877644062,
0.1393259913,
-0.1076218486,
0.1366220117,
0.5006206632,
0.4455505908,
0.1572835445,
0.4649831951,
0.25764063,
0.1620321125,
-0.3960627913,
-0.0934353247,
0.211964041,
-0.0068732612,
0.1135133505,
0.2420563102,
0.1350421458,
0.0317593254,
-0.2465138435,
-0.0710506588,
0.1377978176,
0.0352618061,
-0.3907747865,
0.0854902193,
-0.0234660041,
-0.072578989,
-0.1907021701,
-0.0247699898,
-0.3372784853,
0.257761091,
-0.1021222994,
0.169077605,
-0.1788425297,
0.0724068135,
-0.0390337259,
0.1608752459,
-0.0112520857,
0.3989441991,
0.3208030164,
-0.1631929427,
0.0096528921,
0.0057607605,
0.1689158529,
0.0739875436,
-0.0025231391,
0.1851235926,
0.0849194974,
-0.1691345423,
-0.0921690241,
0.1738836914,
-0.2618694007,
-0.1227687672,
0.321552366,
0.1802615523,
-0.09504693,
0.3788059354,
0.1822903007,
0.3223466873,
-0.4141271412,
0.3234876692,
-0.3690622151,
0.0690213591,
-0.1374791414,
-0.2140280902,
-0.4857177138,
-0.1849496961,
0.4549845457,
0.0622961111,
0.3871015012,
0.0771669447,
0.1050898805,
-0.1980641484,
0.5660415292,
0.1562879086,
0.0848102793,
0.2197217941,
-0.0166593958,
-0.1285704523,
0.1937223524,
0.0282123983,
0.0746912956,
0.041125115,
0.2085579336,
-0.0126790097,
0.1919091195,
-0.248794347,
-0.3145217299,
-0.2395998091,
0.1238394901,
-0.6030548811,
-0.2136266977,
0.0546096824,
0.1322101057,
0.0227824897,
-0.1303686798,
0.3184503317,
-0.0531227477,
-0.0405780263,
0.0055197407,
0.2425612956,
-0.3423746824,
0.1814103276,
0.0602164604,
0.3718807101,
-0.1478214413,
-0.0252270456,
-0.126471296,
-0.2578125,
-0.1313628107,
0.0753138512,
0.5303565264,
-0.1008527577,
0.3721913993,
-0.1619532555,
0.2664506137,
-0.0218828153,
-0.1117808744,
0.2469824404,
-0.4401486218,
-0.3289556205,
0.2583470643,
-0.2655967772,
0.1213144362,
0.1467085332,
0.6770499349,
-0.0092602568,
0.1449605376,
0.2292735577,
-0.1296219826,
0.4818063378,
-0.2091839314,
-0.4057355225,
0.1518882513,
-0.1456568241,
0.1526301801,
-0.2212260514,
-0.0083841644,
-0.0904325172,
0.4702816606,
-0.3118604422,
-0.3027622998,
0.0298776422,
-0.0429787003,
-0.0823718607,
-0.2434902936,
0.3457027674,
0.1218631864,
-0.2046684623,
0.3793982863,
-0.2259827256
] |
https://github.com/huggingface/datasets/issues/888 | Nested lists are zipped unexpectedly | Thanks.
This is a bit (very) confusing, but I guess if its intended, I'll just work with it as if its how my data was originally structured :)
| I might misunderstand something, but I expect that if I define:
```python
"top": datasets.features.Sequence({
"middle": datasets.features.Sequence({
"bottom": datasets.Value("int32")
})
})
```
And I then create an example:
```python
yield 1, {
"top": [{
"middle": [
{"bottom": 1},
{"bottom": 2}
]
}]
}
```
I then load my dataset:
```python
train = load_dataset("my dataset")["train"]
```
and expect to be able to access `data[0]["top"][0]["middle"][0]`.
That is not the case. Here is `data[0]` as JSON:
```json
{"top": {"middle": [{"bottom": [1, 2]}]}}
```
Clearly different than the thing I inputted.
```json
{"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]}
``` | 28 | Nested lists are zipped unexpectedly
I might misunderstand something, but I expect that if I define:
```python
"top": datasets.features.Sequence({
"middle": datasets.features.Sequence({
"bottom": datasets.Value("int32")
})
})
```
And I then create an example:
```python
yield 1, {
"top": [{
"middle": [
{"bottom": 1},
{"bottom": 2}
]
}]
}
```
I then load my dataset:
```python
train = load_dataset("my dataset")["train"]
```
and expect to be able to access `data[0]["top"][0]["middle"][0]`.
That is not the case. Here is `data[0]` as JSON:
```json
{"top": {"middle": [{"bottom": [1, 2]}]}}
```
Clearly different than the thing I inputted.
```json
{"top": [{"middle": [{"bottom": 1},{"bottom": 2}]}]}
```
Thanks.
This is a bit (very) confusing, but I guess if its intended, I'll just work with it as if its how my data was originally structured :)
| [
0.2184680551,
-0.3172186315,
-0.1545520872,
0.4096398354,
0.0198082365,
0.0022648871,
0.1813224703,
0.1284824014,
0.1204209551,
0.1107621789,
-0.0894265473,
0.5233135819,
0.3309743404,
0.2051908821,
-0.1097116247,
-0.0653211847,
0.3139225543,
-0.0546333604,
-0.0289820209,
-0.0713041946,
-0.3160273731,
0.2633286417,
-0.3739172518,
0.0464866459,
0.1322628707,
-0.0521915369,
-0.257597208,
0.3128819168,
0.109259069,
-0.0722753555,
0.412761271,
-0.0793375522,
-0.108295463,
0.4087022841,
-0.0001130303,
0.1514421999,
0.2343340367,
-0.1096899584,
-0.2292565405,
-0.2896879315,
0.1124612466,
-0.4846194088,
0.1144391,
-0.2547376752,
-0.0396970622,
-0.2845827043,
-0.1264147907,
-0.6383928061,
0.4745339751,
-0.1257840842,
0.2245387584,
0.2374028265,
0.0665083602,
0.0422530435,
0.2652527392,
-0.0834822059,
-0.0373356007,
0.1073117927,
0.265154779,
-0.0105166594,
0.1435325295,
-0.0846476331,
-0.1027295962,
0.0434750058,
0.1424040645,
0.3884347975,
-0.3656548858,
-0.4055753946,
-0.3164651096,
0.131606549,
0.1293774396,
-0.0803916231,
-0.3327471316,
-0.4394020736,
-0.3403946757,
-0.436585784,
0.1443233937,
0.2944247723,
-0.0351612456,
0.2033888549,
-0.1429803371,
0.145497337,
0.026514519,
0.3943550587,
-0.0928070992,
0.5669489503,
-0.1781392246,
0.207533136,
-0.1415407211,
-0.0978917256,
0.3217331171,
-0.5392986536,
0.1195543259,
0.0827531964,
-0.0811449662,
0.0289477501,
-0.0254872423,
-0.2950786352,
0.0209244099,
0.2430078834,
0.0097585386,
0.0969804004,
-0.2464405,
-0.0963636786,
0.3439162672,
0.2305070013,
-0.1567774266,
0.0480110981,
-0.1993893534,
0.2459216714,
0.0642060712,
-0.0743027851,
0.3313899338,
-0.0181402601,
0.0041825869,
0.0940826014,
0.3247087896,
-0.0066130818,
-0.3000767231,
-0.017223265,
-0.6085448861,
-0.1270061731,
-0.0157088954,
-0.021210799,
-0.2186053395,
0.2345947474,
-0.0660571903,
0.3846605122,
-0.1284177601,
0.2158968598,
-0.196494773,
-0.1969261914,
-0.1403608024,
0.0498293228,
-0.0228431765,
-0.0731571764,
0.1988915503,
0.3086184263,
0.09859965,
-0.3232744634,
0.0642548054,
0.0588632822,
0.2998344004,
0.077031225,
0.0418176539,
0.3301212192,
0.2961994112,
-0.1713805497,
-0.0828473642,
0.1917275339,
-0.6464287639,
-0.062324252,
0.1348975003,
0.1534037441,
-0.4481500685,
0.0445793048,
0.0383602828,
-0.0374044105,
0.3544827402,
0.2428794801,
0.0145595968,
0.0994814783,
-0.3080239296,
-0.1964316666,
-0.1299650967,
-0.0610154793,
-0.2842944264,
0.114061296,
-0.2470974028,
0.1278834194,
0.4151360989,
0.1677794158,
-0.1544117779,
0.215607062,
-0.3377681673,
0.2923149467,
0.1259208918,
0.1345869005,
-0.4144973457,
0.3028039932,
-0.1807536483,
0.5522430539,
0.0382713899,
-0.0058978926,
-0.1193740666,
-0.131267488,
0.4894070327,
0.1428717077,
0.396998316,
-0.1976762116,
-0.2331187278,
-0.0353863575,
0.4713868201,
-0.1843083352,
-0.5262540579,
0.1478791237,
-0.1520498097,
-0.1689664871,
0.3451801836,
-0.1272337884,
0.035056375,
0.4289439917,
0.0043615736,
-0.0003773521,
-0.024130445,
0.0816468224,
-0.3355899453,
0.0989226773,
-0.2258456796,
-0.286085546,
-0.4463803768,
-0.0183769204,
-0.1477213055,
0.256442219,
-0.1700657159,
-0.0308612827,
0.1736152023,
0.2090605497,
-0.1163885221,
-0.3199605644,
-0.0105879717,
0.0195044447,
0.3265605867,
0.0976133794,
-0.6830199361,
0.4054056704,
0.2875938714,
-0.0113849156,
-0.1458495706,
0.0695440173,
0.1524824053,
-0.2553286552,
0.0180170033,
0.3207509816,
0.1593112051,
-0.1835820973,
-0.3426266015,
-0.1545603424,
0.1520856768,
-0.0245114639,
0.0242283717,
0.5047957301,
-0.0688403472,
-0.0377201177,
-0.2710857987,
0.5477913022,
-0.2554778457,
0.4314798415,
-0.2103955001,
-0.0547998436,
-0.0019475449,
0.1101338789,
-0.1451646388,
-0.1782767326,
-0.051948905,
0.3697811365,
0.1320609003,
0.2217055261,
-0.127253741,
0.5368804932,
0.62262398,
0.0149432626,
-0.1085236594,
0.2366560549,
-0.017270565,
-0.2339498699,
-0.0827029571,
0.1318301409,
0.4769050777,
0.1663245559,
0.2383285463,
0.0633732826,
-0.0466577634,
-0.2988384962,
0.0415329635,
0.2948475778,
0.1417428702,
0.0189413447,
0.2471593022,
-0.1103718504,
-0.1890183389,
0.1310885102,
-0.0676202327,
-0.0555508398,
-0.1847278923,
0.4284858406,
-0.4148806632,
0.1286703348,
0.0089593893,
-0.6086061001,
-0.1259290576,
-0.3674313128,
-0.0962765515,
0.1630173028,
-0.0332722589,
-0.0793734789,
0.3183373511,
-0.050881438,
0.2074661553,
0.0344278961,
-0.0979533046,
0.0549233854,
-0.3040455878,
0.1165449172,
-0.0992762148,
-0.1788054854,
-0.1328110546,
0.2860118747,
-0.0628292039,
-0.098380588,
-0.167787984,
-0.0613330305,
-0.3298406005,
0.4358929992,
-0.0053036916,
0.274027437,
0.1420143843,
-0.1684323698,
-0.0573887341,
0.811455667,
-0.2242005318,
-0.0530014373,
0.1051107347,
-0.1221107021,
-0.2619015276,
-0.2897170186,
-0.2417907417,
-0.0876348689,
0.5448135138,
0.2349028885,
0.0652131364,
0.0126598487,
-0.0915848315,
-0.4041168392,
0.466003418,
-0.2062159777,
-0.2937189937,
-0.3625421524,
0.3837713003,
-0.1704193354,
-0.3073125482,
-0.1411051303,
-0.2317970097,
0.2073755115,
-0.0551499128,
-0.206027776,
0.0694102496,
-0.2908574641,
0.1778524965,
0.0170112904,
0.0154639138,
0.2527925074,
0.1166266352,
-0.0228670873,
-0.1234940663,
-0.0833321959,
0.1336052567,
-0.1174999475,
0.318789959,
-0.0142858317,
0.1677419394,
0.0150166582,
0.2484379858,
0.3785092831,
0.1109356731,
0.1758627892,
-0.1604478657,
0.0411527157,
-0.2754459381,
-0.0336142629,
-0.4888681769,
-0.0638972148,
-0.1470774412,
0.104950577,
-0.0306320302,
-0.2773480713,
0.2061711699,
0.0542600676,
-0.0645457208,
-0.124248147,
0.0656338036,
-0.1353943497,
-0.0298898537,
0.1548279077,
0.0780923665,
-0.2866790295,
-0.2804620266,
-0.2260524631,
-0.3523413241,
0.3581948876,
-0.1251735091,
-0.5212156773,
-0.3446736634,
-0.0681024641,
0.2324887663,
0.0155183133,
0.249062404,
0.1768509746,
-0.3771738112,
0.0962256193,
-0.0448235907,
0.5204254985,
0.2217600197,
-0.0332037769,
0.3260823786,
-0.1375299841,
-0.4786704779,
-0.2850193381,
-0.3057844341,
0.2125431597,
-0.1146561354,
0.6859154701,
-0.4032101631,
-0.1047900692,
-0.0662885606,
0.1085295156,
-0.1328312904,
-0.204720363,
-0.2061843425,
-0.0107841529,
-0.0190011766,
-0.246589601,
0.0428601354,
0.1672842354,
-0.3029407561,
-0.4507915378,
0.0202640705,
-0.1985382736,
0.0193104278,
-0.2084350139,
0.28440696,
0.106971249,
-0.0047231331,
0.1485112756,
0.4633724093,
-0.3736361563,
0.657438457,
0.2314501405,
-0.2134835273,
-0.0199564639,
-0.0827866495,
0.0931332409,
0.156518802,
-0.2462542355,
0.3424844146,
-0.1902334988,
0.094013229,
-0.2823219299,
-0.1878391951,
0.4364049733,
0.0247590635,
-0.166412428,
-0.4040622711,
0.4862019122,
-0.1526127756,
-0.2920733392,
0.1725666076,
-0.754637599,
-0.1507409066,
0.0666648373,
-0.0745668635,
0.7946742177,
0.1333989203,
0.1628905684,
0.5988462567,
0.1569942385,
0.3440332413,
-0.2301675677,
0.1290617436,
-0.120024167,
-0.1831690222,
-0.1518255323,
-0.1016810015,
-0.2299714833,
0.2175675035,
-0.1713267416,
0.3684470952,
-0.3066543937,
-0.207958281,
-0.0820806623,
-0.2884982228,
0.2763157785,
-0.1397381425,
-0.3677800596,
0.0831406191,
0.0889604613,
0.1820563376,
0.0162744448,
-0.223285526,
-0.4019069672,
-0.1828647703,
0.1694711149,
0.188185975,
0.0737715587,
0.238206476,
0.5669978261,
-0.090838775,
-0.2376577556,
0.2308871746,
0.0378215387,
0.0083171986,
-0.0510928892,
-0.0868953466,
-0.0498084538,
0.1095717251,
0.1393975616,
-0.0793704614,
0.0019792244,
0.1429877281,
-0.1889207363,
-0.0380922258,
-0.1322386712,
-0.07500159,
-0.2670204043,
0.3036190867,
-0.0664987564,
-0.4930696487,
-0.0863870531,
0.1625571251,
0.0961074084,
-0.0442148894,
0.1409608424,
-0.0584476702,
-0.0600007698,
0.2154300362,
-0.2095662355,
-0.389890343,
-0.1302580833,
0.4818535447,
0.3542085588,
0.331403017,
0.5364956856,
0.1173824891,
-0.0052481638,
-0.0615889542,
0.177437529,
0.1731760055,
0.0555570051,
0.230841741,
-0.2614547312,
0.1389485151,
0.0255603269,
0.2495400161,
0.153805092,
0.0933204442,
-0.2747826576,
-0.2578544021,
-0.0123965843,
0.0752704293,
0.2469941825,
0.0264129005,
-0.3694917858,
0.0166560952,
-0.0655557737,
-0.2943482399,
-0.2588207722,
0.1187271103,
-0.0735041872,
0.0706629679,
0.063294813,
-0.0498928167,
0.098306641,
0.1755086482,
0.1788017899,
0.0973352492,
-0.0939834267,
-0.2423440367,
-0.0893193856,
0.0399383903,
-0.0994460732,
-0.0512976162,
0.0312255342,
0.061944291,
0.1177682504,
-0.140818119,
-0.0800768435,
-0.050160341,
0.1151593626,
0.0494763441,
0.1752444953,
0.0092204846,
-0.1670494825,
0.0650654584,
-0.1628142744,
0.3521942496,
-0.0734154731,
0.0229961872,
-0.2047651559,
-0.0357833877,
-0.3333110809,
-0.118188709,
-0.0601645745,
0.2736844122,
0.4423305094,
-0.1754455715,
-0.0991264582,
-0.1710652113,
0.3002392054,
0.4621213078,
-0.1071060598,
-0.058222428,
-0.422837764,
0.1897700429,
-0.0301654376,
-0.2206501365,
0.0477975793,
0.406750083,
-0.0115042347,
0.3411345482,
0.0762360767,
0.0044594272,
0.1875851303,
-0.1609862447,
0.2129373252,
0.0691064596,
0.2861249745,
0.4457658827,
-0.0188226402,
0.1424776912,
0.1934846193,
-0.1898762584,
0.0758741796,
0.4038383067,
0.4355385602,
0.1002633423,
0.5404440165,
0.1917516142,
-0.0507729016,
-0.386857152,
-0.1148917675,
0.1924686283,
0.1613171995,
0.1440419555,
0.3425577283,
0.1328894496,
-0.0233403202,
-0.1878121942,
-0.1028040573,
0.1639952064,
0.1770244092,
-0.4165562391,
0.0156629235,
-0.1586010009,
-0.1736985445,
-0.0960782468,
-0.0284380335,
-0.216784656,
0.2008899003,
-0.1973616481,
0.1110694557,
-0.2086459994,
0.1426243484,
0.0291804746,
0.1135153025,
-0.1219932139,
0.3748129904,
0.4225358665,
-0.1691361964,
0.1362072676,
-0.021461986,
0.1988120973,
0.1122125611,
-0.0623033047,
0.0575758778,
0.1041240543,
-0.2180201262,
-0.0522047207,
0.172410965,
-0.2057877928,
-0.1832587272,
0.2945329547,
0.2070865929,
-0.1300414801,
0.545981586,
0.2538107336,
0.3727188706,
-0.3281885982,
0.2841491997,
-0.2704299986,
-0.030711595,
-0.1845010221,
-0.3561420143,
-0.4568127096,
-0.2268986702,
0.3489003479,
0.1265206933,
0.3013011515,
0.0669780225,
0.1108611524,
-0.1432697773,
0.5278853178,
0.1273640245,
-0.0721035749,
0.1525623649,
-0.0574443191,
-0.0945012569,
0.3024395406,
-0.1291500032,
0.079284966,
-0.0166698024,
0.0780355483,
0.0833574533,
0.1977618337,
-0.2263825536,
-0.2716868222,
-0.3187077343,
0.2024099082,
-0.6554204226,
-0.2455457449,
0.3589972854,
0.206742838,
0.0032623901,
-0.1457838565,
0.2539189756,
-0.0299184714,
0.0071009225,
-0.0184246488,
0.0441923924,
-0.243745625,
0.18840532,
0.1571173519,
0.4281647801,
-0.0677080378,
-0.0735553354,
-0.1380260438,
-0.2773785889,
-0.1953831017,
0.1449756473,
0.5468016863,
0.0324329734,
0.3450415432,
-0.1000138372,
0.3605940044,
-0.1093715727,
-0.1459470242,
0.1021507829,
-0.2745305896,
-0.2356794626,
0.2147418857,
-0.2724906802,
0.0901661813,
0.0718507245,
0.6004974246,
0.0255685169,
0.2015386224,
0.2285085469,
-0.0928082168,
0.3809427023,
-0.1058682054,
-0.4406685531,
0.2755938768,
-0.1367698461,
0.1099883541,
-0.2000231892,
0.2015325725,
-0.0702718124,
0.5745113492,
-0.2451066226,
-0.1149067208,
0.0288585797,
-0.0563111193,
-0.1113772839,
-0.1828140765,
0.2170538753,
0.1465842575,
-0.1766924858,
0.2814048529,
-0.161672309
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Yes right now `ArrayXD` can only be used as a column feature type, not a subtype.
With the current Arrow limitations I don't think we'll be able to make it work as a subtype, however it should be possible to allow dimensions of dynamic sizes (`Array3D(shape=(None, 137, 2), dtype="float32")` for example since the [underlying arrow type](https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L236) allows dynamic sizes.
For now I'd suggest the use of nested `Sequence` types. Once we have the dynamic sizes you can update the dataset.
What do you think ? | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 85 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Yes right now `ArrayXD` can only be used as a column feature type, not a subtype.
With the current Arrow limitations I don't think we'll be able to make it work as a subtype, however it should be possible to allow dimensions of dynamic sizes (`Array3D(shape=(None, 137, 2), dtype="float32")` for example since the [underlying arrow type](https://github.com/huggingface/datasets/blob/master/src/datasets/features.py#L236) allows dynamic sizes.
For now I'd suggest the use of nested `Sequence` types. Once we have the dynamic sizes you can update the dataset.
What do you think ? | [
-0.1616062224,
0.0108413659,
-0.0666190162,
0.1772313863,
0.3133355081,
0.0057716575,
0.5568302274,
0.1153364331,
-0.139741689,
0.0790206864,
0.1618121564,
0.061189115,
-0.2482873648,
0.2882795334,
0.1433377117,
-0.4168107808,
0.1650114506,
0.2572269142,
0.0553815588,
0.1130092368,
-0.1897822767,
-0.2030608356,
-0.2229626477,
0.192425698,
-0.2032821327,
-0.1325577348,
-0.2312774062,
-0.1746640056,
-0.2154565454,
-0.4873971641,
0.3294048011,
0.1431979388,
0.2426177412,
0.137681812,
-0.0001154924,
-0.0107513359,
0.3926020563,
0.0132956589,
-0.1953312159,
0.0277077928,
0.0773621872,
-0.488039434,
0.1142668948,
-0.3838243484,
0.106390439,
-0.9378994107,
-0.0416391417,
-0.0897190496,
0.1050876006,
0.050092876,
0.1922921836,
0.1715774238,
0.3899650276,
-0.0105453664,
0.4836089909,
0.3242553174,
-0.2707021832,
-0.0386976339,
0.3831059635,
0.1397042423,
0.0771355405,
-0.1748770624,
-0.0284895357,
0.0574248619,
0.472086668,
0.1713974625,
0.2727362216,
-0.1684579551,
-0.1026952118,
0.4105274677,
0.4952411056,
-0.2319113314,
-0.3075930476,
-0.3115697503,
0.0032650719,
-0.1753807515,
-0.107308723,
0.2137749791,
-0.1296340823,
-0.0140749309,
-0.1534997821,
0.1548553854,
-0.4418313801,
0.314347297,
0.1075724661,
0.1329266727,
0.0735217407,
0.2417718619,
-0.2476109415,
-0.5056381226,
0.4316932559,
-0.2360915095,
-0.027042428,
0.1407021433,
0.0072508301,
-0.0080921231,
-0.1698650271,
-0.3400793076,
0.4770569503,
-0.1000493243,
0.3479023278,
0.0111997686,
0.1662004441,
0.0931350291,
0.0409677401,
0.3405997157,
-0.1212567091,
-0.2747883797,
-0.1511277407,
0.1171396896,
0.1713354141,
0.0727716088,
-0.2241659909,
-0.1283683628,
0.2919896245,
-0.1056136936,
0.2182833254,
0.3313550651,
0.0621667765,
-0.0202997308,
-0.5062041879,
-0.1305088252,
-0.0367950574,
0.1205359623,
0.0674205944,
0.1349912733,
-0.0809327811,
0.3865689039,
0.1314043552,
-0.0055815796,
-0.0967657268,
-0.1221148148,
-0.1639344245,
-0.0432267338,
-0.0311276745,
0.2660102546,
-0.0362321101,
-0.0843534246,
0.1206868961,
0.1519425213,
-0.0673130006,
0.1036842614,
0.112658143,
0.0875580981,
-0.1935006231,
-0.2413787097,
-0.2568318844,
0.0092554726,
-0.2337168604,
0.3463323116,
0.019691363,
-0.2524262965,
-0.4545677602,
0.1253437549,
-0.2485115528,
-0.0374919809,
-0.2303137928,
0.2204686552,
0.2725119293,
0.0192479212,
0.1092601418,
-0.0748156235,
0.0403705575,
-0.4584240019,
-0.0161775891,
-0.0629343688,
-0.2794121802,
0.1130259931,
0.0052772923,
-0.0103956852,
-0.1350496113,
-0.0232582353,
-0.1822221279,
0.0009781402,
-0.0583324209,
0.1994725019,
0.4691612124,
0.2001066655,
-0.0442868881,
0.0683371648,
0.099399209,
-0.1840388179,
0.3197769821,
0.0600175261,
-0.0458099023,
-0.1721126884,
-0.2826548219,
0.3145982027,
-0.0964620486,
-0.169590503,
-0.0800118074,
-0.570694685,
0.3061466515,
0.1484424025,
0.098455511,
-0.0734468326,
0.0419842117,
-0.4109463096,
0.2504272163,
-0.4095450342,
0.2487359941,
-0.0755419508,
0.2601501942,
-0.0907997191,
0.117057614,
-0.2781338394,
-0.8328422904,
0.207608521,
-0.3454921544,
-0.1067002267,
0.0295049567,
-0.1889726222,
-0.1704301983,
0.1456987411,
-0.1304070354,
0.1564950645,
0.0873011947,
0.0034688914,
0.056150198,
-0.2968779206,
-0.2516318858,
-0.3527004123,
-0.0608820133,
-0.0207407568,
-0.4056302905,
0.4219983816,
0.1468447894,
-0.2653647959,
-0.2945562303,
0.2871393859,
-0.0391320474,
-0.0812377185,
-0.0405562781,
0.2517082095,
-0.094323732,
0.0002014772,
-0.536909163,
0.1763550937,
0.0346697979,
-0.1743860394,
0.3629360497,
0.0060330448,
0.0265158229,
-0.1310425103,
0.2302035093,
0.456802547,
-0.0022051861,
0.4285460114,
-0.1744945943,
-0.0404055826,
-0.0721172318,
0.1969554424,
-0.0736594722,
-0.1658543795,
-0.2773365378,
0.2361840755,
0.1594385505,
-0.0260371454,
-0.202352047,
0.1595484018,
0.2601911426,
-0.102190204,
0.0460608788,
0.1400890201,
-0.2551285625,
0.0729362145,
0.1663906127,
0.1524059772,
0.1684519649,
0.2051690817,
-0.122324273,
-0.0231504012,
-0.1620206535,
-0.0988157094,
0.2174188793,
0.1760278046,
0.4924125671,
0.0949758217,
0.4513032734,
-0.1852275431,
-0.1904085577,
-0.0040294463,
0.0273080152,
0.0714369938,
-0.1541873366,
0.0563470535,
-0.0956584662,
-0.0615259781,
-0.0848441944,
-0.6617180109,
-0.0479579903,
0.0101695061,
0.0034060737,
0.0023371156,
-0.1764205992,
0.2182943821,
0.0707680434,
-0.1285051107,
0.2033283561,
-0.1506585926,
-0.1665371954,
0.0061285887,
-0.0245499313,
0.0636501461,
0.2478207648,
-0.0018961484,
0.008557789,
0.2448379397,
0.0823838189,
-0.3313172758,
-0.3151357174,
-0.008297598,
-0.152857095,
0.2326386124,
0.4319125712,
-0.0495443754,
0.1705276519,
-0.3125086129,
0.3104338944,
0.0129283583,
-0.2742747366,
0.1388647705,
-0.2198169976,
0.1748545021,
-0.1059626415,
0.0077490862,
-0.1792991012,
-0.3620899916,
0.3248401284,
0.4152487218,
0.1981841028,
0.2461230457,
0.3520290852,
0.1719938815,
-0.0005936917,
0.0170385577,
0.1446621269,
0.2558497488,
0.3828645349,
-0.0266485568,
-0.1819358617,
-0.1355108768,
-0.9175078869,
0.0974401981,
0.3725891411,
0.0600480102,
-0.1703148931,
-0.1563495696,
0.2750999629,
0.0853942707,
-0.0136378529,
0.4456554651,
0.1230398864,
0.0161780156,
-0.0962933525,
-0.0493288413,
0.3227925301,
0.2541520894,
-0.0290215909,
0.2366010845,
0.3795797825,
-0.1161513627,
0.6229424477,
0.0335688889,
-0.4343718886,
0.315205276,
-0.2801404595,
-0.1684264541,
-0.1951778531,
-0.0541305467,
-0.1407592297,
-0.0307093095,
-0.0905177146,
-0.0600011796,
-0.1186708808,
-0.3501569629,
0.1830917001,
0.1964473575,
0.0443267263,
0.0143346703,
0.1271087676,
0.0562777668,
0.3102788925,
-0.1323704571,
0.0103132185,
-0.3922722042,
-0.2343608141,
-0.2627181113,
-0.2672702372,
0.16224657,
-0.0061255964,
-0.2194531113,
0.071656622,
-0.0161601361,
0.3092058003,
0.5854971409,
0.1012934893,
0.3075445294,
-0.2115696818,
0.0656301454,
-0.0478951521,
0.3690643311,
-0.1495688409,
-0.2604705691,
0.4619350433,
0.1115683243,
-0.4515559673,
-0.1744280756,
-0.0168555565,
-0.1202257797,
-0.2905307412,
0.1574336886,
-0.3936347961,
-0.0258700829,
0.3197915256,
0.2921334207,
-0.03643886,
-0.1393869221,
-0.136489749,
-0.0923476443,
-0.1867286265,
-0.2591009438,
0.0299790613,
0.3263769448,
0.1582377255,
-0.3826509416,
-0.462987572,
-0.1317448914,
-0.2740683854,
0.0501399338,
0.4171843529,
-0.1065526232,
0.1590992361,
-0.3115159869,
0.0425375439,
0.2721481621,
0.1653780341,
0.1622939557,
0.0412533805,
0.0049723624,
0.1017697155,
0.4132729471,
0.1775953919,
-0.1318427622,
0.1368515939,
0.0340916589,
0.0879233703,
-0.2265189886,
-0.2132217288,
0.4135328233,
-0.3542908728,
-0.0208451692,
-0.3419048786,
0.6716284752,
-0.0275884718,
0.1143835112,
0.2011253983,
0.3124505877,
-0.1880146116,
0.2436714172,
0.6279744506,
0.8101685643,
0.0826609507,
0.0925122052,
0.6586755514,
0.0395745374,
-0.0368229598,
0.4076531231,
0.0628157258,
-0.4858418107,
0.1058625132,
-0.152380541,
-0.2838107049,
0.2352136374,
0.0837630108,
-0.1277510226,
-0.0044285106,
-0.0640943572,
0.4120751321,
0.105051294,
0.013397038,
-0.3504089713,
-0.2208381444,
-0.1791246533,
0.0456854738,
0.0559174307,
-0.4603311718,
-0.0490149818,
-0.3513250351,
0.0252597854,
0.0259789284,
-0.1247503832,
-0.237387225,
-0.3729756474,
-0.0640469715,
0.4174677134,
-0.5670102239,
0.1183716655,
0.2152516246,
-0.0177164432,
-0.2802427709,
-0.1261244118,
-0.0766263902,
0.1672941893,
-0.2428413033,
-0.2445150614,
-0.3188096285,
0.2764324546,
0.0674628019,
-0.0918486491,
-0.1010532156,
0.0350773931,
-0.038398087,
-0.1744728535,
-0.0141754542,
0.2645861208,
-0.3808229864,
-0.0809328184,
-0.215304628,
-0.0524790511,
-0.1254985332,
0.0665171519,
0.0475823618,
0.0788214505,
-0.0933829993,
0.1883076727,
0.149684459,
-0.0993909463,
-0.0204071347,
0.5038687587,
0.3624753058,
0.3046236038,
0.2016716748,
0.0599655919,
-0.1735871732,
0.3485203683,
0.4494481087,
-0.5054565668,
0.1632678956,
0.1418392509,
-0.2478165478,
-0.136398986,
0.5404831171,
0.0394271836,
0.2122331262,
-0.0787899047,
0.0117735714,
-0.4203206897,
0.4531824291,
0.0842343718,
0.3178561926,
-0.2962428927,
0.0066832155,
-0.0164404996,
-0.003370079,
-0.2555531263,
0.0823910236,
0.1399246007,
-0.1206922904,
-0.4355019629,
-0.0697565526,
0.0899368376,
0.1302218735,
0.0567970052,
0.0431439579,
-0.4732172489,
-0.136635825,
-0.0630607903,
0.1465229988,
0.1113867238,
-0.0750959292,
0.1088626161,
-0.0356662869,
-0.3903196752,
-0.1736460626,
-0.0385057554,
-0.1806108654,
-0.1987411082,
-0.0751568079,
0.2943124175,
0.0307448935,
-0.3263243437,
0.0314625502,
-0.1110589653,
0.2427467406,
0.0838691592,
0.1172857806,
-0.0286931638,
-0.0710217953,
-0.0777910277,
0.2803218365,
-0.020985065,
-0.245762974,
0.3363737464,
-0.2781672478,
-0.4002946019,
-0.1711622179,
0.555498898,
0.2221172899,
-0.10556674,
0.077541694,
0.0982767195,
0.1608130932,
-0.3934294283,
0.0250373967,
0.1438297927,
0.0519385897,
0.2361171246,
0.4788059294,
0.3344215751,
-0.0777620301,
-0.0287040416,
0.1193266958,
-0.1326758265,
-0.0002069063,
0.0437339731,
0.6355384588,
-0.125876829,
0.0485185049,
0.4811273515,
0.1939938515,
0.4050463736,
0.0457964316,
0.0016181401,
0.3823401332,
0.3568308651,
-0.1043538898,
0.2455846071,
-0.0511927158,
0.0729861036,
0.179374665,
0.492574811,
-0.0442359634,
0.2195578814,
0.7067696452,
0.2334743887,
-0.0554626137,
-0.2771451175,
-0.1155784056,
0.0063221054,
-0.0822099298,
-0.0751168951,
-0.1691105813,
-0.3798797429,
-0.3740453124,
-0.2321602106,
-0.4588373601,
0.2907001078,
-0.2336006612,
0.2934202254,
-0.4083956778,
0.5953160524,
0.2168376744,
0.051691968,
-0.1279551387,
0.5140503049,
0.4316692352,
-0.0781320706,
-0.0360896736,
0.4701980352,
0.2200420946,
0.2157691121,
-0.321705848,
0.0058282227,
-0.0964449272,
-0.2204751223,
0.1055469513,
0.060339205,
0.1476793587,
0.1796261072,
0.2984699011,
0.0671431795,
-0.0987445787,
0.2173955441,
0.1905702055,
-0.0963218659,
-0.270799011,
0.3887594044,
-0.2764680684,
-0.0880611166,
0.0133799585,
-0.0852080211,
-0.3422196209,
-0.0359237678,
0.2539329231,
-0.1686332822,
0.0642235205,
0.038552057,
0.0512695648,
-0.2165198922,
0.5640590787,
0.0377694778,
0.3752738237,
-0.0008872706,
0.0180552956,
-0.3669318557,
0.2662677467,
-0.2843759358,
0.0349874347,
0.3976564109,
0.1515060663,
-0.0319142006,
0.0935209095,
0.2348976582,
0.2483495027,
-0.0476071835,
0.3987118006,
-0.3823178113,
-0.0468160659,
0.3674174845,
0.0457463041,
-0.0166747067,
-0.3289564848,
0.2313164026,
-0.3987182975,
-0.039868772,
0.1851510108,
0.0911637396,
0.0733310729,
0.0101798903,
0.4556728601,
-0.0521391369,
-0.0057956185,
0.1570113301,
-0.0347005948,
-0.3226483166,
-0.3023776114,
-0.2103191912,
0.2482533306,
0.1688109487,
0.4968718588,
-0.2597643733,
0.1670036465,
-0.0114529757,
-0.139311865,
-0.0138447033,
0.1429246366,
-0.2275400758,
0.5355848074,
-0.4553391933,
-0.0262941625,
-0.0327975862,
-0.0646307915,
0.0457298793,
0.0954743698,
-0.1081475094,
-0.51935637,
0.6752310991,
-0.0691896379,
-0.4102226794,
0.189044401,
-0.1185930148,
0.5248758197,
-0.072240822,
-0.2589222491,
0.0343662053,
0.3283542097,
0.019148808,
0.088161841,
0.0410503075,
0.0724669173,
-0.0939226374,
-0.2172297686,
0.1776493639,
-0.1318300217,
-0.1210477278,
-0.3250684142,
-0.512896657
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | > Yes right now ArrayXD can only be used as a column feature type, not a subtype.
Meaning it can't be nested under `Sequence`?
If so, for now I'll just make it a python list and make it with the nested `Sequence` type you suggested. | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 45 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
> Yes right now ArrayXD can only be used as a column feature type, not a subtype.
Meaning it can't be nested under `Sequence`?
If so, for now I'll just make it a python list and make it with the nested `Sequence` type you suggested. | [
-0.1496906132,
0.0466833338,
-0.0832266286,
0.1190684512,
0.2730077803,
0.1201473102,
0.6236192584,
0.1325295568,
0.0004307908,
0.1169991717,
0.2726795375,
0.2137200534,
-0.148215428,
0.0873370543,
0.149497956,
-0.3523186743,
0.2304176539,
0.3752020597,
0.1984270066,
0.0808257386,
-0.1512221545,
-0.0965421423,
-0.2307989597,
0.3625941873,
-0.2430003583,
-0.115322575,
-0.1199119613,
-0.0832744017,
-0.1397197098,
-0.5142062306,
0.4007090628,
0.0255217608,
0.2322932333,
0.1146211624,
-0.0001181501,
-0.0146637987,
0.4348634779,
0.0591646172,
-0.1229832321,
-0.004891579,
0.1011946723,
-0.4042516053,
0.2644627988,
-0.4277361631,
-0.0240511596,
-0.9039795995,
0.0427298397,
0.0066633332,
0.1252934784,
0.2079316676,
0.1442271322,
0.1297574341,
0.4764492512,
-0.1806752384,
0.4600849152,
0.1405650973,
-0.2944955528,
-0.080783993,
0.5120019913,
0.1438987553,
0.0992068052,
-0.3135210574,
-0.1309570223,
0.0707384869,
0.440623492,
0.341997385,
0.2460747659,
-0.258565098,
-0.2623868287,
0.3397233486,
0.4132309854,
-0.1750990301,
-0.1234788001,
-0.1843845546,
0.0357517749,
-0.2876296043,
0.0165761523,
0.1087386236,
-0.2263008505,
0.0154625196,
-0.0096945111,
0.1207380369,
-0.4009538591,
0.3173991442,
0.1675136387,
0.292838037,
0.0707613528,
0.2630764246,
-0.1044255868,
-0.348195821,
0.575660944,
-0.2738814652,
0.1003332883,
0.2177470326,
-0.0703516155,
0.0229678452,
-0.1750973016,
-0.3643653095,
0.4070279598,
-0.0397156999,
0.2340949625,
-0.0654597357,
0.2624445558,
0.1516703069,
-0.0850227773,
0.3085604608,
-0.0135917338,
-0.2896940112,
-0.0956176594,
0.1351407915,
0.0693399012,
0.0423803627,
-0.2960190177,
-0.0798207298,
0.2877988815,
-0.0363069735,
0.2192564905,
0.229450196,
0.0576041639,
0.0001429104,
-0.4910032451,
-0.216302678,
-0.0469096303,
0.2278481275,
0.1335303932,
-0.0912335142,
-0.1209773272,
0.393163383,
0.1145651042,
0.0539096668,
-0.1054862216,
-0.0203387495,
-0.1385608315,
0.0261314306,
-0.0925685018,
0.149864316,
0.1324962378,
-0.0177042577,
0.1824236214,
0.1176806763,
0.1183418185,
0.1672092527,
0.1050796956,
0.1216107756,
-0.0390887149,
0.0213914849,
0.0607711449,
-0.0322819427,
-0.2146696299,
0.3445395827,
-0.1502035558,
-0.2812198699,
-0.4611908495,
0.0951250419,
-0.2679344118,
0.0268109906,
-0.0855623782,
0.0531745329,
0.3206283748,
-0.0092903199,
0.0700605288,
0.0084871538,
0.0941198543,
-0.3910104632,
0.0102528529,
-0.2070116103,
-0.3107109368,
0.1050078273,
-0.1832686961,
-0.0511370711,
-0.1033404544,
-0.0341765061,
-0.1830642819,
0.2111127079,
-0.2438433766,
0.3546352983,
0.4485313296,
0.1238440722,
0.0761407688,
0.0937400311,
0.0458833948,
-0.1258333027,
0.2754468024,
0.1234983578,
-0.04208133,
-0.2332235873,
-0.197822243,
0.1369554102,
-0.065023832,
-0.3227219284,
0.0924909487,
-0.3614102602,
0.4532862902,
0.0346870422,
-0.055667717,
0.1533394903,
-0.1450344324,
-0.3850352764,
0.1831589192,
-0.4505042136,
0.1036105677,
0.1198771894,
0.2142675966,
-0.0773840547,
0.0693559274,
-0.3480022252,
-0.7058079243,
0.1983202547,
-0.331861496,
-0.0510805622,
-0.0323289409,
-0.1590730399,
-0.2161265016,
0.1869291812,
-0.2282212079,
0.1236317456,
0.0654983521,
-0.0101883998,
0.1269927472,
-0.2844238281,
-0.3284110427,
-0.3324743509,
-0.0274132621,
-0.046229247,
-0.5676478148,
0.4337339103,
-0.0152602084,
-0.3834440112,
-0.2677718699,
0.258130461,
0.0449852832,
-0.0654631779,
0.0735678226,
0.2084103078,
-0.0886833668,
-0.1237081364,
-0.5375241041,
0.0925366282,
-0.0326055549,
-0.4755493402,
0.1485107541,
0.1747866571,
0.0008853278,
-0.2654137313,
0.1246096417,
0.3514432311,
0.2006998956,
0.5677339435,
-0.1623018831,
0.0468121208,
-0.0505776182,
0.1966941357,
-0.0660022125,
-0.0824708045,
-0.0508016124,
0.2496973723,
0.0501039363,
-0.0416223966,
-0.1632546484,
0.237459749,
0.3121315539,
-0.0719146281,
0.0712538734,
0.0841199458,
-0.1205454543,
0.0141473636,
0.1988031715,
-0.2263314873,
0.1835256517,
0.1453007013,
-0.1091467664,
0.1152716875,
-0.3458953202,
-0.0947079211,
0.1184053347,
0.0416253656,
0.4965807498,
0.0626618117,
0.2471486181,
-0.2160763443,
-0.1896663755,
-0.1980232298,
-0.0887106732,
0.1040931866,
-0.2519025207,
0.0450726934,
-0.2113893479,
-0.0883213952,
0.0093189031,
-0.5655489564,
0.0671066716,
-0.0881419331,
-0.1248617843,
0.135355711,
-0.0841238797,
0.2511497438,
-0.052204065,
-0.2421683967,
0.2563662231,
-0.0964113474,
-0.2533525825,
-0.0717591196,
0.0267720558,
0.0615802668,
0.1554648578,
0.0690753758,
-0.0449589565,
0.2691813409,
-0.0338180587,
-0.3550162613,
-0.275241375,
0.0499212854,
-0.2036171257,
0.2274008691,
0.4706679583,
0.1386537254,
0.0706330836,
-0.5315933824,
0.3367730677,
0.0535759032,
-0.3053090572,
0.2561754286,
-0.1780284643,
0.0555121675,
-0.0216428209,
-0.0892769694,
-0.1382263005,
-0.3535016179,
0.1806748509,
0.5079567432,
0.2637708783,
0.0704965442,
0.2626506388,
0.2246548533,
0.0375614129,
-0.0808724612,
0.181336686,
0.2828782201,
0.4597239196,
-0.174524501,
-0.2502918541,
-0.0227668844,
-0.8539389372,
0.0376880802,
0.1683426499,
0.1771160364,
-0.134453252,
-0.1827840209,
0.1993622482,
0.1049529463,
-0.0358288921,
0.3669691682,
0.1059952378,
0.0051780217,
-0.1473032236,
-0.0526274256,
0.4297552109,
0.0648395196,
0.0059896284,
0.2077498734,
0.3540019989,
-0.290482074,
0.4884472489,
0.2339157611,
-0.2760824263,
0.3280070722,
-0.272793442,
-0.1918716133,
-0.3395035565,
-0.0488789193,
-0.2594251335,
0.03476578,
-0.1329666227,
-0.0561422184,
-0.1326050013,
-0.3195638657,
0.1813720167,
0.3871634305,
0.0519080237,
0.0253866296,
-0.0014425031,
-0.0121574868,
0.2845229506,
-0.0957218334,
-0.0298593044,
-0.2548688948,
-0.1367804557,
-0.2171655744,
-0.2505756617,
0.1864919811,
-0.0306698382,
-0.4782133996,
-0.1128221452,
-0.0605327636,
0.2148713022,
0.5360185504,
0.0449311398,
0.1140573472,
-0.0836284384,
0.1271995008,
-0.1206832752,
0.4702153504,
-0.2056220174,
-0.253926754,
0.5924773812,
0.1768163741,
-0.4166942239,
-0.1383583695,
-0.0237040333,
-0.0376466848,
-0.3803614676,
0.1894269884,
-0.4217669368,
0.03247834,
0.3612160981,
0.2312786132,
-0.0839889124,
-0.1792083085,
-0.1439408511,
-0.2551184893,
-0.1262042075,
-0.3026901782,
0.0754064694,
0.3523683846,
0.1189747751,
-0.4888963401,
-0.3445182443,
-0.0403812155,
-0.2198517323,
-0.0591378585,
0.4252812564,
-0.2475015521,
0.0428386517,
-0.3103661537,
-0.0387656763,
0.0678389743,
0.1222124919,
0.1696277708,
0.0364893526,
0.0777313113,
-0.1879543215,
0.4526890814,
0.0788121372,
-0.2287486494,
0.2178769261,
0.0710788742,
0.0160122365,
-0.1328125447,
-0.2347791493,
0.4364159107,
-0.3234703839,
-0.0671141595,
-0.3596937656,
0.5855861306,
0.1039955765,
0.1038193554,
0.2081758231,
0.1932807118,
-0.2010700852,
0.2021733373,
0.6190623045,
0.8599435091,
-0.0062216809,
0.1288314909,
0.7438938618,
0.1930782795,
0.232513696,
0.4236090183,
0.0557887629,
-0.4851092398,
-0.1173646972,
-0.2180396765,
-0.3682935834,
0.2132678628,
0.1600600481,
-0.2500894666,
0.1049614996,
-0.2131560296,
0.4065160155,
0.2036920339,
-0.0523843467,
-0.1543256193,
-0.1582650989,
-0.2367911339,
0.0568631701,
0.1128932312,
-0.5091962218,
-0.1073662192,
-0.2736949027,
-0.0362203233,
-0.0406346582,
-0.1031134948,
-0.0497530736,
-0.2219363451,
0.0116091855,
0.3405351043,
-0.4945540428,
0.0969379097,
0.2401861399,
0.0545361005,
-0.3938041329,
-0.094965376,
-0.1582010388,
0.1575785577,
-0.2412557602,
-0.2249204814,
-0.3560344279,
0.3116672933,
-0.0391347073,
0.063418299,
0.023866469,
-0.0319006741,
-0.1545085758,
-0.0965018272,
0.0643357858,
0.1521958858,
-0.2587004602,
-0.2742073536,
-0.0816379413,
-0.1232521236,
-0.1828741878,
0.0355989896,
0.1239329949,
-0.1015352979,
-0.0728859454,
0.0388312675,
0.1103444695,
0.0355496965,
-0.0067554754,
0.6729289293,
0.3418899775,
0.3343164027,
0.3273964226,
0.0259485375,
-0.1585262418,
0.1565003842,
0.6011671424,
-0.447532922,
0.2417574972,
0.1094399765,
-0.2066467851,
-0.2043611258,
0.5340681076,
-0.1007266045,
0.2458522767,
-0.2113166302,
-0.0559874363,
-0.395144701,
0.4105912149,
0.1197803319,
0.2570128143,
-0.3223994672,
0.0689127222,
0.003037449,
-0.2505086958,
-0.2125861496,
-0.0127694439,
-0.0930165723,
-0.0676522255,
-0.3429584801,
0.0151143204,
0.1378581375,
0.1709834635,
0.0657344535,
0.0698620602,
-0.3820569515,
-0.1314588189,
-0.0381519683,
0.1883568019,
0.1633756608,
-0.1374686658,
0.2331009507,
0.0005479589,
-0.2975276411,
-0.1349498183,
-0.1046611369,
-0.194880724,
-0.009614788,
-0.1015764549,
0.29306373,
0.0848871693,
-0.4199884236,
-0.0363454334,
-0.2228237987,
0.1653895825,
0.0611912534,
-0.018849073,
-0.0809586421,
-0.0923190638,
-0.0486192591,
0.2589800954,
0.001753925,
-0.1703346819,
0.4338002205,
-0.2293499112,
-0.3992438018,
-0.2450795025,
0.5093851089,
0.2323614806,
-0.1932422221,
0.1219990775,
0.0153039834,
0.101364553,
-0.3427641392,
0.0777715221,
0.2787523866,
0.0246662684,
0.1570968777,
0.3537636995,
0.2022587657,
0.0182430726,
0.048677031,
0.0217560399,
0.0099515812,
-0.0906867608,
0.0676558092,
0.6141086817,
-0.0121820252,
0.1486712545,
0.4665024579,
0.0863929465,
0.3322013021,
0.1201981083,
0.098781459,
0.2952760458,
0.4559449852,
-0.121754311,
0.3147562146,
0.0493679456,
-0.0089233657,
0.2164129913,
0.6006951928,
-0.1371315122,
0.1976410002,
0.5118807554,
0.1762337536,
-0.065893136,
-0.2277876735,
0.0167273078,
0.0745888129,
-0.082154192,
-0.0925728083,
-0.0477427728,
-0.2798786759,
-0.4828264117,
-0.1167277768,
-0.3559360802,
0.185984388,
-0.2634467185,
0.2670087218,
-0.4153425097,
0.7211954594,
0.2131902725,
-0.0373683982,
0.0074031125,
0.5196149945,
0.2977153063,
-0.022733653,
-0.0710393712,
0.4569798708,
0.3191640377,
0.2489789873,
-0.2854171693,
0.0154572558,
-0.1617578268,
-0.2667803764,
0.059619382,
0.1258031279,
0.1170557365,
0.2419990301,
0.292016387,
0.0533625484,
-0.0957196429,
0.2782730162,
0.1897237599,
0.0001536845,
-0.1681753695,
0.4383735359,
-0.3106479645,
-0.200963974,
0.1728693396,
0.0415562466,
-0.4118335843,
0.0932749286,
0.276167661,
-0.1568496674,
0.0816447958,
0.0230174158,
0.04715655,
-0.288028419,
0.5047272444,
-0.03024555,
0.5685746074,
-0.0571381636,
-0.0395859815,
-0.3826923072,
0.3545948267,
-0.3610603511,
-0.0181551147,
0.4315897822,
0.1460477263,
0.004891648,
0.1987659484,
0.1994734257,
0.1266618222,
-0.2016127259,
0.3863150775,
-0.3414880335,
-0.1408743709,
0.4099110067,
0.1535304338,
-0.210246861,
-0.2267035693,
0.2206874341,
-0.2635425329,
-0.0387195498,
0.2351827621,
-0.0236658175,
0.0491428338,
-0.0218445361,
0.4545929134,
0.1139240488,
0.1612924933,
0.1480777562,
0.0239156261,
-0.2510904074,
-0.2117915004,
-0.2025730014,
0.2957012355,
0.1632514745,
0.4352879226,
-0.2515107691,
0.2785423696,
-0.1491456181,
0.0109390169,
0.0757076368,
0.0707302019,
-0.3185371161,
0.6374909878,
-0.536757648,
-0.0255099032,
0.031204341,
-0.2014324814,
0.0274922438,
0.1525225639,
-0.0613231771,
-0.5150299072,
0.6163954735,
0.0207465887,
-0.4586499929,
0.1995040625,
-0.0950660706,
0.4964281023,
-0.1267417967,
-0.1346387267,
-0.0836291164,
0.3756231368,
-0.0157663133,
-0.028752733,
0.0455978736,
0.0340925232,
-0.0245657563,
-0.1855210066,
0.0254758783,
-0.0755706728,
-0.1420819014,
-0.3219663203,
-0.5487011075
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Yea unfortunately..
That's a current limitation with Arrow ExtensionTypes that can't be used in the default Arrow Array objects.
We already have an ExtensionArray that allows us to use them as column types but not for subtypes.
Maybe we can extend it, I haven't experimented with that yet | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 48 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Yea unfortunately..
That's a current limitation with Arrow ExtensionTypes that can't be used in the default Arrow Array objects.
We already have an ExtensionArray that allows us to use them as column types but not for subtypes.
Maybe we can extend it, I haven't experimented with that yet | [
-0.0212208349,
0.1621367931,
0.0191255026,
0.1933746189,
0.3534960747,
0.1465557516,
0.6769053936,
0.10014157,
-0.1353633255,
0.1697501242,
0.1754417419,
0.2483869344,
-0.2187326103,
-0.0489065833,
0.1682208478,
-0.4851905704,
0.1346690357,
0.3015387654,
0.0228546597,
0.0704351068,
-0.0469424315,
-0.1379910707,
-0.2132523507,
0.2988718748,
-0.3213112652,
0.0069464701,
-0.0415841863,
-0.2609831989,
-0.281113714,
-0.53968364,
0.4548946321,
-0.1367880851,
0.2157605588,
0.05412554,
-0.0001180573,
0.139165163,
0.4717529714,
0.1158180833,
-0.2676104009,
-0.0728078783,
0.1165732741,
-0.3765859604,
0.2254805565,
-0.2949295938,
0.074629724,
-0.8747571707,
-0.0137046929,
-0.0480415635,
-0.0390084498,
0.2231348008,
0.1390294135,
0.153065145,
0.3917601109,
-0.1380422115,
0.5562934279,
0.2029245347,
-0.3445001841,
-0.0331771374,
0.2575599551,
0.1419351399,
0.0736944824,
-0.2520451546,
0.0317470804,
0.1535787284,
0.3329482377,
0.3048070073,
0.3153314292,
-0.2141816318,
-0.0936917216,
0.3583948612,
0.4189320207,
-0.1743400842,
-0.2196033597,
-0.1580252647,
0.0351172164,
-0.0825666562,
-0.0719240457,
0.1402472705,
-0.1435853094,
-0.0595129803,
-0.0816431493,
0.2340331525,
-0.4148136675,
0.2877808213,
0.188430205,
0.062701948,
0.1177321896,
0.2468920648,
-0.1241738945,
-0.2687942982,
0.3728431463,
-0.2962966859,
-0.087903142,
0.1672548652,
0.0104684606,
0.1018036678,
-0.1779806465,
-0.2950913012,
0.3978043497,
-0.0078653656,
0.2624193132,
0.052132871,
0.253387332,
0.1738921255,
-0.0227849633,
0.2581658065,
-0.052481506,
-0.0677275956,
-0.1461710483,
-0.0010094671,
0.0735205188,
0.0296859313,
-0.260293901,
-0.1566111296,
0.4041570723,
-0.1065993309,
0.1934999079,
0.3161323667,
0.083879225,
-0.0544138812,
-0.5178288817,
-0.1269526631,
0.0819736719,
0.0538604483,
0.1410967559,
-0.0200639237,
-0.099589996,
0.4002568424,
0.0466508605,
-0.0912170112,
-0.1167472154,
-0.0064972746,
-0.2495864332,
-0.1215884835,
0.0517687984,
0.1578974873,
-0.0178109352,
-0.0600430667,
0.1222076043,
0.1848506927,
0.1443337351,
0.0823200643,
0.1457600743,
0.1453527063,
-0.1178048402,
-0.1048186943,
0.0018951043,
-0.0324767381,
-0.2453712076,
0.1876762211,
-0.0354351811,
-0.2638183236,
-0.537296474,
0.0882839262,
-0.2288084626,
0.0409305207,
-0.3024856448,
-0.0318418406,
0.176060468,
0.0075883302,
0.076031588,
-0.1696113348,
0.2447958589,
-0.3598733842,
0.1270969361,
-0.1972582787,
-0.2495066822,
0.0388286747,
-0.2804265618,
-0.0530517474,
-0.0234772153,
-0.0567797832,
-0.2708202899,
0.0650432408,
-0.185677886,
0.30916664,
0.5356971622,
0.3405404091,
0.0292400308,
-0.1499930769,
0.1001170725,
-0.1054030433,
0.2279828191,
0.0375018567,
-0.0667350814,
-0.107220307,
-0.2658877075,
0.2532445192,
-0.1829283684,
-0.2341536582,
0.0166666023,
-0.4594131112,
0.2168779671,
0.0980007946,
-0.0008801427,
0.0604749694,
0.0081520379,
-0.4529453814,
0.0485941172,
-0.4307850301,
0.2427632213,
-0.0923001394,
0.3001606166,
0.0703751072,
0.1670932323,
-0.3774494827,
-0.6568468809,
0.2559566796,
-0.346960783,
0.0396647044,
0.0744253248,
-0.1671470851,
-0.112823084,
0.2092342675,
-0.0401511714,
0.21299541,
0.0444581918,
-0.0040365634,
0.1563399583,
-0.216930598,
-0.2036587,
-0.4877382219,
-0.0552400947,
0.0020824929,
-0.4064582586,
0.454143405,
-0.0363357551,
-0.2464058399,
-0.3527884185,
0.2259242088,
-0.1012144461,
-0.0033875348,
0.0250048805,
0.1707046926,
0.0352448635,
-0.1194291636,
-0.4558754861,
0.0306926183,
-0.0753998309,
-0.3779906332,
0.1492904276,
0.1526351571,
0.0179341268,
-0.1737758815,
0.1094518155,
0.3874127269,
0.2484333217,
0.5152692795,
-0.0953630134,
0.1582250148,
-0.0314227864,
0.2399681658,
-0.1496784091,
-0.1498090327,
-0.1329906881,
0.1323256493,
0.0241525937,
0.049893219,
-0.097425811,
0.0543423444,
0.2293837965,
-0.0608253963,
0.0662454069,
0.1479122043,
-0.2643360794,
0.124742426,
0.233478263,
-0.0696418509,
0.076121226,
0.173502028,
0.0079990271,
-0.089821808,
-0.3006954193,
-0.1095320806,
0.1824297607,
0.1665165126,
0.5337373018,
0.0058295848,
0.3214502931,
-0.13664864,
-0.147759214,
0.0287919659,
-0.018866634,
0.0288344808,
-0.2176436186,
0.0899147093,
-0.2739957571,
0.0458773486,
-0.0408508331,
-0.5973737836,
0.1676318645,
-0.0625097379,
-0.1086528227,
-0.0140207121,
-0.2081927508,
0.275380969,
0.0204891358,
-0.1851252466,
0.1897024959,
-0.1098248065,
-0.1761683673,
-0.04812482,
-0.1175922602,
0.0242519174,
0.2732263803,
-0.0044644787,
-0.0865122527,
0.2622175515,
-0.0713400841,
-0.3759305477,
-0.3747506738,
0.0583742298,
-0.1334779412,
0.2712836266,
0.6011123061,
-0.0881972983,
0.0569047332,
-0.4877176285,
0.3660814762,
-0.0498857349,
-0.237171784,
0.4311588705,
-0.2244035006,
0.1103978604,
-0.1015359387,
-0.0475696437,
-0.0823081061,
-0.2928114235,
0.2672378123,
0.4423726201,
0.2078860998,
0.1900189817,
0.3677291274,
0.2935209572,
-0.0595094897,
-0.0418137088,
0.2101394236,
0.3851245344,
0.5554255843,
-0.1326038688,
-0.239065975,
0.0469728149,
-0.9182718992,
0.0598655492,
0.2745571733,
0.0965736359,
-0.0531910323,
-0.1662639529,
0.2467550188,
0.1517783552,
0.0734153688,
0.2363353968,
0.0730142668,
0.030682344,
-0.0971595496,
-0.072054714,
0.358954221,
0.0592508316,
-0.0544413626,
0.0599306636,
0.2749341726,
-0.2500484288,
0.4926736653,
0.0323443227,
-0.3953185678,
0.2900138795,
-0.2813066542,
-0.1571726501,
-0.2730335295,
-0.0383774266,
-0.2033661008,
0.0202531721,
-0.0747557282,
-0.0579002462,
-0.0469464697,
-0.3705841899,
0.2049007714,
0.3417931795,
0.0460335389,
-0.0593375005,
0.0681159347,
-0.1048078611,
0.1422339827,
-0.0960889831,
0.0151933674,
-0.3160892725,
-0.1001578271,
-0.2141137719,
-0.239877671,
0.1352549493,
0.0366574824,
-0.3534594178,
-0.0899076983,
0.1876163632,
0.2133798152,
0.5379565358,
0.0069759311,
0.2843591273,
-0.124366127,
0.1448527128,
-0.004066701,
0.3810842037,
-0.2507454753,
-0.2140431851,
0.5493078232,
0.2064733058,
-0.4260233045,
-0.1997699738,
0.0115089035,
0.0045292419,
-0.3076283634,
-0.0146604395,
-0.3175294995,
0.0350647159,
0.4345045388,
0.2985556722,
-0.0186324567,
-0.014090254,
-0.1972004771,
-0.1879317909,
-0.0682572946,
-0.3189412057,
-0.0060395114,
0.3794979453,
0.0550575368,
-0.3710644245,
-0.457519412,
-0.0366515219,
-0.2041072547,
0.0219986197,
0.4698272943,
-0.1820258945,
0.1130628288,
-0.3893319666,
0.0157565959,
0.3853190839,
0.1386945993,
0.1158119068,
-0.0339302644,
0.1972131282,
-0.052170448,
0.3916820884,
-0.0113984039,
-0.1500460953,
0.13453044,
0.0340188481,
-0.0290013719,
-0.0184130203,
-0.1875637621,
0.3766221106,
-0.3450867236,
-0.062788561,
-0.3435283601,
0.6501119137,
0.0876187682,
0.1313517243,
0.2399792373,
0.4366544187,
-0.191346541,
0.3129683733,
0.7067788839,
0.716344595,
0.0190928988,
0.1417755783,
0.5875766277,
0.0486640856,
0.283980608,
0.3927362859,
0.1299733371,
-0.4477540553,
0.0877565891,
-0.1177496836,
-0.3426251411,
0.2784103155,
0.1346611828,
-0.1673139036,
-0.1764114797,
-0.225879401,
0.5874402523,
0.1703427285,
0.0179733932,
-0.3542063534,
-0.172592476,
-0.0608988255,
0.0736889765,
0.1389012635,
-0.5042874217,
-0.0324829482,
-0.2297135144,
-0.197599411,
0.0037450071,
-0.2245842218,
-0.063629061,
-0.2012910992,
-0.096410118,
0.4480981231,
-0.4837573171,
0.2040238231,
0.2226603925,
0.144598797,
-0.2737850845,
-0.1472531855,
-0.0684631467,
0.2030746639,
-0.320040375,
-0.1794198751,
-0.3234151006,
0.1967072636,
0.078589201,
0.0055461065,
0.046965491,
0.0079796659,
-0.1857354343,
-0.0939311236,
0.0207629185,
0.2710926831,
-0.3104764223,
-0.0762961805,
-0.2866952419,
-0.1470491439,
-0.1473858654,
0.0409676246,
0.0230463091,
-0.176224485,
-0.083394058,
0.0549641177,
0.1699424535,
0.0378514193,
-0.0440755747,
0.614361167,
0.4108808935,
0.34308061,
0.2616028786,
0.0466910824,
-0.163380906,
0.1584559977,
0.7001411319,
-0.5357528329,
0.1756704599,
0.0948993564,
-0.2978062332,
-0.1640961766,
0.5314981341,
-0.0296764094,
0.2333256602,
-0.2450130731,
-0.0202230588,
-0.3762754798,
0.4165403843,
0.088119857,
0.3043982387,
-0.2610390782,
-0.0439732447,
-0.0204675514,
-0.0843441412,
-0.2042538375,
0.0000111974,
0.0268678349,
-0.0468637161,
-0.4833248854,
-0.0449608527,
0.1146537662,
-0.0281985365,
0.0764420256,
0.0469550379,
-0.3073562086,
-0.0938724056,
-0.0695838109,
0.1445753276,
0.0750074387,
-0.1609966755,
0.1316704005,
-0.0184963085,
-0.2922178507,
-0.1102905422,
-0.1173489541,
-0.1716521382,
-0.1885483563,
-0.1003639996,
0.3707651496,
0.0218673944,
-0.4096211493,
-0.0622744597,
-0.2591798604,
0.2143733799,
0.1431514919,
0.0104114488,
0.0338705406,
-0.0140718874,
0.0108550293,
0.2403665185,
-0.0489341542,
-0.2167771757,
0.3667784035,
-0.2843903303,
-0.3287574351,
-0.2931694388,
0.3823818266,
0.3120446205,
-0.1300272942,
0.1466230303,
0.1218253374,
0.0957395807,
-0.2635984719,
0.0599469692,
0.2136286944,
-0.1237895936,
0.1957714856,
0.3809491098,
0.1733328849,
0.0293947142,
-0.0499516726,
0.0747180134,
-0.0583285429,
0.0404810049,
0.1580373645,
0.7727531195,
-0.0889632031,
0.0468707345,
0.3463776708,
0.0572020002,
0.3092588186,
-0.137606144,
-0.0499248952,
0.4082030654,
0.1194054857,
-0.1470286399,
0.2353639454,
0.0365150943,
0.1436932385,
0.2908635736,
0.599858582,
-0.0655345991,
0.1546143293,
0.6458666921,
0.1295799166,
-0.0608999021,
-0.3079250157,
-0.1705604047,
0.0009383333,
-0.0170825403,
-0.3197796345,
-0.0718166828,
-0.3400321603,
-0.3777697682,
-0.2001768053,
-0.3219612539,
0.196674332,
-0.241449967,
0.1399935335,
-0.2682494819,
0.6058330536,
0.1733976305,
0.0186111629,
-0.0114507722,
0.4665214419,
0.1931341439,
-0.1103843823,
-0.104118824,
0.3926160634,
0.2352754176,
0.3206701577,
-0.2402939051,
-0.1084055901,
-0.0384166799,
-0.263231039,
0.0478270426,
0.1419233531,
0.2050636262,
0.1260258853,
0.2356911749,
0.0549225807,
-0.0762817115,
0.1294130087,
0.1068350524,
-0.0240241941,
-0.1870775819,
0.4449998438,
-0.2076495737,
-0.1497956663,
0.146675393,
-0.0625947714,
-0.297449708,
-0.1419367194,
0.1849876642,
-0.1132820696,
0.0068517304,
-0.0043783649,
0.0315436497,
-0.1552274525,
0.5530236363,
0.0463125929,
0.4742759168,
-0.0836472288,
-0.0495648757,
-0.2923716605,
0.2667787373,
-0.4952571988,
-0.0020596511,
0.4960640967,
0.256236285,
-0.0065291501,
0.139630869,
0.1487073302,
0.3494867682,
-0.0630582124,
0.4208668768,
-0.2486194372,
-0.1834609658,
0.4288108945,
0.0162885319,
-0.1165727377,
-0.3974458873,
0.2201229632,
-0.2266693115,
-0.0249236468,
0.2209424675,
0.025127653,
0.16647771,
0.1008822396,
0.5126070976,
0.0213209298,
0.0937749445,
0.2348669469,
0.0071404753,
-0.3104790449,
-0.2480720431,
-0.2417108268,
0.1454451829,
0.0429884009,
0.4380662143,
-0.226176545,
0.1597023755,
-0.0859446973,
-0.0857116655,
0.0723847076,
0.1899729818,
-0.2099248469,
0.5638708472,
-0.6787708998,
-0.0031190019,
-0.0248708632,
-0.2467939854,
0.0584504418,
0.0574173182,
-0.1613290608,
-0.3593488038,
0.6176452041,
-0.1556901783,
-0.4157744348,
0.1446669251,
-0.0950241387,
0.4629305005,
-0.152148962,
-0.2348794788,
-0.1205973104,
0.3565762043,
0.0417903252,
0.0196833983,
0.0153243868,
0.0872727558,
-0.0093904473,
-0.2324378192,
0.1348852366,
-0.0955722183,
-0.025856724,
-0.3619650602,
-0.5236225128
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Cool
So please consider this issue as a feature request for:
```
Array3D(shape=(None, 137, 2), dtype="float32")
```
its a way to represent videos, poses, and other cool sequences | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 28 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Cool
So please consider this issue as a feature request for:
```
Array3D(shape=(None, 137, 2), dtype="float32")
```
its a way to represent videos, poses, and other cool sequences | [
-0.1195075586,
0.2424519807,
-0.0825230628,
0.0961941257,
0.3023030758,
-0.080791913,
0.6678082347,
0.1274506748,
-0.4523449838,
0.2668215036,
0.3651506603,
0.1533163488,
-0.2551758289,
0.1488412023,
0.2744106948,
-0.4257724583,
0.1371486187,
0.5718722939,
0.1896607578,
0.1134703085,
-0.0811235309,
-0.0910714492,
-0.1586164087,
0.1871944666,
-0.3031569123,
-0.0180847701,
-0.1779541671,
-0.3297393024,
-0.1345255971,
-0.4514862597,
0.2623897493,
0.0389632657,
0.1677656919,
0.1494594961,
-0.0001254906,
-0.0167879481,
0.5140048862,
0.0055481186,
-0.1965206414,
0.0710473731,
0.0390495509,
-0.5094624162,
0.2315447628,
-0.2614153624,
-0.0486277863,
-0.5891057849,
-0.0373303927,
-0.0661957189,
-0.0366017222,
0.1377491206,
0.0999123082,
0.2449055463,
0.1895422339,
-0.0658867881,
0.524812758,
0.6106522083,
-0.401527524,
-0.003251717,
0.4093410075,
0.0484814793,
0.0090826852,
-0.0446683578,
-0.1138379425,
0.1528001875,
0.371342063,
0.125339523,
0.4157227576,
-0.3516634703,
-0.1197508648,
0.380467087,
0.5132595897,
-0.2269856483,
-0.1633284241,
-0.1825229526,
0.1375932693,
-0.1191867515,
-0.168157652,
0.2776908278,
-0.3058533967,
-0.106728524,
-0.3200061917,
0.1812175214,
-0.4519751668,
0.4415172637,
0.2319642454,
-0.0324623324,
0.0265332479,
0.155010432,
-0.1543136239,
-0.2096685916,
0.6051817536,
-0.3144929111,
0.1713801175,
0.0266731326,
0.2315784991,
0.000779808,
-0.1781048328,
-0.2584560513,
0.2240985632,
0.0240564626,
0.1896697581,
0.0009135914,
0.3361067772,
0.0549348854,
-0.2350887507,
0.1551094353,
0.0196651928,
-0.2865147293,
-0.1086952239,
0.1641211063,
0.0523839667,
0.0812799484,
-0.0928832814,
-0.1581502408,
0.2144559771,
0.1445920914,
0.2246975601,
0.3323443234,
0.0989631116,
-0.021218298,
-0.64724648,
-0.1190171167,
0.0493505746,
0.1676119864,
0.1162117049,
0.0217956528,
-0.1420209855,
0.4201963544,
0.0413306952,
-0.106836319,
-0.1327309012,
0.0284795836,
-0.2020911425,
0.0345515944,
0.1474196464,
0.271927774,
0.0682379007,
-0.1098782271,
0.2920951843,
0.114988029,
0.2518875003,
0.130415529,
0.2680571377,
0.1843971163,
-0.1766608655,
-0.0291833263,
-0.0108276578,
0.0239781756,
-0.201913923,
0.2528161108,
0.0359997153,
-0.2911664248,
-0.4017089307,
0.067572996,
-0.1332115978,
0.1147954017,
0.0110673038,
0.0392670855,
0.1291617304,
-0.0920960382,
0.0919329152,
-0.0653636083,
0.0920567289,
-0.4038435221,
0.1100912169,
0.0587433577,
-0.376267761,
-0.0060137468,
-0.1785343587,
0.0598905459,
-0.058147423,
-0.093383193,
-0.2455006093,
0.1491196901,
-0.2815331519,
0.0978550315,
0.595564425,
0.0683711171,
-0.0665699616,
0.1286038458,
0.0778091252,
-0.1911042482,
0.2700205445,
0.1773524582,
-0.0744977817,
-0.0917329639,
-0.3189811409,
0.3159510493,
-0.1740137488,
-0.206248939,
0.0853027776,
-0.4805605412,
0.5045505762,
0.1227778047,
0.0911306813,
-0.0121927029,
-0.0017256808,
-0.3954714239,
0.1035295203,
-0.5231149197,
0.2263593227,
0.0648660362,
0.3272503912,
-0.1017296016,
0.0142544908,
-0.2904193699,
-0.7621383667,
0.1118581742,
-0.3817774653,
0.0323969573,
-0.092859529,
-0.0941648856,
-0.0098007312,
0.1435678601,
-0.15883632,
0.1365595609,
0.0186943095,
0.2234546095,
0.1755220741,
-0.0927116275,
-0.1479678899,
-0.4886057079,
0.1605399102,
-0.093559213,
-0.3995203972,
0.610486865,
-0.0304091722,
-0.3412739336,
-0.2333664894,
0.3026455939,
0.1116787344,
-0.1268317699,
0.0759551972,
0.0232767127,
-0.0467139818,
-0.0072606811,
-0.5716788769,
0.1451818794,
0.1695392579,
-0.5125939846,
0.3018431365,
0.2380749881,
-0.0208656993,
-0.2693945765,
0.2650479674,
0.5354462266,
0.016400408,
0.5599133372,
-0.1488924474,
0.1069107652,
-0.0834944397,
0.3042314649,
-0.1710584015,
-0.281437993,
-0.0770817325,
0.3215996027,
0.234831363,
-0.0816382989,
-0.1202621087,
0.1673327237,
0.3450402617,
-0.1063044369,
0.1170570552,
0.1044828668,
-0.1672398746,
0.0305955634,
0.2194485366,
-0.2486442477,
-0.009598094,
0.1133676171,
-0.150904581,
-0.0167221297,
-0.1790007949,
-0.1775204986,
0.2399978638,
0.1978988945,
0.5377184749,
0.1734981686,
0.2530478537,
-0.2342146635,
-0.2563254237,
-0.2838897109,
0.0782156736,
-0.002949219,
-0.16629076,
0.0819261596,
-0.0985968336,
-0.1753581613,
-0.0538220033,
-0.8407207727,
-0.0549627729,
-0.0161431599,
-0.1332003772,
-0.0183019154,
-0.1250448525,
0.2904633582,
0.1349972636,
-0.116111815,
0.1887721568,
-0.1279420257,
-0.2394806445,
-0.0208783112,
0.0010636004,
-0.0478813164,
0.1938605011,
0.1102153435,
-0.0285725556,
0.0893602669,
0.1956144124,
-0.443690747,
-0.4140672684,
0.0761562735,
-0.0546476357,
0.3043240607,
0.6237301826,
-0.0288501568,
0.1416361779,
-0.4335571229,
0.3720019758,
0.0307336487,
-0.1980164498,
0.2701030672,
-0.1913002431,
0.131150648,
-0.0774393678,
0.1274389178,
-0.0436306745,
-0.2877107561,
0.1742714196,
0.4535894096,
0.2285219282,
0.0646873713,
0.3853498995,
0.3064380586,
0.031939134,
0.0617694557,
0.2502893507,
0.3139863312,
0.3440011442,
-0.1534815878,
-0.1516788006,
-0.0795785785,
-0.8197321892,
-0.041460067,
0.1995375305,
0.0056264945,
-0.3204469979,
-0.1587313712,
0.2815921307,
0.0212313905,
0.0466257259,
0.3734762967,
0.1232596934,
0.1193043292,
-0.0999321043,
-0.2473721206,
0.3200204372,
0.1477469355,
-0.1601669639,
0.0104149077,
0.4238666594,
-0.2608791888,
0.6008728743,
-0.0103289271,
-0.3659660518,
0.3163509965,
-0.1680752188,
-0.0308003686,
-0.2145521492,
-0.0248501413,
-0.144389838,
0.0874093324,
-0.0968137234,
-0.0515101999,
-0.1967117041,
-0.2967805266,
0.1497736424,
0.2748081684,
-0.0645301417,
0.0163017046,
-0.0485324375,
-0.1632588804,
0.1895655245,
-0.1704742163,
0.0903792307,
-0.2627590597,
-0.1558353901,
-0.1304807067,
-0.2118925005,
0.2559704185,
-0.0261651576,
-0.3173459768,
-0.0732132122,
0.0702207386,
0.1907728463,
0.6411174536,
0.0179139208,
0.1241755858,
-0.0189883262,
0.082742393,
-0.0936164483,
0.769086659,
-0.2436897755,
-0.12895374,
0.4463675022,
0.0362391621,
-0.4153819382,
-0.192094937,
-0.1146052033,
-0.0710530281,
-0.3726545572,
0.1269797236,
-0.2047908306,
-0.0257863663,
0.3133608103,
0.3239358962,
-0.0185655821,
-0.09819372,
-0.1191842705,
-0.1535016,
-0.1967299581,
-0.3282930255,
-0.0400127545,
0.3237632811,
0.2426333129,
-0.485475719,
-0.3750820458,
-0.1122345179,
-0.0675323904,
-0.127832979,
0.3981783986,
-0.0636543408,
0.0789542273,
-0.4502413869,
0.0193284582,
0.2227461934,
-0.1319338977,
0.2497080714,
0.0249828994,
0.194411546,
-0.0653873682,
0.5268790126,
0.2793340385,
0.0070957905,
0.0411039628,
0.0846437365,
0.0907712951,
-0.1872562021,
-0.1035773531,
0.3837706149,
-0.4485935569,
-0.1014222503,
-0.2877466679,
0.5306910872,
-0.0551609397,
0.1810457259,
0.093523778,
0.4269597828,
-0.2141294032,
0.2697049081,
0.6378161907,
0.9567369223,
0.0340464935,
0.3521616459,
0.6656086445,
-0.0162936281,
0.2430688143,
0.3726675808,
0.1453524381,
-0.4971996248,
-0.0267082285,
-0.1719360203,
-0.4330448508,
0.1819642186,
0.1326776147,
-0.2565490305,
-0.0561424345,
-0.148504898,
0.2846319079,
0.0706546605,
-0.0362539589,
-0.1029659808,
-0.1446872652,
-0.0948459655,
0.001090031,
0.012376464,
-0.3828656375,
-0.1385520846,
-0.3460881114,
-0.0228880756,
0.0327558257,
-0.1455658227,
0.0021425586,
-0.28278476,
0.0419150628,
0.3617233038,
-0.6093162298,
0.030667549,
0.0879784003,
0.0515802987,
-0.2078800052,
-0.1185670123,
-0.1019459441,
0.3350894153,
-0.2927415967,
-0.2024453282,
-0.329112947,
0.3069598377,
-0.036692705,
0.0343523324,
0.1367975026,
0.0006994889,
-0.0908613652,
-0.1594603062,
0.0150703751,
0.2453792542,
-0.1630985588,
-0.342320472,
-0.2061365843,
-0.1085417718,
-0.0423594825,
-0.0009979499,
0.0876537412,
-0.2088278234,
-0.2218296975,
0.1476568133,
0.1027664691,
-0.0497643016,
-0.0066634943,
0.4624763131,
0.2039846629,
0.3091705441,
0.3508844674,
-0.070225507,
-0.1864088327,
0.2011598796,
0.4627960324,
-0.5874418616,
0.1854405105,
0.1240336001,
-0.2766522169,
-0.0849192142,
0.4894616306,
-0.1367446184,
0.3455239832,
-0.1024454609,
-0.0035816927,
-0.3030040264,
0.1414216608,
0.0851138383,
0.3611209393,
-0.2015339583,
-0.1205842793,
0.0020427839,
-0.1557763368,
-0.1603776813,
0.0274455845,
0.1507696509,
0.0718493611,
-0.6480779052,
-0.1603155732,
-0.1307604313,
0.1700795591,
0.0427884683,
0.0692399666,
-0.4720148742,
-0.0495757945,
-0.0446765907,
0.2160997987,
0.0868032649,
-0.0737599954,
0.1676156223,
0.0494851992,
-0.328414619,
-0.1556387097,
-0.0908654779,
-0.1441147923,
-0.1505564004,
-0.0630210042,
0.307847172,
-0.0997766182,
-0.3593605459,
-0.1216495559,
-0.1980056912,
0.3116024733,
0.108449012,
0.0544852614,
-0.0120752361,
-0.0124393431,
-0.0697840154,
0.2384720296,
-0.0767383501,
-0.1882880628,
0.3575381339,
-0.2864847779,
-0.3052309155,
-0.2400888354,
0.3885750175,
0.0224888604,
-0.2447905242,
0.0734746531,
0.1066966504,
0.0882799253,
-0.208819598,
-0.0326346159,
0.1386859268,
-0.0958518833,
0.151249975,
0.4127186537,
0.119940348,
0.0477123335,
-0.0144565059,
0.0668141693,
-0.2037321329,
0.0214628875,
0.1346937269,
0.5152422786,
-0.0964201167,
0.0465311855,
0.3629020751,
0.119718641,
0.303296715,
-0.0718873143,
-0.0999751389,
0.2413749993,
0.1897230893,
-0.1481650025,
0.28054443,
0.0797760487,
0.0472673401,
0.2441508323,
0.5410907269,
0.0388210714,
0.0845874548,
0.2596606612,
0.1191754267,
-0.0498790368,
-0.4547812343,
-0.0564660989,
0.0095202327,
0.002574859,
-0.0519645996,
-0.0345161967,
-0.2187305093,
-0.2139029503,
-0.1241590232,
-0.3498776257,
0.1636026651,
-0.0278085414,
0.2309523225,
-0.0594361462,
0.7911987305,
0.1474618167,
0.035105966,
-0.0823310539,
0.3654716611,
0.1892610341,
-0.0842181966,
-0.2363670766,
0.342432946,
0.3028408289,
0.3057921529,
-0.4137304425,
-0.0027470079,
-0.0482067354,
-0.2514018714,
0.0007548457,
0.1104697287,
0.1996535659,
0.3655869365,
0.2430264801,
0.0529298559,
-0.0775849447,
0.109564729,
0.2621611953,
-0.0590659007,
-0.2608360052,
0.4748168886,
-0.368390888,
-0.0772836283,
0.0200593751,
-0.0214005746,
-0.4413029253,
-0.0922145471,
0.3433693349,
-0.2222929597,
-0.0314976685,
0.0078843525,
0.0003661328,
-0.4076477587,
0.4685804844,
0.0565802567,
0.52039814,
-0.1426042318,
-0.0570295006,
-0.1997388303,
0.2256307751,
-0.1827674955,
0.063126348,
0.3602492511,
0.2822050154,
-0.070293054,
0.1351904124,
0.0817965642,
0.342928946,
-0.0095851822,
0.3274744153,
-0.3078688383,
0.072147578,
0.333242923,
0.0698347464,
-0.0840916783,
-0.3582056463,
0.15510647,
-0.3811789453,
-0.0411696881,
0.1865787953,
0.0476585031,
0.0602166653,
0.3429680467,
0.4439255595,
0.0021102712,
0.0794409364,
0.1255157739,
-0.1302113831,
-0.191049546,
-0.1506797671,
0.0171828717,
0.4100234807,
-0.030391207,
0.5122293234,
-0.2526365519,
0.4674159586,
-0.1593757123,
0.1406828165,
0.1890550107,
0.2505685985,
-0.1429096758,
0.473893106,
-0.6883051395,
0.0614362992,
0.117191352,
-0.2447530329,
0.1054181904,
0.1444074512,
-0.0944653675,
-0.3961617351,
0.6354135275,
-0.2361486405,
-0.5173557997,
0.1891824454,
-0.0922152624,
0.3242468238,
-0.0486648194,
-0.3283880949,
-0.0839727372,
0.4084095359,
0.0294562932,
0.0013381186,
0.1020152494,
-0.0959283561,
-0.0107989712,
-0.155288443,
0.1843919158,
-0.0152671216,
-0.1727775633,
-0.4269971848,
-0.5472984314
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | @lhoestq well, so sequence of sequences doesn't work either...
```
pyarrow.lib.ArrowCapacityError: List array cannot contain more than 2147483646 child elements, have 2147483648
```
| I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 23 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
@lhoestq well, so sequence of sequences doesn't work either...
```
pyarrow.lib.ArrowCapacityError: List array cannot contain more than 2147483646 child elements, have 2147483648
```
| [
-0.1600918621,
0.1551733166,
-0.1365800947,
0.2011847198,
0.2378048599,
0.0024270953,
0.5615334511,
0.0813985988,
-0.1561108381,
0.1868874431,
0.3679439127,
0.1477243751,
-0.1952097118,
-0.0751515552,
0.1982176602,
-0.3740196824,
0.1051323339,
0.4515883923,
0.0958151743,
0.0815603882,
-0.1296784133,
-0.1000081673,
-0.2531840205,
0.2315309346,
-0.254568547,
-0.1155643761,
-0.1887786984,
-0.2444769889,
-0.0653287992,
-0.6357089877,
0.2661862373,
0.0415751263,
0.111106433,
0.2200846374,
-0.0001201842,
-0.0430639982,
0.4993034303,
0.055321224,
-0.186355412,
-0.0483909994,
-0.016586611,
-0.5161793232,
0.2466996163,
-0.2830960155,
0.0256014019,
-0.6335040927,
-0.0507781617,
-0.1111696064,
0.0991795734,
0.2162887752,
0.1357580721,
0.1012991369,
0.294857204,
-0.1379258782,
0.4939408302,
0.1856486946,
-0.2645456791,
-0.0064461613,
0.4243834317,
0.0077982545,
0.0039836382,
-0.2260001898,
-0.0914995,
0.1946606338,
0.323957473,
0.2544253469,
0.1728006899,
-0.2684161663,
-0.1167434677,
0.4633986056,
0.5487833619,
-0.1992024183,
-0.2062031627,
-0.162351802,
0.0251367316,
-0.2495521009,
-0.0168563724,
0.223023206,
-0.2625148892,
-0.0679102615,
-0.2960223854,
0.2252051681,
-0.3634744585,
0.3561137915,
0.2739035785,
0.0741844848,
0.0362598747,
0.1922657937,
-0.0426768661,
-0.1601042897,
0.4481903613,
-0.2737984359,
0.0411331169,
0.2004846334,
-0.0477828234,
0.0812529251,
-0.1787543595,
-0.2598592341,
0.3866292536,
0.1006254479,
0.2853739262,
-0.0497444533,
0.2407916337,
0.0112910084,
-0.1565420926,
0.2287863493,
-0.0354374833,
-0.1955487728,
-0.1534385234,
0.1481017321,
0.1131822765,
0.1070680618,
-0.0841121823,
-0.2671607137,
0.3421691656,
-0.0100377109,
0.162102595,
0.2628887296,
-0.0015816529,
0.1584803462,
-0.7266276479,
-0.2275591344,
-0.0102350302,
0.2344359457,
0.067370452,
-0.0787665695,
-0.1443528533,
0.3206437826,
0.0690723509,
0.0175564159,
-0.2220752537,
-0.028285034,
-0.1574118286,
0.148010239,
-0.0056370222,
0.1456129998,
0.1314305961,
-0.0021541701,
0.1279090047,
0.0469312668,
0.2403780818,
-0.0591418371,
0.1808518469,
0.1860529631,
-0.1897393614,
0.0794376656,
-0.0132833906,
-0.1411845684,
-0.2069685161,
0.3373623192,
-0.0748129189,
-0.248927176,
-0.239602536,
0.1195374802,
-0.246434018,
0.1436356604,
-0.0567751117,
0.0221290011,
0.3504425585,
0.0329585038,
0.0972865522,
-0.0463142097,
0.1343158036,
-0.3639496267,
0.0316102915,
0.0291703194,
-0.4040647447,
0.1027748063,
-0.0170010552,
0.0420777015,
0.0010876142,
0.0002231877,
-0.248372674,
0.3167400658,
-0.3398919702,
0.315192759,
0.4771948755,
0.2314247787,
-0.1476490796,
0.0780264363,
0.0087050376,
-0.1805399358,
0.2836230695,
0.1247068569,
-0.0706821084,
-0.1788304001,
-0.2814869285,
0.1967944056,
-0.0682695657,
-0.2683036625,
-0.047451783,
-0.3563320637,
0.3282251656,
0.0095097106,
-0.0300087351,
-0.0579111129,
-0.0611508638,
-0.3634930551,
0.0984667242,
-0.3985061347,
0.1682198793,
0.3102674782,
0.2540773153,
-0.1070059687,
0.0180021394,
-0.2215557545,
-0.6752682924,
0.1367511898,
-0.3360004425,
-0.0714467019,
-0.1608761996,
-0.0421855152,
-0.1771296412,
0.2556403577,
-0.2550109327,
0.1528831124,
0.0767281055,
0.1722394973,
0.2379294038,
-0.283989042,
-0.1291726381,
-0.246211648,
0.0235674009,
-0.0346850269,
-0.4833643436,
0.6345499754,
-0.0643042848,
-0.363702774,
-0.2196400911,
0.1341252178,
0.0457705446,
-0.110666886,
0.0889574289,
0.2254216224,
0.0635240152,
-0.1646241546,
-0.4993400276,
0.0038287838,
0.124119319,
-0.5690355301,
0.0915197805,
0.2302256972,
0.0061182915,
-0.2539628744,
0.1037807092,
0.3309839666,
0.0091492878,
0.589253068,
-0.108066462,
-0.0582961738,
-0.0223790556,
0.2074622661,
-0.1052798405,
-0.1419218928,
0.0479140505,
0.3649189174,
0.3332377672,
-0.0593752526,
-0.080915682,
0.0729770958,
0.2331446856,
-0.0524768233,
0.0030049938,
0.087159276,
-0.1870846152,
-0.0404212624,
0.1665885299,
-0.2382638603,
0.1528131813,
0.1505665481,
-0.1506052166,
-0.0140658971,
-0.3169112504,
-0.2260743678,
0.138550818,
0.1558430493,
0.5817114711,
0.1286942214,
0.333438307,
-0.131929338,
-0.1932004094,
-0.3791249394,
0.0576523878,
0.1512159556,
-0.19382599,
0.1737961918,
-0.1454394907,
0.0365488082,
0.0281192753,
-0.6938306093,
0.04465729,
-0.0963610932,
-0.194478929,
0.0538634099,
-0.105214417,
0.216292575,
0.12007045,
-0.2124527544,
0.2809821963,
-0.0610843562,
-0.1656044871,
-0.0961055458,
-0.0122706182,
0.0360584334,
0.2140237242,
0.0470583551,
0.0029296507,
0.1734710634,
-0.0841615051,
-0.4023234546,
-0.3385604918,
0.0722319633,
-0.0891837478,
0.2077839524,
0.5260068774,
0.0793337151,
-0.0433287099,
-0.5001628399,
0.3418539762,
0.1712600887,
-0.2787889242,
0.3581451774,
-0.2093978822,
0.1884742826,
0.0264005233,
-0.0835734829,
-0.0133487731,
-0.3030292094,
0.2011642307,
0.5015562773,
0.251563102,
0.2823499739,
0.3574546576,
0.2633708417,
-0.0483492464,
-0.0047427686,
0.1647398174,
0.3353203833,
0.3585025072,
-0.1083963886,
-0.2562663257,
-0.1058743894,
-0.8942082524,
0.0657696277,
0.3306564689,
-0.0534472875,
-0.2664447427,
-0.2960112393,
0.2652877271,
-0.0444681048,
0.1249462962,
0.3958414793,
0.1515053958,
-0.0277538579,
-0.0751148388,
-0.0660347119,
0.4360361993,
0.0146455551,
0.033035405,
0.0122598736,
0.3850973845,
-0.1809915602,
0.6154465079,
0.238641575,
-0.2948966324,
0.2468744367,
-0.2687765956,
-0.0160996746,
-0.3804987967,
0.140559569,
-0.2149465382,
0.1324997693,
-0.1396270841,
-0.0848143771,
-0.1557293832,
-0.185685575,
0.2108888775,
0.3257880211,
-0.0560119487,
0.0270620491,
-0.0124885356,
-0.0062740832,
0.2157734334,
-0.0722607523,
0.0085481778,
-0.1657002568,
-0.1219091639,
-0.2832228243,
-0.3324132562,
0.2549267411,
-0.0420736186,
-0.4164333344,
-0.0695743859,
0.0470709987,
0.174681142,
0.5719996095,
0.057209231,
0.2247127742,
-0.1525773257,
0.1133040264,
-0.136725679,
0.5029540062,
-0.161483869,
-0.2173499614,
0.503788054,
0.1487830728,
-0.3988544643,
-0.1728264391,
-0.1450511962,
0.1050176471,
-0.3108486235,
0.0374074578,
-0.3851982057,
0.0350426361,
0.2270037681,
0.4519897997,
0.0308631007,
-0.1545875371,
-0.1730749905,
-0.2341376841,
-0.1679701209,
-0.1769972891,
-0.077214174,
0.3325339854,
0.1185415685,
-0.5217425227,
-0.2831088006,
-0.22187455,
-0.2166455835,
-0.1168450639,
0.4292853177,
-0.0959718153,
0.1976206303,
-0.4244104028,
-0.0217128098,
0.2756631374,
0.0755057633,
0.2074223012,
0.0471865237,
0.1186169088,
-0.1547593921,
0.381293267,
0.1365754455,
-0.0977918431,
0.1208830178,
0.0873416811,
0.1731405854,
-0.0309425015,
-0.1182434484,
0.2858743966,
-0.3870584369,
-0.2409188598,
-0.2526112497,
0.6065799594,
0.0345117748,
0.1306640357,
0.2011977583,
0.3789950609,
-0.1907282919,
0.1544510275,
0.5385935307,
0.8276056647,
-0.1091832072,
0.109559983,
0.6449869275,
0.1066073328,
0.3623754382,
0.4651368558,
0.1103195995,
-0.4643548429,
-0.1454160064,
-0.095039174,
-0.4753381908,
0.1898424029,
0.2201743275,
-0.2813165486,
0.1027401313,
-0.202531442,
0.4250158072,
0.1137104779,
-0.1704331934,
-0.1086485907,
-0.12362694,
-0.2000637054,
0.0582707711,
0.0476622134,
-0.3526817262,
-0.1718631387,
-0.1864742786,
-0.0950224996,
-0.1046453416,
-0.0701149479,
-0.0149997119,
-0.3250383735,
-0.0454029702,
0.4836613536,
-0.728164494,
0.0198510364,
0.1408113241,
0.0578353927,
-0.1766629219,
-0.0700272471,
-0.1826734245,
0.0984092206,
-0.2828502059,
-0.1620805264,
-0.3218932748,
0.1863595992,
0.0097960494,
0.0841341019,
0.131334126,
-0.1087405309,
-0.1377049536,
0.0513097569,
0.1794708967,
0.1363495141,
-0.224584341,
-0.2015950382,
-0.0501841865,
-0.2770043015,
-0.1344671696,
0.0315409116,
0.144211337,
-0.1530611962,
-0.1088707298,
0.0898807421,
0.048056934,
-0.0880135298,
0.0267976262,
0.6479640007,
0.2005576789,
0.4696875215,
0.269741863,
-0.0549196824,
-0.1910226047,
0.0595998168,
0.5864043832,
-0.6140027642,
0.1377329081,
0.0855306983,
-0.108881034,
-0.0170554742,
0.5587215424,
-0.1463165581,
0.3311335146,
-0.0994504914,
-0.0858525336,
-0.3952619135,
0.294493109,
0.0345838144,
0.2714485824,
-0.2411225289,
-0.0056886501,
-0.0490240231,
-0.0177653078,
-0.2013216168,
-0.0274354313,
-0.1023833156,
0.0754278824,
-0.5516825318,
-0.0063280575,
0.0060598413,
0.1183264405,
0.0839468539,
0.1277219951,
-0.4031296968,
-0.1666739285,
0.0490456372,
0.1636103392,
0.1434487402,
-0.1364780366,
0.1057919115,
0.0164431166,
-0.2059157938,
-0.1904213578,
-0.0890773311,
-0.1587845832,
-0.1524307728,
-0.1798934489,
0.3732467294,
0.0133506786,
-0.4500874281,
-0.0993073434,
-0.3206633031,
0.3353333771,
0.0838315785,
0.0338704102,
0.0518517233,
-0.0675968155,
-0.136598587,
0.2506712675,
0.0252411608,
-0.2826596797,
0.3494508862,
-0.4587415457,
-0.3821811378,
-0.1372278482,
0.4560290575,
0.2827412784,
-0.1941177547,
0.0783234164,
0.0601532198,
0.1380980611,
-0.2400970608,
-0.0345079117,
0.0729428008,
-0.012486062,
0.1442500949,
0.338478595,
0.2148672342,
-0.136895895,
0.0849253982,
0.1068419069,
-0.0443746224,
-0.0057368646,
0.0059638438,
0.68955791,
0.022174431,
0.0649673343,
0.4045622647,
0.0822871625,
0.3356210589,
-0.0252461005,
-0.0928708836,
0.335350126,
0.2887385786,
-0.0284225978,
0.1966652274,
-0.0920880958,
-0.0686001852,
0.286398828,
0.5743163228,
-0.2170492411,
0.106524229,
0.3571171165,
0.2653896213,
0.0638026744,
-0.2555146813,
-0.1167544499,
0.0768639669,
-0.000683721,
-0.1098319069,
-0.027549427,
-0.194181338,
-0.3827089965,
-0.1505113244,
-0.3897603452,
0.2327124029,
-0.1659685522,
0.2177750468,
-0.3669435382,
0.6742686033,
0.2101665884,
-0.0369136669,
-0.1713704318,
0.5313133597,
0.324806273,
-0.0792085752,
-0.1093716919,
0.3668129742,
0.3572767675,
0.3015879393,
-0.2407060564,
0.0795766115,
-0.1918937266,
-0.2566196918,
-0.0545777828,
0.1561476588,
0.1720080674,
0.00376774,
0.2482561767,
0.0709495321,
-0.1256276518,
0.3689873219,
0.2804299593,
0.03707451,
-0.1932658255,
0.3348278105,
-0.2718711793,
-0.1903454065,
0.1311919093,
0.0063215322,
-0.4402507246,
0.1030821651,
0.3191308975,
-0.1223135367,
0.0201656297,
0.0450457819,
0.0341217108,
-0.3694946468,
0.4734950662,
0.1577856988,
0.607685864,
-0.0797693357,
-0.1412038952,
-0.267211616,
0.2897812128,
-0.4417596757,
0.0740942731,
0.3080429733,
0.2579084635,
-0.0487485565,
0.2920192182,
0.0772696286,
0.2233106792,
-0.0479870178,
0.3701360524,
-0.3534581959,
-0.1368518025,
0.3459902406,
0.0485215336,
-0.2119523436,
-0.2849325538,
0.2408120483,
-0.3483979404,
0.0187247433,
0.1598385572,
0.1610457003,
0.0116114113,
0.2485991567,
0.4437901676,
0.1199983731,
0.0778710768,
0.1355818063,
0.0182932187,
-0.2765600383,
-0.2072044313,
-0.0377062783,
0.3501322567,
0.1534587443,
0.4672714472,
-0.248013407,
0.3416926861,
-0.0683881864,
0.049189534,
0.0788118094,
0.3267090917,
-0.2487183064,
0.411418885,
-0.5436221361,
0.0665596649,
0.0299389884,
-0.1942566931,
0.1354705095,
0.1080587357,
-0.1219413131,
-0.583748877,
0.6118191481,
-0.1655677706,
-0.4106807113,
0.1020886153,
-0.0144821256,
0.3352403045,
-0.1222290471,
-0.1329847276,
0.0158911161,
0.4949216247,
-0.0330866165,
-0.2015381902,
0.0128791584,
0.002036216,
0.0365063548,
-0.1622644514,
0.2119118124,
-0.0079954565,
-0.1454570293,
-0.3897957206,
-0.5064118505
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Working with Arrow can be quite fun sometimes.
You can fix this issue by trying to reduce the writer batch size (same trick than the one used to reduce the RAM usage in https://github.com/huggingface/datasets/issues/741).
Let me know if it works.
I haven't investigated yet on https://github.com/huggingface/datasets/issues/741 since I was preparing this week's sprint to add datasets but this is in my priority list for early next week. | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 67 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Working with Arrow can be quite fun sometimes.
You can fix this issue by trying to reduce the writer batch size (same trick than the one used to reduce the RAM usage in https://github.com/huggingface/datasets/issues/741).
Let me know if it works.
I haven't investigated yet on https://github.com/huggingface/datasets/issues/741 since I was preparing this week's sprint to add datasets but this is in my priority list for early next week. | [
-0.2213131338,
0.1979759783,
-0.0157015957,
0.3644230962,
0.3536315262,
0.0121850483,
0.5489982367,
0.1765437424,
-0.2264504135,
0.2063269168,
0.2152809948,
0.2304820567,
-0.1810272783,
0.0037144457,
0.2849796414,
-0.376332581,
0.1525055319,
0.3805986941,
0.0335736498,
0.1360762417,
-0.0397743359,
-0.0720354691,
-0.1213942096,
0.1114186645,
-0.4059667587,
-0.0048566768,
-0.1747129858,
-0.120074138,
-0.2310265303,
-0.5286946297,
0.181047231,
0.0685255677,
0.0716022775,
0.2211985141,
-0.0001212513,
0.0870127082,
0.518417716,
0.0738938078,
-0.3144262731,
-0.0253513046,
0.1473911554,
-0.4104197323,
0.2535746396,
-0.2232879102,
0.0524131171,
-0.6484953165,
0.0717869923,
-0.0252837054,
0.1690185964,
0.2796277404,
0.1555816233,
0.2720471621,
0.3203713298,
-0.1293947101,
0.4958256185,
0.4110742509,
-0.2912888229,
-0.0375182331,
0.2439012676,
0.0963078439,
-0.2048287541,
-0.0812974498,
-0.0461047553,
0.1272637099,
0.4374940097,
0.2534179091,
0.1801091731,
-0.2713246644,
0.1292906255,
0.3118754923,
0.5142441988,
-0.2984477282,
-0.1686794013,
-0.2406480312,
0.0696059614,
-0.1214198992,
0.0500407517,
0.2096703351,
-0.3758712411,
-0.1750664413,
-0.2559000552,
0.0531946942,
-0.3825433254,
0.193874225,
0.3322300315,
-0.0729311034,
-0.0771719739,
0.1957786679,
0.0948958918,
-0.0844442993,
0.4489108026,
-0.3274933696,
-0.0603616312,
0.1682135016,
-0.0260266121,
0.1914516091,
-0.0618920177,
-0.2489123046,
0.3557293415,
-0.0146376351,
0.0907960832,
-0.0260437373,
0.4090180397,
-0.0300465226,
-0.1666972488,
0.2424426079,
0.0268455092,
-0.056447804,
-0.0126625411,
0.1458719522,
0.1368908882,
0.002378609,
-0.3036977947,
-0.3543182611,
0.4389377832,
-0.1597707868,
0.2262702584,
0.271985054,
0.0580549054,
0.0527414866,
-0.3872816861,
-0.1634099931,
-0.0512053259,
0.2605143189,
0.0079418225,
-0.169523567,
-0.0749829262,
0.3475948274,
-0.1134954542,
-0.0771842897,
-0.2006066889,
0.0141288619,
-0.1872190386,
-0.0355554558,
0.185676977,
-0.0006736023,
0.1712858677,
-0.1005150005,
0.1102586836,
0.0364877209,
0.2294091582,
-0.0032716459,
0.0745188817,
0.2431533039,
-0.1059863567,
0.0759956613,
-0.1007447615,
-0.1035400555,
-0.1938963234,
0.3595401645,
-0.0072723785,
-0.3163639009,
-0.360494256,
0.067736946,
-0.1884799451,
0.1095319316,
-0.3334246874,
0.0241515525,
0.2464963794,
0.1929250211,
0.0468098782,
-0.0788817555,
0.1197326034,
-0.418695569,
0.2552202046,
0.1506828964,
-0.3296793103,
-0.0764193535,
-0.1774584204,
-0.1453158855,
0.0146856159,
0.1407639533,
-0.2277487367,
0.3168018758,
-0.1969991177,
0.1646832377,
0.5898755193,
0.1421808153,
-0.1942750067,
0.0489283428,
-0.0359422155,
-0.1330455691,
0.2738948464,
0.1337051392,
-0.0858034194,
0.0003618043,
-0.2265036404,
0.2427283227,
-0.2060781568,
-0.1284231842,
-0.102871716,
-0.4257862866,
0.2570193112,
0.182657823,
0.188319698,
-0.2002336383,
-0.0763455629,
-0.4452912211,
0.1509934664,
-0.4555953741,
0.3199740648,
0.201266095,
0.2738684118,
-0.0686622486,
0.0919818282,
-0.1971549839,
-0.6865985394,
0.2245499939,
-0.3239830136,
0.1136918887,
-0.1173117384,
-0.038934309,
-0.0470359102,
0.2342348397,
-0.1890114397,
0.0169436354,
0.0304377396,
0.0079183131,
0.2468838543,
-0.155126676,
-0.1208430529,
-0.3237172067,
-0.0724271387,
0.0879732445,
-0.4804647565,
0.3551839292,
-0.026848238,
-0.325533092,
-0.2417754382,
0.1261121035,
-0.0964431018,
-0.0699633062,
-0.0347927362,
0.1379456669,
-0.1718252301,
0.0094863232,
-0.4415678084,
0.0668799281,
0.0340701118,
-0.3649430275,
0.3318945467,
0.0976707935,
0.0095572928,
-0.2681990862,
0.0232205614,
0.3331258595,
0.1053548306,
0.5135987401,
-0.0469886921,
-0.0121936295,
-0.0900003761,
0.2590039372,
-0.0001804513,
-0.0954834148,
0.0781408027,
0.1912841797,
0.3023991585,
0.1007430255,
-0.0900860354,
0.0181861594,
0.3622383475,
-0.0750441924,
-0.0154781984,
0.2164577544,
-0.3582883775,
-0.0443059169,
0.1146611869,
-0.2236911058,
0.0958224311,
0.1896508336,
-0.0962162241,
-0.0030713768,
-0.1216244102,
-0.2456037998,
0.2308206558,
0.1090446115,
0.4995394349,
0.0859799981,
0.2474470437,
-0.202501893,
-0.2954275906,
-0.1155418828,
0.1100828797,
0.2118792236,
-0.3103190958,
-0.0364511237,
0.0036006556,
-0.0263737254,
-0.0472574793,
-0.418770045,
-0.0772801936,
-0.002174126,
-0.1159005538,
0.0387829021,
-0.1391519606,
0.2060873508,
0.0957115963,
-0.1754144877,
0.1691356003,
-0.0827374831,
-0.1555672586,
-0.070094578,
-0.0628749058,
0.0273879264,
0.4325107038,
-0.0062163225,
0.1022779867,
0.0694009587,
0.007533344,
-0.386561662,
-0.3180569112,
0.0014939809,
-0.1885011643,
0.3855709136,
0.5089982152,
0.0129550286,
0.0704965815,
-0.2351245731,
0.4283283353,
-0.0620496273,
-0.2789502442,
0.2951143384,
-0.2495292127,
0.0132226041,
-0.0754203498,
-0.0625771508,
0.0871268958,
-0.3013956845,
0.4161199033,
0.3892329037,
0.2587939501,
0.2775219977,
0.4537553191,
0.3612789512,
-0.1578190774,
0.0766769722,
0.2665537,
0.0884506777,
0.4034971893,
-0.031774573,
-0.2591503263,
-0.0606958382,
-0.6752926707,
0.0791362226,
0.1878127307,
-0.133500725,
-0.0855474621,
-0.3491370082,
0.3653412163,
-0.0175715201,
0.2512722611,
0.3202789426,
0.130919382,
0.0220842678,
-0.0302399956,
-0.1539266557,
0.4097855389,
-0.0565462001,
-0.1166488156,
-0.0444961525,
0.3685621619,
-0.278151989,
0.7187978029,
0.1594277471,
-0.1908805519,
0.1735195071,
-0.1888526529,
0.0868745446,
-0.2385749072,
-0.0506615974,
0.0356895328,
0.0839144066,
-0.0330270305,
-0.0050415248,
-0.0146539351,
-0.1548366398,
0.2445186079,
0.0944900885,
0.0179523937,
-0.093804948,
0.2726670206,
0.0028943077,
0.1238579229,
-0.1495913863,
0.0174951889,
-0.3889083564,
-0.1801966131,
-0.1647979766,
-0.3463931978,
0.2637690604,
-0.0110868374,
-0.2853624821,
0.0391526856,
-0.3850503266,
0.1164441481,
0.4242255986,
-0.1564012766,
0.2217940092,
-0.0206319615,
0.1937052161,
-0.1511173546,
0.6794900298,
-0.1187512502,
-0.3409122229,
0.4274686873,
0.1553487778,
-0.56057477,
-0.0846427307,
-0.1652867794,
0.2461472154,
-0.3158966005,
0.1086692363,
-0.4143290222,
-0.1433327198,
0.414011091,
0.391371727,
-0.0545660555,
-0.1851379275,
-0.2121136636,
-0.3040747344,
-0.1858676076,
-0.1297897696,
0.0128499474,
0.3727324009,
0.1485013515,
-0.3051453531,
-0.2967607379,
0.0164091103,
-0.1248367056,
-0.0524401069,
0.4077995718,
-0.2468925118,
0.1785909384,
-0.2198583484,
-0.0665869489,
0.3268235028,
0.2026310414,
0.0536716022,
-0.1761283278,
0.1134071648,
-0.0393441617,
0.4988565147,
0.2018643916,
-0.1145924032,
0.1512623131,
0.1214173138,
0.2522667646,
-0.1870197058,
-0.0860505328,
0.4117690027,
-0.2626808882,
-0.2254761308,
-0.3236451149,
0.5513414145,
0.0427406952,
0.218424961,
0.3525519967,
0.4389812946,
-0.2235932201,
0.2400866598,
0.4835233986,
0.889210999,
-0.1507896185,
0.2404502034,
0.6072921157,
0.0055063008,
0.2729425132,
0.2393169254,
0.2225950807,
-0.5379676819,
-0.0511483401,
0.0709352642,
-0.351935029,
0.2847332954,
0.1038033217,
-0.1133715287,
-0.0417591929,
-0.1383733749,
0.4122712314,
0.0663560629,
0.1267136484,
-0.2973128259,
-0.3045104146,
-0.0827563405,
0.031222757,
0.0454034172,
-0.3888436854,
-0.0592334345,
-0.1134187356,
-0.0788847059,
-0.0733951628,
-0.2180924416,
-0.0616671406,
-0.5097699761,
-0.0959413946,
0.472180903,
-0.442156285,
0.2003867477,
0.1333440542,
0.1253825873,
-0.080461815,
-0.1025495902,
-0.034653876,
0.1324415803,
-0.1809818447,
-0.0668336675,
-0.3247700632,
0.1169553101,
0.0500528924,
-0.0929777399,
0.007003604,
-0.1274045557,
-0.0782848075,
-0.0345483162,
-0.054657463,
0.199097991,
-0.279914856,
-0.2094133496,
-0.253510505,
-0.1570219696,
-0.1931710988,
0.0391988307,
0.1604583859,
-0.1208102331,
-0.07206963,
-0.0012571117,
0.0288350396,
-0.0694501027,
-0.0455082096,
0.5458692312,
0.2170066535,
0.5177694559,
0.358917594,
-0.0498757511,
-0.1814764291,
-0.0332917906,
0.6822755933,
-0.7731727362,
0.2939397991,
0.1818486601,
-0.2421349734,
-0.1677027941,
0.5106955767,
-0.1247628629,
0.1342892796,
-0.1064629406,
0.1037911177,
-0.4808641374,
0.2990936637,
0.2030526549,
0.3578310013,
-0.178676784,
-0.092787154,
0.0718780756,
0.1234469712,
-0.1977480352,
-0.0050354875,
0.0958986282,
0.0161496364,
-0.4035747051,
-0.0425034799,
0.2448575795,
0.0397895314,
0.0327777714,
0.0198102817,
-0.3607736826,
-0.1390211731,
-0.0378613696,
0.1455413401,
-0.0371491313,
-0.1967009753,
0.2865369618,
-0.0224831663,
-0.2330081016,
-0.2979310155,
0.1548818946,
-0.0779568255,
-0.1853629351,
-0.284127593,
0.3411078155,
-0.0969537571,
-0.3457169235,
0.0179393049,
-0.2194334716,
0.2988489866,
0.0271399897,
0.1437522471,
0.1295876354,
-0.0372081026,
-0.0095056314,
0.2139301151,
0.1074955389,
-0.2173410356,
0.2024218142,
-0.4366180003,
-0.4164589942,
-0.1429622471,
0.3953703344,
0.3089136183,
-0.0614444129,
0.1281324327,
0.1037926227,
0.12793082,
-0.2023242265,
0.0143387765,
0.1377163231,
-0.1896727383,
0.1461174339,
0.3554201424,
0.0605182499,
-0.0066238963,
-0.1027261391,
0.186222896,
-0.0740232989,
0.0466203839,
0.1086215004,
0.449513793,
0.0012586298,
-0.0275558811,
0.4771543443,
0.0175015684,
0.2943625748,
-0.0710612386,
-0.0856114626,
0.3696001768,
0.136124894,
0.0128993979,
0.0857533365,
-0.1288850307,
0.1021621302,
0.2327350974,
0.3544172943,
-0.0558936112,
-0.0186507311,
0.7463914752,
0.2487951815,
-0.0134410542,
-0.3547645807,
-0.0538718365,
-0.1985652894,
-0.1277569532,
-0.0794328377,
-0.0791808739,
-0.2595430315,
-0.0793811455,
-0.2000027746,
-0.403337419,
0.2291910648,
-0.1226268709,
0.0847565681,
-0.3299497068,
0.622736752,
0.2193331271,
0.0030640049,
-0.1611848176,
0.4744713902,
0.2397117019,
-0.2144981325,
-0.3211132884,
0.6006441712,
0.4467812777,
0.3391549289,
-0.2090890259,
0.039716471,
0.0275912452,
-0.1698440611,
-0.0682927072,
0.0773960426,
0.2278274745,
0.1914870739,
0.1424108595,
0.0518176518,
-0.1375396848,
0.0341774449,
0.2019423544,
-0.0764238015,
-0.1230498105,
0.2156753391,
-0.3101528287,
-0.239506349,
-0.0163393393,
-0.1258933246,
-0.3975880444,
-0.0625828207,
0.4661126435,
-0.1991132349,
-0.0436265729,
-0.2300644964,
0.035197366,
-0.1980311573,
0.5869740248,
0.1621026397,
0.4991672337,
-0.3921730518,
-0.0479746126,
-0.3389751315,
0.2338691354,
-0.4670827687,
0.1145956889,
0.2771804035,
0.3103750646,
-0.1225024685,
0.0611138344,
0.2008218467,
0.2744986415,
0.0680851415,
0.3729525805,
-0.2622805834,
0.0341850072,
0.3085060716,
-0.0292827878,
-0.0148931993,
-0.4345174432,
0.2661919892,
-0.3839820027,
-0.0235682372,
0.0823846161,
0.2193197459,
0.2361361682,
0.066924125,
0.4159299433,
-0.0065460559,
0.0268066917,
0.1588430256,
-0.2340560853,
-0.3672115207,
-0.1426377594,
-0.2464657277,
0.2377553135,
0.1127896532,
0.4968148768,
-0.3303936422,
0.1746421605,
-0.2260748744,
0.0220770035,
0.0435159542,
0.2901394367,
-0.1415715069,
0.4183502495,
-0.6275556087,
0.1206125692,
0.1010945961,
-0.1684275419,
0.0512663424,
0.025398938,
-0.297852695,
-0.4806821942,
0.5629156828,
-0.3771933317,
-0.4562425017,
0.0751596391,
0.0318005085,
0.4164330363,
-0.2171497643,
-0.4832146466,
0.0156035572,
0.3150596619,
0.060846366,
-0.0468183495,
0.1661627293,
-0.0293317251,
0.1080474779,
-0.150597021,
0.3135238588,
-0.1069216505,
-0.1743168682,
-0.2626369298,
-0.5996112823
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | The batch size fix doesn't work... not for #741 and not for this dataset I'm trying (DGS corpus)
Loading the DGS corpus takes 400GB of RAM, which is fine with me as my machine is large enough
| I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 37 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
The batch size fix doesn't work... not for #741 and not for this dataset I'm trying (DGS corpus)
Loading the DGS corpus takes 400GB of RAM, which is fine with me as my machine is large enough
| [
-0.3745763302,
0.1280582547,
-0.047619734,
0.2082385123,
0.2405513525,
-0.0033119617,
0.4983980656,
0.147462815,
-0.293283999,
0.1866018325,
0.2814417481,
-0.053964451,
-0.1909174323,
-0.1175016835,
0.2229364216,
-0.2851467729,
0.1425436884,
0.3723787963,
0.004917278,
0.0282002222,
-0.0874818191,
-0.1740169674,
-0.2596130371,
-0.1141796783,
-0.2867549062,
-0.192432344,
-0.2385249883,
-0.1416580826,
-0.1820703596,
-0.5740126967,
0.1513033956,
0.0021337746,
0.2676509321,
0.419883579,
-0.0001258403,
0.014041937,
0.5327541232,
-0.0296703558,
-0.3078176677,
0.1804802865,
0.1160388663,
-0.5670772791,
0.0755025595,
-0.2768155634,
0.0667393953,
-0.6155686378,
0.0792864561,
-0.0935679823,
0.081132099,
0.2686921358,
0.0758143589,
0.1147660539,
0.2332262993,
-0.2019834369,
0.4513533711,
0.2915461659,
-0.1934953779,
0.0987180695,
0.4797886312,
0.2244311869,
-0.1344649494,
-0.0934097022,
-0.2257816643,
0.2786091864,
0.2249962837,
0.1619927585,
0.5029174089,
-0.2946100831,
0.1333658248,
0.3447368741,
0.5489016175,
-0.1115244851,
-0.2093061656,
-0.2974887192,
-0.0686773062,
-0.1175813749,
-0.2431560755,
0.2419319451,
-0.2852620482,
-0.1375109553,
-0.2829046845,
0.1252438277,
-0.3688936532,
0.3038166761,
0.2715137303,
0.0086961417,
0.0880792812,
0.2428208441,
-0.0325251818,
-0.1472889036,
0.3926496804,
-0.1554116905,
-0.1184123009,
0.143139571,
0.0588825569,
0.1550058722,
-0.0380721912,
-0.288838923,
0.4321168959,
-0.1063440144,
0.01387103,
-0.0473385267,
0.5867904425,
-0.0926304311,
-0.128766343,
0.3904910386,
-0.1972961426,
-0.0416498855,
0.1045779735,
0.1069967747,
-0.0620183982,
0.2088288516,
-0.2877636552,
-0.4063179493,
0.409329772,
-0.1046166122,
0.0710789189,
0.1694400162,
0.0670006573,
0.1073105335,
-0.3212198317,
-0.059826009,
-0.1791732013,
0.3538224697,
-0.0039107455,
-0.0253153015,
-0.0678939596,
0.2610297799,
-0.0380549096,
-0.0714618862,
-0.1640250087,
-0.0808365867,
-0.230917424,
-0.0260762274,
0.2522599399,
0.1547977477,
0.208724156,
-0.2251219451,
0.2305278033,
0.0526597761,
0.1099232733,
-0.1192197502,
0.2041053921,
0.306858331,
-0.031775631,
0.0919989869,
-0.0652694106,
0.0603401959,
-0.239864096,
0.4755076766,
-0.1224318519,
-0.2511697114,
-0.2756823301,
0.0325486548,
-0.2342318445,
0.0859293118,
-0.3321463168,
0.0839201882,
0.4152878225,
0.0884543806,
0.1165008247,
-0.1233676821,
0.0668458715,
-0.4432198405,
0.0363991782,
0.1962481737,
-0.3947774172,
0.096242778,
-0.0176296756,
0.1693833768,
0.2834203541,
0.1204253733,
-0.076903984,
0.2557762265,
-0.1914674193,
0.2448734641,
0.5503516197,
0.0374394357,
-0.3248765469,
0.2341149598,
-0.0235388409,
-0.2791966796,
0.3945930302,
0.1149655133,
0.0964223146,
-0.0518595353,
-0.1384654641,
0.3612681925,
-0.2345640957,
0.0739979893,
-0.1379669011,
-0.5268686414,
0.094798401,
0.1622679532,
0.3325758576,
-0.1004157513,
0.0353726484,
-0.3560438156,
0.1648019254,
-0.4008253813,
0.3126735687,
0.1492697299,
0.2288143635,
-0.1841287911,
0.2083988786,
-0.1813566387,
-0.6962061524,
0.2876124978,
-0.5014746785,
0.0739168152,
0.0391726345,
-0.042970106,
-0.1620541513,
0.0703148693,
-0.0692483932,
0.017435573,
-0.0559542589,
0.0669510961,
0.373053968,
-0.184237808,
-0.0645481274,
-0.3771055043,
0.0573682413,
-0.0027467008,
-0.3606956601,
0.2045647353,
0.0023691931,
-0.4256265759,
-0.1967066526,
0.0787273869,
-0.06718757,
-0.1091162786,
-0.0298987664,
0.1906700432,
-0.1057276875,
-0.1265949458,
-0.5945061445,
0.1133438349,
-0.0075301779,
-0.1709635407,
0.3066865504,
0.120305106,
-0.0383866318,
-0.2761613727,
0.1548979431,
0.2250412256,
0.0956045985,
0.4443616271,
-0.0483176149,
-0.1787980646,
0.0536849387,
0.1091340929,
0.023280479,
-0.187233448,
0.0573429577,
0.1311628371,
0.2436994016,
0.0179073885,
-0.1004730463,
-0.0674118921,
0.2330173254,
-0.0413284078,
0.1955350041,
0.124820143,
-0.3651070297,
-0.0716262311,
0.1410182267,
-0.2624343932,
0.1857791841,
0.2264379263,
0.0025504334,
0.0076845093,
-0.024963513,
-0.2826312184,
0.169932127,
0.0370538794,
0.5360165238,
0.2710428834,
0.2685306668,
-0.1529059559,
-0.2596244514,
-0.070225589,
0.1242117211,
0.1814391166,
-0.2733659148,
0.0103880409,
0.0000498863,
-0.1357453018,
-0.0412943624,
-0.3904170096,
0.0741704255,
0.087491557,
-0.0372944064,
0.0703360811,
-0.153344959,
0.1652030349,
-0.0397773609,
-0.0418314002,
0.2344289571,
-0.2710822225,
-0.0937429368,
-0.00934589,
-0.2818732858,
-0.0323999263,
0.3056124151,
-0.0038356499,
0.1419287473,
0.0992972478,
0.0966010988,
-0.2507051826,
-0.2788381875,
-0.0341021307,
0.0217123888,
0.3230949938,
0.457457155,
0.149973318,
0.1179576069,
-0.1752307564,
0.3148293495,
-0.1135184392,
-0.2176909,
0.1710076481,
-0.3160588145,
0.0326281004,
-0.1210352629,
-0.0494645834,
0.011216959,
-0.3729517758,
0.0696586445,
0.4055190682,
0.2205290645,
0.3084492087,
0.4828368723,
0.2367548496,
0.1243313253,
0.1658311039,
0.1984269917,
0.2151187658,
0.4572964311,
-0.0293488149,
-0.2974742353,
-0.1902781874,
-0.6981365681,
0.0184094384,
0.3738338947,
-0.2694820166,
-0.0245693382,
-0.3942728937,
0.1062367484,
0.0583177134,
0.2845515609,
0.3782831728,
-0.0474193953,
-0.0254098605,
-0.0703165829,
-0.0584219433,
0.2494768202,
0.1239886209,
0.1173085794,
-0.0308746919,
0.4462179542,
-0.1945864409,
0.7147115469,
0.0947716907,
-0.3038936853,
0.2707911432,
-0.1401406974,
0.0170621313,
-0.2703030705,
0.0372010991,
0.0961652249,
0.1277518421,
-0.2376384735,
0.1475769877,
-0.0591040254,
-0.3861615956,
0.1775975972,
0.047105439,
-0.0790254623,
-0.0444592647,
0.2812480628,
-0.2039061338,
0.1338866204,
-0.0792910233,
0.0368068069,
-0.3127509654,
-0.2526506186,
-0.1902709156,
-0.4711130261,
0.1410621554,
0.0433602035,
-0.1022917032,
0.1238361374,
-0.3025415838,
0.2792184651,
0.4346428812,
0.0007249679,
0.2395618111,
-0.0787822381,
0.2065568715,
-0.097024411,
0.6973792315,
-0.1804161817,
-0.0816425756,
0.3259966075,
0.1955779642,
-0.5518754125,
-0.2422313094,
-0.0672409236,
0.0954437628,
-0.1372197419,
0.1183140352,
-0.4352435172,
0.1217411682,
0.3166217804,
0.4247945845,
-0.0536098816,
-0.2296969295,
-0.2966370583,
-0.3348880112,
-0.2174384594,
-0.0390176736,
0.1008375958,
0.3269640207,
0.1987347007,
-0.3782702088,
-0.4008758068,
-0.0408060849,
-0.073944822,
0.0705559999,
0.3742886484,
0.026396377,
0.0172826275,
-0.2732776999,
0.1370511353,
0.3507037163,
0.1135034934,
-0.0043428638,
0.0875770226,
0.1709026098,
0.0145836938,
0.4518882334,
0.3074618578,
-0.0481158681,
-0.0361697115,
0.1742118001,
0.3180811703,
-0.1563241929,
-0.0163772628,
0.2593966424,
-0.3316498101,
-0.4587731361,
-0.2922755778,
0.5466743708,
0.1049685478,
0.172392875,
0.2966719568,
0.2643333375,
-0.3065364659,
0.4464044273,
0.5022364855,
0.8925893307,
-0.1167147607,
0.2179516405,
0.3722966909,
0.2857914567,
0.2620505989,
0.3009259999,
0.1885154247,
-0.4703859091,
0.0611443147,
0.1075817049,
-0.4274889231,
0.1937939823,
0.3318335116,
-0.2136282772,
0.055597581,
-0.2017823756,
0.3583789468,
-0.0195149612,
0.0569365099,
-0.0770811588,
-0.2509155869,
-0.0300213434,
-0.0220965985,
0.1072168872,
-0.309564054,
-0.1783050746,
-0.1149401516,
-0.180432409,
-0.1578804404,
-0.301423043,
-0.1294433177,
-0.3661156297,
-0.0263833236,
0.352342993,
-0.5593370795,
0.0127386637,
0.0975905433,
0.0904761702,
0.0514145605,
-0.0709395185,
-0.0683586225,
0.2398956269,
-0.2562882304,
0.1004846767,
-0.358142525,
0.1616693437,
-0.0170577075,
-0.0635132939,
0.0105686467,
-0.1707505435,
-0.1043337286,
-0.1473845541,
0.0010240668,
0.0947538093,
-0.2414890677,
-0.3821019828,
-0.1939326823,
-0.0871564001,
-0.0878814682,
-0.0287434068,
0.0897853971,
-0.0756545812,
0.2411967069,
0.0799372196,
-0.1455173343,
-0.0500127338,
0.0268448424,
0.6528418064,
-0.030887289,
0.4302844107,
0.3163841367,
-0.0479411408,
-0.137131542,
-0.0058024675,
0.4690584242,
-0.6159569025,
0.3625896573,
0.1511608809,
-0.2743064761,
-0.0059911176,
0.4451167881,
-0.0727245733,
0.2775432765,
-0.1605942249,
-0.0049945498,
-0.4703550637,
0.2354561687,
0.1205838099,
0.3705753982,
-0.1522600949,
-0.2207002044,
0.0976173356,
0.161138162,
-0.1268957257,
-0.0327619798,
0.0083878813,
0.0161706749,
-0.6082540751,
0.1483256817,
0.0897217393,
0.150092259,
-0.0480170026,
0.0465203673,
-0.2260241807,
-0.0851690918,
0.0268543642,
0.2054858953,
-0.0310735423,
-0.0522644296,
0.3520443439,
-0.1590042263,
-0.3431047499,
-0.196246013,
0.1736914963,
-0.0258746073,
-0.2029257119,
-0.2717238963,
0.3582444489,
0.0095416084,
-0.1717255414,
0.1633916199,
-0.2824488282,
0.291849792,
0.0643569455,
0.2059907466,
0.1921400875,
-0.0676648021,
-0.034550637,
0.1483298987,
0.2114982158,
-0.2168194503,
0.1892521381,
-0.4090179801,
-0.4071273208,
-0.0274294131,
0.3321344256,
0.3150836527,
-0.0426494144,
0.0057692314,
0.0725256577,
0.1130338758,
-0.2808315158,
0.0448143631,
0.1133655757,
-0.0556094199,
0.153471306,
0.4482031763,
0.0966029614,
-0.0977457538,
-0.1922980994,
0.2072161585,
0.0730998069,
0.0531509034,
-0.0388384871,
0.4976272881,
0.06062131,
-0.1085687727,
0.3637857437,
-0.0256394073,
0.4311864972,
-0.0151956324,
0.0178497005,
0.4252932072,
0.2894135714,
-0.0267555416,
0.0356653892,
-0.1030521318,
-0.0276342779,
0.4369133711,
0.4502415061,
-0.0880775228,
0.0422734655,
0.4286780059,
0.3360231221,
0.0045398134,
-0.3861783445,
-0.1956739426,
-0.1396334469,
-0.1259271055,
-0.2316325754,
-0.0897773355,
-0.0855602995,
-0.166297093,
-0.2277533412,
-0.4116141498,
0.0615380704,
-0.1246627569,
0.0069566374,
-0.2559816241,
0.5384845138,
0.0866560489,
-0.0274609141,
-0.231894359,
0.4704697132,
0.2490822077,
-0.1112722605,
-0.1051199436,
0.5898385644,
0.5599627495,
0.4387230873,
-0.2553028762,
-0.0112183103,
-0.0201240126,
-0.1263953596,
-0.3179318607,
0.1776319444,
0.2475594282,
0.0826783627,
0.1629336029,
-0.0125131989,
-0.1205988899,
0.2289253771,
0.1614982486,
-0.238505736,
0.0332439654,
0.3079957664,
-0.235271737,
-0.1989792436,
0.0437851027,
-0.0636349618,
-0.4537605047,
-0.0903048739,
0.5740743876,
-0.3744278848,
0.0108038206,
-0.0825750679,
-0.0180427469,
-0.3596268892,
0.6653102636,
0.2563318908,
0.6802743077,
-0.2463728935,
0.0150949303,
-0.3281950355,
0.3073234558,
-0.5743767619,
0.1913204193,
0.1857646853,
0.402905941,
-0.0787028447,
0.0760388151,
0.1396749169,
0.2906520069,
-0.0944432095,
0.5938668847,
-0.2642399073,
0.0183151718,
0.0135865062,
0.0321016833,
-0.0200354569,
-0.4920802414,
0.2735617459,
-0.4048540592,
-0.0611604601,
0.0724634752,
0.0960551351,
0.3531211615,
0.3399715722,
0.5330660343,
-0.0138519127,
0.1522526294,
0.0977395847,
-0.0338158272,
-0.4907113612,
-0.0232549924,
-0.2535429895,
0.1672685593,
0.117678903,
0.3558968008,
-0.3410945535,
0.3061566651,
-0.0457974151,
-0.1281306148,
-0.0186483487,
0.2860831916,
-0.088252604,
0.2683674693,
-0.5508415699,
0.0947745368,
0.0382201374,
-0.1866862476,
0.0787471905,
0.0134666581,
-0.2153004557,
-0.5623301864,
0.6698251963,
-0.3410619497,
-0.5061421394,
-0.1133760139,
0.0440775938,
0.2292521447,
-0.1240594387,
-0.2394164652,
0.0347790867,
0.3517040908,
0.1622705907,
-0.2105358243,
0.1108053178,
-0.1335235983,
-0.0080629513,
-0.1948656291,
0.2667160928,
-0.0892978385,
-0.2301194072,
-0.6121367812,
-0.6397605538
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Not yet, I've been pretty busy with the dataset sprint lately but this is something that's been asked several times already. So I'll definitely work on this as soon as I'm done with the sprint and with the RAM issue you reported. | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 42 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Not yet, I've been pretty busy with the dataset sprint lately but this is something that's been asked several times already. So I'll definitely work on this as soon as I'm done with the sprint and with the RAM issue you reported. | [
-0.1500291824,
0.2067140341,
-0.0467008874,
0.2796336114,
0.445869118,
-0.0149024278,
0.6093958616,
0.1298002303,
-0.3220184445,
0.1937068254,
0.2713235021,
0.3150213957,
-0.1662632525,
-0.1340915263,
0.2840393484,
-0.3528668284,
0.1987506002,
0.4137445688,
-0.0261278078,
0.0539421849,
-0.0769714862,
-0.1808708608,
-0.2342817783,
0.1500303149,
-0.4875101447,
0.0162200127,
-0.2609251738,
-0.0898394734,
-0.2083283067,
-0.6032207012,
0.2545193136,
0.0392497629,
0.0257065687,
0.2163897157,
-0.0001187129,
0.0717894584,
0.5233744979,
0.1001180559,
-0.3757016361,
-0.0207122881,
0.1298973113,
-0.4313423336,
0.2927474678,
-0.3118650019,
-0.0444275104,
-0.6730902791,
-0.0052330135,
-0.092531383,
0.0851976573,
0.2867690325,
0.1531414241,
0.1496407837,
0.26104635,
-0.2167927474,
0.5045079589,
0.308696121,
-0.2349265516,
-0.0965393633,
0.2660938799,
0.0270715468,
-0.0867842287,
-0.1411198229,
-0.049965851,
0.2337393314,
0.3484750986,
0.3037253618,
0.2073806673,
-0.2104097605,
0.0256283097,
0.3553411663,
0.537417233,
-0.2118533254,
-0.1425718367,
-0.1533840299,
0.007466156,
-0.1359967291,
-0.0367606282,
0.2109225243,
-0.3065979183,
-0.0860808343,
-0.2723341286,
0.1510217339,
-0.3894480467,
0.2965714931,
0.1956054121,
0.0183367133,
0.0433379486,
0.234314099,
-0.0197655633,
-0.1694681942,
0.5208331943,
-0.2911008298,
-0.022575967,
0.1274238676,
0.0479966663,
0.1595192254,
-0.0755238906,
-0.3094817102,
0.3864967525,
-0.0554516912,
0.1326502115,
0.0440818593,
0.3791758418,
0.0212112144,
-0.1555462629,
0.2336509377,
-0.128194347,
-0.0899406001,
0.0055329097,
0.0701000988,
0.0022223087,
0.0470440239,
-0.2628852129,
-0.2715009451,
0.423247844,
-0.0934407711,
0.2694974244,
0.1873335391,
0.0271521602,
0.0392052941,
-0.5091848373,
-0.133491382,
-0.0782192275,
0.2353957742,
0.0806332901,
-0.0823205262,
-0.0616269708,
0.3054971993,
-0.1172135025,
-0.1475104094,
-0.2355751991,
0.0166073423,
-0.2514524758,
-0.0253880136,
0.1708402932,
0.2288855016,
0.1449002028,
-0.0470353886,
0.0650941953,
0.1135160327,
0.2895403206,
-0.0105913375,
0.1357875913,
0.1952756792,
-0.206505239,
0.0302205719,
-0.0129402829,
-0.1132824421,
-0.1792578399,
0.3830025494,
0.0182224251,
-0.3663844466,
-0.2873327136,
0.0946430117,
-0.2151791304,
0.0613823198,
-0.0709391162,
0.1718260497,
0.2112198323,
0.1510824561,
0.060830418,
-0.0333513096,
0.0417916439,
-0.440171361,
0.2193188816,
0.1395140439,
-0.405880332,
0.05546261,
-0.1631774753,
-0.0664397106,
-0.0156458467,
-0.02456397,
-0.2742758989,
0.2772707641,
-0.1955377311,
0.2298749536,
0.587229073,
0.1661986262,
-0.2438392788,
-0.0368982516,
0.0033270086,
-0.1664950401,
0.2262388617,
0.1600515842,
-0.1171489581,
0.0681515634,
-0.1770193875,
0.3029490411,
-0.1542998105,
-0.1596275419,
-0.1055890471,
-0.3996220827,
0.3469384611,
0.2101231068,
0.1483470649,
-0.1116843745,
-0.1029535308,
-0.3682798743,
0.1174834967,
-0.452626586,
0.2587613165,
0.1318950951,
0.3844103813,
-0.1594670415,
0.0933058709,
-0.2613685131,
-0.6854189038,
0.2985850275,
-0.2492962182,
0.1730050445,
-0.0901351869,
0.022701025,
-0.0997131988,
0.1692354828,
-0.2032767534,
-0.0019785299,
0.06796664,
0.0506001525,
0.2336381525,
-0.1973648965,
-0.1905954629,
-0.3107890487,
-0.0612240732,
0.0008915043,
-0.3421285748,
0.5485236645,
-0.0172516983,
-0.3967371583,
-0.3598189056,
0.0743664727,
-0.008519494,
-0.0459282584,
-0.0238600262,
0.1929889917,
-0.0130881723,
-0.1298052818,
-0.4362170696,
0.1046656445,
0.0309574716,
-0.3927152157,
0.2777438164,
0.2070193887,
-0.0343701355,
-0.2954365611,
0.0406114087,
0.3032568693,
0.0700183362,
0.5143809915,
-0.06755694,
0.0170665737,
0.0247863084,
0.2132637799,
-0.0073069804,
-0.117253691,
-0.0014551869,
0.2322853804,
0.2657837868,
0.0138674974,
-0.0900228918,
0.0586161315,
0.3243607283,
-0.0800147131,
0.0507925116,
0.0836853012,
-0.2945882082,
-0.0193242524,
0.2128092647,
-0.210505873,
0.1979475617,
0.2074627876,
-0.0482014194,
0.1102699265,
-0.2756571472,
-0.1483097374,
0.2355588675,
0.1429793239,
0.556060791,
0.0222478956,
0.2309233695,
-0.2626541257,
-0.2959457934,
-0.1668591201,
0.1668502688,
0.2569406033,
-0.3018988371,
-0.0585599877,
-0.1459396333,
-0.0343176015,
-0.0355403088,
-0.4733987153,
0.0393409804,
0.0014645169,
-0.1478915215,
0.0221958924,
-0.1176977232,
0.2584041357,
0.0480031855,
-0.0906378254,
0.2260757983,
-0.0672280341,
-0.1370677799,
-0.1112420708,
-0.1663930714,
0.023018159,
0.3056999445,
0.0607745163,
-0.0255740713,
0.130439505,
0.0086154025,
-0.3728964031,
-0.364366293,
0.0700166225,
-0.0963851437,
0.3734642863,
0.484683007,
0.0340088978,
0.070784539,
-0.2421431541,
0.4771782756,
-0.0035098286,
-0.2795154154,
0.3224967718,
-0.2145096958,
0.0431248397,
-0.0884383023,
-0.200250566,
0.0433547311,
-0.3384427726,
0.2144085169,
0.3770569861,
0.2181913257,
0.2402548939,
0.4826953113,
0.384685576,
-0.0262591895,
0.0725129247,
0.1978989244,
0.2519874275,
0.3446089625,
-0.0619258396,
-0.2083566189,
-0.0889662951,
-0.7822169065,
0.0658637211,
0.3343042731,
-0.1328393668,
-0.1330106556,
-0.3091553152,
0.368486762,
-0.0566360578,
0.1405152082,
0.3780649602,
0.170871675,
-0.021763131,
-0.0804596171,
-0.1139995903,
0.3861760795,
0.0908229649,
-0.0778868422,
-0.0079123629,
0.4225044847,
-0.1440057606,
0.6777372956,
0.0987179503,
-0.2711269557,
0.2037223727,
-0.2157241255,
0.0048971642,
-0.2505936921,
0.0265116002,
-0.1217843071,
0.0888630152,
-0.1523336619,
-0.0191510562,
-0.0363732465,
-0.3188760877,
0.1218134761,
0.1965563297,
-0.0624403991,
-0.0397176258,
0.1316145211,
-0.0308443457,
0.1022255197,
-0.091835998,
0.1050001383,
-0.2875979841,
-0.0756792799,
-0.1908875555,
-0.420481503,
0.1240353957,
-0.0575268269,
-0.3283362389,
0.1398128569,
-0.0885656327,
0.1524427533,
0.3744048476,
-0.1042877361,
0.1758555323,
-0.1414589733,
0.1569477469,
-0.1547943503,
0.6634986997,
-0.1758404374,
-0.2710128725,
0.5152448416,
0.1407133043,
-0.5415211916,
-0.2129686028,
-0.2095399052,
0.245809108,
-0.2725164592,
0.1520116627,
-0.4102876782,
-0.03270109,
0.377312988,
0.3596916795,
-0.0327301212,
-0.0944849923,
-0.2216609865,
-0.3411522806,
-0.0681904182,
-0.1154120564,
-0.0727881715,
0.315289706,
0.1236099973,
-0.3971576095,
-0.3735953271,
-0.0400241874,
-0.1721287072,
-0.0104520675,
0.4588954449,
-0.2380859703,
0.1649463773,
-0.2397783399,
0.000923908,
0.264870882,
0.1921316534,
0.117578879,
-0.0643796027,
0.1052882969,
-0.0572622605,
0.4494800866,
0.2592757642,
-0.0540851057,
0.0574306734,
0.1639577895,
0.1375253499,
-0.1249854937,
-0.0268661566,
0.4133702517,
-0.3308496773,
-0.1898860633,
-0.3715831041,
0.6200918555,
0.0414906256,
0.1514871866,
0.3555671871,
0.3764853179,
-0.2424076945,
0.3165284693,
0.5446489453,
0.9667250514,
-0.1289043278,
0.2134443969,
0.6495649219,
0.0029648754,
0.2828020453,
0.2540847957,
0.2277833819,
-0.5002315044,
-0.0339995809,
-0.0065802634,
-0.3927593231,
0.2069498301,
0.2149786204,
-0.1865029484,
-0.0012374677,
-0.2182621956,
0.4358301461,
0.1036748886,
0.0344061367,
-0.2134680599,
-0.1178777292,
-0.0730039552,
0.0895676538,
0.0058278069,
-0.4381957948,
-0.115448989,
-0.1017155051,
-0.197841838,
-0.0135277444,
-0.1254942268,
-0.0239035059,
-0.3495714664,
0.0696780905,
0.3701095283,
-0.5165643096,
0.0208658092,
0.1090422422,
0.0572876446,
-0.1402060986,
-0.096969828,
0.0260195564,
0.2428460717,
-0.1842738986,
-0.0130587993,
-0.3214936256,
0.2630616128,
0.0328304768,
-0.2051189691,
0.0229542051,
-0.1353126913,
-0.1692554355,
-0.1750238687,
-0.0551153161,
0.2479516417,
-0.2530693114,
-0.1780582368,
-0.0815896019,
-0.1463173032,
-0.1738773137,
0.066602543,
0.1170259193,
-0.1410746723,
0.0025064256,
0.1300415397,
0.0235493388,
-0.0709222779,
0.02051978,
0.5894395113,
0.2913072407,
0.4302315712,
0.3094698787,
-0.0467935316,
-0.1781940907,
0.0038345638,
0.6479734182,
-0.5415279269,
0.2230455577,
0.1170608178,
-0.2020022422,
-0.1218761876,
0.4708725214,
-0.1145157963,
0.2816267014,
-0.1862779707,
0.1173034906,
-0.473161757,
0.2905728221,
0.2220408469,
0.4258407354,
-0.2673301697,
-0.1688769758,
-0.0050424775,
-0.0191148035,
-0.2316869497,
0.0789486319,
0.0279304609,
0.0678840876,
-0.5748074651,
-0.1059269905,
0.1317715645,
0.0811180696,
0.1017662287,
0.0013394038,
-0.3881569803,
-0.1580250561,
-0.0020908255,
0.1558318883,
0.0587418638,
-0.1748425215,
0.2019319236,
-0.1383809149,
-0.2560032904,
-0.2296721786,
0.0389318801,
-0.0213913731,
-0.2182000577,
-0.1809260547,
0.3834411502,
-0.0254355203,
-0.3117887974,
0.0269562099,
-0.2520408034,
0.2981005907,
0.1187536418,
0.0703947619,
0.1229050905,
-0.0584068149,
-0.0751529038,
0.1965302378,
0.0404649489,
-0.2731572688,
0.2590333521,
-0.4374718964,
-0.3664397895,
-0.227093488,
0.458124131,
0.3234951496,
-0.1110691726,
0.0736072585,
0.1590510011,
0.1698398143,
-0.2220701128,
0.0490023382,
0.2103674114,
-0.119346872,
0.1806748658,
0.3013377488,
0.0832025483,
-0.0033884966,
-0.1054540649,
0.1171282008,
-0.0229333676,
0.025282491,
0.0834056139,
0.4652063847,
-0.1098442525,
-0.0518161841,
0.3878831267,
-0.0196093507,
0.2227761447,
0.0079958234,
-0.0850418508,
0.4147610068,
0.0869291127,
-0.0517750494,
0.1325204074,
-0.0293121673,
0.1116988212,
0.2715784013,
0.3833858967,
-0.1204079539,
-0.0267838072,
0.6152065992,
0.2223725766,
-0.046036955,
-0.4197399914,
-0.186447829,
-0.1455495059,
-0.0340115279,
-0.0827058107,
-0.1281302124,
-0.2359884232,
-0.1540853083,
-0.1639439315,
-0.4509738386,
0.2512567043,
-0.0805565864,
0.0692254901,
-0.2903133333,
0.7235403657,
0.182648614,
0.0155357532,
-0.136416018,
0.4172538221,
0.3453891873,
-0.1296584159,
-0.1810422391,
0.4945086539,
0.3849452734,
0.4238957167,
-0.4110916853,
-0.0324106328,
0.0056647831,
-0.2146725953,
-0.0559280515,
0.0593393333,
0.2370566726,
0.188038975,
0.177080363,
0.0776374489,
-0.1500833333,
0.1009816974,
0.2514286935,
-0.0357961804,
-0.2235603333,
0.21573098,
-0.2251518965,
-0.2205972224,
0.0589822643,
-0.0766526833,
-0.4713692069,
-0.1439746767,
0.4179430008,
-0.168309316,
-0.0066460473,
-0.0709945858,
0.0423573516,
-0.273917526,
0.4860863984,
0.0101108905,
0.5837243795,
-0.2782607973,
-0.1044875756,
-0.3904716074,
0.3186707199,
-0.5196861029,
0.1071945876,
0.2680419683,
0.3691578507,
-0.0757013857,
0.1105256453,
0.1447156221,
0.1774958819,
0.0062256758,
0.4266394079,
-0.3925253451,
-0.0103616491,
0.2564421594,
0.0076438505,
-0.0866415873,
-0.3860508204,
0.1612875164,
-0.3479373157,
-0.0182349999,
0.1764247268,
0.1481561214,
0.2485919744,
0.2258593589,
0.5414074063,
-0.0579419956,
0.15316917,
0.2425015569,
-0.158721149,
-0.3644289374,
-0.1778421998,
-0.1589812785,
0.2417853475,
0.0755462572,
0.4335437417,
-0.2603598535,
0.2352064401,
-0.1638036966,
-0.001935231,
0.0276690498,
0.2400591522,
-0.1374568641,
0.4033577144,
-0.6006199718,
0.0910598636,
-0.021642562,
-0.1658454239,
0.092780672,
0.0565392859,
-0.223237887,
-0.4527820945,
0.6323028803,
-0.3164663613,
-0.4803240001,
0.0255677309,
-0.0108193252,
0.379121542,
-0.1154549941,
-0.344650954,
-0.0904823616,
0.393434912,
0.0028521782,
-0.1030599773,
0.1104019061,
0.0531179793,
0.073143132,
-0.1679362506,
0.2442337722,
-0.1923169941,
-0.1297085434,
-0.3842492998,
-0.5637404919
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Hi @lhoestq,
Any chance you have some updates on the supporting `ArrayXD` as a subtype or support of dynamic sized arrays?
e.g.:
`datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))`
`Array3D(shape=(None, 137, 2), dtype="float32")` | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 29 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Hi @lhoestq,
Any chance you have some updates on the supporting `ArrayXD` as a subtype or support of dynamic sized arrays?
e.g.:
`datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))`
`Array3D(shape=(None, 137, 2), dtype="float32")` | [
-0.208444491,
0.003985228,
-0.0901309699,
0.0411785282,
0.352728337,
-0.036300946,
0.6182533503,
0.0921266899,
-0.1956912428,
0.1928669363,
0.2420265973,
0.047521852,
-0.279655993,
0.0491818786,
0.2426550686,
-0.3445934057,
0.2176742405,
0.4056480825,
0.1302120388,
0.0160454344,
-0.1540566981,
-0.1357142031,
-0.3179492056,
0.2507111728,
-0.1650811881,
-0.0063744793,
-0.2581343651,
-0.1190827638,
-0.0953020155,
-0.4796808362,
0.4352331758,
0.1003658399,
0.2172332108,
0.1735833883,
-0.0001256443,
-0.0151911937,
0.4540737569,
0.0053070071,
-0.227201134,
0.1061743274,
0.0516522415,
-0.4238551259,
0.1683061123,
-0.3253711462,
0.0930256918,
-1.0158855915,
0.0374177732,
-0.1650808007,
-0.0047549643,
-0.0251165871,
0.0971730724,
0.1175353825,
0.574431777,
-0.0544574335,
0.4038918316,
0.3394395709,
-0.2964440584,
0.0017572149,
0.6183673739,
0.1803759634,
0.1633252501,
-0.3020038903,
-0.1555912793,
0.1084756777,
0.3668761849,
0.0900712758,
0.2777220905,
-0.1963362843,
-0.1039324105,
0.352525562,
0.4946057796,
-0.2098658979,
-0.2475663871,
-0.2931708097,
0.0062062009,
-0.0968709439,
-0.1634801328,
0.1315523982,
-0.26342237,
-0.0381587632,
-0.2493410408,
0.0278520733,
-0.4791486561,
0.392369926,
0.183208853,
0.3168770075,
0.0780542418,
0.2102219462,
-0.1305960119,
-0.4713121355,
0.5399208665,
-0.1946737915,
-0.039347522,
0.1770697683,
-0.0109683992,
0.0382323563,
-0.143609345,
-0.3914028406,
0.3296518028,
-0.1347400546,
0.2233510911,
0.0036933899,
0.2935335934,
0.1309705824,
-0.1120029539,
0.4439815879,
-0.0050442917,
-0.2573390901,
-0.1000136361,
0.0176750347,
0.1494628787,
0.1185550615,
-0.3885908425,
-0.0665609092,
0.2135719955,
-0.0072957231,
0.1125636026,
0.3052560687,
0.0839372277,
-0.082533747,
-0.5444911718,
-0.1952551156,
-0.0342568718,
0.1130026355,
0.1320817918,
0.0644629449,
-0.0958100781,
0.3358774483,
0.0190794449,
-0.0274255443,
-0.0492888726,
-0.0743578151,
-0.1696978509,
-0.2090103775,
-0.0742272511,
0.2425680161,
0.0230557136,
-0.2454912066,
0.2963340282,
0.258959949,
-0.1009151042,
0.1745901704,
0.1355240941,
0.0865420625,
-0.1246086285,
-0.1421931088,
-0.1530186087,
0.0659835935,
-0.2035204917,
0.4575894475,
0.0349646136,
-0.2632192671,
-0.5190052986,
0.0634811297,
-0.2189638317,
-0.059921667,
-0.0134628732,
0.1540386081,
0.246514678,
-0.0262611061,
0.0705751404,
-0.1021024436,
0.1038182303,
-0.3753692806,
0.055007156,
-0.1984355599,
-0.4159473479,
0.0520622656,
0.0362306498,
0.0176687036,
-0.2496101558,
-0.1657965332,
-0.1368048489,
0.1306782961,
-0.1476328522,
0.1554265916,
0.4196242988,
0.0659341663,
0.0262135826,
0.1470689774,
0.1074053198,
-0.2000731826,
0.2734329104,
0.0588100292,
0.0231611691,
-0.0664215833,
-0.3663854599,
0.2728355527,
-0.1010284126,
-0.2770083845,
0.0349046998,
-0.5597993731,
0.3022973239,
0.2005218416,
0.1087437421,
0.0053188009,
0.0642157942,
-0.347556591,
0.3698144853,
-0.4612919986,
0.204632923,
-0.0451623239,
0.3303062916,
-0.1753949374,
0.1733089536,
-0.317658633,
-0.7671217918,
0.2427633554,
-0.3001486659,
-0.0834677592,
0.1464914232,
0.0340718031,
-0.1214431822,
0.1729818881,
-0.2208020687,
0.0893118903,
-0.0316909365,
-0.0686632097,
0.1665668935,
-0.254778862,
-0.2116604596,
-0.4258862436,
0.015258749,
-0.0417572521,
-0.5153885484,
0.3571024239,
0.1193013713,
-0.373949796,
-0.3116869032,
0.2690061629,
-0.103885591,
-0.2080879956,
-0.1168523356,
0.2687584162,
-0.1084577367,
0.0143572818,
-0.509036839,
0.1212972477,
-0.0007315518,
-0.311498642,
0.445240736,
0.1880422682,
0.0074209948,
-0.3056254387,
0.298273623,
0.4102921486,
0.130301103,
0.453194052,
-0.1391331851,
-0.0143083772,
-0.0755285397,
0.2140806466,
0.0493240841,
-0.1115580574,
-0.1117410809,
0.2841151655,
0.1176201329,
-0.0952013358,
-0.1254861057,
0.1526379734,
0.1783765256,
-0.0880280361,
0.0617597811,
0.1566082835,
-0.1742017567,
0.126312077,
0.1600430757,
0.0594891161,
0.1768952459,
0.1391758919,
-0.2293733805,
0.0531166047,
-0.1666702777,
-0.1580820233,
0.2809894085,
0.0568839014,
0.4773668349,
0.1018740609,
0.2846907973,
-0.207088992,
-0.1774289459,
-0.1415569335,
-0.0324729979,
0.0808203071,
-0.1407949924,
0.0441581756,
-0.146721974,
-0.1975244433,
0.0022288619,
-0.6770451665,
0.0133737028,
-0.0239388794,
-0.1055032387,
0.0230712164,
-0.0805763379,
0.2785807252,
-0.0787082091,
-0.128610447,
0.2623371184,
-0.1532334238,
-0.1476902366,
0.0146167586,
-0.0939420164,
-0.0071483422,
0.1849808395,
-0.0640511289,
-0.1356013417,
0.2387930304,
0.1510273367,
-0.1945217699,
-0.3252476454,
-0.028423164,
-0.0677540153,
0.2654832602,
0.4885599017,
-0.175117299,
0.1404498965,
-0.3283759952,
0.322799474,
-0.1191451997,
-0.2491331249,
0.1754209548,
-0.1840381473,
0.0105263721,
-0.1025372893,
0.088562265,
-0.1960026771,
-0.2493998706,
0.2090705037,
0.4657218754,
0.216571331,
0.2988514304,
0.4565908611,
0.2107470781,
-0.009105918,
-0.119541958,
0.3286370337,
0.2301231921,
0.4304122925,
-0.0030970485,
-0.1493748277,
-0.126147002,
-0.8431601524,
0.1197353825,
0.3775209486,
0.1666362882,
-0.1006568521,
-0.1861111969,
0.1386382878,
0.0683850124,
0.0345075056,
0.3450478315,
0.0837460235,
0.0808111429,
-0.2081270665,
-0.0666599795,
0.3870494068,
0.2004282326,
-0.0055894847,
0.2823005021,
0.3034779727,
-0.1905016601,
0.6329152584,
-0.0674085841,
-0.3457585573,
0.2688484788,
-0.1577970833,
-0.1502289921,
-0.1161778793,
-0.2045218796,
-0.0719862357,
0.0357280262,
-0.2111999989,
-0.0722616762,
-0.0487272963,
-0.3421903551,
0.1218047589,
0.3561460078,
0.0475999415,
0.1159223616,
-0.0661758706,
-0.0563895665,
0.2670343518,
-0.1015592217,
0.1103115976,
-0.3185113072,
-0.2099429816,
-0.30180794,
-0.3100987673,
0.2342045903,
-0.0515378863,
-0.2744897306,
-0.0346875638,
0.0665810183,
0.2780244946,
0.5870447755,
0.1450058967,
0.1673186719,
-0.0304366853,
0.1368952543,
-0.0556071363,
0.3812722564,
-0.0937615931,
-0.2223683298,
0.5127314925,
0.0989440829,
-0.4337403178,
-0.2174160928,
-0.0203591883,
-0.0968287066,
-0.2593229115,
0.0813822746,
-0.2699010074,
-0.0149406176,
0.3794332147,
0.1416914165,
-0.077613242,
-0.2296663076,
-0.1584012657,
-0.0875889882,
-0.1614017338,
-0.2980893254,
-0.0982204527,
0.3584463,
0.1197390705,
-0.4149909616,
-0.3605047166,
-0.1243127063,
-0.1632248312,
-0.0213894993,
0.3761025071,
-0.2070844322,
0.047063373,
-0.2696408927,
-0.0585361272,
0.2221457362,
-0.0487722196,
0.1563633978,
0.1389496475,
0.047232613,
-0.0450556129,
0.5575082898,
0.1805841327,
-0.1562362909,
0.1604667157,
0.0501111671,
0.1121300459,
-0.1579122543,
-0.3009764254,
0.5219438672,
-0.4097985625,
0.0791214705,
-0.3341866434,
0.5171598196,
-0.0643043295,
0.2047123909,
0.3343690932,
0.2912311852,
-0.1984200776,
0.1640219837,
0.6330119371,
0.8277637362,
0.1401898861,
0.1410463005,
0.7423074245,
-0.0447886474,
-0.0904028043,
0.5768280625,
0.1131710708,
-0.4875542223,
0.1066651717,
-0.2029248476,
-0.3054341674,
0.2331067473,
0.1518637538,
-0.123945564,
-0.02168517,
-0.0988500416,
0.4097419083,
0.2667945623,
-0.0106268479,
-0.2763105631,
-0.1656614095,
-0.1189562976,
-0.0065222895,
0.0528804883,
-0.5251214504,
-0.1581436098,
-0.365121156,
0.0084711825,
-0.0222082026,
-0.1836153865,
-0.0284263585,
-0.2258720696,
0.0450624488,
0.4800755084,
-0.5878512263,
0.1917486936,
0.1592957079,
-0.0156092588,
-0.3468289673,
-0.1109325066,
-0.0694322661,
0.175330773,
-0.1501406729,
-0.2098661363,
-0.3819770217,
0.3388651907,
0.065279223,
-0.1567868441,
-0.0076094549,
-0.0468292013,
-0.1408226192,
-0.2539268434,
-0.0392383412,
0.2380221635,
-0.2631182671,
-0.1170006245,
-0.2332713902,
-0.0605958663,
-0.1205428243,
-0.0294409059,
0.1776785702,
0.0005445952,
0.0130403508,
0.1819693893,
0.1543806195,
-0.0411548093,
-0.0601759851,
0.5626728535,
0.1886490732,
0.3105584979,
0.2667618394,
0.0261358842,
-0.0932110995,
0.2646550536,
0.4370450974,
-0.5262251496,
0.1717756838,
0.1161474958,
-0.1427190602,
-0.0936783329,
0.3504404426,
-0.0658154711,
0.3271063566,
-0.1283333153,
-0.0530619621,
-0.2728984356,
0.3411974609,
-0.0420776829,
0.300247848,
-0.2621002495,
-0.0368265733,
0.0563184507,
-0.0335127041,
-0.1439363807,
0.084052518,
0.2423206419,
-0.1925823241,
-0.4776726961,
-0.077785112,
0.0831142589,
0.1527282298,
-0.0344700217,
0.0057045082,
-0.5085964203,
-0.0119309435,
-0.0374542177,
0.2035380751,
0.1438115835,
-0.1473113,
0.1234724596,
-0.021133326,
-0.3804353178,
-0.1049258038,
-0.1208063364,
-0.1715063155,
-0.1165288314,
-0.0932291076,
0.3691178262,
0.1329873502,
-0.2661270797,
0.0869142115,
-0.17108652,
0.2644999623,
0.1452869326,
0.0637353212,
0.0402694158,
-0.1136697531,
-0.1227027327,
0.2589555681,
0.0126045998,
-0.2605253458,
0.5132207274,
-0.3607143164,
-0.3177290261,
-0.2466162592,
0.6039428711,
0.2200218886,
-0.1087350324,
0.0422893502,
0.0518622138,
0.0542954952,
-0.2933724821,
0.0083422046,
0.3620060682,
0.168365106,
0.0796841756,
0.396184653,
0.3050347567,
-0.0819176883,
0.0781154558,
0.1511455476,
-0.0342173949,
0.0229410231,
0.0221414529,
0.6143956184,
-0.0979318246,
0.0784124136,
0.4165047705,
0.0984418094,
0.4063200951,
0.2499710619,
0.015370029,
0.4456935525,
0.4248218536,
-0.0788109377,
0.200818032,
-0.0426151305,
0.0157021657,
0.1423570663,
0.4935709536,
-0.0558745414,
0.1126006991,
0.7638300061,
0.126603201,
0.0897482485,
-0.2980301976,
-0.1383943707,
0.0386782065,
-0.0417292714,
-0.0584024712,
-0.0854913965,
-0.333443135,
-0.3653238714,
-0.1893309504,
-0.3462080061,
0.1235825866,
-0.263002336,
0.1551781297,
-0.4477920234,
0.6662032008,
0.2066173404,
0.0486717261,
-0.0889628977,
0.4410883784,
0.3619865179,
0.0626949295,
-0.1430430263,
0.5823984146,
0.3293173611,
0.3508196175,
-0.3735731542,
-0.1025462672,
-0.1375536174,
-0.1838686466,
0.1246768087,
0.1995574981,
0.095777832,
0.2726634145,
0.246315673,
-0.0009986704,
-0.0173519701,
0.1782152951,
0.3353330195,
-0.1091607958,
-0.247885555,
0.2219825387,
-0.3379708827,
-0.0672513396,
0.0929327384,
-0.0029857373,
-0.4135436416,
-0.0170293022,
0.2774389684,
-0.2001985908,
-0.0512872078,
0.003204606,
-0.0143805454,
-0.2667316794,
0.5101760626,
0.0598896705,
0.4724582732,
0.0209751502,
-0.1303229481,
-0.356361419,
0.3754886687,
-0.2177900821,
0.0949426889,
0.3324357271,
0.1496604681,
0.0329756923,
-0.0291193575,
0.2620601952,
0.2070946246,
-0.0250284113,
0.432369411,
-0.3074163198,
0.0020208389,
0.3492791951,
0.0656787679,
-0.1466334909,
-0.2338237315,
0.1958295256,
-0.417370826,
-0.110568814,
0.1605213434,
0.0218840949,
0.1033968925,
0.0660816804,
0.4318194687,
-0.0104290731,
0.1300343722,
0.2182445377,
-0.0676101968,
-0.2745563686,
-0.2089974582,
-0.1232425869,
0.2718925774,
0.1555337757,
0.4557083845,
-0.2516752779,
0.2150692195,
-0.0657658577,
-0.0497677512,
0.006862449,
0.179061681,
-0.2423695177,
0.5438679457,
-0.5492839813,
-0.0779448673,
0.163786754,
-0.2548532188,
0.0568845756,
0.21449022,
-0.1388095319,
-0.4605125785,
0.5378772616,
0.0551778413,
-0.4742547572,
0.0790163428,
-0.1847563684,
0.3659100831,
-0.0947690457,
-0.2403981537,
-0.0366392545,
0.3571833372,
0.0730748028,
0.1886267066,
0.0995167717,
0.1005747467,
-0.1019119918,
-0.2168261111,
-0.0144386133,
-0.0712293312,
-0.0771797746,
-0.33745718,
-0.4207011163
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Hi ! We haven't worked in this lately and it's not in our very short-term roadmap since it requires a bit a work to make it work with arrow. Though this will definitely be added at one point. | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 38 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Hi ! We haven't worked in this lately and it's not in our very short-term roadmap since it requires a bit a work to make it work with arrow. Though this will definitely be added at one point. | [
-0.0987304822,
0.2157685757,
-0.0361895859,
0.1980811208,
0.3335243762,
-0.0148138162,
0.6729160547,
0.0941131935,
-0.2653336823,
0.1920523643,
0.330093652,
0.2847846746,
-0.1851582378,
-0.0952649415,
0.2423299849,
-0.3900927305,
0.1759408563,
0.4636601806,
0.0826878995,
0.0519562326,
-0.0520087406,
-0.1384516805,
-0.2443874478,
0.2918314338,
-0.3977599144,
-0.0074216034,
-0.2625415921,
-0.228394717,
-0.1936278939,
-0.5090432763,
0.3147081733,
-0.0006441069,
0.1157893166,
0.2204847634,
-0.0001211161,
0.0560125858,
0.4980730712,
0.056340754,
-0.2676821649,
-0.1266441941,
0.0979177207,
-0.3960362077,
0.2492387146,
-0.3438535929,
-0.0336587206,
-0.8026289344,
0.0193168949,
0.0221976824,
0.0784243271,
0.2514155507,
0.1347982585,
0.1327703744,
0.2914692163,
-0.1992773265,
0.4904192984,
0.3490455747,
-0.2730591297,
-0.0843792111,
0.3083591759,
0.0497196093,
-0.0195993315,
-0.2024357915,
-0.0691878274,
0.1527652144,
0.3510464728,
0.3043107688,
0.3325363398,
-0.2280715853,
-0.0403411314,
0.4299195409,
0.5088965297,
-0.1575274169,
-0.1708115488,
-0.1280063391,
0.0862528309,
-0.0945471227,
-0.0624216609,
0.2352120429,
-0.2872253358,
-0.0706204027,
-0.1919656545,
0.1625071317,
-0.4509162307,
0.3606543541,
0.2118662745,
0.0809225515,
-0.0114202565,
0.2249782234,
-0.0935352296,
-0.2292496711,
0.5371076465,
-0.3507044911,
0.0374394506,
0.2259350121,
0.1172812134,
0.1355792582,
-0.1068523377,
-0.2385304868,
0.4191491604,
-0.0049823951,
0.1828816533,
-0.0639446005,
0.3001131415,
0.1084018424,
-0.1901924163,
0.2092389464,
-0.0208753478,
-0.1174458042,
-0.0792736188,
0.1655403674,
0.0466904342,
0.0618222468,
-0.2769744098,
-0.2844105363,
0.4106661081,
-0.07095626,
0.2312158793,
0.2673475742,
0.0908110738,
0.0294300281,
-0.5808670521,
-0.1497223526,
-0.0254863333,
0.2121632248,
0.0922299027,
-0.1061178818,
-0.1419931501,
0.4051831961,
0.0228593666,
-0.0956137106,
-0.1998206079,
0.0070376615,
-0.2048150897,
-0.0589818917,
0.1027755737,
0.1123303398,
0.1261415631,
-0.0109215602,
0.0562069789,
0.1010504887,
0.2348326147,
0.0499262922,
0.1728389561,
0.140201211,
-0.189089939,
-0.0646459088,
-0.0335474201,
-0.1814263016,
-0.2189384252,
0.3710365891,
-0.0744906217,
-0.2519071102,
-0.4225299656,
0.0955077484,
-0.2765149772,
0.0651350766,
-0.059470389,
0.0752608329,
0.2303728759,
0.0628444701,
0.0401090048,
-0.0310946107,
0.2473572046,
-0.3945895731,
0.1873605847,
-0.0015769617,
-0.3177871406,
-0.0184288211,
-0.1473838836,
-0.0497861132,
-0.0766058937,
-0.0850058421,
-0.2564001381,
0.2750614882,
-0.2200449258,
0.2653540671,
0.6616532207,
0.2300469428,
-0.0275226366,
0.0093545057,
0.0203855187,
-0.1692547649,
0.2073654681,
0.0774759725,
-0.1663612127,
-0.0375829339,
-0.3147424161,
0.2284341753,
-0.1725178957,
-0.2374632657,
-0.0014493646,
-0.3701043129,
0.4319513142,
0.13115789,
0.0757123232,
-0.0256970134,
-0.0593152381,
-0.4242018461,
0.0617764071,
-0.4753857255,
0.23887299,
0.0956537202,
0.3680791855,
-0.1174954847,
0.1033728048,
-0.1987985671,
-0.6633160114,
0.1479940414,
-0.3269465566,
0.0684965625,
-0.103515923,
-0.0127289966,
-0.1167169511,
0.1993879378,
-0.1957894564,
0.0680564046,
0.0465570502,
0.0832818449,
0.1992706805,
-0.1604416668,
-0.2258423567,
-0.4588733315,
0.016646577,
-0.0229315404,
-0.3702341914,
0.5743256211,
-0.0487582907,
-0.3515617251,
-0.337112546,
0.1342281401,
0.0599165782,
-0.0795549601,
0.0301115885,
0.1492355466,
-0.0830533803,
-0.0787755027,
-0.4900355041,
0.0864025503,
0.0316076465,
-0.4731903076,
0.2193967402,
0.181365639,
-0.0090985987,
-0.245786503,
0.0635043234,
0.3747840524,
0.0879560485,
0.5813248158,
-0.126972124,
0.0660556257,
-0.0166173261,
0.1873175502,
-0.0637855381,
-0.0988992602,
-0.041362457,
0.1875483245,
0.2195617855,
-0.0412391573,
-0.0814982876,
0.0124035589,
0.2831692696,
-0.0763909668,
0.0485755876,
0.0943501517,
-0.2622020841,
0.0241300091,
0.2071482092,
-0.2704466283,
0.0933374688,
0.1391815096,
-0.0742500275,
0.0506265573,
-0.2858202159,
-0.1754846275,
0.1957798153,
0.0846197382,
0.5732079744,
0.1150956601,
0.2738002241,
-0.2092379481,
-0.2014389336,
-0.1761317253,
0.0851690248,
0.1505379677,
-0.2391187847,
0.0694114938,
-0.0960018486,
0.0080921315,
-0.0627082065,
-0.5734019279,
0.0562899038,
-0.0410984233,
-0.1251583844,
-0.007178897,
-0.1493553519,
0.2693188488,
0.0940230563,
-0.1845422089,
0.223249197,
-0.1377818286,
-0.2320769578,
-0.0810122266,
-0.1397721916,
0.02291313,
0.1893304735,
0.0311693754,
-0.0940593332,
0.0999364927,
0.0354997329,
-0.4118798673,
-0.4540102184,
0.0996514037,
-0.1142489165,
0.3344697654,
0.5833545923,
-0.0149074513,
0.0700239316,
-0.3229905963,
0.4294370115,
-0.0011498063,
-0.2277642488,
0.3517602086,
-0.2792388797,
0.0788523704,
-0.1059112027,
-0.0940304622,
0.0376971699,
-0.2489802539,
0.1979440451,
0.4887150228,
0.2029842287,
0.2031733543,
0.4810782075,
0.3484110236,
-0.0808461756,
0.0429803357,
0.2867522538,
0.2725435793,
0.4623092413,
-0.130221799,
-0.2261163294,
-0.0421510972,
-0.9024544358,
0.0799669698,
0.2271863222,
0.0157990679,
-0.19567056,
-0.1324647367,
0.3634043634,
-0.0211041495,
0.1189382374,
0.294411093,
0.1568294466,
0.0415894911,
-0.1517076641,
-0.0737197697,
0.4391619563,
0.1008505225,
-0.0229890123,
-0.0276294276,
0.2658870518,
-0.1881069392,
0.624525547,
0.119061023,
-0.3782252669,
0.1852205396,
-0.2673844695,
-0.0269856919,
-0.2219010592,
0.0707335547,
-0.1824990064,
0.1632909328,
-0.0858732313,
-0.0685776994,
-0.0720269978,
-0.2815801203,
0.115835242,
0.2448931187,
-0.057787817,
-0.0230549015,
0.0227086246,
-0.0264493451,
0.1611946076,
-0.1319909692,
0.0804311857,
-0.2733573318,
-0.10790167,
-0.1891680062,
-0.2828922272,
0.2439748198,
0.0177741218,
-0.2827562988,
0.0709544271,
0.0676848888,
0.1395318955,
0.4566803277,
-0.1347289085,
0.2383640856,
-0.1145221815,
0.0929660499,
-0.1760997623,
0.5438806415,
-0.1566632241,
-0.2314192057,
0.5165029764,
0.2314662188,
-0.5232298374,
-0.1886627674,
-0.1555229276,
0.1535915136,
-0.3465436101,
0.1494382918,
-0.3906955421,
-0.0117446575,
0.3368811011,
0.3738779724,
0.0040632989,
-0.1205998659,
-0.1647749245,
-0.2754906118,
-0.0847474188,
-0.2419992089,
-0.0858822614,
0.3476139307,
0.097702235,
-0.419130981,
-0.3573645353,
0.0367639624,
-0.1770739853,
-0.0007150871,
0.4346482754,
-0.2874872684,
0.0712673515,
-0.3394147158,
-0.0203108601,
0.2301021218,
0.1398206949,
0.1775074005,
-0.066231519,
0.1435071379,
-0.0926417559,
0.4353049695,
0.0863314196,
-0.0882268995,
0.0783945397,
0.1191975921,
0.1082923561,
-0.0133695705,
-0.0798889548,
0.4191331267,
-0.3305976391,
-0.161999166,
-0.3191152215,
0.6340940595,
-0.0104077766,
0.1801794171,
0.2604027092,
0.4216444492,
-0.1894234717,
0.25519678,
0.5969879627,
0.8620154262,
0.0378393047,
0.1722200513,
0.6916140318,
0.0355374627,
0.2889744341,
0.3305393755,
0.110835135,
-0.5170719624,
0.040055491,
-0.0893092826,
-0.4294856489,
0.2397999316,
0.2657112777,
-0.2476805598,
-0.0125884172,
-0.2438177466,
0.4807460606,
0.1565129161,
-0.0536972769,
-0.2015184909,
-0.1308674067,
-0.0795706958,
0.0604368709,
0.0184547268,
-0.3900192678,
-0.1430812031,
-0.2199501395,
-0.1441863626,
-0.0366118997,
-0.0495151728,
0.0460661612,
-0.3448441625,
-0.0502129123,
0.51672405,
-0.5515486002,
0.0668497533,
0.1653506309,
0.0559452809,
-0.2133406997,
-0.1179417074,
-0.0366183259,
0.2471695691,
-0.2361064404,
-0.1293750703,
-0.3045615256,
0.2676638961,
0.0444944836,
-0.0840873569,
0.0538344868,
-0.1256599426,
-0.0603562966,
-0.0545579791,
-0.0292106252,
0.1936978549,
-0.2170750797,
-0.1509851217,
-0.114518851,
-0.1592562348,
-0.1218207777,
0.0389194675,
0.1215788499,
-0.1410832554,
-0.1378941834,
0.1177489012,
0.0704651102,
-0.0119488575,
-0.0516499616,
0.5510166287,
0.3104273379,
0.3901571631,
0.2568707764,
-0.0192210469,
-0.1990414113,
0.078067176,
0.5724362731,
-0.6061905026,
0.1683152914,
0.1329139173,
-0.1789970547,
-0.1007018387,
0.5450148582,
-0.1170514002,
0.2916315794,
-0.1273503006,
0.0724846497,
-0.3985958397,
0.2515299618,
0.1833911091,
0.3132038414,
-0.241289556,
-0.0718391463,
0.0583636425,
-0.1033632383,
-0.2108916342,
0.0564168058,
0.0543428436,
0.0073620682,
-0.5352549553,
-0.0172984116,
0.0381671153,
0.0722809732,
0.0940534323,
0.0146772787,
-0.367361784,
-0.130256176,
-0.0836911574,
0.1734054089,
0.1289809048,
-0.1058807075,
0.2010437697,
-0.0167975519,
-0.2995279431,
-0.2105609924,
-0.043136958,
-0.1308129281,
-0.1920119226,
-0.0990229771,
0.3399968147,
0.0207304452,
-0.4380844235,
-0.1024570018,
-0.2397681922,
0.2741346657,
0.0725252852,
0.020698186,
0.0892330855,
-0.0455881134,
-0.0507860892,
0.2219916582,
0.0105400756,
-0.2401545495,
0.3798942268,
-0.4209008813,
-0.2788288295,
-0.3206578791,
0.386651665,
0.2373376638,
-0.2053189874,
0.1342789978,
0.1600241214,
0.1335509121,
-0.2931458652,
0.1127544865,
0.1565291137,
-0.0677806064,
0.1565396488,
0.3240000904,
0.105399251,
-0.0171620734,
-0.0824287683,
0.0963171721,
-0.1141308099,
0.013692922,
0.1066903844,
0.6419900656,
-0.1201371849,
0.100737907,
0.4103649259,
-0.0068509113,
0.2283302844,
-0.1362488121,
-0.1021316126,
0.361802876,
0.1366479099,
-0.1150350049,
0.2637447417,
0.0144051276,
0.0423782691,
0.1945028305,
0.5667417645,
-0.1246592849,
0.077644743,
0.6018323898,
0.2360685021,
0.0012244021,
-0.3576303422,
-0.1152867749,
-0.0390124656,
-0.0028817554,
-0.1766205877,
-0.1126500741,
-0.2524794638,
-0.3445048332,
-0.1269436777,
-0.3985767365,
0.1758280247,
-0.0852208212,
0.1613775492,
-0.3082704246,
0.7386056185,
0.1928745061,
0.019133823,
-0.0908378884,
0.4798516929,
0.3387975991,
-0.1544818878,
-0.1970342398,
0.426625073,
0.3237747252,
0.3594301641,
-0.336614728,
-0.0549652465,
-0.0887421146,
-0.2488778085,
0.040842101,
0.1050984189,
0.2121213377,
0.0920438617,
0.2440502197,
0.054736793,
-0.1042802036,
0.2355065644,
0.2357187271,
0.0055957572,
-0.1912836134,
0.3488591015,
-0.2889257073,
-0.1870109588,
0.0504453667,
-0.0754321218,
-0.3536977768,
-0.1060261503,
0.3406727612,
-0.1086301655,
-0.0013785292,
-0.0808871239,
0.0409444682,
-0.245653674,
0.4476252198,
0.073339358,
0.5915706754,
-0.1646006405,
-0.0669568256,
-0.3540524244,
0.3694660962,
-0.4273026884,
0.0692668334,
0.288357228,
0.272444725,
-0.064748019,
0.1407485753,
0.0931723565,
0.2419684082,
0.0484821461,
0.3780898452,
-0.3498033583,
-0.1115472466,
0.2903212607,
0.0275094919,
-0.1034035906,
-0.3440868556,
0.1482644379,
-0.3978517354,
-0.0133106271,
0.2130670846,
0.105158262,
0.1991250813,
0.2104684412,
0.5235129595,
-0.0204212964,
0.0953864902,
0.1667878479,
-0.0646305531,
-0.2480612099,
-0.1721428186,
-0.1831059605,
0.2971854508,
0.0449291803,
0.4057395756,
-0.187679857,
0.2667940259,
-0.1443159282,
-0.135773167,
0.1033096686,
0.244129464,
-0.2240689546,
0.4508427382,
-0.6143884063,
0.0196530707,
0.0096426774,
-0.2210222632,
0.0637931004,
0.06435173,
-0.1437479705,
-0.4331992269,
0.6617776752,
-0.2992734611,
-0.4578565955,
0.0730497763,
-0.0448701568,
0.4074344933,
-0.1394218355,
-0.2819714546,
-0.0614758879,
0.4609857202,
0.0146075711,
-0.019311728,
0.0172542259,
0.0047948654,
0.0918335915,
-0.1730271429,
0.1973408014,
-0.0937363356,
-0.1125747412,
-0.4181850851,
-0.5695379376
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | @lhoestq, thanks for the update.
I actually tried to modify some piece of code to make it work. Can you please tell if I missing anything here?
I think that for vast majority of cases it's enough to make first dimension of the array dynamic i.e. `shape=(None, 100, 100)`. For that, it's enough to modify class [ArrayExtensionArray](https://github.com/huggingface/datasets/blob/9ca24250ea44e7611c4dabd01ecf9415a7f0be6c/src/datasets/features.py#L397) to output list of arrays of different sizes instead of list of arrays of same sizes (current version)
Below are my modifications of this class.
```
class ArrayExtensionArray(pa.ExtensionArray):
def __array__(self):
zero_copy_only = _is_zero_copy_only(self.storage.type)
return self.to_numpy(zero_copy_only=zero_copy_only)
def __getitem__(self, i):
return self.storage[i]
def to_numpy(self, zero_copy_only=True):
storage: pa.ListArray = self.storage
size = 1
for i in range(self.type.ndims):
size *= self.type.shape[i]
storage = storage.flatten()
numpy_arr = storage.to_numpy(zero_copy_only=zero_copy_only)
numpy_arr = numpy_arr.reshape(len(self), *self.type.shape)
return numpy_arr
def to_list_of_numpy(self, zero_copy_only=True):
storage: pa.ListArray = self.storage
shape = self.type.shape
arrays = []
for dim in range(1, self.type.ndims):
assert shape[dim] is not None, f"Support only dynamic size on first dimension. Got: {shape}"
first_dim_offsets = np.array([off.as_py() for off in storage.offsets])
for i in range(len(storage)):
storage_el = storage[i:i+1]
first_dim = first_dim_offsets[i+1] - first_dim_offsets[i]
# flatten storage
for dim in range(self.type.ndims):
storage_el = storage_el.flatten()
numpy_arr = storage_el.to_numpy(zero_copy_only=zero_copy_only)
arrays.append(numpy_arr.reshape(first_dim, *shape[1:]))
return arrays
def to_pylist(self):
zero_copy_only = _is_zero_copy_only(self.storage.type)
if self.type.shape[0] is None:
return self.to_list_of_numpy(zero_copy_only=zero_copy_only)
else:
return self.to_numpy(zero_copy_only=zero_copy_only).tolist()
```
I ran few tests and it works as expected. Let me know what you think. | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 224 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
@lhoestq, thanks for the update.
I actually tried to modify some piece of code to make it work. Can you please tell if I missing anything here?
I think that for vast majority of cases it's enough to make first dimension of the array dynamic i.e. `shape=(None, 100, 100)`. For that, it's enough to modify class [ArrayExtensionArray](https://github.com/huggingface/datasets/blob/9ca24250ea44e7611c4dabd01ecf9415a7f0be6c/src/datasets/features.py#L397) to output list of arrays of different sizes instead of list of arrays of same sizes (current version)
Below are my modifications of this class.
```
class ArrayExtensionArray(pa.ExtensionArray):
def __array__(self):
zero_copy_only = _is_zero_copy_only(self.storage.type)
return self.to_numpy(zero_copy_only=zero_copy_only)
def __getitem__(self, i):
return self.storage[i]
def to_numpy(self, zero_copy_only=True):
storage: pa.ListArray = self.storage
size = 1
for i in range(self.type.ndims):
size *= self.type.shape[i]
storage = storage.flatten()
numpy_arr = storage.to_numpy(zero_copy_only=zero_copy_only)
numpy_arr = numpy_arr.reshape(len(self), *self.type.shape)
return numpy_arr
def to_list_of_numpy(self, zero_copy_only=True):
storage: pa.ListArray = self.storage
shape = self.type.shape
arrays = []
for dim in range(1, self.type.ndims):
assert shape[dim] is not None, f"Support only dynamic size on first dimension. Got: {shape}"
first_dim_offsets = np.array([off.as_py() for off in storage.offsets])
for i in range(len(storage)):
storage_el = storage[i:i+1]
first_dim = first_dim_offsets[i+1] - first_dim_offsets[i]
# flatten storage
for dim in range(self.type.ndims):
storage_el = storage_el.flatten()
numpy_arr = storage_el.to_numpy(zero_copy_only=zero_copy_only)
arrays.append(numpy_arr.reshape(first_dim, *shape[1:]))
return arrays
def to_pylist(self):
zero_copy_only = _is_zero_copy_only(self.storage.type)
if self.type.shape[0] is None:
return self.to_list_of_numpy(zero_copy_only=zero_copy_only)
else:
return self.to_numpy(zero_copy_only=zero_copy_only).tolist()
```
I ran few tests and it works as expected. Let me know what you think. | [
0.0081768557,
0.1172870174,
-0.1061085984,
0.2801862657,
0.4025133848,
-0.0643154979,
0.5933445692,
0.1092594266,
-0.2332408428,
0.220736444,
0.127590552,
0.3022359014,
-0.2472838312,
-0.0211959574,
0.2019217014,
-0.3135284781,
0.0890401751,
0.5067414641,
0.0488855503,
-0.0273192544,
-0.0532909073,
-0.0695481673,
-0.1607428938,
0.1468552053,
-0.251341939,
0.0687444657,
-0.244350329,
-0.224344492,
-0.1773383617,
-0.4697859585,
0.287907064,
0.1888696402,
0.0287836101,
0.0859840438,
-0.0001230811,
0.0541413985,
0.3321123123,
-0.0007844237,
-0.271482408,
-0.0819979385,
0.2015636265,
-0.440066427,
0.2384083867,
-0.3255054355,
-0.0139811095,
-0.8362497091,
-0.0494644567,
-0.1110906526,
0.0708756521,
0.2057908177,
0.1044425741,
0.0736099705,
0.2843003571,
-0.078936629,
0.4699327648,
0.3682918251,
-0.2882512212,
-0.1275915056,
0.3975459337,
0.1431579292,
-0.0400088504,
-0.2101085782,
-0.1313416958,
0.1417174935,
0.3835517168,
0.2264854759,
0.218713209,
-0.2353861183,
0.0733535662,
0.3944592774,
0.5115253925,
-0.2453649193,
-0.1943129301,
-0.234799549,
0.0897708237,
-0.0467550531,
-0.0856359378,
0.3283032775,
-0.2202514708,
-0.0487608276,
-0.3536956906,
0.2286409289,
-0.5123702288,
0.3541973233,
0.1902460009,
0.0773998871,
-0.0146472976,
0.2034287006,
-0.1073711962,
-0.2308213711,
0.5585183501,
-0.3572507799,
0.0319316648,
0.2399897575,
0.0688930601,
0.1028446928,
-0.0690793544,
-0.4354411066,
0.360601753,
-0.0460961834,
0.1935751736,
-0.0213643909,
0.2743870616,
0.0304053985,
-0.1026977003,
0.2985353172,
-0.0004931525,
-0.0596965216,
-0.2731168866,
0.1101120338,
0.1455022842,
0.0948339477,
-0.1704497933,
-0.1599854827,
0.4061372876,
-0.0382157825,
0.2606362998,
0.2152995616,
0.0485561676,
0.0190863684,
-0.7071173787,
-0.1580284983,
-0.0421598516,
0.1278483719,
0.1143366322,
0.0015048739,
-0.0514346994,
0.3788038194,
0.0120272683,
-0.1303401887,
-0.1523468345,
-0.0806082413,
-0.1551575959,
0.0050098733,
0.0776838884,
0.2427166998,
0.0285713822,
0.037332274,
0.1099320874,
0.0145729734,
0.0978118405,
0.0748502761,
0.2582396567,
0.1224494502,
-0.1893649846,
-0.0665744171,
-0.0766480267,
-0.0325967334,
-0.2722554207,
0.4397105873,
-0.0544199571,
-0.2422065139,
-0.3447397053,
0.064946115,
-0.211709559,
0.1184358895,
-0.1155642867,
0.0989568904,
0.2430277616,
0.0399204046,
0.0517660528,
-0.0657434985,
0.1976661831,
-0.4457696378,
0.1396116465,
0.0001100787,
-0.466237098,
0.0617593266,
-0.0835712999,
-0.0497665629,
-0.0255614668,
-0.1201091111,
-0.2007636279,
0.1728929877,
-0.2748224437,
0.3207065463,
0.5103974342,
0.3285771906,
-0.1169236973,
0.0830684081,
0.0326129831,
-0.0853302255,
0.2711332142,
0.0790562108,
-0.1332360506,
0.0536822863,
-0.3695653379,
0.1610987633,
-0.0928769484,
-0.1600337625,
-0.093542017,
-0.4882473648,
0.3123805225,
0.1447313577,
0.1749596149,
0.0073291897,
-0.0438043848,
-0.4492784142,
0.2552004755,
-0.5342483521,
0.2359111756,
0.1078927144,
0.3874283433,
-0.073229447,
0.0397919491,
-0.1910842359,
-0.672509551,
0.1904430985,
-0.4558856785,
0.0481468849,
-0.0301427059,
-0.0505477563,
-0.1543769836,
0.1480969936,
-0.1734682769,
0.1258010268,
0.0503976867,
0.1491033286,
0.2341409028,
-0.2919442654,
-0.0407901257,
-0.3832755387,
-0.1340227872,
-0.1048873663,
-0.5120508671,
0.6572320461,
0.0724063739,
-0.2904248238,
-0.2972911596,
0.1471003741,
0.0280329138,
-0.0370859951,
-0.1188071296,
0.1229283735,
-0.0658308119,
-0.1131171063,
-0.4702679515,
0.1696009636,
-0.0339043476,
-0.2905175686,
0.2976221442,
0.1144753546,
-0.0782997087,
-0.1841139048,
0.1907572448,
0.5881354213,
0.085195832,
0.5646955371,
-0.1479357183,
-0.0133573273,
-0.123678796,
0.1781948358,
-0.0113224732,
-0.1554100066,
-0.161879912,
0.2307122648,
0.2857264876,
-0.0325836763,
-0.1471521407,
0.1662852615,
0.2829984426,
-0.0573413149,
-0.0830607638,
0.0654532462,
-0.1417272091,
0.0683533773,
0.1191516817,
-0.104092069,
0.2394605279,
0.1961164922,
-0.1819210052,
-0.0090212952,
-0.1736882031,
-0.1677854657,
0.2829214931,
0.1613491476,
0.5691128969,
0.1403346956,
0.3767085373,
-0.3264774978,
-0.2785777748,
-0.1017968208,
0.014397623,
0.1471294165,
-0.203104645,
0.0580048785,
-0.1077751666,
-0.0068999841,
-0.1237573549,
-0.5938739777,
-0.0299382154,
0.0092836395,
-0.0754431114,
-0.0092025129,
-0.1901369691,
0.1717362255,
0.1932961196,
-0.1336843669,
0.2393604964,
-0.0947370827,
-0.1887862086,
0.0840677693,
-0.1397702098,
-0.0063822567,
0.2208730131,
0.020798387,
-0.0917656943,
0.1303753108,
-0.0254862253,
-0.4571224451,
-0.3635930717,
0.1056087092,
-0.0876274556,
0.2829626203,
0.5301011801,
-0.0609326623,
0.0696676672,
-0.2881967723,
0.3887399435,
0.0011955417,
-0.208706215,
0.295040071,
-0.2056495547,
0.1029591337,
-0.0882220343,
-0.0808876231,
-0.0251196306,
-0.2163185328,
0.220416531,
0.3758437634,
0.294809401,
0.2302734256,
0.4909338057,
0.2809517384,
-0.0408371948,
0.0959874988,
0.1638637036,
0.262139529,
0.3690194786,
-0.0638757497,
-0.1603313088,
-0.1058411002,
-0.8136042953,
0.0877401605,
0.3370884657,
-0.0335914232,
-0.3418254852,
-0.0918515697,
0.1671682,
-0.0780732706,
0.0688276291,
0.3388420641,
0.0913428664,
0.0552683622,
-0.0304661207,
-0.0443070084,
0.4142759144,
0.1505994797,
-0.0082934257,
0.0106470892,
0.2831357121,
-0.1988794804,
0.5975487232,
0.0907365903,
-0.2871263325,
0.1008345038,
-0.2542865276,
-0.0541664697,
-0.2191138864,
-0.0126043633,
-0.1798827946,
0.1291854084,
-0.2310938537,
0.0599532276,
-0.1282235086,
-0.3053779006,
0.2517754436,
0.3372268677,
-0.0572945997,
-0.0584362783,
0.1691234857,
0.1370239556,
0.2135798484,
-0.1607351452,
0.1220997125,
-0.3560077548,
-0.1773287505,
-0.3337771297,
-0.3037228584,
0.1417999417,
-0.0402959697,
-0.2624801993,
0.0064572194,
0.0919446051,
0.2578710616,
0.5154530406,
-0.0265337229,
0.2461932898,
-0.1622949392,
0.1618170291,
-0.0537189916,
0.5656301379,
-0.0027276492,
-0.2775242925,
0.5173033476,
0.1740549505,
-0.3937613964,
-0.3545572162,
-0.1032177061,
0.0811743736,
-0.2107177824,
0.0578000434,
-0.3799523413,
-0.1724502444,
0.2668898404,
0.3965167701,
-0.0091543645,
-0.1572372913,
-0.1660689116,
-0.1168888956,
-0.1453478336,
-0.1957623661,
-0.1858878136,
0.4336943626,
-0.0070200339,
-0.4450423717,
-0.3357054293,
-0.1189307719,
-0.1390494406,
-0.0002586368,
0.5432818532,
-0.2023106068,
-0.001557796,
-0.3428707123,
-0.0080449944,
0.2560170293,
0.1139483303,
0.182445839,
0.0979422554,
0.234918192,
-0.0910520926,
0.382270813,
0.2372811288,
-0.219899565,
0.0448972806,
0.1027151048,
0.126709342,
-0.0041625695,
-0.1936791986,
0.3796472549,
-0.4180857241,
-0.0466982126,
-0.3388862908,
0.6189415455,
0.0008021278,
0.1976181567,
0.2969824374,
0.4021169543,
-0.2434062958,
0.1732522994,
0.5898041725,
0.8234217763,
0.0210463386,
0.0911852866,
0.7183238864,
0.064931117,
0.0476043038,
0.3822611272,
0.230938822,
-0.4490117431,
0.0541265234,
-0.0949691013,
-0.3679799736,
0.2082757652,
0.3048765659,
-0.1094017774,
-0.0617870353,
-0.0698584318,
0.4589516521,
0.0870965347,
-0.0568040349,
-0.2477201968,
-0.1235440746,
-0.143054083,
-0.0164344274,
-0.1008479148,
-0.4252542555,
-0.0255964566,
-0.3447966278,
-0.1840122193,
0.0054281009,
-0.0751821473,
-0.0757148787,
-0.4166592062,
0.007046903,
0.5495273471,
-0.5068943501,
0.069205381,
0.071768567,
-0.122400023,
-0.2166785449,
-0.1111353412,
-0.2361384034,
0.274155885,
-0.1455589682,
-0.2216798663,
-0.3660668731,
0.2566594183,
0.1354089081,
0.0125840707,
-0.0158620179,
-0.1012879163,
-0.0187192988,
-0.1451930851,
-0.0238186158,
0.415969938,
-0.3938896954,
-0.1620077491,
-0.1356798708,
-0.192982465,
-0.0884039924,
-0.0010424411,
0.1095191538,
-0.1016231626,
-0.0975384191,
0.1391429603,
0.0800200999,
-0.0463302284,
-0.0389971808,
0.6464512944,
0.2786624134,
0.3994383812,
0.1047928929,
0.0850069895,
-0.1724821776,
0.1371433735,
0.486800462,
-0.5715531707,
0.2576580644,
0.0907597691,
-0.1696768999,
-0.029016545,
0.5399839878,
-0.0442120582,
0.4526694119,
-0.1568924636,
0.1109002009,
-0.3084825873,
0.1464324892,
0.2114504427,
0.4577489197,
-0.2875777185,
0.0632193014,
0.0201824289,
-0.041406054,
-0.1726884246,
-0.043985974,
0.0355866142,
-0.0942758843,
-0.558028698,
-0.0280820597,
0.0223019347,
0.0794296935,
0.0192788709,
-0.0443859287,
-0.5251635909,
-0.0822562054,
0.0110793337,
0.1850548685,
0.1398026347,
0.0243033152,
0.0904349387,
-0.0721930265,
-0.2565630674,
-0.223450616,
-0.0548698194,
-0.1382231563,
-0.1830094159,
-0.1036143824,
0.3470050395,
-0.0156556387,
-0.4039347172,
-0.0975515023,
-0.269408375,
0.2371113002,
0.1720995754,
0.071459949,
0.0395610929,
-0.0362387151,
-0.1881853193,
0.2440896332,
-0.0303862449,
-0.2020336986,
0.2280723602,
-0.409978658,
-0.4220007062,
-0.2187940031,
0.4399958551,
0.2359270751,
-0.1673679799,
0.0056284717,
-0.0047208453,
0.1214901209,
-0.2195074707,
0.0944188759,
0.2432648093,
0.023018999,
0.1590057313,
0.4403983951,
0.2849529386,
-0.1559404731,
-0.0112906639,
0.1214798689,
-0.0477194749,
0.0541856885,
0.136853829,
0.6701663136,
-0.0493992828,
0.0855330601,
0.4568312764,
-0.0183637626,
0.2231650203,
-0.0750396401,
-0.115840897,
0.4804655612,
0.0057456931,
-0.1140032634,
0.1891220212,
-0.0114357742,
0.0559552833,
0.2198231071,
0.4599028826,
-0.0305866878,
0.0386231169,
0.6613848209,
0.0790277347,
-0.0843450427,
-0.31699422,
-0.1286357194,
-0.070510909,
0.0905375257,
-0.0533491336,
-0.1738107949,
-0.2111712843,
-0.3472500145,
-0.1079619974,
-0.455062598,
0.2416437864,
-0.1753716767,
0.2323983461,
-0.3419380188,
0.5808367133,
0.2017829269,
0.0361169167,
-0.1317174584,
0.4449382424,
0.309520632,
-0.0174004994,
-0.180002898,
0.3680501282,
0.2668588758,
0.4084317386,
-0.128246069,
-0.1556952298,
0.0157007854,
-0.2543371916,
0.0782623217,
0.055527661,
0.1852087528,
0.0283580367,
0.1995549649,
0.0424828753,
-0.0792538747,
0.2689207196,
0.269607842,
0.0073098335,
-0.1913247406,
0.3418930173,
-0.1809464246,
-0.1939795911,
-0.0263806451,
-0.2045590729,
-0.4663591385,
-0.0944077447,
0.2306016386,
-0.0828592256,
-0.0167253017,
0.0332153067,
0.0149346022,
-0.1909344047,
0.3069327772,
0.0963124186,
0.4915102124,
-0.2389019281,
-0.0760152265,
-0.2282325774,
0.336802125,
-0.3284416795,
0.0892068669,
0.3115131855,
0.3918778002,
-0.0411183797,
-0.0048776362,
0.0992719159,
0.1293205023,
0.0404653661,
0.4305920005,
-0.3858340979,
-0.0226858296,
0.3656060696,
-0.0340372659,
-0.0408561341,
-0.2874153852,
0.1530671567,
-0.3587369025,
-0.0401054546,
0.1956936419,
0.2613581419,
0.1265030354,
0.2545158565,
0.3684668243,
-0.0861303359,
-0.0251063276,
0.1655203253,
-0.1269246191,
-0.2944835126,
-0.113440603,
-0.1281649023,
0.3101492524,
0.200876832,
0.5762242675,
-0.1929154396,
0.2245914489,
-0.1427207887,
-0.1243849173,
0.1041139141,
0.2011825889,
-0.2228568643,
0.4451681077,
-0.5870548487,
0.115398623,
-0.0236123633,
-0.1626644582,
0.2037957609,
0.1254853159,
-0.1950472593,
-0.4592521787,
0.6747378707,
-0.3088303208,
-0.4959323406,
0.1302366555,
-0.0085576912,
0.2961161435,
-0.1074871421,
-0.3079207242,
-0.0651787743,
0.4423903823,
-0.0427196622,
0.2331915498,
0.038866654,
0.0046462831,
0.0975327119,
-0.1714746505,
0.1417766362,
0.0340841338,
-0.1422710568,
-0.4382563531,
-0.5738328695
] |
https://github.com/huggingface/datasets/issues/887 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | Thanks for diving into this !
Indeed focusing on making the first dimensions dynamic make total sense (and users could still re-order their dimensions to match this constraint).
Your code looks great :) I think it can even be extended to support several dynamic dimensions if we want to.
Feel free to open a PR to include these changes, then we can update our test suite to make sure it works in all use cases.
In particular I think we might need a few tweaks to allow it to be converted to pandas (though I haven't tested yet):
```python
from datasets import Dataset, Features, Array3D
# this works
matrix = [[1, 0], [0, 1]]
features = Features({"a": Array3D(dtype="int32", shape=(1, 2, 2))})
d = Dataset.from_dict({"a": [[matrix], [matrix]]})
print(d.to_pandas())
# this should work as well
matrix = [[1, 0], [0, 1]]
features = Features({"a": Array3D(dtype="int32", shape=(None, 2, 2))})
d = Dataset.from_dict({"a": [[matrix], [matrix] * 2]})
print(d.to_pandas())
```
I'll be happy to help you on this :) | I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type> | 164 | pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
I set up a new dataset, with a sequence of arrays (really, I want to have an array of (None, 137, 2), and the first dimension is dynamic)
```python
def _info(self):
return datasets.DatasetInfo(
description=_DESCRIPTION,
# This defines the different columns of the dataset and their types
features=datasets.Features(
{
"pose": datasets.features.Sequence(datasets.features.Array2D(shape=(137, 2), dtype="float32"))
}
),
homepage=_HOMEPAGE,
citation=_CITATION,
)
def _generate_examples(self):
""" Yields examples. """
yield 1, {
"pose": [np.zeros(shape=(137, 2), dtype=np.float32)]
}
```
But this doesn't work -
> pyarrow.lib.ArrowNotImplementedError: MakeBuilder: cannot construct builder for type extension<arrow.py_extension_type>
Thanks for diving into this !
Indeed focusing on making the first dimensions dynamic make total sense (and users could still re-order their dimensions to match this constraint).
Your code looks great :) I think it can even be extended to support several dynamic dimensions if we want to.
Feel free to open a PR to include these changes, then we can update our test suite to make sure it works in all use cases.
In particular I think we might need a few tweaks to allow it to be converted to pandas (though I haven't tested yet):
```python
from datasets import Dataset, Features, Array3D
# this works
matrix = [[1, 0], [0, 1]]
features = Features({"a": Array3D(dtype="int32", shape=(1, 2, 2))})
d = Dataset.from_dict({"a": [[matrix], [matrix]]})
print(d.to_pandas())
# this should work as well
matrix = [[1, 0], [0, 1]]
features = Features({"a": Array3D(dtype="int32", shape=(None, 2, 2))})
d = Dataset.from_dict({"a": [[matrix], [matrix] * 2]})
print(d.to_pandas())
```
I'll be happy to help you on this :) | [
0.0811185241,
0.0660869926,
-0.0749658123,
0.1997889429,
0.5059946775,
-0.0620561317,
0.6662254333,
0.2228147835,
-0.2351689935,
0.2103942782,
0.2033907026,
0.3141409755,
-0.167916283,
0.1519095451,
0.1614727825,
-0.5264514685,
0.1352110654,
0.4473286569,
-0.0370462425,
0.0868214145,
-0.0864016935,
-0.1268901378,
-0.2347305566,
0.1998277009,
-0.3560608923,
0.043541424,
-0.4179326892,
-0.1319018453,
-0.1962919533,
-0.3397127986,
0.267503351,
0.1394726932,
0.1546587646,
0.1940466315,
-0.0001162566,
-0.020186035,
0.2754315734,
0.0027223974,
-0.1653281003,
-0.1504535973,
0.1756364554,
-0.4560697675,
0.1426977813,
-0.3767650723,
-0.0597965904,
-0.7914658785,
-0.1558020115,
-0.0565770976,
0.0584396906,
0.1819483042,
0.1860897839,
0.1970725656,
0.3445555866,
0.0070058275,
0.337213248,
0.2662031651,
-0.3337919712,
-0.0743540153,
0.2205043286,
-0.1364300251,
-0.0197567679,
-0.0812020451,
-0.0935629532,
0.1253887266,
0.3703868985,
0.25596264,
0.4412602186,
-0.305955559,
-0.0385077111,
0.4866022766,
0.5266445875,
-0.2263834625,
-0.1486890763,
-0.2105609924,
0.032605134,
-0.072022453,
-0.113406986,
0.3932393491,
-0.2839555442,
-0.0259064976,
-0.1617708951,
0.2671579421,
-0.4738790691,
0.3436037004,
0.0153586213,
0.1768891811,
0.0600752309,
0.1067784652,
-0.0788150504,
-0.3343679905,
0.6473380327,
-0.2683770657,
0.1695427001,
0.1576764584,
0.1260789931,
0.0547990464,
0.0399517305,
-0.3056690097,
0.2611991465,
-0.0662689433,
0.2565306425,
-0.0540560968,
0.3141370118,
0.077781558,
-0.0961985141,
0.2931361198,
-0.1910167485,
-0.035344284,
-0.1915334612,
0.2000771314,
0.1407670528,
0.1348167658,
-0.0958223566,
-0.3377195001,
0.3894745708,
-0.0704437122,
0.3181088567,
0.2844151855,
0.0503381044,
0.0295105688,
-0.7314227819,
-0.1056452245,
-0.0794328004,
0.1333227456,
0.0632774308,
0.0234065689,
-0.0665667355,
0.3916385174,
0.0048371875,
0.0344881378,
-0.1772148013,
0.1383275688,
-0.2407190055,
-0.1582003385,
0.0580462478,
0.3111121356,
0.0323914513,
0.0656856224,
0.1681863964,
-0.0492570996,
0.0473771878,
0.0943842977,
0.1924478859,
0.1907954365,
-0.218333751,
-0.204236418,
-0.0482182316,
-0.2408757657,
-0.2660055757,
0.3408505917,
0.1237653047,
-0.114748694,
-0.2962651849,
0.1257817894,
-0.2576965094,
0.0332824402,
0.018987637,
0.1656407267,
0.1230325177,
0.1861086637,
0.0670749545,
-0.0163180456,
0.2285517901,
-0.439090699,
0.1310140491,
0.1434196085,
-0.3788302541,
0.1839786172,
0.0902064666,
0.0472827591,
-0.0204894692,
-0.1859843135,
-0.1958566904,
0.234025389,
-0.1092267334,
0.2045657337,
0.438278228,
0.103170611,
-0.0508331023,
0.0396899842,
-0.1008547693,
-0.0574909784,
0.184458375,
0.0679801479,
-0.2325882912,
0.0086384248,
-0.3313021958,
0.3617541492,
-0.0468131341,
-0.1340918839,
-0.119384326,
-0.4566430151,
0.5288197994,
0.1604707092,
0.231258601,
-0.0293574706,
-0.0378944576,
-0.413574785,
0.2131328136,
-0.5370697975,
0.206406787,
-0.0110485833,
0.3182365298,
-0.2316176444,
0.1017264724,
-0.1497078538,
-0.6831346154,
0.2095575631,
-0.2615546584,
0.1348552853,
-0.1627296507,
0.016148461,
-0.2137754112,
0.0864840001,
-0.1614554375,
0.051346764,
0.1555676162,
-0.0517702401,
0.1015731543,
-0.2328866273,
-0.1256846189,
-0.2842235565,
0.0373975411,
-0.0718303248,
-0.2994228899,
0.6068703532,
-0.024052158,
-0.2256798297,
-0.2027260959,
0.1907724738,
0.1596809179,
-0.0174942017,
-0.0039478024,
0.1641906202,
-0.1085748151,
-0.0108285388,
-0.5107390285,
0.2201360762,
-0.0088732392,
-0.2927833498,
0.3259553313,
0.1484403461,
0.031267833,
-0.21861808,
0.1461089998,
0.5942308307,
-0.2054376602,
0.5001150966,
-0.1696748435,
0.1078423113,
-0.0440095514,
0.1070578322,
-0.1206410602,
-0.1674754173,
-0.1490992159,
0.232439965,
0.1000093445,
-0.0500648357,
-0.2019978315,
0.1650609523,
0.2209523916,
-0.0789221525,
-0.0382379107,
0.0389136039,
-0.1205158979,
0.0863597244,
0.2220529169,
-0.0977578685,
0.1082826108,
0.2069818676,
-0.1347230375,
0.0805682912,
-0.3435122073,
-0.1386653483,
0.2859654129,
0.1962882429,
0.5069099069,
0.0309313945,
0.3337845504,
-0.2485222071,
-0.2182990015,
-0.0744913816,
0.0497500449,
0.1341307908,
-0.3379506469,
0.1335221082,
-0.1574704051,
-0.0023978355,
0.0058326405,
-0.7622503638,
-0.0921696052,
-0.0124770086,
-0.0817488953,
-0.0018161231,
-0.2064686716,
0.1749798208,
0.1516533494,
-0.1810881793,
0.0989146009,
-0.1823498458,
-0.2228327841,
-0.0240918137,
-0.115409255,
0.0595058389,
0.1391380429,
0.1685661972,
-0.0194702502,
0.1155474186,
0.1271316558,
-0.2960385084,
-0.3022589982,
0.0435514003,
-0.2427384704,
0.3763855398,
0.4350395203,
0.0141046364,
0.0395606831,
-0.1887972504,
0.3545380235,
0.2314635217,
-0.1280815154,
0.3346897364,
-0.1032503545,
0.0845847502,
-0.1186964959,
0.0151425935,
0.0281198565,
-0.2963924408,
0.1846940368,
0.3997454941,
0.2637635469,
0.2296733707,
0.5827412009,
0.3116677701,
0.0521662682,
0.1223439425,
0.1999587715,
0.2072533369,
0.4295160174,
0.032140445,
-0.2279697806,
-0.1815953553,
-0.8064336181,
0.1123275831,
0.2651631236,
-0.0003436391,
-0.4003822803,
-0.1192323118,
0.419551909,
-0.0658380464,
0.1292748749,
0.4766241014,
0.1627043039,
-0.0051321569,
-0.1331644505,
-0.0762427151,
0.3462714255,
0.2557979524,
-0.0854398236,
-0.0197135936,
0.2788518369,
-0.0859719366,
0.5770153999,
-0.0545134433,
-0.3353948593,
0.2743910253,
-0.229035899,
-0.048615329,
-0.1206579655,
-0.0830186456,
-0.208577767,
-0.0000329358,
-0.088370353,
-0.1022760645,
-0.1255785078,
-0.3067599237,
0.0067853993,
0.2312724143,
-0.2400394529,
-0.0507025421,
0.019487042,
0.014084761,
0.1986010224,
-0.1047889665,
0.146258682,
-0.3106015921,
-0.0770361051,
-0.1376647651,
-0.2555592358,
0.1049937829,
-0.0008804133,
-0.0141876535,
0.0247314069,
0.0688323006,
0.0896678194,
0.3966970146,
-0.1401859671,
0.3456253707,
-0.1802482903,
0.1216169447,
-0.1736607254,
0.6282702684,
-0.0847250447,
-0.1932673156,
0.5385679007,
0.1090378612,
-0.4343969524,
-0.2760931849,
-0.2283089757,
0.0245924406,
-0.2875926495,
0.1180350482,
-0.3685522079,
-0.1481018215,
0.2178632766,
0.3199227452,
0.0165561419,
-0.1950828433,
-0.2308904976,
-0.2040198147,
-0.0511280261,
-0.1320189685,
-0.0458169542,
0.3967011571,
0.0591018312,
-0.3044267595,
-0.3976418078,
-0.1071243137,
-0.1380684078,
0.1546687484,
0.3969092071,
-0.1583367735,
0.0423838496,
-0.3037188649,
-0.0078441976,
0.0820223913,
0.0775683299,
0.1756750494,
0.0458678231,
0.0215853453,
0.0275887959,
0.3561808169,
0.2391683459,
-0.1144339591,
-0.0643039346,
-0.0221674982,
0.1271672845,
-0.1965864599,
-0.0822139308,
0.4506604075,
-0.3617122471,
0.0082823606,
-0.2644386292,
0.671580255,
-0.0901382491,
0.1170947775,
0.2661957443,
0.5690853,
-0.1716604978,
0.2838436365,
0.6202145219,
1.0007250309,
-0.029507827,
0.1052313671,
0.7753416896,
-0.1138479784,
0.0644461513,
0.3265840709,
0.216405347,
-0.4182454944,
0.15953888,
-0.1114614233,
-0.3246537745,
0.1179887578,
0.1220965385,
-0.2034108639,
-0.0714608729,
-0.2789860666,
0.2990587056,
0.1234779432,
-0.0442036241,
-0.1172315925,
-0.2051873356,
-0.2319261581,
0.0663266107,
-0.0482187234,
-0.3505480587,
-0.1049224734,
-0.3317464888,
-0.2237374187,
-0.0289108288,
0.00089553,
0.0034473038,
-0.3338734806,
0.0088115307,
0.3812506199,
-0.512139976,
0.001597837,
0.1844581813,
-0.0920748338,
-0.1640259475,
-0.203043595,
-0.1268925667,
0.459890157,
-0.2843434215,
-0.0914334133,
-0.3732323349,
0.3492224813,
0.0423914529,
-0.1033638269,
-0.0897814408,
-0.0245448705,
0.0914479792,
-0.1866286844,
-0.0215144418,
0.2234337926,
-0.218254894,
-0.0323793814,
-0.0599064082,
0.0157266296,
-0.106697537,
0.0959213227,
0.0441115275,
-0.0428540334,
-0.0544344597,
0.1728218198,
0.0448392369,
-0.0678496808,
-0.0043524159,
0.4437870085,
0.3373042643,
0.2604784369,
0.2011246234,
-0.0619000085,
-0.204847455,
0.1133852974,
0.3587190509,
-0.4849698842,
0.1792155355,
0.1019556448,
-0.2370808274,
-0.1328746825,
0.4973851144,
0.0548731312,
0.2220712155,
-0.0465806834,
0.1459174454,
-0.4149116576,
0.1146583483,
0.1664490849,
0.2982103825,
-0.3258859515,
0.08798033,
0.0275409315,
-0.0100677842,
-0.2889707088,
0.0506106578,
0.1050650403,
-0.0090652201,
-0.5112299323,
-0.1208123937,
0.0193716343,
0.084083125,
0.1421368718,
-0.0621778294,
-0.4542090595,
-0.1741422415,
-0.1730612516,
0.1461533755,
0.1153009385,
-0.1177984625,
0.1603147835,
-0.1115378067,
-0.3431861103,
-0.2813438475,
-0.0726500675,
0.0215304531,
-0.153200224,
-0.1249313951,
0.3240786791,
-0.011986996,
-0.2783167958,
-0.2467872202,
-0.2576206625,
0.1958533525,
0.1499994993,
0.0449921824,
0.0442357659,
-0.0411366932,
-0.1221290603,
0.2578859031,
-0.0548801646,
-0.2784711123,
0.2966709733,
-0.33311674,
-0.3128942847,
-0.3269759119,
0.4821079075,
0.2051308602,
-0.1748418957,
0.0102809798,
0.1069050133,
0.2002277374,
-0.355877161,
0.0239391699,
0.026455434,
0.0195044037,
0.2280593216,
0.4076536298,
0.1806114167,
-0.0915515944,
-0.1612574458,
0.0598357432,
-0.1176616699,
0.0223850477,
0.0006823575,
0.5625870228,
-0.234229058,
0.1041016132,
0.4643883705,
0.0835716054,
0.1918973178,
-0.1058519855,
-0.1186735034,
0.264742434,
0.0816801041,
-0.0826891363,
0.0555423349,
0.0383592173,
0.083217077,
0.0390606932,
0.392971158,
-0.0885393918,
0.0344257131,
0.562069118,
0.1830460429,
0.1093764231,
-0.2962387204,
-0.1132537201,
-0.0964517444,
-0.0015239902,
0.0734217167,
-0.2210585028,
-0.3147688508,
-0.361338675,
-0.0806773156,
-0.4869598746,
0.1853485852,
-0.0947150514,
0.1995813996,
-0.2643706203,
0.6058091521,
0.1335456371,
0.1624040306,
-0.2395662218,
0.2764045596,
0.3889529705,
-0.140886277,
-0.318547368,
0.3108562231,
0.3091473877,
0.3820616007,
-0.440364331,
-0.1288666874,
-0.0075542023,
-0.2716630101,
0.1383077055,
0.038080249,
0.1786570847,
0.2999195457,
0.3266958296,
0.1114861816,
-0.178504616,
0.2261472046,
0.2892929912,
0.0628218725,
-0.2804660201,
0.3225160241,
-0.2205840498,
-0.0536756702,
-0.0161143355,
-0.2147417217,
-0.3772150278,
-0.1283206791,
0.2484839857,
-0.0796288848,
0.0010219491,
-0.0482822172,
0.0747316182,
-0.0962634683,
0.3985402286,
0.0026094192,
0.5584187508,
-0.2954241633,
0.0728156567,
-0.4015298784,
0.2960191965,
-0.3695743978,
-0.0063604042,
0.288795352,
0.3542710841,
-0.0163449813,
0.1101771742,
0.0010080837,
0.2976792157,
0.008311376,
0.4255386591,
-0.3503302336,
0.0875596926,
0.1951820105,
0.0048943884,
-0.0131517183,
-0.2848477364,
0.1286350787,
-0.4223629832,
0.0601827912,
0.1569887847,
0.1705657393,
0.1910828948,
0.3271725774,
0.4762116075,
-0.0726426169,
-0.0076855123,
0.1358404607,
-0.0648116842,
-0.3627671301,
0.0060713156,
-0.1850658953,
0.227480039,
0.1393571198,
0.4237052202,
-0.1974121183,
0.116933085,
-0.1479593813,
-0.0916849896,
0.0730620623,
0.1957903653,
-0.101275079,
0.3477631211,
-0.407972455,
0.109374769,
-0.1123022586,
-0.1291370243,
0.0720414445,
0.1794417799,
-0.1668446809,
-0.5900039077,
0.7276584506,
-0.265000999,
-0.553864181,
0.1625079662,
-0.0311576948,
0.329685837,
-0.0272084605,
-0.3190826774,
-0.0786864758,
0.3554780185,
-0.0164467394,
0.0774409175,
0.128480196,
-0.0175587442,
0.0584818609,
-0.1163029894,
0.0996356979,
-0.0530602299,
-0.05590114,
-0.4643082023,
-0.505096972
] |
https://github.com/huggingface/datasets/issues/883 | Downloading/caching only a part of a datasets' dataset. | I think it would be a very helpful feature, because sometimes one only wants to evaluate models on the dev set, and the whole training data may be many times bigger.
This makes the task impossible with limited memory resources. | Hi,
I want to use the validation data *only* (of natural question).
I don't want to have the whole dataset cached in my machine, just the dev set.
Is this possible? I can't find a way to do it in the docs.
Thank you,
Sapir | 40 | Downloading/caching only a part of a datasets' dataset.
Hi,
I want to use the validation data *only* (of natural question).
I don't want to have the whole dataset cached in my machine, just the dev set.
Is this possible? I can't find a way to do it in the docs.
Thank you,
Sapir
I think it would be a very helpful feature, because sometimes one only wants to evaluate models on the dev set, and the whole training data may be many times bigger.
This makes the task impossible with limited memory resources. | [
-0.2596470118,
0.0176626891,
-0.1444136202,
0.0560274906,
0.0052094171,
0.1932339668,
0.0714359656,
0.4244526923,
-0.2096627504,
0.1225839853,
-0.1673960537,
-0.3112490475,
0.0382804051,
0.3431015909,
0.2733543813,
0.3157153726,
-0.0449595042,
0.444539547,
-0.0135878082,
0.179787904,
0.1321714967,
-0.3596690297,
0.0900437683,
0.1798122376,
-0.0343144201,
-0.0130381845,
0.3524551988,
-0.1729031354,
-0.3025224507,
-0.2646119297,
0.5076567531,
0.1568505764,
0.0987678617,
-0.3624980152,
-0.0001216029,
0.0493054837,
0.0157333799,
-0.2593042552,
-0.1948635131,
0.1747970134,
-0.3646430373,
0.221119687,
-0.1016265452,
-0.1109534949,
-0.2629934549,
0.1496165395,
0.0997375399,
-0.1148652285,
0.3868532479,
0.3819859922,
0.072667785,
0.2527620494,
-0.2582722306,
0.081884481,
-0.4386489391,
-0.1205966622,
-0.1113693565,
0.229351297,
0.3401833177,
0.1742604375,
0.1508787125,
0.3609139323,
0.2037588507,
0.3365454972,
0.5206013322,
-0.1059015691,
0.2213972211,
-0.5290887356,
0.3528997898,
0.3634748161,
0.8179839253,
-0.2111044377,
-0.1709373444,
0.0381575599,
-0.1108289212,
-0.3244959116,
-0.027646428,
0.3498647809,
-0.3038276136,
0.5577998757,
-0.6025673747,
-0.5060827136,
-0.4514366984,
0.021116443,
-0.0719960183,
-0.1111350581,
0.0267907344,
-0.0793381482,
0.2038470656,
0.3404906094,
0.4757579863,
-0.101063475,
-0.3275686204,
0.2050731927,
-0.1556140035,
-0.4630131125,
-0.4531758428,
0.1124544963,
0.2769370973,
0.2156206518,
-0.0281270836,
0.1360064298,
0.0196452197,
0.0326849297,
0.3324064314,
0.2571538091,
0.2097781003,
0.3000054657,
0.1262422204,
-0.2836255729,
0.0435493216,
-0.0383793972,
0.0166263226,
0.1793974787,
-0.0352481715,
0.2005889863,
-0.1922215521,
-0.5734282136,
0.0282574929,
-0.1624225676,
-0.0268571991,
-0.10421253,
0.0117447311,
0.3720724583,
-0.2337694019,
-0.0338174142,
-0.4144832194,
0.1290369183,
-0.0244039688,
-0.7614017129,
-0.13534756,
0.2001849413,
-0.1518818289,
0.1537027061,
0.3087083101,
-0.2576305568,
0.2571442425,
-0.2327065468,
-0.053633783,
-0.0144963004,
0.3822105527,
-0.2405202985,
0.3597931564,
0.3008718193,
-0.1003430709,
0.1436014622,
-0.003702957,
0.0677641779,
-0.2702772021,
0.214078784,
-0.0240436271,
-0.7160577774,
0.1329772472,
0.0306057185,
-0.2915472984,
0.049825009,
-0.018612748,
0.2691914737,
0.1003064588,
-0.0424360335,
-0.0280776508,
0.1042829305,
-0.093108356,
0.0569568835,
0.3539179265,
0.0054564611,
-0.3496732116,
-0.0455451831,
0.0757637993,
-0.2223425806,
-0.0782369524,
0.1796891689,
-0.3526026309,
0.2832115293,
-0.0349934511,
-0.0515904576,
0.6107290387,
-0.033008486,
-0.3416728675,
0.0503782034,
0.0374968797,
-0.3896383047,
-0.1071689874,
0.1974391192,
0.1391672343,
0.0782244727,
-0.5371800065,
0.4953878224,
-0.0045665735,
-0.2572205961,
-0.0902146474,
-0.1335967481,
0.0509741902,
-0.0344619006,
0.3187843561,
0.5672201514,
0.0934518129,
0.2109845132,
-0.0654319152,
-0.1826470941,
0.1779056191,
0.144197613,
0.1808375418,
-0.2567465603,
-0.1036057323,
-0.2643273175,
-0.3934875131,
0.2896128297,
0.0190094262,
-0.6332795024,
0.5450123549,
-0.1466408074,
-0.2126223445,
-0.2811496556,
0.1985194534,
-0.3874562681,
-0.0683606714,
-0.0787715167,
0.5183346868,
-0.2221152782,
-0.433206737,
0.2459863275,
-0.0388425812,
-0.0085980771,
-0.0347102061,
-0.0773481578,
-0.0136266174,
0.2332275659,
-0.0780256093,
-0.2326039523,
-0.1438826919,
-0.077093035,
0.001028672,
0.2435716987,
-0.1894328892,
-0.0382384844,
-0.0579956807,
0.4480166733,
0.1133442372,
-0.1220168546,
0.038968727,
-0.126407668,
0.0378795825,
0.0592170358,
-0.2691625059,
0.4455899,
-0.0425808579,
0.1304671317,
0.0402546115,
-0.0788121521,
0.2034358233,
-0.3745234311,
0.0144103849,
-0.2602585554,
0.0538862348,
-0.1644446254,
0.3352132738,
-0.0382394046,
-0.2119158059,
-0.1100296378,
0.1415117085,
0.0741898492,
0.0180710573,
-0.1057826355,
-0.1695172936,
-0.0013913837,
0.1838151962,
0.187406376,
0.3733813763,
0.0554432273,
0.3742054701,
0.172760576,
0.0835781246,
-0.0322370231,
0.0589873195,
-0.2422541082,
-0.182013616,
-0.0336369276,
-0.3563263416,
-0.1824304312,
-0.1795849502,
0.4001224637,
0.1201161742,
-0.045422852,
-0.1748718917,
0.0162677821,
-0.4271829426,
-0.0491981991,
-0.0482637361,
0.1393755227,
-0.1046888009,
0.2175348848,
0.0636419356,
0.1797726005,
-0.0330220312,
0.0858021751,
-0.2827939093,
0.4851483405,
-0.3380613923,
0.0753306895,
-0.0537017807,
-0.1475929469,
-0.0696033835,
0.1015184522,
0.1213861257,
0.1434981525,
0.3591323793,
-0.0873146877,
-0.1552483886,
-0.3242338896,
0.1137347892,
-0.0201882217,
0.4564115405,
-0.0426917411,
-0.1663058549,
0.5134202838,
0.1645122021,
0.1184286773,
-0.1802626103,
-0.228216663,
-0.3151452839,
-0.1713222116,
0.2047236413,
0.2288090438,
-0.183483839,
-0.2206596881,
-0.3584467769,
-0.1597440243,
0.1136493906,
-0.1076958925,
0.1931930035,
0.2225603312,
-0.0169395003,
-0.2397377789,
-0.3206495643,
0.0403389223,
-0.2267977893,
-0.3674771488,
0.2391416878,
-0.0414139256,
-0.2598353624,
0.179965049,
-0.0711045563,
0.0322006382,
0.3513368964,
-0.3724110126,
-0.1565230489,
0.065055728,
-0.0956740826,
-0.1702403128,
-0.0697041005,
0.2953810692,
-0.5932690501,
0.1054326221,
0.007493176,
-0.0587729923,
-0.0502600968,
0.024556987,
0.2246669382,
0.0605241656,
0.1298894435,
0.3504849374,
0.8538560271,
-0.1514461935,
-0.1626928896,
0.0154226096,
0.0880188718,
0.4468535483,
-0.0379184857,
-0.0748698115,
0.2885403931,
-0.0493912511,
-0.2889500856,
0.0268127918,
-0.1392237544,
-0.1048684791,
-0.3318146467,
0.0505774766,
-0.0113212662,
-0.0139271254,
0.0929988995,
-0.1182702631,
0.081195496,
0.5327092409,
0.0187404286,
0.0137388874,
-0.1102430299,
0.2959982157,
0.0583858825,
0.1100259125,
0.1178511754,
-0.5235832334,
-0.1630559564,
-0.0981970206,
0.0888543501,
-0.2271309793,
-0.0714121088,
0.0345402434,
0.031685017,
0.2360616177,
0.1014387459,
0.5184100866,
-0.2011044174,
0.2330282331,
-0.188545242,
-0.318035692,
0.0645316765,
-0.1906533688,
0.0945240259,
-0.0763198137,
0.0763735771,
0.0073567173,
-0.1936407983,
-0.0187627636,
-0.0699418336,
0.2333288342,
-0.3665068746,
0.0682161152,
0.0472653471,
-0.0111430138,
0.0290324483,
0.4540620148,
0.1134136394,
-0.0058891247,
0.3645143509,
0.0731300563,
-0.3548812866,
0.0975847393,
0.091906555,
0.3425663114,
0.0917205811,
0.0567645356,
0.1430367529,
0.1277788877,
0.146190539,
0.076479964,
0.2214028686,
0.0117150927,
-0.1909353137,
-0.0623565316,
0.0023008576,
0.1911741793,
0.1707259417,
-0.0837878808,
-0.2795109153,
0.3804675937,
-0.0915221721,
-0.2260641903,
0.4861376286,
-0.3498322666,
-0.2019872367,
-0.2566850483,
-0.3647644222,
0.1765504181,
0.0798220932,
-0.085994117,
0.3306180835,
-0.2526828647,
-0.1009431854,
-0.2397095412,
0.44385162,
0.8610084653,
-0.1227932498,
0.206295684,
-0.3994808495,
-0.2029976696,
0.3680361211,
-0.5688804388,
0.0569617599,
-0.2196460664,
-0.758459866,
-0.2906112969,
-0.2542025149,
0.186548844,
0.3905201554,
0.2456165105,
0.2405981421,
0.1417123079,
0.4928074777,
0.1205118746,
0.1755271256,
0.1043291464,
-0.0288762935,
0.0713441446,
0.0225885753,
-0.1270376444,
0.2708649635,
-0.1556711346,
0.0918056071,
0.05719506,
-0.0372971073,
-0.30125916,
0.0489369407,
-0.4606753588,
-0.2496441305,
-0.1814271659,
-0.0514716692,
-0.0131318253,
0.4394467473,
0.5612176657,
0.2254854441,
-0.2542154491,
0.2422559857,
0.0651293248,
0.088611722,
-0.2462747991,
0.0181910116,
0.0016430069,
-0.3460486531,
0.1401319653,
0.4257401228,
-0.099590905,
-0.2508584857,
0.037326593,
0.1967257857,
-0.0806846395,
-0.1119174287,
-0.1610899121,
0.115134865,
0.3356599212,
-0.0060501653,
0.0489645265,
0.3836348057,
-0.348262161,
0.207829684,
-0.1432596594,
-0.3118985891,
-0.0696335584,
0.4085512459,
0.2608778179,
-0.2065866292,
0.2444152981,
-0.613347888,
-0.0704691485,
-0.2092332989,
-0.0219697841,
0.1912128478,
-0.1649272442,
0.0004838811,
-0.2133575827,
-0.4010840356,
-0.340251416,
0.0490702987,
0.3917353451,
0.191124469,
-0.1881877631,
-0.2655117512,
-0.2319703549,
0.0511178188,
-0.108225219,
0.3742309511,
-0.0621481352,
-0.0169216413,
-0.1252296269,
0.4188045859,
-0.1844318807,
-0.1776659489,
-0.0053342553,
0.2531560361,
-0.1674047709,
0.1499565393,
-0.0022155971,
-0.1374549121,
-0.175470829,
0.0281304102,
-0.3456309736,
-0.1469106525,
-0.0746241957,
0.1991708875,
-0.0085583357,
0.038433779,
0.1171025112,
0.040287625,
-0.0568369441,
0.0520028584,
0.2014926374,
-0.0122297211,
0.2575398684,
0.2684283853,
0.4537932873,
-0.0181100704,
-0.5937928557,
-0.0095001217,
0.0744518563,
0.220889926,
0.0398880243,
0.4148596823,
0.0169251803,
-0.0538880304,
-0.3319829702,
-0.1668197662,
0.0532800704,
-0.1499508768,
-0.0398056395,
0.1185954288,
0.1468971819,
-0.0238000136,
0.1988658756,
0.8052160144,
-0.0924881697,
0.2291513383,
0.5309456587,
0.1136758327,
0.0040293382,
-0.1860906631,
0.3704556525,
-0.304172188,
-0.1823696196,
0.1436484754,
0.1134741679,
0.1958085299,
0.4399092495,
-0.0908520818,
0.1677697301,
-0.2348220795,
0.0168015715,
0.4365867972,
-0.0261416491,
-0.1989733279,
0.1153117269,
0.259042263,
0.2069095969,
0.0351788439,
-0.1256256253,
0.1561606824,
0.1670110226,
0.200398609,
-0.1934622228,
-0.2356667221,
-0.0692509562,
0.1692311466,
-0.0888708606,
0.1284376681,
-0.1844217032,
-0.3254105747,
0.2570571601,
-0.4299587905,
-0.2986115515,
0.0170880761,
0.1921700984,
-0.0724868849,
-0.2084238678,
0.0067038024,
0.2563121021,
0.3134522438,
0.1623131186,
-0.4159724712,
0.2470379919,
0.1064636037,
-0.0972427204,
0.2171066999,
0.2817170024,
0.1689367592,
-0.0912872702,
-0.1346128583,
0.1551801711,
-0.2595524788,
-0.0017359108,
0.3158122599,
0.2392762303,
-0.2397790551,
-0.0678154081,
0.2292584479,
0.0141968951,
0.0887076333,
-0.019853333,
-0.2765793502,
0.2951284051,
0.1854895651,
0.0411084369,
0.2854756415,
0.0172522645,
0.0140391374,
0.4403684437,
-0.390126735,
0.2003465593,
-0.5645318627,
0.040173281,
0.6362972856,
-0.1602786332,
0.164434731,
0.0662636161,
0.0568205789,
-0.0289103556,
-0.099383615,
-0.2132302225,
0.1308528483,
0.1542665213,
-0.0039088726,
-0.262994796,
0.5772283673,
0.0670657605,
0.0950347111,
-0.1848516315,
0.058033362,
-0.3419107497,
0.1647650748,
-0.0758658275,
0.0435417257,
0.0781061053,
0.1236532182,
0.1260078996,
0.5432232022,
-0.0659055933,
-0.0162430946,
-0.0320684873,
0.5045500398,
-0.1067461595,
0.1457102448,
0.0873922557,
0.5286423564,
0.1306842268,
-0.2284796983,
0.4167973697,
0.1157834381,
-0.1563517898,
0.3952566981,
-0.1051853895,
0.4380292892,
0.3276386857,
0.5421127677,
-0.0563154705,
0.2171079069,
0.0971884653,
0.1875052303,
-0.0357790329,
0.1916660219,
-0.4345732927,
-0.0435863771,
0.1906258166,
-0.1363947093,
-0.5238882303,
0.0310884733,
-0.152483061,
0.2835089266,
-0.0245356318,
-0.102869004,
0.2182345837,
-0.3127637208,
0.0478141382,
0.1807872951,
0.424695313,
0.1729243547,
-0.2599115074,
-0.2585412562,
-0.3770531714,
0.1391890496,
0.4295765758,
-0.0886319429,
-0.20418486,
-0.1264174581,
0.3098581731,
0.2169164419,
-0.2114593238,
-0.435421288,
0.0923216343,
0.2990781963,
-0.3669798672,
-0.1788089871,
0.2019108385,
0.0915810987,
0.020091407,
-0.1414800435,
0.4481547475,
0.0611790828,
-0.3696346581,
-0.4982995689,
-0.3521560431
] |
https://github.com/huggingface/datasets/issues/880 | Add SQA | I’ll take this one to test the workflow for the sprint next week cc @yjernite @lhoestq | ## Adding a Dataset
- **Name:** SQA (Sequential Question Answering) by Microsoft.
- **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total.
- **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/
- **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253
- **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71).
Note 1: this dataset actually consists of 2 types of files:
1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test)
2) a folder of csv files, which contain the actual tabular data
Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub.
Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 16 | Add SQA
## Adding a Dataset
- **Name:** SQA (Sequential Question Answering) by Microsoft.
- **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total.
- **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/
- **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253
- **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71).
Note 1: this dataset actually consists of 2 types of files:
1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test)
2) a folder of csv files, which contain the actual tabular data
Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub.
Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
I’ll take this one to test the workflow for the sprint next week cc @yjernite @lhoestq | [
-0.0640090555,
-0.2312076539,
-0.2099179178,
-0.1210695505,
0.0999144614,
-0.1975829452,
0.0337971449,
0.3069657087,
0.1483601928,
0.0562702194,
-0.1675564051,
-0.0026327705,
-0.0712608621,
0.544383049,
0.1500165761,
-0.104553394,
0.0272177476,
0.1428323239,
-0.2944612801,
0.0711858869,
-0.1962937266,
0.0914863795,
0.0215712246,
0.0312297828,
-0.2368901819,
-0.0844547525,
-0.107318148,
-0.1923381686,
-0.1904112995,
-0.1972695887,
0.0054090098,
0.0722473711,
0.1686420739,
0.2730420232,
-0.0001059325,
-0.1343121976,
-0.0751998201,
-0.0975329429,
-0.0939193666,
0.0506611504,
-0.1607967615,
0.0926125944,
-0.111051552,
-0.0771295503,
-0.5252555013,
0.2041902542,
-0.0748101547,
-0.300747782,
0.5820881128,
0.2628433108,
0.2186129391,
0.0928576067,
0.0751175433,
-0.2174712569,
0.3752231896,
0.0049582031,
-0.3586767614,
-0.0065894681,
0.4021381736,
-0.3480514586,
0.0548401512,
0.4530359507,
0.2656967938,
-0.227632165,
0.1525068134,
0.1255035996,
0.2736341655,
0.0334792025,
0.0674655512,
0.2694989145,
0.3335779905,
-0.0927541107,
-0.182104826,
-0.18861413,
0.0144179827,
0.123525545,
-0.2833783627,
0.1186247095,
-0.3490379155,
0.0167794563,
-0.1807740927,
-0.2453862727,
-0.349671334,
0.1017986611,
0.0179148931,
0.5167184472,
-0.0192334969,
-0.1948670745,
-0.0831075162,
-0.1331273019,
-0.0427692607,
-0.0472528115,
0.2443597764,
0.2530232668,
-0.5382787585,
-0.2720509171,
0.2136118859,
0.1150446683,
0.2435955852,
0.1921216547,
0.472007215,
-0.0723902658,
0.0314641856,
-0.296505928,
0.1672354043,
0.4781263471,
-0.0035136372,
0.0426869765,
-0.163561821,
0.1145738065,
0.0696565211,
0.0185354445,
0.0113640837,
0.4373466074,
-0.2889093757,
0.0332337134,
0.1217356473,
0.0777647123,
-0.3187229037,
0.200028345,
-0.2216604948,
-0.0858715177,
-0.0461770743,
0.3067344725,
-0.2722216249,
0.0963959545,
0.161785841,
0.152575165,
0.0376236737,
-0.1205835491,
-0.0992912874,
-0.1381374896,
-0.1389063746,
0.327624768,
0.2592454553,
0.0756570175,
-0.118240796,
-0.1105896682,
0.1236675382,
0.067111969,
-0.1190189049,
-0.1257780045,
0.2719293237,
0.006378483,
-0.1196178198,
-0.2474645227,
0.0069882968,
-0.1855606139,
-0.0826090276,
0.2046098262,
0.0866251215,
0.0822595134,
-0.0458444804,
0.2935350537,
-0.0351123922,
-0.3378953636,
0.0560645051,
0.3847602308,
0.0544069372,
-0.0786112249,
0.1612039655,
0.077068992,
-0.1640682966,
-0.0699190274,
0.2680042386,
0.1623664945,
0.0437386036,
0.0179177132,
-0.0602710061,
0.2952127755,
-0.4049226344,
0.1558107287,
0.1623995602,
0.4924615622,
0.1605457664,
0.4469802976,
-0.3020620644,
0.0422099642,
-0.0510842428,
-0.106825158,
-0.0611652471,
0.2619522512,
-0.0233062562,
0.2226985842,
0.1795919985,
-0.098168999,
0.1247627065,
0.256914109,
-0.2434513867,
-0.0364893526,
-0.2605638504,
-0.3209439814,
-0.1499195993,
0.5569958091,
-0.0081572589,
-0.094726108,
-0.1503634006,
-0.2269732803,
0.0897200033,
-0.2418154478,
-0.1053459868,
-0.2026322931,
0.418138057,
-0.1816864312,
0.0669906288,
-0.5491580367,
-0.5756065249,
-0.1482614279,
-0.1463884711,
0.2786490619,
0.0339066237,
-0.4509786963,
-0.3733326495,
0.1327016205,
0.0075065074,
-0.0343046524,
0.2479702532,
0.1869213432,
0.2428165525,
-0.0500187799,
-0.0937465951,
0.1550152451,
-0.0424522199,
-0.1147119701,
-0.1329626292,
0.1986894906,
-0.122598581,
0.045611728,
-0.0185675379,
0.3147914708,
-0.1338374913,
0.1751380861,
0.3347402811,
0.1550745815,
-0.131916821,
-0.2625656724,
0.0805611908,
0.4734989405,
0.0326888524,
-0.0527553186,
-0.1923762262,
0.4993881881,
0.1238287836,
-0.0980775654,
-0.2853282094,
0.404361546,
-0.1816480607,
0.2681888044,
0.1508677304,
0.0346500725,
-0.0117134713,
-0.0824667364,
-0.1310698539,
0.1497389823,
0.4146444499,
0.1367220432,
-0.2725357115,
-0.0683398768,
-0.3361948133,
0.3972060084,
0.291821301,
-0.2563176155,
0.3381397426,
0.0930465683,
-0.0448115803,
-0.0996241868,
0.0174714234,
0.1898332089,
0.1904861033,
0.2655975819,
-0.1340573579,
0.1325649023,
-0.0351309516,
-0.1304927766,
0.004788585,
0.0729859695,
-0.1076819897,
0.3593825102,
0.3060602546,
0.1129135489,
-0.087514706,
-0.081166178,
-0.2993251383,
-0.0468396172,
-0.0217849351,
0.1793802977,
0.2182226032,
-0.2264639288,
0.0334007926,
-0.3110871315,
0.0157675315,
0.0116477292,
0.652146697,
-0.1362132281,
-0.1908010393,
0.2219661325,
0.0742609575,
0.9107955098,
-0.1697582752,
-0.047767859,
-0.2234662175,
-0.2786902189,
0.1275864393,
0.3061981499,
0.0774174929,
-0.0461225547,
0.5052062869,
-0.181810379,
0.3880174756,
-0.0880889595,
-0.365426302,
0.0920001641,
-0.0208264049,
0.08689823,
-0.013521147,
0.0519563407,
-0.2462123185,
-0.3117576838,
0.0962445959,
-0.2440948933,
-0.1063671261,
-0.0403899737,
0.2175630629,
-0.0907752141,
-0.1126226336,
-0.4963788688,
-0.0617725663,
-0.30341506,
0.4760821164,
0.22979936,
-0.0288608354,
-0.0194284357,
-0.0775107443,
0.0343690291,
-0.1526607424,
0.1068073213,
-0.2156093866,
0.1638547033,
0.2227652818,
-0.1240257919,
-0.2118238062,
-0.4943147898,
-0.3110443354,
-0.0237983484,
0.076313436,
-0.1710080057,
-0.0684285983,
-0.2200554013,
0.0027596098,
-0.1519952267,
0.1327387989,
0.4515957832,
-0.076679416,
-0.2075059563,
-0.0513129346,
0.2085878551,
0.5510805249,
0.0616791993,
-0.1596295983,
0.133093223,
0.2265026867,
0.0326378532,
0.6488925219,
0.0589806661,
0.0846874714,
0.2585294545,
0.0645584315,
-0.1176874414,
-0.2783657908,
0.0752344206,
-0.1934870183,
-0.1577433199,
0.0985051617,
0.4758581221,
0.2683970332,
0.0449928828,
-0.1529213637,
0.1253433526,
-0.2520804405,
-0.1979158521,
0.4055434465,
0.0370066352,
0.462587446,
-0.0875200704,
-0.1534027904,
0.0079678642,
-0.3550321162,
0.0913982391,
-0.0922899693,
0.0258748177,
-0.4211962223,
-0.545345366,
-0.2182356268,
-0.2534330189,
0.3696661592,
0.4543712735,
-0.0103511875,
-0.0700468272,
-0.4352991283,
-0.0819311813,
-0.075626649,
0.1700692624,
0.0622293912,
-0.3514929414,
0.012109898,
-0.2442807704,
0.0773436278,
0.1962988824,
-0.3358925879,
-0.3367527723,
-0.0538001023,
0.3874264956,
-0.356261909,
0.0581251048,
0.2264220268,
-0.0486679599,
-0.0562435873,
0.0086918566,
-0.0854224265,
-0.1264291108,
0.0051182462,
0.2333195806,
0.3687151372,
0.0364034735,
0.2235228568,
-0.0396038294,
-0.0924399421,
-0.0361278988,
0.0263199788,
0.1368790418,
0.083082743,
0.001164781,
0.1247432008,
-0.1430706829,
-0.1977377087,
-0.0488723405,
0.4001809955,
-0.2085924447,
-0.0698705912,
-0.150530383,
-0.1544055343,
-0.021156745,
0.2488563657,
0.1011991501,
0.303930223,
0.0348633863,
0.1376394331,
-0.2829015553,
-0.1738831401,
-0.1508077234,
-0.0058536031,
0.113668479,
-0.1343205869,
0.4686169922,
-0.2742677033,
-0.2376136333,
-0.0322411396,
0.4682996571,
-0.196235925,
0.1028007269,
0.0156811662,
1.0317847729,
-0.1658943892,
0.3711088002,
0.1415889263,
-0.09747345,
0.2048790455,
-0.3503006399,
0.1448188275,
-0.1310676932,
-0.3593126833,
-0.0561570711,
0.0399525203,
-0.0805621669,
-0.0045616855,
-0.3912658691,
0.1389492452,
0.1756035835,
0.3666844666,
0.2946524024,
0.2584329844,
0.0696525574,
-0.0152625209,
-0.5002797246,
0.210822925,
0.1116848513,
-0.2397034317,
-0.0502776168,
0.0481446087,
-0.1371403486,
-0.1277021766,
-0.1942483932,
0.0707469583,
-0.4300712645,
-0.0462025814,
0.286147505,
-0.1057448164,
0.1106240675,
0.2124159336,
-0.0267281178,
-0.0604785532,
-0.3943509459,
0.0101638697,
-0.2656233311,
0.2279191017,
0.0728194341,
-0.0291025341,
0.2924782336,
-0.2039587498,
-0.1170172989,
0.2273561209,
0.3363114297,
-0.4757345319,
-0.4612278938,
0.0721804276,
0.3284937739,
-0.125604257,
0.0085263299,
0.1294414848,
-0.1191569492,
-0.141736269,
0.2308953106,
0.0601026267,
0.0594071895,
0.1053039804,
0.4885714948,
-0.1789278537,
-0.0357296653,
0.1176623181,
0.4107621312,
-0.0385525264,
0.2471323311,
0.3028381467,
-0.2766368985,
-0.439175874,
-0.1043767035,
0.2383770943,
-0.4756162167,
-0.029951727,
-0.1643126756,
-0.3447368443,
-0.0333019979,
0.5254303813,
0.4061191082,
-0.0993950292,
-0.0607090183,
-0.0520865135,
0.1030388102,
0.627266109,
0.337228179,
0.1448049694,
0.09635932,
-0.1821133345,
-0.0878589153,
0.2447614819,
-0.4542949796,
-0.0925647616,
-0.3687013984,
0.2434976697,
-0.0720837861,
-0.2631468773,
0.2722582817,
0.0614762306,
0.1426136792,
-0.1043647528,
-0.39494735,
-0.4038264155,
0.059706986,
0.0971549228,
0.138020575,
-0.0552519895,
-0.1508057415,
-0.1437975764,
-0.0928229019,
-0.1315387785,
0.054268308,
-0.334045738,
0.0110976994,
-0.1788978875,
0.0363317393,
-0.1240279377,
-0.1814770252,
0.0099528236,
-0.2088931054,
-0.1822605431,
0.1346782446,
-0.0392420106,
0.0597427338,
-0.0656929016,
0.079940103,
0.5429309011,
0.4998339713,
-0.1578965634,
0.0591221079,
0.0836746395,
-0.3154893816,
-0.0443155915,
0.2773605883,
-0.0831804425,
-0.1181732491,
0.0842386931,
0.1406012177,
0.3385835588,
-0.4173093736,
-0.0755336732,
-0.0798856467,
-0.2025341094,
0.333004415,
0.2637986541,
-0.0864128023,
-0.0999052599,
0.368237257,
0.214971289,
-0.0356019177,
-0.0385455266,
0.173121497,
0.1937652379,
0.2517060935,
0.0641474575,
-0.0184771214,
-0.0144705689,
-0.1412946135,
-0.0334266648,
-0.202712521,
0.1448784173,
-0.0525629818,
0.0754863471,
0.2267362326,
0.3809482753,
-0.0089711407,
0.1959056407,
-0.1053644717,
0.1468938887,
0.2529246211,
0.0774805248,
0.179392159,
-0.0227171555,
-0.4215109944,
-0.1569174528,
0.1076809987,
-0.1497697681,
0.069646582,
-0.2426839173,
-0.370977968,
-0.1268850118,
-0.0896279439,
-0.0408991911,
0.5435214639,
-0.16359891,
0.1739097983,
-0.0686829835,
0.0479200222,
0.0670224577,
0.333265543,
-0.092883423,
0.2201658338,
0.2191975415,
0.3239121735,
0.0336720794,
0.4749950767,
-0.0025974486,
0.2313490212,
-0.4086586237,
0.3700211048,
-0.2205613405,
-0.1524350345,
-0.0604496524,
0.2455565035,
0.2833979428,
-0.0461560786,
0.2276706249,
0.2533397079,
-0.2943522036,
0.2517374456,
-0.0129229287,
0.0322242379,
-0.2853602469,
0.1191601455,
-0.0543497428,
-0.0460739285,
-0.0495116413,
-0.0612843856,
-0.511742115,
0.1801473498,
-0.2863976061,
-0.2968676984,
-0.0125350719,
-0.07364849,
0.1288129985,
-0.1876115203,
0.2755152881,
0.2395883948,
0.4237525463,
-0.0510504246,
-0.3606441319,
-0.0462605655,
-0.1418853104,
0.1449589878,
-0.116703786,
0.1562410742,
-0.0363342017,
0.2164875716,
0.3477033675,
-0.1118954346,
-0.3725239933,
-0.381008029,
0.2364702672,
-0.400780797,
0.3359992802,
0.174229309,
0.0977543741,
0.172001943,
-0.321759522,
-0.042754136,
0.0127449147,
0.1785072684,
0.0582194254,
0.1562899947,
0.0390236787,
-0.210722059,
-0.1147495359,
0.0297925062,
0.3679975271,
-0.1752371043,
-0.1896428615,
0.2272825539,
-0.2485175729,
-0.1982805282,
0.042505227,
0.3440338075,
0.311729908,
-0.041538287,
-0.3080855012,
0.3648125529,
0.0051478515,
0.1454781294,
0.4213914573,
-0.1411508173,
0.0980365872,
0.0003455177,
-0.0700886622,
-0.0728382543,
0.1219621152,
-0.0429597162,
0.0887332559,
0.0602393039,
-0.2010682076,
0.3448041975,
-0.0921594128,
-0.2158393562,
0.0264812112,
0.0432166159,
0.087708503,
-0.1586979181,
-0.5564059019,
-0.0904891416,
0.1962943226,
-0.0127188088,
-0.0732559115,
0.6972962022,
0.0856292099,
-0.147918582,
-0.1298854649,
0.1628672332,
0.0622371547,
-0.1279260963,
-0.3026590943,
-0.5541504622
] |
https://github.com/huggingface/datasets/issues/880 | Add SQA | @thomwolf here's a slightly adapted version of the code from the [official Tapas repository](https://github.com/google-research/tapas/blob/master/tapas/utils/interaction_utils.py) that is used to turn the `answer_coordinates` and `answer_texts` columns into true Python lists of tuples/strings:
```
import pandas as pd
import ast
data = pd.read_csv("/content/sqa_data/random-split-1-dev.tsv", sep='\t')
def _parse_answer_coordinates(answer_coordinate_str):
"""Parses the answer_coordinates of a question.
Args:
answer_coordinate_str: A string representation of a Python list of tuple
strings.
For example: "['(1, 4)','(1, 3)', ...]"
"""
try:
answer_coordinates = []
# make a list of strings
coords = ast.literal_eval(answer_coordinate_str)
# parse each string as a tuple
for row_index, column_index in sorted(
ast.literal_eval(coord) for coord in coords):
answer_coordinates.append((row_index, column_index))
except SyntaxError:
raise ValueError('Unable to evaluate %s' % answer_coordinate_str)
return answer_coordinates
def _parse_answer_text(answer_text):
"""Populates the answer_texts field of `answer` by parsing `answer_text`.
Args:
answer_text: A string representation of a Python list of strings.
For example: "[u'test', u'hello', ...]"
"""
try:
answer = []
for value in ast.literal_eval(answer_text):
answer.append(value)
except SyntaxError:
raise ValueError('Unable to evaluate %s' % answer_text)
return answer
data['answer_coordinates'] = data['answer_coordinates'].apply(lambda coords_str: _parse_answer_coordinates(coords_str))
data['answer_text'] = data['answer_text'].apply(lambda txt: _parse_answer_text(txt))
```
Here I'm using Pandas to read in one of the TSV files (the dev set).
| ## Adding a Dataset
- **Name:** SQA (Sequential Question Answering) by Microsoft.
- **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total.
- **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/
- **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253
- **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71).
Note 1: this dataset actually consists of 2 types of files:
1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test)
2) a folder of csv files, which contain the actual tabular data
Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub.
Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
| 185 | Add SQA
## Adding a Dataset
- **Name:** SQA (Sequential Question Answering) by Microsoft.
- **Description:** The SQA dataset was created to explore the task of answering sequences of inter-related questions on HTML tables. It has 6,066 sequences with 17,553 questions in total.
- **Paper:** https://www.microsoft.com/en-us/research/publication/search-based-neural-structured-learning-sequential-question-answering/
- **Data:** https://www.microsoft.com/en-us/download/details.aspx?id=54253
- **Motivation:** currently, the [Tapas](https://ai.googleblog.com/2020/04/using-neural-networks-to-find-answers.html) algorithm by Google AI is being added to the Transformers library (see https://github.com/huggingface/transformers/pull/8113). It would be great to use that model in combination with this dataset, on which it achieves SOTA results (average question accuracy of 0.71).
Note 1: this dataset actually consists of 2 types of files:
1) TSV files, containing the questions, answer coordinates and answer texts (for training, dev and test)
2) a folder of csv files, which contain the actual tabular data
Note 2: if you download the dataset straight from the download link above, then you will see that the `answer_coordinates` and `answer_text` columns are string lists of string tuples and strings respectively, which is not ideal. It would be better to make them true Python lists of tuples and strings respectively (using `ast.literal_eval`), before uploading them to the HuggingFace hub.
Adding this would be great! Then we could possibly also add [WTQ (WikiTable Questions)](https://github.com/ppasupat/WikiTableQuestions) and [TabFact (Tabular Fact Checking)](https://github.com/wenhuchen/Table-Fact-Checking) on which TAPAS also achieves state-of-the-art results. Note that the TAPAS algorithm requires these datasets to first be converted into the SQA format.
Instructions to add a new dataset can be found [here](https://huggingface.co/docs/datasets/share_dataset.html).
@thomwolf here's a slightly adapted version of the code from the [official Tapas repository](https://github.com/google-research/tapas/blob/master/tapas/utils/interaction_utils.py) that is used to turn the `answer_coordinates` and `answer_texts` columns into true Python lists of tuples/strings:
```
import pandas as pd
import ast
data = pd.read_csv("/content/sqa_data/random-split-1-dev.tsv", sep='\t')
def _parse_answer_coordinates(answer_coordinate_str):
"""Parses the answer_coordinates of a question.
Args:
answer_coordinate_str: A string representation of a Python list of tuple
strings.
For example: "['(1, 4)','(1, 3)', ...]"
"""
try:
answer_coordinates = []
# make a list of strings
coords = ast.literal_eval(answer_coordinate_str)
# parse each string as a tuple
for row_index, column_index in sorted(
ast.literal_eval(coord) for coord in coords):
answer_coordinates.append((row_index, column_index))
except SyntaxError:
raise ValueError('Unable to evaluate %s' % answer_coordinate_str)
return answer_coordinates
def _parse_answer_text(answer_text):
"""Populates the answer_texts field of `answer` by parsing `answer_text`.
Args:
answer_text: A string representation of a Python list of strings.
For example: "[u'test', u'hello', ...]"
"""
try:
answer = []
for value in ast.literal_eval(answer_text):
answer.append(value)
except SyntaxError:
raise ValueError('Unable to evaluate %s' % answer_text)
return answer
data['answer_coordinates'] = data['answer_coordinates'].apply(lambda coords_str: _parse_answer_coordinates(coords_str))
data['answer_text'] = data['answer_text'].apply(lambda txt: _parse_answer_text(txt))
```
Here I'm using Pandas to read in one of the TSV files (the dev set).
| [
-0.0640090555,
-0.2312076539,
-0.2099179178,
-0.1210695505,
0.0999144614,
-0.1975829452,
0.0337971449,
0.3069657087,
0.1483601928,
0.0562702194,
-0.1675564051,
-0.0026327705,
-0.0712608621,
0.544383049,
0.1500165761,
-0.104553394,
0.0272177476,
0.1428323239,
-0.2944612801,
0.0711858869,
-0.1962937266,
0.0914863795,
0.0215712246,
0.0312297828,
-0.2368901819,
-0.0844547525,
-0.107318148,
-0.1923381686,
-0.1904112995,
-0.1972695887,
0.0054090098,
0.0722473711,
0.1686420739,
0.2730420232,
-0.0001059325,
-0.1343121976,
-0.0751998201,
-0.0975329429,
-0.0939193666,
0.0506611504,
-0.1607967615,
0.0926125944,
-0.111051552,
-0.0771295503,
-0.5252555013,
0.2041902542,
-0.0748101547,
-0.300747782,
0.5820881128,
0.2628433108,
0.2186129391,
0.0928576067,
0.0751175433,
-0.2174712569,
0.3752231896,
0.0049582031,
-0.3586767614,
-0.0065894681,
0.4021381736,
-0.3480514586,
0.0548401512,
0.4530359507,
0.2656967938,
-0.227632165,
0.1525068134,
0.1255035996,
0.2736341655,
0.0334792025,
0.0674655512,
0.2694989145,
0.3335779905,
-0.0927541107,
-0.182104826,
-0.18861413,
0.0144179827,
0.123525545,
-0.2833783627,
0.1186247095,
-0.3490379155,
0.0167794563,
-0.1807740927,
-0.2453862727,
-0.349671334,
0.1017986611,
0.0179148931,
0.5167184472,
-0.0192334969,
-0.1948670745,
-0.0831075162,
-0.1331273019,
-0.0427692607,
-0.0472528115,
0.2443597764,
0.2530232668,
-0.5382787585,
-0.2720509171,
0.2136118859,
0.1150446683,
0.2435955852,
0.1921216547,
0.472007215,
-0.0723902658,
0.0314641856,
-0.296505928,
0.1672354043,
0.4781263471,
-0.0035136372,
0.0426869765,
-0.163561821,
0.1145738065,
0.0696565211,
0.0185354445,
0.0113640837,
0.4373466074,
-0.2889093757,
0.0332337134,
0.1217356473,
0.0777647123,
-0.3187229037,
0.200028345,
-0.2216604948,
-0.0858715177,
-0.0461770743,
0.3067344725,
-0.2722216249,
0.0963959545,
0.161785841,
0.152575165,
0.0376236737,
-0.1205835491,
-0.0992912874,
-0.1381374896,
-0.1389063746,
0.327624768,
0.2592454553,
0.0756570175,
-0.118240796,
-0.1105896682,
0.1236675382,
0.067111969,
-0.1190189049,
-0.1257780045,
0.2719293237,
0.006378483,
-0.1196178198,
-0.2474645227,
0.0069882968,
-0.1855606139,
-0.0826090276,
0.2046098262,
0.0866251215,
0.0822595134,
-0.0458444804,
0.2935350537,
-0.0351123922,
-0.3378953636,
0.0560645051,
0.3847602308,
0.0544069372,
-0.0786112249,
0.1612039655,
0.077068992,
-0.1640682966,
-0.0699190274,
0.2680042386,
0.1623664945,
0.0437386036,
0.0179177132,
-0.0602710061,
0.2952127755,
-0.4049226344,
0.1558107287,
0.1623995602,
0.4924615622,
0.1605457664,
0.4469802976,
-0.3020620644,
0.0422099642,
-0.0510842428,
-0.106825158,
-0.0611652471,
0.2619522512,
-0.0233062562,
0.2226985842,
0.1795919985,
-0.098168999,
0.1247627065,
0.256914109,
-0.2434513867,
-0.0364893526,
-0.2605638504,
-0.3209439814,
-0.1499195993,
0.5569958091,
-0.0081572589,
-0.094726108,
-0.1503634006,
-0.2269732803,
0.0897200033,
-0.2418154478,
-0.1053459868,
-0.2026322931,
0.418138057,
-0.1816864312,
0.0669906288,
-0.5491580367,
-0.5756065249,
-0.1482614279,
-0.1463884711,
0.2786490619,
0.0339066237,
-0.4509786963,
-0.3733326495,
0.1327016205,
0.0075065074,
-0.0343046524,
0.2479702532,
0.1869213432,
0.2428165525,
-0.0500187799,
-0.0937465951,
0.1550152451,
-0.0424522199,
-0.1147119701,
-0.1329626292,
0.1986894906,
-0.122598581,
0.045611728,
-0.0185675379,
0.3147914708,
-0.1338374913,
0.1751380861,
0.3347402811,
0.1550745815,
-0.131916821,
-0.2625656724,
0.0805611908,
0.4734989405,
0.0326888524,
-0.0527553186,
-0.1923762262,
0.4993881881,
0.1238287836,
-0.0980775654,
-0.2853282094,
0.404361546,
-0.1816480607,
0.2681888044,
0.1508677304,
0.0346500725,
-0.0117134713,
-0.0824667364,
-0.1310698539,
0.1497389823,
0.4146444499,
0.1367220432,
-0.2725357115,
-0.0683398768,
-0.3361948133,
0.3972060084,
0.291821301,
-0.2563176155,
0.3381397426,
0.0930465683,
-0.0448115803,
-0.0996241868,
0.0174714234,
0.1898332089,
0.1904861033,
0.2655975819,
-0.1340573579,
0.1325649023,
-0.0351309516,
-0.1304927766,
0.004788585,
0.0729859695,
-0.1076819897,
0.3593825102,
0.3060602546,
0.1129135489,
-0.087514706,
-0.081166178,
-0.2993251383,
-0.0468396172,
-0.0217849351,
0.1793802977,
0.2182226032,
-0.2264639288,
0.0334007926,
-0.3110871315,
0.0157675315,
0.0116477292,
0.652146697,
-0.1362132281,
-0.1908010393,
0.2219661325,
0.0742609575,
0.9107955098,
-0.1697582752,
-0.047767859,
-0.2234662175,
-0.2786902189,
0.1275864393,
0.3061981499,
0.0774174929,
-0.0461225547,
0.5052062869,
-0.181810379,
0.3880174756,
-0.0880889595,
-0.365426302,
0.0920001641,
-0.0208264049,
0.08689823,
-0.013521147,
0.0519563407,
-0.2462123185,
-0.3117576838,
0.0962445959,
-0.2440948933,
-0.1063671261,
-0.0403899737,
0.2175630629,
-0.0907752141,
-0.1126226336,
-0.4963788688,
-0.0617725663,
-0.30341506,
0.4760821164,
0.22979936,
-0.0288608354,
-0.0194284357,
-0.0775107443,
0.0343690291,
-0.1526607424,
0.1068073213,
-0.2156093866,
0.1638547033,
0.2227652818,
-0.1240257919,
-0.2118238062,
-0.4943147898,
-0.3110443354,
-0.0237983484,
0.076313436,
-0.1710080057,
-0.0684285983,
-0.2200554013,
0.0027596098,
-0.1519952267,
0.1327387989,
0.4515957832,
-0.076679416,
-0.2075059563,
-0.0513129346,
0.2085878551,
0.5510805249,
0.0616791993,
-0.1596295983,
0.133093223,
0.2265026867,
0.0326378532,
0.6488925219,
0.0589806661,
0.0846874714,
0.2585294545,
0.0645584315,
-0.1176874414,
-0.2783657908,
0.0752344206,
-0.1934870183,
-0.1577433199,
0.0985051617,
0.4758581221,
0.2683970332,
0.0449928828,
-0.1529213637,
0.1253433526,
-0.2520804405,
-0.1979158521,
0.4055434465,
0.0370066352,
0.462587446,
-0.0875200704,
-0.1534027904,
0.0079678642,
-0.3550321162,
0.0913982391,
-0.0922899693,
0.0258748177,
-0.4211962223,
-0.545345366,
-0.2182356268,
-0.2534330189,
0.3696661592,
0.4543712735,
-0.0103511875,
-0.0700468272,
-0.4352991283,
-0.0819311813,
-0.075626649,
0.1700692624,
0.0622293912,
-0.3514929414,
0.012109898,
-0.2442807704,
0.0773436278,
0.1962988824,
-0.3358925879,
-0.3367527723,
-0.0538001023,
0.3874264956,
-0.356261909,
0.0581251048,
0.2264220268,
-0.0486679599,
-0.0562435873,
0.0086918566,
-0.0854224265,
-0.1264291108,
0.0051182462,
0.2333195806,
0.3687151372,
0.0364034735,
0.2235228568,
-0.0396038294,
-0.0924399421,
-0.0361278988,
0.0263199788,
0.1368790418,
0.083082743,
0.001164781,
0.1247432008,
-0.1430706829,
-0.1977377087,
-0.0488723405,
0.4001809955,
-0.2085924447,
-0.0698705912,
-0.150530383,
-0.1544055343,
-0.021156745,
0.2488563657,
0.1011991501,
0.303930223,
0.0348633863,
0.1376394331,
-0.2829015553,
-0.1738831401,
-0.1508077234,
-0.0058536031,
0.113668479,
-0.1343205869,
0.4686169922,
-0.2742677033,
-0.2376136333,
-0.0322411396,
0.4682996571,
-0.196235925,
0.1028007269,
0.0156811662,
1.0317847729,
-0.1658943892,
0.3711088002,
0.1415889263,
-0.09747345,
0.2048790455,
-0.3503006399,
0.1448188275,
-0.1310676932,
-0.3593126833,
-0.0561570711,
0.0399525203,
-0.0805621669,
-0.0045616855,
-0.3912658691,
0.1389492452,
0.1756035835,
0.3666844666,
0.2946524024,
0.2584329844,
0.0696525574,
-0.0152625209,
-0.5002797246,
0.210822925,
0.1116848513,
-0.2397034317,
-0.0502776168,
0.0481446087,
-0.1371403486,
-0.1277021766,
-0.1942483932,
0.0707469583,
-0.4300712645,
-0.0462025814,
0.286147505,
-0.1057448164,
0.1106240675,
0.2124159336,
-0.0267281178,
-0.0604785532,
-0.3943509459,
0.0101638697,
-0.2656233311,
0.2279191017,
0.0728194341,
-0.0291025341,
0.2924782336,
-0.2039587498,
-0.1170172989,
0.2273561209,
0.3363114297,
-0.4757345319,
-0.4612278938,
0.0721804276,
0.3284937739,
-0.125604257,
0.0085263299,
0.1294414848,
-0.1191569492,
-0.141736269,
0.2308953106,
0.0601026267,
0.0594071895,
0.1053039804,
0.4885714948,
-0.1789278537,
-0.0357296653,
0.1176623181,
0.4107621312,
-0.0385525264,
0.2471323311,
0.3028381467,
-0.2766368985,
-0.439175874,
-0.1043767035,
0.2383770943,
-0.4756162167,
-0.029951727,
-0.1643126756,
-0.3447368443,
-0.0333019979,
0.5254303813,
0.4061191082,
-0.0993950292,
-0.0607090183,
-0.0520865135,
0.1030388102,
0.627266109,
0.337228179,
0.1448049694,
0.09635932,
-0.1821133345,
-0.0878589153,
0.2447614819,
-0.4542949796,
-0.0925647616,
-0.3687013984,
0.2434976697,
-0.0720837861,
-0.2631468773,
0.2722582817,
0.0614762306,
0.1426136792,
-0.1043647528,
-0.39494735,
-0.4038264155,
0.059706986,
0.0971549228,
0.138020575,
-0.0552519895,
-0.1508057415,
-0.1437975764,
-0.0928229019,
-0.1315387785,
0.054268308,
-0.334045738,
0.0110976994,
-0.1788978875,
0.0363317393,
-0.1240279377,
-0.1814770252,
0.0099528236,
-0.2088931054,
-0.1822605431,
0.1346782446,
-0.0392420106,
0.0597427338,
-0.0656929016,
0.079940103,
0.5429309011,
0.4998339713,
-0.1578965634,
0.0591221079,
0.0836746395,
-0.3154893816,
-0.0443155915,
0.2773605883,
-0.0831804425,
-0.1181732491,
0.0842386931,
0.1406012177,
0.3385835588,
-0.4173093736,
-0.0755336732,
-0.0798856467,
-0.2025341094,
0.333004415,
0.2637986541,
-0.0864128023,
-0.0999052599,
0.368237257,
0.214971289,
-0.0356019177,
-0.0385455266,
0.173121497,
0.1937652379,
0.2517060935,
0.0641474575,
-0.0184771214,
-0.0144705689,
-0.1412946135,
-0.0334266648,
-0.202712521,
0.1448784173,
-0.0525629818,
0.0754863471,
0.2267362326,
0.3809482753,
-0.0089711407,
0.1959056407,
-0.1053644717,
0.1468938887,
0.2529246211,
0.0774805248,
0.179392159,
-0.0227171555,
-0.4215109944,
-0.1569174528,
0.1076809987,
-0.1497697681,
0.069646582,
-0.2426839173,
-0.370977968,
-0.1268850118,
-0.0896279439,
-0.0408991911,
0.5435214639,
-0.16359891,
0.1739097983,
-0.0686829835,
0.0479200222,
0.0670224577,
0.333265543,
-0.092883423,
0.2201658338,
0.2191975415,
0.3239121735,
0.0336720794,
0.4749950767,
-0.0025974486,
0.2313490212,
-0.4086586237,
0.3700211048,
-0.2205613405,
-0.1524350345,
-0.0604496524,
0.2455565035,
0.2833979428,
-0.0461560786,
0.2276706249,
0.2533397079,
-0.2943522036,
0.2517374456,
-0.0129229287,
0.0322242379,
-0.2853602469,
0.1191601455,
-0.0543497428,
-0.0460739285,
-0.0495116413,
-0.0612843856,
-0.511742115,
0.1801473498,
-0.2863976061,
-0.2968676984,
-0.0125350719,
-0.07364849,
0.1288129985,
-0.1876115203,
0.2755152881,
0.2395883948,
0.4237525463,
-0.0510504246,
-0.3606441319,
-0.0462605655,
-0.1418853104,
0.1449589878,
-0.116703786,
0.1562410742,
-0.0363342017,
0.2164875716,
0.3477033675,
-0.1118954346,
-0.3725239933,
-0.381008029,
0.2364702672,
-0.400780797,
0.3359992802,
0.174229309,
0.0977543741,
0.172001943,
-0.321759522,
-0.042754136,
0.0127449147,
0.1785072684,
0.0582194254,
0.1562899947,
0.0390236787,
-0.210722059,
-0.1147495359,
0.0297925062,
0.3679975271,
-0.1752371043,
-0.1896428615,
0.2272825539,
-0.2485175729,
-0.1982805282,
0.042505227,
0.3440338075,
0.311729908,
-0.041538287,
-0.3080855012,
0.3648125529,
0.0051478515,
0.1454781294,
0.4213914573,
-0.1411508173,
0.0980365872,
0.0003455177,
-0.0700886622,
-0.0728382543,
0.1219621152,
-0.0429597162,
0.0887332559,
0.0602393039,
-0.2010682076,
0.3448041975,
-0.0921594128,
-0.2158393562,
0.0264812112,
0.0432166159,
0.087708503,
-0.1586979181,
-0.5564059019,
-0.0904891416,
0.1962943226,
-0.0127188088,
-0.0732559115,
0.6972962022,
0.0856292099,
-0.147918582,
-0.1298854649,
0.1628672332,
0.0622371547,
-0.1279260963,
-0.3026590943,
-0.5541504622
] |
https://github.com/huggingface/datasets/issues/879 | boolq does not load | Hi ! It runs on my side without issues. I tried
```python
from datasets import load_dataset
load_dataset("boolq")
```
What version of datasets and tensorflow are your runnning ?
Also if you manage to get a minimal reproducible script (on google colab for example) that would be useful. | Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
| 47 | boolq does not load
Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
Hi ! It runs on my side without issues. I tried
```python
from datasets import load_dataset
load_dataset("boolq")
```
What version of datasets and tensorflow are your runnning ?
Also if you manage to get a minimal reproducible script (on google colab for example) that would be useful. | [
-0.314242512,
-0.129666537,
-0.1398147494,
0.2243655324,
0.0898045152,
0.0106670866,
0.4253871441,
0.3031973839,
0.4457687736,
-0.1245955974,
-0.0860084891,
0.3309849501,
-0.1855682731,
0.4824475944,
0.0417107344,
-0.0254135858,
-0.1236410141,
0.083775565,
-0.0132114785,
-0.0677921101,
-0.433516711,
0.3662594855,
-0.4190508723,
0.1728810817,
-0.1200261563,
-0.276445508,
-0.011230452,
0.235456422,
-0.3227625191,
-0.3402305543,
0.129192695,
0.0399897806,
0.2798754573,
0.1975852996,
-0.0001004217,
0.047427699,
0.413600862,
0.0912818834,
-0.2201257795,
-0.2904615104,
-0.1725927293,
-0.3197635114,
0.1770070791,
-0.1704840511,
-0.0781296492,
-0.0545157269,
-0.0554292612,
0.0769730657,
0.4125249386,
0.4600994587,
0.3143284321,
0.07579799,
0.1170566306,
-0.195151329,
0.193192631,
-0.1626983881,
0.1515528262,
0.2015701532,
0.0419375896,
-0.2938957512,
0.1587521732,
0.2637584805,
-0.1833395809,
-0.2460290194,
0.012176564,
-0.2074026912,
-0.1017386615,
-0.3344746828,
0.2351708263,
0.0141453473,
0.5186156034,
-0.1224102899,
-0.2733828425,
-0.0566846728,
0.1429379135,
-0.1925468445,
0.1893987507,
0.0914989859,
0.0534336828,
-0.0635303482,
0.1850987077,
-0.4896078706,
-0.0376427807,
-0.0354204997,
-0.1383910626,
0.275975287,
-0.1215396896,
0.0518844426,
0.1912807524,
-0.1711804271,
0.1133469567,
0.208026126,
-0.1522891968,
0.1584957242,
-0.5179920197,
0.0358059369,
0.1561288387,
-0.0271784756,
-0.0363991112,
0.1296274215,
-0.1894530803,
0.0187248159,
-0.0917200372,
0.2068093568,
0.0046221782,
0.5135237575,
0.3842210174,
0.2736545205,
0.1583574265,
0.1075287089,
-0.2233472764,
0.034229245,
-0.5201336741,
-0.3621050417,
-0.1302118599,
0.2492165715,
0.2366274446,
-0.0848475173,
-0.3538362682,
-0.1739945114,
-0.3224678636,
-0.1347560883,
0.3432622552,
0.6987861395,
0.0430134945,
-0.1265627742,
0.0525117293,
0.2696886063,
-0.348346889,
-0.0706118494,
-0.2877413332,
0.3017657995,
-0.0307149608,
-0.155474484,
0.2976012528,
-0.16892156,
0.3525424898,
0.0606401712,
-0.249807775,
-0.0990929827,
0.2741260231,
-0.2546375096,
-0.3732598722,
0.2511188388,
0.0047493661,
0.0151634356,
0.2008349448,
0.2303847671,
-0.0411106534,
0.2055431157,
-0.2143663168,
-0.2891749144,
0.0416455343,
0.3372691572,
-0.0229814481,
-0.2775759995,
-0.1418444812,
0.175844416,
0.1150737628,
-0.147282809,
-0.2639816999,
-0.3271437287,
-0.1046771854,
-0.2185692191,
0.3993265927,
0.4546141624,
-0.3941681683,
-0.264450103,
-0.3861934841,
-0.2117396593,
0.0058000172,
0.2955777943,
-0.1370878518,
0.5168119669,
-0.2074036002,
0.0861331373,
0.2646965683,
-0.2111935616,
-0.1844503134,
0.1970261186,
-0.0149663258,
-0.0348745771,
-0.2750918567,
-0.0445284992,
0.1203413904,
0.1673647314,
0.1317072362,
0.141513899,
0.2968439758,
-0.2430087179,
-0.1465200037,
-0.1223875582,
0.0710639507,
0.345780313,
0.2301305681,
-0.0535533205,
-0.0584516153,
-0.4113749862,
0.0685675144,
0.1532152295,
-0.2991674542,
0.1951566488,
0.3404015601,
-0.1151798368,
0.1968043447,
0.0254540071,
-0.3794721365,
0.1544528753,
-0.2339847833,
-0.037833102,
-0.0620960519,
0.1533767432,
-0.3266775012,
0.0734997541,
-0.1862191856,
-0.0524059236,
0.193123579,
-0.1655138284,
-0.0569785759,
0.0857945308,
-0.3088484406,
0.2691079676,
-0.0235378966,
0.134635523,
-0.2137402594,
0.1054311991,
-0.1465706974,
-0.0927518159,
0.2968969643,
0.2993909121,
0.1980738044,
0.0299891829,
-0.0212003645,
0.2432889193,
0.1288769245,
0.1043747142,
-0.0412737168,
-0.5058259368,
0.1112553403,
-0.0384228639,
0.3070514202,
0.1330129504,
0.0742572173,
0.0808736309,
0.0900944695,
0.2717497349,
-0.0859904587,
0.1937265098,
0.1444684267,
0.1817198396,
0.2400856316,
0.029275218,
-0.006894005,
-0.1292018294,
0.4810889065,
-0.0400444679,
-0.0255698785,
0.0285187773,
-0.1477419883,
0.0691428334,
0.4380696118,
0.1077945977,
0.122457549,
0.0266053751,
-0.1225927174,
0.1235342398,
0.117641896,
0.1531545222,
0.2710773349,
0.2076155543,
-0.4852930605,
-0.1021019593,
-0.0421198457,
-0.2693492174,
0.173310712,
-0.1938360631,
0.0288220756,
0.2061608136,
-0.0693072006,
-0.1248021871,
-0.1851714551,
-0.2250051498,
0.0909517407,
0.2774636149,
-0.197366938,
-0.0649486855,
-0.0835351422,
-0.3896839023,
0.1917293072,
-0.1083574444,
-0.0304459911,
-0.35120821,
0.1287217587,
-0.029634906,
-0.0343717858,
0.2476252466,
0.0612641238,
0.3148311079,
0.1070151106,
-0.0850822106,
-0.1364320815,
-0.2685341537,
-0.2265998572,
0.13108477,
0.1870205551,
0.0818484426,
0.2532462776,
-0.0990138575,
0.088372156,
-0.0534894019,
-0.2225490659,
-0.087805666,
-0.09443257,
0.3347642124,
0.1184834242,
0.0666118562,
-0.0564618446,
-0.2238014787,
0.3523496389,
-0.1633936316,
-0.0211879648,
0.1725942492,
0.1716834754,
-0.0578616485,
-0.2205018997,
-0.5058783889,
-0.5898676515,
-0.4911761582,
0.0963694602,
0.0636331365,
0.1966697574,
0.3625309169,
-0.0294896346,
0.1960618347,
0.0712999031,
-0.0495073386,
0.0055858465,
-0.1599077135,
0.2620784044,
-0.065198645,
-0.2783259451,
0.0434394553,
-0.0880052224,
0.4329285026,
-0.2539990246,
-0.3081472516,
0.003639071,
-0.0644264743,
-0.0977024883,
-0.0620605759,
-0.1536532491,
-0.1169781834,
0.0611616485,
0.0138719752,
0.0663509965,
-0.3257703185,
0.2271666974,
0.0191834029,
0.1968749613,
-0.0655775294,
0.3469648063,
-0.3650505245,
0.6071885228,
0.1826375425,
0.1984721124,
0.2066986561,
0.2602954209,
0.0882440582,
0.0225898381,
-0.7111613154,
0.0119960913,
0.1972315907,
-0.1737873107,
0.0223202668,
-0.0742930397,
0.0048977132,
-0.2321588844,
-0.1811945438,
-0.1740100086,
-0.2393469214,
-0.0555001087,
-0.364397347,
0.0228943806,
-0.0218462516,
0.3673845828,
-0.2108634412,
0.0025235587,
0.0858276188,
0.1972027123,
0.1464113146,
-0.0942060798,
-0.5303609967,
-0.5024213791,
-0.3433576822,
0.2414336801,
-0.268049866,
0.239221409,
-0.1371824145,
0.0209191386,
0.1031651646,
-0.1103473231,
0.4958155751,
-0.1310851276,
-0.1198502705,
0.3111155927,
-0.0852033421,
-0.2169434428,
-0.1560444385,
-0.2145743519,
0.2487731874,
0.0919607878,
0.4482042789,
-0.2502596378,
0.0183464363,
0.0149936555,
-0.1805452853,
-0.2933080792,
-0.4980677962,
-0.4371125698,
-0.1474026889,
-0.378598541,
-0.0684283972,
-0.2436528951,
0.2505196035,
-0.2380884886,
-0.017340187,
-0.0446074232,
-0.2353484184,
0.1815396249,
0.1636778265,
0.5122845769,
-0.1921358407,
0.0965681598,
0.0463167988,
0.0618035682,
0.1100911647,
0.3877335191,
-0.1745920032,
-0.259647727,
-0.0316257402,
-0.0194509868,
0.2970834672,
-0.1034843326,
-0.2948685586,
0.3071785271,
-0.0516146719,
0.110249415,
0.0259383377,
0.0147439539,
0.253284961,
0.1661934704,
-0.0491434783,
-0.4161554277,
0.1546283215,
-0.0264267232,
0.0593896285,
0.206332624,
-0.2129348069,
-0.0297330413,
0.2763863802,
-0.064801015,
0.5007889271,
-0.1812510043,
-0.1933795959,
0.3407918513,
0.2175007612,
0.4038964808,
-0.1669143587,
0.2915232182,
-0.5527963042,
-0.019655928,
0.2265730798,
-0.1374718398,
-0.0402738675,
-0.2586252987,
-0.5010085702,
0.2584683597,
-0.1938875914,
0.3548454642,
0.0251687691,
0.2396080494,
-0.1991096735,
0.0686027706,
-0.265285939,
0.1974008232,
-0.1181020439,
0.3159293532,
-0.1748006046,
-0.0673146173,
0.3389050663,
-0.1213416457,
-0.0972985178,
0.3927968442,
-0.133114621,
0.2491983622,
0.1869203746,
-0.0859442726,
0.1371112317,
0.4802417755,
0.0360943489,
0.2273455709,
-0.13513574,
0.0657629743,
-0.0193211101,
-0.0943333954,
-0.1121784821,
0.1603537202,
0.2917368412,
-0.1176794246,
-0.3513067365,
0.4982579648,
-0.0539627746,
0.0808961391,
-0.207749486,
0.0966770872,
-0.0197357498,
-0.2792848647,
-0.0582652166,
-0.0777065828,
0.0835339054,
-0.1127734929,
0.1955122799,
0.1503961831,
-0.0459560975,
0.2849722207,
-0.1004795432,
-0.2767520547,
-0.0368326306,
0.1631648391,
-0.0202607755,
0.2678743601,
0.7444610596,
0.314819783,
-0.0434076712,
-0.4068890512,
-0.1119851694,
0.1022956073,
-0.0354895741,
0.2343207747,
0.2025266141,
-0.0975750089,
0.2175709307,
0.0701929629,
0.0332487375,
-0.0487874188,
-0.0780251473,
-0.4976788163,
-0.2899360657,
0.5084169507,
-0.2384424061,
-0.0717614815,
-0.0226836484,
-0.0233010706,
0.0253999792,
0.1786236316,
-0.412326932,
-0.004747428,
-0.5003216863,
-0.1386015862,
-0.1944637299,
-0.2909422219,
0.1350519806,
0.1839277148,
0.2573775053,
-0.0973944962,
-0.1259429604,
-0.2820374668,
0.0279130172,
0.0186120588,
-0.0506162569,
0.1341327876,
-0.0356099047,
-0.2192931771,
0.0269433148,
0.1245468557,
-0.019082116,
-0.1418264806,
0.0428550504,
0.2309853137,
0.0664211586,
0.1498233378,
-0.104858011,
0.3925113082,
-0.1542079598,
-0.1091765687,
0.0892823562,
0.0404634438,
0.145432353,
0.0041160015,
-0.0036399919,
-0.0570224039,
0.0763985664,
0.0788751245,
0.1567757726,
-0.2010098696,
0.2653389275,
-0.1736502051,
0.0509916693,
0.6181198359,
-0.2227317989,
0.1117154807,
0.0968502462,
0.3101872802,
-0.2278641015,
0.1903334558,
-0.2262137681,
-0.0269353259,
0.0044276183,
0.1368970424,
-0.2643563151,
-0.1858040988,
0.1944197267,
0.1868377179,
0.2378837168,
0.1207541525,
0.0021418515,
0.2828049064,
-0.2137753516,
-0.1657213718,
0.180483669,
0.1804219931,
0.0042539965,
0.3604367673,
-0.2713557482,
-0.0449319221,
0.0594246797,
0.2507368922,
0.1973166764,
-0.3961364031,
-0.142132327,
0.3903947771,
-0.0077802627,
-0.2976874411,
-0.2608271837,
0.4449033141,
-0.104410693,
-0.0567575544,
-0.1178354248,
0.1353801936,
-0.3331620395,
-0.0949437916,
-0.5158820152,
-0.0901945308,
-0.0454394892,
-0.1312886328,
0.0252013542,
0.0420155749,
-0.1148140952,
0.0730805993,
-0.1637791544,
-0.3743665516,
0.2009000331,
0.2530692518,
-0.243772164,
-0.1150778532,
0.3914286196,
0.1533195525,
0.319429189,
0.1970058382,
0.0829287469,
0.3079622388,
0.5380837917,
-0.3283626437,
-0.0000048466,
0.0199084859,
-0.1313575208,
0.0346753262,
0.3137901127,
0.2148801237,
0.39739272,
0.2980230451,
0.242942974,
-0.1719402522,
0.194398433,
0.0471306741,
0.165092811,
0.0040557715,
0.6533152461,
-0.0515632294,
0.0107026752,
-0.2028619945,
-0.0492494144,
-0.5103921294,
-0.0879736319,
0.299931258,
0.2265716195,
0.0560057797,
-0.2306601554,
0.1365998685,
-0.3244097531,
0.4204716682,
0.433408767,
0.4649440348,
-0.414083153,
0.1457709074,
-0.4007867277,
0.0466139838,
0.065860033,
-0.0020460382,
-0.1097383499,
0.0314685963,
-0.0425011031,
-0.0867099464,
0.131940037,
0.0399009474,
0.2227890193,
-0.177465871,
-0.4814171195,
0.1328637004,
0.0461929776,
0.1684634835,
0.0244554486,
-0.1332155466,
0.1925163716,
-0.4258806407,
0.0993289277,
-0.0376956202,
-0.2557369769,
0.1841210872,
-0.2434109598,
0.2420449704,
0.0028272471,
0.2686463296,
0.0102749383,
-0.0241373722,
-0.1938574761,
-0.3289034367,
-0.1430857778,
0.0125012901,
0.3162790537,
0.2012419552,
-0.0406675264,
0.2181181759,
-0.1372946948,
0.167104423,
-0.0101538068,
-0.1750992537,
-0.1615084857,
-0.0480242744,
0.2521773279,
-0.1583051085,
0.0523844622,
0.1459884793,
0.0466806479,
0.1564804763,
-0.4045483172,
-0.069786109,
0.4909422994,
-0.0189437252,
-0.065200001,
-0.0544005819,
0.2422238886,
0.1531121582,
0.0249588676,
-0.3776180148,
0.024550857,
0.3022919595,
-0.0252071545,
0.07761655,
0.3028819263,
0.4011396766,
0.096467711,
-0.0990419164,
-0.2832089067,
0.1615868062,
0.0936067402,
0.0778960437,
0.0205556471
] |
https://github.com/huggingface/datasets/issues/879 | boolq does not load | hey
i do the exact same commands. for me it fails i guess might be issues with
caching maybe?
thanks
best
rabeeh
On Tue, Nov 24, 2020, 10:24 AM Quentin Lhoest <[email protected]>
wrote:
> Hi ! It runs on my side without issues. I tried
>
> from datasets import load_datasetload_dataset("boolq")
>
> What version of datasets and tensorflow are your runnning ?
> Also if you manage to get a minimal reproducible script (on google colab
> for example) that would be useful.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/879#issuecomment-732769114>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABP4ZCGGDR2FUMRKZTIY5CTSRN3VXANCNFSM4T7R3U6A>
> .
>
| Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
| 117 | boolq does not load
Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
hey
i do the exact same commands. for me it fails i guess might be issues with
caching maybe?
thanks
best
rabeeh
On Tue, Nov 24, 2020, 10:24 AM Quentin Lhoest <[email protected]>
wrote:
> Hi ! It runs on my side without issues. I tried
>
> from datasets import load_datasetload_dataset("boolq")
>
> What version of datasets and tensorflow are your runnning ?
> Also if you manage to get a minimal reproducible script (on google colab
> for example) that would be useful.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/datasets/issues/879#issuecomment-732769114>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABP4ZCGGDR2FUMRKZTIY5CTSRN3VXANCNFSM4T7R3U6A>
> .
>
| [
-0.314242512,
-0.129666537,
-0.1398147494,
0.2243655324,
0.0898045152,
0.0106670866,
0.4253871441,
0.3031973839,
0.4457687736,
-0.1245955974,
-0.0860084891,
0.3309849501,
-0.1855682731,
0.4824475944,
0.0417107344,
-0.0254135858,
-0.1236410141,
0.083775565,
-0.0132114785,
-0.0677921101,
-0.433516711,
0.3662594855,
-0.4190508723,
0.1728810817,
-0.1200261563,
-0.276445508,
-0.011230452,
0.235456422,
-0.3227625191,
-0.3402305543,
0.129192695,
0.0399897806,
0.2798754573,
0.1975852996,
-0.0001004217,
0.047427699,
0.413600862,
0.0912818834,
-0.2201257795,
-0.2904615104,
-0.1725927293,
-0.3197635114,
0.1770070791,
-0.1704840511,
-0.0781296492,
-0.0545157269,
-0.0554292612,
0.0769730657,
0.4125249386,
0.4600994587,
0.3143284321,
0.07579799,
0.1170566306,
-0.195151329,
0.193192631,
-0.1626983881,
0.1515528262,
0.2015701532,
0.0419375896,
-0.2938957512,
0.1587521732,
0.2637584805,
-0.1833395809,
-0.2460290194,
0.012176564,
-0.2074026912,
-0.1017386615,
-0.3344746828,
0.2351708263,
0.0141453473,
0.5186156034,
-0.1224102899,
-0.2733828425,
-0.0566846728,
0.1429379135,
-0.1925468445,
0.1893987507,
0.0914989859,
0.0534336828,
-0.0635303482,
0.1850987077,
-0.4896078706,
-0.0376427807,
-0.0354204997,
-0.1383910626,
0.275975287,
-0.1215396896,
0.0518844426,
0.1912807524,
-0.1711804271,
0.1133469567,
0.208026126,
-0.1522891968,
0.1584957242,
-0.5179920197,
0.0358059369,
0.1561288387,
-0.0271784756,
-0.0363991112,
0.1296274215,
-0.1894530803,
0.0187248159,
-0.0917200372,
0.2068093568,
0.0046221782,
0.5135237575,
0.3842210174,
0.2736545205,
0.1583574265,
0.1075287089,
-0.2233472764,
0.034229245,
-0.5201336741,
-0.3621050417,
-0.1302118599,
0.2492165715,
0.2366274446,
-0.0848475173,
-0.3538362682,
-0.1739945114,
-0.3224678636,
-0.1347560883,
0.3432622552,
0.6987861395,
0.0430134945,
-0.1265627742,
0.0525117293,
0.2696886063,
-0.348346889,
-0.0706118494,
-0.2877413332,
0.3017657995,
-0.0307149608,
-0.155474484,
0.2976012528,
-0.16892156,
0.3525424898,
0.0606401712,
-0.249807775,
-0.0990929827,
0.2741260231,
-0.2546375096,
-0.3732598722,
0.2511188388,
0.0047493661,
0.0151634356,
0.2008349448,
0.2303847671,
-0.0411106534,
0.2055431157,
-0.2143663168,
-0.2891749144,
0.0416455343,
0.3372691572,
-0.0229814481,
-0.2775759995,
-0.1418444812,
0.175844416,
0.1150737628,
-0.147282809,
-0.2639816999,
-0.3271437287,
-0.1046771854,
-0.2185692191,
0.3993265927,
0.4546141624,
-0.3941681683,
-0.264450103,
-0.3861934841,
-0.2117396593,
0.0058000172,
0.2955777943,
-0.1370878518,
0.5168119669,
-0.2074036002,
0.0861331373,
0.2646965683,
-0.2111935616,
-0.1844503134,
0.1970261186,
-0.0149663258,
-0.0348745771,
-0.2750918567,
-0.0445284992,
0.1203413904,
0.1673647314,
0.1317072362,
0.141513899,
0.2968439758,
-0.2430087179,
-0.1465200037,
-0.1223875582,
0.0710639507,
0.345780313,
0.2301305681,
-0.0535533205,
-0.0584516153,
-0.4113749862,
0.0685675144,
0.1532152295,
-0.2991674542,
0.1951566488,
0.3404015601,
-0.1151798368,
0.1968043447,
0.0254540071,
-0.3794721365,
0.1544528753,
-0.2339847833,
-0.037833102,
-0.0620960519,
0.1533767432,
-0.3266775012,
0.0734997541,
-0.1862191856,
-0.0524059236,
0.193123579,
-0.1655138284,
-0.0569785759,
0.0857945308,
-0.3088484406,
0.2691079676,
-0.0235378966,
0.134635523,
-0.2137402594,
0.1054311991,
-0.1465706974,
-0.0927518159,
0.2968969643,
0.2993909121,
0.1980738044,
0.0299891829,
-0.0212003645,
0.2432889193,
0.1288769245,
0.1043747142,
-0.0412737168,
-0.5058259368,
0.1112553403,
-0.0384228639,
0.3070514202,
0.1330129504,
0.0742572173,
0.0808736309,
0.0900944695,
0.2717497349,
-0.0859904587,
0.1937265098,
0.1444684267,
0.1817198396,
0.2400856316,
0.029275218,
-0.006894005,
-0.1292018294,
0.4810889065,
-0.0400444679,
-0.0255698785,
0.0285187773,
-0.1477419883,
0.0691428334,
0.4380696118,
0.1077945977,
0.122457549,
0.0266053751,
-0.1225927174,
0.1235342398,
0.117641896,
0.1531545222,
0.2710773349,
0.2076155543,
-0.4852930605,
-0.1021019593,
-0.0421198457,
-0.2693492174,
0.173310712,
-0.1938360631,
0.0288220756,
0.2061608136,
-0.0693072006,
-0.1248021871,
-0.1851714551,
-0.2250051498,
0.0909517407,
0.2774636149,
-0.197366938,
-0.0649486855,
-0.0835351422,
-0.3896839023,
0.1917293072,
-0.1083574444,
-0.0304459911,
-0.35120821,
0.1287217587,
-0.029634906,
-0.0343717858,
0.2476252466,
0.0612641238,
0.3148311079,
0.1070151106,
-0.0850822106,
-0.1364320815,
-0.2685341537,
-0.2265998572,
0.13108477,
0.1870205551,
0.0818484426,
0.2532462776,
-0.0990138575,
0.088372156,
-0.0534894019,
-0.2225490659,
-0.087805666,
-0.09443257,
0.3347642124,
0.1184834242,
0.0666118562,
-0.0564618446,
-0.2238014787,
0.3523496389,
-0.1633936316,
-0.0211879648,
0.1725942492,
0.1716834754,
-0.0578616485,
-0.2205018997,
-0.5058783889,
-0.5898676515,
-0.4911761582,
0.0963694602,
0.0636331365,
0.1966697574,
0.3625309169,
-0.0294896346,
0.1960618347,
0.0712999031,
-0.0495073386,
0.0055858465,
-0.1599077135,
0.2620784044,
-0.065198645,
-0.2783259451,
0.0434394553,
-0.0880052224,
0.4329285026,
-0.2539990246,
-0.3081472516,
0.003639071,
-0.0644264743,
-0.0977024883,
-0.0620605759,
-0.1536532491,
-0.1169781834,
0.0611616485,
0.0138719752,
0.0663509965,
-0.3257703185,
0.2271666974,
0.0191834029,
0.1968749613,
-0.0655775294,
0.3469648063,
-0.3650505245,
0.6071885228,
0.1826375425,
0.1984721124,
0.2066986561,
0.2602954209,
0.0882440582,
0.0225898381,
-0.7111613154,
0.0119960913,
0.1972315907,
-0.1737873107,
0.0223202668,
-0.0742930397,
0.0048977132,
-0.2321588844,
-0.1811945438,
-0.1740100086,
-0.2393469214,
-0.0555001087,
-0.364397347,
0.0228943806,
-0.0218462516,
0.3673845828,
-0.2108634412,
0.0025235587,
0.0858276188,
0.1972027123,
0.1464113146,
-0.0942060798,
-0.5303609967,
-0.5024213791,
-0.3433576822,
0.2414336801,
-0.268049866,
0.239221409,
-0.1371824145,
0.0209191386,
0.1031651646,
-0.1103473231,
0.4958155751,
-0.1310851276,
-0.1198502705,
0.3111155927,
-0.0852033421,
-0.2169434428,
-0.1560444385,
-0.2145743519,
0.2487731874,
0.0919607878,
0.4482042789,
-0.2502596378,
0.0183464363,
0.0149936555,
-0.1805452853,
-0.2933080792,
-0.4980677962,
-0.4371125698,
-0.1474026889,
-0.378598541,
-0.0684283972,
-0.2436528951,
0.2505196035,
-0.2380884886,
-0.017340187,
-0.0446074232,
-0.2353484184,
0.1815396249,
0.1636778265,
0.5122845769,
-0.1921358407,
0.0965681598,
0.0463167988,
0.0618035682,
0.1100911647,
0.3877335191,
-0.1745920032,
-0.259647727,
-0.0316257402,
-0.0194509868,
0.2970834672,
-0.1034843326,
-0.2948685586,
0.3071785271,
-0.0516146719,
0.110249415,
0.0259383377,
0.0147439539,
0.253284961,
0.1661934704,
-0.0491434783,
-0.4161554277,
0.1546283215,
-0.0264267232,
0.0593896285,
0.206332624,
-0.2129348069,
-0.0297330413,
0.2763863802,
-0.064801015,
0.5007889271,
-0.1812510043,
-0.1933795959,
0.3407918513,
0.2175007612,
0.4038964808,
-0.1669143587,
0.2915232182,
-0.5527963042,
-0.019655928,
0.2265730798,
-0.1374718398,
-0.0402738675,
-0.2586252987,
-0.5010085702,
0.2584683597,
-0.1938875914,
0.3548454642,
0.0251687691,
0.2396080494,
-0.1991096735,
0.0686027706,
-0.265285939,
0.1974008232,
-0.1181020439,
0.3159293532,
-0.1748006046,
-0.0673146173,
0.3389050663,
-0.1213416457,
-0.0972985178,
0.3927968442,
-0.133114621,
0.2491983622,
0.1869203746,
-0.0859442726,
0.1371112317,
0.4802417755,
0.0360943489,
0.2273455709,
-0.13513574,
0.0657629743,
-0.0193211101,
-0.0943333954,
-0.1121784821,
0.1603537202,
0.2917368412,
-0.1176794246,
-0.3513067365,
0.4982579648,
-0.0539627746,
0.0808961391,
-0.207749486,
0.0966770872,
-0.0197357498,
-0.2792848647,
-0.0582652166,
-0.0777065828,
0.0835339054,
-0.1127734929,
0.1955122799,
0.1503961831,
-0.0459560975,
0.2849722207,
-0.1004795432,
-0.2767520547,
-0.0368326306,
0.1631648391,
-0.0202607755,
0.2678743601,
0.7444610596,
0.314819783,
-0.0434076712,
-0.4068890512,
-0.1119851694,
0.1022956073,
-0.0354895741,
0.2343207747,
0.2025266141,
-0.0975750089,
0.2175709307,
0.0701929629,
0.0332487375,
-0.0487874188,
-0.0780251473,
-0.4976788163,
-0.2899360657,
0.5084169507,
-0.2384424061,
-0.0717614815,
-0.0226836484,
-0.0233010706,
0.0253999792,
0.1786236316,
-0.412326932,
-0.004747428,
-0.5003216863,
-0.1386015862,
-0.1944637299,
-0.2909422219,
0.1350519806,
0.1839277148,
0.2573775053,
-0.0973944962,
-0.1259429604,
-0.2820374668,
0.0279130172,
0.0186120588,
-0.0506162569,
0.1341327876,
-0.0356099047,
-0.2192931771,
0.0269433148,
0.1245468557,
-0.019082116,
-0.1418264806,
0.0428550504,
0.2309853137,
0.0664211586,
0.1498233378,
-0.104858011,
0.3925113082,
-0.1542079598,
-0.1091765687,
0.0892823562,
0.0404634438,
0.145432353,
0.0041160015,
-0.0036399919,
-0.0570224039,
0.0763985664,
0.0788751245,
0.1567757726,
-0.2010098696,
0.2653389275,
-0.1736502051,
0.0509916693,
0.6181198359,
-0.2227317989,
0.1117154807,
0.0968502462,
0.3101872802,
-0.2278641015,
0.1903334558,
-0.2262137681,
-0.0269353259,
0.0044276183,
0.1368970424,
-0.2643563151,
-0.1858040988,
0.1944197267,
0.1868377179,
0.2378837168,
0.1207541525,
0.0021418515,
0.2828049064,
-0.2137753516,
-0.1657213718,
0.180483669,
0.1804219931,
0.0042539965,
0.3604367673,
-0.2713557482,
-0.0449319221,
0.0594246797,
0.2507368922,
0.1973166764,
-0.3961364031,
-0.142132327,
0.3903947771,
-0.0077802627,
-0.2976874411,
-0.2608271837,
0.4449033141,
-0.104410693,
-0.0567575544,
-0.1178354248,
0.1353801936,
-0.3331620395,
-0.0949437916,
-0.5158820152,
-0.0901945308,
-0.0454394892,
-0.1312886328,
0.0252013542,
0.0420155749,
-0.1148140952,
0.0730805993,
-0.1637791544,
-0.3743665516,
0.2009000331,
0.2530692518,
-0.243772164,
-0.1150778532,
0.3914286196,
0.1533195525,
0.319429189,
0.1970058382,
0.0829287469,
0.3079622388,
0.5380837917,
-0.3283626437,
-0.0000048466,
0.0199084859,
-0.1313575208,
0.0346753262,
0.3137901127,
0.2148801237,
0.39739272,
0.2980230451,
0.242942974,
-0.1719402522,
0.194398433,
0.0471306741,
0.165092811,
0.0040557715,
0.6533152461,
-0.0515632294,
0.0107026752,
-0.2028619945,
-0.0492494144,
-0.5103921294,
-0.0879736319,
0.299931258,
0.2265716195,
0.0560057797,
-0.2306601554,
0.1365998685,
-0.3244097531,
0.4204716682,
0.433408767,
0.4649440348,
-0.414083153,
0.1457709074,
-0.4007867277,
0.0466139838,
0.065860033,
-0.0020460382,
-0.1097383499,
0.0314685963,
-0.0425011031,
-0.0867099464,
0.131940037,
0.0399009474,
0.2227890193,
-0.177465871,
-0.4814171195,
0.1328637004,
0.0461929776,
0.1684634835,
0.0244554486,
-0.1332155466,
0.1925163716,
-0.4258806407,
0.0993289277,
-0.0376956202,
-0.2557369769,
0.1841210872,
-0.2434109598,
0.2420449704,
0.0028272471,
0.2686463296,
0.0102749383,
-0.0241373722,
-0.1938574761,
-0.3289034367,
-0.1430857778,
0.0125012901,
0.3162790537,
0.2012419552,
-0.0406675264,
0.2181181759,
-0.1372946948,
0.167104423,
-0.0101538068,
-0.1750992537,
-0.1615084857,
-0.0480242744,
0.2521773279,
-0.1583051085,
0.0523844622,
0.1459884793,
0.0466806479,
0.1564804763,
-0.4045483172,
-0.069786109,
0.4909422994,
-0.0189437252,
-0.065200001,
-0.0544005819,
0.2422238886,
0.1531121582,
0.0249588676,
-0.3776180148,
0.024550857,
0.3022919595,
-0.0252071545,
0.07761655,
0.3028819263,
0.4011396766,
0.096467711,
-0.0990419164,
-0.2832089067,
0.1615868062,
0.0936067402,
0.0778960437,
0.0205556471
] |
https://github.com/huggingface/datasets/issues/879 | boolq does not load | Could you check if it works on the master branch ?
You can use `load_dataset("boolq", script_version="master")` to do so.
We did some changes recently in boolq to remove the TF dependency and we changed the way the data files are downloaded in https://github.com/huggingface/datasets/pull/881 | Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
| 43 | boolq does not load
Hi
I am getting these errors trying to load boolq thanks
Traceback (most recent call last):
File "test.py", line 5, in <module>
data = AutoTask().get("boolq").get_dataset("train", n_obs=10)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 42, in get_dataset
dataset = self.load_dataset(split=split)
File "/remote/idiap.svm/user.active/rkarimi/dev/internship/seq2seq/tasks/tasks.py", line 38, in load_dataset
return datasets.load_dataset(self.task.name, split=split)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/load.py", line 611, in load_dataset
ignore_verifications=ignore_verifications,
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 476, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/builder.py", line 531, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File " /idiap/home/rkarimi/.cache/huggingface/modules/datasets_modules/datasets/boolq/2987db1f15deaa19500ae24de560eabeaf1f8ef51df88c0470beeec72943bf11/boolq.py", line 74, in _split_generators
downloaded_files = dl_manager.download_custom(urls_to_download, tf.io.gfile.copy)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/download_manager.py", line 150, in download_custom
get_from_cache(url, cache_dir=cache_dir, local_files_only=True, use_etag=False)
File "/idiap/user/rkarimi/libs/anaconda3/envs/internship/lib/python3.7/site-packages/datasets/utils/file_utils.py", line 472, in get_from_cache
f"Cannot find the requested files in the cached path at {cache_path} and outgoing traffic has been"
FileNotFoundError: Cannot find the requested files in the cached path at /idiap/home/rkarimi/.cache/huggingface/datasets/eaee069e38f6ceaa84de02ad088c34e63ec97671f2cd1910ddb16b10dc60808c and outgoing traffic has been disabled. To enable file online look-ups, set 'local_files_only' to False.
Could you check if it works on the master branch ?
You can use `load_dataset("boolq", script_version="master")` to do so.
We did some changes recently in boolq to remove the TF dependency and we changed the way the data files are downloaded in https://github.com/huggingface/datasets/pull/881 | [
-0.314242512,
-0.129666537,
-0.1398147494,
0.2243655324,
0.0898045152,
0.0106670866,
0.4253871441,
0.3031973839,
0.4457687736,
-0.1245955974,
-0.0860084891,
0.3309849501,
-0.1855682731,
0.4824475944,
0.0417107344,
-0.0254135858,
-0.1236410141,
0.083775565,
-0.0132114785,
-0.0677921101,
-0.433516711,
0.3662594855,
-0.4190508723,
0.1728810817,
-0.1200261563,
-0.276445508,
-0.011230452,
0.235456422,
-0.3227625191,
-0.3402305543,
0.129192695,
0.0399897806,
0.2798754573,
0.1975852996,
-0.0001004217,
0.047427699,
0.413600862,
0.0912818834,
-0.2201257795,
-0.2904615104,
-0.1725927293,
-0.3197635114,
0.1770070791,
-0.1704840511,
-0.0781296492,
-0.0545157269,
-0.0554292612,
0.0769730657,
0.4125249386,
0.4600994587,
0.3143284321,
0.07579799,
0.1170566306,
-0.195151329,
0.193192631,
-0.1626983881,
0.1515528262,
0.2015701532,
0.0419375896,
-0.2938957512,
0.1587521732,
0.2637584805,
-0.1833395809,
-0.2460290194,
0.012176564,
-0.2074026912,
-0.1017386615,
-0.3344746828,
0.2351708263,
0.0141453473,
0.5186156034,
-0.1224102899,
-0.2733828425,
-0.0566846728,
0.1429379135,
-0.1925468445,
0.1893987507,
0.0914989859,
0.0534336828,
-0.0635303482,
0.1850987077,
-0.4896078706,
-0.0376427807,
-0.0354204997,
-0.1383910626,
0.275975287,
-0.1215396896,
0.0518844426,
0.1912807524,
-0.1711804271,
0.1133469567,
0.208026126,
-0.1522891968,
0.1584957242,
-0.5179920197,
0.0358059369,
0.1561288387,
-0.0271784756,
-0.0363991112,
0.1296274215,
-0.1894530803,
0.0187248159,
-0.0917200372,
0.2068093568,
0.0046221782,
0.5135237575,
0.3842210174,
0.2736545205,
0.1583574265,
0.1075287089,
-0.2233472764,
0.034229245,
-0.5201336741,
-0.3621050417,
-0.1302118599,
0.2492165715,
0.2366274446,
-0.0848475173,
-0.3538362682,
-0.1739945114,
-0.3224678636,
-0.1347560883,
0.3432622552,
0.6987861395,
0.0430134945,
-0.1265627742,
0.0525117293,
0.2696886063,
-0.348346889,
-0.0706118494,
-0.2877413332,
0.3017657995,
-0.0307149608,
-0.155474484,
0.2976012528,
-0.16892156,
0.3525424898,
0.0606401712,
-0.249807775,
-0.0990929827,
0.2741260231,
-0.2546375096,
-0.3732598722,
0.2511188388,
0.0047493661,
0.0151634356,
0.2008349448,
0.2303847671,
-0.0411106534,
0.2055431157,
-0.2143663168,
-0.2891749144,
0.0416455343,
0.3372691572,
-0.0229814481,
-0.2775759995,
-0.1418444812,
0.175844416,
0.1150737628,
-0.147282809,
-0.2639816999,
-0.3271437287,
-0.1046771854,
-0.2185692191,
0.3993265927,
0.4546141624,
-0.3941681683,
-0.264450103,
-0.3861934841,
-0.2117396593,
0.0058000172,
0.2955777943,
-0.1370878518,
0.5168119669,
-0.2074036002,
0.0861331373,
0.2646965683,
-0.2111935616,
-0.1844503134,
0.1970261186,
-0.0149663258,
-0.0348745771,
-0.2750918567,
-0.0445284992,
0.1203413904,
0.1673647314,
0.1317072362,
0.141513899,
0.2968439758,
-0.2430087179,
-0.1465200037,
-0.1223875582,
0.0710639507,
0.345780313,
0.2301305681,
-0.0535533205,
-0.0584516153,
-0.4113749862,
0.0685675144,
0.1532152295,
-0.2991674542,
0.1951566488,
0.3404015601,
-0.1151798368,
0.1968043447,
0.0254540071,
-0.3794721365,
0.1544528753,
-0.2339847833,
-0.037833102,
-0.0620960519,
0.1533767432,
-0.3266775012,
0.0734997541,
-0.1862191856,
-0.0524059236,
0.193123579,
-0.1655138284,
-0.0569785759,
0.0857945308,
-0.3088484406,
0.2691079676,
-0.0235378966,
0.134635523,
-0.2137402594,
0.1054311991,
-0.1465706974,
-0.0927518159,
0.2968969643,
0.2993909121,
0.1980738044,
0.0299891829,
-0.0212003645,
0.2432889193,
0.1288769245,
0.1043747142,
-0.0412737168,
-0.5058259368,
0.1112553403,
-0.0384228639,
0.3070514202,
0.1330129504,
0.0742572173,
0.0808736309,
0.0900944695,
0.2717497349,
-0.0859904587,
0.1937265098,
0.1444684267,
0.1817198396,
0.2400856316,
0.029275218,
-0.006894005,
-0.1292018294,
0.4810889065,
-0.0400444679,
-0.0255698785,
0.0285187773,
-0.1477419883,
0.0691428334,
0.4380696118,
0.1077945977,
0.122457549,
0.0266053751,
-0.1225927174,
0.1235342398,
0.117641896,
0.1531545222,
0.2710773349,
0.2076155543,
-0.4852930605,
-0.1021019593,
-0.0421198457,
-0.2693492174,
0.173310712,
-0.1938360631,
0.0288220756,
0.2061608136,
-0.0693072006,
-0.1248021871,
-0.1851714551,
-0.2250051498,
0.0909517407,
0.2774636149,
-0.197366938,
-0.0649486855,
-0.0835351422,
-0.3896839023,
0.1917293072,
-0.1083574444,
-0.0304459911,
-0.35120821,
0.1287217587,
-0.029634906,
-0.0343717858,
0.2476252466,
0.0612641238,
0.3148311079,
0.1070151106,
-0.0850822106,
-0.1364320815,
-0.2685341537,
-0.2265998572,
0.13108477,
0.1870205551,
0.0818484426,
0.2532462776,
-0.0990138575,
0.088372156,
-0.0534894019,
-0.2225490659,
-0.087805666,
-0.09443257,
0.3347642124,
0.1184834242,
0.0666118562,
-0.0564618446,
-0.2238014787,
0.3523496389,
-0.1633936316,
-0.0211879648,
0.1725942492,
0.1716834754,
-0.0578616485,
-0.2205018997,
-0.5058783889,
-0.5898676515,
-0.4911761582,
0.0963694602,
0.0636331365,
0.1966697574,
0.3625309169,
-0.0294896346,
0.1960618347,
0.0712999031,
-0.0495073386,
0.0055858465,
-0.1599077135,
0.2620784044,
-0.065198645,
-0.2783259451,
0.0434394553,
-0.0880052224,
0.4329285026,
-0.2539990246,
-0.3081472516,
0.003639071,
-0.0644264743,
-0.0977024883,
-0.0620605759,
-0.1536532491,
-0.1169781834,
0.0611616485,
0.0138719752,
0.0663509965,
-0.3257703185,
0.2271666974,
0.0191834029,
0.1968749613,
-0.0655775294,
0.3469648063,
-0.3650505245,
0.6071885228,
0.1826375425,
0.1984721124,
0.2066986561,
0.2602954209,
0.0882440582,
0.0225898381,
-0.7111613154,
0.0119960913,
0.1972315907,
-0.1737873107,
0.0223202668,
-0.0742930397,
0.0048977132,
-0.2321588844,
-0.1811945438,
-0.1740100086,
-0.2393469214,
-0.0555001087,
-0.364397347,
0.0228943806,
-0.0218462516,
0.3673845828,
-0.2108634412,
0.0025235587,
0.0858276188,
0.1972027123,
0.1464113146,
-0.0942060798,
-0.5303609967,
-0.5024213791,
-0.3433576822,
0.2414336801,
-0.268049866,
0.239221409,
-0.1371824145,
0.0209191386,
0.1031651646,
-0.1103473231,
0.4958155751,
-0.1310851276,
-0.1198502705,
0.3111155927,
-0.0852033421,
-0.2169434428,
-0.1560444385,
-0.2145743519,
0.2487731874,
0.0919607878,
0.4482042789,
-0.2502596378,
0.0183464363,
0.0149936555,
-0.1805452853,
-0.2933080792,
-0.4980677962,
-0.4371125698,
-0.1474026889,
-0.378598541,
-0.0684283972,
-0.2436528951,
0.2505196035,
-0.2380884886,
-0.017340187,
-0.0446074232,
-0.2353484184,
0.1815396249,
0.1636778265,
0.5122845769,
-0.1921358407,
0.0965681598,
0.0463167988,
0.0618035682,
0.1100911647,
0.3877335191,
-0.1745920032,
-0.259647727,
-0.0316257402,
-0.0194509868,
0.2970834672,
-0.1034843326,
-0.2948685586,
0.3071785271,
-0.0516146719,
0.110249415,
0.0259383377,
0.0147439539,
0.253284961,
0.1661934704,
-0.0491434783,
-0.4161554277,
0.1546283215,
-0.0264267232,
0.0593896285,
0.206332624,
-0.2129348069,
-0.0297330413,
0.2763863802,
-0.064801015,
0.5007889271,
-0.1812510043,
-0.1933795959,
0.3407918513,
0.2175007612,
0.4038964808,
-0.1669143587,
0.2915232182,
-0.5527963042,
-0.019655928,
0.2265730798,
-0.1374718398,
-0.0402738675,
-0.2586252987,
-0.5010085702,
0.2584683597,
-0.1938875914,
0.3548454642,
0.0251687691,
0.2396080494,
-0.1991096735,
0.0686027706,
-0.265285939,
0.1974008232,
-0.1181020439,
0.3159293532,
-0.1748006046,
-0.0673146173,
0.3389050663,
-0.1213416457,
-0.0972985178,
0.3927968442,
-0.133114621,
0.2491983622,
0.1869203746,
-0.0859442726,
0.1371112317,
0.4802417755,
0.0360943489,
0.2273455709,
-0.13513574,
0.0657629743,
-0.0193211101,
-0.0943333954,
-0.1121784821,
0.1603537202,
0.2917368412,
-0.1176794246,
-0.3513067365,
0.4982579648,
-0.0539627746,
0.0808961391,
-0.207749486,
0.0966770872,
-0.0197357498,
-0.2792848647,
-0.0582652166,
-0.0777065828,
0.0835339054,
-0.1127734929,
0.1955122799,
0.1503961831,
-0.0459560975,
0.2849722207,
-0.1004795432,
-0.2767520547,
-0.0368326306,
0.1631648391,
-0.0202607755,
0.2678743601,
0.7444610596,
0.314819783,
-0.0434076712,
-0.4068890512,
-0.1119851694,
0.1022956073,
-0.0354895741,
0.2343207747,
0.2025266141,
-0.0975750089,
0.2175709307,
0.0701929629,
0.0332487375,
-0.0487874188,
-0.0780251473,
-0.4976788163,
-0.2899360657,
0.5084169507,
-0.2384424061,
-0.0717614815,
-0.0226836484,
-0.0233010706,
0.0253999792,
0.1786236316,
-0.412326932,
-0.004747428,
-0.5003216863,
-0.1386015862,
-0.1944637299,
-0.2909422219,
0.1350519806,
0.1839277148,
0.2573775053,
-0.0973944962,
-0.1259429604,
-0.2820374668,
0.0279130172,
0.0186120588,
-0.0506162569,
0.1341327876,
-0.0356099047,
-0.2192931771,
0.0269433148,
0.1245468557,
-0.019082116,
-0.1418264806,
0.0428550504,
0.2309853137,
0.0664211586,
0.1498233378,
-0.104858011,
0.3925113082,
-0.1542079598,
-0.1091765687,
0.0892823562,
0.0404634438,
0.145432353,
0.0041160015,
-0.0036399919,
-0.0570224039,
0.0763985664,
0.0788751245,
0.1567757726,
-0.2010098696,
0.2653389275,
-0.1736502051,
0.0509916693,
0.6181198359,
-0.2227317989,
0.1117154807,
0.0968502462,
0.3101872802,
-0.2278641015,
0.1903334558,
-0.2262137681,
-0.0269353259,
0.0044276183,
0.1368970424,
-0.2643563151,
-0.1858040988,
0.1944197267,
0.1868377179,
0.2378837168,
0.1207541525,
0.0021418515,
0.2828049064,
-0.2137753516,
-0.1657213718,
0.180483669,
0.1804219931,
0.0042539965,
0.3604367673,
-0.2713557482,
-0.0449319221,
0.0594246797,
0.2507368922,
0.1973166764,
-0.3961364031,
-0.142132327,
0.3903947771,
-0.0077802627,
-0.2976874411,
-0.2608271837,
0.4449033141,
-0.104410693,
-0.0567575544,
-0.1178354248,
0.1353801936,
-0.3331620395,
-0.0949437916,
-0.5158820152,
-0.0901945308,
-0.0454394892,
-0.1312886328,
0.0252013542,
0.0420155749,
-0.1148140952,
0.0730805993,
-0.1637791544,
-0.3743665516,
0.2009000331,
0.2530692518,
-0.243772164,
-0.1150778532,
0.3914286196,
0.1533195525,
0.319429189,
0.1970058382,
0.0829287469,
0.3079622388,
0.5380837917,
-0.3283626437,
-0.0000048466,
0.0199084859,
-0.1313575208,
0.0346753262,
0.3137901127,
0.2148801237,
0.39739272,
0.2980230451,
0.242942974,
-0.1719402522,
0.194398433,
0.0471306741,
0.165092811,
0.0040557715,
0.6533152461,
-0.0515632294,
0.0107026752,
-0.2028619945,
-0.0492494144,
-0.5103921294,
-0.0879736319,
0.299931258,
0.2265716195,
0.0560057797,
-0.2306601554,
0.1365998685,
-0.3244097531,
0.4204716682,
0.433408767,
0.4649440348,
-0.414083153,
0.1457709074,
-0.4007867277,
0.0466139838,
0.065860033,
-0.0020460382,
-0.1097383499,
0.0314685963,
-0.0425011031,
-0.0867099464,
0.131940037,
0.0399009474,
0.2227890193,
-0.177465871,
-0.4814171195,
0.1328637004,
0.0461929776,
0.1684634835,
0.0244554486,
-0.1332155466,
0.1925163716,
-0.4258806407,
0.0993289277,
-0.0376956202,
-0.2557369769,
0.1841210872,
-0.2434109598,
0.2420449704,
0.0028272471,
0.2686463296,
0.0102749383,
-0.0241373722,
-0.1938574761,
-0.3289034367,
-0.1430857778,
0.0125012901,
0.3162790537,
0.2012419552,
-0.0406675264,
0.2181181759,
-0.1372946948,
0.167104423,
-0.0101538068,
-0.1750992537,
-0.1615084857,
-0.0480242744,
0.2521773279,
-0.1583051085,
0.0523844622,
0.1459884793,
0.0466806479,
0.1564804763,
-0.4045483172,
-0.069786109,
0.4909422994,
-0.0189437252,
-0.065200001,
-0.0544005819,
0.2422238886,
0.1531121582,
0.0249588676,
-0.3776180148,
0.024550857,
0.3022919595,
-0.0252071545,
0.07761655,
0.3028819263,
0.4011396766,
0.096467711,
-0.0990419164,
-0.2832089067,
0.1615868062,
0.0936067402,
0.0778960437,
0.0205556471
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | > neat feature
I dint get these clearly, can you please elaborate like how to work on these | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 18 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
> neat feature
I dint get these clearly, can you please elaborate like how to work on these | [
-0.2508120239,
-0.2407747656,
-0.0531519279,
0.503803134,
0.242677629,
0.0379794091,
0.4234101176,
0.2302230299,
0.0534565076,
0.012271638,
-0.0213181376,
0.3855957985,
-0.2364186496,
0.4087213278,
-0.073391445,
0.1519470215,
0.0036895594,
0.1174419373,
0.2415752858,
0.1663117409,
-0.0428831093,
0.2773868442,
-0.057136409,
0.1090653241,
-0.1840186417,
0.0136174606,
0.0146283228,
0.3506194353,
-0.0750770867,
-0.508487463,
0.0108171804,
-0.0190765858,
0.4783015251,
0.3833351433,
-0.0001139213,
-0.028652925,
0.3157631755,
0.0450190119,
-0.422922194,
-0.3848214447,
-0.5591982007,
0.1110935137,
0.1526587903,
-0.0374609828,
-0.3507242799,
-0.0653411746,
-0.3116797805,
-0.2656854689,
0.4028450251,
0.6623775959,
0.178203851,
0.1914704293,
-0.0731055662,
-0.3078444898,
0.2821202278,
0.020372944,
0.0018275606,
0.2220327407,
-0.2715071142,
0.1779978126,
0.2951637506,
0.270999521,
-0.4019234776,
0.1139448062,
0.5365952253,
0.0304874368,
0.3513381779,
0.0784728006,
0.1274640113,
0.1705706269,
0.5801001787,
-0.136125803,
-0.4543990493,
-0.1849199533,
-0.2141834348,
-0.282492429,
0.1915265769,
0.0894621387,
0.0374889821,
0.0282423031,
-0.0464703329,
-0.0466800593,
-0.0988202915,
0.2466036379,
0.0339197703,
0.4405599833,
-0.2780038416,
0.0633563548,
0.2615090311,
0.0703384131,
0.3421870768,
-0.1132722348,
0.0181239415,
0.0466640554,
-0.2519854009,
0.1674025059,
-0.0153580746,
0.2122866064,
-0.0699797496,
0.1938644201,
0.3034310043,
-0.0739919171,
0.3996637464,
0.2401907295,
0.3883313537,
-0.1680296659,
0.0913827047,
0.0003887896,
-0.0994112715,
0.4869205952,
0.0785982013,
-0.1934863329,
-0.3133123219,
-0.5367279053,
0.1240956038,
0.26881814,
0.3971947134,
-0.3510358036,
-0.2658776045,
-0.0860201418,
-0.1192131862,
-0.1965767741,
0.2694830596,
0.4972229898,
-0.3471300006,
-0.1139851362,
-0.117971167,
0.2110882849,
-0.2143540531,
0.0854032934,
-0.1983183771,
0.2434528023,
-0.3190573752,
0.0227509756,
0.1486800015,
-0.5799325705,
0.5168523192,
-0.0738640502,
0.0051263194,
-0.3440084159,
0.1492901444,
-0.2164645791,
0.177761659,
0.1814397275,
0.1935321689,
0.2570755482,
-0.0537815392,
-0.0760162771,
-0.1820332855,
0.0855755582,
-0.1849054843,
-0.479770869,
0.0412795767,
0.2240626961,
-0.2657831907,
-0.1602721363,
-0.0594209917,
-0.1859488189,
0.2781680822,
-0.0984314457,
-0.3886997104,
0.0453321859,
-0.1181020439,
-0.220781222,
0.4690742791,
0.3192172945,
-0.3537426293,
0.1085963696,
-0.4716525674,
0.1138472706,
0.0835105702,
0.2105171382,
-0.3659239113,
0.44895944,
-0.3048421741,
0.132893756,
0.5610041618,
-0.2565936446,
0.0060540354,
0.0853613913,
-0.0421511047,
-0.1606776565,
0.1342203468,
-0.063041538,
-0.1340705603,
-0.1085646749,
0.0167824961,
0.3441396654,
0.0382881239,
0.0388525389,
-0.1566990167,
-0.0247691069,
0.1257413179,
0.2443983406,
0.1100836396,
-0.0220542811,
-0.037371058,
-0.1964022666,
-0.0556681119,
-0.1184008718,
-0.0434881337,
0.4679804146,
0.2733067274,
0.3011100888,
-0.0028269668,
0.151649937,
-0.2742569149,
0.1333040148,
0.0448953696,
-0.277271688,
-0.0668592453,
0.0106649278,
-0.2895233929,
0.0034127384,
-0.4520741403,
0.0989072993,
0.1053080484,
0.3138041794,
0.2326270342,
-0.0971177518,
-0.1190225929,
-0.3059856594,
0.3305367529,
-0.0151231829,
-0.3088081479,
0.1135314554,
-0.405138433,
-0.0548964813,
0.086904034,
0.043993637,
0.1716849506,
0.117635712,
0.0150822662,
0.1787702143,
0.1243599877,
0.227449581,
-0.2144690305,
0.1562109143,
-0.1199653596,
0.0306926258,
0.1797364056,
-0.1334499121,
0.135618493,
0.0835731253,
-0.0444402322,
0.4771926701,
-0.0267101228,
0.1894396394,
0.1397074908,
0.015092548,
0.2696096897,
-0.1694879383,
-0.0204154309,
-0.1353713572,
0.0476755649,
-0.1200016439,
0.1146694496,
0.0762753785,
-0.0729277357,
-0.1295491904,
0.3834596276,
0.0959831476,
-0.0108044818,
-0.2696373463,
-0.2296589613,
-0.1449697912,
0.0653626025,
0.4955293536,
0.3665238023,
0.2210590094,
0.0965471342,
-0.0355797336,
-0.053980913,
-0.1855221093,
0.2379353791,
0.423758626,
0.4380970895,
0.3556295931,
-0.3781281412,
-0.0747242719,
-0.2402071655,
-0.1607343704,
0.1642103195,
0.282250762,
-0.4002408981,
0.1890036017,
-0.0598931499,
-0.1696403176,
-0.2982714772,
-0.354865402,
-0.1032037139,
-0.2554684579,
-0.1192266941,
0.2769101858,
-0.2668560445,
-0.0272913184,
0.0960364565,
0.0128378617,
-0.0740059018,
-0.0552991815,
-0.3418391645,
-0.2471805066,
-0.170404911,
0.0550117567,
0.2183093727,
0.0958848894,
0.2658966184,
-0.1865488142,
0.1083012745,
-0.4633398056,
-0.0825943574,
-0.017645603,
-0.00809744,
0.302495122,
0.2742293179,
0.0802076086,
0.2997994721,
-0.246578306,
0.465375483,
-0.0120982472,
0.020435391,
0.2364754528,
-0.0213384405,
-0.1121435761,
-0.0333960205,
-0.3809586167,
0.069973059,
-0.4534810483,
-0.3755662739,
0.0112920757,
0.1440522224,
0.2753454149,
0.3328948319,
0.2299250364,
-0.2099560201,
0.3361962736,
-0.2096321285,
-0.2037050128,
0.1267782003,
-0.2523743808,
-0.2639803886,
0.330471158,
-0.0450137146,
0.8056795597,
-0.1035315022,
-0.2581114471,
-0.0281819236,
0.054154899,
-0.313547641,
-0.1422800869,
-0.2467392087,
0.3080141544,
0.2088037729,
-0.0856468678,
-0.00781768,
-0.3258493245,
0.0911114514,
-0.2148194611,
0.2122523338,
-0.2017768919,
0.8904486299,
-0.005194304,
0.4429089427,
0.1470212191,
-0.2118463069,
0.4529938102,
-0.106380254,
0.1824466288,
-0.104823485,
-0.2602484226,
-0.1180830747,
0.1664526463,
-0.2900656164,
0.1482967436,
-0.2593996823,
-0.0632347241,
-0.2945417166,
0.0631955341,
-0.3335377276,
-0.2166405469,
0.0108936122,
-0.2646001279,
0.1334774345,
-0.1084317863,
0.0371413603,
-0.0522481203,
0.1782281846,
0.1964564323,
0.27402547,
0.179841131,
-0.0360956378,
-0.2892716527,
-0.0228561442,
-0.3024624884,
0.3309326172,
-0.0449293703,
0.1445601135,
-0.1725996435,
-0.2284810841,
0.108591482,
-0.2120635062,
0.5687654018,
-0.288608104,
0.0759903938,
0.256681025,
-0.1874073744,
-0.4711459875,
-0.2658158541,
-0.0675032884,
0.2460009456,
0.0289377607,
0.4087799788,
-0.1191498488,
-0.4835370779,
0.1473180205,
-0.0567419343,
-0.0862192139,
-0.2047349066,
-0.347964406,
-0.1231661215,
-0.3823906481,
-0.0772972107,
-0.0697869286,
0.34709993,
0.0993614122,
-0.2050060034,
0.0540419556,
0.0844746456,
0.026174657,
-0.0463367775,
0.472672075,
0.033060465,
0.2310326695,
0.272346288,
0.3769769967,
0.1094539538,
0.3990898132,
0.2031018287,
-0.4686417282,
-0.1039526761,
0.0307145175,
0.4628866613,
-0.0234796386,
-0.1841690391,
0.105656974,
0.1430650949,
0.1544752419,
-0.1691707522,
0.1093408838,
0.4040111601,
0.0435306467,
-0.3053804338,
-0.5429390073,
-0.0136748273,
0.0826764479,
0.0919226408,
-0.0626313612,
-0.320395112,
-0.2080416977,
0.2609346807,
0.4015892446,
0.6901730895,
-0.0723920986,
0.2966907918,
0.5587425232,
0.0910604298,
0.0016884506,
0.2774416208,
-0.1042706966,
-0.5139324665,
0.1954909712,
0.0833372399,
-0.1815755665,
-0.0093928548,
0.2339336723,
-0.1757297814,
0.2052434683,
-0.219678551,
0.0933762267,
-0.1733642668,
0.1602140218,
-0.1688348651,
-0.0502106808,
-0.1218758449,
0.0497321635,
-0.0692729354,
0.0820501298,
-0.1036421284,
-0.2097410858,
0.0337742157,
-0.2309394777,
0.0748144314,
0.2753438056,
0.0081002135,
0.0343262553,
-0.2805510163,
-0.1951714903,
0.1213370785,
0.2447197884,
0.3164098561,
0.0351310372,
-0.0893451646,
0.101099357,
-0.3682294786,
-0.2763565481,
-0.2608575821,
-0.0956430286,
0.184987098,
-0.2108018249,
-0.0499804318,
0.124062553,
-0.0613715164,
-0.3762873709,
-0.0335861295,
-0.0350456983,
0.2754875422,
-0.4317030907,
-0.2545202374,
-0.1319119632,
-0.1161126718,
-0.1919200718,
0.1608151197,
0.2287707329,
-0.1201415956,
0.0152175557,
-0.1504314095,
-0.2745188177,
0.0584028959,
0.5248116255,
-0.1016796306,
0.1521697938,
0.6307945848,
0.0710354224,
-0.1138498411,
-0.2894232273,
-0.2996491194,
0.0183574408,
-0.2909432352,
0.1833908111,
0.2434942126,
-0.0689216256,
0.2441022843,
0.3077547252,
0.1714058071,
-0.0989842564,
-0.0508269295,
-0.5483649969,
-0.0284050573,
0.0474093482,
-0.1534882635,
0.3620048463,
0.1767352223,
-0.3220783174,
-0.0817598701,
-0.1770444363,
-0.2993301153,
0.0011036806,
-0.1198001057,
0.2405625135,
-0.2157945484,
-0.2780374885,
0.2113569081,
0.0620970987,
0.1622254401,
-0.3558203578,
-0.0777115896,
-0.2533759475,
-0.0681321323,
0.1221703812,
0.1441824883,
0.0095418552,
0.1336416006,
-0.1444761455,
-0.3320430517,
-0.1306844205,
0.0670905337,
0.1010916233,
-0.0039908797,
0.2840559781,
0.0924804807,
0.0219094958,
-0.1482168436,
-0.1065013483,
-0.199454248,
-0.1743006855,
0.0085590398,
0.2015721798,
-0.1814143062,
-0.2146723419,
0.0438419022,
0.0030675931,
0.0793969631,
0.0792411789,
0.3128162026,
-0.4647561312,
0.0515679531,
0.1602490246,
0.5055224895,
0.3906167448,
-0.0799036771,
0.2140353173,
0.3118721545,
0.238157928,
-0.1135246158,
-0.2740479708,
-0.1960723549,
-0.2340989262,
-0.0069742477,
-0.0698654875,
-0.0677563623,
0.0582613088,
0.2001819909,
-0.0457283407,
0.1784251481,
0.1480000764,
0.1270187497,
0.2794733644,
-0.3211748004,
0.0406146049,
0.2804034054,
0.1732444316,
0.1449830681,
0.3777579069,
-0.155561924,
0.1443802565,
-0.2752651572,
0.1954729408,
-0.1280411631,
-0.6779034138,
0.1011460274,
0.0413990989,
-0.0967221558,
-0.0895922408,
-0.1370328218,
0.328610599,
0.031060962,
0.0625447333,
-0.3678520918,
0.083988525,
-0.146653071,
-0.0880458355,
-0.3406415284,
0.0076262462,
-0.0325514041,
0.1551522911,
0.1516608,
-0.0349880047,
-0.0857884064,
0.087555252,
-0.0400349051,
-0.0436643362,
0.0709550157,
0.3961868882,
-0.2319028229,
-0.4020037055,
0.1886534542,
-0.1219384372,
-0.0789997056,
0.0003443246,
0.0715054423,
0.5281402469,
0.3324437141,
0.1592496336,
0.0043609194,
-0.0478784665,
-0.1837077439,
-0.053014677,
0.0596840233,
0.168232128,
0.3104562759,
0.4630704522,
0.1703826487,
-0.1467408538,
0.1241713837,
-0.1453257352,
0.320807457,
-0.0304010976,
0.1715202481,
0.1750356257,
-0.2403035462,
-0.2071764618,
0.2140192688,
-0.5623787642,
-0.2455458194,
0.3704135418,
0.0733888894,
0.0577129461,
-0.1164957657,
0.059036959,
0.1694279909,
0.5225658417,
0.1972418427,
0.3079322875,
-0.4567182362,
-0.0008988748,
-0.5817424059,
-0.0127124181,
0.1645325124,
0.2716319859,
0.1598727554,
0.1856327355,
-0.2448570281,
-0.0757828504,
0.2462040484,
0.2971826494,
0.1082025245,
0.2338157147,
-0.1574129313,
-0.1347533315,
0.1514977068,
-0.1274894923,
0.0899901316,
-0.1791541129,
0.0747643262,
-0.047213681,
0.0362292193,
-0.2751495838,
0.0237009134,
0.0012947904,
-0.1667187661,
0.5104473829,
-0.2578531206,
0.4464896023,
-0.0321036242,
0.1099808365,
-0.4661690891,
0.0489511788,
-0.149584651,
0.1149456576,
0.0738410726,
0.2687283456,
-0.0252669789,
0.3849053085,
-0.4096692204,
0.2747507393,
-0.1608556658,
-0.3426372111,
-0.0414932482,
0.1178343743,
0.0767926872,
0.3193475604,
0.0821501687,
-0.0379418992,
0.0348787792,
0.0631609559,
-0.5235247612,
-0.2149446011,
0.6017241478,
-0.439919889,
-0.048564598,
-0.007045777,
0.2270692587,
0.1117745116,
-0.1416445225,
-0.4197170734,
0.1078706607,
0.2636763752,
0.1084363237,
-0.0447178409,
0.3393389285,
0.2886269391,
0.1458837688,
-0.0916725025,
0.1939832866,
0.1492438167,
-0.1321776062,
-0.1302172691,
-0.3663119376
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | It could maybe work almost out of the box just by using `cached_path` in the text/csv/json scripts, no? | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 18 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
It could maybe work almost out of the box just by using `cached_path` in the text/csv/json scripts, no? | [
-0.2508120239,
-0.2407747656,
-0.0531519279,
0.503803134,
0.242677629,
0.0379794091,
0.4234101176,
0.2302230299,
0.0534565076,
0.012271638,
-0.0213181376,
0.3855957985,
-0.2364186496,
0.4087213278,
-0.073391445,
0.1519470215,
0.0036895594,
0.1174419373,
0.2415752858,
0.1663117409,
-0.0428831093,
0.2773868442,
-0.057136409,
0.1090653241,
-0.1840186417,
0.0136174606,
0.0146283228,
0.3506194353,
-0.0750770867,
-0.508487463,
0.0108171804,
-0.0190765858,
0.4783015251,
0.3833351433,
-0.0001139213,
-0.028652925,
0.3157631755,
0.0450190119,
-0.422922194,
-0.3848214447,
-0.5591982007,
0.1110935137,
0.1526587903,
-0.0374609828,
-0.3507242799,
-0.0653411746,
-0.3116797805,
-0.2656854689,
0.4028450251,
0.6623775959,
0.178203851,
0.1914704293,
-0.0731055662,
-0.3078444898,
0.2821202278,
0.020372944,
0.0018275606,
0.2220327407,
-0.2715071142,
0.1779978126,
0.2951637506,
0.270999521,
-0.4019234776,
0.1139448062,
0.5365952253,
0.0304874368,
0.3513381779,
0.0784728006,
0.1274640113,
0.1705706269,
0.5801001787,
-0.136125803,
-0.4543990493,
-0.1849199533,
-0.2141834348,
-0.282492429,
0.1915265769,
0.0894621387,
0.0374889821,
0.0282423031,
-0.0464703329,
-0.0466800593,
-0.0988202915,
0.2466036379,
0.0339197703,
0.4405599833,
-0.2780038416,
0.0633563548,
0.2615090311,
0.0703384131,
0.3421870768,
-0.1132722348,
0.0181239415,
0.0466640554,
-0.2519854009,
0.1674025059,
-0.0153580746,
0.2122866064,
-0.0699797496,
0.1938644201,
0.3034310043,
-0.0739919171,
0.3996637464,
0.2401907295,
0.3883313537,
-0.1680296659,
0.0913827047,
0.0003887896,
-0.0994112715,
0.4869205952,
0.0785982013,
-0.1934863329,
-0.3133123219,
-0.5367279053,
0.1240956038,
0.26881814,
0.3971947134,
-0.3510358036,
-0.2658776045,
-0.0860201418,
-0.1192131862,
-0.1965767741,
0.2694830596,
0.4972229898,
-0.3471300006,
-0.1139851362,
-0.117971167,
0.2110882849,
-0.2143540531,
0.0854032934,
-0.1983183771,
0.2434528023,
-0.3190573752,
0.0227509756,
0.1486800015,
-0.5799325705,
0.5168523192,
-0.0738640502,
0.0051263194,
-0.3440084159,
0.1492901444,
-0.2164645791,
0.177761659,
0.1814397275,
0.1935321689,
0.2570755482,
-0.0537815392,
-0.0760162771,
-0.1820332855,
0.0855755582,
-0.1849054843,
-0.479770869,
0.0412795767,
0.2240626961,
-0.2657831907,
-0.1602721363,
-0.0594209917,
-0.1859488189,
0.2781680822,
-0.0984314457,
-0.3886997104,
0.0453321859,
-0.1181020439,
-0.220781222,
0.4690742791,
0.3192172945,
-0.3537426293,
0.1085963696,
-0.4716525674,
0.1138472706,
0.0835105702,
0.2105171382,
-0.3659239113,
0.44895944,
-0.3048421741,
0.132893756,
0.5610041618,
-0.2565936446,
0.0060540354,
0.0853613913,
-0.0421511047,
-0.1606776565,
0.1342203468,
-0.063041538,
-0.1340705603,
-0.1085646749,
0.0167824961,
0.3441396654,
0.0382881239,
0.0388525389,
-0.1566990167,
-0.0247691069,
0.1257413179,
0.2443983406,
0.1100836396,
-0.0220542811,
-0.037371058,
-0.1964022666,
-0.0556681119,
-0.1184008718,
-0.0434881337,
0.4679804146,
0.2733067274,
0.3011100888,
-0.0028269668,
0.151649937,
-0.2742569149,
0.1333040148,
0.0448953696,
-0.277271688,
-0.0668592453,
0.0106649278,
-0.2895233929,
0.0034127384,
-0.4520741403,
0.0989072993,
0.1053080484,
0.3138041794,
0.2326270342,
-0.0971177518,
-0.1190225929,
-0.3059856594,
0.3305367529,
-0.0151231829,
-0.3088081479,
0.1135314554,
-0.405138433,
-0.0548964813,
0.086904034,
0.043993637,
0.1716849506,
0.117635712,
0.0150822662,
0.1787702143,
0.1243599877,
0.227449581,
-0.2144690305,
0.1562109143,
-0.1199653596,
0.0306926258,
0.1797364056,
-0.1334499121,
0.135618493,
0.0835731253,
-0.0444402322,
0.4771926701,
-0.0267101228,
0.1894396394,
0.1397074908,
0.015092548,
0.2696096897,
-0.1694879383,
-0.0204154309,
-0.1353713572,
0.0476755649,
-0.1200016439,
0.1146694496,
0.0762753785,
-0.0729277357,
-0.1295491904,
0.3834596276,
0.0959831476,
-0.0108044818,
-0.2696373463,
-0.2296589613,
-0.1449697912,
0.0653626025,
0.4955293536,
0.3665238023,
0.2210590094,
0.0965471342,
-0.0355797336,
-0.053980913,
-0.1855221093,
0.2379353791,
0.423758626,
0.4380970895,
0.3556295931,
-0.3781281412,
-0.0747242719,
-0.2402071655,
-0.1607343704,
0.1642103195,
0.282250762,
-0.4002408981,
0.1890036017,
-0.0598931499,
-0.1696403176,
-0.2982714772,
-0.354865402,
-0.1032037139,
-0.2554684579,
-0.1192266941,
0.2769101858,
-0.2668560445,
-0.0272913184,
0.0960364565,
0.0128378617,
-0.0740059018,
-0.0552991815,
-0.3418391645,
-0.2471805066,
-0.170404911,
0.0550117567,
0.2183093727,
0.0958848894,
0.2658966184,
-0.1865488142,
0.1083012745,
-0.4633398056,
-0.0825943574,
-0.017645603,
-0.00809744,
0.302495122,
0.2742293179,
0.0802076086,
0.2997994721,
-0.246578306,
0.465375483,
-0.0120982472,
0.020435391,
0.2364754528,
-0.0213384405,
-0.1121435761,
-0.0333960205,
-0.3809586167,
0.069973059,
-0.4534810483,
-0.3755662739,
0.0112920757,
0.1440522224,
0.2753454149,
0.3328948319,
0.2299250364,
-0.2099560201,
0.3361962736,
-0.2096321285,
-0.2037050128,
0.1267782003,
-0.2523743808,
-0.2639803886,
0.330471158,
-0.0450137146,
0.8056795597,
-0.1035315022,
-0.2581114471,
-0.0281819236,
0.054154899,
-0.313547641,
-0.1422800869,
-0.2467392087,
0.3080141544,
0.2088037729,
-0.0856468678,
-0.00781768,
-0.3258493245,
0.0911114514,
-0.2148194611,
0.2122523338,
-0.2017768919,
0.8904486299,
-0.005194304,
0.4429089427,
0.1470212191,
-0.2118463069,
0.4529938102,
-0.106380254,
0.1824466288,
-0.104823485,
-0.2602484226,
-0.1180830747,
0.1664526463,
-0.2900656164,
0.1482967436,
-0.2593996823,
-0.0632347241,
-0.2945417166,
0.0631955341,
-0.3335377276,
-0.2166405469,
0.0108936122,
-0.2646001279,
0.1334774345,
-0.1084317863,
0.0371413603,
-0.0522481203,
0.1782281846,
0.1964564323,
0.27402547,
0.179841131,
-0.0360956378,
-0.2892716527,
-0.0228561442,
-0.3024624884,
0.3309326172,
-0.0449293703,
0.1445601135,
-0.1725996435,
-0.2284810841,
0.108591482,
-0.2120635062,
0.5687654018,
-0.288608104,
0.0759903938,
0.256681025,
-0.1874073744,
-0.4711459875,
-0.2658158541,
-0.0675032884,
0.2460009456,
0.0289377607,
0.4087799788,
-0.1191498488,
-0.4835370779,
0.1473180205,
-0.0567419343,
-0.0862192139,
-0.2047349066,
-0.347964406,
-0.1231661215,
-0.3823906481,
-0.0772972107,
-0.0697869286,
0.34709993,
0.0993614122,
-0.2050060034,
0.0540419556,
0.0844746456,
0.026174657,
-0.0463367775,
0.472672075,
0.033060465,
0.2310326695,
0.272346288,
0.3769769967,
0.1094539538,
0.3990898132,
0.2031018287,
-0.4686417282,
-0.1039526761,
0.0307145175,
0.4628866613,
-0.0234796386,
-0.1841690391,
0.105656974,
0.1430650949,
0.1544752419,
-0.1691707522,
0.1093408838,
0.4040111601,
0.0435306467,
-0.3053804338,
-0.5429390073,
-0.0136748273,
0.0826764479,
0.0919226408,
-0.0626313612,
-0.320395112,
-0.2080416977,
0.2609346807,
0.4015892446,
0.6901730895,
-0.0723920986,
0.2966907918,
0.5587425232,
0.0910604298,
0.0016884506,
0.2774416208,
-0.1042706966,
-0.5139324665,
0.1954909712,
0.0833372399,
-0.1815755665,
-0.0093928548,
0.2339336723,
-0.1757297814,
0.2052434683,
-0.219678551,
0.0933762267,
-0.1733642668,
0.1602140218,
-0.1688348651,
-0.0502106808,
-0.1218758449,
0.0497321635,
-0.0692729354,
0.0820501298,
-0.1036421284,
-0.2097410858,
0.0337742157,
-0.2309394777,
0.0748144314,
0.2753438056,
0.0081002135,
0.0343262553,
-0.2805510163,
-0.1951714903,
0.1213370785,
0.2447197884,
0.3164098561,
0.0351310372,
-0.0893451646,
0.101099357,
-0.3682294786,
-0.2763565481,
-0.2608575821,
-0.0956430286,
0.184987098,
-0.2108018249,
-0.0499804318,
0.124062553,
-0.0613715164,
-0.3762873709,
-0.0335861295,
-0.0350456983,
0.2754875422,
-0.4317030907,
-0.2545202374,
-0.1319119632,
-0.1161126718,
-0.1919200718,
0.1608151197,
0.2287707329,
-0.1201415956,
0.0152175557,
-0.1504314095,
-0.2745188177,
0.0584028959,
0.5248116255,
-0.1016796306,
0.1521697938,
0.6307945848,
0.0710354224,
-0.1138498411,
-0.2894232273,
-0.2996491194,
0.0183574408,
-0.2909432352,
0.1833908111,
0.2434942126,
-0.0689216256,
0.2441022843,
0.3077547252,
0.1714058071,
-0.0989842564,
-0.0508269295,
-0.5483649969,
-0.0284050573,
0.0474093482,
-0.1534882635,
0.3620048463,
0.1767352223,
-0.3220783174,
-0.0817598701,
-0.1770444363,
-0.2993301153,
0.0011036806,
-0.1198001057,
0.2405625135,
-0.2157945484,
-0.2780374885,
0.2113569081,
0.0620970987,
0.1622254401,
-0.3558203578,
-0.0777115896,
-0.2533759475,
-0.0681321323,
0.1221703812,
0.1441824883,
0.0095418552,
0.1336416006,
-0.1444761455,
-0.3320430517,
-0.1306844205,
0.0670905337,
0.1010916233,
-0.0039908797,
0.2840559781,
0.0924804807,
0.0219094958,
-0.1482168436,
-0.1065013483,
-0.199454248,
-0.1743006855,
0.0085590398,
0.2015721798,
-0.1814143062,
-0.2146723419,
0.0438419022,
0.0030675931,
0.0793969631,
0.0792411789,
0.3128162026,
-0.4647561312,
0.0515679531,
0.1602490246,
0.5055224895,
0.3906167448,
-0.0799036771,
0.2140353173,
0.3118721545,
0.238157928,
-0.1135246158,
-0.2740479708,
-0.1960723549,
-0.2340989262,
-0.0069742477,
-0.0698654875,
-0.0677563623,
0.0582613088,
0.2001819909,
-0.0457283407,
0.1784251481,
0.1480000764,
0.1270187497,
0.2794733644,
-0.3211748004,
0.0406146049,
0.2804034054,
0.1732444316,
0.1449830681,
0.3777579069,
-0.155561924,
0.1443802565,
-0.2752651572,
0.1954729408,
-0.1280411631,
-0.6779034138,
0.1011460274,
0.0413990989,
-0.0967221558,
-0.0895922408,
-0.1370328218,
0.328610599,
0.031060962,
0.0625447333,
-0.3678520918,
0.083988525,
-0.146653071,
-0.0880458355,
-0.3406415284,
0.0076262462,
-0.0325514041,
0.1551522911,
0.1516608,
-0.0349880047,
-0.0857884064,
0.087555252,
-0.0400349051,
-0.0436643362,
0.0709550157,
0.3961868882,
-0.2319028229,
-0.4020037055,
0.1886534542,
-0.1219384372,
-0.0789997056,
0.0003443246,
0.0715054423,
0.5281402469,
0.3324437141,
0.1592496336,
0.0043609194,
-0.0478784665,
-0.1837077439,
-0.053014677,
0.0596840233,
0.168232128,
0.3104562759,
0.4630704522,
0.1703826487,
-0.1467408538,
0.1241713837,
-0.1453257352,
0.320807457,
-0.0304010976,
0.1715202481,
0.1750356257,
-0.2403035462,
-0.2071764618,
0.2140192688,
-0.5623787642,
-0.2455458194,
0.3704135418,
0.0733888894,
0.0577129461,
-0.1164957657,
0.059036959,
0.1694279909,
0.5225658417,
0.1972418427,
0.3079322875,
-0.4567182362,
-0.0008988748,
-0.5817424059,
-0.0127124181,
0.1645325124,
0.2716319859,
0.1598727554,
0.1856327355,
-0.2448570281,
-0.0757828504,
0.2462040484,
0.2971826494,
0.1082025245,
0.2338157147,
-0.1574129313,
-0.1347533315,
0.1514977068,
-0.1274894923,
0.0899901316,
-0.1791541129,
0.0747643262,
-0.047213681,
0.0362292193,
-0.2751495838,
0.0237009134,
0.0012947904,
-0.1667187661,
0.5104473829,
-0.2578531206,
0.4464896023,
-0.0321036242,
0.1099808365,
-0.4661690891,
0.0489511788,
-0.149584651,
0.1149456576,
0.0738410726,
0.2687283456,
-0.0252669789,
0.3849053085,
-0.4096692204,
0.2747507393,
-0.1608556658,
-0.3426372111,
-0.0414932482,
0.1178343743,
0.0767926872,
0.3193475604,
0.0821501687,
-0.0379418992,
0.0348787792,
0.0631609559,
-0.5235247612,
-0.2149446011,
0.6017241478,
-0.439919889,
-0.048564598,
-0.007045777,
0.2270692587,
0.1117745116,
-0.1416445225,
-0.4197170734,
0.1078706607,
0.2636763752,
0.1084363237,
-0.0447178409,
0.3393389285,
0.2886269391,
0.1458837688,
-0.0916725025,
0.1939832866,
0.1492438167,
-0.1321776062,
-0.1302172691,
-0.3663119376
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | Thanks thomwolf and julien-c
I'm still confusion on what you guys said,
I have solved the problem as follows:
1. read the csv file using pandas from s3
2. Convert to dictionary key as column name and values as list column data
3. convert it to Dataset using
`from datasets import Dataset`
`train_dataset = Dataset.from_dict(train_dict)` | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 55 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
Thanks thomwolf and julien-c
I'm still confusion on what you guys said,
I have solved the problem as follows:
1. read the csv file using pandas from s3
2. Convert to dictionary key as column name and values as list column data
3. convert it to Dataset using
`from datasets import Dataset`
`train_dataset = Dataset.from_dict(train_dict)` | [
-0.2508120239,
-0.2407747656,
-0.0531519279,
0.503803134,
0.242677629,
0.0379794091,
0.4234101176,
0.2302230299,
0.0534565076,
0.012271638,
-0.0213181376,
0.3855957985,
-0.2364186496,
0.4087213278,
-0.073391445,
0.1519470215,
0.0036895594,
0.1174419373,
0.2415752858,
0.1663117409,
-0.0428831093,
0.2773868442,
-0.057136409,
0.1090653241,
-0.1840186417,
0.0136174606,
0.0146283228,
0.3506194353,
-0.0750770867,
-0.508487463,
0.0108171804,
-0.0190765858,
0.4783015251,
0.3833351433,
-0.0001139213,
-0.028652925,
0.3157631755,
0.0450190119,
-0.422922194,
-0.3848214447,
-0.5591982007,
0.1110935137,
0.1526587903,
-0.0374609828,
-0.3507242799,
-0.0653411746,
-0.3116797805,
-0.2656854689,
0.4028450251,
0.6623775959,
0.178203851,
0.1914704293,
-0.0731055662,
-0.3078444898,
0.2821202278,
0.020372944,
0.0018275606,
0.2220327407,
-0.2715071142,
0.1779978126,
0.2951637506,
0.270999521,
-0.4019234776,
0.1139448062,
0.5365952253,
0.0304874368,
0.3513381779,
0.0784728006,
0.1274640113,
0.1705706269,
0.5801001787,
-0.136125803,
-0.4543990493,
-0.1849199533,
-0.2141834348,
-0.282492429,
0.1915265769,
0.0894621387,
0.0374889821,
0.0282423031,
-0.0464703329,
-0.0466800593,
-0.0988202915,
0.2466036379,
0.0339197703,
0.4405599833,
-0.2780038416,
0.0633563548,
0.2615090311,
0.0703384131,
0.3421870768,
-0.1132722348,
0.0181239415,
0.0466640554,
-0.2519854009,
0.1674025059,
-0.0153580746,
0.2122866064,
-0.0699797496,
0.1938644201,
0.3034310043,
-0.0739919171,
0.3996637464,
0.2401907295,
0.3883313537,
-0.1680296659,
0.0913827047,
0.0003887896,
-0.0994112715,
0.4869205952,
0.0785982013,
-0.1934863329,
-0.3133123219,
-0.5367279053,
0.1240956038,
0.26881814,
0.3971947134,
-0.3510358036,
-0.2658776045,
-0.0860201418,
-0.1192131862,
-0.1965767741,
0.2694830596,
0.4972229898,
-0.3471300006,
-0.1139851362,
-0.117971167,
0.2110882849,
-0.2143540531,
0.0854032934,
-0.1983183771,
0.2434528023,
-0.3190573752,
0.0227509756,
0.1486800015,
-0.5799325705,
0.5168523192,
-0.0738640502,
0.0051263194,
-0.3440084159,
0.1492901444,
-0.2164645791,
0.177761659,
0.1814397275,
0.1935321689,
0.2570755482,
-0.0537815392,
-0.0760162771,
-0.1820332855,
0.0855755582,
-0.1849054843,
-0.479770869,
0.0412795767,
0.2240626961,
-0.2657831907,
-0.1602721363,
-0.0594209917,
-0.1859488189,
0.2781680822,
-0.0984314457,
-0.3886997104,
0.0453321859,
-0.1181020439,
-0.220781222,
0.4690742791,
0.3192172945,
-0.3537426293,
0.1085963696,
-0.4716525674,
0.1138472706,
0.0835105702,
0.2105171382,
-0.3659239113,
0.44895944,
-0.3048421741,
0.132893756,
0.5610041618,
-0.2565936446,
0.0060540354,
0.0853613913,
-0.0421511047,
-0.1606776565,
0.1342203468,
-0.063041538,
-0.1340705603,
-0.1085646749,
0.0167824961,
0.3441396654,
0.0382881239,
0.0388525389,
-0.1566990167,
-0.0247691069,
0.1257413179,
0.2443983406,
0.1100836396,
-0.0220542811,
-0.037371058,
-0.1964022666,
-0.0556681119,
-0.1184008718,
-0.0434881337,
0.4679804146,
0.2733067274,
0.3011100888,
-0.0028269668,
0.151649937,
-0.2742569149,
0.1333040148,
0.0448953696,
-0.277271688,
-0.0668592453,
0.0106649278,
-0.2895233929,
0.0034127384,
-0.4520741403,
0.0989072993,
0.1053080484,
0.3138041794,
0.2326270342,
-0.0971177518,
-0.1190225929,
-0.3059856594,
0.3305367529,
-0.0151231829,
-0.3088081479,
0.1135314554,
-0.405138433,
-0.0548964813,
0.086904034,
0.043993637,
0.1716849506,
0.117635712,
0.0150822662,
0.1787702143,
0.1243599877,
0.227449581,
-0.2144690305,
0.1562109143,
-0.1199653596,
0.0306926258,
0.1797364056,
-0.1334499121,
0.135618493,
0.0835731253,
-0.0444402322,
0.4771926701,
-0.0267101228,
0.1894396394,
0.1397074908,
0.015092548,
0.2696096897,
-0.1694879383,
-0.0204154309,
-0.1353713572,
0.0476755649,
-0.1200016439,
0.1146694496,
0.0762753785,
-0.0729277357,
-0.1295491904,
0.3834596276,
0.0959831476,
-0.0108044818,
-0.2696373463,
-0.2296589613,
-0.1449697912,
0.0653626025,
0.4955293536,
0.3665238023,
0.2210590094,
0.0965471342,
-0.0355797336,
-0.053980913,
-0.1855221093,
0.2379353791,
0.423758626,
0.4380970895,
0.3556295931,
-0.3781281412,
-0.0747242719,
-0.2402071655,
-0.1607343704,
0.1642103195,
0.282250762,
-0.4002408981,
0.1890036017,
-0.0598931499,
-0.1696403176,
-0.2982714772,
-0.354865402,
-0.1032037139,
-0.2554684579,
-0.1192266941,
0.2769101858,
-0.2668560445,
-0.0272913184,
0.0960364565,
0.0128378617,
-0.0740059018,
-0.0552991815,
-0.3418391645,
-0.2471805066,
-0.170404911,
0.0550117567,
0.2183093727,
0.0958848894,
0.2658966184,
-0.1865488142,
0.1083012745,
-0.4633398056,
-0.0825943574,
-0.017645603,
-0.00809744,
0.302495122,
0.2742293179,
0.0802076086,
0.2997994721,
-0.246578306,
0.465375483,
-0.0120982472,
0.020435391,
0.2364754528,
-0.0213384405,
-0.1121435761,
-0.0333960205,
-0.3809586167,
0.069973059,
-0.4534810483,
-0.3755662739,
0.0112920757,
0.1440522224,
0.2753454149,
0.3328948319,
0.2299250364,
-0.2099560201,
0.3361962736,
-0.2096321285,
-0.2037050128,
0.1267782003,
-0.2523743808,
-0.2639803886,
0.330471158,
-0.0450137146,
0.8056795597,
-0.1035315022,
-0.2581114471,
-0.0281819236,
0.054154899,
-0.313547641,
-0.1422800869,
-0.2467392087,
0.3080141544,
0.2088037729,
-0.0856468678,
-0.00781768,
-0.3258493245,
0.0911114514,
-0.2148194611,
0.2122523338,
-0.2017768919,
0.8904486299,
-0.005194304,
0.4429089427,
0.1470212191,
-0.2118463069,
0.4529938102,
-0.106380254,
0.1824466288,
-0.104823485,
-0.2602484226,
-0.1180830747,
0.1664526463,
-0.2900656164,
0.1482967436,
-0.2593996823,
-0.0632347241,
-0.2945417166,
0.0631955341,
-0.3335377276,
-0.2166405469,
0.0108936122,
-0.2646001279,
0.1334774345,
-0.1084317863,
0.0371413603,
-0.0522481203,
0.1782281846,
0.1964564323,
0.27402547,
0.179841131,
-0.0360956378,
-0.2892716527,
-0.0228561442,
-0.3024624884,
0.3309326172,
-0.0449293703,
0.1445601135,
-0.1725996435,
-0.2284810841,
0.108591482,
-0.2120635062,
0.5687654018,
-0.288608104,
0.0759903938,
0.256681025,
-0.1874073744,
-0.4711459875,
-0.2658158541,
-0.0675032884,
0.2460009456,
0.0289377607,
0.4087799788,
-0.1191498488,
-0.4835370779,
0.1473180205,
-0.0567419343,
-0.0862192139,
-0.2047349066,
-0.347964406,
-0.1231661215,
-0.3823906481,
-0.0772972107,
-0.0697869286,
0.34709993,
0.0993614122,
-0.2050060034,
0.0540419556,
0.0844746456,
0.026174657,
-0.0463367775,
0.472672075,
0.033060465,
0.2310326695,
0.272346288,
0.3769769967,
0.1094539538,
0.3990898132,
0.2031018287,
-0.4686417282,
-0.1039526761,
0.0307145175,
0.4628866613,
-0.0234796386,
-0.1841690391,
0.105656974,
0.1430650949,
0.1544752419,
-0.1691707522,
0.1093408838,
0.4040111601,
0.0435306467,
-0.3053804338,
-0.5429390073,
-0.0136748273,
0.0826764479,
0.0919226408,
-0.0626313612,
-0.320395112,
-0.2080416977,
0.2609346807,
0.4015892446,
0.6901730895,
-0.0723920986,
0.2966907918,
0.5587425232,
0.0910604298,
0.0016884506,
0.2774416208,
-0.1042706966,
-0.5139324665,
0.1954909712,
0.0833372399,
-0.1815755665,
-0.0093928548,
0.2339336723,
-0.1757297814,
0.2052434683,
-0.219678551,
0.0933762267,
-0.1733642668,
0.1602140218,
-0.1688348651,
-0.0502106808,
-0.1218758449,
0.0497321635,
-0.0692729354,
0.0820501298,
-0.1036421284,
-0.2097410858,
0.0337742157,
-0.2309394777,
0.0748144314,
0.2753438056,
0.0081002135,
0.0343262553,
-0.2805510163,
-0.1951714903,
0.1213370785,
0.2447197884,
0.3164098561,
0.0351310372,
-0.0893451646,
0.101099357,
-0.3682294786,
-0.2763565481,
-0.2608575821,
-0.0956430286,
0.184987098,
-0.2108018249,
-0.0499804318,
0.124062553,
-0.0613715164,
-0.3762873709,
-0.0335861295,
-0.0350456983,
0.2754875422,
-0.4317030907,
-0.2545202374,
-0.1319119632,
-0.1161126718,
-0.1919200718,
0.1608151197,
0.2287707329,
-0.1201415956,
0.0152175557,
-0.1504314095,
-0.2745188177,
0.0584028959,
0.5248116255,
-0.1016796306,
0.1521697938,
0.6307945848,
0.0710354224,
-0.1138498411,
-0.2894232273,
-0.2996491194,
0.0183574408,
-0.2909432352,
0.1833908111,
0.2434942126,
-0.0689216256,
0.2441022843,
0.3077547252,
0.1714058071,
-0.0989842564,
-0.0508269295,
-0.5483649969,
-0.0284050573,
0.0474093482,
-0.1534882635,
0.3620048463,
0.1767352223,
-0.3220783174,
-0.0817598701,
-0.1770444363,
-0.2993301153,
0.0011036806,
-0.1198001057,
0.2405625135,
-0.2157945484,
-0.2780374885,
0.2113569081,
0.0620970987,
0.1622254401,
-0.3558203578,
-0.0777115896,
-0.2533759475,
-0.0681321323,
0.1221703812,
0.1441824883,
0.0095418552,
0.1336416006,
-0.1444761455,
-0.3320430517,
-0.1306844205,
0.0670905337,
0.1010916233,
-0.0039908797,
0.2840559781,
0.0924804807,
0.0219094958,
-0.1482168436,
-0.1065013483,
-0.199454248,
-0.1743006855,
0.0085590398,
0.2015721798,
-0.1814143062,
-0.2146723419,
0.0438419022,
0.0030675931,
0.0793969631,
0.0792411789,
0.3128162026,
-0.4647561312,
0.0515679531,
0.1602490246,
0.5055224895,
0.3906167448,
-0.0799036771,
0.2140353173,
0.3118721545,
0.238157928,
-0.1135246158,
-0.2740479708,
-0.1960723549,
-0.2340989262,
-0.0069742477,
-0.0698654875,
-0.0677563623,
0.0582613088,
0.2001819909,
-0.0457283407,
0.1784251481,
0.1480000764,
0.1270187497,
0.2794733644,
-0.3211748004,
0.0406146049,
0.2804034054,
0.1732444316,
0.1449830681,
0.3777579069,
-0.155561924,
0.1443802565,
-0.2752651572,
0.1954729408,
-0.1280411631,
-0.6779034138,
0.1011460274,
0.0413990989,
-0.0967221558,
-0.0895922408,
-0.1370328218,
0.328610599,
0.031060962,
0.0625447333,
-0.3678520918,
0.083988525,
-0.146653071,
-0.0880458355,
-0.3406415284,
0.0076262462,
-0.0325514041,
0.1551522911,
0.1516608,
-0.0349880047,
-0.0857884064,
0.087555252,
-0.0400349051,
-0.0436643362,
0.0709550157,
0.3961868882,
-0.2319028229,
-0.4020037055,
0.1886534542,
-0.1219384372,
-0.0789997056,
0.0003443246,
0.0715054423,
0.5281402469,
0.3324437141,
0.1592496336,
0.0043609194,
-0.0478784665,
-0.1837077439,
-0.053014677,
0.0596840233,
0.168232128,
0.3104562759,
0.4630704522,
0.1703826487,
-0.1467408538,
0.1241713837,
-0.1453257352,
0.320807457,
-0.0304010976,
0.1715202481,
0.1750356257,
-0.2403035462,
-0.2071764618,
0.2140192688,
-0.5623787642,
-0.2455458194,
0.3704135418,
0.0733888894,
0.0577129461,
-0.1164957657,
0.059036959,
0.1694279909,
0.5225658417,
0.1972418427,
0.3079322875,
-0.4567182362,
-0.0008988748,
-0.5817424059,
-0.0127124181,
0.1645325124,
0.2716319859,
0.1598727554,
0.1856327355,
-0.2448570281,
-0.0757828504,
0.2462040484,
0.2971826494,
0.1082025245,
0.2338157147,
-0.1574129313,
-0.1347533315,
0.1514977068,
-0.1274894923,
0.0899901316,
-0.1791541129,
0.0747643262,
-0.047213681,
0.0362292193,
-0.2751495838,
0.0237009134,
0.0012947904,
-0.1667187661,
0.5104473829,
-0.2578531206,
0.4464896023,
-0.0321036242,
0.1099808365,
-0.4661690891,
0.0489511788,
-0.149584651,
0.1149456576,
0.0738410726,
0.2687283456,
-0.0252669789,
0.3849053085,
-0.4096692204,
0.2747507393,
-0.1608556658,
-0.3426372111,
-0.0414932482,
0.1178343743,
0.0767926872,
0.3193475604,
0.0821501687,
-0.0379418992,
0.0348787792,
0.0631609559,
-0.5235247612,
-0.2149446011,
0.6017241478,
-0.439919889,
-0.048564598,
-0.007045777,
0.2270692587,
0.1117745116,
-0.1416445225,
-0.4197170734,
0.1078706607,
0.2636763752,
0.1084363237,
-0.0447178409,
0.3393389285,
0.2886269391,
0.1458837688,
-0.0916725025,
0.1939832866,
0.1492438167,
-0.1321776062,
-0.1302172691,
-0.3663119376
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | We were brainstorming around your use-case.
Let's keep the issue open for now, I think this is an interesting question to think about. | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 23 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
We were brainstorming around your use-case.
Let's keep the issue open for now, I think this is an interesting question to think about. | [
-0.2508120239,
-0.2407747656,
-0.0531519279,
0.503803134,
0.242677629,
0.0379794091,
0.4234101176,
0.2302230299,
0.0534565076,
0.012271638,
-0.0213181376,
0.3855957985,
-0.2364186496,
0.4087213278,
-0.073391445,
0.1519470215,
0.0036895594,
0.1174419373,
0.2415752858,
0.1663117409,
-0.0428831093,
0.2773868442,
-0.057136409,
0.1090653241,
-0.1840186417,
0.0136174606,
0.0146283228,
0.3506194353,
-0.0750770867,
-0.508487463,
0.0108171804,
-0.0190765858,
0.4783015251,
0.3833351433,
-0.0001139213,
-0.028652925,
0.3157631755,
0.0450190119,
-0.422922194,
-0.3848214447,
-0.5591982007,
0.1110935137,
0.1526587903,
-0.0374609828,
-0.3507242799,
-0.0653411746,
-0.3116797805,
-0.2656854689,
0.4028450251,
0.6623775959,
0.178203851,
0.1914704293,
-0.0731055662,
-0.3078444898,
0.2821202278,
0.020372944,
0.0018275606,
0.2220327407,
-0.2715071142,
0.1779978126,
0.2951637506,
0.270999521,
-0.4019234776,
0.1139448062,
0.5365952253,
0.0304874368,
0.3513381779,
0.0784728006,
0.1274640113,
0.1705706269,
0.5801001787,
-0.136125803,
-0.4543990493,
-0.1849199533,
-0.2141834348,
-0.282492429,
0.1915265769,
0.0894621387,
0.0374889821,
0.0282423031,
-0.0464703329,
-0.0466800593,
-0.0988202915,
0.2466036379,
0.0339197703,
0.4405599833,
-0.2780038416,
0.0633563548,
0.2615090311,
0.0703384131,
0.3421870768,
-0.1132722348,
0.0181239415,
0.0466640554,
-0.2519854009,
0.1674025059,
-0.0153580746,
0.2122866064,
-0.0699797496,
0.1938644201,
0.3034310043,
-0.0739919171,
0.3996637464,
0.2401907295,
0.3883313537,
-0.1680296659,
0.0913827047,
0.0003887896,
-0.0994112715,
0.4869205952,
0.0785982013,
-0.1934863329,
-0.3133123219,
-0.5367279053,
0.1240956038,
0.26881814,
0.3971947134,
-0.3510358036,
-0.2658776045,
-0.0860201418,
-0.1192131862,
-0.1965767741,
0.2694830596,
0.4972229898,
-0.3471300006,
-0.1139851362,
-0.117971167,
0.2110882849,
-0.2143540531,
0.0854032934,
-0.1983183771,
0.2434528023,
-0.3190573752,
0.0227509756,
0.1486800015,
-0.5799325705,
0.5168523192,
-0.0738640502,
0.0051263194,
-0.3440084159,
0.1492901444,
-0.2164645791,
0.177761659,
0.1814397275,
0.1935321689,
0.2570755482,
-0.0537815392,
-0.0760162771,
-0.1820332855,
0.0855755582,
-0.1849054843,
-0.479770869,
0.0412795767,
0.2240626961,
-0.2657831907,
-0.1602721363,
-0.0594209917,
-0.1859488189,
0.2781680822,
-0.0984314457,
-0.3886997104,
0.0453321859,
-0.1181020439,
-0.220781222,
0.4690742791,
0.3192172945,
-0.3537426293,
0.1085963696,
-0.4716525674,
0.1138472706,
0.0835105702,
0.2105171382,
-0.3659239113,
0.44895944,
-0.3048421741,
0.132893756,
0.5610041618,
-0.2565936446,
0.0060540354,
0.0853613913,
-0.0421511047,
-0.1606776565,
0.1342203468,
-0.063041538,
-0.1340705603,
-0.1085646749,
0.0167824961,
0.3441396654,
0.0382881239,
0.0388525389,
-0.1566990167,
-0.0247691069,
0.1257413179,
0.2443983406,
0.1100836396,
-0.0220542811,
-0.037371058,
-0.1964022666,
-0.0556681119,
-0.1184008718,
-0.0434881337,
0.4679804146,
0.2733067274,
0.3011100888,
-0.0028269668,
0.151649937,
-0.2742569149,
0.1333040148,
0.0448953696,
-0.277271688,
-0.0668592453,
0.0106649278,
-0.2895233929,
0.0034127384,
-0.4520741403,
0.0989072993,
0.1053080484,
0.3138041794,
0.2326270342,
-0.0971177518,
-0.1190225929,
-0.3059856594,
0.3305367529,
-0.0151231829,
-0.3088081479,
0.1135314554,
-0.405138433,
-0.0548964813,
0.086904034,
0.043993637,
0.1716849506,
0.117635712,
0.0150822662,
0.1787702143,
0.1243599877,
0.227449581,
-0.2144690305,
0.1562109143,
-0.1199653596,
0.0306926258,
0.1797364056,
-0.1334499121,
0.135618493,
0.0835731253,
-0.0444402322,
0.4771926701,
-0.0267101228,
0.1894396394,
0.1397074908,
0.015092548,
0.2696096897,
-0.1694879383,
-0.0204154309,
-0.1353713572,
0.0476755649,
-0.1200016439,
0.1146694496,
0.0762753785,
-0.0729277357,
-0.1295491904,
0.3834596276,
0.0959831476,
-0.0108044818,
-0.2696373463,
-0.2296589613,
-0.1449697912,
0.0653626025,
0.4955293536,
0.3665238023,
0.2210590094,
0.0965471342,
-0.0355797336,
-0.053980913,
-0.1855221093,
0.2379353791,
0.423758626,
0.4380970895,
0.3556295931,
-0.3781281412,
-0.0747242719,
-0.2402071655,
-0.1607343704,
0.1642103195,
0.282250762,
-0.4002408981,
0.1890036017,
-0.0598931499,
-0.1696403176,
-0.2982714772,
-0.354865402,
-0.1032037139,
-0.2554684579,
-0.1192266941,
0.2769101858,
-0.2668560445,
-0.0272913184,
0.0960364565,
0.0128378617,
-0.0740059018,
-0.0552991815,
-0.3418391645,
-0.2471805066,
-0.170404911,
0.0550117567,
0.2183093727,
0.0958848894,
0.2658966184,
-0.1865488142,
0.1083012745,
-0.4633398056,
-0.0825943574,
-0.017645603,
-0.00809744,
0.302495122,
0.2742293179,
0.0802076086,
0.2997994721,
-0.246578306,
0.465375483,
-0.0120982472,
0.020435391,
0.2364754528,
-0.0213384405,
-0.1121435761,
-0.0333960205,
-0.3809586167,
0.069973059,
-0.4534810483,
-0.3755662739,
0.0112920757,
0.1440522224,
0.2753454149,
0.3328948319,
0.2299250364,
-0.2099560201,
0.3361962736,
-0.2096321285,
-0.2037050128,
0.1267782003,
-0.2523743808,
-0.2639803886,
0.330471158,
-0.0450137146,
0.8056795597,
-0.1035315022,
-0.2581114471,
-0.0281819236,
0.054154899,
-0.313547641,
-0.1422800869,
-0.2467392087,
0.3080141544,
0.2088037729,
-0.0856468678,
-0.00781768,
-0.3258493245,
0.0911114514,
-0.2148194611,
0.2122523338,
-0.2017768919,
0.8904486299,
-0.005194304,
0.4429089427,
0.1470212191,
-0.2118463069,
0.4529938102,
-0.106380254,
0.1824466288,
-0.104823485,
-0.2602484226,
-0.1180830747,
0.1664526463,
-0.2900656164,
0.1482967436,
-0.2593996823,
-0.0632347241,
-0.2945417166,
0.0631955341,
-0.3335377276,
-0.2166405469,
0.0108936122,
-0.2646001279,
0.1334774345,
-0.1084317863,
0.0371413603,
-0.0522481203,
0.1782281846,
0.1964564323,
0.27402547,
0.179841131,
-0.0360956378,
-0.2892716527,
-0.0228561442,
-0.3024624884,
0.3309326172,
-0.0449293703,
0.1445601135,
-0.1725996435,
-0.2284810841,
0.108591482,
-0.2120635062,
0.5687654018,
-0.288608104,
0.0759903938,
0.256681025,
-0.1874073744,
-0.4711459875,
-0.2658158541,
-0.0675032884,
0.2460009456,
0.0289377607,
0.4087799788,
-0.1191498488,
-0.4835370779,
0.1473180205,
-0.0567419343,
-0.0862192139,
-0.2047349066,
-0.347964406,
-0.1231661215,
-0.3823906481,
-0.0772972107,
-0.0697869286,
0.34709993,
0.0993614122,
-0.2050060034,
0.0540419556,
0.0844746456,
0.026174657,
-0.0463367775,
0.472672075,
0.033060465,
0.2310326695,
0.272346288,
0.3769769967,
0.1094539538,
0.3990898132,
0.2031018287,
-0.4686417282,
-0.1039526761,
0.0307145175,
0.4628866613,
-0.0234796386,
-0.1841690391,
0.105656974,
0.1430650949,
0.1544752419,
-0.1691707522,
0.1093408838,
0.4040111601,
0.0435306467,
-0.3053804338,
-0.5429390073,
-0.0136748273,
0.0826764479,
0.0919226408,
-0.0626313612,
-0.320395112,
-0.2080416977,
0.2609346807,
0.4015892446,
0.6901730895,
-0.0723920986,
0.2966907918,
0.5587425232,
0.0910604298,
0.0016884506,
0.2774416208,
-0.1042706966,
-0.5139324665,
0.1954909712,
0.0833372399,
-0.1815755665,
-0.0093928548,
0.2339336723,
-0.1757297814,
0.2052434683,
-0.219678551,
0.0933762267,
-0.1733642668,
0.1602140218,
-0.1688348651,
-0.0502106808,
-0.1218758449,
0.0497321635,
-0.0692729354,
0.0820501298,
-0.1036421284,
-0.2097410858,
0.0337742157,
-0.2309394777,
0.0748144314,
0.2753438056,
0.0081002135,
0.0343262553,
-0.2805510163,
-0.1951714903,
0.1213370785,
0.2447197884,
0.3164098561,
0.0351310372,
-0.0893451646,
0.101099357,
-0.3682294786,
-0.2763565481,
-0.2608575821,
-0.0956430286,
0.184987098,
-0.2108018249,
-0.0499804318,
0.124062553,
-0.0613715164,
-0.3762873709,
-0.0335861295,
-0.0350456983,
0.2754875422,
-0.4317030907,
-0.2545202374,
-0.1319119632,
-0.1161126718,
-0.1919200718,
0.1608151197,
0.2287707329,
-0.1201415956,
0.0152175557,
-0.1504314095,
-0.2745188177,
0.0584028959,
0.5248116255,
-0.1016796306,
0.1521697938,
0.6307945848,
0.0710354224,
-0.1138498411,
-0.2894232273,
-0.2996491194,
0.0183574408,
-0.2909432352,
0.1833908111,
0.2434942126,
-0.0689216256,
0.2441022843,
0.3077547252,
0.1714058071,
-0.0989842564,
-0.0508269295,
-0.5483649969,
-0.0284050573,
0.0474093482,
-0.1534882635,
0.3620048463,
0.1767352223,
-0.3220783174,
-0.0817598701,
-0.1770444363,
-0.2993301153,
0.0011036806,
-0.1198001057,
0.2405625135,
-0.2157945484,
-0.2780374885,
0.2113569081,
0.0620970987,
0.1622254401,
-0.3558203578,
-0.0777115896,
-0.2533759475,
-0.0681321323,
0.1221703812,
0.1441824883,
0.0095418552,
0.1336416006,
-0.1444761455,
-0.3320430517,
-0.1306844205,
0.0670905337,
0.1010916233,
-0.0039908797,
0.2840559781,
0.0924804807,
0.0219094958,
-0.1482168436,
-0.1065013483,
-0.199454248,
-0.1743006855,
0.0085590398,
0.2015721798,
-0.1814143062,
-0.2146723419,
0.0438419022,
0.0030675931,
0.0793969631,
0.0792411789,
0.3128162026,
-0.4647561312,
0.0515679531,
0.1602490246,
0.5055224895,
0.3906167448,
-0.0799036771,
0.2140353173,
0.3118721545,
0.238157928,
-0.1135246158,
-0.2740479708,
-0.1960723549,
-0.2340989262,
-0.0069742477,
-0.0698654875,
-0.0677563623,
0.0582613088,
0.2001819909,
-0.0457283407,
0.1784251481,
0.1480000764,
0.1270187497,
0.2794733644,
-0.3211748004,
0.0406146049,
0.2804034054,
0.1732444316,
0.1449830681,
0.3777579069,
-0.155561924,
0.1443802565,
-0.2752651572,
0.1954729408,
-0.1280411631,
-0.6779034138,
0.1011460274,
0.0413990989,
-0.0967221558,
-0.0895922408,
-0.1370328218,
0.328610599,
0.031060962,
0.0625447333,
-0.3678520918,
0.083988525,
-0.146653071,
-0.0880458355,
-0.3406415284,
0.0076262462,
-0.0325514041,
0.1551522911,
0.1516608,
-0.0349880047,
-0.0857884064,
0.087555252,
-0.0400349051,
-0.0436643362,
0.0709550157,
0.3961868882,
-0.2319028229,
-0.4020037055,
0.1886534542,
-0.1219384372,
-0.0789997056,
0.0003443246,
0.0715054423,
0.5281402469,
0.3324437141,
0.1592496336,
0.0043609194,
-0.0478784665,
-0.1837077439,
-0.053014677,
0.0596840233,
0.168232128,
0.3104562759,
0.4630704522,
0.1703826487,
-0.1467408538,
0.1241713837,
-0.1453257352,
0.320807457,
-0.0304010976,
0.1715202481,
0.1750356257,
-0.2403035462,
-0.2071764618,
0.2140192688,
-0.5623787642,
-0.2455458194,
0.3704135418,
0.0733888894,
0.0577129461,
-0.1164957657,
0.059036959,
0.1694279909,
0.5225658417,
0.1972418427,
0.3079322875,
-0.4567182362,
-0.0008988748,
-0.5817424059,
-0.0127124181,
0.1645325124,
0.2716319859,
0.1598727554,
0.1856327355,
-0.2448570281,
-0.0757828504,
0.2462040484,
0.2971826494,
0.1082025245,
0.2338157147,
-0.1574129313,
-0.1347533315,
0.1514977068,
-0.1274894923,
0.0899901316,
-0.1791541129,
0.0747643262,
-0.047213681,
0.0362292193,
-0.2751495838,
0.0237009134,
0.0012947904,
-0.1667187661,
0.5104473829,
-0.2578531206,
0.4464896023,
-0.0321036242,
0.1099808365,
-0.4661690891,
0.0489511788,
-0.149584651,
0.1149456576,
0.0738410726,
0.2687283456,
-0.0252669789,
0.3849053085,
-0.4096692204,
0.2747507393,
-0.1608556658,
-0.3426372111,
-0.0414932482,
0.1178343743,
0.0767926872,
0.3193475604,
0.0821501687,
-0.0379418992,
0.0348787792,
0.0631609559,
-0.5235247612,
-0.2149446011,
0.6017241478,
-0.439919889,
-0.048564598,
-0.007045777,
0.2270692587,
0.1117745116,
-0.1416445225,
-0.4197170734,
0.1078706607,
0.2636763752,
0.1084363237,
-0.0447178409,
0.3393389285,
0.2886269391,
0.1458837688,
-0.0916725025,
0.1939832866,
0.1492438167,
-0.1321776062,
-0.1302172691,
-0.3663119376
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | > We were brainstorming around your use-case.
>
> Let's keep the issue open for now, I think this is an interesting question to think about.
Sure thomwolf, Thanks for your concern | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 32 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
> We were brainstorming around your use-case.
>
> Let's keep the issue open for now, I think this is an interesting question to think about.
Sure thomwolf, Thanks for your concern | [
-0.2508120239,
-0.2407747656,
-0.0531519279,
0.503803134,
0.242677629,
0.0379794091,
0.4234101176,
0.2302230299,
0.0534565076,
0.012271638,
-0.0213181376,
0.3855957985,
-0.2364186496,
0.4087213278,
-0.073391445,
0.1519470215,
0.0036895594,
0.1174419373,
0.2415752858,
0.1663117409,
-0.0428831093,
0.2773868442,
-0.057136409,
0.1090653241,
-0.1840186417,
0.0136174606,
0.0146283228,
0.3506194353,
-0.0750770867,
-0.508487463,
0.0108171804,
-0.0190765858,
0.4783015251,
0.3833351433,
-0.0001139213,
-0.028652925,
0.3157631755,
0.0450190119,
-0.422922194,
-0.3848214447,
-0.5591982007,
0.1110935137,
0.1526587903,
-0.0374609828,
-0.3507242799,
-0.0653411746,
-0.3116797805,
-0.2656854689,
0.4028450251,
0.6623775959,
0.178203851,
0.1914704293,
-0.0731055662,
-0.3078444898,
0.2821202278,
0.020372944,
0.0018275606,
0.2220327407,
-0.2715071142,
0.1779978126,
0.2951637506,
0.270999521,
-0.4019234776,
0.1139448062,
0.5365952253,
0.0304874368,
0.3513381779,
0.0784728006,
0.1274640113,
0.1705706269,
0.5801001787,
-0.136125803,
-0.4543990493,
-0.1849199533,
-0.2141834348,
-0.282492429,
0.1915265769,
0.0894621387,
0.0374889821,
0.0282423031,
-0.0464703329,
-0.0466800593,
-0.0988202915,
0.2466036379,
0.0339197703,
0.4405599833,
-0.2780038416,
0.0633563548,
0.2615090311,
0.0703384131,
0.3421870768,
-0.1132722348,
0.0181239415,
0.0466640554,
-0.2519854009,
0.1674025059,
-0.0153580746,
0.2122866064,
-0.0699797496,
0.1938644201,
0.3034310043,
-0.0739919171,
0.3996637464,
0.2401907295,
0.3883313537,
-0.1680296659,
0.0913827047,
0.0003887896,
-0.0994112715,
0.4869205952,
0.0785982013,
-0.1934863329,
-0.3133123219,
-0.5367279053,
0.1240956038,
0.26881814,
0.3971947134,
-0.3510358036,
-0.2658776045,
-0.0860201418,
-0.1192131862,
-0.1965767741,
0.2694830596,
0.4972229898,
-0.3471300006,
-0.1139851362,
-0.117971167,
0.2110882849,
-0.2143540531,
0.0854032934,
-0.1983183771,
0.2434528023,
-0.3190573752,
0.0227509756,
0.1486800015,
-0.5799325705,
0.5168523192,
-0.0738640502,
0.0051263194,
-0.3440084159,
0.1492901444,
-0.2164645791,
0.177761659,
0.1814397275,
0.1935321689,
0.2570755482,
-0.0537815392,
-0.0760162771,
-0.1820332855,
0.0855755582,
-0.1849054843,
-0.479770869,
0.0412795767,
0.2240626961,
-0.2657831907,
-0.1602721363,
-0.0594209917,
-0.1859488189,
0.2781680822,
-0.0984314457,
-0.3886997104,
0.0453321859,
-0.1181020439,
-0.220781222,
0.4690742791,
0.3192172945,
-0.3537426293,
0.1085963696,
-0.4716525674,
0.1138472706,
0.0835105702,
0.2105171382,
-0.3659239113,
0.44895944,
-0.3048421741,
0.132893756,
0.5610041618,
-0.2565936446,
0.0060540354,
0.0853613913,
-0.0421511047,
-0.1606776565,
0.1342203468,
-0.063041538,
-0.1340705603,
-0.1085646749,
0.0167824961,
0.3441396654,
0.0382881239,
0.0388525389,
-0.1566990167,
-0.0247691069,
0.1257413179,
0.2443983406,
0.1100836396,
-0.0220542811,
-0.037371058,
-0.1964022666,
-0.0556681119,
-0.1184008718,
-0.0434881337,
0.4679804146,
0.2733067274,
0.3011100888,
-0.0028269668,
0.151649937,
-0.2742569149,
0.1333040148,
0.0448953696,
-0.277271688,
-0.0668592453,
0.0106649278,
-0.2895233929,
0.0034127384,
-0.4520741403,
0.0989072993,
0.1053080484,
0.3138041794,
0.2326270342,
-0.0971177518,
-0.1190225929,
-0.3059856594,
0.3305367529,
-0.0151231829,
-0.3088081479,
0.1135314554,
-0.405138433,
-0.0548964813,
0.086904034,
0.043993637,
0.1716849506,
0.117635712,
0.0150822662,
0.1787702143,
0.1243599877,
0.227449581,
-0.2144690305,
0.1562109143,
-0.1199653596,
0.0306926258,
0.1797364056,
-0.1334499121,
0.135618493,
0.0835731253,
-0.0444402322,
0.4771926701,
-0.0267101228,
0.1894396394,
0.1397074908,
0.015092548,
0.2696096897,
-0.1694879383,
-0.0204154309,
-0.1353713572,
0.0476755649,
-0.1200016439,
0.1146694496,
0.0762753785,
-0.0729277357,
-0.1295491904,
0.3834596276,
0.0959831476,
-0.0108044818,
-0.2696373463,
-0.2296589613,
-0.1449697912,
0.0653626025,
0.4955293536,
0.3665238023,
0.2210590094,
0.0965471342,
-0.0355797336,
-0.053980913,
-0.1855221093,
0.2379353791,
0.423758626,
0.4380970895,
0.3556295931,
-0.3781281412,
-0.0747242719,
-0.2402071655,
-0.1607343704,
0.1642103195,
0.282250762,
-0.4002408981,
0.1890036017,
-0.0598931499,
-0.1696403176,
-0.2982714772,
-0.354865402,
-0.1032037139,
-0.2554684579,
-0.1192266941,
0.2769101858,
-0.2668560445,
-0.0272913184,
0.0960364565,
0.0128378617,
-0.0740059018,
-0.0552991815,
-0.3418391645,
-0.2471805066,
-0.170404911,
0.0550117567,
0.2183093727,
0.0958848894,
0.2658966184,
-0.1865488142,
0.1083012745,
-0.4633398056,
-0.0825943574,
-0.017645603,
-0.00809744,
0.302495122,
0.2742293179,
0.0802076086,
0.2997994721,
-0.246578306,
0.465375483,
-0.0120982472,
0.020435391,
0.2364754528,
-0.0213384405,
-0.1121435761,
-0.0333960205,
-0.3809586167,
0.069973059,
-0.4534810483,
-0.3755662739,
0.0112920757,
0.1440522224,
0.2753454149,
0.3328948319,
0.2299250364,
-0.2099560201,
0.3361962736,
-0.2096321285,
-0.2037050128,
0.1267782003,
-0.2523743808,
-0.2639803886,
0.330471158,
-0.0450137146,
0.8056795597,
-0.1035315022,
-0.2581114471,
-0.0281819236,
0.054154899,
-0.313547641,
-0.1422800869,
-0.2467392087,
0.3080141544,
0.2088037729,
-0.0856468678,
-0.00781768,
-0.3258493245,
0.0911114514,
-0.2148194611,
0.2122523338,
-0.2017768919,
0.8904486299,
-0.005194304,
0.4429089427,
0.1470212191,
-0.2118463069,
0.4529938102,
-0.106380254,
0.1824466288,
-0.104823485,
-0.2602484226,
-0.1180830747,
0.1664526463,
-0.2900656164,
0.1482967436,
-0.2593996823,
-0.0632347241,
-0.2945417166,
0.0631955341,
-0.3335377276,
-0.2166405469,
0.0108936122,
-0.2646001279,
0.1334774345,
-0.1084317863,
0.0371413603,
-0.0522481203,
0.1782281846,
0.1964564323,
0.27402547,
0.179841131,
-0.0360956378,
-0.2892716527,
-0.0228561442,
-0.3024624884,
0.3309326172,
-0.0449293703,
0.1445601135,
-0.1725996435,
-0.2284810841,
0.108591482,
-0.2120635062,
0.5687654018,
-0.288608104,
0.0759903938,
0.256681025,
-0.1874073744,
-0.4711459875,
-0.2658158541,
-0.0675032884,
0.2460009456,
0.0289377607,
0.4087799788,
-0.1191498488,
-0.4835370779,
0.1473180205,
-0.0567419343,
-0.0862192139,
-0.2047349066,
-0.347964406,
-0.1231661215,
-0.3823906481,
-0.0772972107,
-0.0697869286,
0.34709993,
0.0993614122,
-0.2050060034,
0.0540419556,
0.0844746456,
0.026174657,
-0.0463367775,
0.472672075,
0.033060465,
0.2310326695,
0.272346288,
0.3769769967,
0.1094539538,
0.3990898132,
0.2031018287,
-0.4686417282,
-0.1039526761,
0.0307145175,
0.4628866613,
-0.0234796386,
-0.1841690391,
0.105656974,
0.1430650949,
0.1544752419,
-0.1691707522,
0.1093408838,
0.4040111601,
0.0435306467,
-0.3053804338,
-0.5429390073,
-0.0136748273,
0.0826764479,
0.0919226408,
-0.0626313612,
-0.320395112,
-0.2080416977,
0.2609346807,
0.4015892446,
0.6901730895,
-0.0723920986,
0.2966907918,
0.5587425232,
0.0910604298,
0.0016884506,
0.2774416208,
-0.1042706966,
-0.5139324665,
0.1954909712,
0.0833372399,
-0.1815755665,
-0.0093928548,
0.2339336723,
-0.1757297814,
0.2052434683,
-0.219678551,
0.0933762267,
-0.1733642668,
0.1602140218,
-0.1688348651,
-0.0502106808,
-0.1218758449,
0.0497321635,
-0.0692729354,
0.0820501298,
-0.1036421284,
-0.2097410858,
0.0337742157,
-0.2309394777,
0.0748144314,
0.2753438056,
0.0081002135,
0.0343262553,
-0.2805510163,
-0.1951714903,
0.1213370785,
0.2447197884,
0.3164098561,
0.0351310372,
-0.0893451646,
0.101099357,
-0.3682294786,
-0.2763565481,
-0.2608575821,
-0.0956430286,
0.184987098,
-0.2108018249,
-0.0499804318,
0.124062553,
-0.0613715164,
-0.3762873709,
-0.0335861295,
-0.0350456983,
0.2754875422,
-0.4317030907,
-0.2545202374,
-0.1319119632,
-0.1161126718,
-0.1919200718,
0.1608151197,
0.2287707329,
-0.1201415956,
0.0152175557,
-0.1504314095,
-0.2745188177,
0.0584028959,
0.5248116255,
-0.1016796306,
0.1521697938,
0.6307945848,
0.0710354224,
-0.1138498411,
-0.2894232273,
-0.2996491194,
0.0183574408,
-0.2909432352,
0.1833908111,
0.2434942126,
-0.0689216256,
0.2441022843,
0.3077547252,
0.1714058071,
-0.0989842564,
-0.0508269295,
-0.5483649969,
-0.0284050573,
0.0474093482,
-0.1534882635,
0.3620048463,
0.1767352223,
-0.3220783174,
-0.0817598701,
-0.1770444363,
-0.2993301153,
0.0011036806,
-0.1198001057,
0.2405625135,
-0.2157945484,
-0.2780374885,
0.2113569081,
0.0620970987,
0.1622254401,
-0.3558203578,
-0.0777115896,
-0.2533759475,
-0.0681321323,
0.1221703812,
0.1441824883,
0.0095418552,
0.1336416006,
-0.1444761455,
-0.3320430517,
-0.1306844205,
0.0670905337,
0.1010916233,
-0.0039908797,
0.2840559781,
0.0924804807,
0.0219094958,
-0.1482168436,
-0.1065013483,
-0.199454248,
-0.1743006855,
0.0085590398,
0.2015721798,
-0.1814143062,
-0.2146723419,
0.0438419022,
0.0030675931,
0.0793969631,
0.0792411789,
0.3128162026,
-0.4647561312,
0.0515679531,
0.1602490246,
0.5055224895,
0.3906167448,
-0.0799036771,
0.2140353173,
0.3118721545,
0.238157928,
-0.1135246158,
-0.2740479708,
-0.1960723549,
-0.2340989262,
-0.0069742477,
-0.0698654875,
-0.0677563623,
0.0582613088,
0.2001819909,
-0.0457283407,
0.1784251481,
0.1480000764,
0.1270187497,
0.2794733644,
-0.3211748004,
0.0406146049,
0.2804034054,
0.1732444316,
0.1449830681,
0.3777579069,
-0.155561924,
0.1443802565,
-0.2752651572,
0.1954729408,
-0.1280411631,
-0.6779034138,
0.1011460274,
0.0413990989,
-0.0967221558,
-0.0895922408,
-0.1370328218,
0.328610599,
0.031060962,
0.0625447333,
-0.3678520918,
0.083988525,
-0.146653071,
-0.0880458355,
-0.3406415284,
0.0076262462,
-0.0325514041,
0.1551522911,
0.1516608,
-0.0349880047,
-0.0857884064,
0.087555252,
-0.0400349051,
-0.0436643362,
0.0709550157,
0.3961868882,
-0.2319028229,
-0.4020037055,
0.1886534542,
-0.1219384372,
-0.0789997056,
0.0003443246,
0.0715054423,
0.5281402469,
0.3324437141,
0.1592496336,
0.0043609194,
-0.0478784665,
-0.1837077439,
-0.053014677,
0.0596840233,
0.168232128,
0.3104562759,
0.4630704522,
0.1703826487,
-0.1467408538,
0.1241713837,
-0.1453257352,
0.320807457,
-0.0304010976,
0.1715202481,
0.1750356257,
-0.2403035462,
-0.2071764618,
0.2140192688,
-0.5623787642,
-0.2455458194,
0.3704135418,
0.0733888894,
0.0577129461,
-0.1164957657,
0.059036959,
0.1694279909,
0.5225658417,
0.1972418427,
0.3079322875,
-0.4567182362,
-0.0008988748,
-0.5817424059,
-0.0127124181,
0.1645325124,
0.2716319859,
0.1598727554,
0.1856327355,
-0.2448570281,
-0.0757828504,
0.2462040484,
0.2971826494,
0.1082025245,
0.2338157147,
-0.1574129313,
-0.1347533315,
0.1514977068,
-0.1274894923,
0.0899901316,
-0.1791541129,
0.0747643262,
-0.047213681,
0.0362292193,
-0.2751495838,
0.0237009134,
0.0012947904,
-0.1667187661,
0.5104473829,
-0.2578531206,
0.4464896023,
-0.0321036242,
0.1099808365,
-0.4661690891,
0.0489511788,
-0.149584651,
0.1149456576,
0.0738410726,
0.2687283456,
-0.0252669789,
0.3849053085,
-0.4096692204,
0.2747507393,
-0.1608556658,
-0.3426372111,
-0.0414932482,
0.1178343743,
0.0767926872,
0.3193475604,
0.0821501687,
-0.0379418992,
0.0348787792,
0.0631609559,
-0.5235247612,
-0.2149446011,
0.6017241478,
-0.439919889,
-0.048564598,
-0.007045777,
0.2270692587,
0.1117745116,
-0.1416445225,
-0.4197170734,
0.1078706607,
0.2636763752,
0.1084363237,
-0.0447178409,
0.3393389285,
0.2886269391,
0.1458837688,
-0.0916725025,
0.1939832866,
0.1492438167,
-0.1321776062,
-0.1302172691,
-0.3663119376
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | I agree it would be cool to have that feature. Also that's good to know that pandas supports this.
For the moment I'd suggest to first download the files locally as thom suggested and then load the dataset by providing paths to the local files | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 45 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
I agree it would be cool to have that feature. Also that's good to know that pandas supports this.
For the moment I'd suggest to first download the files locally as thom suggested and then load the dataset by providing paths to the local files | [
-0.2508120239,
-0.2407747656,
-0.0531519279,
0.503803134,
0.242677629,
0.0379794091,
0.4234101176,
0.2302230299,
0.0534565076,
0.012271638,
-0.0213181376,
0.3855957985,
-0.2364186496,
0.4087213278,
-0.073391445,
0.1519470215,
0.0036895594,
0.1174419373,
0.2415752858,
0.1663117409,
-0.0428831093,
0.2773868442,
-0.057136409,
0.1090653241,
-0.1840186417,
0.0136174606,
0.0146283228,
0.3506194353,
-0.0750770867,
-0.508487463,
0.0108171804,
-0.0190765858,
0.4783015251,
0.3833351433,
-0.0001139213,
-0.028652925,
0.3157631755,
0.0450190119,
-0.422922194,
-0.3848214447,
-0.5591982007,
0.1110935137,
0.1526587903,
-0.0374609828,
-0.3507242799,
-0.0653411746,
-0.3116797805,
-0.2656854689,
0.4028450251,
0.6623775959,
0.178203851,
0.1914704293,
-0.0731055662,
-0.3078444898,
0.2821202278,
0.020372944,
0.0018275606,
0.2220327407,
-0.2715071142,
0.1779978126,
0.2951637506,
0.270999521,
-0.4019234776,
0.1139448062,
0.5365952253,
0.0304874368,
0.3513381779,
0.0784728006,
0.1274640113,
0.1705706269,
0.5801001787,
-0.136125803,
-0.4543990493,
-0.1849199533,
-0.2141834348,
-0.282492429,
0.1915265769,
0.0894621387,
0.0374889821,
0.0282423031,
-0.0464703329,
-0.0466800593,
-0.0988202915,
0.2466036379,
0.0339197703,
0.4405599833,
-0.2780038416,
0.0633563548,
0.2615090311,
0.0703384131,
0.3421870768,
-0.1132722348,
0.0181239415,
0.0466640554,
-0.2519854009,
0.1674025059,
-0.0153580746,
0.2122866064,
-0.0699797496,
0.1938644201,
0.3034310043,
-0.0739919171,
0.3996637464,
0.2401907295,
0.3883313537,
-0.1680296659,
0.0913827047,
0.0003887896,
-0.0994112715,
0.4869205952,
0.0785982013,
-0.1934863329,
-0.3133123219,
-0.5367279053,
0.1240956038,
0.26881814,
0.3971947134,
-0.3510358036,
-0.2658776045,
-0.0860201418,
-0.1192131862,
-0.1965767741,
0.2694830596,
0.4972229898,
-0.3471300006,
-0.1139851362,
-0.117971167,
0.2110882849,
-0.2143540531,
0.0854032934,
-0.1983183771,
0.2434528023,
-0.3190573752,
0.0227509756,
0.1486800015,
-0.5799325705,
0.5168523192,
-0.0738640502,
0.0051263194,
-0.3440084159,
0.1492901444,
-0.2164645791,
0.177761659,
0.1814397275,
0.1935321689,
0.2570755482,
-0.0537815392,
-0.0760162771,
-0.1820332855,
0.0855755582,
-0.1849054843,
-0.479770869,
0.0412795767,
0.2240626961,
-0.2657831907,
-0.1602721363,
-0.0594209917,
-0.1859488189,
0.2781680822,
-0.0984314457,
-0.3886997104,
0.0453321859,
-0.1181020439,
-0.220781222,
0.4690742791,
0.3192172945,
-0.3537426293,
0.1085963696,
-0.4716525674,
0.1138472706,
0.0835105702,
0.2105171382,
-0.3659239113,
0.44895944,
-0.3048421741,
0.132893756,
0.5610041618,
-0.2565936446,
0.0060540354,
0.0853613913,
-0.0421511047,
-0.1606776565,
0.1342203468,
-0.063041538,
-0.1340705603,
-0.1085646749,
0.0167824961,
0.3441396654,
0.0382881239,
0.0388525389,
-0.1566990167,
-0.0247691069,
0.1257413179,
0.2443983406,
0.1100836396,
-0.0220542811,
-0.037371058,
-0.1964022666,
-0.0556681119,
-0.1184008718,
-0.0434881337,
0.4679804146,
0.2733067274,
0.3011100888,
-0.0028269668,
0.151649937,
-0.2742569149,
0.1333040148,
0.0448953696,
-0.277271688,
-0.0668592453,
0.0106649278,
-0.2895233929,
0.0034127384,
-0.4520741403,
0.0989072993,
0.1053080484,
0.3138041794,
0.2326270342,
-0.0971177518,
-0.1190225929,
-0.3059856594,
0.3305367529,
-0.0151231829,
-0.3088081479,
0.1135314554,
-0.405138433,
-0.0548964813,
0.086904034,
0.043993637,
0.1716849506,
0.117635712,
0.0150822662,
0.1787702143,
0.1243599877,
0.227449581,
-0.2144690305,
0.1562109143,
-0.1199653596,
0.0306926258,
0.1797364056,
-0.1334499121,
0.135618493,
0.0835731253,
-0.0444402322,
0.4771926701,
-0.0267101228,
0.1894396394,
0.1397074908,
0.015092548,
0.2696096897,
-0.1694879383,
-0.0204154309,
-0.1353713572,
0.0476755649,
-0.1200016439,
0.1146694496,
0.0762753785,
-0.0729277357,
-0.1295491904,
0.3834596276,
0.0959831476,
-0.0108044818,
-0.2696373463,
-0.2296589613,
-0.1449697912,
0.0653626025,
0.4955293536,
0.3665238023,
0.2210590094,
0.0965471342,
-0.0355797336,
-0.053980913,
-0.1855221093,
0.2379353791,
0.423758626,
0.4380970895,
0.3556295931,
-0.3781281412,
-0.0747242719,
-0.2402071655,
-0.1607343704,
0.1642103195,
0.282250762,
-0.4002408981,
0.1890036017,
-0.0598931499,
-0.1696403176,
-0.2982714772,
-0.354865402,
-0.1032037139,
-0.2554684579,
-0.1192266941,
0.2769101858,
-0.2668560445,
-0.0272913184,
0.0960364565,
0.0128378617,
-0.0740059018,
-0.0552991815,
-0.3418391645,
-0.2471805066,
-0.170404911,
0.0550117567,
0.2183093727,
0.0958848894,
0.2658966184,
-0.1865488142,
0.1083012745,
-0.4633398056,
-0.0825943574,
-0.017645603,
-0.00809744,
0.302495122,
0.2742293179,
0.0802076086,
0.2997994721,
-0.246578306,
0.465375483,
-0.0120982472,
0.020435391,
0.2364754528,
-0.0213384405,
-0.1121435761,
-0.0333960205,
-0.3809586167,
0.069973059,
-0.4534810483,
-0.3755662739,
0.0112920757,
0.1440522224,
0.2753454149,
0.3328948319,
0.2299250364,
-0.2099560201,
0.3361962736,
-0.2096321285,
-0.2037050128,
0.1267782003,
-0.2523743808,
-0.2639803886,
0.330471158,
-0.0450137146,
0.8056795597,
-0.1035315022,
-0.2581114471,
-0.0281819236,
0.054154899,
-0.313547641,
-0.1422800869,
-0.2467392087,
0.3080141544,
0.2088037729,
-0.0856468678,
-0.00781768,
-0.3258493245,
0.0911114514,
-0.2148194611,
0.2122523338,
-0.2017768919,
0.8904486299,
-0.005194304,
0.4429089427,
0.1470212191,
-0.2118463069,
0.4529938102,
-0.106380254,
0.1824466288,
-0.104823485,
-0.2602484226,
-0.1180830747,
0.1664526463,
-0.2900656164,
0.1482967436,
-0.2593996823,
-0.0632347241,
-0.2945417166,
0.0631955341,
-0.3335377276,
-0.2166405469,
0.0108936122,
-0.2646001279,
0.1334774345,
-0.1084317863,
0.0371413603,
-0.0522481203,
0.1782281846,
0.1964564323,
0.27402547,
0.179841131,
-0.0360956378,
-0.2892716527,
-0.0228561442,
-0.3024624884,
0.3309326172,
-0.0449293703,
0.1445601135,
-0.1725996435,
-0.2284810841,
0.108591482,
-0.2120635062,
0.5687654018,
-0.288608104,
0.0759903938,
0.256681025,
-0.1874073744,
-0.4711459875,
-0.2658158541,
-0.0675032884,
0.2460009456,
0.0289377607,
0.4087799788,
-0.1191498488,
-0.4835370779,
0.1473180205,
-0.0567419343,
-0.0862192139,
-0.2047349066,
-0.347964406,
-0.1231661215,
-0.3823906481,
-0.0772972107,
-0.0697869286,
0.34709993,
0.0993614122,
-0.2050060034,
0.0540419556,
0.0844746456,
0.026174657,
-0.0463367775,
0.472672075,
0.033060465,
0.2310326695,
0.272346288,
0.3769769967,
0.1094539538,
0.3990898132,
0.2031018287,
-0.4686417282,
-0.1039526761,
0.0307145175,
0.4628866613,
-0.0234796386,
-0.1841690391,
0.105656974,
0.1430650949,
0.1544752419,
-0.1691707522,
0.1093408838,
0.4040111601,
0.0435306467,
-0.3053804338,
-0.5429390073,
-0.0136748273,
0.0826764479,
0.0919226408,
-0.0626313612,
-0.320395112,
-0.2080416977,
0.2609346807,
0.4015892446,
0.6901730895,
-0.0723920986,
0.2966907918,
0.5587425232,
0.0910604298,
0.0016884506,
0.2774416208,
-0.1042706966,
-0.5139324665,
0.1954909712,
0.0833372399,
-0.1815755665,
-0.0093928548,
0.2339336723,
-0.1757297814,
0.2052434683,
-0.219678551,
0.0933762267,
-0.1733642668,
0.1602140218,
-0.1688348651,
-0.0502106808,
-0.1218758449,
0.0497321635,
-0.0692729354,
0.0820501298,
-0.1036421284,
-0.2097410858,
0.0337742157,
-0.2309394777,
0.0748144314,
0.2753438056,
0.0081002135,
0.0343262553,
-0.2805510163,
-0.1951714903,
0.1213370785,
0.2447197884,
0.3164098561,
0.0351310372,
-0.0893451646,
0.101099357,
-0.3682294786,
-0.2763565481,
-0.2608575821,
-0.0956430286,
0.184987098,
-0.2108018249,
-0.0499804318,
0.124062553,
-0.0613715164,
-0.3762873709,
-0.0335861295,
-0.0350456983,
0.2754875422,
-0.4317030907,
-0.2545202374,
-0.1319119632,
-0.1161126718,
-0.1919200718,
0.1608151197,
0.2287707329,
-0.1201415956,
0.0152175557,
-0.1504314095,
-0.2745188177,
0.0584028959,
0.5248116255,
-0.1016796306,
0.1521697938,
0.6307945848,
0.0710354224,
-0.1138498411,
-0.2894232273,
-0.2996491194,
0.0183574408,
-0.2909432352,
0.1833908111,
0.2434942126,
-0.0689216256,
0.2441022843,
0.3077547252,
0.1714058071,
-0.0989842564,
-0.0508269295,
-0.5483649969,
-0.0284050573,
0.0474093482,
-0.1534882635,
0.3620048463,
0.1767352223,
-0.3220783174,
-0.0817598701,
-0.1770444363,
-0.2993301153,
0.0011036806,
-0.1198001057,
0.2405625135,
-0.2157945484,
-0.2780374885,
0.2113569081,
0.0620970987,
0.1622254401,
-0.3558203578,
-0.0777115896,
-0.2533759475,
-0.0681321323,
0.1221703812,
0.1441824883,
0.0095418552,
0.1336416006,
-0.1444761455,
-0.3320430517,
-0.1306844205,
0.0670905337,
0.1010916233,
-0.0039908797,
0.2840559781,
0.0924804807,
0.0219094958,
-0.1482168436,
-0.1065013483,
-0.199454248,
-0.1743006855,
0.0085590398,
0.2015721798,
-0.1814143062,
-0.2146723419,
0.0438419022,
0.0030675931,
0.0793969631,
0.0792411789,
0.3128162026,
-0.4647561312,
0.0515679531,
0.1602490246,
0.5055224895,
0.3906167448,
-0.0799036771,
0.2140353173,
0.3118721545,
0.238157928,
-0.1135246158,
-0.2740479708,
-0.1960723549,
-0.2340989262,
-0.0069742477,
-0.0698654875,
-0.0677563623,
0.0582613088,
0.2001819909,
-0.0457283407,
0.1784251481,
0.1480000764,
0.1270187497,
0.2794733644,
-0.3211748004,
0.0406146049,
0.2804034054,
0.1732444316,
0.1449830681,
0.3777579069,
-0.155561924,
0.1443802565,
-0.2752651572,
0.1954729408,
-0.1280411631,
-0.6779034138,
0.1011460274,
0.0413990989,
-0.0967221558,
-0.0895922408,
-0.1370328218,
0.328610599,
0.031060962,
0.0625447333,
-0.3678520918,
0.083988525,
-0.146653071,
-0.0880458355,
-0.3406415284,
0.0076262462,
-0.0325514041,
0.1551522911,
0.1516608,
-0.0349880047,
-0.0857884064,
0.087555252,
-0.0400349051,
-0.0436643362,
0.0709550157,
0.3961868882,
-0.2319028229,
-0.4020037055,
0.1886534542,
-0.1219384372,
-0.0789997056,
0.0003443246,
0.0715054423,
0.5281402469,
0.3324437141,
0.1592496336,
0.0043609194,
-0.0478784665,
-0.1837077439,
-0.053014677,
0.0596840233,
0.168232128,
0.3104562759,
0.4630704522,
0.1703826487,
-0.1467408538,
0.1241713837,
-0.1453257352,
0.320807457,
-0.0304010976,
0.1715202481,
0.1750356257,
-0.2403035462,
-0.2071764618,
0.2140192688,
-0.5623787642,
-0.2455458194,
0.3704135418,
0.0733888894,
0.0577129461,
-0.1164957657,
0.059036959,
0.1694279909,
0.5225658417,
0.1972418427,
0.3079322875,
-0.4567182362,
-0.0008988748,
-0.5817424059,
-0.0127124181,
0.1645325124,
0.2716319859,
0.1598727554,
0.1856327355,
-0.2448570281,
-0.0757828504,
0.2462040484,
0.2971826494,
0.1082025245,
0.2338157147,
-0.1574129313,
-0.1347533315,
0.1514977068,
-0.1274894923,
0.0899901316,
-0.1791541129,
0.0747643262,
-0.047213681,
0.0362292193,
-0.2751495838,
0.0237009134,
0.0012947904,
-0.1667187661,
0.5104473829,
-0.2578531206,
0.4464896023,
-0.0321036242,
0.1099808365,
-0.4661690891,
0.0489511788,
-0.149584651,
0.1149456576,
0.0738410726,
0.2687283456,
-0.0252669789,
0.3849053085,
-0.4096692204,
0.2747507393,
-0.1608556658,
-0.3426372111,
-0.0414932482,
0.1178343743,
0.0767926872,
0.3193475604,
0.0821501687,
-0.0379418992,
0.0348787792,
0.0631609559,
-0.5235247612,
-0.2149446011,
0.6017241478,
-0.439919889,
-0.048564598,
-0.007045777,
0.2270692587,
0.1117745116,
-0.1416445225,
-0.4197170734,
0.1078706607,
0.2636763752,
0.1084363237,
-0.0447178409,
0.3393389285,
0.2886269391,
0.1458837688,
-0.0916725025,
0.1939832866,
0.1492438167,
-0.1321776062,
-0.1302172691,
-0.3663119376
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | Any updates on this issue?
I face a similar issue. I have many parquet files in S3 and I would like to train on them.
To be honest I even face issues with only getting the last layer embedding out of them. | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 42 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
Any updates on this issue?
I face a similar issue. I have many parquet files in S3 and I would like to train on them.
To be honest I even face issues with only getting the last layer embedding out of them. | [
-0.2508120239,
-0.2407747656,
-0.0531519279,
0.503803134,
0.242677629,
0.0379794091,
0.4234101176,
0.2302230299,
0.0534565076,
0.012271638,
-0.0213181376,
0.3855957985,
-0.2364186496,
0.4087213278,
-0.073391445,
0.1519470215,
0.0036895594,
0.1174419373,
0.2415752858,
0.1663117409,
-0.0428831093,
0.2773868442,
-0.057136409,
0.1090653241,
-0.1840186417,
0.0136174606,
0.0146283228,
0.3506194353,
-0.0750770867,
-0.508487463,
0.0108171804,
-0.0190765858,
0.4783015251,
0.3833351433,
-0.0001139213,
-0.028652925,
0.3157631755,
0.0450190119,
-0.422922194,
-0.3848214447,
-0.5591982007,
0.1110935137,
0.1526587903,
-0.0374609828,
-0.3507242799,
-0.0653411746,
-0.3116797805,
-0.2656854689,
0.4028450251,
0.6623775959,
0.178203851,
0.1914704293,
-0.0731055662,
-0.3078444898,
0.2821202278,
0.020372944,
0.0018275606,
0.2220327407,
-0.2715071142,
0.1779978126,
0.2951637506,
0.270999521,
-0.4019234776,
0.1139448062,
0.5365952253,
0.0304874368,
0.3513381779,
0.0784728006,
0.1274640113,
0.1705706269,
0.5801001787,
-0.136125803,
-0.4543990493,
-0.1849199533,
-0.2141834348,
-0.282492429,
0.1915265769,
0.0894621387,
0.0374889821,
0.0282423031,
-0.0464703329,
-0.0466800593,
-0.0988202915,
0.2466036379,
0.0339197703,
0.4405599833,
-0.2780038416,
0.0633563548,
0.2615090311,
0.0703384131,
0.3421870768,
-0.1132722348,
0.0181239415,
0.0466640554,
-0.2519854009,
0.1674025059,
-0.0153580746,
0.2122866064,
-0.0699797496,
0.1938644201,
0.3034310043,
-0.0739919171,
0.3996637464,
0.2401907295,
0.3883313537,
-0.1680296659,
0.0913827047,
0.0003887896,
-0.0994112715,
0.4869205952,
0.0785982013,
-0.1934863329,
-0.3133123219,
-0.5367279053,
0.1240956038,
0.26881814,
0.3971947134,
-0.3510358036,
-0.2658776045,
-0.0860201418,
-0.1192131862,
-0.1965767741,
0.2694830596,
0.4972229898,
-0.3471300006,
-0.1139851362,
-0.117971167,
0.2110882849,
-0.2143540531,
0.0854032934,
-0.1983183771,
0.2434528023,
-0.3190573752,
0.0227509756,
0.1486800015,
-0.5799325705,
0.5168523192,
-0.0738640502,
0.0051263194,
-0.3440084159,
0.1492901444,
-0.2164645791,
0.177761659,
0.1814397275,
0.1935321689,
0.2570755482,
-0.0537815392,
-0.0760162771,
-0.1820332855,
0.0855755582,
-0.1849054843,
-0.479770869,
0.0412795767,
0.2240626961,
-0.2657831907,
-0.1602721363,
-0.0594209917,
-0.1859488189,
0.2781680822,
-0.0984314457,
-0.3886997104,
0.0453321859,
-0.1181020439,
-0.220781222,
0.4690742791,
0.3192172945,
-0.3537426293,
0.1085963696,
-0.4716525674,
0.1138472706,
0.0835105702,
0.2105171382,
-0.3659239113,
0.44895944,
-0.3048421741,
0.132893756,
0.5610041618,
-0.2565936446,
0.0060540354,
0.0853613913,
-0.0421511047,
-0.1606776565,
0.1342203468,
-0.063041538,
-0.1340705603,
-0.1085646749,
0.0167824961,
0.3441396654,
0.0382881239,
0.0388525389,
-0.1566990167,
-0.0247691069,
0.1257413179,
0.2443983406,
0.1100836396,
-0.0220542811,
-0.037371058,
-0.1964022666,
-0.0556681119,
-0.1184008718,
-0.0434881337,
0.4679804146,
0.2733067274,
0.3011100888,
-0.0028269668,
0.151649937,
-0.2742569149,
0.1333040148,
0.0448953696,
-0.277271688,
-0.0668592453,
0.0106649278,
-0.2895233929,
0.0034127384,
-0.4520741403,
0.0989072993,
0.1053080484,
0.3138041794,
0.2326270342,
-0.0971177518,
-0.1190225929,
-0.3059856594,
0.3305367529,
-0.0151231829,
-0.3088081479,
0.1135314554,
-0.405138433,
-0.0548964813,
0.086904034,
0.043993637,
0.1716849506,
0.117635712,
0.0150822662,
0.1787702143,
0.1243599877,
0.227449581,
-0.2144690305,
0.1562109143,
-0.1199653596,
0.0306926258,
0.1797364056,
-0.1334499121,
0.135618493,
0.0835731253,
-0.0444402322,
0.4771926701,
-0.0267101228,
0.1894396394,
0.1397074908,
0.015092548,
0.2696096897,
-0.1694879383,
-0.0204154309,
-0.1353713572,
0.0476755649,
-0.1200016439,
0.1146694496,
0.0762753785,
-0.0729277357,
-0.1295491904,
0.3834596276,
0.0959831476,
-0.0108044818,
-0.2696373463,
-0.2296589613,
-0.1449697912,
0.0653626025,
0.4955293536,
0.3665238023,
0.2210590094,
0.0965471342,
-0.0355797336,
-0.053980913,
-0.1855221093,
0.2379353791,
0.423758626,
0.4380970895,
0.3556295931,
-0.3781281412,
-0.0747242719,
-0.2402071655,
-0.1607343704,
0.1642103195,
0.282250762,
-0.4002408981,
0.1890036017,
-0.0598931499,
-0.1696403176,
-0.2982714772,
-0.354865402,
-0.1032037139,
-0.2554684579,
-0.1192266941,
0.2769101858,
-0.2668560445,
-0.0272913184,
0.0960364565,
0.0128378617,
-0.0740059018,
-0.0552991815,
-0.3418391645,
-0.2471805066,
-0.170404911,
0.0550117567,
0.2183093727,
0.0958848894,
0.2658966184,
-0.1865488142,
0.1083012745,
-0.4633398056,
-0.0825943574,
-0.017645603,
-0.00809744,
0.302495122,
0.2742293179,
0.0802076086,
0.2997994721,
-0.246578306,
0.465375483,
-0.0120982472,
0.020435391,
0.2364754528,
-0.0213384405,
-0.1121435761,
-0.0333960205,
-0.3809586167,
0.069973059,
-0.4534810483,
-0.3755662739,
0.0112920757,
0.1440522224,
0.2753454149,
0.3328948319,
0.2299250364,
-0.2099560201,
0.3361962736,
-0.2096321285,
-0.2037050128,
0.1267782003,
-0.2523743808,
-0.2639803886,
0.330471158,
-0.0450137146,
0.8056795597,
-0.1035315022,
-0.2581114471,
-0.0281819236,
0.054154899,
-0.313547641,
-0.1422800869,
-0.2467392087,
0.3080141544,
0.2088037729,
-0.0856468678,
-0.00781768,
-0.3258493245,
0.0911114514,
-0.2148194611,
0.2122523338,
-0.2017768919,
0.8904486299,
-0.005194304,
0.4429089427,
0.1470212191,
-0.2118463069,
0.4529938102,
-0.106380254,
0.1824466288,
-0.104823485,
-0.2602484226,
-0.1180830747,
0.1664526463,
-0.2900656164,
0.1482967436,
-0.2593996823,
-0.0632347241,
-0.2945417166,
0.0631955341,
-0.3335377276,
-0.2166405469,
0.0108936122,
-0.2646001279,
0.1334774345,
-0.1084317863,
0.0371413603,
-0.0522481203,
0.1782281846,
0.1964564323,
0.27402547,
0.179841131,
-0.0360956378,
-0.2892716527,
-0.0228561442,
-0.3024624884,
0.3309326172,
-0.0449293703,
0.1445601135,
-0.1725996435,
-0.2284810841,
0.108591482,
-0.2120635062,
0.5687654018,
-0.288608104,
0.0759903938,
0.256681025,
-0.1874073744,
-0.4711459875,
-0.2658158541,
-0.0675032884,
0.2460009456,
0.0289377607,
0.4087799788,
-0.1191498488,
-0.4835370779,
0.1473180205,
-0.0567419343,
-0.0862192139,
-0.2047349066,
-0.347964406,
-0.1231661215,
-0.3823906481,
-0.0772972107,
-0.0697869286,
0.34709993,
0.0993614122,
-0.2050060034,
0.0540419556,
0.0844746456,
0.026174657,
-0.0463367775,
0.472672075,
0.033060465,
0.2310326695,
0.272346288,
0.3769769967,
0.1094539538,
0.3990898132,
0.2031018287,
-0.4686417282,
-0.1039526761,
0.0307145175,
0.4628866613,
-0.0234796386,
-0.1841690391,
0.105656974,
0.1430650949,
0.1544752419,
-0.1691707522,
0.1093408838,
0.4040111601,
0.0435306467,
-0.3053804338,
-0.5429390073,
-0.0136748273,
0.0826764479,
0.0919226408,
-0.0626313612,
-0.320395112,
-0.2080416977,
0.2609346807,
0.4015892446,
0.6901730895,
-0.0723920986,
0.2966907918,
0.5587425232,
0.0910604298,
0.0016884506,
0.2774416208,
-0.1042706966,
-0.5139324665,
0.1954909712,
0.0833372399,
-0.1815755665,
-0.0093928548,
0.2339336723,
-0.1757297814,
0.2052434683,
-0.219678551,
0.0933762267,
-0.1733642668,
0.1602140218,
-0.1688348651,
-0.0502106808,
-0.1218758449,
0.0497321635,
-0.0692729354,
0.0820501298,
-0.1036421284,
-0.2097410858,
0.0337742157,
-0.2309394777,
0.0748144314,
0.2753438056,
0.0081002135,
0.0343262553,
-0.2805510163,
-0.1951714903,
0.1213370785,
0.2447197884,
0.3164098561,
0.0351310372,
-0.0893451646,
0.101099357,
-0.3682294786,
-0.2763565481,
-0.2608575821,
-0.0956430286,
0.184987098,
-0.2108018249,
-0.0499804318,
0.124062553,
-0.0613715164,
-0.3762873709,
-0.0335861295,
-0.0350456983,
0.2754875422,
-0.4317030907,
-0.2545202374,
-0.1319119632,
-0.1161126718,
-0.1919200718,
0.1608151197,
0.2287707329,
-0.1201415956,
0.0152175557,
-0.1504314095,
-0.2745188177,
0.0584028959,
0.5248116255,
-0.1016796306,
0.1521697938,
0.6307945848,
0.0710354224,
-0.1138498411,
-0.2894232273,
-0.2996491194,
0.0183574408,
-0.2909432352,
0.1833908111,
0.2434942126,
-0.0689216256,
0.2441022843,
0.3077547252,
0.1714058071,
-0.0989842564,
-0.0508269295,
-0.5483649969,
-0.0284050573,
0.0474093482,
-0.1534882635,
0.3620048463,
0.1767352223,
-0.3220783174,
-0.0817598701,
-0.1770444363,
-0.2993301153,
0.0011036806,
-0.1198001057,
0.2405625135,
-0.2157945484,
-0.2780374885,
0.2113569081,
0.0620970987,
0.1622254401,
-0.3558203578,
-0.0777115896,
-0.2533759475,
-0.0681321323,
0.1221703812,
0.1441824883,
0.0095418552,
0.1336416006,
-0.1444761455,
-0.3320430517,
-0.1306844205,
0.0670905337,
0.1010916233,
-0.0039908797,
0.2840559781,
0.0924804807,
0.0219094958,
-0.1482168436,
-0.1065013483,
-0.199454248,
-0.1743006855,
0.0085590398,
0.2015721798,
-0.1814143062,
-0.2146723419,
0.0438419022,
0.0030675931,
0.0793969631,
0.0792411789,
0.3128162026,
-0.4647561312,
0.0515679531,
0.1602490246,
0.5055224895,
0.3906167448,
-0.0799036771,
0.2140353173,
0.3118721545,
0.238157928,
-0.1135246158,
-0.2740479708,
-0.1960723549,
-0.2340989262,
-0.0069742477,
-0.0698654875,
-0.0677563623,
0.0582613088,
0.2001819909,
-0.0457283407,
0.1784251481,
0.1480000764,
0.1270187497,
0.2794733644,
-0.3211748004,
0.0406146049,
0.2804034054,
0.1732444316,
0.1449830681,
0.3777579069,
-0.155561924,
0.1443802565,
-0.2752651572,
0.1954729408,
-0.1280411631,
-0.6779034138,
0.1011460274,
0.0413990989,
-0.0967221558,
-0.0895922408,
-0.1370328218,
0.328610599,
0.031060962,
0.0625447333,
-0.3678520918,
0.083988525,
-0.146653071,
-0.0880458355,
-0.3406415284,
0.0076262462,
-0.0325514041,
0.1551522911,
0.1516608,
-0.0349880047,
-0.0857884064,
0.087555252,
-0.0400349051,
-0.0436643362,
0.0709550157,
0.3961868882,
-0.2319028229,
-0.4020037055,
0.1886534542,
-0.1219384372,
-0.0789997056,
0.0003443246,
0.0715054423,
0.5281402469,
0.3324437141,
0.1592496336,
0.0043609194,
-0.0478784665,
-0.1837077439,
-0.053014677,
0.0596840233,
0.168232128,
0.3104562759,
0.4630704522,
0.1703826487,
-0.1467408538,
0.1241713837,
-0.1453257352,
0.320807457,
-0.0304010976,
0.1715202481,
0.1750356257,
-0.2403035462,
-0.2071764618,
0.2140192688,
-0.5623787642,
-0.2455458194,
0.3704135418,
0.0733888894,
0.0577129461,
-0.1164957657,
0.059036959,
0.1694279909,
0.5225658417,
0.1972418427,
0.3079322875,
-0.4567182362,
-0.0008988748,
-0.5817424059,
-0.0127124181,
0.1645325124,
0.2716319859,
0.1598727554,
0.1856327355,
-0.2448570281,
-0.0757828504,
0.2462040484,
0.2971826494,
0.1082025245,
0.2338157147,
-0.1574129313,
-0.1347533315,
0.1514977068,
-0.1274894923,
0.0899901316,
-0.1791541129,
0.0747643262,
-0.047213681,
0.0362292193,
-0.2751495838,
0.0237009134,
0.0012947904,
-0.1667187661,
0.5104473829,
-0.2578531206,
0.4464896023,
-0.0321036242,
0.1099808365,
-0.4661690891,
0.0489511788,
-0.149584651,
0.1149456576,
0.0738410726,
0.2687283456,
-0.0252669789,
0.3849053085,
-0.4096692204,
0.2747507393,
-0.1608556658,
-0.3426372111,
-0.0414932482,
0.1178343743,
0.0767926872,
0.3193475604,
0.0821501687,
-0.0379418992,
0.0348787792,
0.0631609559,
-0.5235247612,
-0.2149446011,
0.6017241478,
-0.439919889,
-0.048564598,
-0.007045777,
0.2270692587,
0.1117745116,
-0.1416445225,
-0.4197170734,
0.1078706607,
0.2636763752,
0.1084363237,
-0.0447178409,
0.3393389285,
0.2886269391,
0.1458837688,
-0.0916725025,
0.1939832866,
0.1492438167,
-0.1321776062,
-0.1302172691,
-0.3663119376
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | Hi dorlavie,
You can find one solution that i have mentioned above, that can help you.
And there is one more solution also which is downloading files locally
| In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 28 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
Hi dorlavie,
You can find one solution that i have mentioned above, that can help you.
And there is one more solution also which is downloading files locally
| [
-0.2508120239,
-0.2407747656,
-0.0531519279,
0.503803134,
0.242677629,
0.0379794091,
0.4234101176,
0.2302230299,
0.0534565076,
0.012271638,
-0.0213181376,
0.3855957985,
-0.2364186496,
0.4087213278,
-0.073391445,
0.1519470215,
0.0036895594,
0.1174419373,
0.2415752858,
0.1663117409,
-0.0428831093,
0.2773868442,
-0.057136409,
0.1090653241,
-0.1840186417,
0.0136174606,
0.0146283228,
0.3506194353,
-0.0750770867,
-0.508487463,
0.0108171804,
-0.0190765858,
0.4783015251,
0.3833351433,
-0.0001139213,
-0.028652925,
0.3157631755,
0.0450190119,
-0.422922194,
-0.3848214447,
-0.5591982007,
0.1110935137,
0.1526587903,
-0.0374609828,
-0.3507242799,
-0.0653411746,
-0.3116797805,
-0.2656854689,
0.4028450251,
0.6623775959,
0.178203851,
0.1914704293,
-0.0731055662,
-0.3078444898,
0.2821202278,
0.020372944,
0.0018275606,
0.2220327407,
-0.2715071142,
0.1779978126,
0.2951637506,
0.270999521,
-0.4019234776,
0.1139448062,
0.5365952253,
0.0304874368,
0.3513381779,
0.0784728006,
0.1274640113,
0.1705706269,
0.5801001787,
-0.136125803,
-0.4543990493,
-0.1849199533,
-0.2141834348,
-0.282492429,
0.1915265769,
0.0894621387,
0.0374889821,
0.0282423031,
-0.0464703329,
-0.0466800593,
-0.0988202915,
0.2466036379,
0.0339197703,
0.4405599833,
-0.2780038416,
0.0633563548,
0.2615090311,
0.0703384131,
0.3421870768,
-0.1132722348,
0.0181239415,
0.0466640554,
-0.2519854009,
0.1674025059,
-0.0153580746,
0.2122866064,
-0.0699797496,
0.1938644201,
0.3034310043,
-0.0739919171,
0.3996637464,
0.2401907295,
0.3883313537,
-0.1680296659,
0.0913827047,
0.0003887896,
-0.0994112715,
0.4869205952,
0.0785982013,
-0.1934863329,
-0.3133123219,
-0.5367279053,
0.1240956038,
0.26881814,
0.3971947134,
-0.3510358036,
-0.2658776045,
-0.0860201418,
-0.1192131862,
-0.1965767741,
0.2694830596,
0.4972229898,
-0.3471300006,
-0.1139851362,
-0.117971167,
0.2110882849,
-0.2143540531,
0.0854032934,
-0.1983183771,
0.2434528023,
-0.3190573752,
0.0227509756,
0.1486800015,
-0.5799325705,
0.5168523192,
-0.0738640502,
0.0051263194,
-0.3440084159,
0.1492901444,
-0.2164645791,
0.177761659,
0.1814397275,
0.1935321689,
0.2570755482,
-0.0537815392,
-0.0760162771,
-0.1820332855,
0.0855755582,
-0.1849054843,
-0.479770869,
0.0412795767,
0.2240626961,
-0.2657831907,
-0.1602721363,
-0.0594209917,
-0.1859488189,
0.2781680822,
-0.0984314457,
-0.3886997104,
0.0453321859,
-0.1181020439,
-0.220781222,
0.4690742791,
0.3192172945,
-0.3537426293,
0.1085963696,
-0.4716525674,
0.1138472706,
0.0835105702,
0.2105171382,
-0.3659239113,
0.44895944,
-0.3048421741,
0.132893756,
0.5610041618,
-0.2565936446,
0.0060540354,
0.0853613913,
-0.0421511047,
-0.1606776565,
0.1342203468,
-0.063041538,
-0.1340705603,
-0.1085646749,
0.0167824961,
0.3441396654,
0.0382881239,
0.0388525389,
-0.1566990167,
-0.0247691069,
0.1257413179,
0.2443983406,
0.1100836396,
-0.0220542811,
-0.037371058,
-0.1964022666,
-0.0556681119,
-0.1184008718,
-0.0434881337,
0.4679804146,
0.2733067274,
0.3011100888,
-0.0028269668,
0.151649937,
-0.2742569149,
0.1333040148,
0.0448953696,
-0.277271688,
-0.0668592453,
0.0106649278,
-0.2895233929,
0.0034127384,
-0.4520741403,
0.0989072993,
0.1053080484,
0.3138041794,
0.2326270342,
-0.0971177518,
-0.1190225929,
-0.3059856594,
0.3305367529,
-0.0151231829,
-0.3088081479,
0.1135314554,
-0.405138433,
-0.0548964813,
0.086904034,
0.043993637,
0.1716849506,
0.117635712,
0.0150822662,
0.1787702143,
0.1243599877,
0.227449581,
-0.2144690305,
0.1562109143,
-0.1199653596,
0.0306926258,
0.1797364056,
-0.1334499121,
0.135618493,
0.0835731253,
-0.0444402322,
0.4771926701,
-0.0267101228,
0.1894396394,
0.1397074908,
0.015092548,
0.2696096897,
-0.1694879383,
-0.0204154309,
-0.1353713572,
0.0476755649,
-0.1200016439,
0.1146694496,
0.0762753785,
-0.0729277357,
-0.1295491904,
0.3834596276,
0.0959831476,
-0.0108044818,
-0.2696373463,
-0.2296589613,
-0.1449697912,
0.0653626025,
0.4955293536,
0.3665238023,
0.2210590094,
0.0965471342,
-0.0355797336,
-0.053980913,
-0.1855221093,
0.2379353791,
0.423758626,
0.4380970895,
0.3556295931,
-0.3781281412,
-0.0747242719,
-0.2402071655,
-0.1607343704,
0.1642103195,
0.282250762,
-0.4002408981,
0.1890036017,
-0.0598931499,
-0.1696403176,
-0.2982714772,
-0.354865402,
-0.1032037139,
-0.2554684579,
-0.1192266941,
0.2769101858,
-0.2668560445,
-0.0272913184,
0.0960364565,
0.0128378617,
-0.0740059018,
-0.0552991815,
-0.3418391645,
-0.2471805066,
-0.170404911,
0.0550117567,
0.2183093727,
0.0958848894,
0.2658966184,
-0.1865488142,
0.1083012745,
-0.4633398056,
-0.0825943574,
-0.017645603,
-0.00809744,
0.302495122,
0.2742293179,
0.0802076086,
0.2997994721,
-0.246578306,
0.465375483,
-0.0120982472,
0.020435391,
0.2364754528,
-0.0213384405,
-0.1121435761,
-0.0333960205,
-0.3809586167,
0.069973059,
-0.4534810483,
-0.3755662739,
0.0112920757,
0.1440522224,
0.2753454149,
0.3328948319,
0.2299250364,
-0.2099560201,
0.3361962736,
-0.2096321285,
-0.2037050128,
0.1267782003,
-0.2523743808,
-0.2639803886,
0.330471158,
-0.0450137146,
0.8056795597,
-0.1035315022,
-0.2581114471,
-0.0281819236,
0.054154899,
-0.313547641,
-0.1422800869,
-0.2467392087,
0.3080141544,
0.2088037729,
-0.0856468678,
-0.00781768,
-0.3258493245,
0.0911114514,
-0.2148194611,
0.2122523338,
-0.2017768919,
0.8904486299,
-0.005194304,
0.4429089427,
0.1470212191,
-0.2118463069,
0.4529938102,
-0.106380254,
0.1824466288,
-0.104823485,
-0.2602484226,
-0.1180830747,
0.1664526463,
-0.2900656164,
0.1482967436,
-0.2593996823,
-0.0632347241,
-0.2945417166,
0.0631955341,
-0.3335377276,
-0.2166405469,
0.0108936122,
-0.2646001279,
0.1334774345,
-0.1084317863,
0.0371413603,
-0.0522481203,
0.1782281846,
0.1964564323,
0.27402547,
0.179841131,
-0.0360956378,
-0.2892716527,
-0.0228561442,
-0.3024624884,
0.3309326172,
-0.0449293703,
0.1445601135,
-0.1725996435,
-0.2284810841,
0.108591482,
-0.2120635062,
0.5687654018,
-0.288608104,
0.0759903938,
0.256681025,
-0.1874073744,
-0.4711459875,
-0.2658158541,
-0.0675032884,
0.2460009456,
0.0289377607,
0.4087799788,
-0.1191498488,
-0.4835370779,
0.1473180205,
-0.0567419343,
-0.0862192139,
-0.2047349066,
-0.347964406,
-0.1231661215,
-0.3823906481,
-0.0772972107,
-0.0697869286,
0.34709993,
0.0993614122,
-0.2050060034,
0.0540419556,
0.0844746456,
0.026174657,
-0.0463367775,
0.472672075,
0.033060465,
0.2310326695,
0.272346288,
0.3769769967,
0.1094539538,
0.3990898132,
0.2031018287,
-0.4686417282,
-0.1039526761,
0.0307145175,
0.4628866613,
-0.0234796386,
-0.1841690391,
0.105656974,
0.1430650949,
0.1544752419,
-0.1691707522,
0.1093408838,
0.4040111601,
0.0435306467,
-0.3053804338,
-0.5429390073,
-0.0136748273,
0.0826764479,
0.0919226408,
-0.0626313612,
-0.320395112,
-0.2080416977,
0.2609346807,
0.4015892446,
0.6901730895,
-0.0723920986,
0.2966907918,
0.5587425232,
0.0910604298,
0.0016884506,
0.2774416208,
-0.1042706966,
-0.5139324665,
0.1954909712,
0.0833372399,
-0.1815755665,
-0.0093928548,
0.2339336723,
-0.1757297814,
0.2052434683,
-0.219678551,
0.0933762267,
-0.1733642668,
0.1602140218,
-0.1688348651,
-0.0502106808,
-0.1218758449,
0.0497321635,
-0.0692729354,
0.0820501298,
-0.1036421284,
-0.2097410858,
0.0337742157,
-0.2309394777,
0.0748144314,
0.2753438056,
0.0081002135,
0.0343262553,
-0.2805510163,
-0.1951714903,
0.1213370785,
0.2447197884,
0.3164098561,
0.0351310372,
-0.0893451646,
0.101099357,
-0.3682294786,
-0.2763565481,
-0.2608575821,
-0.0956430286,
0.184987098,
-0.2108018249,
-0.0499804318,
0.124062553,
-0.0613715164,
-0.3762873709,
-0.0335861295,
-0.0350456983,
0.2754875422,
-0.4317030907,
-0.2545202374,
-0.1319119632,
-0.1161126718,
-0.1919200718,
0.1608151197,
0.2287707329,
-0.1201415956,
0.0152175557,
-0.1504314095,
-0.2745188177,
0.0584028959,
0.5248116255,
-0.1016796306,
0.1521697938,
0.6307945848,
0.0710354224,
-0.1138498411,
-0.2894232273,
-0.2996491194,
0.0183574408,
-0.2909432352,
0.1833908111,
0.2434942126,
-0.0689216256,
0.2441022843,
0.3077547252,
0.1714058071,
-0.0989842564,
-0.0508269295,
-0.5483649969,
-0.0284050573,
0.0474093482,
-0.1534882635,
0.3620048463,
0.1767352223,
-0.3220783174,
-0.0817598701,
-0.1770444363,
-0.2993301153,
0.0011036806,
-0.1198001057,
0.2405625135,
-0.2157945484,
-0.2780374885,
0.2113569081,
0.0620970987,
0.1622254401,
-0.3558203578,
-0.0777115896,
-0.2533759475,
-0.0681321323,
0.1221703812,
0.1441824883,
0.0095418552,
0.1336416006,
-0.1444761455,
-0.3320430517,
-0.1306844205,
0.0670905337,
0.1010916233,
-0.0039908797,
0.2840559781,
0.0924804807,
0.0219094958,
-0.1482168436,
-0.1065013483,
-0.199454248,
-0.1743006855,
0.0085590398,
0.2015721798,
-0.1814143062,
-0.2146723419,
0.0438419022,
0.0030675931,
0.0793969631,
0.0792411789,
0.3128162026,
-0.4647561312,
0.0515679531,
0.1602490246,
0.5055224895,
0.3906167448,
-0.0799036771,
0.2140353173,
0.3118721545,
0.238157928,
-0.1135246158,
-0.2740479708,
-0.1960723549,
-0.2340989262,
-0.0069742477,
-0.0698654875,
-0.0677563623,
0.0582613088,
0.2001819909,
-0.0457283407,
0.1784251481,
0.1480000764,
0.1270187497,
0.2794733644,
-0.3211748004,
0.0406146049,
0.2804034054,
0.1732444316,
0.1449830681,
0.3777579069,
-0.155561924,
0.1443802565,
-0.2752651572,
0.1954729408,
-0.1280411631,
-0.6779034138,
0.1011460274,
0.0413990989,
-0.0967221558,
-0.0895922408,
-0.1370328218,
0.328610599,
0.031060962,
0.0625447333,
-0.3678520918,
0.083988525,
-0.146653071,
-0.0880458355,
-0.3406415284,
0.0076262462,
-0.0325514041,
0.1551522911,
0.1516608,
-0.0349880047,
-0.0857884064,
0.087555252,
-0.0400349051,
-0.0436643362,
0.0709550157,
0.3961868882,
-0.2319028229,
-0.4020037055,
0.1886534542,
-0.1219384372,
-0.0789997056,
0.0003443246,
0.0715054423,
0.5281402469,
0.3324437141,
0.1592496336,
0.0043609194,
-0.0478784665,
-0.1837077439,
-0.053014677,
0.0596840233,
0.168232128,
0.3104562759,
0.4630704522,
0.1703826487,
-0.1467408538,
0.1241713837,
-0.1453257352,
0.320807457,
-0.0304010976,
0.1715202481,
0.1750356257,
-0.2403035462,
-0.2071764618,
0.2140192688,
-0.5623787642,
-0.2455458194,
0.3704135418,
0.0733888894,
0.0577129461,
-0.1164957657,
0.059036959,
0.1694279909,
0.5225658417,
0.1972418427,
0.3079322875,
-0.4567182362,
-0.0008988748,
-0.5817424059,
-0.0127124181,
0.1645325124,
0.2716319859,
0.1598727554,
0.1856327355,
-0.2448570281,
-0.0757828504,
0.2462040484,
0.2971826494,
0.1082025245,
0.2338157147,
-0.1574129313,
-0.1347533315,
0.1514977068,
-0.1274894923,
0.0899901316,
-0.1791541129,
0.0747643262,
-0.047213681,
0.0362292193,
-0.2751495838,
0.0237009134,
0.0012947904,
-0.1667187661,
0.5104473829,
-0.2578531206,
0.4464896023,
-0.0321036242,
0.1099808365,
-0.4661690891,
0.0489511788,
-0.149584651,
0.1149456576,
0.0738410726,
0.2687283456,
-0.0252669789,
0.3849053085,
-0.4096692204,
0.2747507393,
-0.1608556658,
-0.3426372111,
-0.0414932482,
0.1178343743,
0.0767926872,
0.3193475604,
0.0821501687,
-0.0379418992,
0.0348787792,
0.0631609559,
-0.5235247612,
-0.2149446011,
0.6017241478,
-0.439919889,
-0.048564598,
-0.007045777,
0.2270692587,
0.1117745116,
-0.1416445225,
-0.4197170734,
0.1078706607,
0.2636763752,
0.1084363237,
-0.0447178409,
0.3393389285,
0.2886269391,
0.1458837688,
-0.0916725025,
0.1939832866,
0.1492438167,
-0.1321776062,
-0.1302172691,
-0.3663119376
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | > Hi dorlavie,
> You can find one solution that i have mentioned above, that can help you.
> And there is one more solution also which is downloading files locally
mahesh1amour, thanks for the fast reply
Unfortunately, in my case I can not read with pandas. The dataset is too big (50GB).
In addition, due to security concerns I am not allowed to save the data locally | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 68 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
> Hi dorlavie,
> You can find one solution that i have mentioned above, that can help you.
> And there is one more solution also which is downloading files locally
mahesh1amour, thanks for the fast reply
Unfortunately, in my case I can not read with pandas. The dataset is too big (50GB).
In addition, due to security concerns I am not allowed to save the data locally | [
-0.2508120239,
-0.2407747656,
-0.0531519279,
0.503803134,
0.242677629,
0.0379794091,
0.4234101176,
0.2302230299,
0.0534565076,
0.012271638,
-0.0213181376,
0.3855957985,
-0.2364186496,
0.4087213278,
-0.073391445,
0.1519470215,
0.0036895594,
0.1174419373,
0.2415752858,
0.1663117409,
-0.0428831093,
0.2773868442,
-0.057136409,
0.1090653241,
-0.1840186417,
0.0136174606,
0.0146283228,
0.3506194353,
-0.0750770867,
-0.508487463,
0.0108171804,
-0.0190765858,
0.4783015251,
0.3833351433,
-0.0001139213,
-0.028652925,
0.3157631755,
0.0450190119,
-0.422922194,
-0.3848214447,
-0.5591982007,
0.1110935137,
0.1526587903,
-0.0374609828,
-0.3507242799,
-0.0653411746,
-0.3116797805,
-0.2656854689,
0.4028450251,
0.6623775959,
0.178203851,
0.1914704293,
-0.0731055662,
-0.3078444898,
0.2821202278,
0.020372944,
0.0018275606,
0.2220327407,
-0.2715071142,
0.1779978126,
0.2951637506,
0.270999521,
-0.4019234776,
0.1139448062,
0.5365952253,
0.0304874368,
0.3513381779,
0.0784728006,
0.1274640113,
0.1705706269,
0.5801001787,
-0.136125803,
-0.4543990493,
-0.1849199533,
-0.2141834348,
-0.282492429,
0.1915265769,
0.0894621387,
0.0374889821,
0.0282423031,
-0.0464703329,
-0.0466800593,
-0.0988202915,
0.2466036379,
0.0339197703,
0.4405599833,
-0.2780038416,
0.0633563548,
0.2615090311,
0.0703384131,
0.3421870768,
-0.1132722348,
0.0181239415,
0.0466640554,
-0.2519854009,
0.1674025059,
-0.0153580746,
0.2122866064,
-0.0699797496,
0.1938644201,
0.3034310043,
-0.0739919171,
0.3996637464,
0.2401907295,
0.3883313537,
-0.1680296659,
0.0913827047,
0.0003887896,
-0.0994112715,
0.4869205952,
0.0785982013,
-0.1934863329,
-0.3133123219,
-0.5367279053,
0.1240956038,
0.26881814,
0.3971947134,
-0.3510358036,
-0.2658776045,
-0.0860201418,
-0.1192131862,
-0.1965767741,
0.2694830596,
0.4972229898,
-0.3471300006,
-0.1139851362,
-0.117971167,
0.2110882849,
-0.2143540531,
0.0854032934,
-0.1983183771,
0.2434528023,
-0.3190573752,
0.0227509756,
0.1486800015,
-0.5799325705,
0.5168523192,
-0.0738640502,
0.0051263194,
-0.3440084159,
0.1492901444,
-0.2164645791,
0.177761659,
0.1814397275,
0.1935321689,
0.2570755482,
-0.0537815392,
-0.0760162771,
-0.1820332855,
0.0855755582,
-0.1849054843,
-0.479770869,
0.0412795767,
0.2240626961,
-0.2657831907,
-0.1602721363,
-0.0594209917,
-0.1859488189,
0.2781680822,
-0.0984314457,
-0.3886997104,
0.0453321859,
-0.1181020439,
-0.220781222,
0.4690742791,
0.3192172945,
-0.3537426293,
0.1085963696,
-0.4716525674,
0.1138472706,
0.0835105702,
0.2105171382,
-0.3659239113,
0.44895944,
-0.3048421741,
0.132893756,
0.5610041618,
-0.2565936446,
0.0060540354,
0.0853613913,
-0.0421511047,
-0.1606776565,
0.1342203468,
-0.063041538,
-0.1340705603,
-0.1085646749,
0.0167824961,
0.3441396654,
0.0382881239,
0.0388525389,
-0.1566990167,
-0.0247691069,
0.1257413179,
0.2443983406,
0.1100836396,
-0.0220542811,
-0.037371058,
-0.1964022666,
-0.0556681119,
-0.1184008718,
-0.0434881337,
0.4679804146,
0.2733067274,
0.3011100888,
-0.0028269668,
0.151649937,
-0.2742569149,
0.1333040148,
0.0448953696,
-0.277271688,
-0.0668592453,
0.0106649278,
-0.2895233929,
0.0034127384,
-0.4520741403,
0.0989072993,
0.1053080484,
0.3138041794,
0.2326270342,
-0.0971177518,
-0.1190225929,
-0.3059856594,
0.3305367529,
-0.0151231829,
-0.3088081479,
0.1135314554,
-0.405138433,
-0.0548964813,
0.086904034,
0.043993637,
0.1716849506,
0.117635712,
0.0150822662,
0.1787702143,
0.1243599877,
0.227449581,
-0.2144690305,
0.1562109143,
-0.1199653596,
0.0306926258,
0.1797364056,
-0.1334499121,
0.135618493,
0.0835731253,
-0.0444402322,
0.4771926701,
-0.0267101228,
0.1894396394,
0.1397074908,
0.015092548,
0.2696096897,
-0.1694879383,
-0.0204154309,
-0.1353713572,
0.0476755649,
-0.1200016439,
0.1146694496,
0.0762753785,
-0.0729277357,
-0.1295491904,
0.3834596276,
0.0959831476,
-0.0108044818,
-0.2696373463,
-0.2296589613,
-0.1449697912,
0.0653626025,
0.4955293536,
0.3665238023,
0.2210590094,
0.0965471342,
-0.0355797336,
-0.053980913,
-0.1855221093,
0.2379353791,
0.423758626,
0.4380970895,
0.3556295931,
-0.3781281412,
-0.0747242719,
-0.2402071655,
-0.1607343704,
0.1642103195,
0.282250762,
-0.4002408981,
0.1890036017,
-0.0598931499,
-0.1696403176,
-0.2982714772,
-0.354865402,
-0.1032037139,
-0.2554684579,
-0.1192266941,
0.2769101858,
-0.2668560445,
-0.0272913184,
0.0960364565,
0.0128378617,
-0.0740059018,
-0.0552991815,
-0.3418391645,
-0.2471805066,
-0.170404911,
0.0550117567,
0.2183093727,
0.0958848894,
0.2658966184,
-0.1865488142,
0.1083012745,
-0.4633398056,
-0.0825943574,
-0.017645603,
-0.00809744,
0.302495122,
0.2742293179,
0.0802076086,
0.2997994721,
-0.246578306,
0.465375483,
-0.0120982472,
0.020435391,
0.2364754528,
-0.0213384405,
-0.1121435761,
-0.0333960205,
-0.3809586167,
0.069973059,
-0.4534810483,
-0.3755662739,
0.0112920757,
0.1440522224,
0.2753454149,
0.3328948319,
0.2299250364,
-0.2099560201,
0.3361962736,
-0.2096321285,
-0.2037050128,
0.1267782003,
-0.2523743808,
-0.2639803886,
0.330471158,
-0.0450137146,
0.8056795597,
-0.1035315022,
-0.2581114471,
-0.0281819236,
0.054154899,
-0.313547641,
-0.1422800869,
-0.2467392087,
0.3080141544,
0.2088037729,
-0.0856468678,
-0.00781768,
-0.3258493245,
0.0911114514,
-0.2148194611,
0.2122523338,
-0.2017768919,
0.8904486299,
-0.005194304,
0.4429089427,
0.1470212191,
-0.2118463069,
0.4529938102,
-0.106380254,
0.1824466288,
-0.104823485,
-0.2602484226,
-0.1180830747,
0.1664526463,
-0.2900656164,
0.1482967436,
-0.2593996823,
-0.0632347241,
-0.2945417166,
0.0631955341,
-0.3335377276,
-0.2166405469,
0.0108936122,
-0.2646001279,
0.1334774345,
-0.1084317863,
0.0371413603,
-0.0522481203,
0.1782281846,
0.1964564323,
0.27402547,
0.179841131,
-0.0360956378,
-0.2892716527,
-0.0228561442,
-0.3024624884,
0.3309326172,
-0.0449293703,
0.1445601135,
-0.1725996435,
-0.2284810841,
0.108591482,
-0.2120635062,
0.5687654018,
-0.288608104,
0.0759903938,
0.256681025,
-0.1874073744,
-0.4711459875,
-0.2658158541,
-0.0675032884,
0.2460009456,
0.0289377607,
0.4087799788,
-0.1191498488,
-0.4835370779,
0.1473180205,
-0.0567419343,
-0.0862192139,
-0.2047349066,
-0.347964406,
-0.1231661215,
-0.3823906481,
-0.0772972107,
-0.0697869286,
0.34709993,
0.0993614122,
-0.2050060034,
0.0540419556,
0.0844746456,
0.026174657,
-0.0463367775,
0.472672075,
0.033060465,
0.2310326695,
0.272346288,
0.3769769967,
0.1094539538,
0.3990898132,
0.2031018287,
-0.4686417282,
-0.1039526761,
0.0307145175,
0.4628866613,
-0.0234796386,
-0.1841690391,
0.105656974,
0.1430650949,
0.1544752419,
-0.1691707522,
0.1093408838,
0.4040111601,
0.0435306467,
-0.3053804338,
-0.5429390073,
-0.0136748273,
0.0826764479,
0.0919226408,
-0.0626313612,
-0.320395112,
-0.2080416977,
0.2609346807,
0.4015892446,
0.6901730895,
-0.0723920986,
0.2966907918,
0.5587425232,
0.0910604298,
0.0016884506,
0.2774416208,
-0.1042706966,
-0.5139324665,
0.1954909712,
0.0833372399,
-0.1815755665,
-0.0093928548,
0.2339336723,
-0.1757297814,
0.2052434683,
-0.219678551,
0.0933762267,
-0.1733642668,
0.1602140218,
-0.1688348651,
-0.0502106808,
-0.1218758449,
0.0497321635,
-0.0692729354,
0.0820501298,
-0.1036421284,
-0.2097410858,
0.0337742157,
-0.2309394777,
0.0748144314,
0.2753438056,
0.0081002135,
0.0343262553,
-0.2805510163,
-0.1951714903,
0.1213370785,
0.2447197884,
0.3164098561,
0.0351310372,
-0.0893451646,
0.101099357,
-0.3682294786,
-0.2763565481,
-0.2608575821,
-0.0956430286,
0.184987098,
-0.2108018249,
-0.0499804318,
0.124062553,
-0.0613715164,
-0.3762873709,
-0.0335861295,
-0.0350456983,
0.2754875422,
-0.4317030907,
-0.2545202374,
-0.1319119632,
-0.1161126718,
-0.1919200718,
0.1608151197,
0.2287707329,
-0.1201415956,
0.0152175557,
-0.1504314095,
-0.2745188177,
0.0584028959,
0.5248116255,
-0.1016796306,
0.1521697938,
0.6307945848,
0.0710354224,
-0.1138498411,
-0.2894232273,
-0.2996491194,
0.0183574408,
-0.2909432352,
0.1833908111,
0.2434942126,
-0.0689216256,
0.2441022843,
0.3077547252,
0.1714058071,
-0.0989842564,
-0.0508269295,
-0.5483649969,
-0.0284050573,
0.0474093482,
-0.1534882635,
0.3620048463,
0.1767352223,
-0.3220783174,
-0.0817598701,
-0.1770444363,
-0.2993301153,
0.0011036806,
-0.1198001057,
0.2405625135,
-0.2157945484,
-0.2780374885,
0.2113569081,
0.0620970987,
0.1622254401,
-0.3558203578,
-0.0777115896,
-0.2533759475,
-0.0681321323,
0.1221703812,
0.1441824883,
0.0095418552,
0.1336416006,
-0.1444761455,
-0.3320430517,
-0.1306844205,
0.0670905337,
0.1010916233,
-0.0039908797,
0.2840559781,
0.0924804807,
0.0219094958,
-0.1482168436,
-0.1065013483,
-0.199454248,
-0.1743006855,
0.0085590398,
0.2015721798,
-0.1814143062,
-0.2146723419,
0.0438419022,
0.0030675931,
0.0793969631,
0.0792411789,
0.3128162026,
-0.4647561312,
0.0515679531,
0.1602490246,
0.5055224895,
0.3906167448,
-0.0799036771,
0.2140353173,
0.3118721545,
0.238157928,
-0.1135246158,
-0.2740479708,
-0.1960723549,
-0.2340989262,
-0.0069742477,
-0.0698654875,
-0.0677563623,
0.0582613088,
0.2001819909,
-0.0457283407,
0.1784251481,
0.1480000764,
0.1270187497,
0.2794733644,
-0.3211748004,
0.0406146049,
0.2804034054,
0.1732444316,
0.1449830681,
0.3777579069,
-0.155561924,
0.1443802565,
-0.2752651572,
0.1954729408,
-0.1280411631,
-0.6779034138,
0.1011460274,
0.0413990989,
-0.0967221558,
-0.0895922408,
-0.1370328218,
0.328610599,
0.031060962,
0.0625447333,
-0.3678520918,
0.083988525,
-0.146653071,
-0.0880458355,
-0.3406415284,
0.0076262462,
-0.0325514041,
0.1551522911,
0.1516608,
-0.0349880047,
-0.0857884064,
0.087555252,
-0.0400349051,
-0.0436643362,
0.0709550157,
0.3961868882,
-0.2319028229,
-0.4020037055,
0.1886534542,
-0.1219384372,
-0.0789997056,
0.0003443246,
0.0715054423,
0.5281402469,
0.3324437141,
0.1592496336,
0.0043609194,
-0.0478784665,
-0.1837077439,
-0.053014677,
0.0596840233,
0.168232128,
0.3104562759,
0.4630704522,
0.1703826487,
-0.1467408538,
0.1241713837,
-0.1453257352,
0.320807457,
-0.0304010976,
0.1715202481,
0.1750356257,
-0.2403035462,
-0.2071764618,
0.2140192688,
-0.5623787642,
-0.2455458194,
0.3704135418,
0.0733888894,
0.0577129461,
-0.1164957657,
0.059036959,
0.1694279909,
0.5225658417,
0.1972418427,
0.3079322875,
-0.4567182362,
-0.0008988748,
-0.5817424059,
-0.0127124181,
0.1645325124,
0.2716319859,
0.1598727554,
0.1856327355,
-0.2448570281,
-0.0757828504,
0.2462040484,
0.2971826494,
0.1082025245,
0.2338157147,
-0.1574129313,
-0.1347533315,
0.1514977068,
-0.1274894923,
0.0899901316,
-0.1791541129,
0.0747643262,
-0.047213681,
0.0362292193,
-0.2751495838,
0.0237009134,
0.0012947904,
-0.1667187661,
0.5104473829,
-0.2578531206,
0.4464896023,
-0.0321036242,
0.1099808365,
-0.4661690891,
0.0489511788,
-0.149584651,
0.1149456576,
0.0738410726,
0.2687283456,
-0.0252669789,
0.3849053085,
-0.4096692204,
0.2747507393,
-0.1608556658,
-0.3426372111,
-0.0414932482,
0.1178343743,
0.0767926872,
0.3193475604,
0.0821501687,
-0.0379418992,
0.0348787792,
0.0631609559,
-0.5235247612,
-0.2149446011,
0.6017241478,
-0.439919889,
-0.048564598,
-0.007045777,
0.2270692587,
0.1117745116,
-0.1416445225,
-0.4197170734,
0.1078706607,
0.2636763752,
0.1084363237,
-0.0447178409,
0.3393389285,
0.2886269391,
0.1458837688,
-0.0916725025,
0.1939832866,
0.1492438167,
-0.1321776062,
-0.1302172691,
-0.3663119376
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | @dorlavie could use `boto3` to download the data to your local machine and then load it with `dataset`
boto3 example [documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-download-file.html)
```python
import boto3
s3 = boto3.client('s3')
s3.download_file('BUCKET_NAME', 'OBJECT_NAME', 'FILE_NAME')
```
datasets example [documentation](https://huggingface.co/docs/datasets/loading_datasets.html)
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files=['my_file_1.csv', 'my_file_2.csv', 'my_file_3.csv'])
```
| In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 46 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
@dorlavie could use `boto3` to download the data to your local machine and then load it with `dataset`
boto3 example [documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-download-file.html)
```python
import boto3
s3 = boto3.client('s3')
s3.download_file('BUCKET_NAME', 'OBJECT_NAME', 'FILE_NAME')
```
datasets example [documentation](https://huggingface.co/docs/datasets/loading_datasets.html)
```python
from datasets import load_dataset
dataset = load_dataset('csv', data_files=['my_file_1.csv', 'my_file_2.csv', 'my_file_3.csv'])
```
| [
-0.2508120239,
-0.2407747656,
-0.0531519279,
0.503803134,
0.242677629,
0.0379794091,
0.4234101176,
0.2302230299,
0.0534565076,
0.012271638,
-0.0213181376,
0.3855957985,
-0.2364186496,
0.4087213278,
-0.073391445,
0.1519470215,
0.0036895594,
0.1174419373,
0.2415752858,
0.1663117409,
-0.0428831093,
0.2773868442,
-0.057136409,
0.1090653241,
-0.1840186417,
0.0136174606,
0.0146283228,
0.3506194353,
-0.0750770867,
-0.508487463,
0.0108171804,
-0.0190765858,
0.4783015251,
0.3833351433,
-0.0001139213,
-0.028652925,
0.3157631755,
0.0450190119,
-0.422922194,
-0.3848214447,
-0.5591982007,
0.1110935137,
0.1526587903,
-0.0374609828,
-0.3507242799,
-0.0653411746,
-0.3116797805,
-0.2656854689,
0.4028450251,
0.6623775959,
0.178203851,
0.1914704293,
-0.0731055662,
-0.3078444898,
0.2821202278,
0.020372944,
0.0018275606,
0.2220327407,
-0.2715071142,
0.1779978126,
0.2951637506,
0.270999521,
-0.4019234776,
0.1139448062,
0.5365952253,
0.0304874368,
0.3513381779,
0.0784728006,
0.1274640113,
0.1705706269,
0.5801001787,
-0.136125803,
-0.4543990493,
-0.1849199533,
-0.2141834348,
-0.282492429,
0.1915265769,
0.0894621387,
0.0374889821,
0.0282423031,
-0.0464703329,
-0.0466800593,
-0.0988202915,
0.2466036379,
0.0339197703,
0.4405599833,
-0.2780038416,
0.0633563548,
0.2615090311,
0.0703384131,
0.3421870768,
-0.1132722348,
0.0181239415,
0.0466640554,
-0.2519854009,
0.1674025059,
-0.0153580746,
0.2122866064,
-0.0699797496,
0.1938644201,
0.3034310043,
-0.0739919171,
0.3996637464,
0.2401907295,
0.3883313537,
-0.1680296659,
0.0913827047,
0.0003887896,
-0.0994112715,
0.4869205952,
0.0785982013,
-0.1934863329,
-0.3133123219,
-0.5367279053,
0.1240956038,
0.26881814,
0.3971947134,
-0.3510358036,
-0.2658776045,
-0.0860201418,
-0.1192131862,
-0.1965767741,
0.2694830596,
0.4972229898,
-0.3471300006,
-0.1139851362,
-0.117971167,
0.2110882849,
-0.2143540531,
0.0854032934,
-0.1983183771,
0.2434528023,
-0.3190573752,
0.0227509756,
0.1486800015,
-0.5799325705,
0.5168523192,
-0.0738640502,
0.0051263194,
-0.3440084159,
0.1492901444,
-0.2164645791,
0.177761659,
0.1814397275,
0.1935321689,
0.2570755482,
-0.0537815392,
-0.0760162771,
-0.1820332855,
0.0855755582,
-0.1849054843,
-0.479770869,
0.0412795767,
0.2240626961,
-0.2657831907,
-0.1602721363,
-0.0594209917,
-0.1859488189,
0.2781680822,
-0.0984314457,
-0.3886997104,
0.0453321859,
-0.1181020439,
-0.220781222,
0.4690742791,
0.3192172945,
-0.3537426293,
0.1085963696,
-0.4716525674,
0.1138472706,
0.0835105702,
0.2105171382,
-0.3659239113,
0.44895944,
-0.3048421741,
0.132893756,
0.5610041618,
-0.2565936446,
0.0060540354,
0.0853613913,
-0.0421511047,
-0.1606776565,
0.1342203468,
-0.063041538,
-0.1340705603,
-0.1085646749,
0.0167824961,
0.3441396654,
0.0382881239,
0.0388525389,
-0.1566990167,
-0.0247691069,
0.1257413179,
0.2443983406,
0.1100836396,
-0.0220542811,
-0.037371058,
-0.1964022666,
-0.0556681119,
-0.1184008718,
-0.0434881337,
0.4679804146,
0.2733067274,
0.3011100888,
-0.0028269668,
0.151649937,
-0.2742569149,
0.1333040148,
0.0448953696,
-0.277271688,
-0.0668592453,
0.0106649278,
-0.2895233929,
0.0034127384,
-0.4520741403,
0.0989072993,
0.1053080484,
0.3138041794,
0.2326270342,
-0.0971177518,
-0.1190225929,
-0.3059856594,
0.3305367529,
-0.0151231829,
-0.3088081479,
0.1135314554,
-0.405138433,
-0.0548964813,
0.086904034,
0.043993637,
0.1716849506,
0.117635712,
0.0150822662,
0.1787702143,
0.1243599877,
0.227449581,
-0.2144690305,
0.1562109143,
-0.1199653596,
0.0306926258,
0.1797364056,
-0.1334499121,
0.135618493,
0.0835731253,
-0.0444402322,
0.4771926701,
-0.0267101228,
0.1894396394,
0.1397074908,
0.015092548,
0.2696096897,
-0.1694879383,
-0.0204154309,
-0.1353713572,
0.0476755649,
-0.1200016439,
0.1146694496,
0.0762753785,
-0.0729277357,
-0.1295491904,
0.3834596276,
0.0959831476,
-0.0108044818,
-0.2696373463,
-0.2296589613,
-0.1449697912,
0.0653626025,
0.4955293536,
0.3665238023,
0.2210590094,
0.0965471342,
-0.0355797336,
-0.053980913,
-0.1855221093,
0.2379353791,
0.423758626,
0.4380970895,
0.3556295931,
-0.3781281412,
-0.0747242719,
-0.2402071655,
-0.1607343704,
0.1642103195,
0.282250762,
-0.4002408981,
0.1890036017,
-0.0598931499,
-0.1696403176,
-0.2982714772,
-0.354865402,
-0.1032037139,
-0.2554684579,
-0.1192266941,
0.2769101858,
-0.2668560445,
-0.0272913184,
0.0960364565,
0.0128378617,
-0.0740059018,
-0.0552991815,
-0.3418391645,
-0.2471805066,
-0.170404911,
0.0550117567,
0.2183093727,
0.0958848894,
0.2658966184,
-0.1865488142,
0.1083012745,
-0.4633398056,
-0.0825943574,
-0.017645603,
-0.00809744,
0.302495122,
0.2742293179,
0.0802076086,
0.2997994721,
-0.246578306,
0.465375483,
-0.0120982472,
0.020435391,
0.2364754528,
-0.0213384405,
-0.1121435761,
-0.0333960205,
-0.3809586167,
0.069973059,
-0.4534810483,
-0.3755662739,
0.0112920757,
0.1440522224,
0.2753454149,
0.3328948319,
0.2299250364,
-0.2099560201,
0.3361962736,
-0.2096321285,
-0.2037050128,
0.1267782003,
-0.2523743808,
-0.2639803886,
0.330471158,
-0.0450137146,
0.8056795597,
-0.1035315022,
-0.2581114471,
-0.0281819236,
0.054154899,
-0.313547641,
-0.1422800869,
-0.2467392087,
0.3080141544,
0.2088037729,
-0.0856468678,
-0.00781768,
-0.3258493245,
0.0911114514,
-0.2148194611,
0.2122523338,
-0.2017768919,
0.8904486299,
-0.005194304,
0.4429089427,
0.1470212191,
-0.2118463069,
0.4529938102,
-0.106380254,
0.1824466288,
-0.104823485,
-0.2602484226,
-0.1180830747,
0.1664526463,
-0.2900656164,
0.1482967436,
-0.2593996823,
-0.0632347241,
-0.2945417166,
0.0631955341,
-0.3335377276,
-0.2166405469,
0.0108936122,
-0.2646001279,
0.1334774345,
-0.1084317863,
0.0371413603,
-0.0522481203,
0.1782281846,
0.1964564323,
0.27402547,
0.179841131,
-0.0360956378,
-0.2892716527,
-0.0228561442,
-0.3024624884,
0.3309326172,
-0.0449293703,
0.1445601135,
-0.1725996435,
-0.2284810841,
0.108591482,
-0.2120635062,
0.5687654018,
-0.288608104,
0.0759903938,
0.256681025,
-0.1874073744,
-0.4711459875,
-0.2658158541,
-0.0675032884,
0.2460009456,
0.0289377607,
0.4087799788,
-0.1191498488,
-0.4835370779,
0.1473180205,
-0.0567419343,
-0.0862192139,
-0.2047349066,
-0.347964406,
-0.1231661215,
-0.3823906481,
-0.0772972107,
-0.0697869286,
0.34709993,
0.0993614122,
-0.2050060034,
0.0540419556,
0.0844746456,
0.026174657,
-0.0463367775,
0.472672075,
0.033060465,
0.2310326695,
0.272346288,
0.3769769967,
0.1094539538,
0.3990898132,
0.2031018287,
-0.4686417282,
-0.1039526761,
0.0307145175,
0.4628866613,
-0.0234796386,
-0.1841690391,
0.105656974,
0.1430650949,
0.1544752419,
-0.1691707522,
0.1093408838,
0.4040111601,
0.0435306467,
-0.3053804338,
-0.5429390073,
-0.0136748273,
0.0826764479,
0.0919226408,
-0.0626313612,
-0.320395112,
-0.2080416977,
0.2609346807,
0.4015892446,
0.6901730895,
-0.0723920986,
0.2966907918,
0.5587425232,
0.0910604298,
0.0016884506,
0.2774416208,
-0.1042706966,
-0.5139324665,
0.1954909712,
0.0833372399,
-0.1815755665,
-0.0093928548,
0.2339336723,
-0.1757297814,
0.2052434683,
-0.219678551,
0.0933762267,
-0.1733642668,
0.1602140218,
-0.1688348651,
-0.0502106808,
-0.1218758449,
0.0497321635,
-0.0692729354,
0.0820501298,
-0.1036421284,
-0.2097410858,
0.0337742157,
-0.2309394777,
0.0748144314,
0.2753438056,
0.0081002135,
0.0343262553,
-0.2805510163,
-0.1951714903,
0.1213370785,
0.2447197884,
0.3164098561,
0.0351310372,
-0.0893451646,
0.101099357,
-0.3682294786,
-0.2763565481,
-0.2608575821,
-0.0956430286,
0.184987098,
-0.2108018249,
-0.0499804318,
0.124062553,
-0.0613715164,
-0.3762873709,
-0.0335861295,
-0.0350456983,
0.2754875422,
-0.4317030907,
-0.2545202374,
-0.1319119632,
-0.1161126718,
-0.1919200718,
0.1608151197,
0.2287707329,
-0.1201415956,
0.0152175557,
-0.1504314095,
-0.2745188177,
0.0584028959,
0.5248116255,
-0.1016796306,
0.1521697938,
0.6307945848,
0.0710354224,
-0.1138498411,
-0.2894232273,
-0.2996491194,
0.0183574408,
-0.2909432352,
0.1833908111,
0.2434942126,
-0.0689216256,
0.2441022843,
0.3077547252,
0.1714058071,
-0.0989842564,
-0.0508269295,
-0.5483649969,
-0.0284050573,
0.0474093482,
-0.1534882635,
0.3620048463,
0.1767352223,
-0.3220783174,
-0.0817598701,
-0.1770444363,
-0.2993301153,
0.0011036806,
-0.1198001057,
0.2405625135,
-0.2157945484,
-0.2780374885,
0.2113569081,
0.0620970987,
0.1622254401,
-0.3558203578,
-0.0777115896,
-0.2533759475,
-0.0681321323,
0.1221703812,
0.1441824883,
0.0095418552,
0.1336416006,
-0.1444761455,
-0.3320430517,
-0.1306844205,
0.0670905337,
0.1010916233,
-0.0039908797,
0.2840559781,
0.0924804807,
0.0219094958,
-0.1482168436,
-0.1065013483,
-0.199454248,
-0.1743006855,
0.0085590398,
0.2015721798,
-0.1814143062,
-0.2146723419,
0.0438419022,
0.0030675931,
0.0793969631,
0.0792411789,
0.3128162026,
-0.4647561312,
0.0515679531,
0.1602490246,
0.5055224895,
0.3906167448,
-0.0799036771,
0.2140353173,
0.3118721545,
0.238157928,
-0.1135246158,
-0.2740479708,
-0.1960723549,
-0.2340989262,
-0.0069742477,
-0.0698654875,
-0.0677563623,
0.0582613088,
0.2001819909,
-0.0457283407,
0.1784251481,
0.1480000764,
0.1270187497,
0.2794733644,
-0.3211748004,
0.0406146049,
0.2804034054,
0.1732444316,
0.1449830681,
0.3777579069,
-0.155561924,
0.1443802565,
-0.2752651572,
0.1954729408,
-0.1280411631,
-0.6779034138,
0.1011460274,
0.0413990989,
-0.0967221558,
-0.0895922408,
-0.1370328218,
0.328610599,
0.031060962,
0.0625447333,
-0.3678520918,
0.083988525,
-0.146653071,
-0.0880458355,
-0.3406415284,
0.0076262462,
-0.0325514041,
0.1551522911,
0.1516608,
-0.0349880047,
-0.0857884064,
0.087555252,
-0.0400349051,
-0.0436643362,
0.0709550157,
0.3961868882,
-0.2319028229,
-0.4020037055,
0.1886534542,
-0.1219384372,
-0.0789997056,
0.0003443246,
0.0715054423,
0.5281402469,
0.3324437141,
0.1592496336,
0.0043609194,
-0.0478784665,
-0.1837077439,
-0.053014677,
0.0596840233,
0.168232128,
0.3104562759,
0.4630704522,
0.1703826487,
-0.1467408538,
0.1241713837,
-0.1453257352,
0.320807457,
-0.0304010976,
0.1715202481,
0.1750356257,
-0.2403035462,
-0.2071764618,
0.2140192688,
-0.5623787642,
-0.2455458194,
0.3704135418,
0.0733888894,
0.0577129461,
-0.1164957657,
0.059036959,
0.1694279909,
0.5225658417,
0.1972418427,
0.3079322875,
-0.4567182362,
-0.0008988748,
-0.5817424059,
-0.0127124181,
0.1645325124,
0.2716319859,
0.1598727554,
0.1856327355,
-0.2448570281,
-0.0757828504,
0.2462040484,
0.2971826494,
0.1082025245,
0.2338157147,
-0.1574129313,
-0.1347533315,
0.1514977068,
-0.1274894923,
0.0899901316,
-0.1791541129,
0.0747643262,
-0.047213681,
0.0362292193,
-0.2751495838,
0.0237009134,
0.0012947904,
-0.1667187661,
0.5104473829,
-0.2578531206,
0.4464896023,
-0.0321036242,
0.1099808365,
-0.4661690891,
0.0489511788,
-0.149584651,
0.1149456576,
0.0738410726,
0.2687283456,
-0.0252669789,
0.3849053085,
-0.4096692204,
0.2747507393,
-0.1608556658,
-0.3426372111,
-0.0414932482,
0.1178343743,
0.0767926872,
0.3193475604,
0.0821501687,
-0.0379418992,
0.0348787792,
0.0631609559,
-0.5235247612,
-0.2149446011,
0.6017241478,
-0.439919889,
-0.048564598,
-0.007045777,
0.2270692587,
0.1117745116,
-0.1416445225,
-0.4197170734,
0.1078706607,
0.2636763752,
0.1084363237,
-0.0447178409,
0.3393389285,
0.2886269391,
0.1458837688,
-0.0916725025,
0.1939832866,
0.1492438167,
-0.1321776062,
-0.1302172691,
-0.3663119376
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | Thanks @philschmid for the suggestion.
As I mentioned in the previous comment, due to security issues I can not save the data locally.
I need to read it from S3 and process it directly.
I guess that many other people try to train / fit those models on huge datasets (e.g entire Wiki), what is the best practice in those cases? | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 61 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
Thanks @philschmid for the suggestion.
As I mentioned in the previous comment, due to security issues I can not save the data locally.
I need to read it from S3 and process it directly.
I guess that many other people try to train / fit those models on huge datasets (e.g entire Wiki), what is the best practice in those cases? | [
-0.2508120239,
-0.2407747656,
-0.0531519279,
0.503803134,
0.242677629,
0.0379794091,
0.4234101176,
0.2302230299,
0.0534565076,
0.012271638,
-0.0213181376,
0.3855957985,
-0.2364186496,
0.4087213278,
-0.073391445,
0.1519470215,
0.0036895594,
0.1174419373,
0.2415752858,
0.1663117409,
-0.0428831093,
0.2773868442,
-0.057136409,
0.1090653241,
-0.1840186417,
0.0136174606,
0.0146283228,
0.3506194353,
-0.0750770867,
-0.508487463,
0.0108171804,
-0.0190765858,
0.4783015251,
0.3833351433,
-0.0001139213,
-0.028652925,
0.3157631755,
0.0450190119,
-0.422922194,
-0.3848214447,
-0.5591982007,
0.1110935137,
0.1526587903,
-0.0374609828,
-0.3507242799,
-0.0653411746,
-0.3116797805,
-0.2656854689,
0.4028450251,
0.6623775959,
0.178203851,
0.1914704293,
-0.0731055662,
-0.3078444898,
0.2821202278,
0.020372944,
0.0018275606,
0.2220327407,
-0.2715071142,
0.1779978126,
0.2951637506,
0.270999521,
-0.4019234776,
0.1139448062,
0.5365952253,
0.0304874368,
0.3513381779,
0.0784728006,
0.1274640113,
0.1705706269,
0.5801001787,
-0.136125803,
-0.4543990493,
-0.1849199533,
-0.2141834348,
-0.282492429,
0.1915265769,
0.0894621387,
0.0374889821,
0.0282423031,
-0.0464703329,
-0.0466800593,
-0.0988202915,
0.2466036379,
0.0339197703,
0.4405599833,
-0.2780038416,
0.0633563548,
0.2615090311,
0.0703384131,
0.3421870768,
-0.1132722348,
0.0181239415,
0.0466640554,
-0.2519854009,
0.1674025059,
-0.0153580746,
0.2122866064,
-0.0699797496,
0.1938644201,
0.3034310043,
-0.0739919171,
0.3996637464,
0.2401907295,
0.3883313537,
-0.1680296659,
0.0913827047,
0.0003887896,
-0.0994112715,
0.4869205952,
0.0785982013,
-0.1934863329,
-0.3133123219,
-0.5367279053,
0.1240956038,
0.26881814,
0.3971947134,
-0.3510358036,
-0.2658776045,
-0.0860201418,
-0.1192131862,
-0.1965767741,
0.2694830596,
0.4972229898,
-0.3471300006,
-0.1139851362,
-0.117971167,
0.2110882849,
-0.2143540531,
0.0854032934,
-0.1983183771,
0.2434528023,
-0.3190573752,
0.0227509756,
0.1486800015,
-0.5799325705,
0.5168523192,
-0.0738640502,
0.0051263194,
-0.3440084159,
0.1492901444,
-0.2164645791,
0.177761659,
0.1814397275,
0.1935321689,
0.2570755482,
-0.0537815392,
-0.0760162771,
-0.1820332855,
0.0855755582,
-0.1849054843,
-0.479770869,
0.0412795767,
0.2240626961,
-0.2657831907,
-0.1602721363,
-0.0594209917,
-0.1859488189,
0.2781680822,
-0.0984314457,
-0.3886997104,
0.0453321859,
-0.1181020439,
-0.220781222,
0.4690742791,
0.3192172945,
-0.3537426293,
0.1085963696,
-0.4716525674,
0.1138472706,
0.0835105702,
0.2105171382,
-0.3659239113,
0.44895944,
-0.3048421741,
0.132893756,
0.5610041618,
-0.2565936446,
0.0060540354,
0.0853613913,
-0.0421511047,
-0.1606776565,
0.1342203468,
-0.063041538,
-0.1340705603,
-0.1085646749,
0.0167824961,
0.3441396654,
0.0382881239,
0.0388525389,
-0.1566990167,
-0.0247691069,
0.1257413179,
0.2443983406,
0.1100836396,
-0.0220542811,
-0.037371058,
-0.1964022666,
-0.0556681119,
-0.1184008718,
-0.0434881337,
0.4679804146,
0.2733067274,
0.3011100888,
-0.0028269668,
0.151649937,
-0.2742569149,
0.1333040148,
0.0448953696,
-0.277271688,
-0.0668592453,
0.0106649278,
-0.2895233929,
0.0034127384,
-0.4520741403,
0.0989072993,
0.1053080484,
0.3138041794,
0.2326270342,
-0.0971177518,
-0.1190225929,
-0.3059856594,
0.3305367529,
-0.0151231829,
-0.3088081479,
0.1135314554,
-0.405138433,
-0.0548964813,
0.086904034,
0.043993637,
0.1716849506,
0.117635712,
0.0150822662,
0.1787702143,
0.1243599877,
0.227449581,
-0.2144690305,
0.1562109143,
-0.1199653596,
0.0306926258,
0.1797364056,
-0.1334499121,
0.135618493,
0.0835731253,
-0.0444402322,
0.4771926701,
-0.0267101228,
0.1894396394,
0.1397074908,
0.015092548,
0.2696096897,
-0.1694879383,
-0.0204154309,
-0.1353713572,
0.0476755649,
-0.1200016439,
0.1146694496,
0.0762753785,
-0.0729277357,
-0.1295491904,
0.3834596276,
0.0959831476,
-0.0108044818,
-0.2696373463,
-0.2296589613,
-0.1449697912,
0.0653626025,
0.4955293536,
0.3665238023,
0.2210590094,
0.0965471342,
-0.0355797336,
-0.053980913,
-0.1855221093,
0.2379353791,
0.423758626,
0.4380970895,
0.3556295931,
-0.3781281412,
-0.0747242719,
-0.2402071655,
-0.1607343704,
0.1642103195,
0.282250762,
-0.4002408981,
0.1890036017,
-0.0598931499,
-0.1696403176,
-0.2982714772,
-0.354865402,
-0.1032037139,
-0.2554684579,
-0.1192266941,
0.2769101858,
-0.2668560445,
-0.0272913184,
0.0960364565,
0.0128378617,
-0.0740059018,
-0.0552991815,
-0.3418391645,
-0.2471805066,
-0.170404911,
0.0550117567,
0.2183093727,
0.0958848894,
0.2658966184,
-0.1865488142,
0.1083012745,
-0.4633398056,
-0.0825943574,
-0.017645603,
-0.00809744,
0.302495122,
0.2742293179,
0.0802076086,
0.2997994721,
-0.246578306,
0.465375483,
-0.0120982472,
0.020435391,
0.2364754528,
-0.0213384405,
-0.1121435761,
-0.0333960205,
-0.3809586167,
0.069973059,
-0.4534810483,
-0.3755662739,
0.0112920757,
0.1440522224,
0.2753454149,
0.3328948319,
0.2299250364,
-0.2099560201,
0.3361962736,
-0.2096321285,
-0.2037050128,
0.1267782003,
-0.2523743808,
-0.2639803886,
0.330471158,
-0.0450137146,
0.8056795597,
-0.1035315022,
-0.2581114471,
-0.0281819236,
0.054154899,
-0.313547641,
-0.1422800869,
-0.2467392087,
0.3080141544,
0.2088037729,
-0.0856468678,
-0.00781768,
-0.3258493245,
0.0911114514,
-0.2148194611,
0.2122523338,
-0.2017768919,
0.8904486299,
-0.005194304,
0.4429089427,
0.1470212191,
-0.2118463069,
0.4529938102,
-0.106380254,
0.1824466288,
-0.104823485,
-0.2602484226,
-0.1180830747,
0.1664526463,
-0.2900656164,
0.1482967436,
-0.2593996823,
-0.0632347241,
-0.2945417166,
0.0631955341,
-0.3335377276,
-0.2166405469,
0.0108936122,
-0.2646001279,
0.1334774345,
-0.1084317863,
0.0371413603,
-0.0522481203,
0.1782281846,
0.1964564323,
0.27402547,
0.179841131,
-0.0360956378,
-0.2892716527,
-0.0228561442,
-0.3024624884,
0.3309326172,
-0.0449293703,
0.1445601135,
-0.1725996435,
-0.2284810841,
0.108591482,
-0.2120635062,
0.5687654018,
-0.288608104,
0.0759903938,
0.256681025,
-0.1874073744,
-0.4711459875,
-0.2658158541,
-0.0675032884,
0.2460009456,
0.0289377607,
0.4087799788,
-0.1191498488,
-0.4835370779,
0.1473180205,
-0.0567419343,
-0.0862192139,
-0.2047349066,
-0.347964406,
-0.1231661215,
-0.3823906481,
-0.0772972107,
-0.0697869286,
0.34709993,
0.0993614122,
-0.2050060034,
0.0540419556,
0.0844746456,
0.026174657,
-0.0463367775,
0.472672075,
0.033060465,
0.2310326695,
0.272346288,
0.3769769967,
0.1094539538,
0.3990898132,
0.2031018287,
-0.4686417282,
-0.1039526761,
0.0307145175,
0.4628866613,
-0.0234796386,
-0.1841690391,
0.105656974,
0.1430650949,
0.1544752419,
-0.1691707522,
0.1093408838,
0.4040111601,
0.0435306467,
-0.3053804338,
-0.5429390073,
-0.0136748273,
0.0826764479,
0.0919226408,
-0.0626313612,
-0.320395112,
-0.2080416977,
0.2609346807,
0.4015892446,
0.6901730895,
-0.0723920986,
0.2966907918,
0.5587425232,
0.0910604298,
0.0016884506,
0.2774416208,
-0.1042706966,
-0.5139324665,
0.1954909712,
0.0833372399,
-0.1815755665,
-0.0093928548,
0.2339336723,
-0.1757297814,
0.2052434683,
-0.219678551,
0.0933762267,
-0.1733642668,
0.1602140218,
-0.1688348651,
-0.0502106808,
-0.1218758449,
0.0497321635,
-0.0692729354,
0.0820501298,
-0.1036421284,
-0.2097410858,
0.0337742157,
-0.2309394777,
0.0748144314,
0.2753438056,
0.0081002135,
0.0343262553,
-0.2805510163,
-0.1951714903,
0.1213370785,
0.2447197884,
0.3164098561,
0.0351310372,
-0.0893451646,
0.101099357,
-0.3682294786,
-0.2763565481,
-0.2608575821,
-0.0956430286,
0.184987098,
-0.2108018249,
-0.0499804318,
0.124062553,
-0.0613715164,
-0.3762873709,
-0.0335861295,
-0.0350456983,
0.2754875422,
-0.4317030907,
-0.2545202374,
-0.1319119632,
-0.1161126718,
-0.1919200718,
0.1608151197,
0.2287707329,
-0.1201415956,
0.0152175557,
-0.1504314095,
-0.2745188177,
0.0584028959,
0.5248116255,
-0.1016796306,
0.1521697938,
0.6307945848,
0.0710354224,
-0.1138498411,
-0.2894232273,
-0.2996491194,
0.0183574408,
-0.2909432352,
0.1833908111,
0.2434942126,
-0.0689216256,
0.2441022843,
0.3077547252,
0.1714058071,
-0.0989842564,
-0.0508269295,
-0.5483649969,
-0.0284050573,
0.0474093482,
-0.1534882635,
0.3620048463,
0.1767352223,
-0.3220783174,
-0.0817598701,
-0.1770444363,
-0.2993301153,
0.0011036806,
-0.1198001057,
0.2405625135,
-0.2157945484,
-0.2780374885,
0.2113569081,
0.0620970987,
0.1622254401,
-0.3558203578,
-0.0777115896,
-0.2533759475,
-0.0681321323,
0.1221703812,
0.1441824883,
0.0095418552,
0.1336416006,
-0.1444761455,
-0.3320430517,
-0.1306844205,
0.0670905337,
0.1010916233,
-0.0039908797,
0.2840559781,
0.0924804807,
0.0219094958,
-0.1482168436,
-0.1065013483,
-0.199454248,
-0.1743006855,
0.0085590398,
0.2015721798,
-0.1814143062,
-0.2146723419,
0.0438419022,
0.0030675931,
0.0793969631,
0.0792411789,
0.3128162026,
-0.4647561312,
0.0515679531,
0.1602490246,
0.5055224895,
0.3906167448,
-0.0799036771,
0.2140353173,
0.3118721545,
0.238157928,
-0.1135246158,
-0.2740479708,
-0.1960723549,
-0.2340989262,
-0.0069742477,
-0.0698654875,
-0.0677563623,
0.0582613088,
0.2001819909,
-0.0457283407,
0.1784251481,
0.1480000764,
0.1270187497,
0.2794733644,
-0.3211748004,
0.0406146049,
0.2804034054,
0.1732444316,
0.1449830681,
0.3777579069,
-0.155561924,
0.1443802565,
-0.2752651572,
0.1954729408,
-0.1280411631,
-0.6779034138,
0.1011460274,
0.0413990989,
-0.0967221558,
-0.0895922408,
-0.1370328218,
0.328610599,
0.031060962,
0.0625447333,
-0.3678520918,
0.083988525,
-0.146653071,
-0.0880458355,
-0.3406415284,
0.0076262462,
-0.0325514041,
0.1551522911,
0.1516608,
-0.0349880047,
-0.0857884064,
0.087555252,
-0.0400349051,
-0.0436643362,
0.0709550157,
0.3961868882,
-0.2319028229,
-0.4020037055,
0.1886534542,
-0.1219384372,
-0.0789997056,
0.0003443246,
0.0715054423,
0.5281402469,
0.3324437141,
0.1592496336,
0.0043609194,
-0.0478784665,
-0.1837077439,
-0.053014677,
0.0596840233,
0.168232128,
0.3104562759,
0.4630704522,
0.1703826487,
-0.1467408538,
0.1241713837,
-0.1453257352,
0.320807457,
-0.0304010976,
0.1715202481,
0.1750356257,
-0.2403035462,
-0.2071764618,
0.2140192688,
-0.5623787642,
-0.2455458194,
0.3704135418,
0.0733888894,
0.0577129461,
-0.1164957657,
0.059036959,
0.1694279909,
0.5225658417,
0.1972418427,
0.3079322875,
-0.4567182362,
-0.0008988748,
-0.5817424059,
-0.0127124181,
0.1645325124,
0.2716319859,
0.1598727554,
0.1856327355,
-0.2448570281,
-0.0757828504,
0.2462040484,
0.2971826494,
0.1082025245,
0.2338157147,
-0.1574129313,
-0.1347533315,
0.1514977068,
-0.1274894923,
0.0899901316,
-0.1791541129,
0.0747643262,
-0.047213681,
0.0362292193,
-0.2751495838,
0.0237009134,
0.0012947904,
-0.1667187661,
0.5104473829,
-0.2578531206,
0.4464896023,
-0.0321036242,
0.1099808365,
-0.4661690891,
0.0489511788,
-0.149584651,
0.1149456576,
0.0738410726,
0.2687283456,
-0.0252669789,
0.3849053085,
-0.4096692204,
0.2747507393,
-0.1608556658,
-0.3426372111,
-0.0414932482,
0.1178343743,
0.0767926872,
0.3193475604,
0.0821501687,
-0.0379418992,
0.0348787792,
0.0631609559,
-0.5235247612,
-0.2149446011,
0.6017241478,
-0.439919889,
-0.048564598,
-0.007045777,
0.2270692587,
0.1117745116,
-0.1416445225,
-0.4197170734,
0.1078706607,
0.2636763752,
0.1084363237,
-0.0447178409,
0.3393389285,
0.2886269391,
0.1458837688,
-0.0916725025,
0.1939832866,
0.1492438167,
-0.1321776062,
-0.1302172691,
-0.3663119376
] |
https://github.com/huggingface/datasets/issues/878 | Loading Data From S3 Path in Sagemaker | If I understand correctly you're not allowed to write data on disk that you downloaded from S3 for example ?
Or is it the use of the `boto3` library that is not allowed in your case ? | In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load | 37 | Loading Data From S3 Path in Sagemaker
In Sagemaker Im tring to load the data set from S3 path as follows
`train_path = 's3://xxxxxxxxxx/xxxxxxxxxx/train.csv'
valid_path = 's3://xxxxxxxxxx/xxxxxxxxxx/validation.csv'
test_path = 's3://xxxxxxxxxx/xxxxxxxxxx/test.csv'
data_files = {}
data_files["train"] = train_path
data_files["validation"] = valid_path
data_files["test"] = test_path
extension = train_path.split(".")[-1]
datasets = load_dataset(extension, data_files=data_files, s3_enabled=True)
print(datasets)`
I getting an error of
`algo-1-7plil_1 | File "main.py", line 21, in <module>
algo-1-7plil_1 | datasets = load_dataset(extension, data_files=data_files)
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/load.py", line 603, in load_dataset
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 155, in __init__
algo-1-7plil_1 | **config_kwargs,
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/site-packages/datasets/builder.py", line 305, in _create_builder_config
algo-1-7plil_1 | m.update(str(os.path.getmtime(data_file)))
algo-1-7plil_1 | File "/opt/conda/lib/python3.6/genericpath.py", line 55, in getmtime
algo-1-7plil_1 | return os.stat(filename).st_mtime
algo-1-7plil_1 | FileNotFoundError: [Errno 2] No such file or directory: 's3://lsmv-sagemaker/pubmedbert/test.csv`
But when im trying with pandas , it is able to load from S3
Does the datasets library support S3 path to load
If I understand correctly you're not allowed to write data on disk that you downloaded from S3 for example ?
Or is it the use of the `boto3` library that is not allowed in your case ? | [
-0.2508120239,
-0.2407747656,
-0.0531519279,
0.503803134,
0.242677629,
0.0379794091,
0.4234101176,
0.2302230299,
0.0534565076,
0.012271638,
-0.0213181376,
0.3855957985,
-0.2364186496,
0.4087213278,
-0.073391445,
0.1519470215,
0.0036895594,
0.1174419373,
0.2415752858,
0.1663117409,
-0.0428831093,
0.2773868442,
-0.057136409,
0.1090653241,
-0.1840186417,
0.0136174606,
0.0146283228,
0.3506194353,
-0.0750770867,
-0.508487463,
0.0108171804,
-0.0190765858,
0.4783015251,
0.3833351433,
-0.0001139213,
-0.028652925,
0.3157631755,
0.0450190119,
-0.422922194,
-0.3848214447,
-0.5591982007,
0.1110935137,
0.1526587903,
-0.0374609828,
-0.3507242799,
-0.0653411746,
-0.3116797805,
-0.2656854689,
0.4028450251,
0.6623775959,
0.178203851,
0.1914704293,
-0.0731055662,
-0.3078444898,
0.2821202278,
0.020372944,
0.0018275606,
0.2220327407,
-0.2715071142,
0.1779978126,
0.2951637506,
0.270999521,
-0.4019234776,
0.1139448062,
0.5365952253,
0.0304874368,
0.3513381779,
0.0784728006,
0.1274640113,
0.1705706269,
0.5801001787,
-0.136125803,
-0.4543990493,
-0.1849199533,
-0.2141834348,
-0.282492429,
0.1915265769,
0.0894621387,
0.0374889821,
0.0282423031,
-0.0464703329,
-0.0466800593,
-0.0988202915,
0.2466036379,
0.0339197703,
0.4405599833,
-0.2780038416,
0.0633563548,
0.2615090311,
0.0703384131,
0.3421870768,
-0.1132722348,
0.0181239415,
0.0466640554,
-0.2519854009,
0.1674025059,
-0.0153580746,
0.2122866064,
-0.0699797496,
0.1938644201,
0.3034310043,
-0.0739919171,
0.3996637464,
0.2401907295,
0.3883313537,
-0.1680296659,
0.0913827047,
0.0003887896,
-0.0994112715,
0.4869205952,
0.0785982013,
-0.1934863329,
-0.3133123219,
-0.5367279053,
0.1240956038,
0.26881814,
0.3971947134,
-0.3510358036,
-0.2658776045,
-0.0860201418,
-0.1192131862,
-0.1965767741,
0.2694830596,
0.4972229898,
-0.3471300006,
-0.1139851362,
-0.117971167,
0.2110882849,
-0.2143540531,
0.0854032934,
-0.1983183771,
0.2434528023,
-0.3190573752,
0.0227509756,
0.1486800015,
-0.5799325705,
0.5168523192,
-0.0738640502,
0.0051263194,
-0.3440084159,
0.1492901444,
-0.2164645791,
0.177761659,
0.1814397275,
0.1935321689,
0.2570755482,
-0.0537815392,
-0.0760162771,
-0.1820332855,
0.0855755582,
-0.1849054843,
-0.479770869,
0.0412795767,
0.2240626961,
-0.2657831907,
-0.1602721363,
-0.0594209917,
-0.1859488189,
0.2781680822,
-0.0984314457,
-0.3886997104,
0.0453321859,
-0.1181020439,
-0.220781222,
0.4690742791,
0.3192172945,
-0.3537426293,
0.1085963696,
-0.4716525674,
0.1138472706,
0.0835105702,
0.2105171382,
-0.3659239113,
0.44895944,
-0.3048421741,
0.132893756,
0.5610041618,
-0.2565936446,
0.0060540354,
0.0853613913,
-0.0421511047,
-0.1606776565,
0.1342203468,
-0.063041538,
-0.1340705603,
-0.1085646749,
0.0167824961,
0.3441396654,
0.0382881239,
0.0388525389,
-0.1566990167,
-0.0247691069,
0.1257413179,
0.2443983406,
0.1100836396,
-0.0220542811,
-0.037371058,
-0.1964022666,
-0.0556681119,
-0.1184008718,
-0.0434881337,
0.4679804146,
0.2733067274,
0.3011100888,
-0.0028269668,
0.151649937,
-0.2742569149,
0.1333040148,
0.0448953696,
-0.277271688,
-0.0668592453,
0.0106649278,
-0.2895233929,
0.0034127384,
-0.4520741403,
0.0989072993,
0.1053080484,
0.3138041794,
0.2326270342,
-0.0971177518,
-0.1190225929,
-0.3059856594,
0.3305367529,
-0.0151231829,
-0.3088081479,
0.1135314554,
-0.405138433,
-0.0548964813,
0.086904034,
0.043993637,
0.1716849506,
0.117635712,
0.0150822662,
0.1787702143,
0.1243599877,
0.227449581,
-0.2144690305,
0.1562109143,
-0.1199653596,
0.0306926258,
0.1797364056,
-0.1334499121,
0.135618493,
0.0835731253,
-0.0444402322,
0.4771926701,
-0.0267101228,
0.1894396394,
0.1397074908,
0.015092548,
0.2696096897,
-0.1694879383,
-0.0204154309,
-0.1353713572,
0.0476755649,
-0.1200016439,
0.1146694496,
0.0762753785,
-0.0729277357,
-0.1295491904,
0.3834596276,
0.0959831476,
-0.0108044818,
-0.2696373463,
-0.2296589613,
-0.1449697912,
0.0653626025,
0.4955293536,
0.3665238023,
0.2210590094,
0.0965471342,
-0.0355797336,
-0.053980913,
-0.1855221093,
0.2379353791,
0.423758626,
0.4380970895,
0.3556295931,
-0.3781281412,
-0.0747242719,
-0.2402071655,
-0.1607343704,
0.1642103195,
0.282250762,
-0.4002408981,
0.1890036017,
-0.0598931499,
-0.1696403176,
-0.2982714772,
-0.354865402,
-0.1032037139,
-0.2554684579,
-0.1192266941,
0.2769101858,
-0.2668560445,
-0.0272913184,
0.0960364565,
0.0128378617,
-0.0740059018,
-0.0552991815,
-0.3418391645,
-0.2471805066,
-0.170404911,
0.0550117567,
0.2183093727,
0.0958848894,
0.2658966184,
-0.1865488142,
0.1083012745,
-0.4633398056,
-0.0825943574,
-0.017645603,
-0.00809744,
0.302495122,
0.2742293179,
0.0802076086,
0.2997994721,
-0.246578306,
0.465375483,
-0.0120982472,
0.020435391,
0.2364754528,
-0.0213384405,
-0.1121435761,
-0.0333960205,
-0.3809586167,
0.069973059,
-0.4534810483,
-0.3755662739,
0.0112920757,
0.1440522224,
0.2753454149,
0.3328948319,
0.2299250364,
-0.2099560201,
0.3361962736,
-0.2096321285,
-0.2037050128,
0.1267782003,
-0.2523743808,
-0.2639803886,
0.330471158,
-0.0450137146,
0.8056795597,
-0.1035315022,
-0.2581114471,
-0.0281819236,
0.054154899,
-0.313547641,
-0.1422800869,
-0.2467392087,
0.3080141544,
0.2088037729,
-0.0856468678,
-0.00781768,
-0.3258493245,
0.0911114514,
-0.2148194611,
0.2122523338,
-0.2017768919,
0.8904486299,
-0.005194304,
0.4429089427,
0.1470212191,
-0.2118463069,
0.4529938102,
-0.106380254,
0.1824466288,
-0.104823485,
-0.2602484226,
-0.1180830747,
0.1664526463,
-0.2900656164,
0.1482967436,
-0.2593996823,
-0.0632347241,
-0.2945417166,
0.0631955341,
-0.3335377276,
-0.2166405469,
0.0108936122,
-0.2646001279,
0.1334774345,
-0.1084317863,
0.0371413603,
-0.0522481203,
0.1782281846,
0.1964564323,
0.27402547,
0.179841131,
-0.0360956378,
-0.2892716527,
-0.0228561442,
-0.3024624884,
0.3309326172,
-0.0449293703,
0.1445601135,
-0.1725996435,
-0.2284810841,
0.108591482,
-0.2120635062,
0.5687654018,
-0.288608104,
0.0759903938,
0.256681025,
-0.1874073744,
-0.4711459875,
-0.2658158541,
-0.0675032884,
0.2460009456,
0.0289377607,
0.4087799788,
-0.1191498488,
-0.4835370779,
0.1473180205,
-0.0567419343,
-0.0862192139,
-0.2047349066,
-0.347964406,
-0.1231661215,
-0.3823906481,
-0.0772972107,
-0.0697869286,
0.34709993,
0.0993614122,
-0.2050060034,
0.0540419556,
0.0844746456,
0.026174657,
-0.0463367775,
0.472672075,
0.033060465,
0.2310326695,
0.272346288,
0.3769769967,
0.1094539538,
0.3990898132,
0.2031018287,
-0.4686417282,
-0.1039526761,
0.0307145175,
0.4628866613,
-0.0234796386,
-0.1841690391,
0.105656974,
0.1430650949,
0.1544752419,
-0.1691707522,
0.1093408838,
0.4040111601,
0.0435306467,
-0.3053804338,
-0.5429390073,
-0.0136748273,
0.0826764479,
0.0919226408,
-0.0626313612,
-0.320395112,
-0.2080416977,
0.2609346807,
0.4015892446,
0.6901730895,
-0.0723920986,
0.2966907918,
0.5587425232,
0.0910604298,
0.0016884506,
0.2774416208,
-0.1042706966,
-0.5139324665,
0.1954909712,
0.0833372399,
-0.1815755665,
-0.0093928548,
0.2339336723,
-0.1757297814,
0.2052434683,
-0.219678551,
0.0933762267,
-0.1733642668,
0.1602140218,
-0.1688348651,
-0.0502106808,
-0.1218758449,
0.0497321635,
-0.0692729354,
0.0820501298,
-0.1036421284,
-0.2097410858,
0.0337742157,
-0.2309394777,
0.0748144314,
0.2753438056,
0.0081002135,
0.0343262553,
-0.2805510163,
-0.1951714903,
0.1213370785,
0.2447197884,
0.3164098561,
0.0351310372,
-0.0893451646,
0.101099357,
-0.3682294786,
-0.2763565481,
-0.2608575821,
-0.0956430286,
0.184987098,
-0.2108018249,
-0.0499804318,
0.124062553,
-0.0613715164,
-0.3762873709,
-0.0335861295,
-0.0350456983,
0.2754875422,
-0.4317030907,
-0.2545202374,
-0.1319119632,
-0.1161126718,
-0.1919200718,
0.1608151197,
0.2287707329,
-0.1201415956,
0.0152175557,
-0.1504314095,
-0.2745188177,
0.0584028959,
0.5248116255,
-0.1016796306,
0.1521697938,
0.6307945848,
0.0710354224,
-0.1138498411,
-0.2894232273,
-0.2996491194,
0.0183574408,
-0.2909432352,
0.1833908111,
0.2434942126,
-0.0689216256,
0.2441022843,
0.3077547252,
0.1714058071,
-0.0989842564,
-0.0508269295,
-0.5483649969,
-0.0284050573,
0.0474093482,
-0.1534882635,
0.3620048463,
0.1767352223,
-0.3220783174,
-0.0817598701,
-0.1770444363,
-0.2993301153,
0.0011036806,
-0.1198001057,
0.2405625135,
-0.2157945484,
-0.2780374885,
0.2113569081,
0.0620970987,
0.1622254401,
-0.3558203578,
-0.0777115896,
-0.2533759475,
-0.0681321323,
0.1221703812,
0.1441824883,
0.0095418552,
0.1336416006,
-0.1444761455,
-0.3320430517,
-0.1306844205,
0.0670905337,
0.1010916233,
-0.0039908797,
0.2840559781,
0.0924804807,
0.0219094958,
-0.1482168436,
-0.1065013483,
-0.199454248,
-0.1743006855,
0.0085590398,
0.2015721798,
-0.1814143062,
-0.2146723419,
0.0438419022,
0.0030675931,
0.0793969631,
0.0792411789,
0.3128162026,
-0.4647561312,
0.0515679531,
0.1602490246,
0.5055224895,
0.3906167448,
-0.0799036771,
0.2140353173,
0.3118721545,
0.238157928,
-0.1135246158,
-0.2740479708,
-0.1960723549,
-0.2340989262,
-0.0069742477,
-0.0698654875,
-0.0677563623,
0.0582613088,
0.2001819909,
-0.0457283407,
0.1784251481,
0.1480000764,
0.1270187497,
0.2794733644,
-0.3211748004,
0.0406146049,
0.2804034054,
0.1732444316,
0.1449830681,
0.3777579069,
-0.155561924,
0.1443802565,
-0.2752651572,
0.1954729408,
-0.1280411631,
-0.6779034138,
0.1011460274,
0.0413990989,
-0.0967221558,
-0.0895922408,
-0.1370328218,
0.328610599,
0.031060962,
0.0625447333,
-0.3678520918,
0.083988525,
-0.146653071,
-0.0880458355,
-0.3406415284,
0.0076262462,
-0.0325514041,
0.1551522911,
0.1516608,
-0.0349880047,
-0.0857884064,
0.087555252,
-0.0400349051,
-0.0436643362,
0.0709550157,
0.3961868882,
-0.2319028229,
-0.4020037055,
0.1886534542,
-0.1219384372,
-0.0789997056,
0.0003443246,
0.0715054423,
0.5281402469,
0.3324437141,
0.1592496336,
0.0043609194,
-0.0478784665,
-0.1837077439,
-0.053014677,
0.0596840233,
0.168232128,
0.3104562759,
0.4630704522,
0.1703826487,
-0.1467408538,
0.1241713837,
-0.1453257352,
0.320807457,
-0.0304010976,
0.1715202481,
0.1750356257,
-0.2403035462,
-0.2071764618,
0.2140192688,
-0.5623787642,
-0.2455458194,
0.3704135418,
0.0733888894,
0.0577129461,
-0.1164957657,
0.059036959,
0.1694279909,
0.5225658417,
0.1972418427,
0.3079322875,
-0.4567182362,
-0.0008988748,
-0.5817424059,
-0.0127124181,
0.1645325124,
0.2716319859,
0.1598727554,
0.1856327355,
-0.2448570281,
-0.0757828504,
0.2462040484,
0.2971826494,
0.1082025245,
0.2338157147,
-0.1574129313,
-0.1347533315,
0.1514977068,
-0.1274894923,
0.0899901316,
-0.1791541129,
0.0747643262,
-0.047213681,
0.0362292193,
-0.2751495838,
0.0237009134,
0.0012947904,
-0.1667187661,
0.5104473829,
-0.2578531206,
0.4464896023,
-0.0321036242,
0.1099808365,
-0.4661690891,
0.0489511788,
-0.149584651,
0.1149456576,
0.0738410726,
0.2687283456,
-0.0252669789,
0.3849053085,
-0.4096692204,
0.2747507393,
-0.1608556658,
-0.3426372111,
-0.0414932482,
0.1178343743,
0.0767926872,
0.3193475604,
0.0821501687,
-0.0379418992,
0.0348787792,
0.0631609559,
-0.5235247612,
-0.2149446011,
0.6017241478,
-0.439919889,
-0.048564598,
-0.007045777,
0.2270692587,
0.1117745116,
-0.1416445225,
-0.4197170734,
0.1078706607,
0.2636763752,
0.1084363237,
-0.0447178409,
0.3393389285,
0.2886269391,
0.1458837688,
-0.0916725025,
0.1939832866,
0.1492438167,
-0.1321776062,
-0.1302172691,
-0.3663119376
] |