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/2691
xtreme / pan-x cannot be downloaded
Hmmm, the file (https://www.dropbox.com/s/dl/12h3qqog6q4bjve/panx_dataset.tar) really seems to be unavailable... I tried from various connexions and machines and got the same 404 error. Maybe the dataset has been loaded from the cache in your case?
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
34
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Hmmm, the file (https://www.dropbox.com/s/dl/12h3qqog6q4bjve/panx_dataset.tar) really seems to be unavailable... I tried from various connexions and machines and got the same 404 error. Maybe the dataset has been loaded from the cache in your case?
[ -0.2679746151, -0.4418176115, -0.1176262721, 0.263651669, 0.2272866368, 0.109441027, -0.1848931462, 0.2379712164, 0.1063496098, 0.1472173631, -0.1563760489, 0.2612070739, 0.0340301096, 0.0054812445, 0.1887653619, -0.2929279804, -0.0231134109, 0.1571930051, 0.0854806453, -0.0127717871, -0.0448259339, 0.1623117924, -0.1777583212, 0.1660575718, -0.2347054929, 0.0610583015, 0.0814340636, 0.1718644649, -0.3454203308, -0.4189867079, 0.5661595464, -0.0949461311, 0.2182048261, 0.7195154428, -0.0001037239, 0.029213164, 0.2176597714, -0.0261945538, 0.0566016175, -0.4336358309, -0.312051177, -0.2680830061, -0.054717239, -0.217452839, -0.1400291026, -0.1007530242, -0.0880559161, -0.1750139296, 0.2505110502, 0.3105107844, 0.3232138753, 0.3803195059, 0.1769937724, -0.2066406012, 0.3996113837, -0.0941897854, -0.3172445595, 0.0890596136, 0.291251421, 0.1761109531, 0.5273679495, 0.3237524629, -0.035990335, 0.01547537, 0.1438702345, 0.0410692096, -0.0623051971, -0.4709225893, 0.0612655357, 0.3000107706, 0.4271568954, -0.2391210198, -0.3885631561, -0.1054579988, 0.1049025655, -0.4078127146, 0.2444296479, 0.1799361557, -0.0162781551, 0.1052498221, 0.0096647339, -0.0978146195, -0.0419346914, 0.061960347, -0.0776690915, 0.2221197784, -0.2184877247, -0.0683026388, 0.0588098839, -0.0759772062, 0.2078839242, 0.0511516072, -0.0275817383, 0.1276535392, -0.2452937365, 0.0600650609, 0.0632190779, -0.1291555911, 0.2096275985, -0.0791393146, -0.0892371386, 0.0114942733, -0.1473245472, 0.0619762242, 0.0659476072, 0.2439484745, 0.0383298434, 0.023759257, 0.2091335207, 0.1862054765, 0.0814154819, -0.1025758237, -0.1737052202, 0.0113050872, 0.1954597384, -0.0294615421, 0.3959264159, -0.3529496789, -0.2808384299, 0.0221819729, 0.039759811, 0.0408065207, 0.0866132379, 0.2145691365, -0.0824295655, 0.4011311531, -0.1501498371, 0.3440098166, -0.2506442964, 0.0770462826, -0.216953665, 0.2924670875, -0.2931419611, -0.1526381522, 0.1920556873, -0.0812760144, 0.3481796384, -0.0350375399, 0.3502664566, -0.1696176976, 0.1593685001, 0.0612696558, -0.2728769183, 0.420445323, 0.1726548374, 0.1674811095, -0.0856520981, 0.0686986968, -0.158420682, 0.0594493374, -0.5414466262, -0.2124146074, -0.0291900542, 0.2986300588, -0.1243535876, -0.0292222463, -0.5017439127, -0.2424407601, -0.0926842093, 0.2001236081, 0.0688056648, -0.2365991771, 0.1697010845, -0.2065945715, 0.1218229979, 0.1404039562, -0.1871485412, 0.0682939216, -0.0762732998, -0.2601477504, -0.1281083077, 0.0846766233, -0.1892631948, 0.0538471229, -0.321226418, 0.2798066139, 0.5203256607, -0.6607079506, -0.5881972909, -0.1088322178, -0.3328566253, 0.0381412469, -0.0329001136, 0.11681813, -0.098202005, 0.0026604857, 0.220636189, 0.2092215419, 0.0729323328, -0.0459183194, -0.1469891369, -0.199612245, -0.3954458833, 0.2889851928, 0.2185927182, -0.1155568436, 0.0630724952, 0.0086838137, 0.1266670525, -0.0867341608, -0.0569842122, 0.4788992703, 0.3095558584, 0.0865387842, -0.0792886913, -0.3216755986, -0.2247875631, 0.2472710907, -0.0705728158, -0.0963473991, -0.032741949, -0.1887048483, -0.4533225596, 0.1431083679, -0.3158526719, -0.1230280027, 0.1752060205, 0.126068756, 0.2419695258, 0.0138474628, -0.241173625, 0.0591529794, 0.1169229075, 0.1251553148, -0.4320318103, 0.2213035673, -0.1491875798, -0.1053041071, 0.0922814459, 0.1673107743, 0.2436996698, -0.225093618, -0.0908469036, 0.3246710896, -0.0967023075, 0.0355166979, 0.3533550799, 0.0978429094, 0.0845169947, -0.5908102989, 0.2334865928, 0.1035212874, -0.0187883023, 0.1300655305, -0.04315174, 0.3024267554, 0.1514281929, -0.1150516123, -0.0487057306, 0.07426209, 0.4298826158, -0.1736485809, 0.0714133307, -0.1306801885, 0.2847750783, -0.1419814378, 0.1040667892, -0.2299804389, -0.2976065278, 0.2326199859, 0.3081136048, -0.1277648956, 0.182697773, 0.0562876053, -0.0640334263, 0.1722058058, -0.0551215, 0.1123165041, 0.3923810124, 0.1955979317, 0.0783931315, 0.0904871374, 0.0251342244, -0.0745072663, 0.051460132, 0.0309502129, -0.2735632658, 0.0072253775, 0.1577750593, 0.0551331155, -0.2244773805, -0.2198762745, -0.1738977134, 0.126578778, -0.0564301051, -0.0923085138, -0.2825476527, -0.158755973, -0.0015428493, -0.0670297444, -0.2526370883, -0.2226974815, 0.04910703, 0.2205242217, 0.2909303904, 0.1391824484, -0.4456436336, -0.1586825252, 0.120525606, -0.3013074398, -0.1710587889, 0.2445184886, -0.0701964945, 0.1309379935, -0.0495746806, -0.014770437, 0.2298843265, -0.4031028748, 0.2660706639, -0.4210806191, -0.2356017232, 0.1419920474, -0.210390687, 0.2974482477, 0.1424492002, 0.0910662264, -0.0189682133, 0.1650266796, 0.3228320479, -0.4411509037, -0.046685379, 0.0402264595, 0.0551933497, -0.2243187726, 0.0146071967, -0.1893942803, -0.3284139335, -0.3596835732, -0.0406743512, 0.1506468356, 0.0344254449, -0.0185064003, 0.0803383365, 0.0885248333, -0.0685615465, -0.0511880443, -0.2514696717, -0.7017880678, 0.4636757374, -0.2644921541, -0.4040010571, 0.4038115144, 0.0343755148, 0.287476629, 0.0281602964, -0.6414681077, -0.4265072644, -0.208142966, 0.4057196379, 0.0910306647, 0.1623050421, 0.248888731, -0.1939972043, -0.0804984495, -0.1296488941, -0.2731975913, -0.3393237889, 0.1231076121, 0.3514181674, 0.0049007419, 0.169390291, -0.0566533059, 0.4797627032, 0.1411711127, 0.2660492361, 0.482819587, 0.007464435, 0.4104549885, -0.172199592, -0.2594892979, -0.11807625, 0.0553673096, 0.0891868547, -0.0057333102, 0.346868813, 0.0325024612, -0.3200869262, -0.0823823512, -0.126982376, -0.1169475392, -0.1346804351, 0.1619883925, 0.0826361999, 0.1031508744, 0.2671746016, -0.2168581784, -0.0569071397, 0.1009311602, 0.4193547666, 0.0583783798, 0.2410029769, -0.6325914264, 0.1530998796, -0.5051279664, 0.2458710819, -0.0115502356, 0.2705219984, 0.0215682182, 0.0908028707, 0.2392059267, -0.0294359662, 0.2986418009, -0.2792758048, 0.2141708881, 0.2215051949, -0.1775685549, -0.1594885588, -0.1793939024, -0.1052879468, 0.1101507321, 0.2103469521, 0.3577738702, -0.2909294367, -0.2092891783, 0.2081019431, 0.1121469289, -0.0364821441, -0.1105238572, -0.2614931464, -0.603728056, -0.1307972819, -0.1397304982, 0.1818607897, 0.063829422, 0.190894559, 0.0098217633, -0.2043605596, -0.0811319277, 0.20224078, 0.2132597417, 0.3442692459, -0.1325381696, 0.1247725189, 0.0889205709, -0.2817153633, 0.1870240271, 0.6367663741, -0.1025062427, -0.3539460599, 0.1042637974, -0.0760075599, -0.020128889, 0.1653694659, -0.1158909351, -0.0652606413, -0.200365901, 0.196585089, 0.034197595, 0.2208950073, 0.3908568025, 0.0154881785, -0.4292641878, -0.2944341302, 0.4085500836, 0.2411630303, 0.09592361, 0.2109409273, -0.0355041102, -0.0108922729, -0.1219790056, -0.0640271828, 0.9632137418, -0.0313609466, 0.0339884721, 0.16077815, 0.0260238033, 0.1442560703, -0.1871309876, 0.2287029326, -0.1123203635, -0.4142075181, -0.1158688292, -0.129353866, 0.018919548, -0.0664960667, 0.0476432219, 0.3310643733, -0.002762985, 0.1432364136, 0.0629527867, 0.0580046661, -0.1306233257, -0.1149517894, -0.5382687449, 0.2539912164, 0.0254720543, 0.3790529668, -0.1656427234, -0.1075837091, -0.1945651174, -0.1265370101, -0.0394810326, 0.2701868117, 0.0465235524, 0.0725006312, -0.0001514806, -0.5629294515, -0.1786335111, 0.0207467955, 0.0313845426, 0.1240784526, -0.2292950153, 0.3383002281, 0.0363529958, -0.2561442256, 0.0899369568, -0.1675925702, -0.1227649525, -0.1348510236, -0.1696882397, 0.2684601545, -0.0428850316, -0.2032650858, -0.2238266468, 0.0783624724, -0.1164330617, -0.0543870963, -0.0939945504, -0.126631245, 0.2196065784, -0.2141880691, 0.2009350955, 0.1866673827, -0.0729640946, 0.0575856343, 0.0294682477, -0.2769971192, -0.1553140581, 0.3060646951, -0.0045218505, -0.1293380558, 0.095978491, 0.1144566536, -0.0868709013, -0.1844843328, -0.0474107154, 0.1227231324, -0.4821640849, -0.0282456819, -0.1865504682, -0.0069320123, 0.0028716959, 0.1874539852, 0.2820071578, -0.3644226491, 0.161737442, -0.5957940817, -0.131820932, 0.1325116903, 0.0234614685, 0.227047205, 0.0316795222, 0.0467220023, 0.1196063831, -0.2379757166, -0.4012408257, 0.1236587465, -0.1498196572, -0.0982621983, 0.1478442401, 0.00642295, 0.2935067713, 0.0275845081, 0.2196458131, 0.0600195266, -0.3998732269, -0.2403431982, 0.0552066304, 0.0627825633, -0.03830567, -0.1196441948, 0.0185992159, -0.1285143644, -0.1325447112, -0.0398797169, 0.0891964436, 0.1925430298, 0.0986528769, -0.1837013662, -0.0692939907, 0.0167422947, -0.1642522067, 0.3258415163, 0.1398627758, 0.2318577617, -0.0144981043, 0.1323748529, -0.0856103674, 0.0066347853, -0.1870061904, -0.1457726955, 0.0546050221, 0.3340921402, 0.291737318, -0.2557479143, 0.2778270245, 0.5029014349, 0.2845906317, 0.2882719636, -0.2615940571, 0.2006411999, 0.1876649559, 0.3432890773, -0.272510916, -0.2151302844, 0.4091149569, 0.3377299309, 0.0234304927, 0.3495349586, 0.2278744876, 0.0965241119, 0.3864114881, 0.237853542, 0.7002607584, 0.0109212706, 0.3064974844, 0.3967801929, 0.0297811627, 0.0279741175, 0.4111221135, 0.2453274727, 0.0571967363, 0.5404459834, -0.1116679087, 0.3812040687, 0.0508449189, 0.1516121477, -0.2021225989, -0.1842542291, -0.2625829577, -0.0538459979, 0.1176701859, 0.0569014214, -0.0204860773, -0.0404532962, -0.3588008881, -0.0177036114, -0.381813705, 0.1952452809, -0.1012210026, 0.1443653256, 0.118409656, -0.2016306967, 0.0395739488, -0.0301496871, 0.0656934753, 0.0278110243, 0.1514739692, -0.0215785112, -0.1175265908, -0.263260603, -0.0096974401, 0.2329890579, 0.0319781378, -0.0951241925, 0.398548305, 0.1374699324, -0.0519791469, -0.0433445238, 0.3460862935, 0.3359360695, 0.1591624171, 0.0225496273, -0.0402082764, 0.0929911137, -0.122949712, -0.0861298963, 0.1511771232, -0.0349756964, 0.321508795, 0.2348560095, 0.306463331, -0.2580749393, 0.1845088154, -0.2394280285, 0.1145102009, -0.2463304996, 0.0031751527, -0.2701856494, -0.0975321606, -0.2701838017, -0.1282824129, -0.2590591311, 0.0486114323, 0.2965444624, -0.0721522644, 0.0045251832, -0.3530625999, 0.1089876443, -0.1153901443, 0.1304296255, 0.4215750396, 0.0298536085, -0.1419174671, -0.0996893197, -0.8327544928, 0.2654557824, -0.3724471927, -0.3370613754, 0.1744966507, -0.1068008691, -0.185187459, 0.2556072772, 0.4662512839, 0.1534205079, 0.1642297953, 0.2508545518, -0.3839325905, -0.0946436524, 0.2254659086, 0.0352406316, 0.1736332327, -0.2499008328, 0.0057582087, -0.0723202601, 0.1074136868, -0.1509796381, -0.0982130989, -0.1745832562, -0.2246097326, 0.7090951204, 0.0415950976, 0.0496664084, -0.0144843347, -0.2729942501, -0.3072061539, -0.2880758941, -0.1513742507, 0.0844444036, 0.0616012663, 0.2224789113, -0.1881354451, 0.0445699766, -0.4247744381, 0.2465497702, 0.1028693318, -0.0479448959, -0.0912304446, 0.2359807193, -0.3780379891, 0.1200848892, 0.2901974916, 0.1547182798, 0.0404205732, 0.1829794496, -0.0811452642, -0.4246267378, 0.5179021955, -0.0178216472, -0.2735969722, -0.0381781757, 0.1045883298, 0.0730183497, -0.2387008667, -0.2471563518, 0.3185578287, 0.2581023276, 0.120438166, -0.1316838115, 0.1669015586, -0.2302280515, -0.043586839, 0.1229612529, 0.5427110791, -0.092375733, -0.1214352995, 0.3414206505, 0.0096554356 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
Yes @severo, weird... I could access the file when I answered to you, but now I cannot longer access it either... Maybe it was from the cache as you point out. Anyway, I have opened an issue in the GitHub repository responsible for the original dataset: https://github.com/afshinrahimi/mmner/issues/4 I have also contacted the maintainer by email. I'll keep you informed with their answer.
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
62
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Yes @severo, weird... I could access the file when I answered to you, but now I cannot longer access it either... Maybe it was from the cache as you point out. Anyway, I have opened an issue in the GitHub repository responsible for the original dataset: https://github.com/afshinrahimi/mmner/issues/4 I have also contacted the maintainer by email. I'll keep you informed with their answer.
[ -0.3182061613, -0.3272893429, -0.1103756279, 0.2835795581, 0.2328956872, 0.0658766776, -0.0919084772, 0.1860668957, 0.046389956, 0.2400703877, -0.2260717005, 0.2097330093, -0.0343384668, -0.148910448, 0.1411536634, -0.2330800295, -0.0239751991, 0.0649311766, 0.0869292766, -0.0030195436, -0.0435504578, 0.0999884754, -0.1346054971, 0.1627422422, -0.2816882133, 0.1641904116, 0.1339256912, 0.1528054625, -0.3610311151, -0.5697411299, 0.5499162674, -0.0718996152, 0.2162337154, 0.6330674887, -0.0001045263, 0.0274303593, 0.2513790429, -0.0701240525, 0.0219655875, -0.3303211331, -0.1703126878, -0.3326670825, -0.0559186935, -0.2326420546, -0.0492846332, -0.161085844, -0.0430012867, -0.2736638188, 0.1877945065, 0.3142369092, 0.3028452396, 0.3407099843, 0.1974212676, -0.1840541363, 0.4177656472, -0.1172999442, -0.2915068269, 0.098632127, 0.2888220549, 0.2544910908, 0.3358387053, 0.346704483, -0.0624664649, 0.136175558, 0.1152227223, 0.1114344746, 0.0359213836, -0.4036873579, 0.1034546494, 0.3053647578, 0.3668736815, -0.2257569283, -0.3703783751, -0.1280192733, -0.0011333199, -0.4135956168, 0.286431551, 0.1885605156, -0.0614450388, 0.0487342179, 0.0590130799, -0.0640952811, -0.0094632553, 0.0822290853, -0.2367552072, 0.3045525551, -0.2398660034, -0.0810085312, 0.0611775219, -0.0976331234, 0.4266873896, 0.1055223197, -0.0498620048, 0.1894536912, -0.1910709292, 0.0861554295, 0.09162613, -0.0313158445, 0.1879511029, -0.093967624, -0.0870376676, 0.0212327074, -0.1213040724, 0.0533424243, -0.0236647949, 0.2236054093, 0.0136994431, 0.0123609258, 0.3364661336, 0.1675426513, -0.0252038166, -0.1039089635, -0.0610515587, 0.0210199375, 0.3471225798, 0.0151838977, 0.2679444849, -0.4040788412, -0.1462791115, 0.1088359132, 0.0811564997, 0.0040618475, 0.0753681958, 0.2696226239, -0.131043911, 0.5004306436, -0.1439539343, 0.2774460316, -0.1786136925, -0.0545942821, -0.2305137217, 0.2875284553, -0.3185658157, -0.1640538573, 0.2681398094, -0.0885947645, 0.3424469233, 0.0193038918, 0.4485731125, -0.2276662439, 0.1455591619, -0.0391323529, -0.1567942053, 0.3950021863, 0.2186508626, 0.2417785823, -0.0570862591, 0.1070093513, -0.1398314685, 0.0547440946, -0.533215344, -0.1445198208, 0.0484364927, 0.2813414931, -0.1109331176, 0.0443460867, -0.4615262151, -0.2585165501, 0.0184416678, 0.0368482322, 0.0654705688, -0.2370758057, 0.1036684737, -0.2727524042, 0.1194797978, 0.1861195117, -0.1496270895, 0.0811401904, -0.1508211643, -0.1840723604, -0.103688255, 0.0949766114, -0.2324252725, -0.0280531868, -0.3431361616, 0.1788950861, 0.4966637492, -0.5603684187, -0.6766212583, -0.1945021451, -0.2167248875, 0.105719015, 0.0522405654, 0.1284445822, -0.1195855141, -0.0755696669, 0.1165131405, 0.2314849645, 0.0689336881, -0.0431963764, -0.2029492855, -0.1580140293, -0.3941797316, 0.2986284792, 0.3304897547, -0.0866442025, 0.1213660762, -0.0463839397, 0.0500182509, -0.1777494401, 0.0538883656, 0.4001024067, 0.087631613, 0.0499618053, -0.1079478115, -0.396091789, -0.2692902982, 0.304980576, -0.2314901799, -0.0901014432, 0.0422868244, -0.1657967865, -0.3381284177, 0.1252348423, -0.2549578846, -0.1380518973, 0.1980192363, 0.2179943472, 0.2107340097, 0.0432916284, -0.1856300682, 0.2093696743, 0.134726882, 0.0454655513, -0.3934728503, 0.0988776162, -0.1647422016, -0.0848025307, -0.0186087918, 0.0318333693, 0.2233185917, -0.1131896228, -0.13132523, 0.2966015637, -0.1410744339, 0.1947293729, 0.1766802967, 0.1290342808, 0.0698763207, -0.5461263657, 0.3711177707, 0.0836982131, 0.0137755387, 0.1292071044, -0.1238273755, 0.3975926638, 0.225864023, -0.1046828926, -0.0073532974, 0.0574755296, 0.4007211328, -0.1839655042, 0.1376815438, -0.2009602785, 0.3223166168, -0.0778861567, 0.0890905783, -0.1408871561, -0.3618682325, 0.2239439487, 0.299371779, -0.0730525628, 0.2745698988, 0.0513552316, -0.2327726185, 0.1006514356, -0.1656294465, 0.1345455945, 0.4002485871, 0.1655012965, 0.1585409939, 0.1127975956, 0.0303281285, -0.1219317243, 0.0640179142, 0.0798132122, -0.3082913458, 0.138644442, 0.2200646251, 0.0478183478, -0.2584237158, -0.0435235202, -0.1759922057, 0.0869174227, -0.1290675849, -0.0549277328, -0.2891584933, -0.0187093634, -0.0212732572, -0.1296852231, -0.3267957866, -0.2894040048, 0.08331462, 0.3019234836, 0.3182377219, 0.0738873556, -0.4791662395, -0.1091630459, -0.025845848, -0.1513306797, -0.2301011682, 0.1849560738, -0.0872136354, 0.129490152, -0.012881848, -0.0319494121, 0.2024101317, -0.3810043633, 0.2993233204, -0.3908238113, -0.2395476848, 0.1227839664, -0.0964194685, 0.3663295507, 0.1242181584, 0.0071555483, 0.0495900586, 0.2909898758, 0.3144432604, -0.5699628592, -0.0599181764, -0.0251490567, -0.0103815822, -0.113144435, -0.0026948, -0.2132196873, -0.402687043, -0.3585482836, -0.1287237257, 0.2220827639, 0.0845837295, -0.1363319606, -0.0353296362, -0.0234603547, -0.0528175123, 0.0132874548, -0.3657120168, -0.7164654136, 0.5234929323, -0.366672039, -0.3437447548, 0.3153211772, 0.0493956767, 0.3250019252, 0.0266776122, -0.5940797925, -0.4159544706, -0.1920966655, 0.2497019619, 0.0749895349, 0.1958061904, 0.2518183589, -0.2047296762, -0.1169370338, -0.1770110279, -0.1927515417, -0.3299803734, -0.0104140304, 0.2748672366, -0.0486644506, 0.2104870081, -0.0205362458, 0.5043950677, -0.004030786, 0.2921924889, 0.513895154, -0.0157216098, 0.3878628314, -0.1739789248, -0.2270197719, -0.1005499661, 0.0359632298, 0.1180128083, -0.0814062878, 0.3046616912, -0.029774325, -0.3115224242, 0.0018648125, 0.0753884986, -0.1000460088, -0.0201785509, 0.2238375992, 0.1390814483, 0.1191478893, 0.2177915275, -0.3337517977, -0.1647443175, 0.0646175668, 0.2860424817, 0.0719974265, 0.2217722088, -0.6987008452, 0.2945086062, -0.3549474478, 0.2589454353, 0.1331323683, 0.2972770035, 0.0891903043, -0.0356935896, 0.2496794015, -0.03142846, 0.2928505242, -0.2753569484, 0.1924650967, 0.2488080114, -0.189015016, -0.2577940226, -0.1476650089, -0.0607869476, 0.0950523317, 0.0741123483, 0.2206855267, -0.2511304021, -0.2098117024, 0.1976281404, 0.1668668538, -0.1227129251, -0.0575697273, -0.2543337643, -0.385594368, -0.2199777216, -0.1009287536, 0.16314812, 0.0240852553, 0.1836425811, 0.1339164972, -0.2818680108, 0.0226787832, 0.218298167, 0.2294733375, 0.4041042626, -0.1779536158, 0.0862171501, 0.1354386359, -0.2517173588, 0.235996902, 0.6561265588, -0.0692818463, -0.1975251436, 0.2336286455, -0.0230964478, -0.1156216338, 0.1739469022, -0.1396588981, -0.0992720202, -0.2316386998, 0.1636507511, 0.0345823579, 0.237944901, 0.2754203975, 0.0214607827, -0.4427713454, -0.2652612627, 0.4133499563, 0.2995727658, 0.0854316801, 0.1106896847, -0.1749093533, -0.0096167047, -0.2360397577, 0.0575968996, 1.017308712, 0.0572349131, 0.2175718844, 0.0290111005, 0.0634133145, 0.0565524511, -0.2485340089, 0.204652831, -0.1223322451, -0.3878817558, -0.1455356777, -0.1915264726, 0.0145893013, -0.1603752226, 0.0710685924, 0.3486486971, -0.0586817376, 0.2197333872, 0.1215181127, 0.0530672371, -0.2179560363, -0.1773557663, -0.4743053019, 0.2352399975, 0.024823945, 0.3444923759, -0.1160425097, -0.0381646268, -0.1843738407, -0.0278280396, 0.0443978384, 0.2960229516, -0.0469833687, 0.1254891157, 0.0148100974, -0.5127183199, -0.1716355532, -0.0126478923, 0.0856185183, 0.0979857817, -0.1677841246, 0.3572308719, 0.0622941963, -0.1430042237, 0.1259830594, -0.1241479367, -0.0142247267, -0.1708566993, -0.0881160945, 0.336365819, -0.0510583669, -0.2698976398, -0.3379271924, 0.108613506, -0.0641646609, -0.0367734917, -0.0996807888, -0.1845029444, 0.2647097111, -0.1955669671, 0.1958833337, 0.2199277878, -0.0514434315, 0.0763024315, -0.0234757345, -0.2715888619, -0.1240642369, 0.4434833825, 0.1363621503, -0.1830365211, 0.1523014754, 0.1323874593, -0.0747343078, -0.1610768586, -0.0792463496, 0.167633459, -0.5585591197, 0.0591034405, -0.2398998588, -0.08129327, 0.0603835471, 0.1577666253, 0.2505895495, -0.258315593, 0.071505107, -0.578091979, -0.2697542906, 0.0295938198, -0.0586961955, 0.1819915622, 0.0045940825, 0.0138160838, 0.0133006582, -0.1490948647, -0.3993141353, 0.232001245, -0.1090363115, -0.1081173345, 0.0873615444, -0.0078232586, 0.2727997899, 0.0636743382, 0.1723722816, 0.1119482294, -0.4826046824, -0.2258475274, -0.0068132137, 0.0910323709, -0.035565339, -0.1436185539, -0.0072477493, -0.0998624042, -0.1102187186, -0.0084547279, 0.1170776784, 0.2097505629, 0.0412966795, -0.2090098113, -0.1159459576, 0.0112968143, -0.1504197419, 0.3645821214, 0.1342124939, 0.0499598198, -0.0004250272, 0.1925400048, -0.1359709054, -0.0129971998, -0.1121397167, -0.0891812891, 0.0612369254, 0.266677767, 0.3983948231, -0.2141108215, 0.214477241, 0.581668973, 0.2518544197, 0.2296134084, -0.295910269, 0.1607381254, 0.1413058788, 0.3287953436, -0.3148748279, -0.2781591117, 0.4195446074, 0.2699162066, 0.0607740618, 0.345785141, 0.3644166589, 0.1267199218, 0.4909859896, 0.2410897613, 0.7073952556, -0.0904363692, 0.309062928, 0.3332034051, -0.0311150979, 0.0885229111, 0.5610824227, 0.2646366954, 0.1068780273, 0.5835367441, -0.0724652186, 0.4266380668, 0.0914976224, 0.055704385, -0.1497881711, -0.1735353917, -0.2629806995, 0.0968461409, 0.1215831712, 0.1593313366, -0.1135703996, -0.1025872976, -0.2767372727, -0.074908264, -0.4128288627, 0.2028880417, -0.1576401889, 0.0098310728, 0.0702227056, -0.2928051949, -0.0622260422, 0.0822267309, 0.0259677712, 0.0887749121, 0.1094326451, 0.041986946, -0.1684212685, -0.273629427, -0.1572639346, 0.2412972748, 0.0817092657, -0.1552294195, 0.3693654835, 0.1513488144, -0.1085922718, -0.0205726717, 0.3077449203, 0.3604052663, 0.1155742481, 0.061166577, -0.0524356328, 0.0979602858, -0.0790833533, -0.1598642915, 0.1252259463, 0.0504924878, 0.3037781119, 0.1888390481, 0.2769694924, -0.2973167598, 0.2524169981, -0.2654284537, 0.1609306037, -0.2756278217, -0.1300498396, -0.1435505003, -0.0833067149, -0.2492129505, -0.1099410728, -0.2449303865, -0.0160887558, 0.2885899544, -0.1056002229, 0.0203259233, -0.4095278978, 0.1032078862, -0.0276093297, 0.2106093168, 0.4602038264, -0.0942182019, -0.1156591251, -0.1780619621, -0.9365283251, 0.3066981435, -0.2836108506, -0.2083442807, 0.1622205377, -0.1118565872, -0.0682985112, 0.257486254, 0.4689864218, 0.1569052786, 0.2140837312, 0.2086201608, -0.3969551325, -0.0938301682, 0.3109642863, 0.0110948794, 0.1661643833, -0.2809453607, -0.0325657278, -0.1328879595, 0.1413197517, -0.1511572003, -0.0938483402, -0.1022335887, -0.0718074962, 0.7232590914, 0.0636358932, 0.0494974181, 0.0063656443, -0.3130991161, -0.373524785, -0.2301959693, -0.1844263077, -0.0065051424, 0.0904607177, 0.3327546716, -0.220178023, -0.0283155143, -0.417260319, 0.1894254982, 0.1188800335, -0.0296960883, -0.1313202977, 0.1838794351, -0.3572981656, 0.124730207, 0.3231872022, 0.2014230639, 0.0441384725, 0.2464496344, -0.1630648971, -0.3918916881, 0.4560477436, 0.038398575, -0.2726225257, -0.1572236568, 0.0500914454, 0.0204189289, -0.1961494386, -0.2693957388, 0.2729895413, 0.2459129691, 0.1181408167, -0.1239309832, 0.1538918763, -0.2061368972, -0.0190596487, 0.0374163687, 0.4905186296, 0.0262593497, -0.136661604, 0.2494591177, 0.0027826971 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
Reply from the author/maintainer: > Will fix the issue and let you know during the weekend.
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
16
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Reply from the author/maintainer: > Will fix the issue and let you know during the weekend.
[ -0.3508208096, -0.488174051, -0.1012571454, 0.2679371834, 0.2424272746, 0.0743882954, -0.1332193464, 0.2452751994, 0.1442700922, 0.1187145188, -0.2436652482, 0.2646327913, 0.0461621732, 0.0465012416, 0.1917270422, -0.3267599642, 0.0447654724, 0.1279416531, 0.0111563457, -0.0376446284, -0.1420015991, 0.1677829772, -0.2066326439, 0.1202999949, -0.2243206352, 0.1020483449, 0.0773360953, 0.1569075137, -0.3100254238, -0.4581514299, 0.6455737352, -0.0633812845, 0.2681769729, 0.6048039198, -0.0001053799, 0.021037925, 0.2643087208, -0.0464517996, 0.1647493392, -0.43619892, -0.2859497368, -0.3566257656, -0.0301673207, -0.2249145657, -0.0407121219, -0.2227440923, -0.1089594886, -0.1149023026, 0.2539049089, 0.2242111117, 0.2944548726, 0.3886257708, 0.1530674398, -0.2150014937, 0.4348995388, -0.0721097514, -0.3141874373, 0.1084874719, 0.3806251884, 0.1838413775, 0.464098841, 0.2748149335, -0.0413430221, 0.0587844886, 0.1589153856, 0.0977327228, -0.0495262146, -0.4637801349, 0.0388810001, 0.3281199634, 0.38798666, -0.2812048793, -0.3449713886, -0.0700661093, 0.0634025708, -0.3715294003, 0.2863737345, 0.1802633554, -0.0139234699, 0.0406313054, 0.0181268863, -0.0481522344, -0.0553827472, 0.1107013375, -0.0341188647, 0.2764595449, -0.2252988815, -0.0331716314, 0.1091584787, -0.0374770723, 0.2385869622, 0.0867522582, -0.0555852093, 0.1689655185, -0.2702021897, 0.0684052855, 0.007478517, -0.0838779956, 0.348156184, -0.077706039, -0.1982531548, 0.0007949203, -0.1292143613, 0.0622541457, 0.0946066231, 0.1408194005, 0.0807008594, 0.0324025303, 0.2074718922, 0.1673328131, 0.0849220231, -0.0790969282, -0.1301610768, -0.0352247544, 0.1570241004, -0.0415830277, 0.3730690181, -0.393217653, -0.2654046714, 0.0548113994, 0.0834706277, 0.0691126809, 0.0720817149, 0.2562322319, -0.104668811, 0.337223798, -0.148921892, 0.4322537184, -0.220555678, 0.0384462103, -0.2084828615, 0.3019188046, -0.2957861722, -0.2560020685, 0.2096584737, -0.15046148, 0.3913121521, 0.0729189813, 0.3850796819, -0.1997147202, 0.0614920594, 0.0084680989, -0.3092308939, 0.3815721571, 0.1917422414, 0.1878199577, -0.1223000661, 0.1563585103, -0.1546246409, 0.0993809178, -0.5259682536, -0.0668006912, -0.0467677303, 0.2607637048, -0.123436898, -0.0680576786, -0.589420855, -0.141350016, -0.0553174838, 0.1839160025, 0.1050056741, -0.2398906201, 0.1146361753, -0.2036353946, 0.2371753454, 0.1873582155, -0.2137734741, -0.0268492363, -0.018271694, -0.3518374562, -0.0915606543, 0.152022019, -0.1924153268, -0.0190141201, -0.2748939693, 0.3359985054, 0.475649327, -0.5591965914, -0.5651314855, -0.0963319913, -0.2180440426, 0.0007039261, -0.0200065468, 0.0962054208, -0.1117713079, -0.0004895564, 0.0994873792, 0.2488736808, 0.0631217808, -0.0226259902, -0.1768683046, -0.226600647, -0.3862450421, 0.342541784, 0.2518789172, -0.0944090337, 0.0663155615, -0.0002345251, 0.1595530957, -0.0831320137, -0.0486579947, 0.3730817139, 0.2286722213, 0.0447256342, -0.1036695316, -0.3814466, -0.3556779027, 0.2895232737, -0.0928322002, -0.1557424515, 0.0468275025, -0.154229477, -0.4698529243, 0.2062277645, -0.2509517372, -0.0803833753, 0.1326963007, 0.0898676068, 0.2055642456, 0.0326891989, -0.2376070917, 0.0768269822, 0.0526437946, 0.1150268093, -0.3940128088, 0.2354757339, -0.087281622, -0.1635205895, 0.0684076995, 0.0649869964, 0.2122334093, -0.2378918827, -0.1321239918, 0.3139256537, -0.0963530988, 0.1405936033, 0.2412087619, 0.0367051326, 0.0682005435, -0.6196575761, 0.2208236307, 0.0719354302, -0.0106893349, 0.1309362799, -0.0878989697, 0.3659490645, 0.0959121436, -0.1123288423, -0.0786753744, 0.0964420512, 0.3741548061, -0.1869223118, 0.1258787811, -0.0770234168, 0.3527864516, -0.0877232626, 0.130599007, -0.2188172489, -0.3352223337, 0.0951018184, 0.2439255714, -0.0809092075, 0.2046396583, 0.0871256888, -0.108967714, 0.1696588844, -0.0836643055, 0.0586606413, 0.4200647771, 0.1910061091, 0.0222819801, 0.1096699089, -0.0126074515, -0.1149558276, 0.0522857681, 0.0696805343, -0.2818588614, 0.054543525, 0.1104596779, 0.0407716781, -0.3076773286, -0.1345251203, -0.1521246582, 0.1130895168, -0.1194999367, -0.1115959287, -0.1741675287, -0.0930005834, -0.0067220256, -0.0441840775, -0.2230142206, -0.1807044744, -0.0032337662, 0.2508817315, 0.3006361127, 0.1857054085, -0.4258005917, -0.1767805666, 0.0492324568, -0.3311212361, -0.2414435893, 0.2739614546, -0.0648465827, 0.1281391233, 0.0012628277, 0.102606684, 0.2570170462, -0.3908736706, 0.2834924459, -0.3780145049, -0.2129531205, 0.0874036252, -0.2608729303, 0.3951699734, 0.1670733988, 0.0618841723, -0.1002267227, 0.2385388315, 0.3719345927, -0.489525497, -0.0249969289, 0.031135302, 0.0116852056, -0.2028900981, 0.0012991652, -0.2291319519, -0.3406859934, -0.33328107, 0.0251753759, 0.1601014137, 0.0542628989, -0.0320993625, 0.0846427158, 0.0127806822, -0.1503257453, -0.1215312183, -0.249209851, -0.6595409513, 0.4708841443, -0.2177619487, -0.4426346123, 0.2858902216, 0.0693381131, 0.2742734849, 0.0797222033, -0.5939117074, -0.3438004553, -0.207049787, 0.4223082662, 0.0485911705, 0.2106079161, 0.1916272342, -0.2807768285, -0.0558228083, -0.19828026, -0.225424394, -0.3088794053, 0.0396662503, 0.2459840626, -0.017733084, 0.2006801218, -0.1411969066, 0.455924958, 0.1566536278, 0.2250502557, 0.560768187, -0.0784544125, 0.2969373167, -0.1781839132, -0.3331464827, -0.0779973641, 0.1333859861, 0.1393454075, 0.0049041566, 0.2621774375, 0.0415849164, -0.2719682455, -0.0684315041, -0.0087967962, -0.0761468858, -0.0551777929, 0.1933756769, 0.0745694935, 0.0178926773, 0.2722104788, -0.1637094915, -0.1097762808, 0.0779530779, 0.376009047, 0.0609090067, 0.2542283535, -0.6363353729, 0.1994326115, -0.4225559533, 0.2633747458, 0.0229358561, 0.3032847345, 0.0271447692, 0.1275611222, 0.2268923223, 0.0173958242, 0.3738662302, -0.2115797102, 0.2356042266, 0.1690295935, -0.1563703567, -0.3037770689, -0.1220082939, -0.1556053311, 0.0848980993, 0.184973523, 0.4261042178, -0.2923200727, -0.2029683888, 0.2418844104, 0.1523058712, 0.0301390253, -0.1369527578, -0.3014232218, -0.5566598177, -0.1976756603, -0.0641249865, 0.2056792825, 0.0641508624, 0.1885642111, -0.0287857614, -0.2342079282, -0.0634587333, 0.1824844927, 0.2650256753, 0.3496652544, -0.1581734568, 0.2069971859, 0.0887271985, -0.3461327553, 0.2118752152, 0.6712538004, -0.0343954116, -0.4521390498, 0.0967701674, -0.0372720286, -0.0049406299, 0.0629563704, -0.1753770709, -0.0580417439, -0.2222937047, 0.1522693336, 0.0563973412, 0.2417755574, 0.3856701255, 0.0768093392, -0.457279563, -0.2930098772, 0.5171845555, 0.2759589851, 0.1106102318, 0.2264079005, -0.0755701214, 0.0059405738, -0.1686211228, -0.0367954336, 0.8605222702, -0.0200943053, -0.0090473555, 0.2049699277, 0.0234197639, 0.192670688, -0.1032147855, 0.0858310983, -0.1676979363, -0.4318577349, -0.1242150664, -0.1855197996, 0.1440004259, -0.0584130771, -0.0112074055, 0.2490831912, -0.0173950065, 0.1041809469, 0.0706710294, 0.0729287863, -0.1568383276, -0.1870142072, -0.5920329094, 0.2291753143, -0.0189189687, 0.3568814397, -0.1645395905, -0.0627128407, -0.1835577935, -0.1184021458, -0.005898471, 0.3321670592, -0.0169965662, 0.0666974336, 0.0330717713, -0.5403258204, -0.0495046675, 0.0661534443, 0.0649538711, 0.1241139472, -0.2367531359, 0.3196367323, 0.0056379125, -0.2470935285, 0.1195450202, -0.1384114176, -0.1862735152, -0.1169379801, -0.1802088618, 0.1975175589, -0.0473877452, -0.2174141556, -0.2288226038, 0.0365486778, -0.1086301655, -0.1126612425, -0.1459474266, -0.218464613, 0.2761243582, -0.2277488708, 0.1800663769, 0.2461977601, -0.0148839261, 0.1121526212, 0.0897891894, -0.3175095022, -0.1800658405, 0.3480766416, -0.0394453183, -0.1205917075, 0.1218544617, 0.1929725856, -0.0352571756, -0.1940977573, 0.0460471325, 0.2011942863, -0.6195082664, 0.0208561495, -0.1373989731, 0.0142480014, -0.0530654453, 0.2701610029, 0.2481816411, -0.3544404209, 0.2466701567, -0.5972571373, -0.2012002617, 0.1433127224, -0.0129750157, 0.21363011, 0.1011097878, 0.0865783021, 0.1163203716, -0.2084695101, -0.3718104959, 0.1484271735, -0.0851333439, -0.0941163003, 0.1408212334, 0.092684865, 0.2820594609, 0.0364785455, 0.1912921667, 0.0903546214, -0.3732388914, -0.2340144962, -0.0399685875, 0.0709353089, -0.0267688651, -0.1522599012, 0.0009429728, -0.062179096, -0.2029340267, -0.0487755984, 0.148390457, 0.1990875155, 0.0471787304, -0.1144536287, 0.0083841197, 0.0303982049, -0.2331447005, 0.2854089141, 0.151704818, 0.0903532133, -0.1003662869, 0.1442607194, -0.0590411499, -0.0432399884, -0.2194744796, -0.1026569605, 0.1456828564, 0.2854140699, 0.2501861453, -0.1964508444, 0.3128252029, 0.5136577487, 0.2690920234, 0.3190073967, -0.2770460546, 0.2185477912, 0.1570941806, 0.3223165572, -0.3402837515, -0.1649015546, 0.3743475676, 0.3258278966, 0.0282959994, 0.3628845215, 0.2453304827, 0.1605167836, 0.3300941586, 0.1862072498, 0.6517941356, 0.0480826721, 0.3317586184, 0.490790695, -0.0095802108, 0.0681622475, 0.4628818929, 0.2584778965, 0.0624932051, 0.5506411791, -0.1220126301, 0.3823798001, 0.0109417727, 0.1227216795, -0.1426023692, -0.2384002358, -0.2924523354, -0.0140769556, 0.0763154626, 0.0464273952, -0.0517435409, 0.1019365564, -0.3627048433, -0.076784879, -0.4085572064, 0.1955700666, -0.1277137995, 0.0611222126, 0.0815947503, -0.1939545721, -0.0248513427, 0.0003704955, -0.0396143869, -0.0183506571, 0.2154420614, 0.0037959493, -0.1877612621, -0.2962324917, 0.0072556273, 0.3406332433, -0.0216181874, -0.110014677, 0.3868375123, 0.0700774565, -0.0909490958, -0.0202033669, 0.3841654956, 0.3209079504, 0.1881233603, 0.1001432016, -0.0689267144, 0.1008490995, -0.05254611, -0.0626369044, 0.1833415478, 0.0194403306, 0.4059855342, 0.2199339271, 0.2920580804, -0.2601917088, 0.1627616882, -0.1733615249, 0.1274045557, -0.2675947845, 0.0019141134, -0.3240401149, -0.116640605, -0.2153551579, -0.1564309299, -0.1879631281, 0.039981097, 0.2971610725, -0.0081564318, 0.0440372527, -0.3504026532, 0.0983129144, -0.1131950021, 0.1918175668, 0.3956765831, 0.0221832097, -0.2351936996, -0.1102323011, -0.8148163557, 0.2829461396, -0.2405504882, -0.3548552096, 0.2154842615, -0.1633159369, -0.1039040536, 0.3233462274, 0.4029320478, 0.1540604383, 0.2269130051, 0.2429272979, -0.3644000292, -0.1051165611, 0.1346463114, 0.0678054169, 0.1877435744, -0.274846077, 0.0216616467, -0.0715663135, 0.0703182518, -0.2177802026, -0.1180777475, -0.1292554736, -0.2397357672, 0.7350838184, 0.0209611077, 0.16433312, -0.0689476207, -0.1507928222, -0.3329708278, -0.3756676018, -0.1921011955, 0.1744664311, 0.0068291072, 0.2460231334, -0.1461541504, 0.015408963, -0.38729918, 0.1798043996, 0.0797630697, -0.0587994792, -0.1046171561, 0.1820995063, -0.3372632265, 0.0582622997, 0.2378582954, 0.1692323685, -0.0135631962, 0.2319487184, -0.1146038473, -0.4429401457, 0.4428631365, 0.0188659243, -0.2732520103, -0.0701516196, 0.0607485585, 0.0788189843, -0.2855612636, -0.337762922, 0.3395846784, 0.2811836898, 0.1168805957, -0.0960109532, 0.1693702638, -0.199039191, -0.0334397219, 0.1144593805, 0.5657116175, -0.0420863777, -0.1423902512, 0.4052659869, -0.0098426435 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
The author told that apparently Dropbox has changed their policy and no longer allow downloading the file without having signed in first. The author asked Hugging Face to host their dataset.
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
31
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 The author told that apparently Dropbox has changed their policy and no longer allow downloading the file without having signed in first. The author asked Hugging Face to host their dataset.
[ -0.2759370506, -0.3480377793, -0.0593666956, 0.347079277, 0.108641468, 0.0554847941, 0.0214384086, 0.2132672668, 0.3107881844, 0.0681135803, -0.237227127, 0.2172870934, -0.0742675662, 0.1829393953, 0.2306468487, -0.167099461, 0.0182071999, 0.038396161, 0.1040742174, -0.1059665009, -0.0068048923, 0.0688061193, -0.2352527231, 0.0341518149, -0.2067684978, -0.0287325718, 0.0926773325, 0.331882894, -0.3699330986, -0.3751949072, 0.6139099598, -0.0842426196, 0.1851757467, 0.584158659, -0.0001120174, 0.0652964115, 0.1374392658, -0.1021741033, -0.0775004327, -0.5789528489, -0.3472653627, -0.4007540047, -0.0861783326, -0.1636052281, -0.051167313, -0.1117285267, -0.0150202541, -0.172951594, 0.508250773, 0.3695927262, 0.2240835726, 0.5469501019, 0.1720811427, -0.137831375, 0.3611237109, 0.1562045068, -0.2377881408, 0.4367513955, 0.321677357, 0.115763776, 0.4112883508, 0.1775456965, -0.0996761248, -0.1689162105, 0.1308139265, 0.0133557487, -0.2266707867, -0.4470202625, 0.0784026235, 0.2077761143, 0.353613466, -0.1338851303, -0.4127599597, -0.3614985347, 0.1108664647, -0.1548257172, 0.272796154, 0.1956163645, -0.0359452888, 0.144878298, 0.0599418692, -0.1014326885, -0.0129186483, 0.0593797714, 0.0173094496, 0.3373425007, -0.2577694058, 0.0144006442, 0.109223716, -0.0751527846, 0.3978738785, 0.0532083437, -0.0479289703, 0.1232227087, -0.1411840916, 0.0053743632, -0.0540445447, 0.0137529802, 0.2482398003, 0.0194020718, -0.0785556138, -0.0808855146, -0.2006911188, 0.0241393559, 0.1848614812, 0.304870069, 0.1491407752, -0.1033316329, 0.1745784581, 0.3312748969, 0.1960030496, -0.0434590019, -0.2963786125, 0.0445665419, -0.0722321719, -0.1512655616, 0.5243731737, -0.2715310156, -0.397092253, -0.0195273086, 0.0200422779, -0.0885451064, 0.1340083033, 0.2182935327, -0.1068646908, 0.2549792826, -0.076068759, 0.2554855347, -0.1630508453, -0.1515772343, -0.1914503574, 0.4051420093, -0.2343257964, -0.1603656709, 0.184814766, -0.2435050458, 0.418685019, 0.1288653165, 0.3946616352, -0.1500299871, 0.1027105823, 0.0922762156, -0.1681753099, 0.3451004922, 0.1561528593, 0.1269648373, -0.0141466958, -0.2348549813, -0.1157530472, 0.0571507737, -0.5933462977, -0.1403057724, -0.1993746012, 0.1679309309, -0.2249722183, -0.1307013035, -0.4889054298, -0.1503005624, -0.1152251214, 0.0413695425, 0.1745774597, -0.0939836428, 0.2278487831, -0.129424572, 0.1880384982, 0.4361647666, -0.232773304, 0.0334096402, -0.1792379022, -0.0993948132, -0.0730862916, 0.0946991444, -0.2904945314, -0.0520449877, -0.4483392835, 0.1997850537, 0.2893691361, -0.7500988245, -0.559858501, -0.0898611546, -0.4706422687, 0.233007133, 0.0047259256, 0.0929389969, -0.0257568192, -0.1167185456, 0.1843949109, 0.0955511704, 0.1699335277, -0.1224313229, -0.2045544982, -0.244478032, -0.2624107003, 0.2842636704, 0.0622712933, 0.0681212619, 0.0910937712, 0.2827213705, 0.2098220587, -0.0228561014, -0.0933939889, 0.3326898515, 0.2923718989, 0.0233742893, -0.2868404686, -0.247778371, -0.4232818782, 0.3309372365, 0.0280760769, -0.1051027179, -0.0007370458, -0.2265767455, -0.5678087473, 0.1613326073, -0.1888889372, -0.1785441339, 0.0677734688, 0.1239686981, 0.1513996422, 0.049658794, -0.2474331707, 0.2233788371, 0.0188438576, 0.1543609798, -0.5641948581, 0.2311494648, -0.1155121773, -0.060409233, 0.0352692753, 0.0466391034, 0.2501816452, -0.2004780173, -0.0556468107, 0.3803124726, -0.1920130402, 0.0159704331, 0.2529327571, 0.052242063, 0.1939558238, -0.4988433421, 0.2435883284, 0.0546596982, 0.0235155094, 0.167284146, -0.2205286175, 0.4448285699, 0.0305798538, -0.2373157442, -0.1401201338, 0.1262519509, 0.2230827808, -0.1306058317, -0.0272249132, -0.1473648101, 0.2565687895, -0.2958559394, 0.4428708553, -0.1918584704, -0.3940772116, 0.0924431905, 0.2551042438, -0.0954708755, 0.1634529382, 0.1062979102, 0.0065809386, 0.0754789636, 0.0918330848, 0.1748157293, 0.4484560788, 0.1287842691, 0.0455228277, 0.1220076978, 0.1126530319, -0.1875597686, 0.1822133064, -0.0599473715, -0.4153223336, 0.0525693446, 0.2299789041, 0.0714468583, -0.3545282483, -0.2406420112, -0.1877215952, 0.0300267246, -0.2494356781, -0.0179142803, -0.1286336035, -0.2612890005, -0.0283743273, -0.0056919199, -0.3994730413, -0.1412362009, -0.1487314552, 0.2708366811, 0.2493287027, 0.0064037926, -0.3584652245, 0.1185191795, -0.0075163911, -0.136756748, -0.3121982813, 0.3624313176, -0.028594641, 0.0484773032, 0.1105539352, -0.0293610897, 0.2358981669, -0.4157186151, 0.1052327082, -0.3573947251, -0.3269351423, 0.0451698191, -0.216296643, 0.4289376736, 0.1453780681, 0.2217927575, -0.0008088614, 0.0529856123, 0.206007719, -0.2167478353, -0.0299977884, -0.2100407183, 0.0807592049, -0.1460518539, 0.0060587414, -0.0265282951, -0.4058994651, -0.377556473, 0.201274991, 0.1482294798, -0.0348028764, 0.2005347908, 0.0097332876, 0.112285316, -0.173444435, -0.1491319239, -0.1994177699, -0.8692609072, 0.409103483, -0.204284817, -0.3979108632, 0.226369828, 0.1963294148, 0.1721194088, -0.1776610911, -0.5201548934, -0.4196142256, -0.2218335271, 0.4353311658, -0.0021963827, 0.1379335076, 0.2515823543, -0.2824036479, 0.0077370452, -0.1384646744, -0.2788475752, -0.2825561762, 0.2268456072, 0.1722358316, -0.0015175531, 0.0224355776, -0.0498862639, 0.3794846833, 0.1308887452, 0.1611364335, 0.5610558987, -0.0744289458, 0.4397814572, -0.1766299754, -0.4628421664, -0.1886909455, 0.0963778347, 0.0323036611, -0.0544361472, 0.2265841663, 0.2790611088, -0.3562264144, -0.199502781, -0.0767233223, -0.064536348, -0.1105740517, 0.0093632117, -0.004445916, 0.0796472281, 0.2570387125, -0.1833249778, -0.1509727836, -0.0236524213, 0.4484081268, 0.2238722593, 0.2405960411, -0.509665966, 0.27406317, -0.3780688047, 0.1887896359, -0.0318723619, 0.3348711431, -0.1444582343, 0.0845750719, 0.2295601368, 0.0133824069, 0.4435732365, -0.0775715262, 0.3544702828, 0.0710432902, -0.122600913, -0.208514303, -0.1054207161, -0.0435267687, 0.0770965591, 0.1953820437, 0.576069355, -0.2934000492, -0.1664155573, 0.2404118776, 0.1298155487, 0.036487855, 0.0377405025, -0.2254048884, -0.6075825095, -0.1573697329, -0.044492323, 0.2579652369, -0.0299645942, 0.1044440418, 0.1127331629, -0.1593714058, -0.0189802516, 0.1871156991, 0.153986454, 0.2559455633, -0.024743652, 0.2165155858, 0.1908060908, -0.1383116692, 0.264972806, 0.8343397379, 0.0106112678, -0.3429009616, 0.0427501202, 0.0639129505, 0.0057258694, 0.3877788484, -0.121197544, -0.0853441656, 0.0048186271, 0.196167469, -0.0233456083, 0.230137229, 0.3775057197, -0.0149427615, -0.4949697256, -0.3380521238, 0.5363483429, 0.1302827001, 0.0742523074, 0.1904313713, 0.1329302788, 0.0057333512, -0.1068958268, -0.097172223, 1.1719785929, 0.0562252589, 0.249209404, 0.2455010116, -0.0852787495, 0.2562092245, -0.0884604529, -0.0168000311, -0.1013686731, -0.4164631963, -0.142982319, -0.1163861901, 0.1411394924, -0.0901831836, 0.0010765542, 0.1374599487, -0.1716611981, 0.1739597023, 0.1153218523, 0.1687587649, -0.2411977649, -0.0612041652, -0.4733585715, 0.1426099539, -0.006975085, 0.3821440935, -0.2010967433, -0.2299176455, -0.2083750665, -0.1166219935, -0.0660127029, 0.2327332795, 0.108354412, -0.0123809641, -0.0692906752, -0.5590738058, 0.0888752639, 0.0713525638, 0.0060643177, 0.1797237396, -0.3232238889, 0.3109992743, -0.0692843944, -0.2035997063, 0.1290310621, -0.1362448484, -0.1140312105, -0.0352116451, -0.1258567423, 0.0929848328, -0.1436609328, -0.1394314766, -0.3856871724, 0.2510840893, -0.2772895098, -0.2268612385, -0.1644974351, -0.1835373491, 0.3595433235, -0.25304088, 0.1040874347, 0.1485453099, 0.1078658924, -0.2641801834, 0.1531635076, -0.2987476289, -0.1521572024, 0.5257741213, -0.1988991052, 0.033454448, 0.1715101004, 0.013076392, 0.0204174668, -0.1379289478, 0.1412821114, 0.0616843328, -0.6248804927, 0.1188295707, -0.2430003285, 0.0227165371, -0.2295225263, 0.3468089104, 0.3823339641, -0.2665140927, 0.2866683304, -0.5378329754, -0.0770435408, 0.127614364, 0.087910533, 0.0976176783, 0.0959599465, 0.1219419092, 0.1061662808, -0.1598083973, -0.3132171333, 0.1700585485, -0.1219954714, -0.1898823231, 0.3454617858, 0.0432378501, 0.3752042651, -0.0161013361, 0.146781221, 0.0533302054, -0.2933897376, -0.1397866607, -0.0504707396, 0.1410353631, 0.0521026626, -0.247104615, 0.0549417101, -0.1684382558, -0.1605030894, 0.0132018775, 0.0367015339, 0.2360640168, 0.1174362898, -0.1449902505, -0.160243839, 0.1950680465, -0.2450075001, 0.3418943286, 0.2247634828, 0.0340523012, -0.1005305275, 0.1787564307, -0.1220849082, 0.0183278807, -0.2611816525, -0.0856619403, 0.0776028931, 0.3909317553, 0.3376339674, -0.1346836686, 0.2393317372, 0.3750911653, 0.2669950724, 0.3125607073, -0.2661043704, 0.1791472137, 0.1509799808, 0.202250734, -0.3251587152, -0.1843992174, 0.2895825207, 0.2845372558, 0.0079280213, 0.2907940447, 0.2425780147, 0.1455316395, 0.0103196893, 0.1336501539, 0.8089542985, 0.2793609798, 0.3672977984, 0.5459706783, -0.111408174, -0.0239295606, 0.4142660201, 0.2047234029, 0.1880603582, 0.4659932554, -0.1904217303, 0.381059289, 0.0038550401, 0.1714946479, -0.1326283067, -0.3277802467, 0.0001661691, 0.0214361195, 0.1399542093, 0.0384780727, -0.0150220664, 0.1334611326, -0.4537134171, -0.057739418, -0.2650279105, 0.2728070021, -0.1544533521, 0.1055009663, 0.0780472755, -0.3082309663, -0.0416715518, 0.0296849646, -0.0832873285, -0.1457926035, 0.211595282, 0.0386279114, -0.1341886073, -0.201786086, -0.1125047654, 0.3462385535, 0.0870194361, -0.1962681115, 0.4236859381, 0.2718045413, -0.1568724811, 0.0498094745, 0.3523477912, 0.4650505185, 0.0559386499, 0.2656497359, 0.0647214279, 0.0683034211, -0.1031055152, -0.0804572999, 0.2312494665, 0.0351844802, 0.4370719492, 0.2358406186, 0.2388891727, -0.2383613139, 0.2402348071, -0.2012112588, 0.0160368159, -0.4459690452, -0.0041087628, -0.3592950702, -0.1920763552, -0.2463411838, -0.1867137253, -0.1615372896, 0.1050262302, 0.1937412471, 0.0522895791, 0.0789947435, -0.3036751151, 0.0630608723, -0.0058308118, 0.2179626226, 0.4620448053, -0.0886170715, -0.086625874, -0.1759012043, -0.8899629712, 0.2022521198, -0.1749407202, -0.3776009083, 0.1036338583, -0.2651179433, -0.0521909259, 0.1655716449, 0.2213157117, 0.2603112757, 0.1472959667, 0.1278587729, -0.232440725, -0.0836083218, 0.1863344312, 0.1379171759, 0.1272400022, -0.1580202281, 0.1513994485, 0.0785694346, 0.019998204, -0.0584160388, -0.0605282821, -0.1788770854, -0.3329245746, 0.6669123173, 0.0348968208, 0.1883092076, -0.1101695746, -0.200866282, -0.3298521638, -0.1550641507, -0.1784972996, 0.2253372073, 0.1351694614, 0.3386968672, -0.0827752873, -0.0310580134, -0.3715774119, 0.3031165302, 0.0216149315, -0.0353382528, -0.2809809744, 0.0684912503, -0.3736377954, 0.0630946904, 0.2487872541, 0.237932235, -0.0699615926, 0.0589816421, -0.1878468245, -0.4683724046, 0.5749185681, -0.128022179, -0.2461771816, 0.077838853, 0.1704557836, -0.0042454991, -0.2991146147, -0.0887734443, 0.2385407537, 0.3178572059, -0.0317886695, -0.0475270674, 0.1778369397, -0.2720619142, -0.0316480286, 0.1030775681, 0.7202535272, 0.0673561767, -0.2254707068, 0.569835484, 0.0235492717 ]
https://github.com/huggingface/datasets/issues/2689
cannot save the dataset to disk after rename_column
Hi ! That's because you are trying to overwrite a file that is already open and being used. Indeed `foo/dataset.arrow` is open and used by your `dataset` object. When you do `rename_column`, the resulting dataset reads the data from the same arrow file. In other cases like when using `map` on the other hand, the resulting dataset reads the data from another arrow file that is the result of the map transform. Therefore overwriting a dataset after `rename_column` is not possible, but it is possible after `map`, since `rename_column` doesn't switch to using another arrow file (the actual data stay the same).
## Describe the bug If you use `rename_column` and do no other modification, you will be unable to save the dataset using `save_to_disk` ## Steps to reproduce the bug ```python # Sample code to reproduce the bug In [1]: from datasets import Dataset, load_from_disk In [5]: dataset=Dataset.from_dict({'foo': [0]}) In [7]: dataset.save_to_disk('foo') In [8]: dataset=load_from_disk('foo') In [10]: dataset=dataset.rename_column('foo', 'bar') In [11]: dataset.save_to_disk('foo') --------------------------------------------------------------------------- PermissionError Traceback (most recent call last) <ipython-input-11-a3bc0d4fc339> in <module> ----> 1 dataset.save_to_disk('foo') /mnt/beegfs/projects/meerqat/anaconda3/envs/meerqat/lib/python3.7/site-packages/datasets/arrow_dataset.py in save_to_disk(self, dataset_path , fs) 597 if Path(dataset_path, config.DATASET_ARROW_FILENAME) in cache_files_paths: 598 raise PermissionError( --> 599 f"Tried to overwrite {Path(dataset_path, config.DATASET_ARROW_FILENAME)} but a dataset can't overwrite itself." 600 ) 601 if Path(dataset_path, config.DATASET_INDICES_FILENAME) in cache_files_paths: PermissionError: Tried to overwrite foo/dataset.arrow but a dataset can't overwrite itself. ``` N. B. I created the dataset from dict to enable easy reproduction but the same happens if you load an existing dataset (e.g. starting from `In [8]`) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-3.10.0-1160.11.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core - Python version: 3.7.10 - PyArrow version: 3.0.0
102
cannot save the dataset to disk after rename_column ## Describe the bug If you use `rename_column` and do no other modification, you will be unable to save the dataset using `save_to_disk` ## Steps to reproduce the bug ```python # Sample code to reproduce the bug In [1]: from datasets import Dataset, load_from_disk In [5]: dataset=Dataset.from_dict({'foo': [0]}) In [7]: dataset.save_to_disk('foo') In [8]: dataset=load_from_disk('foo') In [10]: dataset=dataset.rename_column('foo', 'bar') In [11]: dataset.save_to_disk('foo') --------------------------------------------------------------------------- PermissionError Traceback (most recent call last) <ipython-input-11-a3bc0d4fc339> in <module> ----> 1 dataset.save_to_disk('foo') /mnt/beegfs/projects/meerqat/anaconda3/envs/meerqat/lib/python3.7/site-packages/datasets/arrow_dataset.py in save_to_disk(self, dataset_path , fs) 597 if Path(dataset_path, config.DATASET_ARROW_FILENAME) in cache_files_paths: 598 raise PermissionError( --> 599 f"Tried to overwrite {Path(dataset_path, config.DATASET_ARROW_FILENAME)} but a dataset can't overwrite itself." 600 ) 601 if Path(dataset_path, config.DATASET_INDICES_FILENAME) in cache_files_paths: PermissionError: Tried to overwrite foo/dataset.arrow but a dataset can't overwrite itself. ``` N. B. I created the dataset from dict to enable easy reproduction but the same happens if you load an existing dataset (e.g. starting from `In [8]`) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-3.10.0-1160.11.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core - Python version: 3.7.10 - PyArrow version: 3.0.0 Hi ! That's because you are trying to overwrite a file that is already open and being used. Indeed `foo/dataset.arrow` is open and used by your `dataset` object. When you do `rename_column`, the resulting dataset reads the data from the same arrow file. In other cases like when using `map` on the other hand, the resulting dataset reads the data from another arrow file that is the result of the map transform. Therefore overwriting a dataset after `rename_column` is not possible, but it is possible after `map`, since `rename_column` doesn't switch to using another arrow file (the actual data stay the same).
[ -0.0523224063, 0.2342096865, -0.023168223, -0.0133465482, 0.3893550038, 0.2707955241, 0.4929156899, 0.2463013977, 0.0219599847, 0.1201096177, -0.0814654306, 0.4607100785, -0.1719952822, -0.1512236893, -0.0136408638, -0.0714223087, 0.2988218069, -0.1098155007, -0.0071084313, 0.1580940932, -0.4297680855, -0.0167972632, -0.0632797033, 0.0525317788, -0.1448872387, -0.1060153618, -0.0191482883, 0.0699789822, -0.0107618449, -0.2462689281, 0.0901803076, -0.0555135831, 0.1750024706, 0.3935278952, -0.0001104696, -0.1174477935, 0.016952524, -0.0254377425, -0.3840672672, -0.1677261144, -0.279401511, -0.2232080549, -0.1534653455, -0.5357634425, 0.2765215933, -0.0022125244, -0.1228611842, -0.3125068843, 0.1796946973, 0.2632054687, 0.2940930724, 0.1083571836, 0.2733331919, -0.1635732353, 0.0736203045, 0.0986327156, -0.378808558, 0.2685393393, -0.2693728209, -0.0911084488, 0.1226998344, 0.2915159464, -0.1082789749, -0.0690103546, 0.1018078402, 0.046824079, 0.1152402014, -0.2415999472, 0.2724040151, -0.101500228, 0.4159988761, -0.5450065136, -0.4493027031, -0.006958737, 0.2386428416, -0.3515320718, 0.2436309606, 0.115551278, 0.0246030986, 0.1335383654, 0.0393228754, -0.2681632042, -0.1927658319, 0.0060164095, 0.0300408062, -0.2012540102, -0.1730901152, 0.1861053109, 0.0252394583, -0.1277827173, 0.3110420108, -0.0618426725, -0.0558180586, 0.0676211938, -0.4282257855, -0.0441424586, -0.0765141994, -0.1082731485, -0.1432771683, 0.2341351509, -0.0629031956, -0.1409237087, 0.2153318971, 0.2729772329, -0.0386799909, 0.2238943279, -0.0026313046, 0.4684871733, 0.3518581092, 0.1197338477, 0.0032542965, -0.1048211679, 0.0783376545, 0.0482482053, 0.6009222269, -0.0478977077, 0.4625109434, -0.0603518151, -0.3091150224, 0.3789647818, 0.1044596955, -0.0342991203, 0.0012849962, 0.2447024882, 0.1551562399, 0.0356650352, 0.0988407359, 0.3300381005, 0.1512357146, 0.1673561782, -0.1845287234, -0.023599267, -0.0770770833, 0.1205222756, 0.1922730505, 0.213432163, 0.060394682, 0.1418900192, -0.1296940893, -0.0818708017, 0.0638224259, -0.1976370513, 0.0316389389, 0.323094517, 0.0812872425, 0.2417823076, 0.1332235187, -0.287006408, 0.0473015644, 0.2195735574, -0.1257431358, -0.1329017729, -0.4467061758, 0.2365869731, 0.127311632, 0.1414908022, -0.4421404302, -0.2893772423, 0.4343976676, -0.0966239646, 0.2320124358, -0.0182893388, 0.0811485574, -0.4090351164, 0.0521087386, 0.221599102, -0.1067450568, 0.2233538777, -0.3136859834, 0.1113031507, 0.1221688464, 0.1585763395, 0.0759356692, -0.0761186182, -0.1343703866, 0.0381270759, 0.4585372508, -0.3772490025, -0.491268158, -0.1910642534, -0.1587197036, -0.0277117081, 0.0377315581, 0.0575778782, 0.2001121938, -0.1936410666, -0.0350449346, 0.153703779, 0.1532452852, 0.0386596881, -0.2126652151, -0.0145915076, -0.0151805198, -0.1022223905, -0.0853902921, 0.1332867593, 0.1747178882, -0.0071969489, 0.1526001841, -0.0898958221, 0.24904719, 0.295887351, 0.4298879802, 0.038501814, -0.0166204851, -0.2765231431, -0.6019979119, 0.1072553992, 0.2519673407, -0.293117851, -0.3241820335, -0.0773587301, -0.2935065031, 0.0149025964, -0.2205447853, 0.0091184694, 0.1636464298, 0.2512082756, 0.0141899372, -0.0200966224, -0.2452319413, 0.2676567733, -0.3195350468, 0.194867745, -0.2083372772, 0.2012101561, -0.2217802554, -0.2969255447, -0.1804707795, 0.1420993805, 0.2723115683, 0.0925011188, -0.2997993529, 0.4652597606, 0.0059305951, 0.0698818788, -0.1298034638, -0.0326071903, -0.1389695108, -0.1473560929, 0.0775982887, -0.0047063809, 0.2419634759, 0.069033131, -0.3622957766, 0.0900742412, -0.0637698546, 0.220582515, 0.0301661026, 0.1150781363, 0.1708155721, -0.1170945019, -0.0064453562, -0.2951321006, 0.0090423152, 0.0664553344, 0.2198872864, -0.2932217419, -0.1216395944, 0.0560929254, 0.465020746, 0.0648768842, 0.1760996133, 0.1861429065, -0.090137966, 0.0198985189, -0.0121840574, 0.614377141, 0.3814359903, 0.0090049244, -0.0581261292, -0.0293168202, -0.1447794586, -0.0531235263, 0.1978244185, 0.0102282716, 0.1976764053, 0.1335364282, 0.3363484442, 0.0209111609, -0.149891153, -0.1165847108, 0.1740596443, 0.3704489768, -0.3543182313, 0.0263497494, -0.1302932501, 0.1459717453, 0.0057371026, -0.2700255215, -0.1390595138, -0.3707580566, -0.3373613954, 0.6752126217, 0.0063465494, 0.0844875425, -0.1134621948, -0.1232809871, 0.0266845301, 0.1229014024, -0.3791601658, -0.0438960791, 0.0552866124, 0.0447741859, 0.0763222873, -0.2286298126, 0.5205157995, -0.0397292674, 0.0512863025, -0.5295776129, -0.1521556824, -0.2153195441, -0.1279693395, 0.3062784076, 0.1174205616, 0.3138978183, -0.145023182, -0.2756849825, 0.2403120697, 0.1121564433, -0.1098960117, 0.1784868836, 0.1534111798, -0.0302768294, -0.0489840172, -0.1432924271, -0.2808938324, -0.3785194457, 0.3248313367, -0.0642381907, 0.1248254552, 0.0986439213, -0.1798855513, 0.1114002094, 0.089582853, 0.0878930539, -0.2645494342, -0.1945215613, 0.4365963936, -0.2389997393, -0.220345661, 0.0330368802, 0.1541689485, 0.1376352161, -0.0165132433, -0.248448804, -0.0653737411, -0.2481313497, 0.4719096124, -0.303496778, 0.1303995103, 0.2934888303, 0.3040726781, -0.0327984095, -0.0750492588, -0.2942451239, -0.0698590726, 0.2908002734, 0.273186475, -0.1038842723, 0.4481270611, -0.1090402454, 0.2552040815, 0.1094087735, 0.1702078879, 0.3902415633, 0.0170503464, 0.1714866757, -0.2735756338, -0.5204059482, -0.009663092, -0.2813248038, -0.0576933771, -0.2282734066, -0.1018162444, 0.0015256853, 0.0120259337, 0.0294929389, -0.1431075633, -0.2657016516, -0.0998594686, -0.2131251693, 0.2652603388, 0.0499814674, 0.072298944, -0.2405617833, -0.0992756039, 0.0027421424, 0.3389507234, 0.1410223395, -0.0870120376, -0.3747831285, -0.0290643964, -0.4143301547, 0.2166875452, -0.084788166, 0.5215465426, 0.0512606576, -0.0871473774, 0.093809031, -0.0112240771, 0.5587120056, -0.1291040331, -0.0079694176, 0.2835007906, 0.3371244073, -0.4498386681, -0.0715077594, 0.0595116504, 0.2570033669, -0.078247793, 0.5526583195, -0.0892554298, 0.0265101567, 0.1315529197, 0.273324877, -0.2038504928, -0.096266374, -0.2484714985, -0.2362008244, -0.4278416932, 0.0162365958, -0.0969548598, 0.0553775057, -0.0205207895, 0.1808607876, -0.2027262598, -0.2500328124, -0.1371492594, 0.1048818454, 0.345959425, -0.1031090319, 0.2991207838, -0.0267974269, 0.0492437705, 0.1733397394, 0.2378225178, -0.3225925863, -0.3099868298, 0.1373326182, -0.0973120779, 0.245806098, -0.0312769376, -0.1000331864, 0.1695279181, -0.1443027109, 0.079533428, -0.188879028, -0.1126144528, 0.1532744914, -0.0480419807, -0.2947733402, -0.2696514726, 0.5598942041, 0.1521380097, -0.0256516747, 0.3724628091, 0.3968024254, -0.2268081158, 0.2994340658, -0.0249311216, 0.844189465, 0.066827476, 0.1303779185, 0.1475183964, -0.460452497, 0.1810046136, 0.1492483169, 0.1174044386, -0.4521841705, -0.121172972, 0.0608229153, -0.0766049773, 0.2374438047, -0.096364595, -0.2902871668, 0.1960968226, -0.4051041305, 0.1026284769, 0.0222635008, -0.0423740558, -0.4003829062, -0.3322463632, -0.0642171204, 0.207271263, -0.0953588113, -0.0329143777, 0.0967208147, 0.1744715422, -0.1675387323, -0.0488154367, -0.2289151996, 0.002429483, -0.0330783874, 0.3684214354, -0.3195158839, -0.5360779762, 0.0869990587, 0.0426131338, 0.3537865579, 0.1756164432, -0.1451902092, 0.0426502191, 0.1901019067, 0.3062261939, 0.0830525309, -0.065900363, 0.2351706773, 0.0219594259, -0.1183580905, -0.0441657007, -0.040979974, -0.300087899, -0.1520017236, 0.1203672662, 0.3928641081, -0.3056316078, -0.1839402169, -0.1324626654, -0.1315967441, -0.5064846277, 0.2050891668, -0.0619003028, -0.0568431281, 0.4300698638, -0.4037242234, -0.1584980786, 0.0262496006, 0.5301276445, -0.0458666943, 0.2593891919, 0.4973755777, -0.1979176253, -0.1586866826, -0.1909321696, 0.2471813709, -0.092958793, -0.3724484444, 0.2927721143, -0.1032934338, 0.161349088, -0.1380387396, -0.1858429462, -0.03418101, -0.0735043138, -0.0738415271, -0.4374046028, -0.503583312, -0.0459226519, 0.2080613673, 0.1226876155, 0.0186893307, -0.0717199743, -0.2417614162, -0.115324311, -0.3387562335, 0.0333129354, -0.2050564438, 0.2201226503, 0.3785304427, -0.0623283572, 0.0490255989, -0.3151641488, 0.2734013498, 0.2116335779, 0.1734606475, -0.2822254598, -0.2961637676, 0.0619237833, 0.0030186346, -0.1757012904, -0.1491792798, -0.4168158174, -0.0276317764, -0.0899939314, -0.1916021407, 0.3427520394, 0.0935615003, 0.1535224169, -0.1112639233, 0.1643324792, 0.1769540608, 0.0509294979, -0.1345406622, -0.0925813466, -0.1850496978, 0.3565360308, -0.0290320572, 0.0291562006, -0.6280359626, -0.1532261074, -0.1658823937, 0.0737439692, 0.2543137968, -0.1966349036, -0.1322877109, 0.0563971587, 0.2729444206, 0.3071060479, -0.2302724719, -0.3356587291, 0.3239755929, 0.2371194959, -0.1902784556, -0.1096051633, 0.0842168778, -0.2513613105, -0.0419560857, 0.0426201448, -0.1256053299, -0.07689403, -0.4428113997, 0.04011143, 0.3885580003, -0.4339448512, 0.1690968871, 0.619750917, 0.0043323068, 0.1773356348, 0.3890749216, 0.1132774502, 0.0138302222, 0.679150939, 0.0265436545, 0.3208675385, 0.3201982975, -0.1189636514, 0.0929335877, -0.0943543166, 0.0758025274, -0.2698487043, -0.2856896818, 0.2321784049, 0.0891442373, -0.0066609485, -0.3313004971, -0.0599941723, 0.0065475376, 0.3166713417, -0.2491108924, -0.0774015933, -0.050853163, -0.0563098378, 0.1967370361, -0.0553788468, -0.2516254485, -0.1057860628, 0.4781981409, 0.1616421789, 0.0480964109, -0.2193867266, -0.0550824776, 0.2141090184, 0.2809602022, -0.2896915972, 0.0601714887, 0.2971107662, -0.157080695, -0.2346584946, 0.1563751996, 0.3924596906, 0.1510289311, 0.1292323321, 0.1491872221, 0.0469206125, -0.2155084163, 0.1399225295, 0.1967818737, -0.0572787523, 0.0629952922, 0.1710462719, 0.1972794682, -0.1851180941, 0.0799916759, 0.1809647977, 0.2702733874, -0.094397299, 0.493167609, -0.1464278996, -0.4655369222, 0.0049098982, 0.0817355067, -0.0488030054, -0.0114343269, 0.4544946253, 0.0391237438, 0.0721525773, -0.1666638404, 0.1194604859, 0.1083242521, 0.3438276947, 0.3730089068, -0.4471423924, -0.3782071173, -0.0831016675, -0.4274824858, -0.0515169762, -0.0105023291, -0.0757497922, -0.0498401709, -0.015897816, -0.0784551129, -0.071710974, 0.2825301886, -0.0765679851, 0.031772878, 0.4928274155, -0.1742974818, -0.0781683773, 0.2210267335, 0.0540722348, 0.0843352675, -0.4384557307, 0.3879522681, 0.3464072049, 0.1248763874, -0.280824244, 0.0961898118, 0.2024356872, 0.192802012, 0.4804943502, 0.0663613677, 0.0273498744, -0.0669153705, -0.3371928036, -0.0151914302, -0.0473076701, -0.0902101398, 0.0753803551, 0.0914741009, 0.4226679504, 0.0239971988, -0.194193691, -0.3309699297, 0.2139645368, -0.2441737801, 0.1477005333, -0.2238080353, 0.1157196164, 0.2566611469, 0.0730566755, 0.0829130709, 0.0559126996, -0.0265049748, 0.6643058658, -0.4486855865, -0.4417954087, 0.5646383762, -0.0526747815, -0.5221441984, 0.0583653413, 0.4157536924, -0.1047892347, -0.076827772, -0.479267031, -0.1339039356, 0.3335670531, -0.1386007518, -0.2472849637, 0.3773888946, -0.1568926126, 0.2129518837, 0.0869421735, 0.7443240881, -0.0196808036, -0.2162854373, 0.2112088501, -0.0952278748 ]
https://github.com/huggingface/datasets/issues/2688
hebrew language codes he and iw should be treated as aliases
Hi @eyaler, thanks for reporting. While you are true with respect the Hebrew language tag ("iw" is deprecated and "he" is the preferred value), in the "mc4" dataset (which is a derived dataset) we have kept the language tags present in the original dataset: [Google C4](https://www.tensorflow.org/datasets/catalog/c4).
https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability.
46
hebrew language codes he and iw should be treated as aliases https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability. Hi @eyaler, thanks for reporting. While you are true with respect the Hebrew language tag ("iw" is deprecated and "he" is the preferred value), in the "mc4" dataset (which is a derived dataset) we have kept the language tags present in the original dataset: [Google C4](https://www.tensorflow.org/datasets/catalog/c4).
[ -0.184782818, -0.0222231038, -0.154320851, 0.0329203978, 0.0282861479, 0.0720351189, 0.5509454012, 0.3117235005, 0.0522168428, 0.1043042615, -0.3407954872, -0.2625412941, 0.0178138409, 0.0098183248, 0.1778060198, 0.1035924926, 0.0763272569, 0.0028081359, 0.0307024829, -0.2599349618, -0.2483022362, 0.166709587, 0.0356423967, 0.2309026569, -0.3309554458, 0.0747671947, 0.2350801229, -0.0006580985, 0.0945438072, -0.2600384057, -0.0505638868, -0.0218149927, -0.115120098, 0.4908215702, -0.0001046046, 0.2001450658, 0.3720235527, -0.1461259872, -0.2577262819, -0.402392596, 0.0496581458, -0.0652498305, -0.3410947323, -0.197990939, -0.388395071, -0.2093004882, -0.0824905932, -0.4258604348, -0.0239148382, 0.2144084275, 0.2111899704, 0.4698423147, -0.1391437352, 0.1068378761, -0.0199648887, -0.2126427442, -0.0785033032, 0.2142324299, 0.0535799973, 0.5240813494, 0.2998706996, 0.5605419278, 0.2111985087, -0.0797847286, -0.1225801408, 0.2412065417, -0.1161045954, -0.1545200944, 0.2309417725, 0.2940369546, 0.3640367687, -0.3231703937, -0.1078305393, 0.0924715698, -0.0515937321, -0.2096339464, 0.487868011, 0.1322398484, -0.0833422989, 0.2722433805, -0.0162741672, -0.2900921702, 0.0257766936, 0.2554769814, -0.2394371778, 0.5161869526, 0.1004750505, 0.0479176193, 0.1023196876, -0.2073670179, 0.249031201, -0.228205055, 0.1534507722, 0.0944623277, 0.0936852321, -0.2620148659, -0.2162773907, 0.0145026119, -0.3406134546, -0.3154472709, 0.0759730786, 0.2595084906, -0.182571277, 0.0420566872, -0.3105461001, 0.0559434555, 0.4305185974, -0.2673492134, 0.4529973865, -0.2308993191, 0.0026234221, -0.1428268254, -0.0379157923, -0.0601271018, -0.3148119748, -0.1479603499, -0.005595156, 0.2982428372, 0.0229361393, -0.0491462275, -0.498311758, -0.5706430078, -0.0304256398, 0.3789431453, 0.1616674513, -0.3083960116, -0.1461150348, -0.0396290384, -0.3200575113, -0.5419686437, -0.2043112516, 0.1096072942, -0.1466782838, -0.0825252756, 0.0807792395, -0.1820850372, 0.3079833388, -0.0946756974, 0.0314198434, 0.1600386798, -0.2420832068, 0.0018396679, 0.3078253567, 0.0660002008, -0.1263971329, 0.0821517482, -0.0706282407, -0.2200497687, -0.1961158961, 0.1325777024, -0.3130847216, 0.1174956039, 0.2477211505, 0.2029938996, -0.1501318216, -0.0047737886, 0.0628706217, 0.2855406106, -0.0142902983, 0.062968865, 0.3462483585, -0.0515147299, 0.0772695988, -0.1047444642, -0.1049222946, 0.2785847485, -0.4833547175, -0.445676893, 0.1126219258, -0.0339969061, -0.0810497776, 0.5016028881, -0.291880995, 0.1723969579, -0.1746909022, 0.3707314432, 0.2921552062, -0.3053902686, -0.3107971847, -0.0459154323, 0.0442108773, -0.0580154546, -0.1685324013, -0.1529696435, 0.0498179011, -0.1401436329, 0.0799025446, -0.0656282902, 0.2023756951, -0.1784926653, -0.0507952161, 0.037785206, 0.3984748125, -0.0127508445, 0.1060537249, -0.0219226666, 0.1121249869, -0.0090248538, 0.2545722723, -0.1508143097, 0.2193585187, 0.061495278, 0.0400637276, 0.105966866, 0.1841665059, -0.010976715, -0.1952796727, 0.0795870125, -0.1208200976, 0.2615236342, -0.0632153675, 0.0669062212, 0.0704118311, -0.1375231594, -0.1428228021, -0.1268765479, 0.2377081215, 0.0359470285, -0.1261020005, 0.2591711581, -0.2723128796, 0.094032146, -0.3269435167, 0.0285447333, -0.1553589851, 0.1628709584, -0.1221366823, 0.0393179245, -0.2129367888, 0.380261898, 0.1243665069, -0.4671669602, -0.0933213681, 0.0844819546, -0.2620693445, 0.1656295508, 0.1111797839, 0.5108316541, 0.5489287972, -0.3658977449, 0.3155204952, 0.1858109534, -0.0510409325, -0.1089917719, 0.2349340767, 0.2308351845, 0.3495799303, 0.1166997105, 0.1217740402, -0.2267136276, 0.4270854592, 0.0358430445, -0.14118433, -0.3088141382, -0.0927461609, 0.1146659702, 0.5891352892, 0.2524321973, -0.1919260025, 0.0864685923, 1.0686203241, -0.2139693052, -0.0719670504, 0.095616661, -0.2867283523, 0.1048127189, 0.0347090028, -0.1156415045, 0.0591343604, 0.1322740465, 0.2981181145, 0.1810244918, 0.1942356676, -0.2748287022, 0.3244131505, 0.2057232261, 0.0029114212, -0.0032605303, 0.0801434442, -0.1853950471, -0.4277558029, 0.1569378078, 0.0582930706, -0.1904049516, -0.2271964997, 0.2576308548, -0.4687189758, -0.1034529731, -0.3631173074, -0.4276824892, -0.5842376947, -0.0740770549, 0.0689164475, -0.2383493483, -0.0100949882, 0.2999589145, 0.3809863925, 0.1638948321, -0.3429347277, 0.0557866581, -0.2732778192, -0.1871112138, -0.2862942219, 0.1406188458, 0.1163543761, -0.3061379492, 0.2784307897, -0.3796427846, -0.274876684, -0.1865571439, -0.4455603063, 0.4134855866, -0.1688093096, -0.1180183291, -0.1187335998, -0.027259307, -0.0475960597, -0.0813058987, -0.0034812347, -0.2797719836, -0.2955237329, -0.273509562, -0.0544814654, 0.0387496948, -0.0833984762, -0.5276793242, -0.6048948169, -0.0471692793, 0.0081234723, -0.1959531903, -0.0276988316, 0.1241638288, -0.2377652228, -0.1558344811, 0.2911196947, -0.2068579197, -0.3472431004, -0.0925746262, 0.2036807835, -0.434435606, -0.0920787305, 0.1560343504, 0.0218183678, 0.4703038335, 0.0739345178, -0.0249654055, 0.3892794251, 0.0256208349, 0.2439541221, 0.2953723073, -0.0541689359, 0.2268237323, 0.0055412292, -0.1026121974, -0.3346844912, 0.0345102288, 0.2723378837, 0.0560686216, 0.3472974896, 0.4592174292, 0.110609144, 0.1023153365, 0.433211267, 0.1335744709, -0.3373224735, 0.317192167, 0.1943791807, 0.3283284307, -0.2244924754, -0.0435064845, 0.1524134427, 0.089105472, 0.2402946502, 0.3073195517, -0.058277674, -0.1126122177, -0.015107004, -0.0689151585, -0.4128378332, -0.1973830611, 0.0830012262, 0.1685195863, 0.3129772842, 0.4733052254, 0.0657678321, -0.1082370654, -0.1908296049, 0.3424507082, 0.1806499362, -0.1493628025, 0.1426171809, -0.3924437165, -0.2826723158, -0.575627625, 0.1183253378, 0.1205575615, 0.2156470865, -0.0242034588, 0.0632097945, 0.121414341, 0.1216600165, 0.4390310943, -0.3354901969, -0.0578698516, 0.1001624241, -0.0477771163, 0.1152476966, -0.0892255753, -0.4080404043, 0.1072461009, 0.5992040038, 0.2595005035, -0.3122330606, -0.3205435872, -0.0046129902, -0.1259613335, -0.2476207614, -0.276719451, -0.0570680983, -0.1351338029, -0.1376321763, -0.3238412142, 0.1389374286, -0.1093695909, -0.138846606, 0.1005037874, 0.3756710887, -0.1748196185, 0.2626547217, 0.1723303199, 0.1697661877, 0.3030054569, -0.2415589392, 0.428800106, 0.354799509, 0.4820904434, 0.3926689327, -0.1090647131, -0.3789313436, -0.081487745, -0.2688357532, 0.242061004, 0.4999494255, 0.1379873306, 0.0685853213, 0.0340787545, -0.1236997768, -0.119089283, 0.1812735796, 0.2422284335, 0.3162495494, -0.2268507481, -0.4142290056, 0.2150868326, -0.3416466415, -0.0082804793, 0.2725930512, 0.3026970327, -0.3349895477, 0.0434403196, 0.0965400115, 1.0030599833, 0.1250053793, -0.0432856679, 0.1459398866, -0.1284821779, 0.2652159929, -0.4718640745, -0.0268328786, -0.0550209731, 0.3103027344, -0.130438447, -0.0171360932, -0.0788597092, 0.4574533403, 0.0710957348, 0.3584783375, 0.012664699, 0.2063194066, 0.2466014177, 0.1002297848, 0.0953698829, -0.1974558383, -0.1075203493, 0.1276668161, -0.0016970226, 0.2657647133, -0.1674701571, -0.2553720772, -0.070662342, 0.081895493, 0.0557383746, -0.1231256127, -0.2867533565, 0.3074189723, 0.0006253055, -0.2795169652, 0.2378390878, -0.0410668366, 0.8017962575, -0.0641531348, -0.1351790577, 0.3463769257, 0.1039817035, 0.0479533263, -0.1543044448, -0.0186003521, 0.1850298345, -0.1475436985, -0.4431721866, 0.1205923259, 0.0532846898, -0.2749581039, -0.2868187129, -0.0032007669, -0.2513619661, 0.2532121837, 0.2322184145, 0.2417041957, -0.0840607956, -0.1591559649, 0.146456778, -0.3185130656, 0.0585345514, -0.3114403188, 0.2933880687, -0.1985557228, -0.3302375674, 0.0831748098, 0.29271698, -0.0769592673, 0.3099733591, 0.0649395064, -0.3664093614, -0.1230963692, -0.2681157589, 0.3906422257, -0.1110102981, -0.0792763755, 0.0877891257, -0.0982677415, -0.4158188999, 0.1906225681, 0.0250189956, 0.1156909913, -0.3648861945, -0.0180268753, -0.0166496634, 0.2528655529, -0.2255441993, -0.0873675793, 0.1048658714, 0.5610265136, -0.0658605322, -0.0028842113, -0.3408401906, 0.049916856, 0.0808833316, 0.0166210514, 0.148021847, -0.1096227616, 0.2010758966, 0.0578283295, 0.0989102051, 0.0325099193, -0.3431236446, -0.2032050788, -0.1824481487, 0.065968059, -0.0371183828, -0.0201198254, -0.0106993299, 0.0225327685, 0.2019944489, -0.2463758886, 0.1390529126, 0.1408370882, 0.221738562, 0.4221208394, 0.3345199525, -0.1149061099, 0.1129059792, -0.0554930568, 0.2061089277, 0.4034080803, 0.1521257609, 0.0237269625, -0.0052109151, 0.0482609943, 0.0213150233, 0.194006443, 0.0163735542, 0.161712572, 0.2007460743, -0.3083595037, 0.1974998564, 0.0398346633, 0.1542031616, 0.1245030314, -0.3596288562, -0.3416137993, 0.1954772174, 0.2210427374, -0.3405462503, -0.2511642277, 0.2323723882, 0.1588820964, 0.2442332059, 0.2402065098, 0.6543263793, 0.2860360146, 0.1946169138, -0.0912278518, 0.4273202419, -0.4784705341, 0.0240703449, -0.1936156601, 0.0144338068, 0.2894087732, 0.5641241074, 0.0060033505, -0.0756479204, 0.5502746701, 0.0972604677, 0.1881617904, 0.1705633402, 0.20475021, 0.0370846987, -0.164795652, -0.132926926, 0.0236486029, -0.1242481619, 0.3433173597, 0.1148877814, -0.1867016852, 0.2773749232, -0.3252138495, -0.0014709631, -0.0278655663, -0.2706682682, -0.0555340797, -0.1109919026, -0.1249317303, -0.0332508385, 0.1942176372, 0.1114230305, -0.046475783, 0.0796874538, 0.1588648558, -0.1216889694, 0.0806335956, -0.101004228, -0.29852584, 0.0116502242, -0.0998260081, 0.2514217496, 0.0764717311, -0.1048846468, 0.0995443165, -0.0504341647, 0.0887338147, -0.1728900373, 0.1524937302, 0.2156711519, -0.2303616554, -0.1926903278, -0.1122015342, 0.0510225445, 0.3161515892, -0.1240316853, 0.0932132229, 0.1494016945, -0.1309223771, -0.1643322855, 0.3775981963, 0.1715941131, -0.1905046254, -0.0233260971, -0.2705206573, -0.0307782814, -0.3539093435, 0.0057445401, -0.4128543735, 0.3363721669, 0.4712305069, -0.3097416759, -0.0023273386, -0.0018185141, 0.1136795208, 0.0390475504, 0.4614465833, -0.071239084, -0.0401122458, 0.0108144358, -0.3932798803, -0.3123114705, -0.049890615, -0.266643554, 0.7237250805, -0.2092272788, 0.1534150988, 0.4759406745, -0.1284077466, 0.5029777288, 0.0292530358, -0.0931169987, -0.3235894442, -0.3461978734, -0.0431539528, 0.0310197119, 0.3263245821, 0.0789151788, 0.1403746903, 0.1000132039, -0.2765098512, -0.0000702561, -0.2109870315, 0.1974184513, 0.4074783921, -0.0448527187, 0.2684654891, 0.1391966343, 0.4069570601, -0.2231526524, -0.1018910855, 0.1256195307, -0.0264082663, -0.2576506734, 0.473819524, -0.0313563049, 0.0670869127, -0.1327973157, -0.3989469111, -0.1315800101, 0.4251702428, 0.1149931028, 0.1058415249, -0.2703825235, -0.0304852352, -0.3385730088, 0.0154026793, 0.0925446749, 0.3840615153, 0.0084442319, -0.1905252337, 0.0091776513, -0.2055167854, 0.416172713, -0.2887670994, -0.1860839128, -0.1703761369, 0.1327441931, 0.1181321219, 0.1167874411, -0.3195800483, -0.0479249954, 0.3436789215, -0.0913561285, -0.3525881171, 0.2031985372, 0.0227656923, -0.0406858623, -0.0398659296, 0.0140539603, 0.2593044639, -0.3928053081, -0.0377737731, -0.1988811046 ]
https://github.com/huggingface/datasets/issues/2688
hebrew language codes he and iw should be treated as aliases
For discoverability on the website I updated the YAML tags at the top of the mC4 dataset card https://github.com/huggingface/datasets/commit/38288087b1b02f97586e0346e8f28f4960f1fd37 Once the website is updated, mC4 will be listed in https://huggingface.co/datasets?filter=languages:he
https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability.
30
hebrew language codes he and iw should be treated as aliases https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability. For discoverability on the website I updated the YAML tags at the top of the mC4 dataset card https://github.com/huggingface/datasets/commit/38288087b1b02f97586e0346e8f28f4960f1fd37 Once the website is updated, mC4 will be listed in https://huggingface.co/datasets?filter=languages:he
[ -0.1667789668, -0.0835686401, -0.0892025158, 0.0611215942, 0.2324799001, -0.0180357527, 0.2219813615, 0.4122387469, -0.0158844683, -0.0184126757, -0.3140927851, -0.1698117554, 0.0033470078, 0.2545408607, 0.1932535022, 0.1975349784, 0.0163776055, -0.0476837158, -0.0980866328, -0.1150789708, -0.1693114787, 0.2598114014, 0.0212984439, 0.1030975953, -0.3453691304, 0.1814397126, 0.093154259, 0.2252609432, -0.1960125417, -0.3190946281, -0.0182251725, 0.093965672, -0.0006313162, 0.4357659519, -0.0001059204, 0.0330445096, 0.3800245821, -0.1992282867, -0.3762787282, -0.2892415226, 0.0209641997, -0.2393657565, -0.2559765577, -0.0811615735, -0.4343548417, -0.1628269404, -0.1122969463, -0.4339210391, 0.1044056043, 0.1989211589, 0.2612394989, 0.3563447595, -0.0329945236, -0.0351646878, -0.1176437289, 0.0228877403, -0.1134201288, 0.1792146266, 0.1580502838, 0.3489221036, 0.148301363, 0.5432717204, 0.2903339863, -0.0764123723, -0.1122616529, 0.1147640571, 0.0032077527, 0.0572589934, 0.3240348697, 0.14874883, 0.3166535497, -0.241589576, -0.1554277092, -0.05681758, -0.1319241226, 0.0243279599, 0.5333501697, 0.1746339798, -0.1649091393, 0.2587650716, -0.296187371, -0.3384999633, 0.1553284675, 0.2498284876, -0.0771949962, 0.4242895246, -0.088862814, -0.0967942253, 0.2540954053, -0.3760229051, 0.2349133641, -0.0890636891, 0.0663887933, 0.1192608848, 0.1198622361, -0.1865347475, -0.0233283695, 0.4402765334, -0.0654596314, -0.1952182651, -0.0206410643, 0.4489216506, 0.0282776933, -0.1221647412, -0.215405032, 0.0195821207, 0.406290561, -0.2921650708, 0.4357171357, 0.1794188172, 0.0299779512, -0.1222587004, -0.0275855158, 0.0099780671, -0.3433044553, -0.1535706073, 0.0033576994, -0.0158011094, 0.0564705953, -0.2361885458, -0.3366082907, -0.5890081525, 0.0629420802, 0.5665414929, 0.1311930418, -0.3434550762, -0.1309615672, 0.0267052427, -0.3744468093, -0.5479005575, -0.1846734136, 0.0057191416, -0.2793680429, 0.080229789, 0.2298755795, -0.0261131395, 0.2447023243, -0.0560064092, 0.0425876491, 0.1433309019, -0.2035032511, 0.250777781, 0.1929476559, -0.0188644473, -0.0510999709, 0.091434963, 0.0767903477, -0.0955582336, -0.1163832843, -0.2118170559, -0.0828716978, -0.0378753617, 0.31680125, 0.2138491273, -0.0961019173, 0.0332693793, 0.1287436485, 0.2874479294, -0.2442079782, -0.0501865707, 0.0877913982, 0.1112370864, 0.1360357702, 0.0165860541, 0.1065113693, 0.5581026673, -0.1508268565, -0.4534164071, 0.0059123915, 0.0684780031, -0.0526170656, 0.2169589251, -0.265027523, -0.0396189615, -0.2780258954, 0.1999044567, 0.2216717899, -0.2611605823, -0.31475088, 0.104289636, -0.0508711524, 0.0783578232, -0.0582682975, -0.2508695424, -0.0913709179, -0.0312881954, 0.1433628947, -0.0250132643, 0.2120949179, -0.1466608346, -0.1613958776, 0.0091555482, 0.1078610793, 0.0310230292, 0.056339737, 0.0332748592, 0.2991708815, 0.0329151303, 0.3045867085, -0.1429282278, 0.3440972567, 0.1078211293, 0.1012445614, 0.1082193479, 0.1702221483, 0.027600253, -0.1284169704, -0.0133595886, -0.1266473085, 0.4452772439, -0.3261276186, 0.0027907591, -0.0843924284, -0.1643786132, -0.2925625741, -0.2476255596, 0.2804226577, 0.2389828116, 0.1320310831, 0.2433050126, -0.0412332676, 0.2225045115, -0.0479258038, 0.0427355953, -0.1773307472, 0.1300032884, -0.1718190759, 0.0889528617, -0.0505000912, 0.336671114, 0.2604978383, -0.4208653569, -0.0333487913, 0.1978799403, -0.2265544683, 0.0181904994, 0.4222947359, 0.3469169438, 0.4615175724, -0.4829176068, 0.2479093075, 0.2108456343, -0.017013384, -0.0548949204, 0.1468932182, 0.2738039196, 0.1913130283, 0.1775025129, 0.2302999496, 0.0313564874, 0.5397226214, 0.0832960606, -0.1153065264, -0.5012767315, 0.0700697228, -0.1024851128, 0.547016561, 0.0493253767, -0.2217351347, 0.2288285494, 0.5540847182, -0.0712823346, -0.0024072011, 0.074213326, -0.3126943111, 0.034273982, 0.1063318998, -0.0146774026, -0.011430284, 0.269654125, 0.1796234995, 0.1794148833, 0.1878888607, -0.2812915742, 0.3473747969, 0.1071500704, -0.0631067455, -0.0326028466, 0.1392661184, -0.2676080465, -0.5354729891, 0.0588488691, -0.1164290532, -0.2401038706, -0.2407671958, 0.1507298648, -0.4924585521, -0.2797492146, -0.3269934058, -0.4875525832, -0.5873587132, -0.1275563985, 0.1273367703, -0.2287449241, -0.030401947, 0.2408621758, 0.1011904031, 0.0555540286, -0.3660441339, 0.0910645574, -0.2525663674, -0.1176879033, -0.2850549817, 0.1581056267, 0.2618587613, -0.1413696259, 0.3274272382, -0.5285528302, -0.1004668772, -0.4033679366, -0.5248314142, 0.4519943893, -0.0507600904, 0.0864289999, 0.1022054777, 0.0659652725, -0.1033916771, -0.0635009706, 0.3658279777, -0.2740927041, -0.2576247454, -0.0471568331, -0.0331303552, -0.0117176101, -0.1012050211, -0.4515064955, -0.4519302547, -0.136867851, -0.0734952688, 0.0303941816, -0.0678287968, 0.0535800308, -0.196733281, -0.1193379834, -0.0210140515, -0.0974940434, -0.3391349018, -0.0635038316, 0.380659461, -0.4907182753, -0.2501941919, 0.0935730189, 0.0847229958, 0.3325749934, -0.0734401271, -0.0107869012, 0.2763564885, -0.0586665049, 0.1256778538, 0.2447045892, 0.1293506175, 0.2293198556, 0.1969047636, -0.1986114681, -0.2833263576, -0.0769395232, 0.1819898933, -0.2217146456, 0.5080353022, 0.2685969472, 0.0753015727, 0.0591796674, 0.2819240093, 0.2316618413, -0.0314472839, 0.5248017907, 0.0978562459, 0.3908883035, -0.1025178134, -0.1820402443, 0.0640388653, 0.0860814378, 0.264344871, 0.3846738636, 0.1578728259, 0.0993585512, -0.2987894416, -0.0800873265, -0.5482738614, -0.2185354978, -0.0431988984, 0.1095788702, 0.2598340511, 0.4453333318, 0.0954796374, -0.0852520019, -0.1659408361, 0.3163283169, 0.211110726, -0.2077497393, 0.2665351927, -0.4891830683, -0.1579332352, -0.4886635244, 0.2576249838, 0.0615643039, 0.1776461899, -0.085212037, -0.0991788283, 0.2309939265, -0.0214703865, 0.4347789586, -0.3138709664, -0.072351031, 0.0162228066, -0.1698950082, 0.0400798582, 0.0643715784, -0.296446234, 0.1876498908, 0.503292799, 0.2043597698, -0.4638074934, -0.2545906901, -0.0145863574, -0.167941466, -0.1308718324, -0.2449604273, -0.0860679373, -0.1080701053, -0.15441598, -0.2814124227, -0.0102722589, 0.1695222408, -0.0051585548, 0.0454044566, 0.3910740614, -0.1713420749, 0.2134141028, 0.4395765662, 0.3315406442, 0.1093600988, -0.1435860991, 0.5581196547, 0.4516916573, 0.4931239784, 0.5625643134, 0.037154153, -0.226176545, -0.12746346, -0.2054807991, 0.1498252898, 0.4963575602, 0.1881472468, -0.002674147, 0.208556965, 0.0794462338, -0.1160132065, 0.004847222, 0.0848880559, 0.159977138, -0.3092433512, -0.2858950496, 0.1967434734, -0.4800969362, 0.022712227, 0.1360350996, 0.5112376213, -0.3989131451, -0.056048438, 0.0388334878, 1.044320941, 0.0834265053, -0.0888740867, -0.0380061641, -0.101988934, 0.170808956, -0.3162449896, -0.0056047319, -0.0145182591, 0.4962679446, -0.0540184751, 0.0265615154, 0.0236657783, 0.3065555394, -0.1433667243, 0.3628175259, -0.0266655255, 0.2055560797, 0.1672715545, 0.0893016607, -0.1165193245, -0.1310853213, -0.4001878798, 0.2069391906, 0.0027551735, 0.301653415, -0.142021805, -0.3613629043, -0.201277256, -0.198910296, 0.0840997994, -0.0700169727, -0.390396893, 0.1370286942, 0.0416742526, -0.1735153645, 0.1987258643, -0.1213126481, 0.6124119163, 0.0338331014, -0.3374806345, 0.2811676264, 0.0589028299, -0.0266477764, -0.169726193, 0.0062774518, 0.0187073778, -0.1443841904, -0.446108371, 0.0388984084, 0.069543615, -0.2094897032, -0.2025314271, -0.1152648479, -0.289714694, 0.163269788, 0.0955131054, 0.0633464232, 0.0501858369, -0.2919591963, 0.1602458656, -0.3013710976, 0.0230591986, -0.3883050382, 0.5311198831, -0.0046142284, -0.3006280959, 0.1869466156, -0.0246384293, -0.1538185328, 0.1107924506, 0.1692269146, -0.3829509318, -0.1993738264, -0.2265610993, 0.3500517905, -0.1362959892, -0.1332390755, 0.1816168129, -0.1482317448, -0.2114909589, 0.3260596991, 0.0872609913, -0.0083559407, -0.1710880995, -0.1118520647, 0.0189981274, 0.3421672583, -0.1568466127, -0.1571945995, 0.0508596189, 0.4591533244, 0.0487175882, 0.0771264285, -0.3621400595, -0.0012985277, -0.0575301088, -0.0681787804, 0.077899687, 0.0007972145, 0.2496759892, 0.0448004343, 0.1284948438, 0.0621146448, -0.4078616798, -0.1852901429, 0.0112539213, 0.0906419903, 0.0179828499, -0.2081390619, -0.0924298093, 0.1249432936, 0.1920030862, -0.2983663678, 0.0413171835, 0.0788110569, 0.144127354, 0.0869644731, 0.3329893649, -0.4388473332, 0.0128058791, -0.0985921696, 0.1681386381, 0.1985364258, 0.1789586395, -0.0708854124, -0.0886001065, -0.035459023, 0.2975750566, 0.2921350598, 0.041782029, 0.2276313156, 0.188856259, -0.2756194472, 0.1884187162, 0.2838944793, 0.3251852393, 0.1674550474, -0.2208603472, -0.1551878303, 0.1859317869, 0.2292252481, -0.4245522618, -0.2475091815, 0.2709744275, -0.0124714347, 0.2413323373, 0.2041705996, 0.6218901277, 0.1191560775, 0.202399224, 0.0492185466, 0.3567413688, -0.2847538292, 0.0334806219, -0.1281650811, 0.0752184466, 0.2980563641, 0.5230847001, -0.1781963408, -0.1314155012, 0.5701149702, -0.2448915988, 0.1640876383, 0.0527410135, 0.2045452744, -0.1392393708, -0.1326402575, 0.1763771921, -0.0400695913, 0.0864070803, 0.2247381359, -0.0004764603, 0.1777470112, 0.0588066056, -0.2287235111, -0.1411398649, -0.0480110347, -0.2195737809, -0.0457101874, 0.0910502821, -0.3784233928, -0.117199026, 0.0576265194, 0.0785727799, -0.1144061238, 0.2686809897, -0.0178967677, 0.0079783443, -0.432769686, -0.0489114188, -0.095419623, 0.0395793766, -0.137952894, 0.2741237581, 0.1732986271, -0.0963453501, 0.2165274173, -0.0182265192, 0.2154128104, -0.056000419, 0.1153900698, 0.0815467611, -0.271969229, -0.2206631005, -0.2305670828, 0.1775818169, 0.2813594639, -0.1658407748, 0.0341938324, 0.174911961, -0.1940270811, -0.204753533, 0.206791535, 0.1573316902, 0.0771393403, -0.0748558193, -0.3715392947, 0.1232288331, -0.283922255, -0.0474475175, -0.4346117377, 0.4222891331, 0.3308518231, -0.3410861492, -0.0260788891, -0.2093766034, 0.1231810674, 0.2381916344, 0.4040839672, -0.1132202223, -0.1260969639, 0.0394419543, -0.5264500976, -0.5373829603, -0.1035016701, -0.2164762169, 0.4150046408, -0.2493383288, 0.1059719548, 0.508852005, -0.1090678349, 0.5761893392, 0.1663047671, 0.050691098, -0.3068365157, -0.3791312277, 0.0902083665, 0.1699809283, 0.3119496405, 0.0322109461, 0.0636632144, 0.2861618698, -0.2917149663, 0.0544039123, -0.0495797545, 0.2915848494, 0.0694974437, -0.3489285707, 0.1976672709, 0.2845183313, 0.4594616294, -0.3592260182, -0.1285211295, -0.1030106619, -0.1203168854, -0.0390728302, 0.4512980282, 0.0279217046, 0.2293425053, -0.1679072529, -0.4276466668, -0.2277382761, 0.5062932968, 0.1606009156, 0.2274734527, -0.1285735667, 0.0581643283, -0.2775186002, -0.0609478056, -0.0101724844, 0.2517803311, -0.0292967707, -0.1679504216, -0.0250769537, -0.3688815832, 0.4275471568, -0.2679293156, -0.2136545628, 0.0051189335, 0.1310738325, 0.1438255012, -0.135486111, -0.4822456539, 0.0707097501, 0.1772768199, 0.0606999472, -0.218880251, 0.3369491398, -0.161361143, -0.1116700768, -0.061790362, 0.0923719928, 0.3087485731, -0.2268971801, 0.0151000274, -0.0535207726 ]
https://github.com/huggingface/datasets/issues/2681
5 duplicate datasets
Yes this was documented in the PR that added this hf->paperswithcode mapping (https://github.com/huggingface/datasets/pull/2404) and AFAICT those are slightly distinct datasets so I think it's a wontfix For context on the paperswithcode mapping you can also refer to https://github.com/huggingface/huggingface_hub/pull/43 which contains a lot of background discussion
## Describe the bug In 5 cases, I could find a dataset on Paperswithcode which references two Hugging Face datasets as dataset loaders. They are: - https://paperswithcode.com/dataset/multinli -> https://huggingface.co/datasets/multi_nli and https://huggingface.co/datasets/multi_nli_mismatch <img width="838" alt="Capture d’écran 2021-07-20 à 16 33 58" src="https://user-images.githubusercontent.com/1676121/126342757-4625522a-f788-41a3-bd1f-2a8b9817bbf5.png"> - https://paperswithcode.com/dataset/squad -> https://huggingface.co/datasets/squad and https://huggingface.co/datasets/squad_v2 - https://paperswithcode.com/dataset/narrativeqa -> https://huggingface.co/datasets/narrativeqa and https://huggingface.co/datasets/narrativeqa_manual - https://paperswithcode.com/dataset/hate-speech-and-offensive-language -> https://huggingface.co/datasets/hate_offensive and https://huggingface.co/datasets/hate_speech_offensive - https://paperswithcode.com/dataset/newsph-nli -> https://huggingface.co/datasets/newsph and https://huggingface.co/datasets/newsph_nli Possible solutions: - don't fix (it works) - for each pair of duplicate datasets, remove one, and create an alias to the other. ## Steps to reproduce the bug Visit the Paperswithcode links, and look at the "Dataset Loaders" section ## Expected results There should only be one reference to a Hugging Face dataset loader ## Actual results Two Hugging Face dataset loaders
45
5 duplicate datasets ## Describe the bug In 5 cases, I could find a dataset on Paperswithcode which references two Hugging Face datasets as dataset loaders. They are: - https://paperswithcode.com/dataset/multinli -> https://huggingface.co/datasets/multi_nli and https://huggingface.co/datasets/multi_nli_mismatch <img width="838" alt="Capture d’écran 2021-07-20 à 16 33 58" src="https://user-images.githubusercontent.com/1676121/126342757-4625522a-f788-41a3-bd1f-2a8b9817bbf5.png"> - https://paperswithcode.com/dataset/squad -> https://huggingface.co/datasets/squad and https://huggingface.co/datasets/squad_v2 - https://paperswithcode.com/dataset/narrativeqa -> https://huggingface.co/datasets/narrativeqa and https://huggingface.co/datasets/narrativeqa_manual - https://paperswithcode.com/dataset/hate-speech-and-offensive-language -> https://huggingface.co/datasets/hate_offensive and https://huggingface.co/datasets/hate_speech_offensive - https://paperswithcode.com/dataset/newsph-nli -> https://huggingface.co/datasets/newsph and https://huggingface.co/datasets/newsph_nli Possible solutions: - don't fix (it works) - for each pair of duplicate datasets, remove one, and create an alias to the other. ## Steps to reproduce the bug Visit the Paperswithcode links, and look at the "Dataset Loaders" section ## Expected results There should only be one reference to a Hugging Face dataset loader ## Actual results Two Hugging Face dataset loaders Yes this was documented in the PR that added this hf->paperswithcode mapping (https://github.com/huggingface/datasets/pull/2404) and AFAICT those are slightly distinct datasets so I think it's a wontfix For context on the paperswithcode mapping you can also refer to https://github.com/huggingface/huggingface_hub/pull/43 which contains a lot of background discussion
[ 0.0702891797, -0.0303928498, 0.0002650926, 0.3026072085, 0.1615349054, 0.0224872008, 0.3812558949, 0.1487318873, 0.0632144287, 0.2060805708, -0.1454353482, 0.0585725456, 0.1328155994, -0.0630716011, 0.0719404891, -0.0062968764, 0.2474245131, -0.1418851316, -0.227530852, -0.0822187886, -0.1461635381, 0.2783471048, -0.0094332397, -0.1467346996, -0.3533271253, 0.0687636808, -0.0858612955, 0.4032164514, -0.0831234753, -0.2152672261, 0.3845348358, 0.2588380277, -0.1833364666, 0.3635749817, -0.0001085839, 0.1327499449, 0.1191547215, 0.1520772576, -0.309571296, 0.0615060925, 0.1082123071, -0.0125755193, 0.017314015, -0.0110088997, 0.0829875097, -0.3159565926, 0.0917755067, -0.2431760579, 0.4125825167, 0.141267091, 0.2476853728, 0.2306792289, 0.0286564007, -0.1598047763, 0.3622326851, 0.0127875451, -0.0677060634, 0.1247703359, 0.1705979556, 0.0258716699, -0.0382997692, 0.5596488714, 0.0059263734, -0.1049734354, 0.0351697057, 0.1814073473, -0.0339608453, -0.0845705643, 0.0711252838, 0.0955602005, -0.0416177325, -0.2665372193, -0.2961680889, -0.3810704052, -0.0798293576, 0.1512448937, 0.3346848488, -0.1314772516, 0.073225446, -0.1004151776, -0.1617500931, 0.1153698042, 0.1003635153, -0.0374751538, 0.0539107956, -0.0181836411, 0.0245164856, 0.145773083, 0.2791579664, -0.0956725404, 0.0412631668, -0.0963975191, -0.2437049896, 0.1251586974, -0.3186259866, 0.1847621351, 0.0741514191, -0.0141671579, 0.4505222142, 0.1745673269, 0.1664845049, -0.1277230382, -0.1661154479, 0.0062892456, 0.2641849518, 0.1139488071, -0.2039258182, 0.1781058758, 0.1740800738, 0.2517189682, -0.0281445198, 0.0542662516, 0.1593552381, -0.1900846511, 0.0065156114, -0.2685298026, 0.213213414, -0.2687273026, -0.3383698761, 0.1518463343, -0.0451440252, 0.0742845237, -0.2210175991, 0.2351894528, 0.2290513664, 0.1324499249, 0.1639442146, -0.0091074351, -0.2775206566, -0.2676823139, -0.3610761762, 0.0377253108, -0.1698387861, -0.0133070042, 0.0501570739, -0.3885453939, 0.2597258389, 0.3444270492, 0.2077884078, -0.2049944401, 0.0852164403, 0.0182679724, -0.0465196073, 0.152055949, 0.0271936208, 0.1776811332, 0.1024062708, -0.2849937379, 0.0787037537, -0.0889813602, -0.0825315565, -0.0154927, -0.2907682061, 0.2522126734, 0.0077124625, 0.0648040771, -0.0191127639, 0.1038393155, 0.0420777798, -0.1259655207, 0.0561730787, 0.0037837052, -0.0485530831, -0.0468564443, 0.0524534211, 0.5406345129, 0.1214760095, -0.3457820714, 0.2633025646, -0.162833795, 0.1812827289, 0.2803884745, -0.2148379087, -0.0444383137, -0.4685080051, -0.2270386368, -0.0370503329, -0.3887757361, -0.4229958653, 0.1572690457, -0.2734945416, 0.3648276925, 0.2113613039, 0.0895468742, -0.0669702068, -0.0258573201, -0.1110835373, 0.0277508385, 0.0342651233, 0.1007514447, -0.4402083755, -0.3214179575, 0.076908201, 0.1578864902, -0.0070328852, -0.0400562733, 0.207691431, 0.0139019182, 0.3016477525, -0.0779571757, -0.0256005768, 0.1917273551, 0.1942148507, -0.0533730499, 0.316943258, 0.1118601784, -0.5789573193, 0.1740713269, -0.2582847476, 0.082226567, 0.1265853196, -0.3745347857, -0.1260644197, -0.086209178, -0.4764727652, -0.5406156778, 0.1560218036, 0.2849035859, -0.0491380095, -0.1052728072, -0.2403941751, 0.5512447953, -0.2626474798, 0.2151256204, -0.4765307307, 0.1979448497, -0.0749795809, 0.1527920365, 0.1172693595, 0.1010275409, 0.0043885633, 0.111182414, 0.0473267622, 0.2589429617, 0.0552449152, 0.3331554532, 0.1939174682, -0.0155932494, 0.300457418, -0.1741737574, -0.148747161, 0.1129791737, 0.0885687172, 0.0601309091, -0.3865840435, 0.2396643311, -0.2031965107, 0.0032814853, -0.054834161, -0.1308239698, 0.2923997045, -0.1416110843, -0.0034342678, -0.510938108, 0.2535314858, 0.0886522532, 0.4695350528, 0.1972255111, -0.244284004, 0.192770049, 0.0407992229, 0.140782848, -0.1942288578, -0.0162592009, -0.141274929, -0.1349202693, -0.0798633471, 0.1790764332, 0.3696675301, 0.2851988673, -0.1035690233, 0.1510407776, -0.1323779672, -0.1944526732, 0.2456230074, -0.2350578755, -0.0799740478, 0.2035207152, 0.3219786286, 0.1378723979, -0.6552867293, -0.0686199814, 0.0124594076, -0.0030523604, -0.4860177338, -0.1635315269, -0.1157724187, -0.3308982551, -0.4506736994, 0.1937759966, -0.3726774156, -0.2968257964, 0.2177339941, 0.1844272614, -0.2909293473, 0.0559380017, -0.1773154289, 0.5094553828, -0.1905321181, 0.1508850753, -0.1049922928, 0.1799394339, -0.3306490779, 0.1656580269, 0.0899940655, -0.1211987734, 0.3523877263, -0.0389507934, -0.2115744948, -0.547298789, -0.5236176252, 0.2084301561, 0.1391558051, 0.3696640134, 0.3066104949, -0.128001228, -0.0571228005, -0.2924893796, 0.0273074396, 0.1066731587, -0.3492101133, -0.0958676636, -0.3238348961, 0.1498922259, -0.1476000547, -0.1449314207, 0.0635178015, -0.2053787261, 0.0606593378, -0.1372238994, 0.0845989957, 0.3050027192, -0.1538968831, 0.0602914132, -0.317399025, -0.0388752706, -0.4645877481, -0.4354594648, -0.010894198, -0.1829255968, -0.2920602262, -0.1587102711, 0.097150892, -0.041164808, 0.1423519403, -0.6871281862, -0.4630126357, -0.1058351099, 0.0027167383, 0.0282154679, 0.1861342937, 0.2162625641, 0.1420980245, -0.2022674978, -0.1953267902, -0.0114188101, 0.3829003572, -0.1636297852, 0.3035385609, -0.1152474582, 0.1026084125, 0.0764358044, 0.3137538433, 0.8434224129, -0.0014697633, 0.4338808954, -0.0673914254, 0.3124114871, -0.020849321, -0.1881707311, 0.1442440003, -0.0755561665, 0.158581987, 0.4018271565, -0.0463212915, -0.0364355557, 0.0287630577, -0.1463022679, -0.2654136121, -0.2283643335, -0.0789314508, 0.0548279658, 0.0716529489, 0.0920654312, -0.2884058952, -0.0331862606, -0.1515437216, 0.1572953761, 0.0370926596, 0.1450944245, 0.1348900646, -0.2468574345, 0.2602546811, -0.2389468104, 0.1679644138, 0.1347386837, 0.1514571905, -0.015814228, -0.0577350557, 0.0136937583, -0.0228128955, 0.7903951406, -0.0340326391, 0.2042672634, 0.0278103314, -0.1460231394, -0.1756721139, -0.1385099739, 0.0538256578, -0.1323561519, 0.0421094038, 0.4128994346, -0.3416717052, 0.0711299926, 0.4328714609, -0.0443175919, -0.157034412, -0.1497314721, -0.1578305215, -0.3200145066, -0.1570151597, 0.0271464307, -0.0239903145, 0.1375604272, -0.0673897043, -0.1892472804, -0.1364290267, -0.2950669527, 0.0858987346, 0.0667082742, 0.3032994568, 0.2618995905, 0.4669044912, 0.4708633721, 0.3350971341, 0.1465929151, 1.0519514084, -0.144185096, -0.5197615027, 0.0216763727, -0.0926425084, -0.0051407618, 0.4899071455, 0.0896273926, 0.1215441376, 0.0647377744, 0.0467978939, 0.0508457907, -0.019328136, 0.2704709768, -0.0013513797, -0.1833827049, -0.1507112086, 0.4275875986, 0.1461550742, -0.1242989153, 0.420609802, 0.2107415944, -0.3146690726, 0.2819370031, 0.0404136889, 0.9385849237, 0.1558811814, 0.2149764597, 0.0375558287, -0.2692103982, 0.5875101686, -0.0289387442, -0.1418968737, -0.2176423967, -0.4918929338, 0.1432878673, -0.0101482728, -0.034153197, -0.0936073735, 0.0485002622, 0.090528056, -0.0571780093, 0.2710875571, 0.0720699653, 0.0879283398, -0.2031650543, -0.1366330683, -0.1881480366, 0.1276732236, -0.025395928, 0.0104330312, 0.0216569565, 0.060093049, -0.0322425589, -0.3847248852, -0.1123053282, 0.1674445719, -0.5221056342, 0.1415777206, 0.0915615186, 0.0177283958, -0.0306471381, 0.0966903418, 0.4413724244, -0.1222482473, -0.0585909747, 0.226809293, 0.2496112585, 0.267634362, -0.1077379659, -0.1987312883, 0.3762799203, -0.160561949, -0.0839053765, -0.1093353331, 0.1593042463, -0.2135661542, -0.4714788198, 0.076186493, -0.4596890807, -0.0454735011, -0.0102327932, 0.0326743051, 0.2039302588, -0.2811031938, 0.1403631717, -0.0378481336, -0.0130376285, -0.0909869596, 0.0814653933, -0.3286118209, -0.1354035586, 0.5333240032, 0.2865937054, -0.2705763578, 0.1788006276, 0.1192110553, -0.037722379, -0.077008456, -0.2253713161, 0.5069450736, -0.6518535018, 0.1981789768, -0.3616855145, -0.0053388779, -0.0027531772, 0.4223925471, 0.1842178106, 0.0392528921, 0.1321127415, -0.3254236579, -0.0498326719, 0.2862563133, -0.1308446079, 0.3340658545, 0.1672135144, 0.2803387344, -0.1923379004, 0.1796860397, -0.3889953792, 0.0801329166, -0.0645374656, 0.0102604972, 0.1012523174, -0.0151195815, 0.1557551473, -0.0029586658, 0.1402812898, 0.2721832991, -0.1252321899, -0.2485207915, -0.3904343843, 0.1317445487, -0.1210006177, -0.0705046728, 0.0038769653, -0.028160857, 0.1299732327, -0.0425641499, 0.5148792267, 0.0577578954, 0.0089612473, -0.209215194, -0.0051758424, -0.0291189104, 0.0734869689, 0.0426972881, -0.0380068757, 0.0841839612, 0.3089030087, 0.0767979696, -0.3439320922, -0.1398140192, 0.270549804, 0.1343268454, 0.1485645324, 0.1832738966, -0.0167148374, -0.2120538056, -0.2311356366, 0.2464070767, 0.3307935297, 0.2452838421, -0.4638027549, -0.1886004657, -0.1990244687, 0.2618715465, -0.4365541637, -0.4500629604, -0.0400507301, 0.0169517361, -0.0279508624, 0.1592962742, 0.4390651286, -0.2071947008, 0.0170788765, 0.0962802917, 0.5881932974, -0.2251541018, 0.1943998039, -0.183540687, -0.1025941446, -0.0928413942, -0.1002475619, 0.0791402087, 0.20359613, 0.2097260952, -0.1540224105, 0.3255161643, 0.0098198466, 0.3314213455, 0.2330666184, -0.2210330814, 0.15763928, 0.4859613478, -0.2427341342, 0.3098112941, 0.0793527439, 0.1540989578, 0.1107530445, -0.1108528748, -0.2532785237, 0.3032992482, -0.0106303338, -0.0971800238, -0.1020240113, -0.3589636385, -0.5747908354, 0.2360833883, -0.2080260664, -0.1438652277, 0.3955695927, -0.0488913581, -0.3522395492, -0.5194408298, -0.132923007, 0.2853824198, 0.3495977223, -0.4062209725, 0.3400548697, 0.6960601211, -0.2867571115, 0.2309231162, 0.5722976923, 0.4350291789, 0.1001939178, 0.3267896175, 0.0076677133, -0.0682520419, 0.1063888744, -0.2850444317, 0.1740033925, -0.1171877235, -0.2777264416, 0.3249942362, 0.1536096036, -0.2502073348, -0.3245691955, 0.0223235637, 0.301728338, -0.4690504372, 0.128637597, -0.3570269048, 0.2763647735, -0.0031686667, 0.0753343403, -0.4512563944, -0.2382505685, 0.3177055418, -0.0202248897, 0.1521886736, -0.0654860586, 0.1148129702, 0.1379262656, 0.4535552859, 0.2049618512, -0.0245896056, -0.0404890291, -0.4924442768, -0.5506691933, 0.3423613906, -0.1147313714, 0.2573940456, 0.1016029939, 0.101439245, -0.0690052733, -0.0847875103, 0.208553046, 0.2121150196, -0.0459359847, 0.1773768216, -0.3282059133, -0.0099744191, -0.1070323735, -0.1118800417, 0.0895474404, -0.2577895522, 0.2668512166, -0.0040981192, 0.0399763435, 0.0481396616, 0.0566331074, 0.1933894753, -0.2851013541, 0.2023122907, 0.3519157767, 0.2769763172, -0.1271613836, -0.3484399319, -0.2969311774, -0.1960517466, -0.3339642584, 0.2065487057, 0.1690262407, 0.3120587468, 0.0065321582, -0.4518444836, -0.0230734684, 0.1562702209, 0.2045672536, 0.1513564736, -0.5145586133, 0.1581469923, -0.070807457, 0.0137265613, 0.1419333965, 0.4631643593, 0.0257921387, 0.0870904475, -0.0072629577, -0.5874012113, 0.2039550394, -0.5411154628, 0.0610732138, -0.0182317887, 0.2844230831, 0.045131024, -0.051096905, -0.5387969613, 0.0153931007, 0.3055503964, 0.0063497624, -0.0691116303, 0.3009804785, 0.116898492, 0.0154020535, -0.0079802433, 0.0861917362, 0.315828979, -0.203404054, 0.3573434651, -0.2383294553 ]
https://github.com/huggingface/datasets/issues/2679
Cannot load the blog_authorship_corpus due to codec errors
Hi @izaskr, thanks for reporting. However the traceback you joined does not correspond to the codec error message: it is about other error `NonMatchingSplitsSizesError`. Maybe you missed some important part of your traceback... I'm going to have a look at the dataset anyway...
## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1
43
Cannot load the blog_authorship_corpus due to codec errors ## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1 Hi @izaskr, thanks for reporting. However the traceback you joined does not correspond to the codec error message: it is about other error `NonMatchingSplitsSizesError`. Maybe you missed some important part of your traceback... I'm going to have a look at the dataset anyway...
[ -0.2084891796, 0.4780813158, -0.0540075712, 0.3998492062, 0.3617139459, 0.22684066, 0.0785164982, 0.4288443029, -0.1586737037, 0.24357526, 0.0468283147, 0.2679276466, -0.0666647255, -0.2108727545, 0.0490831584, 0.0175639372, -0.088299796, 0.1426827163, 0.2282307148, -0.2342810929, -0.2054748088, 0.1818812191, -0.1930260509, 0.0730277076, -0.2108268291, -0.0789328814, 0.1461099535, 0.6233422756, -0.1766089648, -0.6049428582, 0.1305890381, 0.0211397223, 0.1271800697, 0.3438816965, -0.0001129081, -0.0840202793, 0.5609156489, -0.0908817202, -0.2077679783, -0.2428597808, -0.2933350801, 0.089376986, -0.1876997203, -0.2272578329, 0.0519395173, 0.1707788259, 0.043988999, -0.5675262809, 0.3152769506, 0.575063765, 0.2217923999, -0.0919264629, 0.0331095532, -0.0800492913, 0.3778605461, 0.0454615615, 0.1114240065, 0.4461227655, 0.4049823284, -0.1060689315, -0.0645621866, 0.3080869317, -0.3914476335, -0.0931515992, 0.0810790733, -0.1104291454, 0.2468286902, -0.31479159, 0.6316775084, 0.1682748049, 0.7650758028, -0.216373086, -0.0818576738, 0.010954855, 0.1951055527, -0.2739405632, 0.1889479905, 0.3846224248, -0.3076026738, 0.0981160253, -0.0437701158, -0.0178626888, -0.2440259755, -0.0302387513, -0.1594137698, 0.0686636269, -0.0978547633, 0.0309895221, -0.2485803515, 0.0831889361, 0.3431304097, -0.0879531726, -0.2779459953, 0.3806452453, 0.0356343873, 0.1754510999, 0.1777859777, 0.0299991947, -0.0623695739, 0.1734725386, -0.0929431021, 0.189839229, 0.1581865549, 0.2450634688, 0.0953594744, -0.0520517118, 0.1189915985, 0.3499030471, 0.2957803905, -0.0092535885, -0.0625836998, -0.088483341, -0.3842275441, -0.3853068054, -0.1133606136, 0.2477752417, 0.2131842822, -0.3699801266, -0.4927605689, 0.3212743998, -0.074011907, 0.0194722228, -0.0607549213, 0.4851862192, 0.1276384145, 0.0470059179, 0.240813449, 0.2430118322, -0.1895999759, -0.0786767453, -0.1897736341, 0.1530001163, -0.0485872962, -0.0438678674, 0.1317063719, -0.5761975646, 0.1176542267, -0.0184417702, 0.3553467989, -0.320558697, -0.3360753953, -0.0648012012, -0.1094542295, 0.0805430636, -0.0559897944, 0.0071816882, 0.1801805943, -0.3210012317, -0.0618893355, -0.0260088388, -0.1589973718, -0.3241133392, -0.0479485504, 0.2177027166, 0.0325052142, 0.1240166575, -0.2615479827, 0.0987490788, 0.4569671452, -0.1838754863, 0.0121200485, -0.0366270654, -0.1992596388, -0.1116065457, 0.0685284659, 0.7190662622, 0.0927180871, 0.0617561638, 0.4470206499, 0.220451057, 0.2396670878, -0.0346575789, -0.0303007476, 0.1947582066, -0.2161441147, 0.1940481067, 0.173850283, -0.6035791039, -0.001729472, 0.1910255849, 0.0441783629, 0.1295309365, 0.054736495, -0.3995581269, 0.4223297834, -0.3531525135, 0.1809348166, 0.4003559649, -0.0078087719, 0.042233672, -0.2097001374, -0.0094913719, -0.0592945069, 0.1407906711, 0.0956551507, 0.0371472687, 0.4447284043, 0.0195303559, 0.5081383586, -0.2271024287, -0.0435088426, 0.204464823, -0.0637107641, 0.0057086116, -0.0157998465, -0.2292636633, -0.10089688, 0.2268029749, -0.0385453738, -0.0186797343, -0.3047531545, -0.1203675345, -0.3363898993, 0.0941974223, -0.1724905223, -0.0096022747, 0.146828115, 0.0825055689, 0.1227490604, 0.2111048698, -0.2485475838, 0.2506259382, -0.3510065973, 0.1294385344, -0.5143996477, 0.2901624143, 0.0366381258, -0.180281356, 0.3910514414, 0.5273911357, 0.2063740641, -0.1315864772, -0.2450413853, 0.3295736909, -0.2906769216, 0.6357573867, -0.3684307039, -0.2102890164, 0.155636549, -0.3921348155, 0.1912714243, 0.1315573305, 0.2919701338, -0.1065118983, 0.2268298119, 0.1296586543, 0.0019440707, 0.0616180524, 0.1570880264, -0.0124360044, 0.3217047453, -0.0014805945, -0.1980582476, -0.3063355088, 0.6450026035, 0.218574062, 0.1565413028, -0.1052055359, -0.2416177243, 0.0593610927, 0.4993919134, -0.0996021852, -0.0267615076, 0.035702616, -0.0107224081, 0.0234231707, 0.0127147306, -0.1461622864, 0.1471956372, 0.0217034873, -0.1039541438, 0.0323545821, 0.0716076344, -0.3352051675, 0.3919107616, -0.1687843502, 0.0142022632, 0.4510240555, 0.0282915924, 0.0123840095, -0.3308025897, -0.1881504059, 0.0471753292, 0.0889909789, -0.5186876655, 0.0840453506, -0.2582146227, -0.272869736, -0.2343660891, -0.348108083, -0.0588168576, -0.101334177, -0.0612809137, 0.1418226957, -0.0765722916, 0.0614700504, -0.3226081431, 0.1384917796, -0.1622713208, 0.1579311341, -0.1613742709, -0.1625826806, -0.19525747, -0.0374631844, 0.4106935263, 0.2090359032, 0.1456122696, -0.3906175792, 0.0756682232, -0.1550294459, -0.1967248172, 0.1922615319, -0.007283425, 0.0445014797, -0.0962760672, -0.1030251235, 0.6314197183, -0.1873523593, 0.0774795488, 0.040375609, -0.0095926207, 0.4120473564, 0.102049768, -0.4308471084, -0.0713258386, -0.2392788082, -0.3840436339, -0.5113677382, -0.2183596045, 0.0891491622, 0.2631490529, 0.4002131522, -0.2125228941, -0.0471870676, -0.0296742041, 0.3316634893, -0.1299692839, -0.2295027524, 0.2037597448, -0.2909738123, -0.3221520483, 0.1063783467, 0.0682758987, 0.3978838921, -0.0266795028, -0.2990858257, 0.2009894103, 0.073692143, 0.0807963014, -0.1829185337, -0.0326646119, 0.1681962907, 0.06594491, 0.0074227983, -0.0765439123, 0.0337191336, -0.3264496326, -0.0253694002, -0.1287385374, -0.0559627004, 0.2026887089, -0.1725129783, 0.0619199388, 0.4852909148, 0.0982011855, 0.2867951393, 0.0515119359, 0.2136232853, 0.0147206364, -0.2460833341, 0.4707969427, -0.1930656731, -0.2243302166, 0.3553862274, 0.0529204123, -0.1348502487, -0.2152938694, 0.0723881945, -0.1209119856, -0.2952141464, 0.0524807759, -0.3898859024, 0.2485882044, 0.0668383315, 0.3902972639, 0.0765489191, -0.2069255412, -0.0084628398, 0.3520235419, 0.1568838805, -0.1251988709, 0.014238324, 0.1312191635, -0.4801467955, 0.344866246, 0.2102483809, -0.0640169159, -0.043295633, 0.2608808875, 0.0587282665, -0.151460737, 0.0913042799, -0.2261163741, 0.2672908008, 0.2079252601, 0.3854580224, -0.2534746826, -0.0441582054, -0.0180205069, 0.4818541408, -0.0801010802, -0.0459681712, -0.0982749686, 0.1211590245, 0.073156558, 0.1224752516, -0.0888519883, -0.1877177209, -0.2884796858, -0.3591706753, -0.3103107214, -0.2335228473, 0.0687820017, 0.3102967143, -0.131248191, -0.1198603734, -0.0953508019, -0.0344560109, 0.1942461133, 0.0822996199, 0.0921881497, -0.0752247646, 0.1156871095, -0.0131786214, -0.1346068978, 0.3768362701, 0.752692759, -0.1334385574, -0.5529476404, -0.1159122363, -0.3700482845, 0.0784898922, 0.4450322688, -0.2124754339, -0.1339323968, 0.0593461394, -0.0505468436, -0.3437482417, -0.2992711067, 0.050475385, 0.0993440896, -0.278415978, -0.5206421614, 0.4623550177, -0.1271225512, 0.0311398767, 0.1468498409, 0.0418170989, -0.347361207, 0.137285471, 0.0064521735, 0.9900813699, 0.2140820026, -0.1357928514, 0.0753418431, -0.2174910009, 0.0528733954, -0.2248953432, 0.1980189979, -0.2843385339, 0.0222396795, -0.1518353075, 0.2045907229, 0.2688499987, 0.0621273182, -0.2158530653, 0.1995506883, -0.0714001134, -0.2375726104, -0.0485024713, 0.003161503, -0.4199117422, -0.2580136359, -0.5787045956, 0.1172821224, -0.1179318875, 0.1192465946, -0.1189099848, 0.0359294154, 0.0455082171, -0.326695025, -0.4608326554, 0.375839442, -0.2024476081, -0.1504062563, -0.0577516779, -0.3814421594, 0.3199532032, 0.0561904125, 0.2504870892, 0.0391976014, -0.042942334, 0.1452630907, 0.19812195, -0.0339065157, -0.0243591089, 0.0854877681, 0.2385652065, -0.06631919, -0.1132119894, 0.2658360898, -0.0436588749, -0.1837544292, 0.255653441, 0.066129379, -0.0826183632, -0.0395170413, -0.0432816297, 0.0955179855, 0.1809805483, -0.0629985482, 0.1403062642, 0.1276889294, -0.2898814976, -0.0544115193, -0.1107424721, -0.2697610855, 0.0812906101, 0.2204325199, -0.0361851938, -0.0838952139, 0.4614356756, 0.4005635679, -0.2099895328, -0.1176223457, -0.3479478955, 0.1872600913, -0.5638507009, 0.0368574113, -0.000726697, 0.0062479693, -0.1586898565, 0.4170023799, -0.1392201036, -0.0937968045, 0.0625544041, -0.523226738, -0.0387309901, 0.1154572889, -0.0103502767, 0.0329319388, -0.0487525016, 0.0001442382, -0.2369752079, 0.1144795418, -0.3007833064, 0.1038624197, -0.2077764571, 0.1372834444, 0.4296365678, -0.0340135992, -0.1030203104, -0.2039479464, 0.1335909963, 0.3360124528, -0.1127493307, -0.1500054747, -0.0085570477, 0.1377923489, 0.0324159935, -0.0805122703, 0.0895497724, -0.050176844, -0.105763644, -0.193463847, 0.2179796696, 0.1474807262, 0.0261416323, -0.0277225468, -0.4482194483, 0.2940061688, -0.0006672119, 0.2398098856, -0.1485021561, 0.4302437007, -0.1185300499, 0.1239033192, -0.2088457495, -0.0353735164, -0.1150487363, 0.2561823428, -0.0961362198, 0.0655865669, 0.4363144338, -0.2451551557, 0.3256572485, 0.487193048, -0.0835472718, 0.3445188105, -0.4091550112, 0.0281194635, 0.0262619816, 0.2102447152, -0.1836768091, -0.0181143302, -0.4960897863, -0.0479395837, -0.0900045708, 0.2297486067, 0.1105231345, -0.3707813025, -0.2305625826, 0.0906377733, 0.4767541885, -0.0063166083, 0.2191637903, 0.0231050793, 0.049314633, -0.019285161, -0.0702998564, 0.2188106477, 0.0461868271, 0.2720302641, -0.4646323621, 0.3093926311, 0.2494730353, 0.1801013798, -0.0085309045, -0.441162914, 0.0482364967, 0.2103960961, 0.0852202326, 0.4002789557, 0.160991177, 0.1586004794, -0.1475253701, -0.1259339899, -0.1613468677, 0.0410663337, -0.0583179407, 0.047252845, -0.3145266473, -0.2136669606, -0.1724196225, -0.1043775603, -0.1697825342, 0.1193012595, 0.0753187016, 0.1556897163, -0.3476273119, -0.3463919163, 0.1377423555, -0.2096372992, 0.2447033077, -0.1253280938, 0.5787795782, 0.438213706, 0.0846361592, 0.425889492, 0.3017474115, 0.7615877986, 0.305841893, 0.053505078, 0.1927801669, -0.1810553521, -0.125063628, 0.1044054329, 0.3984233439, 0.0448813997, 0.3953411877, 0.0439627133, 0.186365813, -0.1380054355, 0.1443943232, 0.2655777931, 0.4306208491, -0.1914595068, 0.2662211061, -0.1739098728, -0.0572183132, -0.4198782444, -0.0946538523, -0.3771162927, 0.1363275796, 0.2699842155, -0.0920646638, 0.0951403379, -0.0083604883, 0.1025269851, 0.0740034282, 0.3087226748, 0.4034377635, 0.1357361823, 0.0255364813, -0.2081613541, -0.4297647476, 0.3247804642, -0.0908723399, -0.3741290271, -0.0666040331, 0.0824074224, 0.1919350624, 0.1155832857, 0.1238221079, -0.0432214923, 0.383332938, 0.0597242676, -0.1724220067, -0.0146095846, 0.2414142787, -0.0620329417, -0.3025850356, -0.3642934561, 0.0325729437, -0.2273192555, 0.0701557398, 0.0482756943, -0.0399629362, -0.0922598913, -0.2646710873, 0.3722174466, 0.0610684603, 0.2166766822, -0.3107421696, -0.2267271429, -0.366376847, -0.1446739137, -0.1545000374, 0.4856234789, 0.1616641581, 0.2741333544, -0.0787694454, 0.0253108852, -0.2682862282, 0.1879413873, -0.1179689318, 0.2693620622, -0.398327738, -0.0619250312, -0.1300140023, 0.0634809211, -0.0002445138, 0.2416365147, 0.0137256859, 0.0728772134, -0.1267947108, -0.6861602068, 0.4283365309, -0.5565597415, -0.4156656265, 0.0878275484, 0.6013881564, 0.0051166965, 0.0725320503, -0.64299196, 0.2427366078, 0.094825983, -0.2015711814, -0.1887479722, -0.0072777839, -0.1239596978, -0.1315534115, -0.0403239764, 0.0875856578, 0.261195153, -0.1649685502, 0.1641230583, -0.4080621004 ]
https://github.com/huggingface/datasets/issues/2679
Cannot load the blog_authorship_corpus due to codec errors
Hi @izaskr, thanks again for having reported this issue. After investigation, I have created a Pull Request (#2685) to fix several issues with this dataset: - the `NonMatchingSplitsSizesError` - the `UnicodeDecodeError` Once the Pull Request merged into master, you will be able to load this dataset if you install `datasets` from our GitHub repository master branch. Otherwise, you will be able to use it after our next release, by updating `datasets`: `pip install -U datasets`.
## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1
75
Cannot load the blog_authorship_corpus due to codec errors ## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1 Hi @izaskr, thanks again for having reported this issue. After investigation, I have created a Pull Request (#2685) to fix several issues with this dataset: - the `NonMatchingSplitsSizesError` - the `UnicodeDecodeError` Once the Pull Request merged into master, you will be able to load this dataset if you install `datasets` from our GitHub repository master branch. Otherwise, you will be able to use it after our next release, by updating `datasets`: `pip install -U datasets`.
[ -0.2084891796, 0.4780813158, -0.0540075712, 0.3998492062, 0.3617139459, 0.22684066, 0.0785164982, 0.4288443029, -0.1586737037, 0.24357526, 0.0468283147, 0.2679276466, -0.0666647255, -0.2108727545, 0.0490831584, 0.0175639372, -0.088299796, 0.1426827163, 0.2282307148, -0.2342810929, -0.2054748088, 0.1818812191, -0.1930260509, 0.0730277076, -0.2108268291, -0.0789328814, 0.1461099535, 0.6233422756, -0.1766089648, -0.6049428582, 0.1305890381, 0.0211397223, 0.1271800697, 0.3438816965, -0.0001129081, -0.0840202793, 0.5609156489, -0.0908817202, -0.2077679783, -0.2428597808, -0.2933350801, 0.089376986, -0.1876997203, -0.2272578329, 0.0519395173, 0.1707788259, 0.043988999, -0.5675262809, 0.3152769506, 0.575063765, 0.2217923999, -0.0919264629, 0.0331095532, -0.0800492913, 0.3778605461, 0.0454615615, 0.1114240065, 0.4461227655, 0.4049823284, -0.1060689315, -0.0645621866, 0.3080869317, -0.3914476335, -0.0931515992, 0.0810790733, -0.1104291454, 0.2468286902, -0.31479159, 0.6316775084, 0.1682748049, 0.7650758028, -0.216373086, -0.0818576738, 0.010954855, 0.1951055527, -0.2739405632, 0.1889479905, 0.3846224248, -0.3076026738, 0.0981160253, -0.0437701158, -0.0178626888, -0.2440259755, -0.0302387513, -0.1594137698, 0.0686636269, -0.0978547633, 0.0309895221, -0.2485803515, 0.0831889361, 0.3431304097, -0.0879531726, -0.2779459953, 0.3806452453, 0.0356343873, 0.1754510999, 0.1777859777, 0.0299991947, -0.0623695739, 0.1734725386, -0.0929431021, 0.189839229, 0.1581865549, 0.2450634688, 0.0953594744, -0.0520517118, 0.1189915985, 0.3499030471, 0.2957803905, -0.0092535885, -0.0625836998, -0.088483341, -0.3842275441, -0.3853068054, -0.1133606136, 0.2477752417, 0.2131842822, -0.3699801266, -0.4927605689, 0.3212743998, -0.074011907, 0.0194722228, -0.0607549213, 0.4851862192, 0.1276384145, 0.0470059179, 0.240813449, 0.2430118322, -0.1895999759, -0.0786767453, -0.1897736341, 0.1530001163, -0.0485872962, -0.0438678674, 0.1317063719, -0.5761975646, 0.1176542267, -0.0184417702, 0.3553467989, -0.320558697, -0.3360753953, -0.0648012012, -0.1094542295, 0.0805430636, -0.0559897944, 0.0071816882, 0.1801805943, -0.3210012317, -0.0618893355, -0.0260088388, -0.1589973718, -0.3241133392, -0.0479485504, 0.2177027166, 0.0325052142, 0.1240166575, -0.2615479827, 0.0987490788, 0.4569671452, -0.1838754863, 0.0121200485, -0.0366270654, -0.1992596388, -0.1116065457, 0.0685284659, 0.7190662622, 0.0927180871, 0.0617561638, 0.4470206499, 0.220451057, 0.2396670878, -0.0346575789, -0.0303007476, 0.1947582066, -0.2161441147, 0.1940481067, 0.173850283, -0.6035791039, -0.001729472, 0.1910255849, 0.0441783629, 0.1295309365, 0.054736495, -0.3995581269, 0.4223297834, -0.3531525135, 0.1809348166, 0.4003559649, -0.0078087719, 0.042233672, -0.2097001374, -0.0094913719, -0.0592945069, 0.1407906711, 0.0956551507, 0.0371472687, 0.4447284043, 0.0195303559, 0.5081383586, -0.2271024287, -0.0435088426, 0.204464823, -0.0637107641, 0.0057086116, -0.0157998465, -0.2292636633, -0.10089688, 0.2268029749, -0.0385453738, -0.0186797343, -0.3047531545, -0.1203675345, -0.3363898993, 0.0941974223, -0.1724905223, -0.0096022747, 0.146828115, 0.0825055689, 0.1227490604, 0.2111048698, -0.2485475838, 0.2506259382, -0.3510065973, 0.1294385344, -0.5143996477, 0.2901624143, 0.0366381258, -0.180281356, 0.3910514414, 0.5273911357, 0.2063740641, -0.1315864772, -0.2450413853, 0.3295736909, -0.2906769216, 0.6357573867, -0.3684307039, -0.2102890164, 0.155636549, -0.3921348155, 0.1912714243, 0.1315573305, 0.2919701338, -0.1065118983, 0.2268298119, 0.1296586543, 0.0019440707, 0.0616180524, 0.1570880264, -0.0124360044, 0.3217047453, -0.0014805945, -0.1980582476, -0.3063355088, 0.6450026035, 0.218574062, 0.1565413028, -0.1052055359, -0.2416177243, 0.0593610927, 0.4993919134, -0.0996021852, -0.0267615076, 0.035702616, -0.0107224081, 0.0234231707, 0.0127147306, -0.1461622864, 0.1471956372, 0.0217034873, -0.1039541438, 0.0323545821, 0.0716076344, -0.3352051675, 0.3919107616, -0.1687843502, 0.0142022632, 0.4510240555, 0.0282915924, 0.0123840095, -0.3308025897, -0.1881504059, 0.0471753292, 0.0889909789, -0.5186876655, 0.0840453506, -0.2582146227, -0.272869736, -0.2343660891, -0.348108083, -0.0588168576, -0.101334177, -0.0612809137, 0.1418226957, -0.0765722916, 0.0614700504, -0.3226081431, 0.1384917796, -0.1622713208, 0.1579311341, -0.1613742709, -0.1625826806, -0.19525747, -0.0374631844, 0.4106935263, 0.2090359032, 0.1456122696, -0.3906175792, 0.0756682232, -0.1550294459, -0.1967248172, 0.1922615319, -0.007283425, 0.0445014797, -0.0962760672, -0.1030251235, 0.6314197183, -0.1873523593, 0.0774795488, 0.040375609, -0.0095926207, 0.4120473564, 0.102049768, -0.4308471084, -0.0713258386, -0.2392788082, -0.3840436339, -0.5113677382, -0.2183596045, 0.0891491622, 0.2631490529, 0.4002131522, -0.2125228941, -0.0471870676, -0.0296742041, 0.3316634893, -0.1299692839, -0.2295027524, 0.2037597448, -0.2909738123, -0.3221520483, 0.1063783467, 0.0682758987, 0.3978838921, -0.0266795028, -0.2990858257, 0.2009894103, 0.073692143, 0.0807963014, -0.1829185337, -0.0326646119, 0.1681962907, 0.06594491, 0.0074227983, -0.0765439123, 0.0337191336, -0.3264496326, -0.0253694002, -0.1287385374, -0.0559627004, 0.2026887089, -0.1725129783, 0.0619199388, 0.4852909148, 0.0982011855, 0.2867951393, 0.0515119359, 0.2136232853, 0.0147206364, -0.2460833341, 0.4707969427, -0.1930656731, -0.2243302166, 0.3553862274, 0.0529204123, -0.1348502487, -0.2152938694, 0.0723881945, -0.1209119856, -0.2952141464, 0.0524807759, -0.3898859024, 0.2485882044, 0.0668383315, 0.3902972639, 0.0765489191, -0.2069255412, -0.0084628398, 0.3520235419, 0.1568838805, -0.1251988709, 0.014238324, 0.1312191635, -0.4801467955, 0.344866246, 0.2102483809, -0.0640169159, -0.043295633, 0.2608808875, 0.0587282665, -0.151460737, 0.0913042799, -0.2261163741, 0.2672908008, 0.2079252601, 0.3854580224, -0.2534746826, -0.0441582054, -0.0180205069, 0.4818541408, -0.0801010802, -0.0459681712, -0.0982749686, 0.1211590245, 0.073156558, 0.1224752516, -0.0888519883, -0.1877177209, -0.2884796858, -0.3591706753, -0.3103107214, -0.2335228473, 0.0687820017, 0.3102967143, -0.131248191, -0.1198603734, -0.0953508019, -0.0344560109, 0.1942461133, 0.0822996199, 0.0921881497, -0.0752247646, 0.1156871095, -0.0131786214, -0.1346068978, 0.3768362701, 0.752692759, -0.1334385574, -0.5529476404, -0.1159122363, -0.3700482845, 0.0784898922, 0.4450322688, -0.2124754339, -0.1339323968, 0.0593461394, -0.0505468436, -0.3437482417, -0.2992711067, 0.050475385, 0.0993440896, -0.278415978, -0.5206421614, 0.4623550177, -0.1271225512, 0.0311398767, 0.1468498409, 0.0418170989, -0.347361207, 0.137285471, 0.0064521735, 0.9900813699, 0.2140820026, -0.1357928514, 0.0753418431, -0.2174910009, 0.0528733954, -0.2248953432, 0.1980189979, -0.2843385339, 0.0222396795, -0.1518353075, 0.2045907229, 0.2688499987, 0.0621273182, -0.2158530653, 0.1995506883, -0.0714001134, -0.2375726104, -0.0485024713, 0.003161503, -0.4199117422, -0.2580136359, -0.5787045956, 0.1172821224, -0.1179318875, 0.1192465946, -0.1189099848, 0.0359294154, 0.0455082171, -0.326695025, -0.4608326554, 0.375839442, -0.2024476081, -0.1504062563, -0.0577516779, -0.3814421594, 0.3199532032, 0.0561904125, 0.2504870892, 0.0391976014, -0.042942334, 0.1452630907, 0.19812195, -0.0339065157, -0.0243591089, 0.0854877681, 0.2385652065, -0.06631919, -0.1132119894, 0.2658360898, -0.0436588749, -0.1837544292, 0.255653441, 0.066129379, -0.0826183632, -0.0395170413, -0.0432816297, 0.0955179855, 0.1809805483, -0.0629985482, 0.1403062642, 0.1276889294, -0.2898814976, -0.0544115193, -0.1107424721, -0.2697610855, 0.0812906101, 0.2204325199, -0.0361851938, -0.0838952139, 0.4614356756, 0.4005635679, -0.2099895328, -0.1176223457, -0.3479478955, 0.1872600913, -0.5638507009, 0.0368574113, -0.000726697, 0.0062479693, -0.1586898565, 0.4170023799, -0.1392201036, -0.0937968045, 0.0625544041, -0.523226738, -0.0387309901, 0.1154572889, -0.0103502767, 0.0329319388, -0.0487525016, 0.0001442382, -0.2369752079, 0.1144795418, -0.3007833064, 0.1038624197, -0.2077764571, 0.1372834444, 0.4296365678, -0.0340135992, -0.1030203104, -0.2039479464, 0.1335909963, 0.3360124528, -0.1127493307, -0.1500054747, -0.0085570477, 0.1377923489, 0.0324159935, -0.0805122703, 0.0895497724, -0.050176844, -0.105763644, -0.193463847, 0.2179796696, 0.1474807262, 0.0261416323, -0.0277225468, -0.4482194483, 0.2940061688, -0.0006672119, 0.2398098856, -0.1485021561, 0.4302437007, -0.1185300499, 0.1239033192, -0.2088457495, -0.0353735164, -0.1150487363, 0.2561823428, -0.0961362198, 0.0655865669, 0.4363144338, -0.2451551557, 0.3256572485, 0.487193048, -0.0835472718, 0.3445188105, -0.4091550112, 0.0281194635, 0.0262619816, 0.2102447152, -0.1836768091, -0.0181143302, -0.4960897863, -0.0479395837, -0.0900045708, 0.2297486067, 0.1105231345, -0.3707813025, -0.2305625826, 0.0906377733, 0.4767541885, -0.0063166083, 0.2191637903, 0.0231050793, 0.049314633, -0.019285161, -0.0702998564, 0.2188106477, 0.0461868271, 0.2720302641, -0.4646323621, 0.3093926311, 0.2494730353, 0.1801013798, -0.0085309045, -0.441162914, 0.0482364967, 0.2103960961, 0.0852202326, 0.4002789557, 0.160991177, 0.1586004794, -0.1475253701, -0.1259339899, -0.1613468677, 0.0410663337, -0.0583179407, 0.047252845, -0.3145266473, -0.2136669606, -0.1724196225, -0.1043775603, -0.1697825342, 0.1193012595, 0.0753187016, 0.1556897163, -0.3476273119, -0.3463919163, 0.1377423555, -0.2096372992, 0.2447033077, -0.1253280938, 0.5787795782, 0.438213706, 0.0846361592, 0.425889492, 0.3017474115, 0.7615877986, 0.305841893, 0.053505078, 0.1927801669, -0.1810553521, -0.125063628, 0.1044054329, 0.3984233439, 0.0448813997, 0.3953411877, 0.0439627133, 0.186365813, -0.1380054355, 0.1443943232, 0.2655777931, 0.4306208491, -0.1914595068, 0.2662211061, -0.1739098728, -0.0572183132, -0.4198782444, -0.0946538523, -0.3771162927, 0.1363275796, 0.2699842155, -0.0920646638, 0.0951403379, -0.0083604883, 0.1025269851, 0.0740034282, 0.3087226748, 0.4034377635, 0.1357361823, 0.0255364813, -0.2081613541, -0.4297647476, 0.3247804642, -0.0908723399, -0.3741290271, -0.0666040331, 0.0824074224, 0.1919350624, 0.1155832857, 0.1238221079, -0.0432214923, 0.383332938, 0.0597242676, -0.1724220067, -0.0146095846, 0.2414142787, -0.0620329417, -0.3025850356, -0.3642934561, 0.0325729437, -0.2273192555, 0.0701557398, 0.0482756943, -0.0399629362, -0.0922598913, -0.2646710873, 0.3722174466, 0.0610684603, 0.2166766822, -0.3107421696, -0.2267271429, -0.366376847, -0.1446739137, -0.1545000374, 0.4856234789, 0.1616641581, 0.2741333544, -0.0787694454, 0.0253108852, -0.2682862282, 0.1879413873, -0.1179689318, 0.2693620622, -0.398327738, -0.0619250312, -0.1300140023, 0.0634809211, -0.0002445138, 0.2416365147, 0.0137256859, 0.0728772134, -0.1267947108, -0.6861602068, 0.4283365309, -0.5565597415, -0.4156656265, 0.0878275484, 0.6013881564, 0.0051166965, 0.0725320503, -0.64299196, 0.2427366078, 0.094825983, -0.2015711814, -0.1887479722, -0.0072777839, -0.1239596978, -0.1315534115, -0.0403239764, 0.0875856578, 0.261195153, -0.1649685502, 0.1641230583, -0.4080621004 ]
https://github.com/huggingface/datasets/issues/2679
Cannot load the blog_authorship_corpus due to codec errors
@albertvillanova Can you shed light on how this fix works? We're experiencing a similar issue. If we run several runs (eg in a Wandb sweep) the first run "works" but then we get `NonMatchingSplitsSizesError` | run num | actual train examples # | expected example # | recorded example # | | ------- | -------------- | ----------------- | -------- | | 1 | 100 | 100 | 100 | | 2 | 102 | 100 | 102 | | 3 | 100 | 100 | 202 | | 4 | 40 | 100 | 40 | | 5 | 40 | 100 | 40 | | 6 | 40 | 100 | 40 | The second through the nth all crash with ``` datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=19980970, num_examples=100, dataset_name='cies'), 'recorded': SplitInfo(name='train', num_bytes=40163811, num_examples=202, dataset_name='cies')}] ```
## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1
135
Cannot load the blog_authorship_corpus due to codec errors ## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1 @albertvillanova Can you shed light on how this fix works? We're experiencing a similar issue. If we run several runs (eg in a Wandb sweep) the first run "works" but then we get `NonMatchingSplitsSizesError` | run num | actual train examples # | expected example # | recorded example # | | ------- | -------------- | ----------------- | -------- | | 1 | 100 | 100 | 100 | | 2 | 102 | 100 | 102 | | 3 | 100 | 100 | 202 | | 4 | 40 | 100 | 40 | | 5 | 40 | 100 | 40 | | 6 | 40 | 100 | 40 | The second through the nth all crash with ``` datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=19980970, num_examples=100, dataset_name='cies'), 'recorded': SplitInfo(name='train', num_bytes=40163811, num_examples=202, dataset_name='cies')}] ```
[ -0.2084891796, 0.4780813158, -0.0540075712, 0.3998492062, 0.3617139459, 0.22684066, 0.0785164982, 0.4288443029, -0.1586737037, 0.24357526, 0.0468283147, 0.2679276466, -0.0666647255, -0.2108727545, 0.0490831584, 0.0175639372, -0.088299796, 0.1426827163, 0.2282307148, -0.2342810929, -0.2054748088, 0.1818812191, -0.1930260509, 0.0730277076, -0.2108268291, -0.0789328814, 0.1461099535, 0.6233422756, -0.1766089648, -0.6049428582, 0.1305890381, 0.0211397223, 0.1271800697, 0.3438816965, -0.0001129081, -0.0840202793, 0.5609156489, -0.0908817202, -0.2077679783, -0.2428597808, -0.2933350801, 0.089376986, -0.1876997203, -0.2272578329, 0.0519395173, 0.1707788259, 0.043988999, -0.5675262809, 0.3152769506, 0.575063765, 0.2217923999, -0.0919264629, 0.0331095532, -0.0800492913, 0.3778605461, 0.0454615615, 0.1114240065, 0.4461227655, 0.4049823284, -0.1060689315, -0.0645621866, 0.3080869317, -0.3914476335, -0.0931515992, 0.0810790733, -0.1104291454, 0.2468286902, -0.31479159, 0.6316775084, 0.1682748049, 0.7650758028, -0.216373086, -0.0818576738, 0.010954855, 0.1951055527, -0.2739405632, 0.1889479905, 0.3846224248, -0.3076026738, 0.0981160253, -0.0437701158, -0.0178626888, -0.2440259755, -0.0302387513, -0.1594137698, 0.0686636269, -0.0978547633, 0.0309895221, -0.2485803515, 0.0831889361, 0.3431304097, -0.0879531726, -0.2779459953, 0.3806452453, 0.0356343873, 0.1754510999, 0.1777859777, 0.0299991947, -0.0623695739, 0.1734725386, -0.0929431021, 0.189839229, 0.1581865549, 0.2450634688, 0.0953594744, -0.0520517118, 0.1189915985, 0.3499030471, 0.2957803905, -0.0092535885, -0.0625836998, -0.088483341, -0.3842275441, -0.3853068054, -0.1133606136, 0.2477752417, 0.2131842822, -0.3699801266, -0.4927605689, 0.3212743998, -0.074011907, 0.0194722228, -0.0607549213, 0.4851862192, 0.1276384145, 0.0470059179, 0.240813449, 0.2430118322, -0.1895999759, -0.0786767453, -0.1897736341, 0.1530001163, -0.0485872962, -0.0438678674, 0.1317063719, -0.5761975646, 0.1176542267, -0.0184417702, 0.3553467989, -0.320558697, -0.3360753953, -0.0648012012, -0.1094542295, 0.0805430636, -0.0559897944, 0.0071816882, 0.1801805943, -0.3210012317, -0.0618893355, -0.0260088388, -0.1589973718, -0.3241133392, -0.0479485504, 0.2177027166, 0.0325052142, 0.1240166575, -0.2615479827, 0.0987490788, 0.4569671452, -0.1838754863, 0.0121200485, -0.0366270654, -0.1992596388, -0.1116065457, 0.0685284659, 0.7190662622, 0.0927180871, 0.0617561638, 0.4470206499, 0.220451057, 0.2396670878, -0.0346575789, -0.0303007476, 0.1947582066, -0.2161441147, 0.1940481067, 0.173850283, -0.6035791039, -0.001729472, 0.1910255849, 0.0441783629, 0.1295309365, 0.054736495, -0.3995581269, 0.4223297834, -0.3531525135, 0.1809348166, 0.4003559649, -0.0078087719, 0.042233672, -0.2097001374, -0.0094913719, -0.0592945069, 0.1407906711, 0.0956551507, 0.0371472687, 0.4447284043, 0.0195303559, 0.5081383586, -0.2271024287, -0.0435088426, 0.204464823, -0.0637107641, 0.0057086116, -0.0157998465, -0.2292636633, -0.10089688, 0.2268029749, -0.0385453738, -0.0186797343, -0.3047531545, -0.1203675345, -0.3363898993, 0.0941974223, -0.1724905223, -0.0096022747, 0.146828115, 0.0825055689, 0.1227490604, 0.2111048698, -0.2485475838, 0.2506259382, -0.3510065973, 0.1294385344, -0.5143996477, 0.2901624143, 0.0366381258, -0.180281356, 0.3910514414, 0.5273911357, 0.2063740641, -0.1315864772, -0.2450413853, 0.3295736909, -0.2906769216, 0.6357573867, -0.3684307039, -0.2102890164, 0.155636549, -0.3921348155, 0.1912714243, 0.1315573305, 0.2919701338, -0.1065118983, 0.2268298119, 0.1296586543, 0.0019440707, 0.0616180524, 0.1570880264, -0.0124360044, 0.3217047453, -0.0014805945, -0.1980582476, -0.3063355088, 0.6450026035, 0.218574062, 0.1565413028, -0.1052055359, -0.2416177243, 0.0593610927, 0.4993919134, -0.0996021852, -0.0267615076, 0.035702616, -0.0107224081, 0.0234231707, 0.0127147306, -0.1461622864, 0.1471956372, 0.0217034873, -0.1039541438, 0.0323545821, 0.0716076344, -0.3352051675, 0.3919107616, -0.1687843502, 0.0142022632, 0.4510240555, 0.0282915924, 0.0123840095, -0.3308025897, -0.1881504059, 0.0471753292, 0.0889909789, -0.5186876655, 0.0840453506, -0.2582146227, -0.272869736, -0.2343660891, -0.348108083, -0.0588168576, -0.101334177, -0.0612809137, 0.1418226957, -0.0765722916, 0.0614700504, -0.3226081431, 0.1384917796, -0.1622713208, 0.1579311341, -0.1613742709, -0.1625826806, -0.19525747, -0.0374631844, 0.4106935263, 0.2090359032, 0.1456122696, -0.3906175792, 0.0756682232, -0.1550294459, -0.1967248172, 0.1922615319, -0.007283425, 0.0445014797, -0.0962760672, -0.1030251235, 0.6314197183, -0.1873523593, 0.0774795488, 0.040375609, -0.0095926207, 0.4120473564, 0.102049768, -0.4308471084, -0.0713258386, -0.2392788082, -0.3840436339, -0.5113677382, -0.2183596045, 0.0891491622, 0.2631490529, 0.4002131522, -0.2125228941, -0.0471870676, -0.0296742041, 0.3316634893, -0.1299692839, -0.2295027524, 0.2037597448, -0.2909738123, -0.3221520483, 0.1063783467, 0.0682758987, 0.3978838921, -0.0266795028, -0.2990858257, 0.2009894103, 0.073692143, 0.0807963014, -0.1829185337, -0.0326646119, 0.1681962907, 0.06594491, 0.0074227983, -0.0765439123, 0.0337191336, -0.3264496326, -0.0253694002, -0.1287385374, -0.0559627004, 0.2026887089, -0.1725129783, 0.0619199388, 0.4852909148, 0.0982011855, 0.2867951393, 0.0515119359, 0.2136232853, 0.0147206364, -0.2460833341, 0.4707969427, -0.1930656731, -0.2243302166, 0.3553862274, 0.0529204123, -0.1348502487, -0.2152938694, 0.0723881945, -0.1209119856, -0.2952141464, 0.0524807759, -0.3898859024, 0.2485882044, 0.0668383315, 0.3902972639, 0.0765489191, -0.2069255412, -0.0084628398, 0.3520235419, 0.1568838805, -0.1251988709, 0.014238324, 0.1312191635, -0.4801467955, 0.344866246, 0.2102483809, -0.0640169159, -0.043295633, 0.2608808875, 0.0587282665, -0.151460737, 0.0913042799, -0.2261163741, 0.2672908008, 0.2079252601, 0.3854580224, -0.2534746826, -0.0441582054, -0.0180205069, 0.4818541408, -0.0801010802, -0.0459681712, -0.0982749686, 0.1211590245, 0.073156558, 0.1224752516, -0.0888519883, -0.1877177209, -0.2884796858, -0.3591706753, -0.3103107214, -0.2335228473, 0.0687820017, 0.3102967143, -0.131248191, -0.1198603734, -0.0953508019, -0.0344560109, 0.1942461133, 0.0822996199, 0.0921881497, -0.0752247646, 0.1156871095, -0.0131786214, -0.1346068978, 0.3768362701, 0.752692759, -0.1334385574, -0.5529476404, -0.1159122363, -0.3700482845, 0.0784898922, 0.4450322688, -0.2124754339, -0.1339323968, 0.0593461394, -0.0505468436, -0.3437482417, -0.2992711067, 0.050475385, 0.0993440896, -0.278415978, -0.5206421614, 0.4623550177, -0.1271225512, 0.0311398767, 0.1468498409, 0.0418170989, -0.347361207, 0.137285471, 0.0064521735, 0.9900813699, 0.2140820026, -0.1357928514, 0.0753418431, -0.2174910009, 0.0528733954, -0.2248953432, 0.1980189979, -0.2843385339, 0.0222396795, -0.1518353075, 0.2045907229, 0.2688499987, 0.0621273182, -0.2158530653, 0.1995506883, -0.0714001134, -0.2375726104, -0.0485024713, 0.003161503, -0.4199117422, -0.2580136359, -0.5787045956, 0.1172821224, -0.1179318875, 0.1192465946, -0.1189099848, 0.0359294154, 0.0455082171, -0.326695025, -0.4608326554, 0.375839442, -0.2024476081, -0.1504062563, -0.0577516779, -0.3814421594, 0.3199532032, 0.0561904125, 0.2504870892, 0.0391976014, -0.042942334, 0.1452630907, 0.19812195, -0.0339065157, -0.0243591089, 0.0854877681, 0.2385652065, -0.06631919, -0.1132119894, 0.2658360898, -0.0436588749, -0.1837544292, 0.255653441, 0.066129379, -0.0826183632, -0.0395170413, -0.0432816297, 0.0955179855, 0.1809805483, -0.0629985482, 0.1403062642, 0.1276889294, -0.2898814976, -0.0544115193, -0.1107424721, -0.2697610855, 0.0812906101, 0.2204325199, -0.0361851938, -0.0838952139, 0.4614356756, 0.4005635679, -0.2099895328, -0.1176223457, -0.3479478955, 0.1872600913, -0.5638507009, 0.0368574113, -0.000726697, 0.0062479693, -0.1586898565, 0.4170023799, -0.1392201036, -0.0937968045, 0.0625544041, -0.523226738, -0.0387309901, 0.1154572889, -0.0103502767, 0.0329319388, -0.0487525016, 0.0001442382, -0.2369752079, 0.1144795418, -0.3007833064, 0.1038624197, -0.2077764571, 0.1372834444, 0.4296365678, -0.0340135992, -0.1030203104, -0.2039479464, 0.1335909963, 0.3360124528, -0.1127493307, -0.1500054747, -0.0085570477, 0.1377923489, 0.0324159935, -0.0805122703, 0.0895497724, -0.050176844, -0.105763644, -0.193463847, 0.2179796696, 0.1474807262, 0.0261416323, -0.0277225468, -0.4482194483, 0.2940061688, -0.0006672119, 0.2398098856, -0.1485021561, 0.4302437007, -0.1185300499, 0.1239033192, -0.2088457495, -0.0353735164, -0.1150487363, 0.2561823428, -0.0961362198, 0.0655865669, 0.4363144338, -0.2451551557, 0.3256572485, 0.487193048, -0.0835472718, 0.3445188105, -0.4091550112, 0.0281194635, 0.0262619816, 0.2102447152, -0.1836768091, -0.0181143302, -0.4960897863, -0.0479395837, -0.0900045708, 0.2297486067, 0.1105231345, -0.3707813025, -0.2305625826, 0.0906377733, 0.4767541885, -0.0063166083, 0.2191637903, 0.0231050793, 0.049314633, -0.019285161, -0.0702998564, 0.2188106477, 0.0461868271, 0.2720302641, -0.4646323621, 0.3093926311, 0.2494730353, 0.1801013798, -0.0085309045, -0.441162914, 0.0482364967, 0.2103960961, 0.0852202326, 0.4002789557, 0.160991177, 0.1586004794, -0.1475253701, -0.1259339899, -0.1613468677, 0.0410663337, -0.0583179407, 0.047252845, -0.3145266473, -0.2136669606, -0.1724196225, -0.1043775603, -0.1697825342, 0.1193012595, 0.0753187016, 0.1556897163, -0.3476273119, -0.3463919163, 0.1377423555, -0.2096372992, 0.2447033077, -0.1253280938, 0.5787795782, 0.438213706, 0.0846361592, 0.425889492, 0.3017474115, 0.7615877986, 0.305841893, 0.053505078, 0.1927801669, -0.1810553521, -0.125063628, 0.1044054329, 0.3984233439, 0.0448813997, 0.3953411877, 0.0439627133, 0.186365813, -0.1380054355, 0.1443943232, 0.2655777931, 0.4306208491, -0.1914595068, 0.2662211061, -0.1739098728, -0.0572183132, -0.4198782444, -0.0946538523, -0.3771162927, 0.1363275796, 0.2699842155, -0.0920646638, 0.0951403379, -0.0083604883, 0.1025269851, 0.0740034282, 0.3087226748, 0.4034377635, 0.1357361823, 0.0255364813, -0.2081613541, -0.4297647476, 0.3247804642, -0.0908723399, -0.3741290271, -0.0666040331, 0.0824074224, 0.1919350624, 0.1155832857, 0.1238221079, -0.0432214923, 0.383332938, 0.0597242676, -0.1724220067, -0.0146095846, 0.2414142787, -0.0620329417, -0.3025850356, -0.3642934561, 0.0325729437, -0.2273192555, 0.0701557398, 0.0482756943, -0.0399629362, -0.0922598913, -0.2646710873, 0.3722174466, 0.0610684603, 0.2166766822, -0.3107421696, -0.2267271429, -0.366376847, -0.1446739137, -0.1545000374, 0.4856234789, 0.1616641581, 0.2741333544, -0.0787694454, 0.0253108852, -0.2682862282, 0.1879413873, -0.1179689318, 0.2693620622, -0.398327738, -0.0619250312, -0.1300140023, 0.0634809211, -0.0002445138, 0.2416365147, 0.0137256859, 0.0728772134, -0.1267947108, -0.6861602068, 0.4283365309, -0.5565597415, -0.4156656265, 0.0878275484, 0.6013881564, 0.0051166965, 0.0725320503, -0.64299196, 0.2427366078, 0.094825983, -0.2015711814, -0.1887479722, -0.0072777839, -0.1239596978, -0.1315534115, -0.0403239764, 0.0875856578, 0.261195153, -0.1649685502, 0.1641230583, -0.4080621004 ]
https://github.com/huggingface/datasets/issues/2678
Import Error in Kaggle notebook
@lhoestq I did, and then let pip handle the installation in `pip import datasets`. I also tried using conda but it gives the same error. Edit: pyarrow version on kaggle is 4.0.0, it gets replaced with 4.0.1. So, I don't think uninstalling will change anything. ``` Install Trace of datasets: Collecting datasets Downloading datasets-1.9.0-py3-none-any.whl (262 kB) |████████████████████████████████| 262 kB 834 kB/s eta 0:00:01 Requirement already satisfied: dill in /opt/conda/lib/python3.7/site-packages (from datasets) (0.3.4) Collecting pyarrow!=4.0.0,>=1.0.0 Downloading pyarrow-4.0.1-cp37-cp37m-manylinux2014_x86_64.whl (21.8 MB) |████████████████████████████████| 21.8 MB 6.2 MB/s eta 0:00:01 Requirement already satisfied: importlib-metadata in /opt/conda/lib/python3.7/site-packages (from datasets) (3.4.0) Requirement already satisfied: huggingface-hub<0.1.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (0.0.8) Requirement already satisfied: pandas in /opt/conda/lib/python3.7/site-packages (from datasets) (1.2.4) Requirement already satisfied: requests>=2.19.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2.25.1) Requirement already satisfied: fsspec>=2021.05.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2021.6.1) Requirement already satisfied: multiprocess in /opt/conda/lib/python3.7/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: packaging in /opt/conda/lib/python3.7/site-packages (from datasets) (20.9) Collecting xxhash Downloading xxhash-2.0.2-cp37-cp37m-manylinux2010_x86_64.whl (243 kB) |████████████████████████████████| 243 kB 23.7 MB/s eta 0:00:01 Requirement already satisfied: numpy>=1.17 in /opt/conda/lib/python3.7/site-packages (from datasets) (1.19.5) Requirement already satisfied: tqdm>=4.27 in /opt/conda/lib/python3.7/site-packages (from datasets) (4.61.1) Requirement already satisfied: filelock in /opt/conda/lib/python3.7/site-packages (from huggingface-hub<0.1.0->datasets) (3.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: certifi>=2017.4.17 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: chardet<5,>=3.0.2 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: typing-extensions>=3.6.4 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.7.4.3) Requirement already satisfied: zipp>=0.5 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: pyparsing>=2.0.2 in /opt/conda/lib/python3.7/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: python-dateutil>=2.7.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: six>=1.5 in /opt/conda/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas->datasets) (1.15.0) Installing collected packages: xxhash, pyarrow, datasets Attempting uninstall: pyarrow Found existing installation: pyarrow 4.0.0 Uninstalling pyarrow-4.0.0: Successfully uninstalled pyarrow-4.0.0 Successfully installed datasets-1.9.0 pyarrow-4.0.1 xxhash-2.0.2 WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv ```
## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1
322
Import Error in Kaggle notebook ## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1 @lhoestq I did, and then let pip handle the installation in `pip import datasets`. I also tried using conda but it gives the same error. Edit: pyarrow version on kaggle is 4.0.0, it gets replaced with 4.0.1. So, I don't think uninstalling will change anything. ``` Install Trace of datasets: Collecting datasets Downloading datasets-1.9.0-py3-none-any.whl (262 kB) |████████████████████████████████| 262 kB 834 kB/s eta 0:00:01 Requirement already satisfied: dill in /opt/conda/lib/python3.7/site-packages (from datasets) (0.3.4) Collecting pyarrow!=4.0.0,>=1.0.0 Downloading pyarrow-4.0.1-cp37-cp37m-manylinux2014_x86_64.whl (21.8 MB) |████████████████████████████████| 21.8 MB 6.2 MB/s eta 0:00:01 Requirement already satisfied: importlib-metadata in /opt/conda/lib/python3.7/site-packages (from datasets) (3.4.0) Requirement already satisfied: huggingface-hub<0.1.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (0.0.8) Requirement already satisfied: pandas in /opt/conda/lib/python3.7/site-packages (from datasets) (1.2.4) Requirement already satisfied: requests>=2.19.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2.25.1) Requirement already satisfied: fsspec>=2021.05.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2021.6.1) Requirement already satisfied: multiprocess in /opt/conda/lib/python3.7/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: packaging in /opt/conda/lib/python3.7/site-packages (from datasets) (20.9) Collecting xxhash Downloading xxhash-2.0.2-cp37-cp37m-manylinux2010_x86_64.whl (243 kB) |████████████████████████████████| 243 kB 23.7 MB/s eta 0:00:01 Requirement already satisfied: numpy>=1.17 in /opt/conda/lib/python3.7/site-packages (from datasets) (1.19.5) Requirement already satisfied: tqdm>=4.27 in /opt/conda/lib/python3.7/site-packages (from datasets) (4.61.1) Requirement already satisfied: filelock in /opt/conda/lib/python3.7/site-packages (from huggingface-hub<0.1.0->datasets) (3.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: certifi>=2017.4.17 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: chardet<5,>=3.0.2 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: typing-extensions>=3.6.4 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.7.4.3) Requirement already satisfied: zipp>=0.5 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: pyparsing>=2.0.2 in /opt/conda/lib/python3.7/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: python-dateutil>=2.7.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: six>=1.5 in /opt/conda/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas->datasets) (1.15.0) Installing collected packages: xxhash, pyarrow, datasets Attempting uninstall: pyarrow Found existing installation: pyarrow 4.0.0 Uninstalling pyarrow-4.0.0: Successfully uninstalled pyarrow-4.0.0 Successfully installed datasets-1.9.0 pyarrow-4.0.1 xxhash-2.0.2 WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv ```
[ -0.3157350421, -0.0831314325, -0.110972181, 0.1658832282, 0.1794454604, -0.0220795088, 0.3208148181, 0.2708317041, -0.028439695, -0.0525300987, -0.1436262727, 0.8592839241, 0.0922810435, 0.2378657758, 0.0209103487, -0.0479101799, 0.1613053977, 0.2256400436, -0.0434861705, 0.0514688082, -0.0643852577, 0.0771296769, -0.296068877, 0.2006766945, -0.0592489317, -0.3657686114, 0.1798946112, -0.014297124, -0.2524811625, -0.3473736346, 0.4036726654, -0.17204009, 0.1640073508, 0.3787459731, -0.0001087982, 0.0669420883, 0.3618469834, -0.0291197989, -0.3702858984, -0.1077229232, -0.217608273, -0.6008004546, 0.0832869112, -0.2847101092, 0.4702088237, -0.2857752144, -0.2630594969, -0.1921923161, 0.2056123018, 0.1816900074, 0.2206499577, 0.4774709642, 0.4807040393, 0.0092316307, 0.277254492, -0.1289514154, -0.2072615027, 0.302177757, 0.2401314229, -0.2112717927, 0.116625309, 0.1265562475, -0.0676917359, 0.0300701577, 0.1025224626, 0.0168168899, -0.1558163464, -0.3838818371, -0.0678934306, 0.0581074767, 0.4930505753, -0.5021781325, -0.2771857679, -0.123867467, 0.114054054, 0.0022395817, 0.1400087178, 0.1730056107, -0.0677027702, -0.0962275341, 0.2432509661, -0.2378111482, -0.265163213, 0.1864017546, -0.1860895306, 0.4596528709, -0.0485249348, 0.0963280722, 0.2849807739, -0.1344874948, 0.6502165794, -0.0968685672, -0.1329705417, 0.1146483794, -0.4117366374, 0.0971319973, 0.0104091624, -0.0425877236, 0.1165606678, 0.1059473455, 0.1066146195, 0.1188910678, 0.0963280872, 0.3061641157, 0.078159906, 0.3834522069, 0.0288378894, 0.3633151352, 0.2639468014, 0.2905313671, 0.2459657937, -0.0625747293, -0.0748767033, -0.3948989511, 0.0809106305, -0.0593818538, 0.2644909322, 0.1566992551, -0.4245138466, -0.0065866122, -0.2908204496, -0.0526707657, 0.000586757, 0.1260780394, -0.2189188749, 0.1570492834, 0.153925851, 0.1813416034, -0.1178863645, -0.0593994148, -0.1201268286, 0.3064024448, -0.021891078, -0.2258307189, 0.0449589938, -0.2936347723, 0.2442829758, 0.0245811436, 0.2295258194, 0.1750357747, 0.1705326438, -0.1257321984, -0.191940546, 0.3506008089, 0.0321081541, 0.1153930277, 0.127772063, -0.3931869268, -0.1246997789, 0.0788088739, -0.1662567407, -0.0804766044, -0.2768649757, 0.1809961647, -0.2906899452, 0.0514248759, -0.5761380792, -0.2516324818, 0.0038181052, -0.0501182973, -0.004398616, -0.1965855658, 0.2344310284, -0.2544777095, 0.2506343424, 0.0534615256, -0.3594921529, 0.0474448167, -0.2210425287, -0.2070469409, -0.0644447431, 0.1289324909, -0.2450415045, 0.1776165813, -0.2288636714, 0.1348492801, 0.6730281115, -0.6061069369, -0.5256842375, 0.0257645547, -0.0934762731, 0.0148919197, -0.01301968, 0.0944574848, -0.1029907614, 0.2157651633, 0.067737937, 0.1622850597, -0.0314899385, -0.1910270751, -0.2592287958, -0.2871658802, 0.0578859635, 0.180664748, 0.0925270393, -0.2924070656, 0.1847912669, -0.1539339721, 0.0381948538, 0.0600381419, 0.1202748716, 0.0565656722, 0.3603726625, 0.0527841561, -0.0124018081, -0.1248257086, -0.2917068899, 0.2685142159, -0.1398259103, 0.0348940752, -0.4064067602, -0.083243981, -0.3611125648, 0.3012941778, -0.2173995823, 0.0525478683, 0.1697993577, -0.1237364486, 0.0105000492, 0.3521026075, -0.0077054426, 0.3821053207, 0.1918430179, 0.1550072134, -0.3192882836, 0.3061143756, -0.3814663291, -0.1457505375, 0.0615458749, 0.1301293522, -0.1030456498, 0.0251289774, -0.0443164334, 0.1139589846, 0.0772134066, 0.0239460394, 0.0102999276, -0.2309055775, 0.1762901098, -0.3153471947, 0.1356555223, 0.1335418373, 0.3049319685, 0.0928745866, 0.0961890668, 0.0953046158, -0.0592509173, -0.095797807, 0.0148669388, 0.2575812936, 0.2067648023, 0.2018834949, 0.0612243526, -0.1222231463, 0.1843214035, -0.0238399245, 0.1030388698, -0.0872513801, -0.1367314309, -0.0239381418, 0.3600414097, 0.0096612014, 0.1436844617, 0.0097314492, -0.3445080817, 0.2186193317, 0.2709664106, 0.0152540682, 0.3870507777, 0.2118289173, -0.2134578675, -0.0735059604, -0.051098235, -0.1095043868, 0.1225211844, 0.3149386942, 0.3916873336, 0.1771175861, 0.2458559126, -0.0654154718, 0.0114168525, -0.259693712, -0.0427030325, 0.2147677094, -0.1877252609, 0.2559343278, -0.2284221202, -0.2371327579, -0.1627315134, -0.1992759109, 0.0117196739, -0.404358983, -0.2368008792, 0.2449381351, 0.1685372889, 0.1849229038, 0.1470609754, -0.1181396246, 0.0749963224, -0.2854743004, -0.2432314456, -0.3484168947, -0.3759357333, 0.1030786037, 0.3510780334, 0.1604799628, 0.2290235609, -0.1745555997, 0.2487833202, -0.4051178992, -0.4474341869, -0.2108636051, -0.0932770446, 0.4236426353, 0.2669568956, 0.1613871306, -0.2377538085, -0.2812203467, 0.3301024437, 0.1585972905, -0.2695576251, 0.1333747208, -0.1104923487, -0.2200866789, 0.0303355642, -0.3240671158, -0.3991327584, -0.4153462648, 0.310141027, 0.1853810251, -0.1316487193, -0.1519120634, 0.3288981318, 0.2101772875, 0.1746780425, 0.0226538181, 0.0737201273, 0.2688192129, 0.5995610952, -0.1175564155, -0.4101838171, 0.2229814529, -0.2326620966, 0.3032901585, -0.0754956827, -0.4256074131, 0.0147364447, -0.173968941, 0.6500646472, -0.2176859528, 0.2231080532, 0.1810688376, 0.2036799937, 0.0705053881, -0.1243863851, -0.2514393926, -0.1216404215, -0.1191995814, 0.0573348776, 0.0553836487, 0.1176578775, 0.0425806418, 0.5509261489, 0.0537306517, -0.0652403161, 0.2583054602, -0.0818951502, 0.2138425261, 0.0764959008, -0.4019142389, -0.0495567471, -0.1408324838, 0.2763574421, -0.1539871395, -0.2508073747, -0.218605265, -0.3311210573, -0.1756259501, -0.1506526023, -0.1933947653, 0.0008878479, -0.1569964439, 0.0058023822, 0.0806927606, -0.0736644194, -0.188208133, -0.1347943842, 0.1647775024, 0.0307285041, -0.3172053099, 0.1159442812, -0.3461393714, -0.4914354086, -0.1553009152, 0.3025519252, 0.1290161014, 0.2815118432, 0.1602948457, -0.1667503417, 0.0705200508, -0.1935518682, 0.4416455328, -0.0341810547, -0.2406101376, 0.249584645, 0.2823727727, -0.7925556898, -0.3175822198, -0.2055812478, 0.0780889764, 0.1872675568, 0.1108766273, -0.2535761595, 0.1550151706, -0.0309470817, 0.4460532367, -0.0348790139, 0.0585271567, -0.4713843167, -0.4379482269, -0.3892827928, -0.1156110466, -0.0409339108, 0.3213145733, -0.0254291762, -0.0410626009, -0.2078597993, -0.0732216686, -0.1497963667, 0.292575717, 0.2251966894, -0.1615437716, 0.2594017684, -0.108429417, -0.042469684, 0.4509440362, 0.4091888368, 0.0962643176, -0.7135211825, -0.1644944251, -0.0819562301, 0.1051103845, -0.16934596, -0.1602804661, 0.14341712, -0.0038492312, 0.0208182614, 0.0615008883, 0.0626362264, 0.1762912571, 0.1478818059, -0.1285623014, -0.1909572929, 0.4781820774, 0.3002482355, 0.0286420174, 0.4108395875, 0.0258859638, -0.1477503777, 0.0995121896, 0.1331347525, 0.6035116315, 0.0099609578, 0.0515035018, 0.5848053694, -0.3137618005, 0.5632758141, -0.1316949427, 0.0393744037, -0.4316041768, -0.2410880327, -0.0023160158, -0.3130733073, 0.3180981278, -0.3315043449, -0.2583667934, 0.0785930082, -0.2612190545, 0.1756117791, 0.1027450189, 0.1611454189, -0.3093280196, -0.0600256063, -0.1455915868, 0.1129978001, -0.1309087276, 0.2148077488, -0.0661608502, -0.0331405848, -0.5395656228, -0.1773793846, -0.1691559404, 0.0144572314, -0.2888350487, 0.5264726281, 0.1666901261, -0.3203052878, 0.342761308, 0.4244214296, 0.2471301109, 0.0057721194, -0.0455859043, 0.0889881402, 0.208577469, -0.2371682674, 0.2529142797, 0.0462158918, 0.2042732239, -0.1563988775, -0.3190074563, 0.4772299528, -0.0846555308, -0.0295609329, 0.0000970181, 0.4971589148, 0.1131918505, -0.121727787, -0.1202552095, -0.1595297903, 0.1249535531, -0.1015984491, 0.1322087348, 0.1119275391, 0.0466099679, 0.4556714594, -0.1267767549, 0.0519725755, -0.0274903513, 0.2234772742, -0.1149353608, 0.0620303787, 0.212306127, 0.0696588084, -0.3292405903, -0.1683602631, 0.1508703232, -0.1530788541, -0.3438257873, 0.0077215494, 0.1318707913, -0.0082272645, -0.2520037293, 0.3728192747, 0.2031214684, -0.1084893495, 0.1279938817, -0.4349559546, -0.2474519461, 0.3484539092, -0.0220287871, -0.117876865, 0.2887566686, 0.0877576172, -0.0058840425, -0.0320910588, -0.2641661465, 0.1931817234, -0.3227641881, -0.0316982456, 0.1425732672, 0.1127645746, 0.0105732875, -0.0856631026, 0.1398328096, 0.0461562537, -0.0437212959, -0.256709367, -0.0659088343, 0.0574808344, -0.0343530551, -0.1474079937, 0.0741344243, -0.2643932104, 0.0659727156, -0.0042305668, -0.0947166383, 0.0316514596, -0.1309351772, 0.0467782281, -0.0807714015, 0.1194449589, -0.2579266727, 0.2794896662, -0.1730120331, -0.0186983813, -0.0069068484, 0.2252323031, 0.2478505522, 0.1844673008, -0.0095566399, -0.1614100337, -0.2980035841, -0.0180741306, 0.2375543416, -0.3787603378, 0.1076793, -0.0900492892, 0.0517657697, 0.5189224482, -0.2699651718, 0.0082833087, 0.3809460402, 0.1989726126, -0.4422297478, -0.3729234636, 0.1786097139, -0.0709993765, -0.0171531942, 0.0885272846, 0.2025185972, -0.0804912597, -0.0201548599, 0.2654152811, 0.1258958578, -0.1370829046, 0.3140000403, 0.4234543145, -0.0378350839, 0.0232164189, 0.2812749445, 0.2963756025, 0.1855884194, 0.4047456086, -0.3500567973, 0.0282888543, -0.0369498096, 0.1045034304, -0.0547992811, -0.2855790854, -0.0532269739, -0.0571667776, -0.1070988625, -0.1845391095, 0.1097597182, 0.4301121831, 0.0574705191, 0.0307854451, 0.0520782284, 0.0177020207, -0.1023801491, 0.2919911146, -0.0336428061, -0.1272791028, 0.132156536, -0.0617208406, 0.1519882977, -0.2190748006, 0.3816209733, 0.2350087911, -0.2098594308, -0.2127113938, 0.2184396535, 0.4200309217, 0.0760441273, -0.1324735582, -0.10672874, 0.2407666743, -0.1935667247, -0.3823975027, 0.2315098941, 0.6090105176, 0.3060407639, -0.2581609488, 0.1225212365, 0.0871992856, -0.1709100902, -0.0398904793, 0.0745103955, 0.131511718, 0.0693417862, 0.2778826356, 0.2114033997, -0.1768909544, -0.0950513855, 0.1358906925, 0.1936739534, -0.1657046378, 0.1618967652, -0.3206715882, -0.2677469552, -0.0531424843, 0.048150789, -0.2507854998, 0.4375474155, 0.2409531623, 0.2532979548, 0.031425003, -0.3065513372, 0.0889737979, 0.0574389435, 0.4528075457, 0.2309443653, 0.3824344277, -0.1360666007, -0.1408258975, -0.5310810208, 0.0665638, -0.0521800593, -0.301004231, -0.0128994808, 0.0071575618, -0.0645844713, 0.2349256128, 0.1780210882, 0.0269658081, 0.3565103114, 0.1520019472, -0.3744759858, -0.3461715877, 0.3202925622, -0.1987848431, 0.0454252027, -0.3909823, 0.0537330657, -0.3766959906, 0.1434803903, -0.3492605388, -0.0599463955, 0.2764987051, 0.093533054, 0.5667529106, -0.0021584253, 0.5926169157, 0.1934983432, 0.096765548, -0.0043814885, -0.1707553566, -0.1537618488, 0.2509749234, 0.1735659838, 0.1745195389, -0.2626298666, -0.0890752226, -0.1791505516, 0.404606849, 0.2431994826, 0.1485373825, -0.0523444265, 0.0902899057, -0.0300601013, -0.0034674145, 0.0776305422, 0.0713856295, -0.1739754379, 0.1392738819, -0.3855037391, -0.4081262052, 0.2425970584, -0.225049153, -0.2957755327, -0.0146501502, -0.0010496331, 0.0575171821, -0.0983296335, -0.3163693845, 0.0118405772, 0.3954786956, -0.0599403679, -0.224461779, 0.305788517, 0.1292083263, 0.0564278848, -0.0965940505, 0.4190945327, -0.1479632854, -0.1125378087, 0.0788376033, -0.1065109298 ]
https://github.com/huggingface/datasets/issues/2678
Import Error in Kaggle notebook
You may need to restart your kaggle notebook after installing a newer version of `pyarrow`. If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail
## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1
37
Import Error in Kaggle notebook ## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1 You may need to restart your kaggle notebook after installing a newer version of `pyarrow`. If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail
[ -0.3392024338, -0.0755515173, -0.114092052, 0.1258437485, 0.2003503591, 0.0130887469, 0.3512436152, 0.3286039829, -0.030617414, -0.0346203335, -0.1804618388, 0.8273154497, 0.0816760883, 0.2334336936, 0.0459382161, -0.0699089319, 0.1140711382, 0.2013819665, -0.049039986, 0.0703778937, -0.117843695, 0.0834917724, -0.2884143591, 0.2321555167, -0.0584076084, -0.3381467164, 0.1671689451, -0.0141576668, -0.2430083305, -0.379045248, 0.3784845471, -0.1966230273, 0.1817373633, 0.3294720352, -0.0001053689, 0.0604675002, 0.3373242617, -0.0124660172, -0.3102437556, -0.1045581549, -0.1442510188, -0.5257627368, 0.1028594747, -0.3128522635, 0.4279820025, -0.3194993734, -0.2402215749, -0.1276632845, 0.2308554798, 0.1961776763, 0.2656954825, 0.4633554816, 0.4862202704, 0.0011487815, 0.3741645515, -0.1143621877, -0.1743798852, 0.3628070354, 0.2402816713, -0.2248288989, 0.050084874, 0.1181877702, -0.050972566, 0.0626081601, 0.1312724352, 0.0576720051, -0.105300948, -0.369454056, -0.0583919734, 0.0525118113, 0.5115423203, -0.5075424314, -0.2177435309, -0.0814533755, 0.1224679947, -0.0286665671, 0.1378104836, 0.2050575018, -0.0501828901, -0.1210189313, 0.2834640443, -0.2121218443, -0.2584420145, 0.2005664259, -0.1483707279, 0.4371286631, -0.0406339169, 0.0960496068, 0.2935905457, -0.1535813361, 0.607909441, -0.0881312639, -0.1116075516, 0.1210279316, -0.3806028962, 0.1239959002, 0.0679239258, -0.0673968717, 0.0992072374, 0.0918953717, 0.0935984552, 0.1550541967, 0.1212946326, 0.3166662455, 0.1174942851, 0.3261027336, 0.016600024, 0.2997160256, 0.286474973, 0.3017309308, 0.1729278713, -0.0800278112, -0.0747303963, -0.3969316185, 0.127008304, -0.0698431581, 0.3046585321, 0.1747570336, -0.346657753, -0.0529747196, -0.3350791037, -0.0637519583, -0.0116903186, 0.1123063564, -0.2094090879, 0.1152169108, 0.1874993145, 0.1460002661, -0.1666170806, -0.0682869703, -0.1521495879, 0.3062852621, -0.02519002, -0.2267778814, 0.0288293995, -0.3074622452, 0.1900966913, 0.0459269546, 0.2293921858, 0.1597655565, 0.1890350282, -0.112343058, -0.2045968026, 0.3003135622, 0.0601034388, 0.0712900013, 0.1299433112, -0.4086230099, -0.1351535767, 0.1063650325, -0.2069545239, -0.1117256433, -0.2594720125, 0.2262056917, -0.2221554071, 0.0504625812, -0.5596431494, -0.2054490596, -0.0173047706, -0.0858521909, 0.0026642559, -0.2396205515, 0.2015482336, -0.2670943737, 0.2504833341, 0.0302173421, -0.3585842848, 0.0127392197, -0.2459341437, -0.2216097862, -0.0705784708, 0.1604955941, -0.2848050594, 0.1845772117, -0.226440981, 0.1887180209, 0.6346995831, -0.5204715729, -0.4979522228, -0.0186403468, -0.1067587733, -0.0413651951, -0.0616749004, 0.117345728, -0.1233745441, 0.2213110924, 0.059505187, 0.1761829555, -0.0356127545, -0.1629242003, -0.2430761456, -0.250973165, 0.1073992923, 0.1639562994, 0.0860651731, -0.3046606183, 0.1918821782, -0.1370868236, 0.0781926736, 0.048336193, 0.0952313989, 0.0352377631, 0.366160959, 0.0145554664, 0.0464882739, -0.1311743557, -0.2734666765, 0.2382602543, -0.1955823451, 0.0514373481, -0.3236399889, -0.0954128876, -0.3622354865, 0.2734936178, -0.2208878696, 0.0895871893, 0.2002180517, -0.1121828184, -0.0092322724, 0.3617270589, -0.0242018756, 0.2681078613, 0.1552402675, 0.1296824813, -0.334186554, 0.3652009368, -0.383428961, -0.1805645227, 0.107780166, 0.1040868312, -0.1019412577, 0.0380609892, -0.0430635139, 0.1366349161, 0.0826365426, 0.0447761603, -0.0120108547, -0.1960675269, 0.1563978195, -0.3880774081, 0.0727497861, 0.1435053796, 0.3162693083, 0.0837145597, 0.0832009092, 0.129673034, -0.0675328746, -0.0983569846, 0.0049289912, 0.2275877893, 0.1567100435, 0.186884135, 0.1146122366, -0.098697789, 0.1540548652, -0.0639604479, 0.0871819779, -0.0876764283, -0.140979737, -0.0280206688, 0.4053033888, 0.0233539343, 0.1808372587, 0.0304347854, -0.3962772787, 0.1644175798, 0.2427370697, -0.0300167575, 0.3535703421, 0.2256229818, -0.205658108, -0.041272413, -0.0282235425, -0.1469459534, 0.1339504868, 0.2999611795, 0.3659515381, 0.1645156741, 0.269711405, -0.087152198, -0.0774468109, -0.2046925724, -0.0653678626, 0.2356108576, -0.1783069968, 0.2326025516, -0.2168601751, -0.2743116021, -0.1611234099, -0.1632226706, -0.021598231, -0.4483353794, -0.2108485848, 0.2484635115, 0.1435388476, 0.1773295701, 0.1788652688, -0.1151914448, 0.0936762244, -0.2396898717, -0.2538068593, -0.4000020921, -0.3790816069, 0.1432715207, 0.325719595, 0.1581730396, 0.2266280353, -0.151905939, 0.2532316148, -0.4079258442, -0.470117867, -0.2024703324, -0.0813918337, 0.3739663959, 0.2682346404, 0.1427750736, -0.253234148, -0.3090759516, 0.3830124438, 0.0678420886, -0.2730146945, 0.1693324596, -0.1098785773, -0.1784489602, 0.0253320094, -0.357175082, -0.3664131165, -0.4171210229, 0.3046452403, 0.1833467931, -0.1222847104, -0.1501722336, 0.2870305777, 0.238640964, 0.1402598768, -0.0331913754, 0.0438462347, 0.2569077313, 0.5885712504, -0.118547678, -0.4215680659, 0.2081317455, -0.2530040741, 0.2879259288, -0.1212993041, -0.4119748175, 0.0059752944, -0.1581649184, 0.6464039683, -0.1937624514, 0.226253584, 0.1384780705, 0.1883796751, 0.0149807688, -0.0934889093, -0.2597444355, -0.1256244034, -0.0381725729, 0.0162672512, 0.0328300595, 0.1183336005, 0.0268893018, 0.5717332363, -0.0252747983, -0.0560586229, 0.2782264948, -0.1158827171, 0.2086123228, 0.0487819575, -0.3988293707, -0.0288760848, -0.1440941393, 0.2643159628, -0.1259355396, -0.2704823911, -0.2474967092, -0.2997134924, -0.2148071527, -0.1263628602, -0.2221946716, -0.0054585459, -0.0757264271, 0.010881505, 0.0595685914, -0.1000432223, -0.2002984434, -0.1745502949, 0.2006660402, -0.008293882, -0.2806135714, 0.101286754, -0.3764594197, -0.4813115895, -0.1698220223, 0.3195928037, 0.1419185102, 0.2067779899, 0.1361559927, -0.1811806113, 0.0918797031, -0.195546329, 0.3912836611, -0.0000507029, -0.1831401289, 0.2893386185, 0.2120577395, -0.794005096, -0.2984022498, -0.216844216, 0.0245927796, 0.1518410146, 0.0556015037, -0.2358745635, 0.182549268, -0.0067503136, 0.4255687892, -0.0520752892, 0.0466571897, -0.4544198811, -0.4137456417, -0.3685896397, -0.1270062774, -0.0514202416, 0.3349299133, 0.0022668496, 0.0053241239, -0.1855455041, -0.1119640693, -0.1576915532, 0.2670357227, 0.2146256566, -0.1115879342, 0.2346787155, -0.1138721704, -0.0742618367, 0.4554013014, 0.4173568189, 0.120676972, -0.7068607211, -0.1579632908, -0.1026354656, 0.0967424884, -0.2202052176, -0.1588291973, 0.1977933943, 0.0221882071, 0.0437976532, 0.0417436473, 0.0806979164, 0.1985221058, 0.0862325653, -0.0655689538, -0.1619854569, 0.4999955893, 0.2260813117, 0.0486237109, 0.4143022299, 0.0146006308, -0.1390304118, 0.092745848, 0.1526042074, 0.58715868, -0.0301653203, 0.0560950115, 0.5907444954, -0.3014118671, 0.551314652, -0.123046048, 0.0741300732, -0.4628842473, -0.2247705311, 0.0055090319, -0.3155347705, 0.296949923, -0.3124720454, -0.2542788088, 0.0329560749, -0.2659887075, 0.2080369592, 0.055377949, 0.1781306714, -0.2830356061, -0.0118618673, -0.1498600692, 0.1494501233, -0.1639212966, 0.1959713846, -0.0625470951, -0.0502741858, -0.4486037195, -0.1684481055, -0.1643161774, 0.044163812, -0.2691606879, 0.5237215757, 0.1890530139, -0.3010550141, 0.3148766756, 0.3913817406, 0.1751129329, -0.0387776196, -0.0569794513, 0.1074404195, 0.161620453, -0.2480657548, 0.2128369659, 0.0806435645, 0.2055584341, -0.1866949648, -0.3298459351, 0.5272291303, -0.0452226177, -0.035511259, -0.0341982134, 0.4944120646, 0.1025409549, -0.1520352811, -0.0937953889, -0.1552093029, 0.0723394528, -0.1172851175, 0.1601324826, 0.1095341295, 0.058740966, 0.4139998555, -0.1057188734, 0.026906224, -0.0296008494, 0.2540782392, -0.1155895069, 0.1067098081, 0.2500082254, 0.1303191334, -0.3078186214, -0.1945816427, 0.1806533337, -0.062214233, -0.3541779518, 0.0479424112, 0.1496586949, 0.1058174148, -0.2028281838, 0.3725809157, 0.153396681, -0.1213789508, 0.1287825853, -0.3833634257, -0.2656588554, 0.3385193944, -0.0090030236, -0.1103966832, 0.2926874161, 0.0781987607, 0.0313310735, -0.0062161293, -0.3084301353, 0.2052085251, -0.3302122653, 0.0083813919, 0.1011927128, 0.0794141516, -0.0308857821, -0.0641282201, 0.1722777635, 0.0438545868, -0.086353831, -0.2966592908, -0.0732492954, 0.0432247482, -0.0479830354, -0.1568136215, 0.0791951269, -0.2420345992, 0.0501919426, -0.0129743675, -0.0702724084, 0.0301930327, -0.1627746969, 0.0894445106, -0.0856827945, 0.0408187732, -0.245351851, 0.2226583213, -0.1917176247, -0.0080787381, 0.0023848403, 0.1824352443, 0.265345782, 0.1451666802, -0.0172720831, -0.1375803947, -0.3005639017, -0.0740326121, 0.253013432, -0.3708565533, 0.0302674435, -0.1211545542, 0.0681601912, 0.4832295477, -0.2564838231, 0.0227946825, 0.3177838027, 0.2227730602, -0.4727801085, -0.3402056396, 0.1669093072, -0.0276110955, -0.0059125079, 0.0402584188, 0.1804121584, -0.0214569569, -0.0464727432, 0.2500552833, 0.1249821559, -0.1655673534, 0.279720217, 0.4209263921, -0.0494950153, 0.0264378767, 0.2675213814, 0.2963809073, 0.2045336664, 0.3570424318, -0.3276481926, 0.0601755157, -0.0562297292, 0.0378399566, -0.0056672478, -0.313868165, -0.108388342, -0.0105360784, -0.1038448662, -0.1855695546, 0.1291917711, 0.4432270229, 0.1279407293, 0.0593538955, 0.0844722986, 0.0607650131, -0.1108182445, 0.2886044681, -0.0729117468, -0.10204155, 0.0874913856, -0.0401767194, 0.1214725226, -0.2050822824, 0.4082724154, 0.2422350496, -0.1969596446, -0.2069229484, 0.2036919594, 0.4047403336, 0.0780595616, -0.141616568, -0.1425930262, 0.2495487928, -0.1884702891, -0.3304870427, 0.227660954, 0.5777513981, 0.2577287257, -0.2740431726, 0.1154705808, 0.0717174634, -0.174336344, -0.0180988032, 0.0540500283, 0.1704167873, 0.1248133034, 0.2793816328, 0.2489602864, -0.1899067014, -0.1014502496, 0.1192903817, 0.1714864522, -0.1778186262, 0.1440207213, -0.3029227257, -0.2679336667, -0.0933260098, 0.0538844764, -0.2071689963, 0.4015532434, 0.2685336173, 0.2801019847, 0.0139478259, -0.3120485544, 0.1121474057, 0.051715564, 0.4743933082, 0.2438857555, 0.3920077384, -0.1502234638, -0.1226660982, -0.50427562, 0.1037852317, -0.0440826975, -0.3021403849, 0.0058270902, 0.0311485361, -0.0386295542, 0.2410344929, 0.2164309323, -0.0111484388, 0.3305138946, 0.1124736518, -0.3594216704, -0.2880425751, 0.3069211841, -0.201365307, 0.0282323174, -0.3520439565, 0.094291158, -0.405305177, 0.1781674027, -0.3622367978, -0.1047143862, 0.2711574435, 0.1081956401, 0.5927200913, -0.0197989438, 0.5346364975, 0.1709815711, 0.1650642604, 0.0199483894, -0.2127308398, -0.1448094398, 0.2392464131, 0.1270065606, 0.2343883216, -0.2212747037, -0.0960160792, -0.2016212195, 0.4118447304, 0.2190939188, 0.1606913209, -0.0283429399, 0.0924783349, -0.0056444607, -0.025082944, 0.0812169835, 0.056882333, -0.1496457458, 0.1283643097, -0.3866488636, -0.4248795211, 0.2752147913, -0.2176071405, -0.3154252768, -0.0374937393, 0.0134214293, 0.1010607481, -0.1023400128, -0.3162207603, 0.0120668914, 0.4264297783, -0.0359580964, -0.2100613564, 0.2819170654, 0.1119936183, 0.1220195144, -0.0898989514, 0.3843320012, -0.0953408852, -0.1146393418, 0.0220283195, -0.1456836462 ]
https://github.com/huggingface/datasets/issues/2678
Import Error in Kaggle notebook
> You may need to restart your kaggle notebook before after installing a newer version of `pyarrow`. > > If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail It works after restarting. My bad, I forgot to restart the notebook. Sorry for the trouble!
## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1
57
Import Error in Kaggle notebook ## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1 > You may need to restart your kaggle notebook before after installing a newer version of `pyarrow`. > > If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail It works after restarting. My bad, I forgot to restart the notebook. Sorry for the trouble!
[ -0.3438678086, -0.077080369, -0.1142193526, 0.1320917755, 0.1916217208, 0.0109462254, 0.3406417668, 0.3310462236, -0.0405513309, -0.0315703414, -0.1770030409, 0.8259584308, 0.0784069076, 0.2167555094, 0.0422965325, -0.0751288161, 0.1151350588, 0.2059999555, -0.0540337972, 0.068414785, -0.1204730719, 0.0821904019, -0.2884452045, 0.2308667004, -0.0536757857, -0.3353977799, 0.1634014845, -0.0156411268, -0.2512480617, -0.389315933, 0.3791487515, -0.2030483484, 0.1786521822, 0.3298628628, -0.0001054691, 0.0557772815, 0.333119452, -0.0016957953, -0.3189185262, -0.0971902162, -0.1449752599, -0.5241270661, 0.1139847562, -0.3169448376, 0.425288856, -0.3302153647, -0.2376512289, -0.120702371, 0.2349158227, 0.2009017617, 0.2643294632, 0.4617818892, 0.4861876965, -0.0043763937, 0.3844994605, -0.1263225079, -0.1678391099, 0.3752985299, 0.2364215702, -0.2263900638, 0.0413374156, 0.1175254583, -0.0614102632, 0.0632826611, 0.1276655942, 0.0492597185, -0.1038789824, -0.367446512, -0.0683318749, 0.0503971428, 0.5075065494, -0.5111192465, -0.2169642299, -0.0854614079, 0.1243207753, -0.0331042595, 0.1380393505, 0.201697126, -0.0535896756, -0.1101544574, 0.2808270454, -0.2064094096, -0.2585774362, 0.1937159002, -0.1518905461, 0.4403883517, -0.038748078, 0.0953778848, 0.2886867821, -0.1460983008, 0.6073458195, -0.0855476484, -0.120350346, 0.1216696873, -0.378759712, 0.1202812642, 0.0683317855, -0.0643593743, 0.097034812, 0.0882157683, 0.0919665843, 0.1456046253, 0.1305029839, 0.3127406538, 0.1170409918, 0.327209264, 0.0092065642, 0.2912881672, 0.2798188031, 0.2912293971, 0.1691600084, -0.0766245201, -0.0699370056, -0.3918394446, 0.1344004422, -0.0694813132, 0.312677443, 0.1718909591, -0.3556834757, -0.0494574867, -0.3413332403, -0.0610720925, -0.0187457446, 0.1171981171, -0.2134623528, 0.1104206964, 0.1844512075, 0.1440460086, -0.1670673043, -0.0719212443, -0.1517759264, 0.304597795, -0.0294001326, -0.2297070026, 0.0208936855, -0.3086884618, 0.1870204806, 0.0515804738, 0.2191487402, 0.1520772725, 0.1907953769, -0.1156798527, -0.1989660263, 0.3034534454, 0.05972936, 0.0751622021, 0.1255253255, -0.4011130631, -0.1294811517, 0.109020941, -0.2078447193, -0.1130267084, -0.2632017434, 0.2298654169, -0.2152013183, 0.0539016277, -0.5561851263, -0.204221949, -0.0161545258, -0.0957035497, 0.0088539263, -0.2448433787, 0.2065390795, -0.2754350901, 0.243639037, 0.037997406, -0.3599003851, 0.0196821187, -0.2543708086, -0.2262233943, -0.0632981881, 0.1592007577, -0.2863208354, 0.1953848004, -0.2295817733, 0.1917758286, 0.6380630136, -0.5143752098, -0.4943229258, -0.0183399972, -0.1120878384, -0.0296251457, -0.0569068231, 0.1142121479, -0.1233816147, 0.2207448035, 0.0638165846, 0.169917196, -0.0314437374, -0.1549660563, -0.2469739765, -0.2476422638, 0.1074167192, 0.1619286835, 0.0861111507, -0.3101316094, 0.1939122677, -0.1340430379, 0.0820697173, 0.0488970131, 0.0861349106, 0.0410350487, 0.3639852703, 0.0073457919, 0.0412800312, -0.1453770548, -0.2789384127, 0.2334987223, -0.2037812918, 0.0433855876, -0.3181881607, -0.0976251885, -0.3575015366, 0.2770491838, -0.2133726031, 0.0811752155, 0.201509431, -0.105271481, -0.0017691926, 0.3523831069, -0.0231054574, 0.2652154267, 0.1516370177, 0.1324870586, -0.3389768302, 0.3570477962, -0.3791426122, -0.1911286712, 0.1065431982, 0.1010328382, -0.0990492254, 0.0375524573, -0.0400209539, 0.1391090453, 0.0869650468, 0.0505163446, -0.02996777, -0.197322458, 0.15610452, -0.3874384761, 0.0762954578, 0.1411545873, 0.3138979971, 0.0901012942, 0.0919348672, 0.1251189709, -0.0571355, -0.1056846678, 0.0100073433, 0.2146951407, 0.1489283442, 0.1847998053, 0.1219902039, -0.0952656716, 0.1637495756, -0.0575593077, 0.0876645893, -0.083124198, -0.1441521347, -0.0253732335, 0.4067186117, 0.0275044329, 0.1840656847, 0.02934446, -0.3974840939, 0.1613838226, 0.2377910912, -0.0388256311, 0.3521711826, 0.2281311303, -0.2038655728, -0.0367027149, -0.0257222429, -0.1459669024, 0.1384557188, 0.299180001, 0.3653387725, 0.1721171141, 0.2751637399, -0.0793752521, -0.0749896169, -0.20255588, -0.066261299, 0.2388168871, -0.1793175638, 0.2328459024, -0.2155468166, -0.2813489735, -0.1677554846, -0.1683679372, -0.0178475939, -0.4374026656, -0.2076959014, 0.2531122267, 0.1370602697, 0.1795031279, 0.1891433299, -0.1191045269, 0.0914461687, -0.2401310205, -0.2524133325, -0.3897509873, -0.3771704435, 0.1407494396, 0.3231414258, 0.161030367, 0.2322366387, -0.1523367167, 0.2447451949, -0.4053627849, -0.464148283, -0.1996777952, -0.0798340961, 0.3753569424, 0.2712038457, 0.1453298628, -0.2507657409, -0.3088521361, 0.370154798, 0.0678837672, -0.2780374587, 0.1633876711, -0.1102389321, -0.1721234918, 0.0301493295, -0.364335835, -0.366201967, -0.4178313613, 0.3031977415, 0.1823402345, -0.120222114, -0.158328265, 0.2869707942, 0.2404123545, 0.1297005862, -0.0267203636, 0.0517497286, 0.259449333, 0.5824719071, -0.1134836897, -0.4176761508, 0.1986727715, -0.2575908899, 0.283493489, -0.1202124804, -0.4212933481, 0.0007621576, -0.1604903489, 0.6609594822, -0.1991947144, 0.2146901786, 0.149612084, 0.1904707104, 0.0129405893, -0.0890317485, -0.2557511032, -0.1402993947, -0.0363350026, 0.0108379712, 0.0229871385, 0.1207669303, 0.0157047156, 0.5826403499, -0.0225846209, -0.0533315167, 0.2751409411, -0.1212432534, 0.205885753, 0.0454711914, -0.4002605975, -0.0308185536, -0.148235485, 0.2534761131, -0.1238638163, -0.2759881318, -0.2487930208, -0.3007620871, -0.2217011005, -0.1351770908, -0.2148836553, -0.000789763, -0.0668297261, 0.019146014, 0.0608750917, -0.0958221927, -0.1899785548, -0.1774166226, 0.1992027164, -0.0126463072, -0.2787075639, 0.0954817832, -0.3641175032, -0.485080868, -0.1638601124, 0.3125021756, 0.1482524872, 0.1970620751, 0.1409002095, -0.1766302735, 0.0947587118, -0.1950092912, 0.3924498558, 0.0057315729, -0.1782675534, 0.2852145731, 0.2199835032, -0.7880539894, -0.2938231826, -0.2227155864, 0.023845261, 0.157436043, 0.0574893504, -0.2375730872, 0.1872515082, 0.0052275299, 0.4398752451, -0.0548214316, 0.0437477157, -0.4539206326, -0.4103512466, -0.3626692891, -0.1204478145, -0.0482043512, 0.3372285068, 0.003894561, 0.0014652642, -0.1842179298, -0.1064537689, -0.1629241705, 0.270403862, 0.2156516016, -0.1212680787, 0.2366350442, -0.1229666397, -0.0786360055, 0.4644384682, 0.4202222228, 0.1237811893, -0.6989771128, -0.1592781991, -0.0817473084, 0.1029516906, -0.2168049216, -0.1642384529, 0.2025846094, 0.0215023477, 0.0443370454, 0.0403110199, 0.0755982921, 0.2012653202, 0.0874474272, -0.0733744875, -0.1510349065, 0.5053032637, 0.2279076278, 0.0496598706, 0.4068603218, 0.0133204181, -0.1364240348, 0.0958854035, 0.1526994258, 0.60068506, -0.0278300289, 0.0508122444, 0.6025996208, -0.3067753017, 0.5539409518, -0.1300062537, 0.0840124786, -0.4649180174, -0.218167752, 0.007001284, -0.3166858256, 0.2950649261, -0.3199921548, -0.2508442998, 0.0356391259, -0.2634040117, 0.2071663141, 0.0573788211, 0.1801078916, -0.2765650749, -0.0084584923, -0.1526010633, 0.1460163146, -0.1678946316, 0.1933190823, -0.0696763545, -0.0516185984, -0.4364554882, -0.168293044, -0.1661468744, 0.0437588394, -0.2752038538, 0.5126558542, 0.1887402982, -0.3083452582, 0.3038028181, 0.3915413022, 0.1575745642, -0.0325701162, -0.0551364794, 0.1062990054, 0.159291923, -0.2499810755, 0.2163818181, 0.0822426528, 0.2063044459, -0.1870327592, -0.3244166374, 0.530528903, -0.0557474568, -0.0302154794, -0.0245100763, 0.4902909398, 0.1098908037, -0.1539048553, -0.0912334323, -0.1535330862, 0.0709804446, -0.1260725409, 0.1597076356, 0.1015518755, 0.0588010028, 0.4141302705, -0.1115619093, 0.0191839207, -0.041934222, 0.2632980943, -0.1064585, 0.1108457819, 0.2457142323, 0.1302166879, -0.3101191223, -0.194117859, 0.1747109741, -0.0625780001, -0.3609365821, 0.0510271527, 0.1442757547, 0.1181772426, -0.2049165219, 0.3655372858, 0.159381941, -0.1160385981, 0.1217259914, -0.3830704093, -0.2565535903, 0.3387972713, 0.003723168, -0.116312705, 0.3004075885, 0.0813376382, 0.0303026587, -0.0058224807, -0.3074536622, 0.2028250694, -0.3254201412, 0.0115598496, 0.0950656012, 0.0824568421, -0.0308389459, -0.0642864108, 0.1781431586, 0.0478642061, -0.0828659162, -0.2979176044, -0.0692147464, 0.0436687432, -0.0529871769, -0.155921787, 0.0789399147, -0.2427778244, 0.0613806807, -0.0118205445, -0.063952826, 0.0244868305, -0.1600546986, 0.0814575255, -0.0773381516, 0.0409085527, -0.2512698174, 0.2282160521, -0.1928747594, -0.0163538717, -0.0043090433, 0.1892686784, 0.2621605694, 0.1422039568, -0.0126651917, -0.1455066651, -0.2946571708, -0.0714451894, 0.2462890148, -0.3729650974, 0.0193481203, -0.1245204434, 0.0701196566, 0.4878971279, -0.2644608915, 0.0218163989, 0.3213039041, 0.2248580754, -0.4720915854, -0.3357241452, 0.1608943194, -0.0287915953, -0.0033933662, 0.0460184589, 0.1743440628, -0.0250532702, -0.0399034359, 0.2498087734, 0.1167115644, -0.1551567316, 0.2698941529, 0.4228689373, -0.0452193581, 0.0207455363, 0.2719661891, 0.3008871078, 0.2052323222, 0.3551145792, -0.3248209655, 0.0645564198, -0.0516877398, 0.0377669707, -0.0119698318, -0.3060588241, -0.1069977134, -0.0035318772, -0.1044234037, -0.1902882457, 0.1279560775, 0.4319308102, 0.1319542229, 0.0557391196, 0.082847029, 0.0617175028, -0.1190721095, 0.296446532, -0.0605188794, -0.1037477851, 0.0912167802, -0.0383051634, 0.1162866428, -0.2087967843, 0.4120828211, 0.2387766242, -0.2003590912, -0.2089630812, 0.2051566541, 0.4049688578, 0.0770317465, -0.144757092, -0.1308679134, 0.2532717586, -0.1904788166, -0.3400832713, 0.2362893224, 0.5830228329, 0.25807482, -0.2751705348, 0.109360531, 0.0731223077, -0.1765502542, -0.0219404157, 0.0576354265, 0.160172835, 0.1368484646, 0.2793980241, 0.2509010136, -0.1937188655, -0.0918072462, 0.1245841831, 0.1629544199, -0.1905059665, 0.1447398663, -0.2970665991, -0.2748734951, -0.0879244953, 0.0597497188, -0.2057943344, 0.4084694386, 0.2745128274, 0.2821595073, 0.0049594142, -0.3078816235, 0.1118856147, 0.05498676, 0.4759662151, 0.246698156, 0.3976469338, -0.1549989134, -0.1284193248, -0.5016836524, 0.1108887717, -0.0524986535, -0.3014678657, 0.0038354439, 0.0309389811, -0.0469316281, 0.2556980252, 0.2194004655, -0.0072287251, 0.3248772025, 0.1229474843, -0.3567809761, -0.291769892, 0.3050172329, -0.206712231, 0.029596528, -0.3504010439, 0.1054068804, -0.4134697616, 0.17660743, -0.3590979278, -0.1072510704, 0.2813655436, 0.1146104187, 0.5974834561, -0.0193355959, 0.5290716887, 0.1665179878, 0.1585891843, 0.025388753, -0.2135997862, -0.1434469372, 0.2446593046, 0.1301645041, 0.230250001, -0.2169491053, -0.0975295007, -0.1996527612, 0.4094181657, 0.2201500982, 0.1637843549, -0.0218734611, 0.0871205181, -0.001145134, -0.0236403309, 0.0805426836, 0.055549331, -0.1418818682, 0.1273856461, -0.3887633085, -0.4281505644, 0.2744398415, -0.2218316346, -0.3107545674, -0.0388697088, 0.024493264, 0.1010349914, -0.1053963304, -0.323384583, 0.0116408868, 0.4379052222, -0.0378322788, -0.204484418, 0.2812789381, 0.1053224206, 0.1228214875, -0.0860600471, 0.3797080219, -0.0952710733, -0.1166137606, 0.031525787, -0.1509277523 ]
https://github.com/huggingface/datasets/issues/2677
Error when downloading C4
Hi Thanks for reporting ! It looks like these files are not correctly reported in the list of expected files to download, let me fix that ;)
Hi, I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive: `datasets.load_dataset('c4', 'en')` Is this a bug or do I have some configurations missing on my server? Thanks! <img width="1014" alt="Снимок экрана 2021-07-20 в 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png">
27
Error when downloading C4 Hi, I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive: `datasets.load_dataset('c4', 'en')` Is this a bug or do I have some configurations missing on my server? Thanks! <img width="1014" alt="Снимок экрана 2021-07-20 в 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png"> Hi Thanks for reporting ! It looks like these files are not correctly reported in the list of expected files to download, let me fix that ;)
[ 0.0968456864, -0.0686113238, -0.0539070442, 0.475012958, 0.2311237305, 0.2395801097, 0.0058157924, 0.1676317602, -0.017036479, -0.1058176458, -0.0259848945, -0.2992730737, 0.1618456542, -0.0318005756, 0.0029822944, -0.1193321347, 0.1358549297, 0.0848606601, -0.1391198337, -0.3514160812, -0.1153827161, 0.0911918208, -0.1484110206, 0.1158547103, -0.0264072958, -0.0274938885, 0.0056614671, 0.0816002637, -0.3496825993, -0.3620355427, 0.5557940602, 0.1042395532, 0.1785736382, 0.0744806826, -0.0001167735, -0.1865388304, 0.3024600148, -0.3341218233, -0.1340886056, -0.1216320172, -0.3307468593, -0.2062900513, -0.2419672906, -0.3494563699, -0.04425871, -0.1409953088, 0.1553075612, -0.119693473, 0.0351106636, 0.4630728662, 0.1809931248, -0.1043739766, 0.0083734188, -0.1809170842, -0.0925608873, 0.0102553628, 0.0669600219, 0.1523740739, 0.1125922948, 0.2954714298, 0.3457050622, 0.1438504905, 0.0234142188, -0.0461741462, 0.2648060918, -0.1932272166, 0.1687989533, -0.3840819001, 0.3017907441, 0.2715107203, 0.9384877682, -0.1433072835, -0.1691135764, 0.2467643172, 0.1892971098, -0.1855992377, 0.2946261764, 0.6772627831, -0.0679938197, 0.1251316667, -0.3260815442, -0.1865653992, -0.1197461188, 0.2777038813, -0.1292816401, -0.2179445922, 0.0771927088, -0.0518423058, 0.1002986878, 0.2046856135, 0.0032099287, -0.4079839587, -0.1779828519, 0.2119581252, -0.1153170839, 0.000746356, -0.4127677977, 0.3904473782, -0.0880833939, -0.0488228388, -0.2443315983, -0.0720178485, -0.1606345922, 0.081039466, 0.1806422621, -0.0447046086, 0.1368904561, 0.156729266, 0.0802772269, -0.1490300149, 0.1545661092, -0.0944330692, -0.1808449924, -0.3186019957, -0.0616497993, 0.2068341672, -0.1288017333, -0.4318059385, -0.2298419178, 0.2312492728, -0.3119583726, 0.0769577324, -0.1125142202, 0.4242168665, -0.4325268269, -0.0528688766, -0.0815888792, 0.1484347135, -0.0591339022, -0.5108195543, -0.1177362353, 0.0567052886, -0.288300842, -0.2188450247, 0.280501157, -0.5110837817, 0.2950260043, 0.0521378219, 0.1721792817, -0.1180121675, -0.0835565627, -0.3251758218, 0.0874161422, 0.2726624608, -0.1362610757, 0.1245290413, 0.2622079253, -0.2980206013, 0.0288882945, -0.0410172604, -0.3503583968, -0.1204096749, -0.1634517163, 0.1190707758, -0.2125157565, -0.009393801, -0.3496473432, -0.2559760809, 0.2443344295, -0.0921485499, 0.1594804376, -0.3166210949, 0.0317737609, -0.1681562215, -0.0448280647, 0.3502219617, -0.3620431423, 0.0180544686, -0.0329122804, -0.1109365523, 0.3610639274, 0.2010712773, -0.1729786694, 0.3088465035, -0.2813073397, 0.2549068034, 0.0488997698, -0.5429534912, -0.4550851583, 0.2392613292, 0.1014866158, -0.0787603855, -0.226033017, -0.0706493482, 0.3881843388, -0.184571296, -0.051427152, 0.0685296208, 0.0910027921, 0.0454451405, -0.1369255036, 0.0582368784, 0.1933749169, -0.0361916721, 0.2007419914, -0.0915701166, 0.2835771739, -0.1294596344, 0.2464184612, -0.1903015673, 0.1727261543, 0.2742319405, 0.1823207587, -0.1228113547, 0.1321306378, 0.3525639176, -0.4031897783, 0.1628522277, -0.0438691266, -0.0001490517, -0.0202082861, 0.0030592235, -0.2633751631, -0.1960609108, -0.2828921974, -0.0816285536, 0.0295653567, -0.1728116572, 0.0364456661, 0.1513747126, 0.1686385572, 0.5813814998, -0.2374357134, 0.0732230097, 0.1647724211, 0.3052453101, -0.1146176457, 0.3243878484, 0.0605080128, -0.1976237893, 0.3011149466, -0.1183040142, -0.1741783023, 0.1802292168, 0.2748377621, 0.2119434476, -0.3257679045, 0.0051281415, 0.4052170515, -0.378632009, 0.1828545481, 0.4098121822, 0.1813714802, -0.0424861088, 0.0105125904, -0.0025697905, -0.0898011029, -0.2186423391, 0.0273648053, 0.1081601605, 0.3547265232, -0.0161225069, -0.2691574395, -0.1640059203, 0.3425190151, -0.2733928263, 0.0401487686, -0.0079946369, -0.1774639189, -0.3209866285, 0.4895764291, 0.0607110262, -0.0399636216, 0.160940215, -0.028032111, 0.0574854985, 0.3541268706, 0.2005567998, 0.5117331147, -0.0272196569, -0.2033053488, 0.2647411227, 0.1374891996, -0.1859333068, 0.3109611571, -0.2197513878, 0.1099895313, 0.1862860173, -0.0879822299, -0.1205742434, -0.3998787105, 0.1504887491, 0.3180185258, 0.0884109288, -0.3093159795, 0.1285464019, -0.4081650674, -0.2306702882, -0.2915101349, -0.1382842958, -0.0635014102, 0.0557819642, 0.0039454168, -0.1081700847, -0.1405950189, -0.0048356266, -0.6207506657, -0.0432007723, -0.0407778434, -0.1709545404, 0.0394606963, 0.257370919, -0.2351537794, 0.0094772195, 0.1098940745, 0.0883890018, 0.3553429544, -0.398442626, 0.2627770305, -0.3834377825, -0.2011982352, 0.2526561916, 0.0835285932, -0.1793437004, -0.0235762615, 0.2764116228, -0.3303967714, -0.1471962929, -0.081775263, 0.0593428314, -0.1593549699, 0.1985168755, 0.0402036533, -0.169815585, -0.1646370292, -0.5502983332, -0.4189040661, -0.0854858682, -0.1607697755, -0.1752341986, 0.039621044, 0.4361677468, 0.0182259772, -0.0780427009, 0.1090333164, -0.1596166044, -0.2542777658, -0.1209909245, 0.4298146069, -0.2539360523, -0.5836588144, 0.1029922143, 0.0107238917, 0.1744453907, 0.3262532651, -0.3350965679, 0.3499172032, 0.1039254963, 0.0213261545, 0.0253064316, -0.21573928, 0.3457698524, -0.2229925543, 0.1244465709, -0.1363960207, 0.2712990046, 0.1059968099, 0.209736675, 0.5329782367, -0.4421274662, -0.0302737616, 0.1538643092, 0.2319274545, 0.1277965307, -0.2935443223, 0.5387866497, 0.2865953147, 0.3581416905, 0.2793966234, -0.3494909406, 0.3341581225, -0.2343038917, -0.0606029741, 0.3306899667, -0.192325443, -0.320567131, -0.1543569267, 0.135221526, -0.3458195329, -0.1256650537, -0.0995995477, -0.0232364908, 0.3672539592, 0.3243450522, 0.3868778944, 0.2190694958, -0.2529469132, 0.0879830793, 0.366508007, 0.1922782511, 0.1218932047, -0.1594340801, -0.2385463119, -0.013744507, 0.2690028846, 0.3512970507, 0.1429185718, 0.008692164, 0.3366686702, -0.0169546083, 0.0273884553, 0.5130410194, -0.3365214467, 0.1041378304, -0.1199322566, 0.316508621, -0.1912989616, -0.2906214893, -0.1121694744, 0.005234051, 0.2563717365, 0.2647581398, -0.3294280469, 0.1596471965, -0.1577945352, 0.3297688961, -0.07170856, -0.3489950001, -0.1800926179, -0.3787819743, -0.2861404419, 0.2097586989, 0.0344523601, 0.1097162664, -0.2521627545, 0.0800888687, 0.1153597534, 0.4076041281, 0.1858725101, 0.0648532882, 0.2890303731, 0.0751471817, -0.0058168629, -0.0153916935, 0.0391467288, 0.7092400789, 0.3661019504, -0.1685134321, -0.2802570462, -0.1138138473, -0.2125696093, 0.187396422, 0.1063664928, 0.0132568683, -0.1825785786, 0.2383493483, -0.2654719651, 0.0752491802, 0.3841481805, 0.1735221893, -0.0579017475, -0.6417623162, -0.4279420972, 0.0271732807, -0.1657635868, 0.0767465979, 0.1531161517, 0.2185257524, -0.1480733454, -0.2544139624, 0.2818486989, 0.8829857111, 0.1032863781, -0.1745402366, -0.0468323119, -0.1570567787, 0.1641245931, -0.6999191642, 0.0634925067, -0.2291502357, -0.4758972526, -0.2166135758, -0.1454948187, 0.3087320924, 0.480378598, -0.2660745978, 0.3267463148, 0.1208248138, 0.2696651816, 0.0956341326, 0.1172953248, 0.0867615119, -0.2291981578, -0.3270388246, 0.1372855902, -0.2278520167, 0.3816147447, -0.3304396272, -0.0874115005, -0.0354943909, -0.3432796299, -0.26529333, 0.3194358647, 0.0433425345, 0.0522039831, 0.0054627443, -0.0803293809, 0.3363471627, 0.3796256185, 0.3059647083, 0.5810823441, -0.1137594506, 0.0904680341, 0.0829675123, -0.214010939, -0.0017038347, -0.1863297522, 0.0727232248, -0.2209592313, -0.1637433916, 0.1252419055, 0.0256802235, -0.1554331034, 0.3542504609, -0.0052306089, -0.3836031556, -0.0485266745, -0.3185369372, 0.0018296489, 0.0806474537, 0.0741633177, 0.054236576, 0.0092407875, -0.0484005846, 0.2165423185, 0.2888495624, -0.273863405, -0.1093749106, 0.4820820093, 0.0069067813, -0.4225783944, 0.3957418501, 0.0692837611, -0.2859168947, -0.234608233, -0.2766027749, -0.3226011097, -0.4378264844, -0.2122826874, -0.1211902127, 0.2519948483, -0.3501021862, 0.2291536331, 0.1092435718, -0.0886002555, 0.3342333436, -0.4625097811, -0.1260687709, 0.0029643094, -0.1780197322, -0.0232609808, 0.1158493906, -0.0608185269, 0.1773512214, 0.0480653718, -0.2034521401, 0.0295511205, -0.2206770778, 0.0934601799, 0.1844986081, 0.0291806348, -0.0149675198, -0.2728755176, 0.0106825978, 0.2006673813, -0.1280091107, -0.1032631993, -0.0436159521, 0.1919802725, 0.1563541889, 0.0032915429, 0.3131915927, -0.2257288098, -0.1605039537, -0.0429566205, -0.0485748611, 0.2598894835, -0.0353707373, 0.2518922091, 0.2516218722, 0.1158089861, -0.2370556891, 0.0919012502, 0.113213405, 0.4768445492, -0.0105122654, 0.0880641416, 0.1420781016, 0.0484818257, -0.2334061265, 0.0994985476, 0.2594980896, -0.0611052141, 0.3047934175, -0.3842669129, 0.4487791359, 0.1527720243, 0.0259963088, 0.215856716, -0.2095499337, -0.0445935093, 0.4983428717, 0.1671550572, -0.2295719981, -0.0541870072, 0.1648524553, 0.2072167993, -0.2720637321, -0.0493465252, 0.1995114982, -0.3289796114, 0.260011524, 0.0632013679, 0.3941881955, 0.0066074319, 0.2652599216, 0.417049408, -0.0522825643, 0.1995480657, 0.0526960902, -0.1364832371, -0.101728186, 0.13111265, 0.1044997647, -0.2310554087, 0.3705916107, 0.265786171, 0.0234880298, -0.4831439555, -0.0467822179, 0.3182040453, -0.0425552651, 0.1746276319, 0.4242458642, -0.1332391948, 0.3142975867, -0.197223857, -0.8147057295, 0.2134569883, -0.1136611998, 0.2533867657, -0.0570820384, -0.2354960442, 0.187834695, 0.3116334975, -0.1242852882, -0.0830523223, 0.1101042479, 0.3088501096, -0.2186730355, -0.240092814, 0.2889838517, 0.0278464444, 0.0292525627, -0.2123588026, 0.2317578793, 0.2056274265, 0.0963571146, 0.1508677304, 0.0168429222, 0.2187573612, 0.3880805075, 0.2287818193, 0.0126236612, 0.0145516144, -0.0118372999, 0.1728640795, 0.5091125965, 0.4928584993, 0.1775872707, 0.3632192314, 0.0782716796, -0.0588838458, 0.130573228, 0.0597454235, 0.1148814037, -0.1486168951, 0.2104656994, -0.0780471116, 0.0869633406, -0.380533725, -0.0649956465, -0.2805467248, 0.3111961484, 0.5664163232, -0.0162146166, 0.1151913106, -0.128165856, 0.0291567128, -0.1101013646, 0.364405483, 0.2182444036, 0.4985847175, -0.3034205139, -0.2396450043, -0.6170098186, 0.3663159311, -0.3759624362, 0.2365924865, -0.1307976097, -0.0122162066, 0.3323755264, 0.3707735837, -0.0665931553, 0.3085781038, 0.1430299133, 0.4748997688, -0.053218279, -0.070313178, 0.2046023607, 0.0699487701, -0.1227093637, -0.4148937464, 0.0504751652, -0.1069611832, 0.0798349753, -0.1807249635, -0.0365895033, -0.0613414496, 0.2318531424, 0.3578613698, 0.1050799564, 0.8830094337, -0.0567259528, -0.0103403945, -0.0094699729, 0.0541440398, -0.142879054, 0.2769040763, 0.0209861863, 0.1057194173, 0.0254504923, 0.0194993801, -0.1232582405, 0.4462434649, 0.1924269497, 0.1385370344, -0.3047604859, -0.2555628419, -0.3660922348, -0.2397817969, -0.0890368596, -0.1024261713, -0.0129794963, -0.0846837312, 0.0473411046, -0.4045792222, 0.5043484569, -0.5797142982, -0.159644261, -0.051916521, 0.1902920604, -0.0386940949, -0.170198679, -0.1726159006, 0.2493826002, 0.3882627785, -0.2096815258, -0.2787163258, -0.0153386816, 0.008033623, -0.0208509732, -0.0517168567, 0.7078824043, 0.0515537597, -0.4494342208, -0.1627371162, -0.408947587 ]
https://github.com/huggingface/datasets/issues/2677
Error when downloading C4
Alright this is fixed now. We'll do a new release soon to make the fix available. In the meantime feel free to simply pass `ignore_verifications=True` to `load_dataset` to skip this error
Hi, I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive: `datasets.load_dataset('c4', 'en')` Is this a bug or do I have some configurations missing on my server? Thanks! <img width="1014" alt="Снимок экрана 2021-07-20 в 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png">
31
Error when downloading C4 Hi, I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive: `datasets.load_dataset('c4', 'en')` Is this a bug or do I have some configurations missing on my server? Thanks! <img width="1014" alt="Снимок экрана 2021-07-20 в 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png"> Alright this is fixed now. We'll do a new release soon to make the fix available. In the meantime feel free to simply pass `ignore_verifications=True` to `load_dataset` to skip this error
[ 0.0360018574, -0.0390106738, -0.0446486548, 0.420443505, 0.2243452966, 0.2426007539, -0.0268923435, 0.1530850083, -0.0672713369, -0.0291625503, 0.0164736286, -0.2508124709, 0.156677559, 0.049930647, 0.0004604336, -0.0572999716, 0.1233926639, 0.076857686, -0.1300050616, -0.2965222001, -0.1279533803, 0.0637141317, -0.1454874575, 0.0978288502, -0.0157248639, 0.0041988725, -0.0361218862, 0.1128536239, -0.3306388855, -0.4125272632, 0.5867494345, 0.0864501894, 0.2514702082, 0.06079261, -0.0001131244, -0.1866182238, 0.3207837641, -0.2820208073, -0.174901098, -0.1334162205, -0.325237751, -0.1429714561, -0.2270389646, -0.348692745, -0.058652252, -0.0870725662, 0.1525996476, -0.1404470205, 0.0293262284, 0.369246006, 0.2102141827, -0.1186659634, 0.0342101865, -0.2088638246, -0.1466706544, -0.0970337167, 0.0677077249, 0.1624717563, 0.1368179023, 0.2822679579, 0.3550721705, 0.2087816, -0.0417191833, -0.0173643585, 0.3091595769, -0.2235091478, 0.2251722515, -0.3702126741, 0.3360902369, 0.2796583474, 0.9650492668, -0.1046359688, -0.1588133276, 0.2854290605, 0.2251125276, -0.1731426865, 0.3463102877, 0.6254925132, -0.0934757814, 0.1446560323, -0.3239200115, -0.2792811692, -0.1134179831, 0.2988193333, -0.1196649224, -0.1817186326, 0.1240482703, -0.0344566591, 0.1894723475, 0.2115551084, 0.0512721948, -0.3572790325, -0.2294223756, 0.244007796, -0.1396593601, -0.0109471669, -0.3934451044, 0.4090080857, -0.1072905585, -0.030837113, -0.3079852462, -0.0492988974, -0.1120641008, 0.0944597721, 0.2030054033, -0.0697776526, 0.1198692396, 0.1149196178, 0.1016231552, -0.1529776603, 0.2040788233, -0.0545779578, -0.1837911159, -0.3530221283, -0.0942234769, 0.1558489352, -0.1233037785, -0.378326714, -0.1654169708, 0.1764021963, -0.3575057387, 0.1171477437, -0.1370217502, 0.4213328063, -0.390378654, -0.0504912324, -0.0359503552, 0.110708043, -0.1120524257, -0.5132815838, -0.121058844, 0.0789468214, -0.2682030499, -0.2268249691, 0.2764567137, -0.5189313889, 0.2074766904, 0.0441432856, 0.1534956247, -0.0671438351, -0.0873307213, -0.2824047804, 0.0264250822, 0.2698506415, -0.1203040704, 0.0706777275, 0.2335552722, -0.3244761527, 0.0129574481, 0.0130953556, -0.33584705, -0.1569309533, -0.2096269727, 0.1417197138, -0.1472772658, -0.0375678539, -0.3525377214, -0.2765510976, 0.2389995605, -0.0917323828, 0.1340075582, -0.2895188034, -0.0120516438, -0.1646084934, -0.0726770982, 0.3515327871, -0.3475579917, 0.0224022195, -0.0633132383, -0.0984155014, 0.3028385341, 0.1756019741, -0.1984319389, 0.2672305703, -0.2671555877, 0.2501599491, -0.0137765277, -0.5401050448, -0.5093708038, 0.2695919871, 0.0551130213, -0.0686937645, -0.2188577652, -0.0355273075, 0.3348934352, -0.1923199892, 0.0134163443, 0.1395024657, 0.0648253113, 0.0564674251, -0.1089971811, -0.0176786836, 0.2234359086, -0.0455378927, 0.215885371, -0.0558994934, 0.2599471509, -0.0973494947, 0.2286308408, -0.2337480187, 0.1718610823, 0.3047974706, 0.2269141972, -0.1765138209, 0.0588295124, 0.3398590982, -0.4050039053, 0.2001461983, 0.0163851622, 0.0992062762, -0.0325787961, -0.0069131847, -0.1949693859, -0.1770460755, -0.2826216817, -0.0993849188, 0.035647478, -0.2061427385, 0.0358738154, 0.1314908266, 0.1909253895, 0.5959511399, -0.2169480026, 0.0794819891, 0.1361019611, 0.2638707459, -0.1812299043, 0.3510240018, 0.0228075739, -0.1756058484, 0.2562203705, -0.1429301202, -0.1528051347, 0.2349879891, 0.2168685347, 0.2181941569, -0.322467953, -0.0151658272, 0.3912171721, -0.3939549923, 0.142312631, 0.3844941556, 0.2187795788, -0.0160032958, 0.0914727896, -0.0463533625, -0.1119230241, -0.2208696306, 0.0427727848, 0.0983946398, 0.3558832407, 0.002010447, -0.2500753999, -0.1520539969, 0.344011277, -0.3176956177, -0.0068032835, -0.0388013199, -0.1095327213, -0.3359955847, 0.406075418, 0.0946511328, -0.0373949818, 0.1653101742, -0.0237264764, 0.0274255499, 0.3157751858, 0.2485593706, 0.4471752346, -0.0136002162, -0.2143900841, 0.2998836637, 0.1573817283, -0.160223797, 0.348821789, -0.2297730893, 0.1348236203, 0.0508117676, -0.1089660972, -0.0918364748, -0.3125114441, 0.1166942641, 0.3133603632, 0.1552193016, -0.2792724669, 0.1318763345, -0.4109162688, -0.2489750832, -0.1848031878, -0.1850154698, -0.0852527097, 0.045824822, -0.0152918687, -0.0633328035, -0.1338996142, -0.0200538822, -0.5972523689, -0.0605822355, -0.0365187265, -0.2365605235, 0.065005444, 0.1695267111, -0.218222037, 0.0348356441, 0.1568024457, 0.0094864368, 0.3665183485, -0.3867041171, 0.2242768854, -0.3541081846, -0.2343886644, 0.2437724918, 0.0588888973, -0.1631191671, -0.0350463912, 0.2716335356, -0.3771987259, -0.1262653917, -0.1053925306, 0.0165894218, -0.1642072797, 0.2119747102, 0.1110277995, -0.1994582266, -0.1752019078, -0.5475432873, -0.4019846022, -0.0843535736, -0.1555338651, -0.1761151552, 0.0200414602, 0.4436431825, 0.0465703271, -0.0550641753, 0.1353531778, -0.250865519, -0.304204911, -0.1063300073, 0.319399029, -0.262406975, -0.5575563312, 0.1595307142, 0.0274064895, 0.175166592, 0.3157703876, -0.3637107611, 0.388769716, 0.0978396907, 0.1054476574, -0.0301316399, -0.2219376862, 0.4351089299, -0.2020961046, 0.0946491733, -0.0956714526, 0.2763974369, 0.0846991241, 0.1521806717, 0.5275925398, -0.4281853139, -0.0382147841, 0.1636305898, 0.1768325716, 0.0551305078, -0.2453254759, 0.5363041162, 0.2724508643, 0.3966636658, 0.2414667457, -0.3665804267, 0.3376544416, -0.2462868989, -0.0973272473, 0.3054601252, -0.2202028185, -0.3122655749, -0.2184073329, 0.0671333447, -0.2943169475, -0.1775605828, -0.1228683516, -0.0551593229, 0.3067913949, 0.3584988415, 0.3822779059, 0.2345036417, -0.2700301707, 0.0280066561, 0.3280118406, 0.120486103, 0.1090978235, -0.199467361, -0.2411129773, -0.0692342967, 0.3282168806, 0.3817485869, 0.1986070275, 0.0327290297, 0.3442439139, -0.0016994824, -0.0023002895, 0.5099651814, -0.2901912332, 0.136022374, -0.1347068995, 0.2955149114, -0.2025739253, -0.2343927473, -0.0494215824, 0.0251398999, 0.2978613079, 0.2174986005, -0.2798976302, 0.1700642556, -0.1417282969, 0.3046317995, -0.0283361562, -0.3298506439, -0.1842494309, -0.3711110055, -0.3130017221, 0.2186619192, 0.005644524, 0.1686590016, -0.2048040479, 0.1331519783, 0.0694015548, 0.401247859, 0.1360419393, 0.0466869511, 0.268910259, 0.071144402, -0.0031649405, -0.0124652758, 0.029265698, 0.7025740743, 0.3302223682, -0.1346915513, -0.2716226578, -0.1439028829, -0.1244862229, 0.1391993463, 0.1108243614, 0.0168138165, -0.1897697449, 0.2859245241, -0.2699914575, 0.0322893299, 0.2813587189, 0.1306810826, -0.0307328794, -0.6320249438, -0.4210796952, 0.0609078854, -0.1813703626, 0.0958570316, 0.1489226967, 0.2680442035, -0.1285710931, -0.217444703, 0.218828246, 0.8750144839, 0.1290872991, -0.1301255226, -0.0264668632, -0.0886056796, 0.216376096, -0.6644523144, 0.1195863113, -0.2256654203, -0.39124915, -0.2204609811, -0.1284363866, 0.3262506127, 0.4141201675, -0.2569348812, 0.3033983707, 0.0509971343, 0.2380172759, 0.0988601223, 0.0886773095, 0.0070953318, -0.2492572367, -0.2533774674, 0.1659845412, -0.2577987909, 0.3493565917, -0.3405811191, -0.0519938283, -0.0479628108, -0.3674956262, -0.3082836568, 0.369809866, 0.0263163131, 0.1083764806, 0.0024819847, -0.0061471942, 0.3616021872, 0.3097476959, 0.3440256715, 0.5899113417, -0.1518326998, 0.1053577289, 0.0975242853, -0.2661140263, 0.0407296121, -0.2164762467, 0.1155542508, -0.1921955049, -0.2545379698, 0.1187405959, 0.0392118283, -0.2071431428, 0.4058911204, 0.035162095, -0.3002876341, 0.0039731818, -0.3729741871, 0.0090602571, 0.117694892, 0.0316929333, 0.0888122097, -0.0114983004, -0.089793995, 0.1707095951, 0.3015865088, -0.2777349055, -0.0811748505, 0.5380645394, -0.016519554, -0.4363062382, 0.4067167044, 0.0910996422, -0.2650631964, -0.2602671385, -0.2303222269, -0.3599166274, -0.3782093525, -0.2318967879, -0.078070052, 0.2442932427, -0.3475921452, 0.2121431679, 0.053466931, -0.0326720662, 0.3668103814, -0.4717722535, -0.10387934, -0.0051589808, -0.2411712408, -0.0263196751, 0.1795351356, 0.0173055083, 0.1448740214, 0.066674903, -0.2324116975, 0.0188773535, -0.2115797997, 0.0607996136, 0.257963419, 0.0157741029, 0.0331677645, -0.3173061609, 0.0562633127, 0.2354159802, -0.1383287758, -0.1442532241, -0.0435433351, 0.1712249517, 0.1415522844, -0.0547133759, 0.3798899055, -0.2556417584, -0.1825086772, -0.0047949278, -0.0285686478, 0.3092053831, -0.0480012223, 0.1978423893, 0.231590867, 0.1624958664, -0.2306025475, 0.1384640634, 0.0822302848, 0.4809702933, -0.0767594054, 0.0964096487, 0.0872657597, 0.0559792146, -0.2521455586, 0.0656086504, 0.2322048098, -0.0088383574, 0.2820625603, -0.4166627228, 0.4334471822, 0.1091425195, -0.0127714574, 0.2232515514, -0.2425816953, -0.106371738, 0.5650660396, 0.1957125068, -0.2459314615, -0.044881016, 0.1090834439, 0.1616178006, -0.2950554192, -0.0200714357, 0.143901214, -0.3322838843, 0.1799618751, 0.0627884343, 0.3500892818, -0.0705461428, 0.2851704955, 0.4285669029, -0.1124066487, 0.1580180675, 0.0175328124, -0.0901255384, -0.044987008, 0.1519816816, 0.0207850393, -0.2855876982, 0.3917178512, 0.3113311827, -0.0392868817, -0.5306156874, -0.0169724431, 0.3337500691, -0.057357192, 0.1362056732, 0.4013501108, -0.1384162456, 0.2527984083, -0.1455335915, -0.780779779, 0.2933785319, -0.1241622567, 0.1993798316, 0.0447949544, -0.1824664325, 0.1992432177, 0.2737717628, -0.1125889644, -0.1241297275, 0.0894681811, 0.3351045847, -0.202725783, -0.2588578165, 0.2589485049, 0.0043815146, -0.0228768457, -0.2204962224, 0.196733743, 0.1613191515, 0.1165982485, 0.1213728786, 0.0278685931, 0.2811055779, 0.3800275624, 0.155116573, 0.0051989458, -0.0512978882, 0.0308092963, 0.210667789, 0.4682568014, 0.5239809752, 0.1957227141, 0.3474484086, 0.0808402225, -0.0617094226, 0.1058761403, 0.088547498, 0.1906837225, -0.1326035261, 0.2188702822, -0.0792562738, 0.1500310749, -0.4193202853, 0.0314088166, -0.2548206449, 0.3473964334, 0.5314042568, -0.055854544, 0.1173991635, -0.1215582937, 0.0454473831, -0.0932246372, 0.3865908086, 0.2400595248, 0.4453105032, -0.2861809433, -0.1872860491, -0.6304113865, 0.3185947835, -0.3895479441, 0.1897371411, -0.1382482052, 0.0208085608, 0.3115712702, 0.3615576327, -0.1307063997, 0.3410049379, 0.1538966745, 0.4440058172, -0.0241616219, -0.0479540899, 0.2248768806, 0.0106652118, -0.1028804705, -0.475106895, 0.0300567187, -0.1046136096, 0.0870181173, -0.1508564651, -0.013042965, -0.0212866608, 0.1397135556, 0.4028871059, 0.0827022418, 0.8158757687, -0.0312414542, -0.0269637909, -0.0647722185, 0.0436936691, -0.1682124138, 0.2752509117, 0.0953676775, 0.0657409504, -0.0277014449, 0.0265630223, -0.1445901245, 0.4608073235, 0.1300289035, 0.1649180204, -0.3377991915, -0.234468177, -0.3548514843, -0.1299700886, -0.1278647184, -0.0809601918, -0.0189349968, -0.0265216064, 0.0469352789, -0.4027722776, 0.5305594206, -0.5888614655, -0.1571634263, -0.0297353789, 0.1984484792, -0.0414126366, -0.2330594212, -0.1098872945, 0.280236423, 0.3406996727, -0.1172643006, -0.2922652066, 0.008228261, -0.0437995382, 0.020454254, -0.0709813535, 0.7276519537, 0.0326760598, -0.4151469767, -0.1617050171, -0.3914835453 ]
https://github.com/huggingface/datasets/issues/2669
Metric kwargs are not passed to underlying external metric f1_score
Hi @BramVanroy, thanks for reporting. First, note that `"min"` is not an allowed value for `average`. According to scikit-learn [documentation](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html), `average` can only take the values: `{"micro", "macro", "samples", "weighted", "binary"} or None, default="binary"`. Second, you should take into account that all additional metric-specific argument should be passed in the method `compute` (and not in the method `load_metric`). You can find more information in our documentation: https://huggingface.co/docs/datasets/using_metrics.html#computing-the-metric-scores So for example, if you would like to calculate the macro-averaged F1 score, you should use: ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True) f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute(average="macro") ```
## Describe the bug When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so. ## Steps to reproduce the bug ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True, average="min") f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute() ``` ## Expected results No error, because `average="min"` should be passed correctly to f1_score in sklearn. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute "f1": f1_score( File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score return fbeta_score(y_true, y_pred, beta=1, labels=labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score _, _, f, _ = precision_recall_fscore_support(y_true, y_pred, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support labels = _check_set_wise_labels(y_true, y_pred, average, labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels raise ValueError("Target is %s but average='binary'. Please " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.9.2 - PyArrow version: 4.0.1
96
Metric kwargs are not passed to underlying external metric f1_score ## Describe the bug When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so. ## Steps to reproduce the bug ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True, average="min") f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute() ``` ## Expected results No error, because `average="min"` should be passed correctly to f1_score in sklearn. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute "f1": f1_score( File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score return fbeta_score(y_true, y_pred, beta=1, labels=labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score _, _, f, _ = precision_recall_fscore_support(y_true, y_pred, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support labels = _check_set_wise_labels(y_true, y_pred, average, labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels raise ValueError("Target is %s but average='binary'. Please " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.9.2 - PyArrow version: 4.0.1 Hi @BramVanroy, thanks for reporting. First, note that `"min"` is not an allowed value for `average`. According to scikit-learn [documentation](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html), `average` can only take the values: `{"micro", "macro", "samples", "weighted", "binary"} or None, default="binary"`. Second, you should take into account that all additional metric-specific argument should be passed in the method `compute` (and not in the method `load_metric`). You can find more information in our documentation: https://huggingface.co/docs/datasets/using_metrics.html#computing-the-metric-scores So for example, if you would like to calculate the macro-averaged F1 score, you should use: ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True) f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute(average="macro") ```
[ -0.0516288616, -0.5501688123, 0.0873142183, 0.2038567215, 0.4681912363, -0.0643797219, 0.1748596728, -0.1953882575, 0.3451756835, 0.2828974426, 0.0679135993, 0.4462165534, 0.178371802, 0.024255123, -0.0182034746, 0.0616982765, 0.1058043242, -0.358712703, -0.0846229792, -0.2987220883, -0.4068834186, 0.0102047333, -0.4048624933, 0.0202551726, -0.2006223798, 0.0613630861, -0.0347851627, -0.1700371653, 0.0016801791, -0.0039013943, 0.307756424, 0.1265654415, -0.097067304, 0.3663869798, -0.0001235781, -0.0986129418, 0.4526259601, -0.136898905, -0.0371830612, -0.011109666, -0.1764514893, 0.014776485, -0.1244776472, -0.3509167433, 0.1918561906, 0.1058520675, -0.1739189178, -0.3824929893, 0.233816877, 0.3685025871, 0.0636829734, 0.1573849469, -0.2092085183, -0.1720213443, -0.2959970832, -0.1044454277, -0.185038805, 0.4786292017, -0.6841751933, -0.0733038187, -0.1676169634, 0.0917700604, 0.1501622945, -0.0126521019, 0.7468221784, 0.0399315655, 0.301966399, 0.1136633456, 0.1792100668, -0.1155980602, 0.0679365471, -0.3869572282, -0.4035750031, -0.1462423205, 0.0940089822, -0.7693842649, 0.107783027, 0.0144161377, -0.2267363667, -0.0929727703, -0.1046825126, -0.1168836132, -0.3561751544, 0.076498881, -0.0503031947, 0.6123209596, 0.0015166292, 0.0829182714, 0.1927199513, 0.1838297993, 0.0406336896, -0.2930779755, 0.0284064263, 0.0716914386, -0.2631738186, 0.210820958, -0.0395302996, -0.0636172518, 0.279368788, 0.0515004694, -0.0760851204, 0.0437828302, 0.430503726, 0.0532585792, 0.1974085271, 0.5313013196, 0.4781781733, 0.3300952315, -0.0164008401, 0.0775583759, -0.1973581612, -0.2480201274, 0.2715122402, -0.0058643827, 0.2495121658, 0.1664948314, 0.0198458266, -0.0776021332, -0.2983477116, -0.0815999582, 0.0488366894, -0.013127951, 0.0346071236, 0.1596443057, -0.0479191318, 0.3419953585, 0.0582273528, 0.3695011735, -0.1124333739, -0.0151644442, -0.2224204242, 0.1949930191, -0.4361763, 0.1441707164, -0.2022398412, -0.1239359155, 0.5087714791, -0.0023834857, 0.60644418, -0.463863492, -0.0930646062, 0.0385822393, -0.0192408636, -0.0122122364, -0.4288243651, 0.2412555367, 0.0337990783, 0.0614983737, 0.0438618027, -0.0164111853, -0.3245545328, -0.0843017325, 0.481883347, 0.0413156748, -0.2956654727, -0.1328903437, -0.1859077662, 0.2178625911, 0.0208468251, 0.114158839, 0.036767263, -0.1453687102, -0.5320338011, -0.2027044445, 0.7653899789, 0.0672897995, 0.1244360059, -0.2514540851, -0.133268401, 0.080568634, -0.0005603431, 0.0552250519, 0.0327285081, 0.2792539299, -0.0457490087, 0.0623040833, 0.2406339496, -0.6767406464, -0.4408141673, 0.0251210835, 0.0460097119, -0.0332324468, 0.2000237852, -0.1751341671, 0.352132529, -0.0047274083, 0.1999831647, 0.4301858544, -0.1823698729, -0.0675363615, -0.421083957, -0.0479818732, 0.0489524417, -0.1104324609, 0.425776422, 0.0662508681, 0.0844967216, 0.2618042827, 0.0360829644, 0.1915479898, -0.1473139822, 0.0495128706, 0.0701557323, -0.3530412316, 0.0856516659, 0.0555068217, -0.1457140148, 0.1035254449, -0.1434553713, -0.1681432277, 0.1927149445, -0.3029262722, -0.7353892922, 0.237985, -0.0126787191, -0.1675953269, 0.0279245228, -0.0007102966, -0.1402490139, 0.2118353844, 0.1246922985, -0.2877167165, -0.2155008763, 0.0689764842, 0.2514445186, 0.0879584998, -0.0275265127, -0.1178223491, -0.054013744, 0.2617594302, 0.4194564521, 0.028171191, -0.0429726839, 0.53666085, 0.2259911746, 0.1409415454, 0.1608154178, 0.0340640545, 0.2441125959, -0.0328772664, 0.047811877, 0.3331085443, 0.1005690992, -0.1979620308, -0.097744599, 0.4207774401, 0.1251929253, 0.3327289522, -0.0869357586, 0.272632122, -0.2567585707, 0.0971226767, -0.1023769155, -0.2068926841, -0.077983208, -0.4906931221, -0.0203643702, -0.2348926514, 0.0249764491, 0.1215319484, 0.4332323968, 0.199549526, 0.1523184031, -0.0760575086, -0.2277942151, -0.0624572746, 0.0835696086, -0.1111957803, 0.4364539385, 0.1562025994, 0.0343496241, 0.2055184692, -0.1461106539, -0.0951094925, 0.1814318746, 0.4817385972, -0.0805641785, 0.2435983419, -0.0937528238, -0.1131485105, -0.0635224283, 0.2218560725, 0.0521538407, -0.079274334, -0.5283739567, 0.2364410907, -0.0392133519, 0.2011195421, -0.215909943, 0.0986011997, -0.1711426079, -0.7540906072, -0.1033215448, 0.082149595, -0.1489275694, 0.3635011315, -0.2049849629, 0.2673456073, -0.049650833, 0.0223411266, 0.0366269462, -0.3193078935, -0.1708577424, -0.1480313689, 0.2124333829, -0.0287864394, 0.3443080485, 0.3873266876, 0.2164435387, 0.0731538311, -0.4658790231, -0.1431510299, 0.0814774111, 0.9184205532, -0.0383187495, -0.1673643887, -0.3328227103, -0.07753966, 0.3546082973, -0.2792415321, 0.0753313079, 0.1667622924, 0.0544319674, 0.1211805344, -0.3318284154, -0.1408893168, 0.0599886142, -0.1981330365, -0.1365243345, -0.1284698844, -0.288937211, 0.3429216444, 0.1867971122, 0.000910064, -0.0350908116, -0.083661668, -0.0976049528, 0.0677945241, 0.3448294103, -0.197110787, -0.2251144946, 0.0398049243, -0.0092013935, 0.2385277897, -0.0336469635, -0.3195248544, -0.4439283609, 0.2071540952, 0.1057021916, 0.0439917594, 0.1653722823, -0.089287661, -0.4593805075, 0.1171313673, -0.2870641351, -0.2191005796, 0.3560735285, -0.2641613185, 0.1047710702, -0.1369574219, 0.3790747523, 0.2572435439, 0.6966179013, 0.0503654405, 0.1582950056, -0.0299589951, 0.0022025467, 0.2247804105, 0.0723265857, -0.3129124343, 0.180369541, 0.0302199014, -0.176845625, 0.2460016757, 0.1162328646, 0.292893976, -0.0578407124, -0.3579820395, -0.2600937486, -0.3655107617, -0.1559730917, -0.0219272319, 0.2030692548, 0.1455335766, 0.562700808, -0.4348825216, -0.0822067559, 0.3034933805, -0.1214677021, -0.02663262, 0.0871559978, -0.2401305884, -0.3764371574, -0.1924000829, 0.1694324762, -0.1273615509, 0.4058916271, 0.0894150957, 0.2031163722, 0.1276354194, -0.1006716341, 0.2976211011, -0.2545891702, 0.1782376468, 0.1883015633, 0.1651884168, -0.3848175406, -0.1694615185, -0.1441169232, -0.1351506263, 0.2666933239, 0.0691983551, -0.511523962, -0.1317027509, 0.1223713234, -0.0508826375, -0.2466029376, -0.1446666718, -0.2461934239, -0.2586558759, 0.1532773376, 0.0380988531, 0.1500682086, 0.3929440379, -0.092780523, 0.5734655261, -0.1120118573, -0.2354329377, 0.2397037745, -0.0630112365, 0.5529729128, -0.0194102321, 0.0340888314, 0.1222654134, -0.1265093386, -0.2053160071, 0.122658208, 0.1356470287, -0.3416358232, -0.1437760293, -0.3832888007, 0.5200099945, 0.2293057293, -0.2753110528, 0.1476995647, -0.3316438794, -0.1977546364, -0.0106328456, -0.0570234023, 0.2516384423, -0.0470466204, 0.1179160103, -0.205729723, 0.5350641608, 0.214932695, -0.1624640524, 0.4008515775, 0.1537149847, -0.4334542751, 0.1491287798, 0.3389035165, 0.7175228, 0.478114754, -0.0385889336, 0.4263071716, -0.2586624026, 0.1159343049, 0.0563810132, -0.0041181389, -0.2077730745, -0.3220458329, 0.1919016838, 0.0116221067, 0.1058192402, 0.0006328531, -0.0864820033, 0.178988263, -0.203377828, 0.3869855404, 0.1023425236, 0.2675028741, 0.0608245842, 0.0337736756, -0.1049406454, 0.0172549877, 0.0907754526, -0.1177079156, 0.0535145216, -0.3840712607, 0.03131897, -0.1755130738, -0.0016677536, 0.0522393845, -0.256136775, 0.0642953888, 0.1166626737, -0.0008837779, 0.1194906458, 0.0016807592, 0.537420094, -0.0359360389, -0.1339447945, 0.256985724, -0.4386565983, 0.0324887037, 0.1740621179, 0.1364796907, 0.0406219065, -0.0596820712, -0.2285202295, 0.3244856, 0.0586302727, -0.1731659621, -0.210057646, -0.2583577931, -0.2615675032, -0.1521654129, -0.2196032703, -0.0531673841, -0.0192706771, -0.1628286391, 0.0028901042, -0.1240883172, 0.0244236365, 0.4010929763, -0.1081080511, -0.11336568, 0.0903799832, 0.3428356349, -0.2323463857, -0.2853522599, 0.4727142453, -0.3125242889, -0.0826676413, -0.0505313724, 0.1748830825, -0.1998938471, -0.2814690769, 0.2686019242, -0.0161280632, 0.1039671004, 0.0345949344, 0.404281795, 0.1158282682, -0.1011154652, -0.0572217591, -0.4350409508, 0.1116834357, 0.4085424542, -0.2350721359, -0.0952426642, -0.4258362353, 0.1973526627, 0.0779684931, 0.1975916326, -0.2119120359, -0.2755137384, 0.1248587295, -0.1465169042, 0.2670937181, 0.0946129635, 0.0458099358, 0.0242837649, -0.0631354079, 0.0884649903, -0.0965996832, -0.029774148, -0.2549293041, 0.168671146, 0.0313179083, 0.3304585516, 0.0870016515, -0.045147609, -0.159748584, -0.2132951617, 0.0232998915, 0.1865109056, -0.1165359318, 0.5392255187, 0.1041022912, 0.8976368308, 0.2134970576, -0.0534313433, 0.2053499818, 0.2913573682, -0.0549787022, 0.1057695523, 0.3132907748, 0.1365465075, -0.2882300317, -0.0891073197, -0.3128888011, 0.0653655902, 0.2927874029, -0.1010159552, 0.0120882597, 0.4501216412, 0.0216898806, 0.2443932593, -0.1739866734, 0.0332903266, -0.3316776156, 0.1088001356, -0.1615260541, 0.1517755389, 0.1381607056, 0.1890218258, 0.0372144058, 0.2193836123, 0.3896556497, -0.1826100945, 0.1538561881, 0.0071755489, 0.2480259985, -0.2777962685, 0.3476070166, 0.1518508792, 0.2368547618, 0.2364320755, 0.2788347304, 0.0636552647, 0.0487267822, 0.4418359697, 0.150656566, 0.231616348, 0.1368169636, -0.0283414759, -0.1424890608, -0.0037021411, -0.0575640798, 0.0473347716, -0.0968374833, 0.1636190414, -0.3006998599, 0.2142599225, -0.0032681427, -0.3228293657, -0.2563187182, -0.244035989, -0.0155127207, -0.2392958105, -0.5574418902, -0.2417224795, -0.0506323725, -0.1181865185, 0.1758483201, -0.0051933257, 0.2497840524, -0.2485953122, -0.1441937387, 0.2668410838, -0.261879921, 0.3737459779, 0.5232929587, -0.3483281136, 0.0587761924, -0.1005220339, 0.2709251344, 0.2109991908, 0.3054181933, 0.2390975803, 0.3020231724, -0.3668434322, -0.2365858853, 0.1456978917, -0.203313902, 0.1144785881, 0.3290286362, 0.2814852595, -0.2071487159, 0.2027944028, 0.0467126854, -0.1556739211, 0.1896246374, 0.2759168148, 0.2000057548, -0.4089817405, 0.3424042165, -0.0396014564, -0.0322976485, 0.1221434474, -0.142846331, -0.0427372716, -0.2502233982, 0.0933628008, 0.204528302, -0.0232297238, -0.5147496462, 0.039631784, 0.0295873489, 0.3810938001, 0.0585156232, 0.0123013407, -0.4914895594, -0.0101349121, -0.6506744027, -0.0930299014, 0.2496894449, -0.1495497227, 0.1456627995, 0.1661139131, -0.0759355128, 0.0699999034, 0.071890682, 0.5094352961, 0.1752086729, -0.0033010186, -0.4087583721, -0.1453213543, -0.2016131431, -0.2168284357, 0.2321973145, -0.1759067327, -0.0097853197, -0.3974434733, -0.0150046349, 0.0600624494, 0.0033532742, 0.164542228, 0.6511240005, 0.1873808801, 0.0206304789, 0.7741081119, 0.0136422887, 0.0299887061, -0.413204968, -0.1902294606, -0.22279495, -0.0953333154, -0.1362855136, 0.3383520246, -0.0151671246, -0.4483857453, -0.0393703766, 0.2113922685, 0.3170766532, -0.4165564179, -0.0193998888, 0.3332819045, -0.1906139106, -0.092121467, 0.0234425496, 0.3206248581, -0.0995699689, 0.2311319709, 0.0546544418, -0.2851709127, 0.2310817987, -0.3407653868, -0.3436344266, -0.286275357, 0.3049652278, -0.0992924199, -0.1729006767, -0.6666846275, -0.1416709721, 0.282351017, 0.1122600362, -0.0339418128, 0.2595968246, -0.0015447396, 0.0506241545, -0.0288966857, 0.0143094258, -0.1536703706, -0.1183008403, 0.0807449818, -0.1149213165 ]
https://github.com/huggingface/datasets/issues/2669
Metric kwargs are not passed to underlying external metric f1_score
Thanks, that was it. A bit strange though, since `load_metric` had an argument `metric_init_kwargs`. I assume that that's for specific initialisation arguments whereas `average` is for the function itself.
## Describe the bug When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so. ## Steps to reproduce the bug ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True, average="min") f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute() ``` ## Expected results No error, because `average="min"` should be passed correctly to f1_score in sklearn. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute "f1": f1_score( File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score return fbeta_score(y_true, y_pred, beta=1, labels=labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score _, _, f, _ = precision_recall_fscore_support(y_true, y_pred, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support labels = _check_set_wise_labels(y_true, y_pred, average, labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels raise ValueError("Target is %s but average='binary'. Please " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.9.2 - PyArrow version: 4.0.1
29
Metric kwargs are not passed to underlying external metric f1_score ## Describe the bug When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so. ## Steps to reproduce the bug ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True, average="min") f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute() ``` ## Expected results No error, because `average="min"` should be passed correctly to f1_score in sklearn. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute "f1": f1_score( File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score return fbeta_score(y_true, y_pred, beta=1, labels=labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score _, _, f, _ = precision_recall_fscore_support(y_true, y_pred, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support labels = _check_set_wise_labels(y_true, y_pred, average, labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels raise ValueError("Target is %s but average='binary'. Please " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.9.2 - PyArrow version: 4.0.1 Thanks, that was it. A bit strange though, since `load_metric` had an argument `metric_init_kwargs`. I assume that that's for specific initialisation arguments whereas `average` is for the function itself.
[ -0.0516288616, -0.5501688123, 0.0873142183, 0.2038567215, 0.4681912363, -0.0643797219, 0.1748596728, -0.1953882575, 0.3451756835, 0.2828974426, 0.0679135993, 0.4462165534, 0.178371802, 0.024255123, -0.0182034746, 0.0616982765, 0.1058043242, -0.358712703, -0.0846229792, -0.2987220883, -0.4068834186, 0.0102047333, -0.4048624933, 0.0202551726, -0.2006223798, 0.0613630861, -0.0347851627, -0.1700371653, 0.0016801791, -0.0039013943, 0.307756424, 0.1265654415, -0.097067304, 0.3663869798, -0.0001235781, -0.0986129418, 0.4526259601, -0.136898905, -0.0371830612, -0.011109666, -0.1764514893, 0.014776485, -0.1244776472, -0.3509167433, 0.1918561906, 0.1058520675, -0.1739189178, -0.3824929893, 0.233816877, 0.3685025871, 0.0636829734, 0.1573849469, -0.2092085183, -0.1720213443, -0.2959970832, -0.1044454277, -0.185038805, 0.4786292017, -0.6841751933, -0.0733038187, -0.1676169634, 0.0917700604, 0.1501622945, -0.0126521019, 0.7468221784, 0.0399315655, 0.301966399, 0.1136633456, 0.1792100668, -0.1155980602, 0.0679365471, -0.3869572282, -0.4035750031, -0.1462423205, 0.0940089822, -0.7693842649, 0.107783027, 0.0144161377, -0.2267363667, -0.0929727703, -0.1046825126, -0.1168836132, -0.3561751544, 0.076498881, -0.0503031947, 0.6123209596, 0.0015166292, 0.0829182714, 0.1927199513, 0.1838297993, 0.0406336896, -0.2930779755, 0.0284064263, 0.0716914386, -0.2631738186, 0.210820958, -0.0395302996, -0.0636172518, 0.279368788, 0.0515004694, -0.0760851204, 0.0437828302, 0.430503726, 0.0532585792, 0.1974085271, 0.5313013196, 0.4781781733, 0.3300952315, -0.0164008401, 0.0775583759, -0.1973581612, -0.2480201274, 0.2715122402, -0.0058643827, 0.2495121658, 0.1664948314, 0.0198458266, -0.0776021332, -0.2983477116, -0.0815999582, 0.0488366894, -0.013127951, 0.0346071236, 0.1596443057, -0.0479191318, 0.3419953585, 0.0582273528, 0.3695011735, -0.1124333739, -0.0151644442, -0.2224204242, 0.1949930191, -0.4361763, 0.1441707164, -0.2022398412, -0.1239359155, 0.5087714791, -0.0023834857, 0.60644418, -0.463863492, -0.0930646062, 0.0385822393, -0.0192408636, -0.0122122364, -0.4288243651, 0.2412555367, 0.0337990783, 0.0614983737, 0.0438618027, -0.0164111853, -0.3245545328, -0.0843017325, 0.481883347, 0.0413156748, -0.2956654727, -0.1328903437, -0.1859077662, 0.2178625911, 0.0208468251, 0.114158839, 0.036767263, -0.1453687102, -0.5320338011, -0.2027044445, 0.7653899789, 0.0672897995, 0.1244360059, -0.2514540851, -0.133268401, 0.080568634, -0.0005603431, 0.0552250519, 0.0327285081, 0.2792539299, -0.0457490087, 0.0623040833, 0.2406339496, -0.6767406464, -0.4408141673, 0.0251210835, 0.0460097119, -0.0332324468, 0.2000237852, -0.1751341671, 0.352132529, -0.0047274083, 0.1999831647, 0.4301858544, -0.1823698729, -0.0675363615, -0.421083957, -0.0479818732, 0.0489524417, -0.1104324609, 0.425776422, 0.0662508681, 0.0844967216, 0.2618042827, 0.0360829644, 0.1915479898, -0.1473139822, 0.0495128706, 0.0701557323, -0.3530412316, 0.0856516659, 0.0555068217, -0.1457140148, 0.1035254449, -0.1434553713, -0.1681432277, 0.1927149445, -0.3029262722, -0.7353892922, 0.237985, -0.0126787191, -0.1675953269, 0.0279245228, -0.0007102966, -0.1402490139, 0.2118353844, 0.1246922985, -0.2877167165, -0.2155008763, 0.0689764842, 0.2514445186, 0.0879584998, -0.0275265127, -0.1178223491, -0.054013744, 0.2617594302, 0.4194564521, 0.028171191, -0.0429726839, 0.53666085, 0.2259911746, 0.1409415454, 0.1608154178, 0.0340640545, 0.2441125959, -0.0328772664, 0.047811877, 0.3331085443, 0.1005690992, -0.1979620308, -0.097744599, 0.4207774401, 0.1251929253, 0.3327289522, -0.0869357586, 0.272632122, -0.2567585707, 0.0971226767, -0.1023769155, -0.2068926841, -0.077983208, -0.4906931221, -0.0203643702, -0.2348926514, 0.0249764491, 0.1215319484, 0.4332323968, 0.199549526, 0.1523184031, -0.0760575086, -0.2277942151, -0.0624572746, 0.0835696086, -0.1111957803, 0.4364539385, 0.1562025994, 0.0343496241, 0.2055184692, -0.1461106539, -0.0951094925, 0.1814318746, 0.4817385972, -0.0805641785, 0.2435983419, -0.0937528238, -0.1131485105, -0.0635224283, 0.2218560725, 0.0521538407, -0.079274334, -0.5283739567, 0.2364410907, -0.0392133519, 0.2011195421, -0.215909943, 0.0986011997, -0.1711426079, -0.7540906072, -0.1033215448, 0.082149595, -0.1489275694, 0.3635011315, -0.2049849629, 0.2673456073, -0.049650833, 0.0223411266, 0.0366269462, -0.3193078935, -0.1708577424, -0.1480313689, 0.2124333829, -0.0287864394, 0.3443080485, 0.3873266876, 0.2164435387, 0.0731538311, -0.4658790231, -0.1431510299, 0.0814774111, 0.9184205532, -0.0383187495, -0.1673643887, -0.3328227103, -0.07753966, 0.3546082973, -0.2792415321, 0.0753313079, 0.1667622924, 0.0544319674, 0.1211805344, -0.3318284154, -0.1408893168, 0.0599886142, -0.1981330365, -0.1365243345, -0.1284698844, -0.288937211, 0.3429216444, 0.1867971122, 0.000910064, -0.0350908116, -0.083661668, -0.0976049528, 0.0677945241, 0.3448294103, -0.197110787, -0.2251144946, 0.0398049243, -0.0092013935, 0.2385277897, -0.0336469635, -0.3195248544, -0.4439283609, 0.2071540952, 0.1057021916, 0.0439917594, 0.1653722823, -0.089287661, -0.4593805075, 0.1171313673, -0.2870641351, -0.2191005796, 0.3560735285, -0.2641613185, 0.1047710702, -0.1369574219, 0.3790747523, 0.2572435439, 0.6966179013, 0.0503654405, 0.1582950056, -0.0299589951, 0.0022025467, 0.2247804105, 0.0723265857, -0.3129124343, 0.180369541, 0.0302199014, -0.176845625, 0.2460016757, 0.1162328646, 0.292893976, -0.0578407124, -0.3579820395, -0.2600937486, -0.3655107617, -0.1559730917, -0.0219272319, 0.2030692548, 0.1455335766, 0.562700808, -0.4348825216, -0.0822067559, 0.3034933805, -0.1214677021, -0.02663262, 0.0871559978, -0.2401305884, -0.3764371574, -0.1924000829, 0.1694324762, -0.1273615509, 0.4058916271, 0.0894150957, 0.2031163722, 0.1276354194, -0.1006716341, 0.2976211011, -0.2545891702, 0.1782376468, 0.1883015633, 0.1651884168, -0.3848175406, -0.1694615185, -0.1441169232, -0.1351506263, 0.2666933239, 0.0691983551, -0.511523962, -0.1317027509, 0.1223713234, -0.0508826375, -0.2466029376, -0.1446666718, -0.2461934239, -0.2586558759, 0.1532773376, 0.0380988531, 0.1500682086, 0.3929440379, -0.092780523, 0.5734655261, -0.1120118573, -0.2354329377, 0.2397037745, -0.0630112365, 0.5529729128, -0.0194102321, 0.0340888314, 0.1222654134, -0.1265093386, -0.2053160071, 0.122658208, 0.1356470287, -0.3416358232, -0.1437760293, -0.3832888007, 0.5200099945, 0.2293057293, -0.2753110528, 0.1476995647, -0.3316438794, -0.1977546364, -0.0106328456, -0.0570234023, 0.2516384423, -0.0470466204, 0.1179160103, -0.205729723, 0.5350641608, 0.214932695, -0.1624640524, 0.4008515775, 0.1537149847, -0.4334542751, 0.1491287798, 0.3389035165, 0.7175228, 0.478114754, -0.0385889336, 0.4263071716, -0.2586624026, 0.1159343049, 0.0563810132, -0.0041181389, -0.2077730745, -0.3220458329, 0.1919016838, 0.0116221067, 0.1058192402, 0.0006328531, -0.0864820033, 0.178988263, -0.203377828, 0.3869855404, 0.1023425236, 0.2675028741, 0.0608245842, 0.0337736756, -0.1049406454, 0.0172549877, 0.0907754526, -0.1177079156, 0.0535145216, -0.3840712607, 0.03131897, -0.1755130738, -0.0016677536, 0.0522393845, -0.256136775, 0.0642953888, 0.1166626737, -0.0008837779, 0.1194906458, 0.0016807592, 0.537420094, -0.0359360389, -0.1339447945, 0.256985724, -0.4386565983, 0.0324887037, 0.1740621179, 0.1364796907, 0.0406219065, -0.0596820712, -0.2285202295, 0.3244856, 0.0586302727, -0.1731659621, -0.210057646, -0.2583577931, -0.2615675032, -0.1521654129, -0.2196032703, -0.0531673841, -0.0192706771, -0.1628286391, 0.0028901042, -0.1240883172, 0.0244236365, 0.4010929763, -0.1081080511, -0.11336568, 0.0903799832, 0.3428356349, -0.2323463857, -0.2853522599, 0.4727142453, -0.3125242889, -0.0826676413, -0.0505313724, 0.1748830825, -0.1998938471, -0.2814690769, 0.2686019242, -0.0161280632, 0.1039671004, 0.0345949344, 0.404281795, 0.1158282682, -0.1011154652, -0.0572217591, -0.4350409508, 0.1116834357, 0.4085424542, -0.2350721359, -0.0952426642, -0.4258362353, 0.1973526627, 0.0779684931, 0.1975916326, -0.2119120359, -0.2755137384, 0.1248587295, -0.1465169042, 0.2670937181, 0.0946129635, 0.0458099358, 0.0242837649, -0.0631354079, 0.0884649903, -0.0965996832, -0.029774148, -0.2549293041, 0.168671146, 0.0313179083, 0.3304585516, 0.0870016515, -0.045147609, -0.159748584, -0.2132951617, 0.0232998915, 0.1865109056, -0.1165359318, 0.5392255187, 0.1041022912, 0.8976368308, 0.2134970576, -0.0534313433, 0.2053499818, 0.2913573682, -0.0549787022, 0.1057695523, 0.3132907748, 0.1365465075, -0.2882300317, -0.0891073197, -0.3128888011, 0.0653655902, 0.2927874029, -0.1010159552, 0.0120882597, 0.4501216412, 0.0216898806, 0.2443932593, -0.1739866734, 0.0332903266, -0.3316776156, 0.1088001356, -0.1615260541, 0.1517755389, 0.1381607056, 0.1890218258, 0.0372144058, 0.2193836123, 0.3896556497, -0.1826100945, 0.1538561881, 0.0071755489, 0.2480259985, -0.2777962685, 0.3476070166, 0.1518508792, 0.2368547618, 0.2364320755, 0.2788347304, 0.0636552647, 0.0487267822, 0.4418359697, 0.150656566, 0.231616348, 0.1368169636, -0.0283414759, -0.1424890608, -0.0037021411, -0.0575640798, 0.0473347716, -0.0968374833, 0.1636190414, -0.3006998599, 0.2142599225, -0.0032681427, -0.3228293657, -0.2563187182, -0.244035989, -0.0155127207, -0.2392958105, -0.5574418902, -0.2417224795, -0.0506323725, -0.1181865185, 0.1758483201, -0.0051933257, 0.2497840524, -0.2485953122, -0.1441937387, 0.2668410838, -0.261879921, 0.3737459779, 0.5232929587, -0.3483281136, 0.0587761924, -0.1005220339, 0.2709251344, 0.2109991908, 0.3054181933, 0.2390975803, 0.3020231724, -0.3668434322, -0.2365858853, 0.1456978917, -0.203313902, 0.1144785881, 0.3290286362, 0.2814852595, -0.2071487159, 0.2027944028, 0.0467126854, -0.1556739211, 0.1896246374, 0.2759168148, 0.2000057548, -0.4089817405, 0.3424042165, -0.0396014564, -0.0322976485, 0.1221434474, -0.142846331, -0.0427372716, -0.2502233982, 0.0933628008, 0.204528302, -0.0232297238, -0.5147496462, 0.039631784, 0.0295873489, 0.3810938001, 0.0585156232, 0.0123013407, -0.4914895594, -0.0101349121, -0.6506744027, -0.0930299014, 0.2496894449, -0.1495497227, 0.1456627995, 0.1661139131, -0.0759355128, 0.0699999034, 0.071890682, 0.5094352961, 0.1752086729, -0.0033010186, -0.4087583721, -0.1453213543, -0.2016131431, -0.2168284357, 0.2321973145, -0.1759067327, -0.0097853197, -0.3974434733, -0.0150046349, 0.0600624494, 0.0033532742, 0.164542228, 0.6511240005, 0.1873808801, 0.0206304789, 0.7741081119, 0.0136422887, 0.0299887061, -0.413204968, -0.1902294606, -0.22279495, -0.0953333154, -0.1362855136, 0.3383520246, -0.0151671246, -0.4483857453, -0.0393703766, 0.2113922685, 0.3170766532, -0.4165564179, -0.0193998888, 0.3332819045, -0.1906139106, -0.092121467, 0.0234425496, 0.3206248581, -0.0995699689, 0.2311319709, 0.0546544418, -0.2851709127, 0.2310817987, -0.3407653868, -0.3436344266, -0.286275357, 0.3049652278, -0.0992924199, -0.1729006767, -0.6666846275, -0.1416709721, 0.282351017, 0.1122600362, -0.0339418128, 0.2595968246, -0.0015447396, 0.0506241545, -0.0288966857, 0.0143094258, -0.1536703706, -0.1183008403, 0.0807449818, -0.1149213165 ]
https://github.com/huggingface/datasets/issues/2663
[`to_json`] add multi-proc sharding support
Hi @stas00, I want to work on this issue and I was thinking why don't we use `imap` [in this loop](https://github.com/huggingface/datasets/blob/440b14d0dd428ae1b25881aa72ba7bbb8ad9ff84/src/datasets/io/json.py#L99)? This way, using offset (which is being used to slice the pyarrow table) we can convert pyarrow table to `json` using multiprocessing. I've a small code snippet for some clarity: ``` result = list( pool.imap(self._apply_df, [(offset, batch_size) for offset in range(0, len(self.dataset), batch_size)]) ) ``` `_apply_df` is a function which will return `batch.to_pandas().to_json(path_or_buf=None, orient="records", lines=True)` which is basically json version of the batched pyarrow table. Later on we can concatenate it to form json file? I think the only downside here is to write file from `imap` output (output would be a list and we'll need to iterate over it and write in a file) which might add a little overhead cost. What do you think about this?
As discussed on slack it appears that `to_json` is quite slow on huge datasets like OSCAR. I implemented sharded saving, which is much much faster - but the tqdm bars all overwrite each other, so it's hard to make sense of the progress, so if possible ideally this multi-proc support could be implemented internally in `to_json` via `num_proc` argument. I guess `num_proc` will be the number of shards? I think the user will need to use this feature wisely, since too many processes writing to say normal style HD is likely to be slower than one process. I'm not sure whether the user should be responsible to concatenate the shards at the end or `datasets`, either way works for my needs. The code I was using: ``` from multiprocessing import cpu_count, Process, Queue [...] filtered_dataset = concat_dataset.map(filter_short_documents, batched=True, batch_size=256, num_proc=cpu_count()) DATASET_NAME = "oscar" SHARDS = 10 def process_shard(idx): print(f"Sharding {idx}") ds_shard = filtered_dataset.shard(SHARDS, idx, contiguous=True) # ds_shard = ds_shard.shuffle() # remove contiguous=True above if shuffling print(f"Saving {DATASET_NAME}-{idx}.jsonl") ds_shard.to_json(f"{DATASET_NAME}-{idx}.jsonl", orient="records", lines=True, force_ascii=False) queue = Queue() processes = [Process(target=process_shard, args=(idx,)) for idx in range(SHARDS)] for p in processes: p.start() for p in processes: p.join() ``` Thank you! @lhoestq
139
[`to_json`] add multi-proc sharding support As discussed on slack it appears that `to_json` is quite slow on huge datasets like OSCAR. I implemented sharded saving, which is much much faster - but the tqdm bars all overwrite each other, so it's hard to make sense of the progress, so if possible ideally this multi-proc support could be implemented internally in `to_json` via `num_proc` argument. I guess `num_proc` will be the number of shards? I think the user will need to use this feature wisely, since too many processes writing to say normal style HD is likely to be slower than one process. I'm not sure whether the user should be responsible to concatenate the shards at the end or `datasets`, either way works for my needs. The code I was using: ``` from multiprocessing import cpu_count, Process, Queue [...] filtered_dataset = concat_dataset.map(filter_short_documents, batched=True, batch_size=256, num_proc=cpu_count()) DATASET_NAME = "oscar" SHARDS = 10 def process_shard(idx): print(f"Sharding {idx}") ds_shard = filtered_dataset.shard(SHARDS, idx, contiguous=True) # ds_shard = ds_shard.shuffle() # remove contiguous=True above if shuffling print(f"Saving {DATASET_NAME}-{idx}.jsonl") ds_shard.to_json(f"{DATASET_NAME}-{idx}.jsonl", orient="records", lines=True, force_ascii=False) queue = Queue() processes = [Process(target=process_shard, args=(idx,)) for idx in range(SHARDS)] for p in processes: p.start() for p in processes: p.join() ``` Thank you! @lhoestq Hi @stas00, I want to work on this issue and I was thinking why don't we use `imap` [in this loop](https://github.com/huggingface/datasets/blob/440b14d0dd428ae1b25881aa72ba7bbb8ad9ff84/src/datasets/io/json.py#L99)? This way, using offset (which is being used to slice the pyarrow table) we can convert pyarrow table to `json` using multiprocessing. I've a small code snippet for some clarity: ``` result = list( pool.imap(self._apply_df, [(offset, batch_size) for offset in range(0, len(self.dataset), batch_size)]) ) ``` `_apply_df` is a function which will return `batch.to_pandas().to_json(path_or_buf=None, orient="records", lines=True)` which is basically json version of the batched pyarrow table. Later on we can concatenate it to form json file? I think the only downside here is to write file from `imap` output (output would be a list and we'll need to iterate over it and write in a file) which might add a little overhead cost. What do you think about this?
[ -0.2420467287, -0.3245051801, -0.0334172957, -0.0440205336, -0.0977220982, -0.0860113725, 0.4022953808, 0.1104016379, -0.0120916683, 0.332368046, -0.0399443097, 0.2764455676, -0.1313704252, 0.2204845101, -0.2396436185, -0.0810557604, 0.1407508999, -0.1243922263, 0.4335383475, 0.1816552877, -0.2526789606, 0.3090566397, -0.133423999, -0.2920538485, -0.1443659216, -0.1116198003, 0.1702492982, 0.1693735272, 0.1813989282, -0.2050730884, -0.2966970503, 0.1466353983, -0.1574243754, -0.0663380548, -0.0001212066, -0.0165757071, 0.3360562027, -0.0251884684, 0.1674969345, 0.0298164412, -0.2610718906, -0.2657980621, -0.111815244, -0.3679597974, 0.158918187, 0.2573315501, 0.0796102509, -0.1090116426, 0.2735992968, 0.1824124753, 0.0266379584, -0.0381317399, 0.2731879652, 0.187173456, -0.1231685504, -0.0584273487, -0.1341991425, -0.1373111457, 0.1717836559, 0.288392365, 0.1722885519, 0.2656450272, -0.0714092925, -0.0292126369, -0.0493074246, 0.079025045, 0.0676732734, -0.2999534607, -0.0728115067, 0.1627263129, -0.1009481624, -0.0941404477, -0.3561595976, -0.2951527834, -0.1113354713, -0.5862669349, -0.0910204202, -0.0569904596, -0.0046952954, 0.0016199034, -0.2583358586, -0.1352897435, -0.1115968972, -0.097502321, 0.0559728071, -0.0492386185, 0.1559401304, 0.2313603759, 0.4239073694, -0.1160159856, -0.2813235223, -0.0367553271, 0.1901651323, -0.0995846838, -0.3182100058, -0.2331992537, 0.0670724288, -0.2741037309, -0.1916322261, 0.2405325621, -0.0652906522, 0.3501674831, 0.1451126784, 0.2800191939, -0.0082596792, -0.3676021397, 0.1055697054, -0.2028028518, 0.0866223276, 0.0854694843, -0.0438372158, 0.0142234368, 0.1041974425, -0.1864197403, 0.2379483134, 0.0610439591, -0.2247463465, 0.0134621216, -0.1326915324, 0.1245781705, 0.040915139, -0.1848429739, -0.1038549468, 0.11811883, 0.1211151257, 0.4554604888, -0.2897271514, 0.1267384142, -0.1991173178, 0.0845800042, -0.0060030539, 0.1752080172, -0.1212142035, 0.3038286865, -0.0945644304, 0.3363531828, -0.1660329401, -0.1813059002, 0.4267487526, 0.0143283848, 0.0071665277, -0.161507681, -0.0277647786, 0.3133509457, -0.0525820479, -0.0263765287, -0.0027024429, -0.6090405583, -0.5215037465, 0.0872400478, -0.4247318208, -0.5617136359, 0.0674503967, -0.0105562592, 0.0413321815, 0.0530503355, -0.7100689411, 0.1912888438, 0.1468508244, 0.0172507111, -0.2996540666, -0.031365484, -0.397420615, -0.3379456103, 0.0040912293, 0.1846761107, -0.0345501713, 0.1666766703, -0.10573183, 0.1573322564, 0.491198808, 0.3862859905, 0.04172666, 0.1512307972, 0.138414979, 0.4020536244, 0.1216072664, -0.2359778136, -0.3532423079, 0.3436237872, -0.1950225085, 0.1283871979, 0.5897712111, 0.1619931459, 0.1941809803, -0.1963892132, 0.5543402433, 0.0841372311, -0.0459817164, 0.2191113234, -0.2883825004, -0.0190756824, -0.6522378922, 0.2896905541, 0.068086125, 0.0845359191, 0.1911188215, -0.2741481066, 0.2790183723, -0.1253768355, 0.0269498974, 0.1180229783, 0.2163127661, -0.1152399927, -0.2634330094, 0.1062836573, -0.0953334048, 0.3388622999, 0.248224169, 0.1104215086, -0.0917063951, -0.1606249958, 0.2462696433, 0.179657951, 0.0966828242, 0.1453394741, -0.0540783182, -0.220189929, -0.1485588104, -0.0962634757, -0.0684250668, 0.5936163664, 0.1674357057, -0.0775217861, -0.412217021, 0.1772021353, 0.0901105553, -0.1776475608, 0.0167184118, 0.1800412387, 0.0830762386, -0.1811237931, 0.2029943168, 0.0858523995, 0.2311604619, 0.1759351939, -0.020178223, 0.3995904028, 0.0584954582, 0.1984228641, 0.0361030921, -0.2241057605, 0.0027489951, -0.2517609596, -0.1687453389, 0.7329334021, 0.233999759, 0.5969923735, 0.1784470826, -0.1098151878, 0.2974079847, 0.005856066, 0.0032610167, -0.0948938355, 0.1027390733, 0.4333763123, -0.4786274731, -0.2609364688, -0.3565050066, 0.4948656559, 0.325558424, 0.1614056826, -0.258035332, 0.2964330912, 0.3624888659, 0.0195345674, 0.1627064943, 0.3779320717, 0.6566363573, 0.2248313129, -0.1344009936, -0.0622734763, 0.0452873334, -0.3232688606, 0.0503762066, 0.094354026, 0.3693327606, 0.039442718, 0.207811892, 0.0152689377, 0.0442841798, -0.5829307437, -0.067074798, 0.0321430676, -0.1475298703, 0.1656359136, -0.1907571107, 0.5931074023, 0.0694527403, 0.0002796353, 0.1994153559, -0.4266071618, -0.0189694893, 0.5152562261, -0.1510578394, -0.1607412845, 0.1470748782, 0.0544021167, -0.3848678768, -0.3304622173, -0.2615265846, -0.0200197008, 0.1954407692, -0.088189289, 0.3558397591, -0.0667839199, 0.2389356196, -0.0046787267, 0.0458215177, 0.0259415358, -0.1893890798, -0.0488841049, -0.1514610648, 0.1716160774, -0.0206062682, -0.1644490808, -0.0581386723, -0.2877834737, 0.2799780369, 0.1137815714, -0.0842128694, 0.2283852696, -0.2359643579, -0.1618584692, 0.1569350064, 0.0827050582, -0.2531998158, -0.2911525667, 0.5311350226, 0.138175115, 0.3013704121, -0.4351003766, 0.1738482416, -0.1655336469, 0.0203212723, 0.0540143549, 0.0509409346, -0.4110955298, 0.3229978979, -0.0502162389, -0.094024159, -0.1275964528, -0.019811606, 0.1817742586, 0.1251270324, -0.2338484228, -0.3862826526, -0.2070028633, 0.1083223745, -0.0194040854, -0.2067754716, 0.4428940415, 0.1868673563, -0.1519838423, 0.1370429397, -0.1170817316, 0.1773800105, -0.1496584117, -0.1970188618, -0.0474347584, 0.512417376, 0.1980291605, 0.6017044187, 0.2563289702, -0.0557649136, 0.2804163098, 0.1276685596, -0.1844821721, -0.1950068027, -0.1390613616, -0.0172405392, -0.1265536249, 0.0335101187, -0.051508043, 0.02743016, -0.4436278939, -0.0378677286, 0.1597199589, -0.3875333369, -0.3500619531, 0.2630935013, 0.2034055442, -0.1624296308, -0.1210544556, -0.2143115401, -0.2355108261, 0.0491951704, -0.2517800927, 0.4220280945, 0.1440107971, -0.3891449869, -0.3714792728, -0.4610386491, -0.6336140037, 0.4533958137, 0.1017769724, 0.125910148, 0.0799117014, -0.1299971044, 0.1769376248, -0.4740132093, 0.4230642617, -0.2788919806, -0.341928184, 0.4411658049, -0.2057164758, -0.1236962229, -0.0165873393, 0.0198712237, 0.2513071597, 0.4258914292, 0.7600975633, -0.3608618379, -0.1523103565, -0.0209073201, -0.2820305526, -0.1159220859, -0.3202481568, -0.1753597409, -0.3228885531, -0.4666148424, 0.1101013571, 0.1017076224, 0.4080091119, -0.0057400973, -0.083637245, -0.0733941495, -0.2006116658, 0.3292185664, -0.131338045, -0.1254904121, 0.0221710447, 0.249297142, -0.483668685, 0.0671682432, 0.2951050401, 0.2029373497, -0.0138543816, -0.099857986, -0.1386742741, 0.1534724385, 0.3938666582, 0.2586362362, 0.0421480462, 0.1490001827, -0.2551949024, 0.6260346174, -0.0486516729, 0.0141148549, -0.0253271479, 0.1528863311, -0.2188194543, 0.0956198871, 0.3878549933, 0.1129262075, -0.0957067385, 0.0178130046, 0.1687096059, -0.0675470084, 0.1491487324, 0.2251412421, 0.989810288, -0.3000161648, 0.1346516311, -0.1427123249, 0.0296357684, -0.060962189, -0.5919107795, 0.1342045814, -0.0659706742, -0.1331828237, 0.0868166089, -0.042548541, 0.2160750926, 0.3780529499, -0.0626915842, 0.3177192807, 0.4126956761, -0.4591329098, -0.0893738195, 0.3414220512, -0.2101228088, -0.5266346931, -0.0600297116, -0.0211201701, 0.2636204064, -0.4082717001, 0.0089065228, -0.1239406392, -0.1102141589, 0.082662493, -0.3039129376, -0.0807647631, 0.1431287378, 0.1746757627, 0.1177011877, -0.1286085248, 0.0048058643, 0.143833667, 0.3051339388, -0.0194027983, -0.064100951, -0.1503510028, -0.0903272331, -0.0649671257, 0.1151673049, -0.4983928204, 0.3140556216, -0.2099169344, -0.1760049909, -0.1197831705, 0.1505509317, -0.5108480453, -0.1043043956, 0.2440751195, 0.2966708243, 0.2887215912, -0.2108634561, 0.3275487721, -0.4023463428, -0.2975880802, -0.0075662392, 0.2786343992, -0.1586076468, 0.5502758622, -0.5499783754, -0.1529861689, 0.0382565148, 0.1312534213, 0.1465373784, -0.0624501668, 0.0038703398, -0.0976630151, -0.2169624418, -0.0971848369, 0.1312487274, -0.0407378785, 0.055337064, 0.1016307399, -0.1436052471, -0.1815694273, 0.0639712438, -0.1180495396, -0.0877140239, -0.0725389197, -0.0936047733, -0.3099120855, -0.2076790929, 0.1351603717, -0.1702670753, -0.0460892506, -0.1275119185, 0.1745931953, -0.2650547922, 0.2505449355, -0.1761874259, 0.0518845469, -0.2666442096, 0.0531453378, 0.2940181494, -0.1134409457, 0.1016724259, 0.1896567047, 0.0879805684, 0.2687369585, -0.2080686539, -0.1312022507, 0.1138238385, 0.1918834299, -0.0635317639, 0.0977950469, 0.1916431487, 0.2487066686, -0.3594392836, -0.1701643765, 0.060946878, 0.0068937507, -0.2717463374, -0.1422348768, 0.7559420466, 0.067043826, 0.0869187191, 0.1275441349, 0.0370015055, 0.6623572707, -0.2667346597, 0.2846897244, -0.0016676207, -0.171343118, 0.0210854728, 0.1079127342, 0.2110727429, 0.1510643214, 0.4081351161, -0.0054548634, -0.2449517697, -0.1877128929, 0.251083076, 0.0112664076, -0.0196197629, 0.026408989, 0.1363795698, 0.0955167785, 0.0654901117, -0.3602883816, 0.2202572227, -0.091475971, 0.1921834052, 0.3553710878, 0.0795508996, 0.1364493668, -0.1006600708, 0.0064261048, 0.1384613961, -0.2223732471, -0.4793305099, -0.4439966381, 0.1628615558, 0.1356538385, 0.3500677347, -0.0445966013, 0.2138267606, 0.1391213834, -0.0987007618, 0.9213712811, 0.2334342003, 0.2134945542, -0.015367059, -0.1005678475, 0.0820202306, 0.1242320761, 0.0911822692, 0.3882042766, 0.1295156777, 0.249844119, 0.022147622, 0.0599890053, -0.2447604388, 0.4115549028, 0.141762659, -0.4825481176, 0.1349291354, 0.0269400291, -0.1517358869, 0.0484981015, -0.0439248793, 0.1780866534, 0.4796354771, 0.1804549098, 0.4221504629, 0.0608021691, -0.1545419693, -0.1378036439, 0.493632108, -0.2833920717, 0.0602760799, 0.2513489723, -0.2618724406, -0.0639844462, -0.0025813887, 0.3616575897, 0.0012847884, 0.0663286075, 0.2202925533, -0.1101967096, 0.0451878794, -0.0529711619, 0.3104572892, 0.0357820578, 0.287612766, 0.1312078238, 0.0291608702, -0.1718655229, 0.0844167992, -0.0481677167, 0.0933859274, -0.0488118827, 0.4057815075, 0.0755932927, -0.5193163157, 0.1798738688, 0.2910908461, -0.4833244979, -0.2664079368, 0.1483105868, -0.6427667141, 0.0150821013, 0.0711625442, 0.0286361203, -0.0711163729, 0.3917161822, -0.429982096, 0.4232680798, -0.3951327503, -0.0731767789, -0.1655282229, -0.0722798929, -0.1821724027, 0.1409938633, 0.0246723536, 0.4999510348, 0.2592583895, 0.4662973583, -0.0587025881, 0.0591156445, -0.3290486038, 0.591494441, -0.3510631621, 0.4751754403, 0.390550077, -0.2426531911, 0.0615284704, -0.2855625153, 0.4005369544, 0.0933431163, 0.0339244381, -0.1799998432, 0.2867393792, 0.0044839811, 0.2107119262, 0.1944088936, 0.1932998449, 0.0686055645, -0.311837256, -0.1851779073, -0.0143259093, 0.3048583865, -0.1415354609, -0.0948520228, -0.115919061, 0.5137309432, -0.2455668598, 0.3382499218, 0.0592240654, -0.1040128022, -0.1777089685, -0.4909541607, -0.1758884043, 0.0819058418, 0.0400155783, 0.3124933541, -0.1231914684, 0.4903733134, 0.2959267795, 0.032753665, -0.1817991287, -0.1321295947, 0.2517081797, -0.1657280028, -0.1034459546, -0.0664740056, 0.2598735988, -0.4155712128, 0.5195026398, -0.2491628379, -0.19546552, 0.2228463441, 0.0593370907, -0.3831812441, 0.5472028255, 0.0982535928, -0.6427063346, -0.0774779841, -0.192046538, -0.0915118307, -0.2088401914, -0.2902124524, -0.2356254309 ]
https://github.com/huggingface/datasets/issues/2655
Allow the selection of multiple columns at once
Hi! I was looking into this and hope you can clarify a point. Your my_dataset variable would be of type DatasetDict which means the alternative you've described (dict comprehension) is what makes sense. Is there a reason why you wouldn't want to convert my_dataset to a pandas df if you'd like to use it like one? Please let me know if I'm missing something.
**Is your feature request related to a problem? Please describe.** Similar to pandas, it would be great if we could select multiple columns at once. **Describe the solution you'd like** ```python my_dataset = ... # Has columns ['idx', 'sentence', 'label'] idx, label = my_dataset[['idx', 'label']] ``` **Describe alternatives you've considered** we can do `[dataset[col] for col in ('idx', 'label')]` **Additional context** This is of course very minor.
64
Allow the selection of multiple columns at once **Is your feature request related to a problem? Please describe.** Similar to pandas, it would be great if we could select multiple columns at once. **Describe the solution you'd like** ```python my_dataset = ... # Has columns ['idx', 'sentence', 'label'] idx, label = my_dataset[['idx', 'label']] ``` **Describe alternatives you've considered** we can do `[dataset[col] for col in ('idx', 'label')]` **Additional context** This is of course very minor. Hi! I was looking into this and hope you can clarify a point. Your my_dataset variable would be of type DatasetDict which means the alternative you've described (dict comprehension) is what makes sense. Is there a reason why you wouldn't want to convert my_dataset to a pandas df if you'd like to use it like one? Please let me know if I'm missing something.
[ -0.0573707223, -0.2296810895, -0.1969854683, 0.0512580872, 0.201422736, 0.218650192, 0.5181803703, 0.1173711419, 0.3343808353, 0.4082848132, -0.1473215967, 0.3830781877, 0.0007235444, 0.2195995152, -0.2610400915, -0.3490297794, -0.1463272274, 0.1411354691, 0.0857270882, 0.0135872513, -0.172769919, -0.3008393049, -0.3479202986, 0.0155919688, -0.0639110208, -0.2046382278, -0.248748228, -0.2731151879, -0.3745284081, -0.2284193784, -0.0509770475, 0.4818702936, -0.0998930186, 0.0420988835, -0.0001022023, -0.2425405383, 0.0494162738, 0.0450043604, -0.3728042841, -0.3197795749, -0.1985396445, -0.2248337865, 0.3259706795, -0.3805674016, -0.1459853202, -0.1769073606, -0.2034195065, -0.2526133657, -0.0332645662, 0.0878676549, 0.3098188043, -0.0141791878, -0.2125747949, 0.000796201, -0.0395887829, 0.163222149, -0.1948771477, -0.0862277672, 0.4251425862, -0.0222680867, 0.24046655, 0.1023098454, -0.2389609069, 0.0799366161, 0.0789678693, 0.1655118018, 0.2781158388, -0.2613496482, 0.080977276, 0.2927644849, 0.7717718482, -0.1894665956, -0.4718899727, -0.210240677, 0.4684533775, -0.1977853328, -0.3191840053, 0.2664963305, -0.2287951261, 0.2275188267, 0.1129403636, -0.2688916028, -0.1090146452, 0.1486848146, -0.1557210237, 0.3326571286, -0.0430133641, 0.0551570244, 0.131431371, -0.022234764, 0.1233639196, -0.104908593, 0.1292734593, 0.1556301564, -0.6503587365, -0.217284739, -0.2239075899, -0.202928409, 0.1681587398, 0.2159996182, -0.0236094799, -0.023137914, -0.1188304052, 0.3164629936, 0.4838554263, -0.0458062701, -0.0439748019, 0.3890668452, -0.0343435034, -0.151744619, 0.0094911782, -0.0180742908, -0.091057241, 0.0409744382, 0.0095806802, 0.2227684855, 0.0332287215, 0.0254824553, -0.2143531293, -0.2053003311, -0.104871735, -0.2566319704, -0.0612867624, 0.4625501037, 0.1120596603, 0.390771687, -0.1936306655, 0.2314953357, 0.2148042917, -0.2290377468, -0.2068744898, 0.2864534259, 0.158229351, -0.1184985042, 0.1220542416, 0.0670837238, -0.178830564, 0.3173830211, 0.0300924052, -0.395683825, -0.1217476353, -0.3682628274, 0.0412879437, 0.1645926088, -0.017106792, 0.104274787, 0.2690171003, -0.2168730944, -0.3145560622, 0.3942932189, 0.0467407629, -0.1573521197, -0.2171416283, 0.1881260127, 0.1842947751, -0.3066885471, -0.0916229039, 0.5061644912, -0.0624876581, 0.3623631299, 0.1700689644, 0.0290994979, 0.049587816, -0.3428075612, -0.0607745387, 0.3431543112, -0.5089309812, 0.0842320397, 0.1649496704, -0.0967291519, -0.0080226446, 0.1633624285, -0.2780389786, 0.0863050222, 0.2251903266, 0.0358409137, 0.3047424853, -0.388433665, -0.1144218594, 0.1912814975, 0.0785426795, 0.1773523986, 0.4585634172, 0.1077366769, 0.1881622374, 0.2333645076, 0.0577282347, 0.193340525, 0.0248730984, 0.0773600265, 0.2218865007, -0.4066191018, 0.276448369, 0.1477504522, -0.1539059728, 0.1683892012, -0.1599244475, -0.1816746742, 0.3445221782, -0.2589390874, -0.138562277, 0.1810885966, 0.3131218255, 0.1123531759, -0.0972968712, -0.4043032825, -0.2775419354, 0.1191289425, 0.4883981049, 0.138001889, 0.0122438576, -0.4381888211, -0.1534579694, 0.0582770668, -0.1595159918, 0.165439114, 0.2506510317, -0.2094157934, -0.1075733528, -0.1019808576, -0.5070764422, 0.3666982651, -0.1956880093, 0.1371776909, 0.1988459378, 0.1711436063, 0.0042809024, 0.1743841171, 0.0299107842, 0.0195627529, 0.2008828074, 0.1793606877, 0.1491050422, 0.0841175243, 0.1976446807, -0.0701241717, -0.301687032, -0.030309746, 0.0741780028, 0.1923078895, -0.0160455983, -0.2838521898, 0.125421524, 0.0264125783, -0.1852657795, 0.093623817, -0.1243554503, 0.2316794842, 0.0130066602, 0.0152298184, 0.1907402426, -0.1493622512, -0.1304418296, -0.3635960817, 0.0054598064, -0.0161966458, -0.0854952559, -0.036862243, -0.479896456, -0.0239615068, 0.0446461625, 0.1415292472, 0.1112430915, 0.0083404137, 0.2061224431, 0.1885335445, -0.0144461272, 0.2635806799, 0.3555057943, 0.2335149795, -0.2185616791, -0.1486164778, -0.0873393118, 0.0437039472, 0.1772315204, 0.1707769781, 0.0495430827, 0.1987359524, 0.1211192235, 0.0136510283, -0.1565973312, -0.1618947238, 0.2901346684, 0.148246184, -0.0390658341, -0.0574766472, -0.4436931908, -0.3970939815, 0.2507374883, -0.1709856838, 0.2013521194, -0.2210759968, -0.0407894403, -0.0284857862, 0.0827124417, -0.1632944047, -0.1330615878, 0.3956555426, -0.0260784253, -0.0435181558, 0.1253520101, -0.0867815018, 0.2436128557, 0.1832945943, 0.0363315381, 0.0684395581, 0.1590241343, 0.5090218782, -0.1408690661, -0.2823235095, 0.0954572037, 0.030174667, -0.1105844229, 0.1571656168, 0.2084632069, 0.2270526886, -0.028624516, -0.0005951978, 0.154289335, 0.5449563265, -0.0339258648, -0.1696295887, 0.2931046188, -0.0085181035, -0.0150813004, -0.1630134732, -0.4817565978, -0.3427664638, 0.2621434033, -0.0571563318, 0.1788181961, -0.0686619356, -0.0465506166, -0.309900105, 0.1274473816, 0.3333833218, -0.3092622459, 0.1138573438, 0.1015174463, -0.112733826, -0.1350673884, -0.2750649154, 0.0670814142, 0.0355207622, -0.1064129993, -0.0677804425, -0.2876261473, -0.2491892874, -0.1500191391, -0.2234166265, 0.1457673907, 0.0861837342, 0.1993305236, -0.0843114182, -0.0341171622, -0.1865899265, 0.0430479906, 0.3065353632, -0.1867841035, 0.1513661444, 0.20288077, 0.0744919479, 0.0181315523, 0.4157295823, 0.2260368764, 0.2796542346, -0.073942706, -0.0371485613, 0.0357309468, -0.3922091424, -0.3193702698, -0.204772681, 0.0584676899, 0.041664023, -0.0320725888, -0.0897012427, -0.2026484609, 0.2067473829, -0.1931203455, -0.1450479776, 0.0521600023, -0.4818815887, 0.0891079679, -0.115897961, -0.1679167747, -0.1721760184, 0.219962433, -0.1573327482, 0.0282428302, 0.1448344141, -0.3076138496, -0.1853606105, -0.0703726262, -0.206643641, 0.0887705684, 0.1710276157, 0.2410679013, 0.1262308359, 0.1908345819, 0.2949065268, 0.1917140186, 0.6330706477, -0.3205324411, -0.4039384127, 0.0916703045, -0.2199679464, -0.2654647529, 0.0371430255, -0.2144473046, -0.1425647438, -0.2723599374, 0.2915306389, -0.4198491275, -0.150518924, 0.3161566854, 0.3153994381, -0.2118121684, -0.4538207352, 0.0145482579, 0.1172988862, -0.2215429544, -0.0664240643, 0.2788382173, 0.1231233999, 0.1009593979, 0.0123828696, -0.1080930606, -0.1009779349, 0.2842497528, 0.037002977, -0.0776290819, -0.0487516373, 0.1209401339, 0.0725594237, -0.0783497319, -0.1066667736, 0.5034685135, -0.2633040845, -0.3774498999, -0.1949515641, -0.0676827282, 0.6232671738, 0.3686960638, 0.1476385295, 0.7594147921, -0.3097070158, -0.0316557027, -0.0905639529, -0.4885081947, 0.3002042472, -0.055530142, -0.3722089827, -0.5473952889, 0.4530597925, -0.0088566169, -0.0950870812, 0.3091561198, 0.3756285906, -0.0651139617, 0.3224090338, 0.1247902438, 0.813847065, -0.2744163573, -0.1229400933, -0.3575755656, -0.1176921949, 0.4589073956, -0.082384482, 0.1852677613, -0.2941489518, -0.3110413849, -0.049784597, -0.0187120941, 0.2967815697, 0.2600572705, -0.3409374058, 0.0782408565, -0.4393919706, 0.0698703006, 0.1553507447, 0.2486591041, -0.1398485601, -0.2777965665, -0.1104581133, 0.1425045878, -0.1122367978, -0.1461514831, 0.1312574446, 0.1054698974, -0.0545461252, 0.0209373366, -0.4702292979, -0.2768164873, -0.0765132159, 0.1107348353, 0.0855400041, -0.1964541972, 0.3327315748, 0.2712892294, 0.1146993637, 0.223853901, 0.1099857986, 0.0301440582, 0.1507938951, 0.067631498, -0.2251381129, 0.0081454599, 0.2617018223, 0.1127972081, -0.334625423, 0.3105542362, 0.1175568104, -0.5033831, -0.3143620193, 0.2931496501, 0.3977463841, -0.2647151053, -0.4058217704, -0.0048083179, 0.1831259429, -0.3095090091, 0.1849839985, 0.0178681556, -0.0193056464, 0.3045940399, 0.0085479626, 0.1418853402, -0.062770322, 0.0762441605, 0.179188177, -0.0277929977, 0.2033111602, 0.1564653516, -0.2664811909, -0.2013558745, -0.0680584162, -0.1449983865, 0.0511509404, 0.1259909421, -0.0413154289, 0.019913096, 0.0658487007, 0.3281393349, 0.0102789272, 0.2176454216, -0.3694008589, -0.3393455744, 0.0748290196, 0.1342154145, -0.0659990385, 0.2429778427, -0.117023997, 0.0776226968, -0.3198791742, 0.239306435, -0.3837424517, -0.1677520722, -0.338457793, 0.0895202681, 0.4663955271, 0.0885882005, -0.3127020001, -0.0063826027, 0.3497032523, 0.1977301091, 0.364748925, -0.3827804923, -0.2339259833, 0.0406804383, 0.1689042598, 0.329472065, -0.0043326518, -0.2240868658, -0.2607192099, -0.1267700791, 0.1428364515, 0.2729925215, 0.009267048, 0.1664812118, 0.0210781917, -0.2067382783, -0.2106307894, 0.1579301357, -0.1462677717, -0.1051930636, 0.294770658, 0.1650697887, 0.0194180328, -0.0111259408, -0.4132356942, 0.1817750335, -0.0364189185, -0.0044775568, -0.066292733, 0.0791307092, 0.1916420013, -0.0268948656, 0.3772664964, 0.1328654438, -0.1443951875, 0.2026528865, 0.2215278596, 0.2833152711, -0.3196438253, -0.316865325, -0.1006963477, 0.0153602036, 0.3064982295, 0.6884784698, 0.0813973397, 0.2372496575, 0.1005140468, -0.3109855652, 0.2229533792, -0.0204652585, 0.0466400757, 0.5463963747, 0.1399904937, -0.3324565589, 0.2372802049, 0.2519735694, 0.0924376771, 0.2494702488, -0.0068377438, -0.0004600633, 0.1208665296, 0.0719120204, 0.3791204393, -0.0603929125, 0.5356015563, -0.0790698454, -0.1834257692, -0.1936291605, -0.1061274558, 0.0947578102, -0.0275886562, 0.0609729625, -0.2364515662, 0.3580083251, -0.0336461514, -0.2596780062, 0.0461702719, -0.1539089233, 0.1392643303, -0.1982194185, -0.0651954934, -0.3060320318, 0.0937929675, -0.1541678756, 0.4040585458, -0.3358252347, 0.295990169, -0.0621732511, 0.4309234619, -0.3050547242, -0.0093302382, 0.0279921703, 0.0790499225, 0.127895996, 0.1090110838, 0.0680752471, 0.2636185884, 0.0589404777, -0.110925898, -0.4688368738, -0.1591544002, 0.2030150443, -0.0085284729, 0.0494161919, -0.0306812897, 0.4116615653, 0.2149249017, -0.183403492, -0.0107745109, 0.2067624032, 0.3893943727, -0.6877525449, 0.1380579919, 0.3034944534, -0.2025023997, 0.1468919963, -0.0361427851, -0.4176559448, -0.2483060211, 0.1312695742, -0.0821689889, 0.0702012703, 0.1576976627, 0.1691782475, -0.0320064761, -0.1209989265, -0.0300239958, 0.1371433288, -0.1160304546, 0.0243170336, -0.2183525562, -0.246598199, -0.0963772014, -0.5737490058, 0.3190419972, 0.089186646, 0.1561414152, 0.2560800016, 0.1114951149, -0.0466075987, -0.1248680502, 0.5571189523, -0.1855018735, -0.3769248426, 0.1967998147, 0.0130887385, -0.0289813224, -0.1083409488, 0.1454730332, 0.1599441022, 0.1609099358, -0.3709368706, 0.2120977491, 0.1374094784, 0.090412721, 0.0504023731, -0.0397356227, 0.4085709155, 0.0949268639, 0.1440529972, 0.0353954397, 0.0942069739, -0.2229649574, -0.0063293292, 0.1614855081, 0.2372975945, -0.1276752055, -0.0223604012, 0.1613536775, -0.0775216073, 0.0235079676, -0.0818513706, -0.1837727576, 0.144762069, 0.3329291046, -0.1348550469, -0.0858379379, 0.010696956, -0.0539036021, 0.1986064911, 0.1370076984, -0.3265914917, 0.2328224778, 0.0593989715, -0.3388377428, 0.0896387249, 0.0826267153, -0.0613288134, 0.1992233545, -0.2359573543, -0.1262846291, 0.3931286037, -0.0934769735, -0.1359140724, 0.4957375228, 0.1258693635, 0.0235415883, -0.1318911165, -0.2299886942, -0.0278314445, 0.187517643, -0.4701177478, -0.2491231412 ]
https://github.com/huggingface/datasets/issues/2655
Allow the selection of multiple columns at once
Hi! Sorry for the delay. In this case, the dataset would be a `datasets.Dataset` and we want to select multiple columns, the `idx` and `label` columns for example. My issue is that my dataset is too big for memory if I load everything into pandas.
**Is your feature request related to a problem? Please describe.** Similar to pandas, it would be great if we could select multiple columns at once. **Describe the solution you'd like** ```python my_dataset = ... # Has columns ['idx', 'sentence', 'label'] idx, label = my_dataset[['idx', 'label']] ``` **Describe alternatives you've considered** we can do `[dataset[col] for col in ('idx', 'label')]` **Additional context** This is of course very minor.
45
Allow the selection of multiple columns at once **Is your feature request related to a problem? Please describe.** Similar to pandas, it would be great if we could select multiple columns at once. **Describe the solution you'd like** ```python my_dataset = ... # Has columns ['idx', 'sentence', 'label'] idx, label = my_dataset[['idx', 'label']] ``` **Describe alternatives you've considered** we can do `[dataset[col] for col in ('idx', 'label')]` **Additional context** This is of course very minor. Hi! Sorry for the delay. In this case, the dataset would be a `datasets.Dataset` and we want to select multiple columns, the `idx` and `label` columns for example. My issue is that my dataset is too big for memory if I load everything into pandas.
[ -0.1123059094, -0.3079829514, -0.1617852449, 0.1745086908, 0.2768076658, 0.2954531014, 0.4830074012, 0.1078619808, 0.2709564865, 0.4354279041, -0.1071547046, 0.1811607331, -0.0057087317, 0.1110231802, -0.120576553, -0.4149239063, -0.146011427, 0.1239383668, 0.1093642265, 0.1609404087, -0.1801460385, -0.40869838, -0.2840022743, -0.0011803872, -0.0922962576, -0.1219145283, -0.3127509356, -0.3032179177, -0.3770623207, -0.2049787194, -0.0196614843, 0.3044012487, -0.0134688579, 0.1382130831, -0.0001026555, -0.2590750456, 0.1286848336, 0.1175029799, -0.2449210733, -0.1337270439, -0.2202559561, -0.339571923, 0.2827406824, -0.3361620903, -0.0875568613, -0.1732638329, -0.255663842, -0.135838002, -0.2600298226, 0.0658952519, 0.3234618008, 0.1528977603, -0.1889439672, 0.0023041614, 0.0063466225, 0.1277682185, -0.2579076886, -0.1608471721, 0.4758286774, -0.1474865079, 0.3507173061, -0.0039974893, -0.1867641807, 0.0326896608, 0.0836208835, 0.1034263074, 0.2566024065, -0.2503732145, 0.1066818982, 0.2868084013, 0.7255770564, -0.1725482047, -0.4039958417, -0.1537710577, 0.5212610364, -0.3376423717, -0.213101387, 0.5081314445, -0.1903934181, 0.1000798047, -0.0466959402, -0.3265554309, -0.0729806796, 0.2228529006, -0.108190015, 0.2732259929, 0.0282640941, 0.0392636731, 0.3872615099, -0.0016128401, 0.2152477652, -0.1840661019, 0.176838249, 0.23212111, -0.7773069143, -0.2501904964, -0.2356763333, -0.1116905585, 0.2165345848, 0.1640050262, 0.0277209152, -0.1002437174, -0.1828403175, 0.2871477902, 0.4455345869, -0.0151288444, -0.3066450357, 0.3155573905, 0.1022446752, -0.0562237464, 0.1859586537, -0.0062981145, 0.0271456037, 0.0207338985, 0.2195993215, 0.1581206769, -0.1780441552, 0.0976188928, -0.032899294, -0.265165478, -0.0894477889, -0.2567324042, -0.0282297656, 0.3676389456, 0.06664069, 0.3588036895, -0.1916098297, 0.1649852693, 0.1718436182, -0.2895753086, -0.2468195558, 0.3928831518, 0.0549771003, -0.0291884132, 0.2498268932, -0.0250982996, -0.20885396, 0.3734062016, -0.0406707376, -0.3881930113, -0.0490617231, -0.413400799, -0.0146455038, 0.2703149319, 0.0037305043, 0.0997228324, 0.1696857065, -0.0508778207, -0.3953900337, 0.4790826738, -0.0024669939, -0.3585241139, -0.0582649671, 0.1234735921, 0.2299955338, -0.1256329268, -0.2516842484, 0.3921028376, 0.0448530875, 0.40985623, 0.261665374, 0.0018017798, 0.015751509, -0.2986847162, -0.0468571745, 0.3674307466, -0.3242013752, 0.1272622794, 0.0768461153, -0.1038115546, -0.0715091005, 0.2260803729, -0.2931678295, -0.0978572294, 0.1805267483, -0.0130636161, 0.2161765248, -0.244246766, -0.0900664553, 0.0857362971, 0.04229334, 0.0927946121, 0.4033914506, 0.2204860002, -0.0306513011, 0.2627088726, 0.057953272, 0.3283010423, -0.0521464087, 0.2525751591, 0.1994083822, -0.4831074178, 0.2263853699, 0.1378238052, 0.0445587002, 0.0151861617, -0.1832602918, -0.0865487531, 0.2737624347, -0.1824586689, -0.1385208964, 0.2540955544, 0.1792688817, 0.0199869722, -0.112336047, -0.3947776556, -0.3011070192, 0.1568815708, 0.4884355664, 0.0642902702, 0.1696428806, -0.2737739384, 0.0390782617, 0.0045269872, -0.0981859341, 0.2652838826, 0.1543954015, -0.206211403, -0.0029783272, -0.1011046618, -0.3993163705, 0.4738371074, -0.2296882868, 0.1321179569, 0.0275055617, 0.2511872351, 0.0649993494, 0.124629043, 0.1646046638, -0.1319042444, 0.2843928337, 0.1517538577, 0.0908202603, 0.1125610545, 0.1458587348, 0.0646824837, -0.3552846909, 0.1177157834, 0.1671921462, 0.179477945, 0.0260348637, -0.3332143724, 0.0846312493, 0.0246970952, -0.1232123822, 0.0588423014, -0.341419369, 0.2632933557, 0.112957716, -0.0123407524, 0.1553321332, -0.1083925366, -0.1047375724, -0.1918958724, 0.1666091383, 0.0842895582, -0.2391909361, -0.0248149298, -0.6293266416, -0.1653968096, -0.0721648261, 0.1629371643, 0.0634673163, -0.0024513565, 0.1556060612, 0.2015867233, 0.0425243415, 0.114236325, 0.4795595109, 0.1736519635, -0.2230083644, -0.1962167323, -0.0580711067, 0.002585612, 0.1832001358, 0.2066929489, 0.0457414165, 0.1509782821, 0.2637325823, -0.0220886748, -0.1352914274, -0.0007266551, 0.4631792307, 0.1383934766, 0.0121776573, -0.0780442953, -0.4353891313, -0.2944477797, 0.1450491399, -0.2059286535, 0.1311485916, -0.0954135209, -0.0634456947, 0.1592475772, 0.1958412975, -0.2035662085, -0.2929730415, 0.527013123, -0.0790490285, 0.0136274863, 0.1328639537, 0.1082939059, 0.2760705352, 0.1199756488, 0.1261200309, 0.0356752947, 0.1787354052, 0.6488927603, -0.1277384907, -0.3254695535, 0.1147138998, -0.0649893433, -0.0020180328, 0.080301322, 0.0581910461, 0.1841230243, 0.0059468145, -0.0061486079, 0.1868942082, 0.4603095353, 0.0214346685, -0.1087111011, 0.2561412156, 0.0313774012, -0.00327735, -0.0456620231, -0.448394835, -0.3211632967, 0.2327329963, -0.1309590489, 0.1882288456, -0.11141745, -0.0094254026, -0.4182294905, 0.069573395, 0.1007768214, -0.2108720094, 0.0373313092, 0.1368308514, -0.1218450814, -0.1473862678, -0.2751779258, 0.1980687678, 0.0036960219, -0.0153310448, -0.1016477495, -0.1861818135, -0.3659267128, -0.2651930749, -0.287438333, 0.1633550972, 0.1649813354, 0.110018529, -0.024429772, 0.080622904, -0.2668941319, -0.0728358999, 0.345305562, -0.0653500706, 0.2039985359, 0.2225224078, 0.0862636641, 0.0524853654, 0.3643975854, 0.2674490213, 0.3109444678, -0.0122173987, -0.1367588043, 0.0528560281, -0.5359568596, -0.3218108118, -0.2036449462, 0.1261135638, 0.0635128245, -0.003293365, -0.1805376261, -0.23375462, 0.2082328647, -0.0170640815, -0.0829480588, 0.0652043223, -0.3010800183, 0.2161559463, -0.207605496, -0.3492348492, -0.3170900345, 0.0577972941, -0.1490227133, 0.0522462688, 0.0873310342, -0.2652096152, -0.1717197597, -0.084292911, -0.2234997898, 0.0026798786, 0.1123489588, 0.2241789848, 0.0920045823, 0.2355045825, 0.3232549727, 0.27593261, 0.6166086197, -0.1745449156, -0.3837958574, 0.0508944653, -0.3853892088, -0.3669197857, -0.0413618125, -0.1233106926, -0.1569222808, -0.3198367059, 0.4189454019, -0.2965469062, -0.13684313, 0.3415649533, 0.3486962616, -0.2732388973, -0.5648303032, -0.0781126618, 0.157335341, -0.144400984, 0.0061025075, 0.2095869184, 0.1210960671, 0.0263992902, -0.0221585203, -0.095703207, -0.0920030177, 0.283513248, -0.163926959, -0.1478696913, 0.0068455557, 0.2150205225, 0.0852210298, -0.2006319761, -0.1354100853, 0.4599727094, -0.2418028414, -0.3409653306, -0.1602625996, -0.0587924011, 0.5828818679, 0.3401697278, 0.2183078378, 0.7634490728, -0.3323466778, 0.0773622617, -0.1714492738, -0.4547929168, 0.2537870705, -0.1395791471, -0.3544488847, -0.4438308179, 0.5387898088, 0.0798114091, -0.049132321, 0.3948583901, 0.3442940116, -0.0674314797, 0.00004088, 0.1498575211, 0.827506423, -0.4315551221, -0.2111639082, -0.4902249277, -0.0841286778, 0.3179247677, -0.1431909949, 0.3381863832, -0.2494238764, -0.5191370845, 0.0597460642, -0.0786457285, 0.2748969495, 0.123387441, -0.2035634071, 0.0106945261, -0.4162717462, 0.0267461091, 0.0781417862, 0.2290373594, -0.1385082304, -0.3053470552, -0.0736824572, 0.1564331949, -0.1514734775, -0.104184255, 0.1494267434, 0.2186589837, -0.0521987975, 0.0623730458, -0.484253943, -0.1886459738, -0.0390996784, 0.2016898096, -0.0052029979, -0.1411774904, 0.2614850402, 0.2431993932, 0.0940679461, 0.1636535227, 0.181676358, -0.0763616413, 0.0898228958, -0.0293336287, -0.3864740729, 0.0532243215, 0.1954735518, 0.0523709059, -0.3014810681, 0.4472314119, 0.1216008887, -0.5736986995, -0.4057829976, 0.3636288345, 0.3562047184, -0.1317466199, -0.477076292, 0.0079829674, 0.2676302195, -0.2343887538, 0.1771583259, 0.0703546405, 0.0031154475, 0.329161793, -0.0134820808, 0.1683643907, -0.1278030574, 0.2369877994, 0.1456728131, 0.0540693291, 0.1863731444, 0.2619103193, -0.2044368982, -0.1409170777, -0.0470539592, -0.020416867, 0.0557823926, 0.0369982831, -0.2269258499, 0.0865381062, 0.1522173882, 0.2939557731, -0.0061813979, 0.1769745648, -0.281183064, -0.292119056, 0.0165202506, 0.0989243388, -0.055958651, 0.2511583269, -0.1503310055, -0.0370121598, -0.3057663441, 0.3603931367, -0.3364816904, -0.0905226693, -0.267850399, 0.1122490987, 0.4826425314, 0.1033250764, -0.4487977624, -0.042602513, 0.2752298117, 0.1906016618, 0.3579069078, -0.3008052409, -0.2160654962, 0.0401900336, 0.1674356908, 0.282328099, 0.0328254178, -0.3111068606, -0.2416774631, -0.0723744631, 0.1359640807, 0.2352172285, -0.0181064624, 0.0346982479, 0.1205165684, -0.4068873823, -0.2512097061, 0.3073608279, -0.142086342, -0.1013440192, 0.3795371354, 0.1628584713, 0.1169070527, -0.0098362016, -0.5943379998, 0.1291300803, -0.0624103248, -0.0212279391, -0.0049675116, 0.1171779186, 0.2263103426, 0.0395615436, 0.2011489123, 0.0559254251, -0.1185514778, 0.3107333779, 0.1497650295, 0.2267700434, -0.2387063652, -0.4814906418, -0.2971481383, 0.1094649807, 0.1556464583, 0.6094636321, 0.1171147972, 0.2621335685, 0.041783344, -0.221804738, 0.2776862681, -0.0027746113, 0.044651553, 0.5172439218, 0.1084974706, -0.3845741749, 0.3676691651, 0.2722572386, 0.0327547938, 0.0297850166, -0.0118309949, 0.0362434126, 0.0675962195, 0.0136893447, 0.3687851429, -0.1322773546, 0.2324122787, -0.0362098999, -0.1461417973, -0.1416944712, -0.1570494771, 0.1373044699, -0.0495223664, 0.0644797236, -0.336861819, 0.3564509451, -0.0149766067, -0.1321480721, 0.1006453112, -0.178267166, 0.0650983229, 0.0190557856, 0.022572102, -0.2802745998, 0.3539922535, -0.0896720663, 0.3283385336, -0.2615713477, 0.309786588, 0.2304594219, 0.3455485404, -0.3301070929, -0.1253711283, -0.0218318999, -0.0188374631, -0.0075642387, 0.0874799713, -0.1043458655, 0.2899872065, 0.2223846018, -0.0856918842, -0.4326571822, -0.1236100122, 0.2459631264, 0.0005933237, 0.116496332, 0.0103417607, 0.3054493666, 0.1678984761, -0.1868193299, 0.0468548983, 0.1130275056, 0.4121386111, -0.8193487525, 0.0993726477, 0.3142161369, -0.2676078975, 0.0531290546, 0.0157385245, -0.3119898438, -0.1369479448, 0.1825883538, -0.0499920323, -0.0048551247, 0.136301741, 0.1282060891, -0.1264781058, -0.0353246853, -0.0439517274, -0.0469574928, -0.1979510784, -0.1068289429, -0.2249565274, -0.2449553013, -0.2073522657, -0.4267039299, 0.406028986, 0.071186915, 0.0132242916, 0.228134647, 0.1053836942, -0.1622510701, 0.0006873058, 0.5898199677, -0.2509426177, -0.3970302343, 0.2623258233, 0.0200806689, -0.0306448322, -0.0898486301, 0.2543355525, 0.1397683173, 0.1256918758, -0.4077949524, 0.2397902906, 0.078481093, 0.2195713371, 0.1887873858, -0.1125883758, 0.278573066, 0.1620336324, 0.1520570517, -0.0482207388, 0.1639137119, -0.1264467537, -0.0584519207, 0.156470567, 0.2043754309, -0.2094189674, -0.0072865952, 0.1009927243, 0.0564741828, -0.1597691923, -0.1402173489, -0.0518522821, -0.0705238581, 0.3543418944, -0.0740794688, 0.0884360448, -0.0341243111, -0.0702600926, 0.1476793289, 0.152246967, -0.2481177598, 0.0753122643, 0.090755254, -0.1930682957, -0.0810831487, 0.1452880949, -0.1062942594, 0.2746169567, -0.2596271932, -0.1857057065, 0.3158005178, -0.1611784101, -0.0726443678, 0.5669779181, 0.1610433757, 0.0384033136, -0.1069218442, -0.1774675548, 0.0077997157, 0.2639756501, -0.41438815, -0.1318203509 ]
https://github.com/huggingface/datasets/issues/2654
Give a user feedback if the dataset he loads is streamable or not
I understand it already raises a `NotImplementedError` exception, eg: ``` >>> dataset = load_dataset("journalists_questions", name="plain_text", split="train", streaming=True) [...] NotImplementedError: Extraction protocol for file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is not implemented yet ```
**Is your feature request related to a problem? Please describe.** I would love to know if a `dataset` is with the current implementation streamable or not. **Describe the solution you'd like** We could show a warning when a dataset is loaded with `load_dataset('...',streaming=True)` when its lot streamable, e.g. if it is an archive. **Describe alternatives you've considered** Add a new metadata tag for "streaming"
30
Give a user feedback if the dataset he loads is streamable or not **Is your feature request related to a problem? Please describe.** I would love to know if a `dataset` is with the current implementation streamable or not. **Describe the solution you'd like** We could show a warning when a dataset is loaded with `load_dataset('...',streaming=True)` when its lot streamable, e.g. if it is an archive. **Describe alternatives you've considered** Add a new metadata tag for "streaming" I understand it already raises a `NotImplementedError` exception, eg: ``` >>> dataset = load_dataset("journalists_questions", name="plain_text", split="train", streaming=True) [...] NotImplementedError: Extraction protocol for file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is not implemented yet ```
[ -0.3121465743, 0.1084253937, -0.0998006389, 0.061705064, 0.1377474368, -0.1033981517, 0.1825838089, 0.2757679522, -0.0348221101, 0.2482771128, 0.2372251749, 0.2212014049, -0.4187543988, 0.2228206992, -0.2498126775, -0.105773896, -0.1940761656, 0.2266801894, 0.1973601878, 0.0241286661, 0.0500811823, -0.1404722184, 0.1259071976, -0.2275449932, 0.0955904126, 0.0408223122, 0.2770474851, 0.0032736596, -0.4309591353, -0.4094035625, -0.126471743, 0.5943691134, 0.1119760051, 0.3047805727, -0.0001064388, -0.1363656819, 0.4294655025, -0.0646333918, -0.4166699946, -0.2811457217, -0.2709994614, -0.0456951372, 0.3828909993, -0.064899601, -0.2366087735, 0.0000308235, 0.1893440783, -0.2507544756, 0.3980909884, 0.3040390015, 0.1841346025, 0.1431597471, -0.1689657122, 0.1103195176, 0.262027204, 0.2505024374, -0.2353684008, 0.1992792785, 0.1344197392, 0.3304214776, -0.3621217906, 0.376013577, -0.1080573648, 0.0278843138, 0.2396208346, -0.1162741408, -0.2675046623, -0.3587146401, -0.1097213849, 0.3916170299, 0.8121820688, -0.0677935332, -0.2669241726, -0.2799865007, 0.2192739993, -0.1652315855, 0.2707594037, 0.0779113099, -0.3087146282, 0.2289716005, -0.3739490807, -0.3058997393, -0.4223290384, 0.0608523339, 0.0020892026, 0.2876548469, 0.0454273112, -0.0564263351, 0.2633791864, 0.1848202646, 0.2292188257, 0.0431779735, 0.0234699585, -0.02273589, -0.307872206, -0.3380288184, 0.0473388135, -0.1607312709, 0.174916029, 0.349537164, 0.3600503206, 0.1747977883, -0.0686456412, 0.2610443234, 0.303085953, -0.0043781116, 0.1163042188, -0.2984133661, 0.3219969571, 0.1630395055, 0.1393437088, -0.1453951299, 0.1518917233, 0.1023419052, 0.196750313, 0.1389235854, 0.4190606177, -0.1786614954, -0.1202378199, 0.0440851748, -0.2055462748, -0.352824837, 0.0303818267, 0.211703971, -0.2265866846, 0.1878920346, -0.1177255064, 0.1621881723, 0.1279754192, -0.3675707579, 0.0093996599, 0.0382104255, -0.2182814181, 0.2038616985, 0.1490734816, -0.5337641239, -0.0831714049, 0.013075931, -0.1549493521, -0.0313115567, 0.3512844145, -0.1534519196, -0.0033802385, 0.1138477698, -0.0161808655, -0.0984129608, -0.0082277032, 0.1018310636, -0.2609636486, 0.2310134917, -0.0887561291, -0.2245737612, 0.0018800468, 0.2684467733, -0.2341553122, -0.1532550901, -0.1981977522, 0.5610992312, -0.4761671126, -0.2225428075, 0.1492545307, 0.3053435981, -0.097241953, -0.1726654321, -0.028420236, 0.4456057847, -0.2409360409, -0.1790953875, -0.3171630502, -0.4264674485, 0.3974466026, 0.0774606764, -0.1762911826, 0.079295367, 0.0524515957, 0.0932529494, 0.5550783277, -0.0697788, -0.1110174283, 0.5365391374, -0.3236947954, 0.3182699084, 0.3217314184, 0.1368828267, 0.3014834821, 0.0313734785, 0.0506621003, 0.394399792, -0.0976042151, -0.0137697663, -0.3138166666, -0.2959578931, 0.1970935911, 0.2616505623, 0.1503325403, 0.1946422309, 0.1730061471, -0.1789408326, 0.1596212089, 0.0251366347, -0.0353978351, -0.0746826828, 0.4696793854, -0.0059241666, -0.3908088803, 0.0882131159, -0.3534208238, 0.0092369458, 0.1217711568, 0.0998352021, 0.0756971017, -0.3154943585, -0.1760161221, -0.1409995556, -0.118643187, 0.0458626598, 0.1992528141, 0.2442771643, -0.2380591333, 0.0990362763, -0.2280896455, 0.2491266429, -0.2165423185, 0.2083421201, -0.2282066345, 0.1588588953, 0.1062747613, -0.0724146739, 0.1579422206, -0.3028031588, 0.1809506863, 0.0156522859, -0.0901723728, 0.3711773753, 0.0464416556, 0.5940021276, 0.0715553239, 0.2712281346, 0.2272629142, -0.2836057842, 0.1909569353, 0.3033686876, 0.0110063571, 0.0073281592, -0.3751382828, 0.2143040448, 0.1132767722, -0.107652761, 0.1807173789, -0.1787673235, 0.1305249482, -0.0777630508, -0.3311730325, -0.021607561, 0.1609403789, 0.0429358929, -0.1634139121, 0.0293837152, -0.3633936048, -0.178478837, 0.274841994, 0.0663697869, -0.0496442914, 0.5686535239, -0.0119928308, -0.3284745514, 0.2952460945, 0.2152919471, 0.374258846, 0.2192717642, 0.2608886361, 0.1018620282, 0.3289050162, -0.1284108609, 0.1090843603, 0.0433939323, -0.1185551956, 0.1851856411, 0.0774018839, 0.042515099, -0.4282303452, -0.1988510936, 0.029616097, 0.1814828962, -0.083600007, -0.059926156, -0.0986201763, -0.159747526, 0.0016256515, -0.182921499, -0.1229931116, -0.1221320033, 0.273737818, 0.6344074011, -0.261741817, -0.0066782697, -0.2472234964, 0.4284985662, -0.1542273462, -0.036539685, -0.3052413464, 0.0085206358, 0.1265053153, 0.1804900914, 0.1358111352, -0.0603529736, 0.7215872407, 0.2235306948, 0.2180976272, -0.4833517969, -0.2957266867, 0.1400235444, 0.0619995594, 0.0927764475, -0.0645018145, 0.2419241518, 0.178083986, -0.4123820066, 0.0639036447, -0.0645543113, -0.0144775016, 0.2115993351, 0.0463889241, 0.2912006974, -0.0600489192, -0.4394126236, -0.378875643, -0.5287726521, 0.2629510164, -0.0132587533, 0.0757973343, 0.2690799832, 0.0719247088, -0.1398305148, 0.1498420984, 0.0919445306, -0.1639773548, -0.3578227162, 0.0425290465, -0.1043360159, -0.0163395442, 0.0637980923, 0.1183896735, -0.1711733043, 0.5343631506, -0.3851275444, -0.0583212152, -0.1136076227, -0.2023057342, -0.1155277044, -0.5180271268, 0.2743529975, 0.1575746387, -0.2281767726, 0.1127378196, -0.0284656193, -0.2289387137, 0.1795025468, 0.1157951578, 0.0684843063, 0.4184274673, 0.0242062174, 0.3933289945, 0.040167328, -0.0478449054, 0.4635878205, 0.2107443362, 0.2624152601, 0.0386318751, -0.0146243889, 0.1145385206, 0.0727316365, -0.3440089226, 0.3816342056, -0.010327829, -0.3619115353, -0.3208197653, -0.0507944524, -0.2861064374, -0.1568212658, 0.3188705742, -0.033505708, 0.1813453734, -0.1649652272, 0.0061601955, 0.2549753785, -0.2481228113, 0.0024465944, 0.3957547843, 0.4271708429, -0.2007686943, -0.2212180346, 0.166821003, -0.3207590878, 0.1439554989, -0.0952143669, 0.1345741302, -0.2814965546, -0.1487428695, 0.1307980269, 0.0471019559, 0.1721299738, -0.5037600398, -0.3077432215, -0.1230986044, 0.1804490387, 0.1246240139, -0.1156437993, -0.1346149594, -0.0081133535, -0.0841055736, 0.2051528543, -0.3297577202, 0.0522747524, 0.106170103, -0.1360594928, -0.1200310513, -0.3209201396, -0.0839514136, 0.114153944, -0.2305554003, 0.1754381508, -0.1583168805, -0.2460886389, -0.3209343851, -0.3235281706, 0.244277969, 0.1414480358, 0.2715741694, 0.2621292174, 0.0992310792, 0.03475089, 0.0128473733, 0.0679870769, 0.0814794153, 0.3601877987, 0.4002393484, 0.1736344397, -0.2835336626, 0.0120987622, -0.1100336239, 0.1290242076, 0.2547204196, -0.0725500733, 0.3577904105, 0.3873590827, 0.2700959444, -0.3172832429, 0.1379451901, 0.2631404698, -0.3558495939, -0.3819204867, -0.5331365466, 0.5077525973, -0.0340489522, -0.2249022573, 0.300629735, -0.139724046, -0.2113223523, 0.1403765231, 0.0077700885, 1.1393034458, -0.0813353807, -0.2863715887, 0.0281476006, -0.2087205201, 0.3228908777, -0.6179020405, 0.0171214752, -0.1327887475, -0.383449018, -0.238811329, -0.0798728764, 0.1985812634, 0.123503536, -0.6832172871, -0.0016386939, -0.0893843174, 0.186128974, 0.0043755439, 0.6372827888, -0.3760335147, -0.1759619713, -0.4483307302, 0.139435634, -0.2447147667, 0.2459938973, -0.127512455, -0.1912704706, 0.4177615047, -0.1814318746, -0.3381590247, -0.1181488037, -0.3152579665, -0.2668804824, -0.4614509344, -0.3543007374, 0.0680491477, 0.0507480055, -0.1740120351, -0.093767859, -0.2449105531, 0.1707960665, -0.1793258637, 0.1476753801, -0.1403568238, -0.0248745922, 0.418631196, -0.2008974105, -0.072093457, 0.4372836053, 0.012420075, -0.3833437562, 0.1031073332, -0.2847841978, 0.2615047097, -0.2877122462, -0.0195643436, -0.09679313, -0.3447511494, -0.1151566356, 0.1612797081, 0.0826525241, -0.00926496, -0.0857046023, 0.2834559083, -0.065196082, -0.2721075714, 0.3171851635, 0.0930135325, -0.2397345603, 0.0075634504, -0.0255700741, -0.3257599175, -0.3389292955, -0.1403240561, 0.1201831102, -0.0249487571, -0.0174281001, 0.0468678586, 0.0907498375, 0.0668365881, -0.0461546555, 0.1389411986, 0.1220062524, -0.0399709493, -0.1642751843, -0.2067989856, 0.0837499872, -0.0763847306, 0.2557650506, -0.3581162989, -0.2978527248, 0.1445732117, 0.0498079844, -0.3824308515, -0.3346649706, -0.1456537545, 0.0220012031, 0.200640589, 0.1348559111, 0.2724145949, -0.145031631, 0.0851256549, -0.0014295641, -0.1600331217, -0.1832201183, -0.0749986917, 0.1762991101, 0.2494763285, 0.0802866891, -0.1696702391, -0.1545975655, -0.1127115712, 0.0316314548, 0.2693580687, 0.0863945857, -0.1076704711, 0.1121907383, 0.2154079229, 0.2012624443, -0.4698936939, -0.1330146492, -0.1361054331, 0.2858883739, 0.1375329047, -0.1758602858, -0.0233399663, -0.0657683387, -0.2573364675, 0.1921192855, 0.5488523245, 0.2320531458, 0.1128174737, 0.1030884981, 0.0854139328, -0.111676164, 0.3619669676, 0.3429030776, -0.2478905916, -0.0252952892, 0.1975703835, 0.3165722787, 0.0372551568, -0.0117169721, -0.1420810521, -0.2307096124, 0.175571546, -0.049280569, 0.1266148835, 0.2202080637, 0.3079925478, 0.0576991029, 0.0436652564, -0.1060424671, 0.3654943705, 0.2247044593, -0.0537402704, 0.0165367108, 0.1116281897, 0.09528023, 0.0640545487, -0.1440196633, -0.0732363239, 0.4655787349, 0.1421109587, 0.0219199471, -0.1203845367, -0.3483924866, -0.06471055, 0.4036752582, -0.133267805, 0.3305853307, 0.3621434271, 0.2371150702, 0.131717205, 0.0474812202, -0.2780638933, -0.1552160233, 0.0312144533, 0.3018755615, -0.1466695368, -0.3033550382, -0.336745888, 0.0895949081, 0.0538838655, 0.1774701327, 0.0236673634, 0.2555822134, 0.0480019189, -0.0502858832, -0.0424844138, -0.1595507413, 0.3600117266, -0.4073130488, -0.022846425, 0.094422482, 0.1864828169, 0.4190043509, 0.1505408287, 0.0278034154, 0.2221671045, 0.0606840253, 0.1219134107, -0.0456665531, -0.0402870066, 0.0180278197, 0.2732664347, 0.3632720709, -0.0060755969, -0.0276234895, 0.2412564307, -0.2499462962, 0.465803802, -0.115883328, -0.1067912951, -0.3139312267, -0.0614186563, 0.547693789, -0.2058520466, -0.2013747543, -0.331199944, -0.2827062011, -0.0562997125, 0.2169639468, 0.0852727145, -0.0955080166, -0.1160288751, 0.0990271568, 0.2164183706, 0.1388689876, 0.1311116815, -0.0507128686, -0.2327349633, -0.1479548216, -0.6127154231, 0.1011700854, -0.0141727077, 0.0776275098, 0.1402823925, 0.0924196839, 0.0372856706, 0.5932242274, -0.2085784227, -0.2035129517, -0.1500028819, -0.0502964184, -0.4235230982, -0.1181753278, 0.3140204251, 0.0358928367, -0.2146659195, -0.1417925954, 0.1993779838, -0.1184093058, 0.0649342462, -0.2269933671, -0.1133247018, -0.0440305509, 0.269815743, 0.5836309195, -0.0327826962, 0.6000115871, -0.2425941378, -0.0778985396, 0.049177479, -0.0037097314, -0.1775397807, -0.0804923922, 0.150308758, 0.511254251, 0.3086291552, 0.052161023, -0.4756872356, 0.5256851315, -0.1372176111, -0.1262238622, -0.3493204415, -0.0594529584, 0.2060450315, 0.13059403, -0.0129766408, 0.0898265839, 0.1220910624, -0.1428586394, -0.4350026548, -0.236857295, 0.4311563671, -0.1696452647, -0.0917341188, 0.0775053874, 0.1349048465, 0.1489223093, 0.2917038798, -0.6755435467, 0.2758559287, 0.2459850013, -0.2296231091, 0.2842266858, 0.3128637075, 0.2513952851, 0.080381833, 0.0008700027, 0.2112137675, 0.0321695693, -0.1610606909, -0.0838166028, -0.2469062358 ]
https://github.com/huggingface/datasets/issues/2653
Add SD task for SUPERB
Note that this subset requires us to: * generate the LibriMix corpus from LibriSpeech * prepare the corpus for diarization As suggested by @lhoestq we should perform these steps locally and add the prepared data to this public repo on the Hub: https://huggingface.co/datasets/superb/superb-data Then we can use the URLs for the files to load the data in `superb`'s dataset loading script. For consistency, I suggest we name the folders in `superb-data` in the same way as the configs in the dataset loading script - e.g. use `sd` for speech diarization in both places :)
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). Steps: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [ ] README: tags + description sections Related to #2619. cc: @lewtun
94
Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). Steps: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [ ] README: tags + description sections Related to #2619. cc: @lewtun Note that this subset requires us to: * generate the LibriMix corpus from LibriSpeech * prepare the corpus for diarization As suggested by @lhoestq we should perform these steps locally and add the prepared data to this public repo on the Hub: https://huggingface.co/datasets/superb/superb-data Then we can use the URLs for the files to load the data in `superb`'s dataset loading script. For consistency, I suggest we name the folders in `superb-data` in the same way as the configs in the dataset loading script - e.g. use `sd` for speech diarization in both places :)
[ -0.2387333661, -0.1557696164, 0.006651578, 0.1112359911, 0.3777109385, -0.1991262138, 0.0082018431, -0.1370198429, 0.1117519662, 0.3464578688, -0.3380067348, 0.4965120256, -0.1501336843, 0.4443321824, 0.2138431221, 0.2012201846, 0.0950578973, 0.2073051333, -0.2991645932, 0.0513459444, -0.149784252, -0.1197714582, -0.163381815, -0.1436897069, -0.2040831298, 0.2193611711, 0.0727683008, 0.0811633542, -0.290558517, -0.293854177, 0.1627005786, 0.5292000771, 0.4015756547, 0.3271006346, -0.000108325, -0.1900357604, 0.3640154004, -0.407646358, -0.5083063841, -0.1703516394, -0.2225591093, 0.253675878, -0.1591919661, -0.0934047252, -0.6251897812, -0.1363316178, 0.0133754676, -0.1100860164, 0.259683758, 0.1732188761, 0.2259886861, -0.0555904135, -0.0955965593, -0.1510582715, 0.1919826716, 0.2502140701, -0.1117708907, -0.0226815064, 0.1821223795, 0.0146343168, 0.1411366314, 0.288392067, -0.1353492588, -0.1251492649, 0.6657475829, -0.1592931747, -0.034027651, -0.0476164035, -0.0653879791, 0.2897383571, 0.6062101126, -0.2307612151, -0.3986759186, 0.1317665726, 0.0489645973, -0.1367881894, -0.0511330776, -0.1670540124, -0.1804626435, -0.0097852908, -0.1593211591, -0.2900245488, 0.0168995354, -0.0991930068, 0.1257366091, 0.402980268, -0.2149695009, -0.248623848, 0.1087750569, -0.1918500066, -0.250300169, 0.200724721, 0.2491451055, 0.1213823184, -0.2323537618, -0.1240351051, 0.2190023661, -0.2282165289, 0.0134820677, 0.0134721436, 0.255520463, 0.0663688108, 0.0736563951, 0.0467754751, 0.2122074366, 0.3263139725, 0.3418329656, -0.0758145079, 0.1266983151, 0.3235277236, 0.121314615, -0.0469558239, -0.4792706966, 0.0506932363, -0.3832933307, 0.1291768104, 0.0326541588, -0.2910526693, -0.1750217378, -0.1362395585, 0.2221735269, 0.089452453, 0.190424338, 0.6082091928, -0.1698204577, 0.0162828863, -0.1385700703, 0.1991365254, -0.2245853096, 0.3818303645, -0.1250522137, 0.1218156964, -0.2075894028, 0.2060777843, 0.1558458209, -0.3326050341, 0.1354310364, -0.0365532525, 0.0925743878, -0.0350979641, -0.3106776178, 0.2560380697, 0.1394774318, 0.0112423822, 0.2154383957, -0.0242687818, -0.4070395529, -0.0185335688, -0.2668022811, 0.0970803127, 0.2298041731, -0.3090216517, -0.2402655482, 0.2687861323, -0.2112886906, -0.2399874181, -0.2093414217, 0.2070340812, -0.0259956196, -0.3565529585, -0.0472569652, -0.155093208, -0.1873578429, 0.0806875229, 0.3618189692, 0.0493875332, 0.1410746127, -0.238522619, -0.0613224432, -0.0213321093, 0.1526766419, -0.0223492924, 0.1086403951, 0.1549886614, 0.0454301126, 0.3059647083, 0.0213386305, -0.7309914827, -0.2956557274, -0.0253890287, -0.0704016984, 0.0473956987, 0.0758809298, 0.0266979858, 0.5626789331, -0.3666589856, 0.0267688651, 0.4169298708, 0.1045972854, 0.0271833725, -0.1137815788, -0.1186166704, 0.1551051587, 0.333193332, -0.1412371993, -0.0132467262, -0.0201382972, 0.5371373892, 0.1115939394, -0.215389654, 0.1351976246, -0.0304376446, 0.1972649395, 0.2505992949, 0.0189220179, -0.1343055665, -0.156602338, -0.0714808702, 0.3544768691, 0.3644615412, -0.2444358766, -0.4812820852, -0.0186535958, -0.2085853666, -0.2348949313, -0.000870923, 0.1966125071, 0.1794877946, 0.450117588, -0.2948081493, -0.1031234264, -0.4538340271, -0.1539292932, -0.077634275, -0.045761209, 0.0276462622, -0.0710129514, -0.0754555687, 0.2740698159, 0.4282011986, -0.0134116448, 0.0006369519, 0.0198210236, 0.3606019914, -0.1204634383, 0.2716152966, -0.0330985524, 0.4144015312, 0.0200401898, -0.5199400783, 0.1516587436, 0.0607669465, 0.0611065365, -0.0336796939, -0.0852077901, 0.0801736712, -0.2156584412, 0.1141561791, 0.2457428277, -0.2012443244, 0.2822174728, 0.0160778873, -0.1429870576, -0.100303717, -0.0837653205, -0.0753232017, 0.1822260022, 0.0374899022, -0.2956411839, 0.0134172989, 0.1434488446, -0.1508315206, 0.2064889371, -0.0013384656, -0.096315369, -0.2068924904, 0.1192231327, -0.172533527, 0.0588459298, 0.2269429713, 0.2886663079, -0.0056762388, -0.0835696161, -0.1300171912, 0.1359499395, -0.0962681323, -0.0186919458, 0.3149695992, 0.019433504, -0.0111388657, -0.4310697913, 0.0500694439, -0.0565520301, -0.0238468163, -0.0844356343, -0.4412798882, -0.0452111028, -0.6270555854, 0.0019322651, -0.4387514293, 0.123018831, 0.1873014122, 0.2541453838, 0.0001312618, -0.3270382285, 0.2696532309, 0.3459562063, 0.2631190419, -0.2504712343, -0.0477189682, -0.3070186377, -0.2446107268, -0.0061024642, 0.1591077447, 0.1529823095, 0.011961923, 0.058523722, 0.0105655408, 0.2202137262, -0.2467610538, -0.1310709715, 0.2598434389, -0.0594291277, 0.1896292716, 0.0486857146, -0.0084423181, 0.2503093481, -0.0831069723, 0.0541910753, -0.3319965601, -0.1546896249, -0.0413328372, 0.0950937122, -0.0059712506, -0.3511023223, -0.3864649534, -0.1713497937, -0.4853637815, -0.2212007344, -0.1197457314, 0.0970886722, -0.05555702, -0.3157557845, 0.025245972, 0.1532768756, 0.439143002, -0.2017247528, -0.0928221941, 0.2107271701, -0.4319682419, -0.1795964092, -0.1629502177, -0.061318662, 0.2938211858, 0.0343352929, -0.1930087656, -0.0772727281, 0.1486813575, -0.1429515481, 0.0608093031, -0.0430624261, 0.3532960415, 0.1241766959, -0.0949404389, -0.1835151166, -0.2840723991, 0.0802199543, 0.3533503413, 0.1515342593, -0.0702312738, 0.0244174059, -0.0395405032, 0.3105424047, 0.0657295734, -0.0305124279, 0.2941802144, 0.0216220934, 0.1571719646, -0.0036712263, 0.1609631032, 0.4116494954, 0.0916720107, -0.2100938112, 0.5984890461, 0.2012268156, 0.0722191036, -0.1221121922, -0.0430776626, -0.4960399866, -0.1229060069, -0.1275876015, -0.1947238892, 0.0066916086, -0.0712367669, 0.1688197255, 0.1662694663, -0.0502688922, 0.3053995073, 0.1846428066, 0.3476546109, 0.0191543009, -0.1670770794, -0.2236251235, -0.2916166782, 0.1689397544, 0.2247606963, 0.1301314533, -0.1703351885, -0.3254182339, -0.0393572859, -0.1953027099, 0.0927152559, -0.3638089895, 0.1425372213, 0.0832580328, 0.0921075717, -0.1773831844, 0.0022861573, -0.1171140149, -0.0452601388, -0.0477973036, 0.0368056558, -0.4489265084, -0.0813792944, 0.2349193245, -0.0324414819, -0.1318274885, -0.1953954697, -0.0375421084, -0.6822189093, -0.0587645546, 0.1167945713, 0.0817242488, 0.2942719758, -0.0501621589, -0.1117711663, 0.2129603624, 0.1041548401, 0.1387808323, 0.1117428541, 0.2444801331, 0.2800196707, 0.1165295541, 0.2486376911, 0.0691628829, 0.414234966, 0.5681794882, -0.1052539572, -0.0624385104, 0.0022761149, -0.1300581545, 0.3896206915, 0.120647721, 0.2080134451, 0.1284281611, -0.0103663858, -0.183057189, -0.7336472869, 0.3549475968, 0.1393646151, 0.0852796659, -0.183088243, -0.6046619415, 0.3944531679, 0.157547757, -0.1495509893, 0.0865623057, -0.1425361335, -0.3577367663, 0.2706688643, 0.1563920975, 1.0518192053, -0.2577362359, -0.0205292702, -0.0682570338, -0.1102531031, 0.2670952976, -0.2811878026, 0.12631616, -0.0363981351, -0.0499611385, 0.0489073955, 0.2216234356, -0.0825651363, 0.1110296324, -0.3840634227, 0.2460255921, 0.1215831265, 0.0690215975, 0.0188957844, 0.2989873588, 0.0200604387, -0.3731890321, -0.2414260805, 0.1576667577, -0.1448146999, 0.237441197, -0.1495665014, 0.0253533442, 0.1036652178, -0.1133128107, -0.0152338529, 0.2427364439, 0.0636689886, -0.3152555823, -0.2060834169, -0.1548036933, 0.0955949277, 0.3037032187, -0.1515709758, 0.2297076583, -0.1060805246, 0.1211516485, 0.0687353611, 0.3163688779, 0.0635418966, 0.0734943375, 0.3956196308, -0.1521241665, 0.2492263317, 0.0123686418, 0.298119694, -0.1289325505, -0.2205704898, -0.3212550879, 0.0293263271, -0.0470052771, 0.0864679813, 0.252543807, -0.0306523517, -0.1810586005, 0.2006276846, -0.0628493428, -0.4676530659, 0.2213158011, -0.0301247612, -0.0668003857, -0.0389801785, 0.219836399, 0.113834925, -0.3127252758, -0.002781023, 0.1530315876, -0.030397648, -0.3113152981, -0.4853435159, -0.233303234, 0.0084999697, 0.0897155702, 0.1098414734, -0.3046223223, -0.0016212292, 0.6208375692, 0.0262151714, -0.2126692086, -0.1955833286, 0.2060410827, -0.2056100518, 0.213132292, 0.1754971147, 0.4463225901, -0.029449543, 0.2326045185, -0.0460702516, 0.1175036728, -0.4152624011, -0.1724226028, -0.4506848454, 0.3689123988, 0.0289843827, 0.0565156862, 0.1596822739, -0.1116546765, 0.214355737, -0.0604891814, 0.0054145628, -0.1985804886, -0.0093510114, 0.0974453315, 0.2321242988, 0.0716449842, -0.2855547667, 0.0776181072, -0.2219575346, -0.2022412419, 0.3412208855, 0.2695653737, -0.0611863174, 0.3556401134, 0.0330336392, -0.0432593189, -0.0384665988, 0.1293976903, 0.1208641902, 0.3543026149, 0.0388860665, 0.1090509221, 0.1320511699, -0.1886118501, 0.0620809607, 0.1777035892, 0.4266301394, -0.0461698994, 0.1700851321, -0.0015137333, -0.0158829298, 0.2375982702, 0.6916753054, 0.0541597866, -0.0590880662, -0.212025106, 0.1609109193, 0.3708564937, -0.1485463083, -0.0129188048, -0.5179472566, -0.2849596143, 0.1003658921, 0.2510243058, 0.011584498, 0.0169343036, -0.2469288707, -0.0236690864, -0.0586132966, 0.0771436319, 0.078549087, 0.1035350114, -0.0080733579, -0.020555906, 0.1679334342, -0.1570156962, -0.0534773134, 0.432836324, 0.1236586347, 0.5165598989, 0.2849933505, 0.4423140287, 0.026105389, -0.0538115837, 0.0328546837, 0.1794986874, -0.1046279743, 0.2635353506, -0.1521063447, 0.5993234515, -0.3265368938, -0.0833451226, -0.1794983, 0.1200798899, -0.2615887821, -0.2134373039, -0.0151999965, -0.2557023168, 0.1766147763, 0.0908829793, -0.0540151373, 0.1169528887, -0.0005368446, -0.0073789614, 0.0711871684, -0.0142642781, 0.0348352417, 0.0919849277, 0.1931053251, -0.2312736511, 0.4226830602, 0.2813999057, 0.0357513167, 0.3122567832, 0.4274143875, 0.2777602077, 0.2222016454, -0.3424444199, -0.0684827343, 0.0338013768, 0.0183840729, -0.0938163847, 0.4202005863, 0.2514147758, 0.3408825696, 0.2904654741, 0.224254936, -0.244018361, 0.1784810871, -0.0694837198, -0.0060646352, 0.0527361073, 0.4793891609, 0.1439280659, -0.0471908189, -0.0995904952, 0.1491742581, -0.7908723354, -0.2610088587, 0.1187451407, -0.3048153818, 0.1629014611, -0.3607210219, 0.1167137697, 0.0910069793, 0.573771894, 0.2001517564, 0.2887252569, 0.0657250956, -0.2745933831, -0.3580308259, -0.0606542565, 0.2796652913, 0.0379084647, -0.2496098876, 0.1469864547, 0.1392483413, 0.0493825711, -0.4266396761, 0.0186100937, -0.1071030051, 0.2197747976, -0.1197680011, 0.3733875751, -0.162442714, 0.1714729071, -0.0584265962, -0.189625755, -0.1771629155, -0.2254430652, 0.0215703286, 0.0829845443, 0.3526869416, 0.1450897753, -0.2686477005, 0.3546161354, -0.2303533852, 0.5316295028, -0.3417063355, 0.0261852816, 0.1350891292, 0.0329931974, -0.3262870014, -0.3018454313, -0.2989814281, 0.1844820529, 0.1585559249, 0.4981394112, -0.2554972768, -0.2075783163, -0.0501763634, 0.3235316277, -0.1857934892, -0.0170856323, -0.4260115921, -0.2550638318, -0.0187298451, 0.214742586, 0.0881760046, -0.1216906235, -0.4048174918, -0.5538058877, 0.3240543902, 0.2493555397, -0.2571326196, -0.4015711844, 0.2706719339, 0.1335133165, 0.0151633294, -0.6682811975, 0.2751121223, 0.0016301966, 0.1941598356, -0.0660216436, 0.4154750109, -0.0731355995, -0.1756197214, -0.1833539158, -0.1522697508, 0.1328650415, 0.0113619911, -0.1448209286, -0.3962373137 ]
https://github.com/huggingface/datasets/issues/2653
Add SD task for SUPERB
@lewtun @lhoestq: I have already generated the LibriMix corpus and prepared the corpus for diarization. The output is 3 dirs (train, dev, test), each one containing 6 files: reco2dur rttm segments spk2utt utt2spk wav.scp Next steps: - Upload these files to the superb-data repo - Transcribe the corresponding s3prl processing of these files into our superb loading script Note that processing of these files is a bit more intricate than usual datasets: https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/diarization/dataset.py#L233
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). Steps: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [ ] README: tags + description sections Related to #2619. cc: @lewtun
73
Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). Steps: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [ ] README: tags + description sections Related to #2619. cc: @lewtun @lewtun @lhoestq: I have already generated the LibriMix corpus and prepared the corpus for diarization. The output is 3 dirs (train, dev, test), each one containing 6 files: reco2dur rttm segments spk2utt utt2spk wav.scp Next steps: - Upload these files to the superb-data repo - Transcribe the corresponding s3prl processing of these files into our superb loading script Note that processing of these files is a bit more intricate than usual datasets: https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/diarization/dataset.py#L233
[ -0.230632484, -0.3324862719, -0.0547318049, 0.0661656335, 0.3352738619, -0.2812387347, 0.0837416053, -0.0611490868, -0.1144545525, 0.4088608325, -0.4140784144, 0.4271571934, -0.157126233, 0.3467776477, 0.1571530849, 0.0596583597, 0.0408409312, 0.2455735356, -0.3144540191, -0.0464578979, -0.0659856275, 0.0155270938, -0.1118664071, -0.2875228524, -0.1676345617, 0.3125646412, 0.0159358289, -0.0790381357, -0.3433386683, -0.2468426079, 0.12568973, 0.4726737142, 0.2812189758, 0.3263559043, -0.0001044987, -0.243434459, 0.1248142645, -0.4071695507, -0.304156214, 0.0205102209, -0.1400116235, 0.2529034317, -0.2431375682, -0.1004231274, -0.6214832067, -0.106660895, -0.071574308, 0.0587377176, 0.3838648498, 0.2615116239, 0.2522383928, -0.1253831089, 0.0187664293, -0.0416318849, 0.3106273413, 0.2372282743, -0.1541279703, -0.0043616174, 0.2208900303, 0.0400725491, 0.0306640156, 0.2973976433, -0.2016077787, -0.0407215208, 0.424248606, -0.3073333502, 0.0961291492, -0.1444908381, 0.0631377622, 0.4065577388, 0.4522715509, -0.2049413621, -0.2887033224, 0.2152059823, 0.0077373749, -0.2505541444, -0.2491925061, -0.0404340662, -0.2725822628, -0.0228519291, -0.2060945183, -0.1376394778, 0.0324128605, -0.1914402992, 0.0190915372, 0.3704540133, -0.2671467662, -0.3009181023, 0.2260408551, -0.1345989108, -0.319832027, 0.332016021, 0.2018844038, 0.1263997555, -0.2140347362, -0.184205845, 0.249141112, -0.3830590546, -0.0471485592, -0.0462133884, 0.2658667266, 0.1086573154, 0.2545672655, 0.0696093664, 0.0248163901, 0.1501283795, 0.2364247888, -0.0354195461, -0.0448732153, 0.1341962963, -0.0506397411, -0.0012750638, -0.4389597774, 0.0330509581, -0.364810586, 0.1746805906, -0.0583860204, -0.3103415668, -0.2033721507, -0.1287635714, -0.0196184907, 0.2213390768, 0.0794402137, 0.477650404, -0.0948931351, 0.0649780929, -0.0509122796, 0.2270585299, -0.2490280867, 0.3620910645, -0.1059038118, 0.1659911871, -0.1457807869, 0.0199766848, 0.2315411419, -0.3207782507, 0.1398191452, -0.049939204, 0.1733024716, -0.115132831, -0.2575062513, 0.1903567761, 0.2721078694, -0.0316015817, 0.1445755064, -0.1708843112, -0.3705866635, 0.0417674594, -0.2342024297, -0.0167724546, 0.2933939993, -0.2280611843, -0.2369892746, 0.3036904633, -0.1506550014, -0.1359419227, 0.0305428952, 0.2015444785, 0.0977666527, -0.3038558364, -0.0548576452, -0.2512848675, -0.2239758223, 0.1178683937, 0.3892632723, -0.0701796114, 0.1160390526, -0.2245627791, -0.0051192343, -0.0084883161, 0.2964229286, -0.0331701674, 0.2258886397, 0.0678630173, 0.0326800793, 0.1900207847, -0.0479927659, -0.5481697917, -0.2245562822, -0.0074399561, 0.022699289, 0.0313451886, 0.1355645359, 0.004556227, 0.6181930304, -0.3744725287, -0.0381597579, 0.3380509615, 0.0725141317, 0.099764213, -0.1310929507, -0.0191140417, 0.0118536623, 0.2393463403, -0.0813841149, -0.0808944926, -0.0676738843, 0.4970260859, 0.2334402949, -0.1725578606, 0.12173751, -0.0119452784, 0.2894848883, 0.0910598859, 0.021703992, -0.1855186969, 0.0678441003, -0.1747249514, 0.2588678002, 0.3830897808, -0.0389187969, -0.41509673, -0.0010084055, -0.1662148535, -0.2090089023, -0.0032305068, 0.2927136719, 0.2428492308, 0.4071397781, -0.3336693347, -0.0167746153, -0.6764426827, -0.0711311772, -0.0923162103, -0.0045005833, -0.0199999083, -0.0798716769, -0.1189090461, 0.385171324, 0.5336650014, -0.0507784039, 0.0314621963, 0.0887995213, 0.2988007963, -0.0726088583, 0.2658646107, -0.2084179372, 0.4722295105, -0.0895454437, -0.5653336048, 0.0470015071, 0.1999006867, 0.0958384499, -0.0654771701, 0.0055327429, 0.1372516155, -0.0953736529, 0.0778419599, 0.2655323744, -0.2062671483, 0.2208843529, -0.0152463103, -0.1619108021, 0.0088328607, 0.0560735613, -0.2033195049, 0.0120159527, 0.0018843089, -0.2424479872, 0.0417627469, 0.1776087284, -0.1071046963, 0.1440398544, -0.0182289407, -0.0981843248, -0.2613981068, -0.0173640847, -0.0852320567, -0.1022647172, 0.2748092711, 0.385522157, -0.1190944612, -0.1484155506, -0.0794155374, 0.1939111054, -0.0809500292, -0.113718085, 0.4792475104, 0.061822366, -0.0789259002, -0.4903305173, 0.0071992255, -0.0477589257, -0.0150729846, -0.014699473, -0.3657633364, 0.0245481711, -0.5591487885, -0.0659195557, -0.5107610822, 0.1796442121, 0.1567976624, 0.3538484871, 0.1014044583, -0.2838631272, 0.3210276365, 0.3669553399, 0.2201398611, -0.0898768604, 0.0792876929, -0.1918425858, -0.1940290481, 0.0848436579, 0.2379514277, 0.1225402802, 0.064944312, 0.0667414591, -0.0530559048, 0.0843595117, -0.1486165673, -0.103923358, 0.2008406669, -0.0775584951, 0.0879926756, 0.0492760837, 0.0500363708, 0.1740361303, -0.1463154405, -0.0014399654, -0.2926127315, -0.1680888534, 0.1636348665, 0.0077724736, -0.0098427692, -0.3968884945, -0.3802542388, -0.0190264545, -0.4988487959, -0.128248781, -0.0362587161, 0.224686712, 0.0443338044, -0.1743771583, 0.0240721554, 0.124340333, 0.4566857517, -0.1572701037, -0.1098150089, 0.1976678818, -0.3751397431, -0.2254721671, -0.2104406357, -0.0910395235, 0.3619684577, 0.0524688661, -0.0941481069, -0.001529497, 0.1633960158, -0.2450570166, -0.0099359676, 0.0543498136, 0.2658219934, 0.1149334013, -0.1168091968, -0.2195416689, 0.0235204715, 0.0505325831, 0.2868498266, 0.230368346, -0.1580722034, -0.0439051874, 0.0079754135, 0.3405778706, -0.0335662104, -0.1394278258, 0.1918027997, -0.0780911446, 0.0999263749, 0.0838366225, 0.1801459938, 0.4542688727, 0.0080787372, -0.1352086514, 0.6013186574, 0.1653676629, 0.047337804, -0.0611421578, 0.2469248027, -0.3664111197, -0.0859007314, -0.0229581837, -0.1226145551, 0.0805791169, -0.0697810501, 0.1989885271, 0.3178987205, -0.0515468828, 0.2662785053, 0.0324858874, 0.3358449042, 0.0018379848, -0.0721063837, -0.1589868218, -0.3156158626, 0.0279978644, 0.3300451934, 0.0331320278, -0.0981749371, -0.351475805, -0.0617532022, -0.2059910893, 0.0241249595, -0.2224297225, 0.2713913023, 0.2328320146, 0.0883113742, -0.0381249599, -0.0083950041, -0.3488221765, -0.1965792477, 0.0651908293, -0.1453960389, -0.4111145139, -0.0551004075, 0.2846320868, 0.0360938124, 0.0026895867, -0.0581409447, -0.115753375, -0.5529299974, -0.0287263282, 0.1698337346, 0.1482659727, 0.2186097354, -0.1743786484, -0.1273180544, 0.1781243235, 0.0050887237, 0.1613935977, 0.1702772677, 0.2613531053, 0.1952197403, 0.168832019, 0.0751851723, -0.0710595101, 0.4589059055, 0.386503309, -0.0444377512, 0.0943173766, 0.0667772144, -0.1656967998, 0.3028514981, 0.0504182354, 0.3310023844, 0.1102582365, -0.1322112978, -0.0550981984, -0.6019117236, 0.4275262058, 0.1789316386, 0.0574012101, -0.0100484155, -0.4498082697, 0.366442889, -0.055325143, -0.0761684105, 0.0277817044, -0.1592033207, -0.2261775583, 0.3278331459, 0.2264901996, 1.0557326078, -0.1432820857, -0.0407689922, 0.0989277884, -0.0821178555, 0.0767415464, -0.3198871613, 0.2381497771, -0.0709345043, -0.0617589913, -0.0001868137, 0.241230011, -0.1544336677, 0.0569789596, -0.4224568903, 0.0385999382, 0.2103669941, -0.011684482, -0.0343218558, -0.0049935859, 0.0523135178, -0.2225151807, -0.193084687, 0.2036748081, -0.1351487935, 0.0884169862, -0.0963515192, -0.0180266574, 0.1538254768, -0.1409377754, -0.0319010541, 0.2230215967, -0.0113277119, -0.2855208218, -0.0643820167, -0.1961160451, -0.0370366499, 0.2270758003, -0.3433631659, 0.2473930568, -0.0330449007, 0.0383865573, 0.1383410841, 0.2762389183, 0.0389022529, 0.1228722706, 0.2784734666, -0.1656940132, 0.2597302198, -0.0495833308, 0.2597330809, 0.0222775172, -0.0376322754, -0.2906150222, 0.0964335129, 0.0514142886, 0.1492402554, 0.2572363913, -0.1945392638, -0.1682178974, 0.2234096825, -0.06014961, -0.6823364496, 0.2686041892, 0.0336509459, -0.0525875799, -0.0146579072, 0.1720027775, 0.1937295943, -0.2056246698, -0.0315048769, 0.1955665052, -0.0608240999, -0.3801860213, -0.4288161099, -0.2341481894, -0.0988479629, 0.0294704605, 0.0979231596, -0.3611580431, 0.1473832726, 0.5644747019, -0.0358489119, -0.1570377797, -0.2788631916, 0.2000598609, -0.1701856405, 0.0973264351, 0.08608374, 0.5324308276, -0.1331999749, 0.2280186117, -0.0996868312, 0.2533305585, -0.4481813014, -0.1555628031, -0.4357389212, 0.4334952831, -0.0423926525, -0.1146888286, 0.0695859492, -0.0641072467, 0.275678575, 0.0756592229, -0.0946280435, -0.267778039, -0.0259267353, 0.0798230767, 0.1419034749, 0.0841581672, -0.1523620337, 0.3329121768, -0.3364925981, -0.2200277895, 0.3265502155, 0.2005950212, -0.053311184, 0.3232870102, -0.0727533996, -0.0206121206, 0.0121214287, -0.0839046836, 0.1334697306, 0.1765246838, 0.014723815, 0.1095281169, 0.1358218193, -0.2089043856, 0.1125442758, 0.2479684651, 0.3644376695, -0.2571531832, 0.262856245, 0.0926762149, 0.0390595086, 0.2321556509, 0.6654081941, 0.09813907, -0.0007725476, -0.2543885708, 0.1583815813, 0.4445458055, -0.2427861094, 0.0042163143, -0.555668354, -0.2629685104, 0.1984890699, 0.2155684233, -0.0638477877, -0.2041838765, -0.1155441254, 0.0124319652, -0.1126068309, -0.028525481, 0.0075032534, 0.2312055677, 0.0835139081, -0.0903497487, -0.0491824634, -0.2032926083, 0.0378116407, 0.4039702415, 0.0077074021, 0.5663603544, 0.2026454657, 0.2588071525, 0.0613274649, 0.0391850322, -0.0602189191, 0.2987782061, -0.1448058039, 0.3799727261, -0.1233511269, 0.4566289485, -0.2239580601, -0.1622548103, -0.2535136938, 0.1247855425, -0.2302414179, -0.1228773296, 0.0045666876, -0.269274354, -0.0339426212, 0.0132917138, 0.0711431801, 0.2759761512, -0.0217502303, -0.0007498451, 0.1304038316, -0.0083945673, -0.1292391121, 0.0283902511, 0.3064991236, -0.2977680564, 0.3046826124, 0.3741047382, -0.0208564196, 0.2079510093, 0.366766721, 0.2912704945, 0.1162853688, -0.2981621623, 0.0292445514, -0.0771599188, -0.0221265834, -0.100969784, 0.3379071057, 0.2625349462, 0.3141922951, 0.2241152078, 0.2191425413, -0.2802016139, 0.1896578223, -0.0158351548, -0.1496069133, 0.0556350611, 0.3040375412, 0.0036890267, 0.0052478244, -0.1746344566, 0.0441917069, -0.6745696664, -0.2193663269, 0.0320772901, -0.207875818, 0.1861620843, -0.1932149678, 0.1298995316, 0.0137170814, 0.5280650258, 0.1954896748, 0.1848648936, 0.0935736299, -0.2953619957, -0.2751651704, 0.0423687808, 0.31513381, 0.0227449629, -0.2715735137, 0.1354253441, 0.3042469621, 0.1386161894, -0.5134699941, -0.0223843493, 0.0471750125, 0.3129723072, -0.2073917389, 0.3606793582, -0.1482214034, 0.1325294822, -0.0403506048, -0.2700541615, -0.2355540097, -0.3604170084, 0.1735892594, 0.176433593, 0.2119525969, 0.0678332895, -0.0882795602, 0.0157063734, -0.1559091806, 0.4464559257, -0.3855408132, -0.0427052788, 0.1393242329, 0.0659098029, -0.2002021521, -0.3122699261, -0.1709507555, 0.3210387826, 0.2248520702, 0.3830829263, -0.1534944475, -0.1580292583, 0.0711328238, 0.3729652166, -0.2364524305, 0.0506322086, -0.3769298792, -0.2457833439, 0.0239392892, 0.1878747344, 0.1292333156, -0.1024033278, -0.4255014658, -0.5281775594, 0.3048945963, 0.1131713018, -0.2440490425, -0.4501839876, 0.3223857582, 0.190488562, 0.0026971565, -0.6447271705, 0.2225144506, -0.0392065011, 0.1735617369, -0.0894952267, 0.3659563065, -0.0188618507, -0.22354123, -0.1541433036, -0.1673181504, 0.2073862404, 0.0264926385, -0.155041635, -0.4224493504 ]
https://github.com/huggingface/datasets/issues/2651
Setting log level higher than warning does not suppress progress bar
Hi, you can suppress progress bars by patching logging as follows: ```python import datasets import logging datasets.logging.get_verbosity = lambda: logging.NOTSET # map call ... ```
## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1
25
Setting log level higher than warning does not suppress progress bar ## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1 Hi, you can suppress progress bars by patching logging as follows: ```python import datasets import logging datasets.logging.get_verbosity = lambda: logging.NOTSET # map call ... ```
[ -0.4419383407, -0.1637800634, 0.087679781, -0.1625065655, 0.1394934207, -0.0227062069, 0.4293663502, 0.2288746685, 0.0989456102, 0.1445455998, 0.1754807979, 0.6159741282, -0.1407675296, 0.1008442417, -0.193881169, 0.1940041333, 0.0229355339, 0.0618276671, 0.097369723, -0.0051872185, -0.2738214433, -0.2124587297, -0.4537508488, 0.1177137196, -0.1908453405, -0.0994139239, 0.2819591165, -0.0676383376, -0.1347371042, -0.6845767498, 0.3213668466, 0.0655801147, 0.1590004563, 0.6035619378, -0.0001319013, -0.062755011, 0.5607280135, 0.1790861636, -0.2247193903, -0.171872884, -0.5930763483, -0.3090310395, 0.3925264776, -0.0706969053, 0.029787967, -0.3474462032, -0.1272032708, -0.2612386346, 0.2345679849, 0.181212768, -0.0071892827, 0.248284772, -0.0372404531, 0.5450520515, 0.2635574937, 0.1993846148, -0.2768190205, 0.1551692039, 0.462375313, -0.2347633541, -0.3073787987, 0.3043425083, -0.3391897082, 0.0891904458, 0.364815414, -0.111171551, 0.6513960361, -0.5470021367, 0.3078685403, 0.1294252276, 0.3183057606, -0.2856889367, -0.3883465827, -0.1922211647, -0.0462128185, -0.0714261532, 0.1643113196, -0.0450838283, -0.3889570832, 0.1488929242, -0.7792406082, -0.1206326336, -0.2446362525, 0.2550938725, 0.1909742653, 0.2744413912, -0.0276816636, 0.118756406, 0.1178882271, -0.1365883797, 0.060778033, -0.2545290589, 0.0116920806, 0.2483186126, -0.4572410583, -0.0615717769, 0.39182356, 0.1325478256, 0.1498938501, -0.0930812061, -0.1562083811, 0.1936066747, 0.1616427749, 0.1653096825, 0.2875443697, 0.1497991979, 0.5941335559, 0.2832120955, 0.2572875917, 0.1503209174, 0.1399832964, 0.2325322479, 0.3986861408, -0.4250462353, 0.442681551, 0.3641911745, 0.3208539784, -0.2956034541, 0.0545896925, 0.0405411422, -0.4391987324, -0.0771039203, 0.247193858, -0.1380396187, 0.4477904737, -0.331177175, 0.1545623243, 0.2359695733, -0.1745842844, 0.0984209999, 0.0096889688, -0.2765089273, -0.2854020596, 0.1843283027, 0.267790705, -0.213661477, 0.2089001834, 0.1451053768, -0.2515017092, 0.0489352122, 0.3056744933, 0.0159489755, 0.5277972817, 0.4136824906, -0.2733989954, 0.2552736104, -0.0117604518, 0.0148658827, -0.1286606044, 0.4761303663, -0.076650098, -0.4540785253, -0.1819512099, -0.0578342825, -0.4170143306, 0.164257735, -0.5429635644, 0.3450359702, 0.2866148949, -0.0346266739, 0.3771921098, -0.1488112211, -0.5182567239, -0.0982870534, 0.1885204166, 0.4915162921, -0.6797260046, -0.1832248569, -0.3486946821, -0.2553287446, 0.2047463506, 0.0311413817, -0.2359319925, 0.0198394489, -0.0590230599, 0.3680252731, -0.0158657599, -0.1317314804, -0.309196949, 0.3006393909, -0.051639881, 0.1174315363, 0.0648248792, -0.2404745817, -0.1172709391, -0.2352147847, 0.0669459403, -0.0542756505, 0.2040418237, -0.1934764087, -0.2301560789, -0.2625628114, 0.0543836355, 0.005721611, -0.1277087033, 0.0963609144, 0.1668697298, -0.4069344401, 0.458856076, 0.0186786857, 0.1751150787, 0.2314309925, 0.3669460714, -0.4304536283, -0.0262336712, -0.0806003213, -0.1245748028, 0.1955328286, -0.1073026955, -0.0875076279, -0.3066434264, -0.3172890246, 0.0935739204, 0.0031500529, -0.2190495282, -0.2050159574, -0.1374477446, -0.2400766015, -0.1346878558, -0.1813038439, -0.2845742702, -0.208965987, -0.3723788559, 0.0575661398, -0.1472546905, 0.05751184, 0.2907575965, -0.3923129141, 0.0755688548, 0.1688374877, 0.236811772, 0.1207593679, -0.1259240508, 0.3243701756, -0.1417278498, 0.55670017, -0.1004672796, 0.2094579041, 0.1211376116, -0.1209333092, 0.0265917666, 0.1609219164, -0.266025275, 0.2535662949, 0.1031407863, 0.0171374884, 0.4108295143, 0.2966625392, -0.0813290328, -0.0227405392, 0.0175925605, -0.125280261, -0.269610852, -0.4073411226, 0.2404933721, 0.2748615444, 0.4156720042, -0.0455320403, 0.1888780594, 0.0303592067, 0.5161697268, 0.0442285016, 0.1040255725, -0.0162762795, -0.20683828, -0.189876914, 0.3138590455, -0.0990596414, 0.3751356304, 0.1118454486, 0.2199739367, 0.1496593207, -0.0212914888, -0.0490999967, 0.1307387203, 0.2823369801, 0.0909597278, 0.2894969285, 0.0859393254, -0.1233443022, -0.18330805, -0.1638493538, -0.1781529039, 0.0441813767, -0.5000537038, 0.0947345421, -0.2914807796, -0.1945667863, -0.0300083105, 0.0856100842, -0.2602649629, 0.0320394933, 0.1747448593, 0.0906221718, -0.2227550894, 0.4843928516, 0.2578090131, -0.107447803, 0.1933286637, -0.1457285434, -0.4724211693, -0.0866330937, -0.1253927499, -0.1823432893, -0.0189420655, -0.2148831636, -0.1284615397, 0.2228268534, -0.1062044278, -0.1972329617, -0.0630909428, -0.0496865511, -0.1086651385, 0.229298681, 0.0186894275, 0.0687121898, -0.0976074636, 0.1998908967, -0.095642142, -0.3264264762, -0.0166799724, -0.1359513998, -0.2407792658, 0.2194422632, -0.1885676533, 0.066867955, -0.2478815913, -0.1415909678, -0.0791145936, -0.3582981229, 0.1285268664, 0.2675814927, 0.1696362346, 0.3616368771, -0.1621627361, -0.2807432115, 0.0995382741, -0.5332376957, 0.2486509234, -0.0036409798, 0.0805029646, -0.0706206113, 0.0875728056, -0.0307490621, 0.3047395349, -0.3325503469, -0.0666835159, -0.2412404418, 0.0422776565, 0.0657981709, 0.0382696353, 0.2339993417, 0.0500805229, 0.0235203262, -0.0735219195, -0.3944577277, 0.000584418, 0.2307641953, 0.3519810736, 0.1808226705, 0.247055918, 0.063862592, 0.4577198923, 0.5331854224, -0.0457770377, 0.0876511782, 0.2052825987, 0.2106724977, 0.0915260091, -0.1375365853, -0.2229067683, 0.0465071984, -0.1945647746, 0.1077926084, 0.0719750151, -0.2971438169, 0.1506836116, -0.5093936324, 0.0052219541, -0.3185648024, -0.2271262556, -0.1176452413, 0.3608940542, -0.1305042505, 0.2869964242, -0.1469755024, -0.2282092422, -0.1503715366, 0.0929700807, 0.3258206248, -0.0075671976, -0.0222307723, -0.1427607834, -0.7272332907, 0.3539393544, 0.094609648, 0.1905515939, -0.2327795327, 0.0496623851, 0.103777498, 0.362875104, 0.2293982506, -0.5157280564, 0.5419456959, -0.10002134, 0.0681569427, -0.4487816691, -0.1284356415, -0.0385267101, 0.469537884, 0.2855924368, 0.3334142268, 0.0306089763, -0.2551820576, -0.0336539485, 0.1708626449, 0.1028693095, -0.2805160582, -0.4779943824, 0.1124444082, -0.1199508309, 0.1532052159, 0.1270661205, -0.1490372121, -0.2905452847, -0.4047370851, 0.4099101722, -0.2108188868, -0.0392251387, 0.0343889706, 0.0404041857, 0.0293978825, -0.1926477998, 0.3561830521, -0.1313863993, 0.1562402546, 0.3615213037, 0.1200856194, -0.3876297772, -0.0415250175, -0.2409798801, 0.2633204162, 0.3591607213, -0.3182225525, 0.2258414775, 0.2511281669, 0.2178797424, -0.056847468, -0.3926555514, 0.376725316, 0.0825198442, -0.2441381067, 0.03668065, 0.3615200222, 0.2846280634, 0.0048830379, 0.3582074344, -0.1439699531, -0.3557716608, 0.1363273114, 0.1928455383, 0.6703531742, 0.0464237966, -0.0555052571, -0.1147089973, -0.0216106381, 0.2048897147, 0.2880742252, 0.3241169453, -0.0797359496, -0.0270821508, -0.0731247663, -0.2170136273, 0.3660192192, 0.4260585606, -0.0611473508, 0.1053869501, -0.3908005357, 0.1868421584, 0.0216770098, 0.0957266763, 0.0689628348, -0.1061698422, -0.5644491911, -0.1038891077, 0.1383895725, 0.1261151582, 0.0942866504, 0.0276046749, 0.2706146836, -0.185480237, -0.2928016782, 0.1106327996, -0.0034727994, -0.0112968516, -0.0601465851, -0.4210719466, 0.357376188, 0.1403995156, -0.0040028938, 0.0417739041, -0.3574365079, -0.1172961742, 0.1370172352, 0.3045191169, -0.0825026333, -0.0577627458, 0.3107004762, -0.0192491096, -0.3764195442, 0.3355258405, -0.0487450808, -0.3803368211, -0.1026893035, 0.0091506084, 0.1832500398, -0.0248409826, 0.361697942, -0.0915998518, 0.2164248824, -0.0754522085, -0.0184809174, 0.2174575776, -0.0591084585, 0.4294329286, -0.4074729085, -0.5229223967, -0.092700541, 0.4390018582, -0.0634732246, 0.1430633515, 0.4201365113, 0.1718601584, -0.0951447263, -0.1441233903, -0.0777490959, 0.5916377306, -0.2072826326, 0.07253737, 0.2695089877, 0.2778216898, 0.1658398211, 0.0501279831, -0.2087294459, 0.2175135314, -0.421233058, -0.25437814, -0.317561388, -0.0088606076, -0.073740989, 0.2421277463, -0.1627410501, 0.2145866901, 0.3262547255, -0.1238770261, -0.0687061176, -0.1503857821, -0.0415364429, -0.0758059844, 0.0196600892, 0.4972250164, 0.2590434551, -0.0585034676, -0.2144830078, -0.0271570943, -0.2456521988, 0.0011472249, -0.0487665683, 0.2012064755, 0.0231992789, -0.1960074902, 0.1144611314, -0.1625993699, -0.0466732718, -0.0610800795, 0.3420160711, 0.418125391, 0.2039484829, 0.4495303929, -0.1516056955, 0.0352700353, -0.1840047538, -0.1711873263, -0.1577926278, 0.0731629729, -0.0218006484, 0.2425388843, 0.2466848344, 0.0664245188, 0.1573636532, -0.1460384876, -0.0087372046, 0.5891340971, -0.1070058346, 0.0546476133, -0.084792234, -0.1332148761, 0.2813197076, 0.1972290874, -0.2099962234, -0.3687160909, -0.181875065, -0.0137200058, -0.1013237238, -0.297868669, 0.2876684666, 0.1761936247, 0.0931804329, 0.076205872, -0.3027901351, 0.0076992535, 0.2502678931, 0.1959590912, -0.1139155477, -0.2009646595, 0.2130935043, 0.387919426, -0.1446014494, -0.0477546677, 0.4281347692, 0.2170433998, 0.200876683, 0.2702790201, 0.2117696255, 0.4954336882, 0.1691815555, 0.1041393429, -0.2114423513, -0.2212604433, -0.3109474182, 0.2509045899, -0.3340712488, -0.1139443815, 0.1798518747, 0.2877366245, -0.1051027551, -0.2036353648, 0.0761895478, -0.1378472447, -0.0804355964, 0.0155554628, -0.1261261851, 0.0717873797, 0.1098932847, -0.0726456791, -0.0561332442, 0.3540783525, 0.3864502609, -0.0885678977, -0.0087137772, -0.0395476222, 0.0012406327, 0.1779049635, 0.3660147488, 0.0556320809, -0.2327336073, -0.2034352422, 0.0603442341, 0.1389932185, 0.281863004, 0.3087727726, 0.2892178893, 0.1288412958, -0.0372470021, 0.1457116604, -0.0828651264, -0.0870760307, 0.4028380215, 0.0156334899, -0.1129820868, 0.162893042, -0.1151736006, 0.1128827706, 0.2430276871, 0.0932038352, 0.3082068563, -0.3213825226, 0.4500491321, 0.1936808079, -0.2729335725, 0.2564973533, -0.1527055651, -0.121628128, -0.0642864406, 0.6507230997, 0.0050388817, -0.0175398346, -0.3707089722, -0.0279639326, -0.276797533, 0.1902832687, 0.4077709019, 0.1590860933, -0.2476165444, 0.117131874, -0.4242970347, 0.0680204853, 0.1552352011, -0.0041456986, 0.0669385865, -0.0209297817, -0.3779889047, 0.3652937114, 0.4599263072, -0.6130453944, -0.1873299032, -0.2289882153, -0.0798622519, -0.0266409647, 0.0073656454, 0.1018706709, -0.1415021569, -0.2839630246, 0.2648752332, -0.2523232698, -0.1485254019, -0.1704111397, -0.3014568388, 0.3983107507, 0.142465353, 0.5048658848, 0.2264358401, 0.0543133654, -0.0375093296, -0.0292083379, -0.1785155535, 0.1687040925, -0.2268444449, 0.2816550434, -0.0607071295, 0.4257076681, -0.5065681934, 0.1821230352, -0.1935373098, 0.0765631795, -0.257101655, -0.0011250403, 0.0492266044, 0.1285168082, 0.1317147613, -0.1435744464, -0.2119307518, 0.0161987636, 0.0666766018, 0.3037758768, -0.2902287841, -0.1640957892, 0.3946857452, -0.5808707476, -0.25455001, -0.1875019521, 0.4973037243, 0.0882046446, -0.2843635082, -0.5184584856, -0.1538229287, 0.2201805115, 0.0405528173, -0.2124417275, 0.3295533657, -0.2428317964, 0.3919378519, -0.0787815005, 0.1403304338, 0.2935989499, 0.1744738668, 0.0523519777, -0.3468524814 ]
https://github.com/huggingface/datasets/issues/2651
Setting log level higher than warning does not suppress progress bar
Note also that you can disable the progress bar with ```python from datasets.utils import disable_progress_bar disable_progress_bar() ``` See https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/src/datasets/utils/tqdm_utils.py#L84
## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1
19
Setting log level higher than warning does not suppress progress bar ## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1 Note also that you can disable the progress bar with ```python from datasets.utils import disable_progress_bar disable_progress_bar() ``` See https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/src/datasets/utils/tqdm_utils.py#L84
[ -0.4388270676, -0.2037363797, 0.0796425939, -0.1522615999, 0.1692188233, -0.0159657318, 0.4777555466, 0.2021974921, 0.0318350941, 0.1475352794, 0.1682005376, 0.5794952512, -0.1528974026, 0.1000313386, -0.1835142821, 0.1944967359, 0.0263120402, 0.0424374044, 0.0457619987, 0.0004415694, -0.2606731653, -0.1466901898, -0.4761810303, 0.0941638201, -0.2263158709, -0.069470033, 0.292620033, 0.0035402926, -0.1176254824, -0.6455768347, 0.3015624285, 0.0900380537, 0.1431135088, 0.666002214, -0.000133249, -0.0878026634, 0.5361053944, 0.1657680124, -0.1852545142, -0.1453342587, -0.5602227449, -0.3629800975, 0.3905277848, -0.0617991537, 0.042039156, -0.3005340099, -0.1574252993, -0.2664182186, 0.2540455759, 0.1718677133, -0.0169130806, 0.3063341081, -0.107339792, 0.5482042432, 0.2376392484, 0.1451117396, -0.308677882, 0.1676181257, 0.4750166237, -0.212076664, -0.2969587147, 0.3610371351, -0.3199107945, 0.1028574556, 0.3066387773, -0.0769180134, 0.6109771132, -0.5626850128, 0.3343416452, 0.1769724488, 0.3472415209, -0.3141158223, -0.3868075311, -0.1731613725, -0.069499366, -0.0928672329, 0.2058781981, -0.092172794, -0.3756277859, 0.1914187968, -0.7989663482, -0.1072390974, -0.2327205539, 0.2482958585, 0.1075971872, 0.2289102972, -0.0718903616, 0.096349068, 0.0785069168, -0.121896036, 0.1031513885, -0.2171090394, 0.004404088, 0.2491952777, -0.5141396523, -0.1063525751, 0.3615424335, 0.0719984174, 0.1568296999, -0.0595690124, -0.1863830835, 0.219151482, 0.1158889756, 0.1340005547, 0.2554063797, 0.1776841432, 0.5470437407, 0.237723738, 0.263643235, 0.1237090155, 0.1506489813, 0.2026612461, 0.3975675106, -0.4357886016, 0.4497305751, 0.3733793795, 0.3258318603, -0.2783274055, 0.0070875771, 0.093187876, -0.3374127746, -0.0380665548, 0.2372532636, -0.086666666, 0.4455687106, -0.2540480793, 0.1459571868, 0.2678728402, -0.1896032542, 0.0222185273, 0.018625943, -0.2887337506, -0.2559723258, 0.1881933212, 0.2404662669, -0.1552521437, 0.2149009556, 0.1360749155, -0.1472954452, 0.0388563201, 0.3051348925, -0.0191651266, 0.5638687015, 0.4335379303, -0.2885816693, 0.2676414549, 0.0248658583, 0.0252254233, -0.0963668153, 0.4703083336, -0.0585903227, -0.4574697018, -0.1870669574, -0.0671589449, -0.4046753943, 0.1836805344, -0.5151900053, 0.3845128119, 0.2827963829, -0.0090501588, 0.4024599195, -0.1470167935, -0.5378505588, -0.0880261585, 0.2301698923, 0.5276052952, -0.6987101436, -0.1768608093, -0.342105329, -0.2491246611, 0.1895650625, 0.0326975361, -0.2099117339, 0.0540275164, -0.0955105871, 0.3148591816, 0.0723084807, -0.1670955867, -0.3650945127, 0.3568647504, -0.0652221441, 0.1153443307, 0.0775958002, -0.2185321301, -0.1156785116, -0.2229302227, 0.06757126, -0.061546322, 0.1715470254, -0.2080004811, -0.2356215864, -0.2607073784, 0.0544962399, -0.0067108618, -0.0851497725, 0.1419215798, 0.1761007756, -0.4356424809, 0.455363065, 0.0739697218, 0.1693070829, 0.2582276165, 0.3339018226, -0.4463592172, -0.0426596701, -0.1058062464, -0.1639456749, 0.2082850039, -0.1032625064, -0.0945877209, -0.2895021439, -0.3256096542, 0.0706579909, 0.0064350697, -0.2393782437, -0.2069595605, -0.1521599442, -0.233804509, -0.1510630101, -0.2036365569, -0.3345765769, -0.1761713177, -0.3320499063, 0.0417800844, -0.1015782803, 0.0562132038, 0.3076062799, -0.3617402017, 0.0521020629, 0.1781623513, 0.2282765806, 0.1035377607, -0.1218878776, 0.3652698994, -0.143788293, 0.5218513608, -0.0476365611, 0.1986085624, 0.1101091579, -0.1610440761, 0.0058751837, 0.1750312299, -0.2611899674, 0.2790230215, 0.1503452361, 0.0661975145, 0.3930869401, 0.2827353179, -0.0947121829, -0.0167268496, 0.0013400535, -0.126304701, -0.2820743322, -0.4369446337, 0.2476719767, 0.2622614503, 0.3680638671, -0.1068668887, 0.1074984446, 0.0735363662, 0.4914250374, 0.0519005992, 0.1097518206, -0.0605799966, -0.2102838308, -0.1543627083, 0.2606513202, -0.0956026986, 0.4311895967, 0.0933533311, 0.2250624299, 0.1879183948, 0.0072549018, -0.0469730087, 0.1144521311, 0.284551084, 0.0379742794, 0.3296858668, 0.0763445646, -0.110565342, -0.1564061791, -0.1601749808, -0.1460016519, 0.0240580346, -0.5067865849, 0.1301323622, -0.3039037585, -0.1741355956, -0.0295425467, 0.0431747809, -0.2786380053, -0.011048032, 0.181180656, 0.0700707212, -0.2074577659, 0.4660838842, 0.2094017267, -0.0873799771, 0.1957890391, -0.1263175011, -0.4703642726, -0.0578538701, -0.1195597872, -0.1912759691, -0.0444649979, -0.1912552267, -0.1227569431, 0.1609011889, -0.100706175, -0.21748209, -0.0513031632, -0.0420952253, -0.0791763738, 0.3041092157, 0.0238873716, 0.0657117665, -0.1246168613, 0.2760337591, -0.0570038781, -0.3113236427, -0.0033399411, -0.1241061389, -0.241600275, 0.1921312809, -0.1650097668, 0.0801850259, -0.2275785655, -0.1445661932, -0.1452719271, -0.4155720472, 0.1291882098, 0.2729186714, 0.1285597533, 0.3616064191, -0.1745834351, -0.252079457, 0.0768215209, -0.5869482756, 0.2583812773, -0.0286886189, 0.0308609139, -0.04570169, 0.0982179493, -0.0320498459, 0.2712274492, -0.3657180965, -0.1137828752, -0.2194887847, 0.0420219153, 0.0528601594, 0.0495052524, 0.2127379924, 0.0170988441, 0.0331127234, -0.0813796073, -0.395286113, -0.0547734201, 0.2042002231, 0.3584368527, 0.1497318447, 0.2788912654, 0.0666008815, 0.5233486891, 0.5273795128, 0.0182267912, 0.0799959302, 0.2011784315, 0.2599039376, 0.0884437561, -0.1507944167, -0.254309833, 0.0642151907, -0.1609965712, 0.13072972, 0.0551926717, -0.1544726342, 0.1447830647, -0.4346093535, -0.0049783057, -0.3219952881, -0.2329064012, -0.1715307534, 0.3573042452, -0.1110612825, 0.2786034346, -0.1246929914, -0.1973203272, -0.1406456232, 0.197608009, 0.2490924746, -0.0153048169, -0.0503521338, -0.1122864187, -0.7124310136, 0.3519894481, 0.0758898705, 0.2859665751, -0.244489938, 0.0119808493, 0.1227615252, 0.3503415287, 0.2800555527, -0.4966641366, 0.5247850418, -0.0929263085, 0.0194520913, -0.4260510504, -0.1460880935, -0.0423696265, 0.4549835324, 0.3069408536, 0.3457628787, 0.0729793683, -0.2809364498, -0.0387249403, 0.1553352326, 0.0693567246, -0.3266052306, -0.5476043224, 0.1364568323, -0.0981862098, 0.1574923098, 0.1247019917, -0.1416086704, -0.2728048861, -0.3768725395, 0.3726086617, -0.256785512, -0.0151187703, 0.043018084, 0.0334690996, 0.0162066203, -0.1553932428, 0.3270556927, -0.1485352665, 0.0930716395, 0.3858944774, 0.1286590248, -0.3814191222, 0.009560978, -0.2251481563, 0.2644340694, 0.4158936739, -0.3462155759, 0.2357856482, 0.2754821479, 0.2510718405, -0.0192457568, -0.3622412086, 0.3614006042, 0.0845032334, -0.2436754405, 0.0730550811, 0.3501394093, 0.223026678, 0.0315578915, 0.3476166427, -0.1459112912, -0.29889521, 0.0685531497, 0.1400942057, 0.7327122092, 0.061793685, -0.0144040389, -0.0860866308, 0.0180069897, 0.1429746002, 0.2686703801, 0.3113035262, -0.078602232, -0.0717872232, -0.1081067771, -0.2314880788, 0.3762954473, 0.4070201218, -0.0584799796, 0.1555222422, -0.3735048473, 0.197343871, 0.0259927269, 0.0688590184, 0.057067927, -0.0909046084, -0.5662984252, -0.1167455688, 0.2005323619, 0.1018138751, 0.0523021445, 0.0320775695, 0.2647801042, -0.1404695511, -0.272567004, 0.0908144712, -0.0659793615, -0.0348461457, 0.0290494803, -0.4781441391, 0.3578081131, 0.1115502864, 0.0508481301, 0.0253511127, -0.354246676, -0.1177038178, 0.1660963595, 0.3358996809, -0.0619470887, -0.0807975754, 0.3207852244, -0.006727939, -0.3636155128, 0.3760670424, -0.0415591225, -0.3307174146, -0.0405643471, 0.0347796753, 0.2050365508, -0.023002483, 0.3666191995, -0.0951417685, 0.2670879662, -0.0923201963, -0.0294135604, 0.2634598017, -0.0588517562, 0.4001790285, -0.4039236009, -0.5432715416, -0.088204883, 0.3998918533, -0.0773520395, 0.1587752402, 0.3989557028, 0.1926054209, -0.0905889943, -0.1487976313, -0.024290001, 0.5724536777, -0.2445892692, 0.085564658, 0.2558704317, 0.281524688, 0.1719108969, 0.0982375965, -0.2300801277, 0.1694041938, -0.4567414522, -0.2837531269, -0.3306880295, -0.0320520848, -0.1125071421, 0.2195496112, -0.1810239106, 0.2398945689, 0.3140034378, -0.1277661175, -0.0633230656, -0.1704511195, -0.0580623075, -0.0997018442, 0.0153060565, 0.4879111946, 0.3068167269, -0.0222677886, -0.2422083169, -0.0411107056, -0.2885689735, 0.0003657211, -0.0472636037, 0.2228945941, 0.055366084, -0.217884928, 0.1097008213, -0.1269442141, -0.0509037264, -0.060740795, 0.3688482046, 0.4017432332, 0.2120188475, 0.4640010595, -0.1659381986, 0.0108389193, -0.2196332812, -0.1615648121, -0.1266144514, 0.1038641706, -0.0171623789, 0.2366273701, 0.2375607044, 0.0850828215, 0.120514214, -0.1252826303, 0.0252881832, 0.5037798882, -0.1073522121, 0.03162577, -0.0593663342, -0.1373456568, 0.2653336525, 0.2075213939, -0.2695911527, -0.4000194073, -0.1547539085, -0.0291501321, -0.1095416695, -0.272349, 0.2048154771, 0.1551049501, 0.0983933657, 0.0957408249, -0.282753706, 0.0102356588, 0.2798990011, 0.2201735824, -0.1466090381, -0.2405670732, 0.1962162703, 0.3295649588, -0.1332354695, 0.0316260569, 0.4858594835, 0.2517429888, 0.1496284455, 0.2734567523, 0.2190316916, 0.4766219556, 0.1542241424, 0.0910501927, -0.2495797724, -0.2548618019, -0.2787213326, 0.2103087157, -0.3467278779, -0.155412823, 0.1416518092, 0.254324317, -0.1171521693, -0.1773027331, 0.083325386, -0.166263327, -0.0445053019, -0.0322799459, -0.0387061685, 0.0699216276, 0.1147418171, -0.0731821284, -0.0436076447, 0.3693085909, 0.3610856533, -0.079122752, -0.0125403581, -0.0775738433, -0.0477959216, 0.2393305004, 0.2927101552, 0.0355952382, -0.2087336779, -0.1845271736, 0.080537729, 0.1834364533, 0.3069000542, 0.3027543128, 0.2926496267, 0.1202857792, -0.0902808011, 0.1253691614, -0.0883063227, -0.0626057535, 0.4116551876, -0.0082990006, -0.1507254392, 0.1903627813, -0.1247328743, 0.1203603297, 0.1995242387, 0.1233230308, 0.3067184687, -0.387367785, 0.4715418816, 0.1450252682, -0.2299479097, 0.2243388295, -0.1097470149, -0.1656800807, -0.0617495179, 0.6827010512, -0.0302160494, 0.0076490631, -0.3466838598, -0.0345987827, -0.2770446241, 0.191426307, 0.4415138364, 0.1470930725, -0.2628691196, 0.1024152786, -0.4719317853, 0.0841685832, 0.2158724368, -0.0150023801, 0.0823912621, 0.0288235508, -0.397929132, 0.3991674781, 0.5172963142, -0.6161113381, -0.1561103016, -0.2329223454, -0.0829842314, -0.042048011, -0.0173369795, 0.1415514499, -0.1652455628, -0.3095968068, 0.2503563464, -0.2092681229, -0.1735656708, -0.135693416, -0.2915957272, 0.3595245183, 0.1325263232, 0.4981563091, 0.2361741364, 0.0376023911, -0.0176858045, -0.0324679501, -0.175612852, 0.1570251435, -0.2105827481, 0.2739688158, -0.0459048599, 0.3700998425, -0.5149694681, 0.1676447541, -0.1559264809, 0.0654426664, -0.2289648056, 0.0069134738, 0.0399498157, 0.1737319231, 0.1414283365, -0.099236466, -0.1870295554, 0.0374042727, 0.0606702752, 0.3610663414, -0.3112115264, -0.1599253416, 0.3900364637, -0.5684537292, -0.2624585032, -0.2146309316, 0.5193517804, 0.0640937835, -0.2825249434, -0.5841553807, -0.1546998322, 0.2183986008, 0.0663637519, -0.2001502365, 0.3623509407, -0.283441186, 0.3949881494, -0.0630559102, 0.1536171585, 0.2650118172, 0.1830292046, 0.0217020232, -0.3092692494 ]
https://github.com/huggingface/datasets/issues/2646
downloading of yahoo_answers_topics dataset failed
Hi ! I just tested and it worked fine today for me. I think this is because the dataset is stored on Google Drive which has a quota limit for the number of downloads per day, see this similar issue https://github.com/huggingface/datasets/issues/996 Feel free to try again today, now that the quota was reset
## Describe the bug I get an error datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files when I try to download the yahoo_answers_topics dataset ## Steps to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]') # Sample code to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]') ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files
53
downloading of yahoo_answers_topics dataset failed ## Describe the bug I get an error datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files when I try to download the yahoo_answers_topics dataset ## Steps to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]') # Sample code to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]') ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files Hi ! I just tested and it worked fine today for me. I think this is because the dataset is stored on Google Drive which has a quota limit for the number of downloads per day, see this similar issue https://github.com/huggingface/datasets/issues/996 Feel free to try again today, now that the quota was reset
[ -0.4173351228, 0.1438480616, -0.0522664301, 0.21039249, 0.2381460518, -0.0566483699, 0.2377112359, 0.2905798256, 0.1442445517, 0.0573150925, -0.0823222175, -0.0347227193, 0.0095931776, 0.2967810929, -0.114185296, 0.153219834, 0.1207121015, -0.2423341125, -0.3290194273, 0.1872820258, 0.0082971361, 0.3475174606, -0.136511907, -0.1860283017, -0.2225947827, 0.0802134201, 0.0324272029, 0.1877678633, -0.3060181439, -0.1939624697, 0.4998633564, 0.1681093425, 0.0484985486, 0.2420327514, -0.0001159498, -0.0456451848, 0.3564915359, -0.0230519809, -0.2754574418, -0.1719365716, -0.6136646271, -0.3641072214, -0.1625030041, -0.0510161445, 0.257802546, 0.4485147595, -0.078988038, -0.0727401897, 0.2911608815, 0.3613382876, 0.2246931344, 0.507825911, 0.5233133435, 0.0212830529, 0.6007750034, 0.0284280181, -0.1523157656, 0.3020834327, 0.0485346206, 0.0955685154, 0.0357894897, 0.2261752784, -0.0547714606, 0.2072295547, 0.0509777702, -0.1315069795, 0.0101162838, -0.264321804, 0.1809993237, 0.3761472106, 0.7534169555, -0.067624256, -0.3866151273, -0.2335674912, -0.1377530694, -0.0953435898, 0.3624250591, 0.1967543066, -0.1790941954, 0.1182353273, -0.3431763947, -0.0559018664, -0.1109951362, 0.2298995256, 0.1896439195, -0.0589191578, -0.2049212903, -0.0243714862, -0.0747144818, -0.1185131371, 0.3572821021, -0.2774003744, -0.0273527931, 0.1389755309, -0.592415154, -0.1630177051, -0.1472226679, 0.3785591424, 0.5116471648, 0.5190514922, 0.0123614613, 0.1149436235, -0.2776394486, -0.1024332643, 0.3908929229, 0.4025638103, -0.0215441193, 0.1509062648, 0.4378218651, 0.3599638641, 0.0442588739, 0.098944515, 0.0606568344, -0.1273135096, 0.3956007063, -0.0489522293, 0.2884018123, -0.4871148467, -0.3083411455, 0.2666872144, -0.2881491482, -0.2556789219, -0.0349379778, 0.1287738979, -0.2728325725, 0.3193662763, -0.1581633687, 0.2316351682, 0.0761209577, -0.1068313271, -0.2661252618, -0.0457296744, -0.1917147189, 0.1251801699, 0.4090274274, -0.3089472353, 0.3847397864, 0.0583135076, -0.0366221517, -0.1010764763, 0.0702505112, -0.00975719, -0.3626894951, 0.4796494246, -0.0283760931, 0.3199997842, 0.0633891746, 0.2056983262, -0.0027633153, 0.1886624098, -0.3618533611, -0.3521514535, 0.0451592728, 0.1900094151, -0.3650648892, -0.1490503699, -0.2103963643, -0.0985894427, 0.0886903778, -0.098963134, -0.0011395636, -0.0808665305, -0.1798318326, -0.1877607405, 0.1709346175, 0.2947298884, -0.1214032024, 0.0492802151, -0.2126543522, -0.2295566648, 0.0075602867, 0.0988982841, -0.1021207422, 0.0516041145, -0.3121569455, 0.1910159588, -0.0304744057, -0.0441292413, -0.821379602, 0.1120073572, 0.2127331048, 0.1995856166, 0.0226963982, 0.1158608571, -0.0115397163, -0.0558769479, 0.0683129057, 0.2879423499, -0.1113563403, 0.0531981103, -0.2135491371, -0.214681685, -0.1412277073, 0.1924074143, 0.217884168, 0.1795273572, 0.1498344243, -0.0014784713, 0.2000295371, 0.0601043068, 0.0264655035, 0.4225365222, 0.2325091958, 0.1264427453, -0.1791841239, -0.4266205132, -0.6495072246, 0.2739132345, -0.1510443389, -0.1101722568, -0.0169514436, -0.1082539707, -0.4812149107, -0.1396788955, -0.0671043545, -0.1208613217, 0.0543913767, 0.1184011102, 0.1921293288, 0.0473960787, -0.0808088556, 0.675999403, -0.2277868092, 0.1251006126, -0.2809180617, 0.3650698364, -0.1465260088, -0.1149824485, 0.1866231263, -0.0570821576, 0.1539194435, 0.0262795538, -0.1638721526, 0.3405666053, 0.0817589685, -0.0481769703, 0.1589740813, 0.3192980886, 0.1357051879, -0.2003445029, -0.1071020588, 0.2686324418, 0.0888124481, -0.0193650033, -0.3108482361, 0.1076376289, -0.3952948153, 0.0862757638, -0.0847249031, 0.2748889029, 0.2487689108, -0.152965188, -0.2354715914, 0.0756013542, 0.4902824461, 0.1661131978, -0.0159179009, 0.0276132543, -0.2370829731, 0.072030969, 0.381664753, -0.1854063123, -0.023677798, 0.23152937, -0.0424435996, -0.084859319, 0.0524933338, 0.3492451608, 0.4121186733, 0.0774497241, 0.1270789355, 0.0192577187, -0.0698233545, -0.2119279355, -0.0097273514, 0.1050683632, 0.0516630039, 0.3873597085, 0.0891760588, 0.0201649629, -0.3156519532, 0.0178864673, 0.0662738532, 0.2733683586, -0.4959608912, -0.0993699059, -0.2257488072, -0.0083327936, -0.1796372086, -0.2272874862, -0.4338909686, -0.4144544005, -0.041473221, 0.4321185946, -0.0073694969, 0.1584974527, -0.1760048866, 0.0766012743, 0.1298982352, -0.1298921704, -0.0110588986, 0.1239370629, -0.0305577721, 0.0674769282, 0.487075597, -0.1200203001, 0.2683664262, -0.3797084689, 0.0057568373, -0.587628305, -0.0252423566, 0.031945128, -0.0429753251, 0.3296525478, 0.0682000741, 0.391246587, -0.3351227045, 0.0892583206, 0.0412830226, 0.0300797913, -0.2807069719, 0.1720667481, 0.0588251315, 0.0429030359, 0.0793967992, -0.1639140844, -0.1592887044, -0.2847836614, 0.0246166624, -0.1046030596, 0.0429371111, 0.3333447278, -0.0596337989, -0.0055993828, 0.0306971669, 0.0233648531, -0.3865580559, -0.6483182907, 0.5215482116, 0.0017796392, -0.4173828363, 0.0635497272, 0.108230181, -0.1324107051, 0.3234139085, -0.5212418437, -0.0796862021, -0.34604913, 0.2091498822, 0.1091666892, 0.189313516, 0.411470294, -0.2102249563, -0.0587380715, -0.0052902121, -0.1677408218, 0.0951372981, -0.0565817133, 0.2765412927, 0.0760919377, 0.0933400393, -0.0337052904, 0.6843775511, 0.2569460869, 0.3306367695, 0.4992993176, 0.1553968936, 0.3406206369, 0.0140699297, -0.1394454688, 0.030078508, -0.2988119721, 0.1110090539, 0.0800207779, 0.1796586961, 0.210477069, -0.2474081367, -0.108562313, -0.2964664102, -0.1631583273, 0.0617194884, -0.1888986379, 0.3915341496, 0.2235946357, 0.0087209111, 0.1550949216, -0.3679838777, 0.1491594166, 0.1619507521, -0.0454492606, -0.074242346, -0.5089074969, -0.0537513942, -0.3977298737, 0.2291778177, 0.0653382614, 0.4077835679, -0.0808596835, 0.093306452, -0.0127244266, -0.0308021586, 0.4612417817, -0.167075932, 0.2261895984, -0.0558928102, -0.0066084075, -0.2543905973, -0.2947320044, -0.0410113558, 0.0976039171, 0.0445082225, 0.2930546403, -0.5040320754, 0.0814425647, 0.2037863135, 0.3086690903, 0.0089982115, -0.2055962533, -0.2282194793, -0.2156243324, -0.4626051486, 0.0130480193, 0.1228730455, 0.1912577301, -0.0961634219, -0.0554632246, 0.0683327913, -0.0295072924, 0.0314822346, -0.3027847409, 0.221199289, 0.1362632662, 0.2531534731, 0.0497704148, -0.0033728383, 0.0210348628, 0.8041912913, -0.0797763318, -0.2488985211, 0.181627959, -0.2381043136, -0.2277020961, 0.2497150302, -0.1022694707, -0.1096459106, 0.2862842083, 0.0119943488, -0.0040207612, -0.0868688002, 0.3564193249, 0.0856346488, -0.298956424, -0.3246106803, 0.3209980428, 0.0831264555, -0.0425063483, 0.3991118968, 0.2725448608, 0.0491185337, -0.1712507457, -0.0399864875, 0.8578281403, 0.0498330146, 0.0852191597, 0.0202612877, -0.0567883626, 0.4342235625, -0.2464375198, -0.0729638487, -0.2407000363, -0.3326309919, -0.0846639797, -0.2092353553, 0.0827403888, -0.0030933872, -0.0626889765, 0.395735383, -0.2062758207, 0.3918379545, 0.1450440884, 0.1694120318, -0.3521954715, 0.1240326837, -0.1580905467, 0.1550446898, -0.2077642828, 0.418797344, -0.1372314095, -0.0071838745, -0.3030922413, -0.1701448709, -0.7933595181, 0.1383820772, 0.047710292, 0.0148504153, 0.3436416686, -0.1029466614, 0.010863252, 0.2192787528, 0.5752390027, 0.0204204507, -0.363978833, 0.1980461329, -0.0757805035, -0.0254166517, -0.0132435234, -0.0763359144, 0.3167343438, -0.333545953, -0.204646498, 0.1010545045, -0.1129521579, -0.404709965, -0.1654864401, -0.1741242856, 0.1597438157, -0.4395292699, -0.110760428, -0.1657623053, 0.1147327051, -0.2908716798, 0.1486520618, 0.2463242412, 0.0042930208, 0.1918430924, 0.1145736948, -0.0875287428, -0.222244978, 0.5563126206, -0.1080514193, 0.0043463926, 0.3435762525, 0.2170307487, -0.2311034948, -0.162193045, 0.1701340526, -0.0165811218, -0.5097993016, 0.0385339819, -0.302115202, 0.2016072422, -0.2905807495, 0.4739767015, 0.36473912, 0.2416928411, 0.3363364637, -0.7355579138, 0.038639009, -0.03772844, 0.0533791855, 0.2291823775, -0.2330828309, -0.3901048899, 0.2119873464, -0.2208039314, -0.278077513, -0.0557717867, -0.3257577121, -0.076824002, 0.004998913, 0.017316455, 0.3589076698, -0.2168376595, 0.1106581241, 0.0186862759, -0.1566237658, -0.2169032693, -0.1430364251, 0.1212925538, 0.0578182228, -0.2803612649, 0.1490193009, -0.2365240008, -0.1292473376, 0.1539890021, 0.0131600406, 0.277307868, 0.0367565043, 0.0113029089, -0.0722259209, -0.0603029169, -0.2676006854, 0.116922155, -0.1861579567, 0.2702554166, 0.0370692946, 0.2360316366, 0.3051550984, -0.0430769399, -0.403519541, 0.0967597142, 0.0711776093, -0.0867663696, 0.2332340032, -0.4593535364, -0.0846243426, 0.2411811203, 0.4229109883, 0.3079665303, -0.2983403504, 0.0382738486, 0.2060984671, 0.2426956445, -0.2796034813, -0.1308419406, 0.2574139535, -0.0331757665, -0.0699060857, -0.0807471797, 0.3395249844, -0.298132062, 0.2762933075, 0.1378076375, 0.182601735, 0.2348319739, 0.1614445001, 0.3945919871, 0.0780490711, 0.1083945036, 0.234333396, -0.1447656453, -0.0748583898, 0.0626414865, 0.0293497443, 0.0213522669, -0.2543690503, 0.2525357306, -0.1574703604, -0.4455310404, 0.2843332291, 0.1948122084, -0.1493371725, -0.07749369, -0.0952654108, 0.4345989823, -0.1961722523, 0.0277625415, -0.449729085, 0.0599917099, -0.0288858972, 0.1380896717, -0.0134113599, -0.3608104587, -0.187314868, 0.3162417114, -0.1222873181, -0.0887073427, 0.4075274765, 0.0635418743, -0.3009315431, -0.5092542171, 0.2208687961, 0.0110251158, 0.0231644046, -0.1912495047, 0.1664221734, -0.033276625, -0.1903321743, 0.0944036245, 0.4231261313, 0.2981812358, 0.1958508641, 0.0610544086, -0.0307479911, 0.0787226111, -0.0598148927, 0.0852561966, 0.381975621, 0.1442196816, -0.1878296435, 0.3243117929, 0.1266501993, -0.2077416927, 0.1612345278, -0.1640617847, -0.0760762691, -0.1665033251, 0.1068913192, -0.2139308006, 0.2273306102, -0.0371265262, -0.0536025614, -0.2477538437, -0.2532761991, 0.1240266189, -0.0356303006, 0.053244248, -0.2184624076, 0.0732231438, -0.2117637396, 0.4391584098, 0.5012013316, 0.2203854769, -0.1989352852, -0.3539735973, -0.7645019889, 0.0755131468, -0.1055574119, 0.1795704067, 0.1648113132, 0.0590529144, -0.2350418121, 0.3077591956, 0.2918091118, -0.1663731635, -0.2167532593, 0.1551812291, -0.2801145315, 0.0278186556, -0.0017782259, 0.0392909981, -0.1063552871, -0.327018261, 0.4496084154, -0.0174863767, -0.0518391505, 0.0579670742, -0.1573752165, -0.02242947, -0.066010654, 0.1293934733, 0.1314200014, 0.4132754505, 0.1115583032, -0.2058252692, -0.1611680686, -0.1233508214, -0.0885255784, 0.0245669391, -0.1909866631, 0.4489954114, -0.0743561536, 0.0140361702, -0.2581719756, 0.4458038807, 0.0753709376, -0.1675118506, -0.2399928719, -0.0571001433, -0.0309003908, 0.023736719, 0.117729865, -0.0577361472, -0.1664671004, 0.2077934593, -0.2280248106, -0.1409023851, 0.2995199263, -0.0260364171, -0.120523572, -0.2113775313, 0.0801457167, 0.1370500922, -0.2118646055, -0.4640901983, 0.1963187456, 0.3802841604, 0.1471929699, -0.2640034258, 0.2581163645, -0.1581688225, 0.1585733593, 0.1285285652, 0.384226799, 0.0633043945, -0.2160658389, 0.3193856478, -0.134764567 ]
https://github.com/huggingface/datasets/issues/2645
load_dataset processing failed with OS error after downloading a dataset
Hi ! It looks like an issue with pytorch. Could you try to run `import torch` and see if it raises an error ?
## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ## Expected results there is no error when running load_dataset. ## Actual results Specify the actual results or traceback. Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split example = self.info.features.encode_example(record) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example example = cast_to_python_objects(example) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob return _cast_to_python_objects(obj)[0] File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o import torch File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module> _load_global_deps() File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen: cannot load any more object with static TLS During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_hub_opus100.py", line 9, in <module> this_dataset = load_dataset('opus100', language_pair) File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep + str(e) OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid - Python version: 3.6.6 - PyArrow version: 3.0.0
24
load_dataset processing failed with OS error after downloading a dataset ## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ## Expected results there is no error when running load_dataset. ## Actual results Specify the actual results or traceback. Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split example = self.info.features.encode_example(record) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example example = cast_to_python_objects(example) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob return _cast_to_python_objects(obj)[0] File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o import torch File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module> _load_global_deps() File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen: cannot load any more object with static TLS During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_hub_opus100.py", line 9, in <module> this_dataset = load_dataset('opus100', language_pair) File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep + str(e) OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid - Python version: 3.6.6 - PyArrow version: 3.0.0 Hi ! It looks like an issue with pytorch. Could you try to run `import torch` and see if it raises an error ?
[ -0.4430501163, 0.2031194568, -0.0454363041, 0.4847755432, 0.3039819002, -0.0233754013, 0.234968856, 0.3660462201, -0.1082288623, 0.0927523896, -0.1625689119, 0.4678140879, -0.0074350247, -0.0836083069, -0.0174170695, -0.1323248595, 0.0387221277, 0.2778642476, -0.6045761108, -0.048267819, -0.4312466979, 0.3115380406, -0.1030294597, -0.0990162268, 0.0378609113, 0.0749131069, -0.1906297803, 0.3197151423, -0.0947884247, -0.2602503598, -0.0209335908, -0.1710367352, 0.2840123475, 0.5108673573, -0.0001183986, 0.2902742922, 0.0925461277, -0.09077131, -0.4023874402, -0.1111454964, -0.083258912, -0.1031597182, 0.148237735, -0.3790363669, -0.0424588807, -0.2174999565, -0.0282110739, -0.5162991285, 0.2104210854, 0.3379335403, 0.1746216863, 0.3742227852, 0.2902139425, -0.1484119445, 0.2540624738, -0.0283485856, -0.0414076857, 0.0484552942, 0.1556953639, -0.0565810613, 0.0651958883, 0.2920300961, -0.1614062786, 0.1469640881, 0.2089902163, 0.0581362322, 0.2701869905, -0.3370185196, 0.3568375409, 0.157743901, 0.5403915644, -0.0280473977, -0.3331860602, -0.187848419, 0.0130493445, -0.4298106134, 0.2435778975, 0.2214608192, -0.0285913702, 0.0868350416, 0.1412747055, -0.1238948405, -0.0940340385, 0.3054017425, -0.0420604609, 0.2001217455, -0.0576185994, -0.0591639541, 0.0631149337, 0.2239583582, 0.2793518901, 0.0497794822, -0.0100779254, 0.3172571361, -0.4745250642, 0.1773100793, 0.1719002426, 0.0040304298, 0.093371205, -0.0650280118, 0.1036133096, -0.2318624854, -0.023010822, -0.0736538246, 0.2052522153, 0.0471473485, -0.292802006, -0.1984691471, 0.1404685527, 0.0625925958, -0.1818164736, -0.0956843793, -0.1932929158, -0.3410634398, 0.075985305, 0.1347163469, 0.5756460428, -0.1788664609, -0.3567050397, -0.0537942164, -0.1881233007, -0.0532146432, 0.1069231182, 0.2891927958, -0.0607558712, 0.4205152988, 0.2440235764, 0.1303141713, -0.3833311498, 0.0157028157, -0.1193970591, -0.2396058887, -0.1751904637, -0.0182258599, 0.0644398555, -0.4865527451, 0.3154321909, 0.1732186079, -0.0735437721, -0.36237064, 0.3777587712, -0.0794211775, -0.0954616815, 0.2311085612, -0.0021411639, -0.1261710972, 0.147964254, -0.0137933465, 0.0977250338, 0.4053342938, -0.4959005117, -0.5249583125, -0.4787274003, 0.1713287383, -0.3053381443, 0.1398523301, 0.3070883453, -0.1751899421, 0.1507402807, -0.1544899493, -0.0985915586, -0.2091857493, -0.3328259289, -0.1935881823, 0.4081576169, 0.4952771068, -0.319447875, 0.0553345643, -0.252432704, -0.1881269813, -0.1042025089, -0.0230470132, -0.0677800924, 0.3877436221, -0.5029061437, -0.2613582313, 0.2853173912, -0.4429521263, -0.6753495336, 0.0294270124, -0.2476942092, 0.0424228646, 0.3182737231, 0.0589965135, 0.37402004, -0.0094538294, -0.1303222477, 0.2131939977, 0.1354910135, 0.018598415, -0.1482967883, -0.1480102539, 0.045319017, 0.2436878383, 0.0738344938, 0.0752402022, 0.1276132315, 0.1137067601, 0.299384743, -0.1438607872, -0.1832549423, 0.1096927673, 0.2658595443, 0.1396879852, 0.2437554449, -0.0872694105, -0.4674577117, 0.0827426836, -0.0533498302, 0.0326675326, -0.21871683, -0.0448128991, -0.1293058693, 0.0956432298, -0.2936310172, -0.3219189346, 0.0730180144, 0.1981950253, 0.0066885087, 0.0158333015, -0.0868257433, 0.3457706571, 0.1164514199, 0.1674297899, -0.250836581, 0.3303533494, 0.1207667291, -0.0379178934, -0.0812913775, 0.3204131126, 0.0453063622, -0.2102500349, -0.2788045108, 0.4593667984, 0.1484799087, -0.0225259624, -0.0986608416, 0.1753183454, 0.2358965874, -0.264564991, -0.0982182324, 0.0409374163, 0.2143254727, 0.0708443001, 0.1004786342, 0.0042710281, -0.1008391753, 0.1319381148, 0.1286809891, -0.0042127254, 0.0599548295, -0.2399793267, 0.0350487828, -0.0927790627, 0.3647744656, -0.010067747, 0.3398682475, 0.1148417816, -0.2486351877, -0.1168408245, 0.4487638175, -0.0409492254, 0.2245082557, 0.1049688831, -0.210549593, 0.2330358028, -0.0582611077, 0.1338376552, 0.7634178996, 0.1158924773, -0.3087418973, 0.030317435, 0.1568046063, -0.0560595356, 0.3047150373, 0.2135775983, 0.5176041722, 0.4227157235, 0.0548549779, 0.2111870646, -0.1041078344, -0.4372710884, 0.1301831156, 0.2429525256, -0.3268968165, -0.0282367729, -0.2275321931, -0.0035173551, -0.1745343357, -0.0063032839, -0.1977396309, -0.1105284989, -0.0038942711, 0.1199060753, -0.0541349165, 0.0521625429, -0.2768770456, 0.0833760425, 0.2396608144, -0.2275037467, 0.1765099019, -0.0787878111, -0.1228340641, -0.0798946321, 0.3425708711, -0.1298446059, 0.2565788627, -0.325946182, 0.1347655505, -0.1751977652, -0.2120329291, 0.1560972929, 0.2870918214, 0.1585515589, 0.1268410981, 0.2120091468, 0.1711961478, -0.2368269712, 0.2334578186, -0.1223337874, -0.0551892854, 0.111345686, -0.0120251216, 0.2442092896, -0.0472898521, -0.4643703997, -0.3488774896, -0.4888263941, -0.0874162465, -0.0671286881, 0.2688059509, 0.1994023919, 0.1261018664, 0.2629388869, 0.2930870652, 0.0473044254, -0.0196141321, -0.1887224466, 0.2164981812, -0.303324312, -0.2178203017, -0.2564584017, 0.0712677315, 0.2940011322, 0.0316476226, -0.6996411681, -0.3688041568, -0.0958594456, 0.1920550615, -0.4736227393, -0.021840645, 0.2243335694, 0.0982550159, 0.0231320523, -0.3120467663, 0.0890539587, 0.0811187401, -0.1509289891, 0.2234876901, -0.1041750237, 0.4505552948, -0.2182897478, 0.5835212469, -0.0896607786, -0.2326277345, 0.4943560362, -0.1522167325, 0.3561164141, -0.1552246362, -0.2526457608, -0.2044535279, -0.091727525, 0.0118410951, 0.2949994802, 0.0903793499, 0.0096511794, -0.2692481577, 0.0204117168, -0.4474093616, -0.2161028534, 0.1328549236, -0.1035332605, 0.2543563247, -0.0747548863, 0.2682153583, -0.1886684, -0.0850549713, 0.1154109687, 0.2735351622, 0.1169507354, -0.0427168198, 0.0068602329, -0.042830281, -0.1197035611, 0.2423283756, -0.1672642082, 0.3011179268, -0.0396492779, -0.1038931832, 0.0168126114, 0.0017573799, 0.8671805263, 0.1616338044, 0.0611757338, 0.0744498968, 0.0017683253, -0.2096125185, -0.153189823, -0.0486998893, 0.5598668456, 0.47524786, 0.6100465059, -0.1361038685, -0.206262663, 0.1989939809, 0.2431158423, -0.0953741744, -0.4367496371, -0.3278186917, -0.332082808, -0.2650567591, -0.0560369603, -0.0521912426, 0.4572675526, -0.1983002424, 0.0208346229, -0.1782421321, -0.4005164504, -0.1174488366, 0.0723979697, 0.4080715775, -0.0451456532, 0.343659997, 0.1963221431, 0.3403641582, 0.3059303761, 0.6303962469, -0.1995365173, -0.5900688171, 0.302757889, -0.1965069473, 0.0657596514, 0.1468279064, -0.0596203245, -0.1145515367, 0.0031645007, 0.1844051331, -0.0919595361, 0.0092870323, 0.2338159978, 0.0345938094, -0.3580457866, -0.3023239076, 0.3559458256, -0.0250902995, 0.0034084185, 0.3342485726, -0.2428394258, -0.1591668278, 0.5583693981, -0.0221915878, 0.8753299713, -0.1954443157, -0.0461545698, 0.0339418203, -0.2444019169, 0.7470536828, -0.444242686, 0.1304815859, -0.3095657229, -0.3840742409, 0.0418413766, -0.2273295373, 0.1917004585, 0.0126241874, -0.1538765579, 0.1041531637, -0.1464482993, 0.1213337258, 0.1688229591, 0.3585910499, -0.1928762496, -0.1547815055, -0.2013200223, -0.006765997, 0.0725001842, 0.4714584649, -0.1576272696, -0.2567611635, -0.181690678, -0.0251292586, -0.0580865107, 0.1820368767, -0.5054661036, 0.2635750771, -0.0394343212, -0.5898029208, 0.0116452891, 0.7242993116, 0.0000022584, 0.1009302288, -0.0902634561, 0.272233963, 0.1893348545, 0.008150856, 0.2704311609, -0.0907729939, 0.2482924908, -0.0775393918, -0.1894850731, 0.0635935441, -0.228129372, -0.2401604503, 0.4469693005, -0.069891721, 0.3370928466, -0.2419396192, -0.195848614, -0.1846803874, -0.0030679242, -0.106199339, 0.085293442, 0.0861070827, -0.2696990669, 0.0032322002, -0.1789137274, -0.417042315, -0.0303871036, 0.3435989618, -0.1027674004, 0.1958591193, 0.5353899598, 0.2496226877, 0.0700473264, -0.1286618114, 0.0876135305, -0.0788824335, -0.8638370633, 0.0030894373, 0.132942915, 0.191029951, -0.1324958801, -0.3880008161, -0.0416088253, 0.0246452112, -0.2592010796, -0.8063876033, -0.127987057, 0.0003274931, -0.0555135459, 0.1209061369, 0.0125719272, 0.1814009547, -0.1055717766, -0.1266915947, -0.213929221, 0.1138366237, -0.0415834859, -0.0350903422, 0.2087375373, -0.0261921808, 0.0522151515, -0.1148364842, 0.1224133596, 0.1322816312, -0.0545904934, -0.1592981517, -0.1986374706, 0.1914595366, -0.1697368771, -0.1901633292, -0.0694987029, -0.2603872418, -0.0823466107, -0.0308072101, 0.1341707557, -0.1280406266, -0.1342075169, -0.1807746738, 0.0529539548, 0.1350380927, -0.2587350309, 0.301479727, -0.1523779631, 0.1533982903, -0.0465169549, 0.3444418907, -0.1278183609, 0.0601229109, -0.2831705213, -0.2150337696, -0.0194684938, 0.0541305766, 0.292198956, -0.2612037659, 0.0437424965, 0.2345067561, 0.0612110384, 0.2389373928, -0.2238366753, 0.0480343774, 0.1548053324, 0.2138174474, -0.200717479, 0.0465121306, 0.2298103571, 0.2254765034, -0.0167986937, 0.1226182878, 0.122584939, -0.0604852512, -0.0298848115, 0.0791068226, 0.2626871765, 0.4071726501, 0.3707690239, 0.8125104308, 0.0319912955, 0.2267281562, -0.1681687087, -0.2003172487, -0.0137510682, 0.5678643584, -0.1570244133, 0.1488417536, 0.1619774997, 0.1495592594, 0.0736276209, -0.4403558373, -0.1011141688, -0.0547248349, -0.01710953, 0.1752586216, -0.2550035715, 0.5106301308, -0.2262842208, 0.0769672766, -0.2533049881, 0.3183327317, -0.1050108224, 0.0823974088, -0.0645418614, -0.1711416841, 0.1584537178, 0.061003603, -0.0092048347, 0.0408185981, -0.2774721682, 0.2281305194, -0.2549317181, -0.130178839, -0.3134044409, 0.3595227599, -0.053951025, -0.1707004458, 0.3595725298, 0.3049595356, 0.1747182757, 0.189199537, 0.3637137115, 0.4831361175, 0.4503184259, -0.3225106299, 0.0358873606, 0.1269649416, 0.0891219378, -0.0236317944, -0.006764886, 0.0139691178, 0.2668419778, 0.3173692226, 0.0636152998, -0.1635798365, 0.0507056452, 0.0274479799, 0.180431515, -0.2532274723, -0.02664694, -0.0367830507, -0.1780874431, -0.1143433675, 0.0704007149, -0.2277839482, -0.125374645, 0.3511189222, -0.0495123826, -0.0020054763, 0.0596437939, 0.0218054485, -0.2592397928, 0.3652291596, 0.2182931155, 0.5810964704, -0.2674712539, -0.2173578143, -0.6972264647, 0.3747782111, -0.0192842465, -0.2902255356, 0.2166697681, -0.0611446835, -0.0355446897, 0.1555816978, 0.3550470471, -0.0920128524, 0.3595952988, 0.2411306798, -0.4858282208, -0.3335185349, -0.4250917435, 0.2082862407, -0.0554013513, -0.4326459169, 0.0748035833, 0.035240598, 0.0519153103, -0.1904157996, -0.1346189678, -0.0248720739, -0.0795994326, 0.4432129562, -0.0042052064, 0.4430550337, -0.0852830634, -0.0573904961, 0.0039826636, -0.172948882, -0.1389403045, 0.1609294564, 0.325943172, 0.0645695999, -0.1252212077, -0.3071175218, -0.2925890684, 0.4147918224, -0.0671637729, 0.3546152115, -0.353636086, 0.0940052792, -0.124727428, 0.0684198812, 0.2927662432, 0.1802988201, -0.1506900489, 0.1551077664, -0.2595286071, -0.1846694797, 0.4124610722, -0.6139754653, 0.0659287646, -0.0619225204, 0.3500474095, 0.0316232108, 0.147565797, -0.361076355, 0.074128218, 0.448669821, 0.0358204544, -0.3080541492, -0.0032140887, 0.118503049, 0.1700792164, 0.0924642682, 0.3108467162, -0.0426304676, -0.312441349, 0.0873371437, -0.125996083 ]
https://github.com/huggingface/datasets/issues/2645
load_dataset processing failed with OS error after downloading a dataset
> Hi ! It looks like an issue with pytorch. > > Could you try to run `import torch` and see if it raises an error ? It works. Thank you!
## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ## Expected results there is no error when running load_dataset. ## Actual results Specify the actual results or traceback. Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split example = self.info.features.encode_example(record) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example example = cast_to_python_objects(example) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob return _cast_to_python_objects(obj)[0] File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o import torch File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module> _load_global_deps() File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen: cannot load any more object with static TLS During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_hub_opus100.py", line 9, in <module> this_dataset = load_dataset('opus100', language_pair) File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep + str(e) OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid - Python version: 3.6.6 - PyArrow version: 3.0.0
31
load_dataset processing failed with OS error after downloading a dataset ## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ## Expected results there is no error when running load_dataset. ## Actual results Specify the actual results or traceback. Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split example = self.info.features.encode_example(record) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example example = cast_to_python_objects(example) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob return _cast_to_python_objects(obj)[0] File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o import torch File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module> _load_global_deps() File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen: cannot load any more object with static TLS During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_hub_opus100.py", line 9, in <module> this_dataset = load_dataset('opus100', language_pair) File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep + str(e) OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid - Python version: 3.6.6 - PyArrow version: 3.0.0 > Hi ! It looks like an issue with pytorch. > > Could you try to run `import torch` and see if it raises an error ? It works. Thank you!
[ -0.4430501163, 0.2031194568, -0.0454363041, 0.4847755432, 0.3039819002, -0.0233754013, 0.234968856, 0.3660462201, -0.1082288623, 0.0927523896, -0.1625689119, 0.4678140879, -0.0074350247, -0.0836083069, -0.0174170695, -0.1323248595, 0.0387221277, 0.2778642476, -0.6045761108, -0.048267819, -0.4312466979, 0.3115380406, -0.1030294597, -0.0990162268, 0.0378609113, 0.0749131069, -0.1906297803, 0.3197151423, -0.0947884247, -0.2602503598, -0.0209335908, -0.1710367352, 0.2840123475, 0.5108673573, -0.0001183986, 0.2902742922, 0.0925461277, -0.09077131, -0.4023874402, -0.1111454964, -0.083258912, -0.1031597182, 0.148237735, -0.3790363669, -0.0424588807, -0.2174999565, -0.0282110739, -0.5162991285, 0.2104210854, 0.3379335403, 0.1746216863, 0.3742227852, 0.2902139425, -0.1484119445, 0.2540624738, -0.0283485856, -0.0414076857, 0.0484552942, 0.1556953639, -0.0565810613, 0.0651958883, 0.2920300961, -0.1614062786, 0.1469640881, 0.2089902163, 0.0581362322, 0.2701869905, -0.3370185196, 0.3568375409, 0.157743901, 0.5403915644, -0.0280473977, -0.3331860602, -0.187848419, 0.0130493445, -0.4298106134, 0.2435778975, 0.2214608192, -0.0285913702, 0.0868350416, 0.1412747055, -0.1238948405, -0.0940340385, 0.3054017425, -0.0420604609, 0.2001217455, -0.0576185994, -0.0591639541, 0.0631149337, 0.2239583582, 0.2793518901, 0.0497794822, -0.0100779254, 0.3172571361, -0.4745250642, 0.1773100793, 0.1719002426, 0.0040304298, 0.093371205, -0.0650280118, 0.1036133096, -0.2318624854, -0.023010822, -0.0736538246, 0.2052522153, 0.0471473485, -0.292802006, -0.1984691471, 0.1404685527, 0.0625925958, -0.1818164736, -0.0956843793, -0.1932929158, -0.3410634398, 0.075985305, 0.1347163469, 0.5756460428, -0.1788664609, -0.3567050397, -0.0537942164, -0.1881233007, -0.0532146432, 0.1069231182, 0.2891927958, -0.0607558712, 0.4205152988, 0.2440235764, 0.1303141713, -0.3833311498, 0.0157028157, -0.1193970591, -0.2396058887, -0.1751904637, -0.0182258599, 0.0644398555, -0.4865527451, 0.3154321909, 0.1732186079, -0.0735437721, -0.36237064, 0.3777587712, -0.0794211775, -0.0954616815, 0.2311085612, -0.0021411639, -0.1261710972, 0.147964254, -0.0137933465, 0.0977250338, 0.4053342938, -0.4959005117, -0.5249583125, -0.4787274003, 0.1713287383, -0.3053381443, 0.1398523301, 0.3070883453, -0.1751899421, 0.1507402807, -0.1544899493, -0.0985915586, -0.2091857493, -0.3328259289, -0.1935881823, 0.4081576169, 0.4952771068, -0.319447875, 0.0553345643, -0.252432704, -0.1881269813, -0.1042025089, -0.0230470132, -0.0677800924, 0.3877436221, -0.5029061437, -0.2613582313, 0.2853173912, -0.4429521263, -0.6753495336, 0.0294270124, -0.2476942092, 0.0424228646, 0.3182737231, 0.0589965135, 0.37402004, -0.0094538294, -0.1303222477, 0.2131939977, 0.1354910135, 0.018598415, -0.1482967883, -0.1480102539, 0.045319017, 0.2436878383, 0.0738344938, 0.0752402022, 0.1276132315, 0.1137067601, 0.299384743, -0.1438607872, -0.1832549423, 0.1096927673, 0.2658595443, 0.1396879852, 0.2437554449, -0.0872694105, -0.4674577117, 0.0827426836, -0.0533498302, 0.0326675326, -0.21871683, -0.0448128991, -0.1293058693, 0.0956432298, -0.2936310172, -0.3219189346, 0.0730180144, 0.1981950253, 0.0066885087, 0.0158333015, -0.0868257433, 0.3457706571, 0.1164514199, 0.1674297899, -0.250836581, 0.3303533494, 0.1207667291, -0.0379178934, -0.0812913775, 0.3204131126, 0.0453063622, -0.2102500349, -0.2788045108, 0.4593667984, 0.1484799087, -0.0225259624, -0.0986608416, 0.1753183454, 0.2358965874, -0.264564991, -0.0982182324, 0.0409374163, 0.2143254727, 0.0708443001, 0.1004786342, 0.0042710281, -0.1008391753, 0.1319381148, 0.1286809891, -0.0042127254, 0.0599548295, -0.2399793267, 0.0350487828, -0.0927790627, 0.3647744656, -0.010067747, 0.3398682475, 0.1148417816, -0.2486351877, -0.1168408245, 0.4487638175, -0.0409492254, 0.2245082557, 0.1049688831, -0.210549593, 0.2330358028, -0.0582611077, 0.1338376552, 0.7634178996, 0.1158924773, -0.3087418973, 0.030317435, 0.1568046063, -0.0560595356, 0.3047150373, 0.2135775983, 0.5176041722, 0.4227157235, 0.0548549779, 0.2111870646, -0.1041078344, -0.4372710884, 0.1301831156, 0.2429525256, -0.3268968165, -0.0282367729, -0.2275321931, -0.0035173551, -0.1745343357, -0.0063032839, -0.1977396309, -0.1105284989, -0.0038942711, 0.1199060753, -0.0541349165, 0.0521625429, -0.2768770456, 0.0833760425, 0.2396608144, -0.2275037467, 0.1765099019, -0.0787878111, -0.1228340641, -0.0798946321, 0.3425708711, -0.1298446059, 0.2565788627, -0.325946182, 0.1347655505, -0.1751977652, -0.2120329291, 0.1560972929, 0.2870918214, 0.1585515589, 0.1268410981, 0.2120091468, 0.1711961478, -0.2368269712, 0.2334578186, -0.1223337874, -0.0551892854, 0.111345686, -0.0120251216, 0.2442092896, -0.0472898521, -0.4643703997, -0.3488774896, -0.4888263941, -0.0874162465, -0.0671286881, 0.2688059509, 0.1994023919, 0.1261018664, 0.2629388869, 0.2930870652, 0.0473044254, -0.0196141321, -0.1887224466, 0.2164981812, -0.303324312, -0.2178203017, -0.2564584017, 0.0712677315, 0.2940011322, 0.0316476226, -0.6996411681, -0.3688041568, -0.0958594456, 0.1920550615, -0.4736227393, -0.021840645, 0.2243335694, 0.0982550159, 0.0231320523, -0.3120467663, 0.0890539587, 0.0811187401, -0.1509289891, 0.2234876901, -0.1041750237, 0.4505552948, -0.2182897478, 0.5835212469, -0.0896607786, -0.2326277345, 0.4943560362, -0.1522167325, 0.3561164141, -0.1552246362, -0.2526457608, -0.2044535279, -0.091727525, 0.0118410951, 0.2949994802, 0.0903793499, 0.0096511794, -0.2692481577, 0.0204117168, -0.4474093616, -0.2161028534, 0.1328549236, -0.1035332605, 0.2543563247, -0.0747548863, 0.2682153583, -0.1886684, -0.0850549713, 0.1154109687, 0.2735351622, 0.1169507354, -0.0427168198, 0.0068602329, -0.042830281, -0.1197035611, 0.2423283756, -0.1672642082, 0.3011179268, -0.0396492779, -0.1038931832, 0.0168126114, 0.0017573799, 0.8671805263, 0.1616338044, 0.0611757338, 0.0744498968, 0.0017683253, -0.2096125185, -0.153189823, -0.0486998893, 0.5598668456, 0.47524786, 0.6100465059, -0.1361038685, -0.206262663, 0.1989939809, 0.2431158423, -0.0953741744, -0.4367496371, -0.3278186917, -0.332082808, -0.2650567591, -0.0560369603, -0.0521912426, 0.4572675526, -0.1983002424, 0.0208346229, -0.1782421321, -0.4005164504, -0.1174488366, 0.0723979697, 0.4080715775, -0.0451456532, 0.343659997, 0.1963221431, 0.3403641582, 0.3059303761, 0.6303962469, -0.1995365173, -0.5900688171, 0.302757889, -0.1965069473, 0.0657596514, 0.1468279064, -0.0596203245, -0.1145515367, 0.0031645007, 0.1844051331, -0.0919595361, 0.0092870323, 0.2338159978, 0.0345938094, -0.3580457866, -0.3023239076, 0.3559458256, -0.0250902995, 0.0034084185, 0.3342485726, -0.2428394258, -0.1591668278, 0.5583693981, -0.0221915878, 0.8753299713, -0.1954443157, -0.0461545698, 0.0339418203, -0.2444019169, 0.7470536828, -0.444242686, 0.1304815859, -0.3095657229, -0.3840742409, 0.0418413766, -0.2273295373, 0.1917004585, 0.0126241874, -0.1538765579, 0.1041531637, -0.1464482993, 0.1213337258, 0.1688229591, 0.3585910499, -0.1928762496, -0.1547815055, -0.2013200223, -0.006765997, 0.0725001842, 0.4714584649, -0.1576272696, -0.2567611635, -0.181690678, -0.0251292586, -0.0580865107, 0.1820368767, -0.5054661036, 0.2635750771, -0.0394343212, -0.5898029208, 0.0116452891, 0.7242993116, 0.0000022584, 0.1009302288, -0.0902634561, 0.272233963, 0.1893348545, 0.008150856, 0.2704311609, -0.0907729939, 0.2482924908, -0.0775393918, -0.1894850731, 0.0635935441, -0.228129372, -0.2401604503, 0.4469693005, -0.069891721, 0.3370928466, -0.2419396192, -0.195848614, -0.1846803874, -0.0030679242, -0.106199339, 0.085293442, 0.0861070827, -0.2696990669, 0.0032322002, -0.1789137274, -0.417042315, -0.0303871036, 0.3435989618, -0.1027674004, 0.1958591193, 0.5353899598, 0.2496226877, 0.0700473264, -0.1286618114, 0.0876135305, -0.0788824335, -0.8638370633, 0.0030894373, 0.132942915, 0.191029951, -0.1324958801, -0.3880008161, -0.0416088253, 0.0246452112, -0.2592010796, -0.8063876033, -0.127987057, 0.0003274931, -0.0555135459, 0.1209061369, 0.0125719272, 0.1814009547, -0.1055717766, -0.1266915947, -0.213929221, 0.1138366237, -0.0415834859, -0.0350903422, 0.2087375373, -0.0261921808, 0.0522151515, -0.1148364842, 0.1224133596, 0.1322816312, -0.0545904934, -0.1592981517, -0.1986374706, 0.1914595366, -0.1697368771, -0.1901633292, -0.0694987029, -0.2603872418, -0.0823466107, -0.0308072101, 0.1341707557, -0.1280406266, -0.1342075169, -0.1807746738, 0.0529539548, 0.1350380927, -0.2587350309, 0.301479727, -0.1523779631, 0.1533982903, -0.0465169549, 0.3444418907, -0.1278183609, 0.0601229109, -0.2831705213, -0.2150337696, -0.0194684938, 0.0541305766, 0.292198956, -0.2612037659, 0.0437424965, 0.2345067561, 0.0612110384, 0.2389373928, -0.2238366753, 0.0480343774, 0.1548053324, 0.2138174474, -0.200717479, 0.0465121306, 0.2298103571, 0.2254765034, -0.0167986937, 0.1226182878, 0.122584939, -0.0604852512, -0.0298848115, 0.0791068226, 0.2626871765, 0.4071726501, 0.3707690239, 0.8125104308, 0.0319912955, 0.2267281562, -0.1681687087, -0.2003172487, -0.0137510682, 0.5678643584, -0.1570244133, 0.1488417536, 0.1619774997, 0.1495592594, 0.0736276209, -0.4403558373, -0.1011141688, -0.0547248349, -0.01710953, 0.1752586216, -0.2550035715, 0.5106301308, -0.2262842208, 0.0769672766, -0.2533049881, 0.3183327317, -0.1050108224, 0.0823974088, -0.0645418614, -0.1711416841, 0.1584537178, 0.061003603, -0.0092048347, 0.0408185981, -0.2774721682, 0.2281305194, -0.2549317181, -0.130178839, -0.3134044409, 0.3595227599, -0.053951025, -0.1707004458, 0.3595725298, 0.3049595356, 0.1747182757, 0.189199537, 0.3637137115, 0.4831361175, 0.4503184259, -0.3225106299, 0.0358873606, 0.1269649416, 0.0891219378, -0.0236317944, -0.006764886, 0.0139691178, 0.2668419778, 0.3173692226, 0.0636152998, -0.1635798365, 0.0507056452, 0.0274479799, 0.180431515, -0.2532274723, -0.02664694, -0.0367830507, -0.1780874431, -0.1143433675, 0.0704007149, -0.2277839482, -0.125374645, 0.3511189222, -0.0495123826, -0.0020054763, 0.0596437939, 0.0218054485, -0.2592397928, 0.3652291596, 0.2182931155, 0.5810964704, -0.2674712539, -0.2173578143, -0.6972264647, 0.3747782111, -0.0192842465, -0.2902255356, 0.2166697681, -0.0611446835, -0.0355446897, 0.1555816978, 0.3550470471, -0.0920128524, 0.3595952988, 0.2411306798, -0.4858282208, -0.3335185349, -0.4250917435, 0.2082862407, -0.0554013513, -0.4326459169, 0.0748035833, 0.035240598, 0.0519153103, -0.1904157996, -0.1346189678, -0.0248720739, -0.0795994326, 0.4432129562, -0.0042052064, 0.4430550337, -0.0852830634, -0.0573904961, 0.0039826636, -0.172948882, -0.1389403045, 0.1609294564, 0.325943172, 0.0645695999, -0.1252212077, -0.3071175218, -0.2925890684, 0.4147918224, -0.0671637729, 0.3546152115, -0.353636086, 0.0940052792, -0.124727428, 0.0684198812, 0.2927662432, 0.1802988201, -0.1506900489, 0.1551077664, -0.2595286071, -0.1846694797, 0.4124610722, -0.6139754653, 0.0659287646, -0.0619225204, 0.3500474095, 0.0316232108, 0.147565797, -0.361076355, 0.074128218, 0.448669821, 0.0358204544, -0.3080541492, -0.0032140887, 0.118503049, 0.1700792164, 0.0924642682, 0.3108467162, -0.0426304676, -0.312441349, 0.0873371437, -0.125996083 ]
https://github.com/huggingface/datasets/issues/2644
Batched `map` not allowed to return 0 items
Hi ! Thanks for reporting. Indeed it looks like type inference makes it fail. We should probably just ignore this step until a non-empty batch is passed.
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1
27
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1 Hi ! Thanks for reporting. Indeed it looks like type inference makes it fail. We should probably just ignore this step until a non-empty batch is passed.
[ -0.2328358591, -0.3903884888, -0.0444569401, 0.1644898802, -0.1085447446, -0.0687688664, 0.1163394749, 0.4056321681, 0.6400415897, 0.1178811938, -0.0565715581, 0.2460853755, -0.3954411447, 0.1043542847, -0.1629213542, 0.1608026028, -0.0449330881, 0.1405792534, -0.1691172719, -0.1914923936, -0.3362932801, 0.1631995887, -0.3979261518, -0.0501044765, -0.1487710625, -0.2919760346, 0.2864800394, -0.0362102278, -0.1628142893, -0.2454048246, 0.2060913295, -0.2328295708, -0.2091358155, 0.5783209205, -0.0001299275, -0.0231370106, 0.1505940706, -0.1851884276, -0.0897609591, -0.302960813, -0.1908181012, -0.1715302467, -0.1157184988, -0.2824651599, 0.1819462478, -0.2716501951, -0.1956347525, -0.4482397735, 0.1071965545, 0.2587007582, 0.0433216915, 0.4188175201, 0.0030658788, 0.1764480323, 0.3312484622, 0.2664009035, -0.0753519163, 0.1288109571, 0.720576942, -0.2881010473, 0.0226273369, 0.3385903239, -0.3921839297, 0.0709065795, 0.1367557496, -0.0309034791, 0.2301688343, -0.5515581369, 0.2697510719, 0.3675671518, -0.0900000334, 0.0607854947, -0.4333371818, -0.6687817574, -0.0403035916, -0.0954990163, -0.0388976522, 0.2810005248, -0.4210391045, -0.0564594604, -0.48461923, 0.12179479, 0.0078949537, 0.161854431, 0.0306756385, 0.4589538872, -0.0930406898, 0.200324133, 0.3451099098, -0.1618324369, -0.0994020402, -0.1672707945, -0.2236277461, 0.5847226381, -0.0366990454, -0.1459874213, 0.3893203735, 0.219767794, 0.2230353653, -0.3132421374, -0.0503061526, -0.0742759556, 0.2646803558, -0.0234319102, 0.4159452617, 0.0793758407, 0.2686937451, 0.3493202031, -0.0050519966, -0.0590939708, 0.0676901788, 0.1131691784, 0.1134423316, -0.0890840888, -0.0096516944, -0.076408267, 0.2567851543, -0.078752704, -0.121898368, 0.2341005504, -0.410017103, 0.1369069368, 0.0620476492, 0.1250829697, 0.1700579822, -0.1776706129, 0.1202129424, 0.1126287282, -0.1570281684, 0.1897116601, -0.0772467926, -0.1316172481, -0.1925023794, -0.3208245337, 0.1964788139, -0.3342863023, 0.2418165058, -0.1585832089, 0.0198276881, -0.0615332462, 0.0957403481, -0.264561832, 0.751226902, 0.4937880635, -0.1195117086, 0.2913582921, 0.3966237605, -0.2185572237, -0.1752834469, 0.406290561, -0.3826131225, -0.2777349651, 0.2100417167, -0.0401863866, -0.2380756885, 0.3465703726, -0.5073058605, 0.2185844183, 0.1782456636, 0.0822510645, 0.2914725244, -0.2697468698, -0.1053946689, -0.2360117584, 0.0425622016, 0.6938400269, -0.6387727261, -0.0499244444, 0.1101891771, 0.101379171, -0.061366111, 0.3478798866, -0.0454605594, 0.3481103182, -0.4107352793, 0.3059868813, 0.0873121023, -0.1264710873, -0.3275630772, 0.3134202361, -0.0358151235, 0.2356392145, -0.021054687, -0.0642481819, 0.5519377589, -0.187389195, 0.3676521778, -0.1700586826, -0.2799574733, 0.1041628942, -0.0503813885, -0.0398437865, 0.0603796057, -0.2420818657, 0.1949243397, 0.0165873915, 0.0390779339, -0.5488615036, 0.1286388785, -0.150878951, 0.3383629024, 0.2401701361, 0.262108624, 0.1233314574, 0.0182514191, -0.2563519776, -0.4713616967, 0.3001765013, -0.4880331159, 0.0212483108, -0.4338340461, -0.1033039615, 0.030964639, 0.1834741384, -0.0350199975, 0.0330955572, -0.0749208778, -0.4975805879, 0.1765709817, -0.0213439744, -0.2262367159, -0.237069875, -0.1358648539, -0.0084389895, -0.3567227125, 0.0713602975, 0.250108242, -0.2921575308, -0.2542048395, 0.2466301769, 0.1149318442, -0.1176107079, 0.117354393, 0.1758527458, -0.0348160677, -0.1673573256, -0.1400127709, 0.1312534809, 0.011728297, -0.0458011553, 0.1018372104, 0.1450137347, 0.3444769382, -0.2378432453, -0.0694068372, 0.5054204464, -0.187614888, 0.5359302163, -0.1796862334, 0.0512382947, -0.1996319592, 0.0426065698, -0.2059214562, -0.3850510418, 0.0762838423, -0.1577370167, 0.0513374209, 0.0319145061, 0.0012565822, -0.1989195645, 0.0856168866, -0.0469621085, 0.1647790372, 0.0144881848, -0.0630519167, 0.2266898155, 0.0446927175, -0.0142776882, 0.3432699144, 0.2191426903, -0.0887260512, -0.1521820724, 0.2504402697, 0.00012218, 0.4139181376, 0.1816678494, 0.0260533392, 0.1550094187, -0.0036412026, -0.0657199845, -0.2528336346, -0.1814304441, 0.0057151746, 0.1495340616, -0.3952980936, -0.0354199149, 0.1101148203, -0.158504352, 0.0689760894, -0.0765032619, -0.290856272, -0.3032284081, -0.0453335345, 0.2601584494, -0.2722714245, -0.0240078494, -0.4013136923, 0.0116531979, 0.1975093931, -0.2747199833, -0.2812997401, -0.1685466915, -0.075610891, -0.0741590112, 0.0731138214, -0.1339875758, 0.3615632355, 0.252137363, -0.2612817585, -0.2437716424, -0.0951139629, 0.006513522, -0.537039578, 0.2054034323, 0.4100925624, 0.3981704414, -0.2923845649, 0.1470608711, 0.2793860137, -0.1071430519, -0.2480680197, -0.0079056546, 0.0223336499, 0.1532626897, -0.1792154163, 0.1474312842, 0.0644616708, -0.3209300041, 0.1781847477, -0.1891589761, 0.2615512013, 0.2194534689, 0.2780079842, 0.1538575739, -0.369377017, -0.4285492897, 0.122351326, -0.1416767389, 0.4460208416, 0.039022956, -0.1469309777, 0.1844056547, 0.026218608, -0.1853195429, 0.2405570298, -0.0966857001, 0.0939640701, -0.0562739521, 0.1234826446, 0.1900064647, 0.3668000996, 0.4985281229, 0.0864882693, 0.0460448302, -0.2846723497, -0.108955726, 0.0812638626, 0.0222765282, -0.0645137802, 0.422529459, 0.3217893243, 0.0287002921, 0.7504065037, 0.3654768467, 0.1272137165, 0.0946452394, 0.0725370497, 0.3822363317, -0.1140062958, -0.3796924353, -0.2082245946, 0.1538847685, -0.0840782374, 0.0325132832, 0.0550554171, -0.0620346144, -0.0012850619, 0.0619004332, -0.4879451692, -0.1890367121, 0.4240106046, -0.3093633056, 0.0761562213, -0.0749146789, 0.095616661, -0.2788100541, -0.1820272654, -0.1637151688, -0.3036247194, 0.6426760554, -0.0823247954, -0.0753789693, -0.1154972464, -0.6797444224, 0.3325336874, 0.2211800516, -0.0848114118, 0.106716387, -0.1852942705, 0.0687563792, 0.3100572526, 0.9494883418, -0.1932722479, 0.1566556096, 0.0814260393, -0.0248434972, -0.4435344338, 0.0998064503, -0.3279416561, 0.255086571, 0.2495425493, 0.5071647167, -0.3575255871, -0.0723438412, -0.0420532376, -0.0277328342, 0.0347222313, -0.0264868643, -0.1733804345, -0.1495419145, -0.1380317807, 0.3645798266, 0.4469459951, 0.0726858899, 0.1356703192, -0.2094711512, -0.0988865271, 0.0481707789, 0.0175996888, -0.1340298951, 0.4707479179, 0.0158334598, 0.0505987816, 0.2701372206, 0.1117347777, 0.2206300646, 0.4900632799, -0.1534303427, 0.2074077874, -0.1815866977, 0.0305911452, 0.3123360872, 0.4398163855, 0.0099648042, 0.0579146184, 0.3812751174, 0.3522172868, -0.0515042432, -0.2942022681, 0.1262358725, 0.0464041606, -0.5417698622, 0.0036568067, 0.1158786193, -0.0995820239, 0.0849703401, 0.6082314253, 0.5790846944, -0.3638047874, 0.3609662056, 0.0432920754, 0.8923063278, -0.0148929833, 0.1076274291, 0.1486808509, 0.0709490106, 0.2498286813, 0.5552585721, 0.0943638012, 0.0084221791, 0.097438395, -0.0407664217, -0.0082154376, 0.1668745726, 0.3400382996, 0.102786392, 0.2708596289, 0.0819576904, 0.1208938807, -0.1503460556, -0.2895897925, 0.2877459824, -0.3301817477, -0.3449305594, -0.0755385384, 0.07857126, 0.2657668293, -0.0579300784, -0.1058487669, -0.030924106, -0.4037671685, -0.1928456575, -0.18520239, -0.4449900091, 0.0211740602, 0.2638930976, -0.2862426937, -0.0328584909, 0.0515848026, -0.4806172848, 0.1447317302, -0.1111117452, -0.1330835223, 0.3892787993, 0.1719239354, 0.0218226369, -0.1521928906, 0.1726180315, 0.1998167336, -0.180318296, 0.0575537831, -0.4518596828, -0.1729947627, 0.0644664839, 0.4083658457, -0.2023413479, -0.2228998542, -0.396820724, -0.1921592206, 0.1015422046, 0.0394880101, -0.0883383527, 0.2670643628, -0.0757655576, 0.3907502294, -0.1920090765, -0.4534188211, -0.0437422767, 0.5255669951, 0.034629833, -0.1923189759, 0.4125704467, 0.1591852903, -0.164441824, -0.0695427209, 0.1383890063, 0.3426440656, -0.6278496981, 0.5433269143, 0.249869585, 0.0369898677, 0.1378323287, 0.4185103178, 0.1368645728, 0.2798645198, -0.3155888021, -0.1867185682, -0.2580825984, 0.4086382389, 0.103542462, 0.0359806716, -0.1420464367, -0.236739859, 0.3288379014, -0.1956319511, -0.1520755589, 0.06600485, -0.0865766779, 0.3288321495, 0.2184334844, 0.2640421689, 0.3569838107, -0.081811823, -0.1028169021, 0.1315311641, -0.2793510556, -0.0736055896, -0.0467089117, 0.176354751, 0.1042603925, -0.2203988433, 0.1627230793, -0.4074193537, -0.0460066982, -0.4062661529, 0.2619495392, 0.4909596443, -0.0040140217, -0.2378338724, 0.3719466329, 0.0600782074, -0.0297457986, 0.2064462155, -0.1776875257, -0.0705966875, -0.0677786022, 0.3043539226, 0.1634591371, 0.0337507054, 0.0829739571, 0.072048299, 0.0142621985, 0.0030943216, 0.4227868319, -0.2046111822, -0.2124462575, 0.3322143853, 0.2543900311, 0.0184188299, -0.0208608638, -0.1518289149, 0.2098125964, 0.0060319309, -0.1523621529, 0.0288433973, 0.1550513506, 0.3418107033, 0.2605260015, 0.3646140397, -0.1685422212, -0.2591929138, 0.0174683295, 0.1886156946, 0.021103939, 0.030939946, 0.1880582124, 0.3906851411, 0.3334282339, -0.0989428535, 0.3222150803, 0.078869842, 0.2825943828, 0.2901287675, 0.23771061, 0.2660046816, 0.0139710195, 0.0864452645, -0.204853788, -0.5083089471, 0.0377851799, 0.0890344083, -0.0027340481, 0.3360839784, 0.1234634072, 0.1538113952, -0.192422539, -0.275057435, 0.0418598801, 0.0021717064, -0.345461756, -0.0618339479, -0.3136755228, -0.2561421096, 0.4150931537, -0.1609164476, 0.0627368093, -0.3454867303, 0.3650226295, -0.077607803, -0.0953703299, -0.1441651881, -0.3677255511, 0.0240025651, 0.2292590141, -0.1103792489, 0.1378633678, -0.0913243443, -0.0463287719, 0.0504923128, 0.5798314214, 0.5111632347, 0.398568213, -0.0246102512, 0.400824964, 0.1301573366, -0.2436256409, -0.2861928344, 0.3631897867, -0.0595287718, -0.0250941329, 0.2001093328, -0.0104519334, -0.0469260439, -0.0630546361, -0.0026362012, 0.1076258868, 0.163515076, -0.1908557266, -0.1974217743, -0.2362535298, -0.2687474787, -0.0491944179, -0.0817951933, 0.0160533525, 0.2938641906, -0.0996416658, 0.0463561155, 0.0778609142, -0.0013327706, -0.0415193327, 0.2583118677, 0.4536593854, 0.0035886534, -0.4841513336, 0.1772227287, -0.3718904555, -0.030173203, -0.4928691387, 0.2783649266, 0.0389184952, 0.1972583532, 0.1198173314, -0.1226419285, 0.3183073997, -0.0501732305, -0.0438348986, 0.3545494974, 0.0648139343, -0.2790633738, -0.1928182244, -0.0135356113, 0.0101545416, -0.384270668, 0.1062460095, -0.1135108173, -0.0753599703, -0.1056094617, 0.1699266732, -0.1576718092, 0.0275926236, 0.1774146557, 0.3360168338, -0.0418953858, 0.0294316746, -0.0177053921, -0.3504038453, 0.1464195549, -0.1264900118, 0.1394367069, 0.3596005142, 0.4612445235, -0.3284626603, -0.202706039, -0.0240753945, 0.0423464961, 0.0046446058, 0.0361620411, -0.1818928719, 0.1435848325, -0.3938453496, -0.0358402692, -0.1220738962, 0.0222710148, 0.0860233009, 0.0270854346, -0.2525871396, -0.3549436331, 0.3827645481, -0.6531074047, -0.2620070279, -0.0693184659, 0.3420592546, 0.211510852, -0.2256406099, -0.3928544521, -0.1719201952, 0.2626016438, -0.0693580061, -0.0616546087, -0.1847910285, -0.5037385225, -0.0344291814, -0.1576237679, 0.1152830198, 0.0357200988, 0.0066584195, 0.2311965823, -0.3098658621 ]
https://github.com/huggingface/datasets/issues/2644
Batched `map` not allowed to return 0 items
Sounds good! Do you want me to propose a PR? I'm quite busy right now, but if it's not too urgent I could take a look next week.
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1
28
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1 Sounds good! Do you want me to propose a PR? I'm quite busy right now, but if it's not too urgent I could take a look next week.
[ -0.2328358591, -0.3903884888, -0.0444569401, 0.1644898802, -0.1085447446, -0.0687688664, 0.1163394749, 0.4056321681, 0.6400415897, 0.1178811938, -0.0565715581, 0.2460853755, -0.3954411447, 0.1043542847, -0.1629213542, 0.1608026028, -0.0449330881, 0.1405792534, -0.1691172719, -0.1914923936, -0.3362932801, 0.1631995887, -0.3979261518, -0.0501044765, -0.1487710625, -0.2919760346, 0.2864800394, -0.0362102278, -0.1628142893, -0.2454048246, 0.2060913295, -0.2328295708, -0.2091358155, 0.5783209205, -0.0001299275, -0.0231370106, 0.1505940706, -0.1851884276, -0.0897609591, -0.302960813, -0.1908181012, -0.1715302467, -0.1157184988, -0.2824651599, 0.1819462478, -0.2716501951, -0.1956347525, -0.4482397735, 0.1071965545, 0.2587007582, 0.0433216915, 0.4188175201, 0.0030658788, 0.1764480323, 0.3312484622, 0.2664009035, -0.0753519163, 0.1288109571, 0.720576942, -0.2881010473, 0.0226273369, 0.3385903239, -0.3921839297, 0.0709065795, 0.1367557496, -0.0309034791, 0.2301688343, -0.5515581369, 0.2697510719, 0.3675671518, -0.0900000334, 0.0607854947, -0.4333371818, -0.6687817574, -0.0403035916, -0.0954990163, -0.0388976522, 0.2810005248, -0.4210391045, -0.0564594604, -0.48461923, 0.12179479, 0.0078949537, 0.161854431, 0.0306756385, 0.4589538872, -0.0930406898, 0.200324133, 0.3451099098, -0.1618324369, -0.0994020402, -0.1672707945, -0.2236277461, 0.5847226381, -0.0366990454, -0.1459874213, 0.3893203735, 0.219767794, 0.2230353653, -0.3132421374, -0.0503061526, -0.0742759556, 0.2646803558, -0.0234319102, 0.4159452617, 0.0793758407, 0.2686937451, 0.3493202031, -0.0050519966, -0.0590939708, 0.0676901788, 0.1131691784, 0.1134423316, -0.0890840888, -0.0096516944, -0.076408267, 0.2567851543, -0.078752704, -0.121898368, 0.2341005504, -0.410017103, 0.1369069368, 0.0620476492, 0.1250829697, 0.1700579822, -0.1776706129, 0.1202129424, 0.1126287282, -0.1570281684, 0.1897116601, -0.0772467926, -0.1316172481, -0.1925023794, -0.3208245337, 0.1964788139, -0.3342863023, 0.2418165058, -0.1585832089, 0.0198276881, -0.0615332462, 0.0957403481, -0.264561832, 0.751226902, 0.4937880635, -0.1195117086, 0.2913582921, 0.3966237605, -0.2185572237, -0.1752834469, 0.406290561, -0.3826131225, -0.2777349651, 0.2100417167, -0.0401863866, -0.2380756885, 0.3465703726, -0.5073058605, 0.2185844183, 0.1782456636, 0.0822510645, 0.2914725244, -0.2697468698, -0.1053946689, -0.2360117584, 0.0425622016, 0.6938400269, -0.6387727261, -0.0499244444, 0.1101891771, 0.101379171, -0.061366111, 0.3478798866, -0.0454605594, 0.3481103182, -0.4107352793, 0.3059868813, 0.0873121023, -0.1264710873, -0.3275630772, 0.3134202361, -0.0358151235, 0.2356392145, -0.021054687, -0.0642481819, 0.5519377589, -0.187389195, 0.3676521778, -0.1700586826, -0.2799574733, 0.1041628942, -0.0503813885, -0.0398437865, 0.0603796057, -0.2420818657, 0.1949243397, 0.0165873915, 0.0390779339, -0.5488615036, 0.1286388785, -0.150878951, 0.3383629024, 0.2401701361, 0.262108624, 0.1233314574, 0.0182514191, -0.2563519776, -0.4713616967, 0.3001765013, -0.4880331159, 0.0212483108, -0.4338340461, -0.1033039615, 0.030964639, 0.1834741384, -0.0350199975, 0.0330955572, -0.0749208778, -0.4975805879, 0.1765709817, -0.0213439744, -0.2262367159, -0.237069875, -0.1358648539, -0.0084389895, -0.3567227125, 0.0713602975, 0.250108242, -0.2921575308, -0.2542048395, 0.2466301769, 0.1149318442, -0.1176107079, 0.117354393, 0.1758527458, -0.0348160677, -0.1673573256, -0.1400127709, 0.1312534809, 0.011728297, -0.0458011553, 0.1018372104, 0.1450137347, 0.3444769382, -0.2378432453, -0.0694068372, 0.5054204464, -0.187614888, 0.5359302163, -0.1796862334, 0.0512382947, -0.1996319592, 0.0426065698, -0.2059214562, -0.3850510418, 0.0762838423, -0.1577370167, 0.0513374209, 0.0319145061, 0.0012565822, -0.1989195645, 0.0856168866, -0.0469621085, 0.1647790372, 0.0144881848, -0.0630519167, 0.2266898155, 0.0446927175, -0.0142776882, 0.3432699144, 0.2191426903, -0.0887260512, -0.1521820724, 0.2504402697, 0.00012218, 0.4139181376, 0.1816678494, 0.0260533392, 0.1550094187, -0.0036412026, -0.0657199845, -0.2528336346, -0.1814304441, 0.0057151746, 0.1495340616, -0.3952980936, -0.0354199149, 0.1101148203, -0.158504352, 0.0689760894, -0.0765032619, -0.290856272, -0.3032284081, -0.0453335345, 0.2601584494, -0.2722714245, -0.0240078494, -0.4013136923, 0.0116531979, 0.1975093931, -0.2747199833, -0.2812997401, -0.1685466915, -0.075610891, -0.0741590112, 0.0731138214, -0.1339875758, 0.3615632355, 0.252137363, -0.2612817585, -0.2437716424, -0.0951139629, 0.006513522, -0.537039578, 0.2054034323, 0.4100925624, 0.3981704414, -0.2923845649, 0.1470608711, 0.2793860137, -0.1071430519, -0.2480680197, -0.0079056546, 0.0223336499, 0.1532626897, -0.1792154163, 0.1474312842, 0.0644616708, -0.3209300041, 0.1781847477, -0.1891589761, 0.2615512013, 0.2194534689, 0.2780079842, 0.1538575739, -0.369377017, -0.4285492897, 0.122351326, -0.1416767389, 0.4460208416, 0.039022956, -0.1469309777, 0.1844056547, 0.026218608, -0.1853195429, 0.2405570298, -0.0966857001, 0.0939640701, -0.0562739521, 0.1234826446, 0.1900064647, 0.3668000996, 0.4985281229, 0.0864882693, 0.0460448302, -0.2846723497, -0.108955726, 0.0812638626, 0.0222765282, -0.0645137802, 0.422529459, 0.3217893243, 0.0287002921, 0.7504065037, 0.3654768467, 0.1272137165, 0.0946452394, 0.0725370497, 0.3822363317, -0.1140062958, -0.3796924353, -0.2082245946, 0.1538847685, -0.0840782374, 0.0325132832, 0.0550554171, -0.0620346144, -0.0012850619, 0.0619004332, -0.4879451692, -0.1890367121, 0.4240106046, -0.3093633056, 0.0761562213, -0.0749146789, 0.095616661, -0.2788100541, -0.1820272654, -0.1637151688, -0.3036247194, 0.6426760554, -0.0823247954, -0.0753789693, -0.1154972464, -0.6797444224, 0.3325336874, 0.2211800516, -0.0848114118, 0.106716387, -0.1852942705, 0.0687563792, 0.3100572526, 0.9494883418, -0.1932722479, 0.1566556096, 0.0814260393, -0.0248434972, -0.4435344338, 0.0998064503, -0.3279416561, 0.255086571, 0.2495425493, 0.5071647167, -0.3575255871, -0.0723438412, -0.0420532376, -0.0277328342, 0.0347222313, -0.0264868643, -0.1733804345, -0.1495419145, -0.1380317807, 0.3645798266, 0.4469459951, 0.0726858899, 0.1356703192, -0.2094711512, -0.0988865271, 0.0481707789, 0.0175996888, -0.1340298951, 0.4707479179, 0.0158334598, 0.0505987816, 0.2701372206, 0.1117347777, 0.2206300646, 0.4900632799, -0.1534303427, 0.2074077874, -0.1815866977, 0.0305911452, 0.3123360872, 0.4398163855, 0.0099648042, 0.0579146184, 0.3812751174, 0.3522172868, -0.0515042432, -0.2942022681, 0.1262358725, 0.0464041606, -0.5417698622, 0.0036568067, 0.1158786193, -0.0995820239, 0.0849703401, 0.6082314253, 0.5790846944, -0.3638047874, 0.3609662056, 0.0432920754, 0.8923063278, -0.0148929833, 0.1076274291, 0.1486808509, 0.0709490106, 0.2498286813, 0.5552585721, 0.0943638012, 0.0084221791, 0.097438395, -0.0407664217, -0.0082154376, 0.1668745726, 0.3400382996, 0.102786392, 0.2708596289, 0.0819576904, 0.1208938807, -0.1503460556, -0.2895897925, 0.2877459824, -0.3301817477, -0.3449305594, -0.0755385384, 0.07857126, 0.2657668293, -0.0579300784, -0.1058487669, -0.030924106, -0.4037671685, -0.1928456575, -0.18520239, -0.4449900091, 0.0211740602, 0.2638930976, -0.2862426937, -0.0328584909, 0.0515848026, -0.4806172848, 0.1447317302, -0.1111117452, -0.1330835223, 0.3892787993, 0.1719239354, 0.0218226369, -0.1521928906, 0.1726180315, 0.1998167336, -0.180318296, 0.0575537831, -0.4518596828, -0.1729947627, 0.0644664839, 0.4083658457, -0.2023413479, -0.2228998542, -0.396820724, -0.1921592206, 0.1015422046, 0.0394880101, -0.0883383527, 0.2670643628, -0.0757655576, 0.3907502294, -0.1920090765, -0.4534188211, -0.0437422767, 0.5255669951, 0.034629833, -0.1923189759, 0.4125704467, 0.1591852903, -0.164441824, -0.0695427209, 0.1383890063, 0.3426440656, -0.6278496981, 0.5433269143, 0.249869585, 0.0369898677, 0.1378323287, 0.4185103178, 0.1368645728, 0.2798645198, -0.3155888021, -0.1867185682, -0.2580825984, 0.4086382389, 0.103542462, 0.0359806716, -0.1420464367, -0.236739859, 0.3288379014, -0.1956319511, -0.1520755589, 0.06600485, -0.0865766779, 0.3288321495, 0.2184334844, 0.2640421689, 0.3569838107, -0.081811823, -0.1028169021, 0.1315311641, -0.2793510556, -0.0736055896, -0.0467089117, 0.176354751, 0.1042603925, -0.2203988433, 0.1627230793, -0.4074193537, -0.0460066982, -0.4062661529, 0.2619495392, 0.4909596443, -0.0040140217, -0.2378338724, 0.3719466329, 0.0600782074, -0.0297457986, 0.2064462155, -0.1776875257, -0.0705966875, -0.0677786022, 0.3043539226, 0.1634591371, 0.0337507054, 0.0829739571, 0.072048299, 0.0142621985, 0.0030943216, 0.4227868319, -0.2046111822, -0.2124462575, 0.3322143853, 0.2543900311, 0.0184188299, -0.0208608638, -0.1518289149, 0.2098125964, 0.0060319309, -0.1523621529, 0.0288433973, 0.1550513506, 0.3418107033, 0.2605260015, 0.3646140397, -0.1685422212, -0.2591929138, 0.0174683295, 0.1886156946, 0.021103939, 0.030939946, 0.1880582124, 0.3906851411, 0.3334282339, -0.0989428535, 0.3222150803, 0.078869842, 0.2825943828, 0.2901287675, 0.23771061, 0.2660046816, 0.0139710195, 0.0864452645, -0.204853788, -0.5083089471, 0.0377851799, 0.0890344083, -0.0027340481, 0.3360839784, 0.1234634072, 0.1538113952, -0.192422539, -0.275057435, 0.0418598801, 0.0021717064, -0.345461756, -0.0618339479, -0.3136755228, -0.2561421096, 0.4150931537, -0.1609164476, 0.0627368093, -0.3454867303, 0.3650226295, -0.077607803, -0.0953703299, -0.1441651881, -0.3677255511, 0.0240025651, 0.2292590141, -0.1103792489, 0.1378633678, -0.0913243443, -0.0463287719, 0.0504923128, 0.5798314214, 0.5111632347, 0.398568213, -0.0246102512, 0.400824964, 0.1301573366, -0.2436256409, -0.2861928344, 0.3631897867, -0.0595287718, -0.0250941329, 0.2001093328, -0.0104519334, -0.0469260439, -0.0630546361, -0.0026362012, 0.1076258868, 0.163515076, -0.1908557266, -0.1974217743, -0.2362535298, -0.2687474787, -0.0491944179, -0.0817951933, 0.0160533525, 0.2938641906, -0.0996416658, 0.0463561155, 0.0778609142, -0.0013327706, -0.0415193327, 0.2583118677, 0.4536593854, 0.0035886534, -0.4841513336, 0.1772227287, -0.3718904555, -0.030173203, -0.4928691387, 0.2783649266, 0.0389184952, 0.1972583532, 0.1198173314, -0.1226419285, 0.3183073997, -0.0501732305, -0.0438348986, 0.3545494974, 0.0648139343, -0.2790633738, -0.1928182244, -0.0135356113, 0.0101545416, -0.384270668, 0.1062460095, -0.1135108173, -0.0753599703, -0.1056094617, 0.1699266732, -0.1576718092, 0.0275926236, 0.1774146557, 0.3360168338, -0.0418953858, 0.0294316746, -0.0177053921, -0.3504038453, 0.1464195549, -0.1264900118, 0.1394367069, 0.3596005142, 0.4612445235, -0.3284626603, -0.202706039, -0.0240753945, 0.0423464961, 0.0046446058, 0.0361620411, -0.1818928719, 0.1435848325, -0.3938453496, -0.0358402692, -0.1220738962, 0.0222710148, 0.0860233009, 0.0270854346, -0.2525871396, -0.3549436331, 0.3827645481, -0.6531074047, -0.2620070279, -0.0693184659, 0.3420592546, 0.211510852, -0.2256406099, -0.3928544521, -0.1719201952, 0.2626016438, -0.0693580061, -0.0616546087, -0.1847910285, -0.5037385225, -0.0344291814, -0.1576237679, 0.1152830198, 0.0357200988, 0.0066584195, 0.2311965823, -0.3098658621 ]
https://github.com/huggingface/datasets/issues/2644
Batched `map` not allowed to return 0 items
Sure if you're interested feel free to open a PR :) You can also ping me anytime if you have questions or if I can help !
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1
27
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1 Sure if you're interested feel free to open a PR :) You can also ping me anytime if you have questions or if I can help !
[ -0.2328358591, -0.3903884888, -0.0444569401, 0.1644898802, -0.1085447446, -0.0687688664, 0.1163394749, 0.4056321681, 0.6400415897, 0.1178811938, -0.0565715581, 0.2460853755, -0.3954411447, 0.1043542847, -0.1629213542, 0.1608026028, -0.0449330881, 0.1405792534, -0.1691172719, -0.1914923936, -0.3362932801, 0.1631995887, -0.3979261518, -0.0501044765, -0.1487710625, -0.2919760346, 0.2864800394, -0.0362102278, -0.1628142893, -0.2454048246, 0.2060913295, -0.2328295708, -0.2091358155, 0.5783209205, -0.0001299275, -0.0231370106, 0.1505940706, -0.1851884276, -0.0897609591, -0.302960813, -0.1908181012, -0.1715302467, -0.1157184988, -0.2824651599, 0.1819462478, -0.2716501951, -0.1956347525, -0.4482397735, 0.1071965545, 0.2587007582, 0.0433216915, 0.4188175201, 0.0030658788, 0.1764480323, 0.3312484622, 0.2664009035, -0.0753519163, 0.1288109571, 0.720576942, -0.2881010473, 0.0226273369, 0.3385903239, -0.3921839297, 0.0709065795, 0.1367557496, -0.0309034791, 0.2301688343, -0.5515581369, 0.2697510719, 0.3675671518, -0.0900000334, 0.0607854947, -0.4333371818, -0.6687817574, -0.0403035916, -0.0954990163, -0.0388976522, 0.2810005248, -0.4210391045, -0.0564594604, -0.48461923, 0.12179479, 0.0078949537, 0.161854431, 0.0306756385, 0.4589538872, -0.0930406898, 0.200324133, 0.3451099098, -0.1618324369, -0.0994020402, -0.1672707945, -0.2236277461, 0.5847226381, -0.0366990454, -0.1459874213, 0.3893203735, 0.219767794, 0.2230353653, -0.3132421374, -0.0503061526, -0.0742759556, 0.2646803558, -0.0234319102, 0.4159452617, 0.0793758407, 0.2686937451, 0.3493202031, -0.0050519966, -0.0590939708, 0.0676901788, 0.1131691784, 0.1134423316, -0.0890840888, -0.0096516944, -0.076408267, 0.2567851543, -0.078752704, -0.121898368, 0.2341005504, -0.410017103, 0.1369069368, 0.0620476492, 0.1250829697, 0.1700579822, -0.1776706129, 0.1202129424, 0.1126287282, -0.1570281684, 0.1897116601, -0.0772467926, -0.1316172481, -0.1925023794, -0.3208245337, 0.1964788139, -0.3342863023, 0.2418165058, -0.1585832089, 0.0198276881, -0.0615332462, 0.0957403481, -0.264561832, 0.751226902, 0.4937880635, -0.1195117086, 0.2913582921, 0.3966237605, -0.2185572237, -0.1752834469, 0.406290561, -0.3826131225, -0.2777349651, 0.2100417167, -0.0401863866, -0.2380756885, 0.3465703726, -0.5073058605, 0.2185844183, 0.1782456636, 0.0822510645, 0.2914725244, -0.2697468698, -0.1053946689, -0.2360117584, 0.0425622016, 0.6938400269, -0.6387727261, -0.0499244444, 0.1101891771, 0.101379171, -0.061366111, 0.3478798866, -0.0454605594, 0.3481103182, -0.4107352793, 0.3059868813, 0.0873121023, -0.1264710873, -0.3275630772, 0.3134202361, -0.0358151235, 0.2356392145, -0.021054687, -0.0642481819, 0.5519377589, -0.187389195, 0.3676521778, -0.1700586826, -0.2799574733, 0.1041628942, -0.0503813885, -0.0398437865, 0.0603796057, -0.2420818657, 0.1949243397, 0.0165873915, 0.0390779339, -0.5488615036, 0.1286388785, -0.150878951, 0.3383629024, 0.2401701361, 0.262108624, 0.1233314574, 0.0182514191, -0.2563519776, -0.4713616967, 0.3001765013, -0.4880331159, 0.0212483108, -0.4338340461, -0.1033039615, 0.030964639, 0.1834741384, -0.0350199975, 0.0330955572, -0.0749208778, -0.4975805879, 0.1765709817, -0.0213439744, -0.2262367159, -0.237069875, -0.1358648539, -0.0084389895, -0.3567227125, 0.0713602975, 0.250108242, -0.2921575308, -0.2542048395, 0.2466301769, 0.1149318442, -0.1176107079, 0.117354393, 0.1758527458, -0.0348160677, -0.1673573256, -0.1400127709, 0.1312534809, 0.011728297, -0.0458011553, 0.1018372104, 0.1450137347, 0.3444769382, -0.2378432453, -0.0694068372, 0.5054204464, -0.187614888, 0.5359302163, -0.1796862334, 0.0512382947, -0.1996319592, 0.0426065698, -0.2059214562, -0.3850510418, 0.0762838423, -0.1577370167, 0.0513374209, 0.0319145061, 0.0012565822, -0.1989195645, 0.0856168866, -0.0469621085, 0.1647790372, 0.0144881848, -0.0630519167, 0.2266898155, 0.0446927175, -0.0142776882, 0.3432699144, 0.2191426903, -0.0887260512, -0.1521820724, 0.2504402697, 0.00012218, 0.4139181376, 0.1816678494, 0.0260533392, 0.1550094187, -0.0036412026, -0.0657199845, -0.2528336346, -0.1814304441, 0.0057151746, 0.1495340616, -0.3952980936, -0.0354199149, 0.1101148203, -0.158504352, 0.0689760894, -0.0765032619, -0.290856272, -0.3032284081, -0.0453335345, 0.2601584494, -0.2722714245, -0.0240078494, -0.4013136923, 0.0116531979, 0.1975093931, -0.2747199833, -0.2812997401, -0.1685466915, -0.075610891, -0.0741590112, 0.0731138214, -0.1339875758, 0.3615632355, 0.252137363, -0.2612817585, -0.2437716424, -0.0951139629, 0.006513522, -0.537039578, 0.2054034323, 0.4100925624, 0.3981704414, -0.2923845649, 0.1470608711, 0.2793860137, -0.1071430519, -0.2480680197, -0.0079056546, 0.0223336499, 0.1532626897, -0.1792154163, 0.1474312842, 0.0644616708, -0.3209300041, 0.1781847477, -0.1891589761, 0.2615512013, 0.2194534689, 0.2780079842, 0.1538575739, -0.369377017, -0.4285492897, 0.122351326, -0.1416767389, 0.4460208416, 0.039022956, -0.1469309777, 0.1844056547, 0.026218608, -0.1853195429, 0.2405570298, -0.0966857001, 0.0939640701, -0.0562739521, 0.1234826446, 0.1900064647, 0.3668000996, 0.4985281229, 0.0864882693, 0.0460448302, -0.2846723497, -0.108955726, 0.0812638626, 0.0222765282, -0.0645137802, 0.422529459, 0.3217893243, 0.0287002921, 0.7504065037, 0.3654768467, 0.1272137165, 0.0946452394, 0.0725370497, 0.3822363317, -0.1140062958, -0.3796924353, -0.2082245946, 0.1538847685, -0.0840782374, 0.0325132832, 0.0550554171, -0.0620346144, -0.0012850619, 0.0619004332, -0.4879451692, -0.1890367121, 0.4240106046, -0.3093633056, 0.0761562213, -0.0749146789, 0.095616661, -0.2788100541, -0.1820272654, -0.1637151688, -0.3036247194, 0.6426760554, -0.0823247954, -0.0753789693, -0.1154972464, -0.6797444224, 0.3325336874, 0.2211800516, -0.0848114118, 0.106716387, -0.1852942705, 0.0687563792, 0.3100572526, 0.9494883418, -0.1932722479, 0.1566556096, 0.0814260393, -0.0248434972, -0.4435344338, 0.0998064503, -0.3279416561, 0.255086571, 0.2495425493, 0.5071647167, -0.3575255871, -0.0723438412, -0.0420532376, -0.0277328342, 0.0347222313, -0.0264868643, -0.1733804345, -0.1495419145, -0.1380317807, 0.3645798266, 0.4469459951, 0.0726858899, 0.1356703192, -0.2094711512, -0.0988865271, 0.0481707789, 0.0175996888, -0.1340298951, 0.4707479179, 0.0158334598, 0.0505987816, 0.2701372206, 0.1117347777, 0.2206300646, 0.4900632799, -0.1534303427, 0.2074077874, -0.1815866977, 0.0305911452, 0.3123360872, 0.4398163855, 0.0099648042, 0.0579146184, 0.3812751174, 0.3522172868, -0.0515042432, -0.2942022681, 0.1262358725, 0.0464041606, -0.5417698622, 0.0036568067, 0.1158786193, -0.0995820239, 0.0849703401, 0.6082314253, 0.5790846944, -0.3638047874, 0.3609662056, 0.0432920754, 0.8923063278, -0.0148929833, 0.1076274291, 0.1486808509, 0.0709490106, 0.2498286813, 0.5552585721, 0.0943638012, 0.0084221791, 0.097438395, -0.0407664217, -0.0082154376, 0.1668745726, 0.3400382996, 0.102786392, 0.2708596289, 0.0819576904, 0.1208938807, -0.1503460556, -0.2895897925, 0.2877459824, -0.3301817477, -0.3449305594, -0.0755385384, 0.07857126, 0.2657668293, -0.0579300784, -0.1058487669, -0.030924106, -0.4037671685, -0.1928456575, -0.18520239, -0.4449900091, 0.0211740602, 0.2638930976, -0.2862426937, -0.0328584909, 0.0515848026, -0.4806172848, 0.1447317302, -0.1111117452, -0.1330835223, 0.3892787993, 0.1719239354, 0.0218226369, -0.1521928906, 0.1726180315, 0.1998167336, -0.180318296, 0.0575537831, -0.4518596828, -0.1729947627, 0.0644664839, 0.4083658457, -0.2023413479, -0.2228998542, -0.396820724, -0.1921592206, 0.1015422046, 0.0394880101, -0.0883383527, 0.2670643628, -0.0757655576, 0.3907502294, -0.1920090765, -0.4534188211, -0.0437422767, 0.5255669951, 0.034629833, -0.1923189759, 0.4125704467, 0.1591852903, -0.164441824, -0.0695427209, 0.1383890063, 0.3426440656, -0.6278496981, 0.5433269143, 0.249869585, 0.0369898677, 0.1378323287, 0.4185103178, 0.1368645728, 0.2798645198, -0.3155888021, -0.1867185682, -0.2580825984, 0.4086382389, 0.103542462, 0.0359806716, -0.1420464367, -0.236739859, 0.3288379014, -0.1956319511, -0.1520755589, 0.06600485, -0.0865766779, 0.3288321495, 0.2184334844, 0.2640421689, 0.3569838107, -0.081811823, -0.1028169021, 0.1315311641, -0.2793510556, -0.0736055896, -0.0467089117, 0.176354751, 0.1042603925, -0.2203988433, 0.1627230793, -0.4074193537, -0.0460066982, -0.4062661529, 0.2619495392, 0.4909596443, -0.0040140217, -0.2378338724, 0.3719466329, 0.0600782074, -0.0297457986, 0.2064462155, -0.1776875257, -0.0705966875, -0.0677786022, 0.3043539226, 0.1634591371, 0.0337507054, 0.0829739571, 0.072048299, 0.0142621985, 0.0030943216, 0.4227868319, -0.2046111822, -0.2124462575, 0.3322143853, 0.2543900311, 0.0184188299, -0.0208608638, -0.1518289149, 0.2098125964, 0.0060319309, -0.1523621529, 0.0288433973, 0.1550513506, 0.3418107033, 0.2605260015, 0.3646140397, -0.1685422212, -0.2591929138, 0.0174683295, 0.1886156946, 0.021103939, 0.030939946, 0.1880582124, 0.3906851411, 0.3334282339, -0.0989428535, 0.3222150803, 0.078869842, 0.2825943828, 0.2901287675, 0.23771061, 0.2660046816, 0.0139710195, 0.0864452645, -0.204853788, -0.5083089471, 0.0377851799, 0.0890344083, -0.0027340481, 0.3360839784, 0.1234634072, 0.1538113952, -0.192422539, -0.275057435, 0.0418598801, 0.0021717064, -0.345461756, -0.0618339479, -0.3136755228, -0.2561421096, 0.4150931537, -0.1609164476, 0.0627368093, -0.3454867303, 0.3650226295, -0.077607803, -0.0953703299, -0.1441651881, -0.3677255511, 0.0240025651, 0.2292590141, -0.1103792489, 0.1378633678, -0.0913243443, -0.0463287719, 0.0504923128, 0.5798314214, 0.5111632347, 0.398568213, -0.0246102512, 0.400824964, 0.1301573366, -0.2436256409, -0.2861928344, 0.3631897867, -0.0595287718, -0.0250941329, 0.2001093328, -0.0104519334, -0.0469260439, -0.0630546361, -0.0026362012, 0.1076258868, 0.163515076, -0.1908557266, -0.1974217743, -0.2362535298, -0.2687474787, -0.0491944179, -0.0817951933, 0.0160533525, 0.2938641906, -0.0996416658, 0.0463561155, 0.0778609142, -0.0013327706, -0.0415193327, 0.2583118677, 0.4536593854, 0.0035886534, -0.4841513336, 0.1772227287, -0.3718904555, -0.030173203, -0.4928691387, 0.2783649266, 0.0389184952, 0.1972583532, 0.1198173314, -0.1226419285, 0.3183073997, -0.0501732305, -0.0438348986, 0.3545494974, 0.0648139343, -0.2790633738, -0.1928182244, -0.0135356113, 0.0101545416, -0.384270668, 0.1062460095, -0.1135108173, -0.0753599703, -0.1056094617, 0.1699266732, -0.1576718092, 0.0275926236, 0.1774146557, 0.3360168338, -0.0418953858, 0.0294316746, -0.0177053921, -0.3504038453, 0.1464195549, -0.1264900118, 0.1394367069, 0.3596005142, 0.4612445235, -0.3284626603, -0.202706039, -0.0240753945, 0.0423464961, 0.0046446058, 0.0361620411, -0.1818928719, 0.1435848325, -0.3938453496, -0.0358402692, -0.1220738962, 0.0222710148, 0.0860233009, 0.0270854346, -0.2525871396, -0.3549436331, 0.3827645481, -0.6531074047, -0.2620070279, -0.0693184659, 0.3420592546, 0.211510852, -0.2256406099, -0.3928544521, -0.1719201952, 0.2626016438, -0.0693580061, -0.0616546087, -0.1847910285, -0.5037385225, -0.0344291814, -0.1576237679, 0.1152830198, 0.0357200988, 0.0066584195, 0.2311965823, -0.3098658621 ]
https://github.com/huggingface/datasets/issues/2644
Batched `map` not allowed to return 0 items
Sorry to ping you, @lhoestq, did you have a chance to take a look at the proposed PR? Thank you!
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1
20
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1 Sorry to ping you, @lhoestq, did you have a chance to take a look at the proposed PR? Thank you!
[ -0.2328358591, -0.3903884888, -0.0444569401, 0.1644898802, -0.1085447446, -0.0687688664, 0.1163394749, 0.4056321681, 0.6400415897, 0.1178811938, -0.0565715581, 0.2460853755, -0.3954411447, 0.1043542847, -0.1629213542, 0.1608026028, -0.0449330881, 0.1405792534, -0.1691172719, -0.1914923936, -0.3362932801, 0.1631995887, -0.3979261518, -0.0501044765, -0.1487710625, -0.2919760346, 0.2864800394, -0.0362102278, -0.1628142893, -0.2454048246, 0.2060913295, -0.2328295708, -0.2091358155, 0.5783209205, -0.0001299275, -0.0231370106, 0.1505940706, -0.1851884276, -0.0897609591, -0.302960813, -0.1908181012, -0.1715302467, -0.1157184988, -0.2824651599, 0.1819462478, -0.2716501951, -0.1956347525, -0.4482397735, 0.1071965545, 0.2587007582, 0.0433216915, 0.4188175201, 0.0030658788, 0.1764480323, 0.3312484622, 0.2664009035, -0.0753519163, 0.1288109571, 0.720576942, -0.2881010473, 0.0226273369, 0.3385903239, -0.3921839297, 0.0709065795, 0.1367557496, -0.0309034791, 0.2301688343, -0.5515581369, 0.2697510719, 0.3675671518, -0.0900000334, 0.0607854947, -0.4333371818, -0.6687817574, -0.0403035916, -0.0954990163, -0.0388976522, 0.2810005248, -0.4210391045, -0.0564594604, -0.48461923, 0.12179479, 0.0078949537, 0.161854431, 0.0306756385, 0.4589538872, -0.0930406898, 0.200324133, 0.3451099098, -0.1618324369, -0.0994020402, -0.1672707945, -0.2236277461, 0.5847226381, -0.0366990454, -0.1459874213, 0.3893203735, 0.219767794, 0.2230353653, -0.3132421374, -0.0503061526, -0.0742759556, 0.2646803558, -0.0234319102, 0.4159452617, 0.0793758407, 0.2686937451, 0.3493202031, -0.0050519966, -0.0590939708, 0.0676901788, 0.1131691784, 0.1134423316, -0.0890840888, -0.0096516944, -0.076408267, 0.2567851543, -0.078752704, -0.121898368, 0.2341005504, -0.410017103, 0.1369069368, 0.0620476492, 0.1250829697, 0.1700579822, -0.1776706129, 0.1202129424, 0.1126287282, -0.1570281684, 0.1897116601, -0.0772467926, -0.1316172481, -0.1925023794, -0.3208245337, 0.1964788139, -0.3342863023, 0.2418165058, -0.1585832089, 0.0198276881, -0.0615332462, 0.0957403481, -0.264561832, 0.751226902, 0.4937880635, -0.1195117086, 0.2913582921, 0.3966237605, -0.2185572237, -0.1752834469, 0.406290561, -0.3826131225, -0.2777349651, 0.2100417167, -0.0401863866, -0.2380756885, 0.3465703726, -0.5073058605, 0.2185844183, 0.1782456636, 0.0822510645, 0.2914725244, -0.2697468698, -0.1053946689, -0.2360117584, 0.0425622016, 0.6938400269, -0.6387727261, -0.0499244444, 0.1101891771, 0.101379171, -0.061366111, 0.3478798866, -0.0454605594, 0.3481103182, -0.4107352793, 0.3059868813, 0.0873121023, -0.1264710873, -0.3275630772, 0.3134202361, -0.0358151235, 0.2356392145, -0.021054687, -0.0642481819, 0.5519377589, -0.187389195, 0.3676521778, -0.1700586826, -0.2799574733, 0.1041628942, -0.0503813885, -0.0398437865, 0.0603796057, -0.2420818657, 0.1949243397, 0.0165873915, 0.0390779339, -0.5488615036, 0.1286388785, -0.150878951, 0.3383629024, 0.2401701361, 0.262108624, 0.1233314574, 0.0182514191, -0.2563519776, -0.4713616967, 0.3001765013, -0.4880331159, 0.0212483108, -0.4338340461, -0.1033039615, 0.030964639, 0.1834741384, -0.0350199975, 0.0330955572, -0.0749208778, -0.4975805879, 0.1765709817, -0.0213439744, -0.2262367159, -0.237069875, -0.1358648539, -0.0084389895, -0.3567227125, 0.0713602975, 0.250108242, -0.2921575308, -0.2542048395, 0.2466301769, 0.1149318442, -0.1176107079, 0.117354393, 0.1758527458, -0.0348160677, -0.1673573256, -0.1400127709, 0.1312534809, 0.011728297, -0.0458011553, 0.1018372104, 0.1450137347, 0.3444769382, -0.2378432453, -0.0694068372, 0.5054204464, -0.187614888, 0.5359302163, -0.1796862334, 0.0512382947, -0.1996319592, 0.0426065698, -0.2059214562, -0.3850510418, 0.0762838423, -0.1577370167, 0.0513374209, 0.0319145061, 0.0012565822, -0.1989195645, 0.0856168866, -0.0469621085, 0.1647790372, 0.0144881848, -0.0630519167, 0.2266898155, 0.0446927175, -0.0142776882, 0.3432699144, 0.2191426903, -0.0887260512, -0.1521820724, 0.2504402697, 0.00012218, 0.4139181376, 0.1816678494, 0.0260533392, 0.1550094187, -0.0036412026, -0.0657199845, -0.2528336346, -0.1814304441, 0.0057151746, 0.1495340616, -0.3952980936, -0.0354199149, 0.1101148203, -0.158504352, 0.0689760894, -0.0765032619, -0.290856272, -0.3032284081, -0.0453335345, 0.2601584494, -0.2722714245, -0.0240078494, -0.4013136923, 0.0116531979, 0.1975093931, -0.2747199833, -0.2812997401, -0.1685466915, -0.075610891, -0.0741590112, 0.0731138214, -0.1339875758, 0.3615632355, 0.252137363, -0.2612817585, -0.2437716424, -0.0951139629, 0.006513522, -0.537039578, 0.2054034323, 0.4100925624, 0.3981704414, -0.2923845649, 0.1470608711, 0.2793860137, -0.1071430519, -0.2480680197, -0.0079056546, 0.0223336499, 0.1532626897, -0.1792154163, 0.1474312842, 0.0644616708, -0.3209300041, 0.1781847477, -0.1891589761, 0.2615512013, 0.2194534689, 0.2780079842, 0.1538575739, -0.369377017, -0.4285492897, 0.122351326, -0.1416767389, 0.4460208416, 0.039022956, -0.1469309777, 0.1844056547, 0.026218608, -0.1853195429, 0.2405570298, -0.0966857001, 0.0939640701, -0.0562739521, 0.1234826446, 0.1900064647, 0.3668000996, 0.4985281229, 0.0864882693, 0.0460448302, -0.2846723497, -0.108955726, 0.0812638626, 0.0222765282, -0.0645137802, 0.422529459, 0.3217893243, 0.0287002921, 0.7504065037, 0.3654768467, 0.1272137165, 0.0946452394, 0.0725370497, 0.3822363317, -0.1140062958, -0.3796924353, -0.2082245946, 0.1538847685, -0.0840782374, 0.0325132832, 0.0550554171, -0.0620346144, -0.0012850619, 0.0619004332, -0.4879451692, -0.1890367121, 0.4240106046, -0.3093633056, 0.0761562213, -0.0749146789, 0.095616661, -0.2788100541, -0.1820272654, -0.1637151688, -0.3036247194, 0.6426760554, -0.0823247954, -0.0753789693, -0.1154972464, -0.6797444224, 0.3325336874, 0.2211800516, -0.0848114118, 0.106716387, -0.1852942705, 0.0687563792, 0.3100572526, 0.9494883418, -0.1932722479, 0.1566556096, 0.0814260393, -0.0248434972, -0.4435344338, 0.0998064503, -0.3279416561, 0.255086571, 0.2495425493, 0.5071647167, -0.3575255871, -0.0723438412, -0.0420532376, -0.0277328342, 0.0347222313, -0.0264868643, -0.1733804345, -0.1495419145, -0.1380317807, 0.3645798266, 0.4469459951, 0.0726858899, 0.1356703192, -0.2094711512, -0.0988865271, 0.0481707789, 0.0175996888, -0.1340298951, 0.4707479179, 0.0158334598, 0.0505987816, 0.2701372206, 0.1117347777, 0.2206300646, 0.4900632799, -0.1534303427, 0.2074077874, -0.1815866977, 0.0305911452, 0.3123360872, 0.4398163855, 0.0099648042, 0.0579146184, 0.3812751174, 0.3522172868, -0.0515042432, -0.2942022681, 0.1262358725, 0.0464041606, -0.5417698622, 0.0036568067, 0.1158786193, -0.0995820239, 0.0849703401, 0.6082314253, 0.5790846944, -0.3638047874, 0.3609662056, 0.0432920754, 0.8923063278, -0.0148929833, 0.1076274291, 0.1486808509, 0.0709490106, 0.2498286813, 0.5552585721, 0.0943638012, 0.0084221791, 0.097438395, -0.0407664217, -0.0082154376, 0.1668745726, 0.3400382996, 0.102786392, 0.2708596289, 0.0819576904, 0.1208938807, -0.1503460556, -0.2895897925, 0.2877459824, -0.3301817477, -0.3449305594, -0.0755385384, 0.07857126, 0.2657668293, -0.0579300784, -0.1058487669, -0.030924106, -0.4037671685, -0.1928456575, -0.18520239, -0.4449900091, 0.0211740602, 0.2638930976, -0.2862426937, -0.0328584909, 0.0515848026, -0.4806172848, 0.1447317302, -0.1111117452, -0.1330835223, 0.3892787993, 0.1719239354, 0.0218226369, -0.1521928906, 0.1726180315, 0.1998167336, -0.180318296, 0.0575537831, -0.4518596828, -0.1729947627, 0.0644664839, 0.4083658457, -0.2023413479, -0.2228998542, -0.396820724, -0.1921592206, 0.1015422046, 0.0394880101, -0.0883383527, 0.2670643628, -0.0757655576, 0.3907502294, -0.1920090765, -0.4534188211, -0.0437422767, 0.5255669951, 0.034629833, -0.1923189759, 0.4125704467, 0.1591852903, -0.164441824, -0.0695427209, 0.1383890063, 0.3426440656, -0.6278496981, 0.5433269143, 0.249869585, 0.0369898677, 0.1378323287, 0.4185103178, 0.1368645728, 0.2798645198, -0.3155888021, -0.1867185682, -0.2580825984, 0.4086382389, 0.103542462, 0.0359806716, -0.1420464367, -0.236739859, 0.3288379014, -0.1956319511, -0.1520755589, 0.06600485, -0.0865766779, 0.3288321495, 0.2184334844, 0.2640421689, 0.3569838107, -0.081811823, -0.1028169021, 0.1315311641, -0.2793510556, -0.0736055896, -0.0467089117, 0.176354751, 0.1042603925, -0.2203988433, 0.1627230793, -0.4074193537, -0.0460066982, -0.4062661529, 0.2619495392, 0.4909596443, -0.0040140217, -0.2378338724, 0.3719466329, 0.0600782074, -0.0297457986, 0.2064462155, -0.1776875257, -0.0705966875, -0.0677786022, 0.3043539226, 0.1634591371, 0.0337507054, 0.0829739571, 0.072048299, 0.0142621985, 0.0030943216, 0.4227868319, -0.2046111822, -0.2124462575, 0.3322143853, 0.2543900311, 0.0184188299, -0.0208608638, -0.1518289149, 0.2098125964, 0.0060319309, -0.1523621529, 0.0288433973, 0.1550513506, 0.3418107033, 0.2605260015, 0.3646140397, -0.1685422212, -0.2591929138, 0.0174683295, 0.1886156946, 0.021103939, 0.030939946, 0.1880582124, 0.3906851411, 0.3334282339, -0.0989428535, 0.3222150803, 0.078869842, 0.2825943828, 0.2901287675, 0.23771061, 0.2660046816, 0.0139710195, 0.0864452645, -0.204853788, -0.5083089471, 0.0377851799, 0.0890344083, -0.0027340481, 0.3360839784, 0.1234634072, 0.1538113952, -0.192422539, -0.275057435, 0.0418598801, 0.0021717064, -0.345461756, -0.0618339479, -0.3136755228, -0.2561421096, 0.4150931537, -0.1609164476, 0.0627368093, -0.3454867303, 0.3650226295, -0.077607803, -0.0953703299, -0.1441651881, -0.3677255511, 0.0240025651, 0.2292590141, -0.1103792489, 0.1378633678, -0.0913243443, -0.0463287719, 0.0504923128, 0.5798314214, 0.5111632347, 0.398568213, -0.0246102512, 0.400824964, 0.1301573366, -0.2436256409, -0.2861928344, 0.3631897867, -0.0595287718, -0.0250941329, 0.2001093328, -0.0104519334, -0.0469260439, -0.0630546361, -0.0026362012, 0.1076258868, 0.163515076, -0.1908557266, -0.1974217743, -0.2362535298, -0.2687474787, -0.0491944179, -0.0817951933, 0.0160533525, 0.2938641906, -0.0996416658, 0.0463561155, 0.0778609142, -0.0013327706, -0.0415193327, 0.2583118677, 0.4536593854, 0.0035886534, -0.4841513336, 0.1772227287, -0.3718904555, -0.030173203, -0.4928691387, 0.2783649266, 0.0389184952, 0.1972583532, 0.1198173314, -0.1226419285, 0.3183073997, -0.0501732305, -0.0438348986, 0.3545494974, 0.0648139343, -0.2790633738, -0.1928182244, -0.0135356113, 0.0101545416, -0.384270668, 0.1062460095, -0.1135108173, -0.0753599703, -0.1056094617, 0.1699266732, -0.1576718092, 0.0275926236, 0.1774146557, 0.3360168338, -0.0418953858, 0.0294316746, -0.0177053921, -0.3504038453, 0.1464195549, -0.1264900118, 0.1394367069, 0.3596005142, 0.4612445235, -0.3284626603, -0.202706039, -0.0240753945, 0.0423464961, 0.0046446058, 0.0361620411, -0.1818928719, 0.1435848325, -0.3938453496, -0.0358402692, -0.1220738962, 0.0222710148, 0.0860233009, 0.0270854346, -0.2525871396, -0.3549436331, 0.3827645481, -0.6531074047, -0.2620070279, -0.0693184659, 0.3420592546, 0.211510852, -0.2256406099, -0.3928544521, -0.1719201952, 0.2626016438, -0.0693580061, -0.0616546087, -0.1847910285, -0.5037385225, -0.0344291814, -0.1576237679, 0.1152830198, 0.0357200988, 0.0066584195, 0.2311965823, -0.3098658621 ]
https://github.com/huggingface/datasets/issues/2644
Batched `map` not allowed to return 0 items
Yes and it's all good, thank you :) Feel free to close this issue if it's good for you
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1
19
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1 Yes and it's all good, thank you :) Feel free to close this issue if it's good for you
[ -0.2328358591, -0.3903884888, -0.0444569401, 0.1644898802, -0.1085447446, -0.0687688664, 0.1163394749, 0.4056321681, 0.6400415897, 0.1178811938, -0.0565715581, 0.2460853755, -0.3954411447, 0.1043542847, -0.1629213542, 0.1608026028, -0.0449330881, 0.1405792534, -0.1691172719, -0.1914923936, -0.3362932801, 0.1631995887, -0.3979261518, -0.0501044765, -0.1487710625, -0.2919760346, 0.2864800394, -0.0362102278, -0.1628142893, -0.2454048246, 0.2060913295, -0.2328295708, -0.2091358155, 0.5783209205, -0.0001299275, -0.0231370106, 0.1505940706, -0.1851884276, -0.0897609591, -0.302960813, -0.1908181012, -0.1715302467, -0.1157184988, -0.2824651599, 0.1819462478, -0.2716501951, -0.1956347525, -0.4482397735, 0.1071965545, 0.2587007582, 0.0433216915, 0.4188175201, 0.0030658788, 0.1764480323, 0.3312484622, 0.2664009035, -0.0753519163, 0.1288109571, 0.720576942, -0.2881010473, 0.0226273369, 0.3385903239, -0.3921839297, 0.0709065795, 0.1367557496, -0.0309034791, 0.2301688343, -0.5515581369, 0.2697510719, 0.3675671518, -0.0900000334, 0.0607854947, -0.4333371818, -0.6687817574, -0.0403035916, -0.0954990163, -0.0388976522, 0.2810005248, -0.4210391045, -0.0564594604, -0.48461923, 0.12179479, 0.0078949537, 0.161854431, 0.0306756385, 0.4589538872, -0.0930406898, 0.200324133, 0.3451099098, -0.1618324369, -0.0994020402, -0.1672707945, -0.2236277461, 0.5847226381, -0.0366990454, -0.1459874213, 0.3893203735, 0.219767794, 0.2230353653, -0.3132421374, -0.0503061526, -0.0742759556, 0.2646803558, -0.0234319102, 0.4159452617, 0.0793758407, 0.2686937451, 0.3493202031, -0.0050519966, -0.0590939708, 0.0676901788, 0.1131691784, 0.1134423316, -0.0890840888, -0.0096516944, -0.076408267, 0.2567851543, -0.078752704, -0.121898368, 0.2341005504, -0.410017103, 0.1369069368, 0.0620476492, 0.1250829697, 0.1700579822, -0.1776706129, 0.1202129424, 0.1126287282, -0.1570281684, 0.1897116601, -0.0772467926, -0.1316172481, -0.1925023794, -0.3208245337, 0.1964788139, -0.3342863023, 0.2418165058, -0.1585832089, 0.0198276881, -0.0615332462, 0.0957403481, -0.264561832, 0.751226902, 0.4937880635, -0.1195117086, 0.2913582921, 0.3966237605, -0.2185572237, -0.1752834469, 0.406290561, -0.3826131225, -0.2777349651, 0.2100417167, -0.0401863866, -0.2380756885, 0.3465703726, -0.5073058605, 0.2185844183, 0.1782456636, 0.0822510645, 0.2914725244, -0.2697468698, -0.1053946689, -0.2360117584, 0.0425622016, 0.6938400269, -0.6387727261, -0.0499244444, 0.1101891771, 0.101379171, -0.061366111, 0.3478798866, -0.0454605594, 0.3481103182, -0.4107352793, 0.3059868813, 0.0873121023, -0.1264710873, -0.3275630772, 0.3134202361, -0.0358151235, 0.2356392145, -0.021054687, -0.0642481819, 0.5519377589, -0.187389195, 0.3676521778, -0.1700586826, -0.2799574733, 0.1041628942, -0.0503813885, -0.0398437865, 0.0603796057, -0.2420818657, 0.1949243397, 0.0165873915, 0.0390779339, -0.5488615036, 0.1286388785, -0.150878951, 0.3383629024, 0.2401701361, 0.262108624, 0.1233314574, 0.0182514191, -0.2563519776, -0.4713616967, 0.3001765013, -0.4880331159, 0.0212483108, -0.4338340461, -0.1033039615, 0.030964639, 0.1834741384, -0.0350199975, 0.0330955572, -0.0749208778, -0.4975805879, 0.1765709817, -0.0213439744, -0.2262367159, -0.237069875, -0.1358648539, -0.0084389895, -0.3567227125, 0.0713602975, 0.250108242, -0.2921575308, -0.2542048395, 0.2466301769, 0.1149318442, -0.1176107079, 0.117354393, 0.1758527458, -0.0348160677, -0.1673573256, -0.1400127709, 0.1312534809, 0.011728297, -0.0458011553, 0.1018372104, 0.1450137347, 0.3444769382, -0.2378432453, -0.0694068372, 0.5054204464, -0.187614888, 0.5359302163, -0.1796862334, 0.0512382947, -0.1996319592, 0.0426065698, -0.2059214562, -0.3850510418, 0.0762838423, -0.1577370167, 0.0513374209, 0.0319145061, 0.0012565822, -0.1989195645, 0.0856168866, -0.0469621085, 0.1647790372, 0.0144881848, -0.0630519167, 0.2266898155, 0.0446927175, -0.0142776882, 0.3432699144, 0.2191426903, -0.0887260512, -0.1521820724, 0.2504402697, 0.00012218, 0.4139181376, 0.1816678494, 0.0260533392, 0.1550094187, -0.0036412026, -0.0657199845, -0.2528336346, -0.1814304441, 0.0057151746, 0.1495340616, -0.3952980936, -0.0354199149, 0.1101148203, -0.158504352, 0.0689760894, -0.0765032619, -0.290856272, -0.3032284081, -0.0453335345, 0.2601584494, -0.2722714245, -0.0240078494, -0.4013136923, 0.0116531979, 0.1975093931, -0.2747199833, -0.2812997401, -0.1685466915, -0.075610891, -0.0741590112, 0.0731138214, -0.1339875758, 0.3615632355, 0.252137363, -0.2612817585, -0.2437716424, -0.0951139629, 0.006513522, -0.537039578, 0.2054034323, 0.4100925624, 0.3981704414, -0.2923845649, 0.1470608711, 0.2793860137, -0.1071430519, -0.2480680197, -0.0079056546, 0.0223336499, 0.1532626897, -0.1792154163, 0.1474312842, 0.0644616708, -0.3209300041, 0.1781847477, -0.1891589761, 0.2615512013, 0.2194534689, 0.2780079842, 0.1538575739, -0.369377017, -0.4285492897, 0.122351326, -0.1416767389, 0.4460208416, 0.039022956, -0.1469309777, 0.1844056547, 0.026218608, -0.1853195429, 0.2405570298, -0.0966857001, 0.0939640701, -0.0562739521, 0.1234826446, 0.1900064647, 0.3668000996, 0.4985281229, 0.0864882693, 0.0460448302, -0.2846723497, -0.108955726, 0.0812638626, 0.0222765282, -0.0645137802, 0.422529459, 0.3217893243, 0.0287002921, 0.7504065037, 0.3654768467, 0.1272137165, 0.0946452394, 0.0725370497, 0.3822363317, -0.1140062958, -0.3796924353, -0.2082245946, 0.1538847685, -0.0840782374, 0.0325132832, 0.0550554171, -0.0620346144, -0.0012850619, 0.0619004332, -0.4879451692, -0.1890367121, 0.4240106046, -0.3093633056, 0.0761562213, -0.0749146789, 0.095616661, -0.2788100541, -0.1820272654, -0.1637151688, -0.3036247194, 0.6426760554, -0.0823247954, -0.0753789693, -0.1154972464, -0.6797444224, 0.3325336874, 0.2211800516, -0.0848114118, 0.106716387, -0.1852942705, 0.0687563792, 0.3100572526, 0.9494883418, -0.1932722479, 0.1566556096, 0.0814260393, -0.0248434972, -0.4435344338, 0.0998064503, -0.3279416561, 0.255086571, 0.2495425493, 0.5071647167, -0.3575255871, -0.0723438412, -0.0420532376, -0.0277328342, 0.0347222313, -0.0264868643, -0.1733804345, -0.1495419145, -0.1380317807, 0.3645798266, 0.4469459951, 0.0726858899, 0.1356703192, -0.2094711512, -0.0988865271, 0.0481707789, 0.0175996888, -0.1340298951, 0.4707479179, 0.0158334598, 0.0505987816, 0.2701372206, 0.1117347777, 0.2206300646, 0.4900632799, -0.1534303427, 0.2074077874, -0.1815866977, 0.0305911452, 0.3123360872, 0.4398163855, 0.0099648042, 0.0579146184, 0.3812751174, 0.3522172868, -0.0515042432, -0.2942022681, 0.1262358725, 0.0464041606, -0.5417698622, 0.0036568067, 0.1158786193, -0.0995820239, 0.0849703401, 0.6082314253, 0.5790846944, -0.3638047874, 0.3609662056, 0.0432920754, 0.8923063278, -0.0148929833, 0.1076274291, 0.1486808509, 0.0709490106, 0.2498286813, 0.5552585721, 0.0943638012, 0.0084221791, 0.097438395, -0.0407664217, -0.0082154376, 0.1668745726, 0.3400382996, 0.102786392, 0.2708596289, 0.0819576904, 0.1208938807, -0.1503460556, -0.2895897925, 0.2877459824, -0.3301817477, -0.3449305594, -0.0755385384, 0.07857126, 0.2657668293, -0.0579300784, -0.1058487669, -0.030924106, -0.4037671685, -0.1928456575, -0.18520239, -0.4449900091, 0.0211740602, 0.2638930976, -0.2862426937, -0.0328584909, 0.0515848026, -0.4806172848, 0.1447317302, -0.1111117452, -0.1330835223, 0.3892787993, 0.1719239354, 0.0218226369, -0.1521928906, 0.1726180315, 0.1998167336, -0.180318296, 0.0575537831, -0.4518596828, -0.1729947627, 0.0644664839, 0.4083658457, -0.2023413479, -0.2228998542, -0.396820724, -0.1921592206, 0.1015422046, 0.0394880101, -0.0883383527, 0.2670643628, -0.0757655576, 0.3907502294, -0.1920090765, -0.4534188211, -0.0437422767, 0.5255669951, 0.034629833, -0.1923189759, 0.4125704467, 0.1591852903, -0.164441824, -0.0695427209, 0.1383890063, 0.3426440656, -0.6278496981, 0.5433269143, 0.249869585, 0.0369898677, 0.1378323287, 0.4185103178, 0.1368645728, 0.2798645198, -0.3155888021, -0.1867185682, -0.2580825984, 0.4086382389, 0.103542462, 0.0359806716, -0.1420464367, -0.236739859, 0.3288379014, -0.1956319511, -0.1520755589, 0.06600485, -0.0865766779, 0.3288321495, 0.2184334844, 0.2640421689, 0.3569838107, -0.081811823, -0.1028169021, 0.1315311641, -0.2793510556, -0.0736055896, -0.0467089117, 0.176354751, 0.1042603925, -0.2203988433, 0.1627230793, -0.4074193537, -0.0460066982, -0.4062661529, 0.2619495392, 0.4909596443, -0.0040140217, -0.2378338724, 0.3719466329, 0.0600782074, -0.0297457986, 0.2064462155, -0.1776875257, -0.0705966875, -0.0677786022, 0.3043539226, 0.1634591371, 0.0337507054, 0.0829739571, 0.072048299, 0.0142621985, 0.0030943216, 0.4227868319, -0.2046111822, -0.2124462575, 0.3322143853, 0.2543900311, 0.0184188299, -0.0208608638, -0.1518289149, 0.2098125964, 0.0060319309, -0.1523621529, 0.0288433973, 0.1550513506, 0.3418107033, 0.2605260015, 0.3646140397, -0.1685422212, -0.2591929138, 0.0174683295, 0.1886156946, 0.021103939, 0.030939946, 0.1880582124, 0.3906851411, 0.3334282339, -0.0989428535, 0.3222150803, 0.078869842, 0.2825943828, 0.2901287675, 0.23771061, 0.2660046816, 0.0139710195, 0.0864452645, -0.204853788, -0.5083089471, 0.0377851799, 0.0890344083, -0.0027340481, 0.3360839784, 0.1234634072, 0.1538113952, -0.192422539, -0.275057435, 0.0418598801, 0.0021717064, -0.345461756, -0.0618339479, -0.3136755228, -0.2561421096, 0.4150931537, -0.1609164476, 0.0627368093, -0.3454867303, 0.3650226295, -0.077607803, -0.0953703299, -0.1441651881, -0.3677255511, 0.0240025651, 0.2292590141, -0.1103792489, 0.1378633678, -0.0913243443, -0.0463287719, 0.0504923128, 0.5798314214, 0.5111632347, 0.398568213, -0.0246102512, 0.400824964, 0.1301573366, -0.2436256409, -0.2861928344, 0.3631897867, -0.0595287718, -0.0250941329, 0.2001093328, -0.0104519334, -0.0469260439, -0.0630546361, -0.0026362012, 0.1076258868, 0.163515076, -0.1908557266, -0.1974217743, -0.2362535298, -0.2687474787, -0.0491944179, -0.0817951933, 0.0160533525, 0.2938641906, -0.0996416658, 0.0463561155, 0.0778609142, -0.0013327706, -0.0415193327, 0.2583118677, 0.4536593854, 0.0035886534, -0.4841513336, 0.1772227287, -0.3718904555, -0.030173203, -0.4928691387, 0.2783649266, 0.0389184952, 0.1972583532, 0.1198173314, -0.1226419285, 0.3183073997, -0.0501732305, -0.0438348986, 0.3545494974, 0.0648139343, -0.2790633738, -0.1928182244, -0.0135356113, 0.0101545416, -0.384270668, 0.1062460095, -0.1135108173, -0.0753599703, -0.1056094617, 0.1699266732, -0.1576718092, 0.0275926236, 0.1774146557, 0.3360168338, -0.0418953858, 0.0294316746, -0.0177053921, -0.3504038453, 0.1464195549, -0.1264900118, 0.1394367069, 0.3596005142, 0.4612445235, -0.3284626603, -0.202706039, -0.0240753945, 0.0423464961, 0.0046446058, 0.0361620411, -0.1818928719, 0.1435848325, -0.3938453496, -0.0358402692, -0.1220738962, 0.0222710148, 0.0860233009, 0.0270854346, -0.2525871396, -0.3549436331, 0.3827645481, -0.6531074047, -0.2620070279, -0.0693184659, 0.3420592546, 0.211510852, -0.2256406099, -0.3928544521, -0.1719201952, 0.2626016438, -0.0693580061, -0.0616546087, -0.1847910285, -0.5037385225, -0.0344291814, -0.1576237679, 0.1152830198, 0.0357200988, 0.0066584195, 0.2311965823, -0.3098658621 ]
https://github.com/huggingface/datasets/issues/2643
Enum used in map functions will raise a RecursionError with dill.
I'm running into this as well. (Thank you so much for reporting @jorgeecardona — was staring at this massive stack trace and unsure what exactly was wrong!)
## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above. ## Steps to reproduce the bug ```python from datasets import load_dataset from enum import Enum class A(Enum): a = 'a' def main(): a = A.a def f(x): return {} if a == a.a else x ds = load_dataset('cnn_dailymail', '3.0.0')['test'] ds = ds.map(f, num_proc=15) if __name__ == "__main__": main() ``` ## Expected results The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood. ## Actual results ```python File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type pickler.save_reduce(_create_type, (type(obj), obj.__name__, File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save self.framer.commit_frame() File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame if f.tell() >= self._FRAME_SIZE_TARGET or force: RecursionError: maximum recursion depth exceeded while calling a Python object ``` ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 3.0.0
27
Enum used in map functions will raise a RecursionError with dill. ## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above. ## Steps to reproduce the bug ```python from datasets import load_dataset from enum import Enum class A(Enum): a = 'a' def main(): a = A.a def f(x): return {} if a == a.a else x ds = load_dataset('cnn_dailymail', '3.0.0')['test'] ds = ds.map(f, num_proc=15) if __name__ == "__main__": main() ``` ## Expected results The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood. ## Actual results ```python File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type pickler.save_reduce(_create_type, (type(obj), obj.__name__, File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save self.framer.commit_frame() File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame if f.tell() >= self._FRAME_SIZE_TARGET or force: RecursionError: maximum recursion depth exceeded while calling a Python object ``` ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 3.0.0 I'm running into this as well. (Thank you so much for reporting @jorgeecardona — was staring at this massive stack trace and unsure what exactly was wrong!)
[ 0.1053605825, 0.1992539614, 0.0405321009, 0.1406992674, -0.0743715391, -0.0783434883, 0.1477603465, 0.2337794751, 0.1263177246, 0.1690645218, 0.1453329176, 0.9332158566, -0.290869683, -0.3072979152, -0.0783376619, 0.0934458673, 0.022367673, 0.0455224141, -0.618113935, -0.2456783801, -0.3375144601, -0.0052423654, -0.1024470925, -0.0100889578, -0.2116015255, 0.2239993215, 0.0477668382, 0.4010351002, 0.0841139555, -0.2200673521, 0.3333722353, -0.0734497979, 0.1974622756, 0.3142176867, -0.0001113917, 0.0850250125, 0.1187557504, -0.2274409682, -0.3654649556, -0.2395338863, 0.1474907398, 0.1226188019, 0.0726437643, -0.4154758453, 0.2226359099, 0.3753212094, -0.0025735509, -0.2636496723, -0.0621620268, 0.0543685332, 0.1718365997, -0.1396812499, 0.2170405686, 0.0761598498, 0.4435093403, -0.0182866696, 0.0448158644, 0.5206543207, 0.1653602272, -0.3055963218, -0.1643484682, 0.1722367257, -0.0976959616, -0.0254112817, 0.3883352578, -0.113609001, 0.6294156313, -0.0288461596, -0.1640147716, 0.2222028673, -0.1290316135, -0.2840957046, -0.2295471281, 0.0401711166, -0.079438217, -0.1017230451, 0.3087863624, -0.0180281624, -0.0133567313, -0.077560842, 0.1240697205, -0.2159890383, 0.0056777061, 0.427880168, -0.1641048193, 0.5943015814, 0.137812674, 0.166103974, 0.2780689895, -0.1684817672, -0.1965378076, 0.1178520694, 0.1020065546, 0.0950328633, -0.220873028, -0.0939791501, 0.2846586704, -0.3601532876, 0.3353615105, -0.1542606056, 0.0143169072, 0.1036643386, -0.0685877874, 0.3336907327, 0.3899123073, -0.1418339312, -0.0516567677, 0.559920013, 0.2155427039, -0.1122437418, 0.0307026394, 0.3607040942, 0.0600125529, 0.0919064134, -0.0083623072, -0.1110876128, 0.0112878829, -0.0954112038, -0.1062045097, 0.4172793627, -0.4747128189, -0.1136132106, 0.134955436, 0.1240022704, -0.1058501899, 0.021187095, 0.1341361105, 0.0897009373, -0.0525643751, 0.4216715097, -0.2110071629, -0.0060296683, 0.0234193038, -0.2131147683, -0.1768056452, 0.0548265576, 0.2632886767, 0.071327433, 0.1323000044, -0.0223737378, 0.0825917199, -0.2246848792, 0.1783072203, 0.1025309339, -0.5080523491, -0.0832127482, 0.253002882, -0.2604121566, -0.2579995096, 0.2515307963, -0.4531784654, -0.0923264772, -0.3719527423, 0.2141512632, 0.1512587667, 0.1420760602, 0.1465840936, -0.1181592718, 0.3029903173, -0.1372456104, 0.1552295238, -0.4185495079, -0.3111719191, -0.2451112866, 0.0752645656, -0.0309843123, -0.0723972619, -0.2012920529, -0.2666212022, 0.1593034416, 0.1756731421, -0.0490411259, -0.184819892, -0.1414385736, -0.2404543608, 0.2867938578, -0.1029914618, -0.1263520569, -0.3646345139, -0.0630567893, -0.0521466471, 0.1691659689, -0.2541858852, -0.1637443155, 0.2021381706, -0.2736370862, 0.5204456449, 0.1751686782, 0.1138639897, -0.0142076137, -0.3202032447, -0.113395296, 0.3278881609, 0.1209527254, -0.1715010703, -0.0926165283, -0.265378654, -0.1963819116, 0.3977231085, -0.2698432803, 0.0405841209, 0.1311579943, 0.1083367392, 0.0882654488, 0.0628297403, -0.1535955817, -0.3434665501, 0.198290199, -0.2558757365, -0.0215070862, 0.0164878312, -0.1004739329, 0.0963972434, 0.2580533922, -0.0351011083, -0.0973076373, 0.1891376823, 0.0994402394, -0.108073011, -0.0216380283, -0.0003863801, -0.3291851878, -0.4009251893, -0.0294387843, 0.0524635427, 0.302303791, -0.2305080444, -0.2322059721, -0.2058908939, 0.1653584242, -0.0919000879, 0.0035680232, -0.2516871095, 0.0290699247, 0.3874911368, -0.5933538675, -0.2805408835, -0.0545175374, -0.1167528257, -0.2748852372, 0.0368425213, 0.4684729278, 0.1454918087, -0.2771624327, 0.2459005862, 0.1754848361, 0.1758495122, 0.1228596941, 0.0697167292, 0.2272967547, -0.199826166, -0.1135168672, -0.029024478, -0.3736834228, -0.1019668207, 0.0934691727, 0.0345102064, 0.1148608848, -0.0388507769, -0.2529444098, 0.1679151356, 0.2472827733, 0.2872361243, 0.2680383623, -0.141411081, 0.0800695643, 0.1683733016, 0.0561094135, 0.1142272875, -0.0879763663, 0.0976697356, 0.1423884034, -0.1171692461, 0.1136521474, -0.0736678615, 0.075461328, 0.3981698155, 0.1457407624, -0.0600117184, 0.0496476702, -0.0412556306, -0.2883346081, -0.0536868349, 0.1021303385, -0.0684404597, 0.0745905712, -0.4567011595, 0.4747098386, 0.1333311349, -0.5235563517, -0.2458881736, -0.2118291706, -0.1701545864, 0.1294810176, -0.5239450336, 0.211162895, -0.1791201979, -0.446672231, 0.199665606, -0.3440628648, 0.2858991623, -0.3210588992, -0.2967027724, -0.0235465877, 0.1581545323, -0.1790606678, 0.0374894962, 0.262714833, -0.3319720328, 0.0355787277, -0.2012702078, 0.1469755918, 0.0324612446, 0.1711265892, 0.2742405534, 0.0931566805, -0.4386808574, -0.4228978455, 0.1325157881, 0.1339355409, -0.0586654879, 0.0601036623, 0.2963471115, 0.2722684145, -0.2222011238, -0.3065883219, -0.1973069757, -0.384598732, -0.2084994316, 0.0703798309, 0.4546931982, 0.2742162347, -0.0160642378, 0.4758415818, 0.3324287832, 0.3127492368, -0.3234799504, 0.3757662475, 0.2017487139, -0.1626096368, -0.2093154937, -0.1637183875, -0.5420067906, 0.0844264776, 0.1182154268, -0.5454445481, -0.2052111328, 0.189174518, 0.0723087937, -0.2491006851, -0.1957810819, 0.1190051362, 0.2233186811, 0.0628092885, -0.0219541602, -0.2726020515, 0.2237221152, 0.2733665407, 0.1518391222, 0.1783870906, -0.0109512592, -0.0432435237, 0.3684878349, 0.3489734232, -0.0253311954, 0.4116005003, 0.3529876471, -0.0865498632, 0.0425222963, 0.0363264158, 0.1121198237, 0.0395058356, -0.0896950737, 0.1329942644, -0.1452877074, -0.6623027921, 0.0320490748, 0.1480092406, 0.3037306368, -0.4923018813, 0.2677829266, -0.3939765394, 0.0531446412, -0.3042106628, 0.2357545495, 0.1242342293, 0.2263370007, 0.1090450063, -0.0914255604, 0.1903574616, -0.1192370877, -0.0924873501, -0.1650371403, -0.0067232, 0.1185410917, 0.3353766799, 0.371765554, -0.0453590117, -0.376014173, -0.124396503, -0.1063317657, 0.4010099471, -0.3481985033, 0.0769574642, 0.4122265875, -0.2628347278, -0.289960593, -0.1358057112, 0.0748562738, 0.0418152139, 0.32621032, -0.1238103509, -0.4923030734, 0.1185787991, 0.421998173, 0.0081254831, 0.1181249917, -0.0038842608, -0.0588979386, -0.1878030449, -0.2951494455, -0.0115586305, -0.145827949, 0.1225044429, 0.2150286287, -0.0180002954, -0.1149310991, 0.1004171148, -0.0838029832, -0.1668771505, 0.2862611413, -0.1239505485, 0.1584714651, 0.1450294256, 0.3025131822, 0.2738064826, 0.3276349902, -0.3374812007, 0.1992720962, 0.2932470441, 0.2256003767, 0.1761762798, 0.0552477911, 0.2008027732, 0.1537928581, 0.0105551621, -0.190516308, -0.1788255572, -0.3223814666, 0.0872778967, 0.0500286669, -0.1219284758, -0.3815682232, 0.0662227646, 0.169370085, -0.0110468334, 0.0616260618, -0.3657357097, -0.0102444356, 0.4981333017, 0.3520674109, 0.8710962534, 0.2196190953, -0.0461063311, 0.0972306803, -0.0263180062, -0.2297054529, 0.3024889529, -0.1804320812, -0.298660934, 0.0040675313, -0.0744973943, -0.1246088743, -0.0215663034, -0.0152552566, -0.3948971331, 0.0234437883, -0.1997487694, 0.0419673249, 0.0282369833, -0.052602578, -0.0607002415, -0.1094835773, 0.2939589024, 0.1608691216, 0.0929872245, 0.0798240155, -0.0656133443, -0.0919525772, -0.2405120432, -0.3805099428, -0.1540369242, 0.144175306, -0.1137659997, 0.4462916851, 0.3543666005, -0.2859048843, 0.13251625, 0.3625554144, -0.2675670683, 0.1217099801, -0.0649967566, -0.0234082583, 0.0419257917, 0.1990350038, 0.2569916546, -0.0653649122, 0.5327146053, -0.0084036971, -0.2321223915, 0.1457435489, -0.0940773636, -0.2741782963, -0.0868038759, 0.3060584068, 0.3108741939, -0.0182179976, 0.0556958802, -0.0570492484, -0.1751940697, -0.1722621918, 0.1487811357, 0.1978513151, -0.1734807044, 0.2513158917, 0.09073966, -0.21897012, -0.0801061615, 0.4010271728, 0.4048637152, 0.5142772794, 0.3133552969, -0.0660539642, -0.1195438206, -0.1525502503, -0.3521785438, -0.3539165556, 0.2396391779, 0.2017318904, 0.0184829887, -0.1471087784, -0.3326057494, -0.0950679034, 0.0819414258, 0.2781379223, -0.4085236788, -0.279738307, -0.3357236087, 0.0974263325, -0.1204473227, 0.2147092968, -0.2588468492, -0.0375362821, -0.3156368136, 0.2042547464, -0.3219060898, 0.0381845795, -0.3997868598, 0.1722810864, -0.1483063847, -0.2481523603, 0.0182314124, 0.0307652131, 0.1673873216, 0.2304185033, -0.2873901725, -0.1121997461, -0.2405644804, 0.0865458697, 0.1410397589, -0.1369152665, 0.1307747513, -0.1663815677, 0.0774900988, -0.1897876263, 0.0325980783, -0.1548464894, -0.1185716689, 0.3641764224, 0.197807461, 0.155799672, 0.1883444786, 0.2656749487, -0.143195048, 0.2839574218, -0.1587209851, 0.0132916197, -0.2259703428, -0.0838631466, -0.0842180327, 0.0726766363, -0.2182118595, -0.2391784489, 0.2639333904, -0.0150741842, -0.1912011206, -0.0865055993, 0.1725260466, 0.2049276829, -0.3796473444, -0.153058216, 0.54076159, 0.2050434798, -0.0046195723, -0.0341048427, 0.572797358, -0.0924610049, 0.2316607088, 0.3061138988, -0.153756842, -0.187976405, -0.1503073871, -0.0117989182, -0.3474125266, 0.0528134443, 0.2156009972, 0.4500198662, -0.1907597631, 0.1537032872, 0.1534423381, -0.1342351139, 0.5434715152, 0.0144113917, 0.1349455565, 0.1574077457, -0.0015680428, 0.0444375426, 0.3795166016, -0.4899704456, 0.4982143939, 0.6172642112, 0.2385595739, 0.3534963131, 0.1136447638, 0.1797674745, -0.1803994626, 0.0310928021, -0.1614094675, 0.2059416324, -0.3470535278, -0.0182734095, -0.0175699685, -0.1287973523, 0.0025711888, 0.0317992903, -0.033107914, -0.1463284194, 0.2225925624, 0.103073515, -0.2522371411, -0.3613155782, -0.0293794032, -0.1957933456, 0.019742487, -0.220298782, -0.0594294965, 0.127548188, 0.1394573748, -0.3628339469, 0.1233994514, 0.2021781504, 0.5606962442, -0.4515581429, -0.2535938919, 0.2951527536, 0.0871660262, -0.2988333106, 0.1697482318, -0.2322259247, -0.1714939028, 0.4422872961, 0.0752160996, -0.2449630946, -0.1833673865, 0.1342612058, 0.4924427569, 0.2643301487, 0.0972135663, 0.2130133957, 0.2047805339, 0.1633076519, -0.2080275565, -0.2605632246, -0.1555678248, 0.1988854408, -0.0063205776, 0.319567889, 0.0728775412, 0.0928777754, -0.0425356142, 0.2382951826, 0.2152564824, 0.1745690107, -0.0464249104, -0.0878164098, -0.2692608535, 0.3507026434, -0.1388015002, -0.208133921, 0.3059597909, -0.0111724716, 0.0657361224, 0.1503104568, -0.115486145, -0.2089877576, 0.1607622653, 0.4486098588, -0.2906092107, -0.1849913895, -0.1059622541, -0.1510676742, 0.2687522173, -0.5409832597, 0.1342632025, 0.1473648846, 0.0705440864, -0.231817022, 0.0140696056, -0.0116061503, 0.3986552656, 0.4254050553, 0.1147442088, 0.4639266133, -0.193955183, -0.1057454646, 0.2056580782, 0.0157290641, -0.0213509053, -0.1691846102, -0.1176792458, 0.3652637899, -0.0849698707, -0.2337133586, -0.1284030825, 0.5321086049, -0.1069319323, -0.1859682947, -0.1602981687, 0.3123157024, -0.0132144205, 0.0239583645, -0.4056390524, 0.205797255, 0.1661837101, 0.2969309092, -0.0653434023, -0.2356069833, 0.7419953346, 0.0621226989, -0.0540977716, -0.1270350665, 0.0202783234, -0.5549429655, -0.1697122753, -0.246307686, -0.1268682927, 0.2110936642, 0.1947378218, -0.5221105814, -0.1502922177, 0.1450448036, 0.0715024546, -0.2004755288, 0.6373540759, -0.2366664261, -0.3341546059, 0.2838117182, -0.0978839695 ]
https://github.com/huggingface/datasets/issues/2643
Enum used in map functions will raise a RecursionError with dill.
Hi ! Thanks for reporting :) Until this is fixed on `dill`'s side, we could implement a custom saving in our Pickler indefined in utils.py_utils.py There is already a suggestion in this message about how to do it: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 Let me know if such a workaround could help, and feel free to open a PR if you want to contribute !
## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above. ## Steps to reproduce the bug ```python from datasets import load_dataset from enum import Enum class A(Enum): a = 'a' def main(): a = A.a def f(x): return {} if a == a.a else x ds = load_dataset('cnn_dailymail', '3.0.0')['test'] ds = ds.map(f, num_proc=15) if __name__ == "__main__": main() ``` ## Expected results The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood. ## Actual results ```python File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type pickler.save_reduce(_create_type, (type(obj), obj.__name__, File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save self.framer.commit_frame() File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame if f.tell() >= self._FRAME_SIZE_TARGET or force: RecursionError: maximum recursion depth exceeded while calling a Python object ``` ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 3.0.0
61
Enum used in map functions will raise a RecursionError with dill. ## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above. ## Steps to reproduce the bug ```python from datasets import load_dataset from enum import Enum class A(Enum): a = 'a' def main(): a = A.a def f(x): return {} if a == a.a else x ds = load_dataset('cnn_dailymail', '3.0.0')['test'] ds = ds.map(f, num_proc=15) if __name__ == "__main__": main() ``` ## Expected results The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood. ## Actual results ```python File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type pickler.save_reduce(_create_type, (type(obj), obj.__name__, File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save self.framer.commit_frame() File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame if f.tell() >= self._FRAME_SIZE_TARGET or force: RecursionError: maximum recursion depth exceeded while calling a Python object ``` ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 3.0.0 Hi ! Thanks for reporting :) Until this is fixed on `dill`'s side, we could implement a custom saving in our Pickler indefined in utils.py_utils.py There is already a suggestion in this message about how to do it: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 Let me know if such a workaround could help, and feel free to open a PR if you want to contribute !
[ 0.1053605825, 0.1992539614, 0.0405321009, 0.1406992674, -0.0743715391, -0.0783434883, 0.1477603465, 0.2337794751, 0.1263177246, 0.1690645218, 0.1453329176, 0.9332158566, -0.290869683, -0.3072979152, -0.0783376619, 0.0934458673, 0.022367673, 0.0455224141, -0.618113935, -0.2456783801, -0.3375144601, -0.0052423654, -0.1024470925, -0.0100889578, -0.2116015255, 0.2239993215, 0.0477668382, 0.4010351002, 0.0841139555, -0.2200673521, 0.3333722353, -0.0734497979, 0.1974622756, 0.3142176867, -0.0001113917, 0.0850250125, 0.1187557504, -0.2274409682, -0.3654649556, -0.2395338863, 0.1474907398, 0.1226188019, 0.0726437643, -0.4154758453, 0.2226359099, 0.3753212094, -0.0025735509, -0.2636496723, -0.0621620268, 0.0543685332, 0.1718365997, -0.1396812499, 0.2170405686, 0.0761598498, 0.4435093403, -0.0182866696, 0.0448158644, 0.5206543207, 0.1653602272, -0.3055963218, -0.1643484682, 0.1722367257, -0.0976959616, -0.0254112817, 0.3883352578, -0.113609001, 0.6294156313, -0.0288461596, -0.1640147716, 0.2222028673, -0.1290316135, -0.2840957046, -0.2295471281, 0.0401711166, -0.079438217, -0.1017230451, 0.3087863624, -0.0180281624, -0.0133567313, -0.077560842, 0.1240697205, -0.2159890383, 0.0056777061, 0.427880168, -0.1641048193, 0.5943015814, 0.137812674, 0.166103974, 0.2780689895, -0.1684817672, -0.1965378076, 0.1178520694, 0.1020065546, 0.0950328633, -0.220873028, -0.0939791501, 0.2846586704, -0.3601532876, 0.3353615105, -0.1542606056, 0.0143169072, 0.1036643386, -0.0685877874, 0.3336907327, 0.3899123073, -0.1418339312, -0.0516567677, 0.559920013, 0.2155427039, -0.1122437418, 0.0307026394, 0.3607040942, 0.0600125529, 0.0919064134, -0.0083623072, -0.1110876128, 0.0112878829, -0.0954112038, -0.1062045097, 0.4172793627, -0.4747128189, -0.1136132106, 0.134955436, 0.1240022704, -0.1058501899, 0.021187095, 0.1341361105, 0.0897009373, -0.0525643751, 0.4216715097, -0.2110071629, -0.0060296683, 0.0234193038, -0.2131147683, -0.1768056452, 0.0548265576, 0.2632886767, 0.071327433, 0.1323000044, -0.0223737378, 0.0825917199, -0.2246848792, 0.1783072203, 0.1025309339, -0.5080523491, -0.0832127482, 0.253002882, -0.2604121566, -0.2579995096, 0.2515307963, -0.4531784654, -0.0923264772, -0.3719527423, 0.2141512632, 0.1512587667, 0.1420760602, 0.1465840936, -0.1181592718, 0.3029903173, -0.1372456104, 0.1552295238, -0.4185495079, -0.3111719191, -0.2451112866, 0.0752645656, -0.0309843123, -0.0723972619, -0.2012920529, -0.2666212022, 0.1593034416, 0.1756731421, -0.0490411259, -0.184819892, -0.1414385736, -0.2404543608, 0.2867938578, -0.1029914618, -0.1263520569, -0.3646345139, -0.0630567893, -0.0521466471, 0.1691659689, -0.2541858852, -0.1637443155, 0.2021381706, -0.2736370862, 0.5204456449, 0.1751686782, 0.1138639897, -0.0142076137, -0.3202032447, -0.113395296, 0.3278881609, 0.1209527254, -0.1715010703, -0.0926165283, -0.265378654, -0.1963819116, 0.3977231085, -0.2698432803, 0.0405841209, 0.1311579943, 0.1083367392, 0.0882654488, 0.0628297403, -0.1535955817, -0.3434665501, 0.198290199, -0.2558757365, -0.0215070862, 0.0164878312, -0.1004739329, 0.0963972434, 0.2580533922, -0.0351011083, -0.0973076373, 0.1891376823, 0.0994402394, -0.108073011, -0.0216380283, -0.0003863801, -0.3291851878, -0.4009251893, -0.0294387843, 0.0524635427, 0.302303791, -0.2305080444, -0.2322059721, -0.2058908939, 0.1653584242, -0.0919000879, 0.0035680232, -0.2516871095, 0.0290699247, 0.3874911368, -0.5933538675, -0.2805408835, -0.0545175374, -0.1167528257, -0.2748852372, 0.0368425213, 0.4684729278, 0.1454918087, -0.2771624327, 0.2459005862, 0.1754848361, 0.1758495122, 0.1228596941, 0.0697167292, 0.2272967547, -0.199826166, -0.1135168672, -0.029024478, -0.3736834228, -0.1019668207, 0.0934691727, 0.0345102064, 0.1148608848, -0.0388507769, -0.2529444098, 0.1679151356, 0.2472827733, 0.2872361243, 0.2680383623, -0.141411081, 0.0800695643, 0.1683733016, 0.0561094135, 0.1142272875, -0.0879763663, 0.0976697356, 0.1423884034, -0.1171692461, 0.1136521474, -0.0736678615, 0.075461328, 0.3981698155, 0.1457407624, -0.0600117184, 0.0496476702, -0.0412556306, -0.2883346081, -0.0536868349, 0.1021303385, -0.0684404597, 0.0745905712, -0.4567011595, 0.4747098386, 0.1333311349, -0.5235563517, -0.2458881736, -0.2118291706, -0.1701545864, 0.1294810176, -0.5239450336, 0.211162895, -0.1791201979, -0.446672231, 0.199665606, -0.3440628648, 0.2858991623, -0.3210588992, -0.2967027724, -0.0235465877, 0.1581545323, -0.1790606678, 0.0374894962, 0.262714833, -0.3319720328, 0.0355787277, -0.2012702078, 0.1469755918, 0.0324612446, 0.1711265892, 0.2742405534, 0.0931566805, -0.4386808574, -0.4228978455, 0.1325157881, 0.1339355409, -0.0586654879, 0.0601036623, 0.2963471115, 0.2722684145, -0.2222011238, -0.3065883219, -0.1973069757, -0.384598732, -0.2084994316, 0.0703798309, 0.4546931982, 0.2742162347, -0.0160642378, 0.4758415818, 0.3324287832, 0.3127492368, -0.3234799504, 0.3757662475, 0.2017487139, -0.1626096368, -0.2093154937, -0.1637183875, -0.5420067906, 0.0844264776, 0.1182154268, -0.5454445481, -0.2052111328, 0.189174518, 0.0723087937, -0.2491006851, -0.1957810819, 0.1190051362, 0.2233186811, 0.0628092885, -0.0219541602, -0.2726020515, 0.2237221152, 0.2733665407, 0.1518391222, 0.1783870906, -0.0109512592, -0.0432435237, 0.3684878349, 0.3489734232, -0.0253311954, 0.4116005003, 0.3529876471, -0.0865498632, 0.0425222963, 0.0363264158, 0.1121198237, 0.0395058356, -0.0896950737, 0.1329942644, -0.1452877074, -0.6623027921, 0.0320490748, 0.1480092406, 0.3037306368, -0.4923018813, 0.2677829266, -0.3939765394, 0.0531446412, -0.3042106628, 0.2357545495, 0.1242342293, 0.2263370007, 0.1090450063, -0.0914255604, 0.1903574616, -0.1192370877, -0.0924873501, -0.1650371403, -0.0067232, 0.1185410917, 0.3353766799, 0.371765554, -0.0453590117, -0.376014173, -0.124396503, -0.1063317657, 0.4010099471, -0.3481985033, 0.0769574642, 0.4122265875, -0.2628347278, -0.289960593, -0.1358057112, 0.0748562738, 0.0418152139, 0.32621032, -0.1238103509, -0.4923030734, 0.1185787991, 0.421998173, 0.0081254831, 0.1181249917, -0.0038842608, -0.0588979386, -0.1878030449, -0.2951494455, -0.0115586305, -0.145827949, 0.1225044429, 0.2150286287, -0.0180002954, -0.1149310991, 0.1004171148, -0.0838029832, -0.1668771505, 0.2862611413, -0.1239505485, 0.1584714651, 0.1450294256, 0.3025131822, 0.2738064826, 0.3276349902, -0.3374812007, 0.1992720962, 0.2932470441, 0.2256003767, 0.1761762798, 0.0552477911, 0.2008027732, 0.1537928581, 0.0105551621, -0.190516308, -0.1788255572, -0.3223814666, 0.0872778967, 0.0500286669, -0.1219284758, -0.3815682232, 0.0662227646, 0.169370085, -0.0110468334, 0.0616260618, -0.3657357097, -0.0102444356, 0.4981333017, 0.3520674109, 0.8710962534, 0.2196190953, -0.0461063311, 0.0972306803, -0.0263180062, -0.2297054529, 0.3024889529, -0.1804320812, -0.298660934, 0.0040675313, -0.0744973943, -0.1246088743, -0.0215663034, -0.0152552566, -0.3948971331, 0.0234437883, -0.1997487694, 0.0419673249, 0.0282369833, -0.052602578, -0.0607002415, -0.1094835773, 0.2939589024, 0.1608691216, 0.0929872245, 0.0798240155, -0.0656133443, -0.0919525772, -0.2405120432, -0.3805099428, -0.1540369242, 0.144175306, -0.1137659997, 0.4462916851, 0.3543666005, -0.2859048843, 0.13251625, 0.3625554144, -0.2675670683, 0.1217099801, -0.0649967566, -0.0234082583, 0.0419257917, 0.1990350038, 0.2569916546, -0.0653649122, 0.5327146053, -0.0084036971, -0.2321223915, 0.1457435489, -0.0940773636, -0.2741782963, -0.0868038759, 0.3060584068, 0.3108741939, -0.0182179976, 0.0556958802, -0.0570492484, -0.1751940697, -0.1722621918, 0.1487811357, 0.1978513151, -0.1734807044, 0.2513158917, 0.09073966, -0.21897012, -0.0801061615, 0.4010271728, 0.4048637152, 0.5142772794, 0.3133552969, -0.0660539642, -0.1195438206, -0.1525502503, -0.3521785438, -0.3539165556, 0.2396391779, 0.2017318904, 0.0184829887, -0.1471087784, -0.3326057494, -0.0950679034, 0.0819414258, 0.2781379223, -0.4085236788, -0.279738307, -0.3357236087, 0.0974263325, -0.1204473227, 0.2147092968, -0.2588468492, -0.0375362821, -0.3156368136, 0.2042547464, -0.3219060898, 0.0381845795, -0.3997868598, 0.1722810864, -0.1483063847, -0.2481523603, 0.0182314124, 0.0307652131, 0.1673873216, 0.2304185033, -0.2873901725, -0.1121997461, -0.2405644804, 0.0865458697, 0.1410397589, -0.1369152665, 0.1307747513, -0.1663815677, 0.0774900988, -0.1897876263, 0.0325980783, -0.1548464894, -0.1185716689, 0.3641764224, 0.197807461, 0.155799672, 0.1883444786, 0.2656749487, -0.143195048, 0.2839574218, -0.1587209851, 0.0132916197, -0.2259703428, -0.0838631466, -0.0842180327, 0.0726766363, -0.2182118595, -0.2391784489, 0.2639333904, -0.0150741842, -0.1912011206, -0.0865055993, 0.1725260466, 0.2049276829, -0.3796473444, -0.153058216, 0.54076159, 0.2050434798, -0.0046195723, -0.0341048427, 0.572797358, -0.0924610049, 0.2316607088, 0.3061138988, -0.153756842, -0.187976405, -0.1503073871, -0.0117989182, -0.3474125266, 0.0528134443, 0.2156009972, 0.4500198662, -0.1907597631, 0.1537032872, 0.1534423381, -0.1342351139, 0.5434715152, 0.0144113917, 0.1349455565, 0.1574077457, -0.0015680428, 0.0444375426, 0.3795166016, -0.4899704456, 0.4982143939, 0.6172642112, 0.2385595739, 0.3534963131, 0.1136447638, 0.1797674745, -0.1803994626, 0.0310928021, -0.1614094675, 0.2059416324, -0.3470535278, -0.0182734095, -0.0175699685, -0.1287973523, 0.0025711888, 0.0317992903, -0.033107914, -0.1463284194, 0.2225925624, 0.103073515, -0.2522371411, -0.3613155782, -0.0293794032, -0.1957933456, 0.019742487, -0.220298782, -0.0594294965, 0.127548188, 0.1394573748, -0.3628339469, 0.1233994514, 0.2021781504, 0.5606962442, -0.4515581429, -0.2535938919, 0.2951527536, 0.0871660262, -0.2988333106, 0.1697482318, -0.2322259247, -0.1714939028, 0.4422872961, 0.0752160996, -0.2449630946, -0.1833673865, 0.1342612058, 0.4924427569, 0.2643301487, 0.0972135663, 0.2130133957, 0.2047805339, 0.1633076519, -0.2080275565, -0.2605632246, -0.1555678248, 0.1988854408, -0.0063205776, 0.319567889, 0.0728775412, 0.0928777754, -0.0425356142, 0.2382951826, 0.2152564824, 0.1745690107, -0.0464249104, -0.0878164098, -0.2692608535, 0.3507026434, -0.1388015002, -0.208133921, 0.3059597909, -0.0111724716, 0.0657361224, 0.1503104568, -0.115486145, -0.2089877576, 0.1607622653, 0.4486098588, -0.2906092107, -0.1849913895, -0.1059622541, -0.1510676742, 0.2687522173, -0.5409832597, 0.1342632025, 0.1473648846, 0.0705440864, -0.231817022, 0.0140696056, -0.0116061503, 0.3986552656, 0.4254050553, 0.1147442088, 0.4639266133, -0.193955183, -0.1057454646, 0.2056580782, 0.0157290641, -0.0213509053, -0.1691846102, -0.1176792458, 0.3652637899, -0.0849698707, -0.2337133586, -0.1284030825, 0.5321086049, -0.1069319323, -0.1859682947, -0.1602981687, 0.3123157024, -0.0132144205, 0.0239583645, -0.4056390524, 0.205797255, 0.1661837101, 0.2969309092, -0.0653434023, -0.2356069833, 0.7419953346, 0.0621226989, -0.0540977716, -0.1270350665, 0.0202783234, -0.5549429655, -0.1697122753, -0.246307686, -0.1268682927, 0.2110936642, 0.1947378218, -0.5221105814, -0.1502922177, 0.1450448036, 0.0715024546, -0.2004755288, 0.6373540759, -0.2366664261, -0.3341546059, 0.2838117182, -0.0978839695 ]
https://github.com/huggingface/datasets/issues/2643
Enum used in map functions will raise a RecursionError with dill.
I have the same bug. the code is as follows: ![image](https://user-images.githubusercontent.com/84262181/139785849-620dd4ac-86ce-4212-8163-942bbca305aa.png) the error is: ![image](https://user-images.githubusercontent.com/84262181/139785899-88a9bd75-c60b-45a5-b819-830c7c096f3d.png) Look for the solution for this bug.
## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above. ## Steps to reproduce the bug ```python from datasets import load_dataset from enum import Enum class A(Enum): a = 'a' def main(): a = A.a def f(x): return {} if a == a.a else x ds = load_dataset('cnn_dailymail', '3.0.0')['test'] ds = ds.map(f, num_proc=15) if __name__ == "__main__": main() ``` ## Expected results The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood. ## Actual results ```python File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type pickler.save_reduce(_create_type, (type(obj), obj.__name__, File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save self.framer.commit_frame() File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame if f.tell() >= self._FRAME_SIZE_TARGET or force: RecursionError: maximum recursion depth exceeded while calling a Python object ``` ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 3.0.0
22
Enum used in map functions will raise a RecursionError with dill. ## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above. ## Steps to reproduce the bug ```python from datasets import load_dataset from enum import Enum class A(Enum): a = 'a' def main(): a = A.a def f(x): return {} if a == a.a else x ds = load_dataset('cnn_dailymail', '3.0.0')['test'] ds = ds.map(f, num_proc=15) if __name__ == "__main__": main() ``` ## Expected results The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood. ## Actual results ```python File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type pickler.save_reduce(_create_type, (type(obj), obj.__name__, File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save self.framer.commit_frame() File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame if f.tell() >= self._FRAME_SIZE_TARGET or force: RecursionError: maximum recursion depth exceeded while calling a Python object ``` ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 3.0.0 I have the same bug. the code is as follows: ![image](https://user-images.githubusercontent.com/84262181/139785849-620dd4ac-86ce-4212-8163-942bbca305aa.png) the error is: ![image](https://user-images.githubusercontent.com/84262181/139785899-88a9bd75-c60b-45a5-b819-830c7c096f3d.png) Look for the solution for this bug.
[ 0.1053605825, 0.1992539614, 0.0405321009, 0.1406992674, -0.0743715391, -0.0783434883, 0.1477603465, 0.2337794751, 0.1263177246, 0.1690645218, 0.1453329176, 0.9332158566, -0.290869683, -0.3072979152, -0.0783376619, 0.0934458673, 0.022367673, 0.0455224141, -0.618113935, -0.2456783801, -0.3375144601, -0.0052423654, -0.1024470925, -0.0100889578, -0.2116015255, 0.2239993215, 0.0477668382, 0.4010351002, 0.0841139555, -0.2200673521, 0.3333722353, -0.0734497979, 0.1974622756, 0.3142176867, -0.0001113917, 0.0850250125, 0.1187557504, -0.2274409682, -0.3654649556, -0.2395338863, 0.1474907398, 0.1226188019, 0.0726437643, -0.4154758453, 0.2226359099, 0.3753212094, -0.0025735509, -0.2636496723, -0.0621620268, 0.0543685332, 0.1718365997, -0.1396812499, 0.2170405686, 0.0761598498, 0.4435093403, -0.0182866696, 0.0448158644, 0.5206543207, 0.1653602272, -0.3055963218, -0.1643484682, 0.1722367257, -0.0976959616, -0.0254112817, 0.3883352578, -0.113609001, 0.6294156313, -0.0288461596, -0.1640147716, 0.2222028673, -0.1290316135, -0.2840957046, -0.2295471281, 0.0401711166, -0.079438217, -0.1017230451, 0.3087863624, -0.0180281624, -0.0133567313, -0.077560842, 0.1240697205, -0.2159890383, 0.0056777061, 0.427880168, -0.1641048193, 0.5943015814, 0.137812674, 0.166103974, 0.2780689895, -0.1684817672, -0.1965378076, 0.1178520694, 0.1020065546, 0.0950328633, -0.220873028, -0.0939791501, 0.2846586704, -0.3601532876, 0.3353615105, -0.1542606056, 0.0143169072, 0.1036643386, -0.0685877874, 0.3336907327, 0.3899123073, -0.1418339312, -0.0516567677, 0.559920013, 0.2155427039, -0.1122437418, 0.0307026394, 0.3607040942, 0.0600125529, 0.0919064134, -0.0083623072, -0.1110876128, 0.0112878829, -0.0954112038, -0.1062045097, 0.4172793627, -0.4747128189, -0.1136132106, 0.134955436, 0.1240022704, -0.1058501899, 0.021187095, 0.1341361105, 0.0897009373, -0.0525643751, 0.4216715097, -0.2110071629, -0.0060296683, 0.0234193038, -0.2131147683, -0.1768056452, 0.0548265576, 0.2632886767, 0.071327433, 0.1323000044, -0.0223737378, 0.0825917199, -0.2246848792, 0.1783072203, 0.1025309339, -0.5080523491, -0.0832127482, 0.253002882, -0.2604121566, -0.2579995096, 0.2515307963, -0.4531784654, -0.0923264772, -0.3719527423, 0.2141512632, 0.1512587667, 0.1420760602, 0.1465840936, -0.1181592718, 0.3029903173, -0.1372456104, 0.1552295238, -0.4185495079, -0.3111719191, -0.2451112866, 0.0752645656, -0.0309843123, -0.0723972619, -0.2012920529, -0.2666212022, 0.1593034416, 0.1756731421, -0.0490411259, -0.184819892, -0.1414385736, -0.2404543608, 0.2867938578, -0.1029914618, -0.1263520569, -0.3646345139, -0.0630567893, -0.0521466471, 0.1691659689, -0.2541858852, -0.1637443155, 0.2021381706, -0.2736370862, 0.5204456449, 0.1751686782, 0.1138639897, -0.0142076137, -0.3202032447, -0.113395296, 0.3278881609, 0.1209527254, -0.1715010703, -0.0926165283, -0.265378654, -0.1963819116, 0.3977231085, -0.2698432803, 0.0405841209, 0.1311579943, 0.1083367392, 0.0882654488, 0.0628297403, -0.1535955817, -0.3434665501, 0.198290199, -0.2558757365, -0.0215070862, 0.0164878312, -0.1004739329, 0.0963972434, 0.2580533922, -0.0351011083, -0.0973076373, 0.1891376823, 0.0994402394, -0.108073011, -0.0216380283, -0.0003863801, -0.3291851878, -0.4009251893, -0.0294387843, 0.0524635427, 0.302303791, -0.2305080444, -0.2322059721, -0.2058908939, 0.1653584242, -0.0919000879, 0.0035680232, -0.2516871095, 0.0290699247, 0.3874911368, -0.5933538675, -0.2805408835, -0.0545175374, -0.1167528257, -0.2748852372, 0.0368425213, 0.4684729278, 0.1454918087, -0.2771624327, 0.2459005862, 0.1754848361, 0.1758495122, 0.1228596941, 0.0697167292, 0.2272967547, -0.199826166, -0.1135168672, -0.029024478, -0.3736834228, -0.1019668207, 0.0934691727, 0.0345102064, 0.1148608848, -0.0388507769, -0.2529444098, 0.1679151356, 0.2472827733, 0.2872361243, 0.2680383623, -0.141411081, 0.0800695643, 0.1683733016, 0.0561094135, 0.1142272875, -0.0879763663, 0.0976697356, 0.1423884034, -0.1171692461, 0.1136521474, -0.0736678615, 0.075461328, 0.3981698155, 0.1457407624, -0.0600117184, 0.0496476702, -0.0412556306, -0.2883346081, -0.0536868349, 0.1021303385, -0.0684404597, 0.0745905712, -0.4567011595, 0.4747098386, 0.1333311349, -0.5235563517, -0.2458881736, -0.2118291706, -0.1701545864, 0.1294810176, -0.5239450336, 0.211162895, -0.1791201979, -0.446672231, 0.199665606, -0.3440628648, 0.2858991623, -0.3210588992, -0.2967027724, -0.0235465877, 0.1581545323, -0.1790606678, 0.0374894962, 0.262714833, -0.3319720328, 0.0355787277, -0.2012702078, 0.1469755918, 0.0324612446, 0.1711265892, 0.2742405534, 0.0931566805, -0.4386808574, -0.4228978455, 0.1325157881, 0.1339355409, -0.0586654879, 0.0601036623, 0.2963471115, 0.2722684145, -0.2222011238, -0.3065883219, -0.1973069757, -0.384598732, -0.2084994316, 0.0703798309, 0.4546931982, 0.2742162347, -0.0160642378, 0.4758415818, 0.3324287832, 0.3127492368, -0.3234799504, 0.3757662475, 0.2017487139, -0.1626096368, -0.2093154937, -0.1637183875, -0.5420067906, 0.0844264776, 0.1182154268, -0.5454445481, -0.2052111328, 0.189174518, 0.0723087937, -0.2491006851, -0.1957810819, 0.1190051362, 0.2233186811, 0.0628092885, -0.0219541602, -0.2726020515, 0.2237221152, 0.2733665407, 0.1518391222, 0.1783870906, -0.0109512592, -0.0432435237, 0.3684878349, 0.3489734232, -0.0253311954, 0.4116005003, 0.3529876471, -0.0865498632, 0.0425222963, 0.0363264158, 0.1121198237, 0.0395058356, -0.0896950737, 0.1329942644, -0.1452877074, -0.6623027921, 0.0320490748, 0.1480092406, 0.3037306368, -0.4923018813, 0.2677829266, -0.3939765394, 0.0531446412, -0.3042106628, 0.2357545495, 0.1242342293, 0.2263370007, 0.1090450063, -0.0914255604, 0.1903574616, -0.1192370877, -0.0924873501, -0.1650371403, -0.0067232, 0.1185410917, 0.3353766799, 0.371765554, -0.0453590117, -0.376014173, -0.124396503, -0.1063317657, 0.4010099471, -0.3481985033, 0.0769574642, 0.4122265875, -0.2628347278, -0.289960593, -0.1358057112, 0.0748562738, 0.0418152139, 0.32621032, -0.1238103509, -0.4923030734, 0.1185787991, 0.421998173, 0.0081254831, 0.1181249917, -0.0038842608, -0.0588979386, -0.1878030449, -0.2951494455, -0.0115586305, -0.145827949, 0.1225044429, 0.2150286287, -0.0180002954, -0.1149310991, 0.1004171148, -0.0838029832, -0.1668771505, 0.2862611413, -0.1239505485, 0.1584714651, 0.1450294256, 0.3025131822, 0.2738064826, 0.3276349902, -0.3374812007, 0.1992720962, 0.2932470441, 0.2256003767, 0.1761762798, 0.0552477911, 0.2008027732, 0.1537928581, 0.0105551621, -0.190516308, -0.1788255572, -0.3223814666, 0.0872778967, 0.0500286669, -0.1219284758, -0.3815682232, 0.0662227646, 0.169370085, -0.0110468334, 0.0616260618, -0.3657357097, -0.0102444356, 0.4981333017, 0.3520674109, 0.8710962534, 0.2196190953, -0.0461063311, 0.0972306803, -0.0263180062, -0.2297054529, 0.3024889529, -0.1804320812, -0.298660934, 0.0040675313, -0.0744973943, -0.1246088743, -0.0215663034, -0.0152552566, -0.3948971331, 0.0234437883, -0.1997487694, 0.0419673249, 0.0282369833, -0.052602578, -0.0607002415, -0.1094835773, 0.2939589024, 0.1608691216, 0.0929872245, 0.0798240155, -0.0656133443, -0.0919525772, -0.2405120432, -0.3805099428, -0.1540369242, 0.144175306, -0.1137659997, 0.4462916851, 0.3543666005, -0.2859048843, 0.13251625, 0.3625554144, -0.2675670683, 0.1217099801, -0.0649967566, -0.0234082583, 0.0419257917, 0.1990350038, 0.2569916546, -0.0653649122, 0.5327146053, -0.0084036971, -0.2321223915, 0.1457435489, -0.0940773636, -0.2741782963, -0.0868038759, 0.3060584068, 0.3108741939, -0.0182179976, 0.0556958802, -0.0570492484, -0.1751940697, -0.1722621918, 0.1487811357, 0.1978513151, -0.1734807044, 0.2513158917, 0.09073966, -0.21897012, -0.0801061615, 0.4010271728, 0.4048637152, 0.5142772794, 0.3133552969, -0.0660539642, -0.1195438206, -0.1525502503, -0.3521785438, -0.3539165556, 0.2396391779, 0.2017318904, 0.0184829887, -0.1471087784, -0.3326057494, -0.0950679034, 0.0819414258, 0.2781379223, -0.4085236788, -0.279738307, -0.3357236087, 0.0974263325, -0.1204473227, 0.2147092968, -0.2588468492, -0.0375362821, -0.3156368136, 0.2042547464, -0.3219060898, 0.0381845795, -0.3997868598, 0.1722810864, -0.1483063847, -0.2481523603, 0.0182314124, 0.0307652131, 0.1673873216, 0.2304185033, -0.2873901725, -0.1121997461, -0.2405644804, 0.0865458697, 0.1410397589, -0.1369152665, 0.1307747513, -0.1663815677, 0.0774900988, -0.1897876263, 0.0325980783, -0.1548464894, -0.1185716689, 0.3641764224, 0.197807461, 0.155799672, 0.1883444786, 0.2656749487, -0.143195048, 0.2839574218, -0.1587209851, 0.0132916197, -0.2259703428, -0.0838631466, -0.0842180327, 0.0726766363, -0.2182118595, -0.2391784489, 0.2639333904, -0.0150741842, -0.1912011206, -0.0865055993, 0.1725260466, 0.2049276829, -0.3796473444, -0.153058216, 0.54076159, 0.2050434798, -0.0046195723, -0.0341048427, 0.572797358, -0.0924610049, 0.2316607088, 0.3061138988, -0.153756842, -0.187976405, -0.1503073871, -0.0117989182, -0.3474125266, 0.0528134443, 0.2156009972, 0.4500198662, -0.1907597631, 0.1537032872, 0.1534423381, -0.1342351139, 0.5434715152, 0.0144113917, 0.1349455565, 0.1574077457, -0.0015680428, 0.0444375426, 0.3795166016, -0.4899704456, 0.4982143939, 0.6172642112, 0.2385595739, 0.3534963131, 0.1136447638, 0.1797674745, -0.1803994626, 0.0310928021, -0.1614094675, 0.2059416324, -0.3470535278, -0.0182734095, -0.0175699685, -0.1287973523, 0.0025711888, 0.0317992903, -0.033107914, -0.1463284194, 0.2225925624, 0.103073515, -0.2522371411, -0.3613155782, -0.0293794032, -0.1957933456, 0.019742487, -0.220298782, -0.0594294965, 0.127548188, 0.1394573748, -0.3628339469, 0.1233994514, 0.2021781504, 0.5606962442, -0.4515581429, -0.2535938919, 0.2951527536, 0.0871660262, -0.2988333106, 0.1697482318, -0.2322259247, -0.1714939028, 0.4422872961, 0.0752160996, -0.2449630946, -0.1833673865, 0.1342612058, 0.4924427569, 0.2643301487, 0.0972135663, 0.2130133957, 0.2047805339, 0.1633076519, -0.2080275565, -0.2605632246, -0.1555678248, 0.1988854408, -0.0063205776, 0.319567889, 0.0728775412, 0.0928777754, -0.0425356142, 0.2382951826, 0.2152564824, 0.1745690107, -0.0464249104, -0.0878164098, -0.2692608535, 0.3507026434, -0.1388015002, -0.208133921, 0.3059597909, -0.0111724716, 0.0657361224, 0.1503104568, -0.115486145, -0.2089877576, 0.1607622653, 0.4486098588, -0.2906092107, -0.1849913895, -0.1059622541, -0.1510676742, 0.2687522173, -0.5409832597, 0.1342632025, 0.1473648846, 0.0705440864, -0.231817022, 0.0140696056, -0.0116061503, 0.3986552656, 0.4254050553, 0.1147442088, 0.4639266133, -0.193955183, -0.1057454646, 0.2056580782, 0.0157290641, -0.0213509053, -0.1691846102, -0.1176792458, 0.3652637899, -0.0849698707, -0.2337133586, -0.1284030825, 0.5321086049, -0.1069319323, -0.1859682947, -0.1602981687, 0.3123157024, -0.0132144205, 0.0239583645, -0.4056390524, 0.205797255, 0.1661837101, 0.2969309092, -0.0653434023, -0.2356069833, 0.7419953346, 0.0621226989, -0.0540977716, -0.1270350665, 0.0202783234, -0.5549429655, -0.1697122753, -0.246307686, -0.1268682927, 0.2110936642, 0.1947378218, -0.5221105814, -0.1502922177, 0.1450448036, 0.0715024546, -0.2004755288, 0.6373540759, -0.2366664261, -0.3341546059, 0.2838117182, -0.0978839695 ]
https://github.com/huggingface/datasets/issues/2643
Enum used in map functions will raise a RecursionError with dill.
Hi ! I think your RecursionError comes from a different issue @BitcoinNLPer , could you open a separate issue please ? Also which dataset are you using ? I tried loading `CodedotAI/code_clippy` but I get a different error ```python Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 1615, in load_dataset **config_kwargs, File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 1446, in load_dataset_builder builder_cls = import_main_class(dataset_module.module_path) File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 101, in import_main_class module = importlib.import_module(module_path) File "/Users/quentinlhoest/.virtualenvs/hf-datasets/lib/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/Users/quentinlhoest/.cache/huggingface/modules/datasets_modules/datasets/CodedotAI___code_clippy/d332f69d036e8c80f47bc9a96d676c3fa30cb50af7bb81e2d4d12e80b83efc4d/code_clippy.py", line 66, in <module> url_elements = results.find_all("a") AttributeError: 'NoneType' object has no attribute 'find_all' ```
## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above. ## Steps to reproduce the bug ```python from datasets import load_dataset from enum import Enum class A(Enum): a = 'a' def main(): a = A.a def f(x): return {} if a == a.a else x ds = load_dataset('cnn_dailymail', '3.0.0')['test'] ds = ds.map(f, num_proc=15) if __name__ == "__main__": main() ``` ## Expected results The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood. ## Actual results ```python File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type pickler.save_reduce(_create_type, (type(obj), obj.__name__, File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save self.framer.commit_frame() File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame if f.tell() >= self._FRAME_SIZE_TARGET or force: RecursionError: maximum recursion depth exceeded while calling a Python object ``` ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 3.0.0
144
Enum used in map functions will raise a RecursionError with dill. ## Describe the bug Enums used in functions pass to `map` will fail at pickling with a maximum recursion exception as described here: https://github.com/uqfoundation/dill/issues/250#issuecomment-852566284 In my particular case, I use an enum to define an argument with fixed options using the `TraininigArguments` dataclass as base class and the `HfArgumentParser`. In the same file I use a `ds.map` that tries to pickle the content of the module including the definition of the enum that runs into the dill bug described above. ## Steps to reproduce the bug ```python from datasets import load_dataset from enum import Enum class A(Enum): a = 'a' def main(): a = A.a def f(x): return {} if a == a.a else x ds = load_dataset('cnn_dailymail', '3.0.0')['test'] ds = ds.map(f, num_proc=15) if __name__ == "__main__": main() ``` ## Expected results The known problem with dill could be prevented as explained in the link above (workaround.) Since `HFArgumentParser` nicely uses the enum class for choices it makes sense to also deal with this bug under the hood. ## Actual results ```python File "/home/xxxx/miniconda3/lib/python3.8/site-packages/dill/_dill.py", line 1373, in save_type pickler.save_reduce(_create_type, (type(obj), obj.__name__, File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 534, in save self.framer.commit_frame() File "/home/xxxx/miniconda3/lib/python3.8/pickle.py", line 220, in commit_frame if f.tell() >= self._FRAME_SIZE_TARGET or force: RecursionError: maximum recursion depth exceeded while calling a Python object ``` ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.9.0-4-amd64-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 3.0.0 Hi ! I think your RecursionError comes from a different issue @BitcoinNLPer , could you open a separate issue please ? Also which dataset are you using ? I tried loading `CodedotAI/code_clippy` but I get a different error ```python Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 1615, in load_dataset **config_kwargs, File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 1446, in load_dataset_builder builder_cls = import_main_class(dataset_module.module_path) File "/Users/quentinlhoest/Desktop/hf/datasets/src/datasets/load.py", line 101, in import_main_class module = importlib.import_module(module_path) File "/Users/quentinlhoest/.virtualenvs/hf-datasets/lib/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/Users/quentinlhoest/.cache/huggingface/modules/datasets_modules/datasets/CodedotAI___code_clippy/d332f69d036e8c80f47bc9a96d676c3fa30cb50af7bb81e2d4d12e80b83efc4d/code_clippy.py", line 66, in <module> url_elements = results.find_all("a") AttributeError: 'NoneType' object has no attribute 'find_all' ```
[ 0.1053605825, 0.1992539614, 0.0405321009, 0.1406992674, -0.0743715391, -0.0783434883, 0.1477603465, 0.2337794751, 0.1263177246, 0.1690645218, 0.1453329176, 0.9332158566, -0.290869683, -0.3072979152, -0.0783376619, 0.0934458673, 0.022367673, 0.0455224141, -0.618113935, -0.2456783801, -0.3375144601, -0.0052423654, -0.1024470925, -0.0100889578, -0.2116015255, 0.2239993215, 0.0477668382, 0.4010351002, 0.0841139555, -0.2200673521, 0.3333722353, -0.0734497979, 0.1974622756, 0.3142176867, -0.0001113917, 0.0850250125, 0.1187557504, -0.2274409682, -0.3654649556, -0.2395338863, 0.1474907398, 0.1226188019, 0.0726437643, -0.4154758453, 0.2226359099, 0.3753212094, -0.0025735509, -0.2636496723, -0.0621620268, 0.0543685332, 0.1718365997, -0.1396812499, 0.2170405686, 0.0761598498, 0.4435093403, -0.0182866696, 0.0448158644, 0.5206543207, 0.1653602272, -0.3055963218, -0.1643484682, 0.1722367257, -0.0976959616, -0.0254112817, 0.3883352578, -0.113609001, 0.6294156313, -0.0288461596, -0.1640147716, 0.2222028673, -0.1290316135, -0.2840957046, -0.2295471281, 0.0401711166, -0.079438217, -0.1017230451, 0.3087863624, -0.0180281624, -0.0133567313, -0.077560842, 0.1240697205, -0.2159890383, 0.0056777061, 0.427880168, -0.1641048193, 0.5943015814, 0.137812674, 0.166103974, 0.2780689895, -0.1684817672, -0.1965378076, 0.1178520694, 0.1020065546, 0.0950328633, -0.220873028, -0.0939791501, 0.2846586704, -0.3601532876, 0.3353615105, -0.1542606056, 0.0143169072, 0.1036643386, -0.0685877874, 0.3336907327, 0.3899123073, -0.1418339312, -0.0516567677, 0.559920013, 0.2155427039, -0.1122437418, 0.0307026394, 0.3607040942, 0.0600125529, 0.0919064134, -0.0083623072, -0.1110876128, 0.0112878829, -0.0954112038, -0.1062045097, 0.4172793627, -0.4747128189, -0.1136132106, 0.134955436, 0.1240022704, -0.1058501899, 0.021187095, 0.1341361105, 0.0897009373, -0.0525643751, 0.4216715097, -0.2110071629, -0.0060296683, 0.0234193038, -0.2131147683, -0.1768056452, 0.0548265576, 0.2632886767, 0.071327433, 0.1323000044, -0.0223737378, 0.0825917199, -0.2246848792, 0.1783072203, 0.1025309339, -0.5080523491, -0.0832127482, 0.253002882, -0.2604121566, -0.2579995096, 0.2515307963, -0.4531784654, -0.0923264772, -0.3719527423, 0.2141512632, 0.1512587667, 0.1420760602, 0.1465840936, -0.1181592718, 0.3029903173, -0.1372456104, 0.1552295238, -0.4185495079, -0.3111719191, -0.2451112866, 0.0752645656, -0.0309843123, -0.0723972619, -0.2012920529, -0.2666212022, 0.1593034416, 0.1756731421, -0.0490411259, -0.184819892, -0.1414385736, -0.2404543608, 0.2867938578, -0.1029914618, -0.1263520569, -0.3646345139, -0.0630567893, -0.0521466471, 0.1691659689, -0.2541858852, -0.1637443155, 0.2021381706, -0.2736370862, 0.5204456449, 0.1751686782, 0.1138639897, -0.0142076137, -0.3202032447, -0.113395296, 0.3278881609, 0.1209527254, -0.1715010703, -0.0926165283, -0.265378654, -0.1963819116, 0.3977231085, -0.2698432803, 0.0405841209, 0.1311579943, 0.1083367392, 0.0882654488, 0.0628297403, -0.1535955817, -0.3434665501, 0.198290199, -0.2558757365, -0.0215070862, 0.0164878312, -0.1004739329, 0.0963972434, 0.2580533922, -0.0351011083, -0.0973076373, 0.1891376823, 0.0994402394, -0.108073011, -0.0216380283, -0.0003863801, -0.3291851878, -0.4009251893, -0.0294387843, 0.0524635427, 0.302303791, -0.2305080444, -0.2322059721, -0.2058908939, 0.1653584242, -0.0919000879, 0.0035680232, -0.2516871095, 0.0290699247, 0.3874911368, -0.5933538675, -0.2805408835, -0.0545175374, -0.1167528257, -0.2748852372, 0.0368425213, 0.4684729278, 0.1454918087, -0.2771624327, 0.2459005862, 0.1754848361, 0.1758495122, 0.1228596941, 0.0697167292, 0.2272967547, -0.199826166, -0.1135168672, -0.029024478, -0.3736834228, -0.1019668207, 0.0934691727, 0.0345102064, 0.1148608848, -0.0388507769, -0.2529444098, 0.1679151356, 0.2472827733, 0.2872361243, 0.2680383623, -0.141411081, 0.0800695643, 0.1683733016, 0.0561094135, 0.1142272875, -0.0879763663, 0.0976697356, 0.1423884034, -0.1171692461, 0.1136521474, -0.0736678615, 0.075461328, 0.3981698155, 0.1457407624, -0.0600117184, 0.0496476702, -0.0412556306, -0.2883346081, -0.0536868349, 0.1021303385, -0.0684404597, 0.0745905712, -0.4567011595, 0.4747098386, 0.1333311349, -0.5235563517, -0.2458881736, -0.2118291706, -0.1701545864, 0.1294810176, -0.5239450336, 0.211162895, -0.1791201979, -0.446672231, 0.199665606, -0.3440628648, 0.2858991623, -0.3210588992, -0.2967027724, -0.0235465877, 0.1581545323, -0.1790606678, 0.0374894962, 0.262714833, -0.3319720328, 0.0355787277, -0.2012702078, 0.1469755918, 0.0324612446, 0.1711265892, 0.2742405534, 0.0931566805, -0.4386808574, -0.4228978455, 0.1325157881, 0.1339355409, -0.0586654879, 0.0601036623, 0.2963471115, 0.2722684145, -0.2222011238, -0.3065883219, -0.1973069757, -0.384598732, -0.2084994316, 0.0703798309, 0.4546931982, 0.2742162347, -0.0160642378, 0.4758415818, 0.3324287832, 0.3127492368, -0.3234799504, 0.3757662475, 0.2017487139, -0.1626096368, -0.2093154937, -0.1637183875, -0.5420067906, 0.0844264776, 0.1182154268, -0.5454445481, -0.2052111328, 0.189174518, 0.0723087937, -0.2491006851, -0.1957810819, 0.1190051362, 0.2233186811, 0.0628092885, -0.0219541602, -0.2726020515, 0.2237221152, 0.2733665407, 0.1518391222, 0.1783870906, -0.0109512592, -0.0432435237, 0.3684878349, 0.3489734232, -0.0253311954, 0.4116005003, 0.3529876471, -0.0865498632, 0.0425222963, 0.0363264158, 0.1121198237, 0.0395058356, -0.0896950737, 0.1329942644, -0.1452877074, -0.6623027921, 0.0320490748, 0.1480092406, 0.3037306368, -0.4923018813, 0.2677829266, -0.3939765394, 0.0531446412, -0.3042106628, 0.2357545495, 0.1242342293, 0.2263370007, 0.1090450063, -0.0914255604, 0.1903574616, -0.1192370877, -0.0924873501, -0.1650371403, -0.0067232, 0.1185410917, 0.3353766799, 0.371765554, -0.0453590117, -0.376014173, -0.124396503, -0.1063317657, 0.4010099471, -0.3481985033, 0.0769574642, 0.4122265875, -0.2628347278, -0.289960593, -0.1358057112, 0.0748562738, 0.0418152139, 0.32621032, -0.1238103509, -0.4923030734, 0.1185787991, 0.421998173, 0.0081254831, 0.1181249917, -0.0038842608, -0.0588979386, -0.1878030449, -0.2951494455, -0.0115586305, -0.145827949, 0.1225044429, 0.2150286287, -0.0180002954, -0.1149310991, 0.1004171148, -0.0838029832, -0.1668771505, 0.2862611413, -0.1239505485, 0.1584714651, 0.1450294256, 0.3025131822, 0.2738064826, 0.3276349902, -0.3374812007, 0.1992720962, 0.2932470441, 0.2256003767, 0.1761762798, 0.0552477911, 0.2008027732, 0.1537928581, 0.0105551621, -0.190516308, -0.1788255572, -0.3223814666, 0.0872778967, 0.0500286669, -0.1219284758, -0.3815682232, 0.0662227646, 0.169370085, -0.0110468334, 0.0616260618, -0.3657357097, -0.0102444356, 0.4981333017, 0.3520674109, 0.8710962534, 0.2196190953, -0.0461063311, 0.0972306803, -0.0263180062, -0.2297054529, 0.3024889529, -0.1804320812, -0.298660934, 0.0040675313, -0.0744973943, -0.1246088743, -0.0215663034, -0.0152552566, -0.3948971331, 0.0234437883, -0.1997487694, 0.0419673249, 0.0282369833, -0.052602578, -0.0607002415, -0.1094835773, 0.2939589024, 0.1608691216, 0.0929872245, 0.0798240155, -0.0656133443, -0.0919525772, -0.2405120432, -0.3805099428, -0.1540369242, 0.144175306, -0.1137659997, 0.4462916851, 0.3543666005, -0.2859048843, 0.13251625, 0.3625554144, -0.2675670683, 0.1217099801, -0.0649967566, -0.0234082583, 0.0419257917, 0.1990350038, 0.2569916546, -0.0653649122, 0.5327146053, -0.0084036971, -0.2321223915, 0.1457435489, -0.0940773636, -0.2741782963, -0.0868038759, 0.3060584068, 0.3108741939, -0.0182179976, 0.0556958802, -0.0570492484, -0.1751940697, -0.1722621918, 0.1487811357, 0.1978513151, -0.1734807044, 0.2513158917, 0.09073966, -0.21897012, -0.0801061615, 0.4010271728, 0.4048637152, 0.5142772794, 0.3133552969, -0.0660539642, -0.1195438206, -0.1525502503, -0.3521785438, -0.3539165556, 0.2396391779, 0.2017318904, 0.0184829887, -0.1471087784, -0.3326057494, -0.0950679034, 0.0819414258, 0.2781379223, -0.4085236788, -0.279738307, -0.3357236087, 0.0974263325, -0.1204473227, 0.2147092968, -0.2588468492, -0.0375362821, -0.3156368136, 0.2042547464, -0.3219060898, 0.0381845795, -0.3997868598, 0.1722810864, -0.1483063847, -0.2481523603, 0.0182314124, 0.0307652131, 0.1673873216, 0.2304185033, -0.2873901725, -0.1121997461, -0.2405644804, 0.0865458697, 0.1410397589, -0.1369152665, 0.1307747513, -0.1663815677, 0.0774900988, -0.1897876263, 0.0325980783, -0.1548464894, -0.1185716689, 0.3641764224, 0.197807461, 0.155799672, 0.1883444786, 0.2656749487, -0.143195048, 0.2839574218, -0.1587209851, 0.0132916197, -0.2259703428, -0.0838631466, -0.0842180327, 0.0726766363, -0.2182118595, -0.2391784489, 0.2639333904, -0.0150741842, -0.1912011206, -0.0865055993, 0.1725260466, 0.2049276829, -0.3796473444, -0.153058216, 0.54076159, 0.2050434798, -0.0046195723, -0.0341048427, 0.572797358, -0.0924610049, 0.2316607088, 0.3061138988, -0.153756842, -0.187976405, -0.1503073871, -0.0117989182, -0.3474125266, 0.0528134443, 0.2156009972, 0.4500198662, -0.1907597631, 0.1537032872, 0.1534423381, -0.1342351139, 0.5434715152, 0.0144113917, 0.1349455565, 0.1574077457, -0.0015680428, 0.0444375426, 0.3795166016, -0.4899704456, 0.4982143939, 0.6172642112, 0.2385595739, 0.3534963131, 0.1136447638, 0.1797674745, -0.1803994626, 0.0310928021, -0.1614094675, 0.2059416324, -0.3470535278, -0.0182734095, -0.0175699685, -0.1287973523, 0.0025711888, 0.0317992903, -0.033107914, -0.1463284194, 0.2225925624, 0.103073515, -0.2522371411, -0.3613155782, -0.0293794032, -0.1957933456, 0.019742487, -0.220298782, -0.0594294965, 0.127548188, 0.1394573748, -0.3628339469, 0.1233994514, 0.2021781504, 0.5606962442, -0.4515581429, -0.2535938919, 0.2951527536, 0.0871660262, -0.2988333106, 0.1697482318, -0.2322259247, -0.1714939028, 0.4422872961, 0.0752160996, -0.2449630946, -0.1833673865, 0.1342612058, 0.4924427569, 0.2643301487, 0.0972135663, 0.2130133957, 0.2047805339, 0.1633076519, -0.2080275565, -0.2605632246, -0.1555678248, 0.1988854408, -0.0063205776, 0.319567889, 0.0728775412, 0.0928777754, -0.0425356142, 0.2382951826, 0.2152564824, 0.1745690107, -0.0464249104, -0.0878164098, -0.2692608535, 0.3507026434, -0.1388015002, -0.208133921, 0.3059597909, -0.0111724716, 0.0657361224, 0.1503104568, -0.115486145, -0.2089877576, 0.1607622653, 0.4486098588, -0.2906092107, -0.1849913895, -0.1059622541, -0.1510676742, 0.2687522173, -0.5409832597, 0.1342632025, 0.1473648846, 0.0705440864, -0.231817022, 0.0140696056, -0.0116061503, 0.3986552656, 0.4254050553, 0.1147442088, 0.4639266133, -0.193955183, -0.1057454646, 0.2056580782, 0.0157290641, -0.0213509053, -0.1691846102, -0.1176792458, 0.3652637899, -0.0849698707, -0.2337133586, -0.1284030825, 0.5321086049, -0.1069319323, -0.1859682947, -0.1602981687, 0.3123157024, -0.0132144205, 0.0239583645, -0.4056390524, 0.205797255, 0.1661837101, 0.2969309092, -0.0653434023, -0.2356069833, 0.7419953346, 0.0621226989, -0.0540977716, -0.1270350665, 0.0202783234, -0.5549429655, -0.1697122753, -0.246307686, -0.1268682927, 0.2110936642, 0.1947378218, -0.5221105814, -0.1502922177, 0.1450448036, 0.0715024546, -0.2004755288, 0.6373540759, -0.2366664261, -0.3341546059, 0.2838117182, -0.0978839695 ]
https://github.com/huggingface/datasets/issues/2642
Support multi-worker with streaming dataset (IterableDataset).
Hi ! This is a great idea :) I think we could have something similar to what we have in `datasets.Dataset.map`, i.e. a `num_proc` parameter that tells how many processes to spawn to parallelize the data processing. Regarding AUTOTUNE, this could be a nice feature as well, we could see how to add it in a second step
**Is your feature request related to a problem? Please describe.** The current `.map` does not support multi-process, CPU can become bottleneck if the pre-processing is complex (e.g. t5 span masking). **Describe the solution you'd like** Ideally `.map` should support multi-worker like tfds, with `AUTOTUNE`. **Describe alternatives you've considered** A simpler solution is to shard the dataset and process it in parallel with pytorch dataloader. The shard does not need to be of equal size. * https://pytorch.org/docs/stable/data.html#torch.utils.data.IterableDataset **Additional context**
58
Support multi-worker with streaming dataset (IterableDataset). **Is your feature request related to a problem? Please describe.** The current `.map` does not support multi-process, CPU can become bottleneck if the pre-processing is complex (e.g. t5 span masking). **Describe the solution you'd like** Ideally `.map` should support multi-worker like tfds, with `AUTOTUNE`. **Describe alternatives you've considered** A simpler solution is to shard the dataset and process it in parallel with pytorch dataloader. The shard does not need to be of equal size. * https://pytorch.org/docs/stable/data.html#torch.utils.data.IterableDataset **Additional context** Hi ! This is a great idea :) I think we could have something similar to what we have in `datasets.Dataset.map`, i.e. a `num_proc` parameter that tells how many processes to spawn to parallelize the data processing. Regarding AUTOTUNE, this could be a nice feature as well, we could see how to add it in a second step
[ -0.6293720007, -0.5262187719, -0.1424406171, -0.0420490392, -0.1927179545, -0.0104304729, 0.5165581107, 0.1782798469, 0.0827182531, 0.1480464339, -0.084755674, 0.3020121157, -0.2687704265, 0.2669042945, -0.0826475248, -0.2372147143, -0.1250283271, 0.0643195212, -0.0082344916, 0.2308466583, -0.1249569729, 0.0046402989, -0.1339982599, -0.2044820338, -0.3420330584, -0.0932869688, -0.0188153423, 0.0379002988, 0.3172483146, -0.244389683, 0.0603745505, 0.4343950748, 0.1305344552, 0.585218966, -0.0001076541, -0.0930029675, 0.1798297018, -0.0003880884, -0.0898806751, 0.0590009056, -0.0778127164, -0.1035519913, 0.0630578995, -0.3442631364, -0.0596428514, -0.2667041421, 0.1754978299, -0.4042600691, 0.2037628442, -0.1677054018, 0.1624763161, 0.37573421, -0.1845999807, 0.108905226, -0.3134666681, -0.0016087415, -0.1212616861, 0.0694384351, 0.6291936636, 0.0375888646, -0.3766746223, 0.3427779078, -0.2514379919, 0.3703423142, 0.2419780642, -0.184853062, -0.3477922082, -0.4835862815, 0.0880196765, 0.3975022137, 0.2647567689, -0.2432528734, -0.1754495502, -0.4112395048, -0.1313701421, -0.0672609806, -0.0569016263, 0.1599918604, -0.2204434425, -0.0761077926, -0.3439474702, -0.0879494846, -0.2108644098, 0.1095364839, 0.1564040482, 0.3157584071, 0.083436437, 0.2758637667, 0.2605763674, 0.1159337983, 0.328574717, -0.10678076, 0.3322062492, 0.1372993141, -0.4830513895, -0.2322726548, -0.0932079181, -0.45949471, 0.1724085808, -0.0372725427, 0.2354436517, 0.3031925559, -0.1467368454, 0.3102489114, 0.3134963214, -0.2739819884, -0.2789576352, -0.1171553507, 0.4016441107, -0.1800673008, -0.1007044241, 0.0791768655, 0.1089921519, -0.3574827015, 0.3322722912, 0.2111252695, 0.1256031543, 0.3532760739, 0.147181049, -0.394115597, -0.1462437361, -0.2977166176, -0.0636942908, 0.10531234, -0.0647524223, 0.3614374995, -0.1102479398, -0.1895646602, -0.0609051734, -0.269421041, -0.0108174123, -0.2652400434, -0.030639803, 0.1368186623, 0.2078421861, -0.5171915293, 0.211283192, -0.0188692212, 0.3191460371, 0.2308338284, 0.3875932097, -0.2626327574, 0.2241922319, 0.0336895175, 0.026763482, -0.0016433182, -0.1848910004, 0.514352262, -0.1868381053, 0.3826096654, -0.2418972254, -0.5341448784, -0.0030775543, 0.1260260493, 0.0426392779, -0.0261150822, -0.1706096083, 0.3209350407, 0.2911280394, -0.2322876602, -0.0450491607, -0.0829447657, -0.3704200387, -0.2616882324, 0.1099368557, 0.1438873261, 0.0900041312, -0.0141942305, -0.0176147427, 0.0520845614, 0.060434252, 0.2784421444, -0.2516745031, -0.114880003, -0.1209256798, 0.2565868795, 0.2521810532, -0.0623327754, -0.1281467676, 0.5759639144, -0.1012861803, 0.0670710802, 0.2291384935, 0.4602633715, 0.4873193502, -0.1004528105, 0.0499885343, 0.4320583344, -0.368176192, 0.3279697895, -0.1328712553, -0.2349712998, 0.2222043127, 0.4411796033, 0.2141230851, -0.1205197945, -0.0339910425, -0.3242702186, 0.3923347294, -0.1728551835, 0.2822701335, 0.0077502192, -0.0183662828, 0.0428031795, 0.1039091349, -0.4952969551, -0.4326004088, 0.1770922393, 0.1475959271, -0.1315749437, 0.3082437813, -0.1840863973, 0.2749665678, -0.1251863092, -0.12111561, -0.1684865952, 0.0596544966, 0.1639612913, -0.2323683053, -0.4080905318, -0.5029203296, 0.2063699514, -0.0860888436, -0.2651177645, -0.1824333519, 0.1871774942, 0.1442109197, -0.0866212472, -0.139896512, -0.0140006449, -0.0666919574, -0.161142081, -0.0031098044, 0.2786311209, -0.1334877908, 0.2993046343, 0.0858057588, 0.5260650516, 0.4518823326, -0.1562732309, 0.045842953, 0.2426930964, -0.134872973, -0.2062018216, -0.0090115797, 0.1845548451, -0.336879909, 0.2194123715, 0.0417126939, -0.0113586867, 0.2030806392, 0.0669189245, -0.1730811894, 0.1992410421, -0.0525553562, -0.3027157187, 0.0736508667, -0.0028766738, -0.5791733265, 0.2516584098, 0.3946072161, 0.1065456197, -0.0127726365, 0.0887367651, -0.1118110865, 0.0106018214, 0.1834911704, 0.1043292359, 0.3538616002, 0.2624370456, 0.1418778747, -0.106848307, 0.192964226, -0.094922334, -0.0051334603, 0.0241869017, 0.347954601, 0.2728955746, 0.0987077057, -0.0123776514, -0.0414280333, -0.4256393313, 0.2487670779, -0.01648435, 0.0392938629, -0.0153858606, 0.0869061872, -0.0173120182, -0.0803799853, -0.1648901403, -0.0341392457, -0.0209993664, 0.1612665504, 0.7649843097, -0.1086931229, 0.3368279338, 0.1869968623, 0.1899266243, 0.0012892034, -0.2053339183, -0.109853074, -0.2062005103, 0.2713900506, 0.1082150564, 0.1666262299, -0.2358656824, 0.435921222, 0.3054797053, -0.0445545763, -0.4260462523, -0.0482703485, -0.0027315428, 0.077040799, -0.202936545, 0.0277965292, 0.1210203096, 0.2024900317, -0.2030798644, 0.0591703802, -0.3240248263, 0.0467325039, -0.1095951349, 0.0144649409, 0.0102425544, -0.053356003, -0.2154242992, -0.2746195197, -0.4614112079, 0.3068508506, -0.199726671, 0.3495418727, -0.1097628176, 0.0805517882, -0.1313743591, 0.3815686107, -0.1566505134, -0.0187258329, -0.4405145943, 0.2183482349, -0.3194652796, -0.1749506444, -0.0687200129, 0.0693103224, 0.1051424146, 0.4950217307, -0.1572957486, -0.1464730948, -0.1428733319, 0.2285065055, -0.1550752521, -0.0148038212, 0.4700109959, 0.2209290117, -0.0559558086, 0.033037167, 0.0362330228, -0.0336565301, 0.2212248147, -0.1767289191, 0.3686834872, 0.1956781894, 0.2241792232, 0.9834294319, 0.2730430067, -0.1933690012, 0.1726336777, -0.0970553905, -0.2342126817, -0.0213302374, -0.4307988882, 0.1177892536, -0.316978097, 0.127552256, 0.2472837567, -0.1683027446, -0.4030023515, -0.0669216365, -0.1508392841, -0.0975208431, -0.0979945511, 0.4519284964, -0.2520994842, 0.522931695, -0.2508049905, -0.235395357, -0.290553987, -0.0854287148, -0.0017173237, -0.0591426194, 0.5325174332, -0.2169795036, 0.1875936389, 0.2896521986, -0.3857785165, 0.2180111408, 0.2700886726, 0.1115730479, 0.021134695, -0.030800024, 0.1801568717, -0.0222091507, 0.5902084708, -0.18095918, -0.0085111428, -0.117294848, -0.4298485219, -0.178536132, 0.1208771467, -0.0219999123, 0.5310915709, 0.1881124377, 0.3519921303, -0.300688833, -0.3387382627, 0.1681136638, -0.0491721854, -0.2068438679, -0.5010206699, -0.1466505527, 0.0997283086, -0.33033216, 0.0575712658, 0.2879675925, -0.0101082772, -0.0430896804, -0.3219867945, 0.0266618058, -0.072541222, -0.0972077027, 0.0893384293, -0.1573421955, 0.0391399302, 0.251645565, 0.295263052, 0.099836655, -0.0102313831, 0.1687059253, -0.0394128859, -0.299523741, 0.1923433989, 0.0215372387, 0.3395833671, 0.141206786, 0.0733015388, 0.121714361, 0.3094640076, 0.3474086523, -0.3580641448, -0.0697830692, 0.1916175634, 0.1663689017, -0.2413715273, -0.586566329, 0.1394338906, -0.0614258274, 0.0212545414, 0.7402991056, -0.6871578693, -0.0097414786, 0.030659005, 0.2126386464, 0.7318966389, -0.1772027016, -0.0073232115, -0.2439950705, -0.1093550399, -0.0284230039, -0.6782633662, 0.2952969372, -0.3901475072, -0.3920978606, 0.0123795401, -0.0111215655, -0.0493863449, 0.3122452497, -0.1722315699, 0.0835743174, 0.442343086, 0.1314243525, -0.0283048935, 0.5326046348, -0.1827598959, -0.4784122109, 0.1902932078, 0.100715071, -0.1842091084, -0.069059968, -0.0500685386, -0.2347415239, 0.4787384272, 0.1893512309, -0.3163775206, -0.1800214797, -0.3334518075, 0.2092459947, -0.1788117588, -0.1591264755, 0.1755999476, 0.308912307, -0.0353319496, -0.2407431155, -0.1726008654, -0.0363510326, 0.1060290039, 0.1997061372, -0.2126332223, -0.20049496, 0.205283612, -0.1876518428, -0.3720926046, 0.1847061962, 0.0795231014, -0.7108384371, -0.1137463227, 0.1862835437, 0.2419990897, -0.0530628748, 0.0024894208, 0.1466774791, -0.3283700645, -0.0868973657, 0.0864286646, 0.1477683634, -0.2835682631, 0.3946525753, -0.1098796278, -0.0146182412, 0.0194645692, 0.2222326994, 0.2573189437, 0.1654964983, 0.1047625914, 0.1918556541, -0.1148467809, -0.157913357, -0.0795261785, -0.069236353, -0.2391887903, 0.135043025, 0.0412489139, -0.0697526708, -0.0137543743, 0.0260218028, -0.1451543421, 0.3203093112, -0.4574451149, -0.1812988371, -0.3838828206, -0.0492510088, -0.1282184124, 0.2407490909, 0.1523818821, 0.183539018, 0.2417334318, 0.2774108648, -0.3676073551, 0.0033952985, 0.0303828269, 0.1178159714, 0.3157607019, 0.0077407421, 0.0328886844, 0.1178873703, -0.0120737171, 0.1400617361, -0.2202544659, -0.2053063214, 0.0054280427, 0.1310356259, -0.0028319645, -0.1303898543, -0.1397246271, -0.3036535382, -0.4215176105, -0.2941893041, 0.3874072134, 0.0073463204, -0.1853872538, 0.150486052, 0.3489686251, -0.1714661121, -0.3820734918, 0.1257567704, 0.012714738, -0.0110704293, -0.1302941144, 0.1807021797, 0.1936527342, -0.0785645694, 0.1138292849, -0.0060944841, 0.4877410531, 0.0790148005, 0.2957890034, -0.0931204483, -0.0083849467, -0.0264300536, 0.5431424379, 0.0852584839, 0.0113998409, 0.0572851226, 0.1059927866, 0.238009572, -0.2243829221, -0.0963296518, 0.2588998675, -0.013398651, 0.3597096801, 0.0477934517, 0.1111510023, 0.2732595801, 0.2716711164, 0.0893561468, 0.0652725026, -0.6158902049, 0.1082557738, 0.0534310043, 0.0312711708, -0.0071791438, 0.1999311447, -0.0107483007, 0.1078582406, 0.1145012826, -0.0024116212, 0.4664045572, 0.3444428742, -0.0291094054, 0.4277686477, -0.1750668734, -0.1497744769, -0.2447574884, 0.0544219986, 0.2061461359, 0.1318282038, 0.3818691373, -0.1328713745, -0.312309444, -0.1352178603, 0.2957094908, -0.0832958817, 0.0801600218, 0.1402189434, -0.0916443095, 0.0491214953, 0.1167822033, 0.0031895924, 0.1527352631, 0.5788414478, 0.1417354792, 0.0299209598, -0.115449816, -0.1152564734, 0.1618233621, 0.4018130004, -0.1014017388, 0.0352480374, 0.260515511, -0.0876447558, -0.1865588278, 0.3738207221, -0.0114058005, 0.2288345695, -0.289034903, 0.3083410859, -0.194251433, 0.0493060835, -0.0616875105, 0.1305247247, 0.0310060475, -0.1848922521, 0.2718439996, 0.0862405598, -0.1359892339, 0.140052855, 0.0778837204, -0.0533228219, -0.1775750369, -0.0522573739, 0.16198048, -0.3829640448, 0.0948392674, -0.1358787119, -0.3094895184, -0.1989818513, 0.3970514834, -0.5590795875, -0.0172537062, -0.0677933171, 0.097118482, -0.0362349711, 0.5721185207, -0.0464661792, 0.1212592274, -0.162472561, -0.0892013386, -0.4362137616, 0.1404664218, 0.0510176718, 0.1698206514, 0.0484593846, 0.1633260548, 0.0967912897, 0.2467534244, 0.1776276827, -0.2321391702, 0.2296189666, 0.5826246142, -0.2657503188, 0.0082403617, -0.1866101474, 0.1839833707, 0.2505392134, -0.2351410985, 0.1752400249, -0.0001157996, 0.0779677555, -0.139490813, -0.1977130026, 0.2392977178, -0.118176043, 0.3051759899, -0.0323589072, 0.150486961, -0.1956102848, 0.1657875925, 0.0188935641, 0.1386986971, -0.2586945891, 0.1583969742, 0.4099113345, 0.2171964794, -0.1410981119, -0.2294484675, -0.4657686055, 0.1876066327, -0.2457250506, -0.0698336512, -0.0427024402, -0.0891585946, -0.1189172119, 0.1519984901, -0.0827872232, 0.4181880057, -0.0050675515, -0.172443077, -0.3620938659, -0.1471314877, 0.2909374833, -0.3971106112, -0.3432902098, -0.2164863944, 0.1205652505, 0.2122365832, 0.3054525554, -0.3281843662, -0.0952288434, 0.2278410792, 0.0935082585, -0.0681599006, 0.2993308902, -0.0034044045, -0.1540493071, -0.057460919, 0.0204735845, 0.1408082694, -0.183933571, -0.1861019284, -0.376165092 ]
https://github.com/huggingface/datasets/issues/2641
load_dataset("financial_phrasebank") NonMatchingChecksumError
Hi! It's probably because this dataset is stored on google drive and it has a per day quota limit. It should work if you retry, I was able to initiate the download. Similar issue [here](https://github.com/huggingface/datasets/issues/2646)
## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_allagree') ``` ## Expected results I expect to see the financial_phrasebank dataset downloaded successfully ## Actual results NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip'] ## Environment info - `datasets` version: 1.9.0 - Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6 - Python version: 3.7.10 - PyArrow version: 4.0.1
35
load_dataset("financial_phrasebank") NonMatchingChecksumError ## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_allagree') ``` ## Expected results I expect to see the financial_phrasebank dataset downloaded successfully ## Actual results NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip'] ## Environment info - `datasets` version: 1.9.0 - Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6 - Python version: 3.7.10 - PyArrow version: 4.0.1 Hi! It's probably because this dataset is stored on google drive and it has a per day quota limit. It should work if you retry, I was able to initiate the download. Similar issue [here](https://github.com/huggingface/datasets/issues/2646)
[ -0.1221616641, 0.2191511244, -0.078407377, 0.2884526253, 0.2203613222, 0.1347172856, 0.0658891574, 0.3310612738, 0.2095744461, 0.1821720004, -0.1414381266, 0.0533877052, 0.1674160063, 0.0750156567, -0.1415329278, 0.0439131409, 0.042703405, -0.0287594274, 0.0304530486, -0.1089904308, -0.103557542, 0.3996218443, -0.2143701166, -0.2048736215, -0.0571745001, 0.0271740127, 0.1256503761, 0.1493476629, -0.355509311, -0.1062430218, 0.3173009753, 0.2356399149, -0.0364060588, 0.4088570774, -0.0001165979, -0.1570464969, 0.2954361737, -0.0023203718, -0.3087730408, -0.4117235839, -0.3101621866, -0.5327079892, -0.0006330613, -0.1562371999, 0.1472097784, 0.2293885946, 0.1187413856, -0.0404395647, 0.1839255244, 0.256311059, 0.1976445317, 0.1766313314, 0.1544102728, -0.0672570392, 0.2356061488, -0.3061350584, -0.0442655385, 0.2061338425, 0.1339271516, 0.1396628618, -0.1116091907, 0.0986637995, -0.2409787327, 0.3398786187, -0.0248232577, -0.0569329001, -0.1054870039, -0.4350312948, 0.3071873784, 0.4293164611, 0.5019189119, -0.1383177787, -0.3338047862, -0.2137772888, -0.1314466298, -0.0050599631, 0.4133681059, 0.2254235893, -0.2224519998, -0.0487493947, -0.4026897252, 0.2127028853, 0.0522074923, 0.174232766, 0.0008498408, -0.078648746, -0.1465949416, -0.0958845466, 0.2525236309, -0.0932484791, 0.077814348, -0.3102552295, -0.0711328238, 0.2796263993, -0.3990391791, -0.0756752342, 0.04461658, 0.5124953985, 0.5575389862, 0.3724069595, 0.1555420607, 0.2275239974, -0.291659534, 0.0197753962, 0.1210931465, 0.2486975342, 0.0146074342, -0.1616900414, 0.2106143534, 0.4556144476, -0.0590559356, 0.1310696006, -0.0883603916, -0.0742757246, 0.5709369183, -0.0559000112, 0.0653931573, -0.5341387987, -0.3482500613, 0.444601059, -0.12517941, -0.1410444379, -0.0437683277, 0.2691245079, -0.25135535, 0.110962294, -0.0669108257, 0.1472851634, -0.0376439206, -0.1506906152, -0.2671845555, -0.0550953783, -0.1249771044, -0.0389057435, 0.2755369246, -0.4455496073, 0.3306752443, -0.0811801478, 0.222332105, -0.2022910267, 0.0439211614, -0.1592710614, -0.275652349, 0.2825684845, 0.1362629086, 0.2232762128, 0.0382250696, 0.0837551206, 0.0077713407, 0.0198637359, -0.2361139506, -0.11986278, 0.0956025943, 0.2120609581, -0.5457582474, -0.4264356792, -0.0918329433, -0.2004867494, 0.156983152, -0.064628087, -0.042972222, -0.0988636091, -0.2170906365, -0.2330786437, -0.0128976498, 0.2208423167, -0.1360919029, -0.0196836572, -0.1142554432, -0.0846796408, 0.4203271568, 0.3317058384, -0.0746124163, 0.0467759445, -0.1993376762, 0.3415530622, 0.2876548469, -0.0402508751, -0.8489013314, 0.2736239731, -0.0461515635, 0.3179978728, 0.1135815307, 0.0936850756, -0.0120976204, 0.0986145809, 0.0596020482, 0.2110906988, 0.0724115521, 0.1698854417, -0.1996622533, -0.3329528272, -0.0283885039, 0.1590506881, 0.0541047491, 0.1359465271, 0.1838506758, -0.0445340127, 0.2891628742, -0.0262767356, 0.0180040523, 0.2336858213, 0.2727538347, 0.2090259194, 0.1021461785, -0.2314195782, -0.36157915, 0.3223058283, -0.2195713073, 0.1002209559, -0.0158475824, -0.148696959, -0.3613631129, -0.2824740112, -0.1490220428, 0.130082339, 0.0898798406, 0.3411881626, 0.3992158175, 0.0405048542, -0.0459838398, 0.3040062189, -0.1290017664, 0.0751187876, -0.1407594383, 0.274992466, -0.034206707, -0.015984809, 0.0301265083, -0.0177683476, 0.1630054861, 0.0362787284, -0.1874522418, 0.2895478904, 0.2095120698, 0.1428239346, -0.0875203311, 0.2737725377, -0.1595002413, -0.0725642741, 0.0289919153, 0.4911873937, 0.1428549141, -0.0163488649, -0.1632609218, 0.3131428957, 0.0755076408, 0.0060958029, 0.0377294496, 0.1592746973, 0.3733703494, -0.1345328093, -0.082545042, -0.1518206149, 0.5095815659, -0.3409507275, 0.2042861134, 0.0117272688, -0.2768358588, -0.0628605038, 0.2434819639, -0.1203337684, 0.1307429522, 0.1853298694, 0.0470326059, -0.0759680122, -0.1524516791, 0.5569285154, 0.2706282735, 0.224867478, 0.1861104965, 0.0303608198, -0.069650948, -0.2190410048, -0.0496183336, 0.226903677, 0.1424942762, 0.5023205876, 0.2711749375, 0.0449597128, -0.4356446266, -0.0609105192, 0.0420995355, 0.327498585, -0.3210887015, -0.1184831932, -0.0740198046, -0.3158179224, -0.221923396, -0.1268128306, -0.1441177875, -0.4463296831, -0.1008803695, 0.346577704, 0.0165856443, 0.0658373684, -0.2468460351, 0.0564301424, -0.0425219834, -0.2394362241, -0.1359228194, 0.2502994537, -0.1967727989, 0.0108747995, 0.260463655, -0.0329328328, 0.3196413219, -0.391744256, -0.032617487, -0.7137259245, -0.2451631874, 0.0635806248, -0.2230639011, 0.237665683, 0.2862510085, 0.2511949241, -0.2726145089, 0.0126999505, 0.1277004033, -0.0658942237, -0.3835558593, 0.2892597616, -0.1202681288, 0.0041034208, 0.0760867819, 0.0091315769, -0.2212630808, -0.3392720222, 0.1055788696, 0.153575778, 0.1743024886, 0.3875108659, -0.1369952857, 0.0982938707, -0.0144527107, 0.4250250757, -0.2899430096, -0.5708986521, 0.5505205393, 0.1047239527, -0.4363675416, 0.0650430545, -0.0068894215, 0.0403070115, 0.2376913279, -0.5485624075, -0.1757599264, -0.4750023782, -0.0197930373, 0.206916213, 0.0863770768, 0.2451557368, -0.1192781851, -0.0731347501, -0.1427673995, -0.204053551, 0.1644189954, 0.0457210355, 0.2432694286, -0.2186840773, 0.3314569294, 0.0300986301, 0.2455590367, 0.4993489385, 0.2258812189, 0.362039119, -0.0157046076, 0.1015442088, -0.1246867105, -0.2068130821, -0.220938921, -0.1449074149, -0.1907989681, 0.2884584665, 0.0923219547, -0.0258493423, -0.1714095026, -0.2088145167, -0.3271819651, -0.0996694341, -0.0835733637, 0.0374355167, 0.2761642635, 0.2141873091, 0.1735146046, 0.023318667, -0.4117974639, -0.0359502621, 0.1915615797, -0.1432244927, -0.0861984268, -0.1249315888, 0.06699875, -0.1941165626, 0.3062370121, 0.2048942745, 0.3132772744, 0.0918785557, -0.0567608252, 0.0808623433, -0.1370031536, 0.2350172102, -0.3195797205, 0.2417846769, -0.1173864752, -0.0975529328, -0.0400495641, -0.1346801668, -0.1839418411, -0.0066519706, 0.1781336665, 0.2111275643, -0.3331178129, 0.1802728176, 0.1622032672, 0.355517894, -0.0734449401, -0.2499944121, -0.3602522016, -0.3973372579, -0.4730680883, -0.0465528592, -0.0780731887, 0.2964991629, 0.0057760729, 0.0083066802, 0.123691164, -0.060905084, 0.334843725, -0.1178350747, 0.2964918315, 0.1444335729, 0.431088835, 0.0208032448, -0.252949506, 0.2428244799, 0.8506208062, -0.1115588471, -0.3002646565, -0.0208238084, -0.2596763372, -0.1827895194, 0.2945632935, -0.0698251724, -0.1580357403, 0.5602295995, -0.04595365, 0.0295532998, -0.1841434389, 0.2151614726, 0.1545519382, -0.3614546061, -0.3829714358, 0.2304230928, 0.1975790858, -0.0046772854, -0.0037392355, 0.0719224364, 0.0169112645, 0.2724885046, -0.0937045962, 0.8974528313, -0.0552459955, 0.1175895929, 0.1804944575, -0.0326112397, 0.2929915488, -0.1215181351, 0.0069581326, -0.3133255243, -0.3222326934, -0.1347278953, -0.160371691, -0.0290782861, 0.0732391924, -0.0866974741, 0.4799547493, -0.0798345506, 0.1357246935, 0.1839293838, 0.2583575547, -0.3799632192, 0.0149930436, -0.0880149007, 0.1443733573, -0.1540363729, 0.483638525, -0.0140656708, -0.0352431275, -0.19933635, -0.0697438195, -0.4931161106, 0.192333445, -0.1009214595, -0.0309273917, 0.1258206218, -0.0468097404, -0.0820198059, 0.1417161822, 0.3609251678, 0.2172039747, -0.3999873698, 0.091165036, 0.4621314406, -0.1197997034, 0.1616778374, -0.1688745171, 0.3982611001, -0.0886033028, -0.0883512273, 0.020361688, 0.0301735904, -0.2782292366, -0.1040681601, -0.1673217118, -0.2208612412, -0.437410146, -0.3119948506, -0.2206150591, -0.0220592283, -0.3384541273, 0.1484307051, 0.3153917789, -0.1170986071, 0.0452212505, 0.1356399655, -0.3526616991, -0.2894953787, 0.508267343, 0.0665681735, -0.2172292322, 0.400128752, 0.2137257904, -0.3720187247, -0.2060296535, -0.2480863035, 0.0154855875, -0.5568867922, 0.1028473899, -0.1460932791, 0.1439407468, -0.1928808987, 0.6873802543, 0.3661988974, 0.069799155, 0.0478506759, -0.5624494553, -0.0862550214, 0.0078370599, 0.1924953014, 0.2684267163, -0.1106656119, -0.194005549, 0.1182289273, -0.3049824536, -0.308452785, 0.0951334238, -0.3677181304, -0.2362301201, 0.0257714987, 0.0456887484, 0.2157556862, -0.0252678208, 0.1524682492, 0.1220991462, -0.1302345097, -0.2290393114, -0.0952444449, 0.1270601451, 0.1071473062, -0.1345246881, 0.1926580518, -0.2410959303, -0.2747994065, -0.0860037729, -0.1077167615, 0.2322983444, -0.006430822, -0.0020666549, 0.4033740163, -0.0852803588, -0.075391911, -0.0103096943, -0.3013210893, 0.1477062702, 0.0498765819, 0.0464973226, 0.1096673757, 0.0157169867, 0.0190073736, 0.1012864932, 0.2976625562, -0.1261167973, 0.2856271267, -0.493349731, 0.0349992514, 0.3791497052, 0.4438384175, 0.3468150198, -0.3567603528, -0.1222537234, 0.2193130106, 0.2458250374, -0.3080708086, -0.0401919968, 0.1209116951, -0.1554647088, 0.0858021975, 0.18313618, 0.2804102302, -0.2571417093, 0.3184910417, 0.092377767, 0.3009258211, -0.138195172, -0.0575688295, 0.2769341171, 0.0487012379, -0.0406652763, 0.1509643495, -0.088010937, -0.2364581376, -0.0612557568, -0.0018631147, 0.1562163979, -0.1395243108, 0.2553446293, -0.3627966046, -0.4343449771, 0.5834095478, 0.2807841301, -0.107290715, 0.0108277034, 0.0934106484, 0.4049897194, 0.0636729971, 0.4803863764, -0.4838213027, 0.1242953241, -0.1419124305, -0.0481924489, 0.0856260732, -0.3457255661, -0.0336676762, 0.259973973, -0.1245322004, -0.0538143441, 0.1761938632, 0.0260401685, -0.0661998242, -0.5886384845, -0.2144333273, 0.0556662679, 0.0368918404, -0.3682447076, 0.3280422688, 0.0068319342, -0.1071481109, 0.1543097645, 0.5266041756, 0.4051479697, 0.2689423561, 0.0497502945, -0.0460615046, -0.1030212864, -0.0639668331, -0.1054769233, 0.7308721542, 0.0666668862, 0.1839330941, 0.4525196254, 0.1251129359, -0.2385045737, -0.1184501201, -0.1909354627, -0.1659151763, -0.2035479248, 0.5051547885, -0.0546080954, 0.3409981728, -0.2327010334, 0.0303857084, -0.5357774496, -0.2007473856, 0.1476439089, 0.0456342138, 0.1432323009, 0.0100592654, 0.0948283598, -0.1558019221, 0.2976530492, 0.4738082588, 0.3946790993, -0.2382067591, -0.1704330891, -0.7519155741, 0.2489971966, -0.2298060209, 0.0174107365, 0.0112720663, 0.2548753321, 0.0063319444, 0.1431938559, 0.2265386283, 0.1472437382, -0.2896077633, 0.0963927954, -0.0963001028, -0.1539230198, 0.1487317085, -0.0657909513, -0.1417072415, -0.2585194111, 0.2292402238, 0.0112277074, 0.0666426718, -0.0997961387, -0.0953954309, -0.1319230646, -0.0698077306, 0.1715169102, 0.0703997463, 0.702362895, -0.1001651734, -0.1950006187, -0.1363224983, -0.0615541302, -0.1964205354, 0.253949672, -0.0353174657, 0.372466296, 0.0276157986, -0.1068936288, -0.2079975456, 0.1193820536, 0.214157179, -0.3031128347, -0.2412965149, 0.0820642188, -0.2160593867, 0.1823355108, -0.1776262373, 0.0750408843, 0.1989728659, 0.2210658342, -0.1798104793, -0.4148390293, 0.5957763195, -0.1084752008, -0.196647048, -0.0364139192, 0.1348126978, 0.0660781786, -0.3253694177, -0.7558815479, 0.1723069847, 0.292222023, 0.0433013104, -0.3046835065, 0.2104221731, -0.2924989164, 0.1448928863, 0.0048217461, 0.3195836842, 0.1815310419, -0.2171663791, 0.0646397993, -0.1397778839 ]
https://github.com/huggingface/datasets/issues/2641
load_dataset("financial_phrasebank") NonMatchingChecksumError
Hi ! Loading the dataset works on my side as well. Feel free to try again and let us know if it works for you know
## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_allagree') ``` ## Expected results I expect to see the financial_phrasebank dataset downloaded successfully ## Actual results NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip'] ## Environment info - `datasets` version: 1.9.0 - Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6 - Python version: 3.7.10 - PyArrow version: 4.0.1
26
load_dataset("financial_phrasebank") NonMatchingChecksumError ## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_allagree') ``` ## Expected results I expect to see the financial_phrasebank dataset downloaded successfully ## Actual results NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip'] ## Environment info - `datasets` version: 1.9.0 - Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6 - Python version: 3.7.10 - PyArrow version: 4.0.1 Hi ! Loading the dataset works on my side as well. Feel free to try again and let us know if it works for you know
[ -0.1198335662, 0.1794099808, -0.0883816183, 0.3396990001, 0.1879687905, 0.1173867434, 0.0060674399, 0.3996657729, 0.1419465989, 0.1976888478, -0.1613842696, 0.2437269837, 0.2304035574, -0.1089785174, -0.0927742943, 0.1406146437, 0.133822009, 0.0298897363, 0.0345544443, -0.1668421775, -0.1839317232, 0.3492645025, -0.1968890727, -0.1531047076, -0.0255643688, 0.1277686208, 0.1105169952, 0.164716512, -0.2496970892, -0.1128348932, 0.3732025027, 0.1607761681, -0.0779851452, 0.4326269031, -0.0001198013, -0.1041964665, 0.2349773496, -0.0170197096, -0.2702704668, -0.3771177232, -0.4048725069, -0.5063530803, 0.0147820991, -0.1779723316, 0.1007491797, 0.2671574056, 0.1191743761, -0.0723107234, 0.0938148052, 0.1856917143, 0.1936354041, 0.1554290354, 0.048635792, -0.0412599705, 0.3124480546, -0.252699852, -0.0651910976, 0.1622198969, 0.1873313189, 0.1267404258, -0.2227672935, 0.1186724231, -0.3079534471, 0.3004413843, -0.0344959833, 0.0108133592, 0.0467393585, -0.326469928, 0.2752400339, 0.4079024196, 0.4325539768, -0.1871509254, -0.2944859266, -0.1738480479, -0.1533011347, -0.0023677158, 0.4001484811, 0.1629088223, -0.2278742194, -0.0463878438, -0.3922581971, 0.2648799419, 0.0528609343, 0.2153359205, 0.059029337, 0.0483921431, -0.060972359, -0.1191071644, 0.1370473206, -0.0754751787, 0.2253556252, -0.3740886748, -0.1097704917, 0.2610440254, -0.420671165, -0.0614457019, -0.0303057339, 0.5376827121, 0.5291839838, 0.353502214, 0.152207762, 0.2514330447, -0.2445681095, 0.0461462066, 0.0204783883, 0.2093224078, 0.0655856282, -0.0943782479, 0.124509789, 0.3872911632, -0.1391385049, 0.1805369407, -0.0368315205, -0.0456452742, 0.6784489751, 0.0181597192, 0.1439569443, -0.5884660482, -0.3368147314, 0.4549660385, -0.1517416835, -0.1199076697, -0.0062460424, 0.3078671396, -0.2831115127, 0.1685542911, -0.1050599366, 0.137882337, -0.0804606453, -0.1539838761, -0.2957544625, -0.1397241354, -0.150471285, -0.063283965, 0.2246825248, -0.3565537632, 0.335239917, -0.0515731573, 0.299282223, -0.1967779249, 0.0159074403, -0.1158533096, -0.1921082735, 0.2023259997, 0.0298569314, 0.2005930543, 0.154996708, 0.0597272627, 0.0133517738, 0.0879231393, -0.2705897391, -0.1324608475, 0.110884428, 0.2053997666, -0.5836594105, -0.3937795758, 0.0451777354, -0.2672807574, 0.2497828156, -0.1411279887, 0.0544543713, -0.1093121246, -0.2154651433, -0.2687778175, -0.0199841931, 0.1369313002, -0.1675183326, -0.0077666184, -0.0942449272, -0.1026166081, 0.5374267101, 0.2014994621, -0.0416982844, 0.0285326727, -0.2054147124, 0.2833957374, 0.3906705976, -0.1673760563, -0.8798965812, 0.2597628832, -0.0273196455, 0.4781271517, 0.1399355531, 0.1600448787, -0.0521170907, 0.0658210516, 0.1036424786, 0.1195329949, 0.0777684301, 0.1902893633, -0.247444883, -0.3442918062, 0.039446827, 0.1539604515, 0.0443248935, 0.1407006532, 0.1851332188, -0.0210839026, 0.3947172761, -0.0458303839, -0.0327069983, 0.0945947543, 0.3341776729, 0.2300526202, 0.1512163132, -0.3137419522, -0.3739697337, 0.3189919591, -0.2645703554, 0.0681859553, 0.0149741462, -0.1703308821, -0.3815484643, -0.2504172623, -0.2797917128, 0.1239092797, 0.0768751353, 0.3769247532, 0.3604222834, -0.0117448214, -0.0419713706, 0.3240386844, -0.093308419, 0.1179430634, -0.1803280413, 0.2804038525, 0.0320097879, -0.0506401099, -0.128496021, 0.0905667692, 0.192234531, 0.1100521311, -0.247399196, 0.3598937988, 0.2414755076, 0.0673888698, -0.1680868715, 0.2145633996, -0.1735950708, -0.1560678929, -0.0303701442, 0.5238758326, 0.108273901, -0.0023806738, -0.0148321362, 0.2883143723, 0.0723010227, 0.0380461402, -0.043989528, 0.0857011452, 0.3262715638, -0.1612971276, -0.0934865922, -0.2017484009, 0.496255517, -0.4073311687, 0.1981087923, 0.0379777849, -0.2952639759, -0.0991545394, 0.1828977019, -0.1132808104, 0.1603104919, 0.1191872805, 0.024936188, -0.0544472858, -0.1000169292, 0.542345047, 0.3044377267, 0.2119984627, 0.1004112661, 0.1059394702, -0.1225010306, -0.1714087129, -0.0072756759, 0.2283164859, 0.2661943436, 0.5490407944, 0.2414596081, 0.0022516409, -0.4095117748, -0.0301399734, -0.0552830771, 0.2440394163, -0.4301235378, -0.099707976, -0.1695821732, -0.3729842007, -0.2735747993, -0.2497569919, -0.1284103692, -0.4585259259, -0.0836521089, 0.2773180902, 0.0546668656, 0.1180559173, -0.3774231076, -0.0120093785, -0.0948296338, -0.2251134068, -0.1511169374, 0.2100320756, -0.1957800984, -0.0154233808, 0.1645878404, -0.0427264795, 0.252628386, -0.411734283, 0.0165242795, -0.6264843941, -0.2493330687, 0.0706536099, -0.1580813229, 0.2078710049, 0.3840279281, 0.1392317563, -0.2632395923, -0.0744716376, 0.2209403068, -0.0393372513, -0.3720574975, 0.34365803, -0.0934951529, 0.0148340957, 0.128703028, -0.0040659453, -0.2322085202, -0.2908136845, -0.0185988676, 0.1010553613, 0.2270293683, 0.3653248549, -0.1820602715, 0.0977609754, -0.1169123352, 0.497790128, -0.2711400688, -0.5762330294, 0.5287804008, 0.1319568157, -0.3189796805, 0.0123402346, -0.0178966112, 0.0606253818, 0.279404968, -0.5194584727, -0.1023499742, -0.3720168471, -0.0292395782, 0.1933090091, 0.0693055689, 0.1819202602, 0.0034620422, -0.054521516, -0.2112660259, -0.1410181224, 0.1383911222, -0.0830826461, 0.3895274997, -0.282210052, 0.2959483862, 0.0198222138, 0.2290987819, 0.5105572343, 0.2102245986, 0.2790658474, -0.0221375823, 0.0786333308, -0.1357041299, -0.2530150414, -0.359115988, -0.0960390344, -0.2027603537, 0.2613116801, 0.0672071204, -0.0426022299, -0.1346846223, -0.1588934064, -0.3620483577, -0.1007309854, -0.1116909534, -0.1078891307, 0.2217811048, 0.2286429852, 0.1920688748, -0.0074414634, -0.4660683274, -0.0560880527, 0.1957434565, -0.2219419926, -0.1190175861, -0.1878311038, 0.0527468063, -0.0519202575, 0.3516173959, 0.2311100364, 0.3435092866, 0.1457468122, -0.1631281227, 0.0708226115, -0.1249525547, 0.2933346033, -0.3399791121, 0.2645271719, -0.0913931727, -0.1360710263, -0.0874285176, -0.1689927727, -0.1418352723, 0.0066419132, 0.197994858, 0.2709616125, -0.2072633803, 0.1520742774, 0.1595968008, 0.3525721729, -0.1252572834, -0.3678176701, -0.4135628939, -0.2623335421, -0.3545674384, -0.1133567989, -0.2403359562, 0.3150266707, 0.0603454709, -0.0413847826, 0.1093558446, -0.0521600395, 0.4151341319, -0.0601407662, 0.3245255053, 0.0494063571, 0.4183499813, -0.0234103035, -0.1006493941, 0.2492773831, 0.7642992139, -0.1491097063, -0.4221659601, -0.1268506348, -0.2571387887, -0.0364701711, 0.2482254654, -0.1150082201, -0.1268872619, 0.534165442, -0.1608299166, 0.0693542585, -0.2341208309, 0.1269023716, 0.1964583546, -0.3661152124, -0.3686057329, 0.1963641346, 0.1817588657, -0.0542319864, -0.0333047472, -0.0174970552, -0.0665108785, 0.3405208886, -0.0597456768, 0.9199493527, 0.0424165614, 0.1259318292, 0.1951047182, -0.0516664311, 0.3047738075, -0.1051318571, 0.020301573, -0.3845818341, -0.3679978549, -0.1337036788, -0.2327863127, 0.0154210208, 0.0759783834, -0.0633780137, 0.4916329384, -0.1382282227, 0.0897131786, 0.1643396616, 0.0708206519, -0.274776727, 0.0489213653, -0.0806937739, 0.1188896522, -0.204460606, 0.4700172544, -0.0599917173, 0.0378527828, -0.2523481548, -0.0325146466, -0.388263315, 0.3136292696, -0.090041399, 0.0068347268, 0.1810777038, -0.0599021092, -0.1171377227, 0.2041876018, 0.3489332199, 0.2161976993, -0.3388769925, 0.0361067243, 0.6333320737, 0.0288184099, 0.255276382, -0.1395579726, 0.3817411959, -0.0319740847, -0.1542732567, 0.0370165259, 0.0370305143, -0.3310630918, -0.0266517159, -0.2256551385, -0.0555971749, -0.4416369498, -0.3367227614, -0.2361736, 0.0836619884, -0.3581354618, 0.1454235017, 0.2794806957, -0.191057086, 0.104803361, 0.0902282596, -0.4249241948, -0.1986411959, 0.5109452009, 0.1301187724, -0.2581570148, 0.3898134232, 0.1299090087, -0.3723616004, -0.1800107658, -0.1882394552, -0.0007798455, -0.5864363313, 0.0053131026, -0.1609654576, 0.1322833598, -0.1549682468, 0.6723009348, 0.4406672418, 0.0752773657, 0.0322015546, -0.512088716, -0.1179991215, 0.0460901633, 0.2858416736, 0.2809040546, -0.0923955441, -0.2369230241, 0.0420578569, -0.3204144239, -0.2894462645, 0.0279526133, -0.309194237, -0.1901142299, -0.1275559068, 0.1389644146, 0.1591066122, -0.0235692002, 0.1628991365, 0.1089342833, -0.1183579639, -0.2295141518, -0.0552686304, 0.1434464157, 0.1118169725, -0.1579222828, 0.1640967131, -0.1574896723, -0.1348264366, -0.1007240191, -0.1353990138, 0.2522685528, 0.0209839251, 0.1265064925, 0.4397987425, -0.0466281995, -0.1041769758, 0.0049410136, -0.334520191, 0.1264842749, 0.0096748183, -0.0096274065, -0.0194079578, -0.0256757084, 0.0981445238, 0.1202704534, 0.2992768288, -0.0745696798, 0.3204856813, -0.5192995071, 0.040826045, 0.441357702, 0.3220760524, 0.3290509284, -0.3597912192, -0.1625897139, 0.18905209, 0.2422228307, -0.3330812156, -0.0266632214, 0.1844202727, -0.1138403416, 0.0457813144, 0.2178557813, 0.2019943744, -0.3238895237, 0.3665143847, 0.052134756, 0.3090811372, -0.1789855957, 0.037673641, 0.4241365194, 0.0263645723, 0.0111827832, 0.080649294, -0.1289931089, -0.2466050237, -0.0109650278, 0.0656308755, 0.2367642522, -0.0883419067, 0.2106249332, -0.3246670663, -0.368519187, 0.5605861545, 0.2961849868, -0.1180596277, 0.008645812, 0.1643834263, 0.4116298556, 0.1224040762, 0.4931633472, -0.4444054663, 0.0553324148, -0.176274538, -0.0625824854, -0.0243958812, -0.3048770726, 0.0143935373, 0.1418549716, -0.2141319662, 0.0696993545, 0.1698766798, 0.0180700347, -0.0291248187, -0.5382278562, -0.1806328446, 0.0753894448, 0.0018889414, -0.3647795916, 0.3437755406, 0.0476114117, -0.0740756765, 0.1884779334, 0.5166018009, 0.3630855083, 0.3304817677, 0.057222642, -0.1468571872, -0.1063452736, -0.045308318, -0.1067152917, 0.7710253596, 0.0892900899, 0.1964204758, 0.4270023108, 0.1217724085, -0.2061085254, -0.0785391703, -0.0745923668, -0.1373125315, -0.0980082452, 0.6256075501, -0.0283870324, 0.3117577434, -0.1254246235, 0.08713907, -0.5139369965, -0.1703628153, 0.2215818167, 0.116629906, 0.1453153789, 0.0713299885, 0.0824282914, -0.119896248, 0.2320907712, 0.4119340777, 0.3059857488, -0.2828149199, -0.1840684712, -0.7421240211, 0.3818670511, -0.146001175, 0.0460469835, 0.0320159607, 0.2192145437, 0.0551560707, 0.1389519572, 0.2569923997, 0.055232197, -0.3129651845, 0.1226781458, -0.0873491541, -0.1740029156, 0.1411594003, -0.0759261176, -0.1713543683, -0.290974915, 0.2007519156, 0.1011781469, 0.0787931308, -0.0870431438, -0.1461334527, -0.0750289932, -0.0425872654, 0.1597320586, 0.0204744246, 0.6913186312, -0.0852559581, -0.1843105108, -0.0807617307, -0.1366757154, -0.1403533965, 0.3539605439, -0.0689120144, 0.3379171789, 0.0062353192, -0.0303948671, -0.1603724211, 0.006934687, 0.2029077858, -0.404720962, -0.294722259, 0.1081535071, -0.1863505989, 0.1158691943, -0.1977021992, 0.0692209527, 0.1868563294, 0.3272364438, -0.1260379106, -0.3980072439, 0.6327149868, -0.1071641445, -0.2257052958, -0.0875338092, 0.1851275712, -0.0624417365, -0.2896816134, -0.7371845245, 0.0527090915, 0.3887307942, 0.0558812544, -0.2227692455, 0.1716942936, -0.2935405374, 0.1815586537, -0.019017376, 0.2885157466, 0.1767712682, -0.1869169325, 0.0473234355, -0.2415456027 ]
https://github.com/huggingface/datasets/issues/2641
load_dataset("financial_phrasebank") NonMatchingChecksumError
Thank you! I've been trying periodically for the past month, and no luck yet with this particular dataset. Just tried again and still hitting the checksum error. Code: `dataset = load_dataset("financial_phrasebank", "sentences_allagree") ` Traceback: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-2-55cc2144f31e> in <module> ----> 1 dataset = load_dataset("financial_phrasebank", "sentences_allagree") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs) 859 ignore_verifications=ignore_verifications, 860 try_from_hf_gcs=try_from_hf_gcs, --> 861 use_auth_token=use_auth_token, 862 ) 863 /opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 582 if not downloaded_from_gcs: 583 self._download_and_prepare( --> 584 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 585 ) 586 # Sync info /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 642 if verify_infos: 643 verify_checksums( --> 644 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" 645 ) 646 /opt/conda/lib/python3.7/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 38 if len(bad_urls) > 0: 39 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 41 logger.info("All the checksums matched successfully" + for_verification_name) 42 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip'] ```
## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_allagree') ``` ## Expected results I expect to see the financial_phrasebank dataset downloaded successfully ## Actual results NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip'] ## Environment info - `datasets` version: 1.9.0 - Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6 - Python version: 3.7.10 - PyArrow version: 4.0.1
174
load_dataset("financial_phrasebank") NonMatchingChecksumError ## Describe the bug Attempting to download the financial_phrasebank dataset results in a NonMatchingChecksumError ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("financial_phrasebank", 'sentences_allagree') ``` ## Expected results I expect to see the financial_phrasebank dataset downloaded successfully ## Actual results NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip'] ## Environment info - `datasets` version: 1.9.0 - Platform: Linux-4.14.232-177.418.amzn2.x86_64-x86_64-with-debian-10.6 - Python version: 3.7.10 - PyArrow version: 4.0.1 Thank you! I've been trying periodically for the past month, and no luck yet with this particular dataset. Just tried again and still hitting the checksum error. Code: `dataset = load_dataset("financial_phrasebank", "sentences_allagree") ` Traceback: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-2-55cc2144f31e> in <module> ----> 1 dataset = load_dataset("financial_phrasebank", "sentences_allagree") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, script_version, use_auth_token, task, streaming, **config_kwargs) 859 ignore_verifications=ignore_verifications, 860 try_from_hf_gcs=try_from_hf_gcs, --> 861 use_auth_token=use_auth_token, 862 ) 863 /opt/conda/lib/python3.7/site-packages/datasets/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 582 if not downloaded_from_gcs: 583 self._download_and_prepare( --> 584 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 585 ) 586 # Sync info /opt/conda/lib/python3.7/site-packages/datasets/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 642 if verify_infos: 643 verify_checksums( --> 644 self.info.download_checksums, dl_manager.get_recorded_sizes_checksums(), "dataset source files" 645 ) 646 /opt/conda/lib/python3.7/site-packages/datasets/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums, verification_name) 38 if len(bad_urls) > 0: 39 error_msg = "Checksums didn't match" + for_verification_name + ":\n" ---> 40 raise NonMatchingChecksumError(error_msg + str(bad_urls)) 41 logger.info("All the checksums matched successfully" + for_verification_name) 42 NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://www.researchgate.net/profile/Pekka_Malo/publication/251231364_FinancialPhraseBank-v10/data/0c96051eee4fb1d56e000000/FinancialPhraseBank-v10.zip'] ```
[ -0.1219039708, 0.2504357994, -0.0632825419, 0.3291989267, 0.1633205563, 0.1306017339, 0.0294304229, 0.3981848061, 0.1042742431, 0.1001081094, -0.237029925, 0.2519071102, 0.2408211976, -0.180886507, -0.1394714266, 0.1404774636, 0.1074731424, 0.0431748442, -0.0138182454, -0.0908907205, -0.1074015796, 0.2812156081, -0.2145472914, -0.2022113055, -0.0256865751, 0.0863929316, 0.1104900837, 0.0720110163, -0.2658266723, -0.1348886192, 0.4920261502, 0.1678608805, -0.0726742446, 0.4778308272, -0.0001244328, -0.0519943535, 0.2715743184, -0.0486341305, -0.3567807674, -0.3707870841, -0.4534244239, -0.466219753, -0.0433721095, -0.2014848441, 0.1378685683, 0.3529549241, 0.144514963, -0.12618801, 0.0545095578, 0.1745296419, 0.1397492141, 0.2478653491, 0.1467758268, 0.0349863134, 0.2998350859, -0.1909595579, -0.1134897321, 0.2703518569, 0.14605847, 0.0511560999, -0.207722351, 0.1088069677, -0.3613059819, 0.3707384765, -0.0008350916, 0.0689158887, 0.0588343926, -0.2889935672, 0.2137652338, 0.3574344516, 0.4351553917, -0.2187330425, -0.365090549, -0.123995766, -0.208468616, -0.0463216379, 0.4173540175, 0.164784193, -0.283115238, -0.0629981905, -0.4683910012, 0.2776021957, -0.0092774695, 0.2345029861, 0.0326495804, 0.0620341189, -0.0185132064, -0.0787272751, 0.1915030628, -0.0618737005, 0.2658659816, -0.3590573967, -0.0391858481, 0.2633776665, -0.4160852432, -0.1000158638, -0.0744053945, 0.4421432316, 0.4887327254, 0.4190537632, 0.1808797866, 0.1608911902, -0.1823397726, 0.0954615995, 0.050900735, 0.1860756427, 0.0430601574, 0.0192636251, 0.1798641086, 0.4134497643, -0.1069432944, 0.1626022607, -0.0692648143, -0.0316088051, 0.7316471934, 0.0094841486, 0.2204510421, -0.6202274561, -0.3789456487, 0.4553828239, -0.1631375253, -0.1740154773, 0.0485572182, 0.2002507746, -0.3129515052, 0.1997938603, -0.0601882935, 0.0835549533, -0.0794083774, -0.1734061688, -0.226570487, -0.0589111149, -0.1227231398, 0.0320249014, 0.3139740229, -0.3250135779, 0.3017098904, -0.0585970953, 0.3189173043, -0.1349215508, 0.1294149309, -0.1472212523, -0.1777922213, 0.3243796527, -0.0608406365, 0.190053001, 0.1779839396, 0.0699720457, -0.1106022894, 0.1508005708, -0.215725109, -0.144910112, 0.0084858891, 0.1288295835, -0.6136753559, -0.3836395144, 0.0747275949, -0.4171577096, 0.3301469684, -0.2364792526, 0.0597678423, -0.1355569065, -0.2099691927, -0.2326624244, 0.022401711, 0.186760515, -0.1150828525, 0.0642108396, -0.1237893254, -0.0815358609, 0.5374078155, 0.2021664381, -0.0115688695, 0.0198318101, -0.1981374919, 0.1501951218, 0.2272738665, -0.1579651237, -0.8371686935, 0.2042018026, 0.0438022688, 0.5060793757, 0.1131727844, 0.1906836182, -0.0519393869, 0.0921695754, 0.165884003, 0.0820411667, -0.0265885517, 0.0848584771, -0.2368453741, -0.3326882124, 0.1446267813, 0.2096132934, 0.0511386953, 0.1455375999, 0.1411497593, 0.0321553275, 0.2999109626, -0.0340314023, -0.0117763057, 0.0532305874, 0.4530858397, 0.1720780581, 0.0931847841, -0.363153249, -0.4774760306, 0.2887387872, -0.1649101079, 0.0705625489, -0.0916774645, -0.0877335295, -0.3856805563, -0.2757386267, -0.2165608555, 0.1742724329, 0.0195611008, 0.3824872375, 0.3753989637, -0.067504935, -0.0457650609, 0.4224550724, -0.1418424845, 0.110759221, -0.2753639221, 0.3411239684, -0.0082151741, -0.0534483008, -0.0830923319, 0.0514115989, 0.1445266604, 0.0604138523, -0.2113296986, 0.3504086137, 0.2670075893, -0.0531183556, -0.1756031066, 0.2846340239, -0.1455769092, -0.1669673771, -0.0429788232, 0.5265862346, 0.0918028653, -0.0179369207, -0.0586443506, 0.3515950739, -0.024047818, 0.0481228977, -0.06882222, 0.1417026371, 0.355828464, -0.1717814356, -0.1814338863, -0.156963259, 0.5086337924, -0.2532770932, 0.1340860873, 0.0424637087, -0.2152331322, -0.1337841898, 0.1059002653, -0.125806734, 0.1081805676, 0.1274549067, 0.1138326451, -0.0263648145, -0.0446382314, 0.4975661635, 0.3507779241, 0.1526300311, 0.1489659697, 0.1117482707, -0.2153274566, -0.0640218407, -0.0453856327, 0.1830277145, 0.2811227739, 0.5960561633, 0.2287653834, 0.0227123257, -0.3897042871, -0.1636654288, -0.0485494919, 0.3402167261, -0.4080114067, -0.058337301, -0.2477995604, -0.2078675181, -0.2976735532, -0.3445232213, -0.2360519022, -0.4660620987, -0.1171727329, 0.45180583, 0.0896140188, 0.1947255582, -0.5383245349, 0.0194813944, -0.0496499352, -0.3143509924, -0.1638917476, 0.1301633865, -0.1365332305, -0.0599618852, 0.3283938468, -0.0334941559, 0.2559364736, -0.4378317893, 0.0011315062, -0.5693758726, -0.3058419228, -0.0112472083, -0.0950183421, 0.2326524705, 0.3062503636, 0.1937241554, -0.2337456495, -0.2111415416, 0.1895797551, -0.003603416, -0.3972531557, 0.346993506, -0.1643627882, 0.0363669097, 0.134814024, -0.0390875563, -0.1930675209, -0.2375829369, -0.0209740065, 0.1128812358, 0.2617202401, 0.383179456, -0.1477778703, 0.1182787195, -0.1250496507, 0.5495764613, -0.2225154936, -0.6153050065, 0.614875257, 0.1510249823, -0.2769511044, 0.0600508451, -0.043941047, 0.1141603962, 0.3257287443, -0.5195679665, -0.1178136542, -0.3152970374, -0.0033043756, 0.1880889535, 0.0336292982, 0.1843612939, -0.0221020468, 0.0029330193, -0.163847357, -0.22385028, 0.1285648495, -0.0007639691, 0.4240908623, -0.2705942094, 0.2751896381, 0.012868125, 0.2359666824, 0.5632452965, 0.1702880859, 0.1899769753, 0.0112492517, 0.1286742538, -0.1215767115, -0.2859443724, -0.3453658521, -0.1348687261, -0.2140857875, 0.1119890213, 0.0240024999, -0.0919809565, -0.1786993444, -0.1164297312, -0.2810488343, -0.1257555932, -0.0735260248, -0.1298162788, 0.2713860869, 0.1732878834, 0.1204110011, -0.086136058, -0.4792509973, -0.0838755146, 0.27067101, -0.2183158547, -0.0733838528, -0.1870014369, 0.0389390439, -0.0228252076, 0.3018490076, 0.2446887642, 0.5021723509, 0.139209047, -0.149516806, 0.0045428192, -0.1419412643, 0.2533040047, -0.2825844288, 0.2747725844, 0.0071259318, -0.1487608105, -0.0293893218, -0.1878374964, -0.1596638709, 0.0067627383, 0.2366040796, 0.3087528348, -0.263710767, 0.1630426645, 0.2867016196, 0.3816691339, -0.0785213187, -0.3503818214, -0.4151213765, -0.2587957382, -0.3248913586, -0.0434843898, -0.1886051297, 0.3431870937, 0.1090605408, 0.0063235876, 0.0852997527, -0.0185560398, 0.4009566307, -0.005348559, 0.23462376, 0.0873074979, 0.4733596146, 0.0183098242, -0.1044887677, 0.2621969283, 0.7463163137, -0.1263429523, -0.3905004859, -0.0601695552, -0.2182454169, -0.0893030763, 0.1572817266, -0.0247591026, -0.1962780505, 0.5755332708, -0.2040043771, 0.0969354883, -0.2935266197, 0.0606859364, 0.1835066974, -0.4045856297, -0.3151390254, 0.1746525466, 0.1504542083, -0.0043043084, 0.1125731096, -0.0374622345, 0.0185134318, 0.19665052, 0.045296099, 0.9319774508, 0.0543328784, 0.0852786526, 0.1511657834, -0.1225952581, 0.1917185485, -0.0383275896, 0.0385140628, -0.32485798, -0.3994269371, -0.1422885805, -0.2868810892, 0.15568313, 0.0419331565, -0.0673466921, 0.4279147983, -0.0480774045, 0.1722874045, 0.1531154215, -0.0004000074, -0.248152256, 0.0684648007, -0.0544431433, 0.0903513953, -0.2329607159, 0.4803931713, -0.0346049368, 0.0329110771, -0.2976824641, -0.0550478846, -0.4033451378, 0.2658829093, -0.0128097543, 0.0464145355, 0.3049309254, -0.0883249342, -0.0986068398, 0.0667987913, 0.3115850687, 0.0923190936, -0.337829113, -0.049736727, 0.5200310349, 0.0160232726, 0.2511175275, -0.1807619631, 0.379657954, -0.0339454934, -0.1229575872, 0.053333465, 0.0545156933, -0.4156989455, 0.1536203772, -0.2063109726, -0.0717371479, -0.3756572306, -0.2514217496, -0.1947634816, 0.1044770256, -0.3385733068, 0.1092134193, 0.2938657701, -0.1672354788, 0.131490171, 0.0317730494, -0.3552620411, -0.1696761101, 0.5675470233, 0.1759829372, -0.3029546142, 0.3590072095, 0.0606703088, -0.4059324563, -0.143784523, -0.1519135535, -0.1260747463, -0.5568311214, 0.0036303217, -0.226016894, 0.2084528804, -0.1619076431, 0.556260705, 0.4231034219, 0.0605464205, 0.0963712111, -0.5787782073, -0.1846331358, 0.0521539375, 0.2902793586, 0.3282402158, -0.2014437169, -0.1680798382, 0.0361438505, -0.2816248238, -0.2290262878, 0.0165983364, -0.3228541613, -0.1437459886, -0.1001373529, 0.0894569382, 0.1147093326, 0.0107993046, 0.1213108301, 0.0876621529, -0.1428937316, -0.151872173, -0.1098080948, 0.1690674871, 0.1186795086, -0.1569388062, 0.2470407337, -0.1336452067, -0.135023132, -0.0956211165, -0.2308691144, 0.2656267285, 0.0039489656, 0.1658154726, 0.4067263305, -0.0667613596, -0.1009626091, -0.0175444372, -0.3136408627, 0.0998435467, 0.0851506665, 0.06010722, -0.0241165068, 0.0018702601, 0.1025779769, 0.1002928466, 0.1374371201, -0.1723909378, 0.3762360513, -0.4806799889, 0.0395817608, 0.4147233367, 0.3139622808, 0.4134085476, -0.2964342237, -0.1443819553, 0.2171412706, 0.1816914231, -0.3661002219, -0.0208085999, 0.305740267, -0.0886871293, 0.0459726974, 0.2180386633, 0.0981331393, -0.4027278125, 0.506295085, 0.0732103065, 0.2739265859, -0.2543125153, 0.0885762945, 0.4516229033, 0.0508756749, -0.0288514905, 0.1816986948, -0.1374538094, -0.1385572702, -0.0538747944, 0.0023305283, 0.1581177413, -0.1749136746, 0.2445429116, -0.3738254607, -0.3313353956, 0.4353529215, 0.3104017973, -0.0227358043, 0.0182376653, 0.1479923427, 0.3204092383, 0.0382737704, 0.4804669619, -0.4871771932, 0.0208972152, -0.1371548623, -0.0031389173, -0.1264346838, -0.3061622381, -0.0127938176, 0.1861978322, -0.1569748968, 0.0500199459, 0.3224603534, 0.0631823093, -0.0963129327, -0.5983763337, -0.1321248859, 0.0831594169, -0.0296672639, -0.3643828332, 0.348751545, 0.0935671479, -0.1344632804, 0.1059625223, 0.4878090918, 0.3832369149, 0.3555284441, 0.1230696067, -0.0582433641, -0.125944078, -0.0571522303, -0.0442969501, 0.8251376152, 0.063178651, 0.1144648045, 0.3569467664, 0.0808131471, -0.1470835507, -0.0094994809, -0.1333684325, -0.220253095, -0.0671077445, 0.660543263, 0.017866265, 0.278840214, -0.052564837, 0.0635828674, -0.3988304436, -0.2211652845, 0.170447588, 0.1211576983, 0.0941236466, 0.1547726095, 0.0418642983, -0.1778079867, 0.2235857248, 0.3849762082, 0.2284826785, -0.3141388595, -0.2495041192, -0.8176965714, 0.3130853474, -0.2140872478, -0.0132975727, 0.1057876796, 0.2192130536, 0.0326822251, 0.2004252821, 0.2210350633, -0.083179377, -0.2814388871, 0.1178939417, -0.1038768291, -0.184838444, 0.1755460799, -0.0894718096, -0.1763823479, -0.30683586, 0.1846025437, 0.1732801795, 0.0328214839, -0.0366831981, -0.1215735376, -0.0129541242, 0.1075288802, 0.0982148647, 0.0058040791, 0.7441561818, 0.0030065991, -0.2014532387, -0.1133374572, -0.1136910766, -0.1094556749, 0.3623206019, -0.0614573956, 0.3728076816, -0.0001262895, -0.0332113765, -0.1979243755, 0.1834512055, 0.1207967624, -0.416677475, -0.2454319596, 0.14119789, -0.2058521807, 0.1800932586, -0.2665819824, 0.0322951525, 0.1959615946, 0.4007237554, -0.2157139778, -0.3244048953, 0.6163963675, -0.1873250008, -0.2334503531, -0.0866208971, 0.1230191067, -0.2233280391, -0.2645159066, -0.7100596428, 0.0879511535, 0.4004309475, 0.0140681313, -0.2292501777, 0.2437375933, -0.283146292, 0.1963928491, -0.0241501369, 0.4023308158, 0.1048549786, -0.2167250067, 0.004747862, -0.2092562765 ]
https://github.com/huggingface/datasets/issues/2630
Progress bars are not properly rendered in Jupyter notebook
To add my experience when trying to debug this issue: Seems like previously the workaround given [here](https://github.com/tqdm/tqdm/issues/485#issuecomment-473338308) worked around this issue. But with the latest version of jupyter/tqdm I still get terminal warnings that IPython tried to send a message from a forked process.
## Describe the bug The progress bars are not Jupyter widgets; regular progress bars appear (like in a terminal). ## Steps to reproduce the bug ```python ds.map(tokenize, num_proc=10) ``` ## Expected results Jupyter widgets displaying the progress bars. ## Actual results Simple plane progress bars. cc: Reported by @thomwolf
44
Progress bars are not properly rendered in Jupyter notebook ## Describe the bug The progress bars are not Jupyter widgets; regular progress bars appear (like in a terminal). ## Steps to reproduce the bug ```python ds.map(tokenize, num_proc=10) ``` ## Expected results Jupyter widgets displaying the progress bars. ## Actual results Simple plane progress bars. cc: Reported by @thomwolf To add my experience when trying to debug this issue: Seems like previously the workaround given [here](https://github.com/tqdm/tqdm/issues/485#issuecomment-473338308) worked around this issue. But with the latest version of jupyter/tqdm I still get terminal warnings that IPython tried to send a message from a forked process.
[ 0.1817371398, 0.0266525224, -0.0048843366, 0.056550622, 0.1184259281, -0.3483625352, 0.5567898154, 0.417384088, -0.2593961954, 0.0024574315, -0.2125668824, 0.6025976539, 0.2658940554, 0.1672157794, 0.0038400502, -0.2379226089, -0.1584529132, 0.1035000682, -0.3469717205, 0.0024840904, -0.2896268666, 0.1918030828, -0.2716620564, 0.3635054529, -0.4041289687, 0.0030338119, 0.0743727759, 0.0767614469, 0.1247891635, -0.4877856374, 0.101051122, -0.0711859912, 0.0366619825, 0.3372043371, -0.0001156703, -0.0285917521, 0.5814054012, 0.0483196191, -0.0534031615, 0.3121866286, 0.4811500013, -0.4962197244, 0.2921682596, -0.2768397033, 0.0297935084, -0.1636991054, -0.3128533959, 0.1014390588, 0.5365034342, -0.1144312248, 0.1887732446, 0.5778617859, 0.0724007115, 0.2014874667, 0.0623272099, -0.0967912897, -0.2323305011, 0.0826817304, 0.4364381433, -0.1705190688, -0.4072229266, 0.0862500891, -0.0827877596, 0.3567174375, -0.0489213169, 0.1682756394, 0.8467934132, -0.0950436369, -0.3010841906, 0.1756129414, 0.1570870131, -0.2217915356, -0.2138752192, -0.1908811927, -0.2720876336, -0.1241786927, -0.0247893929, -0.2117277831, -0.180139184, 0.0630748495, -0.3082979023, 0.1876827329, -0.0752100497, 0.0611599572, -0.2718211114, 0.0522358119, 0.0162741393, 0.0222462807, -0.4251680672, 0.0447072238, 0.2143159062, -0.0899432153, 0.0952507034, 0.0319860615, 0.0103434939, -0.1096739545, 0.1929794252, -0.2212167829, -0.1708806604, 0.0629814416, -0.132372573, 0.0801319256, -0.1984621435, 0.1380112022, 0.2272789031, -0.0242727865, 0.2722268403, 0.0318765081, 0.407974869, 0.1121730506, 0.0771006048, 0.0203982741, 0.1639780998, -0.1972357929, 0.1264158189, 0.2029947191, -0.012148601, -0.0115514416, -0.1646596044, 0.3339942396, 0.3537818789, 0.0827571452, 0.1300662309, -0.0598976985, -0.1128529459, -0.098569259, 0.1420912296, 0.2114594132, -0.1650142372, -0.3398205638, -0.045571167, -0.3156957924, -0.1131621972, -0.0326122008, -0.081902653, 0.5226354003, 0.2015718073, 0.1167477742, -0.0133674107, -0.0608448684, -0.0039566197, -0.0454568043, 0.1604147702, 0.2736177146, -0.1801849902, 0.0645643547, 0.3331305385, -0.2147264183, 0.1004188135, 0.4017115831, 0.001966354, 0.0147307971, -0.3248886168, 0.027135117, -0.3449069858, 0.2925202847, -0.3482391238, -0.2347098738, 0.3120611608, 0.0191088859, 0.0911076888, -0.499366045, 0.0704647824, -0.0417196304, 0.242824465, 0.2687728405, -0.5468888283, -0.3661726415, -0.2729975581, -0.1132062078, 0.582264483, 0.4652716219, 0.091321215, 0.3527904749, -0.0516457595, 0.0799939111, -0.0715073645, 0.0040800292, -0.3240095377, -0.0506804027, 0.0342348106, 0.3598091006, -0.2217025757, -0.1391577274, 0.5451208353, 0.0268422328, 0.2225215286, 0.1077179983, 0.2201518416, 0.0050673727, -0.5182208419, 0.1198146865, 0.1424680054, 0.0539520681, 0.2264512628, -0.041396834, -0.0760635212, -0.3514197469, 0.3787597418, 0.4695474505, 0.0613985248, -0.1032747477, -0.1235895753, 0.0379323512, 0.2085111141, 0.2291627079, 0.1162102968, 0.2249445766, -0.2089493275, -0.0343405902, 0.0795869008, 0.1317457855, -0.4423644245, 0.0988322422, -0.3059398532, -0.1415047944, 0.1749251187, -0.1771277189, -0.0869024247, 0.2503204346, 0.166576609, -0.1593328416, -0.0878701136, 0.0841877013, 0.244644627, 0.6247320175, 0.2298952192, -0.6264797449, 0.0758990571, 0.1546842009, -0.0475359596, 0.1062090695, -0.0996646807, 0.0255801845, 0.4109323621, -0.0742421597, -0.2628404796, -0.2066324502, 0.2479163855, 0.0921129137, -0.052758649, 0.6166583896, -0.1669974625, -0.0735860169, 0.265144825, 0.1080776975, -0.1507931948, 0.2166770548, -0.166882962, 0.3541100323, -0.0477509797, 0.0042003156, -0.1646631062, -0.0965931341, 0.0865283832, 0.0519814193, 0.1038383693, -0.2703278065, 0.2899267077, 0.2455769777, 0.2856423855, 0.059728004, 0.1261172891, -0.1084266976, -0.4426053166, 0.3919290006, 0.3509084284, -0.1244851053, -0.0641748756, -0.0059919124, -0.0925085172, 0.1071566045, -0.1056127697, -0.1911780238, -0.2419396788, 0.2931979597, 0.071758166, 0.2813782394, -0.0015515134, -0.097684674, -0.1878172457, 0.1744768023, -0.2419840991, 0.0416070819, -0.2596999109, -0.1773072332, -0.2635089159, -0.070816569, 0.0574662983, -0.395070821, -0.1241570786, -0.2460375577, 0.0640077665, 0.2776844203, -0.0457181148, 0.4009768069, 0.4703308046, -0.12691392, 0.2192729115, 0.3190121055, -0.2036362886, -0.2075870782, -0.1263897866, 0.0597336031, -0.0034548508, -0.0828471258, -0.0726940781, -0.4586652815, 0.213755846, -0.2816907465, -0.0525498465, 0.0743597597, -0.0355222188, 0.5063040257, -0.2617626786, 0.2529337108, -0.1107393578, 0.4106065929, 0.4045544565, -0.2005272955, -0.1289595217, 0.0199467316, 0.0778891072, -0.2607973218, -0.0393587425, 0.3344103396, -0.260805577, -0.1424450278, 0.2783361375, 0.0502966046, 0.1694930941, -0.55091995, -0.3159072697, 0.0516402237, 0.2530952692, -0.1564560682, -0.0282123331, -0.222311303, 0.2857839763, -0.285425961, -0.2039787769, -0.1333149523, -0.0329735465, 0.0216919295, -0.6995677948, -0.39133358, -0.0166674349, -0.1515091658, 0.5323095918, 0.0880488977, 0.0253739636, 0.0278317071, 0.0030353202, -0.0044203722, -0.0663749501, -0.2988656461, 0.0168135315, 0.0403068326, 0.3351400197, -0.0734654069, 0.0413798578, -0.1678368449, 0.2677580118, 0.1905383468, 0.0943187475, 0.0324876942, -0.0937042981, 0.0733189061, 0.0126708932, -0.0974273086, -0.1152829826, -0.1858903468, -0.0731042027, 0.0631050915, 0.1063181311, 0.1593656391, 0.1933681667, 0.0347989723, -0.1947153062, -0.2861016989, -0.1182758361, -0.2299227268, -0.1167774349, 0.0335355252, 0.3312154412, -0.0719775483, -0.2232436091, -0.1226547509, 0.1832714975, 0.4686771631, 0.0486778989, 0.3824286461, -0.1621933728, -0.2085375488, -0.0009657048, 0.1433831304, 0.0303800236, -0.0637196675, 0.0102406973, 0.2103755772, 0.1903970838, 0.186486125, 0.0376275629, -0.1315953881, 0.4868620634, -0.1329538673, -0.590780437, -0.4485071301, -0.08383701, -0.0461813137, 0.4464483261, 0.2025929689, 0.121446155, 0.1832031459, -0.1629597098, 0.1613383442, -0.4406795204, -0.408501327, -0.5296402574, -0.0772078708, -0.1208101213, 0.1012933776, 0.022048736, -0.2823103964, -0.3443129659, -0.4439449608, 0.1510322392, -0.2343680263, -0.203864187, 0.4826025665, 0.1618639529, -0.3691053987, 0.2843443453, 0.1946534216, 0.0703482777, 0.2092735916, -0.1213421375, 0.1955968738, 0.117423594, 0.2129207551, -0.4535714388, -0.0542352162, -0.0327296406, -0.0540473573, 0.2696755826, -0.3494567275, 0.1118170321, -0.0713971481, -0.2171403915, 0.3293797374, -0.1024742797, 0.1040698364, 0.2512627244, 0.0664818063, -0.138792038, -0.0392672755, 0.0648058429, -0.2958229482, 0.2502629161, -0.3924265802, 0.2538973093, 0.4127413929, -0.3073874414, -0.1985526383, 0.1135264933, -0.100840129, 0.067405127, 0.3842749, 0.0769117847, -0.4579053521, -0.1355752349, 0.0896985754, -0.1970646679, -0.0743463337, 0.0143760275, -0.2643183172, 0.0920368433, -0.3580283225, -0.0003536518, 0.1422571838, -0.1866119206, 0.4732815325, -0.0945191458, -0.2393086553, 0.1698596925, -0.1792889535, 0.3100371063, -0.0778423324, 0.0323349498, -0.2217231095, 0.2593060136, -0.3242448568, 0.1942670494, 0.0868854895, 0.3065235615, 0.6779505014, -0.2582503855, -0.4780558944, -0.1305695027, 0.0957541466, -0.0298392102, 0.0410923585, 0.100478299, 0.2653997838, 0.1224280745, 0.0419643112, 0.2340958118, 0.1169518456, -0.265930146, -0.3217814267, 0.2303244919, 0.0165105686, -0.4008859992, -0.1908878982, 0.2124531269, 0.5923562646, 0.0772771463, 0.6071115136, -0.1708689332, 0.0938695967, -0.2045490891, 0.1392642409, 0.2038927674, -0.1019269228, 0.6167328358, -0.224115774, -0.0105044451, -0.0011596032, 0.0155341681, -0.1059425026, 0.246388033, 0.1346393973, 0.2571752667, -0.2707900107, -0.0400445536, 0.390444994, 0.0253425092, -0.0369002782, 0.4749500155, -0.2261115462, 0.2843959332, -0.3062979579, 0.2049474418, 0.3042429984, -0.1515861154, -0.4816412032, -0.1707335413, -0.5891594887, 0.0861811116, -0.0511260182, -0.1754157245, -0.0631224811, 0.5393027663, -0.0343940184, -0.1166119128, -0.2260076702, -0.002778203, -0.1965399683, 0.1588026732, 0.3093069494, -0.1977654845, -0.3245770633, -0.178584069, -0.0507262908, 0.0764015019, 0.056127388, -0.1820083708, -0.2545238435, 0.084150061, -0.0078679947, -0.2569122612, -0.0423269197, 0.1870148927, -0.0193927772, -0.0605708286, 0.1704662293, 0.0101391505, 0.0925529748, 0.2859083116, 0.0786388814, 0.1287003905, -0.1340811253, -0.0895943195, 0.1099940017, 0.5431036353, -0.0363830775, 0.1304316223, 0.2100274414, 0.2070269734, -0.0093537346, -0.0843577012, -0.3582529724, 0.2575760782, 0.3693300784, -0.2755762637, 0.1990129948, -0.3448758721, 0.2791690528, 0.2967945933, -0.0382647589, -0.4296243787, 0.1247138381, 0.1603261977, -0.003505735, -0.1456477046, 0.1596735865, 0.3591035604, -0.0659678951, 0.2362089008, -0.1499636918, 0.0523923524, 0.1445044875, 0.0649675205, 0.0041035381, -0.1538081616, -0.207418412, 0.3424957395, -0.0387568325, 0.2916080952, 0.2955343425, -0.1797024906, -0.2489404231, -0.2290111184, 0.0882856622, -0.1418276876, 0.1646235138, -0.0915951058, 0.0886862054, 0.20833534, -0.3614555001, -0.2503941357, -0.0059379828, 0.0110779749, 0.0686565191, 0.1550807357, -0.1648519784, -0.221675992, -0.3788728118, 0.0777988806, -0.0932444185, 0.0874356627, -0.1769076288, -0.0204309188, -0.0972807258, 0.068807818, -0.128193453, 0.3972244859, 0.2002471238, -0.0158651695, 0.0069483505, -0.3464372158, -0.2009717077, 0.1060384363, 0.2996790111, -0.0015274191, -0.1086378172, 0.3010880351, 0.242516309, -0.2698398232, 0.1807519346, 0.2070457637, 0.3308274746, -0.1841491461, -0.5122314692, -0.0871946365, 0.0147969639, 0.0765603408, 0.3983006775, 0.0104466723, -0.2393777519, 0.0372044593, 0.0716235191, -0.1399572343, 0.1981387585, 0.0323801748, 0.2398913503, 0.1445457041, 0.5007632375, -0.2323463857, -0.2111145109, 0.1001098827, -0.3531178534, -0.1419485807, 0.0075194063, 0.2385793179, -0.0802277103, -0.0238477737, -0.1415869445, 0.0790750384, -0.4065200388, 0.3623471558, 0.3410250247, 0.3175616264, -0.0254957471, -0.0492036827, -0.3845287263, 0.3794113994, -0.178153187, -0.3013527393, 0.2541190088, 0.0433158688, -0.2651922107, 0.3701041937, 0.7036457062, -0.2908420861, -0.5082319379, -0.3333397508, -0.2769775391, 0.0086107422, 0.3501792252, -0.2469129115, -0.0890449882, -0.0982789621, 0.2765983343, -0.0749762729, 0.1320375502, 0.1540167332, -0.1242892668, 0.0688348338, 0.591154635, 0.069159314, 0.2064616233, 0.1213231385, 0.0442968681, -0.1319380701, 0.1508342028, -0.345410496, -0.0218684971, 0.3271324039, -0.3355368674, 0.4607936442, 0.272130549, -0.0749801248, -0.3710611165, 0.413290292, 0.2208665907, -0.0048907213, -0.0903680995, -0.0934828073, 0.0511620902, -0.0792126507, -0.0652788058, 0.1165086329, -0.0506932586, 0.4800722003, -0.0764005333, -0.1664084792, 0.2783629596, -0.1838289797, -0.3798909187, -0.124558717, -0.0217792895, 0.0725361109, -0.0096235555, -0.0441759303, -0.3208206296, 0.226731807, -0.1420072615, -0.2845943272, 0.1216768846, -0.1535637379, 0.071705319, 0.0470281616, 0.132873103, 0.1103112847, 0.0145055111, -0.1096887738, -0.0973094776 ]
https://github.com/huggingface/datasets/issues/2630
Progress bars are not properly rendered in Jupyter notebook
Hi @mludv, thanks for the hint!!! :) We will definitely take it into account to try to fix this issue... It seems somehow related to `multiprocessing` and `tqdm`...
## Describe the bug The progress bars are not Jupyter widgets; regular progress bars appear (like in a terminal). ## Steps to reproduce the bug ```python ds.map(tokenize, num_proc=10) ``` ## Expected results Jupyter widgets displaying the progress bars. ## Actual results Simple plane progress bars. cc: Reported by @thomwolf
28
Progress bars are not properly rendered in Jupyter notebook ## Describe the bug The progress bars are not Jupyter widgets; regular progress bars appear (like in a terminal). ## Steps to reproduce the bug ```python ds.map(tokenize, num_proc=10) ``` ## Expected results Jupyter widgets displaying the progress bars. ## Actual results Simple plane progress bars. cc: Reported by @thomwolf Hi @mludv, thanks for the hint!!! :) We will definitely take it into account to try to fix this issue... It seems somehow related to `multiprocessing` and `tqdm`...
[ 0.0840750486, -0.017447263, -0.0553434193, 0.1467485279, 0.1418052316, -0.2826744616, 0.4365518093, 0.3081711829, -0.2813869119, 0.1335178465, -0.1734684259, 0.495898366, 0.3021129668, 0.3606436551, -0.0934586599, -0.2819550335, -0.0838801637, 0.1640948057, -0.3097081482, -0.0013432717, -0.3553541601, 0.2289115191, -0.3600171506, 0.2748983204, -0.3260472715, -0.0157693084, 0.0067367679, -0.0339760818, 0.2025540024, -0.3707713187, 0.0603210144, -0.0869975239, 0.12911807, 0.4368245006, -0.0001134229, -0.1087477282, 0.4875664413, 0.0413401313, 0.0329010338, 0.2878980339, 0.4559454918, -0.4877925217, 0.2829347253, -0.2850022614, 0.0710599869, -0.1794690639, -0.3954915702, -0.0420613661, 0.4065070152, -0.1567405313, 0.2473643422, 0.4405183196, -0.0182325207, 0.2076784223, 0.0391098335, -0.1461219788, -0.2083894163, -0.0282218438, 0.4653920829, -0.3063618839, -0.387988627, 0.1063967347, -0.0486430712, 0.4187017977, -0.0393803902, 0.2133060396, 0.9913770556, -0.0878655165, -0.2944224179, 0.2115100324, 0.2394179106, -0.1059775576, -0.1512368768, -0.1202548146, -0.2735105455, -0.116038993, -0.1966738254, -0.0861074477, -0.2104893178, 0.0214732122, -0.3254861534, 0.1474573612, 0.023079589, 0.0039318744, -0.2227218896, 0.0638748854, -0.0164265502, -0.025415767, -0.415209353, 0.1107597798, 0.1686971486, -0.1647109091, 0.1662715226, -0.01742387, -0.066875957, 0.0514466316, 0.1705866158, -0.0394775867, -0.1951253116, -0.0893873051, -0.0934438109, 0.1065663025, -0.1109584719, 0.1176111326, 0.1380230933, 0.0363825299, 0.267051369, -0.0737986043, 0.4157480597, 0.0265661906, 0.0262289941, 0.0510558374, 0.2824546099, -0.2843369544, 0.1190833524, 0.2696623206, -0.1699028611, -0.0240199585, -0.1325652301, 0.2839512825, 0.3845815957, -0.1172236875, 0.0501014777, -0.0212007239, -0.1604374647, 0.0458946899, 0.0982231423, 0.201614961, -0.0938866064, -0.269426167, -0.1279253066, -0.2795525789, -0.2595214844, 0.0063247806, -0.1258068234, 0.360922426, 0.2234244347, 0.1400430053, -0.0556914397, -0.1958276927, -0.0410634652, -0.0504104793, 0.1032539159, 0.2466241568, -0.0829609931, 0.1367762834, 0.2960922718, -0.2910872996, 0.1265165657, 0.4259046316, -0.0393443331, 0.039393235, -0.3534792662, 0.0832791328, -0.3191150725, 0.3744325638, -0.4555283487, -0.2263982743, 0.3937737346, 0.0776726305, 0.0967457592, -0.416313231, -0.0178410448, -0.1785811931, 0.1732370555, 0.1455978155, -0.5406768918, -0.3143546283, -0.0999098122, -0.1438419372, 0.6745649576, 0.3311756253, 0.0616386719, 0.3111008406, -0.0355521813, 0.1803803444, -0.0299432911, -0.0998076275, -0.2703012824, -0.044633016, 0.0686810091, 0.3434055448, -0.1168106869, -0.1047255769, 0.3879332542, 0.0571677499, 0.1605417281, 0.199561283, 0.2249500453, -0.004050802, -0.5000806451, 0.1472547799, 0.2613552809, 0.1368754655, 0.2515562773, -0.1051910594, -0.1100688055, -0.4471717775, 0.4548562467, 0.3896093071, 0.0735656917, -0.108615689, -0.2065192908, 0.0486685857, 0.2095971406, 0.2003743947, 0.0501534045, 0.2725410163, -0.2228266299, -0.1505789161, 0.1081631631, 0.0841675699, -0.2802227736, 0.0574535131, -0.3637310266, -0.2123387605, 0.2303523719, -0.0214928184, -0.0324374177, 0.1609052867, 0.1928896457, -0.0381630957, 0.0449483693, -0.0241239332, 0.2177131176, 0.6586597562, 0.2201010287, -0.5620322824, 0.1005693451, 0.1098101139, -0.0100125335, 0.0599661656, -0.1167560294, 0.1055459678, 0.3706770539, -0.0126159023, -0.2862401009, -0.2531235218, 0.1941241473, 0.1476222873, -0.1142539978, 0.5261477232, -0.0583538413, -0.1218653098, 0.3449294865, 0.0872618183, -0.1932429224, 0.3505972326, -0.1336087286, 0.2573171854, -0.0148073873, 0.0165462811, -0.0542390533, -0.1458521187, 0.1375339329, 0.0343478583, 0.055681102, -0.2651259005, 0.3374622762, 0.2101247907, 0.2718616426, 0.0949252024, 0.169493407, -0.1708601862, -0.452380687, 0.3870063722, 0.3288427293, -0.1260955334, 0.1076469272, 0.0887195542, -0.0556902178, 0.0388398245, 0.0346242711, -0.2729831934, -0.2650906742, 0.2690730691, 0.2852132618, 0.341522038, -0.0553953908, -0.1524236053, -0.0843228698, 0.1791529506, -0.2676637173, 0.0621222295, -0.1503644884, -0.2169016451, -0.2802103758, -0.0814330429, 0.1066744998, -0.2798355222, -0.0973201171, -0.2014978826, -0.0294565987, 0.1356531978, 0.054809887, 0.3602168262, 0.5633693933, -0.1225383952, 0.1401524544, 0.3674178123, -0.1848125756, -0.231256336, -0.2094031423, 0.0796076283, 0.021869272, -0.0270251762, -0.1452458203, -0.506623745, 0.2695989609, -0.2906698883, 0.0424456038, 0.0552971102, 0.0010294236, 0.4239054918, -0.3118074536, 0.1914332509, -0.048604086, 0.4684604704, 0.3779622614, -0.1273928434, -0.168138206, 0.0822192281, 0.0849713236, -0.2132692784, -0.0504147299, 0.3898370266, -0.3317184448, -0.1092650592, 0.2391233444, -0.0295659117, 0.1968767643, -0.720055759, -0.2799723446, -0.0238181427, 0.2932690084, -0.0693962052, -0.1043622196, -0.131358996, 0.2333749086, -0.2860138714, -0.2543162704, -0.2362781465, -0.0590561889, 0.0311988089, -0.6471827626, -0.4120872021, -0.0859326199, -0.2004364282, 0.3781544268, 0.0382053368, 0.1749143153, 0.1584655344, 0.0033085956, -0.0538711138, -0.0849442109, -0.4036504328, 0.0524333715, -0.0169647485, 0.301483959, -0.023009304, -0.0270719249, -0.1710707843, 0.1382596046, 0.299233526, 0.0753848776, 0.1574765295, -0.0522211529, -0.0141517129, 0.101270102, -0.0767281055, -0.1693757772, -0.1942316294, 0.0478077605, 0.1227427199, 0.0846470445, 0.0652756169, 0.1389369816, -0.0133855455, -0.3803444505, -0.1787617952, -0.1553856134, -0.173833698, -0.0848161131, 0.0064558154, 0.2819904387, -0.0114202863, -0.2094162852, -0.1050018519, 0.1878011376, 0.3450336754, -0.0218556393, 0.4383286834, -0.2292400151, -0.1616397351, 0.1673974097, 0.1712915152, -0.0219536964, 0.0534426384, 0.072304219, 0.1686127186, 0.1126671359, 0.3454290032, -0.1313161105, -0.1081413552, 0.4399823546, -0.1932768226, -0.5599927306, -0.5287843347, -0.1388815045, -0.0271138214, 0.3023211956, 0.3238764405, 0.1704627573, 0.1294384152, -0.3058634698, 0.1342190951, -0.4507175982, -0.5005688667, -0.5428311825, -0.0320379138, -0.0099371402, -0.0275901984, -0.0984967425, -0.1000107899, -0.3013592362, -0.465305239, 0.1186718345, -0.2689273059, -0.1494287699, 0.4330700934, 0.1591848284, -0.2284727097, 0.1799618155, 0.158731699, 0.223338753, 0.139924556, -0.1881382763, 0.0017879702, 0.2173328996, 0.2586936057, -0.4733979702, 0.0423988327, -0.0806368962, -0.1161952987, 0.27046296, -0.4603220224, 0.2149654031, -0.1570173055, -0.2689239383, 0.3414732814, -0.0483213812, 0.0132105686, 0.208033368, 0.1232944503, 0.0050048521, -0.1137178764, -0.0689211711, -0.285761863, 0.2130228579, -0.3701866865, 0.2292711437, 0.331289798, -0.3805872798, -0.1750414819, -0.068091698, -0.2268905938, 0.1177390218, 0.3030439913, 0.0624667294, -0.3827466965, -0.2603966594, 0.0825033858, -0.2630774677, -0.0258881673, -0.0040110629, -0.276479423, 0.2061018646, -0.4202795625, -0.0411720239, 0.1308257133, -0.138424024, 0.6062148809, -0.1045560762, -0.1399498135, 0.1635838002, -0.2762543559, 0.3311767578, -0.1298912466, 0.0665111318, -0.1540279388, 0.2529997528, -0.3340658247, 0.1621995419, 0.0469716303, 0.3277941048, 0.5213473439, -0.2467437088, -0.4642069042, 0.1279601455, 0.1828424782, -0.0753350183, 0.080231443, 0.0282323491, 0.1075993478, 0.1536433846, -0.0152193056, 0.2035625875, 0.0659374595, -0.3426291943, -0.3608882129, 0.2768602371, 0.0544740111, -0.3398239017, -0.1580082178, 0.251280278, 0.515322268, 0.1659760624, 0.5921127796, -0.0823668465, 0.2200638205, -0.2310072482, 0.1685484499, 0.2138748169, -0.2118783146, 0.7508044243, -0.2067684382, -0.0217723548, 0.0426451452, 0.0263496768, 0.0704069883, 0.1268021464, 0.0671625137, 0.3412510455, -0.2547577322, -0.0963544995, 0.2661042213, 0.1276565045, 0.011672941, 0.4833356142, -0.2220042497, 0.2646156251, -0.2258883715, 0.3405120671, 0.2906498313, -0.0099988431, -0.4293839335, -0.246183157, -0.5078005195, 0.0547657907, 0.0729144812, -0.199319154, -0.1020385101, 0.4341855049, 0.009432029, 0.1235909685, -0.2600488961, 0.0482482351, -0.2103756815, 0.1416707486, 0.2156024277, -0.1273961812, -0.3874327242, -0.1020735353, 0.0111418897, 0.029488543, -0.0249927435, -0.2505483627, -0.2373583913, 0.0590548478, -0.0618389584, -0.1189647168, 0.0829754695, 0.1766029596, -0.013700366, -0.0503278486, 0.1899187416, 0.0070658945, 0.042771928, 0.3488993943, 0.1346111894, 0.1165416539, -0.1515335292, -0.0605689846, -0.005983084, 0.5434565544, -0.0660188496, 0.1043647453, 0.3075921237, 0.1612798274, 0.0489343554, -0.2327801287, -0.3188109398, 0.2774235606, 0.2623287141, -0.3050258458, 0.2351171225, -0.3422242105, 0.332639128, 0.1437485516, -0.0338616893, -0.2724227607, 0.1375378668, 0.2036046386, -0.0683357865, -0.2091985792, 0.2082445174, 0.346147269, -0.0081879329, 0.3194357753, -0.1421827525, 0.0462907329, 0.1024085656, 0.0240944903, -0.0675438941, 0.0091024423, -0.2059788555, 0.3505126834, 0.0656640008, 0.274410665, 0.2748165727, -0.059320882, -0.3289279938, -0.1768020988, 0.110641934, -0.0434987247, 0.0747661591, -0.0942508131, 0.0331626721, 0.1554332078, -0.1741335839, -0.1245343462, -0.0719827265, -0.0183948483, -0.0628899187, 0.2263254374, -0.167967394, -0.2615424395, -0.3279536963, 0.0831793621, -0.0947100595, -0.0216260403, -0.0767759979, -0.0971216038, -0.0849746689, 0.0793217719, -0.1062792912, 0.3211345971, 0.3122422099, -0.0279708896, -0.0099638253, -0.1597612053, -0.2634789646, 0.1258375049, 0.3141278923, 0.0011355643, -0.176520735, 0.2330846637, 0.2390507162, -0.3890820444, 0.2103188783, 0.1597006768, 0.3547723293, -0.2991582751, -0.511567831, 0.0465826765, 0.043171335, 0.0745613351, 0.3577717543, 0.1426041126, -0.2597830594, 0.0522160269, 0.0783246011, -0.1751222014, 0.2820821404, 0.0768239871, 0.3440591395, 0.1252900809, 0.4495242536, -0.270470053, -0.152007252, 0.1030547395, -0.256165117, -0.2923441827, 0.0472156741, 0.2022028267, -0.1473375708, -0.0348977707, -0.1349247545, 0.1029420272, -0.396171242, 0.37718454, 0.2636162043, 0.4115663767, -0.1070390716, -0.1958612502, -0.3908256292, 0.3388754427, -0.1304858625, -0.2475670576, 0.126313895, 0.1302091777, -0.2292496264, 0.355163455, 0.7703397274, -0.1849017888, -0.4258209169, -0.1495707482, -0.4036409855, 0.0335615575, 0.3173780739, -0.2314188182, -0.0433620363, -0.0700695962, 0.2427541912, -0.0539347269, 0.2154805064, 0.0531416982, -0.0059421775, 0.0582590029, 0.3602851927, 0.1891823709, 0.117498666, 0.0260109715, 0.0147796664, -0.0830277577, 0.3153702617, -0.1140943244, 0.1464641541, 0.2588915527, -0.2921166718, 0.3584015667, 0.1357861757, 0.1304063499, -0.3719022274, 0.3412766755, 0.2734383047, 0.1059354618, -0.1206758842, -0.0670827031, 0.2311582416, -0.1974954456, 0.035104841, 0.1029528305, -0.1211242676, 0.3408856392, -0.1112640128, -0.09854085, 0.2666786313, -0.1712307334, -0.416081816, -0.1571352929, -0.0429108664, 0.0663786754, 0.0479206741, -0.0647943467, -0.3053123057, 0.2395626754, -0.0582253486, -0.351585269, 0.1449592263, -0.3256438375, 0.0265670866, 0.0682527348, -0.0356903151, 0.1399089545, -0.0035144864, -0.1854762584, -0.1822354048 ]
https://github.com/huggingface/datasets/issues/2629
Load datasets from the Hub without requiring a dataset script
This is so cool, let us know if we can help with anything on the hub side (@Pierrci @elishowk) 🎉
As a user I would like to be able to upload my csv/json/text/parquet/etc. files in a dataset repository on the Hugging Face Hub and be able to load this dataset with `load_dataset` without having to implement a dataset script. Moreover I would like to be able to specify which file goes into which split using the `data_files` argument. This feature should be compatible with private repositories and dataset streaming. This can be implemented by checking the extension of the files in the dataset repository and then by using the right dataset builder that is already packaged in the library (csv/json/text/parquet/etc.)
20
Load datasets from the Hub without requiring a dataset script As a user I would like to be able to upload my csv/json/text/parquet/etc. files in a dataset repository on the Hugging Face Hub and be able to load this dataset with `load_dataset` without having to implement a dataset script. Moreover I would like to be able to specify which file goes into which split using the `data_files` argument. This feature should be compatible with private repositories and dataset streaming. This can be implemented by checking the extension of the files in the dataset repository and then by using the right dataset builder that is already packaged in the library (csv/json/text/parquet/etc.) This is so cool, let us know if we can help with anything on the hub side (@Pierrci @elishowk) 🎉
[ -0.4575759768, -0.0447010323, -0.0421365835, 0.1991640925, -0.1262193471, 0.1635168195, 0.3772644997, 0.1787042916, 0.4132858813, 0.1388911754, -0.239180699, 0.3387720585, -0.0637955964, 0.5494148135, 0.2678031325, 0.1731882095, 0.1355400532, 0.3373375237, 0.0156678688, 0.108715117, -0.1472666264, -0.028141506, 0.0509659015, -0.3055993319, -0.4166121483, 0.1337530464, -0.0574754775, 0.5216126442, -0.2011023164, -0.2119367421, 0.400562942, 0.5012660027, 0.2502645254, 0.1841822565, -0.0001212054, 0.0434089899, 0.192807287, -0.146849528, -0.3016462624, -0.1539459974, -0.2993465066, 0.0231875312, 0.2855737805, -0.1010634229, -0.0823805779, 0.2093597203, 0.1571628749, -0.1291951388, 0.3677398264, 0.0976221785, 0.0166193061, 0.2999819815, -0.2592338026, -0.3383880556, 0.1060964689, 0.5227721334, -0.0501803011, 0.0753658265, 0.4466710389, 0.1501266658, -0.2684881985, -0.0616009571, -0.0511123985, -0.1306408346, 0.6978549957, 0.0141168609, -0.4139386415, -0.3369883299, -0.0558857322, 0.2696107626, 0.484934628, -0.2226598561, -0.1884821355, -0.5040726066, -0.1010898277, -0.0231114347, 0.1161083356, 0.3829921484, -0.074523598, 0.3300857544, -0.1943245232, -0.499505043, -0.2894497812, -0.0394162387, 0.0870337412, 0.0510344915, 0.0833543688, -0.1139838845, 0.2059303671, 0.0716912374, 0.3125398159, -0.1525993943, -0.199770391, 0.1841588765, -0.2591175139, -0.1511713117, -0.1909290701, 0.354442358, 0.2726557553, 0.4776965082, 0.0313503593, 0.2450514883, -0.4523225427, 0.0596119799, 0.3471120596, -0.0049099275, 0.1210729629, 0.0548965596, 0.3135949671, 0.2362891585, 0.3534661233, -0.0196901392, -0.1949659586, 0.0806539506, -0.4910585284, -0.1728902757, 0.1783721149, -0.0850357413, -0.0836667642, -0.3461419642, 0.5396621823, 0.0528207049, 0.2299035937, 0.282974422, 0.1364174485, 0.1290996075, -0.2617964745, 0.1894246638, -0.1174896881, -0.295938164, -0.1057050452, 0.1344973147, 0.1033400744, 0.2694162726, 0.368850708, -0.359310478, 0.1102584302, 0.0069274371, 0.4422933161, 0.0437481627, -0.0864410549, -0.0130616017, 0.0163180735, 0.1432936937, 0.3748801351, -0.0535979941, -0.022815818, -0.2377946675, -0.3192484677, 0.0625879467, -0.4418229759, -0.518388927, -0.0569750033, 0.0121524362, -0.4268386364, 0.0280670822, -0.6266530156, 0.0605007112, -0.3998809755, -0.041664809, -0.0795241594, 0.2116309851, -0.0123843141, -0.0399875119, 0.1320930272, 0.5962693095, -0.2625653744, -0.1146185845, -0.056725543, -0.2146862149, -0.3286302388, -0.0449766405, -0.174263373, 0.1860435158, -0.2278234214, 0.3033219576, 0.4498623908, -0.5796934366, -0.2853995264, 0.0064893826, -0.1179375947, 0.0732647702, 0.174325332, 0.3771467209, 0.3957129419, -0.1296546906, -0.1318280399, 0.5260869265, 0.0008257853, 0.0909404084, 0.1459449083, -0.518384099, -0.157916218, 0.4319951236, 0.1243646219, 0.0304880068, 0.3115410209, 0.201321587, 0.1387490034, -0.2980288863, 0.1430206597, -0.1011165082, 0.0254287515, 0.0401324704, -0.068433024, -0.0548525006, -0.689109385, 0.3163143992, 0.0964967534, -0.0020367452, -0.0244457256, -0.3710267246, -0.1171224415, -0.1898974031, -0.2818383276, 0.0634646639, -0.0909613594, -0.0830149949, 0.0350428298, -0.1356612891, -0.5921105146, 0.6018565297, -0.0149239227, 0.1960614324, -0.6531128883, 0.4063931406, 0.3386699557, -0.0153759941, 0.2168535441, -0.0285901353, 0.1245827898, -0.1221517995, 0.1126260012, 0.2599676549, 0.1257735044, 0.614746809, 0.260530144, 0.1702955663, 0.1483873427, -0.0583521202, 0.2140931785, -0.3489825428, 0.0123657184, -0.13904953, -0.3719677329, 0.3414107561, -0.498301506, 0.119076781, 0.0701577514, -0.0204374995, 0.0052312249, -0.0468477458, -0.1861117184, -0.1877372563, -0.0455208682, 0.1042948365, 0.1593877673, 0.0439117998, 0.0219547544, 0.0218883809, 0.4020876586, -0.0820777863, 0.0510961898, 0.1745691895, -0.1587083638, -0.0367911719, 0.1882546395, 0.0600357912, 0.2340117693, 0.1528205872, -0.0666546524, 0.2553105056, 0.3917657137, -0.2559642494, -0.0063173249, -0.0388425551, 0.0046938751, 0.1148879826, -0.1143906265, -0.1490907967, -0.3427887261, -0.0038197224, -0.0566475764, -0.1197238564, -0.2024751157, -0.1974550486, -0.1885624528, 0.0441668294, 0.1086139008, -0.1390505731, -0.2280119061, -0.0474897064, 0.1132060438, 0.2926145196, 0.1356827468, -0.1808516532, 0.1021873727, 0.8752862215, -0.2077580243, -0.4260380864, -0.274422586, -0.0052179894, 0.2112581879, -0.0357649475, 0.2536875904, 0.3942883313, 0.2186064422, -0.2756745219, 0.2006195784, -0.3470380306, 0.1797514409, 0.1969392896, 0.0370650254, 0.0286822934, 0.1138857082, 0.0788870081, 0.2208520472, -0.0224463586, -0.1317492276, -0.0986447558, -0.0600061491, -0.1949046105, 0.083963722, -0.0586361028, -0.1458729804, -0.1207061335, -0.3679882884, -0.456333369, 0.3621262014, 0.3808915913, 0.0275839884, -0.2261142284, -0.0948194638, -0.0128291883, -0.1683931947, -0.2992095053, 0.0453892574, -0.5231453776, 0.4055297971, -0.3415706456, -0.2106557637, 0.2707832158, 0.0609661005, 0.1544735432, 0.0539420061, -0.3392733634, -0.2430038452, 0.0532309264, 0.0894926563, 0.0398270153, 0.0650908053, 0.2832046747, -0.1102566943, 0.2209950238, -0.0620180853, -0.0730816349, 0.0882782787, 0.2928548753, -0.350648284, 0.1858037859, -0.120524615, -0.1198292226, 0.5136722922, 0.2791601121, 0.251226306, 0.1940322816, -0.0187379513, 0.3876354098, -0.3456959426, 0.0017483321, -0.1830448955, 0.0383662023, -0.0451300591, 0.477850765, 0.2628041208, 0.1216737926, -0.3591521084, -0.4306381643, 0.0288198292, -0.1977300346, 0.0783414245, -0.011111388, -0.0104183378, -0.167058751, 0.0205231775, -0.1251321733, -0.2814127505, 0.0326022059, 0.3820091784, 0.3374104798, 0.1487735361, -0.1922381073, 0.0919728354, -0.291688174, 0.2229800969, -0.0234763138, -0.3273980319, 0.0144209061, 0.0260603782, 0.0434437878, -0.0784058049, 0.5525978208, -0.0768231004, -0.0256261826, -0.2390154153, -0.2209438831, -0.1558263898, 0.0994996801, 0.1380495727, 0.0132204955, -0.4880356491, 0.7941617966, -0.0995159373, -0.3218311965, 0.0524175689, -0.0858280882, -0.186013177, -0.1060684845, 0.1103661135, -0.0785629749, -0.4641359448, -0.2623744309, 0.094559446, -0.1030067131, -0.2374697775, -0.1350482702, -0.0629905239, 0.1310780942, 0.1900200993, 0.1737862378, 0.2542227209, 0.0578284338, -0.1312520802, 0.4289525151, 0.0591998138, 0.2980824113, 0.6782127023, 0.1396743357, -0.4402042627, 0.0134956585, -0.2010636032, 0.2921780348, 0.5223487616, 0.0938644037, 0.0564075634, 0.0585680306, 0.0362378284, -0.5819572806, 0.147712037, -0.0381950103, -0.2752723694, -0.4304093719, -0.4510776401, 0.6226555109, -0.0689186826, 0.0640258566, -0.1069795266, 0.4030179977, -0.377048403, 0.1231430843, 0.0702422932, 0.8982321024, -0.071154274, 0.2976282537, 0.0360319689, -0.0640622973, 0.3835208416, -0.6910937428, -0.0053559858, -0.3164269626, -0.1875430048, -0.3519822061, -0.0240894035, 0.1682011634, 0.2223048806, -0.213506788, 0.3743102252, 0.0577207282, 0.4703813791, -0.0445757993, 0.427241087, -0.3970297575, -0.5239442587, -0.1813055575, 0.0216597915, 0.0262451302, -0.0213814545, -0.0455973074, -0.1437029094, 0.0020612031, -0.1098014563, -0.0077884481, 0.1402377635, 0.2143563181, -0.2197985053, 0.0066362089, -0.0144394413, 0.3113359213, 0.3582701385, 0.2158789933, 0.0300091375, -0.3226817846, 0.2304143757, -0.2172024846, -0.0157415662, -0.1394650787, -0.0272877533, 0.2691301703, 0.05466244, -0.1156828329, -0.0498546399, -0.0464586392, -0.3997414112, -0.1941820979, 0.11445456, 0.1813283712, -0.2519478798, -0.136010319, 0.012785499, 0.0661637858, 0.0536812693, -0.0303367954, 0.0336857736, 0.0313879289, -0.0099908663, 0.1384609938, -0.1035655215, -0.0863176212, 0.1303194165, -0.2854101062, -0.3250835538, 0.081916742, -0.0630930364, -0.0948148519, -0.1671719402, 0.1966568828, 0.4302745759, -0.3918294907, 0.1148460209, 0.0370114371, -0.0390541591, 0.0038851541, 0.0323107801, -0.0390977412, -0.172221601, -0.1630106717, -0.2594660819, -0.0582633056, 0.2405712754, 0.0249611828, 0.3125114739, 0.2753749788, -0.3476409614, -0.2138453871, -0.0816118196, -0.1637906581, 0.168168515, -0.0679171458, 0.0338147692, -0.0260058753, 0.162778765, 0.035104908, -0.2060479671, -0.1087182909, -0.0047192522, -0.3626045883, -0.0274241734, -0.0853209719, 0.2391911596, 0.0578091554, 0.1277650595, -0.1629248857, -0.1107509211, -0.2145335674, -0.3260590732, 0.5787269473, 0.0464807153, -0.0090240892, -0.1731228977, 0.5797997117, 0.0645229816, -0.3917685449, 0.3677156866, 0.2882385254, 0.4936089814, -0.1893946528, 0.1349031329, -0.3057218492, 0.0603801683, 0.3331648111, 0.6284927726, 0.9139981866, 0.1212797686, 0.258669138, -0.1242344081, 0.1203271002, -0.0284561981, 0.2634214759, 0.1179236993, -0.1473700106, 0.1469343752, 0.1326863617, -0.0013376089, 0.0035381515, -0.1091662869, 0.4651370943, -0.2163640112, 0.0897272155, 0.4169332385, 0.3571687937, 0.1019722447, -0.2288589925, 0.0479045436, 0.6168883443, 0.1762440205, 0.3369448185, 0.4259212613, -0.1810423881, 0.0998248234, -0.0017924497, 0.2226395905, 0.0534647368, 0.4730301499, -0.3988973796, 0.3629612029, 0.2224748582, 0.134929508, 0.3365785182, -0.3683716059, -0.2057876289, -0.0170309898, 0.2325683236, 0.095995158, -0.0759056583, 0.3478367031, -0.170182243, -0.047481522, -0.4018287063, 0.0004568949, 0.0625689179, 0.1317361295, 0.0139120566, -0.2197067738, -0.2836595774, 0.2622633874, -0.087889418, -0.3314151168, -0.1918560117, 0.1685848385, 0.2644776702, 0.2347225398, 0.3726986349, -0.010806879, 0.0364035554, -0.0733314306, 0.0056835408, -0.0789168254, 0.1261888891, 0.473839581, 0.0657806769, -0.0959516242, 0.1417226046, 0.020356698, 0.2079633623, 0.1000196263, -0.0975630581, 0.1016673669, -0.0791084617, -0.1497848183, 0.335624218, 0.0141820032, 0.0848567337, -0.0308180824, -0.0254233908, -0.1691261083, 0.0687801465, -0.3932404816, 0.3734213412, 0.1371651292, -0.0253048446, -0.0013594338, -0.0318552144, -0.17497769, -0.2812853158, 0.4291781485, -0.0715983286, 0.1156729013, 0.1271265894, -0.0008259033, -0.0232294034, 0.4580634534, 0.1040099412, -0.0665538833, 0.0290403217, -0.1584464908, -0.3442612588, -0.0480586104, 0.1553259045, -0.0620340556, 0.0165728554, -0.0875470415, 0.1618357152, 0.24785465, 0.017980773, -0.2271557599, 0.2294037491, 0.027110802, -0.0681091473, -0.0427454077, 0.1231130362, 0.1112902611, -0.1210733876, -0.2770119309, 0.0364800133, 0.1902368218, -0.2698023617, 0.2569991052, 0.2185705155, 0.2078663707, -0.4765970707, 0.2123612016, -0.2095571756, 0.2198642939, -0.0315440819, 0.1896928549, -0.2996186614, -0.0461364947, -0.3355702758, -0.0755935758, -0.1748859137, 0.2164684385, -0.2423885167, -0.0133691505, -0.3065298498, -0.0302059725, -0.0357386321, 0.1394874305, -0.2000428438, -0.0880999863, -0.3969622254, 0.1654979885, 0.267388612, 0.1068124101, -0.109273605, -0.1776873171, -0.083741948, 0.0489657819, 0.4212644398, -0.2280204445, -0.2450334877, 0.0018893339, -0.0527398363, 0.1859928221, -0.1028055623, -0.1450479925, 0.1127399653, 0.063636139, -0.1726145297, 0.162205711, 0.2499661148, 0.1666974276, -0.1502145082, -0.2082294375, -0.2506300509, 0.3272823691, -0.1672693938, -0.1096106917, -0.4348281622 ]
https://github.com/huggingface/datasets/issues/2622
Integration with AugLy
Hi, you can define your own custom formatting with `Dataset.set_transform()` and then run the tokenizer with the batches of augmented data as follows: ```python dset = load_dataset("imdb", split="train") # Let's say we are working with the IMDB dataset dset.set_transform(lambda ex: {"text": augly_text_augmentation(ex["text"])}, columns="text", output_all_columns=True) dataloader = torch.utils.data.DataLoader(dset, batch_size=32) for epoch in range(5): for batch in dataloader: tokenizer_output = tokenizer(batch.pop("text"), padding=True, truncation=True, return_tensors="pt") batch.update(tokenizer_output) output = model(**batch) ... ```
**Is your feature request related to a problem? Please describe.** Facebook recently launched a library, [AugLy](https://github.com/facebookresearch/AugLy) , that has a unified API for augmentations for image, video and text. It would be pretty exciting to have it hooked up to HF libraries so that we can make NLP models robust to misspellings or to punctuation, or emojis etc. Plus, with Transformers supporting more CV use cases, having augmentations support becomes crucial. **Describe the solution you'd like** The biggest difference between augmentations and preprocessing is that preprocessing happens only once, but you are running augmentations once per epoch. AugLy operates on text directly, so this breaks the typical workflow where we would run the tokenizer once, set format to pt tensors and be ready for the Dataloader. **Describe alternatives you've considered** One possible way of implementing these is to make a custom Dataset class where getitem(i) runs the augmentation and the tokenizer every time, though this would slow training down considerably given we wouldn't even run the tokenizer in batches.
68
Integration with AugLy **Is your feature request related to a problem? Please describe.** Facebook recently launched a library, [AugLy](https://github.com/facebookresearch/AugLy) , that has a unified API for augmentations for image, video and text. It would be pretty exciting to have it hooked up to HF libraries so that we can make NLP models robust to misspellings or to punctuation, or emojis etc. Plus, with Transformers supporting more CV use cases, having augmentations support becomes crucial. **Describe the solution you'd like** The biggest difference between augmentations and preprocessing is that preprocessing happens only once, but you are running augmentations once per epoch. AugLy operates on text directly, so this breaks the typical workflow where we would run the tokenizer once, set format to pt tensors and be ready for the Dataloader. **Describe alternatives you've considered** One possible way of implementing these is to make a custom Dataset class where getitem(i) runs the augmentation and the tokenizer every time, though this would slow training down considerably given we wouldn't even run the tokenizer in batches. Hi, you can define your own custom formatting with `Dataset.set_transform()` and then run the tokenizer with the batches of augmented data as follows: ```python dset = load_dataset("imdb", split="train") # Let's say we are working with the IMDB dataset dset.set_transform(lambda ex: {"text": augly_text_augmentation(ex["text"])}, columns="text", output_all_columns=True) dataloader = torch.utils.data.DataLoader(dset, batch_size=32) for epoch in range(5): for batch in dataloader: tokenizer_output = tokenizer(batch.pop("text"), padding=True, truncation=True, return_tensors="pt") batch.update(tokenizer_output) output = model(**batch) ... ```
[ -0.1749235094, -0.1920809746, -0.143452093, -0.2396784276, 0.1912635118, 0.0263555869, 0.1673914492, 0.3273122907, -0.3234901428, 0.0160068404, 0.0447254367, -0.0170346815, -0.2608953416, 0.1105001718, -0.0723291188, -0.1290824413, 0.1623858362, 0.128782928, 0.0835959092, -0.0614517294, 0.2458241582, -0.0801942647, -0.1216682643, 0.0804530606, -0.4331207275, -0.2005296201, -0.0184632074, -0.1191417351, 0.03238713, -0.0549189895, -0.2768344581, 0.292882055, 0.1394536644, 0.286131829, -0.0001094861, -0.2278578132, -0.0457839444, -0.1373026967, -0.3240189552, -0.0370468646, 0.8906269073, -0.4260545969, 0.0184371118, -0.1956670135, -0.2086929083, -0.2443615198, 0.2259552628, -0.1025846973, 0.7065520287, -0.1400630921, 0.1746794581, 0.1642665416, -0.1695445031, 0.1748896688, 0.0812372714, 0.6041793823, -0.0998971835, -0.1248122528, 0.3372096121, -0.2876380086, -0.1602467, 0.5248732567, 0.0838093609, -0.0850363821, 0.358263433, 0.0786501467, 0.0502487645, -0.5240314603, -0.2224523723, 0.1617946625, 0.0644257963, -0.1844713092, -0.5932481289, -0.3726415634, 0.2279144675, -0.0164296068, -0.2347869724, 0.1063614935, -0.1818403602, 0.0403820202, -0.1904092431, -0.1769423038, -0.0590323359, 0.2114751786, 0.2574060857, 0.2118018568, 0.232711941, -0.1030832082, -0.3152118921, -0.1901499331, -0.017550366, 0.1092633978, 0.2167673558, 0.3279650509, -0.0164926853, -0.1686117649, -0.2443469763, -0.3988575041, -0.0008843489, 0.128075704, 0.0307483394, 0.4207871556, -0.4762345552, 0.039177604, 0.0057943286, 0.0282802712, 0.0076811048, 0.1638360173, 0.3196819723, 0.0540728234, 0.003982476, -0.0232677851, 0.0108466865, 0.1630416512, 0.0301640499, -0.109124504, -0.3127089143, 0.2283018976, -0.2628075182, 0.0098470747, -0.1675759405, 0.1402469277, 0.0705191568, 0.2345560938, -0.2274334282, 0.2814388275, 0.256477505, 0.1967924833, 0.0014194928, 0.03552185, -0.0433993191, 0.17431584, -0.3539295793, 0.1625113189, 0.2804239988, 0.5648200512, 0.1444967091, 0.0708904564, 0.3205163479, 0.0095687974, 0.2328445017, -0.1425879896, 0.4217467606, -0.0478330739, -0.1146399379, 0.2201910168, -0.0657539219, 0.0721537024, -0.119618766, -0.1751385331, -0.1528178006, 0.1419906765, -0.218692854, 0.2464308292, 0.3551000953, -0.0151166348, -0.2094569206, 0.3241278529, 0.0210423451, -0.3204987645, 0.1727178544, -0.1375956386, 0.0115351491, -0.0599737801, 0.2275058776, 0.0374386534, -0.0412997343, -0.2540354729, 0.4374250472, 0.214856863, 0.1135616377, 0.3173480034, -0.2680599391, 0.0712593943, -0.0477384105, 0.0781116933, 0.5492460728, -0.4070942402, 0.0510663167, 0.203170523, 0.0156891048, 0.0639112666, -0.1526075602, 0.3913735151, 0.2438092828, 0.0073965872, 0.1471613944, 0.5788080692, -0.0462912396, 0.0729110166, -0.0735741556, -0.3104627728, 0.2083488703, 0.0925205201, 0.0948226228, -0.3573521078, -0.2048754096, 0.09997309, 0.3083712459, -0.2700298727, 0.358382076, -0.0095583601, -0.2125839889, 0.3153031468, -0.0342440009, -0.1558935642, 0.0081810905, 0.0151068876, -0.0870279372, 0.3045283854, -0.1963894963, -0.3819638193, 0.2294835299, -0.0637034774, 0.0682514831, -0.3417002261, 0.1884030104, 0.0611840114, -0.0851467624, -0.0551095493, -0.3363080919, 0.110334076, -0.11353039, 0.1098782942, 0.051738847, 0.0406880453, -0.0345537476, -0.1430625618, -0.3016890585, 0.371178627, -0.0835316181, -0.0199190956, -0.010554892, 0.2912921607, -0.0540976897, 0.1201767102, -0.0536796376, 0.2401741296, 0.356520474, -0.0962437019, 0.1682846397, 0.1372683048, -0.0107516395, -0.2892516553, -0.0039151078, 0.5061604381, 0.2224729955, 0.2047207952, 0.302824229, -0.0844083279, 0.087240532, 0.0437296554, -0.2721039355, -0.3616885543, -0.1609094739, -0.0939855725, 0.1342760175, -0.336636126, -0.5899160504, -0.0114844628, 0.2806824148, 0.2557837069, -0.0145959156, 0.1399239898, -0.1836907715, -0.1397483796, 0.0756567791, -0.5855827332, -0.0750118271, 0.202407226, -0.0168650318, 0.1435839236, -0.0854750276, -0.0052285241, 0.0352684557, 0.2353795767, -0.0255144089, 0.0951069966, 0.4083149135, 0.3604506552, -0.1396540105, -0.307811588, -0.1590867043, -0.4041630328, -0.0580310002, 0.2476759255, -0.1718838662, -0.4956327677, -0.1368497163, -0.4858055711, -0.2315855473, 0.0946228355, 0.3938373923, -0.0339780226, -0.1213257909, 0.3089967072, -0.0552517772, 0.3120439351, -0.0148539646, -0.1032002196, -0.0295116641, 0.1958806813, -0.2042996585, 0.0272398647, 0.0039904616, 0.0478980392, 0.4143899679, 0.2367702276, -0.0613218695, -0.368852973, -0.573826015, 0.1989153177, -0.0435738266, -0.0754412636, 0.1535943002, -0.2465474308, 0.0378198288, -0.5249401927, 0.0829258487, -0.2365262061, -0.0877229273, -0.3229259551, 0.089831531, -0.1227381155, -0.2532222569, 0.0823827982, -0.3209184408, -0.350895375, -0.0673327446, 0.2139363736, 0.0358339325, -0.1540177613, -0.2602302432, -0.1037170887, 0.158204183, 0.2489971519, 0.0276558492, 0.0360086933, 0.2866538763, -0.3043051958, -0.1436741501, -0.198739633, -0.3153316677, 0.1066346616, 0.2237945497, -0.1450606883, -0.2972120941, 0.0744433776, 0.0842169747, -0.2484322488, -0.1239836887, 0.0842127502, -0.0569645241, -0.1526043266, 0.0490062535, -0.0183923058, 0.1789526641, -0.1769571453, 0.1623334587, -0.3505837917, 0.2998357713, 0.2065783143, 0.4156171083, -0.1009592488, -0.1860578209, 0.4628736079, -0.1015677601, -0.0547135025, -0.0337042771, -0.0693563074, -0.0145601667, -0.2122714818, -0.0271375552, 0.2304040343, -0.0089173131, -0.2364801466, -0.1578739136, 0.2057914734, -0.3513629436, -0.1594031304, 0.3336035311, -0.5718929172, 0.2396319062, -0.2130250186, 0.1591393203, -0.159755215, -0.2681823075, 0.3210600019, -0.1664439142, 0.267380625, -0.0826043114, -0.0513878092, 0.0470834076, -0.1404733211, 0.2797591388, 0.2064881325, 0.1528767198, 0.1210506931, -0.1761031002, 0.1129441336, -0.138354674, 0.4136571288, 0.0103406776, -0.3415986001, -0.0356960706, -0.1137947664, -0.1227874011, -0.1780912727, -0.1877987087, -0.0266248211, 0.5311675072, 0.5997409225, -0.2997631729, -0.2721070945, 0.3077866137, -0.1064927205, -0.1589563191, 0.1346831769, 0.1879261881, 0.2151339948, -0.4126155078, 0.1211763918, 0.0550890937, 0.0057664826, 0.1323631555, -0.1052785441, -0.070421353, 0.1855517477, 0.2677013874, 0.1676830798, -0.0399027728, -0.0350229442, -0.0575041287, -0.0223076586, 0.0960757881, 0.3651776314, -0.0264439937, 0.0704544857, -0.2445631176, -0.0447182842, 0.1562059373, 0.4355126917, 0.4480150044, 0.2516478002, 0.3036262393, 0.0256297216, 0.1053521782, -0.3496856689, 0.3098252416, 0.4465027153, -0.0153546026, -0.4974288344, -0.4103820026, 0.1762540787, -0.0963570923, -0.0155201023, -0.2599523365, 0.0811264515, -0.3926422894, 0.664061904, 0.4433377385, 1.1297674179, 0.3573448658, 0.4586039782, -0.042353332, 0.1152501479, 0.383060813, -0.6734594107, 0.0660290644, -0.3117775023, 0.0425262563, -0.0314419828, 0.048432935, 0.0105463127, 0.2368611544, -0.065750666, 0.2240265757, 0.0588077642, 0.0110485991, -0.1085084453, 0.444745332, 0.0051070666, -0.627037406, -0.1310867965, 0.1267709732, 0.0423105657, -0.0223921984, -0.088453047, -0.164510414, 0.1444616765, 0.0065418091, -0.1351338327, 0.0482106246, -0.2696855664, 0.1632841229, 0.0733544379, -0.0779523253, 0.2392178625, -0.2708636224, 0.3563739657, 0.1940159202, 0.1004140079, 0.1763639897, 0.1171763018, 0.2489153892, -0.0542248152, -0.316765368, 0.8901435733, -0.0371694453, 0.200030908, 0.0912046954, 0.2408937365, -0.1644598395, -0.0225648489, -0.1324384063, 0.3902788758, -0.1736594886, -0.0781239048, 0.1845992357, -0.2183439583, -0.1247095466, 0.133534357, -0.0311878864, -0.1671605557, 0.2195684612, 0.3298569918, -0.0261124019, -0.171552211, 0.1039448753, -0.2159543782, -0.4586628973, 0.560089469, 0.1068934724, -0.2220665962, -0.1168674827, -0.2498065829, 0.2313774675, -0.0732235834, -0.024741672, 0.1908102036, -0.1832659245, 0.0654038191, 0.2495058924, 0.1321740448, 0.0188959595, -0.3815692663, -0.0789287165, -0.2347982973, 0.2478350997, 0.2000762969, 0.2317269146, 0.0152796702, 0.3859035969, -0.0833212957, 0.401931107, -0.3887148798, -0.0736245587, 0.0603839122, 0.3245540261, -0.4759229422, -0.1236636117, -0.0635304004, 0.293215543, 0.0952196643, 0.2746932507, -0.0704278052, -0.1763803065, -0.3155699968, 0.1093038321, 0.0088391844, -0.0300795101, -0.0055696121, 0.0915763155, -0.1552718729, -0.3959918916, 0.04693662, -0.0575987287, -0.0003966567, 0.0493513681, -0.0077324021, 0.033723373, 0.0584314838, -0.1813468784, 0.1635543406, 0.2311703414, 0.2100099027, 0.1916545033, -0.0230310373, -0.1339605153, -0.1600052565, 0.2594055235, 0.3972217441, -0.144617632, 0.0327140205, 0.0640674904, -0.2973064482, 0.0151832467, 0.315918535, 0.1479309052, -0.0713804439, -0.2626301944, 0.32405141, 0.2630265057, -0.2260718197, 0.1383367032, -0.0347757973, -0.5336184502, 0.0946138427, 0.2589984536, 0.3436365426, 0.4469383359, -0.153393358, -0.0033767433, -0.03965066, -0.4922484159, -0.0260317381, -0.1051438227, -0.1139656454, 0.0825662017, 0.2647012472, 0.1236173585, 0.282700628, -0.0334635861, 0.0462082699, 0.2988395691, 0.3937665224, 0.0245551057, 0.1559989601, -0.0895115733, -0.1781276762, -0.1676715761, 0.3514991105, 0.3922955692, -0.0154843181, 0.0106548695, 0.1252193302, -0.3595493734, -0.0910577402, 0.4749238193, -0.158001557, -0.0369390994, 0.0938889012, 0.0166435707, -0.532045126, -0.0606438667, -0.0281223711, -0.084743388, -0.3039167821, 0.2317367643, -0.0121713942, -0.0917980596, 0.1023018137, -0.2134156227, 0.5871028304, -0.2450864017, 0.0072282669, 0.1629155874, 0.1580487788, -0.0144391628, 0.134371236, 0.3595366478, 0.3483408391, -0.2469235808, 0.0921182632, -0.3106659353, -0.0230591651, -0.1457126588, 0.2029490918, 0.3186668754, 0.1778250188, 0.0684293956, 0.1633448303, -0.2882708013, -0.0467924848, -0.1142950505, 0.3790619969, -0.2499670088, 0.1722801328, 0.2577950954, -0.1916579306, -0.4491400719, 0.0122590549, -0.2413177043, -0.0236192513, 0.3017311692, -0.2390325516, -0.0330837369, -0.2029784769, 0.1085818708, 0.0240442157, 0.4602801204, 0.5174256563, 0.3198363781, -0.0012376495, -0.0460658707, -0.1639815271, -0.0320614092, 0.3065174222, -0.0632732064, -0.0743619353, 0.3361044228, 0.2154156268, 0.0053997268, -0.0040305997, -0.2370178252, -0.2534394264, 0.2219523638, -0.1255367398, 0.4652814865, -0.2609793246, 0.2266547829, 0.1869704872, -0.162993595, -0.0399314016, -0.2518545687, 0.05419847, 0.0949320495, -0.0672331676, 0.1191678494, 0.0002798181, 0.5229856968, 0.0870421603, 0.1229858175, -0.3334082663, -0.1373922974, -0.1719633937, -0.1722702086, -0.5522136092, 0.0878211856, 0.0875230804, 0.6268979907, 0.0971799865, -0.1202664077, -0.1241283864, 0.088152945, 0.0131389601, -0.5722593665, -0.1499318331, 0.0011817005, -0.087850973, -0.0149728721, -0.0661504194, 0.4720067084, 0.0517067984, -0.0070289765, -0.332420975, -0.4548495114, 0.33701998, -0.0535530075, -0.2709163725, -0.3991358578, 0.1516965032, 0.3290502429, 0.1189182922, -0.6594871879, -0.1559226662, 0.2090783417, 0.0794970691, -0.0144645944, 0.3205156326, 0.0903450623, -0.1893981397, -0.2628096342, 0.0255035721, -0.1981240064, 0.031561017, -0.3176021278, -0.2944547236 ]
https://github.com/huggingface/datasets/issues/2618
`filelock.py` Error
Hi @liyucheng09, thanks for reporting. Apparently this issue has to do with your environment setup. One question: is your data in an NFS share? Some people have reported this error when using `fcntl` to write to an NFS share... If this is the case, then it might be that your NFS just may not be set up to provide file locks. You should ask your system administrator, or try these commands in the terminal: ```shell sudo systemctl enable rpc-statd sudo systemctl start rpc-statd ```
## Describe the bug It seems that the `filelock.py` went error. ``` >>> ds=load_dataset('xsum') ^CTraceback (most recent call last): File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) OSError: [Errno 37] No locks available ``` According to error log, it is OSError, but there is an `except` in the `_acquire` function. ``` def _acquire(self): open_mode = os.O_WRONLY | os.O_CREAT | os.O_EXCL | os.O_TRUNC try: fd = os.open(self._lock_file, open_mode) except (IOError, OSError): pass else: self._lock_file_fd = fd return None ``` I don't know why it stucked rather than `pass` directly. I am not quite familiar with filelock operation, so any help is highly appriciated. ## Steps to reproduce the bug ```python ds = load_dataset('xsum') ``` ## Expected results A clear and concise description of the expected results. ## Actual results ``` >>> ds=load_dataset('xsum') ^CTraceback (most recent call last): File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) OSError: [Errno 37] No locks available During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/load.py", line 818, in load_dataset use_auth_token=use_auth_token, File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/load.py", line 470, in prepare_module with FileLock(lock_path): File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 323, in __enter__ self.acquire() File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 272, in acquire self._acquire() File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) KeyboardInterrupt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-135-generic-x86_64-with-debian-buster-sid - Python version: 3.6.13 - PyArrow version: 4.0.1
84
`filelock.py` Error ## Describe the bug It seems that the `filelock.py` went error. ``` >>> ds=load_dataset('xsum') ^CTraceback (most recent call last): File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) OSError: [Errno 37] No locks available ``` According to error log, it is OSError, but there is an `except` in the `_acquire` function. ``` def _acquire(self): open_mode = os.O_WRONLY | os.O_CREAT | os.O_EXCL | os.O_TRUNC try: fd = os.open(self._lock_file, open_mode) except (IOError, OSError): pass else: self._lock_file_fd = fd return None ``` I don't know why it stucked rather than `pass` directly. I am not quite familiar with filelock operation, so any help is highly appriciated. ## Steps to reproduce the bug ```python ds = load_dataset('xsum') ``` ## Expected results A clear and concise description of the expected results. ## Actual results ``` >>> ds=load_dataset('xsum') ^CTraceback (most recent call last): File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) OSError: [Errno 37] No locks available During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/load.py", line 818, in load_dataset use_auth_token=use_auth_token, File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/load.py", line 470, in prepare_module with FileLock(lock_path): File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 323, in __enter__ self.acquire() File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 272, in acquire self._acquire() File "/user/HS502/yl02706/.conda/envs/lyc/lib/python3.6/site-packages/datasets/utils/filelock.py", line 402, in _acquire fcntl.flock(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) KeyboardInterrupt ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-135-generic-x86_64-with-debian-buster-sid - Python version: 3.6.13 - PyArrow version: 4.0.1 Hi @liyucheng09, thanks for reporting. Apparently this issue has to do with your environment setup. One question: is your data in an NFS share? Some people have reported this error when using `fcntl` to write to an NFS share... If this is the case, then it might be that your NFS just may not be set up to provide file locks. You should ask your system administrator, or try these commands in the terminal: ```shell sudo systemctl enable rpc-statd sudo systemctl start rpc-statd ```
[ 0.1390440613, -0.3473014235, 0.0151471188, 0.0418611653, 0.0302763786, 0.090704754, 0.1623595655, 0.1356667578, 0.0592381507, 0.0936225057, -0.1010854244, 0.3403193057, -0.0329611972, -0.4240654111, -0.4592514932, 0.1141828448, 0.0069275438, -0.0698582307, -0.1149569228, -0.0138159525, -0.3595571816, 0.3968341351, -0.4249514937, 0.069836922, -0.2793180346, -0.0480348356, -0.1366251558, 0.3886514902, -0.168899253, -0.1395633817, -0.051724527, 0.0867063329, 0.0480410531, 0.5414588451, -0.0001142323, -0.1104708463, 0.0751494765, -0.0566151813, -0.3720931411, -0.0422808677, 0.14076069, -0.0910086483, -0.0822485834, -0.387473166, 0.2373985201, -0.3464205265, 0.1434784979, -0.2871146202, 0.4022386372, 0.2639312744, 0.144126296, 0.1482028216, 0.4175285399, -0.1780092567, 0.109513253, -0.4201950133, -0.0597185828, 0.6798744798, 0.7193905115, -0.1613604873, 0.017195804, 0.0855058432, -0.1482497454, -0.2049403191, 0.2320630401, 0.0193503816, 0.3815196455, -0.4401879609, -0.2167773098, -0.0676429346, 0.0476562642, -0.033116594, -0.4759554863, -0.1618112177, 0.427505523, -0.0776196271, 0.0674170926, 0.1474141777, -0.3159742653, 0.3756867349, 0.3556930423, -0.1153600961, -0.0145977372, 0.0721765012, -0.0632615611, 0.3086353838, 0.0281341057, 0.1370659024, 0.2627245784, -0.0308759343, -0.0805699006, -0.0226217452, -0.0786238313, 0.1791380793, -0.3750107586, 0.0532031506, 0.1346542239, 0.05768691, 0.0491893366, -0.2361772656, -0.344327569, -0.2468753755, -0.2653760612, 0.2343065888, -0.1037881672, 0.0391342007, 0.0564301684, 0.1757356524, 0.3515813649, 0.101571627, -0.1955173761, 0.0138689848, -0.0682473034, -0.2627125978, 0.1323339492, 0.291641742, 0.407789439, -0.1522003263, -0.0398684591, 0.2337806672, -0.3236959577, 0.0181073621, 0.1310848892, 0.2916448712, 0.110677436, -0.0809491277, 0.4470187724, 0.1683356017, -0.1455669254, 0.0815062299, -0.0896993279, 0.2096745819, -0.0342745334, -0.0005646034, -0.1708631217, -0.36302194, 0.0755963102, 0.3683513701, 0.2384223193, -0.3314392269, 0.2022264749, -0.1128127947, -0.1492998004, 0.1193967685, -0.1394650638, -0.0028863822, 0.3368237615, -0.2456145138, 0.1286298037, 0.1714387685, -0.3326622546, -0.1702174395, -0.244407177, 0.1446684748, -0.0669412389, 0.0573141687, 0.1982479244, -0.3010271192, 0.0458984114, -0.315223068, 0.1590230316, -0.3397694826, 0.1084699631, -0.1530379355, 0.0482601672, 0.4074997306, -0.1205242947, 0.2917505503, 0.1815026104, -0.1920052767, 0.1625550091, 0.0901743993, -0.0213393681, 0.1109135821, -0.4444103837, 0.0197575651, 0.1067387611, -0.5011027455, -0.5333338976, 0.0561694801, -0.4790899456, 0.0537879393, 0.1695949882, 0.4211781025, -0.0173681937, -0.1641703695, 0.2718979418, 0.0371413678, -0.0135011608, -0.1450968981, -0.1528098136, 0.0375402346, -0.0440818705, 0.1406923681, -0.0029504329, 0.1586374193, 0.1399628073, 0.0071285111, 0.5296828747, -0.1462130249, -0.267414093, 0.1628329158, 0.4794795215, 0.1399133652, 0.0850244015, -0.1591177434, -0.1892718822, 0.2522280812, -0.1989825517, -0.0743362308, -0.0725061372, -0.0764314681, -0.0437691249, -0.043534331, -0.0420150608, -0.0813652575, 0.1175976545, -0.0148884393, -0.1799628586, 0.0497145951, -0.1294881254, 0.4790839553, -0.4433473051, 0.2013790458, -0.1435981542, 0.0725169629, -0.1064024419, -0.2321330756, -0.2575787306, -0.0071406704, 0.2843230665, -0.1900355816, -0.2792274058, 0.4126048684, 0.2959448397, -0.1124271601, -0.2172021866, -0.2112119645, 0.1744601876, 0.3583769202, -0.230476439, 0.0148894954, 0.0837065578, -0.0612621345, 0.1202408448, 0.1285025477, 0.0746098459, -0.0397937112, -0.0832264945, 0.2109800726, -0.0251822025, 0.0652942955, 0.0204289071, 0.0194805302, 0.4611053169, 0.0080106631, 0.0624384433, -0.1079220846, -0.0518781394, -0.0763702095, 0.1907404214, 0.0570198931, 0.2793467343, 0.1884341687, 0.3128791153, 0.3672699928, -0.1931113154, 0.5885149837, 0.7208222747, 0.1016846299, -0.2875609696, 0.0199205671, 0.3027026057, -0.2104961276, -0.0469010957, -0.0330832303, -0.0418754853, 0.2120729983, 0.0586943217, 0.231149435, 0.203268677, -0.8740938306, -0.0125971623, 0.2340480536, -0.0049029244, -0.0489195995, -0.1694608927, 0.1353219748, 0.0601871759, 0.331235826, -0.0317487754, -0.3138141036, 0.1344855875, 0.4649531543, -0.0744783729, 0.0039709639, -0.3631460667, 0.0643608645, 0.1980469823, 0.1316607744, 0.1112058386, 0.0367515385, -0.0958560705, -0.0664244741, 0.1315073073, -0.0980742723, 0.2080141902, -0.0003201937, -0.0812264755, -0.4246043265, -0.1829684079, -0.0314673483, -0.1735012829, 0.4597561061, 0.0567155592, 0.3035485148, -0.0233456884, 0.0249482151, 0.1383039802, -0.0979300812, -0.07827764, 0.0798410773, 0.0149582652, -0.0715148151, -0.3844695389, -0.034708064, -0.3898949027, -0.5175121427, 0.143366769, -0.1855087429, 0.0664419755, 0.3325221539, -0.1523124278, 0.4005429149, 0.1016703919, 0.1809339374, 0.143960461, -0.292670697, 0.2969044149, -0.0858425424, -0.4228858054, -0.3153538704, 0.0855031163, -0.473782897, -0.1134321317, -0.2983642817, -0.5243881345, -0.349429816, 0.0939467326, -0.5529788733, 0.0196179226, 0.1618084759, -0.2451499701, -0.0653789192, -0.2333384156, 0.1794313192, 0.1334122717, 0.0864113271, 0.1263543516, 0.0655041859, 0.0586766414, -0.0067033214, 0.3639447689, 0.1085518003, 0.2269397974, 0.2979879677, -0.0920614526, 0.268489182, 0.0239150692, -0.2958974242, -0.2039774954, 0.2649236619, -0.232086882, -0.1843945235, -0.0148584619, 0.2902782857, -0.1478253305, -0.3533306122, -0.2893272936, -0.3504852057, -0.0850317851, 0.422771275, -0.0989022031, -0.124648802, 0.1201507449, 0.1084766239, 0.1586569846, 0.0896880776, 0.5906792283, 0.412156105, -0.1058214158, -0.0802932158, -0.1968013197, 0.0326538421, 0.3254835308, -0.0353328399, 0.2591305673, -0.0896729678, 0.0270839576, 0.1045221463, -0.1417987198, 0.43863976, 0.3848526478, 0.1384623647, 0.0464404225, 0.1160206497, -0.0257855542, -0.1277818233, -0.2922455966, 0.2406883985, 0.458838433, 0.3851802349, -0.0347465128, -0.05584535, -0.2660074532, 0.1702411175, -0.219280988, -0.6137133241, -0.0278827213, -0.1019436121, -0.4393641055, 0.1196118072, 0.0954026654, 0.1485134512, -0.017836567, -0.0758679956, 0.2558479011, -0.2038924694, 0.0230453331, -0.0956966877, 0.0668250769, -0.1188013554, 0.1291120648, -0.0056658112, -0.3534395397, 0.3384055197, 0.228788197, 0.2727630436, 0.0599869415, 0.2580750585, -0.2394796908, -0.0094575956, 0.2725380957, -0.2674666941, 0.1491401941, -0.0385686085, 0.2362752259, 0.1778627485, -0.250051111, 0.2482467443, 0.0410698056, 0.0385385081, 0.0458143912, 0.0593945645, 0.1177943647, -0.0741812959, 0.7165988684, 0.41439116, 0.0822595432, 0.3143225312, 0.0100757172, 0.7889759541, 0.0115478765, -0.0575823337, 0.2241939157, -0.0027720674, 0.3785949945, -0.1774417162, 0.1131702885, -0.3271005154, -0.5434802175, 0.1170889959, -0.2865745425, 0.4315250814, -0.4660893083, -0.0726577938, -0.0296697859, -0.3799651861, -0.4223930538, 0.0227128826, 0.0103900433, -0.8001111746, -0.0394978151, -0.1688692123, 0.1111009493, 0.1646430343, 0.3454257548, -0.1081510857, -0.1112471595, -0.3464570642, -0.169393152, -0.3626002073, 0.1279754192, 0.0296594463, 0.2635753453, -0.0892512575, 0.0973385647, -0.0544370711, 0.4668442011, -0.0660160035, 0.251654774, 0.0980863348, -0.0213680994, 0.0322905481, 0.0524958074, 0.2574521601, -0.0581386536, 0.5052597523, -0.0395310931, -0.1861051023, 0.2242101431, -0.1182095855, -0.2262898386, 0.019778071, 0.1649946719, 0.0535587743, 0.0207640734, -0.3287981153, -0.3234477639, -0.24973993, -0.1183943152, 0.0701757297, 0.2645714879, -0.2806159556, 0.0412966274, -0.2572525442, -0.2472550124, 0.0778117254, 0.2369468957, -0.135496974, -0.156250596, 0.735230267, 0.3345284462, 0.0765156373, -0.0932232514, 0.1682738513, -0.1857691854, -0.310703665, 0.1218742654, -0.1181885153, 0.2336873114, 0.1547019631, 0.1354113221, 0.1855074167, -0.1656294912, -0.0478426069, -0.8504986763, -0.375093013, -0.1020793319, -0.2187471539, 0.0418165252, -0.1938308328, -0.0538673885, -0.1249257326, -0.1879477948, -0.2676636577, 0.0953267366, -0.3377146125, -0.1140250117, 0.2787426412, 0.1326110959, -0.0353810862, 0.0669253767, 0.1483338922, 0.4477182031, 0.0377087183, -0.1106638238, -0.2386960536, 0.1802296937, -0.0075025116, 0.0598252453, 0.1673073918, -0.4267771244, -0.0159849133, 0.1985914558, -0.1804460585, 0.1699616164, 0.0499134585, 0.1316350549, 0.4090230167, 0.3865374625, -0.0312671475, 0.2474778891, -0.1597065479, -0.0531046204, -0.0117534455, -0.0375697762, -0.3258425891, 0.0814676806, -0.6099711061, -0.2135708928, -0.0352857858, 0.2961656153, 0.2289547473, -0.052655261, 0.2311436087, 0.3749025166, 0.3837082982, 0.1908658147, -0.1463356763, 0.1729479283, 0.1554069519, 0.1978396028, -0.0282336976, 0.0028655191, 0.2605314553, 0.116846405, -0.2426861525, 0.1361648291, -0.5636629462, -0.0344673581, 0.0085773375, 0.0550475568, -0.0534489416, 0.1351454407, -0.0505977906, 0.0278799925, -0.0216870643, 0.0026912375, 0.22837466, -0.1127718985, 0.1167695671, 0.2027148306, -0.3984923065, -0.0443700291, 0.038787894, 0.0246718694, 0.2728333175, -0.396920234, 0.317088753, 0.0065244185, 0.1835426539, -0.1422094703, -0.1942428201, 0.1280910373, -0.2384288609, 0.1914544702, 0.2233334482, 0.3583883643, -0.1798891574, 0.3329328001, 0.3796784878, -0.0558154285, 0.0767565295, -0.219826296, 0.0660910979, 0.0864092112, -0.2148160636, 0.342777729, 0.0418097973, -0.3922553957, -0.448530674, 0.2099495232, 0.3679637313, -0.3328233659, -0.2037755996, 0.5172691345, 0.1183423996, 0.3015900254, -0.0462850407, 0.3640756607, 0.5558553338, 0.0813662931, 0.3179982305, -0.1306934655, -0.004329802, 0.0670642033, 0.374181509, 0.1950094849, 0.0765067562, 0.2795681655, 0.1557220072, -0.247097373, 0.1012523994, 0.0990156233, 0.2535738051, -0.2710578442, 0.2363587171, 0.1587242335, -0.1288725287, -0.1093389839, 0.0350659378, -0.2995654941, -0.0277636629, -0.0843696296, 0.2166171819, 0.0319532156, -0.0139267985, 0.0988720059, -0.0031073312, -0.3188240528, 0.5872224569, 0.225666374, -0.3283103108, 0.1795732677, -0.5215360522, 0.332536459, 0.1587111503, -0.4344835877, -0.107568115, -0.0355028249, -0.0812783912, -0.0342818014, 0.5500482917, -0.1895498186, 0.18381387, 0.4769850075, -0.2052764744, -0.2011802793, 0.1557515711, -0.198818326, -0.0595368035, -0.1038195416, 0.0095434999, -0.4522988796, 0.1238265112, -0.0814457983, -0.5590344071, -0.0229629595, -0.0602848791, 0.257127136, 0.1017162204, 0.3643160462, -0.1040785089, -0.3773124218, -0.1476342678, -0.1132520288, 0.048495017, -0.3111389577, 0.0286666844, 0.3408143222, -0.3522244692, -0.413569361, -0.4027698934, 0.430785805, -0.4707100093, -0.405911535, -0.5092319846, 0.3551385105, -0.058661297, 0.0347451679, 0.2844442427, 0.3230706155, 0.2075725198, 0.3168868423, -0.406381458, -0.1496328115, 0.6324788332, -0.5143605471, -0.0433191471, 0.1410469562, 0.4048155248, -0.0384847596, -0.1438572854, -0.0502864234, 0.0080291303, 0.3262681663, 0.0352987275, -0.1190954372, 0.0173805952, 0.0460167117, -0.0275522768, 0.0891543627, 0.1260187179, 0.0651956424, 0.1504258662, 0.3225907981, 0.0388341732 ]
https://github.com/huggingface/datasets/issues/2615
Jsonlines export error
For some reason this happens (both `datasets` version are on master) only on Python 3.6 and not Python 3.8.
## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1
19
Jsonlines export error ## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1 For some reason this happens (both `datasets` version are on master) only on Python 3.6 and not Python 3.8.
[ -0.3504131138, 0.1333581656, -0.0069016716, 0.3097095191, 0.0389033817, 0.0805481821, 0.2188648731, 0.3883451223, 0.0006039952, -0.0402303115, 0.323100239, 0.0345941819, 0.0673165172, 0.0446975082, -0.1680246592, -0.1674066037, 0.2194831222, -0.0308502372, 0.0336684026, 0.2225419581, -0.2770713866, 0.3025196791, -0.1921599209, -0.2260366529, -0.3988593817, -0.2168713361, 0.1474186778, 0.0140270116, -0.0263660885, -0.528249383, -0.0391153283, -0.2388435602, 0.4440395236, 0.5343338251, -0.0001208482, -0.1544706076, 0.3335987031, 0.0061301589, -0.2074823529, 0.0264418721, -0.4390986562, -0.32505247, 0.0626770929, -0.3321589828, 0.4254890382, -0.0433255099, -0.356161803, -0.4652175307, 0.6484057903, 0.4455589056, 0.127259627, 0.0488450788, 0.0954688787, -0.0134070469, -0.0303339306, 0.1398148686, -0.0270306598, 0.1463216543, -0.1673423201, 0.2741566896, 0.2642326355, -0.0571530424, -0.1586716473, -0.2541065216, -0.1199238524, -0.0854105577, -0.0593049824, -0.2858146727, 0.1833255887, 0.4000857174, 0.1188575774, -0.1941764206, -0.212275967, -0.3544604778, 0.1109924614, -0.5715143085, 0.0593009293, 0.5090208054, -0.0011916356, 0.10803698, -0.2637679279, -0.1144100577, -0.2154252976, -0.0444664508, 0.0033298654, -0.1853812635, -0.1245927513, 0.0236598291, -0.1236832365, -0.0916754082, -0.0017675528, -0.2792039514, -0.5480951667, -0.0483758934, -0.1531422585, 0.071925737, 0.168317467, -0.4102764726, 0.0765407681, -0.1706938744, 0.2756135464, -0.3768745363, 0.2522148788, 0.0399433933, 0.5629560947, 0.1241346747, 0.3155887723, -0.0116557358, 0.2348293513, 0.0134434942, 0.0630374923, -0.0512273051, 0.0182549972, -0.1685531288, 0.1308632493, 0.0527189113, 0.0156177925, -0.0881920606, -0.0524230711, 0.1799783111, -0.3575303257, -0.1791660786, -0.2505484819, -0.1906238049, -0.0992806032, 0.2618556917, 0.1635038704, 0.2956346869, -0.1717634648, 0.0063081589, -0.0204489343, -0.1102862135, -0.0897184685, -0.0236230996, -0.0731948391, -0.233714059, -0.012697191, 0.2607292831, -0.0713083073, -0.2439556867, -0.0935665667, -0.0429425836, -0.1192920282, 0.2015205324, 0.3051171005, 0.1432211548, -0.1321808845, -0.1420607865, -0.0551184118, 0.1836931407, -0.4487806559, -0.0509722307, -0.3994897008, 0.130358234, -0.1831216961, 0.1322419047, -0.4531032145, -0.0757280588, 0.1063632965, 0.10563723, 0.3775989711, -0.3547274768, 0.5717494488, -0.2804208696, 0.0224843621, 0.2825923562, -0.713241756, 0.0905747637, 0.0787857249, -0.0180386752, 0.4428822696, 0.3599770069, -0.0533611439, 0.3268299699, -0.1179180667, 0.2507767081, 0.1492946446, 0.1822725832, 0.0733189061, 0.4902763963, -0.0750966519, 0.0082652969, -0.0178807788, -0.3451777399, 0.6365371346, 0.1081677452, 0.523819387, 0.3789551258, 0.0567400195, 0.247142911, -0.1749352664, -0.1934178174, -0.0582299717, -0.1998624951, -0.3382234275, -0.0477834605, 0.1436717659, -0.2043280751, 0.3136584163, -0.246869728, 0.1187638268, 0.4237190485, 0.1386942714, 0.1213782132, 0.0007521855, 0.2297508419, -0.4470792711, -0.1484592855, -0.1031329185, -0.158256188, -0.1408946067, -0.0262279473, 0.2096291482, 0.2228933424, -0.0618906133, 0.1483444721, 0.0206856094, -0.1179928258, -0.0828324705, 0.2088546902, -0.043920517, 0.1072658747, 0.1892151237, 0.0468166843, -0.2518902123, 0.3014492393, 0.242079854, -0.232503593, 0.2049761266, 0.1209195927, 0.1598199159, -0.3047866523, -0.1392451078, 0.2068884969, 0.0553344153, -0.0437617935, -0.2117635757, 0.0500008985, 0.1228870153, 0.1427296847, -0.1562664658, 0.2958237231, -0.0600601807, 0.0939997435, -0.066373378, 0.6036193967, -0.1680671126, 0.3515252471, -0.0444828942, -0.0093332315, 0.2048703283, -0.1004328132, -0.0489794239, -0.2392226905, 0.2890396416, 0.2199496776, -0.1189387739, 0.0350223891, -0.2944985032, 0.0433701277, 0.6203617454, 0.0286877155, 0.0749296397, 0.2449775189, -0.0279282257, -0.0106856814, 0.0029469237, 0.11934755, 0.3418052793, 0.1002833843, 0.0062350873, 0.1227352768, 0.2248273641, -0.0821280181, 0.2882923782, 0.1530651897, 0.3440402448, 0.2973321378, 0.1898808628, 0.1800427884, -0.1405836344, -0.3945009708, -0.2151727974, 0.0726257265, -0.3205606639, 0.3570818901, -0.1810528338, -0.0075613656, -0.4912694693, -0.4257614613, -0.2852298915, -0.3221097589, -0.1869160235, -0.1177200526, -0.4756628573, -0.1666972637, -0.1625769138, 0.0679475591, 0.1090961546, -0.0620148331, 0.0807454064, 0.007107568, -0.1285309345, -0.1226082966, -0.031430129, -0.2198491395, 0.0281816516, 0.0962629989, 0.0953903198, -0.0799173862, 0.1263900846, 0.1485721469, 0.0225122105, -0.0986569002, 0.1772814393, 0.1919340193, 0.0379260182, -0.5070131421, 0.0441145413, 0.1346118301, 0.0048049828, 0.1715757847, -0.0695157722, -0.1623261571, -0.0968116596, -0.053037148, -0.023268003, -0.3681436479, 0.4280723333, -0.1050024554, 0.0783651099, -0.0927588418, 0.1251446456, -0.0520540178, -0.0536763296, -0.287979275, 0.2134601921, -0.4409475923, 0.0076129385, -0.2837552726, -0.2592485249, 0.1172972172, 0.1513833106, -0.0292777307, 0.0501039587, -0.3940512836, 0.5075173974, -0.1001565829, 0.3795500696, -0.123144567, 0.1970722973, 0.1210308447, -0.0695039332, -0.0169989653, -0.0407807343, 0.1108447015, 0.1125227138, 0.0556514747, 0.4821351171, -0.0872535706, 0.7164244056, -0.2381188422, -0.1243975759, 0.805113852, 0.1623541415, 0.2087132186, 0.0996944457, 0.1702731848, -0.142987743, -0.0274128616, 0.0307168402, -0.123237811, -0.1478365362, 0.1717357934, 0.0345603637, -0.1530415118, 0.0378618352, -0.010810826, -0.3851906955, -0.3762855828, 0.2383836657, -0.1005228758, 0.327231288, -0.3106666803, 0.0180649366, -0.026073521, 0.0866976678, -0.2485885322, -0.039186094, 0.22624439, 0.121807158, -0.5017976165, -0.3746836483, -0.4901305735, 0.2143227756, 0.0604574084, 0.6483103037, 0.1418089569, 0.0654698238, -0.0685710981, -0.0753922984, 0.637969017, -0.0187665392, -0.2247713655, 0.2450766116, 0.3232689798, -0.2799645662, -0.131570667, 0.1515453756, 0.2155802399, 0.8975411654, 0.059787821, -0.2848916352, -0.0003901926, 0.2221136838, 0.310757786, -0.1043006554, -0.265248239, -0.1747551858, -0.1859595627, -0.0746013299, -0.2814919055, 0.1014091596, 0.4137972295, -0.157634601, -0.1487755775, 0.0687110499, -0.343781352, -0.0412045866, 0.0084778266, 0.2232958674, -0.0842653885, 0.1385912448, -0.0246470124, 0.2563931048, 0.4521254897, 0.3058807552, 0.0356717221, -0.4467420578, -0.0822939798, -0.2442293763, 0.3771301508, -0.0825342536, -0.2151095718, 0.1014143452, -0.0907823294, 0.3834986389, 0.1219995692, -0.3035017848, 0.3149874806, 0.0513521433, -0.8291916847, 0.0223531444, 0.3281481564, 0.0547031127, 0.2725344598, 0.1803308278, -0.2888333797, -0.3916205764, 0.1753713191, -0.18076846, 0.5057510138, 0.4422093034, 0.1994862109, 0.0818072185, -0.4618528783, 0.6346324682, 0.1170890704, 0.0573920533, -0.2433633059, 0.4591760039, 0.1332219839, -0.1751399189, 0.1018057093, 0.0069228252, -0.1019011214, 0.0277278367, -0.5292729139, -0.2904350758, -0.2342904061, -0.0197918788, 0.1661036313, -0.2177008092, -0.519982636, -0.0114515554, -0.0364232771, -0.2229023427, -0.0615966283, -0.214888826, 0.0885428414, -0.1690395176, -0.4068054855, 0.1753612161, 0.0427625068, 0.1383469999, 0.3813124299, -0.2322728187, 0.1784356833, -0.1881960928, 0.2385400981, 0.1239833459, 0.0410765633, -0.0559254698, -0.0737751722, -0.0862136632, 0.103248395, -0.0203392189, 0.161180079, -0.056209866, -0.1563476771, 0.1622190922, 0.0425421745, -0.2514263093, -0.0624587983, 0.2822570801, -0.2384872437, -0.3111317456, -0.1231717467, 0.0842906386, 0.2433491945, -0.1255084872, 0.0237615462, 0.2197464854, 0.0179517884, 0.3015410006, -0.3990695775, -0.2024071962, -0.2789298594, 0.1237438619, 0.0286226831, -0.2644251883, 0.2547754943, 0.552282989, -0.1724934131, -0.054852467, 0.4613580704, 0.2994168997, -0.4373067021, 0.5468575358, -0.1161937416, 0.2572835088, -0.0647382066, 0.4393742383, 0.024630785, -0.0039304243, 0.1056318209, -0.4127843082, -0.159641698, -0.0561251231, 0.1559865773, -0.015146181, 0.0502726994, 0.4513688982, 0.073348105, -0.2226615697, -0.1254233867, -0.0003818808, -0.1558340639, 0.0274692737, -0.0910621732, -0.0516920611, 0.0702702403, -0.0788922682, 0.023713015, 0.0943360925, -0.0427359156, -0.0913175941, -0.3859697878, 0.1511210054, 0.1576990783, -0.2384631634, 0.1840201914, -0.028054174, -0.2168808579, -0.0194973499, 0.2399762422, 0.0084567666, -0.1093644574, -0.0348286778, 0.0417550206, -0.1395688802, -0.0450165011, 0.0915860757, 0.2478059679, 0.6310983896, -0.0039620986, 0.4617322385, -0.0837523341, -0.0817988738, -0.444719404, 0.036529921, -0.1844370216, 0.368432045, 0.1258167475, -0.7131573558, -0.0333924554, 0.3153313696, 0.1713234186, 0.3518639505, -0.2561753392, 0.0928814113, 0.0609296747, 0.1493955702, 0.0489138402, -0.1838425547, -0.0148722371, 0.1542603672, -0.2073803246, 0.0270515233, -0.105536744, -0.3753693402, -0.218496576, -0.0562069453, 0.3148273826, 0.1969403625, 0.3010075092, 0.3379615247, 0.1170072705, 0.171570614, -0.0953870788, 0.235303089, 0.1874187142, 0.0852254406, 0.2191604227, -0.0530834533, 0.5097365975, -0.1636622548, -0.132775113, -0.5077130198, -0.0629224405, -0.0243231393, -0.110836871, 0.2969661653, 0.1731537133, 0.1295633167, -0.2328274548, -0.0546787195, -0.1317438632, 0.135482192, -0.1146020293, 0.0271172244, -0.1979805529, 0.0300393458, 0.213983357, 0.1403459907, 0.0250708684, 0.2218135446, -0.1614846736, 0.2566998899, -0.0148265632, -0.4643138647, 0.1446289569, -0.0962819308, 0.203068018, -0.3048177063, 0.0698806122, 0.1747233868, -0.0594312772, -0.1174419448, 0.1270093769, 0.6228163838, 0.3317956626, 0.2254388928, -0.152367413, -0.18559964, 0.1193914339, 0.0882170945, 0.138041243, 0.2320009768, 0.0738766789, 0.1868021339, 0.027762467, -0.0597375222, 0.3779554069, 0.1256995499, 0.1086774468, 0.0675296634, 0.2136915773, -0.1539221406, -0.1720200628, -0.44781968, -0.1431652606, -0.2603187859, -0.039032042, 0.4155709743, -0.0776904672, -0.1089190468, -0.1110054404, 0.0211323407, -0.231280759, 0.4254666269, 0.3163936734, 0.3585677743, -0.0846130401, -0.1597926766, 0.1236490905, -0.0332795344, -0.332306087, 0.3897255957, 0.3716344237, 0.2889093757, -0.2752664685, 0.0416819938, 0.243531689, 0.6358325481, -0.5123928785, -0.0114976848, -0.4014297724, 0.0414300039, 0.4235149324, 0.0521733575, -0.135928154, -0.1739706695, 0.4652429223, -0.1783282757, -0.0755835772, -0.1921004355, 0.1029093042, -0.0304348096, 0.0116673913, 0.0697246343, 0.4269152284, 0.0840983987, -0.0229898896, -0.2913000584, -0.3464737535, -0.1918720454, 0.043245282, 0.2732582986, 0.2471269369, 0.536934495, -0.1444127113, -0.0654273853, -0.257061094, 0.2039142102, -0.0345536917, -0.3771500289, -0.0903438777, 0.0467708744, -0.0981632695, 0.0540514588, 0.2709196508, 0.2368744612, -0.0699155256, 0.2132073343, -0.0019539408, -0.2278086841, 0.0939571187, -0.4700142741, -0.3610373735, -0.0471689664, 0.289559871, 0.1970520169, -0.0877745971, -0.1467588395, 0.1632644087, 0.3798914552, -0.1767863929, -0.3856871128, 0.2137867212, -0.1509813964, -0.0710371956, 0.2052474767, 0.357263118, 0.2654608488, -0.4532505274, 0.2572437525, -0.0953832567 ]
https://github.com/huggingface/datasets/issues/2615
Jsonlines export error
@TevenLeScao we are using `pandas` to serialize the dataset to JSON Lines. So it must be due to pandas. Could you please check the pandas version causing the issue?
## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1
29
Jsonlines export error ## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1 @TevenLeScao we are using `pandas` to serialize the dataset to JSON Lines. So it must be due to pandas. Could you please check the pandas version causing the issue?
[ -0.3529365957, 0.13444525, -0.0139708584, 0.26991117, 0.0913658589, 0.0805773661, 0.275898993, 0.42092067, -0.0012246571, -0.054687053, 0.3439743519, 0.0168314911, 0.1050094962, 0.1663787067, -0.2123270035, -0.219845593, 0.2366725057, 0.0008693534, -0.0046990626, 0.2111836821, -0.2990747094, 0.2603416145, -0.1727562845, -0.1527431011, -0.4317584038, -0.3298730552, 0.0938418955, -0.0441340283, 0.0058598081, -0.4725072384, -0.042333331, -0.2630416453, 0.4676561356, 0.5261772871, -0.0001195658, -0.1944762468, 0.3220655918, 0.0135894399, -0.1867633611, 0.0544614419, -0.4758794308, -0.3755785525, 0.0264105238, -0.3169335723, 0.4677457511, -0.1366833001, -0.3192305267, -0.3943059742, 0.6600257754, 0.3750501871, 0.1458732188, -0.0116168046, 0.1228370517, 0.0027564059, -0.185516879, 0.1420014203, 0.0120760379, 0.1403747648, -0.1949197203, 0.2560220063, 0.2439372092, -0.0405930243, -0.1299277097, -0.2738689482, -0.1651040018, -0.1033716425, 0.0106682098, -0.2650200725, 0.2222116441, 0.388964504, 0.2334924191, -0.1778816283, -0.2301109582, -0.3413920701, 0.0876551718, -0.5814915895, 0.0522422642, 0.4974865317, 0.0348250493, 0.1073146015, -0.1599737257, -0.0986205861, -0.2680466175, -0.0571155772, -0.0128141437, -0.2351783216, -0.1353159249, 0.0022889441, -0.2164379656, -0.1658332795, -0.0493838154, -0.2810891569, -0.4807431102, -0.0021581834, -0.2009214908, 0.0675937831, 0.1232376844, -0.5326530337, 0.0609984621, -0.0570520163, 0.3082894683, -0.3318083882, 0.1842784733, 0.0480580814, 0.5355819464, 0.2027212381, 0.2703157067, -0.0536257774, 0.285700649, 0.0064848834, 0.0928444341, -0.0749025419, -0.0085742725, -0.2188672721, 0.0825404003, 0.014951705, 0.0333818421, -0.0884099454, -0.045793172, 0.2381829619, -0.3975784779, -0.1502702683, -0.2566152215, -0.1565059572, -0.1036847234, 0.304549545, 0.1440954953, 0.2482614517, -0.0999799743, 0.0432457328, -0.0405064896, -0.0961542204, -0.0510435849, -0.041715689, -0.0598883182, -0.1935316324, -0.0223590825, 0.2295276225, -0.1399097443, -0.2545552552, -0.1193479002, -0.0958458856, -0.1304169148, 0.1919520944, 0.2618644834, 0.1400865912, -0.1878332496, -0.1636244357, -0.0112475231, 0.185389027, -0.4196415544, -0.0066011176, -0.4253168404, 0.138352409, -0.1044836789, 0.1367472261, -0.4679190218, -0.0312339291, 0.1029538736, 0.168115899, 0.4023903608, -0.2843469977, 0.5852188468, -0.2737247944, -0.0134123778, 0.2795957029, -0.7273978591, 0.0780292153, 0.1663562059, -0.0066936701, 0.4735565186, 0.4228543639, -0.0087972749, 0.3183481097, -0.0838812366, 0.2450966686, 0.0956279263, 0.1964690089, 0.0790032819, 0.5843225718, -0.0501274467, 0.0050993892, 0.080804348, -0.3214186728, 0.5988570452, 0.1140357777, 0.4622334242, 0.3923931718, 0.0614678897, 0.2183373868, -0.1816774607, -0.2373980731, 0.0264634397, -0.2356801033, -0.2884986103, 0.005860344, 0.1468085796, -0.1964566559, 0.3013795316, -0.2460612208, 0.1070939526, 0.4218324125, 0.138818875, 0.1713828146, 0.0404159278, 0.2613674998, -0.3996379077, -0.2026008219, -0.1755857915, -0.1705565304, -0.1746133566, -0.061129719, 0.1994911283, 0.2102855295, 0.033750575, 0.1846898943, 0.0434004553, -0.152893275, -0.1080068275, 0.2392736226, -0.0202545505, 0.2720685303, 0.1215365529, 0.0703212246, -0.2877204418, 0.2894144654, 0.195118919, -0.2047724128, 0.2890509069, 0.1089506596, 0.1802470833, -0.329868257, -0.1243566349, 0.250678122, -0.0237741526, -0.0298401769, -0.1105637029, 0.0919205323, 0.1511951685, 0.1865120083, -0.1851966232, 0.2800286412, -0.0211611036, 0.0737263262, -0.1132219806, 0.5642179847, -0.2457128912, 0.2829080224, -0.0625572503, -0.0128165409, 0.3005698323, -0.0625314787, -0.0879971981, -0.1714465618, 0.2660799623, 0.163194105, -0.1138843894, 0.0562230684, -0.4401578307, -0.0516487695, 0.5020250678, -0.0390512981, 0.1236079261, 0.218270421, 0.0230585467, -0.032823801, 0.0820227265, 0.0920968726, 0.2714563906, 0.1238181591, -0.0892975479, 0.0432208069, 0.1545458585, -0.077439107, 0.2806868255, 0.1741724312, 0.2688158751, 0.2540611029, 0.1505661905, 0.1775212437, -0.1411738396, -0.3314295411, -0.1864494383, 0.1115687937, -0.3104500175, 0.3321205676, -0.2076400816, -0.0999992117, -0.4491667151, -0.3982091844, -0.2386238873, -0.2300269455, -0.2367466092, -0.119083181, -0.4333933592, -0.0752877966, -0.1449391693, 0.0991035998, 0.1697899401, -0.004573545, 0.0295289923, 0.0061935172, -0.0869574696, -0.0757522136, 0.0253165551, -0.1559322178, 0.0153031647, 0.1156512648, 0.1703985631, -0.0613915138, 0.167965889, 0.0688269362, -0.0236093011, -0.1093087271, 0.1402522326, 0.2671137154, -0.0551958904, -0.5096027255, -0.0115267541, 0.1602482498, 0.0281433873, 0.1368241906, -0.1092099771, -0.2188173532, -0.070295617, -0.0341576971, -0.0018331821, -0.3069933951, 0.4799242616, -0.0855260491, 0.0724559426, -0.052704718, 0.1263265014, -0.075928472, 0.0402937159, -0.2723293602, 0.1749478728, -0.4066646695, 0.0378726907, -0.2577098608, -0.2774898708, 0.1150118709, 0.1448029876, -0.0473123454, -0.0669011474, -0.3617932796, 0.5396342874, -0.1307224184, 0.3153799474, -0.150994435, 0.1408164054, 0.1063911766, -0.0515443869, -0.0481921434, -0.00955215, 0.120177798, 0.1875935644, 0.0448184423, 0.4433205128, -0.041381117, 0.7773234248, -0.1926977485, -0.2444994152, 0.789844811, 0.13163504, 0.2115893066, 0.1151453033, 0.1390174031, -0.1353594661, -0.0279304497, 0.0455649383, -0.1468819082, -0.0766203478, 0.1834485978, -0.0149411345, -0.118060872, 0.0647344738, -0.0425784998, -0.3984566033, -0.3288907409, 0.1766890138, -0.0940921754, 0.3057632148, -0.2974821031, -0.0212457553, -0.0664559081, 0.0871307999, -0.196818769, 0.004138967, 0.227421239, 0.1077060476, -0.4807263315, -0.4307636321, -0.5369926095, 0.2102300078, 0.0410191156, 0.7110475302, 0.1348101348, 0.1258120239, -0.0493268035, -0.0679450855, 0.7193498015, 0.0377154872, -0.2552365959, 0.1822211444, 0.3052654564, -0.2205705643, -0.0752840191, 0.1674724817, 0.2276560813, 0.7511648536, 0.0254303422, -0.2779779732, -0.0177202336, 0.257080853, 0.2692542076, -0.1374403834, -0.2642754614, -0.1753083467, -0.1455648839, -0.0927021801, -0.2050187886, 0.0776111931, 0.4493769705, -0.1585991085, -0.1447979212, 0.0166420396, -0.4110097587, 0.0234441459, 0.0332662836, 0.2265168875, -0.0339941457, 0.1226978227, -0.0917231143, 0.318051517, 0.5115271211, 0.1914929599, 0.0366322882, -0.3783223033, -0.0597483553, -0.3364689052, 0.3730207384, -0.0945394933, -0.2697618306, 0.089024581, -0.1225716025, 0.3454495668, 0.0978462324, -0.3196590245, 0.3448729515, 0.1271497607, -0.8693087697, 0.040329542, 0.3497122228, 0.0754916146, 0.2559959292, 0.1632465869, -0.2913646102, -0.4001287818, 0.1954011619, -0.2215898037, 0.5349746943, 0.400005132, 0.1256388277, 0.0780603662, -0.4380119741, 0.6267951131, 0.1097602472, 0.0620517507, -0.2052248269, 0.3821623027, 0.0868348479, -0.1458933204, 0.199617058, 0.0108881053, -0.0975733697, 0.0620531663, -0.5207386613, -0.2721305788, -0.210389331, 0.0633193627, 0.2039901316, -0.2107550949, -0.5702715516, -0.0021739949, -0.0607880577, -0.2533458769, -0.067055434, -0.2045767754, 0.0590338074, -0.1251278222, -0.3649453521, 0.0907055587, 0.1318022758, 0.2061831951, 0.3368250132, -0.1952326894, 0.1447538286, -0.1788709611, 0.295581311, 0.1077706516, 0.0045015719, -0.0674385875, -0.1130901203, -0.1078403741, 0.0571678653, 0.0388852805, 0.187639609, -0.0155579969, -0.1259190738, 0.193814829, 0.0704369545, -0.1935292482, -0.0962936282, 0.20299007, -0.2946881652, -0.329508096, -0.1623879522, 0.0329158045, 0.232455492, -0.1372099668, 0.0390671976, 0.1924269497, 0.0280411821, 0.3296633065, -0.3757059574, -0.1614170969, -0.3390890062, 0.1104763076, 0.0222627129, -0.1946792305, 0.2751017511, 0.5374059677, -0.2416734099, -0.0429456905, 0.4625181556, 0.320199728, -0.4603796303, 0.5341433287, -0.0770807937, 0.2449525297, -0.120336026, 0.4825565517, 0.0772648901, 0.0012954569, 0.1211181358, -0.3984120488, -0.2224572301, 0.0035765641, 0.1803528965, 0.0048177387, 0.0767067522, 0.5469903946, 0.0969509333, -0.2241240293, -0.1405325234, -0.0130534451, -0.2337540537, 0.0333457403, -0.0965531096, -0.032213293, 0.0356990956, -0.0731008202, 0.0366534926, 0.1145423055, 0.0164361522, -0.1236488149, -0.3727947474, 0.1271932721, 0.1557140499, -0.2110015303, 0.1434063166, -0.0033736019, -0.2501891255, 0.0102503235, 0.1792969555, 0.061912436, -0.0944194868, -0.0458824784, 0.1153456494, -0.161063537, -0.0681881681, 0.1086583138, 0.202546522, 0.5488925576, 0.0119073829, 0.4053370059, -0.071657896, -0.0732143, -0.4471325576, 0.0277350955, -0.2039410472, 0.3001710176, 0.1436183453, -0.7271794081, -0.0998679474, 0.3671341836, 0.1616155356, 0.2915071249, -0.242712155, 0.0772215873, 0.046941597, 0.1624556184, -0.0157323945, -0.1802331805, -0.0087849339, 0.0827630386, -0.1923855245, 0.0270685107, -0.0308606513, -0.4143473506, -0.1752534658, -0.0408898704, 0.3402952254, 0.1533825397, 0.2932589948, 0.3838328719, 0.1860471964, 0.1612791717, -0.0830128267, 0.3084391952, 0.1719074696, 0.0413556546, 0.2358127385, -0.1518708318, 0.5499085188, -0.0797494128, -0.2109910846, -0.4842015505, -0.1013556644, 0.0385556147, -0.2127791792, 0.2878960967, 0.1786763072, 0.1412260979, -0.2053215951, -0.0585110597, -0.1316245645, 0.1469825506, -0.1549757123, -0.0191581976, -0.216570273, 0.0453938544, 0.2118904442, 0.0991671905, 0.0438985825, 0.2256009132, -0.287689954, 0.2112774253, -0.0219826214, -0.4377117753, 0.114483282, -0.1112746373, 0.2158976942, -0.2742502093, 0.042808041, 0.1431733817, -0.0642307401, -0.0831958726, 0.1545314938, 0.5885648727, 0.2697699666, 0.2648821473, -0.1208003089, -0.170635879, 0.1073352396, 0.174276799, 0.1686103046, 0.2314850241, -0.0136457356, 0.1752025336, 0.0392279215, -0.0672090501, 0.3838609159, 0.1897577345, 0.1100058481, 0.0028359354, 0.1769018322, -0.1984808296, -0.1982293725, -0.4200226068, -0.1710660756, -0.2558768988, -0.0049825539, 0.3394450545, -0.1537773907, -0.1319399178, -0.0998609364, 0.0291871279, -0.2728424668, 0.4100107551, 0.3090418875, 0.3422877192, -0.0362544693, -0.1375626475, 0.1079029366, -0.1108529568, -0.2709165812, 0.3840441108, 0.3714984655, 0.2755206525, -0.2814261913, -0.0565953963, 0.246570617, 0.615726769, -0.5056513548, 0.01200194, -0.3906678855, 0.1191623583, 0.3668137789, 0.0803157091, -0.1651150286, -0.1229630634, 0.4900049567, -0.1206820905, -0.0789342448, -0.1198878512, 0.0980635509, -0.1092526168, 0.0767079741, 0.0152673377, 0.4078819156, 0.025043143, -0.0295510795, -0.2083167732, -0.2941701412, -0.1928322464, 0.0614785925, 0.3428521752, 0.2553370297, 0.5357607603, -0.1673203707, -0.0385085344, -0.1830639541, 0.223483175, -0.0328901187, -0.3865865469, -0.1538766921, 0.0641761124, -0.14416264, 0.0128571754, 0.2859581411, 0.2245043516, -0.0872953981, 0.2617090344, 0.0529519096, -0.2685486972, 0.0616975278, -0.4994951487, -0.3638347983, -0.0477746166, 0.2398650944, 0.2502558231, -0.0480289236, -0.0469891466, 0.1621944159, 0.3588543832, -0.1503745466, -0.3527109325, 0.1869351566, -0.1928919703, -0.0597141683, 0.1786049604, 0.2957512438, 0.286998421, -0.4042104781, 0.2542161644, -0.1248799562 ]
https://github.com/huggingface/datasets/issues/2615
Jsonlines export error
@TevenLeScao I have just checked it: this was a bug in `pandas` and it was fixed in version 1.2: https://github.com/pandas-dev/pandas/pull/36898
## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1
20
Jsonlines export error ## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1 @TevenLeScao I have just checked it: this was a bug in `pandas` and it was fixed in version 1.2: https://github.com/pandas-dev/pandas/pull/36898
[ -0.3412717581, 0.1240301281, -0.0055020838, 0.2580175102, 0.1083405316, 0.0757044032, 0.3035868406, 0.4069504142, 0.0264131054, -0.0411830097, 0.2745396495, 0.0067484351, 0.1387159526, 0.1741789728, -0.2055494934, -0.2439864427, 0.2017902285, -0.0212470349, 0.0084575042, 0.2275884151, -0.3102153838, 0.2221115083, -0.1696817726, -0.1478928626, -0.4680121839, -0.3230393529, 0.0654655173, -0.0415013917, 0.0460143834, -0.4286080003, -0.0355175808, -0.2563441098, 0.4413878322, 0.5364947915, -0.000119037, -0.2155591547, 0.3319273293, 0.018269388, -0.2052396387, 0.0686350018, -0.472040087, -0.395409137, 0.021964632, -0.3430718184, 0.4541321397, -0.1743061393, -0.3328180909, -0.4177091122, 0.6475177407, 0.3707945645, 0.1486111283, -0.032841377, 0.1063488051, -0.0371335596, -0.203633517, 0.0837966353, 0.0200113486, 0.1159937158, -0.2379018366, 0.2098362297, 0.230075255, -0.0716974512, -0.1255664974, -0.2341947407, -0.1767510027, -0.0656963736, -0.0222574919, -0.2992709577, 0.1961590648, 0.4449341297, 0.2029706091, -0.1828812659, -0.268133074, -0.4125077426, 0.111305289, -0.5898332596, 0.0529371724, 0.4741689563, 0.0347095355, 0.0870472565, -0.1121775731, -0.0808055103, -0.2130058259, -0.0569747835, -0.0503384396, -0.2372406125, -0.1518813074, -0.0181154776, -0.2036604881, -0.1465213597, 0.002788157, -0.2815829515, -0.4799130261, 0.0245661382, -0.196879521, 0.0740086213, 0.1518743634, -0.5287784338, 0.0522211753, -0.0778353438, 0.3272018731, -0.3820250332, 0.1291123778, 0.0760855302, 0.5744822025, 0.212093845, 0.182994172, -0.0716199353, 0.3002836108, 0.0313623324, 0.0964885429, -0.0893944651, 0.0688516051, -0.2353244424, 0.0683995709, 0.0023817529, 0.0328886881, -0.0524885431, -0.0941911042, 0.228801012, -0.3604731262, -0.1577093452, -0.2764322758, -0.1858023703, -0.127221778, 0.3287419081, 0.1308704019, 0.2427655309, -0.0845067874, 0.0472010113, -0.0698759556, -0.0375034586, -0.0055308584, -0.0535058044, -0.0542492047, -0.1753411591, 0.0107758474, 0.2415697724, -0.0861288309, -0.2899804115, -0.1535127908, -0.1127545461, -0.1566494256, 0.2403199375, 0.3214479685, 0.1444983333, -0.1472988725, -0.1794862896, -0.0155875441, 0.1483363658, -0.4130091965, -0.0150123816, -0.3744746745, 0.1352473944, -0.142355442, 0.1480701566, -0.5019350648, -0.0314696953, 0.0777532086, 0.1964425743, 0.4208016396, -0.2530839145, 0.6042640805, -0.2848634124, 0.0148759503, 0.2816120684, -0.7312352061, 0.1030589268, 0.1470308304, 0.0361653604, 0.4897562563, 0.4170342982, -0.0245814342, 0.3368771374, -0.1128994748, 0.2621539831, 0.0711586177, 0.2094033957, 0.0982472301, 0.5672950745, -0.0708638802, 0.0182828121, 0.0297984611, -0.3001288474, 0.5715807676, 0.1137628406, 0.4756502211, 0.4330530167, 0.0384259857, 0.2293847948, -0.164694339, -0.1979117543, 0.0348153822, -0.2483368367, -0.2546770871, 0.0026691828, 0.1543459296, -0.1928164065, 0.2644365132, -0.2410072833, 0.1251208633, 0.4268119335, 0.1328848302, 0.1417978555, 0.0218669791, 0.2489670217, -0.3805499375, -0.19011648, -0.1566673517, -0.166530624, -0.1608522683, -0.0739144832, 0.1734649241, 0.1861050278, 0.0388095826, 0.1554861218, 0.0502702035, -0.158152312, -0.1364509463, 0.2717757225, -0.0530619286, 0.3020296991, 0.13651371, 0.0570233725, -0.2673314214, 0.2672391832, 0.2391948998, -0.1706704795, 0.3222700357, 0.1106029749, 0.1830598563, -0.296066612, -0.1514950246, 0.2638213336, -0.0377145931, 0.0216180999, -0.117580004, 0.0669657663, 0.162099272, 0.1948707998, -0.227302596, 0.2584480345, -0.0121852523, 0.0613595508, -0.1402774155, 0.6026522517, -0.2641135454, 0.2733406425, -0.036850255, 0.0274136681, 0.3373423517, -0.1023816839, -0.1084208861, -0.1580341607, 0.2359512001, 0.1434629858, -0.1225720271, 0.0540060662, -0.4003921151, -0.030364966, 0.5197228193, 0.0007627887, 0.117056638, 0.1844304353, 0.0339208245, -0.0154380966, 0.0759516656, 0.1254656166, 0.2930738926, 0.1264980733, -0.0394467115, 0.0525661148, 0.1151170433, -0.0862427577, 0.2848721743, 0.1711807102, 0.2693837285, 0.2485690862, 0.146622926, 0.1977823973, -0.1394344717, -0.3373421431, -0.175552085, 0.1275866479, -0.3030415177, 0.3055095673, -0.193616271, -0.1043051183, -0.3914400637, -0.4014570117, -0.2060246766, -0.2955184579, -0.2415340543, -0.0955117121, -0.4658669829, -0.0853128359, -0.1617810726, 0.0963585377, 0.1571009904, -0.0004355584, 0.01927853, 0.0009038323, -0.043102283, -0.0549469255, -0.0049517117, -0.1238725707, 0.0270975791, 0.1601217389, 0.1456879377, -0.0970123857, 0.1815311313, 0.0411111154, -0.0188200306, -0.083214283, 0.1475450099, 0.2630809546, -0.0727505237, -0.5481501818, -0.0182917155, 0.1664047688, 0.038401708, 0.1412494779, -0.1206464618, -0.1862717271, -0.0932752937, -0.060348127, 0.0194407161, -0.3349896967, 0.4810389578, -0.1055286229, 0.0269013811, -0.0864220932, 0.147609964, -0.0642029196, 0.0781235099, -0.2673321366, 0.1539457738, -0.4169498384, 0.0305445902, -0.2566612959, -0.2721677423, 0.127755627, 0.0963207632, 0.0096769454, -0.0782586187, -0.3716353178, 0.521165669, -0.1465875655, 0.3120237589, -0.1196961477, 0.1910611093, 0.0726431385, -0.0763164684, -0.0702415332, 0.0268293675, 0.1516518742, 0.1500842869, 0.0634176284, 0.4252822101, -0.0681784824, 0.796374321, -0.2070917189, -0.2428019941, 0.7851781249, 0.1798444837, 0.2147371471, 0.111497961, 0.1771985292, -0.132488519, -0.0516302548, 0.0562986173, -0.1535122544, -0.0847817883, 0.1383903027, -0.0334203541, -0.0991478413, 0.0346303731, -0.0383115374, -0.3957051635, -0.3372080028, 0.1653224975, -0.1299585551, 0.2785855234, -0.279636085, -0.0569239333, -0.0546334498, 0.111903213, -0.2268248945, -0.0253556669, 0.2500806153, 0.0908863842, -0.4192572534, -0.4416010678, -0.5331690907, 0.1681438237, 0.0267067645, 0.6945687532, 0.1523020864, 0.1240497902, -0.0636750236, -0.0554271676, 0.6983478069, 0.0264315885, -0.2924916744, 0.1699612141, 0.2758514583, -0.2267135531, -0.0662791356, 0.1623207182, 0.1873942912, 0.7814657688, -0.0040754508, -0.2857832015, -0.0204493385, 0.2629453838, 0.2712848186, -0.1538701355, -0.2529331446, -0.1603031158, -0.1997376978, -0.081414938, -0.1784594953, 0.1562790573, 0.4531792104, -0.209024325, -0.1592235863, -0.0071687056, -0.4004325569, 0.0399245583, 0.0399923809, 0.1950912625, -0.0108047659, 0.1504076868, -0.1228340492, 0.2694625854, 0.471175462, 0.2290255576, 0.0092927041, -0.3669428825, -0.0709776729, -0.3196597099, 0.3802238107, -0.0930665135, -0.2809784114, 0.0854496211, -0.1541883498, 0.3633084893, 0.1215595677, -0.2874759138, 0.3155452907, 0.1552749276, -0.8324908018, 0.026684178, 0.365788728, 0.1117779091, 0.2571147978, 0.1980548054, -0.2689130902, -0.3762988746, 0.1702100933, -0.2446851283, 0.4795739055, 0.3824554384, 0.1580195129, 0.1130344719, -0.408025533, 0.6761994958, 0.0891284347, 0.0456147939, -0.1887373775, 0.3455244601, 0.0942927971, -0.1524701267, 0.1718708575, 0.0052320193, -0.088476263, 0.0735982507, -0.5113875866, -0.2449368685, -0.1931396425, 0.047589004, 0.2021461427, -0.2321406454, -0.6011214852, -0.0003101013, -0.0318102427, -0.2616802454, -0.045188453, -0.180091992, 0.0536061339, -0.095773384, -0.3610687554, 0.0835342109, 0.1478342563, 0.186136201, 0.3207150996, -0.1669660658, 0.1520550251, -0.1513991803, 0.3327765465, 0.117842868, 0.0078481548, -0.0754913762, -0.0993498936, -0.0884820819, 0.0514727123, 0.0506726056, 0.2107186764, 0.0061884676, -0.0954472646, 0.2538420558, 0.0702210143, -0.1800710708, -0.0787265301, 0.2651981711, -0.3444179893, -0.3410692513, -0.1577456445, 0.0235499144, 0.2334499359, -0.1699759215, 0.0516469739, 0.2095892429, 0.0149964094, 0.3483528495, -0.3776895404, -0.1721511483, -0.3480564952, 0.1002502814, 0.0455052294, -0.1881160438, 0.2446306497, 0.483546257, -0.2497795522, -0.0274279062, 0.4238174558, 0.3446511626, -0.4265531301, 0.5984867215, -0.100520879, 0.2218950838, -0.1415476352, 0.4189108014, 0.0658271015, 0.0264703296, 0.1126519516, -0.3906416297, -0.2438428551, -0.0110300798, 0.1985439658, 0.0316888504, 0.0800383911, 0.5649985075, 0.082543835, -0.1961648315, -0.1431965977, -0.0040076654, -0.2632649243, 0.0200008545, -0.097649686, 0.005412485, 0.0304383859, -0.0590460673, 0.0467739925, 0.1368298829, 0.0306495503, -0.1308160424, -0.4030767083, 0.1121964753, 0.1812615842, -0.2131500095, 0.1576091349, -0.0253618397, -0.2624441683, -0.0120828766, 0.1790463626, 0.090293102, -0.1016901284, -0.0464460962, 0.1531556994, -0.1598234773, -0.0562739596, 0.1164111048, 0.210964486, 0.5365227461, 0.0306343399, 0.3913278878, -0.0880651101, -0.0555299781, -0.4043059945, -0.0179546531, -0.2343647182, 0.2840470076, 0.1519258767, -0.69667238, -0.1060282886, 0.3511354327, 0.1717196107, 0.2847227156, -0.2599784434, 0.1179755107, 0.0656608865, 0.1584096849, -0.0572256111, -0.1518694609, -0.0016452452, 0.1128948405, -0.1379240602, 0.0401748903, -0.0058041168, -0.4350814819, -0.1529610604, -0.0542753413, 0.3313518167, 0.1398854405, 0.2754511237, 0.3992124498, 0.1721581966, 0.1769743115, -0.0564029664, 0.2889546752, 0.1773954481, 0.0684144273, 0.2014062852, -0.1621271521, 0.4717502296, -0.095375143, -0.2096827477, -0.4819865525, -0.0746586099, 0.0079446975, -0.2684755325, 0.2657920122, 0.1635710299, 0.1167764142, -0.2271026075, -0.0101148151, -0.077057153, 0.1764438599, -0.1731635779, 0.0039133825, -0.158272475, 0.0181204844, 0.2310757041, 0.1033621281, 0.0914602429, 0.1970944852, -0.2558517158, 0.1926350147, -0.0159908514, -0.3948794007, 0.1356339157, -0.1107456461, 0.2268875092, -0.272575587, -0.0000762069, 0.1675510854, -0.0984948426, -0.1251690537, 0.1620346755, 0.5886417627, 0.2581673265, 0.2816857696, -0.1151440814, -0.1393074095, 0.0920642316, 0.1447826773, 0.1526225656, 0.2300889492, -0.0126196854, 0.1981309056, 0.0573750436, -0.0856675729, 0.3561894596, 0.1813798398, 0.1266647577, -0.0304746777, 0.2105373144, -0.1760415584, -0.1970002949, -0.4345935881, -0.1564475298, -0.2098420113, -0.0391117483, 0.3237749338, -0.1878924817, -0.1111783832, -0.1099402755, 0.0362066478, -0.2735570371, 0.3935526311, 0.3105425835, 0.3471532166, -0.057756044, -0.1337611675, 0.0504735261, -0.0989683643, -0.3138723373, 0.3750602901, 0.3629867136, 0.2740959823, -0.3101059794, -0.0636713952, 0.2408319265, 0.6288328767, -0.4764033556, -0.015228617, -0.3945148289, 0.0170966014, 0.2993399501, 0.0733303949, -0.1631336808, -0.1150183976, 0.4784142971, -0.091317907, -0.0644214302, -0.10116072, 0.1213784292, -0.0869344175, 0.1177807972, -0.0237046927, 0.4274006188, 0.0045201792, -0.0416509137, -0.1996573657, -0.3047761023, -0.1673976481, 0.0448246859, 0.2976604402, 0.2640582621, 0.5109523535, -0.1467371136, -0.1196802706, -0.2036100775, 0.2333160639, 0.0009658713, -0.3993258774, -0.1593142152, 0.0673379153, -0.1250602603, 0.0530024953, 0.2979463935, 0.2603335679, -0.1092882156, 0.2785041928, 0.0814719498, -0.2846654356, 0.0990646183, -0.4734436274, -0.3631594181, -0.0700144768, 0.2307450771, 0.2449284345, -0.0357330702, -0.0005883554, 0.1598483622, 0.3397051096, -0.1527700126, -0.3735356629, 0.1693944037, -0.2099455297, -0.03703079, 0.1827780306, 0.247698009, 0.3111516833, -0.3687023818, 0.2597651184, -0.1153499708 ]
https://github.com/huggingface/datasets/issues/2615
Jsonlines export error
Sorry, I was also talking to teven offline so I already had the PR ready before noticing x)
## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1
18
Jsonlines export error ## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1 Sorry, I was also talking to teven offline so I already had the PR ready before noticing x)
[ -0.3764410317, 0.0621024482, -0.0249255598, 0.2861750722, 0.0446195416, 0.0809500068, 0.1558461785, 0.3971742094, 0.0510586612, -0.0476371646, 0.3336996436, 0.0041158954, 0.0834180042, 0.1582750827, -0.1321930289, -0.1995780915, 0.1929605901, -0.0722631887, 0.0871970132, 0.2302480936, -0.2315654457, 0.2663527131, -0.1839067191, -0.2031630725, -0.4015369713, -0.2735064924, 0.157701984, -0.0050988793, 0.0436919443, -0.4615625739, -0.0991503596, -0.2882117331, 0.4996251762, 0.4922951758, -0.0001196299, -0.1714507788, 0.2876416147, -0.0389573537, -0.2002032697, 0.0875428766, -0.4354244471, -0.3970063329, -0.0468423106, -0.3596847951, 0.3823302388, -0.1017138585, -0.3481950462, -0.4584699273, 0.6558183432, 0.402802825, 0.142489925, 0.0162798632, 0.1383093894, 0.0170787722, -0.0757891983, 0.0695122778, -0.0042967456, 0.1023578495, -0.1442513913, 0.3273944557, 0.247768566, -0.0633081123, -0.1642434746, -0.2750757635, -0.1225753129, -0.0865194723, -0.0925142616, -0.2516680062, 0.1980659068, 0.3637439311, 0.1841874123, -0.2028265148, -0.1457755268, -0.3202910423, 0.0713846609, -0.6242575645, 0.050285805, 0.5177454352, -0.0037659288, 0.1118398309, -0.2235127687, -0.0908083022, -0.231204018, -0.0297227893, 0.0023634047, -0.2277637124, -0.1178186908, 0.0040284926, -0.1674535573, -0.0984249264, -0.1111667976, -0.2227239013, -0.5720721483, -0.0140361935, -0.1784092635, 0.044373434, 0.1368654221, -0.4408859611, 0.1079218462, -0.0460401885, 0.333743751, -0.3853139579, 0.2083595544, 0.0500751473, 0.5481047034, 0.1906709671, 0.280146569, -0.1100365222, 0.2598353624, -0.0213277731, 0.0885012895, -0.0792430043, 0.0471383743, -0.2001505643, 0.0954320878, 0.0385469049, -0.0271397699, -0.0987016708, -0.0599274263, 0.2017268538, -0.4078751504, -0.1518075764, -0.2807912827, -0.185153231, -0.0983671248, 0.2293495983, 0.1623692214, 0.2720748186, -0.1685682088, -0.1085857823, -0.0424001813, -0.0828754976, -0.0747890174, -0.0433045402, -0.0337315761, -0.157529965, -0.0203638524, 0.2245579958, -0.0742418841, -0.2805362642, -0.1095872, -0.0356902853, -0.1673440933, 0.1796681285, 0.285263896, 0.1275253147, -0.163961798, -0.2139401436, -0.0154008409, 0.1968716085, -0.4836391211, -0.0749539509, -0.3604171276, 0.1418751031, -0.1785313189, 0.1125148684, -0.4827482104, -0.0880969092, 0.1005534008, 0.1740034223, 0.3533983231, -0.2788316011, 0.6303638816, -0.2761409283, 0.0279031172, 0.2305349559, -0.7488186955, 0.0958135799, 0.182598412, 0.0159453619, 0.4496083856, 0.3953610361, -0.0237346627, 0.3770443797, -0.0881658494, 0.2835767567, 0.10067112, 0.1974976957, 0.1171778068, 0.4938793182, -0.0722179338, -0.0063225906, 0.0184169561, -0.2992612422, 0.6212949157, 0.1084749848, 0.5063623786, 0.4043262005, 0.0377526321, 0.235362187, -0.2143674493, -0.1688392758, -0.0559027568, -0.1844294965, -0.3852593601, -0.0556433089, 0.158809647, -0.1746255606, 0.2962257266, -0.2451874912, 0.1185825095, 0.4660313725, 0.0828757063, 0.1488806009, 0.0076212073, 0.3006697297, -0.4398676753, -0.1985079199, -0.0882368311, -0.1634426862, -0.1268037707, -0.0337225311, 0.1973336786, 0.2187894285, -0.03818921, 0.1392457336, 0.05120188, -0.1272219419, -0.1436672658, 0.1798046529, -0.006184876, 0.2388718575, 0.1822499484, 0.025125498, -0.3140971065, 0.2853173316, 0.2368265688, -0.2068867832, 0.1841396093, 0.1220638379, 0.1675080955, -0.3401519358, -0.1555435807, 0.2237615883, 0.0257931557, -0.0869449228, -0.1305888891, 0.1246154755, 0.1281079501, 0.0885498971, -0.1277749389, 0.2919145525, -0.0615549199, 0.0573415309, -0.1319105625, 0.5513094664, -0.269443363, 0.3201517165, -0.0676286295, -0.0254176613, 0.227952674, -0.1107780859, -0.0442412086, -0.1289412975, 0.2877566218, 0.1512960047, -0.1880396307, -0.0283115525, -0.356978029, 0.0031250773, 0.5259000659, 0.0223968606, 0.0300824884, 0.1846692562, -0.0212227404, 0.0098990845, 0.0738687515, 0.0619090274, 0.2687598467, 0.1387556046, -0.0613796413, 0.0710848495, 0.2284822762, -0.0677135363, 0.2718981206, 0.120992519, 0.2285156846, 0.3146279454, 0.1939518005, 0.1624783278, -0.1181253269, -0.4355783761, -0.2385640889, 0.1119901389, -0.3184940219, 0.2901821434, -0.1427606493, -0.0482057407, -0.4705460668, -0.3678219318, -0.257535547, -0.3024018705, -0.1673860848, -0.0986448079, -0.4747139812, -0.1406027228, -0.1137054414, 0.0823613703, 0.0937034488, -0.110591203, 0.0388366617, -0.0006971339, -0.1376157254, -0.0897183642, 0.0183230974, -0.1932258606, 0.1084225252, 0.0978774056, 0.1040241346, -0.1154597104, 0.1239947081, 0.1251719147, -0.0150249545, -0.0435005426, 0.1202460453, 0.2838807106, -0.0367319845, -0.5128858089, 0.0337210447, 0.1928920597, 0.033315897, 0.1826904416, -0.0985661224, -0.1741506606, -0.0930804461, -0.1191133484, -0.0344735757, -0.355093658, 0.4420223534, -0.071053572, 0.030206956, -0.0339096189, 0.125930056, -0.110353969, 0.0671877414, -0.2847224176, 0.2316464037, -0.4047395289, -0.0109361811, -0.2776230872, -0.2221850902, 0.1345078945, 0.1779784411, -0.0056695412, 0.0136064142, -0.3946298361, 0.636044085, -0.0991959721, 0.4422529042, -0.1970857084, 0.1547566354, 0.1013634577, -0.0505041815, -0.0257119089, -0.0238358863, 0.1536918879, 0.1530250907, 0.0260199681, 0.489485234, -0.0719282776, 0.6651270986, -0.2164901495, -0.1908443421, 0.7653554082, 0.1234657466, 0.2171908766, 0.1095758304, 0.0839431062, -0.1581354141, 0.0156224724, 0.0867914706, -0.1268137246, -0.1643205732, 0.1484076828, 0.0400952213, -0.1123045385, 0.0120479073, 0.0154591529, -0.4064566493, -0.3510842025, 0.2497028708, -0.0109541984, 0.2938518822, -0.3571613729, -0.0692214444, -0.0584154204, 0.0109494058, -0.232279554, -0.0172882825, 0.2271162271, 0.1395560652, -0.5072892904, -0.4268556833, -0.483409822, 0.2316377908, 0.0101298913, 0.5988481641, 0.1351301074, 0.0753417909, -0.0829708055, -0.0961532295, 0.6169037223, -0.0279184971, -0.1888392121, 0.2580969036, 0.3820474446, -0.169660762, -0.1103734821, 0.1042633131, 0.1699739695, 0.8767220378, 0.0393481553, -0.3058122694, -0.0314473361, 0.2559385896, 0.3879097998, -0.1291907728, -0.2496608645, -0.1338591278, -0.1862452328, -0.0875425935, -0.2614001036, 0.126876384, 0.4449920058, -0.1607403457, -0.1525979936, 0.0704758093, -0.3098806441, -0.0101514058, 0.0039962628, 0.2558421493, -0.1063279584, 0.1659554392, -0.1203413904, 0.357488513, 0.4377619922, 0.1959056854, 0.0653356165, -0.3315352499, -0.0828116983, -0.2703197896, 0.4001967907, -0.1436282843, -0.2139933854, 0.0637370348, -0.1926665753, 0.4227813482, 0.1368253082, -0.2731591761, 0.2954879403, 0.0849183872, -0.8648976088, 0.0916431844, 0.3287992775, 0.0798565522, 0.2831911445, 0.1733736694, -0.3656852841, -0.3700639307, 0.2008539885, -0.1924821585, 0.5724716187, 0.4445644319, 0.1451868713, 0.0728925988, -0.3968038261, 0.6061347723, -0.1380775273, 0.049990017, -0.1944585741, 0.4044935703, 0.1480768472, -0.1363781244, 0.1013562977, 0.0813190639, -0.1146971136, 0.0374637395, -0.5104407668, -0.2355326712, -0.2661845088, 0.0068014381, 0.2548336089, -0.204574421, -0.4993147552, 0.0002574473, -0.0960660875, -0.2361401021, -0.0767508298, -0.2121945471, 0.0923318639, -0.126633212, -0.344732523, 0.1222204417, 0.0673822388, 0.1341661811, 0.3516378105, -0.1614587605, 0.1418849081, -0.1786925942, 0.2616021037, 0.1652996242, 0.0301986784, -0.0494894385, -0.0438410155, -0.0911647901, 0.1017382443, 0.0304713268, 0.0966753289, -0.0668494403, -0.1283183992, 0.1746308506, 0.0405157283, -0.2131317556, -0.1321575046, 0.2128761709, -0.2299479246, -0.3254311383, -0.0812896043, 0.1551059335, 0.2293551713, -0.1209976301, 0.0432925411, 0.1576848626, 0.0012237033, 0.3172681928, -0.3695149422, -0.1802069545, -0.3000698388, 0.0828469768, 0.0605169795, -0.3104257286, 0.2204141468, 0.5383707285, -0.1888042837, -0.0755429417, 0.4676378667, 0.2899444997, -0.5295377374, 0.5389207602, -0.0684272125, 0.2785640657, -0.1015071869, 0.5041589141, 0.0523463897, 0.0035970334, 0.195527643, -0.385360837, -0.1970254779, 0.0192923341, 0.2155111283, 0.0335062444, 0.0403317921, 0.5567016602, 0.040016517, -0.1997790188, -0.1487130225, -0.0358412899, -0.1530419439, 0.0441132933, -0.067920737, 0.0058579016, 0.0446633287, -0.0326012634, 0.0643293411, 0.1154638752, -0.0202100407, -0.1217158884, -0.3338364065, 0.1359889805, 0.1383674294, -0.2122686505, 0.156917274, -0.0265430305, -0.2173285335, -0.0107316412, 0.2423764765, 0.0046658921, -0.0858204961, -0.0795543268, 0.1157712787, -0.0999298021, -0.0826605409, 0.1023368463, 0.3121545911, 0.6382738948, -0.022369137, 0.4231962264, -0.0875717998, -0.1236259788, -0.4861342311, 0.035030134, -0.168668136, 0.3962353468, 0.0872164592, -0.7172760963, -0.0945845917, 0.2883246541, 0.1118499264, 0.3069837987, -0.2442878783, 0.0710043758, 0.0554244444, 0.1902158111, 0.0319105089, -0.1302337348, 0.0334513932, 0.1064763442, -0.20015122, 0.0308406726, -0.0713485256, -0.3821998835, -0.1464615166, -0.1012208462, 0.3103375733, 0.1554689258, 0.2649972439, 0.3487347364, 0.1282586306, 0.1409236789, -0.1922419071, 0.1946356744, 0.193211332, 0.0450022668, 0.1877518445, -0.1048112884, 0.6095269322, -0.150140062, -0.189278245, -0.5214870572, -0.1123231798, 0.0434064083, -0.1085385978, 0.294824779, 0.1533851624, 0.1485006511, -0.1096454486, -0.104779087, -0.1312395781, 0.1712991595, -0.1323462278, 0.0783266351, -0.237547949, -0.0311537739, 0.1510166526, 0.125593856, 0.0470658727, 0.2665865421, -0.2235802114, 0.2642551959, -0.0198160969, -0.4577935338, 0.1466538608, -0.1241183951, 0.1841650158, -0.2721954286, 0.118065618, 0.2160520405, -0.0673265904, -0.1253813505, 0.0946723968, 0.5830351114, 0.2718703747, 0.2764336765, -0.1151665971, -0.2004845142, 0.1104088202, 0.0924618766, 0.1398356259, 0.2113538086, -0.0534771234, 0.216844216, 0.0385825224, -0.0623798855, 0.3692183793, 0.1508292556, 0.0476593189, 0.0692039505, 0.1251082569, -0.0931203365, -0.2209438831, -0.4400244951, -0.2172728628, -0.2373042852, -0.0207322557, 0.3701361418, -0.0824688599, -0.1008040681, -0.0718299821, 0.0317696072, -0.2750128806, 0.4035339952, 0.2331795245, 0.361777842, -0.1201838478, -0.1971982419, 0.1496270597, -0.0485247485, -0.3061574101, 0.3782443106, 0.3052504063, 0.2545854449, -0.2659117877, 0.0281371716, 0.2452305406, 0.6335807443, -0.4491250813, 0.0829717368, -0.4112228453, 0.055614803, 0.4788252413, 0.0878127366, -0.1390586048, -0.1592509449, 0.4242455959, -0.0451971404, -0.0659679845, -0.1633170694, 0.1127591208, -0.0138572948, 0.0729885474, 0.0500521511, 0.3976198435, 0.0954838768, -0.0486510508, -0.2607991397, -0.2927936316, -0.2146589309, 0.0567151569, 0.2732059658, 0.318667531, 0.5101503134, -0.1051620245, 0.0070796832, -0.2610445023, 0.1790615618, -0.0048990175, -0.3528938591, -0.1002613977, -0.0099241138, -0.1000589356, 0.0584652312, 0.2610980272, 0.2403876334, -0.0881789029, 0.2841229737, -0.0016547927, -0.2450388074, 0.1022862568, -0.4079574049, -0.3293610513, -0.0242530033, 0.3105501235, 0.1907438338, -0.0387674198, -0.0404482521, 0.1713293642, 0.394040674, -0.1353381574, -0.3708799779, 0.2906876504, -0.1157108098, -0.1221930012, 0.2361462563, 0.3582158983, 0.3031453192, -0.4336032569, 0.2544978559, -0.0895152092 ]
https://github.com/huggingface/datasets/issues/2615
Jsonlines export error
I was also already working in my PR... Nevermind. Next time we should pay attention if there is somebody (self-)assigned to an issue and if he/she is still working on it before overtaking it... 😄
## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1
35
Jsonlines export error ## Describe the bug When exporting large datasets in jsonlines (c4 in my case) the created file has an error every 9999 lines: the 9999th and 10000th are concatenated, thus breaking the jsonlines format. This sounds like it is related to batching, which is by 10000 by default ## Steps to reproduce the bug This what I'm running: in python: ``` from datasets import load_dataset ptb = load_dataset("ptb_text_only") ptb["train"].to_json("ptb.jsonl") ``` then out of python: ``` head -10000 ptb.jsonl ``` ## Expected results Properly separated lines ## Actual results The last line is a concatenation of two lines ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-1046-gcp-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.6.9 - PyArrow version: 4.0.1 I was also already working in my PR... Nevermind. Next time we should pay attention if there is somebody (self-)assigned to an issue and if he/she is still working on it before overtaking it... 😄
[ -0.3961874247, 0.1412501335, -0.0447770469, 0.2652051747, 0.055289939, 0.0680766329, 0.1558923125, 0.3812046051, -0.0110890446, -0.0350051261, 0.3722907007, 0.0118640503, 0.0816402584, 0.1777884662, -0.1461666673, -0.1732497513, 0.1780271083, -0.0427164473, 0.0344857797, 0.2413803786, -0.236317426, 0.2680277824, -0.1862007082, -0.1968690157, -0.4044492841, -0.2788294852, 0.1452198923, -0.0217897538, -0.025608521, -0.483084023, -0.0936046913, -0.2329353988, 0.4571810365, 0.4846560955, -0.0001165353, -0.1735851765, 0.3210093677, 0.0024078884, -0.2353125662, 0.0530452728, -0.4531084299, -0.3837757707, -0.0385643691, -0.3636562526, 0.4063388705, -0.1223699376, -0.3413086236, -0.4172590375, 0.663090229, 0.4112570584, 0.1693600267, -0.0337706544, 0.1536696106, -0.0172524229, -0.0696144477, 0.1026430205, 0.0065904246, 0.093884103, -0.1790844947, 0.2880728543, 0.2553642094, -0.0584252477, -0.1424845159, -0.3091885149, -0.1423949599, -0.1177988201, -0.0604584292, -0.255299449, 0.1998630166, 0.3594554365, 0.197821632, -0.225909248, -0.1474907696, -0.3116994202, 0.1133380979, -0.6214418411, 0.0487786718, 0.5457023978, -0.0193283577, 0.1305297911, -0.2266012728, -0.103405118, -0.2398209125, -0.0559336133, 0.0324961655, -0.2110428065, -0.1272570491, -0.0004992033, -0.1528134048, -0.1180548593, -0.0579756387, -0.2560566962, -0.5472078323, -0.0116198445, -0.1763408333, 0.064949438, 0.1567473263, -0.4249260724, 0.1423414946, -0.0389585271, 0.3401732743, -0.3556587696, 0.2603927553, 0.0585182719, 0.5224487782, 0.1673793644, 0.2801505923, -0.0627352521, 0.2633459568, 0.0293103047, 0.0720382258, -0.0799781159, 0.0121570127, -0.206101954, 0.0648716986, 0.0841448307, -0.021978762, -0.0744552389, -0.0336105004, 0.2073491514, -0.3438682556, -0.1791132987, -0.2502125502, -0.160405755, -0.0843881443, 0.2370714843, 0.1838049442, 0.2299661487, -0.1399747431, -0.0561746247, -0.0527573377, -0.0764697716, -0.0975604057, -0.027442744, -0.0434098393, -0.1516245753, -0.022104051, 0.2452822626, -0.0967633128, -0.286663264, -0.1144348308, -0.0557886288, -0.1505908817, 0.1774311066, 0.2737611532, 0.0941287205, -0.1824358106, -0.1792260706, -0.0290984325, 0.1685354412, -0.4769117236, -0.0423700735, -0.3549830019, 0.1847227812, -0.1505171657, 0.1518640965, -0.4985496402, -0.0430406965, 0.0819737315, 0.1303447783, 0.3610819876, -0.2751139998, 0.6181917787, -0.2749442756, 0.0540614314, 0.2397007793, -0.7175135016, 0.0810844004, 0.1316872984, -0.0445571952, 0.4499326944, 0.3594826162, -0.047060512, 0.3819954991, -0.1250738353, 0.2862238586, 0.1025872901, 0.2136679441, 0.0858995095, 0.4878998399, -0.0910151377, -0.0233895648, 0.0445550904, -0.3476258218, 0.6521731615, 0.1151156425, 0.5111981034, 0.3936980069, 0.0430700332, 0.233215645, -0.2062820792, -0.1988587677, -0.0399718322, -0.1981981248, -0.3763439953, -0.0651772842, 0.1363248676, -0.2017885894, 0.3150213957, -0.2656433582, 0.1112892553, 0.4608139694, 0.1455949545, 0.1242723688, 0.0168555826, 0.2683565915, -0.4331435263, -0.1937398463, -0.147552371, -0.156394124, -0.1399597824, -0.0607870184, 0.1878941059, 0.217656225, -0.0309703052, 0.1624684781, 0.0908311978, -0.1438448131, -0.1194213182, 0.2200555503, -0.0303868428, 0.2314022034, 0.1400973946, 0.0296047851, -0.2782293856, 0.2797174454, 0.1940131634, -0.206618771, 0.2257091254, 0.1197511926, 0.1610758305, -0.3396232426, -0.1450089514, 0.2079989016, -0.0224904791, -0.0433608778, -0.1313809156, 0.1153151542, 0.1300598681, 0.0743059292, -0.1831323951, 0.2659927309, -0.0412701517, 0.0790856406, -0.1302527338, 0.5811470747, -0.2238216698, 0.3129173219, -0.0337444022, -0.0359510556, 0.2417223305, -0.132675305, -0.0523958616, -0.1432104856, 0.2920071781, 0.1506685466, -0.1095958948, -0.0038498153, -0.2997739911, 0.0130577134, 0.5700361133, -0.0009292114, 0.054381676, 0.2003084421, -0.0104245441, -0.0128898406, 0.0481963903, 0.0733977631, 0.270142287, 0.1434922367, -0.061088454, 0.0817700848, 0.2391864508, -0.0793035701, 0.2866185308, 0.1085491031, 0.2617501318, 0.3045500219, 0.1869601458, 0.1485618353, -0.142788738, -0.3971893489, -0.1929117143, 0.0980410054, -0.2990088761, 0.2812850177, -0.1797005385, -0.0317719579, -0.4606838822, -0.3426714838, -0.243113637, -0.2658652067, -0.1617096514, -0.1251087785, -0.4919679165, -0.1103691012, -0.1233100742, 0.1165727377, 0.098399587, -0.0651704445, 0.0480168574, -0.0258518308, -0.0790168047, -0.0626125187, 0.048323337, -0.1822834462, 0.0869536251, 0.1118434668, 0.1157572865, -0.1118567213, 0.1259676069, 0.1281926632, 0.0135442568, -0.0798391625, 0.116840139, 0.2671395242, 0.0046184501, -0.5441417098, 0.00930472, 0.1585279852, -0.0006536223, 0.1666564345, -0.1094911098, -0.19390589, -0.1040723026, -0.1158945635, -0.0497130901, -0.358912468, 0.4297661185, -0.1107400805, 0.0624388494, -0.0566830225, 0.1418198347, -0.0834657177, 0.0264387745, -0.2701608539, 0.2086096853, -0.3947090209, -0.0383477658, -0.2872617543, -0.2344916016, 0.1153705046, 0.1351063997, -0.0412317477, -0.014871235, -0.3945076168, 0.5985487103, -0.0911804885, 0.4072628319, -0.1543260664, 0.1598561257, 0.1082133278, -0.0609388798, -0.0605884939, -0.0171033777, 0.1243249625, 0.1429905295, 0.0405627117, 0.4537538886, -0.0769096985, 0.6510969996, -0.2171837986, -0.1933772415, 0.7931035757, 0.1460741311, 0.2074933946, 0.1000398546, 0.0890259519, -0.127572313, -0.0149201667, 0.1259256601, -0.1118106321, -0.1663992405, 0.1738022268, 0.0149771264, -0.1547591984, 0.0323639624, -0.0189310629, -0.4336751997, -0.3735411465, 0.2495990098, 0.0172790624, 0.314997077, -0.3155669868, -0.0837373659, -0.0497692265, 0.0810694247, -0.2002608031, -0.031231422, 0.2059077471, 0.1080907434, -0.5688770413, -0.434365958, -0.4829706252, 0.2001950592, 0.000375698, 0.5802278519, 0.1253154129, 0.1026379764, -0.0884909034, -0.1208556294, 0.6239221096, 0.0179618113, -0.207733348, 0.2325395644, 0.3804988265, -0.1194759905, -0.1136855185, 0.1311788261, 0.2040756792, 0.8154348731, 0.0144140227, -0.336288929, -0.031519942, 0.2510598004, 0.369019866, -0.1367793679, -0.2473213673, -0.1221588627, -0.2105505615, -0.1063995212, -0.239416793, 0.1065254584, 0.4578877091, -0.1845734268, -0.1501583457, 0.0830234662, -0.3093683124, -0.0238282271, -0.0061984812, 0.2689368725, -0.1025291085, 0.1319542974, -0.1067503318, 0.3046075404, 0.492937088, 0.2555458844, 0.0591754876, -0.3818760514, -0.064859964, -0.2778081298, 0.3906009793, -0.0863913298, -0.2303909659, 0.0898378044, -0.1147763953, 0.4310972989, 0.1055247039, -0.3060208857, 0.2839090824, 0.0938795134, -0.868029356, 0.0672664642, 0.3517993093, 0.0851372778, 0.2663378119, 0.1425240189, -0.2993611097, -0.3890743554, 0.2268265784, -0.2212847918, 0.5617582202, 0.4622308016, 0.1309823245, 0.0501693115, -0.3823641539, 0.6059621572, -0.0751365125, 0.0496062413, -0.1981853992, 0.4180105627, 0.1599107534, -0.1468543112, 0.1330642402, 0.0571735166, -0.1249790192, 0.0460070483, -0.5140422583, -0.2688515186, -0.2236863524, 0.0458566621, 0.229185611, -0.1956324875, -0.4780570269, 0.0274466407, -0.0778483823, -0.2507959008, -0.0765790194, -0.2212525308, 0.082251966, -0.136633426, -0.3644063175, 0.1354053319, 0.0133271068, 0.1475527734, 0.3296107948, -0.1759184301, 0.1654908955, -0.216760084, 0.2632958591, 0.1756989658, 0.0403590202, -0.0355151258, -0.0498482101, -0.0910547227, 0.0518334657, 0.0180131644, 0.1397247165, -0.0720628574, -0.1476309597, 0.1676950604, 0.0531063639, -0.1870754063, -0.0945013463, 0.2120669484, -0.227266714, -0.3123401701, -0.1369523704, 0.1384252906, 0.235000059, -0.1234997734, 0.0652360022, 0.1545719802, -0.0345682241, 0.3239791691, -0.326908499, -0.1750407219, -0.3134274483, 0.0673528016, 0.019750949, -0.2836397886, 0.2368382663, 0.5338139534, -0.1851441115, -0.0918224007, 0.4540340006, 0.31823349, -0.5063893795, 0.5193545818, -0.0397058912, 0.2553128302, -0.0921567157, 0.489300549, 0.0531962216, 0.0110743986, 0.1609011889, -0.380705595, -0.1938465238, 0.0168898162, 0.1840259433, -0.0162062366, 0.0661960691, 0.5399192572, 0.0404981934, -0.195320949, -0.1874677688, -0.0092314957, -0.1997161955, 0.0325761996, -0.0907296538, -0.0542652234, 0.0203117691, -0.0453839861, 0.0894771069, 0.124551177, -0.0444695204, -0.158092171, -0.34930861, 0.1171222255, 0.1262572557, -0.2073093802, 0.1414674968, -0.02919342, -0.2103939801, 0.0005522936, 0.2124822289, -0.0117092198, -0.0763838738, -0.0766830444, 0.0884389877, -0.1290405393, -0.0834902897, 0.1204845533, 0.2823750377, 0.6134369373, -0.0171169564, 0.425406307, -0.1109530926, -0.0925214738, -0.4530908167, 0.0277667847, -0.1683808267, 0.395414412, 0.1107920408, -0.7080248594, -0.0672923177, 0.3276768625, 0.1321097463, 0.2972357571, -0.2673638165, 0.1047081724, 0.0698428154, 0.2139059156, 0.0089483541, -0.136923641, 0.0516102687, 0.080651097, -0.164541468, 0.0097806305, -0.0316823684, -0.3678219616, -0.1688468307, -0.0747518316, 0.3498599827, 0.1809716821, 0.2724540532, 0.2772690356, 0.1594460607, 0.1348485053, -0.1623568833, 0.2629075944, 0.2012907714, 0.0330721848, 0.1631924808, -0.1277639568, 0.5978220701, -0.1219804212, -0.1643752754, -0.519751668, -0.0607059225, 0.0547774211, -0.1363774389, 0.2861795723, 0.1311556101, 0.1412820518, -0.1452394575, -0.0822573602, -0.1150157228, 0.1540477872, -0.1161714643, 0.0658308119, -0.2405934185, -0.0113795744, 0.1586650312, 0.1075959057, 0.0564220771, 0.2367657423, -0.2280270457, 0.2521002889, -0.0296712983, -0.4436668158, 0.1266707033, -0.0706358775, 0.2083536536, -0.2805277407, 0.10736081, 0.2040574551, -0.0592355654, -0.1331196427, 0.1519401371, 0.6114042401, 0.2904871702, 0.2430252731, -0.1104625836, -0.1894614398, 0.108288534, 0.0853864402, 0.1249113455, 0.2442239821, -0.0256536566, 0.187260583, 0.077290453, -0.0963659436, 0.3418991566, 0.1763304174, 0.0398247801, 0.0606256053, 0.0977974087, -0.1357238442, -0.1935823858, -0.4640133381, -0.1927348375, -0.2539294958, -0.0277089886, 0.401479125, -0.1180350855, -0.09881147, -0.0877252594, 0.0542041808, -0.2858714759, 0.400265187, 0.2522843182, 0.3638439775, -0.1063382924, -0.1944323033, 0.1350937486, -0.0689450204, -0.3103598952, 0.3789410293, 0.3164226711, 0.2905765772, -0.2551519573, 0.0086137643, 0.2256200165, 0.5962052941, -0.4504052401, 0.0481311008, -0.4447438717, 0.1119725332, 0.4354959726, 0.0993828103, -0.1263373941, -0.1538100094, 0.4535107911, -0.0902017504, -0.047468584, -0.1513186544, 0.1403332949, -0.0010731462, 0.0311156064, 0.0529588684, 0.3920418024, 0.0907531679, -0.0732083917, -0.2500059605, -0.2859653533, -0.2042218298, 0.0479785092, 0.2739370465, 0.3353993893, 0.5070765615, -0.1164321005, -0.0498180725, -0.2381435782, 0.1675783843, -0.0087680789, -0.3936249912, -0.1375323385, 0.0164313726, -0.0868348852, 0.0525358878, 0.2316702157, 0.2337379754, -0.0883539841, 0.2496708184, 0.0207404476, -0.2763336003, 0.1088412702, -0.3965432942, -0.3167788982, -0.0161592998, 0.3135697842, 0.2053134292, -0.0361023471, -0.0450266488, 0.180386737, 0.3660030663, -0.1656156927, -0.3628184199, 0.2734829187, -0.1614823788, -0.0895518586, 0.2288849056, 0.3258039355, 0.2899281681, -0.433347404, 0.2282892913, -0.0857070908 ]
https://github.com/huggingface/datasets/issues/2607
Streaming local gzip compressed JSON line files is not working
Hi @thomwolf, thanks for reporting. It seems this might be due to the fact that the JSON Dataset builder uses `pyarrow.json` (`paj.read_json`) to read the data without using the Python standard `open(file,...` (which is the one patched with `xopen` to work in streaming mode). This has to be fixed.
## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True) next(iter(streamed_dataset)) ``` ## Actual results ``` FileNotFoundError Traceback (most recent call last) <ipython-input-6-27a664e29784> in <module> ----> 1 next(iter(streamed_dataset)) ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 336 337 def __iter__(self): --> 338 for key, example in self._iter(): 339 if self.features: 340 # we encode the example for ClassLabel feature types for example ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self) 333 else: 334 ex_iterable = self._ex_iterable --> 335 yield from ex_iterable 336 337 def __iter__(self): ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs) 282 def wrapper(**kwargs): 283 python_formatter = PythonFormatter() --> 284 for key, table in generate_tables_fn(**kwargs): 285 batch = python_formatter.format_batch(table) 286 for i, example in enumerate(_batch_to_examples(batch)): ~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files) 85 file, 86 read_options=self.config.pa_read_options, ---> 87 parse_options=self.config.pa_parse_options, 88 ) 89 except pa.ArrowInvalid as err: ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory ``` ## Environment info - `datasets` version: 1.9.1.dev0 - Platform: Darwin-19.6.0-x86_64-i386-64bit - Python version: 3.7.7 - PyArrow version: 1.0.0
49
Streaming local gzip compressed JSON line files is not working ## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True) next(iter(streamed_dataset)) ``` ## Actual results ``` FileNotFoundError Traceback (most recent call last) <ipython-input-6-27a664e29784> in <module> ----> 1 next(iter(streamed_dataset)) ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 336 337 def __iter__(self): --> 338 for key, example in self._iter(): 339 if self.features: 340 # we encode the example for ClassLabel feature types for example ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self) 333 else: 334 ex_iterable = self._ex_iterable --> 335 yield from ex_iterable 336 337 def __iter__(self): ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs) 282 def wrapper(**kwargs): 283 python_formatter = PythonFormatter() --> 284 for key, table in generate_tables_fn(**kwargs): 285 batch = python_formatter.format_batch(table) 286 for i, example in enumerate(_batch_to_examples(batch)): ~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files) 85 file, 86 read_options=self.config.pa_read_options, ---> 87 parse_options=self.config.pa_parse_options, 88 ) 89 except pa.ArrowInvalid as err: ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory ``` ## Environment info - `datasets` version: 1.9.1.dev0 - Platform: Darwin-19.6.0-x86_64-i386-64bit - Python version: 3.7.7 - PyArrow version: 1.0.0 Hi @thomwolf, thanks for reporting. It seems this might be due to the fact that the JSON Dataset builder uses `pyarrow.json` (`paj.read_json`) to read the data without using the Python standard `open(file,...` (which is the one patched with `xopen` to work in streaming mode). This has to be fixed.
[ -0.19924891, -0.1339782476, -0.0091442792, 0.2391349524, 0.0777639374, 0.0168800782, 0.39767465, 0.5178916454, 0.1970214248, 0.0789983049, 0.1030014679, 0.3306829929, -0.0883667767, 0.020873908, 0.2288867384, -0.1809342057, -0.0436619073, 0.3560612798, -0.0251666978, 0.0015850025, -0.1305663288, 0.2937989533, -0.1404588521, -0.0185168833, -0.0187980942, -0.0395552181, -0.0471499898, 0.150094375, -0.0939596146, -0.3326385021, 0.0627696961, -0.1684149355, 0.1880224943, 0.4454548657, -0.000114536, 0.288641274, 0.2961107194, -0.1629140526, -0.3886066973, -0.4712480307, -0.2299012989, -0.1492991, -0.1307714581, -0.2858453393, -0.1378192306, -0.3474360704, -0.0337570645, -0.5071998239, 0.5416867733, 0.2922606766, 0.1556636393, 0.0419653952, -0.0617718287, 0.090578936, 0.0390160643, 0.1573234349, -0.0886080563, 0.3150978088, 0.0327885523, 0.1149681658, 0.0552852377, 0.4286457896, -0.2254956663, -0.1747768968, 0.1473698765, -0.0008161036, -0.0843829438, -0.1257868409, -0.1683155149, 0.0857346132, 0.1845448166, -0.412256062, -0.4398342073, -0.3761075437, 0.0466744043, -0.4488027096, 0.211854741, 0.409285754, -0.2503087223, 0.1969693452, -0.1006654873, -0.1305320412, -0.3545616865, 0.0854527503, 0.361849159, 0.3480829597, -0.0946778134, 0.0091284681, -0.091986686, 0.1193793565, -0.0839841515, -0.3859615922, -0.1857066453, 0.2277566344, -0.2421414256, -0.1349226832, 0.1443626285, -0.6062148213, 0.1511495709, 0.1012284383, 0.4615778029, -0.1257448941, 0.3588071764, 0.0546083562, 0.2728681266, 0.1870489419, 0.1769656837, 0.2638423145, 0.0566587783, 0.3898809254, -0.0865664557, -0.1980738938, -0.2363381237, -0.0394049883, -0.0915297419, 0.1368106902, 0.4833264053, -0.1576652825, -0.0890932977, 0.0819108561, -0.5941808224, -0.1327001452, 0.157672599, 0.0986092985, 0.0661023185, 0.2201745361, 0.0264846105, 0.1610844433, -0.0021046824, -0.0618945956, -0.0907955542, 0.023572417, 0.0740586966, 0.1347989738, 0.2518974543, -0.5213882327, 0.2793644965, 0.0087545319, -0.0460298657, -0.1562342644, 0.0058455085, -0.1255564541, 0.1504516453, 0.1468392611, -0.0259296, 0.0193638876, 0.2058846951, -0.1102270856, -0.1738195121, 0.1183539033, -0.2751960456, -0.2672140598, 0.0372359566, 0.2010165304, 0.0381591618, 0.0093890959, -0.0081487047, 0.0059312466, 0.0556991734, -0.3565129936, 0.0236363877, -0.0094648041, -0.0558014661, -0.0841289014, 0.2759922743, 0.4360963702, -0.3608720303, -0.1035923213, 0.0715650022, 0.2175855488, 0.7216555476, 0.3425384164, -0.2379720211, 0.127307564, -0.3681202233, 0.3619052768, 0.6931349635, 0.016038008, -0.3624653518, 0.8522368073, -0.1086345613, 0.3817506433, 0.4800843894, -0.2044291496, 0.1941484064, -0.0105178822, 0.3352074325, 0.2812871635, -0.0445725545, 0.0385273173, -0.4642711282, 0.1312146634, 0.0419500545, 0.0378056541, -0.2513180077, 0.2954410017, -0.0433926508, 0.0150334602, 0.352089256, -0.1800561398, 0.108184427, 0.2904557288, 0.2378063798, 0.0199457929, 0.2021736652, 0.0092640249, -0.2178029865, 0.0324927159, -0.3366107345, -0.2629368901, -0.2826170623, -0.062410254, -0.1401133686, 0.1487001777, -0.1843477339, -0.3533779681, 0.146481961, 0.4111509919, 0.380898416, 0.0224370826, -0.4623304904, 0.3006553948, -0.2987253964, -0.1048560813, -0.2611704767, 0.4293636084, 0.0721356794, -0.2631470859, 0.175884217, -0.0589887351, 0.1717890054, -0.2416349053, -0.2221170664, 0.2450817972, -0.1208552867, 0.1709068865, 0.1169748157, -0.2226255834, 0.2957749367, -0.0062116678, -0.0720569566, 0.3445871472, 0.2193280607, 0.2041206211, -0.2239912748, 0.4739871621, -0.0305658877, 0.3029981554, 0.0209111106, -0.2058361918, 0.1924334317, -0.0084316479, -0.3421524763, 0.0653709099, 0.3345847428, -0.1258886158, 0.0946049467, -0.0612956919, -0.3791345656, -0.0635565519, 0.5271072984, -0.0830586553, -0.1615021527, 0.192688182, -0.18031241, -0.0555441342, 0.2965637445, -0.0067164446, 0.3335768282, 0.1575450301, 0.1046028212, 0.016613353, -0.1111171022, -0.2565548122, 0.2091604471, -0.0900342986, 0.1146261692, 0.5449169278, 0.0356364809, 0.0449171625, -0.3995398879, -0.2428150177, -0.1288821548, 0.1455804855, -0.0990883037, 0.384134382, -0.391135633, -0.3713185191, -0.1201701835, -0.1128698438, -0.0630644262, -0.0857729614, -0.026965389, 0.2985588312, -0.2004607767, 0.2329238057, 0.0005529033, 0.039402049, 0.2519483268, -0.4227376878, -0.4818937778, -0.1630385667, -0.191156581, -0.0104030771, 0.2656037211, -0.2878887951, 0.3017157614, -0.045904018, -0.3699755669, -0.270799309, 0.1194070652, 0.1435609162, 0.0721822008, -0.0227006711, -0.091280371, 0.2280840427, -0.0796875432, -0.3324356079, 0.287009567, -0.2174523324, -0.1486557126, 0.19485192, -0.0311844852, -0.0018441877, -0.2352985889, -0.2655208707, -0.1472448707, -0.4852220118, 0.2896815836, -0.0403694734, 0.3086785376, 0.2429102212, 0.1440983117, 0.1779594868, 0.15565826, -0.0546928383, -0.1509626061, -0.6362749934, 0.3917453587, -0.1101359501, -0.2303782851, -0.0295010619, -0.1555970609, -0.0550970957, 0.3612906337, -0.4562183917, 0.2379129231, 0.0702734292, 0.0834180191, -0.0950677991, -0.1340569854, 0.1914461851, -0.1075464785, -0.060360603, -0.259009093, 0.0759438872, -0.0122349681, 0.2527313828, 0.1833108068, 0.4013441503, 0.7469969392, -0.0391616598, 0.2865434289, 0.353392303, 0.1458687782, 0.5503772497, -0.1300926358, 0.1602504849, -0.2425833791, -0.2188411504, 0.0596466362, 0.1050836742, -0.3196414113, 0.0274330527, 0.0012186184, -0.3406589925, -0.3240846395, 0.1244039536, -0.3062016666, -0.1882947534, 0.2014841288, -0.0963935554, 0.196411714, -0.0394232534, -0.0296400934, -0.0032320328, 0.1153509393, -0.0483283401, 0.2654097974, 0.4285126328, 0.1289334595, -0.0543238409, -0.1830669045, -0.3484929502, 0.0787643045, 0.2743044496, 0.602060616, -0.1669996977, -0.1687552184, 0.0798478946, -0.1684128046, 0.4636305273, -0.125880003, -0.034154065, 0.3472773135, -0.1242791638, -0.0266533829, -0.1190544516, -0.0431698337, 0.3530094028, 0.1959492713, 0.6723819971, -0.1772068888, -0.2202005386, 0.1132564172, 0.0215651691, 0.0907033756, -0.1562680006, -0.2928068936, -0.135812059, -0.201933071, -0.0655043945, -0.0717763528, 0.2410783917, 0.019956056, -0.1312815994, 0.0536010861, -0.073054567, -0.1126664132, 0.0078037987, 0.2940389812, -0.0325311646, 0.1593423188, 0.0570227988, 0.5039329529, 0.2327844203, 0.5136665702, 0.5314759016, -0.4147776663, 0.1325850189, 0.070245266, 0.1329941303, 0.1649878323, -0.1350930333, -0.1513889879, 0.1381041408, 0.2574624717, -0.035581477, -0.0832143351, 0.2338194847, -0.1555823684, -0.3567375839, -0.4606519341, 0.2432614714, -0.0392032973, 0.1920533329, 0.7787454128, -0.604657352, -0.1680703759, 0.1287043244, -0.327439636, 0.6506019831, 0.30569157, -0.0126124099, 0.4230309129, -0.1530071646, 0.4291079044, -0.4506244361, 0.3880237043, -0.1075449288, -0.1895087063, 0.0136247417, -0.1521780789, 0.3272455931, 0.1736506075, -0.3301243484, 0.1560810804, 0.0949869454, -0.0261119418, 0.0564026721, 0.0844657943, -0.3410907686, -0.1478555501, -0.6056393981, 0.0822725371, -0.164342612, 0.3591600657, 0.1198650077, -0.387160629, 0.0100031141, -0.2189191282, -0.1640437692, 0.4873073697, -0.2205232084, -0.0437985212, -0.120164454, -0.6457439065, -0.3231778145, -0.1665351987, -0.3695808947, -0.1014872417, -0.0968804285, -0.0140163144, -0.1560026854, 0.0815747976, -0.4244864285, 0.2442320585, 0.1879111826, -0.1447572559, -0.0854347199, 0.1730189174, -0.2793941498, -0.5516796112, 0.2067955136, -0.0945817083, 0.244337365, 0.1387686878, -0.0142797204, 0.0188980792, -0.1952122152, -0.2021061778, 0.1315957159, -0.1408142149, -0.3405293524, -0.2667014599, -0.15190202, -0.2008609772, -0.1044818312, 0.2798334956, 0.0701383725, 0.3024793863, 0.3966617584, -0.0176078323, -0.063301459, -0.2849560976, 0.0822027996, -0.199444741, -0.0627181306, 0.145860821, -0.0238585994, 0.1735640168, -0.2250165492, -0.0105746957, 0.1574334055, 0.052780237, 0.0311239529, -0.4647309482, -0.1359292716, -0.1071504205, -0.0055007907, 0.1117186174, 0.1044033319, 0.2052554637, 0.1506942213, -0.1848130673, -0.287404567, -0.1490447223, -0.1798329353, 0.0388778262, 0.0197011903, 0.1445137113, 0.3058989644, 0.0417761169, 0.1726240069, 0.1845809519, 0.1145531982, -0.2760640085, -0.12947537, 0.1017441601, 0.1475506574, -0.1066455394, -0.2568068802, -0.0784025341, -0.2397446334, -0.0903128907, 0.1030200794, -0.0890861303, -0.0714162439, 0.2204836607, 0.3504036069, -0.0414799117, -0.1651160568, -0.0696930513, -0.2029709816, 0.3246164322, -0.1491923332, 0.0957460031, 0.0479334816, 0.0756748393, -0.5871015787, -0.0813037008, -0.0964609683, 0.1543782502, 0.59524405, -0.4551481009, 0.031125633, 0.0455691777, 0.1699534655, 0.4789015055, -0.1304559857, 0.0390130654, 0.1729509681, 0.1876671314, -0.0484990925, -0.0702740252, 0.1377957761, 0.1060291082, -0.0637330636, -0.0711321533, -0.1525836736, -0.1502204984, 0.0998601094, 0.0143189123, 0.3330242634, 0.0458891988, 0.2113546729, 0.4080848098, 0.2017605156, 0.0718019232, -0.3809926212, 0.0200542845, 0.0719002187, -0.188730672, -0.1524382532, -0.1257038265, 0.0813990906, 0.1215052679, -0.3927780688, -0.3188354075, -0.3502142131, 0.0856013224, -0.117906414, 0.4086127877, -0.0059123728, 0.2030268162, -0.2063987851, 0.0338469334, 0.0438848175, 0.1606598347, 0.0185740609, 0.1159619316, -0.5277094245, -0.0310806297, -0.0583058298, 0.0389653556, 0.354437083, 0.5155142546, -0.0361989848, 0.2214540094, -0.1061521098, -0.1359122396, 0.0883779153, 0.1771474183, 0.342574805, -0.3739395142, 0.2876468301, 0.2135390937, 0.0820098966, -0.0754378662, 0.009954161, 0.372959882, 0.3608310521, 0.0665015206, 0.0278090257, 0.0363486074, -0.0933401883, 0.0266610589, 0.3354783058, 0.1904853433, -0.1879785061, 0.2221893072, 0.1101661846, -0.0887121111, 0.3944172561, 0.0983027592, 0.1196606979, -0.1152642742, 0.1943054944, -0.2477383316, -0.1086109728, 0.0640456527, -0.3541446626, -0.358769089, -0.0634774417, 0.2332486808, 0.1124907285, 0.0440791808, -0.0250769015, 0.0849538669, -0.128932789, 0.2790076435, 0.2456029356, -0.0799997523, -0.1668443382, -0.1844666451, -0.2015261948, 0.1580560952, -0.0404098332, -0.1079190597, 0.2371384501, 0.3279325664, -0.0682452098, 0.2060452551, -0.0900720358, -0.1822009981, -0.2946018577, 0.2807135582, -0.3546517491, -0.2369973361, 0.1787971109, 0.2335973382, 0.0910655633, -0.4543965161, 0.2050727308, -0.3312032819, 0.1178359836, 0.0553922355, -0.0305206683, 0.0156793948, 0.0668510422, 0.2356531769, 0.1621076167, 0.115546599, -0.1349949241, -0.1920711994, -0.0728204101, -0.1768475473, -0.018311305, 0.1458834261, -0.0582508445, 0.5028751493, -0.0484356843, -0.4014250338, -0.4371390045, 0.4285810292, -0.0439623334, -0.4439986944, 0.0103936912, 0.0140105654, -0.17603679, 0.1818832457, 0.0124768335, 0.1777727753, -0.0506042317, 0.0616827048, -0.3085519969, -0.1021585092, 0.5942245722, -0.4224966764, -0.3192537725, 0.3241406679, 0.1266875416, 0.1190698445, 0.129895702, -0.1965908259, 0.1324759275, 0.4372049272, -0.0283877663, 0.1215384826, 0.1597633064, 0.1152024269, 0.1851295084, 0.1178185269, 0.0776486918, 0.1725970507, -0.2597602606, 0.132927835, -0.2140504122 ]
https://github.com/huggingface/datasets/issues/2607
Streaming local gzip compressed JSON line files is not working
Sorry for reopening this, but I'm having the same issue as @thomwolf when streaming a gzipped JSON Lines file from the hub. Or is that just not possible by definition? I installed `datasets`in editable mode from source (so probably includes the fix from #2608 ?): ``` >>> datasets.__version__ '1.9.1.dev0' ``` ``` >>> msmarco = datasets.load_dataset("webis/msmarco", "corpus", streaming=True) Using custom data configuration corpus-174d3b7155eb68db >>> msmarco_iter = iter(msmarco['train']) >>> print(next(msmarco_iter)) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 338, in __iter__ for key, example in self._iter(): File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 335, in _iter yield from ex_iterable File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 78, in __iter__ for key, example in self.generate_examples_fn(**self.kwargs): File "/home/christopher/.cache/huggingface/modules/datasets_modules/datasets/msmarco/eb63dff8d83107168e973c7a655a6082d37e08d71b4ac39a0afada479c138745/msmarco.py", line 96, in _generate_examples with gzip.open(file, "rt", encoding="utf-8") as f: File "/usr/lib/python3.6/gzip.py", line 53, in open binary_file = GzipFile(filename, gz_mode, compresslevel) File "/usr/lib/python3.6/gzip.py", line 163, in __init__ fileobj = self.myfileobj = builtins.open(filename, mode or 'rb') FileNotFoundError: [Errno 2] No such file or directory: 'https://huggingface.co/datasets/webis/msmarco/resolve/main/msmarco_doc_00.gz' ``` Loading the dataset without streaming set to True, works fine.
## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True) next(iter(streamed_dataset)) ``` ## Actual results ``` FileNotFoundError Traceback (most recent call last) <ipython-input-6-27a664e29784> in <module> ----> 1 next(iter(streamed_dataset)) ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 336 337 def __iter__(self): --> 338 for key, example in self._iter(): 339 if self.features: 340 # we encode the example for ClassLabel feature types for example ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self) 333 else: 334 ex_iterable = self._ex_iterable --> 335 yield from ex_iterable 336 337 def __iter__(self): ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs) 282 def wrapper(**kwargs): 283 python_formatter = PythonFormatter() --> 284 for key, table in generate_tables_fn(**kwargs): 285 batch = python_formatter.format_batch(table) 286 for i, example in enumerate(_batch_to_examples(batch)): ~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files) 85 file, 86 read_options=self.config.pa_read_options, ---> 87 parse_options=self.config.pa_parse_options, 88 ) 89 except pa.ArrowInvalid as err: ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory ``` ## Environment info - `datasets` version: 1.9.1.dev0 - Platform: Darwin-19.6.0-x86_64-i386-64bit - Python version: 3.7.7 - PyArrow version: 1.0.0
167
Streaming local gzip compressed JSON line files is not working ## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True) next(iter(streamed_dataset)) ``` ## Actual results ``` FileNotFoundError Traceback (most recent call last) <ipython-input-6-27a664e29784> in <module> ----> 1 next(iter(streamed_dataset)) ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 336 337 def __iter__(self): --> 338 for key, example in self._iter(): 339 if self.features: 340 # we encode the example for ClassLabel feature types for example ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self) 333 else: 334 ex_iterable = self._ex_iterable --> 335 yield from ex_iterable 336 337 def __iter__(self): ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs) 282 def wrapper(**kwargs): 283 python_formatter = PythonFormatter() --> 284 for key, table in generate_tables_fn(**kwargs): 285 batch = python_formatter.format_batch(table) 286 for i, example in enumerate(_batch_to_examples(batch)): ~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files) 85 file, 86 read_options=self.config.pa_read_options, ---> 87 parse_options=self.config.pa_parse_options, 88 ) 89 except pa.ArrowInvalid as err: ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory ``` ## Environment info - `datasets` version: 1.9.1.dev0 - Platform: Darwin-19.6.0-x86_64-i386-64bit - Python version: 3.7.7 - PyArrow version: 1.0.0 Sorry for reopening this, but I'm having the same issue as @thomwolf when streaming a gzipped JSON Lines file from the hub. Or is that just not possible by definition? I installed `datasets`in editable mode from source (so probably includes the fix from #2608 ?): ``` >>> datasets.__version__ '1.9.1.dev0' ``` ``` >>> msmarco = datasets.load_dataset("webis/msmarco", "corpus", streaming=True) Using custom data configuration corpus-174d3b7155eb68db >>> msmarco_iter = iter(msmarco['train']) >>> print(next(msmarco_iter)) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 338, in __iter__ for key, example in self._iter(): File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 335, in _iter yield from ex_iterable File "/media/ssd/TREC/msmarco/datasets/src/datasets/iterable_dataset.py", line 78, in __iter__ for key, example in self.generate_examples_fn(**self.kwargs): File "/home/christopher/.cache/huggingface/modules/datasets_modules/datasets/msmarco/eb63dff8d83107168e973c7a655a6082d37e08d71b4ac39a0afada479c138745/msmarco.py", line 96, in _generate_examples with gzip.open(file, "rt", encoding="utf-8") as f: File "/usr/lib/python3.6/gzip.py", line 53, in open binary_file = GzipFile(filename, gz_mode, compresslevel) File "/usr/lib/python3.6/gzip.py", line 163, in __init__ fileobj = self.myfileobj = builtins.open(filename, mode or 'rb') FileNotFoundError: [Errno 2] No such file or directory: 'https://huggingface.co/datasets/webis/msmarco/resolve/main/msmarco_doc_00.gz' ``` Loading the dataset without streaming set to True, works fine.
[ -0.19924891, -0.1339782476, -0.0091442792, 0.2391349524, 0.0777639374, 0.0168800782, 0.39767465, 0.5178916454, 0.1970214248, 0.0789983049, 0.1030014679, 0.3306829929, -0.0883667767, 0.020873908, 0.2288867384, -0.1809342057, -0.0436619073, 0.3560612798, -0.0251666978, 0.0015850025, -0.1305663288, 0.2937989533, -0.1404588521, -0.0185168833, -0.0187980942, -0.0395552181, -0.0471499898, 0.150094375, -0.0939596146, -0.3326385021, 0.0627696961, -0.1684149355, 0.1880224943, 0.4454548657, -0.000114536, 0.288641274, 0.2961107194, -0.1629140526, -0.3886066973, -0.4712480307, -0.2299012989, -0.1492991, -0.1307714581, -0.2858453393, -0.1378192306, -0.3474360704, -0.0337570645, -0.5071998239, 0.5416867733, 0.2922606766, 0.1556636393, 0.0419653952, -0.0617718287, 0.090578936, 0.0390160643, 0.1573234349, -0.0886080563, 0.3150978088, 0.0327885523, 0.1149681658, 0.0552852377, 0.4286457896, -0.2254956663, -0.1747768968, 0.1473698765, -0.0008161036, -0.0843829438, -0.1257868409, -0.1683155149, 0.0857346132, 0.1845448166, -0.412256062, -0.4398342073, -0.3761075437, 0.0466744043, -0.4488027096, 0.211854741, 0.409285754, -0.2503087223, 0.1969693452, -0.1006654873, -0.1305320412, -0.3545616865, 0.0854527503, 0.361849159, 0.3480829597, -0.0946778134, 0.0091284681, -0.091986686, 0.1193793565, -0.0839841515, -0.3859615922, -0.1857066453, 0.2277566344, -0.2421414256, -0.1349226832, 0.1443626285, -0.6062148213, 0.1511495709, 0.1012284383, 0.4615778029, -0.1257448941, 0.3588071764, 0.0546083562, 0.2728681266, 0.1870489419, 0.1769656837, 0.2638423145, 0.0566587783, 0.3898809254, -0.0865664557, -0.1980738938, -0.2363381237, -0.0394049883, -0.0915297419, 0.1368106902, 0.4833264053, -0.1576652825, -0.0890932977, 0.0819108561, -0.5941808224, -0.1327001452, 0.157672599, 0.0986092985, 0.0661023185, 0.2201745361, 0.0264846105, 0.1610844433, -0.0021046824, -0.0618945956, -0.0907955542, 0.023572417, 0.0740586966, 0.1347989738, 0.2518974543, -0.5213882327, 0.2793644965, 0.0087545319, -0.0460298657, -0.1562342644, 0.0058455085, -0.1255564541, 0.1504516453, 0.1468392611, -0.0259296, 0.0193638876, 0.2058846951, -0.1102270856, -0.1738195121, 0.1183539033, -0.2751960456, -0.2672140598, 0.0372359566, 0.2010165304, 0.0381591618, 0.0093890959, -0.0081487047, 0.0059312466, 0.0556991734, -0.3565129936, 0.0236363877, -0.0094648041, -0.0558014661, -0.0841289014, 0.2759922743, 0.4360963702, -0.3608720303, -0.1035923213, 0.0715650022, 0.2175855488, 0.7216555476, 0.3425384164, -0.2379720211, 0.127307564, -0.3681202233, 0.3619052768, 0.6931349635, 0.016038008, -0.3624653518, 0.8522368073, -0.1086345613, 0.3817506433, 0.4800843894, -0.2044291496, 0.1941484064, -0.0105178822, 0.3352074325, 0.2812871635, -0.0445725545, 0.0385273173, -0.4642711282, 0.1312146634, 0.0419500545, 0.0378056541, -0.2513180077, 0.2954410017, -0.0433926508, 0.0150334602, 0.352089256, -0.1800561398, 0.108184427, 0.2904557288, 0.2378063798, 0.0199457929, 0.2021736652, 0.0092640249, -0.2178029865, 0.0324927159, -0.3366107345, -0.2629368901, -0.2826170623, -0.062410254, -0.1401133686, 0.1487001777, -0.1843477339, -0.3533779681, 0.146481961, 0.4111509919, 0.380898416, 0.0224370826, -0.4623304904, 0.3006553948, -0.2987253964, -0.1048560813, -0.2611704767, 0.4293636084, 0.0721356794, -0.2631470859, 0.175884217, -0.0589887351, 0.1717890054, -0.2416349053, -0.2221170664, 0.2450817972, -0.1208552867, 0.1709068865, 0.1169748157, -0.2226255834, 0.2957749367, -0.0062116678, -0.0720569566, 0.3445871472, 0.2193280607, 0.2041206211, -0.2239912748, 0.4739871621, -0.0305658877, 0.3029981554, 0.0209111106, -0.2058361918, 0.1924334317, -0.0084316479, -0.3421524763, 0.0653709099, 0.3345847428, -0.1258886158, 0.0946049467, -0.0612956919, -0.3791345656, -0.0635565519, 0.5271072984, -0.0830586553, -0.1615021527, 0.192688182, -0.18031241, -0.0555441342, 0.2965637445, -0.0067164446, 0.3335768282, 0.1575450301, 0.1046028212, 0.016613353, -0.1111171022, -0.2565548122, 0.2091604471, -0.0900342986, 0.1146261692, 0.5449169278, 0.0356364809, 0.0449171625, -0.3995398879, -0.2428150177, -0.1288821548, 0.1455804855, -0.0990883037, 0.384134382, -0.391135633, -0.3713185191, -0.1201701835, -0.1128698438, -0.0630644262, -0.0857729614, -0.026965389, 0.2985588312, -0.2004607767, 0.2329238057, 0.0005529033, 0.039402049, 0.2519483268, -0.4227376878, -0.4818937778, -0.1630385667, -0.191156581, -0.0104030771, 0.2656037211, -0.2878887951, 0.3017157614, -0.045904018, -0.3699755669, -0.270799309, 0.1194070652, 0.1435609162, 0.0721822008, -0.0227006711, -0.091280371, 0.2280840427, -0.0796875432, -0.3324356079, 0.287009567, -0.2174523324, -0.1486557126, 0.19485192, -0.0311844852, -0.0018441877, -0.2352985889, -0.2655208707, -0.1472448707, -0.4852220118, 0.2896815836, -0.0403694734, 0.3086785376, 0.2429102212, 0.1440983117, 0.1779594868, 0.15565826, -0.0546928383, -0.1509626061, -0.6362749934, 0.3917453587, -0.1101359501, -0.2303782851, -0.0295010619, -0.1555970609, -0.0550970957, 0.3612906337, -0.4562183917, 0.2379129231, 0.0702734292, 0.0834180191, -0.0950677991, -0.1340569854, 0.1914461851, -0.1075464785, -0.060360603, -0.259009093, 0.0759438872, -0.0122349681, 0.2527313828, 0.1833108068, 0.4013441503, 0.7469969392, -0.0391616598, 0.2865434289, 0.353392303, 0.1458687782, 0.5503772497, -0.1300926358, 0.1602504849, -0.2425833791, -0.2188411504, 0.0596466362, 0.1050836742, -0.3196414113, 0.0274330527, 0.0012186184, -0.3406589925, -0.3240846395, 0.1244039536, -0.3062016666, -0.1882947534, 0.2014841288, -0.0963935554, 0.196411714, -0.0394232534, -0.0296400934, -0.0032320328, 0.1153509393, -0.0483283401, 0.2654097974, 0.4285126328, 0.1289334595, -0.0543238409, -0.1830669045, -0.3484929502, 0.0787643045, 0.2743044496, 0.602060616, -0.1669996977, -0.1687552184, 0.0798478946, -0.1684128046, 0.4636305273, -0.125880003, -0.034154065, 0.3472773135, -0.1242791638, -0.0266533829, -0.1190544516, -0.0431698337, 0.3530094028, 0.1959492713, 0.6723819971, -0.1772068888, -0.2202005386, 0.1132564172, 0.0215651691, 0.0907033756, -0.1562680006, -0.2928068936, -0.135812059, -0.201933071, -0.0655043945, -0.0717763528, 0.2410783917, 0.019956056, -0.1312815994, 0.0536010861, -0.073054567, -0.1126664132, 0.0078037987, 0.2940389812, -0.0325311646, 0.1593423188, 0.0570227988, 0.5039329529, 0.2327844203, 0.5136665702, 0.5314759016, -0.4147776663, 0.1325850189, 0.070245266, 0.1329941303, 0.1649878323, -0.1350930333, -0.1513889879, 0.1381041408, 0.2574624717, -0.035581477, -0.0832143351, 0.2338194847, -0.1555823684, -0.3567375839, -0.4606519341, 0.2432614714, -0.0392032973, 0.1920533329, 0.7787454128, -0.604657352, -0.1680703759, 0.1287043244, -0.327439636, 0.6506019831, 0.30569157, -0.0126124099, 0.4230309129, -0.1530071646, 0.4291079044, -0.4506244361, 0.3880237043, -0.1075449288, -0.1895087063, 0.0136247417, -0.1521780789, 0.3272455931, 0.1736506075, -0.3301243484, 0.1560810804, 0.0949869454, -0.0261119418, 0.0564026721, 0.0844657943, -0.3410907686, -0.1478555501, -0.6056393981, 0.0822725371, -0.164342612, 0.3591600657, 0.1198650077, -0.387160629, 0.0100031141, -0.2189191282, -0.1640437692, 0.4873073697, -0.2205232084, -0.0437985212, -0.120164454, -0.6457439065, -0.3231778145, -0.1665351987, -0.3695808947, -0.1014872417, -0.0968804285, -0.0140163144, -0.1560026854, 0.0815747976, -0.4244864285, 0.2442320585, 0.1879111826, -0.1447572559, -0.0854347199, 0.1730189174, -0.2793941498, -0.5516796112, 0.2067955136, -0.0945817083, 0.244337365, 0.1387686878, -0.0142797204, 0.0188980792, -0.1952122152, -0.2021061778, 0.1315957159, -0.1408142149, -0.3405293524, -0.2667014599, -0.15190202, -0.2008609772, -0.1044818312, 0.2798334956, 0.0701383725, 0.3024793863, 0.3966617584, -0.0176078323, -0.063301459, -0.2849560976, 0.0822027996, -0.199444741, -0.0627181306, 0.145860821, -0.0238585994, 0.1735640168, -0.2250165492, -0.0105746957, 0.1574334055, 0.052780237, 0.0311239529, -0.4647309482, -0.1359292716, -0.1071504205, -0.0055007907, 0.1117186174, 0.1044033319, 0.2052554637, 0.1506942213, -0.1848130673, -0.287404567, -0.1490447223, -0.1798329353, 0.0388778262, 0.0197011903, 0.1445137113, 0.3058989644, 0.0417761169, 0.1726240069, 0.1845809519, 0.1145531982, -0.2760640085, -0.12947537, 0.1017441601, 0.1475506574, -0.1066455394, -0.2568068802, -0.0784025341, -0.2397446334, -0.0903128907, 0.1030200794, -0.0890861303, -0.0714162439, 0.2204836607, 0.3504036069, -0.0414799117, -0.1651160568, -0.0696930513, -0.2029709816, 0.3246164322, -0.1491923332, 0.0957460031, 0.0479334816, 0.0756748393, -0.5871015787, -0.0813037008, -0.0964609683, 0.1543782502, 0.59524405, -0.4551481009, 0.031125633, 0.0455691777, 0.1699534655, 0.4789015055, -0.1304559857, 0.0390130654, 0.1729509681, 0.1876671314, -0.0484990925, -0.0702740252, 0.1377957761, 0.1060291082, -0.0637330636, -0.0711321533, -0.1525836736, -0.1502204984, 0.0998601094, 0.0143189123, 0.3330242634, 0.0458891988, 0.2113546729, 0.4080848098, 0.2017605156, 0.0718019232, -0.3809926212, 0.0200542845, 0.0719002187, -0.188730672, -0.1524382532, -0.1257038265, 0.0813990906, 0.1215052679, -0.3927780688, -0.3188354075, -0.3502142131, 0.0856013224, -0.117906414, 0.4086127877, -0.0059123728, 0.2030268162, -0.2063987851, 0.0338469334, 0.0438848175, 0.1606598347, 0.0185740609, 0.1159619316, -0.5277094245, -0.0310806297, -0.0583058298, 0.0389653556, 0.354437083, 0.5155142546, -0.0361989848, 0.2214540094, -0.1061521098, -0.1359122396, 0.0883779153, 0.1771474183, 0.342574805, -0.3739395142, 0.2876468301, 0.2135390937, 0.0820098966, -0.0754378662, 0.009954161, 0.372959882, 0.3608310521, 0.0665015206, 0.0278090257, 0.0363486074, -0.0933401883, 0.0266610589, 0.3354783058, 0.1904853433, -0.1879785061, 0.2221893072, 0.1101661846, -0.0887121111, 0.3944172561, 0.0983027592, 0.1196606979, -0.1152642742, 0.1943054944, -0.2477383316, -0.1086109728, 0.0640456527, -0.3541446626, -0.358769089, -0.0634774417, 0.2332486808, 0.1124907285, 0.0440791808, -0.0250769015, 0.0849538669, -0.128932789, 0.2790076435, 0.2456029356, -0.0799997523, -0.1668443382, -0.1844666451, -0.2015261948, 0.1580560952, -0.0404098332, -0.1079190597, 0.2371384501, 0.3279325664, -0.0682452098, 0.2060452551, -0.0900720358, -0.1822009981, -0.2946018577, 0.2807135582, -0.3546517491, -0.2369973361, 0.1787971109, 0.2335973382, 0.0910655633, -0.4543965161, 0.2050727308, -0.3312032819, 0.1178359836, 0.0553922355, -0.0305206683, 0.0156793948, 0.0668510422, 0.2356531769, 0.1621076167, 0.115546599, -0.1349949241, -0.1920711994, -0.0728204101, -0.1768475473, -0.018311305, 0.1458834261, -0.0582508445, 0.5028751493, -0.0484356843, -0.4014250338, -0.4371390045, 0.4285810292, -0.0439623334, -0.4439986944, 0.0103936912, 0.0140105654, -0.17603679, 0.1818832457, 0.0124768335, 0.1777727753, -0.0506042317, 0.0616827048, -0.3085519969, -0.1021585092, 0.5942245722, -0.4224966764, -0.3192537725, 0.3241406679, 0.1266875416, 0.1190698445, 0.129895702, -0.1965908259, 0.1324759275, 0.4372049272, -0.0283877663, 0.1215384826, 0.1597633064, 0.1152024269, 0.1851295084, 0.1178185269, 0.0776486918, 0.1725970507, -0.2597602606, 0.132927835, -0.2140504122 ]
https://github.com/huggingface/datasets/issues/2607
Streaming local gzip compressed JSON line files is not working
Hi ! To make the streaming work, we extend `open` in the dataset builder to work with urls. Therefore you just need to use `open` before using `gzip.open`: ```diff - with gzip.open(file, "rt", encoding="utf-8") as f: + with gzip.open(open(file, "rb"), "rt", encoding="utf-8") as f: ``` You can see that it is the case for oscar.py and c4.py for example: https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/datasets/oscar/oscar.py#L358-L358 https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/datasets/c4/c4.py#L88-L88
## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True) next(iter(streamed_dataset)) ``` ## Actual results ``` FileNotFoundError Traceback (most recent call last) <ipython-input-6-27a664e29784> in <module> ----> 1 next(iter(streamed_dataset)) ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 336 337 def __iter__(self): --> 338 for key, example in self._iter(): 339 if self.features: 340 # we encode the example for ClassLabel feature types for example ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self) 333 else: 334 ex_iterable = self._ex_iterable --> 335 yield from ex_iterable 336 337 def __iter__(self): ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs) 282 def wrapper(**kwargs): 283 python_formatter = PythonFormatter() --> 284 for key, table in generate_tables_fn(**kwargs): 285 batch = python_formatter.format_batch(table) 286 for i, example in enumerate(_batch_to_examples(batch)): ~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files) 85 file, 86 read_options=self.config.pa_read_options, ---> 87 parse_options=self.config.pa_parse_options, 88 ) 89 except pa.ArrowInvalid as err: ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory ``` ## Environment info - `datasets` version: 1.9.1.dev0 - Platform: Darwin-19.6.0-x86_64-i386-64bit - Python version: 3.7.7 - PyArrow version: 1.0.0
61
Streaming local gzip compressed JSON line files is not working ## Describe the bug Using streaming to iterate on local gzip compressed JSON files raise a file not exist error ## Steps to reproduce the bug ```python from datasets import load_dataset streamed_dataset = load_dataset('json', split='train', data_files=data_files, streaming=True) next(iter(streamed_dataset)) ``` ## Actual results ``` FileNotFoundError Traceback (most recent call last) <ipython-input-6-27a664e29784> in <module> ----> 1 next(iter(streamed_dataset)) ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 336 337 def __iter__(self): --> 338 for key, example in self._iter(): 339 if self.features: 340 # we encode the example for ClassLabel feature types for example ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in _iter(self) 333 else: 334 ex_iterable = self._ex_iterable --> 335 yield from ex_iterable 336 337 def __iter__(self): ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in __iter__(self) 76 77 def __iter__(self): ---> 78 for key, example in self.generate_examples_fn(**self.kwargs): 79 yield key, example 80 ~/Documents/GitHub/datasets/src/datasets/iterable_dataset.py in wrapper(**kwargs) 282 def wrapper(**kwargs): 283 python_formatter = PythonFormatter() --> 284 for key, table in generate_tables_fn(**kwargs): 285 batch = python_formatter.format_batch(table) 286 for i, example in enumerate(_batch_to_examples(batch)): ~/Documents/GitHub/datasets/src/datasets/packaged_modules/json/json.py in _generate_tables(self, files, original_files) 85 file, 86 read_options=self.config.pa_read_options, ---> 87 parse_options=self.config.pa_parse_options, 88 ) 89 except pa.ArrowInvalid as err: ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json.read_json() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/_json.pyx in pyarrow._json._get_reader() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_input_stream() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.get_native_file() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile.__cinit__() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/io.pxi in pyarrow.lib.OSFile._open_readable() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() FileNotFoundError: [Errno 2] Failed to open local file 'gzip://file-000000000000.json::/Users/thomwolf/github-dataset/file-000000000000.json.gz'. Detail: [errno 2] No such file or directory ``` ## Environment info - `datasets` version: 1.9.1.dev0 - Platform: Darwin-19.6.0-x86_64-i386-64bit - Python version: 3.7.7 - PyArrow version: 1.0.0 Hi ! To make the streaming work, we extend `open` in the dataset builder to work with urls. Therefore you just need to use `open` before using `gzip.open`: ```diff - with gzip.open(file, "rt", encoding="utf-8") as f: + with gzip.open(open(file, "rb"), "rt", encoding="utf-8") as f: ``` You can see that it is the case for oscar.py and c4.py for example: https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/datasets/oscar/oscar.py#L358-L358 https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/datasets/c4/c4.py#L88-L88
[ -0.19924891, -0.1339782476, -0.0091442792, 0.2391349524, 0.0777639374, 0.0168800782, 0.39767465, 0.5178916454, 0.1970214248, 0.0789983049, 0.1030014679, 0.3306829929, -0.0883667767, 0.020873908, 0.2288867384, -0.1809342057, -0.0436619073, 0.3560612798, -0.0251666978, 0.0015850025, -0.1305663288, 0.2937989533, -0.1404588521, -0.0185168833, -0.0187980942, -0.0395552181, -0.0471499898, 0.150094375, -0.0939596146, -0.3326385021, 0.0627696961, -0.1684149355, 0.1880224943, 0.4454548657, -0.000114536, 0.288641274, 0.2961107194, -0.1629140526, -0.3886066973, -0.4712480307, -0.2299012989, -0.1492991, -0.1307714581, -0.2858453393, -0.1378192306, -0.3474360704, -0.0337570645, -0.5071998239, 0.5416867733, 0.2922606766, 0.1556636393, 0.0419653952, -0.0617718287, 0.090578936, 0.0390160643, 0.1573234349, -0.0886080563, 0.3150978088, 0.0327885523, 0.1149681658, 0.0552852377, 0.4286457896, -0.2254956663, -0.1747768968, 0.1473698765, -0.0008161036, -0.0843829438, -0.1257868409, -0.1683155149, 0.0857346132, 0.1845448166, -0.412256062, -0.4398342073, -0.3761075437, 0.0466744043, -0.4488027096, 0.211854741, 0.409285754, -0.2503087223, 0.1969693452, -0.1006654873, -0.1305320412, -0.3545616865, 0.0854527503, 0.361849159, 0.3480829597, -0.0946778134, 0.0091284681, -0.091986686, 0.1193793565, -0.0839841515, -0.3859615922, -0.1857066453, 0.2277566344, -0.2421414256, -0.1349226832, 0.1443626285, -0.6062148213, 0.1511495709, 0.1012284383, 0.4615778029, -0.1257448941, 0.3588071764, 0.0546083562, 0.2728681266, 0.1870489419, 0.1769656837, 0.2638423145, 0.0566587783, 0.3898809254, -0.0865664557, -0.1980738938, -0.2363381237, -0.0394049883, -0.0915297419, 0.1368106902, 0.4833264053, -0.1576652825, -0.0890932977, 0.0819108561, -0.5941808224, -0.1327001452, 0.157672599, 0.0986092985, 0.0661023185, 0.2201745361, 0.0264846105, 0.1610844433, -0.0021046824, -0.0618945956, -0.0907955542, 0.023572417, 0.0740586966, 0.1347989738, 0.2518974543, -0.5213882327, 0.2793644965, 0.0087545319, -0.0460298657, -0.1562342644, 0.0058455085, -0.1255564541, 0.1504516453, 0.1468392611, -0.0259296, 0.0193638876, 0.2058846951, -0.1102270856, -0.1738195121, 0.1183539033, -0.2751960456, -0.2672140598, 0.0372359566, 0.2010165304, 0.0381591618, 0.0093890959, -0.0081487047, 0.0059312466, 0.0556991734, -0.3565129936, 0.0236363877, -0.0094648041, -0.0558014661, -0.0841289014, 0.2759922743, 0.4360963702, -0.3608720303, -0.1035923213, 0.0715650022, 0.2175855488, 0.7216555476, 0.3425384164, -0.2379720211, 0.127307564, -0.3681202233, 0.3619052768, 0.6931349635, 0.016038008, -0.3624653518, 0.8522368073, -0.1086345613, 0.3817506433, 0.4800843894, -0.2044291496, 0.1941484064, -0.0105178822, 0.3352074325, 0.2812871635, -0.0445725545, 0.0385273173, -0.4642711282, 0.1312146634, 0.0419500545, 0.0378056541, -0.2513180077, 0.2954410017, -0.0433926508, 0.0150334602, 0.352089256, -0.1800561398, 0.108184427, 0.2904557288, 0.2378063798, 0.0199457929, 0.2021736652, 0.0092640249, -0.2178029865, 0.0324927159, -0.3366107345, -0.2629368901, -0.2826170623, -0.062410254, -0.1401133686, 0.1487001777, -0.1843477339, -0.3533779681, 0.146481961, 0.4111509919, 0.380898416, 0.0224370826, -0.4623304904, 0.3006553948, -0.2987253964, -0.1048560813, -0.2611704767, 0.4293636084, 0.0721356794, -0.2631470859, 0.175884217, -0.0589887351, 0.1717890054, -0.2416349053, -0.2221170664, 0.2450817972, -0.1208552867, 0.1709068865, 0.1169748157, -0.2226255834, 0.2957749367, -0.0062116678, -0.0720569566, 0.3445871472, 0.2193280607, 0.2041206211, -0.2239912748, 0.4739871621, -0.0305658877, 0.3029981554, 0.0209111106, -0.2058361918, 0.1924334317, -0.0084316479, -0.3421524763, 0.0653709099, 0.3345847428, -0.1258886158, 0.0946049467, -0.0612956919, -0.3791345656, -0.0635565519, 0.5271072984, -0.0830586553, -0.1615021527, 0.192688182, -0.18031241, -0.0555441342, 0.2965637445, -0.0067164446, 0.3335768282, 0.1575450301, 0.1046028212, 0.016613353, -0.1111171022, -0.2565548122, 0.2091604471, -0.0900342986, 0.1146261692, 0.5449169278, 0.0356364809, 0.0449171625, -0.3995398879, -0.2428150177, -0.1288821548, 0.1455804855, -0.0990883037, 0.384134382, -0.391135633, -0.3713185191, -0.1201701835, -0.1128698438, -0.0630644262, -0.0857729614, -0.026965389, 0.2985588312, -0.2004607767, 0.2329238057, 0.0005529033, 0.039402049, 0.2519483268, -0.4227376878, -0.4818937778, -0.1630385667, -0.191156581, -0.0104030771, 0.2656037211, -0.2878887951, 0.3017157614, -0.045904018, -0.3699755669, -0.270799309, 0.1194070652, 0.1435609162, 0.0721822008, -0.0227006711, -0.091280371, 0.2280840427, -0.0796875432, -0.3324356079, 0.287009567, -0.2174523324, -0.1486557126, 0.19485192, -0.0311844852, -0.0018441877, -0.2352985889, -0.2655208707, -0.1472448707, -0.4852220118, 0.2896815836, -0.0403694734, 0.3086785376, 0.2429102212, 0.1440983117, 0.1779594868, 0.15565826, -0.0546928383, -0.1509626061, -0.6362749934, 0.3917453587, -0.1101359501, -0.2303782851, -0.0295010619, -0.1555970609, -0.0550970957, 0.3612906337, -0.4562183917, 0.2379129231, 0.0702734292, 0.0834180191, -0.0950677991, -0.1340569854, 0.1914461851, -0.1075464785, -0.060360603, -0.259009093, 0.0759438872, -0.0122349681, 0.2527313828, 0.1833108068, 0.4013441503, 0.7469969392, -0.0391616598, 0.2865434289, 0.353392303, 0.1458687782, 0.5503772497, -0.1300926358, 0.1602504849, -0.2425833791, -0.2188411504, 0.0596466362, 0.1050836742, -0.3196414113, 0.0274330527, 0.0012186184, -0.3406589925, -0.3240846395, 0.1244039536, -0.3062016666, -0.1882947534, 0.2014841288, -0.0963935554, 0.196411714, -0.0394232534, -0.0296400934, -0.0032320328, 0.1153509393, -0.0483283401, 0.2654097974, 0.4285126328, 0.1289334595, -0.0543238409, -0.1830669045, -0.3484929502, 0.0787643045, 0.2743044496, 0.602060616, -0.1669996977, -0.1687552184, 0.0798478946, -0.1684128046, 0.4636305273, -0.125880003, -0.034154065, 0.3472773135, -0.1242791638, -0.0266533829, -0.1190544516, -0.0431698337, 0.3530094028, 0.1959492713, 0.6723819971, -0.1772068888, -0.2202005386, 0.1132564172, 0.0215651691, 0.0907033756, -0.1562680006, -0.2928068936, -0.135812059, -0.201933071, -0.0655043945, -0.0717763528, 0.2410783917, 0.019956056, -0.1312815994, 0.0536010861, -0.073054567, -0.1126664132, 0.0078037987, 0.2940389812, -0.0325311646, 0.1593423188, 0.0570227988, 0.5039329529, 0.2327844203, 0.5136665702, 0.5314759016, -0.4147776663, 0.1325850189, 0.070245266, 0.1329941303, 0.1649878323, -0.1350930333, -0.1513889879, 0.1381041408, 0.2574624717, -0.035581477, -0.0832143351, 0.2338194847, -0.1555823684, -0.3567375839, -0.4606519341, 0.2432614714, -0.0392032973, 0.1920533329, 0.7787454128, -0.604657352, -0.1680703759, 0.1287043244, -0.327439636, 0.6506019831, 0.30569157, -0.0126124099, 0.4230309129, -0.1530071646, 0.4291079044, -0.4506244361, 0.3880237043, -0.1075449288, -0.1895087063, 0.0136247417, -0.1521780789, 0.3272455931, 0.1736506075, -0.3301243484, 0.1560810804, 0.0949869454, -0.0261119418, 0.0564026721, 0.0844657943, -0.3410907686, -0.1478555501, -0.6056393981, 0.0822725371, -0.164342612, 0.3591600657, 0.1198650077, -0.387160629, 0.0100031141, -0.2189191282, -0.1640437692, 0.4873073697, -0.2205232084, -0.0437985212, -0.120164454, -0.6457439065, -0.3231778145, -0.1665351987, -0.3695808947, -0.1014872417, -0.0968804285, -0.0140163144, -0.1560026854, 0.0815747976, -0.4244864285, 0.2442320585, 0.1879111826, -0.1447572559, -0.0854347199, 0.1730189174, -0.2793941498, -0.5516796112, 0.2067955136, -0.0945817083, 0.244337365, 0.1387686878, -0.0142797204, 0.0188980792, -0.1952122152, -0.2021061778, 0.1315957159, -0.1408142149, -0.3405293524, -0.2667014599, -0.15190202, -0.2008609772, -0.1044818312, 0.2798334956, 0.0701383725, 0.3024793863, 0.3966617584, -0.0176078323, -0.063301459, -0.2849560976, 0.0822027996, -0.199444741, -0.0627181306, 0.145860821, -0.0238585994, 0.1735640168, -0.2250165492, -0.0105746957, 0.1574334055, 0.052780237, 0.0311239529, -0.4647309482, -0.1359292716, -0.1071504205, -0.0055007907, 0.1117186174, 0.1044033319, 0.2052554637, 0.1506942213, -0.1848130673, -0.287404567, -0.1490447223, -0.1798329353, 0.0388778262, 0.0197011903, 0.1445137113, 0.3058989644, 0.0417761169, 0.1726240069, 0.1845809519, 0.1145531982, -0.2760640085, -0.12947537, 0.1017441601, 0.1475506574, -0.1066455394, -0.2568068802, -0.0784025341, -0.2397446334, -0.0903128907, 0.1030200794, -0.0890861303, -0.0714162439, 0.2204836607, 0.3504036069, -0.0414799117, -0.1651160568, -0.0696930513, -0.2029709816, 0.3246164322, -0.1491923332, 0.0957460031, 0.0479334816, 0.0756748393, -0.5871015787, -0.0813037008, -0.0964609683, 0.1543782502, 0.59524405, -0.4551481009, 0.031125633, 0.0455691777, 0.1699534655, 0.4789015055, -0.1304559857, 0.0390130654, 0.1729509681, 0.1876671314, -0.0484990925, -0.0702740252, 0.1377957761, 0.1060291082, -0.0637330636, -0.0711321533, -0.1525836736, -0.1502204984, 0.0998601094, 0.0143189123, 0.3330242634, 0.0458891988, 0.2113546729, 0.4080848098, 0.2017605156, 0.0718019232, -0.3809926212, 0.0200542845, 0.0719002187, -0.188730672, -0.1524382532, -0.1257038265, 0.0813990906, 0.1215052679, -0.3927780688, -0.3188354075, -0.3502142131, 0.0856013224, -0.117906414, 0.4086127877, -0.0059123728, 0.2030268162, -0.2063987851, 0.0338469334, 0.0438848175, 0.1606598347, 0.0185740609, 0.1159619316, -0.5277094245, -0.0310806297, -0.0583058298, 0.0389653556, 0.354437083, 0.5155142546, -0.0361989848, 0.2214540094, -0.1061521098, -0.1359122396, 0.0883779153, 0.1771474183, 0.342574805, -0.3739395142, 0.2876468301, 0.2135390937, 0.0820098966, -0.0754378662, 0.009954161, 0.372959882, 0.3608310521, 0.0665015206, 0.0278090257, 0.0363486074, -0.0933401883, 0.0266610589, 0.3354783058, 0.1904853433, -0.1879785061, 0.2221893072, 0.1101661846, -0.0887121111, 0.3944172561, 0.0983027592, 0.1196606979, -0.1152642742, 0.1943054944, -0.2477383316, -0.1086109728, 0.0640456527, -0.3541446626, -0.358769089, -0.0634774417, 0.2332486808, 0.1124907285, 0.0440791808, -0.0250769015, 0.0849538669, -0.128932789, 0.2790076435, 0.2456029356, -0.0799997523, -0.1668443382, -0.1844666451, -0.2015261948, 0.1580560952, -0.0404098332, -0.1079190597, 0.2371384501, 0.3279325664, -0.0682452098, 0.2060452551, -0.0900720358, -0.1822009981, -0.2946018577, 0.2807135582, -0.3546517491, -0.2369973361, 0.1787971109, 0.2335973382, 0.0910655633, -0.4543965161, 0.2050727308, -0.3312032819, 0.1178359836, 0.0553922355, -0.0305206683, 0.0156793948, 0.0668510422, 0.2356531769, 0.1621076167, 0.115546599, -0.1349949241, -0.1920711994, -0.0728204101, -0.1768475473, -0.018311305, 0.1458834261, -0.0582508445, 0.5028751493, -0.0484356843, -0.4014250338, -0.4371390045, 0.4285810292, -0.0439623334, -0.4439986944, 0.0103936912, 0.0140105654, -0.17603679, 0.1818832457, 0.0124768335, 0.1777727753, -0.0506042317, 0.0616827048, -0.3085519969, -0.1021585092, 0.5942245722, -0.4224966764, -0.3192537725, 0.3241406679, 0.1266875416, 0.1190698445, 0.129895702, -0.1965908259, 0.1324759275, 0.4372049272, -0.0283877663, 0.1215384826, 0.1597633064, 0.1152024269, 0.1851295084, 0.1178185269, 0.0776486918, 0.1725970507, -0.2597602606, 0.132927835, -0.2140504122 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
Hi ! If we want something more general, we could either 1. delete the extracted files after the arrow data generation automatically, or 2. delete each extracted file during the arrow generation right after it has been closed. Solution 2 is better to save disk space during the arrow generation. Is it what you had in mind ? The API could look like ```python load_dataset(..., delete_extracted_files_after_usage=True) ``` In terms of implementation, here are some directions we could take for each solution: 1. get the list of the extracted files from the DownloadManager and then delete them after the dataset is processed. This can be implemented in `download_and_prepare` I guess 2. maybe wrap and mock `open` in the builder to make it delete the file when the file is closed.
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
129
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. Hi ! If we want something more general, we could either 1. delete the extracted files after the arrow data generation automatically, or 2. delete each extracted file during the arrow generation right after it has been closed. Solution 2 is better to save disk space during the arrow generation. Is it what you had in mind ? The API could look like ```python load_dataset(..., delete_extracted_files_after_usage=True) ``` In terms of implementation, here are some directions we could take for each solution: 1. get the list of the extracted files from the DownloadManager and then delete them after the dataset is processed. This can be implemented in `download_and_prepare` I guess 2. maybe wrap and mock `open` in the builder to make it delete the file when the file is closed.
[ -0.0422240309, -0.0520783477, -0.137564823, 0.2491360605, -0.0890201479, 0.104098551, -0.1198281944, 0.1847193539, 0.2342312187, 0.2407585382, 0.1567290723, 0.5178807974, -0.3404890597, -0.0508526862, -0.1349283308, -0.0202004369, -0.19922553, 0.3400240242, -0.0047849817, 0.230329901, -0.2209788412, 0.026225403, 0.0232042614, -0.1026178375, 0.081178993, -0.3859207332, 0.1359870881, -0.1867466271, -0.1622758657, -0.5164058208, 0.0541754365, 0.5212087631, 0.2322491109, 0.0971323922, -0.0001223348, 0.0322480313, 0.2591514587, 0.0799543783, -0.4075613916, 0.1244009435, -0.1461262256, -0.2453018129, 0.2597362399, -0.1671174765, 0.2101426274, -0.5648966432, -0.2238959968, -0.6139012575, 0.5910027027, -0.0977443308, 0.0498434789, 0.1384612769, -0.3260318637, 0.245262444, 0.2004275322, 0.2770321965, -0.0424006991, 0.0223672148, 0.415189743, 0.0967544541, 0.1619670987, 0.3807039559, -0.0550241321, -0.1603193581, 0.4445158541, 0.0631320849, -0.0319242068, -0.485272795, 0.1398251653, -0.0066928752, 0.7061523795, -0.4330637753, -0.2672884464, -0.4574387074, 0.0280469842, -0.5922438502, 0.0385920927, 0.2951566279, -0.1211812496, 0.2089287937, -0.1103951335, -0.4544365108, -0.3733915091, -0.0871412084, 0.6077163219, -0.3243744671, -0.0568623468, -0.065668948, 0.3697437942, 0.0736785084, 0.2949277163, -0.2698956132, -0.1399098933, 0.5059067011, -0.0271433387, -0.1845744252, -0.2607626915, -0.289709866, 0.1194358468, 0.3029822111, 0.3516386449, -0.0070103249, 0.1930617988, 0.1110152751, 0.1876696795, 0.3751329184, 0.0078877239, -0.053053949, 0.1721746922, 0.2076804936, 0.0642983317, -0.0915422738, 0.0383336097, -0.1278786212, 0.3636783659, 0.0154576143, 0.0716333762, 0.0261882879, -0.1650817394, 0.0782495216, 0.1291306168, -0.135167405, 0.1513490081, 0.2670408785, 0.0587308481, 0.162047416, 0.215888679, 0.2350439131, -0.0299417209, -0.1465881765, 0.1376228631, 0.0731802806, -0.2401813269, -0.1884089857, 0.3641345203, -0.0083341682, 0.0416415669, 0.0005883612, -0.3138784468, -0.0641822219, 0.6676414609, -0.0993859768, 0.2807014883, 0.3421967626, -0.1093470901, -0.243618831, -0.3248206675, -0.1198690534, -0.1965586245, 0.5875697136, -0.1568875015, -0.3170168102, -0.1368434429, 0.1290900111, -0.0270510092, 0.2437293082, -0.5556285381, 0.1172114015, 0.1631525457, 0.0627301186, -0.0224352162, 0.2961558402, -0.0586103275, -0.1787775308, -0.1893478781, 0.3691440821, -0.5007238388, -0.1223104075, -0.3205629289, -0.1797676384, 0.1424597502, -0.0010877899, -0.1239745095, 0.3791064024, -0.2620406449, 0.0915971473, 0.5124641657, -0.1815717816, -0.4231874347, 0.148275584, 0.1100988239, 0.2711137533, 0.3149678409, 0.2507963777, 0.2787888944, 0.002117252, -0.0384883136, 0.4016495645, 0.0736519173, 0.004099546, -0.2239468247, -0.4116459489, 0.0513558052, 0.2471983433, -0.0207933113, 0.0398834199, 0.0623964332, -0.1024291143, 0.3069234192, 0.0978260487, 0.1519831866, 0.1327221245, 0.1448925585, -0.2485721409, -0.2080589235, 0.0697802454, -0.5534024835, 0.1737687588, -0.5192010403, -0.2917679846, -0.4091204703, -0.3444459438, 0.0820594728, 0.1959255487, -0.2989017665, 0.1966815889, 0.0327642523, -0.1894041449, 0.2831684947, -0.006417267, -0.4284307361, 0.0199057925, -0.1408997625, 0.1741946042, -0.4501314759, 0.1040370688, 0.2124263793, -0.1986985356, -0.1110473648, -0.0094020898, -0.2910374701, -0.3422916234, -0.0936390162, 0.2829712033, 0.3651206195, 0.2683431804, 0.1073637381, 0.2281978428, 0.2203882784, 0.2218506783, 0.0824295282, 0.2590486407, 0.0871408507, 0.1824861616, -0.2291259319, 0.5258799195, -0.0765098631, 0.0241307076, -0.1283982098, -0.3022351563, 0.2240573168, -0.0017423517, 0.0128595391, -0.4730239809, -0.0542872287, 0.368306607, 0.1288883686, 0.0917663947, 0.1476073712, -0.0150870718, 0.0925111994, -0.1031508744, -0.1026700363, 0.3242189288, -0.06961786, -0.1613183618, 0.0573298186, 0.415165931, 0.448120892, 0.0921722502, -0.1154632866, -0.078765586, 0.4702810049, 0.0514211953, 0.268476367, 0.1953541785, 0.081386134, 0.3618115187, 0.1682405621, -0.0622612312, -0.2748676538, -0.0914836004, 0.0715448484, 0.2726360857, 0.2208341807, -0.0611380003, -0.1839365214, -0.2929831445, 0.2759945393, 0.1252205223, 0.2172903866, -0.0161958262, 0.4093546867, 0.0779328346, -0.3893390596, 0.0748196021, 0.00821192, 0.5284098387, -0.0873368084, -0.2672452033, -0.3404188156, -0.1312678754, 0.2366928756, -0.0275296867, 0.3818287253, -0.1984551102, 0.5107131004, 0.0785909072, 0.0959747806, -0.0302721299, -0.0918447822, 0.0615338832, 0.4084799886, 0.0522787273, 0.1331733465, 0.1684501022, 0.1248739362, 0.0609200932, -0.1308314055, -0.2205237895, -0.0963042229, 0.1561929286, 0.0524338298, 0.0963247865, -0.2165248394, -0.0163155124, -0.307195127, -0.3777164221, 0.2557627261, 0.1072916463, 0.1372365206, 0.0845117047, 0.2943945527, -0.058756724, 0.141272977, 0.0703830123, 0.0453877822, -0.5879280567, 0.1189823151, -0.207339406, 0.0725699887, 0.3074825406, -0.122103937, 0.0604235455, 0.338839829, -0.3763494492, -0.0693926737, -0.0415734574, 0.2056568563, -0.297285229, -0.0365346856, 0.1967600882, 0.3320673406, -0.0217489842, 0.0054505868, 0.2608987689, 0.1648942381, 0.2400366962, 0.0658643618, 0.2286016941, 0.2869086266, 0.0574272163, 0.4774221182, -0.1240692735, 0.0212154891, 0.3330623806, 0.3224785626, 0.3370011449, -0.2226604074, 0.2584810555, -0.5167127252, -0.0704168901, -0.1229765043, 0.08866027, 0.1452048719, -0.1283564717, 0.0905669481, -0.1557760388, -0.2041722685, -0.1858892888, 0.3037091792, -0.312389493, 0.0866003931, -0.0249369275, -0.2253085077, -0.1689939499, -0.057938017, 0.0685018674, 0.1171315238, 0.5481662154, -0.122956194, -0.0619337708, -0.0753125623, -0.3717128634, 0.2466868609, -0.1443480849, -0.2700846195, 0.1441917717, 0.0228029639, 0.1901638657, 0.0920121372, 0.2852835357, -0.0214633886, -0.0921426266, -0.1937490702, -0.0241023116, -0.3323919475, 0.0090946332, 0.0599583872, 0.0449146219, -0.1582284868, 0.3985446692, -0.3091912866, -0.1924604923, -0.3509974182, 0.6400803328, -0.2645501792, -0.0694293901, -0.1440262645, -0.30620116, -0.6328191161, 0.0667905658, 0.0798803866, -0.0590766482, 0.1539490223, -0.3315376341, -0.1019188538, -0.1806177199, 0.0187126026, 0.0143037178, 0.6302096248, -0.3630811572, 0.0931550637, -0.1307260543, 0.0234390162, 0.4154002964, 0.3095869124, -0.0904388353, -0.1662483364, -0.0879402235, -0.2519858181, 0.0639646351, 0.1684666127, -0.2705991566, 0.4433527291, -0.1818034202, 0.5496018529, -0.1045356318, -0.021343343, -0.0765380636, -0.2536759675, 0.0044939001, -0.4548162222, 0.2276910394, 0.0446160734, -0.1759063005, 0.5514415503, -0.0850598142, -0.2699745595, 0.5203489065, 0.0690077245, 1.0979146957, -0.048418466, 0.0587539487, -0.0167361852, -0.2775872946, 0.3807529509, -0.4976658523, 0.2090120167, -0.0645464659, -0.0310500655, 0.0491861627, -0.0622940846, 0.0427287593, 0.2365057617, -0.1930375546, 0.1230346337, -0.3904761076, -0.131373629, -0.2855244279, 0.3503832519, -0.2633571923, -0.2937427759, -0.2429060042, -0.0423142388, 0.0437844954, 0.0046018152, -0.312577039, -0.0823145434, 0.3401916325, -0.0623883717, 0.2848974168, -0.1401857287, -0.3396238387, 0.3695367575, -0.1837325841, -0.1763904691, -0.2778179049, 0.209035933, -0.289345175, -0.0132784117, 0.1523066312, 0.0673098117, 0.0064265882, 0.0233527254, -0.3320411146, -0.0007072092, 0.062299367, -0.1600415707, 0.0114371656, 0.2037497014, -0.3674548864, -0.3369385004, 0.2151458412, 0.1448113918, -0.0885296836, 0.0572301224, -0.3552042842, -0.2007965446, -0.4958283007, 0.0858129337, 0.0628237873, 0.3129727244, -0.2482842952, 0.2814539969, -0.3506732583, -0.1324828118, -0.1104248539, -0.2255334705, 0.2954694033, -0.0500766039, 0.3738798499, -0.1685558408, -0.2155817449, -0.3375292718, 0.0205048416, -0.0178959258, -0.4794527888, 0.463789165, 0.1569728404, -0.0721624866, 0.03540181, 0.0089945896, -0.094244726, 0.0493262857, -0.157298699, -0.1785901785, -0.5771636963, 0.2368873209, 0.2657475471, 0.4896398187, 0.034577053, -0.1116784215, -0.1058108062, 0.0329583623, -0.200425908, 0.2264086455, 0.2059655339, 0.1356118172, -0.0961439908, 0.2747270763, 0.0138175059, -0.2292103022, -0.1126265973, 0.0334492773, -0.1656563431, -0.1269178391, -0.1983717233, 0.1402418762, -0.0914146975, -0.1350336671, -0.0911219269, -0.289968282, 0.0810252279, -0.1910166293, 0.2622928321, -0.2783585787, -0.132127285, -0.1273307502, 0.3750873208, 0.0331166163, -0.2510361075, 0.226499036, -0.1331769228, 0.4104572237, 0.0275569931, 0.0273097865, -0.0992766619, -0.0567130633, -0.2499887943, 0.0564192981, 0.2500880361, 0.0263423994, 0.1521478891, -0.0712459758, -0.0994433314, -0.0005779889, 0.1916671842, 0.274194479, -0.0699495599, -0.000806487, -0.077697292, 0.1756119281, -0.2982024252, -0.1586705446, -0.0591925308, -0.007643614, -0.1619359702, 0.2961509228, 0.2256488204, 0.089992471, -0.1198941618, 0.1513798982, 0.3126505017, -0.2347840518, 0.2393759489, 0.3698672056, 0.0780753717, -0.105927147, -0.0545850359, 0.3103907406, 0.2109913677, -0.046723038, -0.2592594326, 0.4465029836, 0.5072869658, 0.2389114797, -0.5002036095, -0.3075027764, -0.2232683897, 0.5195417404, -0.0814840645, 0.368180722, 0.4082182646, 0.238292411, 0.2595692575, -0.2480432987, -0.1358733624, 0.5102298856, 0.0621813871, -0.0676642358, 0.0678965971, -0.114604488, 0.1157869101, 0.1046567708, 0.1796216816, 0.1921071708, -0.1854076087, 0.3415925503, 0.0732640922, 0.2138115764, 0.4533450603, 0.2281686068, 0.4140398204, -0.2492755949, -0.2296031713, 0.2814233303, 0.2110304683, -0.1215109825, -0.174724862, 0.0849728212, 0.10954611, -0.4609770775, 0.0860378817, 0.0707158893, 0.0760111138, -0.2645121217, 0.3912460208, 0.2391768843, -0.0945055634, -0.0702002719, 0.0254681315, -0.101329729, 0.0878037587, 0.1649086177, 0.2344883978, -0.1868000776, -0.0388953276, 0.2961955965, -0.4712988734, -0.0206246376, -0.1165809706, -0.1584409773, -0.0656105056, 0.2926977277, -0.1955598444, -0.0210692063, -0.1047487035, 0.0503781699, -0.290258646, 0.2498258203, 0.1887846142, -0.1815609932, -0.3060778975, -0.2786381543, -0.3781638145, -0.2545592487, -0.198064357, -0.0352447219, 0.2598962486, 0.1381271631, -0.0356419608, 0.1969049275, 0.0324109644, 0.0291324556, 0.0739201233, 0.1020733044, -0.4914740324, 0.0756240487, 0.1766169518, 0.1397939324, 0.0936074704, -0.5097526908, -0.3088515997, -0.1815594733, -0.0467218347, -0.0911012739, 0.2209639549, 0.2755777538, 0.6003808975, 0.7884603739, -0.1086811647, -0.2611298859, -0.0246223304, -0.2064299285, 0.0625543371, -0.0551165715, -0.0832699388, -0.2104490697, 0.3017952442, 0.3111480772, -0.2844792604, 0.3605867624, -0.3408158123, -0.2436245233, -0.1466901004, 0.0409393124, -0.2627133131, -0.0334500335, -0.0489040241, 0.4001444876, 0.0136861382, 0.2550776899, 0.0295579825, 0.05883421, -0.3597673774, -0.0254772194, 0.38397488, 0.1979370117, -0.2956695259, 0.4079870284, 0.1053553671, 0.0487200953, 0.0305682328, -0.3500060737, 0.2871955037, 0.1400466412, -0.3088755906, -0.0610063002, 0.2714015245, 0.0102573456, 0.0061119515, 0.1072329804, 0.4342738092, 0.2631798685, 0.0932722986, -0.4791609049, -0.2532895803 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
Also, if I delete the extracted files they need to be re-extracted again instead of loading from the Arrow cache files
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
21
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. Also, if I delete the extracted files they need to be re-extracted again instead of loading from the Arrow cache files
[ -0.0280626472, -0.1268453449, -0.1462636888, 0.1517365426, -0.1755877435, 0.1943834573, -0.2197523117, 0.2515493631, 0.1799500734, 0.1638498753, 0.1056419984, 0.4813864231, -0.240722701, -0.1040742695, -0.1887396127, -0.0030701694, -0.2355996519, 0.288969934, -0.007610328, 0.1621085554, -0.135130778, 0.015067447, 0.0465383679, -0.154121384, 0.0537766442, -0.4090359509, 0.2061122805, -0.2602272928, -0.1102863327, -0.3523692787, -0.0030769135, 0.5342470407, 0.2766071856, 0.1419574171, -0.000120887, -0.0142732468, 0.2875986397, 0.0723435432, -0.4089965522, 0.2255584002, -0.2436768711, -0.1031284407, 0.2598845065, -0.1265425384, 0.2946946323, -0.4084396362, -0.2041454911, -0.6497344375, 0.5037789941, -0.2386167049, 0.0973821953, 0.009609838, -0.5454072952, 0.1060438082, 0.3338086605, 0.3475066423, -0.1310419291, -0.0081458138, 0.4774487913, 0.1009965464, 0.2767953277, 0.354262799, -0.0738359615, -0.2929222882, 0.3386685848, -0.0257928874, -0.0745977238, -0.2595768869, 0.2915349901, 0.024684798, 0.6543721557, -0.3459969163, -0.0916249603, -0.3327183425, 0.1247221306, -0.5869956613, 0.0834853277, 0.1749041677, 0.0470304899, 0.2470875233, -0.1042244881, -0.4791458249, -0.3593367338, -0.1478546411, 0.6762900352, -0.4306486845, -0.0751290619, -0.1268770248, 0.5420334935, 0.1520412564, 0.2174187601, -0.1760035008, -0.3039321005, 0.4096340239, -0.0656304434, -0.1792774349, -0.4102027714, -0.2998044789, 0.1566981077, 0.1752882749, 0.4254455864, -0.0052145347, 0.1747293025, 0.0212204307, 0.2458348274, 0.3867217302, 0.0701315477, -0.0618337542, 0.1884939522, 0.1172567159, 0.1380650252, -0.0492793694, 0.0289422162, -0.0381848887, 0.2580288351, 0.0199358333, -0.0384123065, -0.1320510358, -0.0718108639, 0.0647786707, 0.2061201334, -0.197459653, 0.0865886584, 0.1973827779, 0.2360138893, 0.034070909, 0.0615367368, 0.2982644737, 0.0124633377, -0.3605464697, 0.121532917, 0.122191146, -0.3169590831, -0.2377640158, 0.4114535153, -0.0058700345, -0.0418001972, -0.1277221739, -0.3367882073, 0.0653977022, 0.5076658726, -0.1196557507, 0.2788883746, 0.2771746516, -0.1964021027, -0.2270881981, -0.2803884447, -0.0114325257, -0.1321523786, 0.5104101896, -0.1253008842, -0.2173406035, -0.0665484369, 0.1125034317, 0.1528287381, 0.2723377347, -0.5884196162, 0.1173697785, 0.1026504561, 0.042582158, 0.0408399068, 0.3486086726, 0.0186309703, -0.0803231075, -0.3321528733, 0.2598175406, -0.6571019292, -0.0888558105, -0.3545115292, -0.2567664981, 0.2115153372, 0.1125069484, -0.1175077856, 0.2376225144, -0.1577703655, 0.1594099849, 0.3421453238, -0.0935674533, -0.3924857378, 0.1546454579, 0.095827125, 0.1922516525, 0.3176068962, 0.3045811653, 0.3846731484, 0.0386505276, -0.0686708018, 0.2615581751, 0.0880157202, -0.1083702892, -0.3247456253, -0.404474169, 0.0343367122, 0.2238273174, -0.003379049, 0.0553452857, 0.2231914848, -0.0305485502, 0.1710043252, 0.1498519778, 0.1663510799, 0.1606842279, 0.1390224993, -0.2714564204, -0.2364157885, 0.1407702267, -0.6055964231, -0.0088956375, -0.5798179507, -0.3777631819, -0.1828523874, -0.3519936502, 0.1315580159, 0.0131070726, -0.1980334967, 0.1989234388, 0.0346160233, -0.0616232976, 0.2489037663, -0.0277930778, -0.4232956469, -0.0171466097, -0.094082281, -0.0000206819, -0.4419442713, 0.1254571974, 0.1512194872, -0.2590888441, -0.0199731663, 0.0140805282, -0.2875116467, -0.4913888574, -0.1318504065, 0.2647311985, 0.3056981564, 0.291235745, 0.2880558968, 0.2514718771, 0.1814325452, 0.165221408, 0.1045261845, 0.1599606723, -0.0176255014, 0.088463679, -0.3933172226, 0.3887654245, -0.2242790312, -0.0352119543, -0.1823386103, -0.392252177, 0.2207527161, -0.1020580903, 0.1129979938, -0.5385870337, 0.0472975262, 0.3436100185, -0.1163011119, 0.0287121926, 0.1037622243, -0.1153917462, -0.0062077837, -0.044994168, -0.1471545994, 0.3006246388, -0.0148152104, -0.1625529677, 0.0789364055, 0.3862738311, 0.3511202931, 0.1766189784, -0.1846853793, -0.1630648375, 0.4579218626, -0.0095846485, 0.1368838251, 0.0368468575, 0.0184978861, 0.3677565455, 0.0602167919, -0.0062988689, -0.2424094826, -0.0591289289, 0.1128259152, 0.2101317644, 0.281932801, -0.2630927861, -0.2769412994, -0.4187944233, 0.4745362997, 0.3225943446, 0.2582395673, -0.0183713194, 0.5235859156, 0.0613530092, -0.4129445553, 0.0695446655, -0.0198273621, 0.6686825752, -0.1250791997, -0.2156379074, -0.404335618, -0.188647598, 0.1578586549, 0.016733285, 0.3731073141, -0.1012448668, 0.5151020288, 0.130383566, 0.1142640114, -0.0901171044, -0.0323505253, 0.0783115774, 0.3688566685, -0.0753835887, 0.0812373608, 0.1757232249, -0.0526803993, 0.1216849238, -0.1933169663, -0.2980665267, -0.124831371, 0.1577712744, 0.0885914266, -0.0213481728, -0.2257019877, -0.0321048424, -0.1681334376, -0.3950454593, 0.2272083312, -0.0255393293, 0.0000477785, 0.1141304374, 0.231345579, 0.0122269196, 0.0164261088, 0.0707676783, -0.0095827375, -0.5886602998, 0.1329728216, -0.2080152631, 0.0741189122, 0.2229173481, 0.0186060406, -0.001454539, 0.348714292, -0.3909087181, 0.0475149192, 0.0179737378, 0.1181499138, -0.3372397125, -0.0764736459, 0.214870289, 0.2313206047, -0.0852171034, 0.0311032739, 0.1433147788, 0.2431011647, 0.3958521485, 0.1196725667, 0.0834099725, 0.214575097, 0.1187930629, 0.3881936073, -0.2566868365, 0.0381416976, 0.3195041716, 0.3901723325, 0.4156242609, -0.1908152848, 0.2777891159, -0.418816179, 0.0556622446, -0.0858859643, 0.119064495, 0.0261613689, -0.145926103, 0.1614793539, -0.2239902616, -0.1283929497, -0.0923643038, 0.3123982251, -0.2337030768, 0.0603837408, -0.005724642, -0.2973094881, -0.0169659052, -0.0230036415, 0.1660929769, 0.1780433059, 0.424847424, -0.1065799594, -0.2460835725, -0.0765037909, -0.1745061427, 0.3237023652, -0.2353143096, -0.2074517012, -0.0801077038, 0.030073313, 0.1610286385, 0.2512599528, 0.3416737914, -0.1118746102, -0.0361461379, -0.1675201356, 0.0489435643, -0.2440112978, -0.0252703335, -0.0103160972, 0.0381946862, -0.0038875116, 0.4042290449, -0.2591197789, -0.1607066542, -0.2055033892, 0.575997591, -0.2591153681, -0.091646567, -0.0329357088, -0.1711933464, -0.5231106877, 0.0666251555, 0.0182752777, -0.1166655272, 0.1697266102, -0.3050324619, -0.0972614735, -0.3248192668, 0.0477092117, 0.04382075, 0.5563673377, -0.2645008266, 0.0622152165, -0.1286519915, 0.1483028382, 0.544457376, 0.2043479085, -0.0919582918, 0.0192473773, 0.0162741374, -0.3969782591, 0.1736554801, 0.1599514037, -0.2013671696, 0.3397915661, -0.2212533951, 0.5212974548, 0.0699869245, -0.0226431098, -0.205865398, -0.3038175702, -0.0185767543, -0.1665760875, 0.1150056869, 0.0280129462, -0.1756880879, 0.4709268808, -0.1054575071, -0.2438370734, 0.4904080629, 0.0997251868, 1.1869291067, -0.0977290943, -0.0377990939, -0.2128304094, -0.2820964456, 0.2717682421, -0.5684894323, 0.139094919, 0.0268348679, -0.0716801584, 0.1070431024, -0.05061258, 0.0369743556, 0.2111323327, -0.2481742799, 0.0501422919, -0.3473036289, -0.1581045389, -0.2884771824, 0.3806912005, -0.0826266184, -0.2182886899, -0.0489721894, -0.0239175577, 0.033717908, -0.0894673318, -0.2412536889, -0.0738153234, 0.370157361, -0.0102716396, 0.3230468035, -0.1315901875, -0.2649997175, 0.3628644049, -0.1891300231, -0.1291919649, -0.2284797877, 0.0440046601, -0.2324739844, 0.0319452174, 0.1362996846, 0.0124499127, 0.0906265229, -0.0633031577, -0.4203032255, 0.0675701648, -0.1030760035, -0.1273811311, 0.0338453278, 0.1527560055, -0.2764269412, -0.3605757356, 0.151114136, 0.1476819664, -0.1120918393, 0.0539428256, -0.26469028, -0.1267175078, -0.5518767238, 0.0999615192, 0.0886897519, 0.2987129092, -0.1719680578, 0.2865863144, -0.1654574424, -0.1470642388, -0.2052544355, -0.1596972793, 0.2845775485, -0.154622525, 0.2459613383, -0.2449816465, -0.2290404439, -0.4594864845, -0.0160059892, -0.0629506409, -0.3975653946, 0.4622122347, 0.0260999147, -0.1692352593, 0.0772049949, -0.0973461866, 0.0437737294, 0.0307618678, -0.1405876279, -0.1074352413, -0.4702299535, 0.2746432722, 0.2288829386, 0.5749304891, 0.0355822891, -0.0146397846, -0.1230109856, 0.1055090576, -0.2284839153, 0.2524853647, 0.2734744549, 0.1581345797, -0.045162499, 0.2865179181, 0.0547464266, -0.2374956757, -0.0978454575, 0.0568663962, -0.1206635758, -0.1586703658, -0.1071340963, 0.1126031876, -0.1398200244, -0.1054829136, -0.1901090592, -0.2603555322, 0.0911479741, -0.1766230464, 0.2107423991, -0.2486182004, -0.1409255713, -0.1472357064, 0.4561416209, -0.0292981546, -0.0877421424, 0.1730328649, -0.0714688078, 0.3503181338, -0.0195526667, -0.0122249564, -0.0435411446, -0.0748709068, -0.3222396076, 0.0677053109, 0.3231786788, 0.0681729466, -0.01557675, -0.0005595402, -0.0903893337, 0.0692127496, 0.0420605987, 0.2573954761, -0.0696019754, -0.1179591492, -0.0512682125, 0.1871212721, -0.2150457054, -0.1542569399, -0.0635145158, 0.017415138, -0.2230873555, 0.2765961289, 0.3653717935, 0.0691095218, 0.0669679865, 0.0881159008, 0.2617764175, -0.2271980345, 0.3391407728, 0.3206997812, 0.0553324819, -0.2411569655, -0.1346070766, 0.2819797397, 0.1234782413, -0.1622915268, -0.1784497201, 0.3938891292, 0.5958599448, 0.3432157934, -0.5122554302, -0.2275405824, -0.294673413, 0.606234014, -0.0741068274, 0.444457382, 0.4342081249, 0.1758133322, 0.3189778328, -0.2883317471, -0.204171285, 0.4129079878, 0.0876338333, 0.0666523725, 0.0287963171, -0.1246610433, 0.1117318645, 0.1013871357, 0.1449335814, 0.4016494453, -0.1080212891, 0.3295118511, 0.0834283829, 0.2578530312, 0.5938126445, 0.1851588935, 0.4273989201, -0.1433630586, -0.2068378776, 0.2007969171, 0.271892339, 0.0493029244, -0.1012156531, -0.0775129348, 0.1623556763, -0.3642901778, -0.0038273856, 0.0908987299, 0.0632568896, -0.2624429464, 0.4751578271, 0.2595594227, -0.2415838093, -0.0355232544, 0.0558039956, -0.0822850391, 0.1704402417, 0.0924597979, 0.2030283213, -0.0839183703, -0.2313917279, 0.3846431077, -0.4732674062, 0.0324265398, -0.1434429437, -0.0942876711, 0.0122143244, 0.2725044191, -0.2859964073, 0.0040995982, -0.0526310541, 0.056673754, -0.2232701331, 0.2803286314, 0.204356432, -0.3420987129, -0.2589806318, -0.3161490262, -0.2175919563, -0.2054599077, -0.2143556178, 0.0308529027, 0.2443353385, 0.2561445832, -0.0242512245, 0.2262441665, 0.2455409467, -0.13791278, -0.0417924896, 0.0555963702, -0.4732877016, 0.1433887333, 0.3838845789, 0.2196659297, 0.1469877958, -0.4231848419, -0.2671892047, 0.0411409885, -0.0139273694, -0.1904661059, 0.2165527046, 0.129793331, 0.7412772775, 0.6710227728, -0.1407824308, -0.3098006845, -0.0868341923, -0.1885191649, -0.0123668704, -0.1250133216, 0.0300799776, -0.1888547838, 0.4749759436, 0.2099931538, -0.2864184678, 0.2727659345, -0.2861826122, -0.2152550519, -0.1712089926, 0.2367953956, -0.2296843827, -0.0501833335, 0.0234881621, 0.4224825203, -0.0384046212, 0.1940825731, 0.069030121, 0.0839976147, -0.3601066172, 0.0329039395, 0.30629915, 0.3926434219, -0.3070215285, 0.5346333385, 0.1490332037, 0.0852206126, -0.0019342985, -0.2796178162, 0.2397042513, 0.1016344577, -0.282093823, 0.0436750688, 0.289791584, -0.0310820322, -0.0459956191, 0.1021826044, 0.2989761233, 0.3729038835, 0.040529117, -0.458945334, -0.264326632 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
I think we already opened an issue about this topic (suggested by @stas00): duplicated of #2481? This is in our TODO list... 😅
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
23
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. I think we already opened an issue about this topic (suggested by @stas00): duplicated of #2481? This is in our TODO list... 😅
[ -0.0192101859, -0.1269765198, -0.148183018, 0.0798468217, -0.132169202, 0.1765159518, -0.1987022758, 0.2431637049, 0.2124011517, 0.2022784203, 0.1615421772, 0.4751735926, -0.2215891033, -0.0703335702, -0.2046113312, 0.0402210206, -0.1827223003, 0.2646827102, 0.0021854679, 0.1824558973, -0.1406530738, 0.0362734385, 0.039484296, -0.1689872295, 0.0975504592, -0.376784116, 0.2147901952, -0.2744058073, -0.1201766506, -0.3621691465, 0.0429049022, 0.5484214425, 0.2381386012, 0.1525384337, -0.0001205524, -0.0380504541, 0.2979128063, 0.1006247699, -0.4042674005, 0.1757793725, -0.2399449199, -0.1098075211, 0.2304793447, -0.1402704865, 0.27543661, -0.3210347593, -0.1625759006, -0.6223289967, 0.4326830208, -0.2468685061, 0.0960134342, 0.0167480931, -0.5319139361, 0.0954353809, 0.3050426543, 0.4185586274, -0.1824691594, -0.0573915243, 0.538831532, 0.0341586061, 0.2726579309, 0.3712631762, -0.0588135496, -0.2781785727, 0.3521536887, -0.0666616708, -0.0870360136, -0.2991164327, 0.2780791223, -0.0211908966, 0.680683732, -0.3543690443, -0.1248812526, -0.3069049418, 0.0766368583, -0.5461726189, 0.1264317334, 0.1799129546, -0.0215025637, 0.2723221481, -0.167859301, -0.4257778525, -0.3638320863, -0.1120299399, 0.686694622, -0.388620466, -0.0511007607, -0.1442259252, 0.5321466923, 0.1710871309, 0.2038841844, -0.0841107666, -0.2778001428, 0.4167857468, -0.0302322004, -0.1976916641, -0.3469558656, -0.3571130633, 0.2482502759, 0.1723577827, 0.4253971279, -0.0317954309, 0.1785063595, 0.0627937093, 0.2811262012, 0.3864465058, 0.0619174652, -0.1031350121, 0.2124248445, 0.1001006961, 0.1506523192, -0.0452675819, 0.110107936, -0.0106063643, 0.2505977154, 0.0307718311, -0.0374102481, -0.1456223279, -0.0515751988, 0.0740639418, 0.2023869604, -0.1960343421, 0.0666680485, 0.1708455235, 0.233436659, 0.0534014814, 0.0713054612, 0.3021496832, -0.0025235147, -0.3367944658, 0.1256252974, 0.1341757178, -0.3137156665, -0.2757599056, 0.4017677903, -0.0329740494, -0.0375757627, -0.0856448784, -0.3078607619, 0.0509176627, 0.5031169653, -0.05533088, 0.2366698533, 0.3152056932, -0.192973718, -0.2496156543, -0.2744358182, -0.0515333042, -0.1477897167, 0.4894920588, -0.1400501132, -0.2936851978, -0.1132905632, 0.1049484387, 0.157442227, 0.2329839021, -0.5811312199, 0.155156672, 0.075239934, 0.0513777211, -0.0294901691, 0.414298594, -0.0133436136, -0.0749280006, -0.3167107701, 0.269873172, -0.6963501573, -0.0778402016, -0.343683064, -0.2515715957, 0.2094902247, 0.153328076, -0.1195058748, 0.1820373684, -0.1769448966, 0.1597189009, 0.2982476056, -0.103884913, -0.3767282665, 0.1588910818, 0.0618308857, 0.1861560047, 0.3381639719, 0.3027474582, 0.3510044813, 0.0028313962, -0.0717588961, 0.3363141716, 0.042874869, -0.0459026732, -0.3771970272, -0.4258616865, 0.1138880476, 0.2161459029, 0.0186997838, 0.0835734755, 0.2645460069, 0.0252898484, 0.1387611032, 0.1308917254, 0.1084437668, 0.1359111369, 0.1836430877, -0.2509693801, -0.2359624207, 0.1677513123, -0.5864217877, -0.0330731273, -0.5517913103, -0.2943544984, -0.1435646862, -0.3622751534, 0.1396679133, 0.0530985594, -0.1478796452, 0.1732765138, 0.0387974717, -0.0886315629, 0.2117042392, -0.0261978582, -0.415430963, -0.0330970697, -0.1128374934, 0.0020007798, -0.4649410546, 0.1039660573, 0.0835512653, -0.2256426662, -0.0497681536, 0.0020142451, -0.2528687716, -0.5000705123, -0.15242064, 0.2905793488, 0.2850806415, 0.2995113134, 0.2822107971, 0.265303731, 0.2180713862, 0.1882400811, 0.0474345833, 0.1773793995, -0.0457336381, 0.0735765472, -0.4050091803, 0.3439505398, -0.2409019023, -0.0849304274, -0.2035916597, -0.3892905414, 0.2516005039, -0.1002889276, 0.0859727636, -0.4930277467, 0.085995093, 0.3708956242, -0.1917719841, 0.0199163947, 0.1214132011, -0.1024174243, 0.0037558663, -0.0782457143, -0.1640661061, 0.3610447645, 0.0768099427, -0.2198457569, 0.0704466403, 0.3702920079, 0.3388825655, 0.1903004944, -0.2203630954, -0.1675284505, 0.4414019883, 0.017683249, 0.1687619686, 0.0462639891, -0.0339810029, 0.3442345858, 0.1006004363, -0.0012357251, -0.2634165883, -0.0832915008, 0.1024767384, 0.2208108157, 0.2615542114, -0.2776217759, -0.2431860119, -0.4085783362, 0.5601938963, 0.3427143395, 0.2305351049, -0.0628960729, 0.5425231457, 0.0828968659, -0.4694439769, 0.0687305555, 0.0326800048, 0.7095782161, -0.1634511203, -0.1467924714, -0.4266523123, -0.1652528644, 0.1574262977, -0.0002178191, 0.3872476816, -0.1314133555, 0.5233255625, 0.1060380563, 0.0948027372, -0.091051802, -0.1202440485, 0.0795939043, 0.378405422, 0.0271691084, 0.1042732596, 0.1606732309, -0.0195353404, 0.0585907362, -0.2174525112, -0.2745069861, -0.1152908131, 0.1672185212, 0.1256195605, 0.0023231448, -0.269754827, -0.0511665903, -0.1811908185, -0.4072162509, 0.2652528286, -0.090830259, 0.0454160273, 0.1008217558, 0.2078519017, -0.0895773917, 0.0180452168, 0.0879815593, -0.0705335736, -0.7061080933, 0.1135703623, -0.1956966966, 0.0273812264, 0.2443940938, 0.0343265571, -0.0326906294, 0.3245289624, -0.4147774875, -0.0504498929, 0.088666372, 0.1621684432, -0.312966466, -0.1039420739, 0.1685179174, 0.227539286, -0.0814685896, 0.0571501926, 0.04842785, 0.1911781728, 0.3824154437, 0.1352135539, 0.1176511124, 0.2851806581, 0.2092826962, 0.3362181485, -0.2803316712, 0.088040933, 0.3748088181, 0.3983898759, 0.4186542332, -0.221598804, 0.1879455745, -0.3908184171, 0.0196477864, -0.1622592658, 0.1251031905, 0.0533164255, -0.2120588422, 0.1556340456, -0.2383013219, -0.1149869263, -0.0837213472, 0.2974509299, -0.219424516, 0.0257990547, 0.0152262943, -0.2889421582, -0.0783255473, -0.044106856, 0.1652412266, 0.226177156, 0.4313423336, -0.0759897381, -0.2336570024, -0.0816131085, -0.1685786098, 0.3073794842, -0.2065438032, -0.1619287878, -0.1456630677, 0.0682425946, 0.1803956777, 0.2353230566, 0.4696420729, -0.0961227119, -0.0197153986, -0.2219819427, 0.0241030958, -0.1631163657, 0.0119680818, 0.0207884554, 0.012108366, 0.1047581583, 0.4172720015, -0.2507813573, -0.182179153, -0.2067554742, 0.5407701135, -0.2291523814, -0.1452023387, -0.0057222471, -0.2123624533, -0.5202822089, 0.0625921935, 0.0947569162, -0.123662807, 0.2344859391, -0.3365584016, -0.0600592904, -0.3407361507, 0.0559322536, 0.0333822928, 0.5054509044, -0.2519852221, 0.051289618, -0.1779838949, 0.1141239777, 0.4623526931, 0.1752748787, -0.1009978801, 0.0274560004, 0.0044709151, -0.3934120834, 0.1438113302, 0.1508959979, -0.1485907584, 0.2990285754, -0.2558403015, 0.5546309948, 0.0296257269, -0.0601639301, -0.1810207665, -0.305801332, -0.0189948492, -0.1649743915, 0.1217677817, 0.0261507481, -0.1800438613, 0.4581394494, -0.1303932816, -0.2181836665, 0.5202695727, 0.0637354776, 1.1716755629, -0.0742967576, -0.062144123, -0.2309651077, -0.257096827, 0.316560775, -0.6766653061, 0.1244022325, 0.0734208673, -0.1243328825, 0.1023870707, -0.0162252411, 0.0199671444, 0.2219273895, -0.2478422225, 0.0639300644, -0.3001570702, -0.1765237004, -0.2858091593, 0.3896429837, -0.1006881371, -0.249049902, -0.0716716275, -0.0173442569, 0.015346759, -0.0213927049, -0.2215712219, -0.0595906153, 0.4131847024, -0.017229246, 0.2468738854, -0.1121237576, -0.236019522, 0.3648225963, -0.1647969931, -0.0689613298, -0.2324286848, 0.029913567, -0.1733218431, 0.0942811444, 0.1340534836, -0.0163540319, 0.0748659149, -0.0172675643, -0.3920018375, 0.0818209648, -0.0549439564, -0.1253943741, 0.0464400165, 0.1012335047, -0.2979834676, -0.371276021, 0.0831153542, 0.0987868458, -0.1517131627, 0.0230122991, -0.2844043076, -0.1307133883, -0.5083081722, 0.0835139677, 0.0918681547, 0.3376483321, -0.1956745237, 0.332039237, -0.1939462274, -0.1492912173, -0.2179480493, -0.1215125099, 0.2511501312, -0.191485554, 0.1788421273, -0.2094886452, -0.241876781, -0.4316693246, -0.0149511779, -0.0827955827, -0.3865462542, 0.430239588, 0.0494059548, -0.2330639958, 0.0752276555, -0.1367808431, 0.0579775162, 0.0033783542, -0.1083916202, -0.1550699025, -0.4857674539, 0.2241017669, 0.2175262421, 0.568844974, 0.0788134784, 0.0453642383, -0.119252719, 0.06876342, -0.2306441218, 0.2507712543, 0.2330904007, 0.1651656926, -0.0121293496, 0.2815651894, 0.0334080756, -0.2585387528, -0.0945776552, 0.0784752369, -0.114814274, -0.1441342831, -0.0973204225, 0.1215382442, -0.0991292596, -0.0808283687, -0.1344828904, -0.2419472039, 0.0778196529, -0.1644071937, 0.2182530612, -0.1838770509, -0.1200953573, -0.1128276736, 0.4099225998, -0.0394897573, -0.0061422177, 0.1524101794, -0.0428901874, 0.3734462559, -0.0446034856, 0.0133971954, -0.0645921081, -0.0591991693, -0.3752077818, 0.073376283, 0.258877486, 0.1090115607, -0.0003993974, 0.022551138, -0.087549448, 0.0966071188, 0.0399104618, 0.1827134341, -0.1169919968, -0.0676394477, -0.0235157553, 0.1917644441, -0.1976939589, -0.1988267004, -0.0608726777, 0.0752243325, -0.2139885128, 0.2478604317, 0.4000189602, 0.0741870627, 0.1304768473, 0.1099633425, 0.3531487286, -0.2766363621, 0.3193090558, 0.3104670942, -0.0166346207, -0.2100171, -0.1769704074, 0.2833025157, 0.1194732264, -0.1427139938, -0.1698102653, 0.3863299191, 0.6007130146, 0.38733688, -0.4875278175, -0.1816844344, -0.2639196813, 0.6182789803, -0.0514408872, 0.4884515405, 0.4662975669, 0.1884542257, 0.292281121, -0.2606742084, -0.2065418363, 0.4309630692, 0.0768074766, 0.0376481749, -0.0007758186, -0.1363191009, 0.1158707291, 0.0870212615, 0.1426930875, 0.3840874434, -0.1165056303, 0.3271660507, 0.0655351654, 0.288872689, 0.5928449631, 0.1578071266, 0.4371985197, -0.1594476998, -0.1655697823, 0.1945150793, 0.2201555073, 0.069324106, -0.0579900295, -0.0156215504, 0.1615115255, -0.3188795745, -0.021275444, 0.0590970069, 0.0533903874, -0.2769364715, 0.4711273611, 0.205637157, -0.2247935086, -0.0590543337, 0.0458210111, -0.0872468799, 0.1757305562, 0.1273067296, 0.2065494359, -0.0734714344, -0.2261737734, 0.375502497, -0.4341765046, 0.0296870098, -0.1775698066, -0.1082252488, -0.0197179355, 0.2628770173, -0.2581286132, 0.0527023748, -0.0655055195, 0.0659321323, -0.1818635911, 0.2217469066, 0.1854013652, -0.44353652, -0.2482803166, -0.2721306384, -0.2667448521, -0.1807053536, -0.190694496, 0.0515158512, 0.3041937351, 0.2105133832, -0.0289455615, 0.2490503192, 0.1911311001, -0.1328953952, -0.0568945445, 0.1076924652, -0.475407809, 0.1072261259, 0.388815254, 0.278255254, 0.1642228365, -0.3787925541, -0.2844343781, 0.0037733917, -0.0145657742, -0.2515189946, 0.2765553296, 0.1154199168, 0.7933056355, 0.5852683783, -0.1099348962, -0.3783090115, -0.0988554582, -0.2023893148, 0.0157390106, -0.1293275654, 0.0116773108, -0.1971290112, 0.4506741762, 0.1910800487, -0.2832458019, 0.2106016725, -0.2632031143, -0.2245251685, -0.2430837601, 0.2408836782, -0.2843168676, 0.0277250651, 0.0219360087, 0.4092617035, -0.0663307756, 0.199509874, 0.0634393096, 0.1137818322, -0.3624652624, -0.0177793764, 0.2839459777, 0.3558633626, -0.3132497966, 0.5239501595, 0.0752070472, 0.0631892309, -0.0131416824, -0.2903975546, 0.2310443521, 0.0778575912, -0.2676572502, 0.0424918868, 0.3427080214, -0.0503719375, -0.0736869797, 0.1060922146, 0.2718819976, 0.4296524227, 0.0202603005, -0.4044407308, -0.2552904487 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
I think the deletion of each extracted file could be implemented in our CacheManager and ExtractManager (once merged to master: #2295, #2277). 😉
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
23
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. I think the deletion of each extracted file could be implemented in our CacheManager and ExtractManager (once merged to master: #2295, #2277). 😉
[ -0.0226010922, -0.1121035144, -0.1641411036, 0.1639863104, -0.1408298314, 0.156821385, -0.1947339475, 0.287306428, 0.2321141958, 0.1775879413, 0.0999827161, 0.4532558322, -0.2333154678, -0.1064828634, -0.2285244763, 0.0652217269, -0.2182046622, 0.273180604, -0.0273973402, 0.202579245, -0.0816404596, 0.0862379447, 0.0794720277, -0.1437506378, 0.0515122749, -0.4186530411, 0.2156176716, -0.252704978, -0.0921537206, -0.3959027827, 0.0014366916, 0.523080945, 0.2234822512, 0.1859765053, -0.0001158199, -0.0553463399, 0.3054270446, 0.0845194906, -0.3473009765, 0.1930391639, -0.1883359402, -0.1002465263, 0.2181222439, -0.1417434365, 0.2566108704, -0.3045685887, -0.1959095895, -0.6068360806, 0.4527908564, -0.236644268, 0.1494679898, -0.0148587525, -0.5173231959, 0.1346340925, 0.3028510511, 0.3194514811, -0.1107095033, -0.0475239716, 0.4241873622, 0.0751273483, 0.2008989602, 0.3739816546, -0.1134387851, -0.2500637174, 0.3243033886, -0.0099848472, -0.1423217356, -0.2449114621, 0.3142210543, 0.0150830913, 0.5898218751, -0.3973076344, -0.0776181296, -0.2895051241, 0.0565594025, -0.5846498013, 0.1107224673, 0.167732507, 0.0058493698, 0.2414091229, -0.1400055587, -0.4298630357, -0.3438482285, -0.1900559813, 0.6732533574, -0.3742924929, -0.0949349031, -0.1413282454, 0.4534683824, 0.1464481503, 0.1862225235, -0.1259605587, -0.2888204455, 0.3707067072, -0.0712989718, -0.2018735558, -0.3689160049, -0.333255142, 0.2370150834, 0.1708972156, 0.4238258302, 0.0518850461, 0.2351703644, 0.0633940622, 0.26377666, 0.3954227269, 0.0883612782, -0.1276811659, 0.2007573098, 0.1112258211, 0.0768835694, -0.054246407, 0.092893675, 0.0000740157, 0.307166487, 0.0206518136, -0.072256662, -0.1556966454, -0.0429361127, 0.0741354898, 0.2563766837, -0.1725344956, 0.0869792104, 0.2019755691, 0.1532339603, 0.0464815348, 0.0632904172, 0.2291134447, 0.024084283, -0.2961388528, 0.0856631771, 0.1718937159, -0.3100763559, -0.2661429644, 0.3942473531, -0.0600515604, -0.0353216603, -0.1283135414, -0.304346621, 0.039080102, 0.5187653899, -0.1317346245, 0.2679392993, 0.2626908123, -0.1665896326, -0.2599319816, -0.2856928408, -0.027482355, -0.156821847, 0.4221947193, -0.1159836501, -0.2432415038, -0.0390984342, 0.1673651338, 0.1655029804, 0.3048391044, -0.4949509501, 0.1325614005, 0.155432269, 0.0527002849, -0.0254457239, 0.3915014565, -0.012170339, -0.1084474176, -0.3085301816, 0.2602829635, -0.6160305142, -0.0765490234, -0.2943629026, -0.2651215494, 0.1934647411, 0.1379139572, -0.0625765696, 0.1802577078, -0.1758536994, 0.1568831354, 0.3047704697, -0.1047302932, -0.3668222129, 0.1630243212, 0.0668909028, 0.1986336857, 0.3475050032, 0.2767179012, 0.3986900747, -0.0060509448, -0.0315096229, 0.2765128911, 0.0772937238, -0.0692829266, -0.3465444446, -0.3954340518, 0.0166986436, 0.2093605846, 0.0411175899, 0.0486388877, 0.2571695149, 0.0145430733, 0.1615274847, 0.1562287062, 0.1540133655, 0.1770212948, 0.129243046, -0.262984395, -0.2178766727, 0.1299289167, -0.542573154, 0.0111165252, -0.5635597706, -0.3578420579, -0.1681198329, -0.3451921046, 0.1446572542, 0.0259727091, -0.1506372094, 0.1525576115, 0.1201665848, -0.0306172799, 0.2321803719, -0.0576328598, -0.4141545296, 0.082124427, -0.0787246674, 0.0214121267, -0.4709242582, 0.0398497134, 0.1304671168, -0.222918123, -0.0247547925, 0.0109058954, -0.2736269534, -0.5044941902, -0.1394359767, 0.26984483, 0.2659399509, 0.2694549561, 0.2403144389, 0.2347733229, 0.1686521918, 0.2529339194, 0.0780904591, 0.1655545682, -0.0219972432, 0.0573896579, -0.3692436218, 0.3941812813, -0.1629272401, -0.0680424124, -0.2091501057, -0.3963090777, 0.2487941533, -0.1182918176, 0.1494149715, -0.5282139182, 0.0754013062, 0.3249076903, -0.0978751853, 0.012904631, 0.1258081943, -0.0843769684, -0.0029911979, 0.0030726907, -0.0814077705, 0.3343492448, -0.0005703769, -0.2064736336, 0.0179731082, 0.3947651684, 0.3731953502, 0.1863262504, -0.144318372, -0.1430870444, 0.4674766362, -0.0077397423, 0.1551845372, 0.0356972665, 0.0012493239, 0.3792583346, 0.0827417672, 0.0095787039, -0.2653328776, -0.0908622071, 0.1035448536, 0.1854014248, 0.3281436563, -0.2156999707, -0.2645328045, -0.3503084481, 0.4957949817, 0.3474988341, 0.2267125547, 0.0012919443, 0.5297098756, 0.1080578715, -0.4376133382, 0.0794261098, 0.0360068344, 0.6342995167, -0.1338887215, -0.1276339889, -0.4051325023, -0.1930312812, 0.1563114673, 0.0413371623, 0.3700557649, -0.0946754068, 0.4919627011, 0.1280310601, 0.1074845195, -0.1013563424, -0.0828964561, 0.0904887766, 0.3652787805, -0.0422652513, 0.125007987, 0.1520940363, -0.019618107, 0.1258699745, -0.2163589597, -0.3381375074, -0.1388872266, 0.2075246871, 0.0852056071, -0.0198437199, -0.2818318903, -0.0219429061, -0.1901817322, -0.4262128174, 0.2239810526, -0.0602328554, 0.0722541735, 0.0535563268, 0.1596734822, -0.0304914787, 0.0300518032, 0.0889114439, -0.0778836384, -0.6628459096, 0.0983513296, -0.1868420392, 0.0379836708, 0.2425363064, 0.0444728322, 0.0063196439, 0.2807718217, -0.387661159, -0.0573442988, 0.0818393156, 0.1049457043, -0.3130924106, -0.118441768, 0.2026219517, 0.247617811, -0.1233275384, -0.0007634062, 0.1013070494, 0.2300356328, 0.3424205184, 0.1033402383, 0.124042891, 0.3077454269, 0.2200437933, 0.3042976558, -0.28093642, 0.0443849452, 0.33325845, 0.403205812, 0.3957527578, -0.1999591142, 0.2320665419, -0.3902227879, -0.0107685952, -0.1272918284, 0.1531158984, 0.0192082953, -0.2371980548, 0.1621902287, -0.2351831645, -0.1076337472, -0.092457287, 0.3103538156, -0.1896030307, 0.0137227066, 0.0337260179, -0.2891180813, -0.0444942079, -0.02809285, 0.1488056183, 0.1669512391, 0.3563662767, -0.0836424232, -0.2635134459, -0.0878594369, -0.2644631863, 0.333278656, -0.222354576, -0.1899110228, -0.109174788, 0.058603052, 0.1371451318, 0.1942607164, 0.3985287547, -0.0987224504, -0.0259498525, -0.1894542426, -0.0066750357, -0.1578935683, 0.0347214155, 0.0147041865, 0.0553893261, 0.0625596046, 0.3513255417, -0.302296102, -0.2003957629, -0.2519726753, 0.5415747762, -0.2682743967, -0.1403575838, -0.0532957204, -0.2300034165, -0.5152531266, 0.0718512014, 0.0248225536, -0.1205941215, 0.1934354305, -0.3178028762, -0.0970481858, -0.3147116005, 0.0356625877, 0.0134956334, 0.5749184489, -0.3080910742, 0.0529582426, -0.1670596898, 0.1460402012, 0.4614256024, 0.1831458062, -0.0740575641, 0.0567419454, 0.0455555804, -0.3605611622, 0.0747279748, 0.1328521669, -0.152132988, 0.3234331906, -0.2378546149, 0.5641589761, 0.0926814303, -0.0550357737, -0.2353069186, -0.2607457638, -0.0191430505, -0.141149655, 0.083832711, 0.0453278199, -0.175759539, 0.4483437836, -0.236469388, -0.2719984353, 0.4784610868, 0.0938814059, 1.1523438692, -0.063093856, -0.0443608239, -0.2481874675, -0.2877421677, 0.2968459725, -0.6555528045, 0.1433558166, -0.0354744084, -0.1166593954, 0.1045612693, 0.011456402, 0.0144007904, 0.1993407309, -0.2524823248, 0.0956664905, -0.2879776657, -0.1406229585, -0.2822277844, 0.3869048655, -0.1198888645, -0.2729758024, -0.0524286516, 0.0311328135, 0.002545408, -0.0838766396, -0.2410694659, -0.1141217351, 0.4444570541, -0.0500530116, 0.3152214885, -0.0998767316, -0.2177527547, 0.4091772735, -0.1741434932, -0.1087464392, -0.3227097392, -0.0431514718, -0.1769374311, 0.0509372018, 0.1713894308, -0.0063802064, 0.1149521843, -0.0327298082, -0.4030066431, 0.0416042469, -0.1148714349, -0.1488922238, 0.0588002466, 0.1078939289, -0.2950466275, -0.3856202066, 0.1859518588, 0.1410580873, -0.1611455083, 0.0811833665, -0.2483865768, -0.1064985916, -0.5253577232, 0.0941526294, 0.1336240321, 0.3176448941, -0.211937651, 0.3105858266, -0.1847432256, -0.1575225443, -0.2423823327, -0.140569672, 0.3364909291, -0.1629331708, 0.2128502429, -0.2056054473, -0.2502360344, -0.4690576792, -0.0277928039, -0.0476675145, -0.3634728193, 0.4130424559, 0.0049338746, -0.2247469574, 0.1111172512, -0.1620086282, 0.0459867083, 0.0497666709, -0.1696458757, -0.1416979581, -0.4695400596, 0.2392649502, 0.2084289938, 0.5362951159, 0.0531938151, -0.0222175959, -0.1506142318, 0.1603457481, -0.2843221426, 0.2370121032, 0.2197366804, 0.1688711643, -0.0506393425, 0.2401749045, 0.0455841236, -0.2088134289, -0.0520528443, 0.1431404948, -0.1415208131, -0.2087106705, -0.0709004477, 0.0874164626, -0.1571530104, -0.0231144149, -0.2286978066, -0.1295992285, 0.0958833918, -0.1730567962, 0.2635293603, -0.1905886829, -0.1276008934, -0.1356272697, 0.4436529279, -0.0629727542, -0.0862330645, 0.1529289782, -0.0350121297, 0.3017440736, -0.0438305289, -0.0223690979, -0.0828738064, -0.0681063309, -0.3027173579, 0.0466784015, 0.2749305069, 0.0693440586, -0.0142247071, -0.012762961, -0.0826871544, 0.1370900422, 0.0449914783, 0.2047968209, -0.0748964995, -0.1229487658, -0.03790766, 0.2374706715, -0.2128134668, -0.2070525736, -0.0718627796, 0.0127488198, -0.1917216927, 0.2789097428, 0.3626362681, 0.0886570588, 0.1699344218, 0.1253296882, 0.3471668959, -0.2870437801, 0.2739585042, 0.215437144, 0.0546474718, -0.2092100829, -0.0646429732, 0.3144549131, 0.1434213668, -0.1145212129, -0.1292229891, 0.390596956, 0.5757660866, 0.3090758622, -0.5367898941, -0.2223835588, -0.2938578129, 0.6234045625, -0.1351087242, 0.4427972138, 0.4038829207, 0.1510082185, 0.2659568489, -0.3229812086, -0.2195303589, 0.4456720352, 0.0457275026, 0.0698689222, 0.078557305, -0.0774756595, 0.1426015049, 0.0914166272, 0.1999516487, 0.4314357042, -0.0809789971, 0.3132270873, 0.0318869166, 0.279656142, 0.5481153727, 0.1850631833, 0.4165058732, -0.1622708142, -0.1929335743, 0.2023340613, 0.2120333463, 0.0040215212, -0.0710147768, -0.0656386092, 0.1874191463, -0.341009289, -0.0158143118, 0.0678003505, 0.0633218214, -0.3073607087, 0.4482387304, 0.2307688445, -0.2887846529, -0.0415345132, 0.0883269235, -0.1180120632, 0.2189888954, 0.1187863424, 0.1506616026, -0.0560571216, -0.2042898536, 0.414542079, -0.425696969, 0.0216814, -0.1777398437, -0.2082081288, -0.0141027942, 0.2535842061, -0.2977364361, 0.0267718062, -0.0983163789, 0.0933161229, -0.1633646935, 0.2756980658, 0.156421721, -0.4175425768, -0.2338577062, -0.2869610488, -0.2420896739, -0.14071697, -0.2342230976, 0.0474552512, 0.2318333834, 0.2380512357, -0.0537080355, 0.2327622324, 0.1777535379, -0.1275855005, -0.1051268429, 0.0347121395, -0.5523295403, 0.1517511159, 0.4012072384, 0.1970660388, 0.196334064, -0.3999382257, -0.2417615205, -0.0255170371, 0.0489212982, -0.1619682312, 0.254107058, 0.1139990762, 0.7210948467, 0.6302273273, -0.0951025039, -0.3539768159, -0.1152171567, -0.1746416986, -0.0046841498, -0.0954035819, 0.0094210096, -0.2118443996, 0.4912095964, 0.2396741211, -0.2630660832, 0.205900088, -0.2440061569, -0.1443865448, -0.2059301287, 0.1979184747, -0.2080572397, 0.0010102355, 0.0479297861, 0.4529614747, -0.0281880386, 0.2303514034, 0.0885681286, 0.087578319, -0.4007245898, -0.0172652472, 0.2634521425, 0.3387113214, -0.3430578709, 0.4724927247, 0.1206602976, 0.1163154617, -0.0524528101, -0.227125749, 0.259223789, 0.0508885942, -0.2261131406, -0.0018726967, 0.2962720692, -0.0765094608, -0.0646930039, 0.1092460528, 0.2242136598, 0.3844125271, 0.0134392595, -0.4318143725, -0.2402964085 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
Nevermind @thomwolf, I just mentioned the other issue so that both appear linked in GitHub and we do not forget to close both once we make the corresponding Pull Request... That was the main reason! 😄
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
36
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. Nevermind @thomwolf, I just mentioned the other issue so that both appear linked in GitHub and we do not forget to close both once we make the corresponding Pull Request... That was the main reason! 😄
[ -0.0855272636, -0.0671882406, -0.1844741851, 0.104787223, -0.0681768283, 0.0940924808, -0.2069168389, 0.357980907, 0.1929913014, 0.1803302169, 0.1256365329, 0.5178527832, -0.1990654916, -0.0532913134, -0.2303044349, 0.1003466025, -0.171078369, 0.2507985234, -0.0966363847, 0.1721234173, -0.1182257086, 0.1586296111, 0.0584245585, -0.2147802413, 0.0472861528, -0.311693728, 0.2470158637, -0.1306718737, -0.2001822144, -0.3335468173, 0.049693536, 0.466573596, 0.1547937989, 0.19245556, -0.0001120515, -0.0588402376, 0.3263462186, 0.0419633202, -0.2812103331, 0.1578843445, -0.1546333581, -0.1296816021, 0.2462515682, -0.1716018021, 0.194153294, -0.2860299945, -0.2619876862, -0.5600833297, 0.4046287835, -0.2074566036, 0.2184802592, 0.0659194142, -0.4778718948, 0.0386692397, 0.3469433784, 0.3130679429, -0.2208005935, -0.0241450071, 0.4340991378, 0.0210294798, 0.1328228265, 0.4203089476, -0.0427928567, -0.1682275832, 0.3660380542, -0.0318531245, -0.1320765615, -0.265994519, 0.3651877046, -0.0418883637, 0.6081594229, -0.4039493203, -0.0704970956, -0.2332202196, -0.0010142744, -0.5103726387, 0.1964834929, 0.1308748275, -0.0294247773, 0.2057875395, -0.2156452984, -0.3320871294, -0.2986849844, -0.2275022864, 0.5624452233, -0.317173183, -0.093184188, -0.1442540139, 0.462785393, 0.1177915186, 0.1654217988, -0.0438402407, -0.3093245029, 0.2831883729, -0.089989759, -0.2204523534, -0.2162850797, -0.3502408564, 0.2751029432, 0.2159093916, 0.391669184, 0.0350791775, 0.1952484101, -0.0696306676, 0.2703438103, 0.4323019981, 0.0422205143, -0.1306514889, 0.2671507299, 0.0566860624, 0.0712896287, 0.0143636791, 0.1246157438, -0.0277856588, 0.2098572701, -0.0353090502, -0.0223606508, -0.2735994756, -0.0027616841, 0.0769035891, 0.2991535366, -0.1116634831, 0.0472753346, 0.2507171631, 0.2106907666, 0.1088606343, 0.0572778694, 0.2573492229, -0.0073824124, -0.2515542805, 0.0386270881, 0.1590306014, -0.345304966, -0.2071351409, 0.3635473847, 0.0165214408, 0.044596944, -0.0871833712, -0.2391290367, 0.0957720652, 0.4768106341, -0.0525906496, 0.1936014146, 0.3282552958, -0.1214080527, -0.1968096346, -0.2486095726, -0.0390987135, -0.1242088526, 0.376486212, -0.1488398015, -0.2738034129, -0.0759821311, 0.2167509496, 0.1099693328, 0.2422160357, -0.5487083197, 0.1165579855, 0.1360515356, 0.0423572548, 0.0025538292, 0.3891155422, 0.0077829664, -0.1569079757, -0.2708090544, 0.1842839122, -0.6277385354, 0.018134702, -0.2419077903, -0.1849182099, 0.2255005687, 0.2400520295, -0.1519255787, 0.1250219643, -0.1377111077, 0.1953273863, 0.2903507948, -0.1376109421, -0.4272358119, 0.1646077335, 0.0116298161, 0.1267745495, 0.3082719445, 0.19194372, 0.3640697896, 0.0199810117, -0.0059910873, 0.2740210593, 0.0454162434, -0.0088723889, -0.4472192824, -0.4030652642, 0.0181707982, 0.2065700442, 0.0435483195, -0.0042695082, 0.2280371338, -0.0454460941, 0.144742012, 0.0252097733, 0.1102003977, 0.1990102828, 0.1636435986, -0.3638186157, -0.1670938134, 0.1051173359, -0.5550244451, 0.0267477892, -0.537599504, -0.2535659373, -0.1553024799, -0.3377280533, 0.1138792485, -0.0178061184, -0.136813134, 0.0994874835, 0.1636172533, -0.0505281575, 0.2101662159, -0.1134435385, -0.3678587079, -0.0459864698, -0.0555339567, -0.0171633046, -0.4335532188, 0.0670197308, 0.0713246167, -0.2523714602, 0.072535634, -0.0116518969, -0.1854884326, -0.4729951024, -0.1538628787, 0.2603835762, 0.2450779974, 0.2921968699, 0.2877058089, 0.2621404231, 0.2128138244, 0.2098298073, 0.137245059, 0.1424441189, -0.0159269683, 0.0594553873, -0.4149571955, 0.3945383132, -0.1529705375, -0.059171807, -0.1509149224, -0.3506001234, 0.2903296649, -0.1401846409, 0.0475265644, -0.4543597996, 0.101994954, 0.3108374476, -0.1102145016, 0.0151068382, 0.0789268464, 0.0402074046, 0.1006072015, -0.0401637629, -0.1399707049, 0.3669393361, 0.0554621033, -0.2806325257, 0.0664961562, 0.3567686081, 0.3791137636, 0.2107025087, -0.1949292123, -0.1907739639, 0.3597584963, -0.0184017606, 0.2091439515, 0.0221838895, 0.029099809, 0.3412796557, 0.1237492189, -0.0266181771, -0.2955548763, -0.1001159623, 0.0776934773, 0.2316410989, 0.2472863942, -0.2816295922, -0.242994234, -0.3020982444, 0.5641666055, 0.3144172728, 0.2222726941, -0.0718768388, 0.5412748456, 0.0934948921, -0.5482693911, 0.1295159906, 0.0619640425, 0.624278605, -0.1175665706, -0.0005492303, -0.3989090919, -0.2547474504, 0.1361456662, 0.0873427391, 0.3191325068, -0.0864865631, 0.4921011329, 0.0361901261, 0.0833235905, -0.1482572407, -0.1364149898, 0.0951895416, 0.2864718735, -0.0357894711, 0.1129134297, 0.1283289343, 0.0019893437, 0.0689895824, -0.1443585604, -0.3590828776, -0.1567140371, 0.1778902709, 0.051676333, -0.1459532082, -0.3483549953, -0.1375786215, -0.1167288572, -0.4708237946, 0.2861892879, -0.0042630234, 0.0580688715, 0.1066807806, 0.1871888638, -0.0102370037, 0.101838395, 0.0515302643, -0.1312524378, -0.6456321478, 0.1629998535, -0.241922155, -0.1073782668, 0.2100312263, 0.0845392421, 0.0674857199, 0.2412569523, -0.4375688732, -0.0472030491, -0.0146716163, 0.1606193036, -0.2070327103, -0.1185269356, 0.1915575117, 0.2598812878, -0.203112185, -0.0333358534, 0.0307547078, 0.2139245868, 0.315189749, 0.1125564352, 0.0599735156, 0.2892115116, 0.1651333719, 0.362613678, -0.3334107101, 0.0752131119, 0.3752720952, 0.3635936975, 0.4455353618, -0.2741264105, 0.2036559284, -0.3434281349, -0.0178959388, -0.0921313763, 0.1906606257, 0.065916568, -0.2766294777, 0.1496109217, -0.2267408222, -0.0468463376, -0.0985541865, 0.3262550235, -0.2088489532, -0.0914772451, 0.0621346533, -0.2048475593, -0.0688843131, 0.0063678348, 0.1837728173, 0.1083872542, 0.2688837349, -0.1304295808, -0.2644744217, -0.0394004397, -0.2572126091, 0.2851049602, -0.2718001604, -0.2192863524, -0.1319358349, -0.0172103588, 0.1451881826, 0.1310500205, 0.4179213345, -0.1409448236, -0.1006123126, -0.1882835031, 0.0125889676, -0.2201876491, 0.0189316068, -0.0363562256, 0.1079015508, 0.1314089894, 0.392788738, -0.2881758809, -0.2088009864, -0.2204585671, 0.4583599865, -0.2030731142, -0.0995662287, -0.0356747955, -0.2675749958, -0.5211288333, 0.0827574134, 0.1385286599, -0.1120306104, 0.1495104581, -0.2988811433, -0.019605983, -0.330720067, 0.0492197983, 0.1010382026, 0.587572813, -0.2887620032, 0.0951905996, -0.2015619725, 0.1822336614, 0.4474602044, 0.2902315557, -0.0935393795, 0.1095430255, 0.0888662189, -0.3233517408, 0.0258914419, 0.1684426814, -0.1167424843, 0.2301903218, -0.2475335598, 0.6316027641, 0.0619256534, -0.1011548266, -0.1581903249, -0.2953954339, 0.0368268229, -0.1168676987, 0.1441997439, 0.0038701929, -0.151739046, 0.4974932969, -0.1742262393, -0.2369038761, 0.5581265688, 0.1118877456, 1.1223026514, 0.0662455037, -0.008209765, -0.1159408614, -0.3521791995, 0.2567613721, -0.6527989507, 0.0919904038, 0.0124154771, -0.1366782784, 0.1495249867, -0.007631205, -0.0505192652, 0.1721396148, -0.3216416538, 0.0434333012, -0.2436953485, -0.1264190227, -0.3005655408, 0.3972913325, -0.0881211609, -0.3036732674, -0.136849761, 0.0695902333, 0.0961646736, -0.1027526334, -0.2141225785, -0.1129527837, 0.3157934248, -0.0842182562, 0.2002479434, -0.0531651527, -0.1764601022, 0.398855418, -0.1700196564, -0.0771732628, -0.2630422413, -0.0888827071, -0.1211329475, 0.0884737596, 0.0152099542, 0.0539484732, 0.1129603311, 0.0923843384, -0.35023278, -0.0262478795, -0.0631625354, -0.1901110411, 0.045009762, 0.0384850688, -0.3371964693, -0.2730945051, 0.1275774837, 0.1341818869, -0.1687292159, -0.0039640316, -0.2065655142, -0.0774891526, -0.509429872, 0.0137625868, 0.1816056669, 0.2855282426, -0.1449525058, 0.349563241, -0.0768410489, -0.2227312624, -0.2739017606, -0.0561630465, 0.3547871411, -0.0918878615, 0.1497975141, -0.1659594774, -0.2815508246, -0.496416688, -0.0726443455, 0.0225016419, -0.4313991964, 0.4540009797, -0.0022813766, -0.3116539419, 0.1154085398, -0.0660912171, 0.1380871981, 0.0372064337, -0.1806193888, -0.0911824182, -0.4733944833, 0.2555480599, 0.150656566, 0.5617163777, 0.0009445043, -0.0016486484, -0.0733284876, 0.1851307601, -0.3437165916, 0.1866710931, 0.1418766081, 0.1569521725, -0.0738394782, 0.1522544473, 0.0887038037, -0.1735322177, 0.0005622068, 0.1184093505, -0.1825790256, -0.2424520105, -0.0360615626, 0.0890142769, -0.1598332375, -0.0823261961, -0.1170863211, -0.1031413749, -0.0009934751, -0.1549752057, 0.3016619682, -0.1995356083, -0.0685698688, -0.2173981369, 0.4563753009, -0.0954961777, 0.0174305197, 0.1671780795, -0.0397901237, 0.314379245, -0.0514562614, 0.0146955894, -0.0966605693, -0.1061326116, -0.2136597335, 0.0702321827, 0.2113618106, 0.1138138399, -0.0093034292, 0.0091659613, -0.1153389737, 0.1331104785, 0.1107857823, 0.2708096504, -0.0825884342, -0.1567668021, -0.0329393744, 0.3032126427, -0.2050681263, -0.1960130185, -0.109199509, 0.0081961248, -0.1648893058, 0.1821451932, 0.37833938, 0.01125859, 0.2039269358, 0.1890286952, 0.3733142018, -0.2929967046, 0.2233547419, 0.0937388539, -0.057107579, -0.237007767, -0.0850774422, 0.2410746515, 0.1441719979, -0.0554113872, -0.1522159576, 0.3187150955, 0.5666553378, 0.3326038718, -0.4247445762, -0.0982944891, -0.1980435401, 0.5276713371, -0.1208389699, 0.4313077331, 0.4194307327, 0.119966194, 0.2624453902, -0.3267873824, -0.2990862727, 0.4584261775, 0.0017611235, 0.0138819097, 0.0278942864, -0.1851600409, 0.1503152698, 0.0822533518, 0.146325469, 0.4236712158, 0.0050897263, 0.2698339522, 0.0395104662, 0.2251467705, 0.5589661598, 0.1303586364, 0.4065197408, -0.1425887942, -0.0419804528, 0.2612913549, 0.2220589519, 0.0050226366, 0.0026295665, 0.1577079743, 0.2627751231, -0.3247103989, -0.0300761648, 0.1915376633, 0.0047533428, -0.3440209925, 0.4657168388, 0.2651114464, -0.2276817262, 0.0245033633, 0.1511323005, -0.2007101178, 0.1950534284, 0.0990486443, 0.1387061924, -0.0145250065, -0.2503456473, 0.3574077189, -0.4714489579, 0.0433498174, -0.2280962169, -0.2472664267, -0.0754457042, 0.1768152714, -0.2844344378, 0.0725033134, -0.106732294, 0.125852555, -0.1753310412, 0.3727463484, 0.1064314172, -0.4275981784, -0.2481843978, -0.3017345369, -0.2549421787, -0.0955483839, -0.2005655915, 0.0457930006, 0.2084631771, 0.3400160968, -0.0459289216, 0.1553065777, 0.2822342813, -0.1257595122, -0.1181764826, 0.0454457067, -0.6027138233, 0.2640288472, 0.3624565899, 0.2131042928, 0.2241932005, -0.3873643577, -0.2172866464, 0.0356932841, 0.0904215798, -0.2374916226, 0.2351771891, 0.1361279488, 0.6803233624, 0.5626972914, -0.0797042325, -0.3214339018, -0.1804885417, -0.2506409883, -0.1027374119, -0.1903571188, 0.014654289, -0.1661779583, 0.5049533844, 0.2326368541, -0.1965622902, 0.0962205902, -0.2331662774, -0.1289417148, -0.1913465708, 0.2648507059, -0.174426347, 0.0859471038, 0.0570480227, 0.3812097609, -0.1171638519, 0.1815218776, 0.0742730051, 0.1007425636, -0.3683782816, -0.1265717894, 0.3467057943, 0.2702932954, -0.3461804092, 0.5040483475, 0.1022238955, 0.0673035681, -0.0944454074, -0.3364171386, 0.2133803517, 0.0235657189, -0.176796779, -0.0001874013, 0.3356522918, -0.0955231339, -0.0587279461, 0.0671305433, 0.2493180931, 0.3315471113, -0.0811265782, -0.3822198212, -0.2865701616 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
Ok yes. I think this is an important feature to be able to use large datasets which are pretty much always compressed files. In particular now this requires to keep the extracted file on the drive if you want to avoid reprocessing the dataset so in my case, this require using always ~400GB of drive instead of just 200GB (which is already significant). Two nice features would be to: - allow to delete the extracted files without loosing the ability to load the dataset from the cached arrow-file - streamlined decompression when only the currently read file is extracted - this might require to read the list of files from the extracted archives before processing them?
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
116
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. Ok yes. I think this is an important feature to be able to use large datasets which are pretty much always compressed files. In particular now this requires to keep the extracted file on the drive if you want to avoid reprocessing the dataset so in my case, this require using always ~400GB of drive instead of just 200GB (which is already significant). Two nice features would be to: - allow to delete the extracted files without loosing the ability to load the dataset from the cached arrow-file - streamlined decompression when only the currently read file is extracted - this might require to read the list of files from the extracted archives before processing them?
[ -0.0659783408, -0.0675048828, -0.1214438975, 0.1361942589, -0.1881688982, 0.237156108, -0.1601296663, 0.2473284006, 0.1624708176, 0.1584105492, 0.1043193936, 0.4483771026, -0.3028531671, -0.1058055386, -0.1939978749, -0.0391124263, -0.1808358878, 0.3018628359, 0.0600305572, 0.1913314313, -0.1481152028, -0.0545217805, 0.0214627199, -0.128690064, 0.1161556989, -0.4201309383, 0.2055557072, -0.2362954915, -0.098224096, -0.3271230757, -0.0077742813, 0.5414350629, 0.3300150931, 0.1635193676, -0.0001216864, 0.052124083, 0.2817979157, 0.0643244609, -0.4494718909, 0.1446415782, -0.3190245926, -0.1872632951, 0.1448402554, -0.1605797112, 0.2758429348, -0.5139071941, -0.1515803188, -0.7546901107, 0.4762699306, -0.2039916515, 0.0753073618, -0.0049459049, -0.549651742, 0.1562355012, 0.3124715388, 0.3418073356, -0.1361887455, -0.0434951372, 0.4967584908, 0.1190317348, 0.2489922494, 0.3314892352, -0.0464919619, -0.3507280648, 0.3594219983, -0.0695531815, -0.0735741332, -0.2807362974, 0.2501987219, 0.0622791126, 0.6185548902, -0.2949786186, -0.1788841039, -0.3965528607, 0.0939031541, -0.6207108498, -0.0016167675, 0.2456875741, 0.0135153662, 0.3100340664, -0.0990565494, -0.4396599233, -0.3894590139, -0.1128683761, 0.6326618791, -0.4742106497, -0.0741034001, -0.1111168191, 0.5121364594, 0.1867254376, 0.2198595256, -0.1967431307, -0.2167711258, 0.3942317367, -0.0830871612, -0.1818787754, -0.3705100119, -0.2833351195, 0.1888690591, 0.1414779276, 0.4201413989, -0.0434931628, 0.1795666516, 0.0853912011, 0.2840009034, 0.3924606442, -0.0170196071, -0.1081941724, 0.1641591191, 0.1096846312, 0.1837193817, -0.0634689108, 0.0451794788, -0.062221434, 0.1686201543, 0.1019992381, -0.0905889943, -0.1100683212, -0.0399749912, 0.0446353033, 0.0713073909, -0.2095419168, 0.0990586281, 0.179897517, 0.2338264436, 0.0712891966, 0.0895204395, 0.2898358405, 0.0463680848, -0.3151604533, 0.1110786945, 0.0767038018, -0.3082773983, -0.2443210185, 0.4048586488, -0.1130669266, -0.0529357977, -0.1779989302, -0.2501621544, 0.0887632072, 0.5159017444, -0.155226931, 0.324642539, 0.2360240221, -0.2288740724, -0.2514580786, -0.2872158587, -0.0145000545, -0.1715120971, 0.5403381586, -0.1308788359, -0.2736294866, -0.011904005, 0.0827526525, 0.0778673813, 0.2827011347, -0.531714499, 0.2350832075, 0.0539900213, -0.0468186513, -0.0410923474, 0.3351686299, -0.0156066185, -0.0135694435, -0.3476059735, 0.2468973398, -0.6518739462, -0.0602272898, -0.357001543, -0.2370941639, 0.1824222952, 0.1142962128, -0.1536522508, 0.167550534, -0.1818364263, 0.1057168394, 0.382294327, -0.0641672686, -0.3867467344, 0.1953919381, 0.1077707261, 0.2615792453, 0.3133717179, 0.2150318623, 0.4147535861, -0.0729536116, -0.0957666039, 0.2799835801, 0.0771862119, -0.096942775, -0.2989012897, -0.4622782767, 0.0986725166, 0.2479756176, 0.021134384, 0.12906304, 0.2614647448, -0.0357317328, 0.2037031054, 0.1651517898, 0.2209408432, 0.1400311887, 0.0642623529, -0.2695462406, -0.1503101885, 0.1737484187, -0.497517705, 0.0126307579, -0.5214067698, -0.3172442913, -0.2045377791, -0.2885703743, 0.1372274458, -0.0335044935, -0.1988253593, 0.2015223056, 0.0237849653, -0.1412808895, 0.2724557519, 0.0653195307, -0.4101708829, -0.0657814816, -0.0675779581, -0.0595217794, -0.4646089673, 0.1204921305, 0.1567468047, -0.14072676, -0.126590535, 0.0524367541, -0.3225055635, -0.4410725236, -0.1505691707, 0.1877079904, 0.2010249496, 0.2613529265, 0.1614186466, 0.3275242448, 0.2161501646, 0.1428628117, 0.1739603281, 0.1386929154, 0.0297908355, 0.095864974, -0.3868564963, 0.4077588618, -0.3279558718, -0.025379695, -0.1928205043, -0.4176356792, 0.2501659691, -0.1081962883, 0.0301856697, -0.5059497952, 0.0732088313, 0.3495833278, -0.0904177651, -0.0261917263, 0.1483161151, -0.2089301795, -0.0180656742, -0.0765659884, -0.2578071952, 0.3139602542, -0.0984880552, -0.1204737499, 0.1099254489, 0.4566311538, 0.39451015, 0.2134545892, -0.1338792741, -0.1825798154, 0.5015578866, 0.0169857945, 0.1319734603, 0.0567716584, 0.0611688942, 0.416951865, 0.1301809549, 0.0714415759, -0.2148227394, -0.1260567904, 0.1761087179, 0.1470305473, 0.2887785733, -0.1400389373, -0.2087570131, -0.4624944925, 0.4350059927, 0.384583652, 0.2519317269, -0.0065836678, 0.5214511156, 0.0077442871, -0.3969198763, 0.0599969849, -0.0019941314, 0.7599349022, -0.0931037143, -0.3055968881, -0.4187725484, -0.1977101713, 0.1883242577, 0.0038354348, 0.3493971527, -0.1790192872, 0.4796022475, 0.2143743932, 0.047968179, -0.0809132904, -0.0552873686, 0.0849810615, 0.3521821201, -0.0478455164, 0.0350213684, 0.1456885189, 0.0863023624, 0.0937898159, -0.1733709127, -0.210190624, -0.1256005466, 0.1074937433, 0.1208856627, 0.0952273756, -0.2698009014, 0.0426243208, -0.2468210906, -0.4235397875, 0.3091305494, -0.0513289161, -0.0689932182, 0.1583264023, 0.234170571, -0.0445756465, 0.0575842038, 0.0680006966, -0.0336195119, -0.6436603665, 0.1269381046, -0.1944604963, 0.0436176881, 0.0808591396, -0.0631688908, -0.074056305, 0.4198184609, -0.3769463897, 0.0351680964, 0.0643251538, 0.1337392926, -0.2988143265, -0.0806289688, 0.2037657499, 0.2121613026, -0.0176124908, -0.0105860056, 0.1454562694, 0.2049531043, 0.3793352544, 0.1457602531, 0.1917964816, 0.2467258871, 0.2169594467, 0.4157986045, -0.2578362226, -0.0076829814, 0.3150093257, 0.3919859231, 0.4485296607, -0.1432019174, 0.1977030188, -0.3346401155, -0.0101617202, -0.1489815563, 0.066974692, 0.0261992477, -0.2776844501, 0.1452684402, -0.2031217068, -0.0504854694, -0.114719823, 0.2853794992, -0.2961053252, 0.1113293171, 0.0297481455, -0.2856208384, -0.0609253831, -0.0604317747, 0.1740287244, 0.1901502907, 0.5275214911, -0.0549111888, -0.1452024281, -0.0328799337, -0.1676224321, 0.2732895613, -0.1726187468, -0.1998915374, 0.0356644429, -0.012008464, 0.0921492055, 0.2388249934, 0.3515524566, -0.1252099425, -0.0307965055, -0.152073741, 0.0430062786, -0.2111052275, 0.0137662794, 0.0080305832, 0.0207167752, 0.008940083, 0.4495281279, -0.2623151541, -0.1419356912, -0.2325688004, 0.5902494788, -0.2365605533, -0.1827652752, -0.0008260251, -0.1295439452, -0.5585109591, 0.0057392004, 0.0432744659, -0.103528969, 0.0979586914, -0.2668535709, -0.1903074235, -0.2498409599, 0.0896731392, 0.0202736538, 0.4588963985, -0.2742722631, 0.0562030822, -0.0350330137, 0.2389670312, 0.5481045246, 0.2142433226, -0.1473022252, -0.0585223027, 0.0262673814, -0.3692210019, 0.1674478501, 0.1663966328, -0.242557317, 0.3254413903, -0.2277770042, 0.4670629501, -0.0689682811, 0.0652040914, -0.2590867877, -0.250538677, -0.0571980998, -0.2039660364, 0.1911699176, 0.054140348, -0.2098724097, 0.4351096153, -0.1205912679, -0.2572706342, 0.5326521993, 0.0590780713, 1.1551058292, -0.1128401756, 0.0149777597, -0.2680403292, -0.1797768772, 0.3728265464, -0.6633315682, 0.18162781, 0.0149575444, -0.1384882182, 0.0593061298, -0.0376286991, 0.0376682058, 0.2846598029, -0.2282189876, 0.0590174831, -0.2025692165, -0.2804605067, -0.2769896686, 0.3981356919, -0.0736171827, -0.257668227, -0.05926935, -0.0360440351, 0.0596209392, -0.0574107431, -0.2111501098, -0.1065166518, 0.3768346012, 0.0289753973, 0.2776344419, -0.1710881889, -0.3207930326, 0.3730854988, -0.2118289173, -0.2551982999, -0.102420032, 0.0718891695, -0.2685134411, 0.0503332838, 0.1471633315, -0.0070661665, 0.0903498754, -0.0627789274, -0.3701250255, 0.0344958492, -0.0024107448, -0.0782945156, 0.0977917761, 0.1336593628, -0.3397373557, -0.3465420604, 0.1758273393, 0.136661917, -0.1244317293, 0.0564567782, -0.2980700135, -0.0924464166, -0.484182775, 0.1409903616, 0.0586788617, 0.300281018, -0.1433354914, 0.2562081516, -0.193500489, -0.1190176755, -0.1494341046, -0.1528200656, 0.1490318477, -0.2014125735, 0.2311072797, -0.2553105354, -0.2430455834, -0.3802861869, -0.0017059726, -0.1441026032, -0.3890043497, 0.4247322977, 0.0393172354, -0.1646713018, 0.0566642135, -0.1659507006, 0.0021754019, 0.0056374553, -0.0699911118, -0.1672660261, -0.4592874646, 0.2587141693, 0.1362249553, 0.5790665746, 0.0889937133, 0.0018234213, -0.1906798631, 0.03037115, -0.2141229361, 0.3121223152, 0.3379605412, 0.1776248068, 0.0269687027, 0.2774657011, 0.040317867, -0.2374207377, -0.1122768596, 0.1082691178, -0.0424619429, -0.126553908, -0.1338107288, 0.1278323382, -0.1039083749, -0.1173324734, -0.1563274711, -0.2644061446, 0.0292449389, -0.2014667988, 0.2527791858, -0.2529954612, -0.127367124, -0.1315408796, 0.3878418803, -0.0559784435, -0.152371943, 0.199694708, -0.037123993, 0.4207265675, 0.0125946896, 0.1074030846, -0.0790141225, -0.0557297729, -0.3938588202, 0.0815992355, 0.3363562822, 0.0910330713, 0.1453466117, 0.009826595, -0.0346614122, 0.111732401, 0.0570550412, 0.2079505026, -0.1051377058, -0.0590622164, 0.0234872736, 0.1583218724, -0.2124457508, -0.1063574255, -0.0475776792, -0.0073401406, -0.1604298651, 0.250492543, 0.3605208993, 0.0801648647, -0.0175504927, 0.0418237858, 0.3067478836, -0.1281603128, 0.3053997457, 0.3543407023, 0.1122724712, -0.1918135583, -0.1634388119, 0.3312188387, 0.1881329715, -0.1521894485, -0.1744488329, 0.408315599, 0.6499541402, 0.3493704796, -0.560349822, -0.2789341211, -0.2383550555, 0.623247385, -0.0590777472, 0.4289216697, 0.3845165968, 0.2122106552, 0.316106528, -0.1366518587, -0.1427985877, 0.3982592523, 0.0905594155, 0.0355214216, 0.0893566906, -0.1809119582, 0.108845219, 0.0697771981, 0.1355868578, 0.3712621629, -0.1599111259, 0.3642853796, 0.1624095887, 0.2602543533, 0.5718258619, 0.2083937526, 0.4663642049, -0.1589477658, -0.222206369, 0.2036523074, 0.24285236, 0.1175450906, -0.1486446261, -0.0576638766, 0.111655131, -0.3451365829, -0.0397502035, 0.024302097, 0.0840383545, -0.2572031915, 0.4885840118, 0.2748910189, -0.1898318827, 0.0664418414, 0.0044171577, -0.053142529, 0.1279199272, 0.1066855416, 0.2125916779, -0.134733662, -0.2357352227, 0.3795196712, -0.4040882587, 0.0092474138, -0.156363368, -0.0164120998, 0.0293935183, 0.3202225268, -0.2720812559, 0.0790597945, -0.003983485, 0.0465871543, -0.2235050946, 0.2113468349, 0.250146836, -0.3231531978, -0.2714591324, -0.2596998811, -0.1967799962, -0.2127231061, -0.2271253765, 0.0763293803, 0.1694621146, 0.2553871274, 0.0660132095, 0.2566125095, 0.0694926456, -0.1009570658, 0.0615432784, 0.0652922615, -0.446942687, 0.043070063, 0.3881984055, 0.243512094, 0.1337825954, -0.4015811384, -0.3996724188, -0.0001541017, -0.021937795, -0.188874796, 0.2017796785, 0.0450213738, 0.6890197992, 0.6287792921, -0.1140042692, -0.3001962006, -0.0539144725, -0.2284241915, -0.0118989544, -0.0830099434, 0.0136514157, -0.1952996701, 0.4423670471, 0.193466261, -0.3521392941, 0.2612173855, -0.2566978931, -0.2904362977, -0.1876446456, 0.1607293189, -0.3335033059, -0.0664427429, 0.0190968756, 0.433958143, -0.022912249, 0.2096648216, 0.0817559883, 0.081853874, -0.3381943703, 0.0530681871, 0.301692009, 0.3127163351, -0.27461344, 0.5506644249, 0.0493568331, 0.0816834867, 0.0799992234, -0.2568174303, 0.2503435016, 0.1334230006, -0.3104124367, 0.0269021206, 0.2244574875, 0.0296763629, -0.0604568534, 0.0501808785, 0.2297375649, 0.416879952, 0.0695709735, -0.4529071748, -0.2204631418 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
Note that I'm confirming that with the current master branch of dataset, deleting extracted files (without deleting the arrow cache file) lead to **re-extracting** these files when reloading the dataset instead of directly loading the arrow cache file.
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
38
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. Note that I'm confirming that with the current master branch of dataset, deleting extracted files (without deleting the arrow cache file) lead to **re-extracting** these files when reloading the dataset instead of directly loading the arrow cache file.
[ -0.1638349146, 0.038030412, -0.1447686851, 0.1780928373, -0.1592692435, 0.235714063, -0.1746573299, 0.2873373628, 0.1265913099, 0.1585223824, 0.0674441904, 0.5160762072, -0.2275414467, -0.069087632, -0.2018714398, 0.0688018426, -0.2498382479, 0.2992703915, -0.1215835959, 0.1475564837, -0.1509249061, 0.0209516715, 0.0688545331, -0.1775145233, -0.0016513844, -0.396625936, 0.2204261571, -0.2167357206, -0.134700641, -0.4136337936, 0.0634001344, 0.5557296872, 0.2655681074, 0.186433211, -0.0001169127, -0.0113528538, 0.2978253663, 0.1052252129, -0.4620439708, 0.1928020418, -0.2715246975, -0.1185483709, 0.2721541524, -0.1176443771, 0.2377958596, -0.4201446772, -0.2090129405, -0.6489423513, 0.4792972803, -0.1898259223, 0.1478466541, 0.0329265781, -0.5153905153, 0.0615888387, 0.2572768033, 0.3319448829, -0.0981926471, 0.0039389925, 0.3674486578, 0.0887913182, 0.1793730855, 0.3715204597, -0.0340012982, -0.2261722088, 0.3655916154, -0.0161390435, -0.1732264757, -0.2317010015, 0.3097928762, 0.0443821736, 0.6939404607, -0.4388226867, -0.1589534581, -0.390953213, 0.1421655416, -0.5054188371, 0.1175631359, 0.1817195863, 0.0114592034, 0.2422339171, -0.1476076394, -0.4430011213, -0.3262474537, -0.1966209263, 0.5953674316, -0.4200974703, -0.0878204405, -0.1266940236, 0.4859720767, 0.0839419961, 0.2252020538, -0.1792857796, -0.3020442426, 0.3221303225, -0.1004943401, -0.1947908252, -0.3318039775, -0.2837394476, 0.1633085459, 0.1971445233, 0.3921898007, 0.0155777661, 0.1589903831, -0.0024582315, 0.3650123775, 0.3253178596, 0.0567487106, -0.0154449148, 0.1955091506, 0.1219282225, 0.09446688, -0.0626401678, 0.0564418025, -0.0361692198, 0.3055577576, -0.0224621054, 0.032076098, -0.1643727422, -0.0773369819, 0.0661546811, 0.1919807643, -0.1818099618, 0.051408127, 0.1919045597, 0.1945619583, 0.1084146425, 0.0120297102, 0.2396143973, 0.0325861834, -0.3729588389, 0.0624158457, 0.0842377767, -0.3152471781, -0.2167696506, 0.4251202345, -0.0692522079, -0.0677438602, -0.0776426494, -0.3325962722, 0.1238680929, 0.5096793175, -0.0929375142, 0.2749296129, 0.3011269271, -0.1944487244, -0.2114195526, -0.2887327373, 0.0115746604, -0.1462055147, 0.4718722105, -0.0836264193, -0.2405284494, -0.0792886391, 0.1582890004, 0.0998336971, 0.2539297342, -0.6136038303, 0.1032645404, 0.1020420045, 0.0629071891, 0.0064157359, 0.2727428377, -0.0109287184, -0.0711655691, -0.2500285506, 0.2974753678, -0.7026977539, -0.0151146371, -0.3810775876, -0.2615411878, 0.1441981196, 0.1360021681, -0.1141000465, 0.2153519541, -0.1931094229, 0.1585100293, 0.2810716927, -0.1277639717, -0.449496299, 0.1385642141, 0.0316709094, 0.221645087, 0.2527034283, 0.2599443197, 0.4064203799, -0.0053483355, -0.074704878, 0.2618269622, 0.0072227167, -0.0818888843, -0.3101497591, -0.3716854155, 0.0091330279, 0.2902949154, -0.0464235954, 0.0333958715, 0.2457735837, -0.0116136437, 0.1760636121, 0.1377880722, 0.1765562296, 0.1564888656, 0.1129364446, -0.286983043, -0.2430572808, 0.1173631698, -0.6472293735, 0.0515572876, -0.4302771986, -0.3367314935, -0.2597640157, -0.4017220736, 0.1069798321, 0.000313604, -0.2254596949, 0.1922654361, 0.0904280916, -0.0458623655, 0.1582463384, -0.0665626749, -0.3913015723, 0.0469884314, -0.0650380999, 0.0207477883, -0.4797947705, 0.0695303604, 0.1714745909, -0.2255218923, 0.030006472, 0.0377176106, -0.3066349924, -0.4373159409, -0.1367691904, 0.2760284245, 0.2677149475, 0.2772708833, 0.2583814859, 0.2232233137, 0.1723569185, 0.1517801285, 0.099309586, 0.1439181715, -0.0193579253, 0.1048068479, -0.4482202828, 0.3862941563, -0.1830077171, -0.0284165703, -0.166994825, -0.348737061, 0.2705668211, -0.0806843862, 0.0948650613, -0.6014313698, -0.0367364697, 0.3301692009, -0.0589250475, 0.0794564113, 0.0906827003, 0.0266449992, 0.0612906218, -0.0423663594, -0.1162151918, 0.3406760693, -0.0697613135, -0.2100414336, 0.1170763299, 0.4911106229, 0.3566938937, 0.2214137167, -0.0846719295, -0.1309575289, 0.4406020939, 0.0044326833, 0.1452681571, 0.0406754166, 0.0857579559, 0.3085530996, 0.091314517, -0.0110077104, -0.2508098185, -0.0662560463, 0.1040208042, 0.2441477031, 0.2336025387, -0.2658806741, -0.3304499984, -0.3818599284, 0.4872904718, 0.3326803744, 0.2534178495, -0.0412212759, 0.4535221756, 0.121171549, -0.4766843319, 0.1249920055, -0.0667654276, 0.6247704625, -0.1010290906, -0.2049592882, -0.3821293116, -0.2168397009, 0.1266383827, 0.0564313307, 0.3907305896, -0.0646004602, 0.4973315001, 0.1180511788, 0.1314409673, -0.1648128778, -0.0041276151, 0.0818761662, 0.3110398352, -0.0571077317, 0.1339184642, 0.1453295052, -0.0676508322, 0.1235646456, -0.2136649936, -0.3039455116, -0.1567979455, 0.1779379994, 0.0637526512, -0.0044934954, -0.2445877343, -0.1115917116, -0.1638435572, -0.4349409044, 0.2674325705, -0.0510960966, 0.0239292327, 0.1086262167, 0.1742656827, -0.0175037291, -0.0008387662, 0.0091249654, -0.0748916045, -0.5851695538, 0.1650402993, -0.2132186592, 0.0230190568, 0.2357921451, 0.0374634378, 0.0251582786, 0.3056432009, -0.4097907245, 0.0278874524, -0.0611579381, 0.1791487485, -0.2906416655, -0.1186672002, 0.2030058801, 0.25512591, -0.1212828159, 0.0341084562, 0.1248948276, 0.275582701, 0.3200293481, 0.032326933, 0.0342404693, 0.2859158516, 0.164078027, 0.3512728512, -0.1879604757, 0.0512156747, 0.2993656397, 0.3690425456, 0.4838575125, -0.2564121485, 0.2488677651, -0.3840308487, 0.0199967287, -0.0404896438, 0.1524169892, 0.040785294, -0.1463922262, 0.2161570936, -0.2363282144, -0.0881399065, -0.179296568, 0.2731654644, -0.2889285684, 0.0402076431, 0.0800960883, -0.2684658766, -0.0185031034, -0.0233894344, 0.1533514112, 0.077383168, 0.387804836, -0.0952338874, -0.2750812471, -0.0267899614, -0.2655271888, 0.3023183942, -0.2460314482, -0.1332044303, -0.0475662947, 0.0054382198, 0.1472666115, 0.2468609065, 0.3770070076, -0.1615944058, 0.0034670462, -0.1344494075, 0.0493624359, -0.3254891634, 0.0385543779, -0.0113813914, 0.0659053847, -0.0248181522, 0.3186225295, -0.2891428769, -0.2005816549, -0.1354071498, 0.5658415556, -0.2458692938, -0.0819146484, 0.0042756796, -0.2207072824, -0.4849289358, 0.0790771917, 0.0261179488, -0.1166031435, 0.1459044367, -0.2863047719, -0.1278497279, -0.2963276207, 0.0831853226, 0.0918702781, 0.5984149575, -0.205071345, 0.1636434495, -0.0610124506, 0.1400484145, 0.6094434261, 0.3160102963, -0.1091067418, -0.0088362051, 0.0345187485, -0.3696349859, 0.1417118758, 0.1127377972, -0.1866814196, 0.2563530207, -0.1997178495, 0.504017055, 0.0093940152, 0.0027097603, -0.2488677353, -0.2839726806, -0.0684405714, -0.2279613614, 0.1080500036, 0.0423948653, -0.1545616835, 0.45362252, -0.100072965, -0.2369527221, 0.4782825708, 0.1114019528, 1.0490740538, -0.077583693, 0.0356166996, -0.1609672904, -0.2834871709, 0.3261194229, -0.5598512888, 0.0843032226, 0.0123190759, -0.1201916039, 0.1132015586, -0.0343065001, -0.0023789902, 0.2772351205, -0.2347502708, 0.0795548707, -0.3114007115, -0.1200346798, -0.2471472472, 0.4306900501, -0.1301983446, -0.2882218063, -0.0762301162, 0.0350222886, 0.0873176679, -0.1888195574, -0.2189511806, -0.0781410858, 0.3835891485, -0.0389158688, 0.2399485707, -0.0820737854, -0.2556137443, 0.3634470105, -0.1974610835, -0.1324067563, -0.1501625031, 0.0025839554, -0.1674365103, 0.0485402979, 0.126817584, 0.0721175, 0.0788133815, 0.0102124214, -0.3229547441, 0.0176077317, -0.0816234052, -0.1278714836, 0.005741463, 0.0871284232, -0.266579777, -0.3794738948, 0.2276145369, 0.146622166, -0.1534771621, 0.0173724853, -0.2547752559, -0.1255760044, -0.4791091979, 0.0489408933, 0.1253712773, 0.2693443298, -0.1279639602, 0.2854361534, -0.1708793491, -0.2049617171, -0.2208630741, -0.1151560917, 0.2870616019, -0.1019976139, 0.3308944404, -0.1526321322, -0.1944946498, -0.4860875607, 0.0062776878, 0.0898375586, -0.4311338663, 0.4288219512, 0.0083313035, -0.1597497314, 0.1343875527, -0.0785339251, -0.004922267, -0.0023803536, -0.1550839096, -0.1179557219, -0.4771163464, 0.2584301829, 0.1668665856, 0.541447401, 0.0517602935, -0.0477178395, -0.1501581222, 0.1248980165, -0.2867145836, 0.2042426914, 0.2524321973, 0.1670934558, -0.0562897623, 0.3051924706, 0.1198348925, -0.3132943213, -0.051785361, 0.0629816204, -0.1310728341, -0.2062089145, -0.0797001645, 0.087919496, -0.1630657166, -0.0899493545, -0.1748679429, -0.1778806597, 0.028861966, -0.2104349583, 0.2703489363, -0.1927798986, -0.1530975401, -0.1547866017, 0.4422273636, -0.0978603885, -0.1274125725, 0.1500854492, -0.0465311147, 0.3000344932, -0.0446943901, 0.0621791966, -0.0825497285, -0.0836139023, -0.225050807, 0.1014940515, 0.2650090456, 0.0771161467, -0.019549245, -0.0275107659, -0.1250666529, 0.151777342, 0.1358235329, 0.2690426111, -0.046278473, -0.1790921688, -0.0391743667, 0.2356312424, -0.2341132909, -0.1392617822, -0.0257324856, 0.054670915, -0.1703193039, 0.2459825873, 0.3385912776, 0.0634858087, 0.0567091554, 0.1311383992, 0.2675947547, -0.2423136979, 0.3843117952, 0.3634721041, 0.0747030303, -0.244273454, -0.0652989224, 0.3188365698, 0.1602815688, 0.0378592685, -0.1042153016, 0.4175525606, 0.6066232324, 0.3013852239, -0.4863904417, -0.3089410663, -0.2099137753, 0.5793690681, -0.0945490822, 0.4008532465, 0.4404428005, 0.167051971, 0.322719425, -0.3564128876, -0.2688577473, 0.3678478897, 0.0567994304, 0.0569507778, 0.0324853919, -0.113542743, 0.1598707289, 0.1240464151, 0.1077641398, 0.335759908, -0.0621857345, 0.2875966728, 0.0981165171, 0.1508207172, 0.5759003162, 0.1738011986, 0.3641439974, -0.1365812272, -0.1599025428, 0.1996973157, 0.2128985077, 0.0841388181, -0.0369851142, -0.0155061819, 0.1501621604, -0.3222708702, 0.0604529716, 0.0688138828, 0.0356952511, -0.2824097276, 0.4310360849, 0.2198582739, -0.2790059447, 0.0124405529, 0.1058833972, -0.095127739, 0.1621371955, 0.0995231345, 0.1884827018, -0.068263188, -0.2039424628, 0.3901366591, -0.4440829158, 0.0619216561, -0.1376010925, -0.0918119177, -0.0495724566, 0.3588737249, -0.3027017415, 0.0067120865, -0.1420393437, 0.0905867293, -0.1946094185, 0.349024266, 0.1869707704, -0.339547962, -0.212679714, -0.3154650331, -0.3378931582, -0.1892917752, -0.2675839067, 0.0137949679, 0.269831568, 0.2674234509, -0.019809559, 0.228003785, 0.2677682936, -0.0480598472, -0.1025074795, 0.0251173992, -0.501122117, 0.1211824194, 0.3226197958, 0.2113982141, 0.1301867515, -0.4562162161, -0.2158823162, -0.013515776, 0.0075381226, -0.1407110095, 0.2123310566, 0.1369467825, 0.6466158628, 0.6635485888, -0.0839912221, -0.3119257092, -0.0729776025, -0.1753682196, -0.1198865622, -0.147124812, -0.0737958923, -0.1096397415, 0.4317800701, 0.2941234708, -0.2969916165, 0.2574815154, -0.2406548113, -0.2088906616, -0.1787056476, 0.243312344, -0.2513648868, 0.059973862, 0.0469662994, 0.4676734209, -0.0515472405, 0.1882141829, 0.0739948675, 0.1181131303, -0.3579022586, -0.0601621121, 0.3388687968, 0.2894136012, -0.3498058021, 0.4524710476, 0.1452547163, 0.0975929424, -0.1375297755, -0.2947257459, 0.2565616667, 0.1006879658, -0.2167924047, -0.0259711146, 0.2420888245, -0.0488131717, -0.0287117474, 0.0757220611, 0.392826438, 0.3239244223, -0.0721383244, -0.4051160514, -0.2832624316 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
Hi ! That's weird, it doesn't do that on my side (tested on master on my laptop by deleting the `extracted` folder in the download cache directory). You tested with one of the files at https://huggingface.co/datasets/thomwolf/github-python that you have locally ?
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
41
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. Hi ! That's weird, it doesn't do that on my side (tested on master on my laptop by deleting the `extracted` folder in the download cache directory). You tested with one of the files at https://huggingface.co/datasets/thomwolf/github-python that you have locally ?
[ -0.0332568213, -0.0617315099, -0.151805073, 0.2321403623, -0.0794416443, 0.1899539381, -0.1519190967, 0.3226886988, 0.2679442763, 0.1859115064, -0.0086605931, 0.478590101, -0.2064821273, 0.0198205672, -0.1249554679, 0.0193795711, -0.2612202466, 0.267311424, -0.0352826379, 0.1023955122, -0.1649815291, 0.1615478545, 0.0307119787, -0.2143166363, -0.0014289202, -0.2806632221, 0.177387014, -0.0900834054, -0.2368220985, -0.4120259285, 0.0911950693, 0.4586049914, 0.2278509289, 0.2842080593, -0.0001189412, 0.0202765875, 0.3218191862, 0.0664270893, -0.3416108489, 0.0965556726, -0.1090637371, -0.2528341115, 0.3365173936, -0.2395072132, 0.1118237376, -0.2765809596, -0.2922462225, -0.5912128687, 0.5315219164, -0.0952574089, 0.1267583817, 0.1466715783, -0.3559591472, 0.21925731, 0.2747637033, 0.2166806012, -0.0988646597, 0.0537273884, 0.3152775168, 0.0675989687, 0.2849491835, 0.3909695148, -0.1213169247, -0.10548684, 0.3051480651, 0.0537144393, -0.1651777774, -0.4498274624, 0.2631422877, -0.0311785098, 0.5653124452, -0.4969911873, -0.2195427418, -0.3977090716, 0.0205810443, -0.6025556922, 0.0792897344, 0.3545734882, -0.0875535309, 0.2304889858, -0.2468706518, -0.3859896958, -0.3075897098, -0.0835526809, 0.4763798118, -0.2620851099, -0.182411328, -0.1066639647, 0.4677404761, 0.1795821935, 0.0424532704, -0.2289461941, -0.2521288693, 0.3555212915, -0.1274120063, -0.2224960178, -0.2088651955, -0.3136997521, 0.2307112515, 0.269906491, 0.2709547877, 0.0157215036, 0.1045329049, -0.0305519085, 0.3759335876, 0.4152938724, -0.0611147657, 0.1297468394, 0.3189986348, 0.1017591059, 0.0494841821, -0.0757148936, 0.1097160354, -0.0244885124, 0.316286236, -0.1740885228, 0.1749754101, -0.1531496197, -0.091224134, 0.1615377963, 0.1361991316, -0.126477465, 0.0433214493, 0.2908787429, 0.0304661207, 0.0870592296, 0.0671080574, 0.3209929466, -0.0561014414, -0.1605155915, 0.0770600885, 0.1735167354, -0.2492262572, -0.2693285346, 0.421580106, -0.1249041334, 0.0887146816, -0.0435721725, -0.2162627876, -0.0413140096, 0.5175768137, -0.1195727512, 0.3411773741, 0.4210414588, -0.0745883584, -0.1149853095, -0.1722791344, -0.1657734811, -0.1743790805, 0.4609253407, -0.1498118043, -0.2387833297, -0.1282223761, 0.1567412466, -0.0032492639, 0.2452865988, -0.6246504188, 0.0005455533, 0.1519328654, 0.2135064304, 0.0848616436, 0.2263615578, 0.0496609174, -0.1697264761, -0.1571181417, 0.3347280324, -0.4668130875, -0.0333850235, -0.2098704427, -0.1474105567, 0.184727639, 0.2946435213, -0.0912263989, 0.2407302707, -0.2020547539, 0.118763864, 0.3351453543, -0.2505330741, -0.5275449753, 0.2201985419, 0.0643168837, 0.3103695214, 0.2630608976, 0.2385440469, 0.3052238822, 0.0946832225, 0.0400313735, 0.3342138827, 0.0402656719, 0.0579856522, -0.4034207165, -0.2949006557, 0.0445606373, 0.2469552159, -0.0413192064, 0.1011849195, 0.1281718016, -0.1058713943, 0.3076835871, 0.0411467701, 0.136233598, 0.2670237422, 0.1770785749, -0.2603793442, -0.1623839438, 0.0183596164, -0.4770287573, 0.0945220664, -0.4080125093, -0.2634164691, -0.3683611751, -0.3869254589, 0.0043124426, 0.0810936913, -0.3423129916, 0.0619368739, 0.0587095208, -0.1631043553, 0.3893430531, 0.002706001, -0.346002847, 0.1510157585, 0.0202831831, 0.1022439227, -0.4906039238, 0.1922678202, 0.1886428446, -0.2518175542, -0.0409130342, -0.0152284978, -0.248842597, -0.4605020285, -0.1549682319, 0.2493538558, 0.2999376655, 0.1253161132, 0.206798017, 0.2235664427, 0.1670232415, 0.2181141078, 0.1772172004, 0.2222543061, 0.0617596582, 0.1005988047, -0.2781884372, 0.4478913546, -0.188537389, -0.0291270148, -0.1488328278, -0.3766204715, 0.3021800816, -0.0755830035, -0.054107137, -0.470261395, -0.0302458629, 0.3676840365, -0.0016348759, -0.0202195197, -0.0253918488, -0.0472822785, 0.1545383483, -0.0499394871, -0.1253132224, 0.4055540264, -0.1499510258, -0.1962155104, -0.0140799684, 0.4155004025, 0.4606254399, 0.1591748595, -0.0678067952, -0.0173172932, 0.3735678792, 0.0155712627, 0.1984345764, 0.0710078776, -0.0462582931, 0.3129604757, 0.2086462229, -0.0325563215, -0.2569280863, 0.0208212435, -0.0300834887, 0.2917762399, 0.1879810244, -0.0984207466, -0.3195225, -0.3765309453, 0.4093852639, 0.1857546121, 0.1845462322, -0.1193321273, 0.3986595273, 0.1807384044, -0.3674198985, 0.081492044, 0.0344221145, 0.3880401552, -0.0016939332, -0.3106749356, -0.2539882362, -0.1466291249, 0.1887052953, -0.0019916592, 0.266302675, -0.1614191085, 0.5131768584, -0.0222542435, -0.0057921349, -0.1705048829, 0.0209887363, 0.0856401026, 0.2487095445, 0.0692660287, 0.1128561124, 0.24188824, 0.0192851163, 0.1607370824, -0.095647715, -0.2883740962, -0.1349904835, 0.1901532859, 0.1394326836, 0.0259202067, -0.2716074586, -0.104124859, -0.2724405229, -0.442222178, 0.3500589728, 0.1526201218, 0.0999119505, 0.1743973196, 0.2171636522, -0.0255622398, 0.1482317746, 0.0802655891, -0.1224797964, -0.65552634, 0.220202893, -0.233246848, -0.0462396294, 0.3175826371, 0.0387546457, 0.0010782568, 0.2596193254, -0.4103809893, -0.1555806249, -0.1932014078, 0.2453219295, -0.1802003533, 0.1367725879, 0.1767832339, 0.1448154449, -0.0755916461, 0.03924435, 0.0460780598, 0.1047632545, 0.3434067369, -0.0044573159, 0.1057257503, 0.3205358088, 0.1107367948, 0.4776507616, -0.0486317351, 0.0883383155, 0.4071294963, 0.2520942688, 0.4920273125, -0.3374049664, 0.1258829683, -0.4846446216, -0.093485564, -0.0854884312, 0.1300480962, 0.1559644789, -0.1521033645, 0.1395100057, -0.2521049678, -0.1673849225, -0.1934484243, 0.2668277323, -0.2344255745, -0.0259915143, 0.0939271376, -0.1695006788, -0.0837182254, -0.0794796869, 0.0241834335, 0.138285622, 0.2804588377, -0.062848188, -0.1751357615, -0.1319060028, -0.4479257464, 0.3159880936, -0.233504504, -0.251575619, 0.1123894304, -0.0193633027, 0.2216553688, 0.1352766007, 0.4183789194, -0.1490493268, -0.0966635346, -0.0755923018, -0.1137545779, -0.3181274235, 0.0026896836, -0.0213216562, 0.1850788146, 0.0618404187, 0.2871907353, -0.2788701355, -0.2535727024, -0.1004385129, 0.6766914725, -0.2556501627, -0.0628543571, -0.2358074933, -0.4080510437, -0.6040320396, 0.0970634222, 0.1638952494, -0.104890734, 0.0750684515, -0.2510493398, -0.0694820359, -0.3054729402, 0.0271757003, 0.0615982153, 0.6772763133, -0.2699929178, 0.1834551692, -0.1231342629, 0.0992158726, 0.4116416872, 0.482519418, -0.0674109012, -0.0367384776, -0.0192388035, -0.2285838723, 0.0878268257, 0.1801991016, -0.1216648892, 0.2007098645, -0.3159460127, 0.6137955189, -0.0255600456, -0.0278346203, -0.0738734826, -0.2462100834, -0.1315938234, -0.3758296371, 0.1242164522, 0.0124269621, -0.081021741, 0.4736641347, -0.1542479992, -0.2274923027, 0.4616507292, -0.0732439086, 1.1378890276, -0.0573132783, 0.1218127161, -0.0517426208, -0.3184494674, 0.3369060755, -0.6598302722, 0.1584890932, -0.1112316623, -0.068179667, 0.1269740015, -0.0553701781, -0.0240614396, 0.1334137022, -0.2422806174, 0.2128768116, -0.4090474248, -0.2152428776, -0.323856324, 0.4293532968, -0.1048843935, -0.2767992318, -0.2988871336, 0.0471159108, 0.1215240657, 0.0428709313, -0.1723895371, -0.0776229948, 0.3175719082, -0.1417824477, 0.1199448705, -0.0692974627, -0.1389088929, 0.3715846539, -0.1808598042, -0.1589770913, -0.3154517114, 0.0253912918, -0.040913105, 0.1076188162, 0.1379159242, -0.0042091617, -0.0192119293, 0.0207403656, -0.3300176263, 0.0066794395, -0.0624324158, -0.1476426423, -0.0375364944, 0.1586972773, -0.3073331416, -0.409011364, 0.2464351058, 0.2679155767, -0.2021261603, -0.0482516699, -0.2696136534, -0.1242536753, -0.3961208761, 0.0285080448, 0.1112092733, 0.395377785, -0.2896130085, 0.405791223, -0.267899096, -0.3382912278, -0.283297658, -0.0936660692, 0.3441707492, -0.0186303705, 0.3068981171, -0.1357010007, -0.2476723641, -0.4111405313, -0.0265930705, -0.025421029, -0.3614840806, 0.5023360252, 0.0710435808, -0.0542001389, 0.0357520021, -0.0458612666, -0.0785361007, -0.0049884096, -0.1925141364, -0.0915513039, -0.4491463304, 0.1111071035, 0.2908151448, 0.5239838362, 0.1269327551, 0.0626061261, -0.0523874536, 0.1228005439, -0.2610007524, 0.2496438026, 0.1228008643, 0.1014569551, -0.003810372, 0.2337704152, 0.1216497123, -0.3009345829, -0.0606021881, 0.0755939707, -0.1573366374, -0.2063388377, -0.098971352, 0.1312090904, -0.1449002028, -0.1276475042, -0.0739609003, -0.1366320401, 0.1312755644, -0.2527082562, 0.4108954072, -0.077780582, -0.0681057051, -0.1161756814, 0.4291159809, -0.1365373284, -0.0248719268, 0.1099173501, -0.1912466735, 0.4337046742, 0.0322050825, -0.0077118068, -0.0308951605, -0.0435572043, -0.320720464, -0.0046776645, 0.2004586309, 0.0698056892, 0.0687474236, -0.1616945714, -0.0815909728, 0.139899388, 0.2040304095, 0.3896816969, -0.1375798285, -0.1116089672, 0.0036817372, 0.2207108587, -0.2480196953, -0.2681471705, 0.0259247869, 0.0022779363, -0.157157883, 0.3477062881, 0.3385127187, 0.156788215, 0.1067682654, 0.1792640239, 0.424369812, -0.2484146953, 0.3661260903, 0.1565625221, 0.0731896982, -0.1989875585, -0.086118266, 0.2434793711, 0.1555796713, -0.0020661822, -0.1434391588, 0.3063275516, 0.5199891329, 0.2046106607, -0.5770916939, -0.2283824533, -0.2111486942, 0.4667414427, -0.2342360318, 0.4735681415, 0.4336746335, 0.1427623779, 0.1222111061, -0.2752470374, -0.2910156548, 0.5431444645, 0.0150200985, -0.0291631985, 0.179815203, -0.096511662, 0.1239805967, 0.225150615, 0.1246054769, 0.2634057701, -0.0272090863, 0.2285270244, 0.0037364354, 0.0911225304, 0.5725492239, 0.0508425646, 0.4281855524, -0.2018012851, -0.1588833928, 0.2087462991, 0.1749545932, -0.1198234186, -0.0308809299, 0.1743924022, 0.2122116387, -0.3490407765, 0.0587139241, 0.0426387489, -0.0047609862, -0.2958355248, 0.3895011246, 0.1521132439, -0.1610448509, -0.0768556222, 0.1117371395, -0.1184737459, 0.1702173203, 0.0884497687, 0.1912442595, -0.2271020114, -0.0656104833, 0.2860580683, -0.4047798812, -0.0090621449, -0.2457283437, -0.2952020764, -0.0067706383, 0.2661709487, -0.2224276662, 0.0355191976, -0.1656461954, 0.0889625177, -0.1993579865, 0.3422854543, 0.2350547761, -0.2720924914, -0.3159381151, -0.2059534192, -0.3135771155, -0.1919194013, -0.3323297799, -0.1163235828, 0.1817055941, 0.3304492533, -0.1060379222, 0.2373960316, 0.1871115416, -0.0952251554, -0.1168177053, 0.0020121327, -0.4604873955, 0.1378266066, 0.1788462698, 0.2282205969, 0.20815669, -0.5176974535, -0.2647796273, -0.152763024, 0.000777938, -0.1358694732, 0.3029810488, 0.1575910747, 0.5477007031, 0.6887499094, 0.001479504, -0.2566514611, -0.0870686993, -0.2421878129, -0.0738504976, -0.1291607916, -0.1220881492, -0.1594553292, 0.346560806, 0.3143830895, -0.3293672502, 0.0846822858, -0.2532246411, -0.0861110687, -0.0682176203, 0.1455228776, -0.0891820639, -0.0163181536, 0.0765479878, 0.4157755077, -0.0701461956, 0.3245224953, -0.021070512, 0.158949852, -0.3448207974, -0.1187075004, 0.3293447196, 0.2186017483, -0.4817659259, 0.4003863037, 0.1353743374, 0.065707162, -0.150567323, -0.3618247211, 0.3132101297, 0.1325525045, -0.2016753256, -0.1304765642, 0.3226748407, -0.086658746, -0.0766899213, 0.1098621488, 0.330888778, 0.3124464452, -0.0759331733, -0.3197585344, -0.2632790804 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
@thomwolf I'm sorry but I can't reproduce this problem. I'm also using: ```python ds = load_dataset("json", split="train", data_files=data_files, cache_dir=cache_dir) ``` after having removed the extracted files: ```python assert sorted((cache_dir / "downloads" / "extracted").iterdir()) == [] ``` I get the logging message: ```shell WARNING datasets.builder:builder.py:531 Reusing dataset json ... ```
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
49
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. @thomwolf I'm sorry but I can't reproduce this problem. I'm also using: ```python ds = load_dataset("json", split="train", data_files=data_files, cache_dir=cache_dir) ``` after having removed the extracted files: ```python assert sorted((cache_dir / "downloads" / "extracted").iterdir()) == [] ``` I get the logging message: ```shell WARNING datasets.builder:builder.py:531 Reusing dataset json ... ```
[ 0.0387397856, 0.0011512297, -0.0731728002, 0.2888254225, -0.0225977376, 0.2442346811, 0.004371508, 0.2252015471, 0.2111156583, 0.1112265512, 0.1300096363, 0.4447042346, -0.314945668, -0.1522338837, -0.1879175305, 0.0685453415, -0.1822635531, 0.2303555459, 0.1179902405, 0.1538844705, -0.1485167295, 0.0167128071, 0.0281606205, -0.1277254969, -0.0811992064, -0.3685384095, 0.1793389916, -0.2001990378, -0.0709403083, -0.4755669236, 0.1935171932, 0.487288177, 0.2634620965, 0.2937749028, -0.0001270321, 0.1402311623, 0.2824357152, 0.1706398129, -0.4946144521, 0.0734712332, -0.2185483277, -0.1317234039, 0.2783428133, -0.1279086471, 0.2389571667, -0.5058015585, -0.2874323726, -0.7039568424, 0.6001021266, -0.1444819868, 0.0226127636, 0.0881786197, -0.4752636254, 0.2353416234, 0.1795051098, 0.343250066, 0.0032172974, -0.0145619633, 0.3974131346, 0.0410051867, 0.2530763745, 0.332346797, -0.150010854, -0.231543079, 0.2820383906, -0.0412385054, -0.0308064781, -0.303809315, 0.1847778857, -0.0036728922, 0.624960959, -0.3946921825, -0.2556183934, -0.5423306227, 0.0626543835, -0.6009435058, 0.0232608337, 0.2797489166, -0.0825030282, 0.2129980624, -0.1887125075, -0.3832757175, -0.3273218274, -0.112342231, 0.5984612703, -0.3998060226, -0.0372386798, -0.0458066352, 0.4938415289, 0.1461503953, 0.2353723347, -0.3142923713, -0.2171893269, 0.3846140206, -0.187388733, -0.0936432555, -0.2239201218, -0.2821356952, 0.1414930075, 0.1589773446, 0.2970097661, -0.1674042344, 0.118529886, 0.0908484533, 0.3935777247, 0.4597047865, -0.0481681414, 0.112855576, 0.1008520424, 0.1619087309, 0.0482868627, -0.0979920477, 0.1011850536, -0.0617837161, 0.4250557125, -0.032199461, 0.0416537598, -0.1071881056, -0.2610661983, 0.0968772024, -0.0078235054, -0.2051995099, 0.1666130573, 0.1866742522, 0.1723244488, 0.0193720702, 0.0672905967, 0.4301664233, -0.0577313751, -0.2265525609, 0.1032960936, 0.1011030748, -0.3205890059, -0.3679002821, 0.4237627983, -0.1298710704, -0.0259720795, -0.0048205508, -0.2550820708, -0.0653330162, 0.4840128422, -0.0929190218, 0.2538095415, 0.3099849522, -0.2183122933, -0.0880338326, -0.2122651339, -0.165378958, -0.1422929019, 0.5295102, -0.1849960387, -0.3411289752, -0.0856947005, 0.0599792711, -0.0660017356, 0.280051589, -0.5685244203, 0.0612000749, 0.1911427677, 0.0687454939, -0.0418275259, 0.2140063792, -0.0375091471, -0.088714987, -0.2247154862, 0.4024042487, -0.6254299283, -0.1333288997, -0.3174974322, -0.1452011168, 0.20104599, 0.2420936227, -0.1749444902, 0.3494222164, -0.3156358898, 0.0096585462, 0.4006727934, -0.2328711301, -0.4543675482, 0.1765416414, 0.1190123931, 0.4207155108, 0.3524939418, 0.2543874085, 0.2594757974, -0.0322540514, -0.0024926974, 0.3350211382, 0.0773675516, -0.0738489926, -0.2808282673, -0.3792130053, 0.2256358266, 0.1916750968, -0.092185162, 0.110552147, 0.1678091884, -0.0024406712, 0.2609684765, 0.1150509641, 0.1132843345, 0.1940720677, 0.1154084429, -0.2010038793, -0.1774225384, 0.1313794106, -0.5052554011, 0.0986853614, -0.4657927155, -0.3321769238, -0.3756704628, -0.2849499285, 0.0386047773, 0.1174927875, -0.3890927732, 0.1290553659, -0.0220171995, -0.1279524267, 0.3280846477, 0.0559469499, -0.3593135774, 0.1520721167, -0.0983791873, 0.0780224353, -0.5450094938, 0.2050354034, 0.1843022555, -0.2473081201, -0.1290710866, 0.1400123239, -0.2306080163, -0.3627340794, -0.1653994471, 0.2036164254, 0.3391127884, 0.2150986791, 0.1560035944, 0.2421355397, 0.2304074168, 0.2009602487, 0.0469733886, 0.194821775, 0.0115870852, 0.0463879034, -0.2821243405, 0.3812071085, -0.2219504118, 0.0534803197, -0.1775821298, -0.4575612545, 0.2535555959, -0.0570937768, 0.0790789202, -0.4799565673, 0.1083347797, 0.3552140892, -0.0536250882, 0.0245036576, 0.1122615412, -0.1633779556, 0.0036082659, -0.0947124213, -0.1975778639, 0.2892425358, -0.1210098043, -0.1792407632, 0.0539709553, 0.472207576, 0.3872460425, 0.07281214, -0.0692075416, -0.1037086397, 0.4217989147, 0.0783270001, 0.1705799103, 0.0563217737, -0.0379139557, 0.3702069223, 0.2599154711, -0.0925852805, -0.2354391515, 0.0143225705, 0.1043260321, 0.2683179379, 0.1289221942, -0.03347449, -0.3978504539, -0.3873177171, 0.33656919, 0.1967995167, 0.1924797744, -0.1469785571, 0.3643904626, 0.1799004823, -0.2070639431, 0.0305837765, -0.0449993983, 0.4603665173, 0.0073026852, -0.3709699512, -0.3444035947, -0.1632083505, 0.1228644624, -0.0831060633, 0.4022925794, -0.2809518874, 0.4440795183, 0.127564013, -0.0038784666, -0.0542431474, -0.0177100468, 0.0376478881, 0.3879236281, 0.1876688749, 0.1001777872, 0.153130576, 0.0379878171, 0.0963793546, -0.0991242453, -0.1449349523, -0.1022411287, 0.3233745992, 0.066122584, 0.1851320267, -0.1712579131, 0.0005540987, -0.2757928967, -0.2898995578, 0.2013384551, 0.031960573, -0.0162348319, 0.2689194381, 0.2810170054, -0.0965232253, 0.0841752142, 0.1488934308, -0.0251834095, -0.7104849815, 0.1607455313, -0.0769013911, 0.1364143789, 0.1890658438, -0.0697534606, -0.0293772575, 0.3408838809, -0.4336382151, -0.012082452, 0.0660454556, 0.162759304, -0.2804273069, 0.0191991404, 0.095886752, 0.2754339576, 0.0378886759, 0.0201794207, 0.0985086262, 0.14473252, 0.3198248744, 0.173114568, 0.1262676865, 0.2603630126, 0.2043640316, 0.4321883321, -0.062224403, 0.0196018312, 0.3881898224, 0.3163257837, 0.4387292564, -0.2470133901, 0.098919265, -0.4738690853, 0.0050002439, -0.2182049006, -0.0037107626, 0.1213674471, -0.0496472195, 0.1735691428, -0.1063402295, -0.1391188204, -0.1404743344, 0.21180439, -0.3662154973, 0.1025427505, 0.0500670634, -0.2705195844, -0.1174219325, -0.1675271839, 0.0391077064, 0.1657991558, 0.5044096708, -0.0209650639, -0.1951971799, -0.1079093739, -0.2236527503, 0.2688925564, -0.1963931918, -0.1239868626, 0.0256856922, 0.0904646441, 0.2192270607, 0.2238591909, 0.4910551906, -0.1035334691, 0.0390726738, -0.0954007506, -0.0014428642, -0.2994737327, -0.0398617573, 0.0502798632, 0.0924926549, -0.0287452396, 0.4003673792, -0.2519615293, -0.1651293933, -0.225709185, 0.6906107068, -0.2601242661, -0.1884288192, -0.1495396942, -0.2630368769, -0.5465510488, -0.0200445931, -0.0080207372, -0.0236063097, 0.0812036768, -0.2832098901, -0.1270307899, -0.2804132998, 0.1166420653, -0.056405101, 0.5973095894, -0.2932862639, 0.1725891232, -0.0703299344, 0.0852045715, 0.5068810582, 0.3177329004, -0.092368722, -0.082754232, -0.168062821, -0.1983069927, 0.1099875718, 0.0935983881, -0.3003249466, 0.3180716038, -0.2498795241, 0.4409911931, -0.0315179899, 0.0097210342, 0.0271958187, -0.2729805708, -0.115415819, -0.3969818056, 0.0979597941, 0.0724427924, -0.1441589892, 0.4777913094, -0.2132848799, -0.2477707714, 0.4918861389, -0.1485554725, 1.0456447601, -0.1345221251, -0.0002492481, -0.0578193702, -0.2254692912, 0.4228831232, -0.6274009943, 0.1990944296, -0.0431003496, -0.0408792906, 0.1003762782, -0.120010823, 0.0230390616, 0.315231353, -0.0527525768, 0.2467499822, -0.4842717946, -0.1601076275, -0.3023612201, 0.3316244781, -0.0552998967, -0.1308069229, -0.1981835961, -0.0560086891, 0.0174176581, -0.0206173416, -0.2003172636, -0.0525973774, 0.4607527554, -0.051871907, 0.2136152983, -0.1244363412, -0.2420247048, 0.4143179953, -0.1312366724, -0.2538132966, -0.1891986877, 0.1305609941, -0.2244039774, 0.0189590622, 0.274998486, -0.0032373203, 0.031375967, -0.0009668819, -0.3601751924, 0.1051988602, 0.0176964346, -0.0305394828, -0.0243016686, 0.1501025409, -0.3183411956, -0.4439485371, 0.1413229108, 0.1588863283, -0.1130427793, -0.0460678749, -0.2940952778, -0.0910577774, -0.3285749555, 0.0937719569, 0.0375562869, 0.3554031253, -0.2288434058, 0.2944490016, -0.442422241, -0.1805370301, -0.1387423277, -0.1259229183, 0.2781557441, -0.1078391895, 0.4058583081, -0.196103707, -0.1697499007, -0.3114445806, -0.1094645709, -0.0591657311, -0.3523538113, 0.4959716201, 0.1541586369, 0.0191138536, 0.0306139663, -0.1891185194, -0.1128220335, -0.0036657001, -0.0883892253, -0.2330773324, -0.5126238465, 0.1333561093, 0.233432889, 0.5337324142, 0.0982188657, 0.0723924562, -0.2063544095, 0.040302705, -0.1466144919, 0.2719173133, 0.2714771628, 0.1760984957, -0.0057533137, 0.2576836348, 0.120727405, -0.2755824327, -0.1310794502, -0.0162492003, -0.1007201597, -0.1133255437, -0.1385000944, 0.1380104125, -0.0858072042, -0.0821947232, -0.1708723456, -0.3416001797, 0.1951059103, -0.2087671906, 0.3060404956, -0.0774549246, -0.0922981203, -0.0460981131, 0.364161551, -0.1011655852, -0.031811744, 0.1295870245, -0.0777368918, 0.3581883609, 0.0935710669, 0.0184436012, -0.0247681793, 0.021632025, -0.5045363307, -0.0154079068, 0.218485266, 0.0654112697, 0.1145339236, -0.1634778678, -0.0516777523, 0.054404702, 0.1629260182, 0.2467235923, -0.1528827846, -0.0133639555, -0.1064777672, 0.1030095816, -0.1887695491, -0.2644705474, 0.0574014187, 0.1221702471, -0.2538682222, 0.3539162278, 0.3832464814, 0.0591590479, 0.0459611081, 0.0415379591, 0.3936085999, -0.2163314372, 0.4034713805, 0.4159605205, 0.0731048062, -0.2110336125, -0.1588378847, 0.3227529228, 0.1293346882, -0.0114393085, -0.1280553937, 0.3922552168, 0.5880977511, 0.1931768656, -0.6003848314, -0.359298408, -0.2539202273, 0.6064805984, -0.0488203429, 0.4539384842, 0.3565711081, 0.272052139, 0.2334134579, -0.15201208, -0.124699384, 0.4989546537, 0.0763917118, -0.0607322156, 0.1866457313, -0.1306659877, 0.1558773667, 0.1319538355, 0.0924910679, 0.2826767564, -0.2776646912, 0.2349213958, -0.0209259726, 0.1108352393, 0.4764108956, 0.1959999949, 0.4155324399, -0.1994318813, -0.1705280393, 0.2443345785, 0.2839076817, 0.0255325232, -0.0954849869, 0.1415085196, 0.1138871908, -0.3440548778, -0.0115642622, 0.0395420827, 0.0908909589, -0.1983008087, 0.4838028252, 0.0526314229, -0.1877350956, -0.0884464383, -0.0205577295, -0.0426028594, 0.1373262107, 0.2074400336, 0.2993079722, -0.2762263417, -0.0551264845, 0.2671682537, -0.3956129551, -0.0130175743, -0.0915186256, -0.1284044683, 0.0006954697, 0.4648070037, -0.1881522238, 0.0386159904, -0.1176981702, 0.0331622511, -0.2790229917, 0.1828392148, 0.2430693954, -0.3257077932, -0.3032853603, -0.1775821, -0.3610858917, -0.2281067371, -0.3321948647, 0.0023376816, 0.2257023901, 0.1908515245, -0.086664483, 0.133869499, 0.1663000733, -0.0277517587, -0.0381052494, 0.0489811264, -0.3745658696, -0.0142573733, 0.2151212543, 0.189098984, 0.0779753253, -0.4346442521, -0.3108429611, -0.1040526852, -0.0754252151, -0.0823543146, 0.274667412, 0.1471287459, 0.7400563359, 0.6187959313, -0.0363841318, -0.2140890807, 0.0963764638, -0.2081694156, -0.0401761346, -0.1646403968, -0.016813945, -0.1596771181, 0.2693033218, 0.2698893547, -0.4261139929, 0.2645618021, -0.3312881589, -0.2856917679, -0.1148094088, 0.0231925976, -0.2574587762, -0.0212330408, -0.0297408011, 0.528395772, 0.0099372584, 0.3121962249, 0.0479231924, 0.2261250615, -0.3168375194, -0.0664727464, 0.3342605829, 0.1714878529, -0.3807061911, 0.5087204576, 0.078047514, 0.0506943949, -0.0518042333, -0.3348765075, 0.3184891343, 0.2205946147, -0.3912208974, 0.0043197693, 0.2257649451, -0.0556484535, -0.0024562581, 0.1746975929, 0.2327561677, 0.4356974661, 0.0615056157, -0.2619684637, -0.1745365709 ]
https://github.com/huggingface/datasets/issues/2604
Add option to delete temporary files (e.g. extracted files) when loading dataset
> > > Do you confirm the extracted folder stays empty after reloading? Yes, I have the above mentioned assertion on the emptiness of the extracted folder: ```python assert sorted((cache_dir / "downloads" / "extracted").iterdir()) == [] ```
I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution.
37
Add option to delete temporary files (e.g. extracted files) when loading dataset I'm loading a dataset constituted of 44 GB of compressed JSON files. When loading the dataset with the JSON script, extracting the files create about 200 GB of uncompressed files before creating the 180GB of arrow cache tables Having a simple way to delete the extracted files after usage (or even better, to stream extraction/delete) would be nice to avoid disk cluter. I can maybe tackle this one in the JSON script unless you want a more general solution. > > > Do you confirm the extracted folder stays empty after reloading? Yes, I have the above mentioned assertion on the emptiness of the extracted folder: ```python assert sorted((cache_dir / "downloads" / "extracted").iterdir()) == [] ```
[ 0.041307278, -0.0485376976, -0.1449723691, 0.2248298228, -0.0466053151, 0.201789245, -0.1690856069, 0.3027114272, 0.2245081812, 0.1342939585, 0.0109499944, 0.4801860452, -0.2686918676, -0.1230432466, -0.1824235767, -0.0093838936, -0.234908849, 0.2767877579, -0.0039627482, 0.1206635088, -0.174475655, 0.0921203122, 0.0378461853, -0.196569398, 0.0525065027, -0.4080630839, 0.1274045259, -0.0839396045, -0.1356527656, -0.4438680708, 0.0438198447, 0.4613906741, 0.2651353776, 0.2756152749, -0.0001182811, -0.0052506961, 0.32141608, 0.0448973663, -0.4485214949, 0.0787610188, -0.1391088665, -0.1689034253, 0.2623525262, -0.1987498254, 0.2233511657, -0.3563092947, -0.293863833, -0.6617413163, 0.5167129636, -0.1608560681, 0.1268813163, 0.0683710128, -0.4738256335, 0.1933885068, 0.2738462985, 0.2409304678, -0.0916809291, 0.0385858938, 0.3927949965, 0.0045670639, 0.2632926106, 0.3668138981, -0.100236766, -0.21149683, 0.3557851613, 0.0218771417, -0.1460998803, -0.3214164376, 0.2498352975, -0.0287615862, 0.6228610873, -0.3944320977, -0.2275244445, -0.3693214953, 0.0613993816, -0.6855837703, 0.0714124516, 0.2646584809, -0.0256917179, 0.2382505536, -0.0805308744, -0.3740073442, -0.329285115, -0.1420145035, 0.561134994, -0.3349314332, -0.0679378882, -0.152385816, 0.4347505271, 0.1455315351, 0.2015198916, -0.246935755, -0.2134847939, 0.4398030937, -0.1156597212, -0.1684402227, -0.282651931, -0.2550823092, 0.1541435272, 0.2384484112, 0.3873397112, -0.0318552367, 0.1681100428, 0.0122859692, 0.3026498854, 0.4701262116, 0.0035453707, 0.0091399783, 0.1823691726, 0.0923325121, 0.0784322396, -0.0593407303, -0.0071670339, 0.0037683181, 0.356474191, -0.0054528364, -0.0003950069, -0.1036439314, -0.0663219541, 0.1109706834, 0.1465503275, -0.1764886975, 0.0581149086, 0.2550417483, 0.1115230173, 0.0797705799, 0.1175451949, 0.3180947602, -0.0062526953, -0.1697294861, 0.0901409611, 0.1622941047, -0.2889665365, -0.3153973222, 0.4541112185, -0.0812453553, 0.0166766532, -0.1212241948, -0.2307781875, 0.0247757863, 0.5310211182, -0.1226884276, 0.2855815589, 0.3619466424, -0.1461786181, -0.1604760587, -0.1923619956, -0.0846227035, -0.1570646167, 0.4940740466, -0.1157706454, -0.2477863133, -0.0082165375, 0.172128588, 0.0101683373, 0.2284959704, -0.5198006034, 0.0128178755, 0.1061696038, 0.0977832004, 0.0089794109, 0.3370686471, 0.0592685565, -0.166246742, -0.2143195122, 0.3602550626, -0.575424552, -0.078392975, -0.3162105381, -0.1381840408, 0.1419520229, 0.193499282, -0.0748171508, 0.2696569562, -0.2039482445, 0.150359422, 0.3257904947, -0.2086218894, -0.4496496916, 0.1334090233, 0.0934551433, 0.3512127995, 0.2929976881, 0.265737325, 0.3637496829, 0.0370409414, 0.0280232001, 0.3027049899, 0.0446931943, -0.0319463089, -0.3799365759, -0.3065942228, 0.1273218691, 0.2023748159, 0.0401776843, 0.0616227128, 0.1113652363, -0.030888658, 0.2415639758, 0.1242305636, 0.1132445633, 0.2096999139, 0.2101262808, -0.2184160799, -0.1411335021, 0.0758419633, -0.5337055922, 0.1161195412, -0.480255425, -0.2700079381, -0.3258731961, -0.3545672894, -0.0062887156, 0.0603995435, -0.257112205, 0.0709153414, 0.1001928598, -0.0983828828, 0.3363025784, 0.0053296797, -0.4017880857, 0.0917589292, -0.0026924422, 0.0702567399, -0.4425692856, 0.1793135405, 0.1284512728, -0.2546828091, -0.0913696885, 0.0198449511, -0.2252411544, -0.5050382018, -0.1748075336, 0.2506627142, 0.3291651905, 0.233689934, 0.2079574764, 0.2225165963, 0.1781662554, 0.2550552487, 0.0977900103, 0.2198264301, 0.0716380179, 0.0666633919, -0.359318465, 0.4581737816, -0.2268888205, -0.0226654094, -0.1261265725, -0.3892331421, 0.2734325528, -0.1001380682, 0.0814295188, -0.4512612522, 0.0787407607, 0.3533686399, -0.0491035022, 0.0033767403, 0.1296358407, -0.0848269612, -0.0107797319, -0.0596404336, -0.1538951397, 0.3206887543, -0.1086352021, -0.1442066282, 0.0110894535, 0.461460948, 0.4385591745, 0.1701882035, -0.101291135, -0.1148270145, 0.4571805, 0.0365351066, 0.1816866547, 0.0530164875, -0.0488279983, 0.3767081499, 0.1704260111, 0.0017937758, -0.3105229139, -0.0254257116, 0.0866793916, 0.2245716155, 0.2444341332, -0.1599861979, -0.2307391167, -0.3647023737, 0.4693768919, 0.1976754665, 0.2197479606, -0.0726309046, 0.4689161181, 0.1539281458, -0.3263407648, 0.0959922373, -0.03339196, 0.5423592925, -0.0170688424, -0.3114192188, -0.3771660924, -0.168110013, 0.2098542005, 0.0186220035, 0.3155293465, -0.1995817274, 0.4949296415, 0.0888494179, 0.0585311614, -0.0464110225, -0.0641170219, 0.0497560278, 0.2917633057, 0.0272739679, 0.1036750153, 0.2092250288, 0.0225744154, 0.1079354957, -0.0946437418, -0.311101675, -0.1514033973, 0.2132694274, 0.1755684018, 0.0509329624, -0.2745604217, -0.1111385673, -0.2817265093, -0.4231972694, 0.2254273146, 0.0398009717, 0.0331122689, 0.1260122955, 0.1688346416, -0.0610670783, 0.1147642955, 0.0811153501, -0.0450231656, -0.6299258471, 0.1831357777, -0.1912486702, -0.0007607184, 0.2425491065, -0.0675699338, -0.0057535865, 0.3238608837, -0.3674842417, -0.0564071238, -0.0332859606, 0.1807260513, -0.3109466136, -0.0223115589, 0.2386681437, 0.2549816072, -0.1006571427, -0.0001961867, 0.0948113054, 0.1612853408, 0.3627626002, 0.0858091936, 0.0152382068, 0.2255531847, 0.155260399, 0.457529068, -0.2319748402, 0.0894568339, 0.3778053224, 0.3623319268, 0.4830918014, -0.267452389, 0.1350194514, -0.4761627316, -0.0597168691, -0.163560912, 0.0615002364, 0.126832962, -0.1489728093, 0.1271563768, -0.2267465591, -0.2554058135, -0.1087198183, 0.3488436341, -0.2455916703, 0.0747068077, 0.0337016359, -0.2601057887, -0.1106655002, -0.0750345439, 0.0525459498, 0.1934338808, 0.355597049, -0.095962137, -0.2293903977, -0.0704647079, -0.2582457066, 0.2436960936, -0.1842193902, -0.1575855315, 0.0507778078, 0.0009021292, 0.1316083521, 0.1704189181, 0.4188082218, -0.1102034897, -0.0316153578, -0.043201156, -0.0491016954, -0.2723811865, 0.0143880453, -0.0436880291, 0.0513816774, 0.0062429314, 0.351780355, -0.2450857759, -0.1610230654, -0.262781769, 0.6113590002, -0.2914122343, -0.1461901516, -0.1679039598, -0.2758177817, -0.5205756426, 0.0137088178, 0.1024275199, -0.0699492395, 0.1287712306, -0.2261883765, -0.1165660843, -0.3135035932, 0.0955887437, 0.0261205174, 0.6730558872, -0.3106628358, 0.1338147819, -0.1499755532, 0.1353079528, 0.4575920999, 0.3512049615, -0.1634146422, 0.0324221253, -0.1253556162, -0.2660615146, 0.1117493138, 0.1593420953, -0.2497405261, 0.2355034202, -0.3442845047, 0.4965206087, -0.0019970546, -0.0435360186, -0.1301543713, -0.2528442144, -0.0031906858, -0.2554461062, 0.1030300036, -0.0219742339, -0.1552114338, 0.4835703671, -0.139262557, -0.2553928792, 0.5033289194, -0.0633164644, 1.1462255716, -0.0912552401, 0.0590807237, -0.0746246651, -0.2671489716, 0.294193089, -0.6101071239, 0.1928515881, -0.0238334499, -0.1474042237, 0.1032522917, -0.0321945846, 0.0073783128, 0.1978934556, -0.2577224076, 0.1724755317, -0.4044650495, -0.2458301932, -0.3127624691, 0.3859441578, -0.1336406916, -0.2389242798, -0.2229070961, 0.0304173566, 0.0703630671, 0.0096995272, -0.2433693707, -0.0699395761, 0.3483141363, -0.1029403806, 0.2205173671, -0.1050836891, -0.211561963, 0.3625522852, -0.1709129959, -0.169326067, -0.3747056127, 0.0147156203, -0.227747947, 0.066527307, 0.1771567166, 0.0191217866, -0.0063909683, -0.0273663159, -0.3108093143, 0.0840573609, -0.0238342006, -0.1177816764, 0.0023075633, 0.1461180151, -0.3547463715, -0.3214164078, 0.2032024562, 0.1750044227, -0.1204067543, 0.0108269975, -0.3190673292, -0.1161414534, -0.5043125153, 0.0812233388, 0.1145052835, 0.3476792872, -0.2278483361, 0.3304810822, -0.291590631, -0.2250875235, -0.2206316441, -0.0532795787, 0.3131300211, -0.1598393023, 0.3334144652, -0.2019820809, -0.2323345244, -0.4242374897, 0.0082438542, -0.0975855291, -0.2666520178, 0.4921967387, 0.0498117283, -0.1244075224, 0.0569742471, -0.1461437196, 0.0851466358, -0.008285665, -0.1706767231, -0.1901730001, -0.4423626065, 0.2361504287, 0.3011804521, 0.5027701259, 0.0333815664, -0.0045291935, -0.0241315756, 0.1231793612, -0.2732387483, 0.2419104278, 0.1690103263, 0.1864477396, -0.0108395023, 0.2098041177, 0.1146930903, -0.2905044258, -0.0424864031, 0.0280295294, -0.1194052622, -0.2052804083, -0.1194583774, 0.1100731343, -0.1223045215, -0.0890902877, -0.1279248446, -0.2548089921, 0.1514482349, -0.1967031956, 0.2219270021, -0.1408965141, -0.1152800694, -0.0382677205, 0.4236796796, -0.0534897707, -0.0667496696, 0.124428302, -0.1753026843, 0.3281989694, 0.0484314114, -0.0580319203, -0.0151758743, -0.0559297465, -0.3425912261, -0.0125505952, 0.1476259083, 0.0793361664, 0.0730558783, -0.0756691396, -0.0917990431, 0.0424773172, 0.1605762839, 0.3133683503, -0.1005903035, -0.027840456, -0.015204737, 0.2355524898, -0.3078089654, -0.2028858811, -0.0959706232, 0.0422858559, -0.1282797903, 0.3526953757, 0.2551882565, 0.0160209332, 0.0785965025, 0.1219500229, 0.4435404539, -0.2625607252, 0.3567341864, 0.2330169231, 0.0335212871, -0.2034561783, -0.1404130757, 0.2835746706, 0.0813074857, -0.0411899649, -0.1353513002, 0.4125168324, 0.5396201611, 0.2706169188, -0.5496684909, -0.2321302146, -0.3047358394, 0.56486094, -0.0636366531, 0.4833982289, 0.4112479091, 0.1609771997, 0.1994061023, -0.2693639994, -0.2112758905, 0.3925044537, 0.0376015715, 0.0151272882, 0.177945137, -0.1225661337, 0.1545843482, 0.0890966207, 0.1928015202, 0.3150663078, -0.0763056427, 0.3050920367, 0.040347252, 0.1444401741, 0.5403455496, 0.1726737618, 0.4122551084, -0.2008506358, -0.168328613, 0.3069995046, 0.2286300957, -0.0467792228, -0.0426461399, 0.0607594438, 0.2300115973, -0.4002388418, 0.0562205762, 0.0291168876, 0.0361650586, -0.280995965, 0.4738405943, 0.1764169484, -0.1633599997, -0.066500172, 0.0892371237, -0.1348400116, 0.2295844108, 0.1274811774, 0.1664564461, -0.1332194954, -0.0953398645, 0.3460353613, -0.4161979854, -0.0393492207, -0.1494924277, -0.2405461073, 0.0283944122, 0.3042203784, -0.1859049052, 0.0206842721, -0.0995512754, 0.0874011591, -0.1506768018, 0.2765626311, 0.2304379642, -0.3117170334, -0.2855136693, -0.2408074141, -0.3313231468, -0.1924170703, -0.3334590197, -0.0793616772, 0.2031908929, 0.2810611427, -0.0578947254, 0.2194301933, 0.2072456777, -0.043705713, -0.1320686191, 0.0096001709, -0.5555422306, 0.0932332948, 0.2999007702, 0.2253645062, 0.1715484411, -0.5085917115, -0.2904877365, -0.0740842894, 0.0490976125, -0.1099369749, 0.1973838955, 0.1196561977, 0.7663525939, 0.655572772, -0.0823289081, -0.2813946307, -0.0887068585, -0.2264491022, -0.0294563919, -0.1210759655, -0.0183539204, -0.1915732473, 0.461255312, 0.2556865811, -0.357971102, 0.1751772016, -0.2629184723, -0.2018051594, -0.1126139984, 0.1124968603, -0.2136931866, 0.0236824881, 0.0916535854, 0.466955632, -0.0725998431, 0.322886914, -0.0376904346, 0.1340640932, -0.3692816496, -0.1002735719, 0.3550424278, 0.2534770072, -0.409167707, 0.4840549529, 0.111258164, 0.0214012228, -0.0204093661, -0.2937961519, 0.3100437522, 0.138647154, -0.2728066444, -0.0513296202, 0.2545325458, -0.1060624942, -0.0809825063, 0.1383152902, 0.2301091254, 0.3491556346, 0.0669757873, -0.3895579278, -0.2239035517 ]
https://github.com/huggingface/datasets/issues/2598
Unable to download omp dataset
Hi @erikadistefano , thanks for reporting the issue. I have created a Pull Request that should fix it. Once merged into master, feel free to update your installed `datasets` library (either by installing it from our GitHub master branch or waiting until our next release) to be able to load omp dataset.
## Describe the bug The omp dataset cannot be downloaded because of a DuplicatedKeysError ## Steps to reproduce the bug from datasets import load_dataset omp = load_dataset('omp', 'posts_labeled') print(omp) ## Expected results This code should download the omp dataset and print the dictionary ## Actual results Downloading and preparing dataset omp/posts_labeled (download: 1.27 MiB, generated: 13.31 MiB, post-processed: Unknown size, total: 14.58 MiB) to /home/erika_distefano/.cache/huggingface/datasets/omp/posts_labeled/1.1.0/2fe5b067be3bff1d4588d5b0cbb9b5b22ae1b9d5b026a8ff572cd389f862735b... 0 examples [00:00, ? examples/s]2021-07-06 09:43:55.868815: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.11.0 Traceback (most recent call last): File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 990, in _prepare_split writer.write(example, key) File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 338, in write self.check_duplicate_keys() File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 349, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 3326 Keys should be unique and deterministic in nature During handling of the above exception, another exception occurred: Traceback (most recent call last): File "hf_datasets.py", line 32, in <module> omp = load_dataset('omp', 'posts_labeled') File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 992, in _prepare_split num_examples, num_bytes = writer.finalize() File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 409, in finalize self.check_duplicate_keys() File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 349, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 3326 Keys should be unique and deterministic in nature ## Environment info - `datasets` version: 1.8.0 - Platform: Ubuntu 18.04.4 LTS - Python version: 3.6.9 - PyArrow version: 3.0.0
52
Unable to download omp dataset ## Describe the bug The omp dataset cannot be downloaded because of a DuplicatedKeysError ## Steps to reproduce the bug from datasets import load_dataset omp = load_dataset('omp', 'posts_labeled') print(omp) ## Expected results This code should download the omp dataset and print the dictionary ## Actual results Downloading and preparing dataset omp/posts_labeled (download: 1.27 MiB, generated: 13.31 MiB, post-processed: Unknown size, total: 14.58 MiB) to /home/erika_distefano/.cache/huggingface/datasets/omp/posts_labeled/1.1.0/2fe5b067be3bff1d4588d5b0cbb9b5b22ae1b9d5b026a8ff572cd389f862735b... 0 examples [00:00, ? examples/s]2021-07-06 09:43:55.868815: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.11.0 Traceback (most recent call last): File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 990, in _prepare_split writer.write(example, key) File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 338, in write self.check_duplicate_keys() File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 349, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 3326 Keys should be unique and deterministic in nature During handling of the above exception, another exception occurred: Traceback (most recent call last): File "hf_datasets.py", line 32, in <module> omp = load_dataset('omp', 'posts_labeled') File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/builder.py", line 992, in _prepare_split num_examples, num_bytes = writer.finalize() File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 409, in finalize self.check_duplicate_keys() File "/home/erika_distefano/.local/lib/python3.6/site-packages/datasets/arrow_writer.py", line 349, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 3326 Keys should be unique and deterministic in nature ## Environment info - `datasets` version: 1.8.0 - Platform: Ubuntu 18.04.4 LTS - Python version: 3.6.9 - PyArrow version: 3.0.0 Hi @erikadistefano , thanks for reporting the issue. I have created a Pull Request that should fix it. Once merged into master, feel free to update your installed `datasets` library (either by installing it from our GitHub master branch or waiting until our next release) to be able to load omp dataset.
[ -0.2633761466, -0.1163595468, -0.08252877, 0.1005098149, 0.2311993688, -0.0217429902, 0.2052314132, 0.2830140293, 0.0483126529, 0.2094640285, -0.2077923119, 0.5524355173, -0.2091249973, 0.2359021604, 0.1329851002, -0.2663645148, -0.1581267565, 0.1020684019, -0.3342055976, -0.0926272944, -0.1104445755, 0.2932710946, -0.1778839529, 0.0904802233, 0.0324100889, -0.1805106699, -0.0745369568, -0.0469906405, -0.2778789103, -0.346378535, 0.0518866479, 0.0548789315, -0.1014625281, 0.3988806307, -0.0001096027, 0.1178160459, 0.0741746426, 0.017112596, -0.1459122747, -0.671962142, -0.1396108419, -0.2014087737, -0.0826204866, -0.36334306, 0.227239117, -0.2570009828, 0.0594070368, -0.2267067581, 0.4353803694, 0.3867658675, 0.2739731669, 0.1229684204, 0.5405080318, -0.0700388253, 0.1368202716, -0.1091347635, -0.1206635311, 0.3470195532, 0.058623828, 0.1539106965, 0.2576221228, 0.327262789, 0.0221025571, 0.2050425857, 0.0925241858, 0.0125786085, 0.1395574212, -0.2800305784, 0.1792055368, 0.2613037825, 0.6987870932, -0.3968587816, -0.2707766593, -0.1148354262, 0.2155596614, -0.1440117806, 0.1142743304, 0.1241136342, -0.1997845769, 0.0727659687, -0.1605891287, -0.0320139304, -0.2135593742, 0.1117547229, 0.0657201931, 0.2325627953, -0.0038948802, 0.216361776, 0.0000728527, -0.0169967804, -0.0831872895, -0.1148608774, 0.1384497136, 0.1905741394, -0.1152869463, -0.1532756984, -0.0530042686, -0.6436046958, 0.2569110394, 0.0238948651, 0.308226794, -0.0463235006, -0.2130435407, 0.0331316069, 0.1188270226, 0.2266348898, 0.149199456, 0.041293107, 0.1060216576, 0.1200549304, -0.2173784822, 0.0168233775, -0.0801326782, -0.1001487076, 0.2647672594, -0.0554643981, 0.5122630596, -0.160993576, -0.4319575727, 0.2365230471, -0.6948951483, -0.1090142801, -0.1088430882, 0.2770729661, -0.0793984458, -0.0746441931, 0.1808510423, 0.0832688659, -0.2342762351, -0.2156971544, -0.1566642523, 0.1546242684, -0.0371546857, -0.1352513283, 0.1518602073, 0.0900973007, 0.4250289202, 0.1070040688, 0.108874619, -0.5665567517, 0.2359186262, 0.1804819852, -0.3607872128, 0.2312490493, 0.1812457293, 0.1465977132, -0.0617690831, 0.0378141254, -0.1002752781, 0.2124567777, -0.1672935337, -0.4056835175, -0.0748658553, 0.3433823287, 0.0531350225, -0.2699446678, -0.1625708491, -0.0508225709, 0.0389542766, 0.0309833828, 0.0246785711, 0.0224645361, -0.2562177181, -0.2442115396, 0.1460746676, 0.26479128, -0.20397982, -0.0658722222, -0.1158688813, 0.0010876298, 0.2173049599, 0.2107516676, -0.2382168323, 0.4920542538, -0.1265225559, -0.0613778159, 0.3794512451, -0.2946856916, -0.5540879965, 0.1498634666, -0.3093818724, 0.0878859982, 0.2221278101, -0.0451890044, 0.1302657276, 0.1655368358, 0.1286421567, -0.1027144119, -0.1344433874, -0.1439592838, -0.3133154511, -0.0950465053, -0.2379139811, 0.0358377174, 0.1849699914, -0.0782919377, 0.1971245557, 0.2329879552, 0.3517866135, 0.0966918543, -0.0691677332, 0.2216298431, 0.3059598804, -0.3300423622, 0.1108260006, -0.2293466032, -0.3739762902, 0.3155353665, -0.0165563673, -0.1355929524, -0.0300445966, -0.1432410777, -0.5316035151, 0.1148186252, -0.0472934432, 0.0717968419, 0.1636959761, -0.2225445807, 0.1199739575, 0.1033540517, -0.1992001384, 0.3342382908, -0.2297878414, 0.1891274005, -0.0412657596, 0.0069936197, -0.3651165068, 0.0663698241, 0.1807126999, 0.1554021686, 0.1503353715, -0.1990827769, -0.1807878166, 0.403827548, -0.187367931, 0.1631097049, -0.1956849545, -0.0584171824, 0.2430953234, -0.247396782, -0.0698490739, -0.0453461334, 0.1733225584, 0.0142514007, -0.0770471916, 0.3409190774, 0.1212308183, -0.2174378633, 0.0157485418, 0.2041942924, 0.3598780036, -0.2917147279, 0.2594673932, -0.2255242765, 0.4635404944, -0.2363401502, 0.1157255545, 0.0373716094, -0.1989537179, 0.2993932366, 0.0630538613, 0.0063306959, 0.1100187525, -0.0354824215, 0.0314818472, 0.0334406383, -0.0733479485, 0.4630734921, 0.2423426211, 0.2329952717, 0.0839801282, 0.1448701322, -0.2224034518, -0.1442314386, 0.2096168548, 0.0638763681, 0.1202785224, 0.385488987, 0.0990731344, 0.1486278474, -0.2791571319, -0.2268596143, 0.4535357356, 0.3545293808, -0.0649733767, -0.0871004611, -0.4004330635, -0.2362252772, -0.2478106469, 0.0471528023, -0.062615864, -0.089380905, 0.0793109834, 0.3766824305, 0.0722199976, 0.077460669, -0.0053533893, 0.0080935648, -0.0871407762, 0.0769115388, -0.0113644572, -0.0330482014, -0.2678031623, 0.1273902059, 0.2780000269, -0.1478265375, 0.6885920167, 0.0321408436, -0.2163365036, -0.5223961473, -0.2491726726, 0.0373583809, 0.0187590718, -0.2935934067, 0.0439139195, -0.020934213, -0.1361764073, -0.2722957432, 0.019806128, -0.2420299798, -0.4843812287, 0.0103910984, -0.1160223112, -0.07208547, -0.2030245215, -0.5646250248, -0.2131233215, -0.2400032878, 0.1935489178, 0.0466994829, 0.3808448911, 0.242408067, -0.0673824623, 0.1859569699, 0.41959849, 0.1539193541, -0.1942105293, -0.2394599766, 0.1029659957, -0.2137128264, -0.2867951989, 0.0474880449, -0.1526742578, 0.3554934859, 0.0046595302, -0.6089310646, -0.1365871131, -0.214195922, 0.0243423656, -0.1862188578, -0.131326288, 0.3098134995, 0.0154804233, -0.1365218759, -0.2190905511, -0.062992774, 0.2879422605, 0.163559258, 0.3820871711, -0.1381601542, 0.5215932727, 0.2062056065, 0.5446686745, 0.2092478871, 0.0309621058, 0.2792492509, -0.004616796, 0.0192985572, -0.0550989062, -0.2558484077, 0.0054708719, -0.0831017494, 0.0095831035, 0.0092911329, -0.0893404633, -0.0721252486, -0.0446567796, 0.11755234, -0.3608144224, -0.3377100825, -0.1046722904, -0.4469050169, -0.0484969392, 0.2157611698, 0.0611392856, -0.2130889297, -0.0070500486, 0.0934163481, 0.0202060286, -0.0688988119, -0.0649518818, -0.1495746523, -0.019023858, -0.8308067322, 0.2251754999, 0.045099169, 0.2880032957, -0.1243754998, 0.3266195059, 0.3935656548, -0.1652687639, 0.3911046088, -0.1676348746, 0.2698667943, 0.0979365334, -0.0790564418, -0.1465238631, -0.1656596661, -0.2510336936, 0.0800313354, 0.4006588459, 0.3576405048, -0.3497655392, 0.1794053316, 0.3486421108, -0.0631891564, -0.1417799294, -0.2178065479, 0.082313478, -0.4743447006, -0.4810011983, -0.0521651842, 0.0439162515, 0.3531839848, 0.0911348462, -0.030413717, -0.0107764751, -0.0366413966, 0.1665461361, -0.0943753123, 0.1184209734, 0.1601198465, 0.6448459625, 0.091814898, -0.0352792814, 0.5881881118, 0.683915019, 0.0093936156, -0.5672091842, -0.1577607095, -0.1065873802, -0.1010120884, 0.1782249212, 0.0908019841, 0.0933464989, -0.20887357, -0.0646626055, 0.2587457001, 0.2643454671, 0.3142027259, 0.0723906234, -0.3763007224, -0.2506831288, 0.3191962838, -0.0817581341, -0.155201748, 0.5849034786, -0.0678473711, -0.1047823057, 0.4721505046, -0.0114795174, 0.7160588503, -0.398578614, -0.0927848145, 0.0731136724, -0.401765734, 0.6066355109, -0.2347762585, 0.1309985816, -0.2987135053, -0.2008705586, 0.0399288461, -0.0824519619, 0.0222165268, 0.0752063468, -0.1967362761, -0.0872489139, 0.1580343395, 0.0872748047, 0.320640862, 0.3674146533, -0.0319649167, -0.0848510638, 0.115005441, 0.1373307407, -0.2628632784, 0.4060239792, -0.0181211419, -0.0668046698, 0.1028446034, -0.2992661595, -0.4831861556, 0.2173603624, -0.1947449446, 0.318595767, -0.0621491969, -0.4355201125, 0.1259120703, 0.4583159089, 0.3842695057, 0.0739844218, -0.1031522602, 0.204892233, 0.2485312968, -0.1178387702, -0.1350047886, -0.1210527793, 0.1363637, -0.1844772846, -0.1647846699, -0.0278723314, 0.1377194375, -0.3701802492, 0.0673822016, 0.0858000219, 0.1778974533, 0.1031583771, 0.1012723669, 0.1136687249, -0.2541300952, -0.4362240136, 0.1229943261, -0.0469449088, -0.2431122065, 0.157725364, -0.0330423117, -0.4383397102, 0.0451808423, 0.4698193073, 0.3405237198, -0.0250850171, 0.5422226787, -0.1824438572, 0.0245188214, -0.2797748446, 0.1596972495, 0.0143837184, -0.1909030527, 0.2175255865, -0.2706027627, 0.1917581558, -0.0280451421, 0.2737778425, 0.295814693, 0.1645797491, 0.1127593741, -0.4255632162, -0.2509504855, 0.0301229917, -0.0641632751, 0.1341324151, 0.0876579285, 0.4184318185, -0.0506979749, 0.2553929389, -0.3356302679, 0.1482078284, -0.1318368465, -0.0594201721, 0.174611181, -0.1717109829, 0.0425736643, 0.071894072, 0.2041369379, 0.2437289357, -0.1099790409, -0.2864662409, -0.2727621794, 0.1219254285, -0.0179657377, -0.0088634407, -0.0567951202, -0.2603075802, -0.1260798126, 0.1398871243, -0.0748913586, 0.4401756525, 0.0784291476, -0.1644559652, 0.1582756788, 0.2488700897, -0.2460640222, -0.0389498658, -0.3369630277, 0.2750459313, 0.1759337783, 0.2675979137, 0.0292405058, -0.1288138628, -0.2296473086, -0.2728821039, -0.2131314725, -0.1464959383, 0.2435556799, -0.3018550873, -0.0421688929, 0.1519548893, 0.2460227013, 0.1520499587, -0.2486082762, -0.1632192135, 0.164435491, 0.2459692508, -0.3797387481, -0.2860783041, 0.203291297, 0.2655284107, 0.1033864394, 0.3162935972, 0.1810363084, -0.127656877, -0.0802389458, -0.0684388354, 0.2473834008, 0.0403769612, 0.0515416153, 0.2337289751, -0.0613504387, -0.1315997541, 0.2003403604, 0.1655679196, 0.2464242727, 0.2796700001, -0.3739535511, 0.1008227691, 0.1590701938, 0.254845351, 0.1725818664, -0.2700346708, 0.0207829662, 0.0539294146, -0.2069547176, 0.2022987604, 0.1390525252, 0.0993253067, -0.2250606865, -0.0641922057, -0.149812758, 0.1119478792, -0.1164995655, 0.0984502137, -0.4847097397, -0.1465498954, -0.2188891619, 0.1769059598, 0.0303366054, -0.1044947654, 0.2071796358, 0.098780863, -0.3320987523, -0.4219253063, -0.2849453092, 0.1937773973, 0.2210933864, -0.445843935, 0.2861192822, 0.1453129947, -0.2279460132, -0.1188645735, 0.4128703177, 0.2882544398, 0.1377204508, -0.0044575185, 0.1866993606, 0.2432623208, 0.0614094175, -0.0662977993, 0.1467689872, 0.3831850886, 0.1861081272, 0.2336899191, 0.0937461108, -0.1420443654, -0.0458601378, 0.4072279036, -0.0515643023, 0.026013473, 0.2018067837, -0.1265824884, -0.1134503409, -0.0411494523, 0.1652196497, -0.2065225244, -0.355045408, 0.0897857398, 0.0607543364, 0.1378696859, 0.0109457169, 0.1126450002, -0.1217449307, 0.1125570238, 0.3411008418, 0.2132983804, -0.4258606136, -0.161437124, -0.6133248806, 0.3812158406, -0.3473396003, -0.0025529694, 0.0322078131, 0.2755567133, -0.0445151925, 0.0474412106, 0.3256109953, 0.0206122622, -0.1362328082, 0.5303823948, -0.390448302, -0.079487063, 0.1565260589, -0.2918980122, -0.0134286545, -0.2815947235, 0.282553345, -0.2720335722, 0.0293646324, 0.0055841808, -0.0935337543, 0.2100780457, -0.070366919, 0.3803651631, 0.0622596592, 0.5195211172, -0.030838158, -0.1754385978, 0.0944978222, -0.0112741189, -0.3946166039, 0.1818334162, 0.3479683399, 0.2045310736, -0.0917685479, -0.0474525727, 0.0297554191, 0.4856363833, 0.2023918331, -0.1520929337, -0.3098872006, 0.0615712777, -0.2254936099, 0.1006585732, 0.008263289, 0.3684364557, 0.0600800291, 0.1921827942, -0.3377584815, -0.4812725484, 0.51017344, -0.2088740319, -0.0934796929, -0.1610666662, 0.3750956953, 0.0586279221, -0.0781520903, -0.4696169198, -0.1114213169, 0.3627082109, -0.4114662111, -0.2139760703, -0.0388944112, -0.0612027906, 0.037003722, -0.0616341047, 0.589338243, -0.0260268133, -0.2274932861, 0.287564069, -0.2218986005 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
Hi ! Do you have an example in mind that shows how this could be useful ?
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
17
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). Hi ! Do you have an example in mind that shows how this could be useful ?
[ -0.4188196957, -0.1118555441, -0.0211096797, 0.164978385, 0.4431478679, -0.0737168714, 0.5200479031, 0.0255108308, -0.0000911348, -0.0612897724, 0.1383577585, 0.3554062843, -0.3664283156, 0.1816853583, 0.1437229067, -0.1267320961, -0.0193030704, 0.3366392553, -0.3813782632, -0.1455221772, -0.1810208708, -0.3653590381, -0.1667020619, 0.0209225733, -0.18708767, -0.0778725669, -0.0324452929, -0.4812179804, -0.0334892757, -0.0890978724, 0.7275013924, 0.0496325567, -0.0156269297, 0.6457776427, -0.0001180408, -0.1917842031, 0.0963872224, -0.0768374279, 0.0740182698, -0.3926315904, -0.4702489078, -0.0930999294, 0.0384802818, -0.2704013586, -0.474088639, -0.0527885742, -0.0390679874, -0.0544613041, 0.4018724263, 0.138998121, 0.1720725447, -0.4391123354, -0.1384260058, -0.12190222, -0.0793527067, 0.4444636106, -0.2869961858, -0.1327413023, 0.1904753, 0.3042646945, 0.0484423749, -0.025628509, -0.0494293533, -0.1503826082, 0.7289842963, -0.1378199905, 0.1042368338, -0.4418712258, -0.1786394715, 0.444439441, 0.7537168264, -0.3168222904, -0.1675662398, -0.1634078473, 0.2200718522, 0.2761266232, -0.0231506675, 0.2009138465, -0.0280610118, 0.2865289152, -0.2226816863, -0.2574948668, -0.422495991, 0.0322741829, -0.5201646686, 0.1166954935, -0.0681911185, 0.0087466827, 0.0091335094, -0.0526340343, 0.2658057511, 0.0693863332, 0.1179425418, 0.1734821945, -0.1398364753, -0.5531542897, -0.3461992145, 0.2137342393, -0.1130963862, -0.0050093965, -0.1444608569, -0.1590378881, 0.100918822, -0.0037086359, -0.0453526601, 0.2560716867, 0.0444241874, 0.2834720314, 0.1548121721, -0.3329989016, -0.1865013689, 0.1489244699, 0.0044970782, -0.1453437954, 0.1278155446, 0.0848206952, 0.0767355114, -0.15198268, 0.0595553145, -0.2803955376, -0.0193672702, 0.04588449, -0.1318852305, 0.0430737101, 0.1812556684, 0.079200916, 0.1768166721, 0.2458325028, 0.2344775498, -0.2285811305, 0.0617156662, 0.2511282861, -0.2971735895, -0.1399852484, 0.037542481, 0.1639116853, -0.2676418126, 0.0062305019, -0.1234984547, 0.380490154, -0.0001207551, -0.2622525394, 0.1476203054, 0.2959809601, -0.551916182, -0.2185192704, 0.1582683474, -0.1785984337, -0.2252628207, 0.4631130695, -0.1985178739, 0.0231162235, 0.0901267007, 0.17781353, -0.0336978175, 0.0682862476, -0.1685473174, 0.3371282816, 0.044505354, -0.1100767627, 0.1710586995, -0.3961258531, -0.104737021, -0.1422396749, -0.0999874398, 0.0916869938, -0.6140991449, -0.3623419404, -0.1760549992, -0.0748705044, 0.117358081, 0.0689146072, -0.2285487205, 0.3040565252, -0.141266644, -0.1797798127, 0.6639192104, 0.0727627575, -0.2718644738, 0.2040672153, -0.5375029445, -0.134246096, 0.1489093751, 0.3913098574, 0.2420574278, -0.2189548165, -0.5890004635, 0.23511599, -0.0481769852, -0.1363938004, 0.0984598696, -0.1721861064, 0.5869361162, 0.0207448844, 0.2949223816, 0.4651508629, 0.1826669872, 0.5072153807, -0.1435583532, -0.371157676, 0.2393030226, -0.0810985044, 0.4471268058, -0.0450609475, 0.0037965288, -0.393086642, -0.0073087607, -0.1223516017, -0.0850005969, 0.1331424117, 0.3702484071, -0.0906624421, 0.0221195593, -0.3194076121, -0.1461206079, -0.1193115115, 0.1447148621, -0.399989754, 0.2801670134, -0.265173614, -0.1051316559, 0.4493666589, 0.0060808198, 0.060068354, -0.4010300636, 0.2931922972, 0.0819304362, 0.2227482349, -0.3591736853, -0.0449867286, -0.1441906244, -0.1969311088, -0.1015446261, -0.1836636364, -0.0584040433, -0.0512783863, 0.0085196067, 0.4392886758, 0.2763769627, -0.4933919907, 0.489682585, 0.0793197453, 0.0957186222, -0.1939777434, -0.3488173783, 0.472055614, -0.1501278132, 0.2503138781, -0.3207319975, 0.0362433083, 0.1863242835, -0.433570236, -0.1252279133, -0.0907753855, -0.0459953435, 0.02808672, 0.1391777098, 0.2028849572, 0.0194784086, -0.1024754494, -0.0012697969, -0.0949834883, 0.2904399335, 0.4638144672, -0.2357067913, 0.2653409243, -0.2432360649, 0.5296254754, 0.6370879412, 0.1556208581, -0.2533011138, 0.2274796516, 0.0958715007, -0.1503845453, 0.2806730568, -0.0943116173, 0.2716950178, 0.0350977518, -0.157145679, 0.1369213909, 0.0707580745, -0.3582982421, -0.0043881759, 0.1940807253, -0.107788682, 0.0459180325, -0.1841412038, -0.097376965, -0.3303301334, 0.0659510717, 0.0720969513, 0.1469985992, -0.0945238695, -0.0728322566, 0.2812083662, 0.0661742166, -0.0833276808, 0.2607306838, 0.2367434651, -0.057936497, -0.1471122652, -0.0701682046, 0.077769354, 0.1580583304, -0.1741779447, 0.0169900525, 0.2542794049, -0.3422031999, 0.1313806623, -0.0990183577, -0.4404468536, -0.0119380103, 0.0566027574, 0.1673404723, 0.3422212601, 0.0247854125, -0.0896839797, 0.0493688658, -0.0207103938, 0.0460864678, -0.1860037595, -0.0157510005, -0.2754969001, 0.2332954407, 0.0840449259, -0.2450778335, -0.2703364193, -0.1052668244, 0.1708028764, 0.0575784482, -0.0584609434, 0.0116340853, 0.0825022236, -0.0196998548, 0.0160592962, 0.1571200341, -0.0940389037, 0.0360754021, 0.2773392498, 0.0892529041, -0.1180109829, -0.1655024588, -0.2728355825, -0.0858477354, 0.2958502769, -0.311000526, 0.0010258437, -0.1123811305, 0.0221875776, -0.0838602334, -0.1456453204, 0.5014488101, 0.0509761311, 0.0237527825, -0.0218030624, 0.065758042, -0.0743145198, 0.1865723133, 0.3480322659, 0.176613912, 0.4494115114, -0.0166081283, 0.2254579514, -0.3424138725, -0.438171953, -0.2640431523, 0.0538091399, -0.0042796051, 0.107906051, -0.4174183011, 0.243674323, 0.231160596, -0.304921031, -0.0121197356, -0.0834344625, -0.2215757072, -0.1662246287, -0.2121593952, 0.047875423, -0.0702747852, 0.0171243139, -0.2095746994, -0.0629359409, -0.1967490464, -0.0494223684, 0.1260918379, -0.1038438603, 0.0292487219, 0.5218979716, 0.1103509441, -0.0452303179, -0.0242134947, 0.0248743221, 0.2543193996, -0.098789148, -0.2955641448, 0.0200695023, -0.0834713206, 0.0568514504, -0.0046997038, 0.1922796667, 0.7796651125, -0.055133868, 0.1961562037, 0.1951415837, -0.3799059987, -0.202496618, 0.0559913851, -0.2858711481, -0.1767362505, 0.0113887051, 0.0822414383, -0.0798511878, -0.1225581318, 0.105064936, 0.276181221, -0.2947767079, -0.3678513467, 0.1842410117, 0.008705778, -0.256067723, 0.2149042636, 0.0323031023, -0.1509323567, -0.1219076663, -0.0597332604, -0.3734529614, -0.0020949626, 0.3103733659, -0.1419563442, -0.1717826724, -0.0993548781, 0.218359381, 0.000212736, 0.2302402407, 0.0964575782, -0.0325964093, 0.2010593116, -0.5295644999, 0.04635318, 0.0103048589, 0.2909169793, -0.2127968371, 0.0490578003, -0.0731624439, -0.0993529707, 0.2489528954, -0.1713677347, 0.0567142218, -0.0679486021, 0.0433363281, -0.2862590551, -0.39913553, 0.317052573, 0.1924043, -0.1370121241, -0.0299175922, -0.029586101, -0.5042585135, 0.1977589428, 0.5593019128, 0.9863248467, 0.1159869358, 0.1385222077, -0.1127608493, -0.0312076807, 0.4583590329, -0.1164899766, -0.0582191758, -0.2965384126, -0.3926325142, -0.2365935743, -0.3042211235, 0.3992500901, 0.5360764861, -0.5129197836, 0.2585290372, -0.371717602, -0.0838066339, 0.2241663188, -0.1047997028, 0.3480711281, -0.3577433527, 0.0461035594, 0.1679157317, -0.0882539079, 0.260130465, 0.0308571979, -0.1675020456, -0.0712006018, 0.2808561921, -0.0880770236, -0.0689703822, -0.2679657936, -0.1455812305, -0.2007422149, -0.4343777001, 0.8832833171, 0.375526607, 0.2161359042, 0.2257458419, -0.1638486534, 0.0465079434, -0.0744040459, 0.3089937866, 0.000289313, -0.184287414, 0.4555923641, -0.0458960012, -0.0858467519, 0.068266429, 0.0122594004, -0.118693389, 0.2134866267, -0.1756023765, 0.1199540719, -0.3734204173, -0.0196653455, 0.0330975093, 0.0182804056, -0.0086922431, 0.1461737007, 0.3212882876, -0.0359909311, 0.4378372729, 0.3599594831, -0.2925545871, -0.0926594511, 0.1525411159, 0.5887401104, 0.0593944602, 0.1273663193, -0.3841596842, -0.3116021156, -0.3853751421, 0.269480288, -0.0588148832, -0.2542476952, 0.2276105285, 0.0699303299, 0.0229324084, -0.0068978863, -0.3377263844, 0.2592758536, 0.2940544188, -0.3691019118, -0.4159673154, -0.3563142717, -0.2046509236, 0.0908981785, 0.0709823743, -0.0747280121, 0.195005402, 0.3595223725, 0.0223159008, -0.3131050169, -0.0536867902, 0.0048856959, 0.11693082, 0.1778047979, 0.1654967368, -0.3920322955, 0.1679167747, 0.0183159746, -0.0933927447, -0.1448340416, -0.1975417435, -0.1709585786, 0.1506625116, 0.1506832987, 0.2185855806, -0.1473585367, 0.0401094854, -0.0144196013, 0.109264724, -0.0177836549, 0.229098171, -0.0577836186, 0.3751972616, 0.4489992559, -0.2798544466, -0.4648521543, 0.0532286316, 0.0720135346, -0.0067780768, -0.1587939113, 0.2750160396, 0.0991029367, 0.0945453495, -0.5071002841, 0.0320366547, 0.0995942205, -0.061590746, 0.4186535478, -0.0078993952, 0.4520024657, 0.5059016943, -0.044163581, 0.0501448512, -0.1926657557, 0.0139050791, 0.2509204447, 0.1545982361, -0.3792208433, 0.1363565028, 0.2737796307, 0.0160395801, -0.0480938591, 0.2951914668, -0.0435870066, 0.0883006901, -0.0707060695, -0.1038782746, 0.4184021354, -0.3603195548, 0.2763779163, 0.6955443025, -0.2741846144, -0.000025445, 0.5876776576, 0.0294153113, -0.0534791872, 0.3487199843, 0.1648124158, 0.3593230844, 0.1140986755, -0.076352194, 0.2673563361, 0.2705790997, 0.118570447, 0.6662788391, -0.0775699168, -0.1824606061, 0.1305553019, -0.1851771623, -0.0366713256, -0.240472585, -0.0460642762, 0.1559821069, -0.2395359129, 0.3208652139, -0.2013943493, -0.0566177703, 0.1262226552, -0.3402043581, -0.1603168845, -0.2548779845, 0.3563575745, 0.1266771406, 0.0537596568, 0.2256075591, 0.3504412174, 0.0669029504, 0.0871790424, -0.0889266506, -0.259640187, 0.1178574786, 0.1217090338, 0.1699085236, 0.5181458592, 0.0359259211, 0.1865807921, -0.0496047139, 0.0585878231, -0.1713822186, -0.2473455667, 0.0949907228, 0.2725588083, -0.2967208028, -0.1580559611, 0.1844719797, 0.2032930553, -0.1213300452, 0.4222790897, 0.0366926156, 0.2091030627, -0.2514106929, 0.3976300359, 0.3067565858, -0.1823134571, -0.1009438261, 0.199840039, 0.03937589, -0.0032947182, 0.4314259291, -0.4219203591, -0.0242354292, -0.0415410735, 0.0387021601, 0.2140876353, 0.1312822402, 0.0181331914, 0.014985024, -0.0151187526, 0.049783159, -0.3194947243, 0.2027308792, 0.1657826155, 0.0185094345, -0.1336501241, -0.2075475901, 0.0096983798, 0.2501332462, 0.0554254279, -0.1713772863, -0.141038686, 0.2018370628, -0.036541786, -0.0278337635, 0.1539264023, 0.4283739328, 0.0223403834, -0.2247020155, 0.0716223121, 0.2997148335, 0.0264117885, -0.0329233781, 0.3513909876, 0.0385435373, 0.2977879941, 0.2075157315, 0.0420181714, 0.6284480095, -0.0537591651, 0.3799884915, 0.51679039, -0.0332606286, -0.2373846769, 0.2958485186, 0.2015538961, -0.2141614407, -0.2449317425, -0.1070014536, 0.1380838603, -0.2363910973, 0.0062235198, 0.0604801103, -0.8246732354, 0.0415499955, -0.1709614545, -0.1113105118, 0.1197766811, 0.0274882168, -0.0676509216, -0.0671233609, -0.0524833649, -0.1298252791, 0.2856086791, 0.0781060979, -0.3340086937, -0.172407195, -0.0688870698, -0.3314647973, 0.1222175211, -0.0650871024, -0.0006406648, 0.4729183912, -0.0696836337, 0.3831115067, 0.0582940318, -0.0738811865, -0.0992477536, -0.2302221656, 0.6369763613, -0.2621820569, 0.0422273576, -0.2269107103, -0.0962079316 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
Example: Merge 2 datasets into one datasets Label extraction from dataset dataset(text, label) —> dataset(text, newlabel) TextCleaning. For image dataset, Transformation are easier (ie linear algebra). > On Jul 6, 2021, at 17:39, Quentin Lhoest ***@***.***> wrote: > >  > Hi ! Do you have an example in mind that shows how this could be useful ? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
83
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). Example: Merge 2 datasets into one datasets Label extraction from dataset dataset(text, label) —> dataset(text, newlabel) TextCleaning. For image dataset, Transformation are easier (ie linear algebra). > On Jul 6, 2021, at 17:39, Quentin Lhoest ***@***.***> wrote: > >  > Hi ! Do you have an example in mind that shows how this could be useful ? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
[ -0.4854317307, 0.1529307961, -0.0886403918, 0.1896276474, 0.4006464481, 0.1068503633, 0.5075283647, 0.1244742274, -0.0116828959, -0.062044438, 0.0533829257, 0.3345319331, -0.3507429063, 0.1875823438, 0.0721606761, -0.1314891726, -0.0283113681, 0.3180098534, -0.4435119629, -0.1215899289, -0.2172261477, -0.2452005148, -0.2043323964, -0.0350174643, -0.2736258805, -0.1387135237, -0.1118710563, -0.274432838, -0.1285723895, 0.0032412135, 0.5669193864, 0.2155505568, -0.0712962151, 0.565695703, -0.0001113632, -0.1279024482, 0.1100603938, -0.0080488762, -0.136292249, -0.3996148109, -0.4163696766, -0.0603966899, -0.0396464653, -0.2917911112, -0.2664454877, -0.1854076833, 0.0237758383, -0.064514935, 0.4134103954, 0.075138554, 0.2136537731, -0.4207111597, -0.0813197047, -0.1326421499, -0.0725328475, 0.4323447645, -0.157356441, -0.0739577636, 0.255933553, 0.2774941623, -0.0052239173, 0.2231014222, -0.1098079011, -0.211847499, 0.6597431302, -0.0868727714, -0.0518903844, -0.3680222929, -0.1720125973, 0.3020714521, 0.6202865839, -0.4165469408, -0.2718208134, -0.2353087515, 0.3179523647, 0.1380978525, -0.0936644971, 0.153603062, -0.029152995, 0.2862279117, -0.301394105, -0.3070757091, -0.3126644492, 0.0769141391, -0.3927912414, 0.1838333458, -0.018702507, 0.0787062943, 0.0261068828, -0.0120616388, 0.278621763, 0.0286744907, 0.1734904498, 0.130250752, -0.1575931162, -0.4430968463, -0.3470888734, -0.0164716151, -0.1724017411, 0.0820527673, -0.0669373572, -0.1407572329, 0.0001510732, 0.0678743348, -0.0976170301, 0.2801892757, 0.0756248608, 0.2835095227, 0.0927253067, -0.2981126904, -0.1342790127, 0.2335572392, -0.1500682533, -0.1828359514, 0.0823878273, 0.0751635507, 0.0881750137, 0.0607570261, 0.0079322644, -0.3705036342, 0.0102079464, 0.0104208086, -0.1592566967, 0.0114267822, 0.213536039, 0.0537418053, 0.2268780321, 0.1977370381, 0.2781530321, -0.2910180688, 0.003311754, 0.3380631208, -0.3129455447, -0.155381307, 0.0573051237, 0.0989247113, -0.3175147474, -0.0068465364, -0.2444904149, 0.3860973716, -0.0104768341, -0.2480304092, 0.2561533749, 0.1999245584, -0.4474494755, -0.130898416, 0.1515338719, -0.2037790716, -0.2086183727, 0.3421452045, -0.1957417578, 0.1629635394, 0.0655770972, 0.2365573198, 0.1148015261, 0.0316508301, -0.2980534136, 0.3904444277, 0.0113533521, -0.0630762279, 0.1027774289, -0.3152867556, -0.0638456643, -0.0778257027, -0.0714210719, 0.1344808191, -0.6597017646, -0.3752607107, -0.0892389864, -0.0400434583, 0.0257389247, 0.1785102487, -0.167937696, 0.3726214767, -0.1166769341, -0.204283759, 0.7212476134, -0.0659181401, -0.1949129999, 0.1581441611, -0.5203282833, -0.1914048195, 0.1640528291, 0.3704347014, 0.2596186697, -0.1747302562, -0.4552612901, 0.3597725928, -0.1351937354, -0.1334808767, 0.1524549723, -0.2831425667, 0.4489604533, 0.1342545003, 0.272726506, 0.2775529921, 0.0847700164, 0.415812403, -0.1401903778, -0.440405041, 0.2843724191, 0.0401459932, 0.304477036, -0.1269483268, -0.0328503363, -0.3859139979, -0.1105206236, -0.1262239814, 0.047856763, 0.1563088447, 0.2692359984, -0.0514911823, -0.0509790294, -0.2854635715, -0.1628869921, -0.2248650938, 0.2087795436, -0.3400036693, 0.2504788339, -0.3147004545, -0.074570097, 0.5503135324, 0.037045598, 0.2137279958, -0.501619339, 0.3224229813, 0.0449387208, 0.202238813, -0.3285853267, 0.0471547209, -0.2616764605, -0.2003246993, 0.0024981343, -0.1345223933, -0.0960845798, -0.0462610759, 0.091624707, 0.3488050699, 0.3109097183, -0.4374357164, 0.3571304679, -0.0832563266, 0.1965891272, -0.1748177856, -0.4034097195, 0.3144295514, -0.2289667577, 0.2899329364, -0.1774757504, 0.0508710742, 0.1357771605, -0.355078578, -0.1169616207, -0.1495448351, -0.0605593622, -0.007577409, 0.2507332861, 0.2566906512, 0.0911046788, -0.0859349668, 0.1485473812, -0.0672261044, 0.2210756093, 0.3868329823, -0.2876420319, 0.2263995707, -0.2082078904, 0.558770299, 0.4472162127, 0.2356889248, -0.2560156882, 0.230482921, 0.102155149, -0.0736400709, 0.2621408403, 0.0267601963, 0.4427094162, -0.0132769449, -0.0441401862, 0.2116562724, 0.0442383848, -0.4906044602, 0.080586575, 0.1066003293, -0.020708859, 0.0048886542, -0.1806953102, -0.1815153658, -0.4042203724, 0.1540662497, 0.0376803242, -0.0611130856, -0.0880035907, -0.0729024261, 0.1077068299, 0.1231754795, 0.0667175129, 0.2231046557, 0.2378366143, -0.1540001631, -0.0582207367, -0.1108327135, 0.05761455, 0.1907510757, -0.0666937903, 0.0429163463, 0.3864462972, -0.3671723306, 0.2392289788, -0.1411261111, -0.5004367828, 0.1360854954, -0.0246934686, 0.0368475504, 0.3780709803, -0.0869701505, -0.1010199413, -0.0403239056, 0.0226905346, 0.0577005409, -0.2035495937, 0.0045405622, -0.2300646752, 0.079911001, 0.043502029, -0.2263132185, -0.3054023087, -0.2169417143, 0.2214498967, -0.0128984367, -0.0439192913, 0.0234340448, 0.1507757008, 0.0317599438, -0.0810161531, 0.1676725298, -0.0809063986, 0.0390490964, 0.1736204326, 0.1272811294, -0.0919613093, -0.2783717513, -0.3630924523, 0.0234742258, 0.317317009, -0.2352731377, 0.0146708284, -0.145516023, 0.0455430113, -0.007651906, -0.0787571818, 0.5167155266, 0.1359910816, -0.0250538252, -0.0448867194, 0.0040795221, -0.0832193568, 0.04592878, 0.1290344894, 0.0709372535, 0.3557412028, 0.0434623621, 0.2524470985, -0.1993197948, -0.3729278147, -0.2999460101, 0.1988697946, 0.0998335704, 0.0715790316, -0.4846234024, 0.2665571868, 0.1256869137, -0.280389756, -0.06436342, -0.072648257, -0.1584721655, -0.1652668715, -0.0832463577, -0.1282411963, -0.1157136708, 0.1214830428, -0.1738651246, -0.060697075, -0.1348021328, -0.1101045758, 0.0693340153, 0.0560913235, 0.0124646258, 0.4534651935, 0.0439970717, -0.0185621995, -0.1429926157, 0.0537806414, 0.2013120055, -0.0198410898, -0.1649230868, -0.0192359425, -0.0233306978, 0.0138598923, -0.1604787707, 0.1167047918, 0.8743852377, -0.1053466946, 0.0392139405, 0.1754387617, -0.3215913177, -0.2480321527, 0.0342377201, -0.3715791404, -0.3055799901, 0.0614507385, 0.2085669935, -0.1138120741, -0.1256840229, 0.3286094666, 0.3007800579, -0.1876239181, -0.2429513037, 0.2264591455, -0.0608754009, -0.3976772428, 0.0634019002, 0.0986592099, 0.018280521, -0.1287333816, -0.0159143582, -0.3286940753, -0.0786561519, 0.3200694919, -0.0887116864, -0.1668913662, -0.0883675218, 0.1926544756, -0.0395863429, 0.2257262617, 0.1378196627, 0.1193490699, 0.0274984799, -0.6537034512, 0.1715271622, 0.0505668931, 0.4162430763, -0.1999129206, 0.0344758704, -0.1658145338, -0.0921521485, 0.2252514362, -0.2954199314, 0.1215907931, -0.0343763418, 0.1489759237, -0.4204344749, -0.3190878034, 0.297290206, 0.2758481801, -0.1264445633, 0.0362370349, -0.107056655, -0.4972881377, 0.2006772608, 0.4948276579, 0.8818395138, -0.0173555594, 0.2364848703, -0.048570767, -0.2004307508, 0.5380060077, -0.0032377739, -0.0201330092, -0.2822465003, -0.3579152822, -0.154564172, -0.269338578, 0.3293361664, 0.5125811696, -0.5189644694, 0.2395552695, -0.2172645628, -0.005756407, 0.1921662241, 0.0804131404, 0.275834173, -0.5404217243, 0.0213343836, 0.184538424, -0.0028102584, 0.1811760217, -0.0103379898, -0.1743305176, -0.1444303244, 0.2676255703, -0.1415924132, -0.0099301701, -0.2488069087, -0.0028004355, -0.163505584, -0.3484614789, 0.6934313774, 0.2555442452, 0.2147722989, 0.2217786312, -0.0578559563, -0.0136011746, -0.1644588858, 0.3608772755, 0.0370066576, -0.3177411854, 0.5784924626, 0.0348818004, 0.0611875467, 0.0403621942, 0.0455643907, -0.0843531564, 0.1005492657, -0.1519430131, 0.1185914204, -0.3325746059, -0.0250460207, 0.1056228802, -0.009645558, -0.1124951914, 0.1491446793, 0.2361215204, 0.0416294932, 0.2985835969, 0.2907436788, -0.3393579125, -0.0290110875, 0.1557558924, 0.5326727629, -0.0060439189, 0.2088623792, -0.269905895, -0.2365811616, -0.4026525617, 0.2671614587, 0.1195408106, -0.3909741342, 0.3062414825, -0.0393647775, -0.0612292662, 0.0492316969, -0.3851855993, 0.3085522652, 0.2617303729, -0.2858163714, -0.3528088927, -0.3455173671, -0.0381410755, 0.1107474416, 0.1079318076, 0.0000761149, 0.3572801352, 0.244305715, 0.0375877954, -0.3780191541, -0.075351961, -0.025206374, 0.0798529387, 0.1635489017, 0.0765360668, -0.3550305963, 0.1056525186, 0.0826993287, -0.0714536235, -0.1629396528, -0.2778497636, -0.173382923, 0.121046409, 0.0908097997, 0.2292823941, -0.0004704673, 0.1254820973, -0.0314023793, -0.0468615554, 0.0633701086, 0.0709618479, -0.0459408388, 0.2866382003, 0.2412425131, -0.1901993454, -0.3151240349, 0.0731051788, 0.0351769663, -0.0556339808, -0.1957445145, 0.3596335948, 0.1982059926, 0.091690734, -0.4791554809, 0.0773007721, 0.164524883, -0.089755863, 0.3933244944, -0.0731324181, 0.3916721046, 0.4886704683, 0.086658664, -0.0632251203, -0.1646958441, 0.0011306632, 0.1072955951, 0.2124186307, -0.392354995, 0.1034421921, 0.276742965, 0.0379572846, 0.032694459, 0.2100824714, -0.134596467, 0.2381769866, -0.1169753298, -0.0781985596, 0.4796937704, -0.3370960951, 0.3642077744, 0.6463415027, -0.1479433775, 0.0617973767, 0.4965006113, 0.071171619, -0.0195745267, 0.3492746651, 0.0980383381, 0.4678317308, 0.0056315344, -0.0061908392, 0.4555325806, 0.177516669, 0.1988164634, 0.6114427447, -0.0600668304, -0.0282988064, 0.0239460524, -0.1431374401, -0.0567236654, -0.3246425688, 0.0277536381, 0.2988836765, -0.2211221159, 0.3321265876, -0.139183715, -0.0811675787, 0.0764173269, -0.3467304409, -0.2239055037, -0.3499317765, 0.3692117929, 0.0660326481, -0.0369878486, 0.0641426668, 0.167666927, -0.0217834208, 0.0589331836, -0.1439837664, -0.1938710362, 0.1554631293, 0.0918553025, 0.1143857092, 0.6183264256, 0.1413580775, 0.2268329263, -0.0266367644, 0.0454732515, -0.2194776237, -0.2695863843, -0.029579917, 0.2105145454, -0.2484851778, -0.1852519065, 0.2631674707, 0.2606520355, -0.1493425369, 0.2405786961, 0.0895512328, 0.1632007658, -0.2439079881, 0.257274121, 0.1971981674, -0.152150616, -0.0466413684, 0.197221458, -0.1380618811, -0.0838320851, 0.5476490259, -0.4606725276, 0.0192349721, 0.0142848874, 0.0761795714, 0.1886263639, 0.2115137428, 0.1003270224, -0.0400604829, -0.0238131136, 0.0371472798, -0.3171056211, 0.083265081, 0.146930173, -0.0947079808, -0.1891989112, -0.1004270315, 0.1086467579, 0.3245390058, 0.0671723187, -0.1424290091, -0.1395658702, 0.1300493628, -0.1766141951, -0.0718242005, 0.3381153345, 0.2639376521, 0.0775396526, -0.3354123235, 0.0684432387, 0.32689026, 0.0650980547, -0.0475226082, 0.3619348109, 0.1386045069, 0.1587193906, 0.206741482, 0.0901312158, 0.5049051642, -0.0686621964, 0.1637925655, 0.3704546392, -0.0732801259, -0.2627441585, 0.3999932706, 0.2048807591, -0.0300375726, -0.252940774, -0.1391842216, 0.1666021198, -0.1899747401, 0.0365461446, 0.0669791028, -0.8383823633, 0.0600657798, -0.1159211174, -0.0091714663, 0.1660303473, 0.0594984926, 0.0017782197, -0.0214663167, -0.0139744701, -0.3064362109, 0.3038735092, 0.0405733064, -0.3939805329, -0.1428618282, -0.1634251922, -0.2189143598, 0.1842782199, -0.0942624658, 0.0096320854, 0.4470910132, -0.1043235883, 0.3353060186, 0.2366404533, 0.0734260827, 0.0055566588, -0.2274941057, 0.5061410666, -0.3077507615, -0.1795010567, -0.2111507803, -0.1740985662 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
There are already a few transformations that you can apply on a dataset using methods like `dataset.map()`. You can find examples in the documentation here: https://huggingface.co/docs/datasets/processing.html You can merge two datasets with `concatenate_datasets()` or do label extraction with `dataset.map()` for example
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
41
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). There are already a few transformations that you can apply on a dataset using methods like `dataset.map()`. You can find examples in the documentation here: https://huggingface.co/docs/datasets/processing.html You can merge two datasets with `concatenate_datasets()` or do label extraction with `dataset.map()` for example
[ -0.4685246944, -0.230680421, -0.0531574041, 0.1410392523, 0.3790984452, -0.1987149417, 0.3367204964, 0.1695586294, 0.1045029014, 0.1931906343, -0.1746758819, 0.2893975973, -0.2316430658, 0.5593627095, 0.0868366882, -0.2147053182, -0.1576153487, 0.3244948089, -0.4510014057, -0.0933914408, -0.204513818, -0.1517910212, 0.0859738886, 0.0435049497, -0.2052291036, -0.2564643919, -0.0503219329, -0.1808670759, -0.0929278135, -0.0206907019, 0.3956407011, 0.2275129557, -0.1231825203, 0.4610512257, -0.0000994468, -0.1074682996, -0.1551018506, -0.0925965458, 0.1021685302, -0.1681923419, -0.1254187226, -0.0846332982, 0.0220994316, -0.2678522468, -0.5002476573, -0.1091536656, -0.0318485647, 0.0631250441, 0.5358988643, -0.0103136757, 0.2958765626, 0.0097889062, -0.0158978011, -0.1169516221, -0.0069824443, 0.2734377384, -0.1275931597, -0.0180727541, 0.1740116775, 0.2556477785, -0.194553718, 0.3934059441, -0.0161712021, -0.0329585448, 0.6259974837, 0.0143671194, 0.0547632463, -0.4071564972, -0.2678071856, 0.4698749185, 0.3069072962, -0.2341915369, -0.4158830643, -0.424095273, 0.1417989731, -0.0436885171, 0.0182052385, 0.081879802, -0.0191106312, 0.2180839032, -0.334559083, -0.2262869179, -0.255074203, -0.0848406181, -0.4569257796, 0.1557018012, -0.1581206471, -0.0320847258, 0.2083070129, -0.1093471497, -0.0570755452, 0.233217001, 0.0770115107, 0.1242185682, -0.1319330335, -0.4667617679, -0.2404343188, 0.2420447171, 0.0641124994, 0.0925938264, -0.1018527597, 0.036471881, -0.1074581295, 0.1789062023, -0.0019421912, 0.319720149, -0.018151382, 0.0871049687, 0.2844576538, -0.098444514, -0.0780218244, 0.1426818371, 0.1567531377, -0.1871579289, -0.1085610911, -0.0477673709, 0.0716384202, -0.1214729026, 0.0511637889, -0.3087017834, 0.2672422528, 0.172094956, -0.1121375188, 0.2878980935, 0.0153885596, 0.2037269771, 0.3953176737, 0.1793697476, 0.1763354093, -0.1484648138, -0.0825693235, 0.1802886724, -0.0494108349, -0.01967117, -0.0038543965, -0.0378017388, -0.0293674897, 0.0261390489, -0.0889279321, 0.3310032785, -0.0821670741, -0.1042411029, 0.2652436793, 0.1671465188, -0.2829816043, -0.2588631809, 0.0745519996, -0.1645920873, -0.2382676452, -0.0137225641, -0.1708739549, 0.0797656626, 0.0186046157, 0.2774104476, -0.0035124891, -0.086480692, -0.2116567492, 0.4036307335, -0.0128504224, -0.0990920886, 0.0406691544, -0.1735940427, -0.1943624318, -0.0251165647, 0.0886336789, -0.0599142015, -0.3292739689, -0.4942748249, 0.1610180587, -0.1373923272, -0.045282729, 0.2936730087, -0.0389952958, 0.1977723092, -0.0622104183, -0.080209218, 0.4939521849, -0.1065553874, -0.1814965457, 0.0681396201, -0.3399479091, -0.0184120592, 0.0083445776, 0.3178716004, 0.2948328555, -0.0164955575, -0.3483885825, 0.3703300655, -0.0752104074, 0.1497976035, 0.1050368547, -0.2864673734, 0.2458962053, 0.0629723445, 0.2355777174, 0.2537992895, -0.0692673624, 0.1117848828, -0.0753494427, -0.4083535969, 0.2005532682, 0.0748430192, 0.2569253445, -0.0320865959, -0.1039827615, -0.4349062741, -0.1174090877, -0.105756864, -0.176985383, 0.2305081785, 0.2835945785, -0.2835353911, -0.050456997, -0.240582794, -0.1328188479, -0.157514587, 0.2584118843, -0.2040455043, 0.2221160382, -0.329477787, -0.1069268733, 0.4259647429, 0.1077915132, 0.2475833744, -0.491827786, 0.0894111469, 0.0432434157, 0.0613956638, 0.0378552228, 0.0642795116, -0.1545029283, -0.2567335367, 0.0715662912, 0.0709935203, -0.0862856805, 0.082854569, -0.0011880609, 0.3227494657, 0.2609710097, -0.0784019902, 0.1439091265, -0.052529607, 0.1788264513, 0.0433892496, -0.4305519462, 0.6129769087, 0.0180022176, 0.172246471, -0.0484182946, 0.0495319627, 0.3008770049, -0.3305993676, -0.0143697606, -0.1949433833, -0.1480185837, -0.1301358044, 0.2936968505, 0.1075424179, -0.2553987205, -0.0235894322, 0.2760585845, 0.0384419374, 0.1950593591, 0.3294144273, -0.2586317658, 0.2395890504, -0.0654357821, 0.371291101, 0.2040142417, 0.3569667339, -0.1667206138, 0.2390264869, 0.0320155397, -0.0046143373, 0.1888573617, -0.0338225625, 0.235721603, 0.078381978, 0.0489159822, 0.1945626587, -0.227805689, -0.2059037536, -0.2645699978, 0.0031592362, -0.2033653408, 0.0034470197, -0.1967260689, -0.145036459, -0.2393190265, 0.0100168781, -0.3171903789, -0.0784667283, 0.1861798912, 0.1125214547, -0.2316167355, 0.1188409105, 0.2403348833, 0.2831951082, 0.1986997426, -0.0203866363, -0.1275156736, -0.1675503552, 0.106623821, 0.2194828391, -0.1370415688, 0.09778101, 0.4182057083, -0.4118687809, 0.1238673776, -0.2679351568, -0.4999006987, 0.2685491443, -0.1570934504, 0.2256890982, 0.3385978043, 0.1490935385, 0.0294234101, -0.0188316423, 0.0859246105, -0.1540537179, -0.2891170382, -0.0687824637, -0.2152635008, 0.0695156008, -0.1339473426, -0.1737842411, -0.2338172942, -0.3581328094, 0.3657942116, 0.1533707082, 0.0451714359, 0.0105709741, 0.0082777366, -0.0310069527, -0.2154485732, 0.3004662991, -0.2189867496, -0.1780746281, 0.2259612083, -0.0719295815, -0.1818495691, -0.2360563576, -0.1790876091, 0.0673808157, 0.2620017827, -0.1796705127, -0.2952072918, -0.2022518367, 0.2044985145, 0.076356858, 0.1147261709, 0.5687103271, 0.1093282625, -0.179221347, -0.0555117875, -0.0229503959, 0.1011580527, 0.1597187072, 0.0593480393, -0.0260258876, 0.368496418, -0.0389977731, 0.3227411211, -0.3008691072, -0.4758776128, -0.0619683713, -0.0589896664, 0.2156083286, 0.0416004136, -0.2979404628, 0.2278833091, 0.0441780947, 0.0191546585, 0.1481877267, -0.0486994088, 0.0111457398, -0.2310934663, -0.1589172482, -0.2245370746, -0.3170903027, 0.0428310931, 0.2425030917, -0.0501593389, -0.0710791126, 0.0184236169, -0.0754574239, 0.0562099442, 0.19944565, 0.4151170552, 0.08475025, -0.0235052314, -0.2109865993, 0.1167986244, -0.0242341198, 0.2419673204, -0.0683326945, -0.2246353179, 0.0057180291, -0.2587053776, -0.1484927833, -0.1356756836, 0.6416298747, 0.084863849, 0.0767536834, -0.0179063119, -0.4646276832, -0.2970893383, 0.2067293674, -0.3552082181, -0.2220585942, 0.1504127979, 0.3458380997, -0.3562290668, -0.2923685908, 0.1644760817, 0.3387870789, -0.3072398603, -0.0829121545, -0.0008133417, -0.1263121068, -0.3773186803, 0.2055282295, 0.0385526717, -0.0771326497, 0.0005985718, -0.0592508502, -0.3329600692, -0.1186066493, 0.2515355647, 0.3139455914, 0.0628116429, -0.1446581334, 0.0171496812, 0.1051337421, 0.4406679273, 0.0418910868, 0.2494477779, 0.0235105399, -0.5702095032, -0.0133866789, 0.042274747, 0.1509066969, -0.002107413, 0.1246786863, -0.0105000865, -0.0035684158, 0.3054665327, -0.4406087101, 0.2906220257, -0.0310883429, 0.1782280058, -0.2548517883, -0.1046053842, 0.4059157073, 0.1876244843, -0.2115993351, -0.0006978586, 0.2190538496, -0.4485891461, 0.2102265954, 0.3379161656, 0.8208332658, -0.0220722295, 0.1324446201, 0.2220873237, -0.0561944991, 0.4963653088, -0.1502447277, 0.0325309634, -0.2691508234, -0.3934501112, -0.135768652, -0.0652887225, 0.2102768868, 0.2437315285, -0.3813428581, 0.3641529679, -0.0496976301, -0.1586469412, -0.0765662342, 0.0328957252, 0.1487184614, -0.5673129559, -0.419462353, 0.2572650313, -0.1618783027, 0.2847171724, -0.0035602027, -0.131838277, -0.0876579806, 0.0457288697, 0.0972324461, -0.0441243201, -0.3256536126, -0.2421279252, 0.0073955334, -0.2083849758, 0.3350389302, 0.25589329, 0.309594065, 0.1981585324, -0.1272191554, 0.1192676127, -0.2853121758, 0.3346182406, -0.0915670842, -0.1033795327, 0.5256102681, -0.0308110956, 0.032118164, -0.1150330082, 0.0819014981, -0.1203012466, 0.4231549799, -0.2049937993, -0.0953180715, -0.3909985721, 0.0488231666, 0.0800535306, 0.1095757633, -0.1868067086, 0.2117660493, 0.1607629955, -0.1171948463, 0.2752372324, 0.4020015895, -0.2543524504, -0.1254382282, 0.2494218796, 0.2224722505, 0.1315015405, 0.019879235, -0.2210661024, -0.2818226516, -0.4306576848, 0.0707739964, 0.2052572668, -0.4010015726, 0.3377907872, 0.0976738185, -0.3812919259, -0.1181260943, 0.1145383865, 0.3145771325, 0.0429110788, -0.1349575818, -0.3282354176, -0.5083824992, 0.1449070573, 0.0421729647, 0.1967896819, 0.2256723642, 0.3546482921, 0.0495367683, 0.2430291325, -0.4819770753, -0.0826897994, -0.2095016688, 0.1999914646, 0.2634357512, -0.017115742, -0.0374914743, 0.0263988934, 0.1727619469, -0.0596017949, -0.2150501758, -0.3660916686, -0.3127805889, 0.0612799861, -0.1453042179, 0.1823215485, 0.0940942839, 0.2562637627, -0.0755432695, -0.2365213335, 0.3544230163, 0.0906273574, 0.0280786883, 0.3455360234, 0.1791208982, -0.2006534338, -0.1870822906, -0.018530855, 0.094688125, -0.1102109179, -0.2036919296, 0.1857883483, -0.1922780275, -0.0072235898, 0.0166156515, 0.1514559835, 0.3099431992, -0.1421372294, 0.3326798379, 0.1762283444, 0.0830455422, 0.5306994319, 0.287653327, -0.0343109854, -0.0275179334, 0.1235408559, 0.23192285, 0.3524503708, -0.5596113205, 0.0930919647, 0.3111480474, -0.1309548467, 0.3483591676, 0.3157459497, 0.0232935138, 0.1996725947, -0.0048859064, -0.0649217516, 0.2668977678, -0.3059863746, 0.1353479922, 0.3643881679, -0.1511550546, 0.0086814454, 0.4588139057, 0.129828319, 0.1662643105, 0.15356417, -0.016384773, 0.4012468755, -0.1160301715, 0.0245243907, 0.4541294575, -0.0029643853, 0.0215494633, 0.3619539738, 0.0846554935, 0.0848780125, 0.1544634253, 0.1645849049, -0.1245511249, -0.4523752928, -0.0846994072, 0.4605713189, -0.2176188678, 0.0525100864, -0.1512877494, -0.1291843653, 0.0573183857, -0.1781861335, -0.0756377503, -0.2884868681, 0.4399871528, 0.060555879, 0.15383403, -0.0379772633, -0.0289667193, -0.0429915525, 0.2498963624, -0.0769526958, 0.0208796281, 0.2935594916, 0.0221237522, 0.213603735, 0.6038639545, 0.1448431015, -0.0849436745, -0.1604553461, 0.1932698488, -0.2475613952, -0.2024956197, -0.2125963718, -0.0310600139, -0.2145268172, -0.1687821299, 0.3770325482, 0.3230583668, -0.2493101656, 0.1287887543, -0.1560342163, 0.2232082188, -0.2034611255, 0.1954644918, 0.2016677558, -0.1328808367, -0.2870441973, -0.0539055504, -0.1211351007, 0.0998361185, 0.1605129093, -0.4364561439, 0.168609634, 0.0124979792, 0.1488931775, 0.2313270569, 0.2973577678, 0.070131585, -0.0600895658, 0.1038425118, 0.0233303104, -0.4550200701, 0.0580867566, 0.3359410465, -0.1637786031, -0.1979538351, -0.1882536709, 0.0778486878, 0.3184640408, 0.0243484545, -0.2890488207, 0.0932427868, -0.0799016654, -0.2769651711, -0.0069262157, -0.0820761919, 0.1544284821, 0.2809631228, -0.3392105997, -0.0550965741, 0.1450463235, 0.1700153202, 0.0563492551, 0.466027379, -0.2188387066, -0.0072854026, 0.2061864883, 0.2529654801, 0.3293142319, -0.3406129777, 0.1847260445, 0.3814713657, -0.1514121145, -0.5562720895, 0.1668208688, 0.1318483353, 0.228792727, -0.0672120303, -0.1191272363, 0.018122647, -0.0036669872, 0.1334283948, 0.0585377328, -0.6600285172, 0.2794372737, 0.0282121524, -0.1784802675, 0.1371929944, 0.3119850159, -0.0557688363, -0.1405498385, -0.1189052016, -0.3230002522, 0.470181644, -0.0320270211, -0.2459297329, -0.0723554417, -0.0905002877, 0.0480115004, -0.1316292137, -0.3248488009, 0.1184533015, 0.2089711279, -0.0644036531, 0.0676756725, 0.1719876081, -0.1898826957, -0.2444028705, -0.2252630442, 0.5100142956, 0.0994270965, -0.2092747688, -0.2593584657, -0.2064965963 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
Ok, sure. Thanks for pointing on functional part. My question is more “Philosophical”/Design perspective. There are 2 perspetive: Add transformation methods to Dataset Class OR Create a Transformer Class which operates on Dataset Class. T(Dataset) —> Dataset datasetnew = MyTransform.transform(dataset) datasetNew.save(path) What would be the difficulty of implementing a Transformer Class operating at dataset level ? thanks > On Jul 6, 2021, at 22:00, Quentin Lhoest ***@***.***> wrote: > >  > There are already a few transformations that you can apply on a dataset using methods like dataset.map(). > You can find examples in the documentation here: > https://huggingface.co/docs/datasets/processing.html > > You can merge two datasets with concatenate_datasets() or do label extraction with dataset.map() for example > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
142
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). Ok, sure. Thanks for pointing on functional part. My question is more “Philosophical”/Design perspective. There are 2 perspetive: Add transformation methods to Dataset Class OR Create a Transformer Class which operates on Dataset Class. T(Dataset) —> Dataset datasetnew = MyTransform.transform(dataset) datasetNew.save(path) What would be the difficulty of implementing a Transformer Class operating at dataset level ? thanks > On Jul 6, 2021, at 22:00, Quentin Lhoest ***@***.***> wrote: > >  > There are already a few transformations that you can apply on a dataset using methods like dataset.map(). > You can find examples in the documentation here: > https://huggingface.co/docs/datasets/processing.html > > You can merge two datasets with concatenate_datasets() or do label extraction with dataset.map() for example > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
[ -0.1065422073, -0.0538383983, 0.0260535572, 0.1430310309, 0.3365960419, -0.1399591118, 0.5725405216, -0.0339157358, -0.0521858819, 0.1631579697, 0.116856575, 0.2448584139, -0.4620172977, 0.4327046573, 0.2910210192, -0.3197536469, 0.0604295954, 0.2110386193, -0.5410815477, -0.0536489636, -0.3712557256, -0.3355922103, -0.0531560779, 0.0580876395, -0.2199228108, -0.1509218216, -0.1271557212, -0.1756850928, -0.1485713124, 0.0726784244, 0.7325077057, 0.0547794104, 0.1794546843, 0.6730669141, -0.0001188061, -0.038748417, -0.0175582618, -0.050060939, -0.0148856919, -0.3987994194, -0.2108459771, -0.1249512732, -0.0250346772, -0.3303228915, -0.1954077035, -0.0154985506, 0.0561690889, -0.0434548743, 0.3625747859, -0.0595806949, 0.1046546549, -0.269990027, -0.065837428, 0.046701882, -0.1154844463, 0.3715499938, -0.2796651721, 0.0010370481, 0.1731648892, 0.3063555658, -0.0288390387, 0.0741659552, 0.0859450772, -0.3187922537, 0.9122116566, -0.0709176362, -0.0384921767, -0.3968644738, -0.2046211958, 0.2444627136, 0.459939748, -0.2721917927, -0.634358108, -0.2657698393, 0.0709742084, 0.1589300483, 0.2296381593, -0.0058808709, 0.0921110585, 0.2785586715, -0.3245720565, -0.2360977829, -0.4755642116, 0.0938367695, -0.5276674032, 0.0506127588, -0.148530826, 0.0155013585, 0.0621880405, -0.0744667128, 0.1951581836, 0.0976157337, 0.2587227523, 0.2356421947, -0.2632692754, -0.3962756097, -0.1543958783, 0.2665106952, -0.0398134291, -0.0534418002, -0.1178395599, -0.1095123366, -0.151987344, 0.1321217865, 0.2445404083, 0.3347286582, -0.0678856149, 0.174652338, 0.2386981249, -0.314981252, 0.0606372133, 0.0193096586, 0.0075840168, -0.1074851826, 0.0635663494, 0.0290939659, 0.2385457456, -0.0591094121, 0.249893263, -0.2912391722, -0.1080681533, -0.0159942694, -0.1475115567, 0.0228482783, 0.2536227107, 0.3971213102, 0.3115745485, 0.0693930462, 0.3559366763, -0.1371484697, 0.1234386787, 0.0896294042, -0.2077121288, -0.008514069, 0.0254324041, -0.0882945359, -0.2700823545, -0.0413116701, -0.0517635085, 0.3604639471, 0.0132193519, -0.4351183772, 0.1218432114, 0.3219591081, -0.4701115191, -0.2149734646, -0.1325141937, -0.0192554742, -0.1424984187, 0.4075753391, -0.1337512136, -0.1032078788, 0.2736285031, 0.0855006725, 0.013681083, 0.0905923396, -0.620672822, 0.3858293593, 0.0393185914, -0.1848632991, 0.040101774, -0.3431007862, -0.1524262279, -0.1820155382, -0.1730380356, -0.0275772866, -0.4880177975, -0.3247208595, -0.0589676984, -0.0078163631, 0.0338278152, 0.2875153422, -0.3181767464, 0.5770635009, -0.0649321824, -0.1183061525, 0.7609322071, -0.1623447984, -0.3263247311, 0.1355404109, -0.3932286501, 0.1056022123, -0.0285584684, 0.357036531, 0.3934705555, -0.3740146458, -0.5503360033, 0.2517984807, -0.0503001921, -0.0115066711, 0.18893525, -0.1970738024, 0.497328341, 0.0133822178, 0.2665417194, 0.339926213, 0.0465902984, 0.3440967798, -0.2913911939, -0.4086549282, 0.2489724457, 0.0150379539, 0.2712845802, -0.0074665966, -0.0214921385, -0.4259053767, -0.2000451982, -0.0318090618, -0.061899256, 0.3268600106, 0.3026998341, 0.0083407834, 0.1577599347, -0.1190226376, -0.2191332281, -0.2704631388, -0.0120440405, -0.3185948431, 0.3225785494, -0.5568805337, -0.3735566437, 0.4142182767, -0.054054223, 0.2334822118, -0.5580813885, 0.1156939194, 0.0233744066, 0.2491555065, -0.3481840491, -0.0079238396, -0.1335956454, -0.291701138, -0.0953385532, -0.0589289404, -0.0261339899, -0.1575660557, -0.0720562339, 0.4762629867, 0.2876899242, -0.2148323357, 0.3182385266, 0.0622442178, 0.2261412889, -0.1458976567, -0.3460889459, 0.2852138281, -0.0535702109, 0.3659823239, -0.0880964249, -0.0648379847, 0.1404402107, -0.2240234315, -0.2181902826, 0.1399026215, -0.1129797697, -0.0726041868, 0.3441033661, 0.127038002, -0.0325208902, -0.181943059, 0.2679164708, -0.1034207791, 0.1382667124, 0.4796470404, -0.1408269256, 0.2142405659, -0.3483159542, 0.4952424765, 0.621920228, 0.1169675738, -0.2442899495, 0.3060924411, 0.2635378242, -0.0524752885, 0.1504599303, 0.1145000085, 0.2366334349, -0.1106889397, 0.0115366885, 0.355188936, 0.1476722956, -0.4427649975, -0.1622826457, -0.0296409149, -0.1099243686, 0.0588961542, -0.0287234504, -0.2380895317, -0.3307724595, -0.0129871508, -0.1074384302, 0.0961224064, -0.0999429524, -0.1937001795, 0.0738500506, 0.024385253, 0.1707934886, 0.3343964219, 0.1304819435, -0.1242383718, 0.0231086295, 0.0867313221, 0.1082580015, 0.0292641204, -0.0491122194, 0.0383775979, 0.2854854167, -0.354863435, 0.1019784063, -0.0494280085, -0.6258034706, 0.2046298981, 0.0114047788, 0.1709542572, 0.3630702496, 0.0625501871, 0.0274037831, 0.0422575176, 0.1247981489, -0.0741004348, -0.233915627, 0.0146632297, -0.06866768, 0.1758812964, -0.0053666434, -0.1026482508, -0.1687107831, -0.2311033607, 0.4608859718, 0.1201040149, 0.0761675388, -0.0585087426, -0.2050846368, 0.0445598774, 0.0041256426, 0.2625156045, -0.0093502551, -0.1128632128, 0.2273570299, 0.0768129081, -0.2224091291, -0.2462588698, -0.2503373623, 0.0341826342, 0.5150563121, -0.2194657326, -0.11575073, -0.0979345143, 0.1770811081, 0.0443450436, 0.1360619068, 0.6754918694, 0.1972069591, 0.1080711856, -0.0683112592, -0.2257611156, -0.0008916298, 0.2898741961, 0.1243861094, 0.462184608, 0.5110164285, -0.0024083413, 0.3339211643, -0.15105775, -0.2582773268, -0.2768116295, 0.1763475835, 0.0443194769, 0.0027489872, -0.4018691778, 0.2987794578, -0.0718968958, -0.341355294, -0.0681767613, 0.0344202518, -0.1198188215, -0.2663065195, -0.2975162864, -0.1594109684, -0.2106071264, 0.1818178892, 0.0393161438, 0.1803300977, -0.0807616413, 0.1164884791, -0.0886695758, 0.1549251825, 0.1667347252, 0.6605193615, 0.2578849196, -0.0099291205, -0.1072397083, 0.0872032866, 0.0400457904, 0.0366866924, -0.0373534225, 0.1151960716, 0.0354973078, -0.0296958052, -0.1387937963, -0.0774610639, 0.673421979, -0.1263867021, -0.0538828298, -0.0925461054, -0.5396211147, -0.2093901932, 0.2259621471, -0.2650753558, -0.2224706858, 0.1746709049, 0.2993133366, -0.1425950378, -0.157789126, 0.122094743, 0.4064102471, -0.3311168849, -0.4063673615, 0.0549225248, -0.2408884019, -0.1778575927, -0.1317901164, -0.0959740579, -0.2433740199, 0.0306985937, 0.042529963, -0.3838761151, 0.004715669, 0.1696368754, -0.0302259736, -0.2416415215, -0.1622009128, 0.1318228394, 0.183480233, 0.229538545, 0.1789852381, 0.181731835, 0.1627094895, -0.6273983717, 0.1278331876, 0.2292994261, 0.248042047, 0.0156398378, -0.0492782407, -0.1301849335, 0.0483321324, 0.136627242, -0.2756723464, -0.0003732919, -0.0455011651, 0.3221075535, -0.3522964716, -0.5900353193, 0.310860306, 0.2279370576, -0.102888532, -0.1544234157, 0.1743732244, -0.4822403193, 0.1340201348, 0.3647258282, 0.9555777907, -0.0171790235, 0.0775628164, 0.1308075488, -0.0602579452, 0.4272620082, -0.2183822393, 0.0276528466, -0.1985088587, -0.3663856983, -0.3195911944, -0.2757728994, 0.4778459072, 0.4035703242, -0.3695995808, 0.4447704554, -0.0268551297, 0.0830422863, 0.3783858418, 0.0587676391, 0.2714860141, -0.5816076398, -0.3119217157, 0.0892601311, -0.1057590917, 0.2805682421, -0.1049872637, -0.1866160035, -0.2718277276, 0.0770047531, 0.0205397587, -0.0427927375, -0.329238385, -0.1995065659, -0.0850664005, -0.2173226327, 0.8510028124, 0.3416749537, 0.2968758345, 0.2104678154, -0.0236105863, -0.1445991546, -0.1945165098, 0.3003869951, 0.2033183575, -0.1505186111, 0.5049756765, -0.1062809154, 0.0509650335, -0.0636289418, -0.094414115, -0.2002097368, 0.2499520332, -0.1495437622, 0.0199244432, -0.4891405106, 0.0657975748, 0.0772789791, -0.0438057892, -0.0220829956, 0.0893048495, 0.1573811322, 0.0038470272, 0.3480001688, 0.235784471, -0.2018473148, -0.0627061725, 0.0013768228, 0.3610285223, 0.1247052103, 0.0428966507, -0.3429123461, -0.2802806795, -0.1254492849, 0.2406890988, 0.0951171666, -0.4211357236, 0.20907031, 0.0677029863, -0.0068525434, -0.185026437, 0.0265444349, 0.2446225137, -0.0467583574, -0.4049019217, -0.3855034411, -0.5006260276, 0.1083526239, 0.2817619145, -0.0155725302, 0.0729671195, 0.461670965, 0.1958021671, 0.1672315001, -0.2731508911, -0.1845599413, 0.0571259074, 0.1818387657, 0.3260118067, -0.1249692887, -0.151338771, 0.0886022225, -0.0421318859, -0.0828827843, -0.1371413767, -0.1382940114, -0.1004503518, 0.1704815477, 0.1444211453, 0.0493483208, -0.1290216446, 0.0181038566, -0.0711756423, -0.1099518612, 0.1145003811, 0.1153317392, -0.1027355194, 0.2702435553, 0.1610773057, -0.0335920043, -0.5131680369, 0.2962310016, 0.0904714689, 0.0359365344, -0.2626494765, 0.1954117566, -0.0403057486, 0.1127260849, -0.407784462, 0.2016228884, 0.2528674006, 0.0766582787, 0.4542486668, -0.2142671496, 0.5300101638, 0.4562425911, 0.1906017214, 0.0942619517, -0.139441371, 0.0893094242, 0.2137866318, 0.0539295636, -0.3617956042, 0.2642561495, 0.3354158998, -0.121138975, 0.039302405, 0.4257612228, -0.0247115102, 0.1340171099, -0.160720408, -0.1882657707, 0.228895992, -0.1902731657, 0.1538882703, 0.547901988, -0.1896897107, 0.3101462424, 0.5182444453, 0.2218758464, -0.0831049606, 0.2689272165, 0.1234966442, 0.2637135088, 0.090530619, -0.0205286015, 0.3966085911, 0.0287144799, 0.0679488182, 0.5042469501, 0.0737649277, -0.2143766135, 0.1243718043, -0.0610746108, -0.0991158113, -0.3878372908, 0.1565186083, 0.2266201824, -0.1383501291, 0.441069901, -0.0869600475, -0.0259664524, 0.1422656327, -0.2406667471, -0.3244138062, -0.3866647482, 0.3253192604, 0.132797569, 0.1506993026, 0.041624058, -0.0754020587, -0.0516917557, 0.2463620156, -0.0627190247, -0.0002608195, 0.2278402299, 0.2276692539, 0.0929496735, 0.5396188498, 0.0761844292, 0.2316829711, -0.0407465473, 0.1827037781, -0.227570951, -0.1864677817, 0.0391150936, 0.191035524, -0.1933152974, 0.0038739189, 0.2546108663, 0.0740204901, -0.0374061018, 0.2260044962, -0.1073444709, 0.4486503303, -0.385794282, 0.3867212236, 0.0828127116, -0.1325120628, -0.168393448, 0.1630370319, -0.119595632, -0.0303968675, 0.2465756536, -0.3848780692, 0.0494270511, -0.0104871066, 0.0293314382, 0.244337976, 0.1756817251, 0.2190908939, 0.1514763087, 0.0247953143, 0.0265753642, -0.3054021597, -0.0843892023, 0.2060105503, -0.1895983666, -0.0302193388, -0.3239156306, 0.0980098099, 0.4614944756, 0.0137512637, -0.3440373242, 0.0189505555, 0.0597928353, -0.1077382639, -0.0478477851, 0.0716325417, 0.3046370149, 0.0701381266, -0.2273861617, -0.0252643973, 0.2907375395, -0.0455553792, 0.0754399449, 0.4472020566, -0.1230669245, 0.062397074, 0.1387629211, 0.2046006173, 0.3971921504, -0.0604328141, 0.1115898415, 0.3480597436, -0.0256992485, -0.3430047035, 0.400000602, 0.0863485858, -0.0067717852, -0.1952468157, -0.1211521998, -0.0640133321, -0.2995353043, -0.1213252544, 0.1604435742, -0.7866066098, 0.1051196083, -0.1982639581, -0.2150481939, 0.1535718143, 0.2690836489, -0.047440961, -0.1647903174, -0.1739923209, 0.0095409891, 0.4162620008, -0.1712447703, -0.2035199404, -0.0616415218, -0.2454258204, -0.0794802904, 0.0124919415, -0.3885914087, -0.0811212733, 0.2913823128, -0.0351547599, 0.2398267388, 0.1916746497, -0.2044726759, -0.2209128588, -0.1321309656, 0.6106513739, -0.3881573975, -0.0434252806, -0.2438922077, -0.0093144784 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
I can imagine that this would be a useful API to implement processing pipelines as transforms. They could be used to perform higher level transforms compared to the atomic transforms allowed by methods like map, filter, etc. I guess if you find any transform that could be useful for text dataset processing, image dataset processing etc. we could definitely start having such transforms :)
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
64
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). I can imagine that this would be a useful API to implement processing pipelines as transforms. They could be used to perform higher level transforms compared to the atomic transforms allowed by methods like map, filter, etc. I guess if you find any transform that could be useful for text dataset processing, image dataset processing etc. we could definitely start having such transforms :)
[ -0.4904250801, 0.0872301683, -0.1906813532, -0.0839950815, 0.3473588526, -0.1753203273, 0.3381086588, 0.2574364543, 0.0903777555, 0.0197906066, 0.2580315471, 0.3618628383, -0.3850793242, 0.4767217338, 0.1930704117, -0.2324405164, -0.1511344314, 0.2651835382, -0.4250874817, -0.0168540571, -0.3289778233, -0.1533587575, -0.0330887176, 0.1328707188, 0.002900735, -0.146634981, -0.0935133472, -0.3280188143, -0.0702158138, -0.1045168787, 0.316780448, 0.1368870139, -0.0556034334, 0.4302743375, -0.0001056647, -0.1033562794, 0.1528598666, 0.0172446575, 0.0270978771, -0.3660882413, -0.2878671587, -0.2310527712, -0.079636544, -0.3515017629, -0.2724730968, -0.1547865421, 0.1759620607, -0.3427096009, 0.5134333372, 0.1626291126, 0.2492760122, -0.2664003074, -0.124522604, -0.0106897177, -0.0541695729, 0.4239854217, -0.3033707738, -0.5247583389, 0.4609452188, 0.2306550443, -0.1012285203, 0.1187340692, -0.0994047076, -0.190721482, 0.6304561496, -0.1156991273, -0.0931703225, -0.5817268491, -0.0784514695, 0.2958919406, 0.4102664888, -0.2705185711, -0.4758315086, -0.2998231649, -0.0145637849, 0.1219541132, -0.225993365, 0.2029167861, -0.0218978561, 0.327021718, -0.2893725336, -0.22548908, -0.3472728729, 0.0120363692, -0.2229363918, 0.160091117, -0.0978745595, -0.0259850789, 0.0453670397, 0.040364854, 0.2370891273, 0.0952521861, 0.1654208899, 0.1429381371, -0.0912424996, -0.428411454, -0.1221808121, 0.0104459347, -0.2088416666, 0.2001110911, 0.0329000689, 0.1262462139, -0.0182830151, 0.0492417477, 0.0054215225, 0.1322813779, 0.0045804633, 0.0382177979, 0.2880473137, -0.3633046448, -0.0313486718, 0.1370049119, 0.035436023, 0.0212802552, -0.1402964741, 0.1661055088, 0.0147121781, 0.0149488989, -0.0016046913, -0.2726562917, 0.1066770405, 0.1336743087, -0.1337662637, 0.0749793425, 0.1600474715, 0.3427149057, 0.409409523, 0.0567139462, 0.240718022, -0.1985293627, 0.010068398, 0.171739623, -0.2010184675, -0.0314509571, 0.0899901688, 0.0984608978, -0.1902888566, -0.0857489556, -0.1360107511, 0.4032213688, 0.2586649358, -0.0103076193, 0.3266674876, 0.2876619101, -0.3840346932, -0.2247587293, 0.0478361808, -0.021408217, -0.2645699382, 0.1571624875, -0.2843388021, -0.0495863445, 0.1654486358, 0.2562445104, 0.0745676905, -0.0825994164, -0.2585091591, 0.435945034, 0.0350626372, -0.1288643181, 0.1879974306, -0.215319857, -0.2061603814, -0.0929538831, -0.1613589376, -0.0855303556, -0.5210265517, -0.4330343306, -0.2928818464, 0.0670858994, 0.1855183095, 0.1258123815, -0.0995191261, 0.254953891, -0.0540067367, 0.0176642574, 0.6603581309, -0.174720481, -0.0979027152, 0.2688252926, -0.3572137058, -0.1598703414, 0.1279028058, 0.4035031796, 0.3632652462, -0.2125306726, -0.4146344364, 0.3534544706, -0.090969272, 0.0054100761, 0.1527170092, -0.2682517469, 0.2469786853, 0.2128084451, 0.3504939079, 0.2810117006, 0.12943317, 0.1401318908, -0.1105129123, -0.4927366078, 0.3531639278, -0.0376636498, 0.1912440062, 0.0206495803, 0.0428725667, -0.6312665343, 0.1881384254, -0.1162090749, -0.270984143, 0.1082685366, 0.2710978389, -0.1145072207, 0.1172642261, -0.1550061405, 0.0733626634, -0.1630353332, 0.2363793999, -0.3905514181, 0.1708756387, -0.2011025995, -0.2399890423, 0.3937872946, 0.009754586, 0.053466212, -0.4360541403, 0.1432038099, 0.2297934741, 0.1855835468, -0.1641368121, 0.1989322901, -0.3491074443, -0.2043966055, 0.0468194671, -0.2283366174, 0.0734594837, 0.0671371669, 0.0497841053, 0.5814137459, 0.2575740218, -0.0738892183, 0.2715719044, 0.0297428537, 0.1512195021, -0.0686641261, -0.1690054536, 0.6479955316, -0.0027133042, 0.2556304932, -0.1393958926, 0.1753910333, 0.2669110596, -0.3181123435, -0.2655096054, -0.0300371535, -0.0397095345, -0.064684771, 0.2421487868, 0.0481633097, 0.0189807862, 0.046283111, 0.2515479624, 0.0154135134, 0.2425544858, 0.3825644851, -0.1510887891, 0.2011819929, -0.1937963217, 0.5782843828, 0.491500169, 0.2047156096, -0.2291336805, 0.1965980977, 0.1805029958, -0.0880014226, 0.2533914149, 0.1599666327, 0.3058575392, 0.0324335396, -0.0279733408, 0.1396906972, -0.0631875619, -0.4729797244, -0.1748870909, -0.0551558882, -0.0589846149, 0.2467169613, -0.2987350225, -0.3389692903, -0.1829382479, -0.0542921647, 0.2892732918, -0.0513310991, 0.2056131214, -0.2524845898, -0.1110305339, 0.1603523195, -0.0294568371, 0.5149572492, 0.1022283956, -0.0487782471, -0.2807582617, -0.2141821384, 0.0795970857, 0.1924242079, 0.0171542708, 0.0326936767, 0.4736205637, -0.2052601427, 0.3556709588, -0.2228473574, -0.5828428864, 0.0999872386, -0.0393816419, 0.1567537487, 0.3471786976, -0.0640843883, 0.1175071374, -0.0812779739, -0.005426812, -0.1949023753, -0.2889543474, -0.0580737554, -0.1537415534, -0.0682869777, -0.1009426415, -0.185418129, -0.305716455, -0.3653068542, 0.3621486723, 0.0168428328, 0.1068326682, -0.1464155465, -0.0528572761, 0.0466545857, 0.1201931983, 0.1184351668, -0.025423931, -0.0544988289, 0.1331168115, -0.1406108439, -0.1921081245, -0.2421642244, -0.3054257035, 0.1779671013, 0.3593084216, -0.1374824047, -0.0864888802, -0.1797845215, 0.0269062705, 0.140541479, -0.0950943679, 0.5606482029, 0.0580534153, -0.1028713435, -0.1430612355, 0.0960487798, -0.1594544649, 0.1404044628, 0.0622650385, 0.2014609277, 0.4887656868, 0.0573833473, 0.3966761231, -0.276351124, -0.5605838299, -0.155289501, 0.055917941, -0.1592636853, 0.0357731804, -0.4223341644, 0.1116606295, -0.0961362645, -0.1843737215, 0.0144015849, -0.0177213252, -0.4235359728, -0.0908081606, 0.012506132, -0.2403865904, -0.1080767065, 0.1225372106, -0.0586384237, 0.1271523088, -0.0806817338, -0.0054045403, -0.0942281634, 0.006489276, 0.2501516044, 0.3186605573, 0.2244579196, -0.0671206936, -0.0895246416, -0.1313562393, 0.0592402183, 0.1989098787, -0.0286226738, -0.1292304397, -0.0933877006, -0.1276378036, -0.0605839677, -0.0935155228, 0.6798671484, -0.2585862875, -0.1833594739, 0.1150175706, -0.5211291909, -0.2116236538, 0.1572159976, -0.293623805, -0.1387544423, 0.1846015751, 0.2109844983, -0.0040839184, -0.0968309194, -0.0436807685, 0.0557716303, -0.2764881551, -0.1382439286, 0.173290953, -0.1675200313, -0.404692322, 0.0434764996, 0.0667043552, -0.1190934926, -0.1624397337, -0.2202872932, -0.378252089, 0.0179274585, 0.2050933689, -0.118766956, -0.3053460121, -0.211531654, 0.1628769189, -0.0756176338, 0.2482208163, 0.1217733622, 0.0111038471, 0.1771579087, -0.4412098229, 0.2124976814, 0.0691915751, 0.246856004, -0.0770303681, 0.0695588514, 0.0136770662, 0.0993142202, 0.1730928421, -0.4768765569, 0.0910910219, -0.0490894839, 0.1310818791, -0.1700927466, -0.5385858417, 0.4164546132, 0.362205714, -0.1425334364, 0.1924144775, -0.1396233737, -0.4583476484, 0.3108941913, 0.5458199382, 0.8820567131, 0.0202462934, 0.1815937161, -0.1626457423, -0.2520899177, 0.3659991622, -0.3363488913, 0.1634488851, -0.376565218, -0.3504268825, -0.2777535021, -0.1602726281, 0.3588180542, 0.3163311183, -0.4421454072, 0.214108929, 0.1854146123, -0.277466923, 0.0927127749, 0.1222986355, -0.0064121061, -0.5177208185, -0.0617268719, 0.2326449454, 0.0147145372, 0.2346645892, -0.0767124742, -0.2186507732, -0.0635323822, 0.2925379872, -0.2410869002, -0.0898592025, -0.1945820153, 0.0760053173, -0.1570573896, -0.1579389572, 0.5903678536, 0.2139989287, 0.113155663, 0.1655708402, -0.1522755623, 0.0286466703, -0.1678532213, 0.2973020077, 0.0596076064, -0.2248904109, 0.5294117928, -0.0713267997, 0.0227728318, -0.0500377864, 0.0985263512, -0.2347022742, 0.0566840768, -0.019772552, 0.0146202501, -0.2881885171, 0.0374421477, 0.0680969805, -0.0847849771, -0.009779525, 0.2056278139, 0.1391351819, 0.1021848544, 0.4880704284, 0.2477912009, -0.2698328793, -0.0187060256, 0.0485018492, 0.2433785498, -0.0282656364, 0.1078600213, -0.2474265993, -0.3079800606, -0.4038127661, 0.1936317831, -0.080064714, -0.1402977109, 0.424102962, 0.0560073853, -0.2723398805, 0.0227896515, -0.2902475297, 0.2731311321, -0.0606275685, -0.367382288, -0.4418160021, -0.2765263319, 0.098433353, -0.0481784977, 0.1748620421, -0.1195067167, 0.1579868346, 0.2233351469, 0.0192565527, -0.4004313648, -0.0206104014, -0.0466724373, 0.077335611, 0.1480117738, -0.0119203702, -0.3965806365, 0.183110401, 0.0164040532, 0.0023939332, -0.2839090526, -0.2874856293, -0.1735991836, 0.1151175126, -0.051675342, 0.2266322821, 0.0973277986, 0.1461658925, -0.1276878715, -0.0839437693, 0.0175203588, 0.0877500996, -0.0657205656, 0.3965677619, 0.3393173516, -0.3135195673, -0.1280072033, 0.1323913932, 0.1197140664, 0.0109749949, -0.1404136866, 0.4049524069, 0.2219872922, 0.0319916718, -0.1367151737, 0.1751734018, 0.2696064413, -0.0433320925, 0.5080506206, 0.0162173528, 0.3049814999, 0.5331391692, 0.0364384428, 0.1318988949, -0.143275708, 0.1320047677, 0.1662057489, 0.296630621, -0.2822292149, 0.0934451967, 0.2485659868, 0.094215259, 0.0551359095, 0.2299283445, 0.1871545762, 0.0846948996, 0.1109361425, -0.1304394603, 0.304907769, -0.494230032, 0.2468266785, 0.3790170848, -0.0694418773, 0.0271547623, 0.3060772419, 0.0716517419, 0.0685180426, 0.3909009695, 0.2271909565, 0.5443757176, 0.2785638273, 0.0679228976, 0.3333745897, 0.0951083377, -0.0224438813, 0.3389112353, -0.1312887967, 0.2181162089, 0.2518443167, -0.0386552624, 0.130068779, -0.1997906715, -0.1038372815, 0.429038018, -0.2054004818, 0.0887925997, -0.265865922, -0.0644455105, 0.1366757005, -0.2768559158, -0.0632976219, -0.1097517461, 0.4635695219, 0.0902050063, 0.070807077, 0.1755949855, 0.2030889243, -0.1322395205, 0.224802494, -0.1567336321, -0.1942658424, 0.1774764806, -0.0101631256, 0.1475271583, 0.4574741721, 0.2258293033, 0.1731737703, -0.4393771589, 0.2172540277, -0.3352846801, -0.2082685083, -0.1618868709, 0.407125771, -0.1332311928, 0.0322868079, 0.1816319078, 0.273787111, -0.1549273431, 0.1682000011, -0.0191143081, 0.2027837187, -0.2083943784, 0.5841747522, 0.3528769016, -0.1191036329, -0.1195925251, 0.1830760092, -0.1006726846, -0.035318289, 0.4973432422, -0.5335722566, -0.0101909209, 0.0372523703, 0.1149991453, 0.0839328095, 0.2910145819, 0.1034578905, 0.1482540369, 0.1419585049, -0.0377890654, -0.1565447599, 0.0021486266, 0.2513352334, -0.0425239168, -0.1603263915, -0.1410849094, 0.0675836205, 0.2708382308, -0.0268757436, -0.3874263167, -0.1746884882, 0.1546903551, -0.1828953922, 0.1026936769, 0.1112091988, 0.2961472869, 0.0896128193, -0.2545867264, -0.0773447752, 0.2244995087, 0.1373786479, -0.0403168425, 0.33288306, 0.1304399967, 0.1238556355, 0.2548813224, 0.2091063559, 0.4130348563, -0.2154666781, 0.3468511999, 0.2343661487, -0.1899389476, -0.2591224611, 0.2467823923, 0.1187877804, -0.0343255028, -0.2198068351, -0.2305340618, 0.0652120262, -0.1530876011, 0.0055776597, 0.1222298145, -0.594442904, 0.0167277604, -0.297513932, -0.0941294208, -0.0070219021, 0.3109412491, -0.0001742085, -0.1021810398, -0.0234924462, -0.2513219714, 0.2158102393, -0.1368375421, -0.4659646749, -0.0929828286, -0.1370570958, -0.3058812022, 0.1579549909, -0.138140738, -0.1742243469, 0.3162983954, -0.2496904582, 0.3183440566, 0.2175517827, 0.0222029109, -0.2063115388, -0.2627235055, 0.4805036485, -0.1095902249, -0.0933705568, -0.2571104467, -0.2390017807 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
Thanks for reply. What would be the constraints to have Dataset —> Dataset consistency ? Main issue would be larger than memory dataset and serialization on disk. Technically, one still process at atomic level and try to wrap the full results into Dataset…. (!) What would you think ? > On Jul 7, 2021, at 16:51, Quentin Lhoest ***@***.***> wrote: > >  > I can imagine that this would be a useful API to implement processing pipelines as transforms. They could be used to perform higher level transforms compared to the atomic transforms allowed by methods like map, filter, etc. > > I guess if you find any transform that could be useful for text dataset processing, image dataset processing etc. we could definitely start having such transforms :) > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
155
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). Thanks for reply. What would be the constraints to have Dataset —> Dataset consistency ? Main issue would be larger than memory dataset and serialization on disk. Technically, one still process at atomic level and try to wrap the full results into Dataset…. (!) What would you think ? > On Jul 7, 2021, at 16:51, Quentin Lhoest ***@***.***> wrote: > >  > I can imagine that this would be a useful API to implement processing pipelines as transforms. They could be used to perform higher level transforms compared to the atomic transforms allowed by methods like map, filter, etc. > > I guess if you find any transform that could be useful for text dataset processing, image dataset processing etc. we could definitely start having such transforms :) > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
[ -0.4273888767, 0.2038236111, -0.0892711431, 0.0677170008, 0.5223816633, -0.1340120882, 0.3225384355, 0.1911120713, 0.0130914599, 0.0615380183, 0.2266188562, 0.3506037593, -0.4103447795, 0.2984672487, 0.0133419083, -0.0542736165, -0.0388859436, 0.2965454459, -0.5386688113, -0.0739863813, -0.1674235314, -0.2261765152, -0.0746393278, -0.1188815236, -0.0701203272, -0.0560872182, -0.1632032394, -0.4052654207, -0.3135544658, -0.0657366514, 0.5253244638, 0.2762766778, 0.0223162156, 0.4755657613, -0.000114318, -0.1631054729, 0.2398657352, 0.0084741842, -0.1145882979, -0.4431599379, -0.338858068, -0.2092612386, -0.0825242326, -0.351028949, -0.2636530399, 0.0173988882, 0.0538827889, -0.3100695014, 0.4917913973, -0.0407066979, 0.141067028, -0.366494745, 0.0061737625, 0.0395746157, -0.2592403591, 0.4160120189, -0.1895073652, -0.2659279406, 0.2792957723, 0.2837554514, -0.1073622853, -0.0279849265, -0.0470014885, -0.235081166, 0.6600621939, -0.1943365484, 0.0043309573, -0.5277863145, -0.0465319231, 0.30392465, 0.6490063071, -0.3981789947, -0.4264177084, -0.1945627332, -0.0383274779, 0.1389343143, -0.0498608388, 0.2443587035, 0.0176553372, 0.3849683106, -0.2907495499, -0.2940436602, -0.4222830534, 0.0256698225, -0.3817668557, 0.1451616585, -0.0047395858, -0.0499592833, -0.0384325236, 0.1308089048, 0.3123416603, -0.1127012298, 0.2272323966, 0.0686240345, -0.1626561284, -0.5328311324, -0.3075408638, 0.0986940861, 0.0344532393, 0.10205549, -0.0561496355, 0.037679147, -0.0647401884, 0.0121172853, 0.1377594322, 0.2655592561, -0.0177646261, 0.1145249456, 0.1995010823, -0.3872468174, 0.0304757897, 0.2286772877, 0.0088769495, -0.0593659654, 0.1155702472, 0.1483318955, 0.0488788337, -0.0583634004, 0.0696764812, -0.1357873678, 0.0441752523, -0.0455093049, -0.2064176947, -0.0037701388, 0.2102979124, 0.4288654923, 0.2672246695, 0.1521555334, 0.2064172477, -0.2488152832, 0.0779286698, 0.0225021448, -0.3289785981, -0.0778613985, 0.0461385176, 0.0587500297, -0.310872376, 0.1111932769, -0.1636579335, 0.418304354, 0.1364360005, -0.2913189828, 0.1636847854, 0.1784061641, -0.3646051586, -0.029322926, -0.0457364544, 0.0250663422, -0.2207815498, 0.4000896215, 0.0081140269, 0.054680109, 0.1735208035, 0.1761144698, -0.017879948, 0.1366655231, -0.2848552763, 0.2927869856, 0.1620320231, -0.0634125993, 0.113438718, -0.4430214167, -0.1859665513, -0.1998776048, -0.1033182889, 0.0172007289, -0.6279922724, -0.245371893, -0.1362821013, 0.1093934551, 0.0365385972, 0.284848839, -0.1213753447, 0.2252278179, -0.1534099877, -0.2330723703, 0.5798242688, -0.0970398039, -0.2454659343, 0.2289631218, -0.3728944361, -0.1394859999, 0.195740819, 0.2967515886, 0.4605463147, -0.2393575609, -0.490855962, 0.2818580866, -0.0648389086, -0.118045114, 0.0126637015, -0.2541800141, 0.3696835041, -0.0692065954, 0.2602414787, 0.1997294128, 0.0043156804, 0.3201090395, -0.0260311048, -0.4473751187, 0.3603181839, -0.0066868528, 0.4549994767, 0.0567454025, 0.0585834086, -0.3478057086, -0.0341732875, 0.0530905575, -0.0473663732, 0.2466876507, 0.3147386611, -0.0091185551, 0.184131816, -0.1566164941, 0.0334214792, -0.1146245003, 0.1116201207, -0.3407634795, 0.2966469228, -0.1415417641, -0.2600740194, 0.5447854996, 0.0473795496, 0.1205489635, -0.5010407567, 0.3326478899, 0.0500788502, 0.1671909094, -0.1501579434, 0.0597824343, -0.3445493877, -0.1923395246, 0.0210280884, -0.1629345715, 0.131425932, 0.0772697553, -0.0494826846, 0.6066026092, 0.4095854163, -0.1700630188, 0.4739151001, 0.0510801561, 0.1334010214, -0.1194856763, -0.1270042509, 0.492796272, -0.0984404162, 0.2128576934, -0.0814323872, -0.0044127959, 0.2524284422, -0.2985365987, -0.3720681667, -0.0959761515, 0.1043314934, -0.0137543008, 0.2253140956, 0.212807402, 0.0153646972, 0.0124662714, 0.1573319584, -0.0755052119, 0.1421439201, 0.3831188977, -0.1746160686, 0.2205761373, -0.2004306167, 0.4899605513, 0.5510008931, 0.1705226302, -0.2451501191, 0.1599906683, 0.1105056405, -0.0650860742, 0.2228178382, 0.0525741465, 0.3805495501, 0.2248179466, -0.0298503097, 0.187875092, 0.0349263884, -0.384675175, -0.0897409171, -0.0698582903, -0.0528348535, 0.0159652531, -0.2960270345, -0.2227745652, -0.4385727048, -0.0818987787, 0.0492287055, -0.0255586598, -0.0404093675, -0.0424440466, 0.2382256836, 0.1159827188, -0.1045533568, 0.3931622803, 0.1140026301, -0.1347834021, -0.1402971447, -0.088484019, 0.0053356313, 0.0395599306, 0.0950405896, 0.0166572426, 0.4365258515, -0.1513852626, 0.1293433011, -0.0760703161, -0.5865779519, 0.0719240606, 0.0726536363, 0.1306544095, 0.2849871814, 0.0718219578, 0.1427117437, 0.0545830205, 0.0340467952, -0.1997930259, -0.3182959557, -0.0681260228, -0.0269998759, -0.0561733544, -0.0062388182, -0.1270181239, -0.3657000661, -0.1590497941, 0.2604336441, -0.0370676145, 0.022501532, -0.1918988824, 0.0366405584, -0.1675829291, 0.0392667241, 0.1488778442, -0.1130213141, -0.0118303904, 0.2623639107, 0.0692797378, -0.2676432729, -0.2812874317, -0.3509061038, 0.149118349, 0.2953979969, -0.2414919585, 0.0110007739, -0.1852770597, 0.0474694483, 0.0062264246, -0.0530403629, 0.6440247893, 0.1352549046, -0.0090845181, -0.1666707844, -0.0123998355, -0.0724098012, 0.0961198956, 0.1759650409, 0.3626629114, 0.4776416123, 0.1353179961, 0.452847898, -0.0309898797, -0.5186715126, -0.2558557987, 0.2427676916, -0.0109794158, 0.0309008025, -0.4694469273, 0.2096977979, -0.0902994573, -0.4066230655, -0.1012915075, -0.0884546191, -0.2011143565, -0.1499273032, -0.0057666157, -0.101719141, -0.1321047693, 0.1723467708, -0.1624357253, 0.1246378198, -0.0637587383, -0.0338145159, 0.0795983523, -0.0344648696, 0.172552526, 0.4323408306, 0.0813840032, -0.06205469, -0.0586340055, 0.0310689658, -0.0384060107, 0.089689739, -0.1239114925, 0.0169137772, 0.0803166926, 0.0498195738, -0.1409439892, -0.0480195396, 0.9176003933, -0.1054357439, 0.0751840323, -0.0528625436, -0.4078985453, -0.1606278718, 0.0555229485, -0.2564147413, -0.2815265954, 0.1257937849, 0.160753116, -0.1736695468, -0.0467672199, -0.1674884409, 0.1465183794, -0.3606069386, -0.3681035042, 0.1373229325, 0.0197042469, -0.1851516664, -0.135167405, 0.0603420958, -0.093932189, -0.3234589398, -0.1602892876, -0.3461585045, -0.15594621, 0.3014025986, -0.4090830088, -0.1805353314, -0.2664681375, 0.3182807267, -0.0156428963, 0.240219593, 0.3277976811, 0.0834520459, 0.0967348218, -0.4447585642, 0.1128819287, 0.091641508, 0.1580238193, -0.00366346, 0.1313509196, -0.2520056963, 0.1054592282, 0.0537695177, -0.5604137182, -0.0605427176, -0.0197844245, 0.1837172061, -0.4386500418, -0.5073030591, 0.2810853422, 0.3722706139, -0.0437570699, 0.1340915114, -0.0883268118, -0.538308084, 0.3317032456, 0.5413065553, 1.0115050077, 0.0353086181, 0.0951093584, -0.1618189514, -0.2940161824, 0.4121870399, -0.2551251054, 0.1374660134, -0.4025068879, -0.3175672591, -0.3263964653, -0.3039836586, 0.4266259372, 0.3661137819, -0.4697668254, 0.2520800829, 0.0660476685, -0.1698082983, 0.1787823737, 0.319355607, -0.0130735142, -0.4183337986, 0.0711160526, 0.141079247, -0.041554302, 0.196318984, -0.0462235957, -0.272369802, -0.2079680711, 0.2208788395, -0.3255499303, -0.1173692942, -0.3221344054, -0.0072343112, -0.1927796453, -0.2832836211, 0.5923353434, 0.1904494315, 0.2429210842, 0.2127525955, -0.0905346647, -0.1015584245, -0.0485853404, 0.2503944337, 0.1308307201, -0.2683893442, 0.5263622403, 0.003633271, 0.0560064651, -0.133529529, 0.0174610019, -0.1048341542, 0.0918324515, -0.3402467966, 0.0799732208, -0.4458639324, -0.0323551558, 0.0731361508, 0.0000031337, 0.0337569043, 0.1141241863, 0.2982453406, -0.0053267516, 0.5414866805, 0.241153881, -0.1254365593, -0.0880635753, 0.2546874881, 0.3291703463, 0.0857017934, 0.0439830832, -0.2423389554, -0.3445210755, -0.2269330472, 0.299703002, -0.0933081657, -0.1767576188, 0.2913911343, -0.0491979234, -0.0735464469, -0.0707884356, -0.2497792542, 0.3696148992, 0.1445184201, -0.3072433174, -0.4929696321, -0.2234713435, 0.1468706578, 0.0272387248, 0.2472433001, -0.0569983982, 0.2250391692, 0.1466002762, 0.0512822941, -0.3249669075, -0.1563583612, 0.1272401214, 0.0378692336, 0.0823529437, -0.1206548437, -0.4654299915, 0.0243743379, -0.0410167016, -0.0223768707, -0.2515203059, -0.1795807034, 0.0025026335, 0.1760141253, 0.0290177055, 0.3748073578, -0.0623118803, -0.0429196656, 0.0252821818, 0.0009238265, -0.1133539826, 0.1886116117, -0.1212605014, 0.381711632, 0.3555001915, -0.2482014447, -0.3381771743, 0.2174439132, 0.1194718629, 0.0722381473, -0.0247971173, 0.4353025556, 0.1737557948, 0.0868725926, -0.4525139332, 0.1167607754, 0.1905515194, -0.1261232048, 0.4027772546, -0.1667660922, 0.3428407907, 0.5249506235, 0.3461028039, 0.3309941292, -0.2420708984, -0.0178686492, 0.1920125782, 0.1684710383, -0.2243760973, 0.1829428524, 0.2487547696, 0.0333352387, -0.0761646703, 0.359967798, 0.1959187239, -0.0136881936, -0.0975946113, -0.0059235808, 0.5347859263, -0.5172253847, 0.2831365764, 0.4529386461, -0.057820227, 0.1300517023, 0.395442754, 0.1173456162, 0.0406703651, 0.3292240202, 0.1746831536, 0.4738539755, 0.2645659149, 0.0243520867, 0.3100907207, 0.1382423043, -0.0397080295, 0.5465515256, -0.0578759238, -0.0461781695, 0.1481500864, -0.0553204753, 0.1089121997, -0.3581897318, -0.0374864079, 0.2535928786, -0.2680293322, 0.2417783886, -0.2399579883, -0.1268057972, 0.1208408549, -0.2076501101, -0.1561166048, -0.1841451675, 0.4952985048, 0.1778951436, 0.0020786955, -0.0086864922, 0.2054045647, -0.1518831104, 0.0813431516, -0.1358141452, -0.0478565209, 0.1461293101, 0.0562457517, 0.0846261084, 0.611533165, 0.2377919555, 0.3204871118, -0.299259007, 0.1391635984, -0.2391995341, -0.2748884559, 0.0035138647, 0.4170588851, -0.2262091041, -0.1757848412, 0.2870970964, 0.1712304056, -0.0557433814, 0.3106922805, 0.0455809906, 0.2401366234, -0.2947983146, 0.5732991695, 0.4169825017, -0.0019925635, -0.0044027641, 0.1076354533, -0.2917106152, -0.0711556599, 0.5056442022, -0.5531603098, -0.0742896199, 0.0058250544, 0.0713659897, 0.0575752109, 0.10993471, 0.1549496055, 0.0550574027, 0.0522362478, -0.0616671704, -0.1931785643, 0.0594417043, 0.18100743, -0.0620457977, -0.3174683154, -0.0042771818, 0.1144713461, 0.3869264722, 0.0939158648, -0.2907922864, -0.2940659523, 0.3518128991, -0.111602217, 0.1389458179, 0.1381021589, 0.3081414402, 0.0559722371, -0.2472727001, 0.0599419847, 0.2529647648, -0.0038804233, 0.0938818231, 0.3810407817, 0.1513929218, 0.1739982069, 0.1588207334, 0.2628675401, 0.4578670859, -0.0803374052, 0.2029059827, 0.3254692852, 0.01968964, -0.2989491224, 0.4337382019, 0.1688088179, -0.0758025125, -0.4323502183, -0.20015122, 0.0462303944, -0.1567063928, -0.0028266811, 0.0878174752, -0.7870509624, -0.1079169288, -0.2266783416, -0.018590387, 0.0197739527, 0.2365134507, 0.0901065022, 0.1004437953, -0.1907731146, -0.2095699161, 0.1808407456, -0.1625895202, -0.3482759595, -0.2039560676, -0.2373825014, -0.3200112283, 0.0670423508, -0.327146858, -0.0818441659, 0.3845260739, -0.1479870826, 0.3348053992, 0.276091665, 0.0717197359, -0.0876516402, -0.2140064389, 0.5781517029, -0.1806403399, -0.0973056927, -0.2706848681, -0.0791069418 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
We can be pretty flexible and not impose any constraints for transforms. Moreover, this library is designed to support datasets bigger than memory. The datasets are loaded from the disk via memory mapping, without filling up RAM. Even processing functions like `map` work in a batched fashion to not fill up your RAM. So this shouldn't be an issue
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
59
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). We can be pretty flexible and not impose any constraints for transforms. Moreover, this library is designed to support datasets bigger than memory. The datasets are loaded from the disk via memory mapping, without filling up RAM. Even processing functions like `map` work in a batched fashion to not fill up your RAM. So this shouldn't be an issue
[ -0.5401790142, -0.0189926215, -0.144008249, 0.1232814044, 0.4372493923, -0.2170050591, 0.2453126311, 0.193660751, 0.219227314, 0.1304917336, 0.0615158863, 0.1877675354, -0.2603259385, 0.0723871291, 0.0481921658, -0.011597842, -0.0782924369, 0.2525765598, -0.5557224154, -0.0573628955, -0.371393472, -0.157370463, 0.0135660172, -0.1440853775, -0.032893613, -0.2428775877, 0.0715212077, -0.0137664247, -0.1378086209, 0.0672599226, 0.3069248497, 0.1395094693, -0.1308077127, 0.3437946141, -0.0000978967, -0.0323356465, 0.0386954322, -0.1293641329, 0.0463971384, 0.1244559214, -0.1310037524, -0.11048536, -0.1095084995, -0.3612024486, -0.2468071878, 0.0423797183, 0.0283963773, -0.3146082461, 0.2295784652, 0.1305737942, 0.3543733358, -0.1699276716, -0.1962250471, -0.0539743342, 0.2161227167, 0.1079376787, -0.0890015662, -0.1663479507, 0.266572684, 0.2456258684, -0.3121326268, 0.2356687635, -0.0461948439, 0.0065838345, 0.5308230519, -0.1477861553, 0.0746076778, -0.1883720756, -0.0439592227, 0.2111917883, 0.302406311, -0.3585548699, -0.1495786011, -0.1898489743, -0.0642792955, 0.1807123274, 0.1255578697, 0.0910863355, -0.1162971929, 0.1236250103, -0.2932364345, -0.2158869803, -0.1858691424, 0.024688242, -0.3864736855, 0.0843882784, 0.0810552612, -0.0198896471, 0.2320850641, -0.1219940931, 0.0640958175, 0.2333989292, 0.0315567292, 0.0362049416, -0.1075839996, -0.4280066192, -0.3164810538, -0.010484932, 0.1404886395, -0.0769903809, 0.0305278115, 0.2146949023, 0.0684989765, 0.0404781923, 0.0683709905, 0.2132994682, -0.3577131629, 0.062938787, 0.3471934199, -0.2959290743, -0.0947281495, 0.142193675, 0.1777655184, -0.1919907779, -0.0374677591, -0.1878684461, -0.1458265334, -0.1118826419, 0.0392557085, -0.1497555971, 0.2410175949, 0.281652689, -0.054895442, 0.3797281981, 0.0164871998, 0.1225933135, 0.4158709049, -0.0704301745, -0.1016627774, -0.0267891474, -0.1234514341, 0.1682240665, -0.2392304242, -0.1178171188, 0.1755445451, 0.2547559738, -0.0090132207, -0.1393262893, -0.0014683452, 0.4502186477, 0.145450294, -0.1632993817, 0.371144712, 0.3215204477, -0.3073902428, -0.2312166542, -0.1824295074, 0.1355636418, -0.2248718292, 0.2574270666, -0.0100252163, -0.0601822548, 0.2163718343, 0.3365977108, -0.0965412483, 0.0889815167, -0.0164760947, 0.14122504, 0.0578205325, -0.2100097537, 0.0223716125, -0.1844258159, -0.1561109424, -0.1307397783, 0.004221322, 0.0234846231, -0.3599259257, -0.1965468377, -0.0161800403, 0.0299437996, 0.0393637009, 0.2355711758, -0.2584235668, -0.0666705891, -0.1518524438, -0.0959847793, 0.5436255336, -0.0873640403, -0.5102760792, 0.171672374, -0.3071720004, -0.2066994756, 0.0392221548, 0.5570350885, 0.3030121028, -0.0606620088, -0.2779817581, 0.4389855862, -0.0120841758, 0.2393548787, -0.1522183716, -0.3807235062, 0.224146232, 0.0999746323, 0.4358038008, 0.0695943981, -0.0042080833, 0.4479365945, 0.0191992279, -0.3247075379, 0.228727594, 0.0903669819, 0.2029692978, -0.1758003682, 0.0514800437, -0.3881592453, -0.0299576707, -0.0194906034, -0.1231637895, 0.174648881, 0.3121493757, -0.063331984, 0.0939696729, -0.2406128198, 0.0662420169, 0.0523941703, 0.3378176093, -0.0506484434, 0.256093353, -0.3789429963, 0.0967583731, 0.3695112467, -0.0359234251, 0.0900141746, -0.4097872078, 0.0930522233, 0.0395772569, 0.0411273576, 0.0174412448, -0.0858046487, -0.159468472, -0.1214014292, 0.0888801143, 0.0884448215, 0.1423339993, -0.0831505656, -0.22515288, 0.3935477138, 0.2967002988, -0.0864636898, 0.4523482323, 0.2250223011, 0.1164680645, -0.0540584512, -0.2326425016, 0.3532535136, 0.0675225258, 0.1176047847, 0.0894608721, -0.035450846, 0.3178417087, -0.2105883807, -0.0916877612, -0.2391739488, -0.080382131, 0.1462731957, 0.2722610235, 0.2418059856, -0.1434708834, -0.1761649847, 0.2574056089, 0.0955723897, 0.2356153578, 0.2567685843, -0.1985844374, 0.1687791646, -0.0230588038, 0.392904073, 0.4536698759, 0.3772836328, -0.0321456529, 0.057063017, -0.033480458, -0.128506586, 0.174348399, -0.0611711256, 0.2145087123, -0.0075750398, 0.0224813018, -0.084852457, -0.3140359521, -0.220280394, 0.0788236782, -0.0040891804, -0.1285697222, -0.082588464, -0.2104412615, -0.2082370967, -0.1002785787, 0.1774027646, -0.1065199077, 0.1337844878, 0.146956116, 0.087012887, -0.1986064464, 0.1812261194, 0.0617286414, 0.3059972227, 0.1493957043, -0.2343180329, -0.0103396745, 0.0442342982, -0.0209345762, 0.283932209, 0.0812602118, 0.030154286, 0.357311666, -0.0325137265, 0.0159159433, -0.1075668857, -0.4170720279, 0.0219913069, 0.0508670434, 0.1327100545, 0.2242882401, 0.1550284177, 0.1264586002, 0.054544773, 0.0223777499, -0.2790863514, -0.3149187863, -0.0249225274, -0.059200909, 0.1274022162, -0.283010602, -0.2389218807, -0.0929964185, -0.5055264831, 0.2309704125, 0.1451748759, 0.0573421903, 0.002879133, 0.2555831075, -0.1754461229, 0.1253506243, 0.1729648709, -0.2668439746, 0.0231138412, 0.4328384697, -0.0556159429, -0.2987732589, -0.1864279211, -0.2419089824, 0.2163753361, 0.5209240317, -0.4316139817, -0.0116056306, -0.2875869572, -0.0104510579, 0.010865584, -0.0455287769, 0.5706766248, 0.0471073277, -0.2182016075, -0.0778356791, -0.1106933951, 0.0597554557, 0.150664106, 0.0165266506, -0.0133856982, 0.2726938725, 0.0209518876, 0.2372092158, -0.4598436654, -0.3791241646, -0.0370534733, 0.1754180044, 0.1323391646, -0.0176742021, -0.1120068878, 0.1540554613, 0.1146939918, -0.1631686091, 0.1865587234, -0.0414882079, -0.4385231137, -0.1449549347, -0.1328936219, 0.0028605061, -0.2513262033, 0.3997886181, 0.0662713647, -0.0650795624, -0.0767927542, 0.1190416813, -0.1788248718, -0.0431989133, 0.1782182008, 0.1142592356, -0.0087260604, -0.0735407919, -0.0310926512, 0.1208599731, -0.1072632745, 0.1333225667, -0.1606765836, 0.0035682141, -0.0728181303, -0.2996203899, -0.1183585897, -0.1653676182, 0.581553936, 0.0500494055, 0.0715658292, 0.1510834545, -0.3680042922, -0.3692411482, 0.1909377575, -0.2953854203, -0.191587165, 0.0202093627, 0.2334667295, -0.1936124265, -0.0312029943, -0.050427299, 0.1912976056, -0.3580101728, -0.1948175877, -0.0154853314, -0.1780781001, -0.3872001469, 0.1539220363, 0.1001419574, -0.0908320621, 0.0161032416, -0.2437741905, -0.325971812, -0.3354437053, 0.2459119409, 0.012738511, 0.0944810882, -0.128044948, 0.1640540659, -0.1807053536, 0.3554742932, 0.2075028419, 0.0669780076, 0.1276004165, -0.0331707411, 0.1978536248, 0.004381082, 0.0737056881, 0.1707675755, 0.0512658432, -0.0757458508, -0.1046158746, 0.224543944, -0.502594173, 0.2269373536, -0.1176155135, -0.0372035541, -0.1397036016, -0.3046919703, 0.3326458335, 0.1389249116, -0.2194042057, 0.0952933282, -0.1129676849, -0.5864388347, 0.294036299, 0.6617203951, 0.9825020432, -0.0968458131, 0.1830245107, 0.0236186162, -0.0951497331, 0.2489518672, -0.3341436684, 0.1913648397, -0.2713856995, -0.3456098139, 0.0392465964, -0.0726354644, 0.0903851613, 0.2218269408, -0.4011259377, 0.0230281483, 0.0346585363, -0.2270579636, -0.1472186148, 0.2260575145, 0.0816655904, -0.5389626026, -0.1904728115, 0.34006688, 0.0100835962, -0.0979932994, -0.0679819137, -0.1252211034, -0.0838792548, 0.0722065642, -0.0511195511, -0.1457973123, -0.391018033, -0.0269339699, -0.4349459112, -0.0961696357, 0.2528388202, 0.1495360881, 0.010297263, 0.410608083, -0.0813752487, 0.144585669, -0.1695800722, 0.2668820322, -0.0444289893, -0.0862691924, 0.4258619249, -0.1075084358, -0.0176085066, -0.089133583, -0.0558732599, -0.2663670778, 0.2118803561, -0.1330446154, 0.1236125752, -0.3339236081, -0.0306277182, 0.0376901403, -0.1858452111, 0.0236257836, 0.2972595096, 0.0953726172, -0.1094945371, 0.4886614978, 0.374289602, -0.2671436667, -0.2493673116, 0.306859076, 0.4510113895, 0.1679682434, 0.0681989491, -0.207934007, -0.3289977014, -0.461337477, -0.0386338308, 0.14755328, -0.156603545, 0.3310773373, 0.0176410824, -0.4553515315, -0.0362946205, -0.0112306504, 0.2609973252, 0.1042573601, -0.2485149801, -0.1195608452, -0.5757895112, 0.1166740507, 0.0600397848, 0.3340652287, -0.0717348456, -0.0291898269, 0.0409151353, 0.1309845597, -0.5081638098, -0.0618289448, -0.1701749563, 0.239206478, -0.0906189382, 0.0401868112, -0.1995502412, 0.1164790168, 0.1786226183, 0.1987209469, -0.3415723741, -0.3561057746, 0.026503304, 0.0729613826, -0.0851017833, 0.0381086692, -0.0057899472, -0.1136714444, -0.1005756184, -0.1748030931, 0.2322603464, 0.0757037997, -0.1358757019, 0.1617117077, 0.3516884446, -0.1904280335, -0.1061379388, 0.2564586401, -0.022988487, 0.1287887096, -0.0762275234, 0.2248428613, 0.1289893091, -0.0755506009, -0.0370388068, 0.1613633484, 0.1092057154, 0.0161625184, 0.2429389656, 0.0872150362, 0.0296292771, 0.6459556222, 0.2213811129, 0.1402513534, -0.0733433962, -0.1104497686, 0.2113897502, 0.4208186269, -0.3107748628, -0.1477650106, 0.1610413194, -0.1849021316, 0.298751086, 0.3614837229, 0.059765324, -0.109707661, 0.1133993641, 0.0597117059, 0.2657985985, -0.2369617522, 0.1515231878, 0.2913593948, -0.1258792579, -0.1349882483, 0.3201213181, 0.2068947405, 0.2180116028, 0.4387916923, 0.0376221426, 0.3958039582, 0.0772475675, 0.0723350793, 0.0071842605, -0.0593901649, 0.0840390846, 0.5973976851, -0.0134152388, 0.1384307742, 0.1193290651, -0.0774089918, 0.1104001552, -0.2957305908, -0.1641553789, -0.0149180098, -0.4132997394, 0.2373101413, 0.0107653895, -0.1997172683, -0.1087911204, 0.0860127956, -0.0846303105, -0.284093231, 0.5777484775, 0.0436371155, 0.0698707774, 0.2187253684, 0.2641715109, -0.1287506968, -0.095583193, -0.2554258406, 0.0436865129, 0.1652055681, 0.0027947139, 0.2931783199, 0.317193985, 0.0247330405, 0.2477006316, -0.1783775687, 0.1587842405, -0.022343684, -0.147396028, -0.4861269593, 0.1307810843, 0.0130431335, 0.1222269014, 0.3329810798, 0.3580688834, -0.2723880112, 0.057344947, 0.0822000951, -0.0306332558, -0.0987129509, 0.1574558318, 0.3358227313, -0.1905292273, -0.1132156551, -0.1025379077, -0.1873041391, -0.0711834133, 0.2527501881, -0.6251535416, 0.1733266264, 0.1061770916, 0.1627587527, 0.0676862374, 0.5246926546, -0.1559080034, -0.0697747692, -0.0372014046, -0.2199511826, -0.303678304, 0.1621911228, 0.01765191, 0.0907673016, -0.260381192, 0.1454750896, 0.1455654949, 0.0833839253, -0.0279175993, -0.2130621076, -0.1423190236, 0.0992485881, -0.182221517, 0.0495415255, 0.0438817851, 0.1255906224, 0.2152688205, -0.3644395173, 0.0570650138, 0.0120621314, 0.3014872074, -0.0124863023, 0.246790275, -0.0544574857, 0.3218400478, 0.467938602, 0.150518775, 0.4137199819, -0.1625352502, 0.1229261011, 0.1877684593, 0.0470764451, -0.3208536804, -0.0584470555, 0.3024862707, 0.0949111953, -0.1568128616, 0.02386971, 0.0055290181, 0.0495617464, 0.0280379839, 0.1776483208, -0.3475266993, 0.1490117013, -0.0308272801, -0.0213896353, -0.0929819122, 0.2472133636, 0.0079181259, -0.2108102441, -0.1649527401, -0.4143650234, 0.255577445, 0.0093732839, -0.2656222582, -0.1167658269, 0.0128657371, -0.1665273756, 0.0643495098, -0.4184451401, 0.0568230972, 0.172401011, -0.1445016861, 0.0484214872, 0.085643433, -0.151088953, -0.260615021, -0.3129926324, 0.4690488279, -0.033630684, -0.1514239013, -0.2540898323, -0.2887400389 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
Ok thanks. But, Dataset has various flavors. In current design of Dataset, how the serialization on disk is done (?) The main issue is serialization of newdataset= Transform(Dataset) (ie thats why am referring to Out Of memory dataset…): Should be part of Transform or part of dataset ? Maybe, not, since the output is aimed to feed model in memory (?) > On Jul 7, 2021, at 18:04, Quentin Lhoest ***@***.***> wrote: > >  > We can be pretty flexible and not impose any constraints for transforms. > > Moreover, this library is designed to support datasets bigger than memory. The datasets are loaded from the disk via memory mapping, without filling up RAM. Even processing functions like map work in a batched fashion to not fill up your RAM. So this shouldn't be an issue > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
162
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). Ok thanks. But, Dataset has various flavors. In current design of Dataset, how the serialization on disk is done (?) The main issue is serialization of newdataset= Transform(Dataset) (ie thats why am referring to Out Of memory dataset…): Should be part of Transform or part of dataset ? Maybe, not, since the output is aimed to feed model in memory (?) > On Jul 7, 2021, at 18:04, Quentin Lhoest ***@***.***> wrote: > >  > We can be pretty flexible and not impose any constraints for transforms. > > Moreover, this library is designed to support datasets bigger than memory. The datasets are loaded from the disk via memory mapping, without filling up RAM. Even processing functions like map work in a batched fashion to not fill up your RAM. So this shouldn't be an issue > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe.
[ -0.3028286695, -0.0752466395, -0.0520500429, 0.2568612397, 0.4963203967, 0.033301089, 0.3464811146, 0.1359570026, 0.1084692329, -0.0489085689, 0.1433253288, 0.1807946265, -0.2497083545, 0.0995198712, 0.1433494985, 0.0294339936, -0.0367590338, 0.208275333, -0.6057528257, -0.1103784218, -0.2944286168, -0.1542577744, -0.1056891903, -0.1136090606, -0.0622640289, -0.1996252686, -0.1581869423, -0.1262419373, -0.2569141984, -0.0750121698, 0.4201373756, 0.0989704728, 0.1109474376, 0.562895596, -0.0001049531, -0.1980092376, 0.0629668012, -0.1417291313, -0.0416415855, -0.1271472722, -0.1105906814, -0.1241356134, -0.091463767, -0.3788443506, -0.251588285, -0.012632193, 0.0426659994, -0.1632641703, 0.2673304081, 0.1891236603, 0.2877258956, -0.2571978569, 0.0613154173, -0.1159946173, -0.0906340405, 0.4980594814, -0.2132179141, -0.1317691505, 0.1639420241, 0.2951176465, -0.1768623441, 0.1194917709, 0.0316157416, -0.0623989217, 0.6949884892, -0.1144898161, 0.1647529751, -0.341648072, -0.0474904925, 0.1770272255, 0.685839951, -0.4208052158, -0.2926061749, -0.197812885, 0.0413539037, 0.1125579998, 0.0736282617, 0.2918517292, -0.1023897603, 0.4228281677, -0.290636003, -0.1578571051, -0.2122658491, -0.0273610353, -0.3538394868, -0.0272981077, -0.048569683, 0.0704355091, -0.0280701872, -0.0896413475, 0.1152465194, 0.0687423572, 0.0859416574, 0.005337453, -0.0471009649, -0.4889360964, -0.2492949516, -0.1057617217, 0.1770291328, 0.0206169374, -0.1055531427, -0.0825051442, 0.0663289279, -0.0880442932, 0.1752187759, 0.3654628992, -0.1550440192, 0.1602373272, 0.0713833272, -0.3452311456, -0.0499750823, 0.0044702431, -0.0236583818, 0.038021367, 0.2002761364, -0.0101096034, -0.0094333906, -0.0741236955, 0.1005781516, -0.2199298441, 0.1885886192, 0.1436039656, -0.1644639969, 0.2562832236, 0.1343159378, 0.2364141494, 0.2878933251, -0.0608225577, 0.072854504, -0.1835635602, -0.0920747444, 0.2097064704, -0.3946239352, -0.0316819064, 0.061486464, 0.2625038922, -0.0984270945, -0.1631223708, -0.1027052552, 0.2932381928, 0.0450088456, -0.2885058224, 0.3700776994, 0.2936202586, -0.5175170302, 0.0034238286, -0.0082309386, 0.0908266082, -0.2388361841, 0.388787061, -0.0808292106, -0.056878183, 0.1232485548, 0.2654305398, -0.056801796, 0.1304446459, -0.2425499558, 0.2334432155, 0.2355145514, -0.114049077, 0.0523458235, -0.2796916962, -0.0145569621, -0.2248253673, 0.0019178414, 0.1308250427, -0.5505943298, -0.1371420175, -0.0929638296, 0.0054794052, 0.2257184684, 0.2538051903, -0.2389270216, 0.2112431675, -0.2781807482, -0.1598564684, 0.5308234096, -0.07172966, -0.3687422872, 0.2272962034, -0.3469467163, -0.2316669375, 0.1396827102, 0.3911379278, 0.3910189569, -0.07391949, -0.3169718683, 0.3255686462, -0.1547597796, 0.0172961913, -0.1826124489, -0.2983470559, 0.414689362, 0.0043987627, 0.3740957081, 0.317222178, -0.0899919122, 0.5544755459, 0.036176227, -0.164274767, 0.2736386359, 0.0395085588, 0.3699333668, -0.218734771, 0.0669551268, -0.3890494406, -0.1323822588, -0.0164718851, 0.0716962889, 0.2384102941, 0.1521543264, 0.042567268, -0.0351380706, -0.1884233057, 0.1005935445, -0.1441039741, 0.2575833499, -0.0682224929, 0.2908597291, -0.3608986735, -0.1201938689, 0.3291367292, 0.0169593226, 0.0997304544, -0.4722498357, 0.1352905929, -0.1037475392, 0.0637203828, -0.1334821731, -0.1195376664, -0.1471015662, -0.2059050947, 0.0276815537, 0.045599971, 0.1006959602, -0.0727771744, -0.1369665414, 0.4407843649, 0.3833369315, -0.2213460654, 0.4104965627, 0.1753508896, 0.1971820295, -0.1581739783, -0.1563642025, 0.3226000071, 0.0591878556, 0.0539628975, -0.0045889863, -0.0444101356, 0.274935782, -0.1846643388, -0.149500221, -0.2213106453, -0.0930392742, 0.1528903991, 0.2064582109, 0.267208457, -0.0180213507, -0.0872308314, 0.2759073377, -0.0993306562, 0.1754233092, 0.2399030775, -0.2363842875, 0.0967985541, -0.115592964, 0.3368809819, 0.4515925646, 0.2688372731, -0.0172092356, 0.0994060263, 0.2248303741, -0.1374187171, 0.2106561959, -0.0101233227, 0.3061110675, 0.0928652659, -0.0435660109, 0.0148411244, -0.142631799, -0.2731766701, 0.2011457384, 0.1052609384, -0.0868095532, -0.0827876925, -0.0791173577, -0.0586187392, -0.3210161924, 0.1139511988, 0.001252897, 0.1354948431, -0.0451802872, 0.0133053828, 0.067871429, 0.1548039168, -0.0258904509, 0.2285893857, 0.1403194815, -0.0222017486, -0.0016005072, 0.0719156712, -0.01295642, 0.1860071123, 0.0082579246, -0.0523208268, 0.3632895947, 0.023742266, 0.0723288804, -0.0993586555, -0.3952202499, 0.100798808, -0.0392053798, 0.1362580955, 0.2487013042, 0.1583067775, 0.0638481826, 0.0739586279, 0.1003377736, -0.1901111603, -0.274271518, 0.0383122936, -0.0836613253, 0.1695397645, -0.173730433, -0.379355222, -0.2794137597, -0.3382385373, 0.1888038218, 0.0238642134, 0.0039379662, 0.101807721, 0.0851489678, -0.1637769789, 0.1167968065, 0.1359992474, -0.201331079, 0.0089229578, 0.3245042861, 0.0960313901, -0.3421608508, -0.1381982714, -0.1543824971, 0.0102082286, 0.3889782727, -0.3169548213, -0.0313842483, -0.2151265889, -0.0285464451, -0.0322706401, -0.1737959534, 0.6250016689, -0.0079115862, -0.1444299072, -0.0402278267, -0.112506561, -0.0756175146, 0.1865358651, 0.1270047724, 0.0539277531, 0.415084213, 0.1548914611, 0.1784223914, -0.2313496917, -0.3481870592, -0.1597624719, 0.2163900584, 0.0208488032, -0.0015362686, -0.2815901935, 0.2986258566, 0.0867763758, -0.5257765055, 0.0635799393, -0.1433748901, -0.3126087487, -0.0938735902, 0.0415995866, -0.0591738261, -0.1023657843, 0.3085528612, -0.0628909543, -0.0016259045, -0.0956037194, 0.0832499862, -0.0903696641, -0.0007778881, 0.1365067363, 0.1792053282, 0.044802282, -0.0823963583, -0.279070884, 0.0333370417, -0.17547521, -0.0688805729, -0.2427610159, 0.1018721685, -0.0368376002, -0.208667025, -0.0448291153, -0.04717049, 0.8162035346, 0.1139855832, 0.0306035709, 0.0867244601, -0.3628523648, -0.3229177594, 0.0645706877, -0.3020894229, -0.2120194435, -0.0534543581, 0.2099131346, -0.2198082507, -0.0817435682, -0.0645164475, 0.300118953, -0.3440362215, -0.3083963394, 0.0877129361, -0.2214541435, -0.3976358473, 0.0095791193, 0.1840383708, -0.0245556962, 0.0119084474, -0.1444052011, -0.220102936, -0.1155396178, 0.2485005111, -0.1722964346, 0.0177515987, -0.1120068729, 0.1586960107, -0.1353850812, 0.3628402054, 0.4106985033, 0.0494740084, 0.1806004047, -0.2303605825, 0.2115715742, -0.0082222661, 0.1288545281, 0.0311819389, 0.0427934416, -0.2118959725, 0.0750581026, 0.149268195, -0.6959338784, 0.0593153536, -0.1067283973, -0.1500358284, -0.2943806648, -0.445271641, 0.2117901444, 0.1246164516, -0.1842980385, -0.0401222706, -0.0634939075, -0.6139559746, 0.3886000514, 0.6128232479, 1.1169223785, -0.1842898577, 0.1669409275, -0.016899135, -0.0058911424, 0.3774904907, -0.2371509522, 0.1998218596, -0.3550824523, -0.3183298111, -0.1002991423, -0.1418187618, 0.1677477956, 0.3499816656, -0.4512494504, 0.0392487124, -0.030631464, -0.0302704424, -0.0552793741, 0.2415483296, 0.1953423768, -0.5374816656, -0.1339254677, 0.288277775, -0.1208222583, -0.0347631052, -0.0453361161, -0.1534031034, -0.0932943299, 0.1907481551, -0.1508699656, -0.0672847852, -0.3210914433, 0.0556671135, -0.4634634852, -0.199761495, 0.3177561164, 0.2684036493, 0.1501515955, 0.2492229789, -0.0224042162, 0.0255252905, -0.2658393979, 0.2352415621, -0.0859216601, -0.0709663332, 0.5328397751, -0.0623402968, -0.051844392, -0.0348502174, -0.0688448921, -0.1706678271, 0.1275116652, -0.2459346652, 0.1342010051, -0.5031855702, -0.1402983069, 0.0312630236, -0.1325478703, 0.0143525805, 0.2422597408, 0.27454409, -0.183460474, 0.4280767441, 0.2632656693, -0.2569595277, -0.2040160447, 0.2488783896, 0.5733264685, 0.1230105162, 0.2374248207, -0.1156908721, -0.3798987567, -0.4102582037, 0.1769218445, 0.2932387292, -0.2035413831, 0.3463570178, 0.0076652979, -0.1694404036, -0.0017322006, -0.0573739149, 0.3999808133, 0.0833483189, -0.3539372683, -0.1449836344, -0.5922728181, 0.0875967517, 0.0081702927, 0.1891019493, -0.0583882853, 0.0969300717, 0.1270014346, 0.0552083552, -0.4772726297, -0.1786123812, -0.1551099867, 0.2088939697, -0.091711536, -0.0565584525, -0.2293164283, 0.0196994841, 0.112101391, 0.0307322126, -0.2857630253, -0.2874866724, 0.1481780559, 0.1052135006, 0.1582014263, 0.1143803224, -0.198806569, -0.1584183872, -0.1051569358, -0.1556759924, 0.1166792735, 0.1672087908, -0.0269313473, 0.373791039, 0.3921232224, -0.1973209679, -0.3632748127, 0.0381703153, 0.0736832693, 0.1335456073, -0.0087956032, 0.2220735103, 0.2070567161, 0.0143725015, -0.5705884099, 0.2322947383, 0.1467025876, 0.0700938255, 0.3555319309, -0.084288545, 0.2152722776, 0.7550533414, 0.2347370684, 0.0145712318, -0.0752271637, -0.0008537396, 0.1678281277, 0.32098943, -0.2092947364, 0.0889708251, 0.1455572397, -0.2011817247, 0.0874310583, 0.2652136087, -0.0376695283, 0.0738559738, -0.0993820503, -0.0216867551, 0.6841112971, -0.3670735061, 0.1809158921, 0.4650239646, -0.0427682623, 0.0162018724, 0.4952476621, 0.2627804577, 0.1423285902, 0.454531908, 0.1572255939, 0.379499197, 0.2466205955, 0.0828617513, 0.2041733712, 0.0437723622, 0.0797860399, 0.6636735797, 0.0379639678, -0.069757469, 0.0407789536, -0.1790005565, -0.0601508133, -0.4161747694, -0.1353781223, -0.0135040805, -0.4005987644, 0.291546315, -0.1124868318, -0.0684108883, 0.0578969754, -0.0972616076, -0.1537034363, -0.2673508227, 0.4747745395, 0.0462135449, -0.1205841079, 0.195179835, 0.154754281, -0.0755720362, 0.0101368846, -0.2884207964, -0.0650606006, 0.1735551655, 0.0605659187, 0.0986791477, 0.5237457752, 0.0263673868, 0.2559472322, -0.0822417736, 0.0629138499, -0.0508798324, -0.2541759014, -0.2453350425, 0.3532659709, -0.1296036541, 0.1875945777, 0.1301015764, 0.2976490557, -0.1622903645, 0.1654858589, 0.2738924026, 0.0677083656, -0.1761021912, 0.2827882171, 0.182978034, -0.2444881201, 0.0175652243, 0.0409468152, -0.301263541, 0.1206569001, 0.4616491497, -0.6105455756, 0.1043525264, 0.1044351161, 0.1269515902, 0.0615119562, 0.2328919768, 0.11640919, -0.133468762, -0.0879254416, -0.0016164397, -0.2138327956, 0.2222236246, 0.0722435862, 0.0310863238, -0.2169959694, 0.2303780913, 0.2244079113, 0.1264851093, -0.2505664825, -0.3092606962, -0.2979166508, 0.2071536332, -0.0954663903, -0.0076388656, 0.0572799966, 0.3779461086, 0.0538817309, -0.2726293206, 0.1260622293, 0.1939678788, 0.1159631386, -0.0036791004, 0.2997325957, 0.0336137488, 0.2456907481, 0.3860703707, 0.1819101274, 0.4176516235, -0.0400886685, -0.0088741314, 0.2440116256, -0.0818878636, -0.2122548372, 0.2055050433, 0.2114606202, 0.1955601871, -0.2826954126, 0.0230861735, -0.0655235127, -0.1057369336, -0.1479047388, -0.0403794348, -0.6305208206, 0.0302139428, -0.1264181733, -0.2030178159, 0.0873139054, 0.2018499225, 0.0949387774, -0.0717174113, -0.1438317746, -0.3844315708, 0.2091500163, -0.0003155727, -0.3548848033, -0.129417032, -0.1019817144, -0.1853729039, 0.0868706778, -0.5133615136, 0.1284308136, 0.3005840778, -0.01065927, 0.0992453918, 0.1067641899, 0.0080758324, -0.145776853, -0.2062026858, 0.7358554006, -0.2172155827, -0.192462936, -0.2694467306, -0.1281161457 ]
https://github.com/huggingface/datasets/issues/2596
Transformer Class on dataset
I'm not sure I understand, could you elaborate a bit more please ? Each dataset is a wrapper of a PyArrow Table that contains all the data. The table is loaded from an arrow file on the disk. We have an ArrowWriter and ArrowReader class to write/read arrow tables on disk or in in-memory buffers.
Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit).
55
Transformer Class on dataset Just wondering if you have intenttion to create TransformerClass : dataset --> dataset and make determnistic transformation (ie not fit). I'm not sure I understand, could you elaborate a bit more please ? Each dataset is a wrapper of a PyArrow Table that contains all the data. The table is loaded from an arrow file on the disk. We have an ArrowWriter and ArrowReader class to write/read arrow tables on disk or in in-memory buffers.
[ -0.3604477048, -0.0561249405, 0.0116533022, 0.2704980373, 0.3946088254, -0.0971963257, 0.3508632779, 0.048223, -0.1000289321, -0.1611097902, 0.13179335, 0.3815631866, -0.3154996932, -0.0833917484, 0.2542790174, -0.2325900346, 0.0182950441, 0.4430122375, -0.3059170544, -0.1537893265, -0.2024313062, -0.2975796163, -0.1411011368, 0.1563541144, -0.1086619049, -0.1525425166, -0.1539613456, -0.3630878627, -0.3081543446, -0.1566581726, 0.6911966801, 0.051129397, 0.0235323589, 0.5484088659, -0.0001298558, -0.0235748254, 0.0727149844, -0.1433799416, 0.1298895776, -0.1923113912, -0.2210621983, -0.0338291451, 0.1811140031, -0.3892241716, -0.3804796934, -0.2979854345, -0.0040939529, 0.0515285693, 0.5385867357, 0.1942200661, 0.0866089687, -0.3026255965, 0.0551641658, 0.106851086, 0.2160899341, 0.3861624002, -0.2014033794, 0.0175137613, 0.1515752375, 0.2822317183, -0.1515286714, -0.1318754852, -0.1761913747, -0.0272741262, 0.8690389395, 0.0244410653, 0.150945276, -0.3632724583, -0.2043596059, 0.2908259332, 0.7759717107, -0.5236784816, -0.1550634354, -0.0679515749, 0.1838045865, 0.1550902128, 0.0083907209, 0.2853397727, -0.1065250188, 0.219532147, -0.1110388562, -0.2603001297, -0.5028030276, 0.1028026938, -0.521472156, 0.145786345, -0.0008759059, 0.1302549094, -0.0523234755, 0.0741433352, 0.4201741219, 0.0259790476, 0.076991342, 0.2010128796, -0.1059709489, -0.4257586598, -0.4286720157, 0.1216744259, -0.0518273376, 0.0706447884, -0.0520826168, -0.2472426742, 0.1668997109, 0.0298988149, -0.0434881821, 0.2679724097, -0.0275976453, 0.3352457285, 0.0658625811, -0.3162095845, -0.1533958912, 0.1382796466, -0.0609802119, -0.2558610737, 0.2248512506, 0.0547071211, 0.1456772536, -0.0902905464, 0.1243002191, -0.2215957046, -0.0831004903, -0.1453958303, -0.2076645195, 0.1542184651, 0.2172251046, 0.0267331302, 0.2401556671, 0.28799963, 0.1310456097, -0.2053762078, 0.0802456215, 0.2888299525, -0.4228101373, -0.1289697737, 0.0684532896, 0.1690240502, -0.3287169039, 0.0584953241, -0.2053341866, 0.2638600767, 0.0007683743, -0.3211139441, 0.251339823, 0.339692086, -0.470418632, -0.1540030241, 0.1538814306, -0.1303742975, -0.2196122855, 0.6994736195, -0.1940138936, -0.0101559618, 0.0722470507, 0.0758101642, -0.0002415793, 0.0676920265, -0.2430966794, 0.1669622064, 0.2110144049, -0.1898813397, 0.3288910985, -0.3618780673, 0.1388190538, -0.2993892729, -0.0887863114, 0.11976026, -0.7907065749, -0.2019079179, -0.0145817362, -0.0888850391, 0.1847514361, 0.2106101513, -0.3140336871, 0.3180659711, -0.1191109866, -0.0558808185, 0.750140667, 0.0790745243, -0.3657933474, 0.1410097331, -0.4655134082, -0.308519125, 0.265013963, 0.483253628, 0.2425492257, -0.0904031619, -0.5927634239, 0.1744457483, 0.0494943336, -0.1906800568, 0.0165515263, -0.1602027267, 0.4672037661, 0.0275992416, 0.2890079319, 0.2277745754, 0.1661891341, 0.1460765749, -0.0301544219, -0.3529476821, 0.2881471217, 0.0217044577, 0.3800840676, -0.0008917306, 0.0429794751, -0.2651743591, -0.0465588979, -0.1168550849, -0.2143773586, 0.1626734436, 0.1254605204, -0.0859944969, 0.0401733816, -0.2185031325, -0.205340907, -0.1495806724, 0.027509518, -0.3762699664, 0.3453819156, -0.3231986761, -0.2045763135, 0.3623324633, 0.0327493139, 0.2075287849, -0.4299807847, 0.4497604668, -0.0851842538, 0.0589446127, -0.2049832791, -0.1223997623, -0.0487963371, -0.163194567, -0.0185092501, -0.0753685459, 0.0226381663, -0.2253185809, -0.0744988024, 0.3795032501, 0.2443033606, -0.6910707355, 0.6359955668, -0.0714268535, 0.1448137313, -0.2594785988, -0.1614319235, 0.4715094566, -0.0678141266, 0.2263818085, -0.2780799568, -0.0126203299, 0.1119964048, -0.3335905969, -0.1063085124, 0.1066767648, -0.0678896606, 0.1117890328, 0.2380767763, 0.2574706972, 0.0649885535, -0.1864877492, 0.1255375892, -0.1597722173, 0.2351242751, 0.4662559628, -0.2535705864, 0.2055149078, -0.1791692078, 0.3958259821, 0.6401336193, 0.1718729138, -0.3124701977, 0.2381340712, 0.0387582742, -0.040556591, 0.2972996533, -0.0722027197, 0.356467545, 0.0087074311, -0.1942995191, 0.1325375587, -0.0467175059, -0.2978571653, 0.0913366303, 0.1649498045, -0.2284641117, 0.0794565082, -0.0708312765, -0.1709195226, -0.4144055247, -0.0693009496, 0.0078861956, 0.2818387747, -0.0862998292, -0.1729286909, 0.3115228415, 0.0573584475, -0.157317251, 0.1988905817, 0.2325230837, -0.1714351773, -0.1934317201, -0.1323370636, -0.0262799654, 0.0499788448, -0.0661576465, 0.0992843285, 0.2294831723, -0.2976982594, 0.2404409498, -0.068098627, -0.2947520018, 0.0200558584, -0.0614588, 0.0227619056, 0.2964048386, 0.2587545216, -0.1494283825, -0.100493595, 0.1512504518, -0.1010405123, -0.3608797491, 0.1753011048, -0.2611687481, 0.085743852, 0.179305464, -0.1949102283, -0.2642946243, -0.0162402093, 0.1638753116, 0.1531157494, 0.043189086, -0.1628797948, 0.1258718073, -0.0752596781, -0.0013596858, 0.1007431224, 0.0334941931, 0.1717406809, 0.3631781936, 0.1620596498, -0.1893088818, -0.050324142, -0.2994686663, 0.0299038049, 0.3481310904, -0.4328605831, 0.0511917211, -0.1269655228, 0.1268927753, -0.1478937268, -0.0134340953, 0.6234856248, 0.1828055829, 0.0386357382, -0.0361396633, -0.0435907952, -0.063674137, 0.0167232957, 0.1787310243, 0.1327091306, 0.4253961742, -0.1283373684, 0.4583356977, -0.3325752616, -0.351434201, -0.1117647141, 0.1025600955, -0.0301403478, 0.1316377223, -0.3031072915, 0.0468976796, 0.1495184451, -0.3250490725, -0.036708571, -0.2300454378, -0.3270389438, -0.1254159808, -0.1680471897, -0.0972605422, -0.0746327788, 0.2453252226, -0.1871758401, -0.0418295674, -0.3286370635, -0.0422057547, 0.0985613242, -0.0402647257, 0.0708336309, 0.4972974658, -0.0194488764, 0.0159369018, -0.0106006917, -0.0361704677, 0.1508090347, 0.011837855, -0.251788497, 0.0891628787, 0.0207466371, 0.0858296454, 0.1704930663, -0.004848049, 0.7906426787, 0.1083033755, 0.1197155267, 0.2335703224, -0.1213773564, -0.4022601545, -0.0198284648, -0.3051269948, -0.1082741097, -0.1983742565, -0.1338707954, -0.2571403384, -0.0809811726, 0.083443664, 0.2612777054, -0.36656636, -0.4619601965, -0.036325898, -0.1190257221, -0.2458915114, 0.1944987923, 0.0799971372, -0.1093364581, -0.0393666402, -0.0230133925, -0.2647069395, -0.1444285065, 0.1912236363, -0.1442516148, 0.0128758978, -0.1909677237, 0.0757483691, -0.1049495488, 0.2206997275, 0.2764226198, 0.1894172132, 0.1228579879, -0.4357860088, -0.0072487248, 0.0178951342, 0.414827615, -0.1693428308, -0.0173244551, 0.03593833, -0.0527617, 0.1164668053, -0.1306699961, -0.0785841346, -0.0155790988, -0.0330440141, -0.2313091755, -0.3976021111, 0.3808095157, 0.1818298101, -0.140666008, 0.1326078027, 0.1900203973, -0.4119342566, 0.2964879274, 0.6284165978, 1.2970560789, -0.0131905368, 0.1864272803, 0.0619842112, -0.2102871984, 0.3373142481, -0.1518901139, -0.0384923816, -0.4181609154, -0.2754038572, -0.2438248545, -0.4449938834, 0.3696976602, 0.4542204142, -0.5083640814, 0.1258340776, -0.3970276117, -0.1894246936, 0.2302427292, -0.0515984148, 0.3095282614, -0.260706991, -0.0556336455, 0.0093169035, -0.1761721969, 0.1614351571, -0.0317940265, -0.1821479201, -0.231304571, 0.1159126908, -0.0707370713, -0.1343584955, -0.5251277685, -0.1050067097, -0.257415086, -0.4517546892, 0.6619156003, 0.3650531769, 0.0085172197, 0.0933763981, -0.0914668664, 0.0136747165, 0.0320891812, 0.1699227393, -0.042056147, -0.2248438448, 0.481806308, -0.1197161004, -0.1550887823, 0.1149733141, -0.1105772331, -0.1878627539, 0.3535495698, -0.1395905167, 0.2810426652, -0.4471855462, -0.0013258556, -0.0551853739, -0.0623598769, 0.039394211, 0.0522317998, 0.3158760667, -0.0062005054, 0.393951118, 0.2616310716, -0.3410565853, 0.0032759442, 0.1149436235, 0.6427350044, 0.1686144769, 0.2632626295, -0.270757705, -0.3766038716, -0.281481117, 0.1783769131, 0.2387968451, -0.5504468679, 0.0765406191, 0.10079059, 0.1389283985, -0.0252306964, -0.2555324137, 0.473734349, 0.3242428005, -0.4022260904, -0.4078062177, -0.435618192, -0.0340488888, 0.1871987581, 0.0944367349, 0.021251414, 0.2463049591, 0.4592217505, 0.189471215, -0.207747981, 0.0023555285, 0.0191597119, 0.1419451535, -0.0059981933, 0.07664074, -0.3780398965, 0.1673592329, -0.0596418902, -0.0741112977, -0.1974335015, -0.0940062627, 0.0293081813, 0.2297696918, 0.1479870975, 0.1731090844, -0.2500621676, -0.0883189365, 0.0347707644, 0.1502582133, -0.0807121173, 0.1347412914, -0.1625943333, 0.322853148, 0.6502876282, -0.2357776463, -0.7550690174, 0.0738102123, -0.0346312001, 0.0732266977, -0.1203267351, 0.2173371464, 0.1160208732, -0.0137327611, -0.4053085148, 0.1018754467, 0.138112396, -0.031444829, 0.3276543617, -0.1083856896, 0.3197028935, 0.1807754785, 0.0796794593, 0.307390064, -0.18532601, -0.0103970002, 0.2037962675, 0.0623653531, -0.3804177344, 0.0889640078, 0.2093674093, 0.0341317579, -0.1200723499, 0.2622239292, -0.0607718118, 0.0368851684, -0.1232183203, -0.0107913688, 0.3770452142, -0.2025354654, 0.0998255089, 0.7080125213, -0.2438093275, 0.0200612079, 0.6556426287, 0.1976282746, -0.113933824, 0.1668043435, 0.0704856142, 0.383641839, 0.1070642397, -0.1209114417, 0.2517763078, 0.1935067326, -0.029894786, 0.5973747373, 0.1824341565, -0.3034850657, 0.1653968096, 0.0709725991, 0.2092890143, -0.3164492249, 0.0587990023, 0.0830912814, -0.2280346453, 0.4133185148, -0.3233688474, -0.1060563624, 0.1456355304, -0.2937209606, -0.2135299742, -0.2387194186, 0.3417323232, 0.2120058089, 0.0011810514, 0.1860436499, 0.3911283016, 0.0605411232, 0.0301331636, -0.1463620663, 0.0761442855, 0.1960950494, 0.1521432102, 0.1496314108, 0.3942976892, 0.163265273, 0.2761096358, -0.1517457813, 0.0723582059, -0.0845652297, -0.277726084, 0.0282798577, 0.2136631608, -0.0870823115, -0.0966928378, 0.2509813905, 0.1430813521, -0.0689424276, 0.2980156839, 0.0975505337, 0.1908216923, -0.0413772203, 0.3700018525, 0.1667381823, -0.4476438761, -0.0104994122, 0.0961706564, -0.1885863096, 0.0903824195, 0.4336327612, -0.5003530979, -0.0619829819, -0.0532990508, -0.0292843524, 0.2192306519, 0.3402999341, 0.1301075667, 0.3010829389, -0.2303792685, -0.068795003, -0.3981024325, 0.2100149989, 0.104830578, -0.1326292455, -0.0165349692, -0.1178208366, 0.1112500057, 0.2530871928, 0.1387648582, -0.0464431159, -0.2062136829, 0.3914131224, -0.1201331317, 0.0649347529, 0.2923530638, 0.4736352861, -0.0678984523, -0.2138275951, 0.096194081, 0.3186487854, -0.0526873656, -0.0614871494, 0.2939698994, 0.1828927547, 0.4395685792, 0.3321736157, 0.0050550038, 0.8048738241, 0.0074448301, 0.4048200846, 0.5635285378, 0.0819563493, -0.2770853341, 0.3589553237, 0.2951973975, -0.1419908553, -0.2297154218, -0.1050801873, -0.027240647, -0.2122632563, -0.0760069415, 0.2210278958, -0.7341038585, 0.0497246683, -0.1359989494, -0.1535839885, 0.1058370247, -0.0475434549, 0.1144973263, -0.0552572459, -0.2382289916, -0.1923137307, 0.3582508564, -0.0686090589, -0.2909311354, 0.0617490299, -0.0494967215, -0.1480585337, 0.179173097, -0.2567448318, 0.0507354774, 0.4911367297, -0.0887822583, 0.2391616106, -0.0044988827, -0.1032991335, 0.0113006216, -0.1864333451, 0.8142257929, -0.329693377, 0.0203689951, -0.4875223935, -0.2599970996 ]
https://github.com/huggingface/datasets/issues/2595
ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets
Hi @profsatwinder. It looks like you are using an old version of `datasets`. Please update it with `pip install -U datasets` and indicate if the problem persists.
Error traceback: --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-8-a7b592d3bca0> in <module>() 1 from datasets import load_dataset, load_metric 2 ----> 3 common_voice_train = load_dataset("common_voice", "pa-IN", split="train+validation") 4 common_voice_test = load_dataset("common_voice", "pa-IN", split="test") 9 frames /root/.cache/huggingface/modules/datasets_modules/datasets/common_voice/078d412587e9efeb0ae2e574da99c31e18844c496008d53dc5c60f4159ed639b/common_voice.py in <module>() 19 20 import datasets ---> 21 from datasets.tasks import AutomaticSpeechRecognition 22 23 ModuleNotFoundError: No module named 'datasets.tasks'
27
ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets Error traceback: --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-8-a7b592d3bca0> in <module>() 1 from datasets import load_dataset, load_metric 2 ----> 3 common_voice_train = load_dataset("common_voice", "pa-IN", split="train+validation") 4 common_voice_test = load_dataset("common_voice", "pa-IN", split="test") 9 frames /root/.cache/huggingface/modules/datasets_modules/datasets/common_voice/078d412587e9efeb0ae2e574da99c31e18844c496008d53dc5c60f4159ed639b/common_voice.py in <module>() 19 20 import datasets ---> 21 from datasets.tasks import AutomaticSpeechRecognition 22 23 ModuleNotFoundError: No module named 'datasets.tasks' Hi @profsatwinder. It looks like you are using an old version of `datasets`. Please update it with `pip install -U datasets` and indicate if the problem persists.
[ -0.4680481851, -0.2621824741, -0.042259559, -0.1249681264, 0.2041024268, 0.1450623274, 0.440243274, 0.254309237, 0.2220352739, 0.1348175406, -0.2110196203, 0.208887428, -0.2797671258, -0.0780611262, 0.0812452063, -0.0557082966, 0.042319715, 0.2207898945, 0.0042472086, -0.1911054254, -0.0319739096, 0.1782887876, -0.3306013942, 0.2055012435, -0.3548135459, -0.2180954218, 0.0779373348, 0.0423674062, -0.0422456637, -0.243900001, 0.1500825882, -0.0146506159, 0.0705006272, 0.4818691015, -0.0001044994, 0.0464496724, 0.3543687761, -0.0503029674, -0.3212523162, -0.4222034216, -0.3318473995, 0.03482778, -0.0461381897, -0.1579176039, 0.1033446267, 0.1319061667, 0.1263464093, -0.1368253529, 0.5385986567, 0.3482381999, 0.284060657, 0.4131538868, 0.1567139179, -0.1267150491, 0.0197893456, 0.2498226017, -0.0403085314, 0.2972658277, 0.0895576403, -0.1931069791, 0.3447545767, 0.2893809974, -0.2390357405, 0.0636668429, 0.0798237994, -0.0465240851, -0.0414962545, -0.4952996373, 0.0744472146, 0.1321929842, 0.3183714151, -0.4103885889, -0.1930001229, -0.2050785869, 0.1101316959, -0.2723015845, 0.0004304819, -0.0182032324, -0.1323794723, 0.1062287167, 0.1162842661, -0.1884781271, 0.0229162481, 0.0268925708, -0.0017301701, -0.0327819213, -0.0579356998, -0.1311635822, 0.2440393716, -0.191358462, -0.1221392006, 0.2369029373, 0.1770551503, 0.5055813193, -0.4833756685, -0.1723851711, 0.2230118811, -0.2537675202, 0.0828390792, 0.0121458517, 0.0260496922, 0.1074605882, -0.1929784268, 0.2938084006, 0.1571601182, 0.2055592537, 0.2407594323, 0.308077544, 0.2705407739, 0.198329702, -0.0529230423, 0.1062482744, -0.2731647789, -0.1681417823, 0.2600198388, -0.0516612791, 0.4945360124, -0.1721236408, -0.552004993, 0.0645159855, -0.1806005985, -0.0973166078, 0.0437590927, 0.2725818157, -0.0597683974, 0.2682131529, 0.0992678702, 0.0980215669, -0.3125718832, -0.0839813575, -0.2083452642, 0.1204673052, -0.1339889914, 0.0375395976, 0.1968415678, -0.1620706022, 0.1611406803, 0.0262973532, 0.1254214495, -0.0994551778, 0.0607767887, -0.0804265514, -0.3314155638, 0.1653534174, -0.0582630336, -0.0140873948, 0.0445942618, 0.0253964551, -0.150464043, 0.086889714, -0.3289188147, -0.1916424185, 0.0417404957, 0.264373064, -0.0014751627, -0.259262234, -0.1852256209, 0.0195646416, -0.0112829674, -0.3709938526, -0.1309114099, -0.3607836366, 0.0661488324, 0.1108473018, 0.3037352562, 0.2592231333, -0.0803736597, -0.2542343438, -0.1639970094, -0.1825812906, 0.0133436257, 0.3237012923, -0.008494732, 0.1405988038, -0.0637405589, 0.4380908608, 0.2472982854, -0.4526940882, -0.2491374463, 0.1340448558, 0.0961463153, 0.0678055063, -0.1399043053, -0.2147602439, 0.1372887194, -0.0111433659, 0.3468579948, 0.1733139157, -0.0133901453, -0.1076782867, -0.0589141436, -0.1439614147, 0.1319517493, 0.2343856543, 0.0049605109, -0.0483225398, -0.0427681841, 0.1929651499, 0.1269650757, -0.1789566875, 0.03870463, 0.2070474774, 0.4356288314, 0.0695724115, -0.0890486911, -0.4199827015, -0.1745183915, 0.0376328714, 0.0212168265, 0.2585080266, -0.2317058742, -0.0989649966, -0.4054162204, -0.1051226705, -0.3773021996, 0.1202742234, 0.1669740975, 0.0990827829, -0.0610880479, 0.0066821822, -0.299796313, 0.3757269084, -0.1313779503, 0.0944235325, -0.3323699832, 0.373622328, -0.2377087474, -0.2670727372, 0.2409503609, 0.4113726914, -0.0041605658, 0.0625160486, -0.1170939505, 0.2125418931, -0.0076909945, 0.1721981317, -0.2736350894, -0.0751659051, 0.0657031685, -0.3961910009, 0.0338859372, 0.1110475436, 0.0426312387, -0.0886899903, 0.0285572112, 0.1296462417, 0.1537567228, 0.1063358858, 0.1165112033, 0.0868431106, 0.1682522297, -0.068310447, -0.2281048596, -0.0361749567, 0.2848307192, -0.1852828115, 0.4031332731, -0.0381332524, -0.6622071266, -0.3254400194, 0.493915081, -0.0231649838, 0.2633920908, 0.0882819146, -0.2232539356, 0.2004333436, 0.128785789, -0.182439208, 0.4371801913, 0.2529810965, -0.1184101626, 0.2785460353, -0.1213822067, -0.0148252156, -0.0021357066, 0.0376373194, 0.0944890827, 0.1906545311, 0.0539588444, 0.1309289187, -0.4432957768, -0.2492174506, -0.2248525023, 0.172336176, -0.3543302417, -0.0341560841, -0.2780620456, -0.0483874865, -0.1897361726, -0.097661972, -0.2422447652, -0.0885606855, -0.0185893234, 0.1371498555, 0.1353916079, 0.431905508, -0.0441791154, -0.0619512983, 0.046909932, -0.4555499554, -0.1673714817, -0.16925928, -0.0982953236, 0.1030317917, 0.3574744463, 0.0153016523, 0.2674028575, -0.2192236781, -0.0046597007, 0.0495450646, -0.3638138771, -0.0044206013, -0.2471048832, 0.1006779969, 0.0280972607, 0.1944646239, -0.0877811462, -0.2716490924, 0.2568016648, -0.2902958095, -0.3031882048, 0.0084940372, -0.0715101063, -0.2179574668, -0.105605945, -0.679238677, -0.4916088879, -0.3824000657, 0.1891576201, -0.0043236651, -0.0504478589, 0.5760881901, -0.0038486475, 0.1662246734, -0.0396013409, 0.2001395375, -0.1855198443, -0.0014175095, 0.3684048951, -0.1762257963, -0.1984474659, 0.0650725439, -0.2073298246, 0.6107490063, -0.1771791428, -0.1790090203, -0.099214375, -0.1153991371, 0.2072140723, -0.1426558644, 0.1987741441, 0.2562192082, 0.2243709862, -0.0665226355, -0.0385429561, -0.2290917039, -0.089224562, 0.544023931, 0.1236746833, 0.0299235154, 0.3696120977, -0.2337697893, 0.7312174439, 0.2542454004, 0.0529723614, 0.2250737697, -0.1787751317, 0.2573382854, -0.2329882681, -0.4067521393, 0.2250757366, 0.0523330234, 0.1240251511, 0.1890376359, -0.0755171105, -0.1717134565, -0.308570981, -0.1609124094, -0.2336980999, -0.2439301759, -0.1122149453, -0.2118365914, 0.3328000903, 0.1365734339, 0.0779006332, -0.1717389375, -0.0623185076, 0.1407048106, 0.131440267, -0.067929551, 0.0676838681, -0.3149285316, -0.0949303061, -0.261102736, 0.1321664006, -0.0671635568, 0.3845617473, -0.3105469346, -0.0053710281, -0.0906091183, 0.1061191335, -0.0268046428, 0.0510291681, -0.1677808762, 0.1527026296, 0.2210833132, -0.1567208767, -0.0859281346, -0.1342550069, 0.0122811338, 0.1434633583, 0.1530693322, -0.2973594964, 0.0127239851, 0.3386219144, 0.3727751076, 0.0377484113, -0.0941170827, -0.2668101192, -0.3024868965, -0.4897355735, 0.1207359955, 0.1983537525, 0.0963836536, -0.1993151754, 0.1669946015, 0.2083152235, -0.1086241156, 0.4872303605, 0.1101525724, 0.1720113605, -0.0501767471, 0.3456843495, 0.5056828856, 0.1342127174, 0.2906110585, 0.665787816, -0.022307381, -0.5903888941, -0.123874642, -0.0629284307, 0.3958958685, 0.0872493535, 0.1059037372, -0.0479561612, 0.3212255239, -0.0264969096, -0.0484166406, 0.1525444835, 0.5146482587, 0.3927658796, -0.3394790888, -0.411844939, 0.0950061306, 0.18550165, 0.0875617415, 0.0681455135, -0.1043021008, -0.1613096893, -0.0356016755, -0.4842157662, 0.7982996106, 0.3278929591, 0.0445063114, 0.2252577692, -0.0303712655, 0.0399944969, -0.101843439, 0.0884780809, -0.132490173, 0.0586842895, -0.0059453901, -0.1115389988, 0.2056113482, 0.0889563411, -0.4066593349, 0.4010353982, 0.0836590976, -0.0207544677, 0.0382338725, 0.2802617252, 0.0214722808, -0.1409972012, -0.1178426892, 0.2391812205, -0.1585396975, 0.5873628855, 0.0903311968, -0.0947027281, -0.0624559149, -0.3076588511, -0.1190492958, 0.2365185469, -0.1763176769, 0.1899977028, 0.3196708858, -0.0780481324, 0.3400169909, 0.0243678894, 0.0111998562, -0.0196508653, -0.2427956462, 0.095193401, 0.121756129, 0.0140335541, -0.0462795161, 0.0185668543, 0.5849068761, -0.1009638086, -0.4325719774, 0.145503208, -0.0550938696, 0.0390627719, -0.2691911459, 0.0498390086, 0.283934176, -0.1750936657, -0.2218400091, 0.1223253831, 0.2192094475, -0.0271992963, 0.2155409455, 0.0649083704, -0.122523129, 0.3755879402, 0.0395614989, 0.0722046718, -0.0408567414, 0.2515899837, -0.0187330581, -0.3264920712, 0.612921834, -0.0750421584, -0.1617054045, -0.3027547896, 0.073145546, 0.1165141985, -0.2352834046, -0.0564120188, 0.1171291098, 0.0903480202, 0.0291943159, 0.1955386847, -0.0177137647, -0.2486478388, -0.0644363314, -0.1412013173, -0.3983123302, 0.228928104, 0.1119449288, 0.3001001179, -0.1009244844, 0.3502109647, 0.247061342, -0.0204845183, -0.408629775, -0.0172805712, -0.1506143063, 0.2297730148, 0.3867769837, -0.2138604373, 0.0795577615, 0.0045473357, 0.2706662416, 0.0681106374, -0.1541390121, -0.2902037203, -0.1380580366, 0.0749274269, 0.1081200838, -0.0461762249, 0.1655641049, 0.0306891985, -0.0927982628, -0.1629671156, -0.0240249913, 0.07060799, -0.1004460081, 0.261172682, 0.0199564211, -0.0094590457, 0.246232897, 0.1467530131, -0.0240725894, 0.1554426849, -0.0228902269, 0.0898327231, 0.1484556645, 0.0780455098, -0.2269874215, 0.092713587, 0.3652601242, -0.207977891, 0.09195254, -0.4146076739, -0.1869239062, 0.0035455271, 0.2747444212, 0.2939596772, -0.2162157595, 0.0663703829, 0.3228000402, 0.291908592, -0.4339710772, 0.2176025808, 0.334487468, 0.0039235577, 0.101388678, -0.0108271986, 0.0384642221, 0.0470233485, 0.1753736287, 0.1658094823, 0.1026385948, -0.3446683884, 0.3764196932, 0.0506741628, 0.0758728534, -0.1463961899, 0.382057339, -0.0301786289, 0.1045023575, 0.5094954371, -0.4414913952, 0.1682894379, 0.0115654925, 0.1542970836, 0.2767113447, -0.323361814, -0.2022304833, -0.1139010489, -0.0536590666, 0.0028554648, -0.062645629, 0.626955688, -0.3885321319, -0.1094071195, -0.1444593072, 0.1354537159, -0.3061710298, 0.0700819045, 0.0340695567, -0.1839964539, -0.179185912, -0.2247752696, 0.1355299354, -0.0824571401, 0.4152857661, 0.0984392166, -0.178003937, -0.2695999444, -0.1987647116, 0.2105159312, 0.0625381246, -0.0852095038, 0.3057460785, -0.0383056737, -0.132203564, 0.0668961555, 0.5210747719, 0.5806879997, 0.1711714417, -0.0728712678, 0.1826118678, -0.0855728835, -0.0793717131, 0.0943482518, 0.1167582273, 0.0382121727, 0.3208300173, 0.1235489771, 0.2243592888, -0.2264109999, -0.0492911004, -0.1167296693, -0.2444067746, -0.4465116858, 0.3851086795, -0.2668537498, -0.1144587472, -0.3867427707, -0.0310381111, -0.589892447, -0.0372403897, 0.4932130277, 0.2721068859, -0.1028744131, -0.3833262622, 0.1120100245, -0.240333274, 0.143789947, 0.3910237849, 0.2161833942, 0.0266757701, 0.0195009373, -0.6945983171, 0.1206173375, -0.0724868178, -0.0154803982, -0.0486515686, -0.0889658853, 0.0467396714, 0.1318782717, 0.1182090193, -0.2654315233, -0.2165036947, -0.2908382714, -0.304194212, 0.0143065322, 0.0956116468, 0.044563558, 0.1643178314, -0.2925546467, -0.0871802196, -0.3029634058, 0.0716292039, -0.1985855252, 0.0138237439, -0.0220376067, 0.1548386365, 0.3778556883, 0.0707522482, 0.7247420549, -0.1219093129, -0.0149169425, 0.0884629935, -0.3524927795, -0.1980544478, 0.1428400129, 0.0400929041, 0.4865871668, -0.16568093, -0.146616593, -0.2866224051, 0.0134920152, 0.0952576995, -0.3368000686, -0.0814711004, 0.1075759083, -0.0959664881, 0.238013953, -0.056812901, 0.038379807, -0.1823732257, -0.0006933565, -0.3166335821, -0.418366909, 0.6252816916, -0.0994775742, -0.4117878079, -0.4622048736, 0.2439306676, -0.1391499788, -0.2128486782, -0.4571859241, 0.1743619889, 0.3370922804, -0.0477896184, -0.0868130475, 0.2577058375, 0.0695325658, -0.0047337483, 0.0295038428, 0.2987220585, 0.0493528806, -0.0268672742, 0.2987108827, -0.1521715075 ]
https://github.com/huggingface/datasets/issues/2595
ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets
@albertvillanova Thanks for the information. I updated it to 1.9.0 and the issue is resolved. Thanks again.
Error traceback: --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-8-a7b592d3bca0> in <module>() 1 from datasets import load_dataset, load_metric 2 ----> 3 common_voice_train = load_dataset("common_voice", "pa-IN", split="train+validation") 4 common_voice_test = load_dataset("common_voice", "pa-IN", split="test") 9 frames /root/.cache/huggingface/modules/datasets_modules/datasets/common_voice/078d412587e9efeb0ae2e574da99c31e18844c496008d53dc5c60f4159ed639b/common_voice.py in <module>() 19 20 import datasets ---> 21 from datasets.tasks import AutomaticSpeechRecognition 22 23 ModuleNotFoundError: No module named 'datasets.tasks'
17
ModuleNotFoundError: No module named 'datasets.tasks' while importing common voice datasets Error traceback: --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-8-a7b592d3bca0> in <module>() 1 from datasets import load_dataset, load_metric 2 ----> 3 common_voice_train = load_dataset("common_voice", "pa-IN", split="train+validation") 4 common_voice_test = load_dataset("common_voice", "pa-IN", split="test") 9 frames /root/.cache/huggingface/modules/datasets_modules/datasets/common_voice/078d412587e9efeb0ae2e574da99c31e18844c496008d53dc5c60f4159ed639b/common_voice.py in <module>() 19 20 import datasets ---> 21 from datasets.tasks import AutomaticSpeechRecognition 22 23 ModuleNotFoundError: No module named 'datasets.tasks' @albertvillanova Thanks for the information. I updated it to 1.9.0 and the issue is resolved. Thanks again.
[ -0.3636059463, -0.3833418489, -0.0181182213, -0.1324387044, 0.1585255265, 0.1734298915, 0.408313036, 0.2774199545, 0.1942014247, 0.0959576592, -0.1962040365, 0.2137221396, -0.2857518494, -0.0307673123, 0.1209338456, 0.0243295953, 0.0525843427, 0.1785369217, 0.0639958382, -0.2289384604, -0.0830178037, 0.1798968166, -0.3790596724, 0.2335020602, -0.3515881598, -0.1942124069, 0.0089907367, 0.0472991019, -0.0594283529, -0.2619590759, 0.1584796011, -0.0244396683, 0.0247926433, 0.535466671, -0.0001072219, 0.0130808502, 0.3887680471, -0.0951575264, -0.3423603475, -0.48122558, -0.5180742145, -0.0198783185, -0.0378901251, -0.1568299979, 0.143260777, 0.093180865, 0.1367633492, -0.0211387146, 0.5184741616, 0.3234175444, 0.2760933042, 0.4396755099, 0.175844416, -0.1285549551, -0.0919888094, 0.3200477362, -0.0312034599, 0.3851701915, 0.0718944371, -0.2481865138, 0.3491157293, 0.316942215, -0.2483983636, -0.0398038849, 0.2099719048, -0.070443064, -0.0864191204, -0.5517334342, 0.1612674594, 0.1745324135, 0.3149975836, -0.4002381861, -0.2445600927, -0.1867612302, 0.1450688541, -0.2974835932, 0.0211214945, 0.0581533723, -0.1166367829, 0.0485452376, 0.0884919763, -0.2153846473, 0.0324988775, -0.0098938802, 0.0379463732, 0.0695417523, -0.0714512616, -0.1244164184, 0.2239094824, -0.172911644, -0.2198526561, 0.1894759238, 0.187629804, 0.5041466951, -0.4748544693, -0.1837357134, 0.2259811014, -0.2747799754, 0.0592495576, -0.1257463843, 0.069683671, 0.0972486213, -0.1417377442, 0.2598146796, 0.2328962088, 0.2657304704, 0.3367695808, 0.327589035, 0.3152908981, 0.320507437, -0.0319156125, 0.096184127, -0.2667919397, -0.1119740978, 0.2743023038, -0.0072114044, 0.5157478452, -0.1445228755, -0.4783940017, 0.0268436596, -0.1586011797, -0.0491169058, 0.0459219888, 0.315060854, -0.0719004795, 0.2049204409, 0.114073813, 0.0707878545, -0.33948946, -0.0207248721, -0.2056519985, 0.1439722627, -0.1351426095, 0.0390930325, 0.1669226736, -0.2369959801, 0.2426796257, -0.0384483524, 0.1271665841, -0.1646114141, -0.002661929, 0.0350434668, -0.2853620648, 0.218885228, -0.0577581972, -0.0250668656, -0.0065326458, 0.0594040006, -0.1507555693, 0.1488419175, -0.3855994642, -0.2488823682, 0.0353925005, 0.2451747358, 0.001952145, -0.2012861371, -0.2043668926, 0.1103085279, -0.0199952144, -0.3280107081, -0.1137687042, -0.311447233, -0.018394785, 0.0832228288, 0.3140042424, 0.2145242989, -0.0957232937, -0.2608371675, -0.138635397, -0.1814470291, -0.0146552827, 0.2992725372, -0.0283237007, 0.1103682742, -0.0679045022, 0.5170897245, 0.1305842102, -0.4023423791, -0.2130295932, 0.0811730921, 0.061591845, 0.0784981474, -0.1494666338, -0.2262279093, 0.1217364669, -0.0053586136, 0.2895029783, 0.2189673036, 0.0232907198, -0.0666880757, -0.0701265931, -0.1601055562, 0.0731841177, 0.1477268189, 0.0437989458, -0.0165530369, -0.0837949663, 0.194478482, 0.1807453185, -0.2012950629, 0.0373746157, 0.2082428634, 0.4772288799, 0.0610024184, 0.0018083534, -0.2899804711, -0.2439675927, 0.0906842649, -0.0490240678, 0.3566191792, -0.3079183102, -0.1824969649, -0.3866799772, -0.0527749658, -0.3918936551, 0.0559835956, 0.1665538996, 0.035378933, -0.1400141269, 0.0161963422, -0.3451238573, 0.2648697495, -0.0309728347, 0.122700654, -0.3519034982, 0.3853036165, -0.1914648861, -0.3086244464, 0.2147637606, 0.4524841905, -0.0079535367, 0.06205393, -0.136879757, 0.1645605564, -0.0686159357, 0.2083024085, -0.2534757853, -0.1135926172, 0.1204177514, -0.3686171174, -0.0335526057, 0.1560337096, 0.1338924021, -0.1023145244, 0.0601927824, 0.1925479174, 0.2630729675, 0.0872493684, 0.1627520025, 0.0740889832, 0.0583261847, -0.070303686, -0.1851863414, -0.0571806841, 0.2701922059, -0.1746160835, 0.3756132424, -0.0258411448, -0.6040569544, -0.3535895348, 0.4849465787, -0.0782646909, 0.223610267, 0.0556300655, -0.2568132579, 0.1159279644, 0.1705575436, -0.3374949694, 0.3594596088, 0.1739275306, -0.1083804965, 0.3482665718, -0.0841785148, 0.0032749581, -0.0126494393, 0.1101146191, 0.0521427877, 0.1774298251, 0.0945811719, 0.0503331162, -0.4496419132, -0.2656070292, -0.1863159835, 0.1864308864, -0.3769987524, -0.0612785369, -0.2536339462, -0.0062754061, -0.1210900545, -0.1308909059, -0.2910751402, -0.1262823045, -0.0285303574, 0.1420173943, 0.1164866164, 0.4119040966, 0.0562701821, -0.0428689942, 0.0566487536, -0.3579312563, -0.2157428861, -0.2365888655, -0.0544139817, 0.0616883487, 0.3786766827, 0.0383744463, 0.1699181199, -0.1812993139, -0.0000643521, 0.1045466587, -0.4350384474, -0.0063256798, -0.233522892, 0.0633963794, 0.0017651853, 0.1968347132, -0.0975240171, -0.313212961, 0.2633447051, -0.2720876932, -0.298653096, 0.0646646619, -0.0801600963, -0.2136178613, -0.1200268567, -0.5569187403, -0.4403801858, -0.3566886485, 0.181992799, -0.0772866234, -0.0431812778, 0.6514204144, 0.0293712355, 0.2377745956, -0.1074317917, 0.1617145687, -0.1048828065, 0.053945601, 0.3376306891, -0.1701790094, -0.1958739907, 0.1166849062, -0.2572162747, 0.677826345, -0.194007799, -0.2012848705, -0.0728158355, -0.0509071387, 0.2408653796, -0.1346977353, 0.1593547016, 0.2059504837, 0.1566209942, -0.055430539, -0.0127729988, -0.2480053753, -0.0972873792, 0.5820994973, 0.0944188163, 0.0600193664, 0.3471998572, -0.2486723959, 0.786429584, 0.2308702171, 0.1107454821, 0.2190029472, -0.0982874706, 0.2674396932, -0.210842669, -0.4376784563, 0.222689569, 0.0914871544, 0.1118219942, 0.2504205406, -0.0326574408, -0.1213685498, -0.3556516469, -0.3254826367, -0.1687037647, -0.2966778874, -0.116739817, -0.0817807168, 0.3221667707, 0.1697288752, 0.1055976599, -0.2187428921, -0.0654272437, 0.1467369795, 0.2421662211, -0.0970549062, 0.0653824657, -0.3066463172, -0.1483698636, -0.3405388594, 0.1368671507, -0.0517596379, 0.4558202922, -0.2143552452, 0.0210491847, -0.0781611204, 0.1187462807, 0.0026040708, 0.1094014049, -0.1714257747, 0.12667422, 0.0890685618, -0.1200416163, -0.1046278551, -0.0660476312, 0.0593855307, 0.1450900733, 0.2695628107, -0.3026838899, 0.0177186579, 0.3039090037, 0.376062125, 0.0805392414, -0.1350096911, -0.3770290911, -0.3506784141, -0.4728807509, 0.1429032385, 0.172435537, 0.0970225111, -0.1271731108, 0.1632331461, 0.2196706086, -0.1573039144, 0.4420223534, 0.1218704507, 0.132913962, -0.0286291745, 0.3401710391, 0.476811111, 0.0664622635, 0.2375127077, 0.6372560263, -0.0236763675, -0.7577486038, -0.1979633421, -0.1201224923, 0.3438262641, 0.1121634245, 0.0901920423, 0.0276928116, 0.4193373919, -0.0080799079, -0.0076426486, 0.1131892055, 0.484641999, 0.411326468, -0.4018979073, -0.3383569717, 0.0783466697, 0.1432867944, 0.1592215449, 0.1371792555, -0.0960872769, -0.221495837, -0.0248496123, -0.5586665869, 0.7840063572, 0.3227553368, 0.0612404309, 0.2629365027, -0.0033960214, 0.0799390748, 0.0453010611, 0.1685222089, -0.138103947, -0.0160075966, 0.0119671943, -0.0974416435, 0.2206216604, 0.0779655948, -0.4101417363, 0.4231624603, 0.0714921951, 0.0468710996, 0.0075262305, 0.2793136239, 0.1080201864, -0.1398214251, -0.146107927, 0.1999604404, -0.1303399056, 0.6326062679, 0.1015597284, -0.1258405149, -0.0305482913, -0.314909935, -0.1065032035, 0.2004971057, -0.2200043052, 0.2250459045, 0.3635546267, -0.0740769506, 0.3070269823, -0.0908039957, -0.0672452301, 0.0124380933, -0.287622571, 0.0829654932, 0.1172918007, 0.0674092248, -0.0960063487, 0.031805627, 0.611160934, -0.1110403538, -0.4229340553, 0.1673190892, -0.0954171717, 0.1045299992, -0.2354661822, 0.0267726127, 0.2249740362, -0.0980885178, -0.2255710065, 0.104555577, 0.2335183918, -0.0608016141, 0.1946657598, 0.0483965427, -0.1451740563, 0.3375958502, 0.0521152541, 0.0055142283, -0.0695342198, 0.2893536091, -0.0004024238, -0.3251861334, 0.609398365, -0.0939881653, -0.1770112813, -0.2521191835, 0.0321931094, 0.2130116373, -0.2881562412, 0.0263941474, 0.1457318217, 0.0958659798, 0.0091584399, 0.2715733647, -0.0357917622, -0.233774215, -0.087027438, -0.1145758107, -0.4128247797, 0.2796646059, 0.1166093573, 0.2642893493, -0.129111439, 0.4132298231, 0.3312871456, -0.0469708629, -0.3769037724, -0.0129263103, -0.1994545907, 0.16772075, 0.3669534922, -0.1935516894, 0.0903574228, 0.0834860802, 0.2580675185, 0.0866548866, -0.1299780756, -0.2424423546, -0.1228831783, 0.0876503959, 0.1171843782, -0.0328588262, 0.1796568632, 0.0119788125, -0.1475058347, -0.1580755115, 0.0210802648, 0.0714743659, -0.1193956956, 0.1821642518, 0.0764139518, -0.0071995249, 0.2596050799, 0.2125116587, 0.0411073156, 0.1299155504, 0.007317293, 0.0255972371, 0.1358452439, 0.1108725816, -0.1450428814, 0.0927250385, 0.2530206442, -0.2015186101, 0.0851775482, -0.3775855899, -0.1525241584, 0.001604151, 0.2083036005, 0.325799346, -0.1462606937, 0.0995503291, 0.3164530993, 0.2548805177, -0.4426315725, 0.240220204, 0.3323374391, 0.0445716269, 0.0907236859, -0.0140097076, 0.0340850353, 0.0505935401, 0.1929446161, 0.1450361609, 0.0011353024, -0.2689983547, 0.3850499988, -0.0095109306, 0.0465697981, -0.0808150172, 0.3681239188, -0.0208935943, 0.0974602476, 0.3820582032, -0.4378883243, 0.2419494241, 0.0315866806, 0.1459219605, 0.2872115374, -0.3768297136, -0.2674654126, -0.1129540652, -0.0158964396, 0.0211886819, -0.07385353, 0.6236788034, -0.486530602, -0.0626912862, -0.0776230544, 0.1505671144, -0.3340907097, 0.1247662008, 0.0412310772, -0.1665502191, -0.1529594064, -0.2408025116, 0.1342774183, -0.062005762, 0.3735056221, 0.0824025869, -0.1566254497, -0.208367914, -0.2844170928, 0.2198254317, 0.028859932, -0.0974247083, 0.2185846716, -0.0091726109, -0.0740260333, 0.0873243436, 0.5061694384, 0.5795964003, 0.2384859771, -0.0331305489, 0.1049510539, -0.0168667957, -0.0602553226, 0.1299706399, 0.0700259581, 0.1368562728, 0.4141389728, 0.0976891071, 0.1724711508, -0.1997913718, -0.0529920831, -0.0429135822, -0.2157280445, -0.4559639096, 0.2976954877, -0.3128184676, -0.1389409006, -0.3822703362, -0.0345835164, -0.5582608581, 0.0663024187, 0.4672358632, 0.2679564357, -0.1678644419, -0.3979560435, 0.0895159543, -0.2667342126, 0.1480167508, 0.401930213, 0.1818224788, -0.0192097817, 0.0471446477, -0.6798257828, 0.1862457693, -0.0133904759, -0.0708920062, -0.0427570902, -0.1561952084, -0.0245061032, 0.0166965015, 0.0877143368, -0.3457701206, -0.1732073873, -0.3885887861, -0.3407888114, -0.0383819677, 0.0890560076, -0.0284407251, 0.1961670071, -0.2559447885, -0.0215819255, -0.267092824, 0.039714966, -0.1974108368, -0.00961948, -0.0293376148, 0.2362263054, 0.3201611638, -0.0436134562, 0.6852192879, -0.097971864, -0.0632763728, 0.054601606, -0.2957471609, -0.2335708588, 0.182038337, 0.0998798385, 0.4836896658, -0.1316231042, -0.0821450725, -0.2838930488, -0.0038027947, 0.0510099567, -0.3323507309, -0.064772673, 0.1963786036, -0.0617848299, 0.2327574193, 0.0000854268, 0.039784573, -0.2082762122, -0.056877315, -0.3205324709, -0.4250096083, 0.6887369752, -0.1174829304, -0.4332192242, -0.4882306457, 0.2215623111, -0.1690745205, -0.2508114874, -0.4525448978, 0.1826768517, 0.3078406453, -0.0280828532, -0.1032514572, 0.20853284, 0.0283308271, 0.0559328981, -0.0203060359, 0.2545564175, 0.1018201485, -0.0872144774, 0.2926311791, -0.1661282629 ]
https://github.com/huggingface/datasets/issues/2591
Cached dataset overflowing disk space
I'm using the datasets concatenate dataset to combine the datasets and then train. train_dataset = concatenate_datasets([dataset1, dataset2, common_voice_train])
I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb). The cache folder is 500gb (and now my disk space is full). Is there a way to toggle caching or set the caching to be stored on a different device (I have another drive with 4 tb that could hold the caching files). This might not technically be a bug, but I was unsure and I felt that the bug was the closest one. Traceback (most recent call last): File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/multiprocess/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 186, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/fingerprint.py", line 397, in wrapper out = func(self, *args, **kwargs) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1983, in _map_single writer.finalize() File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_writer.py", line 418, in finalize self.pa_writer.close() File "pyarrow/ipc.pxi", line 402, in pyarrow.lib._CRecordBatchWriter.close File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status OSError: [Errno 28] Error writing bytes to file. Detail: [errno 28] No space left on device """ The above exception was the direct cause of the following exception:
18
Cached dataset overflowing disk space I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb). The cache folder is 500gb (and now my disk space is full). Is there a way to toggle caching or set the caching to be stored on a different device (I have another drive with 4 tb that could hold the caching files). This might not technically be a bug, but I was unsure and I felt that the bug was the closest one. Traceback (most recent call last): File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/multiprocess/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 186, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/fingerprint.py", line 397, in wrapper out = func(self, *args, **kwargs) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1983, in _map_single writer.finalize() File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_writer.py", line 418, in finalize self.pa_writer.close() File "pyarrow/ipc.pxi", line 402, in pyarrow.lib._CRecordBatchWriter.close File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status OSError: [Errno 28] Error writing bytes to file. Detail: [errno 28] No space left on device """ The above exception was the direct cause of the following exception: I'm using the datasets concatenate dataset to combine the datasets and then train. train_dataset = concatenate_datasets([dataset1, dataset2, common_voice_train])
[ 0.0375595018, -0.4222130477, 0.0985903442, 0.4514757097, 0.1011739373, 0.2050562799, 0.0744854808, 0.1419046074, 0.1445285976, 0.0556369573, 0.4010793567, -0.2280428708, -0.1242995039, 0.112719655, 0.1466888636, 0.0686895773, 0.2591466308, -0.2458596975, -0.0610486828, 0.1060895324, -0.1954932958, 0.2656942904, 0.0236384477, -0.1252899468, -0.2641806602, -0.1312521547, 0.111490421, 0.09155453, 0.1169938818, -0.2215209007, 0.6455168724, -0.0375430472, 0.2969841957, 0.3342037499, -0.0001271115, -0.2188411504, 0.0915408731, -0.1815932393, -0.0922587141, 0.5504891872, 0.1914405823, -0.3445689082, -0.052295465, 0.012889429, -0.1940162778, 0.1353002638, -0.0969077945, -0.4302128255, 0.2448514551, 0.0724850222, 0.0480297729, -0.0077622584, -0.1181678995, 0.1708012968, -0.1092365906, -0.004405281, -0.2483724803, 0.1998685449, 0.249845311, -0.1698942035, -0.1137213856, 0.5557484627, -0.059014529, -0.0844292715, 0.5253401399, 0.0833814889, -0.3562976122, -0.1106623709, 0.3813787699, -0.0801357701, 0.3144637942, -0.4211863577, -0.0359758325, -0.5416685939, 0.1242923588, -0.4084811509, 0.4917796552, 0.1439301074, -0.308175385, 0.2055082023, -0.2643951178, -0.4621689022, -0.2639662623, -0.1211515516, -0.0510153361, -0.1692599356, -0.1779300272, 0.0038870913, 0.4981885552, -0.12435247, -0.0180546772, -0.114828214, -0.1485932171, 0.1664886326, -0.4704053402, -0.1601630449, -0.1597563922, 0.4838790596, 0.1778160483, 0.0343687721, 0.058015231, -0.2219775915, 0.0135496091, -0.0545078777, 0.0384912789, 0.6338205338, -0.4302007556, 0.1479857415, 0.0260615703, -0.1004758328, -0.0664959103, -0.084065333, -0.0061188187, -0.3888667226, 0.2431180626, -0.3094466925, 0.0366064645, -0.2660045028, -0.1329784244, 0.1096002012, 0.187757045, 0.1407829225, 0.2514515519, 0.3864438832, 0.1821058691, 0.3051149249, -0.3228457868, 0.2218099535, -0.2443424463, -0.1192897707, -0.0440737493, -0.0846644491, 0.0494985506, 0.3295776844, 0.3280153275, -0.1158237383, -0.0438294038, -0.1668730378, 0.2368200421, -0.0264211372, 0.030998867, -0.2585927844, 0.2868452668, 0.1123238802, -0.3598533571, 0.2251692563, 0.2425774485, 0.3989658356, -0.2411043048, 0.1247827113, -0.3550455272, -0.2518387735, 0.1480786204, -0.0142697105, -0.1831806451, -0.0969633833, -0.4297463894, 0.2190827578, 0.4013513327, -0.2894098461, 0.0460613519, 0.0167299677, -0.4555119872, -0.1271671504, 0.2183411121, 0.3905504644, -0.1844454706, -0.003756637, 0.0871427506, 0.4355637729, 0.0485233255, 0.6233543158, -0.1413375288, 0.0224385411, -0.3221300244, -0.2130482197, -0.0346540734, -0.5695790052, -0.7795038819, 0.0159559511, 0.0507360362, 0.2829304636, 0.3464263082, 0.1854575127, 0.0370458812, -0.1173866615, -0.129952237, 0.2160574943, -0.0045060334, -0.0558646545, -0.3231567144, -0.5304921865, 0.2853462696, -0.1147799939, 0.0466499478, 0.1006038859, -0.282222271, 0.0011680244, 0.1973253787, -0.0316378288, 0.2541680038, 0.3844376504, 0.2930665612, -0.3115616143, -0.0663590804, 0.0042586001, -0.4575057626, 0.1950946897, 0.178374052, -0.375320673, 0.124583438, -0.1003919989, 0.0144068431, -0.2264458239, -0.1339514256, -0.2168265581, -0.1374634057, -0.0339445248, 0.4003781676, -0.1763286442, -0.299110353, 0.3400560319, 0.0025756443, -0.0406321362, -0.3259864151, -0.0154327536, 0.1447563171, -0.0170680732, -0.2598403692, 0.1888256669, 0.0648191273, -0.0355281048, 0.0368642733, 0.2335705012, 0.0226671249, 0.3187161088, 0.3493317366, 0.3796351552, 0.2128701061, -0.0915229395, 0.2820821404, 0.2902056277, -0.0620261244, 0.0524618775, -0.3751503527, 0.2003803104, 0.0710653067, 0.1950618774, -0.1139810532, -0.236882776, 0.25141114, 0.136060223, 0.0944543928, -0.1216272712, 0.2244891673, 0.0017588531, 0.3925084174, 0.0476583578, -0.0416111238, 0.2306886166, 0.3817816973, 0.2312814146, 0.0795112103, 0.3927402198, -0.1257768124, -0.2583569288, 0.1078153253, 0.340051204, 0.5201389194, 0.1659972668, 0.1927119344, -0.0825791135, 0.0334070995, -0.0248667989, 0.1405936778, -0.2922538221, -0.1662440151, 0.0999909565, 0.1785677373, -0.1703336388, -0.1151008084, 0.2065086216, -0.0072107785, 0.037470568, -0.1230289489, 0.291549921, -0.0051881974, 0.0669604838, -0.3004218936, 0.2018046826, -0.4009773731, -0.0063930862, 0.1357573271, 0.5235956907, 0.0959124565, 0.0231751613, -0.1968864799, 0.733774066, -0.0781154111, -0.2568987012, 0.0806487799, -0.0120088514, -0.1814784408, -0.1487005204, 0.3093961477, -0.5017922521, 0.0971775204, 0.1724736989, -0.0851731226, -0.297937572, 0.1057201326, -0.0711285844, 0.1724737585, 0.0262170751, -0.3023273647, 0.3171687126, 0.0086359121, -0.0908929333, -0.0860918686, -0.1090197414, -0.0805502832, -0.1161439046, 0.0500084981, 0.4038139284, 0.1403169334, 0.0388045162, -0.2606483102, -0.2303480357, 0.2758387327, -0.1536941528, -0.043294467, 0.0811395422, 0.0112993736, -0.1315153688, -0.1234193668, -0.2881754935, -0.2525759041, -0.7670418024, 0.31757617, 0.0659809336, -0.0736876205, 0.1482880861, 0.2214993834, 0.3519729674, 0.1975895464, -0.5262954235, -0.1080437079, -0.1927302927, 0.2778545916, -0.2042675167, -0.2437516153, 0.3360221982, -0.1253869087, 0.1910072714, 0.0439109877, -0.1972724795, 0.2947355807, 0.2608200908, 0.3492496312, -0.0757249072, -0.0599259473, 0.0863768384, 0.9180574417, 0.0366473682, 0.11798805, 0.2343268096, 0.2871669829, 0.4486360848, -0.1861970574, -0.2464790046, 0.0511527546, -0.1345723122, -0.2713449001, 0.1046253219, 0.3082744777, 0.1466263831, 0.1631294191, -0.0689219758, 0.2187523693, -0.2138775438, 0.3311526179, -0.1401933432, 0.3264655471, 0.0280978791, 0.0892384201, -0.3383796215, -0.2278051674, 0.0030130309, 0.1278020591, 0.385055691, 0.2612068355, -0.2789205611, -0.2433246821, -0.4827177525, 0.1956559271, -0.0384943783, 0.0403401032, -0.3785455227, -0.2253631949, 0.1297898293, 0.020334335, 0.9234855771, 0.0464558564, 0.182125628, -0.2568491995, -0.0968072116, -0.0758300647, 0.0022397616, 0.290746361, -0.2174908072, -0.146792531, 0.40989241, 0.0378760509, -0.0872070491, -0.3201646507, 0.3639975488, -0.4575732648, 0.0065998207, -0.2253906727, -0.0537640527, -0.0625003651, 0.1516191661, 0.1337890327, 0.1230590269, 0.0934423879, 0.132009849, -0.1702724397, -0.042767629, -0.0555932075, 0.0200949162, 0.5271490216, 0.1192736775, 0.0408747941, 0.2363301665, 0.2522959709, 0.1998604387, 0.2740608752, 0.0932860821, -0.0258029159, -0.021449443, 0.0511355586, 0.1186636463, 0.4327242076, -0.2288734019, 0.2974846065, 0.0999589935, 0.1264848858, -0.7642991543, 0.076866366, 0.226920262, 0.389495939, -0.0471368097, -0.3855695426, 0.3176096976, 0.0167661365, -0.0140857147, 0.2437087148, 0.118674621, -0.5224872828, 0.0029738969, 0.0166975837, 1.0220944881, -0.0052736881, 0.525090158, 0.0106059173, 0.0838317946, 0.4028092325, -0.5466372371, 0.3585669696, 0.0577719249, -0.2558865547, -0.0354823582, 0.0891323686, -0.0084903594, -0.0728916973, -0.1517244428, 0.3895680904, -0.0946484953, 0.2141797245, -0.4183893204, -0.0863081738, -0.0117625035, -0.2253903896, -0.5132776499, 0.0545487553, -0.274211973, 0.1035262793, -0.0508339591, 0.0319065452, 0.1635923386, -0.0210020952, -0.3381099999, -0.20945324, -0.2528519034, -0.0258976184, -0.0363923907, -0.3285657465, -0.0165609904, 0.2719005048, 0.3318610787, 0.0905140936, -0.3641141355, 0.11960195, -0.1798490286, 0.0628118068, -0.2151516676, -0.0983464792, -0.1674999297, -0.054801628, 0.0174992438, 0.0707687289, 0.0337857679, -0.4108781219, 0.0175109729, 0.032257285, -0.1330734342, -0.0900965035, -0.2087690532, 0.1424431801, 0.0319385454, -0.0690166876, 0.045446001, 0.2176920772, -0.3402994871, 0.120439589, -0.2136461735, -0.2409317195, -0.0380489826, 0.4774670601, 0.0289598387, -0.2921251953, 0.5220632553, -0.0114158122, 0.0539456531, -0.1883497536, 0.1402014345, 0.1701513082, -0.1835627109, -0.053512767, 0.0281141326, -0.2855752707, -0.2057352066, -0.2029028833, 0.4924884737, -0.2519826293, -0.305051595, -0.1449887305, -0.4076449573, -0.0208898429, -0.2762919664, -0.0257769395, -0.0961908549, -0.2987637222, -0.0198851973, 0.191641748, -0.1431708336, 0.0142272832, -0.000121852, -0.167336449, 0.1038815528, 0.0274556838, 0.4854635, -0.0634694546, -0.1909932345, -0.1595239639, -0.0006296572, -0.0392892584, -0.0618141927, 0.1540686637, -0.1610925198, -0.012418746, -0.0185571164, -0.2299521267, 0.0444079116, -0.3296544552, 0.1573792398, 0.2143020183, 0.2089237571, -0.0216312725, -0.3265136182, 0.000211148, 0.0032438529, 0.1196156144, 0.2825599611, -0.1058218554, 0.0820928365, 0.1894637644, -0.0195171237, -0.0718133077, -0.1082032621, 0.2400289923, 0.030345913, -0.1075602472, 0.0023850447, -0.0374654084, -0.0143930651, 0.3485846817, 0.1381259114, 0.1901233196, -0.0317513086, -0.0102058072, 0.3290896416, 0.0324432254, -0.062922582, -0.3029328883, 0.1396769583, -0.1079890504, -0.0974477828, 0.3520595431, 0.0270170216, -0.2138874829, 0.0861032084, 0.1473430544, 0.4955662191, -0.2976680696, 0.362824738, 0.1930975318, 0.2126585841, 0.1036961079, 0.2905107737, 0.3293462098, 0.2367111892, 0.5512296557, -0.0336068384, 0.1553392857, 0.2877412736, 0.009771877, -0.2069424689, -0.3993996084, -0.4862812757, 0.25891155, -0.2133092433, 0.2273603231, -0.1336096972, 0.1467939168, -0.0414485782, -0.6776145101, -0.3064129651, -0.0712346882, -0.2433966547, -0.3478887081, 0.2802796364, -0.0567441396, 0.2844323814, 0.2872740924, 0.0796923861, -0.2331490517, 0.4815829992, -0.0546671301, -0.018018527, 0.1753602028, 0.0876786783, 0.2863030732, 0.1103289574, -0.1547990888, 0.2614774406, -0.0174215343, -0.129791677, 0.0276956465, 0.1919707954, 0.2432423085, 0.1001450121, -0.0423504263, 0.2072948664, 0.081716381, 0.1787054986, -0.3429945409, 0.152913779, -0.152560249, 0.0753112137, 0.033752434, -0.0319902822, 0.1195743531, 0.203812927, -0.1108585969, 0.2348306924, -0.4639112055, -0.0497003272, -0.2446763515, 0.0765303522, -0.2179708779, 0.2800678015, -0.2816496491, 0.1942260265, 0.5648446083, -0.0442584269, 0.3497543633, 0.1905338764, -0.0117880302, -0.0112694409, 0.7627522349, 0.108786203, -0.3031583428, -0.3050414622, 0.0308540463, -0.4886027277, 0.0807433724, -0.3152815402, 0.2396724671, -0.2080786973, 0.105650574, 0.0669875294, -0.0189331751, -0.0772995278, -0.0975535139, 0.0512743257, 0.0465316251, -0.3450728357, -0.0946512744, 0.1758094281, 0.2280649543, 0.0866624042, -0.3995474279, 0.2115195543, 0.1642512679, -0.1586642265, 0.4196972251, 0.1869823784, -0.4918375611, 0.2579592168, -0.1285670847, 0.1905248612, 0.1110508889, 0.2345270663, 0.0312415902, -0.4896025658, -0.0348943882, -0.232732445, -0.0441681817, -0.1201227158, 0.2055238485, -0.5847110748, 0.0387655012, -0.376958698, 0.2036788166, 0.3197951019, -0.1638132483, 0.0926559493, -0.012531233, 0.1860567778, 0.0903327763, 0.4170556962, 0.419819802, -0.0685717985, 0.0642156899, -0.3439031541, 0.1352642924, 0.2230735421, -0.3471210599, -0.3600993752, 0.257081002, 0.3946216106, 0.5234392881, -0.3522133529, -0.3459507525, 0.1152446717, 0.0333080105, 0.0821381211, -0.1448382586, 0.201144293, -0.2863759995, -0.2533285022, 0.142497316, 0.310041666, 0.3002068102, -0.1675546616, 0.2714892626, -0.3209955394 ]
https://github.com/huggingface/datasets/issues/2591
Cached dataset overflowing disk space
Hi @BirgerMoell. You have several options: - to set caching to be stored on a different path location, other than the default one (`~/.cache/huggingface/datasets`): - either setting the environment variable `HF_DATASETS_CACHE` with the path to the new cache location - or by passing it with the parameter `cache_dir` when loading each of the datasets: `dataset = load_dataset(..., cache_dir=your_new_location)` You can get all the information in the docs: https://huggingface.co/docs/datasets/loading_datasets.html#cache-directory - I wouldn't recommend disabling caching, because current implementation generates cache files anyway, although in a temporary directory and they are deleted when the session closes. See details here: https://huggingface.co/docs/datasets/processing.html#enable-or-disable-caching - You could alternatively load the datasets in streaming mode. This is a new feature which allows loading the datasets without downloading the entire files. More information here: https://huggingface.co/docs/datasets/dataset_streaming.html
I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb). The cache folder is 500gb (and now my disk space is full). Is there a way to toggle caching or set the caching to be stored on a different device (I have another drive with 4 tb that could hold the caching files). This might not technically be a bug, but I was unsure and I felt that the bug was the closest one. Traceback (most recent call last): File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/multiprocess/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 186, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/fingerprint.py", line 397, in wrapper out = func(self, *args, **kwargs) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1983, in _map_single writer.finalize() File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_writer.py", line 418, in finalize self.pa_writer.close() File "pyarrow/ipc.pxi", line 402, in pyarrow.lib._CRecordBatchWriter.close File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status OSError: [Errno 28] Error writing bytes to file. Detail: [errno 28] No space left on device """ The above exception was the direct cause of the following exception:
127
Cached dataset overflowing disk space I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb). The cache folder is 500gb (and now my disk space is full). Is there a way to toggle caching or set the caching to be stored on a different device (I have another drive with 4 tb that could hold the caching files). This might not technically be a bug, but I was unsure and I felt that the bug was the closest one. Traceback (most recent call last): File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/multiprocess/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 186, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/fingerprint.py", line 397, in wrapper out = func(self, *args, **kwargs) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1983, in _map_single writer.finalize() File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_writer.py", line 418, in finalize self.pa_writer.close() File "pyarrow/ipc.pxi", line 402, in pyarrow.lib._CRecordBatchWriter.close File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status OSError: [Errno 28] Error writing bytes to file. Detail: [errno 28] No space left on device """ The above exception was the direct cause of the following exception: Hi @BirgerMoell. You have several options: - to set caching to be stored on a different path location, other than the default one (`~/.cache/huggingface/datasets`): - either setting the environment variable `HF_DATASETS_CACHE` with the path to the new cache location - or by passing it with the parameter `cache_dir` when loading each of the datasets: `dataset = load_dataset(..., cache_dir=your_new_location)` You can get all the information in the docs: https://huggingface.co/docs/datasets/loading_datasets.html#cache-directory - I wouldn't recommend disabling caching, because current implementation generates cache files anyway, although in a temporary directory and they are deleted when the session closes. See details here: https://huggingface.co/docs/datasets/processing.html#enable-or-disable-caching - You could alternatively load the datasets in streaming mode. This is a new feature which allows loading the datasets without downloading the entire files. More information here: https://huggingface.co/docs/datasets/dataset_streaming.html
[ 0.0375595018, -0.4222130477, 0.0985903442, 0.4514757097, 0.1011739373, 0.2050562799, 0.0744854808, 0.1419046074, 0.1445285976, 0.0556369573, 0.4010793567, -0.2280428708, -0.1242995039, 0.112719655, 0.1466888636, 0.0686895773, 0.2591466308, -0.2458596975, -0.0610486828, 0.1060895324, -0.1954932958, 0.2656942904, 0.0236384477, -0.1252899468, -0.2641806602, -0.1312521547, 0.111490421, 0.09155453, 0.1169938818, -0.2215209007, 0.6455168724, -0.0375430472, 0.2969841957, 0.3342037499, -0.0001271115, -0.2188411504, 0.0915408731, -0.1815932393, -0.0922587141, 0.5504891872, 0.1914405823, -0.3445689082, -0.052295465, 0.012889429, -0.1940162778, 0.1353002638, -0.0969077945, -0.4302128255, 0.2448514551, 0.0724850222, 0.0480297729, -0.0077622584, -0.1181678995, 0.1708012968, -0.1092365906, -0.004405281, -0.2483724803, 0.1998685449, 0.249845311, -0.1698942035, -0.1137213856, 0.5557484627, -0.059014529, -0.0844292715, 0.5253401399, 0.0833814889, -0.3562976122, -0.1106623709, 0.3813787699, -0.0801357701, 0.3144637942, -0.4211863577, -0.0359758325, -0.5416685939, 0.1242923588, -0.4084811509, 0.4917796552, 0.1439301074, -0.308175385, 0.2055082023, -0.2643951178, -0.4621689022, -0.2639662623, -0.1211515516, -0.0510153361, -0.1692599356, -0.1779300272, 0.0038870913, 0.4981885552, -0.12435247, -0.0180546772, -0.114828214, -0.1485932171, 0.1664886326, -0.4704053402, -0.1601630449, -0.1597563922, 0.4838790596, 0.1778160483, 0.0343687721, 0.058015231, -0.2219775915, 0.0135496091, -0.0545078777, 0.0384912789, 0.6338205338, -0.4302007556, 0.1479857415, 0.0260615703, -0.1004758328, -0.0664959103, -0.084065333, -0.0061188187, -0.3888667226, 0.2431180626, -0.3094466925, 0.0366064645, -0.2660045028, -0.1329784244, 0.1096002012, 0.187757045, 0.1407829225, 0.2514515519, 0.3864438832, 0.1821058691, 0.3051149249, -0.3228457868, 0.2218099535, -0.2443424463, -0.1192897707, -0.0440737493, -0.0846644491, 0.0494985506, 0.3295776844, 0.3280153275, -0.1158237383, -0.0438294038, -0.1668730378, 0.2368200421, -0.0264211372, 0.030998867, -0.2585927844, 0.2868452668, 0.1123238802, -0.3598533571, 0.2251692563, 0.2425774485, 0.3989658356, -0.2411043048, 0.1247827113, -0.3550455272, -0.2518387735, 0.1480786204, -0.0142697105, -0.1831806451, -0.0969633833, -0.4297463894, 0.2190827578, 0.4013513327, -0.2894098461, 0.0460613519, 0.0167299677, -0.4555119872, -0.1271671504, 0.2183411121, 0.3905504644, -0.1844454706, -0.003756637, 0.0871427506, 0.4355637729, 0.0485233255, 0.6233543158, -0.1413375288, 0.0224385411, -0.3221300244, -0.2130482197, -0.0346540734, -0.5695790052, -0.7795038819, 0.0159559511, 0.0507360362, 0.2829304636, 0.3464263082, 0.1854575127, 0.0370458812, -0.1173866615, -0.129952237, 0.2160574943, -0.0045060334, -0.0558646545, -0.3231567144, -0.5304921865, 0.2853462696, -0.1147799939, 0.0466499478, 0.1006038859, -0.282222271, 0.0011680244, 0.1973253787, -0.0316378288, 0.2541680038, 0.3844376504, 0.2930665612, -0.3115616143, -0.0663590804, 0.0042586001, -0.4575057626, 0.1950946897, 0.178374052, -0.375320673, 0.124583438, -0.1003919989, 0.0144068431, -0.2264458239, -0.1339514256, -0.2168265581, -0.1374634057, -0.0339445248, 0.4003781676, -0.1763286442, -0.299110353, 0.3400560319, 0.0025756443, -0.0406321362, -0.3259864151, -0.0154327536, 0.1447563171, -0.0170680732, -0.2598403692, 0.1888256669, 0.0648191273, -0.0355281048, 0.0368642733, 0.2335705012, 0.0226671249, 0.3187161088, 0.3493317366, 0.3796351552, 0.2128701061, -0.0915229395, 0.2820821404, 0.2902056277, -0.0620261244, 0.0524618775, -0.3751503527, 0.2003803104, 0.0710653067, 0.1950618774, -0.1139810532, -0.236882776, 0.25141114, 0.136060223, 0.0944543928, -0.1216272712, 0.2244891673, 0.0017588531, 0.3925084174, 0.0476583578, -0.0416111238, 0.2306886166, 0.3817816973, 0.2312814146, 0.0795112103, 0.3927402198, -0.1257768124, -0.2583569288, 0.1078153253, 0.340051204, 0.5201389194, 0.1659972668, 0.1927119344, -0.0825791135, 0.0334070995, -0.0248667989, 0.1405936778, -0.2922538221, -0.1662440151, 0.0999909565, 0.1785677373, -0.1703336388, -0.1151008084, 0.2065086216, -0.0072107785, 0.037470568, -0.1230289489, 0.291549921, -0.0051881974, 0.0669604838, -0.3004218936, 0.2018046826, -0.4009773731, -0.0063930862, 0.1357573271, 0.5235956907, 0.0959124565, 0.0231751613, -0.1968864799, 0.733774066, -0.0781154111, -0.2568987012, 0.0806487799, -0.0120088514, -0.1814784408, -0.1487005204, 0.3093961477, -0.5017922521, 0.0971775204, 0.1724736989, -0.0851731226, -0.297937572, 0.1057201326, -0.0711285844, 0.1724737585, 0.0262170751, -0.3023273647, 0.3171687126, 0.0086359121, -0.0908929333, -0.0860918686, -0.1090197414, -0.0805502832, -0.1161439046, 0.0500084981, 0.4038139284, 0.1403169334, 0.0388045162, -0.2606483102, -0.2303480357, 0.2758387327, -0.1536941528, -0.043294467, 0.0811395422, 0.0112993736, -0.1315153688, -0.1234193668, -0.2881754935, -0.2525759041, -0.7670418024, 0.31757617, 0.0659809336, -0.0736876205, 0.1482880861, 0.2214993834, 0.3519729674, 0.1975895464, -0.5262954235, -0.1080437079, -0.1927302927, 0.2778545916, -0.2042675167, -0.2437516153, 0.3360221982, -0.1253869087, 0.1910072714, 0.0439109877, -0.1972724795, 0.2947355807, 0.2608200908, 0.3492496312, -0.0757249072, -0.0599259473, 0.0863768384, 0.9180574417, 0.0366473682, 0.11798805, 0.2343268096, 0.2871669829, 0.4486360848, -0.1861970574, -0.2464790046, 0.0511527546, -0.1345723122, -0.2713449001, 0.1046253219, 0.3082744777, 0.1466263831, 0.1631294191, -0.0689219758, 0.2187523693, -0.2138775438, 0.3311526179, -0.1401933432, 0.3264655471, 0.0280978791, 0.0892384201, -0.3383796215, -0.2278051674, 0.0030130309, 0.1278020591, 0.385055691, 0.2612068355, -0.2789205611, -0.2433246821, -0.4827177525, 0.1956559271, -0.0384943783, 0.0403401032, -0.3785455227, -0.2253631949, 0.1297898293, 0.020334335, 0.9234855771, 0.0464558564, 0.182125628, -0.2568491995, -0.0968072116, -0.0758300647, 0.0022397616, 0.290746361, -0.2174908072, -0.146792531, 0.40989241, 0.0378760509, -0.0872070491, -0.3201646507, 0.3639975488, -0.4575732648, 0.0065998207, -0.2253906727, -0.0537640527, -0.0625003651, 0.1516191661, 0.1337890327, 0.1230590269, 0.0934423879, 0.132009849, -0.1702724397, -0.042767629, -0.0555932075, 0.0200949162, 0.5271490216, 0.1192736775, 0.0408747941, 0.2363301665, 0.2522959709, 0.1998604387, 0.2740608752, 0.0932860821, -0.0258029159, -0.021449443, 0.0511355586, 0.1186636463, 0.4327242076, -0.2288734019, 0.2974846065, 0.0999589935, 0.1264848858, -0.7642991543, 0.076866366, 0.226920262, 0.389495939, -0.0471368097, -0.3855695426, 0.3176096976, 0.0167661365, -0.0140857147, 0.2437087148, 0.118674621, -0.5224872828, 0.0029738969, 0.0166975837, 1.0220944881, -0.0052736881, 0.525090158, 0.0106059173, 0.0838317946, 0.4028092325, -0.5466372371, 0.3585669696, 0.0577719249, -0.2558865547, -0.0354823582, 0.0891323686, -0.0084903594, -0.0728916973, -0.1517244428, 0.3895680904, -0.0946484953, 0.2141797245, -0.4183893204, -0.0863081738, -0.0117625035, -0.2253903896, -0.5132776499, 0.0545487553, -0.274211973, 0.1035262793, -0.0508339591, 0.0319065452, 0.1635923386, -0.0210020952, -0.3381099999, -0.20945324, -0.2528519034, -0.0258976184, -0.0363923907, -0.3285657465, -0.0165609904, 0.2719005048, 0.3318610787, 0.0905140936, -0.3641141355, 0.11960195, -0.1798490286, 0.0628118068, -0.2151516676, -0.0983464792, -0.1674999297, -0.054801628, 0.0174992438, 0.0707687289, 0.0337857679, -0.4108781219, 0.0175109729, 0.032257285, -0.1330734342, -0.0900965035, -0.2087690532, 0.1424431801, 0.0319385454, -0.0690166876, 0.045446001, 0.2176920772, -0.3402994871, 0.120439589, -0.2136461735, -0.2409317195, -0.0380489826, 0.4774670601, 0.0289598387, -0.2921251953, 0.5220632553, -0.0114158122, 0.0539456531, -0.1883497536, 0.1402014345, 0.1701513082, -0.1835627109, -0.053512767, 0.0281141326, -0.2855752707, -0.2057352066, -0.2029028833, 0.4924884737, -0.2519826293, -0.305051595, -0.1449887305, -0.4076449573, -0.0208898429, -0.2762919664, -0.0257769395, -0.0961908549, -0.2987637222, -0.0198851973, 0.191641748, -0.1431708336, 0.0142272832, -0.000121852, -0.167336449, 0.1038815528, 0.0274556838, 0.4854635, -0.0634694546, -0.1909932345, -0.1595239639, -0.0006296572, -0.0392892584, -0.0618141927, 0.1540686637, -0.1610925198, -0.012418746, -0.0185571164, -0.2299521267, 0.0444079116, -0.3296544552, 0.1573792398, 0.2143020183, 0.2089237571, -0.0216312725, -0.3265136182, 0.000211148, 0.0032438529, 0.1196156144, 0.2825599611, -0.1058218554, 0.0820928365, 0.1894637644, -0.0195171237, -0.0718133077, -0.1082032621, 0.2400289923, 0.030345913, -0.1075602472, 0.0023850447, -0.0374654084, -0.0143930651, 0.3485846817, 0.1381259114, 0.1901233196, -0.0317513086, -0.0102058072, 0.3290896416, 0.0324432254, -0.062922582, -0.3029328883, 0.1396769583, -0.1079890504, -0.0974477828, 0.3520595431, 0.0270170216, -0.2138874829, 0.0861032084, 0.1473430544, 0.4955662191, -0.2976680696, 0.362824738, 0.1930975318, 0.2126585841, 0.1036961079, 0.2905107737, 0.3293462098, 0.2367111892, 0.5512296557, -0.0336068384, 0.1553392857, 0.2877412736, 0.009771877, -0.2069424689, -0.3993996084, -0.4862812757, 0.25891155, -0.2133092433, 0.2273603231, -0.1336096972, 0.1467939168, -0.0414485782, -0.6776145101, -0.3064129651, -0.0712346882, -0.2433966547, -0.3478887081, 0.2802796364, -0.0567441396, 0.2844323814, 0.2872740924, 0.0796923861, -0.2331490517, 0.4815829992, -0.0546671301, -0.018018527, 0.1753602028, 0.0876786783, 0.2863030732, 0.1103289574, -0.1547990888, 0.2614774406, -0.0174215343, -0.129791677, 0.0276956465, 0.1919707954, 0.2432423085, 0.1001450121, -0.0423504263, 0.2072948664, 0.081716381, 0.1787054986, -0.3429945409, 0.152913779, -0.152560249, 0.0753112137, 0.033752434, -0.0319902822, 0.1195743531, 0.203812927, -0.1108585969, 0.2348306924, -0.4639112055, -0.0497003272, -0.2446763515, 0.0765303522, -0.2179708779, 0.2800678015, -0.2816496491, 0.1942260265, 0.5648446083, -0.0442584269, 0.3497543633, 0.1905338764, -0.0117880302, -0.0112694409, 0.7627522349, 0.108786203, -0.3031583428, -0.3050414622, 0.0308540463, -0.4886027277, 0.0807433724, -0.3152815402, 0.2396724671, -0.2080786973, 0.105650574, 0.0669875294, -0.0189331751, -0.0772995278, -0.0975535139, 0.0512743257, 0.0465316251, -0.3450728357, -0.0946512744, 0.1758094281, 0.2280649543, 0.0866624042, -0.3995474279, 0.2115195543, 0.1642512679, -0.1586642265, 0.4196972251, 0.1869823784, -0.4918375611, 0.2579592168, -0.1285670847, 0.1905248612, 0.1110508889, 0.2345270663, 0.0312415902, -0.4896025658, -0.0348943882, -0.232732445, -0.0441681817, -0.1201227158, 0.2055238485, -0.5847110748, 0.0387655012, -0.376958698, 0.2036788166, 0.3197951019, -0.1638132483, 0.0926559493, -0.012531233, 0.1860567778, 0.0903327763, 0.4170556962, 0.419819802, -0.0685717985, 0.0642156899, -0.3439031541, 0.1352642924, 0.2230735421, -0.3471210599, -0.3600993752, 0.257081002, 0.3946216106, 0.5234392881, -0.3522133529, -0.3459507525, 0.1152446717, 0.0333080105, 0.0821381211, -0.1448382586, 0.201144293, -0.2863759995, -0.2533285022, 0.142497316, 0.310041666, 0.3002068102, -0.1675546616, 0.2714892626, -0.3209955394 ]
https://github.com/huggingface/datasets/issues/2591
Cached dataset overflowing disk space
Hi @BirgerMoell, We are planning to add a new feature to datasets, which could be interesting in your case: Add the option to delete temporary files (decompressed files) from the cache directory (see: #2481, #2604). We will ping you once this feature is implemented, so that the size of your cache directory will be considerably reduced.
I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb). The cache folder is 500gb (and now my disk space is full). Is there a way to toggle caching or set the caching to be stored on a different device (I have another drive with 4 tb that could hold the caching files). This might not technically be a bug, but I was unsure and I felt that the bug was the closest one. Traceback (most recent call last): File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/multiprocess/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 186, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/fingerprint.py", line 397, in wrapper out = func(self, *args, **kwargs) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1983, in _map_single writer.finalize() File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_writer.py", line 418, in finalize self.pa_writer.close() File "pyarrow/ipc.pxi", line 402, in pyarrow.lib._CRecordBatchWriter.close File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status OSError: [Errno 28] Error writing bytes to file. Detail: [errno 28] No space left on device """ The above exception was the direct cause of the following exception:
56
Cached dataset overflowing disk space I'm training a Swedish Wav2vec2 model on a Linux GPU and having issues that the huggingface cached dataset folder is completely filling up my disk space (I'm training on a dataset of around 500 gb). The cache folder is 500gb (and now my disk space is full). Is there a way to toggle caching or set the caching to be stored on a different device (I have another drive with 4 tb that could hold the caching files). This might not technically be a bug, but I was unsure and I felt that the bug was the closest one. Traceback (most recent call last): File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/multiprocess/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 186, in wrapper out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/fingerprint.py", line 397, in wrapper out = func(self, *args, **kwargs) File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_dataset.py", line 1983, in _map_single writer.finalize() File "/home/birger/miniconda3/envs/wav2vec2/lib/python3.7/site-packages/datasets/arrow_writer.py", line 418, in finalize self.pa_writer.close() File "pyarrow/ipc.pxi", line 402, in pyarrow.lib._CRecordBatchWriter.close File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status OSError: [Errno 28] Error writing bytes to file. Detail: [errno 28] No space left on device """ The above exception was the direct cause of the following exception: Hi @BirgerMoell, We are planning to add a new feature to datasets, which could be interesting in your case: Add the option to delete temporary files (decompressed files) from the cache directory (see: #2481, #2604). We will ping you once this feature is implemented, so that the size of your cache directory will be considerably reduced.
[ 0.0375595018, -0.4222130477, 0.0985903442, 0.4514757097, 0.1011739373, 0.2050562799, 0.0744854808, 0.1419046074, 0.1445285976, 0.0556369573, 0.4010793567, -0.2280428708, -0.1242995039, 0.112719655, 0.1466888636, 0.0686895773, 0.2591466308, -0.2458596975, -0.0610486828, 0.1060895324, -0.1954932958, 0.2656942904, 0.0236384477, -0.1252899468, -0.2641806602, -0.1312521547, 0.111490421, 0.09155453, 0.1169938818, -0.2215209007, 0.6455168724, -0.0375430472, 0.2969841957, 0.3342037499, -0.0001271115, -0.2188411504, 0.0915408731, -0.1815932393, -0.0922587141, 0.5504891872, 0.1914405823, -0.3445689082, -0.052295465, 0.012889429, -0.1940162778, 0.1353002638, -0.0969077945, -0.4302128255, 0.2448514551, 0.0724850222, 0.0480297729, -0.0077622584, -0.1181678995, 0.1708012968, -0.1092365906, -0.004405281, -0.2483724803, 0.1998685449, 0.249845311, -0.1698942035, -0.1137213856, 0.5557484627, -0.059014529, -0.0844292715, 0.5253401399, 0.0833814889, -0.3562976122, -0.1106623709, 0.3813787699, -0.0801357701, 0.3144637942, -0.4211863577, -0.0359758325, -0.5416685939, 0.1242923588, -0.4084811509, 0.4917796552, 0.1439301074, -0.308175385, 0.2055082023, -0.2643951178, -0.4621689022, -0.2639662623, -0.1211515516, -0.0510153361, -0.1692599356, -0.1779300272, 0.0038870913, 0.4981885552, -0.12435247, -0.0180546772, -0.114828214, -0.1485932171, 0.1664886326, -0.4704053402, -0.1601630449, -0.1597563922, 0.4838790596, 0.1778160483, 0.0343687721, 0.058015231, -0.2219775915, 0.0135496091, -0.0545078777, 0.0384912789, 0.6338205338, -0.4302007556, 0.1479857415, 0.0260615703, -0.1004758328, -0.0664959103, -0.084065333, -0.0061188187, -0.3888667226, 0.2431180626, -0.3094466925, 0.0366064645, -0.2660045028, -0.1329784244, 0.1096002012, 0.187757045, 0.1407829225, 0.2514515519, 0.3864438832, 0.1821058691, 0.3051149249, -0.3228457868, 0.2218099535, -0.2443424463, -0.1192897707, -0.0440737493, -0.0846644491, 0.0494985506, 0.3295776844, 0.3280153275, -0.1158237383, -0.0438294038, -0.1668730378, 0.2368200421, -0.0264211372, 0.030998867, -0.2585927844, 0.2868452668, 0.1123238802, -0.3598533571, 0.2251692563, 0.2425774485, 0.3989658356, -0.2411043048, 0.1247827113, -0.3550455272, -0.2518387735, 0.1480786204, -0.0142697105, -0.1831806451, -0.0969633833, -0.4297463894, 0.2190827578, 0.4013513327, -0.2894098461, 0.0460613519, 0.0167299677, -0.4555119872, -0.1271671504, 0.2183411121, 0.3905504644, -0.1844454706, -0.003756637, 0.0871427506, 0.4355637729, 0.0485233255, 0.6233543158, -0.1413375288, 0.0224385411, -0.3221300244, -0.2130482197, -0.0346540734, -0.5695790052, -0.7795038819, 0.0159559511, 0.0507360362, 0.2829304636, 0.3464263082, 0.1854575127, 0.0370458812, -0.1173866615, -0.129952237, 0.2160574943, -0.0045060334, -0.0558646545, -0.3231567144, -0.5304921865, 0.2853462696, -0.1147799939, 0.0466499478, 0.1006038859, -0.282222271, 0.0011680244, 0.1973253787, -0.0316378288, 0.2541680038, 0.3844376504, 0.2930665612, -0.3115616143, -0.0663590804, 0.0042586001, -0.4575057626, 0.1950946897, 0.178374052, -0.375320673, 0.124583438, -0.1003919989, 0.0144068431, -0.2264458239, -0.1339514256, -0.2168265581, -0.1374634057, -0.0339445248, 0.4003781676, -0.1763286442, -0.299110353, 0.3400560319, 0.0025756443, -0.0406321362, -0.3259864151, -0.0154327536, 0.1447563171, -0.0170680732, -0.2598403692, 0.1888256669, 0.0648191273, -0.0355281048, 0.0368642733, 0.2335705012, 0.0226671249, 0.3187161088, 0.3493317366, 0.3796351552, 0.2128701061, -0.0915229395, 0.2820821404, 0.2902056277, -0.0620261244, 0.0524618775, -0.3751503527, 0.2003803104, 0.0710653067, 0.1950618774, -0.1139810532, -0.236882776, 0.25141114, 0.136060223, 0.0944543928, -0.1216272712, 0.2244891673, 0.0017588531, 0.3925084174, 0.0476583578, -0.0416111238, 0.2306886166, 0.3817816973, 0.2312814146, 0.0795112103, 0.3927402198, -0.1257768124, -0.2583569288, 0.1078153253, 0.340051204, 0.5201389194, 0.1659972668, 0.1927119344, -0.0825791135, 0.0334070995, -0.0248667989, 0.1405936778, -0.2922538221, -0.1662440151, 0.0999909565, 0.1785677373, -0.1703336388, -0.1151008084, 0.2065086216, -0.0072107785, 0.037470568, -0.1230289489, 0.291549921, -0.0051881974, 0.0669604838, -0.3004218936, 0.2018046826, -0.4009773731, -0.0063930862, 0.1357573271, 0.5235956907, 0.0959124565, 0.0231751613, -0.1968864799, 0.733774066, -0.0781154111, -0.2568987012, 0.0806487799, -0.0120088514, -0.1814784408, -0.1487005204, 0.3093961477, -0.5017922521, 0.0971775204, 0.1724736989, -0.0851731226, -0.297937572, 0.1057201326, -0.0711285844, 0.1724737585, 0.0262170751, -0.3023273647, 0.3171687126, 0.0086359121, -0.0908929333, -0.0860918686, -0.1090197414, -0.0805502832, -0.1161439046, 0.0500084981, 0.4038139284, 0.1403169334, 0.0388045162, -0.2606483102, -0.2303480357, 0.2758387327, -0.1536941528, -0.043294467, 0.0811395422, 0.0112993736, -0.1315153688, -0.1234193668, -0.2881754935, -0.2525759041, -0.7670418024, 0.31757617, 0.0659809336, -0.0736876205, 0.1482880861, 0.2214993834, 0.3519729674, 0.1975895464, -0.5262954235, -0.1080437079, -0.1927302927, 0.2778545916, -0.2042675167, -0.2437516153, 0.3360221982, -0.1253869087, 0.1910072714, 0.0439109877, -0.1972724795, 0.2947355807, 0.2608200908, 0.3492496312, -0.0757249072, -0.0599259473, 0.0863768384, 0.9180574417, 0.0366473682, 0.11798805, 0.2343268096, 0.2871669829, 0.4486360848, -0.1861970574, -0.2464790046, 0.0511527546, -0.1345723122, -0.2713449001, 0.1046253219, 0.3082744777, 0.1466263831, 0.1631294191, -0.0689219758, 0.2187523693, -0.2138775438, 0.3311526179, -0.1401933432, 0.3264655471, 0.0280978791, 0.0892384201, -0.3383796215, -0.2278051674, 0.0030130309, 0.1278020591, 0.385055691, 0.2612068355, -0.2789205611, -0.2433246821, -0.4827177525, 0.1956559271, -0.0384943783, 0.0403401032, -0.3785455227, -0.2253631949, 0.1297898293, 0.020334335, 0.9234855771, 0.0464558564, 0.182125628, -0.2568491995, -0.0968072116, -0.0758300647, 0.0022397616, 0.290746361, -0.2174908072, -0.146792531, 0.40989241, 0.0378760509, -0.0872070491, -0.3201646507, 0.3639975488, -0.4575732648, 0.0065998207, -0.2253906727, -0.0537640527, -0.0625003651, 0.1516191661, 0.1337890327, 0.1230590269, 0.0934423879, 0.132009849, -0.1702724397, -0.042767629, -0.0555932075, 0.0200949162, 0.5271490216, 0.1192736775, 0.0408747941, 0.2363301665, 0.2522959709, 0.1998604387, 0.2740608752, 0.0932860821, -0.0258029159, -0.021449443, 0.0511355586, 0.1186636463, 0.4327242076, -0.2288734019, 0.2974846065, 0.0999589935, 0.1264848858, -0.7642991543, 0.076866366, 0.226920262, 0.389495939, -0.0471368097, -0.3855695426, 0.3176096976, 0.0167661365, -0.0140857147, 0.2437087148, 0.118674621, -0.5224872828, 0.0029738969, 0.0166975837, 1.0220944881, -0.0052736881, 0.525090158, 0.0106059173, 0.0838317946, 0.4028092325, -0.5466372371, 0.3585669696, 0.0577719249, -0.2558865547, -0.0354823582, 0.0891323686, -0.0084903594, -0.0728916973, -0.1517244428, 0.3895680904, -0.0946484953, 0.2141797245, -0.4183893204, -0.0863081738, -0.0117625035, -0.2253903896, -0.5132776499, 0.0545487553, -0.274211973, 0.1035262793, -0.0508339591, 0.0319065452, 0.1635923386, -0.0210020952, -0.3381099999, -0.20945324, -0.2528519034, -0.0258976184, -0.0363923907, -0.3285657465, -0.0165609904, 0.2719005048, 0.3318610787, 0.0905140936, -0.3641141355, 0.11960195, -0.1798490286, 0.0628118068, -0.2151516676, -0.0983464792, -0.1674999297, -0.054801628, 0.0174992438, 0.0707687289, 0.0337857679, -0.4108781219, 0.0175109729, 0.032257285, -0.1330734342, -0.0900965035, -0.2087690532, 0.1424431801, 0.0319385454, -0.0690166876, 0.045446001, 0.2176920772, -0.3402994871, 0.120439589, -0.2136461735, -0.2409317195, -0.0380489826, 0.4774670601, 0.0289598387, -0.2921251953, 0.5220632553, -0.0114158122, 0.0539456531, -0.1883497536, 0.1402014345, 0.1701513082, -0.1835627109, -0.053512767, 0.0281141326, -0.2855752707, -0.2057352066, -0.2029028833, 0.4924884737, -0.2519826293, -0.305051595, -0.1449887305, -0.4076449573, -0.0208898429, -0.2762919664, -0.0257769395, -0.0961908549, -0.2987637222, -0.0198851973, 0.191641748, -0.1431708336, 0.0142272832, -0.000121852, -0.167336449, 0.1038815528, 0.0274556838, 0.4854635, -0.0634694546, -0.1909932345, -0.1595239639, -0.0006296572, -0.0392892584, -0.0618141927, 0.1540686637, -0.1610925198, -0.012418746, -0.0185571164, -0.2299521267, 0.0444079116, -0.3296544552, 0.1573792398, 0.2143020183, 0.2089237571, -0.0216312725, -0.3265136182, 0.000211148, 0.0032438529, 0.1196156144, 0.2825599611, -0.1058218554, 0.0820928365, 0.1894637644, -0.0195171237, -0.0718133077, -0.1082032621, 0.2400289923, 0.030345913, -0.1075602472, 0.0023850447, -0.0374654084, -0.0143930651, 0.3485846817, 0.1381259114, 0.1901233196, -0.0317513086, -0.0102058072, 0.3290896416, 0.0324432254, -0.062922582, -0.3029328883, 0.1396769583, -0.1079890504, -0.0974477828, 0.3520595431, 0.0270170216, -0.2138874829, 0.0861032084, 0.1473430544, 0.4955662191, -0.2976680696, 0.362824738, 0.1930975318, 0.2126585841, 0.1036961079, 0.2905107737, 0.3293462098, 0.2367111892, 0.5512296557, -0.0336068384, 0.1553392857, 0.2877412736, 0.009771877, -0.2069424689, -0.3993996084, -0.4862812757, 0.25891155, -0.2133092433, 0.2273603231, -0.1336096972, 0.1467939168, -0.0414485782, -0.6776145101, -0.3064129651, -0.0712346882, -0.2433966547, -0.3478887081, 0.2802796364, -0.0567441396, 0.2844323814, 0.2872740924, 0.0796923861, -0.2331490517, 0.4815829992, -0.0546671301, -0.018018527, 0.1753602028, 0.0876786783, 0.2863030732, 0.1103289574, -0.1547990888, 0.2614774406, -0.0174215343, -0.129791677, 0.0276956465, 0.1919707954, 0.2432423085, 0.1001450121, -0.0423504263, 0.2072948664, 0.081716381, 0.1787054986, -0.3429945409, 0.152913779, -0.152560249, 0.0753112137, 0.033752434, -0.0319902822, 0.1195743531, 0.203812927, -0.1108585969, 0.2348306924, -0.4639112055, -0.0497003272, -0.2446763515, 0.0765303522, -0.2179708779, 0.2800678015, -0.2816496491, 0.1942260265, 0.5648446083, -0.0442584269, 0.3497543633, 0.1905338764, -0.0117880302, -0.0112694409, 0.7627522349, 0.108786203, -0.3031583428, -0.3050414622, 0.0308540463, -0.4886027277, 0.0807433724, -0.3152815402, 0.2396724671, -0.2080786973, 0.105650574, 0.0669875294, -0.0189331751, -0.0772995278, -0.0975535139, 0.0512743257, 0.0465316251, -0.3450728357, -0.0946512744, 0.1758094281, 0.2280649543, 0.0866624042, -0.3995474279, 0.2115195543, 0.1642512679, -0.1586642265, 0.4196972251, 0.1869823784, -0.4918375611, 0.2579592168, -0.1285670847, 0.1905248612, 0.1110508889, 0.2345270663, 0.0312415902, -0.4896025658, -0.0348943882, -0.232732445, -0.0441681817, -0.1201227158, 0.2055238485, -0.5847110748, 0.0387655012, -0.376958698, 0.2036788166, 0.3197951019, -0.1638132483, 0.0926559493, -0.012531233, 0.1860567778, 0.0903327763, 0.4170556962, 0.419819802, -0.0685717985, 0.0642156899, -0.3439031541, 0.1352642924, 0.2230735421, -0.3471210599, -0.3600993752, 0.257081002, 0.3946216106, 0.5234392881, -0.3522133529, -0.3459507525, 0.1152446717, 0.0333080105, 0.0821381211, -0.1448382586, 0.201144293, -0.2863759995, -0.2533285022, 0.142497316, 0.310041666, 0.3002068102, -0.1675546616, 0.2714892626, -0.3209955394 ]
https://github.com/huggingface/datasets/issues/2585
sqaud_v2 dataset contains misalignment between the answer text and the context value at the answer index
Hi @mmajurski, thanks for reporting this issue. Indeed this misalignment arises because the source dataset context field contains leading blank spaces (and these are counted within the answer_start), while our datasets loading script removes these leading blank spaces. I'm going to fix our script so that all leading blank spaces in the source dataset are kept, and there is no misalignment between the answer text and the answer_start within the context.
## Describe the bug The built in huggingface squad_v2 dataset that you can access via datasets.load_dataset contains mis-alignment between the answers['text'] and the characters in the context at the location specified by answers['answer_start']. For example: id = '56d1f453e7d4791d009025bd' answers = {'text': ['Pure Land'], 'answer_start': [146]} However the actual text in context at location 146 is 'ure Land,' Which is an off-by-one error from the correct answer. ## Steps to reproduce the bug ```python import datasets def check_context_answer_alignment(example): for a_idx in range(len(example['answers']['text'])): # check raw dataset for answer consistency between context and answer answer_text = example['answers']['text'][a_idx] a_st_idx = example['answers']['answer_start'][a_idx] a_end_idx = a_st_idx + len(example['answers']['text'][a_idx]) answer_text_from_context = example['context'][a_st_idx:a_end_idx] if answer_text != answer_text_from_context: #print(example['id']) return False return True dataset = datasets.load_dataset('squad_v2', split='train', keep_in_memory=True) start_len = len(dataset) dataset = dataset.filter(check_context_answer_alignment, num_proc=1, keep_in_memory=True) end_len = len(dataset) print('{} instances contain mis-alignment between the answer text and answer index.'.format(start_len - end_len)) ``` ## Expected results This code should result in 0 rows being filtered out from the dataset. ## Actual results This filter command results in 258 rows being flagged as containing a discrepancy between the text contained within answers['text'] and the text in example['context'] at the answers['answer_start'] location. This code will reproduce the problem and produce the following count: "258 instances contain mis-alignment between the answer text and answer index." ## Environment info Steps to rebuilt the Conda environment: ``` # create a virtual environment to stuff all these packages into conda create -n round8 python=3.8 -y # activate the virtual environment conda activate round8 # install pytorch (best done through conda to handle cuda dependencies) conda install pytorch torchvision torchtext cudatoolkit=11.1 -c pytorch-lts -c nvidia pip install jsonpickle transformers datasets matplotlib ``` OS: Ubuntu 20.04 Python 3.8 Result of `conda env export`: ``` name: round8 channels: - pytorch-lts - nvidia - defaults dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=4.5=1_gnu - blas=1.0=mkl - brotlipy=0.7.0=py38h27cfd23_1003 - bzip2=1.0.8=h7b6447c_0 - ca-certificates=2021.5.25=h06a4308_1 - certifi=2021.5.30=py38h06a4308_0 - cffi=1.14.5=py38h261ae71_0 - chardet=4.0.0=py38h06a4308_1003 - cryptography=3.4.7=py38hd23ed53_0 - cudatoolkit=11.1.74=h6bb024c_0 - ffmpeg=4.2.2=h20bf706_0 - freetype=2.10.4=h5ab3b9f_0 - gmp=6.2.1=h2531618_2 - gnutls=3.6.15=he1e5248_0 - idna=2.10=pyhd3eb1b0_0 - intel-openmp=2021.2.0=h06a4308_610 - jpeg=9b=h024ee3a_2 - lame=3.100=h7b6447c_0 - lcms2=2.12=h3be6417_0 - ld_impl_linux-64=2.35.1=h7274673_9 - libffi=3.3=he6710b0_2 - libgcc-ng=9.3.0=h5101ec6_17 - libgomp=9.3.0=h5101ec6_17 - libidn2=2.3.1=h27cfd23_0 - libopus=1.3.1=h7b6447c_0 - libpng=1.6.37=hbc83047_0 - libstdcxx-ng=9.3.0=hd4cf53a_17 - libtasn1=4.16.0=h27cfd23_0 - libtiff=4.2.0=h85742a9_0 - libunistring=0.9.10=h27cfd23_0 - libuv=1.40.0=h7b6447c_0 - libvpx=1.7.0=h439df22_0 - libwebp-base=1.2.0=h27cfd23_0 - lz4-c=1.9.3=h2531618_0 - mkl=2021.2.0=h06a4308_296 - mkl-service=2.3.0=py38h27cfd23_1 - mkl_fft=1.3.0=py38h42c9631_2 - mkl_random=1.2.1=py38ha9443f7_2 - ncurses=6.2=he6710b0_1 - nettle=3.7.3=hbbd107a_1 - ninja=1.10.2=hff7bd54_1 - numpy=1.20.2=py38h2d18471_0 - numpy-base=1.20.2=py38hfae3a4d_0 - olefile=0.46=py_0 - openh264=2.1.0=hd408876_0 - openssl=1.1.1k=h27cfd23_0 - pillow=8.2.0=py38he98fc37_0 - pip=21.1.2=py38h06a4308_0 - pycparser=2.20=py_2 - pyopenssl=20.0.1=pyhd3eb1b0_1 - pysocks=1.7.1=py38h06a4308_0 - python=3.8.10=h12debd9_8 - pytorch=1.8.1=py3.8_cuda11.1_cudnn8.0.5_0 - readline=8.1=h27cfd23_0 - requests=2.25.1=pyhd3eb1b0_0 - setuptools=52.0.0=py38h06a4308_0 - six=1.16.0=pyhd3eb1b0_0 - sqlite=3.35.4=hdfb4753_0 - tk=8.6.10=hbc83047_0 - torchtext=0.9.1=py38 - torchvision=0.9.1=py38_cu111 - typing_extensions=3.7.4.3=pyha847dfd_0 - urllib3=1.26.4=pyhd3eb1b0_0 - wheel=0.36.2=pyhd3eb1b0_0 - x264=1!157.20191217=h7b6447c_0 - xz=5.2.5=h7b6447c_0 - zlib=1.2.11=h7b6447c_3 - zstd=1.4.9=haebb681_0 - pip: - click==8.0.1 - cycler==0.10.0 - datasets==1.8.0 - dill==0.3.4 - filelock==3.0.12 - fsspec==2021.6.0 - huggingface-hub==0.0.8 - joblib==1.0.1 - jsonpickle==2.0.0 - kiwisolver==1.3.1 - matplotlib==3.4.2 - multiprocess==0.70.12.2 - packaging==20.9 - pandas==1.2.4 - pyarrow==3.0.0 - pyparsing==2.4.7 - python-dateutil==2.8.1 - pytz==2021.1 - regex==2021.4.4 - sacremoses==0.0.45 - tokenizers==0.10.3 - tqdm==4.49.0 - transformers==4.6.1 - xxhash==2.0.2 prefix: /home/mmajurski/anaconda3/envs/round8 ```
71
sqaud_v2 dataset contains misalignment between the answer text and the context value at the answer index ## Describe the bug The built in huggingface squad_v2 dataset that you can access via datasets.load_dataset contains mis-alignment between the answers['text'] and the characters in the context at the location specified by answers['answer_start']. For example: id = '56d1f453e7d4791d009025bd' answers = {'text': ['Pure Land'], 'answer_start': [146]} However the actual text in context at location 146 is 'ure Land,' Which is an off-by-one error from the correct answer. ## Steps to reproduce the bug ```python import datasets def check_context_answer_alignment(example): for a_idx in range(len(example['answers']['text'])): # check raw dataset for answer consistency between context and answer answer_text = example['answers']['text'][a_idx] a_st_idx = example['answers']['answer_start'][a_idx] a_end_idx = a_st_idx + len(example['answers']['text'][a_idx]) answer_text_from_context = example['context'][a_st_idx:a_end_idx] if answer_text != answer_text_from_context: #print(example['id']) return False return True dataset = datasets.load_dataset('squad_v2', split='train', keep_in_memory=True) start_len = len(dataset) dataset = dataset.filter(check_context_answer_alignment, num_proc=1, keep_in_memory=True) end_len = len(dataset) print('{} instances contain mis-alignment between the answer text and answer index.'.format(start_len - end_len)) ``` ## Expected results This code should result in 0 rows being filtered out from the dataset. ## Actual results This filter command results in 258 rows being flagged as containing a discrepancy between the text contained within answers['text'] and the text in example['context'] at the answers['answer_start'] location. This code will reproduce the problem and produce the following count: "258 instances contain mis-alignment between the answer text and answer index." ## Environment info Steps to rebuilt the Conda environment: ``` # create a virtual environment to stuff all these packages into conda create -n round8 python=3.8 -y # activate the virtual environment conda activate round8 # install pytorch (best done through conda to handle cuda dependencies) conda install pytorch torchvision torchtext cudatoolkit=11.1 -c pytorch-lts -c nvidia pip install jsonpickle transformers datasets matplotlib ``` OS: Ubuntu 20.04 Python 3.8 Result of `conda env export`: ``` name: round8 channels: - pytorch-lts - nvidia - defaults dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=4.5=1_gnu - blas=1.0=mkl - brotlipy=0.7.0=py38h27cfd23_1003 - bzip2=1.0.8=h7b6447c_0 - ca-certificates=2021.5.25=h06a4308_1 - certifi=2021.5.30=py38h06a4308_0 - cffi=1.14.5=py38h261ae71_0 - chardet=4.0.0=py38h06a4308_1003 - cryptography=3.4.7=py38hd23ed53_0 - cudatoolkit=11.1.74=h6bb024c_0 - ffmpeg=4.2.2=h20bf706_0 - freetype=2.10.4=h5ab3b9f_0 - gmp=6.2.1=h2531618_2 - gnutls=3.6.15=he1e5248_0 - idna=2.10=pyhd3eb1b0_0 - intel-openmp=2021.2.0=h06a4308_610 - jpeg=9b=h024ee3a_2 - lame=3.100=h7b6447c_0 - lcms2=2.12=h3be6417_0 - ld_impl_linux-64=2.35.1=h7274673_9 - libffi=3.3=he6710b0_2 - libgcc-ng=9.3.0=h5101ec6_17 - libgomp=9.3.0=h5101ec6_17 - libidn2=2.3.1=h27cfd23_0 - libopus=1.3.1=h7b6447c_0 - libpng=1.6.37=hbc83047_0 - libstdcxx-ng=9.3.0=hd4cf53a_17 - libtasn1=4.16.0=h27cfd23_0 - libtiff=4.2.0=h85742a9_0 - libunistring=0.9.10=h27cfd23_0 - libuv=1.40.0=h7b6447c_0 - libvpx=1.7.0=h439df22_0 - libwebp-base=1.2.0=h27cfd23_0 - lz4-c=1.9.3=h2531618_0 - mkl=2021.2.0=h06a4308_296 - mkl-service=2.3.0=py38h27cfd23_1 - mkl_fft=1.3.0=py38h42c9631_2 - mkl_random=1.2.1=py38ha9443f7_2 - ncurses=6.2=he6710b0_1 - nettle=3.7.3=hbbd107a_1 - ninja=1.10.2=hff7bd54_1 - numpy=1.20.2=py38h2d18471_0 - numpy-base=1.20.2=py38hfae3a4d_0 - olefile=0.46=py_0 - openh264=2.1.0=hd408876_0 - openssl=1.1.1k=h27cfd23_0 - pillow=8.2.0=py38he98fc37_0 - pip=21.1.2=py38h06a4308_0 - pycparser=2.20=py_2 - pyopenssl=20.0.1=pyhd3eb1b0_1 - pysocks=1.7.1=py38h06a4308_0 - python=3.8.10=h12debd9_8 - pytorch=1.8.1=py3.8_cuda11.1_cudnn8.0.5_0 - readline=8.1=h27cfd23_0 - requests=2.25.1=pyhd3eb1b0_0 - setuptools=52.0.0=py38h06a4308_0 - six=1.16.0=pyhd3eb1b0_0 - sqlite=3.35.4=hdfb4753_0 - tk=8.6.10=hbc83047_0 - torchtext=0.9.1=py38 - torchvision=0.9.1=py38_cu111 - typing_extensions=3.7.4.3=pyha847dfd_0 - urllib3=1.26.4=pyhd3eb1b0_0 - wheel=0.36.2=pyhd3eb1b0_0 - x264=1!157.20191217=h7b6447c_0 - xz=5.2.5=h7b6447c_0 - zlib=1.2.11=h7b6447c_3 - zstd=1.4.9=haebb681_0 - pip: - click==8.0.1 - cycler==0.10.0 - datasets==1.8.0 - dill==0.3.4 - filelock==3.0.12 - fsspec==2021.6.0 - huggingface-hub==0.0.8 - joblib==1.0.1 - jsonpickle==2.0.0 - kiwisolver==1.3.1 - matplotlib==3.4.2 - multiprocess==0.70.12.2 - packaging==20.9 - pandas==1.2.4 - pyarrow==3.0.0 - pyparsing==2.4.7 - python-dateutil==2.8.1 - pytz==2021.1 - regex==2021.4.4 - sacremoses==0.0.45 - tokenizers==0.10.3 - tqdm==4.49.0 - transformers==4.6.1 - xxhash==2.0.2 prefix: /home/mmajurski/anaconda3/envs/round8 ``` Hi @mmajurski, thanks for reporting this issue. Indeed this misalignment arises because the source dataset context field contains leading blank spaces (and these are counted within the answer_start), while our datasets loading script removes these leading blank spaces. I'm going to fix our script so that all leading blank spaces in the source dataset are kept, and there is no misalignment between the answer text and the answer_start within the context.
[ -0.2330303192, -0.3295378387, -0.0441100672, 0.3749360144, 0.0878229886, -0.0763422325, 0.1057570949, 0.2279032767, -0.2927473187, 0.1577833146, -0.0841631815, 0.0450685136, 0.3250356019, 0.0685454607, -0.0926084593, 0.1523637623, 0.1756329089, 0.0104245786, 0.0099454969, -0.172503978, -0.2248983383, 0.2991382778, -0.2980324626, 0.0300304368, -0.3425647914, -0.0102490904, 0.0364246517, 0.1131832302, -0.1175084263, -0.4159388542, 0.2125023156, -0.0936788321, 0.0077113225, 0.2638636231, -0.000116531, -0.1706250906, 0.0728382543, -0.0973288417, -0.2682836354, 0.0041922689, -0.0435587615, -0.1216912344, -0.1298897564, -0.1058421135, -0.2390318215, 0.2717562914, -0.0673229247, -0.2866247892, 0.6096699238, 0.2443221956, 0.1451373994, 0.2883638144, 0.0109262569, -0.0647381619, 0.1786869764, -0.1235732585, 0.0756945461, 0.1191269085, 0.1456331611, 0.1079361886, -0.0346997939, 0.4713859558, -0.1343522668, -0.0318910591, -0.0061443951, 0.2904497981, 0.2066176683, -0.1278317422, 0.0998570174, 0.1311749071, 0.2598810792, -0.2484470159, -0.4248087704, -0.4569476247, -0.035827741, -0.1224058121, 0.3317505121, 0.0394535623, -0.0311523117, 0.3647891283, -0.1365325898, 0.0710277781, -0.0857499987, 0.1271403581, -0.0876927525, 0.2383426428, -0.1219490021, 0.1492215544, -0.2677048147, -0.1386349052, -0.0631167516, -0.1375984102, -0.1052336693, 0.4171855748, -0.5139368176, -0.1013480574, -0.1679380387, 0.0907931477, 0.2361778915, 0.0694944263, -0.0699166507, 0.0015248167, 0.2659209073, 0.0613521338, 0.3417299688, 0.2773299515, -0.1180535257, 0.2556288838, 0.1020578071, 0.1474465132, 0.0414644219, 0.1034671813, 0.1996171474, -0.184156999, -0.1082463712, -0.1547537148, 0.1684665531, -0.1887484342, -0.5222854018, 0.4338440001, -0.631930232, 0.2756718993, -0.0214352012, 0.3482970595, -0.22168459, 0.2669173181, 0.3325076997, 0.2442841232, -0.0650029927, -0.185168162, -0.1330847293, -0.0969801545, -0.0144070443, -0.0344588198, 0.0072186547, -0.129373312, 0.2271303982, 0.296105653, 0.2128193378, -0.2205923051, -0.3132044077, -0.164873004, 0.1410585642, 0.0306856055, 0.0271049608, 0.1876550019, 0.1873007566, -0.2884294987, 0.0731954426, 0.093006134, -0.2383057624, 0.0768733397, -0.0992044061, 0.2245202661, -0.1660035104, -0.0564259626, 0.0465996154, 0.2456641495, 0.2966583967, -0.2863130569, 0.2683807611, -0.2038263232, -0.3300070465, -0.0881245881, 0.3650221527, 0.2920378745, -0.1985459328, -0.0659260303, -0.0561405607, 0.1563176364, 0.0265873671, 0.2375260293, 0.2730122209, 0.2942620814, -0.4212448299, 0.2674054801, 0.1037337333, -0.854011476, -0.5590249896, -0.1742200255, -0.1163506955, 0.2251103073, -0.1036158502, 0.0728596672, 0.4342784882, 0.1543434411, 0.2735284567, 0.5391796231, 0.0679247677, 0.1189369783, -0.3740177453, 0.0432917625, -0.09266828, 0.1235256344, -0.2477577925, -0.1743767112, 0.0530980416, -0.183474049, 0.1845172197, 0.1049053222, 0.0700078532, 0.2424083501, 0.3292448819, 0.1207569018, 0.1795453429, -0.5024954081, -0.4840290844, 0.0933748633, -0.0992039442, 0.0597214177, -0.0624959841, -0.136067152, -0.3975330889, -0.0361760631, -0.3520286083, -0.3007715642, 0.0909300968, 0.0083290311, 0.1742567867, 0.1125234738, -0.1105443612, 0.6274505258, -0.2027089894, 0.2574427128, -0.0648542345, 0.1838029623, -0.0369920768, 0.0197877008, 0.0257438719, 0.4265459776, -0.0366344713, 0.0865882039, -0.2453000993, 0.5439849496, 0.2354307026, 0.197518155, -0.2265352905, -0.0887752026, 0.2265449464, -0.4291589558, -0.2648878098, 0.2957109511, 0.1549057066, 0.1138921455, -0.3117320836, 0.5959979296, 0.0686128438, 0.084959887, -0.2245445848, -0.0018042384, 0.2800177336, -0.1242723614, -0.1135767773, -0.2309005708, 0.2905326486, 0.1432120353, 0.521419704, 0.10394492, -0.3891156018, 0.1001306623, 0.2672161758, -0.1695473492, 0.0794451833, 0.1168769673, 0.0412759557, -0.082243681, 0.0247647911, 0.2209537476, 0.2899645865, 0.2044536918, -0.3409020603, 0.3199859858, -0.036653094, 0.1461652517, 0.2144393176, -0.1729851812, -0.0400370173, 0.4994862676, 0.372507304, 0.2427578419, -0.1843069643, 0.1724185199, -0.3970791101, 0.1525238305, -0.5550447106, -0.0213523563, -0.149684608, -0.0735904425, -0.199300766, -0.0192143545, -0.2774993479, -0.1124377623, 0.2484333962, 0.1559061557, -0.0537630655, 0.2769263685, 0.000265445, 0.4594180286, 0.0978773013, -0.1988538355, -0.0586242042, -0.0650394186, -0.1624029726, -0.0090979701, 0.0156265907, 0.1998773515, 0.1458057016, -0.4826641381, -0.3008002341, -0.2854554653, -0.3453064859, 0.2101685256, -0.0686363131, 0.361321032, 0.1664167643, -0.0186988227, -0.362053901, -0.2030519098, 0.1645018905, -0.0291347802, -0.4773872495, -0.0524755046, 0.055692099, -0.2053315192, -0.0412881039, -0.456317395, -0.0989391282, -0.2709365487, 0.0162285008, -0.1817269474, 0.0823787823, 0.2436573654, -0.1389109343, 0.0348106883, -0.2918560803, 0.1260590702, -0.503939867, -0.0472881906, 0.0939142704, 0.0430193841, -0.3436332941, -0.2887290716, -0.2320242375, -0.1749058515, -0.0350878127, -0.1375845075, -0.225842014, -0.1793828011, 0.2166628987, -0.226826787, 0.2435194254, 0.2265462577, -0.1808745265, 0.0880099088, -0.228124395, -0.4454984069, 0.1523830444, 0.3971564174, 0.2353446633, -0.1117964983, 0.3300127983, -0.0246536266, 0.6546518207, 0.4053246081, 0.2266176641, 0.1022703275, -0.216885522, 0.333262831, -0.2054527849, -0.2187944055, 0.3126904964, 0.1287732124, -0.3271474838, 0.3284794688, 0.0397981144, 0.1749128103, 0.0155103859, 0.1942848861, -0.5804231167, -0.1875116527, -0.2166327387, 0.0498926789, 0.1647055745, 0.0902877823, -0.0723394305, 0.1494955868, -0.1061442718, -0.0524448045, 0.1069305018, -0.0442454219, 0.2364698052, -0.8369114399, -0.2997891605, 0.0433075577, 0.2258632332, 0.3995067179, 0.3815813661, -0.0134447869, -0.0939931497, 0.1968372911, 0.0923823193, 0.7246232033, 0.0159394033, 0.0829530507, -0.2899781764, 0.1853272319, -0.4381764531, -0.2349048704, -0.1948948652, 0.1377698928, 0.2811781168, 0.1698480397, -0.2208505571, -0.0408706777, 0.191101566, 0.064631775, -0.0984829962, -0.0093901306, -0.2653484941, -0.1490734518, -0.3438106477, 0.2851319015, 0.4409758449, 0.2931801975, 0.478546828, -0.0608858019, 0.1911564767, 0.1568406373, -0.1183883473, 0.2444162816, 0.5145234466, -0.1394736916, 0.0202318747, 0.2098543048, -0.0472853817, 0.0350845121, 0.5318821073, -0.0985554308, -0.3209650815, -0.0355941616, -0.0423494317, 0.3858829737, 0.3409570456, 0.0271565001, 0.0072183972, -0.0423272289, 0.1705228388, -0.2394715399, -0.1145948172, 0.3838073313, 0.5305989981, -0.0723310187, -0.2432465106, 0.2269951105, -0.1459893435, 0.0304388739, 0.092957519, 0.5290966034, -0.2636906207, 0.4520532489, -0.1095874384, 1.0020315647, 0.3281887472, 0.1134258807, 0.4978850782, -0.0472013615, 0.3578613997, -0.0754105449, 0.2748135924, -0.4139471352, 0.311022222, -0.0377649628, -0.1198740453, -0.1178154424, -0.1698681563, -0.226570487, 0.2860625684, -0.1526469886, 0.2311643064, -0.0626616403, -0.0085223848, -0.2034146488, -0.0335298404, -0.4369696379, 0.0932307765, 0.0146779446, 0.2703946829, -0.1487716883, 0.1750007421, -0.3390993476, -0.3742335439, -0.61901021, -0.029975038, -0.4763566554, 0.0047967187, 0.4499207735, -0.0897759795, -0.0364162996, 0.4331651628, 0.3017058671, 0.0679338053, -0.036910668, 0.185862571, -0.0765432492, 0.3762844503, 0.4295199215, -0.0519072786, 0.1574103534, -0.0374897122, -0.3992099762, -0.1864606887, 0.0142572671, -0.2147545218, 0.0705934837, 0.1132240593, 0.0116748959, -0.1806565225, -0.3797229826, -0.1218567342, 0.288859427, -0.2152141035, 0.1218225136, -0.1044650227, -0.1833918244, 0.1680885851, 0.2302089185, -0.3828320205, -0.0293560773, 0.4591567218, -0.2447421551, 0.044633925, 0.4361590147, 0.0126490341, -0.1020922363, -0.1210552454, 0.1857444048, -0.08986561, -0.1195794418, 0.0209806487, -0.1442862451, -0.3595215976, -0.2137379944, 0.3383996189, 0.383916229, -0.1161917374, -0.0502926558, -0.6957361698, -0.0235520098, 0.2530728579, 0.0438779294, -0.0451184139, 0.362829417, 0.0801640078, -0.1754002571, -0.0703574941, -0.3165868223, -0.0696846917, -0.2544339895, 0.137887612, -0.000485484, -0.0549050346, 0.2277370095, -0.2508428395, 0.0973831713, -0.0025259391, -0.1287059784, -0.2157402039, -0.10593611, 0.1516479999, 0.095836468, -0.2368226498, -0.1105898246, -0.0767651871, 0.1523083597, -0.1904772222, 0.1285654455, 0.4913201332, 0.1518166363, 0.1998500526, -0.5185201168, -0.1265325993, 0.0309708323, 0.0234833527, -0.083189778, -0.3460214436, 0.114558138, 0.2857740819, -0.2541633248, -0.0568223037, 0.250439167, 0.1971276402, 0.1563529968, 0.1079918742, 0.1915988475, -0.0982198641, -0.0190184321, 0.1833925843, 0.2271949947, 0.3787546158, -0.4000139832, -0.0452516228, -0.0354741402, 0.1983867288, -0.3783813417, -0.0351038612, 0.2172055691, -0.1882687509, -0.0205087047, 0.2156236619, 0.1364913583, -0.2648783922, -0.0650718361, 0.2325162143, 0.5807173252, -0.0888279453, 0.0113575431, 0.1476524174, 0.0274071563, 0.2149520069, 0.31767869, -0.1152957529, 0.2021836936, 0.1865382791, -0.1520354301, 0.0439829603, -0.2052266598, 0.1520629674, 0.1444453746, 0.0466857739, 0.3828475177, 0.3497182727, -0.4396208525, 0.0111206016, 0.131722793, 0.4576257467, -0.1160482243, -0.2384143621, -0.2936192453, -0.0883244127, -0.2381865084, -0.0578634478, -0.0807040185, -0.1052348837, -0.1390682459, -0.0989656076, -0.0628810525, -0.2211410105, 0.1579808295, 0.1681922078, -0.2182732821, -0.3492714167, -0.2746626437, 0.2447259277, 0.1839179546, -0.1713455617, 0.3410625756, 0.0664092675, 0.009408664, 0.3050123751, 0.5498547554, 0.5111484528, 0.2144199759, -0.1568036079, 0.1962305158, -0.1739758402, -0.0277866218, 0.0112489928, 0.110214375, -0.2986120582, -0.4948002696, 0.0919376314, 0.2147874981, -0.1876725405, 0.013914817, 0.0613701008, 0.1129162088, -0.3813641369, -0.2247826308, -0.3311121166, 0.3151142299, -0.1817768514, 0.1097344309, -0.149582848, -0.0258892719, 0.141527459, -0.1616255343, 0.2025581598, 0.078684777, 0.0715653449, 0.1909435242, 0.0445282571, 0.6243496537, -0.201341331, -0.0681901425, -0.0578786284, -0.5805675983, 0.131207183, 0.0310450029, -0.115497008, 0.2015235275, 0.214664042, -0.1598932296, 0.2209582627, 0.4334926307, 0.0617083311, -0.1903526485, 0.0112978388, -0.2144546807, 0.0767380372, -0.2031748593, 0.1104444414, -0.0068178428, -0.2531496882, 0.2053182572, 0.148113668, -0.0577718318, 0.1885319501, 0.1527104229, -0.0800266638, -0.4327373505, -0.12943542, 0.3209772706, 0.2201793641, -0.2354949862, 0.1969350874, -0.0664646477, -0.1612055302, -0.5237140656, 0.1405876428, -0.3926341236, 0.2938769758, -0.046322912, -0.3050652742, 0.0475320593, 0.2376043648, 0.3541374207, -0.2929817736, -0.4807340205, 0.1937257946, -0.1500299722, 0.2315478921, -0.0873752609, 0.1933844984, -0.0801391155, 0.4570730031, -0.3387343585, -0.3580105305, 0.3238231838, -0.3490355909, -0.1189631, 0.0141021926, 0.3399591744, 0.2818255424, -0.1485273689, -0.5054002404, -0.1532174796, 0.2660462558, -0.0004355503, -0.2164421529, 0.1116042659, -0.0506297611, -0.058732558, 0.0299290009, 0.0477241613, 0.3681155741, -0.1083866432, 0.2889885604, -0.3507986665 ]
https://github.com/huggingface/datasets/issues/2585
sqaud_v2 dataset contains misalignment between the answer text and the context value at the answer index
If you are going to be altering the data cleaning from the source Squad dataset, here is one thing to consider. There are occasional double spaces separating words which it might be nice to get rid of. Either way, thank you.
## Describe the bug The built in huggingface squad_v2 dataset that you can access via datasets.load_dataset contains mis-alignment between the answers['text'] and the characters in the context at the location specified by answers['answer_start']. For example: id = '56d1f453e7d4791d009025bd' answers = {'text': ['Pure Land'], 'answer_start': [146]} However the actual text in context at location 146 is 'ure Land,' Which is an off-by-one error from the correct answer. ## Steps to reproduce the bug ```python import datasets def check_context_answer_alignment(example): for a_idx in range(len(example['answers']['text'])): # check raw dataset for answer consistency between context and answer answer_text = example['answers']['text'][a_idx] a_st_idx = example['answers']['answer_start'][a_idx] a_end_idx = a_st_idx + len(example['answers']['text'][a_idx]) answer_text_from_context = example['context'][a_st_idx:a_end_idx] if answer_text != answer_text_from_context: #print(example['id']) return False return True dataset = datasets.load_dataset('squad_v2', split='train', keep_in_memory=True) start_len = len(dataset) dataset = dataset.filter(check_context_answer_alignment, num_proc=1, keep_in_memory=True) end_len = len(dataset) print('{} instances contain mis-alignment between the answer text and answer index.'.format(start_len - end_len)) ``` ## Expected results This code should result in 0 rows being filtered out from the dataset. ## Actual results This filter command results in 258 rows being flagged as containing a discrepancy between the text contained within answers['text'] and the text in example['context'] at the answers['answer_start'] location. This code will reproduce the problem and produce the following count: "258 instances contain mis-alignment between the answer text and answer index." ## Environment info Steps to rebuilt the Conda environment: ``` # create a virtual environment to stuff all these packages into conda create -n round8 python=3.8 -y # activate the virtual environment conda activate round8 # install pytorch (best done through conda to handle cuda dependencies) conda install pytorch torchvision torchtext cudatoolkit=11.1 -c pytorch-lts -c nvidia pip install jsonpickle transformers datasets matplotlib ``` OS: Ubuntu 20.04 Python 3.8 Result of `conda env export`: ``` name: round8 channels: - pytorch-lts - nvidia - defaults dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=4.5=1_gnu - blas=1.0=mkl - brotlipy=0.7.0=py38h27cfd23_1003 - bzip2=1.0.8=h7b6447c_0 - ca-certificates=2021.5.25=h06a4308_1 - certifi=2021.5.30=py38h06a4308_0 - cffi=1.14.5=py38h261ae71_0 - chardet=4.0.0=py38h06a4308_1003 - cryptography=3.4.7=py38hd23ed53_0 - cudatoolkit=11.1.74=h6bb024c_0 - ffmpeg=4.2.2=h20bf706_0 - freetype=2.10.4=h5ab3b9f_0 - gmp=6.2.1=h2531618_2 - gnutls=3.6.15=he1e5248_0 - idna=2.10=pyhd3eb1b0_0 - intel-openmp=2021.2.0=h06a4308_610 - jpeg=9b=h024ee3a_2 - lame=3.100=h7b6447c_0 - lcms2=2.12=h3be6417_0 - ld_impl_linux-64=2.35.1=h7274673_9 - libffi=3.3=he6710b0_2 - libgcc-ng=9.3.0=h5101ec6_17 - libgomp=9.3.0=h5101ec6_17 - libidn2=2.3.1=h27cfd23_0 - libopus=1.3.1=h7b6447c_0 - libpng=1.6.37=hbc83047_0 - libstdcxx-ng=9.3.0=hd4cf53a_17 - libtasn1=4.16.0=h27cfd23_0 - libtiff=4.2.0=h85742a9_0 - libunistring=0.9.10=h27cfd23_0 - libuv=1.40.0=h7b6447c_0 - libvpx=1.7.0=h439df22_0 - libwebp-base=1.2.0=h27cfd23_0 - lz4-c=1.9.3=h2531618_0 - mkl=2021.2.0=h06a4308_296 - mkl-service=2.3.0=py38h27cfd23_1 - mkl_fft=1.3.0=py38h42c9631_2 - mkl_random=1.2.1=py38ha9443f7_2 - ncurses=6.2=he6710b0_1 - nettle=3.7.3=hbbd107a_1 - ninja=1.10.2=hff7bd54_1 - numpy=1.20.2=py38h2d18471_0 - numpy-base=1.20.2=py38hfae3a4d_0 - olefile=0.46=py_0 - openh264=2.1.0=hd408876_0 - openssl=1.1.1k=h27cfd23_0 - pillow=8.2.0=py38he98fc37_0 - pip=21.1.2=py38h06a4308_0 - pycparser=2.20=py_2 - pyopenssl=20.0.1=pyhd3eb1b0_1 - pysocks=1.7.1=py38h06a4308_0 - python=3.8.10=h12debd9_8 - pytorch=1.8.1=py3.8_cuda11.1_cudnn8.0.5_0 - readline=8.1=h27cfd23_0 - requests=2.25.1=pyhd3eb1b0_0 - setuptools=52.0.0=py38h06a4308_0 - six=1.16.0=pyhd3eb1b0_0 - sqlite=3.35.4=hdfb4753_0 - tk=8.6.10=hbc83047_0 - torchtext=0.9.1=py38 - torchvision=0.9.1=py38_cu111 - typing_extensions=3.7.4.3=pyha847dfd_0 - urllib3=1.26.4=pyhd3eb1b0_0 - wheel=0.36.2=pyhd3eb1b0_0 - x264=1!157.20191217=h7b6447c_0 - xz=5.2.5=h7b6447c_0 - zlib=1.2.11=h7b6447c_3 - zstd=1.4.9=haebb681_0 - pip: - click==8.0.1 - cycler==0.10.0 - datasets==1.8.0 - dill==0.3.4 - filelock==3.0.12 - fsspec==2021.6.0 - huggingface-hub==0.0.8 - joblib==1.0.1 - jsonpickle==2.0.0 - kiwisolver==1.3.1 - matplotlib==3.4.2 - multiprocess==0.70.12.2 - packaging==20.9 - pandas==1.2.4 - pyarrow==3.0.0 - pyparsing==2.4.7 - python-dateutil==2.8.1 - pytz==2021.1 - regex==2021.4.4 - sacremoses==0.0.45 - tokenizers==0.10.3 - tqdm==4.49.0 - transformers==4.6.1 - xxhash==2.0.2 prefix: /home/mmajurski/anaconda3/envs/round8 ```
41
sqaud_v2 dataset contains misalignment between the answer text and the context value at the answer index ## Describe the bug The built in huggingface squad_v2 dataset that you can access via datasets.load_dataset contains mis-alignment between the answers['text'] and the characters in the context at the location specified by answers['answer_start']. For example: id = '56d1f453e7d4791d009025bd' answers = {'text': ['Pure Land'], 'answer_start': [146]} However the actual text in context at location 146 is 'ure Land,' Which is an off-by-one error from the correct answer. ## Steps to reproduce the bug ```python import datasets def check_context_answer_alignment(example): for a_idx in range(len(example['answers']['text'])): # check raw dataset for answer consistency between context and answer answer_text = example['answers']['text'][a_idx] a_st_idx = example['answers']['answer_start'][a_idx] a_end_idx = a_st_idx + len(example['answers']['text'][a_idx]) answer_text_from_context = example['context'][a_st_idx:a_end_idx] if answer_text != answer_text_from_context: #print(example['id']) return False return True dataset = datasets.load_dataset('squad_v2', split='train', keep_in_memory=True) start_len = len(dataset) dataset = dataset.filter(check_context_answer_alignment, num_proc=1, keep_in_memory=True) end_len = len(dataset) print('{} instances contain mis-alignment between the answer text and answer index.'.format(start_len - end_len)) ``` ## Expected results This code should result in 0 rows being filtered out from the dataset. ## Actual results This filter command results in 258 rows being flagged as containing a discrepancy between the text contained within answers['text'] and the text in example['context'] at the answers['answer_start'] location. This code will reproduce the problem and produce the following count: "258 instances contain mis-alignment between the answer text and answer index." ## Environment info Steps to rebuilt the Conda environment: ``` # create a virtual environment to stuff all these packages into conda create -n round8 python=3.8 -y # activate the virtual environment conda activate round8 # install pytorch (best done through conda to handle cuda dependencies) conda install pytorch torchvision torchtext cudatoolkit=11.1 -c pytorch-lts -c nvidia pip install jsonpickle transformers datasets matplotlib ``` OS: Ubuntu 20.04 Python 3.8 Result of `conda env export`: ``` name: round8 channels: - pytorch-lts - nvidia - defaults dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=4.5=1_gnu - blas=1.0=mkl - brotlipy=0.7.0=py38h27cfd23_1003 - bzip2=1.0.8=h7b6447c_0 - ca-certificates=2021.5.25=h06a4308_1 - certifi=2021.5.30=py38h06a4308_0 - cffi=1.14.5=py38h261ae71_0 - chardet=4.0.0=py38h06a4308_1003 - cryptography=3.4.7=py38hd23ed53_0 - cudatoolkit=11.1.74=h6bb024c_0 - ffmpeg=4.2.2=h20bf706_0 - freetype=2.10.4=h5ab3b9f_0 - gmp=6.2.1=h2531618_2 - gnutls=3.6.15=he1e5248_0 - idna=2.10=pyhd3eb1b0_0 - intel-openmp=2021.2.0=h06a4308_610 - jpeg=9b=h024ee3a_2 - lame=3.100=h7b6447c_0 - lcms2=2.12=h3be6417_0 - ld_impl_linux-64=2.35.1=h7274673_9 - libffi=3.3=he6710b0_2 - libgcc-ng=9.3.0=h5101ec6_17 - libgomp=9.3.0=h5101ec6_17 - libidn2=2.3.1=h27cfd23_0 - libopus=1.3.1=h7b6447c_0 - libpng=1.6.37=hbc83047_0 - libstdcxx-ng=9.3.0=hd4cf53a_17 - libtasn1=4.16.0=h27cfd23_0 - libtiff=4.2.0=h85742a9_0 - libunistring=0.9.10=h27cfd23_0 - libuv=1.40.0=h7b6447c_0 - libvpx=1.7.0=h439df22_0 - libwebp-base=1.2.0=h27cfd23_0 - lz4-c=1.9.3=h2531618_0 - mkl=2021.2.0=h06a4308_296 - mkl-service=2.3.0=py38h27cfd23_1 - mkl_fft=1.3.0=py38h42c9631_2 - mkl_random=1.2.1=py38ha9443f7_2 - ncurses=6.2=he6710b0_1 - nettle=3.7.3=hbbd107a_1 - ninja=1.10.2=hff7bd54_1 - numpy=1.20.2=py38h2d18471_0 - numpy-base=1.20.2=py38hfae3a4d_0 - olefile=0.46=py_0 - openh264=2.1.0=hd408876_0 - openssl=1.1.1k=h27cfd23_0 - pillow=8.2.0=py38he98fc37_0 - pip=21.1.2=py38h06a4308_0 - pycparser=2.20=py_2 - pyopenssl=20.0.1=pyhd3eb1b0_1 - pysocks=1.7.1=py38h06a4308_0 - python=3.8.10=h12debd9_8 - pytorch=1.8.1=py3.8_cuda11.1_cudnn8.0.5_0 - readline=8.1=h27cfd23_0 - requests=2.25.1=pyhd3eb1b0_0 - setuptools=52.0.0=py38h06a4308_0 - six=1.16.0=pyhd3eb1b0_0 - sqlite=3.35.4=hdfb4753_0 - tk=8.6.10=hbc83047_0 - torchtext=0.9.1=py38 - torchvision=0.9.1=py38_cu111 - typing_extensions=3.7.4.3=pyha847dfd_0 - urllib3=1.26.4=pyhd3eb1b0_0 - wheel=0.36.2=pyhd3eb1b0_0 - x264=1!157.20191217=h7b6447c_0 - xz=5.2.5=h7b6447c_0 - zlib=1.2.11=h7b6447c_3 - zstd=1.4.9=haebb681_0 - pip: - click==8.0.1 - cycler==0.10.0 - datasets==1.8.0 - dill==0.3.4 - filelock==3.0.12 - fsspec==2021.6.0 - huggingface-hub==0.0.8 - joblib==1.0.1 - jsonpickle==2.0.0 - kiwisolver==1.3.1 - matplotlib==3.4.2 - multiprocess==0.70.12.2 - packaging==20.9 - pandas==1.2.4 - pyarrow==3.0.0 - pyparsing==2.4.7 - python-dateutil==2.8.1 - pytz==2021.1 - regex==2021.4.4 - sacremoses==0.0.45 - tokenizers==0.10.3 - tqdm==4.49.0 - transformers==4.6.1 - xxhash==2.0.2 prefix: /home/mmajurski/anaconda3/envs/round8 ``` If you are going to be altering the data cleaning from the source Squad dataset, here is one thing to consider. There are occasional double spaces separating words which it might be nice to get rid of. Either way, thank you.
[ -0.2330303192, -0.3295378387, -0.0441100672, 0.3749360144, 0.0878229886, -0.0763422325, 0.1057570949, 0.2279032767, -0.2927473187, 0.1577833146, -0.0841631815, 0.0450685136, 0.3250356019, 0.0685454607, -0.0926084593, 0.1523637623, 0.1756329089, 0.0104245786, 0.0099454969, -0.172503978, -0.2248983383, 0.2991382778, -0.2980324626, 0.0300304368, -0.3425647914, -0.0102490904, 0.0364246517, 0.1131832302, -0.1175084263, -0.4159388542, 0.2125023156, -0.0936788321, 0.0077113225, 0.2638636231, -0.000116531, -0.1706250906, 0.0728382543, -0.0973288417, -0.2682836354, 0.0041922689, -0.0435587615, -0.1216912344, -0.1298897564, -0.1058421135, -0.2390318215, 0.2717562914, -0.0673229247, -0.2866247892, 0.6096699238, 0.2443221956, 0.1451373994, 0.2883638144, 0.0109262569, -0.0647381619, 0.1786869764, -0.1235732585, 0.0756945461, 0.1191269085, 0.1456331611, 0.1079361886, -0.0346997939, 0.4713859558, -0.1343522668, -0.0318910591, -0.0061443951, 0.2904497981, 0.2066176683, -0.1278317422, 0.0998570174, 0.1311749071, 0.2598810792, -0.2484470159, -0.4248087704, -0.4569476247, -0.035827741, -0.1224058121, 0.3317505121, 0.0394535623, -0.0311523117, 0.3647891283, -0.1365325898, 0.0710277781, -0.0857499987, 0.1271403581, -0.0876927525, 0.2383426428, -0.1219490021, 0.1492215544, -0.2677048147, -0.1386349052, -0.0631167516, -0.1375984102, -0.1052336693, 0.4171855748, -0.5139368176, -0.1013480574, -0.1679380387, 0.0907931477, 0.2361778915, 0.0694944263, -0.0699166507, 0.0015248167, 0.2659209073, 0.0613521338, 0.3417299688, 0.2773299515, -0.1180535257, 0.2556288838, 0.1020578071, 0.1474465132, 0.0414644219, 0.1034671813, 0.1996171474, -0.184156999, -0.1082463712, -0.1547537148, 0.1684665531, -0.1887484342, -0.5222854018, 0.4338440001, -0.631930232, 0.2756718993, -0.0214352012, 0.3482970595, -0.22168459, 0.2669173181, 0.3325076997, 0.2442841232, -0.0650029927, -0.185168162, -0.1330847293, -0.0969801545, -0.0144070443, -0.0344588198, 0.0072186547, -0.129373312, 0.2271303982, 0.296105653, 0.2128193378, -0.2205923051, -0.3132044077, -0.164873004, 0.1410585642, 0.0306856055, 0.0271049608, 0.1876550019, 0.1873007566, -0.2884294987, 0.0731954426, 0.093006134, -0.2383057624, 0.0768733397, -0.0992044061, 0.2245202661, -0.1660035104, -0.0564259626, 0.0465996154, 0.2456641495, 0.2966583967, -0.2863130569, 0.2683807611, -0.2038263232, -0.3300070465, -0.0881245881, 0.3650221527, 0.2920378745, -0.1985459328, -0.0659260303, -0.0561405607, 0.1563176364, 0.0265873671, 0.2375260293, 0.2730122209, 0.2942620814, -0.4212448299, 0.2674054801, 0.1037337333, -0.854011476, -0.5590249896, -0.1742200255, -0.1163506955, 0.2251103073, -0.1036158502, 0.0728596672, 0.4342784882, 0.1543434411, 0.2735284567, 0.5391796231, 0.0679247677, 0.1189369783, -0.3740177453, 0.0432917625, -0.09266828, 0.1235256344, -0.2477577925, -0.1743767112, 0.0530980416, -0.183474049, 0.1845172197, 0.1049053222, 0.0700078532, 0.2424083501, 0.3292448819, 0.1207569018, 0.1795453429, -0.5024954081, -0.4840290844, 0.0933748633, -0.0992039442, 0.0597214177, -0.0624959841, -0.136067152, -0.3975330889, -0.0361760631, -0.3520286083, -0.3007715642, 0.0909300968, 0.0083290311, 0.1742567867, 0.1125234738, -0.1105443612, 0.6274505258, -0.2027089894, 0.2574427128, -0.0648542345, 0.1838029623, -0.0369920768, 0.0197877008, 0.0257438719, 0.4265459776, -0.0366344713, 0.0865882039, -0.2453000993, 0.5439849496, 0.2354307026, 0.197518155, -0.2265352905, -0.0887752026, 0.2265449464, -0.4291589558, -0.2648878098, 0.2957109511, 0.1549057066, 0.1138921455, -0.3117320836, 0.5959979296, 0.0686128438, 0.084959887, -0.2245445848, -0.0018042384, 0.2800177336, -0.1242723614, -0.1135767773, -0.2309005708, 0.2905326486, 0.1432120353, 0.521419704, 0.10394492, -0.3891156018, 0.1001306623, 0.2672161758, -0.1695473492, 0.0794451833, 0.1168769673, 0.0412759557, -0.082243681, 0.0247647911, 0.2209537476, 0.2899645865, 0.2044536918, -0.3409020603, 0.3199859858, -0.036653094, 0.1461652517, 0.2144393176, -0.1729851812, -0.0400370173, 0.4994862676, 0.372507304, 0.2427578419, -0.1843069643, 0.1724185199, -0.3970791101, 0.1525238305, -0.5550447106, -0.0213523563, -0.149684608, -0.0735904425, -0.199300766, -0.0192143545, -0.2774993479, -0.1124377623, 0.2484333962, 0.1559061557, -0.0537630655, 0.2769263685, 0.000265445, 0.4594180286, 0.0978773013, -0.1988538355, -0.0586242042, -0.0650394186, -0.1624029726, -0.0090979701, 0.0156265907, 0.1998773515, 0.1458057016, -0.4826641381, -0.3008002341, -0.2854554653, -0.3453064859, 0.2101685256, -0.0686363131, 0.361321032, 0.1664167643, -0.0186988227, -0.362053901, -0.2030519098, 0.1645018905, -0.0291347802, -0.4773872495, -0.0524755046, 0.055692099, -0.2053315192, -0.0412881039, -0.456317395, -0.0989391282, -0.2709365487, 0.0162285008, -0.1817269474, 0.0823787823, 0.2436573654, -0.1389109343, 0.0348106883, -0.2918560803, 0.1260590702, -0.503939867, -0.0472881906, 0.0939142704, 0.0430193841, -0.3436332941, -0.2887290716, -0.2320242375, -0.1749058515, -0.0350878127, -0.1375845075, -0.225842014, -0.1793828011, 0.2166628987, -0.226826787, 0.2435194254, 0.2265462577, -0.1808745265, 0.0880099088, -0.228124395, -0.4454984069, 0.1523830444, 0.3971564174, 0.2353446633, -0.1117964983, 0.3300127983, -0.0246536266, 0.6546518207, 0.4053246081, 0.2266176641, 0.1022703275, -0.216885522, 0.333262831, -0.2054527849, -0.2187944055, 0.3126904964, 0.1287732124, -0.3271474838, 0.3284794688, 0.0397981144, 0.1749128103, 0.0155103859, 0.1942848861, -0.5804231167, -0.1875116527, -0.2166327387, 0.0498926789, 0.1647055745, 0.0902877823, -0.0723394305, 0.1494955868, -0.1061442718, -0.0524448045, 0.1069305018, -0.0442454219, 0.2364698052, -0.8369114399, -0.2997891605, 0.0433075577, 0.2258632332, 0.3995067179, 0.3815813661, -0.0134447869, -0.0939931497, 0.1968372911, 0.0923823193, 0.7246232033, 0.0159394033, 0.0829530507, -0.2899781764, 0.1853272319, -0.4381764531, -0.2349048704, -0.1948948652, 0.1377698928, 0.2811781168, 0.1698480397, -0.2208505571, -0.0408706777, 0.191101566, 0.064631775, -0.0984829962, -0.0093901306, -0.2653484941, -0.1490734518, -0.3438106477, 0.2851319015, 0.4409758449, 0.2931801975, 0.478546828, -0.0608858019, 0.1911564767, 0.1568406373, -0.1183883473, 0.2444162816, 0.5145234466, -0.1394736916, 0.0202318747, 0.2098543048, -0.0472853817, 0.0350845121, 0.5318821073, -0.0985554308, -0.3209650815, -0.0355941616, -0.0423494317, 0.3858829737, 0.3409570456, 0.0271565001, 0.0072183972, -0.0423272289, 0.1705228388, -0.2394715399, -0.1145948172, 0.3838073313, 0.5305989981, -0.0723310187, -0.2432465106, 0.2269951105, -0.1459893435, 0.0304388739, 0.092957519, 0.5290966034, -0.2636906207, 0.4520532489, -0.1095874384, 1.0020315647, 0.3281887472, 0.1134258807, 0.4978850782, -0.0472013615, 0.3578613997, -0.0754105449, 0.2748135924, -0.4139471352, 0.311022222, -0.0377649628, -0.1198740453, -0.1178154424, -0.1698681563, -0.226570487, 0.2860625684, -0.1526469886, 0.2311643064, -0.0626616403, -0.0085223848, -0.2034146488, -0.0335298404, -0.4369696379, 0.0932307765, 0.0146779446, 0.2703946829, -0.1487716883, 0.1750007421, -0.3390993476, -0.3742335439, -0.61901021, -0.029975038, -0.4763566554, 0.0047967187, 0.4499207735, -0.0897759795, -0.0364162996, 0.4331651628, 0.3017058671, 0.0679338053, -0.036910668, 0.185862571, -0.0765432492, 0.3762844503, 0.4295199215, -0.0519072786, 0.1574103534, -0.0374897122, -0.3992099762, -0.1864606887, 0.0142572671, -0.2147545218, 0.0705934837, 0.1132240593, 0.0116748959, -0.1806565225, -0.3797229826, -0.1218567342, 0.288859427, -0.2152141035, 0.1218225136, -0.1044650227, -0.1833918244, 0.1680885851, 0.2302089185, -0.3828320205, -0.0293560773, 0.4591567218, -0.2447421551, 0.044633925, 0.4361590147, 0.0126490341, -0.1020922363, -0.1210552454, 0.1857444048, -0.08986561, -0.1195794418, 0.0209806487, -0.1442862451, -0.3595215976, -0.2137379944, 0.3383996189, 0.383916229, -0.1161917374, -0.0502926558, -0.6957361698, -0.0235520098, 0.2530728579, 0.0438779294, -0.0451184139, 0.362829417, 0.0801640078, -0.1754002571, -0.0703574941, -0.3165868223, -0.0696846917, -0.2544339895, 0.137887612, -0.000485484, -0.0549050346, 0.2277370095, -0.2508428395, 0.0973831713, -0.0025259391, -0.1287059784, -0.2157402039, -0.10593611, 0.1516479999, 0.095836468, -0.2368226498, -0.1105898246, -0.0767651871, 0.1523083597, -0.1904772222, 0.1285654455, 0.4913201332, 0.1518166363, 0.1998500526, -0.5185201168, -0.1265325993, 0.0309708323, 0.0234833527, -0.083189778, -0.3460214436, 0.114558138, 0.2857740819, -0.2541633248, -0.0568223037, 0.250439167, 0.1971276402, 0.1563529968, 0.1079918742, 0.1915988475, -0.0982198641, -0.0190184321, 0.1833925843, 0.2271949947, 0.3787546158, -0.4000139832, -0.0452516228, -0.0354741402, 0.1983867288, -0.3783813417, -0.0351038612, 0.2172055691, -0.1882687509, -0.0205087047, 0.2156236619, 0.1364913583, -0.2648783922, -0.0650718361, 0.2325162143, 0.5807173252, -0.0888279453, 0.0113575431, 0.1476524174, 0.0274071563, 0.2149520069, 0.31767869, -0.1152957529, 0.2021836936, 0.1865382791, -0.1520354301, 0.0439829603, -0.2052266598, 0.1520629674, 0.1444453746, 0.0466857739, 0.3828475177, 0.3497182727, -0.4396208525, 0.0111206016, 0.131722793, 0.4576257467, -0.1160482243, -0.2384143621, -0.2936192453, -0.0883244127, -0.2381865084, -0.0578634478, -0.0807040185, -0.1052348837, -0.1390682459, -0.0989656076, -0.0628810525, -0.2211410105, 0.1579808295, 0.1681922078, -0.2182732821, -0.3492714167, -0.2746626437, 0.2447259277, 0.1839179546, -0.1713455617, 0.3410625756, 0.0664092675, 0.009408664, 0.3050123751, 0.5498547554, 0.5111484528, 0.2144199759, -0.1568036079, 0.1962305158, -0.1739758402, -0.0277866218, 0.0112489928, 0.110214375, -0.2986120582, -0.4948002696, 0.0919376314, 0.2147874981, -0.1876725405, 0.013914817, 0.0613701008, 0.1129162088, -0.3813641369, -0.2247826308, -0.3311121166, 0.3151142299, -0.1817768514, 0.1097344309, -0.149582848, -0.0258892719, 0.141527459, -0.1616255343, 0.2025581598, 0.078684777, 0.0715653449, 0.1909435242, 0.0445282571, 0.6243496537, -0.201341331, -0.0681901425, -0.0578786284, -0.5805675983, 0.131207183, 0.0310450029, -0.115497008, 0.2015235275, 0.214664042, -0.1598932296, 0.2209582627, 0.4334926307, 0.0617083311, -0.1903526485, 0.0112978388, -0.2144546807, 0.0767380372, -0.2031748593, 0.1104444414, -0.0068178428, -0.2531496882, 0.2053182572, 0.148113668, -0.0577718318, 0.1885319501, 0.1527104229, -0.0800266638, -0.4327373505, -0.12943542, 0.3209772706, 0.2201793641, -0.2354949862, 0.1969350874, -0.0664646477, -0.1612055302, -0.5237140656, 0.1405876428, -0.3926341236, 0.2938769758, -0.046322912, -0.3050652742, 0.0475320593, 0.2376043648, 0.3541374207, -0.2929817736, -0.4807340205, 0.1937257946, -0.1500299722, 0.2315478921, -0.0873752609, 0.1933844984, -0.0801391155, 0.4570730031, -0.3387343585, -0.3580105305, 0.3238231838, -0.3490355909, -0.1189631, 0.0141021926, 0.3399591744, 0.2818255424, -0.1485273689, -0.5054002404, -0.1532174796, 0.2660462558, -0.0004355503, -0.2164421529, 0.1116042659, -0.0506297611, -0.058732558, 0.0299290009, 0.0477241613, 0.3681155741, -0.1083866432, 0.2889885604, -0.3507986665 ]
https://github.com/huggingface/datasets/issues/2583
Error iteration over IterableDataset using Torch DataLoader
Hi ! This is because you first need to format the dataset for pytorch: ```python >>> import torch >>> from datasets import load_dataset >>> dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) >>> torch_iterable_dataset = dataset.with_format("torch") >>> assert isinstance(torch_iterable_dataset, torch.utils.data.IterableDataset) >>> dataloader = torch.utils.data.DataLoader(torch_iterable_dataset, batch_size=4) >>> next(iter(dataloader)) {'id': tensor([0, 1, 2, 3]), 'text': ['Mtendere Village was inspired...]} ``` This is because the pytorch dataloader expects a subclass of `torch.utils.data.IterableDataset`. Since you can't pass an arbitrary iterable to a pytorch dataloader, you first need to build an object that inherits from `torch.utils.data.IterableDataset` using `with_format("torch")` for example.
## Describe the bug I have an IterableDataset (created using streaming=True) and I am trying to create batches using Torch DataLoader class by passing this IterableDataset to it. This throws error which is pasted below. I can do the same by using Torch IterableDataset. One thing I noticed is that in the former case when I look at the dataloader.sampler class I get torch.utils.data.sampler.SequentialSampler while the latter one gives torch.utils.data.dataloader._InfiniteConstantSampler. I am not sure if this is how it is meant to be used, but that's what seemed reasonable to me. ## Steps to reproduce the bug 1. Does not work. ```python >>> from datasets import load_dataset >>> dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) >>> dataloader = torch.utils.data.DataLoader(dataset, batch_size=4) >>> dataloader.sampler <torch.utils.data.sampler.SequentialSampler object at 0x7f245a510208> >>> for batch in dataloader: ... print(batch) ``` 2. Works. ```python import torch from torch.utils.data import Dataset, IterableDataset, DataLoader class CustomIterableDataset(IterableDataset): 'Characterizes a dataset for PyTorch' def __init__(self, data): 'Initialization' self.data = data def __iter__(self): return iter(self.data) data = list(range(12)) dataset = CustomIterableDataset(data) dataloader = DataLoader(dataset, batch_size=4) print("dataloader: ", dataloader.sampler) for batch in dataloader: print(batch) ``` ## Expected results To get batches of data with the batch size as 4. Output from the latter one (2) though Datasource is different here so actual data is different. dataloader: <torch.utils.data.dataloader._InfiniteConstantSampler object at 0x7f1cc29e2c50> tensor([0, 1, 2, 3]) tensor([4, 5, 6, 7]) tensor([ 8, 9, 10, 11]) ## Actual results <torch.utils.data.sampler.SequentialSampler object at 0x7f245a510208> ... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 435, in __next__ data = self._next_data() File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 474, in _next_data index = self._next_index() # may raise StopIteration File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 427, in _next_index return next(self._sampler_iter) # may raise StopIteration File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 227, in __iter__ for idx in self.sampler: File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 67, in __iter__ return iter(range(len(self.data_source))) TypeError: object of type 'IterableDataset' has no len() ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: '1.8.1.dev0' - Platform: Linux - Python version: Python 3.6.8 - PyArrow version: '3.0.0'
93
Error iteration over IterableDataset using Torch DataLoader ## Describe the bug I have an IterableDataset (created using streaming=True) and I am trying to create batches using Torch DataLoader class by passing this IterableDataset to it. This throws error which is pasted below. I can do the same by using Torch IterableDataset. One thing I noticed is that in the former case when I look at the dataloader.sampler class I get torch.utils.data.sampler.SequentialSampler while the latter one gives torch.utils.data.dataloader._InfiniteConstantSampler. I am not sure if this is how it is meant to be used, but that's what seemed reasonable to me. ## Steps to reproduce the bug 1. Does not work. ```python >>> from datasets import load_dataset >>> dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) >>> dataloader = torch.utils.data.DataLoader(dataset, batch_size=4) >>> dataloader.sampler <torch.utils.data.sampler.SequentialSampler object at 0x7f245a510208> >>> for batch in dataloader: ... print(batch) ``` 2. Works. ```python import torch from torch.utils.data import Dataset, IterableDataset, DataLoader class CustomIterableDataset(IterableDataset): 'Characterizes a dataset for PyTorch' def __init__(self, data): 'Initialization' self.data = data def __iter__(self): return iter(self.data) data = list(range(12)) dataset = CustomIterableDataset(data) dataloader = DataLoader(dataset, batch_size=4) print("dataloader: ", dataloader.sampler) for batch in dataloader: print(batch) ``` ## Expected results To get batches of data with the batch size as 4. Output from the latter one (2) though Datasource is different here so actual data is different. dataloader: <torch.utils.data.dataloader._InfiniteConstantSampler object at 0x7f1cc29e2c50> tensor([0, 1, 2, 3]) tensor([4, 5, 6, 7]) tensor([ 8, 9, 10, 11]) ## Actual results <torch.utils.data.sampler.SequentialSampler object at 0x7f245a510208> ... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 435, in __next__ data = self._next_data() File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 474, in _next_data index = self._next_index() # may raise StopIteration File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 427, in _next_index return next(self._sampler_iter) # may raise StopIteration File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 227, in __iter__ for idx in self.sampler: File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 67, in __iter__ return iter(range(len(self.data_source))) TypeError: object of type 'IterableDataset' has no len() ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: '1.8.1.dev0' - Platform: Linux - Python version: Python 3.6.8 - PyArrow version: '3.0.0' Hi ! This is because you first need to format the dataset for pytorch: ```python >>> import torch >>> from datasets import load_dataset >>> dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) >>> torch_iterable_dataset = dataset.with_format("torch") >>> assert isinstance(torch_iterable_dataset, torch.utils.data.IterableDataset) >>> dataloader = torch.utils.data.DataLoader(torch_iterable_dataset, batch_size=4) >>> next(iter(dataloader)) {'id': tensor([0, 1, 2, 3]), 'text': ['Mtendere Village was inspired...]} ``` This is because the pytorch dataloader expects a subclass of `torch.utils.data.IterableDataset`. Since you can't pass an arbitrary iterable to a pytorch dataloader, you first need to build an object that inherits from `torch.utils.data.IterableDataset` using `with_format("torch")` for example.
[ -0.1759884208, -0.3325827718, -0.0121411253, 0.2365849912, 0.1552749872, 0.0204123836, 0.4311745465, 0.001804909, -0.1689607054, 0.2460095882, 0.0963452831, 0.2442089915, -0.335481137, -0.4065967202, -0.2495773584, -0.2147274017, 0.0861799493, -0.2172201574, -0.2279188931, -0.0843941346, -0.1583955437, -0.0314956419, -0.2381763905, -0.0334470533, -0.0213510208, -0.0244186129, -0.1205983758, 0.0094266534, 0.0826325491, -0.5168218017, 0.4132376313, 0.0784672871, 0.5836474299, 0.5928801894, -0.0001213014, 0.0804410204, 0.5695521235, -0.1488479823, -0.3406752348, 0.0339829102, 0.1853102446, 0.1231121793, 0.1892295778, -0.2503041029, 0.0085637514, -0.1373458058, 0.0413328595, -0.4429117441, 0.0277452432, 0.0911385342, 0.1273509264, 0.1404464692, -0.2152100652, -0.1551948041, 0.0873389617, 0.0838436708, -0.066005677, 0.3676381111, 0.6034709811, 0.1462021768, -0.2805482149, 0.1023530066, -0.0515719801, 0.1446327865, 0.2025341094, -0.2065146267, -0.1518070251, -0.1411312222, 0.0165849794, 0.1377262026, 0.4296509027, -0.3647227585, -0.2566857934, -0.2134337127, -0.0908371434, -0.0081763314, -0.0515621118, 0.2455941588, -0.2517602146, -0.1019133031, -0.1053520888, 0.2945756912, -0.2935189009, 0.1506050974, 0.1208928153, 0.0607558414, -0.0605422631, 0.4181458354, -0.0258095115, -0.0496776141, 0.4104272127, -0.1466064453, 0.1139802039, 0.1791275889, -0.4098129272, 0.1215736344, -0.0745931566, 0.0343862958, 0.1090585813, 0.2285431623, 0.1912997514, -0.0721807629, 0.2148058563, -0.0758834556, 0.2809826732, 0.2104016095, 0.16070427, 0.1309029311, -0.0484361872, 0.1294630915, 0.1207148656, -0.0431572609, -0.0131196203, -0.278254658, 0.3315112889, 0.2297442853, 0.2427382618, 0.0218724106, -0.2630297542, -0.0671556368, -0.3772152066, -0.0464771651, 0.0921516716, 0.0312093031, -0.0663539469, -0.0182393137, 0.0260312092, 0.2194150984, 0.001959888, -0.1363486052, -0.0449675322, -0.0634313822, -0.2369845062, 0.1653113812, 0.013812718, -0.5259136558, 0.2178764641, 0.0743199214, 0.1240422651, 0.0981905982, 0.1407573819, -0.1538309008, 0.0876520574, -0.1886790395, 0.1085834205, 0.2937152088, 0.0909663215, 0.3701991737, 0.1703476906, 0.3358138204, -0.2139509022, -0.4311694503, -0.0041143904, 0.1315056235, -0.1349410564, 0.1484009922, -0.1661923379, 0.0139724119, 0.3592299521, -0.0862993151, 0.2563604712, -0.3309457302, 0.0854894742, -0.307409972, -0.1566837132, 0.3201508522, -0.5023245215, -0.0094215833, 0.0944098607, -0.1242311224, 0.4520843625, 0.1644668579, -0.3807598352, 0.3596850932, -0.4563366473, -0.0022495186, 0.0037130893, -0.4484595656, -0.4353863001, 0.2547225952, 0.0600687861, 0.2916573882, 0.1757149845, 0.0443594977, 0.428160727, -0.3241615295, 0.1788839698, 0.0181608181, -0.2364028245, -0.1766934842, -0.3059003055, 0.0654297397, 0.3222926259, 0.1215381697, 0.078764677, 0.2113113999, -0.001834539, 0.0364534333, 0.2559022903, -0.1622605622, 0.1733243465, 0.2712680697, -0.022152463, 0.1062512323, 0.1877069622, -0.0639052168, -0.3826922178, 0.1902540922, -0.0341439582, 0.0252881199, 0.0248265881, -0.0357974507, 0.074642621, 0.1515569836, -0.4089158773, -0.1956710964, 0.0207004491, 0.3267152011, 0.2401631922, -0.3410868049, 0.0510257259, 0.1779325604, -0.3679125011, -0.0905414969, -0.6530373693, -0.0157553181, 0.1605355144, -0.2572540641, 0.006690538, 0.0078655006, 0.2089659572, -0.2063676715, -0.0949185044, 0.2147934437, -0.1238059998, -0.1281568408, -0.1784880161, -0.0105118286, 0.0613335967, -0.203659296, -0.0033431628, 0.3811857998, 0.220655486, -0.1643149853, 0.1571411192, 0.4330123663, -0.1378979236, 0.4838740826, -0.0734655112, -0.0011856492, 0.0547132604, 0.2082166821, -0.4597418606, 0.1447858959, 0.2501414418, -0.0622140281, 0.4288072288, -0.1978160441, -0.3633216321, 0.0964461416, -0.0651243702, -0.0165038537, -0.1332327276, 0.1762123406, -0.2831245959, 0.0837612152, 0.1375371367, -0.0159248579, 0.6980894804, 0.0048868302, 0.0211555101, -0.1067590341, 0.1212169379, -0.0663993582, 0.0172512252, 0.2396640331, 0.0811795592, 0.1726076156, 0.0910500735, -0.1229045689, -0.0504767485, -0.4383985698, -0.1312050968, 0.1998898685, -0.0802578777, 0.3007241189, 0.095455803, -0.1390553415, -0.380645752, -0.5877683163, 0.0185131319, -0.271199435, -0.2329484224, 0.5140380859, 0.0763322115, 0.1100410298, 0.0438049398, 0.1240863949, 0.3323760033, -0.1041977853, -0.015929345, -0.0392118394, -0.3659596741, -0.0314606838, -0.0236697719, -0.6017321944, 0.3704042137, 0.1343914717, 0.0404744633, -0.4792011082, 0.1423616856, 0.0473593064, -0.0661918893, 0.0706466287, 0.4086325467, -0.0504627787, 0.2938430011, -0.2023874074, 0.3072182536, -0.0948525295, 0.0008258662, 0.0853473172, -0.093166925, -0.0026093274, 0.1463578194, -0.0368866138, -0.2398695499, -0.2074588537, -0.0861338452, 0.0731801167, -0.0081960903, 0.1651798487, 0.0242370442, 0.0953030661, 0.4552522302, -0.1504249722, -0.0639600456, -0.4166634679, 0.1938696355, -0.3335470259, -0.2859091163, -0.2267332375, -0.2294799536, 0.2497810125, 0.3717747033, -0.3056229055, -0.1961061507, -0.0602118745, 0.2252772897, -0.0817708895, -0.0425035246, 0.2050270587, -0.1281115711, 0.0889526084, -0.1457211822, -0.103376545, 0.0690964386, -0.2425731272, 0.3543993831, 0.2895653844, 0.5595617294, 0.1378503442, 0.9526196718, 0.462544769, -0.1511877328, 0.2041902095, 0.0080108438, -0.1384088099, -0.085774973, -0.3842643797, 0.2152827233, -0.2100380808, -0.3123047352, 0.1660801619, -0.2149699181, -0.1047035977, 0.0827316791, 0.0972539783, -0.0089915683, -0.1037501991, 0.1755972952, -0.5570784807, 0.1904159039, -0.1468602568, 0.2426726967, -0.2869228423, -0.1258829832, -0.0369660333, 0.0424441695, 0.2459214628, 0.0515737571, -0.1893106699, 0.0190867167, -0.6127882004, 0.3754481375, 0.1767862737, 0.640663445, 0.1874257326, -0.1155640334, 0.1879218072, 0.0049156724, 0.7799474001, -0.1074882448, -0.239838779, -0.0036270656, -0.1669648588, -0.7163994312, -0.4133672416, -0.1469399333, 0.7751924992, 0.1555387676, -0.0751456022, -0.1394629478, -0.0331801325, 0.1941222847, 0.073392801, -0.2068859041, -0.1690137237, -0.1187549755, -0.3793283999, -0.0894917771, -0.2840987444, 0.0517001972, 0.1906179041, -0.0854411572, 0.0612730235, -0.2614082992, -0.0143885929, 0.0583550744, -0.0894983336, 0.1643389761, -0.2137307078, 0.2124436498, -0.0122108832, 0.2840586305, 0.4879255295, 0.2832309008, -0.0035641531, -0.5100498199, 0.2887409329, -0.1830689609, 0.0378486402, 0.2061835825, -0.1886101365, 0.0803613216, -0.1013223156, -0.0213961527, -0.2109726667, -0.0934892669, 0.3020629883, 0.0530126169, -0.6308018565, -0.5626425743, 0.1728116721, 0.2680609226, 0.0526802912, 0.6681531668, -0.398509711, -0.271595031, 0.2776997387, 0.0838838667, 0.7267509699, 0.1485252827, -0.0557479262, 0.2326148003, 0.2090160698, 0.0186762102, 0.3115617931, 0.2369673699, -0.3453317583, -0.227244705, -0.0269916281, -0.1897985935, 0.122177504, 0.182643801, -0.0632818863, 0.3318238556, -0.1436598301, 0.0459797122, 0.1270073056, -0.1268926263, -0.2129749209, -0.133878693, 0.0956514105, 0.0851188079, 0.0057660243, 0.2564904392, -0.172852844, -0.0926576629, 0.0668793395, -0.1555242538, -0.261838913, 0.0443901047, -0.223000437, 0.098584868, 0.2456182688, -0.5232535601, 0.0501230285, 0.2158947885, 0.3522299826, -0.3627727926, -0.0026624063, -0.0294200145, 0.1182427555, -0.0233423561, -0.2029043138, -0.2077227086, 0.4870969653, 0.0405512601, 0.0995511338, 0.3205988407, 0.0713342875, -0.4681004286, -0.2282392681, 0.296656847, 0.47719872, -0.5392912626, -0.2319697738, -0.2508276105, -0.2199194878, -0.2363428324, 0.0104449531, 0.0206891149, -0.2876824737, 0.1941117197, -0.1743821949, -0.1259075254, 0.091926381, 0.524477005, 0.3316212296, -0.0492080487, 0.4610221982, 0.1272779852, -0.0780189708, 0.0172997341, -0.0337954946, 0.2742297649, -0.6039992571, 0.3320972323, -0.3019655347, 0.5657224655, -0.0477750786, 0.3233406544, 0.0145816831, 0.0645346865, -0.3575259149, -0.2525318265, -0.2616006136, -0.1055722609, 0.0183100365, 0.2605784237, 0.0524430908, 0.1213146523, 0.0727654696, -0.0829663724, -0.195993349, -0.1801848263, -0.0205959231, 0.1617281288, 0.1508176774, 0.0620181337, -0.1045727581, 0.331274718, -0.0536825545, 0.4063279331, 0.0199253261, -0.1504729688, -0.0276323073, 0.1699348688, 0.060521096, -0.1047079787, -0.1692233086, -0.2060014307, 0.0063544796, -0.0602119006, 0.2894994915, 0.2464600801, 0.0399107933, 0.142361775, 0.317355603, 0.0431838259, -0.08609505, 0.0958950222, 0.1015617028, 0.3374266028, 0.1774802208, 0.1356683522, 0.1120506898, -0.1733808368, -0.3201328516, 0.1238113418, 0.2855202854, 0.2208070159, -0.0624331906, -0.5807868242, 0.1231826022, 0.0236729775, 0.1875420213, 0.3630837202, -0.3631699979, -0.1094983444, 0.0990888774, 0.0556391962, 0.0512085222, -0.0702483952, -0.1832477599, 0.0333972387, 0.0226572063, 0.2685618997, -0.0871395245, -0.2271842659, 0.1649130583, -0.0110573536, 0.3474284112, -0.1377612054, 0.107749179, 0.367308706, 0.1531877816, 0.0195034463, 0.3287825882, 0.0738376975, 0.0621763282, 0.4536163807, 0.0433851667, 0.6263985634, 0.3133953512, -0.2698844075, 0.1048174053, -0.3597238958, -0.1315762699, -0.0644461662, 0.1428935677, 0.2984363139, 0.0719247311, 0.4628482461, -0.1762642711, -0.3152384758, 0.0487588011, -0.2423638105, -0.0856383443, -0.1142395809, -0.3930783272, -0.1982114464, 0.2366154045, -0.027726911, -0.0908587947, -0.0120657915, 0.1886200458, -0.1014316604, -0.2059574425, -0.5857429504, -0.1734378934, 0.2839124799, -0.0624016225, -0.1222302616, 0.1527833045, 0.1245499626, 0.1562815756, 0.1507200748, 0.3055028915, 0.498590976, 0.5325030088, -0.1081289724, 0.105031237, -0.1505069584, -0.0687115639, -0.0157815516, 0.175682053, -0.1252215505, -0.1440994889, 0.4051364362, 0.0661146864, -0.0606725775, 0.3941460848, 0.322177738, 0.043456994, -0.2341543883, 0.1143152937, -0.1278592646, 0.0654473379, -0.1382033229, 0.0156581588, -0.3902930319, -0.0595420823, 0.3030411601, -0.3966251314, 0.1129760668, -0.038932275, 0.0263054185, -0.4196701944, 0.3758588433, 0.3221401274, 0.173878625, -0.2213017195, -0.140268445, -0.1009963229, 0.1792585552, -0.2492878735, 0.1136271283, -0.0460798703, 0.3102740347, -0.1072593927, 0.1317001879, 0.1980302036, 0.0027527907, -0.0639498532, 0.7769206762, -0.2023663372, -0.4061400294, 0.0042584138, 0.0891182795, 0.0659045503, -0.4869766235, -0.063390106, -0.0967298448, 0.0390018597, -0.1039435416, -0.2570984066, 0.2701437771, -0.0108226929, 0.3218628764, 0.1759917438, 0.0821825415, 0.0472044647, -0.0393467993, -0.4764403999, -0.0358135328, -0.0921206102, 0.1186224222, 0.0973650962, 0.2948977947, 0.0137291737, -0.133866936, -0.2598082423, 0.3552682102, 0.3722300231, 0.0636509359, -0.3439747393, 0.2925576866, -0.4009208083, 0.1828524768, 0.0169195812, 0.3256890178, 0.2241051346, 0.3691230118, -0.2892659307, -0.3230033517, 0.5461325645, -0.8041622043, -0.358165741, 0.0187150538, -0.1205219552, -0.0071665277, -0.0818938985, -0.3705401421, 0.0837900117, 0.3755954504, -0.109396413, 0.0316317491, 0.0740497187, 0.089217782, 0.1829013526, -0.0885552987, 0.1710427701, 0.2066061944, -0.0825920776, 0.280937314, -0.3231044412 ]
https://github.com/huggingface/datasets/issues/2583
Error iteration over IterableDataset using Torch DataLoader
Thank you for that and the example! What you said makes total sense; I just somehow missed that and assumed HF IterableDataset was a subclass of Torch IterableDataset.
## Describe the bug I have an IterableDataset (created using streaming=True) and I am trying to create batches using Torch DataLoader class by passing this IterableDataset to it. This throws error which is pasted below. I can do the same by using Torch IterableDataset. One thing I noticed is that in the former case when I look at the dataloader.sampler class I get torch.utils.data.sampler.SequentialSampler while the latter one gives torch.utils.data.dataloader._InfiniteConstantSampler. I am not sure if this is how it is meant to be used, but that's what seemed reasonable to me. ## Steps to reproduce the bug 1. Does not work. ```python >>> from datasets import load_dataset >>> dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) >>> dataloader = torch.utils.data.DataLoader(dataset, batch_size=4) >>> dataloader.sampler <torch.utils.data.sampler.SequentialSampler object at 0x7f245a510208> >>> for batch in dataloader: ... print(batch) ``` 2. Works. ```python import torch from torch.utils.data import Dataset, IterableDataset, DataLoader class CustomIterableDataset(IterableDataset): 'Characterizes a dataset for PyTorch' def __init__(self, data): 'Initialization' self.data = data def __iter__(self): return iter(self.data) data = list(range(12)) dataset = CustomIterableDataset(data) dataloader = DataLoader(dataset, batch_size=4) print("dataloader: ", dataloader.sampler) for batch in dataloader: print(batch) ``` ## Expected results To get batches of data with the batch size as 4. Output from the latter one (2) though Datasource is different here so actual data is different. dataloader: <torch.utils.data.dataloader._InfiniteConstantSampler object at 0x7f1cc29e2c50> tensor([0, 1, 2, 3]) tensor([4, 5, 6, 7]) tensor([ 8, 9, 10, 11]) ## Actual results <torch.utils.data.sampler.SequentialSampler object at 0x7f245a510208> ... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 435, in __next__ data = self._next_data() File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 474, in _next_data index = self._next_index() # may raise StopIteration File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 427, in _next_index return next(self._sampler_iter) # may raise StopIteration File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 227, in __iter__ for idx in self.sampler: File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 67, in __iter__ return iter(range(len(self.data_source))) TypeError: object of type 'IterableDataset' has no len() ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: '1.8.1.dev0' - Platform: Linux - Python version: Python 3.6.8 - PyArrow version: '3.0.0'
28
Error iteration over IterableDataset using Torch DataLoader ## Describe the bug I have an IterableDataset (created using streaming=True) and I am trying to create batches using Torch DataLoader class by passing this IterableDataset to it. This throws error which is pasted below. I can do the same by using Torch IterableDataset. One thing I noticed is that in the former case when I look at the dataloader.sampler class I get torch.utils.data.sampler.SequentialSampler while the latter one gives torch.utils.data.dataloader._InfiniteConstantSampler. I am not sure if this is how it is meant to be used, but that's what seemed reasonable to me. ## Steps to reproduce the bug 1. Does not work. ```python >>> from datasets import load_dataset >>> dataset = load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) >>> dataloader = torch.utils.data.DataLoader(dataset, batch_size=4) >>> dataloader.sampler <torch.utils.data.sampler.SequentialSampler object at 0x7f245a510208> >>> for batch in dataloader: ... print(batch) ``` 2. Works. ```python import torch from torch.utils.data import Dataset, IterableDataset, DataLoader class CustomIterableDataset(IterableDataset): 'Characterizes a dataset for PyTorch' def __init__(self, data): 'Initialization' self.data = data def __iter__(self): return iter(self.data) data = list(range(12)) dataset = CustomIterableDataset(data) dataloader = DataLoader(dataset, batch_size=4) print("dataloader: ", dataloader.sampler) for batch in dataloader: print(batch) ``` ## Expected results To get batches of data with the batch size as 4. Output from the latter one (2) though Datasource is different here so actual data is different. dataloader: <torch.utils.data.dataloader._InfiniteConstantSampler object at 0x7f1cc29e2c50> tensor([0, 1, 2, 3]) tensor([4, 5, 6, 7]) tensor([ 8, 9, 10, 11]) ## Actual results <torch.utils.data.sampler.SequentialSampler object at 0x7f245a510208> ... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 435, in __next__ data = self._next_data() File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 474, in _next_data index = self._next_index() # may raise StopIteration File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 427, in _next_index return next(self._sampler_iter) # may raise StopIteration File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 227, in __iter__ for idx in self.sampler: File "/data/leshekha/lib/HFDatasets/lib/python3.6/site-packages/torch/utils/data/sampler.py", line 67, in __iter__ return iter(range(len(self.data_source))) TypeError: object of type 'IterableDataset' has no len() ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: '1.8.1.dev0' - Platform: Linux - Python version: Python 3.6.8 - PyArrow version: '3.0.0' Thank you for that and the example! What you said makes total sense; I just somehow missed that and assumed HF IterableDataset was a subclass of Torch IterableDataset.
[ -0.1759884208, -0.3325827718, -0.0121411253, 0.2365849912, 0.1552749872, 0.0204123836, 0.4311745465, 0.001804909, -0.1689607054, 0.2460095882, 0.0963452831, 0.2442089915, -0.335481137, -0.4065967202, -0.2495773584, -0.2147274017, 0.0861799493, -0.2172201574, -0.2279188931, -0.0843941346, -0.1583955437, -0.0314956419, -0.2381763905, -0.0334470533, -0.0213510208, -0.0244186129, -0.1205983758, 0.0094266534, 0.0826325491, -0.5168218017, 0.4132376313, 0.0784672871, 0.5836474299, 0.5928801894, -0.0001213014, 0.0804410204, 0.5695521235, -0.1488479823, -0.3406752348, 0.0339829102, 0.1853102446, 0.1231121793, 0.1892295778, -0.2503041029, 0.0085637514, -0.1373458058, 0.0413328595, -0.4429117441, 0.0277452432, 0.0911385342, 0.1273509264, 0.1404464692, -0.2152100652, -0.1551948041, 0.0873389617, 0.0838436708, -0.066005677, 0.3676381111, 0.6034709811, 0.1462021768, -0.2805482149, 0.1023530066, -0.0515719801, 0.1446327865, 0.2025341094, -0.2065146267, -0.1518070251, -0.1411312222, 0.0165849794, 0.1377262026, 0.4296509027, -0.3647227585, -0.2566857934, -0.2134337127, -0.0908371434, -0.0081763314, -0.0515621118, 0.2455941588, -0.2517602146, -0.1019133031, -0.1053520888, 0.2945756912, -0.2935189009, 0.1506050974, 0.1208928153, 0.0607558414, -0.0605422631, 0.4181458354, -0.0258095115, -0.0496776141, 0.4104272127, -0.1466064453, 0.1139802039, 0.1791275889, -0.4098129272, 0.1215736344, -0.0745931566, 0.0343862958, 0.1090585813, 0.2285431623, 0.1912997514, -0.0721807629, 0.2148058563, -0.0758834556, 0.2809826732, 0.2104016095, 0.16070427, 0.1309029311, -0.0484361872, 0.1294630915, 0.1207148656, -0.0431572609, -0.0131196203, -0.278254658, 0.3315112889, 0.2297442853, 0.2427382618, 0.0218724106, -0.2630297542, -0.0671556368, -0.3772152066, -0.0464771651, 0.0921516716, 0.0312093031, -0.0663539469, -0.0182393137, 0.0260312092, 0.2194150984, 0.001959888, -0.1363486052, -0.0449675322, -0.0634313822, -0.2369845062, 0.1653113812, 0.013812718, -0.5259136558, 0.2178764641, 0.0743199214, 0.1240422651, 0.0981905982, 0.1407573819, -0.1538309008, 0.0876520574, -0.1886790395, 0.1085834205, 0.2937152088, 0.0909663215, 0.3701991737, 0.1703476906, 0.3358138204, -0.2139509022, -0.4311694503, -0.0041143904, 0.1315056235, -0.1349410564, 0.1484009922, -0.1661923379, 0.0139724119, 0.3592299521, -0.0862993151, 0.2563604712, -0.3309457302, 0.0854894742, -0.307409972, -0.1566837132, 0.3201508522, -0.5023245215, -0.0094215833, 0.0944098607, -0.1242311224, 0.4520843625, 0.1644668579, -0.3807598352, 0.3596850932, -0.4563366473, -0.0022495186, 0.0037130893, -0.4484595656, -0.4353863001, 0.2547225952, 0.0600687861, 0.2916573882, 0.1757149845, 0.0443594977, 0.428160727, -0.3241615295, 0.1788839698, 0.0181608181, -0.2364028245, -0.1766934842, -0.3059003055, 0.0654297397, 0.3222926259, 0.1215381697, 0.078764677, 0.2113113999, -0.001834539, 0.0364534333, 0.2559022903, -0.1622605622, 0.1733243465, 0.2712680697, -0.022152463, 0.1062512323, 0.1877069622, -0.0639052168, -0.3826922178, 0.1902540922, -0.0341439582, 0.0252881199, 0.0248265881, -0.0357974507, 0.074642621, 0.1515569836, -0.4089158773, -0.1956710964, 0.0207004491, 0.3267152011, 0.2401631922, -0.3410868049, 0.0510257259, 0.1779325604, -0.3679125011, -0.0905414969, -0.6530373693, -0.0157553181, 0.1605355144, -0.2572540641, 0.006690538, 0.0078655006, 0.2089659572, -0.2063676715, -0.0949185044, 0.2147934437, -0.1238059998, -0.1281568408, -0.1784880161, -0.0105118286, 0.0613335967, -0.203659296, -0.0033431628, 0.3811857998, 0.220655486, -0.1643149853, 0.1571411192, 0.4330123663, -0.1378979236, 0.4838740826, -0.0734655112, -0.0011856492, 0.0547132604, 0.2082166821, -0.4597418606, 0.1447858959, 0.2501414418, -0.0622140281, 0.4288072288, -0.1978160441, -0.3633216321, 0.0964461416, -0.0651243702, -0.0165038537, -0.1332327276, 0.1762123406, -0.2831245959, 0.0837612152, 0.1375371367, -0.0159248579, 0.6980894804, 0.0048868302, 0.0211555101, -0.1067590341, 0.1212169379, -0.0663993582, 0.0172512252, 0.2396640331, 0.0811795592, 0.1726076156, 0.0910500735, -0.1229045689, -0.0504767485, -0.4383985698, -0.1312050968, 0.1998898685, -0.0802578777, 0.3007241189, 0.095455803, -0.1390553415, -0.380645752, -0.5877683163, 0.0185131319, -0.271199435, -0.2329484224, 0.5140380859, 0.0763322115, 0.1100410298, 0.0438049398, 0.1240863949, 0.3323760033, -0.1041977853, -0.015929345, -0.0392118394, -0.3659596741, -0.0314606838, -0.0236697719, -0.6017321944, 0.3704042137, 0.1343914717, 0.0404744633, -0.4792011082, 0.1423616856, 0.0473593064, -0.0661918893, 0.0706466287, 0.4086325467, -0.0504627787, 0.2938430011, -0.2023874074, 0.3072182536, -0.0948525295, 0.0008258662, 0.0853473172, -0.093166925, -0.0026093274, 0.1463578194, -0.0368866138, -0.2398695499, -0.2074588537, -0.0861338452, 0.0731801167, -0.0081960903, 0.1651798487, 0.0242370442, 0.0953030661, 0.4552522302, -0.1504249722, -0.0639600456, -0.4166634679, 0.1938696355, -0.3335470259, -0.2859091163, -0.2267332375, -0.2294799536, 0.2497810125, 0.3717747033, -0.3056229055, -0.1961061507, -0.0602118745, 0.2252772897, -0.0817708895, -0.0425035246, 0.2050270587, -0.1281115711, 0.0889526084, -0.1457211822, -0.103376545, 0.0690964386, -0.2425731272, 0.3543993831, 0.2895653844, 0.5595617294, 0.1378503442, 0.9526196718, 0.462544769, -0.1511877328, 0.2041902095, 0.0080108438, -0.1384088099, -0.085774973, -0.3842643797, 0.2152827233, -0.2100380808, -0.3123047352, 0.1660801619, -0.2149699181, -0.1047035977, 0.0827316791, 0.0972539783, -0.0089915683, -0.1037501991, 0.1755972952, -0.5570784807, 0.1904159039, -0.1468602568, 0.2426726967, -0.2869228423, -0.1258829832, -0.0369660333, 0.0424441695, 0.2459214628, 0.0515737571, -0.1893106699, 0.0190867167, -0.6127882004, 0.3754481375, 0.1767862737, 0.640663445, 0.1874257326, -0.1155640334, 0.1879218072, 0.0049156724, 0.7799474001, -0.1074882448, -0.239838779, -0.0036270656, -0.1669648588, -0.7163994312, -0.4133672416, -0.1469399333, 0.7751924992, 0.1555387676, -0.0751456022, -0.1394629478, -0.0331801325, 0.1941222847, 0.073392801, -0.2068859041, -0.1690137237, -0.1187549755, -0.3793283999, -0.0894917771, -0.2840987444, 0.0517001972, 0.1906179041, -0.0854411572, 0.0612730235, -0.2614082992, -0.0143885929, 0.0583550744, -0.0894983336, 0.1643389761, -0.2137307078, 0.2124436498, -0.0122108832, 0.2840586305, 0.4879255295, 0.2832309008, -0.0035641531, -0.5100498199, 0.2887409329, -0.1830689609, 0.0378486402, 0.2061835825, -0.1886101365, 0.0803613216, -0.1013223156, -0.0213961527, -0.2109726667, -0.0934892669, 0.3020629883, 0.0530126169, -0.6308018565, -0.5626425743, 0.1728116721, 0.2680609226, 0.0526802912, 0.6681531668, -0.398509711, -0.271595031, 0.2776997387, 0.0838838667, 0.7267509699, 0.1485252827, -0.0557479262, 0.2326148003, 0.2090160698, 0.0186762102, 0.3115617931, 0.2369673699, -0.3453317583, -0.227244705, -0.0269916281, -0.1897985935, 0.122177504, 0.182643801, -0.0632818863, 0.3318238556, -0.1436598301, 0.0459797122, 0.1270073056, -0.1268926263, -0.2129749209, -0.133878693, 0.0956514105, 0.0851188079, 0.0057660243, 0.2564904392, -0.172852844, -0.0926576629, 0.0668793395, -0.1555242538, -0.261838913, 0.0443901047, -0.223000437, 0.098584868, 0.2456182688, -0.5232535601, 0.0501230285, 0.2158947885, 0.3522299826, -0.3627727926, -0.0026624063, -0.0294200145, 0.1182427555, -0.0233423561, -0.2029043138, -0.2077227086, 0.4870969653, 0.0405512601, 0.0995511338, 0.3205988407, 0.0713342875, -0.4681004286, -0.2282392681, 0.296656847, 0.47719872, -0.5392912626, -0.2319697738, -0.2508276105, -0.2199194878, -0.2363428324, 0.0104449531, 0.0206891149, -0.2876824737, 0.1941117197, -0.1743821949, -0.1259075254, 0.091926381, 0.524477005, 0.3316212296, -0.0492080487, 0.4610221982, 0.1272779852, -0.0780189708, 0.0172997341, -0.0337954946, 0.2742297649, -0.6039992571, 0.3320972323, -0.3019655347, 0.5657224655, -0.0477750786, 0.3233406544, 0.0145816831, 0.0645346865, -0.3575259149, -0.2525318265, -0.2616006136, -0.1055722609, 0.0183100365, 0.2605784237, 0.0524430908, 0.1213146523, 0.0727654696, -0.0829663724, -0.195993349, -0.1801848263, -0.0205959231, 0.1617281288, 0.1508176774, 0.0620181337, -0.1045727581, 0.331274718, -0.0536825545, 0.4063279331, 0.0199253261, -0.1504729688, -0.0276323073, 0.1699348688, 0.060521096, -0.1047079787, -0.1692233086, -0.2060014307, 0.0063544796, -0.0602119006, 0.2894994915, 0.2464600801, 0.0399107933, 0.142361775, 0.317355603, 0.0431838259, -0.08609505, 0.0958950222, 0.1015617028, 0.3374266028, 0.1774802208, 0.1356683522, 0.1120506898, -0.1733808368, -0.3201328516, 0.1238113418, 0.2855202854, 0.2208070159, -0.0624331906, -0.5807868242, 0.1231826022, 0.0236729775, 0.1875420213, 0.3630837202, -0.3631699979, -0.1094983444, 0.0990888774, 0.0556391962, 0.0512085222, -0.0702483952, -0.1832477599, 0.0333972387, 0.0226572063, 0.2685618997, -0.0871395245, -0.2271842659, 0.1649130583, -0.0110573536, 0.3474284112, -0.1377612054, 0.107749179, 0.367308706, 0.1531877816, 0.0195034463, 0.3287825882, 0.0738376975, 0.0621763282, 0.4536163807, 0.0433851667, 0.6263985634, 0.3133953512, -0.2698844075, 0.1048174053, -0.3597238958, -0.1315762699, -0.0644461662, 0.1428935677, 0.2984363139, 0.0719247311, 0.4628482461, -0.1762642711, -0.3152384758, 0.0487588011, -0.2423638105, -0.0856383443, -0.1142395809, -0.3930783272, -0.1982114464, 0.2366154045, -0.027726911, -0.0908587947, -0.0120657915, 0.1886200458, -0.1014316604, -0.2059574425, -0.5857429504, -0.1734378934, 0.2839124799, -0.0624016225, -0.1222302616, 0.1527833045, 0.1245499626, 0.1562815756, 0.1507200748, 0.3055028915, 0.498590976, 0.5325030088, -0.1081289724, 0.105031237, -0.1505069584, -0.0687115639, -0.0157815516, 0.175682053, -0.1252215505, -0.1440994889, 0.4051364362, 0.0661146864, -0.0606725775, 0.3941460848, 0.322177738, 0.043456994, -0.2341543883, 0.1143152937, -0.1278592646, 0.0654473379, -0.1382033229, 0.0156581588, -0.3902930319, -0.0595420823, 0.3030411601, -0.3966251314, 0.1129760668, -0.038932275, 0.0263054185, -0.4196701944, 0.3758588433, 0.3221401274, 0.173878625, -0.2213017195, -0.140268445, -0.1009963229, 0.1792585552, -0.2492878735, 0.1136271283, -0.0460798703, 0.3102740347, -0.1072593927, 0.1317001879, 0.1980302036, 0.0027527907, -0.0639498532, 0.7769206762, -0.2023663372, -0.4061400294, 0.0042584138, 0.0891182795, 0.0659045503, -0.4869766235, -0.063390106, -0.0967298448, 0.0390018597, -0.1039435416, -0.2570984066, 0.2701437771, -0.0108226929, 0.3218628764, 0.1759917438, 0.0821825415, 0.0472044647, -0.0393467993, -0.4764403999, -0.0358135328, -0.0921206102, 0.1186224222, 0.0973650962, 0.2948977947, 0.0137291737, -0.133866936, -0.2598082423, 0.3552682102, 0.3722300231, 0.0636509359, -0.3439747393, 0.2925576866, -0.4009208083, 0.1828524768, 0.0169195812, 0.3256890178, 0.2241051346, 0.3691230118, -0.2892659307, -0.3230033517, 0.5461325645, -0.8041622043, -0.358165741, 0.0187150538, -0.1205219552, -0.0071665277, -0.0818938985, -0.3705401421, 0.0837900117, 0.3755954504, -0.109396413, 0.0316317491, 0.0740497187, 0.089217782, 0.1829013526, -0.0885552987, 0.1710427701, 0.2066061944, -0.0825920776, 0.280937314, -0.3231044412 ]
https://github.com/huggingface/datasets/issues/2573
Finding right block-size with JSON loading difficult for user
This was actually a second error arising from a too small block-size in the json reader. Finding the right block size is difficult for the layman user
As reported by @thomwolf, while loading a JSON Lines file with "json" loading script, he gets > json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 383)
27
Finding right block-size with JSON loading difficult for user As reported by @thomwolf, while loading a JSON Lines file with "json" loading script, he gets > json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 383) This was actually a second error arising from a too small block-size in the json reader. Finding the right block size is difficult for the layman user
[ 0.0956071168, 0.0020218808, -0.2247489989, 0.4068728983, 0.1341334283, -0.0870382935, 0.3515782952, 0.3959696591, 0.5053704977, 0.4565080106, 0.2659342885, -0.0984665453, 0.0224604625, -0.0638387874, -0.0379773863, -0.2568932474, -0.2618598342, 0.2319743037, 0.1568870693, 0.3039902449, -0.1997618377, 0.2665424347, 0.1062276959, -0.1609104425, 0.223623082, 0.0587516464, 0.0914319232, 0.0959858298, -0.0711930841, -0.4359494746, -0.0447096825, -0.1151686981, -0.074327819, 0.4498323202, -0.0000995917, 0.0249896944, 0.3473541737, -0.0728502125, -0.4421045184, -0.1200119853, -0.0604004934, -0.5030121803, 0.2035161853, -0.1993366182, -0.0218434744, -0.1310323179, -0.0668416172, -0.1065116078, 0.4629110694, 0.1220876947, 0.3715201318, -0.2377005965, 0.045644708, 0.0361531898, 0.2381218225, 0.0637211353, 0.0411678217, 0.3781584203, 0.3516418636, 0.523459971, 0.1095336154, 0.0675434172, -0.0711690858, -0.0298217647, 0.0829154402, -0.3186948895, 0.281725049, -0.0485039279, 0.1941677928, 0.2429828495, 0.4865900576, 0.4166162908, -0.0474563837, -0.324216187, 0.0322852917, 0.1813374907, 0.3077042997, 0.0795376152, -0.2536923587, -0.022642659, -0.2651891708, -0.0648074672, -0.0264157541, -0.0369259305, -0.048568368, -0.0989518315, -0.1725888252, -0.0340949409, 0.152447924, -0.1861774474, -0.0281529035, -0.1080388576, -0.309092015, -0.0638665333, 0.0473017842, -0.1721326262, 0.1723933071, -0.4616984725, 0.0737604275, 0.0164621565, 0.5296996832, 0.1309638619, 0.1242324412, 0.0838948563, 0.1776371896, -0.0081727998, -0.0359092914, -0.1953773201, 0.1494318396, 0.2763274908, 0.1767871678, -0.092380926, -0.2731755972, -0.2625052631, -0.2382465601, 0.0424292982, -0.0853552595, -0.1323304176, -0.0086917216, 0.2200217098, -0.429397434, -0.055188179, 0.0649295375, 0.1727653146, 0.0687272996, 0.264041096, 0.2109944671, -0.0350077152, -0.1069792733, -0.0796665922, -0.145455718, 0.0986791402, 0.1120594069, -0.1924843937, 0.2174407989, 0.1487836391, 0.148370862, -0.151609242, -0.3099975288, -0.3423231244, 0.1462389529, 0.0635310262, -0.1348581314, 0.2650139928, 0.1864120066, -0.1065847129, -0.2369070202, -0.1228934079, -0.1800565124, 0.2556236088, -0.2207952887, -0.126877293, 0.0242800601, 0.3463028967, 0.0242341347, 0.1429316103, -0.1664886177, -0.0688212886, 0.0027223928, -0.1732433885, 0.0776586756, -0.2282051891, 0.0448118486, -0.207637459, -0.1221619248, 0.1634408236, -0.3751147985, -0.1120071933, 0.1969167143, -0.0536480434, 0.0594988354, 0.3059163392, -0.2070638388, 0.2804148495, -0.0869017392, -0.1196015105, 0.2914658785, 0.1173439324, -0.2984393835, 0.5185745358, -0.1299732774, 0.2412538081, 0.2093470693, -0.0292255357, 0.1271211803, 0.0056955642, 0.3884543478, 0.2863802016, 0.1438800246, 0.2596037388, -0.3090474904, -0.119964987, 0.0019169751, 0.1428798139, -0.0248801615, -0.2754834294, -0.0984633714, -0.0076826792, 0.1241576523, -0.2261897624, -0.0808176845, 0.2229840755, -0.0063510775, -0.1971471012, 0.1822519302, 0.2619440258, -0.1677094102, 0.0242066458, -0.0506116413, -0.2076395005, 0.0557605065, 0.0121830218, -0.0724803433, -0.1452801675, 0.1470715702, 0.2062346786, 0.301597476, 0.118032366, 0.1232230738, -0.2187985033, 0.1007838547, 0.0669477507, 0.0789799392, 0.046017807, -0.2172986269, 0.0409305394, -0.056874916, -0.0933200717, 0.2606040835, -0.0812588632, -0.0284130797, -0.3079863489, -0.2069393396, 0.0034055805, 0.1463599652, -0.0012323505, -0.1660548002, -0.1716948301, -0.0142641645, 0.4521521926, 0.1640970111, 0.3425682485, 0.048831895, -0.1035275534, -0.0192077756, 0.332932502, -0.1527854204, 0.0934555009, -0.0145506859, -0.2997950315, 0.4019197524, 0.0413826592, 0.1222537085, -0.0321631469, 0.3996906877, 0.5543020368, -0.0444618165, -0.0262640007, -0.1600779891, -0.0489268228, 0.4573386014, -0.2258947939, 0.0071740197, 0.3564728498, 0.134352982, -0.1963521093, -0.1052224264, 0.1182254106, 0.1299024373, 0.1888305694, -0.0610681549, -0.1487724185, 0.4033782184, -0.4765149355, 0.1759026796, -0.0582788065, 0.1923299581, 0.2282368243, 0.1666173041, -0.1296430379, -0.1703409404, -0.2919540107, -0.1598016918, 0.1414597929, -0.2160116881, -0.0383913442, -0.1749048978, 0.017143622, 0.1160073131, -0.1941161454, 0.0634471476, -0.2764544189, 0.1864842325, 0.085799776, -0.3864560723, -0.2314623892, -0.1342247576, 0.4629589021, -0.1204372123, 0.3889083266, -0.2953083813, -0.084137857, -0.2262497097, 0.2532869577, 0.4552178979, -0.091912441, 0.0816133469, -0.274921149, 0.0461798236, 0.347112, -0.0816964284, -0.0107902521, 0.0228415113, -0.060049817, 0.0560305454, 0.4496856928, 0.0836109072, 0.0302212071, -0.1500126123, -0.0744830891, -0.2961722612, 0.2650218308, -0.002103714, -0.1048984081, -0.3383952379, -0.2061034441, 0.1078685671, -0.3975124359, 0.441233933, 0.2321576774, 0.2120520771, -0.3862465322, 0.2198590487, 0.1508173347, 0.1889529079, 0.3159149885, -0.2085716128, -0.4334501326, 0.1112231091, -0.2329666317, -0.4228049815, 0.1300274432, 0.1339903623, 0.0498610325, -0.2667621374, -0.4891366661, 0.3003759682, -0.0521568097, -0.276709199, -0.1889619082, -0.1978447437, 0.2448019236, 0.0081733288, -0.1918315589, 0.015229255, -0.2356636524, 0.0061499253, 0.1423392147, 0.1480261981, -0.1886838973, 0.6826389432, -0.0103880754, 0.044623524, 0.1303071082, 0.0706444457, 0.0657465309, 0.3156467378, 0.0240764618, -0.2853401005, 0.3214400709, 0.1970463991, 0.1434584409, -0.0817008018, 0.2895278633, 0.0371529907, -0.2142820358, -0.1410539746, -0.4289240837, -0.2734738886, -0.2403489202, 0.3684608042, -0.058979366, -0.3968170583, -0.2104890496, 0.2031516433, -0.1731849313, 0.0008149848, -0.1152250022, 0.1386915594, 0.1925497502, -0.0058937832, -0.1709820479, -0.0764889568, -0.2906217575, 0.5571377873, 0.0853894427, 0.053354159, -0.0164596234, -0.0685136393, 0.1735536605, -0.318783462, 0.3556573987, 0.0575481243, -0.0762583166, 0.0424540341, 0.0448649675, -0.2691235244, -0.073423855, 0.0714506432, 0.0639277622, 0.3373166919, 0.0944462642, -0.3351977766, 0.0434359796, 0.077874288, 0.0335209146, -0.0920765102, -0.435536772, -0.1980988085, -0.3307768703, -0.35833776, 0.0288313292, -0.115227282, 0.1873099506, 0.0975567549, -0.4058392048, 0.2624619007, -0.1972243786, -0.0597405545, 0.2077490538, -0.090027079, -0.1461899281, 0.060645707, 0.0556649901, 0.2191552073, 0.423297286, 0.5937589407, 0.3618925214, 0.1425872743, 0.3213867247, -0.2036594152, 0.2121597528, 0.2889625728, 0.1237674206, -0.0542608835, -0.0253478996, 0.370965153, 0.1296097189, -0.2740959227, 0.0858494639, -0.0309426077, -0.1193367019, -0.1653835922, 0.2441497296, -0.2641584873, 0.1816565692, 0.1978206933, -0.2616371512, -0.1393803507, 0.392016083, 0.0121426126, 0.9516811371, 0.0117816394, -0.040724542, 0.2059564888, -0.6339950562, 0.2703418136, -0.5762804151, 0.0921206474, -0.2677561939, 0.403120935, 0.0943103805, -0.1034551412, 0.0441920385, 0.0501290411, -0.2925865054, -0.0953402296, -0.2573273778, -0.1921390593, -0.319734931, 0.3754502535, -0.3018941581, -0.0932730958, -0.2033962458, 0.2914940119, -0.1313429475, 0.0059478423, -0.101675801, -0.0961298719, -0.2755258977, -0.3008351028, -0.2541138232, 0.1800950617, 0.0781226307, 0.0260453224, 0.1926259547, -0.0724617392, -0.0118423961, -0.3353954554, -0.0861082971, 0.1424120814, -0.0768292621, 0.2569777071, -0.247529313, -0.107786715, 0.0033482667, 0.2006388903, 0.1615883112, -0.3208277822, -0.181096673, 0.0709887743, -0.1186240762, -0.1217615455, -0.1446333677, -0.0039852774, -0.4416051507, -0.3048274219, -0.3690399528, -0.14542301, -0.0676659867, 0.0177947283, 0.3172253668, 0.1601399183, 0.0666754618, -0.2374671549, 0.1774479449, -0.2549623847, -0.2523486614, -0.0809457973, 0.2365008444, -0.027906416, 0.3630593717, 0.0131122395, -0.2868365347, -0.3017170131, 0.0583485886, 0.3081490397, -0.0034952352, 0.1487830877, -0.0847288445, -0.1603411883, 0.0976042002, 0.092425026, 0.1385640055, 0.0612399951, 0.2169469148, -0.3212397099, -0.2478017509, 0.2087911367, 0.0137163494, 0.2162072957, 0.0073689464, -0.046371188, -0.0944187418, 0.2117327005, -0.4128862619, -0.0015194264, -0.1317285895, -0.0568887629, -0.3676461279, -0.0979966, -0.1211701483, 0.0854508877, 0.2758598626, 0.3163311183, -0.1931318194, -0.342548579, -0.0458514728, 0.0235786177, 0.0598582216, 0.019914344, -0.0880568475, 0.0046931761, -0.0312830433, -0.000775579, 0.1649954766, -0.2054680884, -0.0788374394, -0.0732972994, 0.0996499285, 0.0162742138, -0.0511499457, 0.2448520958, -0.135873735, 0.6824116111, -0.0861570612, 0.0478591025, -0.061426349, 0.120992355, -0.2335135639, 0.2943441868, 0.0573896989, 0.2390205413, 0.3425367177, -0.0867349431, 0.2997987866, -0.1794265956, -0.1363952011, 0.3500249386, -0.2331954539, 0.1883662194, -0.1489789188, 0.3308045566, 0.0368777327, -0.0338602625, 0.0600363687, -0.0045373389, -0.1960622519, 0.08690238, -0.0463104323, -0.2042615712, -0.0384364314, 0.1573484242, 0.1158953235, -0.0035345084, -0.2411171645, 0.036159385, -0.3862704039, -0.1831169873, 0.1398923844, -0.081511654, 0.3740173876, 0.0527293272, -0.0417467616, -0.1409885138, 0.1649288982, 0.347292006, -0.2207558155, -0.3389638066, 0.3110890985, 0.391505599, -0.111696817, 0.2904825807, 0.3967680633, -0.2645716369, 0.0052974336, 0.3095877469, -0.4420290887, 0.066110462, -0.296711117, -0.0467390083, -0.3116158247, -0.1224614233, -0.2448616773, 0.1646090746, -0.0635074675, -0.0268443506, -0.2367590964, 0.286729604, -0.2356092185, 0.0839223117, 0.0872334912, -0.3086819649, 0.0986692756, -0.3815234303, 0.1971347034, 0.270827651, -0.1181469709, 0.2543819547, -0.1871208698, 0.3644881248, 0.2129339278, -0.0197816119, -0.0783834234, -0.0713373423, -0.127023682, -0.1773279011, 0.4721390009, 0.4094124436, 0.0881330073, 0.1295314431, 0.3142967224, -0.3490211666, 0.1909382194, 0.1290358603, 0.01876821, -0.1486463547, 0.0549852327, -0.2535212636, -0.1547024101, -0.2582300007, -0.3317995369, -0.361625284, -0.3557005823, -0.2150494754, 0.0240761079, 0.0756877884, -0.0565702729, 0.1521945596, -0.0117870383, 0.4091022909, 0.0852176026, -0.1188731417, 0.1934009343, -0.0815609321, -0.045048859, 0.1781631708, -0.3505959213, 0.0393822603, -0.0146680614, 0.1155027002, 0.1772555262, -0.0137808276, 0.1960996687, 0.3159480989, -0.0588478372, -0.0466033891, -0.2327635884, 0.00243292, 0.4833302796, -0.1535354555, -0.0513485894, -0.0887596086, 0.2628227174, -0.2804349959, 0.2732722759, -0.0750522986, 0.020909518, 0.05706333, 0.2809639275, 0.2937185168, 0.0545737967, 0.3408741355, -0.1181642488, -0.2074313015, 0.0148196789, -0.0482555032, 0.0912163258, 0.3455092311, 0.1185510084, 0.3530786633, -0.0112941386, 0.0972545147, -0.0652898252, 0.1041337475, -0.5952875018, 0.0762314573, -0.1569373012, -0.1008725092, -0.1479346007, 0.2144840211, 0.189266935, 0.0780685619, 0.0398856923, -0.2250812948, -0.236915037, 0.1293316633, 0.2331682742, 0.1052924395, -0.1817366779, 0.2494727671, 0.0162263066, -0.2458006442, -0.0074244495, -0.4358266294, 0.2334848642, 0.2724748552, -0.0710912049, 0.0311999936, 0.2523405254, 0.0391329229, -0.0248585492, -0.1025632173, 0.3251882493, 0.1013378724, 0.0339281559, -0.1910833418, -0.1868946701 ]
https://github.com/huggingface/datasets/issues/2569
Weights of model checkpoint not initialized for RobertaModel for Bertscore
Hi @suzyahyah, thanks for reporting. The message you get is indeed not an error message, but a warning coming from Hugging Face `transformers`. The complete warning message is: ``` Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.dense.weight', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_head.bias', 'lm_head.layer_norm.weight'] - This IS expected if you are initializing RobertaModel from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model). - This IS NOT expected if you are initializing RobertaModel from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model). ``` In this case, this behavior IS expected and you can safely ignore the warning message. The reason is that you are just using RoBERTa to get the contextual embeddings of the input sentences/tokens, thus leaving away its head layer, whose weights are ignored. Feel free to reopen this issue if you need further explanations.
When applying bertscore out of the box, ```Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_head.dense.weight', 'lm_head.layer_norm.weight']``` Following the typical usage from https://huggingface.co/docs/datasets/loading_metrics.html ``` from datasets import load_metric metric = load_metric('bertscore') # Example of typical usage for batch in dataset: inputs, references = batch predictions = model(inputs) metric.add_batch(predictions=predictions, references=references) score = metric.compute(lang="en") #score = metric.compute(model_type="roberta-large") # gives the same error ``` I am concerned about this because my usage shouldn't require any further fine-tuning and most people would expect to use BertScore out of the box? I realised the huggingface code is a wrapper around https://github.com/Tiiiger/bert_score, but I think this repo is anyway relying on the model code and weights from huggingface repo.... ## Environment info - `datasets` version: 1.7.0 - Platform: Linux-5.4.0-1041-aws-x86_64-with-glibc2.27 - Python version: 3.9.5 - PyArrow version: 3.0.0
167
Weights of model checkpoint not initialized for RobertaModel for Bertscore When applying bertscore out of the box, ```Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_head.dense.weight', 'lm_head.layer_norm.weight']``` Following the typical usage from https://huggingface.co/docs/datasets/loading_metrics.html ``` from datasets import load_metric metric = load_metric('bertscore') # Example of typical usage for batch in dataset: inputs, references = batch predictions = model(inputs) metric.add_batch(predictions=predictions, references=references) score = metric.compute(lang="en") #score = metric.compute(model_type="roberta-large") # gives the same error ``` I am concerned about this because my usage shouldn't require any further fine-tuning and most people would expect to use BertScore out of the box? I realised the huggingface code is a wrapper around https://github.com/Tiiiger/bert_score, but I think this repo is anyway relying on the model code and weights from huggingface repo.... ## Environment info - `datasets` version: 1.7.0 - Platform: Linux-5.4.0-1041-aws-x86_64-with-glibc2.27 - Python version: 3.9.5 - PyArrow version: 3.0.0 Hi @suzyahyah, thanks for reporting. The message you get is indeed not an error message, but a warning coming from Hugging Face `transformers`. The complete warning message is: ``` Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.dense.weight', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_head.bias', 'lm_head.layer_norm.weight'] - This IS expected if you are initializing RobertaModel from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model). - This IS NOT expected if you are initializing RobertaModel from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model). ``` In this case, this behavior IS expected and you can safely ignore the warning message. The reason is that you are just using RoBERTa to get the contextual embeddings of the input sentences/tokens, thus leaving away its head layer, whose weights are ignored. Feel free to reopen this issue if you need further explanations.
[ -0.0595505349, -0.3645300865, 0.090109922, 0.1289699972, 0.4273766577, 0.0748272091, 0.2718202174, 0.1242346913, 0.1251104474, 0.1333976686, -0.1491384059, 0.2172134519, -0.1455290467, -0.0643485487, -0.0716612935, -0.219649002, 0.1432189047, -0.049943801, -0.2094155401, -0.1764129102, -0.1302690804, 0.186464712, -0.205432862, 0.1243987232, -0.3585762084, 0.170772627, 0.0284247156, 0.3952335119, 0.0566759333, -0.4421780705, 0.4252817631, -0.0705894604, 0.1829728484, 0.4877993166, -0.0001228714, 0.0064606401, 0.2213189751, -0.0540870614, -0.0313103236, -0.1773597002, 0.0916275904, -0.2407543659, 0.1299379468, -0.0846756622, 0.0850727186, 0.1098496839, -0.0971312672, -0.0917772204, 0.4431145191, -0.0203818697, 0.0755342618, 0.6024700999, 0.0763729289, -0.1494729072, 0.0460662656, -0.1314277053, 0.0313532017, 0.7358222008, -0.153144002, -0.0208545383, -0.0985680372, 0.3127398789, 0.1029277667, 0.3258488178, 0.2433320731, -0.0050744726, 0.089049004, -0.0216682591, -0.317309618, 0.3472052217, -0.0981714278, -0.1046689525, -0.2188246995, -0.2243635803, 0.0887014866, -0.2474698722, 0.1257455647, -0.02469882, 0.038126152, 0.1720039397, -0.2667013407, -0.066907011, 0.067695044, -0.0849527046, 0.1294219792, -0.1038844064, -0.3312369585, 0.0494494252, 0.5595439076, 0.0194067899, -0.4946101308, -0.0332814157, 0.0093522361, 0.1292149723, -0.1981736571, 0.0252227206, 0.2562126815, 0.3080793321, 0.2015602738, -0.044170171, 0.0902203321, 0.0475656912, -0.1666267514, 0.0227410905, 0.0656780079, 0.3708830774, -0.1095079854, -0.0424451977, 0.1951086819, 0.4521811008, 0.2514281273, -0.12598221, -0.2047223449, -0.1200860664, 0.0782651156, -0.1153679192, 0.0622205324, -0.1527002454, -0.4366092384, -0.0243245699, -0.0479729064, -0.2746988833, 0.458175987, 0.2476871461, -0.0365002975, 0.2026103735, -0.1451325566, 0.3258638084, -0.1985163093, 0.023669811, -0.1916702986, 0.035991855, -0.5499863625, 0.1129403487, 0.1525398195, -0.5149905086, 0.3871526718, 0.0121975644, 0.4898636341, 0.0477316007, -0.1363254189, -0.0647763684, 0.0756391287, 0.3032771349, -0.0555823334, 0.3049114048, 0.3483040631, 0.2483798712, -0.1436177045, -0.1127426624, -0.322294116, -0.4240392447, 0.3303534687, -0.0249221027, -0.201301828, -0.0021153016, -0.6301622391, 0.1443104148, 0.0616415292, 0.0386336967, -0.0829503685, 0.137228474, -0.1097319275, 0.0338976085, 0.461948514, 0.5912771225, -0.4559363723, -0.3831555247, 0.0175584983, -0.0373059288, 0.2624930739, 0.540440917, -0.2662967741, 0.2490766495, -0.1183155477, -0.1341702938, -0.0909342542, -0.2990630865, -0.1987126321, -0.1149460822, 0.1860006601, 0.0329381712, 0.1031881496, -0.3880261779, -0.5773237348, -0.1748376787, 0.0777937621, -0.1614883989, 0.0580866039, 0.0355185531, -0.2055669278, -0.2308665961, 0.0268765166, 0.2811305523, -0.1402848661, 0.0905098468, -0.2136241794, 0.1375385374, -0.088408336, -0.1537056118, -0.0406619981, -0.0437061228, 0.1233560145, -0.1413981766, 0.0559837297, 0.1983403862, -0.0795103684, 0.2182412595, 0.0872276276, 0.0330902487, 0.1745310426, 0.0800559595, -0.2793903947, -0.0999711305, -0.0506965145, -0.0824541003, -0.0876183584, 0.0734470934, 0.0435830541, -0.0325285606, -0.4597766995, -0.1559246927, -0.360987246, 0.1635394394, -0.160919413, 0.0514068082, -0.036112912, 0.0468635075, 0.0299033076, 0.3188661933, -0.0681626871, -0.2337531298, -0.0063476148, 0.3686247766, 0.0399778523, -0.0959597751, 0.2741053998, -0.0035355904, 0.1728622913, -0.1739948988, -0.1187921762, -0.1149658635, 0.0476635993, 0.0078630513, -0.1623608768, 0.3741189837, -0.0398697071, 0.1298769861, 0.1223523244, -0.0840317607, 0.1379919946, 0.0420225486, -0.0950797126, -0.2151757032, 0.1294484735, 0.1283425987, 0.5055887103, -0.1493334472, -0.1057035625, -0.5590142012, -0.0101485681, 0.0239323601, -0.0259494241, 0.2220361978, -0.2602642775, 0.0751151368, -0.1623808593, -0.3754823208, 0.397004813, 0.0489645302, 0.0447649509, -0.0641906485, 0.0965385363, -0.1662310362, -0.1341762096, 0.4033738077, -0.1383151263, 0.055798877, -0.0470864922, 0.0068546813, -0.2336545289, 0.0577769019, -0.0103691937, 0.0481165163, -0.5006850958, 0.2451439947, 0.0958229303, 0.2131478339, -0.2310562581, -0.6032778025, -0.2174277455, -0.1217879504, 0.0403482653, -0.0738130882, 0.0724717453, 0.2759858668, 0.3919838071, 0.6198573112, -0.0538358018, 0.1658962071, -0.3506983519, 0.0307397973, -0.0841739476, 0.0006196231, 0.028195601, -0.2045595944, -0.1048334539, -0.3925685585, -0.0318241417, 0.1536331773, -0.3445517123, 0.1895874441, -0.3401432335, 0.3981797695, 0.3173835278, -0.0608039349, -0.1456560493, -0.2803345025, 0.3773916364, -0.15922001, -0.0017577729, -0.0181134138, -0.1346403509, -0.0219192132, -0.0361184888, 0.0024108558, -0.0466628298, -0.1200051233, 0.2488232851, 0.2780735195, -0.1349143386, -0.0081025707, 0.1877328455, 0.3090735078, -0.2970645428, -0.102199778, -0.15301691, -0.673530817, 0.4321501255, -0.1006262228, -0.2623508573, -0.1679246575, 0.0318280458, 0.3910511434, -0.4273377359, -0.2776671946, -0.3598843813, -0.1445212662, -0.0678401887, 0.139844656, 0.3970989287, -0.0778830349, -0.1432485282, 0.0223996099, -0.0999998599, -0.1330248863, 0.0972604454, -0.1907606572, 0.3079790473, -0.3312959969, 0.2309684604, -0.3256834447, 0.9833401442, 0.2083686292, -0.2381805927, 0.5505986214, 0.1054870933, 0.3776522577, -0.1789008826, -0.1699362844, 0.0257008374, -0.0011687863, 0.2771568, 0.1856428683, 0.1174834967, 0.2526867986, -0.1581130922, -0.2227060348, -0.0587000214, -0.1845898032, -0.0922746211, 0.1744085997, 0.040452186, 0.0434066541, -0.1081391349, -0.1012127623, -0.0601812303, 0.2614686191, 0.3391656578, 0.2163944542, -0.1530730426, -0.1500346363, 0.0009445402, -0.5353901982, 0.2343061119, -0.1653895229, -0.1055975929, 0.2081578076, -0.3411152959, 0.1482872367, 0.1174766049, 0.4149772525, 0.2935398519, 0.0004643015, -0.2337070256, -0.0740333647, -0.2577539086, -0.0245778486, -0.2915293574, -0.1611653119, 0.5257942677, 0.4730912149, -0.4316529632, -0.0833312869, 0.1507503688, -0.0110320132, -0.0640362948, -0.1930382997, -0.5834462643, 0.024098821, -0.1810368299, 0.1633042246, -0.0103392145, 0.1443922669, -0.058633633, 0.3244633973, -0.0369303487, -0.2063415647, 0.253087461, 0.3682605326, 0.1876195222, 0.0778901204, 0.2066576481, 0.5539933443, -0.0000879208, 0.5046100616, 0.6657986045, -0.1601141989, -0.3793663085, 0.1752094477, 0.2613639235, 0.1779569983, 0.2454213798, -0.0718365386, -0.1452249289, 0.2186295986, 0.3847094774, -0.4183937609, 0.2498672158, 0.3549112082, 0.1509608179, -0.1904464364, -0.1720647216, 0.4522170424, 0.0433949716, -0.0110085234, -0.0559040941, 0.3944803178, 0.025046885, 0.1934130043, 0.131505698, 0.9412790537, -0.140444845, 0.289434284, 0.264469713, 0.3819969893, 0.4347297549, 0.0780263022, -0.0474180989, -0.1110299975, 0.0099812392, 0.0039277649, -0.0804316327, 0.1772285402, 0.0330030583, -0.1441050023, 0.3068509102, -0.1944562644, 0.000602733, -0.2966684997, -0.022542892, -0.0508291274, -0.2607231736, -0.3046504557, -0.0399432592, 0.2054138631, 0.4303845763, -0.0403820351, -0.0531850345, 0.0336151645, -0.3173626065, -0.0423046574, 0.1069530621, -0.0235019848, -0.1178589612, 0.4349119365, 0.0037763191, 0.2492845803, 0.0636050776, 0.650044024, 0.0548426062, -0.2759637535, 0.3410856426, -0.0260581505, -0.0271993987, -0.1503069252, 0.0005935865, 0.2195638567, 0.0923215449, -0.1672544479, -0.0031069545, -0.0732173547, -0.0034423566, -0.2601658404, 0.0199465193, 0.1987618655, -0.3643710911, 0.0852136984, 0.1690536439, 0.1256234199, -0.0979289189, 0.0158786159, 0.0073376754, -0.0804223195, 0.0851543993, 0.1413448751, -0.2557507753, -0.1532669961, 0.4424972832, -0.350553453, 0.0770261884, 0.4665475488, -0.1539022624, -0.1273452193, 0.0990455523, -0.2718666494, 0.7606895566, -0.8098622561, -0.0061648013, 0.4467017353, 0.1676994711, 0.1587513834, 0.4820000529, 0.4868227541, -0.1703995913, -0.0927321613, -0.1318476051, -0.2867137194, 0.1372986585, -0.1310383528, 0.0091234092, -0.0741152465, 0.1504413486, 0.0757750645, 0.3769190311, -0.1660312712, 0.131422922, 0.0432726666, -0.1004368439, -0.0626357198, -0.0242757872, 0.5027931929, 0.0748704523, -0.0275893584, 0.023712758, -0.2135197222, -0.0519272424, -0.3896521628, 0.1608541012, 0.0143396715, -0.2431518435, 0.0314339399, 0.0987004116, -0.0299401376, -0.2585272491, -0.0159455407, -0.0764776617, 0.0971184745, -0.1120953634, 0.511128962, 0.0089680068, -0.066201292, -0.1408341229, 0.1427726895, 0.0031545889, 0.2334937304, -0.1755470634, -0.1201870516, -0.0454075858, 0.1187156364, 0.0554704629, 0.3773244917, 0.0398189165, -0.0046974248, 0.0470226444, -0.0108901449, -0.1105001345, 0.3558959365, 0.3031350076, -0.0842777863, -0.2095174789, 0.2264949977, 0.0445752852, -0.2369075567, -0.093270272, -0.1619828939, 0.2636479735, -0.0085692694, 0.255413413, 0.1725537479, 0.3013778031, 0.0927801952, -0.0370462164, 0.0561467074, 0.0379340947, -0.0654731318, 0.2098350227, -0.166971311, 0.2181402892, 0.7928678393, 0.2075891495, 0.2908723354, 0.1803369373, -0.1650342941, 0.421248585, -0.4339537621, 0.149448514, -0.2449097037, -0.5602254272, -0.0903786495, 0.1666407287, 0.1425827444, -0.1524409652, -0.1933712512, 0.7876698971, -0.0848464519, 0.0509206504, -0.1816954017, 0.2001523823, 0.0781919509, -0.5429597497, -0.0651723444, -0.1270939559, 0.0230903979, -0.0550476834, 0.0252034664, -0.119632706, 0.3264278471, -0.0505129509, -0.056964241, -0.1790414155, -0.6971856952, 0.2321910262, 0.2278521508, -0.0520915724, 0.0736198127, 0.349247545, -0.1455152184, 0.2686406374, 0.4473620355, 0.4319787025, 0.1288593262, 0.2252585292, -0.0570142679, 0.0503858328, 0.1868865341, -0.1474190056, 0.4391913414, 0.2323347181, 0.1657165438, 0.0475359298, 0.0522571355, -0.1726900041, 0.1441651434, -0.3620406985, 0.4175057411, -0.2680937052, 0.4726896584, -0.2722770274, 0.1367377192, -0.3582395613, 0.1517601311, -0.3563919961, 0.6355631948, 0.1526318192, -0.0697696581, -0.0993390828, -0.1545824409, -0.0141338687, 0.1526906043, 0.5158997178, 0.3221861422, -0.1246200204, -0.5601328611, -0.0678569824, -0.5862092972, 0.1026223898, -0.039340049, 0.3152086139, -0.0407281853, 0.0282728244, -0.0719602332, 0.15203619, -0.0168856736, -0.3900321722, -0.265737474, -0.1565982848, -0.1269955933, 0.084112078, -0.5294069648, -0.0348445475, -0.0058974125, 0.0617949031, 0.0942765698, 0.0456386544, -0.1566915512, -0.0166817717, -0.0648738146, -0.0705244318, 0.3578886986, 0.1826933175, 0.0087101627, 0.318000108, 0.0148989642, -0.0370214768, -0.1153953597, -0.247624442, -0.1400772631, -0.0810338855, -0.1806668341, 0.0882507563, -0.3646002114, -0.2100069225, -0.4426752329, 0.0865502134, 0.2546904683, -0.2744084895, -0.3757109642, 0.0107778041, -0.0295321569, -0.1368325055, 0.0929703489, 0.3709930778, 0.0407094285, 0.3060778677, -0.2777657509, 0.0099571375, 0.744199574, -0.583429575, 0.0964180455, -0.112440072, 0.0488062799, 0.2738865316, -0.4745757282, -0.985858202, 0.2380353808, 0.2644092143, 0.1279472262, -0.4400337934, 0.1439382136, -0.2524217367, 0.099039115, -0.1626116037, 0.2319540679, -0.0170270354, -0.2271024585, 0.0310434736, -0.1964701563 ]
https://github.com/huggingface/datasets/issues/2569
Weights of model checkpoint not initialized for RobertaModel for Bertscore
Hi @suzyahyah, I have created a Pull Request to filter out that warning message in this specific case, since the behavior is as expected and the warning message can only cause confusion for users (as in your case).
When applying bertscore out of the box, ```Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_head.dense.weight', 'lm_head.layer_norm.weight']``` Following the typical usage from https://huggingface.co/docs/datasets/loading_metrics.html ``` from datasets import load_metric metric = load_metric('bertscore') # Example of typical usage for batch in dataset: inputs, references = batch predictions = model(inputs) metric.add_batch(predictions=predictions, references=references) score = metric.compute(lang="en") #score = metric.compute(model_type="roberta-large") # gives the same error ``` I am concerned about this because my usage shouldn't require any further fine-tuning and most people would expect to use BertScore out of the box? I realised the huggingface code is a wrapper around https://github.com/Tiiiger/bert_score, but I think this repo is anyway relying on the model code and weights from huggingface repo.... ## Environment info - `datasets` version: 1.7.0 - Platform: Linux-5.4.0-1041-aws-x86_64-with-glibc2.27 - Python version: 3.9.5 - PyArrow version: 3.0.0
38
Weights of model checkpoint not initialized for RobertaModel for Bertscore When applying bertscore out of the box, ```Some weights of the model checkpoint at roberta-large were not used when initializing RobertaModel: ['lm_head.decoder.weight', 'lm_head.bias', 'lm_head.dense.bias', 'lm_head.layer_norm.bias', 'lm_head.dense.weight', 'lm_head.layer_norm.weight']``` Following the typical usage from https://huggingface.co/docs/datasets/loading_metrics.html ``` from datasets import load_metric metric = load_metric('bertscore') # Example of typical usage for batch in dataset: inputs, references = batch predictions = model(inputs) metric.add_batch(predictions=predictions, references=references) score = metric.compute(lang="en") #score = metric.compute(model_type="roberta-large") # gives the same error ``` I am concerned about this because my usage shouldn't require any further fine-tuning and most people would expect to use BertScore out of the box? I realised the huggingface code is a wrapper around https://github.com/Tiiiger/bert_score, but I think this repo is anyway relying on the model code and weights from huggingface repo.... ## Environment info - `datasets` version: 1.7.0 - Platform: Linux-5.4.0-1041-aws-x86_64-with-glibc2.27 - Python version: 3.9.5 - PyArrow version: 3.0.0 Hi @suzyahyah, I have created a Pull Request to filter out that warning message in this specific case, since the behavior is as expected and the warning message can only cause confusion for users (as in your case).
[ -0.1506307572, -0.2975347936, 0.0790533349, 0.0513517894, 0.4647553861, 0.0405766107, 0.197935611, 0.1907866746, 0.1385856122, 0.2084497064, -0.1303773075, 0.2869917452, -0.1275678426, -0.0866210759, -0.123821564, -0.1949993819, 0.1129314452, -0.0918190479, -0.2066622972, -0.1772625595, -0.1680728048, 0.107578598, -0.2270771861, 0.0877470672, -0.2647551596, 0.1180239692, 0.1158172339, 0.3999867439, -0.0279441699, -0.549696207, 0.4129525125, -0.1024808511, 0.1832323074, 0.4321974516, -0.000118405, -0.0350616276, 0.2312027067, -0.0642960593, -0.0272500068, -0.1799429208, 0.071415171, -0.2153261304, 0.190790236, -0.0851068944, 0.0962506905, 0.1106524691, -0.0638513714, -0.0977281481, 0.2969878614, 0.0147007238, 0.1060961261, 0.5801303983, 0.0915245563, -0.2033588141, 0.0562142394, -0.2434059083, -0.0107167466, 0.7996893525, -0.1194131002, 0.0211140104, -0.1755491793, 0.3603535295, 0.0470003113, 0.4131554365, 0.2314980626, -0.0450549014, 0.145859763, -0.0140759898, -0.2861913145, 0.3633509576, -0.0495931767, -0.0992546454, -0.1434774697, -0.1704609692, 0.1701108664, -0.3235529661, 0.1518209279, -0.0207380205, -0.0049407482, 0.1767667979, -0.1856808662, -0.0096387723, 0.0392066352, -0.0255859122, 0.1122340634, -0.1080647409, -0.3088821173, 0.0715796798, 0.5233255625, 0.0219151881, -0.5161139369, 0.0442518368, -0.0158391036, 0.105024986, -0.2215554267, 0.0371878892, 0.2768487036, 0.355640769, 0.2921356857, -0.0516099297, 0.1328827739, 0.0495797172, -0.1677490026, 0.0735968351, 0.0619301982, 0.3298573494, -0.0936578438, -0.1504181772, 0.185450986, 0.4818684757, 0.2026163638, -0.1468578577, -0.1522711366, -0.1516355127, 0.1331293583, -0.01341045, 0.051586058, -0.1503575146, -0.4884827733, 0.029397795, -0.0861962885, -0.2325774133, 0.4540869296, 0.2400122434, -0.0287973788, 0.1914058626, -0.2195282727, 0.3667710423, -0.1675242186, -0.0024102656, -0.2121832669, 0.0200955439, -0.5994924903, 0.0451912507, 0.1670408547, -0.521114409, 0.4407986403, 0.0861021355, 0.4616362453, 0.0439056344, -0.1134125218, -0.1241903007, 0.1050330997, 0.3450677693, 0.0275232065, 0.2916051745, 0.3321641684, 0.2506282628, -0.1550838351, -0.0865119994, -0.3208598495, -0.4442726076, 0.3166170418, 0.0127651021, -0.1209733337, -0.0538566187, -0.6307352185, 0.1684767455, 0.0612264387, 0.05870983, -0.0680128634, 0.1115409657, -0.1867160648, -0.0145881074, 0.3714066148, 0.5238426328, -0.5235712528, -0.2953404486, 0.0224873926, -0.0566584021, 0.3146736324, 0.4856598675, -0.240375489, 0.2253065705, -0.1106557995, -0.1308023632, -0.0051896819, -0.324064374, -0.1994789988, -0.0552029721, 0.1629430652, 0.0029754455, 0.1301810294, -0.4134733677, -0.5584424138, -0.1973028034, 0.1586219519, -0.1974612325, 0.0787227526, 0.0256367903, -0.2331428081, -0.2044687867, 0.0141702434, 0.240786925, -0.1170873791, 0.0346447676, -0.1564633846, 0.0461318195, -0.0578324907, -0.1170396581, -0.0120322229, -0.1053554565, 0.1301750243, -0.169634074, 0.0152139189, 0.1239438131, -0.0621880479, 0.2335906178, 0.1463427544, 0.084613584, 0.2386510372, 0.0692475364, -0.2949137986, -0.0895641968, -0.0579358153, -0.0117454417, -0.0491658673, 0.0096054887, 0.0147502813, 0.043158289, -0.4249891639, -0.2600964606, -0.4469785988, 0.1492614001, -0.0618762635, -0.0507431589, -0.0595061705, 0.0249605365, 0.0614042766, 0.2770501077, -0.0201047361, -0.1134727672, -0.0162946694, 0.3425477147, 0.0704257414, -0.1281539649, 0.2877135873, -0.0041894563, 0.1435242891, -0.0778609514, -0.0890886784, -0.1550527364, 0.0574503317, 0.0166233853, -0.1131714657, 0.3734733164, 0.020065302, 0.0996994004, 0.0735729337, -0.068698369, 0.1884988844, 0.03055555, 0.0090345582, -0.2739718258, 0.1552572995, 0.1375311911, 0.4346505702, -0.1644023061, -0.1481812149, -0.4836677313, 0.0090098605, 0.0718985349, 0.0309541728, 0.206699729, -0.2137859613, 0.0322792009, -0.1540060341, -0.3394295871, 0.4418453574, 0.075738728, 0.1317079663, -0.0668469891, 0.0565904155, -0.228373602, -0.0916005597, 0.3643068969, -0.0837101415, 0.1223227158, -0.0144599099, 0.0050253533, -0.2743747532, 0.11039906, 0.0533315055, 0.1116016507, -0.4886286855, 0.2111945301, 0.0160643756, 0.2075065821, -0.2277431786, -0.5473070741, -0.1978654414, -0.1674135923, 0.110887751, 0.0035507861, 0.0155517515, 0.2458347082, 0.3519876301, 0.5763664246, -0.0105391666, 0.1820793748, -0.3252360225, 0.0379518382, -0.0824351981, 0.0348154604, 0.0212813262, -0.1395523548, -0.0369862393, -0.2842596471, -0.0685695112, 0.1353870779, -0.3167824149, 0.1629515439, -0.3225496709, 0.4349202216, 0.3414089382, -0.0739269257, -0.1379301697, -0.241277948, 0.3552576005, -0.1737671196, -0.0142200477, -0.0459674411, -0.1685474366, -0.0038150975, -0.0415972732, -0.0552914888, -0.0487064235, -0.1575495005, 0.1859256476, 0.2891165018, -0.1052071452, -0.1152040437, 0.1889695674, 0.2362824231, -0.3005893826, -0.1001728326, -0.2634637058, -0.7119252086, 0.3826666772, -0.1397303641, -0.2567563057, -0.1022109762, 0.0898858532, 0.4123458564, -0.4059276879, -0.320548147, -0.4146139622, -0.0838827193, -0.0104266917, 0.1121121272, 0.3206906319, -0.1259180009, -0.1657731831, -0.0424434952, -0.1663164049, -0.0597807392, 0.0870640948, -0.2837341428, 0.3143175244, -0.3372662365, 0.2276598662, -0.2759479582, 0.9847340584, 0.2884804606, -0.232609421, 0.6071634293, 0.1287950277, 0.335627079, -0.2486672848, -0.1645041257, 0.0805718899, -0.0062946104, 0.3026953638, 0.2106639594, 0.0329565108, 0.2064099461, -0.1247751415, -0.2830568254, -0.0179489553, -0.2100505382, -0.051495906, 0.1163404956, -0.0407660678, 0.0494884998, -0.1192304045, -0.0830015466, -0.0948126838, 0.2419174165, 0.3854702711, 0.151019603, -0.1535047144, -0.1704183966, 0.0412963703, -0.6059464812, 0.2302507758, -0.1467320472, -0.069924064, 0.1800374538, -0.2958260179, 0.1627700031, 0.1540587544, 0.3248288035, 0.1494270712, 0.0431981087, -0.229682371, 0.0439066142, -0.1999868453, -0.0090321479, -0.2797452211, -0.0904327556, 0.551862061, 0.3548371792, -0.4318064153, -0.126186952, 0.152872324, -0.0610856675, -0.0218942203, -0.2179817259, -0.5934868455, 0.0278047957, -0.1854323, 0.2032898813, 0.0351574309, 0.1893445104, -0.0960711911, 0.2732435763, -0.0187799651, -0.1408814788, 0.2616776824, 0.2927852571, 0.1352366507, 0.1493749171, 0.249137789, 0.4505409002, 0.0821150541, 0.5949651599, 0.6329040527, -0.1401259601, -0.3148522079, 0.1595424116, 0.2627014518, 0.1785632968, 0.2328166664, -0.0730758011, -0.0564230569, 0.1428257078, 0.3662604988, -0.381834656, 0.2371984869, 0.3204714954, 0.1241932437, -0.1649456769, -0.1584484428, 0.4748919606, 0.0454469658, -0.061703898, 0.0083015617, 0.3129752874, -0.0089519667, 0.1839712113, 0.1459767222, 0.8244400024, -0.0699427351, 0.2399157137, 0.3293839991, 0.420250386, 0.3364491463, 0.0560557544, -0.0588700026, -0.127472192, 0.0277731419, 0.0196378864, -0.0679953396, 0.1738187522, 0.0013340906, -0.1454504579, 0.361759305, -0.217655912, -0.0577368215, -0.296980232, -0.0312655121, -0.1756339669, -0.2734863162, -0.3289922476, -0.0107204756, 0.1990985721, 0.4005933702, -0.0305470973, -0.0526187569, 0.0823784992, -0.2989166975, -0.0793270469, 0.0563018769, -0.0462608784, -0.1133681536, 0.3503372073, 0.0046777371, 0.285546273, 0.0208187271, 0.6671977639, 0.0981376842, -0.2601708472, 0.3924070895, 0.0511793755, -0.0457672477, -0.1384092122, -0.04499745, 0.2247894853, 0.0273372866, -0.1969130486, -0.0282542873, -0.0863887966, 0.0070138597, -0.2205929011, -0.0307059512, 0.2182726562, -0.4100443125, 0.0399593636, 0.1802455187, 0.2025478035, -0.1137859449, 0.0380155481, 0.0732400119, -0.0505748391, 0.1269162148, 0.1035781056, -0.2443879694, -0.1462872177, 0.4675119817, -0.3212059736, 0.0544711202, 0.4901282787, -0.1703802049, -0.1374826282, 0.0577413626, -0.216957286, 0.7585762143, -0.7254887223, -0.009793763, 0.4498120844, 0.1767358184, 0.2023479491, 0.4736378491, 0.4459120631, -0.1422869116, -0.0326175801, -0.2269625366, -0.2666092217, 0.126862213, -0.1752670705, -0.0224275813, -0.1089374498, 0.1597596854, 0.0577914566, 0.3241814077, -0.2059388012, 0.170991078, 0.0463718288, -0.08932212, -0.1259392798, -0.0153221441, 0.5025228262, 0.1386447698, 0.000615801, 0.0289895628, -0.2684347332, -0.0892338827, -0.4054854512, 0.1571566314, -0.0036496576, -0.2023523748, 0.0257349387, 0.038716916, -0.0907379091, -0.2082269192, -0.0270165093, -0.1116169766, 0.0785922408, -0.123619549, 0.5146753192, 0.0623302683, 0.0086634923, -0.143071413, 0.0994517505, 0.0090995114, 0.1324455291, -0.2453327179, -0.1330107599, -0.0814004168, 0.1160520986, 0.0345562212, 0.2790313661, 0.0890143216, -0.0414735936, 0.0757666305, -0.042821601, -0.113996774, 0.3317843676, 0.276426971, -0.113379471, -0.2586684823, 0.2536018789, 0.0940287709, -0.2695654333, -0.0959033072, -0.1607607305, 0.3303251565, 0.0078530116, 0.183162272, 0.1774290949, 0.2701611221, 0.0747517943, -0.0377350338, -0.0785817802, -0.0005333675, -0.0852170065, 0.1470086128, -0.1624280512, 0.1945865899, 0.7594561577, 0.2029121667, 0.3006825149, 0.2762670219, -0.148109287, 0.4754820466, -0.3361108601, 0.0757345557, -0.2649820745, -0.6027317643, -0.096219711, 0.2004273534, 0.0449578539, -0.1512367129, -0.0951133966, 0.7941792011, -0.1164689064, 0.0091476133, -0.2164342552, 0.1690709591, 0.023278214, -0.5665177703, -0.1921995133, -0.1465445012, 0.0981670618, -0.0266947597, 0.0336826779, -0.0354318693, 0.3262623847, -0.0325412415, -0.0700090975, -0.2572219074, -0.6853574514, 0.244031474, 0.2412666976, -0.0417252965, 0.0630861893, 0.3763275743, -0.1548973471, 0.2460983545, 0.4070381224, 0.4606927931, 0.153518036, 0.2155493051, -0.1659934372, 0.0658781826, 0.1538671702, -0.165447548, 0.4261155128, 0.3403891325, 0.1815126985, 0.1295979172, 0.0511617437, -0.1931253374, 0.197388351, -0.2678561211, 0.4426291883, -0.213101238, 0.4483056366, -0.2437182814, 0.1948982179, -0.3682036698, 0.1679106504, -0.3469513953, 0.6887559891, 0.1995064765, -0.0317157507, -0.0457601883, -0.2536661625, 0.0153081007, 0.1602554172, 0.5332731605, 0.2655240595, -0.1902428716, -0.6655282974, -0.028383676, -0.6237754226, 0.1466349363, -0.0807163045, 0.310687691, -0.0688114837, 0.0719399378, -0.0749487728, 0.200254932, 0.0032363338, -0.4071138501, -0.1927724779, -0.0897806808, -0.2040927708, 0.0571960136, -0.525799036, -0.088462621, 0.0108547499, 0.0079263924, 0.1253990233, -0.0568901338, -0.097734727, -0.0592693239, -0.0506395102, -0.0246367585, 0.413061887, 0.2529040277, 0.0334225148, 0.3423549831, 0.0045937379, -0.0214177594, -0.120985575, -0.2568950355, -0.1487036943, -0.0593316406, -0.1564585865, 0.0970749706, -0.2969246209, -0.1412886828, -0.4015669525, 0.1055994481, 0.1789361537, -0.2523508966, -0.3688321114, 0.0523613952, 0.0418276116, -0.0956951752, 0.0365741365, 0.3607119024, 0.0672344938, 0.3435560763, -0.3030108213, -0.0911936536, 0.7570114732, -0.5725851655, 0.079063274, -0.1314104646, 0.074084349, 0.2822536528, -0.4676660895, -1.0831582546, 0.2719723284, 0.2745970488, 0.1263021827, -0.4521117508, 0.162684679, -0.2787551284, 0.1043329313, -0.1492418796, 0.2096952349, -0.0098472331, -0.352124393, 0.0244113356, -0.226633057 ]
https://github.com/huggingface/datasets/issues/2561
Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True`
Hi ! I just tried to reproduce what you said: - create a local builder class - use `load_dataset` - update the builder class code - use `load_dataset` again (with or without `ignore_verifications=True`) And it creates a new cache, as expected. What modifications did you do to your builder's code ?
## Describe the bug If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets. ## Steps to reproduce the bug - Create a local dataset builder class - load the local builder class file using `load_dataset` and let the cache build - update the file's content - The cache should rebuilt. ## Expected results With `ignore_verifications=True`, `load_dataset` should pick up existing cache. ## Actual results Creates new cache. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid - Python version: 3.7.7 - PyArrow version: 3.0.0
51
Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True` ## Describe the bug If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets. ## Steps to reproduce the bug - Create a local dataset builder class - load the local builder class file using `load_dataset` and let the cache build - update the file's content - The cache should rebuilt. ## Expected results With `ignore_verifications=True`, `load_dataset` should pick up existing cache. ## Actual results Creates new cache. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid - Python version: 3.7.7 - PyArrow version: 3.0.0 Hi ! I just tried to reproduce what you said: - create a local builder class - use `load_dataset` - update the builder class code - use `load_dataset` again (with or without `ignore_verifications=True`) And it creates a new cache, as expected. What modifications did you do to your builder's code ?
[ -0.3804820776, 0.4886573255, 0.0326323584, 0.1935643703, 0.1446635276, 0.150725916, 0.319269985, 0.3748852611, 0.1290489882, 0.218332082, 0.2149605453, 0.363037169, 0.1198909357, -0.2817021608, 0.0510922149, 0.2790058553, 0.1163432673, 0.143495813, 0.2144533694, -0.07715635, -0.0282793585, -0.0800594911, -0.0401379243, -0.2102088183, -0.4505547285, 0.1976114661, 0.0528687835, 0.0853827521, -0.040551655, -0.4662294984, 0.3908792734, 0.2441874146, -0.0562271588, 0.2653213441, -0.0001090661, 0.1760649681, 0.3208662868, 0.0526437387, -0.3978688717, 0.1389083564, -0.3474240303, -0.4606622458, 0.0223903768, -0.0884898454, -0.2164719254, -0.2490846515, -0.1407257766, -0.191591084, 0.303566426, 0.0564858653, 0.2780434489, 0.0750865638, -0.1023396775, -0.0168681443, 0.1199553311, -0.0507757738, -0.0536154844, 0.1609926373, 0.2253709584, 0.0361663252, -0.4304831028, 0.3174603581, -0.1896672994, 0.2203767449, 0.4303052425, -0.0973286852, 0.1611030549, -0.0093296263, 0.3773486316, 0.0414984338, 0.5871433616, -0.3299912214, -0.2986133099, -0.2611526251, -0.1944371313, -0.0155705623, 0.2321198881, -0.1832692027, -0.2992417514, 0.1735040396, -0.4138678908, -0.270740658, 0.0678330809, -0.1559706926, 0.0528808199, -0.2511188984, 0.0992152169, -0.0926116481, -0.0893778428, 0.1688513756, 0.4349326491, -0.468609035, -0.0739732087, 0.2702963948, -0.4989156425, 0.0219633207, 0.3845902681, 0.3972645104, 0.2384095788, 0.3022896647, -0.1899261624, 0.2409280837, 0.1860507429, 0.0968386903, -0.0826028883, 0.3067311347, 0.0410078689, -0.0109666754, 0.2831627429, 0.2031199783, -0.5477039814, -0.0137984827, 0.0638631582, -0.2574613988, 0.5983968973, -0.0898955688, 0.0680671483, -0.328872174, -0.031649407, 0.1889808625, -0.0006034499, -0.1473225206, 0.2239471078, 0.2570386231, -0.1294849664, 0.0850457028, -0.2500114441, -0.2127597779, -0.3465074897, -0.3544659615, -0.3988962173, -0.2386136651, 0.0201397035, 0.3679381907, 0.4855266213, -0.5491022468, 0.3118241131, 0.2401126325, -0.0615111925, 0.0796844736, 0.175348565, -0.136171639, 0.1791893691, 0.2202347964, -0.2889446318, 0.0660594106, -0.0249983482, -0.1994284838, -0.0721066147, 0.340828985, -0.1144278124, -0.7981069684, 0.0093574496, 0.1745112836, -0.2340956479, 0.0518298, 0.2836399972, 0.1155551076, 0.4194815457, -0.306530267, -0.130264312, -0.0479082949, -0.2993507087, -0.1270206273, 0.4868236482, 0.6713588834, -0.4300762117, 0.0946415067, -0.1242254749, 0.0880809575, 0.004568655, 0.154188484, -0.321501106, 0.4164040387, -0.2850262821, -0.4484736621, 0.2019234151, -0.2974615097, -0.8293768764, 0.2752149105, 0.1786655635, 0.2141062617, 0.1349743754, 0.039904125, -0.0856210515, -0.1601605713, 0.0979908779, 0.2460225374, -0.2004422694, 0.0236596055, -0.4308622181, -0.1939276755, 0.0640483201, 0.074033089, 0.0089768106, 0.2423089743, 0.0550842024, 0.1132430583, 0.0285034645, 0.0087900367, 0.1342498958, 0.383466661, 0.1400845647, -0.1290519089, 0.2051851302, -0.1118595749, -0.454425782, 0.4190019369, -0.2235327959, -0.1305978149, 0.0498482957, -0.299634099, -0.1256817132, -0.0823091045, -0.4173099399, -0.2251386344, 0.1377798468, 0.1733630896, 0.4545212686, -0.0684813261, -0.1343210042, 0.2744275033, -0.1714828908, 0.1598848403, -0.0228320528, -0.0699826926, -0.0787651837, -0.0692964122, -0.3138264418, 0.0410868712, 0.114175491, -0.0592819564, -0.222573027, 0.2792674899, 0.0170242377, 0.094357349, 0.0013862023, 0.1983225346, 0.0460142158, 0.1652133167, 0.1288754344, -0.1250753999, 0.0781466961, -0.0983779728, -0.0527023785, 0.0726590306, 0.2021351457, 0.1724301726, -0.2249978781, -0.3149552047, 0.2511093616, -0.1476520449, 0.0871010274, -0.0884523764, -0.0426744372, 0.0656267256, 0.4767365158, 0.2285358757, -0.0164817553, 0.1682708114, 0.4884266257, 0.2000714839, -0.291483134, 0.0221243035, -0.1331481636, -0.2133836299, 0.1711709499, 0.3344315886, 0.3634786308, 0.1734693646, 0.2099325508, 0.0661091805, -0.0327122398, -0.1634075195, 0.0613575988, -0.111858435, -0.1488317698, 0.4112389386, 0.3244155347, 0.1536158472, -0.3777529597, 0.2912766635, 0.1497382969, 0.1518626958, -0.0133893974, 0.173428908, -0.4750730395, -0.1118078381, -0.1549555957, 0.1557513326, -0.3087695539, -0.1850286424, 0.1412914693, 0.1024342924, -0.004462067, 0.2299692333, -0.0596315712, 0.3149350882, 0.0060207769, -0.5304799676, -0.3073922992, -0.0541435517, -0.4707733393, -0.0123457834, 0.4609993994, -0.24269858, 0.2919668555, -0.2242352515, -0.0838989392, -0.2026256025, -0.2120322436, 0.0953062549, 0.1066367775, 0.4123834372, -0.1788085699, -0.0082733734, -0.0438166, 0.029702127, 0.2912224233, -0.1716905385, -0.1785907596, -0.1113300249, -0.088352561, 0.1494501829, -0.2810602784, -0.2027481794, 0.0114694098, -0.3783390224, -0.1207697764, 0.1415111721, 0.0631861985, 0.1967853755, -0.0582330562, 0.1748852432, 0.0205824804, 0.1483394504, -0.2669382393, -0.6465250254, 0.2283109725, -0.2430547327, -0.0668884069, 0.0384102836, -0.3015870452, 0.1177911609, -0.0815824941, -0.4913433492, -0.0105527807, -0.455891192, 0.3086243868, -0.0715981871, 0.044475466, 0.4206598103, -0.0024626825, -0.0336007737, -0.1908629239, -0.3150301874, 0.1238765344, -0.158140108, 0.3299717009, 0.054192856, -0.0427865721, 0.1322251409, 0.5684074759, 0.1453552097, -0.0803416818, 0.3159600496, 0.1188295633, 0.4034345746, -0.3024226129, -0.2068281472, 0.0561798699, -0.0480521992, -0.2586323321, 0.0179702062, 0.0922229737, 0.0153531563, -0.1323778778, -0.0241404064, 0.022135932, -0.2735556662, 0.0025215454, -0.3864327967, 0.2015068233, 0.4415506124, 0.1765921861, -0.1888560504, -0.1416998804, 0.1498920768, 0.2254769802, 0.1601370573, -0.0456882417, 0.0659561232, 0.2351465374, -0.3701852858, 0.1026784182, 0.0984814614, -0.0682752207, 0.0720153525, 0.0008158305, 0.2745982707, -0.0770791993, 0.2790737748, -0.4338409901, 0.0234025195, 0.2077313364, -0.0449022204, 0.0446941331, -0.2526711822, 0.2096980214, 0.2986282408, -0.1504013389, 0.2786416411, -0.0400714502, -0.2590217888, 0.0644094795, 0.3787698448, -0.1512273252, -0.4095374346, -0.2608660758, 0.008099013, -0.1622665375, 0.0933758244, -0.1808727384, 0.2914334536, -0.0097645558, -0.0358067304, -0.1010072306, 0.3268056512, -0.170363605, 0.0109590562, 0.2811039388, -0.1458041072, 0.3419133723, 0.0604262315, 0.0640217885, 0.1709908396, 0.4756254256, -0.0876850709, -0.208173573, -0.1658851206, -0.0252959188, -0.0827368498, 0.2340686023, -0.0805177763, -0.1607118696, 0.2102659494, -0.0868855789, -0.0937162191, -0.0870414078, 0.0128915105, -0.0236866679, 0.0838645771, -0.4713276029, 0.1676434726, 0.1242036596, -0.0518052988, 0.3790417016, -0.2187289745, 0.0275237933, 0.2006245852, 0.1142492071, 0.6171653271, 0.1221160367, -0.0726750046, 0.0029368547, -0.2452916503, 0.341504842, -0.3462284803, 0.2468890697, -0.2816812992, -0.280346036, 0.1727064103, -0.1924581379, 0.2364640832, 0.0897735953, -0.0701670572, 0.133621648, -0.0885070264, 0.2817085683, -0.0107069649, 0.228552416, -0.1176190451, -0.144478932, -0.0195713956, 0.2138469219, 0.0124853244, 0.3353182673, -0.0582601875, 0.0159010198, 0.1801532954, -0.0808224604, -0.1948032528, -0.12313319, -0.1186830625, 0.0012881709, 0.2840402722, -0.2037241906, 0.0151564423, 0.0649263337, 0.229674235, 0.1114736497, -0.1871330887, 0.1602968425, 0.1367703825, 0.3419644535, -0.1230107024, -0.2972230315, 0.3527775705, -0.0682599768, -0.1647280753, -0.1953944266, -0.5220222473, -0.4138986468, 0.2600608766, 0.1896181256, 0.312199086, 0.0780324787, 0.1004078835, -0.0140931197, 0.286942631, -0.2069869041, 0.2122659534, 0.1076693833, -0.1670370102, 0.1476464421, -0.339902997, -0.2350500822, -0.0520667844, 0.3169326186, 0.2246975005, -0.1340263188, 0.4436526895, -0.2458903342, -0.0958601162, -0.1339605898, -0.0281457398, 0.1562253237, -0.2629678249, -0.0357551984, 0.042579703, 0.0624863803, 0.1657258868, -0.0400655307, 0.0600909963, 0.0544879474, -0.3269217908, -0.1526604444, -0.3810037374, -0.2966786921, -0.1081871316, 0.0335305072, 0.0041416041, -0.0133239273, 0.2901390791, 0.3709747791, -0.3479487896, -0.077755183, -0.2537521422, 0.1006595269, -0.3202536106, 0.1699167043, 0.0737234354, -0.0583095066, -0.0165355951, 0.0942819864, -0.3026224673, -0.2772940695, -0.0129697863, 0.1127233282, 0.0548070818, 0.2695972025, -0.1076488718, 0.0404744484, 0.0232927725, -0.0481973737, 0.2192637473, -0.1349798292, -0.1380729675, 0.2205073088, 0.1599505693, 0.3212195635, -0.0997259468, -0.0877701119, -0.1191570312, 0.2350642532, 0.0335854292, 0.0239467621, 0.036862798, -0.0175102875, 0.1461347789, -0.0298808981, -0.1513529122, 0.1505281031, 0.2623205781, -0.2599428892, 0.0070399451, 0.3197335601, 0.2233689129, 0.1086497456, 0.0006464952, -0.1364182681, 0.3405463994, 0.2584251165, -0.1966732889, -0.2378263772, 0.3885470629, -0.0508068055, 0.0853365138, -0.0145693664, 0.4374085665, -0.2111657858, 0.2243072242, 0.1498714685, 0.2936812043, -0.4318628013, 0.0127437264, 0.3747749925, 0.1390732229, 0.0621826686, 0.2875869274, 0.0014001258, 0.0061588068, 0.5597172976, -0.0744697452, 0.1425116211, 0.00427625, 0.2571488023, -0.1812986135, -0.5544176698, 0.4394112229, 0.1259935498, -0.1168916076, -0.1993805319, -0.2302351743, 0.2791204154, 0.1457984596, -0.2319586277, -0.1967095137, 0.1830404848, -0.3216514885, 0.0736051649, 0.0673253387, -0.060989555, 0.142952159, 0.1117720455, 0.1691097468, 0.1647929698, 0.2556158006, -0.1488612741, -0.134092316, -0.2487913519, 0.1285081208, -0.0155018112, 0.0161444712, -0.0873766616, 0.2900003195, 0.0014363822, -0.1904771328, 0.0177699365, 0.4018319249, 0.247194767, 0.2909375131, -0.0528565608, 0.1229540035, -0.2008674294, 0.0174717009, -0.4287213981, 0.3778693676, -0.2583729625, -0.2916316092, 0.2562729418, 0.068200998, -0.1824137419, -0.0073564965, -0.1421475857, 0.1414722353, -0.5035199523, 0.3143914342, 0.3248209357, -0.0379744023, -0.0030622536, 0.1779228747, -0.1650943756, -0.1860361248, 0.4572028518, -0.0709722117, 0.0209457483, -0.3190405369, 0.1192361489, -0.2245953828, 0.5049153566, 0.26606071, 0.0646056235, -0.2951208651, -0.1944385916, -0.7159308791, 0.2183600813, -0.085248515, 0.2858007252, 0.1396150738, 0.232376501, -0.1937197745, 0.1679181904, 0.0035755422, -0.0542436242, 0.2418109179, 0.0408342443, -0.2626481652, 0.15869838, -0.0982364118, -0.2893233895, -0.0120388074, -0.3866192102, 0.4166207314, -0.1746984571, 0.1220314354, 0.2381948084, -0.1944959015, 0.4156763554, 0.2763544917, 0.3132995069, 0.2699009478, 0.0833804458, 0.1488390267, 0.072217755, -0.1836619079, 0.2596639693, -0.2895089686, 0.1402834654, -0.2510017157, 0.096306026, -0.4065718949, -0.1825556755, -0.3155360222, 0.3408100009, 0.0981945395, -0.0447468683, -0.0821549371, -0.1506190747, -0.2725712359, 0.3956178427, 0.284960568, 0.0411714762, 0.0760044679, 0.0999493524, -0.4842994511, -0.0423127413, 0.3631962538, -0.3208839297, -0.2423744053, -0.2733336985, 0.3320650458, -0.0275918022, -0.3213027716, -0.1497493088, 0.0142922141, 0.3661474288, -0.0442024134, 0.0851750374, 0.2846249044, -0.1038479432, 0.4637130499, -0.0950280875, -0.1761485189, 0.0414662436, 0.1291505992, -0.0996755064, -0.1462929994 ]
https://github.com/huggingface/datasets/issues/2561
Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True`
Hi @lhoestq. Thanks for your reply. I just did minor modifications for which it should not regenerate cache (for e.g. Adding a print statement). Overall, regardless of cache miss, there should be an explicit option to allow reuse of existing cache if author knows cache shouldn't be affected.
## Describe the bug If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets. ## Steps to reproduce the bug - Create a local dataset builder class - load the local builder class file using `load_dataset` and let the cache build - update the file's content - The cache should rebuilt. ## Expected results With `ignore_verifications=True`, `load_dataset` should pick up existing cache. ## Actual results Creates new cache. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid - Python version: 3.7.7 - PyArrow version: 3.0.0
48
Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True` ## Describe the bug If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets. ## Steps to reproduce the bug - Create a local dataset builder class - load the local builder class file using `load_dataset` and let the cache build - update the file's content - The cache should rebuilt. ## Expected results With `ignore_verifications=True`, `load_dataset` should pick up existing cache. ## Actual results Creates new cache. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid - Python version: 3.7.7 - PyArrow version: 3.0.0 Hi @lhoestq. Thanks for your reply. I just did minor modifications for which it should not regenerate cache (for e.g. Adding a print statement). Overall, regardless of cache miss, there should be an explicit option to allow reuse of existing cache if author knows cache shouldn't be affected.
[ -0.296610266, 0.4845600128, 0.0497075468, 0.1848860383, 0.0803923681, 0.2186553478, 0.282461524, 0.3745070696, 0.1949125379, 0.1779459566, 0.2753896713, 0.354469955, 0.0864099339, -0.251421392, -0.0044402927, 0.2905792296, 0.0580529571, 0.1453521997, 0.185672015, -0.006389664, -0.0618959032, -0.0590819269, -0.0472508483, -0.2655094564, -0.4217762649, 0.1886301339, 0.0811306387, -0.0028491942, -0.0397528149, -0.4942775965, 0.4173814952, 0.2595972121, 0.0410103127, 0.1719833612, -0.000109742, 0.1775733978, 0.2939722836, 0.0204253271, -0.3915859163, 0.1280864328, -0.3183542788, -0.3609194756, -0.0150635699, -0.1168083996, -0.1470689774, -0.2058144957, -0.0759645328, -0.3138150871, 0.3438759148, 0.0339676626, 0.2579466999, 0.0727290213, -0.1777896881, 0.0051542842, 0.0632820427, -0.0600984246, -0.0318002962, 0.1550073326, 0.3051302433, 0.0462081656, -0.3910075724, 0.4045751095, -0.2028277665, 0.1022235602, 0.4206959009, -0.2342661172, 0.1239169091, -0.0326369479, 0.3514981866, 0.0883088782, 0.628064394, -0.3615947366, -0.2906778157, -0.280444473, -0.1889220476, 0.0089403531, 0.1707503349, -0.2470253706, -0.1697721779, 0.2825196683, -0.410295099, -0.3994596601, 0.0205435846, -0.161759302, 0.2046760619, -0.2736329436, 0.084163934, -0.0900347084, -0.1739295721, 0.2221589237, 0.4534494281, -0.4566788077, -0.0571202859, 0.2458971739, -0.4898162782, 0.0414769053, 0.3280723691, 0.3956190944, 0.270419687, 0.3395017982, -0.0873380825, 0.2306833714, 0.1428930759, 0.1323718727, -0.0760941133, 0.3461061716, 0.0449286401, -0.0047850045, 0.234240368, 0.2124479562, -0.4609408677, -0.0363111198, 0.0972765535, -0.2108419836, 0.5844724774, -0.0553591773, 0.0181643795, -0.3203703463, -0.0643923208, 0.236291945, -0.0352351889, -0.1552270949, 0.1838337332, 0.1808868051, -0.0278259162, 0.2197251171, -0.1585137397, -0.1871968955, -0.2385391593, -0.4174994528, -0.3815180659, -0.205673784, 0.0255202651, 0.3334383368, 0.4631286561, -0.4986813366, 0.3289691806, 0.2453931719, -0.0809455663, 0.0382737368, 0.2030309886, -0.067565307, 0.1907198876, 0.2264157087, -0.3242383003, 0.0466673635, 0.0138498358, -0.1422076672, -0.0683887899, 0.3774855435, -0.105539985, -0.7720668316, 0.0577213019, 0.1467434168, -0.2308305651, 0.059776973, 0.2950685322, 0.0941422209, 0.4354887903, -0.3047127426, -0.071497336, -0.039928671, -0.2986984253, -0.1711076945, 0.4547199607, 0.7276177406, -0.4251804352, 0.0580197163, -0.0966184661, 0.0903697237, -0.0047410023, 0.1897813976, -0.2760146558, 0.3597525954, -0.3368425071, -0.4499465823, 0.1937785596, -0.3304957151, -0.7936916947, 0.2364365906, 0.2361168265, 0.2683827281, 0.1507766396, 0.0912846774, -0.130357489, -0.1721945852, 0.0760542899, 0.2031330317, -0.2156374305, -0.0670440197, -0.4511632323, -0.2889776826, 0.0535788387, 0.0131588541, 0.0885532051, 0.3096219599, 0.0585949346, 0.1182935163, 0.0537007786, -0.002938184, 0.1418868005, 0.2921987772, 0.1424277127, -0.186285004, 0.1863691062, -0.1150948852, -0.4901277423, 0.4268355966, -0.2512300909, -0.2352855206, 0.0420518443, -0.302215457, -0.1098713055, -0.1406946629, -0.3829509616, -0.2034126669, 0.123507686, 0.2031828612, 0.4170444012, -0.0460985005, -0.1830383092, 0.3019634783, -0.2747033536, 0.176145196, -0.0656105727, -0.1344091445, -0.0913842842, 0.0057709399, -0.3230373561, 0.0396360978, 0.1474547237, -0.0976058245, -0.1709593982, 0.278971225, 0.0086257048, 0.1368508786, -0.0129123582, 0.2477177531, 0.0481239222, 0.1332278997, 0.0803827569, -0.1950086802, 0.0764136687, -0.075248681, -0.0221904051, 0.0555429049, 0.1095236018, 0.0519844256, -0.2265175879, -0.320517242, 0.2170549333, -0.2078903317, 0.0622808821, -0.1489881873, -0.0719796941, 0.089927949, 0.4432956576, 0.1769197434, -0.0288114659, 0.1514397562, 0.3761358559, 0.2306365669, -0.2651818395, -0.0584278852, -0.0324976481, -0.2006670088, 0.2052026242, 0.4338602424, 0.2664704025, 0.1773048341, 0.237342611, 0.0573744141, 0.0024193798, -0.1575554758, 0.0431733243, -0.1791936755, -0.1714891046, 0.4472450018, 0.2646684945, 0.2256841063, -0.365745604, 0.3604893684, 0.1917816997, 0.17415604, 0.0068331338, 0.1442462057, -0.4783359468, -0.1179985702, -0.178215459, 0.2390926331, -0.2455628812, -0.2018034905, 0.1303868145, 0.1122717634, -0.0641457811, 0.1965552866, -0.1686370075, 0.367716223, -0.0814802125, -0.5583732724, -0.345939517, 0.0020711597, -0.4155192673, 0.0044739945, 0.4792738557, -0.3283116519, 0.3057935536, -0.2684012651, -0.10867434, -0.2305948138, -0.2436313778, 0.0833075941, 0.1805213392, 0.3112435341, -0.2669362426, -0.0569931045, -0.0704201385, 0.1075666696, 0.1130455062, -0.1787520349, -0.1501227468, -0.1828025579, -0.0643630177, 0.1532536894, -0.3532606363, -0.2649862468, 0.0208953246, -0.3403116167, -0.0538646579, 0.054661613, 0.0128820464, 0.2154654413, -0.1387060434, 0.1285960376, 0.0274690706, 0.1715715379, -0.3066547513, -0.6944125295, 0.2179215252, -0.1704294086, -0.0264714733, 0.0731138363, -0.288946718, 0.1435308009, 0.0199489947, -0.5505861044, -0.0304023996, -0.3796717227, 0.283916384, -0.130203411, -0.0076427525, 0.4433671534, 0.0021887564, 0.0139108421, -0.2255667597, -0.2300459892, 0.1580526829, -0.1709075272, 0.3343121111, 0.0929653719, -0.1266640872, 0.2586103082, 0.5497053862, 0.2341139019, -0.0189250614, 0.3620268404, 0.2053526044, 0.5025869012, -0.2435252219, -0.116385445, 0.0630785227, -0.1085820645, -0.2857515514, -0.0677752122, 0.0894798338, 0.0560045578, -0.1363673657, 0.0104679242, -0.018759219, -0.293415904, -0.0642722324, -0.4409804344, 0.2686773837, 0.4563596547, 0.130165711, -0.1031799465, -0.1059154198, 0.1789331585, 0.316036582, 0.2749325633, 0.0554622337, 0.0449781977, 0.2654495239, -0.3704786897, 0.1303281635, 0.0983079672, 0.0600289293, 0.0849117786, 0.0311316326, 0.1852441728, -0.0033050035, 0.2500496209, -0.5590522885, 0.0235621892, 0.1375411004, 0.0043955557, 0.183459729, -0.2239946574, 0.2630488276, 0.2345826328, -0.1239513978, 0.2270335406, 0.0529048219, -0.1990066916, 0.0187149346, 0.3892873526, -0.1164690927, -0.4054343998, -0.1874207407, 0.0491074771, -0.1712285131, 0.0784710422, -0.0590011254, 0.1518260539, -0.0021437157, 0.0228616018, -0.1453220546, 0.3600174487, -0.1597720981, -0.0199763067, 0.2620857954, -0.0905337185, 0.3267652988, 0.0706417412, 0.0305500254, 0.2073301673, 0.5026633143, -0.200505048, -0.1789025664, -0.1821705848, -0.0325578339, -0.0892441645, 0.2249564528, -0.0973756611, -0.1954542845, 0.2267179936, -0.1740562618, -0.0846359581, -0.1170170307, -0.0445937924, -0.0284843501, 0.0423107594, -0.4739636779, 0.1151126549, 0.1791705191, -0.05623601, 0.3488114476, -0.2945679128, -0.0199165307, 0.1836633533, 0.0458038263, 0.5849225521, 0.0938148275, -0.1063084304, -0.1129326448, -0.261777401, 0.3956879675, -0.3350906968, 0.2682984769, -0.244889915, -0.2729747593, 0.150620684, -0.1687280387, 0.2396329641, 0.1026625559, -0.0605540723, 0.2022615373, -0.0745359212, 0.2639936805, 0.0382416435, 0.2278760821, -0.1351742446, -0.0660478622, 0.0956495777, 0.1695219576, -0.0046300432, 0.3136821985, -0.134343639, 0.0260591619, 0.2740042508, -0.0983225182, -0.2454523444, -0.1350776255, -0.1413998604, 0.0108640715, 0.1976473033, -0.142438814, 0.0825928301, 0.1155971959, 0.2736483216, 0.1074543223, -0.1614093632, 0.1261477768, 0.1274574995, 0.2821274996, -0.1728491932, -0.220459789, 0.399421066, -0.0048010144, -0.1251104921, -0.215690434, -0.5188755989, -0.4346004128, 0.235359624, 0.1876210719, 0.3133314848, 0.0822435766, 0.0446388982, 0.0506643243, 0.2856610119, -0.2207333297, 0.1887083352, 0.1294855177, -0.1102918759, 0.1852195412, -0.4093118608, -0.2512069941, -0.058250919, 0.2818200886, 0.2550121248, -0.2335412204, 0.3360430598, -0.2673620284, -0.0726706833, -0.1185965911, -0.0566902831, 0.0648122132, -0.2145408094, -0.0365526117, 0.0350261517, 0.0648185536, 0.1371730417, -0.089033924, 0.1072423011, 0.0626243725, -0.3028649986, -0.199423179, -0.3694554865, -0.2732175291, -0.1160044223, 0.1117706522, 0.0155842053, -0.0442186631, 0.2239629775, 0.2931734324, -0.326852113, -0.0356396362, -0.2011876255, 0.0778628737, -0.3165006638, 0.2115912586, 0.0781906322, -0.1265774667, -0.0621046908, 0.1234078258, -0.3284883499, -0.2365285456, -0.0045441883, 0.1296793669, 0.1019271985, 0.267626971, -0.1630534381, -0.0343166068, 0.0506565869, 0.0170907956, 0.1799691767, -0.0315656625, -0.0869812295, 0.3448058665, 0.0950810313, 0.3468886614, -0.0890009999, -0.0734966472, -0.1203304827, 0.1932713091, 0.0215043016, 0.0928594694, 0.0224207342, 0.0153670451, 0.1091336533, -0.0546687506, -0.1389501393, 0.1786767095, 0.1755827814, -0.2113981843, -0.0071104709, 0.3065178394, 0.1843283623, 0.0751412958, -0.0144772455, -0.1549145579, 0.3658693135, 0.2336481363, -0.2562910318, -0.2456649095, 0.381750375, 0.0460433327, 0.0581057705, 0.0672456548, 0.515227437, -0.2925961614, 0.3185659051, 0.1348698586, 0.2733684182, -0.4803123474, 0.1180777103, 0.3190512657, 0.1784732789, 0.014569439, 0.2404754609, 0.0797083676, 0.0531541482, 0.4855406284, -0.08296974, 0.1410016268, -0.0101915915, 0.3159425259, -0.1835174412, -0.5806638598, 0.4861351848, 0.1387702376, -0.1531380564, -0.0575714745, -0.2067171186, 0.2538539767, 0.1792436242, -0.2217088491, -0.1657071561, 0.1109395549, -0.3387534916, 0.0691980198, 0.1441843659, -0.1334664077, 0.1394823492, 0.0860454887, 0.1933051646, 0.1997035742, 0.3072155714, -0.1525800079, -0.1720909774, -0.1757914722, 0.1346704811, 0.0232484303, 0.0733008236, -0.1188503876, 0.2348506302, -0.0303566717, -0.2272112668, 0.0028519654, 0.4154132009, 0.1996843666, 0.1992001384, 0.0122237997, 0.1301176101, -0.2028799355, 0.1017636955, -0.4308286011, 0.4320876002, -0.250279516, -0.3689311743, 0.2801715732, 0.0266977176, -0.1133447886, 0.0911170766, -0.1685043871, 0.1127073094, -0.5603574514, 0.3034968674, 0.3499677479, -0.0123248594, 0.0487853177, 0.2230322957, -0.1427257359, -0.1782524139, 0.4750249982, -0.1103388518, 0.0264914632, -0.2779117227, 0.1259624213, -0.1848772913, 0.3783933818, 0.3177625835, -0.0603682101, -0.2719250619, -0.1675005406, -0.7562372088, 0.2122111619, -0.0488383062, 0.3328860402, 0.2007850856, 0.1593892127, -0.1959912926, 0.1406609118, -0.0518375486, -0.0379986614, 0.2316823602, 0.0111094387, -0.203510344, 0.108580783, -0.0687361434, -0.3280594051, 0.0358975418, -0.396586895, 0.3446267545, -0.1365160048, 0.0843564644, 0.2075682431, -0.1935441494, 0.3796265125, 0.273409605, 0.33785972, 0.3590853214, 0.0153124379, 0.1303503364, 0.0188466106, -0.1475566477, 0.2175382525, -0.2528642714, 0.1426429003, -0.2502276301, 0.0500822105, -0.5288494229, -0.2059170753, -0.3160487115, 0.3023277819, 0.130420357, -0.0567556247, -0.1321528405, -0.1284248829, -0.3266019821, 0.4613106549, 0.2988036573, 0.0799179301, 0.0740530938, 0.1341237277, -0.4689100981, -0.0401120819, 0.3417389989, -0.3154910505, -0.1534039676, -0.306591928, 0.3315875232, -0.0630788356, -0.3281742334, -0.2368662655, 0.0108548412, 0.37375772, -0.0634252802, 0.1217782199, 0.3035766482, -0.1761278063, 0.4700823426, -0.0523521937, -0.0707977116, 0.115230456, 0.0913199112, -0.0554489084, -0.1846042722 ]
https://github.com/huggingface/datasets/issues/2561
Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True`
The cache is based on the hash of the dataset builder's code, so changing the code makes it recompute the cache. You could still rename the cache directory of your previous computation to the new expected cache directory if you want to avoid having to recompute it and if you're sure that it would generate the exact same result. The verifications are data integrity verifications: it checks the checksums of the downloaded files, as well as the size of the generated splits.
## Describe the bug If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets. ## Steps to reproduce the bug - Create a local dataset builder class - load the local builder class file using `load_dataset` and let the cache build - update the file's content - The cache should rebuilt. ## Expected results With `ignore_verifications=True`, `load_dataset` should pick up existing cache. ## Actual results Creates new cache. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid - Python version: 3.7.7 - PyArrow version: 3.0.0
82
Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True` ## Describe the bug If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets. ## Steps to reproduce the bug - Create a local dataset builder class - load the local builder class file using `load_dataset` and let the cache build - update the file's content - The cache should rebuilt. ## Expected results With `ignore_verifications=True`, `load_dataset` should pick up existing cache. ## Actual results Creates new cache. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid - Python version: 3.7.7 - PyArrow version: 3.0.0 The cache is based on the hash of the dataset builder's code, so changing the code makes it recompute the cache. You could still rename the cache directory of your previous computation to the new expected cache directory if you want to avoid having to recompute it and if you're sure that it would generate the exact same result. The verifications are data integrity verifications: it checks the checksums of the downloaded files, as well as the size of the generated splits.
[ -0.380987674, 0.4386590719, -0.0031961675, 0.1750698388, 0.0950203314, 0.1552424729, 0.2317516208, 0.4199699461, 0.1590618044, 0.3092048168, 0.1621155143, 0.2830115855, 0.1100005358, -0.2082075626, -0.0321415477, 0.2218123227, 0.0682656914, 0.1848928034, 0.150418818, -0.0182193499, -0.1042757258, -0.0340705477, -0.0095534222, -0.2419546545, -0.4294946194, 0.082960397, 0.0635567531, 0.1601960361, -0.0879584253, -0.4699014425, 0.3021024764, 0.2475569844, -0.1526564807, 0.2725528181, -0.0001049965, 0.1780283898, 0.3562344313, 0.0568510555, -0.4711804092, 0.2416320294, -0.3674046099, -0.4435734153, -0.1549162567, -0.153753832, -0.0183801558, -0.1941012144, -0.114572227, -0.281876713, 0.3508928716, 0.0716104209, 0.2827043533, 0.1405942291, -0.2049484253, -0.0155736413, 0.1999704689, -0.0148219597, -0.028133722, 0.1525066644, 0.1852071136, 0.0982396528, -0.4011556506, 0.3540206254, -0.2052347213, 0.1669312268, 0.3523956239, -0.1947120279, 0.0473333932, -0.0936720967, 0.3847610652, 0.1260736138, 0.5368216634, -0.2587720752, -0.3534723222, -0.249642849, -0.2884818912, -0.0149812484, 0.283867687, -0.1221736893, -0.194598496, 0.157208547, -0.4552614689, -0.232594803, 0.0808340162, -0.2229063958, 0.0629749298, -0.229600504, 0.1435915679, -0.0874814466, 0.0441176854, 0.2234878987, 0.3453532159, -0.4724609554, -0.0402999446, 0.2510865331, -0.4561106861, -0.0766494572, 0.2587413788, 0.3883615136, 0.2604281306, 0.3886112571, -0.1932557672, 0.2456339151, 0.1801902354, 0.0984622762, -0.1247398108, 0.3354094625, -0.0490097106, 0.004754243, 0.3091166914, 0.2427240461, -0.3884593844, 0.0066373372, 0.1257503033, -0.2951216698, 0.4921707511, 0.0260522608, -0.0578259267, -0.3234987855, -0.0804763958, 0.1806789041, 0.0233979709, -0.1273874193, 0.1667692363, 0.1957850605, -0.0826731399, 0.1365424246, -0.3365081549, -0.2401607186, -0.3418680131, -0.3335376382, -0.3955492675, -0.1528070867, 0.0255936198, 0.3271662593, 0.4925565124, -0.52606076, 0.3480464816, 0.1541675031, -0.0543543287, 0.0998492762, 0.2237306237, -0.2249774188, 0.2071834952, 0.3538980186, -0.2637626529, -0.02692133, -0.0084565282, -0.0912473053, -0.1013356447, 0.2589485049, -0.1230044961, -0.7289394736, 0.1184711605, 0.2128463238, -0.2772567868, 0.0854329094, 0.2786011994, 0.0754413754, 0.3407641947, -0.3217763007, -0.0556519665, -0.0820498243, -0.2780361474, -0.1290547997, 0.4463101625, 0.7053080201, -0.4558099806, 0.1331191361, -0.1671926975, -0.0553614348, 0.0092204362, 0.2276037186, -0.2356606722, 0.3070383668, -0.3199963272, -0.2536695004, 0.1878545731, -0.2249673158, -0.8255174756, 0.2686668634, 0.1492611468, 0.190101102, 0.2113611102, 0.044905901, 0.0253549311, -0.2250093073, 0.0002095085, 0.2408090532, -0.2048730105, 0.0776336342, -0.4715503156, -0.230891794, 0.0494503379, 0.0304168779, 0.0650149584, 0.133258909, 0.1275084317, 0.1479827762, 0.002820157, -0.0282348264, 0.127925694, 0.2897250056, 0.072599493, -0.1606550813, 0.2341434211, -0.1299557984, -0.4772046804, 0.4268708229, -0.2430206239, -0.1612717211, -0.0033575194, -0.367875576, -0.131584987, -0.0959360078, -0.3227361441, -0.1761832237, 0.162699461, 0.2217370868, 0.4972620904, -0.086366564, -0.0921614617, 0.2364338189, -0.2325900942, 0.1563908607, -0.0437476896, -0.0619535409, -0.0965528861, -0.0037324263, -0.2672520578, 0.0637134612, 0.0612830408, -0.1438022703, -0.2119127065, 0.3813098669, 0.1824179888, 0.1483061761, 0.1038817391, 0.207360208, 0.0454354435, 0.0915353671, 0.2094065994, -0.1386991441, 0.0882935673, -0.0692196339, -0.1016849428, 0.0941346064, -0.0026221219, 0.1150360256, -0.0974118486, -0.3273005188, 0.243690595, -0.0979226977, 0.0482173301, -0.1521122009, -0.0224170815, 0.108924441, 0.4705244303, 0.2494595945, 0.0959345475, 0.1308139414, 0.5666041374, 0.095112659, -0.306400001, 0.0084785298, -0.0920881703, -0.2652547061, 0.0858355537, 0.4567348063, 0.3705620766, 0.1872844994, 0.2971365452, 0.0433769487, 0.0250683706, -0.1981805265, 0.0852612108, -0.0498644561, -0.203902781, 0.3712653816, 0.2285541445, 0.1648544669, -0.4026489854, 0.2453199476, 0.1885003895, 0.181778416, 0.0076121138, 0.2101492137, -0.4117989838, -0.1393775195, -0.1930423528, 0.1558937728, -0.3065188229, -0.2943996489, 0.1703381985, -0.0018873211, -0.1134920046, 0.2163658887, -0.0438542552, 0.3727187812, -0.0144590335, -0.5106045604, -0.3518975079, -0.0204885956, -0.4219542742, 0.063847363, 0.4755046368, -0.2497107536, 0.3643746674, -0.3301582038, -0.1467281282, -0.1775905788, -0.2530392408, 0.0571763255, 0.0023790882, 0.2441037148, -0.1194612384, 0.0094947508, 0.0901724994, 0.0731129423, 0.1342108995, -0.1966599077, -0.2162161469, -0.1232860163, 0.001207264, 0.1617401093, -0.4055031836, -0.2719637156, 0.0034308552, -0.3567609787, 0.0014948648, 0.107101433, 0.0538732521, 0.1546714008, -0.1395678371, 0.2075217217, 0.0358733982, 0.094629325, -0.3371970356, -0.5732305646, 0.1985996664, -0.1797295958, -0.0840430781, 0.085797824, -0.2623575628, 0.0923822448, 0.0246695001, -0.529371202, 0.0089810146, -0.5315983295, 0.2878867388, -0.122309193, 0.0137546761, 0.4414838254, 0.0198044963, -0.1030043066, -0.2068895102, -0.200431034, 0.0841571689, -0.2701407969, 0.2128929943, -0.0614316501, -0.0904941112, 0.1922162026, 0.644138813, 0.1705698371, -0.0261238888, 0.2631526291, 0.2355026603, 0.5081669092, -0.3046402633, -0.1536637843, 0.1751736403, -0.112433739, -0.2807421982, 0.0942907408, 0.0032025406, -0.0760574117, -0.107178621, 0.0054232911, 0.0717361197, -0.2113444805, 0.017479714, -0.377081573, 0.1748273373, 0.3805962503, 0.2162801325, -0.1443031877, -0.1160825491, 0.1850568056, 0.2957295477, 0.1747504622, 0.0181109998, 0.0132107828, 0.2020647377, -0.310352236, 0.1260381788, 0.1875200272, -0.0421076864, 0.0342036486, -0.0716047436, 0.2343114614, -0.0502522923, 0.3109574616, -0.4699048996, 0.0396349616, 0.1316848099, 0.0003002921, 0.1948228627, -0.2603046894, 0.096525915, 0.219157353, -0.0178051498, 0.328148663, -0.0614304394, -0.1760922223, 0.0945459381, 0.3984561563, -0.0820435807, -0.3254150748, -0.3235057592, 0.0369306803, -0.1915461421, 0.1425376385, -0.1091923416, 0.181210041, -0.1364023536, -0.001845571, -0.0889676511, 0.2300610542, -0.1454864144, 0.0393685028, 0.2379761189, -0.1225233823, 0.2264850587, 0.06669119, 0.0999514982, 0.2287295014, 0.4857912958, -0.196926415, -0.1524717063, -0.1413665563, -0.0593842529, -0.1390204579, 0.2855299115, -0.0680385754, -0.2639188766, 0.2175977975, -0.0047130249, -0.1272702813, -0.0137212379, 0.0422125719, -0.0254556183, 0.0349457785, -0.4442012906, 0.1618110538, 0.1868469417, -0.0335101373, 0.2781070769, -0.1521117985, 0.0795829073, 0.133011803, 0.124953717, 0.6822167635, 0.1362114251, -0.1145955399, 0.000206664, -0.2710429728, 0.3784739077, -0.3629119396, 0.244056195, -0.1973894835, -0.3495339155, 0.133646518, -0.1639500409, 0.2852559984, 0.0307868142, -0.1436574161, 0.1867616028, -0.0287959669, 0.1945048124, 0.009616632, 0.3009590507, -0.1734448969, -0.1199178174, 0.1038740054, 0.2350698262, 0.0205895025, 0.2723826468, -0.0777697042, 0.0324531682, 0.1645317823, -0.0691590235, -0.2880913019, -0.1545040905, -0.0871583372, 0.0442413501, 0.1170278713, -0.1048889905, -0.0277320091, 0.0329481885, 0.2732408941, 0.1882365197, -0.1695501208, 0.1902849525, 0.1060740799, 0.3167859018, -0.0597578473, -0.2441654056, 0.407332927, -0.0808280557, -0.1148023754, -0.2614192367, -0.5250527859, -0.3327231705, 0.3132182658, 0.1088080555, 0.2869954407, 0.0436149687, 0.1405777931, -0.0438861586, 0.1577405483, -0.2174315006, 0.2091280371, 0.0427462384, -0.107245259, 0.1430871934, -0.3217619658, -0.3278844655, -0.1194731668, 0.2778666615, 0.1766344309, -0.1231906936, 0.3894490004, -0.293332994, -0.1793525666, -0.1765351892, -0.0402748138, -0.0411623716, -0.2697417736, 0.007538449, -0.0401743166, 0.0050675697, 0.1045183837, -0.0712548122, 0.1229320094, 0.1439369023, -0.3369544744, -0.2467674911, -0.3537615836, -0.2653900385, -0.1480852067, 0.1309172809, -0.0345489271, -0.0122091621, 0.2249915153, 0.3829745948, -0.3870070577, -0.0468674153, -0.2649412751, 0.0812326148, -0.3280064464, 0.0506658107, 0.0909304544, -0.0747461021, 0.0090028131, 0.1508878171, -0.3463100195, -0.2939868867, 0.0540275276, 0.1059436873, -0.0469063334, 0.1963615119, -0.1199755818, 0.1190236509, -0.0014979942, -0.0491350107, 0.2123951912, -0.2160633951, -0.1563726366, 0.254801333, 0.1707796007, 0.3533977866, -0.0799337029, -0.0274654049, -0.1830379069, 0.1936138421, -0.04375723, 0.1320661157, -0.0450857803, -0.0873601139, 0.1132311746, -0.0314985365, -0.0336394683, 0.1384856701, 0.2454379201, -0.1636518538, -0.0036881338, 0.2253753543, 0.2210756987, 0.163666293, 0.0717784688, -0.2607777119, 0.3172480166, 0.2696537077, -0.1820486486, -0.2011016607, 0.3371920884, -0.0247247573, 0.1318008453, 0.0341987051, 0.4432094991, -0.1671996266, 0.2255147845, 0.1544446349, 0.3434152007, -0.3536660075, 0.0417472422, 0.4806293845, 0.1429195404, 0.0976356789, 0.2186352313, -0.0359710082, 0.0562152304, 0.4986136556, -0.1254050136, 0.3106615543, -0.0686785951, 0.283629626, -0.2062564939, -0.5564457178, 0.4018726349, 0.1693212837, -0.1316096187, -0.1121614277, -0.1634999514, 0.2880296111, 0.0292416047, -0.2176140547, -0.2586454749, 0.1524283141, -0.2848620117, 0.0762707815, 0.082142897, -0.0851984099, 0.0554180518, 0.1326168925, 0.1994864941, 0.2265625447, 0.3473984301, -0.0989749059, -0.1429735571, -0.0877806917, 0.1233607158, -0.0985961482, 0.0712054297, -0.1479971111, 0.1824073344, 0.0958580822, -0.1535415798, 0.0640586168, 0.3616482019, 0.2506943941, 0.2123776674, -0.0989348888, 0.0259601921, -0.1711536646, 0.0187981334, -0.3725169301, 0.431339711, -0.2985083759, -0.2817286253, 0.3423570991, 0.0857558921, -0.1949166209, 0.0019105076, -0.2204267234, 0.0274500567, -0.4845623374, 0.3101216555, 0.3515856266, -0.0309316218, -0.090495117, 0.2066888958, -0.2065313458, -0.201010868, 0.2995293736, -0.1196035594, 0.0717513338, -0.2509053051, 0.1303448826, -0.2079918087, 0.6261107922, 0.3518135548, 0.0281964261, -0.2392154485, -0.1770211011, -0.6708558798, 0.2010460347, -0.0954008028, 0.1895968616, 0.0860061869, 0.207753256, -0.1447224021, 0.1590956599, -0.0037626524, 0.064897947, 0.2173775882, -0.0050049191, -0.2826893926, 0.1956053525, -0.1473674923, -0.3527965248, 0.0055218386, -0.4427979887, 0.4373825192, -0.1514989585, 0.1282618344, 0.3331020176, -0.1716023833, 0.4262595773, 0.2726680338, 0.252473563, 0.3181020617, 0.1200245395, 0.0899265856, 0.0215410721, -0.1689337343, 0.3327593505, -0.2900879383, 0.1465851068, -0.2002495825, 0.0694025233, -0.3555558622, -0.0972993672, -0.2597145736, 0.4706435502, 0.1652920693, 0.057693556, -0.0976823717, -0.2062506825, -0.2786987126, 0.4057397544, 0.3590344787, 0.0832565129, 0.1341118515, 0.065355882, -0.451541841, -0.1034888327, 0.3416598141, -0.2379945517, -0.1830806732, -0.3390716314, 0.3901360333, 0.0657896772, -0.2984902561, -0.1949419379, 0.0399748869, 0.3311711848, -0.0626841486, 0.0069869114, 0.3112783134, -0.14243038, 0.3858708739, -0.0999679863, -0.1195299029, 0.0070810979, 0.0974020511, -0.0177122299, -0.152521044 ]
https://github.com/huggingface/datasets/issues/2561
Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True`
Hi @apsdehal, If you decide to follow @lhoestq's suggestion to rename the cache directory of your previous computation to the new expected cache directory, you can do the following to get the name of the new expected cache directory once #2500 is merged: ```python from datasets import load_dataset_builder dataset_builder = load_dataset_builder("path/to/your/dataset") print(dataset_builder.cache_dir) ``` This way, you don't have to recompute the hash of the dataset script yourself each time you modify the script.
## Describe the bug If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets. ## Steps to reproduce the bug - Create a local dataset builder class - load the local builder class file using `load_dataset` and let the cache build - update the file's content - The cache should rebuilt. ## Expected results With `ignore_verifications=True`, `load_dataset` should pick up existing cache. ## Actual results Creates new cache. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid - Python version: 3.7.7 - PyArrow version: 3.0.0
73
Existing cache for local dataset builder file updates is ignored with `ignore_verifications=True` ## Describe the bug If i have local file defining a dataset builder class and I load it using `load_dataset` functionality, the existing cache is ignored whenever the file is update even with `ignore_verifications=True`. This slows down debugging and cache generator for very large datasets. ## Steps to reproduce the bug - Create a local dataset builder class - load the local builder class file using `load_dataset` and let the cache build - update the file's content - The cache should rebuilt. ## Expected results With `ignore_verifications=True`, `load_dataset` should pick up existing cache. ## Actual results Creates new cache. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid - Python version: 3.7.7 - PyArrow version: 3.0.0 Hi @apsdehal, If you decide to follow @lhoestq's suggestion to rename the cache directory of your previous computation to the new expected cache directory, you can do the following to get the name of the new expected cache directory once #2500 is merged: ```python from datasets import load_dataset_builder dataset_builder = load_dataset_builder("path/to/your/dataset") print(dataset_builder.cache_dir) ``` This way, you don't have to recompute the hash of the dataset script yourself each time you modify the script.
[ -0.4378628731, 0.478214711, -0.0076683937, 0.1180528924, 0.1569269598, 0.1881317496, 0.2960322499, 0.4827200174, 0.1750374585, 0.3437813818, 0.2252853364, 0.3112471104, 0.0643950775, -0.1951676458, 0.0266977567, 0.3226769865, 0.0457071178, 0.1662352681, 0.0950703919, 0.0056099226, -0.1577255428, -0.0480543151, -0.0432753265, -0.2891952395, -0.3779670596, 0.1461431384, 0.128899008, 0.1029424146, 0.0418600738, -0.5005038381, 0.3477988541, 0.2545361221, -0.0790348426, 0.3221057355, -0.0001039051, 0.1450936496, 0.3499032855, 0.0292263124, -0.4508455694, 0.1350850761, -0.3023416698, -0.3922795355, -0.044511795, -0.1520194709, -0.1497524679, -0.1942985356, -0.0928564519, -0.3335600495, 0.2368958294, 0.0695878789, 0.3009344339, 0.1146359742, -0.1748264879, -0.0558503717, 0.1333581656, -0.0726914033, -0.0339045562, 0.1525843889, 0.1715849042, -0.0266665425, -0.3792468309, 0.4052732885, -0.2034501433, 0.1334888935, 0.3996664882, -0.1477891058, 0.0812320858, -0.03079574, 0.3842012286, 0.0088949893, 0.515406251, -0.3620010018, -0.3648877144, -0.2112908959, -0.2311093807, -0.1044782475, 0.2209357768, -0.1983422339, -0.2347518355, 0.1736162752, -0.3927208185, -0.2276475132, 0.0417953283, -0.1809523553, 0.0880759358, -0.22500211, 0.105364643, -0.1372446716, -0.1254767925, 0.1452207714, 0.3674779236, -0.3948548138, -0.0215283297, 0.2289694548, -0.4612696171, -0.0239969771, 0.3944354653, 0.3140067756, 0.2373761386, 0.3474128246, -0.1095320284, 0.2829091847, 0.1750382632, 0.0915097967, -0.1357052177, 0.3506705463, -0.0340685472, -0.0527875088, 0.3768589199, 0.2751899362, -0.4690762758, 0.0056920825, 0.1060255021, -0.325963676, 0.5800098181, 0.0720466897, 0.0524248853, -0.3129968643, -0.0475728512, 0.2453952283, 0.0636416152, -0.0961806998, 0.212259233, 0.2610956132, -0.1054356396, 0.2311408967, -0.1733354628, -0.2153011262, -0.3223363161, -0.2802625, -0.4096826017, -0.1537310779, 0.011925756, 0.3056168854, 0.4829464555, -0.4689617753, 0.3161236346, 0.1618571728, 0.0118937436, 0.1007127911, 0.1903783977, -0.1322098672, 0.2143111825, 0.2632398009, -0.2132685035, 0.0102521917, 0.0313111059, -0.1175559312, -0.1058413163, 0.2231219858, -0.0317615382, -0.7341607213, 0.0889078006, 0.2330438942, -0.238156274, 0.04748879, 0.2636315525, 0.0336061008, 0.3829754889, -0.250357002, -0.1222590953, -0.0942948386, -0.3573616743, -0.175921157, 0.498024255, 0.7052147985, -0.3996891379, 0.1528285444, -0.1156625599, 0.0775154009, -0.0665536374, 0.1591839045, -0.2795011997, 0.3339782357, -0.2976712584, -0.4289455414, 0.1798468679, -0.3847131729, -0.7887800932, 0.2251586318, 0.1457595974, 0.1491381824, 0.1818513274, 0.0396105312, -0.0169459749, -0.2184164673, 0.1615031511, 0.2312606275, -0.1634504497, 0.0983477309, -0.4349820018, -0.2086125463, 0.0089622429, 0.068833895, 0.0870127603, 0.1695849448, 0.0568154231, 0.0829610154, 0.026787132, -0.0496537648, 0.1402309537, 0.3736861944, 0.1132954508, -0.1159345657, 0.2203413397, -0.1655069441, -0.4990055263, 0.4116999507, -0.182096839, -0.144731611, -0.0531154536, -0.322712183, -0.1338285953, -0.0875149742, -0.3375994861, -0.1391991079, 0.1884562224, 0.2496448159, 0.4460932612, -0.0771123767, -0.1581667513, 0.2838539183, -0.1640731841, 0.0899736658, -0.1326988935, -0.1409479827, -0.0700128675, -0.0991645679, -0.195404321, 0.0574333705, 0.1353021413, -0.0667101219, -0.26080966, 0.3024923801, 0.0793657079, 0.1147836968, 0.0711159855, 0.2790295482, -0.0350753181, 0.1858085394, 0.1745347381, -0.0790570378, 0.1426222324, -0.0384484269, -0.0413476638, 0.1354290694, 0.0463985689, 0.1125913039, -0.1388842613, -0.3127245009, 0.2953707576, -0.1245716438, 0.0633456931, -0.148183465, -0.0057838992, 0.0748844668, 0.4566468298, 0.1771674752, 0.001889324, 0.2123999596, 0.480414331, 0.1649551243, -0.2486859709, -0.0117341382, -0.0944047123, -0.2098718584, 0.0730079338, 0.397223264, 0.3072850406, 0.2216349095, 0.2192883939, 0.0572422221, -0.0068485579, -0.1589208245, 0.0911512524, -0.0753751099, -0.1550499499, 0.3534370959, 0.2896510959, 0.1620254666, -0.3402824998, 0.1717148274, 0.1014907062, 0.1774211377, -0.0199415796, 0.1480085105, -0.4374254942, -0.108644031, -0.1747344583, 0.2059913576, -0.1812387407, -0.2643586993, 0.0996616185, 0.101382874, -0.1185426116, 0.2166804373, -0.1225302368, 0.3018139303, 0.0229896158, -0.4956265092, -0.286364615, -0.0362147726, -0.3606924415, 0.031658262, 0.4571745396, -0.2570876777, 0.3414333463, -0.2753065228, -0.1161039546, -0.2035596669, -0.2270612866, 0.0009947376, 0.0311386064, 0.3004502654, -0.1247743517, 0.0048389556, 0.0545157976, 0.0616221912, 0.1966442764, -0.2101592869, -0.1613975763, -0.0959528312, -0.0007322969, 0.0984199792, -0.3548959196, -0.3140828311, 0.0166348889, -0.432418853, -0.0886579305, 0.1247778013, 0.0167993363, 0.1820453554, -0.1176901907, 0.1404748708, 0.0436919816, 0.1650147736, -0.2781702578, -0.6232034564, 0.2709969878, -0.2506585419, -0.0944470391, 0.0615546368, -0.328815639, 0.1137559563, -0.0210147277, -0.4772717357, -0.0800593197, -0.5147486329, 0.2753631473, -0.1654992104, 0.031567689, 0.4313965142, 0.0792465582, -0.1137078553, -0.2364392281, -0.2883406579, 0.0790759251, -0.28120628, 0.1944600791, 0.0056791012, 0.0140722487, 0.1872330457, 0.536739707, 0.1950556785, -0.0902494267, 0.2941390276, 0.1639421433, 0.4542672932, -0.3149472773, -0.2042658329, 0.053016182, -0.075759761, -0.2786771059, 0.0489871092, 0.0071325935, 0.0000148019, -0.1413308084, -0.0413522124, -0.0463014878, -0.3057074845, 0.0590571202, -0.4534632564, 0.195478037, 0.3803458214, 0.1741365343, -0.2321106941, -0.1006533504, 0.1646794379, 0.2463062853, 0.1682644933, -0.0457251966, 0.0351360217, 0.2795372903, -0.4036786854, 0.1620374024, 0.1288982779, -0.0083645983, 0.0930653512, -0.0572279841, 0.1177356169, -0.0911325216, 0.2825435698, -0.5072575212, 0.0911324844, 0.203834936, -0.1125687659, 0.0627754703, -0.198926419, 0.1504737735, 0.2622160912, -0.087983042, 0.2507500052, -0.0011110379, -0.2351132631, 0.1253535748, 0.3870460391, -0.1197636127, -0.3344692886, -0.262352556, -0.0277382024, -0.1591909975, 0.0565852076, -0.0812543407, 0.2400639057, -0.0308115017, -0.0278973393, -0.1352308542, 0.2370302081, -0.1084026545, 0.0180764869, 0.2628671527, -0.0844261795, 0.3803783655, 0.0252023134, 0.0302186552, 0.2365126908, 0.464763552, -0.1250590533, -0.2326643467, -0.194799602, 0.0530398749, -0.0449089222, 0.2518128753, -0.1161489114, -0.2082091868, 0.1460897475, -0.0102911564, -0.1474387199, -0.030477481, -0.020570077, -0.0034660089, 0.0006033434, -0.4913100302, 0.2041582018, 0.1895585507, -0.0449839458, 0.3198822141, -0.2744067609, -0.0281308573, 0.2554373741, 0.1006876305, 0.6605783701, 0.0964937732, -0.0353504047, -0.0036207312, -0.2316716909, 0.3259820938, -0.3080956042, 0.2457037866, -0.279504478, -0.3074895442, 0.1735805571, -0.1925347894, 0.189100638, 0.0348289162, -0.1240571886, 0.2253083885, -0.1151043698, 0.1912564486, -0.045840472, 0.3150483668, -0.1868624389, -0.174578473, -0.0274510719, 0.2539721429, 0.0469782911, 0.2461561263, -0.0815271288, 0.0187769216, 0.1505828947, -0.0808519796, -0.2379860133, -0.0665984452, -0.1074818149, 0.060202457, 0.1213903502, -0.1067700088, -0.0436118282, 0.0576340333, 0.3026902974, 0.2505251467, -0.158826679, 0.1485432088, 0.056075152, 0.3196146488, -0.0658434853, -0.2128132433, 0.4055594802, -0.0617627874, -0.1589683443, -0.259493053, -0.4273690581, -0.3726551235, 0.2680481076, 0.1460203081, 0.2779166102, 0.053310439, 0.0771035552, -0.0018373042, 0.1734862328, -0.2306042016, 0.2520277202, 0.1348025948, -0.1515696496, 0.1891325563, -0.3363291323, -0.2991268039, -0.067369625, 0.3114566505, 0.1595469117, -0.1517667472, 0.4051169753, -0.2084002942, -0.1419316083, -0.1853004992, -0.0475524478, 0.0767190233, -0.2326753587, 0.0687843412, 0.0404997244, 0.0431038067, 0.1582070291, -0.0608673096, 0.0395644456, 0.0245331507, -0.3133843541, -0.222544685, -0.4285658002, -0.2193319052, -0.0632848963, 0.1223850995, -0.0012284897, -0.0267292317, 0.150313139, 0.2760211825, -0.4142197669, -0.056600675, -0.2791680396, 0.1024125218, -0.2881476581, 0.0984876901, 0.1146462411, -0.0766551644, 0.0632294938, 0.1305019855, -0.3284519911, -0.3228771985, 0.0242008809, 0.0945781916, -0.0166069362, 0.2232037634, -0.1147040874, 0.0794670433, 0.0184373353, -0.0887312591, 0.2097737342, -0.0178424511, -0.110414058, 0.2679864466, 0.1221226081, 0.3223762214, -0.0099017872, -0.0430624411, -0.1550919116, 0.2193197012, -0.0433367267, 0.1086946428, -0.0544869825, -0.0705572292, 0.1329296082, -0.0570241995, -0.1508286744, 0.1923976243, 0.222335726, -0.1864930242, -0.0602305271, 0.3218354583, 0.2400193363, 0.0907397196, -0.0054479707, -0.1957659423, 0.3003565371, 0.2832584977, -0.2194081694, -0.1706598997, 0.2801480591, -0.0132272048, 0.1595284939, 0.0650125965, 0.3555438817, -0.1990947723, 0.2337105572, 0.1321995556, 0.3232168853, -0.416841507, 0.0862703621, 0.2853972614, 0.1657531261, 0.0082566682, 0.2053156197, 0.0671948195, 0.0971903726, 0.6143577695, -0.0283518098, 0.2189552933, -0.0285650678, 0.2101490647, -0.2261812389, -0.5105990767, 0.4365902543, 0.1550196558, -0.1180955842, -0.1057625785, -0.1610129178, 0.2295515537, 0.1073055565, -0.129293263, -0.1949422956, 0.1497919261, -0.284347564, 0.0343773253, 0.1221879274, -0.024144033, 0.1386814564, 0.1023368463, 0.2187937945, 0.1756784767, 0.2815100551, -0.0567290783, -0.1032155529, -0.0950154215, 0.1916716099, -0.0450919904, 0.119456619, -0.1141227409, 0.1823381931, 0.1099841744, -0.1482104212, -0.0076163127, 0.385350883, 0.3195372522, 0.2789933383, -0.078719601, 0.1248613447, -0.1749559641, -0.0083578136, -0.4222160876, 0.3339470029, -0.3401620388, -0.2274765968, 0.3249011636, 0.1272553802, -0.2051461339, 0.0182345361, -0.1452870667, 0.069073759, -0.405177474, 0.3360978067, 0.3596473634, -0.0155954855, -0.1013649479, 0.2376692891, -0.2326168716, -0.2524326742, 0.4349990785, -0.0604383945, 0.087837778, -0.3028019965, 0.1456752121, -0.1554858834, 0.4844497144, 0.2788090706, -0.0002208927, -0.2452317178, -0.1420569122, -0.6544247866, 0.2114126086, -0.051894404, 0.2111931443, 0.04969934, 0.2326918542, -0.1671121866, 0.1167373657, 0.0590449832, -0.0167421252, 0.1796305329, 0.0328867361, -0.2991631627, 0.156701684, -0.1595655531, -0.3394169509, 0.0894539058, -0.4561433196, 0.3197129667, -0.2177822739, 0.18501921, 0.2190604806, -0.1568606943, 0.3673100173, 0.2313753814, 0.342959255, 0.2560585439, 0.1062691957, 0.0294541884, -0.0163915213, -0.2015937269, 0.2178560644, -0.3097860813, 0.1981267929, -0.2201926112, 0.0975881368, -0.4092788398, -0.1760574281, -0.2828541398, 0.3462894261, 0.0879388377, -0.0051464108, -0.0652859136, -0.0974263996, -0.2284779102, 0.405036509, 0.2715631723, 0.071245946, 0.0581014715, 0.1829340309, -0.4816670418, -0.1742366552, 0.419516325, -0.2215428501, -0.2811940014, -0.2682036757, 0.3721110225, -0.0936370417, -0.2679521143, -0.2221826911, 0.0980302766, 0.3129081428, -0.0035396516, 0.0003506111, 0.3377864957, -0.153236255, 0.367682755, -0.0670657679, -0.1377291828, 0.0599402487, 0.1395838857, -0.1061302871, -0.1550707668 ]
https://github.com/huggingface/datasets/issues/2559
Memory usage consistently increases when processing a dataset with `.map`
Hi ! Can you share the function you pass to `map` ? I know you mentioned it would be hard to share some code but this would really help to understand what happened
## Describe the bug I have a HF dataset with image paths stored in it and I am trying to load those image paths using `.map` with `num_proc=80`. I am noticing that the memory usage consistently keeps on increasing with time. I tried using `DEFAULT_WRITER_BATCH_SIZE=10` in the builder to decrease arrow writer's batch size but that doesn't seem to help. ## Steps to reproduce the bug Providing code as it is would be hard. I can provide a MVP if that helps. ## Expected results Memory usage should become consistent after some time following the launch of processing. ## Actual results Memory usage keeps on increasing. ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid - Python version: 3.7.7 - PyArrow version: 3.0.0
33
Memory usage consistently increases when processing a dataset with `.map` ## Describe the bug I have a HF dataset with image paths stored in it and I am trying to load those image paths using `.map` with `num_proc=80`. I am noticing that the memory usage consistently keeps on increasing with time. I tried using `DEFAULT_WRITER_BATCH_SIZE=10` in the builder to decrease arrow writer's batch size but that doesn't seem to help. ## Steps to reproduce the bug Providing code as it is would be hard. I can provide a MVP if that helps. ## Expected results Memory usage should become consistent after some time following the launch of processing. ## Actual results Memory usage keeps on increasing. ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-5.4.0-52-generic-x86_64-with-debian-bullseye-sid - Python version: 3.7.7 - PyArrow version: 3.0.0 Hi ! Can you share the function you pass to `map` ? I know you mentioned it would be hard to share some code but this would really help to understand what happened
[ -0.1570354104, -0.1291137189, 0.0070895329, 0.4211395383, 0.1809349358, -0.0064078951, 0.058969263, 0.1185614467, 0.2151498049, 0.1314364374, 0.4036096036, 0.5179604292, -0.1873754263, -0.0342992395, -0.0775476918, 0.0739516914, 0.1007091179, 0.0621855743, -0.0024835395, 0.0814322159, -0.2891269624, 0.1485365331, -0.2638915479, -0.0169581287, -0.3848567009, -0.2375299931, 0.0283594429, 0.1595098674, 0.2712175548, -0.4738773704, -0.1240217537, -0.0056955721, 0.100565508, 0.5225367546, -0.0001255529, -0.0305608734, 0.4019310176, -0.0119665144, -0.0148505755, 0.12461707, -0.3412508368, -0.1495830119, 0.0193183012, -0.0983850285, 0.2345030457, -0.0282176975, -0.0144429589, -0.4091303647, 0.2877305746, 0.0745106936, 0.107286267, -0.0405007713, 0.0402133055, 0.2015888691, 0.3487726748, 0.3877716362, 0.0770822614, 0.1127609238, 0.0478497632, -0.2627836168, -0.4136322737, 0.2883911133, -0.0236981008, 0.1897911876, 0.5099979043, -0.0134920245, 0.3311567605, -0.3816519082, 0.4529601336, -0.1067864522, 0.1417181641, -0.2396413088, 0.2309256494, -0.2007993162, -0.3240591288, -0.0723847076, 0.2577689886, 0.1840465516, -0.3346032202, -0.0982151255, -0.2691875696, -0.2370991111, -0.139374733, 0.1706351787, 0.1292568594, -0.3141851425, -0.0201005768, 0.251958847, 0.384278506, -0.143848002, 0.0455069132, -0.390265286, -0.0603138432, 0.2051587999, -0.2177039087, 0.3616623282, 0.1598576605, -0.1390427649, 0.186015591, -0.4799717069, 0.0471165627, 0.0493897684, -0.0707268566, 0.3078663647, 0.5049363971, 0.0071354201, 0.033940386, 0.3567737043, 0.14456065, 0.0739018396, -0.4335691631, -0.0968732387, -0.0254752934, -0.1504213959, 0.562168479, -0.4341061711, -0.0089520449, -0.0162019357, 0.0838859826, 0.1440411359, -0.2474454045, -0.1192665324, -0.1069315746, 0.2773065865, 0.1608286053, 0.2124887556, 0.0798255354, -0.1200265661, -0.2981455624, 0.1034977436, -0.0617956966, -0.2247256786, -0.4726647437, 0.2819333673, -0.1137934104, -0.0237243939, 0.0799850971, 0.0839324743, -0.1809537858, -0.4311406612, 0.2190319449, -0.3097910881, 0.3081334531, 0.1337935477, -0.2712441981, 0.166108191, -0.2565067708, 0.2414970398, 0.0015333758, 0.6213241816, -0.4938787818, -0.2463743389, 0.0666979477, -0.0554473475, 0.1610041261, 0.2372991592, -0.2890393734, 0.0802727938, 0.4135131836, -0.122878179, -0.054127302, -0.1508701146, -0.3637876809, -0.3568013608, 0.0744893402, 0.5120197535, -0.2421158552, -0.0570948534, -0.0698018819, 0.1361996084, 0.3940271139, 0.3394079804, -0.1452194303, 0.217970565, -0.2710810304, -0.0092690261, 0.0535810404, -0.1353997141, -0.4603149891, 0.1626191586, 0.0354249738, 0.0441171154, -0.1676274389, 0.091723986, 0.1136217415, -0.0206122492, 0.0810671821, 0.2399549782, 0.0672842637, 0.2178074718, -0.3566507697, -0.3306140006, -0.1602680087, -0.0686364919, 0.0161732696, -0.1525757015, 0.0998771563, -0.3316319585, 0.4156733751, -0.1726185828, 0.1996034384, 0.387345612, 0.3280890882, 0.0715709403, 0.0820143744, -0.0371205099, 0.021824142, 0.0685923323, -0.55248034, -0.4697280824, -0.0892869532, 0.0595289953, 0.1769146323, 0.2053637803, -0.0954456329, -0.0883557498, -0.0736558512, -0.1179291159, -0.3036301434, -0.0247292351, 0.1444121897, 0.1526736319, 0.065635398, -0.0442603193, 0.0271662343, 0.2399704009, 0.0752367377, -0.2047433853, -0.2014556378, 0.0656852424, 0.0661337599, 0.0654203072, -0.261890918, 0.1513353586, 0.2842339575, 0.1063961312, -0.0741829351, 0.0739030391, 0.3849376142, -0.1497891098, 0.2134181708, -0.0641801283, 0.1057474911, -0.0667210519, 0.121330969, -0.2330112159, 0.3269650638, 0.3512521386, -0.0582072362, -0.1533297151, -0.0210707821, -0.0199612435, 0.4386909306, -0.1539626718, -0.1473775506, 0.0873582587, 0.2650530338, 0.288436234, 0.0570364445, 0.0676861629, 0.4835443795, 0.1863626242, -0.0907855928, 0.4215970635, -0.4808894992, -0.1382154822, 0.2403399795, -0.014123749, 0.1993009299, 0.034442164, -0.1749191135, 0.0550536253, 0.0971423388, -0.0127406763, 0.1064737961, 0.2050014287, 0.5473661423, 0.1184345409, 0.2693427503, -0.0106126703, -0.1087220013, -0.0634394735, 0.0204941016, 0.0222308896, -0.2989659905, 0.2088720202, -0.2458426654, 0.1614695936, -0.1152484491, 0.1659799814, -0.2664531767, -0.0865113884, -0.1947997361, 0.2522459924, -0.023851743, 0.0529243946, 0.0373384841, 0.1334961057, 0.2425185144, -0.2201698869, -0.1335166395, -0.263502568, -0.3734341562, -0.1866772771, 0.3813978732, -0.1852742732, 0.3777763546, 0.1496836692, 0.1176155135, -0.2089564353, -0.1244720444, -0.0028930299, 0.3083292544, 0.2173019946, -0.0969915539, 0.1768706441, -0.1049771607, 0.0970581099, 0.1864476204, -0.4787374735, 0.0666563287, 0.139671281, -0.1192366034, -0.2064535916, -0.017284099, 0.0637787879, 0.0498526059, -0.2209958285, 0.239179194, 0.0881537646, 0.3557164669, 0.2330054045, 0.423399806, 0.2255345732, -0.2216947973, -0.2498883605, -0.1388602555, -0.0541368127, 0.0314730443, -0.0852677375, -0.0235589184, 0.0020441052, -0.0498107672, 0.1298588663, 0.3587276936, -0.6982621551, 0.0301658381, -0.2623218894, 0.2872709632, -0.1540240645, 0.2327873707, 0.1900490224, 0.2522500157, 0.0068763089, -0.1199149266, -0.3412652016, 0.2269460261, 0.1021322235, 0.2622027397, 0.4573041797, 0.2340849191, 0.172379896, 0.6430393457, 0.3681122065, -0.1270594299, 0.5097683668, -0.109370999, 0.1468431205, -0.1853078157, -0.080295153, -0.1467503309, -0.3551238179, -0.1013457552, 0.0564733036, 0.15981327, -0.3769488633, 0.3007535934, -0.2385723591, -0.0146850506, -0.3792771399, 0.3319389224, -0.0886371434, 0.4131893218, 0.031872943, -0.0961551741, -0.4214274883, -0.4405428767, 0.1351611167, -0.4002673924, 0.1780542433, -0.0396987684, -0.0401161015, -0.0138432682, -0.5272117853, 0.3067459762, 0.0390464589, 0.2621275187, -0.0297250059, 0.0491983406, 0.2986946702, -0.076030083, 0.5504163504, -0.0347137898, 0.0523164049, -0.0892779902, 0.021284299, -0.4756471217, 0.0552174337, -0.0031106768, 0.3808133304, 0.0940501168, 0.3508791924, 0.0697248504, -0.1875790805, 0.0132526252, 0.0421579666, -0.2354725301, -0.4961805642, -0.132545501, -0.1841088384, -0.4304437637, 0.0109231612, -0.0465679839, 0.0336024314, 0.3165080547, -0.3026177883, 0.1214013845, 0.1358112842, 0.0017410866, -0.2351052016, 0.5520073175, -0.0232513603, 0.0332292728, 0.3382862508, -0.198038429, 0.2834864259, 0.4085794985, -0.2060970664, 0.1184653193, -0.1302346885, -0.1976930201, 0.2686097026, 0.2723290622, 0.056033574, -0.0271527693, -0.0440822206, 0.2403118014, -0.3981288671, 0.0236620829, 0.4464377165, 0.153986603, -0.1511226296, -0.4074271023, 0.3398567438, 0.3760686517, -0.1697610617, 0.8557543755, -0.3192206621, -0.2748616636, 0.4450092018, 0.4598820508, 0.7785285711, -0.3535766602, 0.3509236276, -0.1129692942, -0.4027540386, -0.34583956, -0.1995653957, 0.0818231925, -0.4845449328, 0.0333418772, 0.0910125896, -0.248789221, 0.2100740075, 0.3734503388, -0.0257138666, 0.049720481, -0.1206619665, 0.1924778968, 0.049335368, 0.0023936802, 0.2156998664, -0.2018445432, 0.1236745864, 0.0153348297, 0.0675124228, -0.1863374114, -0.0363622159, 0.0534430481, 0.2349955142, -0.1699991524, -0.2345428467, -0.1118467078, -0.5601992607, 0.276753664, -0.0396714434, 0.2962339222, 0.0277380738, 0.0559032969, -0.4646372497, 0.1299652457, 0.0435671993, 0.0832820013, 0.4669636786, 0.2642529309, 0.1506465822, 0.0136835072, 0.0841358751, -0.0185435377, -0.3130715489, 0.1003361419, -0.2381834686, -0.2365970612, -0.4385221601, 0.3223330677, 0.2301784605, 0.079980351, -0.2859732211, -0.0877587944, -0.1497964263, 0.1472651958, 0.0254739225, 0.1634956002, 0.0104221515, 0.7786636353, -0.2151992172, -0.3480202258, 0.0423699096, 0.1496225595, -0.0276840217, 0.1380490512, 0.2621842921, 0.0268457364, -0.1049383357, -0.0378299691, 0.2424715906, 0.0739661977, -0.2794211507, 0.1698553264, 0.0420328043, -0.1616179794, -0.0963284671, -0.1669201255, -0.1237558126, -0.2514388859, -0.2342482954, -0.1139552817, -0.5196931958, -0.1651577801, -0.2643460631, 0.2441365719, 0.0532664321, -0.4230461121, 0.1131858304, 0.4644656181, -0.1100268438, 0.1683982015, 0.1339188963, 0.1894158274, -0.0244437233, 0.0971355587, 0.1988368928, -0.1879516095, -0.1095894054, 0.236898005, -0.2532470524, -0.086160332, -0.2198060751, 0.2332851291, -0.195347175, -0.2172618508, 0.0440845154, -0.2931397855, 0.1356251687, -0.3491418958, 0.2578805685, 0.0838902295, -0.2328196615, 0.0373016335, 0.2388154417, -0.3311476111, 0.2201014608, 0.4545752406, -0.0425611921, 0.4388762414, 0.1643183678, 0.1744072884, 0.1810051948, -0.0832994431, -0.1607127637, -0.0558806024, 0.1490998715, 0.003075192, 0.2341903448, -0.2745851278, 0.0132634817, 0.0800813735, 0.0003393684, 0.1882117093, -0.2667372525, -0.147563234, 0.0492927432, 0.0782808065, 0.0134435995, -0.2528131604, 0.486985147, 0.1127322018, -0.2317197621, 0.1365435869, 0.2346690595, -0.1223777607, -0.2093343139, 0.2005380094, 0.0721570253, -0.5397239923, 0.0281281285, 0.1619890034, 0.0147953602, 0.0210544821, 0.2359562218, 0.2058274448, 0.2101638168, 0.5615085363, 0.3088634312, 0.0974670425, 0.3279836476, 0.0873564184, -0.1292039603, -0.5117124915, -0.0755152926, 0.652553916, -0.2939630747, 0.370123446, 0.0529412068, 0.3967390656, 0.3359202445, -0.5242996216, -0.0725551695, 0.319509685, -0.1616054773, -0.1643823087, 0.2400982678, 0.0061772424, -0.1096999869, 0.1531411707, 0.1216987446, -0.1237889305, 0.7778649926, 0.2835398316, -0.0875753239, -0.1889852732, -0.1279658526, 0.2420138568, 0.3362990022, -0.2656771243, 0.2335509807, -0.2037664801, 0.0624334104, -0.105937086, -0.0529245771, 0.4486572444, 0.442936331, -0.2017529458, 0.1336962134, -0.0450440794, 0.1585482657, -0.1356238127, 0.2330152392, -0.0345744193, 0.1134563237, -0.0394149534, -0.0856285691, 0.0248609837, -0.2527592182, 0.236450538, 0.446454823, -0.1928072572, 0.2965646684, 0.0010083431, -0.2750466764, 0.1302561909, -0.2167000473, -0.1702963561, -0.0253258459, 0.6866878867, -0.6103773117, 0.1735482663, -0.2439730763, -0.0195739642, -0.2057755589, 0.5154134631, 0.0212635156, 0.1183216274, -0.2750030756, -0.0961363763, -0.4455813766, 0.0383726209, -0.4475420117, 0.0241199788, 0.220908612, -0.020583529, -0.4118450582, -0.1685492396, 0.4470592141, -0.1555502117, 0.1067608073, 0.2095531374, -0.4646928608, 0.1016207933, -0.1060337871, 0.0645979568, 0.0489250869, -0.5800877213, 0.3102744818, -0.2063925266, -0.0724289194, -0.2161648571, -0.1279753149, 0.0831954032, 0.1493737996, 0.7480970025, 0.1544768959, 0.0933579206, -0.1013715416, -0.1662060618, -0.2386662066, -0.0092881657, -0.1082661152, -0.3007632494, 0.0482405797, 0.2131525874, -0.4186708331, -0.3162445426, -0.0958473161, -0.0973263308, -0.0126641607, -0.1017902568, -0.0313047953, -0.0376607552, -0.0718607754, 0.2585254014, -0.0472585447, 0.4419742525, 0.0065751723, 0.1275048405, -0.2060889304, -0.1701951623, 0.3051474988, -0.5047956705, -0.5666655302, 0.2486847192, 0.2222003639, -0.2913552225, -0.4132838845, -0.4088248909, -0.3057343066, 0.3120824993, 0.1108765155, -0.3098547161, 0.0957603157, -0.2816902995, 0.0954847485, -0.0551784039, 0.3852955699, 0.0510679819, -0.1666000038, 0.2219671905, -0.1396967471 ]
https://github.com/huggingface/datasets/issues/2554
Multilabel metrics not supported
Hi @GuillemGSubies, thanks for reporting. I have made a PR to fix this issue and allow metrics to be computed also for multilabel classification problems.
When I try to use a metric like F1 macro I get the following error: ``` TypeError: int() argument must be a string, a bytes-like object or a number, not 'list' ``` There is an explicit casting here: https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/src/datasets/features.py#L274 And looks like this is because here https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/metrics/f1/f1.py#L88 the features can only be integers, so we cannot use that F1 for multilabel. Instead, if I create the following F1 (ints replaced with sequence of ints), it will work: ```python class F1(datasets.Metric): def _info(self): return datasets.MetricInfo( description=_DESCRIPTION, citation=_CITATION, inputs_description=_KWARGS_DESCRIPTION, features=datasets.Features( { "predictions": datasets.Sequence(datasets.Value("int32")), "references": datasets.Sequence(datasets.Value("int32")), } ), reference_urls=["https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html"], ) def _compute(self, predictions, references, labels=None, pos_label=1, average="binary", sample_weight=None): return { "f1": f1_score( references, predictions, labels=labels, pos_label=pos_label, average=average, sample_weight=sample_weight, ), } ```
25
Multilabel metrics not supported When I try to use a metric like F1 macro I get the following error: ``` TypeError: int() argument must be a string, a bytes-like object or a number, not 'list' ``` There is an explicit casting here: https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/src/datasets/features.py#L274 And looks like this is because here https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/metrics/f1/f1.py#L88 the features can only be integers, so we cannot use that F1 for multilabel. Instead, if I create the following F1 (ints replaced with sequence of ints), it will work: ```python class F1(datasets.Metric): def _info(self): return datasets.MetricInfo( description=_DESCRIPTION, citation=_CITATION, inputs_description=_KWARGS_DESCRIPTION, features=datasets.Features( { "predictions": datasets.Sequence(datasets.Value("int32")), "references": datasets.Sequence(datasets.Value("int32")), } ), reference_urls=["https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html"], ) def _compute(self, predictions, references, labels=None, pos_label=1, average="binary", sample_weight=None): return { "f1": f1_score( references, predictions, labels=labels, pos_label=pos_label, average=average, sample_weight=sample_weight, ), } ``` Hi @GuillemGSubies, thanks for reporting. I have made a PR to fix this issue and allow metrics to be computed also for multilabel classification problems.
[ -0.2212651223, -0.1788477153, 0.004477466, 0.3008990586, 0.6725277901, -0.1359904855, 0.4806859493, -0.1023351923, 0.2283082604, 0.3166793287, -0.1240744665, 0.2981927991, -0.2808498442, 0.404633224, -0.2508814037, -0.1761212498, -0.2169737965, -0.3327275515, -0.0599903204, 0.1059185341, -0.4245600402, 0.0359555259, -0.3928984404, -0.0474176928, -0.2053826451, 0.0682155713, 0.1161154434, -0.1135555282, -0.2787646949, -0.3295215666, 0.036086034, -0.0185576789, -0.0064593703, 0.4338569939, -0.0001161838, -0.1123573259, 0.231346339, 0.0006336719, -0.1215106472, -0.2388671637, 0.1006876603, -0.1241763979, 0.0392230265, -0.2491007149, 0.0151845608, 0.0634787753, -0.3937754035, -0.1104590595, -0.0291235689, 0.3288373351, 0.1258651614, -0.0629617348, 0.4294288754, -0.0971219316, -0.15652062, -0.0151516078, -0.2259766608, 0.2436190844, 0.0067115892, 0.1893278956, 0.1993248165, 0.3678983748, 0.0551727302, 0.0967101902, 0.3370934725, -0.0944950506, 0.1595982015, -0.1680671126, -0.1602085382, 0.2209849507, -0.0616231374, -0.0668190718, -0.5924571157, -0.0729384869, 0.0992550775, -0.8592523932, 0.1026922911, -0.1433410347, -0.0054161013, -0.1943720579, -0.4583282173, -0.1244822443, -0.110963434, 0.2019528449, -0.1810646504, 0.4406157732, -0.158426553, 0.2374358624, 0.3454503417, -0.1518543661, -0.2052842677, 0.0081738783, 0.0583260357, 0.2056108415, -0.3568546772, 0.1093112901, -0.1768296063, 0.0013985429, 0.1842874289, -0.1633951366, -0.2385575473, 0.1422115415, -0.3320727646, 0.0641798377, 0.1225534603, 0.3998177052, 0.2546082735, 0.1608309448, 0.0720793977, 0.1423227191, -0.1401439607, -0.1567818373, -0.0698929057, -0.3656044304, 0.256717056, 0.3489768207, -0.2015081495, 0.0135225868, -0.3946035802, -0.0448177829, -0.0712454394, 0.0082793245, 0.6896384358, 0.0917191058, -0.0318084359, 0.2214341462, 0.1153476015, 0.4436763525, 0.0687963814, -0.2091438919, -0.0214125551, 0.0479800068, -0.3339827359, 0.0482682176, 0.1806905419, -0.0014863898, 0.053955324, 0.1387742162, 0.4493711293, -0.2276754528, -0.1483096778, -0.293990314, -0.2085354924, 0.1655088365, -0.0190411229, 0.1512502581, 0.3160664737, -0.2302957624, 0.0357708223, 0.0669233575, -0.4116388559, 0.038243942, -0.0666188374, 0.0712282881, 0.0483756773, 0.10256432, -0.2542998493, 0.2213600725, -0.1325971335, -0.0665758029, -0.0036142573, -0.4038882256, -0.2503192425, -0.1125380918, 0.2882922292, -0.1103663892, 0.2029674798, -0.1416213661, 0.0057300734, 0.1887962967, 0.0668104813, 0.1195797101, -0.064097628, 0.0359414406, 0.0520433895, -0.0502254143, 0.5578499436, -0.7724624872, 0.0221550334, -0.1110542044, 0.162260294, -0.1910861731, 0.1772532165, 0.0577876382, -0.0404194668, -0.2197521776, 0.4865656495, 0.0727672353, 0.0616692081, -0.1428969502, -0.0895667002, -0.1569124609, -0.0444327854, 0.0377981663, 0.3760762513, -0.0571965501, 0.1041149199, 0.3804466724, -0.1173128337, -0.2153510302, 0.0217813868, 0.2393888682, -0.1084289327, -0.2037582248, -0.021731317, -0.5195294619, -0.2728666365, 0.2056162804, 0.0130414823, 0.1000806317, 0.3230242133, -0.1054262295, -0.2257852554, 0.1438713074, 0.0650469214, 0.1493531764, 0.040106982, -0.0796518624, -0.0936165452, -0.0056917015, -0.1318436563, -0.0627466366, 0.1535238475, 0.15771842, 0.3516404927, -0.070476912, -0.0087627666, -0.0825980902, 0.0973037854, 0.3517901301, 0.4347662628, 0.1407411695, -0.0306357089, 0.3947172165, 0.2970744669, -0.5094218254, 0.1806078553, 0.3879394531, 0.3607363105, -0.0730341747, -0.1506703645, -0.0504654869, 0.2503889799, -0.2185510844, -0.146192804, 0.3504959941, -0.3115266562, 0.3024222851, 0.1430208534, 0.3508875668, 0.2961014211, 0.1546095461, -0.2565427125, -0.3138021529, 0.1629932076, -0.2991596162, -0.1005359814, -0.1096761897, -0.3435277641, -0.0732408538, 0.4491716325, 0.2249614149, 0.3339297771, 0.1307247281, -0.0456686839, 0.1011582315, -0.2851282656, -0.4623365104, 0.3690940142, 0.0325323418, -0.0324038677, -0.0058948752, -0.2700988948, -0.1267911345, 0.3215006888, 0.0240247641, 0.0201602392, 0.0583686978, 0.0777409524, 0.0127552142, 0.0487494618, -0.0738749802, 0.1537624002, 0.0149453441, -0.3629772365, 0.0582909249, -0.2453488261, -0.0463334695, -0.0935084373, -0.7585221529, -0.1761826873, -0.3346895874, -0.040306136, 0.2386611402, 0.2290699631, 0.2197218835, 0.155139491, 0.2061388195, 0.1241325587, 0.1301218569, -0.0368104391, -0.1414489746, -0.1046101674, -0.0305022076, 0.1273285002, -0.0723787844, 0.0829010233, 0.1874416023, 0.2402451038, -0.2738411129, -0.566129446, -0.0316678584, -0.0450726151, 0.6306042075, 0.2490512282, -0.359346658, -0.324205339, 0.2313188761, 0.5897349119, -0.0427171737, 0.2254868597, 0.3594717681, -0.0859733373, -0.2206723839, -0.3616174459, 0.3093792796, -0.0327619798, -0.2078436166, 0.2410562634, 0.2146817595, -0.1038076654, 0.3323218524, 0.0637742504, 0.1596950889, 0.3333353996, -0.0583831556, -0.2203378826, 0.1170346811, 0.1210968122, -0.2581454515, -0.2353100628, -0.0685075894, 0.21084705, 0.1027470753, 0.0835003629, -0.0877120644, -0.615752399, 0.0433086939, -0.1099514961, 0.0962610915, 0.353250891, -0.0236948393, -0.0236148611, -0.0050310171, -0.2954246402, -0.2439958751, 0.1375763714, -0.2149137557, 0.1514297724, -0.0051485305, 0.1247483194, 0.1719860584, 0.1946256906, 0.3539063334, 0.0950792506, 0.4159370661, 0.0176345743, 0.2028152496, -0.1227411851, -0.4960139394, 0.2217464298, -0.0935747325, 0.0730175674, 0.0644240603, 0.0248821564, 0.2972834706, -0.230075866, 0.4053129852, -0.4326804578, -0.2399406582, -0.1216048449, -0.0679212362, -0.059961684, 0.0068514217, -0.0686789602, -0.4538888931, -0.0174991339, -0.0197700225, 0.0618204139, -0.0652202293, -0.0690513551, -0.1912249774, -0.5020269752, -0.0877895355, 0.301348865, 0.1033227071, 0.3473796844, -0.0139066726, 0.460322082, -0.0922817066, 0.0699032024, 0.4486813843, -0.3780314922, -0.1648924649, 0.4228251576, 0.0128901256, -0.3764897585, -0.049226556, -0.3481476605, 0.1504316926, 0.2173483074, 0.5315402746, -0.3542801738, -0.1013860404, 0.2975426912, 0.0651199892, -0.0705223158, 0.0410902649, -0.1671099365, -0.2446785122, -0.0693640187, -0.1013949811, 0.1543731093, 0.4377832711, 0.1157249212, 0.2029927373, -0.4573968947, -0.187392652, 0.1859021783, -0.1936883628, 0.0104945069, 0.1093763039, 0.0429962054, -0.1465333551, -0.2478699684, -0.0152925896, 0.321136117, -0.038448818, -0.6306096315, 0.0358044542, -0.2560366392, 0.3225226104, 0.0526942424, -0.2152550966, 0.0528168753, -0.3137715459, 0.457875669, -0.0779879317, 0.0748887509, 0.4235399663, 0.065416187, -0.1905527711, -0.1197465882, 0.4245309234, 0.2586818635, -0.1111522466, 0.5211780667, 0.0430512615, -0.3598251939, -0.0759661496, 0.5890725255, 0.697599411, -0.2226119787, -0.2586011887, 0.1672004908, 0.08235313, 0.5033921599, 0.1930380464, 0.1268892437, -0.0474994108, -0.1426632255, -0.0115388054, 0.0176425632, 0.0291978177, -0.0812460557, -0.2721317708, 0.4355116487, -0.323312223, -0.1192598045, -0.050902795, 0.0212955885, 0.1017358527, -0.3318383694, 0.0844055116, 0.1085777581, -0.0523185246, -0.0902347341, -0.129212603, -0.0444773175, 0.0880724937, -0.0783500373, -0.3915769458, -0.2225096822, -0.2379126251, -0.0229874551, 0.17375049, 0.2766942978, -0.0461666547, 0.3717232943, 0.8833092451, -0.0897017792, -0.2677647471, 0.0498957559, -0.4189756811, 0.1067225784, -0.1613910049, -0.0561747812, 0.3169288337, 0.0474150702, 0.1192993, 0.1314162016, 0.1853277832, -0.0921995863, 0.0002037305, 0.0091382172, -0.1528535783, -0.0397047102, 0.1344157755, -0.1465821266, 0.1696138084, -0.2701959312, 0.0309948456, -0.0420934409, 0.0146137355, 0.3356791139, -0.1573172659, 0.0131882951, 0.1277576238, 0.0560103655, -0.0134667158, -0.1197616979, -0.0039820275, 0.1132160351, -0.0096258204, -0.055326283, 0.0066843037, -0.1056761593, -0.2056486607, 0.4466663301, 0.2419058532, -0.1288340837, 0.2151125818, 0.7306461334, 0.0171225481, 0.1984629035, 0.0083932336, -0.44109267, 0.0696255118, 0.279954493, -0.362909466, -0.2672876716, -0.3785533607, 0.2672266066, 0.0635080859, 0.0819192305, -0.2287498713, -0.0512527525, -0.3522161841, -0.0120718507, 0.0662598759, -0.123513326, -0.0876620337, 0.2427787781, 0.0234479494, -0.0590097047, -0.1183173358, -0.0645191893, -0.3597302735, 0.1503220499, 0.1956709176, 0.0865001082, -0.0612367652, -0.1852580756, -0.264867872, -0.2953040004, -0.2420811355, 0.3174175024, -0.1273349077, 0.1342581213, -0.2086670846, 0.4146332741, 0.206297338, 0.010060898, 0.2734768093, 0.2579460144, -0.1087882891, 0.1787583232, 0.2047467381, 0.0324224085, -0.3954739869, -0.0599184148, -0.0124583896, -0.0995979309, 0.2261800766, -0.1581044048, 0.2550154328, 0.3032355607, 0.2987625003, 0.0989711806, -0.1419444978, 0.0377801619, -0.045291137, 0.0828033015, -0.0907505378, -0.342012465, -0.1665182561, 0.1157024205, 0.1041974202, 0.4284947217, 0.2192297727, 0.1410687715, 0.1890289783, -0.2953189313, 0.2003721744, -0.1582856178, -0.1535173357, 0.2303365916, 0.2160970271, 0.1102142707, 0.5138719082, 0.097005792, 0.3311566412, 0.5222992301, -0.2508504391, 0.1869079322, -0.0841610134, 0.0725289136, 0.0303892232, 0.0947312936, 0.160116747, 0.0957944691, -0.2019712478, -0.0214734618, -0.4733525217, 0.0767649859, -0.7301219702, -0.2037559897, -0.3301918507, 0.4148747027, 0.0914105177, -0.2277125269, -0.3952121735, -0.1649127305, -0.117516689, -0.1400968283, -0.1764772683, 0.2861174941, 0.3323251307, -0.0380240716, 0.1797473878, -0.2377054393, -0.7110537887, 0.4802882373, 0.2804577947, -0.1638117135, 0.2355115414, 0.2511023283, 0.1285536736, 0.101456143, 0.6210409403, 0.4934692383, 0.3399622738, -0.1255110651, -0.2191708237, -0.2566691041, -0.1811929643, -0.0969048291, 0.1962875426, 0.4486636817, 0.0767924562, 0.1382713169, 0.0415116623, -0.160416171, 0.3234142363, -0.3106700778, 0.1860601753, -0.2885330319, 0.2526654005, -0.091609098, 0.0181873813, 0.0682785064, -0.1238181815, -0.3758451343, -0.0621205568, 0.2017791867, -0.0491469391, 0.2422329485, -0.0614360012, 0.0370758809, 0.2704459131, 0.2974847853, 0.0136610949, -0.0163827538, -0.2051001638, 0.0752962008, -0.5276016593, -0.1579041928, 0.1876158714, -0.0403057747, 0.2682581544, 0.0356177874, -0.0518562496, 0.2787482142, 0.2536307573, -0.0934768692, 0.3922419846, 0.1186254323, -0.3982809484, 0.1605593413, 0.1794386953, -0.1133188829, 0.0604969859, -0.2399596721, 0.1822280139, -0.3501205444, 0.0218923502, -0.224232018, 0.2188230157, 0.0837771371, 0.2790904045, 0.24344787, 0.2892825603, 0.4600463808, 0.1918540299, -0.0273396876, 0.0433669873, 0.0758345127, 0.1163826585, 0.0913150683, -0.1747368276, 0.3008782566, -0.3320214152, 0.00739884, -0.1984244585, 0.0825693905, 0.0664646327, -0.1721781045, -0.2462131679, 0.2692370415, -0.3208705187, -0.0951892957, 0.3345552087, 0.4876782298, -0.0352368876, 0.4263415039, 0.0300742649, -0.352009356, 0.3873305321, -0.2040196061, -0.3546740711, -0.1390377134, 0.2584777474, 0.0670103431, -0.1050569788, -0.6502361298, -0.1225928217, 0.2604497671, 0.2896445692, -0.5856111646, 0.2949884236, -0.1904968917, -0.1474586725, 0.0136125032, -0.3887823224, -0.0953039676, 0.0316895135, 0.1335059553, 0.2647955716 ]
https://github.com/huggingface/datasets/issues/2554
Multilabel metrics not supported
Sorry for reopening but I just noticed that the `_compute` method for the F1 metric is still not good enough for multilabel problems: https://github.com/huggingface/datasets/blob/92a3ee549705aa0a107c9fa5caf463b3b3da2616/metrics/f1/f1.py#L115 Somehow we should be able to change the parameter `average` at least
When I try to use a metric like F1 macro I get the following error: ``` TypeError: int() argument must be a string, a bytes-like object or a number, not 'list' ``` There is an explicit casting here: https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/src/datasets/features.py#L274 And looks like this is because here https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/metrics/f1/f1.py#L88 the features can only be integers, so we cannot use that F1 for multilabel. Instead, if I create the following F1 (ints replaced with sequence of ints), it will work: ```python class F1(datasets.Metric): def _info(self): return datasets.MetricInfo( description=_DESCRIPTION, citation=_CITATION, inputs_description=_KWARGS_DESCRIPTION, features=datasets.Features( { "predictions": datasets.Sequence(datasets.Value("int32")), "references": datasets.Sequence(datasets.Value("int32")), } ), reference_urls=["https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html"], ) def _compute(self, predictions, references, labels=None, pos_label=1, average="binary", sample_weight=None): return { "f1": f1_score( references, predictions, labels=labels, pos_label=pos_label, average=average, sample_weight=sample_weight, ), } ```
36
Multilabel metrics not supported When I try to use a metric like F1 macro I get the following error: ``` TypeError: int() argument must be a string, a bytes-like object or a number, not 'list' ``` There is an explicit casting here: https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/src/datasets/features.py#L274 And looks like this is because here https://github.com/huggingface/datasets/blob/fc79f61cbbcfa0e8c68b28c0a8257f17e768a075/metrics/f1/f1.py#L88 the features can only be integers, so we cannot use that F1 for multilabel. Instead, if I create the following F1 (ints replaced with sequence of ints), it will work: ```python class F1(datasets.Metric): def _info(self): return datasets.MetricInfo( description=_DESCRIPTION, citation=_CITATION, inputs_description=_KWARGS_DESCRIPTION, features=datasets.Features( { "predictions": datasets.Sequence(datasets.Value("int32")), "references": datasets.Sequence(datasets.Value("int32")), } ), reference_urls=["https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html"], ) def _compute(self, predictions, references, labels=None, pos_label=1, average="binary", sample_weight=None): return { "f1": f1_score( references, predictions, labels=labels, pos_label=pos_label, average=average, sample_weight=sample_weight, ), } ``` Sorry for reopening but I just noticed that the `_compute` method for the F1 metric is still not good enough for multilabel problems: https://github.com/huggingface/datasets/blob/92a3ee549705aa0a107c9fa5caf463b3b3da2616/metrics/f1/f1.py#L115 Somehow we should be able to change the parameter `average` at least
[ -0.3035683036, -0.1394245178, -0.0115921395, 0.2726673484, 0.5279554725, -0.1952756643, 0.5079543591, -0.0628860667, 0.2076374888, 0.3886967599, -0.0487108938, 0.2973477244, -0.2217354923, 0.4341044128, -0.2341410816, -0.0707550719, -0.200794518, -0.3434455097, 0.0283415653, 0.0905188397, -0.5077167153, -0.0101844408, -0.3638970554, -0.1156726778, -0.2270053178, -0.0182497334, 0.0979766548, -0.1754833162, -0.2296996266, -0.2378179431, -0.0170333404, 0.0496578254, -0.0639618933, 0.450504154, -0.0001181713, -0.1012786776, 0.2459929138, 0.0301738549, -0.1078460738, -0.1841436177, 0.118520245, -0.1648152918, 0.00867547, -0.2204948813, 0.0698254928, 0.0688105002, -0.3488446176, -0.1419553608, -0.0720501915, 0.1873778999, 0.1253160387, -0.0324132815, 0.4248093069, -0.0607890561, -0.14719446, -0.0582396425, -0.2666978538, 0.1949736774, 0.0434954651, 0.1868584901, 0.2032804936, 0.4220105112, 0.0376621746, 0.1651243567, 0.3003550172, -0.0706614926, 0.1455162466, -0.151096344, -0.1603524089, 0.3080407381, -0.0564502217, 0.0158033054, -0.6358948946, -0.0480697453, 0.0732045099, -0.9119993448, 0.0503682904, -0.181133315, -0.0580250435, -0.2335210294, -0.4666310549, -0.2487321496, -0.0932468921, 0.1711520106, -0.2652582228, 0.4843779504, -0.1763255149, 0.2777335048, 0.435023278, -0.112200819, -0.1716597974, 0.0254650209, 0.0770561546, 0.1215124801, -0.3768211007, 0.1403739601, -0.1167217866, -0.0248238482, 0.1302331537, -0.0911491811, -0.1382237375, 0.2172362208, -0.3093180358, 0.0455196835, 0.079106383, 0.4002380669, 0.1860452592, 0.0681055337, 0.1556662172, 0.1317172348, -0.2332745939, -0.1504368186, -0.0671364814, -0.4312772453, 0.2790434659, 0.290759325, -0.1808720678, 0.0184556041, -0.3957630694, -0.0691110492, -0.1570845246, -0.1049992144, 0.6134382486, 0.002076328, 0.0024143655, 0.2750532627, 0.1013450325, 0.3778008521, 0.1015056819, -0.1680466235, -0.0518773235, 0.0401670039, -0.2671670616, 0.1157810241, 0.1327093691, -0.072962448, 0.0199625958, 0.0590318069, 0.5086397529, -0.2617493272, -0.1435309201, -0.2925724387, -0.1798053831, 0.1468339413, 0.0079845302, 0.1366335601, 0.2490804642, -0.2459861934, 0.0537580326, 0.0275275223, -0.3923942745, -0.0230284799, -0.0181884561, 0.063286148, 0.0652691424, 0.1628027707, -0.2335097045, 0.2275537997, -0.0998219326, -0.0122993952, -0.0417278521, -0.378372103, -0.2402634472, -0.1465387195, 0.2956344485, -0.0826121047, 0.1374737471, -0.0433107242, -0.0983721986, 0.2437229902, 0.0620562099, 0.1477962136, -0.0356191322, 0.1494096071, 0.057872925, -0.124884136, 0.5698589683, -0.8263213038, -0.0543431193, -0.065369688, 0.1196311414, -0.1838829219, 0.220729962, 0.1236061007, -0.0622567981, -0.2049982697, 0.5292375684, 0.0287634507, 0.0766925067, -0.1654119939, -0.0452031642, -0.1814797521, 0.0025855997, 0.0323277041, 0.3556852341, -0.0662943348, 0.0673360601, 0.3843099475, -0.1288644075, -0.1662785709, -0.0372042619, 0.2379477024, -0.0756338462, -0.2940783501, -0.0374396518, -0.4888574481, -0.2748551667, 0.192436412, 0.0066632959, 0.1104378551, 0.3544667363, -0.1245580837, -0.1399171948, 0.1633470505, 0.0518832505, 0.1366386116, 0.0298616812, -0.0129006999, -0.1285594702, -0.0476550348, -0.1187305152, -0.0693060458, 0.1510061175, 0.1082297713, 0.3569383621, -0.1020133942, 0.0569276214, -0.0941227153, 0.1031104475, 0.319862932, 0.4424265623, 0.1030009687, -0.0148115754, 0.3644594252, 0.2707090378, -0.4229558408, 0.1699448675, 0.3826810122, 0.3953569233, -0.0745730996, -0.1939986944, -0.0692257136, 0.2463511527, -0.2268753648, -0.1467501819, 0.2875626385, -0.3185439408, 0.3226968646, 0.1468407959, 0.3217115402, 0.2566595972, 0.2015049458, -0.24838081, -0.3016524315, 0.1658365875, -0.2003803998, -0.0158550311, -0.1455265284, -0.2880691886, 0.0146936579, 0.5453437567, 0.189528048, 0.3373411298, 0.1228361875, 0.0022846162, 0.0369545482, -0.2580640912, -0.4948501289, 0.333432287, 0.0415718555, 0.0284385234, -0.042670276, -0.2553108037, -0.1827680022, 0.3511209786, 0.0407592282, 0.0417344272, 0.0486371405, 0.079275474, 0.007195896, 0.0633728057, -0.0573911108, 0.1333843917, 0.0825736299, -0.3026276231, 0.0838804841, -0.286149323, 0.0715978742, -0.0622958466, -0.6351693273, -0.2106032819, -0.421453923, -0.0522998013, 0.2899973989, 0.2163307667, 0.2177073956, 0.2216138989, 0.2261154354, 0.1186273023, 0.0726357996, -0.0117892111, -0.1280404776, -0.1157168448, -0.0338570625, 0.1182903871, -0.0389686301, 0.0646378323, 0.1184933484, 0.2596381009, -0.3274493814, -0.5238180161, 0.0096469969, -0.0023180095, 0.6806576848, 0.2396691144, -0.3911103308, -0.2965577245, 0.2758676112, 0.4702566564, -0.0445794538, 0.1978141814, 0.3061754405, -0.1598013341, -0.2040159255, -0.3154520392, 0.2829876244, -0.0351804569, -0.229897365, 0.3096043169, 0.2033864111, -0.1084304154, 0.2454042435, 0.0371378995, 0.1479744911, 0.3892917633, -0.1050507426, -0.2885062397, 0.0849886462, 0.1321377456, -0.2123171538, -0.2019444108, -0.1721075773, 0.2234291583, 0.1149440408, 0.2029726654, -0.0886675492, -0.534219563, 0.0833121687, -0.0871445164, 0.1108506247, 0.4103128314, 0.0605781935, -0.0183370709, 0.0032284367, -0.275408268, -0.2222479135, 0.1004620567, -0.1534584314, 0.0651964247, 0.1034804583, 0.03158639, 0.1391022205, 0.2355812788, 0.3162110746, 0.0807731897, 0.4098395407, -0.0718537122, 0.218760401, -0.1353748888, -0.4852564037, 0.2366565764, -0.0293112919, 0.0637451038, 0.0003432209, -0.0373083614, 0.332139194, -0.2468419671, 0.4416352212, -0.4530459046, -0.2802245319, -0.1262871325, -0.1086268723, 0.0122067528, 0.0557018854, -0.0226969458, -0.4287645817, -0.0132817086, 0.0135989878, -0.0104163392, -0.0004295489, -0.1852101833, -0.2084757388, -0.4832109213, -0.1264761686, 0.4024681151, 0.1301037669, 0.3374901116, 0.0287804194, 0.43505615, -0.1390091628, -0.0403735489, 0.5147566795, -0.4590619504, -0.1412938684, 0.4476597607, 0.0197138153, -0.3938907385, 0.0278178137, -0.3830909729, 0.212266624, 0.1623961926, 0.6236377954, -0.3682295084, -0.0816676766, 0.2887713313, 0.1339587122, -0.0978650376, 0.083819896, -0.2146111429, -0.2841815352, 0.0105296019, -0.0859451294, 0.0725948587, 0.4062847495, 0.136797756, 0.1636823714, -0.48122859, -0.1936876029, 0.1632974893, -0.0983949527, -0.0221963618, 0.0883272812, 0.0435754471, -0.0240992103, -0.3122675121, -0.0033534619, 0.2379683703, -0.057990592, -0.5607475638, 0.0877630115, -0.2456340641, 0.3544653058, 0.0905086473, -0.1839895397, 0.0610413551, -0.2522741556, 0.4479466975, -0.0803398266, 0.0964906216, 0.4201107919, 0.0571895689, -0.1538921595, -0.155444026, 0.4155262113, 0.2977341413, -0.1724987626, 0.6108782887, 0.0216537286, -0.3472603858, -0.1706914604, 0.6161466837, 0.6639267802, -0.2066730559, -0.2987071276, 0.2021196634, 0.0444425344, 0.540915072, 0.1005120426, 0.1469127983, -0.0538451411, -0.1764273643, 0.0171478353, -0.0166474599, 0.0715170652, -0.0881133899, -0.21822384, 0.557503581, -0.3076177239, -0.1142053083, 0.0021899894, 0.0324716531, 0.0754408911, -0.3979290724, 0.1622661799, 0.0805336386, -0.0580164678, -0.0754992515, -0.1855303049, 0.0116054537, 0.1716579944, -0.0915442854, -0.370847702, -0.2656002641, -0.271787703, -0.0476573445, 0.1762358695, 0.2704451382, -0.0846000537, 0.2991430461, 0.8558817506, -0.0116379196, -0.2348211706, 0.0589857511, -0.3892523646, 0.1896024793, -0.1305045187, -0.0772087127, 0.2942247689, 0.062881887, 0.0110232541, 0.0926620513, 0.1704238355, -0.1177794412, 0.0257419087, -0.0066217389, -0.1653598398, 0.0760290027, 0.1200925931, -0.0113344723, 0.1125374138, -0.3949178457, 0.0053177816, -0.0722496435, -0.0044950149, 0.3781265318, -0.1756124943, 0.0062615019, 0.1706741452, 0.0048896777, -0.0051196869, -0.1403318644, -0.0576636083, 0.0286800899, 0.0392246954, -0.0969320834, 0.0809353292, -0.1064524353, -0.1592379361, 0.4562660158, 0.1435734332, -0.1438360065, 0.1480884552, 0.7533919215, -0.0004885232, 0.1591463685, -0.047555577, -0.3646162152, 0.1116717681, 0.3577154577, -0.2784807384, -0.2859059572, -0.3850752115, 0.2139019519, 0.0290761217, 0.0967321545, -0.2131343186, -0.0108728893, -0.2843225598, -0.0635458231, 0.0271256175, -0.0502100065, -0.0277046878, 0.221449405, 0.044794526, 0.0052579972, -0.1235498115, -0.0783799589, -0.4102925062, 0.148869276, 0.1323848814, 0.054144226, 0.0750828087, -0.2141271979, -0.2896640897, -0.3037726581, -0.2342744917, 0.2793232501, -0.1053453311, 0.0354906879, -0.2097341567, 0.4091101885, 0.1177299246, 0.0389309861, 0.2927899659, 0.3148605227, -0.1084972695, 0.2424073219, 0.2830344141, 0.0008612058, -0.3876786232, -0.1158941761, 0.0054730899, -0.1115065366, 0.1811027378, -0.1212885231, 0.1386212558, 0.2339930683, 0.3237860203, 0.1617050022, -0.0664262623, -0.0123159355, -0.0142454179, 0.0712426156, -0.1079101264, -0.3683266342, -0.1311350912, 0.0847252905, 0.1417578012, 0.5126973987, 0.2507160604, 0.2212904841, 0.0949862152, -0.3263396025, 0.2063414156, -0.2276975363, -0.1602872461, 0.1430658102, 0.1590322703, 0.1470094025, 0.5661742091, 0.0609813333, 0.3426525593, 0.5054733157, -0.182248801, 0.2103269845, -0.0272385646, 0.109435156, 0.0462149456, 0.1496864557, 0.1407660991, 0.0750285685, -0.2674597204, 0.0539104715, -0.4678496718, 0.0239340737, -0.7974925041, -0.1844594926, -0.2857256532, 0.4195899963, 0.0965254083, -0.2490950376, -0.3619530797, -0.2362871915, -0.0818070769, -0.0646844655, -0.0726228729, 0.2890297771, 0.3497767746, -0.0253406223, 0.2504763305, -0.209817335, -0.6478792429, 0.3652255535, 0.3385468721, -0.1728705615, 0.2750793695, 0.2544651628, 0.1327460855, 0.0200424436, 0.7073169947, 0.4493399858, 0.2458345741, -0.1712513119, -0.2525149882, -0.2522231638, -0.1348089874, -0.1772544682, 0.167236954, 0.4269743264, 0.0764944777, 0.1227211356, 0.0492843054, -0.1683040112, 0.3767496347, -0.2033344954, 0.2121346742, -0.3496582508, 0.2615742385, -0.1249269545, -0.0262444261, 0.1427100748, -0.0710664988, -0.2982412875, -0.0213236045, 0.2221459597, -0.0719828978, 0.1998955011, -0.0216619801, 0.0389641076, 0.3083912134, 0.3606538773, -0.0230534803, 0.0231490191, -0.2352006882, 0.0543157123, -0.6244332194, -0.128247425, 0.1995550841, -0.0330840833, 0.256249696, 0.07414186, -0.0078197364, 0.3090800047, 0.3250440955, -0.1978395134, 0.4320264161, 0.0404992439, -0.4154109359, 0.1098872572, 0.2035483569, -0.1184364408, 0.0256227329, -0.3724908531, 0.1530650705, -0.3371734321, 0.0345190205, -0.2355397344, 0.1978136301, 0.1328769326, 0.2812320292, 0.3255493939, 0.291090548, 0.3564448655, 0.1634210199, -0.108561106, 0.1113988012, 0.1001248062, 0.1437688023, 0.0745498314, -0.2126615345, 0.2866818905, -0.3150634468, 0.0298423115, -0.2774944901, 0.0622097589, 0.073056154, -0.1122750416, -0.286187917, 0.270614177, -0.2592399418, -0.1519725174, 0.3597266078, 0.5490156412, -0.100695312, 0.3713226616, -0.0160838049, -0.2133921534, 0.3313410282, -0.1447699368, -0.4060185254, -0.1474425048, 0.3169015646, 0.1300832182, -0.0906787664, -0.5937150717, -0.1660218984, 0.3527287245, 0.2629032731, -0.5617900491, 0.2547889948, -0.2364562154, -0.2303685546, 0.0116928201, -0.4590011239, -0.1015457213, -0.061274033, 0.1327410191, 0.2433957458 ]
https://github.com/huggingface/datasets/issues/2553
load_dataset("web_nlg") NonMatchingChecksumError
Hi ! Thanks for reporting. This is due to the WebNLG repository that got updated today. I just pushed a fix at #2558 - this shouldn't happen anymore in the future.
Hi! It seems the WebNLG dataset gives a NonMatchingChecksumError. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('web_nlg', name="release_v3.0_en", split="dev") ``` Gives ``` NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://gitlab.com/shimorina/webnlg-dataset/-/archive/master/webnlg-dataset-master.zip'] ``` ## Environment info - `datasets` version: 1.8.0 - Platform: macOS-11.3.1-x86_64-i386-64bit - Python version: 3.9.4 - PyArrow version: 3.0.0 Also tested on Linux, with python 3.6.8
31
load_dataset("web_nlg") NonMatchingChecksumError Hi! It seems the WebNLG dataset gives a NonMatchingChecksumError. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset('web_nlg', name="release_v3.0_en", split="dev") ``` Gives ``` NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://gitlab.com/shimorina/webnlg-dataset/-/archive/master/webnlg-dataset-master.zip'] ``` ## Environment info - `datasets` version: 1.8.0 - Platform: macOS-11.3.1-x86_64-i386-64bit - Python version: 3.9.4 - PyArrow version: 3.0.0 Also tested on Linux, with python 3.6.8 Hi ! Thanks for reporting. This is due to the WebNLG repository that got updated today. I just pushed a fix at #2558 - this shouldn't happen anymore in the future.
[ -0.1927949041, 0.1298391968, -0.1363759488, 0.0406425297, 0.2651570141, 0.0086786011, 0.1319974065, 0.4511446953, 0.2963728905, 0.0861961618, -0.0655138269, 0.2723963559, 0.0220884588, -0.0255217608, -0.2154659778, 0.5214449763, 0.0755514726, 0.016244553, -0.1093695909, -0.1461788863, -0.2066716701, 0.1184714809, -0.0733739361, -0.1003213525, 0.0636148602, 0.2236550152, 0.249917537, 0.2134232521, -0.1248323992, -0.2628316283, 0.3232801557, -0.0495469235, -0.085111253, 0.221103847, -0.0001071248, 0.1515758187, 0.3256530166, -0.0256443247, -0.4283015728, 0.0641527623, -0.5148388147, -0.5065797567, -0.0188271161, -0.200654611, -0.0035360558, 0.2438148856, 0.0948675275, -0.1746025234, 0.1221944317, 0.1583403349, 0.2839369476, 0.5558201671, -0.0055378033, 0.1301894039, 0.0390268452, -0.1125152558, -0.1401674598, 0.2185910195, 0.0809828341, -0.1305689812, -0.3386831582, 0.1725436449, -0.2540835142, 0.2696689367, 0.1147568822, -0.0982422903, 0.2315460742, -0.0817005783, 0.1634391844, 0.3882213235, 0.1614827067, -0.2111611962, -0.2111984342, -0.1415818334, -0.0977409184, -0.0648085028, 0.2398228645, 0.3723762631, -0.2639213502, -0.0806602016, -0.3824214637, 0.2406359762, 0.1303239316, 0.1618117839, 0.0931689367, 0.245806843, 0.0526397787, -0.0170342941, -0.0117075359, -0.2015505135, 0.1708226651, -0.4176908135, -0.1616998762, 0.0688047335, -0.5657449961, -0.123465389, 0.2419982553, 0.5164672732, 0.3947959244, 0.4451565444, 0.2517744005, 0.2448197007, -0.2092459053, 0.1271483898, -0.0440325215, 0.1494940221, 0.2171943337, -0.0837604851, 0.325415194, 0.002421269, 0.0263355598, 0.2340878695, 0.1602005661, -0.1498557776, 0.5749759674, 0.0011792363, 0.1858931929, -0.1588829607, -0.2398215532, 0.2297268808, 0.1152854785, -0.1611860245, 0.0508992188, 0.3672364056, -0.1573460996, 0.2044910192, -0.0839352831, 0.1732860506, -0.1468555927, -0.2998721898, -0.2878327668, -0.2022191137, -0.0596313514, -0.029689569, 0.205213964, -0.0602191202, 0.3227382004, 0.1260930747, 0.015207503, -0.0398382172, 0.1705983132, 0.103545174, -0.0805900767, 0.2938563228, 0.0489570498, 0.1108822823, 0.2325152904, 0.0842918381, -0.151392296, 0.0721646324, -0.1199173853, -0.210670203, 0.0581683367, 0.2775703669, -0.3827540576, -0.1413073093, -0.0195728019, -0.4089503586, 0.2865953147, -0.0916861594, 0.0641915575, -0.2404455841, -0.1441321075, -0.2984171808, -0.1050309092, 0.1696689129, 0.237700209, -0.0296222307, -0.1784471571, -0.1316381544, 0.3148429692, 0.3782691956, -0.1069781557, -0.1547897458, -0.2393768877, 0.1331306249, 0.5495229959, -0.1487933248, -0.4355502129, 0.1457469463, -0.0122828959, 0.2730146646, -0.1001162454, 0.2468241006, -0.428412199, 0.0206718259, -0.2852044106, 0.2863257527, 0.0123608103, 0.2956213057, -0.244298622, -0.2357426584, 0.5397990346, 0.0765879974, -0.0410943963, -0.0127480133, 0.1415347308, -0.2447985858, 0.328438729, -0.2872791886, -0.0617065318, 0.0739207566, 0.2371891141, 0.0206661541, 0.0100722453, -0.0122239059, -0.5249135494, 0.2644129097, -0.1044164374, 0.0427522734, -0.024928879, -0.0707205832, -0.1582022011, 0.0300223585, -0.1433980167, 0.0346073844, 0.1706936508, 0.5151421428, 0.2642632127, 0.0445590764, 0.0240485407, 0.2835568488, -0.3699107468, 0.0000204984, -0.530688405, 0.2723833025, -0.0884008706, -0.0901311338, 0.0843473449, -0.0441489257, -0.0575296655, 0.1041354164, -0.2234271765, 0.3572005928, 0.0527737252, -0.0378874354, 0.0728340894, 0.3291752338, -0.1157856956, -0.2637718618, -0.072094366, 0.6472373009, 0.1213915944, -0.1078890562, -0.1684263349, 0.5147510171, -0.1285653561, 0.1689171642, -0.0175981503, 0.1398558617, 0.2636687458, -0.162063092, -0.2084147483, -0.1159799919, 0.2796031535, -0.1819341779, 0.2042545527, 0.1351904422, -0.233116731, 0.0146668693, 0.4084136486, -0.1645732075, 0.2219511867, 0.133952409, 0.2364457846, -0.2454289794, -0.0098471353, 0.1951207817, 0.366452992, 0.1531024873, 0.0423471518, 0.0599133968, -0.2892881334, -0.2328203321, 0.0300006419, 0.0216760747, 0.2292786539, 0.2969279289, 0.2905499339, -0.296640873, -0.4513903558, -0.1066412553, -0.0866572931, 0.2381995916, -0.3005838394, -0.0691236779, -0.3129396141, -0.2774089575, -0.2933868766, -0.3166305721, -0.4951164722, -0.5132744312, -0.0091082836, 0.056307219, -0.1829122007, 0.3383722305, -0.4450570941, 0.0377307385, 0.1850382388, 0.0869437605, -0.0377459154, -0.1209626943, -0.0876408219, 0.0553463623, 0.3775406778, 0.0115629779, 0.3231645823, -0.3149308264, -0.0758113563, -0.3380955458, -0.228726849, 0.0264027473, -0.0950910598, 0.0999895483, 0.2130421698, 0.2359593511, -0.0065547097, -0.1909572035, 0.3453706503, -0.2321028858, -0.4061723948, 0.3326813579, -0.0245838407, -0.0256825779, 0.0126291914, -0.0888280869, -0.0977618471, -0.2715516984, -0.0555887967, 0.1748379767, 0.2174036801, 0.2924055755, -0.0828535855, -0.074979417, 0.1126664951, 0.4408071935, -0.3611868024, -0.5222999454, 0.4244416952, 0.04663435, -0.3514764309, -0.1904100329, -0.0677131712, 0.238667652, -0.0087472713, -0.4237617254, -0.1579840034, -0.3770033717, 0.2211370617, 0.1855118871, -0.0317658596, 0.1636945158, 0.0585967712, -0.120981887, -0.3027125597, -0.0790316612, 0.1829792112, -0.265840739, 0.2607698143, -0.1361594945, 0.2820148468, -0.0035262331, 0.2051794678, 0.4078884423, 0.0132675357, 0.0129669411, -0.0036060729, 0.3086514175, -0.0445416756, -0.2472735643, -0.1389978677, 0.0274223723, 0.0640770867, 0.2704856992, -0.013737916, -0.139964506, -0.057653822, 0.0702785105, -0.1378273219, -0.2034450918, 0.0669689178, -0.0615938567, 0.1262951344, 0.1868983656, 0.1167983636, -0.2275165617, -0.3898286521, 0.0272281989, 0.2789313495, -0.2099248767, -0.0508674607, -0.3776348829, 0.0720060989, -0.0977067724, 0.3176907897, 0.1439626515, 0.4831461012, 0.2175762206, -0.4104097188, -0.0094879055, -0.1612324566, 0.1295083165, -0.4809757769, 0.3939151168, 0.0182962511, 0.1202988848, -0.4662638009, -0.1257723868, 0.0240088906, -0.2370338589, 0.5430127382, 0.0031227709, -0.1567393541, 0.0069203647, 0.0016441178, 0.36306265, -0.1951061934, -0.2624640465, -0.4572243989, -0.042518314, -0.3031874597, -0.0849628001, -0.2918833494, 0.1151710153, -0.0952508748, 0.1547553688, -0.0363610387, -0.0599315353, 0.2803000212, 0.1140878424, 0.0919067711, 0.0681540295, 0.2160035074, -0.3673735559, 0.1742975861, -0.0950673744, 0.629080534, -0.0904103592, -0.4050771892, -0.0200798325, -0.1138671711, -0.2192773223, 0.1024183556, 0.0712338984, -0.0211346634, 0.3180245757, -0.0292252135, -0.1321377158, -0.0529644601, -0.06548471, 0.0568436161, -0.3134824634, -0.2322529256, 0.2438938916, 0.0249278378, -0.0923280567, 0.309695065, -0.316983819, 0.0038188288, 0.1991739124, 0.2315116525, 0.8551763296, 0.0946298689, 0.0524025671, 0.2603978515, -0.2381093055, 0.0461067855, -0.2218381464, 0.1222625002, -0.3847219646, -0.1620905995, 0.0296291038, -0.2397549003, 0.1104679629, 0.1308331639, 0.04565797, 0.3157446384, 0.0824448541, 0.2654356956, 0.0267857257, 0.2626693547, -0.1982166618, -0.0077396305, -0.1783959568, 0.2799905241, -0.1096338257, 0.2839102745, -0.024588136, -0.0027103974, -0.0680271834, -0.1203389987, -0.308773309, 0.3578499854, 0.2986805141, 0.3499224186, 0.3109761178, -0.0301482733, -0.4435334504, 0.2308915406, 0.3204564452, 0.1709215194, -0.2796055973, 0.1042746902, 0.329826504, 0.3211562037, -0.0569299124, 0.0360348672, 0.298628062, -0.0342516899, -0.1673175395, -0.01132649, -0.0020909661, -0.4932835698, -0.0464097857, -0.0454821251, -0.3058386147, -0.2540878057, 0.0605031997, 0.0196042508, 0.160330832, -0.2026751488, 0.1930449456, 0.2711468935, -0.1588139385, 0.2549833357, 0.0608974732, -0.3740060031, -0.2073374838, 0.5218607783, 0.1486141831, 0.0697737858, 0.3076373339, 0.0654316545, -0.2238654792, -0.2767473459, 0.0103030503, 0.081759192, -0.2700173855, 0.0866528526, -0.2723053992, 0.16384238, 0.0175199974, 0.4179404676, 0.1980933547, 0.2834111452, 0.1301138252, -0.4619598687, -0.1199916527, -0.1962402612, 0.2207475007, 0.2335411459, -0.3102976084, 0.0291034523, -0.0688465312, -0.0642740428, -0.4017803073, -0.1179602444, -0.3063414395, 0.0454382002, -0.0378145725, -0.0823216736, 0.0140702128, 0.0197722521, 0.2036685497, -0.170020625, -0.3156561255, -0.287688911, 0.0085887266, 0.0834122077, 0.0585626066, -0.1869751364, 0.0615147352, -0.0504394993, -0.0372776166, -0.1653628498, -0.0062806914, 0.0559809543, -0.1245548055, 0.2315866053, 0.0302837826, -0.0545867346, 0.1691434681, -0.170431301, -0.485329628, 0.0937885568, 0.0261774734, 0.0188591294, 0.166345194, 0.0416226834, 0.2209568173, 0.1370639205, -0.0457316414, -0.0730072632, 0.3050608933, -0.3060208261, -0.0913370326, 0.3514893353, 0.2890301049, 0.2422014177, -0.3309825063, -0.0974547639, 0.1171244979, 0.3108783662, -0.3707127273, -0.0434041061, 0.2625826895, 0.1552301645, 0.1360213012, 0.0985782146, 0.0700104013, -0.369032979, 0.5197039247, 0.0253091026, 0.1697222739, -0.4504547715, 0.1651879549, 0.3777586818, -0.0752393678, -0.1158109903, 0.1755261719, -0.2276330888, -0.0030604191, -0.0224715006, -0.0467962064, 0.3226106465, -0.1982212812, 0.1586285532, -0.2886132002, -0.4204320908, 0.4601885676, 0.2164719999, -0.1307116598, 0.0211130008, 0.300140053, 0.2406680584, 0.0003143425, 0.2337663174, -0.523720026, 0.2197772115, -0.1660954356, -0.1239840761, -0.1766878963, -0.1308229715, 0.0225971472, 0.3250640631, -0.0398420133, 0.095161967, 0.0081483191, 0.175593853, -0.1504283398, -0.6300575137, 0.0377604775, -0.0301663335, -0.0750702247, -0.2521837056, 0.127486378, 0.3072916865, -0.1701800972, 0.0424118824, 0.3488596976, 0.3462337852, 0.3489651382, 0.2465879917, 0.0129706338, -0.0232695863, -0.0298772249, -0.3037688136, 0.703905344, 0.055810757, 0.0164375938, 0.3652206063, 0.1872574091, -0.1858241409, 0.0569777712, -0.1207121015, -0.1957027018, -0.0281006861, 0.5019014478, 0.0237709768, 0.1474239975, -0.3337138891, 0.2036663443, -0.307210952, 0.0872114897, 0.104113616, 0.2170727998, 0.1662150025, -0.2520650923, 0.1290138513, -0.1272193044, 0.4657265246, 0.1348127872, -0.0919345841, -0.0446530506, -0.384429127, -0.5979167819, 0.2705074549, -0.2651816607, -0.0466285348, -0.0824069008, 0.2728164196, -0.0514358208, 0.1950715929, 0.1734676808, -0.0461843163, -0.1869150102, 0.0627993122, -0.2228789479, 0.0221344065, 0.0849630982, -0.2045164406, -0.045315925, -0.2967481911, 0.2486695349, 0.0341974497, 0.2029131204, -0.0903885365, -0.0434538014, -0.0509296618, 0.2771995664, 0.2398991585, 0.3135383725, 0.524189651, -0.080962874, -0.1597725749, -0.2426403314, -0.1934992671, -0.1248018742, 0.342743516, -0.1332733333, 0.2896223068, -0.048771169, -0.1610382348, -0.2663970888, 0.2788796425, 0.1420767009, -0.2243941873, -0.1259960085, 0.0790792555, -0.238790676, 0.0993520766, -0.2077050209, -0.0864708498, 0.1735780686, 0.4444513917, -0.1318265945, -0.2226051986, 0.4384514391, -0.0963419378, -0.2203107774, -0.2880278528, 0.1975809485, -0.1742270142, -0.2328074872, -0.6331064701, 0.0692529455, 0.3489449322, 0.1409207731, -0.0939427987, 0.2052642852, -0.1768372059, 0.2215217203, -0.0507069863, 0.208462894, 0.1035978645, -0.3344601989, 0.0540775321, -0.1685058624 ]
https://github.com/huggingface/datasets/issues/2552
Keys should be unique error on code_search_net
Two questions: - with `datasets-cli env` we don't have any information on the dataset script version used. Should we give access to this somehow? Either as a note in the Error message or as an argument with the name of the dataset to `datasets-cli env`? - I don't really understand why the id is duplicated in the code of `code_search_net`, how can I debug this actually?
## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] Downloading: 19.1kB [00:00, 10.1MB/s] No config specified, defaulting to: code_search_net/all Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a... Traceback (most recent call last): File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split writer.write(example, key) File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write self.check_duplicate_keys() File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys should be unique and deterministic in nature ``` ## Environment info - `datasets` version: 1.8.1.dev0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 2.0.0
66
Keys should be unique error on code_search_net ## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] Downloading: 19.1kB [00:00, 10.1MB/s] No config specified, defaulting to: code_search_net/all Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a... Traceback (most recent call last): File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split writer.write(example, key) File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write self.check_duplicate_keys() File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys should be unique and deterministic in nature ``` ## Environment info - `datasets` version: 1.8.1.dev0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 2.0.0 Two questions: - with `datasets-cli env` we don't have any information on the dataset script version used. Should we give access to this somehow? Either as a note in the Error message or as an argument with the name of the dataset to `datasets-cli env`? - I don't really understand why the id is duplicated in the code of `code_search_net`, how can I debug this actually?
[ -0.0094925659, 0.0049084597, -0.1037804782, 0.3735045493, 0.0469305515, -0.0595814027, 0.2355327457, 0.2376768738, 0.0580708347, 0.0420987643, -0.0894130915, 0.4072092772, -0.1577005982, 0.104338564, 0.1628590375, 0.0670309365, 0.0143384207, 0.1504512429, 0.1202021912, -0.1288989484, -0.3279085159, 0.2217666358, -0.2497898936, 0.050549794, -0.2336096317, -0.1389333755, -0.2191094905, 0.294609338, -0.1718121916, -0.6023651958, 0.2365139872, 0.2469080836, -0.3047546148, 0.3485264778, -0.0001129588, 0.1454985142, 0.3868984878, -0.0112752588, -0.2460676581, -0.196425736, -0.1086819842, -0.1141097173, 0.0937172398, -0.3164000511, 0.0184594989, -0.1501698047, -0.1131841019, -0.5023263693, 0.8769927621, 0.2101981044, 0.2571645379, 0.2303174734, 0.3121255338, -0.2214270383, 0.2857806385, -0.1449808925, -0.0408079214, 0.4033091664, 0.1780676544, -0.0504529886, -0.0015697205, 0.2535580993, 0.149145484, -0.0922281072, 0.4889208078, 0.0042788694, 0.0523609221, -0.3802722991, 0.1833045185, 0.0842176005, 0.1399860084, -0.2937669158, -0.2534073889, -0.2852418423, -0.0006021963, -0.2383118272, 0.3581799865, 0.113028191, -0.1832092553, 0.1009691805, -0.0234330781, -0.2443879098, -0.0209402367, -0.0669794753, -0.0024758314, 0.0001441442, -0.04068036, 0.1741483361, 0.1436637342, -0.0309496522, 0.2942073643, -0.1335694939, 0.1088614389, 0.2196423858, -0.4874309897, 0.1088526845, -0.0417376235, -0.0666241273, 0.2526277006, 0.0501062311, 0.1586543322, -0.1383235306, 0.0582778193, 0.0365456566, 0.1362116933, 0.1176389754, 0.0247385055, 0.2395917922, 0.1972184479, -0.2188267559, -0.2711264491, -0.0564664975, -0.1785916686, -0.1516629755, 0.4401805997, 0.0809086487, 0.5045515895, 0.0516367219, -0.1957731396, 0.1798706502, -0.1808781624, -0.171925962, 0.0739717856, 0.3315833211, 0.1826923788, -0.3608226478, 0.0812144503, 0.2304952741, -0.1570226997, -0.2011747062, -0.3156379461, -0.1495875269, -0.0772535503, -0.1267665327, 0.2154260874, -0.5755313635, 0.2917332351, 0.2776083648, -0.0764899775, -0.4185130894, -0.0106019396, 0.0661275461, -0.2115840912, 0.1040804982, -0.0396967679, 0.0929642394, -0.0853247419, -0.2381432354, -0.0866199881, 0.2018010318, -0.2155347317, -0.3841584325, -0.011381167, 0.2700185478, 0.0460584983, 0.1273244917, 0.0172672123, 0.0344305784, 0.2237823904, 0.1911879033, 0.037422318, -0.0336896926, -0.0244739484, -0.3202981949, 0.2307136208, 0.6258887053, -0.1388696134, -0.0994994268, -0.1661605388, -0.0337914489, 0.086695902, 0.3992448747, -0.2378602922, 0.4269875288, -0.316138953, 0.2103261948, 0.706799686, -0.2062660307, -0.3250536621, 0.1362059265, -0.2523131371, -0.1497699916, 0.1035354212, 0.0269966852, 0.1862992495, 0.0956459641, 0.1519938409, -0.0751007572, 0.073393181, -0.0979357436, -0.384691149, -0.3182410896, 0.1399687827, -0.0788121149, 0.1862506717, -0.1908338666, 0.2699960172, -0.1556686163, 0.0582116731, -0.1312348098, -0.1205602661, 0.0026751203, 0.2714605033, 0.0408044122, 0.0887514427, -0.0086453082, -0.4823822081, 0.3747634888, -0.3360303342, -0.2697580159, -0.1959292889, -0.3034651875, -0.3515292406, 0.1438822746, -0.5467951894, 0.0142954336, 0.2060533166, -0.0663145706, 0.2171559781, 0.1020639166, -0.1769398451, 0.1594812423, 0.0542384014, 0.1100347266, -0.2068196386, 0.2509878576, -0.4732957482, -0.0428256355, 0.0588916205, 0.2304444164, 0.3486604989, -0.1266707331, -0.1688675135, 0.4440194368, -0.2193268836, 0.0511579476, -0.0163344443, -0.0888499841, 0.1398422569, -0.3815082014, 0.2165362984, 0.2500268519, 0.1734208912, -0.1731624901, -0.0787189826, 0.3603439033, -0.1116795912, 0.0948638767, -0.0413670316, -0.0870466083, 0.0792675763, -0.119779259, 0.1631212384, -0.1041849032, 0.2782208622, -0.3106932044, 0.3890617788, 0.1747396439, -0.2443795204, 0.1206957549, 0.2313815206, -0.0408062562, 0.1052944139, 0.012035816, 0.0323845483, -0.1912029237, -0.2877427638, 0.2358517051, 0.3477756381, 0.1541770697, -0.0584748164, 0.2757796943, -0.0113030672, -0.2352380604, 0.3930315971, -0.1218939051, -0.1429180354, 0.397644341, 0.1085421294, 0.0489773527, -0.3879252672, -0.1217015237, 0.1714472175, 0.0767206624, -0.2829785943, 0.0125736045, -0.1297804564, -0.0831946954, -0.4565392435, 0.5397937894, -0.1158734113, -0.1127380952, 0.2520346344, 0.0170566961, 0.0975918993, 0.1204397157, -0.2307249457, 0.1806777716, -0.0148846554, 0.1146530956, -0.2355742007, -0.1124268323, -0.0771905482, 0.0374281257, 0.3936968148, -0.0605512485, 0.572028935, -0.188927412, 0.1064836085, -0.1775656641, -0.3476791978, -0.0131596196, -0.004104224, 0.1664581001, 0.0505311526, -0.1058805361, -0.0353348553, -0.3789184391, 0.2900123, -0.3102481365, -0.4068110883, -0.0542965047, 0.0398770459, -0.064637281, -0.214924857, -0.5273546576, -0.2650466263, -0.2430536598, 0.3169803023, -0.096215263, 0.1279310435, 0.3379570246, -0.1227712631, -0.0101921717, -0.0059265085, 0.2016511261, -0.3594237268, 0.048057504, 0.0874655098, -0.0509008057, -0.3533073068, -0.068893306, -0.1448614448, 0.1514539719, -0.0905501321, -0.3825451136, 0.2584376633, -0.2310801893, 0.4560710192, -0.1607943475, 0.3305144012, 0.2242966145, 0.2599558234, -0.1505049616, -0.1858194023, -0.0531725809, 0.1141133979, -0.1253996789, 0.0685935467, 0.1404926628, 0.2881907523, -0.300093174, 0.8568345904, 0.6044371724, 0.0024752731, 0.2031870931, -0.1734144092, 0.354177177, -0.236902535, -0.4189771414, -0.2487497479, 0.0740314722, 0.0248241015, 0.1166034639, -0.0740141273, -0.094957009, 0.1337456703, -0.1691587865, -0.6246012449, -0.3106155694, 0.0508952327, -0.2232752293, 0.150393039, 0.0551999398, 0.0079759872, 0.0529075451, 0.0654390231, -0.0247864686, 0.2386345267, 0.0278170798, 0.0320964828, -0.1855981201, -0.1713013053, -0.3948457539, 0.108728908, -0.1418868303, 0.1687640101, -0.0074772709, 0.1403223574, 0.4162754118, -0.1948323846, 0.6553741097, -0.0820545405, 0.1187015772, 0.1139194444, 0.1600475907, -0.0918411091, -0.1216061041, -0.0004837483, 0.4200726449, 0.1214307398, 0.082867831, -0.2863494456, 0.0328857377, -0.0618457459, 0.2935724556, -0.3494208753, -0.418187052, -0.1062091365, -0.3285909295, -0.5123428106, -0.0003707019, -0.0332545862, 0.2004807144, -0.0638971999, -0.0373942405, -0.1862740517, -0.2158711702, 0.0450355485, 0.213552773, 0.2768928111, 0.0540168099, 0.597494781, 0.4390268624, -0.1527077556, 0.0138948625, 0.7316981554, -0.0312716402, 0.00883538, -0.3602289855, -0.2145641595, -0.1516321003, 0.3003147244, -0.1722507179, 0.1454564333, 0.0643100068, -0.0055783391, 0.0442821719, -0.2298400253, 0.1667324156, -0.2030820251, -0.1967429966, -0.395380795, 0.2921682894, -0.1211483106, -0.3467520475, 0.2700576782, 0.1420117468, -0.1910456419, 0.3929699659, -0.2961892784, 0.9225982428, -0.2770523131, -0.0354181938, -0.1204793602, -0.3473199606, 0.2588879168, -0.0852121711, -0.0664186329, -0.5006070137, 0.0952883437, 0.1400975436, -0.097507529, -0.0751614496, -0.0089118797, -0.3079707623, 0.1783439815, -0.0532487668, 0.0315937176, -0.1495845765, 0.32730937, -0.0030506942, 0.2265322953, -0.0421693288, 0.1000895053, 0.1819887161, 0.2940020561, -0.0690354928, -0.0146774733, 0.1485509276, -0.5788793564, -0.2620587945, 0.0455855057, -0.3623945415, 0.4910859764, 0.0204077307, -0.287994355, 0.2039719224, 0.0256685372, 0.2825467587, 0.1551270634, -0.0330334976, 0.0975019634, 0.3119628727, 0.152838707, -0.1907723993, -0.0541857071, -0.0668797642, -0.0191119201, -0.3339543939, -0.063849546, -0.0981528461, -0.3854924738, -0.1896457821, 0.2295134217, -0.202519387, -0.0292346366, 0.183175385, -0.0261084251, -0.1139788553, -0.2872947454, 0.1506654918, 0.1937768906, 0.0281573217, 0.1674933285, -0.1279280931, -0.159458831, 0.0427714773, 0.1584786326, 0.3779702485, 0.0691798031, 0.4716702104, -0.2742200196, -0.0576696657, -0.2229477912, 0.0907727182, 0.0751189217, -0.6839032769, 0.226848945, -0.3302604854, 0.2216808647, 0.0492411554, 0.4456790686, 0.3728163242, 0.2641699612, 0.0447098613, -0.1884464324, -0.1231538206, -0.0249407571, 0.055702094, 0.2507336438, 0.0327635743, 0.1545563638, -0.0578994863, 0.2285489887, -0.3535399139, 0.2854168713, -0.0628056973, 0.1187647283, -0.0041632513, -0.119392395, -0.1067292914, -0.0584332384, 0.163981691, 0.0769250765, -0.2023906559, -0.2468736917, -0.0515815318, 0.1313583553, -0.0056434679, 0.0820991024, -0.2349616885, -0.2209154069, 0.2747098505, -0.0153558366, 0.2010290772, -0.1215082631, 0.1296389252, 0.0371452384, 0.1333373189, 0.1274614483, -0.2856585383, 0.2258192748, -0.2711217105, 0.3647974432, -0.0204243921, 0.181296736, -0.0559411645, -0.0842083916, -0.3009375036, 0.0659643412, -0.1919425428, 0.1232488453, 0.1786115319, -0.2008000463, -0.1515879929, 0.3735953271, 0.1895247102, 0.5776081085, -0.3747801483, 0.1233210713, 0.0016047205, 0.2342489213, -0.3270577192, -0.1232974008, 0.0141036352, 0.0219934657, 0.2465512604, 0.4026120901, 0.3325182498, -0.2041250765, -0.1000592336, 0.0773330927, 0.4145540893, 0.0431953929, 0.3692278862, 0.4215743244, 0.2249731869, -0.1458378285, 0.3178178072, -0.0088573778, 0.05325488, 0.5327889919, -0.5467886329, 0.1335884035, 0.0073115164, 0.2482733577, 0.2667936683, -0.100690335, 0.4065018594, 0.0637444928, -0.0616155304, 0.0232218504, 0.0591036454, 0.1641821265, -0.1535850316, -0.09861698, -0.0675123483, 0.094041191, -0.1425424665, -0.1154043302, -0.1221370548, -0.2859400213, -0.2399974167, 0.1165323332, -0.0442251675, 0.0304313339, 0.1857381463, -0.0055708298, -0.3209535778, -0.3959377706, 0.2486815453, 0.2477922589, 0.3603604138, -0.3663314283, 0.3189526796, 0.52621454, -0.091874592, 0.1858083755, 0.5166121721, 0.6797175407, 0.2297295332, -0.1870812327, 0.2632653117, 0.1030771062, -0.1497941613, -0.1714253873, 0.1047999188, -0.0949583203, 0.1528459042, 0.1419486552, 0.096375823, -0.1254534572, -0.0555636249, 0.2238545418, 0.097810477, -0.0999177694, 0.2334598899, -0.1785318255, -0.1811482012, 0.0959304646, 0.1979931146, -0.3587415218, -0.0058026072, 0.317854166, 0.2464193702, 0.1359601915, -0.1989136934, 0.1301410198, 0.0504272468, 0.3355688453, 0.2014835626, 0.099532865, -0.2653712034, -0.0299466122, -0.7278295755, 0.0578822941, -0.4435493052, -0.0309018753, 0.2030545622, 0.3628489673, -0.2993820906, 0.0497819781, 0.3716844916, 0.0444038883, 0.0148733044, 0.2185643166, -0.1705696881, -0.0004781025, 0.4338772595, -0.232991308, 0.0971013829, -0.3571490049, 0.3673856556, -0.3747147918, 0.0223203059, -0.1711809784, 0.0642182678, 0.1893087626, -0.2624621093, 0.4224396944, 0.1264918596, 0.3507633805, 0.0014030172, -0.1700939536, -0.2035342604, -0.1124193892, -0.2247007936, 0.2866602242, 0.4753935933, 0.1072759852, -0.0141483899, -0.4560536444, -0.1325496733, 0.237139523, 0.0571238957, -0.0928514302, -0.0732208192, 0.057773944, -0.1940235496, 0.1142316014, 0.033092618, 0.2063195407, -0.1023553535, 0.178099677, -0.2683041394, -0.6693450212, 0.4163754582, -0.1604196429, -0.0692100897, -0.1580541432, 0.3268051147, 0.2550385892, 0.1188758388, -0.6650723815, 0.1800191849, 0.557053268, -0.2718788683, -0.0380280279, 0.1505858153, -0.1034702435, -0.0233364049, -0.0083429283, -0.038936194, -0.0169709027, -0.2956867814, 0.2166406661, -0.3160577714 ]
https://github.com/huggingface/datasets/issues/2552
Keys should be unique error on code_search_net
Thanks for reporting. There was indeed an issue with the keys. The key was the addition of the file id and row id, which resulted in collisions. I just opened a PR to fix this at https://github.com/huggingface/datasets/pull/2555 To help users debug this kind of errors we could try to show a message like this ```python DuplicateKeysError: both 42th and 1337th examples have the same keys `48`. Please fix the dataset script at <path/to/the/dataset/script> ``` This way users who what to look for if they want to debug this issue. I opened an issue to track this: https://github.com/huggingface/datasets/issues/2556
## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] Downloading: 19.1kB [00:00, 10.1MB/s] No config specified, defaulting to: code_search_net/all Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a... Traceback (most recent call last): File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split writer.write(example, key) File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write self.check_duplicate_keys() File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys should be unique and deterministic in nature ``` ## Environment info - `datasets` version: 1.8.1.dev0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 2.0.0
97
Keys should be unique error on code_search_net ## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] Downloading: 19.1kB [00:00, 10.1MB/s] No config specified, defaulting to: code_search_net/all Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a... Traceback (most recent call last): File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split writer.write(example, key) File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write self.check_duplicate_keys() File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys should be unique and deterministic in nature ``` ## Environment info - `datasets` version: 1.8.1.dev0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 2.0.0 Thanks for reporting. There was indeed an issue with the keys. The key was the addition of the file id and row id, which resulted in collisions. I just opened a PR to fix this at https://github.com/huggingface/datasets/pull/2555 To help users debug this kind of errors we could try to show a message like this ```python DuplicateKeysError: both 42th and 1337th examples have the same keys `48`. Please fix the dataset script at <path/to/the/dataset/script> ``` This way users who what to look for if they want to debug this issue. I opened an issue to track this: https://github.com/huggingface/datasets/issues/2556
[ -0.039390035, -0.0147920158, -0.0928234309, 0.3366982639, 0.0873197168, -0.0139397718, 0.200390473, 0.2712211311, 0.0882732868, 0.0667393878, -0.0861996189, 0.3934497237, -0.162392363, 0.1329390556, 0.1347278208, 0.0915051699, -0.0428926237, 0.1898691654, 0.1181888953, -0.0561206155, -0.318374455, 0.2934966683, -0.2228165567, 0.0328286886, -0.2074046433, -0.1297895014, -0.1850282103, 0.2394025624, -0.1695125252, -0.6275756955, 0.2506462634, 0.2204242051, -0.3045648932, 0.3702605665, -0.0001118734, 0.1776436716, 0.3890074193, -0.0119132707, -0.263148874, -0.1894604117, -0.0932741389, -0.0726641491, 0.0986745805, -0.2597334683, -0.0612500347, -0.1425025314, -0.1062145904, -0.5259361267, 0.8551871181, 0.2249428928, 0.2614648342, 0.1924871951, 0.343031317, -0.2581973076, 0.2435850352, -0.177204445, -0.0567809716, 0.3766359985, 0.2065402716, -0.0528301336, 0.014835923, 0.2883765697, 0.1508667171, -0.1099837124, 0.4550983608, -0.0461320132, 0.0562949441, -0.3445611596, 0.2029420584, 0.0850431994, 0.0933939144, -0.2972278595, -0.2118201405, -0.2630231678, 0.0436524451, -0.2451478541, 0.342113167, 0.1394786537, -0.2177513093, 0.1649510264, -0.0173710771, -0.25810197, 0.0044233063, -0.0469905064, -0.012423302, -0.0174254496, -0.0472717695, 0.1445005089, 0.1904305965, -0.0294544678, 0.2612520754, -0.0770363361, 0.031969063, 0.1867049485, -0.5232822299, 0.1069348231, -0.0528019927, -0.1080393642, 0.2210678905, 0.0415583178, 0.1781445295, -0.0987891555, 0.0630777106, 0.0046157399, 0.1186117679, 0.1113322452, 0.0510715544, 0.2479468584, 0.2089865804, -0.1799351573, -0.2521627843, -0.0465328731, -0.2012175024, -0.1685853302, 0.3703459799, 0.0584278442, 0.5287953615, 0.077572383, -0.2316821665, 0.1241979077, -0.1455936283, -0.1006388515, 0.06109754, 0.3620435297, 0.1859446317, -0.3567808568, 0.1096723899, 0.2256825119, -0.1423761249, -0.1941258907, -0.3171715438, -0.1063594371, -0.08113233, -0.1568126827, 0.2419345379, -0.6133791804, 0.2899113894, 0.2416547686, -0.1092534363, -0.4836317599, 0.0230332781, 0.123513937, -0.1988667101, 0.0956891999, 0.0101648038, 0.0778536499, -0.0203278791, -0.2386651039, -0.0512513034, 0.184078753, -0.2536865473, -0.3633141518, -0.0695418864, 0.2863247991, 0.0670306236, 0.0897065774, 0.0178210046, 0.0369762369, 0.2047012448, 0.1793239415, 0.0022217492, -0.0245712362, -0.0792567432, -0.2655107379, 0.2568254769, 0.6351633072, -0.0922879204, -0.1067954004, -0.1737158298, -0.0022588037, 0.0813441128, 0.3821578324, -0.2429333478, 0.3917117417, -0.3513788283, 0.178362444, 0.713447392, -0.1958875507, -0.3543923199, 0.1866778582, -0.2593117952, -0.2182947993, 0.0873141065, 0.0251206048, 0.1783081442, 0.1153892204, 0.1574437171, -0.0760311037, 0.0586170368, -0.0519526489, -0.3551416993, -0.3531219661, 0.105489254, -0.0788372904, 0.1729314178, -0.159348771, 0.2709897161, -0.1526416838, 0.1180690378, -0.1213865429, -0.0849595666, 0.082332857, 0.2390117943, 0.0496874005, 0.0824486613, -0.0632931888, -0.4461558759, 0.3696320653, -0.2972281873, -0.2668586373, -0.2390248477, -0.250520438, -0.4130324423, 0.1440363228, -0.58629179, -0.0180850867, 0.2047822028, -0.0346152447, 0.2092175484, 0.1034076586, -0.1269437075, 0.1520020664, 0.0593992583, 0.0834337026, -0.1985914111, 0.2522064447, -0.4453633428, -0.0550455526, 0.0948074162, 0.2252964228, 0.3252192736, -0.0994669423, -0.1627307385, 0.4175095856, -0.2410897017, 0.018014431, -0.0007237148, -0.1209464744, 0.0787324607, -0.3930574358, 0.1947413385, 0.2712778747, 0.1783771813, -0.1665647626, -0.0573372319, 0.3320145309, -0.0891044289, 0.0955384895, -0.0527456515, -0.0315742791, 0.1117777228, -0.1201966554, 0.2202436328, -0.1167668849, 0.2911607027, -0.3164439797, 0.3656364381, 0.1319549531, -0.2356608063, 0.1314295083, 0.3060261011, 0.0220879894, 0.1882435679, 0.0140609592, 0.0087793386, -0.155099526, -0.3161093891, 0.2443335354, 0.3074197769, 0.1628216207, -0.1048360914, 0.2712974548, 0.0289767254, -0.2005146891, 0.3751117587, -0.1769653559, -0.104667969, 0.3829624355, 0.1048191488, 0.0200043879, -0.4195499718, -0.1060770825, 0.1665900499, 0.0904483125, -0.2432656735, 0.0245898869, -0.1573231667, -0.0550036579, -0.4926802218, 0.5171210766, -0.110361129, -0.1431571841, 0.241324693, 0.0723624825, 0.1362355351, 0.124472335, -0.2315512747, 0.1443308145, 0.040257059, 0.0933434889, -0.2083081901, -0.1138942689, -0.0725762323, 0.0338540003, 0.3783902526, -0.0770851225, 0.5647825003, -0.162493825, 0.1164632291, -0.2422071546, -0.3452760875, -0.0178851113, 0.0072640819, 0.1485371739, 0.0805482194, -0.0375982858, -0.0214284975, -0.3726306856, 0.2817128599, -0.3179252744, -0.4135046899, -0.0009352384, 0.015801169, -0.0357328579, -0.2129418701, -0.5386608839, -0.2469632924, -0.2665462792, 0.3176686168, -0.1062417999, 0.0821355656, 0.3633767962, -0.059387777, -0.0168304164, -0.0493375622, 0.1703394353, -0.3394080997, 0.0450250804, 0.0460498147, -0.0631041378, -0.3325831592, -0.0430324599, -0.1231539324, 0.1562624574, -0.1182264239, -0.3490811288, 0.2830143571, -0.2649714649, 0.4167033434, -0.2116274089, 0.2905671597, 0.2058410496, 0.2561261952, -0.1482192129, -0.1712089479, -0.0290907361, 0.1058601961, -0.1715940833, 0.0603611693, 0.0947435796, 0.2958514392, -0.2571831048, 0.8182137012, 0.5736105442, -0.0000041941, 0.1971292496, -0.2320549339, 0.356185019, -0.2597362399, -0.4400470555, -0.2620584667, 0.1012613401, 0.0823968798, 0.1012617275, -0.0890702605, -0.1051110774, 0.1480724961, -0.1535298228, -0.5878964663, -0.3327072263, 0.0677498057, -0.2154907584, 0.121141158, 0.064984262, 0.0236837026, 0.0236725528, 0.0156503581, -0.0114403693, 0.2244054526, -0.0429971181, 0.0903419927, -0.14269723, -0.1601071656, -0.3927226067, 0.1269596517, -0.1455416679, 0.1879534125, -0.0046167211, 0.1819079071, 0.3899123669, -0.2039212435, 0.6486157775, -0.0842426792, 0.1471611708, 0.1163161919, 0.1549593657, -0.1054675207, -0.1031058505, 0.0434396788, 0.4334648848, 0.11045371, 0.1101813242, -0.2643679082, 0.0120882997, -0.0417415351, 0.2710542381, -0.3562946916, -0.3989875317, -0.1732005477, -0.3362304568, -0.522170186, 0.007048991, 0.0132357934, 0.2334473431, -0.0566033497, -0.0964118317, -0.2230380476, -0.2034579068, 0.0082274368, 0.201933682, 0.2648089826, 0.1155602485, 0.5737643838, 0.3952611089, -0.1276339144, -0.0011026164, 0.7134286761, 0.004601514, -0.0141346361, -0.3018510938, -0.2454430163, -0.1719882786, 0.2688551843, -0.1816077381, 0.16813986, 0.0785088986, 0.0219373554, 0.0292037185, -0.1947405338, 0.1829772592, -0.1791464984, -0.2184190899, -0.3810110092, 0.2849351466, -0.1403225362, -0.2812666595, 0.2780411541, 0.1590033919, -0.1447204053, 0.3344265521, -0.3454684019, 0.8578019738, -0.3358388245, -0.0549020395, -0.1418077201, -0.3329256773, 0.2424281687, -0.0555236973, 0.0201003645, -0.5142738819, 0.0449108481, 0.1704357862, -0.0552187711, -0.0848083273, -0.0177538339, -0.3104017079, 0.1720508337, -0.0476493463, 0.0248286761, -0.1602254957, 0.3458874822, -0.0029213252, 0.2451022714, -0.0235072523, 0.1250653565, 0.1515771598, 0.2819944024, -0.0366750769, -0.044858478, 0.1928783357, -0.5627151728, -0.274625957, 0.1214072406, -0.3507395685, 0.5328578949, 0.0126899946, -0.2584880888, 0.2454967648, 0.02613087, 0.2486751378, 0.1919759214, -0.0656966493, 0.1184824854, 0.2866913378, 0.0737583712, -0.2213353217, -0.0155502427, -0.0890037939, -0.0279261097, -0.3782757819, -0.0527391769, -0.051793173, -0.4121176898, -0.1450530738, 0.2573260963, -0.1829819381, -0.0394037366, 0.190221563, -0.0515701398, -0.1065128818, -0.3105295897, 0.1581816822, 0.1754856259, 0.0420293733, 0.0981866717, -0.0494141951, -0.1876265854, 0.0787868574, 0.1677100956, 0.3655770123, 0.078464821, 0.5398335457, -0.2415940613, -0.0110983504, -0.263715297, 0.0708359331, 0.0914918855, -0.6893438101, 0.2305618227, -0.2692232132, 0.2263799906, 0.1349017471, 0.4542604983, 0.3118365109, 0.207422629, 0.0682090744, -0.1899860501, -0.0834035426, -0.0749874488, 0.0079056071, 0.2383567542, 0.0170305464, 0.185434863, -0.0320167355, 0.2138063014, -0.3605462313, 0.2981469631, -0.0902477577, 0.0879210085, -0.0235433262, -0.1306428313, -0.0351333059, -0.0144161219, 0.1685692072, 0.1006680429, -0.2077368349, -0.2502124906, -0.0640062913, 0.1244713143, -0.0424426831, 0.1501916051, -0.224375695, -0.2086767703, 0.23107104, -0.0412696786, 0.2202374935, -0.1125029624, 0.1427197754, 0.0607992262, 0.1483040899, 0.1030613706, -0.2411942035, 0.1918826997, -0.2597798109, 0.3232285976, -0.0608838536, 0.1569917053, -0.0297610331, -0.0701461881, -0.308739543, 0.0846207142, -0.1682214439, 0.0943559855, 0.1549282074, -0.2569449544, -0.1614758521, 0.4119185507, 0.1723029315, 0.5156673193, -0.3425476849, 0.1220134199, -0.0314581543, 0.2493457794, -0.3464598358, -0.1409690529, 0.0218812618, 0.0230220016, 0.2520655394, 0.3462917209, 0.2895453274, -0.206720382, -0.0891878828, 0.088548772, 0.4030728936, -0.0098053804, 0.3582564294, 0.362329036, 0.2651081085, -0.2178718597, 0.3288595676, -0.0276890304, 0.0573131666, 0.5360886455, -0.5569242239, 0.1019917279, -0.0197685417, 0.2291836143, 0.2144480646, -0.1321157068, 0.3921250105, 0.0536375269, -0.1071607247, -0.016993342, -0.0008158622, 0.1937876344, -0.1850801408, -0.0418532602, -0.1078157127, 0.0945618749, -0.1713005602, -0.0954020619, -0.1070973873, -0.2283353657, -0.2598009408, 0.1113855168, 0.0088825356, 0.0650786161, 0.184466213, 0.0013828033, -0.3270093203, -0.3965139985, 0.2018178552, 0.28696841, 0.3742623925, -0.4109543562, 0.2661156952, 0.4641637504, -0.0921055973, 0.1796159893, 0.5124380589, 0.6277316809, 0.2143345326, -0.1546014994, 0.2471619993, 0.0746891201, -0.1664491594, -0.1776013225, 0.0789963454, -0.0969251767, 0.1750380099, 0.1689581126, 0.1014589518, -0.1353826076, -0.1017668396, 0.2639497221, 0.1437013, -0.1057983339, 0.1999000609, -0.1909976453, -0.1376962215, -0.0063630715, 0.2526303232, -0.374394387, 0.0232566241, 0.3362024724, 0.2152958363, 0.1036930531, -0.2392003685, 0.1387795061, 0.0469929613, 0.3233956099, 0.1746049374, 0.0572606847, -0.2274856567, -0.0484922417, -0.6852201223, 0.1117906794, -0.4422994852, -0.02067215, 0.1845692396, 0.3831756711, -0.3131611049, 0.0189338438, 0.3542641997, 0.0676850677, 0.0086914878, 0.2228710651, -0.2159973383, 0.0082058376, 0.4384150505, -0.25514552, 0.1303377897, -0.4026130736, 0.35380283, -0.3760166466, 0.0528253838, -0.12282601, 0.0515921898, 0.1246993542, -0.2892444432, 0.41571787, 0.0977644622, 0.3264960051, -0.0135343168, -0.203366518, -0.229859367, -0.1842000484, -0.2236929089, 0.2773223221, 0.5202604532, 0.1267426461, -0.017321134, -0.4276801348, -0.1936793774, 0.2420179695, 0.0435463004, -0.059189748, -0.0666082203, 0.0637033954, -0.1687977612, 0.1529017687, 0.0310581774, 0.202928856, -0.0835386664, 0.1606070995, -0.2491610944, -0.676769495, 0.3949705958, -0.158892706, -0.112819761, -0.1074143127, 0.3577102423, 0.2368586212, 0.0830924213, -0.6305255294, 0.2515730262, 0.542817235, -0.2058782727, -0.0201532021, 0.1489611268, -0.1389389336, 0.0323461778, 0.0318877995, -0.0470930263, 0.0382372178, -0.2773480415, 0.2415047735, -0.3176979423 ]
https://github.com/huggingface/datasets/issues/2552
Keys should be unique error on code_search_net
and are we sure there are not a lot of datasets which are now broken with this change?
## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] Downloading: 19.1kB [00:00, 10.1MB/s] No config specified, defaulting to: code_search_net/all Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a... Traceback (most recent call last): File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split writer.write(example, key) File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write self.check_duplicate_keys() File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys should be unique and deterministic in nature ``` ## Environment info - `datasets` version: 1.8.1.dev0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 2.0.0
18
Keys should be unique error on code_search_net ## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] Downloading: 19.1kB [00:00, 10.1MB/s] No config specified, defaulting to: code_search_net/all Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a... Traceback (most recent call last): File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split writer.write(example, key) File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write self.check_duplicate_keys() File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys should be unique and deterministic in nature ``` ## Environment info - `datasets` version: 1.8.1.dev0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 2.0.0 and are we sure there are not a lot of datasets which are now broken with this change?
[ -0.046908617, -0.0271528233, -0.1106119379, 0.3490993977, 0.0812767223, -0.0156192472, 0.1811807752, 0.2770841122, 0.0815913603, 0.054418277, -0.0599071719, 0.3916930556, -0.1846611947, 0.1166166067, 0.156404376, 0.0785155669, -0.0312843956, 0.1728185117, 0.1106828228, -0.0542455018, -0.3256244063, 0.2887382805, -0.2328310162, 0.0389521532, -0.1848244518, -0.1620795429, -0.1911864281, 0.2588770986, -0.1845098585, -0.6111861467, 0.2418145835, 0.2137486041, -0.3018577397, 0.355809629, -0.0001112483, 0.1782944202, 0.3963311911, -0.0183050297, -0.2428980172, -0.1785935014, -0.0976836905, -0.0869019255, 0.0782903433, -0.2927316427, -0.0522989668, -0.1311935335, -0.1020005196, -0.5351578593, 0.855310142, 0.2324269265, 0.2680366337, 0.1950212866, 0.3377574086, -0.2356913984, 0.2538095713, -0.1840534061, -0.0478937849, 0.3911313415, 0.2176292986, -0.0469381325, -0.0018592908, 0.310698241, 0.1507782936, -0.1226945892, 0.4385914803, -0.0377840213, 0.0561736263, -0.3310022354, 0.180634737, 0.0725950599, 0.1040765196, -0.3062259257, -0.2338495851, -0.2663579583, 0.0390655622, -0.2513280809, 0.3439498246, 0.1335716397, -0.2220120579, 0.1639822125, -0.0111540146, -0.264817059, 0.0115648154, -0.0475300662, -0.015427798, 0.017886525, -0.0589889325, 0.1368977576, 0.1607933789, -0.0466827303, 0.2724989355, -0.0896119848, 0.0467299931, 0.1941232681, -0.5073847175, 0.1113419458, -0.026300922, -0.0870051607, 0.2304596603, 0.026933359, 0.1648989916, -0.1091131717, 0.0596224032, 0.0060263937, 0.1255842745, 0.122099407, 0.0224412698, 0.2442172617, 0.2085754871, -0.1591237187, -0.2433694005, -0.035092406, -0.1751271188, -0.1918126643, 0.3740755618, 0.0837450475, 0.5239518881, 0.0817941353, -0.2396693081, 0.1370771527, -0.129902631, -0.1012647599, 0.0700323135, 0.366541177, 0.160808906, -0.3450778425, 0.1160737351, 0.185338527, -0.1395107061, -0.1890877038, -0.3252246976, -0.0816786364, -0.0858612433, -0.1678927392, 0.218451336, -0.5809812546, 0.2865791023, 0.2305635959, -0.0979511291, -0.4757299423, 0.0076658949, 0.1049676612, -0.2080146819, 0.0840544328, 0.0011777071, 0.0592631698, -0.0231824946, -0.2230981737, -0.0681591704, 0.1733560711, -0.2561254203, -0.3439772129, -0.0812845901, 0.2983010411, 0.0687769428, 0.0940387473, 0.0188799165, 0.0360047929, 0.2115166485, 0.1689540893, 0.0193194728, -0.0201480445, -0.0689400956, -0.2622359097, 0.2715474963, 0.6408419013, -0.0852000713, -0.1143703684, -0.163057372, -0.0119726444, 0.0820221305, 0.3735702038, -0.2195251286, 0.4098963141, -0.3701933324, 0.1702487171, 0.715852201, -0.2098323703, -0.351403445, 0.1768585443, -0.2566370964, -0.1927758604, 0.1062854752, 0.017745208, 0.1717718989, 0.127153337, 0.1919952482, -0.0745008737, 0.0496414229, -0.0505870804, -0.3718302846, -0.3530540168, 0.1030012444, -0.0865596011, 0.1955659986, -0.1717541814, 0.2626263797, -0.1302560419, 0.117092967, -0.1145150289, -0.0960909426, 0.0849805102, 0.2491380125, 0.0279339012, 0.0814495981, -0.0725878924, -0.451161325, 0.3614913523, -0.2994680703, -0.2637137473, -0.2208359987, -0.2707116306, -0.3951714039, 0.144445613, -0.5617753863, -0.0219098162, 0.2265326828, -0.0335863233, 0.2018056661, 0.0893622935, -0.1509432346, 0.1715619266, 0.0490316451, 0.0780373886, -0.2100779116, 0.2596831918, -0.4771119356, -0.0632256269, 0.0932601988, 0.2274792343, 0.3199897707, -0.1160646826, -0.1683141738, 0.4271498322, -0.2329930812, 0.0158187523, -0.0029284279, -0.1300108135, 0.0871502161, -0.3934371173, 0.1725023091, 0.2751099169, 0.1673906147, -0.1346253008, -0.0697998405, 0.3326272964, -0.098881036, 0.0816603154, -0.0342424251, -0.0534675233, 0.1030965671, -0.1120854244, 0.2092015892, -0.1217363775, 0.2808268666, -0.3323273063, 0.3956884444, 0.1194216982, -0.2414899766, 0.1092132926, 0.29245314, 0.0013845598, 0.1975156963, 0.0097057233, 0.028897021, -0.1784740537, -0.2953672409, 0.2325139344, 0.2991611958, 0.1731814593, -0.1086348817, 0.2740418613, 0.0366741754, -0.1799518168, 0.3811584711, -0.1649850905, -0.1044399291, 0.39415434, 0.0818234384, 0.0342088751, -0.406064719, -0.1442297399, 0.1447807252, 0.1074560508, -0.2713997364, 0.0040042708, -0.1440772116, -0.0816542953, -0.4855395555, 0.5519647598, -0.0967326835, -0.1340057403, 0.2336674631, 0.0417369045, 0.1260756999, 0.1139727682, -0.2359858602, 0.1488278061, 0.043248944, 0.106062308, -0.2104988694, -0.104381308, -0.0720649585, 0.0447645523, 0.3772629499, -0.0930301994, 0.554176271, -0.1986332387, 0.0996907651, -0.2164834589, -0.3579096496, -0.0040377141, 0.0208131559, 0.1498841047, 0.1100703403, -0.0402447768, -0.0256817881, -0.3755352199, 0.2560065687, -0.3044044375, -0.4428147972, -0.0225434508, 0.0187570527, -0.0395336822, -0.2074314654, -0.5418487787, -0.2662755251, -0.2766750753, 0.2926627398, -0.0981773883, 0.0814603269, 0.3725582659, -0.0679178238, 0.0038493632, -0.0269737374, 0.1974366605, -0.3267025948, 0.0312484, 0.0353545211, -0.052934166, -0.3246126473, -0.057834994, -0.1475160718, 0.1737260669, -0.1259884685, -0.3620149493, 0.2623092532, -0.2389128953, 0.4267001748, -0.2036778331, 0.3028889298, 0.2129475772, 0.2573755085, -0.1596047431, -0.1698617488, -0.0314723328, 0.089274548, -0.1677888036, 0.0556728765, 0.1018418148, 0.3043362796, -0.2619750202, 0.8216828704, 0.5829092264, -0.0059694126, 0.2016519755, -0.2118438482, 0.37335971, -0.2440514117, -0.4355399609, -0.2459852695, 0.1285449415, 0.0407845825, 0.0970506594, -0.0921054408, -0.0974660963, 0.1396707147, -0.1615276635, -0.6219165325, -0.3212404251, 0.0509340614, -0.2273284793, 0.1179316789, 0.0508581474, 0.0089770388, 0.0335715786, 0.0444790013, 0.0025211894, 0.2345266491, -0.0114633208, 0.0759303644, -0.153027758, -0.1533863693, -0.3725163639, 0.117591545, -0.1397174746, 0.1931035966, -0.0105241202, 0.1913720071, 0.3669939339, -0.2281320095, 0.6453698277, -0.0840139464, 0.1381123811, 0.1138136089, 0.1591113508, -0.0830506161, -0.1050431803, 0.0388185494, 0.4268300533, 0.1269043088, 0.1294589341, -0.2729389369, 0.0242650434, -0.0232014582, 0.2627454698, -0.3573330641, -0.3812643588, -0.1662815064, -0.3246187568, -0.4989028275, 0.0290864427, 0.006490137, 0.2311415523, -0.0217209682, -0.0889582336, -0.2271208614, -0.2112899721, 0.0111822095, 0.2008692324, 0.2838078439, 0.0930746198, 0.5682290196, 0.3745242357, -0.1244233772, -0.014536283, 0.7123063803, -0.0103466418, -0.0092323767, -0.3011122048, -0.2046629936, -0.1842921078, 0.2573680282, -0.1949712634, 0.1513125449, 0.0869639516, 0.0218754113, 0.0457170308, -0.1883666962, 0.1670675427, -0.1628591269, -0.2159618735, -0.3804619312, 0.2882484496, -0.118428342, -0.2861638963, 0.2685063779, 0.1581972837, -0.1777515858, 0.3684623837, -0.3176836669, 0.8326912522, -0.3146327734, -0.0523459762, -0.126372233, -0.3259542584, 0.2553510368, -0.0859477222, 0.006733262, -0.4939081073, 0.046463836, 0.1598236412, -0.038056381, -0.0747023523, -0.0262723174, -0.3291630149, 0.1905131042, -0.0592304096, 0.0264528263, -0.1630082577, 0.330062449, -0.0007659069, 0.2471740544, -0.0477952771, 0.134666428, 0.1435999572, 0.2798322141, -0.0514158607, -0.0307499785, 0.1794309914, -0.5663868785, -0.2774451375, 0.1091913283, -0.3608015478, 0.5221951008, 0.0183589924, -0.2535378635, 0.2114668041, 0.0314420499, 0.2328995615, 0.2051721215, -0.0495857745, 0.1088978946, 0.2894086838, 0.0992840156, -0.2045166343, -0.0102028754, -0.0519631729, -0.0296652801, -0.3613172472, -0.047094591, -0.0622566789, -0.4015720785, -0.1501975805, 0.248130545, -0.1729171872, -0.0350113735, 0.1649700403, -0.0270376969, -0.1076021194, -0.3131227791, 0.166244328, 0.1862301379, 0.0298588574, 0.1124025807, -0.0546165854, -0.1692594141, 0.0750193596, 0.1694585979, 0.3665226996, 0.0696558878, 0.5085343122, -0.2613404095, -0.0337563045, -0.2612469196, 0.0800452977, 0.1148146316, -0.6623119712, 0.2191943526, -0.2941143513, 0.2200987488, 0.1073094979, 0.4256073236, 0.3321915269, 0.21347633, 0.0559269451, -0.2056267709, -0.1126114428, -0.0481790826, 0.0279101655, 0.2362507135, 0.0393022187, 0.1607012451, -0.042615626, 0.1991035789, -0.3712841272, 0.2617736757, -0.1110310107, 0.0789096057, -0.0156824831, -0.1059617102, -0.0660712644, -0.0290735867, 0.1858229041, 0.098749727, -0.1861193925, -0.2591012716, -0.0545433313, 0.1198960692, -0.0358445048, 0.1415404975, -0.2157309055, -0.195624575, 0.2309213281, -0.0465356745, 0.187566787, -0.1173271611, 0.1464106143, 0.0604632646, 0.1159074754, 0.1060184315, -0.2493313253, 0.197386831, -0.2469548285, 0.3111075163, -0.0572780631, 0.181519568, -0.0298761148, -0.0798527598, -0.3063935041, 0.0847236291, -0.1822785139, 0.1095409617, 0.1555236727, -0.2479233295, -0.1675857306, 0.4212432504, 0.1682535857, 0.5145011544, -0.3406192064, 0.1270989627, -0.0219480693, 0.2609176338, -0.3668577075, -0.1234400645, 0.0033125074, 0.0253488384, 0.2622595429, 0.3413488567, 0.269305408, -0.1910201907, -0.0815275684, 0.091812931, 0.4002239108, 0.0021997974, 0.3656617999, 0.3726803362, 0.2654097676, -0.207212925, 0.2973614037, -0.0409240238, 0.0624073409, 0.5390813351, -0.5399000645, 0.1284632385, -0.0205060486, 0.2541929185, 0.2257819325, -0.120004572, 0.3996990323, 0.058026623, -0.0998470262, 0.0097590489, 0.0137672536, 0.1629028171, -0.172084257, -0.0554950424, -0.0719700158, 0.0846283659, -0.1727140844, -0.1010472551, -0.1095773652, -0.2272494882, -0.2541549802, 0.0966639072, 0.0138638644, 0.0599567145, 0.1649870276, 0.0004623343, -0.3333249092, -0.3664299846, 0.2015646696, 0.2978006601, 0.3739055693, -0.4081542492, 0.3000581264, 0.4755452275, -0.0917492807, 0.1509278268, 0.5318716764, 0.6291669011, 0.2287993282, -0.1557599157, 0.2267467529, 0.1105188653, -0.1611612886, -0.1954074949, 0.0614203066, -0.1154325753, 0.1707045436, 0.1617059857, 0.11471349, -0.139862299, -0.0747310594, 0.2652659416, 0.1053483486, -0.0900574997, 0.2006715089, -0.185832724, -0.1396442205, 0.0156245809, 0.2502358556, -0.3926052451, 0.0097749159, 0.3296543956, 0.21640113, 0.1218207628, -0.2242479771, 0.1425648481, 0.0673692226, 0.31816414, 0.1936117858, 0.0830999017, -0.2443356514, -0.0321587175, -0.6895319223, 0.0927470475, -0.4029480219, -0.0554421917, 0.1859170794, 0.3722103238, -0.3159905672, 0.01173143, 0.3509391844, 0.0610804558, 0.0317479037, 0.2196607292, -0.2321175486, -0.0093794661, 0.4260524809, -0.2580841482, 0.1416169852, -0.4072991014, 0.3420376778, -0.3757021725, 0.0564767383, -0.1472164243, 0.0422158316, 0.1315653622, -0.2852277458, 0.4117790163, 0.0977903008, 0.3219892681, -0.0438528694, -0.2032979876, -0.2257692814, -0.1698812246, -0.2365561426, 0.274715662, 0.5092764497, 0.1163093895, -0.0046947752, -0.437376231, -0.1929320097, 0.2320553213, 0.0616872162, -0.0785890669, -0.0752976686, 0.0722673684, -0.183444947, 0.122862488, 0.0518224575, 0.2025103569, -0.0910455585, 0.1757324636, -0.2520789504, -0.6924314499, 0.3932869732, -0.1511267424, -0.0783276483, -0.1192814559, 0.3561943173, 0.2467124313, 0.0758874044, -0.6449910998, 0.2416941822, 0.556766212, -0.1992719322, -0.0071391962, 0.1507197618, -0.1236558706, 0.0373367816, 0.0260229204, -0.041605968, 0.0341909975, -0.2745583057, 0.2524395287, -0.3236228526 ]
https://github.com/huggingface/datasets/issues/2552
Keys should be unique error on code_search_net
Thanks to the dummy data, we know for sure that most of them work as expected. `code_search_net` wasn't caught because the dummy data only have one dummy data file while the dataset script can actually load several of them using `os.listdir`. Let me take a look at all the other datasets that use `os.listdir` to see if the keys are alright
## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] Downloading: 19.1kB [00:00, 10.1MB/s] No config specified, defaulting to: code_search_net/all Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a... Traceback (most recent call last): File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split writer.write(example, key) File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write self.check_duplicate_keys() File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys should be unique and deterministic in nature ``` ## Environment info - `datasets` version: 1.8.1.dev0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 2.0.0
61
Keys should be unique error on code_search_net ## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] Downloading: 19.1kB [00:00, 10.1MB/s] No config specified, defaulting to: code_search_net/all Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a... Traceback (most recent call last): File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split writer.write(example, key) File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write self.check_duplicate_keys() File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys should be unique and deterministic in nature ``` ## Environment info - `datasets` version: 1.8.1.dev0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 2.0.0 Thanks to the dummy data, we know for sure that most of them work as expected. `code_search_net` wasn't caught because the dummy data only have one dummy data file while the dataset script can actually load several of them using `os.listdir`. Let me take a look at all the other datasets that use `os.listdir` to see if the keys are alright
[ -0.0364267603, -0.020195568, -0.0964382589, 0.3276670277, 0.0761768669, -0.0132121714, 0.208099708, 0.2912015319, 0.0984991491, 0.0711847693, -0.0670372322, 0.3835589886, -0.1711657792, 0.1363998652, 0.1288101971, 0.0837999135, -0.0438018404, 0.178087607, 0.1199664921, -0.0594820678, -0.3179876804, 0.2856628001, -0.2349058092, 0.0165576767, -0.2090522945, -0.1376464814, -0.1760063916, 0.2507342398, -0.1824112982, -0.5908306837, 0.2711943984, 0.209339276, -0.299236536, 0.3508663774, -0.0001107919, 0.1900057793, 0.3981906772, -0.025601279, -0.2827828228, -0.1791188717, -0.0728083178, -0.0612182394, 0.0831816047, -0.2482591122, -0.0818561316, -0.1224980131, -0.104975827, -0.5397649407, 0.8384175897, 0.2460180521, 0.2726714909, 0.2112668306, 0.3223750293, -0.2598755658, 0.2420284897, -0.1614329666, -0.0639911145, 0.3828734457, 0.1833219677, -0.0479907431, 0.0057225758, 0.2981964052, 0.1404440701, -0.0875044316, 0.4186807871, -0.0323039368, 0.0468771197, -0.3087766469, 0.2146267444, 0.102823779, 0.0884277746, -0.3128266633, -0.2070396543, -0.2669889033, 0.0362550244, -0.2407445908, 0.3180389404, 0.1313279271, -0.2028149515, 0.1684761047, 0.0087359799, -0.233339265, 0.0168728493, -0.0356822759, -0.0120586194, 0.0075636292, -0.0477770977, 0.1442216635, 0.1870474517, -0.0301866848, 0.2658229768, -0.1093939319, 0.0195277333, 0.1790452749, -0.5136678815, 0.123020269, -0.0518567897, -0.0984726027, 0.2277046144, 0.0287171379, 0.1698817611, -0.0687139854, 0.0624924451, 0.0053731138, 0.0905158594, 0.1125335842, 0.0269705243, 0.2809759974, 0.2035716027, -0.1502017975, -0.2411467582, -0.0358260274, -0.1814639866, -0.1567698419, 0.3382405043, 0.0708150938, 0.5329920053, 0.0759848133, -0.2476925403, 0.1277490258, -0.1235776916, -0.0753640011, 0.0569917969, 0.3604095876, 0.1586510539, -0.3382248282, 0.1139074042, 0.2257106602, -0.1590738147, -0.2025009841, -0.3317087591, -0.1199504957, -0.0704323798, -0.1687157005, 0.2553776503, -0.5790084004, 0.3142928481, 0.2457671613, -0.1194904298, -0.4515373409, 0.078360267, 0.1040028781, -0.1953114122, 0.089058578, 0.0208360534, 0.0583035946, 0.0076981899, -0.236956507, -0.0453377403, 0.1677512228, -0.2531956732, -0.3557935357, -0.0943059549, 0.3007487655, 0.064665556, 0.080330506, 0.0169255696, 0.0554003641, 0.1994576752, 0.1568810046, -0.0127065601, -0.0332553908, -0.101922594, -0.2483244389, 0.2735362947, 0.6290325522, -0.1159742698, -0.0979005918, -0.1622076333, -0.0023761122, 0.0797294602, 0.3462893665, -0.241242215, 0.3902711868, -0.3654874265, 0.1659933925, 0.6817967892, -0.2055109888, -0.3552485108, 0.1524268687, -0.2477334589, -0.1710257083, 0.0933933482, 0.0315535627, 0.1626767069, 0.1522601694, 0.1557520181, -0.0667623803, 0.0570322722, -0.0515629984, -0.3554732203, -0.3471823931, 0.1130478084, -0.0670955703, 0.1661295742, -0.167463094, 0.2417475283, -0.1381934136, 0.1254566759, -0.1124066561, -0.0802565813, 0.0907336771, 0.2145914435, 0.0272687376, 0.098597005, -0.0643677935, -0.4726127684, 0.3678179085, -0.2958664, -0.2371387333, -0.2157184482, -0.2840785682, -0.4142508805, 0.1149867103, -0.5730292201, -0.0325939767, 0.2200722545, -0.0267939009, 0.219391048, 0.0880647153, -0.1207317561, 0.1589355022, 0.0497189499, 0.0876837, -0.2432179302, 0.2517297566, -0.4583710134, -0.0632468984, 0.1095040366, 0.2277159542, 0.3038509786, -0.122148484, -0.1701619178, 0.4219492972, -0.2227302939, 0.0020726479, -0.0018701543, -0.148724705, 0.0674977899, -0.3830088675, 0.1845068336, 0.2993700504, 0.1757295132, -0.1566673219, -0.0986901745, 0.3583339453, -0.0740240067, 0.0907488242, -0.0510711335, -0.0368814133, 0.1225299537, -0.1088031977, 0.2126482129, -0.1271819472, 0.2830679119, -0.3175022006, 0.402439028, 0.1329596043, -0.2321518213, 0.1211523041, 0.2946245372, 0.0163621511, 0.188388586, -0.0024341773, -0.0214984883, -0.1830296963, -0.2807162404, 0.234266758, 0.2953343689, 0.1781709492, -0.1118415445, 0.2570243776, 0.0040009222, -0.1871970445, 0.3797668219, -0.1941545606, -0.1340707988, 0.3846867383, 0.089958407, -0.0086617572, -0.4447203875, -0.1110007465, 0.165065065, 0.1223475486, -0.2493940294, 0.0003662204, -0.1639931649, -0.0636471137, -0.4797678888, 0.5345816016, -0.0994897932, -0.1488793045, 0.2435330451, 0.0811948553, 0.119365938, 0.1278972328, -0.2404330373, 0.1499004811, 0.0576750562, 0.081865564, -0.2238830775, -0.1108084172, -0.0923991054, 0.0561681129, 0.3637707531, -0.065265052, 0.5341525078, -0.1901934296, 0.0905748233, -0.2226316035, -0.3574886322, -0.012997169, 0.0026215157, 0.1580308229, 0.1113690808, -0.0347029157, -0.0118297124, -0.3635371625, 0.2709299028, -0.3152556717, -0.4279223979, 0.0140692545, 0.0075030508, -0.0309336334, -0.2294651866, -0.5562421083, -0.2520562112, -0.2643299401, 0.2726472318, -0.0757413208, 0.0702345967, 0.3859768212, -0.0329324938, -0.0093223639, -0.0285111777, 0.1671646237, -0.3440155685, 0.0109190987, 0.0526412539, -0.0584129691, -0.3240552843, -0.0440945216, -0.1682159305, 0.1607694775, -0.1315597147, -0.3624715805, 0.2376157194, -0.2448978126, 0.4199643135, -0.2150042057, 0.2762873471, 0.2194638699, 0.2579503059, -0.1546109617, -0.1946177483, -0.0431079902, 0.1191185266, -0.1772722155, 0.0579532832, 0.0751886293, 0.2850072682, -0.2456804961, 0.8134371042, 0.5724945664, -0.0077530318, 0.1956248432, -0.2384263873, 0.3781943321, -0.2580958307, -0.4343479574, -0.2718249559, 0.1200619489, 0.0793168396, 0.1062153503, -0.0887998417, -0.0725792572, 0.1693482101, -0.132879898, -0.5772476792, -0.3220958114, 0.0516160987, -0.2195012271, 0.0935853496, 0.0843148082, 0.030275194, 0.0016911922, 0.0297222678, -0.0056098243, 0.1969579011, -0.0401837192, 0.0871123224, -0.1645723581, -0.1121440083, -0.3914947808, 0.1428778619, -0.1441080421, 0.1839490384, 0.0162562039, 0.1846574992, 0.3610930741, -0.1915574968, 0.6522557735, -0.0972908139, 0.1387355328, 0.1152112484, 0.1727876812, -0.1377713233, -0.1088003814, 0.0332588665, 0.4142429233, 0.1114910543, 0.1376123726, -0.2753406465, 0.0131418295, -0.0005721377, 0.2770029008, -0.3481085002, -0.3533657789, -0.1978776902, -0.3296108544, -0.5215113759, 0.0043431092, -0.0022251185, 0.2339483052, -0.0310417153, -0.0986444429, -0.2354492247, -0.2289231718, 0.0203460176, 0.2096414268, 0.2850692272, 0.1258571148, 0.5712018609, 0.3908027411, -0.1034235507, -0.0132420491, 0.7329348326, 0.0072245067, -0.0141444169, -0.3090285361, -0.2262701988, -0.1921975464, 0.2538829148, -0.1747229248, 0.1761266589, 0.0652291179, 0.0201867502, 0.0349425822, -0.1436334699, 0.1644270122, -0.1691852659, -0.2057054788, -0.3801516294, 0.2729165256, -0.1259980947, -0.2761527896, 0.2663395107, 0.1311992258, -0.1692610234, 0.3703282177, -0.3384574056, 0.8030843735, -0.3222217262, -0.0323643647, -0.1175397858, -0.3198094964, 0.2389768958, -0.0710937753, 0.0164574385, -0.4927276969, 0.0529793054, 0.1650751978, -0.0380419567, -0.0772079378, -0.0188323427, -0.3268426061, 0.1943098158, -0.0445220359, 0.055131942, -0.1772854775, 0.3472310901, -0.0141336285, 0.2519338429, 0.0079932688, 0.1487936676, 0.1591981947, 0.2623227835, -0.0231434517, -0.0313843153, 0.1624127626, -0.5612021685, -0.2426977158, 0.1193097681, -0.3816881776, 0.5089936256, -0.0113081681, -0.2430345118, 0.1899625808, 0.0247281119, 0.2385046333, 0.2175933272, -0.0599932745, 0.1229247153, 0.2727580965, 0.0899910703, -0.2118238807, -0.027795231, -0.0924524367, -0.0050218254, -0.361440599, -0.0488176271, -0.0599450395, -0.4107629359, -0.146483168, 0.2362817526, -0.156200543, -0.0623809099, 0.1588265151, -0.0425823778, -0.1080783159, -0.3281362057, 0.1703135669, 0.1556910425, 0.0344358683, 0.093686834, -0.0587179661, -0.2066198587, 0.0575107671, 0.1759092808, 0.3556887805, 0.0973457471, 0.5280069709, -0.2695705295, -0.0025807654, -0.2692105472, 0.0659104586, 0.1300942898, -0.6779006124, 0.2404310852, -0.263376534, 0.1785434335, 0.1193554848, 0.4354136884, 0.3073658347, 0.2008406371, 0.0557549484, -0.1955751628, -0.1281787902, -0.0845310241, 0.0431709178, 0.2558166683, 0.0304477569, 0.1719138026, -0.0592597462, 0.2200326324, -0.3742519617, 0.2876406908, -0.0920173526, 0.1150858402, -0.0360312648, -0.1365343183, -0.0439344533, -0.0217163712, 0.1914597452, 0.1017004326, -0.2023002058, -0.2717780471, -0.0802880526, 0.1136824191, -0.0390357859, 0.1121335253, -0.2161178291, -0.1972957999, 0.1972083002, -0.0550849549, 0.2046239376, -0.1175459847, 0.1393635869, 0.0641288906, 0.1185411364, 0.1053305417, -0.2349291742, 0.1644869596, -0.2630439699, 0.3048254848, -0.066551961, 0.1540903449, -0.0324404314, -0.0691732615, -0.2817690074, 0.0859372318, -0.1532094777, 0.0907226503, 0.1475836784, -0.2426228672, -0.1706989259, 0.4171833396, 0.1768939197, 0.4963459969, -0.3218607306, 0.1213969514, -0.0222584419, 0.2640507519, -0.3719104528, -0.1372203529, 0.0454551466, 0.0078015625, 0.2777577341, 0.3237068653, 0.2908854187, -0.172103852, -0.0758729801, 0.075837478, 0.3826349378, 0.0070854453, 0.362819314, 0.3571458161, 0.2445202023, -0.222055465, 0.3068504333, -0.0539518707, 0.0639205351, 0.5503360033, -0.5318270326, 0.1365035325, -0.0347370766, 0.2305371761, 0.2037720382, -0.1257787496, 0.4079793096, 0.0730622709, -0.116421029, 0.0158992782, 0.0352265686, 0.1720741242, -0.2178195268, -0.0557478443, -0.1123492569, 0.0730847418, -0.1755263507, -0.1190880612, -0.1176809743, -0.2050518095, -0.2649652362, 0.1112109423, 0.0344491899, 0.0620379262, 0.1656074673, 0.0011815891, -0.3356292248, -0.388671279, 0.1887100488, 0.3114578426, 0.3505725563, -0.3815399706, 0.2776067853, 0.4696753919, -0.1024904177, 0.1744854301, 0.523342669, 0.604681015, 0.2045620233, -0.1610855311, 0.2307298332, 0.0859479606, -0.1587416083, -0.2143246382, 0.0859883577, -0.1125597954, 0.1508612782, 0.1863926649, 0.119265601, -0.1523852497, -0.124350585, 0.2570669353, 0.0892342255, -0.1157790497, 0.2096571326, -0.1934624761, -0.1191295683, -0.0106685841, 0.2577627003, -0.3703101873, 0.0087716617, 0.3382307887, 0.1999278218, 0.1214425936, -0.2532487512, 0.1432627439, 0.0362461396, 0.3206443191, 0.1674531698, 0.0708230436, -0.2496790588, -0.034495946, -0.6907975078, 0.1137466654, -0.4348584414, -0.0502483062, 0.1779344082, 0.3789181411, -0.2952189445, 0.0249816459, 0.3320697546, 0.0711957961, 0.0678388551, 0.2166436166, -0.2155784965, 0.0088596372, 0.4026429653, -0.2635597885, 0.1491951495, -0.4507481456, 0.3349403739, -0.3472176194, 0.0670801252, -0.1321839392, 0.0437042713, 0.1463813186, -0.2922665179, 0.4322300851, 0.0993866399, 0.3241550922, -0.0317809507, -0.1804344356, -0.2188672125, -0.148695901, -0.2408017516, 0.2581405342, 0.5101236701, 0.1396809965, -0.0000909416, -0.4157196581, -0.1875611097, 0.2462857068, 0.0892051384, -0.0388063043, -0.0925745666, 0.0967666358, -0.2200209349, 0.1512512416, 0.0268626437, 0.2260271907, -0.082385771, 0.1834839284, -0.221261248, -0.6726046801, 0.3810141385, -0.1573603302, -0.0951678306, -0.1255321056, 0.3582263589, 0.2455357909, 0.0702352747, -0.6323138475, 0.2581470609, 0.537796855, -0.2006970197, -0.0005390049, 0.1608229876, -0.1072048619, 0.0514503717, 0.0228126477, 0.0017285703, 0.0554155521, -0.2744815648, 0.2620241642, -0.3209926486 ]
https://github.com/huggingface/datasets/issues/2552
Keys should be unique error on code_search_net
I found one issue on `fever` (PR here: https://github.com/huggingface/datasets/pull/2557) All the other ones seem fine :)
## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] Downloading: 19.1kB [00:00, 10.1MB/s] No config specified, defaulting to: code_search_net/all Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a... Traceback (most recent call last): File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split writer.write(example, key) File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write self.check_duplicate_keys() File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys should be unique and deterministic in nature ``` ## Environment info - `datasets` version: 1.8.1.dev0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 2.0.0
16
Keys should be unique error on code_search_net ## Describe the bug Loading `code_search_net` seems not possible at the moment. ## Steps to reproduce the bug ```python >>> load_dataset('code_search_net') Downloading: 8.50kB [00:00, 3.09MB/s] Downloading: 19.1kB [00:00, 10.1MB/s] No config specified, defaulting to: code_search_net/all Downloading and preparing dataset code_search_net/all (download: 4.77 GiB, generated: 5.99 GiB, post-processed: Unknown size, total: 10.76 GiB) to /Users/thomwolf/.cache/huggingface/datasets/code_search_net/all/1.0.0/b3e8278faf5d67da1d06981efbeac3b76a2900693bd2239bbca7a4a3b0d6e52a... Traceback (most recent call last): File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/builder.py", line 1067, in _prepare_split writer.write(example, key) File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 343, in write self.check_duplicate_keys() File "/Users/thomwolf/Documents/GitHub/datasets/src/datasets/arrow_writer.py", line 354, in check_duplicate_keys raise DuplicatedKeysError(key) datasets.keyhash.DuplicatedKeysError: FAILURE TO GENERATE DATASET ! Found duplicate Key: 48 Keys should be unique and deterministic in nature ``` ## Environment info - `datasets` version: 1.8.1.dev0 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 2.0.0 I found one issue on `fever` (PR here: https://github.com/huggingface/datasets/pull/2557) All the other ones seem fine :)
[ -0.0202084873, 0.000768123, -0.0907565504, 0.3496334255, 0.0851367489, -0.0248721372, 0.1991795599, 0.2581067383, 0.0932297036, 0.0736749917, -0.0927867666, 0.3846125305, -0.1742853373, 0.1145090014, 0.1579978913, 0.097871393, -0.0322048962, 0.1860357523, 0.1146631092, -0.0663525984, -0.3220597506, 0.2716598511, -0.2497789115, 0.0057934555, -0.2198529989, -0.1277942806, -0.1814607531, 0.2327203304, -0.1582824886, -0.6227065921, 0.283056885, 0.2367788106, -0.3231883347, 0.3545229733, -0.0001138885, 0.1849653274, 0.3915028274, -0.0082438337, -0.2720438838, -0.1919542849, -0.0973864496, -0.0876456127, 0.1220963374, -0.2598314583, -0.0403412953, -0.1267456114, -0.1003249064, -0.5317747593, 0.8246199489, 0.1936428249, 0.2487318963, 0.1887021661, 0.3378748, -0.2372307628, 0.2439077348, -0.1666712016, -0.0552273989, 0.3877437711, 0.198595345, -0.0504904538, 0.012191128, 0.285854876, 0.154956162, -0.110230729, 0.4621377289, -0.0525859445, 0.0763139054, -0.3710740805, 0.20499973, 0.089278616, 0.0974366069, -0.2761585116, -0.2324383706, -0.278984338, 0.0560450256, -0.2132117897, 0.3593418896, 0.1221939102, -0.2076243013, 0.1624034196, -0.0172566343, -0.2577530444, 0.012682057, -0.0440757833, 0.0079857092, -0.0301995128, -0.049108319, 0.1541401148, 0.1662726402, -0.0320537314, 0.2796732783, -0.0996795073, 0.0411549695, 0.2203778923, -0.5572587252, 0.1509337574, -0.0677143112, -0.0979793444, 0.2128642499, 0.0290230513, 0.1994989514, -0.0848771483, 0.0650747567, 0.0161667503, 0.1034396514, 0.0965397656, 0.0342402384, 0.232706815, 0.2190905958, -0.1835649461, -0.2517267168, -0.0357225165, -0.2129189819, -0.1737253219, 0.4017066061, 0.061110124, 0.5241866112, 0.0679923818, -0.2271725684, 0.1321725398, -0.1534138769, -0.1008546948, 0.0860634148, 0.3410011828, 0.194920063, -0.3373978138, 0.1137646958, 0.2290327847, -0.1387766898, -0.2006437778, -0.3102110028, -0.1213834509, -0.0552544408, -0.1454882473, 0.2526144385, -0.6270565987, 0.2642527223, 0.2605431676, -0.1020765528, -0.4912846982, 0.0038113825, 0.1023695916, -0.2192969471, 0.0943131894, 0.0159663912, 0.0795726553, -0.0476268157, -0.2335373759, -0.0544430353, 0.1780006886, -0.2537404299, -0.3525577486, -0.0227048993, 0.2670418918, 0.0590399094, 0.1252044141, -0.0038165634, 0.0386779644, 0.2306305617, 0.1851244718, -0.0123237185, -0.0314190276, -0.0888886079, -0.2552243173, 0.2687978148, 0.654094398, -0.096585162, -0.110615246, -0.1760227382, -0.0000574653, 0.1063130721, 0.3705931306, -0.2221118361, 0.4160013199, -0.3452945948, 0.1597892344, 0.7105053067, -0.1933836788, -0.3874000907, 0.1839336306, -0.2476290166, -0.1824147999, 0.1065882072, 0.014434007, 0.1848352402, 0.1223944798, 0.1634440273, -0.073387824, 0.0813081786, -0.0535244904, -0.3427563608, -0.3470589519, 0.1212370619, -0.0639003143, 0.1830682904, -0.1579374075, 0.2726065218, -0.1373437047, 0.0896510705, -0.1177653149, -0.0631603301, 0.0818894729, 0.2199143469, 0.0230338946, 0.1041529924, -0.0576093383, -0.4630143046, 0.3818476796, -0.2959958315, -0.2730378807, -0.2499001026, -0.2466731071, -0.3670992255, 0.1595121771, -0.5803840756, 0.0287358519, 0.1856033653, -0.0443432927, 0.2221631706, 0.1019118652, -0.1063281149, 0.1741608232, 0.0609682947, 0.0783877075, -0.2048068494, 0.2609230578, -0.4255304337, -0.0561137274, 0.1025158241, 0.2394187897, 0.3366997242, -0.11119508, -0.1904086769, 0.4078958333, -0.2392886728, 0.0221077204, -0.034824729, -0.130135566, 0.0792380646, -0.3870624006, 0.1635846347, 0.278123945, 0.1803104877, -0.1550775021, -0.0412185416, 0.3161664009, -0.1122287661, 0.1176382303, -0.0673277974, -0.046284385, 0.1096146703, -0.1085917801, 0.2148878276, -0.1273214072, 0.3092456162, -0.3220943809, 0.4101284146, 0.1456075311, -0.2284379452, 0.1148154885, 0.2885637879, 0.0129625797, 0.1708483547, 0.0142391929, 0.0231228862, -0.1852747649, -0.3099053204, 0.2503823042, 0.3074393272, 0.1368938684, -0.1100538149, 0.257715404, 0.0272051077, -0.2018003911, 0.3694403172, -0.1471648514, -0.1145038083, 0.4094091654, 0.1236055046, 0.0418066308, -0.4395466745, -0.1031289175, 0.206683144, 0.0979180858, -0.2481189817, 0.0145447552, -0.1656811684, -0.0346913859, -0.4692342579, 0.5736929178, -0.1025878713, -0.1179142892, 0.2339112759, 0.0687987581, 0.1535279602, 0.1181849316, -0.2238682359, 0.1479696929, 0.0400188155, 0.091388315, -0.2332362235, -0.0914764926, -0.0854194909, 0.0043805325, 0.4014086723, -0.1010473743, 0.5399112701, -0.1814330071, 0.0794087425, -0.2130987346, -0.3361150622, -0.0237547811, 0.0386975072, 0.1665663719, 0.0658398792, -0.0652712286, -0.0287214909, -0.3721291125, 0.2697656453, -0.3284952343, -0.4169461727, 0.0101508079, 0.0055704932, -0.0413728468, -0.2417519391, -0.5231000781, -0.2458374351, -0.2457344234, 0.326263696, -0.1252705604, 0.0861841962, 0.3265452981, -0.0873572454, -0.0341761038, -0.0375804342, 0.1786945313, -0.3457049727, 0.0466414914, 0.0505953431, -0.0377123579, -0.3421707749, -0.0582421608, -0.124619171, 0.1684560031, -0.0901201069, -0.364964813, 0.3040500879, -0.2496059388, 0.4348331094, -0.2169640362, 0.2921918035, 0.1888549626, 0.2523488998, -0.1235341132, -0.1784008145, -0.0185368676, 0.1148378327, -0.1724198759, 0.0444513373, 0.1156712696, 0.29169029, -0.2708283365, 0.8078589439, 0.5670902133, 0.0105674034, 0.2099636346, -0.2143361568, 0.3573078215, -0.2475781441, -0.4330516756, -0.2656172812, 0.1070934236, 0.0813838914, 0.0956930742, -0.0795380846, -0.0807896778, 0.1657530516, -0.1809010804, -0.5866481066, -0.3168031871, 0.0558155775, -0.2445252091, 0.1324727535, 0.0851007327, 0.0268226415, 0.0293135755, -0.0095794341, -0.0265900586, 0.2357901633, -0.0056337197, 0.0794820786, -0.1579549164, -0.1649989486, -0.3975366652, 0.1181499287, -0.127311036, 0.2269962728, 0.0055988673, 0.2317029536, 0.4163601398, -0.2022298574, 0.6757401228, -0.0679798424, 0.1560727209, 0.0936868712, 0.139320448, -0.1231688038, -0.1203202382, 0.0733183771, 0.44538486, 0.1178605705, 0.1218142956, -0.2651019096, 0.0125443414, -0.0674532726, 0.2935514748, -0.3799758255, -0.409884572, -0.1448253989, -0.3187563717, -0.510240674, -0.0192866791, -0.0145017076, 0.2496228069, -0.0626725927, -0.0809315071, -0.2437488288, -0.2154948562, 0.0145714656, 0.2108633965, 0.2731419802, 0.1007195711, 0.6041331887, 0.4393433928, -0.1413892508, -0.0042282254, 0.7062287927, -0.00680329, -0.0212427918, -0.2818034589, -0.2356342971, -0.1919906437, 0.267947793, -0.2039372176, 0.1777368337, 0.079321757, -0.0019130318, 0.0330985337, -0.1960717738, 0.170293808, -0.1882785857, -0.2366939634, -0.3877383173, 0.3027285337, -0.1271830499, -0.2844856381, 0.2639062703, 0.1304771453, -0.1688388437, 0.3598024845, -0.3438877463, 0.8287070394, -0.354568541, -0.0525075421, -0.1525413841, -0.3235086799, 0.2501273453, -0.0668517575, 0.0228037015, -0.5010049343, 0.0630500466, 0.164028272, -0.0611053556, -0.1104050949, 0.0001883153, -0.2942346632, 0.1739930958, -0.0544595234, 0.020480169, -0.1534421444, 0.3549317718, 0.0091454415, 0.2188322246, -0.0245842598, 0.1050479785, 0.1587535441, 0.2887304127, -0.0325888321, -0.0355949402, 0.183378607, -0.577073276, -0.2792324722, 0.1072816625, -0.3708566427, 0.5369706154, 0.0195548944, -0.2575701773, 0.2425423265, 0.0130720828, 0.2327262908, 0.2016302645, -0.0526868626, 0.122490488, 0.3005025387, 0.1007064953, -0.2253256589, -0.021091586, -0.1039731055, -0.0016899172, -0.3443885148, -0.0773521811, -0.0794807002, -0.4005850852, -0.1658959538, 0.2631049752, -0.1736076027, -0.0105282208, 0.1767032444, -0.0521218739, -0.0890381262, -0.31365785, 0.1497512907, 0.1800007969, 0.0409668796, 0.1119865254, -0.07747408, -0.1747510582, 0.0859683901, 0.1816871613, 0.3723407984, 0.0833174065, 0.541546464, -0.2741077244, -0.0104320124, -0.2523805797, 0.0836682618, 0.0918598175, -0.7165338397, 0.2361984998, -0.3014402688, 0.2387853265, 0.1011596248, 0.4325394332, 0.3051665127, 0.2136661708, 0.0406878591, -0.2169866562, -0.0858245194, -0.0969072357, 0.0304515008, 0.2258672118, 0.0072452095, 0.1676852852, -0.0845438913, 0.2230581343, -0.3288601041, 0.2706347406, -0.0811363459, 0.0841261521, -0.00476981, -0.1192710176, -0.0520376191, -0.0461236835, 0.1594185531, 0.0948789492, -0.1736590713, -0.2326161265, -0.0896768272, 0.1331889778, -0.0400188863, 0.1329047829, -0.2325379103, -0.2018628269, 0.221135363, -0.061886657, 0.1928776056, -0.1243791282, 0.1366807818, 0.0372685157, 0.1535412669, 0.0999377668, -0.2555323243, 0.2024780214, -0.2809893787, 0.3246924579, -0.0434043929, 0.1691109836, -0.0195342842, -0.0407930426, -0.3310745656, 0.0457024164, -0.2060306519, 0.0893422067, 0.1524747461, -0.2731482983, -0.1586348563, 0.4062786698, 0.158953622, 0.53902632, -0.3238693476, 0.1248405799, -0.0324666724, 0.2207844555, -0.3509297669, -0.1509009004, 0.0421093218, 0.0099140089, 0.2370734215, 0.3453677595, 0.3118667603, -0.2216416597, -0.102944158, 0.0660706013, 0.403157413, 0.0129868118, 0.3764744103, 0.3809966743, 0.2930636108, -0.2026403248, 0.2937019467, -0.0405769944, 0.026859222, 0.5647307038, -0.5716760755, 0.0970173255, -0.0100531848, 0.2584649026, 0.2096128762, -0.1318117082, 0.3875588775, 0.0626459867, -0.113668941, 0.0254146904, -0.0024648223, 0.1681888551, -0.200914219, -0.0553321689, -0.0887982473, 0.0949237868, -0.1822157651, -0.1194704846, -0.1094763428, -0.2381823063, -0.2414563596, 0.1266983449, 0.020760512, 0.066873081, 0.1796784103, 0.0243959669, -0.3266170621, -0.3924656808, 0.2119548917, 0.3055470586, 0.3821729422, -0.4020870924, 0.2971869707, 0.4687801898, -0.1085187644, 0.1810616106, 0.4946078658, 0.6445355415, 0.2367228866, -0.1513957381, 0.2144292295, 0.0908137858, -0.1545378864, -0.1945608109, 0.1061462983, -0.1023363918, 0.1814476401, 0.1494655907, 0.0785036236, -0.114947781, -0.1056777611, 0.2771039903, 0.1448202431, -0.0929139629, 0.2185651213, -0.1976519674, -0.1344170719, 0.0211388636, 0.2508803904, -0.3458344042, 0.0088224327, 0.3492434919, 0.2417680621, 0.119921051, -0.2315484434, 0.1283793747, 0.0345707573, 0.3339747488, 0.1753885001, 0.0514893271, -0.2477040142, -0.0324748196, -0.6966257095, 0.0962712243, -0.4398216903, -0.0247142408, 0.2195526212, 0.3855263591, -0.3456205726, -0.0091128591, 0.3729905486, 0.0727443174, 0.0275594629, 0.2396108955, -0.2225518525, -0.0010228978, 0.43841663, -0.255438447, 0.1187904626, -0.4289160073, 0.3651635647, -0.3669345379, 0.0287136175, -0.1510293186, 0.0678252131, 0.102013126, -0.2757467031, 0.4158661366, 0.0889695063, 0.3340981603, -0.0057509202, -0.2017384619, -0.2366865575, -0.1630810797, -0.2188815624, 0.2959424555, 0.5006561279, 0.1152565777, -0.0208941773, -0.4221185148, -0.1788978875, 0.224913314, 0.0389951244, -0.0718412399, -0.0791553259, 0.0578771345, -0.2015521526, 0.1607159078, 0.0240391456, 0.2076045722, -0.0899776146, 0.165241912, -0.2389790565, -0.655559361, 0.3939449787, -0.1794790626, -0.0907580331, -0.1361942738, 0.352564007, 0.2518315315, 0.0771786496, -0.6191430092, 0.2389179617, 0.5750240088, -0.2288495302, -0.0097290752, 0.1533528268, -0.1298980862, 0.0472925305, 0.0175556317, -0.0761202276, 0.0305065867, -0.2946878076, 0.254861623, -0.3082234263 ]